@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.
Files changed (46) hide show
  1. package/README.md +29 -29
  2. package/dist/components/controls/MarkdownTextEditor/MarkdownTextEditor.js +6 -6
  3. package/dist/components/controls/Switch/Switch.d.ts +3 -3
  4. package/dist/components/controls/Switch/styles.d.ts +1 -0
  5. package/dist/components/controls/Switch/styles.js +44 -34
  6. package/dist/components/controls/Tabs/TabItem/TabItem.d.ts +5 -0
  7. package/dist/components/controls/Tabs/TabItem/TabItem.js +68 -49
  8. package/dist/components/controls/Tabs/Tabs.d.ts +6 -1
  9. package/dist/components/controls/Tabs/Tabs.js +31 -28
  10. package/dist/components/shared/Counter/Counter.const.d.ts +6 -0
  11. package/dist/components/shared/Counter/Counter.const.js +16 -0
  12. package/dist/components/shared/Counter/Counter.d.ts +11 -0
  13. package/dist/components/shared/Counter/Counter.js +58 -0
  14. package/dist/components/shared/Counter/Counter.types.d.ts +29 -0
  15. package/dist/components/shared/Counter/Counter.utils.d.ts +2 -0
  16. package/dist/components/shared/Counter/Counter.utils.js +6 -0
  17. package/dist/components/shared/Counter/index.d.ts +2 -0
  18. package/dist/components/shared/Counter/styles.d.ts +2 -0
  19. package/dist/components/shared/Counter/styles.js +11 -0
  20. package/dist/components/shared/Dot/Dot.const.d.ts +5 -0
  21. package/dist/components/shared/Dot/Dot.const.js +15 -0
  22. package/dist/components/shared/Dot/Dot.d.ts +10 -0
  23. package/dist/components/shared/Dot/Dot.js +32 -0
  24. package/dist/components/shared/Dot/Dot.types.d.ts +17 -0
  25. package/dist/components/shared/Dot/index.d.ts +2 -0
  26. package/dist/components/shared/Dot/styles.d.ts +1 -0
  27. package/dist/components/shared/Dot/styles.js +7 -0
  28. package/dist/components/shared/MarkdownText/MarkdownText.js +10 -10
  29. package/dist/components/shared/index.d.ts +2 -0
  30. package/dist/index.js +52 -48
  31. package/dist/styles/utils/breakpoints/base.scss +11 -11
  32. package/dist/styles/utils/breakpoints/index.scss +3 -3
  33. package/dist/styles/utils/breakpoints/screen.scss +61 -61
  34. package/dist/styles/utils/breakpoints/semantic.scss +31 -31
  35. package/dist/styles/utils/fonts/font-family.scss +3 -3
  36. package/dist/styles/utils/fonts/index.scss +1 -1
  37. package/dist/styles/utils/index.scss +5 -5
  38. package/dist/styles/utils/size/index.scss +1 -1
  39. package/dist/styles/utils/size/modifiers.scss +40 -40
  40. package/dist/styles/utils/style/index.scss +1 -1
  41. package/dist/styles/utils/style/variants.scss +34 -34
  42. package/dist/styles/utils/typography/_font-weight.scss +33 -33
  43. package/dist/styles/utils/typography/_variants.scss +85 -85
  44. package/dist/styles/utils/typography/index.scss +2 -2
  45. package/dist/ui-kit.cjs +8 -8
  46. 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,2 @@
1
+ import { GetCounterLabelParams } from './Counter.types';
2
+ export declare function getCounterLabel({ value, maxNumber }: GetCounterLabelParams): string;
@@ -0,0 +1,6 @@
1
+ function r({ value: t, maxNumber: n }) {
2
+ return typeof t == "string" ? t : n !== null && t > n ? `${n}+` : String(t);
3
+ }
4
+ export {
5
+ r as getCounterLabel
6
+ };
@@ -0,0 +1,2 @@
1
+ export { Counter } from './Counter';
2
+ export type { CounterColorName, CounterProps, CounterSize, } from './Counter.types';
@@ -0,0 +1,2 @@
1
+ export declare const counterStyles: string;
2
+ export declare const counterLabelStyles: string;
@@ -0,0 +1,11 @@
1
+ import { css as t } from "@emotion/css";
2
+ const e = t({
3
+ backgroundClip: "padding-box"
4
+ }), c = t({
5
+ textBoxTrim: "trim-both",
6
+ textBoxEdge: "cap alphabetic"
7
+ });
8
+ export {
9
+ c as counterLabelStyles,
10
+ e as counterStyles
11
+ };
@@ -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,2 @@
1
+ export { Dot } from './Dot';
2
+ export type { DotColorName, DotProps, DotSize } from './Dot.types';
@@ -0,0 +1 @@
1
+ export declare const dotStyles: string;
@@ -0,0 +1,7 @@
1
+ import { css as o } from "@emotion/css";
2
+ const d = o({
3
+ backgroundClip: "padding-box"
4
+ });
5
+ export {
6
+ d as dotStyles
7
+ };
@@ -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 { 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";
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(E.Provider, { value: a, children: /* @__PURE__ */ o(
30
+ return r ? /* @__PURE__ */ o(k.Provider, { value: a, children: /* @__PURE__ */ o(
31
31
  d,
32
32
  {
33
33
  initialConfig: {
34
- ...k(),
34
+ ...u(),
35
35
  editable: !1,
36
36
  namespace: "ui-kit-markdown-text-viewer",
37
37
  editorState: () => {
38
- l(r, u);
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(x, i),
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
- w,
59
+ E,
60
60
  {
61
61
  variant: "body-2",
62
62
  colorName: "tertiary",
@@ -1,5 +1,7 @@
1
1
  export * from './Avatar';
2
2
  export * from './Badge';
3
+ export * from './Counter';
4
+ export * from './Dot';
3
5
  export * from './Hint';
4
6
  export * from './MarkdownText';
5
7
  export * from './Popover';
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 i } from "./components/builders/Modal/index.js";
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 K } from "./components/controls/MarkdownTextEditor/hooks/useToolbarActions/useToolbarActions.const.js";
18
- import { MARKDOWN_TEXT_EDITOR_LOCALE_KEY as D } from "./components/controls/MarkdownTextEditor/MarkdownTextEditor.locale.js";
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 { Hint as xo } from "./components/shared/Hint/Hint.js";
31
- import { MarkdownText as ao } from "./components/shared/MarkdownText/MarkdownText.js";
32
- import { Popover as no } from "./components/shared/Popover/Popover.js";
33
- import { Skeleton as so } from "./components/shared/Skeleton/Skeleton.js";
34
- import { Tag as Co } from "./components/shared/Tag/Tag.js";
35
- import { Toast as Bo } from "./components/shared/Toast/Toast.js";
36
- import { useToast as ho } from "./components/shared/Toast/Toast.hooks.js";
37
- import { toast as ko } from "./components/shared/Toast/Toast.utils.js";
38
- import { ToastContainer as Eo } from "./components/shared/Toast/ToastContainer.js";
39
- import { Tooltip as Mo } from "./components/shared/Tooltip/Tooltip.js";
40
- import { ThemeProviderScoped as Ro } from "./providers/ThemeProviderScoped/ThemeProviderScoped.js";
41
- import { THEME_DATA_ATTRIBUTE as bo } from "./providers/ThemeProviderScoped/ThemeProviderScoped.const.js";
42
- import { ThemeContext as Lo, useUiKitTheme as vo } from "./providers/ThemeProviderScoped/ThemeProviderScoped.context.js";
43
- import { useControlled as Ko } from "./utils/hooks/useControlled.js";
44
- import { useBreakpoint as Do } from "./utils/hooks/breakpoints/useBreakpoint/useBreakpoint.js";
45
- import { Breakpoints as Uo, BreakpointsBase as Wo } from "./utils/hooks/breakpoints/useBreakpoint/useBreakpoint.const.js";
46
- import { getFontWeightClass as zo } from "./utils/styles/getFontWeightClass/getFontWeightClass.js";
47
- import { getSizeClass as Go } from "./utils/styles/getSizeClass/getSizeClass.js";
48
- import { getStyleClass as Xo } from "./utils/styles/getStyleClass/getStyleClass.js";
49
- import { theme as jo } from "./utils/theme/index.js";
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
- Uo as Breakpoints,
57
- Wo as BreakpointsBase,
58
+ Fo as Breakpoints,
59
+ Go as BreakpointsBase,
58
60
  P as Button,
59
61
  _ as Checkbox,
60
- xo as Hint,
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
- D as MARKDOWN_TEXT_EDITOR_LOCALE_KEY,
66
- ao as MarkdownText,
69
+ O as MARKDOWN_TEXT_EDITOR_LOCALE_KEY,
70
+ so as MarkdownText,
67
71
  U as MarkdownTextEditor,
68
- K as MarkdownToolbarAction,
69
- i as Modal,
72
+ D as MarkdownToolbarAction,
73
+ n as Modal,
70
74
  y as OtpInput,
71
75
  S as PieProgressChart,
72
- no as Popover,
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
- so as Skeleton,
83
+ Bo as Skeleton,
80
84
  Q as Switch,
81
- bo as THEME_DATA_ATTRIBUTE,
85
+ wo as THEME_DATA_ATTRIBUTE,
82
86
  C as Table,
83
87
  Z as Tabs,
84
- Co as Tag,
88
+ ho as Tag,
85
89
  g as Text,
86
- Lo as ThemeContext,
87
- Ro as ThemeProviderScoped,
88
- Bo as Toast,
89
- Eo as ToastContainer,
90
- Mo as Tooltip,
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
- zo as getFontWeightClass,
94
- Go as getSizeClass,
95
- Xo as getStyleClass,
96
- jo as theme,
97
- ko as toast,
98
- Do as useBreakpoint,
99
- Ko as useControlled,
100
- ho as useToast,
101
- vo as useUiKitTheme
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
+ }