@once-ui-system/core 1.6.4 → 1.7.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/dist/components/Avatar.d.ts +1 -0
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Avatar.js.map +1 -1
- package/dist/components/BlobFx.d.ts +8 -0
- package/dist/components/BlobFx.d.ts.map +1 -0
- package/dist/components/BlobFx.js +82 -0
- package/dist/components/BlobFx.js.map +1 -0
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Button.js.map +1 -1
- package/dist/components/Button.module.scss +62 -32
- package/dist/components/ContextMenu.d.ts +1 -0
- package/dist/components/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu.js +8 -4
- package/dist/components/ContextMenu.js.map +1 -1
- package/dist/components/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog.js +27 -5
- package/dist/components/Dialog.js.map +1 -1
- package/dist/components/Dropdown.d.ts +1 -0
- package/dist/components/Dropdown.d.ts.map +1 -1
- package/dist/components/Dropdown.js +4 -2
- package/dist/components/Dropdown.js.map +1 -1
- package/dist/components/FadingLettersFx.d.ts +15 -0
- package/dist/components/FadingLettersFx.d.ts.map +1 -0
- package/dist/components/FadingLettersFx.js +27 -0
- package/dist/components/FadingLettersFx.js.map +1 -0
- package/dist/components/FadingLettersFx.module.scss +71 -0
- package/dist/components/IconButton.d.ts +5 -2
- package/dist/components/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton.js +6 -4
- package/dist/components/IconButton.js.map +1 -1
- package/dist/components/IconButton.module.scss +14 -0
- package/dist/components/Input.d.ts +3 -1
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.js +19 -6
- package/dist/components/Input.js.map +1 -1
- package/dist/components/Input.module.scss +64 -10
- package/dist/components/Media.d.ts +5 -1
- package/dist/components/Media.d.ts.map +1 -1
- package/dist/components/Media.js +20 -7
- package/dist/components/Media.js.map +1 -1
- package/dist/components/Modal.d.ts +11 -0
- package/dist/components/Modal.d.ts.map +1 -0
- package/dist/components/Modal.js +72 -0
- package/dist/components/Modal.js.map +1 -0
- package/dist/components/NumberInput.d.ts.map +1 -1
- package/dist/components/NumberInput.js +1 -1
- package/dist/components/NumberInput.js.map +1 -1
- package/dist/components/ScrollContainer.d.ts +9 -0
- package/dist/components/ScrollContainer.d.ts.map +1 -0
- package/dist/components/ScrollContainer.js +67 -0
- package/dist/components/ScrollContainer.js.map +1 -0
- package/dist/components/ServerFlex.d.ts.map +1 -1
- package/dist/components/ServerFlex.js +3 -3
- package/dist/components/ServerFlex.js.map +1 -1
- package/dist/components/ServerGrid.d.ts.map +1 -1
- package/dist/components/ServerGrid.js +2 -2
- package/dist/components/ServerGrid.js.map +1 -1
- package/dist/components/SplitView.d.ts +16 -0
- package/dist/components/SplitView.d.ts.map +1 -0
- package/dist/components/SplitView.js +80 -0
- package/dist/components/SplitView.js.map +1 -0
- package/dist/components/SplitView.module.scss +18 -0
- package/dist/components/StylePanel.d.ts.map +1 -1
- package/dist/components/StylePanel.js +10 -10
- package/dist/components/StylePanel.js.map +1 -1
- package/dist/components/TagInput.d.ts +1 -2
- package/dist/components/TagInput.d.ts.map +1 -1
- package/dist/components/TagInput.js.map +1 -1
- package/dist/components/Textarea.d.ts +2 -0
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea.js +18 -8
- package/dist/components/Textarea.js.map +1 -1
- package/dist/components/ThemeInit.d.ts.map +1 -1
- package/dist/components/ThemeInit.js +39 -40
- package/dist/components/ThemeInit.js.map +1 -1
- package/dist/components/Timeline.d.ts +1 -1
- package/dist/components/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline.js +50 -6
- package/dist/components/Timeline.js.map +1 -1
- package/dist/components/ToggleButton.d.ts +2 -1
- package/dist/components/ToggleButton.d.ts.map +1 -1
- package/dist/components/ToggleButton.js +3 -3
- package/dist/components/ToggleButton.js.map +1 -1
- package/dist/components/ToggleButton.module.scss +27 -8
- package/dist/components/TypeFx.d.ts.map +1 -1
- package/dist/components/TypeFx.js +66 -87
- package/dist/components/TypeFx.js.map +1 -1
- package/dist/components/index.d.ts +9 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +9 -1
- package/dist/components/index.js.map +1 -1
- package/dist/css/styles.css +1 -1
- package/dist/css/styles.css.map +1 -1
- package/dist/css/tokens.css +1 -1
- package/dist/css/tokens.css.map +1 -1
- package/dist/interfaces.d.ts +1 -0
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/modules/code/CodeBlock.d.ts +3 -31
- package/dist/modules/code/CodeBlock.d.ts.map +1 -1
- package/dist/modules/code/CodeBlock.impl.d.ts +34 -0
- package/dist/modules/code/CodeBlock.impl.d.ts.map +1 -0
- package/dist/modules/code/CodeBlock.impl.js +487 -0
- package/dist/modules/code/CodeBlock.impl.js.map +1 -0
- package/dist/modules/code/CodeBlock.js +10 -483
- package/dist/modules/code/CodeBlock.js.map +1 -1
- package/dist/modules/data/BarChart.d.ts +1 -8
- package/dist/modules/data/BarChart.d.ts.map +1 -1
- package/dist/modules/data/BarChart.impl.d.ts +12 -0
- package/dist/modules/data/BarChart.impl.d.ts.map +1 -0
- package/dist/modules/data/BarChart.impl.js +137 -0
- package/dist/modules/data/BarChart.impl.js.map +1 -0
- package/dist/modules/data/BarChart.js +9 -132
- package/dist/modules/data/BarChart.js.map +1 -1
- package/dist/modules/data/DataTooltip.d.ts +2 -2
- package/dist/modules/data/DataTooltip.d.ts.map +1 -1
- package/dist/modules/data/Legend.d.ts +1 -1
- package/dist/modules/data/Legend.d.ts.map +1 -1
- package/dist/modules/data/LineBarChart.d.ts +1 -8
- package/dist/modules/data/LineBarChart.d.ts.map +1 -1
- package/dist/modules/data/LineBarChart.impl.d.ts +12 -0
- package/dist/modules/data/LineBarChart.impl.d.ts.map +1 -0
- package/dist/modules/data/LineBarChart.impl.js +142 -0
- package/dist/modules/data/LineBarChart.impl.js.map +1 -0
- package/dist/modules/data/LineBarChart.js +9 -137
- package/dist/modules/data/LineBarChart.js.map +1 -1
- package/dist/modules/data/LineChart.d.ts +1 -13
- package/dist/modules/data/LineChart.d.ts.map +1 -1
- package/dist/modules/data/LineChart.impl.d.ts +17 -0
- package/dist/modules/data/LineChart.impl.d.ts.map +1 -0
- package/dist/modules/data/LineChart.impl.js +148 -0
- package/dist/modules/data/LineChart.impl.js.map +1 -0
- package/dist/modules/data/LineChart.js +9 -143
- package/dist/modules/data/LineChart.js.map +1 -1
- package/dist/modules/data/PieChart.d.ts +4 -16
- package/dist/modules/data/PieChart.d.ts.map +1 -1
- package/dist/modules/data/PieChart.impl.d.ts +18 -0
- package/dist/modules/data/PieChart.impl.d.ts.map +1 -0
- package/dist/modules/data/PieChart.impl.js +102 -0
- package/dist/modules/data/PieChart.impl.js.map +1 -0
- package/dist/modules/data/PieChart.js +11 -97
- package/dist/modules/data/PieChart.js.map +1 -1
- package/dist/modules/media/MediaUpload.d.ts +2 -20
- package/dist/modules/media/MediaUpload.d.ts.map +1 -1
- package/dist/modules/media/MediaUpload.impl.d.ts +24 -0
- package/dist/modules/media/MediaUpload.impl.d.ts.map +1 -0
- package/dist/modules/media/MediaUpload.impl.js +92 -0
- package/dist/modules/media/MediaUpload.impl.js.map +1 -0
- package/dist/modules/media/MediaUpload.js +10 -88
- package/dist/modules/media/MediaUpload.js.map +1 -1
- package/dist/modules/navigation/Kbar.d.ts.map +1 -1
- package/dist/modules/navigation/Kbar.js +1 -1
- package/dist/modules/navigation/Kbar.js.map +1 -1
- package/dist/package.json +17 -6
- package/dist/src/__tests__/Dialog.test.d.ts +1 -0
- package/dist/src/components/Accordion.d.ts +21 -0
- package/dist/src/components/AccordionGroup.d.ts +15 -0
- package/dist/src/components/Animation.d.ts +33 -0
- package/dist/src/components/Arrow.d.ts +10 -0
- package/dist/src/components/ArrowNavigationContext.d.ts +32 -0
- package/dist/src/components/AutoScroll.d.ts +13 -0
- package/dist/src/components/Avatar.d.ts +20 -0
- package/dist/src/components/AvatarGroup.d.ts +13 -0
- package/dist/src/components/Background.d.ts +48 -0
- package/dist/src/components/Badge.d.ts +16 -0
- package/dist/src/components/Banner.d.ts +5 -0
- package/dist/src/components/BlobFx.d.ts +7 -0
- package/dist/src/components/BlockQuote.d.ts +20 -0
- package/dist/src/components/Button.d.ts +26 -0
- package/dist/src/components/Card.d.ts +12 -0
- package/dist/src/components/Carousel.d.ts +31 -0
- package/dist/src/components/CelebrationFx.d.ts +16 -0
- package/dist/src/components/Checkbox.d.ts +10 -0
- package/dist/src/components/Chip.d.ts +16 -0
- package/dist/src/components/ClientFlex.d.ts +12 -0
- package/dist/src/components/ClientGrid.d.ts +12 -0
- package/dist/src/components/ColorInput.d.ts +10 -0
- package/dist/src/components/Column.d.ts +6 -0
- package/dist/src/components/CompareImage.d.ts +15 -0
- package/dist/src/components/ContextMenu.d.ts +21 -0
- package/dist/src/components/CountFx.d.ts +14 -0
- package/dist/src/components/CountdownFx.d.ts +10 -0
- package/dist/src/components/Cursor.d.ts +7 -0
- package/dist/src/components/CursorCard.d.ts +12 -0
- package/dist/src/components/DateInput.d.ts +17 -0
- package/dist/src/components/DatePicker.d.ts +32 -0
- package/dist/src/components/DateRangeInput.d.ts +14 -0
- package/dist/src/components/DateRangePicker.d.ts +16 -0
- package/dist/src/components/Dialog.d.ts +19 -0
- package/dist/src/components/Dropdown.d.ts +12 -0
- package/dist/src/components/DropdownWrapper.d.ts +28 -0
- package/dist/src/components/ElementType.d.ts +13 -0
- package/dist/src/components/EmojiPicker.d.ts +15 -0
- package/dist/src/components/EmojiPickerDropdown.d.ts +10 -0
- package/dist/src/components/Fade.d.ts +18 -0
- package/dist/src/components/Feedback.d.ts +15 -0
- package/dist/src/components/Flex.d.ts +10 -0
- package/dist/src/components/FlipFx.d.ts +16 -0
- package/dist/src/components/GlitchFx.d.ts +11 -0
- package/dist/src/components/Grid.d.ts +10 -0
- package/dist/src/components/HoloFx.d.ts +31 -0
- package/dist/src/components/Hover.d.ts +13 -0
- package/dist/src/components/HoverCard.d.ts +4 -0
- package/dist/src/components/Icon.d.ts +17 -0
- package/dist/src/components/IconButton.d.ts +22 -0
- package/dist/src/components/InfiniteScroll.d.ts +15 -0
- package/dist/src/components/InlineCode.d.ts +9 -0
- package/dist/src/components/Input.d.ts +23 -0
- package/dist/src/components/InteractiveDetails.d.ts +14 -0
- package/dist/src/components/Kbd.d.ts +11 -0
- package/dist/src/components/Line.d.ts +8 -0
- package/dist/src/components/List.d.ts +10 -0
- package/dist/src/components/ListItem.d.ts +9 -0
- package/dist/src/components/Logo.d.ts +17 -0
- package/dist/src/components/LogoCloud.d.ts +13 -0
- package/dist/src/components/Mask.d.ts +14 -0
- package/dist/src/components/MasonryGrid.d.ts +21 -0
- package/dist/src/components/MatrixFx.d.ts +26 -0
- package/dist/src/components/Media.d.ts +25 -0
- package/dist/src/components/Modal.d.ts +10 -0
- package/dist/src/components/NavIcon.d.ts +10 -0
- package/dist/src/components/NumberInput.d.ts +12 -0
- package/dist/src/components/OTPInput.d.ts +12 -0
- package/dist/src/components/OgCard.d.ts +33 -0
- package/dist/src/components/Option.d.ts +20 -0
- package/dist/src/components/Particle.d.ts +20 -0
- package/dist/src/components/PasswordInput.d.ts +3 -0
- package/dist/src/components/ProgressBar.d.ts +14 -0
- package/dist/src/components/Pulse.d.ts +12 -0
- package/dist/src/components/RadioButton.d.ts +14 -0
- package/dist/src/components/RevealFx.d.ts +15 -0
- package/dist/src/components/Row.d.ts +6 -0
- package/dist/src/components/ScrollContainer.d.ts +8 -0
- package/dist/src/components/ScrollLock.integration.test.d.ts +1 -0
- package/dist/src/components/ScrollToTop.d.ts +6 -0
- package/dist/src/components/Scroller.d.ts +13 -0
- package/dist/src/components/SegmentedControl.d.ts +17 -0
- package/dist/src/components/Select.d.ts +18 -0
- package/dist/src/components/ShineFx.d.ts +12 -0
- package/dist/src/components/Skeleton.d.ts +12 -0
- package/dist/src/components/Slider.d.ts +16 -0
- package/dist/src/components/SmartLink.d.ts +17 -0
- package/dist/src/components/Spinner.d.ts +10 -0
- package/dist/src/components/SplitView.d.ts +15 -0
- package/dist/src/components/SplitView.js +79 -0
- package/dist/src/components/StatusIndicator.d.ts +11 -0
- package/dist/src/components/StyleOverlay.d.ts +9 -0
- package/dist/src/components/StylePanel.d.ts +7 -0
- package/dist/src/components/Swiper.d.ts +16 -0
- package/dist/src/components/Switch.d.ts +16 -0
- package/dist/src/components/Table.d.ts +15 -0
- package/dist/src/components/Tag.d.ts +15 -0
- package/dist/src/components/TagInput.d.ts +8 -0
- package/dist/src/components/Textarea.d.ts +22 -0
- package/dist/src/components/ThemeSwitcher.d.ts +3 -0
- package/dist/src/components/TiltFx.d.ts +9 -0
- package/dist/src/components/Timeline.d.ts +17 -0
- package/dist/src/components/Toast.d.ts +11 -0
- package/dist/src/components/Toaster.d.ts +12 -0
- package/dist/src/components/ToggleButton.d.ts +23 -0
- package/dist/src/components/Tooltip.d.ts +12 -0
- package/dist/src/components/TypeFx.d.ts +14 -0
- package/dist/src/components/User.d.ts +15 -0
- package/dist/src/components/UserMenu.d.ts +12 -0
- package/dist/src/components/WeatherFx.d.ts +17 -0
- package/dist/src/components/index.d.ts +120 -0
- package/dist/src/contexts/DataThemeProvider.d.ts +25 -0
- package/dist/src/contexts/ThemeProvider.d.ts +48 -0
- package/dist/src/contexts/ToastProvider.d.ts +17 -0
- package/dist/src/contexts/index.d.ts +5 -0
- package/dist/src/data/emoji-data.json +16062 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/modules/code/CodeBlock.d.ts +5 -0
- package/dist/src/modules/code/CodeBlock.impl.d.ts +33 -0
- package/dist/src/modules/data/BarChart.d.ts +5 -0
- package/dist/src/modules/data/BarChart.impl.d.ts +11 -0
- package/dist/src/modules/data/ChartHeader.d.ts +13 -0
- package/dist/src/modules/data/ChartStatus.d.ts +9 -0
- package/dist/src/modules/data/DataTooltip.d.ts +15 -0
- package/dist/src/modules/data/Gradient.d.ts +31 -0
- package/dist/src/modules/data/Legend.d.ts +14 -0
- package/dist/src/modules/data/LineBarChart.d.ts +5 -0
- package/dist/src/modules/data/LineBarChart.impl.d.ts +11 -0
- package/dist/src/modules/data/LineChart.d.ts +5 -0
- package/dist/src/modules/data/LineChart.impl.d.ts +16 -0
- package/dist/src/modules/data/LinearGauge.d.ts +17 -0
- package/dist/src/modules/data/PieChart.d.ts +5 -0
- package/dist/src/modules/data/PieChart.impl.d.ts +17 -0
- package/dist/src/modules/data/RadialGauge.d.ts +24 -0
- package/dist/src/modules/data/Swatch.d.ts +8 -0
- package/dist/src/modules/data/index.d.ts +13 -0
- package/dist/src/modules/data/interfaces.d.ts +52 -0
- package/dist/src/modules/data/utils/formatDate.d.ts +11 -0
- package/dist/src/modules/index.d.ts +7 -0
- package/dist/src/modules/media/MediaUpload.d.ts +5 -0
- package/dist/src/modules/media/MediaUpload.impl.d.ts +23 -0
- package/dist/src/modules/navigation/HeadingLink.d.ts +10 -0
- package/dist/src/modules/navigation/HeadingNav.d.ts +7 -0
- package/dist/src/modules/navigation/Kbar.d.ts +33 -0
- package/dist/src/modules/navigation/MegaMenu.d.ts +27 -0
- package/dist/src/modules/navigation/MobileMegaMenu.d.ts +27 -0
- package/dist/src/modules/navigation/index.d.ts +5 -0
- package/dist/src/utils/MissingDependency.d.ts +6 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/styles/size.scss +20 -0
- package/dist/test/dialogTestUtils.d.ts +2 -0
- package/dist/test/dialogTestUtils.d.ts.map +1 -0
- package/dist/test/dialogTestUtils.js +12 -0
- package/dist/test/dialogTestUtils.js.map +1 -0
- package/dist/test/setup.d.ts +2 -0
- package/dist/test/setup.d.ts.map +1 -0
- package/dist/test/setup.js +59 -0
- package/dist/test/setup.js.map +1 -0
- package/dist/tokens/layout.scss +5 -0
- package/dist/utils/MissingDependency.d.ts +7 -0
- package/dist/utils/MissingDependency.d.ts.map +1 -0
- package/dist/utils/MissingDependency.js +6 -0
- package/dist/utils/MissingDependency.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +35 -13
- package/tsconfig.vitest.json +20 -0
- package/vitest.config.ts +19 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CondensedTShirtSizes } from "@/types";
|
|
2
|
+
import { Card } from ".";
|
|
3
|
+
export interface OgServiceConfig {
|
|
4
|
+
proxyImageUrl?: (url: string) => string;
|
|
5
|
+
proxyFaviconUrl?: (url: string) => string;
|
|
6
|
+
fetchOgUrl?: string;
|
|
7
|
+
proxyOgUrl?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface OgData {
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
faviconUrl: string;
|
|
13
|
+
image: string;
|
|
14
|
+
url: string;
|
|
15
|
+
}
|
|
16
|
+
interface OgCardProps extends Omit<React.ComponentProps<typeof Card>, "title"> {
|
|
17
|
+
url?: string;
|
|
18
|
+
sizes?: string;
|
|
19
|
+
size?: CondensedTShirtSizes;
|
|
20
|
+
ogData?: Partial<OgData> | null;
|
|
21
|
+
direction?: "column" | "row" | "column-reverse" | "row-reverse";
|
|
22
|
+
serviceConfig?: OgServiceConfig;
|
|
23
|
+
title?: string | false;
|
|
24
|
+
description?: string | false;
|
|
25
|
+
favicon?: string | false;
|
|
26
|
+
image?: string | false;
|
|
27
|
+
cardUrl?: string | false;
|
|
28
|
+
}
|
|
29
|
+
declare const OgCard: {
|
|
30
|
+
({ url, ogData: providedOgData, direction, sizes, size, serviceConfig, title, description, favicon, image, cardUrl, ...card }: OgCardProps): import("react/jsx-runtime").JSX.Element | null;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
export { OgCard };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Row } from ".";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface OptionProps extends Omit<React.ComponentProps<typeof Row>, "onClick"> {
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
href?: string;
|
|
6
|
+
value: string;
|
|
7
|
+
hasPrefix?: React.ReactNode;
|
|
8
|
+
hasSuffix?: React.ReactNode;
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
danger?: boolean;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
highlighted?: boolean;
|
|
14
|
+
tabIndex?: number;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
onClick?: (value: string) => void;
|
|
17
|
+
onLinkClick?: () => void;
|
|
18
|
+
}
|
|
19
|
+
declare const Option: React.ForwardRefExoticComponent<Omit<OptionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export { Option };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SpacingToken } from "../types";
|
|
3
|
+
import { DisplayProps } from "../interfaces";
|
|
4
|
+
import { Flex } from ".";
|
|
5
|
+
interface ParticleProps extends React.ComponentProps<typeof Flex> {
|
|
6
|
+
density?: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
size?: SpacingToken;
|
|
9
|
+
speed?: number;
|
|
10
|
+
interactive?: boolean;
|
|
11
|
+
mode?: "repel" | "attract";
|
|
12
|
+
intensity?: number;
|
|
13
|
+
opacity?: DisplayProps["opacity"];
|
|
14
|
+
reducedMotion?: boolean | "auto";
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
declare const Particle: React.ForwardRefExoticComponent<Omit<ParticleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export { Particle };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Flex } from ".";
|
|
3
|
+
import { StyleProps } from "@/interfaces";
|
|
4
|
+
interface ProgressBarProps extends React.ComponentProps<typeof Flex> {
|
|
5
|
+
value: number;
|
|
6
|
+
min?: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
label?: boolean;
|
|
9
|
+
barBackground?: StyleProps["solid"];
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
declare const ProgressBar: React.ForwardRefExoticComponent<Omit<ProgressBarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export { ProgressBar };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Row } from ".";
|
|
3
|
+
import { CondensedTShirtSizes, ColorScheme } from "../types";
|
|
4
|
+
interface PulseProps extends React.ComponentProps<typeof Row> {
|
|
5
|
+
variant?: ColorScheme;
|
|
6
|
+
size?: CondensedTShirtSizes;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
declare const Pulse: import("react").ForwardRefExoticComponent<Omit<PulseProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export { Pulse };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InteractiveDetailsProps } from ".";
|
|
3
|
+
interface RadioButtonProps extends Omit<InteractiveDetailsProps, "onClick">, React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
className?: string;
|
|
6
|
+
isChecked?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onToggle?: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const RadioButton: React.FC<RadioButtonProps>;
|
|
13
|
+
export { RadioButton };
|
|
14
|
+
export type { RadioButtonProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SpacingToken } from "../types";
|
|
3
|
+
import { Flex } from ".";
|
|
4
|
+
interface RevealFxProps extends React.ComponentProps<typeof Flex> {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
speed?: "slow" | "medium" | "fast" | number;
|
|
7
|
+
delay?: number;
|
|
8
|
+
revealedByDefault?: boolean;
|
|
9
|
+
translateY?: number | SpacingToken;
|
|
10
|
+
trigger?: boolean;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const RevealFx: React.ForwardRefExoticComponent<Omit<RevealFxProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export { RevealFx };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Flex } from ".";
|
|
2
|
+
export interface RowProps extends React.ComponentProps<typeof Flex> {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
declare const Row: import("react").ForwardRefExoticComponent<Omit<RowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { Row };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Row } from ".";
|
|
3
|
+
export interface ScrollContainerProps extends React.ComponentProps<typeof Row> {
|
|
4
|
+
items: React.ReactNode[];
|
|
5
|
+
controlPlacement?: "top-start" | "top-center" | "top-end" | "top-between" | "bottom-start" | "bottom-center" | "bottom-end" | "bottom-between";
|
|
6
|
+
}
|
|
7
|
+
declare const ScrollContainer: React.FC<ScrollContainerProps>;
|
|
8
|
+
export { ScrollContainer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Flex } from ".";
|
|
2
|
+
interface ScrollToTopProps extends React.ComponentProps<typeof Flex> {
|
|
3
|
+
offset?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const ScrollToTop: ({ children, offset, className, ...rest }: ScrollToTopProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Flex, BaseColor } from ".";
|
|
3
|
+
import { RadiusSize } from "@/types";
|
|
4
|
+
interface ScrollerProps extends React.ComponentProps<typeof Flex> {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
direction?: "row" | "column";
|
|
7
|
+
fadeColor?: BaseColor;
|
|
8
|
+
onItemClick?: (index: number) => void;
|
|
9
|
+
radius?: RadiusSize;
|
|
10
|
+
}
|
|
11
|
+
declare const Scroller: React.FC<ScrollerProps>;
|
|
12
|
+
export { Scroller };
|
|
13
|
+
export type { ScrollerProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Scroller, ToggleButtonProps } from ".";
|
|
2
|
+
interface ButtonOption extends Omit<ToggleButtonProps, "selected"> {
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
interface SegmentedControlProps extends Omit<React.ComponentProps<typeof Scroller>, "onToggle"> {
|
|
6
|
+
buttons: ButtonOption[];
|
|
7
|
+
onToggle: (value: string, event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
+
defaultSelected?: string;
|
|
9
|
+
fillWidth?: boolean;
|
|
10
|
+
selected?: string;
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
declare const SegmentedControl: React.FC<SegmentedControlProps>;
|
|
16
|
+
export { SegmentedControl };
|
|
17
|
+
export type { SegmentedControlProps, ButtonOption };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { InputProps, OptionProps, DropdownWrapperProps } from ".";
|
|
3
|
+
import { Placement } from "@floating-ui/react-dom";
|
|
4
|
+
type SelectOptionType = Omit<OptionProps, "selected">;
|
|
5
|
+
interface SelectProps extends Omit<InputProps, "onSelect" | "value">, Pick<DropdownWrapperProps, "minHeight" | "minWidth" | "maxWidth"> {
|
|
6
|
+
options: SelectOptionType[];
|
|
7
|
+
value?: string | string[];
|
|
8
|
+
emptyState?: ReactNode;
|
|
9
|
+
onSelect?: (value: any) => void;
|
|
10
|
+
placement?: Placement;
|
|
11
|
+
searchable?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
fillWidth?: boolean;
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export { Select };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Text } from ".";
|
|
3
|
+
export interface ShineFxProps extends React.ComponentProps<typeof Text> {
|
|
4
|
+
speed?: number;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
inverse?: boolean;
|
|
7
|
+
baseOpacity?: number;
|
|
8
|
+
reducedMotion?: boolean | "auto";
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const ShineFx: React.FC<ShineFxProps>;
|
|
12
|
+
export { ShineFx };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Flex } from ".";
|
|
3
|
+
interface SkeletonProps extends React.ComponentProps<typeof Flex> {
|
|
4
|
+
shape: "line" | "circle" | "block";
|
|
5
|
+
width?: "xl" | "l" | "m" | "s" | "xs";
|
|
6
|
+
height?: "xl" | "l" | "m" | "s" | "xs";
|
|
7
|
+
delay?: "1" | "2" | "3" | "4" | "5" | "6";
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Skeleton: React.FC<SkeletonProps>;
|
|
12
|
+
export { Skeleton };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface SliderProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> {
|
|
3
|
+
value: number;
|
|
4
|
+
onChange: (value: number) => void;
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
label?: string;
|
|
9
|
+
showValue?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLInputElement>>;
|
|
15
|
+
export { Slider };
|
|
16
|
+
export type { SliderProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { IconName } from "../icons";
|
|
3
|
+
interface CommonProps {
|
|
4
|
+
prefixIcon?: IconName;
|
|
5
|
+
suffixIcon?: IconName;
|
|
6
|
+
fillWidth?: boolean;
|
|
7
|
+
iconSize?: "xs" | "s" | "m" | "l" | "xl";
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
unstyled?: boolean;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
href?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export type SmartLinkProps = CommonProps & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
16
|
+
declare const SmartLink: React.ForwardRefExoticComponent<CommonProps & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLAnchorElement>>;
|
|
17
|
+
export { SmartLink };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Flex } from ".";
|
|
3
|
+
interface SpinnerProps extends React.ComponentProps<typeof Flex> {
|
|
4
|
+
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const Spinner: React.ForwardRefExoticComponent<Omit<SpinnerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export { Spinner };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Row } from '@once-ui-system/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
interface SplitViewProps extends React.ComponentProps<typeof Row> {
|
|
4
|
+
leftPanel: ReactNode;
|
|
5
|
+
rightPanel: ReactNode;
|
|
6
|
+
defaultSplit?: number;
|
|
7
|
+
minSplit?: number;
|
|
8
|
+
maxSplit?: number;
|
|
9
|
+
}
|
|
10
|
+
declare function SplitView({ leftPanel, rightPanel, defaultSplit, minSplit, maxSplit, ...flex }: SplitViewProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare namespace SplitView {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
export { SplitView };
|
|
15
|
+
export type { SplitViewProps };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Row, Card, Column } from '@once-ui-system/core';
|
|
4
|
+
import { useState, useEffect, useRef } from 'react';
|
|
5
|
+
function useResizeHandle(containerRef, direction) {
|
|
6
|
+
const [splitRatio, setSplitRatio] = useState(0.3);
|
|
7
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
const handleMouseMove = (e) => {
|
|
10
|
+
if (!isDragging || !containerRef.current)
|
|
11
|
+
return;
|
|
12
|
+
const container = containerRef.current;
|
|
13
|
+
const rect = container.getBoundingClientRect();
|
|
14
|
+
let newRatio;
|
|
15
|
+
if (direction === 'row') {
|
|
16
|
+
// Horizontal split: calculate from left
|
|
17
|
+
newRatio = (e.clientX - rect.left) / rect.width;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
// Vertical split: calculate from top
|
|
21
|
+
newRatio = (e.clientY - rect.top) / rect.height;
|
|
22
|
+
}
|
|
23
|
+
setSplitRatio(Math.max(0.2, Math.min(0.8, newRatio)));
|
|
24
|
+
};
|
|
25
|
+
const handleMouseUp = () => {
|
|
26
|
+
setIsDragging(false);
|
|
27
|
+
};
|
|
28
|
+
if (isDragging) {
|
|
29
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
30
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
31
|
+
document.body.style.cursor = direction === 'row' ? 'col-resize' : 'row-resize';
|
|
32
|
+
document.body.style.userSelect = 'none';
|
|
33
|
+
}
|
|
34
|
+
return () => {
|
|
35
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
36
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
37
|
+
document.body.style.cursor = '';
|
|
38
|
+
document.body.style.userSelect = '';
|
|
39
|
+
};
|
|
40
|
+
}, [isDragging, direction]);
|
|
41
|
+
return { splitRatio, isDragging, setIsDragging };
|
|
42
|
+
}
|
|
43
|
+
function SplitView({ leftPanel, rightPanel, defaultSplit = 0.3, minSplit = 0.2, maxSplit = 0.8, ...flex }) {
|
|
44
|
+
const containerRef = useRef(null);
|
|
45
|
+
const [direction, setDirection] = useState('row');
|
|
46
|
+
const { splitRatio, isDragging, setIsDragging } = useResizeHandle(containerRef, direction);
|
|
47
|
+
// Detect direction from flex props or responsive breakpoints
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
const updateDirection = () => {
|
|
50
|
+
if (!containerRef.current)
|
|
51
|
+
return;
|
|
52
|
+
const computedStyle = window.getComputedStyle(containerRef.current);
|
|
53
|
+
const flexDir = computedStyle.flexDirection;
|
|
54
|
+
setDirection(flexDir === 'column' ? 'column' : 'row');
|
|
55
|
+
};
|
|
56
|
+
updateDirection();
|
|
57
|
+
window.addEventListener('resize', updateDirection);
|
|
58
|
+
return () => window.removeEventListener('resize', updateDirection);
|
|
59
|
+
}, []);
|
|
60
|
+
const isHorizontal = direction === 'row';
|
|
61
|
+
const splitPercentage = `${splitRatio * 100}%`;
|
|
62
|
+
return (_jsxs(Row, { ref: containerRef, fill: true, ...flex, children: [_jsx(Column, { fill: true, style: {
|
|
63
|
+
[isHorizontal ? 'width' : 'height']: splitPercentage,
|
|
64
|
+
[isHorizontal ? 'minWidth' : 'minHeight']: 0,
|
|
65
|
+
overflow: 'auto',
|
|
66
|
+
}, children: leftPanel }), _jsx(Row, { fillHeight: isHorizontal, fillWidth: !isHorizontal, minWidth: isHorizontal ? "12" : undefined, minHeight: !isHorizontal ? "12" : undefined, paddingX: isHorizontal ? "8" : undefined, paddingY: !isHorizontal ? "8" : undefined, center: true, onMouseDown: () => setIsDragging(true), style: {
|
|
67
|
+
cursor: isHorizontal ? 'col-resize' : 'row-resize',
|
|
68
|
+
userSelect: 'none',
|
|
69
|
+
}, children: _jsx(Row, { fillWidth: isHorizontal, fillHeight: !isHorizontal, height: isHorizontal ? 8 : undefined, width: !isHorizontal ? 8 : undefined, children: _jsx(Card, { fill: true, background: isDragging ? "neutral-strong" : "neutral-weak", border: "neutral-alpha-weak", radius: "full", style: {
|
|
70
|
+
cursor: isHorizontal ? 'col-resize' : 'row-resize',
|
|
71
|
+
transition: 'background 0.2s ease',
|
|
72
|
+
} }) }) }), _jsx(Column, { fill: true, style: {
|
|
73
|
+
[isHorizontal ? 'width' : 'height']: `${(1 - splitRatio) * 100}%`,
|
|
74
|
+
[isHorizontal ? 'minWidth' : 'minHeight']: 0,
|
|
75
|
+
overflow: 'auto',
|
|
76
|
+
}, children: rightPanel })] }));
|
|
77
|
+
}
|
|
78
|
+
SplitView.displayName = "SplitView";
|
|
79
|
+
export { SplitView };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Flex } from ".";
|
|
3
|
+
interface StatusIndicatorProps extends React.ComponentProps<typeof Flex> {
|
|
4
|
+
size?: "s" | "m" | "l";
|
|
5
|
+
color: "blue" | "indigo" | "violet" | "magenta" | "pink" | "red" | "orange" | "yellow" | "moss" | "green" | "emerald" | "aqua" | "cyan" | "gray";
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
declare const StatusIndicator: React.ForwardRefExoticComponent<Omit<StatusIndicatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export { StatusIndicator };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconButton, Flex } from ".";
|
|
2
|
+
import { DisplayProps } from "../interfaces";
|
|
3
|
+
interface StyleOverlayProps extends React.ComponentProps<typeof Flex> {
|
|
4
|
+
iconButtonProps?: Partial<React.ComponentProps<typeof IconButton>>;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
zIndex?: DisplayProps["zIndex"];
|
|
7
|
+
}
|
|
8
|
+
declare const StyleOverlay: import("react").ForwardRefExoticComponent<Omit<StyleOverlayProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export { StyleOverlay };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Flex } from ".";
|
|
2
|
+
interface StylePanelProps extends React.ComponentProps<typeof Flex> {
|
|
3
|
+
style?: React.CSSProperties;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const StylePanel: import("react").ForwardRefExoticComponent<Omit<StylePanelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { StylePanel };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Flex } from ".";
|
|
2
|
+
interface SwiperItem {
|
|
3
|
+
slide: string | React.ReactNode;
|
|
4
|
+
alt?: string;
|
|
5
|
+
}
|
|
6
|
+
interface SwiperProps extends React.ComponentProps<typeof Flex> {
|
|
7
|
+
items: SwiperItem[];
|
|
8
|
+
controls?: boolean | "contained";
|
|
9
|
+
priority?: boolean;
|
|
10
|
+
fill?: boolean;
|
|
11
|
+
aspectRatio?: string;
|
|
12
|
+
sizes?: string;
|
|
13
|
+
indicator?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const Swiper: React.FC<SwiperProps>;
|
|
16
|
+
export { Swiper };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InteractiveDetailsProps } from ".";
|
|
3
|
+
interface SwitchProps extends Omit<InteractiveDetailsProps, "onClick">, React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
className?: string;
|
|
6
|
+
isChecked: boolean;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
name?: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
reverse?: boolean;
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
onToggle: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const Switch: React.FC<SwitchProps>;
|
|
16
|
+
export { Switch };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Flex } from ".";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
type TableProps = React.ComponentProps<typeof Flex> & {
|
|
4
|
+
data: {
|
|
5
|
+
headers: {
|
|
6
|
+
content: ReactNode;
|
|
7
|
+
key: string;
|
|
8
|
+
sortable?: boolean;
|
|
9
|
+
}[];
|
|
10
|
+
rows: ReactNode[][];
|
|
11
|
+
};
|
|
12
|
+
onRowClick?: (rowIndex: number) => void;
|
|
13
|
+
};
|
|
14
|
+
declare function Table({ data, onRowClick, ...flex }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Table };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { Flex } from ".";
|
|
3
|
+
import { IconName } from "../icons";
|
|
4
|
+
import { ColorScheme } from "@/types";
|
|
5
|
+
interface TagProps extends React.ComponentProps<typeof Flex> {
|
|
6
|
+
variant?: ColorScheme | "gradient";
|
|
7
|
+
size?: "s" | "m" | "l";
|
|
8
|
+
label?: string;
|
|
9
|
+
prefixIcon?: IconName;
|
|
10
|
+
suffixIcon?: IconName;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare const Tag: React.ForwardRefExoticComponent<Omit<TagProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export { Tag };
|
|
15
|
+
export type { TagProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InputProps } from ".";
|
|
2
|
+
interface TagInputProps extends Omit<InputProps, "onChange" | "value"> {
|
|
3
|
+
value: string[];
|
|
4
|
+
onChange: (value: string[]) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const TagInput: import("react").ForwardRefExoticComponent<TagInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
7
|
+
export { TagInput };
|
|
8
|
+
export type { TagInputProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { TextareaHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
id: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
lines?: number | "auto";
|
|
7
|
+
height?: "xs" | "s" | "m" | "l" | "xl";
|
|
8
|
+
error?: boolean;
|
|
9
|
+
errorMessage?: ReactNode;
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
radius?: "none" | "top" | "right" | "bottom" | "left" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
|
|
12
|
+
className?: string;
|
|
13
|
+
hasPrefix?: ReactNode;
|
|
14
|
+
hasSuffix?: ReactNode;
|
|
15
|
+
characterCount?: boolean;
|
|
16
|
+
resize?: "horizontal" | "vertical" | "both" | "none";
|
|
17
|
+
validate?: (value: ReactNode) => ReactNode | null;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
21
|
+
export { Textarea };
|
|
22
|
+
export type { TextareaProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Flex } from ".";
|
|
3
|
+
interface TiltFxProps extends React.ComponentProps<typeof Flex> {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
intensity?: number;
|
|
6
|
+
reducedMotion?: boolean | "auto";
|
|
7
|
+
}
|
|
8
|
+
declare const TiltFx: React.FC<TiltFxProps>;
|
|
9
|
+
export { TiltFx };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Flex } from ".";
|
|
3
|
+
import { TShirtSizes } from "@/types";
|
|
4
|
+
export interface TimelineItem {
|
|
5
|
+
label?: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
state?: "default" | "active" | "success" | "danger";
|
|
8
|
+
marker?: React.ReactNode;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
interface TimelineProps extends Omit<React.ComponentProps<typeof Flex>, "children"> {
|
|
12
|
+
items: TimelineItem[];
|
|
13
|
+
alignment?: "left" | "right";
|
|
14
|
+
size?: TShirtSizes;
|
|
15
|
+
}
|
|
16
|
+
declare const Timeline: React.FC<TimelineProps>;
|
|
17
|
+
export { Timeline };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ToastProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
variant: "success" | "danger";
|
|
5
|
+
icon?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
action?: React.ReactNode;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export { Toast };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ToasterProps {
|
|
3
|
+
toasts: {
|
|
4
|
+
id: string;
|
|
5
|
+
variant: "success" | "danger";
|
|
6
|
+
message: React.ReactNode;
|
|
7
|
+
action?: React.ReactNode;
|
|
8
|
+
}[];
|
|
9
|
+
removeToast: (id: string) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const Toaster: React.FC<ToasterProps>;
|
|
12
|
+
export { Toaster };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { IconName } from "../icons";
|
|
3
|
+
interface CommonProps {
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
variant?: "ghost" | "outline";
|
|
7
|
+
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
8
|
+
radius?: "none" | "top" | "right" | "bottom" | "left" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
|
|
9
|
+
rounded?: boolean;
|
|
10
|
+
horizontal?: "start" | "center" | "end" | "between";
|
|
11
|
+
fillWidth?: boolean;
|
|
12
|
+
weight?: "default" | "strong";
|
|
13
|
+
truncate?: boolean;
|
|
14
|
+
prefixIcon?: IconName;
|
|
15
|
+
suffixIcon?: IconName;
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
href?: string;
|
|
20
|
+
}
|
|
21
|
+
export type ToggleButtonProps = CommonProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
22
|
+
declare const ToggleButton: React.ForwardRefExoticComponent<CommonProps & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLElement>>;
|
|
23
|
+
export { ToggleButton };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { Row } from ".";
|
|
3
|
+
import { IconName } from "../icons";
|
|
4
|
+
interface TooltipProps extends React.ComponentProps<typeof Row> {
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
prefixIcon?: IconName;
|
|
7
|
+
suffixIcon?: IconName;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
declare const Tooltip: React.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export { Tooltip };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Text } from ".";
|
|
3
|
+
export interface TypeFxProps extends Omit<React.ComponentProps<typeof Text>, 'children'> {
|
|
4
|
+
words: string | string[];
|
|
5
|
+
speed?: number;
|
|
6
|
+
delay?: number;
|
|
7
|
+
hold?: number;
|
|
8
|
+
trigger?: "instant" | "custom";
|
|
9
|
+
onTrigger?: (triggerFn: () => void) => void;
|
|
10
|
+
loop?: boolean;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare const TypeFx: React.FC<TypeFxProps>;
|
|
14
|
+
export { TypeFx };
|