@arthurzakharov/ui-kit 1.6.3 → 1.6.5

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.
@@ -0,0 +1 @@
1
+ ._ButtonText_162ei_1{display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xs);border-radius:var(--rm-ui-border-radius-sm)}._TextPrimary_162ei_10{color:var(--rm-ui-color-text-primary)}._TextSecondary_162ei_14{color:var(--rm-ui-color-text-secondary)}._AccentPrimary_162ei_18{color:var(--rm-ui-color-accent-primary)}._AccentSecondary_162ei_22{color:var(--rm-ui-color-accent-secondary)}._ThemePrimary_162ei_26{color:var(--rm-ui-color-theme-primary)}._ThemeSecondary_162ei_30{color:var(--rm-ui-color-theme-secondary)}._Link_162ei_34{color:var(--rm-ui-color-link)}._Left_162ei_38{flex-direction:row}._Right_162ei_42{flex-direction:row-reverse}._Icon_162ei_46{stroke-width:1.5}._SM_162ei_50 ._Icon_162ei_46{width:20px;height:20px}._MD_162ei_55 ._Icon_162ei_46{width:24px;height:24px}._LG_162ei_60 ._Icon_162ei_46{width:26px;height:26px}._SM_162ei_50 ._Content_162ei_65{font-size:var(--rm-ui-font-size-body-small);line-height:calc(var(--rm-ui-line-height-body-small) - var(--rm-ui-padding-xxs) * 2)}._MD_162ei_55 ._Content_162ei_65{font-size:var(--rm-ui-font-size-body);line-height:calc(var(--rm-ui-line-height-body) - var(--rm-ui-padding-xxs) * 2)}._LG_162ei_60 ._Content_162ei_65{font-size:var(--rm-ui-font-size-hl4);line-height:calc(var(--rm-ui-line-height-hl4) - var(--rm-ui-padding-xxs) * 2)}._Content_162ei_65{text-decoration:none}._Light_162ei_84{font-weight:var(--rm-ui-font-weight-light)}._Regular_162ei_88{font-weight:var(--rm-ui-font-weight-regular)}._Medium_162ei_92{font-weight:var(--rm-ui-font-weight-medium)}._Bold_162ei_96{font-weight:var(--rm-ui-font-weight-bold)}._Underlined_162ei_100{text-decoration:underline}
@@ -0,0 +1 @@
1
+ ._Checkbox_d6btg_1{display:flex;flex-direction:column}._Label_d6btg_6{position:relative;display:inline-flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._Label_d6btg_6:hover{cursor:pointer}._Choice_d6btg_19{position:relative;left:0;top:3px}._Content_d6btg_25{font-weight:var(--rm-ui-font-weight-regular);color:var(--rm-ui-color-text-primary)}._Content_d6btg_25 button,._Content_d6btg_25 span[role=button]{color:var(--rm-ui-color-link);display:inline;background:none;font:inherit;font-size:inherit;line-height:inherit}._Content_d6btg_25 button:hover,._Content_d6btg_25 span[role=button]:hover{cursor:pointer;text-decoration:underline}._Content_d6btg_25 button:focus-visible,._Content_d6btg_25 span[role=button]:focus-visible{outline-color:var(--rm-ui-color-focus)}._Body_d6btg_51{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._BodySmall_d6btg_56{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._ErrorMessage_d6btg_61{padding-top:var(--rm-ui-padding-xxs)}
@@ -1203,6 +1203,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1nnjp_1", lt = "_Main_1nnjp_
1203
1203
  ie,
1204
1204
  {
1205
1205
  blurAfterClick: !0,
1206
+ color: "link",
1206
1207
  text: "Per Hand/Maus unterschreiben",
1207
1208
  underlined: !0,
1208
1209
  className: U.AutoPanelButton,
@@ -1,28 +1,29 @@
1
- import { jsxs as S, jsx as _ } from "react/jsx-runtime";
2
- import a from "clsx";
3
- import { withControl as f, baseProps as l } from "../../../utils/functions/functions.util.js";
1
+ import { jsxs as L, jsx as _ } from "react/jsx-runtime";
2
+ import o from "clsx";
3
+ import { withControl as f, baseProps as a } from "../../../utils/functions/functions.util.js";
4
4
  import { Svg as g } from "../../../utils/svg/svg.component.js";
5
- import '../../../assets/button-text-D-i7Ce3y.css';const p = "_ButtonText_lje93_1", L = "_TextPrimary_lje93_10", M = "_TextSecondary_lje93_14", P = "_AccentPrimary_lje93_18", B = "_AccentSecondary_lje93_22", A = "_ThemePrimary_lje93_26", R = "_ThemeSecondary_lje93_30", C = "_Left_lje93_34", b = "_Right_lje93_38", D = "_Icon_lje93_42", G = "_SM_lje93_46", I = "_MD_lje93_51", N = "_LG_lje93_56", U = "_Content_lje93_61", v = "_Light_lje93_80", k = "_Regular_lje93_84", F = "_Medium_lje93_88", $ = "_Bold_lje93_92", q = "_Underlined_lje93_96", e = {
5
+ import '../../../assets/button-text-X3aS7DVX.css';const p = "_ButtonText_162ei_1", M = "_TextPrimary_162ei_10", P = "_TextSecondary_162ei_14", B = "_AccentPrimary_162ei_18", A = "_AccentSecondary_162ei_22", R = "_ThemePrimary_162ei_26", k = "_ThemeSecondary_162ei_30", C = "_Link_162ei_34", b = "_Left_162ei_38", D = "_Right_162ei_42", G = "_Icon_162ei_46", I = "_SM_162ei_50", N = "_MD_162ei_55", U = "_LG_162ei_60", j = "_Content_162ei_65", v = "_Light_162ei_84", F = "_Regular_162ei_88", $ = "_Medium_162ei_92", q = "_Bold_162ei_96", E = "_Underlined_162ei_100", e = {
6
6
  ButtonText: p,
7
- TextPrimary: L,
8
- TextSecondary: M,
9
- AccentPrimary: P,
10
- AccentSecondary: B,
11
- ThemePrimary: A,
12
- ThemeSecondary: R,
13
- Left: C,
14
- Right: b,
15
- Icon: D,
16
- SM: G,
17
- MD: I,
18
- LG: N,
19
- Content: U,
7
+ TextPrimary: M,
8
+ TextSecondary: P,
9
+ AccentPrimary: B,
10
+ AccentSecondary: A,
11
+ ThemePrimary: R,
12
+ ThemeSecondary: k,
13
+ Link: C,
14
+ Left: b,
15
+ Right: D,
16
+ Icon: G,
17
+ SM: I,
18
+ MD: N,
19
+ LG: U,
20
+ Content: j,
20
21
  Light: v,
21
- Regular: k,
22
- Medium: F,
23
- Bold: $,
24
- Underlined: q
25
- }, O = ({
22
+ Regular: F,
23
+ Medium: $,
24
+ Bold: q,
25
+ Underlined: E
26
+ }, Q = ({
26
27
  text: m,
27
28
  size: r = "md",
28
29
  color: t = "text-primary",
@@ -30,25 +31,25 @@ import '../../../assets/button-text-D-i7Ce3y.css';const p = "_ButtonText_lje93_1
30
31
  type: s = "button",
31
32
  icon: d = null,
32
33
  iconPosition: c = "left",
33
- underlined: i = !1,
34
- disabled: y = !1,
34
+ underlined: y = !1,
35
+ disabled: l = !1,
35
36
  preventDefault: u = !1,
36
- blurAfterClick: j = !1,
37
- onClick: x = () => {
37
+ blurAfterClick: x = !1,
38
+ onClick: T = () => {
38
39
  },
39
- onFocus: T = () => {
40
+ onFocus: h = () => {
40
41
  },
41
- onBlur: h = () => {
42
+ onBlur: S = () => {
42
43
  },
43
44
  // Base props
44
- ...o
45
- }) => /* @__PURE__ */ S(
45
+ ...i
46
+ }) => /* @__PURE__ */ L(
46
47
  "button",
47
48
  {
48
- "data-testid": l(o, "data-testid", "button-text"),
49
+ "data-testid": a(i, "data-testid", "button-text"),
49
50
  type: s,
50
- disabled: y,
51
- className: a(e.ButtonText, l(o, "className"), {
51
+ disabled: l,
52
+ className: o(e.ButtonText, a(i, "className"), {
52
53
  [e.Left]: c === "left",
53
54
  [e.Right]: c === "right",
54
55
  [e.SM]: r === "sm",
@@ -59,22 +60,23 @@ import '../../../assets/button-text-D-i7Ce3y.css';const p = "_ButtonText_lje93_1
59
60
  [e.AccentPrimary]: t === "accent-primary",
60
61
  [e.AccentSecondary]: t === "accent-secondary",
61
62
  [e.ThemePrimary]: t === "theme-primary",
62
- [e.ThemeSecondary]: t === "theme-secondary"
63
+ [e.ThemeSecondary]: t === "theme-secondary",
64
+ [e.Link]: t === "link"
63
65
  }),
64
- onClick: f(x, { prevent: u, blur: j }),
65
- onFocus: () => T(),
66
- onBlur: () => h(),
66
+ onClick: f(T, { prevent: u, blur: x }),
67
+ onFocus: () => h(),
68
+ onBlur: () => S(),
67
69
  children: [
68
70
  /* @__PURE__ */ _(g, { icon: d, className: e.Icon }),
69
71
  /* @__PURE__ */ _(
70
72
  "span",
71
73
  {
72
- className: a(e.Content, {
74
+ className: o(e.Content, {
73
75
  [e.Light]: n === "light",
74
76
  [e.Regular]: n === "regular",
75
77
  [e.Medium]: n === "medium",
76
78
  [e.Bold]: n === "bold",
77
- [e.Underlined]: i
79
+ [e.Underlined]: y
78
80
  }),
79
81
  children: m
80
82
  }
@@ -83,5 +85,5 @@ import '../../../assets/button-text-D-i7Ce3y.css';const p = "_ButtonText_lje93_1
83
85
  }
84
86
  );
85
87
  export {
86
- O as ButtonText
88
+ Q as ButtonText
87
89
  };
@@ -1,17 +1,17 @@
1
- import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
- import { useRef as E } from "react";
3
- import { useHover as M } from "usehooks-ts";
4
- import _ from "clsx";
5
- import { FadeSlide as N } from "../../../animations/fade-slide/fade-slide.component.js";
1
+ import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
+ import { useRef as M } from "react";
3
+ import { useHover as N } from "usehooks-ts";
4
+ import p from "clsx";
5
+ import { FadeSlide as S } from "../../../animations/fade-slide/fade-slide.component.js";
6
6
  import "../../primitives/box/box.component.js";
7
- import { baseProps as C } from "../../../utils/functions/functions.util.js";
8
- import { Choice as S } from "../../primitives/choice/choice.component.js";
7
+ import { baseProps as _ } from "../../../utils/functions/functions.util.js";
8
+ import { Choice as v } from "../../primitives/choice/choice.component.js";
9
9
  import { ErrorMessage as F } from "../../primitives/error-message/error-message.component.js";
10
10
  import { HiddenInput as L } from "../../primitives/hidden-input/hidden-input.component.js";
11
11
  import "lucide-react";
12
12
  import { useControlInteraction as $ } from "../../utils/hooks/use-control-interaction/use-control-interaction.hook.js";
13
13
  import { Converter as j } from "../../../utils/converter/converter.util.js";
14
- import '../../../assets/checkbox-CAGKGCVC.css';const H = "_Checkbox_vvcdn_1", I = "_Label_vvcdn_6", P = "_Choice_vvcdn_19", D = "_Content_vvcdn_25", R = "_Body_vvcdn_58", T = "_BodySmall_vvcdn_63", q = "_ErrorMessage_vvcdn_68", o = {
14
+ import '../../../assets/checkbox-bwnjS9qO.css';const H = "_Checkbox_d6btg_1", I = "_Label_d6btg_6", P = "_Choice_d6btg_19", D = "_Content_d6btg_25", R = "_Body_d6btg_51", T = "_BodySmall_d6btg_56", q = "_ErrorMessage_d6btg_61", o = {
15
15
  Checkbox: H,
16
16
  Label: I,
17
17
  Choice: P,
@@ -21,13 +21,13 @@ import '../../../assets/checkbox-CAGKGCVC.css';const H = "_Checkbox_vvcdn_1", I
21
21
  ErrorMessage: q
22
22
  }, Z = ({
23
23
  // Interactive props
24
- id: c,
24
+ id: t,
25
25
  value: r = !1,
26
- disabled: t = !1,
27
- state: s = "idle",
28
- onChange: f,
29
- onFocus: v,
30
- onBlur: b,
26
+ disabled: s = !1,
27
+ state: n = "idle",
28
+ onChange: C,
29
+ onFocus: f,
30
+ onBlur: g,
31
31
  // Checkbox props
32
32
  iconSize: x = "md",
33
33
  textSize: a = "body-small",
@@ -37,23 +37,23 @@ import '../../../assets/checkbox-CAGKGCVC.css';const H = "_Checkbox_vvcdn_1", I
37
37
  // Base props
38
38
  ...m
39
39
  }) => {
40
- const d = E(null), k = M(d), { focused: i, emitChange: h, handleFocus: B, handleBlur: u } = $({
41
- id: c,
42
- disabled: t,
43
- onChange: f,
44
- onFocus: v,
45
- onBlur: b
40
+ const d = M(null), k = N(d), { focused: i, emitChange: h, handleFocus: B, handleBlur: u } = $({
41
+ id: t,
42
+ disabled: s,
43
+ onChange: C,
44
+ onFocus: f,
45
+ onBlur: g
46
46
  });
47
- return /* @__PURE__ */ p("div", { "data-testid": C(m, "data-testid", "checkbox"), className: _(o.Checkbox, C(m, "className")), children: [
48
- /* @__PURE__ */ p(
47
+ return /* @__PURE__ */ b("div", { "data-testid": _(m, "data-testid", "checkbox"), className: p(o.Checkbox, _(m, "className")), children: [
48
+ /* @__PURE__ */ b(
49
49
  "label",
50
50
  {
51
51
  "data-testid": "checkbox-label",
52
52
  ref: d,
53
- htmlFor: c,
53
+ htmlFor: t,
54
54
  className: o.Label,
55
- onClick: (n) => {
56
- i || (n.preventDefault(), h(!r, "mouse"));
55
+ onClick: (c) => {
56
+ i || (c.preventDefault(), h(!r, "mouse"));
57
57
  },
58
58
  onFocus: B,
59
59
  onBlur: u,
@@ -62,32 +62,32 @@ import '../../../assets/checkbox-CAGKGCVC.css';const H = "_Checkbox_vvcdn_1", I
62
62
  L,
63
63
  {
64
64
  type: "checkbox",
65
- id: c,
66
- name: c,
65
+ id: t,
66
+ name: t,
67
67
  value: j.Boolean.ToBooleanString(r),
68
68
  checked: r,
69
- disabled: t,
70
- onChange: (n, g) => {
71
- n.stopPropagation(), h(!r, g);
69
+ disabled: s,
70
+ onChange: (c, E) => {
71
+ c.stopPropagation(), h(!r, E);
72
72
  }
73
73
  }
74
74
  ),
75
75
  /* @__PURE__ */ e("div", { className: o.Choice, children: /* @__PURE__ */ e(
76
- S,
76
+ v,
77
77
  {
78
78
  type: "checkbox",
79
79
  size: x,
80
- state: s,
80
+ state: n,
81
81
  checked: r,
82
82
  focused: i,
83
83
  hovered: k,
84
- disabled: t
84
+ disabled: s
85
85
  }
86
86
  ) }),
87
87
  /* @__PURE__ */ e(
88
88
  "div",
89
89
  {
90
- className: _(o.Content, {
90
+ className: p(o.Content, {
91
91
  [o.Body]: a === "body",
92
92
  [o.BodySmall]: a === "body-small"
93
93
  }),
@@ -97,7 +97,7 @@ import '../../../assets/checkbox-CAGKGCVC.css';const H = "_Checkbox_vvcdn_1", I
97
97
  ]
98
98
  }
99
99
  ),
100
- /* @__PURE__ */ e(N, { name: "text-message", condition: s === "error" && !!l, children: /* @__PURE__ */ e(F, { text: l, className: o.ErrorMessage }) })
100
+ /* @__PURE__ */ e(S, { name: "text-message", condition: n === "error" && !!l, children: /* @__PURE__ */ e(F, { text: l, className: o.ErrorMessage }) })
101
101
  ] });
102
102
  };
103
103
  export {
@@ -23,7 +23,7 @@ export type ControlLabelPosition = 'idle' | 'active';
23
23
  export type ControlCaptionSize = Extract<FontSize, 'body-extra-small' | 'body-small' | 'body' | 'body-large'>;
24
24
  export type ControlCaptionColor = Extract<FontColor, 'text-primary' | 'text-secondary' | 'accent-primary' | 'accent-secondary'>;
25
25
  export type ControlButtonColor = 'primary' | 'secondary' | 'tertiary';
26
- export type ControlButtonTypeColor = Extract<FontColor, 'text-primary' | 'text-secondary' | 'accent-primary' | 'accent-secondary' | 'theme-primary' | 'theme-secondary'>;
26
+ export type ControlButtonTypeColor = Extract<FontColor, 'text-primary' | 'text-secondary' | 'accent-primary' | 'accent-secondary' | 'theme-primary' | 'theme-secondary' | 'link'>;
27
27
  export type ControlButtonSize = 'sm' | 'md' | 'lg';
28
28
  export type ControlButtonType = 'submit' | 'reset' | 'button';
29
29
  export type QuestionPath = string[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.6.3",
4
+ "version": "1.6.5",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1 +0,0 @@
1
- ._ButtonText_lje93_1{display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xs);border-radius:var(--rm-ui-border-radius-sm)}._TextPrimary_lje93_10{color:var(--rm-ui-color-text-primary)}._TextSecondary_lje93_14{color:var(--rm-ui-color-text-secondary)}._AccentPrimary_lje93_18{color:var(--rm-ui-color-accent-primary)}._AccentSecondary_lje93_22{color:var(--rm-ui-color-accent-secondary)}._ThemePrimary_lje93_26{color:var(--rm-ui-color-theme-primary)}._ThemeSecondary_lje93_30{color:var(--rm-ui-color-theme-secondary)}._Left_lje93_34{flex-direction:row}._Right_lje93_38{flex-direction:row-reverse}._Icon_lje93_42{stroke-width:1.5}._SM_lje93_46 ._Icon_lje93_42{width:20px;height:20px}._MD_lje93_51 ._Icon_lje93_42{width:24px;height:24px}._LG_lje93_56 ._Icon_lje93_42{width:26px;height:26px}._SM_lje93_46 ._Content_lje93_61{font-size:var(--rm-ui-font-size-body-small);line-height:calc(var(--rm-ui-line-height-body-small) - var(--rm-ui-padding-xxs) * 2)}._MD_lje93_51 ._Content_lje93_61{font-size:var(--rm-ui-font-size-body);line-height:calc(var(--rm-ui-line-height-body) - var(--rm-ui-padding-xxs) * 2)}._LG_lje93_56 ._Content_lje93_61{font-size:var(--rm-ui-font-size-hl4);line-height:calc(var(--rm-ui-line-height-hl4) - var(--rm-ui-padding-xxs) * 2)}._Content_lje93_61{text-decoration:none}._Light_lje93_80{font-weight:var(--rm-ui-font-weight-light)}._Regular_lje93_84{font-weight:var(--rm-ui-font-weight-regular)}._Medium_lje93_88{font-weight:var(--rm-ui-font-weight-medium)}._Bold_lje93_92{font-weight:var(--rm-ui-font-weight-bold)}._Underlined_lje93_96{text-decoration:underline}
@@ -1 +0,0 @@
1
- ._Checkbox_vvcdn_1{display:flex;flex-direction:column}._Label_vvcdn_6{position:relative;display:inline-flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._Label_vvcdn_6:hover{cursor:pointer}._Choice_vvcdn_19{position:relative;left:0;top:3px}._Content_vvcdn_25{font-weight:var(--rm-ui-font-weight-regular);color:var(--rm-ui-color-text-primary)}._Content_vvcdn_25 button,._Content_vvcdn_25 span[data-type=button]{color:var(--rm-ui-color-link);outline-offset:2px;display:inline;margin:0;padding:0;border:0;background:none;font:inherit;line-height:inherit;color:inherit;text-decoration:underline;vertical-align:baseline;cursor:pointer}._Content_vvcdn_25 button:hover,._Content_vvcdn_25 span[data-type=button]:hover{cursor:pointer;text-decoration:underline}._Content_vvcdn_25 button:focus-visible,._Content_vvcdn_25 span[data-type=button]:focus-visible{outline-color:var(--rm-ui-color-focus)}._Body_vvcdn_58{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._BodySmall_vvcdn_63{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._ErrorMessage_vvcdn_68{padding-top:var(--rm-ui-padding-xxs)}