@majapisoftwares/ui 4.0.2
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/base.css +359 -0
- package/bootstrap/AppProps.d.ts +10 -0
- package/bootstrap/AppProps.js +1 -0
- package/bootstrap/index.d.ts +1 -0
- package/bootstrap/index.js +1 -0
- package/bootstrap/modeScript.d.ts +2 -0
- package/bootstrap/modeScript.js +35 -0
- package/bootstrap/nprogress.d.ts +1 -0
- package/bootstrap/nprogress.js +19 -0
- package/bootstrap/scrolledScript.d.ts +2 -0
- package/bootstrap/scrolledScript.js +27 -0
- package/bootstrap/setupFocusManager.d.ts +1 -0
- package/bootstrap/setupFocusManager.js +13 -0
- package/bootstrap/suppressConsoleLog.d.ts +1 -0
- package/bootstrap/suppressConsoleLog.js +8 -0
- package/components/Accordion/Accordion.d.ts +19 -0
- package/components/Accordion/Accordion.jsx +27 -0
- package/components/Accordion/index.d.ts +3 -0
- package/components/Accordion/index.jsx +3 -0
- package/components/Alert/Alert.d.ts +31 -0
- package/components/Alert/Alert.jsx +53 -0
- package/components/Alert/index.d.ts +3 -0
- package/components/Alert/index.jsx +3 -0
- package/components/Aurora/Aurora.d.ts +10 -0
- package/components/Aurora/Aurora.jsx +189 -0
- package/components/Aurora/index.d.ts +3 -0
- package/components/Aurora/index.jsx +3 -0
- package/components/Autocomplete/Autocomplete.d.ts +7 -0
- package/components/Autocomplete/Autocomplete.jsx +23 -0
- package/components/Autocomplete/UnstyledAutocomplete.d.ts +36 -0
- package/components/Autocomplete/UnstyledAutocomplete.jsx +73 -0
- package/components/Autocomplete/index.d.ts +5 -0
- package/components/Autocomplete/index.jsx +5 -0
- package/components/BackgroundEffects/BottomBlurryPoint.d.ts +3 -0
- package/components/BackgroundEffects/BottomBlurryPoint.jsx +14 -0
- package/components/BackgroundEffects/TopBlurryPoint.d.ts +3 -0
- package/components/BackgroundEffects/TopBlurryPoint.jsx +14 -0
- package/components/Badge/Badge.d.ts +42 -0
- package/components/Badge/Badge.jsx +50 -0
- package/components/Badge/index.d.ts +3 -0
- package/components/Badge/index.jsx +3 -0
- package/components/Breadcrumbs/Breadcrumbs.d.ts +11 -0
- package/components/Breadcrumbs/Breadcrumbs.jsx +42 -0
- package/components/Breadcrumbs/index.d.ts +3 -0
- package/components/Breadcrumbs/index.jsx +3 -0
- package/components/Button/Button.d.ts +111 -0
- package/components/Button/Button.jsx +129 -0
- package/components/Button/UnstyledButton.d.ts +10 -0
- package/components/Button/UnstyledButton.jsx +13 -0
- package/components/Button/index.d.ts +3 -0
- package/components/Button/index.jsx +3 -0
- package/components/Carousel/Carousel.d.ts +19 -0
- package/components/Carousel/Carousel.jsx +55 -0
- package/components/Carousel/index.d.ts +3 -0
- package/components/Carousel/index.jsx +3 -0
- package/components/Checkbox/Checkbox.d.ts +14 -0
- package/components/Checkbox/Checkbox.jsx +45 -0
- package/components/Checkbox/index.d.ts +3 -0
- package/components/Checkbox/index.js +3 -0
- package/components/Code/Code.d.ts +12 -0
- package/components/Code/Code.jsx +25 -0
- package/components/Code/Json.d.ts +5 -0
- package/components/Code/Json.jsx +7 -0
- package/components/Code/index.d.ts +4 -0
- package/components/Code/index.jsx +4 -0
- package/components/ConfirmationButton/ConfirmationButton.d.ts +17 -0
- package/components/ConfirmationButton/ConfirmationButton.jsx +13 -0
- package/components/ConfirmationButton/index.d.ts +3 -0
- package/components/ConfirmationButton/index.jsx +3 -0
- package/components/ContextMenu/ContextMenu.d.ts +28 -0
- package/components/ContextMenu/ContextMenu.jsx +70 -0
- package/components/ContextMenu/index.d.ts +3 -0
- package/components/ContextMenu/index.jsx +3 -0
- package/components/CopyButton/CopyButton.d.ts +7 -0
- package/components/CopyButton/CopyButton.jsx +29 -0
- package/components/CopyButton/index.d.ts +3 -0
- package/components/CopyButton/index.jsx +3 -0
- package/components/DateInput/DateInput.d.ts +6 -0
- package/components/DateInput/DateInput.jsx +19 -0
- package/components/DateInput/DateTimeInput.d.ts +3 -0
- package/components/DateInput/DateTimeInput.jsx +8 -0
- package/components/DateInput/index.d.ts +4 -0
- package/components/DateInput/index.jsx +4 -0
- package/components/DateInput/useRefValue.d.ts +5 -0
- package/components/DateInput/useRefValue.js +48 -0
- package/components/DatePicker/DatePicker.d.ts +19 -0
- package/components/DatePicker/DatePicker.jsx +55 -0
- package/components/DatePicker/index.d.ts +3 -0
- package/components/DatePicker/index.jsx +3 -0
- package/components/DateRangePicker/DateRangePicker.d.ts +16 -0
- package/components/DateRangePicker/DateRangePicker.jsx +56 -0
- package/components/DateRangePicker/index.d.ts +3 -0
- package/components/DateRangePicker/index.jsx +3 -0
- package/components/Dialog/Dialog.d.ts +25 -0
- package/components/Dialog/Dialog.jsx +35 -0
- package/components/Dialog/Dialogs.d.ts +1 -0
- package/components/Dialog/Dialogs.jsx +21 -0
- package/components/Dialog/dialogs.state.d.ts +21 -0
- package/components/Dialog/dialogs.state.js +40 -0
- package/components/Dialog/index.d.ts +6 -0
- package/components/Dialog/index.jsx +7 -0
- package/components/Drawer/Drawer.d.ts +15 -0
- package/components/Drawer/Drawer.jsx +72 -0
- package/components/Drawer/index.d.ts +3 -0
- package/components/Drawer/index.jsx +3 -0
- package/components/DropdownMenu/DropdownMenu.d.ts +33 -0
- package/components/DropdownMenu/DropdownMenu.jsx +74 -0
- package/components/DropdownMenu/index.d.ts +3 -0
- package/components/DropdownMenu/index.jsx +3 -0
- package/components/ErrorBoundary/ErrorBoundary.d.ts +18 -0
- package/components/ErrorBoundary/ErrorBoundary.jsx +32 -0
- package/components/ErrorBoundary/index.d.ts +3 -0
- package/components/ErrorBoundary/index.jsx +3 -0
- package/components/ErrorPage/Error404Page.d.ts +1 -0
- package/components/ErrorPage/Error404Page.jsx +4 -0
- package/components/ErrorPage/Error500Page.d.ts +1 -0
- package/components/ErrorPage/Error500Page.jsx +4 -0
- package/components/ErrorPage/ErrorPage.d.ts +11 -0
- package/components/ErrorPage/ErrorPage.jsx +23 -0
- package/components/FileInput/FileInput.d.ts +47 -0
- package/components/FileInput/FileInput.jsx +144 -0
- package/components/FileInput/PreviewFile.d.ts +13 -0
- package/components/FileInput/PreviewFile.jsx +55 -0
- package/components/FileInput/index.d.ts +3 -0
- package/components/FileInput/index.jsx +3 -0
- package/components/FileSelect/FileSelect.d.ts +31 -0
- package/components/FileSelect/FileSelect.jsx +143 -0
- package/components/FileSelect/index.d.ts +3 -0
- package/components/FileSelect/index.jsx +3 -0
- package/components/Footer/Footer.d.ts +19 -0
- package/components/Footer/Footer.jsx +30 -0
- package/components/Footer/index.d.ts +3 -0
- package/components/Footer/index.jsx +3 -0
- package/components/GridPattern/GridPattern.d.ts +2 -0
- package/components/GridPattern/GridPattern.jsx +12 -0
- package/components/GridPattern/index.d.ts +3 -0
- package/components/GridPattern/index.jsx +3 -0
- package/components/Group/Group.d.ts +5 -0
- package/components/Group/Group.jsx +6 -0
- package/components/Group/index.d.ts +3 -0
- package/components/Group/index.jsx +3 -0
- package/components/Header/Header.d.ts +5 -0
- package/components/Header/Header.jsx +19 -0
- package/components/Header/index.d.ts +3 -0
- package/components/Header/index.jsx +3 -0
- package/components/ImageInput/ImageInput.d.ts +4 -0
- package/components/ImageInput/ImageInput.jsx +8 -0
- package/components/ImageInput/index.d.ts +3 -0
- package/components/ImageInput/index.jsx +3 -0
- package/components/Input/Input.d.ts +14 -0
- package/components/Input/Input.jsx +57 -0
- package/components/Input/InputIcon.d.ts +9 -0
- package/components/Input/InputIcon.jsx +7 -0
- package/components/Input/MultiSelectInput.d.ts +13 -0
- package/components/Input/MultiSelectInput.jsx +28 -0
- package/components/Input/NumericInput.d.ts +6 -0
- package/components/Input/NumericInput.jsx +6 -0
- package/components/Input/PatternInput.d.ts +6 -0
- package/components/Input/PatternInput.jsx +6 -0
- package/components/Input/UnstyledInput.d.ts +22 -0
- package/components/Input/UnstyledInput.jsx +28 -0
- package/components/Input/index.d.ts +6 -0
- package/components/Input/index.jsx +6 -0
- package/components/Input2/InputWrapper.d.ts +11 -0
- package/components/Input2/InputWrapper.jsx +11 -0
- package/components/Link/Link.d.ts +3 -0
- package/components/Link/Link.jsx +9 -0
- package/components/Link/index.d.ts +3 -0
- package/components/Link/index.jsx +3 -0
- package/components/Loading/Loading.d.ts +3 -0
- package/components/Loading/Loading.jsx +13 -0
- package/components/Loading/index.d.ts +3 -0
- package/components/Loading/index.jsx +3 -0
- package/components/Magnet/Magnet.d.ts +13 -0
- package/components/Magnet/Magnet.jsx +50 -0
- package/components/Magnet/index.d.ts +3 -0
- package/components/Magnet/index.jsx +3 -0
- package/components/Markdown/Markdown.d.ts +8 -0
- package/components/Markdown/Markdown.jsx +13 -0
- package/components/Markdown/index.d.ts +3 -0
- package/components/Markdown/index.jsx +3 -0
- package/components/Menu/Menu.d.ts +28 -0
- package/components/Menu/Menu.jsx +54 -0
- package/components/Modal/Modal.d.ts +45 -0
- package/components/Modal/Modal.jsx +65 -0
- package/components/Modal/index.d.ts +4 -0
- package/components/Modal/index.jsx +4 -0
- package/components/Modal/useModalState.d.ts +6 -0
- package/components/Modal/useModalState.js +16 -0
- package/components/ModeToggle/ModeToggle.d.ts +9 -0
- package/components/ModeToggle/ModeToggle.jsx +12 -0
- package/components/ModeToggle/index.d.ts +4 -0
- package/components/ModeToggle/index.jsx +5 -0
- package/components/ModeToggle/useModeToggle.d.ts +1 -0
- package/components/ModeToggle/useModeToggle.js +21 -0
- package/components/MultiSelect/MultiSelect.d.ts +28 -0
- package/components/MultiSelect/MultiSelect.jsx +130 -0
- package/components/MultiSelect/index.d.ts +3 -0
- package/components/MultiSelect/index.jsx +3 -0
- package/components/MultiText/MultiText.d.ts +23 -0
- package/components/MultiText/MultiText.jsx +119 -0
- package/components/MultiText/index.d.ts +3 -0
- package/components/MultiText/index.jsx +3 -0
- package/components/NavigationDrawer/NavigationDrawer.d.ts +9 -0
- package/components/NavigationDrawer/NavigationDrawer.jsx +29 -0
- package/components/NavigationDrawer/NavigationItem.d.ts +13 -0
- package/components/NavigationDrawer/NavigationItem.jsx +24 -0
- package/components/NavigationDrawer/index.d.ts +6 -0
- package/components/NavigationDrawer/index.jsx +6 -0
- package/components/NavigationDrawer/navigationDrawer.state.d.ts +9 -0
- package/components/NavigationDrawer/navigationDrawer.state.js +19 -0
- package/components/NoSsr/NoSsr.d.ts +4 -0
- package/components/NoSsr/NoSsr.jsx +8 -0
- package/components/NoSsr/index.d.ts +3 -0
- package/components/NoSsr/index.jsx +3 -0
- package/components/Noise/Noise.d.ts +11 -0
- package/components/Noise/Noise.jsx +69 -0
- package/components/Noise/index.d.ts +3 -0
- package/components/Noise/index.jsx +3 -0
- package/components/Notifications/Notifications.d.ts +3 -0
- package/components/Notifications/Notifications.jsx +60 -0
- package/components/Notifications/index.d.ts +5 -0
- package/components/Notifications/index.jsx +6 -0
- package/components/Notifications/notifications.state.d.ts +24 -0
- package/components/Notifications/notifications.state.js +41 -0
- package/components/Orb/Orb.d.ts +8 -0
- package/components/Orb/Orb.jsx +258 -0
- package/components/Orb/index.d.ts +3 -0
- package/components/Orb/index.jsx +3 -0
- package/components/Pagination/Pagination.d.ts +13 -0
- package/components/Pagination/Pagination.jsx +64 -0
- package/components/Pagination/index.d.ts +3 -0
- package/components/Pagination/index.jsx +3 -0
- package/components/Particles/Particles.d.ts +18 -0
- package/components/Particles/Particles.jsx +205 -0
- package/components/Particles/index.d.ts +3 -0
- package/components/Particles/index.jsx +3 -0
- package/components/PictureCropInput/PictureCropInput.d.ts +17 -0
- package/components/PictureCropInput/PictureCropInput.jsx +153 -0
- package/components/PictureCropInput/canvasPreview.d.ts +2 -0
- package/components/PictureCropInput/canvasPreview.js +37 -0
- package/components/PictureCropInput/index.d.ts +3 -0
- package/components/PictureCropInput/index.js +3 -0
- package/components/Popover/Popover.d.ts +13 -0
- package/components/Popover/Popover.jsx +22 -0
- package/components/Popover/index.d.ts +3 -0
- package/components/Popover/index.jsx +3 -0
- package/components/Resizable/Resizable.d.ts +12 -0
- package/components/Resizable/Resizable.jsx +54 -0
- package/components/Resizable/index.d.ts +3 -0
- package/components/Resizable/index.jsx +3 -0
- package/components/ScrollArea/ScrollArea.d.ts +9 -0
- package/components/ScrollArea/ScrollArea.jsx +16 -0
- package/components/ScrollArea/index.d.ts +3 -0
- package/components/ScrollArea/index.jsx +3 -0
- package/components/Select/Select.d.ts +24 -0
- package/components/Select/Select.jsx +55 -0
- package/components/Select/index.d.ts +3 -0
- package/components/Select/index.jsx +3 -0
- package/components/Skeleton/Skeleton.d.ts +2 -0
- package/components/Skeleton/Skeleton.jsx +8 -0
- package/components/Skeleton/index.d.ts +3 -0
- package/components/Skeleton/index.jsx +3 -0
- package/components/Slider/Slider.d.ts +10 -0
- package/components/Slider/Slider.jsx +21 -0
- package/components/Slider/index.d.ts +3 -0
- package/components/Slider/index.jsx +3 -0
- package/components/Spotlight/Spotlight.d.ts +30 -0
- package/components/Spotlight/Spotlight.jsx +77 -0
- package/components/Spotlight/index.d.ts +3 -0
- package/components/Spotlight/index.jsx +3 -0
- package/components/SpotlightCard/SpotlightCard.d.ts +7 -0
- package/components/SpotlightCard/SpotlightCard.jsx +35 -0
- package/components/SpotlightCard/index.d.ts +3 -0
- package/components/SpotlightCard/index.jsx +3 -0
- package/components/Stack/Stack.d.ts +4 -0
- package/components/Stack/Stack.jsx +5 -0
- package/components/Stack/index.d.ts +3 -0
- package/components/Stack/index.jsx +3 -0
- package/components/StarBorder/StarBorder.d.ts +11 -0
- package/components/StarBorder/StarBorder.jsx +19 -0
- package/components/StarBorder/index.d.ts +3 -0
- package/components/StarBorder/index.jsx +3 -0
- package/components/Switch/Switch.d.ts +16 -0
- package/components/Switch/Switch.jsx +24 -0
- package/components/Switch/index.d.ts +3 -0
- package/components/Switch/index.jsx +3 -0
- package/components/Table/DataTable.d.ts +57 -0
- package/components/Table/DataTable.jsx +155 -0
- package/components/Table/Table.d.ts +27 -0
- package/components/Table/Table.jsx +31 -0
- package/components/Table/TableActionButton.d.ts +6 -0
- package/components/Table/TableActionButton.jsx +20 -0
- package/components/Table/TableBody.d.ts +6 -0
- package/components/Table/TableBody.jsx +10 -0
- package/components/Table/TableCell.d.ts +9 -0
- package/components/Table/TableCell.jsx +18 -0
- package/components/Table/TableFooter.d.ts +5 -0
- package/components/Table/TableFooter.jsx +5 -0
- package/components/Table/TableFooterWithPagination.d.ts +13 -0
- package/components/Table/TableFooterWithPagination.jsx +57 -0
- package/components/Table/TableHead.d.ts +5 -0
- package/components/Table/TableHead.jsx +9 -0
- package/components/Table/TableHeadContext.d.ts +4 -0
- package/components/Table/TableHeadContext.jsx +3 -0
- package/components/Table/TableHeader.d.ts +7 -0
- package/components/Table/TableHeader.jsx +15 -0
- package/components/Table/TableRow.d.ts +8 -0
- package/components/Table/TableRow.jsx +9 -0
- package/components/Table/index.d.ts +3 -0
- package/components/Table/index.jsx +3 -0
- package/components/Tabs/Tabs.d.ts +9 -0
- package/components/Tabs/Tabs.jsx +13 -0
- package/components/Tabs/index.d.ts +3 -0
- package/components/Tabs/index.jsx +3 -0
- package/components/TabsSwitcher/Tab.d.ts +15 -0
- package/components/TabsSwitcher/Tab.jsx +18 -0
- package/components/TabsSwitcher/TabsSwitcher.d.ts +22 -0
- package/components/TabsSwitcher/TabsSwitcher.jsx +31 -0
- package/components/TabsSwitcher/index.d.ts +4 -0
- package/components/TabsSwitcher/index.jsx +4 -0
- package/components/Text/Text.d.ts +24 -0
- package/components/Text/Text.jsx +28 -0
- package/components/Text/index.d.ts +3 -0
- package/components/Text/index.jsx +3 -0
- package/components/Textarea/Textarea.d.ts +5 -0
- package/components/Textarea/Textarea.jsx +6 -0
- package/components/Textarea/index.d.ts +3 -0
- package/components/Textarea/index.js +3 -0
- package/components/Threads/Threads.d.ts +9 -0
- package/components/Threads/Threads.jsx +203 -0
- package/components/Threads/index.d.ts +3 -0
- package/components/Threads/index.jsx +3 -0
- package/components/Tooltip/Tooltip.d.ts +11 -0
- package/components/Tooltip/Tooltip.jsx +21 -0
- package/components/Tooltip/index.d.ts +3 -0
- package/components/Tooltip/index.jsx +3 -0
- package/components/VisibilityActivatedButton/VisibilityActivatedButton.d.ts +7 -0
- package/components/VisibilityActivatedButton/VisibilityActivatedButton.jsx +18 -0
- package/components/VisibilityActivatedButton/index.d.ts +3 -0
- package/components/VisibilityActivatedButton/index.jsx +3 -0
- package/form.d.ts +82 -0
- package/form.js +113 -0
- package/form2.d.ts +15 -0
- package/form2.jsx +29 -0
- package/hooks/useBeforeUnload.d.ts +1 -0
- package/hooks/useBeforeUnload.js +17 -0
- package/hooks/useDebounceEffect.d.ts +2 -0
- package/hooks/useDebounceEffect.js +14 -0
- package/hooks/useDebouncedValue.d.ts +2 -0
- package/hooks/useDebouncedValue.js +14 -0
- package/hooks/useLagRadar.d.ts +1 -0
- package/hooks/useLagRadar.jsx +124 -0
- package/hooks/useMediaQuery.d.ts +1 -0
- package/hooks/useMediaQuery.js +37 -0
- package/hooks/useMutationWindowCloseProtection.d.ts +2 -0
- package/hooks/useMutationWindowCloseProtection.js +13 -0
- package/hooks/useScroll.d.ts +3 -0
- package/hooks/useScroll.js +47 -0
- package/hooks/useTranslation.d.ts +4 -0
- package/hooks/useTranslation.js +11 -0
- package/hooks/useWhyDidYouUpdate.d.ts +3 -0
- package/hooks/useWhyDidYouUpdate.js +44 -0
- package/imgur.d.ts +1 -0
- package/imgur.js +13 -0
- package/package.json +9 -0
- package/styles/DayPicker.classNames.d.ts +29 -0
- package/styles/DayPicker.classNames.js +30 -0
- package/styles/DayPicker.classNames.ts +81 -0
- package/styles/Dropdown.classNames.d.ts +6 -0
- package/styles/Dropdown.classNames.js +7 -0
- package/styles/Dropdown.classNames.ts +38 -0
- package/styles/Input.css +23 -0
- package/styles/Modal.classNames.d.ts +2 -0
- package/styles/Modal.classNames.js +3 -0
- package/styles/Modal.classNames.ts +15 -0
- package/styles/MultiText.css +40 -0
- package/styles/Pagination.css +19 -0
- package/styles/Tabs.css +23 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/types.d.ts +6 -0
- package/types.js +1 -0
- package/utils/UseState.d.ts +3 -0
- package/utils/UseState.js +1 -0
- package/utils/blobToText.d.ts +1 -0
- package/utils/blobToText.js +13 -0
- package/utils/capitalize.d.ts +1 -0
- package/utils/capitalize.js +6 -0
- package/utils/clsx.d.ts +2 -0
- package/utils/clsx.js +5 -0
- package/utils/copy2DToClipboard.d.ts +1 -0
- package/utils/copy2DToClipboard.js +44 -0
- package/utils/cpfCpnjUtils.d.ts +3 -0
- package/utils/cpfCpnjUtils.js +43 -0
- package/utils/createLocalStorageStateHydration.d.ts +1 -0
- package/utils/createLocalStorageStateHydration.js +18 -0
- package/utils/createStateHydration.d.ts +3 -0
- package/utils/createStateHydration.js +49 -0
- package/utils/csvBlobToJson.d.ts +2 -0
- package/utils/csvBlobToJson.js +60 -0
- package/utils/downloadArrayAsCSV.d.ts +1 -0
- package/utils/downloadArrayAsCSV.js +34 -0
- package/utils/emailRegExp.d.ts +2 -0
- package/utils/emailRegExp.js +3 -0
- package/utils/fakeArray.d.ts +1 -0
- package/utils/fakeArray.js +3 -0
- package/utils/filterBoolean.d.ts +1 -0
- package/utils/filterBoolean.js +3 -0
- package/utils/formatClock.d.ts +1 -0
- package/utils/formatClock.js +21 -0
- package/utils/formatTime.d.ts +2 -0
- package/utils/formatTime.js +40 -0
- package/utils/getInitials.d.ts +4 -0
- package/utils/getInitials.js +8 -0
- package/utils/isBrowser.d.ts +12 -0
- package/utils/isBrowser.js +26 -0
- package/utils/ms.d.ts +6 -0
- package/utils/ms.js +31 -0
- package/utils/preventDefault.d.ts +1 -0
- package/utils/preventDefault.js +3 -0
- package/utils/recursiveChildrenMap.d.ts +2 -0
- package/utils/recursiveChildrenMap.js +16 -0
- package/utils/setSelectionRange.d.ts +1 -0
- package/utils/setSelectionRange.js +55 -0
- package/utils/smoothScrollToHref.d.ts +2 -0
- package/utils/smoothScrollToHref.js +10 -0
- package/utils/stopPropagation.d.ts +2 -0
- package/utils/stopPropagation.js +3 -0
- package/utils/stripHtml.d.ts +1 -0
- package/utils/stripHtml.js +4 -0
- package/utils/stripLineBreak.d.ts +1 -0
- package/utils/stripLineBreak.js +4 -0
- package/utils/stripMarkdown.d.ts +1 -0
- package/utils/stripMarkdown.js +28 -0
- package/utils/xlsxBlobToJson.d.ts +2 -0
- package/utils/xlsxBlobToJson.js +59 -0
package/base.css
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
@import './styles/MultiText.css' layer(base);
|
|
3
|
+
@import './styles/Input.css' layer(base);
|
|
4
|
+
@import './styles/Tabs.css' layer(base);
|
|
5
|
+
@import './styles/Pagination.css' layer(base);
|
|
6
|
+
|
|
7
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
8
|
+
@custom-variant not-dark (html:not(.dark) &);
|
|
9
|
+
@custom-variant scrolled (html.scrolled &);
|
|
10
|
+
@custom-variant not-scrolled (html:not(.scrolled) &);
|
|
11
|
+
@custom-variant touch (html.touch &);
|
|
12
|
+
@plugin "@tailwindcss/typography";
|
|
13
|
+
@plugin "@tailwindcss/forms";
|
|
14
|
+
|
|
15
|
+
body.ui-theme-default {
|
|
16
|
+
@apply flex h-full flex-col
|
|
17
|
+
bg-zinc-50 text-zinc-950
|
|
18
|
+
dark:bg-zinc-950 dark:text-zinc-50
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
button {
|
|
22
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.prose input[type=checkbox], .prose input[type=radio], .ui-checkbox[type=checkbox], .ui-checkbox[type=radio] {
|
|
26
|
+
@apply h-4 w-4 transition-colors
|
|
27
|
+
|
|
28
|
+
border-zinc-300 text-primary-500 ring-offset-zinc-100
|
|
29
|
+
dark:border-zinc-600 dark:bg-zinc-900 dark:ring-offset-zinc-900
|
|
30
|
+
|
|
31
|
+
hover:bg-zinc-100 hover:checked:bg-primary-400
|
|
32
|
+
dark:hover:bg-zinc-800
|
|
33
|
+
|
|
34
|
+
checked:border-primary-500
|
|
35
|
+
dark:checked:bg-primary-500 dark:checked:border-primary-500
|
|
36
|
+
|
|
37
|
+
focus:outline-hidden focus:ring-primary-500 focus:ring-2
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.prose input[type=checkbox], .ui-checkbox[type=checkbox] {
|
|
41
|
+
@apply rounded-sm;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.prose input[type=radio], .ui-checkbox[type=radio] {
|
|
45
|
+
@apply rounded-full;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
#__next {
|
|
49
|
+
height: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
input[type="datetime-local"]::-webkit-date-and-time-value,
|
|
53
|
+
input[type="date"]::-webkit-date-and-time-value,
|
|
54
|
+
input[type="time"]::-webkit-date-and-time-value {
|
|
55
|
+
text-align: left;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
|
|
59
|
+
input[type="date"]::-webkit-calendar-picker-indicator,
|
|
60
|
+
input[type="time"]::-webkit-calendar-picker-indicator {
|
|
61
|
+
color: transparent;
|
|
62
|
+
background: none;
|
|
63
|
+
z-index: 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
input[type="checkbox"]:indeterminate {
|
|
67
|
+
@apply dark:bg-primary-500 dark:border-primary-500
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@page {
|
|
71
|
+
margin: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.tsqd-parent-container {
|
|
75
|
+
pointer-events: auto;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media print {
|
|
79
|
+
.tsqd-parent-container {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**/
|
|
85
|
+
|
|
86
|
+
@theme {
|
|
87
|
+
--color-primary-50: oklch(0.977 0.013 236.62);
|
|
88
|
+
--color-primary-100: oklch(0.951 0.026 236.824);
|
|
89
|
+
--color-primary-200: oklch(0.901 0.058 230.902);
|
|
90
|
+
--color-primary-300: oklch(0.828 0.111 230.318);
|
|
91
|
+
--color-primary-400: oklch(0.746 0.16 232.661);
|
|
92
|
+
--color-primary-500: oklch(0.685 0.169 237.323);
|
|
93
|
+
--color-primary-600: oklch(0.588 0.158 241.966);
|
|
94
|
+
--color-primary-700: oklch(0.5 0.134 242.749);
|
|
95
|
+
--color-primary-800: oklch(0.443 0.11 240.79);
|
|
96
|
+
--color-primary-900: oklch(0.391 0.09 240.876);
|
|
97
|
+
--color-primary-950: oklch(0.293 0.066 243.157);
|
|
98
|
+
|
|
99
|
+
--color-on-primary: #fff;
|
|
100
|
+
|
|
101
|
+
--color-success-50: oklch(0.982 0.018 155.826);
|
|
102
|
+
--color-success-100: oklch(0.962 0.044 156.743);
|
|
103
|
+
--color-success-200: oklch(0.925 0.084 155.995);
|
|
104
|
+
--color-success-300: oklch(0.871 0.15 154.449);
|
|
105
|
+
--color-success-400: oklch(0.792 0.209 151.711);
|
|
106
|
+
--color-success-500: oklch(0.723 0.219 149.579);
|
|
107
|
+
--color-success-600: oklch(0.627 0.194 149.214);
|
|
108
|
+
--color-success-700: oklch(0.527 0.154 150.069);
|
|
109
|
+
--color-success-800: oklch(0.448 0.119 151.328);
|
|
110
|
+
--color-success-900: oklch(0.393 0.095 152.535);
|
|
111
|
+
--color-success-950: oklch(0.266 0.065 152.934);
|
|
112
|
+
|
|
113
|
+
--color-error-50: oklch(0.971 0.013 17.38);
|
|
114
|
+
--color-error-100: oklch(0.936 0.032 17.717);
|
|
115
|
+
--color-error-200: oklch(0.885 0.062 18.334);
|
|
116
|
+
--color-error-300: oklch(0.808 0.114 19.571);
|
|
117
|
+
--color-error-400: oklch(0.704 0.191 22.216);
|
|
118
|
+
--color-error-500: oklch(0.637 0.237 25.331);
|
|
119
|
+
--color-error-600: oklch(0.577 0.245 27.325);
|
|
120
|
+
--color-error-700: oklch(0.505 0.213 27.518);
|
|
121
|
+
--color-error-800: oklch(0.444 0.177 26.899);
|
|
122
|
+
--color-error-900: oklch(0.396 0.141 25.723);
|
|
123
|
+
--color-error-950: oklch(0.258 0.092 26.042);
|
|
124
|
+
|
|
125
|
+
--color-warn-50: oklch(0.987 0.026 102.212);
|
|
126
|
+
--color-warn-100: oklch(0.973 0.071 103.193);
|
|
127
|
+
--color-warn-200: oklch(0.945 0.129 101.54);
|
|
128
|
+
--color-warn-300: oklch(0.905 0.182 98.111);
|
|
129
|
+
--color-warn-400: oklch(0.852 0.199 91.936);
|
|
130
|
+
--color-warn-500: oklch(0.795 0.184 86.047);
|
|
131
|
+
--color-warn-600: oklch(0.681 0.162 75.834);
|
|
132
|
+
--color-warn-700: oklch(0.554 0.135 66.442);
|
|
133
|
+
--color-warn-800: oklch(0.476 0.114 61.907);
|
|
134
|
+
--color-warn-900: oklch(0.421 0.095 57.708);
|
|
135
|
+
--color-warn-950: oklch(0.286 0.066 53.813);
|
|
136
|
+
|
|
137
|
+
--color-current: currentColor;
|
|
138
|
+
|
|
139
|
+
--font-sans: 'Inter Variable', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
|
|
140
|
+
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
141
|
+
|
|
142
|
+
--font-weight-inherit: inherit;
|
|
143
|
+
|
|
144
|
+
--animate-slide-down-and-fade: slideDownAndFade 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
145
|
+
--animate-slide-left-and-fade: slideLeftAndFade 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
146
|
+
--animate-slide-up-and-fade: slideUpAndFade 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
147
|
+
--animate-slide-right-and-fade: slideRightAndFade 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
148
|
+
--animate-elastic-slide-down-and-fade: elasticSlideDownAndFade 350ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
149
|
+
--animate-elastic-slide-left-and-fade: elasticSlideLeftAndFade 350ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
150
|
+
--animate-elastic-slide-up-and-fade: elasticSlideUpAndFade 350ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
151
|
+
--animate-elastic-slide-right-and-fade: elasticSlideRightAndFade 350ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
152
|
+
--animate-fade-out: fadeOut 150ms ease-in;
|
|
153
|
+
--animate-fade-in: fadeIn 150ms ease-in;
|
|
154
|
+
--animate-shiny: shiny 2s infinite linear;
|
|
155
|
+
--animate-slide-down: slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1);
|
|
156
|
+
--animate-slide-up: slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1);
|
|
157
|
+
|
|
158
|
+
@keyframes slideDownAndFade {
|
|
159
|
+
from {
|
|
160
|
+
opacity: 0;
|
|
161
|
+
transform: translateY(-2px);
|
|
162
|
+
}
|
|
163
|
+
to {
|
|
164
|
+
opacity: 1;
|
|
165
|
+
transform: translateY(0);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
@keyframes slideLeftAndFade {
|
|
169
|
+
0% {
|
|
170
|
+
opacity: 0;
|
|
171
|
+
transform: translateX(2px);
|
|
172
|
+
}
|
|
173
|
+
100% {
|
|
174
|
+
opacity: 1;
|
|
175
|
+
transform: translateX(0);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
@keyframes slideUpAndFade {
|
|
179
|
+
from {
|
|
180
|
+
opacity: 0;
|
|
181
|
+
transform: translateY(2px);
|
|
182
|
+
}
|
|
183
|
+
to {
|
|
184
|
+
opacity: 1;
|
|
185
|
+
transform: translateY(0);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
@keyframes slideRightAndFade {
|
|
189
|
+
from {
|
|
190
|
+
opacity: 0;
|
|
191
|
+
transform: translateX(-2px);
|
|
192
|
+
}
|
|
193
|
+
to {
|
|
194
|
+
opacity: 1;
|
|
195
|
+
transform: translateX(0);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
@keyframes elasticSlideDownAndFade {
|
|
199
|
+
0% {
|
|
200
|
+
opacity: 0;
|
|
201
|
+
transform: translateY(-4px) scale(0.8);
|
|
202
|
+
}
|
|
203
|
+
50% {
|
|
204
|
+
opacity: 1;
|
|
205
|
+
transform: translateY(1px) scale(1);
|
|
206
|
+
}
|
|
207
|
+
100% {
|
|
208
|
+
opacity: 1;
|
|
209
|
+
transform: translateY(0) scale(1);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
@keyframes elasticSlideLeftAndFade {
|
|
213
|
+
0% {
|
|
214
|
+
opacity: 0;
|
|
215
|
+
transform: translateX(-4px) scale(0.8);
|
|
216
|
+
}
|
|
217
|
+
50% {
|
|
218
|
+
opacity: 1;
|
|
219
|
+
transform: translateX(-1px) scale(1);
|
|
220
|
+
}
|
|
221
|
+
100% {
|
|
222
|
+
opacity: 1;
|
|
223
|
+
transform: translateX(0) scale(1);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
@keyframes elasticSlideUpAndFade {
|
|
227
|
+
0% {
|
|
228
|
+
opacity: 0;
|
|
229
|
+
transform: translateY(4px) scale(0.8);
|
|
230
|
+
}
|
|
231
|
+
50% {
|
|
232
|
+
opacity: 1;
|
|
233
|
+
transform: translateY(-1px) scale(1);
|
|
234
|
+
}
|
|
235
|
+
100% {
|
|
236
|
+
opacity: 1;
|
|
237
|
+
transform: translateY(0) scale(1);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
@keyframes elasticSlideRightAndFade {
|
|
241
|
+
0% {
|
|
242
|
+
opacity: 0;
|
|
243
|
+
transform: translateX(4px) scale(0.8);
|
|
244
|
+
}
|
|
245
|
+
50% {
|
|
246
|
+
opacity: 1;
|
|
247
|
+
transform: translateX(1px) scale(1);
|
|
248
|
+
}
|
|
249
|
+
100% {
|
|
250
|
+
opacity: 1;
|
|
251
|
+
transform: translateX(0) scale(1);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
@keyframes fadeIn {
|
|
255
|
+
from {
|
|
256
|
+
opacity: 0;
|
|
257
|
+
}
|
|
258
|
+
to {
|
|
259
|
+
opacity: 1;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
@keyframes fadeOut {
|
|
263
|
+
from {
|
|
264
|
+
opacity: 1;
|
|
265
|
+
}
|
|
266
|
+
to {
|
|
267
|
+
opacity: 0;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
@keyframes pulsehide {
|
|
271
|
+
0%,
|
|
272
|
+
100% {
|
|
273
|
+
opacity: 0;
|
|
274
|
+
}
|
|
275
|
+
50% {
|
|
276
|
+
opacity: 1;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
@keyframes shiny {
|
|
280
|
+
0% {
|
|
281
|
+
background-position: 100%;
|
|
282
|
+
}
|
|
283
|
+
100% {
|
|
284
|
+
background-position: -100%;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
@keyframes slideDown {
|
|
288
|
+
from {
|
|
289
|
+
height: 0;
|
|
290
|
+
}
|
|
291
|
+
to {
|
|
292
|
+
/*noinspection CssUnresolvedCustomProperty*/
|
|
293
|
+
height: var(--radix-accordion-content-height);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
@keyframes slideUp {
|
|
297
|
+
from {
|
|
298
|
+
/*noinspection CssUnresolvedCustomProperty*/
|
|
299
|
+
height: var(--radix-accordion-content-height);
|
|
300
|
+
}
|
|
301
|
+
to {
|
|
302
|
+
height: 0;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
--animate-star-movement-bottom: star-movement-bottom linear infinite alternate;
|
|
307
|
+
--animate-star-movement-top: star-movement-top linear infinite alternate;
|
|
308
|
+
@keyframes star-movement-bottom {
|
|
309
|
+
0% {
|
|
310
|
+
transform: translate(0%, 0%);
|
|
311
|
+
opacity: 1;
|
|
312
|
+
}
|
|
313
|
+
100% {
|
|
314
|
+
transform: translate(-100%, 0%);
|
|
315
|
+
opacity: 0;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
@keyframes star-movement-top {
|
|
319
|
+
0% {
|
|
320
|
+
transform: translate(0%, 0%);
|
|
321
|
+
opacity: 1;
|
|
322
|
+
}
|
|
323
|
+
100% {
|
|
324
|
+
transform: translate(100%, 0%);
|
|
325
|
+
opacity: 0;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
--animate-slow-pulse: pulse 4s linear infinite;
|
|
330
|
+
|
|
331
|
+
--animate-bubble: bubble 4s infinite ease-in-out;
|
|
332
|
+
@keyframes bubble {
|
|
333
|
+
0%,
|
|
334
|
+
100% {
|
|
335
|
+
transform: translateY(0);
|
|
336
|
+
}
|
|
337
|
+
50% {
|
|
338
|
+
transform: translateY(-10px);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/*
|
|
344
|
+
The default border color has changed to `currentColor` in Tailwind CSS v4,
|
|
345
|
+
so we've added these compatibility styles to make sure everything still
|
|
346
|
+
looks the same as it did with Tailwind CSS v3.
|
|
347
|
+
|
|
348
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
349
|
+
color utility to any element that depends on these defaults.
|
|
350
|
+
*/
|
|
351
|
+
@layer base {
|
|
352
|
+
*,
|
|
353
|
+
::after,
|
|
354
|
+
::before,
|
|
355
|
+
::backdrop,
|
|
356
|
+
::file-selector-button {
|
|
357
|
+
border-color: var(--color-gray-200, currentColor);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AppProps as NAppProps } from "next/app";
|
|
2
|
+
import { NextComponentType, NextPageContext } from "next/dist/shared/lib/utils";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
type AppProps<LayoutProps = void> = Omit<NAppProps, "Component"> & {
|
|
5
|
+
Component: NextComponentType<NextPageContext, any, any> & {
|
|
6
|
+
getLayout: (children: ReactNode, props: LayoutProps) => ReactNode;
|
|
7
|
+
layoutProps: LayoutProps;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default AppProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "focus-visible";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "focus-visible";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const modeScript = "\n let darkModeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)')\n\n updateMode()\n darkModeMediaQuery.addEventListener('change', updateModeWithoutTransitions)\n window.addEventListener('storage', updateModeWithoutTransitions)\n\n function updateMode() {\n let isSystemDarkMode = darkModeMediaQuery.matches\n let isDarkMode = window.localStorage.isDarkMode === 'true' || (!('isDarkMode' in window.localStorage) && isSystemDarkMode)\n\n if (isDarkMode) {\n document.documentElement.classList.add('dark')\n } else {\n document.documentElement.classList.remove('dark')\n }\n\n if (isDarkMode === isSystemDarkMode) {\n delete window.localStorage.isDarkMode\n }\n }\n\n function disableTransitionsTemporarily() {\n document.documentElement.classList.add('**:transition-none!')\n window.setTimeout(() => {\n document.documentElement.classList.remove('**:transition-none!')\n }, 0)\n }\n\n function updateModeWithoutTransitions() {\n disableTransitionsTemporarily()\n updateMode()\n }\n";
|
|
2
|
+
export default modeScript;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const modeScript = `
|
|
2
|
+
let darkModeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)')
|
|
3
|
+
|
|
4
|
+
updateMode()
|
|
5
|
+
darkModeMediaQuery.addEventListener('change', updateModeWithoutTransitions)
|
|
6
|
+
window.addEventListener('storage', updateModeWithoutTransitions)
|
|
7
|
+
|
|
8
|
+
function updateMode() {
|
|
9
|
+
let isSystemDarkMode = darkModeMediaQuery.matches
|
|
10
|
+
let isDarkMode = window.localStorage.isDarkMode === 'true' || (!('isDarkMode' in window.localStorage) && isSystemDarkMode)
|
|
11
|
+
|
|
12
|
+
if (isDarkMode) {
|
|
13
|
+
document.documentElement.classList.add('dark')
|
|
14
|
+
} else {
|
|
15
|
+
document.documentElement.classList.remove('dark')
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (isDarkMode === isSystemDarkMode) {
|
|
19
|
+
delete window.localStorage.isDarkMode
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function disableTransitionsTemporarily() {
|
|
24
|
+
document.documentElement.classList.add('**:transition-none!')
|
|
25
|
+
window.setTimeout(() => {
|
|
26
|
+
document.documentElement.classList.remove('**:transition-none!')
|
|
27
|
+
}, 0)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function updateModeWithoutTransitions() {
|
|
31
|
+
disableTransitionsTemporarily()
|
|
32
|
+
updateMode()
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
export default modeScript;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function setupNProgress(color?: string): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import ProgressBar from "@badrap/bar-of-progress";
|
|
2
|
+
import Router from "next/router";
|
|
3
|
+
export default function setupNProgress(color = "#0ea5e9") {
|
|
4
|
+
const progress = new ProgressBar({
|
|
5
|
+
size: 2,
|
|
6
|
+
color,
|
|
7
|
+
className: "bar-of-progress",
|
|
8
|
+
delay: 100,
|
|
9
|
+
});
|
|
10
|
+
// this fixes safari jumping to the bottom of the page
|
|
11
|
+
// when closing the search modal using the `esc` key
|
|
12
|
+
if (typeof window !== "undefined") {
|
|
13
|
+
progress.start();
|
|
14
|
+
progress.finish();
|
|
15
|
+
}
|
|
16
|
+
Router.events.on("routeChangeStart", () => progress.start());
|
|
17
|
+
Router.events.on("routeChangeComplete", () => progress.finish());
|
|
18
|
+
Router.events.on("routeChangeError", () => progress.finish());
|
|
19
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const scrolledScript = "\n window.addEventListener(\"scroll\", () => {\n if (window.scrollY) {\n document.documentElement.classList.add(\"scrolled\")\n } else {\n document.documentElement.classList.remove(\"scrolled\")\n }\n })\n \n const isTouchDevice =\n typeof window !== \"undefined\" &&\n (!!(\n typeof window !== \"undefined\" &&\n (\"ontouchstart\" in window ||\n (window.DocumentTouch &&\n typeof document !== \"undefined\" &&\n document instanceof window.DocumentTouch))\n ) ||\n !!(\n typeof navigator !== \"undefined\" &&\n (navigator.maxTouchPoints || navigator.msMaxTouchPoints)\n ));\n if (isTouchDevice) {\n document.documentElement.classList.add(\"touch\")\n }\n";
|
|
2
|
+
export default scrolledScript;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const scrolledScript = `
|
|
2
|
+
window.addEventListener("scroll", () => {
|
|
3
|
+
if (window.scrollY) {
|
|
4
|
+
document.documentElement.classList.add("scrolled")
|
|
5
|
+
} else {
|
|
6
|
+
document.documentElement.classList.remove("scrolled")
|
|
7
|
+
}
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
const isTouchDevice =
|
|
11
|
+
typeof window !== "undefined" &&
|
|
12
|
+
(!!(
|
|
13
|
+
typeof window !== "undefined" &&
|
|
14
|
+
("ontouchstart" in window ||
|
|
15
|
+
(window.DocumentTouch &&
|
|
16
|
+
typeof document !== "undefined" &&
|
|
17
|
+
document instanceof window.DocumentTouch))
|
|
18
|
+
) ||
|
|
19
|
+
!!(
|
|
20
|
+
typeof navigator !== "undefined" &&
|
|
21
|
+
(navigator.maxTouchPoints || navigator.msMaxTouchPoints)
|
|
22
|
+
));
|
|
23
|
+
if (isTouchDevice) {
|
|
24
|
+
document.documentElement.classList.add("touch")
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
export default scrolledScript;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { focusManager } from "@tanstack/react-query";
|
|
2
|
+
focusManager.setEventListener((handleFocus) => {
|
|
3
|
+
const listener = () => handleFocus();
|
|
4
|
+
// Listen to visibilitychange
|
|
5
|
+
if (typeof window !== "undefined" && window.addEventListener) {
|
|
6
|
+
window.addEventListener("focus", listener, false);
|
|
7
|
+
}
|
|
8
|
+
return () => {
|
|
9
|
+
if (typeof window !== "undefined") {
|
|
10
|
+
window.removeEventListener("focus", listener);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
declare function Accordion({ children, className, type, }: {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
type?: "single" | "multiple";
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
declare namespace Accordion {
|
|
8
|
+
var Item: typeof AccordionItem;
|
|
9
|
+
}
|
|
10
|
+
export default Accordion;
|
|
11
|
+
declare function AccordionItem({ children, title, value, className, triggerClassName, contentClassName, contentInnerClassName, }: {
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
title: ReactNode;
|
|
14
|
+
value?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
triggerClassName?: string;
|
|
17
|
+
contentClassName?: string;
|
|
18
|
+
contentInnerClassName?: string;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ChevronUpIcon } from "@heroicons/react/20/solid";
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
import * as RAccordion from "@radix-ui/react-accordion";
|
|
4
|
+
import clsx from "../../utils/clsx";
|
|
5
|
+
export default function Accordion({ children, className, type = "multiple", }) {
|
|
6
|
+
return (<RAccordion.Root type={type} className={clsx("flex flex-col gap-2", className)} collapsible>
|
|
7
|
+
{children}
|
|
8
|
+
</RAccordion.Root>);
|
|
9
|
+
}
|
|
10
|
+
Accordion.Item = AccordionItem;
|
|
11
|
+
function AccordionItem({ children, title, value, className, triggerClassName, contentClassName, contentInnerClassName, }) {
|
|
12
|
+
const id = useId();
|
|
13
|
+
value = value || id;
|
|
14
|
+
return (<RAccordion.Item value={value} className={className}>
|
|
15
|
+
<RAccordion.Header>
|
|
16
|
+
<RAccordion.Trigger className={clsx("group focus-visible:ring-opacity-75 flex w-full justify-between rounded-lg bg-zinc-200 px-4 py-2 text-left text-sm font-medium transition hover:bg-zinc-300 focus:outline-hidden focus-visible:ring-3 focus-visible:ring-purple-500 dark:bg-zinc-800 dark:hover:bg-zinc-700", triggerClassName)}>
|
|
17
|
+
{title}
|
|
18
|
+
<ChevronUpIcon className="h-5 w-5 transition-transform duration-300 ease-[cubic-bezier(0.87,_0,_0.13,_1)] group-data-[state=open]:rotate-180"/>
|
|
19
|
+
</RAccordion.Trigger>
|
|
20
|
+
</RAccordion.Header>
|
|
21
|
+
<RAccordion.Content className={clsx("data-[state=closed]:animate-slide-up data-[state=open]:animate-slide-down overflow-hidden", contentClassName)}>
|
|
22
|
+
<div className={clsx("px-4 pt-2 pb-2", contentInnerClassName)}>
|
|
23
|
+
{children}
|
|
24
|
+
</div>
|
|
25
|
+
</RAccordion.Content>
|
|
26
|
+
</RAccordion.Item>);
|
|
27
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DetailedHTMLProps, HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
declare const styles: {
|
|
3
|
+
variants: {
|
|
4
|
+
default: {
|
|
5
|
+
root: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
title: string;
|
|
8
|
+
content: string;
|
|
9
|
+
};
|
|
10
|
+
error: {
|
|
11
|
+
root: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
title: string;
|
|
14
|
+
content: string;
|
|
15
|
+
};
|
|
16
|
+
success: {
|
|
17
|
+
root: string;
|
|
18
|
+
icon: string;
|
|
19
|
+
title: string;
|
|
20
|
+
content: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type AlertProps = {
|
|
25
|
+
title: ReactNode;
|
|
26
|
+
variant?: keyof (typeof styles)["variants"];
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
actions?: ReactNode;
|
|
29
|
+
} & Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "title">;
|
|
30
|
+
export default function Alert({ variant, title, children, className, actions, ...props }: AlertProps): import("react").JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { CheckCircleIcon, ExclamationTriangleIcon, XCircleIcon, } from "@heroicons/react/20/solid";
|
|
2
|
+
import clsx from "../../utils/clsx";
|
|
3
|
+
import Group from "../Group";
|
|
4
|
+
const styles = {
|
|
5
|
+
variants: {
|
|
6
|
+
default: {
|
|
7
|
+
root: "bg-warn-100 dark:bg-warn-900",
|
|
8
|
+
icon: "text-warn-400",
|
|
9
|
+
title: "text-warn-800 dark:text-warn-400",
|
|
10
|
+
content: "text-warn-700 dark:text-warn-200",
|
|
11
|
+
},
|
|
12
|
+
error: {
|
|
13
|
+
root: "bg-error-100 dark:bg-error-900",
|
|
14
|
+
icon: "text-error-400 dark:text-error-300",
|
|
15
|
+
title: "text-error-800 dark:text-error-300",
|
|
16
|
+
content: "text-error-700 dark:text-error-200",
|
|
17
|
+
},
|
|
18
|
+
success: {
|
|
19
|
+
root: "bg-success-100 dark:bg-success-900",
|
|
20
|
+
icon: "text-success-400",
|
|
21
|
+
title: "text-success-800 dark:text-success-400",
|
|
22
|
+
content: "text-success-700 dark:text-success-200",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
const icons = {
|
|
27
|
+
default: ExclamationTriangleIcon,
|
|
28
|
+
error: XCircleIcon,
|
|
29
|
+
success: CheckCircleIcon,
|
|
30
|
+
};
|
|
31
|
+
export default function Alert({ variant = "default", title, children, className, actions, ...props }) {
|
|
32
|
+
const Icon = icons[variant];
|
|
33
|
+
return (<div className={clsx("rounded-md p-4", styles.variants[variant].root, className)} {...props}>
|
|
34
|
+
<div className="flex">
|
|
35
|
+
<div className="shrink-0">
|
|
36
|
+
<Icon className={clsx("h-5 w-5", styles.variants[variant].icon)} aria-hidden="true"/>
|
|
37
|
+
</div>
|
|
38
|
+
<div className="ml-3 flex w-full flex-col items-start justify-between sm:flex-row">
|
|
39
|
+
<div>
|
|
40
|
+
<h3 className={clsx("text-sm font-medium", styles.variants[variant].title)}>
|
|
41
|
+
{title}
|
|
42
|
+
</h3>
|
|
43
|
+
{children && (<div className={clsx("mt-2 text-sm", styles.variants[variant].content)}>
|
|
44
|
+
{children}
|
|
45
|
+
</div>)}
|
|
46
|
+
</div>
|
|
47
|
+
{actions && (<Group className={clsx("-mx-4 -mb-2 mt-1 sm:-mx-2 sm:-my-2", styles.variants[variant].content)}>
|
|
48
|
+
{actions}
|
|
49
|
+
</Group>)}
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>);
|
|
53
|
+
}
|