@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.
Files changed (249) hide show
  1. package/README.md +15 -22
  2. package/catalog-info.yaml +4 -4
  3. package/dist/components/accordion/group.d.ts +2 -2
  4. package/dist/components/accordion/header.d.ts +2 -2
  5. package/dist/components/accordion/index.d.ts +2 -2
  6. package/dist/components/accordion/panel.d.ts +2 -2
  7. package/dist/components/action-bar/index.d.ts +8 -0
  8. package/dist/components/action-bar/index.js +8 -1
  9. package/dist/components/action-bar/index.js.map +1 -1
  10. package/dist/components/action-bar/styles.module.css +9 -1
  11. package/dist/components/action-bar/types.d.ts +1 -0
  12. package/dist/components/avatar/context.d.ts +4 -4
  13. package/dist/components/avatar/index.d.ts +2 -2
  14. package/dist/components/badge/context.d.ts +4 -4
  15. package/dist/components/badge/index.d.ts +2 -2
  16. package/dist/components/breadcrumbs/index.d.ts +2 -2
  17. package/dist/components/breadcrumbs/item.d.ts +2 -2
  18. package/dist/components/button/context.d.ts +8 -8
  19. package/dist/components/button/index.d.ts +2 -2
  20. package/dist/components/button/link.d.ts +2 -2
  21. package/dist/components/button/toggle.d.ts +2 -2
  22. package/dist/components/checkbox/context.d.ts +3 -3
  23. package/dist/components/checkbox/group.d.ts +2 -2
  24. package/dist/components/checkbox/index.d.ts +2 -2
  25. package/dist/components/chip/context.d.ts +4 -4
  26. package/dist/components/chip/deletable.d.ts +2 -2
  27. package/dist/components/chip/index.d.ts +2 -2
  28. package/dist/components/classification-badge/context.d.ts +4 -4
  29. package/dist/components/classification-badge/index.d.ts +2 -2
  30. package/dist/components/classification-banner/context.d.ts +4 -4
  31. package/dist/components/classification-banner/index.d.ts +2 -2
  32. package/dist/components/clock/index.d.ts +2 -2
  33. package/dist/components/color-picker/index.d.ts +2 -2
  34. package/dist/components/combobox-field/context.d.ts +4 -4
  35. package/dist/components/combobox-field/index.js +44 -37
  36. package/dist/components/combobox-field/index.js.map +1 -1
  37. package/dist/components/combobox-field/styles.module.css +5 -1
  38. package/dist/components/coordinate-field/context.d.ts +6 -6
  39. package/dist/components/coordinate-field/index.d.ts +2 -2
  40. package/dist/components/coordinate-field/index.js +3 -1
  41. package/dist/components/coordinate-field/index.js.map +1 -1
  42. package/dist/components/coordinate-field/segment.d.ts +3 -2
  43. package/dist/components/coordinate-field/segment.js +3 -1
  44. package/dist/components/coordinate-field/segment.js.map +1 -1
  45. package/dist/components/coordinate-field/styles.module.css +14 -0
  46. package/dist/components/coordinate-field/types.d.ts +2 -0
  47. package/dist/components/coordinate-field/types.js.map +1 -1
  48. package/dist/components/date-field/index.d.ts +3 -2
  49. package/dist/components/date-field/index.js +4 -2
  50. package/dist/components/date-field/index.js.map +1 -1
  51. package/dist/components/date-field/styles.module.css +4 -0
  52. package/dist/components/deferred-collection/index.d.ts +43 -0
  53. package/dist/components/deferred-collection/index.js +44 -0
  54. package/dist/components/deferred-collection/index.js.map +1 -0
  55. package/dist/components/deferred-collection/types.d.ts +26 -0
  56. package/dist/components/deferred-collection/types.js +12 -0
  57. package/dist/components/details-list/context.d.ts +4 -4
  58. package/dist/components/details-list/index.d.ts +2 -2
  59. package/dist/components/details-list/label.d.ts +2 -2
  60. package/dist/components/details-list/value.d.ts +2 -2
  61. package/dist/components/dialog/content.d.ts +2 -2
  62. package/dist/components/dialog/context.d.ts +2 -2
  63. package/dist/components/dialog/footer.d.ts +2 -2
  64. package/dist/components/dialog/index.d.ts +2 -2
  65. package/dist/components/dialog/title.d.ts +2 -2
  66. package/dist/components/divider/context.d.ts +4 -4
  67. package/dist/components/drawer/back.d.ts +2 -2
  68. package/dist/components/drawer/close.d.ts +2 -2
  69. package/dist/components/drawer/content.d.ts +2 -2
  70. package/dist/components/drawer/context.d.ts +2 -2
  71. package/dist/components/drawer/footer.d.ts +2 -2
  72. package/dist/components/drawer/header-title.d.ts +2 -2
  73. package/dist/components/drawer/header.d.ts +2 -2
  74. package/dist/components/drawer/index.d.ts +2 -2
  75. package/dist/components/drawer/layout-main.d.ts +2 -2
  76. package/dist/components/drawer/layout.d.ts +2 -2
  77. package/dist/components/drawer/menu-item.d.ts +2 -2
  78. package/dist/components/drawer/menu.d.ts +2 -2
  79. package/dist/components/drawer/panel.d.ts +2 -2
  80. package/dist/components/drawer/styles.module.css +2 -2
  81. package/dist/components/drawer/trigger.d.ts +2 -2
  82. package/dist/components/drawer/view.d.ts +2 -2
  83. package/dist/components/flashcard/index.d.ts +9 -9
  84. package/dist/components/hero/context.d.ts +2 -2
  85. package/dist/components/hero/index.d.ts +2 -2
  86. package/dist/components/hero/subtitle.d.ts +2 -2
  87. package/dist/components/hero/title.d.ts +2 -2
  88. package/dist/components/hotkey/context.d.ts +4 -4
  89. package/dist/components/hotkey/index.d.ts +2 -2
  90. package/dist/components/hotkey/set.d.ts +2 -2
  91. package/dist/components/icon/context.d.ts +4 -4
  92. package/dist/components/icon/index.d.ts +2 -2
  93. package/dist/components/input/context.d.ts +2 -2
  94. package/dist/components/input/index.d.ts +2 -2
  95. package/dist/components/input/index.js +3 -2
  96. package/dist/components/input/index.js.map +1 -1
  97. package/dist/components/input/styles.module.css +5 -1
  98. package/dist/components/kanban/card-body.d.ts +2 -2
  99. package/dist/components/kanban/card-header-actions.d.ts +2 -2
  100. package/dist/components/kanban/card-header-title.d.ts +2 -2
  101. package/dist/components/kanban/card-header.d.ts +2 -2
  102. package/dist/components/kanban/card.d.ts +2 -2
  103. package/dist/components/kanban/column-actions.d.ts +2 -2
  104. package/dist/components/kanban/column-container.d.ts +2 -2
  105. package/dist/components/kanban/column-content.d.ts +2 -2
  106. package/dist/components/kanban/column-header-actions.d.ts +2 -2
  107. package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
  108. package/dist/components/kanban/column-header-title.d.ts +2 -2
  109. package/dist/components/kanban/column-header.d.ts +2 -2
  110. package/dist/components/kanban/column.d.ts +2 -2
  111. package/dist/components/kanban/context.d.ts +2 -2
  112. package/dist/components/kanban/header-actions.d.ts +2 -2
  113. package/dist/components/kanban/header-search.d.ts +2 -2
  114. package/dist/components/kanban/header-title.d.ts +2 -2
  115. package/dist/components/kanban/header.d.ts +2 -2
  116. package/dist/components/kanban/kanban.d.ts +4 -4
  117. package/dist/components/label/context.d.ts +2 -2
  118. package/dist/components/label/index.d.ts +2 -2
  119. package/dist/components/lines/index.d.ts +2 -2
  120. package/dist/components/link/context.d.ts +2 -2
  121. package/dist/components/link/index.d.ts +2 -2
  122. package/dist/components/list/context.d.ts +23 -0
  123. package/dist/components/list/context.js +32 -0
  124. package/dist/components/list/context.js.map +1 -0
  125. package/dist/components/list/index.d.ts +44 -0
  126. package/dist/components/list/index.js +63 -0
  127. package/dist/components/list/index.js.map +1 -0
  128. package/dist/components/list/item-content.d.ts +36 -0
  129. package/dist/components/list/item-content.js +43 -0
  130. package/dist/components/list/item-content.js.map +1 -0
  131. package/dist/components/list/item-description.d.ts +34 -0
  132. package/dist/components/list/item-description.js +43 -0
  133. package/dist/components/list/item-description.js.map +1 -0
  134. package/dist/components/list/item-title.d.ts +34 -0
  135. package/dist/components/list/item-title.js +43 -0
  136. package/dist/components/list/item-title.js.map +1 -0
  137. package/dist/components/list/item.d.ts +44 -0
  138. package/dist/components/list/item.js +52 -0
  139. package/dist/components/list/item.js.map +1 -0
  140. package/dist/components/list/styles.module.css +95 -0
  141. package/dist/components/list/types.d.ts +33 -0
  142. package/dist/components/list/types.js +12 -0
  143. package/dist/components/menu/context.d.ts +2 -2
  144. package/dist/components/menu/index.d.ts +2 -2
  145. package/dist/components/menu/item-description.d.ts +2 -2
  146. package/dist/components/menu/item-label.d.ts +2 -2
  147. package/dist/components/menu/item.d.ts +2 -2
  148. package/dist/components/menu/section.d.ts +2 -2
  149. package/dist/components/menu/separator.d.ts +2 -2
  150. package/dist/components/menu/styles.module.css +62 -46
  151. package/dist/components/menu/submenu.d.ts +2 -2
  152. package/dist/components/notice/index.d.ts +2 -2
  153. package/dist/components/notice/list.d.ts +2 -2
  154. package/dist/components/notice/notice-icon.d.ts +2 -2
  155. package/dist/components/options/context.d.ts +2 -2
  156. package/dist/components/options/index.d.ts +2 -2
  157. package/dist/components/options/item-content.d.ts +2 -2
  158. package/dist/components/options/item-description.d.ts +2 -2
  159. package/dist/components/options/item-label.d.ts +2 -2
  160. package/dist/components/options/item.d.ts +2 -2
  161. package/dist/components/options/section.d.ts +2 -2
  162. package/dist/components/pagination/context.d.ts +2 -2
  163. package/dist/components/pagination/index.d.ts +2 -2
  164. package/dist/components/pagination/next.d.ts +2 -2
  165. package/dist/components/pagination/pages.d.ts +2 -2
  166. package/dist/components/pagination/prev.d.ts +2 -2
  167. package/dist/components/popover/content.d.ts +2 -2
  168. package/dist/components/popover/footer.d.ts +2 -2
  169. package/dist/components/popover/index.d.ts +2 -2
  170. package/dist/components/popover/title.d.ts +2 -2
  171. package/dist/components/popover/trigger.d.ts +2 -2
  172. package/dist/components/query-builder/action-element.d.ts +2 -2
  173. package/dist/components/query-builder/actions.d.ts +4 -4
  174. package/dist/components/query-builder/combinator-selector.d.ts +2 -2
  175. package/dist/components/query-builder/index.d.ts +2 -2
  176. package/dist/components/query-builder/rule-group.d.ts +4 -4
  177. package/dist/components/query-builder/rule.d.ts +2 -2
  178. package/dist/components/query-builder/value-editor.d.ts +2 -2
  179. package/dist/components/query-builder/value-selector.d.ts +2 -2
  180. package/dist/components/radio/context.d.ts +2 -2
  181. package/dist/components/radio/group.d.ts +2 -2
  182. package/dist/components/radio/index.d.ts +2 -2
  183. package/dist/components/search-field/context.d.ts +4 -4
  184. package/dist/components/search-field/index.d.ts +2 -2
  185. package/dist/components/select-field/context.d.ts +4 -4
  186. package/dist/components/select-field/index.d.ts +2 -2
  187. package/dist/components/select-field/index.js +10 -4
  188. package/dist/components/select-field/index.js.map +1 -1
  189. package/dist/components/select-field/styles.module.css +4 -0
  190. package/dist/components/select-field/types.d.ts +1 -0
  191. package/dist/components/sidenav/avatar.d.ts +2 -2
  192. package/dist/components/sidenav/content.d.ts +2 -2
  193. package/dist/components/sidenav/context.d.ts +2 -2
  194. package/dist/components/sidenav/footer.d.ts +2 -2
  195. package/dist/components/sidenav/header.d.ts +2 -2
  196. package/dist/components/sidenav/index.d.ts +2 -2
  197. package/dist/components/sidenav/item.d.ts +2 -2
  198. package/dist/components/sidenav/link.d.ts +2 -2
  199. package/dist/components/sidenav/menu-item.d.ts +2 -2
  200. package/dist/components/sidenav/menu.d.ts +2 -2
  201. package/dist/components/sidenav/trigger.d.ts +2 -2
  202. package/dist/components/skeleton/index.d.ts +2 -2
  203. package/dist/components/slider/index.d.ts +2 -2
  204. package/dist/components/switch/context.d.ts +4 -4
  205. package/dist/components/switch/index.d.ts +2 -2
  206. package/dist/components/table/body.d.ts +2 -2
  207. package/dist/components/table/cell.d.ts +2 -2
  208. package/dist/components/table/context.d.ts +2 -2
  209. package/dist/components/table/header-cell.d.ts +2 -2
  210. package/dist/components/table/header.d.ts +2 -2
  211. package/dist/components/table/index.d.ts +2 -2
  212. package/dist/components/table/row.d.ts +2 -2
  213. package/dist/components/tabs/context.d.ts +4 -4
  214. package/dist/components/tabs/index.d.ts +2 -2
  215. package/dist/components/tabs/list.d.ts +2 -2
  216. package/dist/components/tabs/panel.d.ts +2 -2
  217. package/dist/components/tabs/tab.d.ts +2 -2
  218. package/dist/components/text-area-field/context.d.ts +4 -4
  219. package/dist/components/text-area-field/index.d.ts +2 -2
  220. package/dist/components/text-area-field/styles.module.css +4 -0
  221. package/dist/components/text-field/context.d.ts +4 -4
  222. package/dist/components/text-field/index.d.ts +2 -2
  223. package/dist/components/time-field/index.d.ts +3 -2
  224. package/dist/components/time-field/index.js +4 -2
  225. package/dist/components/time-field/index.js.map +1 -1
  226. package/dist/components/time-field/styles.module.css +5 -2
  227. package/dist/components/tooltip/context.d.ts +2 -2
  228. package/dist/components/tooltip/index.d.ts +2 -2
  229. package/dist/components/tooltip/trigger.d.ts +2 -2
  230. package/dist/components/tree/context.d.ts +3 -3
  231. package/dist/components/tree/index.d.ts +2 -2
  232. package/dist/components/tree/item-actions.d.ts +2 -2
  233. package/dist/components/tree/item-content.d.ts +2 -2
  234. package/dist/components/tree/item-description.d.ts +2 -2
  235. package/dist/components/tree/item-label.d.ts +2 -2
  236. package/dist/components/tree/item-prefix-icon.d.ts +2 -2
  237. package/dist/components/tree/item.d.ts +2 -2
  238. package/dist/components/view-stack/context.d.ts +2 -2
  239. package/dist/components/view-stack/index.d.ts +2 -2
  240. package/dist/components/view-stack/trigger.d.ts +2 -2
  241. package/dist/components/view-stack/view.d.ts +2 -2
  242. package/dist/hooks/use-frame-delay/index.d.ts +38 -0
  243. package/dist/hooks/use-frame-delay/index.js +61 -0
  244. package/dist/hooks/use-frame-delay/index.js.map +1 -0
  245. package/dist/index.d.ts +11 -1
  246. package/dist/index.js +9 -1
  247. package/dist/providers/portal.d.ts +2 -2
  248. package/dist/providers/theme-provider.d.ts +2 -2
  249. package/package.json +19 -9
@@ -12,13 +12,13 @@
12
12
 
13
13
  import { DrawerTriggerProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime49 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime34 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/drawer/trigger.d.ts
18
18
  declare function DrawerTrigger({
19
19
  for: events,
20
20
  ...rest
21
- }: DrawerTriggerProps): react_jsx_runtime49.JSX.Element;
21
+ }: DrawerTriggerProps): react_jsx_runtime34.JSX.Element;
22
22
  //#endregion
23
23
  export { DrawerTrigger };
24
24
  //# sourceMappingURL=trigger.d.ts.map
@@ -13,7 +13,7 @@
13
13
  import { ViewStackViewProps } from "../view-stack/types.js";
14
14
  import "client-only";
15
15
  import { ComponentPropsWithRef } from "react";
16
- import * as react_jsx_runtime167 from "react/jsx-runtime";
16
+ import * as react_jsx_runtime36 from "react/jsx-runtime";
17
17
 
18
18
  //#region src/components/drawer/view.d.ts
19
19
  declare function DrawerView({
@@ -21,7 +21,7 @@ declare function DrawerView({
21
21
  children,
22
22
  className,
23
23
  ...rest
24
- }: ViewStackViewProps & ComponentPropsWithRef<'div'>): react_jsx_runtime167.JSX.Element;
24
+ }: ViewStackViewProps & ComponentPropsWithRef<'div'>): react_jsx_runtime36.JSX.Element;
25
25
  //#endregion
26
26
  export { DrawerView };
27
27
  //# sourceMappingURL=view.d.ts.map
@@ -12,11 +12,11 @@
12
12
 
13
13
  import { FlashcardComponentProps, FlashcardDetailsListProps, FlashcardProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react17 from "react";
16
- import * as react_jsx_runtime53 from "react/jsx-runtime";
15
+ import * as react14 from "react";
16
+ import * as react_jsx_runtime38 from "react/jsx-runtime";
17
17
 
18
18
  //#region src/components/flashcard/index.d.ts
19
- declare const FlashcardContext: react17.Context<FlashcardProps>;
19
+ declare const FlashcardContext: react14.Context<FlashcardProps>;
20
20
  /**
21
21
  * Example usage.
22
22
  *
@@ -41,27 +41,27 @@ declare const FlashcardContext: react17.Context<FlashcardProps>;
41
41
  * </Flashcard>
42
42
  * ```
43
43
  */
44
- declare function Flashcard(props: FlashcardProps): react_jsx_runtime53.JSX.Element;
44
+ declare function Flashcard(props: FlashcardProps): react_jsx_runtime38.JSX.Element;
45
45
  declare namespace Flashcard {
46
46
  var displayName: string;
47
47
  }
48
- declare function FlashcardHero(props: FlashcardComponentProps): react_jsx_runtime53.JSX.Element;
48
+ declare function FlashcardHero(props: FlashcardComponentProps): react_jsx_runtime38.JSX.Element;
49
49
  declare namespace FlashcardHero {
50
50
  var displayName: string;
51
51
  }
52
- declare function FlashcardAdditionalData(props: FlashcardComponentProps): react_jsx_runtime53.JSX.Element | null;
52
+ declare function FlashcardAdditionalData(props: FlashcardComponentProps): react_jsx_runtime38.JSX.Element | null;
53
53
  declare namespace FlashcardAdditionalData {
54
54
  var displayName: string;
55
55
  }
56
- declare function FlashcardDetailsList(props: FlashcardDetailsListProps): react_jsx_runtime53.JSX.Element;
56
+ declare function FlashcardDetailsList(props: FlashcardDetailsListProps): react_jsx_runtime38.JSX.Element;
57
57
  declare namespace FlashcardDetailsList {
58
58
  var displayName: string;
59
59
  }
60
- declare function FlashcardDetailsLabel(props: FlashcardComponentProps): react_jsx_runtime53.JSX.Element;
60
+ declare function FlashcardDetailsLabel(props: FlashcardComponentProps): react_jsx_runtime38.JSX.Element;
61
61
  declare namespace FlashcardDetailsLabel {
62
62
  var displayName: string;
63
63
  }
64
- declare function FlashcardDetailsValue(props: FlashcardComponentProps): react_jsx_runtime53.JSX.Element;
64
+ declare function FlashcardDetailsValue(props: FlashcardComponentProps): react_jsx_runtime38.JSX.Element;
65
65
  declare namespace FlashcardDetailsValue {
66
66
  var displayName: string;
67
67
  }
@@ -12,11 +12,11 @@
12
12
 
13
13
  import { HeroProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react18 from "react";
15
+ import * as react19 from "react";
16
16
  import { ContextValue } from "react-aria-components";
17
17
 
18
18
  //#region src/components/hero/context.d.ts
19
- declare const HeroContext: react18.Context<ContextValue<HeroProps, HTMLElement>>;
19
+ declare const HeroContext: react19.Context<ContextValue<HeroProps, HTMLElement>>;
20
20
  //#endregion
21
21
  export { HeroContext };
22
22
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { HeroProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime63 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime56 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/hero/index.d.ts
18
18
 
@@ -49,7 +49,7 @@ import * as react_jsx_runtime63 from "react/jsx-runtime";
49
49
  declare function Hero({
50
50
  ref,
51
51
  ...props
52
- }: HeroProps): react_jsx_runtime63.JSX.Element;
52
+ }: HeroProps): react_jsx_runtime56.JSX.Element;
53
53
  //#endregion
54
54
  export { Hero };
55
55
  //# sourceMappingURL=index.d.ts.map
@@ -11,11 +11,11 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react19 from "react";
14
+ import * as react20 from "react";
15
15
  import * as react_aria_components0 from "react-aria-components";
16
16
 
17
17
  //#region src/components/hero/subtitle.d.ts
18
- declare const HeroSubtitle: react19.ForwardRefExoticComponent<react_aria_components0.TextProps & react19.RefAttributes<HTMLElement>>;
18
+ declare const HeroSubtitle: react20.ForwardRefExoticComponent<react_aria_components0.TextProps & react20.RefAttributes<HTMLElement>>;
19
19
  //#endregion
20
20
  export { HeroSubtitle };
21
21
  //# sourceMappingURL=subtitle.d.ts.map
@@ -11,11 +11,11 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react21 from "react";
14
+ import * as react16 from "react";
15
15
  import * as react_aria_components0 from "react-aria-components";
16
16
 
17
17
  //#region src/components/hero/title.d.ts
18
- declare const HeroTitle: react21.ForwardRefExoticComponent<react_aria_components0.HeadingProps & react21.RefAttributes<HTMLHeadingElement>>;
18
+ declare const HeroTitle: react16.ForwardRefExoticComponent<react_aria_components0.HeadingProps & react16.RefAttributes<HTMLHeadingElement>>;
19
19
  //#endregion
20
20
  export { HeroTitle };
21
21
  //# sourceMappingURL=title.d.ts.map
@@ -13,16 +13,16 @@
13
13
  import { ProviderProps } from "../../lib/types.js";
14
14
  import { HotkeyProps } from "./types.js";
15
15
  import "client-only";
16
- import * as react23 from "react";
16
+ import * as react18 from "react";
17
17
  import { ContextValue } from "react-aria-components";
18
- import * as react_jsx_runtime66 from "react/jsx-runtime";
18
+ import * as react_jsx_runtime48 from "react/jsx-runtime";
19
19
 
20
20
  //#region src/components/hotkey/context.d.ts
21
- declare const HotkeyContext: react23.Context<ContextValue<HotkeyProps, HTMLElement>>;
21
+ declare const HotkeyContext: react18.Context<ContextValue<HotkeyProps, HTMLElement>>;
22
22
  declare function HotkeyProvider({
23
23
  children,
24
24
  ...props
25
- }: ProviderProps<HotkeyProps>): react_jsx_runtime66.JSX.Element;
25
+ }: ProviderProps<HotkeyProps>): react_jsx_runtime48.JSX.Element;
26
26
  //#endregion
27
27
  export { HotkeyContext, HotkeyProvider };
28
28
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { HotkeyProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime69 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime50 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/hotkey/index.d.ts
18
18
 
@@ -51,7 +51,7 @@ declare function Hotkey({
51
51
  ref,
52
52
  children,
53
53
  ...props
54
- }: HotkeyProps): react_jsx_runtime69.JSX.Element;
54
+ }: HotkeyProps): react_jsx_runtime50.JSX.Element;
55
55
  //#endregion
56
56
  export { Hotkey };
57
57
  //# sourceMappingURL=index.d.ts.map
@@ -12,13 +12,13 @@
12
12
 
13
13
  import "client-only";
14
14
  import { ComponentPropsWithRef } from "react";
15
- import * as react_jsx_runtime71 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime51 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/hotkey/set.d.ts
18
18
  declare function HotkeySet({
19
19
  className,
20
20
  ...rest
21
- }: ComponentPropsWithRef<'div'>): react_jsx_runtime71.JSX.Element;
21
+ }: ComponentPropsWithRef<'div'>): react_jsx_runtime51.JSX.Element;
22
22
  //#endregion
23
23
  export { HotkeySet };
24
24
  //# sourceMappingURL=set.d.ts.map
@@ -13,16 +13,16 @@
13
13
  import { ProviderProps } from "../../lib/types.js";
14
14
  import { IconProps } from "./types.js";
15
15
  import "client-only";
16
- import * as react24 from "react";
16
+ import * as react22 from "react";
17
17
  import { ContextValue } from "react-aria-components";
18
- import * as react_jsx_runtime76 from "react/jsx-runtime";
18
+ import * as react_jsx_runtime53 from "react/jsx-runtime";
19
19
 
20
20
  //#region src/components/icon/context.d.ts
21
- declare const IconContext: react24.Context<ContextValue<IconProps, HTMLSpanElement>>;
21
+ declare const IconContext: react22.Context<ContextValue<IconProps, HTMLSpanElement>>;
22
22
  declare function IconProvider({
23
23
  children,
24
24
  ...props
25
- }: ProviderProps<IconProps>): react_jsx_runtime76.JSX.Element;
25
+ }: ProviderProps<IconProps>): react_jsx_runtime53.JSX.Element;
26
26
  //#endregion
27
27
  export { IconContext, IconProvider };
28
28
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { IconProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime79 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime59 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/icon/index.d.ts
18
18
 
@@ -48,7 +48,7 @@ import * as react_jsx_runtime79 from "react/jsx-runtime";
48
48
  declare function Icon({
49
49
  ref,
50
50
  ...props
51
- }: IconProps): react_jsx_runtime79.JSX.Element;
51
+ }: IconProps): react_jsx_runtime59.JSX.Element;
52
52
  //#endregion
53
53
  export { Icon };
54
54
  //# sourceMappingURL=index.d.ts.map
@@ -12,11 +12,11 @@
12
12
 
13
13
  import { InputProps as InputProps$1 } from "./types.js";
14
14
  import "client-only";
15
- import * as react26 from "react";
15
+ import * as react23 from "react";
16
16
  import { ContextValue } from "react-aria-components";
17
17
 
18
18
  //#region src/components/input/context.d.ts
19
- declare const InputContext: react26.Context<ContextValue<InputProps$1, HTMLInputElement>>;
19
+ declare const InputContext: react23.Context<ContextValue<InputProps$1, HTMLInputElement>>;
20
20
  //#endregion
21
21
  export { InputContext };
22
22
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { InputProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime64 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime95 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/input/index.d.ts
18
18
 
@@ -37,7 +37,7 @@ import * as react_jsx_runtime64 from "react/jsx-runtime";
37
37
  declare function Input({
38
38
  ref,
39
39
  ...props
40
- }: InputProps): react_jsx_runtime64.JSX.Element;
40
+ }: InputProps): react_jsx_runtime95.JSX.Element;
41
41
  //#endregion
42
42
  export { Input };
43
43
  //# sourceMappingURL=index.d.ts.map
@@ -85,11 +85,12 @@ function Input({ ref = null, ...props }) {
85
85
  children: prefixProp
86
86
  }),
87
87
  /* @__PURE__ */ jsx("div", {
88
- className: clsx(styles.sizer, classNames?.sizer),
88
+ className: clsx(styles.sizer, classNames?.sizer, autoSize && styles.autoSize),
89
89
  children: /* @__PURE__ */ jsx(Input$1, {
90
90
  ...rest,
91
91
  ref,
92
92
  className: composeRenderProps(classNames?.input, (className) => clsx(styles.input, className)),
93
+ title: value ? String(value) : "",
93
94
  disabled,
94
95
  placeholder,
95
96
  readOnly,
@@ -107,7 +108,7 @@ function Input({ ref = null, ...props }) {
107
108
  className: clsx(styles.suffix, prefix, suffix, clear, classNames?.suffix),
108
109
  children: suffixProp
109
110
  }),
110
- isClearable && /* @__PURE__ */ jsx(Button$1, {
111
+ !readOnly && isClearable && /* @__PURE__ */ jsx(Button$1, {
111
112
  className: composeRenderProps(classNames?.clear, (className) => clsx(styles.clear, prefix, suffix, clear, className)),
112
113
  excludeFromTabOrder: true,
113
114
  size: "small",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["AriaInputContext","InputContext","AriaInput","Button"],"sources":["../../../src/components/input/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { CancelFill } from '@accelint/icons';\nimport { useControlledState } from '@react-stately/utils';\nimport {\n Input as AriaInput,\n InputContext as AriaInputContext,\n composeRenderProps,\n useContextProps,\n} from 'react-aria-components';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { IconProvider } from '../icon/context';\nimport { InputContext } from './context';\nimport styles from './styles.module.css';\nimport type { ChangeEvent } from 'react';\nimport type { InputProps } from './types';\n\n// TODO: Improve this implementation so it is more of a realistic event\nconst clearInputEvent = {\n target: { value: '' },\n} as ChangeEvent<HTMLInputElement>;\n\n/**\n * Input - A flexible text input component with enhanced features\n *\n * Provides a customizable text input with automatic sizing, clear functionality,\n * and integrated validation states. Supports various styling options and integrates\n * seamlessly with form field components for comprehensive form experiences.\n *\n * @example\n * // Basic input\n * <Input placeholder=\"Enter text...\" />\n *\n * @example\n * // Input with clear button\n * <Input\n * defaultValue=\"Clearable text\"\n * classNames={{ clear: \"hover:bg-info-bold\" }}\n * />\n */\n\n// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: just a little bit over, not worth refactoring\nexport function Input({ ref = null, ...props }: InputProps) {\n /**\n * It is necessary to pull in the AriaInputContext to capture defaultValue,\n * value & onChange props that may be supplied by a Field component\n *\n * These are necessary due to the implementation of useControlledState for\n * the purposes of supporting the clear button and to capture the length\n * of the current value for the autoSize feature\n */\n [props, ref] = useContextProps(props, ref, AriaInputContext);\n [props, ref] = useContextProps({ ...props }, ref, InputContext);\n\n const {\n classNames,\n autoSize,\n defaultValue = '',\n disabled,\n placeholder,\n prefix: prefixProp,\n readOnly,\n required,\n size = 'medium',\n suffix: suffixProp,\n type = 'text',\n value: valueProp,\n isClearable = true,\n isInvalid,\n onChange,\n onKeyDown,\n ...rest\n } = props;\n\n const [value, setValue] = useControlledState(valueProp, defaultValue);\n const length = (`${value ?? ''}`.length || placeholder?.length) ?? 0;\n const prefix = !!prefixProp && styles.hasPrefix;\n const suffix = !!suffixProp && styles.hasSuffix;\n const clear = isClearable && styles.isClearable;\n const isEmpty = value == null || value === '';\n\n function handleChange(event: ChangeEvent<HTMLInputElement>) {\n onChange?.(event);\n\n if (!event.defaultPrevented) {\n setValue(event.target.value);\n }\n }\n\n return (\n <IconProvider size='small'>\n <div\n className={clsx(\n 'group/input',\n styles.container,\n prefix,\n suffix,\n clear,\n classNames?.container,\n )}\n data-disabled={disabled || null}\n data-empty={isEmpty || null}\n data-invalid={isInvalid || null}\n data-length={length}\n data-placeholder={(!!placeholder && isEmpty) || null}\n data-readonly={readOnly || null}\n data-required={required || null}\n data-size={size}\n >\n {prefix && (\n <span className={clsx(styles.prefix, classNames?.prefix)}>\n {prefixProp}\n </span>\n )}\n <div className={clsx(styles.sizer, classNames?.sizer)}>\n <AriaInput\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.input, (className) =>\n clsx(styles.input, className),\n )}\n disabled={disabled}\n placeholder={placeholder}\n readOnly={readOnly}\n required={required}\n type={type}\n value={value}\n onChange={handleChange}\n onKeyDown={(event) => {\n onKeyDown?.(event);\n\n if (\n isClearable &&\n !event.defaultPrevented &&\n event.key === 'Escape'\n ) {\n handleChange(clearInputEvent);\n }\n }}\n />\n </div>\n {suffix && (\n <span\n className={clsx(\n styles.suffix,\n prefix,\n suffix,\n clear,\n classNames?.suffix,\n )}\n >\n {suffixProp}\n </span>\n )}\n {isClearable && (\n <Button\n className={composeRenderProps(classNames?.clear, (className) =>\n clsx(styles.clear, prefix, suffix, clear, className),\n )}\n excludeFromTabOrder\n size='small'\n variant='icon'\n isDisabled={disabled}\n onPress={() => {\n handleChange(clearInputEvent);\n\n ref?.current?.focus();\n }}\n >\n <Icon>\n <CancelFill />\n </Icon>\n </Button>\n )}\n </div>\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,MAAM,kBAAkB,EACtB,QAAQ,EAAE,OAAO,IAAI,EACtB;;;;;;;;;;;;;;;;;;;AAsBD,SAAgB,MAAM,EAAE,MAAM,MAAM,GAAG,SAAqB;;;;;;;;;AAS1D,EAAC,OAAO,OAAO,gBAAgB,OAAO,KAAKA,aAAiB;AAC5D,EAAC,OAAO,OAAO,gBAAgB,EAAE,GAAG,OAAO,EAAE,KAAKC,eAAa;CAE/D,MAAM,EACJ,YACA,UACA,eAAe,IACf,UACA,aACA,QAAQ,YACR,UACA,UACA,OAAO,UACP,QAAQ,YACR,OAAO,QACP,OAAO,WACP,cAAc,MACd,WACA,UACA,WACA,GAAG,SACD;CAEJ,MAAM,CAAC,OAAO,YAAY,mBAAmB,WAAW,aAAa;CACrE,MAAM,UAAU,GAAG,SAAS,KAAK,UAAU,aAAa,WAAW;CACnE,MAAM,SAAS,CAAC,CAAC,cAAc,OAAO;CACtC,MAAM,SAAS,CAAC,CAAC,cAAc,OAAO;CACtC,MAAM,QAAQ,eAAe,OAAO;CACpC,MAAM,UAAU,SAAS,QAAQ,UAAU;CAE3C,SAAS,aAAa,OAAsC;AAC1D,aAAW,MAAM;AAEjB,MAAI,CAAC,MAAM,iBACT,UAAS,MAAM,OAAO,MAAM;;AAIhC,QACE,oBAAC;EAAa,MAAK;YACjB,qBAAC;GACC,WAAW,KACT,eACA,OAAO,WACP,QACA,QACA,OACA,YAAY,UACb;GACD,iBAAe,YAAY;GAC3B,cAAY,WAAW;GACvB,gBAAc,aAAa;GAC3B,eAAa;GACb,oBAAmB,CAAC,CAAC,eAAe,WAAY;GAChD,iBAAe,YAAY;GAC3B,iBAAe,YAAY;GAC3B,aAAW;;IAEV,UACC,oBAAC;KAAK,WAAW,KAAK,OAAO,QAAQ,YAAY,OAAO;eACrD;MACI;IAET,oBAAC;KAAI,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;eACnD,oBAACC;MACC,GAAI;MACC;MACL,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;MACS;MACG;MACH;MACA;MACJ;MACC;MACP,UAAU;MACV,YAAY,UAAU;AACpB,mBAAY,MAAM;AAElB,WACE,eACA,CAAC,MAAM,oBACP,MAAM,QAAQ,SAEd,cAAa,gBAAgB;;OAGjC;MACE;IACL,UACC,oBAAC;KACC,WAAW,KACT,OAAO,QACP,QACA,QACA,OACA,YAAY,OACb;eAEA;MACI;IAER,eACC,oBAACC;KACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,QAAQ,QAAQ,OAAO,UAAU,CACrD;KACD;KACA,MAAK;KACL,SAAQ;KACR,YAAY;KACZ,eAAe;AACb,mBAAa,gBAAgB;AAE7B,WAAK,SAAS,OAAO;;eAGvB,oBAAC,kBACC,oBAAC,eAAa,GACT;MACA;;IAEP;GACO"}
1
+ {"version":3,"file":"index.js","names":["AriaInputContext","InputContext","AriaInput","Button"],"sources":["../../../src/components/input/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { CancelFill } from '@accelint/icons';\nimport { useControlledState } from '@react-stately/utils';\nimport {\n Input as AriaInput,\n InputContext as AriaInputContext,\n composeRenderProps,\n useContextProps,\n} from 'react-aria-components';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { IconProvider } from '../icon/context';\nimport { InputContext } from './context';\nimport styles from './styles.module.css';\nimport type { ChangeEvent } from 'react';\nimport type { InputProps } from './types';\n\n// TODO: Improve this implementation so it is more of a realistic event\nconst clearInputEvent = {\n target: { value: '' },\n} as ChangeEvent<HTMLInputElement>;\n\n/**\n * Input - A flexible text input component with enhanced features\n *\n * Provides a customizable text input with automatic sizing, clear functionality,\n * and integrated validation states. Supports various styling options and integrates\n * seamlessly with form field components for comprehensive form experiences.\n *\n * @example\n * // Basic input\n * <Input placeholder=\"Enter text...\" />\n *\n * @example\n * // Input with clear button\n * <Input\n * defaultValue=\"Clearable text\"\n * classNames={{ clear: \"hover:bg-info-bold\" }}\n * />\n */\n\n// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: just a little bit over, not worth refactoring\nexport function Input({ ref = null, ...props }: InputProps) {\n /**\n * It is necessary to pull in the AriaInputContext to capture defaultValue,\n * value & onChange props that may be supplied by a Field component\n *\n * These are necessary due to the implementation of useControlledState for\n * the purposes of supporting the clear button and to capture the length\n * of the current value for the autoSize feature\n */\n [props, ref] = useContextProps(props, ref, AriaInputContext);\n [props, ref] = useContextProps({ ...props }, ref, InputContext);\n\n const {\n classNames,\n autoSize,\n defaultValue = '',\n disabled,\n placeholder,\n prefix: prefixProp,\n readOnly,\n required,\n size = 'medium',\n suffix: suffixProp,\n type = 'text',\n value: valueProp,\n isClearable = true,\n isInvalid,\n onChange,\n onKeyDown,\n ...rest\n } = props;\n\n const [value, setValue] = useControlledState(valueProp, defaultValue);\n const length = (`${value ?? ''}`.length || placeholder?.length) ?? 0;\n const prefix = !!prefixProp && styles.hasPrefix;\n const suffix = !!suffixProp && styles.hasSuffix;\n const clear = isClearable && styles.isClearable;\n const isEmpty = value == null || value === '';\n\n function handleChange(event: ChangeEvent<HTMLInputElement>) {\n onChange?.(event);\n\n if (!event.defaultPrevented) {\n setValue(event.target.value);\n }\n }\n\n return (\n <IconProvider size='small'>\n <div\n className={clsx(\n 'group/input',\n styles.container,\n prefix,\n suffix,\n clear,\n classNames?.container,\n )}\n data-disabled={disabled || null}\n data-empty={isEmpty || null}\n data-invalid={isInvalid || null}\n data-length={length}\n data-placeholder={(!!placeholder && isEmpty) || null}\n data-readonly={readOnly || null}\n data-required={required || null}\n data-size={size}\n >\n {prefix && (\n <span className={clsx(styles.prefix, classNames?.prefix)}>\n {prefixProp}\n </span>\n )}\n <div\n className={clsx(\n styles.sizer,\n classNames?.sizer,\n autoSize && styles.autoSize,\n )}\n >\n <AriaInput\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.input, (className) =>\n clsx(styles.input, className),\n )}\n title={value ? String(value) : ''}\n disabled={disabled}\n placeholder={placeholder}\n readOnly={readOnly}\n required={required}\n type={type}\n value={value}\n onChange={handleChange}\n onKeyDown={(event) => {\n onKeyDown?.(event);\n\n if (\n isClearable &&\n !event.defaultPrevented &&\n event.key === 'Escape'\n ) {\n handleChange(clearInputEvent);\n }\n }}\n />\n </div>\n {suffix && (\n <span\n className={clsx(\n styles.suffix,\n prefix,\n suffix,\n clear,\n classNames?.suffix,\n )}\n >\n {suffixProp}\n </span>\n )}\n {!readOnly && isClearable && (\n <Button\n className={composeRenderProps(classNames?.clear, (className) =>\n clsx(styles.clear, prefix, suffix, clear, className),\n )}\n excludeFromTabOrder\n size='small'\n variant='icon'\n isDisabled={disabled}\n onPress={() => {\n handleChange(clearInputEvent);\n\n ref?.current?.focus();\n }}\n >\n <Icon>\n <CancelFill />\n </Icon>\n </Button>\n )}\n </div>\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,MAAM,kBAAkB,EACtB,QAAQ,EAAE,OAAO,IAAI,EACtB;;;;;;;;;;;;;;;;;;;AAsBD,SAAgB,MAAM,EAAE,MAAM,MAAM,GAAG,SAAqB;;;;;;;;;AAS1D,EAAC,OAAO,OAAO,gBAAgB,OAAO,KAAKA,aAAiB;AAC5D,EAAC,OAAO,OAAO,gBAAgB,EAAE,GAAG,OAAO,EAAE,KAAKC,eAAa;CAE/D,MAAM,EACJ,YACA,UACA,eAAe,IACf,UACA,aACA,QAAQ,YACR,UACA,UACA,OAAO,UACP,QAAQ,YACR,OAAO,QACP,OAAO,WACP,cAAc,MACd,WACA,UACA,WACA,GAAG,SACD;CAEJ,MAAM,CAAC,OAAO,YAAY,mBAAmB,WAAW,aAAa;CACrE,MAAM,UAAU,GAAG,SAAS,KAAK,UAAU,aAAa,WAAW;CACnE,MAAM,SAAS,CAAC,CAAC,cAAc,OAAO;CACtC,MAAM,SAAS,CAAC,CAAC,cAAc,OAAO;CACtC,MAAM,QAAQ,eAAe,OAAO;CACpC,MAAM,UAAU,SAAS,QAAQ,UAAU;CAE3C,SAAS,aAAa,OAAsC;AAC1D,aAAW,MAAM;AAEjB,MAAI,CAAC,MAAM,iBACT,UAAS,MAAM,OAAO,MAAM;;AAIhC,QACE,oBAAC;EAAa,MAAK;YACjB,qBAAC;GACC,WAAW,KACT,eACA,OAAO,WACP,QACA,QACA,OACA,YAAY,UACb;GACD,iBAAe,YAAY;GAC3B,cAAY,WAAW;GACvB,gBAAc,aAAa;GAC3B,eAAa;GACb,oBAAmB,CAAC,CAAC,eAAe,WAAY;GAChD,iBAAe,YAAY;GAC3B,iBAAe,YAAY;GAC3B,aAAW;;IAEV,UACC,oBAAC;KAAK,WAAW,KAAK,OAAO,QAAQ,YAAY,OAAO;eACrD;MACI;IAET,oBAAC;KACC,WAAW,KACT,OAAO,OACP,YAAY,OACZ,YAAY,OAAO,SACpB;eAED,oBAACC;MACC,GAAI;MACC;MACL,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;MACD,OAAO,QAAQ,OAAO,MAAM,GAAG;MACrB;MACG;MACH;MACA;MACJ;MACC;MACP,UAAU;MACV,YAAY,UAAU;AACpB,mBAAY,MAAM;AAElB,WACE,eACA,CAAC,MAAM,oBACP,MAAM,QAAQ,SAEd,cAAa,gBAAgB;;OAGjC;MACE;IACL,UACC,oBAAC;KACC,WAAW,KACT,OAAO,QACP,QACA,QACA,OACA,YAAY,OACb;eAEA;MACI;IAER,CAAC,YAAY,eACZ,oBAACC;KACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,QAAQ,QAAQ,OAAO,UAAU,CACrD;KACD;KACA,MAAK;KACL,SAAQ;KACR,YAAY;KACZ,eAAe;AACb,mBAAa,gBAAgB;AAE7B,WAAK,SAAS,OAAO;;eAGvB,oBAAC,kBACC,oBAAC,eAAa,GACT;MACA;;IAEP;GACO"}
@@ -47,6 +47,10 @@
47
47
  @apply fg-disabled outline-interactive-disabled cursor-not-allowed;
48
48
  }
49
49
 
50
+ @variant read-only {
51
+ @apply px-0 outline-none;
52
+ }
53
+
50
54
  &.hasPrefix {
51
55
  grid-template-areas: 'prefix input';
52
56
  grid-template-columns: min-content 1fr;
@@ -133,7 +137,7 @@
133
137
  }
134
138
 
135
139
  .input {
136
- @apply w-full outline-none;
140
+ @apply w-full overflow-hidden text-ellipsis whitespace-nowrap outline-none;
137
141
 
138
142
  &[type='number'] {
139
143
  appearance: textfield;
@@ -12,14 +12,14 @@
12
12
 
13
13
  import { KanbanComponentProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime74 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime54 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/card-body.d.ts
18
18
  declare function KanbanCardBody({
19
19
  children,
20
20
  className,
21
21
  ...rest
22
- }: KanbanComponentProps): react_jsx_runtime74.JSX.Element;
22
+ }: KanbanComponentProps): react_jsx_runtime54.JSX.Element;
23
23
  //#endregion
24
24
  export { KanbanCardBody };
25
25
  //# sourceMappingURL=card-body.d.ts.map
@@ -12,14 +12,14 @@
12
12
 
13
13
  import { KanbanComponentProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime82 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime60 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/card-header-actions.d.ts
18
18
  declare function KanbanCardHeaderActions({
19
19
  children,
20
20
  className,
21
21
  ...rest
22
- }: KanbanComponentProps): react_jsx_runtime82.JSX.Element;
22
+ }: KanbanComponentProps): react_jsx_runtime60.JSX.Element;
23
23
  //#endregion
24
24
  export { KanbanCardHeaderActions };
25
25
  //# sourceMappingURL=card-header-actions.d.ts.map
@@ -12,14 +12,14 @@
12
12
 
13
13
  import { KanbanComponentProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime84 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime61 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/card-header-title.d.ts
18
18
  declare function KanbanCardHeaderTitle({
19
19
  className,
20
20
  children,
21
21
  ...rest
22
- }: KanbanComponentProps): react_jsx_runtime84.JSX.Element;
22
+ }: KanbanComponentProps): react_jsx_runtime61.JSX.Element;
23
23
  //#endregion
24
24
  export { KanbanCardHeaderTitle };
25
25
  //# sourceMappingURL=card-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 react_jsx_runtime86 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime65 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/card-header.d.ts
18
18
  declare function KanbanCardHeader({
19
19
  className,
20
20
  children,
21
21
  ...rest
22
- }: KanbanComponentProps): react_jsx_runtime86.JSX.Element;
22
+ }: KanbanComponentProps): react_jsx_runtime65.JSX.Element;
23
23
  //#endregion
24
24
  export { KanbanCardHeader };
25
25
  //# sourceMappingURL=card-header.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { KanbanCardProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime89 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime93 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/card.d.ts
18
18
  declare function KanbanCard({
@@ -21,7 +21,7 @@ declare function KanbanCard({
21
21
  card,
22
22
  isActive,
23
23
  ...rest
24
- }: KanbanCardProps): react_jsx_runtime89.JSX.Element;
24
+ }: KanbanCardProps): react_jsx_runtime93.JSX.Element;
25
25
  //#endregion
26
26
  export { KanbanCard };
27
27
  //# sourceMappingURL=card.d.ts.map
@@ -12,14 +12,14 @@
12
12
 
13
13
  import { KanbanColContentActionProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime90 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime84 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/column-actions.d.ts
18
18
  declare function KanbanColumnActions({
19
19
  className,
20
20
  onAddCard,
21
21
  ...rest
22
- }: KanbanColContentActionProps): react_jsx_runtime90.JSX.Element;
22
+ }: KanbanColContentActionProps): react_jsx_runtime84.JSX.Element;
23
23
  //#endregion
24
24
  export { KanbanColumnActions };
25
25
  //# sourceMappingURL=column-actions.d.ts.map
@@ -12,14 +12,14 @@
12
12
 
13
13
  import { KanbanComponentProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime51 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime86 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/column-container.d.ts
18
18
  declare function KanbanColumnContainer({
19
19
  children,
20
20
  className,
21
21
  ...rest
22
- }: KanbanComponentProps): react_jsx_runtime51.JSX.Element;
22
+ }: KanbanComponentProps): react_jsx_runtime86.JSX.Element;
23
23
  //#endregion
24
24
  export { KanbanColumnContainer };
25
25
  //# sourceMappingURL=column-container.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { KanbanColContentProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime65 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime89 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/column-content.d.ts
18
18
  declare function KanbanColumnContent({
@@ -20,7 +20,7 @@ declare function KanbanColumnContent({
20
20
  className,
21
21
  column,
22
22
  ...rest
23
- }: KanbanColContentProps): react_jsx_runtime65.JSX.Element;
23
+ }: KanbanColContentProps): react_jsx_runtime89.JSX.Element;
24
24
  //#endregion
25
25
  export { KanbanColumnContent };
26
26
  //# sourceMappingURL=column-content.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { KanbanMenuProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime68 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime90 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/column-header-actions.d.ts
18
18
  declare function KanbanColumnHeaderActions({
@@ -20,7 +20,7 @@ declare function KanbanColumnHeaderActions({
20
20
  cardCount,
21
21
  children,
22
22
  ...rest
23
- }: KanbanMenuProps): react_jsx_runtime68.JSX.Element;
23
+ }: KanbanMenuProps): react_jsx_runtime90.JSX.Element;
24
24
  //#endregion
25
25
  export { KanbanColumnHeaderActions };
26
26
  //# sourceMappingURL=column-header-actions.d.ts.map
@@ -11,10 +11,10 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime67 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime52 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/kanban/column-header-drag-handle.d.ts
17
- declare function KanbanColumnHeaderDragHandle(): react_jsx_runtime67.JSX.Element;
17
+ declare function KanbanColumnHeaderDragHandle(): react_jsx_runtime52.JSX.Element;
18
18
  //#endregion
19
19
  export { KanbanColumnHeaderDragHandle };
20
20
  //# sourceMappingURL=column-header-drag-handle.d.ts.map
@@ -12,14 +12,14 @@
12
12
 
13
13
  import { KanbanComponentProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime87 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime55 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/column-header-title.d.ts
18
18
  declare function KanbanColumnHeaderTitle({
19
19
  children,
20
20
  className,
21
21
  ...rest
22
- }: KanbanComponentProps): react_jsx_runtime87.JSX.Element;
22
+ }: KanbanComponentProps): react_jsx_runtime55.JSX.Element;
23
23
  //#endregion
24
24
  export { KanbanColumnHeaderTitle };
25
25
  //# sourceMappingURL=column-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 react_jsx_runtime62 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime57 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/column-header.d.ts
18
18
  declare function KanbanColumnHeader({
19
19
  children,
20
20
  className,
21
21
  ...rest
22
- }: KanbanComponentProps): react_jsx_runtime62.JSX.Element;
22
+ }: KanbanComponentProps): react_jsx_runtime57.JSX.Element;
23
23
  //#endregion
24
24
  export { KanbanColumnHeader };
25
25
  //# sourceMappingURL=column-header.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { KanbanColProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime70 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime62 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/column.d.ts
18
18
  declare function KanbanColumn({
@@ -20,7 +20,7 @@ declare function KanbanColumn({
20
20
  className,
21
21
  column,
22
22
  ...rest
23
- }: KanbanColProps): react_jsx_runtime70.JSX.Element;
23
+ }: KanbanColProps): react_jsx_runtime62.JSX.Element;
24
24
  //#endregion
25
25
  export { KanbanColumn };
26
26
  //# sourceMappingURL=column.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { KanbanCardData, KanbanColumnData } from "./types.js";
14
14
  import { ReactNode } from "react";
15
- import * as react_jsx_runtime72 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime64 from "react/jsx-runtime";
16
16
  import { DragEndEvent } from "@dnd-kit/core";
17
17
 
18
18
  //#region src/components/kanban/context.d.ts
@@ -113,7 +113,7 @@ declare const KanbanProvider: ({
113
113
  children,
114
114
  columns,
115
115
  updateColumnState
116
- }: KanbanProviderProps) => react_jsx_runtime72.JSX.Element;
116
+ }: KanbanProviderProps) => react_jsx_runtime64.JSX.Element;
117
117
  declare const useKanban: () => KanbanContextData;
118
118
  //#endregion
119
119
  export { DropTargetInfo, KanbanContextData, KanbanProvider, KanbanProviderProps, MoveCard, MoveCardValidationParams, MoveCardValidationResult, calculateClosestEdge, getInsertIndex, parseDropTarget, useKanban, validateMoveCard };
@@ -12,14 +12,14 @@
12
12
 
13
13
  import { KanbanComponentProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime75 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime66 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/kanban/header-actions.d.ts
18
18
  declare function KanbanHeaderActions({
19
19
  children,
20
20
  className,
21
21
  ...rest
22
- }: KanbanComponentProps): react_jsx_runtime75.JSX.Element;
22
+ }: KanbanComponentProps): react_jsx_runtime66.JSX.Element;
23
23
  //#endregion
24
24
  export { KanbanHeaderActions };
25
25
  //# sourceMappingURL=header-actions.d.ts.map