@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.
- package/README.md +2 -0
- package/dist/app/Provider.d.ts +15 -3
- package/dist/app/Provider.d.ts.map +1 -1
- package/dist/app/Provider.js +11 -11
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.d.ts.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +89 -81
- package/dist/lib/dates.d.ts +3 -3
- package/dist/lib/dates.d.ts.map +1 -1
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/locale.d.ts +13 -1
- package/dist/lib/locale.d.ts.map +1 -1
- package/dist/lib/locale.js +14 -2
- package/dist/lib/sizes.d.ts +1 -1
- package/dist/lib/themes.d.ts +31 -31
- package/dist/lib/themes.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/ui/Accordion/Accordion.d.ts +2 -2
- package/dist/ui/Accordion/Accordion.d.ts.map +1 -1
- package/dist/ui/Alert/Alert.d.ts +2 -2
- package/dist/ui/Alert/Alert.d.ts.map +1 -1
- package/dist/ui/Autocomplete/Autocomplete.d.ts +3 -3
- package/dist/ui/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/ui/Button/Button.d.ts +8 -8
- package/dist/ui/Button/Button.d.ts.map +1 -1
- package/dist/ui/Card/Card.d.ts.map +1 -1
- package/dist/ui/Checkbox/Checkbox.d.ts +2 -2
- package/dist/ui/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/ui/Chip/Chip.d.ts +5 -5
- package/dist/ui/Chip/Chip.d.ts.map +1 -1
- package/dist/ui/CircularLoading/CircularLoading.d.ts.map +1 -1
- package/dist/ui/Date/DateInput.d.ts +6 -6
- package/dist/ui/Date/DateInput.d.ts.map +1 -1
- package/dist/ui/Date/DateInput.js +15 -15
- package/dist/ui/DateText/DateText.d.ts +2 -2
- package/dist/ui/DateText/DateText.d.ts.map +1 -1
- package/dist/ui/DateText/DateText.js +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +3 -3
- package/dist/ui/FeedList/FeedList.d.ts +3 -3
- package/dist/ui/FeedList/FeedList.d.ts.map +1 -1
- package/dist/ui/Field/Field.d.ts +10 -10
- 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/constants.d.ts +1 -1
- package/dist/ui/Flex/constants.d.ts.map +1 -1
- package/dist/ui/Grid/Grid.d.ts +1 -1
- package/dist/ui/Grid/Grid.types.d.ts +9 -9
- package/dist/ui/Grid/Grid.types.d.ts.map +1 -1
- package/dist/ui/Grid/GridItem.d.ts +1 -1
- package/dist/ui/Grid/GridItem.d.ts.map +1 -1
- package/dist/ui/Grid/GridRoot.d.ts +1 -1
- package/dist/ui/Grid/GridRoot.js +1 -1
- package/dist/ui/Grid/utils.d.ts +2 -2
- package/dist/ui/Grid/utils.d.ts.map +1 -1
- package/dist/ui/IconButton/IconButton.d.ts +8 -8
- package/dist/ui/IconButton/IconButton.d.ts.map +1 -1
- package/dist/ui/Input/Input.d.ts +4 -4
- package/dist/ui/Input/Input.d.ts.map +1 -1
- package/dist/ui/List/List.d.ts +7 -7
- package/dist/ui/List/List.d.ts.map +1 -1
- package/dist/ui/List/List.js +5 -5
- package/dist/ui/Modal/Modal.d.ts +4 -4
- package/dist/ui/Modal/Modal.d.ts.map +1 -1
- package/dist/ui/Modal/Modal.js +19 -19
- package/dist/ui/Modal/ModalContext.d.ts +1 -1
- package/dist/ui/Modal/ModalContext.js +2 -2
- package/dist/ui/Modal/ModalProvider.d.ts +1 -1
- package/dist/ui/MultipleChip/MultipleChip.d.ts +2 -2
- package/dist/ui/MultipleChip/MultipleChip.d.ts.map +1 -1
- package/dist/ui/MultipleChip/MultipleChip.js +8 -8
- package/dist/ui/NoData/NoData.d.ts +3 -3
- package/dist/ui/NoData/NoData.d.ts.map +1 -1
- package/dist/ui/NoData/NoData.js +4 -4
- package/dist/ui/NoData/NoDataIcon.d.ts +1 -1
- package/dist/ui/Popover/Popover.d.ts +4 -4
- package/dist/ui/Popover/Popover.d.ts.map +1 -1
- package/dist/ui/Portal/Portal.d.ts +1 -1
- package/dist/ui/Select/Select.d.ts +3 -3
- package/dist/ui/Select/Select.d.ts.map +1 -1
- package/dist/ui/Select/Select.types.d.ts +12 -10
- package/dist/ui/Select/Select.types.d.ts.map +1 -1
- package/dist/ui/Select/SelectControl.d.ts +1 -1
- package/dist/ui/Select/SelectControl.d.ts.map +1 -1
- package/dist/ui/Select/SelectControl.js +8 -8
- package/dist/ui/Select/SelectOption.d.ts +1 -1
- package/dist/ui/Select/SelectOption.d.ts.map +1 -1
- package/dist/ui/Select/SelectOption.js +6 -6
- package/dist/ui/Select/SelectOptions.d.ts +1 -1
- package/dist/ui/Select/SelectOptions.d.ts.map +1 -1
- package/dist/ui/Select/SelectSearch.d.ts +1 -1
- package/dist/ui/Select/SelectSearch.d.ts.map +1 -1
- package/dist/ui/Skeleton/Skeleton.d.ts.map +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/Tab.d.ts +3 -3
- package/dist/ui/Tabs/Tab.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.d.ts +4 -4
- package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.js +3 -3
- package/dist/ui/Tabs/TabsList.d.ts +1 -1
- package/dist/ui/Tabs/TabsList.d.ts.map +1 -1
- package/dist/ui/Tabs/TabsPanel.d.ts +2 -2
- package/dist/ui/Tabs/TabsPanel.d.ts.map +1 -1
- package/dist/ui/Tabs/context.d.ts +1 -1
- package/dist/ui/Text/Text.d.ts +6 -6
- package/dist/ui/Text/Text.d.ts.map +1 -1
- package/dist/ui/Textarea/Textarea.d.ts +3 -3
- package/dist/ui/Textarea/Textarea.d.ts.map +1 -1
- package/dist/ui/Tooltip/Tooltip.d.ts +3 -3
- package/dist/ui/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/ui/Tooltip/Tooltip.js +4 -4
- package/dist/ui/index.d.ts +36 -34
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/table/Table.context.d.ts +10 -0
- package/dist/ui/table/Table.context.d.ts.map +1 -0
- package/dist/ui/table/Table.context.js +26 -0
- package/dist/ui/table/Table.d.ts +3 -0
- package/dist/ui/table/Table.d.ts.map +1 -0
- package/dist/ui/table/Table.js +17 -0
- package/dist/ui/table/Table.types.d.ts +76 -0
- package/dist/ui/table/Table.types.d.ts.map +1 -0
- package/dist/ui/table/Table.types.js +4 -0
- package/dist/ui/table/components/content/TableContent.d.ts +9 -0
- package/dist/ui/table/components/content/TableContent.d.ts.map +1 -0
- package/dist/ui/table/components/content/TableContent.js +67 -0
- package/dist/ui/table/components/content/TableContent.module.css.js +9 -0
- package/dist/ui/table/components/content/cell/Cell.d.ts +7 -0
- package/dist/ui/table/components/content/cell/Cell.d.ts.map +1 -0
- package/dist/ui/table/components/content/cell/Cell.js +29 -0
- package/dist/ui/table/components/content/cell/Cell.module.css.js +11 -0
- package/dist/ui/table/components/content/cellcheckbox/CellCheckbox.d.ts +8 -0
- package/dist/ui/table/components/content/cellcheckbox/CellCheckbox.d.ts.map +1 -0
- package/dist/ui/table/components/content/cellcheckbox/CellCheckbox.js +26 -0
- package/dist/ui/table/components/content/datarow/DataRow.d.ts +11 -0
- package/dist/ui/table/components/content/datarow/DataRow.d.ts.map +1 -0
- package/dist/ui/table/components/content/datarow/DataRow.js +23 -0
- package/dist/ui/table/components/content/head/TableHead.d.ts +6 -0
- package/dist/ui/table/components/content/head/TableHead.d.ts.map +1 -0
- package/dist/ui/table/components/content/head/TableHead.js +7 -0
- package/dist/ui/table/components/content/head/TableHead.module.css.js +9 -0
- package/dist/ui/table/components/content/headercell/HeaderCell.d.ts +8 -0
- package/dist/ui/table/components/content/headercell/HeaderCell.d.ts.map +1 -0
- package/dist/ui/table/components/content/headercell/HeaderCell.js +51 -0
- package/dist/ui/table/components/content/headercell/HeaderCell.module.css.js +15 -0
- package/dist/ui/table/components/content/headercellcheckbox/HeaderCellCheckbox.d.ts +8 -0
- package/dist/ui/table/components/content/headercellcheckbox/HeaderCellCheckbox.d.ts.map +1 -0
- package/dist/ui/table/components/content/headercellcheckbox/HeaderCellCheckbox.js +29 -0
- package/dist/ui/table/components/content/tablebody/TableBody.d.ts +7 -0
- package/dist/ui/table/components/content/tablebody/TableBody.d.ts.map +1 -0
- package/dist/ui/table/components/content/tablebody/TableBody.js +28 -0
- package/dist/ui/table/components/pagination/TablePagination.d.ts +6 -0
- package/dist/ui/table/components/pagination/TablePagination.d.ts.map +1 -0
- package/dist/ui/table/components/pagination/TablePagination.js +73 -0
- package/dist/ui/table/components/root/TableRoot.d.ts +7 -0
- package/dist/ui/table/components/root/TableRoot.d.ts.map +1 -0
- package/dist/ui/table/components/root/TableRoot.js +28 -0
- package/dist/ui/table/components/root/TableRoot.module.css.js +9 -0
- package/dist/ui/table/hooks/useSelected.d.ts +2 -0
- package/dist/ui/table/hooks/useSelected.d.ts.map +1 -0
- package/dist/ui/table/hooks/useSelected.js +6 -0
- package/dist/ui/table/index.d.ts +5 -0
- package/dist/ui/table/index.d.ts.map +1 -0
- 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
|
|
package/dist/app/Provider.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type PropsWithChildren } from
|
|
2
|
-
import { type Locale } from
|
|
3
|
-
import { type ThemeMap } from
|
|
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,
|
|
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"}
|
package/dist/app/Provider.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as b } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
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 {
|
|
7
|
-
import {
|
|
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 =
|
|
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 =
|
|
18
|
+
themes: r = O,
|
|
19
19
|
children: g
|
|
20
20
|
}) => {
|
|
21
|
-
const c =
|
|
22
|
-
() =>
|
|
23
|
-
), m = u(() =>
|
|
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(
|
|
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
|
|
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 =
|
|
55
|
+
const t = x(h);
|
|
56
56
|
return { ...t, messages: T[t.locale] };
|
|
57
57
|
};
|
|
58
58
|
export {
|
package/dist/app/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Provider,
|
|
1
|
+
export { Provider, type ProviderProps, 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,
|
|
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
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
};
|
package/dist/lib/dates.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ConfigType } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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
|
package/dist/lib/dates.d.ts.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type
|
|
3
|
-
export {
|
|
4
|
-
export
|
|
5
|
-
export {
|
|
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
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,
|
|
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"}
|
package/dist/lib/locale.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type Locale =
|
|
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
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmC6B,CAAC"}
|
package/dist/lib/locale.js
CHANGED
|
@@ -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 {
|
package/dist/lib/sizes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type Size =
|
|
1
|
+
export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2
2
|
//# sourceMappingURL=sizes.d.ts.map
|
package/dist/lib/themes.d.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import type { CSSProperties } from
|
|
2
|
-
export type ThemeColor = `${
|
|
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?:
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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";
|
package/dist/lib/themes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/lib/themes.ts"],"names":[],"mappings":"
|
|
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"}
|