aristid-ds 0.10.0 → 0.12.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 (154) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/Kit/App/index.d.ts +2 -2
  3. package/dist/Kit/DataDisplay/Avatar/Avatar.js +3 -3
  4. package/dist/Kit/DataDisplay/Avatar/AvatarGroup.js +6 -6
  5. package/dist/Kit/DataDisplay/Badge/index.js +23 -14
  6. package/dist/Kit/DataDisplay/Card/index.js +31 -31
  7. package/dist/Kit/DataDisplay/Collapse/Collapse.js +17 -18
  8. package/dist/Kit/DataDisplay/Collapse/Header.js +14 -14
  9. package/dist/Kit/DataDisplay/Collapse/HeaderExtra.js +17 -18
  10. package/dist/Kit/DataDisplay/Image/index.js +20 -20
  11. package/dist/Kit/DataDisplay/ItemCard/ColorBar.js +15 -21
  12. package/dist/Kit/DataDisplay/ItemCard/index.js +39 -45
  13. package/dist/Kit/DataDisplay/ItemList/index.js +36 -262
  14. package/dist/Kit/DataDisplay/ItemList/style.d.ts +3 -0
  15. package/dist/Kit/DataDisplay/ItemList/style.js +236 -0
  16. package/dist/Kit/DataDisplay/ItemList/types.d.ts +2 -1
  17. package/dist/Kit/DataDisplay/LegacyCard/index.js +54 -65
  18. package/dist/Kit/DataDisplay/Tabs/index.js +30 -47
  19. package/dist/Kit/DataDisplay/Tag/Group.js +4 -4
  20. package/dist/Kit/DataDisplay/Tag/Tag.d.ts +1 -2
  21. package/dist/Kit/DataDisplay/Tag/Tag.js +17 -13
  22. package/dist/Kit/DataDisplay/Tag/index.js +1 -1
  23. package/dist/Kit/DataDisplay/Tour/style.js +7 -6
  24. package/dist/Kit/DataEntry/AutoComplete/index.js +3 -3
  25. package/dist/Kit/DataEntry/Checkbox/Checkbox.js +25 -24
  26. package/dist/Kit/DataEntry/Checkbox/Group.js +26 -25
  27. package/dist/Kit/DataEntry/Checkbox/index.d.ts +2 -3
  28. package/dist/Kit/DataEntry/Checkbox/types.d.ts +5 -0
  29. package/dist/Kit/DataEntry/ColorPicker/index.js +7 -7
  30. package/dist/Kit/DataEntry/ColorPicker/style.js +11 -12
  31. package/dist/Kit/DataEntry/DatePicker/DatePicker.js +13 -14
  32. package/dist/Kit/DataEntry/DatePicker/RangePicker.js +12 -13
  33. package/dist/Kit/DataEntry/DatePicker/style.js +8 -9
  34. package/dist/Kit/DataEntry/Input/Input.js +17 -18
  35. package/dist/Kit/DataEntry/Input/Password.js +11 -15
  36. package/dist/Kit/DataEntry/Input/TextArea.js +14 -18
  37. package/dist/Kit/DataEntry/Input/types.d.ts +0 -8
  38. package/dist/Kit/DataEntry/InputNumber/index.js +18 -17
  39. package/dist/Kit/DataEntry/InputWrapper/InputWrapper.js +102 -0
  40. package/dist/Kit/DataEntry/InputWrapper/index.d.ts +1 -0
  41. package/dist/Kit/DataEntry/InputWrapper/types.d.ts +10 -0
  42. package/dist/Kit/DataEntry/Radio/Group.d.ts +2 -2
  43. package/dist/Kit/DataEntry/Radio/Group.js +21 -20
  44. package/dist/Kit/DataEntry/Radio/Radio.js +18 -16
  45. package/dist/Kit/DataEntry/Radio/index.d.ts +2 -2
  46. package/dist/Kit/DataEntry/Radio/types.d.ts +6 -1
  47. package/dist/Kit/DataEntry/Rate/index.js +4 -4
  48. package/dist/Kit/DataEntry/Select/index.js +38 -41
  49. package/dist/Kit/DataEntry/Select/style.js +193 -181
  50. package/dist/Kit/DataEntry/Select/types.d.ts +3 -5
  51. package/dist/Kit/DataEntry/Slider/index.js +10 -10
  52. package/dist/Kit/DataEntry/Switch/index.js +3 -3
  53. package/dist/Kit/DataEntry/Upload/Dragger.js +19 -20
  54. package/dist/Kit/DataEntry/Upload/Upload.js +3 -3
  55. package/dist/Kit/DataEntry/index.d.ts +1 -0
  56. package/dist/Kit/Feedback/Alert/index.js +35 -38
  57. package/dist/Kit/Feedback/Modal/ConfirmDialog.js +12 -12
  58. package/dist/Kit/Feedback/Modal/Modal.js +45 -39
  59. package/dist/Kit/Feedback/Modal/confirm.js +1 -1
  60. package/dist/Kit/Feedback/Modal/types.d.ts +1 -0
  61. package/dist/Kit/Feedback/Notification/KitNotification.d.ts +3 -0
  62. package/dist/Kit/Feedback/Notification/KitNotification.js +188 -0
  63. package/dist/Kit/Feedback/Notification/index.d.ts +1 -0
  64. package/dist/Kit/Feedback/Notification/notification-provider.js +26 -27
  65. package/dist/Kit/Feedback/Notification/style.d.ts +16 -0
  66. package/dist/Kit/Feedback/Notification/style.js +16 -11
  67. package/dist/Kit/Feedback/Notification/types.d.ts +1 -0
  68. package/dist/Kit/Feedback/Progress/index.js +15 -16
  69. package/dist/Kit/Feedback/SnackBar/SnackBar.js +13 -14
  70. package/dist/Kit/Feedback/index.d.ts +1 -1
  71. package/dist/Kit/General/Button/index.js +42 -41
  72. package/dist/Kit/General/Icon/index.js +19 -18
  73. package/dist/Kit/General/Typography/Link.js +11 -10
  74. package/dist/Kit/General/Typography/Paragraph.js +9 -8
  75. package/dist/Kit/General/Typography/Text.js +15 -14
  76. package/dist/Kit/General/Typography/commons.js +2 -2
  77. package/dist/Kit/General/Typography/style.js +17 -16
  78. package/dist/Kit/Layout/Divider/index.js +16 -15
  79. package/dist/Kit/Layout/Space/index.js +8 -8
  80. package/dist/Kit/Navigation/Breadcrumb/index.js +9 -9
  81. package/dist/Kit/Navigation/DropDown/style.js +4 -8
  82. package/dist/Kit/Navigation/Header/index.js +9 -9
  83. package/dist/Kit/Navigation/Menu/ItemMenu.js +22 -22
  84. package/dist/Kit/Navigation/Menu/Menu.js +5 -5
  85. package/dist/Kit/Navigation/Pagination/index.js +6 -7
  86. package/dist/Kit/index.d.ts +1 -1
  87. package/dist/index.es.js +95 -93
  88. package/dist/index.umd.js +1808 -1626
  89. package/dist/theme/aristid/components/DataDisplay/Avatar/index.d.ts +1 -1
  90. package/dist/theme/aristid/components/DataDisplay/Badge/index.d.ts +1 -1
  91. package/dist/theme/aristid/components/DataDisplay/Card/index.d.ts +1 -1
  92. package/dist/theme/aristid/components/DataDisplay/Collapse/index.d.ts +1 -1
  93. package/dist/theme/aristid/components/DataDisplay/Image/index.d.ts +1 -1
  94. package/dist/theme/aristid/components/DataDisplay/ItemCard/index.d.ts +1 -1
  95. package/dist/theme/aristid/components/DataDisplay/ItemList/index.d.ts +1 -1
  96. package/dist/theme/aristid/components/DataDisplay/LegacyCard/index.d.ts +1 -1
  97. package/dist/theme/aristid/components/DataDisplay/Tabs/index.d.ts +1 -1
  98. package/dist/theme/aristid/components/DataDisplay/Tag/index.d.ts +1 -1
  99. package/dist/theme/aristid/components/DataDisplay/Tooltip/index.d.ts +1 -1
  100. package/dist/theme/aristid/components/DataDisplay/Tree/index.d.ts +1 -1
  101. package/dist/theme/aristid/components/DataEntry/Checkbox/index.d.ts +1 -1
  102. package/dist/theme/aristid/components/DataEntry/ColorPicker/index.d.ts +1 -1
  103. package/dist/theme/aristid/components/DataEntry/DatePicker/index.d.ts +1 -1
  104. package/dist/theme/aristid/components/DataEntry/Input/index.d.ts +1 -2
  105. package/dist/theme/aristid/components/DataEntry/Input/index.js +3 -4
  106. package/dist/theme/aristid/components/DataEntry/InputNumber/index.d.ts +1 -1
  107. package/dist/theme/aristid/components/DataEntry/InputWrapper/index.d.ts +2 -0
  108. package/dist/theme/aristid/components/DataEntry/InputWrapper/index.js +5 -0
  109. package/dist/theme/aristid/components/DataEntry/Radio/index.d.ts +1 -1
  110. package/dist/theme/aristid/components/DataEntry/Rate/index.d.ts +1 -1
  111. package/dist/theme/aristid/components/DataEntry/Select/index.d.ts +1 -1
  112. package/dist/theme/aristid/components/DataEntry/Slider/index.d.ts +1 -1
  113. package/dist/theme/aristid/components/DataEntry/Switch/index.d.ts +1 -1
  114. package/dist/theme/aristid/components/DataEntry/Upload/index.d.ts +1 -1
  115. package/dist/theme/aristid/components/Feedback/Alert/index.d.ts +1 -1
  116. package/dist/theme/aristid/components/Feedback/Modal/index.d.ts +1 -1
  117. package/dist/theme/aristid/components/Feedback/Notification/index.d.ts +1 -1
  118. package/dist/theme/aristid/components/Feedback/Notification/index.js +2 -2
  119. package/dist/theme/aristid/components/Feedback/Progress/index.d.ts +1 -1
  120. package/dist/theme/aristid/components/Feedback/SnackBar/index.d.ts +1 -1
  121. package/dist/theme/aristid/components/General/Button/index.d.ts +1 -1
  122. package/dist/theme/aristid/components/General/Icon/index.d.ts +1 -1
  123. package/dist/theme/aristid/components/General/Typography/index.d.ts +1 -1
  124. package/dist/theme/aristid/components/Layout/Divider/index.d.ts +1 -1
  125. package/dist/theme/aristid/components/Navigation/Breadcrumb/index.d.ts +1 -1
  126. package/dist/theme/aristid/components/Navigation/DropDown/index.d.ts +1 -1
  127. package/dist/theme/aristid/components/Navigation/Header/index.d.ts +1 -1
  128. package/dist/theme/aristid/components/Navigation/Menu/index.d.ts +1 -1
  129. package/dist/theme/aristid/components/Navigation/Pagination/index.d.ts +1 -1
  130. package/dist/theme/aristid/components/Navigation/Steps/index.d.ts +1 -1
  131. package/dist/theme/aristid/general/border/index.d.ts +1 -1
  132. package/dist/theme/aristid/general/colors/index.d.ts +1 -1
  133. package/dist/theme/aristid/general/index.d.ts +1 -1
  134. package/dist/theme/aristid/general/spacing/index.d.ts +1 -1
  135. package/dist/theme/aristid/general/typography/index.d.ts +1 -1
  136. package/dist/theme/theme-context.js +21 -25
  137. package/dist/theme/types/components/DataEntry/Input/index.d.ts +0 -54
  138. package/dist/theme/types/components/DataEntry/InputWrapper/index.d.ts +95 -0
  139. package/dist/theme/types/components/Feedback/Notification/index.d.ts +1 -0
  140. package/dist/theme/types/index.d.ts +1 -1
  141. package/dist/theme/utils/convert.d.ts +1 -1
  142. package/dist/theme/utils/convert.js +2 -2
  143. package/dist/translation/en-US/components/DataDisplay/Collapse/index.d.ts +1 -1
  144. package/dist/translation/en-US/components/DataDisplay/Image/index.d.ts +1 -1
  145. package/dist/translation/en-US/general/index.d.ts +1 -1
  146. package/dist/translation/fr-FR/components/DataDisplay/Collapse/index.d.ts +1 -1
  147. package/dist/translation/fr-FR/components/DataDisplay/Image/index.d.ts +1 -1
  148. package/dist/translation/fr-FR/general/index.d.ts +1 -1
  149. package/dist/translation/utils/index.js +5 -5
  150. package/dist/utils/functions/index.d.ts +6 -0
  151. package/dist/utils/functions/index.js +26 -22
  152. package/package.json +1 -1
  153. package/dist/Kit/DataEntry/Input/InputWrapper.js +0 -26
  154. /package/dist/Kit/DataEntry/{Input → InputWrapper}/InputWrapper.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.12.0](https://www.npmjs.com/package/aristid-ds/v/0.12.0) (2024-02-02)
4
+
5
+ ### ✨ Features
6
+ * **Modal:**
7
+ * Add `fullscreen`option (@evoiron)
8
+
9
+ * **⚠️ Breaking change - ItemList**
10
+ * Add `selected` props to display a colored border (@Delmotte-Vincent)
11
+ * Rename `onSelectChange` by `onSelect` (@Delmotte-Vincent)
12
+
13
+ ### 🐛 Bug Fixes
14
+ * A build option was removed by error
15
+ * **Select**
16
+ * Remove unused props `suffixIcon` and adapt the documentation (@Delmotte-Vincent)
17
+ * Add focus state on select dropdown (@Delmotte-Vincent)
18
+ * Fix Ellipsed tag on select (@Delmotte-Vincent)
19
+ * **Storybook**
20
+ * fix a visual bug on storybook caused by an addon (@evoiron)
21
+
22
+ ### 📚 Documentation
23
+ * New documentation page to list available design tokens (@evoiron)
24
+ * Display each design token corresponding css variable (@evoiron)
25
+ * Display package version number on the top right corner of Storybook (@philippechevieux)
26
+
27
+ ## [0.11.0](https://www.npmjs.com/package/aristid-ds/v/0.11.0) (2024-01-24)
28
+ ### ✨ Features
29
+ * **Notification:**
30
+ * Add `KitNotification` component usable without using `useKitNotification` hook (@evoiron)
31
+
32
+ ### 🐛 Bug Fixes
33
+
34
+ * Fix warning at build time about potential cycling dependencies (@evoiron)
35
+ * Remove deprecated package `react-uuid` (@evoiron)
36
+ * Enable 3 Select options, to allow dynamic filtering of options (@evoiron)
37
+
3
38
  ## [0.10.0](https://www.npmjs.com/package/aristid-ds/v/0.10.0) (2024-01-19)
4
39
 
5
40
  ### ✨ Features
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
- import { IKitCustomTheme } from '../../theme/types';
3
- import { IKitLocale } from '../../translation/types';
2
+ import { IKitCustomTheme } from '@theme/types';
3
+ import { IKitLocale } from '@translation/types';
4
4
  export declare const KitApp: FunctionComponent<{
5
5
  customTheme?: IKitCustomTheme;
6
6
  locale?: IKitLocale;
@@ -16,9 +16,9 @@ const A = u(d)`
16
16
  var(${l.neutral.typography.white})
17
17
  );
18
18
  }
19
- `, h = (o, r) => o && y(o) ? { [a.colors.background.default]: f(o, r), [a.colors.typography.default]: g(o) ? C(o, r) : k(o) } : null, s = ({ color: o, className: r, style: t, secondaryColorInvert: e = !1, ...m }) => {
20
- var n = v().appId, i = p(() => ({ ...t, ...h(o, e) }), [o, e, t]);
21
- return c.createElement(A, { style: i, className: n + " " + (r ?? ""), ...m });
19
+ `, h = (r, o) => r && y(r) ? { [a.colors.background.default]: f(r, o), [a.colors.typography.default]: g(r) ? C(r, o) : k(r) } : null, s = ({ color: r, className: o, style: t, secondaryColorInvert: e = !1, ...m }) => {
20
+ var n = v().appId, i = p(() => ({ ...t, ...h(r, e) }), [r, e, t]);
21
+ return c.createElement(A, { style: i, className: n + " " + (o ?? ""), ...m });
22
22
  }, w = (s.displayName = "KitAvatar", s);
23
23
  export {
24
24
  w as default
@@ -1,10 +1,10 @@
1
- import l from "react";
1
+ import s from "react";
2
2
  import { Avatar as i } from "antd";
3
3
  import { useKitTheme as m } from "../../../theme/useKitTheme.js";
4
4
  import p, { css as u } from "styled-components";
5
5
  import { kitAvatarGroupCssTokens as a } from "../../../theme/aristid/components/DataDisplay/Avatar/index.js";
6
6
  import { kitColorsPaletteCssTokens as e } from "../../../theme/aristid/general/colors/index.js";
7
- const v = p(i.Group)`
7
+ const n = p(i.Group)`
8
8
  ${({ $shouldOverrideLastAvatarStyle: r }) => r ? u`
9
9
  &.ant-avatar-group > span:last-child {
10
10
  background: var(
@@ -20,10 +20,10 @@ const v = p(i.Group)`
20
20
  );
21
21
  }
22
22
  ` : void 0}
23
- `, c = ({ className: r, maxCount: o, ...t }) => {
24
- var s = m().appId;
25
- return l.createElement(v, { ...t, maxCount: o, $shouldOverrideLastAvatarStyle: !!o, className: s + " " + (r ?? ""), maxStyle: { cursor: t.maxPopoverTrigger === "click" ? "pointer" : "initial" } });
26
- }, $ = c;
23
+ `, v = ({ className: r, maxCount: o, ...t }) => {
24
+ var l = m().appId;
25
+ return s.createElement(n, { ...t, maxCount: o, $shouldOverrideLastAvatarStyle: !!o, className: l + " " + (r ?? ""), maxStyle: { cursor: t.maxPopoverTrigger === "click" ? "pointer" : "initial" } });
26
+ }, $ = v;
27
27
  export {
28
28
  $ as default
29
29
  };
@@ -1,18 +1,27 @@
1
- import s, { useMemo as i } from "react";
1
+ import l, { useMemo as m } from "react";
2
2
  import { Badge as d } from "antd";
3
- import { styled as g } from "styled-components";
4
- import { useKitTheme as c } from "../../../theme/useKitTheme.js";
5
- import { isValidColor as m, getColor as p, getLighterColor as u } from "../../../utils/functions/index.js";
6
- import { kitBadgeCssTokens as r } from "../../../theme/aristid/components/DataDisplay/Badge/index.js";
7
- const y = g(d)`
3
+ import { styled as p } from "styled-components";
4
+ import { useKitTheme as g } from "../../../theme/useKitTheme.js";
5
+ import { isValidColor as c, getColor as u, getLighterColor as f } from "../../../utils/functions/index.js";
6
+ import { kitBadgeCssTokens as e } from "../../../theme/aristid/components/DataDisplay/Badge/index.js";
7
+ import { kitColorsPaletteCssTokens as n } from "../../../theme/aristid/general/colors/index.js";
8
+ import { typographyCssTokens as y } from "../../../theme/aristid/general/typography/index.js";
9
+ import { convertToPixel as h } from "../../../theme/utils/convert.js";
10
+ const C = p(d)`
8
11
  height: 16px;
9
12
  min-width: 16px;
10
13
  line-height: 16px;
11
- font-size: calc(var(--general-typography-fontSize7) * 1px);
14
+ font-size: ${h(y.fontSize7)};
12
15
 
13
16
  .ant-badge-count {
14
- background: var(--components-Badge-colors-background-default, var(--general-colors-secondary-red-red400));
15
- color: var(--components-Badge-colors-typography-default, var(--general-colors-neutral-typography-white));
17
+ background: var(
18
+ ${e.colors.background.default},
19
+ var(${n.secondary.red.red400})
20
+ );
21
+ color: var(
22
+ ${e.colors.typography.default},
23
+ var(${n.neutral.typography.white})
24
+ );
16
25
  }
17
26
 
18
27
  &.ant-badge {
@@ -34,11 +43,11 @@ const y = g(d)`
34
43
  }
35
44
  }
36
45
  }
37
- `, f = (o, e) => o && m(o) ? { [r.colors.background.default]: p(o, e), [r.colors.typography.default]: u(o, e) } : null, h = ({ color: o, style: e, secondaryColorInvert: t = !1, ...a }) => {
38
- var n = c().appId, l = i(() => ({ ...e, ...f(o, t) }), [o, t, e]);
39
- return s.createElement(y, { style: l, className: a.className + " " + n, ...a });
46
+ `, b = (o, t) => o && c(o) ? { [e.colors.background.default]: u(o, t), [e.colors.typography.default]: f(o, t) } : null, k = ({ color: o, style: t, secondaryColorInvert: r = !1, ...a }) => {
47
+ var i = g().appId, s = m(() => ({ ...t, ...b(o, r) }), [o, r, t]);
48
+ return l.createElement(C, { style: s, className: a.className + " " + i, ...a });
40
49
  };
41
- h.displayName = "KitBadge";
50
+ k.displayName = "KitBadge";
42
51
  export {
43
- h as KitBadge
52
+ k as KitBadge
44
53
  };
@@ -1,19 +1,19 @@
1
- import e from "react";
1
+ import r from "react";
2
2
  import { styled as G } from "styled-components";
3
3
  import N from "classnames";
4
4
  import { kitColorsPaletteCssTokens as t } from "../../../theme/aristid/general/colors/index.js";
5
5
  import { typographyCssTokens as i } from "../../../theme/aristid/general/typography/index.js";
6
- import { spacingCssTokens as b } from "../../../theme/aristid/general/spacing/index.js";
6
+ import { spacingCssTokens as h } from "../../../theme/aristid/general/spacing/index.js";
7
7
  import { FontAwesomeIcon as T } from "@fortawesome/react-fontawesome";
8
8
  import { faEllipsis as S } from "@fortawesome/free-solid-svg-icons";
9
- import { kitCardCssTokens as r } from "../../../theme/aristid/components/DataDisplay/Card/index.js";
9
+ import { kitCardCssTokens as e } from "../../../theme/aristid/components/DataDisplay/Card/index.js";
10
10
  import { useKitTheme as z } from "../../../theme/useKitTheme.js";
11
+ import { KitTag as K } from "../Tag/index.js";
11
12
  import { convertToPixel as d } from "../../../theme/utils/convert.js";
12
- import { KitCheckbox as K } from "../../DataEntry/Checkbox/index.js";
13
- import { KitSwitch as F } from "../../DataEntry/Switch/index.js";
13
+ import { KitCheckbox as F } from "../../DataEntry/Checkbox/index.js";
14
+ import { KitSwitch as W } from "../../DataEntry/Switch/index.js";
14
15
  import { KitButton as c } from "../../General/Button/index.js";
15
- import { KitDropDown as W } from "../../Navigation/DropDown/index.js";
16
- import { KitTag as B } from "../Tag/index.js";
16
+ import { KitDropDown as B } from "../../Navigation/DropDown/index.js";
17
17
  import { KitTypography as n } from "../../General/Typography/index.js";
18
18
  const I = G.div`
19
19
  display: flex;
@@ -21,12 +21,12 @@ const I = G.div`
21
21
  border-radius: 10px;
22
22
  overflow: hidden;
23
23
  background-color: var(
24
- ${r.colors.background.default},
24
+ ${e.colors.background.default},
25
25
  var(${t.neutral.white})
26
26
  );
27
27
  border: 1px solid
28
28
  var(
29
- ${r.colors.border.default},
29
+ ${e.colors.border.default},
30
30
  var(${t.secondary.mediumGrey.mediumGrey200})
31
31
  );
32
32
  margin: 2px;
@@ -35,12 +35,12 @@ const I = G.div`
35
35
 
36
36
  &.kit-card-disabled {
37
37
  background-color: var(
38
- ${r.colors.background.disabled},
38
+ ${e.colors.background.disabled},
39
39
  var(${t.secondary.mediumGrey.mediumGrey100})
40
40
  );
41
41
  .kit-card-picture {
42
42
  border-color: var(
43
- ${r.colors.separator.disabled},
43
+ ${e.colors.separator.disabled},
44
44
  var(${t.secondary.mediumGrey.mediumGrey400})
45
45
  );
46
46
  }
@@ -48,19 +48,19 @@ const I = G.div`
48
48
  .kit-card-content {
49
49
  .kit-card-title {
50
50
  color: var(
51
- ${r.colors.typography.title.disabled},
51
+ ${e.colors.typography.title.disabled},
52
52
  var(${t.secondary.mediumGrey.mediumGrey400})
53
53
  );
54
54
  }
55
55
  .kit-card-description {
56
56
  color: var(
57
- ${r.colors.typography.description.disabled},
57
+ ${e.colors.typography.description.disabled},
58
58
  var(${t.secondary.mediumGrey.mediumGrey400})
59
59
  );
60
60
  }
61
61
  .kit-card-extra {
62
62
  color: var(
63
- ${r.colors.typography.extra.disabled},
63
+ ${e.colors.typography.extra.disabled},
64
64
  var(${t.secondary.mediumGrey.mediumGrey400})
65
65
  );
66
66
  }
@@ -70,48 +70,48 @@ const I = G.div`
70
70
  &.kit-card-selected {
71
71
  margin: 0;
72
72
  border: 3px solid
73
- var(${r.colors.border.selected}, var(${t.primary.primary400}));
73
+ var(${e.colors.border.selected}, var(${t.primary.primary400}));
74
74
  }
75
75
 
76
76
  .kit-card-content {
77
77
  grid-area: content;
78
78
  display: flex;
79
79
  flex-direction: column;
80
- gap: ${d(b.xs)};
81
- padding: ${d(b.s)};
80
+ gap: ${d(h.xs)};
81
+ padding: ${d(h.s)};
82
82
 
83
83
  .kit-card-title {
84
- font-size: ${d(r.typography.title.fontSize, i.fontSize3)};
84
+ font-size: ${d(e.typography.title.fontSize, i.fontSize3)};
85
85
  font-weight: var(
86
- ${r.typography.title.fontWeight},
86
+ ${e.typography.title.fontWeight},
87
87
  var(${i.boldFontWeight})
88
88
  );
89
89
  color: var(
90
- ${r.colors.typography.title.default},
90
+ ${e.colors.typography.title.default},
91
91
  var(${t.primary.primary400})
92
92
  );
93
93
  }
94
94
 
95
95
  .kit-card-description {
96
- font-size: ${d(r.typography.description.fontSize, i.fontSize5)};
96
+ font-size: ${d(e.typography.description.fontSize, i.fontSize5)};
97
97
  font-weight: var(
98
- ${r.typography.description.fontWeight},
98
+ ${e.typography.description.fontWeight},
99
99
  var(${i.regularFontWeight})
100
100
  );
101
101
  color: var(
102
- ${r.colors.typography.description.default},
102
+ ${e.colors.typography.description.default},
103
103
  var(${t.secondary.mediumGrey.mediumGrey600})
104
104
  );
105
105
  }
106
106
 
107
107
  .kit-card-extra {
108
- font-size: ${d(r.typography.extra.fontSize, i.fontSize4)};
108
+ font-size: ${d(e.typography.extra.fontSize, i.fontSize4)};
109
109
  font-weight: var(
110
- ${r.typography.extra.fontWeight},
110
+ ${e.typography.extra.fontWeight},
111
111
  var(${i.boldFontWeight})
112
112
  );
113
113
  color: var(
114
- ${r.colors.typography.extra.default},
114
+ ${e.colors.typography.extra.default},
115
115
  var(${t.primary.primary400})
116
116
  );
117
117
  }
@@ -125,7 +125,7 @@ const I = G.div`
125
125
  overflow: hidden;
126
126
  position: relative;
127
127
  border-bottom: 4px solid
128
- ${({ $brandingBar: o }) => o ? `var(${r.colors.separator.default}, var(${t.primary.primary400}))` : "transparent"};
128
+ ${({ $brandingBar: o }) => o ? `var(${e.colors.separator.default}, var(${t.primary.primary400}))` : "transparent"};
129
129
 
130
130
  img {
131
131
  height: 100%;
@@ -160,14 +160,14 @@ const I = G.div`
160
160
  &:focus-within:not(.kit-card-disabled) {
161
161
  margin: 0;
162
162
  border: 3px solid
163
- var(${r.colors.border.focus}, var(${t.primary.primary200}));
163
+ var(${e.colors.border.focus}, var(${t.primary.primary200}));
164
164
  outline: none;
165
165
  }
166
166
 
167
167
  &:hover:not(.kit-card-disabled) {
168
168
  margin: 0;
169
169
  border: 3px solid
170
- var(${r.colors.border.hover}, var(${t.primary.primary400}));
170
+ var(${e.colors.border.hover}, var(${t.primary.primary400}));
171
171
 
172
172
  .kit-card-picture {
173
173
  border-color: transparent;
@@ -177,10 +177,10 @@ const I = G.div`
177
177
  }
178
178
  }
179
179
  }
180
- `, A = ({ actions: o, description: s, className: h, style: v, title: l, extra: m, previewSrc: x, tags: p, onActivate: y, onSelect: g, brandingBar: k = !1, selected: f = !1, activated: $ = !1, disabled: a = !1 }) => {
180
+ `, A = ({ actions: o, description: l, className: v, style: x, title: s, extra: m, previewSrc: p, tags: y, onActivate: g, onSelect: f, brandingBar: k = !1, selected: u = !1, activated: $ = !1, disabled: a = !1 }) => {
181
181
  const E = z().appId;
182
182
  var C = o && 2 < o.length, w = o && o.length <= 2;
183
- return e.createElement(I, { tabIndex: a ? -1 : 0, className: N(h, E, { "kit-card-selected": f, "kit-card-disabled": a }), style: v, $brandingBar: k }, e.createElement("div", { className: "kit-card-picture" }, e.createElement("img", { src: x ?? "public/images/no-preview.png" }), g && e.createElement(K, { className: "kit-card-checkbox", onChange: g, checked: f, disabled: a }), y && e.createElement(F, { className: "kit-card-switch", onChange: y, checked: $, disabled: a }), e.createElement("div", { className: "kit-card-buttons" }, w && e.createElement(e.Fragment, null, o.map((u) => e.createElement(c, { type: "segmented", icon: u.icon, onClick: u.onClick, disabled: a }))), C && e.createElement(e.Fragment, null, e.createElement(c, { type: "segmented", icon: o[0].icon, onClick: o[0].onClick, disabled: a }), e.createElement(W, { menu: { items: o.slice(1) }, disabled: a }, e.createElement(c, { type: "segmented", icon: e.createElement(T, { icon: S }) }))))), e.createElement("div", { className: "kit-card-content" }, p && e.createElement(B.Group, { tags: p }), l && e.createElement(n.Text, { className: "kit-card-title" }, l), s && e.createElement(n.Text, { className: "kit-card-description" }, s), m && e.createElement(n.Text, { className: "kit-card-extra", ellipsis: { tooltip: !0 } }, m)));
183
+ return r.createElement(I, { tabIndex: a ? -1 : 0, className: N(v, E, { "kit-card-selected": u, "kit-card-disabled": a }), style: x, $brandingBar: k }, r.createElement("div", { className: "kit-card-picture" }, r.createElement("img", { src: p ?? "public/images/no-preview.png" }), f && r.createElement(F, { className: "kit-card-checkbox", onChange: f, checked: u, disabled: a }), g && r.createElement(W, { className: "kit-card-switch", onChange: g, checked: $, disabled: a }), r.createElement("div", { className: "kit-card-buttons" }, w && r.createElement(r.Fragment, null, o.map((b) => r.createElement(c, { type: "segmented", icon: b.icon, onClick: b.onClick, disabled: a }))), C && r.createElement(r.Fragment, null, r.createElement(c, { type: "segmented", icon: o[0].icon, onClick: o[0].onClick, disabled: a }), r.createElement(B, { menu: { items: o.slice(1) }, disabled: a }, r.createElement(c, { type: "segmented", icon: r.createElement(T, { icon: S }) }))))), r.createElement("div", { className: "kit-card-content" }, y && r.createElement(K.Group, { tags: y }), s && r.createElement(n.Text, { className: "kit-card-title" }, s), l && r.createElement(n.Text, { className: "kit-card-description" }, l), m && r.createElement(n.Text, { className: "kit-card-extra", ellipsis: { tooltip: !0 } }, m)));
184
184
  };
185
185
  A.displayName = "KitCard";
186
186
  export {
@@ -1,15 +1,15 @@
1
- import v, { cloneElement as m } from "react";
2
- import { Collapse as $ } from "antd";
3
- import x from "styled-components";
1
+ import v, { cloneElement as b } from "react";
2
+ import { Collapse as h } from "antd";
3
+ import $ from "styled-components";
4
4
  import { kitCollapseCssTokens as e } from "../../../theme/aristid/components/DataDisplay/Collapse/index.js";
5
5
  import { borderCssTokens as d } from "../../../theme/aristid/general/border/index.js";
6
6
  import { kitColorsPaletteCssTokens as o } from "../../../theme/aristid/general/colors/index.js";
7
7
  import { spacingCssTokens as t } from "../../../theme/aristid/general/spacing/index.js";
8
- import { useKitTheme as g } from "../../../theme/useKitTheme.js";
9
- import { FontAwesomeIcon as C } from "@fortawesome/react-fontawesome";
10
- import { faChevronDown as k } from "@fortawesome/free-solid-svg-icons";
8
+ import { useKitTheme as x } from "../../../theme/useKitTheme.js";
9
+ import { FontAwesomeIcon as g } from "@fortawesome/react-fontawesome";
10
+ import { faChevronDown as C } from "@fortawesome/free-solid-svg-icons";
11
11
  import { convertToPixel as a } from "../../../theme/utils/convert.js";
12
- const I = x($)`
12
+ const k = $(h)`
13
13
  border: none;
14
14
 
15
15
  &&& > .ant-collapse-item {
@@ -108,7 +108,7 @@ const I = x($)`
108
108
  }
109
109
  }
110
110
 
111
- &.ant-collapse-item-active .ant-collapse-header .ant-collapse-expand-icon svg {
111
+ &.ant-collapse-item-active > .ant-collapse-header > .ant-collapse-expand-icon svg {
112
112
  transition: transform 0.3s ease-in-out;
113
113
  transform: rotate(180deg);
114
114
  }
@@ -142,15 +142,14 @@ const I = x($)`
142
142
  }
143
143
  }
144
144
  }
145
- `, T = () => v.createElement(C, { icon: k }), b = ({ className: u, expandIcon: f, items: l, collapsible: n, ...y }) => {
146
- var h = g().appId;
147
- return n === "disabled" && (l == null || l.forEach((r) => {
148
- var p, c;
149
- var s, i;
150
- r.label !== void 0 && (s = r.label, i = r.extra, s !== void 0 && ((p = s.type) == null ? void 0 : p.displayName) === "KitHeader" && (r.label = m(s, { disabled: !0 })), i !== void 0) && ((c = i.type) == null ? void 0 : c.displayName) === "KitHeaderExtra" && (r.extra = m(i, { disabled: !0 }));
151
- })), v.createElement(I, { ...y, className: h + " " + (u ?? ""), expandIcon: f ?? T, expandIconPosition: "end", collapsible: n, items: l });
152
- }, R = (b.displayName = "KitCollapse", b);
145
+ `, I = () => v.createElement(g, { icon: C }), u = ({ className: p, expandIcon: c, items: n, collapsible: m, ...f }) => {
146
+ var y = x().appId;
147
+ return m === "disabled" && n != null && n.forEach((r) => {
148
+ var l, s, i;
149
+ r.label !== void 0 && (s = r.label, i = r.extra, s !== void 0 && ((l = s.type) == null ? void 0 : l.displayName) === "KitHeader" && (r.label = b(s, { disabled: !0 })), i !== void 0) && ((l = i.type) == null ? void 0 : l.displayName) === "KitHeaderExtra" && (r.extra = b(i, { disabled: !0 }));
150
+ }), v.createElement(k, { ...f, className: y + " " + (p ?? ""), expandIcon: c ?? I, expandIconPosition: "end", collapsible: m, items: n });
151
+ }, F = (u.displayName = "KitCollapse", u);
153
152
  export {
154
- b as KitCollapse,
155
- R as default
153
+ u as KitCollapse,
154
+ F as default
156
155
  };
@@ -1,15 +1,15 @@
1
1
  import e from "react";
2
2
  import m from "styled-components";
3
- import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
4
- import { faEye as g } from "@fortawesome/free-regular-svg-icons";
3
+ import { KitTag as p } from "../Tag/index.js";
4
+ import { KitImage as g } from "../Image/index.js";
5
+ import { FontAwesomeIcon as h } from "@fortawesome/react-fontawesome";
6
+ import { faEye as k } from "@fortawesome/free-regular-svg-icons";
5
7
  import { convertToPixel as l } from "../../../theme/utils/convert.js";
6
8
  import { spacingCssTokens as n } from "../../../theme/aristid/general/spacing/index.js";
7
- import { typographyCssTokens as h } from "../../../theme/aristid/general/typography/index.js";
8
- import { KitSwitch as k } from "../../DataEntry/Switch/index.js";
9
- import { KitImage as w } from "../Image/index.js";
10
- import { KitTag as f } from "../Tag/index.js";
9
+ import { typographyCssTokens as w } from "../../../theme/aristid/general/typography/index.js";
10
+ import { KitSwitch as v } from "../../DataEntry/Switch/index.js";
11
11
  import { KitTypography as c } from "../../General/Typography/index.js";
12
- const v = m.div`
12
+ const f = m.div`
13
13
  display: grid;
14
14
  grid-template: 'switch image content';
15
15
  grid-template-columns: min-content min-content min-content;
@@ -42,20 +42,20 @@ const v = m.div`
42
42
 
43
43
  .kit-collapse-header-content-title {
44
44
  grid-area: title;
45
- font-size: ${l(h.fontSize3)};
45
+ font-size: ${l(w.fontSize3)};
46
46
  }
47
47
 
48
48
  .kit-collapse-header-content-description {
49
49
  grid-area: description;
50
50
  }
51
51
  }
52
- `, E = ({ onSwitchChange: t, disabled: i }) => e.createElement("div", { className: "kit-collapse-header-switch", onClick: (a) => a.stopPropagation() }, e.createElement(k, { onChange: (a, r) => {
53
- var o;
54
- (o = r.target.closest(".ant-collapse-item")) == null || o.setAttribute("data-item-selected", a.toString()), t(a, r);
55
- }, disabled: i })), x = ({ imageSrc: t }) => e.createElement("div", { className: "kit-collapse-header-image", onClick: (i) => i.stopPropagation() }, e.createElement(w, { src: t, style: { height: "auto", width: "auto", maxHeight: "90px", maxWidth: "50px" }, preview: { mask: e.createElement(p, { icon: g }) } })), C = ({ title: t, description: i, tagContent: a, disabled: r }) => {
52
+ `, E = ({ onSwitchChange: t, disabled: i }) => e.createElement("div", { className: "kit-collapse-header-switch", onClick: (a) => a.stopPropagation() }, e.createElement(v, { onChange: (a, r) => {
53
+ var o = r.target.closest(".ant-collapse-item");
54
+ o != null && o.setAttribute("data-item-selected", a.toString()), t(a, r);
55
+ }, disabled: i })), x = ({ imageSrc: t }) => e.createElement("div", { className: "kit-collapse-header-image", onClick: (i) => i.stopPropagation() }, e.createElement(g, { src: t, style: { height: "auto", width: "auto", maxHeight: "90px", maxWidth: "50px" }, preview: { mask: e.createElement(h, { icon: k }) } })), C = ({ title: t, description: i, tagContent: a, disabled: r }) => {
56
56
  var o = "kit-collapse-header-content";
57
- return e.createElement("div", { className: o += t !== void 0 && i !== void 0 ? " kit-collapse-header-content-rows" : "" }, a !== void 0 && e.createElement("div", { className: "kit-collapse-header-tag" }, e.createElement(f, null, a)), t !== void 0 && e.createElement(c.Text, { className: "kit-collapse-header-content-title", size: "large", weight: "bold", ellipsis: { tooltip: !0 }, disabled: r }, t), i !== void 0 && e.createElement(c.Text, { className: "kit-collapse-header-content-description", size: "large", weight: "regular", ellipsis: { tooltip: !0 }, disabled: r }, i));
58
- }, d = ({ onSwitchChange: t, imageSrc: i, title: a, description: r, tagContent: o, disabled: s = !1 }) => e.createElement(v, null, t !== void 0 && e.createElement(E, { onSwitchChange: t, disabled: s }), i !== void 0 && e.createElement(x, { imageSrc: i }), e.createElement(C, { title: a, description: r, tagContent: o, disabled: s })), P = (d.displayName = "KitHeader", d);
57
+ return e.createElement("div", { className: o += t !== void 0 && i !== void 0 ? " kit-collapse-header-content-rows" : "" }, a !== void 0 && e.createElement("div", { className: "kit-collapse-header-tag" }, e.createElement(p, null, a)), t !== void 0 && e.createElement(c.Text, { className: "kit-collapse-header-content-title", size: "large", weight: "bold", ellipsis: { tooltip: !0 }, disabled: r }, t), i !== void 0 && e.createElement(c.Text, { className: "kit-collapse-header-content-description", size: "large", weight: "regular", ellipsis: { tooltip: !0 }, disabled: r }, i));
58
+ }, d = ({ onSwitchChange: t, imageSrc: i, title: a, description: r, tagContent: o, disabled: s = !1 }) => e.createElement(f, null, t !== void 0 && e.createElement(E, { onSwitchChange: t, disabled: s }), i !== void 0 && e.createElement(x, { imageSrc: i }), e.createElement(C, { title: a, description: r, tagContent: o, disabled: s })), P = (d.displayName = "KitHeader", d);
59
59
  export {
60
60
  d as KitHeader,
61
61
  P as default
@@ -1,14 +1,14 @@
1
- import o, { useState as E } from "react";
2
- import f from "styled-components";
3
- import { FontAwesomeIcon as C } from "@fortawesome/react-fontawesome";
4
- import { faEllipsisVertical as b } from "@fortawesome/free-solid-svg-icons";
1
+ import o, { useState as k } from "react";
2
+ import E from "styled-components";
3
+ import { FontAwesomeIcon as f } from "@fortawesome/react-fontawesome";
4
+ import { faEllipsisVertical as u } from "@fortawesome/free-solid-svg-icons";
5
5
  import { convertToPixel as d } from "../../../theme/utils/convert.js";
6
- import { spacingCssTokens as p } from "../../../theme/aristid/general/spacing/index.js";
7
- import { useKitLocale as u } from "../../../translation/useKitLocale.js";
6
+ import { spacingCssTokens as m } from "../../../theme/aristid/general/spacing/index.js";
7
+ import { useKitLocale as C } from "../../../translation/useKitLocale.js";
8
8
  import { KitTooltip as c } from "../Tooltip/index.js";
9
9
  import { KitButton as s } from "../../General/Button/index.js";
10
- import { KitDropDown as x } from "../../Navigation/DropDown/index.js";
11
- const h = f.div`
10
+ import { KitDropDown as b } from "../../Navigation/DropDown/index.js";
11
+ const x = E.div`
12
12
  display: grid;
13
13
  grid-template: 'checkbox actions';
14
14
 
@@ -18,19 +18,18 @@ const h = f.div`
18
18
  }
19
19
 
20
20
  .kit-collapse-header-extra-actions {
21
- padding-left: ${d(p.s)};
21
+ padding-left: ${d(m.s)};
22
22
  grid-area: actions;
23
23
  display: grid;
24
24
  grid-template-columns: auto auto;
25
25
 
26
26
  > div:nth-child(2) {
27
- margin-left: ${d(p.s)};
27
+ margin-left: ${d(m.s)};
28
28
  }
29
29
  }
30
- `, v = ({ actions: e, disabled: t }) => {
31
- var m;
32
- const [r, n] = E(!1);
33
- var k = u().locale;
30
+ `, h = ({ actions: e, disabled: t }) => {
31
+ const [r, n] = k(!1);
32
+ var g = C().locale;
34
33
  const a = e[0] || null, l = e.length <= 2 && e[1] ? e[1] : null;
35
34
  return o.createElement("div", { className: "kit-collapse-header-extra-actions" }, a && o.createElement(c, { title: a.label, open: !t && void 0 }, o.createElement(s, { icon: a.icon, disabled: t, onClick: (i) => {
36
35
  i.stopPropagation(), a.onClick && a.onClick(i);
@@ -38,9 +37,9 @@ const h = f.div`
38
37
  i.stopPropagation(), l.onClick !== void 0 && l.onClick(i);
39
38
  } })), 2 < e.length && o.createElement("div", { onClick: (i) => {
40
39
  i.stopPropagation();
41
- } }, o.createElement(x, { menu: { items: y({ actions: e }) }, trigger: ["click"], onOpenChange: () => n(!1) }, o.createElement(c, { title: (m = k.Collapse) == null ? void 0 : m.more, open: !t && r, onOpenChange: n }, o.createElement(s, { icon: o.createElement(C, { icon: b }), disabled: t })))));
42
- }, y = ({ actions: e }) => (e = [...e], e.splice(0, 1), e = e.map((t, r) => ({ key: r, icon: t.icon, label: t.label, onClick: (n) => t.onClick && t.onClick(n) })), e), g = ({ actions: e, disabled: t = !1 }) => o.createElement(h, null, e !== void 0 && o.createElement(v, { actions: e, disabled: t })), S = (g.displayName = "KitHeaderExtra", g);
40
+ } }, o.createElement(b, { menu: { items: v({ actions: e }) }, trigger: ["click"], onOpenChange: () => n(!1) }, o.createElement(c, { title: (e = g.Collapse) == null ? void 0 : e.more, open: !t && r, onOpenChange: n }, o.createElement(s, { icon: o.createElement(f, { icon: u }), disabled: t })))));
41
+ }, v = ({ actions: e }) => (e = [...e], e.splice(0, 1), e = e.map((t, r) => ({ key: r, icon: t.icon, label: t.label, onClick: (n) => t.onClick && t.onClick(n) })), e), p = ({ actions: e, disabled: t = !1 }) => o.createElement(x, null, e !== void 0 && o.createElement(h, { actions: e, disabled: t })), O = (p.displayName = "KitHeaderExtra", p);
43
42
  export {
44
- g as KitHeaderExtra,
45
- S as default
43
+ p as KitHeaderExtra,
44
+ O as default
46
45
  };
@@ -1,31 +1,31 @@
1
- import d from "react";
2
- import { Image as l } from "antd";
3
- import n from "styled-components";
4
- import { FontAwesomeIcon as b } from "@fortawesome/react-fontawesome";
5
- import { faEye as f } from "@fortawesome/free-solid-svg-icons";
1
+ import t from "react";
2
+ import { Image as u } from "antd";
3
+ import p from "styled-components";
4
+ import { FontAwesomeIcon as $ } from "@fortawesome/react-fontawesome";
5
+ import { faEye as v } from "@fortawesome/free-solid-svg-icons";
6
6
  import { useKitLocale as k } from "../../../translation/useKitLocale.js";
7
7
  import { kitImageCssTokens as e } from "../../../theme/aristid/components/DataDisplay/Image/index.js";
8
8
  import { borderCssTokens as a } from "../../../theme/aristid/general/border/index.js";
9
- import { kitColorsPaletteCssTokens as i } from "../../../theme/aristid/general/colors/index.js";
9
+ import { kitColorsPaletteCssTokens as l } from "../../../theme/aristid/general/colors/index.js";
10
10
  import { useKitTheme as g } from "../../../theme/useKitTheme.js";
11
- const I = n(l)`
12
- border-radius: ${({ $rounded: r }) => r ? `calc(var(${e.border.radius.rounded}, var(${a.radius.s})) * 1px)` : `calc(var(${e.border.radius.default}, var(${a.radius.square})) * 1px)`};
13
- border: ${({ $bordered: r }) => r ? `1px solid var(${e.colors.border.default}, var(${i.neutral.black60}))` : `var(${e.colors.border.none}, none))`};
11
+ import { convertToPixel as d } from "../../../theme/utils/convert.js";
12
+ const I = p(u)`
13
+ border-radius: ${({ $rounded: r }) => r ? d(e.border.radius.rounded, a.radius.s) : d(e.border.radius.default, a.radius.square)};
14
+ border: ${({ $bordered: r }) => r ? `1px solid var(${e.colors.border.default}, var(${l.neutral.black60}))` : `var(${e.colors.border.none}, none))`};
14
15
 
15
16
  + .ant-image-mask {
16
- border-radius: ${({ $rounded: r }) => r ? `calc(var(${e.border.radius.rounded}, var(${a.radius.s})) * 1px)` : `calc(var(${e.border.radius.default}, var(${a.radius.square})) * 1px)`};
17
- border: ${({ $bordered: r }) => r ? `1px solid var(${e.colors.border.default}, var(${i.neutral.black60}))` : `var(${e.colors.border.none}, none))`};
17
+ border-radius: ${({ $rounded: r }) => r ? d(e.border.radius.rounded, a.radius.s) : d(e.border.radius.default, a.radius.square)};
18
+ border: ${({ $bordered: r }) => r ? `1px solid var(${e.colors.border.default}, var(${l.neutral.black60}))` : `var(${e.colors.border.none}, none))`};
18
19
  }
19
- `, x = n.div`
20
+ `, w = p.div`
20
21
  display: flex;
21
22
  gap: 6px;
22
- `, w = ({ rounded: r, bordered: u, preview: o, className: p, ...c }) => {
23
- var t;
24
- var $ = k().locale, v = g().appId;
25
- const s = d.createElement(x, null, d.createElement(b, { icon: f }), (t = $.Image) == null ? void 0 : t.preview);
26
- return d.createElement(I, { className: v + " " + (p ?? ""), $rounded: r, $bordered: u, preview: typeof o == "object" ? { mask: s, ...o } : o === void 0 ? { mask: s } : o, ...c });
27
- }, m = w;
28
- m.PreviewGroup = l.PreviewGroup, m.displayName = "KitImage";
23
+ `, x = ({ rounded: r, bordered: b, preview: o, className: i, ...c }) => {
24
+ var s = k().locale, f = g().appId;
25
+ const m = t.createElement(w, null, t.createElement($, { icon: v }), (s = s.Image) == null ? void 0 : s.preview);
26
+ return t.createElement(I, { className: f + " " + (i ?? ""), $rounded: r, $bordered: b, preview: typeof o == "object" ? { mask: m, ...o } : o === void 0 ? { mask: m } : o, ...c });
27
+ }, n = x;
28
+ n.PreviewGroup = u.PreviewGroup, n.displayName = "KitImage";
29
29
  export {
30
- m as KitImage
30
+ n as KitImage
31
31
  };
@@ -1,19 +1,14 @@
1
- import e from "react";
2
- import i from "styled-components";
3
- import { KitTooltip as m } from "../Tooltip/index.js";
1
+ import l from "react";
2
+ import m from "styled-components";
3
+ import { KitTooltip as c } from "../Tooltip/index.js";
4
4
  import { useKitTheme as s } from "../../../theme/useKitTheme.js";
5
- import { kitItemCardCssTokens as t } from "../../../theme/aristid/components/DataDisplay/ItemCard/index.js";
6
- import { borderCssTokens as n } from "../../../theme/aristid/general/border/index.js";
7
- const d = i.div`
8
- width: ${({ $column: r }) => r ? `calc(var(
9
- ${t.colorBar.thickness},
10
- 8
11
- )* 1px)` : "auto"};
12
- height: ${({ $column: r }) => r ? "auto" : `calc(var(
13
- ${t.colorBar.thickness},
14
- 8
15
- )* 1px)`};
16
- border-radius: calc(var(${t.colorBar.border.radius}, var(${n.radius.s})) * 1px);
5
+ import { kitItemCardCssTokens as a } from "../../../theme/aristid/components/DataDisplay/ItemCard/index.js";
6
+ import { borderCssTokens as u } from "../../../theme/aristid/general/border/index.js";
7
+ import { convertToPixel as i } from "../../../theme/utils/convert.js";
8
+ const d = m.div`
9
+ width: ${({ $column: r }) => r ? i(a.colorBar.thickness, 8) : "auto"};
10
+ height: ${({ $column: r }) => r ? "auto" : i(a.colorBar.thickness, 8)};
11
+ border-radius: ${i(a.colorBar.border.radius, u.radius.s)};
17
12
  display: flex;
18
13
  flex-direction: ${({ $column: r }) => r ? "column" : "row"};
19
14
  overflow: hidden;
@@ -21,11 +16,10 @@ const d = i.div`
21
16
  > div {
22
17
  flex: 1 1 auto;
23
18
  }
24
- `, p = (r) => ({ background: r.color ?? "transparent" }), u = (r) => {
25
- var a;
26
- var l = s().appId;
27
- return e.createElement(d, { $column: r.vertical ?? !1, className: l + " " + r.className }, (a = r.colors) == null ? void 0 : a.map((o, c) => e.createElement(m, { key: o.label + "_" + c, title: o.label, placement: r.vertical ? "right" : "top" }, e.createElement("div", { style: p(o) }))));
28
- }, x = u;
19
+ `, p = (r) => ({ background: (r = r.color) != null ? r : "transparent" }), f = (r) => {
20
+ var o, n = s().appId;
21
+ return l.createElement(d, { $column: (o = r.vertical) != null && o, className: n + " " + r.className }, (o = r.colors) == null ? void 0 : o.map((e, t) => l.createElement(c, { key: e.label + "_" + t, title: e.label, placement: (t = r.vertical) != null && t ? "right" : "top" }, l.createElement("div", { style: p(e) }))));
22
+ }, y = f;
29
23
  export {
30
- x as default
24
+ y as default
31
25
  };