@simpli-route/apollo-ds 0.1.3 → 0.1.4
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/Slider/Slider.d.ts +12 -0
- package/dist/components/Slider/SliderContainerTrack.d.ts +3 -0
- package/dist/components/Slider/SliderThumb.d.ts +3 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/types.d.ts +68 -0
- package/dist/components/Slider/utils.d.ts +8 -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.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.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.cjs21.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 -9
- package/dist/index.cjs37.js +1 -19
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +9 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +19 -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 -0
- package/dist/index.cjs46.js +1 -0
- package/dist/index.cjs47.js +1 -0
- package/dist/index.cjs48.js +1 -0
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es.js +20 -18
- package/dist/index.es10.js +77 -32
- package/dist/index.es11.js +29 -20
- package/dist/index.es12.js +21 -25
- package/dist/index.es13.js +28 -8
- package/dist/index.es14.js +7 -7
- package/dist/index.es15.js +8 -6
- package/dist/index.es16.js +6 -6
- package/dist/index.es17.js +6 -22
- package/dist/index.es18.js +22 -173
- package/dist/index.es19.js +150 -20
- package/dist/index.es2.js +3 -3
- package/dist/index.es20.js +20 -36
- package/dist/index.es21.js +45 -78
- package/dist/index.es23.js +87 -17
- package/dist/index.es24.js +20 -28
- package/dist/index.es25.js +30 -10
- package/dist/index.es26.js +11 -12
- package/dist/index.es27.js +10 -19
- package/dist/index.es28.js +12 -20
- package/dist/index.es29.js +131 -10
- package/dist/index.es3.js +7 -7
- package/dist/index.es30.js +19 -10
- package/dist/index.es31.js +17 -28
- package/dist/index.es32.js +95 -130
- package/dist/index.es33.js +13 -11
- package/dist/index.es34.js +10 -45
- package/dist/index.es35.js +10 -2
- package/dist/index.es36.js +30 -29
- package/dist/index.es37.js +45 -599
- package/dist/index.es38.js +2 -2
- package/dist/index.es39.js +30 -2
- package/dist/index.es4.js +4 -4
- package/dist/index.es40.js +599 -19
- package/dist/index.es41.js +7 -7
- package/dist/index.es42.js +13 -15
- package/dist/index.es43.js +8 -8
- package/dist/index.es44.js +11 -9
- package/dist/index.es45.js +21 -0
- package/dist/index.es46.js +58 -0
- package/dist/index.es47.js +4 -0
- package/dist/index.es48.js +4 -0
- package/dist/index.es5.js +19 -18
- package/dist/index.es6.js +17 -16
- package/dist/index.es7.js +2 -2
- package/dist/index.es8.js +5 -5
- package/dist/index.es9.js +67 -74
- package/dist/stories/Checkbox.stories.d.ts +5 -0
- package/dist/style.css +34 -0
- package/package.json +1 -1
package/dist/index.es32.js
CHANGED
|
@@ -1,133 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
]
|
|
25
|
-
{
|
|
26
|
-
intent: "primary",
|
|
27
|
-
isActive: !0,
|
|
28
|
-
isDisabled: !1,
|
|
29
|
-
class: "bg-primary-500 text-primary-50"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
intent: "primary",
|
|
33
|
-
isActive: !0,
|
|
34
|
-
isDisabled: !0,
|
|
35
|
-
class: "bg-primary-300 text-primary-100"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
intent: "secondary",
|
|
39
|
-
isActive: !0,
|
|
40
|
-
isDisabled: !1,
|
|
41
|
-
class: "bg-primary-500 text-primary-50"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
intent: "secondary",
|
|
45
|
-
isActive: !0,
|
|
46
|
-
isDisabled: !0,
|
|
47
|
-
class: "bg-primary-100 text-primary-300"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
intent: "minimal",
|
|
51
|
-
isActive: !0,
|
|
52
|
-
isDisabled: !1,
|
|
53
|
-
class: "text-primary-500"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
intent: "minimal",
|
|
57
|
-
isActive: !0,
|
|
58
|
-
isDisabled: !0,
|
|
59
|
-
class: "text-neutral-700"
|
|
60
|
-
}
|
|
61
|
-
], s = [
|
|
62
|
-
{
|
|
63
|
-
intent: "primary",
|
|
64
|
-
isDisabled: !0,
|
|
65
|
-
isActive: !1,
|
|
66
|
-
class: "text-neutral-600"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
intent: "primary",
|
|
70
|
-
isDisabled: !0,
|
|
71
|
-
isActive: !0,
|
|
72
|
-
class: "bg-primary-300 text-primary-100"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
intent: "secondary",
|
|
76
|
-
isDisabled: !0,
|
|
77
|
-
isActive: !1,
|
|
78
|
-
class: "bg-neutral-400 text-neutral-600"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
intent: "secondary",
|
|
82
|
-
isDisabled: !0,
|
|
83
|
-
isActive: !0,
|
|
84
|
-
class: "bg-primary-100 text-primary-300"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
intent: "minimal",
|
|
88
|
-
isDisabled: !0,
|
|
89
|
-
isActive: !1,
|
|
90
|
-
class: "text-neutral-600"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
intent: "minimal",
|
|
94
|
-
isDisabled: !0,
|
|
95
|
-
isActive: !0,
|
|
96
|
-
class: "text-neutral-700"
|
|
97
|
-
}
|
|
98
|
-
], a = e(
|
|
99
|
-
"inline-flex items-center justify-center border border-transparent transition duration-150 ease-in-out focus:outline-none",
|
|
100
|
-
{
|
|
101
|
-
variants: {
|
|
102
|
-
intent: {
|
|
103
|
-
primary: "bg-transparent text-primary-500",
|
|
104
|
-
secondary: "bg-primary-200 text-primary-500",
|
|
105
|
-
minimal: "bg-transparent text-neutral-700"
|
|
106
|
-
},
|
|
107
|
-
size: {
|
|
108
|
-
xxs: "p-1",
|
|
109
|
-
xs: "p-2",
|
|
110
|
-
sm: "p-2.5",
|
|
111
|
-
md: "p-3",
|
|
112
|
-
lg: "p-4"
|
|
113
|
-
},
|
|
114
|
-
isDisabled: {
|
|
115
|
-
true: "pointer-events-none cursor-not-allowed"
|
|
116
|
-
},
|
|
117
|
-
isHovered: {
|
|
118
|
-
true: ""
|
|
119
|
-
},
|
|
120
|
-
isActive: {
|
|
121
|
-
true: ""
|
|
122
|
-
},
|
|
123
|
-
isFocused: {
|
|
124
|
-
false: "",
|
|
125
|
-
true: "focus:outline-none focus:ring-offset-2 outline-none ring-2 ring-sky-400"
|
|
1
|
+
import { j as r } from "./index.es16.js";
|
|
2
|
+
import { cn as m } from "./index.es17.js";
|
|
3
|
+
import { SliderThumb as c } from "./index.es46.js";
|
|
4
|
+
const i = ({
|
|
5
|
+
state: e,
|
|
6
|
+
type: n,
|
|
7
|
+
showTypeValue: t,
|
|
8
|
+
suffix: l,
|
|
9
|
+
classNameFilled: d,
|
|
10
|
+
classNameUnfilled: v,
|
|
11
|
+
modeTooltip: a,
|
|
12
|
+
positionTooltip: u,
|
|
13
|
+
classNameThumb: s
|
|
14
|
+
}) => /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
|
|
15
|
+
t === "default" ? /* @__PURE__ */ r.jsxs("div", { className: "flex justify-between", children: [
|
|
16
|
+
/* @__PURE__ */ r.jsxs(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
className: "absolute top-4 text-sm text-neutral-900",
|
|
20
|
+
style: { left: `${e.getThumbPercent(0) * 100}%`, transform: "translateX(-50%)" },
|
|
21
|
+
children: [
|
|
22
|
+
e.values[0],
|
|
23
|
+
l
|
|
24
|
+
]
|
|
126
25
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
26
|
+
),
|
|
27
|
+
n === "range" && /* @__PURE__ */ r.jsxs(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
className: "absolute top-4 text-sm text-neutral-900",
|
|
31
|
+
style: { left: `${e.getThumbPercent(1) * 100}%`, transform: "translateX(-50%)" },
|
|
32
|
+
children: [
|
|
33
|
+
e.values[1],
|
|
34
|
+
l
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
] }) : null,
|
|
39
|
+
/* @__PURE__ */ r.jsx(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
className: m("absolute top-1/2 h-2 w-full -translate-y-1/2 rounded-full bg-primary-100", v)
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ r.jsx(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
className: m("absolute top-1/2 h-2 -translate-y-1/2 rounded-full bg-primary-500", d),
|
|
49
|
+
style: {
|
|
50
|
+
width: `${n === "range" ? e.getThumbPercent(1) * 100 - e.getThumbPercent(0) * 100 : e.getThumbPercent(0) * 100}%`,
|
|
51
|
+
left: n === "range" ? `${e.getThumbPercent(0) * 100}%` : "0%"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
n === "range" ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
56
|
+
/* @__PURE__ */ r.jsx(
|
|
57
|
+
c,
|
|
58
|
+
{
|
|
59
|
+
index: 0,
|
|
60
|
+
valuePercent: e.getThumbPercent(0),
|
|
61
|
+
value: e.values[0],
|
|
62
|
+
suffix: l,
|
|
63
|
+
modeTooltip: a,
|
|
64
|
+
positionTooltip: u,
|
|
65
|
+
showTypeValue: t,
|
|
66
|
+
classNameThumb: s
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
/* @__PURE__ */ r.jsx(
|
|
70
|
+
c,
|
|
71
|
+
{
|
|
72
|
+
index: 1,
|
|
73
|
+
valuePercent: e.getThumbPercent(1),
|
|
74
|
+
value: e.values[1],
|
|
75
|
+
suffix: l,
|
|
76
|
+
modeTooltip: a,
|
|
77
|
+
positionTooltip: u,
|
|
78
|
+
showTypeValue: t,
|
|
79
|
+
classNameThumb: s
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] }) : /* @__PURE__ */ r.jsx(
|
|
83
|
+
c,
|
|
84
|
+
{
|
|
85
|
+
index: 0,
|
|
86
|
+
valuePercent: e.getThumbPercent(0),
|
|
87
|
+
value: e.values[0],
|
|
88
|
+
suffix: l,
|
|
89
|
+
modeTooltip: a,
|
|
90
|
+
positionTooltip: u,
|
|
91
|
+
showTypeValue: t,
|
|
92
|
+
classNameThumb: s
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
] });
|
|
131
96
|
export {
|
|
132
|
-
|
|
97
|
+
i as SliderContainerTrack
|
|
133
98
|
};
|
package/dist/index.es33.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const o = (e, g, r = 1) => {
|
|
2
|
+
if (g === "range" && Array.isArray(e) && e.length === 2) {
|
|
3
|
+
const [t, f] = e;
|
|
4
|
+
if (f - t < r) {
|
|
5
|
+
if (t > f - r)
|
|
6
|
+
return [f - r, f];
|
|
7
|
+
if (f < t + r)
|
|
8
|
+
return [t, t + r];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return e;
|
|
12
|
+
};
|
|
7
13
|
export {
|
|
8
|
-
|
|
9
|
-
i as InfoIcon,
|
|
10
|
-
t as MinusIcon,
|
|
11
|
-
e as PlusIcon,
|
|
12
|
-
_ as UpChevronIcon
|
|
14
|
+
o as validateMinDistance
|
|
13
15
|
};
|
package/dist/index.es34.js
CHANGED
|
@@ -1,47 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
hasSupportText: {
|
|
11
|
-
true: "",
|
|
12
|
-
false: ""
|
|
13
|
-
},
|
|
14
|
-
placement: {
|
|
15
|
-
none: "bottom-full left-1/2 mb-3 -translate-x-1/2",
|
|
16
|
-
"top-start": `bottom-full left-0 mb-3 ${o}`,
|
|
17
|
-
top: `bottom-full left-1/2 mb-3 -translate-x-1/2 ${a}`,
|
|
18
|
-
"top-end": `bottom-full right-0 mb-3 ${b}`,
|
|
19
|
-
right: `left-full top-1/2 ml-3 -translate-y-1/2 ${s}`,
|
|
20
|
-
"bottom-start": `left-0 top-full mt-3 ${l}`,
|
|
21
|
-
bottom: `left-1/2 top-full mt-3 -translate-x-1/2 ${f}`,
|
|
22
|
-
"bottom-end": `right-0 top-full mt-3 ${n}`,
|
|
23
|
-
left: `right-full top-1/2 mr-3 -translate-y-1/2 ${p}`
|
|
24
|
-
},
|
|
25
|
-
size: {
|
|
26
|
-
sm: "px-4 py-2",
|
|
27
|
-
md: "px-4 py-3",
|
|
28
|
-
lg: "p-4"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
compoundVariants: [
|
|
32
|
-
{
|
|
33
|
-
hasSupportText: !0,
|
|
34
|
-
mode: "dark",
|
|
35
|
-
class: "text-[16px] text-blue-50 font-semibold leading-5"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
hasSupportText: !0,
|
|
39
|
-
mode: "light",
|
|
40
|
-
class: "text-[16px] text-neutral-900 font-semibold leading-5"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
);
|
|
1
|
+
import { j as f } from "./index.es16.js";
|
|
2
|
+
import { useRef as l } from "react";
|
|
3
|
+
import { useTab as u } from "react-aria";
|
|
4
|
+
import { cn as b } from "./index.es17.js";
|
|
5
|
+
import { tabVariants as x } from "./index.es36.js";
|
|
6
|
+
const R = (o) => {
|
|
7
|
+
const { className: r, item: i, orientation: n, state: t, id: a = void 0 } = o, { key: s, rendered: c } = i, m = t.selectedKey === s, e = l(null), { tabProps: p } = u({ key: String(s) }, t, e), d = b(x({ isActive: m, orientation: n }), r);
|
|
8
|
+
return /* @__PURE__ */ f.jsx("div", { ...p, ref: e, className: d, id: a, children: c });
|
|
9
|
+
};
|
|
45
10
|
export {
|
|
46
|
-
|
|
11
|
+
R as Tab
|
|
47
12
|
};
|
package/dist/index.es35.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { j as m } from "./index.es16.js";
|
|
2
|
+
import { useRef as l } from "react";
|
|
3
|
+
import { useTabPanel as p } from "react-aria";
|
|
4
|
+
import { cn as i } from "./index.es17.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
|
+
};
|
|
2
10
|
export {
|
|
3
|
-
|
|
11
|
+
P as TabPanel
|
|
4
12
|
};
|
package/dist/index.es36.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var p;
|
|
13
|
-
function v() {
|
|
14
|
-
if (p)
|
|
15
|
-
return t;
|
|
16
|
-
p = 1;
|
|
17
|
-
var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function i(o, r, u) {
|
|
19
|
-
var e, n = {}, _ = null, f = null;
|
|
20
|
-
u !== void 0 && (_ = "" + u), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref);
|
|
21
|
-
for (e in r)
|
|
22
|
-
c.call(r, e) && !y.hasOwnProperty(e) && (n[e] = r[e]);
|
|
23
|
-
if (o && o.defaultProps)
|
|
24
|
-
for (e in r = o.defaultProps, r)
|
|
25
|
-
n[e] === void 0 && (n[e] = r[e]);
|
|
26
|
-
return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: d.current };
|
|
1
|
+
import { cva as r } from "class-variance-authority";
|
|
2
|
+
const e = r("flex h-full max-h-12", {
|
|
3
|
+
variants: {
|
|
4
|
+
orientation: {
|
|
5
|
+
horizontal: "flex-col",
|
|
6
|
+
vertical: "flex-row"
|
|
7
|
+
}
|
|
27
8
|
}
|
|
28
|
-
|
|
29
|
-
|
|
9
|
+
}), i = r(
|
|
10
|
+
"group inline-flex cursor-pointer items-center px-4 py-3 text-base font-semibold focus-visible:outline-none",
|
|
11
|
+
{
|
|
12
|
+
variants: {
|
|
13
|
+
isActive: {
|
|
14
|
+
true: "bg-primary-50 text-primary-600 ",
|
|
15
|
+
false: "text-neutral-500 hover:text-primary-900"
|
|
16
|
+
},
|
|
17
|
+
orientation: {
|
|
18
|
+
horizontal: "border-b-2 border-transparent",
|
|
19
|
+
vertical: "border-r-2 border-transparent"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
compoundVariants: [
|
|
23
|
+
{ isActive: !0, orientation: "horizontal", class: "border-b-2 border-primary-500" },
|
|
24
|
+
{ isActive: !1, orientation: "horizontal", class: "border-b-2 border-primary-200" },
|
|
25
|
+
{ isActive: !1, orientation: "vertical", class: "border-r-2 border-primary-200" },
|
|
26
|
+
{ isActive: !0, orientation: "vertical", class: "border-r-2 border-primary-500" }
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
i as tabVariants,
|
|
32
|
+
e as tabsVariants
|
|
32
33
|
};
|