@simpli-route/apollo-ds 0.1.69 → 0.1.70
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/SelectInput/ListBox.d.ts +5 -0
- package/dist/components/SelectInput/PopoverContent.d.ts +2 -1
- package/dist/components/SelectInput/types.d.ts +5 -0
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs118.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.cjs130.js +1 -1
- package/dist/index.cjs131.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.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.cjs140.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs145.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.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.cjs164.js +1 -1
- package/dist/index.cjs165.js +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs169.js +1 -1
- package/dist/index.cjs170.js +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs173.js +1 -1
- package/dist/index.cjs174.js +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs182.js +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs184.js +1 -1
- package/dist/index.cjs185.js +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs191.js +1 -0
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.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.cjs35.js +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs43.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.cjs7.js +1 -1
- package/dist/index.cjs73.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 +3 -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 -3
- package/dist/index.cjs87.js +1 -1
- 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 +1 -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.es100.js +1 -1
- package/dist/index.es101.js +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es118.js +43 -30
- package/dist/index.es123.js +30 -2
- package/dist/index.es124.js +4 -2
- package/dist/index.es125.js +27 -58
- package/dist/index.es126.js +2 -4
- package/dist/index.es127.js +10 -28
- package/dist/index.es128.js +340 -2
- package/dist/index.es129.js +166 -8
- package/dist/index.es130.js +56 -339
- package/dist/index.es131.js +2 -166
- package/dist/index.es132.js +4 -190
- package/dist/index.es133.js +178 -39
- package/dist/index.es134.js +51 -4
- package/dist/index.es136.js +4 -21
- package/dist/index.es137.js +21 -4
- package/dist/index.es138.js +2 -43
- package/dist/index.es139.js +43 -5
- package/dist/index.es14.js +1 -1
- package/dist/index.es140.js +5 -5
- package/dist/index.es141.js +7 -27
- package/dist/index.es142.js +22 -187
- package/dist/index.es143.js +184 -8
- package/dist/index.es144.js +10 -347
- package/dist/index.es145.js +347 -18
- package/dist/index.es146.js +18 -13
- package/dist/index.es147.js +12 -147
- package/dist/index.es148.js +147 -10
- package/dist/index.es149.js +11 -11
- package/dist/index.es150.js +13 -207
- package/dist/index.es151.js +199 -56
- package/dist/index.es152.js +64 -10
- package/dist/index.es153.js +14 -4
- package/dist/index.es154.js +2 -2
- package/dist/index.es155.js +2 -2
- package/dist/index.es156.js +2 -2
- package/dist/index.es158.js +2 -2
- package/dist/index.es159.js +2 -2
- package/dist/index.es160.js +2 -2
- 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 -1063
- package/dist/index.es166.js +1064 -76
- package/dist/index.es167.js +77 -4
- package/dist/index.es168.js +2 -57
- package/dist/index.es169.js +59 -20
- package/dist/index.es170.js +20 -4
- package/dist/index.es171.js +4 -61
- package/dist/index.es172.js +61 -4
- package/dist/index.es173.js +4 -14
- package/dist/index.es174.js +10 -307
- package/dist/index.es175.js +304 -19
- package/dist/index.es176.js +26 -4
- package/dist/index.es179.js +4 -94
- package/dist/index.es18.js +1 -1
- package/dist/index.es180.js +94 -4
- package/dist/index.es181.js +2 -8
- package/dist/index.es182.js +10 -28
- package/dist/index.es183.js +28 -4
- package/dist/index.es184.js +4 -51
- package/dist/index.es185.js +47 -15
- package/dist/index.es186.js +19 -4
- package/dist/index.es187.js +2 -2
- package/dist/index.es188.js +4 -753
- package/dist/index.es189.js +753 -4
- package/dist/index.es190.js +2 -2
- package/dist/index.es191.js +4 -0
- package/dist/index.es24.js +1 -1
- package/dist/index.es26.js +2 -2
- package/dist/index.es27.js +2 -2
- package/dist/index.es29.js +6 -6
- package/dist/index.es30.js +33 -31
- package/dist/index.es31.js +2 -2
- package/dist/index.es35.js +3 -3
- package/dist/index.es36.js +2 -2
- package/dist/index.es37.js +3 -3
- package/dist/index.es43.js +1 -1
- package/dist/index.es51.js +167 -30
- package/dist/index.es52.js +20 -148
- package/dist/index.es53.js +31 -40
- package/dist/index.es7.js +3 -3
- package/dist/index.es73.js +40 -163
- package/dist/index.es77.js +162 -78
- package/dist/index.es78.js +10 -10
- package/dist/index.es79.js +12 -10
- package/dist/index.es8.js +1 -1
- package/dist/index.es80.js +10 -12
- package/dist/index.es81.js +13 -10
- package/dist/index.es82.js +154 -9
- package/dist/index.es83.js +12 -45
- package/dist/index.es84.js +7 -40
- package/dist/index.es85.js +41 -12
- package/dist/index.es86.js +20 -155
- package/dist/index.es87.js +78 -12
- package/dist/index.es88.js +7 -7
- package/dist/index.es89.js +15 -39
- package/dist/index.es9.js +1 -1
- package/dist/index.es90.js +149 -20
- package/dist/index.es91.js +100 -77
- package/dist/index.es92.js +12 -100
- package/dist/index.es93.js +19 -13
- package/dist/index.es94.js +20 -19
- package/dist/index.es95.js +10 -20
- package/dist/index.es96.js +10 -7
- package/dist/index.es97.js +44 -17
- package/dist/index.es98.js +31 -140
- package/dist/stories/SelectInput.stories.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es24.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as e } from "./index.es47.js";
|
|
|
2
2
|
import { forwardRef as x } from "react";
|
|
3
3
|
import { cn as y } from "./index.es48.js";
|
|
4
4
|
import { Loader as f } from "./index.es23.js";
|
|
5
|
-
import { Overlay as u } from "./index.
|
|
5
|
+
import { Overlay as u } from "./index.es80.js";
|
|
6
6
|
const v = (s, a) => {
|
|
7
7
|
const {
|
|
8
8
|
className: l,
|
package/dist/index.es26.js
CHANGED
|
@@ -3,8 +3,8 @@ import { NumberField as w, Group as B, Input as E } from "react-aria-components"
|
|
|
3
3
|
import { cn as t } from "./index.es48.js";
|
|
4
4
|
import "./index.es15.js";
|
|
5
5
|
import { Label as G } from "./index.es16.js";
|
|
6
|
-
import { CaptionNumberField as S } from "./index.
|
|
7
|
-
import { StepperButton as V } from "./index.
|
|
6
|
+
import { CaptionNumberField as S } from "./index.es78.js";
|
|
7
|
+
import { StepperButton as V } from "./index.es79.js";
|
|
8
8
|
import { inputNumberVariant as _ } from "./index.es62.js";
|
|
9
9
|
const K = ({
|
|
10
10
|
size: o = "sm",
|
package/dist/index.es27.js
CHANGED
|
@@ -5,10 +5,10 @@ import "react";
|
|
|
5
5
|
import { cn as s } from "./index.es48.js";
|
|
6
6
|
import "./index.es5.js";
|
|
7
7
|
import "./index.es50.js";
|
|
8
|
+
import "./index.es51.js";
|
|
8
9
|
import "./index.es52.js";
|
|
9
|
-
import "./index.es53.js";
|
|
10
10
|
import "react-aria";
|
|
11
|
-
import "./index.
|
|
11
|
+
import "./index.es53.js";
|
|
12
12
|
import "@react-stately/color";
|
|
13
13
|
import "./index.es54.js";
|
|
14
14
|
import "./index.es55.js";
|
package/dist/index.es29.js
CHANGED
|
@@ -2,15 +2,15 @@ import { j as s } from "./index.es47.js";
|
|
|
2
2
|
import { useMemo as S } from "react";
|
|
3
3
|
import { ComboBox as M, Input as P } from "react-aria-components";
|
|
4
4
|
import { cn as R } from "./index.es48.js";
|
|
5
|
-
import { useDebouncedValue as V } from "./index.
|
|
5
|
+
import { useDebouncedValue as V } from "./index.es81.js";
|
|
6
6
|
import "./index.es15.js";
|
|
7
7
|
import { Label as v } from "./index.es16.js";
|
|
8
8
|
import { inputVariants as y } from "./index.es65.js";
|
|
9
|
-
import { MultiSearchField as N } from "./index.
|
|
10
|
-
import { SearchFieldIconContainer as B } from "./index.
|
|
11
|
-
import { SearchFieldMessages as D } from "./index.
|
|
12
|
-
import { SearchFieldPopover as H } from "./index.
|
|
13
|
-
import { getSearchFieldDefaultProps as z, getHighlightedParts as E } from "./index.
|
|
9
|
+
import { MultiSearchField as N } from "./index.es82.js";
|
|
10
|
+
import { SearchFieldIconContainer as B } from "./index.es83.js";
|
|
11
|
+
import { SearchFieldMessages as D } from "./index.es84.js";
|
|
12
|
+
import { SearchFieldPopover as H } from "./index.es85.js";
|
|
13
|
+
import { getSearchFieldDefaultProps as z, getHighlightedParts as E } from "./index.es86.js";
|
|
14
14
|
const Y = (t) => {
|
|
15
15
|
const {
|
|
16
16
|
label: a,
|
package/dist/index.es30.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { j as s } from "./index.es47.js";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useFilter as
|
|
2
|
+
import { forwardRef as w, useState as h } from "react";
|
|
3
|
+
import { useFilter as G, Select as H, Popover as J } from "react-aria-components";
|
|
4
4
|
import { cn as c } from "./index.es48.js";
|
|
5
5
|
import "./index.es15.js";
|
|
6
|
-
import { Label as
|
|
7
|
-
import { PopoverContent as
|
|
8
|
-
import { SelectContent as
|
|
9
|
-
import { selectInputPopoverVariants as
|
|
10
|
-
const
|
|
6
|
+
import { Label as K } from "./index.es16.js";
|
|
7
|
+
import { PopoverContent as Q } from "./index.es73.js";
|
|
8
|
+
import { SelectContent as U } from "./index.es87.js";
|
|
9
|
+
import { selectInputPopoverVariants as W } from "./index.es54.js";
|
|
10
|
+
const X = (S, v) => {
|
|
11
11
|
const {
|
|
12
12
|
label: p,
|
|
13
|
-
items:
|
|
13
|
+
items: b,
|
|
14
14
|
selectionMode: l = "single",
|
|
15
15
|
value: m,
|
|
16
16
|
defaultValue: f,
|
|
@@ -22,75 +22,77 @@ const W = (S, b) => {
|
|
|
22
22
|
classNameLabel: u,
|
|
23
23
|
classNameButton: I,
|
|
24
24
|
classNamePopover: P,
|
|
25
|
-
tooltipText:
|
|
26
|
-
tooltipSupportText:
|
|
27
|
-
tooltipProps:
|
|
25
|
+
tooltipText: L,
|
|
26
|
+
tooltipSupportText: O,
|
|
27
|
+
tooltipProps: y,
|
|
28
28
|
onChange: o,
|
|
29
|
-
maxLengthTextOption:
|
|
29
|
+
maxLengthTextOption: A = 18,
|
|
30
30
|
placeholderSearch: V = "Search",
|
|
31
31
|
enableSearch: F = !1,
|
|
32
32
|
classNameSearchField: R,
|
|
33
33
|
classNameSearchFieldInput: T,
|
|
34
|
+
virtualizedList: z = !1,
|
|
34
35
|
...D
|
|
35
|
-
} = S, { contains: q } =
|
|
36
|
+
} = S, { contains: q } = G({ sensitivity: "base" }), [d, n] = h(!1), [B, x] = h(() => f !== void 0 ? f : l === "multiple" ? [] : null), i = m !== void 0, a = i ? m : B, E = (t) => {
|
|
36
37
|
if (l === "multiple" && a && Array.isArray(a)) {
|
|
37
|
-
const e = a.filter((
|
|
38
|
+
const e = a.filter((k) => k !== t);
|
|
38
39
|
i || x(e), o && o(e);
|
|
39
40
|
}
|
|
40
|
-
},
|
|
41
|
+
}, M = (t) => {
|
|
41
42
|
let e;
|
|
42
43
|
l === "multiple" ? e = t instanceof Set ? Array.from(t) : t : (e = t, n(!1)), i || x(e), o && o(e);
|
|
43
|
-
},
|
|
44
|
+
}, _ = {
|
|
44
45
|
className: c("flex w-full flex-col gap-1", j),
|
|
45
46
|
selectionMode: l,
|
|
46
47
|
isDisabled: r,
|
|
47
48
|
value: a,
|
|
48
|
-
onChange:
|
|
49
|
+
onChange: M,
|
|
49
50
|
...D
|
|
50
51
|
};
|
|
51
|
-
return /* @__PURE__ */ s.jsxs(
|
|
52
|
+
return /* @__PURE__ */ s.jsxs(H, { ..._, children: [
|
|
52
53
|
p ? /* @__PURE__ */ s.jsx(
|
|
53
|
-
|
|
54
|
+
K,
|
|
54
55
|
{
|
|
55
56
|
labelClassName: c("mb-[1px] text-left leading-[19.07px]", {
|
|
56
57
|
"text-neutral-700": r,
|
|
57
58
|
[u || ""]: !!u
|
|
58
59
|
}),
|
|
59
60
|
isRequired: g,
|
|
60
|
-
tooltipText:
|
|
61
|
-
tooltipSupportText:
|
|
62
|
-
tooltipProps:
|
|
61
|
+
tooltipText: L,
|
|
62
|
+
tooltipSupportText: O,
|
|
63
|
+
tooltipProps: y,
|
|
63
64
|
children: p
|
|
64
65
|
}
|
|
65
66
|
) : null,
|
|
66
67
|
/* @__PURE__ */ s.jsx(
|
|
67
|
-
|
|
68
|
+
U,
|
|
68
69
|
{
|
|
69
|
-
ref:
|
|
70
|
+
ref: v,
|
|
70
71
|
isOpen: d,
|
|
71
72
|
setIsOpen: n,
|
|
72
73
|
size: C,
|
|
73
74
|
isDisabled: r,
|
|
74
75
|
classNameButton: I,
|
|
75
76
|
selectionMode: l,
|
|
76
|
-
maxLengthTextOption:
|
|
77
|
-
handleDeleteOptionSelected:
|
|
77
|
+
maxLengthTextOption: A,
|
|
78
|
+
handleDeleteOptionSelected: E,
|
|
78
79
|
placeholder: N
|
|
79
80
|
}
|
|
80
81
|
),
|
|
81
|
-
/* @__PURE__ */ s.jsx(
|
|
82
|
-
|
|
82
|
+
/* @__PURE__ */ s.jsx(J, { className: c(W(), P), isOpen: d, onOpenChange: n, children: /* @__PURE__ */ s.jsx(
|
|
83
|
+
Q,
|
|
83
84
|
{
|
|
84
85
|
enableSearch: F,
|
|
85
86
|
contains: q,
|
|
86
87
|
classNameSearchField: R,
|
|
87
88
|
classNameSearchFieldInput: T,
|
|
88
89
|
placeholderSearch: V,
|
|
89
|
-
items:
|
|
90
|
+
items: b,
|
|
91
|
+
virtualizedList: z
|
|
90
92
|
}
|
|
91
93
|
) })
|
|
92
94
|
] });
|
|
93
|
-
},
|
|
95
|
+
}, re = w(X);
|
|
94
96
|
export {
|
|
95
|
-
|
|
97
|
+
re as SelectInput
|
|
96
98
|
};
|
package/dist/index.es31.js
CHANGED
|
@@ -2,8 +2,8 @@ import { j as m } from "./index.es47.js";
|
|
|
2
2
|
import { useState as q, useEffect as x } from "react";
|
|
3
3
|
import { Slider as z, SliderTrack as B } from "react-aria-components";
|
|
4
4
|
import { cn as F } from "./index.es48.js";
|
|
5
|
-
import { SliderContainerTrack as G } from "./index.
|
|
6
|
-
import { validateMinDistance as H } from "./index.
|
|
5
|
+
import { SliderContainerTrack as G } from "./index.es91.js";
|
|
6
|
+
import { validateMinDistance as H } from "./index.es92.js";
|
|
7
7
|
const U = ({
|
|
8
8
|
type: r = "single",
|
|
9
9
|
showTypeValue: A = "default",
|
package/dist/index.es35.js
CHANGED
|
@@ -3,10 +3,10 @@ import { CheckIcon as I } from "./index.es49.js";
|
|
|
3
3
|
import { motion as f } from "framer-motion";
|
|
4
4
|
import { useRef as k } from "react";
|
|
5
5
|
import { useButton as D, useHover as V } from "react-aria";
|
|
6
|
-
import z from "./index.
|
|
7
|
-
import B from "./index.
|
|
6
|
+
import z from "./index.es88.js";
|
|
7
|
+
import B from "./index.es89.js";
|
|
8
8
|
import { cn as H } from "./index.es48.js";
|
|
9
|
-
import { stepVariants as R, iconVariants as $, labelVariants as E } from "./index.
|
|
9
|
+
import { stepVariants as R, iconVariants as $, labelVariants as E } from "./index.es90.js";
|
|
10
10
|
const c = z(B), x = (s, e) => typeof s == "function" ? /* @__PURE__ */ n.jsx(s, { step: e || 0 }) : s, C = (s) => {
|
|
11
11
|
var t, r, o, a, i;
|
|
12
12
|
const e = (t = c == null ? void 0 : c.theme) == null ? void 0 : t.colors;
|
package/dist/index.es36.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as o } from "./index.es47.js";
|
|
2
2
|
import { Switch as u } from "react-aria-components";
|
|
3
3
|
import { cn as c } from "./index.es48.js";
|
|
4
|
-
import { ContentSwitch as L } from "./index.
|
|
5
|
-
import { SwitchIndicator as v } from "./index.
|
|
4
|
+
import { ContentSwitch as L } from "./index.es93.js";
|
|
5
|
+
import { SwitchIndicator as v } from "./index.es94.js";
|
|
6
6
|
import { switchVariants as b } from "./index.es68.js";
|
|
7
7
|
const E = ({
|
|
8
8
|
children: f,
|
package/dist/index.es37.js
CHANGED
|
@@ -3,9 +3,9 @@ import { useRef as b } from "react";
|
|
|
3
3
|
import { useTabList as d } from "react-aria";
|
|
4
4
|
import { useTabListState as u, Item as N } from "react-stately";
|
|
5
5
|
import { cn as e } from "./index.es48.js";
|
|
6
|
-
import { Tab as j } from "./index.
|
|
7
|
-
import { TabPanel as h } from "./index.
|
|
8
|
-
import { tabsVariants as T } from "./index.
|
|
6
|
+
import { Tab as j } from "./index.es95.js";
|
|
7
|
+
import { TabPanel as h } from "./index.es96.js";
|
|
8
|
+
import { tabsVariants as T } from "./index.es97.js";
|
|
9
9
|
const v = (a) => {
|
|
10
10
|
var l;
|
|
11
11
|
const {
|
package/dist/index.es43.js
CHANGED
|
@@ -3,7 +3,7 @@ import { forwardRef as f, useContext as u } from "react";
|
|
|
3
3
|
import { useTooltip as T, mergeProps as h } from "react-aria";
|
|
4
4
|
import { cn as e } from "./index.es48.js";
|
|
5
5
|
import { TooltipContext as j } from "./index.es57.js";
|
|
6
|
-
import { tooltipVariants as N } from "./index.
|
|
6
|
+
import { tooltipVariants as N } from "./index.es98.js";
|
|
7
7
|
const P = f((p, i) => {
|
|
8
8
|
const { placement: l = "bottom", className: m, mode: o = "dark", supportText: t, children: a, ...r } = p, { state: n, ...c } = u(j), { tooltipProps: x } = T(r, n), d = e(N({ placement: l, mode: o, hasSupportText: !!t }), m);
|
|
9
9
|
return /* @__PURE__ */ s.jsxs("span", { className: d, ...h(r, x, c), ref: i, children: [
|
package/dist/index.es51.js
CHANGED
|
@@ -1,36 +1,173 @@
|
|
|
1
1
|
import { cva as r } from "class-variance-authority";
|
|
2
|
-
const t = r(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 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"
|
|
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-none 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
|
+
}
|
|
7
43
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"[&_svg]:w-[10px] [&_svg]:h-[10px]"
|
|
12
|
-
],
|
|
13
|
-
sm: ["gap-1 py-[2px] pr-[6px] pl-1 font-normal text-neutral-900 text-xs", "[&_svg]:w-3 [&_svg]:h-3"],
|
|
14
|
-
md: ["gap-1 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm", "[&_svg]:w-4 [&_svg]:h-4"],
|
|
15
|
-
lg: ["gap-2 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm", "[&_svg]:w-4 [&_svg]:h-4"]
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
intent: "primary",
|
|
46
|
+
size: "md"
|
|
16
47
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
+
]
|
|
32
169
|
}
|
|
33
|
-
|
|
170
|
+
);
|
|
34
171
|
export {
|
|
35
|
-
t as
|
|
172
|
+
t as buttonVariants
|
|
36
173
|
};
|
package/dist/index.es52.js
CHANGED
|
@@ -1,173 +1,45 @@
|
|
|
1
1
|
import { cva as r } from "class-variance-authority";
|
|
2
|
-
const
|
|
3
|
-
"
|
|
2
|
+
const i = r(
|
|
3
|
+
"flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded border-2 border-primary-200 text-white transition duration-150 ease-in-out",
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
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"
|
|
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-none bg-neutral-400 text-neutral-600"
|
|
25
|
-
},
|
|
26
6
|
isHovered: {
|
|
27
7
|
true: ""
|
|
28
8
|
},
|
|
29
|
-
|
|
30
|
-
true: ""
|
|
9
|
+
isSelected: {
|
|
10
|
+
true: "border-primary-500 bg-primary-500",
|
|
11
|
+
false: "bg-white"
|
|
31
12
|
},
|
|
32
|
-
|
|
33
|
-
true: "
|
|
34
|
-
false: "w-fit"
|
|
13
|
+
isFocusVisible: {
|
|
14
|
+
true: "border-primary-500 group-active:border-primary-500"
|
|
35
15
|
},
|
|
36
|
-
|
|
37
|
-
true: "
|
|
16
|
+
isDisabled: {
|
|
17
|
+
true: "border-neutral-500 cursor-not-allowed"
|
|
38
18
|
},
|
|
39
|
-
|
|
40
|
-
true: "
|
|
41
|
-
false: ""
|
|
19
|
+
label: {
|
|
20
|
+
true: "mr-2"
|
|
42
21
|
}
|
|
43
22
|
},
|
|
44
|
-
defaultVariants: {
|
|
45
|
-
intent: "primary",
|
|
46
|
-
size: "md"
|
|
47
|
-
},
|
|
48
23
|
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
24
|
{
|
|
86
|
-
intent: "yellowWarning",
|
|
87
25
|
isHovered: !0,
|
|
88
|
-
|
|
26
|
+
isSelected: !0,
|
|
27
|
+
class: "border-none bg-primary-600 group-active:bg-primary-600"
|
|
89
28
|
},
|
|
90
29
|
{
|
|
91
|
-
intent: "info",
|
|
92
30
|
isHovered: !0,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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"
|
|
31
|
+
isSelected: !1,
|
|
32
|
+
isDisabled: !1,
|
|
33
|
+
class: "border-primary-700 group-active:bg-primary-600"
|
|
161
34
|
},
|
|
162
35
|
{
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
class: "
|
|
36
|
+
isDisabled: !0,
|
|
37
|
+
isSelected: !0,
|
|
38
|
+
class: "bg-neutral-500"
|
|
166
39
|
}
|
|
167
|
-
/* /Active State */
|
|
168
40
|
]
|
|
169
41
|
}
|
|
170
42
|
);
|
|
171
43
|
export {
|
|
172
|
-
|
|
44
|
+
i as checkboxVariants
|
|
173
45
|
};
|