@dalexto/lexsys-registry 0.0.2 → 0.0.4
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/README.md +1 -0
- package/dist/index.js +53 -52
- package/dist/items/empty.d.ts +7 -0
- package/dist/items/index.d.ts +2 -0
- package/dist/items/table.d.ts +7 -0
- package/dist/registry.types.d.ts +0 -1
- package/package.json +1 -1
- package/templates/blocks/AuthForm/AuthForm.tsx +3 -3
- package/templates/blocks/AuthForm/AuthForm.variants.ts +3 -3
- package/templates/blocks/CommandPalette/CommandPalette.tsx +14 -14
- package/templates/blocks/CommandPalette/CommandPalette.types.ts +3 -9
- package/templates/blocks/CommandPalette/CommandPalette.variants.ts +13 -14
- package/templates/blocks/Empty/Empty.tsx +91 -0
- package/templates/blocks/Empty/Empty.types.ts +8 -0
- package/templates/blocks/Empty/Empty.variants.ts +51 -0
- package/templates/blocks/FormField/FormField.tsx +2 -6
- package/templates/blocks/FormField/FormField.variants.ts +2 -2
- package/templates/blocks/SettingsPanel/SettingsPanel.tsx +2 -2
- package/templates/blocks/SettingsPanel/SettingsPanel.variants.ts +2 -2
- package/templates/blocks/Sidebar/Sidebar.tsx +45 -85
- package/templates/blocks/Sidebar/Sidebar.types.ts +2 -7
- package/templates/blocks/Sidebar/Sidebar.variants.ts +36 -40
- package/templates/primitives/Accordion/Accordion.variants.ts +7 -7
- package/templates/primitives/Alert/Alert.variants.ts +7 -7
- package/templates/primitives/AlertDialog/AlertDialog.variants.ts +16 -16
- package/templates/primitives/Autocomplete/Autocomplete.variants.ts +49 -49
- package/templates/primitives/Avatar/Avatar.variants.ts +10 -10
- package/templates/primitives/Badge/Badge.variants.ts +14 -14
- package/templates/primitives/Button/Button.variants.ts +26 -26
- package/templates/primitives/Card/Card.tsx +19 -1
- package/templates/primitives/Card/Card.types.ts +1 -0
- package/templates/primitives/Card/Card.variants.ts +14 -11
- package/templates/primitives/Checkbox/Checkbox.variants.ts +11 -15
- package/templates/primitives/CheckboxGroup/CheckboxGroup.variants.ts +2 -2
- package/templates/primitives/Collapsible/Collapsible.variants.ts +10 -10
- package/templates/primitives/Combobox/Combobox.variants.ts +58 -58
- package/templates/primitives/ContextMenu/ContextMenu.variants.ts +1 -1
- package/templates/primitives/Dialog/Dialog.variants.ts +16 -16
- package/templates/primitives/Drawer/Drawer.types.ts +3 -1
- package/templates/primitives/Drawer/Drawer.variants.ts +37 -37
- package/templates/primitives/Field/Field.variants.ts +22 -22
- package/templates/primitives/Fieldset/Fieldset.variants.ts +8 -8
- package/templates/primitives/Form/Form.variants.ts +1 -1
- package/templates/primitives/Input/Input.variants.ts +11 -11
- package/templates/primitives/Menu/Menu.variants.ts +25 -25
- package/templates/primitives/Menubar/Menubar.variants.ts +1 -1
- package/templates/primitives/Meter/Meter.variants.ts +11 -11
- package/templates/primitives/NavigationMenu/NavigationMenu.variants.ts +2 -2
- package/templates/primitives/NumberField/NumberField.variants.ts +25 -25
- package/templates/primitives/OtpField/OtpField.variants.ts +12 -12
- package/templates/primitives/Popover/Popover.variants.ts +18 -20
- package/templates/primitives/PreviewCard/PreviewCard.variants.ts +1 -1
- package/templates/primitives/Progress/Progress.variants.ts +8 -8
- package/templates/primitives/RadioGroup/RadioGroup.variants.ts +14 -14
- package/templates/primitives/ScrollArea/ScrollArea.variants.ts +3 -3
- package/templates/primitives/Select/Select.tsx +29 -29
- package/templates/primitives/Select/Select.types.ts +4 -4
- package/templates/primitives/Select/Select.variants.ts +44 -59
- package/templates/primitives/Separator/Separator.variants.ts +3 -3
- package/templates/primitives/Slider/Slider.tsx +14 -14
- package/templates/primitives/Slider/Slider.variants.ts +17 -26
- package/templates/primitives/Switch/Switch.types.ts +2 -2
- package/templates/primitives/Switch/Switch.variants.ts +13 -13
- package/templates/primitives/Table/Table.tsx +121 -0
- package/templates/primitives/Table/Table.types.ts +68 -0
- package/templates/primitives/Table/Table.variants.ts +51 -0
- package/templates/primitives/Tabs/Tabs.variants.ts +8 -8
- package/templates/primitives/Textarea/Textarea.variants.ts +11 -11
- package/templates/primitives/Toast/Toast.variants.ts +20 -20
- package/templates/primitives/Toggle/Toggle.variants.ts +9 -9
- package/templates/primitives/ToggleGroup/ToggleGroup.variants.ts +5 -5
- package/templates/primitives/Toolbar/Toolbar.variants.ts +18 -18
- package/templates/primitives/Tooltip/Tooltip.variants.ts +5 -5
- package/templates/styles/theme.css +301 -299
- package/templates/styles/tokens.css +1495 -1441
- package/templates/templates/DashboardShell/DashboardShell.tsx +10 -10
- package/templates/templates/DashboardShell/DashboardShell.variants.ts +10 -10
|
@@ -8,19 +8,19 @@ import { cva } from "class-variance-authority"
|
|
|
8
8
|
|
|
9
9
|
export const cardVariants = cva(
|
|
10
10
|
[
|
|
11
|
-
"rounded-(--
|
|
12
|
-
"bg-(--
|
|
13
|
-
"duration-(--
|
|
11
|
+
"rounded-(--lex-card-radius) border border-(--lex-card-border-color)",
|
|
12
|
+
"bg-(--lex-card-background) text-(--lex-card-foreground) transition-colors",
|
|
13
|
+
"duration-(--lex-card-transition-duration) ease-(--lex-card-transition-easing)",
|
|
14
14
|
].join(" "),
|
|
15
15
|
{
|
|
16
16
|
variants: {
|
|
17
17
|
variant: {
|
|
18
18
|
surface: "",
|
|
19
|
-
muted: "bg-(--
|
|
19
|
+
muted: "bg-(--lex-card-muted-background)",
|
|
20
20
|
default: "",
|
|
21
|
-
outlined: "border-(--
|
|
21
|
+
outlined: "border-(--lex-border-strong)",
|
|
22
22
|
elevated:
|
|
23
|
-
"border-transparent shadow-(--
|
|
23
|
+
"border-transparent shadow-(--lex-elevation-shadow-raised-box-shadow)",
|
|
24
24
|
ghost: "border-transparent bg-transparent shadow-none",
|
|
25
25
|
},
|
|
26
26
|
},
|
|
@@ -31,16 +31,19 @@ export const cardVariants = cva(
|
|
|
31
31
|
)
|
|
32
32
|
|
|
33
33
|
export const cardHeaderClassName =
|
|
34
|
-
"grid gap-(--
|
|
34
|
+
"grid grid-cols-[1fr_auto] items-start gap-x-(--lex-card-gap-md) gap-y-(--lex-card-gap-sm) p-(--lex-card-padding) pb-(--lex-card-header-padding-bottom)"
|
|
35
35
|
|
|
36
36
|
export const cardTitleClassName =
|
|
37
|
-
"text-(length:--
|
|
37
|
+
"col-start-1 text-(length:--lex-card-title-font-size) font-(--lex-card-title-font-weight) leading-(--lex-card-title-font-line-height) tracking-(--lex-card-title-font-letter-spacing) text-(--lex-card-title-foreground)"
|
|
38
38
|
|
|
39
39
|
export const cardDescriptionClassName =
|
|
40
|
-
"text-(length:--
|
|
40
|
+
"col-start-1 text-(length:--lex-card-description-font-size) leading-(--lex-card-description-font-line-height) text-(--lex-card-description-foreground)"
|
|
41
41
|
|
|
42
42
|
export const cardContentClassName =
|
|
43
|
-
"p-(--
|
|
43
|
+
"p-(--lex-card-padding) pt-(--lex-card-content-padding-top) text-(length:--lex-card-content-font-size) leading-(--lex-card-content-font-line-height)"
|
|
44
44
|
|
|
45
45
|
export const cardFooterClassName =
|
|
46
|
-
"flex items-center gap-(--
|
|
46
|
+
"flex items-center gap-(--lex-card-gap-md) p-(--lex-card-padding) pt-(--lex-card-footer-padding-top)"
|
|
47
|
+
|
|
48
|
+
export const cardActionClassName =
|
|
49
|
+
"col-start-2 row-start-1 row-span-2 flex items-center gap-(--lex-card-gap-sm)"
|
|
@@ -8,20 +8,20 @@ import { cva } from "class-variance-authority"
|
|
|
8
8
|
|
|
9
9
|
export const checkboxVariants = cva(
|
|
10
10
|
[
|
|
11
|
-
"inline-flex shrink-0 items-center justify-center rounded-(--
|
|
12
|
-
"border-(--
|
|
13
|
-
"transition-colors duration-(--
|
|
14
|
-
"outline-none data-[checked]:border-(--
|
|
15
|
-
"data-[indeterminate]:border-(--
|
|
16
|
-
"data-[focused]:ring-(length:--
|
|
17
|
-
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-(--
|
|
11
|
+
"inline-flex shrink-0 items-center justify-center rounded-(--lex-checkbox-radius) border",
|
|
12
|
+
"border-(--lex-checkbox-border-color) bg-(--lex-checkbox-background) text-(--lex-checkbox-foreground)",
|
|
13
|
+
"transition-colors duration-(--lex-checkbox-transition-duration) ease-(--lex-checkbox-transition-easing)",
|
|
14
|
+
"outline-none data-[checked]:border-(--lex-checkbox-checked-border-color) data-[checked]:bg-(--lex-checkbox-checked-background) data-[checked]:text-(--lex-checkbox-checked-foreground)",
|
|
15
|
+
"data-[indeterminate]:border-(--lex-checkbox-checked-border-color) data-[indeterminate]:bg-(--lex-checkbox-checked-background)",
|
|
16
|
+
"data-[focused]:ring-(length:--lex-checkbox-focus-ring-width) data-[focused]:ring-(--lex-checkbox-focus-ring-color) data-[focused]:ring-offset-(length:--lex-checkbox-focus-ring-offset) data-[focused]:ring-offset-(--lex-checkbox-focus-ring-offset-color)",
|
|
17
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-(--lex-opacity-disabled)",
|
|
18
18
|
].join(" "),
|
|
19
19
|
{
|
|
20
20
|
variants: {
|
|
21
21
|
size: {
|
|
22
|
-
sm: "size-(--
|
|
23
|
-
md: "size-(--
|
|
24
|
-
lg: "size-(--
|
|
22
|
+
sm: "size-(--lex-checkbox-size-sm) text-(length:--lex-checkbox-indicator-font-size-sm)",
|
|
23
|
+
md: "size-(--lex-checkbox-size-md) text-(length:--lex-checkbox-indicator-font-size-md)",
|
|
24
|
+
lg: "size-(--lex-checkbox-size-lg) text-(length:--lex-checkbox-indicator-font-size-lg)",
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
27
|
defaultVariants: {
|
|
@@ -30,10 +30,6 @@ export const checkboxVariants = cva(
|
|
|
30
30
|
},
|
|
31
31
|
)
|
|
32
32
|
|
|
33
|
-
export const checkboxLabelVariants = cva(
|
|
34
|
-
"inline-flex items-center gap-(--lsys-checkbox-label-gap) text-(length:--lsys-checkbox-label-font-size) font-(--lsys-checkbox-label-font-weight) leading-(--lsys-checkbox-label-font-line-height) text-(--lsys-checkbox-label-foreground)",
|
|
35
|
-
)
|
|
36
|
-
|
|
37
33
|
export const checkboxIndicatorVariants = cva(
|
|
38
|
-
"leading-(--
|
|
34
|
+
"leading-(--lex-checkbox-label-font-line-height)",
|
|
39
35
|
)
|
|
@@ -8,8 +8,8 @@ import { cva } from "class-variance-authority"
|
|
|
8
8
|
|
|
9
9
|
export const checkboxGroupVariants = cva(
|
|
10
10
|
[
|
|
11
|
-
"grid gap-(--
|
|
12
|
-
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-(--
|
|
11
|
+
"grid gap-(--lex-checkbox-label-gap) text-(length:--lex-checkbox-label-font-size) font-(--lex-checkbox-label-font-weight) leading-(--lex-checkbox-label-font-line-height) text-(--lex-checkbox-label-foreground)",
|
|
12
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-(--lex-opacity-disabled)",
|
|
13
13
|
].join(" "),
|
|
14
14
|
{
|
|
15
15
|
variants: {
|
|
@@ -8,12 +8,12 @@ import { cva } from "class-variance-authority"
|
|
|
8
8
|
import { disabledStateClasses } from "@/lib/utils"
|
|
9
9
|
|
|
10
10
|
export const collapsibleVariants = cva(
|
|
11
|
-
"grid rounded-(--
|
|
11
|
+
"grid rounded-(--lex-collapsible-radius) text-(--lex-collapsible-foreground)",
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
15
15
|
surface:
|
|
16
|
-
"border border-(--
|
|
16
|
+
"border border-(--lex-collapsible-border-color) bg-(--lex-collapsible-background)",
|
|
17
17
|
plain: "bg-transparent",
|
|
18
18
|
},
|
|
19
19
|
},
|
|
@@ -25,20 +25,20 @@ export const collapsibleVariants = cva(
|
|
|
25
25
|
|
|
26
26
|
export const collapsibleTriggerVariants = cva(
|
|
27
27
|
[
|
|
28
|
-
"flex w-full items-center justify-between gap-(--
|
|
29
|
-
"text-(length:--
|
|
30
|
-
"transition-colors duration-(--
|
|
31
|
-
"outline-none hover:bg-(--
|
|
28
|
+
"flex w-full items-center justify-between gap-(--lex-collapsible-trigger-gap) px-(--lex-collapsible-trigger-padding-x) py-(--lex-collapsible-trigger-padding-y) text-left",
|
|
29
|
+
"text-(length:--lex-collapsible-trigger-font-size) font-(--lex-collapsible-trigger-font-weight) leading-(--lex-collapsible-trigger-font-line-height)",
|
|
30
|
+
"transition-colors duration-(--lex-collapsible-transition-duration) ease-(--lex-collapsible-transition-easing)",
|
|
31
|
+
"outline-none hover:bg-(--lex-collapsible-trigger-background-hover) focus-visible:ring-(length:--lex-collapsible-focus-ring-width) focus-visible:ring-inset focus-visible:ring-(--lex-collapsible-focus-ring-color)",
|
|
32
32
|
disabledStateClasses,
|
|
33
|
-
"[&>svg]:size-(--
|
|
33
|
+
"[&>svg]:size-(--lex-collapsible-trigger-icon-size) [&>svg]:transition-transform data-[panel-open]:[&>svg]:rotate-45",
|
|
34
34
|
].join(" "),
|
|
35
35
|
)
|
|
36
36
|
|
|
37
37
|
export const collapsiblePanelVariants = cva(
|
|
38
38
|
[
|
|
39
|
-
"overflow-hidden px-(--
|
|
40
|
-
"text-(length:--
|
|
41
|
-
"transition-[height,opacity] duration-(--
|
|
39
|
+
"overflow-hidden px-(--lex-collapsible-panel-padding-x) pb-(--lex-collapsible-panel-padding-bottom)",
|
|
40
|
+
"text-(length:--lex-collapsible-panel-font-size) leading-(--lex-collapsible-panel-font-line-height) text-(--lex-collapsible-panel-foreground)",
|
|
41
|
+
"transition-[height,opacity] duration-(--lex-collapsible-transition-duration) ease-(--lex-collapsible-transition-easing)",
|
|
42
42
|
"data-[starting-style]:h-0 data-[starting-style]:opacity-0 data-[ending-style]:h-0 data-[ending-style]:opacity-0",
|
|
43
43
|
].join(" "),
|
|
44
44
|
)
|
|
@@ -8,25 +8,25 @@ import { cva } from "class-variance-authority"
|
|
|
8
8
|
import { disabledStateClasses } from "@/lib/utils"
|
|
9
9
|
|
|
10
10
|
export const comboboxLabelVariants = cva(
|
|
11
|
-
"text-(length:--
|
|
11
|
+
"text-(length:--lex-select-label-font-size) font-(--lex-select-label-font-weight) leading-(--lex-select-label-font-line-height) text-(--lex-select-label-foreground)",
|
|
12
12
|
)
|
|
13
13
|
|
|
14
14
|
export const comboboxTriggerVariants = cva(
|
|
15
15
|
[
|
|
16
|
-
"inline-flex w-full min-w-0 items-center justify-between gap-(--
|
|
17
|
-
"border-(--
|
|
18
|
-
"font-(family-name:--
|
|
19
|
-
"transition-colors duration-(--
|
|
20
|
-
"outline-none data-[focused]:border-(--
|
|
21
|
-
"data-[invalid]:border-(--
|
|
22
|
-
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-(--
|
|
16
|
+
"inline-flex w-full min-w-0 items-center justify-between gap-(--lex-select-trigger-gap) rounded-(--lex-select-radius) border",
|
|
17
|
+
"border-(--lex-select-border-color) bg-(--lex-select-background) text-(--lex-select-foreground)",
|
|
18
|
+
"font-(family-name:--lex-select-font-family) font-(--lex-select-font-weight) leading-(--lex-select-font-line-height) tracking-(--lex-select-font-letter-spacing)",
|
|
19
|
+
"transition-colors duration-(--lex-select-transition-duration) ease-(--lex-select-transition-easing)",
|
|
20
|
+
"outline-none data-[focused]:border-(--lex-select-focus-border-color) data-[focused]:ring-(length:--lex-select-focus-ring-width) data-[focused]:ring-(--lex-select-focus-ring-color) data-[focused]:ring-offset-(length:--lex-select-focus-ring-offset) data-[focused]:ring-offset-(--lex-select-focus-ring-offset-color)",
|
|
21
|
+
"data-[invalid]:border-(--lex-select-invalid-border-color) data-[invalid]:ring-(length:--lex-select-invalid-ring-width) data-[invalid]:ring-(--lex-select-invalid-ring-color)",
|
|
22
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-(--lex-opacity-disabled)",
|
|
23
23
|
].join(" "),
|
|
24
24
|
{
|
|
25
25
|
variants: {
|
|
26
26
|
size: {
|
|
27
|
-
sm: "h-(--
|
|
28
|
-
md: "h-(--
|
|
29
|
-
lg: "h-(--
|
|
27
|
+
sm: "h-(--lex-select-height-sm) px-(--lex-select-padding-x-sm) text-(length:--lex-select-font-size-sm)",
|
|
28
|
+
md: "h-(--lex-select-height-md) px-(--lex-select-padding-x-md) text-(length:--lex-select-font-size-md)",
|
|
29
|
+
lg: "h-(--lex-select-height-lg) px-(--lex-select-padding-x-lg) text-(length:--lex-select-font-size-lg)",
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
32
|
defaultVariants: {
|
|
@@ -37,20 +37,20 @@ export const comboboxTriggerVariants = cva(
|
|
|
37
37
|
|
|
38
38
|
export const comboboxInputGroupVariants = cva(
|
|
39
39
|
[
|
|
40
|
-
"inline-flex w-full min-w-0 flex-wrap items-center gap-(--
|
|
41
|
-
"border-(--
|
|
42
|
-
"font-(family-name:--
|
|
43
|
-
"transition-colors duration-(--
|
|
44
|
-
"outline-none data-[focused]:border-(--
|
|
45
|
-
"data-[invalid]:border-(--
|
|
46
|
-
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-(--
|
|
40
|
+
"inline-flex w-full min-w-0 flex-wrap items-center gap-(--lex-select-trigger-gap) rounded-(--lex-select-radius) border",
|
|
41
|
+
"border-(--lex-select-border-color) bg-(--lex-select-background) text-(--lex-select-foreground)",
|
|
42
|
+
"font-(family-name:--lex-select-font-family) font-(--lex-select-font-weight) leading-(--lex-select-font-line-height) tracking-(--lex-select-font-letter-spacing)",
|
|
43
|
+
"transition-colors duration-(--lex-select-transition-duration) ease-(--lex-select-transition-easing)",
|
|
44
|
+
"outline-none data-[focused]:border-(--lex-select-focus-border-color) data-[focused]:ring-(length:--lex-select-focus-ring-width) data-[focused]:ring-(--lex-select-focus-ring-color) data-[focused]:ring-offset-(length:--lex-select-focus-ring-offset) data-[focused]:ring-offset-(--lex-select-focus-ring-offset-color)",
|
|
45
|
+
"data-[invalid]:border-(--lex-select-invalid-border-color) data-[invalid]:ring-(length:--lex-select-invalid-ring-width) data-[invalid]:ring-(--lex-select-invalid-ring-color)",
|
|
46
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-(--lex-opacity-disabled)",
|
|
47
47
|
].join(" "),
|
|
48
48
|
{
|
|
49
49
|
variants: {
|
|
50
50
|
size: {
|
|
51
|
-
sm: "min-h-(--
|
|
52
|
-
md: "min-h-(--
|
|
53
|
-
lg: "min-h-(--
|
|
51
|
+
sm: "min-h-(--lex-select-height-sm) px-(--lex-select-padding-x-sm) text-(length:--lex-select-font-size-sm)",
|
|
52
|
+
md: "min-h-(--lex-select-height-md) px-(--lex-select-padding-x-md) text-(length:--lex-select-font-size-md)",
|
|
53
|
+
lg: "min-h-(--lex-select-height-lg) px-(--lex-select-padding-x-lg) text-(length:--lex-select-font-size-lg)",
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
defaultVariants: {
|
|
@@ -61,18 +61,18 @@ export const comboboxInputGroupVariants = cva(
|
|
|
61
61
|
|
|
62
62
|
export const comboboxInputVariants = cva(
|
|
63
63
|
[
|
|
64
|
-
"min-w-[4rem] flex-1 border-0 bg-transparent text-(--
|
|
65
|
-
"font-(family-name:--
|
|
66
|
-
"placeholder:text-(--
|
|
64
|
+
"min-w-[4rem] flex-1 border-0 bg-transparent text-(--lex-select-foreground) outline-none",
|
|
65
|
+
"font-(family-name:--lex-select-font-family) font-(--lex-select-font-weight) leading-(--lex-select-font-line-height) tracking-(--lex-select-font-letter-spacing)",
|
|
66
|
+
"placeholder:text-(--lex-select-placeholder-color)",
|
|
67
67
|
"disabled:cursor-not-allowed",
|
|
68
68
|
disabledStateClasses,
|
|
69
69
|
].join(" "),
|
|
70
70
|
{
|
|
71
71
|
variants: {
|
|
72
72
|
size: {
|
|
73
|
-
sm: "py-(--
|
|
74
|
-
md: "py-(--
|
|
75
|
-
lg: "py-(--
|
|
73
|
+
sm: "py-(--lex-select-padding-x-sm) text-(length:--lex-select-font-size-sm)",
|
|
74
|
+
md: "py-(--lex-select-padding-x-md) text-(length:--lex-select-font-size-md)",
|
|
75
|
+
lg: "py-(--lex-select-padding-x-lg) text-(length:--lex-select-font-size-lg)",
|
|
76
76
|
},
|
|
77
77
|
},
|
|
78
78
|
defaultVariants: {
|
|
@@ -82,92 +82,92 @@ export const comboboxInputVariants = cva(
|
|
|
82
82
|
)
|
|
83
83
|
|
|
84
84
|
export const comboboxValueVariants = cva(
|
|
85
|
-
"min-w-0 flex-1 truncate text-left data-[placeholder]:text-(--
|
|
85
|
+
"min-w-0 flex-1 truncate text-left data-[placeholder]:text-(--lex-select-placeholder-color)",
|
|
86
86
|
)
|
|
87
87
|
|
|
88
88
|
export const comboboxIconVariants = cva(
|
|
89
|
-
"inline-flex size-(--
|
|
89
|
+
"inline-flex size-(--lex-select-icon-size) shrink-0 items-center justify-center text-(--lex-select-icon-foreground) transition-transform duration-(--lex-select-transition-duration) ease-(--lex-select-transition-easing) data-[open]:rotate-180",
|
|
90
90
|
)
|
|
91
91
|
|
|
92
92
|
export const comboboxClearVariants = cva(
|
|
93
93
|
[
|
|
94
|
-
"inline-flex size-(--
|
|
95
|
-
"transition-colors duration-(--
|
|
96
|
-
"hover:bg-(--
|
|
97
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-(--
|
|
94
|
+
"inline-flex size-(--lex-select-icon-size) shrink-0 items-center justify-center rounded-(--lex-select-item-radius) text-(--lex-select-icon-foreground)",
|
|
95
|
+
"transition-colors duration-(--lex-select-transition-duration) ease-(--lex-select-transition-easing)",
|
|
96
|
+
"hover:bg-(--lex-select-item-highlight-background) hover:text-(--lex-select-item-highlight-foreground)",
|
|
97
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-(--lex-opacity-disabled)",
|
|
98
98
|
].join(" "),
|
|
99
99
|
)
|
|
100
100
|
|
|
101
101
|
export const comboboxBackdropVariants = cva(
|
|
102
|
-
"fixed inset-0 z-(--
|
|
102
|
+
"fixed inset-0 z-(--lex-select-backdrop-z-index) bg-(--lex-select-backdrop-background) opacity-(--lex-select-backdrop-opacity) data-[starting-style]:opacity-0 data-[ending-style]:opacity-0",
|
|
103
103
|
)
|
|
104
104
|
|
|
105
105
|
export const comboboxPositionerVariants = cva(
|
|
106
|
-
"z-(--
|
|
106
|
+
"z-(--lex-select-positioner-z-index)",
|
|
107
107
|
)
|
|
108
108
|
|
|
109
109
|
export const comboboxPopupVariants = cva(
|
|
110
110
|
[
|
|
111
|
-
"min-w-[var(--anchor-width)] overflow-hidden rounded-(--
|
|
112
|
-
"border-(--
|
|
111
|
+
"min-w-[var(--anchor-width)] overflow-hidden rounded-(--lex-select-radius) border",
|
|
112
|
+
"border-(--lex-select-popup-border-color) bg-(--lex-select-popup-background) text-(--lex-select-popup-foreground) shadow-(--lex-select-popup-shadow)",
|
|
113
113
|
"data-[starting-style]:scale-95 data-[starting-style]:opacity-0 data-[ending-style]:scale-95 data-[ending-style]:opacity-0",
|
|
114
|
-
"origin-[var(--transform-origin)] transition-[opacity,transform] duration-(--
|
|
114
|
+
"origin-[var(--transform-origin)] transition-[opacity,transform] duration-(--lex-select-transition-duration) ease-(--lex-select-transition-easing)",
|
|
115
115
|
].join(" "),
|
|
116
116
|
)
|
|
117
117
|
|
|
118
118
|
export const comboboxListVariants = cva(
|
|
119
|
-
"grid max-h-(--
|
|
119
|
+
"grid max-h-(--lex-select-popup-max-height) gap-(--lex-select-list-gap) overflow-y-auto p-(--lex-select-list-padding)",
|
|
120
120
|
)
|
|
121
121
|
|
|
122
122
|
export const comboboxItemVariants = cva(
|
|
123
123
|
[
|
|
124
|
-
"relative flex min-w-0 cursor-default select-none items-center gap-(--
|
|
125
|
-
"text-(length:--
|
|
126
|
-
"data-[highlighted]:bg-(--
|
|
127
|
-
"data-[selected]:bg-(--
|
|
128
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-(--
|
|
124
|
+
"relative flex min-w-0 cursor-default select-none items-center gap-(--lex-select-item-gap) rounded-(--lex-select-item-radius) px-(--lex-select-item-padding-x) py-(--lex-select-item-padding-y)",
|
|
125
|
+
"text-(length:--lex-select-item-font-size) font-(--lex-select-item-font-weight) leading-(--lex-select-item-font-line-height) text-(--lex-select-item-foreground) outline-none",
|
|
126
|
+
"data-[highlighted]:bg-(--lex-select-item-highlight-background) data-[highlighted]:text-(--lex-select-item-highlight-foreground)",
|
|
127
|
+
"data-[selected]:bg-(--lex-select-item-selected-background) data-[selected]:text-(--lex-select-item-selected-foreground)",
|
|
128
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-(--lex-opacity-disabled)",
|
|
129
129
|
].join(" "),
|
|
130
130
|
)
|
|
131
131
|
|
|
132
132
|
export const comboboxItemIndicatorVariants = cva(
|
|
133
|
-
"inline-flex size-(--
|
|
133
|
+
"inline-flex size-(--lex-select-item-indicator-size) shrink-0 items-center justify-center text-current",
|
|
134
134
|
)
|
|
135
135
|
|
|
136
136
|
export const comboboxArrowVariants = cva(
|
|
137
|
-
"size-(--
|
|
137
|
+
"size-(--lex-select-arrow-size) rotate-45 border border-(--lex-select-popup-border-color) bg-(--lex-select-popup-background)",
|
|
138
138
|
)
|
|
139
139
|
|
|
140
|
-
export const comboboxGroupVariants = cva("grid gap-(--
|
|
140
|
+
export const comboboxGroupVariants = cva("grid gap-(--lex-select-group-gap)")
|
|
141
141
|
|
|
142
142
|
export const comboboxGroupLabelVariants = cva(
|
|
143
|
-
"px-(--
|
|
143
|
+
"px-(--lex-select-item-padding-x) py-(--lex-select-group-label-padding-y) text-(length:--lex-select-group-label-font-size) font-(--lex-select-group-label-font-weight) leading-(--lex-select-group-label-font-line-height) text-(--lex-select-group-label-foreground)",
|
|
144
144
|
)
|
|
145
145
|
|
|
146
146
|
export const comboboxEmptyVariants = cva(
|
|
147
|
-
"px-(--
|
|
147
|
+
"px-(--lex-select-item-padding-x) py-(--lex-select-item-padding-y) text-(length:--lex-select-item-font-size) text-(--lex-select-placeholder-color)",
|
|
148
148
|
)
|
|
149
149
|
|
|
150
150
|
export const comboboxStatusVariants = cva(
|
|
151
|
-
"px-(--
|
|
151
|
+
"px-(--lex-select-item-padding-x) py-(--lex-select-item-padding-y) text-(length:--lex-select-item-font-size) text-(--lex-select-placeholder-color)",
|
|
152
152
|
)
|
|
153
153
|
|
|
154
154
|
export const comboboxChipsVariants = cva(
|
|
155
|
-
"flex min-w-0 flex-1 flex-wrap items-center gap-(--
|
|
155
|
+
"flex min-w-0 flex-1 flex-wrap items-center gap-(--lex-select-item-gap)",
|
|
156
156
|
)
|
|
157
157
|
|
|
158
158
|
export const comboboxChipVariants = cva(
|
|
159
159
|
[
|
|
160
|
-
"inline-flex max-w-full items-center gap-(--
|
|
161
|
-
"bg-(--
|
|
162
|
-
"text-(length:--
|
|
163
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-(--
|
|
160
|
+
"inline-flex max-w-full items-center gap-(--lex-select-item-gap) rounded-(--lex-select-item-radius) border border-(--lex-select-border-color)",
|
|
161
|
+
"bg-(--lex-select-item-selected-background) px-(--lex-select-item-padding-x) py-(--lex-select-item-padding-y)",
|
|
162
|
+
"text-(length:--lex-select-item-font-size) font-(--lex-select-item-font-weight) text-(--lex-select-item-selected-foreground)",
|
|
163
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-(--lex-opacity-disabled)",
|
|
164
164
|
].join(" "),
|
|
165
165
|
)
|
|
166
166
|
|
|
167
167
|
export const comboboxChipRemoveVariants = cva(
|
|
168
168
|
[
|
|
169
|
-
"inline-flex size-(--
|
|
170
|
-
"hover:bg-(--
|
|
169
|
+
"inline-flex size-(--lex-select-item-indicator-size) shrink-0 items-center justify-center rounded-(--lex-select-item-radius) text-current",
|
|
170
|
+
"hover:bg-(--lex-select-item-highlight-background) hover:text-(--lex-select-item-highlight-foreground)",
|
|
171
171
|
].join(" "),
|
|
172
172
|
)
|
|
173
173
|
|
|
@@ -176,5 +176,5 @@ export const comboboxRowVariants = cva("flex min-w-0 items-center")
|
|
|
176
176
|
export const comboboxCollectionVariants = cva("contents")
|
|
177
177
|
|
|
178
178
|
export const comboboxSeparatorVariants = cva(
|
|
179
|
-
"mx-(--
|
|
179
|
+
"mx-(--lex-select-item-padding-x) my-(--lex-select-group-label-padding-y) h-(--lex-separator-thickness) bg-(--lex-separator-color)",
|
|
180
180
|
)
|
|
@@ -35,5 +35,5 @@ export const contextMenuSubmenuTriggerIconVariants =
|
|
|
35
35
|
menuSubmenuTriggerIconVariants
|
|
36
36
|
|
|
37
37
|
export const contextMenuTriggerVariants = cva(
|
|
38
|
-
"outline-none focus-visible:ring-(length:--
|
|
38
|
+
"outline-none focus-visible:ring-(length:--lex-menu-focus-ring-width) focus-visible:ring-(--lex-menu-focus-ring-color)",
|
|
39
39
|
)
|
|
@@ -9,48 +9,48 @@ import { disabledStateClasses } from "@/lib/utils"
|
|
|
9
9
|
|
|
10
10
|
export const dialogTriggerVariants = cva(
|
|
11
11
|
[
|
|
12
|
-
"inline-flex h-(--
|
|
13
|
-
"bg-(--
|
|
14
|
-
"text-(length:--
|
|
15
|
-
"transition-colors duration-(--
|
|
16
|
-
"outline-none hover:bg-(--
|
|
12
|
+
"inline-flex h-(--lex-dialog-trigger-height) items-center justify-center rounded-(--lex-dialog-trigger-radius)",
|
|
13
|
+
"bg-(--lex-dialog-trigger-background) px-(--lex-dialog-trigger-padding-x) text-(--lex-dialog-trigger-foreground)",
|
|
14
|
+
"text-(length:--lex-dialog-trigger-font-size) font-(--lex-dialog-trigger-font-weight) leading-(--lex-dialog-trigger-font-line-height)",
|
|
15
|
+
"transition-colors duration-(--lex-dialog-transition-duration) ease-(--lex-dialog-transition-easing)",
|
|
16
|
+
"outline-none hover:bg-(--lex-dialog-trigger-hover-background) focus-visible:ring-(length:--lex-dialog-focus-ring-width) focus-visible:ring-(--lex-dialog-focus-ring-color) focus-visible:ring-offset-(length:--lex-dialog-focus-ring-offset) focus-visible:ring-offset-(--lex-dialog-focus-ring-offset-color)",
|
|
17
17
|
disabledStateClasses,
|
|
18
18
|
].join(" "),
|
|
19
19
|
)
|
|
20
20
|
export const dialogBackdropVariants = cva(
|
|
21
21
|
[
|
|
22
|
-
"fixed inset-0 z-(--
|
|
22
|
+
"fixed inset-0 z-(--lex-dialog-backdrop-z-index) bg-(--lex-dialog-backdrop-background) opacity-(--lex-dialog-backdrop-opacity)",
|
|
23
23
|
"data-[starting-style]:opacity-0 data-[ending-style]:opacity-0",
|
|
24
|
-
"transition-opacity duration-(--
|
|
24
|
+
"transition-opacity duration-(--lex-dialog-transition-duration) ease-(--lex-dialog-transition-easing)",
|
|
25
25
|
].join(" "),
|
|
26
26
|
)
|
|
27
27
|
|
|
28
28
|
export const dialogViewportVariants = cva(
|
|
29
|
-
"fixed inset-0 z-(--
|
|
29
|
+
"fixed inset-0 z-(--lex-dialog-viewport-z-index) grid place-items-center overflow-y-auto p-(--lex-dialog-viewport-padding)",
|
|
30
30
|
)
|
|
31
31
|
|
|
32
32
|
export const dialogPopupVariants = cva(
|
|
33
33
|
[
|
|
34
|
-
"grid w-[min(calc(100vw-(var(--
|
|
35
|
-
"border-(--
|
|
34
|
+
"grid w-[min(calc(100vw-(var(--lex-dialog-viewport-inset)*2)),var(--lex-dialog-popup-max-width))] gap-(--lex-dialog-popup-gap) rounded-(--lex-dialog-popup-radius) border",
|
|
35
|
+
"border-(--lex-dialog-popup-border-color) bg-(--lex-dialog-popup-background) p-(--lex-dialog-popup-padding) text-(--lex-dialog-popup-foreground) shadow-(--lex-dialog-popup-shadow)",
|
|
36
36
|
"outline-none data-[starting-style]:scale-95 data-[starting-style]:opacity-0 data-[ending-style]:scale-95 data-[ending-style]:opacity-0",
|
|
37
|
-
"transition-[opacity,transform] duration-(--
|
|
37
|
+
"transition-[opacity,transform] duration-(--lex-dialog-transition-duration) ease-(--lex-dialog-transition-easing)",
|
|
38
38
|
].join(" "),
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
export const dialogTitleVariants = cva(
|
|
42
|
-
"pr-(--
|
|
42
|
+
"pr-(--lex-dialog-title-padding-end) text-(length:--lex-dialog-title-font-size) font-(--lex-dialog-title-font-weight) leading-(--lex-dialog-title-font-line-height) text-(--lex-dialog-title-foreground)",
|
|
43
43
|
)
|
|
44
44
|
|
|
45
45
|
export const dialogDescriptionVariants = cva(
|
|
46
|
-
"text-(length:--
|
|
46
|
+
"text-(length:--lex-dialog-description-font-size) font-(--lex-dialog-description-font-weight) leading-(--lex-dialog-description-font-line-height) text-(--lex-dialog-description-foreground)",
|
|
47
47
|
)
|
|
48
48
|
|
|
49
49
|
export const dialogCloseVariants = cva(
|
|
50
50
|
[
|
|
51
|
-
"absolute right-(--
|
|
52
|
-
"text-(--
|
|
53
|
-
"hover:bg-(--
|
|
51
|
+
"absolute right-(--lex-dialog-close-inset) top-(--lex-dialog-close-inset) inline-flex size-(--lex-dialog-close-size) items-center justify-center rounded-(--lex-dialog-close-radius)",
|
|
52
|
+
"text-(--lex-dialog-close-foreground) outline-none transition-colors duration-(--lex-dialog-transition-duration) ease-(--lex-dialog-transition-easing)",
|
|
53
|
+
"hover:bg-(--lex-dialog-close-hover-background) focus-visible:ring-(length:--lex-dialog-focus-ring-width) focus-visible:ring-(--lex-dialog-focus-ring-color) focus-visible:ring-offset-(length:--lex-dialog-focus-ring-offset) focus-visible:ring-offset-(--lex-dialog-focus-ring-offset-color)",
|
|
54
54
|
disabledStateClasses,
|
|
55
55
|
].join(" "),
|
|
56
56
|
)
|
|
@@ -11,7 +11,9 @@ import type { Drawer as BaseDrawer } from "@base-ui/react/drawer"
|
|
|
11
11
|
export type DrawerSide = "bottom" | "top" | "right" | "left"
|
|
12
12
|
export type DrawerSize = "sm" | "md" | "lg" | "full"
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
15
|
+
export interface DrawerProps<Payload = unknown> extends BaseDrawer.Root
|
|
16
|
+
.Props<Payload> {}
|
|
15
17
|
export type DrawerProviderProps = BaseDrawer.Provider.Props
|
|
16
18
|
export type DrawerPortalProps = BaseDrawer.Portal.Props
|
|
17
19
|
export type DrawerHandle<Payload = unknown> = BaseDrawer.Handle<Payload>
|