@ryuzaki13/react-foundation-ui 1.4.1 → 1.4.3
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 +12 -11
- package/dist/advanced-search/index.js.map +1 -1
- package/dist/badge/index.js +1 -1
- package/dist/base-table/index.js +2 -2
- package/dist/button/index.js +1 -1
- package/dist/chunks/{CalendarView-KCkhCtK-.js → CalendarView-Z_XWk7aI.js} +8 -8
- package/dist/chunks/{CalendarView-KCkhCtK-.js.map → CalendarView-Z_XWk7aI.js.map} +1 -1
- package/dist/chunks/{ImageViewerRuntime-RN49by8Y.js → ImageViewerRuntime-BMs3BBkV.js} +4 -4
- package/dist/chunks/{ImageViewerRuntime-RN49by8Y.js.map → ImageViewerRuntime-BMs3BBkV.js.map} +1 -1
- package/dist/chunks/{TextEditorLexicalClient-CVTrglWP.js → TextEditorLexicalClient-CK8j3RA4.js} +16 -18
- package/dist/chunks/{TextEditorLexicalClient-CVTrglWP.js.map → TextEditorLexicalClient-CK8j3RA4.js.map} +1 -1
- package/dist/chunks/{badge-Cri0-kVK.js → badge-DwIUjH0a.js} +2 -2
- package/dist/chunks/{badge-Cri0-kVK.js.map → badge-DwIUjH0a.js.map} +1 -1
- package/dist/chunks/{base-table-D5IqsjQD.js → base-table-BFsVwXg3.js} +13 -12
- package/dist/chunks/{base-table-D5IqsjQD.js.map → base-table-BFsVwXg3.js.map} +1 -1
- package/dist/chunks/{button-CC0Jdx1j.js → button-BU2kRzwu.js} +2 -2
- package/dist/chunks/button-BU2kRzwu.js.map +1 -0
- package/dist/chunks/check-box-Dd3YFuxd.js.map +1 -1
- package/dist/chunks/{context-menu-DQeR3y7M.js → context-menu-C6RO7soI.js} +7 -2
- package/dist/chunks/{context-menu-DQeR3y7M.js.map → context-menu-C6RO7soI.js.map} +1 -1
- package/dist/chunks/{date-input-DBJisPRz.js → date-input-BzExUQnc.js} +5 -5
- package/dist/chunks/{date-input-DBJisPRz.js.map → date-input-BzExUQnc.js.map} +1 -1
- package/dist/chunks/{flex-DYZ0IbU6.js → flex-C7njxZ74.js} +10 -7
- package/dist/chunks/{flex-DYZ0IbU6.js.map → flex-C7njxZ74.js.map} +1 -1
- package/dist/chunks/floating-arrow-BE-z4QkE.js.map +1 -1
- package/dist/chunks/{input-BCJfUdK_.js → input-Bp6_Ucgr.js} +15 -15
- package/dist/chunks/{input-BCJfUdK_.js.map → input-Bp6_Ucgr.js.map} +1 -1
- package/dist/chunks/{input-files-Dcc5K-_1.js → input-files-D1JzSw_Y.js} +2 -2
- package/dist/chunks/{input-files-Dcc5K-_1.js.map → input-files-D1JzSw_Y.js.map} +1 -1
- package/dist/chunks/{input-search-B7HmrAM7.js → input-search-Bkhcinru.js} +2 -2
- package/dist/chunks/{input-search-B7HmrAM7.js.map → input-search-Bkhcinru.js.map} +1 -1
- package/dist/chunks/{misc-DIF5h9ba.js → misc-BYxxlJz6.js} +3 -3
- package/dist/chunks/{misc-DIF5h9ba.js.map → misc-BYxxlJz6.js.map} +1 -1
- package/dist/chunks/{modal-DXHX_sA-.js → modal-paexEF0j.js} +4 -5
- package/dist/chunks/{modal-DXHX_sA-.js.map → modal-paexEF0j.js.map} +1 -1
- package/dist/chunks/{multi-select-CWx12rgb.js → multi-select-COa6-owj.js} +3 -3
- package/dist/chunks/{multi-select-CWx12rgb.js.map → multi-select-COa6-owj.js.map} +1 -1
- package/dist/chunks/{picker-BAQ9NeHe.js → picker-e6IsrMUG.js} +3 -3
- package/dist/chunks/{picker-BAQ9NeHe.js.map → picker-e6IsrMUG.js.map} +1 -1
- package/dist/chunks/{popover-xJJqy1v6.js → popover-CGU3MlsH.js} +14 -14
- package/dist/chunks/{popover-xJJqy1v6.js.map → popover-CGU3MlsH.js.map} +1 -1
- package/dist/chunks/radio-group-CM9Lg_nc.js.map +1 -1
- package/dist/chunks/{select-BPb-eL3O.js → select-C95db02j.js} +32 -31
- package/dist/chunks/{select-BPb-eL3O.js.map → select-C95db02j.js.map} +1 -1
- package/dist/chunks/sortable-DcTIAbjD.js.map +1 -1
- package/dist/chunks/{table-xMAjqtcY.js → table-Dd5BcC0k.js} +3 -3
- package/dist/chunks/{table-xMAjqtcY.js.map → table-Dd5BcC0k.js.map} +1 -1
- package/dist/chunks/{table-column-interactions-BGd5Lwy9.js → table-column-interactions-DzEvVuXe.js} +8 -5
- package/dist/chunks/{table-column-interactions-BGd5Lwy9.js.map → table-column-interactions-DzEvVuXe.js.map} +1 -1
- package/dist/chunks/useODataSelectBase-CKe1AVMI.js.map +1 -1
- package/dist/chunks/wheel-picker-FS58cRsQ.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 +4 -4
- package/dist/date-time-input/index.js.map +1 -1
- package/dist/detail/index.js.map +1 -1
- package/dist/dialog/index.js.map +1 -1
- package/dist/disclosure/index.js +1 -1
- package/dist/disclosure/index.js.map +1 -1
- package/dist/drop-zone/index.js +1 -1
- package/dist/drop-zone/index.js.map +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/errors/index.js.map +1 -1
- package/dist/expandable-action-panel/index.js +2 -2
- package/dist/expandable-action-panel/index.js.map +1 -1
- package/dist/flex/index.js +1 -1
- package/dist/fullscreen-portal/index.js +3 -3
- package/dist/fullscreen-portal/index.js.map +1 -1
- package/dist/image/index.js +5 -5
- package/dist/image/index.js.map +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-date-time/index.js +1 -1
- package/dist/input-date-time/index.js.map +1 -1
- package/dist/input-file/index.js +1 -1
- package/dist/input-file/index.js.map +1 -1
- package/dist/input-files/index.js +1 -1
- package/dist/input-image/index.js +1 -1
- package/dist/input-image/index.js.map +1 -1
- package/dist/input-search/index.js +1 -1
- package/dist/layout-picker/index.js +3 -3
- package/dist/layout-picker/index.js.map +1 -1
- package/dist/list/index.js +7 -7
- package/dist/list/index.js.map +1 -1
- package/dist/listbox/index.js.map +1 -1
- package/dist/misc/index.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/multi-select/index.js +1 -1
- package/dist/notifications/index.js +13 -11
- package/dist/notifications/index.js.map +1 -1
- package/dist/pages/index.js.map +1 -1
- package/dist/panel/index.js.map +1 -1
- package/dist/picker/index.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/preset-range-date-input/index.js +2 -2
- package/dist/preset-range-date-input/index.js.map +1 -1
- package/dist/preset-select/index.js +1 -1
- package/dist/radio-button/index.js.map +1 -1
- package/dist/select/index.js +1 -1
- package/dist/simple-table/index.js +1 -1
- package/dist/slider/index.js +27 -24
- package/dist/slider/index.js.map +1 -1
- package/dist/splitter/index.js.map +1 -1
- package/dist/state-select/index.js +12 -10
- package/dist/state-select/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/switch/index.js.map +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table-column-interactions/index.js +1 -1
- package/dist/table-sorting/index.js +1 -1
- package/dist/table-sorting/index.js.map +1 -1
- package/dist/tabs/index.js +6 -6
- package/dist/tabs/index.js.map +1 -1
- package/dist/tag-input/index.js +1 -1
- package/dist/tag-input/index.js.map +1 -1
- package/dist/text/index.js +10 -8
- package/dist/text/index.js.map +1 -1
- package/dist/text-editor/index.js +2 -2
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/index.js.map +1 -1
- package/dist/toggle/index.js.map +1 -1
- package/dist/toolbar/index.js +1 -2
- package/dist/toolbar/index.js.map +1 -1
- package/dist/tree/index.js.map +1 -1
- package/dist/tree-select/index.js +83 -80
- package/dist/tree-select/index.js.map +1 -1
- package/dist/tree-table/index.js +2 -2
- package/dist/tree-table/index.js.map +1 -1
- package/package.json +51 -59
- package/storybook-static/assets/{Badge-DrS-PqPt.js → Badge-DHexWW92.js} +11 -11
- package/storybook-static/assets/Badge.stories-CeWDekpP.js +54 -0
- package/storybook-static/assets/Button-DtU4kGzD.css +1 -0
- package/storybook-static/assets/Button-VdPdxcvG.js +12 -0
- package/storybook-static/assets/{Button-CIC4xzqW.js → Button-kybsFNS9.js} +10 -10
- package/storybook-static/assets/Button.stories-DhgYDM_q.js +75 -0
- package/storybook-static/assets/{DateInput-BfFTwd_P.css → CalendarView-DKvrkS40.css} +1 -1
- package/storybook-static/assets/CalendarView-DTX0eO8t.js +1 -0
- package/storybook-static/assets/CheckBox-B6rTemHK.js +2 -0
- package/storybook-static/assets/{CheckBox-B2HRisgL.js → CheckBox-CDwboiFD.js} +11 -11
- package/storybook-static/assets/CheckBox.module-BBzuj5He.js +1 -0
- package/storybook-static/assets/CheckBox.stories-BSMihxpY.js +60 -0
- package/storybook-static/assets/Color-6AOWCN3U-D5F38IUU.js +1 -0
- package/storybook-static/assets/{ContextMenu-BH2hpaXG.js → ContextMenu-2ZQAeo_p.js} +9 -9
- package/storybook-static/assets/ContextMenu-CQtvL8kx.js +1 -0
- package/storybook-static/assets/ContextMenu.stories-Dtz2YIGk.js +90 -0
- package/storybook-static/assets/{DateInput-DCJw3t_Z.js → DateInput-D41aWZ7_.js} +11 -11
- package/storybook-static/assets/DateInput-DBwgBhFj.js +1 -0
- package/storybook-static/assets/DateInput-pmGiwdvw.css +1 -0
- package/storybook-static/assets/{DateInput.stories-BG4-DoSj.js → DateInput.stories-CMV96t-8.js} +2 -2
- package/storybook-static/assets/{DateRangePresetSelect-KLRkhxJb.js → DateRangePresetSelect-BLKJkg8X.js} +8 -8
- package/storybook-static/assets/DateRangePresetSelect-DXYYFJJn.js +3 -0
- package/storybook-static/assets/DateRangePresetSelect.stories-BNtFx_iG.js +11 -0
- package/storybook-static/assets/{Detail-3XawxFBs.js → Detail-BHcGLZok.js} +11 -11
- package/storybook-static/assets/Detail.stories-C4smn8Uu.js +44 -0
- package/storybook-static/assets/{Dialog-CnolXXtD.js → Dialog-kji1ho-G.js} +9 -9
- package/storybook-static/assets/Dialog.stories-DYzrVcIT.js +31 -0
- package/storybook-static/assets/{Disclosure-BmQa9ejy.js → Disclosure-BVLfp53o.js} +10 -10
- package/storybook-static/assets/Disclosure.stories-DcV1pGCt.js +41 -0
- package/storybook-static/assets/DocsRenderer-JROSPFPF-CCwX0YiR.js +2 -0
- package/storybook-static/assets/{DropZone-BLqqXnAE.js → DropZone-6iWHt6C_.js} +10 -10
- package/storybook-static/assets/DropZone.stories-bASZNbD5.js +44 -0
- package/storybook-static/assets/ExpandableActionPanel.stories-CMMbHs_d.js +20 -0
- package/storybook-static/assets/{Flex-B1T5p8TC.js → Flex-BJViOwhH.js} +18 -18
- package/storybook-static/assets/Flex.stories-CI6DdxU7.js +300 -0
- package/storybook-static/assets/FlexContainer-LmZIdhq2.js +1 -0
- package/storybook-static/assets/FlexItem-vkDYa5tA.js +3 -0
- package/storybook-static/assets/FloatingPopover-CPLOruAY.js +1 -0
- package/storybook-static/assets/FloatingPopover-DC84VrV3.css +1 -0
- package/storybook-static/assets/FormattedTableCell-CV4yLuxl.js +18 -0
- package/storybook-static/assets/FormattedTableCell-CY3E21k8.css +1 -0
- package/storybook-static/assets/Grid-BCzygAqy.js +52 -0
- package/storybook-static/assets/{Grid-BNsFGran.js → Grid-CNEn2bRE.js} +18 -18
- package/storybook-static/assets/{Grid.stories-BtDwT-co.js → Grid.stories-qFo5E3qE.js} +2 -2
- package/storybook-static/assets/{Grid-DudjnKE7.js → GridContainer-qDguE1HS.js} +2 -53
- package/storybook-static/assets/ImageCropper.stories-BeQI7oKQ.js +115 -0
- package/storybook-static/assets/ImageRenderer-DK2ibQyr.js +2 -0
- package/storybook-static/assets/ImageRenderer.stories-C1T4ne0G.js +22 -0
- package/storybook-static/assets/ImageView.stories-D_Q-ZBtQ.js +9 -0
- package/storybook-static/assets/{ImageViewer.stories-CA-tcnt2.js → ImageViewer.stories-boombTJI.js} +5 -5
- package/storybook-static/assets/ImageViewerRuntime-D8KSESgf.js +51 -0
- package/storybook-static/assets/{Input-B6zekikL.js → Input-CGHba0oM.js} +11 -11
- package/storybook-static/assets/Input-DtOsW7ur.js +3 -0
- package/storybook-static/assets/Input.stories-C0qWd6SH.js +38 -0
- package/storybook-static/assets/{InputDateTime-EYsJkV-0.js → InputDateTime-CgYkmVYu.js} +11 -11
- package/storybook-static/assets/InputDateTime.stories-Brxo7Chn.js +35 -0
- package/storybook-static/assets/{InputFile-BizeGHyb.js → InputFile-Bsxafe88.js} +10 -10
- package/storybook-static/assets/InputFile.stories-BzEV7ybE.js +36 -0
- package/storybook-static/assets/{InputFiles-9tzXfyuT.js → InputFiles-KJFUsmSS.js} +10 -10
- package/storybook-static/assets/InputFiles.stories-ffjxiHSh.js +33 -0
- package/storybook-static/assets/InputFilesList-D6B5g99M.js +1 -0
- package/storybook-static/assets/{InputImage-uw3SMJNy.js → InputImage-Cd39V4Vc.js} +10 -10
- package/storybook-static/assets/InputImage.stories-n-tpY8OO.js +51 -0
- package/storybook-static/assets/{LayoutPicker-CeiyAZt7.js → LayoutPicker-CGQFfQk6.js} +13 -13
- package/storybook-static/assets/LayoutPicker.stories-xSL2qafC.js +449 -0
- package/storybook-static/assets/{Listbox-C-B_og6p.js → Listbox-CxISK8c5.js} +10 -10
- package/storybook-static/assets/Listbox.stories-BdQBmVFI.js +47 -0
- package/storybook-static/assets/{Modal-CsfpIg6C.js → Modal-BiaAWMdV.js} +12 -12
- package/storybook-static/assets/Modal.stories-GV7fGqyd.js +180 -0
- package/storybook-static/assets/MultiSelect-D5XFosSU.js +2 -0
- package/storybook-static/assets/{MultiSelect-Dt5HCrYP.js → MultiSelect-Df2CpyNH.js} +11 -11
- package/storybook-static/assets/MultiSelect.stories-BEVQF6hO.js +29 -0
- package/storybook-static/assets/MultiSelectToken-CrVawISu.js +1 -0
- package/storybook-static/assets/NoData-C7KqaHUh.css +1 -0
- package/storybook-static/assets/NoData-Fm23iF4n.js +1 -0
- package/storybook-static/assets/{NotificationsHost-CDI8mQh0.js → NotificationsHost-C2vSwAjz.js} +9 -9
- package/storybook-static/assets/NotificationsHost.stories-IbgayDlM.js +25 -0
- package/storybook-static/assets/{ODataMultiSelect-Bj1NtXx4.js → ODataMultiSelect-oW3kW0nO.js} +15 -15
- package/storybook-static/assets/ODataMultiSelect.stories-CP6_jGSr.js +73 -0
- package/storybook-static/assets/{ODataSelect-CalTWDdU.js → ODataSelect-CrGF8fyC.js} +15 -15
- package/storybook-static/assets/ODataSelect.stories-DTv31Rkv.js +73 -0
- package/storybook-static/assets/ODataTreeMultiSelect-D0h8H3gw.js +19 -0
- package/storybook-static/assets/ODataTreeMultiSelect.stories-CM8QjG8r.js +30 -0
- package/storybook-static/assets/ODataTreeSelect-PWn0-hI4.js +17 -0
- package/storybook-static/assets/ODataTreeSelect.stories-2UkFTnbE.js +24 -0
- package/storybook-static/assets/OneStepScroller-CH6K7wiO.js +5 -0
- package/storybook-static/assets/OneStepScroller-NRYd-egY.css +1 -0
- package/storybook-static/assets/{PeriodSelect--wEPFluW.js → PeriodSelect-BtwJuAO6.js} +13 -13
- package/storybook-static/assets/PeriodSelect.stories-BH8I5Wmg.js +64 -0
- package/storybook-static/assets/PickerSelectionToolbar-BcL8-O6n.js +2 -0
- package/storybook-static/assets/PickerTriggerActions-C8Asdp5e.js +1 -0
- package/storybook-static/assets/{Popover-CXlXO4Om.js → Popover-Ch5btFhR.js} +11 -11
- package/storybook-static/assets/Popover-DGX7JNNK.css +1 -0
- package/storybook-static/assets/Popover-Djns7yXR.js +2 -0
- package/storybook-static/assets/Popover.stories-Bask2I1I.js +69 -0
- package/storybook-static/assets/{PresetRangeDateInput-Ek_8-9jx.js → PresetRangeDateInput-DvsTjQNP.js} +8 -8
- package/storybook-static/assets/PresetRangeDateInput.stories-BNfOUWgp.js +15 -0
- package/storybook-static/assets/PresetSelect-9zitP0-V.js +5 -0
- package/storybook-static/assets/{RadioButton-CFyxweTk.js → RadioButton-Yb9bQKYe.js} +10 -10
- package/storybook-static/assets/RadioButton.stories-FIFxXFVP.js +36 -0
- package/storybook-static/assets/RadioGroup-CWsVqwtm.js +1 -0
- package/storybook-static/assets/{RadioGroup-BzgaB3tz.js → RadioGroup-Dn0zL838.js} +10 -10
- package/storybook-static/assets/RadioGroup.stories-B_drop9x.js +42 -0
- package/storybook-static/assets/Scrollable-3Z6b5g0Z.js +1 -0
- package/storybook-static/assets/{Select-CJTdiLLf.js → Select-BaR8D89E.js} +13 -13
- package/storybook-static/assets/Select-BiOxxy0y.js +12 -0
- package/storybook-static/assets/Select.stories-CMlWu7vC.js +46 -0
- package/storybook-static/assets/SelectOptionContent-DhtCMwz6.js +1 -0
- package/storybook-static/assets/{SerializableSelect-CsZnvsML.js → SerializableSelect-BDiZo_-M.js} +12 -12
- package/storybook-static/assets/SerializableSelect.stories-DgC6oiRx.js +46 -0
- package/storybook-static/assets/{SingleDateTimeInput-NGciSlUN.js → SingleDateTimeInput-Dx1fvzyr.js} +12 -12
- package/storybook-static/assets/SingleDateTimeInput.stories-NRUE7nnA.js +78 -0
- package/storybook-static/assets/Slider-DJpzPo7f.js +1 -0
- package/storybook-static/assets/{Slider-J-URo5p1.js → Slider-aiFcrSGY.js} +15 -15
- package/storybook-static/assets/Slider.stories-B0YHmFf5.js +77 -0
- package/storybook-static/assets/{SliderInput-D2IjNhE4.js → SliderInput-sOoxvdku.js} +16 -16
- package/storybook-static/assets/SliderInput.stories-BYk1V19Z.js +68 -0
- package/storybook-static/assets/{Sortable-Dut8-sKx.js → Sortable-CuVT40f8.js} +13 -13
- package/storybook-static/assets/Sortable.stories-KSWGoKrN.js +141 -0
- package/storybook-static/assets/{Splitter-Bid56cjA.js → Splitter-EoNOj4XF.js} +11 -11
- package/storybook-static/assets/Splitter.stories-CuAZab2y.js +22 -0
- package/storybook-static/assets/{StateSelect-C0z6JyBe.js → StateSelect-B_M50HZl.js} +10 -10
- package/storybook-static/assets/StateSelect.stories-DQ_MzvL4.js +47 -0
- package/storybook-static/assets/StringToggle.stories-BbRysCKA.js +6 -0
- package/storybook-static/assets/{Switch-Di-v9u1A.js → Switch-DO_tyZIc.js} +10 -10
- package/storybook-static/assets/Switch.stories-BQakMoPp.js +26 -0
- package/storybook-static/assets/{Table-DrsB0gBG.js → Table-CVK5rwmT.js} +22 -22
- package/storybook-static/assets/Table.stories-IZaleOjp.js +122 -0
- package/storybook-static/assets/{Tabs-DkY_hPxX.js → Tabs-DAaWUQb4.js} +15 -15
- package/storybook-static/assets/Tabs.stories-BC8LwG22.js +58 -0
- package/storybook-static/assets/TagInput.stories-CrXD57LV.js +18 -0
- package/storybook-static/assets/Text-cVBcGheg.js +1 -0
- package/storybook-static/assets/{Textarea-CwA3jBjr.js → Textarea-9VdIC6G0.js} +10 -10
- package/storybook-static/assets/Textarea.stories-CEaMwEau.js +27 -0
- package/storybook-static/assets/TimePanel-vx1aOwT4.js +1 -0
- package/storybook-static/assets/TimePanel.stories-BKyiLEgy.js +25 -0
- package/storybook-static/assets/Toggle-CyajrRVE.js +1 -0
- package/storybook-static/assets/{Toggle-Bo4KR3MN.js → Toggle-DrNoVpGe.js} +10 -10
- package/storybook-static/assets/Toggle.stories-CT0mQbdm.js +30 -0
- package/storybook-static/assets/TreeMultiSelect-CtDZ1cXU.js +1 -0
- package/storybook-static/assets/TreeMultiSelect-ag5i_Hw_.js +19 -0
- package/storybook-static/assets/TreeMultiSelect.stories-BxrbKopS.js +35 -0
- package/storybook-static/assets/TreePickerBase-DQzUtuAm.js +22 -0
- package/storybook-static/assets/TreeSelect-BNuJBo9x.js +1 -0
- package/storybook-static/assets/TreeSelect-CL8REXC5.js +16 -0
- package/storybook-static/assets/TreeSelect.stories-CsWGc9X0.js +18 -0
- package/storybook-static/assets/{TreeTable-rbcFU6RL.js → TreeTable-DrIFC4Oh.js} +22 -22
- package/storybook-static/assets/TreeTable.stories-Dq5c4_qe.js +83 -0
- package/storybook-static/assets/WithTooltip-7X4HQR7L-Cakt_JaX.js +9 -0
- package/storybook-static/assets/array-BBSjoTRy-CIRmlF93.js +1 -0
- package/storybook-static/assets/{async-DoYCd2O1.js → async-0-Te_uje.js} +3 -3
- package/storybook-static/assets/axe-Bq-2xuso.js +20 -0
- package/storybook-static/assets/blocks-Dz3dJBcm.js +48 -0
- package/storybook-static/assets/browserAndReact-kZBm3nQe.js +105 -0
- package/storybook-static/assets/check-BMyoSD8F.js +1 -0
- package/storybook-static/assets/chevron-down-QDFtnGcg.js +1 -0
- package/storybook-static/assets/chevron-left-BoVuWD4h.js +1 -0
- package/storybook-static/assets/chevron-right-DS62_o_9.js +1 -0
- package/storybook-static/assets/chunk-242VQQM5-BMWWiybC.js +1 -0
- package/storybook-static/assets/chunk-DRQKCCAG-CqE-Zrl9.js +1 -0
- package/storybook-static/assets/chunk-IMSF75WX-yvVUwIQZ.js +6 -0
- package/storybook-static/assets/chunk-KJHJLCBK-D-yQfkOi.js +1 -0
- package/storybook-static/assets/chunk-QQBDHPVZ-B98qboss.js +1 -0
- package/storybook-static/assets/chunk-W22LQPXL-DDIvKskF.js +18 -0
- package/storybook-static/assets/circle-alert-CXg50Gb0.js +1 -0
- package/storybook-static/assets/circle-check-BPfYNWmz.js +1 -0
- package/storybook-static/assets/components-BejapTpU.js +241 -0
- package/storybook-static/assets/contextMenu-DtXkMNr6.js +2 -0
- package/storybook-static/assets/date-segments-D3HouZ37.js +1 -0
- package/storybook-static/assets/dom-B3G_GtJw.js +1 -0
- package/storybook-static/assets/download-DnZ6jhvY.js +1 -0
- package/storybook-static/assets/error-BZrNlEUO.js +1 -0
- package/storybook-static/assets/file-vPGnhPr-.js +1 -0
- package/storybook-static/assets/filesAndExcel-CXMXtMjq.js +122 -0
- package/storybook-static/assets/floating-ui.react-PN45KvBS.js +1 -0
- package/storybook-static/assets/formatter-L2YTDE3Q-x0raBH34.js +1 -0
- package/storybook-static/assets/formatters--mhLir82-v41eaI4a.js +1 -0
- package/storybook-static/assets/formatters-DGXR8csR.js +291 -0
- package/storybook-static/assets/formatters-runtime-GsS-hTg9.js +384 -0
- package/storybook-static/assets/foundationLib-XrLbqi3r.js +82 -0
- package/storybook-static/assets/hooks-Ddmw7JMF.js +5 -0
- package/storybook-static/assets/iframe-CrnMVMTc.js +1151 -0
- package/storybook-static/assets/iframe-FUHzX0Mr.js +1 -0
- package/storybook-static/assets/info-Dqq5QHG7.js +1 -0
- package/storybook-static/assets/{matchers-JIUQ3HVY-BPS-eazD.js → matchers-JIUQ3HVY-DvR2XErZ.js} +3 -3
- package/storybook-static/assets/media-BycWpjAl.js +1 -0
- package/storybook-static/assets/odata-BaxgzNGj.js +1 -0
- package/storybook-static/assets/odata-service-DnPlNGpU-Bpd4Zh9L.js +3 -0
- package/storybook-static/assets/odataAndTables-OEVW-gFK.js +126 -0
- package/storybook-static/assets/{odataFetchFn-DDErUu7H.js → odataFetchFn-BLWeF0ZQ.js} +3 -3
- package/storybook-static/assets/odataStoryFixtures-BbswaX_5.js +25 -0
- package/storybook-static/assets/{persisted-DphnlPy-.js → persisted-BpFojVXw.js} +3 -3
- package/storybook-static/assets/preload-helper-BHmFeTtP.js +1 -0
- package/storybook-static/assets/pureUtilities-3afQk5ld.js +69 -0
- package/storybook-static/assets/react-18-CgkwBzTo.js +9 -0
- package/storybook-static/assets/react-C21x__mS.js +1 -0
- package/storybook-static/assets/react-CpOcCp9T.js +9 -0
- package/storybook-static/assets/react-CvkUhHUq.js +1 -0
- package/storybook-static/assets/react-dom-2o2phaJG.js +1 -0
- package/storybook-static/assets/react-qN2cStNd.js +1 -0
- package/storybook-static/assets/refresh-cw-B2VU4UNA.js +1 -0
- package/storybook-static/assets/rolldown-runtime-C0FnF6B9.js +1 -0
- package/storybook-static/assets/runtimeAndState-BEFDbOiZ.js +117 -0
- package/storybook-static/assets/settings-2-CLJhjWJl.js +1 -0
- package/storybook-static/assets/sortable-DW_Veba0.js +1 -0
- package/storybook-static/assets/syntaxhighlighter-T5IQBZDB-D0RhvxXU.js +6 -0
- package/storybook-static/assets/theming-mTWhffkp.js +39 -0
- package/storybook-static/assets/trash-2-yLqdtpz8.js +1 -0
- package/storybook-static/assets/treeStoryFixtures-Ci7STpiz.js +1 -0
- package/storybook-static/assets/triangle-alert-wI8Cd8tI.js +1 -0
- package/storybook-static/assets/ui.module-DoMIk8Oc.js +1 -0
- package/storybook-static/assets/uiClasses-CO3Cdv1E.js +1 -0
- package/storybook-static/assets/useFlexClasses-Gn9spXEB.js +1 -0
- package/storybook-static/assets/useODataSelectBase-WnxdcAM4.js +1 -0
- package/storybook-static/assets/useODataTreeData-C7L5TOjl.js +1 -0
- package/storybook-static/assets/usePickerDefaultFilter-DdxyE_i8.js +1 -0
- package/storybook-static/assets/usePickerQuery-CAWYFpCv.js +1 -0
- package/storybook-static/assets/usePickerTriggerController-BRXUlggw.js +1 -0
- package/storybook-static/assets/utils-DUM89eIj.js +1 -0
- package/storybook-static/assets/x-CyFk00QC.js +1 -0
- package/storybook-static/iframe.html +8 -3
- package/storybook-static/index.html +6 -0
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/a11y-3/manager-bundle.js +3 -3
- package/storybook-static/sb-addons/chromatic-com-storybook-1/manager-bundle.js +17 -17
- package/storybook-static/sb-addons/docs-2/manager-bundle.js +16 -1
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +85 -83
- package/storybook-static/sb-addons/vitest-4/manager-bundle.js +1 -1
- package/storybook-static/sb-manager/globals-runtime.js +9939 -7695
- package/storybook-static/sb-manager/runtime.js +16128 -15326
- package/storybook-static/vite-inject-mocker-entry.js +2 -2
- package/dist/chunks/button-CC0Jdx1j.js.map +0 -1
- package/storybook-static/assets/Badge.stories-DwBMjWuT.js +0 -51
- package/storybook-static/assets/Button-Dpi111u7.js +0 -12
- package/storybook-static/assets/Button-nI2z0h4X.css +0 -1
- package/storybook-static/assets/Button.stories-DZmRqHrE.js +0 -75
- package/storybook-static/assets/CheckBox-DHWs_MEe.js +0 -2
- package/storybook-static/assets/CheckBox.module-ezWPE2pa.js +0 -1
- package/storybook-static/assets/CheckBox.stories-ChxWTQwY.js +0 -60
- package/storybook-static/assets/Color-KMSTOMOX-Ct0gfrkd.js +0 -1
- package/storybook-static/assets/ContextMenu.stories-D8QOi68M.js +0 -90
- package/storybook-static/assets/DateInput-aifcbvnl.js +0 -1
- package/storybook-static/assets/DateRangePresetSelect-lWDa-_zo.js +0 -3
- package/storybook-static/assets/DateRangePresetSelect.stories-DyxuSPt4.js +0 -11
- package/storybook-static/assets/Detail.stories-r0AG6eiC.js +0 -44
- package/storybook-static/assets/Dialog.stories-DyLAEjua.js +0 -31
- package/storybook-static/assets/Disclosure.stories-DHFMH6SZ.js +0 -41
- package/storybook-static/assets/DocsRenderer-JROSPFPF-OVZNUiiY.js +0 -2
- package/storybook-static/assets/DropZone.stories-C6iXDzpC.js +0 -44
- package/storybook-static/assets/DropdownMenu-BPIWC5Fe.js +0 -1
- package/storybook-static/assets/ExpandableActionPanel.stories-DeBP2SL6.js +0 -20
- package/storybook-static/assets/Flex-BvUI9OtR.js +0 -3
- package/storybook-static/assets/Flex.stories-DjHfItG6.js +0 -300
- package/storybook-static/assets/ImageCropper.stories-D1ZTKaL2.js +0 -115
- package/storybook-static/assets/ImageRenderer-C_UGYN2n.js +0 -2
- package/storybook-static/assets/ImageRenderer.stories-BRm7cNQQ.js +0 -22
- package/storybook-static/assets/ImageView.stories-DbPfP9Vk.js +0 -9
- package/storybook-static/assets/ImageViewerRuntime-FOJk41Ia.js +0 -51
- package/storybook-static/assets/Input-Cd3vgy0g.js +0 -3
- package/storybook-static/assets/Input.stories-DdEsalmK.js +0 -38
- package/storybook-static/assets/InputDateTime.stories-CWRMF1Uz.js +0 -35
- package/storybook-static/assets/InputFile.stories-DSMEa0Hb.js +0 -36
- package/storybook-static/assets/InputFiles-CL38ESTc.js +0 -1
- package/storybook-static/assets/InputFiles.stories-Baq4MwqA.js +0 -33
- package/storybook-static/assets/InputImage.stories-CosbCY9j.js +0 -51
- package/storybook-static/assets/LayoutPicker.stories-Dyqys3DQ.js +0 -449
- package/storybook-static/assets/Listbox.stories-YIJrMp0t.js +0 -47
- package/storybook-static/assets/Modal.stories-BFDuVpN3.js +0 -180
- package/storybook-static/assets/MultiSelect-DY6u4L61.js +0 -2
- package/storybook-static/assets/MultiSelect.stories-bYuh54Fu.js +0 -29
- package/storybook-static/assets/NotificationsHost.stories-DYvkJ2cU.js +0 -25
- package/storybook-static/assets/ODataMultiSelect-dD4o0805.js +0 -1
- package/storybook-static/assets/ODataMultiSelect.stories-BS2NR6_9.js +0 -73
- package/storybook-static/assets/ODataSelect-BggbU-2c.js +0 -1
- package/storybook-static/assets/ODataSelect.stories-vTrv4d9z.js +0 -73
- package/storybook-static/assets/ODataTreeMultiSelect-CMhyGXwM.js +0 -19
- package/storybook-static/assets/ODataTreeMultiSelect.stories-BZ-NN4dI.js +0 -30
- package/storybook-static/assets/ODataTreeSelect-mJe6gYMX.js +0 -17
- package/storybook-static/assets/ODataTreeSelect.stories-DhSjFMeQ.js +0 -24
- package/storybook-static/assets/PeriodSelect.stories-CZUB8olq.js +0 -64
- package/storybook-static/assets/Popover.stories-DpZzhK2O.js +0 -69
- package/storybook-static/assets/PresetRangeDateInput.stories-qn-B1IOD.js +0 -15
- package/storybook-static/assets/RadioButton.stories-DwNfCMGS.js +0 -36
- package/storybook-static/assets/RadioGroup-DE_bpBiS.js +0 -1
- package/storybook-static/assets/RadioGroup.stories-DVqgV_4W.js +0 -42
- package/storybook-static/assets/Select-CelCWR4u.js +0 -12
- package/storybook-static/assets/Select.stories-Cgw1rh4h.js +0 -46
- package/storybook-static/assets/SelectOptionContent-Bjy9USsA.js +0 -1
- package/storybook-static/assets/SerializableSelect-D8YCGkPD.js +0 -4
- package/storybook-static/assets/SerializableSelect.stories-R2stgrdq.js +0 -43
- package/storybook-static/assets/SingleDateTimeInput.stories-CBsxKb4w.js +0 -78
- package/storybook-static/assets/Slider.stories-BCpR-FX3.js +0 -77
- package/storybook-static/assets/SliderInput.stories-56IQYe6a.js +0 -67
- package/storybook-static/assets/Sortable.stories-DUCcvgKr.js +0 -141
- package/storybook-static/assets/Splitter.stories-D4odwrXg.js +0 -22
- package/storybook-static/assets/StateSelect.stories-DXdcVPG0.js +0 -47
- package/storybook-static/assets/StringToggle.stories-C8RhgIJd.js +0 -6
- package/storybook-static/assets/Switch.stories-Cfkb4wPd.js +0 -26
- package/storybook-static/assets/Table.stories-C24_nZ5H.js +0 -122
- package/storybook-static/assets/Tabs.stories-CicNE4cs.js +0 -58
- package/storybook-static/assets/TagInput.stories-C3766Yv0.js +0 -18
- package/storybook-static/assets/Textarea.stories-CrRB7fzB.js +0 -27
- package/storybook-static/assets/TimePanel-DoveAQla.js +0 -1
- package/storybook-static/assets/TimePanel.stories-D2vUL6s0.js +0 -25
- package/storybook-static/assets/Toggle-ClOUAjaj.js +0 -1
- package/storybook-static/assets/Toggle.stories-Dnt25rG3.js +0 -30
- package/storybook-static/assets/TreeMultiSelect-CPtnpliv.js +0 -19
- package/storybook-static/assets/TreeMultiSelect-DE3AQOZl.js +0 -1
- package/storybook-static/assets/TreeMultiSelect.stories-BVo2A9HK.js +0 -35
- package/storybook-static/assets/TreePickerBase-DiMmn5I3.js +0 -22
- package/storybook-static/assets/TreeSelect-Cs_tb930.js +0 -1
- package/storybook-static/assets/TreeSelect-JTI9tQ4C.js +0 -16
- package/storybook-static/assets/TreeSelect.stories-C6Gm2YfT.js +0 -18
- package/storybook-static/assets/TreeTable.stories-CXJMSxQu.js +0 -83
- package/storybook-static/assets/WithTooltip-7X4HQR7L-DVJE2Dqb.js +0 -9
- package/storybook-static/assets/axe-GLfyhAYL.js +0 -20
- package/storybook-static/assets/base-table-BNO0lnTL.css +0 -1
- package/storybook-static/assets/base-table-_WBb2IZM.js +0 -18
- package/storybook-static/assets/blocks-kCueRzKM.js +0 -285
- package/storybook-static/assets/button-BfP43NV5.js +0 -1
- package/storybook-static/assets/check-box-jgZW0_tB.js +0 -1
- package/storybook-static/assets/chunk-242VQQM5-Dtm7LRbQ.js +0 -1
- package/storybook-static/assets/chunk-3LY4VQVK-DgbtId2R.js +0 -6
- package/storybook-static/assets/chunk-LITCR56V-C-pEySCh.js +0 -18
- package/storybook-static/assets/contextMenu-BY8W9e2R.js +0 -2
- package/storybook-static/assets/date-CuKkMWak.js +0 -461
- package/storybook-static/assets/date-segments-CzU9k5bl.js +0 -1
- package/storybook-static/assets/error-BkkZrYYA.js +0 -1
- package/storybook-static/assets/file-CfhfQiKL.js +0 -291
- package/storybook-static/assets/file-hArYcyES.js +0 -1
- package/storybook-static/assets/flex-DYnuC3Jl.js +0 -1
- package/storybook-static/assets/floating-ui.react-fJcp4ywX.js +0 -1
- package/storybook-static/assets/formatter-L2YTDE3Q-CQmzS1Ku.js +0 -1
- package/storybook-static/assets/formatters-Bt3ef0VX.js +0 -3
- package/storybook-static/assets/formulas-C5ifYPhi.js +0 -2
- package/storybook-static/assets/grid-DLQc0tY5.js +0 -1
- package/storybook-static/assets/hooks-COY2kUuX.js +0 -5
- package/storybook-static/assets/iframe-CqfP7aF1.js +0 -1119
- package/storybook-static/assets/input-DNF627Va.js +0 -1
- package/storybook-static/assets/mdx-react-shim-4LHuzuKu.js +0 -1
- package/storybook-static/assets/media-CbWC9XZs.js +0 -1
- package/storybook-static/assets/misc-BElIqBdV.css +0 -1
- package/storybook-static/assets/misc-D0Mkvmw8.js +0 -5
- package/storybook-static/assets/notifications-CRagNLgf.js +0 -1
- package/storybook-static/assets/number-Da4Ulq9E.js +0 -2
- package/storybook-static/assets/odata-DUcjBQqp.js +0 -1
- package/storybook-static/assets/odata-service-Rl9UYgzA.js +0 -1
- package/storybook-static/assets/odataStoryFixtures-BY3DnLbL.js +0 -25
- package/storybook-static/assets/picker-D2lWKGk-.js +0 -2
- package/storybook-static/assets/popover-BiQHI7Wi.css +0 -1
- package/storybook-static/assets/popover-D7McA5RG.js +0 -2
- package/storybook-static/assets/preload-helper-B45gAKPr.js +0 -1
- package/storybook-static/assets/preset-select-FySDZYno.js +0 -5
- package/storybook-static/assets/pwa-QKsIz2U4.js +0 -640
- package/storybook-static/assets/queryClient-Cf_KN496.js +0 -567
- package/storybook-static/assets/react-18-Dyh2Pzaa.js +0 -9
- package/storybook-static/assets/react-BonvwE5R.js +0 -9
- package/storybook-static/assets/react-dom--kz57wTp.js +0 -1
- package/storybook-static/assets/select-DsPUjSXp.js +0 -1
- package/storybook-static/assets/slider-D93-bn3E.js +0 -2
- package/storybook-static/assets/sortable-B2Ihqi-W.js +0 -1
- package/storybook-static/assets/syntaxhighlighter-RTCFPKCB-Bh8qQ71X.js +0 -6
- package/storybook-static/assets/text-BCUxHWs4.js +0 -4
- package/storybook-static/assets/theming-KsQ_vHzM.js +0 -39
- package/storybook-static/assets/treeStoryFixtures-Y_nnjz0_.js +0 -1
- package/storybook-static/assets/ui-D39u6Dhv.js +0 -1
- package/storybook-static/assets/ui.module-wFHXkJzp.js +0 -1
- package/storybook-static/assets/uiClasses-CaHp0EWd.js +0 -1
- package/storybook-static/assets/useODataSelectBase-BWIM1yqH.js +0 -1
- package/storybook-static/assets/useODataTreeData-CnmOnxqb.js +0 -1
- package/storybook-static/assets/utils-BfYZ9Iv_.js +0 -1
- package/storybook-static/assets/valueState-CV4TgbM9.js +0 -277
- /package/storybook-static/assets/{DropdownMenu-BgzIzwzM.css → ContextMenu-BgzIzwzM.css} +0 -0
- /package/storybook-static/assets/{Grid-K9R_IHaw.css → GridContainer-K9R_IHaw.css} +0 -0
- /package/storybook-static/assets/{InputFiles-ByK52qUe.css → InputFilesList-ByK52qUe.css} +0 -0
- /package/storybook-static/assets/{MultiSelect-BoIwmje6.css → MultiSelectToken-BoIwmje6.css} +0 -0
- /package/storybook-static/assets/{slider-DMDFRH6B.css → Slider-DMDFRH6B.css} +0 -0
- /package/storybook-static/assets/{Flex-IXK2se1Y.css → useFlexClasses-IXK2se1Y.css} +0 -0
- /package/storybook-static/assets/{picker-DzBkX15M.css → usePickerTriggerController-DzBkX15M.css} +0 -0
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t}from"./preload-helper-B45gAKPr.js";import{pn as n,t as r}from"./iframe-CqfP7aF1.js";import{n as i,t as a}from"./Flex-BvUI9OtR.js";var o=e({AlignItems:()=>g,BasicColumn:()=>p,BasicRow:()=>f,Directions:()=>m,FlexItems:()=>y,Gaps:()=>v,InlineFlex:()=>x,JustifyContent:()=>h,Predefined:()=>b,RealWorld:()=>S,Wrapping:()=>_,__namedExportsOrder:()=>C,default:()=>d}),s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w=t((()=>{n(),i(),s=r(),c={container:{border:`2px dashed var(--border-0)`,padding:`2em`,marginBlock:`1em`},item:{padding:`16px`,textAlign:`center`,fontWeight:`bold`,color:`white`,minHeight:`5em`,minWidth:`10em`,display:`flex`,alignItems:`center`,justifyContent:`center`},itemColors:[`#ff6b6b`,`#4ecdc4`,`#45b7d1`,`#96ceb4`,`#feca57`,`#ff9ff3`]},l=e=>c.itemColors[e%c.itemColors.length],u=({children:e,index:t=0})=>(0,s.jsx)(a.Item,{style:{...c.item,backgroundColor:l(t)},children:e}),d={title:`Shared/Layout/Flex`,component:a.Container,parameters:{layout:`padded`}},f={render:e=>(0,s.jsx)(a.Container,{...e,style:c.container}),args:{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u,{index:0,children:`Item 1`}),(0,s.jsx)(u,{index:1,children:`Item 2`}),(0,s.jsx)(u,{index:2,children:`Item 3`})]}),row:!0}},p={render:e=>(0,s.jsx)(a.Container,{...e,style:c.container}),args:{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u,{index:0,children:`Header`}),(0,s.jsx)(u,{index:1,children:`Content`}),(0,s.jsx)(u,{index:2,children:`Footer`})]}),column:!0}},m={render:()=>(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`h3`,{children:`Row (default)`}),(0,s.jsxs)(a.Container,{row:!0,style:c.container,children:[(0,s.jsx)(u,{index:0,children:`1`}),(0,s.jsx)(u,{index:1,children:`2`}),(0,s.jsx)(u,{index:2,children:`3`})]}),(0,s.jsx)(`h3`,{children:`Row Reverse`}),(0,s.jsxs)(a.Container,{rowReverse:!0,style:c.container,children:[(0,s.jsx)(u,{index:0,children:`1`}),(0,s.jsx)(u,{index:1,children:`2`}),(0,s.jsx)(u,{index:2,children:`3`})]}),(0,s.jsx)(`h3`,{children:`Column`}),(0,s.jsxs)(a.Container,{column:!0,style:c.container,children:[(0,s.jsx)(u,{index:0,children:`1`}),(0,s.jsx)(u,{index:1,children:`2`}),(0,s.jsx)(u,{index:2,children:`3`})]}),(0,s.jsx)(`h3`,{children:`Column Reverse`}),(0,s.jsxs)(a.Container,{columnReverse:!0,style:c.container,children:[(0,s.jsx)(u,{index:0,children:`1`}),(0,s.jsx)(u,{index:1,children:`2`}),(0,s.jsx)(u,{index:2,children:`3`})]})]}),args:{children:void 0}},h={render:()=>(0,s.jsx)(`div`,{children:[`start`,`center`,`end`,`between`,`around`,`evenly`].map(e=>(0,s.jsxs)(`div`,{children:[(0,s.jsxs)(`h3`,{children:[`Justify: `,e]}),(0,s.jsxs)(a.Container,{row:!0,justify:e,style:c.container,children:[(0,s.jsx)(u,{index:0,children:`Item 1`}),(0,s.jsx)(u,{index:1,children:`Item 2`}),(0,s.jsx)(u,{index:2,children:`Item 3`})]})]},e))}),args:{children:void 0}},g={render:()=>(0,s.jsx)(`div`,{children:[`start`,`center`,`end`,`stretch`,`baseline`].map(e=>(0,s.jsxs)(`div`,{children:[(0,s.jsxs)(`h3`,{children:[`Align: `,e]}),(0,s.jsxs)(a.Container,{row:!0,align:e,style:{...c.container,height:`120px`},children:[(0,s.jsx)(u,{index:0,children:(0,s.jsx)(`div`,{children:`Short`})}),(0,s.jsx)(u,{index:1,children:(0,s.jsx)(`div`,{style:{padding:`40px`},children:`Tall`})}),(0,s.jsx)(u,{index:2,children:(0,s.jsx)(`div`,{style:{padding:`24px`},children:`Medium`})})]})]},e))}),args:{children:void 0}},_={render:()=>(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`h3`,{children:`No Wrap (default)`}),(0,s.jsx)(a.Container,{row:!0,nowrap:!0,style:c.container,children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,s.jsxs)(u,{index:e,children:[`Item `,e]},e))}),(0,s.jsx)(`h3`,{children:`Wrap`}),(0,s.jsx)(a.Container,{row:!0,wrap:!0,style:c.container,children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,s.jsxs)(u,{index:e,children:[`Item `,e]},e))}),(0,s.jsx)(`h3`,{children:`Wrap Reverse`}),(0,s.jsx)(a.Container,{row:!0,wrapReverse:!0,style:c.container,children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,s.jsxs)(u,{index:e,children:[`Item `,e]},e))})]}),args:{children:void 0}},v={render:()=>(0,s.jsxs)(`div`,{children:[[`xs`,`sm`,`md`,`lg`,`xl`].map(e=>(0,s.jsxs)(`div`,{children:[(0,s.jsxs)(`h3`,{children:[`Gap: `,e]}),(0,s.jsx)(a.Container,{row:!0,wrap:!0,gap:e,style:c.container,children:[1,2,3,4,5,6].map(e=>(0,s.jsxs)(u,{index:e,children:[`Item `,e]},e))})]},e)),(0,s.jsx)(`h3`,{children:`Different Row and Column Gaps`}),(0,s.jsx)(a.Container,{row:!0,wrap:!0,gapRow:`lg`,gapColumn:`sm`,style:c.container,children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,s.jsxs)(u,{index:e,children:[`Item `,e]},e))})]}),args:{children:void 0}},y={render:()=>(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`h3`,{children:`Grow Properties`}),(0,s.jsxs)(a.Container,{row:!0,style:c.container,children:[(0,s.jsx)(u,{index:0,children:`Default`}),(0,s.jsx)(a.Item,{grow:!0,children:(0,s.jsx)(`div`,{style:{...c.item,backgroundColor:l(1)},children:`Grow`})}),(0,s.jsx)(u,{index:2,children:`Default`})]}),(0,s.jsx)(`h3`,{children:`Shrink Properties`}),(0,s.jsxs)(a.Container,{row:!0,style:{...c.container,width:`300px`},children:[(0,s.jsx)(a.Item,{shrink:!1,children:(0,s.jsx)(`div`,{style:{...c.item,backgroundColor:l(0),width:`150px`},children:`No Shrink`})}),(0,s.jsx)(a.Item,{children:(0,s.jsx)(`div`,{style:{...c.item,backgroundColor:l(1),width:`150px`},children:`Shrink (default)`})})]}),(0,s.jsx)(`h3`,{children:`Composite Classes`}),(0,s.jsxs)(a.Container,{row:!0,style:c.container,children:[(0,s.jsx)(a.Item,{flex0:!0,children:(0,s.jsx)(`div`,{style:{...c.item,backgroundColor:l(0)},children:`flex0`})}),(0,s.jsx)(a.Item,{flex1:!0,children:(0,s.jsx)(`div`,{style:{...c.item,backgroundColor:l(1)},children:`flex1`})}),(0,s.jsx)(a.Item,{flex0:!0,children:(0,s.jsx)(`div`,{style:{...c.item,backgroundColor:l(2)},children:`flex0`})})]})]}),args:{children:void 0}},b={render:()=>(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`h3`,{children:`Center`}),(0,s.jsx)(a.Predefined,{variant:`center`,style:{...c.container,height:`100px`},children:(0,s.jsx)(u,{index:0,children:`Centered Content`})}),(0,s.jsx)(`h3`,{children:`Center Between`}),(0,s.jsxs)(a.Predefined,{variant:`centerBetween`,style:c.container,children:[(0,s.jsx)(u,{index:0,children:`Left`}),(0,s.jsx)(u,{index:1,children:`Right`})]})]}),args:{children:void 0}},x={render:()=>(0,s.jsxs)(`div`,{children:[(0,s.jsxs)(`p`,{children:[`This is text with`,(0,s.jsxs)(a.Container,{inline:!0,align:`center`,gap:`sm`,style:{margin:`0 8px`},children:[(0,s.jsx)(u,{index:0,children:`inline`}),(0,s.jsx)(u,{index:1,children:`flex`})]}),`elements inside.`]}),(0,s.jsxs)(`p`,{children:[`Another example with`,(0,s.jsxs)(a.Container,{inline:!0,column:!0,gap:`xs`,style:{margin:`0 8px`},children:[(0,s.jsx)(u,{index:2,children:`vertical`}),(0,s.jsx)(u,{index:3,children:`inline`})]}),`flex.`]})]}),args:{children:void 0}},S={render:()=>(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`h3`,{children:`Navigation Bar`}),(0,s.jsxs)(a.Predefined,{variant:`centerBetween`,style:c.container,children:[(0,s.jsxs)(a.Container,{row:!0,align:`center`,gap:`md`,children:[(0,s.jsx)(u,{index:0,children:`Logo`}),(0,s.jsx)(u,{index:1,children:`Home`}),(0,s.jsx)(u,{index:2,children:`About`}),(0,s.jsx)(u,{index:3,children:`Contact`})]}),(0,s.jsx)(u,{index:4,children:`Login`})]}),(0,s.jsx)(`h3`,{children:`Card Layout`}),(0,s.jsx)(a.Container,{row:!0,wrap:!0,gap:`lg`,style:c.container,children:[1,2,3,4].map(e=>(0,s.jsx)(a.Item,{flex1:!0,style:{minWidth:`200px`},children:(0,s.jsxs)(`div`,{style:{border:`1px solid #ddd`,borderRadius:`8px`,padding:`16px`,textAlign:`center`,backgroundColor:l(e)},children:[(0,s.jsxs)(`h4`,{children:[`Card `,e]}),(0,s.jsx)(`p`,{children:`Card content goes here`})]})},e))}),(0,s.jsx)(`h3`,{children:`Form Layout`}),(0,s.jsxs)(a.Container,{column:!0,gap:`md`,style:c.container,children:[(0,s.jsxs)(a.Container,{row:!0,gap:`md`,children:[(0,s.jsx)(a.Item,{flex1:!0,children:(0,s.jsx)(u,{index:0,children:`First Name`})}),(0,s.jsx)(a.Item,{flex1:!0,children:(0,s.jsx)(u,{index:1,children:`Last Name`})})]}),(0,s.jsx)(u,{index:2,children:`Email`}),(0,s.jsx)(u,{index:3,children:`Message`})]})]}),args:{children:void 0}},f.parameters={...f.parameters,docs:{...f.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
render: args => <Flex.Container {...args} style={demoStyles.container} />,
|
|
3
|
-
args: {
|
|
4
|
-
children: <>
|
|
5
|
-
<DemoItem index={0}>Item 1</DemoItem>
|
|
6
|
-
<DemoItem index={1}>Item 2</DemoItem>
|
|
7
|
-
<DemoItem index={2}>Item 3</DemoItem>
|
|
8
|
-
</>,
|
|
9
|
-
row: true
|
|
10
|
-
}
|
|
11
|
-
}`,...f.parameters?.docs?.source}}},p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
|
|
12
|
-
render: args => <Flex.Container {...args} style={demoStyles.container} />,
|
|
13
|
-
args: {
|
|
14
|
-
children: <>
|
|
15
|
-
<DemoItem index={0}>Header</DemoItem>
|
|
16
|
-
<DemoItem index={1}>Content</DemoItem>
|
|
17
|
-
<DemoItem index={2}>Footer</DemoItem>
|
|
18
|
-
</>,
|
|
19
|
-
column: true
|
|
20
|
-
}
|
|
21
|
-
}`,...p.parameters?.docs?.source}}},m.parameters={...m.parameters,docs:{...m.parameters?.docs,source:{originalSource:`{
|
|
22
|
-
render: () => <div>
|
|
23
|
-
<h3>Row (default)</h3>
|
|
24
|
-
<Flex.Container row style={demoStyles.container}>
|
|
25
|
-
<DemoItem index={0}>1</DemoItem>
|
|
26
|
-
<DemoItem index={1}>2</DemoItem>
|
|
27
|
-
<DemoItem index={2}>3</DemoItem>
|
|
28
|
-
</Flex.Container>
|
|
29
|
-
|
|
30
|
-
<h3>Row Reverse</h3>
|
|
31
|
-
<Flex.Container rowReverse style={demoStyles.container}>
|
|
32
|
-
<DemoItem index={0}>1</DemoItem>
|
|
33
|
-
<DemoItem index={1}>2</DemoItem>
|
|
34
|
-
<DemoItem index={2}>3</DemoItem>
|
|
35
|
-
</Flex.Container>
|
|
36
|
-
|
|
37
|
-
<h3>Column</h3>
|
|
38
|
-
<Flex.Container column style={demoStyles.container}>
|
|
39
|
-
<DemoItem index={0}>1</DemoItem>
|
|
40
|
-
<DemoItem index={1}>2</DemoItem>
|
|
41
|
-
<DemoItem index={2}>3</DemoItem>
|
|
42
|
-
</Flex.Container>
|
|
43
|
-
|
|
44
|
-
<h3>Column Reverse</h3>
|
|
45
|
-
<Flex.Container columnReverse style={demoStyles.container}>
|
|
46
|
-
<DemoItem index={0}>1</DemoItem>
|
|
47
|
-
<DemoItem index={1}>2</DemoItem>
|
|
48
|
-
<DemoItem index={2}>3</DemoItem>
|
|
49
|
-
</Flex.Container>
|
|
50
|
-
</div>,
|
|
51
|
-
args: {
|
|
52
|
-
children: undefined
|
|
53
|
-
}
|
|
54
|
-
}`,...m.parameters?.docs?.source}}},h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:`{
|
|
55
|
-
render: () => <div>
|
|
56
|
-
{(["start", "center", "end", "between", "around", "evenly"] as const).map(justify => <div key={justify}>
|
|
57
|
-
<h3>Justify: {justify}</h3>
|
|
58
|
-
<Flex.Container row justify={justify} style={demoStyles.container}>
|
|
59
|
-
<DemoItem index={0}>Item 1</DemoItem>
|
|
60
|
-
<DemoItem index={1}>Item 2</DemoItem>
|
|
61
|
-
<DemoItem index={2}>Item 3</DemoItem>
|
|
62
|
-
</Flex.Container>
|
|
63
|
-
</div>)}
|
|
64
|
-
</div>,
|
|
65
|
-
args: {
|
|
66
|
-
children: undefined
|
|
67
|
-
}
|
|
68
|
-
}`,...h.parameters?.docs?.source}}},g.parameters={...g.parameters,docs:{...g.parameters?.docs,source:{originalSource:`{
|
|
69
|
-
render: () => <div>
|
|
70
|
-
{(["start", "center", "end", "stretch", "baseline"] as const).map(align => <div key={align}>
|
|
71
|
-
<h3>Align: {align}</h3>
|
|
72
|
-
<Flex.Container row align={align} style={{
|
|
73
|
-
...demoStyles.container,
|
|
74
|
-
height: "120px"
|
|
75
|
-
}}>
|
|
76
|
-
<DemoItem index={0}>
|
|
77
|
-
<div>Short</div>
|
|
78
|
-
</DemoItem>
|
|
79
|
-
<DemoItem index={1}>
|
|
80
|
-
<div style={{
|
|
81
|
-
padding: "40px"
|
|
82
|
-
}}>Tall</div>
|
|
83
|
-
</DemoItem>
|
|
84
|
-
<DemoItem index={2}>
|
|
85
|
-
<div style={{
|
|
86
|
-
padding: "24px"
|
|
87
|
-
}}>Medium</div>
|
|
88
|
-
</DemoItem>
|
|
89
|
-
</Flex.Container>
|
|
90
|
-
</div>)}
|
|
91
|
-
</div>,
|
|
92
|
-
args: {
|
|
93
|
-
children: undefined
|
|
94
|
-
}
|
|
95
|
-
}`,...g.parameters?.docs?.source}}},_.parameters={..._.parameters,docs:{..._.parameters?.docs,source:{originalSource:`{
|
|
96
|
-
render: () => <div>
|
|
97
|
-
<h3>No Wrap (default)</h3>
|
|
98
|
-
<Flex.Container row nowrap style={demoStyles.container}>
|
|
99
|
-
{[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(i => <DemoItem key={i} index={i}>
|
|
100
|
-
Item {i}
|
|
101
|
-
</DemoItem>)}
|
|
102
|
-
</Flex.Container>
|
|
103
|
-
|
|
104
|
-
<h3>Wrap</h3>
|
|
105
|
-
<Flex.Container row wrap style={demoStyles.container}>
|
|
106
|
-
{[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(i => <DemoItem key={i} index={i}>
|
|
107
|
-
Item {i}
|
|
108
|
-
</DemoItem>)}
|
|
109
|
-
</Flex.Container>
|
|
110
|
-
|
|
111
|
-
<h3>Wrap Reverse</h3>
|
|
112
|
-
<Flex.Container row wrapReverse style={demoStyles.container}>
|
|
113
|
-
{[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(i => <DemoItem key={i} index={i}>
|
|
114
|
-
Item {i}
|
|
115
|
-
</DemoItem>)}
|
|
116
|
-
</Flex.Container>
|
|
117
|
-
</div>,
|
|
118
|
-
args: {
|
|
119
|
-
children: undefined
|
|
120
|
-
}
|
|
121
|
-
}`,..._.parameters?.docs?.source}}},v.parameters={...v.parameters,docs:{...v.parameters?.docs,source:{originalSource:`{
|
|
122
|
-
render: () => <div>
|
|
123
|
-
{(["xs", "sm", "md", "lg", "xl"] as const).map(gap => <div key={gap}>
|
|
124
|
-
<h3>Gap: {gap}</h3>
|
|
125
|
-
<Flex.Container row wrap gap={gap} style={demoStyles.container}>
|
|
126
|
-
{[1, 2, 3, 4, 5, 6].map(i => <DemoItem key={i} index={i}>
|
|
127
|
-
Item {i}
|
|
128
|
-
</DemoItem>)}
|
|
129
|
-
</Flex.Container>
|
|
130
|
-
</div>)}
|
|
131
|
-
|
|
132
|
-
<h3>Different Row and Column Gaps</h3>
|
|
133
|
-
<Flex.Container row wrap gapRow="lg" gapColumn="sm" style={demoStyles.container}>
|
|
134
|
-
{[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(i => <DemoItem key={i} index={i}>
|
|
135
|
-
Item {i}
|
|
136
|
-
</DemoItem>)}
|
|
137
|
-
</Flex.Container>
|
|
138
|
-
</div>,
|
|
139
|
-
args: {
|
|
140
|
-
children: undefined
|
|
141
|
-
}
|
|
142
|
-
}`,...v.parameters?.docs?.source}}},y.parameters={...y.parameters,docs:{...y.parameters?.docs,source:{originalSource:`{
|
|
143
|
-
render: () => <div>
|
|
144
|
-
<h3>Grow Properties</h3>
|
|
145
|
-
<Flex.Container row style={demoStyles.container}>
|
|
146
|
-
<DemoItem index={0}>Default</DemoItem>
|
|
147
|
-
<Flex.Item grow>
|
|
148
|
-
<div style={{
|
|
149
|
-
...demoStyles.item,
|
|
150
|
-
backgroundColor: getItemColor(1)
|
|
151
|
-
}}>Grow</div>
|
|
152
|
-
</Flex.Item>
|
|
153
|
-
<DemoItem index={2}>Default</DemoItem>
|
|
154
|
-
</Flex.Container>
|
|
155
|
-
|
|
156
|
-
<h3>Shrink Properties</h3>
|
|
157
|
-
<Flex.Container row style={{
|
|
158
|
-
...demoStyles.container,
|
|
159
|
-
width: "300px"
|
|
160
|
-
}}>
|
|
161
|
-
<Flex.Item shrink={false}>
|
|
162
|
-
<div style={{
|
|
163
|
-
...demoStyles.item,
|
|
164
|
-
backgroundColor: getItemColor(0),
|
|
165
|
-
width: "150px"
|
|
166
|
-
}}>
|
|
167
|
-
No Shrink
|
|
168
|
-
</div>
|
|
169
|
-
</Flex.Item>
|
|
170
|
-
<Flex.Item>
|
|
171
|
-
<div style={{
|
|
172
|
-
...demoStyles.item,
|
|
173
|
-
backgroundColor: getItemColor(1),
|
|
174
|
-
width: "150px"
|
|
175
|
-
}}>
|
|
176
|
-
Shrink (default)
|
|
177
|
-
</div>
|
|
178
|
-
</Flex.Item>
|
|
179
|
-
</Flex.Container>
|
|
180
|
-
|
|
181
|
-
<h3>Composite Classes</h3>
|
|
182
|
-
<Flex.Container row style={demoStyles.container}>
|
|
183
|
-
<Flex.Item flex0>
|
|
184
|
-
<div style={{
|
|
185
|
-
...demoStyles.item,
|
|
186
|
-
backgroundColor: getItemColor(0)
|
|
187
|
-
}}>flex0</div>
|
|
188
|
-
</Flex.Item>
|
|
189
|
-
<Flex.Item flex1>
|
|
190
|
-
<div style={{
|
|
191
|
-
...demoStyles.item,
|
|
192
|
-
backgroundColor: getItemColor(1)
|
|
193
|
-
}}>flex1</div>
|
|
194
|
-
</Flex.Item>
|
|
195
|
-
<Flex.Item flex0>
|
|
196
|
-
<div style={{
|
|
197
|
-
...demoStyles.item,
|
|
198
|
-
backgroundColor: getItemColor(2)
|
|
199
|
-
}}>flex0</div>
|
|
200
|
-
</Flex.Item>
|
|
201
|
-
</Flex.Container>
|
|
202
|
-
</div>,
|
|
203
|
-
args: {
|
|
204
|
-
children: undefined
|
|
205
|
-
}
|
|
206
|
-
}`,...y.parameters?.docs?.source}}},b.parameters={...b.parameters,docs:{...b.parameters?.docs,source:{originalSource:`{
|
|
207
|
-
render: () => <div>
|
|
208
|
-
<h3>Center</h3>
|
|
209
|
-
<Flex.Predefined variant="center" style={{
|
|
210
|
-
...demoStyles.container,
|
|
211
|
-
height: "100px"
|
|
212
|
-
}}>
|
|
213
|
-
<DemoItem index={0}>Centered Content</DemoItem>
|
|
214
|
-
</Flex.Predefined>
|
|
215
|
-
|
|
216
|
-
<h3>Center Between</h3>
|
|
217
|
-
<Flex.Predefined variant="centerBetween" style={demoStyles.container}>
|
|
218
|
-
<DemoItem index={0}>Left</DemoItem>
|
|
219
|
-
<DemoItem index={1}>Right</DemoItem>
|
|
220
|
-
</Flex.Predefined>
|
|
221
|
-
</div>,
|
|
222
|
-
args: {
|
|
223
|
-
children: undefined
|
|
224
|
-
}
|
|
225
|
-
}`,...b.parameters?.docs?.source}}},x.parameters={...x.parameters,docs:{...x.parameters?.docs,source:{originalSource:`{
|
|
226
|
-
render: () => <div>
|
|
227
|
-
<p>
|
|
228
|
-
This is text with
|
|
229
|
-
<Flex.Container inline align="center" gap="sm" style={{
|
|
230
|
-
margin: "0 8px"
|
|
231
|
-
}}>
|
|
232
|
-
<DemoItem index={0}>inline</DemoItem>
|
|
233
|
-
<DemoItem index={1}>flex</DemoItem>
|
|
234
|
-
</Flex.Container>
|
|
235
|
-
elements inside.
|
|
236
|
-
</p>
|
|
237
|
-
|
|
238
|
-
<p>
|
|
239
|
-
Another example with
|
|
240
|
-
<Flex.Container inline column gap="xs" style={{
|
|
241
|
-
margin: "0 8px"
|
|
242
|
-
}}>
|
|
243
|
-
<DemoItem index={2}>vertical</DemoItem>
|
|
244
|
-
<DemoItem index={3}>inline</DemoItem>
|
|
245
|
-
</Flex.Container>
|
|
246
|
-
flex.
|
|
247
|
-
</p>
|
|
248
|
-
</div>,
|
|
249
|
-
args: {
|
|
250
|
-
children: undefined
|
|
251
|
-
}
|
|
252
|
-
}`,...x.parameters?.docs?.source}}},S.parameters={...S.parameters,docs:{...S.parameters?.docs,source:{originalSource:`{
|
|
253
|
-
render: () => <div>
|
|
254
|
-
<h3>Navigation Bar</h3>
|
|
255
|
-
<Flex.Predefined variant="centerBetween" style={demoStyles.container}>
|
|
256
|
-
<Flex.Container row align="center" gap="md">
|
|
257
|
-
<DemoItem index={0}>Logo</DemoItem>
|
|
258
|
-
<DemoItem index={1}>Home</DemoItem>
|
|
259
|
-
<DemoItem index={2}>About</DemoItem>
|
|
260
|
-
<DemoItem index={3}>Contact</DemoItem>
|
|
261
|
-
</Flex.Container>
|
|
262
|
-
<DemoItem index={4}>Login</DemoItem>
|
|
263
|
-
</Flex.Predefined>
|
|
264
|
-
|
|
265
|
-
<h3>Card Layout</h3>
|
|
266
|
-
<Flex.Container row wrap gap="lg" style={demoStyles.container}>
|
|
267
|
-
{[1, 2, 3, 4].map(i => <Flex.Item key={i} flex1 style={{
|
|
268
|
-
minWidth: "200px"
|
|
269
|
-
}}>
|
|
270
|
-
<div style={{
|
|
271
|
-
border: "1px solid #ddd",
|
|
272
|
-
borderRadius: "8px",
|
|
273
|
-
padding: "16px",
|
|
274
|
-
textAlign: "center",
|
|
275
|
-
backgroundColor: getItemColor(i)
|
|
276
|
-
}}>
|
|
277
|
-
<h4>Card {i}</h4>
|
|
278
|
-
<p>Card content goes here</p>
|
|
279
|
-
</div>
|
|
280
|
-
</Flex.Item>)}
|
|
281
|
-
</Flex.Container>
|
|
282
|
-
|
|
283
|
-
<h3>Form Layout</h3>
|
|
284
|
-
<Flex.Container column gap="md" style={demoStyles.container}>
|
|
285
|
-
<Flex.Container row gap="md">
|
|
286
|
-
<Flex.Item flex1>
|
|
287
|
-
<DemoItem index={0}>First Name</DemoItem>
|
|
288
|
-
</Flex.Item>
|
|
289
|
-
<Flex.Item flex1>
|
|
290
|
-
<DemoItem index={1}>Last Name</DemoItem>
|
|
291
|
-
</Flex.Item>
|
|
292
|
-
</Flex.Container>
|
|
293
|
-
<DemoItem index={2}>Email</DemoItem>
|
|
294
|
-
<DemoItem index={3}>Message</DemoItem>
|
|
295
|
-
</Flex.Container>
|
|
296
|
-
</div>,
|
|
297
|
-
args: {
|
|
298
|
-
children: undefined
|
|
299
|
-
}
|
|
300
|
-
}`,...S.parameters?.docs?.source}}},C=[`BasicRow`,`BasicColumn`,`Directions`,`JustifyContent`,`AlignItems`,`Wrapping`,`Gaps`,`FlexItems`,`Predefined`,`InlineFlex`,`RealWorld`]}));w();export{g as AlignItems,p as BasicColumn,f as BasicRow,m as Directions,y as FlexItems,v as Gaps,x as InlineFlex,h as JustifyContent,b as Predefined,S as RealWorld,_ as Wrapping,C as __namedExportsOrder,d as default,w as n,o as t};
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import{c as e,i as t,r as n}from"./preload-helper-B45gAKPr.js";import{pn as r,t as i}from"./iframe-CqfP7aF1.js";var a=n(((e,t)=>{var n=!1,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;function v(){if(!n){n=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(m=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),_=/Mobile/i.exec(e),p=!!/Win64/.exec(e),t){r=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);c=y?parseFloat(y[1])+4:r,i=t[2]?parseFloat(t[2]):NaN,a=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else r=i=a=s=o=NaN;if(v){if(v[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=b?parseFloat(b[1].replace(`_`,`.`)):!0}else l=!1;u=!!v[2],d=!!v[3]}else l=u=d=!1}}var y={ie:function(){return v()||r},ieCompatibilityMode:function(){return v()||c>r},ie64:function(){return y.ie()&&p},firefox:function(){return v()||i},opera:function(){return v()||a},webkit:function(){return v()||o},safari:function(){return y.webkit()},chrome:function(){return v()||s},windows:function(){return v()||u},osx:function(){return v()||l},linux:function(){return v()||d},iphone:function(){return v()||m},mobile:function(){return v()||m||h||f||_},nativeApp:function(){return v()||g},android:function(){return v()||f},ipad:function(){return v()||h}};t.exports=y})),o=n(((e,t)=>{var n=!!(typeof window<`u`&&window.document&&window.document.createElement);t.exports={canUseDOM:n,canUseWorkers:typeof Worker<`u`,canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n}})),s=n(((e,t)=>{var n=o(),r;n.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature(``,``)!==!0);function i(e,t){if(!n.canUseDOM||t&&!(`addEventListener`in document))return!1;var i=`on`+e,a=i in document;if(!a){var o=document.createElement(`div`);o.setAttribute(i,`return;`),a=typeof o[i]==`function`}return!a&&r&&e===`wheel`&&(a=document.implementation.hasFeature(`Events.wheel`,`3.0`)),a}t.exports=i})),c=n(((e,t)=>{var n=a(),r=s(),i=10,o=40,c=800;function l(e){var t=0,n=0,r=0,a=0;return`detail`in e&&(n=e.detail),`wheelDelta`in e&&(n=-e.wheelDelta/120),`wheelDeltaY`in e&&(n=-e.wheelDeltaY/120),`wheelDeltaX`in e&&(t=-e.wheelDeltaX/120),`axis`in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*i,a=n*i,`deltaY`in e&&(a=e.deltaY),`deltaX`in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=o,a*=o):(r*=c,a*=c)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}l.getEventType=function(){return n.firefox()?`DOMMouseScroll`:r(`wheel`)?`wheel`:`mousewheel`},t.exports=l})),l=n(((e,t)=>{t.exports=c()}));function u(e){"@babel/helpers - typeof";return u=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},u(e)}function d(e,t){if(u(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(u(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function f(e){var t=d(e,`string`);return u(t)==`symbol`?t:t+``}function p(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?m(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n,r,i,a=0){let{width:o,height:s}=k(e,t,a),c=Math.min(o,n),l=Math.min(s,r);return c>l*i?{width:l*i,height:l}:{width:c,height:c/i}}function _(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function v(e,t,n,r,i=0){let{width:a,height:o}=k(t.width,t.height,i);return{x:y(e.x,a,n.width,r),y:y(e.y,o,n.height,r)}}function y(e,t,n,r){let i=Math.abs(t*r/2-n/2);return A(e,-i,i)}function b(e,t){return Math.sqrt((e.y-t.y)**2+(e.x-t.x)**2)}function x(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function S(e,t,n,r,i,a=0,o=!0){let s=o?C:w,c=k(t.width,t.height,a),l=k(t.naturalWidth,t.naturalHeight,a),u={x:s(100,((c.width-n.width/i)/2-e.x/i)/c.width*100),y:s(100,((c.height-n.height/i)/2-e.y/i)/c.height*100),width:s(100,n.width/c.width*100/i),height:s(100,n.height/c.height*100/i)},d=Math.round(s(l.width,u.width*l.width/100)),f=Math.round(s(l.height,u.height*l.height/100)),p=l.width>=l.height*r?{width:Math.round(f*r),height:f}:{width:d,height:Math.round(d/r)};return{croppedAreaPercentages:u,croppedAreaPixels:h(h({},p),{},{x:Math.round(s(l.width-p.width,u.x*l.width/100)),y:Math.round(s(l.height-p.height,u.y*l.height/100))})}}function C(e,t){return Math.min(e,Math.max(0,t))}function w(e,t){return t}function T(e,t,n,r,i,a){let o=k(t.width,t.height,n),s=A(r.width/o.width*(100/e.width),i,a);return{crop:{x:s*o.width/2-r.width/2-o.width*s*(e.x/100),y:s*o.height/2-r.height/2-o.height*s*(e.y/100)},zoom:s}}function ee(e,t,n){let r=_(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}function E(e,t,n=0,r,i,a){let o=k(t.naturalWidth,t.naturalHeight,n),s=A(ee(e,t,r),i,a),c=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((o.width-e.width)/2-e.x)*c,y:((o.height-e.height)/2-e.y)*c},zoom:s}}function D(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function O(e){return e*Math.PI/180}function k(e,t,n){let r=O(n);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function A(e,t,n){return Math.min(Math.max(e,t),n)}function j(...e){return e.filter(e=>typeof e==`string`&&e.length>0).join(` `).trim()}var M,N,P,F,I,L,R,z,B,V=t((()=>{M=e(r(),1),N=e(l(),1),P=`.reactEasyCrop_Container {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
user-select: none;
|
|
9
|
-
touch-action: none;
|
|
10
|
-
cursor: move;
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.reactEasyCrop_Image,
|
|
17
|
-
.reactEasyCrop_Video {
|
|
18
|
-
will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
|
|
19
|
-
max-width: unset; /* prevent global img/video reset rules from constraining the cropper media */
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.reactEasyCrop_Contain {
|
|
23
|
-
max-width: 100%;
|
|
24
|
-
max-height: 100%;
|
|
25
|
-
margin: auto;
|
|
26
|
-
position: absolute;
|
|
27
|
-
top: 0;
|
|
28
|
-
bottom: 0;
|
|
29
|
-
left: 0;
|
|
30
|
-
right: 0;
|
|
31
|
-
}
|
|
32
|
-
.reactEasyCrop_Cover_Horizontal {
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: auto;
|
|
35
|
-
}
|
|
36
|
-
.reactEasyCrop_Cover_Vertical {
|
|
37
|
-
width: auto;
|
|
38
|
-
height: 100%;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.reactEasyCrop_CropArea {
|
|
42
|
-
position: absolute;
|
|
43
|
-
left: 50%;
|
|
44
|
-
top: 50%;
|
|
45
|
-
transform: translate(-50%, -50%);
|
|
46
|
-
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
box-shadow: 0 0 0 9999em;
|
|
49
|
-
color: rgba(0, 0, 0, 0.5);
|
|
50
|
-
overflow: hidden;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.reactEasyCrop_CropAreaRound {
|
|
54
|
-
border-radius: 50%;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.reactEasyCrop_CropAreaGrid::before {
|
|
58
|
-
content: ' ';
|
|
59
|
-
box-sizing: border-box;
|
|
60
|
-
position: absolute;
|
|
61
|
-
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
62
|
-
top: 0;
|
|
63
|
-
bottom: 0;
|
|
64
|
-
left: 33.33%;
|
|
65
|
-
right: 33.33%;
|
|
66
|
-
border-top: 0;
|
|
67
|
-
border-bottom: 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.reactEasyCrop_CropAreaGrid::after {
|
|
71
|
-
content: ' ';
|
|
72
|
-
box-sizing: border-box;
|
|
73
|
-
position: absolute;
|
|
74
|
-
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
75
|
-
top: 33.33%;
|
|
76
|
-
bottom: 33.33%;
|
|
77
|
-
left: 0;
|
|
78
|
-
right: 0;
|
|
79
|
-
border-left: 0;
|
|
80
|
-
border-right: 0;
|
|
81
|
-
}
|
|
82
|
-
`,F=250,I=1,L=3,R=1,z=class e extends M.Component{constructor(...t){super(...t),this.cropperRef=M.createRef(),this.imageRef=M.createRef(),this.videoRef=M.createRef(),this.containerPosition={x:0,y:0},this.containerRef=null,this.styleRef=null,this.containerRect=null,this.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},this.dragStartPosition={x:0,y:0},this.dragStartCrop={x:0,y:0},this.gestureZoomStart=0,this.gestureRotationStart=0,this.isTouching=!1,this.lastPinchDistance=0,this.lastPinchRotation=0,this.rafDragTimeout=null,this.rafPinchTimeout=null,this.wheelTimer=null,this.resizeEmitTimer=null,this.currentDoc=typeof document<`u`?document:null,this.currentWindow=typeof window<`u`?window:null,this.resizeObserver=null,this.previousCropSize=null,this.isInitialized=!1,this.dragInteractionSource=null,this.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},this.initResizeObserver=()=>{if(window.ResizeObserver===void 0||!this.containerRef)return;let e=!0;this.resizeObserver=new window.ResizeObserver(t=>{if(e){e=!1;return}this.computeSizes({isResizeTriggered:!0})}),this.resizeObserver.observe(this.containerRef)},this.onWindowResize=()=>{this.computeSizes({isResizeTriggered:!0})},this.preventZoomSafari=e=>e.preventDefault(),this.cleanEvents=()=>{this.currentDoc&&(this.currentDoc.removeEventListener(`mousemove`,this.onMouseMove),this.currentDoc.removeEventListener(`mouseup`,this.onDragStopped),this.currentDoc.removeEventListener(`touchmove`,this.onTouchMove),this.currentDoc.removeEventListener(`touchend`,this.onDragStopped),this.currentDoc.removeEventListener(`gesturechange`,this.onGestureChange),this.currentDoc.removeEventListener(`gestureend`,this.onGestureEnd),this.currentDoc.removeEventListener(`scroll`,this.onScroll))},this.clearScrollEvent=()=>{this.containerRef&&this.containerRef.removeEventListener(`wheel`,this.onWheel),this.wheelTimer&&clearTimeout(this.wheelTimer)},this.onMediaLoad=()=>{let e=this.computeSizes();e&&(this.previousCropSize=e,this.emitCropData(),this.setInitialCrop(e),this.isInitialized=!0),this.props.onMediaLoaded&&this.props.onMediaLoaded(this.mediaSize)},this.setInitialCrop=e=>{if(this.props.initialCroppedAreaPercentages){let{crop:t,zoom:n}=T(this.props.initialCroppedAreaPercentages,this.mediaSize,this.props.rotation,e,this.props.minZoom,this.props.maxZoom);this.props.onCropChange(t),this.props.onZoomChange&&this.props.onZoomChange(n)}else if(this.props.initialCroppedAreaPixels){let{crop:t,zoom:n}=E(this.props.initialCroppedAreaPixels,this.mediaSize,this.props.rotation,e,this.props.minZoom,this.props.maxZoom);this.props.onCropChange(t),this.props.onZoomChange&&this.props.onZoomChange(n)}},this.computeSizes=({isResizeTriggered:e=!1}={})=>{let t=this.imageRef.current||this.videoRef.current;if(t&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect(),this.saveContainerPosition();let n=this.containerRect.width/this.containerRect.height,r=this.imageRef.current?.naturalWidth||this.videoRef.current?.videoWidth||0,i=this.imageRef.current?.naturalHeight||this.videoRef.current?.videoHeight||0,a=t.offsetWidth<r||t.offsetHeight<i,o=r/i,s;if(a)switch(this.state.mediaObjectFit){default:case`contain`:s=n>o?{width:this.containerRect.height*o,height:this.containerRect.height}:{width:this.containerRect.width,height:this.containerRect.width/o};break;case`horizontal-cover`:s={width:this.containerRect.width,height:this.containerRect.width/o};break;case`vertical-cover`:s={width:this.containerRect.height*o,height:this.containerRect.height};break}else s={width:t.offsetWidth,height:t.offsetHeight};this.mediaSize=h(h({},s),{},{naturalWidth:r,naturalHeight:i}),this.props.setMediaSize&&this.props.setMediaSize(this.mediaSize);let c=this.props.cropSize?this.props.cropSize:g(this.mediaSize.width,this.mediaSize.height,this.containerRect.width,this.containerRect.height,this.props.aspect,this.props.rotation);return(this.state.cropSize?.height!==c.height||this.state.cropSize?.width!==c.width)&&this.props.onCropSizeChange&&this.props.onCropSizeChange(c),this.setState({cropSize:c},()=>this.recomputeCropPosition({isResizeTriggered:e})),this.props.setCropSize&&this.props.setCropSize(c),c}},this.saveContainerPosition=()=>{if(this.containerRef){let e=this.containerRef.getBoundingClientRect();this.containerPosition={x:e.left,y:e.top}}},this.onMouseDown=t=>{this.currentDoc&&(t.preventDefault(),this.currentDoc.addEventListener(`mousemove`,this.onMouseMove),this.currentDoc.addEventListener(`mouseup`,this.onDragStopped),this.saveContainerPosition(),this.onDragStart(e.getMousePoint(t),`mouse`))},this.onMouseMove=t=>this.onDrag(e.getMousePoint(t)),this.onScroll=e=>{this.currentDoc&&(e.preventDefault(),this.saveContainerPosition())},this.onTouchStart=t=>{this.currentDoc&&(this.isTouching=!0,!(this.props.onTouchRequest&&!this.props.onTouchRequest(t))&&(this.currentDoc.addEventListener(`touchmove`,this.onTouchMove,{passive:!1}),this.currentDoc.addEventListener(`touchend`,this.onDragStopped),this.saveContainerPosition(),t.touches.length===2?this.onPinchStart(t):t.touches.length===1&&this.onDragStart(e.getTouchPoint(t.touches[0]),`touch`)))},this.onTouchMove=t=>{t.preventDefault(),t.touches.length===2?this.onPinchMove(t):t.touches.length===1&&this.onDrag(e.getTouchPoint(t.touches[0]))},this.onGestureStart=e=>{this.currentDoc&&(e.preventDefault(),this.currentDoc.addEventListener(`gesturechange`,this.onGestureChange),this.currentDoc.addEventListener(`gestureend`,this.onGestureEnd),this.gestureZoomStart=this.props.zoom,this.gestureRotationStart=this.props.rotation)},this.onGestureChange=t=>{if(t.preventDefault(),this.isTouching)return;let n=e.getMousePoint(t),r=this.gestureZoomStart-1+t.scale;if(this.setNewZoom(r,n,{shouldUpdatePosition:!0}),this.props.onRotationChange){let e=this.gestureRotationStart+t.rotation;this.props.onRotationChange(e)}},this.onGestureEnd=e=>{this.cleanEvents()},this.onDragStart=({x:e,y:t},n)=>{var r,i;this.dragStartPosition={x:e,y:t},this.dragStartCrop=h({},this.props.crop),this.dragInteractionSource=n,(r=(i=this.props).onInteractionStart)==null||r.call(i,{source:n})},this.onDrag=({x:e,y:t})=>{this.currentWindow&&(this.rafDragTimeout&&this.currentWindow.cancelAnimationFrame(this.rafDragTimeout),this.rafDragTimeout=this.currentWindow.requestAnimationFrame(()=>{if(!this.state.cropSize||e===void 0||t===void 0)return;let n=e-this.dragStartPosition.x,r=t-this.dragStartPosition.y,i={x:this.dragStartCrop.x+n,y:this.dragStartCrop.y+r},a=this.props.restrictPosition?v(i,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):i;this.props.onCropChange(a)}))},this.onDragStopped=()=>{var e,t;this.isTouching=!1,this.cleanEvents(),this.emitCropData(),(e=(t=this.props).onInteractionEnd)==null||e.call(t,{source:this.dragInteractionSource??`mouse`}),this.dragInteractionSource=null},this.onWheel=t=>{if(!this.currentWindow||this.props.onWheelRequest&&!this.props.onWheelRequest(t))return;t.preventDefault();let n=e.getMousePoint(t),{pixelY:r}=(0,N.default)(t),i=this.props.zoom-r*this.props.zoomSpeed/200;this.setNewZoom(i,n,{shouldUpdatePosition:!0}),this.state.hasWheelJustStarted||this.setState({hasWheelJustStarted:!0},()=>{var e;return(e=this.props).onInteractionStart?.call(e,{source:`wheel`})}),this.wheelTimer&&clearTimeout(this.wheelTimer),this.wheelTimer=this.currentWindow.setTimeout(()=>this.setState({hasWheelJustStarted:!1},()=>{var e;return(e=this.props).onInteractionEnd?.call(e,{source:`wheel`})}),250)},this.getPointOnContainer=({x:e,y:t},n)=>{if(!this.containerRect)throw Error(`The Cropper is not mounted`);return{x:this.containerRect.width/2-(e-n.x),y:this.containerRect.height/2-(t-n.y)}},this.getPointOnMedia=({x:e,y:t})=>{let{crop:n,zoom:r}=this.props;return{x:(e+n.x)/r,y:(t+n.y)/r}},this.setNewZoom=(e,t,{shouldUpdatePosition:n=!0}={})=>{if(!this.state.cropSize||!this.props.onZoomChange)return;let r=A(e,this.props.minZoom,this.props.maxZoom);if(n){let e=this.getPointOnContainer(t,this.containerPosition),n=this.getPointOnMedia(e),i={x:n.x*r-e.x,y:n.y*r-e.y},a=this.props.restrictPosition?v(i,this.mediaSize,this.state.cropSize,r,this.props.rotation):i;this.props.onCropChange(a)}this.props.onZoomChange(r)},this.getCropData=()=>this.state.cropSize?S(this.props.restrictPosition?v(this.props.crop,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):this.props.crop,this.mediaSize,this.state.cropSize,this.getAspect(),this.props.zoom,this.props.rotation,this.props.restrictPosition):null,this.emitCropData=()=>{this.resizeEmitTimer&&=(clearTimeout(this.resizeEmitTimer),null);let e=this.getCropData();if(!e)return;let{croppedAreaPercentages:t,croppedAreaPixels:n}=e;this.props.onCropComplete&&this.props.onCropComplete(t,n),this.props.onCropAreaChange&&this.props.onCropAreaChange(t,n)},this.emitCropAreaChange=()=>{let e=this.getCropData();if(!e)return;let{croppedAreaPercentages:t,croppedAreaPixels:n}=e;this.props.onCropAreaChange&&this.props.onCropAreaChange(t,n)},this.recomputeCropPosition=({isResizeTriggered:e=!1}={})=>{if(!this.state.cropSize)return;let t=this.props.crop;if(this.isInitialized&&this.previousCropSize?.width&&this.previousCropSize?.height&&(Math.abs(this.previousCropSize.width-this.state.cropSize.width)>1e-6||Math.abs(this.previousCropSize.height-this.state.cropSize.height)>1e-6)){let e=this.state.cropSize.width/this.previousCropSize.width,n=this.state.cropSize.height/this.previousCropSize.height;t={x:this.props.crop.x*e,y:this.props.crop.y*n}}let n=this.props.restrictPosition?v(t,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):t;this.previousCropSize=this.state.cropSize,this.props.onCropChange(n),e?this.debouncedEmitCropData():this.emitCropData()},this.debouncedEmitCropData=()=>{this.currentWindow&&(this.resizeEmitTimer&&clearTimeout(this.resizeEmitTimer),this.resizeEmitTimer=this.currentWindow.setTimeout(()=>{this.emitCropData()},F))},this.onKeyDown=e=>{let{crop:t,onCropChange:n,keyboardStep:r,zoom:i,rotation:a}=this.props,o=r;if(!this.state.cropSize)return;e.shiftKey&&(o*=.2);let s=h({},t);switch(e.key){case`ArrowUp`:s.y-=o,e.preventDefault();break;case`ArrowDown`:s.y+=o,e.preventDefault();break;case`ArrowLeft`:s.x-=o,e.preventDefault();break;case`ArrowRight`:s.x+=o,e.preventDefault();break;default:return}if(this.props.restrictPosition&&(s=v(s,this.mediaSize,this.state.cropSize,i,a)),!e.repeat){var c,l;(c=(l=this.props).onInteractionStart)==null||c.call(l,{source:`keyboard`})}n(s)},this.onKeyUp=e=>{var t,n;switch(e.key){case`ArrowUp`:case`ArrowDown`:case`ArrowLeft`:case`ArrowRight`:e.preventDefault();break;default:return}this.emitCropData(),(t=(n=this.props).onInteractionEnd)==null||t.call(n,{source:`keyboard`})}}componentDidMount(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),window.ResizeObserver===void 0&&this.currentWindow.addEventListener(`resize`,this.onWindowResize),this.props.zoomWithScroll&&this.containerRef.addEventListener(`wheel`,this.onWheel,{passive:!1}),this.containerRef.addEventListener(`gesturestart`,this.onGestureStart)),this.currentDoc.addEventListener(`scroll`,this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement(`style`),this.styleRef.setAttribute(`type`,`text/css`),this.props.nonce&&this.styleRef.setAttribute(`nonce`,this.props.nonce),this.styleRef.innerHTML=P,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))}componentWillUnmount(){var e;if(!(!this.currentDoc||!this.currentWindow)){if(window.ResizeObserver===void 0&&this.currentWindow.removeEventListener(`resize`,this.onWindowResize),(e=this.resizeObserver)==null||e.disconnect(),this.resizeEmitTimer&&clearTimeout(this.resizeEmitTimer),this.containerRef&&this.containerRef.removeEventListener(`gesturestart`,this.preventZoomSafari),this.styleRef){var t;(t=this.styleRef.parentNode)==null||t.removeChild(this.styleRef)}this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()}}componentDidUpdate(e){if(e.rotation===this.props.rotation?e.aspect===this.props.aspect&&e.objectFit===this.props.objectFit?e.zoom===this.props.zoom?e.cropSize?.height!==this.props.cropSize?.height||e.cropSize?.width!==this.props.cropSize?.width?this.computeSizes():(e.crop?.x!==this.props.crop?.x||e.crop?.y!==this.props.crop?.y)&&this.emitCropAreaChange():this.recomputeCropPosition():this.computeSizes():(this.computeSizes(),this.recomputeCropPosition()),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener(`wheel`,this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video){var t;(t=this.videoRef.current)==null||t.load()}let n=this.getObjectFit();n!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:n},this.computeSizes)}getAspect(){let{cropSize:e,aspect:t}=this.props;return e?e.width/e.height:t}getObjectFit(){if(this.props.objectFit===`cover`){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();let e=this.containerRect.width/this.containerRect.height;return(this.imageRef.current?.naturalWidth||this.videoRef.current?.videoWidth||0)/(this.imageRef.current?.naturalHeight||this.videoRef.current?.videoHeight||0)<e?`horizontal-cover`:`vertical-cover`}return`horizontal-cover`}return this.props.objectFit}onPinchStart(t){let n=e.getTouchPoint(t.touches[0]),r=e.getTouchPoint(t.touches[1]);this.lastPinchDistance=b(n,r),this.lastPinchRotation=x(n,r),this.onDragStart(D(n,r),`touch`)}onPinchMove(t){if(!this.currentDoc||!this.currentWindow)return;let n=e.getTouchPoint(t.touches[0]),r=e.getTouchPoint(t.touches[1]),i=D(n,r);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(()=>{let e=b(n,r),t=this.props.zoom*(e/this.lastPinchDistance);this.setNewZoom(t,i,{shouldUpdatePosition:!1}),this.lastPinchDistance=e;let a=x(n,r),o=this.props.rotation+(a-this.lastPinchRotation);this.props.onRotationChange&&this.props.onRotationChange(o),this.lastPinchRotation=a})}render(){let{image:e,video:t,mediaProps:n,cropperProps:r,transform:i,crop:{x:a,y:o},rotation:s,zoom:c,cropShape:l,showGrid:u,roundCropAreaPixels:d,style:{containerStyle:f,cropAreaStyle:p,mediaStyle:m},classes:{containerClassName:g,cropAreaClassName:_,mediaClassName:v}}=this.props,y=this.state.mediaObjectFit??this.getObjectFit();return M.createElement(`div`,{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:e=>this.containerRef=e,"data-testid":`container`,style:f,className:j(`reactEasyCrop_Container`,g)},e?M.createElement(`img`,h(h({alt:``,className:j(`reactEasyCrop_Image`,y===`contain`&&`reactEasyCrop_Contain`,y===`horizontal-cover`&&`reactEasyCrop_Cover_Horizontal`,y===`vertical-cover`&&`reactEasyCrop_Cover_Vertical`,v)},n),{},{src:e,ref:this.imageRef,style:h(h({},m),{},{transform:i||`translate(${a}px, ${o}px) rotate(${s}deg) scale(${c})`}),onLoad:this.onMediaLoad})):t&&M.createElement(`video`,h(h({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:j(`reactEasyCrop_Video`,y===`contain`&&`reactEasyCrop_Contain`,y===`horizontal-cover`&&`reactEasyCrop_Cover_Horizontal`,y===`vertical-cover`&&`reactEasyCrop_Cover_Vertical`,v)},n),{},{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:h(h({},m),{},{transform:i||`translate(${a}px, ${o}px) rotate(${s}deg) scale(${c})`}),controls:!1}),(Array.isArray(t)?t:[{src:t}]).map(e=>M.createElement(`source`,h({key:e.src},e)))),this.state.cropSize&&M.createElement(`div`,h({ref:this.cropperRef,style:h(h({},p),{},{width:d?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:d?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":`cropper`,className:j(`reactEasyCrop_CropArea`,l===`round`&&`reactEasyCrop_CropAreaRound`,u&&`reactEasyCrop_CropAreaGrid`,_)},r)))}},z.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:L,minZoom:I,cropShape:`rect`,objectFit:`contain`,showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:R},z.getMousePoint=e=>({x:Number(e.clientX),y:Number(e.clientY)}),z.getTouchPoint=e=>({x:Number(e.clientX),y:Number(e.clientY)}),B=z}));function H({image:e,aspect:t=16/9,width:n=`100%`,className:r,style:i,crop:a,defaultCrop:o=G,zoom:s,defaultZoom:c=1,minZoom:l=1,maxZoom:u=3,zoomSpeed:d=.1,objectFit:f=`contain`,disabled:p=!1,onCropChange:m,onZoomChange:h,onCropComplete:g}){let[_,v]=(0,U.useState)(o),[y,b]=(0,U.useState)(c),x=a??_,S=s??y,C=(0,U.useCallback)(e=>{p||(a===void 0&&v(e),m?.(e))},[a,p,m]),w=(0,U.useCallback)(e=>{p||(s===void 0&&b(e),h?.(e))},[p,h,s]),T=(0,U.useCallback)((e,t)=>{p||g?.(t,e)},[p,g]);return(0,W.jsx)(`div`,{className:r,style:{position:`relative`,width:n,aspectRatio:t,pointerEvents:p?`none`:void 0,...i},children:(0,W.jsx)(B,{image:e,crop:x,zoom:S,aspect:t,minZoom:l,maxZoom:u,zoomSpeed:d,objectFit:f,onCropChange:C,onZoomChange:w,onCropComplete:T,cropperProps:{"aria-disabled":p||void 0}})})}var U,W,G,K=t((()=>{U=e(r(),1),V(),W=i(),G={x:0,y:0},H.__docgenInfo={description:`Управляемая или автономная область обрезки изображения.
|
|
83
|
-
Числовой aspect задаётся вызывающим кодом и не связан с назначением изображения.`,methods:[],displayName:`ImageCropper`,props:{image:{required:!0,tsType:{name:`string`},description:``},aspect:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`16 / 9`,computed:!1}},width:{required:!1,tsType:{name:`CSSProperties["width"]`,raw:`CSSProperties["width"]`},description:``,defaultValue:{value:`"100%"`,computed:!1}},className:{required:!1,tsType:{name:`string`},description:``},style:{required:!1,tsType:{name:`CSSProperties`},description:``},crop:{required:!1,tsType:{name:`signature`,type:`object`,raw:`{
|
|
84
|
-
x: number;
|
|
85
|
-
y: number;
|
|
86
|
-
}`,signature:{properties:[{key:`x`,value:{name:`number`,required:!0}},{key:`y`,value:{name:`number`,required:!0}}]}},description:``},defaultCrop:{required:!1,tsType:{name:`signature`,type:`object`,raw:`{
|
|
87
|
-
x: number;
|
|
88
|
-
y: number;
|
|
89
|
-
}`,signature:{properties:[{key:`x`,value:{name:`number`,required:!0}},{key:`y`,value:{name:`number`,required:!0}}]}},description:``,defaultValue:{value:`{ x: 0, y: 0 }`,computed:!1}},zoom:{required:!1,tsType:{name:`number`},description:``},defaultZoom:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`1`,computed:!1}},minZoom:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`1`,computed:!1}},maxZoom:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`3`,computed:!1}},zoomSpeed:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`0.1`,computed:!1}},objectFit:{required:!1,tsType:{name:`union`,raw:`"contain" | "cover" | "horizontal-cover" | "vertical-cover"`,elements:[{name:`literal`,value:`"contain"`},{name:`literal`,value:`"cover"`},{name:`literal`,value:`"horizontal-cover"`},{name:`literal`,value:`"vertical-cover"`}]},description:``,defaultValue:{value:`"contain"`,computed:!1}},disabled:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`false`,computed:!1}},onCropChange:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(crop: ImageCropPoint) => void`,signature:{arguments:[{type:{name:`signature`,type:`object`,raw:`{
|
|
90
|
-
x: number;
|
|
91
|
-
y: number;
|
|
92
|
-
}`,signature:{properties:[{key:`x`,value:{name:`number`,required:!0}},{key:`y`,value:{name:`number`,required:!0}}]}},name:`crop`}],return:{name:`void`}}},description:``},onZoomChange:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(zoom: number) => void`,signature:{arguments:[{type:{name:`number`},name:`zoom`}],return:{name:`void`}}},description:``},onCropComplete:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(croppedAreaPixels: ImageCropArea, croppedAreaPercentages: ImageCropArea) => void`,signature:{arguments:[{type:{name:`signature`,type:`object`,raw:`{
|
|
93
|
-
x: number;
|
|
94
|
-
y: number;
|
|
95
|
-
width: number;
|
|
96
|
-
height: number;
|
|
97
|
-
}`,signature:{properties:[{key:`x`,value:{name:`number`,required:!0}},{key:`y`,value:{name:`number`,required:!0}},{key:`width`,value:{name:`number`,required:!0}},{key:`height`,value:{name:`number`,required:!0}}]}},name:`croppedAreaPixels`},{type:{name:`signature`,type:`object`,raw:`{
|
|
98
|
-
x: number;
|
|
99
|
-
y: number;
|
|
100
|
-
width: number;
|
|
101
|
-
height: number;
|
|
102
|
-
}`,signature:{properties:[{key:`x`,value:{name:`number`,required:!0}},{key:`y`,value:{name:`number`,required:!0}},{key:`width`,value:{name:`number`,required:!0}},{key:`height`,value:{name:`number`,required:!0}}]}},name:`croppedAreaPercentages`}],return:{name:`void`}}},description:``}}}})),q,J,Y,X,Z,Q,$;t((()=>{q=e(r(),1),K(),J=i(),Y={title:`Shared/UI/Image/ImageCropper`,component:H,args:{image:`https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80`,aspect:16/9},parameters:{layout:`padded`},argTypes:{aspect:{control:`number`}}},X={},Z={render:e=>{let[t,n]=(0,q.useState)({x:0,y:0}),[r,i]=(0,q.useState)(1);return(0,J.jsx)(H,{...e,crop:t,zoom:r,onCropChange:n,onZoomChange:i})}},Q={args:{aspect:1}},X.parameters={...X.parameters,docs:{...X.parameters?.docs,source:{originalSource:`{}`,...X.parameters?.docs?.source}}},Z.parameters={...Z.parameters,docs:{...Z.parameters?.docs,source:{originalSource:`{
|
|
103
|
-
render: args => {
|
|
104
|
-
const [crop, setCrop] = useState<ImageCropPoint>({
|
|
105
|
-
x: 0,
|
|
106
|
-
y: 0
|
|
107
|
-
});
|
|
108
|
-
const [zoom, setZoom] = useState(1);
|
|
109
|
-
return <ImageCropper {...args} crop={crop} zoom={zoom} onCropChange={setCrop} onZoomChange={setZoom} />;
|
|
110
|
-
}
|
|
111
|
-
}`,...Z.parameters?.docs?.source}}},Q.parameters={...Q.parameters,docs:{...Q.parameters?.docs,source:{originalSource:`{
|
|
112
|
-
args: {
|
|
113
|
-
aspect: 1
|
|
114
|
-
}
|
|
115
|
-
}`,...Q.parameters?.docs?.source}}},$=[`Uncontrolled`,`Controlled`,`Square`]}))();export{Z as Controlled,Q as Square,X as Uncontrolled,$ as __namedExportsOrder,Y as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as e,i as t}from"./preload-helper-B45gAKPr.js";import{pn as n,t as r}from"./iframe-CqfP7aF1.js";function i({width:e=`100%`,height:t=`100%`,aspectRatio:n=`16 / 9`,className:r}){return(0,a.jsx)(`div`,{style:{width:e,height:t,aspectRatio:n},className:r,children:(0,a.jsx)(`svg`,{width:e,height:t,viewBox:`0 0 200 200`,xmlns:`http://www.w3.org/2000/svg`,role:`img`,fill:`none`,rx:`10`,ry:`10`,style:{display:`block`},"aria-label":`Изображение недоступно`,children:(0,a.jsxs)(`g`,{fill:`var(--surface-0)`,children:[(0,a.jsx)(`rect`,{x:`40`,y:`50`,width:`120`,height:`100`,rx:`10`}),(0,a.jsx)(`circle`,{cx:`60`,cy:`70`,r:`8`,fill:`var(--surface-2)`}),(0,a.jsx)(`path`,{d:`M50 130 L75 100 L100 130 Z`,fill:`var(--surface-2)`}),(0,a.jsx)(`path`,{d:`M90 130 L120 90 L150 130 Z`,fill:`var(--surface-2)`}),(0,a.jsx)(`line`,{x1:`160`,y1:`40`,x2:`40`,y2:`160`,stroke:`var(--surface-0)`,strokeWidth:`15`,strokeLinecap:`round`}),(0,a.jsx)(`line`,{x1:`160`,y1:`40`,x2:`40`,y2:`160`,stroke:`var(--surface-2)`,strokeWidth:`5`,strokeLinecap:`round`})]})})})}var a,o=t((()=>{a=r(),i.__docgenInfo={description:``,methods:[],displayName:`ImagePlaceholder`,props:{width:{required:!1,tsType:{name:`union`,raw:`number | string`,elements:[{name:`number`},{name:`string`}]},description:``,defaultValue:{value:`"100%"`,computed:!1}},height:{required:!1,tsType:{name:`union`,raw:`number | string`,elements:[{name:`number`},{name:`string`}]},description:``,defaultValue:{value:`"100%"`,computed:!1}},aspectRatio:{required:!1,tsType:{name:`union`,raw:`string | "unset"`,elements:[{name:`string`},{name:`literal`,value:`"unset"`}]},description:``,defaultValue:{value:`"16 / 9"`,computed:!1}},className:{required:!1,tsType:{name:`string`},description:``}}}}));function s({src:e,sources:t,alt:n,role:r,ariaLabel:a,caption:o,fallback:s,useFigure:u=!1,layout:d=`cover`,width:f=`100%`,height:p=`100%`,aspectRatio:m,intrinsicWidth:h,intrinsicHeight:g,onLoad:_,onError:v,style:y,wrapperStyle:b,...x}){let S=(0,c.useRef)(null),[C,w]=(0,c.useState)(0),[T,E]=(0,c.useState)(!1),[D,O]=(0,c.useState)(!1),[k,A]=(0,c.useState)(!1);(0,c.useEffect)(()=>{if(typeof IntersectionObserver>`u`){let e=window.setTimeout(()=>E(!0),0);return()=>window.clearTimeout(e)}let e=new IntersectionObserver(([t])=>{if(t.isIntersecting){let n=Math.round(t.boundingClientRect.width);w(n),E(!0),e.disconnect()}},{rootMargin:`100px`,threshold:.01});return S.current&&e.observe(S.current),()=>e.disconnect()},[]);let j=d===`intrinsic`,M=j?`auto`:p,N=h&&g?`${h} / ${g}`:void 0,P=j?N??m??`auto`:m??`16 / 9`,F=j&&P!==`auto`&&P!==`unset`?`100%`:M,I=C?`${C}px`:`100vw`,L=(0,l.jsx)(i,{width:f,height:F,aspectRatio:P}),R=j?{...y,display:`block`,width:`100%`,height:`auto`,objectFit:void 0}:{display:`block`,width:`100%`,height:`100%`,objectFit:d,...y},z=(0,l.jsxs)(l.Fragment,{children:[!D&&!k&&(s||L),T&&!k&&(0,l.jsxs)(`picture`,{children:[t?.map(e=>(0,l.jsx)(`source`,{srcSet:e.srcSet,type:e.type,sizes:e.sizes??I},`${e.type??`source`}-${e.srcSet}`)),(0,l.jsx)(`img`,{src:e,alt:n,role:r,"aria-label":a,onLoad:e=>{O(!0),_?.(e)},onError:e=>{A(!0),v?.(e)},style:D?R:{display:`none`},"aria-busy":!D,width:h,height:g,...x})]}),k&&L]}),B=(0,l.jsx)(`div`,{ref:S,style:{width:f,height:M,aspectRatio:P,...b},children:z});return u?(0,l.jsxs)(`figure`,{className:`relative`,children:[B,o&&(0,l.jsx)(`figcaption`,{style:{bottom:2,right:2,maxWidth:`calc(100% - 4px)`},className:`absolute paddingInlineMd textRight radiusSm fontSizeSm`,children:o})]}):B}var c,l,u=t((()=>{c=e(n(),1),o(),l=r(),s.__docgenInfo={description:`Базовый рендер изображения: lazy-появление, placeholder, обработка ошибки и figure/caption.
|
|
2
|
-
Компонент не знает, как устроено хранилище и какие форматы/размеры доступны.`,methods:[],displayName:`ImageRenderer`,props:{src:{required:!0,tsType:{name:`string`},description:``},sources:{required:!1,tsType:{name:`unknown`},description:``},layout:{required:!1,tsType:{name:`union`,raw:`"cover" | "contain" | "intrinsic"`,elements:[{name:`literal`,value:`"cover"`},{name:`literal`,value:`"contain"`},{name:`literal`,value:`"intrinsic"`}]},description:``,defaultValue:{value:`"cover"`,computed:!1}},alt:{required:!1,tsType:{name:`string`},description:``},role:{required:!1,tsType:{name:`string`},description:``},ariaLabel:{required:!1,tsType:{name:`string`},description:``},caption:{required:!1,tsType:{name:`string`},description:``},fallback:{required:!1,tsType:{name:`ReactNode`},description:``},useFigure:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`false`,computed:!1}},aspectRatio:{required:!1,tsType:{name:`union`,raw:`string | "unset"`,elements:[{name:`string`},{name:`literal`,value:`"unset"`}]},description:``},width:{required:!1,tsType:{name:`CSSProperties["width"]`,raw:`CSSProperties["width"]`},description:``,defaultValue:{value:`"100%"`,computed:!1}},height:{required:!1,tsType:{name:`CSSProperties["height"]`,raw:`CSSProperties["height"]`},description:``,defaultValue:{value:`"100%"`,computed:!1}},intrinsicWidth:{required:!1,tsType:{name:`number`},description:``},intrinsicHeight:{required:!1,tsType:{name:`number`},description:``},wrapperStyle:{required:!1,tsType:{name:`CSSProperties`},description:``}},composes:[`Omit`]}}));export{u as n,s as t};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./preload-helper-B45gAKPr.js";import{n as t,t as n}from"./ImageRenderer-C_UGYN2n.js";var r,i,a,o,s;e((()=>{t(),r={title:`Shared/UI/Image/ImageRenderer`,component:n,args:{src:`https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80`,alt:`Горный пейзаж`},parameters:{layout:`padded`},argTypes:{layout:{control:`inline-radio`,options:[`cover`,`contain`,`intrinsic`]}}},i={args:{layout:`cover`,width:`min(100%, 48rem)`,height:`24rem`}},a={args:{layout:`contain`,width:`min(100%, 48rem)`,height:`24rem`,wrapperStyle:{background:`var(--surface-1)`}}},o={args:{layout:`intrinsic`,intrinsicWidth:1600,intrinsicHeight:1067}},i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
layout: "cover",
|
|
4
|
-
width: "min(100%, 48rem)",
|
|
5
|
-
height: "24rem"
|
|
6
|
-
}
|
|
7
|
-
}`,...i.parameters?.docs?.source}}},a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
|
|
8
|
-
args: {
|
|
9
|
-
layout: "contain",
|
|
10
|
-
width: "min(100%, 48rem)",
|
|
11
|
-
height: "24rem",
|
|
12
|
-
wrapperStyle: {
|
|
13
|
-
background: "var(--surface-1)"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}`,...a.parameters?.docs?.source}}},o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
|
|
17
|
-
args: {
|
|
18
|
-
layout: "intrinsic",
|
|
19
|
-
intrinsicWidth: 1600,
|
|
20
|
-
intrinsicHeight: 1067
|
|
21
|
-
}
|
|
22
|
-
}`,...o.parameters?.docs?.source}}},s=[`FixedCover`,`FixedContain`,`IntrinsicFullWidth`]}))();export{a as FixedContain,i as FixedCover,o as IntrinsicFullWidth,s as __namedExportsOrder,r as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./preload-helper-B45gAKPr.js";import{t}from"./iframe-CqfP7aF1.js";import{n,t as r}from"./ImageRenderer-C_UGYN2n.js";function i(e){return e.map(e=>`width`in e?`${e.src} ${e.width}w`:`${e.src} ${e.density}x`).join(`, `)}var a=e((()=>{}));function o(e,t){return(e??[]).map(e=>({srcSet:i(e.candidates),type:e.type,sizes:e.sizes??t})).filter(e=>e.srcSet.length>0)}var s=e((()=>{a()}));function c({image:e,alt:t,sizes:n,aspectRatio:a,...s}){let c=o(e.sources,n),u=e.candidates?i(e.candidates):void 0,d=a??(e.intrinsicWidth&&e.intrinsicHeight?`${e.intrinsicWidth} / ${e.intrinsicHeight}`:void 0);return(0,l.jsx)(r,{...s,src:e.src,srcSet:u||void 0,sources:c,sizes:n,alt:t??e.alt,intrinsicWidth:e.intrinsicWidth,intrinsicHeight:e.intrinsicHeight,aspectRatio:d})}var l,u=e((()=>{s(),a(),n(),l=t(),c.__docgenInfo={description:`Собирает picture/srcset из готовых URL и делегирует отображение ImageRenderer.
|
|
2
|
-
Компонент не формирует имена файлов и не знает о форматах или размерах хранилища.`,methods:[],displayName:`ImageView`,props:{image:{required:!0,tsType:{name:`signature`,type:`object`,raw:`{
|
|
3
|
-
src: string;
|
|
4
|
-
alt?: string;
|
|
5
|
-
intrinsicWidth?: number;
|
|
6
|
-
intrinsicHeight?: number;
|
|
7
|
-
candidates?: readonly ImageCandidate[];
|
|
8
|
-
sources?: readonly ResponsiveImageSource[];
|
|
9
|
-
}`,signature:{properties:[{key:`src`,value:{name:`string`,required:!0}},{key:`alt`,value:{name:`string`,required:!1}},{key:`intrinsicWidth`,value:{name:`number`,required:!1}},{key:`intrinsicHeight`,value:{name:`number`,required:!1}},{key:`candidates`,value:{name:`unknown`,required:!1}},{key:`sources`,value:{name:`unknown`,required:!1}}]}},description:``},alt:{required:!1,tsType:{name:`string`},description:``}},composes:[`Omit`,`Pick`]}})),d,f,p,m,h;e((()=>{u(),d=`photo-1500530855697-b586d89ba3ee`,f=(e,t)=>`https://images.unsplash.com/${d}?auto=format&fit=crop&w=${e}&fm=${t}&q=80`,p={title:`Shared/UI/Image/ImageView`,component:c,args:{layout:`intrinsic`,sizes:`(min-width: 64rem) 64rem, 100vw`,image:{src:f(1600,`jpg`),alt:`Responsive-пейзаж`,intrinsicWidth:1600,intrinsicHeight:1067,candidates:[{src:f(640,`jpg`),width:640},{src:f(1280,`jpg`),width:1280},{src:f(1600,`jpg`),width:1600}],sources:[{type:`image/avif`,candidates:[{src:f(640,`avif`),width:640},{src:f(1280,`avif`),width:1280},{src:f(1600,`avif`),width:1600}]},{type:`image/webp`,candidates:[{src:f(640,`webp`),width:640},{src:f(1280,`webp`),width:1280},{src:f(1600,`webp`),width:1600}]}]}},parameters:{layout:`padded`}},m={},m.parameters={...m.parameters,docs:{...m.parameters?.docs,source:{originalSource:`{}`,...m.parameters?.docs?.source}}},h=[`ResponsiveCandidates`]}))();export{m as ResponsiveCandidates,h as __namedExportsOrder,p as default};
|