@croquiscom/pds 8.14.0 → 8.14.1
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/CHANGELOG.md +6 -0
- package/README.md +5 -5
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.stories.d.ts +8 -7
- package/dist/components/banner/Banner.d.ts +1 -1
- package/dist/components/banner/Banner.stories.d.ts +14 -13
- package/dist/components/bottom-sheet/BottomSheet.d.ts +2 -2
- package/dist/components/bottom-sheet/BottomSheet.stories.d.ts +9 -9
- package/dist/components/button/AccordionButton.stories.d.ts +8 -7
- package/dist/components/button/Button.stories.d.ts +16 -16
- package/dist/components/button/IconButton.stories.d.ts +7 -7
- package/dist/components/button/TextButton.stories.d.ts +12 -11
- package/dist/components/category-selector/CategorySelector.d.ts +2 -2
- package/dist/components/category-selector/CategorySelector.stories.d.ts +8 -8
- package/dist/components/category-selector/ChipsDropdown.d.ts +1 -1
- package/dist/components/category-selector/List.d.ts +2 -2
- package/dist/components/category-selector/ListItem.d.ts +2 -2
- package/dist/components/checkbox/Checkbox.stories.d.ts +12 -14
- package/dist/components/checkbox/CheckboxGroup.stories.d.ts +13 -12
- package/dist/components/chip/Chip.stories.d.ts +6 -6
- package/dist/components/column-view-controller/ColumnViewController.stories.d.ts +9 -9
- package/dist/components/date-picker/Caption.d.ts +2 -2
- package/dist/components/date-picker/DatePicker.d.ts +2 -2
- package/dist/components/date-picker/DatePicker.stories.d.ts +19 -19
- package/dist/components/date-picker/DatePickerIcon.d.ts +2 -2
- package/dist/components/date-picker/DatePickerMask.d.ts +12 -5
- package/dist/components/date-picker/DateRangePicker.d.ts +2 -2
- package/dist/components/date-picker/DateRangePicker.stories.d.ts +21 -21
- package/dist/components/date-picker/DateRangePreset.d.ts +2 -2
- package/dist/components/date-picker/DateUnitPicker.d.ts +2 -2
- package/dist/components/date-picker/DateUnitPicker.stories.d.ts +12 -12
- package/dist/components/date-picker/DayPickerOverlay.d.ts +1 -1
- package/dist/components/date-picker/YearMonthCalendar.d.ts +2 -2
- package/dist/components/date-picker/YearMonthCaption.d.ts +2 -2
- package/dist/components/divider/Divider.d.ts +1 -1
- package/dist/components/divider/Divider.stories.d.ts +9 -11
- package/dist/components/drawer/Drawer.stories.d.ts +9 -11
- package/dist/components/dropdown/Dropdown.d.ts +2 -2
- package/dist/components/dropdown/Dropdown.stories.d.ts +15 -15
- package/dist/components/dropdown/DropdownArrowButton.d.ts +2 -2
- package/dist/components/dropdown/DropdownInput.d.ts +1 -1
- package/dist/components/dropdown/DropdownInput.stories.d.ts +15 -15
- package/dist/components/file-upload/FileUpload.d.ts +1 -1
- package/dist/components/file-upload/FileUpload.stories.d.ts +12 -12
- package/dist/components/file-upload/FileUploadButton.d.ts +2 -2
- package/dist/components/file-upload/FileUploadButton.stories.d.ts +8 -7
- package/dist/components/form/FormField.d.ts +2 -2
- package/dist/components/form/FormField.stories.d.ts +11 -11
- package/dist/components/form/FormHelperText.stories.d.ts +9 -8
- package/dist/components/form/FormLabel.stories.d.ts +10 -9
- package/dist/components/icons/Icon.stories.d.ts +7 -33
- package/dist/components/images/Image.stories.d.ts +7 -13
- package/dist/components/input/Input.stories.d.ts +21 -20
- package/dist/components/input/InputAffix.d.ts +2 -2
- package/dist/components/input/NumericInput.stories.d.ts +16 -16
- package/dist/components/list/List.d.ts +2 -2
- package/dist/components/list/List.stories.d.ts +8 -7
- package/dist/components/list-item/ListItem.d.ts +2 -2
- package/dist/components/list-item/ListItem.stories.d.ts +11 -10
- package/dist/components/menu/Menu.stories.d.ts +9 -9
- package/dist/components/modal/AlertModal.d.ts +2 -2
- package/dist/components/modal/AlertModal.stories.d.ts +10 -10
- package/dist/components/modal/ConfirmModal.d.ts +1 -1
- package/dist/components/modal/ConfirmModal.stories.d.ts +10 -10
- package/dist/components/modal/Modal.d.ts +1 -1
- package/dist/components/modal/Modal.stories.d.ts +22 -22
- package/dist/components/modal/ModalOverlay.d.ts +2 -2
- package/dist/components/modal/NoticeModal.stories.d.ts +6 -5
- package/dist/components/notification/Notification.stories.d.ts +9 -8
- package/dist/components/page-indicator/PageIndicator.stories.d.ts +7 -6
- package/dist/components/pagination/Pagination.d.ts +2 -2
- package/dist/components/pagination/Pagination.stories.d.ts +11 -10
- package/dist/components/pagination/PaginationArrow.d.ts +2 -2
- package/dist/components/pagination/PaginationArrow.stories.d.ts +6 -5
- package/dist/components/popover/Popover.stories.d.ts +14 -41
- package/dist/components/popover/PopoverBase.d.ts +1 -1
- package/dist/components/popover/PopoverRoundedBase.d.ts +1 -1
- package/dist/components/provider/Provider.d.ts +1 -1
- package/dist/components/radio/BoxRadioGroup.stories.d.ts +12 -13
- package/dist/components/radio/Radio.stories.d.ts +10 -9
- package/dist/components/radio/RadioGroup.stories.d.ts +12 -13
- package/dist/components/stack/HStack.d.ts +1 -1
- package/dist/components/stack/HStack.stories.d.ts +8 -10
- package/dist/components/stack/VStack.d.ts +1 -1
- package/dist/components/stack/VStack.stories.d.ts +8 -10
- package/dist/components/switch/Switch.stories.d.ts +6 -5
- package/dist/components/table/DataTable.stories.d.ts +30 -32
- package/dist/components/table/DataTableHeader.d.ts +2 -2
- package/dist/components/table/DataTableRows.d.ts +2 -2
- package/dist/components/table/Table.stories.d.ts +6 -5
- package/dist/components/table/TableColGroup.d.ts +2 -2
- package/dist/components/table/TableSortIndicator.d.ts +2 -2
- package/dist/components/table/styles.d.ts +1 -1
- package/dist/components/tabs/LineTab.d.ts +2 -2
- package/dist/components/tabs/LineTabs.d.ts +1 -1
- package/dist/components/tabs/PanelTabs/PanelTab.d.ts +2 -2
- package/dist/components/tabs/PanelTabs/PanelTab.stories.d.ts +6 -6
- package/dist/components/tabs/PanelTabs/PanelTabGroup.d.ts +2 -2
- package/dist/components/tabs/PanelTabs/PanelTabGroup.stories.d.ts +7 -6
- package/dist/components/tabs/PanelTabs/PanelTabs.d.ts +1 -1
- package/dist/components/tabs/PanelTabs/PanelTabs.stories.d.ts +8 -7
- package/dist/components/tabs/Tabs.stories.d.ts +10 -9
- package/dist/components/text/BaseText.stories.d.ts +8 -7
- package/dist/components/text/HelpText.stories.d.ts +6 -5
- package/dist/components/textarea/Textarea.stories.d.ts +15 -14
- package/dist/components/time-picker/TimePicker.d.ts +2 -2
- package/dist/components/time-picker/TimePicker.stories.d.ts +12 -12
- package/dist/components/time-picker/TimePickerIcon.d.ts +2 -2
- package/dist/components/time-picker/TimePickerOptions.d.ts +2 -2
- package/dist/components/time-picker/TimePickerOverlay.d.ts +1 -1
- package/dist/components/time-picker/TimeRangePicker.d.ts +2 -2
- package/dist/components/time-picker/TimeRangePicker.stories.d.ts +11 -11
- package/dist/components/toast/Toast.stories.d.ts +12 -11
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.stories.d.ts +11 -10
- package/dist/components/tooltip/TooltipBase.d.ts +1 -1
- package/dist/container/footer/Footer.d.ts +4 -4
- package/dist/container/footer/Footer.stories.d.ts +5 -5
- package/dist/container/page-header/PageHeader.d.ts +2 -2
- package/dist/container/page-header/PageHeader.stories.d.ts +9 -8
- package/dist/container/section-title/SectionTitle.d.ts +2 -2
- package/dist/container/section-title/SectionTitle.stories.d.ts +10 -9
- package/dist/container/state/State.d.ts +2 -2
- package/dist/container/state/State.stories.d.ts +8 -7
- package/dist/container/top-navigation/TopNavigation.d.ts +2 -1
- package/dist/container/top-navigation/TopNavigation.stories.d.ts +12 -12
- package/dist/container/topBar/TopBar.d.ts +4 -4
- package/dist/container/topBar/TopBar.stories.d.ts +6 -6
- package/dist/global_style/GlobalStyle.d.ts +2 -2
- package/dist/index.es.js +17 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +17 -8
- package/dist/index.js.map +1 -1
- package/dist/stories/Box.d.ts +1 -1
- package/package.json +17 -10
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { List } from './List';
|
|
3
|
+
declare const meta: Meta<typeof List>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof List>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Draggable: Story;
|
|
8
|
+
export declare const FullCase: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export interface ListItemProps<T = string> {
|
|
3
3
|
id: T;
|
|
4
4
|
text: ReactNode;
|
|
@@ -32,4 +32,4 @@ export interface ListItemProps<T = string> {
|
|
|
32
32
|
*/
|
|
33
33
|
onPin?: (fixed: boolean, index?: number) => void;
|
|
34
34
|
}
|
|
35
|
-
export declare const ListItem: <T extends string>({ id, isOn, fixed, disabled, text, draggable, index, onToggle, onPin, }: ListItemProps<T>) => JSX.Element;
|
|
35
|
+
export declare const ListItem: <T extends string>({ id, isOn, fixed, disabled, text, draggable, index, onToggle, onPin, }: ListItemProps<T>) => React.JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ListItem } from './ListItem';
|
|
3
|
+
declare const meta: Meta<typeof ListItem>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ListItem>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Draggable: Story;
|
|
8
|
+
export declare const Disabled: Story;
|
|
9
|
+
export declare const Togglable: Story;
|
|
10
|
+
export declare const Pinnable: Story;
|
|
11
|
+
export declare const FullCase: Story;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import { Menu } from './Menu';
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
3
|
+
declare const meta: Meta<typeof Menu>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Menu>;
|
|
6
|
+
export declare const BaseOneDepthMenu: Story;
|
|
7
|
+
export declare const WithIcon: Story;
|
|
8
|
+
export declare const WithSuffix: Story;
|
|
9
|
+
export declare const WithChildToggle: Story;
|
|
10
|
+
export declare const ControlledNavigation: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ConfirmModalProps } from './ConfirmModal';
|
|
3
3
|
import { NotificationKind } from '../notification';
|
|
4
4
|
import { ModalActionButtonType } from './ModalActionButton';
|
|
@@ -13,5 +13,5 @@ export interface AlertModalProps extends Omit<ConfirmModalProps, 'cancelText' |
|
|
|
13
13
|
*/
|
|
14
14
|
autoFocusButton?: Extract<ModalActionButtonType, 'confirm'> | null;
|
|
15
15
|
}
|
|
16
|
-
export declare const AlertModal: ({ width, kind, dense, fill, title, confirmText, confirmButtonProps, autoFocusButton, text, subtext, zIndex, onConfirm, onClose, onExited, ...props }: AlertModalProps) => JSX.Element;
|
|
16
|
+
export declare const AlertModal: ({ width, kind, dense, fill, title, confirmText, confirmButtonProps, autoFocusButton, text, subtext, zIndex, onConfirm, onClose, onExited, ...props }: AlertModalProps) => React.JSX.Element;
|
|
17
17
|
export declare const Alert: (properties: AlertModalProps) => Promise<boolean>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const Base:
|
|
7
|
-
export declare const Dense:
|
|
8
|
-
export declare const Kind:
|
|
9
|
-
export declare const DisabledAutoFocusButton:
|
|
10
|
-
export declare const ContinuosOpen:
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { AlertModal } from './AlertModal';
|
|
3
|
+
declare const meta: Meta<typeof AlertModal>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof AlertModal>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Dense: Story;
|
|
8
|
+
export declare const Kind: Story;
|
|
9
|
+
export declare const DisabledAutoFocusButton: Story;
|
|
10
|
+
export declare const ContinuosOpen: Story;
|
|
@@ -38,7 +38,7 @@ export interface ConfirmModalProps extends Omit<ModalOverlayBaseProps, 'onClose'
|
|
|
38
38
|
*/
|
|
39
39
|
onClose?: () => void | Promise<void>;
|
|
40
40
|
}
|
|
41
|
-
export declare const ConfirmModal: ({ title, width, zIndex, dense, fill, text, subtext, confirmText, cancelText, confirmButtonProps, cancelButtonProps, autoFocusButton, onConfirm, onCancel, onClose, onExited, ...props }: ConfirmModalProps) => JSX.Element;
|
|
41
|
+
export declare const ConfirmModal: ({ title, width, zIndex, dense, fill, text, subtext, confirmText, cancelText, confirmButtonProps, cancelButtonProps, autoFocusButton, onConfirm, onCancel, onClose, onExited, ...props }: ConfirmModalProps) => React.JSX.Element;
|
|
42
42
|
export declare const StyledText: import("@emotion/styled").StyledComponent<(import("../text").BaseTextProps & (React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> | React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>)) & {
|
|
43
43
|
theme?: import("@emotion/react").Theme;
|
|
44
44
|
}, {}, {}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import { ConfirmModal } from './ConfirmModal';
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
3
|
+
declare const meta: Meta<typeof ConfirmModal>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ConfirmModal>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Dense: Story;
|
|
8
|
+
export declare const ContinuosOpen: Story;
|
|
9
|
+
export declare const AutoFocusButtonCustom: Story;
|
|
10
|
+
export declare const DisabledAutoFocusButton: Story;
|
|
11
|
+
export declare const CustomPropsButton: Story;
|
|
@@ -78,7 +78,7 @@ export declare const MIN_WIDTH = 480;
|
|
|
78
78
|
export declare const Modal: React.ComponentType<React.PropsWithChildren<ModalProps>>;
|
|
79
79
|
export declare const ModalContent: import("@emotion/styled").StyledComponent<{
|
|
80
80
|
theme?: import("@emotion/react").Theme;
|
|
81
|
-
as?: React.ElementType<any>;
|
|
81
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
|
|
82
82
|
} & ModalContentProps & {
|
|
83
83
|
fullScreen: boolean;
|
|
84
84
|
layoutHeight: LayoutHeightType;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import { Modal } from './Modal';
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
3
|
+
declare const meta: Meta<typeof Modal>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Modal>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Dense: Story;
|
|
8
|
+
export declare const Fill: Story;
|
|
9
|
+
export declare const DisabledOverlayEscape: Story;
|
|
10
|
+
export declare const WithBackButton: Story;
|
|
11
|
+
export declare const ControlledCancelEvent: Story;
|
|
12
|
+
export declare const CustomFooter: Story;
|
|
13
|
+
export declare const CustomContent: Story;
|
|
14
|
+
export declare const NestingModal: Story;
|
|
15
|
+
export declare const NestingChildModal: Story;
|
|
16
|
+
export declare const NestingConfirm: Story;
|
|
17
|
+
export declare const FullScreen: Story;
|
|
18
|
+
export declare const CustomFooterFullScreen: Story;
|
|
19
|
+
export declare const AutoMaxHeight: Story;
|
|
20
|
+
export declare const CustomMaxHeight: Story;
|
|
21
|
+
export declare const Scrollable: Story;
|
|
22
|
+
export declare const AutoFocusButton: Story;
|
|
23
|
+
export declare const NestingFloatingElements: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren, Dispatch, SetStateAction } from 'react';
|
|
1
|
+
import React, { PropsWithChildren, Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { CSSValueWithLength } from '../../styles';
|
|
3
3
|
import { CornerRadiusSize } from '../../foundation';
|
|
4
4
|
export type ModalBaseCancelReason = 'cancelClick' | 'escapeKeyPress' | 'overlayClick';
|
|
@@ -72,4 +72,4 @@ export interface ModalOverlayProps extends ModalOverlayBaseProps {
|
|
|
72
72
|
*/
|
|
73
73
|
autoFocus?: boolean;
|
|
74
74
|
}
|
|
75
|
-
export declare const ModalOverlay: ({ floatingPortalId, width, borderRadiusSize, fill, fullScreen, className, children, opened: openProp, zIndex, canClickOutside, canCloseEscapeKey, controlledOpen, autoFocus, returnFocus, onExited, onClose, onCancelEventCallback, setOpened, }: PropsWithChildren<ModalOverlayProps>) => JSX.Element;
|
|
75
|
+
export declare const ModalOverlay: ({ floatingPortalId, width, borderRadiusSize, fill, fullScreen, className, children, opened: openProp, zIndex, canClickOutside, canCloseEscapeKey, controlledOpen, autoFocus, returnFocus, onExited, onClose, onCancelEventCallback, setOpened, }: PropsWithChildren<ModalOverlayProps>) => React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { NoticeModal } from './NoticeModal';
|
|
3
|
+
declare const meta: Meta<typeof NoticeModal>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof NoticeModal>;
|
|
6
|
+
export declare const Base: Story;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { NotificationComponentProps } from './Notification';
|
|
3
|
+
import { MessageOptions } from '../message';
|
|
4
|
+
declare const meta: Meta<MessageOptions<NotificationComponentProps>>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<MessageOptions<NotificationComponentProps>>;
|
|
7
|
+
export declare const Base: Story;
|
|
8
|
+
export declare const Kind: Story;
|
|
9
|
+
export declare const HandleEvent: Story;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PageIndicator } from './PageIndicator';
|
|
3
|
+
declare const meta: Meta<typeof PageIndicator>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof PageIndicator>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Disabled: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
export interface PaginationProps extends HTMLAttributes<HTMLUListElement> {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
/**
|
|
@@ -23,4 +23,4 @@ export interface PaginationProps extends HTMLAttributes<HTMLUListElement> {
|
|
|
23
23
|
showArrowButton?: boolean;
|
|
24
24
|
onChangePage?: (page: number) => void;
|
|
25
25
|
}
|
|
26
|
-
export declare const Pagination: ({ disabled, totalPages, currentPage, siblingCount, boundaryCount, showArrowButton, onChangePage, }: PaginationProps) => JSX.Element;
|
|
26
|
+
export declare const Pagination: ({ disabled, totalPages, currentPage, siblingCount, boundaryCount, showArrowButton, onChangePage, }: PaginationProps) => React.JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Pagination } from './Pagination';
|
|
3
|
+
declare const meta: Meta<typeof Pagination>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Pagination>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Disabled: Story;
|
|
8
|
+
export declare const HideArrowButton: Story;
|
|
9
|
+
export declare const CustomSiblingCount: Story;
|
|
10
|
+
export declare const CustomBoundaryCount: Story;
|
|
11
|
+
export declare const MinWidthExample: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
type PaginationArrowPosition = 'prev' | 'next';
|
|
3
3
|
export interface PaginationArrowProps {
|
|
4
4
|
/** @default prev */
|
|
@@ -6,5 +6,5 @@ export interface PaginationArrowProps {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const PaginationArrow: ({ position, disabled, onClick }: PaginationArrowProps) => JSX.Element;
|
|
9
|
+
export declare const PaginationArrow: ({ position, disabled, onClick }: PaginationArrowProps) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PaginationArrow } from './PaginationArrow';
|
|
3
|
+
declare const meta: Meta<typeof PaginationArrow>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof PaginationArrow>;
|
|
6
|
+
export declare const Base: Story;
|
|
@@ -1,42 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import { Popover } from './Popover';
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
story: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export declare const HidingFullyClippedReferenceElements: () => JSX.Element;
|
|
23
|
-
export declare const NoArrow: {
|
|
24
|
-
(): JSX.Element;
|
|
25
|
-
parameters: {
|
|
26
|
-
docs: {
|
|
27
|
-
description: {
|
|
28
|
-
story: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export declare const DescriptionOnly: {
|
|
34
|
-
(): JSX.Element;
|
|
35
|
-
parameters: {
|
|
36
|
-
docs: {
|
|
37
|
-
description: {
|
|
38
|
-
story: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof Popover>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Popover>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Width: Story;
|
|
8
|
+
export declare const HoverIcon: Story;
|
|
9
|
+
export declare const Placement: Story;
|
|
10
|
+
export declare const Trigger: Story;
|
|
11
|
+
export declare const Controlled: Story;
|
|
12
|
+
export declare const TemplateWithCloseButton: Story;
|
|
13
|
+
export declare const HidingFullyClippedReferenceElements: Story;
|
|
14
|
+
export declare const NoArrow: Story;
|
|
15
|
+
export declare const DescriptionOnly: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const PopoverBase: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?: import("react").ElementType<any>;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const PopoverRoundedBase: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?: import("react").ElementType<any>;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -18,4 +18,4 @@ export declare function getContextConfig(): ProviderConfig;
|
|
|
18
18
|
export declare const providerContext: React.Context<ProviderConfig>;
|
|
19
19
|
export type ProviderProps = ProviderConfig;
|
|
20
20
|
export declare const useProviderConfig: () => ProviderConfig;
|
|
21
|
-
export declare const Provider: ({ children, ...props }: PropsWithChildren<ProviderProps>) => JSX.Element;
|
|
21
|
+
export declare const Provider: ({ children, ...props }: PropsWithChildren<ProviderProps>) => React.JSX.Element;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const Controlled: () => JSX.Element;
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { RadioGroup } from './RadioGroup';
|
|
3
|
+
declare const meta: Meta<typeof RadioGroup>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof RadioGroup>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Disabled: Story;
|
|
8
|
+
export declare const DisabledItem: Story;
|
|
9
|
+
export declare const SelectedDisabled: Story;
|
|
10
|
+
export declare const FullWidth: Story;
|
|
11
|
+
export declare const Size: Story;
|
|
12
|
+
export declare const Controlled: Story;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Radio } from './Radio';
|
|
3
|
+
declare const meta: Meta<typeof Radio>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Radio>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Checked: Story;
|
|
8
|
+
export declare const Disabled: Story;
|
|
9
|
+
export declare const CheckedDisabled: Story;
|
|
10
|
+
export declare const Size: Story;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const Controlled: () => JSX.Element;
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { RadioGroup } from './RadioGroup';
|
|
3
|
+
declare const meta: Meta<typeof RadioGroup>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof RadioGroup>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Spacing: Story;
|
|
8
|
+
export declare const Disabled: Story;
|
|
9
|
+
export declare const VerticalAlign: Story;
|
|
10
|
+
export declare const FullWidth: Story;
|
|
11
|
+
export declare const Size: Story;
|
|
12
|
+
export declare const Controlled: Story;
|
|
@@ -6,5 +6,5 @@ export interface HStackProps extends StackProps {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const HStack: import("@emotion/styled").StyledComponent<{
|
|
8
8
|
theme?: import("@emotion/react").Theme;
|
|
9
|
-
as?: import("react").ElementType<any>;
|
|
9
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
10
10
|
} & HStackProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const Spacing: any;
|
|
10
|
-
export declare const SpacingAuto: any;
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { HStack } from './HStack';
|
|
3
|
+
declare const meta: Meta<typeof HStack>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof HStack>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Spacing: Story;
|
|
8
|
+
export declare const SpacingAuto: Story;
|
|
@@ -6,5 +6,5 @@ export interface VStackProps extends StackProps {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const VStack: import("@emotion/styled").StyledComponent<{
|
|
8
8
|
theme?: import("@emotion/react").Theme;
|
|
9
|
-
as?: import("react").ElementType<any>;
|
|
9
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
10
10
|
} & VStackProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const Spacing: any;
|
|
10
|
-
export declare const SpacingAuto: any;
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { VStack } from './VStack';
|
|
3
|
+
declare const meta: Meta<typeof VStack>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof VStack>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const Spacing: Story;
|
|
8
|
+
export declare const SpacingAuto: Story;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
1
|
+
import { Switch } from './Switch';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: Meta<typeof Switch>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Switch>;
|
|
6
|
+
export declare const Base: Story;
|