@simpli-route/apollo-ds 0.1.12 → 0.1.13
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/ProgressBar/types.d.ts +8 -0
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.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.cjs5.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.cjs7.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es10.js +3 -3
- package/dist/index.es11.js +30 -28
- package/dist/index.es14.js +2 -2
- package/dist/index.es15.js +3 -3
- package/dist/index.es16.js +3 -3
- package/dist/index.es17.js +2 -2
- package/dist/index.es18.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es2.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es23.js +22 -171
- package/dist/index.es24.js +31 -40
- package/dist/index.es25.js +167 -30
- package/dist/index.es26.js +20 -36
- package/dist/index.es27.js +57 -32
- package/dist/index.es28.js +26 -47
- package/dist/index.es29.js +44 -34
- package/dist/index.es3.js +7 -7
- package/dist/index.es30.js +45 -3
- package/dist/index.es31.js +3 -92
- package/dist/index.es32.js +87 -17
- package/dist/index.es33.js +22 -22
- package/dist/index.es34.js +11 -163
- package/dist/index.es35.js +163 -30
- package/dist/index.es36.js +26 -92
- package/dist/index.es37.js +10 -13
- package/dist/index.es38.js +1 -1
- package/dist/index.es39.js +1 -1
- package/dist/index.es4.js +2 -2
- package/dist/index.es40.js +96 -10
- package/dist/index.es41.js +12 -11
- package/dist/index.es42.js +10 -10
- package/dist/index.es43.js +11 -9
- package/dist/index.es44.js +19 -10
- package/dist/index.es45.js +17 -28
- package/dist/index.es46.js +10 -11
- package/dist/index.es47.js +10 -19
- package/dist/index.es48.js +28 -17
- package/dist/index.es5.js +1 -1
- package/dist/index.es52.js +19 -56
- package/dist/index.es53.js +19 -30
- package/dist/index.es54.js +14 -12
- package/dist/index.es55.js +12 -10
- package/dist/index.es56.js +13 -15
- package/dist/index.es57.js +30 -21
- package/dist/index.es58.js +56 -19
- package/dist/index.es6.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es9.js +1 -1
- package/dist/style.css +0 -9
- package/package.json +1 -1
package/dist/index.es10.js
CHANGED
|
@@ -2,9 +2,9 @@ import { j as r } from "./index.es21.js";
|
|
|
2
2
|
import { NumberField as g, Group as w, Input as B } from "react-aria-components";
|
|
3
3
|
import { cn as l } from "./index.es22.js";
|
|
4
4
|
import { Label as E } from "./index.es7.js";
|
|
5
|
-
import { CaptionNumberField as G } from "./index.
|
|
6
|
-
import { StepperButton as S } from "./index.
|
|
7
|
-
import { inputNumberVariant as V } from "./index.
|
|
5
|
+
import { CaptionNumberField as G } from "./index.es42.js";
|
|
6
|
+
import { StepperButton as S } from "./index.es43.js";
|
|
7
|
+
import { inputNumberVariant as V } from "./index.es27.js";
|
|
8
8
|
const H = ({
|
|
9
9
|
size: o = "sm",
|
|
10
10
|
label: i,
|
package/dist/index.es11.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { j as s } from "./index.es21.js";
|
|
2
|
-
import { motion as
|
|
3
|
-
import { ProgressBar as
|
|
2
|
+
import { motion as D } from "framer-motion";
|
|
3
|
+
import { ProgressBar as I } from "react-aria-components";
|
|
4
4
|
import "react";
|
|
5
5
|
import { cn as e } from "./index.es22.js";
|
|
6
|
-
import "./index.es23.js";
|
|
7
|
-
import "./index.es24.js";
|
|
8
|
-
import "react-aria";
|
|
9
6
|
import "./index.es25.js";
|
|
7
|
+
import "./index.es26.js";
|
|
8
|
+
import "react-aria";
|
|
9
|
+
import "./index.es24.js";
|
|
10
10
|
import "./index.es6.js";
|
|
11
|
-
import { Label as
|
|
11
|
+
import { Label as M } from "./index.es7.js";
|
|
12
12
|
import "./index.es9.js";
|
|
13
|
-
import "./index.
|
|
14
|
-
import { progressBarVariants as
|
|
15
|
-
import "./index.es28.js";
|
|
13
|
+
import "./index.es27.js";
|
|
14
|
+
import { progressBarVariants as S, progressFillVariants as $ } from "./index.es28.js";
|
|
16
15
|
import "./index.es29.js";
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import "./index.
|
|
16
|
+
import "./index.es30.js";
|
|
17
|
+
import { Tooltip as k } from "./index.es17.js";
|
|
18
|
+
import { TooltipTrigger as z } from "./index.es18.js";
|
|
19
|
+
import "./index.es32.js";
|
|
20
20
|
import "./index.es16.js";
|
|
21
21
|
import { Text as d } from "./index.es19.js";
|
|
22
|
-
import "./index.
|
|
23
|
-
const
|
|
22
|
+
import "./index.es33.js";
|
|
23
|
+
const rs = (f) => {
|
|
24
24
|
const {
|
|
25
25
|
className: h,
|
|
26
26
|
classNameLabel: N,
|
|
@@ -35,14 +35,16 @@ const as = (f) => {
|
|
|
35
35
|
positionTooltip: j = "top",
|
|
36
36
|
modeTooltip: b = "dark",
|
|
37
37
|
maxValue: w = 100,
|
|
38
|
-
minValue:
|
|
38
|
+
minValue: y = 0,
|
|
39
39
|
valueCustomLabel: a,
|
|
40
40
|
valuePosition: c = "right",
|
|
41
|
-
classNameTooltip:
|
|
41
|
+
classNameTooltip: v,
|
|
42
42
|
tooltipMessage: i,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
barStyle: C = {},
|
|
44
|
+
fillStyle: T = {},
|
|
45
|
+
...L
|
|
46
|
+
} = f, P = e("flex w-full flex-col gap-2 text-neutral-900", h), B = e(S({ variant: p }), u), V = e($({ variant: p }), g);
|
|
47
|
+
return /* @__PURE__ */ s.jsx(I, { className: P, maxValue: w, minValue: y, ...L, children: ({ percentage: o, valueText: m }) => /* @__PURE__ */ s.jsxs(
|
|
46
48
|
"div",
|
|
47
49
|
{
|
|
48
50
|
className: e("flex w-full items-center gap-2", {
|
|
@@ -50,28 +52,28 @@ const as = (f) => {
|
|
|
50
52
|
}),
|
|
51
53
|
children: [
|
|
52
54
|
/* @__PURE__ */ s.jsxs("div", { className: "flex w-full flex-col gap-1", children: [
|
|
53
|
-
r ? /* @__PURE__ */ s.jsx(
|
|
55
|
+
r ? /* @__PURE__ */ s.jsx(M, { labelClassName: e("leading-[19.07px] text-left", N), children: r }) : null,
|
|
54
56
|
/* @__PURE__ */ s.jsxs(
|
|
55
|
-
|
|
57
|
+
z,
|
|
56
58
|
{
|
|
57
59
|
isDisabled: l === "text" && !i || t,
|
|
58
60
|
className: "items-start",
|
|
59
61
|
delay: 90,
|
|
60
62
|
closeDelay: 200,
|
|
61
63
|
children: [
|
|
62
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
63
|
-
|
|
64
|
+
/* @__PURE__ */ s.jsx("div", { className: B, style: C, children: /* @__PURE__ */ s.jsx(
|
|
65
|
+
D.div,
|
|
64
66
|
{
|
|
65
|
-
className:
|
|
66
|
-
style: { width: t ? "100%" : `${o}
|
|
67
|
+
className: V,
|
|
68
|
+
style: { width: t ? "100%" : `${o}%`, ...T },
|
|
67
69
|
animate: t ? { x: ["-100%", "100%"] } : { width: o + "%", x: [0, 0] },
|
|
68
70
|
transition: t ? { repeat: 1 / 0, duration: 1, ease: "easeInOut" } : {}
|
|
69
71
|
}
|
|
70
72
|
) }),
|
|
71
73
|
/* @__PURE__ */ s.jsx(
|
|
72
|
-
|
|
74
|
+
k,
|
|
73
75
|
{
|
|
74
|
-
className: e("text-xs",
|
|
76
|
+
className: e("text-xs", v),
|
|
75
77
|
style: l === "tooltip" ? { left: o + "%" } : {},
|
|
76
78
|
mode: b,
|
|
77
79
|
size: "sm",
|
|
@@ -90,5 +92,5 @@ const as = (f) => {
|
|
|
90
92
|
) });
|
|
91
93
|
};
|
|
92
94
|
export {
|
|
93
|
-
|
|
95
|
+
rs as ProgressBar
|
|
94
96
|
};
|
package/dist/index.es14.js
CHANGED
|
@@ -2,8 +2,8 @@ import { j as m } from "./index.es21.js";
|
|
|
2
2
|
import { useState as $, useEffect as x } from "react";
|
|
3
3
|
import { Slider as b, SliderTrack as q } from "react-aria-components";
|
|
4
4
|
import { cn as z } from "./index.es22.js";
|
|
5
|
-
import { SliderContainerTrack as B } from "./index.
|
|
6
|
-
import { validateMinDistance as F } from "./index.
|
|
5
|
+
import { SliderContainerTrack as B } from "./index.es40.js";
|
|
6
|
+
import { validateMinDistance as F } from "./index.es41.js";
|
|
7
7
|
const O = ({
|
|
8
8
|
type: r = "single",
|
|
9
9
|
showTypeValue: A = "default",
|
package/dist/index.es15.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "./index.es21.js";
|
|
2
2
|
import { Switch as u } from "react-aria-components";
|
|
3
3
|
import { cn as c } from "./index.es22.js";
|
|
4
|
-
import { ContentSwitch as L } from "./index.
|
|
5
|
-
import { SwitchIndicator as v } from "./index.
|
|
6
|
-
import { switchVariants as b } from "./index.
|
|
4
|
+
import { ContentSwitch as L } from "./index.es44.js";
|
|
5
|
+
import { SwitchIndicator as v } from "./index.es45.js";
|
|
6
|
+
import { switchVariants as b } from "./index.es32.js";
|
|
7
7
|
const E = ({
|
|
8
8
|
children: f,
|
|
9
9
|
label: m,
|
package/dist/index.es16.js
CHANGED
|
@@ -3,9 +3,9 @@ import { useRef as x } from "react";
|
|
|
3
3
|
import { useTabList as b } from "react-aria";
|
|
4
4
|
import { useTabListState as d, Item as N } from "react-stately";
|
|
5
5
|
import { cn as e } from "./index.es22.js";
|
|
6
|
-
import { Tab as j } from "./index.
|
|
7
|
-
import { TabPanel as u } from "./index.
|
|
8
|
-
import { tabsVariants as h } from "./index.
|
|
6
|
+
import { Tab as j } from "./index.es46.js";
|
|
7
|
+
import { TabPanel as u } from "./index.es47.js";
|
|
8
|
+
import { tabsVariants as h } from "./index.es48.js";
|
|
9
9
|
const T = (a) => {
|
|
10
10
|
var m;
|
|
11
11
|
const { rootClassName: i, tabClassName: n, tabPanelClassName: c, orientation: o = "horizontal", id: f = void 0 } = a, t = d(a), r = x(null), { tabListProps: p } = b(a, t, r);
|
package/dist/index.es17.js
CHANGED
|
@@ -2,8 +2,8 @@ import { j as s } from "./index.es21.js";
|
|
|
2
2
|
import { forwardRef as u, useContext as T } from "react";
|
|
3
3
|
import { useTooltip as h, mergeProps as j } from "react-aria";
|
|
4
4
|
import { cn as e } from "./index.es22.js";
|
|
5
|
-
import { TooltipContext as N } from "./index.
|
|
6
|
-
import { tooltipVariants as P } from "./index.
|
|
5
|
+
import { TooltipContext as N } from "./index.es31.js";
|
|
6
|
+
import { tooltipVariants as P } from "./index.es30.js";
|
|
7
7
|
const C = u((p, i) => {
|
|
8
8
|
const { placement: m = "bottom", size: l = "md", className: a, mode: o = "dark", supportText: t, children: n, ...r } = p, { state: c, ...x } = T(N), { tooltipProps: d } = h(r, c), f = e(P({ placement: m, size: l, mode: o, hasSupportText: !!t }), a);
|
|
9
9
|
return /* @__PURE__ */ s.jsxs("span", { className: f, ...j(r, d, x), ref: i, children: [
|
package/dist/index.es18.js
CHANGED
|
@@ -3,7 +3,7 @@ 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
5
|
import { cn as x } from "./index.es22.js";
|
|
6
|
-
import { TooltipContext as d } from "./index.
|
|
6
|
+
import { TooltipContext as d } from "./index.es31.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);
|
|
9
9
|
if (!Array.isArray(r) || r.length > 2)
|
package/dist/index.es19.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as m } from "./index.es21.js";
|
|
2
2
|
import { cn as n } from "./index.es22.js";
|
|
3
|
-
import { textVariants as a } from "./index.
|
|
3
|
+
import { textVariants as a } from "./index.es33.js";
|
|
4
4
|
function x(t) {
|
|
5
5
|
const { children: s, type: o = "body", className: r } = t, e = n(a({ type: o }), r);
|
|
6
6
|
return /* @__PURE__ */ m.jsx("p", { className: e, children: s });
|
package/dist/index.es2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as m } from "./index.es21.js";
|
|
2
2
|
import { useState as g } from "react";
|
|
3
3
|
import { cn as j } from "./index.es22.js";
|
|
4
|
-
import { AccordionItem as h } from "./index.
|
|
4
|
+
import { AccordionItem as h } from "./index.es23.js";
|
|
5
5
|
const C = ({
|
|
6
6
|
items: a,
|
|
7
7
|
accordionClassName: e,
|
package/dist/index.es20.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as m } from "./index.es21.js";
|
|
2
2
|
import { cn as c } from "./index.es22.js";
|
|
3
|
-
import { titleVariants as l } from "./index.
|
|
3
|
+
import { titleVariants as l } from "./index.es33.js";
|
|
4
4
|
function j(s) {
|
|
5
5
|
const { children: e, type: t = "h1", size: r = t, className: i, ...o } = s, n = t, a = c(l({ size: r }), i);
|
|
6
6
|
return /* @__PURE__ */ m.jsx(n, { className: a, ...o, children: e });
|
package/dist/index.es23.js
CHANGED
|
@@ -1,173 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
size:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
isDisabled: {
|
|
24
|
-
true: "pointer-events-none cursor-not-allowed border-none bg-neutral-400 text-neutral-600"
|
|
25
|
-
},
|
|
26
|
-
isHovered: {
|
|
27
|
-
true: ""
|
|
28
|
-
},
|
|
29
|
-
isActive: {
|
|
30
|
-
true: ""
|
|
31
|
-
},
|
|
32
|
-
fullWidth: {
|
|
33
|
-
true: "w-full",
|
|
34
|
-
false: "w-fit"
|
|
35
|
-
},
|
|
36
|
-
isLoading: {
|
|
37
|
-
true: "pointer-events-none cursor-not-allowed opacity-70"
|
|
38
|
-
},
|
|
39
|
-
isFocused: {
|
|
40
|
-
true: "focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",
|
|
41
|
-
false: ""
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
defaultVariants: {
|
|
45
|
-
intent: "primary",
|
|
46
|
-
size: "md"
|
|
47
|
-
},
|
|
48
|
-
compoundVariants: [
|
|
49
|
-
/* Hover State */
|
|
50
|
-
{
|
|
51
|
-
intent: "primary",
|
|
52
|
-
isHovered: !0,
|
|
53
|
-
class: "bg-primary-700"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
intent: "secondary",
|
|
57
|
-
isHovered: !0,
|
|
58
|
-
class: "bg-primary-200"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
intent: "tertiary",
|
|
62
|
-
isHovered: !0,
|
|
63
|
-
class: "bg-primary-300 text-primary-800"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
intent: "outline",
|
|
67
|
-
isHovered: !0,
|
|
68
|
-
class: "bg-primary-500 text-primary-50"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
intent: "success",
|
|
72
|
-
isHovered: !0,
|
|
73
|
-
class: "bg-success-700 text-neutral-50"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
intent: "error",
|
|
77
|
-
isHovered: !0,
|
|
78
|
-
class: "bg-error-700 text-error-50"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
intent: "orangeWarning",
|
|
82
|
-
isHovered: !0,
|
|
83
|
-
class: "bg-orange-warning-700 text-orange-warning-50"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
intent: "yellowWarning",
|
|
87
|
-
isHovered: !0,
|
|
88
|
-
class: "bg-yellow-warning-700 text-neutral-50"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
intent: "info",
|
|
92
|
-
isHovered: !0,
|
|
93
|
-
class: "bg-blue-700 text-blue-50"
|
|
94
|
-
},
|
|
95
|
-
/* /Focus State */
|
|
96
|
-
{
|
|
97
|
-
intent: "success",
|
|
98
|
-
isFocused: !0,
|
|
99
|
-
class: "border-[1.5px] focus:ring-success-500"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
intent: "error",
|
|
103
|
-
isFocused: !0,
|
|
104
|
-
class: "border-[1.5px] focus:ring-error-500"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
intent: "orangeWarning",
|
|
108
|
-
isFocused: !0,
|
|
109
|
-
class: "border-[1.5px] focus:ring-orange-500"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
intent: "yellowWarning",
|
|
113
|
-
isFocused: !0,
|
|
114
|
-
class: "border-[1.5px] focus:ring-yellow-500"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
intent: "info",
|
|
118
|
-
isFocused: !0,
|
|
119
|
-
class: "border-[1.5px] focus:ring-blue-500"
|
|
120
|
-
},
|
|
121
|
-
/* Active State */
|
|
122
|
-
{
|
|
123
|
-
intent: "primary",
|
|
124
|
-
isActive: !0,
|
|
125
|
-
class: "bg-primary-900"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
intent: "secondary",
|
|
129
|
-
isActive: !0,
|
|
130
|
-
class: "bg-primary-300"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
intent: "tertiary",
|
|
134
|
-
isActive: !0,
|
|
135
|
-
class: "bg-primary-500 text-white"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
intent: "outline",
|
|
139
|
-
isActive: !0,
|
|
140
|
-
class: "border border-primary-500 bg-primary-300 text-primary-500"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
intent: "success",
|
|
144
|
-
isActive: !0,
|
|
145
|
-
class: "border border-transparent bg-success-300 text-success-900"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
intent: "error",
|
|
149
|
-
isActive: !0,
|
|
150
|
-
class: "border border-transparent bg-error-300 text-error-900"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
intent: "orangeWarning",
|
|
154
|
-
isActive: !0,
|
|
155
|
-
class: "border border-transparent bg-orange-warning-300 text-orange-warning-900"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
intent: "yellowWarning",
|
|
159
|
-
isActive: !0,
|
|
160
|
-
class: "border border-transparent bg-yellow-warning-300 text-yellow-warning-900"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
intent: "info",
|
|
164
|
-
isActive: !0,
|
|
165
|
-
class: "border border-transparent bg-blue-200 text-blue-900"
|
|
166
|
-
}
|
|
167
|
-
/* /Active State */
|
|
168
|
-
]
|
|
169
|
-
}
|
|
170
|
-
);
|
|
1
|
+
import { j as s } from "./index.es21.js";
|
|
2
|
+
import { MinusIcon as p, PlusIcon as u } from "./index.es34.js";
|
|
3
|
+
import { cn as e } from "./index.es22.js";
|
|
4
|
+
const f = ({
|
|
5
|
+
label: o,
|
|
6
|
+
section: n,
|
|
7
|
+
active: r,
|
|
8
|
+
onToggle: l,
|
|
9
|
+
itemClassName: t,
|
|
10
|
+
sectionClassName: c,
|
|
11
|
+
hasIcon: i = !0
|
|
12
|
+
}) => {
|
|
13
|
+
const a = e("rounded-md border border-solid border-purple-200 bg-gray-100", t), d = e("px-4 pb-4", c), m = r ? p : u;
|
|
14
|
+
return /* @__PURE__ */ s.jsxs("div", { className: a, children: [
|
|
15
|
+
/* @__PURE__ */ s.jsxs("button", { className: "flex w-full cursor-pointer items-center gap-x-4 p-4", onClick: l, children: [
|
|
16
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex-1", children: o }),
|
|
17
|
+
i ? /* @__PURE__ */ s.jsx("span", { className: `shrink-0 transition duration-300 ${r ? "-rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ s.jsx(m, { className: "size-6" }) }) : null
|
|
18
|
+
] }),
|
|
19
|
+
r ? /* @__PURE__ */ s.jsx("div", { className: d, children: n }) : null
|
|
20
|
+
] });
|
|
21
|
+
};
|
|
171
22
|
export {
|
|
172
|
-
|
|
23
|
+
f as AccordionItem
|
|
173
24
|
};
|
package/dist/index.es24.js
CHANGED
|
@@ -1,45 +1,36 @@
|
|
|
1
1
|
import { cva as r } from "class-variance-authority";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
true: ""
|
|
8
|
-
},
|
|
9
|
-
isSelected: {
|
|
10
|
-
true: "border-primary-500 bg-primary-500",
|
|
11
|
-
false: "bg-white"
|
|
12
|
-
},
|
|
13
|
-
isFocusVisible: {
|
|
14
|
-
true: "border-primary-500 group-active:border-primary-500"
|
|
15
|
-
},
|
|
16
|
-
isDisabled: {
|
|
17
|
-
true: "border-neutral-500 cursor-not-allowed"
|
|
18
|
-
},
|
|
19
|
-
label: {
|
|
20
|
-
true: "mr-2"
|
|
21
|
-
}
|
|
2
|
+
const t = r("bg-primary-50 inline-flex items-center select-none border border-transparent", {
|
|
3
|
+
variants: {
|
|
4
|
+
style: {
|
|
5
|
+
square: "rounded-md",
|
|
6
|
+
rounded: "rounded-full"
|
|
22
7
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
8
|
+
size: {
|
|
9
|
+
xs: [
|
|
10
|
+
"gap-1 py-[2px] pr-[6px] pl-1 font-normal text-neutral-900 text-[10px]",
|
|
11
|
+
"[&_svg]:w-[10px] [&_svg]:h-[10px]"
|
|
12
|
+
],
|
|
13
|
+
sm: ["gap-1 py-[2px] pr-[6px] pl-1 font-normal text-neutral-900 text-xs", "[&_svg]:w-3 [&_svg]:h-3"],
|
|
14
|
+
md: ["gap-1 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm", "[&_svg]:w-4 [&_svg]:h-4"],
|
|
15
|
+
lg: ["gap-2 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm", "[&_svg]:w-4 [&_svg]:h-4"]
|
|
16
|
+
},
|
|
17
|
+
pressable: {
|
|
18
|
+
true: "cursor-pointer"
|
|
19
|
+
},
|
|
20
|
+
isFocused: {
|
|
21
|
+
true: "border-primary-500"
|
|
22
|
+
},
|
|
23
|
+
isHovered: {
|
|
24
|
+
true: "border-primary-300"
|
|
25
|
+
},
|
|
26
|
+
isPressed: {
|
|
27
|
+
true: "bg-primary-200"
|
|
28
|
+
},
|
|
29
|
+
isDisabled: {
|
|
30
|
+
true: "bg-neutral-50 text-neutral-600 [&_svg]:text-neutral-600 cursor-not-allowed"
|
|
31
|
+
}
|
|
41
32
|
}
|
|
42
|
-
);
|
|
33
|
+
});
|
|
43
34
|
export {
|
|
44
|
-
|
|
35
|
+
t as assistChipVariants
|
|
45
36
|
};
|