@dss-kit/ui-kit 1.0.0 → 1.0.2
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/components/builders/Table/Table.js +169 -165
- package/dist/components/builders/Table/Table.types.d.ts +5 -1
- package/dist/components/builders/Table/TableBodyRow/TableBodyRow.d.ts +5 -0
- package/dist/components/builders/Table/TableBodyRow/TableBodyRow.js +23 -9
- package/dist/components/builders/Table/TablePlaceholder/TablePlaceholder.js +22 -22
- package/dist/components/controls/Switch/Switch.d.ts +3 -3
- package/dist/components/controls/Switch/styles.d.ts +1 -0
- package/dist/components/controls/Switch/styles.js +44 -34
- package/dist/components/controls/Tabs/TabItem/TabItem.d.ts +5 -0
- package/dist/components/controls/Tabs/TabItem/TabItem.js +68 -49
- package/dist/components/controls/Tabs/Tabs.d.ts +6 -1
- package/dist/components/controls/Tabs/Tabs.js +31 -28
- package/dist/components/shared/Counter/Counter.const.d.ts +6 -0
- package/dist/components/shared/Counter/Counter.const.js +16 -0
- package/dist/components/shared/Counter/Counter.d.ts +11 -0
- package/dist/components/shared/Counter/Counter.js +58 -0
- package/dist/components/shared/Counter/Counter.types.d.ts +29 -0
- package/dist/components/shared/Counter/Counter.utils.d.ts +2 -0
- package/dist/components/shared/Counter/Counter.utils.js +6 -0
- package/dist/components/shared/Counter/index.d.ts +2 -0
- package/dist/components/shared/Counter/styles.d.ts +2 -0
- package/dist/components/shared/Counter/styles.js +11 -0
- package/dist/components/shared/Dot/Dot.const.d.ts +5 -0
- package/dist/components/shared/Dot/Dot.const.js +15 -0
- package/dist/components/shared/Dot/Dot.d.ts +10 -0
- package/dist/components/shared/Dot/Dot.js +32 -0
- package/dist/components/shared/Dot/Dot.types.d.ts +17 -0
- package/dist/components/shared/Dot/index.d.ts +2 -0
- package/dist/components/shared/Dot/styles.d.ts +1 -0
- package/dist/components/shared/Dot/styles.js +7 -0
- package/dist/components/shared/index.d.ts +2 -0
- package/dist/index.js +52 -48
- package/dist/ui-kit.cjs +8 -8
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { cx as d } from "@emotion/css";
|
|
3
|
+
import { DOT_BACKGROUND as n, DOT_CUTOUT_COLOR as l, DOT_CUTOUT_WIDTH as f, DOT_SIZE as o } from "./Dot.const.js";
|
|
4
|
+
import { dotStyles as a } from "./styles.js";
|
|
5
|
+
import { Box as p } from "../../builders/Box/Box.js";
|
|
6
|
+
import { theme as s } from "../../../utils/theme/index.js";
|
|
7
|
+
const { cornerRadius: O } = s;
|
|
8
|
+
function _({
|
|
9
|
+
colorName: t = "negative",
|
|
10
|
+
size: r = "md",
|
|
11
|
+
withBorder: e = !0,
|
|
12
|
+
className: i
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ m(
|
|
15
|
+
p,
|
|
16
|
+
{
|
|
17
|
+
display: "inline-flex",
|
|
18
|
+
flexShrink: 0,
|
|
19
|
+
w: o[r],
|
|
20
|
+
h: o[r],
|
|
21
|
+
borderRadius: O.fullRound,
|
|
22
|
+
borderWidth: f,
|
|
23
|
+
borderStyle: "solid",
|
|
24
|
+
borderColor: e ? l : "transparent",
|
|
25
|
+
backgroundColor: n[t],
|
|
26
|
+
className: d(a, i)
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
_ as Dot
|
|
32
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AccentType, NegativeType, NeutralType, Size } from '../../../types/tokens.types';
|
|
2
|
+
export type DotColorName = NegativeType | AccentType | NeutralType;
|
|
3
|
+
export type DotSize = Extract<Size, "sm" | "md">;
|
|
4
|
+
export interface DotProps {
|
|
5
|
+
/** Цветовая схема точки. @default "negative" */
|
|
6
|
+
colorName?: DotColorName;
|
|
7
|
+
/** Размер точки вместе с обводкой: "sm" (6px) или "md" (8px). @default "md" */
|
|
8
|
+
size?: DotSize;
|
|
9
|
+
/**
|
|
10
|
+
* Обводка цветом фона страницы. Отделяет точку от элемента, на который она наложена.
|
|
11
|
+
* При `false` рамка становится прозрачной, место под неё и размеры точки сохраняются.
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
withBorder?: boolean;
|
|
15
|
+
/** Класс для корневого элемента. Добавляется к внутренним классам, например для позиционирования снаружи. */
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dotStyles: string;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { UiKitLocaleProvider as t } from "./locale/UiKitLocaleProvider/UiKitLocaleProvider.js";
|
|
3
3
|
import { Box as m } from "./components/builders/Box/Box.js";
|
|
4
4
|
import { Loader as f } from "./components/builders/Loader/Loader.js";
|
|
5
|
-
import { Modal as
|
|
5
|
+
import { Modal as n } from "./components/builders/Modal/index.js";
|
|
6
6
|
import { Portal as T } from "./components/builders/Portal/Portal.js";
|
|
7
7
|
import { Ripple as l } from "./components/builders/Ripple/Ripple.js";
|
|
8
8
|
import { Table as C } from "./components/builders/Table/Table.js";
|
|
@@ -14,8 +14,8 @@ import { Button as P } from "./components/controls/Button/Button.js";
|
|
|
14
14
|
import { Checkbox as _ } from "./components/controls/Checkbox/Checkbox.js";
|
|
15
15
|
import { IconButton as I } from "./components/controls/IconButton/IconButton.js";
|
|
16
16
|
import { Input as v } from "./components/controls/Input/Input.js";
|
|
17
|
-
import { MarkdownToolbarAction as
|
|
18
|
-
import { MARKDOWN_TEXT_EDITOR_LOCALE_KEY as
|
|
17
|
+
import { MarkdownToolbarAction as D } from "./components/controls/MarkdownTextEditor/hooks/useToolbarActions/useToolbarActions.const.js";
|
|
18
|
+
import { MARKDOWN_TEXT_EDITOR_LOCALE_KEY as O } from "./components/controls/MarkdownTextEditor/MarkdownTextEditor.locale.js";
|
|
19
19
|
import { MarkdownTextEditor as U } from "./components/controls/MarkdownTextEditor/MarkdownTextEditor.js";
|
|
20
20
|
import { OtpInput as y } from "./components/controls/OtpInput/OtpInput.js";
|
|
21
21
|
import { Radio as F } from "./components/controls/RadioGroup/Radio.js";
|
|
@@ -27,76 +27,80 @@ import { Tabs as Z } from "./components/controls/Tabs/Tabs.js";
|
|
|
27
27
|
import { Breadcrumbs as oo } from "./components/navigation/Breadcrumbs/Breadcrumbs.js";
|
|
28
28
|
import { Avatar as eo } from "./components/shared/Avatar/Avatar.js";
|
|
29
29
|
import { Badge as po } from "./components/shared/Badge/Badge.js";
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
30
|
+
import { Counter as xo } from "./components/shared/Counter/Counter.js";
|
|
31
|
+
import { Dot as ao } from "./components/shared/Dot/Dot.js";
|
|
32
|
+
import { Hint as io } from "./components/shared/Hint/Hint.js";
|
|
33
|
+
import { MarkdownText as so } from "./components/shared/MarkdownText/MarkdownText.js";
|
|
34
|
+
import { Popover as Co } from "./components/shared/Popover/Popover.js";
|
|
35
|
+
import { Skeleton as Bo } from "./components/shared/Skeleton/Skeleton.js";
|
|
36
|
+
import { Tag as ho } from "./components/shared/Tag/Tag.js";
|
|
37
|
+
import { Toast as ko } from "./components/shared/Toast/Toast.js";
|
|
38
|
+
import { useToast as Eo } from "./components/shared/Toast/Toast.hooks.js";
|
|
39
|
+
import { toast as Mo } from "./components/shared/Toast/Toast.utils.js";
|
|
40
|
+
import { ToastContainer as Ro } from "./components/shared/Toast/ToastContainer.js";
|
|
41
|
+
import { Tooltip as bo } from "./components/shared/Tooltip/Tooltip.js";
|
|
42
|
+
import { ThemeProviderScoped as Lo } from "./providers/ThemeProviderScoped/ThemeProviderScoped.js";
|
|
43
|
+
import { THEME_DATA_ATTRIBUTE as wo } from "./providers/ThemeProviderScoped/ThemeProviderScoped.const.js";
|
|
44
|
+
import { ThemeContext as Ko, useUiKitTheme as Oo } from "./providers/ThemeProviderScoped/ThemeProviderScoped.context.js";
|
|
45
|
+
import { useControlled as Uo } from "./utils/hooks/useControlled.js";
|
|
46
|
+
import { useBreakpoint as yo } from "./utils/hooks/breakpoints/useBreakpoint/useBreakpoint.js";
|
|
47
|
+
import { Breakpoints as Fo, BreakpointsBase as Go } from "./utils/hooks/breakpoints/useBreakpoint/useBreakpoint.const.js";
|
|
48
|
+
import { getFontWeightClass as Xo } from "./utils/styles/getFontWeightClass/getFontWeightClass.js";
|
|
49
|
+
import { getSizeClass as jo } from "./utils/styles/getSizeClass/getSizeClass.js";
|
|
50
|
+
import { getStyleClass as Jo } from "./utils/styles/getStyleClass/getStyleClass.js";
|
|
51
|
+
import { theme as Vo } from "./utils/theme/index.js";
|
|
50
52
|
export {
|
|
51
53
|
h as AnimatedText,
|
|
52
54
|
eo as Avatar,
|
|
53
55
|
po as Badge,
|
|
54
56
|
m as Box,
|
|
55
57
|
oo as Breadcrumbs,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
Fo as Breakpoints,
|
|
59
|
+
Go as BreakpointsBase,
|
|
58
60
|
P as Button,
|
|
59
61
|
_ as Checkbox,
|
|
60
|
-
xo as
|
|
62
|
+
xo as Counter,
|
|
63
|
+
ao as Dot,
|
|
64
|
+
io as Hint,
|
|
61
65
|
I as IconButton,
|
|
62
66
|
v as Input,
|
|
63
67
|
A as LineChart,
|
|
64
68
|
f as Loader,
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
O as MARKDOWN_TEXT_EDITOR_LOCALE_KEY,
|
|
70
|
+
so as MarkdownText,
|
|
67
71
|
U as MarkdownTextEditor,
|
|
68
|
-
|
|
69
|
-
|
|
72
|
+
D as MarkdownToolbarAction,
|
|
73
|
+
n as Modal,
|
|
70
74
|
y as OtpInput,
|
|
71
75
|
S as PieProgressChart,
|
|
72
|
-
|
|
76
|
+
Co as Popover,
|
|
73
77
|
T as Portal,
|
|
74
78
|
F as Radio,
|
|
75
79
|
N as RadioGroup,
|
|
76
80
|
l as Ripple,
|
|
77
81
|
Y as SegmentControl,
|
|
78
82
|
q as Select,
|
|
79
|
-
|
|
83
|
+
Bo as Skeleton,
|
|
80
84
|
Q as Switch,
|
|
81
|
-
|
|
85
|
+
wo as THEME_DATA_ATTRIBUTE,
|
|
82
86
|
C as Table,
|
|
83
87
|
Z as Tabs,
|
|
84
|
-
|
|
88
|
+
ho as Tag,
|
|
85
89
|
g as Text,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
Ko as ThemeContext,
|
|
91
|
+
Lo as ThemeProviderScoped,
|
|
92
|
+
ko as Toast,
|
|
93
|
+
Ro as ToastContainer,
|
|
94
|
+
bo as Tooltip,
|
|
91
95
|
t as UiKitLocaleProvider,
|
|
92
96
|
B as createColumnHelper,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
Xo as getFontWeightClass,
|
|
98
|
+
jo as getSizeClass,
|
|
99
|
+
Jo as getStyleClass,
|
|
100
|
+
Vo as theme,
|
|
101
|
+
Mo as toast,
|
|
102
|
+
yo as useBreakpoint,
|
|
103
|
+
Uo as useControlled,
|
|
104
|
+
Eo as useToast,
|
|
105
|
+
Oo as useUiKitTheme
|
|
102
106
|
};
|