@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 declare function Toaster(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, } from "./Toast";
|
|
4
|
-
import { useToast } from "./useToast";
|
|
5
|
-
export function Toaster() {
|
|
6
|
-
const { toasts } = useToast();
|
|
7
|
-
return (_jsxs(ToastProvider, { children: [toasts.map(function ({ id, title, description, action, ...props }) {
|
|
8
|
-
return (_jsxs(Toast, { ...props, children: [_jsxs("div", { className: "grid gap-2", children: [title && _jsx(ToastTitle, { children: title }), description && (_jsx(ToastDescription, { children: description }))] }), action, _jsx(ToastClose, {})] }, id));
|
|
9
|
-
}), _jsx(ToastViewport, {})] }));
|
|
10
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { ToastActionElement, ToastProps } from "./Toast";
|
|
3
|
-
type ToasterToast = ToastProps & {
|
|
4
|
-
id: string;
|
|
5
|
-
title?: React.ReactNode;
|
|
6
|
-
description?: React.ReactNode;
|
|
7
|
-
action?: ToastActionElement;
|
|
8
|
-
};
|
|
9
|
-
declare const actionTypes: {
|
|
10
|
-
readonly ADD_TOAST: "ADD_TOAST";
|
|
11
|
-
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
12
|
-
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
13
|
-
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
14
|
-
};
|
|
15
|
-
type ActionType = typeof actionTypes;
|
|
16
|
-
type Action = {
|
|
17
|
-
type: ActionType["ADD_TOAST"];
|
|
18
|
-
toast: ToasterToast;
|
|
19
|
-
} | {
|
|
20
|
-
type: ActionType["UPDATE_TOAST"];
|
|
21
|
-
toast: Partial<ToasterToast>;
|
|
22
|
-
} | {
|
|
23
|
-
type: ActionType["DISMISS_TOAST"];
|
|
24
|
-
toastId?: ToasterToast["id"];
|
|
25
|
-
} | {
|
|
26
|
-
type: ActionType["REMOVE_TOAST"];
|
|
27
|
-
toastId?: ToasterToast["id"];
|
|
28
|
-
};
|
|
29
|
-
interface State {
|
|
30
|
-
toasts: ToasterToast[];
|
|
31
|
-
}
|
|
32
|
-
export declare const reducer: (state: State, action: Action) => State;
|
|
33
|
-
type Toast = Omit<ToasterToast, "id">;
|
|
34
|
-
declare function toast({ ...props }: Toast): {
|
|
35
|
-
id: string;
|
|
36
|
-
dismiss: () => void;
|
|
37
|
-
update: (props: ToasterToast) => void;
|
|
38
|
-
};
|
|
39
|
-
declare function useToast(): {
|
|
40
|
-
toast: typeof toast;
|
|
41
|
-
dismiss: (toastId?: string) => void;
|
|
42
|
-
toasts: ToasterToast[];
|
|
43
|
-
};
|
|
44
|
-
export { useToast, toast };
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
// Inspired by react-hot-toast library
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
const TOAST_LIMIT = 1;
|
|
4
|
-
const TOAST_REMOVE_DELAY = 1000000;
|
|
5
|
-
const actionTypes = {
|
|
6
|
-
ADD_TOAST: "ADD_TOAST",
|
|
7
|
-
UPDATE_TOAST: "UPDATE_TOAST",
|
|
8
|
-
DISMISS_TOAST: "DISMISS_TOAST",
|
|
9
|
-
REMOVE_TOAST: "REMOVE_TOAST",
|
|
10
|
-
};
|
|
11
|
-
let count = 0;
|
|
12
|
-
function genId() {
|
|
13
|
-
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|
|
14
|
-
return count.toString();
|
|
15
|
-
}
|
|
16
|
-
const toastTimeouts = new Map();
|
|
17
|
-
const addToRemoveQueue = (toastId) => {
|
|
18
|
-
if (toastTimeouts.has(toastId)) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const timeout = setTimeout(() => {
|
|
22
|
-
toastTimeouts.delete(toastId);
|
|
23
|
-
dispatch({
|
|
24
|
-
type: "REMOVE_TOAST",
|
|
25
|
-
toastId,
|
|
26
|
-
});
|
|
27
|
-
}, TOAST_REMOVE_DELAY);
|
|
28
|
-
toastTimeouts.set(toastId, timeout);
|
|
29
|
-
};
|
|
30
|
-
export const reducer = (state, action) => {
|
|
31
|
-
switch (action.type) {
|
|
32
|
-
case "ADD_TOAST":
|
|
33
|
-
return {
|
|
34
|
-
...state,
|
|
35
|
-
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),
|
|
36
|
-
};
|
|
37
|
-
case "UPDATE_TOAST":
|
|
38
|
-
return {
|
|
39
|
-
...state,
|
|
40
|
-
toasts: state.toasts.map((t) => t.id === action.toast.id ? { ...t, ...action.toast } : t),
|
|
41
|
-
};
|
|
42
|
-
case "DISMISS_TOAST": {
|
|
43
|
-
const { toastId } = action;
|
|
44
|
-
// ! Side effects ! - This could be extracted into a dismissToast() action,
|
|
45
|
-
// but I'll keep it here for simplicity
|
|
46
|
-
if (toastId) {
|
|
47
|
-
addToRemoveQueue(toastId);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
state.toasts.forEach((toast) => {
|
|
51
|
-
addToRemoveQueue(toast.id);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
...state,
|
|
56
|
-
toasts: state.toasts.map((t) => t.id === toastId || toastId === undefined
|
|
57
|
-
? {
|
|
58
|
-
...t,
|
|
59
|
-
open: false,
|
|
60
|
-
}
|
|
61
|
-
: t),
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
case "REMOVE_TOAST":
|
|
65
|
-
if (action.toastId === undefined) {
|
|
66
|
-
return {
|
|
67
|
-
...state,
|
|
68
|
-
toasts: [],
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
return {
|
|
72
|
-
...state,
|
|
73
|
-
toasts: state.toasts.filter((t) => t.id !== action.toastId),
|
|
74
|
-
};
|
|
75
|
-
default:
|
|
76
|
-
return state;
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
const listeners = [];
|
|
80
|
-
let memoryState = { toasts: [] };
|
|
81
|
-
function dispatch(action) {
|
|
82
|
-
memoryState = reducer(memoryState, action);
|
|
83
|
-
listeners.forEach((listener) => {
|
|
84
|
-
listener(memoryState);
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function toast({ ...props }) {
|
|
88
|
-
const id = genId();
|
|
89
|
-
const update = (props) => dispatch({
|
|
90
|
-
type: "UPDATE_TOAST",
|
|
91
|
-
toast: { ...props, id },
|
|
92
|
-
});
|
|
93
|
-
const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });
|
|
94
|
-
dispatch({
|
|
95
|
-
type: "ADD_TOAST",
|
|
96
|
-
toast: {
|
|
97
|
-
...props,
|
|
98
|
-
id,
|
|
99
|
-
open: true,
|
|
100
|
-
onOpenChange: (open) => {
|
|
101
|
-
if (!open)
|
|
102
|
-
dismiss();
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
});
|
|
106
|
-
return {
|
|
107
|
-
id,
|
|
108
|
-
dismiss,
|
|
109
|
-
update,
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
function useToast() {
|
|
113
|
-
const [state, setState] = React.useState(memoryState);
|
|
114
|
-
React.useEffect(() => {
|
|
115
|
-
listeners.push(setState);
|
|
116
|
-
return () => {
|
|
117
|
-
const index = listeners.indexOf(setState);
|
|
118
|
-
if (index > -1) {
|
|
119
|
-
listeners.splice(index, 1);
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
}, [state]);
|
|
123
|
-
return {
|
|
124
|
-
...state,
|
|
125
|
-
toast,
|
|
126
|
-
dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId }),
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
export { useToast, toast };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
-
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
|
-
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
5
|
-
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const TooltipArrow: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & {
|
|
7
|
-
className?: string | undefined;
|
|
8
|
-
} & React.RefAttributes<SVGSVGElement>>;
|
|
9
|
-
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
-
type?: "dark" | "light" | undefined;
|
|
11
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, TooltipArrow, };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
4
|
-
import { cn } from "../../helpers/utils";
|
|
5
|
-
const TooltipProvider = TooltipPrimitive.Provider;
|
|
6
|
-
const Tooltip = TooltipPrimitive.Root;
|
|
7
|
-
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
8
|
-
const TooltipArrow = React.forwardRef((props, ref) => (_jsx(TooltipPrimitive.Arrow, { ref: ref, className: cn("drop-shadow-md", props.className), ...props })));
|
|
9
|
-
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
|
10
|
-
const TooltipContent = React.forwardRef(({ className, type = "dark", sideOffset = 4, ...props }, ref) => (_jsx(TooltipPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: cn("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md", type === "light"
|
|
11
|
-
? "bg-white text-gray-900 fill-white"
|
|
12
|
-
: "bg-gray-800 fill-gray-800 text-white", className), ...props })));
|
|
13
|
-
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
14
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, TooltipArrow, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, TooltipArrow } from "./Tooltip";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, TooltipArrow } from "./Tooltip";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const SpinerIcon = ({ className }) => {
|
|
3
|
-
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "none", className: `${className}`, children: [_jsx("path", { opacity: "0.9", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z", fill: "currentColor" }), _jsx("path", { opacity: "0.2", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z", fill: "currentColor" }), _jsx("path", { opacity: "0.25", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z", fill: "currentColor" }), _jsx("path", { opacity: "0.3", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z", fill: "currentColor" }), _jsx("path", { opacity: "0.35", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z", fill: "currentColor" }), _jsx("path", { opacity: "0.4", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z", fill: "currentColor" }), _jsx("path", { opacity: "0.45", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z", fill: "currentColor" }), _jsx("path", { opacity: "0.5", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z", fill: "currentColor" }), _jsx("path", { opacity: "0.55", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z", fill: "currentColor" }), _jsx("path", { opacity: "0.65", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z", fill: "currentColor" }), _jsx("path", { opacity: "0.75", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z", fill: "currentColor" }), _jsx("path", { opacity: "0.85", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z", fill: "currentColor" })] }));
|
|
4
|
-
};
|
|
5
|
-
export default SpinerIcon;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const SpinerIcon = ({ className }) => {
|
|
3
|
-
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "none", className: `${className}`, children: [_jsx("path", { opacity: "0.9", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z", fill: "currentColor" }), _jsx("path", { opacity: "0.2", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z", fill: "currentColor" }), _jsx("path", { opacity: "0.25", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z", fill: "currentColor" }), _jsx("path", { opacity: "0.3", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z", fill: "currentColor" }), _jsx("path", { opacity: "0.35", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z", fill: "currentColor" }), _jsx("path", { opacity: "0.4", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z", fill: "currentColor" }), _jsx("path", { opacity: "0.45", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z", fill: "currentColor" }), _jsx("path", { opacity: "0.5", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z", fill: "currentColor" }), _jsx("path", { opacity: "0.55", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z", fill: "currentColor" }), _jsx("path", { opacity: "0.65", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z", fill: "currentColor" }), _jsx("path", { opacity: "0.75", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z", fill: "currentColor" }), _jsx("path", { opacity: "0.85", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z", fill: "currentColor" })] }));
|
|
4
|
-
};
|
|
5
|
-
export default SpinerIcon;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_EASE: number[];
|
|
2
|
-
export declare const DEFAULT_DURATION = 0.4;
|
|
3
|
-
export declare const DEFAULT_DELAY = 0;
|
|
4
|
-
export declare const DEFAULT_TRANSITION: {
|
|
5
|
-
ease: number[];
|
|
6
|
-
duration: number;
|
|
7
|
-
};
|
|
8
|
-
interface AnimationProps {
|
|
9
|
-
delay?: number;
|
|
10
|
-
duration?: number;
|
|
11
|
-
ease?: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const INITIAL_BOTTOM: {
|
|
14
|
-
opacity: number;
|
|
15
|
-
y: number;
|
|
16
|
-
};
|
|
17
|
-
export declare const getAnimation: ({ delay, duration, ease }: AnimationProps) => {
|
|
18
|
-
opacity: number;
|
|
19
|
-
y: number;
|
|
20
|
-
transition: {
|
|
21
|
-
delay: number;
|
|
22
|
-
ease: number | number[];
|
|
23
|
-
duration: number;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_EASE = [0.24, 0.25, 0.05, 1];
|
|
2
|
-
export const DEFAULT_DURATION = 0.4;
|
|
3
|
-
export const DEFAULT_DELAY = 0;
|
|
4
|
-
export const DEFAULT_TRANSITION = { ease: DEFAULT_EASE, duration: DEFAULT_DURATION };
|
|
5
|
-
export const INITIAL_BOTTOM = { opacity: 0, y: 20 };
|
|
6
|
-
export const getAnimation = ({ delay, duration, ease }) => ({
|
|
7
|
-
opacity: 1,
|
|
8
|
-
y: 0,
|
|
9
|
-
transition: {
|
|
10
|
-
delay: delay ?? DEFAULT_DELAY,
|
|
11
|
-
ease: ease ?? DEFAULT_EASE,
|
|
12
|
-
duration: duration ?? DEFAULT_DURATION,
|
|
13
|
-
},
|
|
14
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function cloneDeep<T>(source: T): T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { cloneDeep } from './clone-deep';
|
|
3
|
-
describe('Helpers / cloneDeep', () => {
|
|
4
|
-
it('should clone a simple object', () => {
|
|
5
|
-
const source = { key: 'value' };
|
|
6
|
-
const cloned = cloneDeep(source);
|
|
7
|
-
expect(cloned).toEqual(source); // Check for deep equality
|
|
8
|
-
expect(cloned).not.toBe(source); // Ensure it's a deep clone, not the same reference
|
|
9
|
-
});
|
|
10
|
-
it('should handle null gracefully', () => {
|
|
11
|
-
const source = null;
|
|
12
|
-
const cloned = cloneDeep(source);
|
|
13
|
-
expect(cloned).toBeNull();
|
|
14
|
-
});
|
|
15
|
-
it('should handle undefined gracefully', () => {
|
|
16
|
-
const source = undefined;
|
|
17
|
-
const cloned = cloneDeep(source);
|
|
18
|
-
expect(cloned).toBeUndefined();
|
|
19
|
-
});
|
|
20
|
-
});
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export declare const FooterItemsDefault: {
|
|
2
|
-
heading: string;
|
|
3
|
-
lists: {
|
|
4
|
-
title: string;
|
|
5
|
-
url: string;
|
|
6
|
-
newTab: boolean;
|
|
7
|
-
}[];
|
|
8
|
-
};
|
|
9
|
-
export declare const MoMoText: {
|
|
10
|
-
Business: {
|
|
11
|
-
Phome: string;
|
|
12
|
-
Phome_Format: string;
|
|
13
|
-
Email: string;
|
|
14
|
-
};
|
|
15
|
-
Support: {
|
|
16
|
-
Hotline: string;
|
|
17
|
-
Hotline_Format: string;
|
|
18
|
-
Phone_Ext_1: string;
|
|
19
|
-
Phone_Ext_1_Format: string;
|
|
20
|
-
Phone_Ext_2: string;
|
|
21
|
-
Phone_Ext_2_Format: string;
|
|
22
|
-
Email: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export declare const NEXT_PUBLIC_REACT_APP_FRONT_END = "https://momo.vn/";
|
|
26
|
-
export declare const SUPPORT: {
|
|
27
|
-
Address: string;
|
|
28
|
-
};
|
|
29
|
-
export declare const LIST_LINK: {
|
|
30
|
-
Name: string;
|
|
31
|
-
Href: string;
|
|
32
|
-
}[];
|
|
33
|
-
export declare const SOCIAL_ITEMS: {
|
|
34
|
-
Name: string;
|
|
35
|
-
Image: string;
|
|
36
|
-
Link: string;
|
|
37
|
-
}[];
|
|
38
|
-
export declare const APP_DOWNLOAD: {
|
|
39
|
-
Name: string;
|
|
40
|
-
Image: string;
|
|
41
|
-
Link: string;
|
|
42
|
-
}[];
|
|
43
|
-
export declare const SERVICES_DEFAULT: {
|
|
44
|
-
Name: string;
|
|
45
|
-
Href: string;
|
|
46
|
-
Image: string;
|
|
47
|
-
}[];
|
|
48
|
-
export declare const SERVICES_PAGE: {
|
|
49
|
-
Name: string;
|
|
50
|
-
Href: string;
|
|
51
|
-
Image: string;
|
|
52
|
-
}[];
|
|
53
|
-
export declare const MOMO_TEXT: {
|
|
54
|
-
Business: {
|
|
55
|
-
Phome: string;
|
|
56
|
-
Phome_Format: string;
|
|
57
|
-
Email: string;
|
|
58
|
-
};
|
|
59
|
-
Support: {
|
|
60
|
-
Hotline: string;
|
|
61
|
-
Hotline_Format: string;
|
|
62
|
-
Phone_Ext_1: string;
|
|
63
|
-
Phone_Ext_1_Format: string;
|
|
64
|
-
Phone_Ext_2: string;
|
|
65
|
-
Phone_Ext_2_Format: string;
|
|
66
|
-
Email: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
export declare const FROM_TYPE_FOOTER_MENU = "nav_footer";
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
export const FooterItemsDefault = {
|
|
2
|
-
heading: "Về chúng tôi",
|
|
3
|
-
lists: [
|
|
4
|
-
{
|
|
5
|
-
title: "Giới thiệu",
|
|
6
|
-
url: "/sieu-ung-dung-momo",
|
|
7
|
-
newTab: false,
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
title: "An toàn - Bảo mật",
|
|
11
|
-
url: "/an-toan-bao-mat",
|
|
12
|
-
newTab: false,
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
title: "Điều khoản điều lệ",
|
|
16
|
-
url: "/dieu-khoan-dieu-le",
|
|
17
|
-
newTab: false,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
title: "Chính sách quyền riêng tư",
|
|
21
|
-
url: "/chinh-sach-quyen-rieng-tu",
|
|
22
|
-
newTab: false,
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
title: "Điều khoản liên kết Google trên ứng dụng MoMo",
|
|
26
|
-
url: "/google-cloud-policy",
|
|
27
|
-
newTab: false,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
title: "Blog",
|
|
31
|
-
url: "/blog",
|
|
32
|
-
newTab: false,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
title: "Liên hệ",
|
|
36
|
-
url: "/lienhe",
|
|
37
|
-
newTab: false,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
title: "Hỏi đáp",
|
|
41
|
-
url: "/hoi-dap",
|
|
42
|
-
newTab: false,
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
};
|
|
46
|
-
export const MoMoText = {
|
|
47
|
-
Business: {
|
|
48
|
-
Phome: "1900636652",
|
|
49
|
-
Phome_Format: "1900 636 652 (Phí 1.000đ/phút)",
|
|
50
|
-
Email: "merchant.care@momo.vn",
|
|
51
|
-
},
|
|
52
|
-
Support: {
|
|
53
|
-
Hotline: "1900545441",
|
|
54
|
-
Hotline_Format: "1900 5454 41",
|
|
55
|
-
Phone_Ext_1: "02873065555",
|
|
56
|
-
Phone_Ext_1_Format: "028.7306.5555",
|
|
57
|
-
Phone_Ext_2: "02899995555",
|
|
58
|
-
Phone_Ext_2_Format: "028.9999.5555",
|
|
59
|
-
Email: "hotro@momo.vn",
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
export const NEXT_PUBLIC_REACT_APP_FRONT_END = "https://momo.vn/";
|
|
63
|
-
export const SUPPORT = {
|
|
64
|
-
Address: "Lầu 6, Toà nhà Phú Mỹ Hưng, số 8 Hoàng Văn Thái, khu phố 1, Phường Tân Phú, Quận 7, Thành phố Hồ Chí Minh",
|
|
65
|
-
};
|
|
66
|
-
export const LIST_LINK = [
|
|
67
|
-
{ Name: "Giới thiệu", Href: "/sieu-ung-dung-momo" },
|
|
68
|
-
{ Name: "An toàn - Bảo mật", Href: "/an-toan-bao-mat" },
|
|
69
|
-
{ Name: "Điều khoản điều lệ", Href: "/dieu-khoan-dieu-le" },
|
|
70
|
-
{
|
|
71
|
-
Name: "Chính sách quyền riêng tư",
|
|
72
|
-
Href: "/chinh-sach-quyen-rieng-tu",
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
Name: "Điều khoản liên kết Google trên ứng dụng MoMo",
|
|
76
|
-
Href: "/google-cloud-policy",
|
|
77
|
-
},
|
|
78
|
-
{ Name: "Blog", Href: "/blog" },
|
|
79
|
-
{ Name: "Liên hệ", Href: "/lienhe" },
|
|
80
|
-
{ Name: "Hỏi đáp", Href: "/hoi-dap" },
|
|
81
|
-
];
|
|
82
|
-
export const SOCIAL_ITEMS = [
|
|
83
|
-
{
|
|
84
|
-
Name: "Facebook",
|
|
85
|
-
Image: "https://homepage.momocdn.net/styles/desktop/images/social/facebook.svg",
|
|
86
|
-
Link: "https://www.facebook.com/vimomo",
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
Name: "Linkedin",
|
|
90
|
-
Image: "https://homepage.momocdn.net/styles/desktop/images/social/linkedin.svg",
|
|
91
|
-
Link: "https://www.linkedin.com/company/momo-mservice/",
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
Name: "Youtube",
|
|
95
|
-
Image: "https://homepage.momocdn.net/styles/desktop/images/social/youtube.svg",
|
|
96
|
-
Link: "https://www.youtube.com/channel/UCKHHW-qL2JoZqcSNm1jPlqw",
|
|
97
|
-
},
|
|
98
|
-
];
|
|
99
|
-
export const APP_DOWNLOAD = [
|
|
100
|
-
{
|
|
101
|
-
Name: "App Store",
|
|
102
|
-
Image: "https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",
|
|
103
|
-
Link: "https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
Name: "Google Play",
|
|
107
|
-
Image: "https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",
|
|
108
|
-
Link: "https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",
|
|
109
|
-
},
|
|
110
|
-
];
|
|
111
|
-
export const SERVICES_DEFAULT = [
|
|
112
|
-
{
|
|
113
|
-
Name: "Vé xem phim",
|
|
114
|
-
Href: "/cinema",
|
|
115
|
-
Image: "https://homepage.momocdn.net/fileuploads/svg/momo-file-230629144722.svg",
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
Name: "Bảo hiểm Ô tô",
|
|
119
|
-
Href: "/bao-hiem-o-to/vat-chat",
|
|
120
|
-
Image: "https://homepage.momocdn.net/fileuploads/svg/momo-file-230629144844.svg",
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
Name: "Vé máy bay",
|
|
124
|
-
Href: "/ve-may-bay",
|
|
125
|
-
Image: "https://homepage.momocdn.net/fileuploads/svg/momo-file-201210145350.svg",
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
Name: "Khách sạn",
|
|
129
|
-
Href: "/khach-san-theo-gio",
|
|
130
|
-
Image: "https://homepage.momocdn.net/fileuploads/svg/momo-file-210315154805.svg",
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
Name: "Ví nhân ái",
|
|
134
|
-
Href: "/vi-nhan-ai",
|
|
135
|
-
Image: "https://homepage.momocdn.net/img/momo-upload-api-231214222240-638381893608141712.png",
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
Name: "Túi thần tài",
|
|
139
|
-
Href: "/tui-than-tai",
|
|
140
|
-
Image: "https://homepage.momocdn.net/fileuploads/svg/momo-file-210716153611.svg",
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
Name: "Ví trả sau",
|
|
144
|
-
Href: "/vi-tra-sau",
|
|
145
|
-
Image: "https://homepage.momocdn.net/img/momo-upload-api-230629144414-638236466540028217.png",
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
Name: "Vay nhanh",
|
|
149
|
-
Href: "/vay-nhanh",
|
|
150
|
-
Image: "https://homepage.momocdn.net/img/momo-upload-api-230418101312-638174095928506551.png",
|
|
151
|
-
},
|
|
152
|
-
];
|
|
153
|
-
export const SERVICES_PAGE = [
|
|
154
|
-
{
|
|
155
|
-
Name: "Vé xem phim",
|
|
156
|
-
Href: "/cinema",
|
|
157
|
-
Image: "https://homepage.momocdn.net/fileuploads/svg/momo-file-230629144722.svg",
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
Name: "Bảo hiểm Ô tô",
|
|
161
|
-
Href: "/bao-hiem-o-to/vat-chat",
|
|
162
|
-
Image: "https://homepage.momocdn.net/fileuploads/svg/momo-file-230629144844.svg",
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
Name: "Vé máy bay",
|
|
166
|
-
Href: "/ve-may-bay",
|
|
167
|
-
Image: "https://homepage.momocdn.net/fileuploads/svg/momo-file-201210145350.svg",
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
Name: "Khách sạn",
|
|
171
|
-
Href: "/khach-san-theo-gio",
|
|
172
|
-
Image: "https://homepage.momocdn.net/fileuploads/svg/momo-file-210315154805.svg",
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
Name: "Ví nhân ái",
|
|
176
|
-
Href: "/vi-nhan-ai",
|
|
177
|
-
Image: "https://homepage.momocdn.net/img/momo-upload-api-231214222240-638381893608141712.png",
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
Name: "Vay nhanh",
|
|
181
|
-
Href: "/vay-nhanh",
|
|
182
|
-
Image: "https://homepage.momocdn.net/img/momo-upload-api-230418101312-638174095928506551.png",
|
|
183
|
-
},
|
|
184
|
-
];
|
|
185
|
-
export const MOMO_TEXT = {
|
|
186
|
-
Business: {
|
|
187
|
-
Phome: "1900636652",
|
|
188
|
-
Phome_Format: "1900 636 652 (Phí 1.000đ/phút)",
|
|
189
|
-
Email: "merchant.care@momo.vn",
|
|
190
|
-
},
|
|
191
|
-
Support: {
|
|
192
|
-
Hotline: "1900545441",
|
|
193
|
-
Hotline_Format: "1900 5454 41",
|
|
194
|
-
Phone_Ext_1: "02873065555",
|
|
195
|
-
Phone_Ext_1_Format: "028.7306.5555",
|
|
196
|
-
Phone_Ext_2: "02899995555",
|
|
197
|
-
Phone_Ext_2_Format: "028.9999.5555",
|
|
198
|
-
Email: "hotro@momo.vn",
|
|
199
|
-
},
|
|
200
|
-
};
|
|
201
|
-
export const FROM_TYPE_FOOTER_MENU = "nav_footer";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
/** This allow the `forwardRef` to be used with generic components */
|
|
3
|
-
type FixedForwardRef = <T, P = {}>(render: (props: P, ref: React.Ref<T>) => JSX.Element) => (props: P & React.RefAttributes<T>) => JSX.Element;
|
|
4
|
-
declare const genericForwardRef: FixedForwardRef;
|
|
5
|
-
export default genericForwardRef;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const safeResJson: (res: Response) => Promise<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isClient: () => boolean;
|