@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
package/README.md CHANGED
@@ -41,6 +41,8 @@ minimum when `minRows` is not provided.
41
41
  ## Select and Autocomplete
42
42
 
43
43
  The value type is inferred from `options`; explicit JSX type arguments are not needed.
44
+ `SelectProps` and `AutocompleteProps` describe single selection by default.
45
+ Use `SelectProps<number, true>` or `AutocompleteProps<number, true>` for multiple-selection wrappers.
44
46
  `multiple` and `clearable` are off by default. Add `clearable` to allow clearing;
45
47
  clearing a single selection returns `undefined`. `multiple` returns an array.
46
48
 
@@ -1,6 +1,6 @@
1
- import { type PropsWithChildren } from "react";
2
- import { type Locale } from "../lib/locale.js";
3
- import { type ThemeMap } from "../lib/themes.js";
1
+ import { type PropsWithChildren } from 'react';
2
+ import { type Locale } from '../lib/locale.js';
3
+ import { type ThemeMap } from '../lib/themes.js';
4
4
  export interface ProviderProps extends PropsWithChildren {
5
5
  locale?: Locale;
6
6
  defaultTheme?: string;
@@ -18,6 +18,12 @@ export declare const useProvider: () => {
18
18
  confirm: string;
19
19
  noData: string;
20
20
  search: string;
21
+ rowsPerPage: string;
22
+ paginationOf: string;
23
+ previousPage: string;
24
+ nextPage: string;
25
+ selectAllRows: string;
26
+ selectRow: string;
21
27
  } | {
22
28
  scrollToTop: string;
23
29
  close: string;
@@ -28,6 +34,12 @@ export declare const useProvider: () => {
28
34
  confirm: string;
29
35
  noData: string;
30
36
  search: string;
37
+ rowsPerPage: string;
38
+ paginationOf: string;
39
+ previousPage: string;
40
+ nextPage: string;
41
+ selectAllRows: string;
42
+ selectRow: string;
31
43
  };
32
44
  locale: Locale;
33
45
  theme: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../src/app/Provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,iBAAiB,EAMvB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,KAAK,MAAM,EAAY,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAKL,KAAK,QAAQ,EACd,MAAM,kBAAkB,CAAC;AAW1B,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,GAAI,6CAKtB,aAAa,gCAwDf,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;YA3EN,MAAM;;;4BAGE,MAAM;CA2E/B,CAAC"}
1
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../src/app/Provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,iBAAiB,EAMvB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,KAAK,MAAM,EAAY,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAKL,KAAK,QAAQ,EACd,MAAM,gBAAgB,CAAC;AAYxB,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,GAAI,6CAKtB,aAAa,gCAwDf,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA3EN,MAAM;;;4BAGE,MAAM;CA2E/B,CAAC"}
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx as b } from "react/jsx-runtime";
3
- import { useState as x, useMemo as u, useCallback as E, useLayoutEffect as F, useContext as P, createContext as S } from "react";
3
+ import { useContext as x, createContext as E, useState as F, useMemo as u, useCallback as P, useLayoutEffect as S } from "react";
4
4
  import M from "js-cookie";
5
5
  import { messages as T } from "../lib/locale.js";
6
- import { useMobile as A } from "../lib/useMobile.js";
7
- import { getDefaultTheme as L, getThemeStyle as O, defaultThemes as j, THEME_COOKIE as k } from "../lib/themes.js";
6
+ import { getDefaultTheme as A, getThemeStyle as L, defaultThemes as O, THEME_COOKIE as j } from "../lib/themes.js";
7
+ import { useMobile as k } from "../lib/useMobile.js";
8
8
  import n from "./Provider.module.css.js";
9
- const h = S({
9
+ const h = E({
10
10
  locale: "en",
11
11
  theme: "light",
12
12
  isMobile: !1,
@@ -15,14 +15,14 @@ const h = S({
15
15
  }), z = ({
16
16
  locale: t = "en",
17
17
  defaultTheme: f,
18
- themes: r = j,
18
+ themes: r = O,
19
19
  children: g
20
20
  }) => {
21
- const c = A(), [o, p] = x(
22
- () => L(f, r)
23
- ), m = u(() => O(o, r), [o, r]), a = E(
21
+ const c = k(), [o, p] = F(
22
+ () => A(f, r)
23
+ ), m = u(() => L(o, r), [o, r]), a = P(
24
24
  (e) => {
25
- r?.[e] && (p(e), M.set(k, e, {
25
+ r?.[e] && (p(e), M.set(j, e, {
26
26
  expires: 365,
27
27
  path: "/",
28
28
  sameSite: "lax",
@@ -34,7 +34,7 @@ const h = S({
34
34
  () => ({ locale: t, theme: o, onChangeTheme: a, isMobile: c }),
35
35
  [t, o, a, c]
36
36
  );
37
- return F(() => {
37
+ return S(() => {
38
38
  const e = document.documentElement;
39
39
  e.dataset.theme = o, e.classList.add(n.changing);
40
40
  const { colorScheme: y = "light", ...i } = m;
@@ -52,7 +52,7 @@ const h = S({
52
52
  };
53
53
  }, [o, m]), /* @__PURE__ */ b(h.Provider, { value: d, children: g });
54
54
  }, B = () => {
55
- const t = P(h);
55
+ const t = x(h);
56
56
  return { ...t, messages: T[t.locale] };
57
57
  };
58
58
  export {
@@ -1,2 +1,2 @@
1
- export { Provider, useProvider, type ProviderProps } from "./Provider.js";
1
+ export { Provider, type ProviderProps, useProvider } from './Provider.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import "./styles.css";
2
- export * from "./ui/index.js";
3
- export * from "./app/index.js";
4
- export * from "./lib/index.js";
1
+ import './styles.css';
2
+ export * from './app/index.js';
3
+ export * from './lib/index.js';
4
+ export * from './ui/index.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -1,84 +1,92 @@
1
1
  /* empty css */
2
- import { Accordion as t } from "./ui/Accordion/Accordion.js";
3
- import { Alert as m } from "./ui/Alert/Alert.js";
4
- import { Autocomplete as f } from "./ui/Autocomplete/Autocomplete.js";
5
- import { Button as i } from "./ui/Button/Button.js";
6
- import { Card as d } from "./ui/Card/Card.js";
7
- import { Checkbox as u } from "./ui/Checkbox/Checkbox.js";
8
- import { Chip as n } from "./ui/Chip/Chip.js";
9
- import { CircularLoading as D } from "./ui/CircularLoading/CircularLoading.js";
10
- import { DateInput as C } from "./ui/Date/DateInput.js";
11
- import { DateText as P } from "./ui/DateText/DateText.js";
12
- import { Drawer as g } from "./ui/Drawer/Drawer.js";
13
- import { FeedList as I } from "./ui/FeedList/FeedList.js";
14
- import { Field as E } from "./ui/Field/Field.js";
15
- import { Flex as b } from "./ui/Flex/Flex.js";
16
- import { Grid as B } from "./ui/Grid/Grid.js";
17
- import { IconButton as O } from "./ui/IconButton/IconButton.js";
18
- import { Input as _ } from "./ui/Input/Input.js";
19
- import { List as z } from "./ui/List/List.js";
20
- import { MODAL_SIZE as H, Modal as K } from "./ui/Modal/Modal.js";
21
- import { ModalProvider as R } from "./ui/Modal/ModalProvider.js";
22
- import { MultipleChip as j } from "./ui/MultipleChip/MultipleChip.js";
23
- import { NoData as J } from "./ui/NoData/NoData.js";
24
- import { Popover as U } from "./ui/Popover/Popover.js";
25
- import { Portal as W } from "./ui/Portal/Portal.js";
26
- import { ProgressBar as Y } from "./ui/ProgressBar/ProgressBar.js";
27
- import { Provider as oo, useProvider as ro } from "./app/Provider.js";
28
- import { Select as to } from "./ui/Select/Select.js";
29
- import { Skeleton as mo } from "./ui/Skeleton/Skeleton.js";
30
- import { Sticky as fo } from "./ui/Sticky/Sticky.js";
31
- import { THEME_COOKIE as io, defaultThemes as lo, getDefaultTheme as so, getThemeStyle as uo } from "./lib/themes.js";
32
- import { Tabs as no } from "./ui/Tabs/Tabs.js";
33
- import { Text as Do } from "./ui/Text/Text.js";
34
- import { Textarea as Co } from "./ui/Textarea/Textarea.js";
35
- import { Tooltip as Po } from "./ui/Tooltip/Tooltip.js";
36
- import { formatDate as go } from "./lib/dates.js";
37
- import { getResponsiveSize as Io } from "./lib/getResponsiveSize.js";
38
- import { useModal as Eo } from "./ui/Modal/ModalContext.js";
39
- import { useTabs as bo } from "./ui/Tabs/context.js";
2
+ import { Provider as t, useProvider as p } from "./app/Provider.js";
3
+ import { formatDate as x } from "./lib/dates.js";
4
+ import { getResponsiveSize as a } from "./lib/getResponsiveSize.js";
5
+ import { THEME_COOKIE as l, defaultThemes as d, getDefaultTheme as s, getThemeStyle as u } from "./lib/themes.js";
6
+ import { Accordion as n } from "./ui/Accordion/Accordion.js";
7
+ import { Alert as S } from "./ui/Alert/Alert.js";
8
+ import { Autocomplete as P } from "./ui/Autocomplete/Autocomplete.js";
9
+ import { Button as h } from "./ui/Button/Button.js";
10
+ import { Card as M } from "./ui/Card/Card.js";
11
+ import { Checkbox as v } from "./ui/Checkbox/Checkbox.js";
12
+ import { Chip as A } from "./ui/Chip/Chip.js";
13
+ import { CircularLoading as L } from "./ui/CircularLoading/CircularLoading.js";
14
+ import { DateInput as k } from "./ui/Date/DateInput.js";
15
+ import { DateText as F } from "./ui/DateText/DateText.js";
16
+ import { Drawer as _ } from "./ui/Drawer/Drawer.js";
17
+ import { FeedList as z } from "./ui/FeedList/FeedList.js";
18
+ import { Field as H } from "./ui/Field/Field.js";
19
+ import { Flex as N } from "./ui/Flex/Flex.js";
20
+ import { Grid as Z } from "./ui/Grid/Grid.js";
21
+ import { IconButton as q } from "./ui/IconButton/IconButton.js";
22
+ import { Input as Q } from "./ui/Input/Input.js";
23
+ import { List as V } from "./ui/List/List.js";
24
+ import { MODAL_SIZE as X, Modal as Y } from "./ui/Modal/Modal.js";
25
+ import { useModal as oo } from "./ui/Modal/ModalContext.js";
26
+ import { ModalProvider as eo } from "./ui/Modal/ModalProvider.js";
27
+ import { MultipleChip as po } from "./ui/MultipleChip/MultipleChip.js";
28
+ import { NoData as xo } from "./ui/NoData/NoData.js";
29
+ import { Popover as ao } from "./ui/Popover/Popover.js";
30
+ import { Portal as lo } from "./ui/Portal/Portal.js";
31
+ import { ProgressBar as uo } from "./ui/ProgressBar/ProgressBar.js";
32
+ import { Select as no } from "./ui/Select/Select.js";
33
+ import { Skeleton as So } from "./ui/Skeleton/Skeleton.js";
34
+ import { Sticky as Po } from "./ui/Sticky/Sticky.js";
35
+ import { TablePagination as ho } from "./ui/table/components/pagination/TablePagination.js";
36
+ import { useSelected as Mo } from "./ui/table/hooks/useSelected.js";
37
+ import { Table as vo } from "./ui/table/Table.js";
38
+ import { SortOrder as Ao } from "./ui/table/Table.types.js";
39
+ import { Tabs as Lo } from "./ui/Tabs/Tabs.js";
40
+ import { Text as ko } from "./ui/Text/Text.js";
41
+ import { Textarea as Fo } from "./ui/Textarea/Textarea.js";
42
+ import { Tooltip as _o } from "./ui/Tooltip/Tooltip.js";
43
+ import { useTabs as zo } from "./ui/Tabs/context.js";
40
44
  export {
41
- t as Accordion,
42
- m as Alert,
43
- f as Autocomplete,
44
- i as Button,
45
- d as Card,
46
- u as Checkbox,
47
- n as Chip,
48
- D as CircularLoading,
49
- C as DateInput,
50
- P as DateText,
51
- g as Drawer,
52
- I as FeedList,
53
- E as Field,
54
- b as Flex,
55
- B as Grid,
56
- O as IconButton,
57
- _ as Input,
58
- z as List,
59
- H as MODAL_SIZE,
60
- K as Modal,
61
- R as ModalProvider,
62
- j as MultipleChip,
63
- J as NoData,
64
- U as Popover,
65
- W as Portal,
66
- Y as ProgressBar,
67
- oo as Provider,
68
- to as Select,
69
- mo as Skeleton,
70
- fo as Sticky,
71
- io as THEME_COOKIE,
72
- no as Tabs,
73
- Do as Text,
74
- Co as Textarea,
75
- Po as Tooltip,
76
- lo as defaultThemes,
77
- go as formatDate,
78
- so as getDefaultTheme,
79
- Io as getResponsiveSize,
80
- uo as getThemeStyle,
81
- Eo as useModal,
82
- ro as useProvider,
83
- bo as useTabs
45
+ n as Accordion,
46
+ S as Alert,
47
+ P as Autocomplete,
48
+ h as Button,
49
+ M as Card,
50
+ v as Checkbox,
51
+ A as Chip,
52
+ L as CircularLoading,
53
+ k as DateInput,
54
+ F as DateText,
55
+ _ as Drawer,
56
+ z as FeedList,
57
+ H as Field,
58
+ N as Flex,
59
+ Z as Grid,
60
+ q as IconButton,
61
+ Q as Input,
62
+ V as List,
63
+ X as MODAL_SIZE,
64
+ Y as Modal,
65
+ eo as ModalProvider,
66
+ po as MultipleChip,
67
+ xo as NoData,
68
+ ao as Popover,
69
+ lo as Portal,
70
+ uo as ProgressBar,
71
+ t as Provider,
72
+ no as Select,
73
+ So as Skeleton,
74
+ Ao as SortOrder,
75
+ Po as Sticky,
76
+ l as THEME_COOKIE,
77
+ vo as Table,
78
+ ho as TablePagination,
79
+ Lo as Tabs,
80
+ ko as Text,
81
+ Fo as Textarea,
82
+ _o as Tooltip,
83
+ d as defaultThemes,
84
+ x as formatDate,
85
+ s as getDefaultTheme,
86
+ a as getResponsiveSize,
87
+ u as getThemeStyle,
88
+ oo as useModal,
89
+ p as useProvider,
90
+ Mo as useSelected,
91
+ zo as useTabs
84
92
  };
@@ -1,5 +1,5 @@
1
- import { type ConfigType } from "dayjs";
2
- import "dayjs/locale/ru.js";
3
- import type { Locale } from "./locale.js";
1
+ import { type ConfigType } from 'dayjs';
2
+ import type { Locale } from './locale.js';
3
+ import 'dayjs/locale/ru.js';
4
4
  export declare const formatDate: (value: ConfigType, locale: Locale, format?: string) => string;
5
5
  //# sourceMappingURL=dates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dates.d.ts","sourceRoot":"","sources":["../../src/lib/dates.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAI1C,eAAO,MAAM,UAAU,GAAI,OAAO,UAAU,EAAE,QAAQ,MAAM,EAAE,eAAY,WAIzE,CAAC"}
1
+ {"version":3,"file":"dates.d.ts","sourceRoot":"","sources":["../../src/lib/dates.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,oBAAoB,CAAC;AAI5B,eAAO,MAAM,UAAU,GAAI,OAAO,UAAU,EAAE,QAAQ,MAAM,EAAE,eAAY,WAIzE,CAAC"}
@@ -1,6 +1,6 @@
1
- export type { Size } from "./sizes.js";
2
- export type { Locale } from "./locale.js";
3
- export { formatDate } from "./dates.js";
4
- export { defaultThemes, getDefaultTheme, getThemeStyle, THEME_COOKIE, type Theme, type ThemeColor, type ThemeConfig, type ThemeMap, } from "./themes.js";
5
- export { getResponsiveSize, type ResponsiveSize } from "./getResponsiveSize.js";
1
+ export { formatDate } from './dates.js';
2
+ export { getResponsiveSize, type ResponsiveSize } from './getResponsiveSize.js';
3
+ export type { Locale } from './locale.js';
4
+ export type { Size } from './sizes.js';
5
+ export { defaultThemes, getDefaultTheme, getThemeStyle, type Theme, THEME_COOKIE, type ThemeColor, type ThemeConfig, type ThemeMap, } from './themes.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EACL,aAAa,EACb,eAAe,EACf,aAAa,EACb,YAAY,EACZ,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,QAAQ,GACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAChF,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,YAAY,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EACL,aAAa,EACb,eAAe,EACf,aAAa,EACb,KAAK,KAAK,EACV,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,QAAQ,GACd,MAAM,aAAa,CAAC"}
@@ -1,4 +1,4 @@
1
- export type Locale = "en" | "ru";
1
+ export type Locale = 'en' | 'ru';
2
2
  export declare const messages: {
3
3
  en: {
4
4
  scrollToTop: string;
@@ -10,6 +10,12 @@ export declare const messages: {
10
10
  confirm: string;
11
11
  noData: string;
12
12
  search: string;
13
+ rowsPerPage: string;
14
+ paginationOf: string;
15
+ previousPage: string;
16
+ nextPage: string;
17
+ selectAllRows: string;
18
+ selectRow: string;
13
19
  };
14
20
  ru: {
15
21
  scrollToTop: string;
@@ -21,6 +27,12 @@ export declare const messages: {
21
27
  confirm: string;
22
28
  noData: string;
23
29
  search: string;
30
+ rowsPerPage: string;
31
+ paginationOf: string;
32
+ previousPage: string;
33
+ nextPage: string;
34
+ selectAllRows: string;
35
+ selectRow: string;
24
36
  };
25
37
  };
26
38
  //# sourceMappingURL=locale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/lib/locale.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;CAuB6B,CAAC"}
1
+ {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/lib/locale.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmC6B,CAAC"}
@@ -8,7 +8,13 @@ const e = {
8
8
  cancel: "Cancel",
9
9
  confirm: "Confirm",
10
10
  noData: "No data yet",
11
- search: "Search..."
11
+ search: "Search...",
12
+ rowsPerPage: "Rows per page:",
13
+ paginationOf: "of",
14
+ previousPage: "Previous page",
15
+ nextPage: "Next page",
16
+ selectAllRows: "Select all rows on this page",
17
+ selectRow: "Select row"
12
18
  },
13
19
  ru: {
14
20
  scrollToTop: "Наверх",
@@ -19,7 +25,13 @@ const e = {
19
25
  cancel: "Отменить",
20
26
  confirm: "Подтвердить",
21
27
  noData: "Данных пока нет",
22
- search: "Поиск..."
28
+ search: "Поиск...",
29
+ rowsPerPage: "Строк в таблице:",
30
+ paginationOf: "из",
31
+ previousPage: "Предыдущая страница",
32
+ nextPage: "Следующая страница",
33
+ selectAllRows: "Выбрать все строки на странице",
34
+ selectRow: "Выбрать строку"
23
35
  }
24
36
  };
25
37
  export {
@@ -1,2 +1,2 @@
1
- export type Size = "xs" | "sm" | "md" | "lg" | "xl";
1
+ export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2
2
  //# sourceMappingURL=sizes.d.ts.map
@@ -1,41 +1,41 @@
1
- import type { CSSProperties } from "react";
2
- export type ThemeColor = `${"primary" | "error" | "info" | "success" | "warning" | "gray"}-${1 | 2 | 3}` | "primary-hover" | "primary-solid" | "primary-solid-hover" | "primary-text-inverted" | "background-primary" | "background-secondary" | "text-primary" | "disabled-background" | "disabled-border" | "disabled-text";
1
+ import type { CSSProperties } from 'react';
2
+ export type ThemeColor = `${'primary' | 'error' | 'info' | 'success' | 'warning' | 'gray'}-${1 | 2 | 3}` | 'primary-hover' | 'primary-solid' | 'primary-solid-hover' | 'primary-text-inverted' | 'background-primary' | 'background-secondary' | 'text-primary' | 'disabled-background' | 'disabled-border' | 'disabled-text';
3
3
  export type ThemeConfig = Partial<Record<ThemeColor, string>> & {
4
- colorScheme?: "light" | "dark";
4
+ colorScheme?: 'light' | 'dark';
5
5
  };
6
6
  export type ThemeMap = Record<string, ThemeConfig>;
7
7
  export declare const defaultThemes: {
8
8
  light: {};
9
9
  dark: {
10
10
  colorScheme: "dark";
11
- "background-primary": string;
12
- "background-secondary": string;
13
- "text-primary": string;
14
- "disabled-background": string;
15
- "disabled-border": string;
16
- "disabled-text": string;
17
- "gray-1": string;
18
- "gray-2": string;
19
- "gray-3": string;
20
- "primary-1": string;
21
- "primary-2": string;
22
- "primary-3": string;
23
- "primary-hover": string;
24
- "primary-solid": string;
25
- "primary-solid-hover": string;
26
- "primary-text-inverted": string;
27
- "error-1": string;
28
- "error-2": string;
29
- "error-3": string;
30
- "info-1": string;
31
- "info-2": string;
32
- "info-3": string;
33
- "success-1": string;
34
- "success-2": string;
35
- "success-3": string;
36
- "warning-1": string;
37
- "warning-2": string;
38
- "warning-3": string;
11
+ 'background-primary': string;
12
+ 'background-secondary': string;
13
+ 'text-primary': string;
14
+ 'disabled-background': string;
15
+ 'disabled-border': string;
16
+ 'disabled-text': string;
17
+ 'gray-1': string;
18
+ 'gray-2': string;
19
+ 'gray-3': string;
20
+ 'primary-1': string;
21
+ 'primary-2': string;
22
+ 'primary-3': string;
23
+ 'primary-hover': string;
24
+ 'primary-solid': string;
25
+ 'primary-solid-hover': string;
26
+ 'primary-text-inverted': string;
27
+ 'error-1': string;
28
+ 'error-2': string;
29
+ 'error-3': string;
30
+ 'info-1': string;
31
+ 'info-2': string;
32
+ 'info-3': string;
33
+ 'success-1': string;
34
+ 'success-2': string;
35
+ 'success-3': string;
36
+ 'warning-1': string;
37
+ 'warning-2': string;
38
+ 'warning-3': string;
39
39
  };
40
40
  };
41
41
  export declare const THEME_COOKIE = "theme";
@@ -1 +1 @@
1
- {"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/lib/themes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,MAAM,MAAM,UAAU,GAClB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAC/E,eAAe,GACf,eAAe,GACf,qBAAqB,GACrB,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,GACd,qBAAqB,GACrB,iBAAiB,GACjB,eAAe,CAAC;AAEpB,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,GAAG;IAC9D,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAEnD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCN,CAAC;AAErB,eAAO,MAAM,YAAY,UAAU,CAAC;AACpC,MAAM,MAAM,KAAK,GAAG,MAAM,OAAO,aAAa,CAAC;AAE/C,eAAO,MAAM,eAAe,GAC1B,eAAe,MAAM,EACrB,SAAQ,QAAwB,KAC/B,MAGF,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,EACb,SAAS,QAAQ,KAChB,aAaF,CAAC"}
1
+ {"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/lib/themes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,UAAU,GAChB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAC/E,eAAe,GACf,eAAe,GACf,qBAAqB,GACrB,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,GACd,qBAAqB,GACrB,iBAAiB,GACjB,eAAe,CAAC;AAEtB,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,GAAG;IAC9D,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAEnD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCN,CAAC;AAErB,eAAO,MAAM,YAAY,UAAU,CAAC;AACpC,MAAM,MAAM,KAAK,GAAG,MAAM,OAAO,aAAa,CAAC;AAE/C,eAAO,MAAM,eAAe,GAC1B,eAAe,MAAM,EACrB,SAAQ,QAAwB,KAC/B,MAGF,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,EACb,SAAS,QAAQ,KAChB,aAaF,CAAC"}