@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.
- package/dist/app/ModalProvider.d.ts.map +1 -0
- package/dist/{ui/Modal → app}/ModalProvider.js +1 -1
- package/dist/app/Provider.d.ts +9 -8
- package/dist/app/Provider.d.ts.map +1 -1
- package/dist/app/Provider.js +16 -57
- package/dist/app/ThemeProvider.d.ts +14 -0
- package/dist/app/ThemeProvider.d.ts.map +1 -0
- package/dist/app/ThemeProvider.js +43 -0
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.d.ts.map +1 -1
- package/dist/index.js +60 -56
- package/dist/lib/locale.d.ts +2 -0
- package/dist/lib/locale.d.ts.map +1 -1
- package/dist/lib/locale.js +2 -0
- package/dist/styles.css +1 -1
- package/dist/ui/Date/DateInput.d.ts +1 -1
- package/dist/ui/Date/DateInput.d.ts.map +1 -1
- package/dist/ui/Date/DateInput.js +14 -14
- package/dist/ui/DropdownMenu/DropdownMenu.d.ts +17 -0
- package/dist/ui/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/ui/DropdownMenu/DropdownMenu.js +34 -0
- package/dist/ui/DropdownMenu/DropdownMenu.module.css.js +11 -0
- package/dist/ui/DropdownMenu/index.d.ts +2 -0
- package/dist/ui/DropdownMenu/index.d.ts.map +1 -0
- package/dist/ui/Field/Field.d.ts +1 -1
- package/dist/ui/Field/Field.d.ts.map +1 -1
- package/dist/ui/Flex/Flex.d.ts +3 -3
- package/dist/ui/Flex/Flex.d.ts.map +1 -1
- package/dist/ui/Flex/Flex.js +12 -14
- package/dist/ui/Flex/constants.d.ts +1 -1
- package/dist/ui/Flex/constants.d.ts.map +1 -1
- package/dist/ui/Flex/index.d.ts +2 -0
- package/dist/ui/Flex/index.d.ts.map +1 -0
- package/dist/ui/Grid/Grid.types.d.ts +2 -2
- package/dist/ui/Grid/Grid.types.d.ts.map +1 -1
- package/dist/ui/IconButton/IconButton.d.ts +2 -1
- package/dist/ui/IconButton/IconButton.d.ts.map +1 -1
- package/dist/ui/IconButton/IconButton.js +61 -56
- package/dist/ui/IconButton/IconButton.module.css.js +24 -24
- package/dist/ui/IconButton/index.d.ts +2 -0
- package/dist/ui/IconButton/index.d.ts.map +1 -0
- package/dist/ui/Input/Input.d.ts +1 -1
- package/dist/ui/Input/Input.d.ts.map +1 -1
- package/dist/ui/Input/Input.js +31 -27
- package/dist/ui/Input/index.d.ts +2 -0
- package/dist/ui/Input/index.d.ts.map +1 -0
- package/dist/ui/Modal/Modal.d.ts +9 -6
- package/dist/ui/Modal/Modal.d.ts.map +1 -1
- package/dist/ui/Modal/Modal.js +85 -101
- package/dist/ui/Modal/Modal.module.css.js +17 -17
- package/dist/ui/Modal/ModalContext.js +2 -2
- package/dist/ui/Modal/index.d.ts +4 -0
- package/dist/ui/Modal/index.d.ts.map +1 -0
- package/dist/ui/MultipleChip/MultipleChip.d.ts +1 -1
- package/dist/ui/MultipleChip/MultipleChip.d.ts.map +1 -1
- package/dist/ui/NoData/NoData.d.ts +1 -1
- package/dist/ui/NoData/NoData.d.ts.map +1 -1
- package/dist/ui/Select/Select.types.d.ts +1 -1
- package/dist/ui/Select/Select.types.d.ts.map +1 -1
- package/dist/ui/Select/SelectOptions.js +1 -1
- package/dist/ui/Sticky/Sticky.d.ts +1 -1
- package/dist/ui/Sticky/Sticky.d.ts.map +1 -1
- package/dist/ui/Tabs/TabsList.d.ts +1 -1
- package/dist/ui/Tabs/TabsList.d.ts.map +1 -1
- package/dist/ui/Textarea/Textarea.d.ts +1 -1
- package/dist/ui/Textarea/Textarea.d.ts.map +1 -1
- package/dist/ui/Tooltip/Tooltip.js +15 -15
- package/dist/ui/index.d.ts +5 -6
- package/dist/ui/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/ui/Modal/ModalProvider.d.ts.map +0 -1
- /package/dist/{ui/Modal → app}/ModalProvider.d.ts +0 -0
- /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 "
|
|
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);
|
package/dist/app/Provider.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
2
1
|
import { type Locale } from '../lib/locale.js';
|
|
3
|
-
import { type
|
|
4
|
-
export interface ProviderProps extends
|
|
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
|
|
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":"
|
|
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"}
|
package/dist/app/Provider.js
CHANGED
|
@@ -1,61 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
60
|
-
|
|
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
|
+
};
|
package/dist/app/index.d.ts
CHANGED
|
@@ -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
|
package/dist/app/index.d.ts.map
CHANGED
|
@@ -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
|
|
6
|
-
import { Accordion as
|
|
7
|
-
import { Alert as
|
|
8
|
-
import { Autocomplete as
|
|
9
|
-
import { Button as
|
|
10
|
-
import { Card as
|
|
11
|
-
import { Checkbox as
|
|
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
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
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
|
|
32
|
-
import { Select as
|
|
33
|
-
import { Skeleton as
|
|
34
|
-
import { Sticky as
|
|
35
|
-
import { TablePagination as
|
|
36
|
-
import { useSelected as
|
|
37
|
-
import { Table as
|
|
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
|
|
43
|
-
import {
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
56
|
-
z as
|
|
57
|
-
H as
|
|
58
|
-
N as
|
|
59
|
-
Z as
|
|
60
|
-
q as
|
|
61
|
-
Q as
|
|
62
|
-
V as
|
|
63
|
-
X as
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
73
|
+
no as ProgressBar,
|
|
71
74
|
t as Provider,
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
To as Select,
|
|
76
|
+
Do as Skeleton,
|
|
74
77
|
Ao as SortOrder,
|
|
75
|
-
|
|
78
|
+
So as Sticky,
|
|
76
79
|
l as THEME_COOKIE,
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
bo as Table,
|
|
81
|
+
Mo as TablePagination,
|
|
79
82
|
Lo as Tabs,
|
|
80
83
|
ko as Text,
|
|
81
84
|
Fo as Textarea,
|
|
82
|
-
|
|
85
|
+
Ho as ThemeProvider,
|
|
86
|
+
yo as Tooltip,
|
|
83
87
|
d as defaultThemes,
|
|
84
88
|
x as formatDate,
|
|
85
|
-
|
|
89
|
+
u as getDefaultTheme,
|
|
86
90
|
a as getResponsiveSize,
|
|
87
|
-
|
|
88
|
-
|
|
91
|
+
n as getThemeStyle,
|
|
92
|
+
eo as useModal,
|
|
89
93
|
p as useProvider,
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
vo as useSelected,
|
|
95
|
+
No as useTabs
|
|
92
96
|
};
|
package/dist/lib/locale.d.ts
CHANGED
|
@@ -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;
|
package/dist/lib/locale.d.ts.map
CHANGED
|
@@ -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
|
|
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"}
|
package/dist/lib/locale.js
CHANGED
|
@@ -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: "Панель",
|