@tryghost/shade 0.1.0-alpha.23 → 0.1.0-alpha.24
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.
- package/es/components/ui/checkbox.js +1 -1
- package/es/components/ui/checkbox.js.map +1 -1
- package/es/components/ui/combobox.js +1 -1
- package/es/components/ui/combobox.js.map +1 -1
- package/es/components/ui/copy-field.js +2 -2
- package/es/components/ui/copy-field.js.map +1 -1
- package/es/components/ui/field.js +1 -1
- package/es/components/ui/field.js.map +1 -1
- package/es/components/ui/input-group-variants.js +5 -5
- package/es/components/ui/input-group-variants.js.map +1 -1
- package/es/components/ui/input-group.js +2 -2
- package/es/components/ui/input-group.js.map +1 -1
- package/es/components/ui/input-surface.js +2 -2
- package/es/components/ui/input-surface.js.map +1 -1
- package/es/components/ui/input.js +1 -1
- package/es/components/ui/input.js.map +1 -1
- package/es/components/ui/radio-group-variants.js +1 -1
- package/es/components/ui/radio-group-variants.js.map +1 -1
- package/es/components/ui/select-variants.js +4 -4
- package/es/components/ui/select-variants.js.map +1 -1
- package/es/components/ui/textarea.js +1 -1
- package/es/components/ui/textarea.js.map +1 -1
- package/es/components/ui/token-field.js +3 -3
- package/es/components/ui/token-field.js.map +1 -1
- package/es/tokens.js +9 -0
- package/es/tokens.js.map +1 -1
- package/package.json +1 -1
- package/tailwind.theme.css +8 -0
- package/theme-variables.css +19 -0
- package/types/components/ui/input-group-variants.d.ts.map +1 -1
- package/types/components/ui/input-surface.d.ts +2 -2
- package/types/components/ui/input-surface.d.ts.map +1 -1
- package/types/components/ui/select-variants.d.ts.map +1 -1
- package/types/components/ui/token-field.d.ts +2 -2
- package/types/components/ui/token-field.d.ts.map +1 -1
- package/types/tokens.d.ts +1 -1
- package/types/tokens.d.ts.map +1 -1
|
@@ -7,7 +7,7 @@ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
|
7
7
|
//#region src/components/ui/checkbox.tsx
|
|
8
8
|
var Checkbox = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(CheckboxPrimitive.Root, {
|
|
9
9
|
ref,
|
|
10
|
-
className: cn(inputSurface("self"), "peer grid size-4 shrink-0 place-content-center rounded-xs border-border-strong p-0 text-primary enabled:hover:bg-interactive-hover data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground enabled:data-[state=checked]:hover:bg-primary", className),
|
|
10
|
+
className: cn(inputSurface("self"), "peer grid size-4 shrink-0 place-content-center rounded-xs border-border-strong bg-control-surface p-0 text-primary enabled:hover:bg-interactive-hover data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground enabled:data-[state=checked]:hover:bg-primary", className),
|
|
11
11
|
...props,
|
|
12
12
|
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, {
|
|
13
13
|
className: cn("grid place-content-center text-current"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","names":[],"sources":["../../../src/components/ui/checkbox.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\n\nimport { inputSurface } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n inputSurface('self'),\n 'peer grid size-4 shrink-0 place-content-center rounded-xs border-border-strong p-0 text-primary enabled:hover:bg-interactive-hover data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground enabled:data-[state=checked]:hover:bg-primary',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator className={cn('grid place-content-center text-current')}>\n <Check className=\"size-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport { Checkbox };\n"],"mappings":";;;;;;;AAOA,IAAM,WAAW,QAAM,YAGpB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,kBAAkB,MAAnB;CACO;CACL,WAAW,GACT,aAAa,MAAM,GACnB,
|
|
1
|
+
{"version":3,"file":"checkbox.js","names":[],"sources":["../../../src/components/ui/checkbox.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\n\nimport { inputSurface } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n inputSurface('self'),\n 'peer grid size-4 shrink-0 place-content-center rounded-xs border-border-strong bg-control-surface p-0 text-primary enabled:hover:bg-interactive-hover data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground enabled:data-[state=checked]:hover:bg-primary',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator className={cn('grid place-content-center text-current')}>\n <Check className=\"size-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport { Checkbox };\n"],"mappings":";;;;;;;AAOA,IAAM,WAAW,QAAM,YAGpB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,kBAAkB,MAAnB;CACO;CACL,WAAW,GACT,aAAa,MAAM,GACnB,wTACA,SACF;CACA,GAAI;WAEJ,oBAAC,kBAAkB,WAAnB;EAA6B,WAAW,GAAG,wCAAwC;YACjF,oBAAC,OAAD,EAAO,WAAU,SAAU,CAAA;CACA,CAAA;AACP,CAAA,CACzB;AACD,SAAS,cAAc,kBAAkB,KAAK"}
|
|
@@ -10,7 +10,7 @@ var ComboboxTrigger = React$1.forwardRef(({ children, className, ...props }, ref
|
|
|
10
10
|
asChild: true,
|
|
11
11
|
children: /* @__PURE__ */ jsxs("button", {
|
|
12
12
|
ref,
|
|
13
|
-
className: cn(inputSurface("self"), inputSurfaceClasses.disabledFieldSelf, "flex h-(--control-height) w-full min-w-0 items-center justify-between pr-2 pl-3 text-
|
|
13
|
+
className: cn(inputSurface("self"), inputSurfaceClasses.disabledFieldSelf, "flex h-(--control-height) w-full min-w-0 items-center justify-between pr-2 pl-3 text-(length:--text-field) hover:bg-button-hover", className),
|
|
14
14
|
role: "combobox",
|
|
15
15
|
...props,
|
|
16
16
|
type: "button",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.js","names":[],"sources":["../../../src/components/ui/combobox.tsx"],"sourcesContent":["import * as React from 'react';\nimport { ChevronDown } from 'lucide-react';\n\nimport { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';\nimport { inputSurface, inputSurfaceClasses } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\n\nconst Combobox = Popover;\n\nconst ComboboxTrigger = React.forwardRef<\n HTMLButtonElement,\n Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type'>\n>(({ children, className, ...props }, ref) => (\n <PopoverTrigger asChild>\n <button\n ref={ref}\n className={cn(\n inputSurface('self'),\n inputSurfaceClasses.disabledFieldSelf,\n // Chevron position matches SelectTrigger.\n 'flex h-(--control-height) w-full min-w-0 items-center justify-between pr-2 pl-3 text-
|
|
1
|
+
{"version":3,"file":"combobox.js","names":[],"sources":["../../../src/components/ui/combobox.tsx"],"sourcesContent":["import * as React from 'react';\nimport { ChevronDown } from 'lucide-react';\n\nimport { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';\nimport { inputSurface, inputSurfaceClasses } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\n\nconst Combobox = Popover;\n\nconst ComboboxTrigger = React.forwardRef<\n HTMLButtonElement,\n Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type'>\n>(({ children, className, ...props }, ref) => (\n <PopoverTrigger asChild>\n <button\n ref={ref}\n className={cn(\n inputSurface('self'),\n inputSurfaceClasses.disabledFieldSelf,\n // Chevron position matches SelectTrigger.\n 'flex h-(--control-height) w-full min-w-0 items-center justify-between pr-2 pl-3 text-(length:--text-field) hover:bg-button-hover',\n className,\n )}\n role=\"combobox\"\n {...props}\n type=\"button\"\n >\n {children}\n <ChevronDown className=\"-mr-0.5 ml-2 size-4 shrink-0 opacity-50\" />\n </button>\n </PopoverTrigger>\n));\nComboboxTrigger.displayName = 'ComboboxTrigger';\n\ninterface ComboboxValueProps extends React.HTMLAttributes<HTMLSpanElement> {\n placeholder?: boolean;\n}\n\nconst ComboboxValue = React.forwardRef<HTMLSpanElement, ComboboxValueProps>(\n ({ className, placeholder = false, ...props }, ref) => (\n <span\n ref={ref}\n className={cn(\n 'min-w-0 flex-1 truncate text-left',\n placeholder && 'text-muted-foreground',\n className,\n )}\n {...props}\n />\n ),\n);\nComboboxValue.displayName = 'ComboboxValue';\n\nconst ComboboxContent = React.forwardRef<\n React.ElementRef<typeof PopoverContent>,\n React.ComponentPropsWithoutRef<typeof PopoverContent>\n>(({ align = 'start', className, ...props }, ref) => (\n <PopoverContent\n ref={ref}\n align={align}\n className={cn('z-[9999] w-(--radix-popover-trigger-width) p-0', className)}\n {...props}\n />\n));\nComboboxContent.displayName = 'ComboboxContent';\n\nexport { Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue };\n"],"mappings":";;;;;;;AAOA,IAAM,WAAW;AAEjB,IAAM,kBAAkB,QAAM,YAG3B,EAAE,UAAU,WAAW,GAAG,SAAS,QACpC,oBAAC,gBAAD;CAAgB,SAAA;WACd,qBAAC,UAAD;EACO;EACL,WAAW,GACT,aAAa,MAAM,GACnB,oBAAoB,mBAEpB,oIACA,SACF;EACA,MAAK;EACL,GAAI;EACJ,MAAK;YAXP,CAaG,UACD,oBAAC,aAAD,EAAa,WAAU,0CAA2C,CAAA,CAC5D;;AACM,CAAA,CACjB;AACD,gBAAgB,cAAc;AAM9B,IAAM,gBAAgB,QAAM,YACzB,EAAE,WAAW,cAAc,OAAO,GAAG,SAAS,QAC7C,oBAAC,QAAD;CACO;CACL,WAAW,GACT,qCACA,eAAe,yBACf,SACF;CACA,GAAI;AACL,CAAA,CAEL;AACA,cAAc,cAAc;AAE5B,IAAM,kBAAkB,QAAM,YAG3B,EAAE,QAAQ,SAAS,WAAW,GAAG,SAAS,QAC3C,oBAAC,gBAAD;CACO;CACE;CACP,WAAW,GAAG,kDAAkD,SAAS;CACzE,GAAI;AACL,CAAA,CACF;AACD,gBAAgB,cAAc"}
|
|
@@ -82,7 +82,7 @@ var CopyFieldLabel = React$1.forwardRef(({ className, id, ...props }, ref) => {
|
|
|
82
82
|
CopyFieldLabel.displayName = "CopyFieldLabel";
|
|
83
83
|
var CopyFieldContent = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
84
84
|
ref,
|
|
85
|
-
className: cn(inputSurface("within"), "group/copy-field-content relative flex h-(--control-height) w-full items-center overflow-hidden bg-
|
|
85
|
+
className: cn(inputSurface("within"), "group/copy-field-content relative flex h-(--control-height) w-full items-center overflow-hidden bg-field-readonly-surface px-3 py-1 group-data-[disabled=true]/copy-field:cursor-not-allowed group-data-[disabled=true]/copy-field:opacity-50", className),
|
|
86
86
|
"data-slot": "copy-field-content",
|
|
87
87
|
...props
|
|
88
88
|
}));
|
|
@@ -108,7 +108,7 @@ CopyFieldValue.displayName = "CopyFieldValue";
|
|
|
108
108
|
var CopyFieldActions = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
109
109
|
return /* @__PURE__ */ jsx(Inline, {
|
|
110
110
|
ref,
|
|
111
|
-
className: cn("absolute top-1/2 right-[1px] -translate-y-1/2 gap-px bg-
|
|
111
|
+
className: cn("absolute top-1/2 right-[1px] -translate-y-1/2 gap-px bg-field-readonly-surface pl-1 transition-opacity md:pointer-events-none md:opacity-0 md:group-focus-within/copy-field-content:pointer-events-auto md:group-focus-within/copy-field-content:opacity-100 md:group-hover/copy-field-content:pointer-events-auto md:group-hover/copy-field-content:opacity-100 [&_button]:h-6 [&_button:not([data-slot=copy-field-copy-button])]:bg-field-readonly-surface [&_button:not([data-slot=copy-field-copy-button])]:hover:bg-secondary [&_button[data-control-shape=rounded]]:rounded-sm", className),
|
|
112
112
|
"data-slot": "copy-field-actions",
|
|
113
113
|
gap: "none",
|
|
114
114
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-field.js","names":[],"sources":["../../../src/components/ui/copy-field.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Inline, Stack, Text } from '@/components/primitives';\nimport { Button, type ButtonProps } from '@/components/ui/button';\nimport { inputSurface } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\n\ntype CopyFieldContextValue = {\n copied: boolean;\n copy: () => Promise<void>;\n disabled: boolean;\n labelId: string;\n value: string;\n};\n\nconst CopyFieldContext = React.createContext<CopyFieldContextValue | null>(null);\n\nfunction useCopyField() {\n const context = React.useContext(CopyFieldContext);\n\n if (!context) {\n throw new Error('CopyField subcomponents must be used within CopyField');\n }\n\n return context;\n}\n\ninterface CopyFieldProps extends React.HTMLAttributes<HTMLDivElement> {\n disabled?: boolean;\n value: string;\n}\n\nconst CopyField = React.forwardRef<HTMLDivElement, CopyFieldProps>(\n ({ children, className, disabled = false, value, ...props }, ref) => {\n const [copied, setCopied] = React.useState(false);\n const labelId = React.useId();\n const resetTimer = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n React.useEffect(() => {\n setCopied(false);\n\n if (resetTimer.current) {\n clearTimeout(resetTimer.current);\n resetTimer.current = null;\n }\n }, [value]);\n\n React.useEffect(() => {\n return () => {\n if (resetTimer.current) {\n clearTimeout(resetTimer.current);\n }\n };\n }, []);\n\n const copy = React.useCallback(async () => {\n if (disabled) {\n return;\n }\n\n try {\n await navigator.clipboard.writeText(value);\n setCopied(true);\n\n if (resetTimer.current) {\n clearTimeout(resetTimer.current);\n }\n\n resetTimer.current = setTimeout(() => setCopied(false), 2000);\n } catch {\n setCopied(false);\n }\n }, [disabled, value]);\n\n const contextValue = React.useMemo(\n () => ({ copied, copy, disabled, labelId, value }),\n [copied, copy, disabled, labelId, value],\n );\n\n return (\n <CopyFieldContext.Provider value={contextValue}>\n <Stack\n ref={ref}\n className={cn('group/copy-field w-full', className)}\n data-disabled={disabled || undefined}\n data-slot=\"copy-field\"\n gap=\"xs\"\n {...props}\n >\n {children}\n </Stack>\n </CopyFieldContext.Provider>\n );\n },\n);\nCopyField.displayName = 'CopyField';\n\nconst CopyFieldLabel = React.forwardRef<HTMLElement, React.ComponentProps<typeof Text>>(\n ({ className, id, ...props }, ref) => {\n const { labelId } = useCopyField();\n\n return (\n <Text\n ref={ref}\n as=\"div\"\n className={cn(\n 'text-control! font-medium group-data-[disabled=true]/copy-field:opacity-50',\n className,\n )}\n data-slot=\"copy-field-label\"\n id={id || labelId}\n leading=\"snug\"\n {...props}\n />\n );\n },\n);\nCopyFieldLabel.displayName = 'CopyFieldLabel';\n\nconst CopyFieldContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n inputSurface('within'),\n 'group/copy-field-content relative flex h-(--control-height) w-full items-center overflow-hidden bg-
|
|
1
|
+
{"version":3,"file":"copy-field.js","names":[],"sources":["../../../src/components/ui/copy-field.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Inline, Stack, Text } from '@/components/primitives';\nimport { Button, type ButtonProps } from '@/components/ui/button';\nimport { inputSurface } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\n\ntype CopyFieldContextValue = {\n copied: boolean;\n copy: () => Promise<void>;\n disabled: boolean;\n labelId: string;\n value: string;\n};\n\nconst CopyFieldContext = React.createContext<CopyFieldContextValue | null>(null);\n\nfunction useCopyField() {\n const context = React.useContext(CopyFieldContext);\n\n if (!context) {\n throw new Error('CopyField subcomponents must be used within CopyField');\n }\n\n return context;\n}\n\ninterface CopyFieldProps extends React.HTMLAttributes<HTMLDivElement> {\n disabled?: boolean;\n value: string;\n}\n\nconst CopyField = React.forwardRef<HTMLDivElement, CopyFieldProps>(\n ({ children, className, disabled = false, value, ...props }, ref) => {\n const [copied, setCopied] = React.useState(false);\n const labelId = React.useId();\n const resetTimer = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n React.useEffect(() => {\n setCopied(false);\n\n if (resetTimer.current) {\n clearTimeout(resetTimer.current);\n resetTimer.current = null;\n }\n }, [value]);\n\n React.useEffect(() => {\n return () => {\n if (resetTimer.current) {\n clearTimeout(resetTimer.current);\n }\n };\n }, []);\n\n const copy = React.useCallback(async () => {\n if (disabled) {\n return;\n }\n\n try {\n await navigator.clipboard.writeText(value);\n setCopied(true);\n\n if (resetTimer.current) {\n clearTimeout(resetTimer.current);\n }\n\n resetTimer.current = setTimeout(() => setCopied(false), 2000);\n } catch {\n setCopied(false);\n }\n }, [disabled, value]);\n\n const contextValue = React.useMemo(\n () => ({ copied, copy, disabled, labelId, value }),\n [copied, copy, disabled, labelId, value],\n );\n\n return (\n <CopyFieldContext.Provider value={contextValue}>\n <Stack\n ref={ref}\n className={cn('group/copy-field w-full', className)}\n data-disabled={disabled || undefined}\n data-slot=\"copy-field\"\n gap=\"xs\"\n {...props}\n >\n {children}\n </Stack>\n </CopyFieldContext.Provider>\n );\n },\n);\nCopyField.displayName = 'CopyField';\n\nconst CopyFieldLabel = React.forwardRef<HTMLElement, React.ComponentProps<typeof Text>>(\n ({ className, id, ...props }, ref) => {\n const { labelId } = useCopyField();\n\n return (\n <Text\n ref={ref}\n as=\"div\"\n className={cn(\n 'text-control! font-medium group-data-[disabled=true]/copy-field:opacity-50',\n className,\n )}\n data-slot=\"copy-field-label\"\n id={id || labelId}\n leading=\"snug\"\n {...props}\n />\n );\n },\n);\nCopyFieldLabel.displayName = 'CopyFieldLabel';\n\nconst CopyFieldContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n inputSurface('within'),\n 'group/copy-field-content relative flex h-(--control-height) w-full items-center overflow-hidden bg-field-readonly-surface px-3 py-1 group-data-[disabled=true]/copy-field:cursor-not-allowed group-data-[disabled=true]/copy-field:opacity-50',\n className,\n )}\n data-slot=\"copy-field-content\"\n {...props}\n />\n ),\n);\nCopyFieldContent.displayName = 'CopyFieldContent';\n\nconst CopyFieldValue = React.forwardRef<HTMLElement, React.ComponentProps<typeof Text>>(\n ({ children, className, ...props }, ref) => {\n const { disabled, labelId, value } = useCopyField();\n\n return (\n <Text\n ref={ref}\n aria-disabled={disabled || undefined}\n aria-labelledby={\n props['aria-label'] || props['aria-labelledby'] ? props['aria-labelledby'] : labelId\n }\n aria-readonly=\"true\"\n as=\"div\"\n className={cn('min-w-0 truncate pr-2 text-muted-foreground', className)}\n data-slot=\"copy-field-value\"\n leading=\"snug\"\n role=\"textbox\"\n tabIndex={disabled ? undefined : 0}\n {...props}\n >\n {children ?? value}\n </Text>\n );\n },\n);\nCopyFieldValue.displayName = 'CopyFieldValue';\n\nconst CopyFieldActions = React.forwardRef<HTMLElement, React.ComponentProps<typeof Inline>>(\n ({ className, ...props }, ref) => {\n return (\n <Inline\n ref={ref}\n className={cn(\n 'absolute top-1/2 right-[1px] -translate-y-1/2 gap-px bg-field-readonly-surface pl-1 transition-opacity md:pointer-events-none md:opacity-0 md:group-focus-within/copy-field-content:pointer-events-auto md:group-focus-within/copy-field-content:opacity-100 md:group-hover/copy-field-content:pointer-events-auto md:group-hover/copy-field-content:opacity-100 [&_button]:h-6 [&_button:not([data-slot=copy-field-copy-button])]:bg-field-readonly-surface [&_button:not([data-slot=copy-field-copy-button])]:hover:bg-secondary [&_button[data-control-shape=rounded]]:rounded-sm',\n className,\n )}\n data-slot=\"copy-field-actions\"\n gap=\"none\"\n {...props}\n />\n );\n },\n);\nCopyFieldActions.displayName = 'CopyFieldActions';\n\ninterface CopyFieldCopyButtonProps extends Omit<ButtonProps, 'children'> {\n children?: React.ReactNode;\n copiedLabel?: React.ReactNode;\n}\n\nconst CopyFieldCopyButton = React.forwardRef<HTMLButtonElement, CopyFieldCopyButtonProps>(\n ({ children = 'Copy', className, copiedLabel = 'Copied', disabled, onClick, ...props }, ref) => {\n const { copied, copy, disabled: fieldDisabled } = useCopyField();\n\n return (\n <Button\n ref={ref}\n className={cn(\n 'bg-surface-elevated hover:border-border-strong/40 hover:bg-surface-elevated',\n className,\n )}\n disabled={fieldDisabled || disabled}\n size=\"sm\"\n type=\"button\"\n variant=\"outline\"\n onClick={async (event) => {\n await copy();\n onClick?.(event);\n }}\n {...props}\n data-slot=\"copy-field-copy-button\"\n >\n {copied ? copiedLabel : children}\n </Button>\n );\n },\n);\nCopyFieldCopyButton.displayName = 'CopyFieldCopyButton';\n\nexport {\n CopyField,\n CopyFieldActions,\n CopyFieldContent,\n CopyFieldCopyButton,\n CopyFieldLabel,\n CopyFieldValue,\n};\nexport type { CopyFieldProps };\n"],"mappings":";;;;;;;;;AAeA,IAAM,mBAAmB,QAAM,cAA4C,IAAI;AAE/E,SAAS,eAAe;CACtB,MAAM,UAAU,QAAM,WAAW,gBAAgB;CAEjD,IAAI,CAAC,SACH,MAAM,IAAI,MAAM,uDAAuD;CAGzE,OAAO;AACT;AAOA,IAAM,YAAY,QAAM,YACrB,EAAE,UAAU,WAAW,WAAW,OAAO,OAAO,GAAG,SAAS,QAAQ;CACnE,MAAM,CAAC,QAAQ,aAAa,QAAM,SAAS,KAAK;CAChD,MAAM,UAAU,QAAM,MAAM;CAC5B,MAAM,aAAa,QAAM,OAA6C,IAAI;CAE1E,QAAM,gBAAgB;EACpB,UAAU,KAAK;EAEf,IAAI,WAAW,SAAS;GACtB,aAAa,WAAW,OAAO;GAC/B,WAAW,UAAU;EACvB;CACF,GA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AAU,WAAW,GAAG,SAAS,QAAQ;CAC1C,MAAM,EAAE,UAAU,SAAS,UAAU,aAAa;CAElD,OACE,oBAAC,MAAD;EACO;EACL,iBAAe,YAAY,KAAA;EAC3B,mBACE,MAAM,iBAAiB,MAAM,qBAAqB,MAAM,qBAAqB;EAE/E,iBAAc;EACd,IAAG;EACH,WAAW,GAAG,+CAA+C,SAAS;EACtE,aAAU;EACV,SAAQ;EACR,MAAK;EACL,UAAU,WAAW,KAAA,IAAY;EACjC,GAAI;YAEH,YAAY;CACT,CAAA;AAEV,CACF;AACA,eAAe,cAAc;AAE7B,IAAM,mBAAmB,QAAM,YAC5B,EAAE,WAAW,GAAG,SAAS,QAAQ;CAChC,OACE,oBAAC,QAAD;EACO;EACL,WAAW,GACT,wjBACA,SACF;EACA,aAAU;EACV,KAAI;EACJ,GAAI;CACL,CAAA;AAEL,CACF;AACA,iBAAiB,cAAc;AAO/B,IAAM,sBAAsB,QAAM,YAC/B,EAAE,WAAW,QAAQ,WAAW,cAAc,UAAU,UAAU,SAAS,GAAG,SAAS,QAAQ;CAC9F,MAAM,EAAE,QAAQ,MAAM,UAAU,kBAAkB,aAAa;CAE/D,OACE,oBAAC,QAAD;EACO;EACL,WAAW,GACT,+EACA,SACF;EACA,UAAU,iBAAiB;EAC3B,MAAK;EACL,MAAK;EACL,SAAQ;EACR,SAAS,OAAO,UAAU;GACxB,MAAM,KAAK;GACX,UAAU,KAAK;EACjB;EACA,GAAI;EACJ,aAAU;YAET,SAAS,cAAc;CAClB,CAAA;AAEZ,CACF;AACA,oBAAoB,cAAc"}
|
|
@@ -61,7 +61,7 @@ function FieldContent({ className, ...props }) {
|
|
|
61
61
|
}
|
|
62
62
|
function FieldLabel({ className, ...props }) {
|
|
63
63
|
return /* @__PURE__ */ jsx(Label, {
|
|
64
|
-
className: cn("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4", "has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10", className),
|
|
64
|
+
className: cn("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 in-data-[admin7-design=true]:group-data-[orientation=vertical]/field:leading-none", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4", "has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10", className),
|
|
65
65
|
"data-slot": "field-label",
|
|
66
66
|
...props
|
|
67
67
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.js","names":[],"sources":["../../../src/components/ui/field.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/lib/utils';\nimport { Label } from '@/components/ui/label';\nimport { Separator } from '@/components/ui/separator';\n\nfunction FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>) {\n return (\n <fieldset\n className={cn(\n 'flex flex-col gap-6',\n 'has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3',\n className,\n )}\n data-slot=\"field-set\"\n {...props}\n />\n );\n}\n\nfunction FieldLegend({\n className,\n variant = 'legend',\n ...props\n}: React.ComponentProps<'legend'> & { variant?: 'legend' | 'label' }) {\n return (\n <legend\n className={cn(\n 'm-0 mb-2 w-fit border-0 p-0 leading-snug font-medium text-foreground',\n 'data-[variant=legend]:text-base',\n 'data-[variant=label]:text-control',\n className,\n )}\n data-slot=\"field-legend\"\n data-variant={variant}\n {...props}\n />\n );\n}\n\nfunction FieldGroup({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n className={cn(\n 'group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4',\n className,\n )}\n data-slot=\"field-group\"\n {...props}\n />\n );\n}\n\nconst fieldVariants = cva('group/field flex w-full gap-2 data-[invalid=true]:text-destructive', {\n variants: {\n orientation: {\n vertical: ['flex-col [&>*]:w-full [&>.sr-only]:w-auto'],\n horizontal: [\n 'flex-row items-center',\n '[&>[data-slot=field-label]]:flex-auto',\n 'has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',\n ],\n responsive: [\n 'flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto',\n '@md/field-group:[&>[data-slot=field-label]]:flex-auto',\n '@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',\n ],\n },\n },\n defaultVariants: {\n orientation: 'vertical',\n },\n});\n\nfunction Field({\n className,\n orientation = 'vertical',\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof fieldVariants>) {\n return (\n <div\n className={cn(fieldVariants({ orientation }), className)}\n data-orientation={orientation}\n data-slot=\"field\"\n role=\"group\"\n {...props}\n />\n );\n}\n\nfunction FieldContent({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n className={cn('group/field-content flex flex-1 flex-col gap-0.5 leading-snug', className)}\n data-slot=\"field-content\"\n {...props}\n />\n );\n}\n\nfunction FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {\n return (\n <Label\n className={cn(\n 'group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50',\n 'has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4',\n 'has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10',\n className,\n )}\n data-slot=\"field-label\"\n {...props}\n />\n );\n}\n\nfunction FieldTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n className={cn(\n 'flex w-fit items-center gap-2 text-control leading-snug font-medium group-data-[disabled=true]/field:opacity-50',\n className,\n )}\n data-slot=\"field-label\"\n {...props}\n />\n );\n}\n\nfunction FieldDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return (\n <p\n className={cn(\n 'text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance',\n 'last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5',\n '[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary',\n className,\n )}\n data-slot=\"field-description\"\n {...props}\n />\n );\n}\n\nfunction FieldSeparator({\n children,\n className,\n ...props\n}: React.ComponentProps<'div'> & {\n children?: React.ReactNode;\n}) {\n return (\n <div\n className={cn(\n 'relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2',\n className,\n )}\n data-content={!!children}\n data-slot=\"field-separator\"\n {...props}\n >\n <Separator className=\"absolute inset-0 top-1/2\" />\n {children && (\n <span\n className=\"relative mx-auto block w-fit bg-background px-2 text-muted-foreground\"\n data-slot=\"field-separator-content\"\n >\n {children}\n </span>\n )}\n </div>\n );\n}\n\nfunction FieldError({\n className,\n children,\n errors,\n ...props\n}: React.ComponentProps<'div'> & {\n errors?: Array<{ message?: string } | undefined>;\n}) {\n const content = useMemo(() => {\n if (children) {\n return children;\n }\n\n if (!errors) {\n return null;\n }\n\n if (errors?.length === 1 && errors[0]?.message) {\n return errors[0].message;\n }\n\n return (\n <ul className=\"ml-4 flex list-disc flex-col gap-1\">\n {errors.map((error) => error?.message && <li key={error.message}>{error.message}</li>)}\n </ul>\n );\n }, [children, errors]);\n\n if (!content) {\n return null;\n }\n\n return (\n <div\n className={cn('text-control font-normal text-destructive', className)}\n data-slot=\"field-error\"\n role=\"alert\"\n {...props}\n >\n {content}\n </div>\n );\n}\n\nexport {\n Field,\n FieldLabel,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLegend,\n FieldSeparator,\n FieldSet,\n FieldContent,\n FieldTitle,\n};\n"],"mappings":";;;;;;;AAOA,SAAS,SAAS,EAAE,WAAW,GAAG,SAA2C;CAC3E,OACE,oBAAC,YAAD;EACE,WAAW,GACT,uBACA,gFACA,SACF;EACA,aAAU;EACV,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,YAAY,EACnB,WACA,UAAU,UACV,GAAG,SACiE;CACpE,OACE,oBAAC,UAAD;EACE,WAAW,GACT,wEACA,mCACA,qCACA,SACF;EACA,aAAU;EACV,gBAAc;EACd,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,WAAW,EAAE,WAAW,GAAG,SAAsC;CACxE,OACE,oBAAC,OAAD;EACE,WAAW,GACT,0IACA,SACF;EACA,aAAU;EACV,GAAI;CACL,CAAA;AAEL;AAEA,IAAM,gBAAgB,IAAI,sEAAsE;CAC9F,UAAU,EACR,aAAa;EACX,UAAU,CAAC,2CAA2C;EACtD,YAAY;GACV;GACA;GACA;EACF;EACA,YAAY;GACV;GACA;GACA;EACF;CACF,EACF;CACA,iBAAiB,EACf,aAAa,WACf;AACF,CAAC;AAED,SAAS,MAAM,EACb,WACA,cAAc,YACd,GAAG,SACgE;CACnE,OACE,oBAAC,OAAD;EACE,WAAW,GAAG,cAAc,EAAE,YAAY,CAAC,GAAG,SAAS;EACvD,oBAAkB;EAClB,aAAU;EACV,MAAK;EACL,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC1E,OACE,oBAAC,OAAD;EACE,WAAW,GAAG,iEAAiE,SAAS;EACxF,aAAU;EACV,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,WAAW,EAAE,WAAW,GAAG,SAA6C;CAC/E,OACE,oBAAC,OAAD;EACE,WAAW,GACT,
|
|
1
|
+
{"version":3,"file":"field.js","names":[],"sources":["../../../src/components/ui/field.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/lib/utils';\nimport { Label } from '@/components/ui/label';\nimport { Separator } from '@/components/ui/separator';\n\nfunction FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>) {\n return (\n <fieldset\n className={cn(\n 'flex flex-col gap-6',\n 'has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3',\n className,\n )}\n data-slot=\"field-set\"\n {...props}\n />\n );\n}\n\nfunction FieldLegend({\n className,\n variant = 'legend',\n ...props\n}: React.ComponentProps<'legend'> & { variant?: 'legend' | 'label' }) {\n return (\n <legend\n className={cn(\n 'm-0 mb-2 w-fit border-0 p-0 leading-snug font-medium text-foreground',\n 'data-[variant=legend]:text-base',\n 'data-[variant=label]:text-control',\n className,\n )}\n data-slot=\"field-legend\"\n data-variant={variant}\n {...props}\n />\n );\n}\n\nfunction FieldGroup({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n className={cn(\n 'group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4',\n className,\n )}\n data-slot=\"field-group\"\n {...props}\n />\n );\n}\n\nconst fieldVariants = cva('group/field flex w-full gap-2 data-[invalid=true]:text-destructive', {\n variants: {\n orientation: {\n vertical: ['flex-col [&>*]:w-full [&>.sr-only]:w-auto'],\n horizontal: [\n 'flex-row items-center',\n '[&>[data-slot=field-label]]:flex-auto',\n 'has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',\n ],\n responsive: [\n 'flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto',\n '@md/field-group:[&>[data-slot=field-label]]:flex-auto',\n '@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',\n ],\n },\n },\n defaultVariants: {\n orientation: 'vertical',\n },\n});\n\nfunction Field({\n className,\n orientation = 'vertical',\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof fieldVariants>) {\n return (\n <div\n className={cn(fieldVariants({ orientation }), className)}\n data-orientation={orientation}\n data-slot=\"field\"\n role=\"group\"\n {...props}\n />\n );\n}\n\nfunction FieldContent({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n className={cn('group/field-content flex flex-1 flex-col gap-0.5 leading-snug', className)}\n data-slot=\"field-content\"\n {...props}\n />\n );\n}\n\nfunction FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {\n return (\n <Label\n className={cn(\n 'group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 in-data-[admin7-design=true]:group-data-[orientation=vertical]/field:leading-none',\n 'has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4',\n 'has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10',\n className,\n )}\n data-slot=\"field-label\"\n {...props}\n />\n );\n}\n\nfunction FieldTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n className={cn(\n 'flex w-fit items-center gap-2 text-control leading-snug font-medium group-data-[disabled=true]/field:opacity-50',\n className,\n )}\n data-slot=\"field-label\"\n {...props}\n />\n );\n}\n\nfunction FieldDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return (\n <p\n className={cn(\n 'text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance',\n 'last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5',\n '[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary',\n className,\n )}\n data-slot=\"field-description\"\n {...props}\n />\n );\n}\n\nfunction FieldSeparator({\n children,\n className,\n ...props\n}: React.ComponentProps<'div'> & {\n children?: React.ReactNode;\n}) {\n return (\n <div\n className={cn(\n 'relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2',\n className,\n )}\n data-content={!!children}\n data-slot=\"field-separator\"\n {...props}\n >\n <Separator className=\"absolute inset-0 top-1/2\" />\n {children && (\n <span\n className=\"relative mx-auto block w-fit bg-background px-2 text-muted-foreground\"\n data-slot=\"field-separator-content\"\n >\n {children}\n </span>\n )}\n </div>\n );\n}\n\nfunction FieldError({\n className,\n children,\n errors,\n ...props\n}: React.ComponentProps<'div'> & {\n errors?: Array<{ message?: string } | undefined>;\n}) {\n const content = useMemo(() => {\n if (children) {\n return children;\n }\n\n if (!errors) {\n return null;\n }\n\n if (errors?.length === 1 && errors[0]?.message) {\n return errors[0].message;\n }\n\n return (\n <ul className=\"ml-4 flex list-disc flex-col gap-1\">\n {errors.map((error) => error?.message && <li key={error.message}>{error.message}</li>)}\n </ul>\n );\n }, [children, errors]);\n\n if (!content) {\n return null;\n }\n\n return (\n <div\n className={cn('text-control font-normal text-destructive', className)}\n data-slot=\"field-error\"\n role=\"alert\"\n {...props}\n >\n {content}\n </div>\n );\n}\n\nexport {\n Field,\n FieldLabel,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLegend,\n FieldSeparator,\n FieldSet,\n FieldContent,\n FieldTitle,\n};\n"],"mappings":";;;;;;;AAOA,SAAS,SAAS,EAAE,WAAW,GAAG,SAA2C;CAC3E,OACE,oBAAC,YAAD;EACE,WAAW,GACT,uBACA,gFACA,SACF;EACA,aAAU;EACV,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,YAAY,EACnB,WACA,UAAU,UACV,GAAG,SACiE;CACpE,OACE,oBAAC,UAAD;EACE,WAAW,GACT,wEACA,mCACA,qCACA,SACF;EACA,aAAU;EACV,gBAAc;EACd,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,WAAW,EAAE,WAAW,GAAG,SAAsC;CACxE,OACE,oBAAC,OAA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AD;GACE,WAAU;GACV,aAAU;GAET;EACG,CAAA,CAEL;;AAET;AAEA,SAAS,WAAW,EAClB,WACA,UACA,QACA,GAAG,SAGF;CACD,MAAM,UAAU,cAAc;EAC5B,IAAI,UACF,OAAO;EAGT,IAAI,CAAC,QACH,OAAO;EAGT,IAAI,QAAQ,WAAW,KAAK,OAAO,EAAE,EAAE,SACrC,OAAO,OAAO,EAAE,CAAC;EAGnB,OACE,oBAAC,MAAD;GAAI,WAAU;aACX,OAAO,KAAK,UAAU,OAAO,WAAW,oBAAC,MAAD,EAAA,UAAyB,MAAM,QAAY,GAAlC,MAAM,OAA4B,CAAC;EACnF,CAAA;CAER,GAAG,CAAC,UAAU,MAAM,CAAC;CAErB,IAAI,CAAC,SACH,OAAO;CAGT,OACE,oBAAC,OAAD;EACE,WAAW,GAAG,6CAA6C,SAAS;EACpE,aAAU;EACV,MAAK;EACL,GAAI;YAEH;CACE,CAAA;AAET"}
|
|
@@ -2,16 +2,16 @@ import { cn } from "../../lib/ds-utils.js";
|
|
|
2
2
|
import { inputSurfaceClasses } from "./input-surface.js";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
//#region src/components/ui/input-group-variants.ts
|
|
5
|
-
var inputGroupVariants = cva(cn(inputSurfaceClasses.base, inputSurfaceClasses.invalidWithin, "group/input-group relative flex w-full items-center outline-hidden data-[disabled=true]:bg-
|
|
5
|
+
var inputGroupVariants = cva(cn(inputSurfaceClasses.base, inputSurfaceClasses.invalidWithin, "group/input-group relative flex w-full items-center outline-hidden data-[disabled=true]:bg-field-disabled-surface [&>[data-slot=input-group-control]]:bg-transparent", "h-(--control-height) has-[>textarea]:h-auto", "has-[>[data-align=inline-start]]:[&>input]:pl-2", "has-[>[data-align=inline-end]]:[&>input]:pr-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", "has-[[data-slot=input-group-control]:focus-visible]:border-focus-ring has-[[data-slot=input-group-control]:focus-visible]:ring-2 has-[[data-slot=input-group-control]:focus-visible]:ring-focus-ring/25 has-[[data-slot=input-group-control]:focus-visible]:outline-hidden", "in-data-[admin7-design=true]:has-[[data-slot=input-group-control]:focus-visible]:bg-control-surface"), {
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
8
|
default: "",
|
|
9
|
-
ghost: "border-transparent bg-transparent shadow-none hover:bg-button-hover",
|
|
10
|
-
secondary: "border-transparent bg-tab-active text-secondary-foreground shadow-none hover:bg-secondary has-[[data-slot=input-group-control]:focus-visible]:bg-
|
|
9
|
+
ghost: "border-transparent bg-transparent shadow-none [--radius-field:var(--radius-control)] [--text-field:var(--text-control)] hover:bg-button-hover",
|
|
10
|
+
secondary: "border-transparent bg-tab-active text-secondary-foreground shadow-none [--radius-field:var(--radius-control)] [--text-field:var(--text-control)] hover:bg-secondary has-[[data-slot=input-group-control]:focus-visible]:bg-field-surface has-[[data-slot=input-group-control]:focus-visible]:hover:bg-field-surface has-[[data-slot=input-group-control]:not(:placeholder-shown)]:border-field-border has-[[data-slot=input-group-control]:not(:placeholder-shown)]:bg-field-surface has-[[data-slot=input-group-control]:not(:placeholder-shown)]:hover:bg-field-surface"
|
|
11
11
|
},
|
|
12
12
|
shape: {
|
|
13
|
-
rounded: "rounded-
|
|
14
|
-
pill: "rounded-full has-[>[data-align=block-end]]:rounded-
|
|
13
|
+
rounded: "rounded-field",
|
|
14
|
+
pill: "rounded-full has-[>[data-align=block-end]]:rounded-field has-[>[data-align=block-start]]:rounded-field has-[>textarea]:rounded-field"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
defaultVariants: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group-variants.js","names":[],"sources":["../../../src/components/ui/input-group-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport { inputSurfaceClasses } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\n\nconst inputGroupVariants = cva(\n cn(\n // Shared surface chrome (border, bg, radius, transition, invalid state).\n inputSurfaceClasses.base,\n inputSurfaceClasses.invalidWithin,\n\n // Wrapper layout + group context (input-group specific).\n 'group/input-group relative flex w-full items-center outline-hidden data-[disabled=true]:bg-
|
|
1
|
+
{"version":3,"file":"input-group-variants.js","names":[],"sources":["../../../src/components/ui/input-group-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport { inputSurfaceClasses } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\n\nconst inputGroupVariants = cva(\n cn(\n // Shared surface chrome (border, bg, radius, transition, invalid state).\n inputSurfaceClasses.base,\n inputSurfaceClasses.invalidWithin,\n\n // Wrapper layout + group context (input-group specific).\n 'group/input-group relative flex w-full items-center outline-hidden data-[disabled=true]:bg-field-disabled-surface [&>[data-slot=input-group-control]]:bg-transparent',\n 'h-(--control-height) has-[>textarea]:h-auto',\n\n // Variants based on alignment.\n 'has-[>[data-align=inline-start]]:[&>input]:pl-2',\n 'has-[>[data-align=inline-end]]:[&>input]:pr-2',\n 'has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3',\n 'has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3',\n\n // Focus state — scoped to the input-group control specifically so that\n // focusing an InputGroupButton inside the group does NOT trigger the surface\n // focus ring. This is why we don't use inputSurface('within') here.\n 'has-[[data-slot=input-group-control]:focus-visible]:border-focus-ring has-[[data-slot=input-group-control]:focus-visible]:ring-2 has-[[data-slot=input-group-control]:focus-visible]:ring-focus-ring/25 has-[[data-slot=input-group-control]:focus-visible]:outline-hidden',\n 'in-data-[admin7-design=true]:has-[[data-slot=input-group-control]:focus-visible]:bg-control-surface',\n ),\n {\n variants: {\n variant: {\n default: '',\n // Ghost and secondary groups read as buttons until used, 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)] hover:bg-button-hover',\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 has-[[data-slot=input-group-control]:focus-visible]:bg-field-surface has-[[data-slot=input-group-control]:focus-visible]:hover:bg-field-surface has-[[data-slot=input-group-control]:not(:placeholder-shown)]:border-field-border has-[[data-slot=input-group-control]:not(:placeholder-shown)]:bg-field-surface has-[[data-slot=input-group-control]:not(:placeholder-shown)]:hover:bg-field-surface',\n },\n shape: {\n rounded: 'rounded-field',\n pill: 'rounded-full has-[>[data-align=block-end]]:rounded-field has-[>[data-align=block-start]]:rounded-field has-[>textarea]:rounded-field',\n },\n },\n defaultVariants: {\n variant: 'default',\n shape: 'rounded',\n },\n },\n);\n\nexport { inputGroupVariants };\n"],"mappings":";;;;AAIA,IAAM,qBAAqB,IACzB,GAEE,oBAAoB,MACpB,oBAAoB,eAGpB,wKACA,+CAGA,mDACA,iDACA,kIACA,4HAKA,8QACA,qGACF,GACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GAET,OACE;GACF,WACE;EACJ;EACA,OAAO;GACL,SAAS;GACT,MAAM;EACR;CACF;CACA,iBAAiB;EACf,SAAS;EACT,OAAO;CACT;AACF,CACF"}
|
|
@@ -69,14 +69,14 @@ function InputGroupText({ className, ...props }) {
|
|
|
69
69
|
}
|
|
70
70
|
var InputGroupInput = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("input", {
|
|
71
71
|
ref,
|
|
72
|
-
className: cn("flex h-(--control-height) w-full flex-1 border-0 bg-transparent px-3 py-1 text-
|
|
72
|
+
className: cn("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", className),
|
|
73
73
|
"data-slot": "input-group-control",
|
|
74
74
|
...props
|
|
75
75
|
}));
|
|
76
76
|
InputGroupInput.displayName = "InputGroupInput";
|
|
77
77
|
var InputGroupTextarea = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("textarea", {
|
|
78
78
|
ref,
|
|
79
|
-
className: cn("min-h-[80px] w-full flex-1 resize-none border-0 bg-transparent p-3 text-
|
|
79
|
+
className: cn("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", className),
|
|
80
80
|
"data-slot": "input-group-control",
|
|
81
81
|
...props
|
|
82
82
|
}));
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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,
|
|
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-
|
|
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-
|
|
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-
|
|
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"}
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
7
|
-
input: "min-w-20 flex-1 bg-transparent px-2 text-
|
|
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-
|
|
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",
|
|
@@ -281,6 +288,7 @@ var SHADE_TOKEN_NAMES = [
|
|
|
281
288
|
"radius-card",
|
|
282
289
|
"radius-control",
|
|
283
290
|
"radius-control-sm",
|
|
291
|
+
"radius-field",
|
|
284
292
|
"radius-full",
|
|
285
293
|
"radius-lg",
|
|
286
294
|
"radius-md",
|
|
@@ -350,6 +358,7 @@ var SHADE_TOKEN_NAMES = [
|
|
|
350
358
|
"text-body-sm",
|
|
351
359
|
"text-control",
|
|
352
360
|
"text-control-lg",
|
|
361
|
+
"text-field",
|
|
353
362
|
"text-lg",
|
|
354
363
|
"text-md",
|
|
355
364
|
"text-primary",
|
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 '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-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;AACF;AAIA,IAAa,cAAc,SAAiC,SAAS,KAAK"}
|
package/package.json
CHANGED
package/tailwind.theme.css
CHANGED
|
@@ -234,6 +234,7 @@
|
|
|
234
234
|
--radius-full: 9999px;
|
|
235
235
|
--radius-control: var(--radius-md);
|
|
236
236
|
--radius-control-sm: var(--radius-sm);
|
|
237
|
+
--radius-field: var(--radius-control);
|
|
237
238
|
--radius-card: var(--radius-xl);
|
|
238
239
|
--radius-menu: var(--radius-md);
|
|
239
240
|
--radius-menu-item: var(--radius-xs);
|
|
@@ -376,6 +377,13 @@
|
|
|
376
377
|
--color-control-readonly-surface: var(--control-readonly-surface);
|
|
377
378
|
--color-control-disabled-surface: var(--control-disabled-surface);
|
|
378
379
|
--color-control-border: var(--control-border);
|
|
380
|
+
--color-field-surface: var(--field-surface);
|
|
381
|
+
--color-field-readonly-surface: var(--field-readonly-surface);
|
|
382
|
+
--color-field-disabled-surface: var(--field-disabled-surface);
|
|
383
|
+
--color-field-border: var(--field-border);
|
|
384
|
+
--color-field-chip-surface: var(--field-chip-surface);
|
|
385
|
+
--color-field-chip-internal-surface: var(--field-chip-internal-surface);
|
|
386
|
+
--color-field-chip-internal-border: var(--field-chip-internal-border);
|
|
379
387
|
}
|
|
380
388
|
|
|
381
389
|
@keyframes toasterIn {
|
package/theme-variables.css
CHANGED
|
@@ -149,6 +149,16 @@
|
|
|
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-entry fields are white with a light outline. */
|
|
153
|
+
--field-surface: var(--control-surface);
|
|
154
|
+
--field-readonly-surface: var(--control-readonly-surface);
|
|
155
|
+
--field-disabled-surface: var(--control-disabled-surface);
|
|
156
|
+
--field-border: var(--control-border);
|
|
157
|
+
--field-chip-surface: var(--secondary);
|
|
158
|
+
--field-chip-internal-surface: transparent;
|
|
159
|
+
--field-chip-internal-border: var(--field-chip-surface);
|
|
160
|
+
--radius-field: var(--radius-sm);
|
|
161
|
+
--text-field: var(--text-control-lg);
|
|
152
162
|
--radius-card: var(--radius-lg);
|
|
153
163
|
--control-pressed-shadow: lch(0 0 0 / 0.07) 0px 1px 2px 0px inset;
|
|
154
164
|
--control-outline-shadow:
|
|
@@ -296,6 +306,15 @@
|
|
|
296
306
|
lch(0 0 0 / 0.1) 0px 0px 0px 0.5px, lch(0 0 0 / 0.02) 0px 3px 6px -2px,
|
|
297
307
|
lch(0 0 0 / 0.04) 0px 1px 1px 0px, var(--control-pressed-shadow);
|
|
298
308
|
--table-row-hover: var(--color-gray-50);
|
|
309
|
+
--field-surface: var(--control-surface);
|
|
310
|
+
--field-readonly-surface: var(--control-readonly-surface);
|
|
311
|
+
--field-disabled-surface: var(--control-disabled-surface);
|
|
312
|
+
--field-border: var(--control-border);
|
|
313
|
+
--field-chip-surface: var(--secondary);
|
|
314
|
+
--field-chip-internal-surface: color-mix(in oklab, var(--secondary) 30%, transparent);
|
|
315
|
+
--field-chip-internal-border: var(--border);
|
|
316
|
+
--radius-field: var(--radius-control);
|
|
317
|
+
--text-field: var(--text-control);
|
|
299
318
|
--radius-card: var(--radius-xl);
|
|
300
319
|
}
|
|
301
320
|
|
|
@@ -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;;;
|
|
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-
|
|
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-
|
|
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,
|
|
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;;;
|
|
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,8 +1,8 @@
|
|
|
1
1
|
/** Shared chip density for token inputs such as labels, tags and authors. */
|
|
2
2
|
export declare const tokenFieldClasses: {
|
|
3
3
|
readonly field: string;
|
|
4
|
-
readonly input: 'min-w-20 flex-1 bg-transparent px-2 text-
|
|
5
|
-
readonly 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';
|
|
4
|
+
readonly input: 'min-w-20 flex-1 bg-transparent px-2 text-(length:--text-field) outline-hidden placeholder:text-muted-foreground';
|
|
5
|
+
readonly 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';
|
|
6
6
|
readonly chevron: 'pointer-events-none absolute top-[calc((var(--control-height)-var(--spacing)*4)/2-1px)] right-1.5 size-4 text-muted-foreground';
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=token-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-field.d.ts","sourceRoot":"","sources":["../../../src/components/ui/token-field.ts"],"names":[],"mappings":"AAGA,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB;aAC5B,KAAK;aAIL,KAAK,EACH,
|
|
1
|
+
{"version":3,"file":"token-field.d.ts","sourceRoot":"","sources":["../../../src/components/ui/token-field.ts"],"names":[],"mappings":"AAGA,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB;aAC5B,KAAK;aAIL,KAAK,EACH,iHAAiH;aAEnH,IAAI,EAAE,sKAAsK;aAE5K,OAAO,EACL,gIAAgI;CAC1H,CAAC"}
|
package/types/tokens.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SHADE_TOKEN_NAMES: readonly ['accent', 'accent-foreground', 'animate-accordion-down', 'animate-accordion-up', 'animate-fade-in', 'animate-fade-out', 'animate-modal-backdrop-in', 'animate-modal-in', 'animate-modal-in-from-right', 'animate-modal-in-reverse', 'animate-spin', 'animate-toaster-in', 'animate-toaster-out', 'animate-toaster-top-in', 'background', 'border', 'border-default', 'border-strong', 'breakpoint-lg', 'breakpoint-md', 'breakpoint-sidebar', 'breakpoint-sidebarlg', 'breakpoint-sm', 'breakpoint-tablet', 'breakpoint-xl', 'breakpoint-xxl', 'breakpoint-xxxl', 'card', 'card-foreground', 'chart-1', 'chart-2', 'chart-3', 'chart-4', 'chart-5', 'chart-amber', 'chart-blue', 'chart-darkblue', 'chart-darkgray', 'chart-gray', 'chart-green', 'chart-orange', 'chart-purple', 'chart-rose', 'chart-teal', 'chart-yellow', 'color-accent', 'color-accent-foreground', 'color-background', 'color-black', 'color-blue', 'color-blue-100', 'color-blue-200', 'color-blue-300', 'color-blue-400', 'color-blue-50', 'color-blue-500', 'color-blue-600', 'color-blue-700', 'color-blue-800', 'color-blue-900', 'color-border', 'color-border-default', 'color-border-strong', 'color-card', 'color-card-foreground', 'color-chart-1', 'color-chart-2', 'color-chart-3', 'color-chart-4', 'color-chart-5', 'color-chart-amber', 'color-chart-blue', 'color-chart-darkgray', 'color-chart-gray', 'color-chart-green', 'color-chart-orange', 'color-chart-purple', 'color-chart-rose', 'color-chart-teal', 'color-chart-yellow', 'color-current', 'color-destructive', 'color-destructive-foreground', 'color-focus-ring', 'color-foreground', 'color-ghostaccent', 'color-gray', 'color-gray-100', 'color-gray-200', 'color-gray-300', 'color-gray-400', 'color-gray-50', 'color-gray-500', 'color-gray-600', 'color-gray-700', 'color-gray-800', 'color-gray-900', 'color-gray-950', 'color-green', 'color-green-100', 'color-green-200', 'color-green-300', 'color-green-400', 'color-green-50', 'color-green-500', 'color-green-600', 'color-green-700', 'color-green-800', 'color-green-900', 'color-input', 'color-lime', 'color-lime-100', 'color-lime-200', 'color-lime-300', 'color-lime-400', 'color-lime-50', 'color-lime-500', 'color-lime-600', 'color-lime-700', 'color-lime-800', 'color-lime-900', 'color-map-surface', 'color-muted', 'color-muted-foreground', 'color-orange', 'color-orange-100', 'color-orange-200', 'color-orange-300', 'color-orange-400', 'color-orange-50', 'color-orange-500', 'color-orange-600', 'color-orange-700', 'color-orange-800', 'color-orange-900', 'color-pink', 'color-pink-100', 'color-pink-200', 'color-pink-300', 'color-pink-400', 'color-pink-50', 'color-pink-500', 'color-pink-600', 'color-pink-700', 'color-pink-800', 'color-pink-900', 'color-popover', 'color-popover-foreground', 'color-primary', 'color-primary-foreground', 'color-publish-accent', 'color-purple', 'color-purple-100', 'color-purple-200', 'color-purple-300', 'color-purple-400', 'color-purple-50', 'color-purple-500', 'color-purple-600', 'color-purple-700', 'color-purple-800', 'color-purple-900', 'color-red', 'color-red-100', 'color-red-200', 'color-red-300', 'color-red-400', 'color-red-50', 'color-red-500', 'color-red-600', 'color-red-700', 'color-red-800', 'color-red-900', 'color-ring', 'color-secondary', 'color-secondary-foreground', 'color-sidebar', 'color-sidebar-accent', 'color-sidebar-accent-foreground', 'color-sidebar-border', 'color-sidebar-foreground', 'color-sidebar-primary', 'color-sidebar-primary-foreground', 'color-sidebar-ring', 'color-state-danger', 'color-state-danger-foreground', 'color-state-info', 'color-state-info-foreground', 'color-state-success', 'color-state-success-foreground', 'color-state-warning', 'color-state-warning-border', 'color-state-warning-fill', 'color-state-warning-foreground', 'color-state-warning-surface', 'color-surface-elevated', 'color-surface-page', 'color-surface-panel', 'color-text-primary', 'color-text-secondary', 'color-text-tertiary', 'color-transparent', 'color-white', 'color-yellow', 'color-yellow-100', 'color-yellow-200', 'color-yellow-300', 'color-yellow-400', 'color-yellow-50', 'color-yellow-500', 'color-yellow-600', 'color-yellow-700', 'color-yellow-800', 'color-yellow-900', 'container-0', 'container-2xl', 'container-3xl', 'container-4xl', 'container-5xl', 'container-6xl', 'container-7xl', 'container-8xl', 'container-9xl', 'container-lg', 'container-md', 'container-page', 'container-pageminsidebar', 'container-prose', 'container-sm', 'container-xl', 'container-xs', 'control-height', 'control-height-lg', 'control-outline-pressed-shadow', 'control-outline-shadow', 'control-pressed-shadow', 'destructive', 'destructive-foreground', 'duration-base', 'duration-fast', 'duration-slow', 'ease-emphasized', 'ease-standard', 'focus-ring', 'font-body', 'font-code', 'font-heading', 'font-inherit', 'font-mono', 'font-sans', 'font-serif', 'foreground', 'input', 'input-group-radius', 'leading-base', 'leading-body', 'leading-heading', 'leading-loose', 'leading-none', 'leading-normal', 'leading-relaxed', 'leading-snug', 'leading-supertight', 'leading-tight', 'leading-tighter', 'map-surface', 'mobile-navbar-height', 'muted', 'muted-foreground', 'popover', 'popover-foreground', 'primary', 'primary-foreground', 'publish-accent', 'radius', 'radius-2xl', 'radius-3xl', 'radius-badge', 'radius-card', 'radius-control', 'radius-control-sm', 'radius-full', 'radius-lg', 'radius-md', 'radius-menu', 'radius-menu-item', 'radius-pill', 'radius-sm', 'radius-surface', 'radius-trend-badge', 'radius-xl', 'radius-xs', 'ring', 'secondary', 'secondary-foreground', 'shadow', 'shadow-control-outline', 'shadow-control-outline-pressed', 'shadow-control-pressed', 'shadow-inner', 'shadow-lg', 'shadow-md', 'shadow-md-heavy', 'shadow-none', 'shadow-sm', 'shadow-xl', 'shadow-xs', 'sidebar-accent', 'sidebar-accent-foreground', 'sidebar-background', 'sidebar-border', 'sidebar-foreground', 'sidebar-primary', 'sidebar-primary-foreground', 'sidebar-ring', 'spacing', 'state-danger', 'state-danger-foreground', 'state-info', 'state-info-foreground', 'state-success', 'state-success-foreground', 'state-warning', 'state-warning-border', 'state-warning-fill', 'state-warning-foreground', 'state-warning-surface', 'surface-elevated', 'surface-page', 'surface-panel', 'text-2xl', 'text-2xs', 'text-3xl', 'text-4xl', 'text-5xl', 'text-5xl--line-height', 'text-6xl', 'text-6xl--line-height', 'text-7xl', 'text-7xl--line-height', 'text-8xl', 'text-8xl--line-height', 'text-9xl', 'text-9xl--line-height', 'text-base', 'text-body-lg', 'text-body-md', 'text-body-sm', 'text-control', 'text-control-lg', 'text-lg', 'text-md', 'text-primary', 'text-secondary', 'text-sm', 'text-tertiary', 'text-xl', 'text-xs', 'tracking-normal', 'tracking-tight', 'tracking-tighter', 'tracking-tightest', 'tracking-wide', 'tracking-wider', 'tracking-widest'];
|
|
1
|
+
export declare const SHADE_TOKEN_NAMES: readonly ['accent', 'accent-foreground', 'animate-accordion-down', 'animate-accordion-up', 'animate-fade-in', 'animate-fade-out', 'animate-modal-backdrop-in', 'animate-modal-in', 'animate-modal-in-from-right', 'animate-modal-in-reverse', 'animate-spin', 'animate-toaster-in', 'animate-toaster-out', 'animate-toaster-top-in', 'background', 'border', 'border-default', 'border-strong', 'breakpoint-lg', 'breakpoint-md', 'breakpoint-sidebar', 'breakpoint-sidebarlg', 'breakpoint-sm', 'breakpoint-tablet', 'breakpoint-xl', 'breakpoint-xxl', 'breakpoint-xxxl', 'card', 'card-foreground', 'chart-1', 'chart-2', 'chart-3', 'chart-4', 'chart-5', 'chart-amber', 'chart-blue', 'chart-darkblue', 'chart-darkgray', 'chart-gray', 'chart-green', 'chart-orange', 'chart-purple', 'chart-rose', 'chart-teal', 'chart-yellow', 'color-accent', 'color-accent-foreground', 'color-background', 'color-black', 'color-blue', 'color-blue-100', 'color-blue-200', 'color-blue-300', 'color-blue-400', 'color-blue-50', 'color-blue-500', 'color-blue-600', 'color-blue-700', 'color-blue-800', 'color-blue-900', 'color-border', 'color-border-default', 'color-border-strong', 'color-card', 'color-card-foreground', 'color-chart-1', 'color-chart-2', 'color-chart-3', 'color-chart-4', 'color-chart-5', 'color-chart-amber', 'color-chart-blue', 'color-chart-darkgray', 'color-chart-gray', 'color-chart-green', 'color-chart-orange', 'color-chart-purple', 'color-chart-rose', 'color-chart-teal', 'color-chart-yellow', 'color-current', 'color-destructive', 'color-destructive-foreground', 'color-focus-ring', 'color-foreground', 'color-ghostaccent', 'color-gray', 'color-gray-100', 'color-gray-200', 'color-gray-300', 'color-gray-400', 'color-gray-50', 'color-gray-500', 'color-gray-600', 'color-gray-700', 'color-gray-800', 'color-gray-900', 'color-gray-950', 'color-green', 'color-green-100', 'color-green-200', 'color-green-300', 'color-green-400', 'color-green-50', 'color-green-500', 'color-green-600', 'color-green-700', 'color-green-800', 'color-green-900', 'color-input', 'color-lime', 'color-lime-100', 'color-lime-200', 'color-lime-300', 'color-lime-400', 'color-lime-50', 'color-lime-500', 'color-lime-600', 'color-lime-700', 'color-lime-800', 'color-lime-900', 'color-map-surface', 'color-muted', 'color-muted-foreground', 'color-orange', 'color-orange-100', 'color-orange-200', 'color-orange-300', 'color-orange-400', 'color-orange-50', 'color-orange-500', 'color-orange-600', 'color-orange-700', 'color-orange-800', 'color-orange-900', 'color-pink', 'color-pink-100', 'color-pink-200', 'color-pink-300', 'color-pink-400', 'color-pink-50', 'color-pink-500', 'color-pink-600', 'color-pink-700', 'color-pink-800', 'color-pink-900', 'color-popover', 'color-popover-foreground', 'color-primary', 'color-primary-foreground', 'color-publish-accent', 'color-purple', 'color-purple-100', 'color-purple-200', 'color-purple-300', 'color-purple-400', 'color-purple-50', 'color-purple-500', 'color-purple-600', 'color-purple-700', 'color-purple-800', 'color-purple-900', 'color-red', 'color-red-100', 'color-red-200', 'color-red-300', 'color-red-400', 'color-red-50', 'color-red-500', 'color-red-600', 'color-red-700', 'color-red-800', 'color-red-900', 'color-ring', 'color-secondary', 'color-secondary-foreground', 'color-sidebar', 'color-sidebar-accent', 'color-sidebar-accent-foreground', 'color-sidebar-border', 'color-sidebar-foreground', 'color-sidebar-primary', 'color-sidebar-primary-foreground', 'color-sidebar-ring', 'color-state-danger', 'color-state-danger-foreground', 'color-state-info', 'color-state-info-foreground', 'color-state-success', 'color-state-success-foreground', 'color-state-warning', 'color-state-warning-border', 'color-state-warning-fill', 'color-state-warning-foreground', 'color-state-warning-surface', 'color-surface-elevated', 'color-surface-page', 'color-surface-panel', 'color-text-primary', 'color-text-secondary', 'color-text-tertiary', 'color-transparent', 'color-white', 'color-yellow', 'color-yellow-100', 'color-yellow-200', 'color-yellow-300', 'color-yellow-400', 'color-yellow-50', 'color-yellow-500', 'color-yellow-600', 'color-yellow-700', 'color-yellow-800', 'color-yellow-900', 'container-0', 'container-2xl', 'container-3xl', 'container-4xl', 'container-5xl', 'container-6xl', 'container-7xl', 'container-8xl', 'container-9xl', 'container-lg', 'container-md', 'container-page', 'container-pageminsidebar', 'container-prose', 'container-sm', 'container-xl', 'container-xs', 'control-height', 'control-height-lg', 'control-outline-pressed-shadow', 'control-outline-shadow', 'control-pressed-shadow', 'destructive', 'destructive-foreground', 'duration-base', 'duration-fast', 'duration-slow', 'ease-emphasized', 'ease-standard', 'field-border', 'field-chip-internal-border', 'field-chip-internal-surface', 'field-chip-surface', 'field-disabled-surface', 'field-readonly-surface', 'field-surface', 'focus-ring', 'font-body', 'font-code', 'font-heading', 'font-inherit', 'font-mono', 'font-sans', 'font-serif', 'foreground', 'input', 'input-group-radius', 'leading-base', 'leading-body', 'leading-heading', 'leading-loose', 'leading-none', 'leading-normal', 'leading-relaxed', 'leading-snug', 'leading-supertight', 'leading-tight', 'leading-tighter', 'map-surface', 'mobile-navbar-height', 'muted', 'muted-foreground', 'popover', 'popover-foreground', 'primary', 'primary-foreground', 'publish-accent', 'radius', 'radius-2xl', 'radius-3xl', 'radius-badge', 'radius-card', 'radius-control', 'radius-control-sm', 'radius-field', 'radius-full', 'radius-lg', 'radius-md', 'radius-menu', 'radius-menu-item', 'radius-pill', 'radius-sm', 'radius-surface', 'radius-trend-badge', 'radius-xl', 'radius-xs', 'ring', 'secondary', 'secondary-foreground', 'shadow', 'shadow-control-outline', 'shadow-control-outline-pressed', 'shadow-control-pressed', 'shadow-inner', 'shadow-lg', 'shadow-md', 'shadow-md-heavy', 'shadow-none', 'shadow-sm', 'shadow-xl', 'shadow-xs', 'sidebar-accent', 'sidebar-accent-foreground', 'sidebar-background', 'sidebar-border', 'sidebar-foreground', 'sidebar-primary', 'sidebar-primary-foreground', 'sidebar-ring', 'spacing', 'state-danger', 'state-danger-foreground', 'state-info', 'state-info-foreground', 'state-success', 'state-success-foreground', 'state-warning', 'state-warning-border', 'state-warning-fill', 'state-warning-foreground', 'state-warning-surface', 'surface-elevated', 'surface-page', 'surface-panel', 'text-2xl', 'text-2xs', 'text-3xl', 'text-4xl', 'text-5xl', 'text-5xl--line-height', 'text-6xl', 'text-6xl--line-height', 'text-7xl', 'text-7xl--line-height', 'text-8xl', 'text-8xl--line-height', 'text-9xl', 'text-9xl--line-height', 'text-base', 'text-body-lg', 'text-body-md', 'text-body-sm', 'text-control', 'text-control-lg', 'text-field', 'text-lg', 'text-md', 'text-primary', 'text-secondary', 'text-sm', 'text-tertiary', 'text-xl', 'text-xs', 'tracking-normal', 'tracking-tight', 'tracking-tighter', 'tracking-tightest', 'tracking-wide', 'tracking-wider', 'tracking-widest'];
|
|
2
2
|
export type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];
|
|
3
3
|
export declare const shadeToken: (name: ShadeTokenName) => string;
|
|
4
4
|
//# sourceMappingURL=tokens.d.ts.map
|
package/types/tokens.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,YAC5B,QAAQ,EACR,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,6BAA6B,EAC7B,0BAA0B,EAC1B,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,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ACT,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,SAAS,EACT,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,CACT,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,UAAU,SAAU,cAAc,KAAG,MAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,YAC5B,QAAQ,EACR,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,6BAA6B,EAC7B,0BAA0B,EAC1B,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,qBAA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