@dss-kit/ui-kit 1.0.1 → 1.0.3
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/builders/Dialog/Dialog.const.d.ts +9 -0
- package/dist/components/builders/Dialog/Dialog.const.js +4 -0
- package/dist/components/builders/Dialog/Dialog.context.d.ts +12 -0
- package/dist/components/builders/{Modal/context.js → Dialog/Dialog.context.js} +5 -5
- package/dist/components/builders/Dialog/Dialog.parts.d.ts +11 -0
- package/dist/components/builders/Dialog/Dialog.parts.js +11 -0
- package/dist/components/builders/Dialog/Dialog.types.d.ts +44 -0
- package/dist/components/builders/Dialog/DialogCloseButton/DialogCloseButton.d.ts +10 -0
- package/dist/components/builders/Dialog/DialogCloseButton/DialogCloseButton.js +34 -0
- package/dist/components/builders/Dialog/DialogCloseButton/index.d.ts +2 -0
- package/dist/components/builders/{Modal/ModalFooter/ModalFooter.d.ts → Dialog/DialogFooter/DialogFooter.d.ts} +13 -22
- package/dist/components/builders/Dialog/DialogFooter/DialogFooter.js +48 -0
- package/dist/components/builders/Dialog/DialogFooter/index.d.ts +2 -0
- package/dist/components/builders/{Modal/ModalHeader/ModalHeader.d.ts → Dialog/DialogHeader/DialogHeader.d.ts} +10 -6
- package/dist/components/builders/Dialog/DialogHeader/DialogHeader.js +97 -0
- package/dist/components/builders/Dialog/DialogHeader/index.d.ts +2 -0
- package/dist/components/builders/{Modal/ModalMain/ModalMain.d.ts → Dialog/DialogMain/DialogMain.d.ts} +18 -17
- package/dist/components/builders/{Modal/ModalMain/ModalMain.js → Dialog/DialogMain/DialogMain.js} +39 -29
- package/dist/components/builders/Dialog/DialogMain/index.d.ts +2 -0
- package/dist/components/builders/Dialog/DialogMain/styles.d.ts +6 -0
- package/dist/components/builders/{Modal/ModalMain → Dialog/DialogMain}/styles.js +16 -0
- package/dist/components/builders/Dialog/hooks/index.d.ts +3 -0
- package/dist/components/builders/Dialog/hooks/useBackdropClose.d.ts +10 -0
- package/dist/components/builders/Dialog/hooks/useBackdropClose.js +15 -0
- package/dist/components/builders/Dialog/hooks/useBodyScrollLock.d.ts +6 -0
- package/dist/components/builders/Dialog/hooks/useBodyScrollLock.js +13 -0
- package/dist/components/builders/Dialog/hooks/useCloseOnEsc.d.ts +6 -0
- package/dist/components/builders/Dialog/hooks/useCloseOnEsc.js +21 -0
- package/dist/components/builders/Dialog/index.d.ts +10 -0
- package/dist/components/builders/Modal/Modal.d.ts +8 -28
- package/dist/components/builders/Modal/Modal.js +50 -78
- package/dist/components/builders/Modal/index.d.ts +6 -11
- package/dist/components/builders/Modal/index.js +7 -9
- package/dist/components/builders/Modal/styles.js +6 -7
- package/dist/components/builders/Sheet/Sheet.const.d.ts +50 -0
- package/dist/components/builders/Sheet/Sheet.const.js +38 -0
- package/dist/components/builders/Sheet/Sheet.d.ts +12 -0
- package/dist/components/builders/Sheet/Sheet.js +55 -0
- package/dist/components/builders/Sheet/Sheet.types.d.ts +82 -0
- package/dist/components/builders/Sheet/Sheet.utils.d.ts +34 -0
- package/dist/components/builders/Sheet/Sheet.utils.js +50 -0
- package/dist/components/builders/Sheet/SheetLayer.d.ts +22 -0
- package/dist/components/builders/Sheet/SheetLayer.js +115 -0
- package/dist/components/builders/Sheet/hooks/index.d.ts +2 -0
- package/dist/components/builders/Sheet/hooks/useSheetGesture.d.ts +24 -0
- package/dist/components/builders/Sheet/hooks/useSheetGesture.js +67 -0
- package/dist/components/builders/Sheet/hooks/useSheetMotion.d.ts +31 -0
- package/dist/components/builders/Sheet/hooks/useSheetMotion.js +74 -0
- package/dist/components/builders/Sheet/hooks/useSheetPointer.d.ts +31 -0
- package/dist/components/builders/Sheet/hooks/useSheetPointer.js +81 -0
- package/dist/components/builders/Sheet/index.d.ts +15 -0
- package/dist/components/builders/Sheet/index.js +9 -0
- package/dist/components/builders/Sheet/styles.d.ts +17 -0
- package/dist/components/builders/Sheet/styles.js +135 -0
- 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/TablePagination/TablePagination.js +1 -1
- package/dist/components/builders/Table/TablePlaceholder/TablePlaceholder.js +22 -22
- package/dist/components/builders/Text/Text.d.ts +1 -1
- package/dist/components/builders/index.d.ts +1 -0
- package/dist/components/controls/Checkbox/Checkbox.js +6 -6
- package/dist/components/controls/MarkdownTextEditor/MarkdownTextEditor.js +6 -6
- package/dist/components/controls/Select/Select.js +6 -6
- package/dist/components/shared/MarkdownText/MarkdownText.js +10 -10
- package/dist/index.js +93 -91
- 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/dist/utils/hooks/useLatestRef.d.ts +6 -0
- package/dist/utils/hooks/useLatestRef.js +10 -0
- package/package.json +94 -94
- package/dist/components/builders/Modal/ModalFooter/ModalFooter.js +0 -35
- package/dist/components/builders/Modal/ModalFooter/index.d.ts +0 -2
- package/dist/components/builders/Modal/ModalHeader/ModalHeader.js +0 -86
- package/dist/components/builders/Modal/ModalHeader/index.d.ts +0 -2
- package/dist/components/builders/Modal/ModalMain/index.d.ts +0 -2
- package/dist/components/builders/Modal/ModalMain/styles.d.ts +0 -3
- package/dist/components/builders/Modal/context.d.ts +0 -8
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { css as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { theme as
|
|
5
|
-
const { color: o } =
|
|
6
|
-
({ children:
|
|
7
|
-
const
|
|
8
|
-
borderBottom:
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { css as e, cx as m } from "@emotion/css";
|
|
3
|
+
import { forwardRef as f } from "react";
|
|
4
|
+
import { theme as b } from "../../../../utils/theme/index.js";
|
|
5
|
+
const { color: o } = b, p = f(
|
|
6
|
+
({ children: t, className: l, showBorders: a = !1, selected: r = !1, ...n }, s) => {
|
|
7
|
+
const c = e({
|
|
8
|
+
borderBottom: a ? `1px solid ${o.border.neutral_alpha_low}` : "none",
|
|
9
9
|
transition: "background-color 0.15s ease-in-out",
|
|
10
10
|
"&:hover": {
|
|
11
11
|
backgroundColor: o.fill.neutral_primary_hover
|
|
12
12
|
}
|
|
13
|
+
}), i = e({
|
|
14
|
+
backgroundColor: o.fill.accent_tint_low,
|
|
15
|
+
"&:hover": {
|
|
16
|
+
backgroundColor: o.fill.accent_tint
|
|
17
|
+
}
|
|
13
18
|
});
|
|
14
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ d(
|
|
20
|
+
"tr",
|
|
21
|
+
{
|
|
22
|
+
ref: s,
|
|
23
|
+
"data-selected": r || void 0,
|
|
24
|
+
className: m(c, { [i]: r }, l),
|
|
25
|
+
...n,
|
|
26
|
+
children: t
|
|
27
|
+
}
|
|
28
|
+
);
|
|
15
29
|
}
|
|
16
30
|
);
|
|
17
31
|
p.displayName = "TableBodyRow";
|
|
@@ -5,10 +5,10 @@ import z from "../../../../assets/svg/table/chevron-left.svg.js";
|
|
|
5
5
|
import M from "../../../../assets/svg/table/chevron-right.svg.js";
|
|
6
6
|
import Q from "../../../../assets/svg/table/dots.svg.js";
|
|
7
7
|
import { getPageNumbers as U } from "./TablePagination.utils.js";
|
|
8
|
+
import { Select as X } from "../../../controls/Select/Select.js";
|
|
8
9
|
import { Button as _ } from "../../../controls/Button/Button.js";
|
|
9
10
|
import { IconButton as B } from "../../../controls/IconButton/IconButton.js";
|
|
10
11
|
import { Box as r } from "../../Box/Box.js";
|
|
11
|
-
import { Select as X } from "../../../controls/Select/Select.js";
|
|
12
12
|
import { theme as Y } from "../../../../utils/theme/index.js";
|
|
13
13
|
import { Text as Z } from "../../Text/Text.js";
|
|
14
14
|
const { color: i, cornerRadius: tt, spacing: b } = Y, bt = ({
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsxs as d, jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cx as s, css as l } from "@emotion/css";
|
|
3
|
+
import { Button as p } from "../../../controls/Button/Button.js";
|
|
4
|
+
import { Box as h } from "../../Box/Box.js";
|
|
5
|
+
import { theme as f } from "../../../../utils/theme/index.js";
|
|
5
6
|
import { Text as r } from "../../Text/Text.js";
|
|
6
|
-
const { spacing:
|
|
7
|
+
const { spacing: o, cornerRadius: x } = f, u = ({
|
|
7
8
|
icon: i,
|
|
8
9
|
labels: t,
|
|
9
|
-
onReset:
|
|
10
|
-
className:
|
|
10
|
+
onReset: c,
|
|
11
|
+
className: n,
|
|
11
12
|
titleClassName: m,
|
|
12
13
|
descriptionClassName: a
|
|
13
14
|
}) => /* @__PURE__ */ d(
|
|
14
|
-
|
|
15
|
+
h,
|
|
15
16
|
{
|
|
16
17
|
w: "full",
|
|
17
|
-
borderRadius:
|
|
18
|
-
py:
|
|
19
|
-
px: e["10xl"],
|
|
18
|
+
borderRadius: x.md,
|
|
19
|
+
py: o["5xl"],
|
|
20
20
|
alignItems: "center",
|
|
21
|
-
className:
|
|
21
|
+
className: n,
|
|
22
22
|
children: [
|
|
23
23
|
i,
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ e(
|
|
25
25
|
r,
|
|
26
26
|
{
|
|
27
|
-
mb:
|
|
27
|
+
mb: o.xs,
|
|
28
28
|
variant: "title-3",
|
|
29
29
|
fontWeight: "semibold",
|
|
30
30
|
className: m,
|
|
@@ -32,23 +32,23 @@ const { spacing: e, cornerRadius: h } = p, f = ({
|
|
|
32
32
|
children: t.title
|
|
33
33
|
}
|
|
34
34
|
),
|
|
35
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ e(
|
|
36
36
|
r,
|
|
37
37
|
{
|
|
38
|
-
mb:
|
|
38
|
+
mb: o.md,
|
|
39
39
|
colorName: "tertiary",
|
|
40
40
|
variant: "body-1",
|
|
41
41
|
fontWeight: "medium",
|
|
42
|
-
className: a,
|
|
42
|
+
className: s(l({ maxWidth: 400 }), a),
|
|
43
43
|
center: !0,
|
|
44
44
|
children: t.description
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
typeof t.action == "string" ? /* @__PURE__ */
|
|
48
|
-
|
|
47
|
+
typeof t.action == "string" ? /* @__PURE__ */ e(
|
|
48
|
+
p,
|
|
49
49
|
{
|
|
50
50
|
width: "auto",
|
|
51
|
-
onClick:
|
|
51
|
+
onClick: c,
|
|
52
52
|
intensity: "secondary",
|
|
53
53
|
color: "accent",
|
|
54
54
|
children: t.action
|
|
@@ -57,7 +57,7 @@ const { spacing: e, cornerRadius: h } = p, f = ({
|
|
|
57
57
|
]
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
|
-
|
|
60
|
+
u.displayName = "TablePlaceholder";
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
u as TablePlaceholder
|
|
63
63
|
};
|
|
@@ -332,11 +332,11 @@ export declare const AnimatedText: React.ComponentType<Omit<{
|
|
|
332
332
|
textOverflow?: import("csstype").Property.TextOverflow | undefined;
|
|
333
333
|
whiteSpace?: import("csstype").Property.WhiteSpace | undefined;
|
|
334
334
|
wordBreak?: import("csstype").Property.WordBreak | undefined;
|
|
335
|
-
disabled?: boolean | undefined;
|
|
336
335
|
capitalize?: boolean | undefined;
|
|
337
336
|
lowercase?: boolean | undefined;
|
|
338
337
|
uppercase?: boolean | undefined;
|
|
339
338
|
decoration?: import("csstype").Property.TextDecoration<string | number> | undefined;
|
|
339
|
+
disabled?: boolean | undefined;
|
|
340
340
|
variant?: "inherit" | TextVariant | undefined;
|
|
341
341
|
tag?: TextTag | undefined;
|
|
342
342
|
colorName?: "inherit" | TextColorName | undefined;
|
|
@@ -4,8 +4,8 @@ import { forwardRef as q, useState as A } from "react";
|
|
|
4
4
|
import D from "../../../assets/svg/shared/check.svg.js";
|
|
5
5
|
import E from "../../../assets/svg/shared/minus.svg.js";
|
|
6
6
|
import { styles as e, checkboxVariantsStyles as F } from "./styles.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { Box as b } from "../../builders/Box/Box.js";
|
|
8
|
+
import { Text as g } from "../../builders/Text/Text.js";
|
|
9
9
|
const G = { sm: 20, md: 24 }, H = q(
|
|
10
10
|
({
|
|
11
11
|
checked: m,
|
|
@@ -45,7 +45,7 @@ const G = { sm: 20, md: 24 }, H = q(
|
|
|
45
45
|
),
|
|
46
46
|
children: [
|
|
47
47
|
/* @__PURE__ */ i(
|
|
48
|
-
|
|
48
|
+
b,
|
|
49
49
|
{
|
|
50
50
|
relative: !0,
|
|
51
51
|
display: "inline-flex",
|
|
@@ -95,9 +95,9 @@ const G = { sm: 20, md: 24 }, H = q(
|
|
|
95
95
|
]
|
|
96
96
|
}
|
|
97
97
|
),
|
|
98
|
-
(a || t) && /* @__PURE__ */ i(
|
|
98
|
+
(a || t) && /* @__PURE__ */ i(b, { gap: 4, children: [
|
|
99
99
|
a && /* @__PURE__ */ r(
|
|
100
|
-
|
|
100
|
+
g,
|
|
101
101
|
{
|
|
102
102
|
colorName: N,
|
|
103
103
|
variant: d === "sm" ? "body-2" : "body-1",
|
|
@@ -106,7 +106,7 @@ const G = { sm: 20, md: 24 }, H = q(
|
|
|
106
106
|
}
|
|
107
107
|
),
|
|
108
108
|
t && /* @__PURE__ */ r(
|
|
109
|
-
|
|
109
|
+
g,
|
|
110
110
|
{
|
|
111
111
|
variant: "body-2",
|
|
112
112
|
colorName: u,
|
|
@@ -8,10 +8,10 @@ import { MarkdownShortcutPlugin as U } from "@lexical/react/LexicalMarkdownShort
|
|
|
8
8
|
import { OnChangePlugin as W } from "@lexical/react/LexicalOnChangePlugin";
|
|
9
9
|
import { TablePlugin as H } from "@lexical/react/LexicalTablePlugin";
|
|
10
10
|
import { useState as u, useMemo as a, useCallback as p } from "react";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { MarkdownTextEditorLocaleProvider as z } from "./MarkdownTextEditor.locale.js";
|
|
11
|
+
import { MARKDOWN_TOOLBAR_DEFAULT_ACTIONS as K } from "./MarkdownTextEditor.const.js";
|
|
12
|
+
import { MarkdownTextEditorLocaleProvider as q } from "./MarkdownTextEditor.locale.js";
|
|
14
13
|
import { EDITOR_TRANSFORMERS as g } from "./transformers/index.js";
|
|
14
|
+
import { getEditorConfig as z } from "./configs/editor.config.js";
|
|
15
15
|
import { EditorStateContext as G } from "./contexts/EditorStateContext/EditorStateContext.js";
|
|
16
16
|
import { ToolbarContext as J } from "./contexts/ToolbarContext/ToolbarContext.js";
|
|
17
17
|
import { EditorToolbar as Q } from "./components/EditorToolbar/EditorToolbar.js";
|
|
@@ -40,7 +40,7 @@ function Ao({
|
|
|
40
40
|
fieldClassName: R,
|
|
41
41
|
previewClassName: v
|
|
42
42
|
}) {
|
|
43
|
-
const [d, N] = u(""), [i, A] = u(!1), { availableActions: s, onImagesUpload: _ } = b || {}, O = a(() =>
|
|
43
|
+
const [d, N] = u(""), [i, A] = u(!1), { availableActions: s, onImagesUpload: _ } = b || {}, O = a(() => z(), []), I = a(
|
|
44
44
|
() => ({
|
|
45
45
|
isEditable: !m,
|
|
46
46
|
isPreviewMode: i,
|
|
@@ -49,7 +49,7 @@ function Ao({
|
|
|
49
49
|
}),
|
|
50
50
|
[m, i, d]
|
|
51
51
|
), L = a(() => ({
|
|
52
|
-
availableActions: s ||
|
|
52
|
+
availableActions: s || K
|
|
53
53
|
}), [s]), f = p(
|
|
54
54
|
(t) => {
|
|
55
55
|
N(t), r.onMarkdownChange && r.onMarkdownChange(t);
|
|
@@ -64,7 +64,7 @@ function Ao({
|
|
|
64
64
|
},
|
|
65
65
|
[f, r]
|
|
66
66
|
);
|
|
67
|
-
return /* @__PURE__ */ o(
|
|
67
|
+
return /* @__PURE__ */ o(q, { locale: M, children: /* @__PURE__ */ o(V, { initialConfig: O, children: /* @__PURE__ */ o(G.Provider, { value: I, children: /* @__PURE__ */ c(J.Provider, { value: L, children: [
|
|
68
68
|
/* @__PURE__ */ c(
|
|
69
69
|
h,
|
|
70
70
|
{
|
|
@@ -7,9 +7,9 @@ import Me from "../../../assets/svg/shared/chevron-down.svg.js";
|
|
|
7
7
|
import Oe from "../../../assets/svg/shared/empty-box.svg.js";
|
|
8
8
|
import { styles as n, selectArrowSizesStyles as Ve } from "./styles.js";
|
|
9
9
|
import { useControlled as Ae } from "../../../utils/hooks/useControlled.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { Portal as De } from "../../builders/Portal/Portal.js";
|
|
11
|
+
import { Checkbox as We } from "../Checkbox/Checkbox.js";
|
|
12
|
+
import { Tag as ze } from "../../shared/Tag/Tag.js";
|
|
13
13
|
import { Box as i } from "../../builders/Box/Box.js";
|
|
14
14
|
import { Text as d } from "../../builders/Text/Text.js";
|
|
15
15
|
import { Ripple as Be } from "../../builders/Ripple/Ripple.js";
|
|
@@ -149,7 +149,7 @@ function Ye({
|
|
|
149
149
|
}) : /* @__PURE__ */ t(i, { flexWrap: "wrap", row: !0, gap: 10, children: s.map((r) => {
|
|
150
150
|
const c = S.get(r);
|
|
151
151
|
return c ? /* @__PURE__ */ t(
|
|
152
|
-
|
|
152
|
+
ze,
|
|
153
153
|
{
|
|
154
154
|
size: "sm",
|
|
155
155
|
label: l ? l(c) : String(r),
|
|
@@ -180,7 +180,7 @@ function Ye({
|
|
|
180
180
|
children: o
|
|
181
181
|
}
|
|
182
182
|
) : /* @__PURE__ */ t(ye, { children: o });
|
|
183
|
-
}, he = V && /* @__PURE__ */ t(
|
|
183
|
+
}, he = V && /* @__PURE__ */ t(De, { children: /* @__PURE__ */ t(
|
|
184
184
|
i,
|
|
185
185
|
{
|
|
186
186
|
row: !0,
|
|
@@ -258,7 +258,7 @@ function Ye({
|
|
|
258
258
|
relative: !0,
|
|
259
259
|
onClick: () => de(e),
|
|
260
260
|
children: [
|
|
261
|
-
a && /* @__PURE__ */ t(
|
|
261
|
+
a && /* @__PURE__ */ t(We, { size: "sm", checked: c }),
|
|
262
262
|
D ? /* @__PURE__ */ t(
|
|
263
263
|
d,
|
|
264
264
|
{
|
|
@@ -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 { EDITOR_TRANSFORMERS as u } from "../../controls/MarkdownTextEditor/transformers/index.js";
|
|
10
|
+
import { markdownTextStyle as x } from "./MarkdownText.styles.js";
|
|
11
|
+
import { Text as w } from "../../builders/Text/Text.js";
|
|
12
|
+
import { EditorStateContext as E } from "../../controls/MarkdownTextEditor/contexts/EditorStateContext/EditorStateContext.js";
|
|
13
|
+
import { getEditorConfig as k } from "../../controls/MarkdownTextEditor/configs/editor.config.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(E.Provider, { value: a, children: /* @__PURE__ */ o(
|
|
31
31
|
d,
|
|
32
32
|
{
|
|
33
33
|
initialConfig: {
|
|
34
|
-
...
|
|
34
|
+
...k(),
|
|
35
35
|
editable: !1,
|
|
36
36
|
namespace: "ui-kit-markdown-text-viewer",
|
|
37
37
|
editorState: () => {
|
|
38
|
-
l(r,
|
|
38
|
+
l(r, u);
|
|
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(x, 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
|
+
w,
|
|
60
60
|
{
|
|
61
61
|
variant: "body-2",
|
|
62
62
|
colorName: "tertiary",
|
package/dist/index.js
CHANGED
|
@@ -5,102 +5,104 @@ import { Loader as f } from "./components/builders/Loader/Loader.js";
|
|
|
5
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
|
-
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 {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
8
|
+
import { Sheet as C } from "./components/builders/Sheet/index.js";
|
|
9
|
+
import { Table as h } from "./components/builders/Table/Table.js";
|
|
10
|
+
import { createColumnHelper as c } from "@tanstack/react-table";
|
|
11
|
+
import { AnimatedText as k, Text as A } from "./components/builders/Text/Text.js";
|
|
12
|
+
import { LineChart as S } from "./components/charts/LineChart/LineChart.js";
|
|
13
|
+
import { PieProgressChart as P } from "./components/charts/PieProgressChart/PieProgressChart.js";
|
|
14
|
+
import { Button as _ } from "./components/controls/Button/Button.js";
|
|
15
|
+
import { Checkbox as I } from "./components/controls/Checkbox/Checkbox.js";
|
|
16
|
+
import { IconButton as v } from "./components/controls/IconButton/IconButton.js";
|
|
17
|
+
import { Input as D } from "./components/controls/Input/Input.js";
|
|
18
|
+
import { MarkdownToolbarAction as O } from "./components/controls/MarkdownTextEditor/hooks/useToolbarActions/useToolbarActions.const.js";
|
|
19
|
+
import { MARKDOWN_TEXT_EDITOR_LOCALE_KEY as U } from "./components/controls/MarkdownTextEditor/MarkdownTextEditor.locale.js";
|
|
20
|
+
import { MarkdownTextEditor as y } from "./components/controls/MarkdownTextEditor/MarkdownTextEditor.js";
|
|
21
|
+
import { OtpInput as F } from "./components/controls/OtpInput/OtpInput.js";
|
|
22
|
+
import { Radio as N } from "./components/controls/RadioGroup/Radio.js";
|
|
23
|
+
import { RadioGroup as Y } from "./components/controls/RadioGroup/RadioGroup.js";
|
|
24
|
+
import { SegmentControl as q } from "./components/controls/SegmentControl/SegmentControl.js";
|
|
25
|
+
import { Select as Q } from "./components/controls/Select/Select.js";
|
|
26
|
+
import { Switch as Z } from "./components/controls/Switch/Switch.js";
|
|
27
|
+
import { Tabs as oo } from "./components/controls/Tabs/Tabs.js";
|
|
28
|
+
import { Breadcrumbs as eo } from "./components/navigation/Breadcrumbs/Breadcrumbs.js";
|
|
29
|
+
import { Avatar as po } from "./components/shared/Avatar/Avatar.js";
|
|
30
|
+
import { Badge as xo } from "./components/shared/Badge/Badge.js";
|
|
31
|
+
import { Counter as ao } from "./components/shared/Counter/Counter.js";
|
|
32
|
+
import { Dot as io } from "./components/shared/Dot/Dot.js";
|
|
33
|
+
import { Hint as so } from "./components/shared/Hint/Hint.js";
|
|
34
|
+
import { MarkdownText as Co } from "./components/shared/MarkdownText/MarkdownText.js";
|
|
35
|
+
import { Popover as ho } from "./components/shared/Popover/Popover.js";
|
|
36
|
+
import { Skeleton as co } from "./components/shared/Skeleton/Skeleton.js";
|
|
37
|
+
import { Tag as ko } from "./components/shared/Tag/Tag.js";
|
|
38
|
+
import { Toast as Eo } from "./components/shared/Toast/Toast.js";
|
|
39
|
+
import { useToast as Mo } from "./components/shared/Toast/Toast.hooks.js";
|
|
40
|
+
import { toast as Ro } from "./components/shared/Toast/Toast.utils.js";
|
|
41
|
+
import { ToastContainer as bo } from "./components/shared/Toast/ToastContainer.js";
|
|
42
|
+
import { Tooltip as Lo } from "./components/shared/Tooltip/Tooltip.js";
|
|
43
|
+
import { ThemeProviderScoped as wo } from "./providers/ThemeProviderScoped/ThemeProviderScoped.js";
|
|
44
|
+
import { THEME_DATA_ATTRIBUTE as Ko } from "./providers/ThemeProviderScoped/ThemeProviderScoped.const.js";
|
|
45
|
+
import { ThemeContext as Ho, useUiKitTheme as Uo } from "./providers/ThemeProviderScoped/ThemeProviderScoped.context.js";
|
|
46
|
+
import { useControlled as yo } from "./utils/hooks/useControlled.js";
|
|
47
|
+
import { useBreakpoint as Fo } from "./utils/hooks/breakpoints/useBreakpoint/useBreakpoint.js";
|
|
48
|
+
import { Breakpoints as No, BreakpointsBase as Xo } from "./utils/hooks/breakpoints/useBreakpoint/useBreakpoint.const.js";
|
|
49
|
+
import { getFontWeightClass as jo } from "./utils/styles/getFontWeightClass/getFontWeightClass.js";
|
|
50
|
+
import { getSizeClass as Jo } from "./utils/styles/getSizeClass/getSizeClass.js";
|
|
51
|
+
import { getStyleClass as Vo } from "./utils/styles/getStyleClass/getStyleClass.js";
|
|
52
|
+
import { theme as $o } from "./utils/theme/index.js";
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
k as AnimatedText,
|
|
55
|
+
po as Avatar,
|
|
56
|
+
xo as Badge,
|
|
56
57
|
m as Box,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
eo as Breadcrumbs,
|
|
59
|
+
No as Breakpoints,
|
|
60
|
+
Xo as BreakpointsBase,
|
|
61
|
+
_ as Button,
|
|
62
|
+
I as Checkbox,
|
|
63
|
+
ao as Counter,
|
|
64
|
+
io as Dot,
|
|
65
|
+
so as Hint,
|
|
66
|
+
v as IconButton,
|
|
67
|
+
D as Input,
|
|
68
|
+
S as LineChart,
|
|
68
69
|
f as Loader,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
U as MARKDOWN_TEXT_EDITOR_LOCALE_KEY,
|
|
71
|
+
Co as MarkdownText,
|
|
72
|
+
y as MarkdownTextEditor,
|
|
73
|
+
O as MarkdownToolbarAction,
|
|
73
74
|
n as Modal,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
F as OtpInput,
|
|
76
|
+
P as PieProgressChart,
|
|
77
|
+
ho as Popover,
|
|
77
78
|
T as Portal,
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
N as Radio,
|
|
80
|
+
Y as RadioGroup,
|
|
80
81
|
l as Ripple,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
bo as
|
|
82
|
+
q as SegmentControl,
|
|
83
|
+
Q as Select,
|
|
84
|
+
C as Sheet,
|
|
85
|
+
co as Skeleton,
|
|
86
|
+
Z as Switch,
|
|
87
|
+
Ko as THEME_DATA_ATTRIBUTE,
|
|
88
|
+
h as Table,
|
|
89
|
+
oo as Tabs,
|
|
90
|
+
ko as Tag,
|
|
91
|
+
A as Text,
|
|
92
|
+
Ho as ThemeContext,
|
|
93
|
+
wo as ThemeProviderScoped,
|
|
94
|
+
Eo as Toast,
|
|
95
|
+
bo as ToastContainer,
|
|
96
|
+
Lo as Tooltip,
|
|
95
97
|
t as UiKitLocaleProvider,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
98
|
+
c as createColumnHelper,
|
|
99
|
+
jo as getFontWeightClass,
|
|
100
|
+
Jo as getSizeClass,
|
|
101
|
+
Vo as getStyleClass,
|
|
102
|
+
$o as theme,
|
|
103
|
+
Ro as toast,
|
|
104
|
+
Fo as useBreakpoint,
|
|
105
|
+
yo as useControlled,
|
|
106
|
+
Mo as useToast,
|
|
107
|
+
Uo as useUiKitTheme
|
|
106
108
|
};
|
|
@@ -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";
|