@ryuzaki13/react-foundation-ui 1.5.7 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced-search/index.js +8 -8
- package/dist/badge/index.js +1 -1
- package/dist/base-table/index.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/check-box/index.js +1 -1
- package/dist/chunks/{CalendarView-DO899w6E.js → CalendarView-BSshXZAX.js} +2 -2
- package/dist/chunks/{CalendarView-DO899w6E.js.map → CalendarView-BSshXZAX.js.map} +1 -1
- package/dist/chunks/{TextEditorLexicalClient-C7XL4lZ5.js → TextEditorLexicalClient-CLjpATRu.js} +6 -6
- package/dist/chunks/{TextEditorLexicalClient-C7XL4lZ5.js.map → TextEditorLexicalClient-CLjpATRu.js.map} +1 -1
- package/dist/chunks/{badge-BXwM9cFq.js → badge-CaooZXYD.js} +4 -4
- package/dist/chunks/{badge-BXwM9cFq.js.map → badge-CaooZXYD.js.map} +1 -1
- package/dist/chunks/{base-table-CFJHhLNb.js → base-table-fUJY__6M.js} +2 -2
- package/dist/chunks/{base-table-CFJHhLNb.js.map → base-table-fUJY__6M.js.map} +1 -1
- package/dist/chunks/{button-BcnvJpqz.js → button-C--u7uJj.js} +5 -5
- package/dist/chunks/{button-BcnvJpqz.js.map → button-C--u7uJj.js.map} +1 -1
- package/dist/chunks/{check-box-BrPHWs2l.js → check-box-BZiEBR9c.js} +3 -3
- package/dist/chunks/{check-box-BrPHWs2l.js.map → check-box-BZiEBR9c.js.map} +1 -1
- package/dist/chunks/{context-menu-DcdUfWN3.js → context-menu-XZ-e0f6_.js} +2 -2
- package/dist/chunks/{context-menu-DcdUfWN3.js.map → context-menu-XZ-e0f6_.js.map} +1 -1
- package/dist/chunks/{date-input-Db7GPkPC.js → date-input-Dr5QNVT6.js} +5 -5
- package/dist/chunks/{date-input-Db7GPkPC.js.map → date-input-Dr5QNVT6.js.map} +1 -1
- package/dist/chunks/{input-CMVATAFR.js → input-BNszawm6.js} +2 -2
- package/dist/chunks/{input-CMVATAFR.js.map → input-BNszawm6.js.map} +1 -1
- package/dist/chunks/{input-files-DM6I2iF_.js → input-files-DxLVr2PF.js} +3 -3
- package/dist/chunks/{input-files-DM6I2iF_.js.map → input-files-DxLVr2PF.js.map} +1 -1
- package/dist/chunks/{input-search-BlTKbtAL.js → input-search-C2OOhZlw.js} +2 -2
- package/dist/chunks/{input-search-BlTKbtAL.js.map → input-search-C2OOhZlw.js.map} +1 -1
- package/dist/chunks/{modal-z1Ej4Y-r.js → modal-DK9M7lT5.js} +2 -2
- package/dist/chunks/{modal-z1Ej4Y-r.js.map → modal-DK9M7lT5.js.map} +1 -1
- package/dist/chunks/{multi-select-BMBjWg3h.js → multi-select-CFHaQPot.js} +5 -5
- package/dist/chunks/{multi-select-BMBjWg3h.js.map → multi-select-CFHaQPot.js.map} +1 -1
- package/dist/chunks/{picker-C-a-2NkB.js → picker-D3Fc15JH.js} +3 -3
- package/dist/chunks/{picker-C-a-2NkB.js.map → picker-D3Fc15JH.js.map} +1 -1
- package/dist/chunks/{radio-group-D-eBPuGm.js → radio-group-BRR1ZQDA.js} +2 -2
- package/dist/chunks/radio-group-BRR1ZQDA.js.map +1 -0
- package/dist/chunks/{select-BhVOTvZ_.js → select-BolFlcoY.js} +5 -5
- package/dist/chunks/{select-BhVOTvZ_.js.map → select-BolFlcoY.js.map} +1 -1
- package/dist/chunks/{table-jMjMoYKh.js → table-BChs6bgR.js} +2 -2
- package/dist/chunks/{table-jMjMoYKh.js.map → table-BChs6bgR.js.map} +1 -1
- package/dist/chunks/{ui.module-D_ZhzCRv.js → ui.module-DHVTOqZ0.js} +6 -2
- package/dist/chunks/{ui.module-D_ZhzCRv.js.map → ui.module-DHVTOqZ0.js.map} +1 -1
- package/dist/chunks/{uiClasses-CF_aN4Tv.js → uiClasses-UkaejTdf.js} +13 -6
- package/dist/chunks/uiClasses-UkaejTdf.js.map +1 -0
- package/dist/chunks/{useODataSelectBase-CQJuzk5Q.js → useODataSelectBase-BhCMCzv_.js} +2 -2
- package/dist/chunks/{useODataSelectBase-CQJuzk5Q.js.map → useODataSelectBase-BhCMCzv_.js.map} +1 -1
- package/dist/context-menu/index.js +1 -1
- package/dist/date-input/index.js +2 -2
- package/dist/date-time-input/index.js +3 -3
- package/dist/disclosure/Disclosure.d.ts +6 -4
- package/dist/disclosure/Disclosure.d.ts.map +1 -1
- package/dist/disclosure/index.js +34 -33
- package/dist/disclosure/index.js.map +1 -1
- package/dist/drop-zone/index.js +1 -1
- package/dist/expandable-action-panel/index.js +1 -1
- package/dist/image/index.js +4 -4
- package/dist/input/index.js +1 -1
- package/dist/input-date-time/index.js +2 -2
- package/dist/input-file/index.js +2 -2
- package/dist/input-files/index.js +1 -1
- package/dist/input-image/index.js +2 -2
- package/dist/input-search/index.js +1 -1
- package/dist/layout-picker/index.js +2 -2
- package/dist/layout-picker/index.js.map +1 -1
- package/dist/listbox/index.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/multi-select/index.js +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/picker/index.js +1 -1
- package/dist/preset-range-date-input/index.js +1 -1
- package/dist/preset-select/index.js +1 -1
- package/dist/radio-button/RadioButton.d.ts +2 -0
- package/dist/radio-button/RadioButton.d.ts.map +1 -1
- package/dist/radio-button/index.js +4 -6
- package/dist/radio-button/index.js.map +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/simple-table/index.js +1 -1
- package/dist/slider/index.js +3 -3
- package/dist/slider/index.js.map +1 -1
- package/dist/state-select/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table-sorting/index.js +1 -1
- package/dist/tabs/index.d.ts +0 -2
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/tabs/index.js +164 -173
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/model/types.d.ts +9 -8
- package/dist/tabs/model/types.d.ts.map +1 -1
- package/dist/tabs/ui/TabsBox.d.ts +1 -1
- package/dist/tabs/ui/TabsBox.d.ts.map +1 -1
- package/dist/tabs/ui/TabsLayout.d.ts.map +1 -1
- package/dist/tag-input/index.js +2 -2
- package/dist/text/Text.d.ts +1 -1
- package/dist/text/Text.d.ts.map +1 -1
- package/dist/text/index.js +3 -1
- package/dist/text/index.js.map +1 -1
- package/dist/text-editor/index.js +1 -1
- package/dist/textarea/index.js +2 -2
- package/dist/toggle/index.js +1 -1
- package/dist/toggle/index.js.map +1 -1
- package/dist/tree-select/index.js +6 -6
- package/dist/tree-table/index.js +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/uiClasses.d.ts +2 -1
- package/dist/uiClasses.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/styles/_color.scss +4 -0
- package/storybook-static/assets/{Badge-C57OpH6H.js → Badge-H-k9yUSA.js} +1 -1
- package/storybook-static/assets/{Badge.stories-CUtS3gdC.js → Badge.stories-6jzeuC64.js} +1 -1
- package/storybook-static/assets/{BadgeList-Br7PCtJe.js → BadgeList-DB44TweU.js} +2 -2
- package/storybook-static/assets/{Button-BUAFSG7a.js → Button-CAqJR-HG.js} +1 -1
- package/storybook-static/assets/{Button-CXacCJwd.js → Button-D3hmChuc.js} +1 -1
- package/storybook-static/assets/{Button.stories-CG-Xqadt.js → Button.stories-Dms2VFN3.js} +1 -1
- package/storybook-static/assets/{CalendarView-DxkdSsAx.js → CalendarView-DkD4c8VM.js} +1 -1
- package/storybook-static/assets/{CheckBox-DnxmVFE5.js → CheckBox-BTKqpDhB.js} +1 -1
- package/storybook-static/assets/{CheckBox-CIv6lt7Z.js → CheckBox-DGy-LNaF.js} +1 -1
- package/storybook-static/assets/{CheckBox.stories-foJ6NnTj.js → CheckBox.stories-Cr1VcSRy.js} +1 -1
- package/storybook-static/assets/{Color-6AOWCN3U-DrqTmtJf.js → Color-6AOWCN3U-D2ij3DuB.js} +1 -1
- package/storybook-static/assets/{ContextMenu-BOM4Gk64.js → ContextMenu-BTCmlKUo.js} +1 -1
- package/storybook-static/assets/{ContextMenu-C8SQXRxm.js → ContextMenu-XLrJcLuy.js} +1 -1
- package/storybook-static/assets/{ContextMenu.stories-CFwISC9P.js → ContextMenu.stories-BF0iVkIu.js} +1 -1
- package/storybook-static/assets/{DateInput-ClKgqyQO.js → DateInput-BAvKi07l.js} +1 -1
- package/storybook-static/assets/{DateInput-BWSZLH9k.js → DateInput-BiQztDCJ.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-BIMqPAY-.js → DateInput.stories-tcb5N1bV.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-yzuX25-A.js → DateRangePresetSelect-CSrEwt-3.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-DWIraW8Q.js → DateRangePresetSelect-CiGmgmac.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect.stories-Bqxh85ie.js → DateRangePresetSelect.stories-DIXe2bLs.js} +1 -1
- package/storybook-static/assets/{Detail-BwbUH-2a.js → Detail-CI8BYAuL.js} +1 -1
- package/storybook-static/assets/{Detail.stories-BJZxxHBe.js → Detail.stories-Ccicg9Vr.js} +1 -1
- package/storybook-static/assets/{Dialog-B6ZkSwFG.js → Dialog-597JR3cR.js} +1 -1
- package/storybook-static/assets/{Dialog-CjAdwNLK.js → Dialog-R5Am1Hzd.js} +1 -1
- package/storybook-static/assets/{Dialog.stories-Cw9Inezq.js → Dialog.stories-ClpSbVhd.js} +1 -1
- package/storybook-static/assets/{Disclosure-BgaRYF6o.js → Disclosure-zZQU-Iyf.js} +1 -1
- package/storybook-static/assets/{Disclosure.stories-B3cOFkzP.js → Disclosure.stories-C2-9GP8X.js} +1 -1
- package/storybook-static/assets/DisclosureGroup-CVFMwx22.css +1 -0
- package/storybook-static/assets/DisclosureGroup-DtQit9bi.js +2 -0
- package/storybook-static/assets/{DocsRenderer-JROSPFPF-BWdUj6SG.js → DocsRenderer-JROSPFPF-VDAUUJ7T.js} +1 -1
- package/storybook-static/assets/{DropZone-D7XJczCv.js → DropZone-BGH6QR3H.js} +1 -1
- package/storybook-static/assets/{DropZone-DnJJRVvs.js → DropZone-DYT6KTBY.js} +1 -1
- package/storybook-static/assets/{DropZone.stories-DCILeRID.js → DropZone.stories-Db_Eah_P.js} +1 -1
- package/storybook-static/assets/{DropdownMenu-eA7CqmEq.js → DropdownMenu-Dw4WHBLp.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel-Bi8GdZk8.js → ExpandableActionPanel-C1SC-Fm0.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel.stories-CnpIhE-p.js → ExpandableActionPanel.stories-Ce5iXJOz.js} +1 -1
- package/storybook-static/assets/{Flex-CTId58Yi.js → Flex-B1Xbfrsd.js} +1 -1
- package/storybook-static/assets/{Flex.stories-DzO6eshU.js → Flex.stories-B51AhkLf.js} +1 -1
- package/storybook-static/assets/{FloatingPopover-Bj3n1Cbm.js → FloatingPopover-8m1ZtemJ.js} +1 -1
- package/storybook-static/assets/{FormattedTableCell-DgbwZ60P.js → FormattedTableCell-DGC4mBLN.js} +1 -1
- package/storybook-static/assets/{Grid-Dd82LOHp.js → Grid-BGmNVH-Y.js} +1 -1
- package/storybook-static/assets/{Grid.stories-DijrLN9C.js → Grid.stories-dp9HIC9t.js} +1 -1
- package/storybook-static/assets/{ImageCropper.stories-BeJRCTBT.js → ImageCropper.stories-Bjn1k0Kz.js} +1 -1
- package/storybook-static/assets/{ImageRenderer-DJPFz9-n.js → ImageRenderer-DjYotwaD.js} +1 -1
- package/storybook-static/assets/{ImageRenderer.stories--ai66HWP.js → ImageRenderer.stories-BxWs6FdX.js} +1 -1
- package/storybook-static/assets/{ImageView.stories-khEGxQEm.js → ImageView.stories-icpfyY3j.js} +1 -1
- package/storybook-static/assets/{ImageViewer.stories-DF6RRs2D.js → ImageViewer.stories-zcaCCmK2.js} +2 -2
- package/storybook-static/assets/{ImageViewerRuntime-DBwCIibL.js → ImageViewerRuntime-CqsgnUZA.js} +1 -1
- package/storybook-static/assets/{Input-BqqylVpn.js → Input-CIQAnFtb.js} +1 -1
- package/storybook-static/assets/{Input-Fk3IRww_.js → Input-CUfYW_um.js} +1 -1
- package/storybook-static/assets/{Input.stories-BQMPGwcm.js → Input.stories-DfCKF8rm.js} +1 -1
- package/storybook-static/assets/{InputDateTime-B3aoGdLh.js → InputDateTime-BRLLMLY_.js} +1 -1
- package/storybook-static/assets/{InputDateTime.stories-BVD7wYFB.js → InputDateTime.stories-CvxnfvBi.js} +1 -1
- package/storybook-static/assets/{InputFile-BPIyxf85.js → InputFile-ChUdk4fI.js} +1 -1
- package/storybook-static/assets/{InputFile-CeDA-DBu.js → InputFile-DodOOJna.js} +1 -1
- package/storybook-static/assets/{InputFile.stories-CTyjqf2i.js → InputFile.stories-BbUp9qzg.js} +1 -1
- package/storybook-static/assets/{InputFiles-Ay6AhGXY.js → InputFiles-B2tnIFaW.js} +1 -1
- package/storybook-static/assets/{InputFiles-Bs_ANsbH.js → InputFiles-DiXnyunh.js} +1 -1
- package/storybook-static/assets/{InputFiles.stories-DpulRmAF.js → InputFiles.stories-CDD5dVDx.js} +1 -1
- package/storybook-static/assets/{InputFilesList-O66HnsfV.js → InputFilesList-DQJ-PQST.js} +1 -1
- package/storybook-static/assets/{InputImage-8CkQNIx-.js → InputImage-C325RWQr.js} +1 -1
- package/storybook-static/assets/{InputImage-C61yYNvh.js → InputImage-fwAQqeI_.js} +1 -1
- package/storybook-static/assets/{InputImage.stories-B9EdEI54.js → InputImage.stories-L3jyHxSJ.js} +1 -1
- package/storybook-static/assets/{InteractiveComponents-D3625WeG.js → InteractiveComponents-OABim2ku.js} +3 -3
- package/storybook-static/assets/InteractiveComponents.stories-EPcGTlqo.js +530 -0
- package/storybook-static/assets/{LayoutPicker-BzdqkISv.js → LayoutPicker-CPFQxHT8.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-yb6IMmd2.css → LayoutPicker-DudPIiwb.css} +1 -1
- package/storybook-static/assets/{LayoutPicker-TghytR7l.js → LayoutPicker-ZpKrd_7K.js} +1 -1
- package/storybook-static/assets/{LayoutPicker.stories-BcQcVoGX.js → LayoutPicker.stories-SD1M9rTk.js} +1 -1
- package/storybook-static/assets/{Listbox-kuB9DZmS.js → Listbox-CuNYuQox.js} +1 -1
- package/storybook-static/assets/{Listbox-DuNXYpU5.js → Listbox-D14PtWlP.js} +1 -1
- package/storybook-static/assets/{Listbox.stories-RaF4O2dQ.js → Listbox.stories-C24wwo8z.js} +1 -1
- package/storybook-static/assets/{Modal-i-qVmfOZ.js → Modal-V81rtPnm.js} +1 -1
- package/storybook-static/assets/{Modal.stories-jAQ3yHty.js → Modal.stories-DtkSn50u.js} +1 -1
- package/storybook-static/assets/{ModalManagerProvider-_TvqmYe3.js → ModalManagerProvider-Z3rgI84z.js} +1 -1
- package/storybook-static/assets/{MultiSelect-DiBUW3Jo.js → MultiSelect-CCpKNk3U.js} +1 -1
- package/storybook-static/assets/{MultiSelect-BD6xtx7W.js → MultiSelect-CWHllMQL.js} +1 -1
- package/storybook-static/assets/{MultiSelect.stories-Cc4-fIjA.js → MultiSelect.stories-BK3hlkDB.js} +1 -1
- package/storybook-static/assets/{NoData-BvxB_r9f.js → NoData-vatUQRQ8.js} +1 -1
- package/storybook-static/assets/{NotificationsHost-DDxqV6_Y.js → NotificationsHost-DA4Psge0.js} +1 -1
- package/storybook-static/assets/{NotificationsHost.stories-tMVttzUz.js → NotificationsHost.stories-Bq3X0zOH.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect-96O4f-qa.js → ODataMultiSelect-B7_-_SsF.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect.stories-DpRZoXwK.js → ODataMultiSelect.stories-BNFsF78C.js} +1 -1
- package/storybook-static/assets/{ODataSelect-MS3gU6J3.js → ODataSelect-BDDK25Nk.js} +1 -1
- package/storybook-static/assets/{ODataSelect.stories-V6u4XJN4.js → ODataSelect.stories-DUh5DBtM.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect-B_pN_Ec6.js → ODataTreeMultiSelect-DBs7NzjO.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect.stories-DsyoOuR8.js → ODataTreeMultiSelect.stories-HAT4WTM-.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect-iQ8y3cDY.js → ODataTreeSelect-imLw4plg.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect.stories-DCzwGTkw.js → ODataTreeSelect.stories-URCAozFr.js} +1 -1
- package/storybook-static/assets/{OneStepScroller-DHETHT90.js → OneStepScroller-KNIY7BEL.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-C5gt4lj6.js → PeriodSelect-C4Z1vWiO.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-CC7faqoe.js → PeriodSelect-Dg4cO0kt.js} +1 -1
- package/storybook-static/assets/{PeriodSelect.stories-1gMZgYMb.js → PeriodSelect.stories-CcVbKheD.js} +1 -1
- package/storybook-static/assets/{PickerSelectionToolbar-DA9AqLfK.js → PickerSelectionToolbar-C_OkpXnl.js} +1 -1
- package/storybook-static/assets/{PickerTriggerActions-Bt4rbg1T.js → PickerTriggerActions-DoqVHiKv.js} +1 -1
- package/storybook-static/assets/{Popover-DoiYIRMQ.js → Popover-BhdTqLlb.js} +1 -1
- package/storybook-static/assets/{Popover-gg-G1aUp.js → Popover-N6YINSY_.js} +1 -1
- package/storybook-static/assets/{Popover.stories-Yt2zItKA.js → Popover.stories-CN59PWzR.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-CB6Cyj_z.js → PresetRangeDateInput-CXs3TAYN.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-OuBr9O7l.js → PresetRangeDateInput-Ctgz_cfn.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput.stories-DEv0NvxR.js → PresetRangeDateInput.stories-B7INPvQC.js} +1 -1
- package/storybook-static/assets/{PresetSelect-QCMUn7im.js → PresetSelect-BEvkvTRL.js} +1 -1
- package/storybook-static/assets/{RadioButton-D1O1e-bK.js → RadioButton-0RVpzxzk.js} +1 -1
- package/storybook-static/assets/RadioButton-BfyYyhLa.js +1 -0
- package/storybook-static/assets/{RadioButton.stories-kT4uLnRo.js → RadioButton.stories-D27stCgN.js} +3 -3
- package/storybook-static/assets/{RadioGroup-Bz9Pc7gG.js → RadioGroup-CFrv1NLu.js} +1 -1
- package/storybook-static/assets/{RadioGroup-vkD0hI_b.css → RadioGroup-DJ1xoaNp.css} +1 -1
- package/storybook-static/assets/{RadioGroup-Cc8bDKSK.js → RadioGroup-DrAOT8A_.js} +1 -1
- package/storybook-static/assets/{RadioGroup.stories-XUcezf_a.js → RadioGroup.stories-C4oBCJdD.js} +1 -1
- package/storybook-static/assets/{Scrollable-7AnJblZH.js → Scrollable-DsEfPtLq.js} +1 -1
- package/storybook-static/assets/{Select-2OS5b3gj.js → Select-Co7ThaEv.js} +1 -1
- package/storybook-static/assets/{Select-B0JlKRZh.js → Select-DOcRt1WX.js} +1 -1
- package/storybook-static/assets/{Select.stories-6NgDnQLy.js → Select.stories-BXNsTQVf.js} +1 -1
- package/storybook-static/assets/{SelectOptionContent-DrMuPE4L.js → SelectOptionContent-ZfSH566e.js} +1 -1
- package/storybook-static/assets/{SerializableSelect-C29Dtj1j.js → SerializableSelect-DY0-hE9S.js} +1 -1
- package/storybook-static/assets/{SerializableSelect.stories-Dk_0LHfx.js → SerializableSelect.stories-awgIM5u-.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-pNtbntt7.js → SingleDateTimeInput-BjaUEsZz.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-Bu-VV-X4.js → SingleDateTimeInput-BtpTlEeK.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput.stories-BY6gytNo.js → SingleDateTimeInput.stories-C7QK6_5g.js} +1 -1
- package/storybook-static/assets/{Slider-CzKsc6lR.js → Slider-BKv97sQa.js} +1 -1
- package/storybook-static/assets/Slider-CK-W2ZTO.css +1 -0
- package/storybook-static/assets/{Slider-CKDNtVxH.js → Slider-aNVrwhr6.js} +1 -1
- package/storybook-static/assets/{Slider.stories-C9CiqYKL.js → Slider.stories-CZvSVBPQ.js} +1 -1
- package/storybook-static/assets/{SliderInput-Dw5e7zgd.js → SliderInput-7X4RLbUB.js} +1 -1
- package/storybook-static/assets/{SliderInput-LIlYbZ-q.js → SliderInput-CkIxuEjc.js} +1 -1
- package/storybook-static/assets/{SliderInput.stories-DScPfD4E.js → SliderInput.stories-DN_GaYcm.js} +1 -1
- package/storybook-static/assets/{Sortable-BrbLX--A.js → Sortable-CmftIyd3.js} +1 -1
- package/storybook-static/assets/{Sortable.stories-CNgF8pCO.js → Sortable.stories-Jz0esMg6.js} +1 -1
- package/storybook-static/assets/{Splitter-B5t8ta7u.js → Splitter-DW_9UWfI.js} +1 -1
- package/storybook-static/assets/{Splitter.stories-Cz_ZAwsO.js → Splitter.stories-D5ynqUat.js} +1 -1
- package/storybook-static/assets/{StateSelect-CkC0uV89.js → StateSelect-BHhwcOHa.js} +1 -1
- package/storybook-static/assets/{StateSelect-BpZxLrbE.js → StateSelect-CLchQToK.js} +1 -1
- package/storybook-static/assets/{StateSelect.stories-7YPBHcZj.js → StateSelect.stories-BdwAm9TE.js} +1 -1
- package/storybook-static/assets/{StringToggle.stories-dy82Cq3e.js → StringToggle.stories-mZtN5ZqY.js} +1 -1
- package/storybook-static/assets/{Switch-L91cfss1.js → Switch-Bf1Zr3rq.js} +1 -1
- package/storybook-static/assets/{Switch-DmUkZLoV.js → Switch-DfMUb2ZQ.js} +1 -1
- package/storybook-static/assets/{Switch.stories-DacAiGQz.js → Switch.stories-BsZrt00p.js} +1 -1
- package/storybook-static/assets/{Table-B13zUr91.js → Table-DBkYYLix.js} +1 -1
- package/storybook-static/assets/{Table.stories-BPgaag4D.js → Table.stories-MXx2G8Ou.js} +1 -1
- package/storybook-static/assets/Tabs-DmkzIl51.js +65 -0
- package/storybook-static/assets/Tabs.stories-0XRI9VXR.js +57 -0
- package/storybook-static/assets/TabsBox-BcZIzq2f.js +2 -0
- package/storybook-static/assets/TabsBox-D-bkJX9j.css +1 -0
- package/storybook-static/assets/{TagInput-DmTij_wJ.js → TagInput-C1ynHkEU.js} +1 -1
- package/storybook-static/assets/{TagInput.stories-Crz2d9WK.js → TagInput.stories-zByD7t70.js} +1 -1
- package/storybook-static/assets/Text-B8JQ8g6X.js +1 -0
- package/storybook-static/assets/{Textarea-dZHo8H-N.js → Textarea-D7_oAPwc.js} +1 -1
- package/storybook-static/assets/{Textarea-FgIOtg__.js → Textarea-DlwCUO2d.js} +1 -1
- package/storybook-static/assets/{Textarea.stories-DlVs_0Da.js → Textarea.stories-AVxqLKSu.js} +1 -1
- package/storybook-static/assets/{TimePanel-CmNDtcUu.js → TimePanel-DnyfOpfG.js} +1 -1
- package/storybook-static/assets/{TimePanel.stories-DzDCIjYh.js → TimePanel.stories-jO6WSBvm.js} +1 -1
- package/storybook-static/assets/{Toggle-CszEtVgG.js → Toggle-C0wWpjgI.js} +1 -1
- package/storybook-static/assets/{Toggle-iIIRwhJ0.js → Toggle-XKm0YNzz.js} +1 -1
- package/storybook-static/assets/Toggle-fKG2dFY0.css +1 -0
- package/storybook-static/assets/{Toggle.stories-OHqcyxRB.js → Toggle.stories-C0i6HRO0.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-D08x-Zz7.js → TreeMultiSelect-C3LhJxzz.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-BcpQXmXz.js → TreeMultiSelect-D9UnDwNu.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect.stories-CmZ3kEc3.js → TreeMultiSelect.stories-Cy1neWKt.js} +1 -1
- package/storybook-static/assets/{TreePickerBase-PstNPiQo.js → TreePickerBase-l3-d4zHW.js} +1 -1
- package/storybook-static/assets/{TreeSelect-CrpAtboA.js → TreeSelect-B6_w40IO.js} +1 -1
- package/storybook-static/assets/{TreeSelect-xXFRj_Bm.js → TreeSelect-BGUby1c1.js} +1 -1
- package/storybook-static/assets/{TreeSelect.stories-DJaUtn0O.js → TreeSelect.stories-euNnlIhp.js} +1 -1
- package/storybook-static/assets/{TreeTable-C7OZPq-9.js → TreeTable-BdYK6ILe.js} +1 -1
- package/storybook-static/assets/{TreeTable.stories-Dd0YYVZ2.js → TreeTable.stories-BV7UtxnX.js} +1 -1
- package/storybook-static/assets/{async-Bu5V6wLi.js → async-DLn-s4lH.js} +1 -1
- package/storybook-static/assets/{blocks-LF4-T76K.js → blocks-CQ7RHmDr.js} +3 -3
- package/storybook-static/assets/{browserAndReact-DpeuPHLP.js → browserAndReact-8A8IpU0z.js} +1 -1
- package/storybook-static/assets/{check-CxEwVoKp.js → check-DhUE5WQh.js} +1 -1
- package/storybook-static/assets/{chevron-down-DpN_oMWM.js → chevron-down-D4lkPPbf.js} +1 -1
- package/storybook-static/assets/{chevron-left-C9_RRcAe.js → chevron-left-M03WkC-a.js} +1 -1
- package/storybook-static/assets/{chevron-right-K8IWV8l8.js → chevron-right-BJAsqJhn.js} +1 -1
- package/storybook-static/assets/{chunk-W22LQPXL-iNmw4j69.js → chunk-W22LQPXL-CiwCRaDo.js} +1 -1
- package/storybook-static/assets/{circle-alert-B_axag0r.js → circle-alert-q4Jm4R62.js} +1 -1
- package/storybook-static/assets/{circle-check-DdUogvti.js → circle-check-2STuXttp.js} +1 -1
- package/storybook-static/assets/{components-BRUtb9vg.js → components-B5pHXbt2.js} +3 -3
- package/storybook-static/assets/{contextMenu-OelXFAKZ.js → contextMenu-C4kMhuxz.js} +1 -1
- package/storybook-static/assets/{defaultRenderers-CJ0K8d9m.js → defaultRenderers-WqMviHeH.js} +1 -1
- package/storybook-static/assets/{download-D12Nvnyu.js → download-A_0kizVg.js} +1 -1
- package/storybook-static/assets/{filesAndExcel-BBtR-68u.js → filesAndExcel-CfQAZrQE.js} +1 -1
- package/storybook-static/assets/{floating-ui.react-CGVF2LPS.js → floating-ui.react-WPEHN77t.js} +1 -1
- package/storybook-static/assets/{formatters-c0BLP2hy.js → formatters-DmwKOTAq.js} +1 -1
- package/storybook-static/assets/{formatters-runtime-DAwNvKyD.js → formatters-runtime-bVpg8aMB.js} +1 -1
- package/storybook-static/assets/{foundationLib-DfmfMVN5.js → foundationLib-C01I_M2-.js} +1 -1
- package/storybook-static/assets/{hooks-B-9_3OzU.js → hooks-CE5XnwC0.js} +1 -1
- package/storybook-static/assets/{iframe-CZ0KI0zu.js → iframe-B94C5PVz.js} +3 -3
- package/storybook-static/assets/iframe-G3pIVTVE.js +1 -0
- package/storybook-static/assets/iframe-J8XUsZxh.css +1 -0
- package/storybook-static/assets/{info-Cb4lUntE.js → info-DMdsXpNu.js} +1 -1
- package/storybook-static/assets/{odata-CXz6Bety.js → odata-C_Kp4nRV.js} +1 -1
- package/storybook-static/assets/{odataAndTables-Dog6Bul7.js → odataAndTables-BKMVN-Ie.js} +1 -1
- package/storybook-static/assets/{odataFetchFn-BwGEe7ia.js → odataFetchFn-ClGPC3PY.js} +1 -1
- package/storybook-static/assets/{odataStoryFixtures-C6PXnQRZ.js → odataStoryFixtures-BBUrFOHI.js} +1 -1
- package/storybook-static/assets/{persisted-5MRV37vp.js → persisted-Bgbpgwot.js} +1 -1
- package/storybook-static/assets/{pureUtilities-Bn1exZyB.js → pureUtilities-Bhx4RJT9.js} +1 -1
- package/storybook-static/assets/{react-BqQSSAdw.js → react-BS8poczJ.js} +1 -1
- package/storybook-static/assets/{refresh-cw-CYH4ov0F.js → refresh-cw-DOf-HEqz.js} +1 -1
- package/storybook-static/assets/{runtimeAndState-BJDYVcfW.js → runtimeAndState-BI3ShVSh.js} +1 -1
- package/storybook-static/assets/{settings-2-CHcDR5TK.js → settings-2-D80RVegV.js} +1 -1
- package/storybook-static/assets/{sortable-D2oVv65U.js → sortable-BNyMs1Ud.js} +1 -1
- package/storybook-static/assets/{syntaxhighlighter-T5IQBZDB-BZS8iv6c.js → syntaxhighlighter-T5IQBZDB-B7A0UpdW.js} +1 -1
- package/storybook-static/assets/{trash-2-K0OwBMlQ.js → trash-2-D6iHrdib.js} +1 -1
- package/storybook-static/assets/{triangle-alert-ByLBT1gp.js → triangle-alert-DHXjljtr.js} +1 -1
- package/storybook-static/assets/{ui-nZtwyXyS.css → ui-vmPSPL8p.css} +1 -1
- package/storybook-static/assets/ui.module-Bh9yvZgk.js +1 -0
- package/storybook-static/assets/uiClasses-CyX7wB6b.js +1 -0
- package/storybook-static/assets/{useODataSelectBase-DPQiQAXO.js → useODataSelectBase-ix89Wh6D.js} +1 -1
- package/storybook-static/assets/{useODataTreeData-BmBSwDNz.js → useODataTreeData-Cjry2j-1.js} +1 -1
- package/storybook-static/assets/{usePickerQuery-DIOf9uC7.js → usePickerQuery-Kxa1KWXx.js} +1 -1
- package/storybook-static/assets/{usePickerTriggerController-gFigo0fq.js → usePickerTriggerController-BdBNKr8c.js} +1 -1
- package/storybook-static/assets/{x-B3ccJTtF.js → x-C2J_sxhT.js} +1 -1
- package/storybook-static/iframe.html +3 -3
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/dist/chunks/radio-group-D-eBPuGm.js.map +0 -1
- package/dist/chunks/uiClasses-CF_aN4Tv.js.map +0 -1
- package/dist/tabs/ui/Tabs.d.ts +0 -16
- package/dist/tabs/ui/Tabs.d.ts.map +0 -1
- package/storybook-static/assets/DisclosureGroup-BFWSlYOk.css +0 -1
- package/storybook-static/assets/DisclosureGroup-DjDW1NYH.js +0 -2
- package/storybook-static/assets/InteractiveComponents.stories-DlUOC0gE.js +0 -472
- package/storybook-static/assets/RadioButton-BWyJs5Z6.js +0 -2
- package/storybook-static/assets/Slider-bVVL6_Jz.css +0 -1
- package/storybook-static/assets/Tabs-XHS1tTCR.js +0 -72
- package/storybook-static/assets/Tabs.stories-DCGe98nI.js +0 -87
- package/storybook-static/assets/TabsBox-B5ugO318.css +0 -1
- package/storybook-static/assets/TabsBox-NeiMksCt.js +0 -2
- package/storybook-static/assets/Text-VK5-gznU.js +0 -1
- package/storybook-static/assets/Toggle-9G08CPe5.css +0 -1
- package/storybook-static/assets/iframe-CTtK5YHC.js +0 -1
- package/storybook-static/assets/iframe-_EkhDToa.css +0 -1
- package/storybook-static/assets/ui.module-DjxH5szp.js +0 -1
- package/storybook-static/assets/uiClasses-CjI3jv6I.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1785669507318,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"metaFramework":{"name":"tanstack-react","packageName":"@tanstack/react-router","version":"1.170.18"},"knownPackages":{"testPackages":{"@chromatic-com/storybook":"5.2.1","@storybook/addon-vitest":"10.5.5","@testing-library/dom":"10.4.1","@testing-library/react":"16.3.2","@testing-library/user-event":"^14.6.1","@vitest/browser":"4.1.10","playwright":"1.62.1","vitest":"4.1.10"},"stateManagementPackages":{"zustand":"5.0.0"},"dataFetchingPackages":{"@tanstack/react-query":"5.101.1"},"routerPackages":{"@tanstack/react-router":"1.170.0"}},"hasRouterPackage":false,"packageManager":{"type":"npm","version":"11.7.0","agent":"npm","nodeLinker":"node_modules"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":1,"applicationFileCount":9,"storybookVersion":"10.5.5","storybookVersionSpecifier":"^10.5.5","language":"typescript","storybookPackages":{"@storybook/react-vite":{"version":"10.5.5"},"storybook":{}},"addons":{"@chromatic-com/storybook":{"version":"5.2.1"},"@storybook/addon-docs":{"version":"10.5.5"},"@storybook/addon-a11y":{"version":"10.5.5"},"@storybook/addon-vitest":{"version":"10.5.5"}},"packageJsonType":"module"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group-D-eBPuGm.js","names":[],"sources":["../../src/radio-group/RadioGroup.module.scss","../../src/radio-group/RadioGroup.tsx"],"sourcesContent":[".radioGroup {\n\tdisplay: flex;\n\talign-content: flex-start;\n\tflex-wrap: wrap;\n\t// min-height: var(--control-height);\n\theight: auto;\n\n\t&.noWrap {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.horizontal {\n\t\tflex-direction: row;\n\t}\n\n\t&.vertical {\n\t\tflex-direction: column;\n\t\talign-content: stretch;\n\t}\n}\n\n.radioItem {\n\tdisplay: grid;\n\talign-content: center;\n\tgap: var(--space-sm);\n\tflex: 1 0 0%;\n\tcolor: var(--content-2);\n\tborder-radius: var(--radius-xs);\n\tpadding: 0 var(--space-md);\n\tmargin: var(--border-width);\n\t// baseInputControl = --control-height, + borderTop/Bottom + transparentLineTop/Bottom\n\tmin-height: calc(var(--control-height) - calc(var(--border-width) * 4));\n\n\tcursor: pointer;\n\n\t&:hover {\n\t\tcolor: var(--content-accent);\n\t\t// background-color: var(--surface-1);\n\t}\n\n\t&.checked {\n\t\tcolor: var(--status-info-on-fill);\n\t\tbackground-color: var(--status-info-fill);\n\t\t// border-color: var(--border-0);\n\t}\n\n\t&:disabled {\n\t\topacity: var(--disabled-opacity);\n\t}\n}\n","import React, { createContext, KeyboardEvent, ReactNode, useCallback, useContext, useId, useLayoutEffect, useMemo, useState } from \"react\";\n\nimport { cn, getRovingFocusTargetIndex, handleKeyboardActivation } from \"@ryuzaki13/react-foundation-lib/utils\";\n\nimport uiStyles from \"../ui.module.scss\";\n\nimport styles from \"./RadioGroup.module.scss\";\n\ninterface RadioGroupContextValue {\n\tvalue?: unknown;\n\tonChange?: (value: unknown) => void;\n\tdisabled?: boolean;\n\torientation: \"vertical\" | \"horizontal\";\n\tgroupId: string;\n\tlabelId?: string;\n\tdescriptionId?: string;\n\tfirstOptionId?: string;\n\tregisterOption: (optionId: string) => () => void;\n}\n\nconst RadioGroupContext = createContext<RadioGroupContextValue | null>(null);\n\ninterface RadioGroupProps<T> {\n\tvalue?: T;\n\tonChange?: (value: T) => void;\n\tlabel?: string;\n\tdescription?: string;\n\tdisabled?: boolean;\n\tclassName?: string;\n\tnoWrap?: true;\n\torientation?: \"vertical\" | \"horizontal\";\n\t\"aria-label\"?: string;\n\tchildren: React.ReactNode;\n}\n\n/**\n * Группа радиокнопок с общим состоянием выбранного значения. Обеспечивает единый API выбора и контекст для дочерних опций.\n */\nexport function RadioGroup<T>({\n\tvalue,\n\tonChange,\n\tlabel,\n\tdescription,\n\tdisabled,\n\tclassName,\n\tnoWrap,\n\torientation = \"horizontal\",\n\t\"aria-label\": ariaLabel,\n\tchildren\n}: RadioGroupProps<T>) {\n\tconst groupId = useId();\n\tconst labelId = label ? `${groupId}-label` : undefined;\n\tconst descriptionId = description ? `${groupId}-description` : undefined;\n\tconst [registeredOptionIds, setRegisteredOptionIds] = useState<string[]>([]);\n\tconst handleChange = useCallback((nextValue: unknown) => onChange?.(nextValue as T), [onChange]);\n\n\t/**\n\t * Хранит порядок опций внутри группы, чтобы при отсутствии выбранного значения\n\t * оставлять ровно один tab stop на первой доступной радиокнопке.\n\t */\n\tconst registerOption = useCallback((optionId: string) => {\n\t\tsetRegisteredOptionIds((currentIds) => (currentIds.includes(optionId) ? currentIds : [...currentIds, optionId]));\n\n\t\treturn () => {\n\t\t\tsetRegisteredOptionIds((currentIds) => currentIds.filter((currentId) => currentId !== optionId));\n\t\t};\n\t}, []);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tvalue,\n\t\t\tonChange: handleChange,\n\t\t\tdisabled,\n\t\t\torientation,\n\t\t\tgroupId,\n\t\t\tlabelId,\n\t\t\tdescriptionId,\n\t\t\tfirstOptionId: registeredOptionIds[0],\n\t\t\tregisterOption\n\t\t}),\n\t\t[descriptionId, disabled, groupId, handleChange, labelId, orientation, registerOption, registeredOptionIds, value]\n\t);\n\n\treturn (\n\t\t<div className={cn(uiStyles.uiElement, disabled && uiStyles.disabled, className)}>\n\t\t\t{label && (\n\t\t\t\t<div id={labelId} className={uiStyles.uiLabel}>\n\t\t\t\t\t{label}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{description && (\n\t\t\t\t<div id={descriptionId} className={uiStyles.uiDescription}>\n\t\t\t\t\t{description}\n\t\t\t\t</div>\n\t\t\t)}\n\n\t\t\t<RadioGroupContext.Provider value={contextValue}>\n\t\t\t\t<div\n\t\t\t\t\trole=\"radiogroup\"\n\t\t\t\t\taria-labelledby={labelId}\n\t\t\t\t\taria-label={labelId ? undefined : ariaLabel}\n\t\t\t\t\taria-describedby={descriptionId}\n\t\t\t\t\taria-disabled={disabled || undefined}\n\t\t\t\t\tdata-disabled={disabled || undefined}\n\t\t\t\t\tclassName={cn(uiStyles.uiInputControl, styles.radioGroup, noWrap && styles.noWrap, styles[orientation])}>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</RadioGroupContext.Provider>\n\t\t</div>\n\t);\n}\n\ninterface OptionProps<T> {\n\tvalue: T;\n\tlabel: ReactNode;\n\tdescription?: ReactNode;\n\tclassName?: string;\n}\n\n/**\n * Опция внутри `RadioGroup`, представляющая одно выбираемое значение. Отрисовывает подпись, описание и состояние выбора.\n */\nexport function Option<T>({ value, label, description, className }: OptionProps<T>) {\n\tconst context = useContext(RadioGroupContext);\n\tconst optionId = useId();\n\tconst registerOption = context?.registerOption;\n\n\tuseLayoutEffect(() => {\n\t\tif (!registerOption) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn registerOption(optionId);\n\t}, [registerOption, optionId]);\n\n\tif (!context) {\n\t\treturn (\n\t\t\t<div className={cn(styles.radioItem, className)}>\n\t\t\t\t<p className=\"textNoWrap\">{label}</p>\n\t\t\t\t{description && <div className=\"fontSizeSm content2\">{description}</div>}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tconst isChecked = Object.is(context.value, value);\n\tconst isDisabled = context.disabled === true;\n\tconst isFallbackTabStop = context.value === undefined && context.firstOptionId === optionId;\n\n\tconst handleChange = () => {\n\t\tif (isDisabled || isChecked) {\n\t\t\treturn;\n\t\t}\n\n\t\tcontext.onChange?.(value);\n\t};\n\n\t// TODO: логика переиспользуемая, надо вынести в хук\n\tconst handleKeyDown = (event: KeyboardEvent<HTMLButtonElement>) => {\n\t\tif (isDisabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (handleKeyboardActivation(event, handleChange)) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst currentTarget = event.currentTarget;\n\t\tconst groupElement = currentTarget.closest<HTMLElement>('[role=\"radiogroup\"]');\n\t\tconst radioItems = Array.from(groupElement?.querySelectorAll<HTMLButtonElement>('[role=\"radio\"]:not([disabled])') ?? []);\n\n\t\tif (!radioItems.length) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst currentIndex = radioItems.indexOf(currentTarget);\n\t\tif (currentIndex === -1) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst nextIndex = getRovingFocusTargetIndex({\n\t\t\tcurrentIndex,\n\t\t\titemCount: radioItems.length,\n\t\t\tkey: event.key,\n\t\t\torientation: context.orientation\n\t\t});\n\n\t\tif (nextIndex === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tevent.preventDefault();\n\t\tradioItems[nextIndex]?.focus();\n\t\tradioItems[nextIndex]?.click();\n\t};\n\n\treturn (\n\t\t<button\n\t\t\tid={`${context.groupId}-option-${optionId}`}\n\t\t\ttype=\"button\"\n\t\t\trole=\"radio\"\n\t\t\taria-checked={isChecked}\n\t\t\tdisabled={isDisabled}\n\t\t\ttabIndex={isChecked || isFallbackTabStop ? 0 : -1}\n\t\t\tclassName={cn(styles.radioItem, isChecked && styles.checked, className)}\n\t\t\tdata-ui=\"radio-option\"\n\t\t\tdata-action=\"select-radio-option\"\n\t\t\tonClick={handleChange}\n\t\t\tonKeyDown={handleKeyDown}>\n\t\t\t<span className=\"textNoWrap\">{label}</span>\n\t\t\t{description && <span className=\"fontSizeSm\">{description}</span>}\n\t\t</button>\n\t);\n}\n\nRadioGroup.Option = Option;\n"],"mappings":";;;;;;;;;;;GCoBM,IAAoB,EAA6C,IAAI;AAkB3E,SAAgB,EAAc,EAC7B,UACA,aACA,UACA,gBACA,aACA,cACA,WACA,iBAAc,cACd,cAAc,GACd,eACsB;CACtB,IAAM,IAAU,EAAM,GAChB,IAAU,IAAQ,GAAG,EAAQ,UAAU,KAAA,GACvC,IAAgB,IAAc,GAAG,EAAQ,gBAAgB,KAAA,GACzD,CAAC,GAAqB,KAA0B,EAAmB,CAAC,CAAC,GACrE,IAAe,GAAa,MAAuB,IAAW,CAAc,GAAG,CAAC,CAAQ,CAAC,GAMzF,IAAiB,GAAa,OACnC,GAAwB,MAAgB,EAAW,SAAS,CAAQ,IAAI,IAAa,CAAC,GAAG,GAAY,CAAQ,CAAE,SAElG;EACZ,GAAwB,MAAe,EAAW,QAAQ,MAAc,MAAc,CAAQ,CAAC;CAChG,IACE,CAAC,CAAC,GAEC,IAAe,SACb;EACN;EACA,UAAU;EACV;EACA;EACA;EACA;EACA;EACA,eAAe,EAAoB;EACnC;CACD,IACA;EAAC;EAAe;EAAU;EAAS;EAAc;EAAS;EAAa;EAAgB;EAAqB;CAAK,CAClH;CAEA,OACC,kBAAC,OAAD;EAAK,WAAW,EAAG,EAAS,WAAW,KAAY,EAAS,UAAU,CAAS;EAA/E,UAAA;GACE,KACA,kBAAC,OAAD;IAAK,IAAI;IAAS,WAAW,EAAS;IACpC,UAAA;GACG,CAAA;GAEL,KACA,kBAAC,OAAD;IAAK,IAAI;IAAe,WAAW,EAAS;IAC1C,UAAA;GACG,CAAA;GAGN,kBAAC,EAAkB,UAAnB;IAA4B,OAAO;IAClC,UAAA,kBAAC,OAAD;KACC,MAAK;KACL,mBAAiB;KACjB,cAAY,IAAU,KAAA,IAAY;KAClC,oBAAkB;KAClB,iBAAe,KAAY,KAAA;KAC3B,iBAAe,KAAY,KAAA;KAC3B,WAAW,EAAG,EAAS,gBAAgB,EAAO,YAAY,KAAU,EAAO,QAAQ,EAAO,EAAY;KACrG;IACG,CAAA;GACsB,CAAA;EACxB;;AAEP;AAYA,SAAgB,EAAU,EAAE,UAAO,UAAO,gBAAa,gBAA6B;CACnF,IAAM,IAAU,EAAW,CAAiB,GACtC,IAAW,EAAM,GACjB,IAAiB,GAAS;CAUhC,IARA,QAAsB;EAChB,OAIL,OAAO,EAAe,CAAQ;CAC/B,GAAG,CAAC,GAAgB,CAAQ,CAAC,GAEzB,CAAC,GACJ,OACC,kBAAC,OAAD;EAAK,WAAW,EAAG,EAAO,WAAW,CAAS;EAA9C,UAAA,CACC,kBAAC,KAAD;GAAG,WAAU;GAAc,UAAA;EAAS,CAAA,GACnC,KAAe,kBAAC,OAAD;GAAK,WAAU;GAAuB,UAAA;EAAiB,CAAA,CACnE;;CAIP,IAAM,IAAY,OAAO,GAAG,EAAQ,OAAO,CAAK,GAC1C,IAAa,EAAQ,aAAa,IAClC,IAAoB,EAAQ,UAAU,KAAA,KAAa,EAAQ,kBAAkB,GAE7E,UAAqB;EACtB,KAAc,KAIlB,EAAQ,WAAW,CAAK;CACzB;CAyCA,OACC,kBAAC,UAAD;EACC,IAAI,GAAG,EAAQ,QAAQ,UAAU;EACjC,MAAK;EACL,MAAK;EACL,gBAAc;EACd,UAAU;EACV,UAAU,KAAa,IAAoB,IAAI;EAC/C,WAAW,EAAG,EAAO,WAAW,KAAa,EAAO,SAAS,CAAS;EACtE,WAAQ;EACR,eAAY;EACZ,SAAS;EACT,YAlDqB,MAA4C;GAKlE,IAJI,KAIA,EAAyB,GAAO,CAAY,GAC/C;GAGD,IAAM,IAAgB,EAAM,eACtB,IAAe,EAAc,QAAqB,uBAAqB,GACvE,IAAa,MAAM,KAAK,GAAc,iBAAoC,kCAAgC,KAAK,CAAC,CAAC;GAEvH,IAAI,CAAC,EAAW,QACf;GAGD,IAAM,IAAe,EAAW,QAAQ,CAAa;GACrD,IAAI,MAAiB,IACpB;GAGD,IAAM,IAAY,EAA0B;IAC3C;IACA,WAAW,EAAW;IACtB,KAAK,EAAM;IACX,aAAa,EAAQ;GACtB,CAAC;GAEG,MAAc,SAIlB,EAAM,eAAe,GACrB,EAAW,EAAU,EAAE,MAAM,GAC7B,EAAW,EAAU,EAAE,MAAM;EAC9B;EAGC,UAAA,CAYC,kBAAC,QAAD;GAAM,WAAU;GAAc,UAAA;EAAY,CAAA,GACzC,KAAe,kBAAC,QAAD;GAAM,WAAU;GAAc,UAAA;EAAkB,CAAA,CACzD;;AAEV;AAEA,EAAW,SAAS"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uiClasses-CF_aN4Tv.js","names":[],"sources":["../../src/uiClasses.ts"],"sourcesContent":["import uiStyles from \"./ui.module.scss\";\n\nimport type { UiAppearance, UiTone, UiVariant } from \"./types\";\n\nexport type UiScheme = {\n\ttone: UiTone;\n\tappearance: UiAppearance;\n};\n\nexport type UiSelectionAppearance = Extract<UiAppearance, \"outline\" | \"solid\">;\n\nconst variantSchemeMap: Record<UiVariant, UiScheme> = {\n\tneutral: { tone: \"neutral\", appearance: \"solid\" },\n\tneutralOutline: { tone: \"neutral\", appearance: \"outline\" },\n\tghost: { tone: \"neutral\", appearance: \"ghost\" },\n\tbrand: { tone: \"brand\", appearance: \"solid\" },\n\terror: { tone: \"error\", appearance: \"solid\" },\n\twarning: { tone: \"warning\", appearance: \"solid\" },\n\tsuccess: { tone: \"success\", appearance: \"solid\" },\n\tinfo: { tone: \"info\", appearance: \"solid\" },\n\tbrandOutline: { tone: \"brand\", appearance: \"outline\" },\n\terrorOutline: { tone: \"error\", appearance: \"outline\" },\n\twarningOutline: { tone: \"warning\", appearance: \"outline\" },\n\tsuccessOutline: { tone: \"success\", appearance: \"outline\" },\n\tinfoOutline: { tone: \"info\", appearance: \"outline\" },\n\ttransparent: { tone: \"neutral\", appearance: \"transparent\" }\n};\n\nconst toneClassNameMap: Record<UiTone, string> = {\n\tneutral: uiStyles.uiToneNeutral,\n\tbrand: uiStyles.uiToneBrand,\n\terror: uiStyles.uiToneError,\n\twarning: uiStyles.uiToneWarning,\n\tsuccess: uiStyles.uiToneSuccess,\n\tinfo: uiStyles.uiToneInfo\n};\n\nconst appearanceClassNameMap: Record<UiAppearance, string> = {\n\tsolid: uiStyles.uiAppearanceSolid,\n\toutline: uiStyles.uiAppearanceOutline,\n\tghost: uiStyles.uiAppearanceGhost,\n\ttransparent: uiStyles.uiAppearanceTransparent\n};\n\nexport function getUiToneClassName(tone: UiTone): string {\n\treturn toneClassNameMap[tone];\n}\n\nexport function getUiAppearanceClassName(appearance: UiAppearance): string {\n\treturn appearanceClassNameMap[appearance];\n}\n\nexport function resolveUiScheme({\n\tvariant,\n\ttone,\n\tappearance,\n\tfallbackTone = \"neutral\",\n\tfallbackAppearance = \"outline\"\n}: {\n\tvariant?: UiVariant;\n\ttone?: UiTone;\n\tappearance?: UiAppearance;\n\tfallbackTone?: UiTone;\n\tfallbackAppearance?: UiAppearance;\n}): UiScheme {\n\tif (tone || appearance) {\n\t\treturn {\n\t\t\ttone: tone ?? fallbackTone,\n\t\t\tappearance: appearance ?? fallbackAppearance\n\t\t};\n\t}\n\n\tif (variant) {\n\t\treturn variantSchemeMap[variant];\n\t}\n\n\treturn {\n\t\ttone: fallbackTone,\n\t\tappearance: fallbackAppearance\n\t};\n}\n"],"mappings":";;AAWA,IAAM,IAAgD;CACrD,SAAS;EAAE,MAAM;EAAW,YAAY;CAAQ;CAChD,gBAAgB;EAAE,MAAM;EAAW,YAAY;CAAU;CACzD,OAAO;EAAE,MAAM;EAAW,YAAY;CAAQ;CAC9C,OAAO;EAAE,MAAM;EAAS,YAAY;CAAQ;CAC5C,OAAO;EAAE,MAAM;EAAS,YAAY;CAAQ;CAC5C,SAAS;EAAE,MAAM;EAAW,YAAY;CAAQ;CAChD,SAAS;EAAE,MAAM;EAAW,YAAY;CAAQ;CAChD,MAAM;EAAE,MAAM;EAAQ,YAAY;CAAQ;CAC1C,cAAc;EAAE,MAAM;EAAS,YAAY;CAAU;CACrD,cAAc;EAAE,MAAM;EAAS,YAAY;CAAU;CACrD,gBAAgB;EAAE,MAAM;EAAW,YAAY;CAAU;CACzD,gBAAgB;EAAE,MAAM;EAAW,YAAY;CAAU;CACzD,aAAa;EAAE,MAAM;EAAQ,YAAY;CAAU;CACnD,aAAa;EAAE,MAAM;EAAW,YAAY;CAAc;AAC3D,GAEM,IAA2C;CAChD,SAAS,EAAS;CAClB,OAAO,EAAS;CAChB,OAAO,EAAS;CAChB,SAAS,EAAS;CAClB,SAAS,EAAS;CAClB,MAAM,EAAS;AAChB,GAEM,IAAuD;CAC5D,OAAO,EAAS;CAChB,SAAS,EAAS;CAClB,OAAO,EAAS;CAChB,aAAa,EAAS;AACvB;AAEA,SAAgB,EAAmB,GAAsB;CACxD,OAAO,EAAiB;AACzB;AAEA,SAAgB,EAAyB,GAAkC;CAC1E,OAAO,EAAuB;AAC/B;AAEA,SAAgB,EAAgB,EAC/B,YACA,SACA,eACA,kBAAe,WACf,wBAAqB,aAOT;CAYZ,OAXI,KAAQ,IACJ;EACN,MAAM,KAAQ;EACd,YAAY,KAAc;CAC3B,IAGG,IACI,EAAiB,KAGlB;EACN,MAAM;EACN,YAAY;CACb;AACD"}
|
package/dist/tabs/ui/Tabs.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { TabsBoxItem, TabsBoxProps } from "../model/types";
|
|
2
|
-
/**
|
|
3
|
-
* Элемент вкладки для устаревшего совместимого API `Tabs`.
|
|
4
|
-
*/
|
|
5
|
-
export type TabsItem = TabsBoxItem;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Используйте `TabsBox` для простого сценария и `TabsLayout` для составных layout-сценариев.
|
|
8
|
-
*/
|
|
9
|
-
export interface TabsProps extends TabsBoxProps {
|
|
10
|
-
onChange?: (value: string) => void;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated Используйте `TabsBox` для простого сценария и `TabsLayout` для составных layout-сценариев.
|
|
14
|
-
*/
|
|
15
|
-
export declare function Tabs({ onChange, onValueChange, ...props }: TabsProps): import("react").JSX.Element;
|
|
16
|
-
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/tabs/ui/Tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC;AAEnC;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,YAAY;IAC9C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAUpE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.O-da-N{--ui-panel-background:var(--surface-1)}.P-rCx1{align-items:center;display:flex}._9yjaDf{justify-content:flex-start;align-items:center;min-width:0;display:flex}._9yjaDf:hover{color:var(--content-accent)}.izVkky{align-items:center;padding-inline-end:var(--space-sm);display:flex}.KAIPfW>.O-da-N{border-radius:0}.KAIPfW>.O-da-N:not(:first-child){border-top:none}.KAIPfW>.O-da-N:first-child{border-top-left-radius:var(--radius-sm);border-top-right-radius:var(--radius-sm)}.KAIPfW>.O-da-N:last-child{border-bottom-left-radius:var(--radius-sm);border-bottom-right-radius:var(--radius-sm)}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-C0FnF6B9.js";import{t as n}from"./react-C21x__mS.js";import{n as r,t as i}from"./chevron-down-DpN_oMWM.js";import{i as a,n as o,r as s}from"./iframe-CZ0KI0zu.js";import{a as c,i as l}from"./utils-DUM89eIj.js";import{n as u,t as d}from"./ui.module-DjxH5szp.js";import{n as f,t as p}from"./FlexItem-vkDYa5tA.js";var m,h;function g(){return(g=e((()=>{a(),m=[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]],h=s(`chevron-up`,m)})))()}var _,v,y;function b(){return(b=e((()=>{_=n(),f(),v=o(),y=(0,_.forwardRef)((e,t)=>(0,v.jsx)(p,{...e,ref:t,flex1:!0})),y.displayName=`FlexSpacer`,y.__docgenInfo={description:``,methods:[],displayName:`FlexSpacer`}})))()}var x,S,C,w,T,E;function D(){return(D=e((()=>{x=`O-da-N`,S=`P-rCx1`,C=`_9yjaDf`,w=`izVkky`,T=`KAIPfW`,E={disclosure:x,disclosureHeader:S,disclosureButton:C,disclosureActions:w,disclosureGroup:T}})))()}function O({label:e,defaultOpen:t,headerActions:n,children:r}){let[a,o]=(0,k.useState)(t===!0),s=(0,k.useId)(),l=(0,k.useId)();return(0,A.jsxs)(`div`,{className:c(u.uiElement,u.uiPanel,E.disclosure),children:[(0,A.jsxs)(`div`,{className:E.disclosureHeader,children:[(0,A.jsxs)(`button`,{id:l,type:`button`,"aria-expanded":a,"aria-controls":s,className:c(E.disclosureButton,`fontBold radiusSm paddingSm gapSm`),"data-ui":`disclosure-toggle`,"data-action":a?`collapse-disclosure`:`expand-disclosure`,onClick:()=>o(e=>!e),children:[a?(0,A.jsx)(h,{}):(0,A.jsx)(i,{}),e]}),n?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(y,{}),n]}):null]}),a&&(0,A.jsx)(`div`,{id:s,role:`region`,"aria-labelledby":l,children:(0,A.jsx)(`div`,{className:`paddingMd`,children:r})})]})}var k,A;function j(){return(j=e((()=>{k=t(n(),1),l(),r(),g(),b(),d(),D(),A=o(),O.__docgenInfo={description:`Раскрывающийся блок с заголовком и скрываемым содержимым. Используется для FAQ, настроек и компактного размещения второстепенной информации.`,methods:[],displayName:`Disclosure`,props:{label:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},defaultOpen:{required:!1,tsType:{name:`boolean`},description:``},headerActions:{required:!1,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:`Независимые действия в правой части заголовка, расположенные вне кнопки раскрытия.`}},composes:[`PropsWithChildren`]}})))()}function M({className:e,children:t}){return(0,N.jsx)(`div`,{className:c(E.disclosureGroup,e),children:t})}var N;function P(){return(P=e((()=>{n(),l(),D(),N=o(),M.__docgenInfo={description:"Групповой контейнер для нескольких `Disclosure`. Помогает выстраивать последовательный список раскрывающихся секций.",methods:[],displayName:`DisclosureGroup`,props:{children:{required:!1,tsType:{name:`union`,raw:`| (React.ReactElement<DisclosureProps, typeof Disclosure> | null | undefined | false)
|
|
2
|
-
| (React.ReactElement<DisclosureProps, typeof Disclosure> | null | undefined | false)[]`,elements:[{name:`unknown`},{name:`Array`,elements:[{name:`unknown`}],raw:`(React.ReactElement<DisclosureProps, typeof Disclosure> | null | undefined | false)[]`}]},description:``},className:{required:!1,tsType:{name:`string`},description:``}}}})))()}export{j as i,P as n,O as r,M as t};
|
|
@@ -1,472 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-C0FnF6B9.js";import{t as n}from"./react-C21x__mS.js";import{n as r,t as i}from"./Switch-L91cfss1.js";import{i as a,n as o,r as s,t as ee}from"./DisclosureGroup-DjDW1NYH.js";import{n as c,t as te}from"./ExpandableActionPanel-Bi8GdZk8.js";import{n as ne,t as l}from"./RadioButton-BWyJs5Z6.js";import{n as u,t as re}from"./SingleDateTimeInput-Bu-VV-X4.js";import{n as d,t as f}from"./CheckBox-CIv6lt7Z.js";import{n as p,t as ie}from"./DropZone-DnJJRVvs.js";import{n as m}from"./iframe-CZ0KI0zu.js";import{n as h,t as g}from"./Popover-gg-G1aUp.js";import{i as _,n as ae,r as v,t as oe}from"./BadgeList-Br7PCtJe.js";import{n as se,t as y}from"./Button-BUAFSG7a.js";import{n as b,t as x}from"./ContextMenu-C8SQXRxm.js";import{a as ce,i as le,n as S,r as ue,s as C,t as de}from"./ModalManagerProvider-_TvqmYe3.js";import{n as w,t as T}from"./DropdownMenu-eA7CqmEq.js";import{n as fe,r as pe}from"./DateInput-ClKgqyQO.js";import{a as E,c as D,i as O,t as k}from"./Input-Fk3IRww_.js";import{n as A,t as j}from"./RadioGroup-Bz9Pc7gG.js";import{n as me,t as he}from"./GridContainer-qDguE1HS.js";import{n as ge,t as M}from"./Select-2OS5b3gj.js";import{n as N,t as _e}from"./DateRangePresetSelect-yzuX25-A.js";import{n as P,t as ve}from"./Dialog-CjAdwNLK.js";import{n as ye,t as be}from"./InputFiles-Ay6AhGXY.js";import{n as xe,t as Se}from"./InputFile-CeDA-DBu.js";import{n as Ce,t as we}from"./InputImage-8CkQNIx-.js";import{n as Te,t as Ee}from"./LayoutPicker-TghytR7l.js";import{n as De,t as Oe}from"./Listbox-kuB9DZmS.js";import{n as ke,t as Ae}from"./MultiSelect-DiBUW3Jo.js";import{n as je,t as Me}from"./PeriodSelect-CC7faqoe.js";import{n as Ne,t as Pe}from"./PresetRangeDateInput-OuBr9O7l.js";import{i as Fe,r as Ie,t as Le}from"./Slider-CKDNtVxH.js";import{n as F,r as Re,t as ze}from"./SliderInput-LIlYbZ-q.js";import{n as Be,t as Ve}from"./StateSelect-BpZxLrbE.js";import{n as He,t as Ue}from"./TabsBox-NeiMksCt.js";import{n as We,t as Ge}from"./TagInput-DmTij_wJ.js";import{n as Ke,t as qe}from"./Textarea-FgIOtg__.js";import{n as I,t as Je}from"./Toggle-iIIRwhJ0.js";import{n as L,t as Ye}from"./TreeMultiSelect-D08x-Zz7.js";import{n as R,t as Xe}from"./treeStoryFixtures-Ci7STpiz.js";function Ze({onChange:e,...t}){let[n,r]=(0,z.useState)(()=>t.defaultValue??t.value??``),[i,a]=(0,z.useState)(()=>t.defaultValue??t.value??``),o=t=>{let n=t.trim();n!==i&&(a(n),e(n))},s=()=>{r(``),a(``),e(``)},ee=e=>{e.key===`Enter`&&(e.preventDefault(),o(n))},c=()=>{o(n)},te=e=>{r(e)};return(0,B.jsx)(k,{...t,value:n,onChange:te,onKeyDown:ee,onBlur:c,onClear:s})}var z,B;function V(){return(V=e((()=>{z=t(n(),1),D(),B=m(),Ze.__docgenInfo={description:``,methods:[],displayName:`InputSearch`,props:{label:{required:!1,tsType:{name:`ReactNode`},description:``},description:{required:!1,tsType:{name:`string`},description:``},placeholder:{required:!1,tsType:{name:`string`},description:``},disabled:{required:!1,tsType:{name:`boolean`},description:``},size:{required:!1,tsType:{name:`union`,raw:`"xs" | "sm" | "md" | "lg" | "xl"`,elements:[{name:`literal`,value:`"xs"`},{name:`literal`,value:`"sm"`},{name:`literal`,value:`"md"`},{name:`literal`,value:`"lg"`},{name:`literal`,value:`"xl"`}]},description:``},value:{required:!0,tsType:{name:`T`},description:"Если начальное состояние может быть `null | undefined`\nзначит `onChange` тоже должен ументь сбрасывать.\nПоэтому такой контрол явно должен передавать `UiBaseProps<AnyType | undefined>`"},onChange:{required:!0,tsType:{name:`signature`,type:`function`,raw:`(value: string) => void`,signature:{arguments:[{type:{name:`string`},name:`value`}],return:{name:`void`}}},description:``},onClear:{required:!1,tsType:{name:`signature`,type:`function`,raw:`() => void`,signature:{arguments:[],return:{name:`void`}}},description:``},error:{required:!1,tsType:{name:`string`},description:``},onClearError:{required:!1,tsType:{name:`signature`,type:`function`,raw:`() => void`,signature:{arguments:[],return:{name:`void`}}},description:``},defaultValue:{required:!1,tsType:{name:`string`},description:``},endAdornment:{required:!1,tsType:{name:`ReactNode`},description:``},endAdornmentClassName:{required:!1,tsType:{name:`string`},description:``},endAdornmentWidth:{required:!1,tsType:{name:`string`},description:``}},composes:[`Omit`]}})))()}function H({title:e,children:t}){return(0,G.jsxs)(`section`,{style:K,children:[(0,G.jsx)(`div`,{style:q,children:e}),t]})}function Qe({initialValue:e={},label:t=`TreeMultiSelect`,description:n,optionsLayout:r=`tree`,nodes:i=Xe,defaultExpandedCodeKeys:a}){let[o,s]=(0,W.useState)(e);return(0,G.jsxs)(`div`,{style:{display:`grid`,gap:12,maxWidth:520},children:[(0,G.jsx)(Ye,{label:t,description:n,nodes:i,value:o,onChange:s,optionsLayout:r,defaultExpandedCodeKeys:a}),(0,G.jsxs)(`div`,{style:{fontSize:`var(--font-size-sm)`,color:`var(--content-1)`},children:[`Текущее значение: `,JSON.stringify(o)]})]})}function U(){let[e,t]=(0,W.useState)(`Значение`),[n,r]=(0,W.useState)(42),[a,o]=(0,W.useState)(``),[c,ne]=(0,W.useState)(`Комментарий`),[u,d]=(0,W.useState)(!0),[p,m]=(0,W.useState)(!1),[h,_]=(0,W.useState)(`first`),[ae,se]=(0,W.useState)(!0),[b,S]=(0,W.useState)(!1),[C,w]=(0,W.useState)(3),[pe,D]=(0,W.useState)(),[k,A]=(0,W.useState)([0,0]),[me,ge]=(0,W.useState)(60),[N,P]=(0,W.useState)(Y[0]),[ye,xe]=(0,W.useState)([X[0]]),[Ce,Te]=(0,W.useState)([`UI`,`Стили`]),[De,ke]=(0,W.useState)(`week`),[je,Ne]=(0,W.useState)(`information`),[Fe,Re]=(0,W.useState)(`two-columns`),[Be,He]=(0,W.useState)(new Date(2026,2,10)),[We,Ke]=(0,W.useState)(new Date(2026,2,10,10,30)),[I,L]=(0,W.useState)(`today`),[Ye,R]=(0,W.useState)([new Date(2026,2,1),new Date(2026,2,10)]),[Xe,z]=(0,W.useState)(`month`),[B,V]=(0,W.useState)(),[U,K]=(0,W.useState)([]),[q,Z]=(0,W.useState)(),[Q,$]=(0,W.useState)([]),[nt,rt]=(0,W.useState)(!1),[it,at]=(0,W.useState)(!1),[ot,st]=(0,W.useState)();return(0,G.jsxs)(`div`,{style:$e,children:[(0,G.jsx)(H,{title:`Badge`,children:(0,G.jsxs)(oe,{children:[(0,G.jsx)(v,{tone:`neutral`,appearance:`outline`,children:`Neutral`}),(0,G.jsx)(v,{tone:`success`,appearance:`solid`,children:`Успешно`}),(0,G.jsx)(v,{tone:`warning`,appearance:`solid`,children:`Внимание`}),(0,G.jsx)(v,{tone:`error`,appearance:`solid`,children:`Ошибка`}),(0,G.jsx)(v,{tone:`info`,appearance:`solid`,children:`Информация`})]})}),(0,G.jsx)(H,{title:`Button`,children:(0,G.jsxs)(he,{gap:`sm`,templateColumns:`1fr 1fr`,children:[(0,G.jsx)(y,{variant:`transparent`,children:`Действие`}),(0,G.jsx)(y,{variant:`ghost`,children:`Действие`}),(0,G.jsx)(y,{variant:`neutralOutline`,children:`Действие`}),(0,G.jsx)(y,{variant:`infoOutline`,children:`Действие`}),(0,G.jsx)(y,{variant:`successOutline`,children:`Действие`}),(0,G.jsx)(y,{variant:`warningOutline`,children:`Действие`}),(0,G.jsx)(y,{variant:`errorOutline`,children:`Действие`}),(0,G.jsx)(y,{variant:`neutral`,children:`Действие`}),(0,G.jsx)(y,{variant:`info`,children:`Действие`}),(0,G.jsx)(y,{variant:`success`,children:`Действие`}),(0,G.jsx)(y,{variant:`warning`,children:`Действие`}),(0,G.jsx)(y,{variant:`error`,children:`Действие`})]})}),(0,G.jsxs)(H,{title:`InputText`,children:[(0,G.jsx)(E,{label:`Текст`,description:`Поле ввода текста`,placeholder:`Введите текст`,disabled:!0,value:e,onChange:t}),(0,G.jsx)(E,{label:`Текст`,description:`Поле ввода текста`,placeholder:`Введите текст`,value:e,onChange:t}),(0,G.jsx)(E,{required:!0,label:`Текст`,description:`Поле ввода текста`,placeholder:`Введите текст`,value:e,onChange:t,onClear:()=>t(``)})]}),(0,G.jsxs)(H,{title:`InputNumber`,children:[(0,G.jsx)(O,{label:`Количество`,description:`Поле ввода числа`,placeholder:`Введите число`,value:n,min:0,onChange:r,disabled:!0}),(0,G.jsx)(O,{label:`Количество`,description:`Поле ввода числа`,placeholder:`Введите число`,value:n,min:0,onChange:r,required:!0}),(0,G.jsx)(O,{label:`Количество`,description:`Поле ввода числа`,placeholder:`Введите число`,value:n,min:0,onChange:r}),(0,G.jsx)(O,{label:`Количество`,description:`Поле ввода числа`,placeholder:`Введите число`,value:n,min:0,onChange:r,onClear:()=>r(void 0)})]}),(0,G.jsx)(H,{title:`InputSearch`,children:(0,G.jsx)(Ze,{label:`Поиск`,placeholder:`Найти`,value:a,onChange:o})}),(0,G.jsx)(H,{title:`Textarea`,children:(0,G.jsx)(qe,{label:`Комментарий`,required:!0,placeholder:`Многострочный комментарий`,rows:6,value:c,onChange:ne})}),(0,G.jsxs)(H,{title:`CheckBox`,children:[(0,G.jsx)(f,{label:`Опция`,description:`Описание чекбокса`,disabled:!0,value:u,onChange:d}),(0,G.jsx)(f,{label:`Опция`,description:`Описание чекбокса`,value:u,onChange:d}),(0,G.jsx)(f,{label:`Опция`,description:`Описание чекбокса`,value:u,onChange:d,indeterminate:!0})]}),(0,G.jsxs)(H,{title:`RadioButton`,children:[(0,G.jsx)(l,{label:`Опция`,description:`Описание радиокнопки`,disabled:!0,value:p,onChange:m}),(0,G.jsx)(l,{label:`Опция`,description:`Описание радиокнопки`,name:`radio-1`,value:p,onChange:m}),(0,G.jsx)(l,{label:`Опция`,description:`Описание радиокнопки`,name:`radio-1`,value:p,onChange:m})]}),(0,G.jsxs)(H,{title:`RadioGroup`,children:[(0,G.jsxs)(j,{label:`Радио группа`,description:`Вертикальная группа`,value:h,onChange:_,orientation:`vertical`,"aria-label":`Вариант`,children:[(0,G.jsx)(j.Option,{value:`first`,label:`Первый`}),(0,G.jsx)(j.Option,{value:`second`,label:`Второй`}),(0,G.jsx)(j.Option,{value:`third`,label:`Третий`,description:`Новая опциональная опция`})]}),(0,G.jsxs)(j,{label:`Радио группа`,description:`Горизонтальная группа`,value:h,onChange:_,orientation:`horizontal`,"aria-label":`Вариант`,children:[(0,G.jsx)(j.Option,{value:`first`,label:`Первый`}),(0,G.jsx)(j.Option,{value:`second`,label:`Второй`}),(0,G.jsx)(j.Option,{value:`third`,label:`Третий`,description:`Новая опциональная опция`})]})]}),(0,G.jsx)(H,{title:`Switch`,children:(0,G.jsx)(i,{label:`Уведомления`,description:`Устаревный компонент`,value:ae,onChange:se})}),(0,G.jsxs)(H,{title:`Toggle`,children:[(0,G.jsx)(Je,{label:`Режим`,description:`Переключатель состояния`,value:b,onChange:S,checkedText:`Вкл`,uncheckedText:`Выкл`}),(0,G.jsx)(Je,{label:`Режим`,description:`Переключатель состояния`,labelPosition:`after`,value:b,onChange:S,checkedText:`Вкл`,uncheckedText:`Выкл`})]}),(0,G.jsxs)(H,{title:`Slider`,children:[(0,G.jsx)(Le,{label:`Уровень`,description:`Простой слайдер`,value:C,min:0,max:100,onChange:w}),(0,G.jsx)(Le,{label:`Уровень`,description:`Простой слайдер`,disabled:!0,marks:[{value:1,label:`m1`},{value:2,label:`m2`},{value:3,label:`m3`},{value:4,label:`m4`},{value:5,label:`m5`},{value:6,label:`m6`}],marksPosition:`index`,value:C,min:0,max:100,onChange:w}),(0,G.jsx)(Ie,{label:`Уровень`,description:`Диапазон`,marks:[{value:0,label:`m1`},{value:1,label:`m2`},{value:2,label:`m3`},{value:3,label:`m4`}],marksPosition:`index`,value:pe,min:0,max:100,onChange:D})]}),(0,G.jsxs)(H,{title:`SliderInput`,children:[(0,G.jsx)(ze,{label:`Порог`,value:me,min:0,max:100,onChange:ge}),(0,G.jsx)(F,{label:`Порог`,value:k,onChange:A,min:0,max:100,marks:[{value:0,label:`0`},{value:20,label:`20`},{value:40,label:`40`},{value:60,label:`60`},{value:80,label:`80`},{value:100,label:`100`}]}),(0,G.jsx)(F,{label:`Срок: открытые границы и дни в фильтре`,description:"Крайние marks отдают null, обычные marks отдают дни через `outputValue`.",min:0,max:25,marks:[{value:0,label:`-`,outputValue:null},{value:1,label:`1м.`,outputValue:30},{value:3,label:`3м.`,outputValue:90},{value:6,label:`6м.`,outputValue:180},{value:12,label:`1г.`,outputValue:360},{value:18,label:`1.5г.`,outputValue:540},{value:24,label:`2г.`,outputValue:720},{value:25,label:`-`,outputValue:null}],value:k,onChange:A}),(0,G.jsx)(F,{label:`Срок текстом`,description:`В поле выводится готовый текст по marks, а изменение через popover коммитится при закрытии.`,placeholder:`Любой срок`,readonlyValueText:!0,min:0,max:25,marks:[{value:0,label:`-`,outputValue:null},{value:1,label:`1м.`,outputValue:30},{value:3,label:`3м.`,outputValue:90},{value:6,label:`6м.`,outputValue:180},{value:12,label:`1г.`,outputValue:360},{value:18,label:`1.5г.`,outputValue:540},{value:24,label:`2г.`,outputValue:720},{value:25,label:`-`,outputValue:null}],marksPosition:`index`,value:k,onChange:A})]}),(0,G.jsxs)(H,{title:`Select`,children:[(0,G.jsx)(M,{label:`Статус`,description:`searchable`,searchable:!0,options:Y,value:N,onChange:P,getOptionKey:e=>e.id,getOptionLabel:e=>e.label}),(0,G.jsx)(M,{label:`Статус`,description:`disabled`,disabled:!0,options:Y,value:N,onChange:P,getOptionKey:e=>e.id,getOptionLabel:e=>e.label}),(0,G.jsx)(M,{label:`Статус`,description:`Пример использования низкоуровневого Select со строковыми значениями.`,placeholder:`Выберите статус`,options:Y,value:N,onChange:P,getOptionKey:e=>e.id,getOptionLabel:e=>e.label}),(0,G.jsx)(M,{label:`Подразделение`,description:`Выберите подразделение из списка.`,placeholder:`Не выбрано`,options:tt,value:ot,onChange:st,getOptionKey:e=>e.id,getOptionLabel:e=>e.name,getOptionCode:e=>e.code,getOptionDisabled:e=>e.disabled??!1,getOptionGroup:e=>({key:e.direction,label:e.direction}),optionsMaxWidth:`40em`})]}),(0,G.jsx)(H,{title:`MultiSelect`,children:(0,G.jsx)(Ae,{label:`Города`,items:X,value:ye,query:``,codeKey:`code`,textKey:`label`,onChange:xe,onQuery:()=>void 0,onOpen:()=>void 0,onClose:()=>void 0})}),(0,G.jsx)(H,{title:`TreeMultiSelect`,children:(0,G.jsx)(Qe,{})}),(0,G.jsx)(H,{title:`TagInput`,children:(0,G.jsx)(Ge,{label:`Теги`,placeholder:`Добавить`,value:Ce,onChange:Te})}),(0,G.jsx)(H,{title:`Listbox`,children:(0,G.jsx)(Oe,{options:et,value:De,onChange:e=>ke(e)})}),(0,G.jsx)(H,{title:`StateSelect`,children:(0,G.jsx)(Ve,{label:`Состояние`,value:je,onChange:Ne})}),(0,G.jsx)(H,{title:`LayoutPicker`,children:(0,G.jsx)(Ee,{label:`Раскладка`,value:Fe,onChange:Re,showPlaceholder:!0})}),(0,G.jsx)(H,{title:`SingleDateInput`,children:(0,G.jsx)(fe,{label:`Дата`,value:Be,onChange:He,selectionMode:`week`})}),(0,G.jsx)(H,{title:`SingleDateTimeInput`,children:(0,G.jsx)(re,{label:`Дата и время`,value:We,onChange:Ke})}),(0,G.jsx)(H,{title:`DateRangePresetSelect`,children:(0,G.jsx)(_e,{label:`Период`,value:I??void 0,onChange:e=>L(e??null),onRangeChange:e=>R(e?.range??null),referenceDate:new Date(2026,2,10,12)})}),(0,G.jsx)(H,{title:`PresetRangeDateInput`,children:(0,G.jsx)(Pe,{value:Ye,onChange:R,presetId:I??null,onPresetIdChange:e=>L(e??null),referenceDate:new Date(2026,2,10,12),presetLabel:`Быстрый диапазон`})}),(0,G.jsx)(H,{title:`PeriodSelect`,children:(0,G.jsx)(Me,{label:`Группировка`,value:Xe,onChange:z})}),(0,G.jsx)(H,{title:`InputFile`,children:(0,G.jsx)(Se,{label:`Файл`,placeholder:`Выберите файл`,value:B,onChange:V,onClear:()=>V(void 0),readMode:`data-url`})}),(0,G.jsx)(H,{title:`InputFiles`,children:(0,G.jsx)(be,{label:`Файлы`,placeholder:`Выберите файлы`,value:U,onChange:K,readMode:`data-url`})}),(0,G.jsx)(H,{title:`InputImage`,children:(0,G.jsx)(we,{label:`Изображение`,value:q,onChange:Z,onClear:()=>Z(void 0)})}),(0,G.jsx)(H,{title:`DropZone`,children:(0,G.jsx)(ie,{value:Q,multiple:!0,readMode:`data-url`,onChange:e=>$(e),children:(0,G.jsx)(`div`,{style:{display:`grid`,placeItems:`center`,minHeight:`6em`,textAlign:`center`},children:Q.length?`Файлов: ${Q.length}`:`Перетащите файлы`})})}),(0,G.jsx)(H,{title:`TabsBox`,children:(0,G.jsx)(Ue,{defaultValue:`first`,bordered:!0,items:[{id:`first`,title:`Первый`,content:`Содержимое`},{id:`second`,title:`Второй`,content:`Другая панель`},{id:`third`,title:`Ещё одна`,content:`Другая панель`},{id:`quat`,title:`Четвертая`,content:`Другая панель`}]})}),(0,G.jsx)(H,{title:`TabsBox`,children:(0,G.jsx)(Ue,{defaultValue:`first`,orientation:`vertical`,bordered:!0,items:[{id:`first`,title:`Первый`,content:`Содержимое`},{id:`second`,title:`Второй`,content:`Другая панель`},{id:`third`,title:`Ещё одна`,content:`Другая панель`},{id:`quat`,title:`Четвертая`,content:`Другая панель`}]})}),(0,G.jsxs)(H,{title:`Disclosure`,children:[(0,G.jsxs)(ee,{children:[(0,G.jsx)(s,{label:`Раскрыть 1`,children:`Содержимое панели 1`}),(0,G.jsx)(s,{label:`Раскрыть 2`,children:`Содержимое панели 2`}),(0,G.jsx)(s,{label:`Раскрыть 3`,children:`Содержимое панели 3`}),(0,G.jsx)(s,{label:`Раскрыть 4`,children:`Содержимое панели 4`})]}),(0,G.jsx)(s,{label:`Раскрыть 1`,children:`Содержимое панели 1`})]}),(0,G.jsx)(H,{title:`ExpandableActionPanel`,children:(0,G.jsx)(te,{children:(0,G.jsx)(y,{variant:`transparent`,children:`Действие`})})}),(0,G.jsx)(H,{title:`Popover`,children:(0,G.jsxs)(g,{children:[(0,G.jsx)(g.Trigger,{children:(0,G.jsx)(y,{style:J,children:`Открыть`})}),(0,G.jsx)(g.Content,{children:({setClose:e})=>(0,G.jsxs)(`div`,{style:{display:`grid`,gap:`0.75em`,padding:`1em`,maxWidth:`14em`},children:[(0,G.jsx)(`div`,{children:`Содержимое popover`}),(0,G.jsx)(y,{onClick:e,children:`Закрыть`})]})})]})}),(0,G.jsx)(H,{title:`DropdownMenu`,children:(0,G.jsxs)(T,{children:[(0,G.jsx)(T.Trigger,{children:(0,G.jsx)(y,{style:J,children:`Действия`})}),(0,G.jsxs)(T.Content,{children:[(0,G.jsx)(T.Item,{children:`Редактировать`}),(0,G.jsx)(T.Item,{children:`Удалить`})]})]})}),(0,G.jsx)(H,{title:`ContextMenu`,children:(0,G.jsxs)(x,{children:[(0,G.jsx)(x.Trigger,{children:(0,G.jsx)(`div`,{style:{display:`grid`,placeItems:`center`,minHeight:`6em`,padding:`0.75em`,border:`var(--border)`,borderRadius:`var(--radius-sm)`,textAlign:`center`},children:`Правая кнопка мыши`})}),(0,G.jsxs)(x.Content,{children:[(0,G.jsx)(x.Item,{children:`Переименовать`}),(0,G.jsx)(x.Item,{children:`Удалить`})]})]})}),(0,G.jsxs)(H,{title:`Dialog`,children:[(0,G.jsx)(y,{style:J,onClick:()=>rt(!0),children:`Открыть диалог`}),(0,G.jsx)(ve,{title:`Подтверждение`,description:`Подтвердите действие`,open:nt,onClose:()=>rt(!1),children:(0,G.jsx)(y,{onClick:()=>rt(!1),children:`Закрыть`})})]}),(0,G.jsx)(H,{title:`Modal`,children:(0,G.jsxs)(de,{children:[(0,G.jsx)(y,{style:J,onClick:()=>at(!0),children:`Открыть модалку`}),(0,G.jsxs)(ue,{title:`Параметры`,isOpen:it,onClose:()=>at(!1),children:[(0,G.jsx)(le,{children:`Содержимое модального окна`}),(0,G.jsx)(ce,{children:(0,G.jsx)(y,{onClick:()=>at(!1),children:`Готово`})})]})]})})]})}var W,G,$e,K,q,J,Y,X,et,tt,Z,Q,$;function nt(){return(nt=e((()=>{W=n(),_(),ae(),se(),d(),b(),w(),pe(),N(),u(),P(),a(),o(),p(),c(),me(),D(),xe(),ye(),Ce(),V(),Te(),De(),C(),S(),ke(),je(),h(),Ne(),ne(),A(),ge(),Fe(),Re(),Be(),r(),He(),We(),Ke(),I(),L(),R(),G=m(),$e={display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(var(--ui-width-xl), 1fr))`,alignItems:`start`,gap:`2em`,padding:`2em`,background:`var(--surface-2)`},K={display:`grid`,alignContent:`start`,gridTemplateColumns:`100%`,gap:`0.5em`,padding:`1em`,overflow:`hidden`,borderRadius:`var(--radius-md)`,background:`var(--surface-1)`,boxShadow:`var(--shadow-lg)`},q={fontWeight:700,color:`var(--content-0)`},J={width:`100%`},Y=[{id:`draft`,label:`Черновик`},{id:`review`,label:`На согласовании`},{id:`published`,label:`Опубликован`}],X=[{code:`EKB`,label:`Екатеринбург`},{code:`KZN`,label:`Казань`},{code:`MOW`,label:`Москва`}],et=[{value:`day`,label:`День`},{value:`week`,label:`Неделя`},{value:`month`,label:`Месяц`}],tt=[{id:1,name:`Отдел продаж`,code:`SLS`,manager:`Елена Миронова`,direction:`Коммерческий блок`},{id:2,name:`Закупки`,code:`PRC`,manager:`Антон Мелихов`,direction:`Коммерческий блок`},{id:3,name:`Логистика`,code:`LGS`,manager:`Мария Климова`,direction:`Операционный блок`,disabled:!0},{id:4,name:`Поддержка клиентов`,code:`SUP`,manager:`Ирина Белова`,direction:`Операционный блок`}],Z={title:`Development/Interactive components`,component:U,parameters:{layout:`fullscreen`,docs:{description:{component:`Быстрая витрина интерактивных UI-компонентов для разработки и проверки общих стилей.`}}}},Q={},U.__docgenInfo={description:``,methods:[],displayName:`InteractiveComponents`},U.parameters={...U.parameters,docs:{...U.parameters?.docs,source:{originalSource:`function InteractiveComponents() {
|
|
2
|
-
const [text, setText] = useState("Значение");
|
|
3
|
-
const [number, setNumber] = useState<number | undefined>(42);
|
|
4
|
-
const [search, setSearch] = useState("");
|
|
5
|
-
const [textarea, setTextarea] = useState("Комментарий");
|
|
6
|
-
const [checked, setChecked] = useState(true);
|
|
7
|
-
const [radio, setRadio] = useState(false);
|
|
8
|
-
const [radioGroup, setRadioGroup] = useState("first");
|
|
9
|
-
const [switchValue, setSwitchValue] = useState(true);
|
|
10
|
-
const [toggleValue, setToggleValue] = useState(false);
|
|
11
|
-
const [sliderValue, setSliderValue] = useState<number | undefined>(3);
|
|
12
|
-
const [sliderRangeValue, setSliderRangeValue] = useState<SliderRangeValue | undefined>();
|
|
13
|
-
const [sliderRangeInputValue, setSliderRangeInputValue] = useState<SliderRangeValue>([0, 0]);
|
|
14
|
-
const [sliderInputValue, setSliderInputValue] = useState(60);
|
|
15
|
-
const [selectedStatus, setSelectedStatus] = useState<(typeof statusOptions)[number] | undefined>(statusOptions[0]);
|
|
16
|
-
const [selectedCities, setSelectedCities] = useState<CollectionItem[]>([cityOptions[0]!]);
|
|
17
|
-
const [tags, setTags] = useState<readonly string[]>(["UI", "Стили"]);
|
|
18
|
-
const [listboxValue, setListboxValue] = useState("week");
|
|
19
|
-
const [state, setState] = useState<State | undefined>("information");
|
|
20
|
-
const [layout, setLayout] = useState("two-columns");
|
|
21
|
-
const [date, setDate] = useState<Date | null>(new Date(2026, 2, 10));
|
|
22
|
-
const [dateTime, setDateTime] = useState<Date | null>(new Date(2026, 2, 10, 10, 30));
|
|
23
|
-
const [presetId, setPresetId] = useState<string | null>("today");
|
|
24
|
-
const [range, setRange] = useState<NullableDateRange | null>([new Date(2026, 2, 1), new Date(2026, 2, 10)]);
|
|
25
|
-
const [period, setPeriod] = useState<string | undefined>("month");
|
|
26
|
-
const [file, setFile] = useState<ReadFileResult>();
|
|
27
|
-
const [files, setFiles] = useState<ReadFileAsDataUrlResult[]>([]);
|
|
28
|
-
const [image, setImage] = useState<ReadImageResult>();
|
|
29
|
-
const [droppedFiles, setDroppedFiles] = useState<ReadFileResult[]>([]);
|
|
30
|
-
const [dialogOpen, setDialogOpen] = useState(false);
|
|
31
|
-
const [modalOpen, setModalOpen] = useState(false);
|
|
32
|
-
const [departmentValue, setDepartmentValue] = useState<DepartmentOption | undefined>();
|
|
33
|
-
return <div style={gridStyle}>
|
|
34
|
-
<ComponentCard title="Badge">
|
|
35
|
-
<BadgeList>
|
|
36
|
-
<Badge tone="neutral" appearance="outline">
|
|
37
|
-
Neutral
|
|
38
|
-
</Badge>
|
|
39
|
-
<Badge tone="success" appearance="solid">
|
|
40
|
-
Успешно
|
|
41
|
-
</Badge>
|
|
42
|
-
<Badge tone="warning" appearance="solid">
|
|
43
|
-
Внимание
|
|
44
|
-
</Badge>
|
|
45
|
-
<Badge tone="error" appearance="solid">
|
|
46
|
-
Ошибка
|
|
47
|
-
</Badge>
|
|
48
|
-
<Badge tone="info" appearance="solid">
|
|
49
|
-
Информация
|
|
50
|
-
</Badge>
|
|
51
|
-
</BadgeList>
|
|
52
|
-
</ComponentCard>
|
|
53
|
-
|
|
54
|
-
<ComponentCard title="Button">
|
|
55
|
-
<GridContainer gap="sm" templateColumns="1fr 1fr">
|
|
56
|
-
<Button variant="transparent">Действие</Button>
|
|
57
|
-
<Button variant="ghost">Действие</Button>
|
|
58
|
-
<Button variant="neutralOutline">Действие</Button>
|
|
59
|
-
<Button variant="infoOutline">Действие</Button>
|
|
60
|
-
<Button variant="successOutline">Действие</Button>
|
|
61
|
-
<Button variant="warningOutline">Действие</Button>
|
|
62
|
-
<Button variant="errorOutline">Действие</Button>
|
|
63
|
-
|
|
64
|
-
<Button variant="neutral">Действие</Button>
|
|
65
|
-
<Button variant="info">Действие</Button>
|
|
66
|
-
<Button variant="success">Действие</Button>
|
|
67
|
-
<Button variant="warning">Действие</Button>
|
|
68
|
-
<Button variant="error">Действие</Button>
|
|
69
|
-
</GridContainer>
|
|
70
|
-
</ComponentCard>
|
|
71
|
-
|
|
72
|
-
<ComponentCard title="InputText">
|
|
73
|
-
<InputText label="Текст" description="Поле ввода текста" placeholder="Введите текст" disabled value={text} onChange={setText} />
|
|
74
|
-
<InputText label="Текст" description="Поле ввода текста" placeholder="Введите текст" value={text} onChange={setText} />
|
|
75
|
-
<InputText required label="Текст" description="Поле ввода текста" placeholder="Введите текст" value={text} onChange={setText} onClear={() => setText("")} />
|
|
76
|
-
</ComponentCard>
|
|
77
|
-
|
|
78
|
-
<ComponentCard title="InputNumber">
|
|
79
|
-
<InputNumber label="Количество" description="Поле ввода числа" placeholder="Введите число" value={number} min={0} onChange={setNumber} disabled />
|
|
80
|
-
<InputNumber label="Количество" description="Поле ввода числа" placeholder="Введите число" value={number} min={0} onChange={setNumber} required />
|
|
81
|
-
<InputNumber label="Количество" description="Поле ввода числа" placeholder="Введите число" value={number} min={0} onChange={setNumber} />
|
|
82
|
-
<InputNumber label="Количество" description="Поле ввода числа" placeholder="Введите число" value={number} min={0} onChange={setNumber} onClear={() => setNumber(undefined)} />
|
|
83
|
-
</ComponentCard>
|
|
84
|
-
|
|
85
|
-
<ComponentCard title="InputSearch">
|
|
86
|
-
<InputSearch label="Поиск" placeholder="Найти" value={search} onChange={setSearch} />
|
|
87
|
-
</ComponentCard>
|
|
88
|
-
|
|
89
|
-
<ComponentCard title="Textarea">
|
|
90
|
-
<Textarea label="Комментарий" required placeholder="Многострочный комментарий" rows={6} value={textarea} onChange={setTextarea} />
|
|
91
|
-
</ComponentCard>
|
|
92
|
-
|
|
93
|
-
<ComponentCard title="CheckBox">
|
|
94
|
-
<CheckBox label="Опция" description="Описание чекбокса" disabled value={checked} onChange={setChecked} />
|
|
95
|
-
<CheckBox label="Опция" description="Описание чекбокса" value={checked} onChange={setChecked} />
|
|
96
|
-
<CheckBox label="Опция" description="Описание чекбокса" value={checked} onChange={setChecked} indeterminate />
|
|
97
|
-
</ComponentCard>
|
|
98
|
-
|
|
99
|
-
<ComponentCard title="RadioButton">
|
|
100
|
-
<RadioButton label="Опция" description="Описание радиокнопки" disabled value={radio} onChange={setRadio} />
|
|
101
|
-
<RadioButton label="Опция" description="Описание радиокнопки" name="radio-1" value={radio} onChange={setRadio} />
|
|
102
|
-
<RadioButton label="Опция" description="Описание радиокнопки" name="radio-1" value={radio} onChange={setRadio} />
|
|
103
|
-
</ComponentCard>
|
|
104
|
-
|
|
105
|
-
<ComponentCard title="RadioGroup">
|
|
106
|
-
<RadioGroup label="Радио группа" description="Вертикальная группа" value={radioGroup} onChange={setRadioGroup} orientation="vertical" aria-label="Вариант">
|
|
107
|
-
<RadioGroup.Option value="first" label="Первый" />
|
|
108
|
-
<RadioGroup.Option value="second" label="Второй" />
|
|
109
|
-
<RadioGroup.Option value="third" label="Третий" description="Новая опциональная опция" />
|
|
110
|
-
</RadioGroup>
|
|
111
|
-
|
|
112
|
-
<RadioGroup label="Радио группа" description="Горизонтальная группа" value={radioGroup} onChange={setRadioGroup} orientation="horizontal" aria-label="Вариант">
|
|
113
|
-
<RadioGroup.Option value="first" label="Первый" />
|
|
114
|
-
<RadioGroup.Option value="second" label="Второй" />
|
|
115
|
-
<RadioGroup.Option value="third" label="Третий" description="Новая опциональная опция" />
|
|
116
|
-
</RadioGroup>
|
|
117
|
-
</ComponentCard>
|
|
118
|
-
|
|
119
|
-
<ComponentCard title="Switch">
|
|
120
|
-
<Switch label="Уведомления" description="Устаревный компонент" value={switchValue} onChange={setSwitchValue} />
|
|
121
|
-
</ComponentCard>
|
|
122
|
-
|
|
123
|
-
<ComponentCard title="Toggle">
|
|
124
|
-
<Toggle label="Режим" description="Переключатель состояния" value={toggleValue} onChange={setToggleValue} checkedText="Вкл" uncheckedText="Выкл" />
|
|
125
|
-
<Toggle label="Режим" description="Переключатель состояния" labelPosition="after" value={toggleValue} onChange={setToggleValue} checkedText="Вкл" uncheckedText="Выкл" />
|
|
126
|
-
</ComponentCard>
|
|
127
|
-
|
|
128
|
-
<ComponentCard title="Slider">
|
|
129
|
-
<Slider label="Уровень" description="Простой слайдер" value={sliderValue} min={0} max={100} onChange={setSliderValue} />
|
|
130
|
-
<Slider label="Уровень" description="Простой слайдер" disabled marks={[{
|
|
131
|
-
value: 1,
|
|
132
|
-
label: "m1"
|
|
133
|
-
}, {
|
|
134
|
-
value: 2,
|
|
135
|
-
label: "m2"
|
|
136
|
-
}, {
|
|
137
|
-
value: 3,
|
|
138
|
-
label: "m3"
|
|
139
|
-
}, {
|
|
140
|
-
value: 4,
|
|
141
|
-
label: "m4"
|
|
142
|
-
}, {
|
|
143
|
-
value: 5,
|
|
144
|
-
label: "m5"
|
|
145
|
-
}, {
|
|
146
|
-
value: 6,
|
|
147
|
-
label: "m6"
|
|
148
|
-
}]} marksPosition="index" value={sliderValue} min={0} max={100} onChange={setSliderValue} />
|
|
149
|
-
|
|
150
|
-
<SliderRange label="Уровень" description="Диапазон" marks={[{
|
|
151
|
-
value: 0,
|
|
152
|
-
label: "m1"
|
|
153
|
-
}, {
|
|
154
|
-
value: 1,
|
|
155
|
-
label: "m2"
|
|
156
|
-
}, {
|
|
157
|
-
value: 2,
|
|
158
|
-
label: "m3"
|
|
159
|
-
}, {
|
|
160
|
-
value: 3,
|
|
161
|
-
label: "m4"
|
|
162
|
-
}]} marksPosition="index" value={sliderRangeValue} min={0} max={100} onChange={setSliderRangeValue} />
|
|
163
|
-
</ComponentCard>
|
|
164
|
-
|
|
165
|
-
<ComponentCard title="SliderInput">
|
|
166
|
-
<SliderInput label="Порог" value={sliderInputValue} min={0} max={100} onChange={setSliderInputValue} />
|
|
167
|
-
<SliderRangeInput label="Порог" value={sliderRangeInputValue} onChange={setSliderRangeInputValue} min={0} max={100} marks={[{
|
|
168
|
-
value: 0,
|
|
169
|
-
label: "0"
|
|
170
|
-
}, {
|
|
171
|
-
value: 20,
|
|
172
|
-
label: "20"
|
|
173
|
-
}, {
|
|
174
|
-
value: 40,
|
|
175
|
-
label: "40"
|
|
176
|
-
}, {
|
|
177
|
-
value: 60,
|
|
178
|
-
label: "60"
|
|
179
|
-
}, {
|
|
180
|
-
value: 80,
|
|
181
|
-
label: "80"
|
|
182
|
-
}, {
|
|
183
|
-
value: 100,
|
|
184
|
-
label: "100"
|
|
185
|
-
}]} />
|
|
186
|
-
<SliderRangeInput label="Срок: открытые границы и дни в фильтре" description="Крайние marks отдают null, обычные marks отдают дни через \`outputValue\`." min={0} max={25} marks={[{
|
|
187
|
-
value: 0,
|
|
188
|
-
label: "-",
|
|
189
|
-
outputValue: null
|
|
190
|
-
}, {
|
|
191
|
-
value: 1,
|
|
192
|
-
label: "1м.",
|
|
193
|
-
outputValue: 30
|
|
194
|
-
}, {
|
|
195
|
-
value: 3,
|
|
196
|
-
label: "3м.",
|
|
197
|
-
outputValue: 90
|
|
198
|
-
}, {
|
|
199
|
-
value: 6,
|
|
200
|
-
label: "6м.",
|
|
201
|
-
outputValue: 180
|
|
202
|
-
}, {
|
|
203
|
-
value: 12,
|
|
204
|
-
label: "1г.",
|
|
205
|
-
outputValue: 360
|
|
206
|
-
}, {
|
|
207
|
-
value: 18,
|
|
208
|
-
label: "1.5г.",
|
|
209
|
-
outputValue: 540
|
|
210
|
-
}, {
|
|
211
|
-
value: 24,
|
|
212
|
-
label: "2г.",
|
|
213
|
-
outputValue: 720
|
|
214
|
-
}, {
|
|
215
|
-
value: 25,
|
|
216
|
-
label: "-",
|
|
217
|
-
outputValue: null
|
|
218
|
-
}]} value={sliderRangeInputValue} onChange={setSliderRangeInputValue} />
|
|
219
|
-
|
|
220
|
-
<SliderRangeInput label="Срок текстом" description="В поле выводится готовый текст по marks, а изменение через popover коммитится при закрытии." placeholder="Любой срок" readonlyValueText min={0} max={25} marks={[{
|
|
221
|
-
value: 0,
|
|
222
|
-
label: "-",
|
|
223
|
-
outputValue: null
|
|
224
|
-
}, {
|
|
225
|
-
value: 1,
|
|
226
|
-
label: "1м.",
|
|
227
|
-
outputValue: 30
|
|
228
|
-
}, {
|
|
229
|
-
value: 3,
|
|
230
|
-
label: "3м.",
|
|
231
|
-
outputValue: 90
|
|
232
|
-
}, {
|
|
233
|
-
value: 6,
|
|
234
|
-
label: "6м.",
|
|
235
|
-
outputValue: 180
|
|
236
|
-
}, {
|
|
237
|
-
value: 12,
|
|
238
|
-
label: "1г.",
|
|
239
|
-
outputValue: 360
|
|
240
|
-
}, {
|
|
241
|
-
value: 18,
|
|
242
|
-
label: "1.5г.",
|
|
243
|
-
outputValue: 540
|
|
244
|
-
}, {
|
|
245
|
-
value: 24,
|
|
246
|
-
label: "2г.",
|
|
247
|
-
outputValue: 720
|
|
248
|
-
}, {
|
|
249
|
-
value: 25,
|
|
250
|
-
label: "-",
|
|
251
|
-
outputValue: null
|
|
252
|
-
}]} marksPosition="index" value={sliderRangeInputValue} onChange={setSliderRangeInputValue} />
|
|
253
|
-
</ComponentCard>
|
|
254
|
-
|
|
255
|
-
<ComponentCard title="Select">
|
|
256
|
-
<Select label="Статус" description="searchable" searchable options={statusOptions} value={selectedStatus} onChange={setSelectedStatus} getOptionKey={option => option.id} getOptionLabel={option => option.label} />
|
|
257
|
-
<Select label="Статус" description="disabled" disabled options={statusOptions} value={selectedStatus} onChange={setSelectedStatus} getOptionKey={option => option.id} getOptionLabel={option => option.label} />
|
|
258
|
-
<Select label="Статус" description="Пример использования низкоуровневого Select со строковыми значениями." placeholder="Выберите статус" options={statusOptions} value={selectedStatus} onChange={setSelectedStatus} getOptionKey={option => option.id} getOptionLabel={option => option.label} />
|
|
259
|
-
|
|
260
|
-
<Select label="Подразделение" description="Выберите подразделение из списка." placeholder="Не выбрано" options={departmentOptions} value={departmentValue} onChange={setDepartmentValue} getOptionKey={(option: DepartmentOption) => option.id} getOptionLabel={(option: DepartmentOption) => option.name} getOptionCode={(option: DepartmentOption) => option.code} getOptionDisabled={(option: DepartmentOption) => option.disabled ?? false} getOptionGroup={option => ({
|
|
261
|
-
key: option.direction,
|
|
262
|
-
label: option.direction
|
|
263
|
-
})} optionsMaxWidth="40em" />
|
|
264
|
-
|
|
265
|
-
{/* <LinkedFiltersDemo /> */}
|
|
266
|
-
</ComponentCard>
|
|
267
|
-
|
|
268
|
-
<ComponentCard title="MultiSelect">
|
|
269
|
-
<MultiSelect label="Города" items={cityOptions} value={selectedCities} query="" codeKey="code" textKey="label" onChange={setSelectedCities} onQuery={() => undefined} onOpen={() => undefined} onClose={() => undefined} />
|
|
270
|
-
</ComponentCard>
|
|
271
|
-
|
|
272
|
-
<ComponentCard title="TreeMultiSelect">
|
|
273
|
-
<StatefulTreeMultiSelect />
|
|
274
|
-
</ComponentCard>
|
|
275
|
-
|
|
276
|
-
<ComponentCard title="TagInput">
|
|
277
|
-
<TagInput label="Теги" placeholder="Добавить" value={tags} onChange={setTags} />
|
|
278
|
-
</ComponentCard>
|
|
279
|
-
|
|
280
|
-
<ComponentCard title="Listbox">
|
|
281
|
-
<Listbox options={listboxOptions} value={listboxValue} onChange={value => setListboxValue(value)} />
|
|
282
|
-
</ComponentCard>
|
|
283
|
-
|
|
284
|
-
<ComponentCard title="StateSelect">
|
|
285
|
-
<StateSelect label="Состояние" value={state} onChange={setState} />
|
|
286
|
-
</ComponentCard>
|
|
287
|
-
|
|
288
|
-
<ComponentCard title="LayoutPicker">
|
|
289
|
-
<LayoutPicker label="Раскладка" value={layout} onChange={setLayout} showPlaceholder />
|
|
290
|
-
</ComponentCard>
|
|
291
|
-
|
|
292
|
-
<ComponentCard title="SingleDateInput">
|
|
293
|
-
<SingleDateInput label="Дата" value={date} onChange={setDate} selectionMode="week" />
|
|
294
|
-
</ComponentCard>
|
|
295
|
-
|
|
296
|
-
<ComponentCard title="SingleDateTimeInput">
|
|
297
|
-
<SingleDateTimeInput label="Дата и время" value={dateTime} onChange={setDateTime} />
|
|
298
|
-
</ComponentCard>
|
|
299
|
-
|
|
300
|
-
<ComponentCard title="DateRangePresetSelect">
|
|
301
|
-
<DateRangePresetSelect label="Период" value={presetId ?? undefined} onChange={nextPresetId => setPresetId(nextPresetId ?? null)} onRangeChange={payload => setRange(payload?.range ?? null)} referenceDate={new Date(2026, 2, 10, 12)} />
|
|
302
|
-
</ComponentCard>
|
|
303
|
-
|
|
304
|
-
<ComponentCard title="PresetRangeDateInput">
|
|
305
|
-
<PresetRangeDateInput value={range} onChange={setRange} presetId={presetId ?? null} onPresetIdChange={nextPresetId => setPresetId(nextPresetId ?? null)} referenceDate={new Date(2026, 2, 10, 12)} presetLabel="Быстрый диапазон" />
|
|
306
|
-
</ComponentCard>
|
|
307
|
-
|
|
308
|
-
<ComponentCard title="PeriodSelect">
|
|
309
|
-
<PeriodSelect label="Группировка" value={period} onChange={setPeriod} />
|
|
310
|
-
</ComponentCard>
|
|
311
|
-
|
|
312
|
-
<ComponentCard title="InputFile">
|
|
313
|
-
<InputFile label="Файл" placeholder="Выберите файл" value={file} onChange={setFile} onClear={() => setFile(undefined)} readMode="data-url" />
|
|
314
|
-
</ComponentCard>
|
|
315
|
-
|
|
316
|
-
<ComponentCard title="InputFiles">
|
|
317
|
-
<InputFiles label="Файлы" placeholder="Выберите файлы" value={files} onChange={setFiles} readMode="data-url" />
|
|
318
|
-
</ComponentCard>
|
|
319
|
-
|
|
320
|
-
<ComponentCard title="InputImage">
|
|
321
|
-
<InputImage label="Изображение" value={image} onChange={setImage} onClear={() => setImage(undefined)} />
|
|
322
|
-
</ComponentCard>
|
|
323
|
-
|
|
324
|
-
<ComponentCard title="DropZone">
|
|
325
|
-
<DropZone value={droppedFiles} multiple readMode="data-url" onChange={nextFiles => setDroppedFiles(nextFiles)}>
|
|
326
|
-
<div style={{
|
|
327
|
-
display: "grid",
|
|
328
|
-
placeItems: "center",
|
|
329
|
-
minHeight: "6em",
|
|
330
|
-
textAlign: "center"
|
|
331
|
-
}}>
|
|
332
|
-
{droppedFiles.length ? \`Файлов: \${droppedFiles.length}\` : "Перетащите файлы"}
|
|
333
|
-
</div>
|
|
334
|
-
</DropZone>
|
|
335
|
-
</ComponentCard>
|
|
336
|
-
|
|
337
|
-
<ComponentCard title="TabsBox">
|
|
338
|
-
<TabsBox defaultValue="first" bordered items={[{
|
|
339
|
-
id: "first",
|
|
340
|
-
title: "Первый",
|
|
341
|
-
content: "Содержимое"
|
|
342
|
-
}, {
|
|
343
|
-
id: "second",
|
|
344
|
-
title: "Второй",
|
|
345
|
-
content: "Другая панель"
|
|
346
|
-
}, {
|
|
347
|
-
id: "third",
|
|
348
|
-
title: "Ещё одна",
|
|
349
|
-
content: "Другая панель"
|
|
350
|
-
}, {
|
|
351
|
-
id: "quat",
|
|
352
|
-
title: "Четвертая",
|
|
353
|
-
content: "Другая панель"
|
|
354
|
-
}]} />
|
|
355
|
-
</ComponentCard>
|
|
356
|
-
|
|
357
|
-
<ComponentCard title="TabsBox">
|
|
358
|
-
<TabsBox defaultValue="first" orientation="vertical" bordered items={[{
|
|
359
|
-
id: "first",
|
|
360
|
-
title: "Первый",
|
|
361
|
-
content: "Содержимое"
|
|
362
|
-
}, {
|
|
363
|
-
id: "second",
|
|
364
|
-
title: "Второй",
|
|
365
|
-
content: "Другая панель"
|
|
366
|
-
}, {
|
|
367
|
-
id: "third",
|
|
368
|
-
title: "Ещё одна",
|
|
369
|
-
content: "Другая панель"
|
|
370
|
-
}, {
|
|
371
|
-
id: "quat",
|
|
372
|
-
title: "Четвертая",
|
|
373
|
-
content: "Другая панель"
|
|
374
|
-
}]} />
|
|
375
|
-
</ComponentCard>
|
|
376
|
-
|
|
377
|
-
<ComponentCard title="Disclosure">
|
|
378
|
-
<DisclosureGroup>
|
|
379
|
-
<Disclosure label="Раскрыть 1">Содержимое панели 1</Disclosure>
|
|
380
|
-
<Disclosure label="Раскрыть 2">Содержимое панели 2</Disclosure>
|
|
381
|
-
<Disclosure label="Раскрыть 3">Содержимое панели 3</Disclosure>
|
|
382
|
-
<Disclosure label="Раскрыть 4">Содержимое панели 4</Disclosure>
|
|
383
|
-
</DisclosureGroup>
|
|
384
|
-
|
|
385
|
-
<Disclosure label="Раскрыть 1">Содержимое панели 1</Disclosure>
|
|
386
|
-
</ComponentCard>
|
|
387
|
-
|
|
388
|
-
<ComponentCard title="ExpandableActionPanel">
|
|
389
|
-
<ExpandableActionPanel>
|
|
390
|
-
<Button variant="transparent">Действие</Button>
|
|
391
|
-
</ExpandableActionPanel>
|
|
392
|
-
</ComponentCard>
|
|
393
|
-
|
|
394
|
-
<ComponentCard title="Popover">
|
|
395
|
-
<Popover>
|
|
396
|
-
<Popover.Trigger>
|
|
397
|
-
<Button style={compactButtonStyle}>Открыть</Button>
|
|
398
|
-
</Popover.Trigger>
|
|
399
|
-
<Popover.Content>
|
|
400
|
-
{({
|
|
401
|
-
setClose
|
|
402
|
-
}) => <div style={{
|
|
403
|
-
display: "grid",
|
|
404
|
-
gap: "0.75em",
|
|
405
|
-
padding: "1em",
|
|
406
|
-
maxWidth: "14em"
|
|
407
|
-
}}>
|
|
408
|
-
<div>Содержимое popover</div>
|
|
409
|
-
<Button onClick={setClose}>Закрыть</Button>
|
|
410
|
-
</div>}
|
|
411
|
-
</Popover.Content>
|
|
412
|
-
</Popover>
|
|
413
|
-
</ComponentCard>
|
|
414
|
-
|
|
415
|
-
<ComponentCard title="DropdownMenu">
|
|
416
|
-
<DropdownMenu>
|
|
417
|
-
<DropdownMenu.Trigger>
|
|
418
|
-
<Button style={compactButtonStyle}>Действия</Button>
|
|
419
|
-
</DropdownMenu.Trigger>
|
|
420
|
-
<DropdownMenu.Content>
|
|
421
|
-
<DropdownMenu.Item>Редактировать</DropdownMenu.Item>
|
|
422
|
-
<DropdownMenu.Item>Удалить</DropdownMenu.Item>
|
|
423
|
-
</DropdownMenu.Content>
|
|
424
|
-
</DropdownMenu>
|
|
425
|
-
</ComponentCard>
|
|
426
|
-
|
|
427
|
-
<ComponentCard title="ContextMenu">
|
|
428
|
-
<ContextMenu>
|
|
429
|
-
<ContextMenu.Trigger>
|
|
430
|
-
<div style={{
|
|
431
|
-
display: "grid",
|
|
432
|
-
placeItems: "center",
|
|
433
|
-
minHeight: "6em",
|
|
434
|
-
padding: "0.75em",
|
|
435
|
-
border: "var(--border)",
|
|
436
|
-
borderRadius: "var(--radius-sm)",
|
|
437
|
-
textAlign: "center"
|
|
438
|
-
}}>
|
|
439
|
-
Правая кнопка мыши
|
|
440
|
-
</div>
|
|
441
|
-
</ContextMenu.Trigger>
|
|
442
|
-
<ContextMenu.Content>
|
|
443
|
-
<ContextMenu.Item>Переименовать</ContextMenu.Item>
|
|
444
|
-
<ContextMenu.Item>Удалить</ContextMenu.Item>
|
|
445
|
-
</ContextMenu.Content>
|
|
446
|
-
</ContextMenu>
|
|
447
|
-
</ComponentCard>
|
|
448
|
-
|
|
449
|
-
<ComponentCard title="Dialog">
|
|
450
|
-
<Button style={compactButtonStyle} onClick={() => setDialogOpen(true)}>
|
|
451
|
-
Открыть диалог
|
|
452
|
-
</Button>
|
|
453
|
-
<Dialog title="Подтверждение" description="Подтвердите действие" open={dialogOpen} onClose={() => setDialogOpen(false)}>
|
|
454
|
-
<Button onClick={() => setDialogOpen(false)}>Закрыть</Button>
|
|
455
|
-
</Dialog>
|
|
456
|
-
</ComponentCard>
|
|
457
|
-
|
|
458
|
-
<ComponentCard title="Modal">
|
|
459
|
-
<ModalManagerProvider>
|
|
460
|
-
<Button style={compactButtonStyle} onClick={() => setModalOpen(true)}>
|
|
461
|
-
Открыть модалку
|
|
462
|
-
</Button>
|
|
463
|
-
<Modal title="Параметры" isOpen={modalOpen} onClose={() => setModalOpen(false)}>
|
|
464
|
-
<ModalContent>Содержимое модального окна</ModalContent>
|
|
465
|
-
<ModalFooter>
|
|
466
|
-
<Button onClick={() => setModalOpen(false)}>Готово</Button>
|
|
467
|
-
</ModalFooter>
|
|
468
|
-
</Modal>
|
|
469
|
-
</ModalManagerProvider>
|
|
470
|
-
</ComponentCard>
|
|
471
|
-
</div>;
|
|
472
|
-
}`,...U.parameters?.docs?.source}}},Q.parameters={...Q.parameters,docs:{...Q.parameters?.docs,source:{originalSource:`{}`,...Q.parameters?.docs?.source}}},$=[`InteractiveComponents`,`All`]})))()}nt();export{Q as All,U as InteractiveComponents,$ as __namedExportsOrder,Z as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-C0FnF6B9.js";import{t as n}from"./react-C21x__mS.js";import{i as r,n as i,r as a}from"./iframe-CZ0KI0zu.js";import{a as o,i as s}from"./utils-DUM89eIj.js";import{n as c,t as l}from"./ui.module-DjxH5szp.js";import{n as u,r as d}from"./uiClasses-CjI3jv6I.js";import{n as f,t as p}from"./CheckBox.module-CM_GPl_E.js";var m,h;function g(){return(g=e((()=>{r(),m=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]],h=a(`circle`,m)})))()}var _,v;function y(){return(y=e((()=>{_=`gu8UMB`,v={radioInput:_}})))()}var b,x,S;function C(){return(C=e((()=>{b=t(n(),1),s(),g(),f(),l(),d(),y(),x=i(),S=({label:e,description:t,placeholder:n,disabled:r,size:i,className:a,onChange:s,value:l,id:d,tone:f=`neutral`,...m})=>{let g=(0,b.useId)(),_=d??g,y=t?`${_}-description`:void 0,S=e??n,C=l??!1;return(0,x.jsxs)(`div`,{className:o(c.uiElement,i&&c.uiSizable,i&&c[i],r&&c.disabled,a),children:[(0,x.jsxs)(`div`,{className:p.row,children:[(0,x.jsxs)(`div`,{className:o(p.wrapper,u(f)),children:[(0,x.jsx)(`input`,{...m,id:_,type:`checkbox`,role:`radio`,checked:C,disabled:r,"aria-disabled":r,"aria-checked":C,"aria-describedby":y,className:o(c.uiSelectionControl,p.input,v.radioInput),onChange:()=>s?.(!C)}),(0,x.jsx)(`div`,{className:o(c.uiSelectionIcon,p.icon),"aria-hidden":`true`,children:(0,x.jsx)(h,{fill:`currentColor`})})]}),S&&(0,x.jsx)(`label`,{htmlFor:_,className:c.uiLabel,children:S})]}),t&&(0,x.jsx)(`p`,{id:y,className:c.uiDescription,children:t})]})},S.__docgenInfo={description:`Компонент радиокнопки для выбора одного варианта.
|
|
2
|
-
Поддерживает tone + appearance и использует общие selection utility-классы из ui.module.scss.`,methods:[],displayName:`RadioButton`,props:{label:{required:!1,tsType:{name:`ReactNode`},description:``},description:{required:!1,tsType:{name:`string`},description:``},placeholder:{required:!1,tsType:{name:`string`},description:``},disabled:{required:!1,tsType:{name:`boolean`},description:``},size:{required:!1,tsType:{name:`union`,raw:`"xs" | "sm" | "md" | "lg" | "xl"`,elements:[{name:`literal`,value:`"xs"`},{name:`literal`,value:`"sm"`},{name:`literal`,value:`"md"`},{name:`literal`,value:`"lg"`},{name:`literal`,value:`"xl"`}]},description:``},value:{required:!0,tsType:{name:`V`},description:"Если начальное состояние может быть `null | undefined`\nзначит `onChange` тоже должен ументь сбрасывать.\nПоэтому такой контрол явно должен передавать `UiBaseProps<AnyType | undefined>`"},onChange:{required:!0,tsType:{name:`signature`,type:`function`,raw:`(value: T) => void`,signature:{arguments:[{type:{name:`C`},name:`value`}],return:{name:`void`}}},description:``},tone:{required:!1,tsType:{name:`union`,raw:`"neutral" | "brand" | "error" | "warning" | "success" | "info"`,elements:[{name:`literal`,value:`"neutral"`},{name:`literal`,value:`"brand"`},{name:`literal`,value:`"error"`},{name:`literal`,value:`"warning"`},{name:`literal`,value:`"success"`},{name:`literal`,value:`"info"`}]},description:``,defaultValue:{value:`"neutral"`,computed:!1}}},composes:[`Omit`]}})))()}export{C as n,S as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.fA7zne{gap:var(--space-sm);flex-direction:column;display:flex}.fA7zne[data-disabled] .gg-atO{color:var(--content-2);background-color:var(--surface-2);border-color:var(--overlay-backdrop)}.fA7zne[data-disabled] .bTLJZl{opacity:var(--disabled-opacity)}.fA7zne[data-disabled] .vDAmRy{border-color:var(--overlay-backdrop);background-color:var(--surface-2);color:var(--content-2);box-shadow:none}.fA7zne[data-disabled] .PpaxP2,.fA7zne[data-disabled] ._9K78Fi{color:var(--overlay-backdrop)}.TMbaqW{gap:0}._77qn1L{padding-inline:calc((var(--control-height) - var(--space-xs)) / 2);position:relative}.cxJQqh{height:var(--control-height);cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;position:relative}.-X13t0{top:calc(50% - (var(--control-height) - var(--space-xs)) / 2);width:0;height:0;position:absolute;left:0}.gg-atO,.bTLJZl{height:var(--space-sm);border-radius:999px;position:absolute;top:50%;transform:translateY(-50%)}.gg-atO{background-color:var(--surface-2);border:var(--border);left:0;right:0}.bTLJZl{background-color:var(--status-info-fill)}.vDAmRy{top:calc((var(--control-height) - var(--space-xs)) / 2);width:calc(var(--control-height) - var(--space-md));height:calc(var(--control-height) - var(--space-md));border:var(--border);background-color:var(--surface-0);color:var(--content-0);box-shadow:var(--shadow-sm);cursor:grab;z-index:2;transition:transform var(--transition-fast) ease, border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease, background-color var(--transition-fast) ease;border-radius:50%;position:absolute;left:0;transform:translate(-50%,-50%)}.vDAmRy:active,.vDAmRy:hover{border-color:var(--border-1)}.vDAmRy:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:var(--focus-offset)}.vDAmRy[data-dragging]{cursor:grabbing;box-shadow:var(--shadow-md);transform:translate(-50%,-50%)scale(1.04)}.iNrV0y{min-height:calc(var(--font-size-sm) + var(--space-md));margin-inline:calc((var(--control-height) - var(--space-xs)) / 2);position:relative}.PpaxP2,._9K78Fi{color:var(--content-2);cursor:pointer;background:0 0;border:none;align-items:center;padding:0;display:inline-flex;position:absolute}.PpaxP2:focus-visible,._9K78Fi:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:var(--focus-offset);border-radius:var(--radius-sm)}.PpaxP2[data-active],._9K78Fi[data-active]{color:var(--content-0)}.PpaxP2:disabled,._9K78Fi:disabled{cursor:default}.PpaxP2{gap:var(--space-xs);white-space:nowrap;flex-direction:column;top:0;transform:translate(-50%)}._9K78Fi{top:calc(var(--control-height) - var(--space-xs));width:var(--control-height);height:var(--control-height);z-index:1;justify-content:center;left:0;transform:translate(-50%,-50%)}.vzEDBe{width:var(--space-sm);height:var(--space-sm);background-color:currentColor;border-radius:50%}._0OWJh0{font-size:var(--font-size-sm)}.Mk4xi2{min-width:min(24em, 100vw - var(--space-xl))}.SL0IDQ{gap:var(--space-xs);cursor:text}.mdezg5{width:7ch;min-width:0;font-family:var(--font-family-mono);color:inherit;text-align:center;caret-color:var(--content-0);font-variant-numeric:tabular-nums;background:0 0;border:none;outline:none;margin:0;padding:0}.mdezg5::selection{background-color:var(--focus-ring);color:var(--surface-0)}.mdezg5:disabled{opacity:.25}.a4R18g{-webkit-user-select:none;user-select:none;color:var(--content-2);flex-shrink:0}.a4R18g[data-disabled]{opacity:.25}
|