@simpli-route/apollo-ds 0.1.47 → 0.1.49
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 +12 -0
- package/dist/components/FilterTypeChip/index.d.ts +2 -0
- package/dist/components/FilterTypeChip/types.d.ts +55 -0
- package/dist/components/FilterTypeChip/variants.d.ts +5 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs119.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs122.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.cjs131.js +1 -1
- package/dist/index.cjs14.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.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.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.cjs161.js +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs168.js +1 -0
- package/dist/index.cjs169.js +1 -0
- 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.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.cjs36.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.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.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.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 -9
- package/dist/index.cjs83.js +1 -19
- package/dist/index.cjs84.js +9 -1
- package/dist/index.cjs85.js +19 -1
- package/dist/index.cjs86.js +1 -1
- 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.cjs99.js +1 -1
- package/dist/index.es.js +60 -58
- package/dist/index.es10.js +4 -4
- package/dist/index.es100.js +19 -30
- package/dist/index.es103.js +30 -4
- package/dist/index.es104.js +58 -27
- package/dist/index.es105.js +4 -2
- package/dist/index.es106.js +28 -10
- package/dist/index.es107.js +2 -340
- package/dist/index.es108.js +8 -166
- package/dist/index.es109.js +338 -186
- package/dist/index.es11.js +99 -39
- package/dist/index.es110.js +164 -47
- package/dist/index.es111.js +190 -4
- package/dist/index.es112.js +51 -4
- package/dist/index.es113.js +4 -21
- package/dist/index.es115.js +20 -44
- package/dist/index.es116.js +2 -5
- package/dist/index.es117.js +43 -5
- package/dist/index.es118.js +7 -27
- package/dist/index.es119.js +7 -192
- package/dist/index.es12.js +38 -76
- package/dist/index.es120.js +20 -9
- package/dist/index.es121.js +187 -348
- package/dist/index.es122.js +10 -18
- package/dist/index.es123.js +347 -13
- package/dist/index.es124.js +15 -145
- package/dist/index.es125.js +11 -9
- package/dist/index.es126.js +148 -11
- package/dist/index.es127.js +13 -207
- package/dist/index.es128.js +13 -64
- package/dist/index.es129.js +207 -10
- package/dist/index.es13.js +77 -32
- package/dist/index.es130.js +68 -4
- package/dist/index.es131.js +14 -4
- package/dist/index.es132.js +2 -2
- package/dist/index.es133.js +2 -2
- package/dist/index.es134.js +2 -2
- package/dist/index.es135.js +2 -2
- package/dist/index.es136.js +2 -2
- package/dist/index.es137.js +2 -2
- package/dist/index.es138.js +2 -2
- package/dist/index.es139.js +2 -2
- package/dist/index.es14.js +32 -113
- package/dist/index.es140.js +2 -2
- package/dist/index.es141.js +2 -2
- package/dist/index.es142.js +2 -1063
- package/dist/index.es143.js +4 -77
- package/dist/index.es144.js +1063 -2
- package/dist/index.es145.js +77 -59
- package/dist/index.es146.js +4 -20
- package/dist/index.es147.js +57 -2
- package/dist/index.es148.js +20 -10
- package/dist/index.es149.js +4 -61
- package/dist/index.es15.js +89 -95
- package/dist/index.es150.js +61 -4
- package/dist/index.es151.js +4 -14
- package/dist/index.es152.js +10 -307
- package/dist/index.es153.js +304 -19
- package/dist/index.es154.js +26 -4
- package/dist/index.es157.js +4 -94
- package/dist/index.es158.js +94 -4
- package/dist/index.es159.js +4 -28
- package/dist/index.es16.js +112 -36
- package/dist/index.es160.js +8 -2
- package/dist/index.es161.js +28 -4
- package/dist/index.es162.js +4 -51
- package/dist/index.es163.js +47 -15
- package/dist/index.es164.js +19 -4
- package/dist/index.es165.js +2 -2
- package/dist/index.es166.js +4 -753
- package/dist/index.es167.js +753 -4
- package/dist/index.es168.js +4 -0
- package/dist/index.es169.js +4 -0
- package/dist/index.es17.js +42 -139
- package/dist/index.es18.js +136 -154
- package/dist/index.es19.js +150 -31
- package/dist/index.es2.js +2 -2
- package/dist/index.es20.js +38 -49
- package/dist/index.es21.js +49 -37
- package/dist/index.es22.js +38 -105
- package/dist/index.es23.js +102 -89
- package/dist/index.es24.js +82 -102
- package/dist/index.es25.js +109 -72
- package/dist/index.es26.js +72 -90
- package/dist/index.es27.js +93 -77
- package/dist/index.es28.js +74 -44
- package/dist/index.es29.js +48 -48
- package/dist/index.es3.js +3 -3
- package/dist/index.es30.js +48 -3
- package/dist/index.es31.js +3 -100
- package/dist/index.es32.js +99 -77
- package/dist/index.es33.js +76 -43
- package/dist/index.es34.js +41 -20
- package/dist/index.es35.js +21 -25
- package/dist/index.es36.js +28 -8
- package/dist/index.es37.js +7 -7
- package/dist/index.es38.js +8 -6
- package/dist/index.es39.js +6 -6
- package/dist/index.es4.js +4 -4
- package/dist/index.es40.js +6 -31
- package/dist/index.es41.js +31 -45
- package/dist/index.es42.js +31 -157
- package/dist/index.es43.js +148 -20
- package/dist/index.es44.js +40 -31
- package/dist/index.es45.js +30 -76
- package/dist/index.es46.js +39 -89
- package/dist/index.es47.js +88 -42
- package/dist/index.es48.js +56 -117
- package/dist/index.es49.js +15 -129
- package/dist/index.es5.js +27 -26
- package/dist/index.es50.js +16 -103
- package/dist/index.es51.js +115 -84
- package/dist/index.es52.js +126 -24
- package/dist/index.es53.js +72 -74
- package/dist/index.es54.js +98 -24
- package/dist/index.es55.js +34 -3
- package/dist/index.es56.js +94 -137
- package/dist/index.es57.js +23 -75
- package/dist/index.es58.js +3 -22
- package/dist/index.es59.js +159 -29
- package/dist/index.es6.js +4 -4
- package/dist/index.es60.js +90 -16
- package/dist/index.es61.js +27 -14
- package/dist/index.es62.js +12 -10
- package/dist/index.es63.js +17 -163
- package/dist/index.es64.js +14 -63
- package/dist/index.es65.js +61 -97
- package/dist/index.es66.js +87 -12
- package/dist/index.es67.js +10 -10
- package/dist/index.es68.js +12 -88
- package/dist/index.es69.js +163 -13
- package/dist/index.es7.js +3 -3
- package/dist/index.es70.js +13 -10
- package/dist/index.es71.js +10 -12
- package/dist/index.es72.js +101 -7
- package/dist/index.es73.js +11 -16
- package/dist/index.es74.js +7 -149
- package/dist/index.es75.js +17 -9
- package/dist/index.es76.js +149 -10
- package/dist/index.es77.js +25 -30
- package/dist/index.es78.js +10 -19
- package/dist/index.es79.js +10 -20
- package/dist/index.es8.js +5 -5
- package/dist/index.es80.js +30 -25
- package/dist/index.es81.js +19 -2
- package/dist/index.es82.js +19 -29
- package/dist/index.es83.js +2 -599
- package/dist/index.es84.js +30 -21
- package/dist/index.es85.js +599 -21
- package/dist/index.es86.js +14 -18
- package/dist/index.es87.js +7 -9
- package/dist/index.es88.js +19 -15
- package/dist/index.es89.js +14 -10
- package/dist/index.es9.js +7 -7
- package/dist/index.es90.js +12 -10
- package/dist/index.es91.js +8 -8
- package/dist/index.es92.js +6 -6
- package/dist/index.es93.js +11 -13
- package/dist/index.es94.js +12 -12
- package/dist/index.es95.js +8 -8
- package/dist/index.es96.js +12 -12
- package/dist/index.es97.js +10 -8
- package/dist/index.es98.js +10 -10
- package/dist/index.es99.js +19 -57
- package/dist/stories/FilterTypeChip.stories.d.ts +15 -0
- package/dist/style.css +36 -0
- package/package.json +1 -1
package/dist/index.es26.js
CHANGED
|
@@ -1,96 +1,78 @@
|
|
|
1
|
-
import { j as s } from "./index.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./index.
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
1
|
+
import { j as s } from "./index.es39.js";
|
|
2
|
+
import { SearchIcon as P, CrossIcon as y } from "./index.es41.js";
|
|
3
|
+
import { useMemo as z } from "react";
|
|
4
|
+
import { ComboBox as D, Input as H, Text as R, FieldError as E, Popover as O, ListBox as F, ListBoxItem as M } from "react-aria-components";
|
|
5
|
+
import { cn as S } from "./index.es40.js";
|
|
6
|
+
import { useDebouncedValue as _ } from "./index.es70.js";
|
|
7
|
+
import { IconButton as T } from "./index.es12.js";
|
|
8
|
+
import "./index.es13.js";
|
|
9
|
+
import { Label as $ } from "./index.es14.js";
|
|
10
|
+
import { inputVariants as k } from "./index.es56.js";
|
|
11
|
+
import { popoverVariants as q, searchOptionVariants as A } from "./index.es57.js";
|
|
12
|
+
const te = (i) => {
|
|
11
13
|
const {
|
|
12
|
-
label:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
14
|
+
label: n,
|
|
15
|
+
onReset: c,
|
|
16
|
+
placeholder: f,
|
|
17
|
+
isDisabled: l,
|
|
18
|
+
delay: b = 300,
|
|
19
|
+
searchIcon: j,
|
|
20
|
+
clearIcon: I,
|
|
21
|
+
size: N = "md",
|
|
22
|
+
description: d,
|
|
23
|
+
inputValue: h,
|
|
24
|
+
isInvalid: m,
|
|
25
|
+
errorMessage: x,
|
|
26
|
+
items: r,
|
|
27
|
+
...L
|
|
28
|
+
} = i, w = j ?? /* @__PURE__ */ s.jsx(P, { className: "size-6 text-neutral-700", "data-testid": "search-icon" }), C = /* @__PURE__ */ s.jsx(T, { intent: "minimal", size: "md", className: "p-0", "data-testid": "clear-icon-button", onPress: c, children: I ?? /* @__PURE__ */ s.jsx(y, { className: "size-5 text-neutral-700", "data-testid": "clear-icon" }) }), a = _(h, b), u = a && c, V = u ? C : w, v = (e, t) => {
|
|
29
|
+
if (!t.trim())
|
|
30
|
+
return [{ text: e, highlight: !1 }];
|
|
31
|
+
const o = new RegExp(`(${t})`, "gi");
|
|
32
|
+
return e.split(o).filter(Boolean).map((g) => ({
|
|
33
|
+
text: g,
|
|
34
|
+
highlight: g.toLowerCase() === t.toLowerCase()
|
|
35
|
+
}));
|
|
36
|
+
}, B = z(
|
|
37
|
+
() => a ? r.filter((e) => e.label.toLowerCase().includes(a.toLowerCase())).map((e) => {
|
|
38
|
+
const t = a && e.label.toLowerCase().includes(a.toLowerCase()), o = v(e.label, a ?? "");
|
|
39
|
+
return { ...e, shouldHighlight: t, highlightedParts: o };
|
|
40
|
+
}) : r.map((e) => ({
|
|
41
|
+
...e,
|
|
42
|
+
shouldHighlight: !1,
|
|
43
|
+
highlightedParts: [{ text: e.label, highlight: !1 }]
|
|
44
|
+
})),
|
|
45
|
+
[a, r]
|
|
46
|
+
);
|
|
47
|
+
return /* @__PURE__ */ s.jsxs(D, { inputValue: h, isDisabled: l, ...L, children: [
|
|
48
|
+
n && /* @__PURE__ */ s.jsx($, { children: n }),
|
|
49
|
+
/* @__PURE__ */ s.jsxs("div", { className: "relative flex items-center", children: [
|
|
50
|
+
/* @__PURE__ */ s.jsx(
|
|
51
|
+
H,
|
|
52
|
+
{
|
|
53
|
+
placeholder: f,
|
|
54
|
+
className: k({ size: N, isDisabled: l, hasIcon: !0 }),
|
|
55
|
+
disabled: l,
|
|
56
|
+
readOnly: i.isReadOnly
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ s.jsx("span", { className: S("absolute right-2 top-1/2 -translate-y-1/2", u && "top-[53%]"), children: V })
|
|
60
|
+
] }),
|
|
61
|
+
d && !m && /* @__PURE__ */ s.jsx(R, { slot: "description", className: "text-xs leading-5 text-neutral-700", children: d }),
|
|
62
|
+
x && m && /* @__PURE__ */ s.jsx(E, { className: "text-sm leading-6 text-error-500", children: x }),
|
|
63
|
+
/* @__PURE__ */ s.jsx(O, { className: q(), children: /* @__PURE__ */ s.jsx(F, { items: B, className: "max-h-60 overflow-auto outline-none", children: (e) => /* @__PURE__ */ s.jsx(
|
|
64
|
+
M,
|
|
54
65
|
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
tooltipSupportText: y,
|
|
62
|
-
tooltipProps: A,
|
|
63
|
-
children: p
|
|
66
|
+
id: e.id,
|
|
67
|
+
textValue: e.label,
|
|
68
|
+
className: ({ isDisabled: t, isSelected: o, isFocused: p }) => A({ isFocused: p, isSelected: o, isDisabled: t }),
|
|
69
|
+
children: e.shouldHighlight ? /* @__PURE__ */ s.jsx("span", { children: e.highlightedParts.map(
|
|
70
|
+
(t, o) => t.highlight ? /* @__PURE__ */ s.jsx("span", { className: "font-bold text-neutral-900", children: t.text }, t.text + o) : t.text
|
|
71
|
+
) }) : e.label
|
|
64
72
|
}
|
|
65
|
-
)
|
|
66
|
-
/* @__PURE__ */ s.jsx(
|
|
67
|
-
Q,
|
|
68
|
-
{
|
|
69
|
-
ref: b,
|
|
70
|
-
isOpen: d,
|
|
71
|
-
setIsOpen: n,
|
|
72
|
-
size: C,
|
|
73
|
-
isDisabled: r,
|
|
74
|
-
classNameButton: I,
|
|
75
|
-
selectionMode: l,
|
|
76
|
-
maxLengthTextOption: L,
|
|
77
|
-
handleDeleteOptionSelected: B,
|
|
78
|
-
placeholder: N
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
/* @__PURE__ */ s.jsx(H, { className: c(U(), P), isOpen: d, onOpenChange: n, children: /* @__PURE__ */ s.jsx(
|
|
82
|
-
K,
|
|
83
|
-
{
|
|
84
|
-
enableSearch: F,
|
|
85
|
-
contains: q,
|
|
86
|
-
classNameSearchField: R,
|
|
87
|
-
classNameSearchFieldInput: T,
|
|
88
|
-
placeholderSearch: V,
|
|
89
|
-
items: v
|
|
90
|
-
}
|
|
91
|
-
) })
|
|
73
|
+
) }) })
|
|
92
74
|
] });
|
|
93
|
-
}
|
|
75
|
+
};
|
|
94
76
|
export {
|
|
95
|
-
|
|
77
|
+
te as SearchField
|
|
96
78
|
};
|
package/dist/index.es27.js
CHANGED
|
@@ -1,80 +1,96 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { cn as
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}, [r, f, i, d]), x(() => {
|
|
40
|
-
l !== r && (b(r), i == null || i(r === "range" ? [0, 5] : 0));
|
|
41
|
-
}, [r, i, l]), /* @__PURE__ */ m.jsx("div", { className: "flex w-full flex-col py-4", children: /* @__PURE__ */ m.jsx(
|
|
42
|
-
z,
|
|
43
|
-
{
|
|
44
|
-
value: f,
|
|
45
|
-
step: R,
|
|
46
|
-
maxValue: T,
|
|
47
|
-
minValue: k,
|
|
48
|
-
className: F("w-full", p),
|
|
49
|
-
onChange: (s) => {
|
|
50
|
-
const t = s;
|
|
51
|
-
if (t !== void 0) {
|
|
52
|
-
const c = Array.isArray(t), o = r === "range" && c ? H(t, r, d) : t;
|
|
53
|
-
i == null || i(
|
|
54
|
-
r === "range" ? o : Array.isArray(o) ? o[0] || 0 : o
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
...$,
|
|
59
|
-
children: /* @__PURE__ */ m.jsx(B, { className: "relative h-3 w-full cursor-pointer", children: ({ state: s }) => /* @__PURE__ */ m.jsx(
|
|
60
|
-
G,
|
|
61
|
-
{
|
|
62
|
-
state: s,
|
|
63
|
-
type: r,
|
|
64
|
-
showTypeValue: A,
|
|
65
|
-
isHiddenValue: w,
|
|
66
|
-
suffix: M,
|
|
67
|
-
suffixRangeCustom: P,
|
|
68
|
-
classNameFilled: v,
|
|
69
|
-
classNameUnfilled: N,
|
|
70
|
-
modeTooltip: j,
|
|
71
|
-
positionTooltip: S,
|
|
72
|
-
classNameThumb: E
|
|
73
|
-
}
|
|
74
|
-
) })
|
|
1
|
+
import { j as s } from "./index.es39.js";
|
|
2
|
+
import { forwardRef as k, useState as h } from "react";
|
|
3
|
+
import { useFilter as w, Select as G, Popover as H } from "react-aria-components";
|
|
4
|
+
import { cn as c } from "./index.es40.js";
|
|
5
|
+
import "./index.es13.js";
|
|
6
|
+
import { Label as J } from "./index.es14.js";
|
|
7
|
+
import { PopoverContent as K } from "./index.es65.js";
|
|
8
|
+
import { SelectContent as Q } from "./index.es66.js";
|
|
9
|
+
import { selectInputPopoverVariants as U } from "./index.es46.js";
|
|
10
|
+
const W = (S, b) => {
|
|
11
|
+
const {
|
|
12
|
+
label: p,
|
|
13
|
+
items: v,
|
|
14
|
+
selectionMode: l = "single",
|
|
15
|
+
value: m,
|
|
16
|
+
defaultValue: f,
|
|
17
|
+
placeholder: N = "Select",
|
|
18
|
+
isDisabled: r = !1,
|
|
19
|
+
isRequired: g = !1,
|
|
20
|
+
size: C = "xs",
|
|
21
|
+
className: j,
|
|
22
|
+
classNameLabel: u,
|
|
23
|
+
classNameButton: I,
|
|
24
|
+
classNamePopover: P,
|
|
25
|
+
tooltipText: O,
|
|
26
|
+
tooltipSupportText: y,
|
|
27
|
+
tooltipProps: A,
|
|
28
|
+
onChange: o,
|
|
29
|
+
maxLengthTextOption: L = 18,
|
|
30
|
+
placeholderSearch: V = "Search",
|
|
31
|
+
enableSearch: F = !1,
|
|
32
|
+
classNameSearchField: R,
|
|
33
|
+
classNameSearchFieldInput: T,
|
|
34
|
+
...D
|
|
35
|
+
} = S, { contains: q } = w({ sensitivity: "base" }), [d, n] = h(!1), [z, x] = h(() => f !== void 0 ? f : l === "multiple" ? [] : null), i = m !== void 0, a = i ? m : z, B = (t) => {
|
|
36
|
+
if (l === "multiple" && a && Array.isArray(a)) {
|
|
37
|
+
const e = a.filter((_) => _ !== t);
|
|
38
|
+
i || x(e), o && o(e);
|
|
75
39
|
}
|
|
76
|
-
)
|
|
77
|
-
|
|
40
|
+
}, E = (t) => {
|
|
41
|
+
let e;
|
|
42
|
+
l === "multiple" ? e = t instanceof Set ? Array.from(t) : t : (e = t, n(!1)), i || x(e), o && o(e);
|
|
43
|
+
}, M = {
|
|
44
|
+
className: c("flex w-full flex-col gap-1", j),
|
|
45
|
+
selectionMode: l,
|
|
46
|
+
isDisabled: r,
|
|
47
|
+
value: a,
|
|
48
|
+
onChange: E,
|
|
49
|
+
...D
|
|
50
|
+
};
|
|
51
|
+
return /* @__PURE__ */ s.jsxs(G, { ...M, children: [
|
|
52
|
+
p ? /* @__PURE__ */ s.jsx(
|
|
53
|
+
J,
|
|
54
|
+
{
|
|
55
|
+
labelClassName: c("mb-[1px] text-left leading-[19.07px]", {
|
|
56
|
+
"text-neutral-700": r,
|
|
57
|
+
[u || ""]: !!u
|
|
58
|
+
}),
|
|
59
|
+
isRequired: g,
|
|
60
|
+
tooltipText: O,
|
|
61
|
+
tooltipSupportText: y,
|
|
62
|
+
tooltipProps: A,
|
|
63
|
+
children: p
|
|
64
|
+
}
|
|
65
|
+
) : null,
|
|
66
|
+
/* @__PURE__ */ s.jsx(
|
|
67
|
+
Q,
|
|
68
|
+
{
|
|
69
|
+
ref: b,
|
|
70
|
+
isOpen: d,
|
|
71
|
+
setIsOpen: n,
|
|
72
|
+
size: C,
|
|
73
|
+
isDisabled: r,
|
|
74
|
+
classNameButton: I,
|
|
75
|
+
selectionMode: l,
|
|
76
|
+
maxLengthTextOption: L,
|
|
77
|
+
handleDeleteOptionSelected: B,
|
|
78
|
+
placeholder: N
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ s.jsx(H, { className: c(U(), P), isOpen: d, onOpenChange: n, children: /* @__PURE__ */ s.jsx(
|
|
82
|
+
K,
|
|
83
|
+
{
|
|
84
|
+
enableSearch: F,
|
|
85
|
+
contains: q,
|
|
86
|
+
classNameSearchField: R,
|
|
87
|
+
classNameSearchFieldInput: T,
|
|
88
|
+
placeholderSearch: V,
|
|
89
|
+
items: v
|
|
90
|
+
}
|
|
91
|
+
) })
|
|
92
|
+
] });
|
|
93
|
+
}, ae = k(W);
|
|
78
94
|
export {
|
|
79
|
-
|
|
95
|
+
ae as SelectInput
|
|
80
96
|
};
|
package/dist/index.es28.js
CHANGED
|
@@ -1,50 +1,80 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { j as m } from "./index.es39.js";
|
|
2
|
+
import { useState as q, useEffect as x } from "react";
|
|
3
|
+
import { Slider as z, SliderTrack as B } from "react-aria-components";
|
|
4
|
+
import { cn as F } from "./index.es40.js";
|
|
5
|
+
import { SliderContainerTrack as G } from "./index.es72.js";
|
|
6
|
+
import { validateMinDistance as H } from "./index.es73.js";
|
|
7
|
+
const U = ({
|
|
8
|
+
type: r = "single",
|
|
9
|
+
showTypeValue: A = "default",
|
|
10
|
+
positionTooltip: S = "top",
|
|
11
|
+
modeTooltip: j = "dark",
|
|
12
|
+
isHiddenValue: w = !1,
|
|
13
|
+
maxValue: T = 100,
|
|
14
|
+
minValue: k = 0,
|
|
15
|
+
value: f = r === "range" ? [0, 5] : 0,
|
|
16
|
+
onChangeValue: i,
|
|
17
|
+
className: p,
|
|
18
|
+
classNameFilled: v,
|
|
19
|
+
classNameUnfilled: N,
|
|
20
|
+
classNameThumb: E,
|
|
21
|
+
suffix: M = "%",
|
|
22
|
+
suffixRangeCustom: P = {
|
|
23
|
+
left: "",
|
|
24
|
+
right: ""
|
|
25
|
+
},
|
|
26
|
+
step: R = 1,
|
|
27
|
+
minDistance: d = 2,
|
|
28
|
+
...$
|
|
17
29
|
}) => {
|
|
18
|
-
const [l,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
const [l, b] = q(r);
|
|
31
|
+
return x(() => {
|
|
32
|
+
if (r === "range" && Array.isArray(f)) {
|
|
33
|
+
const [s, t] = f;
|
|
34
|
+
if (t - s < d) {
|
|
35
|
+
const c = [s, s + d];
|
|
36
|
+
(c[0] !== f[0] || c[1] !== f[1]) && (i == null || i(c));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, [r, f, i, d]), x(() => {
|
|
40
|
+
l !== r && (b(r), i == null || i(r === "range" ? [0, 5] : 0));
|
|
41
|
+
}, [r, i, l]), /* @__PURE__ */ m.jsx("div", { className: "flex w-full flex-col py-4", children: /* @__PURE__ */ m.jsx(
|
|
42
|
+
z,
|
|
26
43
|
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
value: f,
|
|
45
|
+
step: R,
|
|
46
|
+
maxValue: T,
|
|
47
|
+
minValue: k,
|
|
48
|
+
className: F("w-full", p),
|
|
49
|
+
onChange: (s) => {
|
|
50
|
+
const t = s;
|
|
51
|
+
if (t !== void 0) {
|
|
52
|
+
const c = Array.isArray(t), o = r === "range" && c ? H(t, r, d) : t;
|
|
53
|
+
i == null || i(
|
|
54
|
+
r === "range" ? o : Array.isArray(o) ? o[0] || 0 : o
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
...$,
|
|
59
|
+
children: /* @__PURE__ */ m.jsx(B, { className: "relative h-3 w-full cursor-pointer", children: ({ state: s }) => /* @__PURE__ */ m.jsx(
|
|
60
|
+
G,
|
|
61
|
+
{
|
|
62
|
+
state: s,
|
|
63
|
+
type: r,
|
|
64
|
+
showTypeValue: A,
|
|
65
|
+
isHiddenValue: w,
|
|
66
|
+
suffix: M,
|
|
67
|
+
suffixRangeCustom: P,
|
|
68
|
+
classNameFilled: v,
|
|
69
|
+
classNameUnfilled: N,
|
|
70
|
+
modeTooltip: j,
|
|
71
|
+
positionTooltip: S,
|
|
72
|
+
classNameThumb: E
|
|
73
|
+
}
|
|
74
|
+
) })
|
|
45
75
|
}
|
|
46
|
-
);
|
|
76
|
+
) });
|
|
47
77
|
};
|
|
48
78
|
export {
|
|
49
|
-
|
|
79
|
+
U as Slider
|
|
50
80
|
};
|
package/dist/index.es29.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
1
|
+
import { j as c } from "./index.es39.js";
|
|
2
|
+
import { CheckIcon as h } from "./index.es41.js";
|
|
3
|
+
import { useState as j } from "react";
|
|
4
|
+
import { Button as S } from "react-aria-components";
|
|
5
|
+
import { cn as k } from "./index.es40.js";
|
|
6
|
+
import { statusChipVariants as I } from "./index.es59.js";
|
|
7
|
+
const F = ({
|
|
8
|
+
size: m = "sm",
|
|
9
|
+
label: n,
|
|
10
|
+
variant: i = "success",
|
|
11
|
+
isSelected: o = !1,
|
|
12
|
+
isDisabled: s = !1,
|
|
13
|
+
className: f,
|
|
14
|
+
onSelectionChange: e,
|
|
15
|
+
onPress: a,
|
|
16
|
+
...p
|
|
17
|
+
}) => {
|
|
18
|
+
const [l, u] = j(o), r = e ? o : l, d = () => {
|
|
19
|
+
if (s)
|
|
20
|
+
return;
|
|
21
|
+
const t = !r;
|
|
22
|
+
e ? e(t) : u(t), a && a({});
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ c.jsxs(
|
|
25
|
+
S,
|
|
26
|
+
{
|
|
27
|
+
isDisabled: s,
|
|
28
|
+
className: ({ isHovered: t, isFocusVisible: x }) => k(
|
|
29
|
+
I({
|
|
30
|
+
size: m,
|
|
31
|
+
variant: i,
|
|
32
|
+
isSelected: r,
|
|
33
|
+
isDisabled: s,
|
|
34
|
+
isHovered: t,
|
|
35
|
+
isFocused: x
|
|
36
|
+
}),
|
|
37
|
+
f
|
|
38
|
+
),
|
|
39
|
+
onPress: d,
|
|
40
|
+
...p,
|
|
41
|
+
children: [
|
|
42
|
+
r && /* @__PURE__ */ c.jsx("span", { "data-testid": "check-icon", children: /* @__PURE__ */ c.jsx(h, { className: "size-3" }) }),
|
|
43
|
+
n
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
F as StatusChip
|
|
50
50
|
};
|
package/dist/index.es3.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as r } from "./index.
|
|
2
|
-
import { MinusIcon as p, PlusIcon as x } from "./index.
|
|
3
|
-
import { cn as e } from "./index.
|
|
1
|
+
import { j as r } from "./index.es39.js";
|
|
2
|
+
import { MinusIcon as p, PlusIcon as x } from "./index.es41.js";
|
|
3
|
+
import { cn as e } from "./index.es40.js";
|
|
4
4
|
const h = ({
|
|
5
5
|
label: t,
|
|
6
6
|
section: n,
|
package/dist/index.es30.js
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { j as p } from "./index.es39.js";
|
|
2
|
+
import { Children as P, cloneElement as R } from "react";
|
|
3
|
+
import { StepperCompleted as h } from "./index.es31.js";
|
|
4
|
+
import { StepperStep as w } from "./index.es32.js";
|
|
5
|
+
function C(g) {
|
|
6
|
+
var f, a, d;
|
|
7
|
+
const {
|
|
8
|
+
children: y,
|
|
9
|
+
activeStep: n,
|
|
10
|
+
size: j = "md",
|
|
11
|
+
onStepClick: l,
|
|
12
|
+
allowNextStepsSelect: x = !1,
|
|
13
|
+
baseIcon: I,
|
|
14
|
+
completedIcon: v
|
|
15
|
+
} = g, c = P.toArray(y), r = c.filter(
|
|
16
|
+
(t) => t.type === w
|
|
17
|
+
), s = c.find(
|
|
18
|
+
(t) => t.type === h
|
|
19
|
+
), i = (t, e) => t.props.error ? "error" : n === e ? "inProgress" : n > e ? "completed" : "pending", A = r.reduce(
|
|
20
|
+
(t, e, o) => {
|
|
21
|
+
const m = i(e, o), u = r[o + 1], E = u ? i(u, o + 1) : "pending", S = typeof l != "function" ? !1 : typeof e.props.allowStepClick == "boolean" ? e.props.allowStepClick : m === "completed" || x;
|
|
22
|
+
return t.push(
|
|
23
|
+
R(e, {
|
|
24
|
+
icon: e.props.icon || I || o + 1,
|
|
25
|
+
key: o,
|
|
26
|
+
step: o,
|
|
27
|
+
size: j,
|
|
28
|
+
state: m,
|
|
29
|
+
onPress: () => {
|
|
30
|
+
S && (l == null || l(o));
|
|
31
|
+
},
|
|
32
|
+
allowStepClick: S,
|
|
33
|
+
completedIcon: e.props.completedIcon || v,
|
|
34
|
+
nextState: E,
|
|
35
|
+
isLastStep: o === r.length - 1
|
|
36
|
+
})
|
|
37
|
+
), t;
|
|
38
|
+
},
|
|
39
|
+
[]
|
|
40
|
+
), N = (a = (f = r[n]) == null ? void 0 : f.props) == null ? void 0 : a.children, b = (d = s == null ? void 0 : s.props) == null ? void 0 : d.children, k = n > r.length - 1 ? b : N;
|
|
41
|
+
return /* @__PURE__ */ p.jsxs("div", { className: "flex w-full flex-col gap-2", children: [
|
|
42
|
+
/* @__PURE__ */ p.jsx("div", { className: "flex w-full items-center", children: A }),
|
|
43
|
+
/* @__PURE__ */ p.jsx("div", { className: "flex", children: k })
|
|
44
|
+
] });
|
|
45
|
+
}
|
|
46
|
+
C.Completed = h;
|
|
47
|
+
C.Step = w;
|
|
3
48
|
export {
|
|
4
|
-
|
|
49
|
+
C as Stepper
|
|
5
50
|
};
|