@tryghost/shade 0.1.0-alpha.27 → 0.1.0-alpha.29
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/patterns/image-upload.js +20 -13
- package/es/components/patterns/image-upload.js.map +1 -1
- package/es/components/patterns/settings-modal.js +1 -1
- package/es/components/ui/button.js +16 -3
- package/es/components/ui/button.js.map +1 -1
- package/es/components/ui/dialog.js +1 -1
- package/es/components/ui/dialog.js.map +1 -1
- package/es/components/ui/dropzone-variants.js +26 -8
- package/es/components/ui/dropzone-variants.js.map +1 -1
- package/es/components/ui/dropzone.js +2 -2
- package/es/components/ui/dropzone.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/pagemenu.js +18 -6
- package/es/components/ui/pagemenu.js.map +1 -1
- package/es/components/ui/sidebar.js +1 -1
- package/es/components/ui/tabs-variants.js +23 -1
- package/es/components/ui/tabs-variants.js.map +1 -1
- package/es/components/ui/tabs.js +39 -18
- package/es/components/ui/tabs.js.map +1 -1
- package/es/components.js +4 -4
- package/es/index.js +4 -4
- package/es/tokens.js +4 -0
- package/es/tokens.js.map +1 -1
- package/package.json +1 -1
- package/styles.css +4 -4
- package/tailwind.theme.css +3 -0
- package/theme-variables.css +13 -4
- package/types/components/patterns/image-upload.d.ts.map +1 -1
- package/types/components/ui/button.d.ts +5 -0
- package/types/components/ui/button.d.ts.map +1 -1
- package/types/components/ui/dropzone-variants.d.ts +2 -1
- package/types/components/ui/dropzone-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/pagemenu.d.ts.map +1 -1
- package/types/components/ui/tabs-variants.d.ts +5 -1
- package/types/components/ui/tabs-variants.d.ts.map +1 -1
- package/types/components/ui/tabs.d.ts.map +1 -1
- package/types/tokens.d.ts +1 -1
- package/types/tokens.d.ts.map +1 -1
package/es/components/ui/tabs.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../lib/ds-utils.js";
|
|
2
2
|
import { useShade } from "../../providers/shade-context.js";
|
|
3
3
|
import { DropdownMenuTrigger } from "./dropdown-menu.js";
|
|
4
|
+
import { tabSurfaceVariants } from "./tabs-variants.js";
|
|
4
5
|
import * as React$1 from "react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import { cva } from "class-variance-authority";
|
|
@@ -11,10 +12,11 @@ var TabsContext = React$1.createContext({
|
|
|
11
12
|
controlShape: "rounded"
|
|
12
13
|
});
|
|
13
14
|
var Tabs = React$1.forwardRef(({ variant = "segmented", ...props }, ref) => {
|
|
14
|
-
const { controlShape } = useShade();
|
|
15
|
+
const { controlShape, admin7Design } = useShade();
|
|
16
|
+
const resolvedVariant = admin7Design && variant !== "kpis" ? variant === "button-sm" || variant === "segmented-sm" || variant === "pill" ? "button-sm" : "button" : variant;
|
|
15
17
|
return /* @__PURE__ */ jsx(TabsContext.Provider, {
|
|
16
18
|
value: {
|
|
17
|
-
variant,
|
|
19
|
+
variant: resolvedVariant,
|
|
18
20
|
controlShape
|
|
19
21
|
},
|
|
20
22
|
children: /* @__PURE__ */ jsx(TabsPrimitive.Root, {
|
|
@@ -25,24 +27,37 @@ var Tabs = React$1.forwardRef(({ variant = "segmented", ...props }, ref) => {
|
|
|
25
27
|
});
|
|
26
28
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
27
29
|
var tabsListVariants = cva("inline-flex items-center text-muted-foreground", {
|
|
28
|
-
variants: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
variants: {
|
|
31
|
+
variant: {
|
|
32
|
+
segmented: "h-(--control-height) rounded-lg bg-muted px-[3px]",
|
|
33
|
+
"segmented-sm": "h-8 rounded-lg bg-muted px-[3px]",
|
|
34
|
+
button: "gap-2",
|
|
35
|
+
"button-sm": "gap-1",
|
|
36
|
+
underline: "no-scrollbar w-full max-w-full gap-5 overflow-x-auto border-b border-border-default",
|
|
37
|
+
navbar: "h-[52px] items-end gap-6",
|
|
38
|
+
pill: "-ml-0.5 h-[30px] gap-px",
|
|
39
|
+
kpis: "border-b ring-0"
|
|
40
|
+
},
|
|
41
|
+
admin7Design: {
|
|
42
|
+
true: "",
|
|
43
|
+
false: ""
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
compoundVariants: [{
|
|
47
|
+
variant: ["button", "button-sm"],
|
|
48
|
+
admin7Design: true,
|
|
49
|
+
className: "no-scrollbar max-w-full overflow-x-auto"
|
|
50
|
+
}],
|
|
38
51
|
defaultVariants: { variant: "segmented" }
|
|
39
52
|
});
|
|
40
53
|
var TabsList = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
41
54
|
const { variant } = React$1.useContext(TabsContext);
|
|
55
|
+
const { admin7Design } = useShade();
|
|
42
56
|
return /* @__PURE__ */ jsx(TabsPrimitive.List, {
|
|
43
57
|
ref,
|
|
44
58
|
className: cn(tabsListVariants({
|
|
45
59
|
variant,
|
|
60
|
+
admin7Design,
|
|
46
61
|
className
|
|
47
62
|
})),
|
|
48
63
|
...props
|
|
@@ -78,13 +93,16 @@ var tabsTriggerVariants = cva("inline-flex items-center justify-center px-3 py-1
|
|
|
78
93
|
});
|
|
79
94
|
var TabsTrigger = React$1.forwardRef(({ className, onMouseDownCapture, ...props }, ref) => {
|
|
80
95
|
const { variant, controlShape } = React$1.useContext(TabsContext);
|
|
96
|
+
const { admin7Design } = useShade();
|
|
81
97
|
return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, {
|
|
82
98
|
ref,
|
|
83
99
|
className: cn(tabsTriggerVariants({
|
|
84
100
|
variant,
|
|
85
|
-
controlShape
|
|
86
|
-
|
|
87
|
-
|
|
101
|
+
controlShape
|
|
102
|
+
}), variant !== "kpis" && tabSurfaceVariants({
|
|
103
|
+
admin7Design,
|
|
104
|
+
size: variant === "button-sm" ? "compact" : "default"
|
|
105
|
+
}), className),
|
|
88
106
|
onMouseDownCapture: (event) => {
|
|
89
107
|
const activeElement = document.activeElement;
|
|
90
108
|
if (activeElement instanceof HTMLElement && activeElement.matches("input, textarea, select, [contenteditable=\"true\"]")) activeElement.blur();
|
|
@@ -128,15 +146,18 @@ var TabsContent = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
|
128
146
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
129
147
|
var TabsDropdownTrigger = React$1.forwardRef(({ children, className, ...props }, ref) => {
|
|
130
148
|
const { variant, controlShape } = React$1.useContext(TabsContext);
|
|
149
|
+
const { admin7Design } = useShade();
|
|
131
150
|
return /* @__PURE__ */ jsxs("div", {
|
|
132
151
|
className: cn("relative rounded-control hover:bg-tab-hover", (variant === "button" || variant === "button-sm") && controlShape === "pill" && "rounded-full"),
|
|
133
152
|
children: [/* @__PURE__ */ jsx(TabsPrimitive.Trigger, {
|
|
134
153
|
ref,
|
|
135
154
|
className: cn(tabsTriggerVariants({
|
|
136
155
|
variant,
|
|
137
|
-
controlShape
|
|
138
|
-
|
|
139
|
-
|
|
156
|
+
controlShape
|
|
157
|
+
}), variant !== "kpis" && tabSurfaceVariants({
|
|
158
|
+
admin7Design,
|
|
159
|
+
size: variant === "button-sm" ? "compact" : "default"
|
|
160
|
+
}), className),
|
|
140
161
|
...props,
|
|
141
162
|
children: /* @__PURE__ */ jsx("div", {
|
|
142
163
|
className: "flex items-center gap-2",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.js","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { DropdownMenuTrigger } from './dropdown-menu';\n\nimport { cn } from '@/lib/utils';\nimport { cva } from 'class-variance-authority';\nimport { type ControlShape, useShade } from '@/providers/shade-context';\n\ntype TabsVariant =\n | 'segmented'\n | 'segmented-sm'\n | 'button'\n | 'button-sm'\n | 'underline'\n | 'navbar'\n | 'pill'\n | 'kpis';\n\ninterface TabsContextValue {\n variant: TabsVariant;\n controlShape: ControlShape;\n}\n\nconst TabsContext = React.createContext<TabsContextValue>({\n variant: 'segmented',\n controlShape: 'rounded',\n});\n\nexport interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {\n variant?: TabsVariant;\n}\n\nconst Tabs = React.forwardRef<React.ElementRef<typeof TabsPrimitive.Root>, TabsProps>(\n ({ variant = 'segmented', ...props }, ref) => {\n const { controlShape } = useShade();\n\n return (\n <TabsContext.Provider value={{ variant, controlShape }}>\n <TabsPrimitive.Root ref={ref} {...props} />\n </TabsContext.Provider>\n );\n },\n);\nTabs.displayName = TabsPrimitive.Root.displayName;\n\nconst tabsListVariants = cva('inline-flex items-center text-muted-foreground', {\n variants: {\n variant: {\n segmented: 'h-(--control-height) rounded-lg bg-muted px-[3px]',\n 'segmented-sm': 'h-8 rounded-lg bg-muted px-[3px]',\n button: 'gap-2',\n 'button-sm': 'gap-1',\n underline:\n 'no-scrollbar w-full max-w-full gap-5 overflow-x-auto border-b border-border-default',\n navbar: 'h-[52px] items-end gap-6',\n pill: '-ml-0.5 h-[30px] gap-px',\n // The `kpis` variant is consumed only by `features/kpi/kpi-tabs.tsx`.\n // Kept here so the cva variant set is in one place; not for direct use by app code.\n kpis: 'border-b ring-0',\n },\n },\n defaultVariants: {\n variant: 'segmented',\n },\n});\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => {\n const { variant } = React.useContext(TabsContext);\n return (\n <TabsPrimitive.List\n ref={ref}\n className={cn(tabsListVariants({ variant, className }))}\n {...props}\n />\n );\n});\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nconst tabsTriggerVariants = cva(\n 'inline-flex items-center justify-center px-3 py-1 whitespace-nowrap ring-offset-background transition-all focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n segmented:\n 'h-[calc(var(--control-height)-4px)] rounded-control text-control font-medium data-[state=active]:shadow-md',\n 'segmented-sm':\n 'h-[26px] rounded-control text-sm font-medium data-[state=active]:shadow-md',\n button:\n 'h-(--control-height) gap-1.5 rounded-control py-2 text-control font-medium hover:bg-tab-hover data-[state=active]:bg-tab-active data-[state=active]:hover:bg-tab-active',\n 'button-sm':\n 'h-6 gap-1.5 rounded-control p-2 text-sm font-medium text-text-secondary hover:bg-tab-hover data-[state=active]:bg-tab-active data-[state=active]:text-foreground data-[state=active]:hover:bg-tab-active',\n underline:\n 'relative h-9 px-0 text-control font-semibold text-text-secondary after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[\"\"] hover:after:opacity-10 data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:after:opacity-100!',\n navbar:\n 'relative h-[52px] px-px text-control font-semibold text-muted-foreground after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[\"\"] hover:text-foreground data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:after:opacity-100!',\n pill: 'relative h-[30px] rounded-md px-3 text-control font-medium text-text-secondary hover:bg-tab-hover hover:text-foreground data-[state=active]:bg-tab-active data-[state=active]:text-foreground data-[state=active]:hover:bg-tab-active',\n kpis: 'relative h-full! items-start! rounded-none border-border bg-transparent px-6 py-5 text-foreground ring-0 transition-all after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[\"\"] first:rounded-tl-md last:rounded-tr-md hover:bg-interactive-hover data-[state=active]:bg-transparent data-[state=active]:after:opacity-100 [&:not(:last-child)]:border-r [&[data-state=active]_[data-type=\"value\"]]:text-foreground',\n },\n controlShape: {\n rounded: '',\n pill: '',\n },\n },\n compoundVariants: [\n {\n variant: ['button', 'button-sm'],\n controlShape: 'pill',\n className: 'rounded-full',\n },\n ],\n defaultVariants: {\n variant: 'segmented',\n controlShape: 'rounded',\n },\n },\n);\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, onMouseDownCapture, ...props }, ref) => {\n const { variant, controlShape } = React.useContext(TabsContext);\n return (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(tabsTriggerVariants({ variant, controlShape, className }))}\n onMouseDownCapture={(event) => {\n const activeElement = document.activeElement;\n if (\n activeElement instanceof HTMLElement &&\n activeElement.matches('input, textarea, select, [contenteditable=\"true\"]')\n ) {\n activeElement.blur();\n }\n onMouseDownCapture?.(event);\n }}\n {...props}\n />\n );\n});\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\ninterface TabsTriggerCountProps {\n children: React.ReactNode;\n className?: string;\n}\n\nconst TabsTriggerCount: React.FC<TabsTriggerCountProps> = ({ className = '', children }) => {\n return (\n <span\n className={cn(\n 'mt-px ml-1.5 flex h-5 items-center justify-center rounded-full bg-secondary px-1.5 py-0 text-xs leading-[21px] font-semibold text-text-secondary',\n className,\n )}\n >\n {children}\n </span>\n );\n};\nTabsTriggerCount.displayName = 'TabsTriggerCount';\n\nconst tabsContentVariants = cva(\n 'ring-offset-background focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:outline-hidden',\n {\n variants: {\n variant: {\n segmented: '',\n 'segmented-sm': '',\n button: '',\n 'button-sm': '',\n underline: '',\n navbar: '',\n pill: '',\n kpis: 'ring-0',\n },\n },\n defaultVariants: {\n variant: 'segmented',\n },\n },\n);\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => {\n const { variant } = React.useContext(TabsContext);\n return (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(tabsContentVariants({ variant, className }))}\n {...props}\n />\n );\n});\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\ninterface TabsDropdownTriggerProps extends Omit<\n React.ComponentProps<typeof TabsPrimitive.Trigger>,\n 'asChild'\n> {\n children: React.ReactNode;\n}\n\nconst TabsDropdownTrigger = React.forwardRef<HTMLButtonElement, TabsDropdownTriggerProps>(\n ({ children, className, ...props }, ref) => {\n const { variant, controlShape } = React.useContext(TabsContext);\n return (\n <div\n className={cn(\n 'relative rounded-control hover:bg-tab-hover',\n (variant === 'button' || variant === 'button-sm') &&\n controlShape === 'pill' &&\n 'rounded-full',\n )}\n >\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(tabsTriggerVariants({ variant, controlShape, className }))}\n {...props}\n >\n <div className=\"flex items-center gap-2\">{children}</div>\n </TabsPrimitive.Trigger>\n <DropdownMenuTrigger\n className=\"absolute inset-0 size-full cursor-pointer\"\n onClick={(e) => {\n // Stop propagation to prevent tab change\n e.preventDefault();\n }}\n />\n </div>\n );\n },\n);\nTabsDropdownTrigger.displayName = 'TabsDropdownTrigger';\n\nexport { Tabs, TabsList, TabsTrigger, TabsTriggerCount, TabsContent, TabsDropdownTrigger };\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"tabs.js","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { DropdownMenuTrigger } from './dropdown-menu';\n\nimport { cn } from '@/lib/utils';\nimport { cva } from 'class-variance-authority';\nimport { type ControlShape, useShade } from '@/providers/shade-context';\nimport { tabSurfaceVariants } from '@/components/ui/tabs-variants';\n\ntype TabsVariant =\n | 'segmented'\n | 'segmented-sm'\n | 'button'\n | 'button-sm'\n | 'underline'\n | 'navbar'\n | 'pill'\n | 'kpis';\n\ninterface TabsContextValue {\n variant: TabsVariant;\n controlShape: ControlShape;\n}\n\nconst TabsContext = React.createContext<TabsContextValue>({\n variant: 'segmented',\n controlShape: 'rounded',\n});\n\nexport interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {\n variant?: TabsVariant;\n}\n\nconst Tabs = React.forwardRef<React.ElementRef<typeof TabsPrimitive.Root>, TabsProps>(\n ({ variant = 'segmented', ...props }, ref) => {\n const { controlShape, admin7Design } = useShade();\n // Standard tabs share the Admin 7 pill treatment. KPI tabs retain their\n // chart-card layout; compact tabs retain their smaller size.\n const resolvedVariant =\n admin7Design && variant !== 'kpis'\n ? variant === 'button-sm' || variant === 'segmented-sm' || variant === 'pill'\n ? 'button-sm'\n : 'button'\n : variant;\n\n return (\n <TabsContext.Provider value={{ variant: resolvedVariant, controlShape }}>\n <TabsPrimitive.Root ref={ref} {...props} />\n </TabsContext.Provider>\n );\n },\n);\nTabs.displayName = TabsPrimitive.Root.displayName;\n\nconst tabsListVariants = cva('inline-flex items-center text-muted-foreground', {\n variants: {\n variant: {\n segmented: 'h-(--control-height) rounded-lg bg-muted px-[3px]',\n 'segmented-sm': 'h-8 rounded-lg bg-muted px-[3px]',\n button: 'gap-2',\n 'button-sm': 'gap-1',\n underline:\n 'no-scrollbar w-full max-w-full gap-5 overflow-x-auto border-b border-border-default',\n navbar: 'h-[52px] items-end gap-6',\n pill: '-ml-0.5 h-[30px] gap-px',\n // The `kpis` variant is consumed only by `features/kpi/kpi-tabs.tsx`.\n // Kept here so the cva variant set is in one place; not for direct use by app code.\n kpis: 'border-b ring-0',\n },\n admin7Design: {\n true: '',\n false: '',\n },\n },\n compoundVariants: [\n {\n variant: ['button', 'button-sm'],\n admin7Design: true,\n className: 'no-scrollbar max-w-full overflow-x-auto',\n },\n ],\n defaultVariants: {\n variant: 'segmented',\n },\n});\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => {\n const { variant } = React.useContext(TabsContext);\n const { admin7Design } = useShade();\n return (\n <TabsPrimitive.List\n ref={ref}\n className={cn(tabsListVariants({ variant, admin7Design, className }))}\n {...props}\n />\n );\n});\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nconst tabsTriggerVariants = cva(\n 'inline-flex items-center justify-center px-3 py-1 whitespace-nowrap ring-offset-background transition-all focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n segmented:\n 'h-[calc(var(--control-height)-4px)] rounded-control text-control font-medium data-[state=active]:shadow-md',\n 'segmented-sm':\n 'h-[26px] rounded-control text-sm font-medium data-[state=active]:shadow-md',\n button:\n 'h-(--control-height) gap-1.5 rounded-control py-2 text-control font-medium hover:bg-tab-hover data-[state=active]:bg-tab-active data-[state=active]:hover:bg-tab-active',\n 'button-sm':\n 'h-6 gap-1.5 rounded-control p-2 text-sm font-medium text-text-secondary hover:bg-tab-hover data-[state=active]:bg-tab-active data-[state=active]:text-foreground data-[state=active]:hover:bg-tab-active',\n underline:\n 'relative h-9 px-0 text-control font-semibold text-text-secondary after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[\"\"] hover:after:opacity-10 data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:after:opacity-100!',\n navbar:\n 'relative h-[52px] px-px text-control font-semibold text-muted-foreground after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[\"\"] hover:text-foreground data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:after:opacity-100!',\n pill: 'relative h-[30px] rounded-md px-3 text-control font-medium text-text-secondary hover:bg-tab-hover hover:text-foreground data-[state=active]:bg-tab-active data-[state=active]:text-foreground data-[state=active]:hover:bg-tab-active',\n kpis: 'relative h-full! items-start! rounded-none border-border bg-transparent px-6 py-5 text-foreground ring-0 transition-all after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[\"\"] first:rounded-tl-md last:rounded-tr-md hover:bg-interactive-hover data-[state=active]:bg-transparent data-[state=active]:after:opacity-100 [&:not(:last-child)]:border-r [&[data-state=active]_[data-type=\"value\"]]:text-foreground',\n },\n controlShape: {\n rounded: '',\n pill: '',\n },\n },\n compoundVariants: [\n {\n variant: ['button', 'button-sm'],\n controlShape: 'pill',\n className: 'rounded-full',\n },\n ],\n defaultVariants: {\n variant: 'segmented',\n controlShape: 'rounded',\n },\n },\n);\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, onMouseDownCapture, ...props }, ref) => {\n const { variant, controlShape } = React.useContext(TabsContext);\n const { admin7Design } = useShade();\n return (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n tabsTriggerVariants({ variant, controlShape }),\n variant !== 'kpis' &&\n tabSurfaceVariants({\n admin7Design,\n size: variant === 'button-sm' ? 'compact' : 'default',\n }),\n className,\n )}\n onMouseDownCapture={(event) => {\n const activeElement = document.activeElement;\n if (\n activeElement instanceof HTMLElement &&\n activeElement.matches('input, textarea, select, [contenteditable=\"true\"]')\n ) {\n activeElement.blur();\n }\n onMouseDownCapture?.(event);\n }}\n {...props}\n />\n );\n});\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\ninterface TabsTriggerCountProps {\n children: React.ReactNode;\n className?: string;\n}\n\nconst TabsTriggerCount: React.FC<TabsTriggerCountProps> = ({ className = '', children }) => {\n return (\n <span\n className={cn(\n 'mt-px ml-1.5 flex h-5 items-center justify-center rounded-full bg-secondary px-1.5 py-0 text-xs leading-[21px] font-semibold text-text-secondary',\n className,\n )}\n >\n {children}\n </span>\n );\n};\nTabsTriggerCount.displayName = 'TabsTriggerCount';\n\nconst tabsContentVariants = cva(\n 'ring-offset-background focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:outline-hidden',\n {\n variants: {\n variant: {\n segmented: '',\n 'segmented-sm': '',\n button: '',\n 'button-sm': '',\n underline: '',\n navbar: '',\n pill: '',\n kpis: 'ring-0',\n },\n },\n defaultVariants: {\n variant: 'segmented',\n },\n },\n);\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => {\n const { variant } = React.useContext(TabsContext);\n return (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(tabsContentVariants({ variant, className }))}\n {...props}\n />\n );\n});\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\ninterface TabsDropdownTriggerProps extends Omit<\n React.ComponentProps<typeof TabsPrimitive.Trigger>,\n 'asChild'\n> {\n children: React.ReactNode;\n}\n\nconst TabsDropdownTrigger = React.forwardRef<HTMLButtonElement, TabsDropdownTriggerProps>(\n ({ children, className, ...props }, ref) => {\n const { variant, controlShape } = React.useContext(TabsContext);\n const { admin7Design } = useShade();\n return (\n <div\n className={cn(\n 'relative rounded-control hover:bg-tab-hover',\n (variant === 'button' || variant === 'button-sm') &&\n controlShape === 'pill' &&\n 'rounded-full',\n )}\n >\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n tabsTriggerVariants({ variant, controlShape }),\n variant !== 'kpis' &&\n tabSurfaceVariants({\n admin7Design,\n size: variant === 'button-sm' ? 'compact' : 'default',\n }),\n className,\n )}\n {...props}\n >\n <div className=\"flex items-center gap-2\">{children}</div>\n </TabsPrimitive.Trigger>\n <DropdownMenuTrigger\n className=\"absolute inset-0 size-full cursor-pointer\"\n onClick={(e) => {\n // Stop propagation to prevent tab change\n e.preventDefault();\n }}\n />\n </div>\n );\n },\n);\nTabsDropdownTrigger.displayName = 'TabsDropdownTrigger';\n\nexport { Tabs, TabsList, TabsTrigger, TabsTriggerCount, TabsContent, TabsDropdownTrigger };\n"],"mappings":"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"}
|
package/es/components.js
CHANGED
|
@@ -3,12 +3,15 @@ import { Toaster } from "./components/ui/sonner.js";
|
|
|
3
3
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/ui/tooltip.js";
|
|
4
4
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/ui/dropdown-menu.js";
|
|
5
5
|
import { buttonVariants } from "./components/ui/button-variants.js";
|
|
6
|
+
import { Skeleton, SkeletonTable } from "./components/ui/skeleton.js";
|
|
7
|
+
import { BarChartLoadingIndicator, LoadingIndicator } from "./components/ui/loading-indicator.js";
|
|
6
8
|
import { Button } from "./components/ui/button.js";
|
|
7
9
|
import { selectTriggerVariants } from "./components/ui/select-variants.js";
|
|
8
10
|
import { inputSurface, inputSurfaceClasses } from "./components/ui/input-surface.js";
|
|
9
11
|
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./components/ui/select.js";
|
|
10
12
|
import { Kbd, KbdGroup } from "./components/ui/kbd.js";
|
|
11
13
|
import { AlignedAxisTick, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./components/ui/chart.js";
|
|
14
|
+
import { tabSurfaceVariants, tabsVariants } from "./components/ui/tabs-variants.js";
|
|
12
15
|
import { Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount } from "./components/ui/tabs.js";
|
|
13
16
|
import { Calendar, CalendarDayButton } from "./components/ui/calendar.js";
|
|
14
17
|
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./components/ui/dialog.js";
|
|
@@ -21,8 +24,6 @@ import { dropzoneVariants } from "./components/ui/dropzone-variants.js";
|
|
|
21
24
|
import { Dropzone } from "./components/ui/dropzone.js";
|
|
22
25
|
import { imageOverlayButton, imageOverlayButtonClasses } from "./components/ui/image-overlay-button.js";
|
|
23
26
|
import { Input } from "./components/ui/input.js";
|
|
24
|
-
import { Skeleton, SkeletonTable } from "./components/ui/skeleton.js";
|
|
25
|
-
import { BarChartLoadingIndicator, LoadingIndicator } from "./components/ui/loading-indicator.js";
|
|
26
27
|
import { StickyFooter } from "./components/ui/sticky-footer.js";
|
|
27
28
|
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/ui/accordion.js";
|
|
28
29
|
import { ActionList, ActionListItem, ActionListItemActions, ActionListItemContent } from "./components/ui/action-list.js";
|
|
@@ -69,7 +70,6 @@ import { useSidebar } from "./components/ui/sidebar-context.js";
|
|
|
69
70
|
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger } from "./components/ui/sidebar.js";
|
|
70
71
|
import { DragIndicator, SortableList } from "./components/ui/sortable-list.js";
|
|
71
72
|
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow } from "./components/ui/table.js";
|
|
72
|
-
import { tabsVariants } from "./components/ui/tabs-variants.js";
|
|
73
73
|
import { Textarea } from "./components/ui/textarea.js";
|
|
74
74
|
import { toast } from "./components/ui/toast.js";
|
|
75
75
|
import { ToggleGroup, ToggleGroupItem } from "./components/ui/toggle-group.js";
|
|
@@ -77,4 +77,4 @@ import { a as TwitterLogo, i as GoogleLogo, n as GhostLogo, o as XLogo, r as Gho
|
|
|
77
77
|
import { TimePicker } from "./components/ui/time-picker.js";
|
|
78
78
|
import { tokenFieldClasses } from "./components/ui/token-field.js";
|
|
79
79
|
import { defaultFilter as commandDefaultFilter } from "cmdk";
|
|
80
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhostLogo, GhostOrb, GoogleLogo, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, Indicator, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, Label, Link, LoadingIndicator, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwitterLogo, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, selectTriggerVariants, tabsVariants, toast, tokenFieldClasses, useFormField, useSidebar };
|
|
80
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhostLogo, GhostOrb, GoogleLogo, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, Indicator, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, Label, Link, LoadingIndicator, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwitterLogo, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, selectTriggerVariants, tabSurfaceVariants, tabsVariants, toast, tokenFieldClasses, useFormField, useSidebar };
|
package/es/index.js
CHANGED
|
@@ -13,6 +13,8 @@ import { H1, H2, H3, H4, HTable } from "./components/layout/heading.js";
|
|
|
13
13
|
import "./primitives.js";
|
|
14
14
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/ui/dropdown-menu.js";
|
|
15
15
|
import { buttonVariants } from "./components/ui/button-variants.js";
|
|
16
|
+
import { Skeleton, SkeletonTable } from "./components/ui/skeleton.js";
|
|
17
|
+
import { BarChartLoadingIndicator, LoadingIndicator } from "./components/ui/loading-indicator.js";
|
|
16
18
|
import { Button } from "./components/ui/button.js";
|
|
17
19
|
import { selectTriggerVariants } from "./components/ui/select-variants.js";
|
|
18
20
|
import { inputSurface, inputSurfaceClasses } from "./components/ui/input-surface.js";
|
|
@@ -24,6 +26,7 @@ import { FilterBar } from "./components/patterns/filter-bar.js";
|
|
|
24
26
|
import { AlignedAxisTick, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./components/ui/chart.js";
|
|
25
27
|
import { GhAreaChart, GhCustomTooltipContent } from "./components/patterns/gh-chart.js";
|
|
26
28
|
import { KpiCardHeader, KpiCardHeaderLabel, KpiCardHeaderValue } from "./components/patterns/kpi-card.js";
|
|
29
|
+
import { tabSurfaceVariants, tabsVariants } from "./components/ui/tabs-variants.js";
|
|
27
30
|
import { Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount } from "./components/ui/tabs.js";
|
|
28
31
|
import { KpiDropdownButton, KpiTabTrigger, KpiTabValue } from "./components/patterns/kpi-tabs.js";
|
|
29
32
|
import { Calendar, CalendarDayButton } from "./components/ui/calendar.js";
|
|
@@ -48,8 +51,6 @@ import { Input } from "./components/ui/input.js";
|
|
|
48
51
|
import ColorPicker, { ColorPickerTrigger, ColorSwatch, ColorSwatchRow } from "./components/patterns/color-picker.js";
|
|
49
52
|
import ShareModal from "./components/patterns/share-modal.js";
|
|
50
53
|
import { settingsModalVariants } from "./components/patterns/settings-modal-variants.js";
|
|
51
|
-
import { Skeleton, SkeletonTable } from "./components/ui/skeleton.js";
|
|
52
|
-
import { BarChartLoadingIndicator, LoadingIndicator } from "./components/ui/loading-indicator.js";
|
|
53
54
|
import { StickyFooter } from "./components/ui/sticky-footer.js";
|
|
54
55
|
import { SettingsModal } from "./components/patterns/settings-modal.js";
|
|
55
56
|
import "./patterns.js";
|
|
@@ -103,7 +104,6 @@ import { useSidebar } from "./components/ui/sidebar-context.js";
|
|
|
103
104
|
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger } from "./components/ui/sidebar.js";
|
|
104
105
|
import { DragIndicator, SortableList } from "./components/ui/sortable-list.js";
|
|
105
106
|
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow } from "./components/ui/table.js";
|
|
106
|
-
import { tabsVariants } from "./components/ui/tabs-variants.js";
|
|
107
107
|
import { Textarea } from "./components/ui/textarea.js";
|
|
108
108
|
import { toast } from "./components/ui/toast.js";
|
|
109
109
|
import { ToggleGroup, ToggleGroupItem } from "./components/ui/toggle-group.js";
|
|
@@ -111,4 +111,4 @@ import { a as TwitterLogo, i as GoogleLogo, n as GhostLogo, o as XLogo, r as Gho
|
|
|
111
111
|
import { TimePicker } from "./components/ui/time-picker.js";
|
|
112
112
|
import { tokenFieldClasses } from "./components/ui/token-field.js";
|
|
113
113
|
import { commandDefaultFilter } from "./components.js";
|
|
114
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, ColorPicker, ColorPickerTrigger, ColorSwatch, ColorSwatchRow, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DEFAULT_I18N, DEFAULT_OPERATORS, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, DetailPage, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirtyConfirmDialog, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, ErrorPage, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterBar, FilterDatePicker, FilterSegmentInput, FilterSegmentMultiSelect, FilterSegmentSelect, Filters, FiltersContent, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhAreaChart, GhCustomTooltipContent, GhostLogo, GhostOrb, GoogleLogo, Grid, H1, H2, H3, H4, HTable, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, ImageUpload, ImageUploadAction, ImageUploadActions, ImageUploadDropzone, ImageUploadImage, ImageUploadPreview, Indicator, Inline, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, KpiCardHeader, KpiCardHeaderLabel, KpiCardHeaderValue, KpiDropdownButton, KpiTabTrigger, KpiTabValue, Label, Link, ListPage, ListPageBody, ListPageHeader, LoadingIndicator, ModalPage, ModalPageTitle, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageChromeProvider, PageHeader, PageHeaderActionGroup, PageHeaderActionGroupMobileMenu, PageHeaderActionGroupMobileMenuContent, PageHeaderActionGroupMobileMenuTrigger, PageHeaderActionGroupPrimary, PageHeaderActions, PageHeaderBreadcrumb, PageHeaderCount, PageHeaderDescription, PageHeaderLeft, PageHeaderMeta, PageHeaderTitle, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, SHADE_TOKEN_NAMES, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingGroup, SettingGroupActions, SettingGroupContent, SettingGroupDescription, SettingGroupDetails, SettingGroupHeader, SettingGroupTitle, SettingGroupValue, SettingGroupValueContent, SettingGroupValueTitle, SettingsModal, ShareModal, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, Stack, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Text, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwitterLogo, ViewBar, ViewBarActions, ViewBarNav, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, createFilter, createFilterGroup, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, imageUploadPreviewVariants, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, selectTriggerVariants, settingGroupVariants, settingsModalVariants, shadeToken, tabsVariants, toast, tokenFieldClasses, useDirtyConfirmation, useFormField, usePageChrome, useSidebar };
|
|
114
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, ColorPicker, ColorPickerTrigger, ColorSwatch, ColorSwatchRow, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DEFAULT_I18N, DEFAULT_OPERATORS, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, DetailPage, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirtyConfirmDialog, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, ErrorPage, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterBar, FilterDatePicker, FilterSegmentInput, FilterSegmentMultiSelect, FilterSegmentSelect, Filters, FiltersContent, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhAreaChart, GhCustomTooltipContent, GhostLogo, GhostOrb, GoogleLogo, Grid, H1, H2, H3, H4, HTable, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, ImageUpload, ImageUploadAction, ImageUploadActions, ImageUploadDropzone, ImageUploadImage, ImageUploadPreview, Indicator, Inline, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, KpiCardHeader, KpiCardHeaderLabel, KpiCardHeaderValue, KpiDropdownButton, KpiTabTrigger, KpiTabValue, Label, Link, ListPage, ListPageBody, ListPageHeader, LoadingIndicator, ModalPage, ModalPageTitle, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageChromeProvider, PageHeader, PageHeaderActionGroup, PageHeaderActionGroupMobileMenu, PageHeaderActionGroupMobileMenuContent, PageHeaderActionGroupMobileMenuTrigger, PageHeaderActionGroupPrimary, PageHeaderActions, PageHeaderBreadcrumb, PageHeaderCount, PageHeaderDescription, PageHeaderLeft, PageHeaderMeta, PageHeaderTitle, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, SHADE_TOKEN_NAMES, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingGroup, SettingGroupActions, SettingGroupContent, SettingGroupDescription, SettingGroupDetails, SettingGroupHeader, SettingGroupTitle, SettingGroupValue, SettingGroupValueContent, SettingGroupValueTitle, SettingsModal, ShareModal, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, Stack, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Text, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwitterLogo, ViewBar, ViewBarActions, ViewBarNav, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, createFilter, createFilterGroup, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, imageUploadPreviewVariants, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, selectTriggerVariants, settingGroupVariants, settingsModalVariants, shadeToken, tabSurfaceVariants, tabsVariants, toast, tokenFieldClasses, useDirtyConfirmation, useFormField, usePageChrome, useSidebar };
|
package/es/tokens.js
CHANGED
|
@@ -275,6 +275,7 @@ var SHADE_TOKEN_NAMES = [
|
|
|
275
275
|
"field-chip-surface",
|
|
276
276
|
"field-disabled-surface",
|
|
277
277
|
"field-readonly-surface",
|
|
278
|
+
"field-shadow",
|
|
278
279
|
"field-surface",
|
|
279
280
|
"focus-ring",
|
|
280
281
|
"font-body",
|
|
@@ -334,6 +335,7 @@ var SHADE_TOKEN_NAMES = [
|
|
|
334
335
|
"shadow-control-outline",
|
|
335
336
|
"shadow-control-outline-pressed",
|
|
336
337
|
"shadow-control-pressed",
|
|
338
|
+
"shadow-field",
|
|
337
339
|
"shadow-inner",
|
|
338
340
|
"shadow-lg",
|
|
339
341
|
"shadow-md",
|
|
@@ -365,6 +367,8 @@ var SHADE_TOKEN_NAMES = [
|
|
|
365
367
|
"surface-elevated",
|
|
366
368
|
"surface-page",
|
|
367
369
|
"surface-panel",
|
|
370
|
+
"tab-inactive",
|
|
371
|
+
"tab-inactive-hover",
|
|
368
372
|
"text-2xl",
|
|
369
373
|
"text-2xs",
|
|
370
374
|
"text-3xl",
|
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 'character-count',\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-character-count',\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-event-email-icon',\n 'color-event-email-surface',\n 'color-event-engagement-icon',\n 'color-event-engagement-surface',\n 'color-event-gain-icon',\n 'color-event-gain-surface',\n 'color-event-gift-icon',\n 'color-event-gift-surface',\n 'color-event-loss-icon',\n 'color-event-loss-surface',\n 'color-event-warning-icon',\n 'color-event-warning-surface',\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 'event-email-icon',\n 'event-email-surface',\n 'event-engagement-icon',\n 'event-engagement-surface',\n 'event-gain-icon',\n 'event-gain-surface',\n 'event-gift-icon',\n 'event-gift-surface',\n 'event-loss-icon',\n 'event-loss-surface',\n 'event-warning-icon',\n 'event-warning-surface',\n 'field-border',\n 'field-chip-internal-border',\n 'field-chip-internal-surface',\n 'field-chip-surface',\n 'field-disabled-surface',\n 'field-readonly-surface',\n 'field-surface',\n 'focus-ring',\n 'font-body',\n 'font-code',\n 'font-heading',\n 'font-inherit',\n 'font-mono',\n 'font-sans',\n 'font-serif',\n 'font-weight-title',\n 'foreground',\n 'input',\n 'input-group-radius',\n 'leading-base',\n 'leading-body',\n 'leading-heading',\n 'leading-loose',\n 'leading-none',\n 'leading-normal',\n 'leading-relaxed',\n 'leading-snug',\n 'leading-supertight',\n 'leading-tight',\n 'leading-tighter',\n 'map-surface',\n 'mobile-navbar-height',\n 'muted',\n 'muted-foreground',\n 'popover',\n 'popover-foreground',\n 'primary',\n 'primary-foreground',\n 'publish-accent',\n 'radius',\n 'radius-2xl',\n 'radius-3xl',\n 'radius-badge',\n 'radius-card',\n 'radius-control',\n 'radius-control-sm',\n 'radius-field',\n 'radius-full',\n 'radius-lg',\n 'radius-md',\n 'radius-menu',\n 'radius-menu-item',\n 'radius-pill',\n 'radius-sm',\n 'radius-surface',\n 'radius-trend-badge',\n 'radius-xl',\n 'radius-xs',\n 'ring',\n 'secondary',\n 'secondary-foreground',\n 'shadow',\n 'shadow-control-outline',\n 'shadow-control-outline-pressed',\n 'shadow-control-pressed',\n 'shadow-inner',\n 'shadow-lg',\n 'shadow-md',\n 'shadow-md-heavy',\n 'shadow-none',\n 'shadow-sm',\n 'shadow-xl',\n 'shadow-xs',\n 'sidebar-accent',\n 'sidebar-accent-foreground',\n 'sidebar-background',\n 'sidebar-border',\n 'sidebar-foreground',\n 'sidebar-primary',\n 'sidebar-primary-foreground',\n 'sidebar-ring',\n 'spacing',\n 'state-danger',\n 'state-danger-foreground',\n 'state-info',\n 'state-info-foreground',\n 'state-success',\n 'state-success-foreground',\n 'state-warning',\n 'state-warning-border',\n 'state-warning-fill',\n 'state-warning-foreground',\n 'state-warning-surface',\n 'surface-elevated',\n 'surface-page',\n 'surface-panel',\n 'text-2xl',\n 'text-2xs',\n 'text-3xl',\n 'text-4xl',\n 'text-5xl',\n 'text-5xl--line-height',\n 'text-6xl',\n 'text-6xl--line-height',\n 'text-7xl',\n 'text-7xl--line-height',\n 'text-8xl',\n 'text-8xl--line-height',\n 'text-9xl',\n 'text-9xl--line-height',\n 'text-base',\n 'text-body-lg',\n 'text-body-md',\n 'text-body-sm',\n 'text-control',\n 'text-control-lg',\n 'text-field',\n 'text-lg',\n 'text-md',\n 'text-primary',\n 'text-secondary',\n 'text-section-heading',\n 'text-section-heading-lg',\n 'text-sm',\n 'text-tertiary',\n 'text-xl',\n 'text-xs',\n 'tracking-normal',\n 'tracking-tight',\n 'tracking-tighter',\n 'tracking-tightest',\n 'tracking-wide',\n 'tracking-wider',\n 'tracking-widest',\n] as const;\n\nexport type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];\n\nexport const shadeToken = (name: ShadeTokenName): string => `var(--${name})`;\n"],"mappings":";AACA,IAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;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 'character-count',\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-character-count',\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-event-email-icon',\n 'color-event-email-surface',\n 'color-event-engagement-icon',\n 'color-event-engagement-surface',\n 'color-event-gain-icon',\n 'color-event-gain-surface',\n 'color-event-gift-icon',\n 'color-event-gift-surface',\n 'color-event-loss-icon',\n 'color-event-loss-surface',\n 'color-event-warning-icon',\n 'color-event-warning-surface',\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 'event-email-icon',\n 'event-email-surface',\n 'event-engagement-icon',\n 'event-engagement-surface',\n 'event-gain-icon',\n 'event-gain-surface',\n 'event-gift-icon',\n 'event-gift-surface',\n 'event-loss-icon',\n 'event-loss-surface',\n 'event-warning-icon',\n 'event-warning-surface',\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-shadow',\n 'field-surface',\n 'focus-ring',\n 'font-body',\n 'font-code',\n 'font-heading',\n 'font-inherit',\n 'font-mono',\n 'font-sans',\n 'font-serif',\n 'font-weight-title',\n 'foreground',\n 'input',\n 'input-group-radius',\n 'leading-base',\n 'leading-body',\n 'leading-heading',\n 'leading-loose',\n 'leading-none',\n 'leading-normal',\n 'leading-relaxed',\n 'leading-snug',\n 'leading-supertight',\n 'leading-tight',\n 'leading-tighter',\n 'map-surface',\n 'mobile-navbar-height',\n 'muted',\n 'muted-foreground',\n 'popover',\n 'popover-foreground',\n 'primary',\n 'primary-foreground',\n 'publish-accent',\n 'radius',\n 'radius-2xl',\n 'radius-3xl',\n 'radius-badge',\n 'radius-card',\n 'radius-control',\n 'radius-control-sm',\n 'radius-field',\n 'radius-full',\n 'radius-lg',\n 'radius-md',\n 'radius-menu',\n 'radius-menu-item',\n 'radius-pill',\n 'radius-sm',\n 'radius-surface',\n 'radius-trend-badge',\n 'radius-xl',\n 'radius-xs',\n 'ring',\n 'secondary',\n 'secondary-foreground',\n 'shadow',\n 'shadow-control-outline',\n 'shadow-control-outline-pressed',\n 'shadow-control-pressed',\n 'shadow-field',\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 'tab-inactive',\n 'tab-inactive-hover',\n 'text-2xl',\n 'text-2xs',\n 'text-3xl',\n 'text-4xl',\n 'text-5xl',\n 'text-5xl--line-height',\n 'text-6xl',\n 'text-6xl--line-height',\n 'text-7xl',\n 'text-7xl--line-height',\n 'text-8xl',\n 'text-8xl--line-height',\n 'text-9xl',\n 'text-9xl--line-height',\n 'text-base',\n 'text-body-lg',\n 'text-body-md',\n 'text-body-sm',\n 'text-control',\n 'text-control-lg',\n 'text-field',\n 'text-lg',\n 'text-md',\n 'text-primary',\n 'text-secondary',\n 'text-section-heading',\n 'text-section-heading-lg',\n 'text-sm',\n 'text-tertiary',\n 'text-xl',\n 'text-xs',\n 'tracking-normal',\n 'tracking-tight',\n 'tracking-tighter',\n 'tracking-tightest',\n 'tracking-wide',\n 'tracking-wider',\n 'tracking-widest',\n] as const;\n\nexport type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];\n\nexport const shadeToken = (name: ShadeTokenName): string => `var(--${name})`;\n"],"mappings":";AACA,IAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;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/styles.css
CHANGED
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
title. Comes after the utilities at their specificity, so it beats text classes. */
|
|
33
33
|
.section-heading:where([data-admin7-design='true'] *) {
|
|
34
34
|
font-size: var(--text-section-heading);
|
|
35
|
-
font-weight: var(--font-weight-
|
|
36
|
-
letter-spacing:
|
|
35
|
+
font-weight: var(--font-weight-medium);
|
|
36
|
+
letter-spacing: var(--tracking-tighter);
|
|
37
37
|
line-height: 1.35;
|
|
38
38
|
font-variation-settings:
|
|
39
|
-
'opsz'
|
|
40
|
-
'wght' var(--font-weight-
|
|
39
|
+
'opsz' 28,
|
|
40
|
+
'wght' var(--font-weight-medium);
|
|
41
41
|
font-feature-settings: 'dlig', 'zero', 'ss01', 'ss02', 'cv10', 'cv06';
|
|
42
42
|
}
|
|
43
43
|
|
package/tailwind.theme.css
CHANGED
|
@@ -355,6 +355,8 @@
|
|
|
355
355
|
--color-sidebar-border: var(--sidebar-border);
|
|
356
356
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
357
357
|
--color-tab-hover: var(--tab-hover);
|
|
358
|
+
--color-tab-inactive: var(--tab-inactive);
|
|
359
|
+
--color-tab-inactive-hover: var(--tab-inactive-hover);
|
|
358
360
|
--color-tab-active: var(--tab-active);
|
|
359
361
|
--color-button-hover: var(--button-hover);
|
|
360
362
|
--color-button-ghost-hover: var(--button-ghost-hover);
|
|
@@ -395,6 +397,7 @@
|
|
|
395
397
|
--color-field-readonly-surface: var(--field-readonly-surface);
|
|
396
398
|
--color-field-disabled-surface: var(--field-disabled-surface);
|
|
397
399
|
--color-field-border: var(--field-border);
|
|
400
|
+
--shadow-field: var(--field-shadow);
|
|
398
401
|
--color-field-chip-surface: var(--field-chip-surface);
|
|
399
402
|
--color-field-chip-internal-surface: var(--field-chip-internal-surface);
|
|
400
403
|
--color-field-chip-internal-border: var(--field-chip-internal-border);
|
package/theme-variables.css
CHANGED
|
@@ -146,6 +146,8 @@
|
|
|
146
146
|
--sidebar-border: var(--color-gray-100);
|
|
147
147
|
--sidebar-ring: var(--color-gray-600);
|
|
148
148
|
--tab-hover: var(--color-gray-100);
|
|
149
|
+
--tab-inactive: var(--color-gray-200);
|
|
150
|
+
--tab-inactive-hover: var(--color-gray-300);
|
|
149
151
|
--tab-active: color-mix(in oklab, var(--color-gray-700) 10%, transparent);
|
|
150
152
|
--button-hover: var(--color-gray-100);
|
|
151
153
|
/* Translucent so a ghost Button hover darkens whatever it sits on - an opaque
|
|
@@ -164,12 +166,13 @@
|
|
|
164
166
|
--control-disabled-surface: var(--color-gray-100);
|
|
165
167
|
--control-border: color-mix(in oklab, var(--color-gray-200), var(--color-gray-300));
|
|
166
168
|
--text-section-heading: 1.6rem;
|
|
167
|
-
--text-section-heading-lg:
|
|
168
|
-
/* Text-entry fields
|
|
169
|
+
--text-section-heading-lg: 2.1rem;
|
|
170
|
+
/* Text-entry fields have a defined outline and a small resting shadow. */
|
|
169
171
|
--field-surface: var(--control-surface);
|
|
170
172
|
--field-readonly-surface: var(--control-readonly-surface);
|
|
171
173
|
--field-disabled-surface: var(--control-disabled-surface);
|
|
172
|
-
--field-border: var(--color-gray-
|
|
174
|
+
--field-border: var(--color-gray-400);
|
|
175
|
+
--field-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
|
|
173
176
|
--field-chip-surface: var(--secondary);
|
|
174
177
|
--field-chip-internal-surface: transparent;
|
|
175
178
|
--field-chip-internal-border: var(--field-chip-surface);
|
|
@@ -327,6 +330,7 @@
|
|
|
327
330
|
--field-readonly-surface: var(--control-readonly-surface);
|
|
328
331
|
--field-disabled-surface: var(--control-disabled-surface);
|
|
329
332
|
--field-border: var(--control-border);
|
|
333
|
+
--field-shadow: 0 0 #0000;
|
|
330
334
|
--field-chip-surface: var(--secondary);
|
|
331
335
|
--field-chip-internal-surface: color-mix(in oklab, var(--secondary) 30%, transparent);
|
|
332
336
|
--field-chip-internal-border: var(--border);
|
|
@@ -376,6 +380,8 @@
|
|
|
376
380
|
--banner-destructive-secondary: var(--color-red-300);
|
|
377
381
|
|
|
378
382
|
--tab-hover: color-mix(in oklab, var(--color-gray-900) 30%, transparent);
|
|
383
|
+
--tab-inactive: var(--color-gray-900);
|
|
384
|
+
--tab-inactive-hover: color-mix(in oklab, var(--color-gray-800) 30%, var(--color-gray-900));
|
|
379
385
|
--tab-active: color-mix(in oklab, oklch(36.77% 0.0022 255) 60%, transparent);
|
|
380
386
|
--button-hover: color-mix(in oklab, var(--color-gray-900) 30%, transparent);
|
|
381
387
|
--button-ghost-hover: var(--accent);
|
|
@@ -386,7 +392,8 @@
|
|
|
386
392
|
--control-readonly-surface: var(--color-gray-950);
|
|
387
393
|
--control-disabled-surface: var(--color-gray-950);
|
|
388
394
|
--control-border: color-mix(in oklab, var(--color-gray-900) 70%, transparent);
|
|
389
|
-
--field-border: var(--
|
|
395
|
+
--field-border: var(--color-gray-900);
|
|
396
|
+
--field-shadow: 0 1px 2px rgb(0 0 0 / 0.16);
|
|
390
397
|
--control-pressed-shadow: lch(0 0 0 / 0.07) 0px 1px 2px 0px inset;
|
|
391
398
|
--control-outline-shadow:
|
|
392
399
|
lch(0 0 0 / 0.1) 0px 0px 0px 0.5px, lch(0 0 0 / 0.02) 0px 3px 6px -2px,
|
|
@@ -480,6 +487,8 @@
|
|
|
480
487
|
/* admin7Design off in dark mode: today's dark values, exactly. Temporary:
|
|
481
488
|
delete with the flag. */
|
|
482
489
|
.dark [data-admin7-design='false'] {
|
|
490
|
+
--field-border: var(--control-border);
|
|
491
|
+
--field-shadow: 0 0 #0000;
|
|
483
492
|
--state-warning-surface: color-mix(in oklab, var(--state-warning) 10%, transparent);
|
|
484
493
|
--state-warning-border: color-mix(in oklab, var(--state-warning) 40%, transparent);
|
|
485
494
|
--color-black: oklch(20.38% 0.0067 258.4);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-upload.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/image-upload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"image-upload.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/image-upload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAMxE,QAAA,MAAM,WAAW,6GAYhB,CAAC;AAGF,QAAA,MAAM,mBAAmB,sFAaxB,CAAC;AAGF,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,OAAO,0BAA0B,CAAC;CAAG;AAElG,QAAA,MAAM,kBAAkB,gGAUvB,CAAC;AAGF,QAAA,MAAM,gBAAgB,oHAWpB,CAAC;AAGH,QAAA,MAAM,kBAAkB,6GAYvB,CAAC;AAGF,QAAA,MAAM,iBAAiB,uFAatB,CAAC;AAGF,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
|
|
@@ -3,6 +3,11 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import { buttonVariants } from '../../components/ui/button-variants';
|
|
4
4
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
5
5
|
asChild?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Disables the button and shows a spinner over its label. The label stays in
|
|
8
|
+
* the layout, so the button keeps its width. Ignored with `asChild`.
|
|
9
|
+
*/
|
|
10
|
+
loading?: boolean;
|
|
6
11
|
}
|
|
7
12
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
13
|
export { Button };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAKjE,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IAC1F,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,uFA2DX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ControlShape } from '../../providers/shade-context';
|
|
2
2
|
declare const dropzoneBaseVariants: (props?: ({
|
|
3
3
|
variant?: "button" | "buttonSecondary" | "default" | "filled" | null | undefined;
|
|
4
|
+
admin7Design?: boolean | null | undefined;
|
|
4
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
-
declare function dropzoneVariants(props?: Parameters<typeof dropzoneBaseVariants>[0]
|
|
6
|
+
declare function dropzoneVariants(props?: Omit<NonNullable<Parameters<typeof dropzoneBaseVariants>[0]>, 'admin7Design'>, shape?: ControlShape, admin7Design?: boolean): string;
|
|
6
7
|
export { dropzoneVariants };
|
|
7
8
|
//# sourceMappingURL=dropzone-variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropzone-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dropzone-variants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,QAAA,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"dropzone-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dropzone-variants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,QAAA,MAAM,oBAAoB;;;8EAiCzB,CAAC;AAGF,iBAAS,gBAAgB,CACvB,KAAK,GAAE,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,cAAc,CAAM,EACzF,KAAK,GAAE,YAAqB,EAC5B,YAAY,UAAO,UAUpB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared visual recipe for input-like surfaces (Input, Textarea, InputGroup, Select trigger).
|
|
3
3
|
*
|
|
4
|
-
* The recipe owns: border, background, radius, transition, focus ring, invalid state.
|
|
4
|
+
* The recipe owns: border, background, radius, shadow, transition, focus ring, invalid state.
|
|
5
5
|
* Consumers add their own size, padding, typography, and component-specific tweaks.
|
|
6
6
|
*
|
|
7
7
|
* `inputSurface()` covers the two common shapes:
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
* )} />
|
|
32
32
|
*/
|
|
33
33
|
export declare const inputSurfaceClasses: {
|
|
34
|
-
readonly base: 'rounded-field border border-field-border bg-field-surface transition-colors';
|
|
34
|
+
readonly base: 'rounded-field border border-field-border bg-field-surface shadow-field 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';
|
|
@@ -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,0FAA0F;aAChG,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":"pagemenu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/pagemenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"pagemenu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/pagemenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAepD,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2GAA2G;IAC3G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,QAAQ,sFAwNb,CAAC;AAIF,QAAA,MAAM,YAAY,6FA+BjB,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
declare const tabSurfaceVariants: (props?: ({
|
|
2
|
+
admin7Design?: boolean | null | undefined;
|
|
3
|
+
size?: "compact" | "default" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
1
5
|
declare const tabsVariants: (props?: ({
|
|
2
6
|
variant?: "button" | "button-sm" | "kpis" | "navbar" | "pill" | "segmented" | "segmented-sm" | "underline" | null | undefined;
|
|
3
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
|
-
export { tabsVariants };
|
|
8
|
+
export { tabsVariants, tabSurfaceVariants };
|
|
5
9
|
//# sourceMappingURL=tabs-variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs-variants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tabs-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs-variants.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,kBAAkB;;;8EAgBtB,CAAC;AAEH,QAAA,MAAM,YAAY;;8EAgBhB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|