@sprawlify/solid 0.0.18 → 0.0.20
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/accordion-anatomy-LuKj41ZJ.d.ts +2 -0
- package/dist/accordion-anatomy-o_xoA0Gf.js +3 -0
- package/dist/angle-slider-anatomy-BD5b55Bt.d.ts +2 -0
- package/dist/angle-slider-anatomy-wS0r05BJ.js +3 -0
- package/dist/avatar-anatomy-CSxGcJN_.js +3 -0
- package/dist/avatar-anatomy-DLMajwZs.d.ts +2 -0
- package/dist/bottom-sheet-anatomy-3kADPmIs.js +3 -0
- package/dist/bottom-sheet-anatomy-BCF96W4Y.d.ts +2 -0
- package/dist/carousel-anatomy-BQWRlsZA.d.ts +6 -0
- package/dist/carousel-anatomy-qgnwv0TQ.js +7 -0
- package/dist/checkbox-anatomy-C0imZUAW.d.ts +6 -0
- package/dist/checkbox-anatomy-D0IYQC5y.js +7 -0
- package/dist/clipboard-anatomy-DIutBwme.d.ts +2 -0
- package/dist/clipboard-anatomy-bgEYg52s.js +3 -0
- package/dist/{collapsible-BT7AHLQr.js → collapsible-D_07zDrL.js} +9 -10
- package/dist/collapsible-anatomy-BnKium1r.d.ts +2 -0
- package/dist/collapsible-anatomy-DWYi0ZA_.js +3 -0
- package/dist/{collapsible-14K1NkX_.jsx → collapsible-hi2814tq.jsx} +8 -8
- package/dist/{collection-CIXQG-Ne.jsx → collection--IEeSstQ.jsx} +2 -2
- package/dist/{collection-BVSLJ8Vb.js → collection--s4jM1D5.js} +2 -2
- package/dist/color-picker-anatomy-BpZRoIAN.js +7 -0
- package/dist/color-picker-anatomy-C_D7Q3pP.d.ts +6 -0
- package/dist/combobox-anatomy-D4OuryoU.d.ts +6 -0
- package/dist/combobox-anatomy-DvY6g9hK.js +7 -0
- package/dist/components/accordion/index.d.ts +13 -12
- package/dist/components/accordion/index.js +10 -10
- package/dist/components/accordion/index.jsx +9 -9
- package/dist/components/anatomy.d.ts +51 -0
- package/dist/components/anatomy.js +53 -0
- package/dist/components/angle-slider/index.d.ts +15 -14
- package/dist/components/angle-slider/index.js +8 -8
- package/dist/components/angle-slider/index.jsx +7 -7
- package/dist/components/avatar/index.d.ts +10 -9
- package/dist/components/avatar/index.js +8 -8
- package/dist/components/avatar/index.jsx +7 -7
- package/dist/components/bottom-sheet/index.d.ts +15 -14
- package/dist/components/bottom-sheet/index.js +11 -11
- package/dist/components/bottom-sheet/index.jsx +10 -10
- package/dist/components/carousel/index.d.ts +16 -19
- package/dist/components/carousel/index.js +8 -12
- package/dist/components/carousel/index.jsx +7 -7
- package/dist/components/checkbox/index.d.ts +13 -16
- package/dist/components/checkbox/index.js +13 -15
- package/dist/components/checkbox/index.jsx +10 -10
- package/dist/components/clipboard/index.d.ts +13 -12
- package/dist/components/clipboard/index.js +8 -8
- package/dist/components/clipboard/index.jsx +7 -7
- package/dist/components/collapsible/index.d.ts +12 -11
- package/dist/components/collapsible/index.js +8 -7
- package/dist/components/collapsible/index.jsx +7 -7
- package/dist/components/collection/index.d.ts +2 -2
- package/dist/components/collection/index.js +2 -2
- package/dist/components/collection/index.jsx +2 -2
- package/dist/components/color-picker/index.d.ts +35 -38
- package/dist/components/color-picker/index.js +16 -17
- package/dist/components/color-picker/index.jsx +12 -12
- package/dist/components/combobox/index.d.ts +22 -25
- package/dist/components/combobox/index.js +16 -18
- package/dist/components/combobox/index.jsx +13 -13
- package/dist/components/date-picker/index.d.ts +32 -35
- package/dist/components/date-picker/index.js +12 -15
- package/dist/components/date-picker/index.jsx +10 -10
- package/dist/components/dialog/index.d.ts +15 -14
- package/dist/components/dialog/index.js +11 -11
- package/dist/components/dialog/index.jsx +10 -10
- package/dist/components/download-trigger/index.d.ts +2 -2
- package/dist/components/download-trigger/index.js +4 -4
- package/dist/components/download-trigger/index.jsx +4 -4
- package/dist/components/editable/index.d.ts +16 -15
- package/dist/components/editable/index.js +13 -11
- package/dist/components/editable/index.jsx +10 -10
- package/dist/components/field/index.d.ts +14 -17
- package/dist/components/field/index.js +10 -8
- package/dist/components/field/index.jsx +8 -8
- package/dist/components/fieldset/index.d.ts +11 -14
- package/dist/components/fieldset/index.js +8 -7
- package/dist/components/fieldset/index.jsx +7 -7
- package/dist/components/file-upload/index.d.ts +20 -19
- package/dist/components/file-upload/index.js +13 -11
- package/dist/components/file-upload/index.jsx +10 -10
- package/dist/components/floating-panel/index.d.ts +19 -18
- package/dist/components/floating-panel/index.js +11 -11
- package/dist/components/floating-panel/index.jsx +10 -10
- package/dist/components/focus-trap/index.d.ts +4 -4
- package/dist/components/focus-trap/index.js +4 -4
- package/dist/components/focus-trap/index.jsx +4 -4
- package/dist/components/format/index.d.ts +4 -4
- package/dist/components/format/index.js +3 -3
- package/dist/components/format/index.jsx +3 -3
- package/dist/components/frame/index.d.ts +1 -1
- package/dist/components/frame/index.js +3 -3
- package/dist/components/frame/index.jsx +3 -3
- package/dist/components/highlight/index.d.ts +3 -3
- package/dist/components/highlight/index.js +2 -2
- package/dist/components/highlight/index.jsx +2 -2
- package/dist/components/hover-card/index.d.ts +13 -12
- package/dist/components/hover-card/index.js +11 -11
- package/dist/components/hover-card/index.jsx +10 -10
- package/dist/components/image-cropper/index.d.ts +13 -12
- package/dist/components/image-cropper/index.js +9 -8
- package/dist/components/image-cropper/index.jsx +7 -7
- package/dist/components/json-tree-view/index.d.ts +6 -6
- package/dist/components/json-tree-view/index.js +10 -10
- package/dist/components/json-tree-view/index.jsx +10 -10
- package/dist/components/listbox/index.d.ts +17 -20
- package/dist/components/listbox/index.js +9 -13
- package/dist/components/listbox/index.jsx +8 -8
- package/dist/components/marquee/index.d.ts +11 -10
- package/dist/components/marquee/index.js +8 -8
- package/dist/components/marquee/index.jsx +7 -7
- package/dist/components/menu/index.d.ts +27 -26
- package/dist/components/menu/index.js +11 -11
- package/dist/components/menu/index.jsx +10 -10
- package/dist/components/navigation-menu/index.d.ts +19 -18
- package/dist/components/navigation-menu/index.js +11 -11
- package/dist/components/navigation-menu/index.jsx +10 -10
- package/dist/components/number-input/index.d.ts +15 -14
- package/dist/components/number-input/index.js +13 -11
- package/dist/components/number-input/index.jsx +10 -10
- package/dist/components/pagination/index.d.ts +14 -13
- package/dist/components/pagination/index.js +8 -8
- package/dist/components/pagination/index.jsx +7 -7
- package/dist/components/password-input/index.d.ts +11 -10
- package/dist/components/password-input/index.js +13 -11
- package/dist/components/password-input/index.jsx +10 -10
- package/dist/components/pin-input/index.d.ts +12 -11
- package/dist/components/pin-input/index.js +13 -11
- package/dist/components/pin-input/index.jsx +10 -10
- package/dist/components/popover/index.d.ts +18 -17
- package/dist/components/popover/index.js +11 -11
- package/dist/components/popover/index.jsx +10 -10
- package/dist/components/presence/index.d.ts +4 -4
- package/dist/components/presence/index.js +7 -7
- package/dist/components/presence/index.jsx +7 -7
- package/dist/components/progress/index.d.ts +80 -0
- package/dist/components/progress/index.js +163 -0
- package/dist/components/progress/index.jsx +154 -0
- package/dist/components/qr-code/index.d.ts +60 -0
- package/dist/components/qr-code/index.js +124 -0
- package/dist/components/qr-code/index.jsx +117 -0
- package/dist/components/radio-group/index.d.ts +79 -0
- package/dist/components/radio-group/index.js +190 -0
- package/dist/components/radio-group/index.jsx +176 -0
- package/dist/components/rating-group/index.d.ts +69 -0
- package/dist/components/rating-group/index.js +161 -0
- package/dist/components/rating-group/index.jsx +148 -0
- package/dist/components/scroll-area/index.d.ts +64 -0
- package/dist/components/scroll-area/index.js +134 -0
- package/dist/components/scroll-area/index.jsx +124 -0
- package/dist/components/segment-group/index.d.ts +79 -0
- package/dist/components/segment-group/index.js +180 -0
- package/dist/components/segment-group/index.jsx +172 -0
- package/dist/components/select/index.d.ts +24 -23
- package/dist/components/select/index.js +16 -14
- package/dist/components/select/index.jsx +13 -13
- package/dist/components/signature-pad/index.d.ts +70 -0
- package/dist/components/signature-pad/index.js +185 -0
- package/dist/components/signature-pad/index.jsx +156 -0
- package/dist/components/slider/index.d.ts +90 -0
- package/dist/components/slider/index.js +210 -0
- package/dist/components/slider/index.jsx +196 -0
- package/dist/components/splitter/index.d.ts +55 -0
- package/dist/components/splitter/index.js +133 -0
- package/dist/components/splitter/index.jsx +122 -0
- package/dist/components/steps/index.d.ts +102 -0
- package/dist/components/steps/index.js +218 -0
- package/dist/components/steps/index.jsx +203 -0
- package/dist/components/switch/index.d.ts +60 -0
- package/dist/components/switch/index.js +142 -0
- package/dist/components/switch/index.jsx +131 -0
- package/dist/components/tabs/index.d.ts +61 -0
- package/dist/components/tabs/index.js +161 -0
- package/dist/components/tabs/index.jsx +137 -0
- package/dist/components/tags-input/index.d.ts +99 -0
- package/dist/components/tags-input/index.js +251 -0
- package/dist/components/tags-input/index.jsx +234 -0
- package/dist/components/timer/index.d.ts +65 -0
- package/dist/components/timer/index.js +132 -0
- package/dist/components/timer/index.jsx +123 -0
- package/dist/components/toast/index.d.ts +63 -0
- package/dist/components/toast/index.js +134 -0
- package/dist/components/toast/index.jsx +118 -0
- package/dist/components/toggle/index.d.ts +38 -0
- package/dist/components/toggle/index.js +81 -0
- package/dist/components/toggle/index.jsx +71 -0
- package/dist/components/toggle-group/index.d.ts +45 -0
- package/dist/components/toggle-group/index.js +97 -0
- package/dist/components/toggle-group/index.jsx +90 -0
- package/dist/components/tooltip/index.d.ts +71 -0
- package/dist/components/tooltip/index.js +171 -0
- package/dist/components/tooltip/index.jsx +139 -0
- package/dist/components/tour/index.d.ts +106 -0
- package/dist/components/tour/index.js +258 -0
- package/dist/components/tour/index.jsx +196 -0
- package/dist/components/tree-view/index.d.ts +7 -6
- package/dist/components/tree-view/index.js +10 -9
- package/dist/components/tree-view/index.jsx +9 -9
- package/dist/date-picker-anatomy-DAOTTYvh.d.ts +6 -0
- package/dist/date-picker-anatomy-DgrVN3G8.js +7 -0
- package/dist/dialog-anatomy-Bw3Zw-Sk.d.ts +2 -0
- package/dist/dialog-anatomy-MGSvHVHZ.js +3 -0
- package/dist/editable-anatomy-B3_vixL9.js +3 -0
- package/dist/editable-anatomy-Ds52botR.d.ts +2 -0
- package/dist/{factory-srnAQg4A.d.ts → factory-47nL1bn3.d.ts} +1 -4
- package/dist/{factory-k8EbNZ7r.js → factory-CRBABr3I.js} +1 -1
- package/dist/{factory-BIJk1mK6.jsx → factory-CWJejsJ5.jsx} +1 -1
- package/dist/factory-CpgiPRji.d.ts +16 -0
- package/dist/{field-CZv3v7K-.js → field-BCordac5.js} +10 -15
- package/dist/{field-CtkmPUb0.jsx → field-NgZys4GU.jsx} +8 -8
- package/dist/field-anatomy-BgbxvZjw.d.ts +6 -0
- package/dist/field-anatomy-CbZd-AfX.js +8 -0
- package/dist/{fieldset-aYQsMWX2.jsx → fieldset-CnzvSH3P.jsx} +8 -8
- package/dist/{fieldset-B2nK8dL5.js → fieldset-DQmh-Ktv.js} +10 -15
- package/dist/fieldset-anatomy-BBa9WoaP.js +8 -0
- package/dist/fieldset-anatomy-CRM45oos.d.ts +6 -0
- package/dist/file-upload-anatomy-BLwYqz4f.js +3 -0
- package/dist/file-upload-anatomy-CZLamYyS.d.ts +2 -0
- package/dist/floating-panel-anatomy-DAwu9cP2.d.ts +2 -0
- package/dist/floating-panel-anatomy-DdzzXyoS.js +3 -0
- package/dist/hover-card-anatomy-BJZ9YpS5.d.ts +2 -0
- package/dist/hover-card-anatomy-DB-eZzNF.js +3 -0
- package/dist/image-cropper-anatomy-B4J-qCPo.js +3 -0
- package/dist/image-cropper-anatomy-Cm1QxL0W.d.ts +2 -0
- package/dist/{index-Dl22eiVf.d.ts → index-0MuoYCPp.d.ts} +20 -20
- package/dist/{index-Dqmtlqpz.d.ts → index-BYed87Fh.d.ts} +22 -22
- package/dist/{index-utxtRaDW.d.ts → index-CefJ3Mlu.d.ts} +2 -2
- package/dist/index-CkYyW1zB.d.ts +23 -0
- package/dist/{index-DylIyeqd.d.ts → index-Cxus87ws.d.ts} +8 -8
- package/dist/{index-w0NPbRP3.d.ts → index-CyfxegK0.d.ts} +8 -8
- package/dist/{index-BwthXhaG.d.ts → index-DfYcUadF.d.ts} +1 -1
- package/dist/index-SHPRZOqK.d.ts +14 -0
- package/dist/index-k6GG_NQV.d.ts +76 -0
- package/dist/index-puD7Bj_r.d.ts +41 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/index.jsx +5 -5
- package/dist/listbox-anatomy-Cp0Sg16v.js +7 -0
- package/dist/listbox-anatomy-D_Ty5FBV.d.ts +6 -0
- package/dist/marquee-anatomy-VZnfKxxg.js +3 -0
- package/dist/marquee-anatomy-oa1gn_nx.d.ts +2 -0
- package/dist/menu-anatomy-C7nmgGfd.js +3 -0
- package/dist/menu-anatomy-Yex6fsPC.d.ts +2 -0
- package/dist/navigation-menu-anatomy-COzWk1C_.js +3 -0
- package/dist/navigation-menu-anatomy-Dfg6aSrU.d.ts +2 -0
- package/dist/number-input-anatomy-DlxJhB02.js +3 -0
- package/dist/number-input-anatomy-DsdB6-Mz.d.ts +2 -0
- package/dist/pagination-anatomy-CFKd-0pG.d.ts +2 -0
- package/dist/pagination-anatomy-DxmOWDig.js +3 -0
- package/dist/password-input-anatomy-D0kCe_JJ.js +3 -0
- package/dist/password-input-anatomy-DDNW5_5q.d.ts +2 -0
- package/dist/pin-input-anatomy--9FMYbY_.d.ts +2 -0
- package/dist/pin-input-anatomy-BEIU-Y30.js +3 -0
- package/dist/popover-anatomy-B2SFhoUT.js +3 -0
- package/dist/popover-anatomy-C0MzJZ3B.d.ts +2 -0
- package/dist/{presence-Clrs1hmS.js → presence-NuziQqqg.js} +7 -7
- package/dist/{presence-H4-8_5_s.jsx → presence-ZCUJRZyo.jsx} +7 -7
- package/dist/progress-anatomy-BrjbAgaZ.d.ts +2 -0
- package/dist/progress-anatomy-hBCAAkqh.js +3 -0
- package/dist/{providers-C6VPiSrB.jsx → providers-DsPqz7EL.jsx} +2 -2
- package/dist/{providers-DgUckEdb.js → providers-PrTpHfBr.js} +2 -2
- package/dist/qr-code-anatomy-BGfk37hp.d.ts +2 -0
- package/dist/qr-code-anatomy-uajXqPRf.js +3 -0
- package/dist/radio-group-anatomy-B1UQnu0f.d.ts +2 -0
- package/dist/radio-group-anatomy-C74Bceji.js +3 -0
- package/dist/rating-group-anatomy-ARHgMm5d.js +3 -0
- package/dist/rating-group-anatomy-DETUNHP0.d.ts +2 -0
- package/dist/render-strategy-DZynJsi2.d.ts +9 -0
- package/dist/{render-strategy-BlHCR8sl.js → render-strategy-U4x7_Ist.js} +2 -2
- package/dist/{render-strategy-KJFIjVVG.jsx → render-strategy-_PhwzAgZ.jsx} +2 -2
- package/dist/scroll-area-anatomy-DbGNdc9h.js +3 -0
- package/dist/scroll-area-anatomy-DpNDBTCh.d.ts +2 -0
- package/dist/segment-group-anatomy-B5fYMn2x.js +8 -0
- package/dist/segment-group-anatomy-ByucVeII.d.ts +6 -0
- package/dist/select-anatomy-C-C6kOOF.d.ts +2 -0
- package/dist/select-anatomy-D-hDwjng.js +3 -0
- package/dist/signature-pad-anatomy-BPRzD8r2.js +3 -0
- package/dist/signature-pad-anatomy-DmdvoOSX.d.ts +2 -0
- package/dist/slider-anatomy-BhIPuHNN.d.ts +2 -0
- package/dist/slider-anatomy-KVOUw4Rb.js +3 -0
- package/dist/splitter-anatomy-BONfxWi-.d.ts +2 -0
- package/dist/splitter-anatomy-D6AP25Kw.js +3 -0
- package/dist/steps-anatomy-DIg2DYw-.d.ts +2 -0
- package/dist/steps-anatomy-DadglyM4.js +3 -0
- package/dist/switch-anatomy-B9kSLgdn.d.ts +2 -0
- package/dist/switch-anatomy-dc2hdWBY.js +3 -0
- package/dist/tabs-anatomy-CHgCEJsD.js +3 -0
- package/dist/tabs-anatomy-nslgxs56.d.ts +2 -0
- package/dist/tags-input-anatomy-BLnjypXf.d.ts +2 -0
- package/dist/tags-input-anatomy-DeQcN1NX.js +3 -0
- package/dist/timer-anatomy-C7PWvKv1.d.ts +2 -0
- package/dist/timer-anatomy-UMWybMgG.js +3 -0
- package/dist/toast-anatomy-DLI_UJyj.js +3 -0
- package/dist/toast-anatomy-DPPfbzb8.d.ts +2 -0
- package/dist/toggle-anatomy-CYe5EO2_.d.ts +6 -0
- package/dist/toggle-anatomy-Tvx2zJXX.js +8 -0
- package/dist/toggle-group-anatomy-CzlIeJrP.js +3 -0
- package/dist/toggle-group-anatomy-D0bmgEEb.d.ts +2 -0
- package/dist/tooltip-anatomy-bM3dzYCm.js +3 -0
- package/dist/tooltip-anatomy-dy8p3xbe.d.ts +2 -0
- package/dist/tour-anatomy-LglmO8ZE.d.ts +6 -0
- package/dist/tour-anatomy-dw8E6e1m.js +7 -0
- package/dist/{tree-view-DJgvku6y.jsx → tree-view-Bd-Avra8.jsx} +9 -9
- package/dist/tree-view-anatomy-DCvheYGf.js +3 -0
- package/dist/tree-view-anatomy-DNpQsIjf.d.ts +2 -0
- package/dist/{tree-view-CyvT0V14.js → tree-view-dpzsuFjQ.js} +10 -11
- package/dist/types-BuJXW13N.d.ts +9 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.jsx +2 -2
- package/package.json +107 -7
- /package/dist/{chunk-BJ7z6UrO.jsx → chunk-DGaS4lLa.js} +0 -0
- /package/dist/{chunk-Bn8mXcTA.js → chunk-DLIiRulR.jsx} +0 -0
- /package/dist/{compose-refs-Cp4AShsY.jsx → compose-refs-11PIsxEa.jsx} +0 -0
- /package/dist/{compose-refs-tCBI7PRJ.js → compose-refs-Chr9AtC3.js} +0 -0
- /package/dist/{core-CRjuRw95.js → core-BgpRwoCt.jsx} +0 -0
- /package/dist/{core-C_FYj4uc.jsx → core-DlJdnFMg.js} +0 -0
- /package/dist/{create-context-BwqlrMqL.jsx → create-context-BpJ2IzPB.jsx} +0 -0
- /package/dist/{create-context-DlXBVMoq.js → create-context-BqG72mig.js} +0 -0
- /package/dist/{create-split-props-BHmgTHSf.js → create-split-props-8J9EAVSk.jsx} +0 -0
- /package/dist/{create-split-props-CKwjjjkD.jsx → create-split-props-L9BbhhCg.js} +0 -0
- /package/dist/{index-DiANe65S.d.ts → index-5ET6GeB1.d.ts} +0 -0
- /package/dist/{index-BLALA3BS.d.ts → index-B3_OUYsI.d.ts} +0 -0
- /package/dist/{render-strategy-BmTDUy3U.d.ts → render-strategy-C62CF-LT.d.ts} +0 -0
- /package/dist/{run-if-fn-C80kt4dU.js → run-if-fn-COsqwaBZ.js} +0 -0
- /package/dist/{run-if-fn-CrJzzDIM.jsx → run-if-fn-D55yVu32.jsx} +0 -0
- /package/dist/{types-mGUbKy2h.d.ts → types-BDfyh3uz.d.ts} +0 -0
- /package/dist/{utils-DSmVDqW7.js → utils-Bq8C05Rs.jsx} +0 -0
- /package/dist/{utils-DhhcJyG-.jsx → utils-Djg7j5f9.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as __export } from "../../chunk-
|
|
2
|
-
import { i as useMachine, n as normalizeProps, r as mergeProps$2 } from "../../core-
|
|
3
|
-
import { t as runIfFn } from "../../run-if-fn-
|
|
4
|
-
import { t as createContext$1 } from "../../create-context-
|
|
5
|
-
import { i as useLocaleContext, o as useEnvironmentContext } from "../../providers-
|
|
6
|
-
import { t as sprawlify } from "../../factory-
|
|
7
|
-
import { t as
|
|
8
|
-
import "../../
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
1
|
+
import { t as __export } from "../../chunk-DGaS4lLa.js";
|
|
2
|
+
import { i as useMachine, n as normalizeProps, r as mergeProps$2 } from "../../core-DlJdnFMg.js";
|
|
3
|
+
import { t as runIfFn } from "../../run-if-fn-COsqwaBZ.js";
|
|
4
|
+
import { t as createContext$1 } from "../../create-context-BqG72mig.js";
|
|
5
|
+
import { i as useLocaleContext, o as useEnvironmentContext } from "../../providers-PrTpHfBr.js";
|
|
6
|
+
import { t as sprawlify } from "../../factory-CRBABr3I.js";
|
|
7
|
+
import { t as popoverAnatomy } from "../../popover-anatomy-B2SFhoUT.js";
|
|
8
|
+
import { t as createSplitProps } from "../../create-split-props-L9BbhhCg.js";
|
|
9
|
+
import "../../render-strategy-U4x7_Ist.js";
|
|
10
|
+
import { t as composeRefs } from "../../compose-refs-Chr9AtC3.js";
|
|
11
|
+
import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, t as PresenceProvider } from "../../presence-NuziQqqg.js";
|
|
11
12
|
import { Show, createMemo, createUniqueId } from "solid-js";
|
|
12
13
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
13
14
|
import * as popover from "@sprawlify/primitives/machines/popover";
|
|
14
|
-
import { anatomy as popoverAnatomy } from "@sprawlify/primitives/machines/popover";
|
|
15
15
|
|
|
16
16
|
//#region src/components/popover/use-popover-context.ts
|
|
17
17
|
const [PopoverProvider, usePopoverContext] = createContext$1({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as __export } from "../../chunk-
|
|
2
|
-
import { i as useMachine, n as normalizeProps, r as mergeProps$1 } from "../../core-
|
|
3
|
-
import { t as runIfFn } from "../../run-if-fn-
|
|
4
|
-
import { t as createContext$1 } from "../../create-context-
|
|
5
|
-
import { i as useLocaleContext, o as useEnvironmentContext } from "../../providers-
|
|
6
|
-
import { t as sprawlify } from "../../factory-
|
|
7
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
8
|
-
import "../../render-strategy-
|
|
9
|
-
import { t as composeRefs } from "../../compose-refs-
|
|
10
|
-
import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, t as PresenceProvider } from "../../presence-
|
|
1
|
+
import { t as __export } from "../../chunk-DLIiRulR.jsx";
|
|
2
|
+
import { i as useMachine, n as normalizeProps, r as mergeProps$1 } from "../../core-BgpRwoCt.jsx";
|
|
3
|
+
import { t as runIfFn } from "../../run-if-fn-D55yVu32.jsx";
|
|
4
|
+
import { t as createContext$1 } from "../../create-context-BpJ2IzPB.jsx";
|
|
5
|
+
import { i as useLocaleContext, o as useEnvironmentContext } from "../../providers-DsPqz7EL.jsx";
|
|
6
|
+
import { t as sprawlify } from "../../factory-CWJejsJ5.jsx";
|
|
7
|
+
import { t as createSplitProps } from "../../create-split-props-8J9EAVSk.jsx";
|
|
8
|
+
import "../../render-strategy-_PhwzAgZ.jsx";
|
|
9
|
+
import { t as composeRefs } from "../../compose-refs-11PIsxEa.jsx";
|
|
10
|
+
import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, t as PresenceProvider } from "../../presence-ZCUJRZyo.jsx";
|
|
11
11
|
import { Show, createMemo, createUniqueId } from "solid-js";
|
|
12
12
|
import * as popover from "@sprawlify/primitives/machines/popover";
|
|
13
13
|
import { anatomy as popoverAnatomy } from "@sprawlify/primitives/machines/popover";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../types-
|
|
2
|
-
import "../../factory-
|
|
3
|
-
import "../../render-strategy-
|
|
4
|
-
import { a as Presence, c as UsePresenceReturn, i as splitPresenceProps, l as usePresence, n as UsePresenceContext, o as PresenceProps, r as usePresenceContext, s as UsePresenceProps, t as PresenceProvider } from "../../index-
|
|
1
|
+
import "../../types-BDfyh3uz.js";
|
|
2
|
+
import "../../factory-47nL1bn3.js";
|
|
3
|
+
import "../../render-strategy-DZynJsi2.js";
|
|
4
|
+
import { a as Presence, c as UsePresenceReturn, i as splitPresenceProps, l as usePresence, n as UsePresenceContext, o as PresenceProps, r as usePresenceContext, s as UsePresenceProps, t as PresenceProvider } from "../../index-Cxus87ws.js";
|
|
5
5
|
export { Presence, PresenceProps, PresenceProvider, UsePresenceContext, UsePresenceProps, UsePresenceReturn, splitPresenceProps, usePresence, usePresenceContext };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../core-
|
|
2
|
-
import "../../create-context-
|
|
3
|
-
import "../../factory-
|
|
4
|
-
import "../../create-split-props-
|
|
5
|
-
import "../../render-strategy-
|
|
6
|
-
import "../../compose-refs-
|
|
7
|
-
import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, r as Presence, t as PresenceProvider } from "../../presence-
|
|
1
|
+
import "../../core-DlJdnFMg.js";
|
|
2
|
+
import "../../create-context-BqG72mig.js";
|
|
3
|
+
import "../../factory-CRBABr3I.js";
|
|
4
|
+
import "../../create-split-props-L9BbhhCg.js";
|
|
5
|
+
import "../../render-strategy-U4x7_Ist.js";
|
|
6
|
+
import "../../compose-refs-Chr9AtC3.js";
|
|
7
|
+
import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, r as Presence, t as PresenceProvider } from "../../presence-NuziQqqg.js";
|
|
8
8
|
|
|
9
9
|
export { Presence, PresenceProvider, splitPresenceProps, usePresence, usePresenceContext };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../core-
|
|
2
|
-
import "../../create-context-
|
|
3
|
-
import "../../factory-
|
|
4
|
-
import "../../create-split-props-
|
|
5
|
-
import "../../render-strategy-
|
|
6
|
-
import "../../compose-refs-
|
|
7
|
-
import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, r as Presence, t as PresenceProvider } from "../../presence-
|
|
1
|
+
import "../../core-BgpRwoCt.jsx";
|
|
2
|
+
import "../../create-context-BpJ2IzPB.jsx";
|
|
3
|
+
import "../../factory-CWJejsJ5.jsx";
|
|
4
|
+
import "../../create-split-props-8J9EAVSk.jsx";
|
|
5
|
+
import "../../render-strategy-_PhwzAgZ.jsx";
|
|
6
|
+
import "../../compose-refs-11PIsxEa.jsx";
|
|
7
|
+
import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, r as Presence, t as PresenceProvider } from "../../presence-ZCUJRZyo.jsx";
|
|
8
8
|
|
|
9
9
|
export { Presence, PresenceProvider, splitPresenceProps, usePresence, usePresenceContext };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { n as PropTypes } from "../../index-CkYyW1zB.js";
|
|
2
|
+
import { i as Optional, n as MaybeAccessor } from "../../types-BDfyh3uz.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-47nL1bn3.js";
|
|
4
|
+
import { t as progressAnatomy } from "../../progress-anatomy-BrjbAgaZ.js";
|
|
5
|
+
import * as solid_js99 from "solid-js";
|
|
6
|
+
import { Accessor, JSX } from "solid-js";
|
|
7
|
+
import * as progress from "@sprawlify/primitives/machines/progress";
|
|
8
|
+
import { ValueChangeDetails, ValueChangeDetails as ProgressValueChangeDetails, ValueTranslationDetails, ValueTranslationDetails as ProgressValueTranslationDetails, ViewProps } from "@sprawlify/primitives/machines/progress";
|
|
9
|
+
|
|
10
|
+
//#region src/components/progress/progress-circle.d.ts
|
|
11
|
+
interface ProgressCircleBaseProps extends PolymorphicProps<'svg'> {}
|
|
12
|
+
interface ProgressCircleProps extends HTMLProps<'svg'>, ProgressCircleBaseProps {}
|
|
13
|
+
declare const ProgressCircle: (props: ProgressCircleProps) => solid_js99.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/progress/progress-circle-range.d.ts
|
|
16
|
+
interface ProgressCircleRangeBaseProps extends PolymorphicProps<'circle'> {}
|
|
17
|
+
interface ProgressCircleRangeProps extends HTMLProps<'circle'>, ProgressCircleRangeBaseProps {}
|
|
18
|
+
declare const ProgressCircleRange: (props: ProgressCircleRangeProps) => solid_js99.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/progress/progress-circle-track.d.ts
|
|
21
|
+
interface ProgressCircleTrackBaseProps extends PolymorphicProps<'circle'> {}
|
|
22
|
+
interface ProgressCircleTrackProps extends HTMLProps<'circle'>, ProgressCircleTrackBaseProps {}
|
|
23
|
+
declare const ProgressCircleTrack: (props: ProgressCircleTrackProps) => solid_js99.JSX.Element;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/progress/use-progress.d.ts
|
|
26
|
+
interface UseProgressProps extends Optional<Omit<progress.Props, 'dir' | 'getRootNode'>, 'id'> {}
|
|
27
|
+
interface UseProgressReturn extends Accessor<progress.Api<PropTypes>> {}
|
|
28
|
+
declare const useProgress: (props?: MaybeAccessor<UseProgressProps>) => UseProgressReturn;
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/progress/use-progress-context.d.ts
|
|
31
|
+
interface UseProgressContext extends UseProgressReturn {}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/progress/progress-context.d.ts
|
|
34
|
+
interface ProgressContextProps {
|
|
35
|
+
children: (context: UseProgressContext) => JSX.Element;
|
|
36
|
+
}
|
|
37
|
+
declare const ProgressContext: (props: ProgressContextProps) => JSX.Element;
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/components/progress/progress-label.d.ts
|
|
40
|
+
interface ProgressLabelBaseProps extends PolymorphicProps<'label'> {}
|
|
41
|
+
interface ProgressLabelProps extends HTMLProps<'label'>, ProgressLabelBaseProps {}
|
|
42
|
+
declare const ProgressLabel: (props: ProgressLabelProps) => solid_js99.JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/progress/progress-range.d.ts
|
|
45
|
+
interface ProgressRangeBaseProps extends PolymorphicProps<'div'> {}
|
|
46
|
+
interface ProgressRangeProps extends HTMLProps<'div'>, ProgressRangeBaseProps {}
|
|
47
|
+
declare const ProgressRange: (props: ProgressRangeProps) => solid_js99.JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/components/progress/progress-root.d.ts
|
|
50
|
+
interface ProgressRootBaseProps extends UseProgressProps, PolymorphicProps<'div'> {}
|
|
51
|
+
interface ProgressRootProps extends HTMLProps<'div'>, ProgressRootBaseProps {}
|
|
52
|
+
declare const ProgressRoot: (props: ProgressRootProps) => solid_js99.JSX.Element;
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/components/progress/progress-root-provider.d.ts
|
|
55
|
+
interface RootProviderProps {
|
|
56
|
+
value: UseProgressReturn;
|
|
57
|
+
}
|
|
58
|
+
interface ProgressRootProviderBaseProps extends PolymorphicProps<'div'> {}
|
|
59
|
+
interface ProgressRootProviderProps extends HTMLProps<'div'>, RootProviderProps, ProgressRootProviderBaseProps {}
|
|
60
|
+
declare const ProgressRootProvider: (props: ProgressRootProviderProps) => solid_js99.JSX.Element;
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/components/progress/progress-track.d.ts
|
|
63
|
+
interface ProgressTrackBaseProps extends PolymorphicProps<'div'> {}
|
|
64
|
+
interface ProgressTrackProps extends HTMLProps<'div'>, ProgressTrackBaseProps {}
|
|
65
|
+
declare const ProgressTrack: (props: ProgressTrackProps) => solid_js99.JSX.Element;
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/components/progress/progress-value-text.d.ts
|
|
68
|
+
interface ProgressValueTextBaseProps extends PolymorphicProps<'span'> {}
|
|
69
|
+
interface ProgressValueTextProps extends HTMLProps<'span'>, ProgressValueTextBaseProps {}
|
|
70
|
+
declare const ProgressValueText: (props: ProgressValueTextProps) => solid_js99.JSX.Element;
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/progress/progress-view.d.ts
|
|
73
|
+
interface ProgressViewBaseProps extends ViewProps, PolymorphicProps<'span'> {}
|
|
74
|
+
interface ProgressViewProps extends HTMLProps<'span'>, ProgressViewBaseProps {}
|
|
75
|
+
declare const ProgressView: (props: ProgressViewProps) => solid_js99.JSX.Element;
|
|
76
|
+
declare namespace progress_d_exports {
|
|
77
|
+
export { ProgressCircle as Circle, ProgressCircleBaseProps as CircleBaseProps, ProgressCircleProps as CircleProps, ProgressCircleRange as CircleRange, ProgressCircleRangeBaseProps as CircleRangeBaseProps, ProgressCircleRangeProps as CircleRangeProps, ProgressCircleTrack as CircleTrack, ProgressCircleTrackBaseProps as CircleTrackBaseProps, ProgressCircleTrackProps as CircleTrackProps, ProgressContext as Context, ProgressContextProps as ContextProps, ProgressLabel as Label, ProgressLabelBaseProps as LabelBaseProps, ProgressLabelProps as LabelProps, ProgressRange as Range, ProgressRangeBaseProps as RangeBaseProps, ProgressRangeProps as RangeProps, ProgressRoot as Root, ProgressRootBaseProps as RootBaseProps, ProgressRootProps as RootProps, ProgressRootProvider as RootProvider, ProgressRootProviderBaseProps as RootProviderBaseProps, ProgressRootProviderProps as RootProviderProps, ProgressTrack as Track, ProgressTrackBaseProps as TrackBaseProps, ProgressTrackProps as TrackProps, ValueChangeDetails, ProgressValueText as ValueText, ProgressValueTextBaseProps as ValueTextBaseProps, ProgressValueTextProps as ValueTextProps, ValueTranslationDetails, ProgressView as View, ProgressViewBaseProps as ViewBaseProps, ProgressViewProps as ViewProps };
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
export { progress_d_exports as Progress, ProgressCircle, type ProgressCircleBaseProps, type ProgressCircleProps, ProgressCircleRange, type ProgressCircleRangeBaseProps, type ProgressCircleRangeProps, ProgressCircleTrack, type ProgressCircleTrackBaseProps, type ProgressCircleTrackProps, ProgressContext, type ProgressContextProps, ProgressLabel, type ProgressLabelBaseProps, type ProgressLabelProps, ProgressRange, type ProgressRangeBaseProps, type ProgressRangeProps, ProgressRoot, type ProgressRootBaseProps, type ProgressRootProps, ProgressRootProvider, type ProgressRootProviderBaseProps, type ProgressRootProviderProps, ProgressTrack, type ProgressTrackBaseProps, type ProgressTrackProps, type ProgressValueChangeDetails, ProgressValueText, type ProgressValueTextBaseProps, type ProgressValueTextProps, type ProgressValueTranslationDetails, ProgressView, type ProgressViewBaseProps, type ProgressViewProps, type UseProgressContext, type UseProgressProps, type UseProgressReturn, progressAnatomy, useProgress, useProgressContext };
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { t as __export } from "../../chunk-DGaS4lLa.js";
|
|
2
|
+
import { i as useMachine, n as normalizeProps, r as mergeProps$2 } from "../../core-DlJdnFMg.js";
|
|
3
|
+
import { t as runIfFn } from "../../run-if-fn-COsqwaBZ.js";
|
|
4
|
+
import { t as createContext$1 } from "../../create-context-BqG72mig.js";
|
|
5
|
+
import { i as useLocaleContext, o as useEnvironmentContext } from "../../providers-PrTpHfBr.js";
|
|
6
|
+
import { t as sprawlify } from "../../factory-CRBABr3I.js";
|
|
7
|
+
import { t as progressAnatomy } from "../../progress-anatomy-hBCAAkqh.js";
|
|
8
|
+
import { t as createSplitProps } from "../../create-split-props-L9BbhhCg.js";
|
|
9
|
+
import { createMemo, createUniqueId } from "solid-js";
|
|
10
|
+
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
11
|
+
import * as progress from "@sprawlify/primitives/machines/progress";
|
|
12
|
+
|
|
13
|
+
//#region src/components/progress/use-progress-context.ts
|
|
14
|
+
const [ProgressProvider, useProgressContext] = createContext$1({
|
|
15
|
+
hookName: "useProgressContext",
|
|
16
|
+
providerName: "<ProgressProvider />"
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/progress/progress-circle.tsx
|
|
21
|
+
const ProgressCircle = (props) => {
|
|
22
|
+
const api = useProgressContext();
|
|
23
|
+
const mergedProps = mergeProps$2(() => api().getCircleProps(), props);
|
|
24
|
+
return createComponent(sprawlify.svg, mergedProps);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/components/progress/progress-circle-range.tsx
|
|
29
|
+
const ProgressCircleRange = (props) => {
|
|
30
|
+
const api = useProgressContext();
|
|
31
|
+
const mergedProps = mergeProps$2(() => api().getCircleRangeProps(), props);
|
|
32
|
+
return createComponent(sprawlify.circle, mergedProps);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/components/progress/progress-circle-track.tsx
|
|
37
|
+
const ProgressCircleTrack = (props) => {
|
|
38
|
+
const api = useProgressContext();
|
|
39
|
+
const mergedProps = mergeProps$2(() => api().getCircleTrackProps(), props);
|
|
40
|
+
return createComponent(sprawlify.circle, mergedProps);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/progress/progress-context.tsx
|
|
45
|
+
const ProgressContext = (props) => props.children(useProgressContext());
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/progress/progress-label.tsx
|
|
49
|
+
const ProgressLabel = (props) => {
|
|
50
|
+
const api = useProgressContext();
|
|
51
|
+
const mergedProps = mergeProps$2(() => api().getLabelProps(), props);
|
|
52
|
+
return createComponent(sprawlify.label, mergedProps);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/progress/progress-range.tsx
|
|
57
|
+
const ProgressRange = (props) => {
|
|
58
|
+
const api = useProgressContext();
|
|
59
|
+
const mergedProps = mergeProps$2(() => api().getRangeProps(), props);
|
|
60
|
+
return createComponent(sprawlify.div, mergedProps);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/components/progress/use-progress.ts
|
|
65
|
+
const useProgress = (props) => {
|
|
66
|
+
const id = createUniqueId();
|
|
67
|
+
const locale = useLocaleContext();
|
|
68
|
+
const environment = useEnvironmentContext();
|
|
69
|
+
const machineProps = createMemo(() => ({
|
|
70
|
+
id,
|
|
71
|
+
dir: locale().dir,
|
|
72
|
+
locale: locale().locale,
|
|
73
|
+
getRootNode: environment().getRootNode,
|
|
74
|
+
...runIfFn(props)
|
|
75
|
+
}));
|
|
76
|
+
const service = useMachine(progress.machine, machineProps);
|
|
77
|
+
return createMemo(() => progress.connect(service, normalizeProps));
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/progress/progress-root.tsx
|
|
82
|
+
const ProgressRoot = (props) => {
|
|
83
|
+
const [progressProps, localProps] = createSplitProps()(props, [
|
|
84
|
+
"defaultValue",
|
|
85
|
+
"formatOptions",
|
|
86
|
+
"id",
|
|
87
|
+
"ids",
|
|
88
|
+
"locale",
|
|
89
|
+
"max",
|
|
90
|
+
"min",
|
|
91
|
+
"onValueChange",
|
|
92
|
+
"orientation",
|
|
93
|
+
"translations",
|
|
94
|
+
"value"
|
|
95
|
+
]);
|
|
96
|
+
const api = useProgress(progressProps);
|
|
97
|
+
const mergedProps = mergeProps$2(() => api().getRootProps(), localProps);
|
|
98
|
+
return createComponent(ProgressProvider, {
|
|
99
|
+
value: api,
|
|
100
|
+
get children() {
|
|
101
|
+
return createComponent(sprawlify.div, mergedProps);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/components/progress/progress-root-provider.tsx
|
|
108
|
+
const ProgressRootProvider = (props) => {
|
|
109
|
+
const [{ value: progress$1 }, localProps] = createSplitProps()(props, ["value"]);
|
|
110
|
+
const mergedProps = mergeProps$2(() => progress$1().getRootProps(), localProps);
|
|
111
|
+
return createComponent(ProgressProvider, {
|
|
112
|
+
value: progress$1,
|
|
113
|
+
get children() {
|
|
114
|
+
return createComponent(sprawlify.div, mergedProps);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/components/progress/progress-track.tsx
|
|
121
|
+
const ProgressTrack = (props) => {
|
|
122
|
+
const api = useProgressContext();
|
|
123
|
+
const mergedProps = mergeProps$2(() => api().getTrackProps(), props);
|
|
124
|
+
return createComponent(sprawlify.div, mergedProps);
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/components/progress/progress-value-text.tsx
|
|
129
|
+
const ProgressValueText = (props) => {
|
|
130
|
+
const api = useProgressContext();
|
|
131
|
+
const mergedProps = mergeProps$2(() => api().getValueTextProps(), props);
|
|
132
|
+
return createComponent(sprawlify.span, mergeProps$1(mergedProps, { get children() {
|
|
133
|
+
return props.children || api().percentAsString;
|
|
134
|
+
} }));
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/components/progress/progress-view.tsx
|
|
139
|
+
const ProgressView = (props) => {
|
|
140
|
+
const [state, localProps] = createSplitProps()(props, ["state"]);
|
|
141
|
+
const api = useProgressContext();
|
|
142
|
+
const mergedProps = mergeProps$2(() => api().getViewProps(state), localProps);
|
|
143
|
+
return createComponent(sprawlify.span, mergedProps);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/components/progress/progress.ts
|
|
148
|
+
var progress_exports = /* @__PURE__ */ __export({
|
|
149
|
+
Circle: () => ProgressCircle,
|
|
150
|
+
CircleRange: () => ProgressCircleRange,
|
|
151
|
+
CircleTrack: () => ProgressCircleTrack,
|
|
152
|
+
Context: () => ProgressContext,
|
|
153
|
+
Label: () => ProgressLabel,
|
|
154
|
+
Range: () => ProgressRange,
|
|
155
|
+
Root: () => ProgressRoot,
|
|
156
|
+
RootProvider: () => ProgressRootProvider,
|
|
157
|
+
Track: () => ProgressTrack,
|
|
158
|
+
ValueText: () => ProgressValueText,
|
|
159
|
+
View: () => ProgressView
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
//#endregion
|
|
163
|
+
export { progress_exports as Progress, ProgressCircle, ProgressCircleRange, ProgressCircleTrack, ProgressContext, ProgressLabel, ProgressRange, ProgressRoot, ProgressRootProvider, ProgressTrack, ProgressValueText, ProgressView, progressAnatomy, useProgress, useProgressContext };
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { t as __export } from "../../chunk-DLIiRulR.jsx";
|
|
2
|
+
import { i as useMachine, n as normalizeProps, r as mergeProps$1 } from "../../core-BgpRwoCt.jsx";
|
|
3
|
+
import { t as runIfFn } from "../../run-if-fn-D55yVu32.jsx";
|
|
4
|
+
import { t as createContext$1 } from "../../create-context-BpJ2IzPB.jsx";
|
|
5
|
+
import { i as useLocaleContext, o as useEnvironmentContext } from "../../providers-DsPqz7EL.jsx";
|
|
6
|
+
import { t as sprawlify } from "../../factory-CWJejsJ5.jsx";
|
|
7
|
+
import { t as createSplitProps } from "../../create-split-props-8J9EAVSk.jsx";
|
|
8
|
+
import { createMemo, createUniqueId } from "solid-js";
|
|
9
|
+
import * as progress from "@sprawlify/primitives/machines/progress";
|
|
10
|
+
import { anatomy as progressAnatomy } from "@sprawlify/primitives/machines/progress";
|
|
11
|
+
|
|
12
|
+
//#region src/components/progress/use-progress-context.ts
|
|
13
|
+
const [ProgressProvider, useProgressContext] = createContext$1({
|
|
14
|
+
hookName: "useProgressContext",
|
|
15
|
+
providerName: "<ProgressProvider />"
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/components/progress/progress-circle.tsx
|
|
20
|
+
const ProgressCircle = (props) => {
|
|
21
|
+
const api = useProgressContext();
|
|
22
|
+
const mergedProps = mergeProps$1(() => api().getCircleProps(), props);
|
|
23
|
+
return <sprawlify.svg {...mergedProps} />;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/progress/progress-circle-range.tsx
|
|
28
|
+
const ProgressCircleRange = (props) => {
|
|
29
|
+
const api = useProgressContext();
|
|
30
|
+
const mergedProps = mergeProps$1(() => api().getCircleRangeProps(), props);
|
|
31
|
+
return <sprawlify.circle {...mergedProps} />;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/components/progress/progress-circle-track.tsx
|
|
36
|
+
const ProgressCircleTrack = (props) => {
|
|
37
|
+
const api = useProgressContext();
|
|
38
|
+
const mergedProps = mergeProps$1(() => api().getCircleTrackProps(), props);
|
|
39
|
+
return <sprawlify.circle {...mergedProps} />;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/progress/progress-context.tsx
|
|
44
|
+
const ProgressContext = (props) => props.children(useProgressContext());
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/components/progress/progress-label.tsx
|
|
48
|
+
const ProgressLabel = (props) => {
|
|
49
|
+
const api = useProgressContext();
|
|
50
|
+
const mergedProps = mergeProps$1(() => api().getLabelProps(), props);
|
|
51
|
+
return <sprawlify.label {...mergedProps} />;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/progress/progress-range.tsx
|
|
56
|
+
const ProgressRange = (props) => {
|
|
57
|
+
const api = useProgressContext();
|
|
58
|
+
const mergedProps = mergeProps$1(() => api().getRangeProps(), props);
|
|
59
|
+
return <sprawlify.div {...mergedProps} />;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/components/progress/use-progress.ts
|
|
64
|
+
const useProgress = (props) => {
|
|
65
|
+
const id = createUniqueId();
|
|
66
|
+
const locale = useLocaleContext();
|
|
67
|
+
const environment = useEnvironmentContext();
|
|
68
|
+
const machineProps = createMemo(() => ({
|
|
69
|
+
id,
|
|
70
|
+
dir: locale().dir,
|
|
71
|
+
locale: locale().locale,
|
|
72
|
+
getRootNode: environment().getRootNode,
|
|
73
|
+
...runIfFn(props)
|
|
74
|
+
}));
|
|
75
|
+
const service = useMachine(progress.machine, machineProps);
|
|
76
|
+
return createMemo(() => progress.connect(service, normalizeProps));
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/components/progress/progress-root.tsx
|
|
81
|
+
const ProgressRoot = (props) => {
|
|
82
|
+
const [progressProps, localProps] = createSplitProps()(props, [
|
|
83
|
+
"defaultValue",
|
|
84
|
+
"formatOptions",
|
|
85
|
+
"id",
|
|
86
|
+
"ids",
|
|
87
|
+
"locale",
|
|
88
|
+
"max",
|
|
89
|
+
"min",
|
|
90
|
+
"onValueChange",
|
|
91
|
+
"orientation",
|
|
92
|
+
"translations",
|
|
93
|
+
"value"
|
|
94
|
+
]);
|
|
95
|
+
const api = useProgress(progressProps);
|
|
96
|
+
const mergedProps = mergeProps$1(() => api().getRootProps(), localProps);
|
|
97
|
+
return <ProgressProvider value={api}>
|
|
98
|
+
<sprawlify.div {...mergedProps} />
|
|
99
|
+
</ProgressProvider>;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/components/progress/progress-root-provider.tsx
|
|
104
|
+
const ProgressRootProvider = (props) => {
|
|
105
|
+
const [{ value: progress$1 }, localProps] = createSplitProps()(props, ["value"]);
|
|
106
|
+
const mergedProps = mergeProps$1(() => progress$1().getRootProps(), localProps);
|
|
107
|
+
return <ProgressProvider value={progress$1}>
|
|
108
|
+
<sprawlify.div {...mergedProps} />
|
|
109
|
+
</ProgressProvider>;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/components/progress/progress-track.tsx
|
|
114
|
+
const ProgressTrack = (props) => {
|
|
115
|
+
const api = useProgressContext();
|
|
116
|
+
const mergedProps = mergeProps$1(() => api().getTrackProps(), props);
|
|
117
|
+
return <sprawlify.div {...mergedProps} />;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/components/progress/progress-value-text.tsx
|
|
122
|
+
const ProgressValueText = (props) => {
|
|
123
|
+
const api = useProgressContext();
|
|
124
|
+
const mergedProps = mergeProps$1(() => api().getValueTextProps(), props);
|
|
125
|
+
return <sprawlify.span {...mergedProps}>{props.children || api().percentAsString}</sprawlify.span>;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/components/progress/progress-view.tsx
|
|
130
|
+
const ProgressView = (props) => {
|
|
131
|
+
const [state, localProps] = createSplitProps()(props, ["state"]);
|
|
132
|
+
const api = useProgressContext();
|
|
133
|
+
const mergedProps = mergeProps$1(() => api().getViewProps(state), localProps);
|
|
134
|
+
return <sprawlify.span {...mergedProps} />;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/components/progress/progress.ts
|
|
139
|
+
var progress_exports = /* @__PURE__ */ __export({
|
|
140
|
+
Circle: () => ProgressCircle,
|
|
141
|
+
CircleRange: () => ProgressCircleRange,
|
|
142
|
+
CircleTrack: () => ProgressCircleTrack,
|
|
143
|
+
Context: () => ProgressContext,
|
|
144
|
+
Label: () => ProgressLabel,
|
|
145
|
+
Range: () => ProgressRange,
|
|
146
|
+
Root: () => ProgressRoot,
|
|
147
|
+
RootProvider: () => ProgressRootProvider,
|
|
148
|
+
Track: () => ProgressTrack,
|
|
149
|
+
ValueText: () => ProgressValueText,
|
|
150
|
+
View: () => ProgressView
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
//#endregion
|
|
154
|
+
export { progress_exports as Progress, ProgressCircle, ProgressCircleRange, ProgressCircleTrack, ProgressContext, ProgressLabel, ProgressRange, ProgressRoot, ProgressRootProvider, ProgressTrack, ProgressValueText, ProgressView, progressAnatomy, useProgress, useProgressContext };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { n as PropTypes } from "../../index-CkYyW1zB.js";
|
|
2
|
+
import { i as Optional, n as MaybeAccessor } from "../../types-BDfyh3uz.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-47nL1bn3.js";
|
|
4
|
+
import { t as qrCodeAnatomy } from "../../qr-code-anatomy-BGfk37hp.js";
|
|
5
|
+
import * as solid_js437 from "solid-js";
|
|
6
|
+
import { Accessor, JSX } from "solid-js";
|
|
7
|
+
import * as qrCode from "@sprawlify/primitives/machines/qr-code";
|
|
8
|
+
import { DownloadTriggerProps, QrCodeGenerateOptions, QrCodeGenerateOptions as GenerateOptions, QrCodeGenerateResult, QrCodeGenerateResult as GenerateResult } from "@sprawlify/primitives/machines/qr-code";
|
|
9
|
+
|
|
10
|
+
//#region src/components/qr-code/use-qr-code.d.ts
|
|
11
|
+
interface UseQrCodeProps extends Optional<Omit<qrCode.Props, 'dir' | 'getRootNode'>, 'id'> {}
|
|
12
|
+
interface UseQrCodeReturn extends Accessor<qrCode.Api<PropTypes>> {}
|
|
13
|
+
declare const useQrCode: (props?: MaybeAccessor<UseQrCodeProps>) => UseQrCodeReturn;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/qr-code/use-qr-code-context.d.ts
|
|
16
|
+
interface UseQrCodeContext extends UseQrCodeReturn {}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/qr-code/qr-code-context.d.ts
|
|
19
|
+
interface QrCodeContextProps {
|
|
20
|
+
children: (context: UseQrCodeContext) => JSX.Element;
|
|
21
|
+
}
|
|
22
|
+
declare const QrCodeContext: (props: QrCodeContextProps) => JSX.Element;
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/qr-code/qr-code-download-trigger.d.ts
|
|
25
|
+
interface QrCodeDownloadTriggerBaseProps extends DownloadTriggerProps, PolymorphicProps<'button'> {}
|
|
26
|
+
interface QrCodeDownloadTriggerProps extends HTMLProps<'button'>, QrCodeDownloadTriggerBaseProps {}
|
|
27
|
+
declare const QrCodeDownloadTrigger: (props: QrCodeDownloadTriggerProps) => solid_js437.JSX.Element;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/qr-code/qr-code-frame.d.ts
|
|
30
|
+
interface QrCodeFrameBaseProps extends PolymorphicProps<'svg'> {}
|
|
31
|
+
interface QrCodeFrameProps extends HTMLProps<'svg'>, QrCodeFrameBaseProps {}
|
|
32
|
+
declare const QrCodeFrame: (props: QrCodeFrameProps) => solid_js437.JSX.Element;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/qr-code/qr-code-overlay.d.ts
|
|
35
|
+
interface QrCodeOverlayBaseProps extends PolymorphicProps<'div'> {}
|
|
36
|
+
interface QrCodeOverlayProps extends HTMLProps<'div'>, QrCodeOverlayBaseProps {}
|
|
37
|
+
declare const QrCodeOverlay: (props: QrCodeOverlayProps) => solid_js437.JSX.Element;
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/components/qr-code/qr-code-pattern.d.ts
|
|
40
|
+
interface QrCodePatternBaseProps extends PolymorphicProps<'path'> {}
|
|
41
|
+
interface QrCodePatternProps extends HTMLProps<'path'>, QrCodePatternBaseProps {}
|
|
42
|
+
declare const QrCodePattern: (props: QrCodePatternProps) => solid_js437.JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/qr-code/qr-code-root.d.ts
|
|
45
|
+
interface QrCodeRootBaseProps extends UseQrCodeProps, PolymorphicProps<'div'> {}
|
|
46
|
+
interface QrCodeRootProps extends HTMLProps<'div'>, QrCodeRootBaseProps {}
|
|
47
|
+
declare const QrCodeRoot: (props: QrCodeRootProps) => solid_js437.JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/components/qr-code/qr-code-root-provider.d.ts
|
|
50
|
+
interface RootProviderProps {
|
|
51
|
+
value: UseQrCodeReturn;
|
|
52
|
+
}
|
|
53
|
+
interface QrCodeRootProviderBaseProps extends PolymorphicProps<'div'> {}
|
|
54
|
+
interface QrCodeRootProviderProps extends HTMLProps<'div'>, RootProviderProps, QrCodeRootProviderBaseProps {}
|
|
55
|
+
declare const QrCodeRootProvider: (props: QrCodeRootProviderProps) => solid_js437.JSX.Element;
|
|
56
|
+
declare namespace qr_code_d_exports {
|
|
57
|
+
export { QrCodeContext as Context, QrCodeContextProps as ContextProps, QrCodeDownloadTrigger as DownloadTrigger, QrCodeDownloadTriggerBaseProps as DownloadTriggerBaseProps, QrCodeDownloadTriggerProps as DownloadTriggerProps, QrCodeFrame as Frame, QrCodeFrameBaseProps as FrameBaseProps, QrCodeFrameProps as FrameProps, GenerateOptions, GenerateResult, QrCodeOverlay as Overlay, QrCodeOverlayBaseProps as OverlayBaseProps, QrCodeOverlayProps as OverlayProps, QrCodePattern as Pattern, QrCodePatternBaseProps as PatternBaseProps, QrCodePatternProps as PatternProps, QrCodeRoot as Root, QrCodeRootBaseProps as RootBaseProps, QrCodeRootProps as RootProps, QrCodeRootProvider as RootProvider, QrCodeRootProviderBaseProps as RootProviderBaseProps, QrCodeRootProviderProps as RootProviderProps };
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { qr_code_d_exports as QrCode, QrCodeContext, type QrCodeContextProps, QrCodeDownloadTrigger, type QrCodeDownloadTriggerBaseProps, type QrCodeDownloadTriggerProps, QrCodeFrame, type QrCodeFrameBaseProps, type QrCodeFrameProps, type QrCodeGenerateOptions, type QrCodeGenerateResult, QrCodeOverlay, type QrCodeOverlayBaseProps, type QrCodeOverlayProps, QrCodePattern, type QrCodePatternBaseProps, type QrCodePatternProps, QrCodeRoot, type QrCodeRootBaseProps, type QrCodeRootProps, QrCodeRootProvider, type QrCodeRootProviderBaseProps, type QrCodeRootProviderProps, type UseQrCodeContext, type UseQrCodeProps, type UseQrCodeReturn, qrCodeAnatomy, useQrCode, useQrCodeContext };
|