@simpli-route/apollo-ds 0.1.81 → 0.1.83
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/InvisibleSelect/types.d.ts +5 -0
- package/dist/components/SearchField/utils.d.ts +21 -0
- package/dist/components/SelectInput/ListBox.d.ts +6 -2
- package/dist/components/SelectInput/PopoverContent.d.ts +3 -1
- package/dist/components/SelectInput/types.d.ts +5 -5
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs127.js +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs132.js +1 -1
- package/dist/index.cjs133.js +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs139.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs154.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.cjs160.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs170.js +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs19.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.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.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.cjs37.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs4.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.cjs45.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.cjs5.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.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.cjs64.js +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs66.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.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.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs84.js +1 -1
- package/dist/index.cjs85.js +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs87.js +1 -3
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs93.js +3 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.es10.js +2 -2
- package/dist/index.es100.js +45 -7
- package/dist/index.es101.js +19 -18
- package/dist/index.es102.js +18 -147
- package/dist/index.es105.js +1 -1
- package/dist/index.es106.js +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es12.js +3 -3
- package/dist/index.es123.js +51 -2
- package/dist/index.es124.js +30 -2
- package/dist/index.es125.js +4 -43
- package/dist/index.es126.js +26 -30
- package/dist/index.es127.js +2 -5
- package/dist/index.es128.js +8 -4
- package/dist/index.es129.js +340 -3
- package/dist/index.es13.js +3 -3
- package/dist/index.es130.js +164 -17
- package/dist/index.es132.js +2 -4
- package/dist/index.es133.js +4 -28
- package/dist/index.es134.js +5 -2
- package/dist/index.es135.js +4 -8
- package/dist/index.es136.js +3 -340
- package/dist/index.es137.js +17 -164
- package/dist/index.es138.js +15 -15
- package/dist/index.es139.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es142.js +3 -3
- package/dist/index.es146.js +2 -2
- package/dist/index.es147.js +17 -7
- package/dist/index.es148.js +191 -1064
- package/dist/index.es149.js +16 -4
- package/dist/index.es15.js +42 -52
- package/dist/index.es150.js +347 -21
- package/dist/index.es151.js +19 -187
- package/dist/index.es152.js +11 -8
- package/dist/index.es153.js +145 -344
- package/dist/index.es154.js +11 -18
- package/dist/index.es155.js +9 -11
- package/dist/index.es156.js +201 -144
- package/dist/index.es157.js +64 -13
- package/dist/index.es158.js +10 -207
- package/dist/index.es159.js +4 -68
- package/dist/index.es16.js +1 -1
- package/dist/index.es160.js +4 -14
- package/dist/index.es161.js +2 -2
- package/dist/index.es162.js +2 -2
- package/dist/index.es163.js +2 -2
- package/dist/index.es164.js +2 -2
- package/dist/index.es165.js +2 -2
- package/dist/index.es166.js +2 -2
- package/dist/index.es167.js +2 -2
- package/dist/index.es168.js +2 -2
- package/dist/index.es169.js +2 -2
- package/dist/index.es17.js +1 -1
- package/dist/index.es170.js +2 -2
- package/dist/index.es171.js +1063 -2
- package/dist/index.es19.js +1 -1
- package/dist/index.es20.js +68 -66
- package/dist/index.es21.js +1 -1
- package/dist/index.es22.js +2 -2
- package/dist/index.es23.js +1 -1
- package/dist/index.es26.js +1 -1
- package/dist/index.es27.js +2 -2
- package/dist/index.es28.js +3 -3
- package/dist/index.es29.js +23 -23
- package/dist/index.es30.js +1 -1
- package/dist/index.es31.js +7 -7
- package/dist/index.es32.js +77 -76
- package/dist/index.es33.js +2 -2
- package/dist/index.es34.js +1 -1
- package/dist/index.es37.js +3 -3
- package/dist/index.es38.js +3 -3
- package/dist/index.es39.js +3 -3
- package/dist/index.es4.js +3 -3
- package/dist/index.es41.js +1 -1
- package/dist/index.es42.js +1 -1
- package/dist/index.es43.js +1 -1
- package/dist/index.es45.js +1 -1
- package/dist/index.es46.js +1 -1
- package/dist/index.es47.js +1 -1
- package/dist/index.es48.js +1 -1
- package/dist/index.es5.js +2 -2
- package/dist/index.es52.js +29 -33
- package/dist/index.es53.js +43 -30
- package/dist/index.es54.js +4 -43
- package/dist/index.es55.js +39 -43
- package/dist/index.es56.js +112 -4
- package/dist/index.es57.js +116 -78
- package/dist/index.es58.js +43 -170
- package/dist/index.es59.js +90 -59
- package/dist/index.es60.js +89 -102
- package/dist/index.es61.js +26 -65
- package/dist/index.es62.js +163 -3
- package/dist/index.es63.js +69 -13
- package/dist/index.es64.js +17 -149
- package/dist/index.es65.js +16 -129
- package/dist/index.es66.js +15 -114
- package/dist/index.es67.js +26 -106
- package/dist/index.es68.js +169 -32
- package/dist/index.es69.js +98 -7
- package/dist/index.es70.js +102 -89
- package/dist/index.es71.js +3 -59
- package/dist/index.es72.js +14 -146
- package/dist/index.es73.js +88 -65
- package/dist/index.es74.js +79 -49
- package/dist/index.es75.js +27 -86
- package/dist/index.es76.js +8 -22
- package/dist/index.es77.js +45 -149
- package/dist/index.es78.js +159 -40
- package/dist/index.es79.js +90 -38
- package/dist/index.es8.js +1 -1
- package/dist/index.es80.js +84 -10
- package/dist/index.es81.js +93 -12
- package/dist/index.es82.js +22 -10
- package/dist/index.es83.js +10 -18
- package/dist/index.es84.js +11 -16
- package/dist/index.es85.js +10 -16
- package/dist/index.es86.js +7 -13
- package/dist/index.es87.js +16 -153
- package/dist/index.es88.js +149 -12
- package/dist/index.es89.js +100 -6
- package/dist/index.es9.js +24 -24
- package/dist/index.es90.js +11 -40
- package/dist/index.es91.js +79 -20
- package/dist/index.es92.js +13 -79
- package/dist/index.es93.js +151 -97
- package/dist/index.es94.js +12 -13
- package/dist/index.es95.js +6 -18
- package/dist/index.es96.js +41 -19
- package/dist/index.es97.js +20 -10
- package/dist/index.es98.js +9 -9
- package/dist/index.es99.js +10 -45
- package/dist/stories/FilterButton.stories.d.ts +16 -0
- package/dist/stories/InvisibleSelect.stories.d.ts +1 -0
- package/dist/stories/RangeCalendar.stories.d.ts +13 -0
- package/dist/stories/SelectInput.stories.d.ts +1 -3
- package/package.json +1 -1
package/dist/index.es68.js
CHANGED
|
@@ -1,36 +1,173 @@
|
|
|
1
1
|
import { cva as r } from "class-variance-authority";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
intent: {
|
|
7
|
+
primary: "bg-primary-500 border border-transparent text-primary-50",
|
|
8
|
+
secondary: "border border-primary-500 bg-primary-50 text-primary-500",
|
|
9
|
+
tertiary: "text-primary-500 border border-transparent",
|
|
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"
|
|
16
|
+
},
|
|
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"
|
|
22
|
+
},
|
|
23
|
+
isDisabled: {
|
|
24
|
+
true: "pointer-events-none cursor-not-allowed border border-transparent bg-neutral-400 text-neutral-600"
|
|
25
|
+
},
|
|
26
|
+
isHovered: {
|
|
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"
|
|
38
|
+
},
|
|
39
|
+
isFocused: {
|
|
40
|
+
true: "focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",
|
|
41
|
+
false: ""
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
intent: "primary",
|
|
46
|
+
size: "md"
|
|
47
|
+
},
|
|
48
|
+
compoundVariants: [
|
|
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
|
+
},
|
|
70
|
+
{
|
|
71
|
+
intent: "success",
|
|
72
|
+
isHovered: !0,
|
|
73
|
+
class: "bg-success-700 text-neutral-50"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
intent: "error",
|
|
77
|
+
isHovered: !0,
|
|
78
|
+
class: "bg-error-700 text-error-50"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
intent: "orangeWarning",
|
|
82
|
+
isHovered: !0,
|
|
83
|
+
class: "bg-orange-warning-700 text-orange-warning-50"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
intent: "yellowWarning",
|
|
87
|
+
isHovered: !0,
|
|
88
|
+
class: "bg-yellow-warning-700 text-neutral-50"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
intent: "info",
|
|
92
|
+
isHovered: !0,
|
|
93
|
+
class: "bg-blue-700 text-blue-50"
|
|
94
|
+
},
|
|
95
|
+
/* /Focus State */
|
|
96
|
+
{
|
|
97
|
+
intent: "success",
|
|
98
|
+
isFocused: !0,
|
|
99
|
+
class: "border-[1.5px] focus:ring-success-500"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
intent: "error",
|
|
103
|
+
isFocused: !0,
|
|
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"
|
|
166
|
+
}
|
|
167
|
+
/* /Active State */
|
|
168
|
+
]
|
|
16
169
|
}
|
|
17
|
-
|
|
18
|
-
variants: {
|
|
19
|
-
variant: {
|
|
20
|
-
primary: "bg-primary-500",
|
|
21
|
-
success: "bg-success-500",
|
|
22
|
-
error: "bg-error-500",
|
|
23
|
-
yellow: "bg-yellow-500",
|
|
24
|
-
yellowWarning: "bg-yellow-warning-500",
|
|
25
|
-
orangeWarning: "bg-orange-warning-500",
|
|
26
|
-
sky: "bg-sky-500"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
variant: "primary"
|
|
31
|
-
}
|
|
32
|
-
});
|
|
170
|
+
);
|
|
33
171
|
export {
|
|
34
|
-
|
|
35
|
-
g as progressFillVariants
|
|
172
|
+
t as buttonVariants
|
|
36
173
|
};
|
package/dist/index.es69.js
CHANGED
|
@@ -1,10 +1,101 @@
|
|
|
1
1
|
import { cva as e } from "class-variance-authority";
|
|
2
|
-
const
|
|
3
|
-
"flex
|
|
4
|
-
|
|
2
|
+
const r = e(
|
|
3
|
+
"flex w-full items-center justify-between gap-2 py-1 rounded border bg-neutral-50 text-xs font-normal text-primary-900 outline-none transition-all duration-150",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
size: {
|
|
7
|
+
xs: "min-h-8 px-3",
|
|
8
|
+
sm: "min-h-10 px-3",
|
|
9
|
+
md: "min-h-12 px-4",
|
|
10
|
+
lg: "min-h-14 px-4"
|
|
11
|
+
},
|
|
12
|
+
isDisabled: {
|
|
13
|
+
true: "cursor-not-allowed bg-neutral-200 border-none",
|
|
14
|
+
false: ""
|
|
15
|
+
},
|
|
16
|
+
isHovered: {
|
|
17
|
+
true: "",
|
|
18
|
+
false: ""
|
|
19
|
+
},
|
|
20
|
+
isFocusVisible: {
|
|
21
|
+
true: "",
|
|
22
|
+
false: ""
|
|
23
|
+
},
|
|
24
|
+
validationState: {
|
|
25
|
+
invalid: "border-error-500 focus:border-error-500 focus:ring-error-500",
|
|
26
|
+
valid: "border-success-500 focus:border-success-500 focus:ring-success-500"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
compoundVariants: [
|
|
30
|
+
{
|
|
31
|
+
isDisabled: !1,
|
|
32
|
+
isHovered: !1,
|
|
33
|
+
isFocusVisible: !1,
|
|
34
|
+
validationState: void 0,
|
|
35
|
+
class: "border-neutral-500"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
isDisabled: !1,
|
|
39
|
+
isHovered: !0,
|
|
40
|
+
isFocusVisible: !1,
|
|
41
|
+
validationState: void 0,
|
|
42
|
+
class: "border-neutral-800"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
isDisabled: !1,
|
|
46
|
+
isFocusVisible: !0,
|
|
47
|
+
validationState: void 0,
|
|
48
|
+
class: "border-2 border-primary-500"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
isHovered: !0,
|
|
52
|
+
validationState: "invalid",
|
|
53
|
+
class: "border-error-600"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
isHovered: !0,
|
|
57
|
+
validationState: "valid",
|
|
58
|
+
class: "border-success-600"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
defaultVariants: {
|
|
62
|
+
size: "xs",
|
|
63
|
+
isDisabled: !1,
|
|
64
|
+
isHovered: !1,
|
|
65
|
+
isFocusVisible: !1,
|
|
66
|
+
validationState: void 0
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
e(
|
|
71
|
+
"flex items-center gap-1 rounded bg-primary-100 font-normal text-primary-800",
|
|
72
|
+
{
|
|
73
|
+
variants: {
|
|
74
|
+
size: {
|
|
75
|
+
xs: "px-1.5 py-0.5 text-[10px]",
|
|
76
|
+
sm: "px-2 py-1 text-xs",
|
|
77
|
+
md: "px-2.5 py-1 text-sm",
|
|
78
|
+
lg: "px-3 py-1.5 text-base"
|
|
79
|
+
},
|
|
80
|
+
isDisabled: {
|
|
81
|
+
true: "bg-neutral-50 text-neutral-600",
|
|
82
|
+
false: ""
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
defaultVariants: {
|
|
86
|
+
isDisabled: !1,
|
|
87
|
+
size: "xs"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
const a = e(
|
|
92
|
+
"w-[--trigger-width] overflow-auto rounded border border-neutral-300 bg-white shadow-lg outline-none",
|
|
93
|
+
{
|
|
94
|
+
variants: {},
|
|
95
|
+
defaultVariants: {}
|
|
96
|
+
}
|
|
97
|
+
);
|
|
5
98
|
export {
|
|
6
|
-
r as
|
|
7
|
-
|
|
8
|
-
n as rangeCalendarHeaderVariants,
|
|
9
|
-
a as rangeCalendarHeadingVariants
|
|
99
|
+
r as selectInputButtonVariants,
|
|
100
|
+
a as selectInputPopoverVariants
|
|
10
101
|
};
|
package/dist/index.es70.js
CHANGED
|
@@ -1,119 +1,132 @@
|
|
|
1
|
-
import { cva as
|
|
2
|
-
const
|
|
3
|
-
"
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
|
2
|
+
const r = e(
|
|
3
|
+
"group inline-flex select-none items-center justify-center gap-1 text-center font-semibold text-xs transition duration-150 leading-6 ease-in-out focus:outline-none",
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
6
6
|
size: {
|
|
7
|
-
xs: "py-1",
|
|
8
|
-
sm: "py-2",
|
|
9
|
-
md: "py-3",
|
|
10
|
-
lg: "py-4"
|
|
7
|
+
xs: "rounded px-3 py-1",
|
|
8
|
+
sm: "rounded px-3 py-2",
|
|
9
|
+
md: "rounded px-4 py-3",
|
|
10
|
+
lg: "rounded-lg px-6 py-4"
|
|
11
11
|
},
|
|
12
|
-
|
|
13
|
-
true: ""
|
|
14
|
-
|
|
15
|
-
isDisabled: {
|
|
16
|
-
true: "cursor-not-allowed bg-neutral-200 text-neutral-600"
|
|
12
|
+
isActive: {
|
|
13
|
+
true: "bg-primary-50 text-primary-500",
|
|
14
|
+
false: "bg-transparent text-primary-500"
|
|
17
15
|
},
|
|
18
|
-
|
|
19
|
-
true: "
|
|
16
|
+
isHovered: {
|
|
17
|
+
true: "",
|
|
18
|
+
false: ""
|
|
20
19
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
isFocused: {
|
|
21
|
+
true: "",
|
|
22
|
+
false: ""
|
|
24
23
|
},
|
|
25
|
-
|
|
26
|
-
true: "
|
|
24
|
+
isPressed: {
|
|
25
|
+
true: "",
|
|
26
|
+
false: ""
|
|
27
27
|
},
|
|
28
|
-
|
|
29
|
-
true: ""
|
|
28
|
+
isDisabled: {
|
|
29
|
+
true: "cursor-not-allowed",
|
|
30
|
+
false: ""
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
compoundVariants: [
|
|
34
|
+
// Inactive states
|
|
33
35
|
{
|
|
36
|
+
isActive: !1,
|
|
34
37
|
isHovered: !0,
|
|
35
|
-
|
|
36
|
-
class: "
|
|
38
|
+
isDisabled: !1,
|
|
39
|
+
class: "bg-primary-50"
|
|
37
40
|
},
|
|
38
41
|
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
isActive: !1,
|
|
43
|
+
isFocused: !0,
|
|
44
|
+
isDisabled: !1,
|
|
45
|
+
class: "bg-primary-50 border border-primary-500"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
isActive: !1,
|
|
49
|
+
isPressed: !0,
|
|
50
|
+
isDisabled: !1,
|
|
51
|
+
class: "bg-primary-50 border border-primary-500"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
isActive: !1,
|
|
55
|
+
isDisabled: !0,
|
|
56
|
+
class: "bg-neutral-50 text-neutral-600"
|
|
42
57
|
},
|
|
58
|
+
// Active states
|
|
43
59
|
{
|
|
60
|
+
isActive: !0,
|
|
44
61
|
isHovered: !0,
|
|
45
|
-
|
|
46
|
-
class: "
|
|
62
|
+
isDisabled: !1,
|
|
63
|
+
class: "bg-primary-100"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
isActive: !0,
|
|
67
|
+
isFocused: !0,
|
|
68
|
+
isDisabled: !1,
|
|
69
|
+
class: "bg-primary-100 border border-primary-500"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
isActive: !0,
|
|
73
|
+
isPressed: !0,
|
|
74
|
+
isDisabled: !1,
|
|
75
|
+
class: "bg-primary-100 border border-primary-500"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
isActive: !0,
|
|
79
|
+
isDisabled: !0,
|
|
80
|
+
class: "bg-neutral-100 text-neutral-600"
|
|
47
81
|
}
|
|
48
|
-
]
|
|
82
|
+
],
|
|
83
|
+
defaultVariants: {
|
|
84
|
+
size: "md",
|
|
85
|
+
isActive: !1,
|
|
86
|
+
isHovered: !1,
|
|
87
|
+
isFocused: !1,
|
|
88
|
+
isPressed: !1,
|
|
89
|
+
isDisabled: !1
|
|
90
|
+
}
|
|
49
91
|
}
|
|
50
|
-
),
|
|
51
|
-
"
|
|
92
|
+
), i = e(
|
|
93
|
+
"inline-flex items-center justify-center w-4 h-4 rounded-full text-xs p-0.5 font-semibold ml-0.5",
|
|
52
94
|
{
|
|
53
95
|
variants: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
96
|
+
isActive: {
|
|
97
|
+
true: "bg-primary-500 text-primary-50",
|
|
98
|
+
false: ""
|
|
99
|
+
},
|
|
100
|
+
isHovered: {
|
|
101
|
+
true: "",
|
|
102
|
+
false: ""
|
|
59
103
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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"
|
|
104
|
+
isDisabled: {
|
|
105
|
+
true: "bg-neutral-400 text-neutral-50",
|
|
106
|
+
false: ""
|
|
66
107
|
}
|
|
67
108
|
},
|
|
109
|
+
compoundVariants: [
|
|
110
|
+
{
|
|
111
|
+
isActive: !0,
|
|
112
|
+
isHovered: !0,
|
|
113
|
+
isDisabled: !1,
|
|
114
|
+
class: "bg-primary-500 text-primary-100"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
isActive: !0,
|
|
118
|
+
isDisabled: !0,
|
|
119
|
+
class: "bg-neutral-400 text-neutral-50"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
68
122
|
defaultVariants: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
), s = r("font-normal text-neutral-800 ml-0.5", {
|
|
74
|
-
variants: {
|
|
75
|
-
size: {
|
|
76
|
-
bodySm: "text-xs",
|
|
77
|
-
bodyDefault: "text-sm",
|
|
78
|
-
h5: "text-base",
|
|
79
|
-
h3: "text-[22px]"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
defaultVariants: {
|
|
83
|
-
size: "bodyDefault"
|
|
84
|
-
}
|
|
85
|
-
}), o = r("text-xs font-normal", {
|
|
86
|
-
variants: {
|
|
87
|
-
state: {
|
|
88
|
-
default: "text-neutral-600",
|
|
89
|
-
error: "text-error-800"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
defaultVariants: {
|
|
93
|
-
state: "default"
|
|
94
|
-
}
|
|
95
|
-
}), i = r("flex w-full gap-1", {
|
|
96
|
-
variants: {
|
|
97
|
-
size: {
|
|
98
|
-
bodySm: "gap-1",
|
|
99
|
-
bodyDefault: "gap-1",
|
|
100
|
-
h5: "gap-1",
|
|
101
|
-
h3: "gap-1"
|
|
102
|
-
},
|
|
103
|
-
orientation: {
|
|
104
|
-
vertical: "flex-col",
|
|
105
|
-
horizontal: "flex-row items-center"
|
|
123
|
+
isActive: !1,
|
|
124
|
+
isHovered: !1,
|
|
125
|
+
isDisabled: !1
|
|
106
126
|
}
|
|
107
|
-
},
|
|
108
|
-
defaultVariants: {
|
|
109
|
-
size: "bodyDefault",
|
|
110
|
-
orientation: "vertical"
|
|
111
127
|
}
|
|
112
|
-
|
|
128
|
+
);
|
|
113
129
|
export {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
i as invisibleInputContainerVariants,
|
|
117
|
-
s as invisibleInputLabelVariants,
|
|
118
|
-
a as invisibleInputVariants
|
|
130
|
+
i as filterButtonBadgeVariants,
|
|
131
|
+
r as filterButtonVariants
|
|
119
132
|
};
|
package/dist/index.es71.js
CHANGED
|
@@ -1,61 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
variants: {}
|
|
4
|
-
}), i = e(
|
|
5
|
-
"group flex cursor-pointer items-center justify-between rounded-sm p-2 text-sm text-neutral-700 outline-none hover:bg-primary-100 hover:text-primary-500",
|
|
6
|
-
{
|
|
7
|
-
variants: {
|
|
8
|
-
isFocused: {
|
|
9
|
-
true: "bg-primary-100 text-primary-500"
|
|
10
|
-
},
|
|
11
|
-
isSelected: {
|
|
12
|
-
true: "bg-primary-100 text-primary-500"
|
|
13
|
-
},
|
|
14
|
-
isDisabled: {
|
|
15
|
-
true: ""
|
|
16
|
-
},
|
|
17
|
-
isCheckValue: {
|
|
18
|
-
true: "bg-primary-100 text-primary-500"
|
|
19
|
-
},
|
|
20
|
-
hideDisabledItems: {
|
|
21
|
-
true: ""
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
compoundVariants: [
|
|
25
|
-
{
|
|
26
|
-
isDisabled: !0,
|
|
27
|
-
isFocused: !1,
|
|
28
|
-
isSelected: !1,
|
|
29
|
-
class: "text-neutral-400 cursor-not-allowed"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
isSelected: !0,
|
|
33
|
-
hideDisabledItems: !0,
|
|
34
|
-
class: "bg-transparent"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
), a = e(
|
|
39
|
-
"relative flex w-full flex-wrap items-start gap-1 rounded-md border border-neutral-500 bg-white px-4 text-base leading-6 transition-colors focus-within:border-primary-500 focus-within:ring-1 focus-within:ring-primary-500 pr-10",
|
|
40
|
-
{
|
|
41
|
-
variants: {
|
|
42
|
-
size: {
|
|
43
|
-
xs: "min-h-8 py-1",
|
|
44
|
-
sm: "min-h-10 py-2",
|
|
45
|
-
md: "min-h-12 py-3",
|
|
46
|
-
lg: "min-h-14 py-4"
|
|
47
|
-
},
|
|
48
|
-
isDisabled: {
|
|
49
|
-
true: "cursor-not-allowed bg-neutral-200 text-neutral-600"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
defaultVariants: {
|
|
53
|
-
size: "md"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
);
|
|
1
|
+
import { createContext as t } from "react";
|
|
2
|
+
const e = t({});
|
|
57
3
|
export {
|
|
58
|
-
|
|
59
|
-
t as popoverVariants,
|
|
60
|
-
i as searchOptionVariants
|
|
4
|
+
e as TooltipContext
|
|
61
5
|
};
|