@vavt/react-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +137 -0
- package/dist/Alert-BGyLKuv0.js +52 -0
- package/dist/Alert-tPSJmCXK.cjs +1 -0
- package/dist/Anchor-QZROepM_.js +197 -0
- package/dist/Anchor-iriRYxEs.cjs +1 -0
- package/dist/Announcement-D_NccvTm.js +212 -0
- package/dist/Announcement-XjJyJ28N.cjs +1 -0
- package/dist/Button-CwkWSWau.js +96 -0
- package/dist/Button-qURrKHQ0.cjs +1 -0
- package/dist/Card-DlztNV-6.js +48 -0
- package/dist/Card-nILlh9c_.cjs +1 -0
- package/dist/Checkbox-BCXbK1-8.cjs +1 -0
- package/dist/Checkbox-CQZSg9Xu.cjs +1 -0
- package/dist/Checkbox-CQeqLO0S.js +46 -0
- package/dist/Checkbox-cnXHW9Oz.js +61 -0
- package/dist/Col-CZjR94ac.js +55 -0
- package/dist/Col-qcq7T83y.cjs +1 -0
- package/dist/Cron-CoO2Vnnm.cjs +1 -0
- package/dist/Cron-Di7k2FTL.js +1187 -0
- package/dist/DatePicker-DAxv2h-d.cjs +1 -0
- package/dist/DatePicker-M-MwejjV.js +15 -0
- package/dist/DateTimePicker-B3C3v99L.cjs +1 -0
- package/dist/DateTimePicker-BcT3FtN-.js +16 -0
- package/dist/Divider-BfvQ6BVP.cjs +1 -0
- package/dist/Divider-vyftxh3F.js +47 -0
- package/dist/Drawer-D28QbyA3.js +103 -0
- package/dist/Drawer-OmMfdgKN.cjs +1 -0
- package/dist/Dropdown-CYx6RxVv.js +311 -0
- package/dist/Dropdown-swfND4yK.cjs +1 -0
- package/dist/Form-7un_DeDk.cjs +1 -0
- package/dist/Form-CwgaAZWr.js +323 -0
- package/dist/Input-CIB_TY2n.js +113 -0
- package/dist/Input-CoDZggqc.cjs +1 -0
- package/dist/Loading-C2pY-4fA.cjs +1 -0
- package/dist/Loading-CL0wUgYK.js +45 -0
- package/dist/MessageBox-CrIifoig.js +141 -0
- package/dist/MessageBox-Ddn-R2MS.cjs +1 -0
- package/dist/Modal-B_VqN16m.js +201 -0
- package/dist/Modal-Dm48HmGu.cjs +1 -0
- package/dist/NumberInput-CYVj89_s.cjs +1 -0
- package/dist/NumberInput-C_vLULbX.js +134 -0
- package/dist/Pagination-B7a9v6BU.js +167 -0
- package/dist/Pagination-mj-pO6ql.cjs +1 -0
- package/dist/Progress-D2C6LCml.js +40 -0
- package/dist/Progress-DTAjlgwZ.cjs +1 -0
- package/dist/RadioGroup-BRcNi5Oc.js +98 -0
- package/dist/RadioGroup-q2Aa50NV.cjs +1 -0
- package/dist/Row-BJZtEKxG.cjs +1 -0
- package/dist/Row-DpEse7PJ.js +24 -0
- package/dist/Scrollbar-BdMGZrYi.js +235 -0
- package/dist/Scrollbar-CEQT6Ao_.cjs +1 -0
- package/dist/Select-DQLup8Y-.cjs +1 -0
- package/dist/Select-DccM9YpB.js +458 -0
- package/dist/Sidebar-BPXVnP7y.cjs +1 -0
- package/dist/Sidebar-u980T-QB.js +76 -0
- package/dist/Slider-BzlZc0p4.js +256 -0
- package/dist/Slider-DCIUxcBa.cjs +1 -0
- package/dist/Space-DJGRG2rt.cjs +1 -0
- package/dist/Space-gnVH7rEt.js +35 -0
- package/dist/Switch-7yJ-Q_o_.cjs +1 -0
- package/dist/Switch-DOO2tiYR.js +58 -0
- package/dist/Table-C8cSyts5.js +440 -0
- package/dist/Table-JoJ9vpu-.cjs +1 -0
- package/dist/Tabs-BhjvKN84.cjs +1 -0
- package/dist/Tabs-VT6nQ63W.js +106 -0
- package/dist/Tag-Cf9M_HT6.cjs +1 -0
- package/dist/Tag-CkfqoSwA.js +42 -0
- package/dist/Textarea-BEd7ToXv.js +68 -0
- package/dist/Textarea-C2dNYM0F.cjs +1 -0
- package/dist/TimePicker-ClQCHa6M.js +199 -0
- package/dist/TimePicker-DNBo2Rn5.cjs +1 -0
- package/dist/Timeline-ROggEQnD.cjs +1 -0
- package/dist/Timeline-euWvUS4e.js +70 -0
- package/dist/Tooltip-CbPYYr6R.cjs +1 -0
- package/dist/Tooltip-Ds4Odm7K.js +197 -0
- package/dist/Transition-DiO4GsP3.js +125 -0
- package/dist/Transition-X_89ga-e.cjs +1 -0
- package/dist/base.css +1 -0
- package/dist/cjs/Alert.cjs +1 -0
- package/dist/cjs/Anchor.cjs +1 -0
- package/dist/cjs/Announcement.cjs +1 -0
- package/dist/cjs/Button.cjs +1 -0
- package/dist/cjs/Card.cjs +1 -0
- package/dist/cjs/Checkbox.cjs +1 -0
- package/dist/cjs/Col.cjs +1 -0
- package/dist/cjs/Cron.cjs +1 -0
- package/dist/cjs/DatePicker.cjs +1 -0
- package/dist/cjs/DateTimePicker.cjs +1 -0
- package/dist/cjs/Divider.cjs +1 -0
- package/dist/cjs/Drawer.cjs +1 -0
- package/dist/cjs/Dropdown.cjs +1 -0
- package/dist/cjs/Form.cjs +1 -0
- package/dist/cjs/Input.cjs +1 -0
- package/dist/cjs/Loading.cjs +1 -0
- package/dist/cjs/MessageBox.cjs +1 -0
- package/dist/cjs/Modal.cjs +1 -0
- package/dist/cjs/NumberInput.cjs +1 -0
- package/dist/cjs/Pagination.cjs +1 -0
- package/dist/cjs/Progress.cjs +1 -0
- package/dist/cjs/Radio.cjs +1 -0
- package/dist/cjs/Row.cjs +1 -0
- package/dist/cjs/Scrollbar.cjs +1 -0
- package/dist/cjs/Select.cjs +1 -0
- package/dist/cjs/Sidebar.cjs +1 -0
- package/dist/cjs/Slider.cjs +1 -0
- package/dist/cjs/Space.cjs +1 -0
- package/dist/cjs/Switch.cjs +1 -0
- package/dist/cjs/Table.cjs +1 -0
- package/dist/cjs/Tabs.cjs +1 -0
- package/dist/cjs/Tag.cjs +1 -0
- package/dist/cjs/Textarea.cjs +1 -0
- package/dist/cjs/TimePicker.cjs +1 -0
- package/dist/cjs/Timeline.cjs +1 -0
- package/dist/cjs/Tooltip.cjs +1 -0
- package/dist/cjs/Transition.cjs +1 -0
- package/dist/cjs/global.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/register.cjs +1 -0
- package/dist/client-BkoqeUs3.cjs +1 -0
- package/dist/client-pj_wzx28.js +8 -0
- package/dist/css/Alert.css +1 -0
- package/dist/css/Anchor.css +1 -0
- package/dist/css/Announcement.css +1 -0
- package/dist/css/Button.css +1 -0
- package/dist/css/Card.css +1 -0
- package/dist/css/Checkbox.css +1 -0
- package/dist/css/Col.css +1 -0
- package/dist/css/Cron.css +1 -0
- package/dist/css/DatePicker.css +1 -0
- package/dist/css/DateTimePicker.css +1 -0
- package/dist/css/Divider.css +1 -0
- package/dist/css/Drawer.css +1 -0
- package/dist/css/Dropdown.css +1 -0
- package/dist/css/Form.css +1 -0
- package/dist/css/Input.css +1 -0
- package/dist/css/Loading.css +1 -0
- package/dist/css/MessageBox.css +1 -0
- package/dist/css/Modal.css +1 -0
- package/dist/css/NumberInput.css +1 -0
- package/dist/css/Pagination.css +1 -0
- package/dist/css/Progress.css +1 -0
- package/dist/css/Radio.css +1 -0
- package/dist/css/Row.css +1 -0
- package/dist/css/Scrollbar.css +1 -0
- package/dist/css/Select.css +1 -0
- package/dist/css/Sidebar.css +1 -0
- package/dist/css/Slider.css +1 -0
- package/dist/css/Space.css +1 -0
- package/dist/css/Switch.css +1 -0
- package/dist/css/Table.css +1 -0
- package/dist/css/Tabs.css +1 -0
- package/dist/css/Tag.css +1 -0
- package/dist/css/Textarea.css +1 -0
- package/dist/css/TimePicker.css +1 -0
- package/dist/css/Timeline.css +1 -0
- package/dist/css/Tooltip.css +1 -0
- package/dist/css/Transition.css +0 -0
- package/dist/date-picker-DkRwNu2m.js +584 -0
- package/dist/date-picker-DyGLrw5H.cjs +1 -0
- package/dist/dialog-shell-DT1EoKQG.cjs +1 -0
- package/dist/dialog-shell-DehX3PNh.js +111 -0
- package/dist/effect-BpNxm_06.cjs +1 -0
- package/dist/effect-nifYL_rH.js +5 -0
- package/dist/es/Alert.mjs +3 -0
- package/dist/es/Anchor.mjs +3 -0
- package/dist/es/Announcement.mjs +3 -0
- package/dist/es/Button.mjs +3 -0
- package/dist/es/Card.mjs +3 -0
- package/dist/es/Checkbox.mjs +3 -0
- package/dist/es/Col.mjs +3 -0
- package/dist/es/Cron.mjs +3 -0
- package/dist/es/DatePicker.mjs +3 -0
- package/dist/es/DateTimePicker.mjs +3 -0
- package/dist/es/Divider.mjs +3 -0
- package/dist/es/Drawer.mjs +3 -0
- package/dist/es/Dropdown.mjs +3 -0
- package/dist/es/Form.mjs +3 -0
- package/dist/es/Input.mjs +3 -0
- package/dist/es/Loading.mjs +3 -0
- package/dist/es/MessageBox.mjs +3 -0
- package/dist/es/Modal.mjs +3 -0
- package/dist/es/NumberInput.mjs +3 -0
- package/dist/es/Pagination.mjs +3 -0
- package/dist/es/Progress.mjs +3 -0
- package/dist/es/Radio.mjs +6 -0
- package/dist/es/Row.mjs +6 -0
- package/dist/es/Scrollbar.mjs +3 -0
- package/dist/es/Select.mjs +3 -0
- package/dist/es/Sidebar.mjs +3 -0
- package/dist/es/Slider.mjs +3 -0
- package/dist/es/Space.mjs +3 -0
- package/dist/es/Switch.mjs +3 -0
- package/dist/es/Table.mjs +3 -0
- package/dist/es/Tabs.mjs +3 -0
- package/dist/es/Tag.mjs +3 -0
- package/dist/es/Textarea.mjs +3 -0
- package/dist/es/TimePicker.mjs +3 -0
- package/dist/es/Timeline.mjs +3 -0
- package/dist/es/Tooltip.mjs +3 -0
- package/dist/es/Transition.mjs +3 -0
- package/dist/es/global.mjs +3 -0
- package/dist/es/index.mjs +40 -0
- package/dist/es/register.mjs +7 -0
- package/dist/floating-DBAmeQIq.js +157 -0
- package/dist/floating-DXRnx48N.cjs +1 -0
- package/dist/focus-BDDJyKk3.js +9 -0
- package/dist/focus-D-h8CbGr.cjs +1 -0
- package/dist/icon-Cbvuv4yF.js +25 -0
- package/dist/icon-DRLyKu8p.cjs +1 -0
- package/dist/id-CF0zOP1G.cjs +1 -0
- package/dist/id-CHixuHb7.js +8 -0
- package/dist/index.css +1 -0
- package/dist/number-B7qJF_ZY.cjs +1 -0
- package/dist/number-BN2jHM6Z.js +6 -0
- package/dist/refs-D5IYOBaf.js +14 -0
- package/dist/refs-DCqd87V8.cjs +1 -0
- package/dist/registry-CkiH1x-J.js +79 -0
- package/dist/registry-YCz7D-2R.cjs +1 -0
- package/dist/state-ZBA75xZ_.cjs +1 -0
- package/dist/state-oH-YwB7_.js +15 -0
- package/dist/style/Alert.cjs +7 -0
- package/dist/style/Alert.mjs +7 -0
- package/dist/style/Anchor.cjs +7 -0
- package/dist/style/Anchor.mjs +7 -0
- package/dist/style/Announcement.cjs +7 -0
- package/dist/style/Announcement.mjs +7 -0
- package/dist/style/Button.cjs +7 -0
- package/dist/style/Button.mjs +7 -0
- package/dist/style/Card.cjs +7 -0
- package/dist/style/Card.mjs +7 -0
- package/dist/style/Checkbox.cjs +7 -0
- package/dist/style/Checkbox.mjs +7 -0
- package/dist/style/Col.cjs +7 -0
- package/dist/style/Col.mjs +7 -0
- package/dist/style/Cron.cjs +13 -0
- package/dist/style/Cron.mjs +13 -0
- package/dist/style/DatePicker.cjs +10 -0
- package/dist/style/DatePicker.mjs +10 -0
- package/dist/style/DateTimePicker.cjs +10 -0
- package/dist/style/DateTimePicker.mjs +10 -0
- package/dist/style/Divider.cjs +7 -0
- package/dist/style/Divider.mjs +7 -0
- package/dist/style/Drawer.cjs +8 -0
- package/dist/style/Drawer.mjs +8 -0
- package/dist/style/Dropdown.cjs +8 -0
- package/dist/style/Dropdown.mjs +8 -0
- package/dist/style/Form.cjs +7 -0
- package/dist/style/Form.mjs +7 -0
- package/dist/style/Input.cjs +7 -0
- package/dist/style/Input.mjs +7 -0
- package/dist/style/Loading.cjs +8 -0
- package/dist/style/Loading.mjs +8 -0
- package/dist/style/MessageBox.cjs +9 -0
- package/dist/style/MessageBox.mjs +9 -0
- package/dist/style/Modal.cjs +8 -0
- package/dist/style/Modal.mjs +8 -0
- package/dist/style/NumberInput.cjs +7 -0
- package/dist/style/NumberInput.mjs +7 -0
- package/dist/style/Pagination.cjs +7 -0
- package/dist/style/Pagination.mjs +7 -0
- package/dist/style/Progress.cjs +7 -0
- package/dist/style/Progress.mjs +7 -0
- package/dist/style/Radio.cjs +7 -0
- package/dist/style/Radio.mjs +7 -0
- package/dist/style/Row.cjs +7 -0
- package/dist/style/Row.mjs +7 -0
- package/dist/style/Scrollbar.cjs +7 -0
- package/dist/style/Scrollbar.mjs +7 -0
- package/dist/style/Select.cjs +8 -0
- package/dist/style/Select.mjs +8 -0
- package/dist/style/Sidebar.cjs +7 -0
- package/dist/style/Sidebar.mjs +7 -0
- package/dist/style/Slider.cjs +7 -0
- package/dist/style/Slider.mjs +7 -0
- package/dist/style/Space.cjs +7 -0
- package/dist/style/Space.mjs +7 -0
- package/dist/style/Switch.cjs +7 -0
- package/dist/style/Switch.mjs +7 -0
- package/dist/style/Table.cjs +9 -0
- package/dist/style/Table.mjs +9 -0
- package/dist/style/Tabs.cjs +7 -0
- package/dist/style/Tabs.mjs +7 -0
- package/dist/style/Tag.cjs +7 -0
- package/dist/style/Tag.mjs +7 -0
- package/dist/style/Textarea.cjs +7 -0
- package/dist/style/Textarea.mjs +7 -0
- package/dist/style/TimePicker.cjs +8 -0
- package/dist/style/TimePicker.mjs +8 -0
- package/dist/style/Timeline.cjs +7 -0
- package/dist/style/Timeline.mjs +7 -0
- package/dist/style/Tooltip.cjs +8 -0
- package/dist/style/Tooltip.mjs +8 -0
- package/dist/style/Transition.cjs +6 -0
- package/dist/style/Transition.mjs +6 -0
- package/dist/time-wheel-BaCcA9nk.cjs +1 -0
- package/dist/time-wheel-BtvYZI6H.js +291 -0
- package/dist/types/Alert/Alert.d.cts +3 -0
- package/dist/types/Alert/Alert.d.ts +3 -0
- package/dist/types/Alert/index.d.cts +5 -0
- package/dist/types/Alert/index.d.ts +5 -0
- package/dist/types/Alert/type.d.cts +21 -0
- package/dist/types/Alert/type.d.ts +21 -0
- package/dist/types/Anchor/Anchor.d.cts +3 -0
- package/dist/types/Anchor/Anchor.d.ts +3 -0
- package/dist/types/Anchor/index.d.cts +5 -0
- package/dist/types/Anchor/index.d.ts +5 -0
- package/dist/types/Anchor/type.d.cts +42 -0
- package/dist/types/Anchor/type.d.ts +42 -0
- package/dist/types/Announcement/Announcement.d.cts +3 -0
- package/dist/types/Announcement/Announcement.d.ts +3 -0
- package/dist/types/Announcement/host.d.cts +12 -0
- package/dist/types/Announcement/host.d.ts +12 -0
- package/dist/types/Announcement/index.d.cts +5 -0
- package/dist/types/Announcement/index.d.ts +5 -0
- package/dist/types/Announcement/type.d.cts +63 -0
- package/dist/types/Announcement/type.d.ts +63 -0
- package/dist/types/Button/Button.d.cts +23 -0
- package/dist/types/Button/Button.d.ts +23 -0
- package/dist/types/Button/ButtonGroup.d.cts +14 -0
- package/dist/types/Button/ButtonGroup.d.ts +14 -0
- package/dist/types/Button/context.d.cts +15 -0
- package/dist/types/Button/context.d.ts +15 -0
- package/dist/types/Button/index.d.cts +7 -0
- package/dist/types/Button/index.d.ts +7 -0
- package/dist/types/Button/type.d.cts +66 -0
- package/dist/types/Button/type.d.ts +66 -0
- package/dist/types/Card/Card.d.cts +15 -0
- package/dist/types/Card/Card.d.ts +15 -0
- package/dist/types/Card/index.d.cts +5 -0
- package/dist/types/Card/index.d.ts +5 -0
- package/dist/types/Card/type.d.cts +40 -0
- package/dist/types/Card/type.d.ts +40 -0
- package/dist/types/Checkbox/Checkbox.d.cts +3 -0
- package/dist/types/Checkbox/Checkbox.d.ts +3 -0
- package/dist/types/Checkbox/CheckboxGroup.d.cts +3 -0
- package/dist/types/Checkbox/CheckboxGroup.d.ts +3 -0
- package/dist/types/Checkbox/context.d.cts +19 -0
- package/dist/types/Checkbox/context.d.ts +19 -0
- package/dist/types/Checkbox/index.d.cts +7 -0
- package/dist/types/Checkbox/index.d.ts +7 -0
- package/dist/types/Checkbox/type.d.cts +55 -0
- package/dist/types/Checkbox/type.d.ts +55 -0
- package/dist/types/Col/Col.d.cts +3 -0
- package/dist/types/Col/Col.d.ts +3 -0
- package/dist/types/Col/index.d.cts +5 -0
- package/dist/types/Col/index.d.ts +5 -0
- package/dist/types/Col/type.d.cts +41 -0
- package/dist/types/Col/type.d.ts +41 -0
- package/dist/types/Cron/Cron.d.cts +3 -0
- package/dist/types/Cron/Cron.d.ts +3 -0
- package/dist/types/Cron/CronField.d.cts +14 -0
- package/dist/types/Cron/CronField.d.ts +14 -0
- package/dist/types/Cron/CronPanel.d.cts +27 -0
- package/dist/types/Cron/CronPanel.d.ts +27 -0
- package/dist/types/Cron/describe.d.cts +10 -0
- package/dist/types/Cron/describe.d.ts +10 -0
- package/dist/types/Cron/expression.d.cts +188 -0
- package/dist/types/Cron/expression.d.ts +188 -0
- package/dist/types/Cron/index.d.cts +5 -0
- package/dist/types/Cron/index.d.ts +5 -0
- package/dist/types/Cron/schedule.d.cts +15 -0
- package/dist/types/Cron/schedule.d.ts +15 -0
- package/dist/types/Cron/type.d.cts +65 -0
- package/dist/types/Cron/type.d.ts +65 -0
- package/dist/types/DatePicker/DatePicker.d.cts +3 -0
- package/dist/types/DatePicker/DatePicker.d.ts +3 -0
- package/dist/types/DatePicker/index.d.cts +5 -0
- package/dist/types/DatePicker/index.d.ts +5 -0
- package/dist/types/DatePicker/type.d.cts +89 -0
- package/dist/types/DatePicker/type.d.ts +89 -0
- package/dist/types/DateTimePicker/DateTimePicker.d.cts +3 -0
- package/dist/types/DateTimePicker/DateTimePicker.d.ts +3 -0
- package/dist/types/DateTimePicker/index.d.cts +5 -0
- package/dist/types/DateTimePicker/index.d.ts +5 -0
- package/dist/types/DateTimePicker/type.d.cts +64 -0
- package/dist/types/DateTimePicker/type.d.ts +64 -0
- package/dist/types/Divider/Divider.d.cts +3 -0
- package/dist/types/Divider/Divider.d.ts +3 -0
- package/dist/types/Divider/index.d.cts +5 -0
- package/dist/types/Divider/index.d.ts +5 -0
- package/dist/types/Divider/type.d.cts +20 -0
- package/dist/types/Divider/type.d.ts +20 -0
- package/dist/types/Drawer/Drawer.d.cts +3 -0
- package/dist/types/Drawer/Drawer.d.ts +3 -0
- package/dist/types/Drawer/index.d.cts +5 -0
- package/dist/types/Drawer/index.d.ts +5 -0
- package/dist/types/Drawer/type.d.cts +46 -0
- package/dist/types/Drawer/type.d.ts +46 -0
- package/dist/types/Dropdown/Dropdown.d.cts +3 -0
- package/dist/types/Dropdown/Dropdown.d.ts +3 -0
- package/dist/types/Dropdown/index.d.cts +5 -0
- package/dist/types/Dropdown/index.d.ts +5 -0
- package/dist/types/Dropdown/type.d.cts +67 -0
- package/dist/types/Dropdown/type.d.ts +67 -0
- package/dist/types/Form/Form.d.cts +3 -0
- package/dist/types/Form/Form.d.ts +3 -0
- package/dist/types/Form/FormItem.d.cts +3 -0
- package/dist/types/Form/FormItem.d.ts +3 -0
- package/dist/types/Form/context.d.cts +39 -0
- package/dist/types/Form/context.d.ts +39 -0
- package/dist/types/Form/index.d.cts +8 -0
- package/dist/types/Form/index.d.ts +8 -0
- package/dist/types/Form/type.d.cts +119 -0
- package/dist/types/Form/type.d.ts +119 -0
- package/dist/types/Input/Input.d.cts +3 -0
- package/dist/types/Input/Input.d.ts +3 -0
- package/dist/types/Input/index.d.cts +5 -0
- package/dist/types/Input/index.d.ts +5 -0
- package/dist/types/Input/type.d.cts +43 -0
- package/dist/types/Input/type.d.ts +43 -0
- package/dist/types/Loading/Loading.d.cts +3 -0
- package/dist/types/Loading/Loading.d.ts +3 -0
- package/dist/types/Loading/index.d.cts +5 -0
- package/dist/types/Loading/index.d.ts +5 -0
- package/dist/types/Loading/type.d.cts +18 -0
- package/dist/types/Loading/type.d.ts +18 -0
- package/dist/types/MessageBox/MessageBox.d.cts +3 -0
- package/dist/types/MessageBox/MessageBox.d.ts +3 -0
- package/dist/types/MessageBox/index.d.cts +5 -0
- package/dist/types/MessageBox/index.d.ts +5 -0
- package/dist/types/MessageBox/service.d.cts +12 -0
- package/dist/types/MessageBox/service.d.ts +12 -0
- package/dist/types/MessageBox/type.d.cts +62 -0
- package/dist/types/MessageBox/type.d.ts +62 -0
- package/dist/types/Modal/Modal.d.cts +3 -0
- package/dist/types/Modal/Modal.d.ts +3 -0
- package/dist/types/Modal/index.d.cts +5 -0
- package/dist/types/Modal/index.d.ts +5 -0
- package/dist/types/Modal/type.d.cts +50 -0
- package/dist/types/Modal/type.d.ts +50 -0
- package/dist/types/NumberInput/NumberInput.d.cts +3 -0
- package/dist/types/NumberInput/NumberInput.d.ts +3 -0
- package/dist/types/NumberInput/index.d.cts +5 -0
- package/dist/types/NumberInput/index.d.ts +5 -0
- package/dist/types/NumberInput/type.d.cts +40 -0
- package/dist/types/NumberInput/type.d.ts +40 -0
- package/dist/types/Pagination/Pagination.d.cts +3 -0
- package/dist/types/Pagination/Pagination.d.ts +3 -0
- package/dist/types/Pagination/index.d.cts +5 -0
- package/dist/types/Pagination/index.d.ts +5 -0
- package/dist/types/Pagination/type.d.cts +38 -0
- package/dist/types/Pagination/type.d.ts +38 -0
- package/dist/types/Progress/Progress.d.cts +3 -0
- package/dist/types/Progress/Progress.d.ts +3 -0
- package/dist/types/Progress/index.d.cts +5 -0
- package/dist/types/Progress/index.d.ts +5 -0
- package/dist/types/Progress/type.d.cts +30 -0
- package/dist/types/Progress/type.d.ts +30 -0
- package/dist/types/Radio/Radio.d.cts +3 -0
- package/dist/types/Radio/Radio.d.ts +3 -0
- package/dist/types/Radio/RadioGroup.d.cts +3 -0
- package/dist/types/Radio/RadioGroup.d.ts +3 -0
- package/dist/types/Radio/context.d.cts +19 -0
- package/dist/types/Radio/context.d.ts +19 -0
- package/dist/types/Radio/index.d.cts +7 -0
- package/dist/types/Radio/index.d.ts +7 -0
- package/dist/types/Radio/type.d.cts +53 -0
- package/dist/types/Radio/type.d.ts +53 -0
- package/dist/types/Row/Row.d.cts +8 -0
- package/dist/types/Row/Row.d.ts +8 -0
- package/dist/types/Row/index.d.cts +5 -0
- package/dist/types/Row/index.d.ts +5 -0
- package/dist/types/Row/type.d.cts +20 -0
- package/dist/types/Row/type.d.ts +20 -0
- package/dist/types/Scrollbar/Scrollbar.d.cts +3 -0
- package/dist/types/Scrollbar/Scrollbar.d.ts +3 -0
- package/dist/types/Scrollbar/index.d.cts +5 -0
- package/dist/types/Scrollbar/index.d.ts +5 -0
- package/dist/types/Scrollbar/type.d.cts +60 -0
- package/dist/types/Scrollbar/type.d.ts +60 -0
- package/dist/types/Select/Select.d.cts +3 -0
- package/dist/types/Select/Select.d.ts +3 -0
- package/dist/types/Select/index.d.cts +5 -0
- package/dist/types/Select/index.d.ts +5 -0
- package/dist/types/Select/type.d.cts +91 -0
- package/dist/types/Select/type.d.ts +91 -0
- package/dist/types/Sidebar/Sidebar.d.cts +3 -0
- package/dist/types/Sidebar/Sidebar.d.ts +3 -0
- package/dist/types/Sidebar/index.d.cts +5 -0
- package/dist/types/Sidebar/index.d.ts +5 -0
- package/dist/types/Sidebar/type.d.cts +54 -0
- package/dist/types/Sidebar/type.d.ts +54 -0
- package/dist/types/Slider/Slider.d.cts +3 -0
- package/dist/types/Slider/Slider.d.ts +3 -0
- package/dist/types/Slider/index.d.cts +5 -0
- package/dist/types/Slider/index.d.ts +5 -0
- package/dist/types/Slider/type.d.cts +47 -0
- package/dist/types/Slider/type.d.ts +47 -0
- package/dist/types/Space/Space.d.cts +3 -0
- package/dist/types/Space/Space.d.ts +3 -0
- package/dist/types/Space/index.d.cts +5 -0
- package/dist/types/Space/index.d.ts +5 -0
- package/dist/types/Space/type.d.cts +28 -0
- package/dist/types/Space/type.d.ts +28 -0
- package/dist/types/Switch/Switch.d.cts +3 -0
- package/dist/types/Switch/Switch.d.ts +3 -0
- package/dist/types/Switch/index.d.cts +5 -0
- package/dist/types/Switch/index.d.ts +5 -0
- package/dist/types/Switch/type.d.cts +28 -0
- package/dist/types/Switch/type.d.ts +28 -0
- package/dist/types/Table/Table.d.cts +8 -0
- package/dist/types/Table/Table.d.ts +8 -0
- package/dist/types/Table/index.d.cts +8 -0
- package/dist/types/Table/index.d.ts +8 -0
- package/dist/types/Table/type.d.cts +135 -0
- package/dist/types/Table/type.d.ts +135 -0
- package/dist/types/Tabs/Tabs.d.cts +3 -0
- package/dist/types/Tabs/Tabs.d.ts +3 -0
- package/dist/types/Tabs/index.d.cts +5 -0
- package/dist/types/Tabs/index.d.ts +5 -0
- package/dist/types/Tabs/type.d.cts +45 -0
- package/dist/types/Tabs/type.d.ts +45 -0
- package/dist/types/Tag/Tag.d.cts +3 -0
- package/dist/types/Tag/Tag.d.ts +3 -0
- package/dist/types/Tag/index.d.cts +5 -0
- package/dist/types/Tag/index.d.ts +5 -0
- package/dist/types/Tag/type.d.cts +24 -0
- package/dist/types/Tag/type.d.ts +24 -0
- package/dist/types/Textarea/Textarea.d.cts +3 -0
- package/dist/types/Textarea/Textarea.d.ts +3 -0
- package/dist/types/Textarea/index.d.cts +5 -0
- package/dist/types/Textarea/index.d.ts +5 -0
- package/dist/types/Textarea/type.d.cts +32 -0
- package/dist/types/Textarea/type.d.ts +32 -0
- package/dist/types/TimePicker/TimePicker.d.cts +3 -0
- package/dist/types/TimePicker/TimePicker.d.ts +3 -0
- package/dist/types/TimePicker/index.d.cts +5 -0
- package/dist/types/TimePicker/index.d.ts +5 -0
- package/dist/types/TimePicker/type.d.cts +55 -0
- package/dist/types/TimePicker/type.d.ts +55 -0
- package/dist/types/Timeline/Timeline.d.cts +3 -0
- package/dist/types/Timeline/Timeline.d.ts +3 -0
- package/dist/types/Timeline/index.d.cts +5 -0
- package/dist/types/Timeline/index.d.ts +5 -0
- package/dist/types/Timeline/type.d.cts +49 -0
- package/dist/types/Timeline/type.d.ts +49 -0
- package/dist/types/Tooltip/Tooltip.d.cts +3 -0
- package/dist/types/Tooltip/Tooltip.d.ts +3 -0
- package/dist/types/Tooltip/index.d.cts +5 -0
- package/dist/types/Tooltip/index.d.ts +5 -0
- package/dist/types/Tooltip/type.d.cts +40 -0
- package/dist/types/Tooltip/type.d.ts +40 -0
- package/dist/types/Transition/Transition.d.cts +6 -0
- package/dist/types/Transition/Transition.d.ts +6 -0
- package/dist/types/Transition/index.d.cts +8 -0
- package/dist/types/Transition/index.d.ts +8 -0
- package/dist/types/Transition/type.d.cts +22 -0
- package/dist/types/Transition/type.d.ts +22 -0
- package/dist/types/_shared/client.d.cts +9 -0
- package/dist/types/_shared/client.d.ts +9 -0
- package/dist/types/_shared/date-picker.d.cts +17 -0
- package/dist/types/_shared/date-picker.d.ts +17 -0
- package/dist/types/_shared/date.d.cts +55 -0
- package/dist/types/_shared/date.d.ts +55 -0
- package/dist/types/_shared/dialog-shell.d.cts +59 -0
- package/dist/types/_shared/dialog-shell.d.ts +59 -0
- package/dist/types/_shared/dialog.d.cts +20 -0
- package/dist/types/_shared/dialog.d.ts +20 -0
- package/dist/types/_shared/effect.d.cts +8 -0
- package/dist/types/_shared/effect.d.ts +8 -0
- package/dist/types/_shared/floating.d.cts +88 -0
- package/dist/types/_shared/floating.d.ts +88 -0
- package/dist/types/_shared/focus.d.cts +33 -0
- package/dist/types/_shared/focus.d.ts +33 -0
- package/dist/types/_shared/icon.d.cts +15 -0
- package/dist/types/_shared/icon.d.ts +15 -0
- package/dist/types/_shared/id.d.cts +10 -0
- package/dist/types/_shared/id.d.ts +10 -0
- package/dist/types/_shared/number.d.cts +22 -0
- package/dist/types/_shared/number.d.ts +22 -0
- package/dist/types/_shared/refs.d.cts +18 -0
- package/dist/types/_shared/refs.d.ts +18 -0
- package/dist/types/_shared/state.d.cts +15 -0
- package/dist/types/_shared/state.d.ts +15 -0
- package/dist/types/_shared/time-constraints.d.cts +31 -0
- package/dist/types/_shared/time-constraints.d.ts +31 -0
- package/dist/types/_shared/time-wheel.d.cts +34 -0
- package/dist/types/_shared/time-wheel.d.ts +34 -0
- package/dist/types/_vars.d.cts +7 -0
- package/dist/types/_vars.d.ts +7 -0
- package/dist/types/global.d.cts +86 -0
- package/dist/types/global.d.ts +86 -0
- package/dist/types/index.d.cts +42 -0
- package/dist/types/index.d.ts +42 -0
- package/dist/types/register.d.cts +1 -0
- package/dist/types/register.d.ts +1 -0
- package/dist/types/registry.d.cts +66 -0
- package/dist/types/registry.d.ts +66 -0
- package/dist/types/style.d.cts +7 -0
- package/dist/types/style.d.ts +7 -0
- package/package.json +165 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { t as e } from "./Transition-DiO4GsP3.js";
|
|
2
|
+
import { a as t, r as n } from "./focus-BDDJyKk3.js";
|
|
3
|
+
import { useCallback as r, useEffect as i, useRef as a } from "react";
|
|
4
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
+
import { createPortal as l } from "react-dom";
|
|
6
|
+
//#region components/_shared/dialog.ts
|
|
7
|
+
var u = [], d = /* @__PURE__ */ new Set(), f = 0, p = 0, m = "", h = "", g = "", _ = (e) => (u.push(e), d.forEach((e) => e()), () => {
|
|
8
|
+
let t = u.lastIndexOf(e);
|
|
9
|
+
t >= 0 && u.splice(t, 1), d.forEach((e) => e());
|
|
10
|
+
}), v = (e) => u.at(-1) === e, y = () => {
|
|
11
|
+
if (f === 0) {
|
|
12
|
+
m = document.body.style.overflow, h = document.body.style.paddingRight;
|
|
13
|
+
let e = document.documentElement.clientWidth, t = e > 0 ? Math.max(0, window.innerWidth - e) : 0;
|
|
14
|
+
if (t > 0) {
|
|
15
|
+
let e = Number.parseFloat(window.getComputedStyle(document.body).paddingRight) || 0;
|
|
16
|
+
document.body.style.paddingRight = `${e + t}px`;
|
|
17
|
+
}
|
|
18
|
+
document.body.style.overflow = "hidden";
|
|
19
|
+
}
|
|
20
|
+
f += 1;
|
|
21
|
+
let e = !1;
|
|
22
|
+
return () => {
|
|
23
|
+
e || (e = !0, f = Math.max(0, f - 1), f === 0 && (document.body.style.overflow = m, document.body.style.paddingRight = h));
|
|
24
|
+
};
|
|
25
|
+
}, b = () => {
|
|
26
|
+
p === 0 && (g = document.body.style.userSelect, document.body.style.userSelect = "none"), p += 1;
|
|
27
|
+
let e = !1;
|
|
28
|
+
return () => {
|
|
29
|
+
e || (e = !0, p = Math.max(0, p - 1), p === 0 && (document.body.style.userSelect = g));
|
|
30
|
+
};
|
|
31
|
+
}, x = ({ active: e, containerRef: o, closeOnPressEscape: s, lockScroll: c, onRequestClose: l }) => {
|
|
32
|
+
let u = a(Symbol("vl-dialog")), f = a(null), p = r(() => v(u.current), []);
|
|
33
|
+
return i(() => {
|
|
34
|
+
if (!e) return;
|
|
35
|
+
let r = u.current;
|
|
36
|
+
f.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
37
|
+
let i = _(r), a = c ? y() : () => {}, p = () => {
|
|
38
|
+
let e = o.current;
|
|
39
|
+
e && n(e);
|
|
40
|
+
}, m = window.requestAnimationFrame(p), h = () => {
|
|
41
|
+
v(r) && (o.current?.contains(document.activeElement) || window.requestAnimationFrame(p));
|
|
42
|
+
};
|
|
43
|
+
d.add(h);
|
|
44
|
+
let g = (e) => {
|
|
45
|
+
if (!v(r)) return;
|
|
46
|
+
if (e.key === "Escape" && s) {
|
|
47
|
+
e.preventDefault(), l();
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (e.key !== "Tab") return;
|
|
51
|
+
let n = o.current;
|
|
52
|
+
if (!n) return;
|
|
53
|
+
let i = t(n);
|
|
54
|
+
if (!i.length) {
|
|
55
|
+
e.preventDefault(), n.focus({ preventScroll: !0 });
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
let a = i[0], c = i.at(-1) ?? a, u = document.activeElement;
|
|
59
|
+
e.shiftKey && (u === a || !n.contains(u)) ? (e.preventDefault(), c.focus()) : !e.shiftKey && (u === c || !n.contains(u)) && (e.preventDefault(), a.focus());
|
|
60
|
+
}, b = (e) => {
|
|
61
|
+
if (!v(r)) return;
|
|
62
|
+
let t = o.current;
|
|
63
|
+
!t || t.contains(e.target) || n(t);
|
|
64
|
+
};
|
|
65
|
+
return document.addEventListener("keydown", g), document.addEventListener("focusin", b), () => {
|
|
66
|
+
window.cancelAnimationFrame(m), document.removeEventListener("keydown", g), document.removeEventListener("focusin", b), d.delete(h), i(), a();
|
|
67
|
+
let e = f.current;
|
|
68
|
+
f.current = null, window.requestAnimationFrame(() => {
|
|
69
|
+
e?.isConnected && e.focus({ preventScroll: !0 });
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
}, [
|
|
73
|
+
e,
|
|
74
|
+
s,
|
|
75
|
+
o,
|
|
76
|
+
c,
|
|
77
|
+
l
|
|
78
|
+
]), { isTopLayer: p };
|
|
79
|
+
}, S = ({ clientReady: t, open: n, mask: r, destroyOnClose: i, maskUnmountOnExit: a = !1, maskTransitionName: u, transitionName: d, maskClassName: f, panelClassName: p, panelStyle: m, maskStyle: h, panelRef: g, role: _, ariaModal: v = !0, ariaLabel: y, ariaLabelledBy: b, ariaDescribedBy: x, onMaskClick: S, onPanelClick: C, onAfterLeave: w, panelProps: T, children: E }) => t ? l(/* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(e, {
|
|
80
|
+
show: n && r,
|
|
81
|
+
name: u,
|
|
82
|
+
unmountOnExit: a,
|
|
83
|
+
children: /* @__PURE__ */ s("div", {
|
|
84
|
+
className: f,
|
|
85
|
+
style: h,
|
|
86
|
+
"aria-hidden": "true",
|
|
87
|
+
onClick: S
|
|
88
|
+
})
|
|
89
|
+
}), /* @__PURE__ */ s(e, {
|
|
90
|
+
show: n,
|
|
91
|
+
name: d,
|
|
92
|
+
unmountOnExit: i,
|
|
93
|
+
onAfterLeave: w,
|
|
94
|
+
children: /* @__PURE__ */ s("div", {
|
|
95
|
+
ref: g,
|
|
96
|
+
className: p,
|
|
97
|
+
style: m,
|
|
98
|
+
role: _,
|
|
99
|
+
"aria-modal": v,
|
|
100
|
+
"aria-label": y,
|
|
101
|
+
"aria-labelledby": b,
|
|
102
|
+
"aria-describedby": x,
|
|
103
|
+
"aria-hidden": !n || void 0,
|
|
104
|
+
tabIndex: -1,
|
|
105
|
+
onClick: C,
|
|
106
|
+
...T,
|
|
107
|
+
children: E
|
|
108
|
+
})
|
|
109
|
+
})] }), document.body) : null;
|
|
110
|
+
//#endregion
|
|
111
|
+
export { b as n, x as r, S as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require("react");var t=typeof window>`u`?e.useEffect:e.useLayoutEffect;Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
|
package/dist/es/Card.mjs
ADDED
package/dist/es/Col.mjs
ADDED
package/dist/es/Cron.mjs
ADDED
package/dist/es/Form.mjs
ADDED
package/dist/es/Row.mjs
ADDED
package/dist/es/Tabs.mjs
ADDED
package/dist/es/Tag.mjs
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { n as e } from "../Alert-BGyLKuv0.js";
|
|
3
|
+
import { n as t } from "../Anchor-QZROepM_.js";
|
|
4
|
+
import { n } from "../Announcement-D_NccvTm.js";
|
|
5
|
+
import { n as r, r as i } from "../Button-CwkWSWau.js";
|
|
6
|
+
import { n as a } from "../Card-DlztNV-6.js";
|
|
7
|
+
import { n as o, r as s } from "../Checkbox-CQeqLO0S.js";
|
|
8
|
+
import { n as c } from "../Col-CZjR94ac.js";
|
|
9
|
+
import { n as l } from "../Transition-DiO4GsP3.js";
|
|
10
|
+
import { n as u } from "../Input-CIB_TY2n.js";
|
|
11
|
+
import { n as d } from "../Tabs-VT6nQ63W.js";
|
|
12
|
+
import { n as f } from "../NumberInput-C_vLULbX.js";
|
|
13
|
+
import { n as p } from "../Cron-Di7k2FTL.js";
|
|
14
|
+
import { n as m } from "../Dropdown-CYx6RxVv.js";
|
|
15
|
+
import { n as h } from "../DatePicker-M-MwejjV.js";
|
|
16
|
+
import { n as g } from "../DateTimePicker-BcT3FtN-.js";
|
|
17
|
+
import { n as _ } from "../Divider-vyftxh3F.js";
|
|
18
|
+
import { n as v } from "../Drawer-D28QbyA3.js";
|
|
19
|
+
import { n as y, t as b } from "../Form-CwgaAZWr.js";
|
|
20
|
+
import { n as x } from "../Loading-CL0wUgYK.js";
|
|
21
|
+
import { n as S } from "../Modal-B_VqN16m.js";
|
|
22
|
+
import { t as C } from "../MessageBox-CrIifoig.js";
|
|
23
|
+
import { n as w } from "../Pagination-B7a9v6BU.js";
|
|
24
|
+
import { n as T } from "../Progress-D2C6LCml.js";
|
|
25
|
+
import { VlRadio as E, VlRadioGroup as D } from "./Radio.mjs";
|
|
26
|
+
import { VlRow as O } from "./Row.mjs";
|
|
27
|
+
import { n as k } from "../Scrollbar-BdMGZrYi.js";
|
|
28
|
+
import { n as A } from "../Select-DccM9YpB.js";
|
|
29
|
+
import { n as j } from "../Sidebar-u980T-QB.js";
|
|
30
|
+
import { n as M } from "../Slider-BzlZc0p4.js";
|
|
31
|
+
import { n as N } from "../Space-gnVH7rEt.js";
|
|
32
|
+
import { n as P } from "../Switch-DOO2tiYR.js";
|
|
33
|
+
import { n as F } from "../Tooltip-Ds4Odm7K.js";
|
|
34
|
+
import { n as I } from "../Table-C8cSyts5.js";
|
|
35
|
+
import { n as L } from "../Tag-CkfqoSwA.js";
|
|
36
|
+
import { n as R } from "../Textarea-BEd7ToXv.js";
|
|
37
|
+
import { n as z } from "../Timeline-euWvUS4e.js";
|
|
38
|
+
import { n as B } from "../TimePicker-ClQCHa6M.js";
|
|
39
|
+
import { n as V, t as H } from "../registry-CkiH1x-J.js";
|
|
40
|
+
export { e as VlAlert, t as VlAnchor, n as VlAnnouncement, r as VlButton, i as VlButtonGroup, a as VlCard, o as VlCheckbox, s as VlCheckboxGroup, c as VlCol, p as VlCron, h as VlDatePicker, g as VlDateTimePicker, _ as VlDivider, v as VlDrawer, m as VlDropdown, b as VlForm, y as VlFormItem, u as VlInput, x as VlLoading, C as VlMessageBox, S as VlModal, f as VlNumberInput, w as VlPagination, T as VlProgress, E as VlRadio, D as VlRadioGroup, O as VlRow, k as VlScrollbar, A as VlSelect, j as VlSidebar, M as VlSlider, N as VlSpace, P as VlSwitch, I as VlTable, d as VlTabs, L as VlTag, R as VlTextarea, B as VlTimePicker, z as VlTimeline, F as VlTooltip, l as VlTransition, H as globalComponents, V as registerGlobalComponents };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { t as e } from "./number-BN2jHM6Z.js";
|
|
2
|
+
import { useEffect as t } from "react";
|
|
3
|
+
//#region components/_shared/floating.ts
|
|
4
|
+
var n = ({ active: e, rootRef: n, floatingRef: r, closeOnOutsideClick: i = !0, ignoreEscapeInsideFloating: a = !1, isOwnedPopup: o, onOutsideClick: s, onEscape: c, onViewportChange: l }) => {
|
|
5
|
+
t(() => {
|
|
6
|
+
if (!e) return;
|
|
7
|
+
let t = (e) => {
|
|
8
|
+
if (!i) return;
|
|
9
|
+
let t = e.composedPath(), a = n.current, c = r.current;
|
|
10
|
+
!a || t.includes(a) || c && t.includes(c) || o?.(t) || s?.();
|
|
11
|
+
}, u = (e) => {
|
|
12
|
+
e.key !== "Escape" || a && r.current?.contains(e.target) || (e.preventDefault(), c?.());
|
|
13
|
+
};
|
|
14
|
+
return document.addEventListener("pointerdown", t, !0), c && document.addEventListener("keydown", u), l && (window.addEventListener("resize", l, { passive: !0 }), window.addEventListener("scroll", l, {
|
|
15
|
+
passive: !0,
|
|
16
|
+
capture: !0
|
|
17
|
+
})), () => {
|
|
18
|
+
document.removeEventListener("pointerdown", t, !0), c && document.removeEventListener("keydown", u), l && (window.removeEventListener("resize", l), window.removeEventListener("scroll", l, !0));
|
|
19
|
+
};
|
|
20
|
+
}, [
|
|
21
|
+
e,
|
|
22
|
+
i,
|
|
23
|
+
r,
|
|
24
|
+
a,
|
|
25
|
+
o,
|
|
26
|
+
c,
|
|
27
|
+
s,
|
|
28
|
+
l,
|
|
29
|
+
n
|
|
30
|
+
]);
|
|
31
|
+
}, r = (e) => ({
|
|
32
|
+
"bottom-start": [
|
|
33
|
+
"bottom-start",
|
|
34
|
+
"bottom-end",
|
|
35
|
+
"top-start",
|
|
36
|
+
"top-end"
|
|
37
|
+
],
|
|
38
|
+
"bottom-end": [
|
|
39
|
+
"bottom-end",
|
|
40
|
+
"bottom-start",
|
|
41
|
+
"top-end",
|
|
42
|
+
"top-start"
|
|
43
|
+
],
|
|
44
|
+
"top-start": [
|
|
45
|
+
"top-start",
|
|
46
|
+
"top-end",
|
|
47
|
+
"bottom-start",
|
|
48
|
+
"bottom-end"
|
|
49
|
+
],
|
|
50
|
+
"top-end": [
|
|
51
|
+
"top-end",
|
|
52
|
+
"top-start",
|
|
53
|
+
"bottom-end",
|
|
54
|
+
"bottom-start"
|
|
55
|
+
]
|
|
56
|
+
})[e], i = ({ anchorRect: t, floatingRect: n, placement: r, offset: i, edgePadding: o = 8, getCandidates: s = a, fallbackFits: c }) => {
|
|
57
|
+
let l = (e) => {
|
|
58
|
+
let r = e.split("-")[0], a = !e.endsWith("-start") && !e.endsWith("-end"), o = e.endsWith("-end");
|
|
59
|
+
if (r === "top" || r === "bottom") return {
|
|
60
|
+
x: a ? t.left + (t.width - n.width) / 2 : o ? t.right - n.width : t.left,
|
|
61
|
+
y: r === "top" ? t.top - i - n.height : t.bottom + i
|
|
62
|
+
};
|
|
63
|
+
let s = a ? t.top + (t.height - n.height) / 2 : o ? t.bottom - n.height : t.top;
|
|
64
|
+
return {
|
|
65
|
+
x: r === "left" ? t.left - i - n.width : t.right + i,
|
|
66
|
+
y: s
|
|
67
|
+
};
|
|
68
|
+
}, u = ({ x: e, y: t }) => e >= o && e + n.width <= window.innerWidth - o && t >= o && t + n.height <= window.innerHeight - o, d = s(r), f = d.find((e) => u(l(e))) ?? (c ? d.find((e) => c(l(e))) : void 0) ?? r, p = l(f), m = Math.max(o, window.innerWidth - n.width - o), h = Math.max(o, window.innerHeight - n.height - o);
|
|
69
|
+
return {
|
|
70
|
+
placement: f,
|
|
71
|
+
x: e(p.x, o, m),
|
|
72
|
+
y: e(p.y, o, h)
|
|
73
|
+
};
|
|
74
|
+
}, a = (e) => ({
|
|
75
|
+
top: [
|
|
76
|
+
"top",
|
|
77
|
+
"bottom",
|
|
78
|
+
"left",
|
|
79
|
+
"right"
|
|
80
|
+
],
|
|
81
|
+
"top-start": [
|
|
82
|
+
"top-start",
|
|
83
|
+
"bottom-start",
|
|
84
|
+
"top-end",
|
|
85
|
+
"bottom-end"
|
|
86
|
+
],
|
|
87
|
+
"top-end": [
|
|
88
|
+
"top-end",
|
|
89
|
+
"bottom-end",
|
|
90
|
+
"top-start",
|
|
91
|
+
"bottom-start"
|
|
92
|
+
],
|
|
93
|
+
bottom: [
|
|
94
|
+
"bottom",
|
|
95
|
+
"top",
|
|
96
|
+
"left",
|
|
97
|
+
"right"
|
|
98
|
+
],
|
|
99
|
+
"bottom-start": [
|
|
100
|
+
"bottom-start",
|
|
101
|
+
"top-start",
|
|
102
|
+
"bottom-end",
|
|
103
|
+
"top-end"
|
|
104
|
+
],
|
|
105
|
+
"bottom-end": [
|
|
106
|
+
"bottom-end",
|
|
107
|
+
"top-end",
|
|
108
|
+
"bottom-start",
|
|
109
|
+
"top-start"
|
|
110
|
+
],
|
|
111
|
+
left: [
|
|
112
|
+
"left",
|
|
113
|
+
"right",
|
|
114
|
+
"top",
|
|
115
|
+
"bottom"
|
|
116
|
+
],
|
|
117
|
+
"left-start": [
|
|
118
|
+
"left-start",
|
|
119
|
+
"right-start",
|
|
120
|
+
"left-end",
|
|
121
|
+
"right-end"
|
|
122
|
+
],
|
|
123
|
+
"left-end": [
|
|
124
|
+
"left-end",
|
|
125
|
+
"right-end",
|
|
126
|
+
"left-start",
|
|
127
|
+
"right-start"
|
|
128
|
+
],
|
|
129
|
+
right: [
|
|
130
|
+
"right",
|
|
131
|
+
"left",
|
|
132
|
+
"top",
|
|
133
|
+
"bottom"
|
|
134
|
+
],
|
|
135
|
+
"right-start": [
|
|
136
|
+
"right-start",
|
|
137
|
+
"left-start",
|
|
138
|
+
"right-end",
|
|
139
|
+
"left-end"
|
|
140
|
+
],
|
|
141
|
+
"right-end": [
|
|
142
|
+
"right-end",
|
|
143
|
+
"left-end",
|
|
144
|
+
"right-start",
|
|
145
|
+
"left-start"
|
|
146
|
+
]
|
|
147
|
+
})[e], o = (e) => {
|
|
148
|
+
let { edgePadding: t = 8, ...n } = e;
|
|
149
|
+
return i({
|
|
150
|
+
...n,
|
|
151
|
+
edgePadding: t,
|
|
152
|
+
getCandidates: r,
|
|
153
|
+
fallbackFits: ({ y: n }) => n >= t && n + e.floatingRect.height <= window.innerHeight - t
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
//#endregion
|
|
157
|
+
export { i as n, n as r, o as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./number-B7qJF_ZY.cjs");let t=require("react");var n=({active:e,rootRef:n,floatingRef:r,closeOnOutsideClick:i=!0,ignoreEscapeInsideFloating:a=!1,isOwnedPopup:o,onOutsideClick:s,onEscape:c,onViewportChange:l})=>{(0,t.useEffect)(()=>{if(!e)return;let t=e=>{if(!i)return;let t=e.composedPath(),a=n.current,c=r.current;!a||t.includes(a)||c&&t.includes(c)||o?.(t)||s?.()},u=e=>{e.key!==`Escape`||a&&r.current?.contains(e.target)||(e.preventDefault(),c?.())};return document.addEventListener(`pointerdown`,t,!0),c&&document.addEventListener(`keydown`,u),l&&(window.addEventListener(`resize`,l,{passive:!0}),window.addEventListener(`scroll`,l,{passive:!0,capture:!0})),()=>{document.removeEventListener(`pointerdown`,t,!0),c&&document.removeEventListener(`keydown`,u),l&&(window.removeEventListener(`resize`,l),window.removeEventListener(`scroll`,l,!0))}},[e,i,r,a,o,c,s,l,n])},r=e=>({"bottom-start":[`bottom-start`,`bottom-end`,`top-start`,`top-end`],"bottom-end":[`bottom-end`,`bottom-start`,`top-end`,`top-start`],"top-start":[`top-start`,`top-end`,`bottom-start`,`bottom-end`],"top-end":[`top-end`,`top-start`,`bottom-end`,`bottom-start`]})[e],i=({anchorRect:t,floatingRect:n,placement:r,offset:i,edgePadding:o=8,getCandidates:s=a,fallbackFits:c})=>{let l=e=>{let r=e.split(`-`)[0],a=!e.endsWith(`-start`)&&!e.endsWith(`-end`),o=e.endsWith(`-end`);if(r===`top`||r===`bottom`)return{x:a?t.left+(t.width-n.width)/2:o?t.right-n.width:t.left,y:r===`top`?t.top-i-n.height:t.bottom+i};let s=a?t.top+(t.height-n.height)/2:o?t.bottom-n.height:t.top;return{x:r===`left`?t.left-i-n.width:t.right+i,y:s}},u=({x:e,y:t})=>e>=o&&e+n.width<=window.innerWidth-o&&t>=o&&t+n.height<=window.innerHeight-o,d=s(r),f=d.find(e=>u(l(e)))??(c?d.find(e=>c(l(e))):void 0)??r,p=l(f),m=Math.max(o,window.innerWidth-n.width-o),h=Math.max(o,window.innerHeight-n.height-o);return{placement:f,x:e.t(p.x,o,m),y:e.t(p.y,o,h)}},a=e=>({top:[`top`,`bottom`,`left`,`right`],"top-start":[`top-start`,`bottom-start`,`top-end`,`bottom-end`],"top-end":[`top-end`,`bottom-end`,`top-start`,`bottom-start`],bottom:[`bottom`,`top`,`left`,`right`],"bottom-start":[`bottom-start`,`top-start`,`bottom-end`,`top-end`],"bottom-end":[`bottom-end`,`top-end`,`bottom-start`,`top-start`],left:[`left`,`right`,`top`,`bottom`],"left-start":[`left-start`,`right-start`,`left-end`,`right-end`],"left-end":[`left-end`,`right-end`,`left-start`,`right-start`],right:[`right`,`left`,`top`,`bottom`],"right-start":[`right-start`,`left-start`,`right-end`,`left-end`],"right-end":[`right-end`,`left-end`,`right-start`,`left-start`]})[e],o=e=>{let{edgePadding:t=8,...n}=e;return i({...n,edgePadding:t,getCandidates:r,fallbackFits:({y:n})=>n>=t&&n+e.floatingRect.height<=window.innerHeight-t})};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region components/_shared/focus.ts
|
|
2
|
+
var e = "button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", t = "data-vl-autofocus", n = (t) => Array.from(t.querySelectorAll(e)).filter((e) => e.getAttribute("aria-hidden") !== "true" && !e.closest("[inert]")), r = (e) => {
|
|
3
|
+
let r = n(e);
|
|
4
|
+
(r.find((e) => e.matches(`[${t}], [autofocus]`)) ?? r[0] ?? e).focus({ preventScroll: !0 });
|
|
5
|
+
}, i = (e) => {
|
|
6
|
+
e && (e.matches("button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])") && e.getAttribute("aria-hidden") !== "true" && !e.closest("[inert]") ? e : n(e)[0])?.focus();
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as a, e as i, i as n, r, t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])`,t=`data-vl-autofocus`,n=t=>Array.from(t.querySelectorAll(e)).filter(e=>e.getAttribute(`aria-hidden`)!==`true`&&!e.closest(`[inert]`)),r=e=>{let r=n(e);(r.find(e=>e.matches(`[${t}], [autofocus]`))??r[0]??e).focus({preventScroll:!0})},i=e=>{e&&(e.matches(`button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])`)&&e.getAttribute(`aria-hidden`)!==`true`&&!e.closest(`[inert]`)?e:n(e)[0])?.focus()};Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { cloneElement as e, createElement as t, isValidElement as n } from "react";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
//#region components/_shared/icon.tsx
|
|
4
|
+
var i = (r, i) => {
|
|
5
|
+
if (!r) return null;
|
|
6
|
+
let a = {
|
|
7
|
+
...i ? { className: i } : {},
|
|
8
|
+
"aria-hidden": !0,
|
|
9
|
+
focusable: !1
|
|
10
|
+
};
|
|
11
|
+
if (n(r)) {
|
|
12
|
+
let t = [i, r.props.className].filter(Boolean).join(" ") || void 0;
|
|
13
|
+
return e(r, {
|
|
14
|
+
...a,
|
|
15
|
+
className: t
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return t(r, a);
|
|
19
|
+
}, a = (e, t) => e ? n(e) || typeof e == "function" || typeof e == "object" && e && "$$typeof" in e ? i(e, t) : /* @__PURE__ */ r("span", {
|
|
20
|
+
className: t,
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
children: e
|
|
23
|
+
}) : null;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { i as n, a as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require("react"),t=require("react/jsx-runtime");var n=(t,n)=>{if(!t)return null;let r={...n?{className:n}:{},"aria-hidden":!0,focusable:!1};if((0,e.isValidElement)(t)){let i=[n,t.props.className].filter(Boolean).join(` `)||void 0;return(0,e.cloneElement)(t,{...r,className:i})}return(0,e.createElement)(t,r)},r=(r,i)=>r?(0,e.isValidElement)(r)||typeof r==`function`||typeof r==`object`&&r&&`$$typeof`in r?n(r,i):(0,t.jsx)(`span`,{className:i,"aria-hidden":`true`,children:r}):null;Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require("react");var t=(t,n)=>{let r=(0,e.useId)();return n??`${t}-${r.replaceAll(`:`,``)}`};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
|