@simpli-route/apollo-ds 0.1.49 → 0.1.50
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/FilterTypeChip/FilterTypeChip.d.ts +1 -1
- package/dist/components/FilterTypeChip/types.d.ts +11 -0
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs104.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.cjs15.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.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs3.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.cjs36.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.cjs43.js +1 -1
- package/dist/index.cjs44.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.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.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.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.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.cjs9.js +1 -1
- package/dist/index.es10.js +3 -3
- package/dist/index.es104.js +1 -1
- package/dist/index.es11.js +89 -67
- package/dist/index.es12.js +2 -2
- package/dist/index.es13.js +2 -2
- package/dist/index.es14.js +2 -2
- package/dist/index.es15.js +3 -3
- package/dist/index.es16.js +4 -4
- package/dist/index.es17.js +2 -2
- package/dist/index.es18.js +4 -4
- package/dist/index.es19.js +2 -2
- package/dist/index.es2.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es22.js +2 -2
- package/dist/index.es23.js +4 -4
- package/dist/index.es24.js +4 -4
- package/dist/index.es25.js +23 -23
- package/dist/index.es26.js +5 -5
- package/dist/index.es27.js +4 -4
- package/dist/index.es28.js +1 -1
- package/dist/index.es29.js +3 -3
- package/dist/index.es3.js +2 -2
- package/dist/index.es32.js +5 -5
- package/dist/index.es33.js +4 -4
- package/dist/index.es34.js +4 -4
- package/dist/index.es35.js +3 -3
- package/dist/index.es36.js +2 -2
- package/dist/index.es37.js +2 -2
- package/dist/index.es38.js +2 -2
- package/dist/index.es4.js +2 -2
- package/dist/index.es40.js +31 -6
- package/dist/index.es41.js +6 -31
- package/dist/index.es43.js +30 -167
- package/dist/index.es44.js +18 -43
- package/dist/index.es45.js +16 -33
- package/dist/index.es46.js +15 -79
- package/dist/index.es47.js +63 -128
- package/dist/index.es48.js +44 -48
- package/dist/index.es49.js +126 -18
- package/dist/index.es5.js +20 -20
- package/dist/index.es50.js +107 -18
- package/dist/index.es51.js +154 -128
- package/dist/index.es52.js +23 -116
- package/dist/index.es53.js +59 -90
- package/dist/index.es54.js +3 -114
- package/dist/index.es55.js +25 -31
- package/dist/index.es56.js +112 -84
- package/dist/index.es57.js +118 -22
- package/dist/index.es58.js +115 -3
- package/dist/index.es59.js +85 -131
- package/dist/index.es6.js +3 -3
- package/dist/index.es60.js +28 -86
- package/dist/index.es61.js +40 -30
- package/dist/index.es62.js +159 -17
- package/dist/index.es63.js +90 -15
- package/dist/index.es64.js +21 -15
- package/dist/index.es65.js +26 -61
- package/dist/index.es66.js +161 -86
- package/dist/index.es67.js +13 -10
- package/dist/index.es68.js +87 -11
- package/dist/index.es69.js +10 -163
- package/dist/index.es7.js +2 -2
- package/dist/index.es70.js +10 -13
- package/dist/index.es71.js +12 -10
- package/dist/index.es72.js +1 -1
- package/dist/index.es74.js +40 -7
- package/dist/index.es75.js +19 -18
- package/dist/index.es76.js +18 -147
- package/dist/index.es77.js +7 -40
- package/dist/index.es78.js +17 -9
- package/dist/index.es79.js +149 -10
- package/dist/index.es8.js +4 -4
- package/dist/index.es80.js +10 -45
- package/dist/index.es81.js +10 -19
- package/dist/index.es82.js +42 -17
- package/dist/index.es9.js +5 -5
- package/dist/stories/FilterTypeChip.stories.d.ts +1 -1
- package/dist/style.css +7 -0
- package/package.json +1 -1
package/dist/index.es47.js
CHANGED
|
@@ -1,132 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// Inactive states
|
|
35
|
-
{
|
|
36
|
-
isActive: !1,
|
|
37
|
-
isHovered: !0,
|
|
38
|
-
isDisabled: !1,
|
|
39
|
-
class: "bg-primary-50"
|
|
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"
|
|
57
|
-
},
|
|
58
|
-
// Active states
|
|
59
|
-
{
|
|
60
|
-
isActive: !0,
|
|
61
|
-
isHovered: !0,
|
|
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"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
defaultVariants: {
|
|
84
|
-
size: "md",
|
|
85
|
-
isActive: !1,
|
|
86
|
-
isHovered: !1,
|
|
87
|
-
isFocused: !1,
|
|
88
|
-
isPressed: !1,
|
|
89
|
-
isDisabled: !1
|
|
1
|
+
import { j as e } from "./index.es39.js";
|
|
2
|
+
import { CrossCircleIcon as m } from "./index.es40.js";
|
|
3
|
+
import { Autocomplete as d, SearchField as p, Input as b, Button as h, ListBox as f, ListBoxItem as g } from "react-aria-components";
|
|
4
|
+
import { cn as n } from "./index.es41.js";
|
|
5
|
+
const v = ({
|
|
6
|
+
enableSearch: a,
|
|
7
|
+
contains: o,
|
|
8
|
+
classNameSearchField: i,
|
|
9
|
+
classNameSearchFieldInput: c,
|
|
10
|
+
placeholderSearch: u,
|
|
11
|
+
items: x
|
|
12
|
+
}) => /* @__PURE__ */ e.jsxs(d, { filter: o, disableAutoFocusFirst: !0, disableVirtualFocus: !0, children: [
|
|
13
|
+
a ? /* @__PURE__ */ e.jsxs(
|
|
14
|
+
p,
|
|
15
|
+
{
|
|
16
|
+
"aria-label": "Search",
|
|
17
|
+
className: n(
|
|
18
|
+
"group m-1 flex items-center rounded border border-neutral-500 bg-neutral-50",
|
|
19
|
+
i
|
|
20
|
+
),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ e.jsx(
|
|
23
|
+
b,
|
|
24
|
+
{
|
|
25
|
+
placeholder: u,
|
|
26
|
+
className: n(
|
|
27
|
+
"h-8 min-w-0 flex-1 rounded border-none p-1 text-sm font-normal text-neutral-800 outline-none outline-0 placeholder:text-neutral-700 focus:outline-none focus:ring-0 [&::-webkit-search-cancel-button]:hidden",
|
|
28
|
+
c
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
/* @__PURE__ */ e.jsx(h, { className: "pressed:bg-black/10 mr-1 flex w-6 items-center justify-center rounded-full border-0 bg-transparent p-1 text-center text-sm text-neutral-600 transition hover:bg-black/[5%] group-data-[empty]:invisible", children: /* @__PURE__ */ e.jsx(m, { "aria-hidden": !0, className: "size-4" }) })
|
|
33
|
+
]
|
|
90
34
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
35
|
+
) : null,
|
|
36
|
+
/* @__PURE__ */ e.jsx(f, { className: "lg:custom-scrollbar max-h-[260px] overflow-auto outline-none", items: x, children: (r) => /* @__PURE__ */ e.jsx(
|
|
37
|
+
g,
|
|
38
|
+
{
|
|
39
|
+
id: r.value,
|
|
40
|
+
textValue: r.label,
|
|
41
|
+
isDisabled: r.isDisabled,
|
|
42
|
+
className: ({ isSelected: t, isFocusVisible: s, isHovered: l }) => n(
|
|
43
|
+
"flex cursor-pointer items-center justify-between px-3 py-2 text-xs font-normal outline-none",
|
|
44
|
+
t ? "bg-primary-100 text-primary-500" : "text-primary-900",
|
|
45
|
+
l && "bg-primary-50 text-primary-500",
|
|
46
|
+
(l || s) && !t && "bg-primary-50",
|
|
47
|
+
(l || s) && t && "bg-primary-200"
|
|
48
|
+
),
|
|
49
|
+
children: ({ isSelected: t }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
50
|
+
/* @__PURE__ */ e.jsx("span", { children: r.label }),
|
|
51
|
+
/* @__PURE__ */ e.jsx("span", { className: "flex w-5 items-center", children: t && /* @__PURE__ */ e.jsx("svg", { width: "14", height: "13", viewBox: "0 0 14 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e.jsx(
|
|
52
|
+
"path",
|
|
53
|
+
{
|
|
54
|
+
fillRule: "evenodd",
|
|
55
|
+
clipRule: "evenodd",
|
|
56
|
+
d: "M13.2241 0.601824C13.4808 0.780773 13.5439 1.13398 13.365 1.39073L5.69829 12.3907C5.59653 12.5367 5.43209 12.6264 5.25425 12.633C5.07641 12.6395 4.90582 12.5622 4.79359 12.4241L0.460261 7.09072C0.26291 6.84783 0.299829 6.49094 0.542723 6.29358C0.785617 6.09623 1.14251 6.13315 1.33986 6.37605L5.19872 11.1254L12.4352 0.7427C12.6141 0.485948 12.9673 0.422875 13.2241 0.601824Z",
|
|
57
|
+
fill: "#4C3BEF"
|
|
58
|
+
}
|
|
59
|
+
) }) })
|
|
60
|
+
] })
|
|
108
61
|
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
-
],
|
|
122
|
-
defaultVariants: {
|
|
123
|
-
isActive: !1,
|
|
124
|
-
isHovered: !1,
|
|
125
|
-
isDisabled: !1
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
);
|
|
62
|
+
r.value
|
|
63
|
+
) })
|
|
64
|
+
] });
|
|
129
65
|
export {
|
|
130
|
-
|
|
131
|
-
r as filterButtonVariants
|
|
66
|
+
v as PopoverContent
|
|
132
67
|
};
|
package/dist/index.es48.js
CHANGED
|
@@ -1,86 +1,82 @@
|
|
|
1
1
|
import { cva as e } from "class-variance-authority";
|
|
2
2
|
const t = e(
|
|
3
|
-
"
|
|
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
4
|
{
|
|
5
5
|
variants: {
|
|
6
6
|
size: {
|
|
7
|
-
xs: "h-
|
|
8
|
-
sm: "h-
|
|
9
|
-
md: "h-
|
|
10
|
-
lg: "h-
|
|
11
|
-
},
|
|
12
|
-
isSelected: {
|
|
13
|
-
true: "",
|
|
14
|
-
false: ""
|
|
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"
|
|
15
11
|
},
|
|
16
12
|
isDisabled: {
|
|
17
|
-
true: "cursor-not-allowed bg-neutral-
|
|
13
|
+
true: "cursor-not-allowed bg-neutral-200 border-none",
|
|
18
14
|
false: ""
|
|
19
15
|
},
|
|
20
16
|
isHovered: {
|
|
21
17
|
true: "",
|
|
22
18
|
false: ""
|
|
23
19
|
},
|
|
24
|
-
|
|
20
|
+
isFocusVisible: {
|
|
25
21
|
true: "",
|
|
26
22
|
false: ""
|
|
27
23
|
}
|
|
28
24
|
},
|
|
29
25
|
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
26
|
{
|
|
40
|
-
isSelected: !0,
|
|
41
27
|
isDisabled: !1,
|
|
42
28
|
isHovered: !1,
|
|
43
|
-
|
|
44
|
-
class: "
|
|
29
|
+
isFocusVisible: !1,
|
|
30
|
+
class: "border-neutral-500"
|
|
45
31
|
},
|
|
46
|
-
// Hovered state (not selected, not disabled)
|
|
47
32
|
{
|
|
48
|
-
isSelected: !1,
|
|
49
33
|
isDisabled: !1,
|
|
50
34
|
isHovered: !0,
|
|
51
|
-
|
|
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"
|
|
35
|
+
isFocusVisible: !1,
|
|
36
|
+
class: "border-neutral-800"
|
|
66
37
|
},
|
|
67
|
-
// Focused state (selected, not disabled)
|
|
68
38
|
{
|
|
69
|
-
isSelected: !0,
|
|
70
39
|
isDisabled: !1,
|
|
71
|
-
|
|
72
|
-
class: "
|
|
40
|
+
isFocusVisible: !0,
|
|
41
|
+
class: "border-2 border-primary-500"
|
|
73
42
|
}
|
|
74
43
|
],
|
|
75
44
|
defaultVariants: {
|
|
76
|
-
size: "
|
|
77
|
-
isSelected: !1,
|
|
45
|
+
size: "xs",
|
|
78
46
|
isDisabled: !1,
|
|
79
47
|
isHovered: !1,
|
|
80
|
-
|
|
48
|
+
isFocusVisible: !1
|
|
81
49
|
}
|
|
82
50
|
}
|
|
51
|
+
), a = e(
|
|
52
|
+
"flex items-center gap-1 rounded bg-primary-100 font-normal text-primary-800",
|
|
53
|
+
{
|
|
54
|
+
variants: {
|
|
55
|
+
size: {
|
|
56
|
+
xs: "px-1.5 py-0.5 text-[10px]",
|
|
57
|
+
sm: "px-2 py-1 text-xs",
|
|
58
|
+
md: "px-2.5 py-1 text-sm",
|
|
59
|
+
lg: "px-3 py-1.5 text-base"
|
|
60
|
+
},
|
|
61
|
+
isDisabled: {
|
|
62
|
+
true: "bg-neutral-50 text-neutral-600",
|
|
63
|
+
false: ""
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
defaultVariants: {
|
|
67
|
+
isDisabled: !1,
|
|
68
|
+
size: "xs"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
), r = e(
|
|
72
|
+
"w-[--trigger-width] overflow-auto rounded border border-neutral-300 bg-white shadow-lg outline-none",
|
|
73
|
+
{
|
|
74
|
+
variants: {},
|
|
75
|
+
defaultVariants: {}
|
|
76
|
+
}
|
|
83
77
|
);
|
|
84
78
|
export {
|
|
85
|
-
|
|
79
|
+
a as selectInputBadgeVariants,
|
|
80
|
+
t as selectInputButtonVariants,
|
|
81
|
+
r as selectInputPopoverVariants
|
|
86
82
|
};
|
package/dist/index.es49.js
CHANGED
|
@@ -1,24 +1,132 @@
|
|
|
1
|
-
import { cva as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
size: {
|
|
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
|
+
},
|
|
12
|
+
isActive: {
|
|
13
|
+
true: "bg-primary-50 text-primary-500",
|
|
14
|
+
false: "bg-transparent text-primary-500"
|
|
15
|
+
},
|
|
16
|
+
isHovered: {
|
|
17
|
+
true: "",
|
|
18
|
+
false: ""
|
|
19
|
+
},
|
|
20
|
+
isFocused: {
|
|
21
|
+
true: "",
|
|
22
|
+
false: ""
|
|
23
|
+
},
|
|
24
|
+
isPressed: {
|
|
25
|
+
true: "",
|
|
26
|
+
false: ""
|
|
27
|
+
},
|
|
28
|
+
isDisabled: {
|
|
29
|
+
true: "cursor-not-allowed",
|
|
30
|
+
false: ""
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
compoundVariants: [
|
|
34
|
+
// Inactive states
|
|
35
|
+
{
|
|
36
|
+
isActive: !1,
|
|
37
|
+
isHovered: !0,
|
|
38
|
+
isDisabled: !1,
|
|
39
|
+
class: "bg-primary-50"
|
|
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"
|
|
57
|
+
},
|
|
58
|
+
// Active states
|
|
59
|
+
{
|
|
60
|
+
isActive: !0,
|
|
61
|
+
isHovered: !0,
|
|
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"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
defaultVariants: {
|
|
84
|
+
size: "md",
|
|
85
|
+
isActive: !1,
|
|
86
|
+
isHovered: !1,
|
|
87
|
+
isFocused: !1,
|
|
88
|
+
isPressed: !1,
|
|
89
|
+
isDisabled: !1
|
|
11
90
|
}
|
|
12
91
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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",
|
|
94
|
+
{
|
|
95
|
+
variants: {
|
|
96
|
+
isActive: {
|
|
97
|
+
true: "bg-primary-500 text-primary-50",
|
|
98
|
+
false: ""
|
|
99
|
+
},
|
|
100
|
+
isHovered: {
|
|
101
|
+
true: "",
|
|
102
|
+
false: ""
|
|
103
|
+
},
|
|
104
|
+
isDisabled: {
|
|
105
|
+
true: "bg-neutral-400 text-neutral-50",
|
|
106
|
+
false: ""
|
|
107
|
+
}
|
|
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
|
+
],
|
|
122
|
+
defaultVariants: {
|
|
123
|
+
isActive: !1,
|
|
124
|
+
isHovered: !1,
|
|
125
|
+
isDisabled: !1
|
|
18
126
|
}
|
|
19
127
|
}
|
|
20
|
-
|
|
128
|
+
);
|
|
21
129
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
130
|
+
i as filterButtonBadgeVariants,
|
|
131
|
+
r as filterButtonVariants
|
|
24
132
|
};
|
package/dist/index.es5.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { j as r } from "./index.es39.js";
|
|
2
2
|
import { Button as I } from "react-aria-components";
|
|
3
|
-
import { cn as x } from "./index.
|
|
3
|
+
import { cn as x } from "./index.es41.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "./index.es42.js";
|
|
6
|
-
import { buttonVariants as B } from "./index.
|
|
7
|
-
import "./index.
|
|
6
|
+
import { buttonVariants as B } from "./index.es51.js";
|
|
7
|
+
import "./index.es52.js";
|
|
8
8
|
import "react-aria";
|
|
9
|
-
import "./index.
|
|
9
|
+
import "./index.es43.js";
|
|
10
10
|
import "@react-stately/color";
|
|
11
11
|
import { Loader as y } from "./index.es21.js";
|
|
12
|
-
import "./index.es46.js";
|
|
13
|
-
import "./index.es47.js";
|
|
14
12
|
import "./index.es48.js";
|
|
13
|
+
import "./index.es49.js";
|
|
14
|
+
import "./index.es53.js";
|
|
15
15
|
import "./index.es13.js";
|
|
16
16
|
import "./index.es14.js";
|
|
17
|
-
import "./index.
|
|
18
|
-
import "
|
|
17
|
+
import "./index.es35.js";
|
|
18
|
+
import "react-stately";
|
|
19
|
+
import "./index.es54.js";
|
|
20
|
+
import "./index.es55.js";
|
|
19
21
|
import "./index.es12.js";
|
|
20
22
|
import "@internationalized/date";
|
|
21
|
-
import "./index.
|
|
23
|
+
import "./index.es56.js";
|
|
22
24
|
import "./index.es16.js";
|
|
23
|
-
import "./index.
|
|
25
|
+
import "./index.es57.js";
|
|
24
26
|
import "./index.es18.js";
|
|
25
|
-
import "./index.
|
|
27
|
+
import "./index.es58.js";
|
|
26
28
|
import "./index.es22.js";
|
|
27
29
|
import "./index.es23.js";
|
|
28
|
-
import "./index.
|
|
30
|
+
import "./index.es59.js";
|
|
29
31
|
import "framer-motion";
|
|
30
|
-
import "./index.
|
|
31
|
-
import "./index.
|
|
32
|
-
import "./index.
|
|
32
|
+
import "./index.es60.js";
|
|
33
|
+
import "./index.es50.js";
|
|
34
|
+
import "./index.es61.js";
|
|
33
35
|
import "./index.es27.js";
|
|
34
|
-
import "./index.
|
|
35
|
-
import "react-stately";
|
|
36
|
-
import "./index.es58.js";
|
|
37
|
-
import "./index.es59.js";
|
|
36
|
+
import "./index.es62.js";
|
|
38
37
|
import "./index.es30.js";
|
|
39
38
|
import "./index.es31.js";
|
|
40
39
|
import "./index.es32.js";
|
|
41
|
-
import "./index.
|
|
40
|
+
import "./index.es63.js";
|
|
42
41
|
import "./index.es34.js";
|
|
42
|
+
import "./index.es64.js";
|
|
43
43
|
const j = ({
|
|
44
44
|
renderPosition: t,
|
|
45
45
|
leftIcon: a,
|
package/dist/index.es50.js
CHANGED
|
@@ -1,30 +1,119 @@
|
|
|
1
|
-
import { cva as
|
|
2
|
-
const t =
|
|
3
|
-
"flex
|
|
1
|
+
import { cva as r } from "class-variance-authority";
|
|
2
|
+
const t = r(
|
|
3
|
+
"flex w-full rounded-md border border-neutral-500 bg-white px-4 text-base leading-6 focus-within:border-primary-500 focus-within:ring-1 focus-within:ring-primary-500 focus:border-primary-500 focus:ring-1 focus:ring-primary-500",
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
6
|
+
size: {
|
|
7
|
+
xs: "py-1",
|
|
8
|
+
sm: "py-2",
|
|
9
|
+
md: "py-3",
|
|
10
|
+
lg: "py-4"
|
|
11
|
+
},
|
|
12
|
+
isHovered: {
|
|
13
|
+
true: ""
|
|
14
|
+
},
|
|
6
15
|
isDisabled: {
|
|
7
|
-
true: "cursor-not-allowed bg-neutral-200
|
|
8
|
-
|
|
16
|
+
true: "cursor-not-allowed bg-neutral-200 text-neutral-600"
|
|
17
|
+
},
|
|
18
|
+
isReadOnly: {
|
|
19
|
+
true: "cursor-not-allowed"
|
|
9
20
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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"
|
|
59
|
+
},
|
|
60
|
+
state: {
|
|
61
|
+
default: "border-transparent bg-transparent",
|
|
62
|
+
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"
|
|
13
66
|
}
|
|
14
67
|
},
|
|
15
68
|
defaultVariants: {
|
|
16
|
-
|
|
17
|
-
|
|
69
|
+
size: "bodyDefault",
|
|
70
|
+
state: "default"
|
|
18
71
|
}
|
|
19
72
|
}
|
|
20
|
-
),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
defaultVariants: {
|
|
109
|
+
size: "bodyDefault",
|
|
110
|
+
orientation: "vertical"
|
|
25
111
|
}
|
|
26
|
-
);
|
|
112
|
+
});
|
|
27
113
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
114
|
+
t as inputVariants,
|
|
115
|
+
o as invisibleInputCaptionVariants,
|
|
116
|
+
i as invisibleInputContainerVariants,
|
|
117
|
+
s as invisibleInputLabelVariants,
|
|
118
|
+
a as invisibleInputVariants
|
|
30
119
|
};
|