@dss-kit/ui-kit 1.0.0 → 1.0.1
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 +29 -29
- package/dist/components/controls/MarkdownTextEditor/MarkdownTextEditor.js +6 -6
- 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/MarkdownText/MarkdownText.js +10 -10
- package/dist/components/shared/index.d.ts +2 -0
- package/dist/index.js +52 -48
- package/dist/styles/utils/breakpoints/base.scss +11 -11
- package/dist/styles/utils/breakpoints/index.scss +3 -3
- package/dist/styles/utils/breakpoints/screen.scss +61 -61
- package/dist/styles/utils/breakpoints/semantic.scss +31 -31
- package/dist/styles/utils/fonts/font-family.scss +3 -3
- package/dist/styles/utils/fonts/index.scss +1 -1
- package/dist/styles/utils/index.scss +5 -5
- package/dist/styles/utils/size/index.scss +1 -1
- package/dist/styles/utils/size/modifiers.scss +40 -40
- package/dist/styles/utils/style/index.scss +1 -1
- package/dist/styles/utils/style/variants.scss +34 -34
- package/dist/styles/utils/typography/_font-weight.scss +33 -33
- package/dist/styles/utils/typography/_variants.scss +85 -85
- package/dist/styles/utils/typography/index.scss +2 -2
- package/dist/ui-kit.cjs +8 -8
- package/package.json +94 -94
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cx as s } from "@emotion/css";
|
|
3
|
+
import { useMemo as c } from "react";
|
|
4
|
+
import { DEFAULT_MAX_NUMBER as p, COUNTER_BACKGROUND as d, COUNTER_CUTOUT_COLOR as f, COUNTER_CUTOUT_WIDTH as u, COUNTER_HEIGHT as n } from "./Counter.const.js";
|
|
5
|
+
import { getCounterLabel as C } from "./Counter.utils.js";
|
|
6
|
+
import { counterLabelStyles as T, counterStyles as U } from "./styles.js";
|
|
7
|
+
import { Box as R } from "../../builders/Box/Box.js";
|
|
8
|
+
import { theme as h } from "../../../utils/theme/index.js";
|
|
9
|
+
import { Text as O } from "../../builders/Text/Text.js";
|
|
10
|
+
const { cornerRadius: b, spacing: x } = h;
|
|
11
|
+
function A({
|
|
12
|
+
value: r,
|
|
13
|
+
maxNumber: e = p,
|
|
14
|
+
colorName: i = "negative",
|
|
15
|
+
size: o = "md",
|
|
16
|
+
withBorder: m = !0,
|
|
17
|
+
className: a
|
|
18
|
+
}) {
|
|
19
|
+
const l = c(
|
|
20
|
+
() => C({ value: r, maxNumber: e }),
|
|
21
|
+
[r, e]
|
|
22
|
+
);
|
|
23
|
+
return /* @__PURE__ */ t(
|
|
24
|
+
R,
|
|
25
|
+
{
|
|
26
|
+
row: !0,
|
|
27
|
+
display: "inline-flex",
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
justifyContent: "center",
|
|
30
|
+
flexShrink: 0,
|
|
31
|
+
h: n[o],
|
|
32
|
+
minWidth: n[o],
|
|
33
|
+
px: x.xs,
|
|
34
|
+
borderRadius: b.fullRound,
|
|
35
|
+
borderWidth: u,
|
|
36
|
+
borderStyle: "solid",
|
|
37
|
+
borderColor: m ? f : "transparent",
|
|
38
|
+
backgroundColor: d[i],
|
|
39
|
+
className: s(U, a),
|
|
40
|
+
children: /* @__PURE__ */ t(
|
|
41
|
+
O,
|
|
42
|
+
{
|
|
43
|
+
tag: "span",
|
|
44
|
+
variant: "caption-2",
|
|
45
|
+
fontWeight: "semibold",
|
|
46
|
+
colorName: "inverse",
|
|
47
|
+
whiteSpace: "nowrap",
|
|
48
|
+
center: !0,
|
|
49
|
+
className: T,
|
|
50
|
+
children: l
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
A as Counter
|
|
58
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AccentType, NegativeType, NeutralType, Size } from '../../../types/tokens.types';
|
|
2
|
+
export type CounterColorName = NegativeType | AccentType | NeutralType;
|
|
3
|
+
export type CounterSize = Extract<Size, "sm" | "md">;
|
|
4
|
+
export interface CounterProps {
|
|
5
|
+
/** Значение счётчика. Строка выводится как есть, число ограничивается через `maxNumber`. */
|
|
6
|
+
value: number | string;
|
|
7
|
+
/**
|
|
8
|
+
* Верхняя граница для числового `value`: при превышении выводится `${maxNumber}+`.
|
|
9
|
+
* `null` снимает ограничение. На строки не действует.
|
|
10
|
+
* @default 99
|
|
11
|
+
*/
|
|
12
|
+
maxNumber?: number | null;
|
|
13
|
+
/** Цветовая схема счётчика. @default "negative" */
|
|
14
|
+
colorName?: CounterColorName;
|
|
15
|
+
/** Размер счётчика: "sm" (16px) или "md" (20px). @default "md" */
|
|
16
|
+
size?: CounterSize;
|
|
17
|
+
/**
|
|
18
|
+
* Обводка цветом фона страницы. Отделяет счётчик от элемента, на который он наложен.
|
|
19
|
+
* При `false` рамка становится прозрачной, место под неё и размеры счётчика сохраняются.
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
withBorder?: boolean;
|
|
23
|
+
/** Класс для корневого элемента. Добавляется к внутренним классам, например для позиционирования снаружи. */
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface GetCounterLabelParams {
|
|
27
|
+
value: number | string;
|
|
28
|
+
maxNumber: number | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DotColorName, DotSize } from './Dot.types';
|
|
2
|
+
export declare const DOT_CUTOUT_WIDTH = 1;
|
|
3
|
+
export declare const DOT_CUTOUT_COLOR: "var(--fill-bg-primary)";
|
|
4
|
+
export declare const DOT_BACKGROUND: Record<DotColorName, string>;
|
|
5
|
+
export declare const DOT_SIZE: Record<DotSize, number>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { theme as o } from "../../../utils/theme/index.js";
|
|
2
|
+
const { color: t } = o, e = 1, n = t.fill.bg_primary, c = {
|
|
3
|
+
negative: t.status.negative,
|
|
4
|
+
accent: t.status.accent,
|
|
5
|
+
neutral: t.status.neutral
|
|
6
|
+
}, a = {
|
|
7
|
+
sm: 6,
|
|
8
|
+
md: 8
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
c as DOT_BACKGROUND,
|
|
12
|
+
n as DOT_CUTOUT_COLOR,
|
|
13
|
+
e as DOT_CUTOUT_WIDTH,
|
|
14
|
+
a as DOT_SIZE
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DotProps } from './Dot.types';
|
|
2
|
+
/**
|
|
3
|
+
* Точка-индикатор без текста, например отметка непрочитанного.
|
|
4
|
+
* @example
|
|
5
|
+
* ```tsx
|
|
6
|
+
* <Dot />
|
|
7
|
+
* <Dot colorName="accent" size="sm" />
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
export declare function Dot({ colorName, size, withBorder, className, }: DotProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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;
|
|
@@ -6,11 +6,11 @@ import { ContentEditable as f } from "@lexical/react/LexicalContentEditable";
|
|
|
6
6
|
import { LexicalErrorBoundary as c } from "@lexical/react/LexicalErrorBoundary";
|
|
7
7
|
import { RichTextPlugin as p } from "@lexical/react/LexicalRichTextPlugin";
|
|
8
8
|
import { useMemo as s } from "react";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
9
|
+
import { getEditorConfig as u } from "../../controls/MarkdownTextEditor/configs/editor.config.js";
|
|
10
|
+
import { EDITOR_TRANSFORMERS as x } from "../../controls/MarkdownTextEditor/transformers/index.js";
|
|
11
|
+
import { markdownTextStyle as w } from "./MarkdownText.styles.js";
|
|
12
|
+
import { Text as E } from "../../builders/Text/Text.js";
|
|
13
|
+
import { EditorStateContext as k } from "../../controls/MarkdownTextEditor/contexts/EditorStateContext/EditorStateContext.js";
|
|
14
14
|
function F({
|
|
15
15
|
markdown: t,
|
|
16
16
|
className: i,
|
|
@@ -27,15 +27,15 @@ function F({
|
|
|
27
27
|
}),
|
|
28
28
|
[r]
|
|
29
29
|
);
|
|
30
|
-
return r ? /* @__PURE__ */ o(
|
|
30
|
+
return r ? /* @__PURE__ */ o(k.Provider, { value: a, children: /* @__PURE__ */ o(
|
|
31
31
|
d,
|
|
32
32
|
{
|
|
33
33
|
initialConfig: {
|
|
34
|
-
...
|
|
34
|
+
...u(),
|
|
35
35
|
editable: !1,
|
|
36
36
|
namespace: "ui-kit-markdown-text-viewer",
|
|
37
37
|
editorState: () => {
|
|
38
|
-
l(r,
|
|
38
|
+
l(r, x);
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
children: /* @__PURE__ */ o(
|
|
@@ -44,7 +44,7 @@ function F({
|
|
|
44
44
|
contentEditable: /* @__PURE__ */ o(
|
|
45
45
|
f,
|
|
46
46
|
{
|
|
47
|
-
className: m(
|
|
47
|
+
className: m(w, i),
|
|
48
48
|
"aria-placeholder": "markdown text",
|
|
49
49
|
placeholder: () => null
|
|
50
50
|
}
|
|
@@ -56,7 +56,7 @@ function F({
|
|
|
56
56
|
},
|
|
57
57
|
r
|
|
58
58
|
) }) : typeof e == "string" ? /* @__PURE__ */ o(
|
|
59
|
-
|
|
59
|
+
E,
|
|
60
60
|
{
|
|
61
61
|
variant: "body-2",
|
|
62
62
|
colorName: "tertiary",
|
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
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@mixin breakpoint($breakpoint, $direction: max) {
|
|
2
|
-
@if $direction == min {
|
|
3
|
-
@media (min-width: $breakpoint) {
|
|
4
|
-
@content;
|
|
5
|
-
}
|
|
6
|
-
} @else if $direction == max {
|
|
7
|
-
@media (max-width: ($breakpoint - 1px)) {
|
|
8
|
-
@content;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
@mixin breakpoint($breakpoint, $direction: max) {
|
|
2
|
+
@if $direction == min {
|
|
3
|
+
@media (min-width: $breakpoint) {
|
|
4
|
+
@content;
|
|
5
|
+
}
|
|
6
|
+
} @else if $direction == max {
|
|
7
|
+
@media (max-width: ($breakpoint - 1px)) {
|
|
8
|
+
@content;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@forward "base";
|
|
2
|
-
@forward "screen";
|
|
3
|
-
@forward "semantic";
|
|
1
|
+
@forward "base";
|
|
2
|
+
@forward "screen";
|
|
3
|
+
@forward "semantic";
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
@use "./base.scss";
|
|
2
|
-
|
|
3
|
-
@mixin bp-1920($direction: max) {
|
|
4
|
-
@include base.breakpoint(1920px, $direction) {
|
|
5
|
-
@content;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin bp-1440($direction: max) {
|
|
10
|
-
@include base.breakpoint(1440px, $direction) {
|
|
11
|
-
@content;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@mixin bp-1280($direction: max) {
|
|
16
|
-
@include base.breakpoint(1280px, $direction) {
|
|
17
|
-
@content;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin bp-1200($direction: max) {
|
|
22
|
-
@include base.breakpoint(1200px, $direction) {
|
|
23
|
-
@content;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@mixin bp-1024($direction: max) {
|
|
28
|
-
@include base.breakpoint(1024px, $direction) {
|
|
29
|
-
@content;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@mixin bp-992($direction: max) {
|
|
34
|
-
@include base.breakpoint(992px, $direction) {
|
|
35
|
-
@content;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@mixin bp-768($direction: max) {
|
|
40
|
-
@include base.breakpoint(768px, $direction) {
|
|
41
|
-
@content;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@mixin bp-576($direction: max) {
|
|
46
|
-
@include base.breakpoint(576px, $direction) {
|
|
47
|
-
@content;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@mixin bp-480($direction: max) {
|
|
52
|
-
@include base.breakpoint(480px, $direction) {
|
|
53
|
-
@content;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@mixin bp-375($direction: max) {
|
|
58
|
-
@include base.breakpoint(375px, $direction) {
|
|
59
|
-
@content;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
1
|
+
@use "./base.scss";
|
|
2
|
+
|
|
3
|
+
@mixin bp-1920($direction: max) {
|
|
4
|
+
@include base.breakpoint(1920px, $direction) {
|
|
5
|
+
@content;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin bp-1440($direction: max) {
|
|
10
|
+
@include base.breakpoint(1440px, $direction) {
|
|
11
|
+
@content;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin bp-1280($direction: max) {
|
|
16
|
+
@include base.breakpoint(1280px, $direction) {
|
|
17
|
+
@content;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin bp-1200($direction: max) {
|
|
22
|
+
@include base.breakpoint(1200px, $direction) {
|
|
23
|
+
@content;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@mixin bp-1024($direction: max) {
|
|
28
|
+
@include base.breakpoint(1024px, $direction) {
|
|
29
|
+
@content;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin bp-992($direction: max) {
|
|
34
|
+
@include base.breakpoint(992px, $direction) {
|
|
35
|
+
@content;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@mixin bp-768($direction: max) {
|
|
40
|
+
@include base.breakpoint(768px, $direction) {
|
|
41
|
+
@content;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@mixin bp-576($direction: max) {
|
|
46
|
+
@include base.breakpoint(576px, $direction) {
|
|
47
|
+
@content;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@mixin bp-480($direction: max) {
|
|
52
|
+
@include base.breakpoint(480px, $direction) {
|
|
53
|
+
@content;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin bp-375($direction: max) {
|
|
58
|
+
@include base.breakpoint(375px, $direction) {
|
|
59
|
+
@content;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
@use "./screen.scss";
|
|
2
|
-
|
|
3
|
-
@mixin bp-xs($direction: max) {
|
|
4
|
-
@include screen.bp-480($direction) {
|
|
5
|
-
@content;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin bp-sm($direction: max) {
|
|
10
|
-
@include screen.bp-576($direction) {
|
|
11
|
-
@content;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@mixin bp-md($direction: max) {
|
|
16
|
-
@include screen.bp-768($direction) {
|
|
17
|
-
@content;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin bp-lg($direction: max) {
|
|
22
|
-
@include screen.bp-992($direction) {
|
|
23
|
-
@content;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@mixin bp-xl($direction: max) {
|
|
28
|
-
@include screen.bp-1200($direction) {
|
|
29
|
-
@content;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
@use "./screen.scss";
|
|
2
|
+
|
|
3
|
+
@mixin bp-xs($direction: max) {
|
|
4
|
+
@include screen.bp-480($direction) {
|
|
5
|
+
@content;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin bp-sm($direction: max) {
|
|
10
|
+
@include screen.bp-576($direction) {
|
|
11
|
+
@content;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin bp-md($direction: max) {
|
|
16
|
+
@include screen.bp-768($direction) {
|
|
17
|
+
@content;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin bp-lg($direction: max) {
|
|
22
|
+
@include screen.bp-992($direction) {
|
|
23
|
+
@content;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@mixin bp-xl($direction: max) {
|
|
28
|
+
@include screen.bp-1200($direction) {
|
|
29
|
+
@content;
|
|
30
|
+
}
|
|
31
|
+
}
|