@tempots/beatui 0.82.0 → 0.83.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/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/ar-CBrjAlIY.cjs +1 -0
- package/dist/ar-DjMvIww5.js +175 -0
- package/dist/{ar-NCCPhOpI.js → ar-DwDxAANU.js} +16 -1
- package/dist/ar-kZBzg02I.cjs +1 -0
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +64 -1351
- package/dist/auth-divider-C3_CgC0l.js +1375 -0
- package/dist/auth-divider-C4WTL71M.cjs +1 -0
- package/dist/beatui.css +11183 -5596
- package/dist/beatui.tailwind.css +11210 -5623
- package/dist/better-auth/index.cjs.js +1 -0
- package/dist/better-auth/index.es.js +741 -0
- package/dist/{colors-B2yrgHSW.cjs → colors-BI0YhONJ.cjs} +1 -1
- package/dist/{colors-DPo9GEJR.js → colors-BmLYKmoH.js} +38 -30
- package/dist/de-B03SM9eF.cjs +1 -0
- package/dist/{de-BVK2MkCk.js → de-CSGSC0xX.js} +18 -3
- package/dist/de-CrBw41po.cjs +1 -0
- package/dist/{de-f2xcEb34.js → de-wChFYqM4.js} +79 -5
- package/dist/deep-merge-CmQoIYPC.js +1689 -0
- package/dist/deep-merge-UghuPcyW.cjs +1 -0
- package/dist/duration-input-BJzKgI15.cjs +1 -0
- package/dist/{duration-input-B3vnnwBZ.js → duration-input-DaB6s0rL.js} +24 -23
- package/dist/editor-toolbar-group-BslfdazC.js +32 -0
- package/dist/editor-toolbar-group-_V1rDM-1.cjs +1 -0
- package/dist/{es-BxBeTRCv.cjs → es-BRa0hV-7.cjs} +1 -1
- package/dist/es-Ca5xT3NE.cjs +1 -0
- package/dist/es-CmPF3IGl.js +175 -0
- package/dist/{es-BQS8PL9j.js → es-dR46FTMF.js} +16 -1
- package/dist/{fa-DxPseW3g.cjs → fa-BxCSKn9j.cjs} +1 -1
- package/dist/fa-D696e75R.js +175 -0
- package/dist/fa-DhZJYuC6.cjs +1 -0
- package/dist/{fa-T-tkJSJr.js → fa-FsHBFjdY.js} +16 -1
- package/dist/fr-1nSKSIlw.cjs +1 -0
- package/dist/{fr-yOW_68YY.js → fr-B0jeX1Hx.js} +83 -9
- package/dist/{fr-CSRRhyCG.js → fr-Di6BT9_V.js} +18 -3
- package/dist/fr-Dq6RAY9s.cjs +1 -0
- package/dist/he-BBX1h9uD.cjs +1 -0
- package/dist/{he-Bxdc4M08.js → he-CXujw1Lw.js} +16 -1
- package/dist/he-DhcurPt5.cjs +1 -0
- package/dist/he-SgAsIYJA.js +175 -0
- package/dist/{hi-CJeFvTBe.js → hi-Bvh4d9bO.js} +16 -1
- package/dist/hi-Cd0YQZTU.cjs +1 -0
- package/dist/hi-CxsIxbfM.cjs +1 -0
- package/dist/hi-s9oiIihq.js +175 -0
- package/dist/{hls.light.min-Bhrf47iR.cjs → hls.light.min-C6xKDzRR.cjs} +1 -1
- package/dist/{hls.light.min-C6VwviEa.js → hls.light.min-hEMf_E8u.js} +1 -1
- package/dist/{index-ChsRjiIp.cjs → index-Bm43lZqE.cjs} +19 -19
- package/dist/{index-C5YCCgnn.cjs → index-C2_iX1um.cjs} +1 -1
- package/dist/{index-DT6-HMMz.js → index-C32iUFIr.js} +1432 -1462
- package/dist/{index-CiAVfKIZ.js → index-CEqc0H3v.js} +1 -1
- package/dist/index-DH37GTQj.cjs +1 -0
- package/dist/{index-DklKfzD4.js → index-Di1_W_7Q.js} +351 -361
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +6310 -3528
- package/dist/input-container-CSi72GI1.cjs +1 -0
- package/dist/input-container-Nx0gMAzS.js +258 -0
- package/dist/it-ByIEk5Cq.cjs +1 -0
- package/dist/it-D_IcaYxp.cjs +1 -0
- package/dist/{it-6e6X-4BB.js → it-Dc4IMciD.js} +80 -6
- package/dist/{it-Zmp0BhIj.js → it-EWhykhHv.js} +18 -3
- package/dist/ja-CMGqpPo7.cjs +1 -0
- package/dist/{ja-BxNuNo2H.js → ja-D2t2g5xj.js} +85 -11
- package/dist/ja-DV6Fpp18.cjs +1 -0
- package/dist/{ja-DWjoA-hQ.js → ja-YZ0P5woj.js} +16 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +212 -205
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +1 -1
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +623 -762
- package/dist/ko-BPl5rP97.cjs +1 -0
- package/dist/ko-BRylA5JZ.js +175 -0
- package/dist/ko-DR1f0as8.cjs +1 -0
- package/dist/{ko-BOlI-33h.js → ko-U7BSUAxZ.js} +16 -1
- package/dist/lexical/index.cjs.js +46 -0
- package/dist/lexical/index.es.js +21397 -0
- package/dist/lexical.css +1122 -0
- package/dist/menu-CX72LaZ3.cjs +1 -0
- package/dist/menu-D_slbwl8.js +374 -0
- package/dist/modal-DaI1jH-X.js +488 -0
- package/dist/modal-kyZfvVZb.cjs +1 -0
- package/dist/nl-BSfaHFt0.cjs +1 -0
- package/dist/{nl-Dr-l6zUy.cjs → nl-CQF0N7Mc.cjs} +1 -1
- package/dist/{nl-kQNcAdY1.js → nl-CqAxoB4J.js} +18 -3
- package/dist/nl-Dh7LUWAn.js +176 -0
- package/dist/notice-Bc1L4Zpr.cjs +1 -0
- package/dist/{notice-CZHWWwOQ.js → notice-Dz4nX57_.js} +49 -48
- package/dist/{oneof-branch-detection-BVNoKU9d.js → oneof-branch-detection-BED_n2MT.js} +523 -520
- package/dist/{oneof-branch-detection-C8g3eWnx.cjs → oneof-branch-detection-Vov_e3kI.cjs} +4 -4
- package/dist/{pl-CKyPFvss.js → pl-C-weXGCB.js} +16 -1
- package/dist/pl-D-O4sCnr.cjs +1 -0
- package/dist/{pl-Bs4nLJ__.js → pl-XEG-p1Q9.js} +77 -3
- package/dist/{pl-BK0i_yvq.cjs → pl-y_w3DWF3.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DBmUhaNI.js → pt-BjNGOoZH.js} +18 -3
- package/dist/pt-DYsDA2sZ.js +175 -0
- package/dist/pt-DqaZWmbG.cjs +1 -0
- package/dist/pt-chEEYLlt.cjs +1 -0
- package/dist/ru-B46hVpFF.cjs +1 -0
- package/dist/{ru-Bi1_DEKM.js → ru-BTKBykp-.js} +86 -12
- package/dist/{ru-CsJ_yT-7.js → ru-CFmeZBXK.js} +16 -1
- package/dist/ru-CISMzCHR.cjs +1 -0
- package/dist/session-id-3KiilioY.js +8 -0
- package/dist/session-id-B5lJMzbB.cjs +1 -0
- package/dist/styles-url-CVCcF0ra.cjs +1 -0
- package/dist/styles-url-DUdp56Ts.js +4 -0
- package/dist/tailwind/index.cjs.js +1 -1
- package/dist/tailwind/index.es.js +3 -3
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +74 -4
- package/dist/tailwind/vite-plugin.cjs.js +10 -10
- package/dist/tailwind/vite-plugin.es.js +289 -410
- package/dist/text-input-8v79fzEy.cjs +1 -0
- package/dist/text-input-CPJzUC2r.js +45 -0
- package/dist/{toolbar-DR2Zd4Oo.js → toolbar-CjQG7l7X.js} +4 -4
- package/dist/toolbar-D3ZsC0g_.cjs +1 -0
- package/dist/{tr-Bn5ldVJs.js → tr-C5X2gFZS.js} +17 -2
- package/dist/tr-CaMaflJL.cjs +1 -0
- package/dist/{tr-DiYB-FwX.js → tr-Cp8ZCUic.js} +77 -3
- package/dist/{tr-CgJ8uhZu.cjs → tr-mWu2E__o.cjs} +1 -1
- package/dist/{translations-Cq8bUKJP.js → translations-BGblCUBj.js} +144 -70
- package/dist/translations-CZ0KOii3.cjs +1 -0
- package/dist/translations-gVgMyNno.cjs +1 -0
- package/dist/translations-jUYta1_1.js +87 -0
- package/dist/types/auth/index.d.ts +13 -0
- package/dist/types/auth-i18n/default.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ar.d.ts +14 -0
- package/dist/types/auth-i18n/locales/de.d.ts +14 -0
- package/dist/types/auth-i18n/locales/en.d.ts +14 -0
- package/dist/types/auth-i18n/locales/es.d.ts +14 -0
- package/dist/types/auth-i18n/locales/fa.d.ts +14 -0
- package/dist/types/auth-i18n/locales/fr.d.ts +14 -0
- package/dist/types/auth-i18n/locales/he.d.ts +14 -0
- package/dist/types/auth-i18n/locales/hi.d.ts +14 -0
- package/dist/types/auth-i18n/locales/it.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ja.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ko.d.ts +14 -0
- package/dist/types/auth-i18n/locales/nl.d.ts +14 -0
- package/dist/types/auth-i18n/locales/pl.d.ts +14 -0
- package/dist/types/auth-i18n/locales/pt.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ru.d.ts +14 -0
- package/dist/types/auth-i18n/locales/tr.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ur.d.ts +14 -0
- package/dist/types/auth-i18n/locales/vi.d.ts +14 -0
- package/dist/types/auth-i18n/locales/zh.d.ts +14 -0
- package/dist/types/auth-i18n/translations.d.ts +14 -0
- package/dist/types/beatui-i18n/default.d.ts +99 -0
- package/dist/types/beatui-i18n/index.d.ts +11 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +63 -0
- package/dist/types/beatui-i18n/translations.d.ts +87 -0
- package/dist/types/better-auth/bridge.d.ts +2 -0
- package/dist/types/better-auth/callbacks.d.ts +6 -0
- package/dist/types/better-auth/components/authenticated.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-container.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-modal.d.ts +4 -0
- package/dist/types/better-auth/components/magic-link-form.d.ts +7 -0
- package/dist/types/better-auth/components/passkey-management.d.ts +6 -0
- package/dist/types/better-auth/components/passkey-signin.d.ts +12 -0
- package/dist/types/better-auth/components/two-factor-setup.d.ts +8 -0
- package/dist/types/better-auth/components/two-factor-verify.d.ts +10 -0
- package/dist/types/better-auth/i18n/default.d.ts +29 -0
- package/dist/types/better-auth/i18n/locales/en.d.ts +28 -0
- package/dist/types/better-auth/i18n/translations.d.ts +27 -0
- package/dist/types/better-auth/index.d.ts +35 -0
- package/dist/types/better-auth/provider.d.ts +39 -0
- package/dist/types/better-auth/session.d.ts +14 -0
- package/dist/types/better-auth/social-mapping.d.ts +2 -0
- package/dist/types/better-auth/types.d.ts +276 -0
- package/dist/types/components/auth/auth-container.d.ts +63 -2
- package/dist/types/components/auth/auth-divider.d.ts +30 -0
- package/dist/types/components/auth/auth-email-prop.d.ts +25 -0
- package/dist/types/components/auth/index.d.ts +9 -0
- package/dist/types/components/auth/password-strength-indicator.d.ts +58 -0
- package/dist/types/components/auth/reset-password-form.d.ts +33 -0
- package/dist/types/components/auth/schemas.d.ts +183 -5
- package/dist/types/components/auth/signin-form.d.ts +33 -0
- package/dist/types/components/auth/signup-form.d.ts +36 -0
- package/dist/types/components/auth/social-login-button.d.ts +213 -0
- package/dist/types/components/auth/social-providers.d.ts +27 -1
- package/dist/types/components/auth/types.d.ts +301 -0
- package/dist/types/components/auth/utils.d.ts +198 -0
- package/dist/types/components/beatui.d.ts +35 -0
- package/dist/types/components/button/button.d.ts +61 -0
- package/dist/types/components/button/close-button.d.ts +32 -1
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/button/toggle-button-group.d.ts +95 -0
- package/dist/types/components/button/toggle-button.d.ts +60 -0
- package/dist/types/components/data/avatar-group.d.ts +74 -0
- package/dist/types/components/data/avatar.d.ts +62 -0
- package/dist/types/components/data/badge.d.ts +49 -2
- package/dist/types/components/data/calendar-shared.d.ts +59 -0
- package/dist/types/components/data/calendar.d.ts +107 -0
- package/dist/types/components/data/history-timeline.d.ts +35 -0
- package/dist/types/components/data/icon-badge.d.ts +14 -0
- package/dist/types/components/data/icon.d.ts +55 -4
- package/dist/types/components/data/index.d.ts +9 -0
- package/dist/types/components/data/page-drop-zone.d.ts +61 -8
- package/dist/types/components/data/presence-overlay.d.ts +26 -0
- package/dist/types/components/data/progress-bar.d.ts +81 -0
- package/dist/types/components/data/range-calendar.d.ts +104 -0
- package/dist/types/components/data/skeleton.d.ts +70 -0
- package/dist/types/components/data/table.d.ts +38 -11
- package/dist/types/components/data/tag.d.ts +40 -0
- package/dist/types/components/data/unstyled-drop-zone.d.ts +73 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +16 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +9 -0
- package/dist/types/components/editor-toolbar/index.d.ts +2 -0
- package/dist/types/components/form/control/control.d.ts +155 -0
- package/dist/types/components/form/control/date-utils.d.ts +81 -0
- package/dist/types/components/form/control/ensure-control.d.ts +28 -0
- package/dist/types/components/form/control/form-status.d.ts +63 -0
- package/dist/types/components/form/control/index.d.ts +10 -0
- package/dist/types/components/form/control/list-control.d.ts +100 -1
- package/dist/types/components/form/control/list-item-controls.d.ts +65 -0
- package/dist/types/components/form/controller/color-controller.d.ts +29 -1
- package/dist/types/components/form/controller/controller-validation.d.ts +31 -0
- package/dist/types/components/form/controller/controller.d.ts +286 -0
- package/dist/types/components/form/controller/index.d.ts +12 -0
- package/dist/types/components/form/controller/path.d.ts +69 -0
- package/dist/types/components/form/controller/union-controller.d.ts +106 -11
- package/dist/types/components/form/controller/utils.d.ts +67 -0
- package/dist/types/components/form/input/advanced-slider.d.ts +143 -0
- package/dist/types/components/form/input/appearance-selector.d.ts +39 -0
- package/dist/types/components/form/input/base64-input.d.ts +34 -0
- package/dist/types/components/form/input/base64s-input.d.ts +47 -0
- package/dist/types/components/form/input/bigint-input.d.ts +27 -0
- package/dist/types/components/form/input/checkbox-input.d.ts +46 -0
- package/dist/types/components/form/input/color-input.d.ts +42 -0
- package/dist/types/components/form/input/color-swatch-input.d.ts +53 -0
- package/dist/types/components/form/input/combobox-input.d.ts +73 -0
- package/dist/types/components/form/input/combobox-tags-input.d.ts +54 -0
- package/dist/types/components/form/input/date-input.d.ts +33 -0
- package/dist/types/components/form/input/date-time-input.d.ts +34 -0
- package/dist/types/components/form/input/dropdown-base.d.ts +52 -0
- package/dist/types/components/form/input/dropdown-input.d.ts +86 -0
- package/dist/types/components/form/input/duration-input.d.ts +18 -0
- package/dist/types/components/form/input/duration-mask.d.ts +24 -0
- package/dist/types/components/form/input/editable-text.d.ts +33 -0
- package/dist/types/components/form/input/email-input.d.ts +34 -0
- package/dist/types/components/form/input/file-input.d.ts +33 -0
- package/dist/types/components/form/input/files-input.d.ts +44 -0
- package/dist/types/components/form/input/index.d.ts +5 -0
- package/dist/types/components/form/input/input-adornment.d.ts +38 -0
- package/dist/types/components/form/input/input-container.d.ts +65 -0
- package/dist/types/components/form/input/input-options.d.ts +70 -0
- package/dist/types/components/form/input/input-wrapper.d.ts +78 -0
- package/dist/types/components/form/input/instant-input.d.ts +18 -0
- package/dist/types/components/form/input/lazy-native-select.d.ts +43 -0
- package/dist/types/components/form/input/list-input.d.ts +50 -0
- package/dist/types/components/form/input/mask-input.d.ts +158 -0
- package/dist/types/components/form/input/native-select.d.ts +50 -0
- package/dist/types/components/form/input/nullable-base64-input.d.ts +25 -0
- package/dist/types/components/form/input/nullable-bigint-input.d.ts +26 -0
- package/dist/types/components/form/input/nullable-date-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-date-time-input.d.ts +19 -0
- package/dist/types/components/form/input/nullable-duration-input.d.ts +19 -0
- package/dist/types/components/form/input/nullable-email-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-instant-input.d.ts +19 -0
- package/dist/types/components/form/input/nullable-mask-input.d.ts +24 -0
- package/dist/types/components/form/input/nullable-number-input.d.ts +29 -0
- package/dist/types/components/form/input/nullable-password-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-date-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-month-day-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-time-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-rating-input.d.ts +33 -0
- package/dist/types/components/form/input/nullable-text-area.d.ts +27 -0
- package/dist/types/components/form/input/nullable-text-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-url-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-utils.d.ts +22 -2
- package/dist/types/components/form/input/nullable-uuid-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-zoned-date-time-input.d.ts +20 -0
- package/dist/types/components/form/input/number-input.d.ts +49 -0
- package/dist/types/components/form/input/option.d.ts +165 -0
- package/dist/types/components/form/input/otp-input.d.ts +77 -0
- package/dist/types/components/form/input/password-input.d.ts +39 -0
- package/dist/types/components/form/input/plain-date-input.d.ts +17 -0
- package/dist/types/components/form/input/plain-date-time-input.d.ts +17 -0
- package/dist/types/components/form/input/plain-month-day-input.d.ts +18 -0
- package/dist/types/components/form/input/plain-time-input.d.ts +17 -0
- package/dist/types/components/form/input/plain-year-month-input.d.ts +17 -0
- package/dist/types/components/form/input/radio-group.d.ts +108 -0
- package/dist/types/components/form/input/rating-input.d.ts +57 -0
- package/dist/types/components/form/input/segmented-input.d.ts +70 -1
- package/dist/types/components/form/input/select-tags-input.d.ts +69 -0
- package/dist/types/components/form/input/slider-input.d.ts +82 -0
- package/dist/types/components/form/input/switch.d.ts +59 -1
- package/dist/types/components/form/input/tag-input.d.ts +19 -0
- package/dist/types/components/form/input/tag-utils.d.ts +111 -0
- package/dist/types/components/form/input/tags-input.d.ts +18 -0
- package/dist/types/components/form/input/text-area.d.ts +42 -0
- package/dist/types/components/form/input/text-input.d.ts +63 -1
- package/dist/types/components/form/input/url-input.d.ts +34 -0
- package/dist/types/components/form/input/uuid-input.d.ts +19 -0
- package/dist/types/components/form/input/zoned-date-time-input.d.ts +20 -0
- package/dist/types/components/form/schema/standard-schema-v1.d.ts +98 -23
- package/dist/types/components/form/use-form.d.ts +146 -2
- package/dist/types/components/i18n/index.d.ts +9 -0
- package/dist/types/components/i18n/locale-direction.d.ts +21 -1
- package/dist/types/components/i18n/locale-selector.d.ts +45 -0
- package/dist/types/components/i18n/make-i18nprovider.d.ts +42 -0
- package/dist/types/components/json-schema/schema-types.d.ts +133 -0
- package/dist/types/components/json-structure/controls/control-utils.d.ts +19 -0
- package/dist/types/components/json-structure/controls/deprecation-utils.d.ts +2 -3
- package/dist/types/components/json-structure/controls/index.d.ts +1 -0
- package/dist/types/components/json-structure/structure-types.d.ts +473 -19
- package/dist/types/components/layout/accordion.d.ts +77 -0
- package/dist/types/components/layout/action-card.d.ts +90 -2
- package/dist/types/components/layout/app-shell.d.ts +76 -0
- package/dist/types/components/layout/card.d.ts +27 -0
- package/dist/types/components/layout/center.d.ts +39 -0
- package/dist/types/components/layout/collapse.d.ts +28 -0
- package/dist/types/components/layout/divider.d.ts +84 -0
- package/dist/types/components/layout/group.d.ts +15 -0
- package/dist/types/components/layout/index.d.ts +2 -0
- package/dist/types/components/layout/nine-slice-scroll-view.d.ts +105 -0
- package/dist/types/components/layout/scrollable-panel.d.ts +54 -0
- package/dist/types/components/layout/sink.d.ts +46 -0
- package/dist/types/components/layout/stack.d.ts +16 -0
- package/dist/types/components/layout/with-breakpoint.d.ts +194 -0
- package/dist/types/components/lexical/bare-editor.d.ts +29 -0
- package/dist/types/components/lexical/code/index.d.ts +1 -0
- package/dist/types/components/lexical/code/language-selector.d.ts +13 -0
- package/dist/types/components/lexical/contextual-editor.d.ts +22 -0
- package/dist/types/components/lexical/docked-editor.d.ts +23 -0
- package/dist/types/components/lexical/floating/block-handle.d.ts +16 -0
- package/dist/types/components/lexical/floating/floating-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/floating/index.d.ts +6 -0
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +20 -0
- package/dist/types/components/lexical/index.d.ts +8 -0
- package/dist/types/components/lexical/lexical-editor-input.d.ts +30 -0
- package/dist/types/components/lexical/table/index.d.ts +1 -0
- package/dist/types/components/lexical/table/table-controls.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/index.d.ts +6 -0
- package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/toolbar-button.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-group.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +32 -0
- package/dist/types/components/misc/empty-state.d.ts +86 -0
- package/dist/types/components/misc/expando.d.ts +81 -0
- package/dist/types/components/misc/index.d.ts +2 -1
- package/dist/types/components/misc/link-portal.d.ts +40 -2
- package/dist/types/components/misc/notice.d.ts +93 -0
- package/dist/types/components/misc/notification-panel.d.ts +21 -0
- package/dist/types/components/misc/notification-provider.d.ts +141 -0
- package/dist/types/components/misc/notification.d.ts +93 -0
- package/dist/types/components/misc/style-portal.d.ts +31 -1
- package/dist/types/components/monaco/monaco-editor-input.d.ts +59 -2
- package/dist/types/components/navigation/breadcrumbs.d.ts +96 -0
- package/dist/types/components/navigation/flyout.d.ts +118 -16
- package/dist/types/components/navigation/index.d.ts +3 -0
- package/dist/types/components/navigation/link/link.d.ts +100 -0
- package/dist/types/components/navigation/menu.d.ts +155 -35
- package/dist/types/components/navigation/pagination.d.ts +82 -0
- package/dist/types/components/navigation/sidebar/sidebar-group.d.ts +42 -0
- package/dist/types/components/navigation/sidebar/sidebar-link.d.ts +101 -0
- package/dist/types/components/navigation/sidebar/sidebar-separator.d.ts +17 -0
- package/dist/types/components/navigation/sidebar/sidebar.d.ts +57 -0
- package/dist/types/components/navigation/tabs/tabs.d.ts +3 -2
- package/dist/types/components/navigation/toolbar/toolbar.d.ts +125 -0
- package/dist/types/components/navigation/tree-view.d.ts +95 -0
- package/dist/types/components/overlay/announcement-bar.d.ts +41 -2
- package/dist/types/components/overlay/block-command-palette.d.ts +25 -0
- package/dist/types/components/overlay/command-palette.d.ts +17 -0
- package/dist/types/components/overlay/dialogs.d.ts +213 -0
- package/dist/types/components/overlay/drawer.d.ts +76 -12
- package/dist/types/components/overlay/index.d.ts +4 -0
- package/dist/types/components/overlay/lightbox.d.ts +53 -10
- package/dist/types/components/overlay/modal.d.ts +113 -13
- package/dist/types/components/overlay/overlay.d.ts +61 -0
- package/dist/types/components/overlay/popover.d.ts +100 -0
- package/dist/types/components/overlay/ribbon.d.ts +58 -9
- package/dist/types/components/prosemirror/etoolbar-button.d.ts +11 -11
- package/dist/types/components/prosemirror/etoolbar-group.d.ts +11 -4
- package/dist/types/components/prosemirror/link-control.d.ts +43 -2
- package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +46 -6
- package/dist/types/components/prosemirror/utils.d.ts +113 -1
- package/dist/types/components/theme/style-utils.d.ts +95 -0
- package/dist/types/components/theme/theme.d.ts +39 -0
- package/dist/types/components/theme/types.d.ts +133 -1
- package/dist/types/components/typography/index.d.ts +1 -0
- package/dist/types/components/typography/kbd.d.ts +48 -0
- package/dist/types/components/typography/label.d.ts +45 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/json-schema/index.d.ts +13 -0
- package/dist/types/json-schema-display/index.d.ts +12 -0
- package/dist/types/json-structure/index.d.ts +9 -4
- package/dist/types/lexical/commands/index.d.ts +17 -0
- package/dist/types/lexical/headless.d.ts +39 -0
- package/dist/types/lexical/horizontal-rule-node.d.ts +20 -0
- package/dist/types/lexical/index.d.ts +20 -0
- package/dist/types/lexical/lazy-loader.d.ts +35 -0
- package/dist/types/lexical/nodes.d.ts +29 -0
- package/dist/types/lexical/plugins/auto-link.d.ts +7 -0
- package/dist/types/lexical/plugins/clipboard.d.ts +11 -0
- package/dist/types/lexical/plugins/code-shiki.d.ts +11 -0
- package/dist/types/lexical/plugins/code.d.ts +7 -0
- package/dist/types/lexical/plugins/dragon.d.ts +6 -0
- package/dist/types/lexical/plugins/file-io.d.ts +10 -0
- package/dist/types/lexical/plugins/hashtag.d.ts +7 -0
- package/dist/types/lexical/plugins/history.d.ts +7 -0
- package/dist/types/lexical/plugins/horizontal-rule.d.ts +12 -0
- package/dist/types/lexical/plugins/html-io.d.ts +9 -0
- package/dist/types/lexical/plugins/index.d.ts +24 -0
- package/dist/types/lexical/plugins/link.d.ts +6 -0
- package/dist/types/lexical/plugins/list.d.ts +6 -0
- package/dist/types/lexical/plugins/mark.d.ts +15 -0
- package/dist/types/lexical/plugins/markdown-io.d.ts +13 -0
- package/dist/types/lexical/plugins/offset.d.ts +6 -0
- package/dist/types/lexical/plugins/overflow.d.ts +7 -0
- package/dist/types/lexical/plugins/plain-text.d.ts +6 -0
- package/dist/types/lexical/plugins/rich-text.d.ts +6 -0
- package/dist/types/lexical/plugins/selection.d.ts +6 -0
- package/dist/types/lexical/plugins/slash-commands.d.ts +26 -0
- package/dist/types/lexical/plugins/table.d.ts +11 -0
- package/dist/types/lexical/plugins/text.d.ts +13 -0
- package/dist/types/lexical/plugins/yjs.d.ts +9 -0
- package/dist/types/lexical/styles-url.d.ts +2 -0
- package/dist/types/lexical/styles.d.ts +2 -0
- package/dist/types/lexical/types.d.ts +634 -0
- package/dist/types/lexical-i18n/default.d.ts +92 -0
- package/dist/types/lexical-i18n/index.d.ts +21 -0
- package/dist/types/lexical-i18n/locales/ar.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/de.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/en.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/es.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fa.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/he.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/hi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/it.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ja.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ko.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/nl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pt.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ru.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/tr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ur.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/vi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/zh.d.ts +91 -0
- package/dist/types/lexical-i18n/translations.d.ts +21 -0
- package/dist/types/markdown/index.d.ts +13 -0
- package/dist/types/monaco/index.d.ts +17 -0
- package/dist/types/monaco/lazy-loader.d.ts +79 -0
- package/dist/types/monaco/styles-url.d.ts +11 -0
- package/dist/types/monaco/styles.d.ts +11 -0
- package/dist/types/monaco/types.d.ts +47 -0
- package/dist/types/prosemirror/index.d.ts +12 -0
- package/dist/types/prosemirror/styles-url.d.ts +11 -0
- package/dist/types/prosemirror/styles.d.ts +10 -0
- package/dist/types/tailwind/google-fonts.d.ts +15 -0
- package/dist/types/tailwind/index.d.ts +13 -0
- package/dist/types/tailwind/preset.d.ts +111 -0
- package/dist/types/tailwind/vite-plugin.d.ts +39 -4
- package/dist/types/tokens/base-colors.d.ts +21 -0
- package/dist/types/tokens/breakpoints.d.ts +67 -0
- package/dist/types/tokens/colors.d.ts +213 -4
- package/dist/types/tokens/motion.d.ts +142 -3
- package/dist/types/tokens/radius.d.ts +99 -0
- package/dist/types/tokens/shadows.d.ts +85 -0
- package/dist/types/tokens/spacing.d.ts +111 -0
- package/dist/types/tokens/text-shadows.d.ts +82 -0
- package/dist/types/tokens/typography.d.ts +313 -25
- package/dist/types/tokens/z-index.d.ts +62 -0
- package/dist/types/utils/color.d.ts +297 -28
- package/dist/types/utils/download.d.ts +92 -0
- package/dist/types/utils/focus-trap.d.ts +67 -11
- package/dist/types/utils/format-file-size.d.ts +44 -0
- package/dist/ur-B6yB2JQ7.cjs +1 -0
- package/dist/ur-CvGP14xo.cjs +1 -0
- package/dist/{ur-Bg9eX81v.js → ur-Deo004ME.js} +16 -1
- package/dist/{ur-B69X-xNs.js → ur-DkIYJxsF.js} +82 -8
- package/dist/use-animated-toggle-89fKlXxy.js +195 -0
- package/dist/use-animated-toggle-DrqK7nUS.cjs +1 -0
- package/dist/{use-form-CgZyrACX.js → use-form-BurzbPVV.js} +271 -88
- package/dist/use-form-Uree6QFy.cjs +2 -0
- package/dist/vi-BYk1rJDv.js +53 -0
- package/dist/vi-DKw6PBja.js +175 -0
- package/dist/vi-Df4WZe9y.cjs +1 -0
- package/dist/vi-DneuUbkq.cjs +1 -0
- package/dist/{widget-customization-DRA7E9Zf.js → widget-customization-0is7oTeP.js} +233 -231
- package/dist/widget-customization-B-LmxkPE.cjs +1 -0
- package/dist/zh-C5a9NGFW.cjs +1 -0
- package/dist/zh-CaKHseXJ.js +175 -0
- package/dist/zh-DFHuW_5g.cjs +1 -0
- package/dist/{zh-BIykcEu9.js → zh-DR7QaM65.js} +16 -1
- package/package.json +48 -3
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/ar-BsUm-TCn.cjs +0 -1
- package/dist/ar-D7CXDmVZ.cjs +0 -1
- package/dist/ar-nOSKXpIW.js +0 -101
- package/dist/de-BUFLEyKr.cjs +0 -1
- package/dist/de-WzsOu9Gn.cjs +0 -1
- package/dist/deep-merge-CiOwVWn8.js +0 -1619
- package/dist/deep-merge-DxZqCkE5.cjs +0 -1
- package/dist/duration-input-Dg5SX3lM.cjs +0 -1
- package/dist/es-CDqqzpCw.js +0 -101
- package/dist/es-Ds2Xf3wV.cjs +0 -1
- package/dist/fa-C7tE_hR3.js +0 -101
- package/dist/fa-Ct1UtDB7.cjs +0 -1
- package/dist/fr-Cdyopuz3.cjs +0 -1
- package/dist/fr-CzAkRFed.cjs +0 -1
- package/dist/he-D2oUloCJ.js +0 -101
- package/dist/he-DarDNPn0.cjs +0 -1
- package/dist/he-DlXALrK7.cjs +0 -1
- package/dist/hi-3dBhLwDs.cjs +0 -1
- package/dist/hi-D5ZlZoQq.js +0 -101
- package/dist/hi-tATwsXJ6.cjs +0 -1
- package/dist/index-DE2tjivA.cjs +0 -1
- package/dist/it-BmFag7j0.cjs +0 -1
- package/dist/it-DohtcWi9.cjs +0 -1
- package/dist/ja-Dj-bAKLf.cjs +0 -1
- package/dist/ja-eyTArrgS.cjs +0 -1
- package/dist/ko-BFLCDMMs.cjs +0 -1
- package/dist/ko-BomUE-yQ.cjs +0 -1
- package/dist/ko-Ch0jFsBV.js +0 -101
- package/dist/modal-D2xE47kr.cjs +0 -1
- package/dist/modal-hkQD1bqZ.js +0 -655
- package/dist/nl-Bx2ACvr4.cjs +0 -1
- package/dist/nl-NuTdZO1s.js +0 -102
- package/dist/notice-C0SmlheE.cjs +0 -1
- package/dist/pl-QHl6sl8f.cjs +0 -1
- package/dist/pt-BETjHZrL.js +0 -101
- package/dist/pt-DZGw2Z-1.cjs +0 -1
- package/dist/pt-oBMmVYcu.cjs +0 -1
- package/dist/ru-CtxMmoa6.cjs +0 -1
- package/dist/ru-D03IuLqh.cjs +0 -1
- package/dist/text-input-CByq5OIo.cjs +0 -1
- package/dist/text-input-CFJntP7G.js +0 -287
- package/dist/toolbar-TPWYzoiF.cjs +0 -1
- package/dist/tr-B_-_1wua.cjs +0 -1
- package/dist/translations-B4-Zd2LM.cjs +0 -1
- package/dist/translations-D62qqNV9.cjs +0 -1
- package/dist/translations-DPr6c05Z.js +0 -67
- package/dist/ur-DvqAg9gW.cjs +0 -1
- package/dist/ur-DyUSmIbo.cjs +0 -1
- package/dist/use-form-JjeKCINk.cjs +0 -2
- package/dist/vi-BdzxA60L.js +0 -101
- package/dist/vi-CBmPaHxg.cjs +0 -1
- package/dist/vi-D5R3YcU0.cjs +0 -1
- package/dist/vi-DhdsHHf_.js +0 -38
- package/dist/widget-customization-G-QLB1rw.cjs +0 -1
- package/dist/zh-CCGXcj5r.cjs +0 -1
- package/dist/zh-Cb1b8uik.cjs +0 -1
- package/dist/zh-Dn1UJiZa.js +0 -101
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Value as p, prop as rt, computedOf as D, html as
|
|
2
|
-
import { F as
|
|
1
|
+
import { Value as p, prop as rt, computedOf as D, html as C, attr as u, svg as tt, svgAttr as Y, on as M, Empty as A, When as H, Fragment as E, aria as N, emitValue as Z, Use as ot, input as ct, emitValueAsNullableDate as et, emitValueAsNullableDateTime as nt, style as it, Repeat as pt, emit as dt, emitValueAsNumber as V } from "@tempots/dom";
|
|
2
|
+
import { F as ht, N as z, T as gt, U as ft, a as mt } from "./deep-merge-CmQoIYPC.js";
|
|
3
3
|
import { $ as bt } from "./string-DYyMxBl-.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { I as L } from "./input-container-Nx0gMAzS.js";
|
|
5
|
+
import { C as U, T as wt } from "./text-input-CPJzUC2r.js";
|
|
6
|
+
import { B as yt, I as q, L as $t, b as st, a as It } from "./translations-BGblCUBj.js";
|
|
7
|
+
import { AutoSelect as Mt, ElementRect as xt } from "@tempots/ui";
|
|
8
|
+
import { E as _t, P as kt } from "./notice-Dz4nX57_.js";
|
|
9
|
+
import { s as Ft } from "./session-id-3KiilioY.js";
|
|
9
10
|
import { r as Ct } from "./utils-DEbsp9Q9.js";
|
|
10
11
|
function lt(t) {
|
|
11
12
|
if (typeof t != "string") return !1;
|
|
@@ -33,7 +34,7 @@ function St(t) {
|
|
|
33
34
|
const [, n, r, a] = s, o = parseInt(n, 10), c = parseInt(r, 10), i = parseInt(a, 10);
|
|
34
35
|
return o >= 0 && o <= 360 && c >= 0 && c <= 100 && i >= 0 && i <= 100;
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function ce(t) {
|
|
37
38
|
return lt(t) || Tt(t) || At(t) || St(t);
|
|
38
39
|
}
|
|
39
40
|
function vt(t) {
|
|
@@ -58,12 +59,12 @@ function j(t) {
|
|
|
58
59
|
b: parseInt(s[3], 16)
|
|
59
60
|
} : null;
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
+
function ie(t, e) {
|
|
62
63
|
const s = j(t), n = j(e);
|
|
63
64
|
if (!s || !n) return null;
|
|
64
65
|
const r = (l, d, f) => {
|
|
65
|
-
const [
|
|
66
|
-
return 0.2126 *
|
|
66
|
+
const [m, h, w] = [l, d, f].map(($) => ($ = $ / 255, $ <= 0.03928 ? $ / 12.92 : Math.pow(($ + 0.055) / 1.055, 2.4)));
|
|
67
|
+
return 0.2126 * m + 0.7152 * h + 0.0722 * w;
|
|
67
68
|
}, a = r(s.r, s.g, s.b), o = r(n.r, n.g, n.b), c = Math.max(a, o), i = Math.min(a, o);
|
|
68
69
|
return (c + 0.05) / (i + 0.05);
|
|
69
70
|
}
|
|
@@ -75,8 +76,8 @@ function Rt(t) {
|
|
|
75
76
|
if (s) {
|
|
76
77
|
const l = s[1];
|
|
77
78
|
if (l.length === 8) {
|
|
78
|
-
const d = parseInt(l.slice(0, 2), 16), f = parseInt(l.slice(2, 4), 16),
|
|
79
|
-
return [d, f,
|
|
79
|
+
const d = parseInt(l.slice(0, 2), 16), f = parseInt(l.slice(2, 4), 16), m = parseInt(l.slice(4, 6), 16), h = parseInt(l.slice(6, 8), 16) / 255;
|
|
80
|
+
return [d, f, m, h];
|
|
80
81
|
}
|
|
81
82
|
if (l.length === 6)
|
|
82
83
|
return [
|
|
@@ -86,12 +87,12 @@ function Rt(t) {
|
|
|
86
87
|
1
|
|
87
88
|
];
|
|
88
89
|
if (l.length === 4) {
|
|
89
|
-
const d = parseInt(l[0] + l[0], 16), f = parseInt(l[1] + l[1], 16),
|
|
90
|
-
return [d, f,
|
|
90
|
+
const d = parseInt(l[0] + l[0], 16), f = parseInt(l[1] + l[1], 16), m = parseInt(l[2] + l[2], 16), h = parseInt(l[3] + l[3], 16) / 255;
|
|
91
|
+
return [d, f, m, h];
|
|
91
92
|
}
|
|
92
93
|
if (l.length === 3) {
|
|
93
|
-
const d = parseInt(l[0] + l[0], 16), f = parseInt(l[1] + l[1], 16),
|
|
94
|
-
return [d, f,
|
|
94
|
+
const d = parseInt(l[0] + l[0], 16), f = parseInt(l[1] + l[1], 16), m = parseInt(l[2] + l[2], 16);
|
|
95
|
+
return [d, f, m, 1];
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
const n = t.match(
|
|
@@ -113,22 +114,22 @@ function Rt(t) {
|
|
|
113
114
|
/^hsla?\(\s*([+-]?[\d.]+)(?:deg)?\s*[ ,]?\s*([\d.]+)%\s*[ ,]?\s*([\d.]+)%\s*(?:[/,]\s*(\d?(?:\.\d+)?))?\s*\)$/i
|
|
114
115
|
);
|
|
115
116
|
if (a) {
|
|
116
|
-
const l = parseFloat(a[1]), d = parseFloat(a[2]), f = parseFloat(a[3]),
|
|
117
|
-
return [
|
|
117
|
+
const l = parseFloat(a[1]), d = parseFloat(a[2]), f = parseFloat(a[3]), m = a[4] != null ? parseFloat(a[4]) : 1, [h, w, $] = ut(l, d / 100, f / 100);
|
|
118
|
+
return [h, w, $, m];
|
|
118
119
|
}
|
|
119
120
|
const o = t.match(
|
|
120
121
|
/^hwb\(\s*([+-]?[\d.]+)(?:deg)?\s*[, ]\s*([\d.]+)%\s*[, ]\s*([\d.]+)%\s*(?:[/]\s*(\d?(?:\.\d+)?))?\s*\)$/i
|
|
121
122
|
);
|
|
122
123
|
if (o) {
|
|
123
|
-
const l = parseFloat(o[1]), d = parseFloat(o[2]) / 100, f = parseFloat(o[3]) / 100,
|
|
124
|
-
return [
|
|
124
|
+
const l = parseFloat(o[1]), d = parseFloat(o[2]) / 100, f = parseFloat(o[3]) / 100, m = o[4] != null ? parseFloat(o[4]) : 1, [h, w, $] = Bt(l, d, f);
|
|
125
|
+
return [h, w, $, m];
|
|
125
126
|
}
|
|
126
127
|
const c = t.match(
|
|
127
128
|
/^oklch\(\s*([+-]?[\d.]+%?)\s+([\d.]+)\s+([+-]?[\d.]+)(?:deg)?(?:\s*\/\s*(\d?(?:\.\d+)?))?\s*\)$/i
|
|
128
129
|
);
|
|
129
130
|
if (c) {
|
|
130
|
-
const l = c[1], d = parseFloat(c[2]), f = parseFloat(c[3]),
|
|
131
|
-
return [
|
|
131
|
+
const l = c[1], d = parseFloat(c[2]), f = parseFloat(c[3]), m = c[4] != null ? parseFloat(c[4]) : 1, h = l.endsWith("%") ? Math.max(0, Math.min(1, parseFloat(l) / 100)) : Math.max(0, Math.min(1, parseFloat(l))), [w, $, _] = Et(h, d, f);
|
|
132
|
+
return [w, $, _, m];
|
|
132
133
|
}
|
|
133
134
|
const i = j(t);
|
|
134
135
|
return i ? [i.r, i.g, i.b, 1] : [0, 0, 0, 1];
|
|
@@ -195,13 +196,13 @@ function K(t) {
|
|
|
195
196
|
return Math.round(Math.max(0, Math.min(1, e)) * 255);
|
|
196
197
|
}
|
|
197
198
|
function Et(t, e, s) {
|
|
198
|
-
const n = s * Math.PI / 180, r = Math.cos(n) * e, a = Math.sin(n) * e, o = t + 0.3963377774 * r + 0.2158037573 * a, c = t - 0.1055613458 * r - 0.0638541728 * a, i = t - 0.0894841775 * r - 1.291485548 * a, l = o * o * o, d = c * c * c, f = i * i * i,
|
|
199
|
-
return [K(
|
|
199
|
+
const n = s * Math.PI / 180, r = Math.cos(n) * e, a = Math.sin(n) * e, o = t + 0.3963377774 * r + 0.2158037573 * a, c = t - 0.1055613458 * r - 0.0638541728 * a, i = t - 0.0894841775 * r - 1.291485548 * a, l = o * o * o, d = c * c * c, f = i * i * i, m = 4.0767416621 * l - 3.3077115913 * d + 0.2309699292 * f, h = -1.2684380046 * l + 2.6097574011 * d - 0.3413193965 * f, w = -0.0041960863 * l - 0.7034186147 * d + 1.707614701 * f;
|
|
200
|
+
return [K(m), K(h), K(w)];
|
|
200
201
|
}
|
|
201
202
|
function Lt(t, e, s) {
|
|
202
|
-
const n = G(t), r = G(e), a = G(s), o = 0.4122214708 * n + 0.5363325363 * r + 0.0514459929 * a, c = 0.2119034982 * n + 0.6806995451 * r + 0.1073969566 * a, i = 0.0883024619 * n + 0.2817188376 * r + 0.6299787005 * a, l = Math.cbrt(o), d = Math.cbrt(c), f = Math.cbrt(i),
|
|
203
|
-
let
|
|
204
|
-
return
|
|
203
|
+
const n = G(t), r = G(e), a = G(s), o = 0.4122214708 * n + 0.5363325363 * r + 0.0514459929 * a, c = 0.2119034982 * n + 0.6806995451 * r + 0.1073969566 * a, i = 0.0883024619 * n + 0.2817188376 * r + 0.6299787005 * a, l = Math.cbrt(o), d = Math.cbrt(c), f = Math.cbrt(i), m = 0.2104542553 * l + 0.793617785 * d - 0.0040720468 * f, h = 1.9779984951 * l - 2.428592205 * d + 0.4505937099 * f, w = 0.0259040371 * l + 0.7827717662 * d - 0.808675766 * f, $ = Math.sqrt(h * h + w * w);
|
|
204
|
+
let _ = Math.atan2(w, h) * 180 / Math.PI;
|
|
205
|
+
return _ < 0 && (_ += 360), [m, $, _];
|
|
205
206
|
}
|
|
206
207
|
function O(t, e, s, n, r, a) {
|
|
207
208
|
switch (r) {
|
|
@@ -228,8 +229,8 @@ function O(t, e, s, n, r, a) {
|
|
|
228
229
|
return n < 1 ? `hwb(${o} ${c}% ${i}% / ${Math.round(n * 100) / 100})` : `hwb(${o} ${c}% ${i}%)`;
|
|
229
230
|
}
|
|
230
231
|
case "oklch": {
|
|
231
|
-
const [o, c, i] = Lt(t, e, s), l = (Math.round(o * 1e3) / 1e3).toFixed(3), d = (Math.round(c * 1e3) / 1e3).toFixed(3), f = (Math.round(i * 10) / 10).toFixed(1),
|
|
232
|
-
return a || n < 1 ? `oklch(${l} ${d} ${f} / ${
|
|
232
|
+
const [o, c, i] = Lt(t, e, s), l = (Math.round(o * 1e3) / 1e3).toFixed(3), d = (Math.round(c * 1e3) / 1e3).toFixed(3), f = (Math.round(i * 10) / 10).toFixed(1), m = Math.round(n * 100) / 100;
|
|
233
|
+
return a || n < 1 ? `oklch(${l} ${d} ${f} / ${m})` : `oklch(${l} ${d} ${f})`;
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
236
|
}
|
|
@@ -275,27 +276,27 @@ function Ht(t) {
|
|
|
275
276
|
onChange: s,
|
|
276
277
|
onInput: n,
|
|
277
278
|
...r
|
|
278
|
-
} = t, a = /* @__PURE__ */ new Map(), o = p.toSignal(e).map((d) => d.map((f,
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
),
|
|
283
|
-
return new File([
|
|
279
|
+
} = t, a = /* @__PURE__ */ new Map(), o = p.toSignal(e).map((d) => d.map((f, m) => {
|
|
280
|
+
const h = a.get(f), w = Wt(f ?? ""), $ = h?.type || Ot(w), _ = h?.name ?? `file-${m}`, y = w.buffer.slice(
|
|
281
|
+
w.byteOffset,
|
|
282
|
+
w.byteOffset + w.byteLength
|
|
283
|
+
), b = new Blob([y], { type: $ });
|
|
284
|
+
return new File([b], _, { type: $ });
|
|
284
285
|
})), c = (d) => (f) => {
|
|
285
|
-
d && Pt(f).then((
|
|
286
|
-
for (const [
|
|
287
|
-
a.set(
|
|
288
|
-
d(
|
|
286
|
+
d && Pt(f).then((m) => {
|
|
287
|
+
for (const [h, w] of m.entries())
|
|
288
|
+
a.set(w, { name: f[h].name, type: f[h].type });
|
|
289
|
+
d(m);
|
|
289
290
|
});
|
|
290
291
|
}, i = c(s), l = c(n);
|
|
291
|
-
return
|
|
292
|
+
return ht({
|
|
292
293
|
...r,
|
|
293
294
|
value: o,
|
|
294
295
|
onChange: i,
|
|
295
296
|
onInput: l
|
|
296
297
|
});
|
|
297
298
|
}
|
|
298
|
-
function
|
|
299
|
+
function le(t) {
|
|
299
300
|
const {
|
|
300
301
|
value: e,
|
|
301
302
|
onInput: s,
|
|
@@ -316,137 +317,137 @@ function ie(t) {
|
|
|
316
317
|
}
|
|
317
318
|
function jt(t, e) {
|
|
318
319
|
const [s, n, r] = t, a = s << 16 ^ n << 8 ^ r, o = Dt(a), c = 6 + Math.floor(o() * 5), i = 0.18 + o() * 0.06, l = [];
|
|
319
|
-
for (let
|
|
320
|
-
const
|
|
321
|
-
l.push({ x:
|
|
320
|
+
for (let h = 0; h < c; h++) {
|
|
321
|
+
const w = h / c * Math.PI * 2, $ = e * (1 + (o() * 2 - 1) * i), _ = Math.cos(w) * $, y = Math.sin(w) * $;
|
|
322
|
+
l.push({ x: _, y });
|
|
322
323
|
}
|
|
323
324
|
const d = (l[0].x + l[c - 1].x) / 2, f = (l[0].y + l[c - 1].y) / 2;
|
|
324
|
-
let
|
|
325
|
-
for (let
|
|
326
|
-
const
|
|
327
|
-
|
|
325
|
+
let m = `M ${d.toFixed(3)} ${f.toFixed(3)}`;
|
|
326
|
+
for (let h = 0; h < c; h++) {
|
|
327
|
+
const w = l[h], $ = l[(h + 1) % c], _ = (w.x + $.x) / 2, y = (w.y + $.y) / 2;
|
|
328
|
+
m += ` Q ${w.x.toFixed(3)} ${w.y.toFixed(3)} ${_.toFixed(3)} ${y.toFixed(3)}`;
|
|
328
329
|
}
|
|
329
|
-
return
|
|
330
|
+
return m += " Z", m;
|
|
330
331
|
}
|
|
331
|
-
const
|
|
332
|
-
const { value: e, onBlur: s, onChange: n, onInput: r, displayValue: a, size: o, withAlpha: c } = t, i = p.map(o ?? 32, (
|
|
332
|
+
const ue = (t) => {
|
|
333
|
+
const { value: e, onBlur: s, onChange: n, onInput: r, displayValue: a, size: o, withAlpha: c } = t, i = p.map(o ?? 32, (g) => g), l = p.map(e, (g) => Rt(g ?? "#000000")), d = p.map(
|
|
333
334
|
l,
|
|
334
|
-
([
|
|
335
|
-
), f = p.map(l, ([, , ,
|
|
335
|
+
([g, I, k]) => [g, I, k]
|
|
336
|
+
), f = p.map(l, ([, , , g]) => g), m = rt(p.get(f) ?? 1), h = p.map(c ?? !1, (g) => g), w = p.map(
|
|
336
337
|
t.colorTextFormat ?? "rgb",
|
|
337
|
-
(
|
|
338
|
+
(g) => g
|
|
338
339
|
), $ = D(
|
|
339
340
|
d,
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
m,
|
|
342
|
+
w,
|
|
343
|
+
h
|
|
343
344
|
)(
|
|
344
|
-
([
|
|
345
|
-
),
|
|
345
|
+
([g, I, k], S, v, R) => O(g, I, k, S ?? 1, W(v, R), R)
|
|
346
|
+
), _ = p.map(
|
|
346
347
|
t.colorTextFormat ?? "hex",
|
|
347
|
-
(
|
|
348
|
-
),
|
|
348
|
+
(g) => g
|
|
349
|
+
), y = p.map(i, (g) => `${-g / 2} ${-g / 2} ${g} ${g}`), b = D(
|
|
349
350
|
d,
|
|
350
351
|
i
|
|
351
|
-
)((
|
|
352
|
+
)((g, I) => jt(g, I / 2)), x = D(
|
|
352
353
|
d,
|
|
353
|
-
|
|
354
|
-
|
|
354
|
+
m,
|
|
355
|
+
h
|
|
355
356
|
)(
|
|
356
|
-
([
|
|
357
|
-
),
|
|
357
|
+
([g, I, k], S, v) => v || S < 1 ? Nt(g, I, k, S) : Q(g, I, k)
|
|
358
|
+
), T = C.div(
|
|
358
359
|
u.class("bc-color-swatch-input__control"),
|
|
359
360
|
u.class(
|
|
360
361
|
p.map(
|
|
361
|
-
|
|
362
|
-
(
|
|
362
|
+
h,
|
|
363
|
+
(g) => g ? "bc-color-swatch-input__control--alpha" : ""
|
|
363
364
|
)
|
|
364
365
|
),
|
|
365
366
|
u.style(
|
|
366
|
-
D(i)((
|
|
367
|
+
D(i)((g) => `min-width:${g + 2}px;height:${g + 2}px`)
|
|
367
368
|
),
|
|
368
369
|
// The SVG blob preview
|
|
369
370
|
tt.svg(
|
|
370
371
|
u.class("bc-color-swatch-input__svg"),
|
|
371
|
-
Y.viewBox(
|
|
372
|
-
tt.path(Y.d(
|
|
372
|
+
Y.viewBox(y),
|
|
373
|
+
tt.path(Y.d(b), Y.fill(x))
|
|
373
374
|
),
|
|
374
375
|
// Invisible native input overlays the blob for picker and accessibility
|
|
375
|
-
|
|
376
|
+
C.input(
|
|
376
377
|
u.type("color"),
|
|
377
|
-
|
|
378
|
+
U(t),
|
|
378
379
|
// Native color input needs hex without alpha
|
|
379
|
-
u.value(p.map(d, ([
|
|
380
|
+
u.value(p.map(d, ([g, I, k]) => Q(g, I, k))),
|
|
380
381
|
u.class(
|
|
381
382
|
"bc-input bc-color-swatch-input bc-color-swatch-input__native"
|
|
382
383
|
),
|
|
383
384
|
s != null ? M.blur(s) : A,
|
|
384
|
-
n != null ? M.change((
|
|
385
|
-
const I =
|
|
385
|
+
n != null ? M.change((g) => {
|
|
386
|
+
const I = g.target.value;
|
|
386
387
|
if (!n) return;
|
|
387
|
-
const { r:
|
|
388
|
-
p.get(
|
|
389
|
-
p.get(
|
|
390
|
-
), X = O(
|
|
388
|
+
const { r: k, g: S, b: v } = j(I) ?? { r: 0, g: 0, b: 0 }, R = p.get(m) ?? 1, B = W(
|
|
389
|
+
p.get(_),
|
|
390
|
+
p.get(h)
|
|
391
|
+
), X = O(k, S, v, R, B, p.get(h));
|
|
391
392
|
n(X);
|
|
392
393
|
}) : A,
|
|
393
|
-
r != null ? M.input((
|
|
394
|
-
const I =
|
|
394
|
+
r != null ? M.input((g) => {
|
|
395
|
+
const I = g.target.value;
|
|
395
396
|
if (!r) return;
|
|
396
|
-
const { r:
|
|
397
|
-
p.get(
|
|
398
|
-
p.get(
|
|
399
|
-
), X = O(
|
|
397
|
+
const { r: k, g: S, b: v } = j(I) ?? { r: 0, g: 0, b: 0 }, R = p.get(m) ?? 1, B = W(
|
|
398
|
+
p.get(_),
|
|
399
|
+
p.get(h)
|
|
400
|
+
), X = O(k, S, v, R, B, p.get(h));
|
|
400
401
|
r(X);
|
|
401
402
|
}) : A
|
|
402
403
|
)
|
|
403
|
-
),
|
|
404
|
-
|
|
405
|
-
() =>
|
|
404
|
+
), F = H(
|
|
405
|
+
h,
|
|
406
|
+
() => C.input(
|
|
406
407
|
u.type("range"),
|
|
407
408
|
u.class("bc-color-swatch-input__alpha"),
|
|
408
409
|
u.min(0),
|
|
409
410
|
u.max(1),
|
|
410
411
|
u.step(0.01),
|
|
411
|
-
u.value(p.map(
|
|
412
|
+
u.value(p.map(m, (g) => String(g ?? 1))),
|
|
412
413
|
u.disabled(t.disabled),
|
|
413
|
-
M.input((
|
|
414
|
-
const I = parseFloat(
|
|
415
|
-
|
|
416
|
-
const [
|
|
417
|
-
p.get(
|
|
418
|
-
p.get(
|
|
419
|
-
), B = O(
|
|
414
|
+
M.input((g) => {
|
|
415
|
+
const I = parseFloat(g.target.value);
|
|
416
|
+
m.set(I);
|
|
417
|
+
const [k, S, v] = p.get(d), R = W(
|
|
418
|
+
p.get(_),
|
|
419
|
+
p.get(h)
|
|
420
|
+
), B = O(k, S, v, I, R, p.get(h));
|
|
420
421
|
r?.(B);
|
|
421
422
|
}),
|
|
422
|
-
M.change((
|
|
423
|
-
const I = parseFloat(
|
|
424
|
-
|
|
425
|
-
const [
|
|
426
|
-
p.get(
|
|
427
|
-
p.get(
|
|
428
|
-
), B = O(
|
|
423
|
+
M.change((g) => {
|
|
424
|
+
const I = parseFloat(g.target.value);
|
|
425
|
+
m.set(I);
|
|
426
|
+
const [k, S, v] = p.get(d), R = W(
|
|
427
|
+
p.get(_),
|
|
428
|
+
p.get(h)
|
|
429
|
+
), B = O(k, S, v, I, R, p.get(h));
|
|
429
430
|
n?.(B);
|
|
430
431
|
})
|
|
431
432
|
)
|
|
432
433
|
);
|
|
433
|
-
return
|
|
434
|
+
return L({
|
|
434
435
|
baseContainer: !0,
|
|
435
436
|
...t,
|
|
436
437
|
// ensure our control does not try to grow
|
|
437
438
|
growInput: !1,
|
|
438
|
-
input:
|
|
439
|
+
input: T,
|
|
439
440
|
// If caller provided an `after`, append RGB before it
|
|
440
441
|
after: E(
|
|
441
442
|
H(
|
|
442
443
|
a ?? !1,
|
|
443
|
-
() =>
|
|
444
|
+
() => C.span(u.class("bc-color-swatch-input__rgb"), $)
|
|
444
445
|
),
|
|
445
|
-
|
|
446
|
+
F,
|
|
446
447
|
t.after
|
|
447
448
|
)
|
|
448
449
|
});
|
|
449
|
-
},
|
|
450
|
+
}, pe = ({
|
|
450
451
|
startEditing: t,
|
|
451
452
|
value: e,
|
|
452
453
|
onChange: s,
|
|
@@ -454,7 +455,7 @@ const le = (t) => {
|
|
|
454
455
|
disabled: r
|
|
455
456
|
}) => {
|
|
456
457
|
const a = p.deriveProp(t ?? !1), o = rt(!1), c = p.map(r ?? !1, (i) => i);
|
|
457
|
-
return
|
|
458
|
+
return C.div(
|
|
458
459
|
u.class("bc-editable-text"),
|
|
459
460
|
u.class(
|
|
460
461
|
p.map(
|
|
@@ -465,11 +466,11 @@ const le = (t) => {
|
|
|
465
466
|
N.disabled(c),
|
|
466
467
|
H(
|
|
467
468
|
a,
|
|
468
|
-
() =>
|
|
469
|
+
() => C.input(
|
|
469
470
|
u.placeholder(n),
|
|
470
471
|
u.value(e),
|
|
471
472
|
u.class("bc-editable-text__input"),
|
|
472
|
-
|
|
473
|
+
Mt(),
|
|
473
474
|
M.keydown((i) => {
|
|
474
475
|
i.key === "Enter" ? a.set(!1) : i.key === "Escape" && (o.set(!0), a.set(!1));
|
|
475
476
|
}),
|
|
@@ -483,22 +484,22 @@ const le = (t) => {
|
|
|
483
484
|
})
|
|
484
485
|
)
|
|
485
486
|
),
|
|
486
|
-
() =>
|
|
487
|
+
() => C.span(
|
|
487
488
|
M.click(() => {
|
|
488
489
|
p.get(c) || a.set(!0);
|
|
489
490
|
}),
|
|
490
491
|
u.class("bc-editable-text__display"),
|
|
491
492
|
H(
|
|
492
493
|
p.map(e, (i) => i != null && i.trim() !== ""),
|
|
493
|
-
() =>
|
|
494
|
-
() =>
|
|
494
|
+
() => C.span(u.class("bc-editable-text__text"), e),
|
|
495
|
+
() => C.span(
|
|
495
496
|
u.class("bc-editable-text__placeholder"),
|
|
496
497
|
n
|
|
497
498
|
)
|
|
498
499
|
),
|
|
499
500
|
H(
|
|
500
501
|
p.map(c, (i) => !i),
|
|
501
|
-
() =>
|
|
502
|
+
() => C.button(
|
|
502
503
|
u.type("button"),
|
|
503
504
|
u.class("bc-editable-text__edit-button"),
|
|
504
505
|
ot(yt, (i) => N.label(i.$.editLabel)),
|
|
@@ -509,12 +510,12 @@ const le = (t) => {
|
|
|
509
510
|
)
|
|
510
511
|
)
|
|
511
512
|
);
|
|
512
|
-
},
|
|
513
|
+
}, de = (t) => {
|
|
513
514
|
const { value: e, onBlur: s, onChange: n, onInput: r, after: a, disabled: o } = t, c = z(e, o, n ?? r);
|
|
514
|
-
return
|
|
515
|
+
return L({
|
|
515
516
|
...t,
|
|
516
517
|
input: ct.date(
|
|
517
|
-
|
|
518
|
+
U(t),
|
|
518
519
|
u.valueAsDate(e),
|
|
519
520
|
u.class("bc-input"),
|
|
520
521
|
s != null ? M.blur(Z(s)) : A,
|
|
@@ -526,12 +527,12 @@ const le = (t) => {
|
|
|
526
527
|
}, zt = (t) => {
|
|
527
528
|
const e = t.getFullYear(), s = t.getMonth() + 1, n = t.getDate(), r = t.getHours(), a = t.getMinutes(), o = t.getSeconds();
|
|
528
529
|
return `${e}-${s.toString().padStart(2, "0")}-${n.toString().padStart(2, "0")}T${r.toString().padStart(2, "0")}:${a.toString().padStart(2, "0")}:${o.toString().padStart(2, "0")}`;
|
|
529
|
-
},
|
|
530
|
+
}, he = (t) => {
|
|
530
531
|
const { value: e, onBlur: s, onChange: n, onInput: r, after: a, disabled: o } = t, c = p.map(e, (l) => l != null ? zt(l) : null), i = z(e, o, n ?? r);
|
|
531
|
-
return
|
|
532
|
+
return L({
|
|
532
533
|
...t,
|
|
533
534
|
input: ct["datetime-local"](
|
|
534
|
-
|
|
535
|
+
U(t),
|
|
535
536
|
u.value(p.map(c, (l) => l ?? null)),
|
|
536
537
|
u.class("bc-input"),
|
|
537
538
|
s != null ? M.blur(Z(s)) : A,
|
|
@@ -555,9 +556,9 @@ function P(t) {
|
|
|
555
556
|
});
|
|
556
557
|
};
|
|
557
558
|
}
|
|
558
|
-
const ge = P(_t),
|
|
559
|
-
|
|
560
|
-
),
|
|
559
|
+
const ge = P(_t), fe = P(wt), me = P(kt), be = P(
|
|
560
|
+
gt
|
|
561
|
+
), we = ({
|
|
561
562
|
value: t,
|
|
562
563
|
onChange: e,
|
|
563
564
|
onInput: s,
|
|
@@ -568,105 +569,106 @@ const ge = P(_t), he = P(wt), fe = P(kt), me = P(
|
|
|
568
569
|
size: c = "md",
|
|
569
570
|
id: i,
|
|
570
571
|
color: l = "primary",
|
|
571
|
-
tabIndex: d = 0
|
|
572
|
+
tabIndex: d = 0,
|
|
573
|
+
matchInputHeight: f = !0
|
|
572
574
|
}) => {
|
|
573
|
-
const
|
|
574
|
-
function
|
|
575
|
-
const
|
|
575
|
+
const m = i ?? Ft("switch");
|
|
576
|
+
function h(y, b) {
|
|
577
|
+
const x = [
|
|
576
578
|
"bc-switch",
|
|
577
|
-
`bc-switch--size-${
|
|
578
|
-
`bc-switch--${
|
|
579
|
+
`bc-switch--size-${b}`,
|
|
580
|
+
`bc-switch--${b}`
|
|
579
581
|
];
|
|
580
|
-
return
|
|
582
|
+
return f && x.push("bc-switch--match-input"), y && x.push("bc-switch--disabled"), x.join(" ");
|
|
581
583
|
}
|
|
582
|
-
function
|
|
583
|
-
const
|
|
584
|
-
return
|
|
584
|
+
function w(y) {
|
|
585
|
+
const b = y ?? "primary", x = /* @__PURE__ */ new Map(), T = st(b, "solid", "light"), F = st(b, "solid", "dark");
|
|
586
|
+
return x.set("--switch-track-on-bg", T.backgroundColor), x.set("--switch-track-on-label", T.textColor), x.set("--switch-track-on-bg-dark", F.backgroundColor), x.set("--switch-track-on-label-dark", F.textColor), x.set(
|
|
585
587
|
"--switch-track-on-border-dark",
|
|
586
|
-
|
|
587
|
-
), Array.from(
|
|
588
|
+
It(b, "dark")
|
|
589
|
+
), Array.from(x.entries()).map(([g, I]) => `${g}: ${I}`).join("; ");
|
|
588
590
|
}
|
|
589
|
-
const
|
|
591
|
+
const $ = () => {
|
|
590
592
|
p.get(o) || (e?.(!p.get(t)), s?.(!p.get(t)));
|
|
591
|
-
},
|
|
592
|
-
p.get(o) || (
|
|
593
|
+
}, _ = (y) => {
|
|
594
|
+
p.get(o) || (y.key === " " || y.key === "Enter") && (y.preventDefault(), $());
|
|
593
595
|
};
|
|
594
|
-
return
|
|
596
|
+
return C.div(
|
|
595
597
|
u.class(
|
|
596
598
|
D(
|
|
597
599
|
o ?? !1,
|
|
598
600
|
c
|
|
599
601
|
)(
|
|
600
|
-
(
|
|
602
|
+
(y, b) => h(y ?? !1, b ?? "md")
|
|
601
603
|
)
|
|
602
604
|
),
|
|
603
605
|
u.style(
|
|
604
606
|
D(l)(
|
|
605
|
-
(
|
|
607
|
+
(y) => w(y)
|
|
606
608
|
)
|
|
607
609
|
),
|
|
608
|
-
u.id(
|
|
610
|
+
u.id(m),
|
|
609
611
|
u.role("switch"),
|
|
610
612
|
u.tabindex(
|
|
611
613
|
D(
|
|
612
614
|
o ?? !1,
|
|
613
615
|
d
|
|
614
|
-
)((
|
|
616
|
+
)((y, b) => y ? -1 : b ?? 0)
|
|
615
617
|
),
|
|
616
618
|
N.checked(t),
|
|
617
619
|
N.disabled(o),
|
|
618
|
-
M.click(
|
|
619
|
-
M.keydown(
|
|
620
|
+
M.click($),
|
|
621
|
+
M.keydown(_),
|
|
620
622
|
n != null ? M.blur(n) : null,
|
|
621
|
-
|
|
623
|
+
C.div(
|
|
622
624
|
u.class("bc-switch__track"),
|
|
623
625
|
u.class(
|
|
624
626
|
p.map(
|
|
625
627
|
t,
|
|
626
|
-
(
|
|
628
|
+
(y) => y ? "bc-switch__track--on" : "bc-switch__track--off"
|
|
627
629
|
)
|
|
628
630
|
),
|
|
629
|
-
r != null ?
|
|
631
|
+
r != null ? C.div(
|
|
630
632
|
N.hidden(!0),
|
|
631
633
|
u.class("bc-switch__track-label bc-switch__track-label--off"),
|
|
632
634
|
u.class(
|
|
633
635
|
p.map(
|
|
634
636
|
t,
|
|
635
|
-
(
|
|
637
|
+
(y) => y ? "bc-switch__track-label--hidden" : "bc-switch__track-label--visible"
|
|
636
638
|
)
|
|
637
639
|
),
|
|
638
640
|
r
|
|
639
641
|
) : null,
|
|
640
|
-
a != null ?
|
|
642
|
+
a != null ? C.div(
|
|
641
643
|
u.class("bc-switch__track-label bc-switch__track-label--on"),
|
|
642
644
|
u.class(
|
|
643
645
|
p.map(
|
|
644
646
|
t,
|
|
645
|
-
(
|
|
647
|
+
(y) => y ? "bc-switch__track-label--visible" : "bc-switch__track-label--hidden"
|
|
646
648
|
)
|
|
647
649
|
),
|
|
648
650
|
a
|
|
649
651
|
) : null,
|
|
650
652
|
xt(
|
|
651
|
-
(
|
|
653
|
+
(y) => ot(
|
|
652
654
|
$t,
|
|
653
|
-
({ direction:
|
|
655
|
+
({ direction: b }) => C.div(
|
|
654
656
|
u.class("bc-switch__thumb"),
|
|
655
657
|
u.class(
|
|
656
658
|
p.map(
|
|
657
659
|
t,
|
|
658
|
-
(
|
|
660
|
+
(x) => x ? "bc-switch__thumb--on" : "bc-switch__thumb--off"
|
|
659
661
|
)
|
|
660
662
|
),
|
|
661
663
|
it.transform(
|
|
662
664
|
D(
|
|
663
665
|
t,
|
|
664
|
-
|
|
666
|
+
y,
|
|
665
667
|
c,
|
|
666
|
-
|
|
667
|
-
)((
|
|
668
|
-
const
|
|
669
|
-
switch (
|
|
668
|
+
b
|
|
669
|
+
)((x, { width: T }, F, g) => {
|
|
670
|
+
const I = (() => {
|
|
671
|
+
switch (F) {
|
|
670
672
|
case "xs":
|
|
671
673
|
return 5;
|
|
672
674
|
case "sm":
|
|
@@ -678,8 +680,8 @@ const ge = P(_t), he = P(wt), fe = P(kt), me = P(
|
|
|
678
680
|
case "xl":
|
|
679
681
|
return 8;
|
|
680
682
|
}
|
|
681
|
-
})(),
|
|
682
|
-
return
|
|
683
|
+
})(), k = g === "rtl" ? `calc((var(--spacing-base) * ${I}) - ${T}px)` : `calc(${T}px - (var(--spacing-base) * ${I}))`;
|
|
684
|
+
return x ? `translateX(${k})` : "translateX(0)";
|
|
683
685
|
})
|
|
684
686
|
)
|
|
685
687
|
)
|
|
@@ -687,7 +689,7 @@ const ge = P(_t), he = P(wt), fe = P(kt), me = P(
|
|
|
687
689
|
)
|
|
688
690
|
)
|
|
689
691
|
);
|
|
690
|
-
},
|
|
692
|
+
}, ye = P(ft), Yt = "line-md:star-alt-filled", Gt = "line-md:star-alt", Kt = (t) => {
|
|
691
693
|
const {
|
|
692
694
|
value: e,
|
|
693
695
|
onChange: s,
|
|
@@ -700,39 +702,39 @@ const ge = P(_t), he = P(wt), fe = P(kt), me = P(
|
|
|
700
702
|
size: l = "md",
|
|
701
703
|
onBlur: d,
|
|
702
704
|
rounding: f = 1
|
|
703
|
-
} = t,
|
|
704
|
-
const
|
|
705
|
-
return
|
|
706
|
-
},
|
|
705
|
+
} = t, m = () => {
|
|
706
|
+
const b = p.get(f);
|
|
707
|
+
return b > 0 ? b : 1;
|
|
708
|
+
}, h = (b) => Math.min(Math.max(b, 0), p.get(r)), w = (b, x) => {
|
|
707
709
|
if (p.get(n ?? !1)) return;
|
|
708
|
-
const
|
|
710
|
+
const F = b.currentTarget.getBoundingClientRect(), g = (b.clientX - F.left) / F.width, I = x - 1 + g, k = m(), S = Math.ceil(I / k) * k, v = h(S);
|
|
709
711
|
s?.(v);
|
|
710
|
-
}, $ = (
|
|
712
|
+
}, $ = (b) => {
|
|
711
713
|
if (p.get(n ?? !1)) return;
|
|
712
|
-
const
|
|
713
|
-
let
|
|
714
|
-
switch (
|
|
714
|
+
const x = m(), T = p.get(e) ?? 0;
|
|
715
|
+
let F;
|
|
716
|
+
switch (b.key) {
|
|
715
717
|
case "ArrowRight":
|
|
716
718
|
case "ArrowUp":
|
|
717
|
-
|
|
719
|
+
F = h(T + x);
|
|
718
720
|
break;
|
|
719
721
|
case "ArrowLeft":
|
|
720
722
|
case "ArrowDown":
|
|
721
|
-
|
|
723
|
+
F = h(T - x);
|
|
722
724
|
break;
|
|
723
725
|
case "Home":
|
|
724
|
-
|
|
726
|
+
F = 0;
|
|
725
727
|
break;
|
|
726
728
|
case "End":
|
|
727
|
-
|
|
729
|
+
F = p.get(r);
|
|
728
730
|
break;
|
|
729
731
|
default:
|
|
730
732
|
return;
|
|
731
733
|
}
|
|
732
|
-
|
|
733
|
-
},
|
|
734
|
+
b.preventDefault(), s?.(F);
|
|
735
|
+
}, _ = p.map(l, (b) => `bc-icon--${b}`), y = ({ index: b, counter: x }) => C.span(
|
|
734
736
|
u.class("bc-rating-input__icon-container"),
|
|
735
|
-
u.class(
|
|
737
|
+
u.class(_),
|
|
736
738
|
q(
|
|
737
739
|
{
|
|
738
740
|
icon: i,
|
|
@@ -742,13 +744,13 @@ const ge = P(_t), he = P(wt), fe = P(kt), me = P(
|
|
|
742
744
|
},
|
|
743
745
|
u.class("bc-rating-input__icon-empty")
|
|
744
746
|
),
|
|
745
|
-
|
|
747
|
+
C.span(
|
|
746
748
|
u.class("bc-rating-input__icon-clipper"),
|
|
747
|
-
u.class(
|
|
749
|
+
u.class(_),
|
|
748
750
|
it.width(
|
|
749
|
-
p.map(e, (
|
|
750
|
-
const
|
|
751
|
-
return
|
|
751
|
+
p.map(e, (T) => {
|
|
752
|
+
const F = Math.floor(T);
|
|
753
|
+
return F > b ? "100%" : F < b ? "0%" : `${(T - b) * 100}%`;
|
|
752
754
|
})
|
|
753
755
|
),
|
|
754
756
|
q(
|
|
@@ -762,44 +764,44 @@ const ge = P(_t), he = P(wt), fe = P(kt), me = P(
|
|
|
762
764
|
)
|
|
763
765
|
),
|
|
764
766
|
M.click(
|
|
765
|
-
dt((
|
|
767
|
+
dt((T) => w(T, x), {
|
|
766
768
|
preventDefault: !0,
|
|
767
769
|
stopPropagation: !0
|
|
768
770
|
})
|
|
769
771
|
)
|
|
770
772
|
);
|
|
771
|
-
return
|
|
773
|
+
return L({
|
|
772
774
|
baseContainer: !0,
|
|
773
775
|
growInput: !1,
|
|
774
776
|
focusableSelector: '[role="slider"]',
|
|
775
777
|
...t,
|
|
776
|
-
input:
|
|
778
|
+
input: C.div(
|
|
777
779
|
// Common input attributes (id, required, invalid, custom classes, etc.)
|
|
778
|
-
|
|
780
|
+
U(t),
|
|
779
781
|
u.class("bc-rating-input"),
|
|
780
782
|
// ARIA slider semantics
|
|
781
783
|
u.role("slider"),
|
|
782
|
-
u.tabindex(p.map(n ?? !1, (
|
|
784
|
+
u.tabindex(p.map(n ?? !1, (b) => b ? -1 : 0)),
|
|
783
785
|
N.disabled(n ?? !1),
|
|
784
786
|
N.valuemin(0),
|
|
785
|
-
N.valuemax(p.map(r, (
|
|
786
|
-
N.valuenow(p.map(e, (
|
|
787
|
+
N.valuemax(p.map(r, (b) => b ?? 0)),
|
|
788
|
+
N.valuenow(p.map(e, (b) => b ?? 0)),
|
|
787
789
|
N.valuetext(
|
|
788
790
|
D(
|
|
789
791
|
e,
|
|
790
792
|
r
|
|
791
|
-
)((
|
|
792
|
-
const
|
|
793
|
-
return `${String(
|
|
793
|
+
)((b, x) => {
|
|
794
|
+
const T = b ?? 0, F = x ?? 0;
|
|
795
|
+
return `${String(T)} / ${String(F)}`;
|
|
794
796
|
})
|
|
795
797
|
),
|
|
796
798
|
// Keyboard & focus handlers
|
|
797
799
|
M.keydown($),
|
|
798
800
|
d != null ? M.blur(d) : null,
|
|
799
|
-
pt(r,
|
|
801
|
+
pt(r, y)
|
|
800
802
|
)
|
|
801
803
|
});
|
|
802
|
-
},
|
|
804
|
+
}, $e = (t) => {
|
|
803
805
|
const { value: e, onChange: s, onInput: n, onBlur: r, after: a, disabled: o, ...c } = t, i = z(e, o, s ?? n);
|
|
804
806
|
return Kt({
|
|
805
807
|
...c,
|
|
@@ -811,15 +813,15 @@ const ge = P(_t), he = P(wt), fe = P(kt), me = P(
|
|
|
811
813
|
onBlur: r,
|
|
812
814
|
after: a != null ? E(i, a) : i
|
|
813
815
|
});
|
|
814
|
-
},
|
|
816
|
+
}, Ie = (t) => {
|
|
815
817
|
const { value: e, step: s, min: n, max: r, onBlur: a, onChange: o, onInput: c } = t;
|
|
816
|
-
return
|
|
818
|
+
return L({
|
|
817
819
|
...t,
|
|
818
820
|
// Make sure clicks anywhere focus the range input
|
|
819
821
|
focusableSelector: 'input[type="range"]',
|
|
820
|
-
input:
|
|
822
|
+
input: C.input(
|
|
821
823
|
u.type("range"),
|
|
822
|
-
|
|
824
|
+
U(t),
|
|
823
825
|
u.min(n),
|
|
824
826
|
u.max(r),
|
|
825
827
|
u.step(s),
|
|
@@ -841,14 +843,14 @@ const ge = P(_t), he = P(wt), fe = P(kt), me = P(
|
|
|
841
843
|
t.disabled,
|
|
842
844
|
o ?? c
|
|
843
845
|
);
|
|
844
|
-
return
|
|
846
|
+
return L(
|
|
845
847
|
{
|
|
846
848
|
...t,
|
|
847
849
|
focusableSelector: 'input[type="range"]',
|
|
848
850
|
after: l,
|
|
849
|
-
input:
|
|
851
|
+
input: C.input(
|
|
850
852
|
u.type("range"),
|
|
851
|
-
|
|
853
|
+
U(t),
|
|
852
854
|
u.min(n),
|
|
853
855
|
u.max(r),
|
|
854
856
|
u.step(s),
|
|
@@ -870,7 +872,7 @@ const ge = P(_t), he = P(wt), fe = P(kt), me = P(
|
|
|
870
872
|
// Ensure container grows input naturally
|
|
871
873
|
E()
|
|
872
874
|
);
|
|
873
|
-
},
|
|
875
|
+
}, xe = P(mt);
|
|
874
876
|
class qt {
|
|
875
877
|
widgets = /* @__PURE__ */ new Map();
|
|
876
878
|
typeMapping = /* @__PURE__ */ new Map();
|
|
@@ -963,8 +965,8 @@ class qt {
|
|
|
963
965
|
return null;
|
|
964
966
|
}
|
|
965
967
|
}
|
|
966
|
-
const
|
|
967
|
-
function
|
|
968
|
+
const _e = new qt();
|
|
969
|
+
function ke(t, e, s) {
|
|
968
970
|
return {
|
|
969
971
|
factory: e,
|
|
970
972
|
matcher: (n) => {
|
|
@@ -977,7 +979,7 @@ function _e(t, e, s) {
|
|
|
977
979
|
...s
|
|
978
980
|
};
|
|
979
981
|
}
|
|
980
|
-
function
|
|
982
|
+
function Fe(t, e, s) {
|
|
981
983
|
return {
|
|
982
984
|
factory: e,
|
|
983
985
|
matcher: (n) => n.definition.format === t,
|
|
@@ -986,7 +988,7 @@ function ke(t, e, s) {
|
|
|
986
988
|
...s
|
|
987
989
|
};
|
|
988
990
|
}
|
|
989
|
-
function
|
|
991
|
+
function Ce(t, e, s, n) {
|
|
990
992
|
return {
|
|
991
993
|
factory: s,
|
|
992
994
|
matcher: (r) => {
|
|
@@ -998,7 +1000,7 @@ function Fe(t, e, s, n) {
|
|
|
998
1000
|
...n
|
|
999
1001
|
};
|
|
1000
1002
|
}
|
|
1001
|
-
function
|
|
1003
|
+
function Te(t) {
|
|
1002
1004
|
const e = t?.logPrefix ?? "WIDGET_DIAG", s = t?.filterFn ?? (() => !0);
|
|
1003
1005
|
return {
|
|
1004
1006
|
factory: () => null,
|
|
@@ -1022,10 +1024,10 @@ function Ce(t) {
|
|
|
1022
1024
|
}
|
|
1023
1025
|
export {
|
|
1024
1026
|
j as A,
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1027
|
+
le as B,
|
|
1028
|
+
ue as C,
|
|
1029
|
+
ie as D,
|
|
1030
|
+
pe as E,
|
|
1029
1031
|
Rt as F,
|
|
1030
1032
|
Nt as G,
|
|
1031
1033
|
Dt as H,
|
|
@@ -1034,33 +1036,33 @@ export {
|
|
|
1034
1036
|
J as K,
|
|
1035
1037
|
Vt as L,
|
|
1036
1038
|
G as M,
|
|
1037
|
-
|
|
1039
|
+
fe as N,
|
|
1038
1040
|
K as O,
|
|
1039
1041
|
Et as P,
|
|
1040
1042
|
Lt as Q,
|
|
1041
1043
|
Kt as R,
|
|
1042
|
-
|
|
1044
|
+
Ie as S,
|
|
1043
1045
|
O as T,
|
|
1044
1046
|
W as U,
|
|
1045
1047
|
qt as W,
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1048
|
+
be as a,
|
|
1049
|
+
ye as b,
|
|
1050
|
+
xe as c,
|
|
1051
|
+
me as d,
|
|
1052
|
+
he as e,
|
|
1053
|
+
de as f,
|
|
1054
|
+
_e as g,
|
|
1053
1055
|
ge as h,
|
|
1054
1056
|
Me as i,
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1057
|
+
$e as j,
|
|
1058
|
+
we as k,
|
|
1059
|
+
ke as l,
|
|
1060
|
+
Fe as m,
|
|
1061
|
+
Ce as n,
|
|
1062
|
+
Te as o,
|
|
1061
1063
|
at as p,
|
|
1062
1064
|
Xt as q,
|
|
1063
|
-
|
|
1065
|
+
ce as r,
|
|
1064
1066
|
lt as s,
|
|
1065
1067
|
vt as t,
|
|
1066
1068
|
Ut as u,
|