@accelint/design-toolkit 9.1.1 → 9.3.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/README.md +15 -22
- package/catalog-info.yaml +4 -4
- 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/action-bar/index.d.ts +8 -0
- package/dist/components/action-bar/index.js +8 -1
- package/dist/components/action-bar/index.js.map +1 -1
- package/dist/components/action-bar/styles.module.css +9 -1
- package/dist/components/action-bar/types.d.ts +1 -0
- 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/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/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.js +44 -37
- package/dist/components/combobox-field/index.js.map +1 -1
- package/dist/components/combobox-field/styles.module.css +5 -1
- 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/index.js +3 -1
- package/dist/components/coordinate-field/index.js.map +1 -1
- package/dist/components/coordinate-field/segment.d.ts +3 -2
- package/dist/components/coordinate-field/segment.js +3 -1
- package/dist/components/coordinate-field/segment.js.map +1 -1
- package/dist/components/coordinate-field/styles.module.css +14 -0
- package/dist/components/coordinate-field/types.d.ts +2 -0
- package/dist/components/coordinate-field/types.js.map +1 -1
- package/dist/components/date-field/index.d.ts +3 -2
- package/dist/components/date-field/index.js +4 -2
- package/dist/components/date-field/index.js.map +1 -1
- package/dist/components/date-field/styles.module.css +4 -0
- package/dist/components/deferred-collection/index.d.ts +43 -0
- package/dist/components/deferred-collection/index.js +44 -0
- package/dist/components/deferred-collection/index.js.map +1 -0
- package/dist/components/deferred-collection/types.d.ts +26 -0
- package/dist/components/deferred-collection/types.js +12 -0
- 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/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/styles.module.css +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/input/index.js +3 -2
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/styles.module.css +5 -1
- 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 +2 -2
- 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 +23 -0
- package/dist/components/list/context.js +32 -0
- package/dist/components/list/context.js.map +1 -0
- package/dist/components/list/index.d.ts +44 -0
- package/dist/components/list/index.js +63 -0
- package/dist/components/list/index.js.map +1 -0
- package/dist/components/list/item-content.d.ts +36 -0
- package/dist/components/list/item-content.js +43 -0
- package/dist/components/list/item-content.js.map +1 -0
- package/dist/components/list/item-description.d.ts +34 -0
- package/dist/components/list/item-description.js +43 -0
- package/dist/components/list/item-description.js.map +1 -0
- package/dist/components/list/item-title.d.ts +34 -0
- package/dist/components/list/item-title.js +43 -0
- package/dist/components/list/item-title.js.map +1 -0
- package/dist/components/list/item.d.ts +44 -0
- package/dist/components/list/item.js +52 -0
- package/dist/components/list/item.js.map +1 -0
- package/dist/components/list/styles.module.css +95 -0
- package/dist/components/list/types.d.ts +33 -0
- package/dist/components/list/types.js +12 -0
- 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/styles.module.css +62 -46
- 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/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/rule-group.d.ts +4 -4
- package/dist/components/query-builder/rule.d.ts +2 -2
- 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/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/select-field/index.js +10 -4
- package/dist/components/select-field/index.js.map +1 -1
- package/dist/components/select-field/styles.module.css +4 -0
- package/dist/components/select-field/types.d.ts +1 -0
- 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/slider/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/context.d.ts +4 -4
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/list.d.ts +2 -2
- package/dist/components/tabs/panel.d.ts +2 -2
- package/dist/components/tabs/tab.d.ts +2 -2
- 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-area-field/styles.module.css +4 -0
- 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 +3 -2
- package/dist/components/time-field/index.js +4 -2
- package/dist/components/time-field/index.js.map +1 -1
- package/dist/components/time-field/styles.module.css +5 -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/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/hooks/use-frame-delay/index.d.ts +38 -0
- package/dist/hooks/use-frame-delay/index.js +61 -0
- package/dist/hooks/use-frame-delay/index.js.map +1 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.js +9 -1
- package/dist/providers/portal.d.ts +2 -2
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +19 -9
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
|
|
13
13
|
import { KanbanSearchProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime98 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/kanban/header-search.d.ts
|
|
18
18
|
declare function KanbanHeaderSearch({
|
|
19
19
|
classNames,
|
|
20
20
|
...rest
|
|
21
|
-
}: KanbanSearchProps):
|
|
21
|
+
}: KanbanSearchProps): react_jsx_runtime98.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { KanbanHeaderSearch };
|
|
24
24
|
//# sourceMappingURL=header-search.d.ts.map
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
import { KanbanComponentProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime99 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/kanban/header-title.d.ts
|
|
18
18
|
declare function KanbanHeaderTitle({
|
|
19
19
|
children,
|
|
20
20
|
className,
|
|
21
21
|
...rest
|
|
22
|
-
}: KanbanComponentProps):
|
|
22
|
+
}: KanbanComponentProps): react_jsx_runtime99.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { KanbanHeaderTitle };
|
|
25
25
|
//# sourceMappingURL=header-title.d.ts.map
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
import { KanbanComponentProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime58 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/kanban/header.d.ts
|
|
18
18
|
declare function KanbanHeader({
|
|
19
19
|
children,
|
|
20
20
|
className,
|
|
21
21
|
...rest
|
|
22
|
-
}: KanbanComponentProps):
|
|
22
|
+
}: KanbanComponentProps): react_jsx_runtime58.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { KanbanHeader };
|
|
25
25
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
import { KanbanProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
15
|
+
import * as react24 from "react";
|
|
16
|
+
import * as react_jsx_runtime63 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/kanban/kanban.d.ts
|
|
19
|
-
declare const DragContext:
|
|
19
|
+
declare const DragContext: react24.Context<{
|
|
20
20
|
activeId: string | null;
|
|
21
21
|
} | null>;
|
|
22
22
|
declare const useDragContext: () => {
|
|
@@ -26,7 +26,7 @@ declare function Kanban({
|
|
|
26
26
|
children,
|
|
27
27
|
className,
|
|
28
28
|
...rest
|
|
29
|
-
}: KanbanProps):
|
|
29
|
+
}: KanbanProps): react_jsx_runtime63.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { DragContext, Kanban, useDragContext };
|
|
32
32
|
//# sourceMappingURL=kanban.d.ts.map
|
|
@@ -15,14 +15,14 @@ import { LabelProps as LabelProps$1 } from "./types.js";
|
|
|
15
15
|
import "client-only";
|
|
16
16
|
import * as react27 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime85 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/label/context.d.ts
|
|
21
21
|
declare const LabelContext: react27.Context<ContextValue<LabelProps$1, HTMLLabelElement>>;
|
|
22
22
|
declare function LabelProvider({
|
|
23
23
|
children,
|
|
24
24
|
...props
|
|
25
|
-
}: ProviderProps<LabelProps$1>):
|
|
25
|
+
}: ProviderProps<LabelProps$1>): react_jsx_runtime85.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { LabelContext, LabelProvider };
|
|
28
28
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { LabelProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime87 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/label/index.d.ts
|
|
18
18
|
|
|
@@ -38,7 +38,7 @@ import * as react_jsx_runtime85 from "react/jsx-runtime";
|
|
|
38
38
|
declare function Label({
|
|
39
39
|
ref,
|
|
40
40
|
...props
|
|
41
|
-
}: LabelProps):
|
|
41
|
+
}: LabelProps): react_jsx_runtime87.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { Label };
|
|
44
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { LinesProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime91 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/lines/index.d.ts
|
|
17
17
|
/**
|
|
@@ -28,7 +28,7 @@ declare function Lines({
|
|
|
28
28
|
size,
|
|
29
29
|
variant,
|
|
30
30
|
isVisible
|
|
31
|
-
}: LinesProps):
|
|
31
|
+
}: LinesProps): react_jsx_runtime91.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { Lines };
|
|
34
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { LinkProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react_jsx_runtime88 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/link/context.d.ts
|
|
19
19
|
declare function LinkProvider({
|
|
20
20
|
children,
|
|
21
21
|
...props
|
|
22
|
-
}: ProviderProps<LinkProps>):
|
|
22
|
+
}: ProviderProps<LinkProps>): react_jsx_runtime88.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { LinkProvider };
|
|
25
25
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { LinkProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime94 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/link/index.d.ts
|
|
18
18
|
/**
|
|
@@ -27,7 +27,7 @@ import * as react_jsx_runtime92 from "react/jsx-runtime";
|
|
|
27
27
|
declare function Link({
|
|
28
28
|
ref,
|
|
29
29
|
...props
|
|
30
|
-
}: LinkProps):
|
|
30
|
+
}: LinkProps): react_jsx_runtime94.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { Link };
|
|
33
33
|
//# sourceMappingURL=index.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
|
+
import { ListItemVariant, ListProps } from "./types.js";
|
|
14
|
+
import "client-only";
|
|
15
|
+
import * as react28 from "react";
|
|
16
|
+
import { ContextValue } from "react-aria-components";
|
|
17
|
+
|
|
18
|
+
//#region src/components/list/context.d.ts
|
|
19
|
+
declare const ListContext: react28.Context<ContextValue<ListProps<object>, HTMLDivElement>>;
|
|
20
|
+
declare const useListItemVariant: () => ListItemVariant;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ListContext, useListItemVariant };
|
|
23
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
'use client';
|
|
15
|
+
|
|
16
|
+
import "client-only";
|
|
17
|
+
import { createContext, useContext } from "react";
|
|
18
|
+
|
|
19
|
+
//#region src/components/list/context.tsx
|
|
20
|
+
const ListStylesDefaults = { variant: "cozy" };
|
|
21
|
+
const ListContext = createContext({ variant: ListStylesDefaults.variant });
|
|
22
|
+
const useListItemVariant = () => {
|
|
23
|
+
const context = useContext(ListContext);
|
|
24
|
+
if (typeof context === "object" && context !== null) {
|
|
25
|
+
if ("variant" in context && context.variant) return context.variant;
|
|
26
|
+
}
|
|
27
|
+
return ListStylesDefaults.variant;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { ListContext, useListItemVariant };
|
|
32
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/list/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'use client';\n\nimport 'client-only';\nimport { createContext, useContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { ListProps } from './types';\n\nconst ListStylesDefaults = {\n variant: 'cozy',\n} as const;\n\nexport const ListContext = createContext<\n ContextValue<ListProps<object>, HTMLDivElement>\n>({ variant: ListStylesDefaults.variant });\n\nexport const useListItemVariant = () => {\n const context = useContext(ListContext);\n\n if (typeof context === 'object' && context !== null) {\n if ('variant' in context && context.variant) {\n return context.variant;\n }\n }\n\n return ListStylesDefaults.variant;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,MAAM,qBAAqB,EACzB,SAAS,QACV;AAED,MAAa,cAAc,cAEzB,EAAE,SAAS,mBAAmB,SAAS,CAAC;AAE1C,MAAa,2BAA2B;CACtC,MAAM,UAAU,WAAW,YAAY;AAEvC,KAAI,OAAO,YAAY,YAAY,YAAY,MAC7C;MAAI,aAAa,WAAW,QAAQ,QAClC,QAAO,QAAQ;;AAInB,QAAO,mBAAmB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { ListProps } from "./types.js";
|
|
14
|
+
import "client-only";
|
|
15
|
+
import * as react_jsx_runtime97 from "react/jsx-runtime";
|
|
16
|
+
|
|
17
|
+
//#region src/components/list/index.d.ts
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* List - A flexible grid list component for selectable items with rich content
|
|
21
|
+
*
|
|
22
|
+
* Provides accessible grid list functionality with support for selection,
|
|
23
|
+
* and rich item content including labels, descriptions, icons, and actions. Perfect for
|
|
24
|
+
* data tables, file lists, or any selectable grid interface.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // Basic list view with sizing
|
|
28
|
+
* <div className='h-[400px] w-[300px]'>
|
|
29
|
+
* <List className='h-full' aria-label='Items'>
|
|
30
|
+
* <ListItem>
|
|
31
|
+
* <ListItemContent>
|
|
32
|
+
* <ListItemTitle>Item 1</ListItemTitle>
|
|
33
|
+
* </ListItemContent>
|
|
34
|
+
* </ListItem>
|
|
35
|
+
* </List>
|
|
36
|
+
* </div>
|
|
37
|
+
*/
|
|
38
|
+
declare function List<T extends object>({
|
|
39
|
+
ref,
|
|
40
|
+
...props
|
|
41
|
+
}: ListProps<T>): react_jsx_runtime97.JSX.Element;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { List };
|
|
44
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
'use client';
|
|
15
|
+
|
|
16
|
+
import { IconProvider } from "../icon/context.js";
|
|
17
|
+
import { ListContext } from "./context.js";
|
|
18
|
+
import "client-only";
|
|
19
|
+
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
20
|
+
import { GridList, composeRenderProps, useContextProps } from "react-aria-components";
|
|
21
|
+
import { jsx } from "react/jsx-runtime";
|
|
22
|
+
import styles from "./styles.module.css";
|
|
23
|
+
|
|
24
|
+
//#region src/components/list/index.tsx
|
|
25
|
+
/**
|
|
26
|
+
* List - A flexible grid list component for selectable items with rich content
|
|
27
|
+
*
|
|
28
|
+
* Provides accessible grid list functionality with support for selection,
|
|
29
|
+
* and rich item content including labels, descriptions, icons, and actions. Perfect for
|
|
30
|
+
* data tables, file lists, or any selectable grid interface.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* // Basic list view with sizing
|
|
34
|
+
* <div className='h-[400px] w-[300px]'>
|
|
35
|
+
* <List className='h-full' aria-label='Items'>
|
|
36
|
+
* <ListItem>
|
|
37
|
+
* <ListItemContent>
|
|
38
|
+
* <ListItemTitle>Item 1</ListItemTitle>
|
|
39
|
+
* </ListItemContent>
|
|
40
|
+
* </ListItem>
|
|
41
|
+
* </List>
|
|
42
|
+
* </div>
|
|
43
|
+
*/
|
|
44
|
+
function List({ ref, ...props }) {
|
|
45
|
+
[props, ref] = useContextProps(props, ref ?? null, ListContext);
|
|
46
|
+
const { children, className, variant, ...rest } = props;
|
|
47
|
+
return /* @__PURE__ */ jsx(ListContext.Provider, {
|
|
48
|
+
value: { variant },
|
|
49
|
+
children: /* @__PURE__ */ jsx(IconProvider, {
|
|
50
|
+
size: variant === "cozy" ? "large" : "small",
|
|
51
|
+
children: /* @__PURE__ */ jsx(GridList, {
|
|
52
|
+
...rest,
|
|
53
|
+
ref,
|
|
54
|
+
className: composeRenderProps(className, (className$1) => clsx("group/list", styles.list, className$1)),
|
|
55
|
+
children
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { List };
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["className"],"sources":["../../../src/components/list/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'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {\n composeRenderProps,\n GridList,\n useContextProps,\n} from 'react-aria-components';\nimport { IconProvider } from '../icon/context';\nimport { ListContext } from './context';\nimport styles from './styles.module.css';\nimport type { ListProps } from './types';\n\n/**\n * List - A flexible grid list component for selectable items with rich content\n *\n * Provides accessible grid list functionality with support for selection,\n * and rich item content including labels, descriptions, icons, and actions. Perfect for\n * data tables, file lists, or any selectable grid interface.\n *\n * @example\n * // Basic list view with sizing\n * <div className='h-[400px] w-[300px]'>\n * <List className='h-full' aria-label='Items'>\n * <ListItem>\n * <ListItemContent>\n * <ListItemTitle>Item 1</ListItemTitle>\n * </ListItemContent>\n * </ListItem>\n * </List>\n * </div>\n */\nexport function List<T extends object>({ ref, ...props }: ListProps<T>) {\n [props, ref] = useContextProps(props, ref ?? null, ListContext);\n\n const { children, className, variant, ...rest } = props;\n\n return (\n <ListContext.Provider value={{ variant }}>\n <IconProvider size={variant === 'cozy' ? 'large' : 'small'}>\n <GridList<T>\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx('group/list', styles.list, className),\n )}\n >\n {children}\n </GridList>\n </IconProvider>\n </ListContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,SAAgB,KAAuB,EAAE,KAAK,GAAG,SAAuB;AACtE,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,YAAY;CAE/D,MAAM,EAAE,UAAU,WAAW,SAAS,GAAG,SAAS;AAElD,QACE,oBAAC,YAAY;EAAS,OAAO,EAAE,SAAS;YACtC,oBAAC;GAAa,MAAM,YAAY,SAAS,UAAU;aACjD,oBAAC;IACC,GAAI;IACC;IACL,WAAW,mBAAmB,YAAY,gBACxC,KAAK,cAAc,OAAO,MAAMA,YAAU,CAC3C;IAEA;KACQ;IACE;GACM"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { ListItemContentProps } from "./types.js";
|
|
14
|
+
import "client-only";
|
|
15
|
+
import * as react_jsx_runtime100 from "react/jsx-runtime";
|
|
16
|
+
|
|
17
|
+
//#region src/components/list/item-content.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* ListItemContent - Container for list item title and description
|
|
20
|
+
*
|
|
21
|
+
* Provides consistent spacing and layout for text content within list items.
|
|
22
|
+
* Should contain ListItemTitle and optionally ListItemDescription components.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* <ListItemContent>
|
|
26
|
+
* <ListItemTitle>Item Title</ListItemTitle>
|
|
27
|
+
* <ListItemDescription>Optional description text</ListItemDescription>
|
|
28
|
+
* </ListItemContent>
|
|
29
|
+
*/
|
|
30
|
+
declare function ListItemContent({
|
|
31
|
+
className,
|
|
32
|
+
...rest
|
|
33
|
+
}: ListItemContentProps): react_jsx_runtime100.JSX.Element;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { ListItemContent };
|
|
36
|
+
//# sourceMappingURL=item-content.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
'use client';
|
|
15
|
+
|
|
16
|
+
import "client-only";
|
|
17
|
+
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
import styles from "./styles.module.css";
|
|
20
|
+
|
|
21
|
+
//#region src/components/list/item-content.tsx
|
|
22
|
+
/**
|
|
23
|
+
* ListItemContent - Container for list item title and description
|
|
24
|
+
*
|
|
25
|
+
* Provides consistent spacing and layout for text content within list items.
|
|
26
|
+
* Should contain ListItemTitle and optionally ListItemDescription components.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* <ListItemContent>
|
|
30
|
+
* <ListItemTitle>Item Title</ListItemTitle>
|
|
31
|
+
* <ListItemDescription>Optional description text</ListItemDescription>
|
|
32
|
+
* </ListItemContent>
|
|
33
|
+
*/
|
|
34
|
+
function ListItemContent({ className, ...rest }) {
|
|
35
|
+
return /* @__PURE__ */ jsx("div", {
|
|
36
|
+
...rest,
|
|
37
|
+
className: clsx(styles.content, className)
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { ListItemContent };
|
|
43
|
+
//# sourceMappingURL=item-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-content.js","names":[],"sources":["../../../src/components/list/item-content.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'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport styles from './styles.module.css';\nimport type { ListItemContentProps } from './types';\n\n/**\n * ListItemContent - Container for list item title and description\n *\n * Provides consistent spacing and layout for text content within list items.\n * Should contain ListItemTitle and optionally ListItemDescription components.\n *\n * @example\n * <ListItemContent>\n * <ListItemTitle>Item Title</ListItemTitle>\n * <ListItemDescription>Optional description text</ListItemDescription>\n * </ListItemContent>\n */\nexport function ListItemContent({ className, ...rest }: ListItemContentProps) {\n return <div {...rest} className={clsx(styles.content, className)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,SAAgB,gBAAgB,EAAE,WAAW,GAAG,QAA8B;AAC5E,QAAO,oBAAC;EAAI,GAAI;EAAM,WAAW,KAAK,OAAO,SAAS,UAAU;GAAI"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { ListItemDescriptionProps } from "./types.js";
|
|
14
|
+
import "client-only";
|
|
15
|
+
import * as react_jsx_runtime92 from "react/jsx-runtime";
|
|
16
|
+
|
|
17
|
+
//#region src/components/list/item-description.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* ListItemDescription - Secondary descriptive text for list items
|
|
20
|
+
*
|
|
21
|
+
* Renders supplementary information below the title with muted styling.
|
|
22
|
+
* Automatically adjusts font size for cozy (body-s) and compact (body-xs) variants.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* <ListItemDescription>Software Engineer</ListItemDescription>
|
|
26
|
+
*/
|
|
27
|
+
declare function ListItemDescription({
|
|
28
|
+
children,
|
|
29
|
+
className,
|
|
30
|
+
...rest
|
|
31
|
+
}: ListItemDescriptionProps): react_jsx_runtime92.JSX.Element;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { ListItemDescription };
|
|
34
|
+
//# sourceMappingURL=item-description.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
'use client';
|
|
15
|
+
|
|
16
|
+
import { useListItemVariant } from "./context.js";
|
|
17
|
+
import "client-only";
|
|
18
|
+
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
|
+
import { jsx } from "react/jsx-runtime";
|
|
20
|
+
import styles from "./styles.module.css";
|
|
21
|
+
|
|
22
|
+
//#region src/components/list/item-description.tsx
|
|
23
|
+
/**
|
|
24
|
+
* ListItemDescription - Secondary descriptive text for list items
|
|
25
|
+
*
|
|
26
|
+
* Renders supplementary information below the title with muted styling.
|
|
27
|
+
* Automatically adjusts font size for cozy (body-s) and compact (body-xs) variants.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* <ListItemDescription>Software Engineer</ListItemDescription>
|
|
31
|
+
*/
|
|
32
|
+
function ListItemDescription({ children, className, ...rest }) {
|
|
33
|
+
const variant = useListItemVariant();
|
|
34
|
+
return /* @__PURE__ */ jsx("div", {
|
|
35
|
+
...rest,
|
|
36
|
+
className: clsx(styles.description, styles[variant], className),
|
|
37
|
+
children
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { ListItemDescription };
|
|
43
|
+
//# sourceMappingURL=item-description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-description.js","names":[],"sources":["../../../src/components/list/item-description.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'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useListItemVariant } from './context';\nimport styles from './styles.module.css';\nimport type { ListItemDescriptionProps } from './types';\n\n/**\n * ListItemDescription - Secondary descriptive text for list items\n *\n * Renders supplementary information below the title with muted styling.\n * Automatically adjusts font size for cozy (body-s) and compact (body-xs) variants.\n *\n * @example\n * <ListItemDescription>Software Engineer</ListItemDescription>\n */\nexport function ListItemDescription({\n children,\n className,\n ...rest\n}: ListItemDescriptionProps) {\n const variant = useListItemVariant();\n\n return (\n <div\n {...rest}\n className={clsx(styles.description, styles[variant], className)}\n >\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,SAAgB,oBAAoB,EAClC,UACA,WACA,GAAG,QACwB;CAC3B,MAAM,UAAU,oBAAoB;AAEpC,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,KAAK,OAAO,aAAa,OAAO,UAAU,UAAU;EAE9D;GACG"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { ListItemTitleProps } from "./types.js";
|
|
14
|
+
import "client-only";
|
|
15
|
+
import * as react_jsx_runtime96 from "react/jsx-runtime";
|
|
16
|
+
|
|
17
|
+
//#region src/components/list/item-title.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* ListItemTitle - Primary text label for list items
|
|
20
|
+
*
|
|
21
|
+
* Renders the main title text with appropriate typography based on the list variant.
|
|
22
|
+
* Automatically adjusts font size for cozy (header-m) and compact (header-s) variants.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* <ListItemTitle>John Doe</ListItemTitle>
|
|
26
|
+
*/
|
|
27
|
+
declare function ListItemTitle({
|
|
28
|
+
children,
|
|
29
|
+
className,
|
|
30
|
+
...rest
|
|
31
|
+
}: ListItemTitleProps): react_jsx_runtime96.JSX.Element;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { ListItemTitle };
|
|
34
|
+
//# sourceMappingURL=item-title.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
'use client';
|
|
15
|
+
|
|
16
|
+
import { useListItemVariant } from "./context.js";
|
|
17
|
+
import "client-only";
|
|
18
|
+
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
|
+
import { jsx } from "react/jsx-runtime";
|
|
20
|
+
import styles from "./styles.module.css";
|
|
21
|
+
|
|
22
|
+
//#region src/components/list/item-title.tsx
|
|
23
|
+
/**
|
|
24
|
+
* ListItemTitle - Primary text label for list items
|
|
25
|
+
*
|
|
26
|
+
* Renders the main title text with appropriate typography based on the list variant.
|
|
27
|
+
* Automatically adjusts font size for cozy (header-m) and compact (header-s) variants.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* <ListItemTitle>John Doe</ListItemTitle>
|
|
31
|
+
*/
|
|
32
|
+
function ListItemTitle({ children, className, ...rest }) {
|
|
33
|
+
const variant = useListItemVariant();
|
|
34
|
+
return /* @__PURE__ */ jsx("div", {
|
|
35
|
+
...rest,
|
|
36
|
+
className: clsx(styles.title, styles[variant], className),
|
|
37
|
+
children
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { ListItemTitle };
|
|
43
|
+
//# sourceMappingURL=item-title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-title.js","names":[],"sources":["../../../src/components/list/item-title.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'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useListItemVariant } from './context';\nimport styles from './styles.module.css';\nimport type { ListItemTitleProps } from './types';\n\n/**\n * ListItemTitle - Primary text label for list items\n *\n * Renders the main title text with appropriate typography based on the list variant.\n * Automatically adjusts font size for cozy (header-m) and compact (header-s) variants.\n *\n * @example\n * <ListItemTitle>John Doe</ListItemTitle>\n */\nexport function ListItemTitle({\n children,\n className,\n ...rest\n}: ListItemTitleProps) {\n const variant = useListItemVariant();\n\n return (\n <div {...rest} className={clsx(styles.title, styles[variant], className)}>\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,SAAgB,cAAc,EAC5B,UACA,WACA,GAAG,QACkB;CACrB,MAAM,UAAU,oBAAoB;AAEpC,QACE,oBAAC;EAAI,GAAI;EAAM,WAAW,KAAK,OAAO,OAAO,OAAO,UAAU,UAAU;EACrE;GACG"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { ListItemProps } from "./types.js";
|
|
14
|
+
import "client-only";
|
|
15
|
+
import * as react_jsx_runtime189 from "react/jsx-runtime";
|
|
16
|
+
|
|
17
|
+
//#region src/components/list/item.d.ts
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* ListItem - Individual selectable item within a List
|
|
21
|
+
*
|
|
22
|
+
* Represents a single row in the grid list with full interaction support including
|
|
23
|
+
* selection, hover states, and keyboard navigation. Can contain icons, content,
|
|
24
|
+
* indicators, and action elements. If children is a string, it will be automatically
|
|
25
|
+
* wrapped in a ListItemTitle.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* <ListItem textValue="User item">
|
|
29
|
+
* <Icon><Avatar /></Icon>
|
|
30
|
+
* <ListItemContent>
|
|
31
|
+
* <ListItemTitle>John Doe</ListItemTitle>
|
|
32
|
+
* <ListItemDescription>Software Engineer</ListItemDescription>
|
|
33
|
+
* </ListItemContent>
|
|
34
|
+
* </ListItem>
|
|
35
|
+
*/
|
|
36
|
+
declare function ListItem<T extends object>({
|
|
37
|
+
children,
|
|
38
|
+
classNames,
|
|
39
|
+
textValue,
|
|
40
|
+
...rest
|
|
41
|
+
}: ListItemProps<T>): react_jsx_runtime189.JSX.Element;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { ListItem };
|
|
44
|
+
//# sourceMappingURL=item.d.ts.map
|