skillgrid 0.0.84 → 0.0.85

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.
@@ -1,9 +1,9 @@
1
- import { jsxs as v, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as y, jsx as a } from "react/jsx-runtime";
2
2
  import { clsx as n } from "clsx";
3
- import { LabelState as A } from "./Trigger.type.js";
3
+ import { LabelState as W } from "./Trigger.type.js";
4
4
  import r from "./Trigger.module.css.js";
5
- import { getLabelState as K, getLabelTypographySize as M, truncateContent as Q, getContentTypographySize as W, getIconSize as H } from "./lib/utils.js";
6
- import { Typography as y } from "../Typography/Typography.js";
5
+ import { getLabelState as K, getLabelTypographySize as M, truncateContent as Q, getContentTypographySize as H, getIconSize as E } from "./lib/utils.js";
6
+ import { Typography as v } from "../Typography/Typography.js";
7
7
  import { XIcon as R } from "../InputBase/assets/XIcon.js";
8
8
  import { ChevronIcon as U } from "./assets/ChevronIcon.js";
9
9
  import { Helper as V } from "../Helper/Helper.js";
@@ -17,18 +17,18 @@ const cr = ({
17
17
  clearable: m = !1,
18
18
  error: f,
19
19
  prefixIcon: S,
20
- postfixTitle: b,
20
+ postfixTitle: L,
21
21
  disabled: o = !1,
22
22
  open: p,
23
23
  onClear: I,
24
24
  classNames: t = {},
25
25
  styles: e = {}
26
26
  }) => {
27
- const g = !!d, L = !!N, c = !!f, w = s === "applied", E = !!u && (!c || o) || c && !o, O = (c && !o ? f : u) || "", h = c && !o, T = K(i, g), l = L && T === A.FLOATING, X = T === A.HIDDEN, j = n(
27
+ const g = !!d, b = !!N, c = !!f, w = s === "applied", O = !!u && (!c || o) || c && !o, X = (c && !o ? f : u) || "", h = c && !o, T = K(i, g), l = b && T === W.FLOATING, j = T === W.HIDDEN, z = n(
28
28
  r["trigger-wrapper"],
29
29
  { [r["trigger-stretched"]]: C },
30
30
  t.wrapper
31
- ), z = n(
31
+ ), A = n(
32
32
  r["trigger-container"],
33
33
  r[`trigger-container-size-${i}`],
34
34
  {
@@ -39,27 +39,27 @@ const cr = ({
39
39
  [r["trigger-container-floating"]]: l
40
40
  },
41
41
  t.triggerContainer
42
- ), B = n(
42
+ ), D = n(
43
43
  r["trigger-content-container"],
44
44
  {
45
45
  [r["trigger-content-container-floating"]]: l
46
46
  },
47
47
  t.triggerContent
48
- ), D = n(
48
+ ), F = n(
49
49
  r["trigger-label"],
50
50
  {
51
51
  [r["trigger-label-floating"]]: l,
52
- [r["trigger-label-hidden"]]: X
52
+ [r["trigger-label-hidden"]]: j
53
53
  },
54
54
  t.label
55
- ), F = n(r["trigger-content"], t.content), k = n(r["trigger-postfix"], t.postfixTitle), G = n(r["trigger-chevron-icon"], t.chevronIcon), P = n(
55
+ ), k = n(r["trigger-content"], t.content), G = n(r["trigger-postfix"], t.postfixTitle), P = n(r["trigger-chevron-icon"], t.chevronIcon), $ = n(
56
56
  r["trigger-prefix-icon"],
57
57
  t.prefixIconContainer
58
- ), $ = n(r["trigger-clear-icon"], t.clearIcon), q = (x) => {
58
+ ), q = n(r["trigger-clear-icon"], t.clearIcon), B = (x) => {
59
59
  x == null || x.stopPropagation(), I == null || I();
60
60
  }, J = g && p && (s === "selected" && m || s === "applied") || g && !p && (w || s === "selected" && m);
61
- return /* @__PURE__ */ v("div", { className: j, style: e.wrapper, children: [
62
- /* @__PURE__ */ v(
61
+ return /* @__PURE__ */ y("div", { className: z, style: e.wrapper, children: [
62
+ /* @__PURE__ */ y(
63
63
  "button",
64
64
  {
65
65
  "data-testid": "trigger",
@@ -67,18 +67,18 @@ const cr = ({
67
67
  "aria-haspopup": "listbox",
68
68
  "aria-expanded": p,
69
69
  role: "combobox",
70
- className: z,
70
+ className: A,
71
71
  style: e.triggerContainer,
72
72
  disabled: o,
73
73
  type: "button",
74
74
  children: [
75
- S && i !== "XL" && /* @__PURE__ */ a("div", { className: P, style: e.prefixIconContainer, children: S }),
76
- /* @__PURE__ */ v("div", { className: B, style: e.triggerContent, children: [
77
- L && /* @__PURE__ */ a(
78
- y.Label,
75
+ S && i !== "XL" && /* @__PURE__ */ a("div", { className: $, style: e.prefixIconContainer, children: S }),
76
+ /* @__PURE__ */ y("div", { className: D, style: e.triggerContent, children: [
77
+ b && /* @__PURE__ */ a(
78
+ v.Label,
79
79
  {
80
80
  "data-testid": "trigger-label",
81
- className: D,
81
+ className: F,
82
82
  style: e.label,
83
83
  size: M(i, l),
84
84
  as: "span",
@@ -88,58 +88,58 @@ const cr = ({
88
88
  }
89
89
  ),
90
90
  g && /* @__PURE__ */ a(
91
- y.Label,
91
+ v.Label,
92
92
  {
93
93
  "data-testid": "trigger-content-container",
94
- className: F,
94
+ className: k,
95
95
  style: e.content,
96
- size: W(i),
96
+ size: H(i),
97
97
  as: "span",
98
98
  disabled: o,
99
99
  children: C ? d : Q(d)
100
100
  }
101
101
  ),
102
- g && !!b && /* @__PURE__ */ a(
103
- y.Label,
102
+ g && !!L && /* @__PURE__ */ a(
103
+ v.Label,
104
104
  {
105
105
  "data-testid": "trigger-postfix",
106
- className: k,
106
+ className: G,
107
107
  style: e.postfixTitle,
108
- size: W(i),
108
+ size: H(i),
109
109
  disabled: o,
110
110
  typographyStyle: "secondary",
111
- children: b
111
+ children: L
112
112
  }
113
113
  )
114
114
  ] }),
115
115
  J ? /* @__PURE__ */ a(
116
116
  R,
117
117
  {
118
- className: $,
118
+ className: q,
119
119
  "data-testid": "trigger-clear",
120
- size: H(i),
120
+ size: E(i),
121
121
  tabIndex: -1,
122
- onClick: q,
122
+ onClick: B,
123
123
  style: { outline: "none", ...e.clearIcon },
124
- color: s === "selected" && m ? "var(--base-graphite-75)" : void 0
124
+ color: s === "selected" && m ? "var(--icon-tertiary)" : void 0
125
125
  }
126
126
  ) : /* @__PURE__ */ a(
127
127
  U,
128
128
  {
129
129
  "data-testid": "trigger-chevron",
130
- size: H(i),
131
- className: G,
132
- color: "#AABBCA",
130
+ size: E(i),
131
+ className: P,
132
+ color: "var(--icon-tertiary)",
133
133
  style: e.chevronIcon
134
134
  }
135
135
  )
136
136
  ]
137
137
  }
138
138
  ),
139
- E && /* @__PURE__ */ a(
139
+ O && /* @__PURE__ */ a(
140
140
  V,
141
141
  {
142
- title: O,
142
+ title: X,
143
143
  error: h ? f : void 0,
144
144
  className: h ? t.error : t.description,
145
145
  style: h ? e.error : e.description,
@@ -1,26 +1,26 @@
1
- import '../../assets/components/Trigger/Trigger.module-B91SEgX2.css';const r = {
2
- "trigger-wrapper": "_trigger-wrapper_fm9f9_79",
3
- "trigger-container": "_trigger-container_fm9f9_85",
4
- "trigger-container-applied": "_trigger-container-applied_fm9f9_109",
5
- "trigger-container-open": "_trigger-container-open_fm9f9_114",
6
- "trigger-container-error": "_trigger-container-error_fm9f9_125",
7
- "trigger-container-size-XS": "_trigger-container-size-XS_fm9f9_137",
8
- "trigger-container-size-S": "_trigger-container-size-S_fm9f9_147",
9
- "trigger-container-size-M": "_trigger-container-size-M_fm9f9_153",
10
- "trigger-container-size-L": "_trigger-container-size-L_fm9f9_159",
11
- "trigger-container-size-XL": "_trigger-container-size-XL_fm9f9_167",
12
- "trigger-container-floating": "_trigger-container-floating_fm9f9_173",
13
- "trigger-stretched": "_trigger-stretched_fm9f9_178",
14
- "trigger-content-container": "_trigger-content-container_fm9f9_182",
15
- "trigger-content-container-floating": "_trigger-content-container-floating_fm9f9_191",
16
- "trigger-label": "_trigger-label_fm9f9_196",
17
- "trigger-label-floating": "_trigger-label-floating_fm9f9_203",
18
- "trigger-label-hidden": "_trigger-label-hidden_fm9f9_213",
19
- "trigger-content": "_trigger-content_fm9f9_182",
20
- "trigger-prefix-icon": "_trigger-prefix-icon_fm9f9_225",
21
- "trigger-chevron-icon": "_trigger-chevron-icon_fm9f9_230",
22
- "trigger-clear-icon": "_trigger-clear-icon_fm9f9_246",
23
- "trigger-postfix": "_trigger-postfix_fm9f9_262"
1
+ import '../../assets/components/Trigger/Trigger.module-BWzHgDVC.css';const r = {
2
+ "trigger-wrapper": "_trigger-wrapper_1vv90_77",
3
+ "trigger-container": "_trigger-container_1vv90_83",
4
+ "trigger-container-applied": "_trigger-container-applied_1vv90_106",
5
+ "trigger-container-open": "_trigger-container-open_1vv90_111",
6
+ "trigger-container-error": "_trigger-container-error_1vv90_122",
7
+ "trigger-container-size-XS": "_trigger-container-size-XS_1vv90_134",
8
+ "trigger-container-size-S": "_trigger-container-size-S_1vv90_144",
9
+ "trigger-container-size-M": "_trigger-container-size-M_1vv90_150",
10
+ "trigger-container-size-L": "_trigger-container-size-L_1vv90_156",
11
+ "trigger-container-size-XL": "_trigger-container-size-XL_1vv90_164",
12
+ "trigger-container-floating": "_trigger-container-floating_1vv90_170",
13
+ "trigger-stretched": "_trigger-stretched_1vv90_175",
14
+ "trigger-content-container": "_trigger-content-container_1vv90_179",
15
+ "trigger-content-container-floating": "_trigger-content-container-floating_1vv90_189",
16
+ "trigger-label": "_trigger-label_1vv90_194",
17
+ "trigger-label-floating": "_trigger-label-floating_1vv90_201",
18
+ "trigger-label-hidden": "_trigger-label-hidden_1vv90_213",
19
+ "trigger-content": "_trigger-content_1vv90_179",
20
+ "trigger-prefix-icon": "_trigger-prefix-icon_1vv90_227",
21
+ "trigger-chevron-icon": "_trigger-chevron-icon_1vv90_232",
22
+ "trigger-clear-icon": "_trigger-clear-icon_1vv90_248",
23
+ "trigger-postfix": "_trigger-postfix_1vv90_264"
24
24
  };
25
25
  export {
26
26
  r as default
@@ -1,35 +1,35 @@
1
- import '../../assets/components/Typography/Typography.module-TJDGpv-d.css';const a = "_typography_1mq4x_1", _ = "_disabled_1mq4x_8", n = "_primary_1mq4x_13", t = "_secondary_1mq4x_18", c = "_tertiary_1mq4x_23", s = "_accent_1mq4x_28", e = "_positive_1mq4x_38", o = "_negative_1mq4x_48", r = "_warning_1mq4x_58", i = "_special_1mq4x_68", y = "_contrast_1mq4x_78", m = "_custom_1mq4x_88", d = {
2
- typography: a,
3
- disabled: _,
4
- primary: n,
5
- secondary: t,
6
- tertiary: c,
1
+ import '../../assets/components/Typography/Typography.module-53KcIWaI.css';const n = "_typography_hnc4p_1", c = "_disabled_hnc4p_8", a = "_primary_hnc4p_13", _ = "_secondary_hnc4p_18", t = "_tertiary_hnc4p_23", s = "_accent_hnc4p_28", e = "_positive_hnc4p_38", o = "_negative_hnc4p_48", r = "_warning_hnc4p_58", p = "_special_hnc4p_68", i = "_contrast_hnc4p_78", y = "_custom_hnc4p_88", d = {
2
+ typography: n,
3
+ disabled: c,
4
+ primary: a,
5
+ secondary: _,
6
+ tertiary: t,
7
7
  accent: s,
8
- "accent-secondary": "_accent-secondary_1mq4x_33",
8
+ "accent-secondary": "_accent-secondary_hnc4p_33",
9
9
  positive: e,
10
- "positive-secondary": "_positive-secondary_1mq4x_43",
10
+ "positive-secondary": "_positive-secondary_hnc4p_43",
11
11
  negative: o,
12
- "negative-secondary": "_negative-secondary_1mq4x_53",
12
+ "negative-secondary": "_negative-secondary_hnc4p_53",
13
13
  warning: r,
14
- "warning-secondary": "_warning-secondary_1mq4x_63",
15
- special: i,
16
- "special-secondary": "_special-secondary_1mq4x_73",
17
- contrast: y,
18
- "contrast-secondary": "_contrast-secondary_1mq4x_83",
19
- custom: m
14
+ "warning-secondary": "_warning-secondary_hnc4p_63",
15
+ special: p,
16
+ "special-secondary": "_special-secondary_hnc4p_73",
17
+ contrast: i,
18
+ "contrast-secondary": "_contrast-secondary_hnc4p_83",
19
+ custom: y
20
20
  };
21
21
  export {
22
22
  s as accent,
23
- y as contrast,
24
- m as custom,
23
+ i as contrast,
24
+ y as custom,
25
25
  d as default,
26
- _ as disabled,
26
+ c as disabled,
27
27
  o as negative,
28
28
  e as positive,
29
- n as primary,
30
- t as secondary,
31
- i as special,
32
- c as tertiary,
33
- a as typography,
29
+ a as primary,
30
+ _ as secondary,
31
+ p as special,
32
+ t as tertiary,
33
+ n as typography,
34
34
  r as warning
35
35
  };