@simpli-route/apollo-ds 0.1.53 → 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/InvisibleDatepicker/types.d.ts +4 -0
- 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.cjs106.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs12.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.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs30.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.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.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs84.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.es106.js +57 -4
- package/dist/index.es107.js +6 -28
- package/dist/index.es108.js +28 -4
- package/dist/index.es109.js +2 -8
- package/dist/index.es11.js +1 -1
- package/dist/index.es110.js +8 -340
- package/dist/index.es111.js +336 -162
- package/dist/index.es112.js +161 -52
- package/dist/index.es12.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.es22.js +1 -1
- package/dist/index.es23.js +2 -2
- package/dist/index.es24.js +3 -3
- package/dist/index.es25.js +17 -17
- package/dist/index.es26.js +1 -1
- package/dist/index.es27.js +3 -3
- package/dist/index.es28.js +1 -1
- package/dist/index.es29.js +2 -2
- package/dist/index.es30.js +1 -1
- package/dist/index.es33.js +3 -3
- package/dist/index.es34.js +3 -3
- package/dist/index.es35.js +3 -3
- package/dist/index.es36.js +2 -2
- 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 +101 -116
- 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 -18
- package/dist/index.es64.js +159 -16
- package/dist/index.es65.js +90 -14
- package/dist/index.es66.js +20 -28
- package/dist/index.es67.js +7 -6
- package/dist/index.es68.js +163 -10
- package/dist/index.es69.js +10 -10
- package/dist/index.es7.js +1 -1
- package/dist/index.es70.js +13 -12
- package/dist/index.es71.js +10 -13
- package/dist/index.es72.js +12 -163
- package/dist/index.es73.js +1 -1
- package/dist/index.es74.js +97 -36
- package/dist/index.es75.js +13 -7
- package/dist/index.es76.js +7 -18
- package/dist/index.es77.js +15 -146
- package/dist/index.es78.js +144 -96
- package/dist/index.es79.js +9 -12
- package/dist/index.es8.js +3 -3
- package/dist/index.es80.js +10 -19
- package/dist/index.es81.js +42 -17
- package/dist/index.es82.js +19 -10
- package/dist/index.es83.js +20 -10
- package/dist/index.es84.js +25 -30
- package/dist/index.es9.js +2 -2
- package/dist/stories/Datepicker.stories.d.ts +1 -0
- package/dist/stories/InvisibleSelect.stories.d.ts +29 -80
- package/dist/style.css +19 -59
- 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.es112.js
CHANGED
|
@@ -1,59 +1,168 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index.es107.js";
|
|
2
|
+
import { p as o } from "./index.es120.js";
|
|
3
|
+
const l = o;
|
|
4
|
+
function e(a) {
|
|
5
|
+
return Object.fromEntries(
|
|
6
|
+
Object.entries(a).filter(([i]) => i !== "DEFAULT")
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
var s = l(
|
|
10
|
+
({ addUtilities: a, matchUtilities: i, theme: n }) => {
|
|
11
|
+
a({
|
|
12
|
+
"@keyframes enter": n("keyframes.enter"),
|
|
13
|
+
"@keyframes exit": n("keyframes.exit"),
|
|
14
|
+
".animate-in": {
|
|
15
|
+
animationName: "enter",
|
|
16
|
+
animationDuration: n("animationDuration.DEFAULT"),
|
|
17
|
+
"--tw-enter-opacity": "initial",
|
|
18
|
+
"--tw-enter-scale": "initial",
|
|
19
|
+
"--tw-enter-rotate": "initial",
|
|
20
|
+
"--tw-enter-translate-x": "initial",
|
|
21
|
+
"--tw-enter-translate-y": "initial"
|
|
22
|
+
},
|
|
23
|
+
".animate-out": {
|
|
24
|
+
animationName: "exit",
|
|
25
|
+
animationDuration: n("animationDuration.DEFAULT"),
|
|
26
|
+
"--tw-exit-opacity": "initial",
|
|
27
|
+
"--tw-exit-scale": "initial",
|
|
28
|
+
"--tw-exit-rotate": "initial",
|
|
29
|
+
"--tw-exit-translate-x": "initial",
|
|
30
|
+
"--tw-exit-translate-y": "initial"
|
|
31
|
+
}
|
|
32
|
+
}), i(
|
|
33
|
+
{
|
|
34
|
+
"fade-in": (t) => ({ "--tw-enter-opacity": t }),
|
|
35
|
+
"fade-out": (t) => ({ "--tw-exit-opacity": t })
|
|
36
|
+
},
|
|
37
|
+
{ values: n("animationOpacity") }
|
|
38
|
+
), i(
|
|
39
|
+
{
|
|
40
|
+
"zoom-in": (t) => ({ "--tw-enter-scale": t }),
|
|
41
|
+
"zoom-out": (t) => ({ "--tw-exit-scale": t })
|
|
42
|
+
},
|
|
43
|
+
{ values: n("animationScale") }
|
|
44
|
+
), i(
|
|
45
|
+
{
|
|
46
|
+
"spin-in": (t) => ({ "--tw-enter-rotate": t }),
|
|
47
|
+
"spin-out": (t) => ({ "--tw-exit-rotate": t })
|
|
48
|
+
},
|
|
49
|
+
{ values: n("animationRotate") }
|
|
50
|
+
), i(
|
|
51
|
+
{
|
|
52
|
+
"slide-in-from-top": (t) => ({
|
|
53
|
+
"--tw-enter-translate-y": `-${t}`
|
|
54
|
+
}),
|
|
55
|
+
"slide-in-from-bottom": (t) => ({
|
|
56
|
+
"--tw-enter-translate-y": t
|
|
57
|
+
}),
|
|
58
|
+
"slide-in-from-left": (t) => ({
|
|
59
|
+
"--tw-enter-translate-x": `-${t}`
|
|
60
|
+
}),
|
|
61
|
+
"slide-in-from-right": (t) => ({
|
|
62
|
+
"--tw-enter-translate-x": t
|
|
63
|
+
}),
|
|
64
|
+
"slide-out-to-top": (t) => ({
|
|
65
|
+
"--tw-exit-translate-y": `-${t}`
|
|
66
|
+
}),
|
|
67
|
+
"slide-out-to-bottom": (t) => ({
|
|
68
|
+
"--tw-exit-translate-y": t
|
|
69
|
+
}),
|
|
70
|
+
"slide-out-to-left": (t) => ({
|
|
71
|
+
"--tw-exit-translate-x": `-${t}`
|
|
72
|
+
}),
|
|
73
|
+
"slide-out-to-right": (t) => ({
|
|
74
|
+
"--tw-exit-translate-x": t
|
|
75
|
+
})
|
|
76
|
+
},
|
|
77
|
+
{ values: n("animationTranslate") }
|
|
78
|
+
), i(
|
|
79
|
+
{ duration: (t) => ({ animationDuration: t }) },
|
|
80
|
+
{ values: e(n("animationDuration")) }
|
|
81
|
+
), i(
|
|
82
|
+
{ delay: (t) => ({ animationDelay: t }) },
|
|
83
|
+
{ values: n("animationDelay") }
|
|
84
|
+
), i(
|
|
85
|
+
{ ease: (t) => ({ animationTimingFunction: t }) },
|
|
86
|
+
{ values: e(n("animationTimingFunction")) }
|
|
87
|
+
), a({
|
|
88
|
+
".running": { animationPlayState: "running" },
|
|
89
|
+
".paused": { animationPlayState: "paused" }
|
|
90
|
+
}), i(
|
|
91
|
+
{ "fill-mode": (t) => ({ animationFillMode: t }) },
|
|
92
|
+
{ values: n("animationFillMode") }
|
|
93
|
+
), i(
|
|
94
|
+
{ direction: (t) => ({ animationDirection: t }) },
|
|
95
|
+
{ values: n("animationDirection") }
|
|
96
|
+
), i(
|
|
97
|
+
{ repeat: (t) => ({ animationIterationCount: t }) },
|
|
98
|
+
{ values: n("animationRepeat") }
|
|
99
|
+
);
|
|
100
|
+
},
|
|
18
101
|
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
102
|
+
theme: {
|
|
103
|
+
extend: {
|
|
104
|
+
animationDelay: ({ theme: a }) => ({
|
|
105
|
+
...a("transitionDelay")
|
|
106
|
+
}),
|
|
107
|
+
animationDuration: ({ theme: a }) => ({
|
|
108
|
+
0: "0ms",
|
|
109
|
+
...a("transitionDuration")
|
|
110
|
+
}),
|
|
111
|
+
animationTimingFunction: ({ theme: a }) => ({
|
|
112
|
+
...a("transitionTimingFunction")
|
|
113
|
+
}),
|
|
114
|
+
animationFillMode: {
|
|
115
|
+
none: "none",
|
|
116
|
+
forwards: "forwards",
|
|
117
|
+
backwards: "backwards",
|
|
118
|
+
both: "both"
|
|
119
|
+
},
|
|
120
|
+
animationDirection: {
|
|
121
|
+
normal: "normal",
|
|
122
|
+
reverse: "reverse",
|
|
123
|
+
alternate: "alternate",
|
|
124
|
+
"alternate-reverse": "alternate-reverse"
|
|
125
|
+
},
|
|
126
|
+
animationOpacity: ({ theme: a }) => ({
|
|
127
|
+
DEFAULT: 0,
|
|
128
|
+
...a("opacity")
|
|
129
|
+
}),
|
|
130
|
+
animationTranslate: ({ theme: a }) => ({
|
|
131
|
+
DEFAULT: "100%",
|
|
132
|
+
...a("translate")
|
|
133
|
+
}),
|
|
134
|
+
animationScale: ({ theme: a }) => ({
|
|
135
|
+
DEFAULT: 0,
|
|
136
|
+
...a("scale")
|
|
137
|
+
}),
|
|
138
|
+
animationRotate: ({ theme: a }) => ({
|
|
139
|
+
DEFAULT: "30deg",
|
|
140
|
+
...a("rotate")
|
|
141
|
+
}),
|
|
142
|
+
animationRepeat: {
|
|
143
|
+
0: "0",
|
|
144
|
+
1: "1",
|
|
145
|
+
infinite: "infinite"
|
|
146
|
+
},
|
|
147
|
+
keyframes: {
|
|
148
|
+
enter: {
|
|
149
|
+
from: {
|
|
150
|
+
opacity: "var(--tw-enter-opacity, 1)",
|
|
151
|
+
transform: "translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
exit: {
|
|
155
|
+
to: {
|
|
156
|
+
opacity: "var(--tw-exit-opacity, 1)",
|
|
157
|
+
transform: "translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
43
160
|
}
|
|
44
|
-
)
|
|
45
|
-
] }) : /* @__PURE__ */ r.jsx(
|
|
46
|
-
m,
|
|
47
|
-
{
|
|
48
|
-
index: o,
|
|
49
|
-
className: i(
|
|
50
|
-
"dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",
|
|
51
|
-
e
|
|
52
|
-
)
|
|
53
161
|
}
|
|
54
|
-
|
|
162
|
+
}
|
|
55
163
|
}
|
|
56
164
|
);
|
|
165
|
+
const u = /* @__PURE__ */ r(s);
|
|
57
166
|
export {
|
|
58
|
-
|
|
167
|
+
u as default
|
|
59
168
|
};
|
package/dist/index.es12.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as o } from "./index.es40.js";
|
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
3
|
import { useContextProps as B, ButtonContext as j, Button as N } from "react-aria-components";
|
|
4
4
|
import { cn as w } from "./index.es41.js";
|
|
5
|
-
import { buttonVariants as C } from "./index.
|
|
5
|
+
import { buttonVariants as C } from "./index.es68.js";
|
|
6
6
|
function I(r, i) {
|
|
7
7
|
const [a, c] = B(r, i, j), {
|
|
8
8
|
intent: m = "secondary",
|
package/dist/index.es13.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as e } from "./index.es40.js";
|
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
3
|
import { TextField as j, Label as N, Input as V, FieldError as y } from "react-aria-components";
|
|
4
4
|
import { cn as i } from "./index.es41.js";
|
|
5
|
-
import { invisibleInputContainerVariants as w, invisibleInputLabelVariants as C, invisibleInputVariants as F, invisibleInputCaptionVariants as L } from "./index.
|
|
5
|
+
import { invisibleInputContainerVariants as w, invisibleInputLabelVariants as C, invisibleInputVariants as F, invisibleInputCaptionVariants as L } from "./index.es62.js";
|
|
6
6
|
const R = h(
|
|
7
7
|
({
|
|
8
8
|
size: l = "bodyDefault",
|
package/dist/index.es15.js
CHANGED
|
@@ -3,7 +3,7 @@ import { today as k, getLocalTimeZone as G } from "@internationalized/date";
|
|
|
3
3
|
import { CalendarIcon as I, LeftChevronIcon as H, RightChevronIcon as z } from "./index.es42.js";
|
|
4
4
|
import { DatePicker as L, Label as P, Group as B, DateInput as w, DateSegment as R, Button as c, FieldError as T, Popover as F, Dialog as Z, Calendar as q, Heading as A, CalendarGrid as J, CalendarGridHeader as K, CalendarHeaderCell as M, CalendarGridBody as O, CalendarCell as Q } from "react-aria-components";
|
|
5
5
|
import { cn as r } from "./index.es41.js";
|
|
6
|
-
import { datepickerLabelVariants as S, datepickerGroupVariants as U, datepickerInputVariants as W, datepickerSegmentVariants as X, datepickerButtonVariants as d, datepickerCaptionVariants as Y, popoverVariants as _, calendarVariants as $, calendarHeaderVariants as E, calendarHeadingVariants as ee, calendarGridVariants as ae, calendarHeaderCellVariants as se, calendarCellVariants as re } from "./index.
|
|
6
|
+
import { datepickerLabelVariants as S, datepickerGroupVariants as U, datepickerInputVariants as W, datepickerSegmentVariants as X, datepickerButtonVariants as d, datepickerCaptionVariants as Y, popoverVariants as _, calendarVariants as $, calendarHeaderVariants as E, calendarHeadingVariants as ee, calendarGridVariants as ae, calendarHeaderCellVariants as se, calendarCellVariants as re } from "./index.es56.js";
|
|
7
7
|
const oe = ({
|
|
8
8
|
label: o,
|
|
9
9
|
size: l = "bodyDefault",
|
package/dist/index.es16.js
CHANGED
|
@@ -1,121 +1,124 @@
|
|
|
1
1
|
import { j as e } from "./index.es40.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "./index.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
2
|
+
import { forwardRef as K, useState as x } from "react";
|
|
3
|
+
import { useFilter as Q, Select as U, Label as W, FieldError as X, Popover as Y } from "react-aria-components";
|
|
4
|
+
import { cn as r } from "./index.es41.js";
|
|
5
|
+
import { PopoverContent as Z } from "./index.es67.js";
|
|
6
|
+
import { InvisibleSelectContent as _ } from "./index.es17.js";
|
|
7
|
+
import { invisibleSelectContainerVariants as $, invisibleSelectLabelVariants as ee, invisibleSelectCaptionVariants as ae, invisibleSelectPopoverVariants as le } from "./index.es57.js";
|
|
8
|
+
const ie = (C, N) => {
|
|
9
|
+
const {
|
|
10
|
+
size: c = "xs",
|
|
11
|
+
orientation: d = "vertical",
|
|
12
|
+
label: p,
|
|
13
|
+
items: y,
|
|
14
|
+
selectionMode: i = "single",
|
|
15
|
+
value: b,
|
|
16
|
+
defaultValue: v,
|
|
17
|
+
placeholder: j = "Selecciona",
|
|
18
|
+
captionError: t,
|
|
19
|
+
validationState: s,
|
|
20
|
+
className: I,
|
|
21
|
+
buttonClassName: V,
|
|
22
|
+
labelClassName: g,
|
|
23
|
+
captionErrorClassName: L,
|
|
24
|
+
popoverClassName: O,
|
|
25
|
+
classNameSearchField: A,
|
|
26
|
+
classNameSearchFieldInput: E,
|
|
27
|
+
isDisabled: h = !1,
|
|
28
|
+
onChange: n,
|
|
29
|
+
maxLengthTextOption: F = 18,
|
|
30
|
+
placeholderSearch: P = "Search",
|
|
31
|
+
enableSearch: z = !1,
|
|
32
|
+
"aria-label": D,
|
|
33
|
+
"aria-labelledby": B,
|
|
34
|
+
"aria-describedby": R,
|
|
35
|
+
id: M,
|
|
36
|
+
name: T
|
|
37
|
+
} = C, { contains: k } = Q({ sensitivity: "base" }), [u, m] = x(!1), [q, S] = x(() => v !== void 0 ? v : i === "multiple" ? [] : null), f = b !== void 0, o = f ? b : q, w = (l) => {
|
|
38
|
+
if (i === "multiple" && o && Array.isArray(o)) {
|
|
39
|
+
const a = o.filter((J) => J !== l);
|
|
40
|
+
f || S(a), n && n(a);
|
|
41
|
+
}
|
|
42
|
+
}, G = (l) => {
|
|
43
|
+
let a;
|
|
44
|
+
i === "multiple" ? a = l instanceof Set ? Array.from(l) : l : (a = l, m(!1)), f || S(a), n && n(a);
|
|
45
|
+
}, H = {
|
|
46
|
+
className: r($({ size: c, orientation: d }), I),
|
|
47
|
+
selectionMode: i,
|
|
48
|
+
isDisabled: h,
|
|
49
|
+
isInvalid: s === "invalid",
|
|
50
|
+
value: o,
|
|
51
|
+
"aria-label": D,
|
|
52
|
+
"aria-labelledby": B,
|
|
53
|
+
"aria-describedby": R,
|
|
54
|
+
id: M,
|
|
55
|
+
name: T,
|
|
56
|
+
onChange: G
|
|
57
|
+
};
|
|
58
|
+
return /* @__PURE__ */ e.jsxs(U, { ...H, children: [
|
|
59
|
+
p && /* @__PURE__ */ e.jsx(
|
|
60
|
+
W,
|
|
61
|
+
{
|
|
62
|
+
className: r(
|
|
63
|
+
ee({ size: c }),
|
|
64
|
+
g,
|
|
65
|
+
d === "horizontal" && s !== "invalid" ? "self-center" : "self-start"
|
|
59
66
|
),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
className: s(
|
|
89
|
-
U({
|
|
90
|
-
state: u(i, t, n),
|
|
91
|
-
isOpen: p
|
|
92
|
-
})
|
|
93
|
-
)
|
|
94
|
-
}
|
|
95
|
-
)
|
|
96
|
-
] })
|
|
97
|
-
}
|
|
67
|
+
children: p
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ e.jsxs("div", { className: r("flex flex-col", d === "horizontal" ? "flex-1" : "w-full"), children: [
|
|
71
|
+
/* @__PURE__ */ e.jsx(
|
|
72
|
+
_,
|
|
73
|
+
{
|
|
74
|
+
ref: N,
|
|
75
|
+
isOpen: u,
|
|
76
|
+
setIsOpen: m,
|
|
77
|
+
size: c,
|
|
78
|
+
isDisabled: h,
|
|
79
|
+
buttonClassName: V,
|
|
80
|
+
selectionMode: i,
|
|
81
|
+
maxLengthTextOption: F,
|
|
82
|
+
handleDeleteOptionSelected: w,
|
|
83
|
+
placeholder: j,
|
|
84
|
+
validationState: s
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
t && s === "invalid" && /* @__PURE__ */ e.jsx(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
className: r(
|
|
91
|
+
ae({
|
|
92
|
+
state: "error"
|
|
93
|
+
}),
|
|
94
|
+
L
|
|
98
95
|
),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
96
|
+
children: t
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] }),
|
|
100
|
+
s === "invalid" && t && /* @__PURE__ */ e.jsx(X, { className: "sr-only", children: t }),
|
|
101
|
+
/* @__PURE__ */ e.jsx(
|
|
102
|
+
Y,
|
|
103
|
+
{
|
|
104
|
+
className: r(le(), O),
|
|
105
|
+
isOpen: u,
|
|
106
|
+
onOpenChange: m,
|
|
107
|
+
children: /* @__PURE__ */ e.jsx(
|
|
108
|
+
Z,
|
|
109
|
+
{
|
|
110
|
+
enableSearch: z,
|
|
111
|
+
contains: k,
|
|
112
|
+
classNameSearchField: A,
|
|
113
|
+
classNameSearchFieldInput: E,
|
|
114
|
+
placeholderSearch: P,
|
|
115
|
+
items: y
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
] });
|
|
121
|
+
}, me = K(ie);
|
|
119
122
|
export {
|
|
120
|
-
|
|
123
|
+
me as InvisibleSelect
|
|
121
124
|
};
|
package/dist/index.es17.js
CHANGED
|
@@ -1,45 +1,80 @@
|
|
|
1
1
|
import { j as e } from "./index.es40.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { CrossCircleIcon as w, DownChevronIcon as B } from "./index.es42.js";
|
|
3
|
+
import { Button as u, SelectValue as C } from "react-aria-components";
|
|
4
|
+
import { cn as l } from "./index.es41.js";
|
|
5
|
+
import { invisibleSelectButtonVariants as V, invisibleSelectBadgeVariants as I } from "./index.es57.js";
|
|
6
|
+
const F = ({
|
|
7
|
+
ref: x,
|
|
8
|
+
isOpen: o,
|
|
9
|
+
setIsOpen: f,
|
|
10
|
+
size: a,
|
|
11
|
+
isDisabled: r,
|
|
12
|
+
buttonClassName: d,
|
|
13
|
+
selectionMode: h,
|
|
14
|
+
maxLengthTextOption: c,
|
|
15
|
+
handleDeleteOptionSelected: j,
|
|
16
|
+
placeholder: p,
|
|
17
|
+
validationState: v
|
|
18
|
+
}) => {
|
|
19
|
+
const N = (t, n) => r ? "disabled" : v === "invalid" ? "error" : n || o ? "active" : t ? "hover" : "default";
|
|
20
|
+
return /* @__PURE__ */ e.jsxs(
|
|
21
|
+
u,
|
|
9
22
|
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})
|
|
23
|
+
ref: x,
|
|
24
|
+
className: ({ isHovered: t, isFocusVisible: n }) => l(
|
|
25
|
+
V({
|
|
26
|
+
size: a,
|
|
27
|
+
state: N(t, n)
|
|
28
|
+
}),
|
|
29
|
+
d
|
|
18
30
|
),
|
|
19
|
-
|
|
20
|
-
|
|
31
|
+
onPress: () => f(!o),
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ e.jsx(C, { className: "flex flex-1 items-center gap-1 overflow-hidden", children: ({ selectedItems: t, selectedText: n, isPlaceholder: g }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: h === "multiple" && t && t.length > 0 ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1", children: t.filter((s) => s != null).map((s) => {
|
|
34
|
+
const i = s.label, S = i.length > c ? `${i.slice(0, c)}...` : i, m = s.value;
|
|
35
|
+
return /* @__PURE__ */ e.jsxs("div", { className: l(I({ size: a, isDisabled: r })), children: [
|
|
36
|
+
/* @__PURE__ */ e.jsx("span", { children: S }),
|
|
37
|
+
/* @__PURE__ */ e.jsx(
|
|
38
|
+
u,
|
|
39
|
+
{
|
|
40
|
+
className: l("outline-none", r ? "cursor-not-allowed" : ""),
|
|
41
|
+
isDisabled: r,
|
|
42
|
+
slot: null,
|
|
43
|
+
onPress: () => j(m),
|
|
44
|
+
children: /* @__PURE__ */ e.jsx(
|
|
45
|
+
w,
|
|
46
|
+
{
|
|
47
|
+
className: l(
|
|
48
|
+
"text-primary-800",
|
|
49
|
+
r ? "text-neutral-600" : "",
|
|
50
|
+
a === "xs" || a === "sm" ? "size-3" : "size-4"
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] }, m);
|
|
57
|
+
}) }) : /* @__PURE__ */ e.jsx(
|
|
21
58
|
"span",
|
|
22
59
|
{
|
|
23
|
-
className:
|
|
24
|
-
"flex
|
|
25
|
-
|
|
60
|
+
className: l(
|
|
61
|
+
"flex-1 truncate text-left",
|
|
62
|
+
g ? "text-neutral-600" : "",
|
|
63
|
+
r ? "text-neutral-700" : ""
|
|
26
64
|
),
|
|
27
|
-
children:
|
|
65
|
+
children: n || p
|
|
28
66
|
}
|
|
29
|
-
),
|
|
30
|
-
/* @__PURE__ */ e.jsx(
|
|
31
|
-
|
|
67
|
+
) }) }),
|
|
68
|
+
/* @__PURE__ */ e.jsx(
|
|
69
|
+
B,
|
|
32
70
|
{
|
|
33
|
-
|
|
34
|
-
clipRule: "evenodd",
|
|
35
|
-
d: "M13.2241 0.601824C13.4808 0.780773 13.5439 1.13398 13.365 1.39073L5.69829 12.3907C5.59653 12.5367 5.43209 12.6264 5.25425 12.633C5.07641 12.6395 4.90582 12.5622 4.79359 12.4241L0.460261 7.09072C0.26291 6.84783 0.299829 6.49094 0.542723 6.29358C0.785617 6.09623 1.14251 6.13315 1.33986 6.37605L5.19872 11.1254L12.4352 0.7427C12.6141 0.485948 12.9673 0.422875 13.2241 0.601824Z",
|
|
36
|
-
fill: "#4C3BEF"
|
|
71
|
+
className: `${o ? "rotate-180" : ""} size-4 text-blue-900 transition-transform duration-100`
|
|
37
72
|
}
|
|
38
|
-
)
|
|
39
|
-
]
|
|
73
|
+
)
|
|
74
|
+
]
|
|
40
75
|
}
|
|
41
76
|
);
|
|
42
77
|
};
|
|
43
78
|
export {
|
|
44
|
-
|
|
79
|
+
F as InvisibleSelectContent
|
|
45
80
|
};
|
package/dist/index.es18.js
CHANGED
|
@@ -5,10 +5,10 @@ import { TimeField as S, Group as U, DateInput as W, Button as X, FieldError as
|
|
|
5
5
|
import { cn as s } from "./index.es41.js";
|
|
6
6
|
import "./index.es13.js";
|
|
7
7
|
import { Label as Z } from "./index.es14.js";
|
|
8
|
-
import { invisibleInputLabelVariants as $, invisibleInputCaptionVariants as q } from "./index.
|
|
8
|
+
import { invisibleInputLabelVariants as $, invisibleInputCaptionVariants as q } from "./index.es62.js";
|
|
9
9
|
import { TimePickerPopover as z } from "./index.es19.js";
|
|
10
10
|
import { TimeSegment as ee } from "./index.es20.js";
|
|
11
|
-
import { invisibleTimeFieldContainerVariants as ie, invisibleTimeFieldGroupVariants as se, invisibleTimeFieldInputVariants as le, timeFieldButtonVariants as ne } from "./index.
|
|
11
|
+
import { invisibleTimeFieldContainerVariants as ie, invisibleTimeFieldGroupVariants as se, invisibleTimeFieldInputVariants as le, timeFieldButtonVariants as ne } from "./index.es58.js";
|
|
12
12
|
const re = K(
|
|
13
13
|
({
|
|
14
14
|
size: l = "bodyDefault",
|
package/dist/index.es19.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useRef as M, useState as P, useCallback as d, useEffect as j } from "re
|
|
|
4
4
|
import { Popover as $, ListBox as k, ListBoxItem as N } from "react-aria-components";
|
|
5
5
|
import { cn as x } from "./index.es41.js";
|
|
6
6
|
import { Button as H } from "./index.es5.js";
|
|
7
|
-
import { timePickerListItemVariants as A } from "./index.
|
|
7
|
+
import { timePickerListItemVariants as A } from "./index.es58.js";
|
|
8
8
|
function U(C) {
|
|
9
9
|
const { isOpen: i, onOpenChange: a, value: r, onChange: h, hourCycle: l = 12, containerRef: K, confirmButtonLabel: R } = C, y = M(null), g = M(null), S = M(null), [s, b] = P((r == null ? void 0 : r.hour) ?? 0), [m, v] = P((r == null ? void 0 : r.minute) ?? 0), V = Array.from({ length: l === 12 ? 12 : 24 }, (e, t) => l === 12 ? t + 1 : t), E = Array.from({ length: 60 }, (e, t) => t), f = l === 12 ? s === 0 ? 12 : s > 12 ? s - 12 : s : s, T = s >= 12 ? "PM" : "AM", [u, L] = P(T), w = d(() => {
|
|
10
10
|
const e = new O(s, m, 0);
|
package/dist/index.es22.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as e } from "./index.es40.js";
|
|
|
2
2
|
import { forwardRef as x } from "react";
|
|
3
3
|
import { cn as y } from "./index.es41.js";
|
|
4
4
|
import { Loader as f } from "./index.es21.js";
|
|
5
|
-
import { Overlay as u } from "./index.
|
|
5
|
+
import { Overlay as u } from "./index.es69.js";
|
|
6
6
|
const v = (s, a) => {
|
|
7
7
|
const {
|
|
8
8
|
className: l,
|