@ryuzaki13/react-foundation-ui 1.0.8 → 1.0.12
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/README.md +457 -10
- package/dist/advanced-search/index.js +11 -11
- package/dist/badge/index.js +1 -1
- package/dist/base-table/index.js +1 -1
- package/dist/button/index.js +2 -23
- package/dist/check-box/index.js +1 -1
- package/dist/chunks/{CalendarView-DjeTJkTT.js → CalendarView-DCQjO2ho.js} +2 -2
- package/dist/chunks/{CalendarView-DjeTJkTT.js.map → CalendarView-DCQjO2ho.js.map} +1 -1
- package/dist/chunks/{odata-DSW7z3nh.js → SelectOptionContent-lfEtHXfO.js} +404 -381
- package/dist/chunks/SelectOptionContent-lfEtHXfO.js.map +1 -0
- package/dist/chunks/{TextEditorLexicalClient-16S18Yir.js → TextEditorLexicalClient-Bca3FOUs.js} +8 -8
- package/dist/chunks/{TextEditorLexicalClient-16S18Yir.js.map → TextEditorLexicalClient-Bca3FOUs.js.map} +1 -1
- package/dist/chunks/{BadgeList-DYgun2rf.js → badge-BfbLPk0z.js} +2 -2
- package/dist/chunks/badge-BfbLPk0z.js.map +1 -0
- package/dist/chunks/{base-table-CoQlKABk.js → base-table-CiYSRI_J.js} +4 -4
- package/dist/chunks/{base-table-CoQlKABk.js.map → base-table-CiYSRI_J.js.map} +1 -1
- package/dist/chunks/button-CC0Jdx1j.js +72 -0
- package/dist/chunks/button-CC0Jdx1j.js.map +1 -0
- package/dist/chunks/{CheckBox-BowNqqd3.js → check-box-BowNqqd3.js} +1 -1
- package/dist/chunks/check-box-BowNqqd3.js.map +1 -0
- package/dist/chunks/{DropdownMenu-DQeR3y7M.js → context-menu-DQeR3y7M.js} +1 -1
- package/dist/chunks/context-menu-DQeR3y7M.js.map +1 -0
- package/dist/chunks/{DateInput-BTJ-QTUx.js → date-input-DjAQ75n9.js} +5 -5
- package/dist/chunks/date-input-DjAQ75n9.js.map +1 -0
- package/dist/chunks/{DateRangePresetSelect-UgsfaOeM.js → date-range-preset-select-UgsfaOeM.js} +1 -1
- package/dist/chunks/date-range-preset-select-UgsfaOeM.js.map +1 -0
- package/dist/chunks/{Flex-DUYSL5TE.js → flex-CPO6xlPR.js} +38 -33
- package/dist/chunks/{Flex-DUYSL5TE.js.map → flex-CPO6xlPR.js.map} +1 -1
- package/dist/chunks/{Grid-ByIIytjh.js → grid-ByIIytjh.js} +1 -1
- package/dist/chunks/{Grid-ByIIytjh.js.map → grid-ByIIytjh.js.map} +1 -1
- package/dist/chunks/{Input-anSjiM9b.js → input-CZLUUggm.js} +10 -2
- package/dist/chunks/input-CZLUUggm.js.map +1 -0
- package/dist/chunks/{InputFiles-XBQxkHdB.js → input-files-aB8iaqGk.js} +5 -5
- package/dist/chunks/input-files-aB8iaqGk.js.map +1 -0
- package/dist/chunks/{input-search-B_njjJuV.js → input-search-eMvnvgV0.js} +2 -2
- package/dist/chunks/{input-search-B_njjJuV.js.map → input-search-eMvnvgV0.js.map} +1 -1
- package/dist/chunks/{misc-DoqZBMof.js → misc-1PxS8OWD.js} +2 -2
- package/dist/chunks/{misc-DoqZBMof.js.map → misc-1PxS8OWD.js.map} +1 -1
- package/dist/chunks/{modal-ByNRME3b.js → modal-C0j0hEIt.js} +5 -5
- package/dist/chunks/{modal-ByNRME3b.js.map → modal-C0j0hEIt.js.map} +1 -1
- package/dist/chunks/multi-select-r0ekR6Bh.js +541 -0
- package/dist/chunks/multi-select-r0ekR6Bh.js.map +1 -0
- package/dist/chunks/{picker-Du7Y4-el.js → picker-beNX-cW9.js} +11 -11
- package/dist/chunks/{picker-Du7Y4-el.js.map → picker-beNX-cW9.js.map} +1 -1
- package/dist/chunks/{RadioGroup-B9XjkcOy.js → radio-group-B9XjkcOy.js} +1 -1
- package/dist/chunks/radio-group-B9XjkcOy.js.map +1 -0
- package/dist/chunks/select-CFbZS7fx.js +284 -0
- package/dist/chunks/select-CFbZS7fx.js.map +1 -0
- package/dist/chunks/{table-Dc3AqMzP.js → table-BR2VqeEg.js} +2 -2
- package/dist/chunks/{table-Dc3AqMzP.js.map → table-BR2VqeEg.js.map} +1 -1
- package/dist/chunks/{toolbar-BCZNdRXM.js → toolbar-XCDeS2Li.js} +2 -2
- package/dist/chunks/{toolbar-BCZNdRXM.js.map → toolbar-XCDeS2Li.js.map} +1 -1
- package/dist/chunks/{useODataSelectBase-BbeKdq6x.js → useODataSelectBase-BxAvhDww.js} +2 -2
- package/dist/chunks/{useODataSelectBase-BbeKdq6x.js.map → useODataSelectBase-BxAvhDww.js.map} +1 -1
- package/dist/context-menu/index.js +1 -1
- package/dist/date-input/index.js +2 -2
- package/dist/date-range-preset-select/index.js +1 -1
- package/dist/date-time-input/index.js +458 -2
- package/dist/date-time-input/index.js.map +1 -0
- package/dist/detail/index.js +80 -2
- package/dist/detail/index.js.map +1 -0
- package/dist/dialog/index.js +50 -2
- package/dist/dialog/index.js.map +1 -0
- package/dist/disclosure/index.js +49 -2
- package/dist/disclosure/index.js.map +1 -0
- package/dist/drop-zone/index.js +98 -2
- package/dist/drop-zone/index.js.map +1 -0
- package/dist/errors/index.js +1 -1
- package/dist/expandable-action-panel/index.js +82 -2
- package/dist/expandable-action-panel/index.js.map +1 -0
- package/dist/flex/index.js +2 -14
- package/dist/grid/index.js +1 -1
- package/dist/image/index.js +5 -5
- package/dist/input/index.js +2 -14
- package/dist/input-date-time/index.js +258 -2
- package/dist/input-date-time/index.js.map +1 -0
- package/dist/input-file/index.js +105 -2
- package/dist/input-file/index.js.map +1 -0
- package/dist/input-files/index.js +1 -1
- package/dist/input-image/index.js +100 -2
- package/dist/input-image/index.js.map +1 -0
- package/dist/input-search/index.js +1 -1
- package/dist/layout-picker/index.js +1171 -2
- package/dist/layout-picker/index.js.map +1 -0
- package/dist/list/index.js +2 -2
- package/dist/listbox/index.js +81 -2
- package/dist/listbox/index.js.map +1 -0
- package/dist/misc/index.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/multi-select/index.js +2 -3
- package/dist/notifications/index.js +151 -3
- package/dist/notifications/index.js.map +1 -0
- package/dist/picker/index.js +1 -1
- package/dist/preset-range-date-input/index.js +52 -3
- package/dist/preset-range-date-input/index.js.map +1 -1
- package/dist/preset-select/index.js +1 -1
- package/dist/radio-button/index.js +48 -2
- package/dist/radio-button/index.js.map +1 -0
- package/dist/radio-group/index.js +1 -1
- package/dist/select/index.js +2 -4
- package/dist/simple-table/index.js +1 -1
- package/dist/slider/index.js +695 -2
- package/dist/slider/index.js.map +1 -0
- package/dist/splitter/index.js +168 -2
- package/dist/splitter/index.js.map +1 -0
- package/dist/state-select/index.js +78 -2
- package/dist/state-select/index.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +81 -2
- package/dist/switch/index.js.map +1 -0
- package/dist/table/index.js +1 -1
- package/dist/table-sorting/index.js +1 -1
- package/dist/tabs/index.js +384 -2
- package/dist/tabs/index.js.map +1 -0
- package/dist/text-editor/index.js +3 -3
- package/dist/text-editor/toolbar/index.js +1 -1
- package/dist/textarea/index.js +44 -2
- package/dist/textarea/index.js.map +1 -0
- package/dist/toggle/index.js +73 -2
- package/dist/toggle/index.js.map +1 -0
- package/dist/toolbar/index.js +2 -3
- package/dist/toolbar/index.js.map +1 -1
- package/dist/tree-select/index.js +569 -89
- package/dist/tree-select/index.js.map +1 -1
- package/dist/tree-table/index.js +1 -1
- package/package.json +5 -304
- package/src/styles/_base.scss +11 -3
- package/src/styles/config/_index.scss +97 -113
- package/src/styles/mixins/_mixin.scss +4 -4
- package/src/styles/themes/dark/_default.scss +0 -17
- package/storybook-static/assets/Badge-Cr7bAbxa.css +1 -0
- package/storybook-static/assets/Badge-Q8iX86Mn.js +139 -0
- package/storybook-static/assets/Badge.stories-BEMBzR2f.js +51 -0
- package/storybook-static/assets/Button-BN8Cuwsy.css +1 -0
- package/storybook-static/assets/Button-BUkCW8Zg.js +12 -0
- package/storybook-static/assets/Button-CfX05aoR.js +124 -0
- package/storybook-static/assets/Button.stories-BoNLZb6w.js +75 -0
- package/storybook-static/assets/CheckBox-B1xm2kwz.css +1 -0
- package/storybook-static/assets/CheckBox-CcXGzkSE.js +42 -0
- package/storybook-static/assets/CheckBox-DTSi8Yok.js +2 -0
- package/storybook-static/assets/CheckBox.module-Hr3mvdAC.js +1 -0
- package/storybook-static/assets/CheckBox.stories-Bo53TxC7.js +60 -0
- package/storybook-static/assets/Color-KMSTOMOX-Mbprgrbi.js +1 -0
- package/storybook-static/assets/ContextMenu-DYlSojIE.js +40 -0
- package/storybook-static/assets/ContextMenu.stories-BJr53bsq.js +90 -0
- package/storybook-static/assets/DateInput-Bc-MiPp1.css +1 -0
- package/storybook-static/assets/DateInput-BrmilavO.js +40 -0
- package/storybook-static/assets/DateInput-C72jV86j.js +1 -0
- package/storybook-static/assets/DateInput.stories-0hU_T1iZ.js +115 -0
- package/storybook-static/assets/DateRangePresetSelect-BklzgpCR.js +3 -0
- package/storybook-static/assets/DateRangePresetSelect-C7gJVkMB.js +30 -0
- package/storybook-static/assets/DateRangePresetSelect.stories-DQKDcAdP.js +11 -0
- package/storybook-static/assets/Detail-BKSBSfTO.css +1 -0
- package/storybook-static/assets/Detail-BMu0MY4h.js +40 -0
- package/storybook-static/assets/Detail.stories-CgBJjWQd.js +44 -0
- package/storybook-static/assets/Dialog-M7Uy3LiO.js +40 -0
- package/storybook-static/assets/Dialog.stories-BZ0opvaJ.js +31 -0
- package/storybook-static/assets/Disclosure-BXnfHC6v.js +29 -0
- package/storybook-static/assets/Disclosure-zNgXNDkm.css +1 -0
- package/storybook-static/assets/Disclosure.stories-C7wh6KJU.js +35 -0
- package/storybook-static/assets/DocsRenderer-JROSPFPF-BjXFJaat.js +2 -0
- package/storybook-static/assets/DropZone-C7HIN5ml.css +1 -0
- package/storybook-static/assets/DropZone-cd1aCNT1.js +36 -0
- package/storybook-static/assets/DropZone.stories-CVu731Lk.js +44 -0
- package/storybook-static/assets/DropdownMenu-B97Ad5Dg.js +1 -0
- package/storybook-static/assets/DropdownMenu-BgzIzwzM.css +1 -0
- package/storybook-static/assets/ExpandableActionPanel-D7q9two4.css +1 -0
- package/storybook-static/assets/ExpandableActionPanel.stories-k-eTxMyV.js +20 -0
- package/storybook-static/assets/Flex-BQkqAqL5.js +61 -0
- package/storybook-static/assets/Flex-C_VnI9xY.js +3 -0
- package/storybook-static/assets/Flex-IXK2se1Y.css +1 -0
- package/storybook-static/assets/Flex.stories-C1VO9Ct3.js +300 -0
- package/storybook-static/assets/Grid-Dr3BuEgd.js +61 -0
- package/storybook-static/assets/Grid-K9R_IHaw.css +1 -0
- package/storybook-static/assets/Grid-y8wKyEwc.js +163 -0
- package/storybook-static/assets/Grid.stories-6WUp6Tof.js +495 -0
- package/storybook-static/assets/Input-B7DWcGCL.js +3 -0
- package/storybook-static/assets/Input-BioMOZju.css +1 -0
- package/storybook-static/assets/Input-yly8wxYE.js +39 -0
- package/storybook-static/assets/Input.stories-CkVqvY-C.js +38 -0
- package/storybook-static/assets/InputDateTime-Cv8gmBe0.css +1 -0
- package/storybook-static/assets/InputDateTime-DHirw8rp.js +39 -0
- package/storybook-static/assets/InputDateTime.stories-Dci_81MA.js +35 -0
- package/storybook-static/assets/InputFile-DBFfWIkJ.js +37 -0
- package/storybook-static/assets/InputFile-hNjZ_wlG.css +1 -0
- package/storybook-static/assets/InputFile.stories-Bar27dP5.js +36 -0
- package/storybook-static/assets/InputFiles-ByK52qUe.css +1 -0
- package/storybook-static/assets/InputFiles-DPz7PiOC.js +1 -0
- package/storybook-static/assets/InputFiles-tULKp1KR.js +37 -0
- package/storybook-static/assets/InputFiles.stories-CkZ8et32.js +33 -0
- package/storybook-static/assets/InputImage-C-pnIXhT.css +1 -0
- package/storybook-static/assets/InputImage-D8VckxKl.js +37 -0
- package/storybook-static/assets/InputImage.stories-Dq8ORce3.js +51 -0
- package/storybook-static/assets/LayoutPicker-9tLTatHF.css +1 -0
- package/storybook-static/assets/LayoutPicker-l3XFAkqv.js +65 -0
- package/storybook-static/assets/LayoutPicker.stories-BjUmm2cg.js +449 -0
- package/storybook-static/assets/Listbox-B_6QVPAJ.js +38 -0
- package/storybook-static/assets/Listbox.stories-Cf_ApbmT.js +47 -0
- package/storybook-static/assets/Modal-BL_cTIW7.css +1 -0
- package/storybook-static/assets/Modal-BzienAaa.js +54 -0
- package/storybook-static/assets/Modal.stories-cPIHRa9a.js +180 -0
- package/storybook-static/assets/MultiSelect-CK2D25RA.js +56 -0
- package/storybook-static/assets/MultiSelect-CUQV67Ev.css +1 -0
- package/storybook-static/assets/MultiSelect-CjGBd2pC.js +2 -0
- package/storybook-static/assets/MultiSelect.stories--f_FoBzR.js +29 -0
- package/storybook-static/assets/NotificationsHost-D5Pvn4eu.css +1 -0
- package/storybook-static/assets/NotificationsHost-DKmlmqh0.js +44 -0
- package/storybook-static/assets/NotificationsHost.stories-1bPUJXfm.js +25 -0
- package/storybook-static/assets/ODataMultiSelect-BWUXuzlr.js +53 -0
- package/storybook-static/assets/ODataMultiSelect.stories-DA0f6SUG.js +73 -0
- package/storybook-static/assets/ODataSelect-D7GAFOcM.js +1 -0
- package/storybook-static/assets/ODataSelect-aNdHSjo_.js +52 -0
- package/storybook-static/assets/ODataSelect.stories-CjXA9Y9l.js +73 -0
- package/storybook-static/assets/ODataTreeMultiSelect-DKodulQ8.js +17 -0
- package/storybook-static/assets/ODataTreeMultiSelect.stories-BjRcb4W0.js +24 -0
- package/storybook-static/assets/ODataTreeSelect-Ck8HCh74.js +16 -0
- package/storybook-static/assets/ODataTreeSelect.stories-BgDj08mH.js +21 -0
- package/storybook-static/assets/PeriodSelect-Db7QmUfi.js +35 -0
- package/storybook-static/assets/PeriodSelect.stories-BI6yLRCK.js +23 -0
- package/storybook-static/assets/Popover-DR-r8iC5.js +45 -0
- package/storybook-static/assets/Popover.stories-ReRFMWiO.js +69 -0
- package/storybook-static/assets/PresetRangeDateInput-tSpiPAT9.js +31 -0
- package/storybook-static/assets/PresetRangeDateInput.stories-LVQa2_DG.js +15 -0
- package/storybook-static/assets/RadioButton-C-RjN-wY.css +1 -0
- package/storybook-static/assets/RadioButton-sEzdlL1y.js +38 -0
- package/storybook-static/assets/RadioButton.stories-CR0km0zF.js +36 -0
- package/storybook-static/assets/RadioGroup-BtNCd3Je.js +1 -0
- package/storybook-static/assets/RadioGroup-D-J7t20C.css +1 -0
- package/storybook-static/assets/RadioGroup-DR0H6Z0w.js +42 -0
- package/storybook-static/assets/RadioGroup.stories-FEqmkrs7.js +42 -0
- package/storybook-static/assets/Select-CO4ZHP9h.css +1 -0
- package/storybook-static/assets/Select-CUAevk01.js +57 -0
- package/storybook-static/assets/Select-DYVS7SCZ.js +9 -0
- package/storybook-static/assets/Select.stories-Df_c0IfC.js +37 -0
- package/storybook-static/assets/SelectOptionContent-B7W0Mned.js +1 -0
- package/storybook-static/assets/SerializableSelect-D63xBqOT.js +48 -0
- package/storybook-static/assets/SerializableSelect-DwCnuBgv.js +4 -0
- package/storybook-static/assets/SerializableSelect.stories-BLPXVOtP.js +43 -0
- package/storybook-static/assets/SingleDateTimeInput-mOllNfg2.css +1 -0
- package/storybook-static/assets/SingleDateTimeInput-xMkDodYz.js +53 -0
- package/storybook-static/assets/SingleDateTimeInput.stories-kcuSwx76.js +78 -0
- package/storybook-static/assets/Slider-BHZgpCjC.js +63 -0
- package/storybook-static/assets/Slider.stories-Bias_Soq.js +77 -0
- package/storybook-static/assets/SliderInput-jzFZcWr7.js +58 -0
- package/storybook-static/assets/SliderInput.stories-B7w8bp86.js +67 -0
- package/storybook-static/assets/Sortable-DcmDaPBw.js +72 -0
- package/storybook-static/assets/Sortable.stories-CwhHGCih.js +141 -0
- package/storybook-static/assets/Splitter-Bn7AJiD_.js +83 -0
- package/storybook-static/assets/Splitter-D-LmmQad.css +1 -0
- package/storybook-static/assets/Splitter.stories-CSvjKF-O.js +22 -0
- package/storybook-static/assets/StateSelect-MIGiXD10.js +36 -0
- package/storybook-static/assets/StateSelect-pIMkhj9A.css +1 -0
- package/storybook-static/assets/StateSelect.stories-BGDCnVqb.js +47 -0
- package/storybook-static/assets/Switch-C5zxOq_O.js +36 -0
- package/storybook-static/assets/Switch-DGYGWtPw.css +1 -0
- package/storybook-static/assets/Switch.stories-BmCl_Ts5.js +26 -0
- package/storybook-static/assets/Table-BGvRn9y0.css +1 -0
- package/storybook-static/assets/Table-CoySXvs5.js +197 -0
- package/storybook-static/assets/Table.stories-CA7ARhwC.js +122 -0
- package/storybook-static/assets/Tabs-BLkTB6pp.css +1 -0
- package/storybook-static/assets/Tabs-CQdzU18E.js +72 -0
- package/storybook-static/assets/Tabs.stories-SBWTpiy2.js +58 -0
- package/storybook-static/assets/Textarea-Bo-I0cnE.js +37 -0
- package/storybook-static/assets/Textarea-CPNMR88I.css +1 -0
- package/storybook-static/assets/Textarea.stories-C1wO9PKR.js +27 -0
- package/storybook-static/assets/TimePanel-0-mzaXky.js +1 -0
- package/storybook-static/assets/TimePanel-Bh98qsCo.css +1 -0
- package/storybook-static/assets/TimePanel.stories-C1VM13qN.js +25 -0
- package/storybook-static/assets/Toggle-B9H63WWC.js +37 -0
- package/storybook-static/assets/Toggle-DHulCX3T.css +1 -0
- package/storybook-static/assets/Toggle.stories-CKlGFcZW.js +30 -0
- package/storybook-static/assets/TreeMultiSelect-AXIl2Ge2.js +15 -0
- package/storybook-static/assets/TreeMultiSelect-Ci3bUpmv.js +1 -0
- package/storybook-static/assets/TreeMultiSelect.stories-CXGt4Q_u.js +14 -0
- package/storybook-static/assets/TreePickerBase-Md6Mt9qF.js +19 -0
- package/storybook-static/assets/TreePickerBase-qreyVjhY.css +1 -0
- package/storybook-static/assets/TreeSelect-BWoURakw.js +15 -0
- package/storybook-static/assets/TreeSelect-bOgRYtQQ.js +1 -0
- package/storybook-static/assets/TreeSelect.stories-By0h6wRi.js +16 -0
- package/storybook-static/assets/TreeTable--ZoksUiw.css +1 -0
- package/storybook-static/assets/TreeTable-C52Jh7O_.js +175 -0
- package/storybook-static/assets/TreeTable.stories-BH9Q8NPP.js +83 -0
- package/storybook-static/assets/WithTooltip-7X4HQR7L-DQXHhZoH.js +9 -0
- package/storybook-static/assets/axe-GLfyhAYL.js +20 -0
- package/storybook-static/assets/base-table-BNO0lnTL.css +1 -0
- package/storybook-static/assets/base-table-BSkQBgdx.js +18 -0
- package/storybook-static/assets/blocks-CwEU-ME1.js +285 -0
- package/storybook-static/assets/button-Bl3Hu8CS.js +1 -0
- package/storybook-static/assets/check-box-BrnNQnSi.js +1 -0
- package/storybook-static/assets/chunk-242VQQM5-Dtm7LRbQ.js +1 -0
- package/storybook-static/assets/chunk-3LY4VQVK-BxHCYS2R.js +6 -0
- package/storybook-static/assets/chunk-LITCR56V-euffoZAN.js +18 -0
- package/storybook-static/assets/contextMenu-Do6qEwKB.js +2 -0
- package/storybook-static/assets/date-segments-CzU9k5bl.js +1 -0
- package/storybook-static/assets/error-RVOk7zpw.js +1 -0
- package/storybook-static/assets/file-hArYcyES.js +1 -0
- package/storybook-static/assets/flex-DuYzsEBQ.js +1 -0
- package/storybook-static/assets/floating-ui.react-BR04wkLx.js +1 -0
- package/storybook-static/assets/formatter-L2YTDE3Q-Cdp-Jp2M.js +1 -0
- package/storybook-static/assets/formatters-yIBztcem.js +3 -0
- package/storybook-static/assets/grid-D0WOuGlB.js +1 -0
- package/storybook-static/assets/hooks-BEB2Gqy0.js +5 -0
- package/storybook-static/assets/iframe-SfMJGCsn.js +1117 -0
- package/storybook-static/assets/input-Be5K9_B7.js +1 -0
- package/storybook-static/assets/jsx-runtime-BBQGix-2.js +1 -0
- package/storybook-static/assets/lucide-react-CK2oyDtF.js +1 -0
- package/storybook-static/assets/matchers-JIUQ3HVY-BPS-eazD.js +28 -0
- package/storybook-static/assets/mdx-react-shim-DnKFgFHy.js +1 -0
- package/storybook-static/assets/media-Djn0SUaN.js +1 -0
- package/storybook-static/assets/misc-CPvLzCFJ.js +5 -0
- package/storybook-static/assets/misc-CerLA5Xh.css +1 -0
- package/storybook-static/assets/notifications-Zk996KvR.js +1 -0
- package/storybook-static/assets/odata-C2BNbnc9.js +1 -0
- package/storybook-static/assets/odata-service-8sDCOQ3I.js +1 -0
- package/storybook-static/assets/odataStoryFixtures-BBfdskiC.js +25 -0
- package/storybook-static/assets/picker-BmTTr59E.css +1 -0
- package/storybook-static/assets/picker-De4ZbESe.js +1 -0
- package/storybook-static/assets/popover-BiQHI7Wi.css +1 -0
- package/storybook-static/assets/popover-DWA5VOMQ.js +2 -0
- package/storybook-static/assets/preload-helper-B45gAKPr.js +1 -0
- package/storybook-static/assets/preset-select-DozCGhmu.js +5 -0
- package/storybook-static/assets/react-18-CfpYK14y.js +9 -0
- package/storybook-static/assets/react-BWN-5oQj.js +9 -0
- package/storybook-static/assets/react-dom-CncQzc_h.js +1 -0
- package/storybook-static/assets/select-BPvMbVDe.js +1 -0
- package/storybook-static/assets/slider-39Mty47U.js +2 -0
- package/storybook-static/assets/slider-DMDFRH6B.css +1 -0
- package/storybook-static/assets/sortable-CgCCp3dq.js +1 -0
- package/storybook-static/assets/sortable-DiBavgm0.css +1 -0
- package/storybook-static/assets/syntaxhighlighter-RTCFPKCB-Di6cCrDX.js +6 -0
- package/storybook-static/assets/text-BxA8yj6Z.js +4 -0
- package/storybook-static/assets/theming-DZauqOKI.js +39 -0
- package/storybook-static/assets/treeStoryFixtures-Cd984L7t.js +1 -0
- package/storybook-static/assets/ui-CmVy0trY.js +1 -0
- package/storybook-static/assets/ui-ZWM9zG1I.css +1 -0
- package/storybook-static/assets/ui.module-DS2qtZts.js +1 -0
- package/storybook-static/assets/uiClasses-CZ_HVS3Y.js +1 -0
- package/storybook-static/assets/useODataSelectBase-D33B4x2W.js +1 -0
- package/storybook-static/assets/useODataTreeData-CDdzN-LC.js +1 -0
- package/storybook-static/assets/utils-CReRlw17.js +1 -0
- package/storybook-static/favicon-wrapper.svg +46 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +709 -0
- package/storybook-static/index.html +146 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/a11y-2/manager-bundle.js +57 -0
- package/storybook-static/sb-addons/docs-1/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +630 -0
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-runtime.js +76714 -0
- package/storybook-static/sb-manager/globals.js +24 -0
- package/storybook-static/sb-manager/manager-stores.js +23 -0
- package/storybook-static/sb-manager/runtime.js +27451 -0
- package/storybook-static/vite-inject-mocker-entry.js +2 -0
- package/dist/badge/stories/Badge.stories.d.ts +0 -54
- package/dist/badge/stories/Badge.stories.d.ts.map +0 -1
- package/dist/badge/stories/Badge.stories.js +0 -147
- package/dist/badge/stories/Badge.stories.js.map +0 -1
- package/dist/button/index.js.map +0 -1
- package/dist/button/stories/Button.stories.d.ts +0 -69
- package/dist/button/stories/Button.stories.d.ts.map +0 -1
- package/dist/button/stories/Button.stories.js +0 -223
- package/dist/button/stories/Button.stories.js.map +0 -1
- package/dist/check-box/stories/CheckBox.stories.d.ts +0 -58
- package/dist/check-box/stories/CheckBox.stories.d.ts.map +0 -1
- package/dist/check-box/stories/CheckBox.stories.js +0 -150
- package/dist/check-box/stories/CheckBox.stories.js.map +0 -1
- package/dist/chunks/BadgeList-DYgun2rf.js.map +0 -1
- package/dist/chunks/Button-CCWuggdA.js +0 -55
- package/dist/chunks/Button-CCWuggdA.js.map +0 -1
- package/dist/chunks/CheckBox-BowNqqd3.js.map +0 -1
- package/dist/chunks/DateInput-BTJ-QTUx.js.map +0 -1
- package/dist/chunks/DateRangePresetSelect-UgsfaOeM.js.map +0 -1
- package/dist/chunks/Detail-DHDMsg8q.js +0 -80
- package/dist/chunks/Detail-DHDMsg8q.js.map +0 -1
- package/dist/chunks/Dialog-CFIvGxER.js +0 -50
- package/dist/chunks/Dialog-CFIvGxER.js.map +0 -1
- package/dist/chunks/DisclosureGroup-CfRTkl6Z.js +0 -49
- package/dist/chunks/DisclosureGroup-CfRTkl6Z.js.map +0 -1
- package/dist/chunks/DropZone-DgDMu4Iw.js +0 -98
- package/dist/chunks/DropZone-DgDMu4Iw.js.map +0 -1
- package/dist/chunks/DropdownMenu-DQeR3y7M.js.map +0 -1
- package/dist/chunks/Input-anSjiM9b.js.map +0 -1
- package/dist/chunks/InputDateTime-BGLJ_pbV.js +0 -258
- package/dist/chunks/InputDateTime-BGLJ_pbV.js.map +0 -1
- package/dist/chunks/InputFile-B5E0prk_.js +0 -105
- package/dist/chunks/InputFile-B5E0prk_.js.map +0 -1
- package/dist/chunks/InputFiles-XBQxkHdB.js.map +0 -1
- package/dist/chunks/InputImage-Bs6cFQIo.js +0 -100
- package/dist/chunks/InputImage-Bs6cFQIo.js.map +0 -1
- package/dist/chunks/LabeledExpandableActionPanel-D3kUvmFH.js +0 -82
- package/dist/chunks/LabeledExpandableActionPanel-D3kUvmFH.js.map +0 -1
- package/dist/chunks/Listbox-BZlp5qHz.js +0 -81
- package/dist/chunks/Listbox-BZlp5qHz.js.map +0 -1
- package/dist/chunks/MultiSelect-DblDAklj.js +0 -422
- package/dist/chunks/MultiSelect-DblDAklj.js.map +0 -1
- package/dist/chunks/NotificationsHost-_icJx4xR.js +0 -151
- package/dist/chunks/NotificationsHost-_icJx4xR.js.map +0 -1
- package/dist/chunks/PresetRangeDateInput-Bytk5sAs.js +0 -53
- package/dist/chunks/PresetRangeDateInput-Bytk5sAs.js.map +0 -1
- package/dist/chunks/RadioButton-D0uA0rX_.js +0 -48
- package/dist/chunks/RadioButton-D0uA0rX_.js.map +0 -1
- package/dist/chunks/RadioGroup-B9XjkcOy.js.map +0 -1
- package/dist/chunks/Select-ClBs-16a.js +0 -182
- package/dist/chunks/Select-ClBs-16a.js.map +0 -1
- package/dist/chunks/SelectOptionContent-CI7wq9Oi.js +0 -27
- package/dist/chunks/SelectOptionContent-CI7wq9Oi.js.map +0 -1
- package/dist/chunks/SerializableSelect-Ds8wp2_p.js +0 -33
- package/dist/chunks/SerializableSelect-Ds8wp2_p.js.map +0 -1
- package/dist/chunks/SingleDateTimeInput-kXrkLAAI.js +0 -331
- package/dist/chunks/SingleDateTimeInput-kXrkLAAI.js.map +0 -1
- package/dist/chunks/Splitter-BFkVGVRb.js +0 -168
- package/dist/chunks/Splitter-BFkVGVRb.js.map +0 -1
- package/dist/chunks/StateSelect-BzUsurDe.js +0 -78
- package/dist/chunks/StateSelect-BzUsurDe.js.map +0 -1
- package/dist/chunks/Switch-B57Qmy1z.js +0 -81
- package/dist/chunks/Switch-B57Qmy1z.js.map +0 -1
- package/dist/chunks/Textarea-CLyGS1h9.js +0 -44
- package/dist/chunks/Textarea-CLyGS1h9.js.map +0 -1
- package/dist/chunks/TimePanel-b4saqoUY.js +0 -135
- package/dist/chunks/TimePanel-b4saqoUY.js.map +0 -1
- package/dist/chunks/Toggle-DVqOQXmt.js +0 -73
- package/dist/chunks/Toggle-DVqOQXmt.js.map +0 -1
- package/dist/chunks/TreeMultiSelect-mIG8VKx8.js +0 -40
- package/dist/chunks/TreeMultiSelect-mIG8VKx8.js.map +0 -1
- package/dist/chunks/TreePickerBase-C9HEABt5.js +0 -423
- package/dist/chunks/TreePickerBase-C9HEABt5.js.map +0 -1
- package/dist/chunks/TreeSelect-B9rb_fbI.js +0 -37
- package/dist/chunks/TreeSelect-B9rb_fbI.js.map +0 -1
- package/dist/chunks/layout-picker-CSLuIUVZ.js +0 -1171
- package/dist/chunks/layout-picker-CSLuIUVZ.js.map +0 -1
- package/dist/chunks/multi-select-ei7LHBCv.js +0 -126
- package/dist/chunks/multi-select-ei7LHBCv.js.map +0 -1
- package/dist/chunks/odata-DSW7z3nh.js.map +0 -1
- package/dist/chunks/select-Ds7_EAGN.js +0 -81
- package/dist/chunks/select-Ds7_EAGN.js.map +0 -1
- package/dist/chunks/slider-uU26AeGu.js +0 -695
- package/dist/chunks/slider-uU26AeGu.js.map +0 -1
- package/dist/chunks/tabs-DlnVVMJl.js +0 -384
- package/dist/chunks/tabs-DlnVVMJl.js.map +0 -1
- package/dist/chunks/treeStoryFixtures-Bhm3Gdky.js +0 -113
- package/dist/chunks/treeStoryFixtures-Bhm3Gdky.js.map +0 -1
- package/dist/context-menu/stories/ContextMenu.stories.d.ts +0 -16
- package/dist/context-menu/stories/ContextMenu.stories.d.ts.map +0 -1
- package/dist/context-menu/stories/ContextMenu.stories.js +0 -136
- package/dist/context-menu/stories/ContextMenu.stories.js.map +0 -1
- package/dist/date-input/stories/DateInput.stories.d.ts +0 -132
- package/dist/date-input/stories/DateInput.stories.d.ts.map +0 -1
- package/dist/date-input/stories/DateInput.stories.js +0 -247
- package/dist/date-input/stories/DateInput.stories.js.map +0 -1
- package/dist/date-range-preset-select/stories/DateRangePresetSelect.stories.d.ts +0 -22
- package/dist/date-range-preset-select/stories/DateRangePresetSelect.stories.d.ts.map +0 -1
- package/dist/date-range-preset-select/stories/DateRangePresetSelect.stories.js +0 -41
- package/dist/date-range-preset-select/stories/DateRangePresetSelect.stories.js.map +0 -1
- package/dist/date-time-input/stories/SingleDateTimeInput.stories.d.ts +0 -95
- package/dist/date-time-input/stories/SingleDateTimeInput.stories.d.ts.map +0 -1
- package/dist/date-time-input/stories/SingleDateTimeInput.stories.js +0 -195
- package/dist/date-time-input/stories/SingleDateTimeInput.stories.js.map +0 -1
- package/dist/date-time-input/stories/TimePanel.stories.d.ts +0 -26
- package/dist/date-time-input/stories/TimePanel.stories.d.ts.map +0 -1
- package/dist/date-time-input/stories/TimePanel.stories.js +0 -53
- package/dist/date-time-input/stories/TimePanel.stories.js.map +0 -1
- package/dist/detail/stories/Detail.stories.d.ts +0 -67
- package/dist/detail/stories/Detail.stories.d.ts.map +0 -1
- package/dist/detail/stories/Detail.stories.js +0 -170
- package/dist/detail/stories/Detail.stories.js.map +0 -1
- package/dist/dialog/stories/Dialog.stories.d.ts +0 -50
- package/dist/dialog/stories/Dialog.stories.d.ts.map +0 -1
- package/dist/dialog/stories/Dialog.stories.js +0 -89
- package/dist/dialog/stories/Dialog.stories.js.map +0 -1
- package/dist/disclosure/stories/Disclosure.stories.d.ts +0 -35
- package/dist/disclosure/stories/Disclosure.stories.d.ts.map +0 -1
- package/dist/disclosure/stories/Disclosure.stories.js +0 -70
- package/dist/disclosure/stories/Disclosure.stories.js.map +0 -1
- package/dist/drop-zone/stories/DropZone.stories.d.ts +0 -63
- package/dist/drop-zone/stories/DropZone.stories.d.ts.map +0 -1
- package/dist/drop-zone/stories/DropZone.stories.js +0 -97
- package/dist/drop-zone/stories/DropZone.stories.js.map +0 -1
- package/dist/expandable-action-panel/stories/ExpandableActionPanel.stories.d.ts +0 -44
- package/dist/expandable-action-panel/stories/ExpandableActionPanel.stories.d.ts.map +0 -1
- package/dist/expandable-action-panel/stories/ExpandableActionPanel.stories.js +0 -117
- package/dist/expandable-action-panel/stories/ExpandableActionPanel.stories.js.map +0 -1
- package/dist/flex/index.js.map +0 -1
- package/dist/flex/stories/Flex.stories.d.ts +0 -24
- package/dist/flex/stories/Flex.stories.d.ts.map +0 -1
- package/dist/flex/stories/Flex.stories.js +0 -607
- package/dist/flex/stories/Flex.stories.js.map +0 -1
- package/dist/grid/stories/Grid.stories.d.ts +0 -24
- package/dist/grid/stories/Grid.stories.d.ts.map +0 -1
- package/dist/grid/stories/Grid.stories.js +0 -840
- package/dist/grid/stories/Grid.stories.js.map +0 -1
- package/dist/input/index.js.map +0 -1
- package/dist/input/stories/Input.stories.d.ts +0 -69
- package/dist/input/stories/Input.stories.d.ts.map +0 -1
- package/dist/input/stories/Input.stories.js +0 -132
- package/dist/input/stories/Input.stories.js.map +0 -1
- package/dist/input-date-time/stories/InputDateTime.stories.d.ts +0 -69
- package/dist/input-date-time/stories/InputDateTime.stories.d.ts.map +0 -1
- package/dist/input-date-time/stories/InputDateTime.stories.js +0 -125
- package/dist/input-date-time/stories/InputDateTime.stories.js.map +0 -1
- package/dist/input-file/stories/InputFile.stories.d.ts +0 -85
- package/dist/input-file/stories/InputFile.stories.d.ts.map +0 -1
- package/dist/input-file/stories/InputFile.stories.js +0 -158
- package/dist/input-file/stories/InputFile.stories.js.map +0 -1
- package/dist/input-files/stories/InputFiles.stories.d.ts +0 -86
- package/dist/input-files/stories/InputFiles.stories.d.ts.map +0 -1
- package/dist/input-files/stories/InputFiles.stories.js +0 -158
- package/dist/input-files/stories/InputFiles.stories.js.map +0 -1
- package/dist/input-image/stories/InputImage.stories.d.ts +0 -81
- package/dist/input-image/stories/InputImage.stories.d.ts.map +0 -1
- package/dist/input-image/stories/InputImage.stories.js +0 -174
- package/dist/input-image/stories/InputImage.stories.js.map +0 -1
- package/dist/layout-picker/stories/LayoutPicker.stories.d.ts +0 -873
- package/dist/layout-picker/stories/LayoutPicker.stories.d.ts.map +0 -1
- package/dist/layout-picker/stories/LayoutPicker.stories.js +0 -422
- package/dist/layout-picker/stories/LayoutPicker.stories.js.map +0 -1
- package/dist/listbox/stories/Listbox.stories.d.ts +0 -76
- package/dist/listbox/stories/Listbox.stories.d.ts.map +0 -1
- package/dist/listbox/stories/Listbox.stories.js +0 -140
- package/dist/listbox/stories/Listbox.stories.js.map +0 -1
- package/dist/modal/stories/Modal.stories.d.ts +0 -74
- package/dist/modal/stories/Modal.stories.d.ts.map +0 -1
- package/dist/modal/stories/Modal.stories.js +0 -320
- package/dist/modal/stories/Modal.stories.js.map +0 -1
- package/dist/multi-select/ui/stories/MultiSelect.stories.d.ts +0 -67
- package/dist/multi-select/ui/stories/MultiSelect.stories.d.ts.map +0 -1
- package/dist/multi-select/ui/stories/MultiSelect.stories.js +0 -114
- package/dist/multi-select/ui/stories/MultiSelect.stories.js.map +0 -1
- package/dist/multi-select/ui/stories/ODataMultiSelect.stories.d.ts +0 -44
- package/dist/multi-select/ui/stories/ODataMultiSelect.stories.d.ts.map +0 -1
- package/dist/notifications/ui/stories/NotificationsHost.stories.d.ts +0 -21
- package/dist/notifications/ui/stories/NotificationsHost.stories.d.ts.map +0 -1
- package/dist/notifications/ui/stories/NotificationsHost.stories.js +0 -326
- package/dist/notifications/ui/stories/NotificationsHost.stories.js.map +0 -1
- package/dist/period-select/stories/PeriodSelect.stories.d.ts +0 -96
- package/dist/period-select/stories/PeriodSelect.stories.d.ts.map +0 -1
- package/dist/period-select/stories/PeriodSelect.stories.js +0 -166
- package/dist/period-select/stories/PeriodSelect.stories.js.map +0 -1
- package/dist/popover/stories/Popover.stories.d.ts +0 -10
- package/dist/popover/stories/Popover.stories.d.ts.map +0 -1
- package/dist/popover/stories/Popover.stories.js +0 -75
- package/dist/popover/stories/Popover.stories.js.map +0 -1
- package/dist/preset-range-date-input/ui/stories/PresetRangeDateInput.stories.d.ts +0 -22
- package/dist/preset-range-date-input/ui/stories/PresetRangeDateInput.stories.d.ts.map +0 -1
- package/dist/preset-range-date-input/ui/stories/PresetRangeDateInput.stories.js +0 -45
- package/dist/preset-range-date-input/ui/stories/PresetRangeDateInput.stories.js.map +0 -1
- package/dist/radio-button/stories/RadioButton.stories.d.ts +0 -60
- package/dist/radio-button/stories/RadioButton.stories.d.ts.map +0 -1
- package/dist/radio-button/stories/RadioButton.stories.js +0 -121
- package/dist/radio-button/stories/RadioButton.stories.js.map +0 -1
- package/dist/radio-group/stories/RadioGroup.stories.d.ts +0 -74
- package/dist/radio-group/stories/RadioGroup.stories.d.ts.map +0 -1
- package/dist/radio-group/stories/RadioGroup.stories.js +0 -146
- package/dist/radio-group/stories/RadioGroup.stories.js.map +0 -1
- package/dist/select/stories/ODataSelect.stories.d.ts +0 -46
- package/dist/select/stories/ODataSelect.stories.d.ts.map +0 -1
- package/dist/select/stories/Select.stories.d.ts +0 -127
- package/dist/select/stories/Select.stories.d.ts.map +0 -1
- package/dist/select/stories/Select.stories.js +0 -214
- package/dist/select/stories/Select.stories.js.map +0 -1
- package/dist/select/stories/SerializableSelect.stories.d.ts +0 -91
- package/dist/select/stories/SerializableSelect.stories.d.ts.map +0 -1
- package/dist/select/stories/SerializableSelect.stories.js +0 -165
- package/dist/select/stories/SerializableSelect.stories.js.map +0 -1
- package/dist/select/stories/odataStoryCollection.d.ts +0 -2
- package/dist/select/stories/odataStoryCollection.d.ts.map +0 -1
- package/dist/select/stories/odataStoryFixtures.d.ts +0 -35
- package/dist/select/stories/odataStoryFixtures.d.ts.map +0 -1
- package/dist/slider/stories/Slider.stories.d.ts +0 -29
- package/dist/slider/stories/Slider.stories.d.ts.map +0 -1
- package/dist/slider/stories/Slider.stories.js +0 -310
- package/dist/slider/stories/Slider.stories.js.map +0 -1
- package/dist/slider/stories/SliderInput.stories.d.ts +0 -30
- package/dist/slider/stories/SliderInput.stories.d.ts.map +0 -1
- package/dist/slider/stories/SliderInput.stories.js +0 -282
- package/dist/slider/stories/SliderInput.stories.js.map +0 -1
- package/dist/sortable/stories/Sortable.stories.d.ts +0 -58
- package/dist/sortable/stories/Sortable.stories.d.ts.map +0 -1
- package/dist/sortable/stories/Sortable.stories.js +0 -255
- package/dist/sortable/stories/Sortable.stories.js.map +0 -1
- package/dist/splitter/stories/Splitter.stories.d.ts +0 -66
- package/dist/splitter/stories/Splitter.stories.d.ts.map +0 -1
- package/dist/splitter/stories/Splitter.stories.js +0 -223
- package/dist/splitter/stories/Splitter.stories.js.map +0 -1
- package/dist/state-select/stories/StateSelect.stories.d.ts +0 -70
- package/dist/state-select/stories/StateSelect.stories.d.ts.map +0 -1
- package/dist/state-select/stories/StateSelect.stories.js +0 -145
- package/dist/state-select/stories/StateSelect.stories.js.map +0 -1
- package/dist/switch/stories/Switch.stories.d.ts +0 -59
- package/dist/switch/stories/Switch.stories.d.ts.map +0 -1
- package/dist/switch/stories/Switch.stories.js +0 -90
- package/dist/switch/stories/Switch.stories.js.map +0 -1
- package/dist/table/stories/Table.stories.d.ts +0 -155
- package/dist/table/stories/Table.stories.d.ts.map +0 -1
- package/dist/tabs/stories/Tabs.stories.d.ts +0 -94
- package/dist/tabs/stories/Tabs.stories.d.ts.map +0 -1
- package/dist/tabs/stories/Tabs.stories.js +0 -283
- package/dist/tabs/stories/Tabs.stories.js.map +0 -1
- package/dist/textarea/stories/Textarea.stories.d.ts +0 -64
- package/dist/textarea/stories/Textarea.stories.d.ts.map +0 -1
- package/dist/textarea/stories/Textarea.stories.js +0 -98
- package/dist/textarea/stories/Textarea.stories.js.map +0 -1
- package/dist/toggle/stories/Toggle.stories.d.ts +0 -61
- package/dist/toggle/stories/Toggle.stories.d.ts.map +0 -1
- package/dist/toggle/stories/Toggle.stories.js +0 -102
- package/dist/toggle/stories/Toggle.stories.js.map +0 -1
- package/dist/tree-select/stories/ODataTreeMultiSelect.stories.d.ts +0 -55
- package/dist/tree-select/stories/ODataTreeMultiSelect.stories.d.ts.map +0 -1
- package/dist/tree-select/stories/ODataTreeSelect.stories.d.ts +0 -54
- package/dist/tree-select/stories/ODataTreeSelect.stories.d.ts.map +0 -1
- package/dist/tree-select/stories/TreeMultiSelect.stories.d.ts +0 -35
- package/dist/tree-select/stories/TreeMultiSelect.stories.d.ts.map +0 -1
- package/dist/tree-select/stories/TreeMultiSelect.stories.js +0 -64
- package/dist/tree-select/stories/TreeMultiSelect.stories.js.map +0 -1
- package/dist/tree-select/stories/TreeSelect.stories.d.ts +0 -35
- package/dist/tree-select/stories/TreeSelect.stories.d.ts.map +0 -1
- package/dist/tree-select/stories/TreeSelect.stories.js +0 -66
- package/dist/tree-select/stories/TreeSelect.stories.js.map +0 -1
- package/dist/tree-select/stories/treeStoryFixtures.d.ts +0 -3
- package/dist/tree-select/stories/treeStoryFixtures.d.ts.map +0 -1
- package/dist/tree-table/stories/TreeTable.stories.d.ts +0 -158
- package/dist/tree-table/stories/TreeTable.stories.d.ts.map +0 -1
- package/src/styles/fonts.scss +0 -47
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as e,n as t,t as n}from"./assets/preload-helper-B45gAKPr.js";function r(e,t,n={}){let r=[],s=new te,c=(e,t,n)=>{try{return e[t]=n,!0}catch{return!1}},l=(t,n)=>{let u=i(t),d=u===`Module`||!!t.__esModule;for(let{key:f,descriptor:p}of o(t,d,e.globalConstructors)){if(!d&&p.get){try{Object.defineProperty(n,f,p)}catch{}continue}if(a(f,u))continue;let m=t[f],h=s.getId(m);if(h!==void 0){r.push(()=>c(n,f,s.getMockedValue(h)));continue}let g=i(m);if(Array.isArray(m)){c(n,f,[]);continue}let _=g.includes(`Function`)&&typeof m==`function`;if((!_||m._isMockFunction)&&g!==`Object`&&g!==`Module`){c(n,f,m);continue}if(c(n,f,_?m:{})){if(_){let t=function(){if(this instanceof n[f])for(let{key:t,descriptor:n}of o(this,!1,e.globalConstructors)){if(n.get)continue;let e=this[t];if(i(e).includes(`Function`)&&typeof e==`function`){let e=this[t],n=r(this,t).mockImplementation(e),i=n.mockReset;n.mockRestore=n.mockReset=()=>(i.call(n),n.mockImplementation(e),n)}}};if(!e.spyOn)throw Error("[@vitest/mocker] `spyOn` is not defined. This is a Vitest error. Please open a new issue with reproduction.");let r=e.spyOn,a=r(n,f);if(e.type===`automock`){a.mockImplementation(t);let e=a.mockReset;a.mockRestore=a.mockReset=()=>(e.call(a),a.mockImplementation(t),a)}Object.defineProperty(n[f],"length",{value:0})}s.track(m,n[f]),l(m,n[f])}}},u=n;l(t,u);for(let e of r)e();return u}function i(e){return Object.prototype.toString.apply(e).slice(8,-1)}function a(e,t){return t.includes(`Function`)&&typeof e==`string`&&[`arguments`,`callee`,`caller`,`length`,`name`].includes(e)}function o(e,t,n){let{Map:r,Object:i,Function:a,RegExp:o,Array:c}=n,l=new r,u=e;do{if(u===i.prototype||u===a.prototype||u===o.prototype)break;s(u,e=>{let t=i.getOwnPropertyDescriptor(u,e);t&&l.set(e,{key:e,descriptor:t})})}while(u=i.getPrototypeOf(u));if(t&&!l.has(`default`)&&`default`in e){let t=i.getOwnPropertyDescriptor(e,`default`);t&&l.set(`default`,{key:`default`,descriptor:t})}return c.from(l.values())}function s(e,t){let n=typeof t==`function`?t:e=>t.add(e);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function c(e=``){return e&&e.replace(/\\/g,`/`).replace(I,e=>e.toUpperCase())}function l(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else{if(o===`/`)break;o=`/`}if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}function u(e){return String(e)}function d(e=!1){let t=typeof process<`u`?process:void 0,n=t?.env||{},r=t?.argv||[];return!(`NO_COLOR`in n||r.includes(`--no-color`))&&(`FORCE_COLOR`in n||r.includes(`--color`)||t?.platform===`win32`||e&&n.TERM!==`dumb`||`CI`in n)||typeof window<`u`&&!!window.chrome}function f(e=!1){let t=d(e),n=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},r=(e,t,r=e)=>{let i=i=>{let a=String(i),o=a.indexOf(t,e.length);return~o?e+n(a,t,r,o)+t:e+a+t};return i.open=e,i.close=t,i},i={isColorSupported:t},a=e=>`\x1B[${e}m`;for(let[e,n]of ce)i[e]=t?r(a(n[0]),a(n[1]),n[2]):u;return i}function p(e,t){return t.forEach(function(t){t&&typeof t!=`string`&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!=="default"&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function h(){if(le)return B;le=1;var e=Symbol.for(`react.transitional.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.consumer`),o=Symbol.for(`react.context`),s=Symbol.for(`react.forward_ref`),c=Symbol.for(`react.suspense`),l=Symbol.for(`react.suspense_list`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.view_transition`),p=Symbol.for(`react.client.reference`);function m(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case c:case l:case f:return p;default:switch(p&&=p.$$typeof,p){case o:case s:case d:case u:return p;case a:return p;default:return m}}case t:return m}}}return B.ContextConsumer=a,B.ContextProvider=o,B.Element=e,B.ForwardRef=s,B.Fragment=n,B.Lazy=d,B.Memo=u,B.Portal=t,B.Profiler=i,B.StrictMode=r,B.Suspense=c,B.SuspenseList=l,B.isContextConsumer=function(e){return m(e)===a},B.isContextProvider=function(e){return m(e)===o},B.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},B.isForwardRef=function(e){return m(e)===s},B.isFragment=function(e){return m(e)===n},B.isLazy=function(e){return m(e)===d},B.isMemo=function(e){return m(e)===u},B.isPortal=function(e){return m(e)===t},B.isProfiler=function(e){return m(e)===i},B.isStrictMode=function(e){return m(e)===r},B.isSuspense=function(e){return m(e)===c},B.isSuspenseList=function(e){return m(e)===l},B.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===c||e===l||typeof e==`object`&&!!e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||e.getModuleId!==void 0)},B.typeOf=m,B}function g(){return ue||(ue=1,z.exports=h()),z.exports}function _(){if(de)return W;de=1;var e=Symbol.for(`react.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.provider`),o=Symbol.for(`react.context`),s=Symbol.for(`react.server_context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.offscreen`),m=Symbol.for(`react.module.reference`);function h(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case l:case u:return p;default:switch(p&&=p.$$typeof,p){case s:case o:case c:case f:case d:case a:return p;default:return m}}case t:return m}}}return W.ContextConsumer=o,W.ContextProvider=a,W.Element=e,W.ForwardRef=c,W.Fragment=n,W.Lazy=f,W.Memo=d,W.Portal=t,W.Profiler=i,W.StrictMode=r,W.Suspense=l,W.SuspenseList=u,W.isAsyncMode=function(){return!1},W.isConcurrentMode=function(){return!1},W.isContextConsumer=function(e){return h(e)===o},W.isContextProvider=function(e){return h(e)===a},W.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},W.isForwardRef=function(e){return h(e)===c},W.isFragment=function(e){return h(e)===n},W.isLazy=function(e){return h(e)===f},W.isMemo=function(e){return h(e)===d},W.isPortal=function(e){return h(e)===t},W.isProfiler=function(e){return h(e)===i},W.isStrictMode=function(e){return h(e)===r},W.isSuspense=function(e){return h(e)===l},W.isSuspenseList=function(e){return h(e)===u},W.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===l||e===u||e===p||typeof e==`object`&&!!e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0)},W.typeOf=h,W}function v(){return G||(G=1,U.exports=_()),U.exports}function y(e){let{message:t=`$$stack trace error`,stackTraceLimit:n=1}=e||{},r=Error.stackTraceLimit,i=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=e=>e.stack;let a=Error(t).stack||``;return Error.prepareStackTrace=i,Error.stackTraceLimit=r,a}function ee(){if(pe)return q;pe=1;var e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v;return f=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,d=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,m=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,u=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,h=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,v=/[\t\v\f\ufeff\p{Zs}]+/uy,s=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,p=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,r=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,_=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,g=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,a=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,o=/^(?:return|throw|yield)$/,l=RegExp(s.source),q=function*(y,{jsx:ee=!1}={}){var b,x,S,C,w,T,E,D,O,k,A,j,M,N;for({length:T}=y,C=0,w=``,N=[{tag:`JS`}],b=[],A=0,j=!1;C<T;){switch(D=N[N.length-1],D.tag){case`JS`:case`JSNonExpressionParen`:case`InterpolationInTemplate`:case`InterpolationInJSX`:if(y[C]===`/`&&(_.test(w)||a.test(w))&&(f.lastIndex=C,E=f.exec(y))){C=f.lastIndex,w=E[0],j=!0,yield{type:`RegularExpressionLiteral`,value:E[0],closed:E[1]!==void 0&&E[1]!==`\\`};continue}if(d.lastIndex=C,E=d.exec(y)){switch(M=E[0],O=d.lastIndex,k=M,M){case`(`:w===`?NonExpressionParenKeyword`&&N.push({tag:`JSNonExpressionParen`,nesting:A}),A++,j=!1;break;case`)`:A--,j=!0,D.tag===`JSNonExpressionParen`&&A===D.nesting&&(N.pop(),k=`?NonExpressionParenEnd`,j=!1);break;case`{`:d.lastIndex=0,S=!g.test(w)&&(_.test(w)||a.test(w)),b.push(S),j=!1;break;case`}`:switch(D.tag){case`InterpolationInTemplate`:if(b.length===D.nesting){h.lastIndex=C,E=h.exec(y),C=h.lastIndex,w=E[0],E[1]==="${"?(w=`?InterpolationInTemplate`,j=!1,yield{type:`TemplateMiddle`,value:E[0]}):(N.pop(),j=!0,yield{type:`TemplateTail`,value:E[0],closed:E[1]==="`"});continue}break;case`InterpolationInJSX`:if(b.length===D.nesting){N.pop(),C+=1,w=`}`,yield{type:`JSXPunctuator`,value:`}`};continue}}j=b.pop(),k=j?`?ExpressionBraceEnd`:`}`;break;case`]`:j=!0;break;case`++`:case`--`:k=j?`?PostfixIncDec`:`?UnaryIncDec`;break;case`<`:if(ee&&(_.test(w)||a.test(w))){N.push({tag:`JSXTag`}),C+=1,w=`<`,yield{type:`JSXPunctuator`,value:M};continue}j=!1;break;default:j=!1}C=O,w=k,yield{type:`Punctuator`,value:M};continue}if(e.lastIndex=C,E=e.exec(y)){switch(C=e.lastIndex,k=E[0],E[0]){case`for`:case`if`:case`while`:case`with`:w!==`.`&&w!==`?.`&&(k=`?NonExpressionParenKeyword`)}w=k,j=!a.test(E[0]),yield{type:E[1]===`#`?`PrivateIdentifier`:`IdentifierName`,value:E[0]};continue}if(m.lastIndex=C,E=m.exec(y)){C=m.lastIndex,w=E[0],j=!0,yield{type:`StringLiteral`,value:E[0],closed:E[2]!==void 0};continue}if(u.lastIndex=C,E=u.exec(y)){C=u.lastIndex,w=E[0],j=!0,yield{type:`NumericLiteral`,value:E[0]};continue}if(h.lastIndex=C,E=h.exec(y)){C=h.lastIndex,w=E[0],E[1]==="${"?(w=`?InterpolationInTemplate`,N.push({tag:`InterpolationInTemplate`,nesting:b.length}),j=!1,yield{type:`TemplateHead`,value:E[0]}):(j=!0,yield{type:`NoSubstitutionTemplate`,value:E[0],closed:E[1]==="`"});continue}break;case`JSXTag`:case`JSXTagEnd`:if(n.lastIndex=C,E=n.exec(y)){switch(C=n.lastIndex,k=E[0],E[0]){case`<`:N.push({tag:`JSXTag`});break;case`>`:N.pop(),w===`/`||D.tag===`JSXTagEnd`?(k=`?JSX`,j=!0):N.push({tag:`JSXChildren`});break;case`{`:N.push({tag:`InterpolationInJSX`,nesting:b.length}),k=`?InterpolationInJSX`,j=!1;break;case`/`:w===`<`&&(N.pop(),N[N.length-1].tag===`JSXChildren`&&N.pop(),N.push({tag:`JSXTagEnd`}))}w=k,yield{type:`JSXPunctuator`,value:E[0]};continue}if(t.lastIndex=C,E=t.exec(y)){C=t.lastIndex,w=E[0],yield{type:`JSXIdentifier`,value:E[0]};continue}if(r.lastIndex=C,E=r.exec(y)){C=r.lastIndex,w=E[0],yield{type:`JSXString`,value:E[0],closed:E[2]!==void 0};continue}break;case`JSXChildren`:if(i.lastIndex=C,E=i.exec(y)){C=i.lastIndex,w=E[0],yield{type:`JSXText`,value:E[0]};continue}switch(y[C]){case`<`:N.push({tag:`JSXTag`}),C++,w=`<`,yield{type:`JSXPunctuator`,value:`<`};continue;case`{`:N.push({tag:`InterpolationInJSX`,nesting:b.length}),C++,w=`?InterpolationInJSX`,j=!1,yield{type:`JSXPunctuator`,value:`{`};continue}}if(v.lastIndex=C,E=v.exec(y)){C=v.lastIndex,yield{type:`WhiteSpace`,value:E[0]};continue}if(s.lastIndex=C,E=s.exec(y)){C=s.lastIndex,j=!1,o.test(w)&&(w=`?NoLineTerminatorHere`),yield{type:`LineTerminatorSequence`,value:E[0]};continue}if(c.lastIndex=C,E=c.exec(y)){C=c.lastIndex,l.test(E[0])&&(j=!1,o.test(w)&&(w=`?NoLineTerminatorHere`)),yield{type:`MultiLineComment`,value:E[0],closed:E[1]!==void 0};continue}if(p.lastIndex=C,E=p.exec(y)){C=p.lastIndex,j=!1,yield{type:`SingleLineComment`,value:E[0]};continue}x=String.fromCodePoint(y.codePointAt(C)),C+=x.length,w=x,j=!1,yield{type:D.tag.startsWith(`JSX`)?`JSXInvalid`:`Invalid`,value:x}}},q}function b(e=``){return e&&e.replace(/\\/g,`/`).replace(_e,e=>e.toUpperCase())}function x(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}function S(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else{if(o===`/`)break;o=`/`}if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}function C(e){if(!e.includes(`:`))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,``));if(!t)return[e];let n=t[1];if(n.startsWith(`async `)&&(n=n.slice(6)),n.startsWith(`http:`)||n.startsWith(`https:`)){let e=new URL(n);e.searchParams.delete(`import`),e.searchParams.delete(`browserv`),n=e.pathname+e.hash+e.search}if(n.startsWith(`/@fs/`)){let e=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(e?5:4)}return[n,t[2]||void 0,t[3]||void 0]}function w(e){let t=e.trim();if(be.test(t)||(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)&&!t.includes(`:`)))return null;let n=/((.*".+"[^@]*)?[^@]*)(@)/,r=t.match(n),i=r&&r[1]?r[1]:void 0,[a,o,s]=C(t.replace(n,``));return!a||!o||!s?null:{file:a,method:i||``,line:Number.parseInt(o),column:Number.parseInt(s)}}function T(e){let t=e.trim();return Z.test(t)?E(t):w(t)}function E(e){let t=e.trim();if(!Z.test(t))return null;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let[i,a,o]=C(r?r[1]:n),s=r&&n||``,c=i&&[`eval`,`<anonymous>`].includes(i)?void 0:i;return!c||!a||!o?null:(s.startsWith(`async `)&&(s=s.slice(6)),c.startsWith(`file://`)&&(c=c.slice(7)),c=c.startsWith(`node:`)||c.startsWith(`internal:`)?c:ye(c),s&&=s.replace(/__vite_ssr_import_\d+__\./g,``),{method:s,file:c,line:Number.parseInt(a),column:Number.parseInt(o)})}function D(e){let t=e?.globalThisKey||`__vitest_mocker__`;function n(){return typeof globalThis[t]<`u`?globalThis[t]:new Proxy({},{get(e,t){throw Error(`Vitest mocker was not initialized in this environment. vi.${String(t)}() is forbidden.`)}})}return{hoisted(e){if(typeof e!=`function`)throw TypeError(`vi.hoisted() expects a function, but received a ${typeof e}`);return e()},mock(e,t){if(typeof e!=`string`)throw TypeError(`vi.mock() expects a string path, but received a ${typeof e}`);let r=O(`mock`);n().queueMock(e,r,typeof t==`function`?()=>t(()=>n().importActual(e,r)):t)},unmock(e){if(typeof e!=`string`)throw TypeError(`vi.unmock() expects a string path, but received a ${typeof e}`);n().queueUnmock(e,O(`unmock`))},doMock(e,t){if(typeof e!=`string`)throw TypeError(`vi.doMock() expects a string path, but received a ${typeof e}`);let r=O(`doMock`);n().queueMock(e,r,typeof t==`function`?()=>t(()=>n().importActual(e,r)):t)},doUnmock(e){if(typeof e!=`string`)throw TypeError(`vi.doUnmock() expects a string path, but received a ${typeof e}`);n().queueUnmock(e,O(`doUnmock`))},async importActual(e){return n().importActual(e,O(`importActual`))},async importMock(e){return n().importMock(e,O(`importMock`))}}}function O(e){let t=y({stackTraceLimit:5}).split(`
|
|
2
|
+
`);return T(t[t.findIndex(t=>t.includes(` at Object.${e}`)||t.includes(`${e}@`))+1])?.file||``}function k(e){return e.replace(Se,``)}function A(e){let t=new we(e(`__vitest_mocker__`),{resolveId(e,t){return $(`resolveId`,{id:e,importer:t})},resolveMock(e,t,n){return $(`resolveMock`,{id:e,importer:t,options:n})},async invalidate(e){return $(`invalidate`,{ids:e})}},(...e)=>globalThis.__STORYBOOK_MODULE_TEST__.spyOn(...e),{root:``});return globalThis.__vitest_mocker__=t,D({globalThisKey:`__vitest_mocker__`})}var j,M,N,P,F,te,I,ne,re,L,ie,ae,oe,R,se,ce,z,B,le,ue,V,H,U,W,de,G,K,fe,q,pe,J,Y,me,he,ge,_e,ve,ye,X,Z,be,Q,xe,Se,Ce,$,we;e((()=>{t(),j=class{registryByUrl=new Map;registryById=new Map;clear(){this.registryByUrl.clear(),this.registryById.clear()}keys(){return this.registryByUrl.keys()}add(e){this.registryByUrl.set(e.url,e),this.registryById.set(e.id,e)}register(e,t,n,r,i){let a=typeof e==`object`?e.type:e;if(typeof e==`object`){let t=e;if(t instanceof M||t instanceof N||t instanceof F||t instanceof P)throw TypeError(`[vitest] Cannot register a mock that is already defined. Expected a JSON representation from \`MockedModule.toJSON\`, instead got "${t.type}". Use "registry.add()" to update a mock instead.`);if(t.type===`automock`){let e=M.fromJSON(t);return this.add(e),e}else if(t.type===`autospy`){let e=N.fromJSON(t);return this.add(e),e}else if(t.type===`redirect`){let e=P.fromJSON(t);return this.add(e),e}else throw t.type===`manual`?Error("Cannot set serialized manual mock. Define a factory function manually with `ManualMockedModule.fromJSON()`."):Error(`Unknown mock type: ${t.type}`)}if(typeof t!=`string`)throw TypeError(`[vitest] Mocks require a raw string.`);if(typeof r!=`string`)throw TypeError(`[vitest] Mocks require a url string.`);if(typeof n!=`string`)throw TypeError(`[vitest] Mocks require an id string.`);if(a===`manual`){if(typeof i!=`function`)throw TypeError(`[vitest] Manual mocks require a factory function.`);let e=new F(t,n,r,i);return this.add(e),e}else if(a===`automock`||a===`autospy`){let e=a===`automock`?new M(t,n,r):new N(t,n,r);return this.add(e),e}else if(a===`redirect`){if(typeof i!=`string`)throw TypeError(`[vitest] Redirect mocks require a redirect string.`);let e=new P(t,n,r,i);return this.add(e),e}else throw Error(`[vitest] Unknown mock type: ${a}`)}delete(e){this.registryByUrl.delete(e)}get(e){return this.registryByUrl.get(e)}getById(e){return this.registryById.get(e)}has(e){return this.registryByUrl.has(e)}},M=class{type=`automock`;constructor(e,t,n){this.raw=e,this.id=t,this.url=n}static fromJSON(e){return new N(e.raw,e.id,e.url)}toJSON(){return{type:this.type,url:this.url,raw:this.raw,id:this.id}}},N=class e{type=`autospy`;constructor(e,t,n){this.raw=e,this.id=t,this.url=n}static fromJSON(t){return new e(t.raw,t.id,t.url)}toJSON(){return{type:this.type,url:this.url,id:this.id,raw:this.raw}}},P=class e{type=`redirect`;constructor(e,t,n,r){this.raw=e,this.id=t,this.url=n,this.redirect=r}static fromJSON(t){return new e(t.raw,t.id,t.url,t.redirect)}toJSON(){return{type:this.type,url:this.url,raw:this.raw,id:this.id,redirect:this.redirect}}},F=class e{cache;type=`manual`;constructor(e,t,n,r){this.raw=e,this.id=t,this.url=n,this.factory=r}async resolve(){if(this.cache)return this.cache;let e;try{e=await this.factory()}catch(e){let t=Error(`[vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock`);throw t.cause=e,t}if(typeof e!=`object`||!e||Array.isArray(e))throw TypeError(`[vitest] vi.mock("${this.raw}", factory?: () => unknown) is not returning an object. Did you mean to return an object with a "default" key?`);return this.cache=e}static fromJSON(t,n){return new e(t.raw,t.id,t.url,n)}toJSON(){return{type:this.type,url:this.url,id:this.id,raw:this.raw}}},te=class{idMap=new Map;mockedValueMap=new Map;getId(e){return this.idMap.get(e)}getMockedValue(e){return this.mockedValueMap.get(e)}track(e,t){let n=this.idMap.size;return this.idMap.set(e,n),this.mockedValueMap.set(n,t),n}},I=/^[A-Za-z]:\//,ne=/^[/\\]{2}/,re=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,L=/^[A-Za-z]:$/,ie=/.(\.[^./]+|\.)$/,ae=function(e){if(e.length===0)return`.`;e=c(e);let t=e.match(ne),n=R(e),r=e[e.length-1]===`/`;return e=l(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),L.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!R(e)?`/${e}`:e)},oe=function(...e){let t=``;for(let n of e)if(n)if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;e&&r?t+=n.slice(1):t+=e||r?n:`/${n}`}else t+=n;return ae(t)},R=function(e){return re.test(e)},se=function(e){if(e===`..`)return``;let t=ie.exec(c(e));return t&&t[1]||``},ce=Object.entries({reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}),u.open=``,u.close=``,f(),z={exports:{}},B={},V=g(),H=p({__proto__:null,default:m(V)},[V]),U={exports:{}},W={},K=v(),fe=p({__proto__:null,default:m(K)},[K]),Object.fromEntries([`isAsyncMode`,`isConcurrentMode`,`isContextConsumer`,`isContextProvider`,`isElement`,`isForwardRef`,`isFragment`,`isLazy`,`isMemo`,`isPortal`,`isProfiler`,`isStrictMode`,`isSuspense`,`isSuspenseList`,`isValidElementType`].map(e=>[e,t=>fe[e](t)||H[e](t)]));try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding(`util`);Array.isArray(e(Promise.resolve()))}catch{}ee(),J={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`]},new Set(J.keyword),new Set(J.strict),Y=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,me=new Uint8Array(64),he=new Uint8Array(128);for(let e=0;e<Y.length;e++){let t=Y.charCodeAt(e);me[e]=t,he[t]=e}(function(e){e[e.Empty=1]=`Empty`,e[e.Hash=2]=`Hash`,e[e.Query=3]=`Query`,e[e.RelativePath=4]=`RelativePath`,e[e.AbsolutePath=5]=`AbsolutePath`,e[e.SchemeRelative=6]=`SchemeRelative`,e[e.Absolute=7]=`Absolute`})(ge||={}),_e=/^[A-Za-z]:\//,ve=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,ye=function(...e){e=e.map(e=>b(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:x();!i||i.length===0||(t=`${i}/${t}`,n=X(i))}return t=S(t,!n),n&&!X(t)?`/${t}`:t.length>0?t:`.`},X=function(e){return ve.test(e)},Z=/^\s*at .*(?:\S:\d+|\(native\))/m,be=/^(?:eval@)?(?:\[native code\])?$/,{now:Q}=Date,xe=class{registry=new j;queue=new Set;mockedIds=new Set;constructor(e,t,n,r){this.interceptor=e,this.rpc=t,this.spyOn=n,this.config=r}async prepare(){this.queue.size&&await Promise.all([...this.queue.values()])}async resolveFactoryModule(e){let t=this.registry.get(e);if(!t||t.type!==`manual`)throw Error(`Mock ${e} wasn't registered. This is probably a Vitest error. Please, open a new issue with reproduction.`);return await t.resolve()}getFactoryModule(e){let t=this.registry.get(e);if(!t||t.type!==`manual`)throw Error(`Mock ${e} wasn't registered. This is probably a Vitest error. Please, open a new issue with reproduction.`);if(!t.cache)throw Error(`Mock ${e} wasn't resolved. This is probably a Vitest error. Please, open a new issue with reproduction.`);return t.cache}async invalidate(){let e=Array.from(this.mockedIds);e.length&&(await this.rpc.invalidate(e),await this.interceptor.invalidate(),this.registry.clear())}async importActual(e,t){let r=await this.rpc.resolveId(e,t);if(r==null)throw Error(`[vitest] Cannot resolve "${e}" imported from "${t}"`);let i=se(r.id),a=new URL(r.url,location.href),o=`_vitest_original&ext${i}`,s=`${a.pathname}${a.search?`${a.search}&${o}`:`?${o}`}${a.hash}`;return this.wrapDynamicImport(()=>n(()=>import(s),[],import.meta.url)).then(e=>{if(!r.optimized||typeof e.default>`u`)return e;let t=e.default;return t?.__esModule?t:{...typeof t==`object`&&!Array.isArray(t)||typeof t==`function`?t:{},default:t}})}async importMock(e,t){await this.prepare();let{resolvedId:r,resolvedUrl:i,redirectUrl:a}=await this.rpc.resolveMock(e,t,{mock:`auto`}),o=this.resolveMockPath(k(i)),s=this.registry.get(o);if(s||=a?new P(e,r,o,new URL(this.resolveMockPath(k(a)),location.href).toString()):new M(e,r,o),s.type===`manual`)return await s.resolve();if(s.type===`automock`||s.type===`autospy`){let e=new URL(`/@id/${r}`,location.href),t=e.search?`${e.search}&t=${Q()}`:`?t=${Q()}`,i=await n(()=>import(`${e.pathname}${t}&mock=${s.type}${e.hash}`),[],import.meta.url);return this.mockObject(i,s.type)}return n(()=>import(s.redirect),[],import.meta.url)}mockObject(e,t=`automock`){return r({globalConstructors:{Object,Function,Array,Map,RegExp},spyOn:this.spyOn,type:t},e)}queueMock(e,t,n){let r=this.rpc.resolveMock(e,t,{mock:typeof n==`function`?`factory`:n?.spy?`spy`:`auto`}).then(async({redirectUrl:t,resolvedId:r,resolvedUrl:i,needsInterop:a,mockType:o})=>{let s=this.resolveMockPath(k(i));this.mockedIds.add(r);let c=typeof n==`function`?async()=>{let e=await n();return a?{default:e}:e}:void 0,l=typeof t==`string`?new URL(this.resolveMockPath(k(t)),location.href).toString():null,u;u=o===`manual`?this.registry.register(`manual`,e,r,s,c):o===`autospy`?this.registry.register(`autospy`,e,r,s):o===`redirect`?this.registry.register(`redirect`,e,r,s,l):this.registry.register(`automock`,e,r,s),await this.interceptor.register(u)}).finally(()=>{this.queue.delete(r)});this.queue.add(r)}queueUnmock(e,t){let n=this.rpc.resolveId(e,t).then(async e=>{if(!e)return;let t=this.resolveMockPath(k(e.url));this.mockedIds.add(e.id),this.registry.delete(t),await this.interceptor.delete(t)}).finally(()=>{this.queue.delete(n)});this.queue.add(n)}wrapDynamicImport(e){return typeof e==`function`?new Promise((t,n)=>{this.prepare().finally(()=>{e().then(t,n)})}):e}resolveMockPath(e){let t=this.config,n=oe(`/@fs/`,t.root);return e.startsWith(t.root)?e.slice(t.root.length):e.startsWith(n)?e.slice(n.length):e}},Se=/(\?|&)v=\w{8}/,Ce=class{mocks=new j;constructor(){}async register(e){this.mocks.add(e)}async delete(e){this.mocks.delete(e)}async invalidate(){this.mocks.clear()}},$=e=>{switch(e){case`resolveId`:return Promise.resolve({id:``,url:``,optimized:!1});case`resolveMock`:return Promise.resolve({mockType:`dummy`,resolvedId:``,resolvedUrl:``,redirectUrl:``,needsInterop:!1});case`invalidate`:return Promise.resolve()}},we=class extends xe{queueMock(){}},globalThis.__STORYBOOK_MOCKER__=A(()=>new Ce)}))();
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Badge } from "../Badge";
|
|
2
|
-
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof Badge;
|
|
6
|
-
args: {
|
|
7
|
-
children: string;
|
|
8
|
-
size: "md";
|
|
9
|
-
tone: "info";
|
|
10
|
-
appearance: "solid";
|
|
11
|
-
};
|
|
12
|
-
parameters: {
|
|
13
|
-
atomicCanvas: boolean;
|
|
14
|
-
layout: string;
|
|
15
|
-
};
|
|
16
|
-
tags: string[];
|
|
17
|
-
argTypes: {
|
|
18
|
-
children: {
|
|
19
|
-
description: string;
|
|
20
|
-
control: "text";
|
|
21
|
-
};
|
|
22
|
-
size: {
|
|
23
|
-
description: string;
|
|
24
|
-
control: "inline-radio";
|
|
25
|
-
options: string[];
|
|
26
|
-
};
|
|
27
|
-
tone: {
|
|
28
|
-
description: string;
|
|
29
|
-
control: "inline-radio";
|
|
30
|
-
options: string[];
|
|
31
|
-
};
|
|
32
|
-
appearance: {
|
|
33
|
-
description: string;
|
|
34
|
-
control: "inline-radio";
|
|
35
|
-
options: string[];
|
|
36
|
-
};
|
|
37
|
-
onRemove: {
|
|
38
|
-
description: string;
|
|
39
|
-
control: false;
|
|
40
|
-
};
|
|
41
|
-
className: {
|
|
42
|
-
description: string;
|
|
43
|
-
control: "text";
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export default meta;
|
|
48
|
-
type Story = StoryObj<typeof meta>;
|
|
49
|
-
export declare const Basic: Story;
|
|
50
|
-
export declare const Tones: Story;
|
|
51
|
-
export declare const Appearances: Story;
|
|
52
|
-
export declare const Sizes: Story;
|
|
53
|
-
export declare const RemovableList: Story;
|
|
54
|
-
//# sourceMappingURL=Badge.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.stories.d.ts","sourceRoot":"","sources":["../../../src/badge/stories/Badge.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,KAAK,EAAE,KAAU,CAAC;AAE/B,eAAO,MAAM,KAAK,EAAE,KAoBnB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAiBzB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAc3B,CAAC"}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "../../chunks/BadgeList-DYgun2rf.js";
|
|
2
|
-
import { useState as n } from "react";
|
|
3
|
-
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
-
//#region src/badge/stories/Badge.stories.tsx
|
|
5
|
-
var a = {
|
|
6
|
-
title: "Shared/UI/Badge",
|
|
7
|
-
component: e,
|
|
8
|
-
args: {
|
|
9
|
-
children: "Новый",
|
|
10
|
-
size: "md",
|
|
11
|
-
tone: "info",
|
|
12
|
-
appearance: "solid"
|
|
13
|
-
},
|
|
14
|
-
parameters: {
|
|
15
|
-
atomicCanvas: !0,
|
|
16
|
-
layout: "padded"
|
|
17
|
-
},
|
|
18
|
-
tags: ["autodocs"],
|
|
19
|
-
argTypes: {
|
|
20
|
-
children: {
|
|
21
|
-
description: "Текст внутри бейджа.",
|
|
22
|
-
control: "text"
|
|
23
|
-
},
|
|
24
|
-
size: {
|
|
25
|
-
description: "Размер бейджа.",
|
|
26
|
-
control: "inline-radio",
|
|
27
|
-
options: [
|
|
28
|
-
"sm",
|
|
29
|
-
"md",
|
|
30
|
-
"lg"
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
tone: {
|
|
34
|
-
description: "Семантический тон бейджа.",
|
|
35
|
-
control: "inline-radio",
|
|
36
|
-
options: [
|
|
37
|
-
"neutral",
|
|
38
|
-
"success",
|
|
39
|
-
"warning",
|
|
40
|
-
"error",
|
|
41
|
-
"info"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
appearance: {
|
|
45
|
-
description: "Форма бейджа.",
|
|
46
|
-
control: "inline-radio",
|
|
47
|
-
options: [
|
|
48
|
-
"solid",
|
|
49
|
-
"outline",
|
|
50
|
-
"ghost",
|
|
51
|
-
"transparent"
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
onRemove: {
|
|
55
|
-
description: "Показывает кнопку удаления и вызывает обработчик по клику.",
|
|
56
|
-
control: !1
|
|
57
|
-
},
|
|
58
|
-
className: {
|
|
59
|
-
description: "Дополнительный CSS-класс контейнера.",
|
|
60
|
-
control: "text"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}, o = {}, s = { render: () => /* @__PURE__ */ i(t, { children: [
|
|
64
|
-
/* @__PURE__ */ r(e, {
|
|
65
|
-
tone: "neutral",
|
|
66
|
-
appearance: "outline",
|
|
67
|
-
children: "Neutral"
|
|
68
|
-
}),
|
|
69
|
-
/* @__PURE__ */ r(e, {
|
|
70
|
-
tone: "success",
|
|
71
|
-
appearance: "solid",
|
|
72
|
-
children: "Успешно"
|
|
73
|
-
}),
|
|
74
|
-
/* @__PURE__ */ r(e, {
|
|
75
|
-
tone: "warning",
|
|
76
|
-
appearance: "solid",
|
|
77
|
-
children: "Внимание"
|
|
78
|
-
}),
|
|
79
|
-
/* @__PURE__ */ r(e, {
|
|
80
|
-
tone: "error",
|
|
81
|
-
appearance: "solid",
|
|
82
|
-
children: "Ошибка"
|
|
83
|
-
}),
|
|
84
|
-
/* @__PURE__ */ r(e, {
|
|
85
|
-
tone: "info",
|
|
86
|
-
appearance: "solid",
|
|
87
|
-
children: "Информация"
|
|
88
|
-
})
|
|
89
|
-
] }) }, c = { render: () => /* @__PURE__ */ i(t, { children: [
|
|
90
|
-
/* @__PURE__ */ r(e, {
|
|
91
|
-
tone: "neutral",
|
|
92
|
-
appearance: "solid",
|
|
93
|
-
children: "Solid"
|
|
94
|
-
}),
|
|
95
|
-
/* @__PURE__ */ r(e, {
|
|
96
|
-
tone: "neutral",
|
|
97
|
-
appearance: "outline",
|
|
98
|
-
children: "Outline"
|
|
99
|
-
}),
|
|
100
|
-
/* @__PURE__ */ r(e, {
|
|
101
|
-
tone: "info",
|
|
102
|
-
appearance: "ghost",
|
|
103
|
-
children: "Ghost"
|
|
104
|
-
}),
|
|
105
|
-
/* @__PURE__ */ r(e, {
|
|
106
|
-
tone: "warning",
|
|
107
|
-
appearance: "transparent",
|
|
108
|
-
children: "Transparent"
|
|
109
|
-
})
|
|
110
|
-
] }) }, l = { render: () => /* @__PURE__ */ i(t, { children: [
|
|
111
|
-
/* @__PURE__ */ r(e, {
|
|
112
|
-
size: "xs",
|
|
113
|
-
children: "Extra Small"
|
|
114
|
-
}),
|
|
115
|
-
/* @__PURE__ */ r(e, {
|
|
116
|
-
size: "sm",
|
|
117
|
-
children: "Small"
|
|
118
|
-
}),
|
|
119
|
-
/* @__PURE__ */ r(e, {
|
|
120
|
-
size: "md",
|
|
121
|
-
children: "Medium"
|
|
122
|
-
}),
|
|
123
|
-
/* @__PURE__ */ r(e, {
|
|
124
|
-
size: "lg",
|
|
125
|
-
children: "Large"
|
|
126
|
-
}),
|
|
127
|
-
/* @__PURE__ */ r(e, {
|
|
128
|
-
size: "xl",
|
|
129
|
-
children: "Extra Large"
|
|
130
|
-
})
|
|
131
|
-
] }) }, u = { render: () => {
|
|
132
|
-
let [i, a] = n([
|
|
133
|
-
"Фильтр A",
|
|
134
|
-
"Фильтр B",
|
|
135
|
-
"Фильтр C"
|
|
136
|
-
]);
|
|
137
|
-
return /* @__PURE__ */ r(t, { children: i.map((t) => /* @__PURE__ */ r(e, {
|
|
138
|
-
tone: "info",
|
|
139
|
-
appearance: "outline",
|
|
140
|
-
onRemove: () => a((e) => e.filter((e) => e !== t)),
|
|
141
|
-
children: t
|
|
142
|
-
}, t)) });
|
|
143
|
-
} };
|
|
144
|
-
//#endregion
|
|
145
|
-
export { c as Appearances, o as Basic, u as RemovableList, l as Sizes, s as Tones, a as default };
|
|
146
|
-
|
|
147
|
-
//# sourceMappingURL=Badge.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.stories.js","names":[],"sources":["../../../src/badge/stories/Badge.stories.tsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Badge } from \"../Badge\";\nimport { BadgeList } from \"../BadgeList\";\n\nimport type { Meta, StoryObj } from \"@storybook/react-vite\";\n\nconst meta = {\n\ttitle: \"Shared/UI/Badge\",\n\tcomponent: Badge,\n\targs: {\n\t\tchildren: \"Новый\",\n\t\tsize: \"md\",\n\t\ttone: \"info\",\n\t\tappearance: \"solid\"\n\t},\n\tparameters: {\n\t\tatomicCanvas: true,\n\t\tlayout: \"padded\"\n\t},\n\ttags: [\"autodocs\"],\n\targTypes: {\n\t\tchildren: {\n\t\t\tdescription: \"Текст внутри бейджа.\",\n\t\t\tcontrol: \"text\"\n\t\t},\n\t\tsize: {\n\t\t\tdescription: \"Размер бейджа.\",\n\t\t\tcontrol: \"inline-radio\",\n\t\t\toptions: [\"sm\", \"md\", \"lg\"]\n\t\t},\n\t\ttone: {\n\t\t\tdescription: \"Семантический тон бейджа.\",\n\t\t\tcontrol: \"inline-radio\",\n\t\t\toptions: [\"neutral\", \"success\", \"warning\", \"error\", \"info\"]\n\t\t},\n\t\tappearance: {\n\t\t\tdescription: \"Форма бейджа.\",\n\t\t\tcontrol: \"inline-radio\",\n\t\t\toptions: [\"solid\", \"outline\", \"ghost\", \"transparent\"]\n\t\t},\n\t\tonRemove: {\n\t\t\tdescription: \"Показывает кнопку удаления и вызывает обработчик по клику.\",\n\t\t\tcontrol: false\n\t\t},\n\t\tclassName: {\n\t\t\tdescription: \"Дополнительный CSS-класс контейнера.\",\n\t\t\tcontrol: \"text\"\n\t\t}\n\t}\n} satisfies Meta<typeof Badge>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Basic: Story = {};\n\nexport const Tones: Story = {\n\trender: () => (\n\t\t<BadgeList>\n\t\t\t<Badge tone=\"neutral\" appearance=\"outline\">\n\t\t\t\tNeutral\n\t\t\t</Badge>\n\t\t\t<Badge tone=\"success\" appearance=\"solid\">\n\t\t\t\tУспешно\n\t\t\t</Badge>\n\t\t\t<Badge tone=\"warning\" appearance=\"solid\">\n\t\t\t\tВнимание\n\t\t\t</Badge>\n\t\t\t<Badge tone=\"error\" appearance=\"solid\">\n\t\t\t\tОшибка\n\t\t\t</Badge>\n\t\t\t<Badge tone=\"info\" appearance=\"solid\">\n\t\t\t\tИнформация\n\t\t\t</Badge>\n\t\t</BadgeList>\n\t)\n};\n\nexport const Appearances: Story = {\n\trender: () => (\n\t\t<BadgeList>\n\t\t\t<Badge tone=\"neutral\" appearance=\"solid\">\n\t\t\t\tSolid\n\t\t\t</Badge>\n\t\t\t<Badge tone=\"neutral\" appearance=\"outline\">\n\t\t\t\tOutline\n\t\t\t</Badge>\n\t\t\t<Badge tone=\"info\" appearance=\"ghost\">\n\t\t\t\tGhost\n\t\t\t</Badge>\n\t\t\t<Badge tone=\"warning\" appearance=\"transparent\">\n\t\t\t\tTransparent\n\t\t\t</Badge>\n\t\t</BadgeList>\n\t)\n};\n\nexport const Sizes: Story = {\n\trender: () => (\n\t\t<BadgeList>\n\t\t\t<Badge size=\"xs\">Extra Small</Badge>\n\t\t\t<Badge size=\"sm\">Small</Badge>\n\t\t\t<Badge size=\"md\">Medium</Badge>\n\t\t\t<Badge size=\"lg\">Large</Badge>\n\t\t\t<Badge size=\"xl\">Extra Large</Badge>\n\t\t</BadgeList>\n\t)\n};\n\nexport const RemovableList: Story = {\n\trender: () => {\n\t\tconst [items, setItems] = useState([\"Фильтр A\", \"Фильтр B\", \"Фильтр C\"]);\n\n\t\treturn (\n\t\t\t<BadgeList>\n\t\t\t\t{items.map((item) => (\n\t\t\t\t\t<Badge key={item} tone=\"info\" appearance=\"outline\" onRemove={() => setItems((prev) => prev.filter((v) => v !== item))}>\n\t\t\t\t\t\t{item}\n\t\t\t\t\t</Badge>\n\t\t\t\t))}\n\t\t\t</BadgeList>\n\t\t);\n\t}\n};\n"],"mappings":";;;;AAOA,IAAM,IAAO;CACZ,OAAO;CACP,WAAW;CACX,MAAM;EACL,UAAU;EACV,MAAM;EACN,MAAM;EACN,YAAY;CACb;CACA,YAAY;EACX,cAAc;EACd,QAAQ;CACT;CACA,MAAM,CAAC,UAAU;CACjB,UAAU;EACT,UAAU;GACT,aAAa;GACb,SAAS;EACV;EACA,MAAM;GACL,aAAa;GACb,SAAS;GACT,SAAS;IAAC;IAAM;IAAM;GAAI;EAC3B;EACA,MAAM;GACL,aAAa;GACb,SAAS;GACT,SAAS;IAAC;IAAW;IAAW;IAAW;IAAS;GAAM;EAC3D;EACA,YAAY;GACX,aAAa;GACb,SAAS;GACT,SAAS;IAAC;IAAS;IAAW;IAAS;GAAa;EACrD;EACA,UAAU;GACT,aAAa;GACb,SAAS;EACV;EACA,WAAW;GACV,aAAa;GACb,SAAS;EACV;CACD;AACD,GAKa,IAAe,CAAC,GAEhB,IAAe,EAC3B,cACC,kBAAC,GAAD,EAAA,UAAA;CACC,kBAAC,GAAD;EAAO,MAAK;EAAU,YAAW;YAAU;CAEpC,CAAA;CACP,kBAAC,GAAD;EAAO,MAAK;EAAU,YAAW;YAAQ;CAElC,CAAA;CACP,kBAAC,GAAD;EAAO,MAAK;EAAU,YAAW;YAAQ;CAElC,CAAA;CACP,kBAAC,GAAD;EAAO,MAAK;EAAQ,YAAW;YAAQ;CAEhC,CAAA;CACP,kBAAC,GAAD;EAAO,MAAK;EAAO,YAAW;YAAQ;CAE/B,CAAA;AACG,EAAA,CAAA,EAEb,GAEa,IAAqB,EACjC,cACC,kBAAC,GAAD,EAAA,UAAA;CACC,kBAAC,GAAD;EAAO,MAAK;EAAU,YAAW;YAAQ;CAElC,CAAA;CACP,kBAAC,GAAD;EAAO,MAAK;EAAU,YAAW;YAAU;CAEpC,CAAA;CACP,kBAAC,GAAD;EAAO,MAAK;EAAO,YAAW;YAAQ;CAE/B,CAAA;CACP,kBAAC,GAAD;EAAO,MAAK;EAAU,YAAW;YAAc;CAExC,CAAA;AACG,EAAA,CAAA,EAEb,GAEa,IAAe,EAC3B,cACC,kBAAC,GAAD,EAAA,UAAA;CACC,kBAAC,GAAD;EAAO,MAAK;YAAK;CAAkB,CAAA;CACnC,kBAAC,GAAD;EAAO,MAAK;YAAK;CAAY,CAAA;CAC7B,kBAAC,GAAD;EAAO,MAAK;YAAK;CAAa,CAAA;CAC9B,kBAAC,GAAD;EAAO,MAAK;YAAK;CAAY,CAAA;CAC7B,kBAAC,GAAD;EAAO,MAAK;YAAK;CAAkB,CAAA;AACzB,EAAA,CAAA,EAEb,GAEa,IAAuB,EACnC,cAAc;CACb,IAAM,CAAC,GAAO,KAAY,EAAS;EAAC;EAAY;EAAY;CAAU,CAAC;CAEvE,OACC,kBAAC,GAAD,EAAA,UACE,EAAM,KAAK,MACX,kBAAC,GAAD;EAAkB,MAAK;EAAO,YAAW;EAAU,gBAAgB,GAAU,MAAS,EAAK,QAAQ,MAAM,MAAM,CAAI,CAAC;YAClH;CACK,GAFK,CAEL,CACP,EACS,CAAA;AAEb,EACD"}
|
package/dist/button/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/button/ButtonRemove.tsx"],"sourcesContent":["import React, { useRef, useState } from \"react\";\n\nimport { XIcon } from \"lucide-react\";\n\nimport { Button } from \"./Button\";\n\ninterface ButtonRemoveProps {\n\tonRemove: () => void;\n\tonPreRemove?: () => void;\n\tclassName?: string;\n}\n\n/**\n * Специализированная кнопка удаления сущности или вложения. Инкапсулирует подтверждающее поведение перед окончательным вызовом `onRemove`.\n */\nexport function ButtonRemove({ onPreRemove, onRemove, className }: ButtonRemoveProps) {\n\tconst [confirmRemove, setConfirmRemove] = useState(false);\n\tconst timeoutRef = useRef<number | null>(null);\n\n\tconst handleRemoveClick = (e: React.MouseEvent<HTMLElement>) => {\n\t\te.preventDefault();\n\n\t\tif (timeoutRef.current) {\n\t\t\twindow.clearTimeout(timeoutRef.current);\n\t\t\ttimeoutRef.current = null;\n\t\t}\n\n\t\tif (confirmRemove) {\n\t\t\tonRemove();\n\t\t\tsetConfirmRemove(false);\n\t\t} else {\n\t\t\tonPreRemove?.();\n\t\t\tsetConfirmRemove(true);\n\t\t\ttimeoutRef.current = window.setTimeout(() => {\n\t\t\t\tsetConfirmRemove(false);\n\t\t\t}, 1500);\n\t\t}\n\t};\n\n\treturn (\n\t\t<Button\n\t\t\ticon={<XIcon />}\n\t\t\tonClick={handleRemoveClick}\n\t\t\ttone=\"error\"\n\t\t\tappearance={confirmRemove ? \"solid\" : \"outline\"}\n\t\t\tclassName={className}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;AAeA,SAAgB,EAAa,EAAE,gBAAa,aAAU,gBAAgC;CACrF,IAAM,CAAC,GAAe,KAAoB,EAAS,EAAK,GAClD,IAAa,EAAsB,IAAI;CAsB7C,OACC,kBAAC,GAAD;EACC,MAAM,kBAAC,GAAD,CAAQ,CAAA;EACd,UAvByB,MAAqC;GAQ/D,AAPA,EAAE,eAAe,GAEjB,AAEC,EAAW,aADX,OAAO,aAAa,EAAW,OAAO,GACjB,OAGlB,KACH,EAAS,GACT,EAAiB,EAAK,MAEtB,IAAc,GACd,EAAiB,EAAI,GACrB,EAAW,UAAU,OAAO,iBAAiB;IAC5C,EAAiB,EAAK;GACvB,GAAG,IAAI;EAET;EAME,MAAK;EACL,YAAY,IAAgB,UAAU;EAC3B;CACX,CAAA;AAEH"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<import("..").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
args: {
|
|
6
|
-
children: string;
|
|
7
|
-
variant: "neutralOutline";
|
|
8
|
-
disabled: false;
|
|
9
|
-
iconEnd: false;
|
|
10
|
-
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
11
|
-
};
|
|
12
|
-
parameters: {
|
|
13
|
-
atomicCanvas: boolean;
|
|
14
|
-
layout: string;
|
|
15
|
-
};
|
|
16
|
-
tags: string[];
|
|
17
|
-
argTypes: {
|
|
18
|
-
children: {
|
|
19
|
-
description: string;
|
|
20
|
-
control: "text";
|
|
21
|
-
};
|
|
22
|
-
variant: {
|
|
23
|
-
description: string;
|
|
24
|
-
control: "select";
|
|
25
|
-
options: string[];
|
|
26
|
-
};
|
|
27
|
-
tone: {
|
|
28
|
-
description: string;
|
|
29
|
-
control: "inline-radio";
|
|
30
|
-
options: string[];
|
|
31
|
-
};
|
|
32
|
-
appearance: {
|
|
33
|
-
description: string;
|
|
34
|
-
control: "inline-radio";
|
|
35
|
-
options: string[];
|
|
36
|
-
};
|
|
37
|
-
icon: {
|
|
38
|
-
description: string;
|
|
39
|
-
control: false;
|
|
40
|
-
};
|
|
41
|
-
iconEnd: {
|
|
42
|
-
description: string;
|
|
43
|
-
control: "boolean";
|
|
44
|
-
};
|
|
45
|
-
title: {
|
|
46
|
-
description: string;
|
|
47
|
-
control: "text";
|
|
48
|
-
};
|
|
49
|
-
disabled: {
|
|
50
|
-
description: string;
|
|
51
|
-
control: "boolean";
|
|
52
|
-
};
|
|
53
|
-
onClick: {
|
|
54
|
-
description: string;
|
|
55
|
-
control: false;
|
|
56
|
-
};
|
|
57
|
-
className: {
|
|
58
|
-
description: string;
|
|
59
|
-
control: "text";
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export default meta;
|
|
64
|
-
type Story = StoryObj<typeof meta>;
|
|
65
|
-
export declare const Basic: Story;
|
|
66
|
-
export declare const Variants: Story;
|
|
67
|
-
export declare const ComposableScheme: Story;
|
|
68
|
-
export declare const WithIcons: Story;
|
|
69
|
-
//# sourceMappingURL=Button.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/button/stories/Button.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,KAAK,EAAE,KASnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAoBtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAuB9B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAgBvB,CAAC"}
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../../chunks/Button-CCWuggdA.js";
|
|
2
|
-
import { BellIcon as t, CheckIcon as n, DownloadIcon as r, PlusIcon as i } from "lucide-react";
|
|
3
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
|
-
import { fn as s } from "storybook/test";
|
|
5
|
-
//#region src/button/stories/Button.stories.tsx
|
|
6
|
-
var c = {
|
|
7
|
-
title: "Shared/UI/Button",
|
|
8
|
-
component: e,
|
|
9
|
-
args: {
|
|
10
|
-
children: "Действие",
|
|
11
|
-
variant: "neutralOutline",
|
|
12
|
-
disabled: !1,
|
|
13
|
-
iconEnd: !1,
|
|
14
|
-
onClick: s()
|
|
15
|
-
},
|
|
16
|
-
parameters: {
|
|
17
|
-
atomicCanvas: !0,
|
|
18
|
-
layout: "padded"
|
|
19
|
-
},
|
|
20
|
-
tags: ["autodocs"],
|
|
21
|
-
argTypes: {
|
|
22
|
-
children: {
|
|
23
|
-
description: "Текстовое содержимое кнопки.",
|
|
24
|
-
control: "text"
|
|
25
|
-
},
|
|
26
|
-
variant: {
|
|
27
|
-
description: "Готовая схема для обратной совместимости. Если заданы `tone` или `appearance`, они имеют приоритет.",
|
|
28
|
-
control: "select",
|
|
29
|
-
options: [
|
|
30
|
-
"neutral",
|
|
31
|
-
"neutralOutline",
|
|
32
|
-
"ghost",
|
|
33
|
-
"error",
|
|
34
|
-
"warning",
|
|
35
|
-
"success",
|
|
36
|
-
"info",
|
|
37
|
-
"errorOutline",
|
|
38
|
-
"warningOutline",
|
|
39
|
-
"successOutline",
|
|
40
|
-
"infoOutline",
|
|
41
|
-
"transparent"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
tone: {
|
|
45
|
-
description: "Семантический тон кнопки.",
|
|
46
|
-
control: "inline-radio",
|
|
47
|
-
options: [
|
|
48
|
-
"neutral",
|
|
49
|
-
"error",
|
|
50
|
-
"warning",
|
|
51
|
-
"success",
|
|
52
|
-
"info"
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
appearance: {
|
|
56
|
-
description: "Визуальная форма кнопки.",
|
|
57
|
-
control: "inline-radio",
|
|
58
|
-
options: [
|
|
59
|
-
"solid",
|
|
60
|
-
"outline",
|
|
61
|
-
"ghost",
|
|
62
|
-
"transparent"
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
icon: {
|
|
66
|
-
description: "Иконка слева или справа от текста.",
|
|
67
|
-
control: !1
|
|
68
|
-
},
|
|
69
|
-
iconEnd: {
|
|
70
|
-
description: "Перемещает иконку в конец кнопки.",
|
|
71
|
-
control: "boolean"
|
|
72
|
-
},
|
|
73
|
-
title: {
|
|
74
|
-
description: "Текст тултипа и `aria-label` для кнопки.",
|
|
75
|
-
control: "text"
|
|
76
|
-
},
|
|
77
|
-
disabled: {
|
|
78
|
-
description: "Блокирует нажатие.",
|
|
79
|
-
control: "boolean"
|
|
80
|
-
},
|
|
81
|
-
onClick: {
|
|
82
|
-
description: "Вызывается при нажатии на кнопку.",
|
|
83
|
-
control: !1
|
|
84
|
-
},
|
|
85
|
-
className: {
|
|
86
|
-
description: "Дополнительный CSS-класс.",
|
|
87
|
-
control: "text"
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}, l = {}, u = {
|
|
91
|
-
render: () => /* @__PURE__ */ o("div", {
|
|
92
|
-
style: {
|
|
93
|
-
display: "grid",
|
|
94
|
-
gap: 12,
|
|
95
|
-
gridTemplateColumns: "repeat(auto-fit, minmax(180px, 1fr))"
|
|
96
|
-
},
|
|
97
|
-
children: [
|
|
98
|
-
/* @__PURE__ */ a(e, {
|
|
99
|
-
variant: "neutral",
|
|
100
|
-
children: "Neutral Solid"
|
|
101
|
-
}),
|
|
102
|
-
/* @__PURE__ */ a(e, {
|
|
103
|
-
variant: "neutralOutline",
|
|
104
|
-
children: "Neutral Outline"
|
|
105
|
-
}),
|
|
106
|
-
/* @__PURE__ */ a(e, {
|
|
107
|
-
variant: "ghost",
|
|
108
|
-
children: "Ghost"
|
|
109
|
-
}),
|
|
110
|
-
/* @__PURE__ */ a(e, {
|
|
111
|
-
variant: "info",
|
|
112
|
-
children: "Info Solid"
|
|
113
|
-
}),
|
|
114
|
-
/* @__PURE__ */ a(e, {
|
|
115
|
-
variant: "success",
|
|
116
|
-
children: "Success Solid"
|
|
117
|
-
}),
|
|
118
|
-
/* @__PURE__ */ a(e, {
|
|
119
|
-
variant: "warning",
|
|
120
|
-
children: "Warning Solid"
|
|
121
|
-
}),
|
|
122
|
-
/* @__PURE__ */ a(e, {
|
|
123
|
-
variant: "error",
|
|
124
|
-
children: "Error Solid"
|
|
125
|
-
}),
|
|
126
|
-
/* @__PURE__ */ a(e, {
|
|
127
|
-
variant: "infoOutline",
|
|
128
|
-
children: "Info Outline"
|
|
129
|
-
}),
|
|
130
|
-
/* @__PURE__ */ a(e, {
|
|
131
|
-
variant: "successOutline",
|
|
132
|
-
children: "Success Outline"
|
|
133
|
-
}),
|
|
134
|
-
/* @__PURE__ */ a(e, {
|
|
135
|
-
variant: "warningOutline",
|
|
136
|
-
children: "Warning Outline"
|
|
137
|
-
}),
|
|
138
|
-
/* @__PURE__ */ a(e, {
|
|
139
|
-
variant: "errorOutline",
|
|
140
|
-
children: "Error Outline"
|
|
141
|
-
}),
|
|
142
|
-
/* @__PURE__ */ a(e, {
|
|
143
|
-
variant: "transparent",
|
|
144
|
-
children: "Transparent"
|
|
145
|
-
})
|
|
146
|
-
]
|
|
147
|
-
}),
|
|
148
|
-
args: { children: "Действие" }
|
|
149
|
-
}, d = { render: () => /* @__PURE__ */ o("div", {
|
|
150
|
-
style: {
|
|
151
|
-
display: "grid",
|
|
152
|
-
gap: 12,
|
|
153
|
-
gridTemplateColumns: "repeat(auto-fit, minmax(180px, 1fr))"
|
|
154
|
-
},
|
|
155
|
-
children: [
|
|
156
|
-
/* @__PURE__ */ a(e, {
|
|
157
|
-
tone: "neutral",
|
|
158
|
-
appearance: "solid",
|
|
159
|
-
children: "Neutral Solid"
|
|
160
|
-
}),
|
|
161
|
-
/* @__PURE__ */ a(e, {
|
|
162
|
-
tone: "neutral",
|
|
163
|
-
appearance: "outline",
|
|
164
|
-
children: "Neutral Outline"
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ a(e, {
|
|
167
|
-
tone: "neutral",
|
|
168
|
-
appearance: "ghost",
|
|
169
|
-
children: "Neutral Ghost"
|
|
170
|
-
}),
|
|
171
|
-
/* @__PURE__ */ a(e, {
|
|
172
|
-
tone: "info",
|
|
173
|
-
appearance: "outline",
|
|
174
|
-
children: "Info Outline"
|
|
175
|
-
}),
|
|
176
|
-
/* @__PURE__ */ a(e, {
|
|
177
|
-
tone: "success",
|
|
178
|
-
appearance: "solid",
|
|
179
|
-
children: "Success Solid"
|
|
180
|
-
}),
|
|
181
|
-
/* @__PURE__ */ a(e, {
|
|
182
|
-
tone: "error",
|
|
183
|
-
appearance: "transparent",
|
|
184
|
-
children: "Error Transparent"
|
|
185
|
-
})
|
|
186
|
-
]
|
|
187
|
-
}) }, f = {
|
|
188
|
-
render: () => /* @__PURE__ */ o("div", {
|
|
189
|
-
style: {
|
|
190
|
-
display: "flex",
|
|
191
|
-
gap: 12,
|
|
192
|
-
flexWrap: "wrap"
|
|
193
|
-
},
|
|
194
|
-
children: [
|
|
195
|
-
/* @__PURE__ */ a(e, {
|
|
196
|
-
icon: /* @__PURE__ */ a(r, {}),
|
|
197
|
-
children: "Скачать"
|
|
198
|
-
}),
|
|
199
|
-
/* @__PURE__ */ a(e, {
|
|
200
|
-
icon: /* @__PURE__ */ a(i, {}),
|
|
201
|
-
tone: "info",
|
|
202
|
-
appearance: "solid",
|
|
203
|
-
children: "Создать"
|
|
204
|
-
}),
|
|
205
|
-
/* @__PURE__ */ a(e, {
|
|
206
|
-
icon: /* @__PURE__ */ a(n, {}),
|
|
207
|
-
iconEnd: !0,
|
|
208
|
-
tone: "success",
|
|
209
|
-
appearance: "solid",
|
|
210
|
-
children: "Подтвердить"
|
|
211
|
-
}),
|
|
212
|
-
/* @__PURE__ */ a(e, {
|
|
213
|
-
icon: /* @__PURE__ */ a(t, {}),
|
|
214
|
-
title: "Уведомления"
|
|
215
|
-
})
|
|
216
|
-
]
|
|
217
|
-
}),
|
|
218
|
-
args: { children: "Действие" }
|
|
219
|
-
};
|
|
220
|
-
//#endregion
|
|
221
|
-
export { l as Basic, d as ComposableScheme, u as Variants, f as WithIcons, c as default };
|
|
222
|
-
|
|
223
|
-
//# sourceMappingURL=Button.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.js","names":[],"sources":["../../../src/button/stories/Button.stories.tsx"],"sourcesContent":["import { BellIcon, CheckIcon, DownloadIcon, PlusIcon } from \"lucide-react\";\nimport { fn } from \"storybook/test\";\n\nimport { Button } from \"../Button\";\n\nimport type { Meta, StoryObj } from \"@storybook/react-vite\";\n\nconst meta = {\n\ttitle: \"Shared/UI/Button\",\n\tcomponent: Button,\n\targs: {\n\t\tchildren: \"Действие\",\n\t\tvariant: \"neutralOutline\",\n\t\tdisabled: false,\n\t\ticonEnd: false,\n\t\tonClick: fn()\n\t},\n\tparameters: {\n\t\tatomicCanvas: true,\n\t\tlayout: \"padded\"\n\t},\n\ttags: [\"autodocs\"],\n\targTypes: {\n\t\tchildren: {\n\t\t\tdescription: \"Текстовое содержимое кнопки.\",\n\t\t\tcontrol: \"text\"\n\t\t},\n\t\tvariant: {\n\t\t\tdescription: \"Готовая схема для обратной совместимости. Если заданы `tone` или `appearance`, они имеют приоритет.\",\n\t\t\tcontrol: \"select\",\n\t\t\toptions: [\n\t\t\t\t\"neutral\",\n\t\t\t\t\"neutralOutline\",\n\t\t\t\t\"ghost\",\n\t\t\t\t\"error\",\n\t\t\t\t\"warning\",\n\t\t\t\t\"success\",\n\t\t\t\t\"info\",\n\t\t\t\t\"errorOutline\",\n\t\t\t\t\"warningOutline\",\n\t\t\t\t\"successOutline\",\n\t\t\t\t\"infoOutline\",\n\t\t\t\t\"transparent\"\n\t\t\t]\n\t\t},\n\t\ttone: {\n\t\t\tdescription: \"Семантический тон кнопки.\",\n\t\t\tcontrol: \"inline-radio\",\n\t\t\toptions: [\"neutral\", \"error\", \"warning\", \"success\", \"info\"]\n\t\t},\n\t\tappearance: {\n\t\t\tdescription: \"Визуальная форма кнопки.\",\n\t\t\tcontrol: \"inline-radio\",\n\t\t\toptions: [\"solid\", \"outline\", \"ghost\", \"transparent\"]\n\t\t},\n\t\ticon: {\n\t\t\tdescription: \"Иконка слева или справа от текста.\",\n\t\t\tcontrol: false\n\t\t},\n\t\ticonEnd: {\n\t\t\tdescription: \"Перемещает иконку в конец кнопки.\",\n\t\t\tcontrol: \"boolean\"\n\t\t},\n\t\ttitle: {\n\t\t\tdescription: \"Текст тултипа и `aria-label` для кнопки.\",\n\t\t\tcontrol: \"text\"\n\t\t},\n\t\tdisabled: {\n\t\t\tdescription: \"Блокирует нажатие.\",\n\t\t\tcontrol: \"boolean\"\n\t\t},\n\t\tonClick: {\n\t\t\tdescription: \"Вызывается при нажатии на кнопку.\",\n\t\t\tcontrol: false\n\t\t},\n\t\tclassName: {\n\t\t\tdescription: \"Дополнительный CSS-класс.\",\n\t\t\tcontrol: \"text\"\n\t\t}\n\t}\n} satisfies Meta<typeof Button>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Basic: Story = {\n\t// play: async function ({ args, canvas, userEvent }) {\n\t// \tconst button = canvas.getByRole(\"button\", { name: /button/i });\n\t// \t// 👇 Simulate behavior\n\t// \tawait userEvent.click(button);\n\t// \t// 👇 Make assertions\n\t// \tawait expect(button).toBeVisible();\n\t// \tawait expect(args.onClick).not.toHaveBeenCalled();\n\t// }\n};\n\nexport const Variants: Story = {\n\trender: () => (\n\t\t<div style={{ display: \"grid\", gap: 12, gridTemplateColumns: \"repeat(auto-fit, minmax(180px, 1fr))\" }}>\n\t\t\t<Button variant=\"neutral\">Neutral Solid</Button>\n\t\t\t<Button variant=\"neutralOutline\">Neutral Outline</Button>\n\t\t\t<Button variant=\"ghost\">Ghost</Button>\n\t\t\t<Button variant=\"info\">Info Solid</Button>\n\t\t\t<Button variant=\"success\">Success Solid</Button>\n\t\t\t<Button variant=\"warning\">Warning Solid</Button>\n\t\t\t<Button variant=\"error\">Error Solid</Button>\n\t\t\t<Button variant=\"infoOutline\">Info Outline</Button>\n\t\t\t<Button variant=\"successOutline\">Success Outline</Button>\n\t\t\t<Button variant=\"warningOutline\">Warning Outline</Button>\n\t\t\t<Button variant=\"errorOutline\">Error Outline</Button>\n\t\t\t<Button variant=\"transparent\">Transparent</Button>\n\t\t</div>\n\t),\n\targs: {\n\t\tchildren: \"Действие\"\n\t}\n};\n\nexport const ComposableScheme: Story = {\n\trender: () => (\n\t\t<div style={{ display: \"grid\", gap: 12, gridTemplateColumns: \"repeat(auto-fit, minmax(180px, 1fr))\" }}>\n\t\t\t<Button tone=\"neutral\" appearance=\"solid\">\n\t\t\t\tNeutral Solid\n\t\t\t</Button>\n\t\t\t<Button tone=\"neutral\" appearance=\"outline\">\n\t\t\t\tNeutral Outline\n\t\t\t</Button>\n\t\t\t<Button tone=\"neutral\" appearance=\"ghost\">\n\t\t\t\tNeutral Ghost\n\t\t\t</Button>\n\t\t\t<Button tone=\"info\" appearance=\"outline\">\n\t\t\t\tInfo Outline\n\t\t\t</Button>\n\t\t\t<Button tone=\"success\" appearance=\"solid\">\n\t\t\t\tSuccess Solid\n\t\t\t</Button>\n\t\t\t<Button tone=\"error\" appearance=\"transparent\">\n\t\t\t\tError Transparent\n\t\t\t</Button>\n\t\t</div>\n\t)\n};\n\nexport const WithIcons: Story = {\n\trender: () => (\n\t\t<div style={{ display: \"flex\", gap: 12, flexWrap: \"wrap\" }}>\n\t\t\t<Button icon={<DownloadIcon />}>Скачать</Button>\n\t\t\t<Button icon={<PlusIcon />} tone=\"info\" appearance=\"solid\">\n\t\t\t\tСоздать\n\t\t\t</Button>\n\t\t\t<Button icon={<CheckIcon />} iconEnd tone=\"success\" appearance=\"solid\">\n\t\t\t\tПодтвердить\n\t\t\t</Button>\n\t\t\t<Button icon={<BellIcon />} title=\"Уведомления\" />\n\t\t</div>\n\t),\n\targs: {\n\t\tchildren: \"Действие\"\n\t}\n};\n"],"mappings":";;;;;AAOA,IAAM,IAAO;CACZ,OAAO;CACP,WAAW;CACX,MAAM;EACL,UAAU;EACV,SAAS;EACT,UAAU;EACV,SAAS;EACT,SAAS,EAAG;CACb;CACA,YAAY;EACX,cAAc;EACd,QAAQ;CACT;CACA,MAAM,CAAC,UAAU;CACjB,UAAU;EACT,UAAU;GACT,aAAa;GACb,SAAS;EACV;EACA,SAAS;GACR,aAAa;GACb,SAAS;GACT,SAAS;IACR;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACD;EACD;EACA,MAAM;GACL,aAAa;GACb,SAAS;GACT,SAAS;IAAC;IAAW;IAAS;IAAW;IAAW;GAAM;EAC3D;EACA,YAAY;GACX,aAAa;GACb,SAAS;GACT,SAAS;IAAC;IAAS;IAAW;IAAS;GAAa;EACrD;EACA,MAAM;GACL,aAAa;GACb,SAAS;EACV;EACA,SAAS;GACR,aAAa;GACb,SAAS;EACV;EACA,OAAO;GACN,aAAa;GACb,SAAS;EACV;EACA,UAAU;GACT,aAAa;GACb,SAAS;EACV;EACA,SAAS;GACR,aAAa;GACb,SAAS;EACV;EACA,WAAW;GACV,aAAa;GACb,SAAS;EACV;CACD;AACD,GAKa,IAAe,CAS5B,GAEa,IAAkB;CAC9B,cACC,kBAAC,OAAD;EAAK,OAAO;GAAE,SAAS;GAAQ,KAAK;GAAI,qBAAqB;EAAuC;YAApG;GACC,kBAAC,GAAD;IAAQ,SAAQ;cAAU;GAAqB,CAAA;GAC/C,kBAAC,GAAD;IAAQ,SAAQ;cAAiB;GAAuB,CAAA;GACxD,kBAAC,GAAD;IAAQ,SAAQ;cAAQ;GAAa,CAAA;GACrC,kBAAC,GAAD;IAAQ,SAAQ;cAAO;GAAkB,CAAA;GACzC,kBAAC,GAAD;IAAQ,SAAQ;cAAU;GAAqB,CAAA;GAC/C,kBAAC,GAAD;IAAQ,SAAQ;cAAU;GAAqB,CAAA;GAC/C,kBAAC,GAAD;IAAQ,SAAQ;cAAQ;GAAmB,CAAA;GAC3C,kBAAC,GAAD;IAAQ,SAAQ;cAAc;GAAoB,CAAA;GAClD,kBAAC,GAAD;IAAQ,SAAQ;cAAiB;GAAuB,CAAA;GACxD,kBAAC,GAAD;IAAQ,SAAQ;cAAiB;GAAuB,CAAA;GACxD,kBAAC,GAAD;IAAQ,SAAQ;cAAe;GAAqB,CAAA;GACpD,kBAAC,GAAD;IAAQ,SAAQ;cAAc;GAAmB,CAAA;EAC7C;;CAEN,MAAM,EACL,UAAU,WACX;AACD,GAEa,IAA0B,EACtC,cACC,kBAAC,OAAD;CAAK,OAAO;EAAE,SAAS;EAAQ,KAAK;EAAI,qBAAqB;CAAuC;WAApG;EACC,kBAAC,GAAD;GAAQ,MAAK;GAAU,YAAW;aAAQ;EAElC,CAAA;EACR,kBAAC,GAAD;GAAQ,MAAK;GAAU,YAAW;aAAU;EAEpC,CAAA;EACR,kBAAC,GAAD;GAAQ,MAAK;GAAU,YAAW;aAAQ;EAElC,CAAA;EACR,kBAAC,GAAD;GAAQ,MAAK;GAAO,YAAW;aAAU;EAEjC,CAAA;EACR,kBAAC,GAAD;GAAQ,MAAK;GAAU,YAAW;aAAQ;EAElC,CAAA;EACR,kBAAC,GAAD;GAAQ,MAAK;GAAQ,YAAW;aAAc;EAEtC,CAAA;CACJ;GAEP,GAEa,IAAmB;CAC/B,cACC,kBAAC,OAAD;EAAK,OAAO;GAAE,SAAS;GAAQ,KAAK;GAAI,UAAU;EAAO;YAAzD;GACC,kBAAC,GAAD;IAAQ,MAAM,kBAAC,GAAD,CAAe,CAAA;cAAG;GAAe,CAAA;GAC/C,kBAAC,GAAD;IAAQ,MAAM,kBAAC,GAAD,CAAW,CAAA;IAAG,MAAK;IAAO,YAAW;cAAQ;GAEnD,CAAA;GACR,kBAAC,GAAD;IAAQ,MAAM,kBAAC,GAAD,CAAY,CAAA;IAAG,SAAA;IAAQ,MAAK;IAAU,YAAW;cAAQ;GAE/D,CAAA;GACR,kBAAC,GAAD;IAAQ,MAAM,kBAAC,GAAD,CAAW,CAAA;IAAG,OAAM;GAAe,CAAA;EAC7C;;CAEN,MAAM,EACL,UAAU,WACX;AACD"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from "@storybook/react-vite";
|
|
2
|
-
import { CheckBox } from "../CheckBox";
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof CheckBox;
|
|
6
|
-
args: {
|
|
7
|
-
value: false;
|
|
8
|
-
onChange: () => void;
|
|
9
|
-
};
|
|
10
|
-
parameters: {
|
|
11
|
-
atomicCanvas: boolean;
|
|
12
|
-
layout: string;
|
|
13
|
-
};
|
|
14
|
-
tags: string[];
|
|
15
|
-
argTypes: {
|
|
16
|
-
label: {
|
|
17
|
-
description: string;
|
|
18
|
-
control: "text";
|
|
19
|
-
};
|
|
20
|
-
description: {
|
|
21
|
-
description: string;
|
|
22
|
-
control: "text";
|
|
23
|
-
};
|
|
24
|
-
placeholder: {
|
|
25
|
-
description: string;
|
|
26
|
-
control: "text";
|
|
27
|
-
};
|
|
28
|
-
value: {
|
|
29
|
-
description: string;
|
|
30
|
-
control: "boolean";
|
|
31
|
-
};
|
|
32
|
-
onChange: {
|
|
33
|
-
description: string;
|
|
34
|
-
control: false;
|
|
35
|
-
};
|
|
36
|
-
disabled: {
|
|
37
|
-
description: string;
|
|
38
|
-
control: "boolean";
|
|
39
|
-
};
|
|
40
|
-
size: {
|
|
41
|
-
description: string;
|
|
42
|
-
control: "select";
|
|
43
|
-
options: string[];
|
|
44
|
-
};
|
|
45
|
-
tone: {
|
|
46
|
-
description: string;
|
|
47
|
-
control: "inline-radio";
|
|
48
|
-
options: string[];
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export default meta;
|
|
53
|
-
type Story = StoryObj<typeof meta>;
|
|
54
|
-
export declare const Controlled: Story;
|
|
55
|
-
export declare const Tones: Story;
|
|
56
|
-
export declare const Sizes: Story;
|
|
57
|
-
export declare const Disabled: Story;
|
|
58
|
-
//# sourceMappingURL=CheckBox.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBox.stories.d.ts","sourceRoot":"","sources":["../../../src/check-box/stories/CheckBox.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDuB,CAAC;AAElC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,UAAU,EAAE,KAaxB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAwBnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAwBnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC"}
|