@alfadocs/ui-kit 0.8.1 → 0.9.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/dist/_chunks/{agenda-card-CalZqycc.js → agenda-card-DU13wUTA.js} +4 -4
- package/dist/_chunks/{agenda-tray-3ffFDQZC.js → agenda-tray-gQUXklO4.js} +9 -9
- package/dist/_chunks/{ai-prompt-input-DLgY8lrW.js → ai-prompt-input-bAJwYu84.js} +45 -45
- package/dist/_chunks/{alert-CVMq99Cq.js → alert-pgdXrEO5.js} +2 -2
- package/dist/_chunks/{app-frame-CDJOgPXe.js → app-frame-BYx1gcV7.js} +2 -2
- package/dist/_chunks/{audio-recorder-cOl_Z_Pk.js → audio-recorder-BHBonrFf.js} +54 -54
- package/dist/_chunks/{audio-visualiser-ByDEFLNm.js → audio-visualiser-I-T4Z7EU.js} +2 -2
- package/dist/_chunks/{autocomplete-D4oUZbsP.js → autocomplete-C34hbfKh.js} +6 -6
- package/dist/_chunks/{avatar-Dcr6XuDQ.js → avatar-I10iCDs8.js} +2 -2
- package/dist/_chunks/{badge-DKFbntoa.js → badge-cLYVGlMh.js} +2 -2
- package/dist/_chunks/{balance-cell-renderer-BuExGe6u.js → balance-cell-renderer-DWWtX-VM.js} +5 -5
- package/dist/_chunks/{breadcrumb-D1snXjPb.js → breadcrumb--YI7lcHA.js} +4 -4
- package/dist/_chunks/{button-group-CONver7M.js → button-group-Bh2g_Ng-.js} +2 -2
- package/dist/_chunks/{chat-container-ClzsWXp2.js → chat-container-izziXViv.js} +4 -4
- package/dist/_chunks/{chat-message-DoAhgUTj.js → chat-message-g3lxpXM_.js} +2 -2
- package/dist/_chunks/{checkbox-group-CarPLDIC.js → checkbox-group-Qkm3Rg1S.js} +6 -6
- package/dist/_chunks/{color-picker-CTIcHlDF.js → color-picker-BPfcByHH.js} +13 -13
- package/dist/_chunks/{combobox-BLWruOxK.js → combobox-DUpWoPPk.js} +6 -6
- package/dist/_chunks/{contact-card-DNyATxKv.js → contact-card-VJIUqKB2.js} +13 -13
- package/dist/_chunks/{date-picker-B1PO1ZQP.js → date-picker-BD5FYW08.js} +3 -3
- package/dist/_chunks/{date-range-picker-mix2nEVC.js → date-range-picker-BZLVgcXE.js} +27 -27
- package/dist/_chunks/{date-time-picker-Dnong_BY.js → date-time-picker-CCoRWX7R.js} +5 -5
- package/dist/_chunks/{description-list-BYA77Yud.js → description-list-y7Hk51KI.js} +16 -16
- package/dist/_chunks/{dialog-W8uDfXD8.js → dialog-DRp6Dejy.js} +2 -2
- package/dist/_chunks/{file-upload-C947ACDK.js → file-upload-BVbfiANR.js} +81 -81
- package/dist/_chunks/{floating-action-button-C8OYj8mE.js → floating-action-button-pojvb9gG.js} +6 -6
- package/dist/_chunks/{form-field-Bmkeh7WY.js → form-field-BOm9hK35.js} +2 -2
- package/dist/_chunks/{freemium-paywall-B9kIDtm1.js → freemium-paywall-BTEiVkes.js} +29 -29
- package/dist/_chunks/{key-value-pair-CgWvAIGb.js → key-value-pair-AbrRwesr.js} +14 -14
- package/dist/_chunks/{leo-sidebar-BWECDYpu.js → leo-sidebar-B054wsZm.js} +8 -8
- package/dist/_chunks/{link-BcYW1eNM.js → link-BGpwaFik.js} +2 -2
- package/dist/_chunks/{list-qP6p0NTw.js → list-DcjV0m5B.js} +2 -2
- package/dist/_chunks/{message-card-DjvsB_3U.js → message-card-c6R0-qXq.js} +6 -6
- package/dist/_chunks/{message-tray-BbnAzlLH.js → message-tray-Fsend-du.js} +21 -21
- package/dist/_chunks/{multi-select-wqqrgjUQ.js → multi-select-Bh-xR8kP.js} +10 -10
- package/dist/_chunks/{navigation-menu-ClbHeawy.js → navigation-menu-Bav1d_wA.js} +2 -2
- package/dist/_chunks/{notification-card-uTPEvAQS.js → notification-card-CRIE2Cuk.js} +3 -3
- package/dist/_chunks/{notification-tray-PGtMqXbP.js → notification-tray-CfXNYrxv.js} +21 -21
- package/dist/_chunks/{number-input-Q7wkHnvQ.js → number-input-mpSLk-ld.js} +3 -3
- package/dist/_chunks/{otp-input-C9gUByF0.js → otp-input-CI-Zv5q6.js} +2 -2
- package/dist/_chunks/{pagination-3AC4zTsi.js → pagination-OQBlnb1H.js} +7 -7
- package/dist/_chunks/{patient-shell-IhMULVrt.js → patient-shell-BS2V6V1b.js} +3 -3
- package/dist/_chunks/{payment-form-C3HMAsGG.js → payment-form-CI77oIx1.js} +3 -3
- package/dist/_chunks/{pdf-viewer-DO95bm2o.js → pdf-viewer-CNETPubN.js} +3 -3
- package/dist/_chunks/{phone-input-CSHJOJ13.js → phone-input-DtBVs5fz.js} +7 -7
- package/dist/_chunks/{popover-DekUKNBk.js → popover--derJ_wq.js} +2 -2
- package/dist/_chunks/{progress-C11tqhoI.js → progress-B-PSO5OS.js} +4 -4
- package/dist/_chunks/{recaptcha-widget-NyfOfLII.js → recaptcha-widget-Kp1XntuE.js} +3 -3
- package/dist/_chunks/{resizable-mpXXyIsN.js → resizable-COV-cnth.js} +3 -3
- package/dist/_chunks/{search-bar-BTDfgYtg.js → search-bar-DmZZ9UvV.js} +2 -2
- package/dist/_chunks/{search-input-CdJIEjFo.js → search-input-BBtSRH-Q.js} +4 -4
- package/dist/_chunks/{select-BOU_Osnf.js → select-i9MwQeQy.js} +20 -20
- package/dist/_chunks/{sheet-BAg7GY9j.js → sheet-BT0izeoI.js} +9 -9
- package/dist/_chunks/{sidebar-Bx3wCDyy.js → sidebar-CoLHtVrP.js} +83 -83
- package/dist/_chunks/{sign-in-with-alfadocs-button-B9UrqOqH.js → sign-in-with-alfadocs-button-4zZC-I6y.js} +3 -3
- package/dist/_chunks/{skip-link-DmZ3c6cb.js → skip-link-BaSMtPwB.js} +2 -2
- package/dist/_chunks/{slider-BT2bZWsy.js → slider-CkR6CLun.js} +3 -3
- package/dist/_chunks/{sparkline-_gy8aJDG.js → sparkline-D4Np8ikf.js} +15 -15
- package/dist/_chunks/{spinner-DLaYfLPl.js → spinner-DirtWZNG.js} +2 -2
- package/dist/_chunks/{stat-B9PHSPbN.js → stat-CDQ_a0vk.js} +4 -4
- package/dist/_chunks/{switch-C0psfIQF.js → switch-D916VW86.js} +2 -2
- package/dist/_chunks/{tabs-BZQy_Rmb.js → tabs-Cg794H0Q.js} +3 -3
- package/dist/_chunks/{tag-DuLMjRbF.js → tag-CQmHRM4Y.js} +3 -3
- package/dist/_chunks/{task-card-Dw_ZJDL8.js → task-card-BUVMh6HN.js} +2 -2
- package/dist/_chunks/{task-tray-XlIW9ueh.js → task-tray-B3A2fRGR.js} +13 -13
- package/dist/_chunks/{text-area-CO9Dz0qX.js → text-area-DHtcpcLv.js} +13 -13
- package/dist/_chunks/{text-input-DZwt9L8H.js → text-input-1oqFRbVI.js} +2 -2
- package/dist/_chunks/{theme-toggle-B3UR6ouK.js → theme-toggle-B3meAb3y.js} +14 -14
- package/dist/_chunks/{time-picker-DvPUmHH-.js → time-picker-DeVZkIY2.js} +2 -2
- package/dist/_chunks/{timeline-BvmnQadS.js → timeline-BaSULpSJ.js} +2 -2
- package/dist/_chunks/{toast.agent-DihA6MON.js → toast.agent-32WNQ-_x.js} +2 -2
- package/dist/_chunks/{transaction-chip-DE6DITun.js → transaction-chip-eVbolm0B.js} +2 -2
- package/dist/_chunks/{transcript-panel-Bx5ANMsv.js → transcript-panel-BpJqPr7I.js} +8 -8
- package/dist/_chunks/{typing-indicator-BZ5jXZPn.js → typing-indicator-DHeVN4ob.js} +9 -9
- package/dist/_chunks/{use-password-requirements-DgEYdN4H.js → use-password-requirements-B1M8lE2t.js} +29 -32
- package/dist/_chunks/{warning-stack-CdLIe534.js → warning-stack-CeRihME9.js} +15 -15
- package/dist/_chunks/{workflow-map-CESZNNZe.js → workflow-map-D3MvrsZV.js} +4 -4
- package/dist/agent-catalog.json +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/floating-action-button/index.js +1 -1
- package/dist/components/form-field/index.js +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +2 -2
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +2 -2
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/skip-link/index.js +1 -1
- package/dist/components/skip-link/skip-link.d.ts +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/typing-indicator/index.js +1 -1
- package/dist/components/typing-indicator/typing-indicator.d.ts +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/config.d.ts +2 -1
- package/dist/i18n/config.js +49 -31
- package/dist/i18n/registerUiBundle.d.ts +15 -0
- package/dist/index.js +77 -77
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +2 -1
package/dist/_chunks/{use-password-requirements-DgEYdN4H.js → use-password-requirements-B1M8lE2t.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as g, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as ts, useRef as as, useState as C, useEffect as is, useCallback as
|
|
2
|
+
import { forwardRef as ts, useRef as as, useState as C, useEffect as is, useCallback as p, useMemo as V } from "react";
|
|
3
3
|
import { c as L } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as W } from "react-i18next";
|
|
5
|
-
import { T as rs } from "./text-input-
|
|
5
|
+
import { T as rs } from "./text-input-1oqFRbVI.js";
|
|
6
6
|
import { u as ns } from "./form-field-context-B3APVHKx.js";
|
|
7
7
|
import { c as os } from "./compose-refs-C0k0tdqF.js";
|
|
8
8
|
import { u as ds } from "./registry-C9nwlNyL.js";
|
|
9
9
|
import { E as ls } from "./eye-off-xEXDAh5z.js";
|
|
10
10
|
import { c as cs } from "./createLucideIcon-CrFbzy84.js";
|
|
11
|
-
import { C as
|
|
12
|
-
import { C as
|
|
11
|
+
import { C as ps } from "./check-DPdL_Sm7.js";
|
|
12
|
+
import { C as us } from "./circle-BkqTgYmt.js";
|
|
13
13
|
import { T as ms } from "./triangle-alert-CBPUIzQo.js";
|
|
14
14
|
/**
|
|
15
15
|
* @license lucide-react v1.8.0 - ISC
|
|
@@ -154,7 +154,7 @@ const fs = [
|
|
|
154
154
|
showStrength: r = !1,
|
|
155
155
|
strength: n,
|
|
156
156
|
requirements: l,
|
|
157
|
-
deriveStrength:
|
|
157
|
+
deriveStrength: u = !1,
|
|
158
158
|
autoComplete: w,
|
|
159
159
|
size: h = "md",
|
|
160
160
|
disabled: d,
|
|
@@ -173,35 +173,35 @@ const fs = [
|
|
|
173
173
|
is(() => {
|
|
174
174
|
typeof m == "string" && H(m);
|
|
175
175
|
}, [m]);
|
|
176
|
-
const X =
|
|
176
|
+
const X = p(
|
|
177
177
|
(s) => {
|
|
178
178
|
H(s.currentTarget.value), x == null || x(s);
|
|
179
179
|
},
|
|
180
180
|
[x]
|
|
181
|
-
), z =
|
|
181
|
+
), z = p((s) => {
|
|
182
182
|
var R;
|
|
183
183
|
const t = k.current;
|
|
184
184
|
if (!t) return;
|
|
185
185
|
const P = Object.getPrototypeOf(t), S = (R = Object.getOwnPropertyDescriptor(P, "value")) == null ? void 0 : R.set;
|
|
186
186
|
S == null || S.call(t, s), t.dispatchEvent(new Event("input", { bubbles: !0 })), t.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
187
|
-
}, []), Y =
|
|
187
|
+
}, []), Y = p(() => {
|
|
188
188
|
j((s) => {
|
|
189
189
|
const t = !s;
|
|
190
190
|
return e == null || e(t), t;
|
|
191
191
|
});
|
|
192
|
-
}, [e]), N =
|
|
192
|
+
}, [e]), N = p((s) => {
|
|
193
193
|
typeof s.getModifierState == "function" && A(s.getModifierState("CapsLock"));
|
|
194
|
-
}, []), Z =
|
|
194
|
+
}, []), Z = p(
|
|
195
195
|
(s) => {
|
|
196
196
|
N(s), b == null || b(s);
|
|
197
197
|
},
|
|
198
198
|
[N, b]
|
|
199
|
-
), D =
|
|
199
|
+
), D = p(
|
|
200
200
|
(s) => {
|
|
201
201
|
N(s), v == null || v(s);
|
|
202
202
|
},
|
|
203
203
|
[N, v]
|
|
204
|
-
), q =
|
|
204
|
+
), q = p(
|
|
205
205
|
(s) => {
|
|
206
206
|
A(!1), y == null || y(s);
|
|
207
207
|
},
|
|
@@ -230,7 +230,7 @@ const fs = [
|
|
|
230
230
|
);
|
|
231
231
|
ds(hs, U, I);
|
|
232
232
|
const F = ws[h], ss = f(
|
|
233
|
-
c ? "
|
|
233
|
+
c ? "inputs.password.toggleHide" : "inputs.password.toggleShow",
|
|
234
234
|
c ? "Hide password" : "Show password"
|
|
235
235
|
), o = V(
|
|
236
236
|
() => (l == null ? void 0 : l.map((s) => ({
|
|
@@ -239,10 +239,10 @@ const fs = [
|
|
|
239
239
|
}))) ?? null,
|
|
240
240
|
[l, _]
|
|
241
241
|
), es = V(() => {
|
|
242
|
-
if (!
|
|
242
|
+
if (!u || !(o != null && o.length)) return 0;
|
|
243
243
|
const s = o.filter((P) => P.met).length, t = o.length;
|
|
244
244
|
return Math.min(3, Math.floor(s / t * 4));
|
|
245
|
-
}, [
|
|
245
|
+
}, [u, o]), E = n !== void 0 ? n : u ? es : 0, O = xs[E], K = f(
|
|
246
246
|
`ui.inputs.password.strength.${O}`,
|
|
247
247
|
O.charAt(0).toUpperCase() + O.slice(1)
|
|
248
248
|
);
|
|
@@ -322,13 +322,13 @@ const fs = [
|
|
|
322
322
|
className: ks({ met: s.met }),
|
|
323
323
|
children: [
|
|
324
324
|
s.met ? /* @__PURE__ */ a(
|
|
325
|
-
|
|
325
|
+
ps,
|
|
326
326
|
{
|
|
327
327
|
"aria-hidden": "true",
|
|
328
328
|
className: "ds:size-3.5 ds:text-success ds:shrink-0"
|
|
329
329
|
}
|
|
330
330
|
) : /* @__PURE__ */ a(
|
|
331
|
-
|
|
331
|
+
us,
|
|
332
332
|
{
|
|
333
333
|
"aria-hidden": "true",
|
|
334
334
|
className: "ds:size-3.5 ds:shrink-0"
|
|
@@ -337,10 +337,7 @@ const fs = [
|
|
|
337
337
|
/* @__PURE__ */ a("span", { children: s.label }),
|
|
338
338
|
/* @__PURE__ */ g("span", { className: "ds:sr-only", children: [
|
|
339
339
|
" — ",
|
|
340
|
-
s.met ? f("
|
|
341
|
-
"ui.inputs.password.requirements.unmet",
|
|
342
|
-
"not yet met"
|
|
343
|
-
)
|
|
340
|
+
s.met ? f("inputs.password.requirements.met", "met") : f("inputs.password.requirements.unmet", "not yet met")
|
|
344
341
|
] })
|
|
345
342
|
]
|
|
346
343
|
},
|
|
@@ -358,7 +355,7 @@ const fs = [
|
|
|
358
355
|
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-meta ds:text-warning",
|
|
359
356
|
children: [
|
|
360
357
|
/* @__PURE__ */ a(ms, { "aria-hidden": "true", className: "ds:size-3.5" }),
|
|
361
|
-
f("
|
|
358
|
+
f("inputs.password.capsLock", "Caps Lock is on")
|
|
362
359
|
]
|
|
363
360
|
}
|
|
364
361
|
) : null,
|
|
@@ -371,7 +368,7 @@ const fs = [
|
|
|
371
368
|
"aria-valuemin": 0,
|
|
372
369
|
"aria-valuemax": 3,
|
|
373
370
|
"aria-label": f(
|
|
374
|
-
"
|
|
371
|
+
"inputs.password.strengthLabel",
|
|
375
372
|
"Password strength"
|
|
376
373
|
),
|
|
377
374
|
"aria-valuetext": K,
|
|
@@ -400,12 +397,12 @@ const fs = [
|
|
|
400
397
|
);
|
|
401
398
|
Ns.displayName = "PasswordInput";
|
|
402
399
|
function Hs(e = {}) {
|
|
403
|
-
const { t: r } = W(), { minLength: n, uppercase: l, lowercase:
|
|
400
|
+
const { t: r } = W(), { minLength: n, uppercase: l, lowercase: u, digit: w, symbol: h } = e;
|
|
404
401
|
return V(() => {
|
|
405
402
|
const d = [];
|
|
406
403
|
return typeof n == "number" && n > 0 && d.push({
|
|
407
404
|
id: "length",
|
|
408
|
-
label: r("
|
|
405
|
+
label: r("inputs.password.requirements.length", {
|
|
409
406
|
count: n,
|
|
410
407
|
defaultValue: `At least ${n} characters`
|
|
411
408
|
}),
|
|
@@ -413,34 +410,34 @@ function Hs(e = {}) {
|
|
|
413
410
|
}), l && d.push({
|
|
414
411
|
id: "uppercase",
|
|
415
412
|
label: r(
|
|
416
|
-
"
|
|
413
|
+
"inputs.password.requirements.uppercase",
|
|
417
414
|
"One uppercase letter"
|
|
418
415
|
),
|
|
419
416
|
test: (i) => new RegExp("\\p{Lu}", "u").test(i)
|
|
420
|
-
}),
|
|
417
|
+
}), u && d.push({
|
|
421
418
|
id: "lowercase",
|
|
422
419
|
label: r(
|
|
423
|
-
"
|
|
420
|
+
"inputs.password.requirements.lowercase",
|
|
424
421
|
"One lowercase letter"
|
|
425
422
|
),
|
|
426
423
|
test: (i) => new RegExp("\\p{Ll}", "u").test(i)
|
|
427
424
|
}), w && d.push({
|
|
428
425
|
id: "digit",
|
|
429
|
-
label: r("
|
|
426
|
+
label: r("inputs.password.requirements.digit", "One number"),
|
|
430
427
|
test: (i) => new RegExp("\\p{Nd}", "u").test(i)
|
|
431
428
|
}), h && d.push({
|
|
432
429
|
id: "symbol",
|
|
433
|
-
label: r("
|
|
430
|
+
label: r("inputs.password.requirements.symbol", "One symbol"),
|
|
434
431
|
// Anything that isn't a letter, number, or whitespace counts.
|
|
435
432
|
// `\p{L}` + `\p{N}` keep this Unicode-aware so non-Latin
|
|
436
433
|
// alphabets (Arabic, Chinese, …) aren't mis-classified as
|
|
437
434
|
// symbols.
|
|
438
435
|
test: (i) => /[^\p{L}\p{N}\s]/u.test(i)
|
|
439
436
|
}), d;
|
|
440
|
-
}, [r, n, l,
|
|
437
|
+
}, [r, n, l, u, w, h]);
|
|
441
438
|
}
|
|
442
439
|
export {
|
|
443
440
|
Ns as P,
|
|
444
441
|
Hs as u
|
|
445
442
|
};
|
|
446
|
-
//# sourceMappingURL=use-password-requirements-
|
|
443
|
+
//# sourceMappingURL=use-password-requirements-B1M8lE2t.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as M, useId as N, useState as O, useRef as y, useEffect as V, useMemo as _, useCallback as j } from "react";
|
|
3
3
|
import { c as W } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as q } from "react-i18next";
|
|
5
|
-
import { A as u } from "./alert-
|
|
5
|
+
import { A as u } from "./alert-pgdXrEO5.js";
|
|
6
6
|
import { B as F } from "./button-DD_0Xdmr.js";
|
|
7
7
|
import { C as H } from "./chevron-down-BX_NP2Yh.js";
|
|
8
8
|
const L = W(
|
|
@@ -49,7 +49,7 @@ const L = W(
|
|
|
49
49
|
description: p,
|
|
50
50
|
maxVisible: t,
|
|
51
51
|
defaultCollapsed: z = !0,
|
|
52
|
-
onDismiss:
|
|
52
|
+
onDismiss: d,
|
|
53
53
|
size: f = "md",
|
|
54
54
|
stretch: v = !1,
|
|
55
55
|
ariaLabel: A,
|
|
@@ -57,36 +57,36 @@ const L = W(
|
|
|
57
57
|
className: w,
|
|
58
58
|
...x
|
|
59
59
|
}, k) => {
|
|
60
|
-
const { t: e } = q(),
|
|
60
|
+
const { t: e } = q(), i = N(), b = N(), c = t !== void 0 && r.length > t, [o, B] = O(z), g = y(null), S = y(r.length);
|
|
61
61
|
V(() => {
|
|
62
62
|
if (!g.current) return;
|
|
63
63
|
const n = S.current, s = r.length;
|
|
64
|
-
n !== s && (g.current.textContent = e("
|
|
64
|
+
n !== s && (g.current.textContent = e("warningStack.countChanged", {
|
|
65
65
|
count: s,
|
|
66
66
|
defaultValue: "{{count}} warnings to review"
|
|
67
67
|
})), S.current = s;
|
|
68
68
|
}, [r.length, e]);
|
|
69
69
|
const R = _(() => !c || !o ? r : r.slice(0, t), [r, c, o, t]), E = c ? r.length - (t ?? 0) : 0, I = j(
|
|
70
70
|
(n) => (s) => {
|
|
71
|
-
s ||
|
|
71
|
+
s || d == null || d(n);
|
|
72
72
|
},
|
|
73
|
-
[
|
|
74
|
-
), T = j(() => B((n) => !n), []), G = A ?? e("
|
|
73
|
+
[d]
|
|
74
|
+
), T = j(() => B((n) => !n), []), G = A ?? e("warningStack.regionLabel", "Warnings"), C = h ? /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-3xs)]", children: [
|
|
75
75
|
/* @__PURE__ */ a(
|
|
76
76
|
"h2",
|
|
77
77
|
{
|
|
78
|
-
id:
|
|
78
|
+
id: i,
|
|
79
79
|
className: "ds:text-start type-title-section ds:text-[var(--foreground)]",
|
|
80
80
|
children: h
|
|
81
81
|
}
|
|
82
82
|
),
|
|
83
83
|
p ? /* @__PURE__ */ a("p", { className: "ds:text-start type-body-sm ds:text-[var(--muted-foreground)]", children: p }) : null
|
|
84
|
-
] }) : /* @__PURE__ */ a("h2", { id:
|
|
84
|
+
] }) : /* @__PURE__ */ a("h2", { id: i, className: "ds:sr-only", children: G });
|
|
85
85
|
return r.length === 0 ? m ? /* @__PURE__ */ l(
|
|
86
86
|
"section",
|
|
87
87
|
{
|
|
88
88
|
ref: k,
|
|
89
|
-
"aria-labelledby":
|
|
89
|
+
"aria-labelledby": i,
|
|
90
90
|
"data-component": "warning-stack",
|
|
91
91
|
className: [L({ size: f, stretch: v }), w].filter(Boolean).join(" "),
|
|
92
92
|
...x,
|
|
@@ -99,7 +99,7 @@ const L = W(
|
|
|
99
99
|
"section",
|
|
100
100
|
{
|
|
101
101
|
ref: k,
|
|
102
|
-
"aria-labelledby":
|
|
102
|
+
"aria-labelledby": i,
|
|
103
103
|
"data-component": "warning-stack",
|
|
104
104
|
className: [L({ size: f, stretch: v }), w].filter(Boolean).join(" "),
|
|
105
105
|
...x,
|
|
@@ -119,7 +119,7 @@ const L = W(
|
|
|
119
119
|
{
|
|
120
120
|
id: b,
|
|
121
121
|
className: J({ size: f }),
|
|
122
|
-
"aria-label": e("
|
|
122
|
+
"aria-label": e("warningStack.listLabel", "Warning list"),
|
|
123
123
|
children: R.map((n) => {
|
|
124
124
|
const s = n.variant ?? "warning";
|
|
125
125
|
return /* @__PURE__ */ a("li", { children: /* @__PURE__ */ l(
|
|
@@ -160,10 +160,10 @@ const L = W(
|
|
|
160
160
|
].join(" ")
|
|
161
161
|
}
|
|
162
162
|
),
|
|
163
|
-
o ? e("
|
|
163
|
+
o ? e("warningStack.showMore", {
|
|
164
164
|
count: E,
|
|
165
165
|
defaultValue: "Show {{count}} more warnings"
|
|
166
|
-
}) : e("
|
|
166
|
+
}) : e("warningStack.showLess", "Show less")
|
|
167
167
|
]
|
|
168
168
|
}
|
|
169
169
|
) : null
|
|
@@ -176,4 +176,4 @@ P.displayName = "WarningStack";
|
|
|
176
176
|
export {
|
|
177
177
|
P as W
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=warning-stack-
|
|
179
|
+
//# sourceMappingURL=warning-stack-CeRihME9.js.map
|
|
@@ -3,14 +3,14 @@ import { forwardRef as O, useMemo as R, useRef as j, useCallback as W, useState
|
|
|
3
3
|
import { c as L } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as z } from "react-i18next";
|
|
5
5
|
import { C } from "./card-CWzuTLYE.js";
|
|
6
|
-
import { B as be } from "./badge-
|
|
7
|
-
import { K as Z } from "./key-value-pair-
|
|
6
|
+
import { B as be } from "./badge-cLYVGlMh.js";
|
|
7
|
+
import { K as Z } from "./key-value-pair-AbrRwesr.js";
|
|
8
8
|
import { T as xe } from "./timestamp-BV2lC-wV.js";
|
|
9
9
|
import { I as S } from "./icon-button-C4CGcYuz.js";
|
|
10
10
|
import { c as _ } from "./createLucideIcon-CrFbzy84.js";
|
|
11
11
|
import { C as Ne } from "./circle-BkqTgYmt.js";
|
|
12
12
|
import { u as Ce } from "./registry-C9nwlNyL.js";
|
|
13
|
-
import { A as V } from "./alert-
|
|
13
|
+
import { A as V } from "./alert-pgdXrEO5.js";
|
|
14
14
|
import { B as _e } from "./button-DD_0Xdmr.js";
|
|
15
15
|
import { D as N } from "./dropdown-menu-dyV7gHh_.js";
|
|
16
16
|
import { E } from "./empty-state-3CLJIXSj.js";
|
|
@@ -1412,4 +1412,4 @@ export {
|
|
|
1412
1412
|
ee as r,
|
|
1413
1413
|
D as w
|
|
1414
1414
|
};
|
|
1415
|
-
//# sourceMappingURL=workflow-map-
|
|
1415
|
+
//# sourceMappingURL=workflow-map-D3MvrsZV.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, B as l, C as s, a as n, D as o, b as d, L as C, S as t, T as R, c as T, d as b, e as c, U as g, f as i, u } from "../../_chunks/balance-cell-renderer-
|
|
1
|
+
import { A as r, B as l, C as s, a as n, D as o, b as d, L as C, S as t, T as R, c as T, d as b, e as c, U as g, f as i, u } from "../../_chunks/balance-cell-renderer-DWWtX-VM.js";
|
|
2
2
|
export {
|
|
3
3
|
r as ActionsCellRenderer,
|
|
4
4
|
l as BalanceCellRenderer,
|
|
@@ -41,9 +41,9 @@ export interface FreemiumPaywallProps extends VariantProps<typeof contentVariant
|
|
|
41
41
|
onUpgrade: (planId: string) => void;
|
|
42
42
|
/** Fires when the user dismisses via Not Now. */
|
|
43
43
|
onCancel?: () => void;
|
|
44
|
-
/** Title override; defaults to t('
|
|
44
|
+
/** Title override; defaults to t('paywall.title'). */
|
|
45
45
|
title?: ReactNode;
|
|
46
|
-
/** Description override; defaults to t('
|
|
46
|
+
/** Description override; defaults to t('paywall.description'). */
|
|
47
47
|
description?: ReactNode;
|
|
48
48
|
className?: string;
|
|
49
49
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as i, a as t, b as e, c as o, d as g, e as s, f as u, g as v, n as M } from "../../_chunks/navigation-menu-
|
|
2
|
-
import { S as r } from "../../_chunks/skip-link-
|
|
1
|
+
import { N as i, a as t, b as e, c as o, d as g, e as s, f as u, g as v, n as M } from "../../_chunks/navigation-menu-Bav1d_wA.js";
|
|
2
|
+
import { S as r } from "../../_chunks/skip-link-BaSMtPwB.js";
|
|
3
3
|
export {
|
|
4
4
|
i as NavigationMenu,
|
|
5
5
|
t as NavigationMenuContent,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as n, a as s, b as t, c as g, d as o, e as P, f as e, g as p, p as l } from "../../_chunks/pagination-
|
|
1
|
+
import { P as n, a as s, b as t, c as g, d as o, e as P, f as e, g as p, p as l } from "../../_chunks/pagination-OQBlnb1H.js";
|
|
2
2
|
export {
|
|
3
3
|
n as Pagination,
|
|
4
4
|
s as PaginationEllipsis,
|