@majapisoftwares/ui 4.3.17 → 6.0.0
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/AGENTS.md +27 -0
- package/README.md +79 -0
- package/THIRD_PARTY_NOTICES.md +39 -0
- package/components.json +25 -0
- package/docs/MIGRATION-0.2.md +20 -0
- package/docs/MIGRATION-6.0.md +33 -0
- package/docs/NEXT-STARTER-VALIDATION.md +14 -0
- package/docs/STANDARDS.md +41 -0
- package/docs/VALIDATION.md +11 -0
- package/docs/VERSIONING.md +28 -0
- package/package.json +78 -2
- package/scripts/check-standards.mjs +41 -0
- package/src/components/ui/accordion.tsx +82 -0
- package/src/components/ui/alert-dialog.tsx +187 -0
- package/src/components/ui/alert.tsx +77 -0
- package/src/components/ui/avatar.tsx +108 -0
- package/src/components/ui/badge.tsx +55 -0
- package/src/components/ui/breadcrumb.tsx +125 -0
- package/src/components/ui/button-group.tsx +89 -0
- package/src/components/ui/button.tsx +59 -0
- package/src/components/ui/card.tsx +101 -0
- package/src/components/ui/checkbox.tsx +27 -0
- package/src/components/ui/collapsible.tsx +21 -0
- package/src/components/ui/context-menu.tsx +271 -0
- package/src/components/ui/dialog.tsx +161 -0
- package/src/components/ui/dropdown-menu.tsx +271 -0
- package/src/components/ui/empty.tsx +105 -0
- package/src/components/ui/field.tsx +238 -0
- package/src/components/ui/hover-card.tsx +50 -0
- package/src/components/ui/input-group.tsx +155 -0
- package/src/components/ui/input.tsx +21 -0
- package/src/components/ui/kbd.tsx +28 -0
- package/src/components/ui/label.tsx +19 -0
- package/src/components/ui/orb.css +1002 -0
- package/src/components/ui/orb.tsx +752 -0
- package/src/components/ui/popover.tsx +89 -0
- package/src/components/ui/progress.tsx +82 -0
- package/src/components/ui/radio-group.tsx +37 -0
- package/src/components/ui/scroll-area.tsx +54 -0
- package/src/components/ui/select.tsx +204 -0
- package/src/components/ui/separator.tsx +24 -0
- package/src/components/ui/sheet.tsx +139 -0
- package/src/components/ui/sidebar.tsx +1035 -0
- package/src/components/ui/skeleton.tsx +15 -0
- package/src/components/ui/slider.tsx +53 -0
- package/src/components/ui/sonner.tsx +44 -0
- package/src/components/ui/spinner.tsx +32 -0
- package/src/components/ui/switch.tsx +31 -0
- package/src/components/ui/table.tsx +121 -0
- package/src/components/ui/tabs.tsx +81 -0
- package/src/components/ui/textarea.tsx +19 -0
- package/src/components/ui/toggle-group.tsx +89 -0
- package/src/components/ui/toggle.tsx +44 -0
- package/src/components/ui/tooltip.tsx +65 -0
- package/src/hooks/use-mobile.ts +20 -0
- package/src/lib/i18n.tsx +109 -0
- package/src/lib/utils.ts +1 -0
- package/src/patterns/app-shell.tsx +175 -0
- package/src/patterns/data-table.tsx +2486 -0
- package/src/patterns/details-sheet.tsx +53 -0
- package/src/patterns/filter-tabs.tsx +53 -0
- package/src/patterns/majapi-logo.tsx +32 -0
- package/src/patterns/page-header.tsx +62 -0
- package/src/patterns/preferences.tsx +172 -0
- package/src/patterns/status-badge.tsx +24 -0
- package/src/styles.css +165 -0
- package/src/templates/admin-dashboard.tsx +44 -0
- package/src/templates/auth-layout.tsx +30 -0
- package/src/templates/login-form.tsx +129 -0
- package/src/templates/signup-form.tsx +177 -0
- package/base.css +0 -360
- package/bootstrap/AppProps.d.ts +0 -9
- package/bootstrap/AppProps.js +0 -1
- package/bootstrap/index.d.ts +0 -1
- package/bootstrap/index.js +0 -1
- package/bootstrap/modeScript.d.ts +0 -2
- package/bootstrap/modeScript.js +0 -35
- package/bootstrap/nprogress.d.ts +0 -1
- package/bootstrap/nprogress.js +0 -19
- package/bootstrap/scrolledScript.d.ts +0 -2
- package/bootstrap/scrolledScript.js +0 -27
- package/bootstrap/setupFocusManager.d.ts +0 -1
- package/bootstrap/setupFocusManager.js +0 -13
- package/bootstrap/suppressConsoleLog.d.ts +0 -1
- package/bootstrap/suppressConsoleLog.js +0 -8
- package/components/Accordion/Accordion.d.ts +0 -16
- package/components/Accordion/Accordion.jsx +0 -27
- package/components/Accordion/index.d.ts +0 -3
- package/components/Accordion/index.jsx +0 -3
- package/components/Alert/Alert.d.ts +0 -31
- package/components/Alert/Alert.jsx +0 -53
- package/components/Alert/index.d.ts +0 -3
- package/components/Alert/index.jsx +0 -3
- package/components/AntiClickjacking/AntiClickjacking.d.ts +0 -1
- package/components/AntiClickjacking/AntiClickjacking.jsx +0 -17
- package/components/AntiClickjacking/index.d.ts +0 -2
- package/components/AntiClickjacking/index.jsx +0 -2
- package/components/Aurora/Aurora.d.ts +0 -10
- package/components/Aurora/Aurora.jsx +0 -189
- package/components/Aurora/index.d.ts +0 -3
- package/components/Aurora/index.jsx +0 -3
- package/components/Autocomplete/Autocomplete.d.ts +0 -7
- package/components/Autocomplete/Autocomplete.jsx +0 -23
- package/components/Autocomplete/UnstyledAutocomplete.d.ts +0 -36
- package/components/Autocomplete/UnstyledAutocomplete.jsx +0 -72
- package/components/Autocomplete/index.d.ts +0 -5
- package/components/Autocomplete/index.jsx +0 -5
- package/components/BackgroundEffects/BottomBlurryPoint.d.ts +0 -3
- package/components/BackgroundEffects/BottomBlurryPoint.jsx +0 -14
- package/components/BackgroundEffects/TopBlurryPoint.d.ts +0 -3
- package/components/BackgroundEffects/TopBlurryPoint.jsx +0 -14
- package/components/Badge/Badge.d.ts +0 -42
- package/components/Badge/Badge.jsx +0 -51
- package/components/Badge/index.d.ts +0 -3
- package/components/Badge/index.jsx +0 -3
- package/components/Breadcrumbs/Breadcrumbs.d.ts +0 -20
- package/components/Breadcrumbs/Breadcrumbs.jsx +0 -42
- package/components/Breadcrumbs/index.d.ts +0 -3
- package/components/Breadcrumbs/index.jsx +0 -3
- package/components/Button/Button.d.ts +0 -111
- package/components/Button/Button.jsx +0 -129
- package/components/Button/UnstyledButton.d.ts +0 -10
- package/components/Button/UnstyledButton.jsx +0 -13
- package/components/Button/index.d.ts +0 -3
- package/components/Button/index.jsx +0 -3
- package/components/Carousel/Carousel.d.ts +0 -19
- package/components/Carousel/Carousel.jsx +0 -55
- package/components/Carousel/index.d.ts +0 -3
- package/components/Carousel/index.jsx +0 -3
- package/components/Checkbox/Checkbox.d.ts +0 -14
- package/components/Checkbox/Checkbox.jsx +0 -45
- package/components/Checkbox/index.d.ts +0 -3
- package/components/Checkbox/index.js +0 -3
- package/components/Code/Code.d.ts +0 -12
- package/components/Code/Code.jsx +0 -25
- package/components/Code/Json.d.ts +0 -5
- package/components/Code/Json.jsx +0 -7
- package/components/Code/index.d.ts +0 -4
- package/components/Code/index.jsx +0 -4
- package/components/ConfirmationButton/ConfirmationButton.d.ts +0 -17
- package/components/ConfirmationButton/ConfirmationButton.jsx +0 -13
- package/components/ConfirmationButton/index.d.ts +0 -3
- package/components/ConfirmationButton/index.jsx +0 -3
- package/components/ContextMenu/ContextMenu.d.ts +0 -28
- package/components/ContextMenu/ContextMenu.jsx +0 -70
- package/components/ContextMenu/index.d.ts +0 -3
- package/components/ContextMenu/index.jsx +0 -3
- package/components/CopyButton/CopyButton.d.ts +0 -7
- package/components/CopyButton/CopyButton.jsx +0 -29
- package/components/CopyButton/index.d.ts +0 -3
- package/components/CopyButton/index.jsx +0 -3
- package/components/DateInput/DateInput.d.ts +0 -6
- package/components/DateInput/DateInput.jsx +0 -19
- package/components/DateInput/DateTimeInput.d.ts +0 -3
- package/components/DateInput/DateTimeInput.jsx +0 -8
- package/components/DateInput/index.d.ts +0 -4
- package/components/DateInput/index.jsx +0 -4
- package/components/DateInput/useRefValue.d.ts +0 -5
- package/components/DateInput/useRefValue.js +0 -48
- package/components/DatePicker/DatePicker.d.ts +0 -19
- package/components/DatePicker/DatePicker.jsx +0 -55
- package/components/DatePicker/index.d.ts +0 -3
- package/components/DatePicker/index.jsx +0 -3
- package/components/DateRangePicker/DateRangePicker.d.ts +0 -16
- package/components/DateRangePicker/DateRangePicker.jsx +0 -56
- package/components/DateRangePicker/index.d.ts +0 -3
- package/components/DateRangePicker/index.jsx +0 -3
- package/components/Dialog/Dialog.d.ts +0 -25
- package/components/Dialog/Dialog.jsx +0 -35
- package/components/Dialog/Dialogs.d.ts +0 -1
- package/components/Dialog/Dialogs.jsx +0 -21
- package/components/Dialog/dialogs.state.d.ts +0 -21
- package/components/Dialog/dialogs.state.js +0 -40
- package/components/Dialog/index.d.ts +0 -6
- package/components/Dialog/index.jsx +0 -7
- package/components/Drawer/Drawer.d.ts +0 -15
- package/components/Drawer/Drawer.jsx +0 -72
- package/components/Drawer/index.d.ts +0 -3
- package/components/Drawer/index.jsx +0 -3
- package/components/DropdownMenu/DropdownMenu.d.ts +0 -33
- package/components/DropdownMenu/DropdownMenu.jsx +0 -74
- package/components/DropdownMenu/index.d.ts +0 -3
- package/components/DropdownMenu/index.jsx +0 -3
- package/components/ErrorBoundary/ErrorBoundary.d.ts +0 -18
- package/components/ErrorBoundary/ErrorBoundary.jsx +0 -32
- package/components/ErrorBoundary/index.d.ts +0 -3
- package/components/ErrorBoundary/index.jsx +0 -3
- package/components/ErrorPage/Error404Page.d.ts +0 -1
- package/components/ErrorPage/Error404Page.jsx +0 -4
- package/components/ErrorPage/Error500Page.d.ts +0 -1
- package/components/ErrorPage/Error500Page.jsx +0 -4
- package/components/ErrorPage/ErrorPage.d.ts +0 -11
- package/components/ErrorPage/ErrorPage.jsx +0 -23
- package/components/FileInput/FileInput.d.ts +0 -53
- package/components/FileInput/FileInput.jsx +0 -141
- package/components/FileInput/PreviewFile.d.ts +0 -18
- package/components/FileInput/PreviewFile.jsx +0 -54
- package/components/FileInput/index.d.ts +0 -3
- package/components/FileInput/index.jsx +0 -3
- package/components/FileInput/isImage.d.ts +0 -1
- package/components/FileInput/isImage.js +0 -10
- package/components/FileInput/isVideo.d.ts +0 -1
- package/components/FileInput/isVideo.js +0 -10
- package/components/FileSelect/FileSelect.d.ts +0 -31
- package/components/FileSelect/FileSelect.jsx +0 -146
- package/components/FileSelect/index.d.ts +0 -3
- package/components/FileSelect/index.jsx +0 -3
- package/components/Footer/Footer.d.ts +0 -19
- package/components/Footer/Footer.jsx +0 -30
- package/components/Footer/index.d.ts +0 -3
- package/components/Footer/index.jsx +0 -3
- package/components/GridPattern/GridPattern.d.ts +0 -2
- package/components/GridPattern/GridPattern.jsx +0 -12
- package/components/GridPattern/index.d.ts +0 -3
- package/components/GridPattern/index.jsx +0 -3
- package/components/Group/Group.d.ts +0 -5
- package/components/Group/Group.jsx +0 -6
- package/components/Group/index.d.ts +0 -3
- package/components/Group/index.jsx +0 -3
- package/components/Header/Header.d.ts +0 -5
- package/components/Header/Header.jsx +0 -19
- package/components/Header/index.d.ts +0 -3
- package/components/Header/index.jsx +0 -3
- package/components/ImageInput/ImageInput.d.ts +0 -4
- package/components/ImageInput/ImageInput.jsx +0 -8
- package/components/ImageInput/index.d.ts +0 -3
- package/components/ImageInput/index.jsx +0 -3
- package/components/Input/Input.d.ts +0 -14
- package/components/Input/Input.jsx +0 -57
- package/components/Input/InputIcon.d.ts +0 -9
- package/components/Input/InputIcon.jsx +0 -7
- package/components/Input/MultiSelectInput.d.ts +0 -16
- package/components/Input/MultiSelectInput.jsx +0 -48
- package/components/Input/NumericInput.d.ts +0 -6
- package/components/Input/NumericInput.jsx +0 -6
- package/components/Input/PatternInput.d.ts +0 -6
- package/components/Input/PatternInput.jsx +0 -6
- package/components/Input/SelectInput.d.ts +0 -12
- package/components/Input/SelectInput.jsx +0 -25
- package/components/Input/UnstyledInput.d.ts +0 -22
- package/components/Input/UnstyledInput.jsx +0 -28
- package/components/Input/index.d.ts +0 -6
- package/components/Input/index.jsx +0 -6
- package/components/Input/useInputRefValue.d.ts +0 -11
- package/components/Input/useInputRefValue.jsx +0 -51
- package/components/Input2/InputWrapper.d.ts +0 -11
- package/components/Input2/InputWrapper.jsx +0 -11
- package/components/Link/Link.d.ts +0 -3
- package/components/Link/Link.jsx +0 -9
- package/components/Link/index.d.ts +0 -3
- package/components/Link/index.jsx +0 -3
- package/components/Loading/Loading.d.ts +0 -5
- package/components/Loading/Loading.jsx +0 -15
- package/components/Loading/index.d.ts +0 -3
- package/components/Loading/index.jsx +0 -3
- package/components/Magnet/Magnet.d.ts +0 -13
- package/components/Magnet/Magnet.jsx +0 -50
- package/components/Magnet/index.d.ts +0 -3
- package/components/Magnet/index.jsx +0 -3
- package/components/Markdown/Markdown.d.ts +0 -8
- package/components/Markdown/Markdown.jsx +0 -11
- package/components/Markdown/index.d.ts +0 -3
- package/components/Markdown/index.jsx +0 -3
- package/components/Menu/Menu.d.ts +0 -28
- package/components/Menu/Menu.jsx +0 -54
- package/components/Modal/Modal.d.ts +0 -45
- package/components/Modal/Modal.jsx +0 -65
- package/components/Modal/index.d.ts +0 -4
- package/components/Modal/index.jsx +0 -4
- package/components/Modal/useModalState.d.ts +0 -6
- package/components/Modal/useModalState.js +0 -16
- package/components/ModeToggle/ModeToggle.d.ts +0 -9
- package/components/ModeToggle/ModeToggle.jsx +0 -12
- package/components/ModeToggle/index.d.ts +0 -4
- package/components/ModeToggle/index.jsx +0 -5
- package/components/ModeToggle/useModeToggle.d.ts +0 -1
- package/components/ModeToggle/useModeToggle.js +0 -21
- package/components/MultiSelect/MultiSelect.d.ts +0 -28
- package/components/MultiSelect/MultiSelect.jsx +0 -116
- package/components/MultiSelect/MultiSelectInput.d.ts +0 -12
- package/components/MultiSelect/MultiSelectInput.jsx +0 -27
- package/components/MultiSelect/index.d.ts +0 -5
- package/components/MultiSelect/index.jsx +0 -5
- package/components/MultiText/MultiText.d.ts +0 -23
- package/components/MultiText/MultiText.jsx +0 -118
- package/components/MultiText/index.d.ts +0 -3
- package/components/MultiText/index.jsx +0 -3
- package/components/NavigationDrawer/NavigationDrawer.d.ts +0 -9
- package/components/NavigationDrawer/NavigationDrawer.jsx +0 -29
- package/components/NavigationDrawer/NavigationItem.d.ts +0 -13
- package/components/NavigationDrawer/NavigationItem.jsx +0 -24
- package/components/NavigationDrawer/index.d.ts +0 -6
- package/components/NavigationDrawer/index.jsx +0 -6
- package/components/NavigationDrawer/navigationDrawer.state.d.ts +0 -9
- package/components/NavigationDrawer/navigationDrawer.state.js +0 -19
- package/components/NoSsr/NoSsr.d.ts +0 -4
- package/components/NoSsr/NoSsr.jsx +0 -8
- package/components/NoSsr/index.d.ts +0 -3
- package/components/NoSsr/index.jsx +0 -3
- package/components/Noise/Noise.d.ts +0 -11
- package/components/Noise/Noise.jsx +0 -69
- package/components/Noise/index.d.ts +0 -3
- package/components/Noise/index.jsx +0 -3
- package/components/Notifications/Notifications.d.ts +0 -3
- package/components/Notifications/Notifications.jsx +0 -60
- package/components/Notifications/index.d.ts +0 -5
- package/components/Notifications/index.jsx +0 -6
- package/components/Notifications/notifications.state.d.ts +0 -24
- package/components/Notifications/notifications.state.js +0 -41
- package/components/Orb/Orb.d.ts +0 -8
- package/components/Orb/Orb.jsx +0 -258
- package/components/Orb/index.d.ts +0 -3
- package/components/Orb/index.jsx +0 -3
- package/components/Pagination/Pagination.d.ts +0 -13
- package/components/Pagination/Pagination.jsx +0 -64
- package/components/Pagination/index.d.ts +0 -3
- package/components/Pagination/index.jsx +0 -3
- package/components/Particles/Particles.d.ts +0 -18
- package/components/Particles/Particles.jsx +0 -205
- package/components/Particles/index.d.ts +0 -3
- package/components/Particles/index.jsx +0 -3
- package/components/PictureCropInput/PictureCropInput.d.ts +0 -20
- package/components/PictureCropInput/PictureCropInput.jsx +0 -174
- package/components/PictureCropInput/canvasPreview.d.ts +0 -2
- package/components/PictureCropInput/canvasPreview.js +0 -37
- package/components/PictureCropInput/index.d.ts +0 -3
- package/components/PictureCropInput/index.js +0 -3
- package/components/Popover/Popover.d.ts +0 -13
- package/components/Popover/Popover.jsx +0 -22
- package/components/Popover/index.d.ts +0 -3
- package/components/Popover/index.jsx +0 -3
- package/components/Resizable/Resizable.d.ts +0 -12
- package/components/Resizable/Resizable.jsx +0 -54
- package/components/Resizable/index.d.ts +0 -3
- package/components/Resizable/index.jsx +0 -3
- package/components/ScrollArea/ScrollArea.d.ts +0 -9
- package/components/ScrollArea/ScrollArea.jsx +0 -16
- package/components/ScrollArea/index.d.ts +0 -3
- package/components/ScrollArea/index.jsx +0 -3
- package/components/Select/Select.d.ts +0 -25
- package/components/Select/Select.jsx +0 -55
- package/components/Select/index.d.ts +0 -3
- package/components/Select/index.jsx +0 -3
- package/components/Skeleton/Skeleton.d.ts +0 -2
- package/components/Skeleton/Skeleton.jsx +0 -8
- package/components/Skeleton/index.d.ts +0 -3
- package/components/Skeleton/index.jsx +0 -3
- package/components/Slider/Slider.d.ts +0 -10
- package/components/Slider/Slider.jsx +0 -21
- package/components/Slider/index.d.ts +0 -3
- package/components/Slider/index.jsx +0 -3
- package/components/Spotlight/Spotlight.d.ts +0 -30
- package/components/Spotlight/Spotlight.jsx +0 -86
- package/components/Spotlight/index.d.ts +0 -3
- package/components/Spotlight/index.jsx +0 -3
- package/components/SpotlightCard/SpotlightCard.d.ts +0 -7
- package/components/SpotlightCard/SpotlightCard.jsx +0 -35
- package/components/SpotlightCard/index.d.ts +0 -3
- package/components/SpotlightCard/index.jsx +0 -3
- package/components/Stack/Stack.d.ts +0 -4
- package/components/Stack/Stack.jsx +0 -5
- package/components/Stack/index.d.ts +0 -3
- package/components/Stack/index.jsx +0 -3
- package/components/StarBorder/StarBorder.d.ts +0 -10
- package/components/StarBorder/StarBorder.jsx +0 -19
- package/components/StarBorder/index.d.ts +0 -3
- package/components/StarBorder/index.jsx +0 -3
- package/components/Switch/Switch.d.ts +0 -16
- package/components/Switch/Switch.jsx +0 -24
- package/components/Switch/index.d.ts +0 -3
- package/components/Switch/index.jsx +0 -3
- package/components/Table/DataTable.d.ts +0 -57
- package/components/Table/DataTable.jsx +0 -155
- package/components/Table/Table.d.ts +0 -27
- package/components/Table/Table.jsx +0 -31
- package/components/Table/TableActionButton.d.ts +0 -6
- package/components/Table/TableActionButton.jsx +0 -20
- package/components/Table/TableBody.d.ts +0 -6
- package/components/Table/TableBody.jsx +0 -10
- package/components/Table/TableCell.d.ts +0 -9
- package/components/Table/TableCell.jsx +0 -18
- package/components/Table/TableFooter.d.ts +0 -5
- package/components/Table/TableFooter.jsx +0 -5
- package/components/Table/TableFooterWithPagination.d.ts +0 -13
- package/components/Table/TableFooterWithPagination.jsx +0 -57
- package/components/Table/TableHead.d.ts +0 -5
- package/components/Table/TableHead.jsx +0 -9
- package/components/Table/TableHeadContext.d.ts +0 -4
- package/components/Table/TableHeadContext.jsx +0 -3
- package/components/Table/TableHeader.d.ts +0 -7
- package/components/Table/TableHeader.jsx +0 -15
- package/components/Table/TableRow.d.ts +0 -8
- package/components/Table/TableRow.jsx +0 -9
- package/components/Table/index.d.ts +0 -3
- package/components/Table/index.jsx +0 -3
- package/components/Tabs/Tabs.d.ts +0 -9
- package/components/Tabs/Tabs.jsx +0 -13
- package/components/Tabs/index.d.ts +0 -3
- package/components/Tabs/index.jsx +0 -3
- package/components/TabsSwitcher/Tab.d.ts +0 -15
- package/components/TabsSwitcher/Tab.jsx +0 -18
- package/components/TabsSwitcher/TabsSwitcher.d.ts +0 -22
- package/components/TabsSwitcher/TabsSwitcher.jsx +0 -31
- package/components/TabsSwitcher/index.d.ts +0 -4
- package/components/TabsSwitcher/index.jsx +0 -4
- package/components/Text/Text.d.ts +0 -24
- package/components/Text/Text.jsx +0 -29
- package/components/Text/index.d.ts +0 -3
- package/components/Text/index.jsx +0 -3
- package/components/Textarea/Textarea.d.ts +0 -5
- package/components/Textarea/Textarea.jsx +0 -6
- package/components/Textarea/index.d.ts +0 -3
- package/components/Textarea/index.js +0 -3
- package/components/Threads/Threads.d.ts +0 -9
- package/components/Threads/Threads.jsx +0 -203
- package/components/Threads/index.d.ts +0 -3
- package/components/Threads/index.jsx +0 -3
- package/components/Tooltip/Tooltip.d.ts +0 -11
- package/components/Tooltip/Tooltip.jsx +0 -21
- package/components/Tooltip/index.d.ts +0 -3
- package/components/Tooltip/index.jsx +0 -3
- package/components/VisibilityActivatedButton/VisibilityActivatedButton.d.ts +0 -7
- package/components/VisibilityActivatedButton/VisibilityActivatedButton.jsx +0 -18
- package/components/VisibilityActivatedButton/index.d.ts +0 -3
- package/components/VisibilityActivatedButton/index.jsx +0 -3
- package/form.d.ts +0 -82
- package/form.js +0 -113
- package/form2.d.ts +0 -15
- package/form2.jsx +0 -30
- package/hooks/useBeforeUnload.d.ts +0 -1
- package/hooks/useBeforeUnload.js +0 -17
- package/hooks/useDebounceEffect.d.ts +0 -2
- package/hooks/useDebounceEffect.js +0 -14
- package/hooks/useDebouncedValue.d.ts +0 -2
- package/hooks/useDebouncedValue.js +0 -14
- package/hooks/useLagRadar.d.ts +0 -1
- package/hooks/useLagRadar.jsx +0 -124
- package/hooks/useMediaQuery.d.ts +0 -1
- package/hooks/useMediaQuery.js +0 -37
- package/hooks/useMutationWindowCloseProtection.d.ts +0 -2
- package/hooks/useMutationWindowCloseProtection.js +0 -13
- package/hooks/useScroll.d.ts +0 -3
- package/hooks/useScroll.js +0 -47
- package/hooks/useTranslation.d.ts +0 -4
- package/hooks/useTranslation.js +0 -11
- package/hooks/useWhyDidYouUpdate.d.ts +0 -3
- package/hooks/useWhyDidYouUpdate.js +0 -44
- package/imgur.d.ts +0 -1
- package/imgur.js +0 -13
- package/styles/DayPicker.classNames.d.ts +0 -29
- package/styles/DayPicker.classNames.js +0 -30
- package/styles/DayPicker.classNames.ts +0 -81
- package/styles/Dropdown.classNames.d.ts +0 -6
- package/styles/Dropdown.classNames.js +0 -7
- package/styles/Dropdown.classNames.ts +0 -38
- package/styles/Input.css +0 -23
- package/styles/Modal.classNames.d.ts +0 -2
- package/styles/Modal.classNames.js +0 -3
- package/styles/Modal.classNames.ts +0 -15
- package/styles/MultiText.css +0 -40
- package/styles/Pagination.css +0 -19
- package/styles/Tabs.css +0 -23
- package/tsconfig.tsbuildinfo +0 -1
- package/types.d.ts +0 -6
- package/types.js +0 -1
- package/utils/UseState.d.ts +0 -2
- package/utils/UseState.js +0 -1
- package/utils/blobToText.d.ts +0 -1
- package/utils/blobToText.js +0 -13
- package/utils/capitalize.d.ts +0 -1
- package/utils/capitalize.js +0 -6
- package/utils/clsx.d.ts +0 -2
- package/utils/clsx.js +0 -5
- package/utils/copy2DToClipboard.d.ts +0 -1
- package/utils/copy2DToClipboard.js +0 -44
- package/utils/cpfCpnjUtils.d.ts +0 -3
- package/utils/cpfCpnjUtils.js +0 -43
- package/utils/createLocalStorageStateHydration.d.ts +0 -1
- package/utils/createLocalStorageStateHydration.js +0 -18
- package/utils/createStateHydration.d.ts +0 -3
- package/utils/createStateHydration.js +0 -49
- package/utils/csvBlobToJson.d.ts +0 -2
- package/utils/csvBlobToJson.js +0 -59
- package/utils/downloadArrayAsCSV.d.ts +0 -1
- package/utils/downloadArrayAsCSV.js +0 -34
- package/utils/emailRegExp.d.ts +0 -2
- package/utils/emailRegExp.js +0 -2
- package/utils/fakeArray.d.ts +0 -1
- package/utils/fakeArray.js +0 -3
- package/utils/filterBoolean.d.ts +0 -1
- package/utils/filterBoolean.js +0 -3
- package/utils/formatClock.d.ts +0 -1
- package/utils/formatClock.js +0 -21
- package/utils/getInitials.d.ts +0 -4
- package/utils/getInitials.js +0 -22
- package/utils/isBrowser.d.ts +0 -12
- package/utils/isBrowser.js +0 -26
- package/utils/ms.d.ts +0 -6
- package/utils/ms.js +0 -31
- package/utils/preventDefault.d.ts +0 -2
- package/utils/preventDefault.js +0 -3
- package/utils/recursiveChildrenMap.d.ts +0 -2
- package/utils/recursiveChildrenMap.js +0 -16
- package/utils/setSelectionRange.d.ts +0 -1
- package/utils/setSelectionRange.js +0 -55
- package/utils/smoothScrollToHref.d.ts +0 -2
- package/utils/smoothScrollToHref.js +0 -14
- package/utils/stopPropagation.d.ts +0 -2
- package/utils/stopPropagation.js +0 -3
- package/utils/stripHtml.d.ts +0 -1
- package/utils/stripHtml.js +0 -4
- package/utils/stripLineBreak.d.ts +0 -1
- package/utils/stripLineBreak.js +0 -4
- package/utils/stripMarkdown.d.ts +0 -1
- package/utils/stripMarkdown.js +0 -28
- package/utils/xlsxBlobToJson.d.ts +0 -2
- package/utils/xlsxBlobToJson.js +0 -62
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useId, type ReactNode } from "react";
|
|
4
|
+
import { Button } from "../components/ui/button";
|
|
5
|
+
import { Input } from "../components/ui/input";
|
|
6
|
+
import { Field, FieldGroup, FieldLabel } from "../components/ui/field";
|
|
7
|
+
import { Alert, AlertDescription } from "../components/ui/alert";
|
|
8
|
+
import {
|
|
9
|
+
Card,
|
|
10
|
+
CardContent,
|
|
11
|
+
CardDescription,
|
|
12
|
+
CardHeader,
|
|
13
|
+
CardTitle,
|
|
14
|
+
} from "../components/ui/card";
|
|
15
|
+
import { defineMessages, useMessages } from "../lib/i18n";
|
|
16
|
+
|
|
17
|
+
const messages = defineMessages({
|
|
18
|
+
en: {
|
|
19
|
+
title: "Welcome back",
|
|
20
|
+
email: "Email",
|
|
21
|
+
password: "Password",
|
|
22
|
+
submit: "Log in",
|
|
23
|
+
pending: "Logging in…",
|
|
24
|
+
},
|
|
25
|
+
"pt-BR": {
|
|
26
|
+
title: "Bem-vindo de volta",
|
|
27
|
+
email: "E-mail",
|
|
28
|
+
password: "Senha",
|
|
29
|
+
submit: "Entrar",
|
|
30
|
+
pending: "Entrando…",
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export interface LoginValues {
|
|
35
|
+
email: string;
|
|
36
|
+
password: string;
|
|
37
|
+
}
|
|
38
|
+
export interface LoginFormProps {
|
|
39
|
+
onSubmit: (values: LoginValues) => void;
|
|
40
|
+
pending?: boolean;
|
|
41
|
+
error?: string;
|
|
42
|
+
title?: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
submitLabel?: string;
|
|
45
|
+
/** Shown next to the password label, e.g. a "Forgot password?" link. */
|
|
46
|
+
recovery?: ReactNode;
|
|
47
|
+
/** Shown above the fields, e.g. OAuth buttons. */
|
|
48
|
+
alternative?: ReactNode;
|
|
49
|
+
footer?: ReactNode;
|
|
50
|
+
}
|
|
51
|
+
export function LoginForm({
|
|
52
|
+
onSubmit,
|
|
53
|
+
pending = false,
|
|
54
|
+
error,
|
|
55
|
+
title,
|
|
56
|
+
description,
|
|
57
|
+
submitLabel,
|
|
58
|
+
recovery,
|
|
59
|
+
alternative,
|
|
60
|
+
footer,
|
|
61
|
+
}: LoginFormProps) {
|
|
62
|
+
const id = useId();
|
|
63
|
+
const t = useMessages(messages);
|
|
64
|
+
return (
|
|
65
|
+
<Card>
|
|
66
|
+
<CardHeader className="text-center">
|
|
67
|
+
<CardTitle className="text-xl">{title ?? t.title}</CardTitle>
|
|
68
|
+
{description ? <CardDescription>{description}</CardDescription> : null}
|
|
69
|
+
</CardHeader>
|
|
70
|
+
<CardContent>
|
|
71
|
+
<form
|
|
72
|
+
aria-busy={pending}
|
|
73
|
+
onSubmit={(event) => {
|
|
74
|
+
event.preventDefault();
|
|
75
|
+
const data = new FormData(event.currentTarget);
|
|
76
|
+
onSubmit({
|
|
77
|
+
email: String(data.get("email") ?? ""),
|
|
78
|
+
password: String(data.get("password") ?? ""),
|
|
79
|
+
});
|
|
80
|
+
}}
|
|
81
|
+
>
|
|
82
|
+
<FieldGroup>
|
|
83
|
+
{alternative}
|
|
84
|
+
{error ? (
|
|
85
|
+
<Alert variant="destructive">
|
|
86
|
+
<AlertDescription>{error}</AlertDescription>
|
|
87
|
+
</Alert>
|
|
88
|
+
) : null}
|
|
89
|
+
<Field>
|
|
90
|
+
<FieldLabel htmlFor={`${id}-email`}>{t.email}</FieldLabel>
|
|
91
|
+
<Input
|
|
92
|
+
id={`${id}-email`}
|
|
93
|
+
name="email"
|
|
94
|
+
type="email"
|
|
95
|
+
autoComplete="username"
|
|
96
|
+
required
|
|
97
|
+
disabled={pending}
|
|
98
|
+
/>
|
|
99
|
+
</Field>
|
|
100
|
+
<Field>
|
|
101
|
+
<div className="flex items-center">
|
|
102
|
+
<FieldLabel htmlFor={`${id}-password`}>{t.password}</FieldLabel>
|
|
103
|
+
{recovery ? (
|
|
104
|
+
<div className="ml-auto text-sm">{recovery}</div>
|
|
105
|
+
) : null}
|
|
106
|
+
</div>
|
|
107
|
+
<Input
|
|
108
|
+
id={`${id}-password`}
|
|
109
|
+
name="password"
|
|
110
|
+
type="password"
|
|
111
|
+
autoComplete="current-password"
|
|
112
|
+
required
|
|
113
|
+
disabled={pending}
|
|
114
|
+
/>
|
|
115
|
+
</Field>
|
|
116
|
+
<Button type="submit" disabled={pending}>
|
|
117
|
+
{pending ? t.pending : (submitLabel ?? t.submit)}
|
|
118
|
+
</Button>
|
|
119
|
+
{footer ? (
|
|
120
|
+
<div className="text-center text-sm text-muted-foreground">
|
|
121
|
+
{footer}
|
|
122
|
+
</div>
|
|
123
|
+
) : null}
|
|
124
|
+
</FieldGroup>
|
|
125
|
+
</form>
|
|
126
|
+
</CardContent>
|
|
127
|
+
</Card>
|
|
128
|
+
);
|
|
129
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useId, useState, type ReactNode } from "react";
|
|
4
|
+
import { Button } from "../components/ui/button";
|
|
5
|
+
import { Input } from "../components/ui/input";
|
|
6
|
+
import {
|
|
7
|
+
Field,
|
|
8
|
+
FieldDescription,
|
|
9
|
+
FieldGroup,
|
|
10
|
+
FieldLabel,
|
|
11
|
+
} from "../components/ui/field";
|
|
12
|
+
import { Alert, AlertDescription } from "../components/ui/alert";
|
|
13
|
+
import {
|
|
14
|
+
Card,
|
|
15
|
+
CardContent,
|
|
16
|
+
CardDescription,
|
|
17
|
+
CardHeader,
|
|
18
|
+
CardTitle,
|
|
19
|
+
} from "../components/ui/card";
|
|
20
|
+
import { defineMessages, useMessages } from "../lib/i18n";
|
|
21
|
+
|
|
22
|
+
const messages = defineMessages({
|
|
23
|
+
en: {
|
|
24
|
+
title: "Create an account",
|
|
25
|
+
name: "Name",
|
|
26
|
+
email: "Email",
|
|
27
|
+
password: "Password",
|
|
28
|
+
confirm: "Confirm password",
|
|
29
|
+
minLength: (n: number) => `At least ${n} characters.`,
|
|
30
|
+
mismatch: "Passwords don't match.",
|
|
31
|
+
submit: "Create account",
|
|
32
|
+
pending: "Creating account…",
|
|
33
|
+
},
|
|
34
|
+
"pt-BR": {
|
|
35
|
+
title: "Criar conta",
|
|
36
|
+
name: "Nome",
|
|
37
|
+
email: "E-mail",
|
|
38
|
+
password: "Senha",
|
|
39
|
+
confirm: "Confirmar senha",
|
|
40
|
+
minLength: (n: number) => `Pelo menos ${n} caracteres.`,
|
|
41
|
+
mismatch: "As senhas não coincidem.",
|
|
42
|
+
submit: "Criar conta",
|
|
43
|
+
pending: "Criando conta…",
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export interface SignupValues {
|
|
48
|
+
name: string;
|
|
49
|
+
email: string;
|
|
50
|
+
password: string;
|
|
51
|
+
}
|
|
52
|
+
export interface SignupFormProps {
|
|
53
|
+
onSubmit: (values: SignupValues) => void;
|
|
54
|
+
pending?: boolean;
|
|
55
|
+
error?: string;
|
|
56
|
+
title?: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
submitLabel?: string;
|
|
59
|
+
minPasswordLength?: number;
|
|
60
|
+
terms?: ReactNode;
|
|
61
|
+
footer?: ReactNode;
|
|
62
|
+
}
|
|
63
|
+
export function SignupForm({
|
|
64
|
+
onSubmit,
|
|
65
|
+
pending = false,
|
|
66
|
+
error,
|
|
67
|
+
title,
|
|
68
|
+
description,
|
|
69
|
+
submitLabel,
|
|
70
|
+
minPasswordLength = 12,
|
|
71
|
+
terms,
|
|
72
|
+
footer,
|
|
73
|
+
}: SignupFormProps) {
|
|
74
|
+
const id = useId(),
|
|
75
|
+
t = useMessages(messages),
|
|
76
|
+
[mismatch, setMismatch] = useState(false);
|
|
77
|
+
return (
|
|
78
|
+
<Card>
|
|
79
|
+
<CardHeader className="text-center">
|
|
80
|
+
<CardTitle className="text-xl">{title ?? t.title}</CardTitle>
|
|
81
|
+
{description ? <CardDescription>{description}</CardDescription> : null}
|
|
82
|
+
</CardHeader>
|
|
83
|
+
<CardContent>
|
|
84
|
+
<form
|
|
85
|
+
aria-busy={pending}
|
|
86
|
+
onSubmit={(event) => {
|
|
87
|
+
event.preventDefault();
|
|
88
|
+
const data = new FormData(event.currentTarget);
|
|
89
|
+
const password = String(data.get("password") ?? "");
|
|
90
|
+
if (password !== String(data.get("confirmPassword") ?? "")) {
|
|
91
|
+
setMismatch(true);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
setMismatch(false);
|
|
95
|
+
onSubmit({
|
|
96
|
+
name: String(data.get("name") ?? ""),
|
|
97
|
+
email: String(data.get("email") ?? ""),
|
|
98
|
+
password,
|
|
99
|
+
});
|
|
100
|
+
}}
|
|
101
|
+
>
|
|
102
|
+
<FieldGroup>
|
|
103
|
+
{error ? (
|
|
104
|
+
<Alert variant="destructive">
|
|
105
|
+
<AlertDescription>{error}</AlertDescription>
|
|
106
|
+
</Alert>
|
|
107
|
+
) : null}
|
|
108
|
+
<Field>
|
|
109
|
+
<FieldLabel htmlFor={`${id}-name`}>{t.name}</FieldLabel>
|
|
110
|
+
<Input
|
|
111
|
+
id={`${id}-name`}
|
|
112
|
+
name="name"
|
|
113
|
+
autoComplete="name"
|
|
114
|
+
required
|
|
115
|
+
disabled={pending}
|
|
116
|
+
/>
|
|
117
|
+
</Field>
|
|
118
|
+
<Field>
|
|
119
|
+
<FieldLabel htmlFor={`${id}-email`}>{t.email}</FieldLabel>
|
|
120
|
+
<Input
|
|
121
|
+
id={`${id}-email`}
|
|
122
|
+
name="email"
|
|
123
|
+
type="email"
|
|
124
|
+
autoComplete="email"
|
|
125
|
+
required
|
|
126
|
+
disabled={pending}
|
|
127
|
+
/>
|
|
128
|
+
</Field>
|
|
129
|
+
<Field>
|
|
130
|
+
<FieldLabel htmlFor={`${id}-password`}>{t.password}</FieldLabel>
|
|
131
|
+
<Input
|
|
132
|
+
id={`${id}-password`}
|
|
133
|
+
name="password"
|
|
134
|
+
type="password"
|
|
135
|
+
autoComplete="new-password"
|
|
136
|
+
required
|
|
137
|
+
minLength={minPasswordLength}
|
|
138
|
+
disabled={pending}
|
|
139
|
+
/>
|
|
140
|
+
<FieldDescription>
|
|
141
|
+
{t.minLength(minPasswordLength)}
|
|
142
|
+
</FieldDescription>
|
|
143
|
+
</Field>
|
|
144
|
+
<Field data-invalid={mismatch || undefined}>
|
|
145
|
+
<FieldLabel htmlFor={`${id}-confirm`}>{t.confirm}</FieldLabel>
|
|
146
|
+
<Input
|
|
147
|
+
id={`${id}-confirm`}
|
|
148
|
+
name="confirmPassword"
|
|
149
|
+
type="password"
|
|
150
|
+
autoComplete="new-password"
|
|
151
|
+
required
|
|
152
|
+
aria-invalid={mismatch || undefined}
|
|
153
|
+
aria-describedby={mismatch ? `${id}-mismatch` : undefined}
|
|
154
|
+
disabled={pending}
|
|
155
|
+
onChange={() => setMismatch(false)}
|
|
156
|
+
/>
|
|
157
|
+
{mismatch ? (
|
|
158
|
+
<FieldDescription id={`${id}-mismatch`} role="alert">
|
|
159
|
+
{t.mismatch}
|
|
160
|
+
</FieldDescription>
|
|
161
|
+
) : null}
|
|
162
|
+
</Field>
|
|
163
|
+
{terms ? <FieldDescription>{terms}</FieldDescription> : null}
|
|
164
|
+
<Button type="submit" disabled={pending}>
|
|
165
|
+
{pending ? t.pending : (submitLabel ?? t.submit)}
|
|
166
|
+
</Button>
|
|
167
|
+
{footer ? (
|
|
168
|
+
<div className="text-center text-sm text-muted-foreground">
|
|
169
|
+
{footer}
|
|
170
|
+
</div>
|
|
171
|
+
) : null}
|
|
172
|
+
</FieldGroup>
|
|
173
|
+
</form>
|
|
174
|
+
</CardContent>
|
|
175
|
+
</Card>
|
|
176
|
+
);
|
|
177
|
+
}
|
package/base.css
DELETED
|
@@ -1,360 +0,0 @@
|
|
|
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
|
-
@source "..";
|
|
7
|
-
|
|
8
|
-
@custom-variant dark (&:where(.dark, .dark *));
|
|
9
|
-
@custom-variant not-dark (html:not(.dark) &);
|
|
10
|
-
@custom-variant scrolled (html.scrolled &);
|
|
11
|
-
@custom-variant not-scrolled (html:not(.scrolled) &);
|
|
12
|
-
@custom-variant touch (html.touch &);
|
|
13
|
-
@plugin "@tailwindcss/typography";
|
|
14
|
-
@plugin "@tailwindcss/forms";
|
|
15
|
-
|
|
16
|
-
body.ui-theme-default {
|
|
17
|
-
@apply flex h-full flex-col
|
|
18
|
-
bg-zinc-50 text-zinc-950
|
|
19
|
-
dark:bg-zinc-950 dark:text-zinc-50
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
button {
|
|
23
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.prose input[type=checkbox], .prose input[type=radio], .ui-checkbox[type=checkbox], .ui-checkbox[type=radio] {
|
|
27
|
-
@apply h-4 w-4 transition-colors
|
|
28
|
-
|
|
29
|
-
border-zinc-300 text-primary-500 ring-offset-zinc-100
|
|
30
|
-
dark:border-zinc-600 dark:bg-zinc-900 dark:ring-offset-zinc-900
|
|
31
|
-
|
|
32
|
-
hover:bg-zinc-100 hover:checked:bg-primary-400
|
|
33
|
-
dark:hover:bg-zinc-800
|
|
34
|
-
|
|
35
|
-
checked:border-primary-500
|
|
36
|
-
dark:checked:bg-primary-500 dark:checked:border-primary-500
|
|
37
|
-
|
|
38
|
-
focus:outline-hidden focus:ring-primary-500 focus:ring-2
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.prose input[type=checkbox], .ui-checkbox[type=checkbox] {
|
|
42
|
-
@apply rounded-sm;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.prose input[type=radio], .ui-checkbox[type=radio] {
|
|
46
|
-
@apply rounded-full;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
#__next {
|
|
50
|
-
height: 100%;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
input[type="datetime-local"]::-webkit-date-and-time-value,
|
|
54
|
-
input[type="date"]::-webkit-date-and-time-value,
|
|
55
|
-
input[type="time"]::-webkit-date-and-time-value {
|
|
56
|
-
text-align: left;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
|
|
60
|
-
input[type="date"]::-webkit-calendar-picker-indicator,
|
|
61
|
-
input[type="time"]::-webkit-calendar-picker-indicator {
|
|
62
|
-
color: transparent;
|
|
63
|
-
background: none;
|
|
64
|
-
z-index: 1;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
input[type="checkbox"]:indeterminate {
|
|
68
|
-
@apply dark:bg-primary-500 dark:border-primary-500
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@page {
|
|
72
|
-
margin: 0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.tsqd-parent-container {
|
|
76
|
-
pointer-events: auto;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@media print {
|
|
80
|
-
.tsqd-parent-container {
|
|
81
|
-
display: none;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**/
|
|
86
|
-
|
|
87
|
-
@theme {
|
|
88
|
-
--color-primary-50: oklch(0.977 0.013 236.62);
|
|
89
|
-
--color-primary-100: oklch(0.951 0.026 236.824);
|
|
90
|
-
--color-primary-200: oklch(0.901 0.058 230.902);
|
|
91
|
-
--color-primary-300: oklch(0.828 0.111 230.318);
|
|
92
|
-
--color-primary-400: oklch(0.746 0.16 232.661);
|
|
93
|
-
--color-primary-500: oklch(0.685 0.169 237.323);
|
|
94
|
-
--color-primary-600: oklch(0.588 0.158 241.966);
|
|
95
|
-
--color-primary-700: oklch(0.5 0.134 242.749);
|
|
96
|
-
--color-primary-800: oklch(0.443 0.11 240.79);
|
|
97
|
-
--color-primary-900: oklch(0.391 0.09 240.876);
|
|
98
|
-
--color-primary-950: oklch(0.293 0.066 243.157);
|
|
99
|
-
|
|
100
|
-
--color-on-primary: #fff;
|
|
101
|
-
|
|
102
|
-
--color-success-50: oklch(0.982 0.018 155.826);
|
|
103
|
-
--color-success-100: oklch(0.962 0.044 156.743);
|
|
104
|
-
--color-success-200: oklch(0.925 0.084 155.995);
|
|
105
|
-
--color-success-300: oklch(0.871 0.15 154.449);
|
|
106
|
-
--color-success-400: oklch(0.792 0.209 151.711);
|
|
107
|
-
--color-success-500: oklch(0.723 0.219 149.579);
|
|
108
|
-
--color-success-600: oklch(0.627 0.194 149.214);
|
|
109
|
-
--color-success-700: oklch(0.527 0.154 150.069);
|
|
110
|
-
--color-success-800: oklch(0.448 0.119 151.328);
|
|
111
|
-
--color-success-900: oklch(0.393 0.095 152.535);
|
|
112
|
-
--color-success-950: oklch(0.266 0.065 152.934);
|
|
113
|
-
|
|
114
|
-
--color-error-50: oklch(0.971 0.013 17.38);
|
|
115
|
-
--color-error-100: oklch(0.936 0.032 17.717);
|
|
116
|
-
--color-error-200: oklch(0.885 0.062 18.334);
|
|
117
|
-
--color-error-300: oklch(0.808 0.114 19.571);
|
|
118
|
-
--color-error-400: oklch(0.704 0.191 22.216);
|
|
119
|
-
--color-error-500: oklch(0.637 0.237 25.331);
|
|
120
|
-
--color-error-600: oklch(0.577 0.245 27.325);
|
|
121
|
-
--color-error-700: oklch(0.505 0.213 27.518);
|
|
122
|
-
--color-error-800: oklch(0.444 0.177 26.899);
|
|
123
|
-
--color-error-900: oklch(0.396 0.141 25.723);
|
|
124
|
-
--color-error-950: oklch(0.258 0.092 26.042);
|
|
125
|
-
|
|
126
|
-
--color-warn-50: oklch(0.987 0.026 102.212);
|
|
127
|
-
--color-warn-100: oklch(0.973 0.071 103.193);
|
|
128
|
-
--color-warn-200: oklch(0.945 0.129 101.54);
|
|
129
|
-
--color-warn-300: oklch(0.905 0.182 98.111);
|
|
130
|
-
--color-warn-400: oklch(0.852 0.199 91.936);
|
|
131
|
-
--color-warn-500: oklch(0.795 0.184 86.047);
|
|
132
|
-
--color-warn-600: oklch(0.681 0.162 75.834);
|
|
133
|
-
--color-warn-700: oklch(0.554 0.135 66.442);
|
|
134
|
-
--color-warn-800: oklch(0.476 0.114 61.907);
|
|
135
|
-
--color-warn-900: oklch(0.421 0.095 57.708);
|
|
136
|
-
--color-warn-950: oklch(0.286 0.066 53.813);
|
|
137
|
-
|
|
138
|
-
--color-current: currentColor;
|
|
139
|
-
|
|
140
|
-
--font-sans: 'Inter Variable', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
|
|
141
|
-
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
142
|
-
|
|
143
|
-
--font-weight-inherit: inherit;
|
|
144
|
-
|
|
145
|
-
--animate-slide-down-and-fade: slideDownAndFade 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
146
|
-
--animate-slide-left-and-fade: slideLeftAndFade 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
147
|
-
--animate-slide-up-and-fade: slideUpAndFade 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
148
|
-
--animate-slide-right-and-fade: slideRightAndFade 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
149
|
-
--animate-elastic-slide-down-and-fade: elasticSlideDownAndFade 350ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
150
|
-
--animate-elastic-slide-left-and-fade: elasticSlideLeftAndFade 350ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
151
|
-
--animate-elastic-slide-up-and-fade: elasticSlideUpAndFade 350ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
152
|
-
--animate-elastic-slide-right-and-fade: elasticSlideRightAndFade 350ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
153
|
-
--animate-fade-out: fadeOut 150ms ease-in;
|
|
154
|
-
--animate-fade-in: fadeIn 150ms ease-in;
|
|
155
|
-
--animate-skeleton-shiny: skeletonShiny 4s infinite linear;
|
|
156
|
-
--animate-slide-down: slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1);
|
|
157
|
-
--animate-slide-up: slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1);
|
|
158
|
-
|
|
159
|
-
@keyframes slideDownAndFade {
|
|
160
|
-
from {
|
|
161
|
-
opacity: 0;
|
|
162
|
-
transform: translateY(-2px);
|
|
163
|
-
}
|
|
164
|
-
to {
|
|
165
|
-
opacity: 1;
|
|
166
|
-
transform: translateY(0);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
@keyframes slideLeftAndFade {
|
|
170
|
-
0% {
|
|
171
|
-
opacity: 0;
|
|
172
|
-
transform: translateX(2px);
|
|
173
|
-
}
|
|
174
|
-
100% {
|
|
175
|
-
opacity: 1;
|
|
176
|
-
transform: translateX(0);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
@keyframes slideUpAndFade {
|
|
180
|
-
from {
|
|
181
|
-
opacity: 0;
|
|
182
|
-
transform: translateY(2px);
|
|
183
|
-
}
|
|
184
|
-
to {
|
|
185
|
-
opacity: 1;
|
|
186
|
-
transform: translateY(0);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
@keyframes slideRightAndFade {
|
|
190
|
-
from {
|
|
191
|
-
opacity: 0;
|
|
192
|
-
transform: translateX(-2px);
|
|
193
|
-
}
|
|
194
|
-
to {
|
|
195
|
-
opacity: 1;
|
|
196
|
-
transform: translateX(0);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
@keyframes elasticSlideDownAndFade {
|
|
200
|
-
0% {
|
|
201
|
-
opacity: 0;
|
|
202
|
-
transform: translateY(-4px) scale(0.8);
|
|
203
|
-
}
|
|
204
|
-
50% {
|
|
205
|
-
opacity: 1;
|
|
206
|
-
transform: translateY(1px) scale(1);
|
|
207
|
-
}
|
|
208
|
-
100% {
|
|
209
|
-
opacity: 1;
|
|
210
|
-
transform: translateY(0) scale(1);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
@keyframes elasticSlideLeftAndFade {
|
|
214
|
-
0% {
|
|
215
|
-
opacity: 0;
|
|
216
|
-
transform: translateX(-4px) scale(0.8);
|
|
217
|
-
}
|
|
218
|
-
50% {
|
|
219
|
-
opacity: 1;
|
|
220
|
-
transform: translateX(-1px) scale(1);
|
|
221
|
-
}
|
|
222
|
-
100% {
|
|
223
|
-
opacity: 1;
|
|
224
|
-
transform: translateX(0) scale(1);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
@keyframes elasticSlideUpAndFade {
|
|
228
|
-
0% {
|
|
229
|
-
opacity: 0;
|
|
230
|
-
transform: translateY(4px) scale(0.8);
|
|
231
|
-
}
|
|
232
|
-
50% {
|
|
233
|
-
opacity: 1;
|
|
234
|
-
transform: translateY(-1px) scale(1);
|
|
235
|
-
}
|
|
236
|
-
100% {
|
|
237
|
-
opacity: 1;
|
|
238
|
-
transform: translateY(0) scale(1);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
@keyframes elasticSlideRightAndFade {
|
|
242
|
-
0% {
|
|
243
|
-
opacity: 0;
|
|
244
|
-
transform: translateX(4px) scale(0.8);
|
|
245
|
-
}
|
|
246
|
-
50% {
|
|
247
|
-
opacity: 1;
|
|
248
|
-
transform: translateX(1px) scale(1);
|
|
249
|
-
}
|
|
250
|
-
100% {
|
|
251
|
-
opacity: 1;
|
|
252
|
-
transform: translateX(0) scale(1);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
@keyframes fadeIn {
|
|
256
|
-
from {
|
|
257
|
-
opacity: 0;
|
|
258
|
-
}
|
|
259
|
-
to {
|
|
260
|
-
opacity: 1;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
@keyframes fadeOut {
|
|
264
|
-
from {
|
|
265
|
-
opacity: 1;
|
|
266
|
-
}
|
|
267
|
-
to {
|
|
268
|
-
opacity: 0;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
@keyframes pulsehide {
|
|
272
|
-
0%,
|
|
273
|
-
100% {
|
|
274
|
-
opacity: 0;
|
|
275
|
-
}
|
|
276
|
-
50% {
|
|
277
|
-
opacity: 1;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
@keyframes skeletonShiny {
|
|
281
|
-
0% {
|
|
282
|
-
background-position: 200%;
|
|
283
|
-
}
|
|
284
|
-
100% {
|
|
285
|
-
background-position: -200%;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
@keyframes slideDown {
|
|
289
|
-
from {
|
|
290
|
-
height: 0;
|
|
291
|
-
}
|
|
292
|
-
to {
|
|
293
|
-
/*noinspection CssUnresolvedCustomProperty*/
|
|
294
|
-
height: var(--radix-accordion-content-height);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
@keyframes slideUp {
|
|
298
|
-
from {
|
|
299
|
-
/*noinspection CssUnresolvedCustomProperty*/
|
|
300
|
-
height: var(--radix-accordion-content-height);
|
|
301
|
-
}
|
|
302
|
-
to {
|
|
303
|
-
height: 0;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
--animate-star-movement-bottom: star-movement-bottom linear infinite alternate;
|
|
308
|
-
--animate-star-movement-top: star-movement-top linear infinite alternate;
|
|
309
|
-
@keyframes star-movement-bottom {
|
|
310
|
-
0% {
|
|
311
|
-
transform: translate(0%, 0%);
|
|
312
|
-
opacity: 1;
|
|
313
|
-
}
|
|
314
|
-
100% {
|
|
315
|
-
transform: translate(-100%, 0%);
|
|
316
|
-
opacity: 0;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
@keyframes star-movement-top {
|
|
320
|
-
0% {
|
|
321
|
-
transform: translate(0%, 0%);
|
|
322
|
-
opacity: 1;
|
|
323
|
-
}
|
|
324
|
-
100% {
|
|
325
|
-
transform: translate(100%, 0%);
|
|
326
|
-
opacity: 0;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
--animate-slow-pulse: pulse 4s linear infinite;
|
|
331
|
-
|
|
332
|
-
--animate-bubble: bubble 4s infinite ease-in-out;
|
|
333
|
-
@keyframes bubble {
|
|
334
|
-
0%,
|
|
335
|
-
100% {
|
|
336
|
-
transform: translateY(0);
|
|
337
|
-
}
|
|
338
|
-
50% {
|
|
339
|
-
transform: translateY(-10px);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
/*
|
|
345
|
-
The default border color has changed to `currentColor` in Tailwind CSS v4,
|
|
346
|
-
so we've added these compatibility styles to make sure everything still
|
|
347
|
-
looks the same as it did with Tailwind CSS v3.
|
|
348
|
-
|
|
349
|
-
If we ever want to remove these styles, we need to add an explicit border
|
|
350
|
-
color utility to any element that depends on these defaults.
|
|
351
|
-
*/
|
|
352
|
-
@layer base {
|
|
353
|
-
*,
|
|
354
|
-
::after,
|
|
355
|
-
::before,
|
|
356
|
-
::backdrop,
|
|
357
|
-
::file-selector-button {
|
|
358
|
-
border-color: var(--color-gray-200, currentColor);
|
|
359
|
-
}
|
|
360
|
-
}
|
package/bootstrap/AppProps.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AppProps as NAppProps } from "next/app";
|
|
2
|
-
import type { NextComponentType, NextPageContext } from "next/dist/shared/lib/utils";
|
|
3
|
-
import type { ReactNode } from "react";
|
|
4
|
-
export 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
|
-
};
|
package/bootstrap/AppProps.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/bootstrap/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "focus-visible";
|
package/bootstrap/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "focus-visible";
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|