@softistx/material 3.248.0 → 3.250.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 +34 -0
- package/README.md +8 -4
- package/dist/adopt-styles-C3MfGnxE.js +20 -0
- package/dist/{async-slice-C5HfFq1M.js → async-slice-DdEr7vFx.js} +1 -1
- package/dist/{audio-player-2kKst8lH.js → audio-player-DMYszRGT.js} +3 -3
- package/dist/{audio-player-viewer-D9DsYBcy.js → audio-player-viewer-z13yCjo4.js} +2 -2
- package/dist/{autocomplete-JuRCjl48.js → autocomplete-Bgf_AJ6U.js} +11 -11
- package/dist/{avatar-CvvdaBu4.js → avatar-WvTropuJ.js} +1 -1
- package/dist/blank-placeholder-DZIFJ0DG.js +17 -0
- package/dist/{breadcrumb-DacRqg91.js → breadcrumb-DYa6pVsq.js} +5 -5
- package/dist/{button-CpUMPIdk.js → button-RsWgka2v.js} +1 -1
- package/dist/{calculator-BYgFgWHL.js → calculator-DPHCuAZy.js} +11 -11
- package/dist/calculator-field.js +6 -6
- package/dist/{calculator-segment-DCHWZy6b.js → calculator-segment-Ckn9Fua9.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/canvas-BShNj4yp.js +144 -0
- package/dist/capture-outputs-qcYUPW6K.js +174 -0
- package/dist/capture-toolbar.css +2 -0
- package/dist/capture-toolbar.js +858 -0
- package/dist/capture.js +53 -139
- package/dist/charts.js +3 -3
- package/dist/{chip-CjJPmAYO.js → chip-tyDM0lpO.js} +2 -2
- package/dist/{code-editor-nNcxtslA.js → code-editor-gHHXEwF-.js} +6 -6
- package/dist/code-editor.js +6 -6
- package/dist/{code-file-viewer-CcESl49v.js → code-file-viewer-CYQcskvt.js} +4 -4
- package/dist/{code-language-items-CW8_Si05.js → code-language-items-DDFuDf_E.js} +2 -2
- package/dist/{components-BdMaUeOm.js → components-DUvKQIBi.js} +16714 -20832
- package/dist/components.js +83 -79
- package/dist/{confirm-dialog-B2eonW2X.js → confirm-dialog-IHvPA3O2.js} +4 -4
- package/dist/{conversion-variant-DZm_xgUK.js → conversion-variant-MWTjnFnG.js} +5 -5
- package/dist/{currency-field-UIkYAlvP.js → currency-field-Bd9od1Ee.js} +5 -5
- package/dist/{detail-panel-header-CL2_tUG0.js → detail-panel-header-D2a63Sk3.js} +1 -1
- package/dist/{details-content-CPzj3vUr.js → details-content-CnN_ukTA.js} +6 -6
- package/dist/{details-header-band-D-CyB_Xx.js → details-header-band-wcgmC7qC.js} +5 -5
- package/dist/{details-host-BvYgFIWx.js → details-host-DKEaGH4P.js} +1 -1
- package/dist/{details-sheet-D4PTV_jR.js → details-sheet-CtNM4oDU.js} +2 -2
- package/dist/{details-shell-D4XoPRBu.js → details-shell-DZ80h6mN.js} +1 -1
- package/dist/{dialog-CleLsHkZ.js → dialog-DwUxG2-o.js} +1 -1
- package/dist/{dialog-app-bar-CLC990e6.js → dialog-app-bar-BsJ4UwKb.js} +2 -2
- package/dist/dist-Cb17ixQs.js +16 -0
- package/dist/dist-CyqFzDZ6.js +11 -0
- package/dist/dnd.js +1 -1
- package/dist/draw.js +1 -1
- package/dist/{drop-overlay-BTkVfscF.js → drop-overlay-B26hx0-T.js} +2 -2
- package/dist/{dropdown-menu-BoJC2DEH.js → dropdown-menu-D-PRbHaP.js} +1 -1
- package/dist/{editable-section-CTRGfbLJ.js → editable-section-DPmF1flG.js} +3 -3
- package/dist/editor.js +14 -14
- package/dist/embed-chunks/{avatar-GlGqPU7B.js → avatar-CSDtFCum.js} +1 -1
- package/dist/embed-chunks/{dist-BrYZYfsJ.js → dist-BVPJSDov.js} +2 -2
- package/dist/embed-chunks/{emoji-picker-BSYBi_C8.js → emoji-picker-CrIXB9pF.js} +23 -23
- package/dist/embed-chunks/{mention-list-NW43QcRq.js → mention-list-9hwOYNND.js} +3 -3
- package/dist/embed-chunks/{nxgt-theme-provider-B1aeqDja.js → nxgt-theme-provider-Cjl7Eb8v.js} +703 -592
- package/dist/embed-chunks/switch-control-BrwJRN_V.js +207 -0
- package/dist/embed-chunks/{tabs-root-CY-uLp1C.js → tabs-root-BvPc1aaV.js} +6 -6
- package/dist/embed-chunks/{use-shape-morph-NrJQMv7i.js → use-shape-morph-D1MOoQ4T.js} +110 -2
- package/dist/embed-chunks/{useLatest-B57qw3XH.js → useLatest-CbcU5ozz.js} +323 -323
- package/dist/embed.css +2 -2
- package/dist/embed.js +1280 -741
- package/dist/{emoji-picker-DZbTd3Fr.js → emoji-picker-DabgsEVQ.js} +7 -7
- package/dist/{empty-state-DBSJDLKL.js → empty-state-BylD7RYH.js} +1 -1
- package/dist/{error-state-kauz4If4.js → error-state-BTe_NzTC.js} +2 -2
- package/dist/fab-DUnGwNE7.js +41 -0
- package/dist/fab-dock-By2pLVh7.js +49 -0
- package/dist/{feature-popup-CcXMGFES.js → feature-popup-CW7VS2fx.js} +1 -1
- package/dist/{blank-placeholder-DeDn5Xor.js → field-box-BXN-uyrv.js} +1 -16
- package/dist/{field-group-BpV74Ttu.js → field-group-B2Ozd5Jn.js} +1 -1
- package/dist/{file-dialogs-CbdvmY__.js → file-dialogs-CgEXaCev.js} +7 -7
- package/dist/{file-manager-shell-DLaJ5Z_L.js → file-manager-shell-Tqduf5lh.js} +21 -21
- package/dist/{file-preview-host-RhZvGGqC.js → file-preview-host-CM4pV3ZD.js} +2367 -2384
- package/dist/{file-viewer-body-DM3RkXGn.js → file-viewer-body-DrWFmnp4.js} +3 -3
- package/dist/{file-viewer-dialog-impl-ei5EYj8k.js → file-viewer-dialog-impl-DZpuZZ7x.js} +2 -2
- package/dist/files-drop.js +1 -1
- package/dist/files-picker.js +8 -8
- package/dist/files.js +3 -3
- package/dist/{financial-variant-BNdOqzA5.js → financial-variant-ljdP0JL4.js} +5 -5
- package/dist/{flow-diagram-BBB6r8--.js → flow-diagram-DwUnyl0u.js} +1 -1
- package/dist/{gallery-CIIJHpmj.js → gallery-DfN2KE4Y.js} +11 -11
- package/dist/{gallery-file-viewer-DkshswFr.js → gallery-file-viewer-BfFWfLIF.js} +3 -3
- package/dist/{gl-markers-abqcNuYT.js → gl-markers-CBNFeWIk.js} +3 -3
- package/dist/{hooks-D6lOSXA5.js → hooks-DiAhgchz.js} +3 -3
- package/dist/hooks.js +3 -3
- package/dist/i18n.js +3 -3
- package/dist/{icon-button-GKYj7uC4.js → icon-button-D-gi4Plg.js} +1 -1
- package/dist/image-editor-mmhbsqs-.js +4423 -0
- package/dist/image-editor.css +1 -1
- package/dist/image-editor.js +1157 -996
- package/dist/image-markup-editor-D-QkZWKf.js +24 -0
- package/dist/input-CWf3Apid.js +18 -0
- package/dist/input-box-moFuoMt0.js +15 -0
- package/dist/{input-group-CKO68Pyi.js → input-group-Bb8sAFRF.js} +3 -2
- package/dist/{item-details-l_-rk3Hj.js → item-details-BWdHMfsS.js} +7 -7
- package/dist/keypad.js +2 -2
- package/dist/lib/capture/engine/canvas.d.ts +17 -0
- package/dist/lib/capture/engine/capture.d.ts +19 -0
- package/dist/lib/capture/engine/filters.d.ts +27 -0
- package/dist/lib/capture/engine/rect.d.ts +26 -0
- package/dist/lib/capture/engine/types.d.ts +66 -0
- package/dist/lib/capture/index.d.ts +16 -0
- package/dist/lib/capture/modes/capture-mode.d.ts +24 -0
- package/dist/lib/capture/modes/countdown.d.ts +16 -0
- package/dist/lib/capture/modes/full-page.d.ts +14 -0
- package/dist/lib/capture/modes/pick-element.d.ts +22 -0
- package/dist/lib/capture/modes/scroller.d.ts +13 -0
- package/dist/lib/capture/modes/visible.d.ts +3 -0
- package/dist/lib/capture-toolbar/index.d.ts +25 -0
- package/dist/lib/capture-toolbar/lazy-capture-outputs.d.ts +2 -0
- package/dist/lib/capture-toolbar/outputs-encode.d.ts +25 -0
- package/dist/lib/capture-toolbar/outputs.d.ts +38 -0
- package/dist/lib/capture-toolbar/partials/capture-editor.d.ts +11 -0
- package/dist/lib/capture-toolbar/partials/capture-outputs.d.ts +16 -0
- package/dist/lib/capture-toolbar/region-overlay.d.ts +15 -0
- package/dist/lib/capture-toolbar/screen-capture-toolbar.d.ts +31 -0
- package/dist/lib/capture-toolbar/types.d.ts +117 -0
- package/dist/lib/capture-toolbar/use-screen-capture.d.ts +16 -0
- package/dist/lib/components/ui/layout/account-frame/account-frame.d.ts +2 -2
- package/dist/lib/components/ui/media/attachment-list/attachment-list.d.ts +2 -2
- package/dist/lib/components/ui/media/image-editor/image-markup-editor.d.ts +11 -3
- package/dist/lib/components/ui/media/image-editor/types-edits.d.ts +7 -0
- package/dist/lib/components/ui/media/image-editor/types-session.d.ts +1 -1
- package/dist/lib/components/ui/media/image-editor/types.d.ts +8 -0
- package/dist/lib/embed/index.d.ts +6 -1
- package/dist/lib/i18n/resources/resources.d.ts +108 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/image-editor/index.d.ts +1 -1
- package/dist/lib.js +38 -56
- package/dist/{list-sheet-D22J9I-K.js → list-sheet-CejfrKJr.js} +1 -1
- package/dist/{loading-indicator-sDzxZg8f.js → loading-indicator-BBjOF25N.js} +1 -1
- package/dist/main.js +103 -98
- package/dist/{map-draw-DfbfT0eJ.js → map-draw-DyRy9SSV.js} +2 -2
- package/dist/map-draw.js +5 -5
- package/dist/map-static.js +1 -1
- package/dist/{map-view-DAx2zvV-.js → map-view-YfuYD3zS.js} +9 -9
- package/dist/map-zone-events.js +1 -1
- package/dist/map-zone-field.js +7 -7
- package/dist/map.js +10 -10
- package/dist/{marker-button-D7hEvEZD.js → marker-button-CXBaToHp.js} +1 -1
- package/dist/{marker-count-image-CWS3G-k8.js → marker-count-image-DHuzSev9.js} +1 -1
- package/dist/material.css +1 -1
- package/dist/{measure-manual-Bfvu8B_R.js → measure-manual-CcESmV1d.js} +3 -3
- package/dist/{measurement-B-OeWv7j.js → measurement-D2or6yM_.js} +1 -1
- package/dist/{media-player-DGXmWK7W.js → media-player-qW9RXFuO.js} +451 -567
- package/dist/{media-player-viewer-C3vXYcd8.js → media-player-viewer-DozPiF6T.js} +2 -2
- package/dist/{media-surface-BySonDjv.js → media-surface-BJsdNynm.js} +6 -6
- package/dist/{mention-list-BpoZHwO6.js → mention-list-z1wnlJgs.js} +2 -2
- package/dist/{native-select-Dg4bc7aC.js → native-select-BnDOVnER.js} +1 -1
- package/dist/{nxgt-theme-Ob-uFqU_.js → nxgt-theme-EYZ5aFHi.js} +6 -15
- package/dist/nxgt-theme-provider-BPXd3h82.js +40 -0
- package/dist/outputs-DF-aVqUO.js +81 -0
- package/dist/passkey.js +1 -1
- package/dist/{pdf-form-filler-DgH52W2Q.js → pdf-form-filler-Ct4eexhZ.js} +34 -34
- package/dist/pdf-form.js +2 -2
- package/dist/{pdf-reader-Bilz5foK.js → pdf-reader-khpMMEjU.js} +16 -16
- package/dist/{pdf-reader-viewer-DwQP2IpV.js → pdf-reader-viewer-B3_TdFOn.js} +2 -2
- package/dist/pdf-reader.js +2 -2
- package/dist/{percent-field-Ldc7K2wC.js → percent-field-Bu-PmCNR.js} +2 -2
- package/dist/{picker-surface-DZQbBgvA.js → picker-surface-THexE1OU.js} +3 -3
- package/dist/{popover-DwsaHFrK.js → popover-osl5duoA.js} +1 -1
- package/dist/portal-container-provider-fZFUk-ZB.js +11 -0
- package/dist/{pos-types-CKDG7pZA.js → pos-types-BPPae99i.js} +1 -1
- package/dist/{pos-variant-9nhz-ZzW.js → pos-variant-D6bDUqwV.js} +4 -4
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-BzwfeMGC.js → programmer-variant-CDlFE24o.js} +2 -2
- package/dist/{progress-BBfp7sMi.js → progress-DjHnanxA.js} +2 -2
- package/dist/{progress-linear-BOJbHnzd.js → progress-linear-CTJ_U6kY.js} +1 -1
- package/dist/{public-I8nb8pCC.js → public-u9u2Osmx.js} +6 -6
- package/dist/{rendition-stage-A1nHXYrA.js → rendition-stage-BXjQpfKK.js} +2 -2
- package/dist/{rich-code-block-BJERY3N3.js → rich-code-block-DWSzyQRw.js} +5 -5
- package/dist/{scientific-variant-st2NBm1K.js → scientific-variant-DCgApH87.js} +2 -2
- package/dist/{scroll-area-B3XstZU2.js → scroll-area-BxKiT4Dn.js} +155 -164
- package/dist/{search-field-D3AOJr7s.js → search-field-Cgqa2bQf.js} +2 -2
- package/dist/{select-DhfzCkun.js → select-BGhRlBh4.js} +166 -179
- package/dist/{sheet-B8cO1T5K.js → sheet-BvNVroog.js} +1 -1
- package/dist/{signature-dialog-BNLMPgao.js → signature-dialog-x--_QWRB.js} +5 -5
- package/dist/signature.js +1 -1
- package/dist/{site-footer-cta-Cx7zsvkq.js → site-footer-cta-B3Kfqpep.js} +4 -4
- package/dist/{site-footer-link-Di8IMIw0.js → site-footer-link-SFHrO4ld.js} +1 -1
- package/dist/{size-slot-D1cKqb09.js → size-slot-Cb-W2Zm4.js} +1 -1
- package/dist/{sortable-provider-DrLnoygf.js → sortable-provider-KRScvvYx.js} +2 -2
- package/dist/{spinner-BpH9tE8R.js → spinner-DpB6XvJJ.js} +1 -1
- package/dist/switch-c_6OtXzW.js +125 -0
- package/dist/{tabs-root-BUnIfDah.js → tabs-root-C2n3K_Yv.js} +1 -1
- package/dist/{tags-form-BwqR4UVj.js → tags-form-BKB9fP03.js} +5 -5
- package/dist/{text-field-CFCHo07X.js → text-field-Dl7xTxZe.js} +2 -2
- package/dist/{textarea-B_iMDYgM.js → textarea-C3BGZELU.js} +1 -1
- package/dist/{textarea-field-DIOGxyUd.js → textarea-field-mqWhhbis.js} +2 -2
- package/dist/theme-picker.js +5 -4
- package/dist/{theme-toggle-CsBe64lm.js → theme-toggle-K-n5eq0T.js} +3 -3
- package/dist/theme-value-CD2nDrj_.js +12 -0
- package/dist/themes.js +15 -48
- package/dist/{toasts-McZnLRHP.js → toasts-DFLecXh0.js} +5 -5
- package/dist/{toggle-group-DKN1XLBS.js → toggle-group-DMDjNJWx.js} +1 -1
- package/dist/{toolbar-group-BmzGP_JO.js → toolbar-group-bttMdvg4.js} +1 -1
- package/dist/{toolbar-item-slot-BnqQLkVd.js → toolbar-item-slot-CBn3YjeE.js} +1 -1
- package/dist/{toolbar-items-C9uasXZ2.js → toolbar-items-zL5TYLf2.js} +4 -4
- package/dist/{toolbar-keep-focus-Vc5V-dX2.js → toolbar-keep-focus-C6bnzvpE.js} +2 -2
- package/dist/{tracked-layer-CjCXB_O6.js → tracked-layer-CYdLWRK-.js} +4 -4
- package/dist/{translate-material-C-qVvGLn.js → translate-material-DZNgWjYu.js} +1 -1
- package/dist/{translator-BrzI307E.js → translator-CrIFDzAz.js} +110 -2
- package/dist/{tree-DOAs456A.js → tree-CFXDccIe.js} +1 -1
- package/dist/{upload-host-ZpSSql8v.js → upload-host-DDktVohu.js} +9 -8
- package/dist/{use-calculator-keyboard-Ss25SRoM.js → use-calculator-keyboard-BWkYuIw5.js} +1 -1
- package/dist/{use-chat-composer-DopDN-zP.js → use-chat-composer-C1Qlnw2i.js} +20 -20
- package/dist/{use-file-meta-DyJX0JVs.js → use-file-meta-DcfQCh52.js} +1 -1
- package/dist/{use-heading-spy-CA2IAqMe.js → use-heading-spy-B9xEMHbZ.js} +2 -2
- package/dist/use-image-preview-BNq_RQm5.js +20 -0
- package/dist/{use-item-entries-CYbS5otl.js → use-item-entries-BKQHcWFx.js} +1 -1
- package/dist/{use-material-translation-eYySryw3.js → use-material-translation-ZEUtduro.js} +1 -1
- package/dist/{use-media-viewer-DoNdrzhN.js → use-media-viewer-DViJNx75.js} +1 -1
- package/dist/{use-text-preview-BQE4U9cT.js → use-text-preview-Ci97JKKo.js} +2 -2
- package/dist/{use-unsaved-guard-CSfDvdxd.js → use-unsaved-guard-CWlHEvjN.js} +2 -2
- package/dist/{viewer-CXF1dAv0.js → viewer-DDPJOxBt.js} +5 -5
- package/dist/{viewer-stage-class-CpyA8o-M.js → viewer-stage-class-DJ1uod4l.js} +4 -4
- package/dist/{viewer-states-BXyCdNhE.js → viewer-states-DkaPBkK4.js} +3 -3
- package/dist/{virtual-layer-rows-DHy8vAup.js → virtual-layer-rows-DKejQ_Jd.js} +1 -1
- package/dist/visible-B-IFZ4Nv.js +475 -0
- package/docs/components/media-and-files.md +1 -1
- package/docs/components/navigation-and-layout.md +2 -2
- package/docs/guides/capture.md +248 -0
- package/docs/guides/csp.md +1 -1
- package/docs/guides/embed.md +94 -2
- package/docs/roadmap.md +2 -1
- package/docs/troubleshooting.md +56 -0
- package/package.json +18 -1
- package/dist/embed-chunks/bubble-input-yXAeW84_.js +0 -29
- package/dist/embed-chunks/switch-control-ChcowM3u.js +0 -181
- package/dist/fab-dock-DqwbI-5n.js +0 -86
- package/dist/input-BaBE_MR_.js +0 -27
- /package/dist/{dist-B1qFabLJ.js → dist-B1qFabLJ2.js} +0 -0
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { b as e, c as t, f as n, m as r, p as i, u as a } from "./use-shape-morph-NrJQMv7i.js";
|
|
2
|
-
import { n as o } from "./is-production-Cx8oURag.js";
|
|
3
|
-
import { t as s } from "./bubble-input-yXAeW84_.js";
|
|
4
|
-
import * as c from "react";
|
|
5
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
-
//#region ../../node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
7
|
-
var d = Object.defineProperty, f = (e, t) => d(e, "name", {
|
|
8
|
-
value: t,
|
|
9
|
-
configurable: !0
|
|
10
|
-
}), p = "Switch", [m, h] = i(p), [g, _] = m(p);
|
|
11
|
-
function v(e) {
|
|
12
|
-
let { __scopeSwitch: t, checked: n, children: r, defaultChecked: i, disabled: o, form: s, name: u, onCheckedChange: d, required: f, value: m = "on", internal_do_not_use_render: h } = e, [_, v] = a({
|
|
13
|
-
prop: n,
|
|
14
|
-
defaultProp: i ?? !1,
|
|
15
|
-
onChange: d,
|
|
16
|
-
caller: p
|
|
17
|
-
}), [y, b] = c.useState(null), [x, S] = c.useState(null), C = c.useRef(!1), [w, E] = c.useReducer((e) => e + 1, 0), D = {
|
|
18
|
-
checked: _,
|
|
19
|
-
setChecked: v,
|
|
20
|
-
disabled: o,
|
|
21
|
-
control: y,
|
|
22
|
-
setControl: b,
|
|
23
|
-
name: u,
|
|
24
|
-
form: s,
|
|
25
|
-
value: m,
|
|
26
|
-
hasConsumerStoppedPropagationRef: C,
|
|
27
|
-
userInteractionCount: w,
|
|
28
|
-
onUserInteraction: E,
|
|
29
|
-
required: f,
|
|
30
|
-
defaultChecked: i,
|
|
31
|
-
isFormControl: !y || !!s || !!y.closest("form"),
|
|
32
|
-
bubbleInput: x,
|
|
33
|
-
setBubbleInput: S
|
|
34
|
-
};
|
|
35
|
-
return /* @__PURE__ */ l(g, {
|
|
36
|
-
scope: t,
|
|
37
|
-
...D,
|
|
38
|
-
children: T(h) ? h(D) : r
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
f(v, "SwitchProvider");
|
|
42
|
-
var y = "SwitchTrigger", b = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ f(function({ __scopeSwitch: t, onClick: i, ...a }, o) {
|
|
43
|
-
let { control: s, form: u, value: d, disabled: p, checked: m, required: h, setControl: g, setChecked: v, hasConsumerStoppedPropagationRef: b, onUserInteraction: x, isFormControl: S, bubbleInput: C } = _(y, t), w = e(o, g), T = c.useRef(m);
|
|
44
|
-
return c.useEffect(() => {
|
|
45
|
-
let e = u ? s?.ownerDocument.getElementById(u) : s?.form;
|
|
46
|
-
if (e instanceof HTMLFormElement) {
|
|
47
|
-
let t = /* @__PURE__ */ f(() => v(T.current), "reset");
|
|
48
|
-
return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
|
|
49
|
-
}
|
|
50
|
-
}, [
|
|
51
|
-
s,
|
|
52
|
-
u,
|
|
53
|
-
v
|
|
54
|
-
]), /* @__PURE__ */ l(r.button, {
|
|
55
|
-
type: "button",
|
|
56
|
-
role: "switch",
|
|
57
|
-
"aria-checked": m,
|
|
58
|
-
"aria-required": h,
|
|
59
|
-
"data-state": E(m),
|
|
60
|
-
"data-disabled": p ? "" : void 0,
|
|
61
|
-
disabled: p,
|
|
62
|
-
value: d,
|
|
63
|
-
...a,
|
|
64
|
-
ref: w,
|
|
65
|
-
onClick: n(i, (e) => {
|
|
66
|
-
x(), v((e) => !e), C && S && (b.current = e.isPropagationStopped(), b.current || e.stopPropagation());
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
}, "SwitchTrigger")), x = "SwitchThumb", S = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ f(function(e, t) {
|
|
70
|
-
let { __scopeSwitch: n, ...i } = e, a = _(x, n);
|
|
71
|
-
return /* @__PURE__ */ l(r.span, {
|
|
72
|
-
"data-state": E(a.checked),
|
|
73
|
-
"data-disabled": a.disabled ? "" : void 0,
|
|
74
|
-
...i,
|
|
75
|
-
ref: t
|
|
76
|
-
});
|
|
77
|
-
}, "SwitchThumb")), C = "SwitchBubbleInput", w = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ f(function({ __scopeSwitch: i, onClick: a, ...o }, s) {
|
|
78
|
-
let { control: u, hasConsumerStoppedPropagationRef: d, userInteractionCount: f, checked: p, defaultChecked: m, required: h, disabled: g, name: v, value: y, form: b, bubbleInput: x, setBubbleInput: S } = _(C, i), w = e(s, S), T = t(u), E = c.useRef(!1), D = c.useRef(p), O = c.useRef(f);
|
|
79
|
-
c.useEffect(() => {
|
|
80
|
-
let e = x;
|
|
81
|
-
if (!e) return;
|
|
82
|
-
let t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "checked").set, r = f !== O.current;
|
|
83
|
-
O.current = f;
|
|
84
|
-
let i = D.current !== p;
|
|
85
|
-
D.current = p;
|
|
86
|
-
let a = !(r && d.current);
|
|
87
|
-
if (i && n) {
|
|
88
|
-
E.current = !r;
|
|
89
|
-
let t = new Event("click", { bubbles: a });
|
|
90
|
-
n.call(e, p), e.dispatchEvent(t), E.current = !1;
|
|
91
|
-
}
|
|
92
|
-
}, [
|
|
93
|
-
x,
|
|
94
|
-
p,
|
|
95
|
-
d,
|
|
96
|
-
f
|
|
97
|
-
]);
|
|
98
|
-
let k = c.useRef(p);
|
|
99
|
-
return /* @__PURE__ */ l(r.input, {
|
|
100
|
-
type: "checkbox",
|
|
101
|
-
"aria-hidden": !0,
|
|
102
|
-
defaultChecked: m ?? k.current,
|
|
103
|
-
required: h,
|
|
104
|
-
disabled: g,
|
|
105
|
-
name: v,
|
|
106
|
-
value: y,
|
|
107
|
-
form: b,
|
|
108
|
-
...o,
|
|
109
|
-
tabIndex: -1,
|
|
110
|
-
ref: w,
|
|
111
|
-
onClick: n(a, (e) => {
|
|
112
|
-
E.current && e.stopPropagation();
|
|
113
|
-
}),
|
|
114
|
-
style: {
|
|
115
|
-
...o.style,
|
|
116
|
-
...T,
|
|
117
|
-
position: "absolute",
|
|
118
|
-
pointerEvents: "none",
|
|
119
|
-
opacity: 0,
|
|
120
|
-
margin: 0,
|
|
121
|
-
transform: "translateX(-100%)"
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}, "SwitchBubbleInput"));
|
|
125
|
-
function T(e) {
|
|
126
|
-
return typeof e == "function";
|
|
127
|
-
}
|
|
128
|
-
f(T, "isFunction");
|
|
129
|
-
function E(e) {
|
|
130
|
-
return e ? "checked" : "unchecked";
|
|
131
|
-
}
|
|
132
|
-
f(E, "getState");
|
|
133
|
-
//#endregion
|
|
134
|
-
//#region lib/components/ui/fields/switch/partials/switch-control.tsx
|
|
135
|
-
function D({ className: e, checked: t, defaultChecked: n, required: r, onCheckedChange: i, name: a, form: c, disabled: d, value: f, thumbIcons: p = !1, readOnly: m, ...h }) {
|
|
136
|
-
let g = /* @__PURE__ */ l(b, {
|
|
137
|
-
"data-slot": "switch",
|
|
138
|
-
"data-thumb-icons": p,
|
|
139
|
-
"aria-readonly": m || void 0,
|
|
140
|
-
"data-readonly": m || void 0,
|
|
141
|
-
className: o("nxgt-switch peer nxgt-touch-target inline-flex h-8 w-[3.25rem] shrink-0 items-center rounded-full shadow-xs outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 forced-colors:focus-visible:outline-solid forced-colors:focus-visible:outline-2 forced-colors:focus-visible:outline-offset-2 forced-colors:focus-visible:outline-[Highlight] disabled:cursor-not-allowed disabled:opacity-50 data-readonly:cursor-default", e),
|
|
142
|
-
"data-pw": a ?? "switch",
|
|
143
|
-
...h,
|
|
144
|
-
children: /* @__PURE__ */ u(S, {
|
|
145
|
-
"data-slot": "switch-thumb",
|
|
146
|
-
"data-nxgt-state-layer": "",
|
|
147
|
-
className: "nxgt-switch-thumb pointer-events-none",
|
|
148
|
-
"data-pw": a ? `${a}-thumb` : "switch-thumb",
|
|
149
|
-
children: [p ? /* @__PURE__ */ l("svg", {
|
|
150
|
-
className: "nxgt-switch-icon nxgt-switch-x",
|
|
151
|
-
viewBox: "0 0 24 24",
|
|
152
|
-
"aria-hidden": "true",
|
|
153
|
-
focusable: "false",
|
|
154
|
-
children: /* @__PURE__ */ l("path", { d: "M7 7l10 10M17 7L7 17" })
|
|
155
|
-
}) : null, /* @__PURE__ */ l("svg", {
|
|
156
|
-
className: "nxgt-switch-icon",
|
|
157
|
-
viewBox: "0 0 24 24",
|
|
158
|
-
"aria-hidden": "true",
|
|
159
|
-
focusable: "false",
|
|
160
|
-
children: /* @__PURE__ */ l("path", {
|
|
161
|
-
className: "nxgt-switch-check",
|
|
162
|
-
d: "M5.5 12.5l4.2 4.2L18.5 7.5",
|
|
163
|
-
pathLength: 1
|
|
164
|
-
})
|
|
165
|
-
})]
|
|
166
|
-
})
|
|
167
|
-
});
|
|
168
|
-
return /* @__PURE__ */ l(v, {
|
|
169
|
-
checked: m ? t ?? n ?? !1 : t,
|
|
170
|
-
defaultChecked: m ? void 0 : n,
|
|
171
|
-
required: r,
|
|
172
|
-
onCheckedChange: m ? void 0 : i,
|
|
173
|
-
name: a,
|
|
174
|
-
form: c,
|
|
175
|
-
disabled: d,
|
|
176
|
-
value: f,
|
|
177
|
-
...s(g, /* @__PURE__ */ l(w, {}))
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
//#endregion
|
|
181
|
-
export { D as t };
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { n as t, t as n } from "./dist-DVRQkaTK.js";
|
|
3
|
-
import { t as r } from "./fab-icon-BRG_oyGh.js";
|
|
4
|
-
import { useEffect as i, useRef as a, useState as o } from "react";
|
|
5
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
-
//#region lib/components/ui/actions/fab/fab.tsx
|
|
7
|
-
var l = ["tonal", "filled"], u = [
|
|
8
|
-
"primary",
|
|
9
|
-
"secondary",
|
|
10
|
-
"neutral"
|
|
11
|
-
];
|
|
12
|
-
function d({ icon: i, label: a, extended: l, collapsed: u, size: d = "md", variant: f = "tonal", tone: p = "primary", attention: m, asChild: h = !1, children: g, className: _, type: v = "button", ...y }) {
|
|
13
|
-
let b = h ? n : "button", x = !l || u, [S, C] = o(m), [w, T] = o();
|
|
14
|
-
return m !== S && (C(m), m !== void 0 && T(w === "a" ? "b" : "a")), /* @__PURE__ */ c(b, {
|
|
15
|
-
type: h ? void 0 : v,
|
|
16
|
-
"data-slot": "fab",
|
|
17
|
-
"data-size": d,
|
|
18
|
-
"data-variant": f,
|
|
19
|
-
"data-tone": p,
|
|
20
|
-
"data-extended": l ? "" : void 0,
|
|
21
|
-
"data-collapsed": l && u ? "" : void 0,
|
|
22
|
-
"data-attention": w,
|
|
23
|
-
"aria-label": x ? a : void 0,
|
|
24
|
-
className: e("nxgt-fab", _),
|
|
25
|
-
...y,
|
|
26
|
-
children: [
|
|
27
|
-
h ? /* @__PURE__ */ s(t, { children: g }) : null,
|
|
28
|
-
/* @__PURE__ */ s(r, { icon: i }),
|
|
29
|
-
l ? /* @__PURE__ */ s("span", {
|
|
30
|
-
"data-slot": "fab-label-track",
|
|
31
|
-
children: /* @__PURE__ */ s("span", {
|
|
32
|
-
"data-slot": "fab-label",
|
|
33
|
-
"aria-hidden": u || void 0,
|
|
34
|
-
children: a
|
|
35
|
-
})
|
|
36
|
-
}) : null
|
|
37
|
-
]
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region lib/components/ui/actions/fab/fab-dock-inset.ts
|
|
42
|
-
var f = "--fab-dock-inset", p = 12, m = /* @__PURE__ */ new WeakMap();
|
|
43
|
-
function h(e) {
|
|
44
|
-
let t = m.get(e);
|
|
45
|
-
if (!t?.size) return e.style.removeProperty(f);
|
|
46
|
-
e.style.setProperty(f, `${Math.max(...t.values())}px`);
|
|
47
|
-
}
|
|
48
|
-
function g(e, t, n, r, i) {
|
|
49
|
-
let a = Symbol("fab-dock"), o = m.get(t) ?? /* @__PURE__ */ new Map();
|
|
50
|
-
m.set(t, o);
|
|
51
|
-
let s = () => {
|
|
52
|
-
let r = e.offsetHeight;
|
|
53
|
-
if (!r) o.delete(a);
|
|
54
|
-
else {
|
|
55
|
-
let e = Number.parseFloat(n()) || 0;
|
|
56
|
-
o.set(a, Math.ceil(e + r + p));
|
|
57
|
-
}
|
|
58
|
-
h(t);
|
|
59
|
-
};
|
|
60
|
-
s();
|
|
61
|
-
let c = i ? new i(s) : void 0;
|
|
62
|
-
return c?.observe(e), r?.addEventListener("resize", s), () => {
|
|
63
|
-
c?.disconnect(), r?.removeEventListener("resize", s), o.delete(a), h(t);
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region lib/components/ui/actions/fab/fab-dock.tsx
|
|
68
|
-
function _({ contained: t, scrolling: n, side: r = "end", className: o, ref: c, ...l }) {
|
|
69
|
-
let u = a(null);
|
|
70
|
-
return i(() => {
|
|
71
|
-
let e = u.current;
|
|
72
|
-
if (!(t || n || !e)) return g(e, document.documentElement, () => getComputedStyle(e).insetBlockEnd, window, typeof ResizeObserver > "u" ? void 0 : ResizeObserver);
|
|
73
|
-
}, [t, n]), /* @__PURE__ */ s("div", {
|
|
74
|
-
ref: (e) => {
|
|
75
|
-
u.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
76
|
-
},
|
|
77
|
-
"data-slot": "fab-dock",
|
|
78
|
-
"data-contained": t || n ? "" : void 0,
|
|
79
|
-
"data-scrolling": n ? "" : void 0,
|
|
80
|
-
"data-side": r,
|
|
81
|
-
className: e("nxgt-fab-dock", o),
|
|
82
|
-
...l
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
//#endregion
|
|
86
|
-
export { d as i, u as n, l as r, _ as t };
|
package/dist/input-BaBE_MR_.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { n as t, t as n } from "./blank-placeholder-DeDn5Xor.js";
|
|
3
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
-
//#region lib/components/ui/primitives/input/input-box.ts
|
|
5
|
-
var i = "selection:bg-primary selection:text-primary-foreground", a = [
|
|
6
|
-
"inline-flex gap-2 items-center h-11 max-h-full w-full min-w-0",
|
|
7
|
-
"px-2 py-1 text-base md:text-sm outline-none",
|
|
8
|
-
"placeholder:text-muted-foreground",
|
|
9
|
-
"file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-muted-foreground",
|
|
10
|
-
"disabled:pointer-events-none"
|
|
11
|
-
], o = [
|
|
12
|
-
...a,
|
|
13
|
-
i,
|
|
14
|
-
t
|
|
15
|
-
], s = [...a, t], c = o;
|
|
16
|
-
function l({ className: t, type: i = "text", ...a }) {
|
|
17
|
-
return /* @__PURE__ */ r("input", {
|
|
18
|
-
type: i,
|
|
19
|
-
"data-slot": "input",
|
|
20
|
-
className: e(c, t),
|
|
21
|
-
"data-pw": a.name ?? "input",
|
|
22
|
-
...a,
|
|
23
|
-
placeholder: n(a.placeholder, i)
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { s as i, c as n, o as r, l as t };
|
|
File without changes
|