@lazar-ui/kit 0.5.2 → 0.6.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.
Files changed (106) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/Actions-CEIXfLKN.mjs +26 -0
  3. package/dist/Actions.css +1 -0
  4. package/dist/ActiveFilters-BJojmc-d.mjs +29 -0
  5. package/dist/ActiveFilters.css +1 -0
  6. package/dist/Button-BN85EtaZ.mjs +52 -0
  7. package/dist/Button.css +1 -1
  8. package/dist/Cell-BPBvEyeL.mjs +21 -0
  9. package/dist/Cell.css +1 -0
  10. package/dist/Checkbox-Chfzm1Z9.mjs +46 -0
  11. package/dist/Checkbox.css +1 -0
  12. package/dist/Content-ru2X8iBx.mjs +13 -0
  13. package/dist/Content.css +1 -0
  14. package/dist/Group-DyDpeqOP.mjs +16 -0
  15. package/dist/Group.css +1 -0
  16. package/dist/Header-Clhgyr0J.mjs +29 -0
  17. package/dist/Header.css +1 -0
  18. package/dist/Heading-CL47Fqe7.mjs +30 -0
  19. package/dist/Heading.css +1 -0
  20. package/dist/InputBase-BHZWQT9-.mjs +46 -0
  21. package/dist/Item-JbyvZy05.mjs +66 -0
  22. package/dist/Item.css +1 -0
  23. package/dist/Panel-Q06TIYep.mjs +12 -0
  24. package/dist/Provider-CBfZpO45.mjs +12 -0
  25. package/dist/Row-C-3TXoDz.mjs +15 -0
  26. package/dist/Row.css +1 -0
  27. package/dist/Tab-CR0KvVaA.mjs +39 -0
  28. package/dist/Tab.css +1 -0
  29. package/dist/Text-DiOqZt8E.mjs +49 -0
  30. package/dist/Text.css +1 -0
  31. package/dist/Title-aOeFD24v.mjs +13 -0
  32. package/dist/Title.css +1 -0
  33. package/dist/Toolbar-BJQy4qFI.mjs +11 -0
  34. package/dist/Toolbar.css +1 -0
  35. package/dist/Trigger-C_4De6l1.mjs +11 -0
  36. package/dist/accordion.js +1 -1
  37. package/dist/actions.d.ts +13 -0
  38. package/dist/actions.js +4 -0
  39. package/dist/active-filters.d.ts +35 -0
  40. package/dist/active-filters.js +4 -0
  41. package/dist/breadcrumbs.js +1 -1
  42. package/dist/button.js +1 -1
  43. package/dist/cell.d.ts +20 -0
  44. package/dist/cell.js +4 -0
  45. package/dist/checkbox.d.ts +10 -35
  46. package/dist/checkbox.js +2 -40
  47. package/dist/content.d.ts +8 -0
  48. package/dist/content.js +4 -0
  49. package/dist/context.d.ts +44 -0
  50. package/dist/context.js +7 -0
  51. package/dist/dialog.css +1 -1
  52. package/dist/dialog.js +37 -44
  53. package/dist/drawer.css +1 -1
  54. package/dist/drawer.js +72 -93
  55. package/dist/empty-state.css +1 -1
  56. package/dist/empty-state.js +29 -48
  57. package/dist/enums-BnuDYTua.mjs +4 -0
  58. package/dist/enums-CiPhZomh.mjs +6 -0
  59. package/dist/enums-DUZMBQDd.mjs +7 -0
  60. package/dist/{getComponentSlots-DwAYUFNk.mjs → getComponentSlots-DD4iju8N.mjs} +1 -1
  61. package/dist/group.d.ts +12 -0
  62. package/dist/group.js +4 -0
  63. package/dist/header.d.ts +21 -0
  64. package/dist/header.js +4 -0
  65. package/dist/heading.d.ts +55 -0
  66. package/dist/heading.js +7 -0
  67. package/dist/input-base.d.ts +29 -0
  68. package/dist/input-base.js +4 -0
  69. package/dist/input.js +86 -124
  70. package/dist/isValidReactNode-D1buElhX.mjs +17 -0
  71. package/dist/item.d.ts +16 -0
  72. package/dist/item.js +4 -0
  73. package/dist/menu.css +1 -1
  74. package/dist/menu.js +46 -103
  75. package/dist/pagination.js +48 -60
  76. package/dist/panel.d.ts +9 -0
  77. package/dist/panel.js +4 -0
  78. package/dist/radio.css +1 -1
  79. package/dist/radio.js +42 -98
  80. package/dist/row.d.ts +12 -0
  81. package/dist/row.js +4 -0
  82. package/dist/tab.d.ts +30 -0
  83. package/dist/tab.js +4 -0
  84. package/dist/table.css +1 -1
  85. package/dist/table.js +25 -74
  86. package/dist/tabs.css +1 -1
  87. package/dist/tabs.js +30 -72
  88. package/dist/text.d.ts +74 -0
  89. package/dist/text.js +8 -0
  90. package/dist/title.d.ts +8 -0
  91. package/dist/title.js +4 -0
  92. package/dist/toolbar.d.ts +20 -0
  93. package/dist/toolbar.js +4 -0
  94. package/dist/trigger.d.ts +8 -0
  95. package/dist/trigger.js +4 -0
  96. package/dist/typography.d.ts +90 -40
  97. package/dist/typography.js +4 -38
  98. package/dist/useTabsContext-DdF09jQq.mjs +11 -0
  99. package/dist/utils.d.ts +2 -55
  100. package/dist/utils.js +14 -15
  101. package/package.json +1 -1
  102. package/dist/Button-jq8mFP6t.mjs +0 -52
  103. package/dist/checkbox.css +0 -1
  104. package/dist/isValidReactNode-CmYwTWCE.mjs +0 -18
  105. package/dist/typography.css +0 -1
  106. /package/dist/{input.css → InputBase.css} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { default as default_2 } from 'react';
2
2
 
3
- declare enum ETypographyColor {
3
+ declare enum EHeadingColor {
4
4
  PRIMARY = "primary",
5
5
  SECONDARY = "secondary",
6
6
  TERTIARY = "tertiary",
@@ -8,69 +8,119 @@ declare enum ETypographyColor {
8
8
  BRAND = "brand"
9
9
  }
10
10
 
11
- declare enum ETypographySize {
11
+ declare enum EHeadingSize {
12
12
  XS = "xs",
13
13
  SM = "sm",
14
14
  MD = "md",
15
- LG = "lg",
16
- XL = "xl",
17
- XXL = "xxl"
15
+ LG = "lg"
18
16
  }
19
17
 
20
- declare enum ETypographyVariant {
21
- HEADLINE = "headline",
22
- BODY = "body",
23
- LABEL = "label"
18
+ declare enum ETextColor {
19
+ PRIMARY = "primary",
20
+ SECONDARY = "secondary",
21
+ TERTIARY = "tertiary",
22
+ DISABLED = "disabled",
23
+ BRAND = "brand"
24
24
  }
25
25
 
26
- export declare interface ITypographyProps extends default_2.PropsWithChildren {
27
- /** HTML tag to render. Defaults: `h2` for headline, `p` for body, `span` for label. */
28
- as?: TTypographyTag;
29
- /** Color token variant. */
30
- color?: TTypographyColor;
31
- /** Ref to the root element. */
32
- ref?: default_2.Ref<HTMLElement>;
33
- /** Typography variant (stylistic group): `headline`, `body`, `label`. */
34
- variant?: TTypographyVariant;
35
- /** Typography size. */
36
- size?: TTypographySize;
37
- /** Truncate text with ellipsis (single-line). */
38
- truncate?: boolean;
26
+ declare enum ETextSize {
27
+ XS = "xs",
28
+ SM = "sm",
29
+ MD = "md",
30
+ LG = "lg"
39
31
  }
40
32
 
41
- declare type TTypographyColor = `${ETypographyColor}`;
42
-
43
- declare type TTypographySize = `${ETypographySize}`;
44
-
45
- declare type TTypographyTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div';
46
-
47
- declare type TTypographyVariant = `${ETypographyVariant}`;
33
+ declare enum ETextWeight {
34
+ NORMAL = "normal",
35
+ MEDIUM = "medium",
36
+ SEMIBOLD = "semibold",
37
+ BOLD = "bold"
38
+ }
48
39
 
49
40
  /**
50
- * Typography component. Renders text with preset combinations of font-size, font-weight, line-height, and letter-spacing.
41
+ * Heading component. Renders a semantic HTML heading (`h1`–`h6`) with preset
42
+ * font-size, font-weight, line-height, and optional letter-spacing.
51
43
  *
52
- * Supports three stylistic groups (`headline`, `body`, `label`) with various sizes.
53
- * Each combination maps to predefined CSS tokens for consistent typography across the UI.
44
+ * Each size maps to a predefined set of CSS tokens for consistent typography across the UI.
54
45
  *
55
46
  * @example
56
47
  * ```tsx
57
- * <Typography variant="headline" size="xl">Headline XL</Typography>
48
+ * <Heading as="h1" size="lg">Page title</Heading>
58
49
  * ```
59
50
  *
60
51
  * @example
61
52
  * ```tsx
62
- * <Typography variant="body" size="md" color="secondary">
63
- * Body secondary text
64
- * </Typography>
53
+ * <Heading size="xs" color="secondary">Subtitle</Heading>
65
54
  * ```
55
+ */
56
+ export declare const Heading: default_2.FC<IHeadingProps>;
57
+
58
+ export declare interface IHeadingProps extends default_2.PropsWithChildren {
59
+ /** HTML tag to render. Default: `h2`. */
60
+ as?: THeadingTag;
61
+ /** Heading size. Default: `sm`. */
62
+ size?: THeadingSize;
63
+ /** Text color token. */
64
+ color?: THeadingColor;
65
+ /** Truncate text with ellipsis (single-line). */
66
+ truncate?: boolean;
67
+ /** Ref to the root heading element. */
68
+ ref?: default_2.Ref<HTMLHeadingElement>;
69
+ }
70
+
71
+ export declare interface ITextProps extends default_2.PropsWithChildren {
72
+ /** HTML-тег для рендера корневого элемента. По умолчанию `p`. */
73
+ as?: TTextTag;
74
+ /** Размер текста. По умолчанию `sm`. */
75
+ size?: TTextSize;
76
+ /** Насыщенность шрифта. По умолчанию `normal`. */
77
+ weight?: TTextWeight;
78
+ /** Цвет текста из дизайн-системы. Если не передан — используется наследованный цвет. */
79
+ color?: TTextColor;
80
+ /** Обрезать текст с многоточием (одна строка, `text-overflow: ellipsis`). */
81
+ truncate?: boolean;
82
+ /** Подчёркивание: `true` для обычного underline, `'dotted'` для пунктирного подчёркивания. */
83
+ underline?: boolean | 'dotted';
84
+ /** Зачёркивание текста (`text-decoration: line-through`). */
85
+ strikethrough?: boolean;
86
+ /** Ref на корневой элемент. */
87
+ ref?: default_2.Ref<HTMLElement>;
88
+ }
89
+
90
+ /**
91
+ * Text — компонент для отображения основного текста.
92
+ *
93
+ * Поддерживает размеры от 12px (xs) до 16px (lg), различные насыщенности шрифта
94
+ * и цвета из дизайн-системы. Подходит для параграфов, лейблов, аннотаций.
95
+ *
96
+ * В отличие от Heading, Text не имеет встроенного жирного начертания —
97
+ * вес управляется отдельным пропом `weight`.
66
98
  *
67
99
  * @example
68
100
  * ```tsx
69
- * <Typography variant="label" size="sm" as="span">
70
- * Small label
71
- * </Typography>
101
+ * <Text size="lg" weight="medium">Основной текст</Text>
102
+ * ```
103
+ *
104
+ * @example
105
+ * ```tsx
106
+ * <Text size="xs" color="secondary" as="span">Аннотация</Text>
72
107
  * ```
73
108
  */
74
- export declare const Typography: default_2.FC<ITypographyProps>;
109
+ declare const Text_2: default_2.ForwardRefExoticComponent<Omit<ITextProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
110
+ export { Text_2 as Text }
111
+
112
+ declare type THeadingColor = `${EHeadingColor}`;
113
+
114
+ declare type THeadingSize = `${EHeadingSize}`;
115
+
116
+ declare type THeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
117
+
118
+ declare type TTextColor = `${ETextColor}`;
119
+
120
+ declare type TTextSize = `${ETextSize}`;
121
+
122
+ declare type TTextTag = 'p' | 'span' | 'div';
123
+
124
+ declare type TTextWeight = `${ETextWeight}`;
75
125
 
76
126
  export { }
@@ -1,40 +1,6 @@
1
- import d from "react";
2
- import h from "clsx";
3
- import { g as o } from "./getVariantClassName-DoCNtwBw.mjs";
4
- import './typography.css';const y = "Typography", z = "_root_wamht_5", w = "_truncate_wamht_9", p = "_variantHeadline_wamht_15", v = "_sizeLg_wamht_15", b = "_sizeXl_wamht_21", g = "_sizeXxl_wamht_27", X = "_variantBody_wamht_34", L = "_sizeXs_wamht_34", S = "_sizeSm_wamht_40", u = "_sizeMd_wamht_46", B = "_variantLabel_wamht_59", M = "_colorPrimary_wamht_78", f = "_colorSecondary_wamht_82", x = "_colorTertiary_wamht_86", N = "_colorDisabled_wamht_90", T = "_colorBrand_wamht_94", a = {
5
- root: z,
6
- truncate: w,
7
- variantHeadline: p,
8
- sizeLg: v,
9
- sizeXl: b,
10
- sizeXxl: g,
11
- variantBody: X,
12
- sizeXs: L,
13
- sizeSm: S,
14
- sizeMd: u,
15
- variantLabel: B,
16
- colorPrimary: M,
17
- colorSecondary: f,
18
- colorTertiary: x,
19
- colorDisabled: N,
20
- colorBrand: T
21
- }, D = (s) => {
22
- const { as: e, children: n, color: t, ref: c, size: i = "sm", truncate: _ = !1, variant: r = "body" } = s, l = e || {
23
- body: "p",
24
- headline: "h2",
25
- label: "span"
26
- }[r] || "p", m = h(
27
- a.root,
28
- o("variant", r, a),
29
- o("size", i, a),
30
- t && o("color", t, a),
31
- {
32
- [a.truncate]: _
33
- }
34
- );
35
- return d.createElement(l, { className: m, ref: c }, n);
36
- };
37
- D.displayName = y;
1
+ import { H as r } from "./Heading-CL47Fqe7.mjs";
2
+ import { T as t } from "./Text-DiOqZt8E.mjs";
38
3
  export {
39
- D as Typography
4
+ r as Heading,
5
+ t as Text
40
6
  };
@@ -0,0 +1,11 @@
1
+ import { createContext as e, useContext as o } from "react";
2
+ const n = e(null), r = () => {
3
+ const t = o(n);
4
+ if (!t)
5
+ throw new Error("useTabsContext should be used inside Tabs component");
6
+ return t;
7
+ };
8
+ export {
9
+ n as C,
10
+ r as u
11
+ };
package/dist/utils.d.ts CHANGED
@@ -1,58 +1,5 @@
1
- import { default as default_2 } from 'react';
1
+ export declare const getPageRange: (current: number, total: number) => TPageItem[];
2
2
 
3
- /**
4
- * Фильтрует массив дочерних React-элементов, оставляя только допустимые компоненты
5
- * @param children - Дочерние элементы React компонента
6
- * @param acceptableComponents - Массив или объект с допустимыми подкомпонентами
7
- * @returns Массив отфильтрованных дочерних элементов
8
- */
9
- export declare const filterValidChildren: (children: default_2.ReactNode, acceptableComponents: string | string[]) => default_2.ReactNode[];
10
-
11
- /**
12
- * Utility function to get component slots.
13
- * @param children React children (array of ReactNodes).
14
- * @param slots Array of slot names.
15
- * @returns
16
- */
17
- export declare const getComponentSlots: <T extends string>(children: default_2.ReactNode, slots: readonly T[]) => IDefaultSlotNode & { [key in T]: default_2.ReactElement; };
18
-
19
- /**
20
- * Utility to get the display name of a react element.
21
- * @param element react element to get the display name.
22
- * @returns
23
- */
24
- export declare const getReactElementDisplayName: (element: default_2.ReactElement) => string;
25
-
26
- /**
27
- * Utility function to get type-safety variant class name selector from CSS module stylesheet.
28
- * @param prefix prefix for class name (name of variant).
29
- * @param variant value of variant.
30
- * @param styles styles of CSS module stylesheet.
31
- *
32
- * @example
33
- * // Check `styles` for existing variant and return value of `styles.sizeMd`.
34
- * getVariantClassName('size', 'md', styles);
35
- */
36
- export declare const getVariantClassName: <P extends string, T extends string>(prefix: P, variant: T, styles: TStyles<`${P}${Capitalize<T>}`>) => string;
37
-
38
- declare interface IDefaultSlotNode {
39
- children: default_2.ReactNode[];
40
- [key: string]: default_2.ReactNode;
41
- }
42
-
43
- /**
44
- * TypeGuard for checking if a React node is valid.
45
- * @param name - name of the component
46
- * @param node - React node.
47
- * @param logWarning - if true, warning will be logged, otherwise it will be ignored.
48
- * @returns
49
- */
50
- export declare const isValidReactNode: <TProps extends object>(name: string | string[], node: default_2.ReactNode, logWarning?: boolean) => node is default_2.ReactElement<TProps>;
51
-
52
- /**
53
- * Record of CSS modules styles for all variants.
54
- * Must contain styles for all variants.
55
- */
56
- declare type TStyles<TProperty extends string = string> = Record<TProperty, string> & Record<string, string>;
3
+ export declare type TPageItem = number | 'ellipsis';
57
4
 
58
5
  export { }
package/dist/utils.js CHANGED
@@ -1,18 +1,17 @@
1
- import a from "react";
2
- import { i } from "./isValidReactNode-CmYwTWCE.mjs";
3
- import { g as f } from "./isValidReactNode-CmYwTWCE.mjs";
4
- import { g } from "./getComponentSlots-DwAYUFNk.mjs";
5
- import { g as C } from "./getVariantClassName-DoCNtwBw.mjs";
6
- const l = (r, o) => {
7
- const e = [];
8
- return a.Children.forEach(r, (t) => {
9
- i(o, t) && e.push(t);
10
- }), e;
1
+ const s = (i, n) => Array.from({ length: n - i + 1 }, (c, l) => i + l), u = (i, n) => {
2
+ if (n <= 7)
3
+ return s(1, n);
4
+ const t = Math.max(i - 1, 1), e = Math.min(i + 1, n), o = t > 2, r = e < n - 1;
5
+ if (!o && r) {
6
+ const g = Math.min(e + 1, n);
7
+ return [...s(1, g), "ellipsis", n];
8
+ }
9
+ if (o && !r) {
10
+ const g = Math.max(t - 1, 1);
11
+ return [1, "ellipsis", ...s(g, n)];
12
+ }
13
+ return [1, "ellipsis", ...s(t, e), "ellipsis", n];
11
14
  };
12
15
  export {
13
- l as filterValidChildren,
14
- g as getComponentSlots,
15
- f as getReactElementDisplayName,
16
- C as getVariantClassName,
17
- i as isValidReactNode
16
+ u as getPageRange
18
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazar-ui/kit",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "license": "MIT",
5
5
  "description": "A component library for building admin panels, dashboards, and internal tools.",
6
6
  "homepage": "https://lazar-ui.github.io/docs",
@@ -1,52 +0,0 @@
1
- import { jsxs as z, jsx as s } from "react/jsx-runtime";
2
- import v from "clsx";
3
- import { I as y } from "./Icon-DUCBChX2.mjs";
4
- import { g as o } from "./getVariantClassName-DoCNtwBw.mjs";
5
- import './Button.css';const g = "Button", h = "_root_1lm86_21", x = "_modeFilled_1lm86_32", S = "_variantPrimary_1lm86_32", b = "_pressed_1lm86_36", N = "_variantSecondary_1lm86_42", W = "_variantDanger_1lm86_52", C = "_disabled_1lm86_62", D = "_modeOutlined_1lm86_69", L = "_modeText_1lm86_94", M = "_fullWidth_1lm86_118", P = "_sizeSm_1lm86_121", B = "_sizeMd_1lm86_128", F = "_sizeLg_1lm86_135", I = "_icon_1lm86_143", e = {
6
- root: h,
7
- modeFilled: x,
8
- variantPrimary: S,
9
- pressed: b,
10
- variantSecondary: N,
11
- variantDanger: W,
12
- disabled: C,
13
- modeOutlined: D,
14
- modeText: L,
15
- fullWidth: M,
16
- sizeSm: P,
17
- sizeMd: B,
18
- sizeLg: F,
19
- icon: I
20
- }, O = (a) => {
21
- const {
22
- children: t,
23
- disabled: i = !1,
24
- fullWidth: l = !1,
25
- icon: n,
26
- mode: r = "filled",
27
- onClick: d,
28
- size: m = "md",
29
- variant: _ = "primary",
30
- pressed: c,
31
- as: p = "button",
32
- ...f
33
- } = a, u = v(
34
- e.root,
35
- o("size", m, e),
36
- o("variant", _, e),
37
- o("mode", r, e),
38
- {
39
- [e.fullWidth]: l,
40
- [e.pressed]: c,
41
- [e.disabled]: i
42
- }
43
- );
44
- return /* @__PURE__ */ z(p, { className: u, disabled: i, onClick: d, ...f, children: [
45
- n && /* @__PURE__ */ s("span", { className: e.icon, children: /* @__PURE__ */ s(y, { name: n, size: 16 }) }),
46
- t && /* @__PURE__ */ s("span", { children: t })
47
- ] });
48
- };
49
- O.displayName = g;
50
- export {
51
- O as B
52
- };
package/dist/checkbox.css DELETED
@@ -1 +0,0 @@
1
- :root{--checkbox-bg: var(--lui-color-background-primary);--checkbox-border: var(--lui-color-border-primary);--checkbox-checked-bg: var(--lui-color-background-brand);--checkbox-checked-border: var(--lui-color-background-brand);--checkbox-check-color: var(--lui-color-text-on-brand);--checkbox-disabled-bg: var(--lui-color-background-disabled);--checkbox-disabled-border: var(--lui-color-border-disabled);--checkbox-disabled-check: var(--lui-color-text-disabled);--checkbox-invalid-border: var(--lui-color-border-focus-error);--checkbox-radius: var(--lui-radius-1);--checkbox-gap-sm: var(--lui-space-1);--checkbox-gap-md: var(--lui-space-2)}._root_tw8jr_16{align-items:center;cursor:pointer;display:flex;position:relative;-webkit-user-select:none;user-select:none;width:100%}._root_tw8jr_16._disabled_tw8jr_24{cursor:not-allowed}._root_tw8jr_16._disabled_tw8jr_24 ._checkbox_tw8jr_27:before{background-color:var(--checkbox-disabled-bg);border-color:var(--checkbox-disabled-border)}._root_tw8jr_16._disabled_tw8jr_24 ._input_tw8jr_31:checked+._checkbox_tw8jr_27:after,._root_tw8jr_16._disabled_tw8jr_24._indeterminate_tw8jr_31 ._checkbox_tw8jr_27:after{background-color:var(--checkbox-disabled-check)}._root_tw8jr_16._invalid_tw8jr_34 ._checkbox_tw8jr_27:before{border-color:var(--checkbox-invalid-border)}._root_tw8jr_16._sizeSm_tw8jr_37{gap:var(--checkbox-gap-sm)}._root_tw8jr_16._sizeSm_tw8jr_37 ._checkbox_tw8jr_27{flex-basis:20px;height:20px;width:20px}._root_tw8jr_16._sizeSm_tw8jr_37 ._checkbox_tw8jr_27:after{height:12px;width:12px}._root_tw8jr_16._sizeSm_tw8jr_37 ._label_tw8jr_49{font-size:var(--lui-font-size-sm);font-weight:var(--lui-font-weight-medium);line-height:var(--line-height-sm)}._root_tw8jr_16._sizeMd_tw8jr_54{gap:var(--checkbox-gap-md)}._root_tw8jr_16._sizeMd_tw8jr_54 ._checkbox_tw8jr_27{flex-basis:24px;height:24px;width:24px}._root_tw8jr_16._sizeMd_tw8jr_54 ._checkbox_tw8jr_27:after{height:14px;width:14px}._root_tw8jr_16._sizeMd_tw8jr_54 ._label_tw8jr_49{font-size:var(--lui-font-size-md);font-weight:var(--lui-font-weight-medium);line-height:var(--line-height-md)}._root_tw8jr_16._sizeLg_tw8jr_71{gap:var(--checkbox-gap-md)}._root_tw8jr_16._sizeLg_tw8jr_71 ._checkbox_tw8jr_27{flex-basis:28px;height:28px;width:28px}._root_tw8jr_16._sizeLg_tw8jr_71 ._checkbox_tw8jr_27:after{height:16px;width:16px}._root_tw8jr_16._sizeLg_tw8jr_71 ._label_tw8jr_49{font-size:var(--lui-font-size-lg);font-weight:var(--lui-font-weight-medium);line-height:var(--line-height-lg)}._checkbox_tw8jr_27{flex-grow:0;flex-shrink:0;padding:2px;position:relative}._checkbox_tw8jr_27:after{background-color:var(--checkbox-bg);content:"";height:14px;inset:0;margin:auto;position:absolute;width:14px}._checkbox_tw8jr_27:before{background-color:var(--checkbox-bg);border:1px solid var(--checkbox-border);border-radius:var(--checkbox-radius);content:"";inset:2px;position:absolute}._input_tw8jr_31:checked+._checkbox_tw8jr_27:before,._indeterminate_tw8jr_31 ._checkbox_tw8jr_27:before{background-color:var(--checkbox-checked-bg);border-color:var(--checkbox-checked-border)}._input_tw8jr_31:checked+._checkbox_tw8jr_27:after{clip-path:path(evenodd,"M10.9593 2.79299C11.3498 2.40252 11.9828 2.40263 12.3734 2.79299C12.7639 3.18352 12.7639 3.81653 12.3734 4.20706L5.95735 10.624C5.56693 11.0145 4.93383 11.0142 4.54328 10.624L1.62629 7.70706L1.55793 7.63089C1.23758 7.23811 1.26018 6.65911 1.62629 6.29299C1.99241 5.92688 2.57141 5.90429 2.96418 6.22464L3.04035 6.29299L5.24934 8.50198L10.9593 2.79299Z")}._indeterminate_tw8jr_31 ._checkbox_tw8jr_27:after{clip-path:path(evenodd,"M11.0836 6L11.1852 6.00488C11.6896 6.05592 12.0836 6.4821 12.0836 7C12.0836 7.5179 11.6896 7.94408 11.1852 7.99512L11.0836 8H2.91666C2.36437 8 1.91666 7.55228 1.91666 7C1.91666 6.44772 2.36437 6 2.91666 6H11.0836Z")}._input_tw8jr_31{left:0;position:absolute;visibility:hidden}._label_tw8jr_49{color:var(--lui-color-text-secondary);display:block}
@@ -1,18 +0,0 @@
1
- import { isValidElement as y } from "react";
2
- const c = (t) => t.type ? typeof t.type == "string" ? t.type : "displayName" in t.type ? t.type.displayName : t.type.name : "", r = (t, e) => t === e, n = (t, e, o = !0) => {
3
- const s = Array.isArray(t);
4
- let i = !1;
5
- if (y(e)) {
6
- const a = c(e);
7
- s ? i = t.some((p) => r(p, a)) : i = r(t, a);
8
- }
9
- if (!i && o) {
10
- let a = t;
11
- s && (a = t.join(", ")), console.warn("Invalid React node. Node should be an instance of %s", a);
12
- }
13
- return i;
14
- };
15
- export {
16
- c as g,
17
- n as i
18
- };
@@ -1 +0,0 @@
1
- :root{--typography-headline-lg-size: 18px}._root_wamht_5{font-family:var(--lui-font-family-body);margin:0}._root_wamht_5._truncate_wamht_9{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._variantHeadline_wamht_15._sizeLg_wamht_15{font-size:var(--typography-headline-lg-size);font-weight:var(--lui-font-weight-semibold);letter-spacing:normal;line-height:var(--line-height-lg)}._variantHeadline_wamht_15._sizeXl_wamht_21{font-size:var(--lui-font-size-xl);font-weight:var(--lui-font-weight-semibold);letter-spacing:-.01em;line-height:var(--line-height-xl)}._variantHeadline_wamht_15._sizeXxl_wamht_27{font-size:var(--lui-font-size-2xl);font-weight:var(--lui-font-weight-bold);letter-spacing:-.02em;line-height:var(--line-height-2xl)}._variantBody_wamht_34._sizeXs_wamht_34{font-size:var(--lui-font-size-xs);font-weight:var(--lui-font-weight-normal);letter-spacing:normal;line-height:var(--line-height-xs)}._variantBody_wamht_34._sizeSm_wamht_40{font-size:var(--lui-font-size-sm);font-weight:var(--lui-font-weight-normal);letter-spacing:normal;line-height:var(--line-height-sm)}._variantBody_wamht_34._sizeMd_wamht_46{font-size:var(--lui-font-size-md);font-weight:var(--lui-font-weight-normal);letter-spacing:normal;line-height:var(--line-height-md)}._variantBody_wamht_34._sizeLg_wamht_15{font-size:var(--lui-font-size-lg);font-weight:var(--lui-font-weight-normal);letter-spacing:normal;line-height:var(--line-height-lg)}._variantLabel_wamht_59._sizeXs_wamht_34{font-size:var(--lui-font-size-xs);font-weight:var(--lui-font-weight-medium);letter-spacing:.02em;line-height:var(--line-height-xs)}._variantLabel_wamht_59._sizeSm_wamht_40{font-size:var(--lui-font-size-sm);font-weight:var(--lui-font-weight-medium);letter-spacing:normal;line-height:var(--line-height-sm)}._variantLabel_wamht_59._sizeMd_wamht_46{font-size:var(--lui-font-size-md);font-weight:var(--lui-font-weight-medium);letter-spacing:normal;line-height:var(--line-height-md)}._colorPrimary_wamht_78{color:var(--lui-color-text-primary)}._colorSecondary_wamht_82{color:var(--lui-color-text-secondary)}._colorTertiary_wamht_86{color:var(--lui-color-text-tertiary)}._colorDisabled_wamht_90{color:var(--lui-color-text-disabled)}._colorBrand_wamht_94{color:var(--lui-color-text-link)}
File without changes