{"version":3,"file":"defaultLabelTheme.mjs","sources":["../../../../../src/components/ui/label/defaultLabelTheme.ts"],"sourcesContent":["import { ComponentTheme, defaultSizedLayoutClassMappers, defaultTypographyClassMappers, textAppearance, borderAppearance, ringAppearance, shadowAppearance } from \"../theme/common\";\nimport type { LabelProps } from \"./LabelProps\";\nimport { GapClassMapper, FontSizeClassMapper, LineHeightClassMapper } from \"../theme/size\";\nimport { BorderClassMapper, RingClassMapper, WrapClassMapper, DirectionClassMapper, CursorClassMapper, FlexClassMapper, ShrinkClassMapper } from \"../theme/layout\";\nimport { DisabledOpacityClassMapper } from \"../theme/appearance\";\nimport { LABEL_CATEGORIES } from \"./LabelCategories\";\nimport type { LabelTheme } from \"./LabelTheme\";\nimport { labelDefaults } from \"./labelDefaults\";\n\nexport const defaultLabelTheme = new ComponentTheme<LabelProps, LabelTheme>(\n  \"label\",\n  // dims for a disabled control too: authors disable the field, not its label\n  \"vane-label has-[input]:cursor-pointer has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50\",\n  {\n    size: {\n      text: new FontSizeClassMapper(),\n      lineHeight: new LineHeightClassMapper(),\n      gap: new GapClassMapper(),\n    },\n    // No `background` mapper: Label is a form label, not a filled surface, so\n    // an appearance (e.g. `tertiary`) colors the text/border only and never\n    // paints a background box. Matches MenuLabel; use Badge/Chip for filled\n    // pill-style labels.\n    appearance: {\n      text: textAppearance,\n      border: borderAppearance,\n      ring: ringAppearance,\n      shadow: shadowAppearance,\n    },\n    typography: defaultTypographyClassMappers,\n    layout: {\n      ...defaultSizedLayoutClassMappers,\n      border: new BorderClassMapper(),\n      ring: new RingClassMapper(),\n      wrap: new WrapClassMapper(),\n      flexDirection: new DirectionClassMapper(),\n      cursor: new CursorClassMapper(),\n      flex: new FlexClassMapper(),\n      shrink: new ShrinkClassMapper(),\n      // opacity only: a Label wraps its control, so pointer-events-none would kill it too\n      disabled: new DisabledOpacityClassMapper(),\n    },\n  },\n  labelDefaults,\n  LABEL_CATEGORIES,\n  undefined,\n  'ui'\n);\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AASO,MAAM,oBAAoB,IAAI,cAAA;AAAA,EACnC,OAAA;AAAA;AAAA,EAEA,qGAAA;AAAA,EACA;AAAA,IACE,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM,IAAI,mBAAA,EAAoB;AAAA,MAC9B,UAAA,EAAY,IAAI,qBAAA,EAAsB;AAAA,MACtC,GAAA,EAAK,IAAI,cAAA;AAAe,KAC1B;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,UAAA,EAAY;AAAA,MACV,IAAA,EAAM,cAAA;AAAA,MACN,MAAA,EAAQ,gBAAA;AAAA,MACR,IAAA,EAAM,cAAA;AAAA,MACN,MAAA,EAAQ;AAAA,KACV;AAAA,IACA,UAAA,EAAY,6BAAA;AAAA,IACZ,MAAA,EAAQ;AAAA,MACN,GAAG,8BAAA;AAAA,MACH,MAAA,EAAQ,IAAI,iBAAA,EAAkB;AAAA,MAC9B,IAAA,EAAM,IAAI,eAAA,EAAgB;AAAA,MAC1B,IAAA,EAAM,IAAI,eAAA,EAAgB;AAAA,MAC1B,aAAA,EAAe,IAAI,oBAAA,EAAqB;AAAA,MACxC,MAAA,EAAQ,IAAI,iBAAA,EAAkB;AAAA,MAC9B,IAAA,EAAM,IAAI,eAAA,EAAgB;AAAA,MAC1B,MAAA,EAAQ,IAAI,iBAAA,EAAkB;AAAA;AAAA,MAE9B,QAAA,EAAU,IAAI,0BAAA;AAA2B;AAC3C,GACF;AAAA,EACA,aAAA;AAAA,EACA,gBAAA;AAAA,EACA,MAAA;AAAA,EACA;AACF;;;;"}