@tryghost/shade 0.1.0-alpha.23 → 0.1.0-alpha.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/es/components/patterns/setting-group.js +2 -2
  2. package/es/components/patterns/setting-group.js.map +1 -1
  3. package/es/components/patterns/settings-modal.js +1 -1
  4. package/es/components/patterns/settings-modal.js.map +1 -1
  5. package/es/components/ui/alert-dialog.js +1 -1
  6. package/es/components/ui/alert-dialog.js.map +1 -1
  7. package/es/components/ui/checkbox.js +1 -1
  8. package/es/components/ui/checkbox.js.map +1 -1
  9. package/es/components/ui/combobox.js +1 -1
  10. package/es/components/ui/combobox.js.map +1 -1
  11. package/es/components/ui/copy-field.js +2 -2
  12. package/es/components/ui/copy-field.js.map +1 -1
  13. package/es/components/ui/data-list.js +1 -1
  14. package/es/components/ui/data-list.js.map +1 -1
  15. package/es/components/ui/dialog.js +1 -1
  16. package/es/components/ui/dialog.js.map +1 -1
  17. package/es/components/ui/field.js +1 -1
  18. package/es/components/ui/field.js.map +1 -1
  19. package/es/components/ui/input-group-variants.js +5 -5
  20. package/es/components/ui/input-group-variants.js.map +1 -1
  21. package/es/components/ui/input-group.js +2 -2
  22. package/es/components/ui/input-group.js.map +1 -1
  23. package/es/components/ui/input-surface.js +2 -2
  24. package/es/components/ui/input-surface.js.map +1 -1
  25. package/es/components/ui/input.js +1 -1
  26. package/es/components/ui/input.js.map +1 -1
  27. package/es/components/ui/radio-group-variants.js +1 -1
  28. package/es/components/ui/radio-group-variants.js.map +1 -1
  29. package/es/components/ui/select-variants.js +4 -4
  30. package/es/components/ui/select-variants.js.map +1 -1
  31. package/es/components/ui/sheet.js +1 -1
  32. package/es/components/ui/sheet.js.map +1 -1
  33. package/es/components/ui/table.js +2 -2
  34. package/es/components/ui/table.js.map +1 -1
  35. package/es/components/ui/textarea.js +1 -1
  36. package/es/components/ui/textarea.js.map +1 -1
  37. package/es/components/ui/token-field.js +3 -3
  38. package/es/components/ui/token-field.js.map +1 -1
  39. package/es/tokens.js +11 -0
  40. package/es/tokens.js.map +1 -1
  41. package/package.json +1 -1
  42. package/styles.css +49 -0
  43. package/tailwind.theme.css +9 -0
  44. package/theme-variables.css +20 -0
  45. package/types/components/patterns/settings-modal.d.ts.map +1 -1
  46. package/types/components/ui/dialog.d.ts.map +1 -1
  47. package/types/components/ui/input-group-variants.d.ts.map +1 -1
  48. package/types/components/ui/input-surface.d.ts +2 -2
  49. package/types/components/ui/input-surface.d.ts.map +1 -1
  50. package/types/components/ui/select-variants.d.ts.map +1 -1
  51. package/types/components/ui/sheet.d.ts.map +1 -1
  52. package/types/components/ui/token-field.d.ts +2 -2
  53. package/types/components/ui/token-field.d.ts.map +1 -1
  54. package/types/tokens.d.ts +1 -1
  55. package/types/tokens.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"input-group.js","names":[],"sources":["../../../src/components/ui/input-group.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/lib/utils';\nimport { Button } from '@/components/ui/button';\nimport { inputGroupVariants } from '@/components/ui/input-group-variants';\n\nexport interface InputGroupProps\n extends React.ComponentProps<'div'>, VariantProps<typeof inputGroupVariants> {}\n\nfunction InputGroup({ className, variant, shape, ...props }: InputGroupProps) {\n const resolvedShape = shape ?? 'rounded';\n return (\n <div\n className={cn(inputGroupVariants({ variant, shape: resolvedShape }), className)}\n data-control-shape={resolvedShape}\n data-slot=\"input-group\"\n data-variant={variant ?? 'default'}\n role=\"group\"\n {...props}\n />\n );\n}\n\nconst inputGroupAddonVariants = cva(\n `flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-control font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:cursor-not-allowed [&>kbd]:rounded-[calc(var(--input-group-radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,\n {\n variants: {\n align: {\n 'inline-start': 'order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]',\n 'inline-end': 'order-last pr-3 has-[>button]:mr-[-0.4rem] has-[>kbd]:mr-[-0.35rem]',\n 'block-start':\n 'order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3',\n 'block-end':\n 'order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3',\n },\n },\n defaultVariants: {\n align: 'inline-start',\n },\n },\n);\n\nfunction InputGroupAddon({\n className,\n align = 'inline-start',\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>) {\n return (\n <div\n className={cn(\n inputGroupAddonVariants({ align }),\n align === 'inline-end' &&\n 'has-[>button[data-size$=xs]]:mr-0 has-[>button[data-size$=xs]]:pr-[calc((var(--control-height)-24px)/2-1px)]',\n align === 'inline-start' &&\n 'has-[>button[data-size$=xs]]:ml-0 has-[>button[data-size$=xs]]:pl-[calc((var(--control-height)-24px)/2-1px)]',\n className,\n )}\n data-align={align}\n data-slot=\"input-group-addon\"\n role=\"group\"\n onClick={(e) => {\n if ((e.target as HTMLElement).closest('button')) {\n return;\n }\n const control = e.currentTarget\n .closest('[data-slot=\"input-group\"]')\n ?.querySelector<HTMLElement>('[data-slot=\"input-group-control\"]');\n control?.focus();\n }}\n {...props}\n />\n );\n}\n\nconst inputGroupButtonVariants = cva('flex items-center gap-2 shadow-none', {\n variants: {\n size: {\n xs: \"h-6 gap-1 px-2 has-[>svg]:px-2 data-[control-shape=rounded]:rounded-[calc(var(--input-group-radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5\",\n sm: 'h-8 gap-1.5 px-2.5 has-[>svg]:px-2.5 data-[control-shape=rounded]:rounded-control',\n 'icon-xs':\n 'size-6 p-0 has-[>svg]:p-0 data-[control-shape=rounded]:rounded-[calc(var(--input-group-radius)-5px)]',\n 'icon-sm': 'size-8 p-0 has-[>svg]:p-0',\n },\n },\n defaultVariants: {\n size: 'xs',\n },\n});\n\nconst InputGroupButton = React.forwardRef<\n HTMLButtonElement,\n Omit<React.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants>\n>(({ className, type = 'button', variant = 'ghost', size = 'xs', ...props }, ref) => {\n return (\n <Button\n ref={ref}\n className={cn(\n inputGroupButtonVariants({ size }),\n size === 'xs' ? 'text-sm!' : 'text-(length:--text-control)',\n (size === 'xs' || size === 'icon-xs') &&\n 'data-[control-shape=rounded]:rounded-[calc(var(--radius-control)-(var(--control-height)-24px)/2)]',\n className,\n )}\n data-size={size}\n type={type}\n variant={variant}\n {...props}\n />\n );\n});\nInputGroupButton.displayName = 'InputGroupButton';\n\nfunction InputGroupText({ className, ...props }: React.ComponentProps<'span'>) {\n return (\n <span\n className={cn(\n \"flex items-center gap-2 text-control text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nconst InputGroupInput = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(\n ({ className, ...props }, ref) => (\n <input\n ref={ref}\n className={cn(\n 'flex h-(--control-height) w-full flex-1 border-0 bg-transparent px-3 py-1 text-control outline-hidden file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:text-muted-foreground',\n className,\n )}\n data-slot=\"input-group-control\"\n {...props}\n />\n ),\n);\nInputGroupInput.displayName = 'InputGroupInput';\n\nconst InputGroupTextarea = React.forwardRef<HTMLTextAreaElement, React.ComponentProps<'textarea'>>(\n ({ className, ...props }, ref) => (\n <textarea\n ref={ref}\n className={cn(\n 'min-h-[80px] w-full flex-1 resize-none border-0 bg-transparent p-3 text-base outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:text-muted-foreground',\n className,\n )}\n data-slot=\"input-group-control\"\n {...props}\n />\n ),\n);\nInputGroupTextarea.displayName = 'InputGroupTextarea';\n\nexport {\n InputGroup,\n InputGroupAddon,\n InputGro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,SAAS,cACzB,qGACF,SACF;EACA,aAAW;EACL;EACG;EACT,GAAI;CACL,CAAA;AAEL,CAAC;AACD,iBAAiB,cAAc;AAE/B,SAAS,eAAe,EAAE,WAAW,GAAG,SAAuC;CAC7E,OACE,oBAAC,QAAD;EACE,WAAW,GACT,+HACA,SACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,IAAM,kBAAkB,QAAM,YAC3B,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,SAAD;CACO;CACL,WAAW,GACT,2RACA,SACF;CACA,aAAU;CACV,GAAI;AACL,CAAA,CAEL;AACA,gBAAgB,cAAc;AAE9B,IAAM,qBAAqB,QAAM,YAC9B,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,YAAD;CACO;CACL,WAAW,GACT,4LACA,SACF;CACA,aAAU;CACV,GAAI;AACL,CAAA,CAEL;AACA,mBAAmB,cAAc"}
1
+ {"version":3,"file":"input-group.js","names":[],"sources":["../../../src/components/ui/input-group.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/lib/utils';\nimport { Button } from '@/components/ui/button';\nimport { inputGroupVariants } from '@/components/ui/input-group-variants';\n\nexport interface InputGroupProps\n extends React.ComponentProps<'div'>, VariantProps<typeof inputGroupVariants> {}\n\nfunction InputGroup({ className, variant, shape, ...props }: InputGroupProps) {\n const resolvedShape = shape ?? 'rounded';\n return (\n <div\n className={cn(inputGroupVariants({ variant, shape: resolvedShape }), className)}\n data-control-shape={resolvedShape}\n data-slot=\"input-group\"\n data-variant={variant ?? 'default'}\n role=\"group\"\n {...props}\n />\n );\n}\n\nconst inputGroupAddonVariants = cva(\n `flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-control font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:cursor-not-allowed [&>kbd]:rounded-[calc(var(--input-group-radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,\n {\n variants: {\n align: {\n 'inline-start': 'order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]',\n 'inline-end': 'order-last pr-3 has-[>button]:mr-[-0.4rem] has-[>kbd]:mr-[-0.35rem]',\n 'block-start':\n 'order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3',\n 'block-end':\n 'order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3',\n },\n },\n defaultVariants: {\n align: 'inline-start',\n },\n },\n);\n\nfunction InputGroupAddon({\n className,\n align = 'inline-start',\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>) {\n return (\n <div\n className={cn(\n inputGroupAddonVariants({ align }),\n align === 'inline-end' &&\n 'has-[>button[data-size$=xs]]:mr-0 has-[>button[data-size$=xs]]:pr-[calc((var(--control-height)-24px)/2-1px)]',\n align === 'inline-start' &&\n 'has-[>button[data-size$=xs]]:ml-0 has-[>button[data-size$=xs]]:pl-[calc((var(--control-height)-24px)/2-1px)]',\n className,\n )}\n data-align={align}\n data-slot=\"input-group-addon\"\n role=\"group\"\n onClick={(e) => {\n if ((e.target as HTMLElement).closest('button')) {\n return;\n }\n const control = e.currentTarget\n .closest('[data-slot=\"input-group\"]')\n ?.querySelector<HTMLElement>('[data-slot=\"input-group-control\"]');\n control?.focus();\n }}\n {...props}\n />\n );\n}\n\nconst inputGroupButtonVariants = cva('flex items-center gap-2 shadow-none', {\n variants: {\n size: {\n xs: \"h-6 gap-1 px-2 has-[>svg]:px-2 data-[control-shape=rounded]:rounded-[calc(var(--input-group-radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5\",\n sm: 'h-8 gap-1.5 px-2.5 has-[>svg]:px-2.5 data-[control-shape=rounded]:rounded-control',\n 'icon-xs':\n 'size-6 p-0 has-[>svg]:p-0 data-[control-shape=rounded]:rounded-[calc(var(--input-group-radius)-5px)]',\n 'icon-sm': 'size-8 p-0 has-[>svg]:p-0',\n },\n },\n defaultVariants: {\n size: 'xs',\n },\n});\n\nconst InputGroupButton = React.forwardRef<\n HTMLButtonElement,\n Omit<React.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants>\n>(({ className, type = 'button', variant = 'ghost', size = 'xs', ...props }, ref) => {\n return (\n <Button\n ref={ref}\n className={cn(\n inputGroupButtonVariants({ size }),\n size === 'xs' ? 'text-sm!' : 'text-(length:--text-control)',\n (size === 'xs' || size === 'icon-xs') &&\n 'data-[control-shape=rounded]:rounded-[calc(var(--radius-control)-(var(--control-height)-24px)/2)]',\n className,\n )}\n data-size={size}\n type={type}\n variant={variant}\n {...props}\n />\n );\n});\nInputGroupButton.displayName = 'InputGroupButton';\n\nfunction InputGroupText({ className, ...props }: React.ComponentProps<'span'>) {\n return (\n <span\n className={cn(\n \"flex items-center gap-2 text-control text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nconst InputGroupInput = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(\n ({ className, ...props }, ref) => (\n <input\n ref={ref}\n className={cn(\n 'flex h-(--control-height) w-full flex-1 border-0 bg-transparent px-3 py-1 text-(length:--text-field) outline-hidden file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:text-muted-foreground',\n className,\n )}\n data-slot=\"input-group-control\"\n {...props}\n />\n ),\n);\nInputGroupInput.displayName = 'InputGroupInput';\n\nconst InputGroupTextarea = React.forwardRef<HTMLTextAreaElement, React.ComponentProps<'textarea'>>(\n ({ className, ...props }, ref) => (\n <textarea\n ref={ref}\n className={cn(\n 'min-h-[80px] w-full flex-1 resize-none border-0 bg-transparent p-3 text-(length:--text-field) outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:text-muted-foreground',\n className,\n )}\n data-slot=\"input-group-control\"\n {...props}\n />\n ),\n);\nInputGroupTextarea.displayName = 'InputGroupTextarea';\n\nexport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupText,\n InputGroupInput,\n InputGroupTextarea,\n};\n"],"mappings":";;;;;;;AAUA,SAAS,WAAW,EAAE,WAAW,SAAS,OAAO,GAAG,SAA0B;CAC5E,MAAM,gBAAgB,SAAS;CAC/B,OACE,oBAAC,OAAD;EACE,WAAW,GAAG,mBAAmB;GAAE;GAAS,OAAO;EAAc,CAAC,GAAG,SAAS;EAC9E,sBAAoB;EACpB,aAAU;EACV,gBAAc,WAAW;EACzB,MAAK;EACL,GAAI;CACL,CAAA;AAEL;AAEA,IAAM,0BAA0B,IAC9B,oRACA;CACE,UAAU,EACR,OAAO;EACL,gBAAgB;EAChB,cAAc;EACd,eACE;EACF,aACE;CACJ,EACF;CACA,iBAAiB,EACf,OAAO,eACT;AACF,CACF;AAEA,SAAS,gBAAgB,EACvB,WACA,QAAQ,gBACR,GAAG,SAC0E;CAC7E,OACE,oBAAC,OAAD;EACE,WAAW,GACT,wBAAwB,EAAE,MAAM,CAAC,GACjC,UAAU,gBACR,gHACF,UAAU,kBACR,gHACF,SACF;EACA,cAAY;EACZ,aAAU;EACV,MAAK;EACL,UAAU,MAAM;GACd,IAAK,EAAE,OAAuB,QAAQ,QAAQ,GAC5C;GAKF,CAHgB,EAAE,cACf,QAAQ,6BAA2B,CAAC,EACnC,cAA2B,qCAAmC,EAAA,EACzD,MAAM;EACjB;EACA,GAAI;CACL,CAAA;AAEL;AAEA,IAAM,2BAA2B,IAAI,uCAAuC;CAC1E,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,WACE;EACF,WAAW;CACb,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC;AAED,IAAM,mBAAmB,QAAM,YAG5B,EAAE,WAAW,OAAO,UAAU,UAAU,SAAS,OAAO,MAAM,GAAG,SAAS,QAAQ;CACnF,OACE,oBAAC,QAAD;EACO;EACL,WAAW,GACT,yBAAyB,EAAE,KAAK,CAAC,GACjC,SAAS,OAAO,aAAa,iCAC5B,SAAS,QAAQ,SAAS,cACzB,qGACF,SACF;EACA,aAAW;EACL;EACG;EACT,GAAI;CACL,CAAA;AAEL,CAAC;AACD,iBAAiB,cAAc;AAE/B,SAAS,eAAe,EAAE,WAAW,GAAG,SAAuC;CAC7E,OACE,oBAAC,QAAD;EACE,WAAW,GACT,+HACA,SACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,IAAM,kBAAkB,QAAM,YAC3B,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,SAAD;CACO;CACL,WAAW,GACT,ySACA,SACF;CACA,aAAU;CACV,GAAI;AACL,CAAA,CAEL;AACA,gBAAgB,cAAc;AAE9B,IAAM,qBAAqB,QAAM,YAC9B,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,YAAD;CACO;CACL,WAAW,GACT,6MACA,SACF;CACA,aAAU;CACV,GAAI;AACL,CAAA,CAEL;AACA,mBAAmB,cAAc"}
@@ -33,13 +33,13 @@ import { cn } from "../../lib/ds-utils.js";
33
33
  * )} />
34
34
  */
35
35
  var inputSurfaceClasses = {
36
- base: "rounded-control border border-control-border bg-control-surface transition-colors",
36
+ base: "rounded-field border border-field-border bg-field-surface transition-colors",
37
37
  focusSelf: "focus-visible:outline-hidden focus-visible:border-focus-ring focus-visible:ring-2 focus-visible:ring-focus-ring/25",
38
38
  focusWithin: "has-[:focus-visible]:outline-hidden has-[:focus-visible]:border-focus-ring has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-focus-ring/25",
39
39
  invalidSelf: "aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-destructive/20 dark:aria-[invalid=true]:ring-destructive/40",
40
40
  invalidWithin: "has-[[aria-invalid=true]]:border-destructive has-[[aria-invalid=true]]:ring-destructive/20 dark:has-[[aria-invalid=true]]:ring-destructive/40",
41
41
  disabledSelf: "disabled:cursor-not-allowed disabled:opacity-50",
42
- disabledFieldSelf: "disabled:bg-control-disabled-surface disabled:text-muted-foreground disabled:opacity-100 disabled:hover:bg-control-disabled-surface"
42
+ disabledFieldSelf: "disabled:bg-field-disabled-surface disabled:text-muted-foreground disabled:opacity-100 disabled:hover:bg-field-disabled-surface"
43
43
  };
44
44
  function inputSurface(mode = "self") {
45
45
  if (mode === "self") return cn(inputSurfaceClasses.base, inputSurfaceClasses.focusSelf, inputSurfaceClasses.invalidSelf, inputSurfaceClasses.disabledSelf);
@@ -1 +1 @@
1
- {"version":3,"file":"input-surface.js","names":[],"sources":["../../../src/components/ui/input-surface.ts"],"sourcesContent":["import { cn } from '@/lib/utils';\n\n/**\n * Shared visual recipe for input-like surfaces (Input, Textarea, InputGroup, Select trigger).\n *\n * The recipe owns: border, background, radius, transition, focus ring, invalid state.\n * Consumers add their own size, padding, typography, and component-specific tweaks.\n *\n * `inputSurface()` covers the two common shapes:\n * - `'self'` — apply directly to the focusable element (e.g. <input>, <textarea>, <button>).\n * - `'within'` — apply to a wrapper that contains a focusable child; focus and invalid\n * styles are derived from any focusable descendant via `:has()`.\n *\n * For unusual cases (e.g. a wrapper that should only react to a specific control element,\n * not any focusable descendant) compose `inputSurfaceClasses` atoms manually.\n *\n * @example\n * // Direct on a focusable element\n * <input className={cn(inputSurface('self'), 'h-9 px-3 ...')} />\n *\n * // Wrapper with any focused descendant driving focus state\n * <div className={cn(inputSurface('within'), 'flex h-9 items-center ...')}>\n * <input ... />\n * </div>\n *\n * // Custom scope: only one specific child triggers focus state. Compose from atoms\n * // so Tailwind can statically detect the literal class string.\n * <div className={cn(\n * inputSurfaceClasses.base,\n * inputSurfaceClasses.invalidWithin,\n * // literal class string for Tailwind JIT to pick up\n * 'has-[[data-slot=control]:focus-visible]:border-focus-ring ...'\n * )} />\n */\nexport const inputSurfaceClasses = {\n base: 'rounded-control border border-control-border bg-control-surface transition-colors',\n focusSelf:\n 'focus-visible:outline-hidden focus-visible:border-focus-ring focus-visible:ring-2 focus-visible:ring-focus-ring/25',\n focusWithin:\n 'has-[:focus-visible]:outline-hidden has-[:focus-visible]:border-focus-ring has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-focus-ring/25',\n invalidSelf:\n 'aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-destructive/20 dark:aria-[invalid=true]:ring-destructive/40',\n invalidWithin:\n 'has-[[aria-invalid=true]]:border-destructive has-[[aria-invalid=true]]:ring-destructive/20 dark:has-[[aria-invalid=true]]:ring-destructive/40',\n disabledSelf: 'disabled:cursor-not-allowed disabled:opacity-50',\n disabledFieldSelf:\n 'disabled:bg-control-disabled-surface disabled:text-muted-foreground disabled:opacity-100 disabled:hover:bg-control-disabled-surface',\n} as const;\n\nexport function inputSurface(mode: 'self' | 'within' = 'self') {\n if (mode === 'self') {\n return cn(\n inputSurfaceClasses.base,\n inputSurfaceClasses.focusSelf,\n inputSurfaceClasses.invalidSelf,\n inputSurfaceClasses.disabledSelf,\n );\n }\n return cn(\n inputSurfaceClasses.base,\n inputSurfaceClasses.focusWithin,\n inputSurfaceClasses.invalidWithin,\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,IAAa,sBAAsB;CACjC,MAAM;CACN,WACE;CACF,aACE;CACF,aACE;CACF,eACE;CACF,cAAc;CACd,mBACE;AACJ;AAEA,SAAgB,aAAa,OAA0B,QAAQ;CAC7D,IAAI,SAAS,QACX,OAAO,GACL,oBAAoB,MACpB,oBAAoB,WACpB,oBAAoB,aACpB,oBAAoB,YACtB;CAEF,OAAO,GACL,oBAAoB,MACpB,oBAAoB,aACpB,oBAAoB,aACtB;AACF"}
1
+ {"version":3,"file":"input-surface.js","names":[],"sources":["../../../src/components/ui/input-surface.ts"],"sourcesContent":["import { cn } from '@/lib/utils';\n\n/**\n * Shared visual recipe for input-like surfaces (Input, Textarea, InputGroup, Select trigger).\n *\n * The recipe owns: border, background, radius, transition, focus ring, invalid state.\n * Consumers add their own size, padding, typography, and component-specific tweaks.\n *\n * `inputSurface()` covers the two common shapes:\n * - `'self'` — apply directly to the focusable element (e.g. <input>, <textarea>, <button>).\n * - `'within'` — apply to a wrapper that contains a focusable child; focus and invalid\n * styles are derived from any focusable descendant via `:has()`.\n *\n * For unusual cases (e.g. a wrapper that should only react to a specific control element,\n * not any focusable descendant) compose `inputSurfaceClasses` atoms manually.\n *\n * @example\n * // Direct on a focusable element\n * <input className={cn(inputSurface('self'), 'h-9 px-3 ...')} />\n *\n * // Wrapper with any focused descendant driving focus state\n * <div className={cn(inputSurface('within'), 'flex h-9 items-center ...')}>\n * <input ... />\n * </div>\n *\n * // Custom scope: only one specific child triggers focus state. Compose from atoms\n * // so Tailwind can statically detect the literal class string.\n * <div className={cn(\n * inputSurfaceClasses.base,\n * inputSurfaceClasses.invalidWithin,\n * // literal class string for Tailwind JIT to pick up\n * 'has-[[data-slot=control]:focus-visible]:border-focus-ring ...'\n * )} />\n */\nexport const inputSurfaceClasses = {\n base: 'rounded-field border border-field-border bg-field-surface transition-colors',\n focusSelf:\n 'focus-visible:outline-hidden focus-visible:border-focus-ring focus-visible:ring-2 focus-visible:ring-focus-ring/25',\n focusWithin:\n 'has-[:focus-visible]:outline-hidden has-[:focus-visible]:border-focus-ring has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-focus-ring/25',\n invalidSelf:\n 'aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-destructive/20 dark:aria-[invalid=true]:ring-destructive/40',\n invalidWithin:\n 'has-[[aria-invalid=true]]:border-destructive has-[[aria-invalid=true]]:ring-destructive/20 dark:has-[[aria-invalid=true]]:ring-destructive/40',\n disabledSelf: 'disabled:cursor-not-allowed disabled:opacity-50',\n disabledFieldSelf:\n 'disabled:bg-field-disabled-surface disabled:text-muted-foreground disabled:opacity-100 disabled:hover:bg-field-disabled-surface',\n} as const;\n\nexport function inputSurface(mode: 'self' | 'within' = 'self') {\n if (mode === 'self') {\n return cn(\n inputSurfaceClasses.base,\n inputSurfaceClasses.focusSelf,\n inputSurfaceClasses.invalidSelf,\n inputSurfaceClasses.disabledSelf,\n );\n }\n return cn(\n inputSurfaceClasses.base,\n inputSurfaceClasses.focusWithin,\n inputSurfaceClasses.invalidWithin,\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,IAAa,sBAAsB;CACjC,MAAM;CACN,WACE;CACF,aACE;CACF,aACE;CACF,eACE;CACF,cAAc;CACd,mBACE;AACJ;AAEA,SAAgB,aAAa,OAA0B,QAAQ;CAC7D,IAAI,SAAS,QACX,OAAO,GACL,oBAAoB,MACpB,oBAAoB,WACpB,oBAAoB,aACpB,oBAAoB,YACtB;CAEF,OAAO,GACL,oBAAoB,MACpB,oBAAoB,aACpB,oBAAoB,aACtB;AACF"}
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
6
6
  var Input = React$1.forwardRef(({ className, type, ...props }, ref) => {
7
7
  return /* @__PURE__ */ jsx("input", {
8
8
  ref,
9
- className: cn(inputSurface("self"), inputSurfaceClasses.disabledFieldSelf, "flex h-(--control-height) w-full px-3 py-1 text-control file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground", className),
9
+ className: cn(inputSurface("self"), inputSurfaceClasses.disabledFieldSelf, "flex h-(--control-height) w-full px-3 py-1 text-(length:--text-field) file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground", className),
10
10
  type,
11
11
  ...props
12
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","names":[],"sources":["../../../src/components/ui/input.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { inputSurface, inputSurfaceClasses } from '@/components/ui/input-surface';\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n ref={ref}\n className={cn(\n inputSurface('self'),\n inputSurfaceClasses.disabledFieldSelf,\n 'flex h-(--control-height) w-full px-3 py-1 text-control file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground',\n className,\n )}\n type={type}\n {...props}\n />\n );\n },\n);\nInput.displayName = 'Input';\n\nexport { Input };\n"],"mappings":";;;;;AAKA,IAAM,QAAQ,QAAM,YACjB,EAAE,WAAW,MAAM,GAAG,SAAS,QAAQ;CACtC,OACE,oBAAC,SAAD;EACO;EACL,WAAW,GACT,aAAa,MAAM,GACnB,oBAAoB,mBACpB,kLACA,SACF;EACM;EACN,GAAI;CACL,CAAA;AAEL,CACF;AACA,MAAM,cAAc"}
1
+ {"version":3,"file":"input.js","names":[],"sources":["../../../src/components/ui/input.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { inputSurface, inputSurfaceClasses } from '@/components/ui/input-surface';\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n ref={ref}\n className={cn(\n inputSurface('self'),\n inputSurfaceClasses.disabledFieldSelf,\n 'flex h-(--control-height) w-full px-3 py-1 text-(length:--text-field) file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground',\n className,\n )}\n type={type}\n {...props}\n />\n );\n },\n);\nInput.displayName = 'Input';\n\nexport { Input };\n"],"mappings":";;;;;AAKA,IAAM,QAAQ,QAAM,YACjB,EAAE,WAAW,MAAM,GAAG,SAAS,QAAQ;CACtC,OACE,oBAAC,SAAD;EACO;EACL,WAAW,GACT,aAAa,MAAM,GACnB,oBAAoB,mBACpB,gMACA,SACF;EACM;EACN,GAAI;CACL,CAAA;AAEL,CACF;AACA,MAAM,cAAc"}
@@ -1,7 +1,7 @@
1
1
  import { inputSurface } from "./input-surface.js";
2
2
  import { cva } from "class-variance-authority";
3
3
  //#region src/components/ui/radio-group-variants.ts
4
- var radioGroupItemVariants = cva([inputSurface("self"), "peer grid size-4 shrink-0 place-content-center rounded-full border-border-strong p-0 text-primary enabled:hover:bg-interactive-hover data-[state=checked]:border-primary"], {
4
+ var radioGroupItemVariants = cva([inputSurface("self"), "peer grid size-4 shrink-0 place-content-center rounded-full border-border-strong bg-control-surface p-0 text-primary enabled:hover:bg-interactive-hover data-[state=checked]:border-primary"], {
5
5
  variants: { indicator: {
6
6
  dot: "",
7
7
  check: "data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground enabled:data-[state=checked]:hover:bg-primary"
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group-variants.js","names":[],"sources":["../../../src/components/ui/radio-group-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport { inputSurface } from '@/components/ui/input-surface';\n\nconst radioGroupItemVariants = cva(\n [\n inputSurface('self'),\n 'peer grid size-4 shrink-0 place-content-center rounded-full border-border-strong p-0 text-primary enabled:hover:bg-interactive-hover data-[state=checked]:border-primary',\n ],\n {\n variants: {\n indicator: {\n dot: '',\n check:\n 'data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground enabled:data-[state=checked]:hover:bg-primary',\n },\n },\n defaultVariants: {\n indicator: 'dot',\n },\n },\n);\n\nexport { radioGroupItemVariants };\n"],"mappings":";;;AAGA,IAAM,yBAAyB,IAC7B,CACE,aAAa,MAAM,GACnB,0KACF,GACA;CACE,UAAU,EACR,WAAW;EACT,KAAK;EACL,OACE;CACJ,EACF;CACA,iBAAiB,EACf,WAAW,MACb;AACF,CACF"}
1
+ {"version":3,"file":"radio-group-variants.js","names":[],"sources":["../../../src/components/ui/radio-group-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport { inputSurface } from '@/components/ui/input-surface';\n\nconst radioGroupItemVariants = cva(\n [\n inputSurface('self'),\n 'peer grid size-4 shrink-0 place-content-center rounded-full border-border-strong bg-control-surface p-0 text-primary enabled:hover:bg-interactive-hover data-[state=checked]:border-primary',\n ],\n {\n variants: {\n indicator: {\n dot: '',\n check:\n 'data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground enabled:data-[state=checked]:hover:bg-primary',\n },\n },\n defaultVariants: {\n indicator: 'dot',\n },\n },\n);\n\nexport { radioGroupItemVariants };\n"],"mappings":";;;AAGA,IAAM,yBAAyB,IAC7B,CACE,aAAa,MAAM,GACnB,6LACF,GACA;CACE,UAAU,EACR,WAAW;EACT,KAAK;EACL,OACE;CACJ,EACF;CACA,iBAAiB,EACf,WAAW,MACb;AACF,CACF"}
@@ -1,14 +1,14 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  //#region src/components/ui/select-variants.ts
3
- var selectTriggerVariants = cva("flex h-(--control-height) w-full items-center justify-between px-3 py-2 text-control whitespace-nowrap hover:bg-button-hover data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1", {
3
+ var selectTriggerVariants = cva("flex h-(--control-height) w-full items-center justify-between px-3 py-2 text-(length:--text-field) whitespace-nowrap hover:bg-button-hover data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1", {
4
4
  variants: {
5
5
  variant: {
6
6
  default: "",
7
- ghost: "border-transparent bg-transparent shadow-none",
8
- secondary: "border-transparent bg-tab-active text-secondary-foreground shadow-none hover:bg-secondary"
7
+ ghost: "border-transparent bg-transparent shadow-none [--radius-field:var(--radius-control)] [--text-field:var(--text-control)]",
8
+ secondary: "border-transparent bg-tab-active text-secondary-foreground shadow-none [--radius-field:var(--radius-control)] [--text-field:var(--text-control)] hover:bg-secondary"
9
9
  },
10
10
  shape: {
11
- rounded: "rounded-control",
11
+ rounded: "rounded-field",
12
12
  pill: "rounded-full"
13
13
  }
14
14
  },
@@ -1 +1 @@
1
- {"version":3,"file":"select-variants.js","names":[],"sources":["../../../src/components/ui/select-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\nconst selectTriggerVariants = cva(\n 'flex h-(--control-height) w-full items-center justify-between px-3 py-2 text-control whitespace-nowrap hover:bg-button-hover data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1',\n {\n variants: {\n variant: {\n default: '',\n ghost: 'border-transparent bg-transparent shadow-none',\n secondary:\n 'border-transparent bg-tab-active text-secondary-foreground shadow-none hover:bg-secondary',\n },\n shape: {\n rounded: 'rounded-control',\n pill: 'rounded-full',\n },\n },\n compoundVariants: [\n {\n variant: ['secondary', 'ghost'],\n className:\n 'enabled:active:shadow-control-pressed enabled:aria-expanded:shadow-control-pressed',\n },\n {\n variant: 'ghost',\n className: 'enabled:active:bg-button-pressed enabled:aria-expanded:bg-button-pressed',\n },\n {\n variant: 'secondary',\n className: 'enabled:active:bg-secondary enabled:aria-expanded:bg-secondary',\n },\n ],\n defaultVariants: {\n variant: 'default',\n shape: 'rounded',\n },\n },\n);\n\nexport { selectTriggerVariants };\n"],"mappings":";;AAEA,IAAM,wBAAwB,IAC5B,+LACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,OAAO;GACP,WACE;EACJ;EACA,OAAO;GACL,SAAS;GACT,MAAM;EACR;CACF;CACA,kBAAkB;EAChB;GACE,SAAS,CAAC,aAAa,OAAO;GAC9B,WACE;EACJ;EACA;GACE,SAAS;GACT,WAAW;EACb;EACA;GACE,SAAS;GACT,WAAW;EACb;CACF;CACA,iBAAiB;EACf,SAAS;EACT,OAAO;CACT;AACF,CACF"}
1
+ {"version":3,"file":"select-variants.js","names":[],"sources":["../../../src/components/ui/select-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\nconst selectTriggerVariants = cva(\n 'flex h-(--control-height) w-full items-center justify-between px-3 py-2 text-(length:--text-field) whitespace-nowrap hover:bg-button-hover data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1',\n {\n variants: {\n variant: {\n default: '',\n // Ghost and secondary triggers read as buttons, so they keep a button's corners.\n ghost:\n 'border-transparent bg-transparent shadow-none [--radius-field:var(--radius-control)] [--text-field:var(--text-control)]',\n secondary:\n 'border-transparent bg-tab-active text-secondary-foreground shadow-none [--radius-field:var(--radius-control)] [--text-field:var(--text-control)] hover:bg-secondary',\n },\n shape: {\n rounded: 'rounded-field',\n pill: 'rounded-full',\n },\n },\n compoundVariants: [\n {\n variant: ['secondary', 'ghost'],\n className:\n 'enabled:active:shadow-control-pressed enabled:aria-expanded:shadow-control-pressed',\n },\n {\n variant: 'ghost',\n className: 'enabled:active:bg-button-pressed enabled:aria-expanded:bg-button-pressed',\n },\n {\n variant: 'secondary',\n className: 'enabled:active:bg-secondary enabled:aria-expanded:bg-secondary',\n },\n ],\n defaultVariants: {\n variant: 'default',\n shape: 'rounded',\n },\n },\n);\n\nexport { selectTriggerVariants };\n"],"mappings":";;AAEA,IAAM,wBAAwB,IAC5B,6MACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GAET,OACE;GACF,WACE;EACJ;EACA,OAAO;GACL,SAAS;GACT,MAAM;EACR;CACF;CACA,kBAAkB;EAChB;GACE,SAAS,CAAC,aAAa,OAAO;GAC9B,WACE;EACJ;EACA;GACE,SAAS;GACT,WAAW;EACb;EACA;GACE,SAAS;GACT,WAAW;EACb;CACF;CACA,iBAAiB;EACf,SAAS;EACT,OAAO;CACT;AACF,CACF"}
@@ -51,7 +51,7 @@ var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
51
51
  SheetFooter.displayName = "SheetFooter";
52
52
  var SheetTitle = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SheetPrimitive.Title, {
53
53
  ref,
54
- className: cn("text-xl font-semibold text-foreground", className),
54
+ className: cn("text-xl font-semibold text-foreground in-data-[admin7-design=true]:font-title", className),
55
55
  ...props
56
56
  }));
57
57
  SheetTitle.displayName = SheetPrimitive.Title.displayName;
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.js","names":[],"sources":["../../../src/components/ui/sheet.tsx"],"sourcesContent":["'use client';\n\n// Disable sourcemap for this file due to source map resolution errors\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\nimport { ShadeScope } from '@/shade-scope';\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 bg-black/10 duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0',\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n 'fixed z-50 gap-4 bg-surface-elevated p-8 shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:animate-in data-[state=open]:duration-500',\n {\n variants: {\n side: {\n top: 'inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top',\n bottom:\n 'inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom',\n left: 'inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm',\n right:\n 'inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n },\n);\n\ninterface SheetContentProps\n extends\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = 'right', className, children, ...props }, ref) => (\n <SheetPortal>\n <ShadeScope>\n <SheetOverlay />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n <SheetPrimitive.Close className=\"fixed top-4 right-4 z-50 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <X className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n {children}\n </SheetPrimitive.Content>\n </ShadeScope>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-1 text-center sm:text-left', className)} {...props} />\n);\nSheetHeader.displayName = 'SheetHeader';\n\nconst SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2', className)}\n {...props}\n />\n);\nSheetFooter.displayName = 'SheetFooter';\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn('text-xl font-semibold text-foreground', className)}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n"],"mappings":";;;;;;;;;AAWA,IAAM,QAAQ,eAAe;AAE7B,IAAM,eAAe,eAAe;AAEpC,IAAM,aAAa,eAAe;AAElC,IAAM,cAAc,eAAe;AAEnC,IAAM,eAA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BAAmB,QAAM,YAG5B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,eAAe,aAAhB;CACO;CACL,WAAW,GAAG,iCAAiC,SAAS;CACxD,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc,eAAe,YAAY"}
1
+ {"version":3,"file":"sheet.js","names":[],"sources":["../../../src/components/ui/sheet.tsx"],"sourcesContent":["'use client';\n\n// Disable sourcemap for this file due to source map resolution errors\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\nimport { ShadeScope } from '@/shade-scope';\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 bg-black/10 duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0',\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n 'fixed z-50 gap-4 bg-surface-elevated p-8 shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:animate-in data-[state=open]:duration-500',\n {\n variants: {\n side: {\n top: 'inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top',\n bottom:\n 'inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom',\n left: 'inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm',\n right:\n 'inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n },\n);\n\ninterface SheetContentProps\n extends\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = 'right', className, children, ...props }, ref) => (\n <SheetPortal>\n <ShadeScope>\n <SheetOverlay />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n <SheetPrimitive.Close className=\"fixed top-4 right-4 z-50 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <X className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n {children}\n </SheetPrimitive.Content>\n </ShadeScope>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-1 text-center sm:text-left', className)} {...props} />\n);\nSheetHeader.displayName = 'SheetHeader';\n\nconst SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2', className)}\n {...props}\n />\n);\nSheetFooter.displayName = 'SheetFooter';\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn(\n 'text-xl font-semibold text-foreground in-data-[admin7-design=true]:font-title',\n className,\n )}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n"],"mappings":";;;;;;;;;AAWA,IAAM,QAAQ,eAAe;AAE7B,IAAM,eAAe,eAAe;AAEpC,IAAM,aAAa,eAAe;AAElC,IAAM,cAAc,eAAe;AAEnC,IAAM,eAAe,QAAM,YAGxB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,eAAe,SAAhB;CACE,WAAW,GACT,wKACA,SACF;CACA,GAAI;CACC;AACN,CAAA,CACF;AACD,aAAa,cAAc,eAAe,QAAQ;AAElD,IAAM,gBAAgB,IACpB,0MACA;CACE,UAAU,EACR,MAAM;EACJ,KAAK;EACL,QACE;EACF,MAAM;EACN,OACE;CACJ,EACF;CACA,iBAAiB,EACf,MAAM,QACR;AACF,CACF;AAOA,IAAM,eAAe,QAAM,YAGxB,EAAE,OAAO,SAAS,WAAW,UAAU,GAAG,SAAS,QACpD,oBAAC,aAAD,EAAA,UACE,qBAAC,YAAD,EAAA,UAAA,CACE,oBAAC,cAAD,CAAe,CAAA,GACf,qBAAC,eAAe,SAAhB;CACO;CACL,WAAW,GAAG,cAAc,EAAE,KAAK,CAAC,GAAG,SAAS;CAChD,GAAI;WAHN,CAKE,qBAAC,eAAe,OAAhB;EAAsB,WAAU;YAAhC,CACE,oBAAC,GAAD,EAAG,WAAU,SAAU,CAAA,GACvB,oBAAC,QAAD;GAAM,WAAU;aAAU;EAAW,CAAA,CACjB;KACrB,QACqB;EACd,EAAA,CAAA,EACD,CAAA,CACd;AACD,aAAa,cAAc,eAAe,QAAQ;AAElD,IAAM,eAAe,EAAE,WAAW,GAAG,YACnC,oBAAC,OAAD;CAAK,WAAW,GAAG,oDAAoD,SAAS;CAAG,GAAI;AAAQ,CAAA;AAEjG,YAAY,cAAc;AAE1B,IAAM,eAAe,EAAE,WAAW,GAAG,YACnC,oBAAC,OAAD;CACE,WAAW,GAAG,6DAA6D,SAAS;CACpF,GAAI;AACL,CAAA;AAEH,YAAY,cAAc;AAE1B,IAAM,aAAa,QAAM,YAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,eAAe,OAAhB;CACO;CACL,WAAW,GACT,iFACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,WAAW,cAAc,eAAe,MAAM;AAE9C,IAAM,mBAAmB,QAAM,YAG5B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,eAAe,aAAhB;CACO;CACL,WAAW,GAAG,iCAAiC,SAAS;CACxD,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc,eAAe,YAAY"}
@@ -39,7 +39,7 @@ var TableRow = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__
39
39
  TableRow.displayName = "TableRow";
40
40
  var headVariants = cva("relative align-middle", {
41
41
  variants: { variant: {
42
- default: "h-(--control-height) px-2 text-left text-sm font-medium tracking-wide text-text-secondary [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
42
+ default: "column-label h-(--control-height) px-2 text-left text-sm font-medium tracking-wide text-text-secondary [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
43
43
  cardhead: "text-base font-normal [&>div]:px-0"
44
44
  } },
45
45
  defaultVariants: { variant: "default" }
@@ -55,7 +55,7 @@ var TableHead = React$1.forwardRef(({ className, variant, ...props }, ref) => /*
55
55
  TableHead.displayName = "TableHead";
56
56
  var TableHeadButton = ({ className, children, ...props }) => {
57
57
  return /* @__PURE__ */ jsx(Button, {
58
- className: cn("gap-1 px-0 text-right text-sm leading-4 tracking-wide text-text-secondary uppercase hover:bg-transparent [&_svg]:size-4", className),
58
+ className: cn("column-label gap-1 px-0 text-right text-sm leading-4 tracking-wide text-text-secondary uppercase hover:bg-transparent [&_svg]:size-4", className),
59
59
  size: "sm",
60
60
  variant: "ghost",
61
61
  ...props,
@@ -1 +1 @@
1
- {"version":3,"file":"table.js","names":[],"sources":["../../../src/components/ui/table.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { Button } from './button';\nimport { cva, VariantProps } from 'class-variance-authority';\n\nconst Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(\n ({ className, ...props }, ref) => (\n <div className=\"relative w-full\">\n <table ref={ref} className={cn('w-full caption-bottom text-base', className)} {...props} />\n </div>\n ),\n);\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead ref={ref} className={cn('[&_tr:hover:before]:bg-transparent', className)} {...props} />\n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => <tbody ref={ref} className={cn('', className)} {...props} />);\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn('border-b bg-muted/50 font-medium [&>tr]:last:border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(\n ({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn('group relative border-b data-[state=selected]:bg-muted', className)}\n {...props}\n />\n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst headVariants = cva('relative align-middle', {\n variants: {\n variant: {\n default:\n 'h-(--control-height) px-2 text-left text-sm font-medium tracking-wide text-text-secondary [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n cardhead: 'text-base font-normal [&>div]:px-0',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface TableHeadProps\n extends React.ThHTMLAttributes<HTMLTableCellElement>, VariantProps<typeof headVariants> {\n asChild?: boolean;\n}\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>(\n ({ className, variant, ...props }, ref) => (\n <th ref={ref} className={cn(headVariants({ variant, className }))} {...props} />\n ),\n);\nTableHead.displayName = 'TableHead';\n\ntype TableHeadButtonProps = React.ComponentProps<typeof Button>;\n\nconst TableHeadButton: React.FC<TableHeadButtonProps> = ({ className, children, ...props }) => {\n const buttonClassName = cn(\n 'gap-1 px-0 text-right text-sm leading-4 tracking-wide text-text-secondary uppercase hover:bg-transparent [&_svg]:size-4',\n className,\n );\n return (\n <Button className={buttonClassName} size=\"sm\" variant=\"ghost\" {...props}>\n {children}\n </Button>\n );\n};\nTableHeadButton.displayName = 'TableHeadButton';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n 'relative p-2.5 align-middle group-hover:bg-table-row-hover [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n className,\n )}\n {...props}\n />\n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption ref={ref} className={cn('mt-4 text-base text-muted-foreground', className)} {...props} />\n));\nTableCaption.displayName = 'TableCaption';\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableHeadButton,\n TableRow,\n TableCell,\n TableCaption,\n};\n"],"mappings":";;;;;;A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D;EAAQ,WALc,GACtB,2HACA,SAGmB;EAAiB,MAAK;EAAK,SAAQ;EAAQ,GAAI;EAC/D;CACK,CAAA;AAEZ;AACA,gBAAgB,cAAc;AAE9B,IAAM,YAAY,QAAM,YAGrB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,MAAD;CACO;CACL,WAAW,GACT,kIACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,UAAU,cAAc;AAExB,IAAM,eAAe,QAAM,YAGxB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,WAAD;CAAc;CAAK,WAAW,GAAG,wCAAwC,SAAS;CAAG,GAAI;AAAQ,CAAA,CAClG;AACD,aAAa,cAAc"}
1
+ {"version":3,"file":"table.js","names":[],"sources":["../../../src/components/ui/table.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { Button } from './button';\nimport { cva, VariantProps } from 'class-variance-authority';\n\nconst Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(\n ({ className, ...props }, ref) => (\n <div className=\"relative w-full\">\n <table ref={ref} className={cn('w-full caption-bottom text-base', className)} {...props} />\n </div>\n ),\n);\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead ref={ref} className={cn('[&_tr:hover:before]:bg-transparent', className)} {...props} />\n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => <tbody ref={ref} className={cn('', className)} {...props} />);\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn('border-b bg-muted/50 font-medium [&>tr]:last:border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(\n ({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn('group relative border-b data-[state=selected]:bg-muted', className)}\n {...props}\n />\n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst headVariants = cva('relative align-middle', {\n variants: {\n variant: {\n default:\n 'column-label h-(--control-height) px-2 text-left text-sm font-medium tracking-wide text-text-secondary [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n cardhead: 'text-base font-normal [&>div]:px-0',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface TableHeadProps\n extends React.ThHTMLAttributes<HTMLTableCellElement>, VariantProps<typeof headVariants> {\n asChild?: boolean;\n}\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>(\n ({ className, variant, ...props }, ref) => (\n <th ref={ref} className={cn(headVariants({ variant, className }))} {...props} />\n ),\n);\nTableHead.displayName = 'TableHead';\n\ntype TableHeadButtonProps = React.ComponentProps<typeof Button>;\n\nconst TableHeadButton: React.FC<TableHeadButtonProps> = ({ className, children, ...props }) => {\n const buttonClassName = cn(\n 'column-label gap-1 px-0 text-right text-sm leading-4 tracking-wide text-text-secondary uppercase hover:bg-transparent [&_svg]:size-4',\n className,\n );\n return (\n <Button className={buttonClassName} size=\"sm\" variant=\"ghost\" {...props}>\n {children}\n </Button>\n );\n};\nTableHeadButton.displayName = 'TableHeadButton';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n 'relative p-2.5 align-middle group-hover:bg-table-row-hover [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n className,\n )}\n {...props}\n />\n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption ref={ref} className={cn('mt-4 text-base text-muted-foreground', className)} {...props} />\n));\nTableCaption.displayName = 'TableCaption';\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableHeadButton,\n TableRow,\n TableCell,\n TableCaption,\n};\n"],"mappings":";;;;;;AAMA,IAAM,QAAQ,QAAM,YACjB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,OAAD;CAAK,WAAU;WACb,oBAAC,SAAD;EAAY;EAAK,WAAW,GAAG,mCAAmC,SAAS;EAAG,GAAI;CAAQ,CAAA;AACvF,CAAA,CAET;AACA,MAAM,cAAc;AAEpB,IAAM,cAAc,QAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,SAAD;CAAY;CAAK,WAAW,GAAG,sCAAsC,SAAS;CAAG,GAAI;AAAQ,CAAA,CAC9F;AACD,YAAY,cAAc;AAE1B,IAAM,YAAY,QAAM,YAGrB,EAAE,WAAW,GAAG,SAAS,QAAQ,oBAAC,SAAD;CAAY;CAAK,WAAW,GAAG,IAAI,SAAS;CAAG,GAAI;AAAQ,CAAA,CAAC;AAChG,UAAU,cAAc;AAExB,IAAM,cAAc,QAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,SAAD;CACO;CACL,WAAW,GAAG,2DAA2D,SAAS;CAClF,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc;AAE1B,IAAM,WAAW,QAAM,YACpB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,MAAD;CACO;CACL,WAAW,GAAG,0DAA0D,SAAS;CACjF,GAAI;AACL,CAAA,CAEL;AACA,SAAS,cAAc;AAEvB,IAAM,eAAe,IAAI,yBAAyB;CAChD,UAAU,EACR,SAAS;EACP,SACE;EACF,UAAU;CACZ,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CAAC;AAOD,IAAM,YAAY,QAAM,YACrB,EAAE,WAAW,SAAS,GAAG,SAAS,QACjC,oBAAC,MAAD;CAAS;CAAK,WAAW,GAAG,aAAa;EAAE;EAAS;CAAU,CAAC,CAAC;CAAG,GAAI;AAAQ,CAAA,CAEnF;AACA,UAAU,cAAc;AAIxB,IAAM,mBAAmD,EAAE,WAAW,UAAU,GAAG,YAAY;CAK7F,OACE,oBAAC,QAAD;EAAQ,WALc,GACtB,wIACA,SAGmB;EAAiB,MAAK;EAAK,SAAQ;EAAQ,GAAI;EAC/D;CACK,CAAA;AAEZ;AACA,gBAAgB,cAAc;AAE9B,IAAM,YAAY,QAAM,YAGrB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,MAAD;CACO;CACL,WAAW,GACT,kIACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,UAAU,cAAc;AAExB,IAAM,eAAe,QAAM,YAGxB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,WAAD;CAAc;CAAK,WAAW,GAAG,wCAAwC,SAAS;CAAG,GAAI;AAAQ,CAAA,CAClG;AACD,aAAa,cAAc"}
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
6
6
  var Textarea = React$1.forwardRef(({ className, ...props }, ref) => {
7
7
  return /* @__PURE__ */ jsx("textarea", {
8
8
  ref,
9
- className: cn(inputSurface("self"), inputSurfaceClasses.disabledFieldSelf, "flex min-h-[80px] w-full max-w-none px-3 py-2 text-base placeholder:text-muted-foreground", className),
9
+ className: cn(inputSurface("self"), inputSurfaceClasses.disabledFieldSelf, "flex min-h-[80px] w-full max-w-none px-3 py-2 text-(length:--text-field) placeholder:text-muted-foreground", className),
10
10
  ...props
11
11
  });
12
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.js","names":[],"sources":["../../../src/components/ui/textarea.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { inputSurface, inputSurfaceClasses } from '@/components/ui/input-surface';\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, React.ComponentProps<'textarea'>>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n ref={ref}\n className={cn(\n inputSurface('self'),\n inputSurfaceClasses.disabledFieldSelf,\n 'flex min-h-[80px] w-full max-w-none px-3 py-2 text-base placeholder:text-muted-foreground',\n className,\n )}\n {...props}\n />\n );\n },\n);\nTextarea.displayName = 'Textarea';\n\nexport { Textarea };\n"],"mappings":";;;;;AAKA,IAAM,WAAW,QAAM,YACpB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAChC,OACE,oBAAC,YAAD;EACO;EACL,WAAW,GACT,aAAa,MAAM,GACnB,oBAAoB,mBACpB,6FACA,SACF;EACA,GAAI;CACL,CAAA;AAEL,CACF;AACA,SAAS,cAAc"}
1
+ {"version":3,"file":"textarea.js","names":[],"sources":["../../../src/components/ui/textarea.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { inputSurface, inputSurfaceClasses } from '@/components/ui/input-surface';\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, React.ComponentProps<'textarea'>>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n ref={ref}\n className={cn(\n inputSurface('self'),\n inputSurfaceClasses.disabledFieldSelf,\n 'flex min-h-[80px] w-full max-w-none px-3 py-2 text-(length:--text-field) placeholder:text-muted-foreground',\n className,\n )}\n {...props}\n />\n );\n },\n);\nTextarea.displayName = 'Textarea';\n\nexport { Textarea };\n"],"mappings":";;;;;AAKA,IAAM,WAAW,QAAM,YACpB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAChC,OACE,oBAAC,YAAD;EACO;EACL,WAAW,GACT,aAAa,MAAM,GACnB,oBAAoB,mBACpB,8GACA,SACF;EACA,GAAI;CACL,CAAA;AAEL,CACF;AACA,SAAS,cAAc"}
@@ -3,9 +3,9 @@ import { inputSurface } from "./input-surface.js";
3
3
  //#region src/components/ui/token-field.ts
4
4
  /** Shared chip density for token inputs such as labels, tags and authors. */
5
5
  var tokenFieldClasses = {
6
- field: cn(inputSurface("within"), "relative flex min-h-(--control-height) w-full cursor-text flex-wrap items-center gap-1 p-0.75 text-control"),
7
- input: "min-w-20 flex-1 bg-transparent px-2 text-control outline-hidden placeholder:text-muted-foreground",
8
- chip: "h-auto min-h-6 max-w-full cursor-pointer gap-1 rounded-xl border-transparent px-2 py-0.75 pr-1.5 text-left text-sm leading-4 whitespace-normal",
6
+ field: cn(inputSurface("within"), "relative flex min-h-(--control-height) w-full cursor-text flex-wrap items-center gap-1 p-0.75 text-(length:--text-field)"),
7
+ input: "min-w-20 flex-1 bg-transparent px-2 text-(length:--text-field) outline-hidden placeholder:text-muted-foreground",
8
+ chip: "h-auto min-h-6 max-w-full cursor-pointer gap-1 rounded-xl border-transparent bg-field-chip-surface px-2 py-0.75 pr-1.5 text-left text-sm leading-4 whitespace-normal",
9
9
  chevron: "pointer-events-none absolute top-[calc((var(--control-height)-var(--spacing)*4)/2-1px)] right-1.5 size-4 text-muted-foreground"
10
10
  };
11
11
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"token-field.js","names":[],"sources":["../../../src/components/ui/token-field.ts"],"sourcesContent":["import { inputSurface } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\n\n/** Shared chip density for token inputs such as labels, tags and authors. */\nexport const tokenFieldClasses = {\n field: cn(\n inputSurface('within'),\n 'relative flex min-h-(--control-height) w-full cursor-text flex-wrap items-center gap-1 p-0.75 text-control',\n ),\n input:\n 'min-w-20 flex-1 bg-transparent px-2 text-control outline-hidden placeholder:text-muted-foreground',\n // 24px on one line; long names wrap.\n chip: 'h-auto min-h-6 max-w-full cursor-pointer gap-1 rounded-xl border-transparent px-2 py-0.75 pr-1.5 text-left text-sm leading-4 whitespace-normal',\n // Matches Select's chevron; offsets start inside the 1px border.\n chevron:\n 'pointer-events-none absolute top-[calc((var(--control-height)-var(--spacing)*4)/2-1px)] right-1.5 size-4 text-muted-foreground',\n} as const;\n"],"mappings":";;;;AAIA,IAAa,oBAAoB;CAC/B,OAAO,GACL,aAAa,QAAQ,GACrB,4GACF;CACA,OACE;CAEF,MAAM;CAEN,SACE;AACJ"}
1
+ {"version":3,"file":"token-field.js","names":[],"sources":["../../../src/components/ui/token-field.ts"],"sourcesContent":["import { inputSurface } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\n\n/** Shared chip density for token inputs such as labels, tags and authors. */\nexport const tokenFieldClasses = {\n field: cn(\n inputSurface('within'),\n 'relative flex min-h-(--control-height) w-full cursor-text flex-wrap items-center gap-1 p-0.75 text-(length:--text-field)',\n ),\n input:\n 'min-w-20 flex-1 bg-transparent px-2 text-(length:--text-field) outline-hidden placeholder:text-muted-foreground',\n // 24px on one line; long names wrap.\n chip: 'h-auto min-h-6 max-w-full cursor-pointer gap-1 rounded-xl border-transparent bg-field-chip-surface px-2 py-0.75 pr-1.5 text-left text-sm leading-4 whitespace-normal',\n // Matches Select's chevron; offsets start inside the 1px border.\n chevron:\n 'pointer-events-none absolute top-[calc((var(--control-height)-var(--spacing)*4)/2-1px)] right-1.5 size-4 text-muted-foreground',\n} as const;\n"],"mappings":";;;;AAIA,IAAa,oBAAoB;CAC/B,OAAO,GACL,aAAa,QAAQ,GACrB,0HACF;CACA,OACE;CAEF,MAAM;CAEN,SACE;AACJ"}
package/es/tokens.js CHANGED
@@ -243,6 +243,13 @@ var SHADE_TOKEN_NAMES = [
243
243
  "duration-slow",
244
244
  "ease-emphasized",
245
245
  "ease-standard",
246
+ "field-border",
247
+ "field-chip-internal-border",
248
+ "field-chip-internal-surface",
249
+ "field-chip-surface",
250
+ "field-disabled-surface",
251
+ "field-readonly-surface",
252
+ "field-surface",
246
253
  "focus-ring",
247
254
  "font-body",
248
255
  "font-code",
@@ -251,6 +258,7 @@ var SHADE_TOKEN_NAMES = [
251
258
  "font-mono",
252
259
  "font-sans",
253
260
  "font-serif",
261
+ "font-weight-title",
254
262
  "foreground",
255
263
  "input",
256
264
  "input-group-radius",
@@ -281,6 +289,7 @@ var SHADE_TOKEN_NAMES = [
281
289
  "radius-card",
282
290
  "radius-control",
283
291
  "radius-control-sm",
292
+ "radius-field",
284
293
  "radius-full",
285
294
  "radius-lg",
286
295
  "radius-md",
@@ -350,10 +359,12 @@ var SHADE_TOKEN_NAMES = [
350
359
  "text-body-sm",
351
360
  "text-control",
352
361
  "text-control-lg",
362
+ "text-field",
353
363
  "text-lg",
354
364
  "text-md",
355
365
  "text-primary",
356
366
  "text-secondary",
367
+ "text-section-heading",
357
368
  "text-sm",
358
369
  "text-tertiary",
359
370
  "text-xl",
package/es/tokens.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","names":[],"sources":["../src/tokens.ts"],"sourcesContent":["// Token helpers generated from Tailwind + runtime CSS variable surfaces.\nexport const SHADE_TOKEN_NAMES = [\n 'accent',\n 'accent-foreground',\n 'animate-accordion-down',\n 'animate-accordion-up',\n 'animate-fade-in',\n 'animate-fade-out',\n 'animate-modal-backdrop-in',\n 'animate-modal-in',\n 'animate-modal-in-from-right',\n 'animate-modal-in-reverse',\n 'animate-spin',\n 'animate-toaster-in',\n 'animate-toaster-out',\n 'animate-toaster-top-in',\n 'background',\n 'border',\n 'border-default',\n 'border-strong',\n 'breakpoint-lg',\n 'breakpoint-md',\n 'breakpoint-sidebar',\n 'breakpoint-sidebarlg',\n 'breakpoint-sm',\n 'breakpoint-tablet',\n 'breakpoint-xl',\n 'breakpoint-xxl',\n 'breakpoint-xxxl',\n 'card',\n 'card-foreground',\n 'chart-1',\n 'chart-2',\n 'chart-3',\n 'chart-4',\n 'chart-5',\n 'chart-amber',\n 'chart-blue',\n 'chart-darkblue',\n 'chart-darkgray',\n 'chart-gray',\n 'chart-green',\n 'chart-orange',\n 'chart-purple',\n 'chart-rose',\n 'chart-teal',\n 'chart-yellow',\n 'color-accent',\n 'color-accent-foreground',\n 'color-background',\n 'color-black',\n 'color-blue',\n 'color-blue-100',\n 'color-blue-200',\n 'color-blue-300',\n 'color-blue-400',\n 'color-blue-50',\n 'color-blue-500',\n 'color-blue-600',\n 'color-blue-700',\n 'color-blue-800',\n 'color-blue-900',\n 'color-border',\n 'color-border-default',\n 'color-border-strong',\n 'color-card',\n 'color-card-foreground',\n 'color-chart-1',\n 'color-chart-2',\n 'color-chart-3',\n 'color-chart-4',\n 'color-chart-5',\n 'color-chart-amber',\n 'color-chart-blue',\n 'color-chart-darkgray',\n 'color-chart-gray',\n 'color-chart-green',\n 'color-chart-orange',\n 'color-chart-purple',\n 'color-chart-rose',\n 'color-chart-teal',\n 'color-chart-yellow',\n 'color-current',\n 'color-destructive',\n 'color-destructive-foreground',\n 'color-focus-ring',\n 'color-foreground',\n 'color-ghostaccent',\n 'color-gray',\n 'color-gray-100',\n 'color-gray-200',\n 'color-gray-300',\n 'color-gray-400',\n 'color-gray-50',\n 'color-gray-500',\n 'color-gray-600',\n 'color-gray-700',\n 'color-gray-800',\n 'color-gray-900',\n 'color-gray-950',\n 'color-green',\n 'color-green-100',\n 'color-green-200',\n 'color-green-300',\n 'color-green-400',\n 'color-green-50',\n 'color-green-500',\n 'color-green-600',\n 'color-green-700',\n 'color-green-800',\n 'color-green-900',\n 'color-input',\n 'color-lime',\n 'color-lime-100',\n 'color-lime-200',\n 'color-lime-300',\n 'color-lime-400',\n 'color-lime-50',\n 'color-lime-500',\n 'color-lime-600',\n 'color-lime-700',\n 'color-lime-800',\n 'color-lime-900',\n 'color-map-surface',\n 'color-muted',\n 'color-muted-foreground',\n 'color-orange',\n 'color-orange-100',\n 'color-orange-200',\n 'color-orange-300',\n 'color-orange-400',\n 'color-orange-50',\n 'color-orange-500',\n 'color-orange-600',\n 'color-orange-700',\n 'color-orange-800',\n 'color-orange-900',\n 'color-pink',\n 'color-pink-100',\n 'color-pink-200',\n 'color-pink-300',\n 'color-pink-400',\n 'color-pink-50',\n 'color-pink-500',\n 'color-pink-600',\n 'color-pink-700',\n 'color-pink-800',\n 'color-pink-900',\n 'color-popover',\n 'color-popover-foreground',\n 'color-primary',\n 'color-primary-foreground',\n 'color-publish-accent',\n 'color-purple',\n 'color-purple-100',\n 'color-purple-200',\n 'color-purple-300',\n 'color-purple-400',\n 'color-purple-50',\n 'color-purple-500',\n 'color-purple-600',\n 'color-purple-700',\n 'color-purple-800',\n 'color-purple-900',\n 'color-red',\n 'color-red-100',\n 'color-red-200',\n 'color-red-300',\n 'color-red-400',\n 'color-red-50',\n 'color-red-500',\n 'color-red-600',\n 'color-red-700',\n 'color-red-800',\n 'color-red-900',\n 'color-ring',\n 'color-secondary',\n 'color-secondary-foreground',\n 'color-sidebar',\n 'color-sidebar-accent',\n 'color-sidebar-accent-foreground',\n 'color-sidebar-border',\n 'color-sidebar-foreground',\n 'color-sidebar-primary',\n 'color-sidebar-primary-foreground',\n 'color-sidebar-ring',\n 'color-state-danger',\n 'color-state-danger-foreground',\n 'color-state-info',\n 'color-state-info-foreground',\n 'color-state-success',\n 'color-state-success-foreground',\n 'color-state-warning',\n 'color-state-warning-border',\n 'color-state-warning-fill',\n 'color-state-warning-foreground',\n 'color-state-warning-surface',\n 'color-surface-elevated',\n 'color-surface-page',\n 'color-surface-panel',\n 'color-text-primary',\n 'color-text-secondary',\n 'color-text-tertiary',\n 'color-transparent',\n 'color-white',\n 'color-yellow',\n 'color-yellow-100',\n 'color-yellow-200',\n 'color-yellow-300',\n 'color-yellow-400',\n 'color-yellow-50',\n 'color-yellow-500',\n 'color-yellow-600',\n 'color-yellow-700',\n 'color-yellow-800',\n 'color-yellow-900',\n 'container-0',\n 'container-2xl',\n 'container-3xl',\n 'container-4xl',\n 'container-5xl',\n 'container-6xl',\n 'container-7xl',\n 'container-8xl',\n 'container-9xl',\n 'container-lg',\n 'container-md',\n 'container-page',\n 'container-pageminsidebar',\n 'container-prose',\n 'container-sm',\n 'container-xl',\n 'container-xs',\n 'control-height',\n 'control-height-lg',\n 'control-outline-pressed-shadow',\n 'control-outline-shadow',\n 'control-pressed-shadow',\n 'destructive',\n 'destructive-foreground',\n 'duration-base',\n 'duration-fast',\n 'duration-slow',\n 'ease-emphasized',\n 'ease-standard',\n 'focus-ring',\n 'font-body',\n 'font-code',\n 'font-heading',\n 'font-inherit',\n 'font-mono',\n 'font-sans',\n 'font-serif',\n 'foreground',\n 'input',\n 'input-group-radius',\n 'leading-base',\n 'leading-body',\n 'leading-heading',\n 'leading-loose',\n 'leading-none',\n 'leading-normal',\n 'leading-relaxed',\n 'leading-snug',\n 'leading-supertight',\n 'leading-tight',\n 'leading-tighter',\n 'map-surface',\n 'mobile-navbar-height',\n 'muted',\n 'muted-foreground',\n 'popover',\n 'popover-foreground',\n 'primary',\n 'primary-foreground',\n 'publish-accent',\n 'radius',\n 'radius-2xl',\n 'radius-3xl',\n 'radius-badge',\n 'radius-card',\n 'radius-control',\n 'radius-control-sm',\n 'radius-full',\n 'radius-lg',\n 'radius-md',\n 'radius-menu',\n 'radius-menu-item',\n 'radius-pill',\n 'radius-sm',\n 'radius-surface',\n 'radius-trend-badge',\n 'radius-xl',\n 'radius-xs',\n 'ring',\n 'secondary',\n 'secondary-foreground',\n 'shadow',\n 'shadow-control-outline',\n 'shadow-control-outline-pressed',\n 'shadow-control-pressed',\n 'shadow-inner',\n 'shadow-lg',\n 'shadow-md',\n 'shadow-md-heavy',\n 'shadow-none',\n 'shadow-sm',\n 'shadow-xl',\n 'shadow-xs',\n 'sidebar-accent',\n 'sidebar-accent-foreground',\n 'sidebar-background',\n 'sidebar-border',\n 'sidebar-foreground',\n 'sidebar-primary',\n 'sidebar-primary-foreground',\n 'sidebar-ring',\n 'spacing',\n 'state-danger',\n 'state-danger-foreground',\n 'state-info',\n 'state-info-foreground',\n 'state-success',\n 'state-success-foreground',\n 'state-warning',\n 'state-warning-border',\n 'state-warning-fill',\n 'state-warning-foreground',\n 'state-warning-surface',\n 'surface-elevated',\n 'surface-page',\n 'surface-panel',\n 'text-2xl',\n 'text-2xs',\n 'text-3xl',\n 'text-4xl',\n 'text-5xl',\n 'text-5xl--line-height',\n 'text-6xl',\n 'text-6xl--line-height',\n 'text-7xl',\n 'text-7xl--line-height',\n 'text-8xl',\n 'text-8xl--line-height',\n 'text-9xl',\n 'text-9xl--line-height',\n 'text-base',\n 'text-body-lg',\n 'text-body-md',\n 'text-body-sm',\n 'text-control',\n 'text-control-lg',\n 'text-lg',\n 'text-md',\n 'text-primary',\n 'text-secondary',\n 'text-sm',\n 'text-tertiary',\n 'text-xl',\n 'text-xs',\n 'tracking-normal',\n 'tracking-tight',\n 'tracking-tighter',\n 'tracking-tightest',\n 'tracking-wide',\n 'tracking-wider',\n 'tracking-widest',\n] as const;\n\nexport type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];\n\nexport const shadeToken = (name: ShadeTokenName): string => `var(--${name})`;\n"],"mappings":";AACA,IAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIA,IAAa,cAAc,SAAiC,SAAS,KAAK"}
1
+ {"version":3,"file":"tokens.js","names":[],"sources":["../src/tokens.ts"],"sourcesContent":["// Token helpers generated from Tailwind + runtime CSS variable surfaces.\nexport const SHADE_TOKEN_NAMES = [\n 'accent',\n 'accent-foreground',\n 'animate-accordion-down',\n 'animate-accordion-up',\n 'animate-fade-in',\n 'animate-fade-out',\n 'animate-modal-backdrop-in',\n 'animate-modal-in',\n 'animate-modal-in-from-right',\n 'animate-modal-in-reverse',\n 'animate-spin',\n 'animate-toaster-in',\n 'animate-toaster-out',\n 'animate-toaster-top-in',\n 'background',\n 'border',\n 'border-default',\n 'border-strong',\n 'breakpoint-lg',\n 'breakpoint-md',\n 'breakpoint-sidebar',\n 'breakpoint-sidebarlg',\n 'breakpoint-sm',\n 'breakpoint-tablet',\n 'breakpoint-xl',\n 'breakpoint-xxl',\n 'breakpoint-xxxl',\n 'card',\n 'card-foreground',\n 'chart-1',\n 'chart-2',\n 'chart-3',\n 'chart-4',\n 'chart-5',\n 'chart-amber',\n 'chart-blue',\n 'chart-darkblue',\n 'chart-darkgray',\n 'chart-gray',\n 'chart-green',\n 'chart-orange',\n 'chart-purple',\n 'chart-rose',\n 'chart-teal',\n 'chart-yellow',\n 'color-accent',\n 'color-accent-foreground',\n 'color-background',\n 'color-black',\n 'color-blue',\n 'color-blue-100',\n 'color-blue-200',\n 'color-blue-300',\n 'color-blue-400',\n 'color-blue-50',\n 'color-blue-500',\n 'color-blue-600',\n 'color-blue-700',\n 'color-blue-800',\n 'color-blue-900',\n 'color-border',\n 'color-border-default',\n 'color-border-strong',\n 'color-card',\n 'color-card-foreground',\n 'color-chart-1',\n 'color-chart-2',\n 'color-chart-3',\n 'color-chart-4',\n 'color-chart-5',\n 'color-chart-amber',\n 'color-chart-blue',\n 'color-chart-darkgray',\n 'color-chart-gray',\n 'color-chart-green',\n 'color-chart-orange',\n 'color-chart-purple',\n 'color-chart-rose',\n 'color-chart-teal',\n 'color-chart-yellow',\n 'color-current',\n 'color-destructive',\n 'color-destructive-foreground',\n 'color-focus-ring',\n 'color-foreground',\n 'color-ghostaccent',\n 'color-gray',\n 'color-gray-100',\n 'color-gray-200',\n 'color-gray-300',\n 'color-gray-400',\n 'color-gray-50',\n 'color-gray-500',\n 'color-gray-600',\n 'color-gray-700',\n 'color-gray-800',\n 'color-gray-900',\n 'color-gray-950',\n 'color-green',\n 'color-green-100',\n 'color-green-200',\n 'color-green-300',\n 'color-green-400',\n 'color-green-50',\n 'color-green-500',\n 'color-green-600',\n 'color-green-700',\n 'color-green-800',\n 'color-green-900',\n 'color-input',\n 'color-lime',\n 'color-lime-100',\n 'color-lime-200',\n 'color-lime-300',\n 'color-lime-400',\n 'color-lime-50',\n 'color-lime-500',\n 'color-lime-600',\n 'color-lime-700',\n 'color-lime-800',\n 'color-lime-900',\n 'color-map-surface',\n 'color-muted',\n 'color-muted-foreground',\n 'color-orange',\n 'color-orange-100',\n 'color-orange-200',\n 'color-orange-300',\n 'color-orange-400',\n 'color-orange-50',\n 'color-orange-500',\n 'color-orange-600',\n 'color-orange-700',\n 'color-orange-800',\n 'color-orange-900',\n 'color-pink',\n 'color-pink-100',\n 'color-pink-200',\n 'color-pink-300',\n 'color-pink-400',\n 'color-pink-50',\n 'color-pink-500',\n 'color-pink-600',\n 'color-pink-700',\n 'color-pink-800',\n 'color-pink-900',\n 'color-popover',\n 'color-popover-foreground',\n 'color-primary',\n 'color-primary-foreground',\n 'color-publish-accent',\n 'color-purple',\n 'color-purple-100',\n 'color-purple-200',\n 'color-purple-300',\n 'color-purple-400',\n 'color-purple-50',\n 'color-purple-500',\n 'color-purple-600',\n 'color-purple-700',\n 'color-purple-800',\n 'color-purple-900',\n 'color-red',\n 'color-red-100',\n 'color-red-200',\n 'color-red-300',\n 'color-red-400',\n 'color-red-50',\n 'color-red-500',\n 'color-red-600',\n 'color-red-700',\n 'color-red-800',\n 'color-red-900',\n 'color-ring',\n 'color-secondary',\n 'color-secondary-foreground',\n 'color-sidebar',\n 'color-sidebar-accent',\n 'color-sidebar-accent-foreground',\n 'color-sidebar-border',\n 'color-sidebar-foreground',\n 'color-sidebar-primary',\n 'color-sidebar-primary-foreground',\n 'color-sidebar-ring',\n 'color-state-danger',\n 'color-state-danger-foreground',\n 'color-state-info',\n 'color-state-info-foreground',\n 'color-state-success',\n 'color-state-success-foreground',\n 'color-state-warning',\n 'color-state-warning-border',\n 'color-state-warning-fill',\n 'color-state-warning-foreground',\n 'color-state-warning-surface',\n 'color-surface-elevated',\n 'color-surface-page',\n 'color-surface-panel',\n 'color-text-primary',\n 'color-text-secondary',\n 'color-text-tertiary',\n 'color-transparent',\n 'color-white',\n 'color-yellow',\n 'color-yellow-100',\n 'color-yellow-200',\n 'color-yellow-300',\n 'color-yellow-400',\n 'color-yellow-50',\n 'color-yellow-500',\n 'color-yellow-600',\n 'color-yellow-700',\n 'color-yellow-800',\n 'color-yellow-900',\n 'container-0',\n 'container-2xl',\n 'container-3xl',\n 'container-4xl',\n 'container-5xl',\n 'container-6xl',\n 'container-7xl',\n 'container-8xl',\n 'container-9xl',\n 'container-lg',\n 'container-md',\n 'container-page',\n 'container-pageminsidebar',\n 'container-prose',\n 'container-sm',\n 'container-xl',\n 'container-xs',\n 'control-height',\n 'control-height-lg',\n 'control-outline-pressed-shadow',\n 'control-outline-shadow',\n 'control-pressed-shadow',\n 'destructive',\n 'destructive-foreground',\n 'duration-base',\n 'duration-fast',\n 'duration-slow',\n 'ease-emphasized',\n 'ease-standard',\n 'field-border',\n 'field-chip-internal-border',\n 'field-chip-internal-surface',\n 'field-chip-surface',\n 'field-disabled-surface',\n 'field-readonly-surface',\n 'field-surface',\n 'focus-ring',\n 'font-body',\n 'font-code',\n 'font-heading',\n 'font-inherit',\n 'font-mono',\n 'font-sans',\n 'font-serif',\n 'font-weight-title',\n 'foreground',\n 'input',\n 'input-group-radius',\n 'leading-base',\n 'leading-body',\n 'leading-heading',\n 'leading-loose',\n 'leading-none',\n 'leading-normal',\n 'leading-relaxed',\n 'leading-snug',\n 'leading-supertight',\n 'leading-tight',\n 'leading-tighter',\n 'map-surface',\n 'mobile-navbar-height',\n 'muted',\n 'muted-foreground',\n 'popover',\n 'popover-foreground',\n 'primary',\n 'primary-foreground',\n 'publish-accent',\n 'radius',\n 'radius-2xl',\n 'radius-3xl',\n 'radius-badge',\n 'radius-card',\n 'radius-control',\n 'radius-control-sm',\n 'radius-field',\n 'radius-full',\n 'radius-lg',\n 'radius-md',\n 'radius-menu',\n 'radius-menu-item',\n 'radius-pill',\n 'radius-sm',\n 'radius-surface',\n 'radius-trend-badge',\n 'radius-xl',\n 'radius-xs',\n 'ring',\n 'secondary',\n 'secondary-foreground',\n 'shadow',\n 'shadow-control-outline',\n 'shadow-control-outline-pressed',\n 'shadow-control-pressed',\n 'shadow-inner',\n 'shadow-lg',\n 'shadow-md',\n 'shadow-md-heavy',\n 'shadow-none',\n 'shadow-sm',\n 'shadow-xl',\n 'shadow-xs',\n 'sidebar-accent',\n 'sidebar-accent-foreground',\n 'sidebar-background',\n 'sidebar-border',\n 'sidebar-foreground',\n 'sidebar-primary',\n 'sidebar-primary-foreground',\n 'sidebar-ring',\n 'spacing',\n 'state-danger',\n 'state-danger-foreground',\n 'state-info',\n 'state-info-foreground',\n 'state-success',\n 'state-success-foreground',\n 'state-warning',\n 'state-warning-border',\n 'state-warning-fill',\n 'state-warning-foreground',\n 'state-warning-surface',\n 'surface-elevated',\n 'surface-page',\n 'surface-panel',\n 'text-2xl',\n 'text-2xs',\n 'text-3xl',\n 'text-4xl',\n 'text-5xl',\n 'text-5xl--line-height',\n 'text-6xl',\n 'text-6xl--line-height',\n 'text-7xl',\n 'text-7xl--line-height',\n 'text-8xl',\n 'text-8xl--line-height',\n 'text-9xl',\n 'text-9xl--line-height',\n 'text-base',\n 'text-body-lg',\n 'text-body-md',\n 'text-body-sm',\n 'text-control',\n 'text-control-lg',\n 'text-field',\n 'text-lg',\n 'text-md',\n 'text-primary',\n 'text-secondary',\n 'text-section-heading',\n 'text-sm',\n 'text-tertiary',\n 'text-xl',\n 'text-xs',\n 'tracking-normal',\n 'tracking-tight',\n 'tracking-tighter',\n 'tracking-tightest',\n 'tracking-wide',\n 'tracking-wider',\n 'tracking-widest',\n] as const;\n\nexport type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];\n\nexport const shadeToken = (name: ShadeTokenName): string => `var(--${name})`;\n"],"mappings":";AACA,IAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIA,IAAa,cAAc,SAAiC,SAAS,KAAK"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/shade",
3
- "version": "0.1.0-alpha.23",
3
+ "version": "0.1.0-alpha.25",
4
4
  "description": "Ghost design system for React apps",
5
5
  "license": "MIT",
6
6
  "author": "Ghost Foundation",
package/styles.css CHANGED
@@ -28,6 +28,55 @@
28
28
  }
29
29
  }
30
30
 
31
+ /* admin7Design: a heading for a section inside a page, one step below the page's
32
+ title. Comes after the utilities at their specificity, so it beats text classes. */
33
+ .section-heading:where([data-admin7-design='true'] *) {
34
+ font-size: var(--text-section-heading);
35
+ font-weight: var(--font-weight-title);
36
+ letter-spacing: 0;
37
+ line-height: 1.35;
38
+ font-variation-settings:
39
+ 'opsz' 22,
40
+ 'wght' var(--font-weight-title);
41
+ font-feature-settings: 'dlig', 'zero', 'ss01', 'ss02', 'cv10', 'cv06';
42
+ }
43
+
44
+ /* admin7Design: a small label above a stat or a value, and a large, light number
45
+ for stats. Any unit inside the number is the number's size too. */
46
+ .stat-label:where([data-admin7-design='true'] *) {
47
+ color: var(--text-secondary);
48
+ font-size: 13px;
49
+ font-weight: 400;
50
+ line-height: 1;
51
+ }
52
+
53
+ .stat-value:where([data-admin7-design='true'] *) {
54
+ font-size: 32px;
55
+ font-weight: 400;
56
+ letter-spacing: -0.025em;
57
+ line-height: 1;
58
+ font-variation-settings:
59
+ 'opsz' 36,
60
+ 'wght' 400;
61
+
62
+ & > span {
63
+ color: inherit;
64
+ font-size: inherit;
65
+ }
66
+ }
67
+
68
+ /* admin7Design: the label style of column headers, whichever element holds
69
+ them. Comes after the utilities at their specificity, so it beats their text
70
+ classes but not a parent's, like the Members list's hidden sizing header. A
71
+ TableHead used as a row title is not a column header. */
72
+ .column-label:where([data-admin7-design='true'] :not([scope='row'])) {
73
+ color: var(--text-secondary);
74
+ font-size: 10px;
75
+ font-weight: 500;
76
+ letter-spacing: 0.04em;
77
+ text-transform: uppercase;
78
+ }
79
+
31
80
  /* admin7Design: banners are a flat color with darker shades of it for text and no
32
81
  outline. Text inside takes those shades, whichever tone it asks for. */
33
82
  [data-admin7-design='true']
@@ -135,6 +135,7 @@
135
135
  --font-serif: Georgia, serif;
136
136
  --font-mono: Consolas, Liberation Mono, Menlo, Courier, monospace;
137
137
  --font-inherit: inherit;
138
+ --font-weight-title: 540;
138
139
  --tracking-tightest: -0.05em;
139
140
  --tracking-tighter: -0.025em;
140
141
  --tracking-tight: -0.01em;
@@ -234,6 +235,7 @@
234
235
  --radius-full: 9999px;
235
236
  --radius-control: var(--radius-md);
236
237
  --radius-control-sm: var(--radius-sm);
238
+ --radius-field: var(--radius-control);
237
239
  --radius-card: var(--radius-xl);
238
240
  --radius-menu: var(--radius-md);
239
241
  --radius-menu-item: var(--radius-xs);
@@ -376,6 +378,13 @@
376
378
  --color-control-readonly-surface: var(--control-readonly-surface);
377
379
  --color-control-disabled-surface: var(--control-disabled-surface);
378
380
  --color-control-border: var(--control-border);
381
+ --color-field-surface: var(--field-surface);
382
+ --color-field-readonly-surface: var(--field-readonly-surface);
383
+ --color-field-disabled-surface: var(--field-disabled-surface);
384
+ --color-field-border: var(--field-border);
385
+ --color-field-chip-surface: var(--field-chip-surface);
386
+ --color-field-chip-internal-surface: var(--field-chip-internal-surface);
387
+ --color-field-chip-internal-border: var(--field-chip-internal-border);
379
388
  }
380
389
 
381
390
  @keyframes toasterIn {
@@ -149,6 +149,17 @@
149
149
  --control-readonly-surface: var(--color-gray-50);
150
150
  --control-disabled-surface: var(--color-gray-100);
151
151
  --control-border: color-mix(in oklab, var(--color-gray-200), var(--color-gray-300));
152
+ --text-section-heading: 1.6rem;
153
+ /* Text-entry fields are white with a light outline. */
154
+ --field-surface: var(--control-surface);
155
+ --field-readonly-surface: var(--control-readonly-surface);
156
+ --field-disabled-surface: var(--control-disabled-surface);
157
+ --field-border: var(--control-border);
158
+ --field-chip-surface: var(--secondary);
159
+ --field-chip-internal-surface: transparent;
160
+ --field-chip-internal-border: var(--field-chip-surface);
161
+ --radius-field: var(--radius-sm);
162
+ --text-field: var(--text-control-lg);
152
163
  --radius-card: var(--radius-lg);
153
164
  --control-pressed-shadow: lch(0 0 0 / 0.07) 0px 1px 2px 0px inset;
154
165
  --control-outline-shadow:
@@ -296,6 +307,15 @@
296
307
  lch(0 0 0 / 0.1) 0px 0px 0px 0.5px, lch(0 0 0 / 0.02) 0px 3px 6px -2px,
297
308
  lch(0 0 0 / 0.04) 0px 1px 1px 0px, var(--control-pressed-shadow);
298
309
  --table-row-hover: var(--color-gray-50);
310
+ --field-surface: var(--control-surface);
311
+ --field-readonly-surface: var(--control-readonly-surface);
312
+ --field-disabled-surface: var(--control-disabled-surface);
313
+ --field-border: var(--control-border);
314
+ --field-chip-surface: var(--secondary);
315
+ --field-chip-internal-surface: color-mix(in oklab, var(--secondary) 30%, transparent);
316
+ --field-chip-internal-border: var(--border);
317
+ --radius-field: var(--radius-control);
318
+ --text-field: var(--text-control);
299
319
  --radius-card: var(--radius-xl);
300
320
  }
301
321
 
@@ -1 +1 @@
1
- {"version":3,"file":"settings-modal.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/settings-modal.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAWlE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC;AAE7E,MAAM,WAAW,kBAAkB;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC;IACnC,qFAAqF;IACrF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qGA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,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAC"}
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAQ1D,QAAA,MAAM,MAAM,wBAAgC,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,sBAI5F,CAAC;AAEF,QAAA,MAAM,aAAa,8GAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,6CAAyB,CAAC;AAE5C,QAAA,MAAM,WAAW,4GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,8JAajB,CAAC;AAOH,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,wBAAwB,CACxE,OAAO,eAAe,CAAC,OAAO,CAC/B;IACC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B;AAED,QAAA,MAAM,aAAa,2FAwDjB,CAAC;8BAGmB,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;;;8BAK7D,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;;;AAWnF,QAAA,MAAM,WAAW,oKAYf,CAAC;AAGH,QAAA,MAAM,iBAAiB,8KASrB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"input-group-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input-group-variants.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,kBAAkB;;;8EAuCvB,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"input-group-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input-group-variants.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,kBAAkB;;;8EA0CvB,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -31,13 +31,13 @@
31
31
  * )} />
32
32
  */
33
33
  export declare const inputSurfaceClasses: {
34
- readonly base: 'rounded-control border border-control-border bg-control-surface transition-colors';
34
+ readonly base: 'rounded-field border border-field-border bg-field-surface transition-colors';
35
35
  readonly focusSelf: 'focus-visible:outline-hidden focus-visible:border-focus-ring focus-visible:ring-2 focus-visible:ring-focus-ring/25';
36
36
  readonly focusWithin: 'has-[:focus-visible]:outline-hidden has-[:focus-visible]:border-focus-ring has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-focus-ring/25';
37
37
  readonly invalidSelf: 'aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-destructive/20 dark:aria-[invalid=true]:ring-destructive/40';
38
38
  readonly invalidWithin: 'has-[[aria-invalid=true]]:border-destructive has-[[aria-invalid=true]]:ring-destructive/20 dark:has-[[aria-invalid=true]]:ring-destructive/40';
39
39
  readonly disabledSelf: 'disabled:cursor-not-allowed disabled:opacity-50';
40
- readonly disabledFieldSelf: 'disabled:bg-control-disabled-surface disabled:text-muted-foreground disabled:opacity-100 disabled:hover:bg-control-disabled-surface';
40
+ readonly disabledFieldSelf: 'disabled:bg-field-disabled-surface disabled:text-muted-foreground disabled:opacity-100 disabled:hover:bg-field-disabled-surface';
41
41
  };
42
42
  export declare function inputSurface(mode?: 'self' | 'within'): string;
43
43
  //# sourceMappingURL=input-surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-surface.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input-surface.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,mBAAmB;aAC9B,IAAI,EAAE,mFAAmF;aACzF,SAAS,EACP,oHAAoH;aACtH,WAAW,EACT,gJAAgJ;aAClJ,WAAW,EACT,6HAA6H;aAC/H,aAAa,EACX,+IAA+I;aACjJ,YAAY,EAAE,iDAAiD;aAC/D,iBAAiB,EACf,qIAAqI;CAC/H,CAAC;AAEX,wBAAgB,YAAY,CAAC,IAAI,GAAE,MAAM,GAAG,QAAiB,UAc5D"}
1
+ {"version":3,"file":"input-surface.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input-surface.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,mBAAmB;aAC9B,IAAI,EAAE,6EAA6E;aACnF,SAAS,EACP,oHAAoH;aACtH,WAAW,EACT,gJAAgJ;aAClJ,WAAW,EACT,6HAA6H;aAC/H,aAAa,EACX,+IAA+I;aACjJ,YAAY,EAAE,iDAAiD;aAC/D,iBAAiB,EACf,iIAAiI;CAC3H,CAAC;AAEX,wBAAgB,YAAY,CAAC,IAAI,GAAE,MAAM,GAAG,QAAiB,UAc5D"}
@@ -1 +1 @@
1
- {"version":3,"file":"select-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,qBAAqB;;;8EAmC1B,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"select-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,qBAAqB;;;8EAqC1B,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,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