@okam/stack-ui 2.0.1 → 2.1.0
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/CHANGELOG.md +25 -0
- package/components/fields/ComboBox/interface.d.ts +6 -0
- package/components/fields/ListBox/interface.d.ts +1 -1
- package/components/fields/SearchField/interface.d.ts +9 -2
- package/components/fields/TextArea/attributes.d.ts +1 -0
- package/components/fields/TextInputField/attributes.d.ts +1 -0
- package/index.d.ts +1 -0
- package/index119.js +1 -1
- package/index119.mjs +1 -1
- package/index12.js +1 -1
- package/index12.mjs +6 -6
- package/index122.js +1 -1
- package/index122.mjs +22 -22
- package/index127.js +1 -1
- package/index127.mjs +10 -10
- package/index131.js +1 -1
- package/index131.mjs +1 -1
- package/index133.js +1 -1
- package/index133.mjs +11 -14
- package/index134.js +1 -1
- package/index134.mjs +12 -7
- package/index135.js +1 -1
- package/index135.mjs +14 -7
- package/index136.js +1 -1
- package/index136.mjs +6 -15
- package/index137.js +1 -1
- package/index137.mjs +7 -31
- package/index138.js +1 -2
- package/index138.mjs +15 -8
- package/index139.js +1 -2
- package/index139.mjs +30 -9
- package/index140.js +2 -1
- package/index140.mjs +8 -23
- package/index141.js +1 -1
- package/index141.mjs +8 -45
- package/index142.js +1 -1
- package/index142.mjs +24 -52
- package/index143.js +2 -6
- package/index143.mjs +45 -92
- package/index144.js +1 -1
- package/index144.mjs +52 -70
- package/index145.js +6 -1
- package/index145.mjs +82 -29
- package/index146.js +1 -51
- package/index146.mjs +65 -86
- package/index147.js +1 -64
- package/index147.mjs +33 -220
- package/index148.js +51 -10
- package/index148.mjs +85 -65
- package/index149.js +64 -1
- package/index149.mjs +214 -31
- package/index150.js +10 -1
- package/index150.mjs +68 -10
- package/index151.js +1 -6
- package/index151.mjs +42 -46
- package/index152.js +1 -5
- package/index152.mjs +10 -85
- package/index153.js +7 -1
- package/index153.mjs +50 -6
- package/index154.js +4 -11
- package/index154.mjs +78 -30
- package/index155.js +1 -1
- package/index155.mjs +6 -96
- package/index156.js +12 -1
- package/index156.mjs +39 -12
- package/index157.js +1 -1
- package/index157.mjs +96 -8
- package/index158.js +1 -1
- package/index158.mjs +13 -29
- package/index159.js +1 -1
- package/index159.mjs +7 -12
- package/index160.js +1 -7
- package/index160.mjs +23 -13
- package/index161.js +1 -15
- package/index161.mjs +9 -67
- package/index162.js +7 -1
- package/index162.mjs +22 -6
- package/index163.js +15 -9
- package/index163.mjs +68 -12
- package/index164.js +1 -41
- package/index164.mjs +7 -106
- package/index165.js +9 -47
- package/index165.mjs +13 -100
- package/index166.js +40 -15
- package/index166.mjs +100 -19
- package/index167.js +45 -18
- package/index167.mjs +85 -59
- package/index168.js +16 -1
- package/index168.mjs +20 -37
- package/index169.js +20 -1
- package/index169.mjs +76 -12
- package/index17.js +1 -1
- package/index17.mjs +14 -14
- package/index170.js +1 -1
- package/index170.mjs +41 -10
- package/index171.js +1 -1
- package/index171.mjs +11 -6
- package/index172.js +1 -2
- package/index172.mjs +6 -47
- package/index173.js +2 -0
- package/index173.mjs +50 -0
- package/index174.js +1 -0
- package/index174.mjs +13 -0
- package/index18.js +1 -1
- package/index18.mjs +7 -7
- package/index2.js +1 -1
- package/index2.mjs +4 -4
- package/index26.js +1 -1
- package/index26.mjs +15 -15
- package/index27.js +1 -1
- package/index27.mjs +15 -15
- package/index32.js +1 -1
- package/index32.mjs +105 -85
- package/index35.js +1 -1
- package/index35.mjs +14 -14
- package/index38.js +1 -1
- package/index38.mjs +115 -107
- package/index39.js +1 -1
- package/index39.mjs +11 -11
- package/index43.js +1 -1
- package/index43.mjs +55 -52
- package/index46.js +1 -1
- package/index46.mjs +86 -87
- package/index47.js +1 -1
- package/index47.mjs +110 -111
- package/index48.js +1 -1
- package/index48.mjs +3 -3
- package/index52.js +1 -1
- package/index52.mjs +1 -1
- package/index53.js +1 -1
- package/index53.mjs +1 -1
- package/index54.js +1 -1
- package/index54.mjs +3 -3
- package/index56.js +1 -1
- package/index56.mjs +33 -32
- package/index66.js +1 -1
- package/index66.mjs +1 -1
- package/index68.js +1 -1
- package/index68.mjs +11 -11
- package/index72.js +1 -1
- package/index72.mjs +13 -13
- package/index76.js +1 -1
- package/index76.mjs +1 -1
- package/index8.js +1 -1
- package/index8.mjs +30 -30
- package/index91.js +1 -1
- package/index91.mjs +50 -49
- package/package.json +2 -2
- package/theme/Search/index.d.ts +2 -1
package/index47.mjs
CHANGED
|
@@ -1,192 +1,191 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as n, jsxs as $ } from "react/jsx-runtime";
|
|
3
|
+
import { filterDOMProps as P } from "@react-aria/utils";
|
|
4
|
+
import { isEmpty as w } from "radashi";
|
|
4
5
|
import { useRef as B } from "react";
|
|
5
|
-
import { useTextField as H, FocusRing as
|
|
6
|
-
import { useFormContext as
|
|
7
|
-
import
|
|
8
|
-
import { useTranslation as
|
|
6
|
+
import { useTextField as H, FocusRing as j } from "react-aria";
|
|
7
|
+
import { useFormContext as A, Controller as G } from "react-hook-form";
|
|
8
|
+
import L from "./index88.mjs";
|
|
9
|
+
import { useTranslation as _ } from "./index89.mjs";
|
|
9
10
|
import { Box as q } from "./index7.mjs";
|
|
10
11
|
import C from "./index48.mjs";
|
|
11
12
|
import { Typography as Q } from "./index74.mjs";
|
|
12
|
-
|
|
13
|
+
import { textInputAttributes as U } from "./index134.mjs";
|
|
14
|
+
function X(c) {
|
|
13
15
|
const {
|
|
14
16
|
icon: p,
|
|
15
|
-
errorIcon:
|
|
16
|
-
label:
|
|
17
|
+
errorIcon: e,
|
|
18
|
+
label: a,
|
|
17
19
|
isRequired: R = !1,
|
|
18
|
-
isDisabled:
|
|
20
|
+
isDisabled: f = !1,
|
|
19
21
|
isInvalid: I = !1,
|
|
20
22
|
required: k,
|
|
21
|
-
disabled:
|
|
22
|
-
errorMessage:
|
|
23
|
-
fieldRef:
|
|
24
|
-
children:
|
|
25
|
-
themeName:
|
|
26
|
-
tokens:
|
|
23
|
+
disabled: N,
|
|
24
|
+
errorMessage: r,
|
|
25
|
+
fieldRef: u,
|
|
26
|
+
children: M,
|
|
27
|
+
themeName: s = "textInput",
|
|
28
|
+
tokens: x,
|
|
27
29
|
customTheme: o,
|
|
28
|
-
ariaLabel:
|
|
30
|
+
ariaLabel: E,
|
|
29
31
|
placeholder: T,
|
|
30
32
|
isReadOnly: v = !1,
|
|
31
|
-
...
|
|
32
|
-
} =
|
|
33
|
+
...F
|
|
34
|
+
} = c, h = B(null), d = k ?? R, D = N ?? f, { labelProps: t, inputProps: l, errorMessageProps: O } = H(
|
|
33
35
|
{
|
|
34
|
-
label:
|
|
35
|
-
errorMessage:
|
|
36
|
-
isRequired:
|
|
37
|
-
isDisabled:
|
|
36
|
+
label: a,
|
|
37
|
+
errorMessage: r,
|
|
38
|
+
isRequired: d,
|
|
39
|
+
isDisabled: D,
|
|
38
40
|
isInvalid: I,
|
|
39
41
|
isReadOnly: v,
|
|
40
|
-
...
|
|
42
|
+
...F
|
|
41
43
|
},
|
|
42
|
-
|
|
43
|
-
),
|
|
44
|
-
|
|
45
|
-
},
|
|
44
|
+
h
|
|
45
|
+
), y = (m) => {
|
|
46
|
+
m != null && (u?.(m), h.current = m);
|
|
47
|
+
}, i = { ...x, isDisabled: f, isRequired: R, isError: r != null }, b = L(`${s}.input`, i);
|
|
46
48
|
return /* @__PURE__ */ $(q, { children: [
|
|
47
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ n(j, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ $(
|
|
48
50
|
q,
|
|
49
51
|
{
|
|
50
|
-
"aria-disabled":
|
|
51
|
-
themeName: `${
|
|
52
|
-
tokens:
|
|
52
|
+
"aria-disabled": l.disabled,
|
|
53
|
+
themeName: `${s}.wrapper`,
|
|
54
|
+
tokens: i,
|
|
53
55
|
customTheme: o,
|
|
54
56
|
children: [
|
|
55
|
-
|
|
57
|
+
a != null && /* @__PURE__ */ n(
|
|
56
58
|
q,
|
|
57
59
|
{
|
|
58
60
|
as: "label",
|
|
59
|
-
tokens:
|
|
60
|
-
themeName: `${
|
|
61
|
+
tokens: i,
|
|
62
|
+
themeName: `${s}.label`,
|
|
61
63
|
customTheme: o,
|
|
62
|
-
...
|
|
63
|
-
children:
|
|
64
|
+
...t,
|
|
65
|
+
children: a
|
|
64
66
|
}
|
|
65
67
|
),
|
|
66
|
-
/* @__PURE__ */ $(q, { themeName: `${
|
|
67
|
-
|
|
68
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ $(q, { themeName: `${s}.container`, tokens: i, customTheme: o, children: [
|
|
69
|
+
M,
|
|
70
|
+
/* @__PURE__ */ n("input", { "aria-label": E, ...l, placeholder: T, ref: y, className: b })
|
|
69
71
|
] }),
|
|
70
|
-
p != null && /* @__PURE__ */
|
|
72
|
+
p != null && /* @__PURE__ */ n(
|
|
71
73
|
C,
|
|
72
74
|
{
|
|
73
|
-
themeName: `${
|
|
74
|
-
tokens:
|
|
75
|
+
themeName: `${s}.icon`,
|
|
76
|
+
tokens: i,
|
|
75
77
|
customTheme: o,
|
|
76
78
|
icon: p,
|
|
77
79
|
"aria-hidden": !0
|
|
78
80
|
}
|
|
79
81
|
),
|
|
80
|
-
|
|
82
|
+
r != null && e != null && /* @__PURE__ */ n(
|
|
81
83
|
C,
|
|
82
84
|
{
|
|
83
|
-
themeName: `${
|
|
84
|
-
tokens:
|
|
85
|
+
themeName: `${s}.errorIcon`,
|
|
86
|
+
tokens: i,
|
|
85
87
|
customTheme: o,
|
|
86
|
-
icon:
|
|
88
|
+
icon: e,
|
|
87
89
|
"aria-hidden": !0
|
|
88
90
|
}
|
|
89
91
|
)
|
|
90
92
|
]
|
|
91
93
|
}
|
|
92
94
|
) }),
|
|
93
|
-
|
|
95
|
+
r != null && /* @__PURE__ */ n(
|
|
94
96
|
Q,
|
|
95
97
|
{
|
|
96
|
-
themeName: `${
|
|
97
|
-
tokens:
|
|
98
|
+
themeName: `${s}.errorMessage`,
|
|
99
|
+
tokens: i,
|
|
98
100
|
customTheme: o,
|
|
99
|
-
...
|
|
100
|
-
children:
|
|
101
|
+
...O,
|
|
102
|
+
children: r
|
|
101
103
|
}
|
|
102
104
|
)
|
|
103
105
|
] });
|
|
104
106
|
}
|
|
105
|
-
function
|
|
106
|
-
name:
|
|
107
|
+
function oe({
|
|
108
|
+
name: c,
|
|
107
109
|
label: p,
|
|
108
|
-
rules:
|
|
109
|
-
tokens:
|
|
110
|
+
rules: e,
|
|
111
|
+
tokens: a,
|
|
110
112
|
ariaLabel: R,
|
|
111
|
-
defaultValue:
|
|
113
|
+
defaultValue: f = "",
|
|
112
114
|
placeholder: I = "",
|
|
113
115
|
themeName: k = "textInput",
|
|
114
|
-
isReadOnly:
|
|
115
|
-
minLength:
|
|
116
|
-
maxLength:
|
|
117
|
-
required:
|
|
118
|
-
isRequired:
|
|
119
|
-
onChange:
|
|
116
|
+
isReadOnly: N = !1,
|
|
117
|
+
minLength: r,
|
|
118
|
+
maxLength: u,
|
|
119
|
+
required: M,
|
|
120
|
+
isRequired: s,
|
|
121
|
+
onChange: x,
|
|
120
122
|
onBlur: o,
|
|
121
|
-
children:
|
|
123
|
+
children: E = null,
|
|
122
124
|
errorIcon: T,
|
|
123
125
|
icon: v,
|
|
124
|
-
...
|
|
126
|
+
...F
|
|
125
127
|
}) {
|
|
126
|
-
const { control:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}, y = {
|
|
130
|
-
required: F ?? i ? c("FORM.ERROR.REQUIRED") ?? "required" : !1,
|
|
131
|
-
...s != null && {
|
|
128
|
+
const { control: h } = A(), { t: d } = _(), D = {
|
|
129
|
+
required: M ?? s ? d("FORM.ERROR.REQUIRED") ?? "required" : !1,
|
|
130
|
+
...r != null && {
|
|
132
131
|
minLength: {
|
|
133
|
-
value:
|
|
134
|
-
message:
|
|
132
|
+
value: r,
|
|
133
|
+
message: d("FORM.ERROR.MIN_LENGTH", { length: r })
|
|
135
134
|
}
|
|
136
135
|
},
|
|
137
|
-
...
|
|
136
|
+
...u != null && {
|
|
138
137
|
maxLength: {
|
|
139
|
-
value:
|
|
140
|
-
message:
|
|
138
|
+
value: u,
|
|
139
|
+
message: d("FORM.ERROR.MAX_LENGTH", { length: u })
|
|
141
140
|
}
|
|
142
141
|
},
|
|
143
|
-
...
|
|
142
|
+
...e
|
|
144
143
|
};
|
|
145
|
-
return /* @__PURE__ */
|
|
146
|
-
|
|
144
|
+
return /* @__PURE__ */ n(
|
|
145
|
+
G,
|
|
147
146
|
{
|
|
148
|
-
name:
|
|
149
|
-
control:
|
|
150
|
-
rules:
|
|
151
|
-
disabled:
|
|
152
|
-
defaultValue:
|
|
153
|
-
render: ({ field:
|
|
154
|
-
const { ref:
|
|
155
|
-
isDisabled:
|
|
156
|
-
isRequired:
|
|
157
|
-
isInvalid:
|
|
158
|
-
isError:
|
|
159
|
-
isReadOnly:
|
|
160
|
-
},
|
|
161
|
-
...
|
|
162
|
-
...
|
|
147
|
+
name: c,
|
|
148
|
+
control: h,
|
|
149
|
+
rules: D,
|
|
150
|
+
disabled: e?.disabled,
|
|
151
|
+
defaultValue: f,
|
|
152
|
+
render: ({ field: t, fieldState: l }) => {
|
|
153
|
+
const { ref: O, ...y } = t, i = !w(l.error), b = {
|
|
154
|
+
isDisabled: t.disabled ?? !1,
|
|
155
|
+
isRequired: e?.required === !0 || e?.required === "required",
|
|
156
|
+
isInvalid: l.invalid,
|
|
157
|
+
isError: i,
|
|
158
|
+
isReadOnly: N
|
|
159
|
+
}, m = {
|
|
160
|
+
...a,
|
|
161
|
+
...b
|
|
163
162
|
};
|
|
164
|
-
return /* @__PURE__ */
|
|
165
|
-
|
|
163
|
+
return /* @__PURE__ */ n(
|
|
164
|
+
X,
|
|
166
165
|
{
|
|
167
|
-
...
|
|
168
|
-
...
|
|
169
|
-
...
|
|
170
|
-
fieldRef:
|
|
171
|
-
name:
|
|
166
|
+
...y,
|
|
167
|
+
...b,
|
|
168
|
+
...P(F, { events: !0, labelable: !0, isLink: !1, global: !0, propNames: /* @__PURE__ */ new Set([...U]) }),
|
|
169
|
+
fieldRef: O,
|
|
170
|
+
name: c,
|
|
172
171
|
placeholder: I,
|
|
173
172
|
themeName: k,
|
|
174
173
|
label: p,
|
|
175
|
-
tokens:
|
|
174
|
+
tokens: m,
|
|
176
175
|
ariaLabel: R,
|
|
177
|
-
isDisabled:
|
|
178
|
-
isRequired:
|
|
179
|
-
isInvalid:
|
|
180
|
-
errorMessage:
|
|
176
|
+
isDisabled: t.disabled,
|
|
177
|
+
isRequired: e?.required === !0 || e?.required === "required",
|
|
178
|
+
isInvalid: l.invalid,
|
|
179
|
+
errorMessage: l.error?.message,
|
|
181
180
|
onChange: (g) => {
|
|
182
|
-
|
|
181
|
+
t.onChange(g), x?.(g);
|
|
183
182
|
},
|
|
184
183
|
onBlur: (g) => {
|
|
185
|
-
|
|
184
|
+
t.onBlur(), o?.(g);
|
|
186
185
|
},
|
|
187
186
|
icon: v,
|
|
188
187
|
errorIcon: T,
|
|
189
|
-
children:
|
|
188
|
+
children: E
|
|
190
189
|
}
|
|
191
190
|
);
|
|
192
191
|
}
|
|
@@ -194,6 +193,6 @@ function re({
|
|
|
194
193
|
);
|
|
195
194
|
}
|
|
196
195
|
export {
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
oe as ReactHookFormInput,
|
|
197
|
+
X as TextInputField
|
|
199
198
|
};
|
package/index48.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const v=require("./
|
|
2
|
+
"use strict";const v=require("./index137.js"),n=require("react/jsx-runtime"),c=require("react"),x=require("./index88.js"),q=require("./index136.js"),e=r=>Object.freeze(Object.defineProperty({__proto__:null,default:r},Symbol.toStringTag,{value:"Module"})),m=new Map;function P(r){const s=m.get(r);if(s!=null)return s;const o=c.lazy(async()=>v(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>e(require("./index93.js"))),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>e(require("./index94.js"))),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>e(require("./index95.js"))),"../icons/Check.tsx":()=>Promise.resolve().then(()=>e(require("./index96.js"))),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>e(require("./index97.js"))),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>e(require("./index98.js"))),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>e(require("./index99.js"))),"../icons/ErrorIcon.tsx":()=>Promise.resolve().then(()=>e(require("./index135.js"))),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>e(require("./index100.js"))),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>e(require("./index101.js"))),"../icons/FacebookRounded.tsx":()=>Promise.resolve().then(()=>e(require("./index102.js"))),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>e(require("./index103.js"))),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>e(require("./index136.js"))),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>e(require("./index104.js"))),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>e(require("./index105.js"))),"../icons/Link.tsx":()=>Promise.resolve().then(()=>e(require("./index106.js"))),"../icons/LinkedIn.tsx":()=>Promise.resolve().then(()=>e(require("./index107.js"))),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>e(require("./index108.js"))),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>e(require("./index109.js"))),"../icons/Print.tsx":()=>Promise.resolve().then(()=>e(require("./index110.js"))),"../icons/Search.tsx":()=>Promise.resolve().then(()=>e(require("./index130.js"))),"../icons/Share.tsx":()=>Promise.resolve().then(()=>e(require("./index111.js"))),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>e(require("./index112.js"))),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>e(require("./index113.js"))),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>e(require("./index114.js"))),"../icons/X.tsx":()=>Promise.resolve().then(()=>e(require("./index115.js"))),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>e(require("./index116.js"))),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>e(require("./index117.js")))}),`../icons/${r}.tsx`,3));return m.set(r,o),o}function d(r){const{icon:s,...o}=r,t=s||"ArrowRight",i=c.useMemo(()=>P(t),[t]);return n.jsx(c.Suspense,{fallback:n.jsx(q,{className:"overflow-visible pointer-events-none"}),children:n.jsx(i,{...o,className:"overflow-visible pointer-events-none",...r})})}function p(r){const{icon:s,as:o="span",tokens:t,customTheme:i,themeName:a="icon",children:l,...u}=r,h=x(a,t,i);return typeof s!="string"?n.jsxs(o,{...u,className:h,children:[l,s]}):n.jsxs(o,{className:h,children:[l,n.jsx(d,{icon:s,...u})]})}module.exports=p;
|
package/index48.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import x from "./
|
|
2
|
+
import x from "./index137.mjs";
|
|
3
3
|
import { jsxs as p, jsx as i } from "react/jsx-runtime";
|
|
4
4
|
import { useMemo as u, Suspense as h, lazy as f } from "react";
|
|
5
5
|
import d from "./index88.mjs";
|
|
6
|
-
import b from "./
|
|
6
|
+
import b from "./index136.mjs";
|
|
7
7
|
const a = /* @__PURE__ */ new Map();
|
|
8
8
|
function C(o) {
|
|
9
9
|
const t = a.get(o);
|
|
10
10
|
if (t != null)
|
|
11
11
|
return t;
|
|
12
|
-
const s = f(async () => x(/* @__PURE__ */ Object.assign({ "../icons/ArrowDown.tsx": () => import("./index93.mjs"), "../icons/ArrowLeft.tsx": () => import("./index94.mjs"), "../icons/ArrowRight.tsx": () => import("./index95.mjs"), "../icons/Check.tsx": () => import("./index96.mjs"), "../icons/ChevronLeft.tsx": () => import("./index97.mjs"), "../icons/ChevronRight.tsx": () => import("./index98.mjs"), "../icons/CloseBtn.tsx": () => import("./index99.mjs"), "../icons/ErrorIcon.tsx": () => import("./
|
|
12
|
+
const s = f(async () => x(/* @__PURE__ */ Object.assign({ "../icons/ArrowDown.tsx": () => import("./index93.mjs"), "../icons/ArrowLeft.tsx": () => import("./index94.mjs"), "../icons/ArrowRight.tsx": () => import("./index95.mjs"), "../icons/Check.tsx": () => import("./index96.mjs"), "../icons/ChevronLeft.tsx": () => import("./index97.mjs"), "../icons/ChevronRight.tsx": () => import("./index98.mjs"), "../icons/CloseBtn.tsx": () => import("./index99.mjs"), "../icons/ErrorIcon.tsx": () => import("./index135.mjs"), "../icons/Facebook.tsx": () => import("./index100.mjs"), "../icons/FacebookColored.tsx": () => import("./index101.mjs"), "../icons/FacebookRounded.tsx": () => import("./index102.mjs"), "../icons/Globe.tsx": () => import("./index103.mjs"), "../icons/IconFallback.tsx": () => import("./index136.mjs"), "../icons/Instagram.tsx": () => import("./index104.mjs"), "../icons/InstagramColored.tsx": () => import("./index105.mjs"), "../icons/Link.tsx": () => import("./index106.mjs"), "../icons/LinkedIn.tsx": () => import("./index107.mjs"), "../icons/Mail.tsx": () => import("./index108.mjs"), "../icons/Plus.tsx": () => import("./index109.mjs"), "../icons/Print.tsx": () => import("./index110.mjs"), "../icons/Search.tsx": () => import("./index130.mjs"), "../icons/Share.tsx": () => import("./index111.mjs"), "../icons/Twitter.tsx": () => import("./index112.mjs"), "../icons/TwitterColored.tsx": () => import("./index113.mjs"), "../icons/Upload.tsx": () => import("./index114.mjs"), "../icons/X.tsx": () => import("./index115.mjs"), "../icons/YouTube.tsx": () => import("./index116.mjs"), "../icons/YouTubeColored.tsx": () => import("./index117.mjs") }), `../icons/${o}.tsx`, 3));
|
|
13
13
|
return a.set(o, s), s;
|
|
14
14
|
}
|
|
15
15
|
function I(o) {
|
package/index52.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const t=require("react/jsx-runtime"),h=require("./index84.js"),x=require("./index86.js"),d=require("./index120.js"),r=require("./index7.js"),p=require("./
|
|
2
|
+
"use strict";const t=require("react/jsx-runtime"),h=require("./index84.js"),x=require("./index86.js"),d=require("./index120.js"),r=require("./index7.js"),p=require("./index138.js");function q(s){const{id:o="main-menu",children:c,PanelTransition:u=d,themeName:e,tokens:n,customTheme:a,...m}=s,{overlayState:l}=x.useSidePanel(),{closeBtn:i}=h.useMenu();return t.jsx(u,{themeName:`${e}.panelTransition`,tokens:n,isVisible:l?.isOpen,children:t.jsxs(r.Box,{themeName:`${e}.wrapper`,tokens:n,children:[i!=null&&i(),t.jsx(r.Box,{themeName:`${e}.container`,tokens:n,children:t.jsx(p,{id:o,themeName:`${e}.innerContent`,tokens:n,customTheme:a,...m,children:c})})]})})}module.exports=q;
|
package/index52.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { useMenu as u } from "./index84.mjs";
|
|
|
4
4
|
import { useSidePanel as d } from "./index86.mjs";
|
|
5
5
|
import f from "./index120.mjs";
|
|
6
6
|
import { Box as o } from "./index7.mjs";
|
|
7
|
-
import N from "./
|
|
7
|
+
import N from "./index138.mjs";
|
|
8
8
|
function C(i) {
|
|
9
9
|
const {
|
|
10
10
|
id: m = "main-menu",
|
package/index53.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const o=require("react/jsx-runtime"),e=require("react"),q=require("./index84.js"),C=require("./index66.js"),b=require("./
|
|
2
|
+
"use strict";const o=require("react/jsx-runtime"),e=require("react"),q=require("./index84.js"),C=require("./index66.js"),b=require("./index138.js");function j(l){const{id:n="main-menu",children:d,TransitionAnimation:m,PanelTransition:f,themeName:t,tokens:r,customTheme:s,...h}=l,{closeBtn:x,tabState:c,defaultSelectedKey:i}=q.useMenu(),u=e.useRef(c),a=e.useRef(i);u.current=c,a.current=i;const R=e.useCallback(S=>{S||u.current?.setSelectedKey(a.current)},[]);return o.jsx(C,{themeName:`${t}.sidePanel`,tokens:r,customTheme:s,closeBtnRender:x,id:n,TransitionAnimation:m,PanelTransition:f,onOpenChange:R,children:o.jsx(b,{id:n,themeName:t,tokens:r,customTheme:s,...h,children:d})})}module.exports=j;
|
package/index53.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx as m } from "react/jsx-runtime";
|
|
|
3
3
|
import { useRef as s, useCallback as P } from "react";
|
|
4
4
|
import { useMenu as R } from "./index84.mjs";
|
|
5
5
|
import b from "./index66.mjs";
|
|
6
|
-
import y from "./
|
|
6
|
+
import y from "./index138.mjs";
|
|
7
7
|
function B(l) {
|
|
8
8
|
const {
|
|
9
9
|
id: e = "main-menu",
|
package/index54.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),d=require("react-aria"),u=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),d=require("react-aria"),u=require("./index139.js"),m=require("./index140.js"),h=require("./index141.js");function x(i){const{children:a,transitionComponent:c=u,state:o,themeName:n,tokens:l,...s}=i,{isOpen:r}=o,t={isOpen:r,...l};return e.jsx(d.OverlayContainer,{children:e.jsx(c,{themeName:`${n}.transition`,tokens:t,isVisible:r,children:e.jsx(h,{themeName:n,tokens:t,state:o,...s,children:e.jsx(m,{themeName:n,tokens:t,...s,children:a})})})})}module.exports=x;
|
package/index54.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { OverlayContainer as d } from "react-aria";
|
|
4
|
-
import p from "./
|
|
5
|
-
import c from "./
|
|
6
|
-
import f from "./
|
|
4
|
+
import p from "./index139.mjs";
|
|
5
|
+
import c from "./index140.mjs";
|
|
6
|
+
import f from "./index141.mjs";
|
|
7
7
|
function O(s) {
|
|
8
8
|
const {
|
|
9
9
|
children: a,
|
package/index56.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),o=require("react-aria"),p=require("./index7.js");function D(r){const{children:u,themeName:s="popover",tokens:m,customTheme:f,placement:d="bottom",offset:h=5,state:t,arrow:a,sizeRef:x,popoverRef:R,triggerRef:v,contain:P=!0,autoFocus:g=!0,restoreFocus:j=!0}=r,b=x??v,{isOpen:y}=t,k=i.useRef(null),l=R??k,{popoverProps:n,underlayProps:w,arrowProps:F,placement:N}=o.usePopover({...r,placement:d,offset:h,popoverRef:l},t),c={placement:N??"bottom",isOpen:y,...m},$={[`--${s?.replace(".","-")}-container-width`]:`${b?.current?.offsetWidth}px`,...n.style},q=r.isNonModal===!0?0:n.tabIndex;return e.jsxs(o.Overlay,{children:[e.jsx(p.Box,{themeName:`${s}.underlay`,tokens:c,...w}),e.jsx(o.FocusScope,{autoFocus:g,restoreFocus:j,contain:P,children:e.jsxs(p.BoxWithForwardRef,{themeName:`${s}.popover`,customTheme:f,tokens:c,ref:l,...n,tabIndex:q,style:$,children:[a!=null&&i.cloneElement(a,{...F,themeName:`${s}.arrow`,tokens:c}),e.jsx(o.DismissButton,{onDismiss:t.close}),i.Children.map(u,B=>e.jsx(o.FocusRing,{focusRingClass:"has-focus-ring",children:B})),e.jsx(o.DismissButton,{onDismiss:t.close})]})})]})}exports.Popover=D;
|
package/index56.mjs
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { useRef as D, cloneElement as
|
|
4
|
-
import { usePopover as
|
|
5
|
-
import { Box as E, BoxWithForwardRef as
|
|
6
|
-
function
|
|
3
|
+
import { useRef as D, cloneElement as I, Children as T } from "react";
|
|
4
|
+
import { usePopover as j, Overlay as C, FocusScope as O, DismissButton as l, FocusRing as W } from "react-aria";
|
|
5
|
+
import { Box as E, BoxWithForwardRef as M } from "./index7.mjs";
|
|
6
|
+
function H(t) {
|
|
7
7
|
const {
|
|
8
|
-
children:
|
|
8
|
+
children: m,
|
|
9
9
|
themeName: o = "popover",
|
|
10
10
|
tokens: a,
|
|
11
11
|
customTheme: f,
|
|
12
12
|
placement: u = "bottom",
|
|
13
|
-
offset:
|
|
13
|
+
offset: d = 5,
|
|
14
14
|
state: r,
|
|
15
|
-
arrow:
|
|
16
|
-
sizeRef:
|
|
17
|
-
popoverRef:
|
|
15
|
+
arrow: c,
|
|
16
|
+
sizeRef: h,
|
|
17
|
+
popoverRef: R,
|
|
18
18
|
triggerRef: v,
|
|
19
19
|
contain: P = !0,
|
|
20
|
-
autoFocus:
|
|
21
|
-
restoreFocus:
|
|
22
|
-
} =
|
|
20
|
+
autoFocus: x = !0,
|
|
21
|
+
restoreFocus: g = !0
|
|
22
|
+
} = t, b = h ?? v, { isOpen: k } = r, w = D(null), p = R ?? w, { popoverProps: n, underlayProps: y, arrowProps: F, placement: N } = j(
|
|
23
23
|
{
|
|
24
|
-
...
|
|
24
|
+
...t,
|
|
25
25
|
placement: u,
|
|
26
|
-
offset:
|
|
26
|
+
offset: d,
|
|
27
27
|
popoverRef: p
|
|
28
28
|
},
|
|
29
29
|
r
|
|
30
|
-
),
|
|
30
|
+
), s = {
|
|
31
31
|
placement: N ?? "bottom",
|
|
32
|
-
isOpen:
|
|
32
|
+
isOpen: k,
|
|
33
33
|
...a
|
|
34
|
-
},
|
|
35
|
-
[`--${o?.replace(".", "-")}-container-width`]: `${
|
|
36
|
-
...
|
|
37
|
-
};
|
|
38
|
-
return /* @__PURE__ */ i(
|
|
39
|
-
/* @__PURE__ */ e(E, { themeName: `${o}.underlay`, tokens:
|
|
40
|
-
/* @__PURE__ */ e(
|
|
41
|
-
|
|
34
|
+
}, $ = {
|
|
35
|
+
[`--${o?.replace(".", "-")}-container-width`]: `${b?.current?.offsetWidth}px`,
|
|
36
|
+
...n.style
|
|
37
|
+
}, z = t.isNonModal === !0 ? 0 : n.tabIndex;
|
|
38
|
+
return /* @__PURE__ */ i(C, { children: [
|
|
39
|
+
/* @__PURE__ */ e(E, { themeName: `${o}.underlay`, tokens: s, ...y }),
|
|
40
|
+
/* @__PURE__ */ e(O, { autoFocus: x, restoreFocus: g, contain: P, children: /* @__PURE__ */ i(
|
|
41
|
+
M,
|
|
42
42
|
{
|
|
43
43
|
themeName: `${o}.popover`,
|
|
44
44
|
customTheme: f,
|
|
45
|
-
tokens:
|
|
45
|
+
tokens: s,
|
|
46
46
|
ref: p,
|
|
47
|
-
...
|
|
48
|
-
|
|
47
|
+
...n,
|
|
48
|
+
tabIndex: z,
|
|
49
|
+
style: $,
|
|
49
50
|
children: [
|
|
50
|
-
|
|
51
|
-
/* @__PURE__ */ e(
|
|
52
|
-
|
|
53
|
-
/* @__PURE__ */ e(
|
|
51
|
+
c != null && I(c, { ...F, themeName: `${o}.arrow`, tokens: s }),
|
|
52
|
+
/* @__PURE__ */ e(l, { onDismiss: r.close }),
|
|
53
|
+
T.map(m, (B) => /* @__PURE__ */ e(W, { focusRingClass: "has-focus-ring", children: B })),
|
|
54
|
+
/* @__PURE__ */ e(l, { onDismiss: r.close })
|
|
54
55
|
]
|
|
55
56
|
}
|
|
56
57
|
) })
|
|
57
58
|
] });
|
|
58
59
|
}
|
|
59
60
|
export {
|
|
60
|
-
|
|
61
|
+
H as Popover
|
|
61
62
|
};
|
package/index66.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const i=require("react/jsx-runtime"),$=require("react"),f=require("react-div-100vh"),B=require("./index86.js"),N=require("./index92.js"),S=require("./
|
|
2
|
+
"use strict";const i=require("react/jsx-runtime"),$=require("react"),f=require("react-div-100vh"),B=require("./index86.js"),N=require("./index92.js"),S=require("./index142.js"),t=require("./index7.js"),T=require("./index54.js");function b(c){const{children:d,closeBtnRender:o,themeName:e="sidePanel",tokens:u,TransitionAnimation:m=N,PanelTransition:h=S,onOpenChange:r,customTheme:x,isDismissable:k=!0,shouldCloseOnInteractOutside:q,isKeyboardDismissDisabled:p=!1,onCloseCallBack:a,title:P,...j}=c,{overlayState:l,overlayProps:C}=B.useSidePanel(),{isOpen:n}=l;$.useEffect(()=>{r?.(n),n||a?.()},[n,r,a]);const s={isOpen:n,...u};return i.jsx(T,{themeName:e,tokens:s,customTheme:x,state:l,...C,transitionComponent:h,isDismissable:k,shouldCloseOnInteractOutside:q,isKeyboardDismissDisabled:p,title:P,...j,children:i.jsxs(t.Box,{as:f,themeName:`${e}.wrapper`,tokens:s,children:[o!=null&&o(),i.jsx(m,{themeName:`${e}.transitionAnimation`,tokens:s,isVisible:n,children:i.jsx(t.Box,{themeName:`${e}.container`,tokens:s,children:i.jsx(t.Box,{themeName:`${e}.innerContainer`,tokens:s,children:d})})})]})})}module.exports=b;
|
package/index66.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { useEffect as b } from "react";
|
|
|
4
4
|
import v from "react-div-100vh";
|
|
5
5
|
import { useSidePanel as x } from "./index86.mjs";
|
|
6
6
|
import D from "./index92.mjs";
|
|
7
|
-
import O from "./
|
|
7
|
+
import O from "./index142.mjs";
|
|
8
8
|
import { Box as o } from "./index7.mjs";
|
|
9
9
|
import $ from "./index54.mjs";
|
|
10
10
|
function I(l) {
|
package/index68.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const s=require("react/jsx-runtime"),x=require("react"),d=require("react-aria"),k=require("react-stately"),T=require("./index120.js"),a=require("./index7.js"),q=require("./index69.js"),j=require("./index71.js");function N(
|
|
2
|
+
"use strict";const s=require("react/jsx-runtime"),x=require("react"),d=require("react-aria"),k=require("react-stately"),T=require("./index120.js"),a=require("./index7.js"),q=require("./index69.js"),j=require("./index71.js");function N(r){const{themeName:e="tabList",tokens:o,customTheme:u,label:i,orientation:c="horizontal",panelTransition:h=T}=r,t=k.useTabListState(r),l=x.useRef(null),{tabListProps:b}=d.useTabList(r,t,l),n={...o,orientation:c,isDisabled:t.isDisabled};return s.jsxs(a.Box,{themeName:`${e}.wrapper`,tokens:n,customTheme:u,children:[i!=null&&i!==""&&s.jsx(a.Box,{themeName:`${e}.label`,tokens:n,children:i}),s.jsxs(a.Box,{themeName:`${e}.container`,tokens:n,children:[s.jsx(a.BoxWithForwardRef,{themeName:`${e}.list`,tokens:n,...b,ref:l,children:Array.from(t.collection,m=>s.jsx(q,{item:m,state:t,themeName:`${e}.tab`,tokens:{...o,orientation:c}},m.key))}),s.jsx(j,{state:t,themeName:`${e}.panel`,tokens:n,panelTransition:h},t.selectedItem?.key)]})]})}module.exports=N;
|
package/index68.mjs
CHANGED
|
@@ -4,32 +4,32 @@ import { useRef as d } from "react";
|
|
|
4
4
|
import { useTabList as k } from "react-aria";
|
|
5
5
|
import { useTabListState as T } from "react-stately";
|
|
6
6
|
import u from "./index120.mjs";
|
|
7
|
-
import { Box as
|
|
7
|
+
import { Box as r, BoxWithForwardRef as N } from "./index7.mjs";
|
|
8
8
|
import L from "./index69.mjs";
|
|
9
9
|
import $ from "./index71.mjs";
|
|
10
10
|
function W(a) {
|
|
11
11
|
const {
|
|
12
12
|
themeName: e = "tabList",
|
|
13
|
-
tokens:
|
|
14
|
-
customTheme:
|
|
13
|
+
tokens: s,
|
|
14
|
+
customTheme: f,
|
|
15
15
|
label: i,
|
|
16
16
|
orientation: m = "horizontal",
|
|
17
|
-
panelTransition:
|
|
17
|
+
panelTransition: b = u
|
|
18
18
|
} = a, t = T(a), l = d(null), { tabListProps: p } = k(a, t, l), o = {
|
|
19
|
-
...
|
|
19
|
+
...s,
|
|
20
20
|
orientation: m,
|
|
21
21
|
isDisabled: t.isDisabled
|
|
22
22
|
};
|
|
23
|
-
return /* @__PURE__ */ h(
|
|
24
|
-
i != null && i !== "" && /* @__PURE__ */ n(
|
|
25
|
-
/* @__PURE__ */ h(
|
|
26
|
-
/* @__PURE__ */ n(N, { themeName: `${e}.list`, tokens: o, ...p, ref: l, children:
|
|
23
|
+
return /* @__PURE__ */ h(r, { themeName: `${e}.wrapper`, tokens: o, customTheme: f, children: [
|
|
24
|
+
i != null && i !== "" && /* @__PURE__ */ n(r, { themeName: `${e}.label`, tokens: o, children: i }),
|
|
25
|
+
/* @__PURE__ */ h(r, { themeName: `${e}.container`, tokens: o, children: [
|
|
26
|
+
/* @__PURE__ */ n(N, { themeName: `${e}.list`, tokens: o, ...p, ref: l, children: Array.from(t.collection, (c) => /* @__PURE__ */ n(
|
|
27
27
|
L,
|
|
28
28
|
{
|
|
29
29
|
item: c,
|
|
30
30
|
state: t,
|
|
31
31
|
themeName: `${e}.tab`,
|
|
32
|
-
tokens: { ...
|
|
32
|
+
tokens: { ...s, orientation: m }
|
|
33
33
|
},
|
|
34
34
|
c.key
|
|
35
35
|
)) }),
|
|
@@ -39,7 +39,7 @@ function W(a) {
|
|
|
39
39
|
state: t,
|
|
40
40
|
themeName: `${e}.panel`,
|
|
41
41
|
tokens: o,
|
|
42
|
-
panelTransition:
|
|
42
|
+
panelTransition: b
|
|
43
43
|
},
|
|
44
44
|
t.selectedItem?.key
|
|
45
45
|
)
|
package/index72.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const s=require("react/jsx-runtime"),q=require("react"),N=require("react-aria"),T=require("react-stately"),h=require("./index7.js"),n=require("./index74.js"),$=require("./
|
|
2
|
+
"use strict";const s=require("react/jsx-runtime"),q=require("react"),N=require("react-aria"),T=require("react-stately"),h=require("./index7.js"),n=require("./index74.js"),$=require("./index143.js");function f(t){const{themeName:e="tagGroup",tokens:r,customTheme:m,as:l,label:c,description:i,errorMessage:p,removeButtonProps:d={children:"❌"}}=t,u=q.useRef(null),o=T.useListState(t),{gridProps:g,labelProps:x,descriptionProps:y,errorMessageProps:j}=N.useTagGroup(t,o,u);return s.jsxs(h.Box,{as:l,themeName:`${e}.wrapper`,tokens:r,customTheme:m,children:[!!c&&s.jsx(n.Typography,{themeName:`${e}.label`,tokens:r,...x,children:c}),s.jsx(h.BoxWithForwardRef,{themeName:`${e}.tags`,tokens:r,ref:u,...g,children:Array.from(o.collection,a=>s.jsx($,{themeName:`${e}.tag`,tokens:r,item:{...a,props:{removeButtonProps:d,...a.props}},state:o},a.key))}),!!i&&s.jsx(n.Typography,{themeName:`${e}.description`,tokens:r,...y,children:i}),!!p&&s.jsx(n.Typography,{themeName:`${e}.errorMessage`,tokens:r,...j,children:p})]})}module.exports=f;
|