@accelint/design-toolkit 9.6.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/index.d.ts +2 -2
- package/dist/components/accordion/panel.d.ts +2 -2
- package/dist/components/accordion/trigger.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/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/toggle.d.ts +2 -2
- 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/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 +4 -4
- 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-title.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 +2 -2
- 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/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/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/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/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/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 +2 -2
- 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 +4 -3
- package/dist/index.js +3 -2
- package/dist/providers/portal.d.ts +2 -2
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +6 -5
|
@@ -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
|
|
@@ -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: react19.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_runtime140 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_runtime140 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"}
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
@layer components.l1 {
|
|
16
16
|
.tabs {
|
|
17
|
-
@apply flex
|
|
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_runtime145 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_runtime145 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_runtime145.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
|
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
|
|
14
14
|
'use client';
|
|
15
15
|
|
|
16
|
+
import { TabStyleDefaults } from "./constants.js";
|
|
17
|
+
import { TabContext } from "./context.js";
|
|
16
18
|
import "client-only";
|
|
17
19
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
18
|
-
import { Tab as Tab$1, composeRenderProps } from "react-aria-components";
|
|
20
|
+
import { Tab as Tab$1, composeRenderProps, useContextProps } from "react-aria-components";
|
|
19
21
|
import { jsx } from "react/jsx-runtime";
|
|
20
22
|
import styles from "./styles.module.css";
|
|
21
23
|
|
|
@@ -35,12 +37,19 @@ import styles from "./styles.module.css";
|
|
|
35
37
|
* @param props - TabProps from react-aria-components.
|
|
36
38
|
* @param props.children - Tab label content.
|
|
37
39
|
* @param props.className - CSS class for the tab.
|
|
40
|
+
* @param props.align - Justification alignment for content within the Tab (only applicable when orientation is horizontal)
|
|
41
|
+
* @param props.flex - Boolean to determine if the Tab should grow in size (up to a max width). (only applicable when orientation is horizontal)
|
|
38
42
|
* @returns The rendered Tab component.
|
|
39
43
|
*/
|
|
40
|
-
function Tab({
|
|
44
|
+
function Tab({ ref, ...props }) {
|
|
45
|
+
[props, ref] = useContextProps(props, ref, TabContext);
|
|
46
|
+
const { children, className, align, flex, ...rest } = {
|
|
47
|
+
...TabStyleDefaults,
|
|
48
|
+
...props
|
|
49
|
+
};
|
|
41
50
|
return /* @__PURE__ */ jsx(Tab$1, {
|
|
42
51
|
...rest,
|
|
43
|
-
className: composeRenderProps(className, (className$1) => clsx(styles.tab, className$1)),
|
|
52
|
+
className: composeRenderProps(className, (className$1) => clsx(styles.tab, styles[align], flex && styles.flex, className$1)),
|
|
44
53
|
children
|
|
45
54
|
});
|
|
46
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab.js","names":["AriaTab","className"],"sources":["../../../src/components/tabs/tab.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 Tab as AriaTab,\n composeRenderProps,\n
|
|
1
|
+
{"version":3,"file":"tab.js","names":["AriaTab","className"],"sources":["../../../src/components/tabs/tab.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 Tab as AriaTab,\n composeRenderProps,\n useContextProps,\n} from 'react-aria-components';\nimport { TabStyleDefaults } from './constants';\nimport { TabContext } from './context';\nimport styles from './styles.module.css';\nimport type { TabProps } from './types';\n\n/**\n * Tab - Selectable tab within a TabList.\n *\n * @example\n * ```tsx\n * <TabList>\n * <Tab id=\"profile\">Profile</Tab>\n * <Tab id=\"settings\">Settings</Tab>\n * <Tab id=\"notifications\" isDisabled>Notifications</Tab>\n * </TabList>\n * ```\n *\n * @param props - TabProps from react-aria-components.\n * @param props.children - Tab label content.\n * @param props.className - CSS class for the tab.\n * @param props.align - Justification alignment for content within the Tab (only applicable when orientation is horizontal)\n * @param props.flex - Boolean to determine if the Tab should grow in size (up to a max width). (only applicable when orientation is horizontal)\n * @returns The rendered Tab component.\n */\nexport function Tab({ ref, ...props }: TabProps) {\n [props, ref] = useContextProps(props, ref, TabContext);\n\n const { children, className, align, flex, ...rest } = {\n ...TabStyleDefaults,\n ...props,\n };\n\n return (\n <AriaTab\n {...rest}\n className={composeRenderProps(className, (className) =>\n clsx(styles.tab, styles[align], flex && styles.flex, className),\n )}\n >\n {children}\n </AriaTab>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,SAAgB,IAAI,EAAE,KAAK,GAAG,SAAmB;AAC/C,EAAC,OAAO,OAAO,gBAAgB,OAAO,KAAK,WAAW;CAEtD,MAAM,EAAE,UAAU,WAAW,OAAO,MAAM,GAAG,SAAS;EACpD,GAAG;EACH,GAAG;EACJ;AAED,QACE,oBAACA;EACC,GAAI;EACJ,WAAW,mBAAmB,YAAY,gBACxC,KAAK,OAAO,KAAK,OAAO,QAAQ,QAAQ,OAAO,MAAMC,YAAU,CAChE;EAEA;GACO"}
|
|
@@ -11,13 +11,35 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { RefAttributes } from "react";
|
|
14
|
-
import { TabsProps as TabsProps$1 } from "react-aria-components";
|
|
14
|
+
import { TabProps as TabProps$1, TabsProps as TabsProps$1 } from "react-aria-components";
|
|
15
15
|
|
|
16
16
|
//#region src/components/tabs/types.d.ts
|
|
17
|
+
type TabStyleProps = ({
|
|
18
|
+
orientation?: 'horizontal';
|
|
19
|
+
} & {
|
|
20
|
+
/**
|
|
21
|
+
* Determines content alignment within a Tab
|
|
22
|
+
*
|
|
23
|
+
* @default 'start'
|
|
24
|
+
*/
|
|
25
|
+
align?: 'start' | 'center' | 'end';
|
|
26
|
+
/**
|
|
27
|
+
* If set to true will cause the Tabs to flex to fill the available space, with a max width
|
|
28
|
+
*
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
flex?: boolean;
|
|
32
|
+
}) | ({
|
|
33
|
+
orientation: 'vertical';
|
|
34
|
+
} & {
|
|
35
|
+
align?: never;
|
|
36
|
+
flex?: never;
|
|
37
|
+
});
|
|
17
38
|
/**
|
|
18
39
|
* Props for the Tabs component.
|
|
19
40
|
*/
|
|
20
|
-
type TabsProps = TabsProps$1 & RefAttributes<HTMLDivElement
|
|
41
|
+
type TabsProps = TabsProps$1 & RefAttributes<HTMLDivElement> & TabStyleProps;
|
|
42
|
+
type TabProps = TabProps$1 & RefAttributes<Element> & TabStyleProps;
|
|
21
43
|
//#endregion
|
|
22
|
-
export { TabsProps };
|
|
44
|
+
export { TabProps, TabStyleProps, TabsProps };
|
|
23
45
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { TextAreaFieldProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react34 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime145 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/text-area-field/context.d.ts
|
|
21
21
|
/** Context for sharing props across TextAreaField components */
|
|
22
|
-
declare const TextAreaFieldContext:
|
|
22
|
+
declare const TextAreaFieldContext: react34.Context<ContextValue<TextAreaFieldProps, HTMLDivElement>>;
|
|
23
23
|
/**
|
|
24
24
|
* Sets default props for all TextAreaField components within.
|
|
25
25
|
*
|
|
@@ -42,7 +42,7 @@ declare const TextAreaFieldContext: react37.Context<ContextValue<TextAreaFieldPr
|
|
|
42
42
|
declare function TextAreaFieldProvider({
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: ProviderProps<TextAreaFieldProps>):
|
|
45
|
+
}: ProviderProps<TextAreaFieldProps>): react_jsx_runtime145.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { TextAreaFieldContext, TextAreaFieldProvider };
|
|
48
48
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { TextAreaFieldProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime146 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/text-area-field/index.d.ts
|
|
18
18
|
|
|
@@ -44,7 +44,7 @@ import * as react_jsx_runtime141 from "react/jsx-runtime";
|
|
|
44
44
|
declare function TextAreaField({
|
|
45
45
|
ref,
|
|
46
46
|
...props
|
|
47
|
-
}: TextAreaFieldProps):
|
|
47
|
+
}: TextAreaFieldProps): react_jsx_runtime146.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { TextAreaField };
|
|
50
50
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { TextFieldProps as TextFieldProps$1 } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react35 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime147 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/text-field/context.d.ts
|
|
21
21
|
/** Context for sharing props across TextField components */
|
|
22
|
-
declare const TextFieldContext:
|
|
22
|
+
declare const TextFieldContext: react35.Context<ContextValue<TextFieldProps$1, HTMLDivElement>>;
|
|
23
23
|
/**
|
|
24
24
|
* Sets default props for all TextField components within.
|
|
25
25
|
*
|
|
@@ -42,7 +42,7 @@ declare const TextFieldContext: react36.Context<ContextValue<TextFieldProps$1, H
|
|
|
42
42
|
declare function TextFieldProvider({
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: ProviderProps<TextFieldProps$1>):
|
|
45
|
+
}: ProviderProps<TextFieldProps$1>): react_jsx_runtime147.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { TextFieldContext, TextFieldProvider };
|
|
48
48
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { TextFieldProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime148 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/text-field/index.d.ts
|
|
18
18
|
|
|
@@ -40,7 +40,7 @@ import * as react_jsx_runtime146 from "react/jsx-runtime";
|
|
|
40
40
|
declare function TextField({
|
|
41
41
|
ref,
|
|
42
42
|
...props
|
|
43
|
-
}: TextFieldProps):
|
|
43
|
+
}: TextFieldProps): react_jsx_runtime148.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { TextField };
|
|
46
46
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
|
|
13
13
|
import { TooltipTriggerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react37 from "react";
|
|
16
16
|
import { ContextValue } from "react-aria-components";
|
|
17
17
|
|
|
18
18
|
//#region src/components/tooltip/context.d.ts
|
|
19
19
|
/** Context for sharing props across TooltipTrigger components */
|
|
20
|
-
declare const TooltipContext:
|
|
20
|
+
declare const TooltipContext: react37.Context<ContextValue<TooltipTriggerProps, HTMLDivElement>>;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { TooltipContext };
|
|
23
23
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { TooltipProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime153 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/tooltip/index.d.ts
|
|
18
18
|
|
|
@@ -44,7 +44,7 @@ declare function Tooltip({
|
|
|
44
44
|
offset,
|
|
45
45
|
placement,
|
|
46
46
|
...props
|
|
47
|
-
}: TooltipProps):
|
|
47
|
+
}: TooltipProps): react_jsx_runtime153.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { Tooltip };
|
|
50
50
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { TooltipTriggerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime154 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/tooltip/trigger.d.ts
|
|
18
18
|
|
|
@@ -38,7 +38,7 @@ import * as react_jsx_runtime165 from "react/jsx-runtime";
|
|
|
38
38
|
declare function TooltipTrigger({
|
|
39
39
|
ref,
|
|
40
40
|
...props
|
|
41
|
-
}: TooltipTriggerProps):
|
|
41
|
+
}: TooltipTriggerProps): react_jsx_runtime154.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { TooltipTrigger };
|
|
44
44
|
//# sourceMappingURL=trigger.d.ts.map
|