@divayth/brick-ui 0.3.0 → 0.4.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 (167) hide show
  1. package/README.md +2 -0
  2. package/dist/app/Provider.d.ts +15 -3
  3. package/dist/app/Provider.d.ts.map +1 -1
  4. package/dist/app/Provider.js +11 -11
  5. package/dist/app/index.d.ts +1 -1
  6. package/dist/app/index.d.ts.map +1 -1
  7. package/dist/index.d.ts +4 -4
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +89 -81
  10. package/dist/lib/dates.d.ts +3 -3
  11. package/dist/lib/dates.d.ts.map +1 -1
  12. package/dist/lib/index.d.ts +5 -5
  13. package/dist/lib/index.d.ts.map +1 -1
  14. package/dist/lib/locale.d.ts +13 -1
  15. package/dist/lib/locale.d.ts.map +1 -1
  16. package/dist/lib/locale.js +14 -2
  17. package/dist/lib/sizes.d.ts +1 -1
  18. package/dist/lib/themes.d.ts +31 -31
  19. package/dist/lib/themes.d.ts.map +1 -1
  20. package/dist/styles.css +1 -1
  21. package/dist/ui/Accordion/Accordion.d.ts +2 -2
  22. package/dist/ui/Accordion/Accordion.d.ts.map +1 -1
  23. package/dist/ui/Alert/Alert.d.ts +2 -2
  24. package/dist/ui/Alert/Alert.d.ts.map +1 -1
  25. package/dist/ui/Autocomplete/Autocomplete.d.ts +3 -3
  26. package/dist/ui/Autocomplete/Autocomplete.d.ts.map +1 -1
  27. package/dist/ui/Button/Button.d.ts +8 -8
  28. package/dist/ui/Button/Button.d.ts.map +1 -1
  29. package/dist/ui/Card/Card.d.ts.map +1 -1
  30. package/dist/ui/Checkbox/Checkbox.d.ts +2 -2
  31. package/dist/ui/Checkbox/Checkbox.d.ts.map +1 -1
  32. package/dist/ui/Chip/Chip.d.ts +5 -5
  33. package/dist/ui/Chip/Chip.d.ts.map +1 -1
  34. package/dist/ui/CircularLoading/CircularLoading.d.ts.map +1 -1
  35. package/dist/ui/Date/DateInput.d.ts +6 -6
  36. package/dist/ui/Date/DateInput.d.ts.map +1 -1
  37. package/dist/ui/Date/DateInput.js +15 -15
  38. package/dist/ui/DateText/DateText.d.ts +2 -2
  39. package/dist/ui/DateText/DateText.d.ts.map +1 -1
  40. package/dist/ui/DateText/DateText.js +3 -3
  41. package/dist/ui/Drawer/Drawer.d.ts +3 -3
  42. package/dist/ui/FeedList/FeedList.d.ts +3 -3
  43. package/dist/ui/FeedList/FeedList.d.ts.map +1 -1
  44. package/dist/ui/Field/Field.d.ts +10 -10
  45. package/dist/ui/Field/Field.d.ts.map +1 -1
  46. package/dist/ui/Flex/Flex.d.ts +3 -3
  47. package/dist/ui/Flex/Flex.d.ts.map +1 -1
  48. package/dist/ui/Flex/constants.d.ts +1 -1
  49. package/dist/ui/Flex/constants.d.ts.map +1 -1
  50. package/dist/ui/Grid/Grid.d.ts +1 -1
  51. package/dist/ui/Grid/Grid.types.d.ts +9 -9
  52. package/dist/ui/Grid/Grid.types.d.ts.map +1 -1
  53. package/dist/ui/Grid/GridItem.d.ts +1 -1
  54. package/dist/ui/Grid/GridItem.d.ts.map +1 -1
  55. package/dist/ui/Grid/GridRoot.d.ts +1 -1
  56. package/dist/ui/Grid/GridRoot.js +1 -1
  57. package/dist/ui/Grid/utils.d.ts +2 -2
  58. package/dist/ui/Grid/utils.d.ts.map +1 -1
  59. package/dist/ui/IconButton/IconButton.d.ts +8 -8
  60. package/dist/ui/IconButton/IconButton.d.ts.map +1 -1
  61. package/dist/ui/Input/Input.d.ts +4 -4
  62. package/dist/ui/Input/Input.d.ts.map +1 -1
  63. package/dist/ui/List/List.d.ts +7 -7
  64. package/dist/ui/List/List.d.ts.map +1 -1
  65. package/dist/ui/List/List.js +5 -5
  66. package/dist/ui/Modal/Modal.d.ts +4 -4
  67. package/dist/ui/Modal/Modal.d.ts.map +1 -1
  68. package/dist/ui/Modal/Modal.js +19 -19
  69. package/dist/ui/Modal/ModalContext.d.ts +1 -1
  70. package/dist/ui/Modal/ModalContext.js +2 -2
  71. package/dist/ui/Modal/ModalProvider.d.ts +1 -1
  72. package/dist/ui/MultipleChip/MultipleChip.d.ts +2 -2
  73. package/dist/ui/MultipleChip/MultipleChip.d.ts.map +1 -1
  74. package/dist/ui/MultipleChip/MultipleChip.js +8 -8
  75. package/dist/ui/NoData/NoData.d.ts +3 -3
  76. package/dist/ui/NoData/NoData.d.ts.map +1 -1
  77. package/dist/ui/NoData/NoData.js +4 -4
  78. package/dist/ui/NoData/NoDataIcon.d.ts +1 -1
  79. package/dist/ui/Popover/Popover.d.ts +4 -4
  80. package/dist/ui/Popover/Popover.d.ts.map +1 -1
  81. package/dist/ui/Portal/Portal.d.ts +1 -1
  82. package/dist/ui/Select/Select.d.ts +3 -3
  83. package/dist/ui/Select/Select.d.ts.map +1 -1
  84. package/dist/ui/Select/Select.types.d.ts +12 -10
  85. package/dist/ui/Select/Select.types.d.ts.map +1 -1
  86. package/dist/ui/Select/SelectControl.d.ts +1 -1
  87. package/dist/ui/Select/SelectControl.d.ts.map +1 -1
  88. package/dist/ui/Select/SelectControl.js +8 -8
  89. package/dist/ui/Select/SelectOption.d.ts +1 -1
  90. package/dist/ui/Select/SelectOption.d.ts.map +1 -1
  91. package/dist/ui/Select/SelectOption.js +6 -6
  92. package/dist/ui/Select/SelectOptions.d.ts +1 -1
  93. package/dist/ui/Select/SelectOptions.d.ts.map +1 -1
  94. package/dist/ui/Select/SelectSearch.d.ts +1 -1
  95. package/dist/ui/Select/SelectSearch.d.ts.map +1 -1
  96. package/dist/ui/Skeleton/Skeleton.d.ts.map +1 -1
  97. package/dist/ui/Sticky/Sticky.d.ts +1 -1
  98. package/dist/ui/Sticky/Sticky.d.ts.map +1 -1
  99. package/dist/ui/Tabs/Tab.d.ts +3 -3
  100. package/dist/ui/Tabs/Tab.d.ts.map +1 -1
  101. package/dist/ui/Tabs/Tabs.d.ts +4 -4
  102. package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
  103. package/dist/ui/Tabs/Tabs.js +3 -3
  104. package/dist/ui/Tabs/TabsList.d.ts +1 -1
  105. package/dist/ui/Tabs/TabsList.d.ts.map +1 -1
  106. package/dist/ui/Tabs/TabsPanel.d.ts +2 -2
  107. package/dist/ui/Tabs/TabsPanel.d.ts.map +1 -1
  108. package/dist/ui/Tabs/context.d.ts +1 -1
  109. package/dist/ui/Text/Text.d.ts +6 -6
  110. package/dist/ui/Text/Text.d.ts.map +1 -1
  111. package/dist/ui/Textarea/Textarea.d.ts +3 -3
  112. package/dist/ui/Textarea/Textarea.d.ts.map +1 -1
  113. package/dist/ui/Tooltip/Tooltip.d.ts +3 -3
  114. package/dist/ui/Tooltip/Tooltip.d.ts.map +1 -1
  115. package/dist/ui/Tooltip/Tooltip.js +4 -4
  116. package/dist/ui/index.d.ts +36 -34
  117. package/dist/ui/index.d.ts.map +1 -1
  118. package/dist/ui/table/Table.context.d.ts +10 -0
  119. package/dist/ui/table/Table.context.d.ts.map +1 -0
  120. package/dist/ui/table/Table.context.js +26 -0
  121. package/dist/ui/table/Table.d.ts +3 -0
  122. package/dist/ui/table/Table.d.ts.map +1 -0
  123. package/dist/ui/table/Table.js +17 -0
  124. package/dist/ui/table/Table.types.d.ts +76 -0
  125. package/dist/ui/table/Table.types.d.ts.map +1 -0
  126. package/dist/ui/table/Table.types.js +4 -0
  127. package/dist/ui/table/components/content/TableContent.d.ts +9 -0
  128. package/dist/ui/table/components/content/TableContent.d.ts.map +1 -0
  129. package/dist/ui/table/components/content/TableContent.js +67 -0
  130. package/dist/ui/table/components/content/TableContent.module.css.js +9 -0
  131. package/dist/ui/table/components/content/cell/Cell.d.ts +7 -0
  132. package/dist/ui/table/components/content/cell/Cell.d.ts.map +1 -0
  133. package/dist/ui/table/components/content/cell/Cell.js +29 -0
  134. package/dist/ui/table/components/content/cell/Cell.module.css.js +11 -0
  135. package/dist/ui/table/components/content/cellcheckbox/CellCheckbox.d.ts +8 -0
  136. package/dist/ui/table/components/content/cellcheckbox/CellCheckbox.d.ts.map +1 -0
  137. package/dist/ui/table/components/content/cellcheckbox/CellCheckbox.js +26 -0
  138. package/dist/ui/table/components/content/datarow/DataRow.d.ts +11 -0
  139. package/dist/ui/table/components/content/datarow/DataRow.d.ts.map +1 -0
  140. package/dist/ui/table/components/content/datarow/DataRow.js +23 -0
  141. package/dist/ui/table/components/content/head/TableHead.d.ts +6 -0
  142. package/dist/ui/table/components/content/head/TableHead.d.ts.map +1 -0
  143. package/dist/ui/table/components/content/head/TableHead.js +7 -0
  144. package/dist/ui/table/components/content/head/TableHead.module.css.js +9 -0
  145. package/dist/ui/table/components/content/headercell/HeaderCell.d.ts +8 -0
  146. package/dist/ui/table/components/content/headercell/HeaderCell.d.ts.map +1 -0
  147. package/dist/ui/table/components/content/headercell/HeaderCell.js +51 -0
  148. package/dist/ui/table/components/content/headercell/HeaderCell.module.css.js +15 -0
  149. package/dist/ui/table/components/content/headercellcheckbox/HeaderCellCheckbox.d.ts +8 -0
  150. package/dist/ui/table/components/content/headercellcheckbox/HeaderCellCheckbox.d.ts.map +1 -0
  151. package/dist/ui/table/components/content/headercellcheckbox/HeaderCellCheckbox.js +29 -0
  152. package/dist/ui/table/components/content/tablebody/TableBody.d.ts +7 -0
  153. package/dist/ui/table/components/content/tablebody/TableBody.d.ts.map +1 -0
  154. package/dist/ui/table/components/content/tablebody/TableBody.js +28 -0
  155. package/dist/ui/table/components/pagination/TablePagination.d.ts +6 -0
  156. package/dist/ui/table/components/pagination/TablePagination.d.ts.map +1 -0
  157. package/dist/ui/table/components/pagination/TablePagination.js +73 -0
  158. package/dist/ui/table/components/root/TableRoot.d.ts +7 -0
  159. package/dist/ui/table/components/root/TableRoot.d.ts.map +1 -0
  160. package/dist/ui/table/components/root/TableRoot.js +28 -0
  161. package/dist/ui/table/components/root/TableRoot.module.css.js +9 -0
  162. package/dist/ui/table/hooks/useSelected.d.ts +2 -0
  163. package/dist/ui/table/hooks/useSelected.d.ts.map +1 -0
  164. package/dist/ui/table/hooks/useSelected.js +6 -0
  165. package/dist/ui/table/index.d.ts +5 -0
  166. package/dist/ui/table/index.d.ts.map +1 -0
  167. package/package.json +18 -5
@@ -1,4 +1,4 @@
1
- export type { GridGap, GridItemProps, GridItemSize, GridRootProps, ResponsiveValue, } from "./Grid.types.js";
1
+ export type { GridGap, GridItemProps, GridItemSize, GridRootProps, ResponsiveValue, } from './Grid.types.js';
2
2
  export declare const Grid: {
3
3
  Root: ({ columns, gap, rowGap, columnGap, align, justify, className, style, children, ...props }: import("./Grid.types.js").GridRootProps) => import("react").JSX.Element;
4
4
  Item: ({ size, offset, order, align, className, style, children, ...props }: import("./Grid.types.js").GridItemProps) => import("react").JSX.Element;
@@ -1,11 +1,11 @@
1
- import type { ComponentProps } from "react";
2
- import type { AlignItemsType, JustifayContentType } from "../Flex/constants.js";
3
- import type { Size } from "../../lib/sizes.js";
4
- import type { ResponsiveSize } from "../../lib/getResponsiveSize.js";
5
- export type GridGap = Size | "none";
1
+ import type { ComponentProps } from 'react';
2
+ import type { AlignItemsType, JustifayContentType } from '../Flex/constants.js';
3
+ import type { ResponsiveSize } from '../../lib/getResponsiveSize.js';
4
+ import type { Size } from '../../lib/sizes.js';
5
+ export type GridGap = Size | 'none';
6
6
  export type ResponsiveValue<T> = T | Partial<Record<Size, T>>;
7
- export type GridItemSize = ResponsiveSize<number> | "fit" | "grow";
8
- export interface GridRootProps extends ComponentProps<"div"> {
7
+ export type GridItemSize = ResponsiveSize<number> | 'fit' | 'grow';
8
+ export interface GridRootProps extends ComponentProps<'div'> {
9
9
  columns?: number;
10
10
  gap?: ResponsiveValue<GridGap>;
11
11
  rowGap?: ResponsiveValue<GridGap>;
@@ -13,10 +13,10 @@ export interface GridRootProps extends ComponentProps<"div"> {
13
13
  align?: AlignItemsType;
14
14
  justify?: JustifayContentType;
15
15
  }
16
- export interface GridItemProps extends ComponentProps<"div"> {
16
+ export interface GridItemProps extends ComponentProps<'div'> {
17
17
  size?: GridItemSize;
18
18
  offset?: ResponsiveValue<number>;
19
19
  order?: ResponsiveValue<number>;
20
- align?: ResponsiveValue<AlignItemsType | "auto">;
20
+ align?: ResponsiveValue<AlignItemsType | 'auto'>;
21
21
  }
22
22
  //# sourceMappingURL=Grid.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.types.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/Grid.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;AAEpC,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAE9D,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,GAAG,MAAM,CAAC;AAEnE,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC1D,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,MAAM,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE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AK,CAAC,EAAE,eAAe,CAAC,cAAc,GAAG,MAAM,CAAC,CAAC;CAClD"}
@@ -1,3 +1,3 @@
1
- import type { GridItemProps } from "./Grid.types.js";
1
+ import type { GridItemProps } from './Grid.types.js';
2
2
  export declare const GridItem: ({ size, offset, order, align, className, style, children, ...props }: GridItemProps) => import("react").JSX.Element;
3
3
  //# sourceMappingURL=GridItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GridItem.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/GridItem.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAarD,eAAO,MAAM,QAAQ,GAAI,sEAStB,aAAa,gCA2Bf,CAAC"}
1
+ {"version":3,"file":"GridItem.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/GridItem.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAarD,eAAO,MAAM,QAAQ,GAAI,sEAStB,aAAa,gCA2Bf,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { GridRootProps } from "./Grid.types.js";
1
+ import type { GridRootProps } from './Grid.types.js';
2
2
  export declare const GridRoot: ({ columns, gap, rowGap, columnGap, align, justify, className, style, children, ...props }: GridRootProps) => import("react").JSX.Element;
3
3
  //# sourceMappingURL=GridRoot.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { jsx as h } from "react/jsx-runtime";
2
2
  import { Children as w, isValidElement as C, cloneElement as S } from "react";
3
3
  import b from "clsx";
4
- import { getResponsiveCssVariables as f, GRID_GAP_VALUES as d } from "./utils.js";
5
4
  import { GridItem as z } from "./GridItem.js";
5
+ import { getResponsiveCssVariables as f, GRID_GAP_VALUES as d } from "./utils.js";
6
6
  import I from "./Grid.module.css.js";
7
7
  const v = {
8
8
  stretch: "stretch",
@@ -1,5 +1,5 @@
1
- import type { CSSProperties } from "react";
2
- import type { GridGap, ResponsiveValue } from "./Grid.types.js";
1
+ import type { CSSProperties } from 'react';
2
+ import type { GridGap, ResponsiveValue } from './Grid.types.js';
3
3
  export type GridCssVariables = CSSProperties & Record<`--${string}`, string | number | undefined>;
4
4
  export declare const GRID_GAP_VALUES: Record<GridGap, string>;
5
5
  export declare const getResponsiveCssVariables: <T>(name: string, value: ResponsiveValue<T> | undefined, transform?: (entry: T) => string | number) => GridCssVariables;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGhE,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAC1C,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AAIrD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAOnD,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,CAAC,EACzC,MAAM,MAAM,EACZ,OAAO,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,EACrC,YAAW,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,GAAG,MAAiC,KAClE,gBAeF,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG,aAAa,GACxC,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AAIvD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAOnD,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,CAAC,EACzC,MAAM,MAAM,EACZ,OAAO,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,EACrC,YAAW,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,GAAG,MAAiC,KAClE,gBAeF,CAAC"}
@@ -1,21 +1,21 @@
1
- import type { AriaAttributes, ComponentPropsWithRef, ElementType, ReactNode } from "react";
2
- import type { Size } from "../../lib/sizes.js";
3
- export type IconButtonColor = "primary" | "secondary" | "danger";
4
- export type IconButtonVariant = "transparent" | "filled" | "outlined";
1
+ import type { AriaAttributes, ComponentPropsWithRef, ElementType, ReactNode } from 'react';
2
+ import type { Size } from '../../lib/sizes.js';
3
+ export type IconButtonColor = 'primary' | 'secondary' | 'danger';
4
+ export type IconButtonVariant = 'transparent' | 'filled' | 'outlined';
5
5
  type IconButtonOwnProps<T extends ElementType> = {
6
6
  color?: IconButtonColor;
7
7
  variant?: IconButtonVariant;
8
8
  size?: Size;
9
9
  isLoading?: boolean;
10
10
  disabled?: boolean;
11
- type?: "button" | "submit" | "reset";
11
+ type?: 'button' | 'submit' | 'reset';
12
12
  component?: T;
13
13
  children?: ReactNode;
14
14
  className?: string;
15
- "aria-disabled"?: AriaAttributes["aria-disabled"];
16
- "aria-busy"?: AriaAttributes["aria-busy"];
15
+ 'aria-disabled'?: AriaAttributes['aria-disabled'];
16
+ 'aria-busy'?: AriaAttributes['aria-busy'];
17
17
  };
18
- export type IconButtonProps<T extends ElementType = "button"> = IconButtonOwnProps<T> & Omit<ComponentPropsWithRef<T>, keyof IconButtonOwnProps<T>>;
18
+ export type IconButtonProps<T extends ElementType = 'button'> = IconButtonOwnProps<T> & Omit<ComponentPropsWithRef<T>, keyof IconButtonOwnProps<T>>;
19
19
  export declare const IconButton: <T extends ElementType = "button">({ color, variant, size, disabled, isLoading, component, children, className, type, onClick, onKeyDown, tabIndex, "aria-disabled": ariaDisabled, "aria-busy": ariaBusy, ...props }: IconButtonProps<T>) => import("react").JSX.Element;
20
20
  export {};
21
21
  //# sourceMappingURL=IconButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/ui/IconButton/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,WAAW,EAGX,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI/C,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AACjE,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEtE,KAAK,kBAAkB,CAAC,CAAC,SAAS,WAAW,IAAI;IAC/C,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,SAAS,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;IAClD,WAAW,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CAC3C,CAAC;AACF,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,QAAQ,IAC1D,kBAAkB,CAAC,CAAC,CAAC,GACnB,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEhE,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,WAAW,G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eAAe,CAAC,CAAC,CAAC,gCAoDpB,CAAC"}
@@ -1,6 +1,6 @@
1
- import { type ComponentProps } from "react";
2
- import type { LucideIcon } from "lucide-react";
3
- import { type ControlSize } from "../Field/Field.js";
1
+ import { type ComponentProps } from 'react';
2
+ import type { LucideIcon } from 'lucide-react';
3
+ import { type ControlSize } from '../Field/Field.js';
4
4
  export interface InputControlProps {
5
5
  startIcon?: LucideIcon;
6
6
  endIcon?: LucideIcon;
@@ -9,6 +9,6 @@ export interface InputControlProps {
9
9
  size?: ControlSize;
10
10
  fullWidth?: boolean;
11
11
  }
12
- export type InputProps = InputControlProps & Omit<ComponentProps<"input">, "size">;
12
+ export type InputProps = InputControlProps & Omit<ComponentProps<'input'>, 'size'>;
13
13
  export declare const Input: ({ id: idProps, label, error, size, fullWidth, className, startIcon, endIcon, ...inputProps }: InputProps) => import("react").JSX.Element;
14
14
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/ui/Input/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAS,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAG5D,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,MAAM,UAAU,GAAG,iBAAiB,GACxC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AAExC,eAAO,MAAM,KAAK,GAAI,8FAUnB,UAAU,gCAyBZ,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/ui/Input/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAS,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,WAAW,EAAS,MAAM,oBAAoB,CAAC;AAI7D,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,MAAM,UAAU,GAAG,iBAAiB,GACtC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AAE1C,eAAO,MAAM,KAAK,GAAI,8FAUnB,UAAU,gCAyBZ,CAAC"}
@@ -1,21 +1,21 @@
1
- import { type ComponentProps, type CSSProperties, type ReactNode } from "react";
2
- import { type GapType } from "../Flex/constants.js";
1
+ import { type ComponentProps, type CSSProperties, type ReactNode } from 'react';
2
+ import { type GapType } from '../Flex/constants.js';
3
3
  declare const COLUMNS_SX: {
4
4
  readonly 1: "grid-cols-1";
5
5
  readonly 2: "grid-cols-2";
6
6
  readonly 3: "grid-cols-3";
7
7
  readonly 4: "grid-cols-4";
8
8
  };
9
- export interface ListProps extends ComponentProps<"div"> {
9
+ export interface ListProps extends ComponentProps<'div'> {
10
10
  columns?: keyof typeof COLUMNS_SX;
11
11
  gap?: GapType;
12
- template?: CSSProperties["gridTemplateColumns"];
13
- columnsTemplate?: CSSProperties["gridTemplateColumns"];
12
+ template?: CSSProperties['gridTemplateColumns'];
13
+ columnsTemplate?: CSSProperties['gridTemplateColumns'];
14
14
  }
15
- export interface ListItemProps extends Omit<ComponentProps<"div">, "children"> {
15
+ export interface ListItemProps extends Omit<ComponentProps<'div'>, 'children'> {
16
16
  label: ReactNode;
17
17
  value: ReactNode;
18
- template?: CSSProperties["gridTemplateColumns"];
18
+ template?: CSSProperties['gridTemplateColumns'];
19
19
  }
20
20
  export declare const List: (({ children, columns, gap, template, columnsTemplate, className, style, ...props }: ListProps) => import("react").JSX.Element) & {
21
21
  Item: ({ label, value, template, className, style, ...props }: ListItemProps) => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/ui/List/List.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAMf,OAAO,EAAU,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE5D,QAAA,MAAM,UAAU;;;;;CAKN,CAAC;AAEX,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,KAAK,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IAClC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAChD,eAAe,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACxD;AA4CD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC5E,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACjD;AAsCD,eAAO,MAAM,IAAI,uFA3Ed,SAAS;mEA8CT,aAAa;CA6B+C,CAAC"}
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/ui/List/List.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAAU,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAI7D,QAAA,MAAM,UAAU;;;;;CAKN,CAAC;AAEX,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,KAAK,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IAClC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAChD,eAAe,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACxD;AA4CD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC5E,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACjD;AAsCD,eAAO,MAAM,IAAI,uFA3Ed,SAAS;mEA8CT,aAAa;CA6B+C,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { jsx as o, jsxs as l } from "react/jsx-runtime";
2
2
  import { Children as x, isValidElement as u, cloneElement as C } from "react";
3
- import { Flex as N } from "../Flex/Flex.js";
4
- import { Text as d } from "../Text/Text.js";
5
3
  import a from "clsx";
6
- import { GAP_SX as j } from "../Flex/constants.js";
4
+ import { GAP_SX as N } from "../Flex/constants.js";
5
+ import { Flex as j } from "../Flex/Flex.js";
6
+ import { Text as d } from "../Text/Text.js";
7
7
  const y = {
8
8
  1: "grid-cols-1",
9
9
  2: "grid-cols-2",
@@ -28,7 +28,7 @@ const y = {
28
28
  className: a(
29
29
  "grid w-full",
30
30
  !r && y[s],
31
- j[m],
31
+ N[m],
32
32
  n
33
33
  ),
34
34
  style: r ? { ...c, gridTemplateColumns: r } : c,
@@ -55,7 +55,7 @@ const y = {
55
55
  ]
56
56
  }
57
57
  ) : /* @__PURE__ */ l(
58
- N,
58
+ j,
59
59
  {
60
60
  alignItems: "center",
61
61
  gap: "md",
@@ -1,6 +1,6 @@
1
- import { type ReactNode } from "react";
2
- import { type ButtonProps } from "../Button/Button.js";
3
- import { type FlexProps } from "../Flex/Flex.js";
1
+ import { type ReactNode } from 'react';
2
+ import { type ButtonProps } from '../Button/Button.js';
3
+ import { type FlexProps } from '../Flex/Flex.js';
4
4
  export declare const MODAL_SIZE: {
5
5
  readonly xs: "xs";
6
6
  readonly sm: "sm";
@@ -14,7 +14,7 @@ export interface ModalRootProps {
14
14
  size?: ModalSize;
15
15
  className?: string;
16
16
  closeDisabled?: boolean;
17
- "aria-label"?: string;
17
+ 'aria-label'?: string;
18
18
  }
19
19
  interface HeaderProps extends FlexProps {
20
20
  closeLabel?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/ui/Modal/Modal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,SAAS,EASf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAWvD,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAWrE,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAqGD,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAqGD,eAAO,MAAM,KAAK;mFA/Kf,cAAc;6EAkFd,WAAW;sDA0B2C,SAAS;qDA+BF,SAAS;wDAMd,WAAW;4CAqBZ,WAAW;CASE,CAAC"}
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/ui/Modal/Modal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,SAAS,EASf,MAAM,OAAO,CAAC;AAMf,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAQxD,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAWrE,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAqGD,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAqGD,eAAO,MAAM,KAAK;mFA/Kf,cAAc;6EAkFd,WAAW;sDA0B2C,SAAS;qDA+BF,SAAS;wDAMd,WAAW;4CAqBZ,WAAW;CASE,CAAC"}
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as s, jsxs as R } from "react/jsx-runtime";
3
- import { useContext as M, useRef as b, useState as H, useImperativeHandle as N, useLayoutEffect as P, useId as j, useMemo as B, useEffect as T, createContext as X } from "react";
4
- import { Button as E } from "../Button/Button.js";
5
- import { Flex as v } from "../Flex/Flex.js";
6
- import { IconButton as z } from "../IconButton/IconButton.js";
7
- import { Text as A } from "../Text/Text.js";
8
- import S from "clsx";
9
- import { X as D } from "lucide-react";
3
+ import { createContext as H, useContext as M, useRef as b, useState as N, useImperativeHandle as P, useLayoutEffect as j, useId as B, useMemo as T, useEffect as X } from "react";
4
+ import E from "clsx";
5
+ import { X as z } from "lucide-react";
10
6
  import { useProvider as p } from "../../app/Provider.js";
7
+ import { Button as S } from "../Button/Button.js";
8
+ import { Flex as v } from "../Flex/Flex.js";
9
+ import { IconButton as A } from "../IconButton/IconButton.js";
10
+ import { Text as D } from "../Text/Text.js";
11
11
  import { useModal as h } from "./ModalContext.js";
12
12
  import m from "./Modal.module.css.js";
13
13
  const F = {
@@ -16,7 +16,7 @@ const F = {
16
16
  md: "md",
17
17
  lg: "lg",
18
18
  xl: "xl"
19
- }, x = X(
19
+ }, x = H(
20
20
  {}
21
21
  );
22
22
  let g = 0, w = "", C = "";
@@ -29,11 +29,11 @@ const L = () => (g === 0 && (w = document.body.style.overflow, C = document.docu
29
29
  closeDisabled: r = !1,
30
30
  "aria-label": c
31
31
  }) => {
32
- const { closeModal: a } = h(), i = b(null), t = b(!1), d = j(), u = B(
32
+ const { closeModal: a } = h(), i = b(null), t = b(!1), d = B(), u = T(
33
33
  () => ({ titleId: d, closeDisabled: r }),
34
34
  [d, r]
35
35
  );
36
- T(() => {
36
+ X(() => {
37
37
  const e = i.current;
38
38
  if (!e) return;
39
39
  e.showModal();
@@ -51,7 +51,7 @@ const L = () => (g === 0 && (w = document.body.style.overflow, C = document.docu
51
51
  "dialog",
52
52
  {
53
53
  ref: i,
54
- className: S(m.root, m[n], l),
54
+ className: E(m.root, m[n], l),
55
55
  "aria-modal": "true",
56
56
  "aria-labelledby": c ? void 0 : d,
57
57
  "aria-label": c,
@@ -77,22 +77,22 @@ const L = () => (g === 0 && (w = document.body.style.overflow, C = document.docu
77
77
  const { messages: a } = p(), { closeModal: i } = h(), { titleId: t, closeDisabled: d } = M(x);
78
78
  return /* @__PURE__ */ R(v, { justifyContent: "between", alignItems: "center", ...c, children: [
79
79
  n,
80
- /* @__PURE__ */ s(A, { id: t, size: "xl", weight: "medium", children: o }),
80
+ /* @__PURE__ */ s(D, { id: t, size: "xl", weight: "medium", children: o }),
81
81
  l && /* @__PURE__ */ s(
82
- z,
82
+ A,
83
83
  {
84
84
  className: m.close,
85
85
  color: "secondary",
86
86
  "aria-label": r ?? a.close,
87
87
  disabled: d,
88
88
  onClick: i,
89
- children: /* @__PURE__ */ s(D, {})
89
+ children: /* @__PURE__ */ s(z, {})
90
90
  }
91
91
  )
92
92
  ] });
93
93
  }, Z = ({ children: o, className: n, ref: l, ...r }) => {
94
- const c = b(null), [a, i] = H(!1);
95
- return N(l, () => c.current, []), P(() => {
94
+ const c = b(null), [a, i] = N(!1);
95
+ return P(l, () => c.current, []), j(() => {
96
96
  const t = c.current;
97
97
  if (!t) return;
98
98
  const d = () => i(t.scrollHeight > t.clientHeight), u = new ResizeObserver(d);
@@ -101,7 +101,7 @@ const L = () => (g === 0 && (w = document.body.style.overflow, C = document.docu
101
101
  v,
102
102
  {
103
103
  ref: c,
104
- className: S(m.content, { [m.scrollable]: a }, n),
104
+ className: E(m.content, { [m.scrollable]: a }, n),
105
105
  ...r,
106
106
  children: o
107
107
  }
@@ -109,7 +109,7 @@ const L = () => (g === 0 && (w = document.body.style.overflow, C = document.docu
109
109
  }, _ = ({ children: o, justifyContent: n = "end", ...l }) => /* @__PURE__ */ s(v, { direction: "row", justifyContent: n, ...l, children: o }), q = ({ children: o, onClick: n, disabled: l, ...r }) => {
110
110
  const { messages: c } = p(), { closeModal: a } = h(), { closeDisabled: i } = M(x);
111
111
  return /* @__PURE__ */ s(
112
- E,
112
+ S,
113
113
  {
114
114
  variant: "outlined",
115
115
  disabled: l || i,
@@ -122,7 +122,7 @@ const L = () => (g === 0 && (w = document.body.style.overflow, C = document.docu
122
122
  );
123
123
  }, G = ({ children: o, type: n = "submit", ...l }) => {
124
124
  const { messages: r } = p();
125
- return /* @__PURE__ */ s(E, { type: n, ...l, children: o === void 0 ? r.confirm : o });
125
+ return /* @__PURE__ */ s(S, { type: n, ...l, children: o === void 0 ? r.confirm : o });
126
126
  }, le = { Root: Y, Header: V, Content: Z, Footer: _, Cancel: q, Confirm: G };
127
127
  export {
128
128
  F as MODAL_SIZE,
@@ -1,4 +1,4 @@
1
- import { type ReactElement } from "react";
1
+ import { type ReactElement } from 'react';
2
2
  export interface ModalActions {
3
3
  isOpen: boolean;
4
4
  openModal: (modal: ReactElement) => void;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { useContext as t, createContext as o } from "react";
3
- const e = o({}), r = () => t(e);
2
+ import { createContext as t, useContext as o } from "react";
3
+ const e = t({}), r = () => o(e);
4
4
  export {
5
5
  e as ModalContext,
6
6
  r as useModal
@@ -1,3 +1,3 @@
1
- import { type PropsWithChildren } from "react";
1
+ import { type PropsWithChildren } from 'react';
2
2
  export declare const ModalProvider: ({ children }: PropsWithChildren) => import("react").JSX.Element;
3
3
  //# sourceMappingURL=ModalProvider.d.ts.map
@@ -1,9 +1,9 @@
1
- import { type FlexProps } from "../Flex/Flex.js";
1
+ import { type FlexProps } from '../Flex/Flex.js';
2
2
  export interface MultipleChipOption {
3
3
  value: string;
4
4
  label: string;
5
5
  }
6
- export interface MultipleChipProps extends Omit<FlexProps, "onChange"> {
6
+ export interface MultipleChipProps extends Omit<FlexProps, 'onChange'> {
7
7
  options: MultipleChipOption[];
8
8
  value?: string[];
9
9
  onChange?: (value: string[]) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"MultipleChip.d.ts","sourceRoot":"","sources":["../../../src/ui/MultipleChip/MultipleChip.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIvD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACpE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,YAAY,GAAI,0IAY1B,iBAAiB,gCAgFnB,CAAC"}
1
+ {"version":3,"file":"MultipleChip.d.ts","sourceRoot":"","sources":["../../../src/ui/MultipleChip/MultipleChip.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGxD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACpE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,YAAY,GAAI,0IAY1B,iBAAiB,gCAgFnB,CAAC"}
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsxs as v, jsx as o } from "react/jsx-runtime";
3
3
  import { useId as w, useMemo as g } from "react";
4
- import { Chip as N } from "../Chip/Chip.js";
4
+ import N from "clsx";
5
+ import { Chip as $ } from "../Chip/Chip.js";
5
6
  import { Field as n } from "../Field/Field.js";
6
- import { Flex as $ } from "../Flex/Flex.js";
7
- import { Skeleton as j } from "../Skeleton/Skeleton.js";
8
- import C from "clsx";
7
+ import { Flex as j } from "../Flex/Flex.js";
8
+ import { Skeleton as C } from "../Skeleton/Skeleton.js";
9
9
  const F = ({
10
10
  options: s,
11
11
  value: l = [],
@@ -34,7 +34,7 @@ const F = ({
34
34
  return /* @__PURE__ */ v(n.Root, { className: b, children: [
35
35
  t && /* @__PURE__ */ o(n.Label, { id: `${a}-label`, label: t }),
36
36
  /* @__PURE__ */ o(
37
- $,
37
+ j,
38
38
  {
39
39
  gap: "sm",
40
40
  className: "flex-wrap",
@@ -44,10 +44,10 @@ const F = ({
44
44
  "aria-disabled": i,
45
45
  "aria-busy": m,
46
46
  ...p,
47
- children: m ? Array.from({ length: 20 }, (e, r) => /* @__PURE__ */ o(j, { width: 80, height: 26 }, r)) : h.map((e) => {
47
+ children: m ? Array.from({ length: 20 }, (e, r) => /* @__PURE__ */ o(C, { width: 80, height: 26 }, r)) : h.map((e) => {
48
48
  const r = l.includes(e.value);
49
49
  return /* @__PURE__ */ o(
50
- N,
50
+ $,
51
51
  {
52
52
  role: "checkbox",
53
53
  "aria-checked": r,
@@ -55,7 +55,7 @@ const F = ({
55
55
  tabIndex: i ? -1 : 0,
56
56
  color: r ? "primary" : "secondary",
57
57
  variant: r ? "filled" : "outlined",
58
- className: C(
58
+ className: N(
59
59
  "focus-visible:outline-2 focus-visible:outline-primary-1 focus-visible:outline-offset-2",
60
60
  { "cursor-not-allowed opacity-60": i }
61
61
  ),
@@ -1,6 +1,6 @@
1
- import type { ReactNode } from "react";
2
- import { type FlexProps } from "../Flex/Flex.js";
3
- export interface NoDataProps extends Omit<FlexProps, "children" | "title"> {
1
+ import type { ReactNode } from 'react';
2
+ import { type FlexProps } from '../Flex/Flex.js';
3
+ export interface NoDataProps extends Omit<FlexProps, 'children' | 'title'> {
4
4
  icon?: ReactNode;
5
5
  title?: ReactNode;
6
6
  description?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"NoData.d.ts","sourceRoot":"","sources":["../../../src/ui/NoData/NoData.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIvD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC;IACxE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,MAAM,GAAI,mDAMpB,WAAW,gCA4Bb,CAAC"}
1
+ {"version":3,"file":"NoData.d.ts","sourceRoot":"","sources":["../../../src/ui/NoData/NoData.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGxD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC;IACxE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,MAAM,GAAI,mDAMpB,WAAW,gCA4Bb,CAAC"}
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
3
- import { useProvider as a } from "../../app/Provider.js";
3
+ import a from "clsx";
4
+ import { useProvider as d } from "../../app/Provider.js";
4
5
  import { Flex as t } from "../Flex/Flex.js";
5
6
  import { Text as l } from "../Text/Text.js";
6
- import d from "clsx";
7
7
  const u = ({
8
8
  icon: r,
9
9
  title: n,
@@ -11,7 +11,7 @@ const u = ({
11
11
  className: o,
12
12
  ...m
13
13
  }) => {
14
- const { messages: c } = a();
14
+ const { messages: c } = d();
15
15
  return /* @__PURE__ */ i(
16
16
  t,
17
17
  {
@@ -19,7 +19,7 @@ const u = ({
19
19
  alignItems: "center",
20
20
  justifyContent: "center",
21
21
  gap: "md",
22
- className: d("h-full py-4 w-full text-center", o),
22
+ className: a("h-full py-4 w-full text-center", o),
23
23
  ...m,
24
24
  children: [
25
25
  r && /* @__PURE__ */ e(
@@ -1,4 +1,4 @@
1
- import type { SVGProps } from "react";
1
+ import type { SVGProps } from 'react';
2
2
  type NoDataIconProps = SVGProps<SVGSVGElement>;
3
3
  export declare const NoDataIcon: (props: NoDataIconProps) => import("react").JSX.Element;
4
4
  export {};
@@ -1,9 +1,9 @@
1
- import type { ComponentProps } from "react";
2
- import { Popover as Primitive } from "radix-ui";
3
- import { type PortalProps } from "../Portal/Portal.js";
1
+ import { Popover as Primitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ import { type PortalProps } from '../Portal/Portal.js';
4
4
  export type PopoverRootProps = ComponentProps<typeof Primitive.Root>;
5
5
  export type PopoverTriggerProps = ComponentProps<typeof Primitive.Trigger>;
6
- export type PopoverContentProps = ComponentProps<typeof Primitive.Content> & Pick<PortalProps, "container">;
6
+ export type PopoverContentProps = ComponentProps<typeof Primitive.Content> & Pick<PortalProps, 'container'>;
7
7
  export declare const Popover: {
8
8
  Root: import("react").FC<Primitive.PopoverProps>;
9
9
  Anchor: (props: ComponentProps<typeof Primitive.Anchor>) => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/ui/Popover/Popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAA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type PropsWithChildren } from "react";
1
+ import { type PropsWithChildren } from 'react';
2
2
  export interface PortalProps extends PropsWithChildren {
3
3
  container?: Element | DocumentFragment | null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { SelectProps, SelectValue } from "./Select.types.js";
2
- export type { SelectProps, SelectValue } from "./Select.types.js";
3
- export declare const Select: <T extends SelectValue>(props: SelectProps<T>) => import("react").JSX.Element;
1
+ import type { SelectProps, SelectValue } from './Select.types.js';
2
+ export type { SelectProps, SelectValue } from './Select.types.js';
3
+ export declare const Select: <T extends SelectValue, Multiple extends boolean = false>(props: SelectProps<T, Multiple>) => import("react").JSX.Element;
4
4
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/Select.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAElE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAElE,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC,CAAC,gCAElE,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGlE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAElE,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,WAAW,EAAE,QAAQ,SAAS,OAAO,GAAG,KAAK,EAC5E,OAAO,WAAW,CAAC,CAAC,EAAE,QAAQ,CAAC,gCACsB,CAAC"}
@@ -1,6 +1,6 @@
1
- import type { ReactNode, RefObject } from "react";
2
- import type { ControlSize } from "../Field/Field.js";
3
- import type { InputProps } from "../Input/Input.js";
1
+ import type { ReactNode, RefObject } from 'react';
2
+ import type { ControlSize } from '../Field/Field.js';
3
+ import type { InputProps } from '../Input/Input.js';
4
4
  export interface SelectSearchProps extends InputProps {
5
5
  open: boolean;
6
6
  displayValue?: ReactNode;
@@ -20,7 +20,7 @@ export interface SelectCommonProps<T = SelectValue> {
20
20
  withArrow?: boolean;
21
21
  clearable?: boolean;
22
22
  className?: string;
23
- variant?: "filled" | "outlined";
23
+ variant?: 'filled' | 'outlined';
24
24
  options: readonly SelectOption<T>[];
25
25
  isLoading?: boolean;
26
26
  }
@@ -35,26 +35,28 @@ type SingleSelection<T> = {
35
35
  multiple?: false;
36
36
  value?: NoInfer<T>;
37
37
  renderValue?: (value: NoInfer<T>) => ReactNode;
38
- };
38
+ } & ClearableSelection<T>;
39
39
  type MultipleSelection<T> = {
40
40
  multiple: true;
41
41
  value?: NoInfer<T>[];
42
42
  renderValue?: (value: NoInfer<T>[]) => ReactNode;
43
43
  onChange?: (value: NoInfer<T>[]) => void;
44
44
  };
45
- type SelectSelection<T> = (SingleSelection<T> & ClearableSelection<T>) | MultipleSelection<T>;
46
- export type SelectProps<T extends SelectValue = SelectValue> = SelectCommonProps<T> & SelectSelection<T>;
47
- export type AutocompleteProps<T extends SelectValue = SelectValue> = SelectProps<T> & {
45
+ type SelectSelection<T, Multiple extends boolean> = Multiple extends true ? MultipleSelection<T> : SingleSelection<T>;
46
+ export type SelectProps<T extends SelectValue = SelectValue, Multiple extends boolean = false> = SelectCommonProps<T> & {
47
+ multiple?: Multiple;
48
+ } & SelectSelection<T, Multiple>;
49
+ export type AutocompleteProps<T extends SelectValue = SelectValue, Multiple extends boolean = false> = SelectProps<T, Multiple> & {
48
50
  onSearchChange?: (search: string) => void;
49
51
  searchPlaceholder?: string;
50
52
  filterOptions?: boolean;
51
53
  };
52
- export type SelectControlProps<T extends SelectValue> = AutocompleteProps<T> & {
54
+ export type SelectControlProps<T extends SelectValue> = AutocompleteProps<T, boolean> & {
53
55
  searchable?: boolean;
54
56
  };
55
57
  export interface SelectOptionsProps<T> {
56
58
  id: string;
57
- "aria-label"?: string;
59
+ 'aria-label'?: string;
58
60
  options: readonly SelectOption<T>[];
59
61
  values: T[];
60
62
  search: string;