@simpli-route/apollo-ds 0.1.42 → 0.1.44
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/FilterButton/FilterButton.d.ts +3 -0
- package/dist/components/FilterButton/FilterButton.test.d.ts +1 -0
- package/dist/components/FilterButton/index.d.ts +2 -0
- package/dist/components/FilterButton/types.d.ts +95 -0
- package/dist/components/FilterButton/variants.d.ts +12 -0
- package/dist/components/SelectInput/PopoverContent.d.ts +12 -0
- package/dist/components/SelectInput/SelectContent.d.ts +16 -0
- package/dist/components/SelectInput/SelectInput.d.ts +6 -0
- package/dist/components/SelectInput/index.d.ts +2 -0
- package/dist/components/SelectInput/types.d.ts +112 -0
- package/dist/components/{Select → SelectInput}/variants.d.ts +6 -7
- package/dist/components/index.d.ts +2 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs101.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.cjs112.js +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs114.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.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.cjs15.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.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.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.cjs165.js +1 -0
- package/dist/index.cjs166.js +1 -0
- package/dist/index.cjs167.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.cjs3.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.cjs42.js +1 -1
- package/dist/index.cjs43.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.cjs6.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.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.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs81.js +1 -9
- package/dist/index.cjs82.js +3 -13
- package/dist/index.cjs83.js +19 -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 -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 +50 -50
- package/dist/index.es10.js +45 -33
- package/dist/index.es100.js +30 -4
- package/dist/index.es101.js +4 -28
- package/dist/index.es103.js +4 -8
- package/dist/index.es104.js +27 -341
- package/dist/index.es105.js +2 -166
- package/dist/index.es106.js +10 -190
- package/dist/index.es107.js +339 -48
- package/dist/index.es108.js +166 -2
- package/dist/index.es109.js +190 -4
- package/dist/index.es11.js +38 -76
- package/dist/index.es110.js +42 -12
- package/dist/index.es112.js +2 -43
- package/dist/index.es113.js +21 -7
- package/dist/index.es114.js +2 -5
- package/dist/index.es115.js +44 -26
- package/dist/index.es116.js +7 -192
- package/dist/index.es117.js +7 -16
- package/dist/index.es118.js +21 -347
- package/dist/index.es119.js +187 -19
- package/dist/index.es12.js +77 -32
- package/dist/index.es120.js +8 -11
- package/dist/index.es121.js +345 -146
- package/dist/index.es122.js +18 -11
- package/dist/index.es123.js +11 -9
- package/dist/index.es124.js +144 -201
- package/dist/index.es125.js +13 -64
- package/dist/index.es126.js +9 -6
- package/dist/index.es127.js +211 -4
- package/dist/index.es128.js +68 -4
- package/dist/index.es129.js +14 -4
- package/dist/index.es13.js +32 -113
- package/dist/index.es130.js +2 -2
- package/dist/index.es131.js +2 -2
- 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.es137.js +2 -2
- package/dist/index.es138.js +2 -2
- package/dist/index.es139.js +2 -1063
- package/dist/index.es14.js +88 -94
- package/dist/index.es140.js +4 -77
- package/dist/index.es141.js +2 -2
- package/dist/index.es142.js +1064 -19
- package/dist/index.es143.js +77 -4
- package/dist/index.es144.js +2 -57
- package/dist/index.es145.js +59 -61
- package/dist/index.es146.js +20 -4
- package/dist/index.es147.js +4 -14
- package/dist/index.es148.js +10 -311
- package/dist/index.es149.js +56 -21
- package/dist/index.es15.js +111 -35
- package/dist/index.es150.js +2 -2
- package/dist/index.es151.js +14 -4
- package/dist/index.es152.js +311 -4
- package/dist/index.es153.js +22 -90
- package/dist/index.es154.js +2 -2
- package/dist/index.es155.js +2 -8
- package/dist/index.es156.js +4 -28
- package/dist/index.es157.js +94 -4
- package/dist/index.es158.js +4 -51
- package/dist/index.es159.js +21 -12
- package/dist/index.es16.js +41 -138
- package/dist/index.es160.js +2 -2
- package/dist/index.es161.js +2 -2
- package/dist/index.es162.js +48 -750
- package/dist/index.es163.js +19 -4
- package/dist/index.es164.js +2 -2
- package/dist/index.es165.js +4 -0
- package/dist/index.es166.js +753 -0
- package/dist/index.es167.js +4 -0
- package/dist/index.es17.js +136 -154
- package/dist/index.es18.js +149 -30
- package/dist/index.es19.js +38 -49
- package/dist/index.es2.js +1 -1
- package/dist/index.es20.js +48 -36
- package/dist/index.es21.js +37 -104
- package/dist/index.es22.js +102 -89
- package/dist/index.es23.js +82 -101
- package/dist/index.es24.js +108 -72
- package/dist/index.es25.js +74 -142
- package/dist/index.es26.js +93 -39
- package/dist/index.es27.js +3 -3
- package/dist/index.es28.js +2 -2
- package/dist/index.es3.js +2 -2
- package/dist/index.es31.js +2 -2
- package/dist/index.es32.js +1 -1
- package/dist/index.es33.js +1 -1
- package/dist/index.es34.js +2 -2
- package/dist/index.es35.js +1 -1
- package/dist/index.es36.js +1 -1
- package/dist/index.es37.js +1 -1
- package/dist/index.es38.js +3 -3
- package/dist/index.es39.js +6 -27
- package/dist/index.es4.js +2 -2
- package/dist/index.es40.js +31 -6
- package/dist/index.es42.js +30 -10
- package/dist/index.es43.js +40 -31
- package/dist/index.es47.js +30 -167
- package/dist/index.es48.js +148 -20
- package/dist/index.es49.js +44 -48
- package/dist/index.es5.js +16 -15
- package/dist/index.es50.js +95 -117
- package/dist/index.es51.js +48 -100
- package/dist/index.es52.js +82 -52
- package/dist/index.es53.js +106 -84
- package/dist/index.es54.js +105 -24
- package/dist/index.es55.js +45 -48
- package/dist/index.es56.js +33 -39
- package/dist/index.es57.js +96 -34
- package/dist/index.es58.js +25 -25
- package/dist/index.es6.js +3 -3
- package/dist/index.es63.js +97 -26
- package/dist/index.es64.js +13 -10
- package/dist/index.es65.js +163 -12
- package/dist/index.es66.js +63 -135
- package/dist/index.es67.js +10 -20
- package/dist/index.es68.js +10 -13
- package/dist/index.es69.js +12 -163
- package/dist/index.es7.js +2 -2
- package/dist/index.es70.js +13 -101
- package/dist/index.es71.js +87 -12
- package/dist/index.es72.js +3 -3
- package/dist/index.es73.js +3 -3
- package/dist/index.es75.js +1 -1
- package/dist/index.es76.js +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es78.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es80.js +40 -2
- package/dist/index.es81.js +2 -30
- package/dist/index.es82.js +21 -590
- package/dist/index.es83.js +599 -21
- package/dist/index.es84.js +17 -17
- package/dist/index.es85.js +14 -18
- package/dist/index.es86.js +19 -15
- package/dist/index.es87.js +14 -10
- package/dist/index.es88.js +12 -10
- package/dist/index.es89.js +8 -8
- package/dist/index.es9.js +124 -40
- package/dist/index.es90.js +6 -6
- package/dist/index.es91.js +11 -13
- package/dist/index.es92.js +8 -10
- package/dist/index.es93.js +12 -10
- package/dist/index.es94.js +13 -13
- package/dist/index.es95.js +11 -9
- package/dist/index.es96.js +19 -30
- package/dist/index.es97.js +19 -2
- package/dist/index.es98.js +19 -2
- package/dist/index.es99.js +1 -1
- package/dist/stories/SelectInput.stories.d.ts +50 -0
- package/dist/style.css +72 -63
- package/package.json +1 -1
- package/dist/components/Select/Select.d.ts +0 -12
- package/dist/components/Select/SelectContent.d.ts +0 -24
- package/dist/components/Select/SelectItem.d.ts +0 -13
- package/dist/components/Select/TooltipSelect.d.ts +0 -3
- package/dist/components/Select/index.d.ts +0 -3
- package/dist/components/Select/types.d.ts +0 -76
package/dist/index.es24.js
CHANGED
|
@@ -1,78 +1,114 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { cn as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { j as t } from "./index.es38.js";
|
|
2
|
+
import { motion as D } from "framer-motion";
|
|
3
|
+
import { ProgressBar as I } from "react-aria-components";
|
|
4
|
+
import "react";
|
|
5
|
+
import { cn as s } from "./index.es39.js";
|
|
6
|
+
import "./index.es41.js";
|
|
7
|
+
import "./index.es48.js";
|
|
8
|
+
import "./index.es43.js";
|
|
9
|
+
import "react-aria";
|
|
10
|
+
import "./index.es47.js";
|
|
11
|
+
import "@react-stately/color";
|
|
12
|
+
import "./index.es49.js";
|
|
13
|
+
import "./index.es50.js";
|
|
14
|
+
import "./index.es51.js";
|
|
8
15
|
import "./index.es11.js";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
|
|
16
|
+
import "./index.es12.js";
|
|
17
|
+
import { Label as M } from "./index.es13.js";
|
|
18
|
+
import "@internationalized/date";
|
|
19
|
+
import "./index.es52.js";
|
|
20
|
+
import "./index.es15.js";
|
|
21
|
+
import "./index.es53.js";
|
|
22
|
+
import "./index.es17.js";
|
|
23
|
+
import "./index.es54.js";
|
|
24
|
+
import "./index.es21.js";
|
|
25
|
+
import "./index.es22.js";
|
|
26
|
+
import "./index.es55.js";
|
|
27
|
+
import { progressBarVariants as S, progressFillVariants as $ } from "./index.es56.js";
|
|
28
|
+
import "./index.es57.js";
|
|
29
|
+
import "./index.es58.js";
|
|
30
|
+
import "./index.es26.js";
|
|
31
|
+
import { Tooltip as k } from "./index.es34.js";
|
|
32
|
+
import { TooltipTrigger as z } from "./index.es35.js";
|
|
33
|
+
import "./index.es60.js";
|
|
34
|
+
import "./index.es29.js";
|
|
35
|
+
import "./index.es30.js";
|
|
36
|
+
import "./index.es31.js";
|
|
37
|
+
import "./index.es61.js";
|
|
38
|
+
import "./index.es33.js";
|
|
39
|
+
import { Text as d } from "./index.es36.js";
|
|
40
|
+
import "./index.es62.js";
|
|
41
|
+
const vt = (f) => {
|
|
13
42
|
const {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
43
|
+
className: h,
|
|
44
|
+
classNameLabel: N,
|
|
45
|
+
label: o,
|
|
46
|
+
variant: p = "primary",
|
|
47
|
+
barClassName: u,
|
|
48
|
+
fillClassName: g,
|
|
49
|
+
valueTextClassName: n,
|
|
50
|
+
isLoading: e = !1,
|
|
51
|
+
showPercentage: x = !0,
|
|
52
|
+
percentageDisplayMode: i = "text",
|
|
53
|
+
positionTooltip: j = "top",
|
|
54
|
+
modeTooltip: b = "dark",
|
|
55
|
+
maxValue: w = 100,
|
|
56
|
+
minValue: y = 0,
|
|
57
|
+
valueCustomLabel: r,
|
|
58
|
+
valuePosition: c = "right",
|
|
59
|
+
classNameTooltip: v,
|
|
60
|
+
tooltipMessage: a,
|
|
61
|
+
barStyle: C = {},
|
|
62
|
+
fillStyle: T = {},
|
|
27
63
|
...L
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
) })
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
} = f, P = s("flex w-full flex-col gap-2 text-neutral-900", h), B = s(S({ variant: p }), u), V = s($({ variant: p }), g);
|
|
65
|
+
return /* @__PURE__ */ t.jsx(I, { className: P, maxValue: w, minValue: y, ...L, children: ({ percentage: l, valueText: m }) => /* @__PURE__ */ t.jsxs(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
className: s("flex w-full items-center gap-2", {
|
|
69
|
+
"items-end": o
|
|
70
|
+
}),
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ t.jsxs("div", { className: "flex w-full flex-col gap-1", children: [
|
|
73
|
+
o ? /* @__PURE__ */ t.jsx(M, { labelClassName: s("leading-[19.07px] text-left", N), children: o }) : null,
|
|
74
|
+
/* @__PURE__ */ t.jsxs(
|
|
75
|
+
z,
|
|
76
|
+
{
|
|
77
|
+
isDisabled: i === "text" && !a || e,
|
|
78
|
+
className: "items-start",
|
|
79
|
+
delay: 90,
|
|
80
|
+
closeDelay: 200,
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ t.jsx("div", { className: B, style: C, children: /* @__PURE__ */ t.jsx(
|
|
83
|
+
D.div,
|
|
84
|
+
{
|
|
85
|
+
className: V,
|
|
86
|
+
style: { width: e ? "100%" : `${l}%`, ...T },
|
|
87
|
+
animate: e ? { x: ["-100%", "100%"] } : { width: l + "%", x: [0, 0] },
|
|
88
|
+
transition: e ? { repeat: 1 / 0, duration: 1, ease: "easeInOut" } : {}
|
|
89
|
+
}
|
|
90
|
+
) }),
|
|
91
|
+
/* @__PURE__ */ t.jsx(
|
|
92
|
+
k,
|
|
93
|
+
{
|
|
94
|
+
className: s("text-xs", v),
|
|
95
|
+
style: i === "tooltip" ? { left: l + "%" } : {},
|
|
96
|
+
mode: b,
|
|
97
|
+
size: "sm",
|
|
98
|
+
placement: j,
|
|
99
|
+
children: a && i === "text" ? a : r || m
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
!e && x && i === "text" && c === "bottom" && /* @__PURE__ */ t.jsx("div", { className: "mt-0.5 self-end", children: /* @__PURE__ */ t.jsx(d, { className: s("whitespace-nowrap text-xs text-neutral-900", n), children: r || m }) })
|
|
106
|
+
] }),
|
|
107
|
+
!e && x && i === "text" && c === "right" && /* @__PURE__ */ t.jsx("div", { className: o ? "-mb-0.5" : "", children: /* @__PURE__ */ t.jsx(d, { className: s("whitespace-nowrap text-xs text-neutral-900", n), children: r || m }) })
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
) });
|
|
75
111
|
};
|
|
76
112
|
export {
|
|
77
|
-
|
|
113
|
+
vt as ProgressBar
|
|
78
114
|
};
|
package/dist/index.es25.js
CHANGED
|
@@ -1,146 +1,78 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./index.
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
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
|
-
p.innerText = `+${s.length}`, p.style.visibility = "hidden", p.style.position = "absolute", n.appendChild(p);
|
|
47
|
-
const v = p.offsetWidth;
|
|
48
|
-
n.removeChild(p);
|
|
49
|
-
for (let w = 0; w < a.length; w++) {
|
|
50
|
-
const E = a[w].getBoundingClientRect().width, W = 8;
|
|
51
|
-
if (c + E + W > n.offsetWidth - v)
|
|
52
|
-
break;
|
|
53
|
-
c += E + W, h++;
|
|
54
|
-
}
|
|
55
|
-
h < s.length ? (u(Math.max(1, h)), T(!0)) : (u(s.length), T(!1)), A(!1);
|
|
56
|
-
}));
|
|
57
|
-
};
|
|
58
|
-
i();
|
|
59
|
-
const o = new ResizeObserver(i);
|
|
60
|
-
return o.observe(m.current), () => {
|
|
61
|
-
o == null || o.disconnect();
|
|
62
|
-
};
|
|
63
|
-
}, [s]);
|
|
64
|
-
const Z = P("flex w-full flex-col gap-1 !min-w-[150px]", _), D = (i) => {
|
|
65
|
-
t == null || t((s == null ? void 0 : s.filter((o) => o !== i)) ?? []);
|
|
66
|
-
};
|
|
67
|
-
return /* @__PURE__ */ r.jsxs(
|
|
68
|
-
S,
|
|
69
|
-
{
|
|
70
|
-
isDisabled: x,
|
|
71
|
-
className: Z,
|
|
72
|
-
placeholder: O,
|
|
73
|
-
onSelectionChange: (i) => {
|
|
74
|
-
if (i === b && e === "multiple") {
|
|
75
|
-
if (s.length === l.length)
|
|
76
|
-
t == null || t([]);
|
|
77
|
-
else {
|
|
78
|
-
const c = l.map((a) => a[j]);
|
|
79
|
-
t == null || t(c);
|
|
80
|
-
}
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
const o = s != null && s.includes(i) ? s.filter((c) => c !== i) : [...s, i], n = [i];
|
|
84
|
-
e === "multiple" ? t == null || t(o) : (d(!1), t == null || t(n));
|
|
85
|
-
},
|
|
86
|
-
children: [
|
|
87
|
-
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
88
|
-
L ? /* @__PURE__ */ r.jsx(
|
|
89
|
-
it,
|
|
90
|
-
{
|
|
91
|
-
labelClassName: P("leading-[19.07px] text-left mb-[1px]", {
|
|
92
|
-
"text-neutral-700": x,
|
|
93
|
-
classNameLabel: B
|
|
94
|
-
}),
|
|
95
|
-
isRequired: $,
|
|
96
|
-
tooltipText: F,
|
|
97
|
-
tooltipSupportText: H,
|
|
98
|
-
tooltipProps: g,
|
|
99
|
-
children: L
|
|
100
|
-
}
|
|
101
|
-
) : /* @__PURE__ */ r.jsx("div", {}),
|
|
102
|
-
R && /* @__PURE__ */ r.jsx("div", { className: "relative -mb-2 mr-20 flex self-end", children: /* @__PURE__ */ r.jsx(ot, { mode: G, className: "mr-2", placement: "none", children: /* @__PURE__ */ r.jsx("p", { className: "whitespace-nowrap text-xs", children: R }) }) })
|
|
103
|
-
] }),
|
|
104
|
-
/* @__PURE__ */ r.jsx(
|
|
105
|
-
rt,
|
|
106
|
-
{
|
|
107
|
-
isDisabled: x,
|
|
108
|
-
size: q,
|
|
109
|
-
selectButtonClassName: k,
|
|
110
|
-
setIsOpen: d,
|
|
111
|
-
isOpen: M,
|
|
112
|
-
value: s,
|
|
113
|
-
placeholder: O,
|
|
114
|
-
items: l,
|
|
115
|
-
keyIdName: j,
|
|
116
|
-
keyLabelName: V,
|
|
117
|
-
visibleItems: U,
|
|
118
|
-
handleDeleteOptionSelected: D,
|
|
119
|
-
maxLengthTextOption: 12,
|
|
120
|
-
hiddenDiscardButton: z,
|
|
121
|
-
containerRef: m,
|
|
122
|
-
setTooltipMessage: Q,
|
|
123
|
-
hasOverflow: X,
|
|
124
|
-
isCalculatingChips: Y
|
|
125
|
-
}
|
|
126
|
-
),
|
|
127
|
-
/* @__PURE__ */ r.jsx(
|
|
128
|
-
tt,
|
|
129
|
-
{
|
|
130
|
-
isOpen: M,
|
|
131
|
-
placement: "bottom start",
|
|
132
|
-
className: "custom-scrollbar !max-h-[185px] w-[--trigger-width] overflow-y-auto rounded-md bg-white shadow-lg ring-1 ring-black/5",
|
|
133
|
-
onOpenChange: d,
|
|
134
|
-
children: /* @__PURE__ */ r.jsxs(st, { items: l, className: "p-1 outline-none", children: [
|
|
135
|
-
e === "multiple" && /* @__PURE__ */ r.jsx(lt, { id: b, children: J }, b),
|
|
136
|
-
Array.isArray(l) && (l == null ? void 0 : l.map((i) => N ? N(i) : null))
|
|
137
|
-
] })
|
|
138
|
-
}
|
|
139
|
-
)
|
|
140
|
-
]
|
|
141
|
-
}
|
|
1
|
+
import { j as s } from "./index.es38.js";
|
|
2
|
+
import { SearchIcon as P, CrossIcon as y } from "./index.es40.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.es39.js";
|
|
6
|
+
import { useDebouncedValue as _ } from "./index.es70.js";
|
|
7
|
+
import { IconButton as T } from "./index.es11.js";
|
|
8
|
+
import "./index.es12.js";
|
|
9
|
+
import { Label as $ } from "./index.es13.js";
|
|
10
|
+
import { inputVariants as k } from "./index.es57.js";
|
|
11
|
+
import { popoverVariants as q, searchOptionVariants as A } from "./index.es58.js";
|
|
12
|
+
const te = (i) => {
|
|
13
|
+
const {
|
|
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]
|
|
142
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,
|
|
65
|
+
{
|
|
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
|
|
72
|
+
}
|
|
73
|
+
) }) })
|
|
74
|
+
] });
|
|
143
75
|
};
|
|
144
76
|
export {
|
|
145
|
-
|
|
77
|
+
te as SearchField
|
|
146
78
|
};
|
package/dist/index.es26.js
CHANGED
|
@@ -1,42 +1,96 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import { j as l } from "./index.es38.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.es39.js";
|
|
5
|
+
import "./index.es12.js";
|
|
6
|
+
import { Label as J } from "./index.es13.js";
|
|
7
|
+
import { PopoverContent as K } from "./index.es66.js";
|
|
8
|
+
import { SelectContent as Q } from "./index.es71.js";
|
|
9
|
+
import { selectInputPopoverVariants as U } from "./index.es49.js";
|
|
10
|
+
const W = (S, v) => {
|
|
11
|
+
const {
|
|
12
|
+
label: p,
|
|
13
|
+
items: b,
|
|
14
|
+
selectionMode: s = "single",
|
|
15
|
+
value: m,
|
|
16
|
+
defaultValue: f,
|
|
17
|
+
placeholder: N = "Select",
|
|
18
|
+
isDisabled: r = !1,
|
|
19
|
+
isRequired: g = !1,
|
|
20
|
+
size: j = "xs",
|
|
21
|
+
className: C,
|
|
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 : s === "multiple" ? [] : null), i = m !== void 0, a = i ? m : z, B = (t) => {
|
|
36
|
+
if (s === "multiple" && a && Array.isArray(a)) {
|
|
37
|
+
const e = a.filter((_) => _ !== t);
|
|
38
|
+
i || x(e), o && o(e);
|
|
37
39
|
}
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
+
}, E = (t) => {
|
|
41
|
+
let e;
|
|
42
|
+
s === "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", C),
|
|
45
|
+
selectionMode: s,
|
|
46
|
+
isDisabled: r,
|
|
47
|
+
value: a,
|
|
48
|
+
onChange: E,
|
|
49
|
+
...D
|
|
50
|
+
};
|
|
51
|
+
return /* @__PURE__ */ l.jsxs(G, { ...M, children: [
|
|
52
|
+
p ? /* @__PURE__ */ l.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
|
+
) : /* @__PURE__ */ l.jsx("div", {}),
|
|
66
|
+
/* @__PURE__ */ l.jsx(
|
|
67
|
+
Q,
|
|
68
|
+
{
|
|
69
|
+
ref: v,
|
|
70
|
+
isOpen: d,
|
|
71
|
+
setIsOpen: n,
|
|
72
|
+
size: j,
|
|
73
|
+
isDisabled: r,
|
|
74
|
+
classNameButton: I,
|
|
75
|
+
selectionMode: s,
|
|
76
|
+
maxLengthTextOption: L,
|
|
77
|
+
handleDeleteOptionSelected: B,
|
|
78
|
+
placeholder: N
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ l.jsx(H, { className: c(U(), P), isOpen: d, onOpenChange: n, children: /* @__PURE__ */ l.jsx(
|
|
82
|
+
K,
|
|
83
|
+
{
|
|
84
|
+
enableSearch: F,
|
|
85
|
+
contains: q,
|
|
86
|
+
classNameSearchField: R,
|
|
87
|
+
classNameSearchFieldInput: T,
|
|
88
|
+
placeholderSearch: V,
|
|
89
|
+
items: b
|
|
90
|
+
}
|
|
91
|
+
) })
|
|
92
|
+
] });
|
|
93
|
+
}, ae = k(W);
|
|
40
94
|
export {
|
|
41
|
-
|
|
95
|
+
ae as SelectInput
|
|
42
96
|
};
|
package/dist/index.es27.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as m } from "./index.es38.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
|
-
import { cn as F } from "./index.
|
|
5
|
-
import { SliderContainerTrack as G } from "./index.
|
|
6
|
-
import { validateMinDistance as H } from "./index.
|
|
4
|
+
import { cn as F } from "./index.es39.js";
|
|
5
|
+
import { SliderContainerTrack as G } from "./index.es63.js";
|
|
6
|
+
import { validateMinDistance as H } from "./index.es64.js";
|
|
7
7
|
const U = ({
|
|
8
8
|
type: r = "single",
|
|
9
9
|
showTypeValue: A = "default",
|
package/dist/index.es28.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as c } from "./index.es38.js";
|
|
2
|
-
import { CheckIcon as h } from "./index.
|
|
2
|
+
import { CheckIcon as h } from "./index.es40.js";
|
|
3
3
|
import { useState as j } from "react";
|
|
4
4
|
import { Button as S } from "react-aria-components";
|
|
5
|
-
import { cn as k } from "./index.
|
|
5
|
+
import { cn as k } from "./index.es39.js";
|
|
6
6
|
import { statusChipVariants as I } from "./index.es60.js";
|
|
7
7
|
const F = ({
|
|
8
8
|
size: m = "sm",
|
package/dist/index.es3.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as r } from "./index.es38.js";
|
|
2
|
-
import { MinusIcon as p, PlusIcon as x } from "./index.
|
|
3
|
-
import { cn as e } from "./index.
|
|
2
|
+
import { MinusIcon as p, PlusIcon as x } from "./index.es40.js";
|
|
3
|
+
import { cn as e } from "./index.es39.js";
|
|
4
4
|
const h = ({
|
|
5
5
|
label: t,
|
|
6
6
|
section: n,
|
package/dist/index.es31.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as n } from "./index.es38.js";
|
|
2
|
-
import { CheckIcon as I } from "./index.
|
|
2
|
+
import { CheckIcon as I } from "./index.es40.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
6
|
import z from "./index.es72.js";
|
|
7
7
|
import B from "./index.es73.js";
|
|
8
|
-
import { cn as H } from "./index.
|
|
8
|
+
import { cn as H } from "./index.es39.js";
|
|
9
9
|
import { stepVariants as R, iconVariants as $, labelVariants as E } from "./index.es74.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;
|
package/dist/index.es32.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as o } from "./index.es38.js";
|
|
2
2
|
import { Switch as u } from "react-aria-components";
|
|
3
|
-
import { cn as c } from "./index.
|
|
3
|
+
import { cn as c } from "./index.es39.js";
|
|
4
4
|
import { ContentSwitch as L } from "./index.es75.js";
|
|
5
5
|
import { SwitchIndicator as v } from "./index.es76.js";
|
|
6
6
|
import { switchVariants as b } from "./index.es61.js";
|
package/dist/index.es33.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as s } from "./index.es38.js";
|
|
|
2
2
|
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
|
-
import { cn as e } from "./index.
|
|
5
|
+
import { cn as e } from "./index.es39.js";
|
|
6
6
|
import { Tab as j } from "./index.es77.js";
|
|
7
7
|
import { TabPanel as h } from "./index.es78.js";
|
|
8
8
|
import { tabsVariants as T } from "./index.es79.js";
|
package/dist/index.es34.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as s } from "./index.es38.js";
|
|
2
2
|
import { forwardRef as f, useContext as u } from "react";
|
|
3
3
|
import { useTooltip as T, mergeProps as h } from "react-aria";
|
|
4
|
-
import { cn as e } from "./index.
|
|
4
|
+
import { cn as e } from "./index.es39.js";
|
|
5
5
|
import { TooltipContext as j } from "./index.es59.js";
|
|
6
|
-
import { tooltipVariants as N } from "./index.
|
|
6
|
+
import { tooltipVariants as N } from "./index.es80.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.es35.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as i } from "./index.es38.js";
|
|
|
2
2
|
import { useRef as a, Children as f, cloneElement as u } from "react";
|
|
3
3
|
import { useTooltipTrigger as T } from "react-aria";
|
|
4
4
|
import { useTooltipTriggerState as h } from "react-stately";
|
|
5
|
-
import { cn as x } from "./index.
|
|
5
|
+
import { cn as x } from "./index.es39.js";
|
|
6
6
|
import { TooltipContext as d } from "./index.es59.js";
|
|
7
7
|
const w = (e) => {
|
|
8
8
|
const { children: r, isDisabled: s, trigger: l, className: n } = e, t = h(e), o = a(null), { triggerProps: g, tooltipProps: m } = T({ isDisabled: s, trigger: l }, t, o), [c, p] = f.toArray(r);
|