@soxa-ui/react 0.0.0-stage → 0.3.0-beta.1
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/LICENSE +21 -0
- package/README.md +253 -2
- package/dist/adapter/common/aria.d.ts +6 -0
- package/dist/adapter/common/aria.js +22 -0
- package/dist/adapter/common/icon.d.ts +9 -0
- package/dist/adapter/common/icon.js +22 -0
- package/dist/adapter/common/index.d.ts +6 -0
- package/dist/adapter/common/naming.d.ts +6 -0
- package/dist/adapter/common/naming.js +8 -0
- package/dist/adapter/common/profile.d.ts +3 -0
- package/dist/adapter/common/profile.js +8 -0
- package/dist/adapter/common/root.d.ts +67 -0
- package/dist/adapter/common/root.js +83 -0
- package/dist/adapter/common/slots.d.ts +15 -0
- package/dist/adapter/common/slots.js +23 -0
- package/dist/adapter/elevator/Elevate.d.ts +16 -0
- package/dist/adapter/elevator/Elevate.js +22 -0
- package/dist/adapter/elevator/elevator.class.d.ts +14 -0
- package/dist/adapter/elevator/elevator.class.js +23 -0
- package/dist/adapter/elevator/index.d.ts +3 -0
- package/dist/adapter/elevator/layer.d.ts +6 -0
- package/dist/adapter/elevator/layer.js +5 -0
- package/dist/adapter/elevator/scope.class.d.ts +19 -0
- package/dist/adapter/elevator/scope.class.js +31 -0
- package/dist/adapter/index.d.ts +5 -0
- package/dist/adapter/locale/LocaleProvider.d.ts +19 -0
- package/dist/adapter/locale/LocaleProvider.js +29 -0
- package/dist/adapter/locale/context.d.ts +3 -0
- package/dist/adapter/locale/context.js +7 -0
- package/dist/adapter/locale/index.d.ts +2 -0
- package/dist/adapter/runtime/NativeInput.d.ts +24 -0
- package/dist/adapter/runtime/NativeInput.js +40 -0
- package/dist/adapter/runtime/NativeTextarea.d.ts +10 -0
- package/dist/adapter/runtime/NativeTextarea.js +24 -0
- package/dist/adapter/runtime/Teleport.d.ts +14 -0
- package/dist/adapter/runtime/Teleport.js +82 -0
- package/dist/adapter/runtime/accepting.d.ts +10 -0
- package/dist/adapter/runtime/accepting.js +18 -0
- package/dist/adapter/runtime/click-action.class.d.ts +14 -0
- package/dist/adapter/runtime/click-action.class.js +26 -0
- package/dist/adapter/runtime/drafts.class.d.ts +24 -0
- package/dist/adapter/runtime/drafts.class.js +41 -0
- package/dist/adapter/runtime/event-callbacks.class.d.ts +29 -0
- package/dist/adapter/runtime/event-callbacks.class.js +44 -0
- package/dist/adapter/runtime/index.d.ts +16 -0
- package/dist/adapter/runtime/root-ref.class.d.ts +39 -0
- package/dist/adapter/runtime/root-ref.class.js +86 -0
- package/dist/adapter/runtime/stable-snapshot.class.d.ts +20 -0
- package/dist/adapter/runtime/stable-snapshot.class.js +43 -0
- package/dist/adapter/runtime/useAdapter.d.ts +39 -0
- package/dist/adapter/runtime/useAdapter.js +78 -0
- package/dist/adapter/runtime/useAdapterContext.d.ts +22 -0
- package/dist/adapter/runtime/useAdapterContext.js +128 -0
- package/dist/adapter/runtime/useClickAction.d.ts +6 -0
- package/dist/adapter/runtime/useClickAction.js +16 -0
- package/dist/adapter/runtime/useComponent.d.ts +15 -0
- package/dist/adapter/runtime/useComponent.js +13 -0
- package/dist/adapter/runtime/useRootElement.d.ts +6 -0
- package/dist/adapter/runtime/useRootElement.js +13 -0
- package/dist/adapter/runtime/withRenderBoundary.d.ts +7 -0
- package/dist/adapter/runtime/withRenderBoundary.js +13 -0
- package/dist/adapter/toasts/index.d.ts +3 -0
- package/dist/adapter/toasts/render.d.ts +6 -0
- package/dist/adapter/toasts/render.js +17 -0
- package/dist/adapter/toasts/types.d.ts +6 -0
- package/dist/adapter/toasts/useToasts.d.ts +8 -0
- package/dist/adapter/toasts/useToasts.js +19 -0
- package/dist/components/accordion/Accordion.d.ts +14 -0
- package/dist/components/accordion/Accordion.js +40 -0
- package/dist/components/accordion/base.component.d.ts +6 -0
- package/dist/components/accordion/index.d.ts +6 -0
- package/dist/components/accordion/index.js +7 -0
- package/dist/components/accordion/item/Item.d.ts +6 -0
- package/dist/components/accordion/item/Item.js +68 -0
- package/dist/components/accordion/item/base.component.d.ts +9 -0
- package/dist/components/accordion/item/index.d.ts +2 -0
- package/dist/components/accordion/item/setup.component.d.ts +17 -0
- package/dist/components/accordion/item/setup.component.js +23 -0
- package/dist/components/accordion/setup.component.d.ts +15 -0
- package/dist/components/accordion/setup.component.js +26 -0
- package/dist/components/button/Button.d.ts +15 -0
- package/dist/components/button/Button.js +38 -0
- package/dist/components/button/base.component.d.ts +7 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/setup.component.d.ts +22 -0
- package/dist/components/button/setup.component.js +12 -0
- package/dist/components/calendar/Calendar.d.ts +7 -0
- package/dist/components/calendar/Calendar.js +190 -0
- package/dist/components/calendar/base.component.d.ts +7 -0
- package/dist/components/calendar/index.d.ts +7 -0
- package/dist/components/calendar/index.js +8 -0
- package/dist/components/calendar/item/Item.d.ts +3 -0
- package/dist/components/calendar/item/Item.js +26 -0
- package/dist/components/calendar/item/base.component.d.ts +7 -0
- package/dist/components/calendar/item/index.d.ts +2 -0
- package/dist/components/calendar/item/setup.component.d.ts +13 -0
- package/dist/components/calendar/item/setup.component.js +20 -0
- package/dist/components/calendar/setup.component.d.ts +15 -0
- package/dist/components/calendar/setup.component.js +26 -0
- package/dist/components/check-box/CheckBox.d.ts +4 -0
- package/dist/components/check-box/CheckBox.js +49 -0
- package/dist/components/check-box/base.component.d.ts +7 -0
- package/dist/components/check-box/index.d.ts +2 -0
- package/dist/components/check-box/setup.component.d.ts +27 -0
- package/dist/components/check-box/setup.component.js +13 -0
- package/dist/components/component/base.component.d.ts +5 -0
- package/dist/components/component/index.d.ts +1 -0
- package/dist/components/component-view/ComponentView.d.ts +4 -0
- package/dist/components/component-view/ComponentView.js +22 -0
- package/dist/components/component-view/base.component.d.ts +5 -0
- package/dist/components/component-view/index.d.ts +2 -0
- package/dist/components/component-view/setup.component.d.ts +9 -0
- package/dist/components/component-view/setup.component.js +12 -0
- package/dist/components/control/base.component.d.ts +5 -0
- package/dist/components/control/index.d.ts +1 -0
- package/dist/components/control/setup.component.d.ts +22 -0
- package/dist/components/date-input/DateInput.d.ts +4 -0
- package/dist/components/date-input/DateInput.js +88 -0
- package/dist/components/date-input/base.component.d.ts +6 -0
- package/dist/components/date-input/index.d.ts +2 -0
- package/dist/components/date-input/setup.component.d.ts +27 -0
- package/dist/components/date-input/setup.component.js +13 -0
- package/dist/components/date-picker/DatePicker.d.ts +9 -0
- package/dist/components/date-picker/DatePicker.js +148 -0
- package/dist/components/date-picker/base.component.d.ts +6 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-picker/setup.component.d.ts +60 -0
- package/dist/components/date-picker/setup.component.js +26 -0
- package/dist/components/dialog/Dialog.d.ts +7 -0
- package/dist/components/dialog/Dialog.js +88 -0
- package/dist/components/dialog/base.component.d.ts +6 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/dialog/setup.component.d.ts +29 -0
- package/dist/components/dialog/setup.component.js +12 -0
- package/dist/components/drag-and-drop/DragAndDrop.d.ts +4 -0
- package/dist/components/drag-and-drop/DragAndDrop.js +16 -0
- package/dist/components/drag-and-drop/base.component.d.ts +6 -0
- package/dist/components/drag-and-drop/index.d.ts +2 -0
- package/dist/components/drag-and-drop/setup.component.d.ts +6 -0
- package/dist/components/drag-and-drop/setup.component.js +12 -0
- package/dist/components/drawer/Drawer.d.ts +7 -0
- package/dist/components/drawer/Drawer.js +75 -0
- package/dist/components/drawer/base.component.d.ts +6 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/setup.component.d.ts +29 -0
- package/dist/components/drawer/setup.component.js +12 -0
- package/dist/components/field/Field.d.ts +4 -0
- package/dist/components/field/Field.js +58 -0
- package/dist/components/field/base.component.d.ts +5 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/setup.component.d.ts +10 -0
- package/dist/components/field/setup.component.js +13 -0
- package/dist/components/frame/Frame.d.ts +7 -0
- package/dist/components/frame/Frame.js +30 -0
- package/dist/components/frame/base.component.d.ts +5 -0
- package/dist/components/frame/index.d.ts +2 -0
- package/dist/components/frame/setup.component.d.ts +33 -0
- package/dist/components/frame/setup.component.js +12 -0
- package/dist/components/icon/Icon.d.ts +7 -0
- package/dist/components/icon/Icon.js +17 -0
- package/dist/components/icon/base.component.d.ts +5 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/setup.component.d.ts +19 -0
- package/dist/components/icon/setup.component.js +12 -0
- package/dist/components/index.d.ts +43 -0
- package/dist/components/input/Input.d.ts +4 -0
- package/dist/components/input/Input.js +65 -0
- package/dist/components/input/base.component.d.ts +7 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/setup.component.d.ts +27 -0
- package/dist/components/input/setup.component.js +13 -0
- package/dist/components/input-control/base.component.d.ts +6 -0
- package/dist/components/input-control/index.d.ts +1 -0
- package/dist/components/input-control/setup.component.d.ts +26 -0
- package/dist/components/interactive/base.component.d.ts +5 -0
- package/dist/components/interactive/index.d.ts +1 -0
- package/dist/components/interactive/setup.component.d.ts +9 -0
- package/dist/components/item-row/ItemRow.d.ts +13 -0
- package/dist/components/item-row/ItemRow.js +19 -0
- package/dist/components/item-row/index.d.ts +2 -0
- package/dist/components/item-row/setup.component.d.ts +22 -0
- package/dist/components/item-row/setup.component.js +12 -0
- package/dist/components/label/Label.d.ts +7 -0
- package/dist/components/label/Label.js +31 -0
- package/dist/components/label/base.component.d.ts +5 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/setup.component.d.ts +9 -0
- package/dist/components/label/setup.component.js +12 -0
- package/dist/components/list-box/ListBox.d.ts +8 -0
- package/dist/components/list-box/ListBox.js +67 -0
- package/dist/components/list-box/base.component.d.ts +9 -0
- package/dist/components/list-box/group/Group.d.ts +7 -0
- package/dist/components/list-box/group/Group.js +34 -0
- package/dist/components/list-box/group/base.component.d.ts +6 -0
- package/dist/components/list-box/group/index.d.ts +2 -0
- package/dist/components/list-box/group/setup.component.d.ts +9 -0
- package/dist/components/list-box/group/setup.component.js +12 -0
- package/dist/components/list-box/index.d.ts +9 -0
- package/dist/components/list-box/index.js +11 -0
- package/dist/components/list-box/item/Item.d.ts +6 -0
- package/dist/components/list-box/item/Item.js +57 -0
- package/dist/components/list-box/item/base.component.d.ts +8 -0
- package/dist/components/list-box/item/index.d.ts +2 -0
- package/dist/components/list-box/item/setup.component.d.ts +19 -0
- package/dist/components/list-box/item/setup.component.js +23 -0
- package/dist/components/list-box/setup.component.d.ts +15 -0
- package/dist/components/list-box/setup.component.js +26 -0
- package/dist/components/menu/Menu.d.ts +7 -0
- package/dist/components/menu/Menu.js +47 -0
- package/dist/components/menu/base.component.d.ts +6 -0
- package/dist/components/menu/checkbox-item/CheckboxItem.d.ts +6 -0
- package/dist/components/menu/checkbox-item/CheckboxItem.js +61 -0
- package/dist/components/menu/checkbox-item/base.component.d.ts +8 -0
- package/dist/components/menu/checkbox-item/index.d.ts +2 -0
- package/dist/components/menu/checkbox-item/setup.component.d.ts +17 -0
- package/dist/components/menu/checkbox-item/setup.component.js +23 -0
- package/dist/components/menu/group/Group.d.ts +4 -0
- package/dist/components/menu/group/Group.js +31 -0
- package/dist/components/menu/group/base.component.d.ts +6 -0
- package/dist/components/menu/group/index.d.ts +2 -0
- package/dist/components/menu/group/setup.component.d.ts +9 -0
- package/dist/components/menu/group/setup.component.js +12 -0
- package/dist/components/menu/index.d.ts +23 -0
- package/dist/components/menu/index.js +23 -0
- package/dist/components/menu/item/Item.d.ts +3 -0
- package/dist/components/menu/item/Item.js +42 -0
- package/dist/components/menu/item/base.component.d.ts +8 -0
- package/dist/components/menu/item/index.d.ts +2 -0
- package/dist/components/menu/item/setup.component.d.ts +17 -0
- package/dist/components/menu/item/setup.component.js +23 -0
- package/dist/components/menu/popover-item/PopoverItem.d.ts +6 -0
- package/dist/components/menu/popover-item/PopoverItem.js +72 -0
- package/dist/components/menu/popover-item/base.component.d.ts +8 -0
- package/dist/components/menu/popover-item/index.d.ts +2 -0
- package/dist/components/menu/popover-item/setup.component.d.ts +24 -0
- package/dist/components/menu/popover-item/setup.component.js +26 -0
- package/dist/components/menu/radio-group/RadioGroup.d.ts +4 -0
- package/dist/components/menu/radio-group/RadioGroup.js +31 -0
- package/dist/components/menu/radio-group/base.component.d.ts +5 -0
- package/dist/components/menu/radio-group/index.d.ts +2 -0
- package/dist/components/menu/radio-group/setup.component.d.ts +9 -0
- package/dist/components/menu/radio-group/setup.component.js +12 -0
- package/dist/components/menu/radio-item/RadioItem.d.ts +3 -0
- package/dist/components/menu/radio-item/RadioItem.js +50 -0
- package/dist/components/menu/radio-item/base.component.d.ts +9 -0
- package/dist/components/menu/radio-item/index.d.ts +2 -0
- package/dist/components/menu/radio-item/setup.component.d.ts +17 -0
- package/dist/components/menu/radio-item/setup.component.js +23 -0
- package/dist/components/menu/separator/Separator.d.ts +4 -0
- package/dist/components/menu/separator/Separator.js +18 -0
- package/dist/components/menu/separator/base.component.d.ts +5 -0
- package/dist/components/menu/separator/index.d.ts +2 -0
- package/dist/components/menu/separator/setup.component.d.ts +9 -0
- package/dist/components/menu/separator/setup.component.js +12 -0
- package/dist/components/menu/setup.component.d.ts +16 -0
- package/dist/components/menu/setup.component.js +29 -0
- package/dist/components/menu/submenu/Submenu.d.ts +22 -0
- package/dist/components/menu/submenu/Submenu.js +117 -0
- package/dist/components/menu/submenu/base.component.d.ts +9 -0
- package/dist/components/menu/submenu/index.d.ts +2 -0
- package/dist/components/menu/submenu/setup.component.d.ts +25 -0
- package/dist/components/menu/submenu/setup.component.js +37 -0
- package/dist/components/number-input/NumberInput.d.ts +4 -0
- package/dist/components/number-input/NumberInput.js +108 -0
- package/dist/components/number-input/base.component.d.ts +7 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/setup.component.d.ts +27 -0
- package/dist/components/number-input/setup.component.js +13 -0
- package/dist/components/pagination/Pagination.d.ts +7 -0
- package/dist/components/pagination/Pagination.js +80 -0
- package/dist/components/pagination/base.component.d.ts +6 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/item/Item.d.ts +3 -0
- package/dist/components/pagination/item/Item.js +34 -0
- package/dist/components/pagination/item/base.component.d.ts +5 -0
- package/dist/components/pagination/item/index.d.ts +2 -0
- package/dist/components/pagination/item/setup.component.d.ts +11 -0
- package/dist/components/pagination/item/setup.component.js +23 -0
- package/dist/components/pagination/setup.component.d.ts +15 -0
- package/dist/components/pagination/setup.component.js +26 -0
- package/dist/components/popover/Popover.d.ts +7 -0
- package/dist/components/popover/Popover.js +68 -0
- package/dist/components/popover/base.component.d.ts +6 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/setup.component.d.ts +34 -0
- package/dist/components/popover/setup.component.js +17 -0
- package/dist/components/progress-linear/ProgressLinear.d.ts +7 -0
- package/dist/components/progress-linear/ProgressLinear.js +24 -0
- package/dist/components/progress-linear/base.component.d.ts +5 -0
- package/dist/components/progress-linear/index.d.ts +2 -0
- package/dist/components/progress-linear/setup.component.d.ts +17 -0
- package/dist/components/progress-linear/setup.component.js +12 -0
- package/dist/components/progress-spinner/ProgressSpinner.d.ts +7 -0
- package/dist/components/progress-spinner/ProgressSpinner.js +50 -0
- package/dist/components/progress-spinner/base.component.d.ts +5 -0
- package/dist/components/progress-spinner/index.d.ts +2 -0
- package/dist/components/progress-spinner/setup.component.d.ts +17 -0
- package/dist/components/progress-spinner/setup.component.js +12 -0
- package/dist/components/radio-group/RadioGroup.d.ts +4 -0
- package/dist/components/radio-group/RadioGroup.js +30 -0
- package/dist/components/radio-group/base.component.d.ts +7 -0
- package/dist/components/radio-group/index.d.ts +7 -0
- package/dist/components/radio-group/index.js +8 -0
- package/dist/components/radio-group/item/Item.d.ts +3 -0
- package/dist/components/radio-group/item/Item.js +46 -0
- package/dist/components/radio-group/item/base.component.d.ts +9 -0
- package/dist/components/radio-group/item/index.d.ts +2 -0
- package/dist/components/radio-group/item/setup.component.d.ts +42 -0
- package/dist/components/radio-group/item/setup.component.js +30 -0
- package/dist/components/radio-group/setup.component.d.ts +16 -0
- package/dist/components/radio-group/setup.component.js +27 -0
- package/dist/components/rating/Rating.d.ts +4 -0
- package/dist/components/rating/Rating.js +55 -0
- package/dist/components/rating/base.component.d.ts +6 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/rating/setup.component.d.ts +27 -0
- package/dist/components/rating/setup.component.js +13 -0
- package/dist/components/scroller/Scroller.d.ts +7 -0
- package/dist/components/scroller/Scroller.js +64 -0
- package/dist/components/scroller/base.component.d.ts +6 -0
- package/dist/components/scroller/index.d.ts +2 -0
- package/dist/components/scroller/setup.component.d.ts +22 -0
- package/dist/components/scroller/setup.component.js +12 -0
- package/dist/components/select/Select.d.ts +7 -0
- package/dist/components/select/Select.js +116 -0
- package/dist/components/select/base.component.d.ts +8 -0
- package/dist/components/select/group/Group.d.ts +7 -0
- package/dist/components/select/group/Group.js +34 -0
- package/dist/components/select/group/base.component.d.ts +6 -0
- package/dist/components/select/group/index.d.ts +2 -0
- package/dist/components/select/group/setup.component.d.ts +9 -0
- package/dist/components/select/group/setup.component.js +12 -0
- package/dist/components/select/index.d.ts +9 -0
- package/dist/components/select/index.js +11 -0
- package/dist/components/select/item/Item.d.ts +6 -0
- package/dist/components/select/item/Item.js +58 -0
- package/dist/components/select/item/base.component.d.ts +8 -0
- package/dist/components/select/item/index.d.ts +2 -0
- package/dist/components/select/item/setup.component.d.ts +19 -0
- package/dist/components/select/item/setup.component.js +23 -0
- package/dist/components/select/setup.component.d.ts +27 -0
- package/dist/components/select/setup.component.js +30 -0
- package/dist/components/skeleton/Skeleton.d.ts +4 -0
- package/dist/components/skeleton/Skeleton.js +23 -0
- package/dist/components/skeleton/base.component.d.ts +5 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/setup.component.d.ts +11 -0
- package/dist/components/skeleton/setup.component.js +12 -0
- package/dist/components/slider/Slider.d.ts +4 -0
- package/dist/components/slider/Slider.js +72 -0
- package/dist/components/slider/base.component.d.ts +6 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/setup.component.d.ts +23 -0
- package/dist/components/slider/setup.component.js +13 -0
- package/dist/components/stylable/base.component.d.ts +5 -0
- package/dist/components/stylable/index.d.ts +1 -0
- package/dist/components/stylable/setup.component.d.ts +9 -0
- package/dist/components/switch/Switch.d.ts +4 -0
- package/dist/components/switch/Switch.js +42 -0
- package/dist/components/switch/base.component.d.ts +7 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/setup.component.d.ts +27 -0
- package/dist/components/switch/setup.component.js +13 -0
- package/dist/components/table/Table.d.ts +9 -0
- package/dist/components/table/Table.js +83 -0
- package/dist/components/table/base.component.d.ts +7 -0
- package/dist/components/table/column/Column.d.ts +7 -0
- package/dist/components/table/column/Column.js +66 -0
- package/dist/components/table/column/base.component.d.ts +6 -0
- package/dist/components/table/column/index.d.ts +2 -0
- package/dist/components/table/column/setup.component.d.ts +19 -0
- package/dist/components/table/column/setup.component.js +16 -0
- package/dist/components/table/index.d.ts +9 -0
- package/dist/components/table/index.js +11 -0
- package/dist/components/table/row/Cells.d.ts +14 -0
- package/dist/components/table/row/Cells.js +29 -0
- package/dist/components/table/row/Row.d.ts +6 -0
- package/dist/components/table/row/Row.js +43 -0
- package/dist/components/table/row/base.component.d.ts +7 -0
- package/dist/components/table/row/index.d.ts +2 -0
- package/dist/components/table/row/setup.component.d.ts +11 -0
- package/dist/components/table/row/setup.component.js +23 -0
- package/dist/components/table/setup.component.d.ts +18 -0
- package/dist/components/table/setup.component.js +27 -0
- package/dist/components/tabs/Tabs.d.ts +9 -0
- package/dist/components/tabs/Tabs.js +53 -0
- package/dist/components/tabs/base.component.d.ts +9 -0
- package/dist/components/tabs/content/Content.d.ts +4 -0
- package/dist/components/tabs/content/Content.js +18 -0
- package/dist/components/tabs/content/base.component.d.ts +7 -0
- package/dist/components/tabs/content/index.d.ts +2 -0
- package/dist/components/tabs/content/setup.component.d.ts +17 -0
- package/dist/components/tabs/content/setup.component.js +20 -0
- package/dist/components/tabs/index.d.ts +9 -0
- package/dist/components/tabs/index.js +11 -0
- package/dist/components/tabs/item/Item.d.ts +6 -0
- package/dist/components/tabs/item/Item.js +64 -0
- package/dist/components/tabs/item/base.component.d.ts +9 -0
- package/dist/components/tabs/item/index.d.ts +2 -0
- package/dist/components/tabs/item/setup.component.d.ts +17 -0
- package/dist/components/tabs/item/setup.component.js +23 -0
- package/dist/components/tabs/setup.component.d.ts +15 -0
- package/dist/components/tabs/setup.component.js +26 -0
- package/dist/components/tags/Tags.d.ts +7 -0
- package/dist/components/tags/Tags.js +36 -0
- package/dist/components/tags/base.component.d.ts +6 -0
- package/dist/components/tags/index.d.ts +6 -0
- package/dist/components/tags/index.js +7 -0
- package/dist/components/tags/item/Item.d.ts +6 -0
- package/dist/components/tags/item/Item.js +63 -0
- package/dist/components/tags/item/base.component.d.ts +8 -0
- package/dist/components/tags/item/index.d.ts +2 -0
- package/dist/components/tags/item/setup.component.d.ts +15 -0
- package/dist/components/tags/item/setup.component.js +23 -0
- package/dist/components/tags/setup.component.d.ts +15 -0
- package/dist/components/tags/setup.component.js +26 -0
- package/dist/components/textable/base.component.d.ts +5 -0
- package/dist/components/textable/index.d.ts +1 -0
- package/dist/components/textable/setup.component.d.ts +22 -0
- package/dist/components/textarea/Textarea.d.ts +4 -0
- package/dist/components/textarea/Textarea.js +35 -0
- package/dist/components/textarea/base.component.d.ts +7 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/setup.component.d.ts +29 -0
- package/dist/components/textarea/setup.component.js +13 -0
- package/dist/components/toasts/Toasts.d.ts +7 -0
- package/dist/components/toasts/Toasts.js +43 -0
- package/dist/components/toasts/base.component.d.ts +7 -0
- package/dist/components/toasts/index.d.ts +2 -0
- package/dist/components/toasts/item/Item.d.ts +3 -0
- package/dist/components/toasts/item/Item.js +88 -0
- package/dist/components/toasts/item/base.component.d.ts +6 -0
- package/dist/components/toasts/item/index.d.ts +2 -0
- package/dist/components/toasts/item/setup.component.d.ts +13 -0
- package/dist/components/toasts/item/setup.component.js +20 -0
- package/dist/components/toasts/setup.component.d.ts +13 -0
- package/dist/components/toasts/setup.component.js +26 -0
- package/dist/components/tooltip/Tooltip.d.ts +4 -0
- package/dist/components/tooltip/Tooltip.js +34 -0
- package/dist/components/tooltip/base.component.d.ts +6 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/setup.component.d.ts +26 -0
- package/dist/components/tooltip/setup.component.js +17 -0
- package/dist/components/value-control/base.component.d.ts +6 -0
- package/dist/components/value-control/index.d.ts +1 -0
- package/dist/components/value-control/setup.component.d.ts +22 -0
- package/dist/components/virtual/Virtual.d.ts +4 -0
- package/dist/components/virtual/Virtual.js +16 -0
- package/dist/components/virtual/base.component.d.ts +6 -0
- package/dist/components/virtual/index.d.ts +2 -0
- package/dist/components/virtual/setup.component.d.ts +6 -0
- package/dist/components/virtual/setup.component.js +12 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +60 -0
- package/dist/types.d.ts +25 -0
- package/package.json +60 -4
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TextareaProps } from './base.component';
|
|
2
|
+
/** Поле формы `Field` над полем: ошибку и ссылки на части поле берёт от него лифтом. */
|
|
3
|
+
export declare function useSetupTextarea(props: TextareaProps): import("../../adapter").TComponentBinding<import("@soxa-ui/setup").TContextContract<import("@soxa-ui/core").ITextarea, {
|
|
4
|
+
props: object & {} & {} & {} & {
|
|
5
|
+
aria_label?: string | undefined;
|
|
6
|
+
aria_labelledBy?: string | undefined;
|
|
7
|
+
aria_describedBy?: string | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
} & {} & {} & {} & {} & {};
|
|
11
|
+
events: object & {
|
|
12
|
+
"element:removed": () => void;
|
|
13
|
+
"element:ready": (element: Element) => void;
|
|
14
|
+
} & {} & {
|
|
15
|
+
"aria:change:label": (payload: import("@soxa-ui/core").TValuePayload<string | undefined>) => void;
|
|
16
|
+
"aria:change:labelledBy": (payload: import("@soxa-ui/core").TValuePayload<string | undefined>) => void;
|
|
17
|
+
"aria:change:describedBy": (payload: import("@soxa-ui/core").TValuePayload<string | undefined>) => void;
|
|
18
|
+
} & {
|
|
19
|
+
"action:blur": (event: FocusEvent) => void;
|
|
20
|
+
"action:click": (event: MouseEvent) => void;
|
|
21
|
+
"action:focus": (event: FocusEvent) => void;
|
|
22
|
+
"action:press": (event: MouseEvent) => void;
|
|
23
|
+
} & {
|
|
24
|
+
"change:id": (payload: import("@soxa-ui/core").TValuePayload<string | undefined>) => void;
|
|
25
|
+
} & {} & {} & {} & {};
|
|
26
|
+
outputs: object & {} & {} & {} & {} & {} & {} & {} & {
|
|
27
|
+
readonly names_counter: string;
|
|
28
|
+
} & {} & {};
|
|
29
|
+
}>, TextareaProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useComponent } from "../../adapter/runtime/useComponent.js";
|
|
3
|
+
import { TFieldControlExtension, TextareaDescriptor } from "@soxa-ui/setup";
|
|
4
|
+
//#region src/components/textarea/setup.component.ts
|
|
5
|
+
/** Поле формы `Field` над полем: ошибку и ссылки на части поле берёт от него лифтом. */
|
|
6
|
+
function useSetupTextarea(props) {
|
|
7
|
+
return useComponent((create, elevator) => create(TextareaDescriptor(), {
|
|
8
|
+
ctrl: props.ctrl,
|
|
9
|
+
props
|
|
10
|
+
}).use(TFieldControlExtension, { elevator }), props);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { useSetupTextarea };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ToastsProps } from './base.component';
|
|
3
|
+
/**
|
|
4
|
+
* Toasts — менеджер уведомлений: оборачивает приложение (`children`), регион
|
|
5
|
+
* тостов — телепортом. AGENTS.md (React), «Teleport» и «Локаль и тосты».
|
|
6
|
+
*/
|
|
7
|
+
export declare function Toasts(props: ToastsProps): ReactElement;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { toRootProps } from "../../adapter/common/root.js";
|
|
3
|
+
import { relaySlot, renderSlot } from "../../adapter/common/slots.js";
|
|
4
|
+
import { Teleport } from "../../adapter/runtime/Teleport.js";
|
|
5
|
+
import { Elevate } from "../../adapter/elevator/Elevate.js";
|
|
6
|
+
import { ToastsItem } from "./item/Item.js";
|
|
7
|
+
import { useSetupToasts } from "./setup.component.js";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/toasts/Toasts.tsx
|
|
10
|
+
/**
|
|
11
|
+
* Toasts — менеджер уведомлений: оборачивает приложение (`children`), регион
|
|
12
|
+
* тостов — телепортом. AGENTS.md (React), «Teleport» и «Локаль и тосты».
|
|
13
|
+
*/
|
|
14
|
+
function Toasts(props) {
|
|
15
|
+
const { ref, forwardProps, state, layer } = useSetupToasts(props);
|
|
16
|
+
const { rendered, tag, target, attrs, aria, dataset, shown } = state;
|
|
17
|
+
const Tag = tag;
|
|
18
|
+
return /* @__PURE__ */ jsxs(Elevate, {
|
|
19
|
+
layer,
|
|
20
|
+
children: [renderSlot(props.children), rendered ? /* @__PURE__ */ jsx(Teleport, {
|
|
21
|
+
to: target,
|
|
22
|
+
children: /* @__PURE__ */ jsx(Tag, {
|
|
23
|
+
...toRootProps(ref, state, [
|
|
24
|
+
attrs,
|
|
25
|
+
aria,
|
|
26
|
+
dataset
|
|
27
|
+
], forwardProps),
|
|
28
|
+
children: /* @__PURE__ */ jsx("ol", {
|
|
29
|
+
className: "so-toasts__list",
|
|
30
|
+
children: shown?.map((item) => /* @__PURE__ */ jsx(ToastsItem, {
|
|
31
|
+
ctrl: item,
|
|
32
|
+
icon: relaySlot(props["item-icon"], { item }),
|
|
33
|
+
content: renderSlot(props["item-content"], { item }),
|
|
34
|
+
"close-icon": renderSlot(props["item-close-icon"], { item }),
|
|
35
|
+
children: relaySlot(props.item, { item })
|
|
36
|
+
}, item.uid))
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
}) : null]
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { Toasts };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IToasts } from '@soxa-ui/core';
|
|
2
|
+
import type { ToastsCollectionDescriptor, ToastsDescriptor } from '@soxa-ui/setup';
|
|
3
|
+
import type { EventProps, UseDomProps } from '../../types';
|
|
4
|
+
/** События Toasts — свои и фасада коллекции. */
|
|
5
|
+
export type ToastsEventProps = EventProps<typeof ToastsDescriptor> & EventProps<typeof ToastsCollectionDescriptor>;
|
|
6
|
+
/** Пропсы Toasts: атрибуты — региону, приложение в `children` обёртки не получает. */
|
|
7
|
+
export type ToastsProps = UseDomProps<typeof ToastsDescriptor, IToasts, ToastsEventProps>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { toAriaProps } from "../../../adapter/common/aria.js";
|
|
3
|
+
import { toRootProps } from "../../../adapter/common/root.js";
|
|
4
|
+
import { renderSlot } from "../../../adapter/common/slots.js";
|
|
5
|
+
import { roleIcon } from "../../../adapter/common/icon.js";
|
|
6
|
+
import { useClickAction } from "../../../adapter/runtime/useClickAction.js";
|
|
7
|
+
import { withRenderBoundary } from "../../../adapter/runtime/withRenderBoundary.js";
|
|
8
|
+
import { isToastRender } from "../../../adapter/toasts/render.js";
|
|
9
|
+
import { Button } from "../../button/Button.js";
|
|
10
|
+
import { Icon } from "../../icon/Icon.js";
|
|
11
|
+
import { ProgressSpinner } from "../../progress-spinner/ProgressSpinner.js";
|
|
12
|
+
import { useSetupToastsItem } from "./setup.component.js";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
//#region src/components/toasts/item/Item.tsx
|
|
15
|
+
/** Значок вида — своя роль у каждого: в принудительных цветах вид различает только глиф. */
|
|
16
|
+
var TYPE_ICONS = {
|
|
17
|
+
info: roleIcon("info"),
|
|
18
|
+
success: roleIcon("success"),
|
|
19
|
+
warning: roleIcon("warning"),
|
|
20
|
+
error: roleIcon("error")
|
|
21
|
+
};
|
|
22
|
+
var NOTIFICATION = roleIcon("notification");
|
|
23
|
+
var CLOSE = roleIcon("close");
|
|
24
|
+
/** ToastsItem — тост, внутренняя часть менеджера: рисует только регион `Toasts`. */
|
|
25
|
+
var ToastsItem = withRenderBoundary(function ToastsItem(props) {
|
|
26
|
+
const { ctrl, ref, forwardProps, state } = useSetupToastsItem(props);
|
|
27
|
+
const close = useClickAction(() => ctrl.close());
|
|
28
|
+
const { rendered, tag, attrs, aria, dataset, classes, visible, order, type, loading, text, description, closable, closeAria, render } = state;
|
|
29
|
+
if (!rendered) return null;
|
|
30
|
+
const Tag = tag;
|
|
31
|
+
const Render = isToastRender(render) ? render : void 0;
|
|
32
|
+
return /* @__PURE__ */ jsx(Tag, {
|
|
33
|
+
...toRootProps(ref, {
|
|
34
|
+
classes,
|
|
35
|
+
visible
|
|
36
|
+
}, [
|
|
37
|
+
attrs,
|
|
38
|
+
aria,
|
|
39
|
+
dataset
|
|
40
|
+
], forwardProps, order === void 0 ? void 0 : { "--so-toasts-depth": order }),
|
|
41
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
42
|
+
className: "so-toasts-item__card",
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ jsx("span", {
|
|
45
|
+
className: "so-toasts-item__icon",
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
children: loading ? /* @__PURE__ */ jsx(ProgressSpinner, {
|
|
48
|
+
embedded: "toasts.spinner",
|
|
49
|
+
indeterminate: true
|
|
50
|
+
}) : renderSlot(props.icon, { type }) ?? /* @__PURE__ */ jsx(Icon, {
|
|
51
|
+
embedded: "toasts.icon",
|
|
52
|
+
tag: type ? TYPE_ICONS[type] : NOTIFICATION
|
|
53
|
+
})
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ jsxs("div", {
|
|
56
|
+
className: "so-toasts-item__body",
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ jsx("div", {
|
|
59
|
+
className: "so-toasts-item__text",
|
|
60
|
+
children: renderSlot(props.children, { text: text ?? "" }) ?? text
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ jsx("div", {
|
|
63
|
+
className: "so-toasts-item__description",
|
|
64
|
+
children: description
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ jsx("div", {
|
|
67
|
+
className: "so-toasts-item__content",
|
|
68
|
+
children: renderSlot(props.content) ?? (Render ? /* @__PURE__ */ jsx(Render, { toast: ctrl }) : null)
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
}),
|
|
72
|
+
closable ? /* @__PURE__ */ jsx(Button, {
|
|
73
|
+
embedded: "toasts.close",
|
|
74
|
+
type: "button",
|
|
75
|
+
className: "so-toasts-item__close",
|
|
76
|
+
ref: close,
|
|
77
|
+
...toAriaProps(closeAria),
|
|
78
|
+
children: renderSlot(props["close-icon"]) ?? /* @__PURE__ */ jsx(Icon, {
|
|
79
|
+
embedded: "toasts.close-icon",
|
|
80
|
+
tag: CLOSE
|
|
81
|
+
})
|
|
82
|
+
}) : null
|
|
83
|
+
]
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
//#endregion
|
|
88
|
+
export { ToastsItem };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IToastsItem } from '@soxa-ui/core';
|
|
2
|
+
import type { ToastsCollectionItemDescriptor, ToastsItemDescriptor } from '@soxa-ui/setup';
|
|
3
|
+
import type { EventProps, UseDomProps } from '../../../types';
|
|
4
|
+
/** События тоста — свои и фасада. */
|
|
5
|
+
export type ToastsItemEventProps = EventProps<typeof ToastsItemDescriptor> & EventProps<typeof ToastsCollectionItemDescriptor>;
|
|
6
|
+
export type ToastsItemProps = UseDomProps<typeof ToastsItemDescriptor, IToastsItem, ToastsItemEventProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ToastsItemProps } from './base.component';
|
|
2
|
+
export declare function useSetupToastsItem(props: ToastsItemProps): import("../../../adapter").TCollectionBinding<import("../../../adapter").TBinding<import("@soxa-ui/setup").TContextContract<import("@soxa-ui/core").IToastsItem<import("@soxa-ui/core").IToastsItemProps, import("@soxa-ui/core").TToastsItemEvents>, {
|
|
3
|
+
props: object & {} & {} & {} & {};
|
|
4
|
+
events: object & {
|
|
5
|
+
"element:removed": () => void;
|
|
6
|
+
"element:ready": (element: Element) => void;
|
|
7
|
+
} & {} & {} & {};
|
|
8
|
+
outputs: object & {} & {} & {} & {};
|
|
9
|
+
}>, ToastsItemProps>, import("@soxa-ui/setup").TContextContract<import("@soxa-ui/core").TToastsItemCollectionFacade, {
|
|
10
|
+
props: object;
|
|
11
|
+
events: object;
|
|
12
|
+
outputs: object;
|
|
13
|
+
}>, ToastsItemProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useAdapter, useCollectionAdapter } from "../../../adapter/runtime/useAdapter.js";
|
|
3
|
+
import { useAdapterContext } from "../../../adapter/runtime/useAdapterContext.js";
|
|
4
|
+
import { TCollectionItemExtension, ToastsCollectionItemDescriptor, ToastsItemDescriptor } from "@soxa-ui/setup";
|
|
5
|
+
//#region src/components/toasts/item/setup.component.ts
|
|
6
|
+
function useSetupToastsItem(props) {
|
|
7
|
+
const { contexts: [adapter, item] } = useAdapterContext((create, elevator) => {
|
|
8
|
+
const adapter = create(ToastsItemDescriptor(), {
|
|
9
|
+
ctrl: props.ctrl,
|
|
10
|
+
props
|
|
11
|
+
});
|
|
12
|
+
return [adapter, create(ToastsCollectionItemDescriptor(), { props }, { bundle: adapter.bundle }).use(TCollectionItemExtension, {
|
|
13
|
+
adapter,
|
|
14
|
+
elevator
|
|
15
|
+
})];
|
|
16
|
+
});
|
|
17
|
+
return useCollectionAdapter(useAdapter(adapter, props), item, props);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { useSetupToastsItem };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ToastsProps } from './base.component';
|
|
2
|
+
export declare function useSetupToasts(props: ToastsProps): {
|
|
3
|
+
layer: import("../../adapter").TElevatorLayer;
|
|
4
|
+
ref: (el: Element | null) => void;
|
|
5
|
+
plugins: import("@soxa-ui/plugins").IPluginBundle | null;
|
|
6
|
+
ctrl: object & import("@soxa-ui/core").IToasts<import("@soxa-ui/core").IToastsProps, import("@soxa-ui/core").TToastsEvents>;
|
|
7
|
+
root: import("../../adapter").TRootSource;
|
|
8
|
+
forwardProps: Partial<ToastsProps>;
|
|
9
|
+
bindRef: (el: Element | null) => void;
|
|
10
|
+
state: import("@soxa-ui/setup").TInstanceState<object & import("@soxa-ui/core").IToasts<import("@soxa-ui/core").IToastsProps, import("@soxa-ui/core").TToastsEvents>> & import("@soxa-ui/setup").TInstanceState<object & {} & {} & {} & {} & {} & {} & {} & {} & {} & {}> & import("@soxa-ui/setup").TInstanceState<object & {} & {} & {} & {} & {} & {} & {} & {} & {
|
|
11
|
+
readonly layout_styles: Record<string, string | number>;
|
|
12
|
+
} & {}> & import("@soxa-ui/setup").TInstanceState<object & import("@soxa-ui/core").TToastsCollectionFacade> & object;
|
|
13
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useAdapter, useCollectionAdapter } from "../../adapter/runtime/useAdapter.js";
|
|
3
|
+
import { useAdapterContext } from "../../adapter/runtime/useAdapterContext.js";
|
|
4
|
+
import { TCollectionExtension, TToastsApiExtension, ToastsCollectionDescriptor, ToastsDescriptor } from "@soxa-ui/setup";
|
|
5
|
+
//#region src/components/toasts/setup.component.ts
|
|
6
|
+
function useSetupToasts(props) {
|
|
7
|
+
const { contexts: [adapter, collectionAdapter], layer } = useAdapterContext((create, elevator) => {
|
|
8
|
+
const adapter = create(ToastsDescriptor(), {
|
|
9
|
+
ctrl: props.ctrl,
|
|
10
|
+
props
|
|
11
|
+
});
|
|
12
|
+
return [adapter, create(ToastsCollectionDescriptor(), {
|
|
13
|
+
props,
|
|
14
|
+
options: {
|
|
15
|
+
owner: adapter.instance,
|
|
16
|
+
engine: props.engine
|
|
17
|
+
}
|
|
18
|
+
}, { bundle: adapter.bundle }).use(TCollectionExtension, { elevator }).use(TToastsApiExtension, { elevator })];
|
|
19
|
+
});
|
|
20
|
+
return {
|
|
21
|
+
...useCollectionAdapter(useAdapter(adapter, props), collectionAdapter, props),
|
|
22
|
+
layer
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { useSetupToasts };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { toAriaProps } from "../../adapter/common/aria.js";
|
|
3
|
+
import { toRootProps } from "../../adapter/common/root.js";
|
|
4
|
+
import { renderSlot } from "../../adapter/common/slots.js";
|
|
5
|
+
import { Frame } from "../frame/Frame.js";
|
|
6
|
+
import { useSetupTooltip } from "./setup.component.js";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/tooltip/Tooltip.tsx
|
|
9
|
+
/** Tooltip — подсказка у триггера; панель — Frame, якорь — корень значением, как у Popover. */
|
|
10
|
+
function Tooltip(props) {
|
|
11
|
+
const { ref, forwardProps, state, rootElement } = useSetupTooltip(props);
|
|
12
|
+
const { rendered, tag, attrs, aria, dataset, open, placement, triggerAria, dismiss_ownerAttribute } = state;
|
|
13
|
+
if (!rendered) return null;
|
|
14
|
+
return /* @__PURE__ */ jsxs(tag, {
|
|
15
|
+
...toRootProps(ref, state, [attrs, dataset], forwardProps),
|
|
16
|
+
children: [renderSlot(props.trigger, { triggerAria: triggerAria ?? {} }), /* @__PURE__ */ jsx(Frame, {
|
|
17
|
+
embedded: "tooltip.frame",
|
|
18
|
+
className: "so-tooltip__panel",
|
|
19
|
+
visible: state.visible && open,
|
|
20
|
+
strategy: "fixed",
|
|
21
|
+
anchor_anchor: rootElement,
|
|
22
|
+
anchor_placement: placement,
|
|
23
|
+
anchor_offset: 6,
|
|
24
|
+
...toAriaProps(aria),
|
|
25
|
+
...toAriaProps(dismiss_ownerAttribute),
|
|
26
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
27
|
+
className: "so-tooltip__content",
|
|
28
|
+
children: renderSlot(props.children)
|
|
29
|
+
})
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { Tooltip };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ITooltip } from '@soxa-ui/core';
|
|
2
|
+
import type { TooltipDescriptor } from '@soxa-ui/setup';
|
|
3
|
+
import type { EventProps, UseDomProps } from '../../types';
|
|
4
|
+
export type TooltipEventProps = EventProps<typeof TooltipDescriptor>;
|
|
5
|
+
/** Пропсы Tooltip: атрибуты — корню, обёртке триггера. */
|
|
6
|
+
export type TooltipProps = UseDomProps<typeof TooltipDescriptor, ITooltip, TooltipEventProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { TooltipProps } from './base.component';
|
|
2
|
+
export declare function useSetupTooltip(props: TooltipProps): {
|
|
3
|
+
rootElement: Element | null;
|
|
4
|
+
ctrl: object & import("@soxa-ui/core").ITooltip;
|
|
5
|
+
plugins: import("@soxa-ui/plugins").IPluginBundle | null;
|
|
6
|
+
ref: (el: Element | null) => void;
|
|
7
|
+
bindRef: (el: Element | null) => void;
|
|
8
|
+
root: import("../../adapter").TRootSource;
|
|
9
|
+
forwardProps: Partial<TooltipProps>;
|
|
10
|
+
state: import("@soxa-ui/setup").TAdapterState<import("@soxa-ui/setup").TContextContract<import("@soxa-ui/core").ITooltip, {
|
|
11
|
+
props: object & {} & {} & {
|
|
12
|
+
dismiss_enabled?: boolean | undefined;
|
|
13
|
+
} & {} & {};
|
|
14
|
+
events: object & {
|
|
15
|
+
"element:removed": () => void;
|
|
16
|
+
"element:ready": (element: Element) => void;
|
|
17
|
+
} & {} & {
|
|
18
|
+
"dismiss:change:enabled": (payload: import("@soxa-ui/core").TValuePayload<boolean>) => void;
|
|
19
|
+
"dismiss:dismiss": (event: MouseEvent | FocusEvent) => void;
|
|
20
|
+
} & {} & {};
|
|
21
|
+
outputs: object & {} & {} & {
|
|
22
|
+
readonly dismiss_ownerAttribute: Record<string, string>;
|
|
23
|
+
} & {} & {};
|
|
24
|
+
}>>;
|
|
25
|
+
layer: import("../../adapter").TElevatorLayer;
|
|
26
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useComponent } from "../../adapter/runtime/useComponent.js";
|
|
3
|
+
import { useRootElement } from "../../adapter/runtime/useRootElement.js";
|
|
4
|
+
import { TooltipDescriptor } from "@soxa-ui/setup";
|
|
5
|
+
//#region src/components/tooltip/setup.component.ts
|
|
6
|
+
function useSetupTooltip(props) {
|
|
7
|
+
const binding = useComponent((create) => create(TooltipDescriptor(), {
|
|
8
|
+
ctrl: props.ctrl,
|
|
9
|
+
props
|
|
10
|
+
}), props);
|
|
11
|
+
return {
|
|
12
|
+
...binding,
|
|
13
|
+
rootElement: useRootElement(binding.root)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { useSetupTooltip };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IValueControl } from '@soxa-ui/core';
|
|
2
|
+
import type { ValueControlDescriptor } from '@soxa-ui/setup';
|
|
3
|
+
import type { EventProps, UseProps } from '../../types';
|
|
4
|
+
export type ValueControlEventProps = EventProps<typeof ValueControlDescriptor>;
|
|
5
|
+
/** Тип значения задаёт наследник. */
|
|
6
|
+
export type ValueControlProps = UseProps<typeof ValueControlDescriptor, IValueControl<unknown>, ValueControlEventProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './base.component';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ValueControlProps } from './base.component';
|
|
2
|
+
export declare function useSetupValueControl(props: ValueControlProps): import("../../adapter").TComponentBinding<import("@soxa-ui/setup").TContextContract<import("@soxa-ui/core").IValueControl<unknown, import("@soxa-ui/core").IValueControlProps<unknown>, import("@soxa-ui/core").TValueControlEvents<unknown>>, {
|
|
3
|
+
props: object & {} & {} & {} & {
|
|
4
|
+
aria_label?: string | undefined;
|
|
5
|
+
aria_labelledBy?: string | undefined;
|
|
6
|
+
aria_describedBy?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
events: object & {
|
|
9
|
+
"element:removed": () => void;
|
|
10
|
+
"element:ready": (element: Element) => void;
|
|
11
|
+
} & {} & {
|
|
12
|
+
"aria:change:label": (payload: import("@soxa-ui/core").TValuePayload<string | undefined>) => void;
|
|
13
|
+
"aria:change:labelledBy": (payload: import("@soxa-ui/core").TValuePayload<string | undefined>) => void;
|
|
14
|
+
"aria:change:describedBy": (payload: import("@soxa-ui/core").TValuePayload<string | undefined>) => void;
|
|
15
|
+
} & {
|
|
16
|
+
"action:blur": (event: FocusEvent) => void;
|
|
17
|
+
"action:click": (event: MouseEvent) => void;
|
|
18
|
+
"action:focus": (event: FocusEvent) => void;
|
|
19
|
+
"action:press": (event: MouseEvent) => void;
|
|
20
|
+
};
|
|
21
|
+
outputs: object & {} & {} & {} & {};
|
|
22
|
+
}>, ValueControlProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { renderSlot } from "../../adapter/common/slots.js";
|
|
3
|
+
import { Elevate } from "../../adapter/elevator/Elevate.js";
|
|
4
|
+
import { useSetupVirtual } from "./setup.component.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/virtual/Virtual.tsx
|
|
7
|
+
/** Virtual — окно для длинных списков; своего узла нет, только слой лифта. */
|
|
8
|
+
function Virtual(props) {
|
|
9
|
+
const { layer } = useSetupVirtual(props);
|
|
10
|
+
return /* @__PURE__ */ jsx(Elevate, {
|
|
11
|
+
layer,
|
|
12
|
+
children: renderSlot(props.children)
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Virtual };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IVirtual } from '@soxa-ui/core';
|
|
2
|
+
import type { VirtualDescriptor } from '@soxa-ui/setup';
|
|
3
|
+
import type { EventProps, UseProps } from '../../types';
|
|
4
|
+
export type VirtualEventProps = EventProps<typeof VirtualDescriptor>;
|
|
5
|
+
/** Пропсы Virtual — без атрибутов DOM: своего узла у обёртки нет. */
|
|
6
|
+
export type VirtualProps = UseProps<typeof VirtualDescriptor, IVirtual, VirtualEventProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { VirtualProps } from './base.component';
|
|
2
|
+
export declare function useSetupVirtual(props: VirtualProps): import("../../adapter").TComponentBinding<import("@soxa-ui/setup").TContextContract<import("@soxa-ui/core").IVirtual, {
|
|
3
|
+
props: object;
|
|
4
|
+
events: object;
|
|
5
|
+
outputs: object;
|
|
6
|
+
}>, VirtualProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useComponent } from "../../adapter/runtime/useComponent.js";
|
|
3
|
+
import { TVirtualExtension, VirtualDescriptor } from "@soxa-ui/setup";
|
|
4
|
+
//#region src/components/virtual/setup.component.ts
|
|
5
|
+
function useSetupVirtual(props) {
|
|
6
|
+
return useComponent((create, elevator) => create(VirtualDescriptor(), {
|
|
7
|
+
ctrl: props.ctrl,
|
|
8
|
+
props
|
|
9
|
+
}).use(TVirtualExtension, { elevator }), props);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { useSetupVirtual };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Application API. Assembly helpers stay inside the adapter. */
|
|
2
|
+
export { ComponentView, Button, Icon, Label, Field, Frame, Popover, Tooltip, Menu, MenuItem, MenuCheckboxItem, MenuRadioItem, MenuSubmenu, MenuPopoverItem, MenuGroup, MenuRadioGroup, MenuSeparator, Dialog, Drawer, Toasts, ProgressLinear, ProgressSpinner, Skeleton, Input, NumberInput, Textarea, CheckBox, Switch, RadioGroup, RadioGroupItem, Slider, Rating, DateInput, Calendar, CalendarItem, DatePicker, ListBox, ListBoxItem, ListBoxGroup, Tags, TagsItem, Select, SelectItem, SelectGroup, Tabs, TabsItem, TabsContent, Accordion, AccordionItem, Pagination, Scroller, Table, TableColumn, TableRow, Virtual, DragAndDrop, } from './components';
|
|
3
|
+
export type { ComponentEventProps, ComponentProps, ComponentViewEventProps, ComponentViewProps, StylableEventProps, StylableProps, InteractiveEventProps, InteractiveProps, ControlEventProps, ControlProps, ValueControlEventProps, ValueControlProps, InputControlEventProps, InputControlProps, TextableEventProps, TextableProps, ButtonEventProps, ButtonProps, IconEventProps, IconProps, LabelEventProps, LabelProps, FieldEventProps, FieldProps, FrameEventProps, FrameProps, PopoverEventProps, PopoverProps, TooltipEventProps, TooltipProps, MenuEventProps, MenuProps, MenuItemEventProps, MenuItemAttributes, MenuItemProps, MenuCheckboxItemEventProps, MenuCheckboxItemAttributes, MenuCheckboxItemProps, MenuRadioItemEventProps, MenuRadioItemAttributes, MenuRadioItemProps, MenuSubmenuEventProps, MenuSubmenuAttributes, MenuSubmenuProps, MenuPopoverItemEventProps, MenuPopoverItemAttributes, MenuPopoverItemProps, MenuGroupEventProps, MenuGroupProps, MenuRadioGroupEventProps, MenuRadioGroupProps, MenuSeparatorEventProps, MenuSeparatorProps, DialogEventProps, DialogProps, DrawerEventProps, DrawerProps, ToastsEventProps, ToastsProps, ProgressLinearEventProps, ProgressLinearProps, ProgressSpinnerEventProps, ProgressSpinnerProps, SkeletonEventProps, SkeletonProps, InputEventProps, InputAttributes, InputProps, NumberInputEventProps, NumberInputAttributes, NumberInputProps, TextareaEventProps, TextareaAttributes, TextareaProps, CheckBoxEventProps, CheckBoxAttributes, CheckBoxProps, SwitchEventProps, SwitchAttributes, SwitchProps, RadioGroupEventProps, RadioGroupProps, RadioGroupItemEventProps, RadioGroupItemAttributes, RadioGroupItemProps, SliderEventProps, SliderProps, RatingEventProps, RatingProps, DateInputEventProps, DateInputProps, CalendarEventProps, CalendarProps, CalendarItemEventProps, CalendarItemProps, DatePickerEventProps, DatePickerProps, ListBoxEventProps, ListBoxAttributes, ListBoxProps, ListBoxItemEventProps, ListBoxItemAttributes, ListBoxItemProps, ListBoxGroupEventProps, ListBoxGroupProps, TagsEventProps, TagsProps, TagsItemEventProps, TagsItemAttributes, TagsItemProps, SelectEventProps, SelectAttributes, SelectProps, SelectItemEventProps, SelectItemAttributes, SelectItemProps, SelectGroupEventProps, SelectGroupProps, TabsEventProps, TabsAttributes, TabsProps, TabsItemEventProps, TabsItemAttributes, TabsItemProps, TabsContentEventProps, TabsContentProps, AccordionEventProps, AccordionProps, AccordionItemEventProps, AccordionItemAttributes, AccordionItemProps, PaginationEventProps, PaginationProps, ScrollerEventProps, ScrollerProps, TableEventProps, TableProps, TableColumnEventProps, TableColumnProps, TableRowEventProps, TableRowProps, VirtualEventProps, VirtualProps, DragAndDropEventProps, DragAndDropProps, } from './components';
|
|
4
|
+
export { roleIcon } from './adapter/common';
|
|
5
|
+
export { LocaleProvider } from './adapter/locale';
|
|
6
|
+
export { useToasts } from './adapter/toasts';
|
|
7
|
+
export type { TToastRender } from './adapter/toasts';
|
|
8
|
+
export type { TLocaleProviderProps } from './adapter/locale';
|
|
9
|
+
export type { TRoleIconProps } from './adapter/common';
|
|
10
|
+
export type { TConsumerRef } from './adapter/runtime';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { roleIcon } from "./adapter/common/icon.js";
|
|
2
|
+
import { LocaleProvider } from "./adapter/locale/LocaleProvider.js";
|
|
3
|
+
import { useToasts } from "./adapter/toasts/useToasts.js";
|
|
4
|
+
import { ComponentView } from "./components/component-view/ComponentView.js";
|
|
5
|
+
import { Button } from "./components/button/Button.js";
|
|
6
|
+
import { Icon } from "./components/icon/Icon.js";
|
|
7
|
+
import { Label } from "./components/label/Label.js";
|
|
8
|
+
import { Field } from "./components/field/Field.js";
|
|
9
|
+
import { Frame } from "./components/frame/Frame.js";
|
|
10
|
+
import { Popover } from "./components/popover/Popover.js";
|
|
11
|
+
import { Tooltip } from "./components/tooltip/Tooltip.js";
|
|
12
|
+
import { MenuGroup } from "./components/menu/group/Group.js";
|
|
13
|
+
import { MenuItem } from "./components/menu/item/Item.js";
|
|
14
|
+
import { MenuSeparator } from "./components/menu/separator/Separator.js";
|
|
15
|
+
import { MenuSubmenu } from "./components/menu/submenu/Submenu.js";
|
|
16
|
+
import { MenuCheckboxItem } from "./components/menu/checkbox-item/CheckboxItem.js";
|
|
17
|
+
import { MenuRadioItem } from "./components/menu/radio-item/RadioItem.js";
|
|
18
|
+
import { MenuPopoverItem } from "./components/menu/popover-item/PopoverItem.js";
|
|
19
|
+
import { MenuRadioGroup } from "./components/menu/radio-group/RadioGroup.js";
|
|
20
|
+
import { Menu } from "./components/menu/index.js";
|
|
21
|
+
import { Dialog } from "./components/dialog/Dialog.js";
|
|
22
|
+
import { Drawer } from "./components/drawer/Drawer.js";
|
|
23
|
+
import { ProgressSpinner } from "./components/progress-spinner/ProgressSpinner.js";
|
|
24
|
+
import { Toasts } from "./components/toasts/Toasts.js";
|
|
25
|
+
import { ProgressLinear } from "./components/progress-linear/ProgressLinear.js";
|
|
26
|
+
import { Skeleton } from "./components/skeleton/Skeleton.js";
|
|
27
|
+
import { Input } from "./components/input/Input.js";
|
|
28
|
+
import { NumberInput } from "./components/number-input/NumberInput.js";
|
|
29
|
+
import { Textarea } from "./components/textarea/Textarea.js";
|
|
30
|
+
import { CheckBox } from "./components/check-box/CheckBox.js";
|
|
31
|
+
import { Switch } from "./components/switch/Switch.js";
|
|
32
|
+
import { RadioGroupItem } from "./components/radio-group/item/Item.js";
|
|
33
|
+
import { RadioGroup } from "./components/radio-group/index.js";
|
|
34
|
+
import { Slider } from "./components/slider/Slider.js";
|
|
35
|
+
import { Rating } from "./components/rating/Rating.js";
|
|
36
|
+
import { DateInput } from "./components/date-input/DateInput.js";
|
|
37
|
+
import { ListBoxItem } from "./components/list-box/item/Item.js";
|
|
38
|
+
import { ListBoxGroup } from "./components/list-box/group/Group.js";
|
|
39
|
+
import { ListBox } from "./components/list-box/index.js";
|
|
40
|
+
import { CalendarItem } from "./components/calendar/item/Item.js";
|
|
41
|
+
import { Calendar } from "./components/calendar/index.js";
|
|
42
|
+
import { DatePicker } from "./components/date-picker/DatePicker.js";
|
|
43
|
+
import { TagsItem } from "./components/tags/item/Item.js";
|
|
44
|
+
import { Tags } from "./components/tags/index.js";
|
|
45
|
+
import { SelectItem } from "./components/select/item/Item.js";
|
|
46
|
+
import { SelectGroup } from "./components/select/group/Group.js";
|
|
47
|
+
import { Select } from "./components/select/index.js";
|
|
48
|
+
import { TabsItem } from "./components/tabs/item/Item.js";
|
|
49
|
+
import { TabsContent } from "./components/tabs/content/Content.js";
|
|
50
|
+
import { Tabs } from "./components/tabs/index.js";
|
|
51
|
+
import { AccordionItem } from "./components/accordion/item/Item.js";
|
|
52
|
+
import { Accordion } from "./components/accordion/index.js";
|
|
53
|
+
import { Pagination } from "./components/pagination/Pagination.js";
|
|
54
|
+
import { Scroller } from "./components/scroller/Scroller.js";
|
|
55
|
+
import { TableColumn } from "./components/table/column/Column.js";
|
|
56
|
+
import { TableRow } from "./components/table/row/Row.js";
|
|
57
|
+
import { Table } from "./components/table/index.js";
|
|
58
|
+
import { Virtual } from "./components/virtual/Virtual.js";
|
|
59
|
+
import { DragAndDrop } from "./components/drag-and-drop/DragAndDrop.js";
|
|
60
|
+
export { Accordion, AccordionItem, Button, Calendar, CalendarItem, CheckBox, ComponentView, DateInput, DatePicker, Dialog, DragAndDrop, Drawer, Field, Frame, Icon, Input, Label, ListBox, ListBoxGroup, ListBoxItem, LocaleProvider, Menu, MenuCheckboxItem, MenuGroup, MenuItem, MenuPopoverItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSubmenu, NumberInput, Pagination, Popover, ProgressLinear, ProgressSpinner, RadioGroup, RadioGroupItem, Rating, Scroller, Select, SelectGroup, SelectItem, Skeleton, Slider, Switch, Table, TableColumn, TableRow, Tabs, TabsContent, TabsItem, Tags, TagsItem, Textarea, Toasts, Tooltip, Virtual, roleIcon, useToasts };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { HTMLAttributes, InputHTMLAttributes, ReactNode, TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import type { IEntity } from '@soxa-ui/core';
|
|
3
|
+
import type { IComponentDescriptor, DescriptorAllProps, DescriptorCallbackEvents, DescriptorComponentProps, DescriptorSlots, TContractOf, TSlotProps } from '@soxa-ui/setup';
|
|
4
|
+
import type { TConsumerRef } from './adapter';
|
|
5
|
+
/** Событийные пропсы компонента из дескриптора (core + плагины). */
|
|
6
|
+
export type EventProps<TDescriptorFn extends (...args: any[]) => IComponentDescriptor> = DescriptorCallbackEvents<TDescriptorFn>;
|
|
7
|
+
/** Слоты из дескриптора: `default` — `children`; слот со scope принимает и функцию. */
|
|
8
|
+
export type SlotProps<TDescriptorFn extends (...args: any[]) => IComponentDescriptor> = TSlotProps<DescriptorSlots<TDescriptorFn>, ReactNode>;
|
|
9
|
+
/** Props headless-компонента: core props + события + слоты + служебные поля. */
|
|
10
|
+
export type UseProps<TDescriptorFn extends (...args: any[]) => IComponentDescriptor, TInstance extends IEntity = IEntity, TEvents extends object = EventProps<TDescriptorFn>> = DescriptorComponentProps<TDescriptorFn, TInstance> & TEvents & SlotProps<TDescriptorFn>;
|
|
11
|
+
/**
|
|
12
|
+
* HTML-атрибуты DOM-компонента без входов, событий, слотов и защищённых
|
|
13
|
+
* пропсов дескриптора, без `children`; `ref` — к корню. AGENTS.md (React),
|
|
14
|
+
* «Типы пропсов».
|
|
15
|
+
*/
|
|
16
|
+
export type TDomAttributes<TDescriptorFn extends (...args: any[]) => IComponentDescriptor, TAttributes extends object = HTMLAttributes<HTMLElement>, TEvents extends object = EventProps<TDescriptorFn>> = Omit<TAttributes, 'children' | 'ref' | keyof DescriptorAllProps<TDescriptorFn> | TContractOf<TDescriptorFn>['protectedName'] | keyof SlotProps<TDescriptorFn> | keyof TEvents> & {
|
|
17
|
+
/** Корень компонента — узел, на который ложатся класс и атрибуты потребителя. */
|
|
18
|
+
ref?: TConsumerRef;
|
|
19
|
+
};
|
|
20
|
+
/** Атрибуты `<input>` полей без того, что поле ведёт само. */
|
|
21
|
+
export type TFieldAttributes = Omit<InputHTMLAttributes<HTMLInputElement>, 'checked' | 'defaultChecked' | 'defaultValue' | 'readOnly'>;
|
|
22
|
+
/** Атрибуты `<textarea>` без того, что поле ведёт само. */
|
|
23
|
+
export type TTextareaAttributes = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'defaultValue' | 'dangerouslySetInnerHTML' | 'readOnly' | 'maxLength'>;
|
|
24
|
+
/** Props DOM-компонента: `UseProps` и атрибуты корня (`TDomAttributes`). */
|
|
25
|
+
export type UseDomProps<TDescriptorFn extends (...args: any[]) => IComponentDescriptor, TInstance extends IEntity = IEntity, TEvents extends object = EventProps<TDescriptorFn>, TAttributes extends object = HTMLAttributes<HTMLElement>> = UseProps<TDescriptorFn, TInstance, TEvents> & TDomAttributes<TDescriptorFn, TAttributes, TEvents>;
|