@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,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.CardContent = exports.CardDescription = exports.CardTitle = exports.CardFooter = exports.CardHeader = exports.Card = void 0;
|
|
27
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
const React = __importStar(require("react"));
|
|
29
|
-
const utils_1 = require("../../helpers/utils");
|
|
30
|
-
const Card = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("rounded-xl border bg-card text-card-foreground shadow", className), ...props })));
|
|
31
|
-
exports.Card = Card;
|
|
32
|
-
Card.displayName = "Card";
|
|
33
|
-
const CardHeader = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("flex flex-col space-y-1.5 p-6", className), ...props })));
|
|
34
|
-
exports.CardHeader = CardHeader;
|
|
35
|
-
CardHeader.displayName = "CardHeader";
|
|
36
|
-
const CardTitle = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("h3", { ref: ref, className: (0, utils_1.cn)("font-semibold leading-none tracking-tight", className), ...props })));
|
|
37
|
-
exports.CardTitle = CardTitle;
|
|
38
|
-
CardTitle.displayName = "CardTitle";
|
|
39
|
-
const CardDescription = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("p", { ref: ref, className: (0, utils_1.cn)("text-sm text-muted-foreground", className), ...props })));
|
|
40
|
-
exports.CardDescription = CardDescription;
|
|
41
|
-
CardDescription.displayName = "CardDescription";
|
|
42
|
-
const CardContent = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("p-6 pt-0", className), ...props })));
|
|
43
|
-
exports.CardContent = CardContent;
|
|
44
|
-
CardContent.displayName = "CardContent";
|
|
45
|
-
const CardFooter = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("flex items-center p-6 pt-0", className), ...props })));
|
|
46
|
-
exports.CardFooter = CardFooter;
|
|
47
|
-
CardFooter.displayName = "CardFooter";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CardTitle = exports.CardHeader = exports.CardFooter = exports.CardDescription = exports.CardContent = exports.Card = void 0;
|
|
4
|
-
var Card_1 = require("./Card");
|
|
5
|
-
Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return Card_1.Card; } });
|
|
6
|
-
Object.defineProperty(exports, "CardContent", { enumerable: true, get: function () { return Card_1.CardContent; } });
|
|
7
|
-
Object.defineProperty(exports, "CardDescription", { enumerable: true, get: function () { return Card_1.CardDescription; } });
|
|
8
|
-
Object.defineProperty(exports, "CardFooter", { enumerable: true, get: function () { return Card_1.CardFooter; } });
|
|
9
|
-
Object.defineProperty(exports, "CardHeader", { enumerable: true, get: function () { return Card_1.CardHeader; } });
|
|
10
|
-
Object.defineProperty(exports, "CardTitle", { enumerable: true, get: function () { return Card_1.CardTitle; } });
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var _a;
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.Indicator = exports.Root = exports.createCheckboxScope = exports.CheckboxIndicator = exports.Checkbox = exports.useCheckboxContext = exports.CheckboxProvider = void 0;
|
|
28
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
29
|
-
const React = __importStar(require("react"));
|
|
30
|
-
const CheckboxPrimitive = __importStar(require("@radix-ui/react-checkbox"));
|
|
31
|
-
const lucide_react_1 = require("lucide-react");
|
|
32
|
-
const react_primitive_1 = require("@radix-ui/react-primitive");
|
|
33
|
-
const react_context_1 = require("@radix-ui/react-context");
|
|
34
|
-
const react_presence_1 = require("@radix-ui/react-presence");
|
|
35
|
-
const utils_1 = require("../../helpers/utils");
|
|
36
|
-
/* -------------------------------------------------------------------------------------------------
|
|
37
|
-
* Checkbox
|
|
38
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
39
|
-
const CHECKBOX_NAME = "Checkbox";
|
|
40
|
-
const [createCheckboxContext, createCheckboxScope] = (0, react_context_1.createContextScope)(CHECKBOX_NAME);
|
|
41
|
-
exports.createCheckboxScope = createCheckboxScope;
|
|
42
|
-
_a = createCheckboxContext(CHECKBOX_NAME), exports.CheckboxProvider = _a[0], exports.useCheckboxContext = _a[1];
|
|
43
|
-
const INDICATOR_NAME = "CheckboxIndicator";
|
|
44
|
-
function getState(checked) {
|
|
45
|
-
return isIndeterminate(checked)
|
|
46
|
-
? "indeterminate"
|
|
47
|
-
: checked
|
|
48
|
-
? "checked"
|
|
49
|
-
: "unchecked";
|
|
50
|
-
}
|
|
51
|
-
const CheckboxIndicator = React.forwardRef((props, forwardedRef) => {
|
|
52
|
-
const { __scopeCheckbox, forceMount, ...indicatorProps } = props;
|
|
53
|
-
const context = (0, exports.useCheckboxContext)(INDICATOR_NAME, __scopeCheckbox);
|
|
54
|
-
return ((0, jsx_runtime_1.jsx)(react_presence_1.Presence, { present: forceMount || isIndeterminate(context.state) || context.state === true, children: (0, jsx_runtime_1.jsx)(react_primitive_1.Primitive.span, { "data-state": getState(context.state), "data-disabled": context.disabled ? "" : undefined, ...indicatorProps, ref: forwardedRef, style: { pointerEvents: "none", ...props.style } }) }));
|
|
55
|
-
});
|
|
56
|
-
exports.CheckboxIndicator = CheckboxIndicator;
|
|
57
|
-
function isIndeterminate(checked) {
|
|
58
|
-
return checked === "indeterminate";
|
|
59
|
-
}
|
|
60
|
-
CheckboxIndicator.displayName = INDICATOR_NAME;
|
|
61
|
-
const Checkbox = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(CheckboxPrimitive.Root, { ref: ref, className: (0, utils_1.cn)("peer h-4 w-4 shrink-0 rounded-sm border-2 disabled:bg-gray-300 border-gray-300 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-50 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-300 disabled:data-[state=checked]:text-gray-600 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white", className), ...props, children: (0, jsx_runtime_1.jsx)(CheckboxPrimitive.Indicator, { className: (0, utils_1.cn)("flex items-center justify-center text-current"), children: (0, jsx_runtime_1.jsx)(lucide_react_1.Check, { className: "h-3.5 w-3.5" }) }) })));
|
|
62
|
-
exports.Checkbox = Checkbox;
|
|
63
|
-
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
64
|
-
const Root = Checkbox;
|
|
65
|
-
exports.Root = Root;
|
|
66
|
-
const Indicator = CheckboxIndicator;
|
|
67
|
-
exports.Indicator = Indicator;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Indicator = exports.createCheckboxScope = exports.CheckboxIndicator = exports.Checkbox = exports.Root = void 0;
|
|
4
|
-
var Checkbox_1 = require("./Checkbox");
|
|
5
|
-
Object.defineProperty(exports, "Root", { enumerable: true, get: function () { return Checkbox_1.Root; } });
|
|
6
|
-
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
|
|
7
|
-
Object.defineProperty(exports, "CheckboxIndicator", { enumerable: true, get: function () { return Checkbox_1.CheckboxIndicator; } });
|
|
8
|
-
Object.defineProperty(exports, "createCheckboxScope", { enumerable: true, get: function () { return Checkbox_1.createCheckboxScope; } });
|
|
9
|
-
Object.defineProperty(exports, "Indicator", { enumerable: true, get: function () { return Checkbox_1.Indicator; } });
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.ChoiceboxGroup = exports.ChoiceboxGroupItem = void 0;
|
|
27
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
const react_1 = __importStar(require("react"));
|
|
29
|
-
const Checkbox_1 = require("../Checkbox");
|
|
30
|
-
const utils_1 = require("../../helpers/utils");
|
|
31
|
-
const lucide_react_1 = require("lucide-react");
|
|
32
|
-
const ChoiceboxGroupItem = ({ title, description, value, type, name, checked, disabled, hiddenInput, classNameDescription, classNameTitle, className, onChange, children, }) => {
|
|
33
|
-
const [checkedCheckbox, setCheckedCheckbox] = (0, react_1.useState)(false);
|
|
34
|
-
const handleChange = (event) => {
|
|
35
|
-
if (onChange) {
|
|
36
|
-
onChange(event?.target?.value);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
const handleChangeCheckbox = (checked) => {
|
|
40
|
-
setCheckedCheckbox(checked);
|
|
41
|
-
onChange?.(checked);
|
|
42
|
-
};
|
|
43
|
-
return ((0, jsx_runtime_1.jsxs)("label", { className: (0, utils_1.cn)(" flex rounded-md cursor-pointer p-4 items-center space-x-6", checked || checkedCheckbox ? "mobase-focus" : "mobase-visible", disabled ? "opacity-60 bg-gray-100" : "", className), htmlFor: value, children: [!title && !description ? null : ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("text-gray-900 text-sm select-none font-bold", classNameTitle), children: title }), (0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("text-gray-900 select-none text-sm", classNameDescription), children: description })] })), children, type === "radio" ? ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)("relative", hiddenInput ? "hidden" : ""), children: [(0, jsx_runtime_1.jsx)("input", { "aria-checked": checked, "data-state": checked ? "checked" : "unchecked", checked: checked, type: "radio", value: value, name: name, id: value, disabled: disabled, onChange: handleChange, className: "custom-radio cursor-pointer aspect-square ml-auto h-4 w-4 rounded-full border border-gray-700 disabled:bg-gray-300 disabled:data-[state=checked]:text-gray-500 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-300 data-[state=checked]:bg-pink-500 disabled:border-none data-[state=checked]:border-none text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-40" }), (0, jsx_runtime_1.jsx)(lucide_react_1.Circle, { className: (0, utils_1.cn)("h-2 w-2 absolute top-[6px] right-[4px] fill-white text-current transition-opacity", checked ? "opacti-100" : "opacity-0", disabled ? "fill-gray-300" : "") })] })) : ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { disabled: disabled, id: value, value: value, name: value, onCheckedChange: handleChangeCheckbox, className: (0, utils_1.cn)("ml-auto", hiddenInput ? "hidden" : "") })), (0, jsx_runtime_1.jsx)("style", { children: `
|
|
44
|
-
.custom-radio {
|
|
45
|
-
appearance: none;
|
|
46
|
-
border: 1px solid #ccc;
|
|
47
|
-
border-radius: 50%;
|
|
48
|
-
width: 16px;
|
|
49
|
-
height: 16px;
|
|
50
|
-
position: relative;
|
|
51
|
-
}
|
|
52
|
-
.mobase-visible {
|
|
53
|
-
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.mobase-focus {
|
|
57
|
-
box-shadow: 0px 0px 0px 2px rgb(var(--mobase-pink-500) / 1) inset;
|
|
58
|
-
}
|
|
59
|
-
` })] }));
|
|
60
|
-
};
|
|
61
|
-
exports.ChoiceboxGroupItem = ChoiceboxGroupItem;
|
|
62
|
-
const ChoiceboxGroup = ({ direction = "row", label, type, value, children, disabled, hiddenInput, onChange, className, ...props }) => {
|
|
63
|
-
const name = `choicebox-group-${label?.replace(/\s+/g, "-").toLowerCase()}`;
|
|
64
|
-
return ((0, jsx_runtime_1.jsxs)("div", { ...props, children: [(0, jsx_runtime_1.jsx)("label", { children: label }), (0, jsx_runtime_1.jsx)("ul", { className: (0, utils_1.cn)("", className, direction
|
|
65
|
-
? "flex md:flex-row md:space-y-0 md:space-x-4 flex-col space-y-4"
|
|
66
|
-
: "block"), children: react_1.default.Children?.map(children, (child) => {
|
|
67
|
-
if (react_1.default.isValidElement(child)) {
|
|
68
|
-
const updatedProps = {
|
|
69
|
-
disabled: child.props.disabled ?? disabled,
|
|
70
|
-
type,
|
|
71
|
-
name,
|
|
72
|
-
checked: child.props.value === value,
|
|
73
|
-
hiddenInput,
|
|
74
|
-
className: child.props.className,
|
|
75
|
-
classNameTitle: child.props.classNameTitle,
|
|
76
|
-
classNameDescription: child.props.classNameDescription,
|
|
77
|
-
onChange,
|
|
78
|
-
};
|
|
79
|
-
const knownProps = Object.keys(updatedProps).reduce((acc, key) => {
|
|
80
|
-
if (updatedProps[key] !== undefined) {
|
|
81
|
-
acc[key] = updatedProps[key];
|
|
82
|
-
}
|
|
83
|
-
return acc;
|
|
84
|
-
}, {});
|
|
85
|
-
return react_1.default.cloneElement(child, knownProps);
|
|
86
|
-
}
|
|
87
|
-
return null;
|
|
88
|
-
}) })] }));
|
|
89
|
-
};
|
|
90
|
-
exports.ChoiceboxGroup = ChoiceboxGroup;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChoiceboxGroupItem = exports.ChoiceboxGroup = void 0;
|
|
4
|
-
var Choicebox_1 = require("./Choicebox");
|
|
5
|
-
Object.defineProperty(exports, "ChoiceboxGroup", { enumerable: true, get: function () { return Choicebox_1.ChoiceboxGroup; } });
|
|
6
|
-
Object.defineProperty(exports, "ChoiceboxGroupItem", { enumerable: true, get: function () { return Choicebox_1.ChoiceboxGroupItem; } });
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Combobox = exports.ComboboxContent = exports.ComboboxTrigger = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const utils_1 = require("../../helpers/utils");
|
|
6
|
-
const solid_1 = require("@heroicons/react/16/solid");
|
|
7
|
-
const Popover_1 = require("../Popover");
|
|
8
|
-
const ComboboxTrigger = ({ className, value, label, children, placeholder, }) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [(0, jsx_runtime_1.jsxs)(Popover_1.PopoverTrigger, { className: (0, utils_1.cn)("focus-visible:outline-none w-72 focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 select-mobase-button bg-white ring-0 transition-all rounded-md border border-gray-400 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-300 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm", className), children: [value || children || placeholder, (0, jsx_runtime_1.jsx)(solid_1.ChevronDownIcon, { className: "h-4 w-4 text-gray-700 flex-none" })] }), label && ((0, jsx_runtime_1.jsx)("span", { className: "absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]", children: label }))] }));
|
|
10
|
-
};
|
|
11
|
-
exports.ComboboxTrigger = ComboboxTrigger;
|
|
12
|
-
const ComboboxContent = ({ children, className, }) => {
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)(Popover_1.PopoverContent, { className: (0, utils_1.cn)("!p-0 border-none", className), children: children }));
|
|
14
|
-
};
|
|
15
|
-
exports.ComboboxContent = ComboboxContent;
|
|
16
|
-
const Combobox = ({ open, onOpenChange, children }) => {
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)(Popover_1.Popover, { open: open, onOpenChange: onOpenChange, children: children }));
|
|
18
|
-
};
|
|
19
|
-
exports.Combobox = Combobox;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Combobox = exports.ComboboxContent = exports.ComboboxTrigger = void 0;
|
|
4
|
-
var Combobox_1 = require("./Combobox");
|
|
5
|
-
Object.defineProperty(exports, "ComboboxTrigger", { enumerable: true, get: function () { return Combobox_1.ComboboxTrigger; } });
|
|
6
|
-
Object.defineProperty(exports, "ComboboxContent", { enumerable: true, get: function () { return Combobox_1.ComboboxContent; } });
|
|
7
|
-
Object.defineProperty(exports, "Combobox", { enumerable: true, get: function () { return Combobox_1.Combobox; } });
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.CommandSeparator = exports.CommandShortcut = exports.CommandItem = exports.CommandGroup = exports.CommandEmpty = exports.CommandList = exports.CommandInput = exports.CommandDialog = exports.Command = void 0;
|
|
27
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
const React = __importStar(require("react"));
|
|
29
|
-
const cmdk_1 = require("cmdk");
|
|
30
|
-
const utils_1 = require("../../helpers/utils");
|
|
31
|
-
const Dialog_1 = require("../Dialog");
|
|
32
|
-
const solid_1 = require("@heroicons/react/16/solid");
|
|
33
|
-
const Command = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(cmdk_1.Command, { ref: ref, className: (0, utils_1.cn)("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md", className), ...props })));
|
|
34
|
-
exports.Command = Command;
|
|
35
|
-
Command.displayName = cmdk_1.Command.displayName;
|
|
36
|
-
const CommandDialog = ({ children, ...props }) => {
|
|
37
|
-
return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { ...props, children: (0, jsx_runtime_1.jsx)(Dialog_1.DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: (0, jsx_runtime_1.jsx)(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: children }) }) }));
|
|
38
|
-
};
|
|
39
|
-
exports.CommandDialog = CommandDialog;
|
|
40
|
-
const CommandInput = React.forwardRef(({ className, onClickClear, ...props }, ref) => {
|
|
41
|
-
const divRef = React.useRef(null);
|
|
42
|
-
const [search, setSearch] = React.useState("");
|
|
43
|
-
const handleClearInput = () => {
|
|
44
|
-
if (!search || search?.length <= 0)
|
|
45
|
-
return;
|
|
46
|
-
setSearch("");
|
|
47
|
-
onClickClear?.(search);
|
|
48
|
-
};
|
|
49
|
-
return ((0, jsx_runtime_1.jsxs)("div", { ref: divRef, className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [(0, jsx_runtime_1.jsx)(solid_1.MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 text-gray-500" }), (0, jsx_runtime_1.jsx)(cmdk_1.Command.Input, { ref: ref, className: (0, utils_1.cn)("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className), value: search, onValueChange: setSearch, ...props }), (0, jsx_runtime_1.jsx)(solid_1.XCircleIcon, { onClick: handleClearInput, className: (0, utils_1.cn)("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500", search?.length > 0 ? "opacity-100" : "opacity-0") })] }));
|
|
50
|
-
});
|
|
51
|
-
exports.CommandInput = CommandInput;
|
|
52
|
-
CommandInput.displayName = cmdk_1.Command.Input.displayName;
|
|
53
|
-
const CommandList = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(cmdk_1.Command.List, { ref: ref, className: (0, utils_1.cn)("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden", className), ...props })));
|
|
54
|
-
exports.CommandList = CommandList;
|
|
55
|
-
CommandList.displayName = cmdk_1.Command.List.displayName;
|
|
56
|
-
const CommandEmpty = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(cmdk_1.Command.Empty, { ref: ref, className: "py-6 text-gray-900 text-center text-sm", ...props })));
|
|
57
|
-
exports.CommandEmpty = CommandEmpty;
|
|
58
|
-
CommandEmpty.displayName = cmdk_1.Command.Empty.displayName;
|
|
59
|
-
const CommandGroup = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(cmdk_1.Command.Group, { ref: ref, className: (0, utils_1.cn)("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className), ...props })));
|
|
60
|
-
exports.CommandGroup = CommandGroup;
|
|
61
|
-
CommandGroup.displayName = cmdk_1.Command.Group.displayName;
|
|
62
|
-
const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(cmdk_1.Command.Separator, { ref: ref, className: (0, utils_1.cn)("-mx-1 text-gray-900 h-px bg-border", className), ...props })));
|
|
63
|
-
exports.CommandSeparator = CommandSeparator;
|
|
64
|
-
CommandSeparator.displayName = cmdk_1.Command.Separator.displayName;
|
|
65
|
-
const CommandItem = React.forwardRef(({ className, children, isActive, ...props }, ref) => {
|
|
66
|
-
return ((0, jsx_runtime_1.jsxs)(cmdk_1.Command.Item, { ref: ref, className: (0, utils_1.cn)("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50", isActive ? "bg-gray-100" : "", className), ...props, children: [(0, jsx_runtime_1.jsx)(solid_1.CheckIcon, { className: (0, utils_1.cn)("h-4 w-4 mr-2", isActive ? "opacity-100" : "opacity-0") }), children] }));
|
|
67
|
-
});
|
|
68
|
-
exports.CommandItem = CommandItem;
|
|
69
|
-
CommandItem.displayName = cmdk_1.Command.Item.displayName;
|
|
70
|
-
const CommandShortcut = ({ className, ...props }) => {
|
|
71
|
-
return ((0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground", className), ...props }));
|
|
72
|
-
};
|
|
73
|
-
exports.CommandShortcut = CommandShortcut;
|
|
74
|
-
CommandShortcut.displayName = "CommandShortcut";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommandSeparator = exports.CommandShortcut = exports.CommandItem = exports.CommandGroup = exports.CommandEmpty = exports.CommandList = exports.CommandInput = exports.CommandDialog = exports.Command = void 0;
|
|
4
|
-
var Command_1 = require("./Command");
|
|
5
|
-
Object.defineProperty(exports, "Command", { enumerable: true, get: function () { return Command_1.Command; } });
|
|
6
|
-
Object.defineProperty(exports, "CommandDialog", { enumerable: true, get: function () { return Command_1.CommandDialog; } });
|
|
7
|
-
Object.defineProperty(exports, "CommandInput", { enumerable: true, get: function () { return Command_1.CommandInput; } });
|
|
8
|
-
Object.defineProperty(exports, "CommandList", { enumerable: true, get: function () { return Command_1.CommandList; } });
|
|
9
|
-
Object.defineProperty(exports, "CommandEmpty", { enumerable: true, get: function () { return Command_1.CommandEmpty; } });
|
|
10
|
-
Object.defineProperty(exports, "CommandGroup", { enumerable: true, get: function () { return Command_1.CommandGroup; } });
|
|
11
|
-
Object.defineProperty(exports, "CommandItem", { enumerable: true, get: function () { return Command_1.CommandItem; } });
|
|
12
|
-
Object.defineProperty(exports, "CommandShortcut", { enumerable: true, get: function () { return Command_1.CommandShortcut; } });
|
|
13
|
-
Object.defineProperty(exports, "CommandSeparator", { enumerable: true, get: function () { return Command_1.CommandSeparator; } });
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.DialogDescription = exports.DialogTitle = exports.DialogFooter = exports.DialogBody = exports.DialogHeader = exports.DialogContent = exports.DialogTrigger = exports.DialogClose = exports.DialogOverlay = exports.DialogPortal = exports.Dialog = void 0;
|
|
27
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
const React = __importStar(require("react"));
|
|
29
|
-
const DialogPrimitive = __importStar(require("@radix-ui/react-dialog"));
|
|
30
|
-
const utils_1 = require("../../helpers/utils");
|
|
31
|
-
const solid_1 = require("@heroicons/react/20/solid");
|
|
32
|
-
const Dialog = DialogPrimitive.Root;
|
|
33
|
-
exports.Dialog = Dialog;
|
|
34
|
-
const DialogTrigger = DialogPrimitive.Trigger;
|
|
35
|
-
exports.DialogTrigger = DialogTrigger;
|
|
36
|
-
const DialogPortal = DialogPrimitive.Portal;
|
|
37
|
-
exports.DialogPortal = DialogPortal;
|
|
38
|
-
const DialogClose = DialogPrimitive.Close;
|
|
39
|
-
exports.DialogClose = DialogClose;
|
|
40
|
-
const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(DialogPrimitive.Overlay, { ref: ref, className: (0, utils_1.cn)("fixed inset-0 z-50 bg-black/60 !duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props })));
|
|
41
|
-
exports.DialogOverlay = DialogOverlay;
|
|
42
|
-
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
43
|
-
const DialogContent = React.forwardRef(({ className, isRightCloseButton, size = "md", position = "center", height = "auto", isFull = false, children, ...props }, ref) => {
|
|
44
|
-
const classNames = {
|
|
45
|
-
base: "fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",
|
|
46
|
-
center: "left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",
|
|
47
|
-
bottom: "!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(-32px_+_100vh)] sm:max-h-[calc(-64px_+_100vh)]",
|
|
48
|
-
left: "!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",
|
|
49
|
-
right: "!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out",
|
|
50
|
-
};
|
|
51
|
-
const sizeClassNames = {
|
|
52
|
-
sm: "w-80 sm:w-80",
|
|
53
|
-
md: "w-[512px] sm:w-[512px]",
|
|
54
|
-
lg: "w-[672px] sm:w-[672px]",
|
|
55
|
-
xl: "w-[1024px] sm:-[1024px]",
|
|
56
|
-
};
|
|
57
|
-
const heightClassNames = {
|
|
58
|
-
auto: "h-auto sm:h-auto",
|
|
59
|
-
small: "h-[480px] sm:h-[480px]",
|
|
60
|
-
large: "h-[640px] sm:h-[640px]",
|
|
61
|
-
full: "h-full",
|
|
62
|
-
};
|
|
63
|
-
const classNamesDialogContent = [
|
|
64
|
-
classNames.base,
|
|
65
|
-
classNames[position],
|
|
66
|
-
sizeClassNames[size],
|
|
67
|
-
heightClassNames[height],
|
|
68
|
-
isFull &&
|
|
69
|
-
"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",
|
|
70
|
-
className,
|
|
71
|
-
];
|
|
72
|
-
return ((0, jsx_runtime_1.jsxs)(DialogPortal, { children: [(0, jsx_runtime_1.jsx)(DialogOverlay, {}), (0, jsx_runtime_1.jsxs)(DialogPrimitive.Content, { ref: ref, className: (0, utils_1.cn)(...classNamesDialogContent), ...props, children: [children, (0, jsx_runtime_1.jsxs)(DialogPrimitive.Close, { className: (0, utils_1.cn)("absolute md:top-4 top-2 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 text-gray-900 w-8 h-8 flex justify-center items-center rounded-full before:opacity-0 hover:before:opacity-100 before:transition-opacity before:z-[-1] before:content-[''] before:absolute before:inset-0 before:rounded-full before:select-none before:left-0 before:top-0 before:bg-gray-200 left-3 md:left-auto md:right-4", isRightCloseButton && "left-auto right-3 md:right-4"), title: "\u0110\u00F3ng", children: [(0, jsx_runtime_1.jsx)(solid_1.XMarkIcon, { className: "h-5 w-5 text-gray-700" }), (0, jsx_runtime_1.jsx)("span", { className: "sr-only", children: "Close" })] })] })] }));
|
|
73
|
-
});
|
|
74
|
-
exports.DialogContent = DialogContent;
|
|
75
|
-
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
76
|
-
const DialogHeader = ({ className, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("dialog-header py-2 md:py-4 h-12 md:h-16 px-10 md:px-12 items-center justify-center flex border-b border-gray-200 w-full shrink-0", className), ...props }));
|
|
77
|
-
exports.DialogHeader = DialogHeader;
|
|
78
|
-
DialogHeader.displayName = "DialogHeader";
|
|
79
|
-
const DialogBody = ({ className, isCondensed = false, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("dialog-body p-6 flex-1 overflow-y-auto", isCondensed && "p-5", className), ...props }));
|
|
80
|
-
exports.DialogBody = DialogBody;
|
|
81
|
-
DialogBody.displayName = "DialogBody";
|
|
82
|
-
const DialogFooter = ({ className, isDivider = true, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("dialog-footer flex sm:flex-row justify-center [&>*]:basis-1/2 [&>*]:sm:basis-auto sm:justify-end space-x-2 px-6 pb-4 shrink-0", isDivider && "border-gray-200 border-t py-4", className), ...props }));
|
|
83
|
-
exports.DialogFooter = DialogFooter;
|
|
84
|
-
DialogFooter.displayName = "DialogFooter";
|
|
85
|
-
const DialogTitle = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(DialogPrimitive.Title, { ref: ref, className: (0, utils_1.cn)("text-base font-semibold line-clamp-1 max-w-full", className), ...props })));
|
|
86
|
-
exports.DialogTitle = DialogTitle;
|
|
87
|
-
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
88
|
-
const DialogDescription = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(DialogPrimitive.Description, { ref: ref, className: (0, utils_1.cn)("text-sm text-gray-700", className), ...props })));
|
|
89
|
-
exports.DialogDescription = DialogDescription;
|
|
90
|
-
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DialogDescription = exports.DialogTitle = exports.DialogFooter = exports.DialogBody = exports.DialogHeader = exports.DialogContent = exports.DialogTrigger = exports.DialogClose = exports.DialogOverlay = exports.DialogPortal = exports.Dialog = void 0;
|
|
4
|
-
var Dialog_1 = require("./Dialog");
|
|
5
|
-
Object.defineProperty(exports, "Dialog", { enumerable: true, get: function () { return Dialog_1.Dialog; } });
|
|
6
|
-
Object.defineProperty(exports, "DialogPortal", { enumerable: true, get: function () { return Dialog_1.DialogPortal; } });
|
|
7
|
-
Object.defineProperty(exports, "DialogOverlay", { enumerable: true, get: function () { return Dialog_1.DialogOverlay; } });
|
|
8
|
-
Object.defineProperty(exports, "DialogClose", { enumerable: true, get: function () { return Dialog_1.DialogClose; } });
|
|
9
|
-
Object.defineProperty(exports, "DialogTrigger", { enumerable: true, get: function () { return Dialog_1.DialogTrigger; } });
|
|
10
|
-
Object.defineProperty(exports, "DialogContent", { enumerable: true, get: function () { return Dialog_1.DialogContent; } });
|
|
11
|
-
Object.defineProperty(exports, "DialogHeader", { enumerable: true, get: function () { return Dialog_1.DialogHeader; } });
|
|
12
|
-
Object.defineProperty(exports, "DialogBody", { enumerable: true, get: function () { return Dialog_1.DialogBody; } });
|
|
13
|
-
Object.defineProperty(exports, "DialogFooter", { enumerable: true, get: function () { return Dialog_1.DialogFooter; } });
|
|
14
|
-
Object.defineProperty(exports, "DialogTitle", { enumerable: true, get: function () { return Dialog_1.DialogTitle; } });
|
|
15
|
-
Object.defineProperty(exports, "DialogDescription", { enumerable: true, get: function () { return Dialog_1.DialogDescription; } });
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DialogQr = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Dialog_1 = require("../Dialog");
|
|
9
|
-
const qrcode_react_1 = __importDefault(require("qrcode.react"));
|
|
10
|
-
const utils_1 = require("../../helpers/utils");
|
|
11
|
-
const QRCodeScan = ({ img = "", children, isQrForAll }) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: "qrcode__scan__container", children: (0, jsx_runtime_1.jsxs)("div", { className: "qrcode__scan", children: [(0, jsx_runtime_1.jsx)("div", { className: "qrcode__gradient", children: (0, jsx_runtime_1.jsx)("img", { alt: "step 1", className: "img-fluid", src: "https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png" }) }), (0, jsx_runtime_1.jsx)("div", { className: "qrcode__border", children: (0, jsx_runtime_1.jsx)("img", { alt: "step 2", className: "img-fluid", src: "https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg" }) }), (0, jsx_runtime_1.jsx)("div", { className: "qrcode__image p-4", children: img ? ((0, jsx_runtime_1.jsx)("img", { alt: "step 3", className: "img-fluid d-block mx-auto", src: img, loading: "lazy" })) : (children) })] }) }), (0, jsx_runtime_1.jsx)("div", { className: "mt-4 text-sm text-white", children: isQrForAll ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("img", { src: "https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png", width: 255, height: 32, className: "mx-auto", alt: "QR all" }), (0, jsx_runtime_1.jsx)("div", { className: "mt-3", children: "Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\u00ED \u0110i\u1EC7n T\u1EED v\u00E0 Ng\u00E2n H\u00E0ng" })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", className: "mr-1 inline h-6 w-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: (0, jsx_runtime_1.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z" }) }), "S\u1EED d\u1EE5ng App MoMo ho\u1EB7c", (0, jsx_runtime_1.jsx)("br", {}), "\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\u00E9t m\u00E3."] })) }), (0, jsx_runtime_1.jsx)("style", { children: `
|
|
13
|
-
.qrcode__scan__container {
|
|
14
|
-
padding: 15px;
|
|
15
|
-
background-color: white;
|
|
16
|
-
width: 280px;
|
|
17
|
-
height: 280px;
|
|
18
|
-
border-radius: 20px;
|
|
19
|
-
border-radius: 15px;
|
|
20
|
-
margin: 0 auto;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.qrcode__image {
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.qrcode__image img {
|
|
28
|
-
width: 100%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.qrcode__scan {
|
|
32
|
-
width: 245px;
|
|
33
|
-
height: 245px;
|
|
34
|
-
margin: 0 auto;
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
background-color: white;
|
|
37
|
-
position: relative;
|
|
38
|
-
display: flex;
|
|
39
|
-
align-items: center;
|
|
40
|
-
justify-content: center;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.qrcode__border {
|
|
44
|
-
position: absolute;
|
|
45
|
-
width: 100%;
|
|
46
|
-
height: 100%;
|
|
47
|
-
top: 0;
|
|
48
|
-
left: 0;
|
|
49
|
-
z-index: 5;
|
|
50
|
-
opacity: 0.9;
|
|
51
|
-
pointer-events: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.qrcode__gradient {
|
|
55
|
-
position: absolute;
|
|
56
|
-
opacity: 0.6;
|
|
57
|
-
width: 98%;
|
|
58
|
-
height: 98%;
|
|
59
|
-
top: 1%;
|
|
60
|
-
left: 1%;
|
|
61
|
-
z-index: 6;
|
|
62
|
-
// pointer-events: none;
|
|
63
|
-
transform: translate3d(0, -110%, 0);
|
|
64
|
-
animation: QRCodeScan 3s infinite cubic-bezier(0.45, 0.03, 0.81, 0.63);
|
|
65
|
-
|
|
66
|
-
backface-visibility: hidden;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@keyframes QRCodeScan {
|
|
70
|
-
0% {
|
|
71
|
-
transform: translate3d(0, -110%, 0);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
90% {
|
|
75
|
-
transform: translate3d(0, 30%, 0);
|
|
76
|
-
}
|
|
77
|
-
100% {
|
|
78
|
-
transform: translate3d(0, 30%, 0);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
` })] }));
|
|
82
|
-
};
|
|
83
|
-
const DialogQr = ({ className, children, title, shortTitle, qrImage, qrLink, logoQr, isQrForAll = false, ...props }) => {
|
|
84
|
-
return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { ...props, children: (0, jsx_runtime_1.jsx)(Dialog_1.DialogContent, { className: (0, utils_1.cn)("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0", className), size: "xl", isRightCloseButton: true, children: (0, jsx_runtime_1.jsx)(Dialog_1.DialogBody, { className: "p-0", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row flex-wrap", children: [(0, jsx_runtime_1.jsx)("div", { className: "w-full flex-none md:w-5/12 hidden sm:block", children: children || ((0, jsx_runtime_1.jsxs)("div", { className: "px-5 text-sm py-8 grid grid-cols-1 gap-y-6", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-nowrap items-center", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex-none", children: (0, jsx_runtime_1.jsx)("img", { className: "w-20", loading: "lazy", src: "https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png", alt: "Step 1" }) }), (0, jsx_runtime_1.jsxs)("div", { className: "flex-1 pl-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "step font-semibold text-gray-800 ", children: "B\u01B0\u1EDBc 1 :" }), (0, jsx_runtime_1.jsx)("div", { className: "mt-1 text-gray-500 ", children: isQrForAll
|
|
85
|
-
? "Mở app MoMo hoặc ứng dụng ngân hàng/ví điện tử chấp nhận mã vạch từ QR Đa Năng"
|
|
86
|
-
: "Mở ứng dụng camera mặc định hoặc ứng dụng hỗ trợ QR code của bạn" })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-nowrap items-center", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex-none", children: (0, jsx_runtime_1.jsx)("img", { className: "w-20 ", loading: "lazy", src: "https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png", alt: "Step 2" }) }), (0, jsx_runtime_1.jsxs)("div", { className: "flex-1 pl-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "step font-semibold text-gray-800 ", children: "B\u01B0\u1EDBc 2 :" }), (0, jsx_runtime_1.jsx)("div", { className: "mt-1 text-gray-500 ", children: "Qu\u00E9t m\u00E3 QR Code theo h\u00ECnh b\u00EAn ph\u1EA3i" })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-nowrap items-center", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex-none", children: (0, jsx_runtime_1.jsx)("img", { className: "w-20 ", loading: "lazy", src: "https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png", alt: "Step 3" }) }), (0, jsx_runtime_1.jsxs)("div", { className: "flex-1 pl-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "step font-semibold text-gray-800 ", children: "B\u01B0\u1EDBc 3 :" }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-1 text-gray-500 ", children: ["B\u1EA5m v\u00E0o th\u00F4ng b\u00E1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c", " ", shortTitle || "Truy cập ngay"] })] })] })] })) }), (0, jsx_runtime_1.jsx)("div", { className: "flex w-full items-center justify-center md:w-7/12 h-auto", style: {
|
|
87
|
-
background: "url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)",
|
|
88
|
-
}, children: (0, jsx_runtime_1.jsxs)("div", { className: "px-5 py-10 text-center", children: [title && ((0, jsx_runtime_1.jsx)("h4", { className: "mb-5 text-base font-semibold text-white", children: title })), (0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [isQrForAll && ((0, jsx_runtime_1.jsx)("div", { className: "absolute -top-2 left-1/2 z-[5] -translate-x-1/2", children: (0, jsx_runtime_1.jsx)("img", { src: "https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg", alt: "Title QR all" }) })), (0, jsx_runtime_1.jsx)(QRCodeScan, { img: qrImage, isQrForAll: isQrForAll, children: qrLink && ((0, jsx_runtime_1.jsx)(qrcode_react_1.default, { value: qrLink, size: 215, renderAs: "svg", imageSettings: {
|
|
89
|
-
src: `${logoQr ||
|
|
90
|
-
"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,
|
|
91
|
-
x: null,
|
|
92
|
-
y: null,
|
|
93
|
-
height: 50,
|
|
94
|
-
width: 50,
|
|
95
|
-
excavate: true,
|
|
96
|
-
}, level: "H" })) })] })] }) })] }) }) }) }));
|
|
97
|
-
};
|
|
98
|
-
exports.DialogQr = DialogQr;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Footer = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const react_1 = require("react");
|
|
9
|
-
const FooterContent_1 = __importDefault(require("./FooterContent"));
|
|
10
|
-
const utils_1 = require("../../helpers/utils");
|
|
11
|
-
const Footer = (0, react_1.memo)(({ className, dataMenu }) => {
|
|
12
|
-
// const { logo, name, url } = serviceInfo;
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)("footer", { className: (0, utils_1.cn)("grid grid-cols-1 flex-wrap bg-gray-900", className), children: (0, jsx_runtime_1.jsx)(FooterContent_1.default, { dataMenu: dataMenu }) }));
|
|
14
|
-
});
|
|
15
|
-
exports.Footer = Footer;
|