moduix 0.11.0 → 0.11.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/LICENSE.md +21 -0
- package/README.md +13 -3
- package/dist/components/Accordion/Accordion.css +99 -0
- package/dist/components/Accordion/Accordion.d.ts +17 -9
- package/dist/components/Accordion/Accordion.js +60 -0
- package/dist/components/Accordion/Accordion.module.js +12 -0
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/Alert/Alert.css +114 -0
- package/dist/components/Alert/Alert.d.ts +30 -10
- package/dist/components/Alert/Alert.js +44 -0
- package/dist/components/Alert/Alert.module.js +11 -0
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/AlertDialog/AlertDialog.css +159 -0
- package/dist/components/AlertDialog/AlertDialog.d.ts +66 -19
- package/dist/components/AlertDialog/AlertDialog.js +107 -0
- package/dist/components/AlertDialog/AlertDialog.module.js +18 -0
- package/dist/components/AlertDialog/index.d.ts +1 -1
- package/dist/components/AspectRatio/AspectRatio.css +14 -0
- package/dist/components/AspectRatio/AspectRatio.d.ts +12 -5
- package/dist/components/AspectRatio/AspectRatio.js +24 -0
- package/dist/components/AspectRatio/AspectRatio.module.js +5 -0
- package/dist/components/AspectRatio/index.d.ts +1 -2
- package/dist/components/Autocomplete/Autocomplete.css +454 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +40 -37
- package/dist/components/Autocomplete/Autocomplete.js +271 -0
- package/dist/components/Autocomplete/Autocomplete.module.js +37 -0
- package/dist/components/Autocomplete/index.d.ts +1 -1
- package/dist/components/Avatar/Avatar.css +74 -0
- package/dist/components/Avatar/Avatar.d.ts +19 -6
- package/dist/components/Avatar/Avatar.js +29 -0
- package/dist/components/Avatar/Avatar.module.js +9 -0
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Badge/Badge.css +66 -0
- package/dist/components/Badge/Badge.d.ts +15 -6
- package/dist/components/Badge/Badge.js +22 -0
- package/dist/components/Badge/Badge.module.js +8 -0
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Bleed/Bleed.css +51 -0
- package/dist/components/Bleed/Bleed.d.ts +15 -6
- package/dist/components/Bleed/Bleed.js +15 -0
- package/dist/components/Bleed/Bleed.module.js +5 -0
- package/dist/components/Bleed/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.css +88 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +38 -10
- package/dist/components/Breadcrumbs/Breadcrumbs.js +66 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.module.js +13 -0
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Button/Button.css +194 -0
- package/dist/components/Button/Button.d.ts +9 -7
- package/dist/components/Button/Button.js +18 -0
- package/dist/components/Button/Button.module.js +5 -0
- package/dist/components/Button/index.d.ts +1 -2
- package/dist/components/Card/Card.css +136 -0
- package/dist/components/Card/Card.d.ts +45 -15
- package/dist/components/Card/Card.js +72 -0
- package/dist/components/Card/Card.module.js +14 -0
- package/dist/components/Card/index.d.ts +1 -2
- package/dist/components/Checkbox/Checkbox.css +131 -0
- package/dist/components/Checkbox/Checkbox.d.ts +27 -10
- package/dist/components/Checkbox/Checkbox.js +59 -0
- package/dist/components/Checkbox/Checkbox.module.js +13 -0
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.css +33 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +27 -9
- package/dist/components/CheckboxGroup/CheckboxGroup.js +50 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.module.js +11 -0
- package/dist/components/CheckboxGroup/index.d.ts +1 -1
- package/dist/components/CloseButton/CloseButton.css +49 -0
- package/dist/components/CloseButton/CloseButton.d.ts +4 -2
- package/dist/components/CloseButton/CloseButton.js +22 -0
- package/dist/components/CloseButton/CloseButton.module.js +5 -0
- package/dist/components/Collapsible/Collapsible.css +92 -0
- package/dist/components/Collapsible/Collapsible.d.ts +14 -6
- package/dist/components/Collapsible/Collapsible.js +44 -0
- package/dist/components/Collapsible/Collapsible.module.js +10 -0
- package/dist/components/Collapsible/index.d.ts +1 -1
- package/dist/components/Combobox/Combobox.css +497 -0
- package/dist/components/Combobox/Combobox.d.ts +58 -43
- package/dist/components/Combobox/Combobox.js +295 -0
- package/dist/components/Combobox/Combobox.module.js +42 -0
- package/dist/components/Combobox/index.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPalette.css +375 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts +134 -42
- package/dist/components/CommandPalette/CommandPalette.js +278 -0
- package/dist/components/CommandPalette/CommandPalette.module.js +30 -0
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/Container/Container.css +45 -0
- package/dist/components/Container/Container.d.ts +15 -6
- package/dist/components/Container/Container.js +15 -0
- package/dist/components/Container/Container.module.js +5 -0
- package/dist/components/Container/index.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.css +308 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +131 -38
- package/dist/components/ContextMenu/ContextMenu.js +215 -0
- package/dist/components/ContextMenu/ContextMenu.module.js +33 -0
- package/dist/components/ContextMenu/index.d.ts +1 -2
- package/dist/components/CopyButton/CopyButton.css +14 -0
- package/dist/components/CopyButton/CopyButton.d.ts +14 -13
- package/dist/components/CopyButton/CopyButton.js +66 -0
- package/dist/components/CopyButton/CopyButton.module.js +5 -0
- package/dist/components/CopyButton/index.d.ts +1 -2
- package/dist/components/Dialog/Dialog.css +186 -0
- package/dist/components/Dialog/Dialog.d.ts +68 -18
- package/dist/components/Dialog/Dialog.js +122 -0
- package/dist/components/Dialog/Dialog.module.js +18 -0
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Drawer/Drawer.css +483 -0
- package/dist/components/Drawer/Drawer.d.ts +95 -27
- package/dist/components/Drawer/Drawer.js +182 -0
- package/dist/components/Drawer/Drawer.module.js +24 -0
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Empty/Empty.css +78 -0
- package/dist/components/Empty/Empty.d.ts +31 -9
- package/dist/components/Empty/Empty.js +48 -0
- package/dist/components/Empty/Empty.module.js +12 -0
- package/dist/components/Empty/index.d.ts +1 -1
- package/dist/components/Field/Field.css +86 -0
- package/dist/components/Field/Field.d.ts +30 -9
- package/dist/components/Field/Field.js +50 -0
- package/dist/components/Field/Field.module.js +12 -0
- package/dist/components/Field/index.d.ts +1 -1
- package/dist/components/Fieldset/Fieldset.css +39 -0
- package/dist/components/Fieldset/Fieldset.d.ts +13 -4
- package/dist/components/Fieldset/Fieldset.js +21 -0
- package/dist/components/Fieldset/Fieldset.module.js +8 -0
- package/dist/components/Fieldset/index.d.ts +1 -1
- package/dist/components/Form/Form.css +9 -0
- package/dist/components/Form/Form.d.ts +6 -3
- package/dist/components/Form/Form.js +16 -0
- package/dist/components/Form/Form.module.js +5 -0
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Heading/Heading.css +50 -0
- package/dist/components/Heading/Heading.d.ts +21 -13
- package/dist/components/Heading/Heading.js +23 -0
- package/dist/components/Heading/Heading.module.js +5 -0
- package/dist/components/Heading/index.d.ts +1 -1
- package/dist/components/Input/Input.css +78 -0
- package/dist/components/Input/Input.d.ts +10 -8
- package/dist/components/Input/Input.js +18 -0
- package/dist/components/Input/Input.module.js +5 -0
- package/dist/components/Input/index.d.ts +1 -2
- package/dist/components/InputGroup/InputGroup.css +160 -0
- package/dist/components/InputGroup/InputGroup.d.ts +14 -10
- package/dist/components/InputGroup/InputGroup.js +73 -0
- package/dist/components/InputGroup/InputGroup.module.js +11 -0
- package/dist/components/InputGroup/index.d.ts +1 -1
- package/dist/components/Kbd/Kbd.css +49 -0
- package/dist/components/Kbd/Kbd.d.ts +13 -4
- package/dist/components/Kbd/Kbd.js +20 -0
- package/dist/components/Kbd/Kbd.module.js +8 -0
- package/dist/components/Kbd/index.d.ts +1 -1
- package/dist/components/Lightbox/Lightbox.css +114 -0
- package/dist/components/Lightbox/Lightbox.d.ts +81 -28
- package/dist/components/Lightbox/Lightbox.js +208 -0
- package/dist/components/Lightbox/Lightbox.module.js +14 -0
- package/dist/components/Lightbox/index.d.ts +1 -1
- package/dist/components/List/List.css +114 -0
- package/dist/components/List/List.d.ts +26 -12
- package/dist/components/List/List.js +28 -0
- package/dist/components/List/List.module.js +5 -0
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/Menu/Menu.css +377 -0
- package/dist/components/Menu/Menu.d.ts +141 -41
- package/dist/components/Menu/Menu.js +231 -0
- package/dist/components/Menu/Menu.module.js +36 -0
- package/dist/components/Menu/index.d.ts +1 -2
- package/dist/components/Menubar/Menubar.css +387 -0
- package/dist/components/Menubar/Menubar.d.ts +144 -42
- package/dist/components/Menubar/Menubar.js +232 -0
- package/dist/components/Menubar/Menubar.module.js +36 -0
- package/dist/components/Menubar/index.d.ts +1 -2
- package/dist/components/Meter/Meter.css +46 -0
- package/dist/components/Meter/Meter.d.ts +9 -7
- package/dist/components/Meter/Meter.js +55 -0
- package/dist/components/Meter/Meter.module.js +11 -0
- package/dist/components/NavigationMenu/NavigationMenu.css +319 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +81 -22
- package/dist/components/NavigationMenu/NavigationMenu.js +134 -0
- package/dist/components/NavigationMenu/NavigationMenu.module.js +21 -0
- package/dist/components/NavigationMenu/index.d.ts +1 -2
- package/dist/components/NumberField/NumberField.css +158 -0
- package/dist/components/NumberField/NumberField.d.ts +48 -14
- package/dist/components/NumberField/NumberField.js +75 -0
- package/dist/components/NumberField/NumberField.module.js +13 -0
- package/dist/components/NumberField/index.d.ts +1 -2
- package/dist/components/OTPField/OTPField.css +78 -0
- package/dist/components/OTPField/OTPField.d.ts +19 -5
- package/dist/components/OTPField/OTPField.js +39 -0
- package/dist/components/OTPField/OTPField.module.js +9 -0
- package/dist/components/OTPField/index.d.ts +1 -1
- package/dist/components/Pagination/Pagination.css +103 -0
- package/dist/components/Pagination/Pagination.d.ts +60 -22
- package/dist/components/Pagination/Pagination.js +116 -0
- package/dist/components/Pagination/Pagination.module.js +16 -0
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.css +19 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +14 -12
- package/dist/components/PasswordInput/PasswordInput.js +47 -0
- package/dist/components/PasswordInput/PasswordInput.module.js +9 -0
- package/dist/components/PasswordInput/index.d.ts +1 -2
- package/dist/components/Popover/Popover.css +200 -0
- package/dist/components/Popover/Popover.d.ts +79 -22
- package/dist/components/Popover/Popover.js +131 -0
- package/dist/components/Popover/Popover.module.js +22 -0
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/PreviewCard/PreviewCard.css +136 -0
- package/dist/components/PreviewCard/PreviewCard.d.ts +51 -15
- package/dist/components/PreviewCard/PreviewCard.js +87 -0
- package/dist/components/PreviewCard/PreviewCard.module.js +16 -0
- package/dist/components/PreviewCard/index.d.ts +1 -1
- package/dist/components/Progress/Progress.css +68 -0
- package/dist/components/Progress/Progress.d.ts +9 -7
- package/dist/components/Progress/Progress.js +55 -0
- package/dist/components/Progress/Progress.module.js +12 -0
- package/dist/components/Radio/Radio.css +141 -0
- package/dist/components/Radio/Radio.d.ts +39 -14
- package/dist/components/Radio/Radio.js +71 -0
- package/dist/components/Radio/Radio.module.js +14 -0
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Rating/Rating.css +79 -0
- package/dist/components/Rating/Rating.d.ts +12 -10
- package/dist/components/Rating/Rating.js +61 -0
- package/dist/components/Rating/Rating.module.js +9 -0
- package/dist/components/Rating/index.d.ts +1 -2
- package/dist/components/ScrollArea/ScrollArea.css +205 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +16 -13
- package/dist/components/ScrollArea/ScrollArea.js +76 -0
- package/dist/components/ScrollArea/ScrollArea.module.js +12 -0
- package/dist/components/ScrollArea/index.d.ts +1 -1
- package/dist/components/Select/Select.css +357 -0
- package/dist/components/Select/Select.d.ts +116 -30
- package/dist/components/Select/Select.js +196 -0
- package/dist/components/Select/Select.module.js +33 -0
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Separator/Separator.css +17 -0
- package/dist/components/Separator/Separator.d.ts +4 -2
- package/dist/components/Separator/Separator.js +16 -0
- package/dist/components/Separator/Separator.module.js +5 -0
- package/dist/components/Skeleton/Skeleton.css +21 -0
- package/dist/components/Skeleton/Skeleton.d.ts +22 -9
- package/dist/components/Skeleton/Skeleton.js +25 -0
- package/dist/components/Skeleton/Skeleton.module.js +5 -0
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Slider/Slider.css +115 -0
- package/dist/components/Slider/Slider.d.ts +14 -11
- package/dist/components/Slider/Slider.js +99 -0
- package/dist/components/Slider/Slider.module.js +13 -0
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/SnapCarousel/SnapCarousel.css +131 -0
- package/dist/components/SnapCarousel/SnapCarousel.d.ts +37 -10
- package/dist/components/SnapCarousel/SnapCarousel.js +125 -0
- package/dist/components/SnapCarousel/SnapCarousel.module.js +13 -0
- package/dist/components/SnapCarousel/index.d.ts +1 -2
- package/dist/components/Spinner/Spinner.css +60 -0
- package/dist/components/Spinner/Spinner.d.ts +16 -6
- package/dist/components/Spinner/Spinner.js +28 -0
- package/dist/components/Spinner/Spinner.module.js +9 -0
- package/dist/components/Spinner/index.d.ts +1 -2
- package/dist/components/SplitButton/SplitButton.css +59 -0
- package/dist/components/SplitButton/SplitButton.d.ts +39 -20
- package/dist/components/SplitButton/SplitButton.js +66 -0
- package/dist/components/SplitButton/SplitButton.module.js +9 -0
- package/dist/components/SplitButton/index.d.ts +1 -2
- package/dist/components/Stack/Stack.css +13 -0
- package/dist/components/Stack/Stack.d.ts +27 -13
- package/dist/components/Stack/Stack.js +27 -0
- package/dist/components/Stack/Stack.module.js +5 -0
- package/dist/components/Stack/index.d.ts +1 -1
- package/dist/components/Stepper/Stepper.css +174 -0
- package/dist/components/Stepper/Stepper.d.ts +55 -16
- package/dist/components/Stepper/Stepper.js +131 -0
- package/dist/components/Stepper/Stepper.module.js +14 -0
- package/dist/components/Stepper/index.d.ts +1 -2
- package/dist/components/Switch/Switch.css +138 -0
- package/dist/components/Switch/Switch.d.ts +21 -9
- package/dist/components/Switch/Switch.js +40 -0
- package/dist/components/Switch/Switch.module.js +10 -0
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Table/Table.css +107 -0
- package/dist/components/Table/Table.d.ts +54 -16
- package/dist/components/Table/Table.js +85 -0
- package/dist/components/Table/Table.module.js +18 -0
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Tabs/Tabs.css +181 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -8
- package/dist/components/Tabs/Tabs.js +66 -0
- package/dist/components/Tabs/Tabs.module.js +11 -0
- package/dist/components/Text/Text.css +73 -0
- package/dist/components/Text/Text.d.ts +20 -9
- package/dist/components/Text/Text.js +42 -0
- package/dist/components/Text/Text.module.js +5 -0
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Textarea/Textarea.css +59 -0
- package/dist/components/Textarea/Textarea.d.ts +7 -5
- package/dist/components/Textarea/Textarea.js +28 -0
- package/dist/components/Textarea/Textarea.module.js +5 -0
- package/dist/components/Textarea/index.d.ts +1 -2
- package/dist/components/Toast/Toast.css +351 -0
- package/dist/components/Toast/Toast.d.ts +79 -38
- package/dist/components/Toast/Toast.js +263 -0
- package/dist/components/Toast/Toast.module.js +26 -0
- package/dist/components/Toast/index.d.ts +1 -2
- package/dist/components/Toggle/Toggle.css +147 -0
- package/dist/components/Toggle/Toggle.d.ts +9 -6
- package/dist/components/Toggle/Toggle.js +18 -0
- package/dist/components/Toggle/Toggle.module.js +5 -0
- package/dist/components/Toggle/index.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.css +42 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +15 -12
- package/dist/components/ToggleGroup/ToggleGroup.js +41 -0
- package/dist/components/ToggleGroup/ToggleGroup.module.js +8 -0
- package/dist/components/ToggleGroup/index.d.ts +1 -1
- package/dist/components/Toolbar/Toolbar.css +203 -0
- package/dist/components/Toolbar/Toolbar.d.ts +9 -7
- package/dist/components/Toolbar/Toolbar.js +56 -0
- package/dist/components/Toolbar/Toolbar.module.js +12 -0
- package/dist/components/Tooltip/Tooltip.css +155 -0
- package/dist/components/Tooltip/Tooltip.d.ts +51 -15
- package/dist/components/Tooltip/Tooltip.js +82 -0
- package/dist/components/Tooltip/Tooltip.module.js +15 -0
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/icons/demo/Icons.d.ts +15 -12
- package/dist/icons/demo/Icons.js +225 -0
- package/dist/icons/demo/index.d.ts +1 -1
- package/dist/icons/ui/Icons.d.ts +30 -22
- package/dist/icons/ui/Icons.js +308 -0
- package/dist/icons/ui/index.d.ts +1 -1
- package/dist/index.d.ts +68 -67
- package/dist/index.js +68 -5775
- package/dist/reset.d.ts +1 -0
- package/dist/reset.js +1 -0
- package/dist/style.d.ts +1 -0
- package/dist/style.js +1 -0
- package/dist/styles/reset.css +175 -0
- package/dist/styles/style.css +263 -0
- package/dist/utils/mergeClassName.js +8 -0
- package/package.json +11 -10
- package/dist/components/CloseButton/index.d.ts +0 -1
- package/dist/components/Meter/index.d.ts +0 -1
- package/dist/components/Progress/index.d.ts +0 -1
- package/dist/components/Separator/index.d.ts +0 -1
- package/dist/components/Tabs/index.d.ts +0 -1
- package/dist/components/Toolbar/index.d.ts +0 -1
- package/dist/data/insideScrollSections.d.ts +0 -4
- package/dist/index.cjs +0 -1
- package/dist/index.css +0 -1
- package/dist/reset.css +0 -334
- package/dist/utils/mergeClassName.d.ts +0 -4
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "../../icons/ui/Icons.js";
|
|
2
|
+
import { mergeClassName } from "../../utils/mergeClassName.js";
|
|
3
|
+
import Pagination_module_default from "./Pagination.module.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { useMemo } from "react";
|
|
7
|
+
import { Toolbar } from "@base-ui/react/toolbar";
|
|
8
|
+
//#region src/components/Pagination/Pagination.tsx
|
|
9
|
+
function clampPage(page, count) {
|
|
10
|
+
return Math.min(Math.max(page, 1), count);
|
|
11
|
+
}
|
|
12
|
+
function range(start, end) {
|
|
13
|
+
return Array.from({ length: end - start + 1 }, (_, index) => start + index);
|
|
14
|
+
}
|
|
15
|
+
function usePagination({ count, page, siblingCount = 1, boundaryCount = 1 }) {
|
|
16
|
+
const safeCount = Math.max(0, Math.floor(count));
|
|
17
|
+
const safePage = safeCount === 0 ? 0 : clampPage(Math.floor(page), safeCount);
|
|
18
|
+
const safeSiblingCount = Math.max(0, Math.floor(siblingCount));
|
|
19
|
+
const safeBoundaryCount = Math.max(0, Math.floor(boundaryCount));
|
|
20
|
+
return {
|
|
21
|
+
items: useMemo(() => {
|
|
22
|
+
if (safeCount === 0) return [];
|
|
23
|
+
if (safeCount <= safeSiblingCount * 2 + 3 + safeBoundaryCount * 2) return range(1, safeCount);
|
|
24
|
+
const startPages = range(1, safeBoundaryCount);
|
|
25
|
+
const endPages = range(safeCount - safeBoundaryCount + 1, safeCount);
|
|
26
|
+
const siblingsStart = Math.max(Math.min(safePage - safeSiblingCount, safeCount - safeBoundaryCount - safeSiblingCount * 2 - 1), safeBoundaryCount + 2);
|
|
27
|
+
const siblingsEnd = Math.min(Math.max(safePage + safeSiblingCount, safeBoundaryCount + safeSiblingCount * 2 + 2), endPages[0] - 2);
|
|
28
|
+
return [
|
|
29
|
+
...startPages,
|
|
30
|
+
...siblingsStart > safeBoundaryCount + 2 ? ["ellipsis-start"] : safeBoundaryCount + 1 < safeCount - safeBoundaryCount ? [safeBoundaryCount + 1] : [],
|
|
31
|
+
...range(siblingsStart, siblingsEnd),
|
|
32
|
+
...siblingsEnd < safeCount - safeBoundaryCount - 1 ? ["ellipsis-end"] : safeCount - safeBoundaryCount > safeBoundaryCount ? [safeCount - safeBoundaryCount] : [],
|
|
33
|
+
...endPages
|
|
34
|
+
];
|
|
35
|
+
}, [
|
|
36
|
+
safeBoundaryCount,
|
|
37
|
+
safeCount,
|
|
38
|
+
safePage,
|
|
39
|
+
safeSiblingCount
|
|
40
|
+
]),
|
|
41
|
+
page: safePage,
|
|
42
|
+
canNextPage: safeCount > 0 && safePage < safeCount,
|
|
43
|
+
canPreviousPage: safePage > 1,
|
|
44
|
+
nextPage: safeCount === 0 ? 0 : Math.min(safePage + 1, safeCount),
|
|
45
|
+
previousPage: safePage <= 1 ? safePage : safePage - 1
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
const getPaginationRender = ({ href }) => {
|
|
49
|
+
if (href != null) return;
|
|
50
|
+
return /* @__PURE__ */ jsx("button", { type: "button" });
|
|
51
|
+
};
|
|
52
|
+
function Pagination({ "aria-label": ariaLabel = "Pagination", className, ...props }) {
|
|
53
|
+
return /* @__PURE__ */ jsx("nav", {
|
|
54
|
+
"data-slot": "pagination-root",
|
|
55
|
+
"aria-label": ariaLabel,
|
|
56
|
+
className: clsx(Pagination_module_default.root, className),
|
|
57
|
+
...props
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function PaginationContent({ className, ...props }) {
|
|
61
|
+
return /* @__PURE__ */ jsx(Toolbar.Root, {
|
|
62
|
+
"data-slot": "pagination-content",
|
|
63
|
+
className: mergeClassName(className, Pagination_module_default.content),
|
|
64
|
+
...props
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function PaginationItem({ className, ...props }) {
|
|
68
|
+
return /* @__PURE__ */ jsx("div", {
|
|
69
|
+
"data-slot": "pagination-item",
|
|
70
|
+
className: clsx(Pagination_module_default.item, className),
|
|
71
|
+
...props
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function PaginationLink({ className, isActive, render, ...props }) {
|
|
75
|
+
return /* @__PURE__ */ jsx(Toolbar.Link, {
|
|
76
|
+
"data-slot": "pagination-link",
|
|
77
|
+
"aria-current": isActive ? "page" : void 0,
|
|
78
|
+
className: mergeClassName(className, Pagination_module_default.link, isActive && Pagination_module_default.linkActive),
|
|
79
|
+
render: render ?? getPaginationRender(props),
|
|
80
|
+
...props
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function PaginationPrevious({ children, className, render, "aria-label": ariaLabel, ...props }) {
|
|
84
|
+
return /* @__PURE__ */ jsx(PaginationLink, {
|
|
85
|
+
"aria-label": children ? ariaLabel : ariaLabel ?? "Go to previous page",
|
|
86
|
+
className: mergeClassName(className, Pagination_module_default.previous, !children && Pagination_module_default.iconOnly),
|
|
87
|
+
render,
|
|
88
|
+
...props,
|
|
89
|
+
children: children ?? /* @__PURE__ */ jsx(ChevronLeftIcon, {})
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function PaginationNext({ children, className, render, "aria-label": ariaLabel, ...props }) {
|
|
93
|
+
return /* @__PURE__ */ jsx(PaginationLink, {
|
|
94
|
+
"aria-label": children ? ariaLabel : ariaLabel ?? "Go to next page",
|
|
95
|
+
className: mergeClassName(className, Pagination_module_default.next, !children && Pagination_module_default.iconOnly),
|
|
96
|
+
render,
|
|
97
|
+
...props,
|
|
98
|
+
children: children ?? /* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function PaginationEllipsis({ className, ...props }) {
|
|
102
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
103
|
+
"data-slot": "pagination-ellipsis",
|
|
104
|
+
className: clsx(Pagination_module_default.ellipsis, className),
|
|
105
|
+
...props,
|
|
106
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
107
|
+
"aria-hidden": true,
|
|
108
|
+
children: "..."
|
|
109
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
110
|
+
className: Pagination_module_default.visuallyHidden,
|
|
111
|
+
children: "More pages"
|
|
112
|
+
})]
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, usePagination };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './Pagination.css';
|
|
2
|
+
//#region src/components/Pagination/Pagination.module.css
|
|
3
|
+
var Pagination_module_default = {
|
|
4
|
+
"content": "Etg_Eq_content",
|
|
5
|
+
"ellipsis": "Etg_Eq_ellipsis",
|
|
6
|
+
"iconOnly": "Etg_Eq_iconOnly",
|
|
7
|
+
"item": "Etg_Eq_item",
|
|
8
|
+
"link": "Etg_Eq_link",
|
|
9
|
+
"linkActive": "Etg_Eq_linkActive",
|
|
10
|
+
"next": "Etg_Eq_next",
|
|
11
|
+
"previous": "Etg_Eq_previous",
|
|
12
|
+
"root": "Etg_Eq_root",
|
|
13
|
+
"visuallyHidden": "Etg_Eq_visuallyHidden"
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Pagination_module_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, usePagination } from "./Pagination.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
._72aPqG_root {
|
|
3
|
+
width: var(--input-width, 100%);
|
|
4
|
+
max-width: var(--input-max-width, none);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
._72aPqG_input {
|
|
8
|
+
min-width: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
._72aPqG_toggle {
|
|
12
|
+
--button-icon-size: var(--input-group-icon-size, 1rem);
|
|
13
|
+
color: var(--color-muted-foreground);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
._72aPqG_toggle[aria-pressed="true"] {
|
|
17
|
+
color: var(--color-foreground);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { InputProps } from "../Input/Input.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/PasswordInput/PasswordInput.d.ts
|
|
3
5
|
type PasswordInputProps = Omit<InputProps, 'className' | 'type'> & {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
className?: ComponentProps<'div'>['className'];
|
|
7
|
+
defaultVisible?: boolean;
|
|
8
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
9
|
+
visibilityToggleLabels?: {
|
|
10
|
+
show: string;
|
|
11
|
+
hide: string;
|
|
12
|
+
};
|
|
11
13
|
};
|
|
12
|
-
declare const PasswordInput: import(
|
|
13
|
-
|
|
14
|
-
export type
|
|
14
|
+
declare const PasswordInput: import("react").ForwardRefExoticComponent<Omit<PasswordInputProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { PasswordInput, type PasswordInputProps };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { EyeClosedIcon, EyeIcon } from "../../icons/ui/Icons.js";
|
|
2
|
+
import { InputGroup, InputGroupButton, InputGroupInput } from "../InputGroup/InputGroup.js";
|
|
3
|
+
import PasswordInput_module_default from "./PasswordInput.module.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { forwardRef, useState } from "react";
|
|
7
|
+
//#region src/components/PasswordInput/PasswordInput.tsx
|
|
8
|
+
const DEFAULT_VISIBILITY_TOGGLE_LABELS = {
|
|
9
|
+
show: "Show password",
|
|
10
|
+
hide: "Hide password"
|
|
11
|
+
};
|
|
12
|
+
const PasswordInput = forwardRef(function PasswordInput({ className, defaultVisible = false, disabled, onVisibleChange, readOnly, size = "md", visibilityToggleLabels = DEFAULT_VISIBILITY_TOGGLE_LABELS, ...props }, ref) {
|
|
13
|
+
const [visible, setVisible] = useState(defaultVisible);
|
|
14
|
+
const handleToggleMouseDown = (event) => {
|
|
15
|
+
event.preventDefault();
|
|
16
|
+
};
|
|
17
|
+
const handleToggleClick = () => {
|
|
18
|
+
const nextVisible = !visible;
|
|
19
|
+
setVisible(nextVisible);
|
|
20
|
+
onVisibleChange?.(nextVisible);
|
|
21
|
+
};
|
|
22
|
+
return /* @__PURE__ */ jsxs(InputGroup, {
|
|
23
|
+
"data-slot": "password-input-root",
|
|
24
|
+
className: clsx(PasswordInput_module_default.root, className),
|
|
25
|
+
size,
|
|
26
|
+
children: [/* @__PURE__ */ jsx(InputGroupInput, {
|
|
27
|
+
ref,
|
|
28
|
+
...props,
|
|
29
|
+
className: PasswordInput_module_default.input,
|
|
30
|
+
disabled,
|
|
31
|
+
readOnly,
|
|
32
|
+
size,
|
|
33
|
+
type: visible ? "text" : "password"
|
|
34
|
+
}), /* @__PURE__ */ jsx(InputGroupButton, {
|
|
35
|
+
"aria-label": visible ? visibilityToggleLabels.hide : visibilityToggleLabels.show,
|
|
36
|
+
"aria-pressed": visible,
|
|
37
|
+
className: PasswordInput_module_default.toggle,
|
|
38
|
+
"data-slot": "password-input-toggle",
|
|
39
|
+
disabled,
|
|
40
|
+
onClick: handleToggleClick,
|
|
41
|
+
onMouseDown: handleToggleMouseDown,
|
|
42
|
+
children: visible ? /* @__PURE__ */ jsx(EyeClosedIcon, {}) : /* @__PURE__ */ jsx(EyeIcon, {})
|
|
43
|
+
})]
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { PasswordInput };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './PasswordInput.css';
|
|
2
|
+
//#region src/components/PasswordInput/PasswordInput.module.css
|
|
3
|
+
var PasswordInput_module_default = {
|
|
4
|
+
"input": "_72aPqG_input",
|
|
5
|
+
"root": "_72aPqG_root",
|
|
6
|
+
"toggle": "_72aPqG_toggle"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { PasswordInput_module_default as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type { PasswordInputProps } from './PasswordInput';
|
|
1
|
+
import { PasswordInput, PasswordInputProps } from "./PasswordInput.js";
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
._7iI68a_trigger, ._7iI68a_close {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
min-height: var(--popover-control-height, var(--size-lg));
|
|
5
|
+
padding: var(--popover-control-padding-y, .5rem) var(--popover-control-padding-x, .875rem);
|
|
6
|
+
border: var(--popover-control-border-width, var(--border-width-sm)) solid
|
|
7
|
+
var(--popover-control-border-color, var(--color-border));
|
|
8
|
+
border-radius: var(--popover-control-radius, var(--radius-md));
|
|
9
|
+
background-color: var(--popover-control-bg, var(--color-background));
|
|
10
|
+
color: var(--popover-control-color, var(--color-foreground));
|
|
11
|
+
font: inherit;
|
|
12
|
+
font-size: var(--popover-control-font-size, var(--text-md));
|
|
13
|
+
line-height: var(--popover-control-line-height, var(--line-height-text-md));
|
|
14
|
+
user-select: none;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
transition: background-color var(--popover-transition, var(--transition-default)),
|
|
17
|
+
border-color var(--popover-transition, var(--transition-default)),
|
|
18
|
+
color var(--popover-transition, var(--transition-default));
|
|
19
|
+
outline: 0;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-items: center;
|
|
22
|
+
margin: 0;
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
|
|
25
|
+
@media (hover: hover) {
|
|
26
|
+
&:hover {
|
|
27
|
+
background-color: var(--popover-control-bg-hover, var(--color-accent));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:active, &[data-popup-open] {
|
|
32
|
+
background-color: var(--popover-control-bg-active, var(--popover-control-bg-hover, var(--color-accent)));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:focus-visible {
|
|
36
|
+
outline: var(--popover-focus-ring-width, var(--popover-control-border-width, var(--border-width-sm)))
|
|
37
|
+
solid var(--popover-focus-ring-color, var(--color-ring));
|
|
38
|
+
outline-offset: calc(var(--popover-focus-ring-width, var(--popover-control-border-width, var(--border-width-sm))) *
|
|
39
|
+
-1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&[data-disabled], &[disabled] {
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
opacity: var(--popover-disabled-opacity, var(--opacity-disabled));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
._7iI68a_backdrop {
|
|
49
|
+
z-index: var(--z-backdrop);
|
|
50
|
+
background-color: var(--popover-backdrop-bg, var(--backdrop-bg, var(--color-overlay)));
|
|
51
|
+
min-height: 100dvh;
|
|
52
|
+
backdrop-filter: var(--backdrop-filter, blur(var(--popover-backdrop-blur, 4px)));
|
|
53
|
+
transition: opacity var(--popover-backdrop-transition, var(--transition-default)),
|
|
54
|
+
backdrop-filter var(--popover-backdrop-transition, var(--transition-default));
|
|
55
|
+
position: fixed;
|
|
56
|
+
inset: 0;
|
|
57
|
+
|
|
58
|
+
&[data-starting-style], &[data-ending-style] {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
backdrop-filter: none;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
._7iI68a_positioner {
|
|
65
|
+
z-index: var(--z-popup);
|
|
66
|
+
width: var(--positioner-width);
|
|
67
|
+
height: var(--positioner-height);
|
|
68
|
+
max-width: var(--available-width);
|
|
69
|
+
outline: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
._7iI68a_popup {
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
width: var(--popup-width, var(--popover-width, auto));
|
|
75
|
+
height: var(--popup-height, var(--popover-height, auto));
|
|
76
|
+
min-width: min(var(--popover-min-width, 16rem), var(--available-width));
|
|
77
|
+
max-width: min(var(--popover-max-width, 28rem), var(--available-width));
|
|
78
|
+
max-height: min(var(--popover-max-height, 24rem), var(--available-height, 100dvh));
|
|
79
|
+
padding: var(--popover-padding-y, 1rem) var(--popover-padding-x, 1rem);
|
|
80
|
+
border-radius: var(--popover-radius, var(--radius-md));
|
|
81
|
+
background-color: var(--popover-bg, var(--color-popover));
|
|
82
|
+
color: var(--popover-color, var(--color-popover-foreground));
|
|
83
|
+
outline: var(--popover-border-width, var(--border-width-sm)) solid
|
|
84
|
+
var(--popover-border-color, var(--color-border));
|
|
85
|
+
box-shadow: var(--popover-shadow, var(--shadow-lg));
|
|
86
|
+
transform-origin: var(--transform-origin);
|
|
87
|
+
transition: transform var(--popover-transition, .15s),
|
|
88
|
+
opacity var(--popover-transition, .15s);
|
|
89
|
+
border: 0;
|
|
90
|
+
overflow: visible;
|
|
91
|
+
|
|
92
|
+
&[data-starting-style], &[data-ending-style] {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
transform: scale(var(--popover-scale, var(--scale-popup)));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
._7iI68a_viewport {
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 100%;
|
|
101
|
+
position: relative;
|
|
102
|
+
overflow: clip;
|
|
103
|
+
|
|
104
|
+
& > [data-current], & > [data-previous] {
|
|
105
|
+
width: var(--popup-width, auto);
|
|
106
|
+
transition: translate var(--popover-viewport-transition, .22s),
|
|
107
|
+
opacity var(--popover-viewport-transition, .22s);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
& > [data-current] {
|
|
111
|
+
opacity: 1;
|
|
112
|
+
translate: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&[data-activation-direction~="left"] > [data-current][data-starting-style], &[data-activation-direction~="right"] > [data-previous][data-ending-style] {
|
|
116
|
+
opacity: 0;
|
|
117
|
+
translate: calc(var(--popover-viewport-offset, 1rem) * -1) 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&[data-activation-direction~="right"] > [data-current][data-starting-style], &[data-activation-direction~="left"] > [data-previous][data-ending-style] {
|
|
121
|
+
opacity: 0;
|
|
122
|
+
translate: var(--popover-viewport-offset, 1rem) 0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
._7iI68a_arrow {
|
|
127
|
+
color: var(--popover-bg, var(--color-popover));
|
|
128
|
+
display: flex;
|
|
129
|
+
|
|
130
|
+
&[data-side="top"] {
|
|
131
|
+
bottom: calc(var(--popover-arrow-size, 8px) * -1);
|
|
132
|
+
rotate: 180deg;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&[data-side="bottom"] {
|
|
136
|
+
top: calc(var(--popover-arrow-size, 8px) * -1);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&[data-side="left"] {
|
|
140
|
+
right: calc(var(--popover-arrow-inline-offset, 13px) * -1);
|
|
141
|
+
rotate: 90deg;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&[data-side="right"] {
|
|
145
|
+
left: calc(var(--popover-arrow-inline-offset, 13px) * -1);
|
|
146
|
+
rotate: -90deg;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
._7iI68a_arrowSvg {
|
|
151
|
+
width: var(--popover-arrow-width, 1.25rem);
|
|
152
|
+
height: var(--popover-arrow-height, .625rem);
|
|
153
|
+
display: block;
|
|
154
|
+
overflow: visible;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
._7iI68a_arrowFill {
|
|
158
|
+
fill: currentColor;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
._7iI68a_arrowOuterStroke {
|
|
162
|
+
fill: var(--popover-arrow-stroke-color, var(--popover-border-color, var(--color-border)));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
._7iI68a_arrowInnerStroke {
|
|
166
|
+
fill: var(--popover-bg, var(--color-popover));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
._7iI68a_title {
|
|
170
|
+
color: var(--popover-title-color, var(--popover-color, var(--color-popover-foreground)));
|
|
171
|
+
font-size: var(--popover-title-font-size, var(--text-md));
|
|
172
|
+
font-weight: var(--popover-title-font-weight, var(--weight-semibold));
|
|
173
|
+
line-height: var(--popover-title-line-height, var(--line-height-text-md));
|
|
174
|
+
margin: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
._7iI68a_description {
|
|
178
|
+
margin: var(--popover-description-margin, 0);
|
|
179
|
+
color: var(--popover-description-color, var(--color-muted-foreground));
|
|
180
|
+
font-size: var(--popover-description-font-size, var(--text-sm));
|
|
181
|
+
line-height: var(--popover-description-line-height, var(--line-height-text-sm));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
._7iI68a_header {
|
|
185
|
+
gap: var(--popover-header-gap, var(--spacing-1));
|
|
186
|
+
display: grid;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
._7iI68a_body {
|
|
190
|
+
margin: var(--popover-body-margin, 0);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
._7iI68a_footer {
|
|
194
|
+
align-items: center;
|
|
195
|
+
justify-content: var(--popover-footer-justify, flex-end);
|
|
196
|
+
gap: var(--popover-footer-gap, var(--spacing-2));
|
|
197
|
+
margin: var(--popover-footer-margin, var(--spacing-3) 0 0);
|
|
198
|
+
display: flex;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -1,23 +1,80 @@
|
|
|
1
|
-
import { ComponentProps } from
|
|
2
|
-
import { Popover
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Popover } from "@base-ui/react/popover";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Popover/Popover.d.ts
|
|
5
|
+
type PopoverPositionerProps = Pick<Popover.Positioner.Props, 'side' | 'sideOffset' | 'align' | 'alignOffset' | 'arrowPadding' | 'collisionAvoidance' | 'collisionBoundary' | 'collisionPadding'>;
|
|
6
|
+
type PopoverContentProps = Popover.Popup.Props & PopoverPositionerProps & {
|
|
7
|
+
showArrow?: boolean;
|
|
6
8
|
};
|
|
7
|
-
declare const Popover: typeof
|
|
8
|
-
declare const createPopoverHandle: typeof
|
|
9
|
-
declare function PopoverTrigger({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
declare function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
declare function
|
|
23
|
-
|
|
9
|
+
declare const Popover$1: typeof Popover.Root;
|
|
10
|
+
declare const createPopoverHandle: typeof Popover.createHandle;
|
|
11
|
+
declare function PopoverTrigger({
|
|
12
|
+
className,
|
|
13
|
+
render,
|
|
14
|
+
...props
|
|
15
|
+
}: Popover.Trigger.Props): import("react").JSX.Element;
|
|
16
|
+
declare function PopoverPortal({
|
|
17
|
+
className,
|
|
18
|
+
...props
|
|
19
|
+
}: Popover.Portal.Props): import("react").JSX.Element;
|
|
20
|
+
declare function PopoverBackdrop({
|
|
21
|
+
className,
|
|
22
|
+
...props
|
|
23
|
+
}: Popover.Backdrop.Props): import("react").JSX.Element;
|
|
24
|
+
declare function PopoverPositioner({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}: Popover.Positioner.Props): import("react").JSX.Element;
|
|
28
|
+
declare function PopoverPopup({
|
|
29
|
+
className,
|
|
30
|
+
...props
|
|
31
|
+
}: Popover.Popup.Props): import("react").JSX.Element;
|
|
32
|
+
declare function PopoverViewport({
|
|
33
|
+
className,
|
|
34
|
+
...props
|
|
35
|
+
}: Popover.Viewport.Props): import("react").JSX.Element;
|
|
36
|
+
declare function PopoverArrow({
|
|
37
|
+
className,
|
|
38
|
+
children,
|
|
39
|
+
...props
|
|
40
|
+
}: Popover.Arrow.Props): import("react").JSX.Element;
|
|
41
|
+
declare function PopoverTitle({
|
|
42
|
+
className,
|
|
43
|
+
...props
|
|
44
|
+
}: Popover.Title.Props): import("react").JSX.Element;
|
|
45
|
+
declare function PopoverDescription({
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}: Popover.Description.Props): import("react").JSX.Element;
|
|
49
|
+
declare function PopoverHeader({
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
53
|
+
declare function PopoverBody({
|
|
54
|
+
className,
|
|
55
|
+
...props
|
|
56
|
+
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
57
|
+
declare function PopoverFooter({
|
|
58
|
+
className,
|
|
59
|
+
...props
|
|
60
|
+
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
61
|
+
declare function PopoverClose({
|
|
62
|
+
className,
|
|
63
|
+
...props
|
|
64
|
+
}: Popover.Close.Props): import("react").JSX.Element;
|
|
65
|
+
declare function PopoverContent({
|
|
66
|
+
className,
|
|
67
|
+
children,
|
|
68
|
+
showArrow,
|
|
69
|
+
side,
|
|
70
|
+
sideOffset,
|
|
71
|
+
align,
|
|
72
|
+
alignOffset,
|
|
73
|
+
arrowPadding,
|
|
74
|
+
collisionAvoidance,
|
|
75
|
+
collisionBoundary,
|
|
76
|
+
collisionPadding,
|
|
77
|
+
...popupProps
|
|
78
|
+
}: PopoverContentProps): import("react").JSX.Element;
|
|
79
|
+
//#endregion
|
|
80
|
+
export { Popover$1 as Popover, PopoverArrow, PopoverBackdrop, PopoverBody, PopoverClose, PopoverContent, PopoverDescription, PopoverFooter, PopoverHeader, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverTitle, PopoverTrigger, PopoverViewport, createPopoverHandle };
|