@divayth/brick-ui 0.6.1 → 0.8.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 (73) hide show
  1. package/dist/app/ModalProvider.d.ts.map +1 -0
  2. package/dist/{ui/Modal → app}/ModalProvider.js +1 -1
  3. package/dist/app/Provider.d.ts +9 -8
  4. package/dist/app/Provider.d.ts.map +1 -1
  5. package/dist/app/Provider.js +16 -57
  6. package/dist/app/ThemeProvider.d.ts +14 -0
  7. package/dist/app/ThemeProvider.d.ts.map +1 -0
  8. package/dist/app/ThemeProvider.js +43 -0
  9. package/dist/app/index.d.ts +1 -1
  10. package/dist/app/index.d.ts.map +1 -1
  11. package/dist/index.js +60 -56
  12. package/dist/lib/locale.d.ts +2 -0
  13. package/dist/lib/locale.d.ts.map +1 -1
  14. package/dist/lib/locale.js +2 -0
  15. package/dist/styles.css +1 -1
  16. package/dist/ui/Date/DateInput.d.ts +1 -1
  17. package/dist/ui/Date/DateInput.d.ts.map +1 -1
  18. package/dist/ui/Date/DateInput.js +14 -14
  19. package/dist/ui/DropdownMenu/DropdownMenu.d.ts +17 -0
  20. package/dist/ui/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  21. package/dist/ui/DropdownMenu/DropdownMenu.js +34 -0
  22. package/dist/ui/DropdownMenu/DropdownMenu.module.css.js +11 -0
  23. package/dist/ui/DropdownMenu/index.d.ts +2 -0
  24. package/dist/ui/DropdownMenu/index.d.ts.map +1 -0
  25. package/dist/ui/Field/Field.d.ts +1 -1
  26. package/dist/ui/Field/Field.d.ts.map +1 -1
  27. package/dist/ui/Flex/Flex.d.ts +3 -3
  28. package/dist/ui/Flex/Flex.d.ts.map +1 -1
  29. package/dist/ui/Flex/Flex.js +12 -14
  30. package/dist/ui/Flex/constants.d.ts +1 -1
  31. package/dist/ui/Flex/constants.d.ts.map +1 -1
  32. package/dist/ui/Flex/index.d.ts +2 -0
  33. package/dist/ui/Flex/index.d.ts.map +1 -0
  34. package/dist/ui/Grid/Grid.types.d.ts +2 -2
  35. package/dist/ui/Grid/Grid.types.d.ts.map +1 -1
  36. package/dist/ui/IconButton/IconButton.d.ts +2 -1
  37. package/dist/ui/IconButton/IconButton.d.ts.map +1 -1
  38. package/dist/ui/IconButton/IconButton.js +61 -56
  39. package/dist/ui/IconButton/IconButton.module.css.js +24 -24
  40. package/dist/ui/IconButton/index.d.ts +2 -0
  41. package/dist/ui/IconButton/index.d.ts.map +1 -0
  42. package/dist/ui/Input/Input.d.ts +1 -1
  43. package/dist/ui/Input/Input.d.ts.map +1 -1
  44. package/dist/ui/Input/Input.js +31 -27
  45. package/dist/ui/Input/index.d.ts +2 -0
  46. package/dist/ui/Input/index.d.ts.map +1 -0
  47. package/dist/ui/Modal/Modal.d.ts +9 -6
  48. package/dist/ui/Modal/Modal.d.ts.map +1 -1
  49. package/dist/ui/Modal/Modal.js +85 -101
  50. package/dist/ui/Modal/Modal.module.css.js +17 -17
  51. package/dist/ui/Modal/ModalContext.js +2 -2
  52. package/dist/ui/Modal/index.d.ts +4 -0
  53. package/dist/ui/Modal/index.d.ts.map +1 -0
  54. package/dist/ui/MultipleChip/MultipleChip.d.ts +1 -1
  55. package/dist/ui/MultipleChip/MultipleChip.d.ts.map +1 -1
  56. package/dist/ui/NoData/NoData.d.ts +1 -1
  57. package/dist/ui/NoData/NoData.d.ts.map +1 -1
  58. package/dist/ui/Select/Select.types.d.ts +1 -1
  59. package/dist/ui/Select/Select.types.d.ts.map +1 -1
  60. package/dist/ui/Select/SelectOptions.js +1 -1
  61. package/dist/ui/Sticky/Sticky.d.ts +1 -1
  62. package/dist/ui/Sticky/Sticky.d.ts.map +1 -1
  63. package/dist/ui/Tabs/TabsList.d.ts +1 -1
  64. package/dist/ui/Tabs/TabsList.d.ts.map +1 -1
  65. package/dist/ui/Textarea/Textarea.d.ts +1 -1
  66. package/dist/ui/Textarea/Textarea.d.ts.map +1 -1
  67. package/dist/ui/Tooltip/Tooltip.js +15 -15
  68. package/dist/ui/index.d.ts +5 -6
  69. package/dist/ui/index.d.ts.map +1 -1
  70. package/package.json +1 -1
  71. package/dist/ui/Modal/ModalProvider.d.ts.map +0 -1
  72. /package/dist/{ui/Modal → app}/ModalProvider.d.ts +0 -0
  73. /package/dist/app/{Provider.module.css.js → ThemeProvider.module.css.js} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalProvider.d.ts","sourceRoot":"","sources":["../../src/app/ModalProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AAIlG,eAAO,MAAM,aAAa,GAAI,cAAc,iBAAiB,gCAwB5D,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs as d } from "react/jsx-runtime";
3
3
  import { useState as m, useCallback as s, useMemo as i } from "react";
4
- import { ModalContext as u } from "./ModalContext.js";
4
+ import { ModalContext as u } from "../ui/Modal/ModalContext.js";
5
5
  const v = ({ children: n }) => {
6
6
  const [o, e] = m(null), t = !!o, l = s((c) => {
7
7
  e(c);
@@ -1,14 +1,12 @@
1
- import { type PropsWithChildren } from 'react';
2
1
  import { type Locale } from '../lib/locale.js';
3
- import { type ThemeMap } from '../lib/themes.js';
4
- export interface ProviderProps extends PropsWithChildren {
2
+ import { type ThemeProviderProps } from './ThemeProvider.js';
3
+ export interface ProviderProps extends ThemeProviderProps {
5
4
  locale?: Locale;
6
- defaultTheme?: string;
7
- themes?: ThemeMap;
8
5
  }
9
- export declare const Provider: ({ locale, defaultTheme, themes, children, }: ProviderProps) => import("react").JSX.Element;
6
+ export declare const Provider: ({ locale, defaultTheme, themes, children }: ProviderProps) => import("react").JSX.Element;
10
7
  export declare const useProvider: () => {
11
8
  messages: {
9
+ menu: string;
12
10
  scrollToTop: string;
13
11
  close: string;
14
12
  drawerTitle: string;
@@ -25,6 +23,7 @@ export declare const useProvider: () => {
25
23
  selectAllRows: string;
26
24
  selectRow: string;
27
25
  } | {
26
+ menu: string;
28
27
  scrollToTop: string;
29
28
  close: string;
30
29
  drawerTitle: string;
@@ -41,9 +40,11 @@ export declare const useProvider: () => {
41
40
  selectAllRows: string;
42
41
  selectRow: string;
43
42
  };
44
- locale: Locale;
45
43
  theme: string;
44
+ onChangeTheme: (theme: string) => void;
45
+ locale: Locale;
46
46
  isMobile: boolean;
47
- onChangeTheme: (_theme: string) => void;
48
47
  };
48
+ export { ModalProvider } from './ModalProvider.js';
49
+ export { ThemeProvider, type ThemeProviderProps } from './ThemeProvider.js';
49
50
  //# sourceMappingURL=Provider.d.ts.map
@@ -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,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
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../src/app/Provider.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAY,MAAM,gBAAgB,CAAC;AAIvD,OAAO,EAAiB,KAAK,kBAAkB,EAAY,MAAM,oBAAoB,CAAC;AAStF,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,QAAQ,GAAI,4CAAmD,aAAa,gCAWxF,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAvBd,MAAM;cACJ,OAAO;CA0BlB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,61 +1,20 @@
1
1
  "use client";
2
- import { jsx as b } from "react/jsx-runtime";
3
- import { useContext as x, createContext as E, useState as F, useMemo as u, useCallback as P, useLayoutEffect as S } from "react";
4
- import M from "js-cookie";
5
- import { messages as T } from "../lib/locale.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
- import n from "./Provider.module.css.js";
9
- const h = E({
10
- locale: "en",
11
- theme: "light",
12
- isMobile: !1,
13
- onChangeTheme: (t) => {
14
- }
15
- }), z = ({
16
- locale: t = "en",
17
- defaultTheme: f,
18
- themes: r = O,
19
- children: g
20
- }) => {
21
- const c = k(), [o, p] = F(
22
- () => A(f, r)
23
- ), m = u(() => L(o, r), [o, r]), a = P(
24
- (e) => {
25
- r?.[e] && (p(e), M.set(j, e, {
26
- expires: 365,
27
- path: "/",
28
- sameSite: "lax",
29
- secure: location.protocol === "https:"
30
- }));
31
- },
32
- [r]
33
- ), d = u(
34
- () => ({ locale: t, theme: o, onChangeTheme: a, isMobile: c }),
35
- [t, o, a, c]
36
- );
37
- return S(() => {
38
- const e = document.documentElement;
39
- e.dataset.theme = o, e.classList.add(n.changing);
40
- const { colorScheme: y = "light", ...i } = m;
41
- e.style.colorScheme = y;
42
- for (const [s, C] of Object.entries(i))
43
- e.style.setProperty(s, String(C));
44
- let l = 0;
45
- const v = requestAnimationFrame(() => {
46
- l = requestAnimationFrame(
47
- () => e.classList.remove(n.changing)
48
- );
49
- });
50
- return () => {
51
- cancelAnimationFrame(v), cancelAnimationFrame(l), e.classList.remove(n.changing), delete e.dataset.theme, e.style.removeProperty("color-scheme"), Object.keys(i).forEach((s) => e.style.removeProperty(s));
52
- };
53
- }, [o, m]), /* @__PURE__ */ b(h.Provider, { value: d, children: g });
54
- }, B = () => {
55
- const t = x(h);
56
- return { ...t, messages: T[t.locale] };
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import { useContext as c, createContext as l, useMemo as d } from "react";
4
+ import { messages as u } from "../lib/locale.js";
5
+ import { useMobile as a } from "../lib/useMobile.js";
6
+ import { ModalProvider as f } from "./ModalProvider.js";
7
+ import { useTheme as p, ThemeProvider as v } from "./ThemeProvider.js";
8
+ const s = l({ locale: "en", isMobile: !1 }), g = ({ locale: e = "en", defaultTheme: o, themes: i, children: m }) => {
9
+ const t = a(), n = d(() => ({ locale: e, isMobile: t }), [e, t]);
10
+ return /* @__PURE__ */ r(s.Provider, { value: n, children: /* @__PURE__ */ r(v, { defaultTheme: o, themes: i, children: /* @__PURE__ */ r(f, { children: m }) }) });
11
+ }, T = () => {
12
+ const e = c(s), o = p();
13
+ return { ...e, ...o, messages: u[e.locale] };
57
14
  };
58
15
  export {
59
- z as Provider,
60
- B as useProvider
16
+ f as ModalProvider,
17
+ g as Provider,
18
+ v as ThemeProvider,
19
+ T as useProvider
61
20
  };
@@ -0,0 +1,14 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ import { type ThemeMap } from '../lib/themes.js';
3
+ interface ThemeContextValue {
4
+ theme: string;
5
+ onChangeTheme: (theme: string) => void;
6
+ }
7
+ export interface ThemeProviderProps extends PropsWithChildren {
8
+ defaultTheme?: string;
9
+ themes?: ThemeMap;
10
+ }
11
+ export declare const ThemeProvider: ({ defaultTheme, themes, children }: ThemeProviderProps) => import("react").JSX.Element;
12
+ export declare const useTheme: () => ThemeContextValue;
13
+ export {};
14
+ //# sourceMappingURL=ThemeProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/app/ThemeProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,iBAAiB,EAA+D,MAAM,OAAO,CAAC;AAI3H,OAAO,EAA+D,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI5G,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAID,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,GAAI,oCAAoD,kBAAkB,gCAoDnG,CAAC;AAEF,eAAO,MAAM,QAAQ,yBAA4B,CAAC"}
@@ -0,0 +1,43 @@
1
+ "use client";
2
+ import { jsx as C } from "react/jsx-runtime";
3
+ import { useContext as v, createContext as T, useState as E, useMemo as i, useCallback as F, useLayoutEffect as O } from "react";
4
+ import S from "js-cookie";
5
+ import { getDefaultTheme as x, getThemeStyle as P, defaultThemes as b, THEME_COOKIE as j } from "../lib/themes.js";
6
+ import s from "./ThemeProvider.module.css.js";
7
+ const l = T({ theme: "light", onChangeTheme: () => {
8
+ } }), w = ({ defaultTheme: h, themes: o = b, children: u }) => {
9
+ const [t, f] = E(
10
+ () => x(h, o)
11
+ ), n = i(() => P(t, o), [t, o]), c = F(
12
+ (e) => {
13
+ Object.hasOwn(o, e) && (f(e), S.set(j, e, {
14
+ expires: 365,
15
+ path: "/",
16
+ sameSite: "lax",
17
+ secure: location.protocol === "https:"
18
+ }));
19
+ },
20
+ [o]
21
+ ), g = i(() => ({ theme: t, onChangeTheme: c }), [t, c]);
22
+ return O(() => {
23
+ const e = document.documentElement;
24
+ e.dataset.theme = t, e.classList.add(s.changing);
25
+ const { colorScheme: p = "light", ...a } = n;
26
+ e.style.colorScheme = p;
27
+ for (const [r, y] of Object.entries(a))
28
+ e.style.setProperty(r, String(y));
29
+ let m = 0;
30
+ const d = requestAnimationFrame(() => {
31
+ m = requestAnimationFrame(
32
+ () => e.classList.remove(s.changing)
33
+ );
34
+ });
35
+ return () => {
36
+ cancelAnimationFrame(d), cancelAnimationFrame(m), e.classList.remove(s.changing), delete e.dataset.theme, e.style.removeProperty("color-scheme"), Object.keys(a).forEach((r) => e.style.removeProperty(r));
37
+ };
38
+ }, [t, n]), /* @__PURE__ */ C(l.Provider, { value: g, children: u });
39
+ }, D = () => v(l);
40
+ export {
41
+ w as ThemeProvider,
42
+ D as useTheme
43
+ };
@@ -1,2 +1,2 @@
1
- export { Provider, type ProviderProps, useProvider } from './Provider.js';
1
+ export { ModalProvider, Provider, type ProviderProps, ThemeProvider, type ThemeProviderProps, 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,KAAK,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
package/dist/index.js CHANGED
@@ -2,91 +2,95 @@
2
2
  import { Provider as t, useProvider as p } from "./app/Provider.js";
3
3
  import { formatDate as x } from "./lib/dates.js";
4
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";
5
+ import { THEME_COOKIE as l, defaultThemes as d, getDefaultTheme as u, getThemeStyle as n } from "./lib/themes.js";
6
+ import { Accordion as T } from "./ui/Accordion/Accordion.js";
7
+ import { Alert as D } from "./ui/Alert/Alert.js";
8
+ import { Autocomplete as S } from "./ui/Autocomplete/Autocomplete.js";
9
+ import { Button as M } from "./ui/Button/Button.js";
10
+ import { Card as v } from "./ui/Card/Card.js";
11
+ import { Checkbox as b } from "./ui/Checkbox/Checkbox.js";
12
12
  import { Chip as A } from "./ui/Chip/Chip.js";
13
13
  import { CircularLoading as L } from "./ui/CircularLoading/CircularLoading.js";
14
14
  import { DateInput as k } from "./ui/Date/DateInput.js";
15
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";
16
+ import { Drawer as y } from "./ui/Drawer/Drawer.js";
17
+ import { DropdownMenu as z } from "./ui/DropdownMenu/DropdownMenu.js";
18
+ import { FeedList as H } from "./ui/FeedList/FeedList.js";
19
+ import { Field as N } from "./ui/Field/Field.js";
20
+ import { Flex as Z } from "./ui/Flex/Flex.js";
21
+ import { Grid as q } from "./ui/Grid/Grid.js";
22
+ import { IconButton as Q } from "./ui/IconButton/IconButton.js";
23
+ import { Input as V } from "./ui/Input/Input.js";
24
+ import { List as X } from "./ui/List/List.js";
25
+ import { MODAL_SIZE as $, Modal as oo } from "./ui/Modal/Modal.js";
26
+ import { useModal as eo } from "./ui/Modal/ModalContext.js";
27
27
  import { MultipleChip as po } from "./ui/MultipleChip/MultipleChip.js";
28
28
  import { NoData as xo } from "./ui/NoData/NoData.js";
29
29
  import { Popover as ao } from "./ui/Popover/Popover.js";
30
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";
31
+ import { ProgressBar as no } from "./ui/ProgressBar/ProgressBar.js";
32
+ import { Select as To } from "./ui/Select/Select.js";
33
+ import { Skeleton as Do } from "./ui/Skeleton/Skeleton.js";
34
+ import { Sticky as So } from "./ui/Sticky/Sticky.js";
35
+ import { TablePagination as Mo } from "./ui/Table/components/pagination/TablePagination.js";
36
+ import { useSelected as vo } from "./ui/Table/hooks/useSelected.js";
37
+ import { Table as bo } from "./ui/Table/Table.js";
38
38
  import { SortOrder as Ao } from "./ui/Table/Table.types.js";
39
39
  import { Tabs as Lo } from "./ui/Tabs/Tabs.js";
40
40
  import { Text as ko } from "./ui/Text/Text.js";
41
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";
42
+ import { Tooltip as yo } from "./ui/Tooltip/Tooltip.js";
43
+ import { ModalProvider as zo } from "./app/ModalProvider.js";
44
+ import { ThemeProvider as Ho } from "./app/ThemeProvider.js";
45
+ import { useTabs as No } from "./ui/Tabs/context.js";
44
46
  export {
45
- n as Accordion,
46
- S as Alert,
47
- P as Autocomplete,
48
- h as Button,
49
- M as Card,
50
- v as Checkbox,
47
+ T as Accordion,
48
+ D as Alert,
49
+ S as Autocomplete,
50
+ M as Button,
51
+ v as Card,
52
+ b as Checkbox,
51
53
  A as Chip,
52
54
  L as CircularLoading,
53
55
  k as DateInput,
54
56
  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,
57
+ y as Drawer,
58
+ z as DropdownMenu,
59
+ H as FeedList,
60
+ N as Field,
61
+ Z as Flex,
62
+ q as Grid,
63
+ Q as IconButton,
64
+ V as Input,
65
+ X as List,
66
+ $ as MODAL_SIZE,
67
+ oo as Modal,
68
+ zo as ModalProvider,
66
69
  po as MultipleChip,
67
70
  xo as NoData,
68
71
  ao as Popover,
69
72
  lo as Portal,
70
- uo as ProgressBar,
73
+ no as ProgressBar,
71
74
  t as Provider,
72
- no as Select,
73
- So as Skeleton,
75
+ To as Select,
76
+ Do as Skeleton,
74
77
  Ao as SortOrder,
75
- Po as Sticky,
78
+ So as Sticky,
76
79
  l as THEME_COOKIE,
77
- vo as Table,
78
- ho as TablePagination,
80
+ bo as Table,
81
+ Mo as TablePagination,
79
82
  Lo as Tabs,
80
83
  ko as Text,
81
84
  Fo as Textarea,
82
- _o as Tooltip,
85
+ Ho as ThemeProvider,
86
+ yo as Tooltip,
83
87
  d as defaultThemes,
84
88
  x as formatDate,
85
- s as getDefaultTheme,
89
+ u as getDefaultTheme,
86
90
  a as getResponsiveSize,
87
- u as getThemeStyle,
88
- oo as useModal,
91
+ n as getThemeStyle,
92
+ eo as useModal,
89
93
  p as useProvider,
90
- Mo as useSelected,
91
- zo as useTabs
94
+ vo as useSelected,
95
+ No as useTabs
92
96
  };
@@ -1,6 +1,7 @@
1
1
  export type Locale = 'en' | 'ru';
2
2
  export declare const messages: {
3
3
  en: {
4
+ menu: string;
4
5
  scrollToTop: string;
5
6
  close: string;
6
7
  drawerTitle: string;
@@ -18,6 +19,7 @@ export declare const messages: {
18
19
  selectRow: string;
19
20
  };
20
21
  ru: {
22
+ menu: string;
21
23
  scrollToTop: string;
22
24
  close: string;
23
25
  drawerTitle: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmC6B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC6B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  const e = {
2
2
  en: {
3
+ menu: "Open menu",
3
4
  scrollToTop: "Scroll to top",
4
5
  close: "Close",
5
6
  drawerTitle: "Panel",
@@ -17,6 +18,7 @@ const e = {
17
18
  selectRow: "Select row"
18
19
  },
19
20
  ru: {
21
+ menu: "Открыть меню",
20
22
  scrollToTop: "Наверх",
21
23
  close: "Закрыть",
22
24
  drawerTitle: "Панель",