1import{s as e}from"./QjYCpqYP.js";import{V as n,c as o,o as p,r as i,E as s}from"./Dfl0qPmI.js";var r=` 2 .p-floatlabel { 3 display: block; 4 position: relative; 5 } 6 7 .p-floatlabel label { 8 position: absolute; 9 pointer-events: none; 10 top: 50%; 11 transform: translateY(-50%); 12 transition-property: all; 13 transition-timing-function: ease; 14 line-height: 1; 15 font-weight: dt('floatlabel.font.weight'); 16 inset-inline-start: dt('floatlabel.position.x'); 17 color: dt('floatlabel.color'); 18 transition-duration: dt('floatlabel.transition.duration'); 19 } 20 21 .p-floatlabel:has(.p-textarea) label { 22 top: dt('floatlabel.position.y'); 23 transform: translateY(0); 24 } 25 26 .p-floatlabel:has(.p-inputicon:first-child) label { 27 inset-inline-start: calc((dt('form.field.padding.x') * 2) + dt('icon.size')); 28 } 29 30 .p-floatlabel:has(input:focus) label, 31 .p-floatlabel:has(input.p-filled) label, 32 .p-floatlabel:has(input:-webkit-autofill) label, 33 .p-floatlabel:has(textarea:focus) label, 34 .p-floatlabel:has(textarea.p-filled) label, 35 .p-floatlabel:has(.p-inputwrapper-focus) label, 36 .p-floatlabel:has(.p-inputwrapper-filled) label, 37 .p-floatlabel:has(input[placeholder]) label, 38 .p-floatlabel:has(textarea[placeholder]) label { 39 top: dt('floatlabel.over.active.top'); 40 transform: translateY(0); 41 font-size: dt('floatlabel.active.font.size'); 42 font-weight: dt('floatlabel.active.font.weight'); 43 } 44 45 .p-floatlabel:has(input.p-filled) label, 46 .p-floatlabel:has(textarea.p-filled) label, 47 .p-floatlabel:has(.p-inputwrapper-filled) label { 48 color: dt('floatlabel.active.color'); 49 } 50 51 .p-floatlabel:has(input:focus) label, 52 .p-floatlabel:has(input:-webkit-autofill) label, 53 .p-floatlabel:has(textarea:focus) label, 54 .p-floatlabel:has(.p-inputwrapper-focus) label { 55 color: dt('floatlabel.focus.color'); 56 } 57 58 .p-floatlabel-in .p-inputtext, 59 .p-floatlabel-in .p-textarea, 60 .p-floatlabel-in .p-select-label, 61 .p-floatlabel-in .p-multiselect-label, 62 .p-floatlabel-in .p-autocomplete-input-multiple, 63 .p-floatlabel-in .p-cascadeselect-label, 64 .p-floatlabel-in .p-treeselect-label { 65 padding-block-start: dt('floatlabel.in.input.padding.top'); 66 padding-block-end: dt('floatlabel.in.input.padding.bottom'); 67 } 68 69 .p-floatlabel-in:has(input:focus) label, 70 .p-floatlabel-in:has(input.p-filled) label, 71 .p-floatlabel-in:has(input:-webkit-autofill) label, 72 .p-floatlabel-in:has(textarea:focus) label, 73 .p-floatlabel-in:has(textarea.p-filled) label, 74 .p-floatlabel-in:has(.p-inputwrapper-focus) label, 75 .p-floatlabel-in:has(.p-inputwrapper-filled) label, 76 .p-floatlabel-in:has(input[placeholder]) label, 77 .p-floatlabel-in:has(textarea[placeholder]) label { 78 top: dt('floatlabel.in.active.top'); 79 } 80 81 .p-floatlabel-on:has(input:focus) label, 82 .p-floatlabel-on:has(input.p-filled) label, 83 .p-floatlabel-on:has(input:-webkit-autofill) label, 84 .p-floatlabel-on:has(textarea:focus) label, 85 .p-floatlabel-on:has(textarea.p-filled) label, 86 .p-floatlabel-on:has(.p-inputwrapper-focus) label, 87 .p-floatlabel-on:has(.p-inputwrapper-filled) label, 88 .p-floatlabel-on:has(input[placeholder]) label, 89 .p-floatlabel-on:has(textarea[placeholder]) label { 90 top: 0; 91 transform: translateY(-50%); 92 border-radius: dt('floatlabel.on.border.radius'); 93 background: dt('floatlabel.on.active.background'); 94 padding: dt('floatlabel.on.active.padding'); 95 } 96 97 .p-floatlabel:has([class^='p-'][class$='-fluid']) { 98 width: 100%; 99 } 100 101 .p-floatlabel:has(.p-invalid) label { 102 color: dt('floatlabel.invalid.color'); 103 } 104`,b={root:function(t){var a=t.props;return["p-floatlabel",{"p-floatlabel-over":a.variant==="over","p-floatlabel-on":a.variant==="on","p-floatlabel-in":a.variant==="in"}]}},f=n.extend({name:"floatlabel",style:r,classes:b}),d={name:"BaseFloatLabel",extends:e,props:{variant:{type:String,default:"over"}},style:f,provide:function(){return{$pcFloatLabel:this,$parentInstance:this}}},c={name:"FloatLabel",extends:d,inheritAttrs:!1};function u(l,t,a,h,v,m){return p(),o("span",s({class:l.cx("root")},l.ptmi("root")),[i(l.$slots,"default")],16)}c.render=u;export{c as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.