native-document 1.0.164 → 1.0.166
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/components.d.ts +2 -0
- package/devtools/widget.js +1 -1
- package/dist/native-document.components.min.js +11074 -2735
- package/dist/native-document.dev.js +2269 -392
- package/dist/native-document.dev.js.map +1 -1
- package/dist/native-document.min.js +1 -1
- package/eslint.config.js +28 -33
- package/i18n.js +1 -1
- package/i18n.ts +2 -0
- package/index.js +4 -1
- package/package.json +3 -2
- package/src/components/$traits/has-draggable/HasDraggable.d.ts +4 -0
- package/src/components/$traits/has-draggable/HasDraggable.js +13 -0
- package/src/components/$traits/has-items/HasItems.d.ts +9 -0
- package/src/components/$traits/has-items/HasItems.js +6 -6
- package/src/components/$traits/has-position/HasFullPosition.d.ts +14 -0
- package/src/components/$traits/has-position/HasFullPosition.js +44 -0
- package/src/components/$traits/has-position/HasPosition.d.ts +7 -0
- package/src/components/$traits/has-position/HasPosition.js +23 -1
- package/src/components/$traits/has-resizable/HasResizable.d.ts +13 -0
- package/src/components/$traits/has-resizable/HasResizable.js +9 -0
- package/src/components/$traits/has-validation/HasValidation.d.ts +17 -0
- package/src/components/$traits/has-validation/HasValidation.js +54 -7
- package/src/components/BaseComponent.d.ts +32 -0
- package/src/components/BaseComponent.js +65 -9
- package/src/components/accordion/Accordion.js +39 -14
- package/src/components/accordion/AccordionItem.js +45 -14
- package/src/components/accordion/index.js +2 -2
- package/src/components/accordion/types/Accordion.d.ts +47 -0
- package/src/components/accordion/types/AccordionItem.d.ts +48 -0
- package/src/components/alert/Alert.js +70 -38
- package/src/components/alert/index.js +2 -2
- package/src/components/alert/types/Alert.d.ts +62 -0
- package/src/components/avatar/Avatar.js +49 -12
- package/src/components/avatar/AvatarGroup.js +50 -2
- package/src/components/avatar/index.js +2 -2
- package/src/components/avatar/types/Avatar.d.ts +74 -0
- package/src/components/avatar/types/AvatarGroup.d.ts +32 -0
- package/src/components/badge/Badge.js +125 -5
- package/src/components/badge/index.js +2 -2
- package/src/components/badge/types/Badge.d.ts +51 -0
- package/src/components/breadcrumb/BreadCrumb.js +61 -5
- package/src/components/breadcrumb/index.js +2 -2
- package/src/components/breadcrumb/types/BreadCrumb.d.ts +42 -0
- package/src/components/button/Button.js +164 -9
- package/src/components/button/index.js +1 -1
- package/src/components/button/types/Button.d.ts +62 -0
- package/src/components/card/Card.js +128 -10
- package/src/components/card/index.js +3 -3
- package/src/components/card/types/Card.d.ts +42 -0
- package/src/components/context-menu/ContextMenu.js +49 -5
- package/src/components/context-menu/ContextMenuGroup.js +15 -2
- package/src/components/context-menu/ContextMenuItem.js +14 -2
- package/src/components/context-menu/index.js +5 -5
- package/src/components/context-menu/types/ContextMenu.d.ts +30 -0
- package/src/components/context-menu/types/ContextMenuGroup.d.ts +18 -0
- package/src/components/context-menu/types/ContextMenuItem.d.ts +18 -0
- package/src/components/divider/Divider.js +120 -4
- package/src/components/divider/index.js +3 -3
- package/src/components/divider/types/Divider.d.ts +55 -0
- package/src/components/dropdown/Dropdown.js +239 -16
- package/src/components/dropdown/DropdownDivider.js +22 -2
- package/src/components/dropdown/DropdownGroup.js +44 -5
- package/src/components/dropdown/DropdownItem.js +76 -3
- package/src/components/dropdown/DropdownTrigger.js +49 -20
- package/src/components/dropdown/helpers.js +1 -1
- package/src/components/dropdown/index.js +6 -6
- package/src/components/dropdown/types/Dropdown.d.ts +88 -0
- package/src/components/dropdown/types/DropdownDivider.d.ts +20 -0
- package/src/components/dropdown/types/DropdownGroup.d.ts +25 -0
- package/src/components/dropdown/types/DropdownItem.d.ts +41 -0
- package/src/components/dropdown/types/DropdownTrigger.d.ts +32 -0
- package/src/components/form/FormControl.js +156 -13
- package/src/components/form/field/Field.js +172 -9
- package/src/components/form/field/FieldCollection.js +116 -12
- package/src/components/form/field/types/AutocompleteField.js +92 -2
- package/src/components/form/field/types/CheckboxField.js +43 -2
- package/src/components/form/field/types/CheckboxGroupField.js +83 -6
- package/src/components/form/field/types/ColorField.js +56 -3
- package/src/components/form/field/types/DateField.js +155 -4
- package/src/components/form/field/types/EmailField.js +54 -4
- package/src/components/form/field/types/FileField.js +140 -6
- package/src/components/form/field/types/HiddenField.js +27 -1
- package/src/components/form/field/types/ImageField.js +82 -3
- package/src/components/form/field/types/NumberField.js +97 -4
- package/src/components/form/field/types/PasswordField.js +103 -7
- package/src/components/form/field/types/RadioField.js +75 -4
- package/src/components/form/field/types/RangeField.js +67 -1
- package/src/components/form/field/types/SearchField.js +41 -2
- package/src/components/form/field/types/SelectField.js +133 -4
- package/src/components/form/field/types/StringField.js +91 -2
- package/src/components/form/field/types/TelField.js +55 -4
- package/src/components/form/field/types/TextAreaField.js +76 -2
- package/src/components/form/field/types/TimeField.js +120 -5
- package/src/components/form/field/types/UrlField.js +59 -4
- package/src/components/form/field/types/file-field-mode/FileAvatarMode.js +83 -4
- package/src/components/form/field/types/file-field-mode/FileDropzoneMode.js +61 -3
- package/src/components/form/field/types/file-field-mode/FileItemPreview.js +79 -3
- package/src/components/form/field/types/file-field-mode/FileNativeMode.js +24 -2
- package/src/components/form/field/types/file-field-mode/FileUploadButtonMode.js +64 -3
- package/src/components/form/field/types/file-field-mode/FileWallMode.js +56 -3
- package/src/components/form/index.js +28 -28
- package/src/components/form/types/Field.d.ts +73 -0
- package/src/components/form/types/FieldCollection.d.ts +53 -0
- package/src/components/form/types/FormControl.d.ts +64 -0
- package/src/components/form/types/fields/AutocompleteField.d.ts +48 -0
- package/src/components/form/types/fields/CheckboxField.d.ts +33 -0
- package/src/components/form/types/fields/CheckboxGroupField.d.ts +49 -0
- package/src/components/form/types/fields/ColorField.d.ts +37 -0
- package/src/components/form/types/fields/DateField.d.ts +70 -0
- package/src/components/form/types/fields/EmailField.d.ts +35 -0
- package/src/components/form/types/fields/FileAvatarMode.d.ts +46 -0
- package/src/components/form/types/fields/FileDropzoneMode.d.ts +28 -0
- package/src/components/form/types/fields/FileField.d.ts +56 -0
- package/src/components/form/types/fields/FileItemPreview.d.ts +35 -0
- package/src/components/form/types/fields/FileNativeMode.d.ts +21 -0
- package/src/components/form/types/fields/FileUploadButtonMode.d.ts +34 -0
- package/src/components/form/types/fields/FileWallMode.d.ts +32 -0
- package/src/components/form/types/fields/HiddenField.d.ts +26 -0
- package/src/components/form/types/fields/ImageField.d.ts +45 -0
- package/src/components/form/types/fields/NumberField.d.ts +48 -0
- package/src/components/form/types/fields/PasswordField.d.ts +46 -0
- package/src/components/form/types/fields/RadioField.d.ts +48 -0
- package/src/components/form/types/fields/RangeField.d.ts +44 -0
- package/src/components/form/types/fields/SearchField.d.ts +34 -0
- package/src/components/form/types/fields/SelectField.d.ts +71 -0
- package/src/components/form/types/fields/StringField.d.ts +48 -0
- package/src/components/form/types/fields/TelField.d.ts +37 -0
- package/src/components/form/types/fields/TextAreaField.d.ts +44 -0
- package/src/components/form/types/fields/TimeField.d.ts +51 -0
- package/src/components/form/types/fields/UrlField.d.ts +35 -0
- package/src/components/form/validation/Validation.js +54 -54
- package/src/components/index.d.ts +160 -0
- package/src/components/list/List.js +99 -15
- package/src/components/list/ListGroup.js +58 -8
- package/src/components/list/ListItem.js +79 -18
- package/src/components/list/index.js +5 -5
- package/src/components/list/types/List.d.ts +43 -0
- package/src/components/list/types/ListGroup.d.ts +37 -0
- package/src/components/list/types/ListItem.d.ts +42 -0
- package/src/components/menu/HasMenuItem.js +55 -6
- package/src/components/menu/Menu.js +113 -22
- package/src/components/menu/MenuDivider.js +18 -2
- package/src/components/menu/MenuGroup.js +61 -6
- package/src/components/menu/MenuItem.js +95 -11
- package/src/components/menu/MenuLink.js +27 -2
- package/src/components/menu/index.js +6 -6
- package/src/components/menu/types/Menu.d.ts +60 -0
- package/src/components/menu/types/MenuDivider.d.ts +19 -0
- package/src/components/menu/types/MenuGroup.d.ts +44 -0
- package/src/components/menu/types/MenuItem.d.ts +46 -0
- package/src/components/menu/types/MenuLink.d.ts +16 -0
- package/src/components/modal/Modal.js +258 -17
- package/src/components/modal/index.js +3 -3
- package/src/components/modal/types/Modal.d.ts +94 -0
- package/src/components/pagination/Pagination.js +155 -7
- package/src/components/pagination/index.js +3 -3
- package/src/components/pagination/types/Pagination.d.ts +68 -0
- package/src/components/popover/Popover.js +198 -11
- package/src/components/popover/PopoverFooter.js +33 -9
- package/src/components/popover/PopoverHeader.js +33 -8
- package/src/components/popover/index.js +4 -4
- package/src/components/popover/types/Popover.d.ts +83 -0
- package/src/components/popover/types/PopoverFooter.d.ts +24 -0
- package/src/components/popover/types/PopoverHeader.d.ts +26 -0
- package/src/components/progress/Progress.js +182 -13
- package/src/components/progress/index.js +3 -3
- package/src/components/progress/types/Progress.d.ts +77 -0
- package/src/components/skeleton/Skeleton.js +117 -49
- package/src/components/skeleton/index.js +3 -3
- package/src/components/skeleton/types/Skeleton.d.ts +55 -0
- package/src/components/slider/Slider.js +207 -10
- package/src/components/slider/index.js +2 -2
- package/src/components/slider/types/Slider.d.ts +82 -0
- package/src/components/spacer/Spacer.js +11 -2
- package/src/components/spacer/index.js +2 -2
- package/src/components/spacer/types/Spacer.d.ts +19 -0
- package/src/components/spinner/Spinner.js +180 -9
- package/src/components/spinner/index.js +3 -3
- package/src/components/spinner/types/Spinner.d.ts +71 -0
- package/src/components/splitter/Splitter.js +76 -13
- package/src/components/splitter/SplitterGutter.js +67 -5
- package/src/components/splitter/SplitterPanel.js +69 -2
- package/src/components/splitter/index.js +5 -5
- package/src/components/splitter/types/Splitter.d.ts +38 -0
- package/src/components/splitter/types/SplitterGutter.d.ts +38 -0
- package/src/components/splitter/types/SplitterPanel.d.ts +41 -0
- package/src/components/stacks/AbsoluteStack.js +23 -3
- package/src/components/stacks/FixedStack.js +23 -3
- package/src/components/stacks/HStack.js +24 -3
- package/src/components/stacks/PositionStack.js +111 -3
- package/src/components/stacks/RelativeStack.js +23 -3
- package/src/components/stacks/Stack.js +73 -2
- package/src/components/stacks/VStack.js +24 -4
- package/src/components/stacks/index.js +7 -7
- package/src/components/stacks/types/AbsoluteStack.d.ts +16 -0
- package/src/components/stacks/types/FixedStack.d.ts +16 -0
- package/src/components/stacks/types/HStack.d.ts +16 -0
- package/src/components/stacks/types/PositionStack.d.ts +54 -0
- package/src/components/stacks/types/RelativeStack.d.ts +17 -0
- package/src/components/stacks/types/Stack.d.ts +39 -0
- package/src/components/stacks/types/VStack.d.ts +16 -0
- package/src/components/stepper/Stepper.js +152 -12
- package/src/components/stepper/StepperStep.js +104 -3
- package/src/components/stepper/index.js +4 -4
- package/src/components/stepper/types/Stepper.d.ts +68 -0
- package/src/components/stepper/types/StepperStep.d.ts +54 -0
- package/src/components/switch/Switch.js +143 -6
- package/src/components/switch/index.js +1 -1
- package/src/components/switch/types/Switch.d.ts +55 -0
- package/src/components/table/Column.js +105 -6
- package/src/components/table/ColumnGroup.js +48 -3
- package/src/components/table/DataTable.js +256 -19
- package/src/components/table/SimpleTable.js +58 -4
- package/src/components/table/index.js +2 -2
- package/src/components/table/types/Column.d.ts +49 -0
- package/src/components/table/types/ColumnGroup.d.ts +28 -0
- package/src/components/table/types/DataTable.d.ts +97 -0
- package/src/components/table/types/SimpleTable.d.ts +40 -0
- package/src/components/tabs/Tabs.js +192 -5
- package/src/components/tabs/index.js +3 -3
- package/src/components/tabs/types/Tabs.d.ts +78 -0
- package/src/components/toast/Toast.js +133 -5
- package/src/components/toast/index.js +3 -3
- package/src/components/toast/types/Toast.d.ts +57 -0
- package/src/components/toast/types/ToastError.d.ts +7 -0
- package/src/components/toast/types/ToastInfo.d.ts +7 -0
- package/src/components/toast/types/ToastSuccess.d.ts +7 -0
- package/src/components/toast/types/ToastWarning.d.ts +7 -0
- package/src/components/tooltip/Tooltip.js +157 -13
- package/src/components/tooltip/index.js +2 -2
- package/src/components/tooltip/prototypes.js +1 -1
- package/src/components/tooltip/types/Tooltip.d.ts +65 -0
- package/src/core/data/MemoryManager.js +2 -2
- package/src/core/data/Observable.js +15 -18
- package/src/core/data/ObservableArray.js +118 -46
- package/src/core/data/ObservableChecker.js +2 -2
- package/src/core/data/ObservableItem.js +135 -21
- package/src/core/data/ObservableObject.js +126 -35
- package/src/core/data/ObservableResource.js +113 -3
- package/src/core/data/Store.js +142 -26
- package/src/core/data/observable-helpers/observable.is-to.js +196 -1
- package/src/core/data/observable-helpers/observable.prototypes.js +33 -8
- package/src/core/elements/anchor/anchor-with-sentinel.js +23 -2
- package/src/core/elements/anchor/anchor.js +16 -7
- package/src/core/elements/anchor/one-child-anchor-overwriting.js +2 -2
- package/src/core/elements/content-formatter.js +1 -1
- package/src/core/elements/control/for-each-array.js +9 -9
- package/src/core/elements/control/for-each.js +14 -14
- package/src/core/elements/control/show-if.js +11 -11
- package/src/core/elements/control/show-when.js +5 -5
- package/src/core/elements/control/switch.js +14 -14
- package/src/core/elements/description-list.js +1 -1
- package/src/core/elements/form.js +2 -2
- package/src/core/elements/fragment.js +1 -1
- package/src/core/elements/html5-semantics.js +1 -1
- package/src/core/elements/img.js +3 -3
- package/src/core/elements/interactive.js +1 -1
- package/src/core/elements/list.js +1 -1
- package/src/core/elements/medias.js +1 -1
- package/src/core/elements/meta-data.js +1 -1
- package/src/core/elements/svg.js +1 -1
- package/src/core/elements/table.js +1 -1
- package/src/core/errors/ArgTypesError.js +1 -1
- package/src/core/utils/HasEventEmitter.js +36 -2
- package/src/core/utils/args-types.js +9 -9
- package/src/core/utils/cache.js +1 -1
- package/src/core/utils/callback-handler.js +29 -0
- package/src/core/utils/debug-manager.js +6 -6
- package/src/core/utils/events.js +139 -139
- package/src/core/utils/filters/date.js +84 -3
- package/src/core/utils/filters/standard.js +136 -11
- package/src/core/utils/filters/strings.js +34 -2
- package/src/core/utils/filters/utils.js +40 -4
- package/src/core/utils/formatters.js +4 -4
- package/src/core/utils/helpers.js +39 -7
- package/src/core/utils/localstorage.js +11 -11
- package/src/core/utils/memoize.js +56 -3
- package/src/core/utils/plugins-manager.js +3 -3
- package/src/core/utils/property-accumulator.js +6 -6
- package/src/core/utils/prototypes.js +26 -1
- package/src/core/utils/shortcut-manager.js +2 -2
- package/src/core/utils/validator.js +8 -8
- package/src/core/wrappers/AttributesWrapper.js +32 -22
- package/src/core/wrappers/DocumentObserver.js +3 -3
- package/src/core/wrappers/ElementCreator.js +5 -5
- package/src/core/wrappers/HtmlElementWrapper.js +38 -12
- package/src/core/wrappers/NDElement.js +328 -22
- package/src/core/wrappers/NdPrototype.js +60 -16
- package/src/core/wrappers/SingletonView.js +50 -2
- package/src/core/wrappers/SvgElementWrapper.js +1 -1
- package/src/core/wrappers/constants.js +35 -2
- package/src/core/wrappers/prototypes/attributes-extensions.js +7 -7
- package/src/core/wrappers/prototypes/nd-element-extensions.js +72 -6
- package/src/core/wrappers/prototypes/nd-element.transition.extensions.js +42 -2
- package/src/core/wrappers/template-cloner/NodeCloner.js +53 -8
- package/src/core/wrappers/template-cloner/TemplateCloner.js +75 -6
- package/src/core/wrappers/template-cloner/attributes-hydrator.js +58 -2
- package/src/core/wrappers/template-cloner/utils.js +42 -6
- package/src/fetch/NativeFetch.js +3 -3
- package/src/i18n/bin/scan.js +6 -6
- package/src/i18n/index.d.ts +2 -0
- package/src/i18n/service/I18nService.d.ts +27 -0
- package/src/i18n/service/I18nService.js +5 -5
- package/src/i18n/service/functions.d.ts +22 -0
- package/src/i18n/service/functions.js +2 -2
- package/src/router/Route.js +3 -3
- package/src/router/RouteGroupHelper.js +2 -2
- package/src/router/Router.js +15 -15
- package/src/router/RouterComponent.js +33 -7
- package/src/router/link.js +4 -4
- package/src/router/modes/HashRouter.js +2 -2
- package/src/router/modes/HistoryRouter.js +2 -2
- package/src/router/modes/MemoryRouter.js +1 -1
- package/src/ui/components/accordion/AccordionItemRender.js +3 -3
- package/src/ui/components/accordion/AccordionRender.js +1 -1
- package/src/ui/components/alert/AlertRender.js +10 -10
- package/src/ui/components/avatar/avata-group/AvatarGroupRender.js +1 -1
- package/src/ui/components/avatar/avatar/AvatarRender.js +1 -1
- package/src/ui/components/breadcrumb/BreadcrumbRender.js +2 -2
- package/src/ui/components/button/ButtonRender.js +1 -1
- package/src/ui/components/contextmenu/ContextmenuRender.js +5 -5
- package/src/ui/components/dropdown/DropdownRender.js +8 -8
- package/src/ui/components/dropdown/group/DropdownGroupRender.js +2 -2
- package/src/ui/components/dropdown/item/DropdownItemRender.js +1 -1
- package/src/ui/components/form/FieldCollectionRender.js +2 -2
- package/src/ui/components/form/FormControlRender.js +5 -5
- package/src/ui/components/form/fields/AutocompleteFieldRender.js +3 -3
- package/src/ui/components/form/fields/CheckboxFieldRender.js +1 -1
- package/src/ui/components/form/fields/CheckboxGroupFieldRender.js +1 -1
- package/src/ui/components/form/fields/DateFieldRender.js +7 -7
- package/src/ui/components/form/fields/EmailFieldRender.js +1 -1
- package/src/ui/components/form/fields/FieldRender.js +4 -4
- package/src/ui/components/form/fields/FileFieldRender.js +1 -1
- package/src/ui/components/form/fields/PasswordFieldRender.js +2 -2
- package/src/ui/components/form/fields/RadioFieldRender.js +1 -1
- package/src/ui/components/form/fields/RangeFieldRender.js +1 -1
- package/src/ui/components/form/fields/SelectFieldRender.js +2 -2
- package/src/ui/components/form/fields/SliderFieldRender.js +6 -6
- package/src/ui/components/form/fields/StringFieldRender.js +1 -1
- package/src/ui/components/form/fields/TelFieldRender.js +1 -1
- package/src/ui/components/form/fields/TextAreaFieldRender.js +1 -1
- package/src/ui/components/form/fields/TimeFieldRender.js +3 -3
- package/src/ui/components/form/fields/UrlFieldRender.js +1 -1
- package/src/ui/components/form/file-upload-mode/FileAvatarModeRender.js +1 -1
- package/src/ui/components/form/file-upload-mode/FileDropzoneModeRender.js +2 -2
- package/src/ui/components/form/file-upload-mode/FileUploadButtonModeRender.js +2 -2
- package/src/ui/components/form/file-upload-mode/FileWallModeRender.js +1 -1
- package/src/ui/components/form/helpers.js +8 -8
- package/src/ui/components/form/index.js +27 -27
- package/src/ui/components/menu/MenuDividerRender.js +1 -1
- package/src/ui/components/menu/MenuGroupRender.js +3 -3
- package/src/ui/components/menu/MenuItemRender.js +2 -2
- package/src/ui/components/menu/MenuLinkRender.js +3 -3
- package/src/ui/components/menu/helpers.js +4 -4
- package/src/ui/components/modal/ModalRender.js +4 -4
- package/src/ui/components/pagination/PaginationRender.js +9 -9
- package/src/ui/components/popover/PopoverRender.js +7 -7
- package/src/ui/components/progress/ProgressRender.js +12 -12
- package/src/ui/components/skeleton/SkeletonRender.js +56 -0
- package/src/ui/components/splitter/SplitterGutterRender.js +1 -1
- package/src/ui/components/splitter/SplitterPanelRender.js +2 -2
- package/src/ui/components/stacks/PositionStackRender.js +1 -1
- package/src/ui/components/stacks/StackRender.js +1 -1
- package/src/ui/components/stacks/absolute-stack/AbsoluteStackRender.js +1 -1
- package/src/ui/components/stacks/fixed-stack/FixedStackRender.js +1 -1
- package/src/ui/components/stacks/h-stack/HStackRender.js +1 -1
- package/src/ui/components/stacks/index.js +5 -5
- package/src/ui/components/stacks/relative-stack/RelativeStackRender.js +1 -1
- package/src/ui/components/stacks/v-stack/VStackRender.js +1 -1
- package/src/ui/components/stepper/StepperRender.js +2 -2
- package/src/ui/components/stepper/StepperStepRender.js +4 -4
- package/src/ui/components/switch/SwitchRender.js +4 -4
- package/src/ui/components/table/data-table/DataTableRender.js +5 -5
- package/src/ui/components/table/data-table/bulk-actions.js +7 -7
- package/src/ui/components/table/data-table/pagination.js +6 -6
- package/src/ui/components/table/data-table/tables.js +25 -25
- package/src/ui/components/table/data-table/toolbar.js +3 -3
- package/src/ui/components/table/simple-table/SimpleTableRender.js +8 -8
- package/src/ui/components/tabs/TabsRender.js +11 -11
- package/src/ui/components/toast/ToastRender.js +3 -3
- package/src/ui/components/tooltip/TooltipRender.js +1 -1
- package/src/ui/index.js +36 -36
- package/types/elements.d.ts +163 -1037
- package/types/forms.d.ts +16 -20
- package/types/globals.d.ts +543 -0
- package/types/images.d.ts +2 -2
- package/types/observable-resource.d.ts +3 -0
- package/types/property-accumulator.d.ts +4 -4
- package/types/store.d.ts +26 -2
- package/types/validator.ts +3 -3
- package/ui.js +1 -0
- package/src/components/form/field/DefaultRender.js +0 -77
- package/src/components/form/field/FieldFactory.js +0 -107
- package/src/components/skeleton/SkeletonCard.js +0 -0
- package/src/components/skeleton/SkeletonList.js +0 -0
- package/src/components/skeleton/SkeletonParagraph.js +0 -0
- package/src/components/skeleton/SkeletonTable.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Validator from
|
|
1
|
+
import Validator from '../../../core/utils/validator';
|
|
2
2
|
|
|
3
3
|
export const Validation = {
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ export const Validation = {
|
|
|
6
6
|
const valid = value !== null && value !== undefined && value !== '';
|
|
7
7
|
return {
|
|
8
8
|
valid,
|
|
9
|
-
message: 'This field is required'
|
|
9
|
+
message: 'This field is required',
|
|
10
10
|
};
|
|
11
11
|
},
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ export const Validation = {
|
|
|
15
15
|
const valid = value.length >= min;
|
|
16
16
|
return {
|
|
17
17
|
valid,
|
|
18
|
-
message: `Minimum ${min} characters required
|
|
18
|
+
message: `Minimum ${min} characters required`,
|
|
19
19
|
};
|
|
20
20
|
},
|
|
21
21
|
|
|
@@ -24,7 +24,7 @@ export const Validation = {
|
|
|
24
24
|
const valid = value.length <= max;
|
|
25
25
|
return {
|
|
26
26
|
valid,
|
|
27
|
-
message: `Maximum ${max} characters allowed
|
|
27
|
+
message: `Maximum ${max} characters allowed`,
|
|
28
28
|
};
|
|
29
29
|
},
|
|
30
30
|
|
|
@@ -33,7 +33,7 @@ export const Validation = {
|
|
|
33
33
|
const valid = value.length === length;
|
|
34
34
|
return {
|
|
35
35
|
valid,
|
|
36
|
-
message: `Must be exactly ${length} characters
|
|
36
|
+
message: `Must be exactly ${length} characters`,
|
|
37
37
|
};
|
|
38
38
|
},
|
|
39
39
|
|
|
@@ -43,7 +43,7 @@ export const Validation = {
|
|
|
43
43
|
const valid = regex.test(value);
|
|
44
44
|
return {
|
|
45
45
|
valid,
|
|
46
|
-
message: 'Invalid email address'
|
|
46
|
+
message: 'Invalid email address',
|
|
47
47
|
};
|
|
48
48
|
},
|
|
49
49
|
|
|
@@ -52,7 +52,7 @@ export const Validation = {
|
|
|
52
52
|
const valid = regex.test(value);
|
|
53
53
|
return {
|
|
54
54
|
valid,
|
|
55
|
-
message: 'Invalid format'
|
|
55
|
+
message: 'Invalid format',
|
|
56
56
|
};
|
|
57
57
|
},
|
|
58
58
|
|
|
@@ -61,7 +61,7 @@ export const Validation = {
|
|
|
61
61
|
const valid = /^[a-zA-Z]+$/.test(value);
|
|
62
62
|
return {
|
|
63
63
|
valid,
|
|
64
|
-
message: 'Only letters allowed'
|
|
64
|
+
message: 'Only letters allowed',
|
|
65
65
|
};
|
|
66
66
|
},
|
|
67
67
|
|
|
@@ -70,7 +70,7 @@ export const Validation = {
|
|
|
70
70
|
const valid = /^[0-9]+$/.test(value);
|
|
71
71
|
return {
|
|
72
72
|
valid,
|
|
73
|
-
message: 'Only numbers allowed'
|
|
73
|
+
message: 'Only numbers allowed',
|
|
74
74
|
};
|
|
75
75
|
},
|
|
76
76
|
|
|
@@ -79,7 +79,7 @@ export const Validation = {
|
|
|
79
79
|
const valid = /^[a-zA-Z0-9]+$/.test(value);
|
|
80
80
|
return {
|
|
81
81
|
valid,
|
|
82
|
-
message: 'Only letters and numbers allowed'
|
|
82
|
+
message: 'Only letters and numbers allowed',
|
|
83
83
|
};
|
|
84
84
|
},
|
|
85
85
|
|
|
@@ -88,7 +88,7 @@ export const Validation = {
|
|
|
88
88
|
const valid = Number(value) >= min;
|
|
89
89
|
return {
|
|
90
90
|
valid,
|
|
91
|
-
message: `Minimum value is ${min}
|
|
91
|
+
message: `Minimum value is ${min}`,
|
|
92
92
|
};
|
|
93
93
|
},
|
|
94
94
|
|
|
@@ -97,7 +97,7 @@ export const Validation = {
|
|
|
97
97
|
const valid = Number(value) <= max;
|
|
98
98
|
return {
|
|
99
99
|
valid,
|
|
100
|
-
message: `Maximum value is ${max}
|
|
100
|
+
message: `Maximum value is ${max}`,
|
|
101
101
|
};
|
|
102
102
|
},
|
|
103
103
|
|
|
@@ -107,7 +107,7 @@ export const Validation = {
|
|
|
107
107
|
const valid = num >= min && num <= max;
|
|
108
108
|
return {
|
|
109
109
|
valid,
|
|
110
|
-
message: `Value must be between ${min} and ${max}
|
|
110
|
+
message: `Value must be between ${min} and ${max}`,
|
|
111
111
|
};
|
|
112
112
|
},
|
|
113
113
|
|
|
@@ -116,7 +116,7 @@ export const Validation = {
|
|
|
116
116
|
const valid = /^-?\d+$/.test(value);
|
|
117
117
|
return {
|
|
118
118
|
valid,
|
|
119
|
-
message: 'Must be an integer'
|
|
119
|
+
message: 'Must be an integer',
|
|
120
120
|
};
|
|
121
121
|
},
|
|
122
122
|
|
|
@@ -125,7 +125,7 @@ export const Validation = {
|
|
|
125
125
|
const valid = Number(value) > 0;
|
|
126
126
|
return {
|
|
127
127
|
valid,
|
|
128
|
-
message: 'Must be positive'
|
|
128
|
+
message: 'Must be positive',
|
|
129
129
|
};
|
|
130
130
|
},
|
|
131
131
|
|
|
@@ -134,7 +134,7 @@ export const Validation = {
|
|
|
134
134
|
const valid = Number(value) < 0;
|
|
135
135
|
return {
|
|
136
136
|
valid,
|
|
137
|
-
message: 'Must be negative'
|
|
137
|
+
message: 'Must be negative',
|
|
138
138
|
};
|
|
139
139
|
},
|
|
140
140
|
|
|
@@ -142,7 +142,7 @@ export const Validation = {
|
|
|
142
142
|
const valid = value === otherValue;
|
|
143
143
|
return {
|
|
144
144
|
valid,
|
|
145
|
-
message: 'Values must match'
|
|
145
|
+
message: 'Values must match',
|
|
146
146
|
};
|
|
147
147
|
},
|
|
148
148
|
|
|
@@ -150,7 +150,7 @@ export const Validation = {
|
|
|
150
150
|
const valid = value !== otherValue;
|
|
151
151
|
return {
|
|
152
152
|
valid,
|
|
153
|
-
message: 'Values must be different'
|
|
153
|
+
message: 'Values must be different',
|
|
154
154
|
};
|
|
155
155
|
},
|
|
156
156
|
|
|
@@ -162,7 +162,7 @@ export const Validation = {
|
|
|
162
162
|
} catch {
|
|
163
163
|
return {
|
|
164
164
|
valid: false,
|
|
165
|
-
message: 'Invalid URL'
|
|
165
|
+
message: 'Invalid URL',
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
168
|
},
|
|
@@ -174,7 +174,7 @@ export const Validation = {
|
|
|
174
174
|
const valid = regex.test(value);
|
|
175
175
|
return {
|
|
176
176
|
valid,
|
|
177
|
-
message: 'Invalid phone number'
|
|
177
|
+
message: 'Invalid phone number',
|
|
178
178
|
};
|
|
179
179
|
},
|
|
180
180
|
|
|
@@ -184,7 +184,7 @@ export const Validation = {
|
|
|
184
184
|
const valid = !isNaN(date.getTime());
|
|
185
185
|
return {
|
|
186
186
|
valid,
|
|
187
|
-
message: 'Invalid date'
|
|
187
|
+
message: 'Invalid date',
|
|
188
188
|
};
|
|
189
189
|
},
|
|
190
190
|
|
|
@@ -195,7 +195,7 @@ export const Validation = {
|
|
|
195
195
|
const valid = date > compareDate;
|
|
196
196
|
return {
|
|
197
197
|
valid,
|
|
198
|
-
message: `Date must be after ${afterDate}
|
|
198
|
+
message: `Date must be after ${afterDate}`,
|
|
199
199
|
};
|
|
200
200
|
},
|
|
201
201
|
|
|
@@ -206,7 +206,7 @@ export const Validation = {
|
|
|
206
206
|
const valid = date < compareDate;
|
|
207
207
|
return {
|
|
208
208
|
valid,
|
|
209
|
-
message: `Date must be before ${beforeDate}
|
|
209
|
+
message: `Date must be before ${beforeDate}`,
|
|
210
210
|
};
|
|
211
211
|
},
|
|
212
212
|
|
|
@@ -216,7 +216,7 @@ export const Validation = {
|
|
|
216
216
|
const mb = (maxBytes / (1024 * 1024)).toFixed(2);
|
|
217
217
|
return {
|
|
218
218
|
valid,
|
|
219
|
-
message: `File size must not exceed ${mb}MB
|
|
219
|
+
message: `File size must not exceed ${mb}MB`,
|
|
220
220
|
};
|
|
221
221
|
},
|
|
222
222
|
|
|
@@ -225,7 +225,7 @@ export const Validation = {
|
|
|
225
225
|
const valid = allowedTypes.includes(file.type);
|
|
226
226
|
return {
|
|
227
227
|
valid,
|
|
228
|
-
message: `Allowed types: ${allowedTypes.join(', ')}
|
|
228
|
+
message: `Allowed types: ${allowedTypes.join(', ')}`,
|
|
229
229
|
};
|
|
230
230
|
},
|
|
231
231
|
|
|
@@ -234,7 +234,7 @@ export const Validation = {
|
|
|
234
234
|
const valid = value === value.toLowerCase();
|
|
235
235
|
return {
|
|
236
236
|
valid,
|
|
237
|
-
message: 'Must be lowercase'
|
|
237
|
+
message: 'Must be lowercase',
|
|
238
238
|
};
|
|
239
239
|
},
|
|
240
240
|
|
|
@@ -243,7 +243,7 @@ export const Validation = {
|
|
|
243
243
|
const valid = value === value.toUpperCase();
|
|
244
244
|
return {
|
|
245
245
|
valid,
|
|
246
|
-
message: 'Must be uppercase'
|
|
246
|
+
message: 'Must be uppercase',
|
|
247
247
|
};
|
|
248
248
|
},
|
|
249
249
|
|
|
@@ -252,7 +252,7 @@ export const Validation = {
|
|
|
252
252
|
const valid = !/\s/.test(value);
|
|
253
253
|
return {
|
|
254
254
|
valid,
|
|
255
|
-
message: 'Spaces not allowed'
|
|
255
|
+
message: 'Spaces not allowed',
|
|
256
256
|
};
|
|
257
257
|
},
|
|
258
258
|
afterDate(value, afterDate) {
|
|
@@ -262,7 +262,7 @@ export const Validation = {
|
|
|
262
262
|
const valid = date > compareDate;
|
|
263
263
|
return {
|
|
264
264
|
valid,
|
|
265
|
-
message: `Date must be after ${new Date(afterDate).toLocaleDateString()}
|
|
265
|
+
message: `Date must be after ${new Date(afterDate).toLocaleDateString()}`,
|
|
266
266
|
};
|
|
267
267
|
},
|
|
268
268
|
|
|
@@ -273,7 +273,7 @@ export const Validation = {
|
|
|
273
273
|
const valid = date < compareDate;
|
|
274
274
|
return {
|
|
275
275
|
valid,
|
|
276
|
-
message: `Date must be before ${new Date(beforeDate).toLocaleDateString()}
|
|
276
|
+
message: `Date must be before ${new Date(beforeDate).toLocaleDateString()}`,
|
|
277
277
|
};
|
|
278
278
|
},
|
|
279
279
|
|
|
@@ -285,7 +285,7 @@ export const Validation = {
|
|
|
285
285
|
const valid = date >= start && date <= end;
|
|
286
286
|
return {
|
|
287
287
|
valid,
|
|
288
|
-
message: `Date must be between ${start.toLocaleDateString()} and ${end.toLocaleDateString()}
|
|
288
|
+
message: `Date must be between ${start.toLocaleDateString()} and ${end.toLocaleDateString()}`,
|
|
289
289
|
};
|
|
290
290
|
},
|
|
291
291
|
weekday(value) {
|
|
@@ -294,7 +294,7 @@ export const Validation = {
|
|
|
294
294
|
const valid = day !== 0 && day !== 6;
|
|
295
295
|
return {
|
|
296
296
|
valid,
|
|
297
|
-
message: 'Date must be a weekday'
|
|
297
|
+
message: 'Date must be a weekday',
|
|
298
298
|
};
|
|
299
299
|
},
|
|
300
300
|
|
|
@@ -307,7 +307,7 @@ export const Validation = {
|
|
|
307
307
|
const valid = getSeconds(value) > getSeconds(afterTime);
|
|
308
308
|
return {
|
|
309
309
|
valid,
|
|
310
|
-
message: `Time must be after ${afterTime}
|
|
310
|
+
message: `Time must be after ${afterTime}`,
|
|
311
311
|
};
|
|
312
312
|
},
|
|
313
313
|
|
|
@@ -320,7 +320,7 @@ export const Validation = {
|
|
|
320
320
|
const valid = getSeconds(value) < getSeconds(beforeTime);
|
|
321
321
|
return {
|
|
322
322
|
valid,
|
|
323
|
-
message: `Time must be before ${beforeTime}
|
|
323
|
+
message: `Time must be before ${beforeTime}`,
|
|
324
324
|
};
|
|
325
325
|
},
|
|
326
326
|
|
|
@@ -336,7 +336,7 @@ export const Validation = {
|
|
|
336
336
|
const valid = seconds >= start && seconds <= end;
|
|
337
337
|
return {
|
|
338
338
|
valid,
|
|
339
|
-
message: `Time must be between ${startTime} and ${endTime}
|
|
339
|
+
message: `Time must be between ${startTime} and ${endTime}`,
|
|
340
340
|
};
|
|
341
341
|
},
|
|
342
342
|
|
|
@@ -345,7 +345,7 @@ export const Validation = {
|
|
|
345
345
|
const valid = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(value);
|
|
346
346
|
return {
|
|
347
347
|
valid,
|
|
348
|
-
message: 'Invalid hex color format'
|
|
348
|
+
message: 'Invalid hex color format',
|
|
349
349
|
};
|
|
350
350
|
},
|
|
351
351
|
|
|
@@ -354,7 +354,7 @@ export const Validation = {
|
|
|
354
354
|
const valid = /^rgb\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*\)$/.test(value);
|
|
355
355
|
return {
|
|
356
356
|
valid,
|
|
357
|
-
message: 'Invalid RGB color format'
|
|
357
|
+
message: 'Invalid RGB color format',
|
|
358
358
|
};
|
|
359
359
|
},
|
|
360
360
|
|
|
@@ -367,13 +367,13 @@ export const Validation = {
|
|
|
367
367
|
const valid = img.width === width && img.height === height;
|
|
368
368
|
resolve({
|
|
369
369
|
valid,
|
|
370
|
-
message: `Image must be exactly ${width}x${height}px
|
|
370
|
+
message: `Image must be exactly ${width}x${height}px`,
|
|
371
371
|
});
|
|
372
372
|
};
|
|
373
373
|
img.onerror = () => {
|
|
374
374
|
resolve({
|
|
375
375
|
valid: false,
|
|
376
|
-
message: 'Invalid image file'
|
|
376
|
+
message: 'Invalid image file',
|
|
377
377
|
});
|
|
378
378
|
};
|
|
379
379
|
img.src = URL.createObjectURL(file);
|
|
@@ -389,13 +389,13 @@ export const Validation = {
|
|
|
389
389
|
const valid = img.width <= maxWidth && img.height <= maxHeight;
|
|
390
390
|
resolve({
|
|
391
391
|
valid,
|
|
392
|
-
message: `Image must not exceed ${maxWidth}x${maxHeight}px
|
|
392
|
+
message: `Image must not exceed ${maxWidth}x${maxHeight}px`,
|
|
393
393
|
});
|
|
394
394
|
};
|
|
395
395
|
img.onerror = () => {
|
|
396
396
|
resolve({
|
|
397
397
|
valid: false,
|
|
398
|
-
message: 'Invalid image file'
|
|
398
|
+
message: 'Invalid image file',
|
|
399
399
|
});
|
|
400
400
|
};
|
|
401
401
|
img.src = URL.createObjectURL(file);
|
|
@@ -411,13 +411,13 @@ export const Validation = {
|
|
|
411
411
|
const valid = img.width >= minWidth && img.height >= minHeight;
|
|
412
412
|
resolve({
|
|
413
413
|
valid,
|
|
414
|
-
message: `Image must be at least ${minWidth}x${minHeight}px
|
|
414
|
+
message: `Image must be at least ${minWidth}x${minHeight}px`,
|
|
415
415
|
});
|
|
416
416
|
};
|
|
417
417
|
img.onerror = () => {
|
|
418
418
|
resolve({
|
|
419
419
|
valid: false,
|
|
420
|
-
message: 'Invalid image file'
|
|
420
|
+
message: 'Invalid image file',
|
|
421
421
|
});
|
|
422
422
|
};
|
|
423
423
|
img.src = URL.createObjectURL(file);
|
|
@@ -434,13 +434,13 @@ export const Validation = {
|
|
|
434
434
|
const valid = Math.abs(imageRatio - ratio) < 0.01;
|
|
435
435
|
resolve({
|
|
436
436
|
valid,
|
|
437
|
-
message: `Image aspect ratio must be ${ratio}
|
|
437
|
+
message: `Image aspect ratio must be ${ratio}`,
|
|
438
438
|
});
|
|
439
439
|
};
|
|
440
440
|
img.onerror = () => {
|
|
441
441
|
resolve({
|
|
442
442
|
valid: false,
|
|
443
|
-
message: 'Invalid image file'
|
|
443
|
+
message: 'Invalid image file',
|
|
444
444
|
});
|
|
445
445
|
};
|
|
446
446
|
img.src = URL.createObjectURL(file);
|
|
@@ -456,7 +456,7 @@ export const Validation = {
|
|
|
456
456
|
const mb = (maxBytes / (1024 * 1024)).toFixed(2);
|
|
457
457
|
return {
|
|
458
458
|
valid: false,
|
|
459
|
-
message: `Each file must not exceed ${mb}MB
|
|
459
|
+
message: `Each file must not exceed ${mb}MB`,
|
|
460
460
|
};
|
|
461
461
|
}
|
|
462
462
|
return { valid: true };
|
|
@@ -466,7 +466,7 @@ export const Validation = {
|
|
|
466
466
|
const mb = (maxBytes / (1024 * 1024)).toFixed(2);
|
|
467
467
|
return {
|
|
468
468
|
valid,
|
|
469
|
-
message: `File size must not exceed ${mb}MB
|
|
469
|
+
message: `File size must not exceed ${mb}MB`,
|
|
470
470
|
};
|
|
471
471
|
},
|
|
472
472
|
|
|
@@ -479,7 +479,7 @@ export const Validation = {
|
|
|
479
479
|
const kb = (minBytes / 1024).toFixed(2);
|
|
480
480
|
return {
|
|
481
481
|
valid: false,
|
|
482
|
-
message: `Each file must be at least ${kb}KB
|
|
482
|
+
message: `Each file must be at least ${kb}KB`,
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
485
|
return { valid: true };
|
|
@@ -489,7 +489,7 @@ export const Validation = {
|
|
|
489
489
|
const kb = (minBytes / 1024).toFixed(2);
|
|
490
490
|
return {
|
|
491
491
|
valid,
|
|
492
|
-
message: `File must be at least ${kb}KB
|
|
492
|
+
message: `File must be at least ${kb}KB`,
|
|
493
493
|
};
|
|
494
494
|
},
|
|
495
495
|
|
|
@@ -506,7 +506,7 @@ export const Validation = {
|
|
|
506
506
|
if (!allValid) {
|
|
507
507
|
return {
|
|
508
508
|
valid: false,
|
|
509
|
-
message: `Allowed extensions: ${allowedExts.join(', ')}
|
|
509
|
+
message: `Allowed extensions: ${allowedExts.join(', ')}`,
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
512
|
return { valid: true };
|
|
@@ -515,7 +515,7 @@ export const Validation = {
|
|
|
515
515
|
const valid = checkExtension(file);
|
|
516
516
|
return {
|
|
517
517
|
valid,
|
|
518
|
-
message: `Allowed extensions: ${allowedExts.join(', ')}
|
|
518
|
+
message: `Allowed extensions: ${allowedExts.join(', ')}`,
|
|
519
519
|
};
|
|
520
520
|
},
|
|
521
521
|
|
|
@@ -526,7 +526,7 @@ export const Validation = {
|
|
|
526
526
|
const valid = files.length <= max;
|
|
527
527
|
return {
|
|
528
528
|
valid,
|
|
529
|
-
message: `Maximum ${max} file${max > 1 ? 's' : ''} allowed
|
|
529
|
+
message: `Maximum ${max} file${max > 1 ? 's' : ''} allowed`,
|
|
530
530
|
};
|
|
531
531
|
},
|
|
532
532
|
|
|
@@ -537,7 +537,7 @@ export const Validation = {
|
|
|
537
537
|
const valid = files.length >= min;
|
|
538
538
|
return {
|
|
539
539
|
valid,
|
|
540
|
-
message: `At least ${min} file${min > 1 ? 's' : ''} required
|
|
540
|
+
message: `At least ${min} file${min > 1 ? 's' : ''} required`,
|
|
541
541
|
};
|
|
542
542
|
},
|
|
543
543
|
|
|
@@ -560,6 +560,6 @@ export const Validation = {
|
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
return Validation.required(value);
|
|
563
|
-
}
|
|
563
|
+
},
|
|
564
564
|
|
|
565
565
|
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// =============================================================================
|
|
2
|
+
// NativeDocument Components — index.d.ts
|
|
3
|
+
// Barrel export for all component type definitions.
|
|
4
|
+
// =============================================================================
|
|
5
|
+
|
|
6
|
+
// --- Base & Traits -----------------------------------------------------------
|
|
7
|
+
export type { BaseComponent } from './BaseComponent';
|
|
8
|
+
export type { HasDraggable } from './$traits/has-draggable/HasDraggable';
|
|
9
|
+
export type { HasItems } from './$traits/has-items/HasItems';
|
|
10
|
+
export type { HasPosition } from './$traits/has-position/HasPosition';
|
|
11
|
+
export type { HasFullPosition } from './$traits/has-position/HasFullPosition';
|
|
12
|
+
export type { HasResizable } from './$traits/has-resizable/HasResizable';
|
|
13
|
+
export type { HasValidation } from './$traits/has-validation/HasValidation';
|
|
14
|
+
|
|
15
|
+
// --- Accordion ---------------------------------------------------------------
|
|
16
|
+
export type { Accordion, AccordionInterface, AccordionDescription } from './accordion/types/Accordion';
|
|
17
|
+
export type { AccordionItem, AccordionItemInterface, AccordionItemDescription } from './accordion/types/AccordionItem';
|
|
18
|
+
|
|
19
|
+
// --- Alert -------------------------------------------------------------------
|
|
20
|
+
export type { Alert, AlertInterface, AlertDescription } from './alert/types/Alert';
|
|
21
|
+
|
|
22
|
+
// --- Avatar ------------------------------------------------------------------
|
|
23
|
+
export type { Avatar, AvatarInterface, AvatarDescription } from './avatar/types/Avatar';
|
|
24
|
+
export type { AvatarGroup, AvatarGroupInterface, AvatarGroupDescription } from './avatar/types/AvatarGroup';
|
|
25
|
+
|
|
26
|
+
// --- Badge -------------------------------------------------------------------
|
|
27
|
+
export type { Badge, BadgeInterface, BadgeDescription } from './badge/types/Badge';
|
|
28
|
+
|
|
29
|
+
// --- Breadcrumb --------------------------------------------------------------
|
|
30
|
+
export type { BreadCrumb, BreadCrumbInterface, BreadCrumbDescription } from './breadcrumb/types/BreadCrumb';
|
|
31
|
+
|
|
32
|
+
// --- Button ------------------------------------------------------------------
|
|
33
|
+
export type { Button, ButtonInterface, ButtonDescription } from './button/types/Button';
|
|
34
|
+
|
|
35
|
+
// --- Card --------------------------------------------------------------------
|
|
36
|
+
export type { Card, CardInterface, CardDescription } from './card/types/Card';
|
|
37
|
+
|
|
38
|
+
// --- Context Menu ------------------------------------------------------------
|
|
39
|
+
export type { ContextMenu, ContextMenuInterface, ContextMenuDescription } from './context-menu/types/ContextMenu';
|
|
40
|
+
export type { ContextMenuGroup, ContextMenuGroupInterface } from './context-menu/types/ContextMenuGroup';
|
|
41
|
+
export type { ContextMenuItem, ContextMenuItemInterface } from './context-menu/types/ContextMenuItem';
|
|
42
|
+
|
|
43
|
+
// --- Divider -----------------------------------------------------------------
|
|
44
|
+
export type { Divider, DividerInterface, DividerDescription } from './divider/types/Divider';
|
|
45
|
+
|
|
46
|
+
// --- Dropdown ----------------------------------------------------------------
|
|
47
|
+
export type { Dropdown, DropdownInterface, DropdownDescription } from './dropdown/types/Dropdown';
|
|
48
|
+
export type { DropdownDivider, DropdownDividerInterface } from './dropdown/types/DropdownDivider';
|
|
49
|
+
export type { DropdownGroup, DropdownGroupInterface } from './dropdown/types/DropdownGroup';
|
|
50
|
+
export type { DropdownItem, DropdownItemInterface, DropdownItemDescription } from './dropdown/types/DropdownItem';
|
|
51
|
+
export type { DropdownTrigger, DropdownTriggerInterface, DropdownTriggerDescription } from './dropdown/types/DropdownTrigger';
|
|
52
|
+
|
|
53
|
+
// --- Form --------------------------------------------------------------------
|
|
54
|
+
export type { FormControl, FormControlInterface, FormControlDescription } from './form/types/FormControl';
|
|
55
|
+
export type { Field, FieldInterface, FieldDescription } from './form/types/Field';
|
|
56
|
+
export type { FieldCollection, FieldCollectionInterface, FieldCollectionDescription } from './form/types/FieldCollection';
|
|
57
|
+
export type { StringField, StringFieldInterface } from './form/types/fields/StringField';
|
|
58
|
+
export type { NumberField, NumberFieldInterface } from './form/types/fields/NumberField';
|
|
59
|
+
export type { EmailField, EmailFieldInterface } from './form/types/fields/EmailField';
|
|
60
|
+
export type { PasswordField, PasswordFieldInterface } from './form/types/fields/PasswordField';
|
|
61
|
+
export type { TelField, TelFieldInterface } from './form/types/fields/TelField';
|
|
62
|
+
export type { UrlField, UrlFieldInterface } from './form/types/fields/UrlField';
|
|
63
|
+
export type { TextAreaField, TextAreaFieldInterface } from './form/types/fields/TextAreaField';
|
|
64
|
+
export type { CheckboxField, CheckboxFieldInterface } from './form/types/fields/CheckboxField';
|
|
65
|
+
export type { CheckboxGroupField, CheckboxGroupFieldInterface } from './form/types/fields/CheckboxGroupField';
|
|
66
|
+
export type { RadioField, RadioFieldInterface } from './form/types/fields/RadioField';
|
|
67
|
+
export type { SelectField, SelectFieldInterface } from './form/types/fields/SelectField';
|
|
68
|
+
export type { AutocompleteField, AutocompleteFieldInterface } from './form/types/fields/AutocompleteField';
|
|
69
|
+
export type { HiddenField, HiddenFieldInterface } from './form/types/fields/HiddenField';
|
|
70
|
+
export type { ColorField, ColorFieldInterface } from './form/types/fields/ColorField';
|
|
71
|
+
export type { DateField, DateFieldInterface } from './form/types/fields/DateField';
|
|
72
|
+
export type { TimeField, TimeFieldInterface } from './form/types/fields/TimeField';
|
|
73
|
+
export type { RangeField, RangeFieldInterface } from './form/types/fields/RangeField';
|
|
74
|
+
export type { SearchField, SearchFieldInterface } from './form/types/fields/SearchField';
|
|
75
|
+
export type { FileField, FileFieldInterface } from './form/types/fields/FileField';
|
|
76
|
+
export type { ImageField, ImageFieldInterface } from './form/types/fields/ImageField';
|
|
77
|
+
export type { FileAvatarMode, FileAvatarModeInterface, FileAvatarModeDescription } from './form/types/fields/FileAvatarMode';
|
|
78
|
+
export type { FileDropzoneMode, FileDropzoneModeInterface, FileDropzoneModeDescription } from './form/types/fields/FileDropzoneMode';
|
|
79
|
+
export type { FileItemPreview, FileItemPreviewInterface, FileItemPreviewDescription } from './form/types/fields/FileItemPreview';
|
|
80
|
+
export type { FileNativeMode, FileNativeModeInterface, FileNativeModeDescription } from './form/types/fields/FileNativeMode';
|
|
81
|
+
export type { FileUploadButtonMode, FileUploadButtonModeInterface, FileUploadButtonModeDescription } from './form/types/fields/FileUploadButtonMode';
|
|
82
|
+
export type { FileWallMode, FileWallModeInterface, FileWallModeDescription } from './form/types/fields/FileWallMode';
|
|
83
|
+
|
|
84
|
+
// --- List --------------------------------------------------------------------
|
|
85
|
+
export type { List, ListInterface, ListDescription } from './list/types/List';
|
|
86
|
+
export type { ListGroup, ListGroupInterface, ListGroupDescription } from './list/types/ListGroup';
|
|
87
|
+
export type { ListItem, ListItemInterface, ListItemDescription } from './list/types/ListItem';
|
|
88
|
+
|
|
89
|
+
// --- Menu --------------------------------------------------------------------
|
|
90
|
+
export type { Menu, MenuInterface, MenuDescription } from './menu/types/Menu';
|
|
91
|
+
export type { MenuDivider, MenuDividerInterface, MenuDividerDescription } from './menu/types/MenuDivider';
|
|
92
|
+
export type { MenuGroup, MenuGroupInterface, MenuGroupDescription } from './menu/types/MenuGroup';
|
|
93
|
+
export type { MenuItem, MenuItemInterface, MenuItemDescription } from './menu/types/MenuItem';
|
|
94
|
+
export type { MenuLink, MenuLinkInterface } from './menu/types/MenuLink';
|
|
95
|
+
|
|
96
|
+
// --- Modal -------------------------------------------------------------------
|
|
97
|
+
export type { Modal, ModalInterface, ModalDescription } from './modal/types/Modal';
|
|
98
|
+
|
|
99
|
+
// --- Pagination --------------------------------------------------------------
|
|
100
|
+
export type { Pagination, PaginationInterface, PaginationDescription } from './pagination/types/Pagination';
|
|
101
|
+
|
|
102
|
+
// --- Popover -----------------------------------------------------------------
|
|
103
|
+
export type { Popover, PopoverInterface, PopoverDescription } from './popover/types/Popover';
|
|
104
|
+
export type { PopoverFooter, PopoverFooterInterface, PopoverFooterDescription } from './popover/types/PopoverFooter';
|
|
105
|
+
export type { PopoverHeader, PopoverHeaderInterface, PopoverHeaderDescription } from './popover/types/PopoverHeader';
|
|
106
|
+
|
|
107
|
+
// --- Progress ----------------------------------------------------------------
|
|
108
|
+
export type { Progress, ProgressInterface, ProgressDescription } from './progress/types/Progress';
|
|
109
|
+
|
|
110
|
+
// --- Skeleton ----------------------------------------------------------------
|
|
111
|
+
export type { Skeleton, SkeletonInterface, SkeletonDescription } from './skeleton/types/Skeleton';
|
|
112
|
+
|
|
113
|
+
// --- Slider ------------------------------------------------------------------
|
|
114
|
+
export type { Slider, SliderInterface, SliderDescription } from './slider/types/Slider';
|
|
115
|
+
|
|
116
|
+
// --- Spacer ------------------------------------------------------------------
|
|
117
|
+
export type { Spacer, SpacerInterface, SpacerDescription } from './spacer/types/Spacer';
|
|
118
|
+
|
|
119
|
+
// --- Spinner -----------------------------------------------------------------
|
|
120
|
+
export type { Spinner, SpinnerInterface, SpinnerDescription } from './spinner/types/Spinner';
|
|
121
|
+
|
|
122
|
+
// --- Splitter ----------------------------------------------------------------
|
|
123
|
+
export type { Splitter, SplitterInterface, SplitterDescription } from './splitter/types/Splitter';
|
|
124
|
+
export type { SplitterGutter, SplitterGutterInterface, SplitterGutterDescription } from './splitter/types/SplitterGutter';
|
|
125
|
+
export type { SplitterPanel, SplitterPanelInterface, SplitterPanelDescription } from './splitter/types/SplitterPanel';
|
|
126
|
+
|
|
127
|
+
// --- Stacks ------------------------------------------------------------------
|
|
128
|
+
export type { Stack, StackInterface, StackDescription } from './stacks/types/Stack';
|
|
129
|
+
export type { HStack, HStackInterface } from './stacks/types/HStack';
|
|
130
|
+
export type { VStack, VStackInterface } from './stacks/types/VStack';
|
|
131
|
+
export type { PositionStack, PositionStackInterface, PositionStackDescription } from './stacks/types/PositionStack';
|
|
132
|
+
export type { AbsoluteStack, AbsoluteStackInterface } from './stacks/types/AbsoluteStack';
|
|
133
|
+
export type { FixedStack, FixedStackInterface } from './stacks/types/FixedStack';
|
|
134
|
+
export type { RelativeStack, RelativeStackInterface } from './stacks/types/RelativeStack';
|
|
135
|
+
|
|
136
|
+
// --- Stepper -----------------------------------------------------------------
|
|
137
|
+
export type { Stepper, StepperInterface, StepperDescription } from './stepper/types/Stepper';
|
|
138
|
+
export type { StepperStep, StepperStepInterface, StepperStepDescription } from './stepper/types/StepperStep';
|
|
139
|
+
|
|
140
|
+
// --- Switch ------------------------------------------------------------------
|
|
141
|
+
export type { Switch, SwitchInterface, SwitchDescription } from './switch/types/Switch';
|
|
142
|
+
|
|
143
|
+
// --- Table -------------------------------------------------------------------
|
|
144
|
+
export type { Column, ColumnInterface, ColumnDescription } from './table/types/Column';
|
|
145
|
+
export type { ColumnGroup, ColumnGroupInterface, ColumnGroupDescription } from './table/types/ColumnGroup';
|
|
146
|
+
export type { DataTable, DataTableInterface, DataTableDescription } from './table/types/DataTable';
|
|
147
|
+
export type { SimpleTable, SimpleTableInterface, SimpleTableDescription } from './table/types/SimpleTable';
|
|
148
|
+
|
|
149
|
+
// --- Tabs --------------------------------------------------------------------
|
|
150
|
+
export type { Tabs, TabsInterface, TabsDescription } from './tabs/types/Tabs';
|
|
151
|
+
|
|
152
|
+
// --- Toast -------------------------------------------------------------------
|
|
153
|
+
export type { Toast, ToastInterface, ToastDescription } from './toast/types/Toast';
|
|
154
|
+
export type { ToastError, ToastErrorInterface } from './toast/types/ToastError';
|
|
155
|
+
export type { ToastInfo, ToastInfoInterface } from './toast/types/ToastInfo';
|
|
156
|
+
export type { ToastSuccess, ToastSuccessInterface } from './toast/types/ToastSuccess';
|
|
157
|
+
export type { ToastWarning, ToastWarningInterface } from './toast/types/ToastWarning';
|
|
158
|
+
|
|
159
|
+
// --- Tooltip -----------------------------------------------------------------
|
|
160
|
+
export type { Tooltip, TooltipInterface, TooltipDescription } from './tooltip/types/Tooltip';
|