@accelint/design-toolkit 9.5.0 → 9.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog-info.yaml +3 -3
- package/dist/components/accordion/context.d.ts +2 -2
- package/dist/components/accordion/group.d.ts +2 -2
- package/dist/components/accordion/header.d.ts +2 -2
- package/dist/components/accordion/panel.d.ts +2 -2
- package/dist/components/action-bar/index.d.ts +2 -2
- package/dist/components/audio/index.d.ts +2 -2
- package/dist/components/avatar/context.d.ts +4 -4
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/context.d.ts +4 -4
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/breadcrumbs/index.d.ts +2 -2
- package/dist/components/breadcrumbs/item.d.ts +2 -2
- package/dist/components/button/__internal__/styles.module.css +1 -1
- package/dist/components/button/context.d.ts +8 -8
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/link.d.ts +2 -2
- package/dist/components/button/styles.module.css +1 -1
- package/dist/components/button/toggle.d.ts +2 -2
- package/dist/components/checkbox/context.d.ts +3 -3
- package/dist/components/checkbox/group.d.ts +2 -2
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/chip/context.d.ts +4 -4
- package/dist/components/chip/deletable.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/chip/list.d.ts +4 -4
- package/dist/components/chip/selectable.d.ts +2 -2
- package/dist/components/chip/styles.module.css +2 -2
- package/dist/components/classification-badge/context.d.ts +4 -4
- package/dist/components/classification-badge/index.d.ts +2 -2
- package/dist/components/classification-banner/context.d.ts +4 -4
- package/dist/components/classification-banner/index.d.ts +2 -2
- package/dist/components/clock/index.d.ts +2 -2
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox-field/context.d.ts +4 -4
- package/dist/components/combobox-field/index.d.ts +2 -2
- package/dist/components/coordinate-field/context.d.ts +6 -6
- package/dist/components/coordinate-field/index.d.ts +2 -2
- package/dist/components/coordinate-field/segment.d.ts +2 -2
- package/dist/components/date-field/index.d.ts +2 -2
- package/dist/components/deferred-collection/index.d.ts +2 -2
- package/dist/components/details-list/context.d.ts +2 -2
- package/dist/components/details-list/index.d.ts +2 -2
- package/dist/components/details-list/label.d.ts +2 -2
- package/dist/components/details-list/value.d.ts +2 -2
- package/dist/components/dialog/content.d.ts +2 -2
- package/dist/components/dialog/context.d.ts +2 -2
- package/dist/components/dialog/footer.d.ts +2 -2
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/dialog/title.d.ts +2 -2
- package/dist/components/divider/context.d.ts +4 -4
- package/dist/components/divider/index.d.ts +2 -2
- package/dist/components/drawer/back.d.ts +2 -2
- package/dist/components/drawer/close.d.ts +2 -2
- package/dist/components/drawer/content.d.ts +2 -2
- package/dist/components/drawer/context.d.ts +2 -2
- package/dist/components/drawer/footer.d.ts +2 -2
- package/dist/components/drawer/header.d.ts +2 -2
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/drawer/layout-main.d.ts +2 -2
- package/dist/components/drawer/layout.d.ts +2 -2
- package/dist/components/drawer/menu-item.d.ts +2 -2
- package/dist/components/drawer/menu.d.ts +2 -2
- package/dist/components/drawer/panel.d.ts +2 -2
- package/dist/components/drawer/trigger.d.ts +2 -2
- package/dist/components/drawer/view.d.ts +2 -2
- package/dist/components/flashcard/index.d.ts +9 -9
- package/dist/components/hero/context.d.ts +2 -2
- package/dist/components/hero/index.d.ts +2 -2
- package/dist/components/hero/subtitle.d.ts +2 -2
- package/dist/components/hero/title.d.ts +2 -2
- package/dist/components/hotkey/context.d.ts +4 -4
- package/dist/components/hotkey/index.d.ts +2 -2
- package/dist/components/hotkey/set.d.ts +2 -2
- package/dist/components/icon/context.d.ts +4 -4
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/input/context.d.ts +2 -2
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/kanban/card-body.d.ts +2 -2
- package/dist/components/kanban/card-header-actions.d.ts +2 -2
- package/dist/components/kanban/card-header-title.d.ts +2 -2
- package/dist/components/kanban/card-header.d.ts +2 -2
- package/dist/components/kanban/card.d.ts +2 -2
- package/dist/components/kanban/column-actions.d.ts +2 -2
- package/dist/components/kanban/column-container.d.ts +2 -2
- package/dist/components/kanban/column-content.d.ts +2 -2
- package/dist/components/kanban/column-header-actions.d.ts +2 -2
- package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
- package/dist/components/kanban/column-header-title.d.ts +2 -2
- package/dist/components/kanban/column-header.d.ts +2 -2
- package/dist/components/kanban/column.d.ts +2 -2
- package/dist/components/kanban/context.d.ts +2 -2
- package/dist/components/kanban/header-actions.d.ts +2 -2
- package/dist/components/kanban/header-search.d.ts +2 -2
- package/dist/components/kanban/header-title.d.ts +2 -2
- package/dist/components/kanban/header.d.ts +2 -2
- package/dist/components/kanban/kanban.d.ts +4 -4
- package/dist/components/label/context.d.ts +4 -4
- package/dist/components/label/index.d.ts +2 -2
- package/dist/components/lines/index.d.ts +2 -2
- package/dist/components/link/context.d.ts +2 -2
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/list/context.d.ts +2 -2
- package/dist/components/list/index.d.ts +2 -2
- package/dist/components/list/item-content.d.ts +2 -2
- package/dist/components/list/item-description.d.ts +2 -2
- package/dist/components/list/item-title.d.ts +2 -2
- package/dist/components/list/item.d.ts +2 -2
- package/dist/components/media-controls/context.d.ts +4 -4
- package/dist/components/media-controls/fullscreen-button.d.ts +55 -0
- package/dist/components/media-controls/fullscreen-button.js +80 -0
- package/dist/components/media-controls/fullscreen-button.js.map +1 -0
- package/dist/components/media-controls/index.d.ts +2 -2
- package/dist/components/media-controls/mute-button.d.ts +2 -2
- package/dist/components/media-controls/play-button.d.ts +2 -2
- package/dist/components/media-controls/playback-rate.d.ts +2 -2
- package/dist/components/media-controls/seek-button.d.ts +2 -2
- package/dist/components/media-controls/time-display.d.ts +2 -2
- package/dist/components/media-controls/time-range.d.ts +2 -2
- package/dist/components/media-controls/types.d.ts +6 -1
- package/dist/components/media-controls/volume-slider.d.ts +2 -2
- package/dist/components/menu/context.d.ts +2 -2
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/menu/item-description.d.ts +2 -2
- package/dist/components/menu/item-label.d.ts +2 -2
- package/dist/components/menu/item.d.ts +2 -2
- package/dist/components/menu/section.d.ts +2 -2
- package/dist/components/menu/separator.d.ts +2 -2
- package/dist/components/menu/submenu.d.ts +2 -2
- package/dist/components/notice/index.d.ts +2 -2
- package/dist/components/notice/list.d.ts +2 -2
- package/dist/components/notice/notice-icon.d.ts +2 -2
- package/dist/components/options/context.d.ts +2 -2
- package/dist/components/options/index.d.ts +2 -2
- package/dist/components/options/item-content.d.ts +2 -2
- package/dist/components/options/item-description.d.ts +2 -2
- package/dist/components/options/item-label.d.ts +2 -2
- package/dist/components/options/item.d.ts +2 -2
- package/dist/components/options/section.d.ts +2 -2
- package/dist/components/options/styles.module.css +52 -4
- package/dist/components/pagination/context.d.ts +2 -2
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/pagination/next.d.ts +2 -2
- package/dist/components/pagination/pages.d.ts +2 -2
- package/dist/components/pagination/prev.d.ts +2 -2
- package/dist/components/popover/content.d.ts +2 -2
- package/dist/components/popover/footer.d.ts +2 -2
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/title.d.ts +2 -2
- package/dist/components/popover/trigger.d.ts +2 -2
- package/dist/components/query-builder/action-element.d.ts +2 -2
- package/dist/components/query-builder/actions.d.ts +4 -4
- package/dist/components/query-builder/combinator-selector.d.ts +2 -2
- package/dist/components/query-builder/index.d.ts +2 -2
- package/dist/components/query-builder/index.js +1 -1
- package/dist/components/query-builder/index.js.map +1 -1
- package/dist/components/query-builder/rule-group.d.ts +4 -4
- package/dist/components/query-builder/rule.d.ts +2 -2
- package/dist/components/query-builder/styles.module.css +10 -1
- package/dist/components/query-builder/value-editor.d.ts +2 -2
- package/dist/components/query-builder/value-selector.d.ts +2 -2
- package/dist/components/query-builder/value-selector.js +11 -4
- package/dist/components/query-builder/value-selector.js.map +1 -1
- package/dist/components/radio/context.d.ts +2 -2
- package/dist/components/radio/group.d.ts +2 -2
- package/dist/components/radio/index.d.ts +2 -2
- package/dist/components/search-field/context.d.ts +4 -4
- package/dist/components/search-field/index.d.ts +2 -2
- package/dist/components/search-field/styles.module.css +1 -1
- package/dist/components/select-field/context.d.ts +4 -4
- package/dist/components/select-field/index.d.ts +2 -2
- package/dist/components/sidenav/avatar.d.ts +2 -2
- package/dist/components/sidenav/content.d.ts +2 -2
- package/dist/components/sidenav/context.d.ts +2 -2
- package/dist/components/sidenav/footer.d.ts +2 -2
- package/dist/components/sidenav/header.d.ts +2 -2
- package/dist/components/sidenav/index.d.ts +2 -2
- package/dist/components/sidenav/item.d.ts +2 -2
- package/dist/components/sidenav/link.d.ts +2 -2
- package/dist/components/sidenav/menu-item.d.ts +2 -2
- package/dist/components/sidenav/menu.d.ts +2 -2
- package/dist/components/sidenav/trigger.d.ts +2 -2
- package/dist/components/skeleton/index.d.ts +2 -2
- package/dist/components/skeleton/styles.module.css +2 -4
- package/dist/components/skeleton/types.d.ts +1 -1
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/status-indicator/index.d.ts +2 -2
- package/dist/components/switch/context.d.ts +4 -4
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/body.d.ts +2 -2
- package/dist/components/table/cell.d.ts +2 -2
- package/dist/components/table/context.d.ts +2 -2
- package/dist/components/table/header-cell.d.ts +2 -2
- package/dist/components/table/header.d.ts +2 -2
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table/row.d.ts +2 -2
- package/dist/components/table/styles.module.css +5 -1
- package/dist/components/tabs/constants.d.ts +19 -0
- package/dist/components/tabs/constants.js +23 -0
- package/dist/components/tabs/constants.js.map +1 -0
- package/dist/components/tabs/context.d.ts +11 -6
- package/dist/components/tabs/context.js +8 -1
- package/dist/components/tabs/context.js.map +1 -1
- package/dist/components/tabs/index.d.ts +4 -2
- package/dist/components/tabs/index.js +17 -7
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/tabs/list.d.ts +2 -2
- package/dist/components/tabs/panel.d.ts +2 -2
- package/dist/components/tabs/styles.module.css +27 -5
- package/dist/components/tabs/tab.d.ts +7 -6
- package/dist/components/tabs/tab.js +12 -3
- package/dist/components/tabs/tab.js.map +1 -1
- package/dist/components/tabs/types.d.ts +25 -3
- package/dist/components/text-area-field/context.d.ts +4 -4
- package/dist/components/text-area-field/index.d.ts +2 -2
- package/dist/components/text-field/context.d.ts +4 -4
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/time-field/index.d.ts +2 -2
- package/dist/components/tooltip/context.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/trigger.d.ts +2 -2
- package/dist/components/tree/context.d.ts +3 -3
- package/dist/components/tree/index.d.ts +2 -2
- package/dist/components/tree/item-actions.d.ts +2 -2
- package/dist/components/tree/item-content.d.ts +2 -2
- package/dist/components/tree/item-description.d.ts +2 -2
- package/dist/components/tree/item-label.d.ts +2 -2
- package/dist/components/tree/item-prefix-icon.d.ts +2 -2
- package/dist/components/tree/item.d.ts +2 -2
- package/dist/components/tree/lines.d.ts +2 -2
- package/dist/components/video/index.d.ts +97 -0
- package/dist/components/video/index.js +261 -0
- package/dist/components/video/index.js.map +1 -0
- package/dist/components/video/styles.module.css +99 -0
- package/dist/components/video/types.d.ts +52 -0
- package/dist/components/video/types.js +12 -0
- package/dist/components/view-stack/context.d.ts +2 -2
- package/dist/components/view-stack/index.d.ts +2 -2
- package/dist/components/view-stack/trigger.d.ts +2 -2
- package/dist/components/view-stack/view.d.ts +2 -2
- package/dist/index.d.ts +8 -4
- package/dist/index.js +5 -2
- package/dist/providers/portal.d.ts +2 -2
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +12 -8
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SidenavTriggerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime129 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/sidenav/trigger.d.ts
|
|
18
18
|
|
|
@@ -39,7 +39,7 @@ declare function SidenavTrigger({
|
|
|
39
39
|
children,
|
|
40
40
|
for: type,
|
|
41
41
|
...rest
|
|
42
|
-
}: SidenavTriggerProps):
|
|
42
|
+
}: SidenavTriggerProps): react_jsx_runtime129.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { SidenavTrigger };
|
|
45
45
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { SkeletonProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime131 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/skeleton/index.d.ts
|
|
17
17
|
/**
|
|
@@ -34,7 +34,7 @@ declare function Skeleton({
|
|
|
34
34
|
className,
|
|
35
35
|
variant,
|
|
36
36
|
...rest
|
|
37
|
-
}: SkeletonProps):
|
|
37
|
+
}: SkeletonProps): react_jsx_runtime131.JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { Skeleton };
|
|
40
40
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -14,10 +14,8 @@
|
|
|
14
14
|
|
|
15
15
|
@layer components.l1 {
|
|
16
16
|
.skeleton {
|
|
17
|
-
|
|
18
|
-
@apply fg-primary-bold bg-interactive-disabled px-l py-s;
|
|
17
|
+
@apply fg-primary-bold bg-interactive-disabled;
|
|
19
18
|
|
|
20
|
-
/* TODO: animation styles non-functional with @apply directive */
|
|
21
19
|
@variant motion-safe {
|
|
22
20
|
@apply animate-pulse;
|
|
23
21
|
}
|
|
@@ -27,7 +25,7 @@
|
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
&.rectangle {
|
|
30
|
-
@apply rounded-small
|
|
28
|
+
@apply rounded-small h-lh w-full;
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
31
|
}
|
|
@@ -16,7 +16,7 @@ import { ComponentPropsWithRef } from "react";
|
|
|
16
16
|
/**
|
|
17
17
|
* Props for the Skeleton component.
|
|
18
18
|
*/
|
|
19
|
-
type SkeletonProps = ComponentPropsWithRef<'div'> & {
|
|
19
|
+
type SkeletonProps = Omit<ComponentPropsWithRef<'div'>, 'children'> & {
|
|
20
20
|
/** Shape variant of the skeleton. */
|
|
21
21
|
variant?: 'rectangle' | 'circle';
|
|
22
22
|
};
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SliderProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime133 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/slider/index.d.ts
|
|
18
18
|
|
|
@@ -71,7 +71,7 @@ declare function Slider({
|
|
|
71
71
|
step: stepProp,
|
|
72
72
|
value: valueProp,
|
|
73
73
|
...rest
|
|
74
|
-
}: SliderProps):
|
|
74
|
+
}: SliderProps): react_jsx_runtime133.JSX.Element;
|
|
75
75
|
//#endregion
|
|
76
76
|
export { Slider };
|
|
77
77
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { StatusIndicatorProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime134 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/status-indicator/index.d.ts
|
|
18
18
|
/**
|
|
@@ -35,7 +35,7 @@ declare function StatusIndicator({
|
|
|
35
35
|
className,
|
|
36
36
|
status,
|
|
37
37
|
...rest
|
|
38
|
-
}: StatusIndicatorProps):
|
|
38
|
+
}: StatusIndicatorProps): react_jsx_runtime134.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { StatusIndicator };
|
|
41
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { SwitchProps as SwitchProps$1 } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react32 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime135 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/switch/context.d.ts
|
|
21
21
|
/** Context for sharing props across Switch components */
|
|
22
|
-
declare const SwitchContext:
|
|
22
|
+
declare const SwitchContext: react32.Context<ContextValue<SwitchProps$1, HTMLLabelElement>>;
|
|
23
23
|
/**
|
|
24
24
|
* Sets default props for all Switch components within.
|
|
25
25
|
*
|
|
@@ -38,7 +38,7 @@ declare const SwitchContext: react38.Context<ContextValue<SwitchProps$1, HTMLLab
|
|
|
38
38
|
declare function SwitchProvider({
|
|
39
39
|
children,
|
|
40
40
|
...props
|
|
41
|
-
}: ProviderProps<SwitchProps$1>):
|
|
41
|
+
}: ProviderProps<SwitchProps$1>): react_jsx_runtime135.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { SwitchContext, SwitchProvider };
|
|
44
44
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SwitchProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime136 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/switch/index.d.ts
|
|
18
18
|
|
|
@@ -38,7 +38,7 @@ import * as react_jsx_runtime200 from "react/jsx-runtime";
|
|
|
38
38
|
declare function Switch({
|
|
39
39
|
ref,
|
|
40
40
|
...props
|
|
41
|
-
}: SwitchProps):
|
|
41
|
+
}: SwitchProps): react_jsx_runtime136.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { Switch };
|
|
44
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TableBodyProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime138 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/table/body.d.ts
|
|
17
17
|
|
|
@@ -39,7 +39,7 @@ declare function TableBody<T>({
|
|
|
39
39
|
ref,
|
|
40
40
|
rows,
|
|
41
41
|
...rest
|
|
42
|
-
}: TableBodyProps<T>):
|
|
42
|
+
}: TableBodyProps<T>): react_jsx_runtime138.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { TableBody };
|
|
45
45
|
//# sourceMappingURL=body.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TableCellProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime137 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/table/cell.d.ts
|
|
17
17
|
|
|
@@ -40,7 +40,7 @@ declare function TableCell<T>({
|
|
|
40
40
|
className,
|
|
41
41
|
cell,
|
|
42
42
|
...rest
|
|
43
|
-
}: TableCellProps<T>):
|
|
43
|
+
}: TableCellProps<T>): react_jsx_runtime137.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { TableCell };
|
|
46
46
|
//# sourceMappingURL=cell.d.ts.map
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TableContextValue } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react33 from "react";
|
|
15
15
|
|
|
16
16
|
//#region src/components/table/context.d.ts
|
|
17
17
|
/** Context for sharing table configuration across subcomponents */
|
|
18
|
-
declare const TableContext:
|
|
18
|
+
declare const TableContext: react33.Context<TableContextValue>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { TableContext };
|
|
21
21
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TableHeaderCellProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime132 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/table/header-cell.d.ts
|
|
17
17
|
|
|
@@ -42,7 +42,7 @@ declare function TableHeaderCell<T>({
|
|
|
42
42
|
className,
|
|
43
43
|
header,
|
|
44
44
|
...rest
|
|
45
|
-
}: TableHeaderCellProps<T>):
|
|
45
|
+
}: TableHeaderCellProps<T>): react_jsx_runtime132.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { TableHeaderCell };
|
|
48
48
|
//# sourceMappingURL=header-cell.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TableHeaderProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime139 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/table/header.d.ts
|
|
17
17
|
|
|
@@ -41,7 +41,7 @@ declare function TableHeader<T>({
|
|
|
41
41
|
headerGroups,
|
|
42
42
|
columnSelection,
|
|
43
43
|
...rest
|
|
44
|
-
}: TableHeaderProps<T>):
|
|
44
|
+
}: TableHeaderProps<T>): react_jsx_runtime139.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { TableHeader };
|
|
47
47
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { TableProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime140 from "react/jsx-runtime";
|
|
16
16
|
import { Key } from "@react-types/shared";
|
|
17
17
|
|
|
18
18
|
//#region src/components/table/index.d.ts
|
|
@@ -68,7 +68,7 @@ declare function Table<T extends {
|
|
|
68
68
|
onRowSelectionChange,
|
|
69
69
|
fullWidth,
|
|
70
70
|
...rest
|
|
71
|
-
}: TableProps<T>):
|
|
71
|
+
}: TableProps<T>): react_jsx_runtime140.JSX.Element;
|
|
72
72
|
//#endregion
|
|
73
73
|
export { Table };
|
|
74
74
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TableRowProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime141 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/table/row.d.ts
|
|
17
17
|
|
|
@@ -44,7 +44,7 @@ declare function TableRow<T>({
|
|
|
44
44
|
className,
|
|
45
45
|
row,
|
|
46
46
|
...rest
|
|
47
|
-
}: TableRowProps<T>):
|
|
47
|
+
}: TableRowProps<T>): react_jsx_runtime141.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { TableRow };
|
|
50
50
|
//# sourceMappingURL=row.d.ts.map
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@variant selected {
|
|
24
|
-
@apply bg-accent-primary-muted;
|
|
24
|
+
@apply bg-accent-primary-muted visible;
|
|
25
25
|
|
|
26
26
|
border-top-color: var(--outline-accent-primary-bold);
|
|
27
27
|
box-shadow:
|
|
@@ -94,5 +94,9 @@
|
|
|
94
94
|
@variant group-hover/header-cell {
|
|
95
95
|
@apply visible;
|
|
96
96
|
}
|
|
97
|
+
|
|
98
|
+
@variant group-selected/header-cell {
|
|
99
|
+
@apply visible;
|
|
100
|
+
}
|
|
97
101
|
}
|
|
98
102
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { TabStyleProps } from "./types.js";
|
|
14
|
+
|
|
15
|
+
//#region src/components/tabs/constants.d.ts
|
|
16
|
+
declare const TabStyleDefaults: Required<TabStyleProps>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { TabStyleDefaults };
|
|
19
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
//#region src/components/tabs/constants.ts
|
|
15
|
+
const TabStyleDefaults = {
|
|
16
|
+
orientation: "horizontal",
|
|
17
|
+
align: "start",
|
|
18
|
+
flex: true
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { TabStyleDefaults };
|
|
23
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","names":["TabStyleDefaults: Required<TabStyleProps>"],"sources":["../../../src/components/tabs/constants.ts"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport type { TabStyleProps } from './types';\n\nexport const TabStyleDefaults: Required<TabStyleProps> = {\n orientation: 'horizontal',\n align: 'start',\n flex: true,\n};\n"],"mappings":";;;;;;;;;;;;;;AAcA,MAAaA,mBAA4C;CACvD,aAAa;CACb,OAAO;CACP,MAAM;CACP"}
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
|
-
import { TabsProps as TabsProps$1 } from "./types.js";
|
|
14
|
+
import { TabProps as TabProps$1, TabsProps as TabsProps$1 } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react38 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime151 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/tabs/context.d.ts
|
|
21
21
|
/** Context for sharing props across Tabs components */
|
|
22
|
-
declare const TabsContext:
|
|
22
|
+
declare const TabsContext: react38.Context<ContextValue<TabsProps$1, HTMLDivElement>>;
|
|
23
23
|
/**
|
|
24
24
|
* Sets default props for all Tabs components within.
|
|
25
25
|
*
|
|
@@ -42,7 +42,12 @@ declare const TabsContext: react39.Context<ContextValue<TabsProps$1, HTMLDivElem
|
|
|
42
42
|
declare function TabsProvider({
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: ProviderProps<TabsProps$1>):
|
|
45
|
+
}: ProviderProps<TabsProps$1>): react_jsx_runtime151.JSX.Element;
|
|
46
|
+
declare const TabContext: react38.Context<ContextValue<TabProps$1, Element>>;
|
|
47
|
+
declare function TabProvider({
|
|
48
|
+
children,
|
|
49
|
+
...props
|
|
50
|
+
}: ProviderProps<TabProps$1>): react_jsx_runtime151.JSX.Element;
|
|
46
51
|
//#endregion
|
|
47
|
-
export { TabsContext, TabsProvider };
|
|
52
|
+
export { TabContext, TabProvider, TabsContext, TabsProvider };
|
|
48
53
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -45,7 +45,14 @@ function TabsProvider({ children, ...props }) {
|
|
|
45
45
|
children
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
+
const TabContext = createContext(null);
|
|
49
|
+
function TabProvider({ children, ...props }) {
|
|
50
|
+
return /* @__PURE__ */ jsx(TabContext.Provider, {
|
|
51
|
+
value: props,
|
|
52
|
+
children
|
|
53
|
+
});
|
|
54
|
+
}
|
|
48
55
|
|
|
49
56
|
//#endregion
|
|
50
|
-
export { TabsContext, TabsProvider };
|
|
57
|
+
export { TabContext, TabProvider, TabsContext, TabsProvider };
|
|
51
58
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/tabs/context.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { ProviderProps } from '@/lib/types';\nimport type { TabsProps } from './types';\n\n/** Context for sharing props across Tabs components */\nexport const TabsContext =\n createContext<ContextValue<TabsProps, HTMLDivElement>>(null);\n\n/**\n * Sets default props for all Tabs components within.\n *\n * @example\n * ```tsx\n * <TabsProvider orientation=\"vertical\">\n * <Tabs>\n * <TabList>\n * <Tab>Profile</Tab>\n * <Tab>Settings</Tab>\n * </TabList>\n * </Tabs>\n * </TabsProvider>\n * ```\n *\n * @param props - ProviderProps with TabsProps.\n * @param props.children - Child components that receive the context.\n * @returns The TabsContext provider wrapping children.\n */\nexport function TabsProvider({ children, ...props }: ProviderProps<TabsProps>) {\n return <TabsContext.Provider value={props}>{children}</TabsContext.Provider>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAa,cACX,cAAuD,KAAK;;;;;;;;;;;;;;;;;;;;AAqB9D,SAAgB,aAAa,EAAE,UAAU,GAAG,SAAmC;AAC7E,QAAO,oBAAC,YAAY;EAAS,OAAO;EAAQ;GAAgC"}
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/tabs/context.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { ProviderProps } from '@/lib/types';\nimport type { TabProps, TabsProps } from './types';\n\n/** Context for sharing props across Tabs components */\nexport const TabsContext =\n createContext<ContextValue<TabsProps, HTMLDivElement>>(null);\n\n/**\n * Sets default props for all Tabs components within.\n *\n * @example\n * ```tsx\n * <TabsProvider orientation=\"vertical\">\n * <Tabs>\n * <TabList>\n * <Tab>Profile</Tab>\n * <Tab>Settings</Tab>\n * </TabList>\n * </Tabs>\n * </TabsProvider>\n * ```\n *\n * @param props - ProviderProps with TabsProps.\n * @param props.children - Child components that receive the context.\n * @returns The TabsContext provider wrapping children.\n */\nexport function TabsProvider({ children, ...props }: ProviderProps<TabsProps>) {\n return <TabsContext.Provider value={props}>{children}</TabsContext.Provider>;\n}\n\nexport const TabContext = createContext<ContextValue<TabProps, Element>>(null);\n\nexport function TabProvider({ children, ...props }: ProviderProps<TabProps>) {\n return <TabContext.Provider value={props}>{children}</TabContext.Provider>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAa,cACX,cAAuD,KAAK;;;;;;;;;;;;;;;;;;;;AAqB9D,SAAgB,aAAa,EAAE,UAAU,GAAG,SAAmC;AAC7E,QAAO,oBAAC,YAAY;EAAS,OAAO;EAAQ;GAAgC;;AAG9E,MAAa,aAAa,cAA+C,KAAK;AAE9E,SAAgB,YAAY,EAAE,UAAU,GAAG,SAAkC;AAC3E,QAAO,oBAAC,WAAW;EAAS,OAAO;EAAQ;GAA+B"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { TabsProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime155 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/tabs/index.d.ts
|
|
18
18
|
|
|
@@ -25,6 +25,8 @@ import * as react_jsx_runtime163 from "react/jsx-runtime";
|
|
|
25
25
|
* @param props.ref - Ref to the tabs container element.
|
|
26
26
|
* @param props.children - TabList and TabPanel components.
|
|
27
27
|
* @param props.className - CSS class for the tabs container.
|
|
28
|
+
* @param props.align - Justification alignment passed down to Tab components. (only applicable when orientation is horizontal)
|
|
29
|
+
* @param props.flex - Boolean passed down to Tab components. (only applicable when orientation is horizontal)
|
|
28
30
|
* @returns The rendered Tabs component.
|
|
29
31
|
*
|
|
30
32
|
* @example
|
|
@@ -42,7 +44,7 @@ import * as react_jsx_runtime163 from "react/jsx-runtime";
|
|
|
42
44
|
declare function Tabs({
|
|
43
45
|
ref,
|
|
44
46
|
...props
|
|
45
|
-
}: TabsProps):
|
|
47
|
+
}: TabsProps): react_jsx_runtime155.JSX.Element;
|
|
46
48
|
//#endregion
|
|
47
49
|
export { Tabs };
|
|
48
50
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
'use client';
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { TabStyleDefaults } from "./constants.js";
|
|
17
|
+
import { TabProvider, TabsContext } from "./context.js";
|
|
17
18
|
import "client-only";
|
|
18
19
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
20
|
import { Tabs as Tabs$1, composeRenderProps, useContextProps } from "react-aria-components";
|
|
@@ -30,6 +31,8 @@ import styles from "./styles.module.css";
|
|
|
30
31
|
* @param props.ref - Ref to the tabs container element.
|
|
31
32
|
* @param props.children - TabList and TabPanel components.
|
|
32
33
|
* @param props.className - CSS class for the tabs container.
|
|
34
|
+
* @param props.align - Justification alignment passed down to Tab components. (only applicable when orientation is horizontal)
|
|
35
|
+
* @param props.flex - Boolean passed down to Tab components. (only applicable when orientation is horizontal)
|
|
33
36
|
* @returns The rendered Tabs component.
|
|
34
37
|
*
|
|
35
38
|
* @example
|
|
@@ -46,12 +49,19 @@ import styles from "./styles.module.css";
|
|
|
46
49
|
*/
|
|
47
50
|
function Tabs({ ref, ...props }) {
|
|
48
51
|
[props, ref] = useContextProps(props, ref ?? null, TabsContext);
|
|
49
|
-
const { children, className, ...rest } =
|
|
50
|
-
|
|
51
|
-
...
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
const { children, className, align, flex, ...rest } = {
|
|
53
|
+
...TabStyleDefaults,
|
|
54
|
+
...props
|
|
55
|
+
};
|
|
56
|
+
return /* @__PURE__ */ jsx(TabProvider, {
|
|
57
|
+
align,
|
|
58
|
+
flex,
|
|
59
|
+
children: /* @__PURE__ */ jsx(Tabs$1, {
|
|
60
|
+
...rest,
|
|
61
|
+
ref,
|
|
62
|
+
className: composeRenderProps(className, (className$1) => clsx("group/tabs", styles.tabs, className$1)),
|
|
63
|
+
children
|
|
64
|
+
})
|
|
55
65
|
});
|
|
56
66
|
}
|
|
57
67
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["AriaTabs","className"],"sources":["../../../src/components/tabs/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {\n Tabs as AriaTabs,\n composeRenderProps,\n useContextProps,\n} from 'react-aria-components';\nimport { TabsContext } from './context';\nimport styles from './styles.module.css';\nimport type { TabsProps } from './types';\n\n/**\n * Tabs - Tab navigation for organizing content into multiple sections\n *\n * Supports horizontal and vertical orientations with text or icon tabs.\n *\n * @param props - {@link TabsProps}\n * @param props.ref - Ref to the tabs container element.\n * @param props.children - TabList and TabPanel components.\n * @param props.className - CSS class for the tabs container.\n * @returns The rendered Tabs component.\n *\n * @example\n * ```tsx\n * <Tabs>\n * <TabList>\n * <Tab id=\"overview\">Overview</Tab>\n * <Tab id=\"settings\">Settings</Tab>\n * </TabList>\n * <TabPanel id=\"overview\">Overview content</TabPanel>\n * <TabPanel id=\"settings\">Settings content</TabPanel>\n * </Tabs>\n * ```\n */\nexport function Tabs({ ref, ...props }: TabsProps) {\n [props, ref] = useContextProps(props, ref ?? null, TabsContext);\n\n const { children, className, ...rest } = props;\n\n return (\n <AriaTabs\n
|
|
1
|
+
{"version":3,"file":"index.js","names":["AriaTabs","className"],"sources":["../../../src/components/tabs/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {\n Tabs as AriaTabs,\n composeRenderProps,\n useContextProps,\n} from 'react-aria-components';\nimport { TabStyleDefaults } from './constants';\nimport { TabProvider, TabsContext } from './context';\nimport styles from './styles.module.css';\nimport type { TabsProps } from './types';\n\n/**\n * Tabs - Tab navigation for organizing content into multiple sections\n *\n * Supports horizontal and vertical orientations with text or icon tabs.\n *\n * @param props - {@link TabsProps}\n * @param props.ref - Ref to the tabs container element.\n * @param props.children - TabList and TabPanel components.\n * @param props.className - CSS class for the tabs container.\n * @param props.align - Justification alignment passed down to Tab components. (only applicable when orientation is horizontal)\n * @param props.flex - Boolean passed down to Tab components. (only applicable when orientation is horizontal)\n * @returns The rendered Tabs component.\n *\n * @example\n * ```tsx\n * <Tabs>\n * <TabList>\n * <Tab id=\"overview\">Overview</Tab>\n * <Tab id=\"settings\">Settings</Tab>\n * </TabList>\n * <TabPanel id=\"overview\">Overview content</TabPanel>\n * <TabPanel id=\"settings\">Settings content</TabPanel>\n * </Tabs>\n * ```\n */\nexport function Tabs({ ref, ...props }: TabsProps) {\n [props, ref] = useContextProps(props, ref ?? null, TabsContext);\n\n const { children, className, align, flex, ...rest } = {\n ...TabStyleDefaults,\n ...props,\n };\n\n return (\n <TabProvider align={align} flex={flex}>\n <AriaTabs\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx('group/tabs', styles.tabs, className),\n )}\n >\n {children}\n </AriaTabs>\n </TabProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,SAAgB,KAAK,EAAE,KAAK,GAAG,SAAoB;AACjD,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,YAAY;CAE/D,MAAM,EAAE,UAAU,WAAW,OAAO,MAAM,GAAG,SAAS;EACpD,GAAG;EACH,GAAG;EACJ;AAED,QACE,oBAAC;EAAmB;EAAa;YAC/B,oBAACA;GACC,GAAI;GACC;GACL,WAAW,mBAAmB,YAAY,gBACxC,KAAK,cAAc,OAAO,MAAMC,YAAU,CAC3C;GAEA;IACQ;GACC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { TabListProps } from "react-aria-components";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime142 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/tabs/list.d.ts
|
|
18
18
|
|
|
@@ -40,7 +40,7 @@ declare function TabList<T extends object>({
|
|
|
40
40
|
children,
|
|
41
41
|
className,
|
|
42
42
|
...rest
|
|
43
|
-
}: TabListProps<T>):
|
|
43
|
+
}: TabListProps<T>): react_jsx_runtime142.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { TabList };
|
|
46
46
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { TabPanelProps } from "react-aria-components";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime143 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/tabs/panel.d.ts
|
|
18
18
|
|
|
@@ -41,7 +41,7 @@ declare function TabPanel({
|
|
|
41
41
|
children,
|
|
42
42
|
className,
|
|
43
43
|
...rest
|
|
44
|
-
}: TabPanelProps):
|
|
44
|
+
}: TabPanelProps): react_jsx_runtime143.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { TabPanel };
|
|
47
47
|
//# sourceMappingURL=panel.d.ts.map
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
@layer components.l1 {
|
|
16
16
|
.tabs {
|
|
17
|
-
@apply
|
|
17
|
+
@apply flex;
|
|
18
18
|
|
|
19
19
|
@variant orientation-horizontal {
|
|
20
20
|
@apply flex-col;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@variant orientation-vertical {
|
|
24
|
-
@apply flex-row;
|
|
24
|
+
@apply h-full flex-row;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -29,16 +29,22 @@
|
|
|
29
29
|
@apply flex;
|
|
30
30
|
|
|
31
31
|
@variant orientation-horizontal {
|
|
32
|
-
@apply flex-row;
|
|
32
|
+
@apply relative w-full flex-row;
|
|
33
|
+
|
|
34
|
+
&:before {
|
|
35
|
+
@apply absolute bottom-0 left-0 block h-px w-full bg-(--outline-static);
|
|
36
|
+
content: '';
|
|
37
|
+
}
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
@variant orientation-vertical {
|
|
36
|
-
@apply flex-col;
|
|
41
|
+
@apply h-full flex-col;
|
|
37
42
|
}
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
.tab {
|
|
41
|
-
@apply fg-primary-muted rounded-small p-s relative cursor-pointer;
|
|
46
|
+
@apply gap-xs fg-primary-muted rounded-small p-s relative flex cursor-pointer items-center;
|
|
47
|
+
max-width: 200px;
|
|
42
48
|
|
|
43
49
|
@variant hover {
|
|
44
50
|
@apply fg-primary-bold;
|
|
@@ -76,6 +82,18 @@
|
|
|
76
82
|
content: '';
|
|
77
83
|
}
|
|
78
84
|
|
|
85
|
+
&.flex {
|
|
86
|
+
@apply grow;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.center {
|
|
90
|
+
@apply justify-center;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.end {
|
|
94
|
+
@apply justify-end;
|
|
95
|
+
}
|
|
96
|
+
|
|
79
97
|
@variant hover {
|
|
80
98
|
&:after {
|
|
81
99
|
@apply bg-(--outline-interactive-hover);
|
|
@@ -119,6 +137,10 @@
|
|
|
119
137
|
}
|
|
120
138
|
}
|
|
121
139
|
|
|
140
|
+
@variant group-orientation-vertical/tabs {
|
|
141
|
+
@apply flex-col;
|
|
142
|
+
}
|
|
143
|
+
|
|
122
144
|
@variant disabled {
|
|
123
145
|
@apply fg-disabled cursor-not-allowed;
|
|
124
146
|
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { TabProps } from "./types.js";
|
|
13
14
|
import "client-only";
|
|
14
|
-
import
|
|
15
|
-
import * as react_jsx_runtime168 from "react/jsx-runtime";
|
|
15
|
+
import * as react_jsx_runtime144 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/tabs/tab.d.ts
|
|
18
18
|
|
|
@@ -31,13 +31,14 @@ import * as react_jsx_runtime168 from "react/jsx-runtime";
|
|
|
31
31
|
* @param props - TabProps from react-aria-components.
|
|
32
32
|
* @param props.children - Tab label content.
|
|
33
33
|
* @param props.className - CSS class for the tab.
|
|
34
|
+
* @param props.align - Justification alignment for content within the Tab (only applicable when orientation is horizontal)
|
|
35
|
+
* @param props.flex - Boolean to determine if the Tab should grow in size (up to a max width). (only applicable when orientation is horizontal)
|
|
34
36
|
* @returns The rendered Tab component.
|
|
35
37
|
*/
|
|
36
38
|
declare function Tab({
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}: TabProps): react_jsx_runtime168.JSX.Element;
|
|
39
|
+
ref,
|
|
40
|
+
...props
|
|
41
|
+
}: TabProps): react_jsx_runtime144.JSX.Element;
|
|
41
42
|
//#endregion
|
|
42
43
|
export { Tab };
|
|
43
44
|
//# sourceMappingURL=tab.d.ts.map
|