@techsio/ui-kit 0.61.0 → 0.63.0
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 +101 -4
- package/dist/atoms/action-icon.js +9 -4
- package/dist/atoms/badge.js +59 -33
- package/dist/atoms/button.js +73 -54
- package/dist/atoms/checkbox.js +5 -1
- package/dist/atoms/hotkeys.js +5 -1
- package/dist/atoms/icon.js +9 -4
- package/dist/atoms/image.js +9 -2
- package/dist/atoms/input.js +10 -6
- package/dist/atoms/label.js +6 -1
- package/dist/atoms/link-button.js +9 -4
- package/dist/atoms/link.js +6 -1
- package/dist/atoms/numeric-input.js +11 -7
- package/dist/atoms/rating.js +5 -1
- package/dist/atoms/skeleton.js +22 -15
- package/dist/atoms/status-text.js +6 -1
- package/dist/atoms/textarea.js +23 -12
- package/dist/atoms/tooltip.js +10 -5
- package/dist/internal/molecules/vertical-navigation.styles.js +7 -7
- package/dist/molecules/accordion.js +20 -14
- package/dist/molecules/availability-status.js +2 -1
- package/dist/molecules/breadcrumb.js +9 -4
- package/dist/molecules/carousel.js +5 -1
- package/dist/molecules/cascade-select.js +8 -4
- package/dist/molecules/color-select.js +5 -1
- package/dist/molecules/combobox.js +8 -4
- package/dist/molecules/date-picker.js +26 -22
- package/dist/molecules/dialog.js +7 -3
- package/dist/molecules/drawer.js +9 -5
- package/dist/molecules/file-upload.js +9 -5
- package/dist/molecules/form-checkbox.js +5 -1
- package/dist/molecules/form-input.js +12 -2
- package/dist/molecules/form-numeric-input.js +11 -1
- package/dist/molecules/form-textarea.js +12 -2
- package/dist/molecules/menu.js +17 -7
- package/dist/molecules/pagination.js +13 -8
- package/dist/molecules/phone-input.js +5 -1
- package/dist/molecules/popover.js +10 -6
- package/dist/molecules/price-block.js +1 -1
- package/dist/molecules/product-card.js +5 -5
- package/dist/molecules/quantity-field.js +5 -1
- package/dist/molecules/radio-card.js +26 -21
- package/dist/molecules/radio-group.js +24 -19
- package/dist/molecules/search-form.js +8 -4
- package/dist/molecules/select.js +8 -4
- package/dist/molecules/slider.js +5 -1
- package/dist/molecules/steps.js +24 -14
- package/dist/molecules/switch.js +5 -1
- package/dist/molecules/tabs.js +13 -8
- package/dist/molecules/toast.js +3 -3
- package/dist/molecules/totals-summary.js +5 -5
- package/dist/molecules/tree-view.js +7 -2
- package/dist/molecules/vertical-navigation.js +23 -13
- package/dist/organisms/data-table.fields.js +2 -2
- package/dist/organisms/data-table.js +41 -23
- package/dist/organisms/footer.js +5 -1
- package/dist/organisms/gallery.js +1 -1
- package/dist/organisms/header.js +7 -3
- package/dist/organisms/line-item.js +2 -2
- package/dist/organisms/sidebar.js +5 -6
- package/dist/organisms/table.js +10 -5
- package/dist/src/atoms/action-icon.d.ts +5 -5
- package/dist/src/atoms/action-icon.d.ts.map +1 -1
- package/dist/src/atoms/badge.d.ts +55 -40
- package/dist/src/atoms/badge.d.ts.map +1 -1
- package/dist/src/atoms/button.d.ts +29 -18
- package/dist/src/atoms/button.d.ts.map +1 -1
- package/dist/src/atoms/checkbox.d.ts +2 -2
- package/dist/src/atoms/checkbox.d.ts.map +1 -1
- package/dist/src/atoms/hotkeys.d.ts +2 -2
- package/dist/src/atoms/hotkeys.d.ts.map +1 -1
- package/dist/src/atoms/icon.d.ts +5 -5
- package/dist/src/atoms/icon.d.ts.map +1 -1
- package/dist/src/atoms/image.d.ts +2 -2
- package/dist/src/atoms/image.d.ts.map +1 -1
- package/dist/src/atoms/input.d.ts +5 -5
- package/dist/src/atoms/input.d.ts.map +1 -1
- package/dist/src/atoms/label.d.ts +2 -2
- package/dist/src/atoms/label.d.ts.map +1 -1
- package/dist/src/atoms/link-button.d.ts +34 -29
- package/dist/src/atoms/link-button.d.ts.map +1 -1
- package/dist/src/atoms/link.d.ts +2 -2
- package/dist/src/atoms/link.d.ts.map +1 -1
- package/dist/src/atoms/numeric-input.d.ts +9 -8
- package/dist/src/atoms/numeric-input.d.ts.map +1 -1
- package/dist/src/atoms/rating.d.ts +2 -2
- package/dist/src/atoms/rating.d.ts.map +1 -1
- package/dist/src/atoms/skeleton.d.ts +9 -9
- package/dist/src/atoms/skeleton.d.ts.map +1 -1
- package/dist/src/atoms/status-text.d.ts +2 -2
- package/dist/src/atoms/status-text.d.ts.map +1 -1
- package/dist/src/atoms/textarea.d.ts +17 -8
- package/dist/src/atoms/textarea.d.ts.map +1 -1
- package/dist/src/atoms/tooltip.d.ts +7 -7
- package/dist/src/atoms/tooltip.d.ts.map +1 -1
- package/dist/src/internal/molecules/vertical-navigation.context.d.ts +2 -2
- package/dist/src/internal/molecules/vertical-navigation.context.d.ts.map +1 -1
- package/dist/src/internal/molecules/vertical-navigation.styles.d.ts +9 -9
- package/dist/src/internal/molecules/vertical-navigation.styles.d.ts.map +1 -1
- package/dist/src/molecules/accordion.d.ts +25 -14
- package/dist/src/molecules/accordion.d.ts.map +1 -1
- package/dist/src/molecules/availability-status.d.ts +1 -1
- package/dist/src/molecules/availability-status.d.ts.map +1 -1
- package/dist/src/molecules/breadcrumb.d.ts +6 -6
- package/dist/src/molecules/breadcrumb.d.ts.map +1 -1
- package/dist/src/molecules/carousel.d.ts +2 -2
- package/dist/src/molecules/carousel.d.ts.map +1 -1
- package/dist/src/molecules/cascade-select.d.ts +3 -3
- package/dist/src/molecules/cascade-select.d.ts.map +1 -1
- package/dist/src/molecules/color-select.d.ts +2 -2
- package/dist/src/molecules/color-select.d.ts.map +1 -1
- package/dist/src/molecules/combobox.d.ts +2 -2
- package/dist/src/molecules/combobox.d.ts.map +1 -1
- package/dist/src/molecules/command.d.ts +1 -1
- package/dist/src/molecules/date-picker.d.ts +5 -5
- package/dist/src/molecules/date-picker.d.ts.map +1 -1
- package/dist/src/molecules/dialog.d.ts +1 -1
- package/dist/src/molecules/dialog.d.ts.map +1 -1
- package/dist/src/molecules/drawer.d.ts +1 -1
- package/dist/src/molecules/drawer.d.ts.map +1 -1
- package/dist/src/molecules/file-upload.d.ts +2 -2
- package/dist/src/molecules/file-upload.d.ts.map +1 -1
- package/dist/src/molecules/form-checkbox.d.ts +1 -1
- package/dist/src/molecules/form-checkbox.d.ts.map +1 -1
- package/dist/src/molecules/form-input.d.ts +2 -2
- package/dist/src/molecules/form-input.d.ts.map +1 -1
- package/dist/src/molecules/form-numeric-input.d.ts +2 -2
- package/dist/src/molecules/form-numeric-input.d.ts.map +1 -1
- package/dist/src/molecules/form-textarea.d.ts +2 -2
- package/dist/src/molecules/form-textarea.d.ts.map +1 -1
- package/dist/src/molecules/menu.d.ts +2 -2
- package/dist/src/molecules/menu.d.ts.map +1 -1
- package/dist/src/molecules/pagination.d.ts +15 -15
- package/dist/src/molecules/pagination.d.ts.map +1 -1
- package/dist/src/molecules/phone-input.d.ts +2 -2
- package/dist/src/molecules/phone-input.d.ts.map +1 -1
- package/dist/src/molecules/popover.d.ts +4 -4
- package/dist/src/molecules/popover.d.ts.map +1 -1
- package/dist/src/molecules/price-block.d.ts +1 -1
- package/dist/src/molecules/product-card.d.ts +7 -7
- package/dist/src/molecules/product-card.d.ts.map +1 -1
- package/dist/src/molecules/quantity-field.d.ts +2 -2
- package/dist/src/molecules/quantity-field.d.ts.map +1 -1
- package/dist/src/molecules/radio-card.d.ts +7 -7
- package/dist/src/molecules/radio-card.d.ts.map +1 -1
- package/dist/src/molecules/radio-group.d.ts +7 -7
- package/dist/src/molecules/radio-group.d.ts.map +1 -1
- package/dist/src/molecules/search-form.d.ts +3 -3
- package/dist/src/molecules/search-form.d.ts.map +1 -1
- package/dist/src/molecules/select.d.ts +1 -1
- package/dist/src/molecules/select.d.ts.map +1 -1
- package/dist/src/molecules/slider.d.ts +1 -1
- package/dist/src/molecules/slider.d.ts.map +1 -1
- package/dist/src/molecules/steps.d.ts +7 -7
- package/dist/src/molecules/steps.d.ts.map +1 -1
- package/dist/src/molecules/switch.d.ts +1 -1
- package/dist/src/molecules/switch.d.ts.map +1 -1
- package/dist/src/molecules/tabs.d.ts +8 -8
- package/dist/src/molecules/tabs.d.ts.map +1 -1
- package/dist/src/molecules/totals-summary.d.ts +2 -2
- package/dist/src/molecules/tour.d.ts +1 -1
- package/dist/src/molecules/tree-view.d.ts +1 -1
- package/dist/src/molecules/tree-view.d.ts.map +1 -1
- package/dist/src/molecules/vertical-navigation.d.ts +13 -11
- package/dist/src/molecules/vertical-navigation.d.ts.map +1 -1
- package/dist/src/organisms/data-table.d.ts +5 -5
- package/dist/src/organisms/data-table.d.ts.map +1 -1
- package/dist/src/organisms/footer.d.ts +2 -2
- package/dist/src/organisms/footer.d.ts.map +1 -1
- package/dist/src/organisms/gallery.d.ts +1 -1
- package/dist/src/organisms/header.d.ts +2 -2
- package/dist/src/organisms/header.d.ts.map +1 -1
- package/dist/src/organisms/line-item.d.ts +2 -2
- package/dist/src/organisms/line-item.d.ts.map +1 -1
- package/dist/src/organisms/sidebar.d.ts +4 -3
- package/dist/src/organisms/sidebar.d.ts.map +1 -1
- package/dist/src/organisms/table.d.ts +5 -5
- package/dist/src/organisms/table.d.ts.map +1 -1
- package/dist/src/templates/accordion.d.ts +2 -2
- package/dist/src/templates/accordion.d.ts.map +1 -1
- package/dist/src/templates/breadcrumb.d.ts +1 -1
- package/dist/src/templates/carousel.d.ts +1 -1
- package/dist/src/templates/facet-filter-panel.d.ts +1 -1
- package/dist/src/templates/facet-filter-panel.d.ts.map +1 -1
- package/dist/src/templates/gallery.d.ts +1 -1
- package/dist/src/templates/numeric-input.d.ts +1 -1
- package/dist/src/templates/popover.d.ts +1 -1
- package/dist/src/templates/product-card.d.ts +1 -1
- package/dist/src/templates/select.d.ts +1 -1
- package/dist/src/templates/tabs.d.ts +2 -2
- package/dist/src/templates/tabs.d.ts.map +1 -1
- package/dist/src/theme/theme-config.d.ts +11 -0
- package/dist/src/theme/theme-config.d.ts.map +1 -1
- package/dist/src/theme/theme-provider.d.ts.map +1 -1
- package/dist/src/theme/ui-provider.d.ts +48 -0
- package/dist/src/theme/ui-provider.d.ts.map +1 -0
- package/dist/templates/accordion.js +1 -3
- package/dist/templates/facet-filter-panel.js +20 -9
- package/dist/templates/product-card.js +3 -3
- package/dist/templates/tabs.js +1 -3
- package/dist/theme/theme-config.js +12 -1
- package/dist/theme/theme-provider.js +6 -2
- package/dist/theme/theme-toggle.js +4 -4
- package/dist/theme/ui-provider.js +53 -0
- package/package.json +1 -2
- package/src/tokens/_foundation-overrides.css +1 -1
- package/src/tokens/_scheme-scopes.css +9 -0
- package/src/tokens/_semantic.css +1 -1
- package/src/tokens/_shape.css +125 -0
- package/src/tokens/_tokens-base.css +1 -0
- package/src/tokens/components/atoms/_action-icon.css +1 -1
- package/src/tokens/components/atoms/_badge.css +13 -0
- package/src/tokens/components/atoms/_icon.css +1 -1
- package/src/tokens/components/molecules/_chart.css +1 -1
- package/src/tokens/components/molecules/_combobox.css +1 -1
package/dist/atoms/icon.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useUIDefaults } from "../theme/ui-provider.js";
|
|
2
4
|
import { tv } from "../utils.js";
|
|
3
5
|
const iconVariants = tv({
|
|
4
6
|
base: [
|
|
@@ -14,7 +16,7 @@ const iconVariants = tv({
|
|
|
14
16
|
xl: "text-icon-xl",
|
|
15
17
|
"2xl": "text-icon-2xl"
|
|
16
18
|
},
|
|
17
|
-
|
|
19
|
+
severity: {
|
|
18
20
|
current: "text-current",
|
|
19
21
|
primary: "text-icon-fg-accent-safe",
|
|
20
22
|
secondary: "text-icon-fg-secondary-safe",
|
|
@@ -25,10 +27,13 @@ const iconVariants = tv({
|
|
|
25
27
|
},
|
|
26
28
|
defaultVariants: {
|
|
27
29
|
size: "current",
|
|
28
|
-
|
|
30
|
+
severity: "current"
|
|
29
31
|
}
|
|
30
32
|
});
|
|
31
|
-
function Icon({ icon, size,
|
|
33
|
+
function Icon({ icon, size: sizeProp, severity, className, label, ...props }) {
|
|
34
|
+
const { size } = useUIDefaults("Icon", {
|
|
35
|
+
size: sizeProp
|
|
36
|
+
}, iconVariants);
|
|
32
37
|
const a11yProps = label ? {
|
|
33
38
|
role: "img",
|
|
34
39
|
"aria-label": label
|
|
@@ -39,7 +44,7 @@ function Icon({ icon, size, color, className, label, ...props }) {
|
|
|
39
44
|
...a11yProps,
|
|
40
45
|
className: `${iconVariants({
|
|
41
46
|
size,
|
|
42
|
-
|
|
47
|
+
severity,
|
|
43
48
|
className
|
|
44
49
|
})} ${icon}`,
|
|
45
50
|
...props
|
package/dist/atoms/image.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
+
import { useUIDefaults } from "../theme/ui-provider.js";
|
|
4
5
|
import { tv } from "../utils.js";
|
|
5
6
|
import { Icon } from "./icon.js";
|
|
6
7
|
const imageVariants = tv({
|
|
@@ -25,7 +26,10 @@ const imageVariants = tv({
|
|
|
25
26
|
size: "full"
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
|
-
function Image({ as, src, alt, size, objectFit, className, ...props }) {
|
|
29
|
+
function Image({ as, src, alt, size: sizeProp, objectFit, className, ...props }) {
|
|
30
|
+
const { size } = useUIDefaults("Image", {
|
|
31
|
+
size: sizeProp
|
|
32
|
+
}, imageVariants);
|
|
29
33
|
const Component = as || "img";
|
|
30
34
|
return /*#__PURE__*/ jsx(Component, {
|
|
31
35
|
alt: alt,
|
|
@@ -65,7 +69,10 @@ function ImageWithFallback(props) {
|
|
|
65
69
|
...props
|
|
66
70
|
}, sourceKey);
|
|
67
71
|
}
|
|
68
|
-
function ImageFallbackContent({ as, src, alt, size, objectFit, className, fallbackLabel, ...props }) {
|
|
72
|
+
function ImageFallbackContent({ as, src, alt, size: sizeProp, objectFit, className, fallbackLabel, ...props }) {
|
|
73
|
+
const { size } = useUIDefaults("Image", {
|
|
74
|
+
size: sizeProp
|
|
75
|
+
}, imageVariants);
|
|
69
76
|
const [failed, setFailed] = useState(!src);
|
|
70
77
|
const [loaded, setLoaded] = useState(false);
|
|
71
78
|
const pending = !(failed || loaded);
|
package/dist/atoms/input.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useId, useLayoutEffect, useMemo, useRef } from "react";
|
|
4
4
|
import { subscribeOwnerFormReset, syncReactFormControl } from "../internal/form-control-lifecycle.js";
|
|
5
|
+
import { useUIDefaults } from "../theme/ui-provider.js";
|
|
5
6
|
import { tv } from "../utils.js";
|
|
6
7
|
const inputVariants = tv({
|
|
7
8
|
base: [
|
|
@@ -31,7 +32,7 @@ const inputVariants = tv({
|
|
|
31
32
|
md: "h-form-control-md rounded-input-md p-input-md px-input-inline-md text-input-md",
|
|
32
33
|
lg: "h-form-control-lg rounded-input-lg p-input-lg px-input-inline-lg text-input-lg"
|
|
33
34
|
},
|
|
34
|
-
|
|
35
|
+
validateStatus: {
|
|
35
36
|
default: "",
|
|
36
37
|
error: [
|
|
37
38
|
"border-(length:--border-width-validation)",
|
|
@@ -73,7 +74,7 @@ const inputVariants = tv({
|
|
|
73
74
|
},
|
|
74
75
|
compoundVariants: [
|
|
75
76
|
{
|
|
76
|
-
|
|
77
|
+
validateStatus: "default",
|
|
77
78
|
readOnly: true,
|
|
78
79
|
class: [
|
|
79
80
|
"hover:border-input-border-readonly-hover",
|
|
@@ -83,12 +84,15 @@ const inputVariants = tv({
|
|
|
83
84
|
],
|
|
84
85
|
defaultVariants: {
|
|
85
86
|
size: "md",
|
|
86
|
-
|
|
87
|
+
validateStatus: "default",
|
|
87
88
|
hideSearchClear: true
|
|
88
89
|
}
|
|
89
90
|
});
|
|
90
|
-
function Input({ size,
|
|
91
|
+
function Input({ size: sizeProp, validateStatus, disabled, readOnly, hideSearchClear, id, ref, withButtonInside, className, ...props }) {
|
|
91
92
|
const generatedId = useId();
|
|
93
|
+
const { size } = useUIDefaults("Input", {
|
|
94
|
+
size: sizeProp
|
|
95
|
+
}, inputVariants);
|
|
92
96
|
const currentValue = useRef({
|
|
93
97
|
value: props.value,
|
|
94
98
|
checked: props.checked
|
|
@@ -118,7 +122,7 @@ function Input({ size, variant, disabled, readOnly, hideSearchClear, id, ref, wi
|
|
|
118
122
|
return /*#__PURE__*/ jsx("input", {
|
|
119
123
|
className: inputVariants({
|
|
120
124
|
size,
|
|
121
|
-
|
|
125
|
+
validateStatus,
|
|
122
126
|
disabled,
|
|
123
127
|
hideSearchClear: readOnly || hideSearchClear,
|
|
124
128
|
readOnly: Boolean(readOnly),
|
|
@@ -131,7 +135,7 @@ function Input({ size, variant, disabled, readOnly, hideSearchClear, id, ref, wi
|
|
|
131
135
|
readOnly: readOnly,
|
|
132
136
|
ref: inputRef,
|
|
133
137
|
...props,
|
|
134
|
-
"aria-invalid": "error" ===
|
|
138
|
+
"aria-invalid": "error" === validateStatus ? true : props["aria-invalid"]
|
|
135
139
|
});
|
|
136
140
|
}
|
|
137
141
|
export { Input };
|
package/dist/atoms/label.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { RequiredLabelText } from "../internal/required-label-text.js";
|
|
4
|
+
import { useUIDefaults } from "../theme/ui-provider.js";
|
|
3
5
|
import { tv } from "../utils.js";
|
|
4
6
|
const labelVariants = tv({
|
|
5
7
|
base: [
|
|
@@ -23,7 +25,10 @@ const labelVariants = tv({
|
|
|
23
25
|
disabled: false
|
|
24
26
|
}
|
|
25
27
|
});
|
|
26
|
-
function Label({ size, disabled, required, requiredLabel, children, className, ...props }) {
|
|
28
|
+
function Label({ size: sizeProp, disabled, required, requiredLabel, children, className, ...props }) {
|
|
29
|
+
const { size } = useUIDefaults("Label", {
|
|
30
|
+
size: sizeProp
|
|
31
|
+
}, labelVariants);
|
|
27
32
|
return /*#__PURE__*/ jsxs("label", {
|
|
28
33
|
className: labelVariants({
|
|
29
34
|
size,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useUIDefaults } from "../theme/ui-provider.js";
|
|
3
4
|
import { tv } from "../utils.js";
|
|
4
|
-
import { buttonVariants } from "./button.js";
|
|
5
|
+
import { buttonStyleValues, buttonVariants } from "./button.js";
|
|
5
6
|
import { Icon } from "./icon.js";
|
|
6
7
|
const linkButton = tv({
|
|
7
8
|
extend: buttonVariants,
|
|
@@ -10,16 +11,20 @@ const linkButton = tv({
|
|
|
10
11
|
size: "md"
|
|
11
12
|
}
|
|
12
13
|
});
|
|
13
|
-
function LinkButton({ density, href, icon, as, iconPosition = "left", iconSize, children,
|
|
14
|
+
function LinkButton({ density, href, icon, as, iconPosition = "left", iconSize, children, severity, appearance: appearanceProp, unstyled = false, size: sizeProp, block, uppercase, className, disabled, composition, ref, onClick, tabIndex, ...props }) {
|
|
14
15
|
const handleClick = onClick;
|
|
16
|
+
const { size, appearance } = useUIDefaults("LinkButton", {
|
|
17
|
+
size: sizeProp,
|
|
18
|
+
appearance: appearanceProp
|
|
19
|
+
}, buttonStyleValues);
|
|
15
20
|
const Component = disabled ? "span" : as || "a";
|
|
16
21
|
return /*#__PURE__*/ jsxs(Component, {
|
|
17
22
|
...props,
|
|
18
23
|
"aria-disabled": true === disabled ? true : props["aria-disabled"],
|
|
19
24
|
className: linkButton({
|
|
20
25
|
density,
|
|
21
|
-
|
|
22
|
-
|
|
26
|
+
severity,
|
|
27
|
+
appearance: unstyled ? "unstyled" : appearance,
|
|
23
28
|
size,
|
|
24
29
|
block,
|
|
25
30
|
uppercase,
|
package/dist/atoms/link.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useUIDefaults } from "../theme/ui-provider.js";
|
|
2
4
|
import { tv } from "../utils.js";
|
|
3
5
|
const linkVariants = tv({
|
|
4
6
|
base: [
|
|
@@ -18,7 +20,10 @@ const linkVariants = tv({
|
|
|
18
20
|
size: "md"
|
|
19
21
|
}
|
|
20
22
|
});
|
|
21
|
-
function Link({ as, children, external = false, className, size, ...props }) {
|
|
23
|
+
function Link({ as, children, external = false, className, size: sizeProp, ...props }) {
|
|
24
|
+
const { size } = useUIDefaults("Link", {
|
|
25
|
+
size: sizeProp
|
|
26
|
+
}, linkVariants);
|
|
22
27
|
const Component = as || "a";
|
|
23
28
|
const target = "target" in props ? props.target : void 0;
|
|
24
29
|
const rel = "rel" in props ? props.rel : void 0;
|
|
@@ -8,6 +8,7 @@ import { joinDescribedBy, useDescribedBy, useRegisterDescription } from "../inte
|
|
|
8
8
|
import { createNumericInputEditing, syncNumericInputValue } from "../internal/numeric-input-editing.js";
|
|
9
9
|
import { definedEntries } from "../messages/ui-messages.js";
|
|
10
10
|
import { useUiMessages } from "../messages/ui-messages-provider.js";
|
|
11
|
+
import { useUIDefaults } from "../theme/ui-provider.js";
|
|
11
12
|
import { tv } from "../utils.js";
|
|
12
13
|
import { Button } from "./button.js";
|
|
13
14
|
import { Input } from "./input.js";
|
|
@@ -205,7 +206,10 @@ function useNumericInputContext() {
|
|
|
205
206
|
if (!context) throw new Error("NumericInput components must be used within NumericInput.Root");
|
|
206
207
|
return context;
|
|
207
208
|
}
|
|
208
|
-
function NumericInput({ density, id, size, value, defaultValue, onChange, validateStatus = "default", dir = "ltr", describedBy, "aria-describedby": ariaDescribedBy, "aria-errormessage": ariaErrorMessage, "aria-invalid": ariaInvalid, precision, children, ref, className, locale, ...props }) {
|
|
209
|
+
function NumericInput({ density, id, size: sizeProp, value, defaultValue, onChange, validateStatus = "default", dir = "ltr", describedBy, "aria-describedby": ariaDescribedBy, "aria-errormessage": ariaErrorMessage, "aria-invalid": ariaInvalid, precision, children, ref, className, locale, ...props }) {
|
|
210
|
+
const { size } = useUIDefaults("NumericInput", {
|
|
211
|
+
size: sizeProp
|
|
212
|
+
}, numericInputVariants);
|
|
209
213
|
const messages = useUiMessages();
|
|
210
214
|
const resolvedLocale = locale ?? messages.locale ?? "cs-CZ";
|
|
211
215
|
const generatedId = useId();
|
|
@@ -495,10 +499,11 @@ NumericInput.Input = function({ ref, id, className, ...props }) {
|
|
|
495
499
|
size: size
|
|
496
500
|
});
|
|
497
501
|
};
|
|
498
|
-
NumericInput.IncrementTrigger = function({
|
|
502
|
+
NumericInput.IncrementTrigger = function({ severity = "primary", appearance = "ghost", icon = "token-icon-numeric-input-increment", iconPosition = "left", iconSize, uppercase, block, isLoading, loadingText, ref, className, children, ...props }) {
|
|
499
503
|
const { api, styles, readOnly, disabled } = useNumericInputContext();
|
|
500
504
|
if (readOnly) return null;
|
|
501
505
|
return /*#__PURE__*/ jsx(Button, {
|
|
506
|
+
appearance: appearance,
|
|
502
507
|
block: block,
|
|
503
508
|
className: styles.trigger({
|
|
504
509
|
className: [
|
|
@@ -512,10 +517,9 @@ NumericInput.IncrementTrigger = function({ variant = "primary", theme = "borderl
|
|
|
512
517
|
isLoading: isLoading,
|
|
513
518
|
loadingText: loadingText,
|
|
514
519
|
ref: ref,
|
|
520
|
+
severity: severity,
|
|
515
521
|
size: "current",
|
|
516
|
-
theme: theme,
|
|
517
522
|
uppercase: uppercase,
|
|
518
|
-
variant: variant,
|
|
519
523
|
...api.getIncrementTriggerProps(),
|
|
520
524
|
...props,
|
|
521
525
|
"data-readonly-affordance": "",
|
|
@@ -523,10 +527,11 @@ NumericInput.IncrementTrigger = function({ variant = "primary", theme = "borderl
|
|
|
523
527
|
children: children
|
|
524
528
|
});
|
|
525
529
|
};
|
|
526
|
-
NumericInput.DecrementTrigger = function({
|
|
530
|
+
NumericInput.DecrementTrigger = function({ severity = "primary", appearance = "ghost", icon = "token-icon-numeric-input-decrement", iconPosition = "left", iconSize, uppercase, block, isLoading, loadingText, ref, className, children, ...props }) {
|
|
527
531
|
const { api, styles, readOnly, disabled } = useNumericInputContext();
|
|
528
532
|
if (readOnly) return null;
|
|
529
533
|
return /*#__PURE__*/ jsx(Button, {
|
|
534
|
+
appearance: appearance,
|
|
530
535
|
block: block,
|
|
531
536
|
className: styles.trigger({
|
|
532
537
|
className: [
|
|
@@ -540,10 +545,9 @@ NumericInput.DecrementTrigger = function({ variant = "primary", theme = "borderl
|
|
|
540
545
|
isLoading: isLoading,
|
|
541
546
|
loadingText: loadingText,
|
|
542
547
|
ref: ref,
|
|
548
|
+
severity: severity,
|
|
543
549
|
size: "current",
|
|
544
|
-
theme: theme,
|
|
545
550
|
uppercase: uppercase,
|
|
546
|
-
variant: variant,
|
|
547
551
|
...api.getDecrementTriggerProps(),
|
|
548
552
|
...props,
|
|
549
553
|
"data-readonly-affordance": "",
|
package/dist/atoms/rating.js
CHANGED
|
@@ -9,6 +9,7 @@ import { isEffectivelyDisabled, syncReactFormControl } from "../internal/form-co
|
|
|
9
9
|
import { useEffectiveDisabled } from "../internal/use-effective-disabled.js";
|
|
10
10
|
import { definedEntries } from "../messages/ui-messages.js";
|
|
11
11
|
import { useUiMessages } from "../messages/ui-messages-provider.js";
|
|
12
|
+
import { useUIDefaults } from "../theme/ui-provider.js";
|
|
12
13
|
import { tv } from "../utils.js";
|
|
13
14
|
import { Label } from "./label.js";
|
|
14
15
|
import { StatusText } from "./status-text.js";
|
|
@@ -145,7 +146,10 @@ const rating = tv({
|
|
|
145
146
|
size: "md"
|
|
146
147
|
}
|
|
147
148
|
});
|
|
148
|
-
function Rating({ value, defaultValue = 0, count = 5, labelText, readOnly: readOnlyProp = false, displayOnly = false, disabled: disabledProp = false, allowHalf = true, name, dir = "ltr", translations, helpText, validateStatus = "default", onChange, onHoverChange, size
|
|
149
|
+
function Rating({ value, defaultValue = 0, count = 5, labelText, readOnly: readOnlyProp = false, displayOnly = false, disabled: disabledProp = false, allowHalf = true, name, dir = "ltr", translations, helpText, validateStatus = "default", onChange, onHoverChange, size: sizeProp, className, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }) {
|
|
150
|
+
const { size = "md" } = useUIDefaults("Rating", {
|
|
151
|
+
size: sizeProp
|
|
152
|
+
}, rating);
|
|
149
153
|
const readOnly = readOnlyProp || displayOnly;
|
|
150
154
|
const messages = useUiMessages();
|
|
151
155
|
const zagTranslations = {
|
package/dist/atoms/skeleton.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
4
|
import { useUiMessages } from "../messages/ui-messages-provider.js";
|
|
5
|
+
import { useUIDefaults } from "../theme/ui-provider.js";
|
|
5
6
|
import { tv } from "../utils.js";
|
|
6
7
|
const skeletonVariants = tv({
|
|
7
8
|
slots: {
|
|
@@ -25,7 +26,7 @@ const skeletonVariants = tv({
|
|
|
25
26
|
]
|
|
26
27
|
},
|
|
27
28
|
variants: {
|
|
28
|
-
|
|
29
|
+
severity: {
|
|
29
30
|
primary: {
|
|
30
31
|
root: "",
|
|
31
32
|
circle: "bg-skeleton-bg-primary",
|
|
@@ -70,7 +71,7 @@ const skeletonVariants = tv({
|
|
|
70
71
|
}
|
|
71
72
|
},
|
|
72
73
|
defaultVariants: {
|
|
73
|
-
|
|
74
|
+
severity: "primary",
|
|
74
75
|
size: "md",
|
|
75
76
|
speed: "normal"
|
|
76
77
|
}
|
|
@@ -81,7 +82,7 @@ function useResolvedSkeletonProps(props) {
|
|
|
81
82
|
const context = useSkeletonContext();
|
|
82
83
|
return {
|
|
83
84
|
isLoaded: props.isLoaded ?? context?.isLoaded ?? false,
|
|
84
|
-
|
|
85
|
+
severity: props.severity ?? context?.severity,
|
|
85
86
|
speed: props.speed ?? context?.speed
|
|
86
87
|
};
|
|
87
88
|
}
|
|
@@ -104,16 +105,16 @@ function useSkeletonA11yProps(ariaHidden) {
|
|
|
104
105
|
"aria-label": messages.skeleton.loading
|
|
105
106
|
};
|
|
106
107
|
}
|
|
107
|
-
function Skeleton({ isLoaded = false,
|
|
108
|
+
function Skeleton({ isLoaded = false, severity, children, speed, className, ref, ...props }) {
|
|
108
109
|
const styles = skeletonVariants({
|
|
109
|
-
|
|
110
|
+
severity,
|
|
110
111
|
speed
|
|
111
112
|
});
|
|
112
113
|
const messages = useUiMessages();
|
|
113
114
|
return /*#__PURE__*/ jsx(SkeletonContext.Provider, {
|
|
114
115
|
value: {
|
|
115
116
|
isLoaded,
|
|
116
|
-
|
|
117
|
+
severity,
|
|
117
118
|
speed
|
|
118
119
|
},
|
|
119
120
|
children: isLoaded ? children : /*#__PURE__*/ jsx("div", {
|
|
@@ -133,16 +134,19 @@ function Skeleton({ isLoaded = false, variant, children, speed, className, ref,
|
|
|
133
134
|
})
|
|
134
135
|
});
|
|
135
136
|
}
|
|
136
|
-
Skeleton.Circle = function({ size
|
|
137
|
+
Skeleton.Circle = function({ size: sizeProp, speed, isLoaded, severity, children, className, ref, ...props }) {
|
|
138
|
+
const { size = "md" } = useUIDefaults("Skeleton", {
|
|
139
|
+
size: sizeProp
|
|
140
|
+
}, skeletonVariants);
|
|
137
141
|
const resolved = useResolvedSkeletonProps({
|
|
138
142
|
isLoaded,
|
|
139
|
-
|
|
143
|
+
severity,
|
|
140
144
|
speed
|
|
141
145
|
});
|
|
142
146
|
const a11yProps = useSkeletonA11yProps(props["aria-hidden"]);
|
|
143
147
|
const styles = skeletonVariants({
|
|
144
148
|
size,
|
|
145
|
-
|
|
149
|
+
severity: resolved.severity,
|
|
146
150
|
speed: resolved.speed
|
|
147
151
|
});
|
|
148
152
|
if (resolved.isLoaded) return /*#__PURE__*/ jsx(Fragment, {
|
|
@@ -159,16 +163,19 @@ Skeleton.Circle = function({ size = "md", speed, isLoaded, variant, children, cl
|
|
|
159
163
|
...props
|
|
160
164
|
});
|
|
161
165
|
};
|
|
162
|
-
Skeleton.Text = function({ noOfLines = 3, size
|
|
166
|
+
Skeleton.Text = function({ noOfLines = 3, size: sizeProp, speed, lastLineWidth = "80%", isLoaded, severity, children, containerClassName, className, ref, ...props }) {
|
|
167
|
+
const { size = "md" } = useUIDefaults("Skeleton", {
|
|
168
|
+
size: sizeProp
|
|
169
|
+
}, skeletonVariants);
|
|
163
170
|
const resolved = useResolvedSkeletonProps({
|
|
164
171
|
isLoaded,
|
|
165
|
-
|
|
172
|
+
severity,
|
|
166
173
|
speed
|
|
167
174
|
});
|
|
168
175
|
const a11yProps = useSkeletonA11yProps(props["aria-hidden"]);
|
|
169
176
|
const styles = skeletonVariants({
|
|
170
177
|
size,
|
|
171
|
-
|
|
178
|
+
severity: resolved.severity,
|
|
172
179
|
speed: resolved.speed
|
|
173
180
|
});
|
|
174
181
|
if (resolved.isLoaded) return /*#__PURE__*/ jsx(Fragment, {
|
|
@@ -200,15 +207,15 @@ Skeleton.Text = function({ noOfLines = 3, size = "md", speed, lastLineWidth = "8
|
|
|
200
207
|
})
|
|
201
208
|
});
|
|
202
209
|
};
|
|
203
|
-
Skeleton.Rectangle = function({ speed, isLoaded,
|
|
210
|
+
Skeleton.Rectangle = function({ speed, isLoaded, severity, children, className, ref, ...props }) {
|
|
204
211
|
const resolved = useResolvedSkeletonProps({
|
|
205
212
|
isLoaded,
|
|
206
|
-
|
|
213
|
+
severity,
|
|
207
214
|
speed
|
|
208
215
|
});
|
|
209
216
|
const a11yProps = useSkeletonA11yProps(props["aria-hidden"]);
|
|
210
217
|
const styles = skeletonVariants({
|
|
211
|
-
|
|
218
|
+
severity: resolved.severity,
|
|
212
219
|
speed: resolved.speed
|
|
213
220
|
});
|
|
214
221
|
if (resolved.isLoaded) return /*#__PURE__*/ jsx(Fragment, {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useUIDefaults } from "../theme/ui-provider.js";
|
|
2
4
|
import { tv } from "../utils.js";
|
|
3
5
|
import { Icon } from "./icon.js";
|
|
4
6
|
const statusTextVariants = tv({
|
|
@@ -52,7 +54,10 @@ const LIVE_ROLE_MAP = {
|
|
|
52
54
|
warning: "status",
|
|
53
55
|
default: void 0
|
|
54
56
|
};
|
|
55
|
-
function StatusText({ className, showIcon = true, status = "default", size
|
|
57
|
+
function StatusText({ className, showIcon = true, status = "default", size: sizeProp, align = "start", icon, children, ref, ...props }) {
|
|
58
|
+
const { size = "md" } = useUIDefaults("StatusText", {
|
|
59
|
+
size: sizeProp
|
|
60
|
+
}, statusTextVariants);
|
|
56
61
|
const resolvedIcon = icon ?? ICON_MAP[status];
|
|
57
62
|
const liveRole = LIVE_ROLE_MAP[status];
|
|
58
63
|
const { base, icon: iconSlot, message } = statusTextVariants({
|
package/dist/atoms/textarea.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useId, useLayoutEffect, useMemo, useRef } from "react";
|
|
4
4
|
import { subscribeOwnerFormReset, syncReactFormControl } from "../internal/form-control-lifecycle.js";
|
|
5
|
+
import { useUIDefaults } from "../theme/ui-provider.js";
|
|
5
6
|
import { tv } from "../utils.js";
|
|
6
7
|
const textareaVariants = tv({
|
|
7
8
|
base: [
|
|
@@ -27,7 +28,16 @@ const textareaVariants = tv({
|
|
|
27
28
|
"user-invalid:focus:border-textarea-border-danger-focus"
|
|
28
29
|
],
|
|
29
30
|
variants: {
|
|
30
|
-
|
|
31
|
+
appearance: {
|
|
32
|
+
outline: "",
|
|
33
|
+
ghost: [
|
|
34
|
+
"border-transparent",
|
|
35
|
+
"bg-textarea-bg-borderless",
|
|
36
|
+
"hover:bg-textarea-bg-borderless-hover",
|
|
37
|
+
"focus:bg-textarea-bg-borderless-focus"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
validateStatus: {
|
|
31
41
|
default: "",
|
|
32
42
|
error: [
|
|
33
43
|
"border-(length:--border-width-validation)",
|
|
@@ -47,12 +57,6 @@ const textareaVariants = tv({
|
|
|
47
57
|
"border-textarea-border-warning-base",
|
|
48
58
|
"hover:border-textarea-border-warning-hover",
|
|
49
59
|
"focus:border-textarea-border-warning-focus"
|
|
50
|
-
],
|
|
51
|
-
borderless: [
|
|
52
|
-
"border-transparent",
|
|
53
|
-
"bg-textarea-bg-borderless",
|
|
54
|
-
"hover:bg-textarea-bg-borderless-hover",
|
|
55
|
-
"focus:bg-textarea-bg-borderless-focus"
|
|
56
60
|
]
|
|
57
61
|
},
|
|
58
62
|
size: {
|
|
@@ -73,7 +77,8 @@ const textareaVariants = tv({
|
|
|
73
77
|
},
|
|
74
78
|
compoundVariants: [
|
|
75
79
|
{
|
|
76
|
-
|
|
80
|
+
validateStatus: "default",
|
|
81
|
+
appearance: "outline",
|
|
77
82
|
readOnly: true,
|
|
78
83
|
class: [
|
|
79
84
|
"hover:border-textarea-border-readonly-hover",
|
|
@@ -84,7 +89,8 @@ const textareaVariants = tv({
|
|
|
84
89
|
defaultVariants: {
|
|
85
90
|
size: "md",
|
|
86
91
|
resize: "y",
|
|
87
|
-
|
|
92
|
+
validateStatus: "default",
|
|
93
|
+
appearance: "outline"
|
|
88
94
|
}
|
|
89
95
|
}, {
|
|
90
96
|
twMergeConfig: {
|
|
@@ -97,8 +103,12 @@ const textareaVariants = tv({
|
|
|
97
103
|
}
|
|
98
104
|
}
|
|
99
105
|
});
|
|
100
|
-
function Textarea({ size, resize,
|
|
106
|
+
function Textarea({ size: sizeProp, appearance: appearanceProp, resize, validateStatus, readonly, readOnly = readonly, id, className, ref, ...props }) {
|
|
101
107
|
const generatedId = useId();
|
|
108
|
+
const { size, appearance } = useUIDefaults("Textarea", {
|
|
109
|
+
size: sizeProp,
|
|
110
|
+
appearance: appearanceProp
|
|
111
|
+
}, textareaVariants);
|
|
102
112
|
const currentValue = useRef(props.value);
|
|
103
113
|
useLayoutEffect(()=>{
|
|
104
114
|
currentValue.current = props.value;
|
|
@@ -122,7 +132,8 @@ function Textarea({ size, resize, variant, readonly, readOnly = readonly, id, cl
|
|
|
122
132
|
className: textareaVariants({
|
|
123
133
|
size,
|
|
124
134
|
resize,
|
|
125
|
-
|
|
135
|
+
validateStatus,
|
|
136
|
+
appearance,
|
|
126
137
|
readOnly: Boolean(readOnly),
|
|
127
138
|
className
|
|
128
139
|
}),
|
|
@@ -131,7 +142,7 @@ function Textarea({ size, resize, variant, readonly, readOnly = readonly, id, cl
|
|
|
131
142
|
readOnly: readOnly,
|
|
132
143
|
ref: textareaRef,
|
|
133
144
|
...props,
|
|
134
|
-
"aria-invalid": "error" ===
|
|
145
|
+
"aria-invalid": "error" === validateStatus ? true : props["aria-invalid"]
|
|
135
146
|
});
|
|
136
147
|
}
|
|
137
148
|
Textarea.displayName = "Textarea";
|
package/dist/atoms/tooltip.js
CHANGED
|
@@ -5,6 +5,7 @@ import { connect, machine, splitProps } from "@zag-js/tooltip";
|
|
|
5
5
|
import { Children, Fragment as external_react_Fragment, cloneElement, isValidElement, useEffect, useId } from "react";
|
|
6
6
|
import { joinDescribedBy } from "../internal/described-by.js";
|
|
7
7
|
import { OverlayPortal } from "../internal/overlay-portal.js";
|
|
8
|
+
import { useUIDefaults } from "../theme/ui-provider.js";
|
|
8
9
|
import { tv } from "../utils.js";
|
|
9
10
|
const tooltipVariants = tv({
|
|
10
11
|
slots: {
|
|
@@ -27,8 +28,8 @@ const tooltipVariants = tv({
|
|
|
27
28
|
arrow: ""
|
|
28
29
|
},
|
|
29
30
|
variants: {
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
appearance: {
|
|
32
|
+
solid: {},
|
|
32
33
|
outline: {
|
|
33
34
|
content: "border border-tooltip-border-outline",
|
|
34
35
|
arrow: "border-tooltip-border-outline border-s border-t"
|
|
@@ -48,7 +49,7 @@ const tooltipVariants = tv({
|
|
|
48
49
|
},
|
|
49
50
|
defaultVariants: {
|
|
50
51
|
size: "md",
|
|
51
|
-
|
|
52
|
+
appearance: "solid"
|
|
52
53
|
}
|
|
53
54
|
});
|
|
54
55
|
function describeTooltipChildren(children, describedBy) {
|
|
@@ -61,7 +62,11 @@ function describeTooltipChildren(children, describedBy) {
|
|
|
61
62
|
return "string" == typeof child.type && void 0 !== child.props.children ? /*#__PURE__*/ cloneElement(child, props, describeTooltipChildren(child.props.children, describedBy)) : /*#__PURE__*/ cloneElement(child, props);
|
|
62
63
|
});
|
|
63
64
|
}
|
|
64
|
-
function Tooltip({ content, children, className, ref, size,
|
|
65
|
+
function Tooltip({ content, children, className, ref, size: sizeProp, appearance: appearanceProp, ...props }) {
|
|
66
|
+
const { size, appearance } = useUIDefaults("Tooltip", {
|
|
67
|
+
size: sizeProp,
|
|
68
|
+
appearance: appearanceProp
|
|
69
|
+
}, tooltipVariants);
|
|
65
70
|
const generatedId = useId();
|
|
66
71
|
const [machineProps, positioningProps] = splitProps(props);
|
|
67
72
|
const service = useMachine(machine, {
|
|
@@ -112,7 +117,7 @@ function Tooltip({ content, children, className, ref, size, variant, ...props })
|
|
|
112
117
|
]);
|
|
113
118
|
const triggerProps = api.getTriggerProps();
|
|
114
119
|
const { trigger, positioner, content: contentSlot, arrow } = tooltipVariants({
|
|
115
|
-
|
|
120
|
+
appearance,
|
|
116
121
|
size
|
|
117
122
|
});
|
|
118
123
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
@@ -14,7 +14,7 @@ const verticalNavigationStyles = tv({
|
|
|
14
14
|
separator: "my-vertical-navigation-group h-vertical-navigation-separator border-0 bg-vertical-navigation-separator-bg"
|
|
15
15
|
},
|
|
16
16
|
variants: {
|
|
17
|
-
|
|
17
|
+
severity: {
|
|
18
18
|
primary: {},
|
|
19
19
|
secondary: {}
|
|
20
20
|
},
|
|
@@ -41,7 +41,7 @@ const verticalNavigationStyles = tv({
|
|
|
41
41
|
groupLabel: "px-vertical-navigation-item-x-lg"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
|
|
44
|
+
appearance: {
|
|
45
45
|
plain: {
|
|
46
46
|
content: "bg-vertical-navigation-group-bg-plain text-vertical-navigation-group-fg-plain",
|
|
47
47
|
group: "bg-vertical-navigation-group-bg-plain text-vertical-navigation-group-fg-plain"
|
|
@@ -50,7 +50,7 @@ const verticalNavigationStyles = tv({
|
|
|
50
50
|
content: "bg-vertical-navigation-group-bg-subtle text-vertical-navigation-group-fg-subtle",
|
|
51
51
|
group: "bg-vertical-navigation-group-bg-subtle text-vertical-navigation-group-fg-subtle"
|
|
52
52
|
},
|
|
53
|
-
|
|
53
|
+
solid: {
|
|
54
54
|
content: "bg-vertical-navigation-group-bg-accent text-vertical-navigation-group-fg-accent",
|
|
55
55
|
group: "bg-vertical-navigation-group-bg-accent text-vertical-navigation-group-fg-accent"
|
|
56
56
|
}
|
|
@@ -58,8 +58,8 @@ const verticalNavigationStyles = tv({
|
|
|
58
58
|
},
|
|
59
59
|
compoundVariants: [
|
|
60
60
|
{
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
appearance: "solid",
|
|
62
|
+
severity: "secondary",
|
|
63
63
|
class: {
|
|
64
64
|
content: "bg-vertical-navigation-group-bg-secondary text-vertical-navigation-group-fg-secondary",
|
|
65
65
|
group: "bg-vertical-navigation-group-bg-secondary text-vertical-navigation-group-fg-secondary"
|
|
@@ -68,8 +68,8 @@ const verticalNavigationStyles = tv({
|
|
|
68
68
|
],
|
|
69
69
|
defaultVariants: {
|
|
70
70
|
size: "md",
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
appearance: "plain",
|
|
72
|
+
severity: "primary"
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
export { verticalNavigationStyles };
|