@simpli-route/apollo-ds 0.1.39 → 0.1.40
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/dist/components/Input/variants.d.ts +1 -1
- package/dist/components/InvisibleDatepicker/variants.d.ts +1 -1
- package/dist/components/InvisibleTimeField/InvisibleTimeField.test.d.ts +1 -0
- package/dist/components/InvisibleTimeField/variants.d.ts +10 -1
- package/dist/components/NumberField/variants.d.ts +1 -1
- package/dist/components/Select/types.d.ts +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es10.js +2 -2
- package/dist/index.es102.js +1 -1
- package/dist/index.es11.js +2 -2
- package/dist/index.es12.js +18 -18
- package/dist/index.es13.js +2 -2
- package/dist/index.es14.js +28 -20
- package/dist/index.es145.js +4 -4
- package/dist/index.es146.js +2 -2
- package/dist/index.es15.js +67 -84
- package/dist/index.es150.js +2 -2
- package/dist/index.es155.js +750 -48
- package/dist/index.es156.js +4 -19
- package/dist/index.es157.js +51 -4
- package/dist/index.es158.js +19 -4
- package/dist/index.es159.js +4 -753
- package/dist/index.es16.js +1 -1
- package/dist/index.es160.js +2 -2
- package/dist/index.es17.js +1 -1
- package/dist/index.es18.js +2 -2
- package/dist/index.es19.js +4 -4
- package/dist/index.es2.js +1 -1
- package/dist/index.es20.js +4 -4
- package/dist/index.es21.js +14 -13
- package/dist/index.es22.js +5 -5
- package/dist/index.es23.js +3 -3
- package/dist/index.es24.js +1 -1
- package/dist/index.es25.js +3 -3
- package/dist/index.es26.js +3 -3
- package/dist/index.es29.js +2 -2
- package/dist/index.es3.js +2 -2
- package/dist/index.es30.js +2 -2
- package/dist/index.es31.js +1 -1
- package/dist/index.es32.js +3 -3
- package/dist/index.es33.js +2 -2
- package/dist/index.es34.js +2 -2
- package/dist/index.es35.js +2 -2
- package/dist/index.es37.js +27 -6
- package/dist/index.es38.js +6 -27
- package/dist/index.es4.js +2 -2
- package/dist/index.es40.js +33 -29
- package/dist/index.es41.js +30 -43
- package/dist/index.es42.js +40 -31
- package/dist/index.es43.js +140 -53
- package/dist/index.es44.js +70 -149
- package/dist/index.es46.js +72 -74
- package/dist/index.es47.js +84 -43
- package/dist/index.es48.js +32 -169
- package/dist/index.es49.js +48 -45
- package/dist/index.es5.js +27 -26
- package/dist/index.es50.js +39 -33
- package/dist/index.es51.js +46 -31
- package/dist/index.es52.js +31 -46
- package/dist/index.es53.js +144 -24
- package/dist/index.es54.js +92 -3
- package/dist/index.es55.js +20 -158
- package/dist/index.es56.js +10 -92
- package/dist/index.es57.js +10 -22
- package/dist/index.es58.js +12 -18
- package/dist/index.es59.js +3 -17
- package/dist/index.es6.js +3 -3
- package/dist/index.es60.js +11 -9
- package/dist/index.es61.js +17 -10
- package/dist/index.es62.js +16 -10
- package/dist/index.es63.js +163 -12
- package/dist/index.es67.js +137 -13
- package/dist/index.es68.js +20 -137
- package/dist/index.es69.js +98 -17
- package/dist/index.es7.js +2 -2
- package/dist/index.es70.js +12 -100
- package/dist/index.es71.js +13 -13
- package/dist/index.es72.js +1 -1
- package/dist/index.es73.js +2 -2
- package/dist/index.es74.js +1 -1
- package/dist/index.es75.js +1 -1
- package/dist/index.es8.js +4 -4
- package/dist/index.es9.js +3 -3
- package/dist/stories/Datepicker.stories.d.ts +1 -1
- package/dist/stories/InvisibleTimeField.stories.d.ts +1 -1
- package/package.json +9 -9
package/dist/index.es43.js
CHANGED
|
@@ -1,86 +1,173 @@
|
|
|
1
|
-
import { cva as
|
|
2
|
-
const t =
|
|
3
|
-
"inline-flex items-center justify-center font-
|
|
1
|
+
import { cva as r } from "class-variance-authority";
|
|
2
|
+
const t = r(
|
|
3
|
+
"inline-flex select-none items-center justify-center text-center text-xs font-semibold leading-6 transition duration-150 ease-in-out focus:outline-none",
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
intent: {
|
|
7
|
+
primary: "bg-primary-500 text-primary-50",
|
|
8
|
+
secondary: "border border-primary-500 bg-primary-50 text-primary-500",
|
|
9
|
+
tertiary: "text-primary-500",
|
|
10
|
+
outline: "border border-primary-500 text-primary-500",
|
|
11
|
+
success: "border bg-success-500 text-success-50",
|
|
12
|
+
error: "border bg-error-500 text-error-50",
|
|
13
|
+
orangeWarning: "border bg-orange-warning-500 text-orange-warning-50",
|
|
14
|
+
yellowWarning: "border bg-yellow-warning-500 text-yellow-warning-900",
|
|
15
|
+
info: "border bg-blue-500 text-blue-50"
|
|
11
16
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
size: {
|
|
18
|
+
xs: "rounded px-3 py-1",
|
|
19
|
+
sm: "rounded px-3 py-2",
|
|
20
|
+
md: "rounded px-4 py-3",
|
|
21
|
+
lg: "rounded-lg px-6 py-4"
|
|
15
22
|
},
|
|
16
23
|
isDisabled: {
|
|
17
|
-
true: "cursor-not-allowed bg-neutral-
|
|
18
|
-
false: ""
|
|
24
|
+
true: "pointer-events-none cursor-not-allowed border-none bg-neutral-400 text-neutral-600"
|
|
19
25
|
},
|
|
20
26
|
isHovered: {
|
|
21
|
-
true: ""
|
|
22
|
-
|
|
27
|
+
true: ""
|
|
28
|
+
},
|
|
29
|
+
isActive: {
|
|
30
|
+
true: ""
|
|
31
|
+
},
|
|
32
|
+
fullWidth: {
|
|
33
|
+
true: "w-full",
|
|
34
|
+
false: "w-fit"
|
|
35
|
+
},
|
|
36
|
+
isLoading: {
|
|
37
|
+
true: "pointer-events-none cursor-not-allowed opacity-70"
|
|
23
38
|
},
|
|
24
39
|
isFocused: {
|
|
25
|
-
true: "",
|
|
40
|
+
true: "focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",
|
|
26
41
|
false: ""
|
|
27
42
|
}
|
|
28
43
|
},
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
intent: "primary",
|
|
46
|
+
size: "md"
|
|
47
|
+
},
|
|
29
48
|
compoundVariants: [
|
|
30
|
-
|
|
49
|
+
/* Hover State */
|
|
50
|
+
{
|
|
51
|
+
intent: "primary",
|
|
52
|
+
isHovered: !0,
|
|
53
|
+
class: "bg-primary-700"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
intent: "secondary",
|
|
57
|
+
isHovered: !0,
|
|
58
|
+
class: "bg-primary-200"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
intent: "tertiary",
|
|
62
|
+
isHovered: !0,
|
|
63
|
+
class: "bg-primary-300 text-primary-800"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
intent: "outline",
|
|
67
|
+
isHovered: !0,
|
|
68
|
+
class: "bg-primary-500 text-primary-50"
|
|
69
|
+
},
|
|
31
70
|
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
isFocused: !1,
|
|
36
|
-
class: "bg-sky-100 text-sky-900"
|
|
71
|
+
intent: "success",
|
|
72
|
+
isHovered: !0,
|
|
73
|
+
class: "bg-success-700 text-neutral-50"
|
|
37
74
|
},
|
|
38
|
-
// Selected state (not disabled)
|
|
39
75
|
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
isFocused: !1,
|
|
44
|
-
class: "bg-sky-500 text-sky-50"
|
|
76
|
+
intent: "error",
|
|
77
|
+
isHovered: !0,
|
|
78
|
+
class: "bg-error-700 text-error-50"
|
|
45
79
|
},
|
|
46
|
-
// Hovered state (not selected, not disabled)
|
|
47
80
|
{
|
|
48
|
-
|
|
49
|
-
isDisabled: !1,
|
|
81
|
+
intent: "orangeWarning",
|
|
50
82
|
isHovered: !0,
|
|
51
|
-
class: "bg-
|
|
83
|
+
class: "bg-orange-warning-700 text-orange-warning-50"
|
|
52
84
|
},
|
|
53
|
-
// Hovered state (selected, not disabled)
|
|
54
85
|
{
|
|
55
|
-
|
|
56
|
-
isDisabled: !1,
|
|
86
|
+
intent: "yellowWarning",
|
|
57
87
|
isHovered: !0,
|
|
58
|
-
class: "bg-
|
|
88
|
+
class: "bg-yellow-warning-700 text-neutral-50"
|
|
59
89
|
},
|
|
60
|
-
// Focused state (not selected, not disabled)
|
|
61
90
|
{
|
|
62
|
-
|
|
63
|
-
|
|
91
|
+
intent: "info",
|
|
92
|
+
isHovered: !0,
|
|
93
|
+
class: "bg-blue-700 text-blue-50"
|
|
94
|
+
},
|
|
95
|
+
/* /Focus State */
|
|
96
|
+
{
|
|
97
|
+
intent: "success",
|
|
64
98
|
isFocused: !0,
|
|
65
|
-
class: "
|
|
99
|
+
class: "border-[1.5px] focus:ring-success-500"
|
|
66
100
|
},
|
|
67
|
-
// Focused state (selected, not disabled)
|
|
68
101
|
{
|
|
69
|
-
|
|
70
|
-
isDisabled: !1,
|
|
102
|
+
intent: "error",
|
|
71
103
|
isFocused: !0,
|
|
72
|
-
class: "
|
|
104
|
+
class: "border-[1.5px] focus:ring-error-500"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
intent: "orangeWarning",
|
|
108
|
+
isFocused: !0,
|
|
109
|
+
class: "border-[1.5px] focus:ring-orange-500"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
intent: "yellowWarning",
|
|
113
|
+
isFocused: !0,
|
|
114
|
+
class: "border-[1.5px] focus:ring-yellow-500"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
intent: "info",
|
|
118
|
+
isFocused: !0,
|
|
119
|
+
class: "border-[1.5px] focus:ring-blue-500"
|
|
120
|
+
},
|
|
121
|
+
/* Active State */
|
|
122
|
+
{
|
|
123
|
+
intent: "primary",
|
|
124
|
+
isActive: !0,
|
|
125
|
+
class: "bg-primary-900"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
intent: "secondary",
|
|
129
|
+
isActive: !0,
|
|
130
|
+
class: "bg-primary-300"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
intent: "tertiary",
|
|
134
|
+
isActive: !0,
|
|
135
|
+
class: "bg-primary-500 text-white"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
intent: "outline",
|
|
139
|
+
isActive: !0,
|
|
140
|
+
class: "border border-primary-500 bg-primary-300 text-primary-500"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
intent: "success",
|
|
144
|
+
isActive: !0,
|
|
145
|
+
class: "border border-transparent bg-success-300 text-success-900"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
intent: "error",
|
|
149
|
+
isActive: !0,
|
|
150
|
+
class: "border border-transparent bg-error-300 text-error-900"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
intent: "orangeWarning",
|
|
154
|
+
isActive: !0,
|
|
155
|
+
class: "border border-transparent bg-orange-warning-300 text-orange-warning-900"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
intent: "yellowWarning",
|
|
159
|
+
isActive: !0,
|
|
160
|
+
class: "border border-transparent bg-yellow-warning-300 text-yellow-warning-900"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
intent: "info",
|
|
164
|
+
isActive: !0,
|
|
165
|
+
class: "border border-transparent bg-blue-200 text-blue-900"
|
|
73
166
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
size: "md",
|
|
77
|
-
isSelected: !1,
|
|
78
|
-
isDisabled: !1,
|
|
79
|
-
isHovered: !1,
|
|
80
|
-
isFocused: !1
|
|
81
|
-
}
|
|
167
|
+
/* /Active State */
|
|
168
|
+
]
|
|
82
169
|
}
|
|
83
170
|
);
|
|
84
171
|
export {
|
|
85
|
-
t as
|
|
172
|
+
t as buttonVariants
|
|
86
173
|
};
|
package/dist/index.es44.js
CHANGED
|
@@ -1,165 +1,86 @@
|
|
|
1
1
|
import { cva as e } from "class-variance-authority";
|
|
2
|
-
const t =
|
|
3
|
-
|
|
4
|
-
intent: "primary",
|
|
5
|
-
isHovered: !0,
|
|
6
|
-
isDisabled: !1,
|
|
7
|
-
isActive: !1,
|
|
8
|
-
class: "bg-primary-100"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
intent: "secondary",
|
|
12
|
-
isHovered: !0,
|
|
13
|
-
isDisabled: !1,
|
|
14
|
-
isActive: !1,
|
|
15
|
-
class: "bg-primary-500 text-primary-50"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
intent: "minimal",
|
|
19
|
-
isHovered: !0,
|
|
20
|
-
isDisabled: !1,
|
|
21
|
-
isActive: !1,
|
|
22
|
-
class: "bg-neutral-200 text-neutral-800"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
intent: "error",
|
|
26
|
-
isHovered: !0,
|
|
27
|
-
isDisabled: !1,
|
|
28
|
-
isActive: !1,
|
|
29
|
-
class: "bg-error-100"
|
|
30
|
-
}
|
|
31
|
-
], r = [
|
|
32
|
-
{
|
|
33
|
-
intent: "primary",
|
|
34
|
-
isActive: !0,
|
|
35
|
-
isDisabled: !1,
|
|
36
|
-
class: "bg-primary-500 text-primary-50"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
intent: "primary",
|
|
40
|
-
isActive: !0,
|
|
41
|
-
isDisabled: !0,
|
|
42
|
-
class: "bg-primary-300 text-primary-100"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
intent: "secondary",
|
|
46
|
-
isActive: !0,
|
|
47
|
-
isDisabled: !1,
|
|
48
|
-
class: "bg-primary-500 text-primary-50"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
intent: "secondary",
|
|
52
|
-
isActive: !0,
|
|
53
|
-
isDisabled: !0,
|
|
54
|
-
class: "bg-primary-100 text-primary-300"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
intent: "minimal",
|
|
58
|
-
isActive: !0,
|
|
59
|
-
isDisabled: !1,
|
|
60
|
-
class: "text-primary-500"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
intent: "minimal",
|
|
64
|
-
isActive: !0,
|
|
65
|
-
isDisabled: !0,
|
|
66
|
-
class: "text-neutral-700"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
intent: "error",
|
|
70
|
-
isActive: !0,
|
|
71
|
-
isDisabled: !1,
|
|
72
|
-
class: "bg-error-700 text-error-50"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
intent: "error",
|
|
76
|
-
isActive: !0,
|
|
77
|
-
isDisabled: !0,
|
|
78
|
-
class: "bg-error-300 text-error-100"
|
|
79
|
-
}
|
|
80
|
-
], i = [
|
|
81
|
-
{
|
|
82
|
-
intent: "primary",
|
|
83
|
-
isDisabled: !0,
|
|
84
|
-
isActive: !1,
|
|
85
|
-
class: "text-neutral-600"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
intent: "primary",
|
|
89
|
-
isDisabled: !0,
|
|
90
|
-
isActive: !0,
|
|
91
|
-
class: "bg-primary-300 text-primary-100"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
intent: "secondary",
|
|
95
|
-
isDisabled: !0,
|
|
96
|
-
isActive: !1,
|
|
97
|
-
class: "bg-neutral-400 text-neutral-600"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
intent: "secondary",
|
|
101
|
-
isDisabled: !0,
|
|
102
|
-
isActive: !0,
|
|
103
|
-
class: "bg-primary-100 text-primary-300"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
intent: "minimal",
|
|
107
|
-
isDisabled: !0,
|
|
108
|
-
isActive: !1,
|
|
109
|
-
class: "text-neutral-600"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
intent: "minimal",
|
|
113
|
-
isDisabled: !0,
|
|
114
|
-
isActive: !0,
|
|
115
|
-
class: "text-neutral-700"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
intent: "error",
|
|
119
|
-
isDisabled: !0,
|
|
120
|
-
isActive: !1,
|
|
121
|
-
class: "text-neutral-600"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
intent: "error",
|
|
125
|
-
isDisabled: !0,
|
|
126
|
-
isActive: !0,
|
|
127
|
-
class: "bg-error-300 text-primary-100"
|
|
128
|
-
}
|
|
129
|
-
], a = e(
|
|
130
|
-
"inline-flex items-center justify-center rounded-lg border border-transparent transition duration-150 ease-in-out focus:outline-none",
|
|
2
|
+
const t = e(
|
|
3
|
+
"inline-flex items-center justify-center font-medium transition-colors duration-200 cursor-pointer outline-none border border-transparent rounded-full",
|
|
131
4
|
{
|
|
132
5
|
variants: {
|
|
133
|
-
intent: {
|
|
134
|
-
primary: "bg-transparent text-primary-500",
|
|
135
|
-
secondary: "bg-primary-200 text-primary-500",
|
|
136
|
-
minimal: "bg-transparent text-neutral-700",
|
|
137
|
-
error: "bg-transparent text-error-500"
|
|
138
|
-
},
|
|
139
6
|
size: {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
7
|
+
xs: "h-4 px-2 py-0.5 text-[10px] gap-1",
|
|
8
|
+
sm: "h-5 px-2 py-0.5 text-xs gap-1",
|
|
9
|
+
md: "h-6 px-3 py-1 text-sm gap-1",
|
|
10
|
+
lg: "h-8 px-3 py-1 text-sm gap-2"
|
|
11
|
+
},
|
|
12
|
+
isSelected: {
|
|
13
|
+
true: "",
|
|
14
|
+
false: ""
|
|
145
15
|
},
|
|
146
16
|
isDisabled: {
|
|
147
|
-
true: "
|
|
17
|
+
true: "cursor-not-allowed bg-neutral-50 text-neutral-600 border-transparent",
|
|
18
|
+
false: ""
|
|
148
19
|
},
|
|
149
20
|
isHovered: {
|
|
150
|
-
true: ""
|
|
151
|
-
|
|
152
|
-
isActive: {
|
|
153
|
-
true: ""
|
|
21
|
+
true: "",
|
|
22
|
+
false: ""
|
|
154
23
|
},
|
|
155
24
|
isFocused: {
|
|
156
|
-
|
|
157
|
-
|
|
25
|
+
true: "",
|
|
26
|
+
false: ""
|
|
158
27
|
}
|
|
159
28
|
},
|
|
160
|
-
compoundVariants: [
|
|
29
|
+
compoundVariants: [
|
|
30
|
+
// Default state (not selected, not disabled)
|
|
31
|
+
{
|
|
32
|
+
isSelected: !1,
|
|
33
|
+
isDisabled: !1,
|
|
34
|
+
isHovered: !1,
|
|
35
|
+
isFocused: !1,
|
|
36
|
+
class: "bg-sky-100 text-sky-900"
|
|
37
|
+
},
|
|
38
|
+
// Selected state (not disabled)
|
|
39
|
+
{
|
|
40
|
+
isSelected: !0,
|
|
41
|
+
isDisabled: !1,
|
|
42
|
+
isHovered: !1,
|
|
43
|
+
isFocused: !1,
|
|
44
|
+
class: "bg-sky-500 text-sky-50"
|
|
45
|
+
},
|
|
46
|
+
// Hovered state (not selected, not disabled)
|
|
47
|
+
{
|
|
48
|
+
isSelected: !1,
|
|
49
|
+
isDisabled: !1,
|
|
50
|
+
isHovered: !0,
|
|
51
|
+
class: "bg-sky-200 text-sky-900"
|
|
52
|
+
},
|
|
53
|
+
// Hovered state (selected, not disabled)
|
|
54
|
+
{
|
|
55
|
+
isSelected: !0,
|
|
56
|
+
isDisabled: !1,
|
|
57
|
+
isHovered: !0,
|
|
58
|
+
class: "bg-sky-500 text-sky-50"
|
|
59
|
+
},
|
|
60
|
+
// Focused state (not selected, not disabled)
|
|
61
|
+
{
|
|
62
|
+
isSelected: !1,
|
|
63
|
+
isDisabled: !1,
|
|
64
|
+
isFocused: !0,
|
|
65
|
+
class: "bg-sky-200 text-sky-900 border-sky-500"
|
|
66
|
+
},
|
|
67
|
+
// Focused state (selected, not disabled)
|
|
68
|
+
{
|
|
69
|
+
isSelected: !0,
|
|
70
|
+
isDisabled: !1,
|
|
71
|
+
isFocused: !0,
|
|
72
|
+
class: "bg-sky-500 text-sky-50 border-primary-500"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
defaultVariants: {
|
|
76
|
+
size: "md",
|
|
77
|
+
isSelected: !1,
|
|
78
|
+
isDisabled: !1,
|
|
79
|
+
isHovered: !1,
|
|
80
|
+
isFocused: !1
|
|
81
|
+
}
|
|
161
82
|
}
|
|
162
83
|
);
|
|
163
84
|
export {
|
|
164
|
-
|
|
85
|
+
t as filterChipVariants
|
|
165
86
|
};
|
package/dist/index.es46.js
CHANGED
|
@@ -1,68 +1,20 @@
|
|
|
1
|
-
import { cva as
|
|
2
|
-
const
|
|
3
|
-
"flex w-
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
|
2
|
+
const r = e(
|
|
3
|
+
"flex w-fit items-center gap-2 rounded-sm border border-transparent bg-transparent transition-colors duration-200",
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
6
6
|
size: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
isHovered: {
|
|
13
|
-
true: ""
|
|
14
|
-
},
|
|
15
|
-
isDisabled: {
|
|
16
|
-
true: "cursor-not-allowed bg-neutral-200 text-neutral-600"
|
|
17
|
-
},
|
|
18
|
-
isReadOnly: {
|
|
19
|
-
true: "cursor-not-allowed"
|
|
20
|
-
},
|
|
21
|
-
validationState: {
|
|
22
|
-
invalid: "border-error-500 text-red-800 placeholder:text-red-800 focus-within:border-error-500 focus-within:ring-error-500 focus:border-error-500 focus:ring-error-500 pr-10",
|
|
23
|
-
valid: "border-success-500 text-success-800 placeholder:text-success-800 focus-within:border-success-500 focus-within:ring-success-500 focus:border-success-500 focus:ring-success-500 pr-10"
|
|
24
|
-
},
|
|
25
|
-
hasIcon: {
|
|
26
|
-
true: "pr-10"
|
|
27
|
-
},
|
|
28
|
-
isFocusVisible: {
|
|
29
|
-
true: ""
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
compoundVariants: [
|
|
33
|
-
{
|
|
34
|
-
isHovered: !0,
|
|
35
|
-
validationState: void 0,
|
|
36
|
-
class: "border-neutral-900"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
isHovered: !0,
|
|
40
|
-
validationState: "invalid",
|
|
41
|
-
class: "border-error-600"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
isHovered: !0,
|
|
45
|
-
validationState: "valid",
|
|
46
|
-
class: "border-success-600"
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
), a = r(
|
|
51
|
-
"w-full border outline-none transition-colors duration-200 rounded-sm text-blue-800",
|
|
52
|
-
{
|
|
53
|
-
variants: {
|
|
54
|
-
size: {
|
|
55
|
-
bodySm: "px-1.5 py-1 text-xs gap-2",
|
|
56
|
-
bodyDefault: "px-1.5 py-1 text-sm gap-2",
|
|
57
|
-
h5: "px-2 py-1 text-base gap-2",
|
|
58
|
-
h3: "px-2 py-1 text-[22px] gap-2"
|
|
7
|
+
bodySm: "px-1.5 py-1",
|
|
8
|
+
bodyDefault: "px-1.5 py-1",
|
|
9
|
+
h5: "px-2 py-1",
|
|
10
|
+
h3: "px-2 py-1"
|
|
59
11
|
},
|
|
60
12
|
state: {
|
|
61
13
|
default: "border-transparent bg-transparent",
|
|
62
14
|
hover: "border-blue-100 bg-transparent",
|
|
63
|
-
active: "!border-primary-500 bg-neutral-50 focus:!border-primary-500 focus:!bg-neutral-50",
|
|
64
|
-
error: "!border-error-500 bg-neutral-50 focus:!border-error-500 focus:!bg-neutral-50",
|
|
65
|
-
disabled: "border-transparent bg-transparent cursor-not-allowed"
|
|
15
|
+
active: "!border-primary-500 !bg-neutral-50 focus-within:!border-primary-500 focus-within:!bg-neutral-50",
|
|
16
|
+
error: "!border-error-500 !bg-neutral-50 focus-within:!border-error-500 focus-within:!bg-neutral-50",
|
|
17
|
+
disabled: "border-transparent bg-transparent cursor-not-allowed opacity-60"
|
|
66
18
|
}
|
|
67
19
|
},
|
|
68
20
|
defaultVariants: {
|
|
@@ -70,7 +22,7 @@ const t = r(
|
|
|
70
22
|
state: "default"
|
|
71
23
|
}
|
|
72
24
|
}
|
|
73
|
-
),
|
|
25
|
+
), a = e("flex items-center outline-none bg-transparent", {
|
|
74
26
|
variants: {
|
|
75
27
|
size: {
|
|
76
28
|
bodySm: "text-xs",
|
|
@@ -82,17 +34,22 @@ const t = r(
|
|
|
82
34
|
defaultVariants: {
|
|
83
35
|
size: "bodyDefault"
|
|
84
36
|
}
|
|
85
|
-
}),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
37
|
+
}), i = e(
|
|
38
|
+
"flex items-center justify-center rounded bg-transparent text-neutral-900 transition-colors hover:bg-neutral-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-1",
|
|
39
|
+
{
|
|
40
|
+
variants: {
|
|
41
|
+
size: {
|
|
42
|
+
bodySm: "h-4 w-4",
|
|
43
|
+
bodyDefault: "h-5 w-5",
|
|
44
|
+
h5: "h-6 w-6",
|
|
45
|
+
h3: "h-7 w-7"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
defaultVariants: {
|
|
49
|
+
size: "bodyDefault"
|
|
90
50
|
}
|
|
91
|
-
},
|
|
92
|
-
defaultVariants: {
|
|
93
|
-
state: "default"
|
|
94
51
|
}
|
|
95
|
-
|
|
52
|
+
), s = e("flex w-full gap-1", {
|
|
96
53
|
variants: {
|
|
97
54
|
size: {
|
|
98
55
|
bodySm: "gap-1",
|
|
@@ -109,11 +66,52 @@ const t = r(
|
|
|
109
66
|
size: "bodyDefault",
|
|
110
67
|
orientation: "vertical"
|
|
111
68
|
}
|
|
112
|
-
})
|
|
69
|
+
}), n = e(
|
|
70
|
+
"my-0.5 cursor-pointer rounded py-1.5 text-center text-sm outline-none transition-colors text-neutral-700",
|
|
71
|
+
{
|
|
72
|
+
variants: {
|
|
73
|
+
padding: {
|
|
74
|
+
default: "px-2",
|
|
75
|
+
compact: "px-1"
|
|
76
|
+
},
|
|
77
|
+
isSelected: {
|
|
78
|
+
true: "bg-primary-50 text-primary-600",
|
|
79
|
+
false: ""
|
|
80
|
+
},
|
|
81
|
+
isFocused: {
|
|
82
|
+
true: "",
|
|
83
|
+
false: ""
|
|
84
|
+
},
|
|
85
|
+
isHovered: {
|
|
86
|
+
true: "",
|
|
87
|
+
false: ""
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
defaultVariants: {
|
|
91
|
+
padding: "default",
|
|
92
|
+
isSelected: !1,
|
|
93
|
+
isFocused: !1,
|
|
94
|
+
isHovered: !1
|
|
95
|
+
},
|
|
96
|
+
compoundVariants: [
|
|
97
|
+
{
|
|
98
|
+
isSelected: !1,
|
|
99
|
+
isFocused: !0,
|
|
100
|
+
class: "bg-neutral-100"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
isSelected: !1,
|
|
104
|
+
isFocused: !1,
|
|
105
|
+
isHovered: !0,
|
|
106
|
+
class: "bg-neutral-300"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
);
|
|
113
111
|
export {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
112
|
+
s as invisibleTimeFieldContainerVariants,
|
|
113
|
+
r as invisibleTimeFieldGroupVariants,
|
|
114
|
+
a as invisibleTimeFieldInputVariants,
|
|
115
|
+
i as timeFieldButtonVariants,
|
|
116
|
+
n as timePickerListItemVariants
|
|
119
117
|
};
|