@momo-webplatform/mobase 0.0.43 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +5790 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +661 -0
- package/dist/esm/index.d.ts +661 -0
- package/dist/esm/index.js +5260 -0
- package/dist/esm/index.js.map +1 -0
- package/package.json +63 -114
- package/LICENSE +0 -21
- package/publish/cjs/components/Accordion/Accordion.js +0 -44
- package/publish/cjs/components/Accordion/index.js +0 -8
- package/publish/cjs/components/AlertDialog/AlertDialog.js +0 -62
- package/publish/cjs/components/AlertDialog/index.js +0 -16
- package/publish/cjs/components/Badge/Badge.js +0 -24
- package/publish/cjs/components/Badge/index.js +0 -6
- package/publish/cjs/components/Breadcrumb/Breadcrumb.js +0 -55
- package/publish/cjs/components/Breadcrumb/index.js +0 -11
- package/publish/cjs/components/Button/Button.js +0 -74
- package/publish/cjs/components/Button/index.js +0 -6
- package/publish/cjs/components/Callout/Callout.js +0 -46
- package/publish/cjs/components/Callout/index.js +0 -5
- package/publish/cjs/components/Card/Card.js +0 -47
- package/publish/cjs/components/Card/index.js +0 -10
- package/publish/cjs/components/Checkbox/Checkbox.js +0 -67
- package/publish/cjs/components/Checkbox/index.js +0 -9
- package/publish/cjs/components/Choicebox/Choicebox.js +0 -90
- package/publish/cjs/components/Choicebox/index.js +0 -6
- package/publish/cjs/components/Combobox/Combobox.js +0 -19
- package/publish/cjs/components/Combobox/index.js +0 -7
- package/publish/cjs/components/Command/Command.js +0 -74
- package/publish/cjs/components/Command/index.js +0 -13
- package/publish/cjs/components/Dialog/Dialog.js +0 -90
- package/publish/cjs/components/Dialog/index.js +0 -15
- package/publish/cjs/components/DialogQr/DialogQr.js +0 -98
- package/publish/cjs/components/DialogQr/index.js +0 -5
- package/publish/cjs/components/Footer/Footer.js +0 -15
- package/publish/cjs/components/Footer/FooterContent.js +0 -27
- package/publish/cjs/components/Footer/index.js +0 -5
- package/publish/cjs/components/Header/Header.js +0 -19
- package/publish/cjs/components/Header/ListItem.js +0 -12
- package/publish/cjs/components/Header/ListItemMobile.js +0 -15
- package/publish/cjs/components/Header/MobileMenu.js +0 -61
- package/publish/cjs/components/Header/NavItems.js +0 -26
- package/publish/cjs/components/Header/NavItemsMobile.js +0 -35
- package/publish/cjs/components/Header/index.js +0 -5
- package/publish/cjs/components/IconButton/IconButton.js +0 -67
- package/publish/cjs/components/IconButton/index.js +0 -5
- package/publish/cjs/components/LightboxGallery/LightboxGallery.js +0 -203
- package/publish/cjs/components/LightboxGallery/index.js +0 -7
- package/publish/cjs/components/NavigationMenu/NavigationMenu.js +0 -62
- package/publish/cjs/components/NavigationMenu/index.js +0 -13
- package/publish/cjs/components/Pagination/Pagination.js +0 -31
- package/publish/cjs/components/Pagination/index.js +0 -8
- package/publish/cjs/components/Popover/Popover.js +0 -37
- package/publish/cjs/components/Popover/index.js +0 -7
- package/publish/cjs/components/RadioGroup/RadioGroup.js +0 -53
- package/publish/cjs/components/RadioGroup/index.js +0 -6
- package/publish/cjs/components/SearchBar/SearchBar.js +0 -48
- package/publish/cjs/components/SearchBar/index.js +0 -5
- package/publish/cjs/components/Select/Select.js +0 -67
- package/publish/cjs/components/Select/index.js +0 -14
- package/publish/cjs/components/Stepper/Stepper.js +0 -100
- package/publish/cjs/components/Stepper/index.js +0 -5
- package/publish/cjs/components/Switch/Switch.js +0 -33
- package/publish/cjs/components/Switch/index.js +0 -5
- package/publish/cjs/components/Tabs/Tabs.js +0 -41
- package/publish/cjs/components/Tabs/index.js +0 -8
- package/publish/cjs/components/TextArea/TextArea.js +0 -38
- package/publish/cjs/components/TextArea/index.js +0 -5
- package/publish/cjs/components/TextButton/TextButton.js +0 -63
- package/publish/cjs/components/TextButton/index.js +0 -6
- package/publish/cjs/components/TextInput/TextInput.js +0 -65
- package/publish/cjs/components/TextInput/index.js +0 -5
- package/publish/cjs/components/Toast/Toast.js +0 -66
- package/publish/cjs/components/Toast/index.js +0 -8
- package/publish/cjs/components/Toast/toaster.js +0 -14
- package/publish/cjs/components/Toast/useToast.js +0 -157
- package/publish/cjs/components/Tooltip/Tooltip.js +0 -44
- package/publish/cjs/components/Tooltip/index.js +0 -9
- package/publish/cjs/foundation/SpinerIcon.js +0 -7
- package/publish/cjs/helpers/SpinerIcon.js +0 -7
- package/publish/cjs/helpers/animations.js +0 -18
- package/publish/cjs/helpers/clone-deep.js +0 -15
- package/publish/cjs/helpers/clone-deep.spec.js +0 -22
- package/publish/cjs/helpers/constants.js +0 -204
- package/publish/cjs/helpers/generic-forward-ref.js +0 -5
- package/publish/cjs/helpers/http.js +0 -10
- package/publish/cjs/helpers/is-client.js +0 -7
- package/publish/cjs/helpers/is-object.js +0 -12
- package/publish/cjs/helpers/is-object.spec.js +0 -24
- package/publish/cjs/helpers/merge-deep.js +0 -29
- package/publish/cjs/helpers/merge-deep.spec.js +0 -56
- package/publish/cjs/helpers/omit.js +0 -16
- package/publish/cjs/helpers/omit.spec.js +0 -9
- package/publish/cjs/helpers/utils.js +0 -23
- package/publish/cjs/index.js +0 -48
- package/publish/cjs/mobase-tw-plugin/animations/index.js +0 -25
- package/publish/cjs/mobase-tw-plugin/colors/blue.js +0 -16
- package/publish/cjs/mobase-tw-plugin/colors/common.js +0 -23
- package/publish/cjs/mobase-tw-plugin/colors/gray.js +0 -16
- package/publish/cjs/mobase-tw-plugin/colors/green.js +0 -16
- package/publish/cjs/mobase-tw-plugin/colors/index.js +0 -9
- package/publish/cjs/mobase-tw-plugin/colors/orange.js +0 -16
- package/publish/cjs/mobase-tw-plugin/colors/pink.js +0 -16
- package/publish/cjs/mobase-tw-plugin/colors/purple.js +0 -16
- package/publish/cjs/mobase-tw-plugin/colors/red.js +0 -16
- package/publish/cjs/mobase-tw-plugin/colors/yellow.js +0 -16
- package/publish/cjs/mobase-tw-plugin/font-sizes.js +0 -98
- package/publish/cjs/mobase-tw-plugin/index.js +0 -5
- package/publish/cjs/mobase-tw-plugin/layout.js +0 -48
- package/publish/cjs/mobase-tw-plugin/plugin.js +0 -201
- package/publish/cjs/mobase-tw-plugin/radius.js +0 -16
- package/publish/cjs/mobase-tw-plugin/types.js +0 -54
- package/publish/cjs/mobase-tw-plugin/utilities/custom.js +0 -25
- package/publish/cjs/mobase-tw-plugin/utilities/index.js +0 -14
- package/publish/cjs/mobase-tw-plugin/utilities/scrollbar-hide.js +0 -30
- package/publish/cjs/mobase-tw-plugin/utilities/transition.js +0 -88
- package/publish/cjs/mobase-tw-plugin/utils/index.js +0 -17
- package/publish/cjs/mobase-tw-plugin/utils/object.js +0 -53
- package/publish/cjs/mobase-tw-plugin/utils/theme.js +0 -70
- package/publish/cjs/site/index.js +0 -5
- package/publish/cjs/site/meta.js +0 -57
- package/publish/cjs/tsconfig.lib.tsbuildinfo +0 -1
- package/publish/cjs/types/index.js +0 -2
- package/publish/esm/components/Accordion/Accordion.d.ts +0 -20
- package/publish/esm/components/Accordion/Accordion.js +0 -15
- package/publish/esm/components/Accordion/index.d.ts +0 -2
- package/publish/esm/components/Accordion/index.js +0 -1
- package/publish/esm/components/AlertDialog/AlertDialog.d.ts +0 -49
- package/publish/esm/components/AlertDialog/AlertDialog.js +0 -26
- package/publish/esm/components/AlertDialog/index.d.ts +0 -2
- package/publish/esm/components/AlertDialog/index.js +0 -5
- package/publish/esm/components/Badge/Badge.d.ts +0 -10
- package/publish/esm/components/Badge/Badge.js +0 -20
- package/publish/esm/components/Badge/index.d.ts +0 -1
- package/publish/esm/components/Badge/index.js +0 -1
- package/publish/esm/components/Breadcrumb/Breadcrumb.d.ts +0 -20
- package/publish/esm/components/Breadcrumb/Breadcrumb.js +0 -23
- package/publish/esm/components/Breadcrumb/index.d.ts +0 -2
- package/publish/esm/components/Breadcrumb/index.js +0 -2
- package/publish/esm/components/Button/Button.d.ts +0 -26
- package/publish/esm/components/Button/Button.js +0 -44
- package/publish/esm/components/Button/index.d.ts +0 -2
- package/publish/esm/components/Button/index.js +0 -1
- package/publish/esm/components/Callout/Callout.d.ts +0 -19
- package/publish/esm/components/Callout/Callout.js +0 -43
- package/publish/esm/components/Callout/index.d.ts +0 -1
- package/publish/esm/components/Callout/index.js +0 -1
- package/publish/esm/components/Card/Card.d.ts +0 -9
- package/publish/esm/components/Card/Card.js +0 -16
- package/publish/esm/components/Card/index.d.ts +0 -1
- package/publish/esm/components/Card/index.js +0 -1
- package/publish/esm/components/Checkbox/Checkbox.d.ts +0 -40
- package/publish/esm/components/Checkbox/Checkbox.js +0 -36
- package/publish/esm/components/Checkbox/index.d.ts +0 -2
- package/publish/esm/components/Checkbox/index.js +0 -1
- package/publish/esm/components/Choicebox/Choicebox.d.ts +0 -31
- package/publish/esm/components/Choicebox/Choicebox.js +0 -62
- package/publish/esm/components/Choicebox/index.d.ts +0 -1
- package/publish/esm/components/Choicebox/index.js +0 -1
- package/publish/esm/components/Combobox/Combobox.d.ts +0 -19
- package/publish/esm/components/Combobox/Combobox.js +0 -13
- package/publish/esm/components/Combobox/index.d.ts +0 -1
- package/publish/esm/components/Combobox/index.js +0 -1
- package/publish/esm/components/Command/Command.d.ts +0 -57
- package/publish/esm/components/Command/Command.js +0 -40
- package/publish/esm/components/Command/index.d.ts +0 -1
- package/publish/esm/components/Command/index.js +0 -1
- package/publish/esm/components/Dialog/Dialog.d.ts +0 -51
- package/publish/esm/components/Dialog/Dialog.js +0 -54
- package/publish/esm/components/Dialog/index.d.ts +0 -1
- package/publish/esm/components/Dialog/index.js +0 -1
- package/publish/esm/components/DialogQr/DialogQr.d.ts +0 -33
- package/publish/esm/components/DialogQr/DialogQr.js +0 -91
- package/publish/esm/components/DialogQr/index.d.ts +0 -1
- package/publish/esm/components/DialogQr/index.js +0 -1
- package/publish/esm/components/Footer/Footer.d.ts +0 -22
- package/publish/esm/components/Footer/Footer.js +0 -9
- package/publish/esm/components/Footer/FooterContent.d.ts +0 -4
- package/publish/esm/components/Footer/FooterContent.js +0 -27
- package/publish/esm/components/Footer/index.d.ts +0 -1
- package/publish/esm/components/Footer/index.js +0 -1
- package/publish/esm/components/Header/Header.d.ts +0 -44
- package/publish/esm/components/Header/Header.js +0 -13
- package/publish/esm/components/Header/ListItem.d.ts +0 -9
- package/publish/esm/components/Header/ListItem.js +0 -10
- package/publish/esm/components/Header/ListItemMobile.d.ts +0 -9
- package/publish/esm/components/Header/ListItemMobile.js +0 -10
- package/publish/esm/components/Header/MobileMenu.d.ts +0 -6
- package/publish/esm/components/Header/MobileMenu.js +0 -56
- package/publish/esm/components/Header/NavItems.d.ts +0 -2
- package/publish/esm/components/Header/NavItems.js +0 -21
- package/publish/esm/components/Header/NavItemsMobile.d.ts +0 -2
- package/publish/esm/components/Header/NavItemsMobile.js +0 -30
- package/publish/esm/components/Header/index.d.ts +0 -1
- package/publish/esm/components/Header/index.js +0 -1
- package/publish/esm/components/IconButton/IconButton.d.ts +0 -22
- package/publish/esm/components/IconButton/IconButton.js +0 -40
- package/publish/esm/components/IconButton/index.d.ts +0 -2
- package/publish/esm/components/IconButton/index.js +0 -1
- package/publish/esm/components/LightboxGallery/LightboxGallery.d.ts +0 -35
- package/publish/esm/components/LightboxGallery/LightboxGallery.js +0 -171
- package/publish/esm/components/LightboxGallery/index.d.ts +0 -1
- package/publish/esm/components/LightboxGallery/index.js +0 -1
- package/publish/esm/components/NavigationMenu/NavigationMenu.d.ts +0 -12
- package/publish/esm/components/NavigationMenu/NavigationMenu.js +0 -28
- package/publish/esm/components/NavigationMenu/index.d.ts +0 -1
- package/publish/esm/components/NavigationMenu/index.js +0 -1
- package/publish/esm/components/Pagination/Pagination.d.ts +0 -16
- package/publish/esm/components/Pagination/Pagination.js +0 -28
- package/publish/esm/components/Pagination/index.d.ts +0 -1
- package/publish/esm/components/Pagination/index.js +0 -1
- package/publish/esm/components/Popover/Popover.d.ts +0 -6
- package/publish/esm/components/Popover/Popover.js +0 -9
- package/publish/esm/components/Popover/index.d.ts +0 -1
- package/publish/esm/components/Popover/index.js +0 -1
- package/publish/esm/components/RadioGroup/RadioGroup.d.ts +0 -13
- package/publish/esm/components/RadioGroup/RadioGroup.js +0 -26
- package/publish/esm/components/RadioGroup/index.d.ts +0 -1
- package/publish/esm/components/RadioGroup/index.js +0 -1
- package/publish/esm/components/SearchBar/SearchBar.d.ts +0 -7
- package/publish/esm/components/SearchBar/SearchBar.js +0 -45
- package/publish/esm/components/SearchBar/index.d.ts +0 -1
- package/publish/esm/components/SearchBar/index.js +0 -1
- package/publish/esm/components/Select/Select.d.ts +0 -19
- package/publish/esm/components/Select/Select.js +0 -32
- package/publish/esm/components/Select/index.d.ts +0 -1
- package/publish/esm/components/Select/index.js +0 -1
- package/publish/esm/components/Stepper/Stepper.d.ts +0 -15
- package/publish/esm/components/Stepper/Stepper.js +0 -97
- package/publish/esm/components/Stepper/index.d.ts +0 -1
- package/publish/esm/components/Stepper/index.js +0 -1
- package/publish/esm/components/Switch/Switch.d.ts +0 -4
- package/publish/esm/components/Switch/Switch.js +0 -7
- package/publish/esm/components/Switch/index.d.ts +0 -1
- package/publish/esm/components/Switch/index.js +0 -1
- package/publish/esm/components/Tabs/Tabs.d.ts +0 -16
- package/publish/esm/components/Tabs/Tabs.js +0 -12
- package/publish/esm/components/Tabs/index.d.ts +0 -1
- package/publish/esm/components/Tabs/index.js +0 -1
- package/publish/esm/components/TextArea/TextArea.d.ts +0 -9
- package/publish/esm/components/TextArea/TextArea.js +0 -35
- package/publish/esm/components/TextArea/index.d.ts +0 -2
- package/publish/esm/components/TextArea/index.js +0 -1
- package/publish/esm/components/TextButton/TextButton.d.ts +0 -22
- package/publish/esm/components/TextButton/TextButton.js +0 -36
- package/publish/esm/components/TextButton/index.d.ts +0 -2
- package/publish/esm/components/TextButton/index.js +0 -1
- package/publish/esm/components/TextInput/TextInput.d.ts +0 -11
- package/publish/esm/components/TextInput/TextInput.js +0 -62
- package/publish/esm/components/TextInput/index.d.ts +0 -2
- package/publish/esm/components/TextInput/index.js +0 -1
- package/publish/esm/components/Toast/Toast.d.ts +0 -15
- package/publish/esm/components/Toast/Toast.js +0 -34
- package/publish/esm/components/Toast/index.d.ts +0 -2
- package/publish/esm/components/Toast/index.js +0 -2
- package/publish/esm/components/Toast/toaster.d.ts +0 -1
- package/publish/esm/components/Toast/toaster.js +0 -10
- package/publish/esm/components/Toast/useToast.d.ts +0 -44
- package/publish/esm/components/Toast/useToast.js +0 -129
- package/publish/esm/components/Tooltip/Tooltip.d.ts +0 -12
- package/publish/esm/components/Tooltip/Tooltip.js +0 -14
- package/publish/esm/components/Tooltip/index.d.ts +0 -1
- package/publish/esm/components/Tooltip/index.js +0 -1
- package/publish/esm/foundation/SpinerIcon.d.ts +0 -6
- package/publish/esm/foundation/SpinerIcon.js +0 -5
- package/publish/esm/helpers/SpinerIcon.d.ts +0 -6
- package/publish/esm/helpers/SpinerIcon.js +0 -5
- package/publish/esm/helpers/animations.d.ts +0 -26
- package/publish/esm/helpers/animations.js +0 -14
- package/publish/esm/helpers/clone-deep.d.ts +0 -1
- package/publish/esm/helpers/clone-deep.js +0 -11
- package/publish/esm/helpers/clone-deep.spec.d.ts +0 -1
- package/publish/esm/helpers/clone-deep.spec.js +0 -20
- package/publish/esm/helpers/constants.d.ts +0 -69
- package/publish/esm/helpers/constants.js +0 -201
- package/publish/esm/helpers/generic-forward-ref.d.ts +0 -5
- package/publish/esm/helpers/generic-forward-ref.js +0 -3
- package/publish/esm/helpers/http.d.ts +0 -1
- package/publish/esm/helpers/http.js +0 -6
- package/publish/esm/helpers/is-client.d.ts +0 -1
- package/publish/esm/helpers/is-client.js +0 -3
- package/publish/esm/helpers/is-object.d.ts +0 -6
- package/publish/esm/helpers/is-object.js +0 -8
- package/publish/esm/helpers/is-object.spec.d.ts +0 -1
- package/publish/esm/helpers/is-object.spec.js +0 -22
- package/publish/esm/helpers/merge-deep.d.ts +0 -7
- package/publish/esm/helpers/merge-deep.js +0 -25
- package/publish/esm/helpers/merge-deep.spec.d.ts +0 -1
- package/publish/esm/helpers/merge-deep.spec.js +0 -54
- package/publish/esm/helpers/omit.d.ts +0 -1
- package/publish/esm/helpers/omit.js +0 -12
- package/publish/esm/helpers/omit.spec.d.ts +0 -1
- package/publish/esm/helpers/omit.spec.js +0 -7
- package/publish/esm/helpers/utils.d.ts +0 -8
- package/publish/esm/helpers/utils.js +0 -18
- package/publish/esm/index.d.ts +0 -32
- package/publish/esm/index.js +0 -32
- package/publish/esm/mobase-tw-plugin/animations/index.d.ts +0 -34
- package/publish/esm/mobase-tw-plugin/animations/index.js +0 -22
- package/publish/esm/mobase-tw-plugin/colors/blue.d.ts +0 -13
- package/publish/esm/mobase-tw-plugin/colors/blue.js +0 -13
- package/publish/esm/mobase-tw-plugin/colors/common.d.ts +0 -109
- package/publish/esm/mobase-tw-plugin/colors/common.js +0 -20
- package/publish/esm/mobase-tw-plugin/colors/gray.d.ts +0 -13
- package/publish/esm/mobase-tw-plugin/colors/gray.js +0 -13
- package/publish/esm/mobase-tw-plugin/colors/green.d.ts +0 -13
- package/publish/esm/mobase-tw-plugin/colors/green.js +0 -13
- package/publish/esm/mobase-tw-plugin/colors/index.d.ts +0 -110
- package/publish/esm/mobase-tw-plugin/colors/index.js +0 -5
- package/publish/esm/mobase-tw-plugin/colors/orange.d.ts +0 -13
- package/publish/esm/mobase-tw-plugin/colors/orange.js +0 -13
- package/publish/esm/mobase-tw-plugin/colors/pink.d.ts +0 -13
- package/publish/esm/mobase-tw-plugin/colors/pink.js +0 -13
- package/publish/esm/mobase-tw-plugin/colors/purple.d.ts +0 -13
- package/publish/esm/mobase-tw-plugin/colors/purple.js +0 -13
- package/publish/esm/mobase-tw-plugin/colors/red.d.ts +0 -13
- package/publish/esm/mobase-tw-plugin/colors/red.js +0 -13
- package/publish/esm/mobase-tw-plugin/colors/yellow.d.ts +0 -13
- package/publish/esm/mobase-tw-plugin/colors/yellow.js +0 -13
- package/publish/esm/mobase-tw-plugin/font-sizes.d.ts +0 -59
- package/publish/esm/mobase-tw-plugin/font-sizes.js +0 -94
- package/publish/esm/mobase-tw-plugin/index.d.ts +0 -1
- package/publish/esm/mobase-tw-plugin/index.js +0 -1
- package/publish/esm/mobase-tw-plugin/layout.d.ts +0 -45
- package/publish/esm/mobase-tw-plugin/layout.js +0 -45
- package/publish/esm/mobase-tw-plugin/plugin.d.ts +0 -10
- package/publish/esm/mobase-tw-plugin/plugin.js +0 -194
- package/publish/esm/mobase-tw-plugin/radius.d.ts +0 -9
- package/publish/esm/mobase-tw-plugin/radius.js +0 -12
- package/publish/esm/mobase-tw-plugin/types.d.ts +0 -103
- package/publish/esm/mobase-tw-plugin/types.js +0 -51
- package/publish/esm/mobase-tw-plugin/utilities/custom.d.ts +0 -24
- package/publish/esm/mobase-tw-plugin/utilities/custom.js +0 -23
- package/publish/esm/mobase-tw-plugin/utilities/index.d.ts +0 -114
- package/publish/esm/mobase-tw-plugin/utilities/index.js +0 -8
- package/publish/esm/mobase-tw-plugin/utilities/scrollbar-hide.d.ts +0 -23
- package/publish/esm/mobase-tw-plugin/utilities/scrollbar-hide.js +0 -28
- package/publish/esm/mobase-tw-plugin/utilities/transition.d.ts +0 -86
- package/publish/esm/mobase-tw-plugin/utilities/transition.js +0 -86
- package/publish/esm/mobase-tw-plugin/utils/index.d.ts +0 -1
- package/publish/esm/mobase-tw-plugin/utils/index.js +0 -1
- package/publish/esm/mobase-tw-plugin/utils/object.d.ts +0 -10
- package/publish/esm/mobase-tw-plugin/utils/object.js +0 -44
- package/publish/esm/mobase-tw-plugin/utils/theme.d.ts +0 -2
- package/publish/esm/mobase-tw-plugin/utils/theme.js +0 -65
- package/publish/esm/site/index.d.ts +0 -2
- package/publish/esm/site/index.js +0 -2
- package/publish/esm/site/meta.d.ts +0 -1
- package/publish/esm/site/meta.js +0 -53
- package/publish/esm/tsconfig.lib.tsbuildinfo +0 -1
- package/publish/esm/types/index.d.ts +0 -3
- package/publish/esm/types/index.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { isObject } from './is-object';
|
|
3
|
-
describe('isObject function', () => {
|
|
4
|
-
it('should return true for an empty object', () => {
|
|
5
|
-
expect(isObject({})).toBe(true);
|
|
6
|
-
});
|
|
7
|
-
it('should return true for a non-empty object', () => {
|
|
8
|
-
expect(isObject({ key: 'value' })).toBe(true);
|
|
9
|
-
});
|
|
10
|
-
it('should return false for a string', () => {
|
|
11
|
-
expect(isObject('string')).toBe(false);
|
|
12
|
-
});
|
|
13
|
-
it('should return false for an array', () => {
|
|
14
|
-
expect(isObject([1, 2, 3])).toBe(false);
|
|
15
|
-
});
|
|
16
|
-
it('should return false for null', () => {
|
|
17
|
-
expect(isObject(null)).toBe(false);
|
|
18
|
-
});
|
|
19
|
-
it('should return false for undefined', () => {
|
|
20
|
-
expect(isObject(undefined)).toBe(false);
|
|
21
|
-
});
|
|
22
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Merge and deep copy the values of all of the enumerable own properties of target object from source object to a new object
|
|
3
|
-
* @param target The target object to get properties from.
|
|
4
|
-
* @param source The source object from which to copy properties.
|
|
5
|
-
* @return A new merged and deep copied object.
|
|
6
|
-
*/
|
|
7
|
-
export declare function mergeDeep<T extends object, S extends object>(target: T, source: S): T & S;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { cloneDeep } from './clone-deep';
|
|
2
|
-
import { isObject } from './is-object';
|
|
3
|
-
/**
|
|
4
|
-
* Merge and deep copy the values of all of the enumerable own properties of target object from source object to a new object
|
|
5
|
-
* @param target The target object to get properties from.
|
|
6
|
-
* @param source The source object from which to copy properties.
|
|
7
|
-
* @return A new merged and deep copied object.
|
|
8
|
-
*/
|
|
9
|
-
export function mergeDeep(target, source) {
|
|
10
|
-
if (isObject(source) && Object.keys(source).length === 0) {
|
|
11
|
-
return cloneDeep({ ...target, ...source });
|
|
12
|
-
}
|
|
13
|
-
const output = { ...target, ...source };
|
|
14
|
-
if (isObject(source) && isObject(target)) {
|
|
15
|
-
for (const key in source) {
|
|
16
|
-
if (isObject(source[key]) && key in target && isObject(target[key])) {
|
|
17
|
-
output[key] = mergeDeep(target[key], source[key]);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
output[key] = isObject(source[key]) ? cloneDeep(source[key]) : source[key];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return output;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { mergeDeep } from './merge-deep';
|
|
3
|
-
describe('Helpers / Merge deep', () => {
|
|
4
|
-
it('should merge keys that do not exist in target', () => {
|
|
5
|
-
const target = {};
|
|
6
|
-
const source = { foo: 'bar' };
|
|
7
|
-
const result = mergeDeep(target, source);
|
|
8
|
-
expect(result).to.deep.equal({ foo: 'bar' });
|
|
9
|
-
});
|
|
10
|
-
it('should merge keys that do not exist in source', () => {
|
|
11
|
-
const target = { foo: 'bar' };
|
|
12
|
-
const source = {};
|
|
13
|
-
const result = mergeDeep(target, source);
|
|
14
|
-
expect(result).to.deep.equal({ foo: 'bar' });
|
|
15
|
-
});
|
|
16
|
-
it('should override target key if source key is identical', () => {
|
|
17
|
-
const target = { foo: { bar: 'baz' } };
|
|
18
|
-
const source = { foo: { bar: 'foobar' } };
|
|
19
|
-
const result = mergeDeep(target, source);
|
|
20
|
-
expect(result).to.deep.equal({ foo: { bar: 'foobar' } });
|
|
21
|
-
});
|
|
22
|
-
it('should merge keys and do not mutate target and source', () => {
|
|
23
|
-
const target = {
|
|
24
|
-
foo: { a: 1, b: { c: 2, f: { g: 3 } } },
|
|
25
|
-
baz: 5,
|
|
26
|
-
};
|
|
27
|
-
const source = {
|
|
28
|
-
foo: { b: { c: 3, d: 3 } },
|
|
29
|
-
bar: { a: 1 },
|
|
30
|
-
};
|
|
31
|
-
const result = mergeDeep(target, source);
|
|
32
|
-
expect(result).to.deep.equal({ foo: { a: 1, b: { c: 3, d: 3, f: { g: 3 } } }, baz: 5, bar: { a: 1 } });
|
|
33
|
-
expect(target).to.deep.equal({
|
|
34
|
-
foo: { a: 1, b: { c: 2, f: { g: 3 } } },
|
|
35
|
-
baz: 5,
|
|
36
|
-
});
|
|
37
|
-
expect(source).to.deep.equal({
|
|
38
|
-
foo: { b: { c: 3, d: 3 } },
|
|
39
|
-
bar: { a: 1 },
|
|
40
|
-
});
|
|
41
|
-
result.foo.b.c = 97;
|
|
42
|
-
result.baz = 98;
|
|
43
|
-
result.bar.a = 99;
|
|
44
|
-
expect(result).to.deep.equal({ foo: { a: 1, b: { c: 97, d: 3, f: { g: 3 } } }, baz: 98, bar: { a: 99 } });
|
|
45
|
-
expect(target).to.deep.equal({
|
|
46
|
-
foo: { a: 1, b: { c: 2, f: { g: 3 } } },
|
|
47
|
-
baz: 5,
|
|
48
|
-
});
|
|
49
|
-
expect(source).to.deep.equal({
|
|
50
|
-
foo: { b: { c: 3, d: 3 } },
|
|
51
|
-
bar: { a: 1 },
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const omit: <T extends object, K extends string>(keys: readonly K[]) => (obj: T) => Omit<T, K>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ClassValue } from "clsx";
|
|
2
|
-
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
|
-
interface AddQueryToLinkParams {
|
|
4
|
-
link?: string;
|
|
5
|
-
query?: Record<string, string>;
|
|
6
|
-
}
|
|
7
|
-
export declare const addQueryToLink: ({ link, query }: AddQueryToLinkParams) => string;
|
|
8
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { clsx } from "clsx";
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
|
-
import { NEXT_PUBLIC_REACT_APP_FRONT_END } from "../helpers/constants";
|
|
4
|
-
export function cn(...inputs) {
|
|
5
|
-
return twMerge(clsx(inputs));
|
|
6
|
-
}
|
|
7
|
-
export const addQueryToLink = ({ link, query = {} }) => {
|
|
8
|
-
if (!link)
|
|
9
|
-
return "";
|
|
10
|
-
const url = new URL(link, NEXT_PUBLIC_REACT_APP_FRONT_END || "");
|
|
11
|
-
const searchParams = new URLSearchParams(url.search);
|
|
12
|
-
Object.entries(query).forEach(([key, value]) => {
|
|
13
|
-
if (value)
|
|
14
|
-
searchParams.append(key, value);
|
|
15
|
-
});
|
|
16
|
-
url.search = searchParams.toString();
|
|
17
|
-
return url.toString();
|
|
18
|
-
};
|
package/publish/esm/index.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export * from "./components/Accordion";
|
|
2
|
-
export * from "./components/Breadcrumb";
|
|
3
|
-
export * from "./components/Button";
|
|
4
|
-
export * from "./components/Checkbox";
|
|
5
|
-
export * from "./components/Dialog";
|
|
6
|
-
export * from "./components/DialogQr";
|
|
7
|
-
export * from "./components/AlertDialog";
|
|
8
|
-
export * from "./components/IconButton";
|
|
9
|
-
export * from "./components/Pagination";
|
|
10
|
-
export * from "./components/Popover";
|
|
11
|
-
export * from "./components/Tabs";
|
|
12
|
-
export * from "./components/TextArea";
|
|
13
|
-
export * from "./components/Toast";
|
|
14
|
-
export * from "./components/TextButton";
|
|
15
|
-
export * from "./components/Tooltip";
|
|
16
|
-
export * from "./components/TextInput";
|
|
17
|
-
export * from "./components/Stepper";
|
|
18
|
-
export * from "./components/Select";
|
|
19
|
-
export * from "./components/NavigationMenu";
|
|
20
|
-
export * from "./components/Switch";
|
|
21
|
-
export * from "./components/RadioGroup";
|
|
22
|
-
export * from "./components/Header";
|
|
23
|
-
export * from "./components/Footer";
|
|
24
|
-
export * from "./components/Card";
|
|
25
|
-
export * from "./components/Command";
|
|
26
|
-
export * from "./components/Combobox";
|
|
27
|
-
export * from "./components/Callout";
|
|
28
|
-
export * from "./components/SearchBar";
|
|
29
|
-
export * from "./components/LightboxGallery";
|
|
30
|
-
export * from "./components/Choicebox";
|
|
31
|
-
export * from "./mobase-tw-plugin";
|
|
32
|
-
export * from "./site";
|
package/publish/esm/index.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export * from "./components/Accordion";
|
|
2
|
-
export * from "./components/Breadcrumb";
|
|
3
|
-
export * from "./components/Button";
|
|
4
|
-
export * from "./components/Checkbox";
|
|
5
|
-
export * from "./components/Dialog";
|
|
6
|
-
export * from "./components/DialogQr";
|
|
7
|
-
export * from "./components/AlertDialog";
|
|
8
|
-
export * from "./components/IconButton";
|
|
9
|
-
export * from "./components/Pagination";
|
|
10
|
-
export * from "./components/Popover";
|
|
11
|
-
export * from "./components/Tabs";
|
|
12
|
-
export * from "./components/TextArea";
|
|
13
|
-
export * from "./components/Toast";
|
|
14
|
-
export * from "./components/TextButton";
|
|
15
|
-
export * from "./components/Tooltip";
|
|
16
|
-
export * from "./components/TextInput";
|
|
17
|
-
export * from "./components/Stepper";
|
|
18
|
-
export * from "./components/Select";
|
|
19
|
-
export * from "./components/NavigationMenu";
|
|
20
|
-
export * from "./components/Switch";
|
|
21
|
-
export * from "./components/RadioGroup";
|
|
22
|
-
export * from "./components/Header";
|
|
23
|
-
export * from "./components/Footer";
|
|
24
|
-
export * from "./components/Card";
|
|
25
|
-
export * from "./components/Command";
|
|
26
|
-
export * from "./components/Combobox";
|
|
27
|
-
export * from "./components/Callout";
|
|
28
|
-
export * from "./components/SearchBar";
|
|
29
|
-
export * from "./components/LightboxGallery";
|
|
30
|
-
export * from "./components/Choicebox";
|
|
31
|
-
export * from "./mobase-tw-plugin";
|
|
32
|
-
export * from "./site";
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare const animations: {
|
|
2
|
-
animation: {
|
|
3
|
-
"accordion-down": string;
|
|
4
|
-
"accordion-up": string;
|
|
5
|
-
"spin-loading": string;
|
|
6
|
-
"fade-in": string;
|
|
7
|
-
};
|
|
8
|
-
keyframes: {
|
|
9
|
-
"accordion-down": {
|
|
10
|
-
from: {
|
|
11
|
-
height: string;
|
|
12
|
-
};
|
|
13
|
-
to: {
|
|
14
|
-
height: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
"accordion-up": {
|
|
18
|
-
from: {
|
|
19
|
-
height: string;
|
|
20
|
-
};
|
|
21
|
-
to: {
|
|
22
|
-
height: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
"fade-in": {
|
|
26
|
-
"0%": {
|
|
27
|
-
opacity: string;
|
|
28
|
-
};
|
|
29
|
-
"100%": {
|
|
30
|
-
opacity: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export const animations = {
|
|
2
|
-
animation: {
|
|
3
|
-
"accordion-down": "accordion-down 0.2s ease-out",
|
|
4
|
-
"accordion-up": "accordion-up 0.2s ease-out",
|
|
5
|
-
"spin-loading": "spin 1s steps(12, end) infinite",
|
|
6
|
-
"fade-in": "fade-in 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both",
|
|
7
|
-
},
|
|
8
|
-
keyframes: {
|
|
9
|
-
"accordion-down": {
|
|
10
|
-
from: { height: "0" },
|
|
11
|
-
to: { height: "var(--radix-accordion-content-height)" },
|
|
12
|
-
},
|
|
13
|
-
"accordion-up": {
|
|
14
|
-
from: { height: "var(--radix-accordion-content-height)" },
|
|
15
|
-
to: { height: "0" },
|
|
16
|
-
},
|
|
17
|
-
"fade-in": {
|
|
18
|
-
"0%": { opacity: "0" },
|
|
19
|
-
"100%": { opacity: "1" },
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
export declare const commonColors: {
|
|
2
|
-
white: string;
|
|
3
|
-
black: string;
|
|
4
|
-
blue: {
|
|
5
|
-
50: string;
|
|
6
|
-
100: string;
|
|
7
|
-
200: string;
|
|
8
|
-
300: string;
|
|
9
|
-
400: string;
|
|
10
|
-
500: string;
|
|
11
|
-
600: string;
|
|
12
|
-
700: string;
|
|
13
|
-
800: string;
|
|
14
|
-
900: string;
|
|
15
|
-
DEFAULT: string;
|
|
16
|
-
};
|
|
17
|
-
green: {
|
|
18
|
-
50: string;
|
|
19
|
-
100: string;
|
|
20
|
-
200: string;
|
|
21
|
-
300: string;
|
|
22
|
-
400: string;
|
|
23
|
-
500: string;
|
|
24
|
-
600: string;
|
|
25
|
-
700: string;
|
|
26
|
-
800: string;
|
|
27
|
-
900: string;
|
|
28
|
-
DEFAULT: string;
|
|
29
|
-
};
|
|
30
|
-
pink: {
|
|
31
|
-
50: string;
|
|
32
|
-
100: string;
|
|
33
|
-
200: string;
|
|
34
|
-
300: string;
|
|
35
|
-
400: string;
|
|
36
|
-
500: string;
|
|
37
|
-
600: string;
|
|
38
|
-
700: string;
|
|
39
|
-
800: string;
|
|
40
|
-
900: string;
|
|
41
|
-
DEFAULT: string;
|
|
42
|
-
};
|
|
43
|
-
purple: {
|
|
44
|
-
50: string;
|
|
45
|
-
100: string;
|
|
46
|
-
200: string;
|
|
47
|
-
300: string;
|
|
48
|
-
400: string;
|
|
49
|
-
500: string;
|
|
50
|
-
600: string;
|
|
51
|
-
700: string;
|
|
52
|
-
800: string;
|
|
53
|
-
900: string;
|
|
54
|
-
DEFAULT: string;
|
|
55
|
-
};
|
|
56
|
-
red: {
|
|
57
|
-
50: string;
|
|
58
|
-
100: string;
|
|
59
|
-
200: string;
|
|
60
|
-
300: string;
|
|
61
|
-
400: string;
|
|
62
|
-
500: string;
|
|
63
|
-
600: string;
|
|
64
|
-
700: string;
|
|
65
|
-
800: string;
|
|
66
|
-
900: string;
|
|
67
|
-
DEFAULT: string;
|
|
68
|
-
};
|
|
69
|
-
yellow: {
|
|
70
|
-
50: string;
|
|
71
|
-
100: string;
|
|
72
|
-
200: string;
|
|
73
|
-
300: string;
|
|
74
|
-
400: string;
|
|
75
|
-
500: string;
|
|
76
|
-
600: string;
|
|
77
|
-
700: string;
|
|
78
|
-
800: string;
|
|
79
|
-
900: string;
|
|
80
|
-
DEFAULT: string;
|
|
81
|
-
};
|
|
82
|
-
gray: {
|
|
83
|
-
50: string;
|
|
84
|
-
100: string;
|
|
85
|
-
200: string;
|
|
86
|
-
300: string;
|
|
87
|
-
400: string;
|
|
88
|
-
500: string;
|
|
89
|
-
600: string;
|
|
90
|
-
700: string;
|
|
91
|
-
800: string;
|
|
92
|
-
900: string;
|
|
93
|
-
DEFAULT: string;
|
|
94
|
-
};
|
|
95
|
-
orange: {
|
|
96
|
-
50: string;
|
|
97
|
-
100: string;
|
|
98
|
-
200: string;
|
|
99
|
-
300: string;
|
|
100
|
-
400: string;
|
|
101
|
-
500: string;
|
|
102
|
-
600: string;
|
|
103
|
-
700: string;
|
|
104
|
-
800: string;
|
|
105
|
-
900: string;
|
|
106
|
-
DEFAULT: string;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
export type CommonColors = typeof commonColors;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { blue } from "./blue";
|
|
2
|
-
import { green } from "./green";
|
|
3
|
-
import { pink } from "./pink";
|
|
4
|
-
import { purple } from "./purple";
|
|
5
|
-
import { red } from "./red";
|
|
6
|
-
import { yellow } from "./yellow";
|
|
7
|
-
import { orange } from "./orange";
|
|
8
|
-
import { gray } from "./gray";
|
|
9
|
-
export const commonColors = {
|
|
10
|
-
white: "#ffffff",
|
|
11
|
-
black: "#000000",
|
|
12
|
-
blue,
|
|
13
|
-
green,
|
|
14
|
-
pink,
|
|
15
|
-
purple,
|
|
16
|
-
red,
|
|
17
|
-
yellow,
|
|
18
|
-
gray,
|
|
19
|
-
orange,
|
|
20
|
-
};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { commonColors } from "./common";
|
|
2
|
-
declare const colors: {
|
|
3
|
-
white: string;
|
|
4
|
-
black: string;
|
|
5
|
-
blue: {
|
|
6
|
-
50: string;
|
|
7
|
-
100: string;
|
|
8
|
-
200: string;
|
|
9
|
-
300: string;
|
|
10
|
-
400: string;
|
|
11
|
-
500: string;
|
|
12
|
-
600: string;
|
|
13
|
-
700: string;
|
|
14
|
-
800: string;
|
|
15
|
-
900: string;
|
|
16
|
-
DEFAULT: string;
|
|
17
|
-
};
|
|
18
|
-
green: {
|
|
19
|
-
50: string;
|
|
20
|
-
100: string;
|
|
21
|
-
200: string;
|
|
22
|
-
300: string;
|
|
23
|
-
400: string;
|
|
24
|
-
500: string;
|
|
25
|
-
600: string;
|
|
26
|
-
700: string;
|
|
27
|
-
800: string;
|
|
28
|
-
900: string;
|
|
29
|
-
DEFAULT: string;
|
|
30
|
-
};
|
|
31
|
-
pink: {
|
|
32
|
-
50: string;
|
|
33
|
-
100: string;
|
|
34
|
-
200: string;
|
|
35
|
-
300: string;
|
|
36
|
-
400: string;
|
|
37
|
-
500: string;
|
|
38
|
-
600: string;
|
|
39
|
-
700: string;
|
|
40
|
-
800: string;
|
|
41
|
-
900: string;
|
|
42
|
-
DEFAULT: string;
|
|
43
|
-
};
|
|
44
|
-
purple: {
|
|
45
|
-
50: string;
|
|
46
|
-
100: string;
|
|
47
|
-
200: string;
|
|
48
|
-
300: string;
|
|
49
|
-
400: string;
|
|
50
|
-
500: string;
|
|
51
|
-
600: string;
|
|
52
|
-
700: string;
|
|
53
|
-
800: string;
|
|
54
|
-
900: string;
|
|
55
|
-
DEFAULT: string;
|
|
56
|
-
};
|
|
57
|
-
red: {
|
|
58
|
-
50: string;
|
|
59
|
-
100: string;
|
|
60
|
-
200: string;
|
|
61
|
-
300: string;
|
|
62
|
-
400: string;
|
|
63
|
-
500: string;
|
|
64
|
-
600: string;
|
|
65
|
-
700: string;
|
|
66
|
-
800: string;
|
|
67
|
-
900: string;
|
|
68
|
-
DEFAULT: string;
|
|
69
|
-
};
|
|
70
|
-
yellow: {
|
|
71
|
-
50: string;
|
|
72
|
-
100: string;
|
|
73
|
-
200: string;
|
|
74
|
-
300: string;
|
|
75
|
-
400: string;
|
|
76
|
-
500: string;
|
|
77
|
-
600: string;
|
|
78
|
-
700: string;
|
|
79
|
-
800: string;
|
|
80
|
-
900: string;
|
|
81
|
-
DEFAULT: string;
|
|
82
|
-
};
|
|
83
|
-
gray: {
|
|
84
|
-
50: string;
|
|
85
|
-
100: string;
|
|
86
|
-
200: string;
|
|
87
|
-
300: string;
|
|
88
|
-
400: string;
|
|
89
|
-
500: string;
|
|
90
|
-
600: string;
|
|
91
|
-
700: string;
|
|
92
|
-
800: string;
|
|
93
|
-
900: string;
|
|
94
|
-
DEFAULT: string;
|
|
95
|
-
};
|
|
96
|
-
orange: {
|
|
97
|
-
50: string;
|
|
98
|
-
100: string;
|
|
99
|
-
200: string;
|
|
100
|
-
300: string;
|
|
101
|
-
400: string;
|
|
102
|
-
500: string;
|
|
103
|
-
600: string;
|
|
104
|
-
700: string;
|
|
105
|
-
800: string;
|
|
106
|
-
900: string;
|
|
107
|
-
DEFAULT: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
export { colors, commonColors };
|