@accelint/design-toolkit 9.1.1 → 9.2.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.
Files changed (214) hide show
  1. package/catalog-info.yaml +1 -1
  2. package/dist/components/accordion/group.d.ts +2 -2
  3. package/dist/components/accordion/header.d.ts +2 -2
  4. package/dist/components/accordion/index.d.ts +2 -2
  5. package/dist/components/accordion/panel.d.ts +2 -2
  6. package/dist/components/accordion/trigger.d.ts +2 -2
  7. package/dist/components/action-bar/index.d.ts +2 -2
  8. package/dist/components/avatar/context.d.ts +4 -4
  9. package/dist/components/avatar/index.d.ts +2 -2
  10. package/dist/components/badge/context.d.ts +4 -4
  11. package/dist/components/badge/index.d.ts +2 -2
  12. package/dist/components/breadcrumbs/index.d.ts +2 -2
  13. package/dist/components/breadcrumbs/item.d.ts +2 -2
  14. package/dist/components/button/context.d.ts +8 -8
  15. package/dist/components/button/index.d.ts +2 -2
  16. package/dist/components/button/link.d.ts +2 -2
  17. package/dist/components/button/toggle.d.ts +2 -2
  18. package/dist/components/checkbox/context.d.ts +3 -3
  19. package/dist/components/checkbox/group.d.ts +2 -2
  20. package/dist/components/checkbox/index.d.ts +2 -2
  21. package/dist/components/chip/context.d.ts +4 -4
  22. package/dist/components/chip/deletable.d.ts +2 -2
  23. package/dist/components/chip/index.d.ts +2 -2
  24. package/dist/components/chip/list.d.ts +4 -4
  25. package/dist/components/chip/selectable.d.ts +2 -2
  26. package/dist/components/classification-badge/context.d.ts +4 -4
  27. package/dist/components/classification-badge/index.d.ts +2 -2
  28. package/dist/components/classification-banner/context.d.ts +4 -4
  29. package/dist/components/classification-banner/index.d.ts +2 -2
  30. package/dist/components/clock/index.d.ts +2 -2
  31. package/dist/components/color-picker/index.d.ts +2 -2
  32. package/dist/components/combobox-field/context.d.ts +4 -4
  33. package/dist/components/combobox-field/index.d.ts +2 -2
  34. package/dist/components/coordinate-field/context.d.ts +6 -6
  35. package/dist/components/coordinate-field/index.d.ts +2 -2
  36. package/dist/components/coordinate-field/segment.d.ts +2 -2
  37. package/dist/components/date-field/index.d.ts +2 -2
  38. package/dist/components/details-list/context.d.ts +4 -4
  39. package/dist/components/details-list/index.d.ts +2 -2
  40. package/dist/components/details-list/label.d.ts +2 -2
  41. package/dist/components/details-list/value.d.ts +2 -2
  42. package/dist/components/dialog/content.d.ts +2 -2
  43. package/dist/components/dialog/context.d.ts +2 -2
  44. package/dist/components/dialog/footer.d.ts +2 -2
  45. package/dist/components/dialog/index.d.ts +2 -2
  46. package/dist/components/dialog/title.d.ts +2 -2
  47. package/dist/components/divider/context.d.ts +4 -4
  48. package/dist/components/divider/index.d.ts +2 -2
  49. package/dist/components/drawer/back.d.ts +2 -2
  50. package/dist/components/drawer/close.d.ts +2 -2
  51. package/dist/components/drawer/content.d.ts +2 -2
  52. package/dist/components/drawer/context.d.ts +2 -2
  53. package/dist/components/drawer/footer.d.ts +2 -2
  54. package/dist/components/drawer/header-title.d.ts +2 -2
  55. package/dist/components/drawer/header.d.ts +2 -2
  56. package/dist/components/drawer/index.d.ts +2 -2
  57. package/dist/components/drawer/layout-main.d.ts +2 -2
  58. package/dist/components/drawer/layout.d.ts +2 -2
  59. package/dist/components/drawer/menu-item.d.ts +2 -2
  60. package/dist/components/drawer/menu.d.ts +2 -2
  61. package/dist/components/drawer/panel.d.ts +2 -2
  62. package/dist/components/drawer/trigger.d.ts +2 -2
  63. package/dist/components/drawer/view.d.ts +2 -2
  64. package/dist/components/flashcard/index.d.ts +9 -9
  65. package/dist/components/hero/context.d.ts +2 -2
  66. package/dist/components/hero/index.d.ts +2 -2
  67. package/dist/components/hero/subtitle.d.ts +2 -2
  68. package/dist/components/hero/title.d.ts +2 -2
  69. package/dist/components/hotkey/context.d.ts +4 -4
  70. package/dist/components/hotkey/index.d.ts +2 -2
  71. package/dist/components/hotkey/set.d.ts +2 -2
  72. package/dist/components/icon/context.d.ts +4 -4
  73. package/dist/components/icon/index.d.ts +2 -2
  74. package/dist/components/input/context.d.ts +2 -2
  75. package/dist/components/input/index.d.ts +2 -2
  76. package/dist/components/kanban/card-body.d.ts +2 -2
  77. package/dist/components/kanban/card-header-actions.d.ts +2 -2
  78. package/dist/components/kanban/card-header-title.d.ts +2 -2
  79. package/dist/components/kanban/card-header.d.ts +2 -2
  80. package/dist/components/kanban/card.d.ts +2 -2
  81. package/dist/components/kanban/column-actions.d.ts +2 -2
  82. package/dist/components/kanban/column-container.d.ts +2 -2
  83. package/dist/components/kanban/column-content.d.ts +2 -2
  84. package/dist/components/kanban/column-header-actions.d.ts +2 -2
  85. package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
  86. package/dist/components/kanban/column-header-title.d.ts +2 -2
  87. package/dist/components/kanban/column-header.d.ts +2 -2
  88. package/dist/components/kanban/column.d.ts +2 -2
  89. package/dist/components/kanban/context.d.ts +2 -2
  90. package/dist/components/kanban/header-actions.d.ts +2 -2
  91. package/dist/components/kanban/header-search.d.ts +2 -2
  92. package/dist/components/kanban/header-title.d.ts +2 -2
  93. package/dist/components/kanban/header.d.ts +2 -2
  94. package/dist/components/kanban/kanban.d.ts +4 -4
  95. package/dist/components/label/context.d.ts +4 -4
  96. package/dist/components/label/index.d.ts +2 -2
  97. package/dist/components/lines/index.d.ts +2 -2
  98. package/dist/components/link/context.d.ts +2 -2
  99. package/dist/components/link/index.d.ts +2 -2
  100. package/dist/components/list/context.d.ts +23 -0
  101. package/dist/components/list/context.js +32 -0
  102. package/dist/components/list/context.js.map +1 -0
  103. package/dist/components/list/index.d.ts +44 -0
  104. package/dist/components/list/index.js +63 -0
  105. package/dist/components/list/index.js.map +1 -0
  106. package/dist/components/list/item-content.d.ts +36 -0
  107. package/dist/components/list/item-content.js +43 -0
  108. package/dist/components/list/item-content.js.map +1 -0
  109. package/dist/components/list/item-description.d.ts +34 -0
  110. package/dist/components/list/item-description.js +43 -0
  111. package/dist/components/list/item-description.js.map +1 -0
  112. package/dist/components/list/item-title.d.ts +34 -0
  113. package/dist/components/list/item-title.js +43 -0
  114. package/dist/components/list/item-title.js.map +1 -0
  115. package/dist/components/list/item.d.ts +44 -0
  116. package/dist/components/list/item.js +52 -0
  117. package/dist/components/list/item.js.map +1 -0
  118. package/dist/components/list/styles.module.css +95 -0
  119. package/dist/components/list/types.d.ts +33 -0
  120. package/dist/components/list/types.js +12 -0
  121. package/dist/components/menu/context.d.ts +2 -2
  122. package/dist/components/menu/index.d.ts +2 -2
  123. package/dist/components/menu/item-description.d.ts +2 -2
  124. package/dist/components/menu/item-label.d.ts +2 -2
  125. package/dist/components/menu/item.d.ts +2 -2
  126. package/dist/components/menu/section.d.ts +2 -2
  127. package/dist/components/menu/separator.d.ts +2 -2
  128. package/dist/components/menu/submenu.d.ts +2 -2
  129. package/dist/components/notice/index.d.ts +2 -2
  130. package/dist/components/notice/notice-icon.d.ts +2 -2
  131. package/dist/components/options/context.d.ts +2 -2
  132. package/dist/components/options/index.d.ts +2 -2
  133. package/dist/components/options/item-content.d.ts +2 -2
  134. package/dist/components/options/item-description.d.ts +2 -2
  135. package/dist/components/options/item-label.d.ts +2 -2
  136. package/dist/components/options/item.d.ts +2 -2
  137. package/dist/components/options/section.d.ts +2 -2
  138. package/dist/components/pagination/context.d.ts +2 -2
  139. package/dist/components/pagination/index.d.ts +2 -2
  140. package/dist/components/pagination/next.d.ts +2 -2
  141. package/dist/components/pagination/pages.d.ts +2 -2
  142. package/dist/components/pagination/prev.d.ts +2 -2
  143. package/dist/components/popover/content.d.ts +2 -2
  144. package/dist/components/popover/footer.d.ts +2 -2
  145. package/dist/components/popover/index.d.ts +2 -2
  146. package/dist/components/popover/title.d.ts +2 -2
  147. package/dist/components/popover/trigger.d.ts +2 -2
  148. package/dist/components/query-builder/action-element.d.ts +2 -2
  149. package/dist/components/query-builder/actions.d.ts +4 -4
  150. package/dist/components/query-builder/combinator-selector.d.ts +2 -2
  151. package/dist/components/query-builder/index.d.ts +2 -2
  152. package/dist/components/query-builder/rule-group.d.ts +4 -4
  153. package/dist/components/query-builder/rule.d.ts +2 -2
  154. package/dist/components/query-builder/value-editor.d.ts +2 -2
  155. package/dist/components/query-builder/value-selector.d.ts +2 -2
  156. package/dist/components/radio/context.d.ts +2 -2
  157. package/dist/components/radio/group.d.ts +2 -2
  158. package/dist/components/radio/index.d.ts +2 -2
  159. package/dist/components/search-field/context.d.ts +4 -4
  160. package/dist/components/search-field/index.d.ts +2 -2
  161. package/dist/components/select-field/context.d.ts +4 -4
  162. package/dist/components/select-field/index.d.ts +2 -2
  163. package/dist/components/sidenav/avatar.d.ts +2 -2
  164. package/dist/components/sidenav/content.d.ts +2 -2
  165. package/dist/components/sidenav/context.d.ts +2 -2
  166. package/dist/components/sidenav/footer.d.ts +2 -2
  167. package/dist/components/sidenav/header.d.ts +2 -2
  168. package/dist/components/sidenav/index.d.ts +2 -2
  169. package/dist/components/sidenav/item.d.ts +2 -2
  170. package/dist/components/sidenav/link.d.ts +2 -2
  171. package/dist/components/sidenav/menu-item.d.ts +2 -2
  172. package/dist/components/sidenav/menu.d.ts +2 -2
  173. package/dist/components/sidenav/trigger.d.ts +2 -2
  174. package/dist/components/skeleton/index.d.ts +2 -2
  175. package/dist/components/slider/index.d.ts +2 -2
  176. package/dist/components/switch/context.d.ts +4 -4
  177. package/dist/components/switch/index.d.ts +2 -2
  178. package/dist/components/table/body.d.ts +2 -2
  179. package/dist/components/table/cell.d.ts +2 -2
  180. package/dist/components/table/context.d.ts +2 -2
  181. package/dist/components/table/header-cell.d.ts +2 -2
  182. package/dist/components/table/header.d.ts +2 -2
  183. package/dist/components/table/index.d.ts +2 -2
  184. package/dist/components/table/row.d.ts +2 -2
  185. package/dist/components/tabs/context.d.ts +4 -4
  186. package/dist/components/tabs/index.d.ts +2 -2
  187. package/dist/components/tabs/list.d.ts +2 -2
  188. package/dist/components/tabs/panel.d.ts +2 -2
  189. package/dist/components/tabs/tab.d.ts +2 -2
  190. package/dist/components/text-area-field/context.d.ts +4 -4
  191. package/dist/components/text-area-field/index.d.ts +2 -2
  192. package/dist/components/text-field/context.d.ts +4 -4
  193. package/dist/components/text-field/index.d.ts +2 -2
  194. package/dist/components/time-field/index.d.ts +2 -2
  195. package/dist/components/tooltip/context.d.ts +2 -2
  196. package/dist/components/tooltip/index.d.ts +2 -2
  197. package/dist/components/tooltip/trigger.d.ts +2 -2
  198. package/dist/components/tree/context.d.ts +3 -3
  199. package/dist/components/tree/index.d.ts +2 -2
  200. package/dist/components/tree/item-actions.d.ts +2 -2
  201. package/dist/components/tree/item-content.d.ts +2 -2
  202. package/dist/components/tree/item-description.d.ts +2 -2
  203. package/dist/components/tree/item-label.d.ts +2 -2
  204. package/dist/components/tree/item-prefix-icon.d.ts +2 -2
  205. package/dist/components/tree/item.d.ts +2 -2
  206. package/dist/components/tree/lines.d.ts +2 -2
  207. package/dist/components/view-stack/context.d.ts +2 -2
  208. package/dist/components/view-stack/index.d.ts +2 -2
  209. package/dist/components/view-stack/trigger.d.ts +2 -2
  210. package/dist/components/view-stack/view.d.ts +2 -2
  211. package/dist/index.d.ts +8 -1
  212. package/dist/index.js +7 -1
  213. package/dist/providers/theme-provider.d.ts +2 -2
  214. package/package.json +15 -8
@@ -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_runtime115 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_runtime115.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_runtime120 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_runtime120.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_runtime121 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_runtime121.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_runtime122 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_runtime122.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_runtime125 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_runtime125.JSX.Element;
42
+ //#endregion
43
+ export { ListItem };
44
+ //# sourceMappingURL=item.d.ts.map
@@ -0,0 +1,52 @@
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 { ListItemTitle } from "./item-title.js";
17
+ import "client-only";
18
+ import { clsx } from "@accelint/design-foundation/lib/utils";
19
+ import { GridListItem, composeRenderProps } from "react-aria-components";
20
+ import { jsx } from "react/jsx-runtime";
21
+ import styles from "./styles.module.css";
22
+
23
+ //#region src/components/list/item.tsx
24
+ /**
25
+ * ListItem - Individual selectable item within a List
26
+ *
27
+ * Represents a single row in the grid list with full interaction support including
28
+ * selection, hover states, and keyboard navigation. Can contain icons, content,
29
+ * indicators, and action elements. If children is a string, it will be automatically
30
+ * wrapped in a ListItemTitle.
31
+ *
32
+ * @example
33
+ * <ListItem textValue="User item">
34
+ * <Icon><Avatar /></Icon>
35
+ * <ListItemContent>
36
+ * <ListItemTitle>John Doe</ListItemTitle>
37
+ * <ListItemDescription>Software Engineer</ListItemDescription>
38
+ * </ListItemContent>
39
+ * </ListItem>
40
+ */
41
+ function ListItem({ children, classNames, textValue = typeof children === "string" ? children : "", ...rest }) {
42
+ return /* @__PURE__ */ jsx(GridListItem, {
43
+ className: composeRenderProps(classNames?.item, (className) => clsx("group/list-item", styles.item, className)),
44
+ textValue,
45
+ ...rest,
46
+ children: composeRenderProps(children, (children$1) => typeof children$1 === "string" ? /* @__PURE__ */ jsx(ListItemTitle, { children: children$1 }) : children$1)
47
+ });
48
+ }
49
+
50
+ //#endregion
51
+ export { ListItem };
52
+ //# sourceMappingURL=item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.js","names":["children"],"sources":["../../../src/components/list/item.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 { composeRenderProps, GridListItem } from 'react-aria-components';\nimport { ListItemTitle } from './item-title';\nimport styles from './styles.module.css';\nimport type { ListItemProps } from './types';\n\n/**\n * ListItem - Individual selectable item within a List\n *\n * Represents a single row in the grid list with full interaction support including\n * selection, hover states, and keyboard navigation. Can contain icons, content,\n * indicators, and action elements. If children is a string, it will be automatically\n * wrapped in a ListItemTitle.\n *\n * @example\n * <ListItem textValue=\"User item\">\n * <Icon><Avatar /></Icon>\n * <ListItemContent>\n * <ListItemTitle>John Doe</ListItemTitle>\n * <ListItemDescription>Software Engineer</ListItemDescription>\n * </ListItemContent>\n * </ListItem>\n */\nexport function ListItem<T extends object>({\n children,\n classNames,\n textValue = typeof children === 'string' ? children : '',\n ...rest\n}: ListItemProps<T>) {\n return (\n <GridListItem\n className={composeRenderProps(classNames?.item, (className) =>\n clsx('group/list-item', styles.item, className),\n )}\n textValue={textValue}\n {...rest}\n >\n {composeRenderProps(children, (children) =>\n typeof children === 'string' ? (\n <ListItemTitle>{children}</ListItemTitle>\n ) : (\n children\n ),\n )}\n </GridListItem>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,SAAgB,SAA2B,EACzC,UACA,YACA,YAAY,OAAO,aAAa,WAAW,WAAW,IACtD,GAAG,QACgB;AACnB,QACE,oBAAC;EACC,WAAW,mBAAmB,YAAY,OAAO,cAC/C,KAAK,mBAAmB,OAAO,MAAM,UAAU,CAChD;EACU;EACX,GAAI;YAEH,mBAAmB,WAAW,eAC7B,OAAOA,eAAa,WAClB,oBAAC,2BAAeA,aAAyB,GAEzCA,WAEH;GACY"}
@@ -0,0 +1,95 @@
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
+ @reference '@accelint/design-foundation/styles';
14
+
15
+ @layer components.l1 {
16
+ .list {
17
+ @apply gap-xxs flex h-full w-full flex-col overflow-y-auto;
18
+ }
19
+
20
+ .item {
21
+ @apply fg-primary-bold pt-xs pb-xs pr-s pl-s text-body-s bg-surface-default rounded-medium gap-s relative flex cursor-pointer items-center outline outline-transparent;
22
+
23
+ @variant hover {
24
+ @apply fg-a11y-on-accent bg-interactive-muted-hover;
25
+ }
26
+
27
+ @variant focus-visible {
28
+ @apply fg-a11y-on-accent bg-interactive-muted-hover;
29
+ }
30
+
31
+ @variant pressed {
32
+ @apply bg-interactive-muted-pressed;
33
+ }
34
+
35
+ @variant selected {
36
+ @apply bg-accent-primary-muted outline-accent-primary-bold;
37
+
38
+ @variant hover {
39
+ @apply outline-2 -outline-offset-2;
40
+ }
41
+
42
+ @variant focus-visible {
43
+ @apply outline-2 -outline-offset-2;
44
+ }
45
+
46
+ @variant pressed {
47
+ @apply outline-accent-primary-pressed;
48
+ }
49
+ }
50
+
51
+ @variant disabled {
52
+ @apply cursor-not-allowed bg-transparent;
53
+
54
+ @variant selected {
55
+ @apply bg-interactive-disabled outline-none;
56
+ }
57
+ }
58
+ }
59
+
60
+ .content {
61
+ @apply gap-xxs flex min-w-0 flex-auto flex-col;
62
+ }
63
+
64
+ .title {
65
+ @apply fg-primary-bold truncate;
66
+
67
+ &.compact {
68
+ @apply text-header-s;
69
+ }
70
+
71
+ &.cozy {
72
+ @apply text-header-m;
73
+ }
74
+
75
+ @variant group-disabled/list-item {
76
+ @apply fg-disabled;
77
+ }
78
+ }
79
+
80
+ .description {
81
+ @apply fg-primary-muted truncate;
82
+
83
+ &.compact {
84
+ @apply text-body-xs;
85
+ }
86
+
87
+ &.cozy {
88
+ @apply text-body-s;
89
+ }
90
+
91
+ @variant group-disabled/list-item {
92
+ @apply fg-disabled;
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,33 @@
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 { IconProps } from "../icon/types.js";
14
+ import { ComponentPropsWithRef, RefAttributes } from "react";
15
+ import { GridListItemProps, GridListProps } from "react-aria-components";
16
+
17
+ //#region src/components/list/types.d.ts
18
+ type ListItemVariant = 'cozy' | 'compact';
19
+ type ListItemProps<T extends object> = Omit<GridListItemProps<T>, 'className'> & {
20
+ classNames?: {
21
+ item?: GridListItemProps['className'];
22
+ icon?: IconProps['className'];
23
+ };
24
+ };
25
+ type ListItemTitleProps = ComponentPropsWithRef<'div'>;
26
+ type ListItemDescriptionProps = ComponentPropsWithRef<'div'>;
27
+ type ListItemContentProps = ComponentPropsWithRef<'div'>;
28
+ type ListProps<T> = Omit<GridListProps<T>, 'orientation' | 'layout' | 'dragAndDropHooks'> & RefAttributes<HTMLDivElement> & {
29
+ variant?: ListItemVariant;
30
+ };
31
+ //#endregion
32
+ export { ListItemContentProps, ListItemDescriptionProps, ListItemProps, ListItemTitleProps, ListItemVariant, ListProps };
33
+ //# sourceMappingURL=types.d.ts.map