@simpli-route/apollo-ds 0.1.54 → 0.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/InvisibleSelect/InvisibleSelect.d.ts +1 -6
- package/dist/components/InvisibleSelect/InvisibleSelectContent.d.ts +17 -0
- package/dist/components/InvisibleSelect/index.d.ts +2 -3
- package/dist/components/InvisibleSelect/types.d.ts +82 -38
- package/dist/components/InvisibleSelect/variants.d.ts +15 -13
- package/dist/components/index.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.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.cjs30.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.cjs43.js +1 -1
- package/dist/index.cjs44.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.cjs7.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es.js +10 -10
- package/dist/index.es10.js +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es13.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es16.js +119 -116
- package/dist/index.es17.js +66 -31
- package/dist/index.es18.js +2 -2
- package/dist/index.es19.js +1 -1
- package/dist/index.es23.js +2 -2
- package/dist/index.es24.js +1 -1
- package/dist/index.es25.js +17 -17
- package/dist/index.es26.js +1 -1
- package/dist/index.es27.js +2 -2
- package/dist/index.es28.js +1 -1
- package/dist/index.es30.js +1 -1
- package/dist/index.es34.js +3 -3
- package/dist/index.es35.js +3 -3
- package/dist/index.es36.js +1 -1
- package/dist/index.es37.js +1 -1
- package/dist/index.es38.js +1 -1
- package/dist/index.es39.js +1 -1
- package/dist/index.es4.js +1 -1
- package/dist/index.es43.js +30 -41
- package/dist/index.es44.js +30 -171
- package/dist/index.es46.js +17 -33
- package/dist/index.es47.js +16 -79
- package/dist/index.es48.js +15 -129
- package/dist/index.es49.js +26 -65
- package/dist/index.es5.js +19 -19
- package/dist/index.es50.js +171 -3
- package/dist/index.es51.js +61 -9
- package/dist/index.es52.js +98 -118
- package/dist/index.es53.js +48 -100
- package/dist/index.es54.js +3 -115
- package/dist/index.es55.js +18 -104
- package/dist/index.es56.js +140 -24
- package/dist/index.es57.js +129 -7
- package/dist/index.es58.js +72 -74
- package/dist/index.es59.js +98 -24
- package/dist/index.es6.js +1 -1
- package/dist/index.es60.js +32 -158
- package/dist/index.es61.js +7 -91
- package/dist/index.es62.js +109 -14
- package/dist/index.es63.js +40 -30
- package/dist/index.es64.js +159 -17
- package/dist/index.es65.js +90 -15
- package/dist/index.es66.js +21 -15
- package/dist/index.es67.js +7 -6
- package/dist/index.es7.js +1 -1
- package/dist/index.es73.js +1 -1
- package/dist/index.es79.js +10 -19
- package/dist/index.es8.js +3 -3
- package/dist/index.es80.js +10 -20
- package/dist/index.es81.js +45 -10
- package/dist/index.es82.js +19 -10
- package/dist/index.es83.js +17 -42
- package/dist/index.es9.js +2 -2
- package/dist/stories/InvisibleSelect.stories.d.ts +29 -80
- package/dist/style.css +11 -60
- package/package.json +1 -1
- package/dist/components/InvisibleSelect/InvisibleSelect.test.d.ts +0 -1
- package/dist/components/InvisibleSelect/InvisibleSelectItem.d.ts +0 -25
package/dist/index.es65.js
CHANGED
|
@@ -1,19 +1,94 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
|
2
|
+
const s = e("relative rounded-full transition-colors duration-300", {
|
|
3
|
+
variants: {
|
|
4
|
+
isSelected: {
|
|
5
|
+
true: "bg-primary-500",
|
|
6
|
+
false: "bg-neutral-50 border border-primary-200"
|
|
7
|
+
},
|
|
8
|
+
isDisabled: {
|
|
9
|
+
true: "cursor-not-allowed bg-neutral-400 border-none",
|
|
10
|
+
false: "cursor-pointer"
|
|
11
|
+
},
|
|
12
|
+
isHoveredWhenOff: {
|
|
13
|
+
true: "bg-neutral-200 border-primary-700",
|
|
14
|
+
false: ""
|
|
15
|
+
},
|
|
16
|
+
isFocusVisible: {
|
|
17
|
+
true: "ring-2 ring-sky-400 ring-offset-2",
|
|
18
|
+
false: ""
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
sm: "w-[42px] h-[24px]",
|
|
22
|
+
md: "w-[56px] h-[32px]"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
size: "md",
|
|
27
|
+
isSelected: !1,
|
|
28
|
+
isDisabled: !1,
|
|
29
|
+
isFocusVisible: !1,
|
|
30
|
+
isHoveredWhenOff: !1
|
|
31
|
+
},
|
|
32
|
+
compoundVariants: [
|
|
33
|
+
// Hover cuando el switch está apagado y no deshabilitado
|
|
34
|
+
{
|
|
35
|
+
isSelected: !1,
|
|
36
|
+
isDisabled: !1,
|
|
37
|
+
class: "hover:bg-neutral-200 hover:border-primary-700"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
isSelected: !0,
|
|
41
|
+
isDisabled: !1,
|
|
42
|
+
class: "hover:bg-primary-700"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
isSelected: !1,
|
|
46
|
+
isDisabled: !0,
|
|
47
|
+
class: "bg-neutral-400 border-none"
|
|
48
|
+
},
|
|
7
49
|
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
spellCheck: !1,
|
|
12
|
-
autoComplete: "off",
|
|
13
|
-
...r
|
|
50
|
+
isSelected: !0,
|
|
51
|
+
isDisabled: !0,
|
|
52
|
+
class: "bg-neutral-500"
|
|
14
53
|
}
|
|
15
|
-
|
|
16
|
-
}
|
|
54
|
+
]
|
|
55
|
+
}), a = e(
|
|
56
|
+
"absolute top-1/2 transform -translate-y-1/2 transition-all duration-300 rounded-full",
|
|
57
|
+
{
|
|
58
|
+
variants: {
|
|
59
|
+
isSelected: {
|
|
60
|
+
true: "bg-primary-50",
|
|
61
|
+
false: "bg-primary-200 border border-primary-200"
|
|
62
|
+
},
|
|
63
|
+
isDisabled: {
|
|
64
|
+
true: "bg-neutral-600 border-none",
|
|
65
|
+
false: ""
|
|
66
|
+
},
|
|
67
|
+
isHoveredWhenOff: {
|
|
68
|
+
true: "bg-primary-700 border-primary-700",
|
|
69
|
+
false: ""
|
|
70
|
+
},
|
|
71
|
+
size: {
|
|
72
|
+
sm: "w-[20px] h-[20px]",
|
|
73
|
+
md: "w-[24px] h-[24px]"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
defaultVariants: {
|
|
77
|
+
size: "md",
|
|
78
|
+
isSelected: !1,
|
|
79
|
+
isDisabled: !1,
|
|
80
|
+
isHoveredWhenOff: !1
|
|
81
|
+
},
|
|
82
|
+
compoundVariants: [
|
|
83
|
+
{
|
|
84
|
+
isSelected: !0,
|
|
85
|
+
isDisabled: !0,
|
|
86
|
+
class: "bg-neutral-400"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
);
|
|
17
91
|
export {
|
|
18
|
-
|
|
92
|
+
a as indicatorVariants,
|
|
93
|
+
s as switchVariants
|
|
19
94
|
};
|
package/dist/index.es66.js
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
...e,
|
|
12
|
-
children: /* @__PURE__ */ r.jsx(l, { className: "size-full", children: /* @__PURE__ */ r.jsx(i, { className: "box-border size-5 rounded-full border-2 border-white shadow-[0_0_0_1px_black,inset_0_0_0_1px_black] data-[focus-visible]:size-6" }) })
|
|
1
|
+
import { cva as t } from "class-variance-authority";
|
|
2
|
+
const o = t("scroll-m-12 text-neutral-900", {
|
|
3
|
+
variants: {
|
|
4
|
+
size: {
|
|
5
|
+
h1: "text-[2rem] font-bold leading-10",
|
|
6
|
+
h2: "text-[1.75rem] font-bold leading-9",
|
|
7
|
+
h3: "text-2xl font-semibold",
|
|
8
|
+
h4: "text-[1.375rem] font-semibold leading-7",
|
|
9
|
+
h5: "text-xl font-semibold",
|
|
10
|
+
h6: "text-lg font-semibold"
|
|
13
11
|
}
|
|
14
|
-
|
|
15
|
-
}
|
|
12
|
+
}
|
|
13
|
+
}), n = t("", {
|
|
14
|
+
variants: {
|
|
15
|
+
type: {
|
|
16
|
+
body: "text-base text-neutral-900",
|
|
17
|
+
caption: "text-xs text-neutral-700"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
16
21
|
export {
|
|
17
|
-
|
|
22
|
+
n as textVariants,
|
|
23
|
+
o as titleVariants
|
|
18
24
|
};
|
package/dist/index.es67.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "./index.es40.js";
|
|
2
|
-
import { CrossCircleIcon as
|
|
3
|
-
import { Autocomplete as
|
|
2
|
+
import { CrossCircleIcon as d } from "./index.es42.js";
|
|
3
|
+
import { Autocomplete as p, SearchField as m, Input as b, Button as h, ListBox as f, ListBoxItem as g } from "react-aria-components";
|
|
4
4
|
import { cn as n } from "./index.es41.js";
|
|
5
5
|
const v = ({
|
|
6
6
|
enableSearch: a,
|
|
@@ -9,9 +9,9 @@ const v = ({
|
|
|
9
9
|
classNameSearchFieldInput: c,
|
|
10
10
|
placeholderSearch: u,
|
|
11
11
|
items: x
|
|
12
|
-
}) => /* @__PURE__ */ e.jsxs(
|
|
12
|
+
}) => /* @__PURE__ */ e.jsxs(p, { filter: o, disableAutoFocusFirst: !0, disableVirtualFocus: !0, children: [
|
|
13
13
|
a ? /* @__PURE__ */ e.jsxs(
|
|
14
|
-
|
|
14
|
+
m,
|
|
15
15
|
{
|
|
16
16
|
"aria-label": "Search",
|
|
17
17
|
className: n(
|
|
@@ -29,7 +29,7 @@ const v = ({
|
|
|
29
29
|
)
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
|
-
/* @__PURE__ */ e.jsx(h, { className: "pressed:bg-black/10 mr-1 flex w-6 items-center justify-center rounded-full border-0 bg-transparent p-1 text-center text-sm text-neutral-600 transition hover:bg-black/[5%] group-data-[empty]:invisible", children: /* @__PURE__ */ e.jsx(
|
|
32
|
+
/* @__PURE__ */ e.jsx(h, { className: "pressed:bg-black/10 mr-1 flex w-6 items-center justify-center rounded-full border-0 bg-transparent p-1 text-center text-sm text-neutral-600 transition hover:bg-black/[5%] group-data-[empty]:invisible", children: /* @__PURE__ */ e.jsx(d, { "aria-hidden": !0, className: "size-4" }) })
|
|
33
33
|
]
|
|
34
34
|
}
|
|
35
35
|
) : null,
|
|
@@ -44,7 +44,8 @@ const v = ({
|
|
|
44
44
|
t ? "bg-primary-100 text-primary-500" : "text-primary-900",
|
|
45
45
|
l && "bg-primary-50 text-primary-500",
|
|
46
46
|
(l || s) && !t && "bg-primary-50",
|
|
47
|
-
(l || s) && t && "bg-primary-200"
|
|
47
|
+
(l || s) && t && "bg-primary-200",
|
|
48
|
+
(r == null ? void 0 : r.isDisabled) && "cursor-not-allowed opacity-50"
|
|
48
49
|
),
|
|
49
50
|
children: ({ isSelected: t }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
50
51
|
/* @__PURE__ */ e.jsx("span", { children: r.label }),
|
package/dist/index.es7.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as r } from "./index.es40.js";
|
|
2
2
|
import { usePress as j, useHover as b, useFocusRing as F } from "react-aria";
|
|
3
3
|
import { cn as N } from "./index.es41.js";
|
|
4
|
-
import { assistChipVariants as C } from "./index.
|
|
4
|
+
import { assistChipVariants as C } from "./index.es43.js";
|
|
5
5
|
const q = (i) => {
|
|
6
6
|
const {
|
|
7
7
|
style: t = "square",
|
package/dist/index.es73.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as e } from "./index.es40.js";
|
|
|
2
2
|
import { CrossCircleIcon as w } from "./index.es42.js";
|
|
3
3
|
import { Button as x, SelectValue as N } from "react-aria-components";
|
|
4
4
|
import { cn as r } from "./index.es41.js";
|
|
5
|
-
import { selectInputButtonVariants as v, selectInputBadgeVariants as V } from "./index.
|
|
5
|
+
import { selectInputButtonVariants as v, selectInputBadgeVariants as V } from "./index.es51.js";
|
|
6
6
|
const P = ({
|
|
7
7
|
ref: C,
|
|
8
8
|
isOpen: a,
|
package/dist/index.es79.js
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
isDisabled: l,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
renderLabelIcon: m
|
|
11
|
-
}) => !e && !x && !n ? null : /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col", children: [
|
|
12
|
-
e ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-x-1", children: [
|
|
13
|
-
/* @__PURE__ */ t.jsx("p", { className: c("text-sm font-semibold", l ? "text-neutral-600" : "text-neutral-900"), children: e }),
|
|
14
|
-
m ? /* @__PURE__ */ t.jsx(t.Fragment, { children: m }) : null
|
|
15
|
-
] }) : n,
|
|
16
|
-
x && !s && /* @__PURE__ */ t.jsx("p", { className: c("text-xs", l ? "text-neutral-600" : "text-neutral-800"), children: x }),
|
|
17
|
-
r && s && /* @__PURE__ */ t.jsx("p", { className: "text-sm text-red-500", children: s })
|
|
18
|
-
] });
|
|
1
|
+
import { j as p } from "./index.es40.js";
|
|
2
|
+
import { useRef as f } from "react";
|
|
3
|
+
import { useTab as u } from "react-aria";
|
|
4
|
+
import { cn as x } from "./index.es41.js";
|
|
5
|
+
import { tabVariants as y } from "./index.es81.js";
|
|
6
|
+
const D = (t) => {
|
|
7
|
+
const { className: i, item: r, orientation: n, state: s, id: a = void 0 } = t, { key: e, rendered: c } = r, m = s.selectedKey === e, d = s.disabledKeys.has(e) || (s == null ? void 0 : s.isDisabled), o = f(null), { tabProps: l } = u({ key: String(e) }, s, o), b = x(y({ isActive: m, orientation: n, isDisabledTab: d }), i);
|
|
8
|
+
return /* @__PURE__ */ p.jsx("div", { ...l, ref: o, className: b, id: a, children: c });
|
|
9
|
+
};
|
|
19
10
|
export {
|
|
20
|
-
|
|
11
|
+
D as Tab
|
|
21
12
|
};
|
package/dist/index.es8.js
CHANGED
|
@@ -3,9 +3,9 @@ import { parseColor as h } from "@react-stately/color";
|
|
|
3
3
|
import { useState as a, useEffect as w } from "react";
|
|
4
4
|
import { ColorPicker as L, Label as R, DialogTrigger as T, Button as W, ColorSwatch as $, Popover as q, Dialog as G } from "react-aria-components";
|
|
5
5
|
import { cn as J } from "./index.es41.js";
|
|
6
|
-
import { ColorArea as K } from "./index.
|
|
7
|
-
import { ColorField as M } from "./index.
|
|
8
|
-
import { ColorSlider as Q } from "./index.
|
|
6
|
+
import { ColorArea as K } from "./index.es46.js";
|
|
7
|
+
import { ColorField as M } from "./index.es47.js";
|
|
8
|
+
import { ColorSlider as Q } from "./index.es48.js";
|
|
9
9
|
const ne = (v) => {
|
|
10
10
|
const {
|
|
11
11
|
value: l,
|
package/dist/index.es80.js
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
isDisabled: o,
|
|
11
|
-
size: a,
|
|
12
|
-
isHoveredWhenOff: f && !r
|
|
13
|
-
})
|
|
14
|
-
),
|
|
15
|
-
style: {
|
|
16
|
-
left: r ? `${t.onLeft}px` : `${t.offLeft}px`
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
);
|
|
1
|
+
import { j as m } from "./index.es40.js";
|
|
2
|
+
import { useRef as l } from "react";
|
|
3
|
+
import { useTabPanel as p } from "react-aria";
|
|
4
|
+
import { cn as i } from "./index.es41.js";
|
|
5
|
+
const P = (r) => {
|
|
6
|
+
var t;
|
|
7
|
+
const { className: o, state: s, ...n } = r, e = l(null), { tabPanelProps: a } = p(n, s, e), c = i("", o);
|
|
8
|
+
return /* @__PURE__ */ m.jsx("div", { ...a, ref: e, className: c, children: (t = s.selectedItem) == null ? void 0 : t.props.children });
|
|
9
|
+
};
|
|
20
10
|
export {
|
|
21
|
-
|
|
11
|
+
P as TabPanel
|
|
22
12
|
};
|
package/dist/index.es81.js
CHANGED
|
@@ -1,12 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
import { cva as r } from "class-variance-authority";
|
|
2
|
+
const t = r("flex h-full max-h-12", {
|
|
3
|
+
variants: {
|
|
4
|
+
orientation: {
|
|
5
|
+
horizontal: "flex-col",
|
|
6
|
+
vertical: "flex-row"
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}), a = r(
|
|
10
|
+
"group inline-flex cursor-pointer items-center px-4 py-3 text-sm font-semibold focus-visible:outline-none",
|
|
11
|
+
{
|
|
12
|
+
variants: {
|
|
13
|
+
isActive: {
|
|
14
|
+
true: "bg-primary-50 text-primary-500 ",
|
|
15
|
+
false: "text-primary-300 hover:text-primary-500 hover:border-primary-500"
|
|
16
|
+
},
|
|
17
|
+
isDisabledTab: {
|
|
18
|
+
true: "",
|
|
19
|
+
false: ""
|
|
20
|
+
},
|
|
21
|
+
orientation: {
|
|
22
|
+
horizontal: "border-b-2 border-transparent",
|
|
23
|
+
vertical: "border-r-2 border-transparent"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
compoundVariants: [
|
|
27
|
+
{
|
|
28
|
+
isDisabledTab: !0,
|
|
29
|
+
orientation: "horizontal",
|
|
30
|
+
class: "border-b-2 cursor-not-allowed !border-neutral-600 !text-neutral-600 bg-neutral-200"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
isDisabledTab: !0,
|
|
34
|
+
orientation: "vertical",
|
|
35
|
+
class: "border-r-2 cursor-not-allowed !border-neutral-600 !text-neutral-600 bg-neutral-200"
|
|
36
|
+
},
|
|
37
|
+
{ isActive: !0, orientation: "horizontal", class: "border-b-2 border-primary-500" },
|
|
38
|
+
{ isActive: !1, orientation: "horizontal", class: "border-b-2 border-primary-300" },
|
|
39
|
+
{ isActive: !1, orientation: "vertical", class: "border-r-2 border-primary-200" },
|
|
40
|
+
{ isActive: !0, orientation: "vertical", class: "border-r-2 border-primary-500" }
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
);
|
|
10
44
|
export {
|
|
11
|
-
|
|
45
|
+
a as tabVariants,
|
|
46
|
+
t as tabsVariants
|
|
12
47
|
};
|
package/dist/index.es82.js
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { j as t } from "./index.es40.js";
|
|
2
|
+
import { cn as c } from "./index.es41.js";
|
|
3
|
+
const i = ({
|
|
4
|
+
label: e,
|
|
5
|
+
description: x,
|
|
6
|
+
errorMessage: s,
|
|
7
|
+
isDisabled: l,
|
|
8
|
+
isInvalid: r,
|
|
9
|
+
children: n,
|
|
10
|
+
renderLabelIcon: m
|
|
11
|
+
}) => !e && !x && !n ? null : /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col", children: [
|
|
12
|
+
e ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-x-1", children: [
|
|
13
|
+
/* @__PURE__ */ t.jsx("p", { className: c("text-sm font-semibold", l ? "text-neutral-600" : "text-neutral-900"), children: e }),
|
|
14
|
+
m ? /* @__PURE__ */ t.jsx(t.Fragment, { children: m }) : null
|
|
15
|
+
] }) : n,
|
|
16
|
+
x && !s && /* @__PURE__ */ t.jsx("p", { className: c("text-xs", l ? "text-neutral-600" : "text-neutral-800"), children: x }),
|
|
17
|
+
r && s && /* @__PURE__ */ t.jsx("p", { className: "text-sm text-red-500", children: s })
|
|
18
|
+
] });
|
|
10
19
|
export {
|
|
11
|
-
|
|
20
|
+
i as ContentSwitch
|
|
12
21
|
};
|
package/dist/index.es83.js
CHANGED
|
@@ -1,47 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
vertical: "flex-row"
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}), a = r(
|
|
10
|
-
"group inline-flex cursor-pointer items-center px-4 py-3 text-sm font-semibold focus-visible:outline-none",
|
|
1
|
+
import { j as i } from "./index.es40.js";
|
|
2
|
+
import { cn as m } from "./index.es41.js";
|
|
3
|
+
import { indicatorVariants as n } from "./index.es65.js";
|
|
4
|
+
const c = ({ isSelected: r, isDisabled: o, isHovered: f, size: a, dimensions: t }) => /* @__PURE__ */ i.jsx(
|
|
5
|
+
"div",
|
|
11
6
|
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
vertical: "border-r-2 border-transparent"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
compoundVariants: [
|
|
27
|
-
{
|
|
28
|
-
isDisabledTab: !0,
|
|
29
|
-
orientation: "horizontal",
|
|
30
|
-
class: "border-b-2 cursor-not-allowed !border-neutral-600 !text-neutral-600 bg-neutral-200"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
isDisabledTab: !0,
|
|
34
|
-
orientation: "vertical",
|
|
35
|
-
class: "border-r-2 cursor-not-allowed !border-neutral-600 !text-neutral-600 bg-neutral-200"
|
|
36
|
-
},
|
|
37
|
-
{ isActive: !0, orientation: "horizontal", class: "border-b-2 border-primary-500" },
|
|
38
|
-
{ isActive: !1, orientation: "horizontal", class: "border-b-2 border-primary-300" },
|
|
39
|
-
{ isActive: !1, orientation: "vertical", class: "border-r-2 border-primary-200" },
|
|
40
|
-
{ isActive: !0, orientation: "vertical", class: "border-r-2 border-primary-500" }
|
|
41
|
-
]
|
|
7
|
+
className: m(
|
|
8
|
+
n({
|
|
9
|
+
isSelected: r,
|
|
10
|
+
isDisabled: o,
|
|
11
|
+
size: a,
|
|
12
|
+
isHoveredWhenOff: f && !r
|
|
13
|
+
})
|
|
14
|
+
),
|
|
15
|
+
style: {
|
|
16
|
+
left: r ? `${t.onLeft}px` : `${t.offLeft}px`
|
|
17
|
+
}
|
|
42
18
|
}
|
|
43
19
|
);
|
|
44
20
|
export {
|
|
45
|
-
|
|
46
|
-
t as tabsVariants
|
|
21
|
+
c as SwitchIndicator
|
|
47
22
|
};
|
package/dist/index.es9.js
CHANGED
|
@@ -5,8 +5,8 @@ import { useFilter as K, Button as Q, Select as T, Popover as U } from "react-ar
|
|
|
5
5
|
import { cn as p } from "./index.es41.js";
|
|
6
6
|
import { Loader as W } from "./index.es21.js";
|
|
7
7
|
import { PopoverContent as X } from "./index.es67.js";
|
|
8
|
-
import { selectInputPopoverVariants as Y } from "./index.
|
|
9
|
-
import { filterButtonVariants as Z, filterButtonBadgeVariants as _ } from "./index.
|
|
8
|
+
import { selectInputPopoverVariants as Y } from "./index.es51.js";
|
|
9
|
+
import { filterButtonVariants as Z, filterButtonBadgeVariants as _ } from "./index.es52.js";
|
|
10
10
|
const $ = ({
|
|
11
11
|
renderPosition: t,
|
|
12
12
|
leftIcon: f,
|
|
@@ -2,22 +2,27 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: (<
|
|
6
|
-
ref?: import('react').Ref<HTMLButtonElement> | undefined;
|
|
7
|
-
}) => import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>) & {
|
|
8
|
-
displayName?: string | undefined;
|
|
9
|
-
};
|
|
5
|
+
component: import('react').ForwardRefExoticComponent<import('../components').InvisibleSelectProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
10
6
|
parameters: {
|
|
11
7
|
layout: string;
|
|
12
8
|
};
|
|
13
9
|
tags: string[];
|
|
14
10
|
args: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
size: "bodyDefault";
|
|
11
|
+
selectionMode: "single";
|
|
12
|
+
size: "xs";
|
|
13
|
+
orientation: "vertical";
|
|
19
14
|
};
|
|
20
15
|
argTypes: {
|
|
16
|
+
label: {
|
|
17
|
+
control: "text";
|
|
18
|
+
};
|
|
19
|
+
placeholder: {
|
|
20
|
+
control: "text";
|
|
21
|
+
};
|
|
22
|
+
selectionMode: {
|
|
23
|
+
control: "select";
|
|
24
|
+
options: string[];
|
|
25
|
+
};
|
|
21
26
|
size: {
|
|
22
27
|
control: "select";
|
|
23
28
|
options: string[];
|
|
@@ -26,83 +31,27 @@ declare const meta: {
|
|
|
26
31
|
control: "select";
|
|
27
32
|
options: string[];
|
|
28
33
|
};
|
|
34
|
+
isDisabled: {
|
|
35
|
+
control: "boolean";
|
|
36
|
+
};
|
|
29
37
|
validationState: {
|
|
30
38
|
control: "select";
|
|
31
39
|
options: (string | undefined)[];
|
|
32
40
|
};
|
|
33
|
-
isDisabled: {
|
|
34
|
-
control: "boolean";
|
|
35
|
-
};
|
|
36
41
|
};
|
|
37
42
|
};
|
|
38
43
|
export default meta;
|
|
39
44
|
type Story = StoryObj<typeof meta>;
|
|
40
|
-
export declare const
|
|
41
|
-
export declare const Hover: Story;
|
|
42
|
-
export declare const Active: Story;
|
|
43
|
-
export declare const Error: Story;
|
|
44
|
-
export declare const Disabled: Story;
|
|
45
|
-
export declare const BodySm: Story;
|
|
46
|
-
export declare const H5: Story;
|
|
47
|
-
export declare const H3: Story;
|
|
48
|
-
export declare const Horizontal: Story;
|
|
49
|
-
export declare const HorizontalWithError: Story;
|
|
50
|
-
export declare const WithSelectedValue: Story;
|
|
51
|
-
export declare const WithDynamicItems: Story;
|
|
52
|
-
export declare const WithTooltip: Story;
|
|
53
|
-
export declare const Required: Story;
|
|
54
|
-
export declare const Controlled: {
|
|
55
|
-
render: () => import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Multiple Selection Mode Stories
|
|
59
|
-
*
|
|
60
|
-
* These stories demonstrate the InvisibleSelect component with selectionMode="multiple",
|
|
61
|
-
* allowing users to select multiple options from the dropdown list.
|
|
62
|
-
*
|
|
63
|
-
* Key Features:
|
|
64
|
-
* - Users can select multiple items by clicking on them
|
|
65
|
-
* - Selected items are visually indicated with checkmarks
|
|
66
|
-
* - The component displays the count of selected items or the selected items themselves
|
|
67
|
-
* - Each selected item can be individually deselected
|
|
68
|
-
*/
|
|
45
|
+
export declare const SingleSelection: Story;
|
|
69
46
|
export declare const MultipleSelection: Story;
|
|
70
|
-
export declare const
|
|
71
|
-
export declare const
|
|
72
|
-
export declare const
|
|
73
|
-
export declare const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
export declare const MultipleSelectionWithDynamicItems: Story;
|
|
84
|
-
export declare const MultipleSelectionHorizontal: Story;
|
|
85
|
-
/**
|
|
86
|
-
* Locale and Internationalization Support
|
|
87
|
-
*
|
|
88
|
-
* The InvisibleSelect component supports internationalization through the useLocale hook from react-aria-components.
|
|
89
|
-
* This provides proper locale-aware behavior for:
|
|
90
|
-
*
|
|
91
|
-
* - Date and number formatting
|
|
92
|
-
* - Text direction (RTL/LTR support)
|
|
93
|
-
* - Accessibility announcements
|
|
94
|
-
* - Keyboard navigation patterns
|
|
95
|
-
*
|
|
96
|
-
* The component automatically detects the user's locale and applies appropriate formatting and behavior.
|
|
97
|
-
*/
|
|
98
|
-
export declare const LocaleSupport: Story;
|
|
99
|
-
export declare const MultiLanguageExample: {
|
|
100
|
-
render: () => import("react/jsx-runtime").JSX.Element;
|
|
101
|
-
parameters: {
|
|
102
|
-
docs: {
|
|
103
|
-
description: {
|
|
104
|
-
story: string;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
};
|
|
47
|
+
export declare const MultipleSelectionWithSearch: Story;
|
|
48
|
+
export declare const SizeXS: Story;
|
|
49
|
+
export declare const SizeSM: Story;
|
|
50
|
+
export declare const SizeMD: Story;
|
|
51
|
+
export declare const SizeLG: Story;
|
|
52
|
+
export declare const Disabled: Story;
|
|
53
|
+
export declare const EmptyState: Story;
|
|
54
|
+
export declare const OrientationHorizontal: Story;
|
|
55
|
+
export declare const WithError: Story;
|
|
56
|
+
export declare const WithErrorHorizontal: Story;
|
|
57
|
+
export declare const WithDisabledItems: Story;
|