@once-ui-system/core 1.7.7 → 1.7.8
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/Accordion.d.ts +6 -3
- package/dist/components/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion.js +43 -15
- package/dist/components/Accordion.js.map +1 -1
- package/dist/data/emoji-data.json +18 -8
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/src/__tests__/Dialog.test.d.ts +0 -1
- package/dist/src/components/Accordion.d.ts +0 -21
- package/dist/src/components/AccordionGroup.d.ts +0 -15
- package/dist/src/components/Animation.d.ts +0 -33
- package/dist/src/components/Arrow.d.ts +0 -10
- package/dist/src/components/ArrowNavigationContext.d.ts +0 -32
- package/dist/src/components/AutoScroll.d.ts +0 -13
- package/dist/src/components/Avatar.d.ts +0 -20
- package/dist/src/components/AvatarGroup.d.ts +0 -13
- package/dist/src/components/Background.d.ts +0 -48
- package/dist/src/components/Badge.d.ts +0 -16
- package/dist/src/components/Banner.d.ts +0 -5
- package/dist/src/components/BlobFx.d.ts +0 -7
- package/dist/src/components/BlockQuote.d.ts +0 -20
- package/dist/src/components/Button.d.ts +0 -26
- package/dist/src/components/Card.d.ts +0 -12
- package/dist/src/components/Carousel.d.ts +0 -31
- package/dist/src/components/CelebrationFx.d.ts +0 -16
- package/dist/src/components/Checkbox.d.ts +0 -10
- package/dist/src/components/Chip.d.ts +0 -16
- package/dist/src/components/ClientFlex.d.ts +0 -12
- package/dist/src/components/ClientGrid.d.ts +0 -12
- package/dist/src/components/ColorInput.d.ts +0 -10
- package/dist/src/components/Column.d.ts +0 -6
- package/dist/src/components/CompareImage.d.ts +0 -15
- package/dist/src/components/ContextMenu.d.ts +0 -21
- package/dist/src/components/CountFx.d.ts +0 -14
- package/dist/src/components/CountdownFx.d.ts +0 -10
- package/dist/src/components/Cursor.d.ts +0 -7
- package/dist/src/components/CursorCard.d.ts +0 -12
- package/dist/src/components/DateInput.d.ts +0 -17
- package/dist/src/components/DatePicker.d.ts +0 -32
- package/dist/src/components/DateRangeInput.d.ts +0 -14
- package/dist/src/components/DateRangePicker.d.ts +0 -16
- package/dist/src/components/Dialog.d.ts +0 -20
- package/dist/src/components/Dropdown.d.ts +0 -12
- package/dist/src/components/DropdownWrapper.d.ts +0 -28
- package/dist/src/components/ElementType.d.ts +0 -13
- package/dist/src/components/EmojiPicker.d.ts +0 -15
- package/dist/src/components/EmojiPickerDropdown.d.ts +0 -10
- package/dist/src/components/Fade.d.ts +0 -18
- package/dist/src/components/Feedback.d.ts +0 -15
- package/dist/src/components/Flex.d.ts +0 -10
- package/dist/src/components/FlipFx.d.ts +0 -16
- package/dist/src/components/GlitchFx.d.ts +0 -11
- package/dist/src/components/Grid.d.ts +0 -10
- package/dist/src/components/HoloFx.d.ts +0 -31
- package/dist/src/components/Hover.d.ts +0 -13
- package/dist/src/components/HoverCard.d.ts +0 -4
- package/dist/src/components/Icon.d.ts +0 -17
- package/dist/src/components/IconButton.d.ts +0 -22
- package/dist/src/components/InfiniteScroll.d.ts +0 -15
- package/dist/src/components/InlineCode.d.ts +0 -9
- package/dist/src/components/Input.d.ts +0 -23
- package/dist/src/components/InteractiveDetails.d.ts +0 -14
- package/dist/src/components/Kbd.d.ts +0 -11
- package/dist/src/components/Line.d.ts +0 -8
- package/dist/src/components/List.d.ts +0 -10
- package/dist/src/components/ListItem.d.ts +0 -9
- package/dist/src/components/Logo.d.ts +0 -17
- package/dist/src/components/LogoCloud.d.ts +0 -13
- package/dist/src/components/Mask.d.ts +0 -14
- package/dist/src/components/MasonryGrid.d.ts +0 -21
- package/dist/src/components/MatrixFx.d.ts +0 -26
- package/dist/src/components/Media.d.ts +0 -25
- package/dist/src/components/Modal.d.ts +0 -10
- package/dist/src/components/NavIcon.d.ts +0 -10
- package/dist/src/components/NumberInput.d.ts +0 -12
- package/dist/src/components/OTPInput.d.ts +0 -12
- package/dist/src/components/OgCard.d.ts +0 -33
- package/dist/src/components/Option.d.ts +0 -20
- package/dist/src/components/Particle.d.ts +0 -20
- package/dist/src/components/PasswordInput.d.ts +0 -3
- package/dist/src/components/ProgressBar.d.ts +0 -14
- package/dist/src/components/Pulse.d.ts +0 -12
- package/dist/src/components/RadioButton.d.ts +0 -14
- package/dist/src/components/RevealFx.d.ts +0 -15
- package/dist/src/components/Row.d.ts +0 -6
- package/dist/src/components/ScrollContainer.d.ts +0 -8
- package/dist/src/components/ScrollLock.integration.test.d.ts +0 -1
- package/dist/src/components/ScrollToTop.d.ts +0 -6
- package/dist/src/components/Scroller.d.ts +0 -13
- package/dist/src/components/SegmentedControl.d.ts +0 -17
- package/dist/src/components/Select.d.ts +0 -18
- package/dist/src/components/ShineFx.d.ts +0 -12
- package/dist/src/components/Skeleton.d.ts +0 -12
- package/dist/src/components/Slider.d.ts +0 -16
- package/dist/src/components/SmartLink.d.ts +0 -17
- package/dist/src/components/Spinner.d.ts +0 -10
- package/dist/src/components/SplitView.d.ts +0 -15
- package/dist/src/components/SplitView.js +0 -79
- package/dist/src/components/StatusIndicator.d.ts +0 -11
- package/dist/src/components/StyleOverlay.d.ts +0 -9
- package/dist/src/components/StylePanel.d.ts +0 -7
- package/dist/src/components/Swiper.d.ts +0 -16
- package/dist/src/components/Switch.d.ts +0 -16
- package/dist/src/components/Table.d.ts +0 -15
- package/dist/src/components/Tag.d.ts +0 -15
- package/dist/src/components/TagInput.d.ts +0 -8
- package/dist/src/components/Textarea.d.ts +0 -23
- package/dist/src/components/ThemeSwitcher.d.ts +0 -3
- package/dist/src/components/TiltFx.d.ts +0 -9
- package/dist/src/components/Timeline.d.ts +0 -17
- package/dist/src/components/Toast.d.ts +0 -11
- package/dist/src/components/Toaster.d.ts +0 -18
- package/dist/src/components/ToggleButton.d.ts +0 -24
- package/dist/src/components/Tooltip.d.ts +0 -12
- package/dist/src/components/TypeFx.d.ts +0 -14
- package/dist/src/components/User.d.ts +0 -15
- package/dist/src/components/UserMenu.d.ts +0 -12
- package/dist/src/components/WeatherFx.d.ts +0 -17
- package/dist/src/components/index.d.ts +0 -120
- package/dist/src/contexts/DataThemeProvider.d.ts +0 -25
- package/dist/src/contexts/ThemeProvider.d.ts +0 -48
- package/dist/src/contexts/ToastProvider.d.ts +0 -23
- package/dist/src/contexts/index.d.ts +0 -5
- package/dist/src/data/emoji-data.json +0 -16044
- package/dist/src/index.d.ts +0 -9
- package/dist/src/modules/code/CodeBlock.d.ts +0 -5
- package/dist/src/modules/code/CodeBlock.impl.d.ts +0 -33
- package/dist/src/modules/data/BarChart.d.ts +0 -5
- package/dist/src/modules/data/BarChart.impl.d.ts +0 -11
- package/dist/src/modules/data/ChartHeader.d.ts +0 -13
- package/dist/src/modules/data/ChartStatus.d.ts +0 -9
- package/dist/src/modules/data/DataTooltip.d.ts +0 -15
- package/dist/src/modules/data/Gradient.d.ts +0 -31
- package/dist/src/modules/data/Legend.d.ts +0 -14
- package/dist/src/modules/data/LineBarChart.d.ts +0 -5
- package/dist/src/modules/data/LineBarChart.impl.d.ts +0 -11
- package/dist/src/modules/data/LineChart.d.ts +0 -5
- package/dist/src/modules/data/LineChart.impl.d.ts +0 -16
- package/dist/src/modules/data/LinearGauge.d.ts +0 -17
- package/dist/src/modules/data/PieChart.d.ts +0 -5
- package/dist/src/modules/data/PieChart.impl.d.ts +0 -17
- package/dist/src/modules/data/RadialGauge.d.ts +0 -24
- package/dist/src/modules/data/Swatch.d.ts +0 -8
- package/dist/src/modules/data/index.d.ts +0 -13
- package/dist/src/modules/data/interfaces.d.ts +0 -52
- package/dist/src/modules/data/utils/formatDate.d.ts +0 -11
- package/dist/src/modules/index.d.ts +0 -7
- package/dist/src/modules/media/MediaUpload.d.ts +0 -5
- package/dist/src/modules/media/MediaUpload.impl.d.ts +0 -23
- package/dist/src/modules/navigation/HeadingLink.d.ts +0 -10
- package/dist/src/modules/navigation/HeadingNav.d.ts +0 -7
- package/dist/src/modules/navigation/Kbar.d.ts +0 -33
- package/dist/src/modules/navigation/MegaMenu.d.ts +0 -27
- package/dist/src/modules/navigation/MobileMegaMenu.d.ts +0 -27
- package/dist/src/modules/navigation/index.d.ts +0 -5
- package/dist/src/utils/MissingDependency.d.ts +0 -6
- package/dist/src/utils/index.d.ts +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Flex } from ".";
|
|
3
|
-
export interface AccordionHandle
|
|
2
|
+
import { Flex, Column, Row } from ".";
|
|
3
|
+
export interface AccordionHandle {
|
|
4
4
|
toggle: () => void;
|
|
5
5
|
open: () => void;
|
|
6
6
|
close: () => void;
|
|
@@ -16,7 +16,10 @@ interface AccordionProps extends Omit<React.ComponentProps<typeof Flex>, "title"
|
|
|
16
16
|
onToggle?: () => void;
|
|
17
17
|
className?: string;
|
|
18
18
|
style?: React.CSSProperties;
|
|
19
|
+
headerProps?: React.ComponentProps<typeof Row>;
|
|
20
|
+
contentProps?: React.ComponentProps<typeof Column>;
|
|
21
|
+
toggleOnHeaderClick?: boolean;
|
|
19
22
|
}
|
|
20
|
-
declare const Accordion: React.ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & React.RefAttributes<
|
|
23
|
+
declare const Accordion: React.ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
24
|
export { Accordion };
|
|
22
25
|
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../src/components/Accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../src/components/Accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAQ,MAAM,EAAQ,GAAG,EAAE,MAAM,GAAG,CAAC;AAIlD,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,UAAU,cAAe,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,OAAO,CAAC;IAC/E,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACvB,MAAM,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,MAAM,CAAC;IAChD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC;IAC/C,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;IACnD,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,QAAA,MAAM,SAAS,oGAiKd,CAAC;AAGF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,46 +1,74 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useState, forwardRef, useImperativeHandle, useEffect, useCallback } from "react";
|
|
3
|
+
import { useState, forwardRef, useImperativeHandle, useEffect, useCallback, useRef, } from "react";
|
|
4
4
|
import { Icon, Column, Grid, Row } from ".";
|
|
5
5
|
import styles from "./Accordion.module.scss";
|
|
6
6
|
import classNames from "classnames";
|
|
7
|
-
const Accordion = forwardRef(({ title, children, open = false, onToggle, iconRotation = 180, radius = "m", icon = "chevronDown", size = "m", className, style, ...rest }, ref) => {
|
|
7
|
+
const Accordion = forwardRef(({ title, children, open = false, onToggle, iconRotation = 180, radius = "m", icon = "chevronDown", size = "m", className, style, headerProps, contentProps, toggleOnHeaderClick = true, ...rest }, ref) => {
|
|
8
|
+
const headerRef = useRef(null);
|
|
8
9
|
const [isOpen, setIsOpen] = useState(open);
|
|
9
10
|
useEffect(() => {
|
|
10
11
|
setIsOpen(open);
|
|
11
12
|
}, [open]);
|
|
12
|
-
// Use controlled state when onToggle is provided, otherwise use internal state
|
|
13
13
|
const isAccordionOpen = onToggle ? open : isOpen;
|
|
14
14
|
const toggleAccordion = useCallback(() => {
|
|
15
15
|
if (onToggle) {
|
|
16
|
-
// If onToggle is provided, let the parent control the state
|
|
17
16
|
onToggle();
|
|
18
17
|
}
|
|
19
18
|
else {
|
|
20
|
-
// Otherwise, manage state internally
|
|
21
19
|
setIsOpen((prev) => !prev);
|
|
22
20
|
}
|
|
23
21
|
}, [onToggle]);
|
|
24
22
|
useImperativeHandle(ref, () => {
|
|
25
|
-
const
|
|
23
|
+
const node = headerRef.current ?? document.createElement("div");
|
|
24
|
+
return Object.assign(node, {
|
|
26
25
|
toggle: toggleAccordion,
|
|
27
26
|
open: () => setIsOpen(true),
|
|
28
27
|
close: () => setIsOpen(false),
|
|
29
|
-
};
|
|
30
|
-
return Object.assign(document.createElement("div"), methods);
|
|
28
|
+
});
|
|
31
29
|
}, [toggleAccordion]);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
const { className: headerClassName, style: headerStyle, onClick: headerOnClick, onKeyDown: headerOnKeyDown, ref: headerPropsRef, ...headerRest } = headerProps ?? {};
|
|
31
|
+
const { className: contentClassName, ...contentRest } = contentProps ?? {};
|
|
32
|
+
const setHeaderRef = useCallback((node) => {
|
|
33
|
+
headerRef.current = node;
|
|
34
|
+
if (typeof headerPropsRef === "function") {
|
|
35
|
+
headerPropsRef(node);
|
|
36
|
+
}
|
|
37
|
+
else if (headerPropsRef && "current" in headerPropsRef) {
|
|
38
|
+
headerPropsRef.current = node;
|
|
39
|
+
}
|
|
40
|
+
if (typeof ref === "function") {
|
|
41
|
+
ref(node);
|
|
42
|
+
}
|
|
43
|
+
else if (ref && "current" in ref) {
|
|
44
|
+
ref.current = node;
|
|
45
|
+
}
|
|
46
|
+
}, [headerPropsRef, ref]);
|
|
47
|
+
const handleHeaderClick = (e) => {
|
|
48
|
+
headerOnClick?.(e);
|
|
49
|
+
if (e.defaultPrevented || !toggleOnHeaderClick)
|
|
50
|
+
return;
|
|
51
|
+
toggleAccordion();
|
|
52
|
+
};
|
|
53
|
+
const handleHeaderKeyDown = (e) => {
|
|
54
|
+
headerOnKeyDown?.(e);
|
|
55
|
+
if (e.defaultPrevented || !toggleOnHeaderClick)
|
|
56
|
+
return;
|
|
57
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
58
|
+
e.preventDefault();
|
|
59
|
+
toggleAccordion();
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const headerPaddingY = size === "s" ? "8" : size === "m" ? "12" : "16";
|
|
63
|
+
const headerPaddingX = size === "s" ? "12" : size === "m" ? "16" : "20";
|
|
64
|
+
const contentPaddingX = size === "s" ? "12" : size === "m" ? "16" : "20";
|
|
65
|
+
return (_jsxs(Column, { fillWidth: true, children: [_jsxs(Row, { ref: setHeaderRef, tabIndex: headerRest.tabIndex ?? 0, className: classNames(styles.accordion, className, headerClassName), style: { ...style, ...headerStyle }, cursor: "interactive", transition: "macro-medium", paddingY: headerPaddingY, paddingX: headerPaddingX, vertical: "center", horizontal: "between", onClick: handleHeaderClick, onKeyDown: handleHeaderKeyDown, "aria-expanded": isAccordionOpen, "aria-controls": "accordion-content", radius: radius, role: "button", ...headerRest, children: [_jsx(Row, { fillWidth: true, textVariant: "heading-strong-s", children: title }), _jsx(Icon, { name: icon, size: size === "s" ? "xs" : "s", onBackground: isAccordionOpen ? "neutral-strong" : "neutral-weak", style: {
|
|
38
66
|
display: "flex",
|
|
39
67
|
transform: isAccordionOpen ? `rotate(${iconRotation}deg)` : "rotate(0deg)",
|
|
40
68
|
transition: "var(--transition-micro-medium)",
|
|
41
69
|
} })] }), _jsx(Grid, { id: "accordion-content", fillWidth: true, transition: "macro-medium", style: {
|
|
42
70
|
gridTemplateRows: isAccordionOpen ? "1fr" : "0fr",
|
|
43
|
-
}, "aria-hidden": !isAccordionOpen, children: _jsx(Row, { fillWidth: true, minHeight: 0, overflow: "hidden", children: _jsx(Column, { fillWidth: true,
|
|
71
|
+
}, "aria-hidden": !isAccordionOpen, children: _jsx(Row, { fillWidth: true, minHeight: 0, overflow: "hidden", children: _jsx(Column, { fillWidth: true, className: contentClassName, paddingX: contentPaddingX, paddingTop: "8", paddingBottom: "16", ...contentRest, ...rest, children: children }) }) })] }));
|
|
44
72
|
});
|
|
45
73
|
Accordion.displayName = "Accordion";
|
|
46
74
|
export { Accordion };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../src/components/Accordion.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../src/components/Accordion.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EACZ,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,SAAS,EACT,WAAW,EACX,MAAM,GACP,MAAM,OAAO,CAAC;AACf,OAAO,EAAQ,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC;AAClD,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAC7C,OAAO,UAAU,MAAM,YAAY,CAAC;AAwBpC,MAAM,SAAS,GAAG,UAAU,CAC1B,CACE,EACE,KAAK,EACL,QAAQ,EACR,IAAI,GAA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|
6305
|
+
},
|
|
6296
6306
|
{
|
|
6297
6307
|
"char": "🐸",
|
|
6298
6308
|
"description": "frog",
|
|
@@ -8466,14 +8476,6 @@
|
|
|
8466
8476
|
],
|
|
8467
8477
|
"tags": []
|
|
8468
8478
|
},
|
|
8469
|
-
{
|
|
8470
|
-
"char": "🚏",
|
|
8471
|
-
"description": "bus stop",
|
|
8472
|
-
"aliases": [
|
|
8473
|
-
"busstop"
|
|
8474
|
-
],
|
|
8475
|
-
"tags": []
|
|
8476
|
-
},
|
|
8477
8479
|
{
|
|
8478
8480
|
"char": "🛣️",
|
|
8479
8481
|
"description": "motorway",
|
|
@@ -15078,6 +15080,14 @@
|
|
|
15078
15080
|
],
|
|
15079
15081
|
"tags": []
|
|
15080
15082
|
},
|
|
15083
|
+
{
|
|
15084
|
+
"char": "🇱🇰",
|
|
15085
|
+
"description": "flag: Sri Lanka",
|
|
15086
|
+
"aliases": [
|
|
15087
|
+
"sri_lanka"
|
|
15088
|
+
],
|
|
15089
|
+
"tags": []
|
|
15090
|
+
},
|
|
15081
15091
|
{
|
|
15082
15092
|
"char": "🇱🇷",
|
|
15083
15093
|
"description": "flag: Liberia",
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Flex } from ".";
|
|
3
|
-
export interface AccordionHandle extends HTMLDivElement {
|
|
4
|
-
toggle: () => void;
|
|
5
|
-
open: () => void;
|
|
6
|
-
close: () => void;
|
|
7
|
-
}
|
|
8
|
-
interface AccordionProps extends Omit<React.ComponentProps<typeof Flex>, "title"> {
|
|
9
|
-
title: React.ReactNode;
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
icon?: string;
|
|
12
|
-
iconRotation?: number;
|
|
13
|
-
size?: "s" | "m" | "l";
|
|
14
|
-
radius?: "xs" | "s" | "m" | "l" | "xl" | "full";
|
|
15
|
-
open?: boolean;
|
|
16
|
-
onToggle?: () => void;
|
|
17
|
-
className?: string;
|
|
18
|
-
style?: React.CSSProperties;
|
|
19
|
-
}
|
|
20
|
-
declare const Accordion: React.ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & React.RefAttributes<AccordionHandle>>;
|
|
21
|
-
export { Accordion };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Flex } from ".";
|
|
3
|
-
export type AccordionItem = {
|
|
4
|
-
title: React.ReactNode;
|
|
5
|
-
content: React.ReactNode;
|
|
6
|
-
};
|
|
7
|
-
export interface AccordionGroupProps extends React.ComponentProps<typeof Flex> {
|
|
8
|
-
items: AccordionItem[];
|
|
9
|
-
size?: "s" | "m" | "l";
|
|
10
|
-
autoCollapse?: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
}
|
|
14
|
-
declare const AccordionGroup: React.FC<AccordionGroupProps>;
|
|
15
|
-
export { AccordionGroup };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, CSSProperties } from "react";
|
|
2
|
-
import { Placement } from "@floating-ui/react-dom";
|
|
3
|
-
import { Flex } from ".";
|
|
4
|
-
import { SpacingToken } from "@/types";
|
|
5
|
-
type TriggerType = "hover" | "click" | "manual";
|
|
6
|
-
type EasingCurve = "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "spring" | "bounce";
|
|
7
|
-
export interface AnimationProps extends React.ComponentProps<typeof Flex> {
|
|
8
|
-
trigger?: ReactNode;
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
fade?: number;
|
|
11
|
-
scale?: number;
|
|
12
|
-
blur?: number;
|
|
13
|
-
slideUp?: number;
|
|
14
|
-
slideDown?: number;
|
|
15
|
-
slideLeft?: number;
|
|
16
|
-
slideRight?: number;
|
|
17
|
-
zoomIn?: number;
|
|
18
|
-
zoomOut?: number;
|
|
19
|
-
triggerType?: TriggerType;
|
|
20
|
-
active?: boolean;
|
|
21
|
-
delay?: number;
|
|
22
|
-
duration?: number;
|
|
23
|
-
easing?: EasingCurve;
|
|
24
|
-
transformOrigin?: string;
|
|
25
|
-
childrenPosition?: CSSProperties["position"];
|
|
26
|
-
reverse?: boolean;
|
|
27
|
-
touch?: "disable" | "enable" | "display";
|
|
28
|
-
portal?: boolean;
|
|
29
|
-
placement?: Placement;
|
|
30
|
-
offsetDistance?: SpacingToken;
|
|
31
|
-
}
|
|
32
|
-
declare const Animation: React.ForwardRefExoticComponent<Omit<AnimationProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
export { Animation };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Flex } from ".";
|
|
2
|
-
interface ArrowProps extends React.ComponentProps<typeof Flex> {
|
|
3
|
-
trigger: string;
|
|
4
|
-
scale?: number;
|
|
5
|
-
color?: "onBackground" | "onSolid";
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const Arrow: React.FC<ArrowProps>;
|
|
10
|
-
export { Arrow };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { ArrowNavigationOptions } from "../hooks/useArrowNavigation";
|
|
3
|
-
interface ArrowNavigationContextType {
|
|
4
|
-
focusedIndex: number;
|
|
5
|
-
setFocusedIndex: (index: number) => void;
|
|
6
|
-
handleKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
|
|
7
|
-
applyHighlightedState: () => void;
|
|
8
|
-
}
|
|
9
|
-
export interface ArrowNavigationProps extends Omit<ArrowNavigationOptions, "containerRef"> {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
className?: string;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
role?: string;
|
|
14
|
-
"aria-label"?: string;
|
|
15
|
-
trapFocus?: boolean;
|
|
16
|
-
focusTrapActive?: boolean;
|
|
17
|
-
onEscape?: () => void;
|
|
18
|
-
autoFocusTrap?: boolean;
|
|
19
|
-
restoreFocus?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const ArrowNavigation: React.FC<ArrowNavigationProps>;
|
|
22
|
-
/**
|
|
23
|
-
* Hook to access the ArrowNavigation context
|
|
24
|
-
*/
|
|
25
|
-
export declare const useArrowNavigationContext: () => ArrowNavigationContextType;
|
|
26
|
-
/**
|
|
27
|
-
* Higher-order component to make a component navigable with arrow keys
|
|
28
|
-
*/
|
|
29
|
-
export declare function withArrowNavigation<P extends object>(Component: React.ComponentType<P>, options: Omit<ArrowNavigationProps, "children">): React.FC<P & {
|
|
30
|
-
children?: ReactNode;
|
|
31
|
-
}>;
|
|
32
|
-
export default ArrowNavigation;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Row } from ".";
|
|
2
|
-
import React from "react";
|
|
3
|
-
interface AutoScrollProps extends React.ComponentProps<typeof Row> {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
speed?: "slow" | "medium" | "fast";
|
|
6
|
-
hover?: "slow" | "pause" | "none";
|
|
7
|
-
reverse?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
scrollGap?: number | string;
|
|
11
|
-
}
|
|
12
|
-
declare const AutoScroll: React.ForwardRefExoticComponent<Omit<AutoScrollProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export { AutoScroll };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Flex } from ".";
|
|
3
|
-
import { IconName } from "@/icons";
|
|
4
|
-
interface AvatarProps extends React.ComponentProps<typeof Flex> {
|
|
5
|
-
size?: "xs" | "s" | "m" | "l" | "xl" | number;
|
|
6
|
-
value?: string;
|
|
7
|
-
src?: string;
|
|
8
|
-
unoptimized?: boolean;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
empty?: boolean;
|
|
11
|
-
icon?: IconName;
|
|
12
|
-
statusIndicator?: {
|
|
13
|
-
color: "green" | "yellow" | "red" | "gray";
|
|
14
|
-
};
|
|
15
|
-
style?: React.CSSProperties;
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
export { Avatar };
|
|
20
|
-
export type { AvatarProps };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AvatarProps, Flex } from ".";
|
|
3
|
-
interface AvatarGroupProps extends React.ComponentProps<typeof Flex> {
|
|
4
|
-
avatars: AvatarProps[];
|
|
5
|
-
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
6
|
-
reverse?: boolean;
|
|
7
|
-
limit?: number;
|
|
8
|
-
className?: string;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
}
|
|
11
|
-
declare const AvatarGroup: React.ForwardRefExoticComponent<Omit<AvatarGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export { AvatarGroup };
|
|
13
|
-
export type { AvatarGroupProps };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Flex, MaskProps } from ".";
|
|
3
|
-
import { DisplayProps } from "../interfaces";
|
|
4
|
-
import { SpacingToken } from "../types";
|
|
5
|
-
interface GradientProps {
|
|
6
|
-
display?: boolean;
|
|
7
|
-
opacity?: DisplayProps["opacity"];
|
|
8
|
-
x?: number;
|
|
9
|
-
y?: number;
|
|
10
|
-
width?: number;
|
|
11
|
-
height?: number;
|
|
12
|
-
tilt?: number;
|
|
13
|
-
colorStart?: string;
|
|
14
|
-
colorEnd?: string;
|
|
15
|
-
}
|
|
16
|
-
interface DotsProps {
|
|
17
|
-
display?: boolean;
|
|
18
|
-
opacity?: DisplayProps["opacity"];
|
|
19
|
-
color?: string;
|
|
20
|
-
size?: SpacingToken;
|
|
21
|
-
}
|
|
22
|
-
interface GridProps {
|
|
23
|
-
display?: boolean;
|
|
24
|
-
opacity?: DisplayProps["opacity"];
|
|
25
|
-
color?: string;
|
|
26
|
-
width?: string;
|
|
27
|
-
height?: string;
|
|
28
|
-
}
|
|
29
|
-
interface LinesProps {
|
|
30
|
-
display?: boolean;
|
|
31
|
-
opacity?: DisplayProps["opacity"];
|
|
32
|
-
size?: SpacingToken;
|
|
33
|
-
thickness?: number;
|
|
34
|
-
angle?: number;
|
|
35
|
-
color?: string;
|
|
36
|
-
}
|
|
37
|
-
interface BackgroundProps extends React.ComponentProps<typeof Flex> {
|
|
38
|
-
gradient?: GradientProps;
|
|
39
|
-
dots?: DotsProps;
|
|
40
|
-
grid?: GridProps;
|
|
41
|
-
lines?: LinesProps;
|
|
42
|
-
mask?: MaskProps;
|
|
43
|
-
className?: string;
|
|
44
|
-
style?: React.CSSProperties;
|
|
45
|
-
children?: React.ReactNode;
|
|
46
|
-
}
|
|
47
|
-
declare const Background: React.ForwardRefExoticComponent<Omit<BackgroundProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
-
export { Background };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Flex } from ".";
|
|
3
|
-
import { IconName } from "../icons";
|
|
4
|
-
export interface BadgeProps extends React.ComponentProps<typeof Flex> {
|
|
5
|
-
title?: string;
|
|
6
|
-
icon?: IconName;
|
|
7
|
-
arrow?: boolean;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
href?: string;
|
|
10
|
-
effect?: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
id?: string;
|
|
14
|
-
}
|
|
15
|
-
declare const Badge: React.ForwardRefExoticComponent<Omit<BadgeProps, "ref"> & React.RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
|
|
16
|
-
export { Badge };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Column } from ".";
|
|
2
|
-
interface BlockQuoteProps extends React.ComponentProps<typeof Column> {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
preline?: React.ReactNode;
|
|
5
|
-
subline?: React.ReactNode;
|
|
6
|
-
separator?: "top" | "bottom" | "both" | "none";
|
|
7
|
-
author?: {
|
|
8
|
-
name?: React.ReactNode;
|
|
9
|
-
avatar?: string;
|
|
10
|
-
};
|
|
11
|
-
link?: {
|
|
12
|
-
href: string;
|
|
13
|
-
label: string;
|
|
14
|
-
};
|
|
15
|
-
style?: React.CSSProperties;
|
|
16
|
-
className?: string;
|
|
17
|
-
align?: "center" | "left" | "right";
|
|
18
|
-
}
|
|
19
|
-
declare const BlockQuote: import("react").ForwardRefExoticComponent<Omit<BlockQuoteProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
-
export { BlockQuote };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { IconName } from "../icons";
|
|
3
|
-
interface CommonProps {
|
|
4
|
-
variant?: "primary" | "secondary" | "tertiary" | "danger";
|
|
5
|
-
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
6
|
-
radius?: "none" | "top" | "right" | "bottom" | "left" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
|
|
7
|
-
label?: string;
|
|
8
|
-
weight?: "default" | "strong";
|
|
9
|
-
rounded?: boolean;
|
|
10
|
-
prefixIcon?: IconName;
|
|
11
|
-
suffixIcon?: IconName;
|
|
12
|
-
loading?: boolean;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
fillWidth?: boolean;
|
|
15
|
-
horizontal?: "start" | "center" | "end" | "between";
|
|
16
|
-
children?: ReactNode;
|
|
17
|
-
href?: string;
|
|
18
|
-
className?: string;
|
|
19
|
-
style?: React.CSSProperties;
|
|
20
|
-
id?: string;
|
|
21
|
-
arrowIcon?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export type ButtonProps = CommonProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
24
|
-
export type AnchorProps = CommonProps & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
25
|
-
declare const Button: React.ForwardRefExoticComponent<(ButtonProps | AnchorProps) & React.RefAttributes<HTMLButtonElement>>;
|
|
26
|
-
export { Button };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Flex } from ".";
|
|
3
|
-
interface CardProps extends React.ComponentProps<typeof Flex> {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
href?: string;
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
fillHeight?: boolean;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const Card: React.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export { Card };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { SpacingToken } from "@/types";
|
|
2
|
-
import { Flex } from ".";
|
|
3
|
-
interface CarouselItem {
|
|
4
|
-
slide: string | React.ReactNode;
|
|
5
|
-
alt?: string;
|
|
6
|
-
}
|
|
7
|
-
interface ThumbnailItem {
|
|
8
|
-
scaling?: number;
|
|
9
|
-
height?: SpacingToken | number;
|
|
10
|
-
sizes?: string;
|
|
11
|
-
}
|
|
12
|
-
interface CarouselProps extends React.ComponentProps<typeof Flex> {
|
|
13
|
-
items: CarouselItem[];
|
|
14
|
-
controls?: boolean;
|
|
15
|
-
priority?: boolean;
|
|
16
|
-
fill?: boolean;
|
|
17
|
-
indicator?: "line" | "thumbnail" | false;
|
|
18
|
-
translateY?: SpacingToken | number;
|
|
19
|
-
aspectRatio?: string;
|
|
20
|
-
sizes?: string;
|
|
21
|
-
revealedByDefault?: boolean;
|
|
22
|
-
thumbnail?: ThumbnailItem;
|
|
23
|
-
play?: {
|
|
24
|
-
auto?: boolean;
|
|
25
|
-
interval?: number;
|
|
26
|
-
controls?: boolean;
|
|
27
|
-
progress?: boolean;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
declare const Carousel: React.FC<CarouselProps>;
|
|
31
|
-
export { Carousel };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Flex } from ".";
|
|
3
|
-
type CelebrationType = "confetti" | "fireworks";
|
|
4
|
-
interface CelebrationFxProps extends React.ComponentProps<typeof Flex> {
|
|
5
|
-
type?: CelebrationType;
|
|
6
|
-
speed?: number;
|
|
7
|
-
colors?: string[];
|
|
8
|
-
intensity?: number;
|
|
9
|
-
duration?: number;
|
|
10
|
-
trigger?: "mount" | "hover" | "manual" | "click";
|
|
11
|
-
active?: boolean;
|
|
12
|
-
reducedMotion?: boolean | "auto";
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
declare const CelebrationFx: React.ForwardRefExoticComponent<Omit<CelebrationFxProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
export { CelebrationFx };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { InteractiveDetailsProps } from ".";
|
|
3
|
-
interface CheckboxProps extends Omit<InteractiveDetailsProps, "onClick">, React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
-
isChecked?: boolean;
|
|
5
|
-
isIndeterminate?: boolean;
|
|
6
|
-
onToggle?: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const Checkbox: React.FC<CheckboxProps>;
|
|
9
|
-
export { Checkbox };
|
|
10
|
-
export type { CheckboxProps };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, MouseEventHandler } from "react";
|
|
2
|
-
import { IconButtonProps, Flex } from ".";
|
|
3
|
-
import { IconName } from "../icons";
|
|
4
|
-
interface ChipProps extends React.ComponentProps<typeof Flex> {
|
|
5
|
-
label: string;
|
|
6
|
-
selected?: boolean;
|
|
7
|
-
prefixIcon?: IconName;
|
|
8
|
-
onRemove?: () => void;
|
|
9
|
-
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
iconButtonProps?: Partial<IconButtonProps>;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
declare const Chip: React.FC<ChipProps>;
|
|
16
|
-
export { Chip };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FlexProps, StyleProps, DisplayProps, FlexBreakpointProps } from "../interfaces";
|
|
2
|
-
interface ClientFlexProps extends FlexProps, StyleProps, DisplayProps {
|
|
3
|
-
cursor?: StyleProps["cursor"];
|
|
4
|
-
xl?: FlexBreakpointProps;
|
|
5
|
-
l?: FlexBreakpointProps;
|
|
6
|
-
m?: FlexBreakpointProps;
|
|
7
|
-
s?: FlexBreakpointProps;
|
|
8
|
-
xs?: FlexBreakpointProps;
|
|
9
|
-
hide?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const ClientFlex: import("react").ForwardRefExoticComponent<ClientFlexProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export { ClientFlex };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GridProps, StyleProps, DisplayProps, GridBreakpointProps } from "../interfaces";
|
|
2
|
-
interface ClientGridProps extends GridProps, StyleProps, DisplayProps {
|
|
3
|
-
cursor?: StyleProps["cursor"];
|
|
4
|
-
xl?: GridBreakpointProps;
|
|
5
|
-
l?: GridBreakpointProps;
|
|
6
|
-
m?: GridBreakpointProps;
|
|
7
|
-
s?: GridBreakpointProps;
|
|
8
|
-
xs?: GridBreakpointProps;
|
|
9
|
-
hide?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const ClientGrid: import("react").ForwardRefExoticComponent<ClientGridProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export { ClientGrid };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { InputProps } from ".";
|
|
3
|
-
interface ColorInputProps extends Omit<InputProps, "onChange" | "value"> {
|
|
4
|
-
value: string;
|
|
5
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
-
supportAlpha?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const ColorInput: React.ForwardRefExoticComponent<ColorInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
9
|
-
export { ColorInput };
|
|
10
|
-
export type { ColorInputProps };
|