@divayth/brick-ui 0.3.1 → 0.4.1

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/dist/app/Provider.d.ts +15 -3
  2. package/dist/app/Provider.d.ts.map +1 -1
  3. package/dist/app/Provider.js +11 -11
  4. package/dist/app/index.d.ts +1 -1
  5. package/dist/app/index.d.ts.map +1 -1
  6. package/dist/index.d.ts +4 -4
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +89 -81
  9. package/dist/lib/dates.d.ts +3 -3
  10. package/dist/lib/dates.d.ts.map +1 -1
  11. package/dist/lib/index.d.ts +5 -5
  12. package/dist/lib/index.d.ts.map +1 -1
  13. package/dist/lib/locale.d.ts +13 -1
  14. package/dist/lib/locale.d.ts.map +1 -1
  15. package/dist/lib/locale.js +14 -2
  16. package/dist/lib/sizes.d.ts +1 -1
  17. package/dist/lib/themes.d.ts +31 -31
  18. package/dist/lib/themes.d.ts.map +1 -1
  19. package/dist/styles.css +1 -1
  20. package/dist/ui/Accordion/Accordion.d.ts +2 -2
  21. package/dist/ui/Accordion/Accordion.d.ts.map +1 -1
  22. package/dist/ui/Alert/Alert.d.ts +2 -2
  23. package/dist/ui/Alert/Alert.d.ts.map +1 -1
  24. package/dist/ui/Autocomplete/Autocomplete.d.ts +2 -2
  25. package/dist/ui/Autocomplete/Autocomplete.d.ts.map +1 -1
  26. package/dist/ui/Button/Button.d.ts +8 -8
  27. package/dist/ui/Button/Button.d.ts.map +1 -1
  28. package/dist/ui/Card/Card.d.ts.map +1 -1
  29. package/dist/ui/Checkbox/Checkbox.d.ts +2 -2
  30. package/dist/ui/Checkbox/Checkbox.d.ts.map +1 -1
  31. package/dist/ui/Chip/Chip.d.ts +5 -5
  32. package/dist/ui/Chip/Chip.d.ts.map +1 -1
  33. package/dist/ui/CircularLoading/CircularLoading.d.ts.map +1 -1
  34. package/dist/ui/Date/DateInput.d.ts +6 -6
  35. package/dist/ui/Date/DateInput.d.ts.map +1 -1
  36. package/dist/ui/Date/DateInput.js +15 -15
  37. package/dist/ui/DateText/DateText.d.ts +2 -2
  38. package/dist/ui/DateText/DateText.d.ts.map +1 -1
  39. package/dist/ui/DateText/DateText.js +3 -3
  40. package/dist/ui/Drawer/Drawer.d.ts +3 -3
  41. package/dist/ui/FeedList/FeedList.d.ts +3 -3
  42. package/dist/ui/FeedList/FeedList.d.ts.map +1 -1
  43. package/dist/ui/Field/Field.d.ts +10 -10
  44. package/dist/ui/Field/Field.d.ts.map +1 -1
  45. package/dist/ui/Flex/Flex.d.ts +3 -3
  46. package/dist/ui/Flex/Flex.d.ts.map +1 -1
  47. package/dist/ui/Flex/constants.d.ts +1 -1
  48. package/dist/ui/Flex/constants.d.ts.map +1 -1
  49. package/dist/ui/Grid/Grid.d.ts +1 -1
  50. package/dist/ui/Grid/Grid.types.d.ts +9 -9
  51. package/dist/ui/Grid/Grid.types.d.ts.map +1 -1
  52. package/dist/ui/Grid/GridItem.d.ts +1 -1
  53. package/dist/ui/Grid/GridItem.d.ts.map +1 -1
  54. package/dist/ui/Grid/GridRoot.d.ts +1 -1
  55. package/dist/ui/Grid/GridRoot.js +1 -1
  56. package/dist/ui/Grid/utils.d.ts +2 -2
  57. package/dist/ui/Grid/utils.d.ts.map +1 -1
  58. package/dist/ui/IconButton/IconButton.d.ts +8 -8
  59. package/dist/ui/IconButton/IconButton.d.ts.map +1 -1
  60. package/dist/ui/Input/Input.d.ts +4 -4
  61. package/dist/ui/Input/Input.d.ts.map +1 -1
  62. package/dist/ui/List/List.d.ts +7 -7
  63. package/dist/ui/List/List.d.ts.map +1 -1
  64. package/dist/ui/List/List.js +5 -5
  65. package/dist/ui/Modal/Modal.d.ts +4 -4
  66. package/dist/ui/Modal/Modal.d.ts.map +1 -1
  67. package/dist/ui/Modal/Modal.js +19 -19
  68. package/dist/ui/Modal/ModalContext.d.ts +1 -1
  69. package/dist/ui/Modal/ModalContext.js +2 -2
  70. package/dist/ui/Modal/ModalProvider.d.ts +1 -1
  71. package/dist/ui/MultipleChip/MultipleChip.d.ts +2 -2
  72. package/dist/ui/MultipleChip/MultipleChip.d.ts.map +1 -1
  73. package/dist/ui/MultipleChip/MultipleChip.js +8 -8
  74. package/dist/ui/NoData/NoData.d.ts +3 -3
  75. package/dist/ui/NoData/NoData.d.ts.map +1 -1
  76. package/dist/ui/NoData/NoData.js +4 -4
  77. package/dist/ui/NoData/NoDataIcon.d.ts +1 -1
  78. package/dist/ui/Popover/Popover.d.ts +4 -4
  79. package/dist/ui/Popover/Popover.d.ts.map +1 -1
  80. package/dist/ui/Portal/Portal.d.ts +1 -1
  81. package/dist/ui/Select/Select.d.ts +2 -2
  82. package/dist/ui/Select/Select.d.ts.map +1 -1
  83. package/dist/ui/Select/Select.types.d.ts +7 -5
  84. package/dist/ui/Select/Select.types.d.ts.map +1 -1
  85. package/dist/ui/Select/SelectControl.d.ts +2 -2
  86. package/dist/ui/Select/SelectControl.d.ts.map +1 -1
  87. package/dist/ui/Select/SelectControl.js +33 -31
  88. package/dist/ui/Select/SelectOption.d.ts +1 -1
  89. package/dist/ui/Select/SelectOption.d.ts.map +1 -1
  90. package/dist/ui/Select/SelectOption.js +6 -6
  91. package/dist/ui/Select/SelectOptions.d.ts +2 -2
  92. package/dist/ui/Select/SelectOptions.d.ts.map +1 -1
  93. package/dist/ui/Select/SelectOptions.js +28 -27
  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/Table/Table.context.d.ts +10 -0
  100. package/dist/ui/Table/Table.context.d.ts.map +1 -0
  101. package/dist/ui/Table/Table.context.js +26 -0
  102. package/dist/ui/Table/Table.d.ts +3 -0
  103. package/dist/ui/Table/Table.d.ts.map +1 -0
  104. package/dist/ui/Table/Table.js +17 -0
  105. package/dist/ui/Table/Table.types.d.ts +77 -0
  106. package/dist/ui/Table/Table.types.d.ts.map +1 -0
  107. package/dist/ui/Table/Table.types.js +4 -0
  108. package/dist/ui/Table/components/content/TableContent.d.ts +9 -0
  109. package/dist/ui/Table/components/content/TableContent.d.ts.map +1 -0
  110. package/dist/ui/Table/components/content/TableContent.js +72 -0
  111. package/dist/ui/Table/components/content/TableContent.module.css.js +9 -0
  112. package/dist/ui/Table/components/content/cell/Cell.d.ts +7 -0
  113. package/dist/ui/Table/components/content/cell/Cell.d.ts.map +1 -0
  114. package/dist/ui/Table/components/content/cell/Cell.js +29 -0
  115. package/dist/ui/Table/components/content/cell/Cell.module.css.js +11 -0
  116. package/dist/ui/Table/components/content/cellcheckbox/CellCheckbox.d.ts +8 -0
  117. package/dist/ui/Table/components/content/cellcheckbox/CellCheckbox.d.ts.map +1 -0
  118. package/dist/ui/Table/components/content/cellcheckbox/CellCheckbox.js +26 -0
  119. package/dist/ui/Table/components/content/datarow/DataRow.d.ts +11 -0
  120. package/dist/ui/Table/components/content/datarow/DataRow.d.ts.map +1 -0
  121. package/dist/ui/Table/components/content/datarow/DataRow.js +23 -0
  122. package/dist/ui/Table/components/content/head/TableHead.d.ts +6 -0
  123. package/dist/ui/Table/components/content/head/TableHead.d.ts.map +1 -0
  124. package/dist/ui/Table/components/content/head/TableHead.js +7 -0
  125. package/dist/ui/Table/components/content/head/TableHead.module.css.js +9 -0
  126. package/dist/ui/Table/components/content/headercell/HeaderCell.d.ts +8 -0
  127. package/dist/ui/Table/components/content/headercell/HeaderCell.d.ts.map +1 -0
  128. package/dist/ui/Table/components/content/headercell/HeaderCell.js +51 -0
  129. package/dist/ui/Table/components/content/headercell/HeaderCell.module.css.js +15 -0
  130. package/dist/ui/Table/components/content/headercellcheckbox/HeaderCellCheckbox.d.ts +8 -0
  131. package/dist/ui/Table/components/content/headercellcheckbox/HeaderCellCheckbox.d.ts.map +1 -0
  132. package/dist/ui/Table/components/content/headercellcheckbox/HeaderCellCheckbox.js +29 -0
  133. package/dist/ui/Table/components/content/tablebody/TableBody.d.ts +7 -0
  134. package/dist/ui/Table/components/content/tablebody/TableBody.d.ts.map +1 -0
  135. package/dist/ui/Table/components/content/tablebody/TableBody.js +28 -0
  136. package/dist/ui/Table/components/pagination/TablePagination.d.ts +6 -0
  137. package/dist/ui/Table/components/pagination/TablePagination.d.ts.map +1 -0
  138. package/dist/ui/Table/components/pagination/TablePagination.js +73 -0
  139. package/dist/ui/Table/components/root/TableRoot.d.ts +7 -0
  140. package/dist/ui/Table/components/root/TableRoot.d.ts.map +1 -0
  141. package/dist/ui/Table/components/root/TableRoot.js +30 -0
  142. package/dist/ui/Table/components/root/TableRoot.module.css.js +9 -0
  143. package/dist/ui/Table/hooks/useSelected.d.ts +2 -0
  144. package/dist/ui/Table/hooks/useSelected.d.ts.map +1 -0
  145. package/dist/ui/Table/hooks/useSelected.js +6 -0
  146. package/dist/ui/Table/index.d.ts +5 -0
  147. package/dist/ui/Table/index.d.ts.map +1 -0
  148. package/dist/ui/Tabs/Tab.d.ts +3 -3
  149. package/dist/ui/Tabs/Tab.d.ts.map +1 -1
  150. package/dist/ui/Tabs/Tabs.d.ts +4 -4
  151. package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
  152. package/dist/ui/Tabs/Tabs.js +3 -3
  153. package/dist/ui/Tabs/TabsList.d.ts +1 -1
  154. package/dist/ui/Tabs/TabsList.d.ts.map +1 -1
  155. package/dist/ui/Tabs/TabsPanel.d.ts +2 -2
  156. package/dist/ui/Tabs/TabsPanel.d.ts.map +1 -1
  157. package/dist/ui/Tabs/context.d.ts +1 -1
  158. package/dist/ui/Text/Text.d.ts +6 -6
  159. package/dist/ui/Text/Text.d.ts.map +1 -1
  160. package/dist/ui/Textarea/Textarea.d.ts +3 -3
  161. package/dist/ui/Textarea/Textarea.d.ts.map +1 -1
  162. package/dist/ui/Tooltip/Tooltip.d.ts +3 -3
  163. package/dist/ui/Tooltip/Tooltip.d.ts.map +1 -1
  164. package/dist/ui/Tooltip/Tooltip.js +4 -4
  165. package/dist/ui/index.d.ts +36 -34
  166. package/dist/ui/index.d.ts.map +1 -1
  167. package/package.json +18 -5
@@ -0,0 +1,29 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import e from "clsx";
3
+ import l from "./Cell.module.css.js";
4
+ const p = ({
5
+ children: r,
6
+ align: s = "left",
7
+ fullHeight: o = !1,
8
+ style: m,
9
+ className: c,
10
+ ...f
11
+ }) => /* @__PURE__ */ t(
12
+ "td",
13
+ {
14
+ align: s,
15
+ className: e(l.root, { [l.fullHeight]: o }, c),
16
+ ...f,
17
+ children: /* @__PURE__ */ t(
18
+ "div",
19
+ {
20
+ className: e(l.content, { [l.fullHeight]: o }),
21
+ style: m,
22
+ children: r
23
+ }
24
+ )
25
+ }
26
+ );
27
+ export {
28
+ p as Cell
29
+ };
@@ -0,0 +1,11 @@
1
+ const t = "_root_10gnr_2", o = "_content_10gnr_8", n = "_fullHeight_10gnr_12", _ = {
2
+ root: t,
3
+ content: o,
4
+ fullHeight: n
5
+ };
6
+ export {
7
+ o as content,
8
+ _ as default,
9
+ n as fullHeight,
10
+ t as root
11
+ };
@@ -0,0 +1,8 @@
1
+ import { type CellProps } from '../cell/Cell.js';
2
+ interface CellCheckboxProps<T> extends CellProps {
3
+ data: T;
4
+ selectedKey: keyof T;
5
+ }
6
+ export declare const CellCheckbox: <T>({ data, selectedKey, ...props }: CellCheckboxProps<T>) => import("react").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=CellCheckbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Table/components/content/cellcheckbox/CellCheckbox.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEvD,UAAU,iBAAiB,CAAC,CAAC,CAAE,SAAQ,SAAS;IAC9C,IAAI,EAAE,CAAC,CAAC;IACR,WAAW,EAAE,MAAM,CAAC,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,GAAI,CAAC,EAAG,iCAI9B,iBAAiB,CAAC,CAAC,CAAC,gCAsBtB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { useProvider as p } from "../../../../../app/Provider.js";
3
+ import { Checkbox as f } from "../../../../Checkbox/Checkbox.js";
4
+ import { useSelected as u } from "../../../hooks/useSelected.js";
5
+ import { Cell as C } from "../cell/Cell.js";
6
+ const S = ({
7
+ data: o,
8
+ selectedKey: r,
9
+ ...m
10
+ }) => {
11
+ const { messages: t } = p(), { selected: c, setSelected: e } = u(), s = () => {
12
+ e((i) => i.includes(o[r]) ? i.filter((l) => l !== o[r]) : [...i, o[r]]);
13
+ };
14
+ return /* @__PURE__ */ n(C, { ...m, children: /* @__PURE__ */ n(
15
+ f,
16
+ {
17
+ "aria-label": `${t.selectRow} ${String(o[r])}`,
18
+ checked: c.includes(o[r]),
19
+ onChange: s,
20
+ onClick: (i) => i.stopPropagation()
21
+ }
22
+ ) });
23
+ };
24
+ export {
25
+ S as CellCheckbox
26
+ };
@@ -0,0 +1,11 @@
1
+ import type { IColumn } from '../../../Table.types.js';
2
+ interface RowProps<T> {
3
+ row: T;
4
+ columns: IColumn<T>[];
5
+ index: number;
6
+ onClickRow?: (row: T, index: number) => void;
7
+ selectedKey?: keyof T;
8
+ }
9
+ export declare const DataRow: <T>({ row, columns, index, onClickRow, selectedKey, }: RowProps<T>) => import("react").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=DataRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataRow.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Table/components/content/datarow/DataRow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD,UAAU,QAAQ,CAAC,CAAC;IAClB,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;CACvB;AAED,eAAO,MAAM,OAAO,GAAI,CAAC,EAAG,mDAMzB,QAAQ,CAAC,CAAC,CAAC,gCAgBb,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { jsxs as n, jsx as m } from "react/jsx-runtime";
2
+ import { Cell as u } from "../cell/Cell.js";
3
+ import { CellCheckbox as x } from "../cellcheckbox/CellCheckbox.js";
4
+ const C = ({
5
+ row: r,
6
+ columns: i,
7
+ index: p,
8
+ onClickRow: o,
9
+ selectedKey: a
10
+ }) => /* @__PURE__ */ n(
11
+ "tr",
12
+ {
13
+ onClick: () => o?.(r, p),
14
+ className: `px-2 ${o ? "hover:bg-gray-3 cursor-pointer" : "cursor-auto"}`,
15
+ children: [
16
+ a ? /* @__PURE__ */ m(x, { selectedKey: a, data: r }) : null,
17
+ i.map(({ key: t, render: l, style: s, align: c }) => /* @__PURE__ */ m(u, { style: s, align: c, children: l ? l(r[t], r) : r[t] }, String(t)))
18
+ ]
19
+ }
20
+ );
21
+ export {
22
+ C as DataRow
23
+ };
@@ -0,0 +1,6 @@
1
+ interface TableHeadProps extends React.ComponentProps<'thead'> {
2
+ sticky: boolean;
3
+ }
4
+ export declare const TableHead: ({ children, sticky, ...props }: TableHeadProps) => import("react").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=TableHead.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableHead.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Table/components/content/head/TableHead.tsx"],"names":[],"mappings":"AAIA,UAAU,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;IAC5D,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,GAAI,gCAAgC,cAAc,gCAIvE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import s from "clsx";
3
+ import r from "./TableHead.module.css.js";
4
+ const l = ({ children: t, sticky: e, ...m }) => /* @__PURE__ */ o("thead", { className: s(r.root, { [r.sticky]: e }), ...m, children: /* @__PURE__ */ o("tr", { children: t }) });
5
+ export {
6
+ l as TableHead
7
+ };
@@ -0,0 +1,9 @@
1
+ const t = "_root_qjl1w_2", o = "_sticky_qjl1w_6", s = {
2
+ root: t,
3
+ sticky: o
4
+ };
5
+ export {
6
+ s as default,
7
+ t as root,
8
+ o as sticky
9
+ };
@@ -0,0 +1,8 @@
1
+ import type { ThHTMLAttributes } from 'react';
2
+ import { type CellParamsProps, type SortParams } from '../../../Table.types.js';
3
+ export interface HeaderCellProps extends ThHTMLAttributes<HTMLTableCellElement>, CellParamsProps {
4
+ sort?: SortParams;
5
+ onSortChange?: (sortKey: string) => void;
6
+ }
7
+ export declare const HeaderCell: ({ children, sortKey, sort, onSortChange, align, ...props }: HeaderCellProps) => import("react").JSX.Element;
8
+ //# sourceMappingURL=HeaderCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderCell.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Table/components/content/headercell/HeaderCell.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAI9C,OAAO,EACL,KAAK,eAAe,EAEpB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAIjC,MAAM,WAAW,eACf,SAAQ,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,eAAe;IAC/D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AA2BD,eAAO,MAAM,UAAU,GAAI,4DAOxB,eAAe,gCAgCjB,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
+ import c from "clsx";
3
+ import { ChevronDown as u, ChevronUp as p } from "lucide-react";
4
+ import { Flex as h } from "../../../../Flex/Flex.js";
5
+ import { SortOrder as m } from "../../../Table.types.js";
6
+ import t from "./HeaderCell.module.css.js";
7
+ const C = (e, r) => e === "center" ? "center" : e === "right" ? "end" : e === "justify" && r ? "between" : "start", S = (e, r) => !e || !r ? !1 : e.name === r, x = {
8
+ [m.ASC]: p,
9
+ [m.DESC]: u
10
+ }, I = ({ sort: e }) => {
11
+ const r = x[e.order];
12
+ return /* @__PURE__ */ n(r, { size: 16 });
13
+ }, w = ({
14
+ children: e,
15
+ sortKey: r,
16
+ sort: i,
17
+ onSortChange: s,
18
+ align: a = "left",
19
+ ...f
20
+ }) => {
21
+ const l = () => {
22
+ !r || !s || s(r);
23
+ }, o = S(i, r);
24
+ return /* @__PURE__ */ n(
25
+ "th",
26
+ {
27
+ onClick: l,
28
+ align: a,
29
+ className: c(t.root, {
30
+ [t.active]: o
31
+ }),
32
+ ...f,
33
+ children: /* @__PURE__ */ d(
34
+ h,
35
+ {
36
+ gap: "xs",
37
+ className: c(t.text, { [t.sort]: !!r }),
38
+ alignItems: "center",
39
+ justifyContent: C(a, !!r),
40
+ children: [
41
+ e,
42
+ r && /* @__PURE__ */ n("span", { "aria-hidden": "true", className: c(t.icon, { [t.hiddenIcon]: !o }), children: o && /* @__PURE__ */ n(I, { sort: i }) })
43
+ ]
44
+ }
45
+ )
46
+ }
47
+ );
48
+ };
49
+ export {
50
+ w as HeaderCell
51
+ };
@@ -0,0 +1,15 @@
1
+ const o = "_root_1gq2n_2", n = "_text_1gq2n_10", t = "_sort_1gq2n_15", _ = "_icon_1gq2n_25", c = "_hiddenIcon_1gq2n_39", s = {
2
+ root: o,
3
+ text: n,
4
+ sort: t,
5
+ icon: _,
6
+ hiddenIcon: c
7
+ };
8
+ export {
9
+ s as default,
10
+ c as hiddenIcon,
11
+ _ as icon,
12
+ o as root,
13
+ t as sort,
14
+ n as text
15
+ };
@@ -0,0 +1,8 @@
1
+ import { type HeaderCellProps } from '../headercell/HeaderCell.js';
2
+ interface HeaderCellCheckboxProps<T> extends HeaderCellProps {
3
+ data: T[];
4
+ selectedKey: keyof T;
5
+ }
6
+ export declare const HeaderCellCheckbox: <T>({ data, selectedKey, ...props }: HeaderCellCheckboxProps<T>) => import("react").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=HeaderCellCheckbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderCellCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Table/components/content/headercellcheckbox/HeaderCellCheckbox.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE/E,UAAU,uBAAuB,CAAC,CAAC,CAAE,SAAQ,eAAe;IAC1D,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,WAAW,EAAE,MAAM,CAAC,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAG,iCAIpC,uBAAuB,CAAC,CAAC,CAAC,gCA2B5B,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { useProvider as f } from "../../../../../app/Provider.js";
3
+ import { Checkbox as h } from "../../../../Checkbox/Checkbox.js";
4
+ import { useSelected as C } from "../../../hooks/useSelected.js";
5
+ import { HeaderCell as g } from "../headercell/HeaderCell.js";
6
+ const v = ({
7
+ data: t,
8
+ selectedKey: l,
9
+ ...n
10
+ }) => {
11
+ const { messages: m } = f(), { selected: s, setSelected: p } = C(), c = s.length !== 0 && t.every((e) => s.includes(e[l])), a = () => {
12
+ const e = t.map((o) => o[l]);
13
+ p(
14
+ (o) => c ? o.filter((r) => !e.some((d) => d === r)) : [...o, ...e.filter((r) => !o.includes(r))]
15
+ );
16
+ };
17
+ return /* @__PURE__ */ i(g, { ...n, children: /* @__PURE__ */ i(
18
+ h,
19
+ {
20
+ "aria-label": m.selectAllRows,
21
+ checked: c,
22
+ onChange: a,
23
+ onClick: (e) => e.stopPropagation()
24
+ }
25
+ ) });
26
+ };
27
+ export {
28
+ v as HeaderCellCheckbox
29
+ };
@@ -0,0 +1,7 @@
1
+ import type { TableBodyProps } from '../../../Table.types.js';
2
+ type TableBodyComponentProps<T> = TableBodyProps<T> & {
3
+ selectedKey?: keyof T;
4
+ };
5
+ export declare const TableBody: <T>({ data, keyExtractor, columns, isLoading, emptyConfig, onClickRow, selectedKey, }: TableBodyComponentProps<T>) => import("react").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=TableBody.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Table/components/content/tablebody/TableBody.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAI9D,KAAK,uBAAuB,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC;AAEhF,eAAO,MAAM,SAAS,GAAI,CAAC,EAAG,mFAQ3B,uBAAuB,CAAC,CAAC,CAAC,gCA+B5B,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { CircularLoading as c } from "../../../../CircularLoading/CircularLoading.js";
3
+ import { NoData as u } from "../../../../NoData/NoData.js";
4
+ import { NoDataIcon as p } from "../../../../NoData/NoDataIcon.js";
5
+ import { Cell as h } from "../cell/Cell.js";
6
+ import { DataRow as s } from "../datarow/DataRow.js";
7
+ const w = ({
8
+ data: r,
9
+ keyExtractor: o,
10
+ columns: e,
11
+ isLoading: t,
12
+ emptyConfig: n,
13
+ onClickRow: f,
14
+ selectedKey: m
15
+ }) => t || r.length === 0 ? /* @__PURE__ */ l("tbody", { className: "w-full h-full", children: /* @__PURE__ */ l("tr", { className: "h-full", children: /* @__PURE__ */ l(h, { fullHeight: !0, colSpan: e.length + +!!m, children: t ? /* @__PURE__ */ l(c, { fullScreen: !0, size: "lg", className: "p-4" }) : /* @__PURE__ */ l(u, { icon: /* @__PURE__ */ l(p, {}), ...n }) }) }) }) : /* @__PURE__ */ l("tbody", { className: "w-full", children: r.map((a, i) => /* @__PURE__ */ l(
16
+ s,
17
+ {
18
+ row: a,
19
+ index: i,
20
+ columns: e,
21
+ onClickRow: f,
22
+ selectedKey: m
23
+ },
24
+ o ? String(a[o]) : i
25
+ )) });
26
+ export {
27
+ w as TableBody
28
+ };
@@ -0,0 +1,6 @@
1
+ import type { TablePaginationState } from '../../Table.types.js';
2
+ export interface TablePaginationProps extends Omit<TablePaginationState, 'total'> {
3
+ total?: number;
4
+ }
5
+ export declare const TablePagination: ({ page, size, total, onPageChange, onPageSizeChange, pageSizeOptions, render, }: TablePaginationProps) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
6
+ //# sourceMappingURL=TablePagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TablePagination.d.ts","sourceRoot":"","sources":["../../../../../src/ui/Table/components/pagination/TablePagination.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAChD,oBAAoB,EACpB,OAAO,CACR;IACC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,eAAe,GAAI,iFAQ7B,oBAAoB,gWAoDtB,CAAC"}
@@ -0,0 +1,73 @@
1
+ "use client";
2
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
3
+ import { ChevronLeft as g, ChevronRight as v } from "lucide-react";
4
+ import { useProvider as w } from "../../../../app/Provider.js";
5
+ import { Flex as o } from "../../../Flex/Flex.js";
6
+ import { IconButton as d } from "../../../IconButton/IconButton.js";
7
+ import { Select as y } from "../../../Select/Select.js";
8
+ import { Text as f } from "../../../Text/Text.js";
9
+ const M = ({
10
+ page: r,
11
+ size: t,
12
+ total: n = 0,
13
+ onPageChange: i,
14
+ onPageSizeChange: s,
15
+ pageSizeOptions: h = [10, 25, 50, 100],
16
+ render: m
17
+ }) => {
18
+ const { messages: a } = w();
19
+ if (m) return m({ page: r, size: t, onPageChange: i, onPageSizeChange: s });
20
+ const b = Math.ceil(n / t), p = n === 0 ? 0 : (r - 1) * t + 1, u = Math.min(r * t, n), x = h.map((c) => ({
21
+ label: String(c),
22
+ value: c
23
+ }));
24
+ return /* @__PURE__ */ l(
25
+ o,
26
+ {
27
+ alignItems: "center",
28
+ justifyContent: "end",
29
+ gap: "md",
30
+ className: "p-2 bg-background-primary",
31
+ children: [
32
+ /* @__PURE__ */ l(o, { alignItems: "center", children: [
33
+ /* @__PURE__ */ e(f, { className: "text-gray-1", children: a.rowsPerPage }),
34
+ /* @__PURE__ */ e(
35
+ y,
36
+ {
37
+ clearable: !1,
38
+ value: t,
39
+ onChange: s,
40
+ withArrow: !1,
41
+ options: x,
42
+ className: "w-16"
43
+ }
44
+ )
45
+ ] }),
46
+ /* @__PURE__ */ e(f, { className: "text-gray-1", children: `${p}–${u} ${a.paginationOf} ${n}` }),
47
+ /* @__PURE__ */ l(o, { gap: "sm", alignItems: "center", children: [
48
+ /* @__PURE__ */ e(
49
+ d,
50
+ {
51
+ "aria-label": a.previousPage,
52
+ onClick: () => i(r - 1),
53
+ disabled: r <= 1,
54
+ children: /* @__PURE__ */ e(g, {})
55
+ }
56
+ ),
57
+ /* @__PURE__ */ e(
58
+ d,
59
+ {
60
+ "aria-label": a.nextPage,
61
+ onClick: () => i(r + 1),
62
+ disabled: r >= b,
63
+ children: /* @__PURE__ */ e(v, {})
64
+ }
65
+ )
66
+ ] })
67
+ ]
68
+ }
69
+ );
70
+ };
71
+ export {
72
+ M as TablePagination
73
+ };
@@ -0,0 +1,7 @@
1
+ import type { TableProps } from '../../Table.types.js';
2
+ type TableRootProps<T> = Omit<TableProps<T>, 'selection'> & {
3
+ selectedKey?: keyof T;
4
+ };
5
+ export declare const TableRoot: <T>({ maxHeight, withBorder, pagination, columns, hiddenColumns, ...props }: TableRootProps<T>) => import("react").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=TableRoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableRoot.d.ts","sourceRoot":"","sources":["../../../../../src/ui/Table/components/root/TableRoot.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMvD,KAAK,cAAc,CAAC,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,GAAG;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,CAAC,EAAG,yEAO3B,cAAc,CAAC,CAAC,CAAC,gCAanB,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use client";
2
+ import { jsxs as u, jsx as s } from "react/jsx-runtime";
3
+ import b from "clsx";
4
+ import { TableContent as f } from "../content/TableContent.js";
5
+ import { TablePagination as p } from "../pagination/TablePagination.js";
6
+ import l from "./TableRoot.module.css.js";
7
+ const v = ({
8
+ maxHeight: o = "100%",
9
+ withBorder: e = !0,
10
+ pagination: r,
11
+ columns: m,
12
+ hiddenColumns: i = [],
13
+ ...c
14
+ }) => {
15
+ const t = o !== "auto", n = m.filter(({ key: a }) => !i.includes(a));
16
+ return /* @__PURE__ */ u(
17
+ "div",
18
+ {
19
+ className: b(l.root, { [l.borderless]: !e }),
20
+ style: { height: t ? "100%" : "auto", maxHeight: o },
21
+ children: [
22
+ /* @__PURE__ */ s(f, { columns: n, scrollable: t, ...c }),
23
+ r && /* @__PURE__ */ s(p, { ...r })
24
+ ]
25
+ }
26
+ );
27
+ };
28
+ export {
29
+ v as TableRoot
30
+ };
@@ -0,0 +1,9 @@
1
+ const o = "_root_kixg0_2", s = "_borderless_kixg0_14", r = {
2
+ root: o,
3
+ borderless: s
4
+ };
5
+ export {
6
+ s as borderless,
7
+ r as default,
8
+ o as root
9
+ };
@@ -0,0 +1,2 @@
1
+ export declare const useSelected: () => import("../Table.types.js").TableContextProps<unknown>;
2
+ //# sourceMappingURL=useSelected.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSelected.d.ts","sourceRoot":"","sources":["../../../../src/ui/Table/hooks/useSelected.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,8DAA0B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { use as e } from "react";
2
+ import { TableContext as o } from "../Table.context.js";
3
+ const m = () => e(o);
4
+ export {
5
+ m as useSelected
6
+ };
@@ -0,0 +1,5 @@
1
+ export { useSelected } from './hooks/useSelected.js';
2
+ export { Table } from './Table.js';
3
+ export type { IColumn, SortParams, TableBodyProps, TableContextProps, TableEmptyConfig, TablePaginationConfig, TablePaginationState, TableParams, TableProps, TableSelectionState, TableSortingState, } from './Table.types.js';
4
+ export { SortOrder } from './Table.types.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,YAAY,EACV,OAAO,EACP,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,7 +1,7 @@
1
- import type { ComponentProps } from "react";
2
- export interface TabProps extends Omit<ComponentProps<"button">, "value"> {
1
+ import type { ComponentProps } from 'react';
2
+ export interface TabProps extends Omit<ComponentProps<'button'>, 'value'> {
3
3
  value: string;
4
- color?: "primary" | "secondary";
4
+ color?: 'primary' | 'secondary';
5
5
  }
6
6
  export declare const Tab: ({ value, color, children, className, onClick, ...props }: TabProps) => import("react").JSX.Element;
7
7
  //# sourceMappingURL=Tab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CACjC;AAED,eAAO,MAAM,GAAG,GAAI,0DAOjB,QAAQ,gCAyBV,CAAC"}
1
+ {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO5C,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CACjC;AAED,eAAO,MAAM,GAAG,GAAI,0DAOjB,QAAQ,gCAyBV,CAAC"}
@@ -1,7 +1,7 @@
1
- export { useTabs, type TabsRootProps } from "./context.js";
2
- export { type TabsListProps } from "./TabsList.js";
3
- export { type TabProps } from "./Tab.js";
4
- export { type TabsPanelProps } from "./TabsPanel.js";
1
+ export { type TabsRootProps, useTabs } from './context.js';
2
+ export { type TabProps } from './Tab.js';
3
+ export { type TabsListProps } from './TabsList.js';
4
+ export { type TabsPanelProps } from './TabsPanel.js';
5
5
  export declare const Tabs: {
6
6
  Root: ({ children, defaultValue, value, onChange, }: import("./context.js").TabsRootProps) => import("react").JSX.Element;
7
7
  List: ({ children, direction, className, ...props }: import("./TabsList.js").TabsListProps) => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,eAAO,MAAM,IAAI;;;;;CAA4D,CAAC"}
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,eAAO,MAAM,IAAI;;;;;CAA4D,CAAC"}
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { TabsRoot as o } from "./context.js";
3
3
  import { useTabs as f } from "./context.js";
4
- import { TabsList as r } from "./TabsList.js";
5
- import { Tab as t } from "./Tab.js";
4
+ import { Tab as r } from "./Tab.js";
5
+ import { TabsList as t } from "./TabsList.js";
6
6
  import { TabsPanel as m } from "./TabsPanel.js";
7
- const p = { Root: o, List: r, Tab: t, Panel: m };
7
+ const p = { Root: o, List: t, Tab: r, Panel: m };
8
8
  export {
9
9
  p as Tabs,
10
10
  f as useTabs
@@ -1,4 +1,4 @@
1
- import { type FlexProps } from "../Flex/Flex.js";
1
+ import { type FlexProps } from '../Flex/Flex.js';
2
2
  export type TabsListProps = FlexProps;
3
3
  export declare const TabsList: ({ children, direction, className, ...props }: TabsListProps) => import("react").JSX.Element;
4
4
  //# sourceMappingURL=TabsList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabsList.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/TabsList.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC;AAEtC,eAAO,MAAM,QAAQ,GAAI,8CAKtB,aAAa,gCAef,CAAC"}
1
+ {"version":3,"file":"TabsList.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/TabsList.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC;AAEtC,eAAO,MAAM,QAAQ,GAAI,8CAKtB,aAAa,gCAef,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ComponentProps } from "react";
2
- export interface TabsPanelProps extends ComponentProps<"div"> {
1
+ import type { ComponentProps } from 'react';
2
+ export interface TabsPanelProps extends ComponentProps<'div'> {
3
3
  value: string;
4
4
  }
5
5
  export declare const TabsPanel: ({ value, children, ...props }: TabsPanelProps) => import("react").JSX.Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"TabsPanel.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/TabsPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC3D,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,SAAS,GAAI,+BAA+B,cAAc,uCAStE,CAAC"}
1
+ {"version":3,"file":"TabsPanel.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/TabsPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC3D,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,SAAS,GAAI,+BAA+B,cAAc,uCAStE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from "react";
1
+ import { type ReactNode } from 'react';
2
2
  export interface TabsRootProps {
3
3
  children: ReactNode;
4
4
  defaultValue?: string;
@@ -1,5 +1,5 @@
1
- import type { ComponentProps } from "react";
2
- import { type ResponsiveSize } from "../../lib/getResponsiveSize.js";
1
+ import type { ComponentProps } from 'react';
2
+ import { type ResponsiveSize } from '../../lib/getResponsiveSize.js';
3
3
  declare const WEIGHTS_MAP: {
4
4
  readonly thin: "font-thin";
5
5
  readonly extralight: "font-extralight";
@@ -17,13 +17,13 @@ declare const FONT_SIZES: {
17
17
  readonly md: "text-base";
18
18
  readonly lg: "text-lg";
19
19
  readonly xl: "text-xl";
20
- readonly "2xl": "text-2xl";
21
- readonly "3xl": "text-3xl";
22
- readonly "4xl": "text-4xl";
20
+ readonly '2xl': "text-2xl";
21
+ readonly '3xl': "text-3xl";
22
+ readonly '4xl': "text-4xl";
23
23
  readonly inherit: "";
24
24
  };
25
25
  type TextSize = keyof typeof FONT_SIZES;
26
- export interface TextProps extends ComponentProps<"span"> {
26
+ export interface TextProps extends ComponentProps<'span'> {
27
27
  size?: ResponsiveSize<TextSize>;
28
28
  weight?: keyof typeof WEIGHTS_MAP;
29
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/ui/Text/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,gCAAgC,CAAC;AAExC,QAAA,MAAM,WAAW;;;;;;;;;;CAUP,CAAC;AAEX,QAAA,MAAM,UAAU;;;;;;;;;;CAUN,CAAC;AAEX,KAAK,QAAQ,GAAG,MAAM,OAAO,UAAU,CAAC;AAExC,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,MAAM,CAAC;IACvD,IAAI,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;CACnC;AAED,eAAO,MAAM,IAAI,GAAI,iDAMlB,SAAS,gCAgBX,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/ui/Text/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAC;AAEnC,QAAA,MAAM,WAAW;;;;;;;;;;CAUP,CAAC;AAEX,QAAA,MAAM,UAAU;;;;;;;;;;CAUN,CAAC;AAEX,KAAK,QAAQ,GAAG,MAAM,OAAO,UAAU,CAAC;AAExC,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,MAAM,CAAC;IACvD,IAAI,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;CACnC;AAED,eAAO,MAAM,IAAI,GAAI,iDAMlB,SAAS,gCAgBX,CAAC"}
@@ -1,6 +1,6 @@
1
- import { type ComponentProps } from "react";
2
- import type { InputControlProps } from "../Input/Input.js";
3
- export type TextareaProps = InputControlProps & Omit<ComponentProps<"textarea">, "size"> & {
1
+ import { type ComponentProps } from 'react';
2
+ import type { InputControlProps } from '../Input/Input.js';
3
+ export type TextareaProps = InputControlProps & Omit<ComponentProps<'textarea'>, 'size'> & {
4
4
  minRows?: number;
5
5
  maxRows?: number;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/ui/Textarea/Textarea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkC,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3D,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,GAAG;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAqBJ,eAAO,MAAM,QAAQ,GAAI,kKAiBtB,aAAa,gCAqDf,CAAC"}
1
+ {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/ui/Textarea/Textarea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAkC,MAAM,OAAO,CAAC;AAM5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAI5D,MAAM,MAAM,aAAa,GAAG,iBAAiB,GACzC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,GAAG;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAqBJ,eAAO,MAAM,QAAQ,GAAI,kKAiBtB,aAAa,gCAqDf,CAAC"}