@vitality-ds/components 5.7.0-alpha.2 → 5.7.0-alpha.3

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 (182) hide show
  1. package/dist/AuditTrail/components/AuditItem/index.spec.js +14 -13
  2. package/dist/AuditTrail/components/IconAvatar/index.js +3 -4
  3. package/dist/AuditTrail/constants.js +21 -20
  4. package/dist/Breadcrumbs/components/Breadcrumb/index.js +3 -3
  5. package/dist/Button/components/ButtonIcon/styles/BaseButtonIcon.styles.js +27 -30
  6. package/dist/Button/primitives/styles/BaseContentContainer.styles.js +1 -1
  7. package/dist/Callout/constants.js +19 -17
  8. package/dist/Callout/hooks/useCalloutContent.js +1 -1
  9. package/dist/Callout/index.js +10 -14
  10. package/dist/Callout/styles/BaseCalloutIconContainer.styles.js +12 -2
  11. package/dist/Chip/components/Checkbox/constants.js +4 -4
  12. package/dist/Chip/components/ChipIcon/index.js +2 -2
  13. package/dist/Chip/components/RemoveButton/index.js +4 -4
  14. package/dist/Chip/components/RemoveButton/styles/BaseRemoveButtonButton.styles.js +4 -1
  15. package/dist/Chip/styles/BaseChip.styles.js +1 -1
  16. package/dist/ComboButton/index.js +2 -2
  17. package/dist/Dialog/components/DialogHeader/index.js +5 -4
  18. package/dist/Dialog/constants.js +3 -3
  19. package/dist/DropdownMenu/components/Content/index.js +5 -6
  20. package/dist/DropdownMenu/components/IconContainer/index.js +1 -2
  21. package/dist/DropdownMenu/styles/Content.styles.js +4 -1
  22. package/dist/Form/FormField/index.js +4 -4
  23. package/dist/Form/HelperMessage/index.js +4 -4
  24. package/dist/IconButton/index.js +2 -2
  25. package/dist/IconButton/styles/BaseIconButton.styles.js +6 -3
  26. package/dist/Input/DatePicker/components/Calendar/index.js +3 -3
  27. package/dist/Input/DatePicker/index.js +2 -2
  28. package/dist/Input/DateRangePicker/index.js +4 -6
  29. package/dist/Input/DateRangePicker/styles/ExtrasContainers.js +7 -2
  30. package/dist/Input/PasswordInput/constants.js +3 -3
  31. package/dist/Input/SearchInput/index.js +2 -2
  32. package/dist/Input/Select/SearchSelectInput/index.js +2 -2
  33. package/dist/Input/Select/components/Chip/MultiValueRemove/index.js +4 -4
  34. package/dist/Input/Select/components/ClearButton/index.js +4 -4
  35. package/dist/Input/Select/components/DropdownIndicator/index.js +7 -7
  36. package/dist/Input/TextInput/components/IconAdornment/index.js +1 -2
  37. package/dist/Input/TextInput/components/IconAdornment/styles/BaseIconWrapper.styles.js +6 -2
  38. package/dist/Input/TextInput/components/IconButtonAdornment/index.js +1 -4
  39. package/dist/Input/TextInput/components/IconButtonAdornment/styles/BaseIconButtonWrapper.styles.js +1 -6
  40. package/dist/Input/TextInput/components/SpinnerAdornment/index.js +1 -1
  41. package/dist/Input/TextInput/components/SpinnerAdornment/styles/BaseSpinnerWrapper.styles.js +1 -1
  42. package/dist/LucideProvider/index.js +18 -0
  43. package/dist/LucideProvider/types.js +1 -0
  44. package/dist/Provider/index.js +3 -1
  45. package/dist/Sidebar/components/SidebarCloseButton/index.js +2 -2
  46. package/dist/StatusBadge/components/StatusBadgeIcon/styles/BaseStatusBadge.styles.js +1 -1
  47. package/dist/StatusBadge/constants.js +9 -6
  48. package/dist/StatusBadge/logic.spec.js +13 -6
  49. package/dist/StatusBadge/styles/BaseStatusBadge.styles.js +27 -1
  50. package/dist/Switch/index.js +4 -4
  51. package/dist/Table/components/Cells/RowActions/constants.js +5 -5
  52. package/dist/Table/components/Cells/SortableHeader/components/SortableIcon/index.js +3 -4
  53. package/dist/Table/components/Cells/SortableHeader/components/SortableIcon/styles/BaseSortableIconContainer.styles.js +3 -1
  54. package/dist/Table/components/Cells/SortableHeader/components/SortedIcon/index.js +4 -4
  55. package/dist/Table/components/Cells/SortableHeader/components/SortedIcon/styles/BaseSortedIconContainer.js +4 -2
  56. package/dist/Table/components/MemoizedCell/constants.js +4 -1
  57. package/dist/Table/components/MemoizedCell/logic.js +6 -5
  58. package/dist/Table/components/MemoizedCell/logic.spec.js +24 -0
  59. package/dist/Table/components/Pagination/index.js +3 -3
  60. package/dist/Table/components/States/Error/index.js +5 -4
  61. package/dist/Tabs/index.js +18 -8
  62. package/dist/Toaster/components/CloseIconButton/index.js +4 -4
  63. package/dist/Toaster/components/Toast/constants.js +6 -6
  64. package/dist/Toaster/components/Toast/helpers/getVariantsByColorScale.js +2 -4
  65. package/dist/Toaster/components/Toast/index.js +1 -1
  66. package/dist/Toaster/components/Toast/logic.spec.js +6 -6
  67. package/dist/Toaster/components/Toast/styles/BaseToast.styles.js +3 -0
  68. package/dist/Typography/styles/BaseTypography.styles.js +128 -127
  69. package/dist/components/src/AuditTrail/components/IconAvatar/types.d.ts +2 -3
  70. package/dist/components/src/AuditTrail/logic.d.ts +2 -2
  71. package/dist/components/src/AuditTrail/types.d.ts +2 -3
  72. package/dist/components/src/Button/components/ButtonIcon/styled.d.ts +2 -45
  73. package/dist/components/src/Button/components/ButtonIcon/styles/BaseButtonIcon.styles.d.ts +2 -45
  74. package/dist/components/src/Callout/styled.d.ts +408 -1
  75. package/dist/components/src/Callout/styles/BaseCalloutIconContainer.styles.d.ts +14 -1
  76. package/dist/components/src/Callout/types.d.ts +4 -4
  77. package/dist/components/src/Chip/components/ChipIcon/types.d.ts +2 -3
  78. package/dist/components/src/Chip/types.d.ts +3 -4
  79. package/dist/components/src/Dialog/types.d.ts +4 -4
  80. package/dist/components/src/DropdownMenu/components/DropdownMenuItem/types.d.ts +2 -3
  81. package/dist/components/src/Form/FormField/constants.d.ts +2 -2
  82. package/dist/components/src/IconButton/styled.d.ts +10 -4
  83. package/dist/components/src/IconButton/styles/BaseIconButton.styles.d.ts +5 -2
  84. package/dist/components/src/IconButton/types.d.ts +3 -4
  85. package/dist/components/src/Input/PasswordInput/types.d.ts +3 -2
  86. package/dist/components/src/Input/SearchInput/types.d.ts +2 -3
  87. package/dist/components/src/Input/Select/AsyncSelect/index.d.ts +1 -1
  88. package/dist/components/src/Input/Select/SearchSelectInput/index.d.ts +1 -1
  89. package/dist/components/src/Input/Select/types.d.ts +2 -2
  90. package/dist/components/src/Input/TextInput/components/IconAdornment/types.d.ts +3 -7
  91. package/dist/components/src/Link/styled.d.ts +3 -259
  92. package/dist/components/src/LucideProvider/index.d.ts +4 -0
  93. package/dist/components/src/LucideProvider/types.d.ts +7 -0
  94. package/dist/components/src/Provider/types.d.ts +10 -1
  95. package/dist/components/src/StatusBadge/styled.d.ts +6 -0
  96. package/dist/components/src/StatusBadge/styles/BaseStatusBadge.styles.d.ts +2 -0
  97. package/dist/components/src/StatusBadge/types.d.ts +1 -1
  98. package/dist/components/src/Table/components/Cells/Icon/types.d.ts +3 -4
  99. package/dist/components/src/Table/components/Cells/RowActions/constants.d.ts +4 -5
  100. package/dist/components/src/Table/components/Cells/SortableHeader/components/SortedIcon/styled.d.ts +2 -0
  101. package/dist/components/src/Table/components/Cells/SortableHeader/components/SortedIcon/styles/BaseSortedIconContainer.d.ts +2 -0
  102. package/dist/components/src/Table/components/MemoizedCell/constants.d.ts +1 -0
  103. package/dist/components/src/Tabs/index.d.ts +1 -1
  104. package/dist/components/src/Tabs/types.d.ts +2 -6
  105. package/dist/components/src/Toaster/components/Toast/constants.d.ts +5 -6
  106. package/dist/components/src/Toaster/components/Toast/helpers/getVariantsByColorScale.d.ts +2 -4
  107. package/dist/components/src/Toaster/components/Toast/styled.d.ts +13 -20
  108. package/dist/components/src/Toaster/components/Toast/styles/BaseToast.styles.d.ts +13 -20
  109. package/dist/components/src/Typography/styled.d.ts +3 -259
  110. package/dist/components/src/Typography/styles/BaseTypography.styles.d.ts +3 -313
  111. package/dist/esm/AuditTrail/components/AuditItem/index.spec.js +15 -14
  112. package/dist/esm/AuditTrail/components/IconAvatar/index.js +3 -4
  113. package/dist/esm/AuditTrail/constants.js +22 -21
  114. package/dist/esm/Breadcrumbs/components/Breadcrumb/index.js +2 -2
  115. package/dist/esm/Button/components/ButtonIcon/styles/BaseButtonIcon.styles.js +27 -29
  116. package/dist/esm/Button/primitives/styles/BaseContentContainer.styles.js +1 -1
  117. package/dist/esm/Callout/constants.js +14 -13
  118. package/dist/esm/Callout/hooks/useCalloutContent.js +1 -1
  119. package/dist/esm/Callout/index.js +10 -14
  120. package/dist/esm/Callout/styles/BaseCalloutIconContainer.styles.js +12 -2
  121. package/dist/esm/Chip/components/Checkbox/constants.js +4 -4
  122. package/dist/esm/Chip/components/ChipIcon/index.js +2 -2
  123. package/dist/esm/Chip/components/RemoveButton/index.js +4 -4
  124. package/dist/esm/Chip/components/RemoveButton/styles/BaseRemoveButtonButton.styles.js +4 -1
  125. package/dist/esm/Chip/styles/BaseChip.styles.js +1 -1
  126. package/dist/esm/ComboButton/index.js +2 -2
  127. package/dist/esm/Dialog/components/DialogHeader/index.js +5 -4
  128. package/dist/esm/Dialog/constants.js +3 -3
  129. package/dist/esm/DropdownMenu/components/Content/index.js +4 -5
  130. package/dist/esm/DropdownMenu/components/IconContainer/index.js +1 -2
  131. package/dist/esm/DropdownMenu/styles/Content.styles.js +4 -1
  132. package/dist/esm/Form/FormField/index.js +3 -3
  133. package/dist/esm/Form/HelperMessage/index.js +4 -4
  134. package/dist/esm/IconButton/index.js +2 -2
  135. package/dist/esm/IconButton/styles/BaseIconButton.styles.js +6 -3
  136. package/dist/esm/Input/DatePicker/components/Calendar/index.js +1 -1
  137. package/dist/esm/Input/DatePicker/index.js +2 -2
  138. package/dist/esm/Input/DateRangePicker/index.js +4 -6
  139. package/dist/esm/Input/DateRangePicker/styles/ExtrasContainers.js +6 -2
  140. package/dist/esm/Input/PasswordInput/constants.js +3 -3
  141. package/dist/esm/Input/SearchInput/index.js +1 -1
  142. package/dist/esm/Input/Select/SearchSelectInput/index.js +1 -1
  143. package/dist/esm/Input/Select/components/Chip/MultiValueRemove/index.js +4 -4
  144. package/dist/esm/Input/Select/components/ClearButton/index.js +4 -4
  145. package/dist/esm/Input/Select/components/DropdownIndicator/index.js +7 -7
  146. package/dist/esm/Input/TextInput/components/IconAdornment/index.js +1 -2
  147. package/dist/esm/Input/TextInput/components/IconAdornment/styles/BaseIconWrapper.styles.js +6 -3
  148. package/dist/esm/Input/TextInput/components/IconButtonAdornment/index.js +1 -4
  149. package/dist/esm/Input/TextInput/components/IconButtonAdornment/styles/BaseIconButtonWrapper.styles.js +1 -6
  150. package/dist/esm/Input/TextInput/components/SpinnerAdornment/index.js +1 -1
  151. package/dist/esm/Input/TextInput/components/SpinnerAdornment/styles/BaseSpinnerWrapper.styles.js +1 -1
  152. package/dist/esm/LucideProvider/index.js +11 -0
  153. package/dist/esm/LucideProvider/types.js +1 -0
  154. package/dist/esm/Provider/index.js +3 -1
  155. package/dist/esm/Sidebar/components/SidebarCloseButton/index.js +2 -2
  156. package/dist/esm/StatusBadge/components/StatusBadgeIcon/styles/BaseStatusBadge.styles.js +1 -1
  157. package/dist/esm/StatusBadge/constants.js +8 -5
  158. package/dist/esm/StatusBadge/logic.spec.js +11 -4
  159. package/dist/esm/StatusBadge/styles/BaseStatusBadge.styles.js +27 -1
  160. package/dist/esm/Switch/index.js +4 -4
  161. package/dist/esm/Table/components/Cells/RowActions/constants.js +4 -4
  162. package/dist/esm/Table/components/Cells/SortableHeader/components/SortableIcon/index.js +3 -4
  163. package/dist/esm/Table/components/Cells/SortableHeader/components/SortableIcon/styles/BaseSortableIconContainer.styles.js +3 -1
  164. package/dist/esm/Table/components/Cells/SortableHeader/components/SortedIcon/index.js +4 -4
  165. package/dist/esm/Table/components/Cells/SortableHeader/components/SortedIcon/styles/BaseSortedIconContainer.js +4 -2
  166. package/dist/esm/Table/components/MemoizedCell/constants.js +3 -0
  167. package/dist/esm/Table/components/MemoizedCell/logic.js +7 -6
  168. package/dist/esm/Table/components/MemoizedCell/logic.spec.js +24 -0
  169. package/dist/esm/Table/components/Pagination/index.js +1 -1
  170. package/dist/esm/Table/components/States/Error/index.js +5 -4
  171. package/dist/esm/Tabs/index.js +18 -8
  172. package/dist/esm/Toaster/components/CloseIconButton/index.js +4 -4
  173. package/dist/esm/Toaster/components/Toast/constants.js +4 -4
  174. package/dist/esm/Toaster/components/Toast/helpers/getVariantsByColorScale.js +2 -4
  175. package/dist/esm/Toaster/components/Toast/index.js +1 -1
  176. package/dist/esm/Toaster/components/Toast/logic.spec.js +4 -4
  177. package/dist/esm/Toaster/components/Toast/styles/BaseToast.styles.js +3 -0
  178. package/dist/esm/Typography/styles/BaseTypography.styles.js +128 -127
  179. package/dist/esm/helpers/logic/get-component-from-lookup.spec.js +3 -3
  180. package/dist/helpers/logic/get-component-from-lookup.spec.js +3 -3
  181. package/dist/tsconfig.tsbuildinfo +1 -1
  182. package/package.json +5 -4
@@ -5,10 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports["default"] = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
- var _icons = require("@vitality-ds/icons");
12
10
  var _system = require("@vitality-ds/system");
13
11
  var _variants = require("../constants/variants");
14
12
  var _helpers = require("./helpers");
@@ -16,137 +14,140 @@ var text = _system.colorUseCases.text;
16
14
  var overflowSharedStyles = {
17
15
  overflow: "hidden"
18
16
  };
19
- var _default = exports["default"] = (0, _system.css)((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({
17
+ var _default = exports["default"] = (0, _system.css)({
20
18
  fontFamily: "$default",
21
19
  fontSize: "inherit",
22
20
  // Reset browser default margins added to certain semantic HTML elements
23
- marginBlock: 0
24
- }, "& > ".concat(_icons.BaseIcon), {
25
- // Aligning Icons to text baseline = most Icons have 2px inner bottom spacing -> 2/24 * 2 = 0.2 rounded up
26
- marginTop: "-.2em"
27
- }), "variants", {
28
- /**
29
- * Set the text element's text alignment
30
- */
31
- textAlign: {
32
- start: {
33
- textAlign: "start"
34
- },
35
- end: {
36
- textAlign: "end"
37
- },
38
- left: {
39
- textAlign: "left"
40
- },
41
- right: {
42
- textAlign: "right"
43
- },
44
- center: {
45
- textAlign: "center"
46
- },
47
- justify: {
48
- textAlign: "justify"
49
- },
50
- matchParent: {
51
- textAlign: "match-parent"
52
- }
53
- },
54
- /**
55
- * Allows you to handle CSS text overflow behaviour
56
- */
57
- textOverflow: {
58
- ellipsis: (0, _extends2["default"])({}, overflowSharedStyles, {
59
- textOverflow: "ellipsis"
60
- }),
61
- clip: (0, _extends2["default"])({}, overflowSharedStyles, {
62
- textOverflow: "clip"
63
- })
64
- },
65
- /**
66
- * Allows you to handle CSS white space behaviour
67
- */
68
- wrap: {
69
- "true": (0, _extends2["default"])({}, overflowSharedStyles, {
70
- whiteSpace: "break-spaces"
71
- }),
72
- "false": (0, _extends2["default"])({}, overflowSharedStyles, {
73
- whiteSpace: "nowrap"
74
- })
21
+ marginBlock: 0,
22
+ "& > svg.lucide": {
23
+ verticalAlign: "baseline"
75
24
  },
76
- /**
77
- * Sets the color of the text.
78
- */
79
- color: {
80
- inherit: {
81
- color: "inherit"
82
- },
83
- hiContrast: {
84
- color: (0, _system.getColorScaleValueByUseCase)("greyA", text.hiContrast)
85
- },
86
- primary: {
87
- color: (0, _system.getColorScaleValueByUseCase)("primary", text.hiSaturation)
88
- },
89
- lowContrast: {
90
- color: (0, _system.getColorScaleValueByUseCase)("greyA", text.lowContrast)
91
- },
92
- disabled: {
93
- color: (0, _system.getColorScaleValueByUseCase)("greyA", text.disabled)
94
- },
95
- accent: {
96
- color: (0, _system.getColorScaleValueByUseCase)("accent", text.hiSaturation)
97
- },
98
- info: {
99
- color: (0, _system.getColorScaleValueByUseCase)("info", text.hiSaturation)
100
- },
101
- moderate: {
102
- color: (0, _system.getColorScaleValueByUseCase)("yellow", text.hiSaturation)
103
- },
104
- critical: {
105
- color: (0, _system.getColorScaleValueByUseCase)("critical", text.hiSaturation)
25
+ variants: {
26
+ /**
27
+ * Set the text element's text alignment
28
+ */
29
+ textAlign: {
30
+ start: {
31
+ textAlign: "start"
32
+ },
33
+ end: {
34
+ textAlign: "end"
35
+ },
36
+ left: {
37
+ textAlign: "left"
38
+ },
39
+ right: {
40
+ textAlign: "right"
41
+ },
42
+ center: {
43
+ textAlign: "center"
44
+ },
45
+ justify: {
46
+ textAlign: "justify"
47
+ },
48
+ matchParent: {
49
+ textAlign: "match-parent"
50
+ }
106
51
  },
107
- warning: {
108
- color: (0, _system.getColorScaleValueByUseCase)("warning", text.hiSaturation)
52
+ /**
53
+ * Allows you to handle CSS text overflow behaviour
54
+ */
55
+ textOverflow: {
56
+ ellipsis: (0, _extends2["default"])({}, overflowSharedStyles, {
57
+ textOverflow: "ellipsis"
58
+ }),
59
+ clip: (0, _extends2["default"])({}, overflowSharedStyles, {
60
+ textOverflow: "clip"
61
+ })
62
+ },
63
+ /**
64
+ * Allows you to handle CSS white space behaviour
65
+ */
66
+ wrap: {
67
+ "true": (0, _extends2["default"])({}, overflowSharedStyles, {
68
+ whiteSpace: "break-spaces"
69
+ }),
70
+ "false": (0, _extends2["default"])({}, overflowSharedStyles, {
71
+ whiteSpace: "nowrap"
72
+ })
73
+ },
74
+ /**
75
+ * Sets the color of the text.
76
+ */
77
+ color: {
78
+ inherit: {
79
+ color: "inherit"
80
+ },
81
+ hiContrast: {
82
+ color: (0, _system.getColorScaleValueByUseCase)("greyA", text.hiContrast)
83
+ },
84
+ primary: {
85
+ color: (0, _system.getColorScaleValueByUseCase)("primary", text.hiSaturation)
86
+ },
87
+ lowContrast: {
88
+ color: (0, _system.getColorScaleValueByUseCase)("greyA", text.lowContrast)
89
+ },
90
+ disabled: {
91
+ color: (0, _system.getColorScaleValueByUseCase)("greyA", text.disabled)
92
+ },
93
+ accent: {
94
+ color: (0, _system.getColorScaleValueByUseCase)("accent", text.hiSaturation)
95
+ },
96
+ info: {
97
+ color: (0, _system.getColorScaleValueByUseCase)("info", text.hiSaturation)
98
+ },
99
+ moderate: {
100
+ color: (0, _system.getColorScaleValueByUseCase)("yellow", text.hiSaturation)
101
+ },
102
+ critical: {
103
+ color: (0, _system.getColorScaleValueByUseCase)("critical", text.hiSaturation)
104
+ },
105
+ warning: {
106
+ color: (0, _system.getColorScaleValueByUseCase)("warning", text.hiSaturation)
107
+ },
108
+ success: {
109
+ color: (0, _system.getColorScaleValueByUseCase)("success", text.hiSaturation)
110
+ }
109
111
  },
110
- success: {
111
- color: (0, _system.getColorScaleValueByUseCase)("success", text.hiSaturation)
112
+ /**
113
+ * Customises the font size and weight to a pre-set option.
114
+ */
115
+ variant: {
116
+ inherit: (0, _helpers.getVariantStyles)("inherit"),
117
+ caption: (0, _helpers.getVariantStyles)("$caption"),
118
+ button: (0, _helpers.getVariantStyles)("$button"),
119
+ body: (0, _helpers.getVariantStyles)("$body"),
120
+ paragraph: (0, _extends2["default"])({}, (0, _helpers.getVariantStyles)("$body"), {
121
+ "& + &": {
122
+ marginTop: "$md"
123
+ }
124
+ }),
125
+ sectionSubtitle: (0, _helpers.getVariantStyles)("$sectionSubtitle"),
126
+ sectionTitle: (0, _helpers.getVariantStyles)("$sectionTitle"),
127
+ pageTitle: (0, _helpers.getVariantStyles)("$pageTitle"),
128
+ display100: (0, _helpers.getVariantStyles)("$display100"),
129
+ display200: (0, _helpers.getVariantStyles)("$display200"),
130
+ display300: (0, _helpers.getVariantStyles)("$display300"),
131
+ display400: (0, _helpers.getVariantStyles)("$display400"),
132
+ display500: (0, _helpers.getVariantStyles)("$display500"),
133
+ display600: (0, _helpers.getVariantStyles)("$display600"),
134
+ display700: (0, _helpers.getVariantStyles)("$display700"),
135
+ display800: (0, _helpers.getVariantStyles)("$display800"),
136
+ display900: (0, _helpers.getVariantStyles)("$display900")
137
+ },
138
+ /**
139
+ * Sets a limit on the maximum number of lines to display.
140
+ */
141
+ maxLines: {
142
+ 1: (0, _helpers.getMaxLines)(1, "$body"),
143
+ 2: (0, _helpers.getMaxLines)(2, "$body"),
144
+ 3: (0, _helpers.getMaxLines)(3, "$body")
112
145
  }
113
146
  },
114
- /**
115
- * Customises the font size and weight to a pre-set option.
116
- */
117
- variant: {
118
- inherit: (0, _helpers.getVariantStyles)("inherit"),
119
- caption: (0, _helpers.getVariantStyles)("$caption"),
120
- button: (0, _helpers.getVariantStyles)("$button"),
121
- body: (0, _helpers.getVariantStyles)("$body"),
122
- paragraph: (0, _extends2["default"])({}, (0, _helpers.getVariantStyles)("$body"), {
123
- "& + &": {
124
- marginTop: "$md"
125
- }
126
- }),
127
- sectionSubtitle: (0, _helpers.getVariantStyles)("$sectionSubtitle"),
128
- sectionTitle: (0, _helpers.getVariantStyles)("$sectionTitle"),
129
- pageTitle: (0, _helpers.getVariantStyles)("$pageTitle"),
130
- display100: (0, _helpers.getVariantStyles)("$display100"),
131
- display200: (0, _helpers.getVariantStyles)("$display200"),
132
- display300: (0, _helpers.getVariantStyles)("$display300"),
133
- display400: (0, _helpers.getVariantStyles)("$display400"),
134
- display500: (0, _helpers.getVariantStyles)("$display500"),
135
- display600: (0, _helpers.getVariantStyles)("$display600"),
136
- display700: (0, _helpers.getVariantStyles)("$display700"),
137
- display800: (0, _helpers.getVariantStyles)("$display800"),
138
- display900: (0, _helpers.getVariantStyles)("$display900")
139
- },
140
- /**
141
- * Sets a limit on the maximum number of lines to display.
142
- */
143
- maxLines: {
144
- 1: (0, _helpers.getMaxLines)(1, "$body"),
145
- 2: (0, _helpers.getMaxLines)(2, "$body"),
146
- 3: (0, _helpers.getMaxLines)(3, "$body")
147
+ compoundVariants: (0, _toConsumableArray2["default"])((0, _helpers.getMaxLinesVariants)(_variants.AVAILABLE_MAX_LINES, _variants.AVAILABLE_VARIANTS)),
148
+ "ul, ol": {
149
+ listStylePosition: "inside",
150
+ paddingInlineStart: 0,
151
+ marginBlock: "inherit"
147
152
  }
148
- }), "compoundVariants", (0, _toConsumableArray2["default"])((0, _helpers.getMaxLinesVariants)(_variants.AVAILABLE_MAX_LINES, _variants.AVAILABLE_VARIANTS))), "ul, ol", {
149
- listStylePosition: "inside",
150
- paddingInlineStart: 0,
151
- marginBlock: "inherit"
152
- }));
153
+ });
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { IconType } from "@vitality-ds/icons/src/Icon/types";
1
+ import type { LucideIcon } from "lucide-react";
3
2
  export declare type IconAvatarProps = {
4
- icon: React.FunctionComponent<IconType>;
3
+ icon: LucideIcon;
5
4
  };
@@ -1,5 +1,5 @@
1
- import { IconType } from "@vitality-ds/icons/src/Icon/types";
1
+ import type { LucideIcon } from "lucide-react";
2
2
  import { GetTimesResponseType } from "./types";
3
3
  export declare const getTimes: (timestamp: string) => GetTimesResponseType;
4
- export declare const getBrand: (name: string) => React.FC<IconType>;
4
+ export declare const getBrand: (name: string) => LucideIcon;
5
5
  export declare const getInitials: (name: string, forcedInitials: string) => string;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
- import { IconType } from "@vitality-ds/icons/src/Icon/types";
3
1
  import { ExcludedProps } from "@vitality-ds/system";
2
+ import type { LucideIcon } from "lucide-react";
4
3
  import { ACTIONS } from "./constants";
5
4
  export declare type PrepositionType = "by" | "to" | "from" | "for" | null;
6
5
  export declare type GetTimesResponseType = {
@@ -12,7 +11,7 @@ export declare type GetTimesResponseType = {
12
11
  export declare type ActionPropsType = {
13
12
  actionName: string;
14
13
  preposition: PrepositionType;
15
- fallbackIcon: React.FunctionComponent<IconType>;
14
+ fallbackIcon: LucideIcon;
16
15
  forceIcon: boolean;
17
16
  };
18
17
  declare type AuditTrailItemCommonProps = {
@@ -1,56 +1,13 @@
1
1
  declare const ButtonIcon: import("@stitches/react/types/styled-component").StyledComponent<"span", import("@stitches/react/types/styled-component").StyledComponentProps<[import("@stitches/react/types/styled-component").CssComponent<never, import("@stitches/react/types/styled-component").StyledComponentProps<[{
2
- [x: string]: string | {
3
- marginTop: string;
4
- $$size?: undefined;
5
- width?: undefined;
6
- height?: undefined;
7
- opacity?: undefined;
8
- "altGlyph, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,"?: undefined;
9
- spacing?: undefined;
10
- size?: undefined;
11
- } | {
12
- $$size: string;
13
- width: string;
14
- height: string;
15
- opacity: number;
16
- "altGlyph, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,": {
17
- fill: string;
18
- };
19
- marginTop?: undefined;
20
- spacing?: undefined;
21
- size?: undefined;
22
- } | {
23
- spacing: {
24
- end: {
25
- marginInlineEnd: string;
26
- marginInlineStart: string;
27
- };
28
- start: {
29
- marginInlineEnd: string;
30
- marginInlineStart: string;
31
- };
32
- };
33
- size: {
34
- default: {};
35
- compact: {
36
- $$spacing: string;
37
- };
38
- };
39
- marginTop?: undefined;
40
- $$size?: undefined;
41
- width?: undefined;
42
- height?: undefined;
43
- opacity?: undefined;
44
- "altGlyph, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,"?: undefined;
45
- };
46
2
  $$spacing: string;
47
3
  svg: {
48
4
  $$size: string;
49
5
  width: string;
50
6
  height: string;
51
7
  opacity: number;
8
+ verticalAlign: string;
52
9
  "altGlyph, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,": {
53
- fill: string;
10
+ stroke: string;
54
11
  };
55
12
  };
56
13
  variants: {
@@ -1,56 +1,13 @@
1
1
  declare const _default: import("@stitches/react/types/styled-component").CssComponent<never, import("@stitches/react/types/styled-component").StyledComponentProps<[{
2
- [x: string]: string | {
3
- marginTop: string;
4
- $$size?: undefined;
5
- width?: undefined;
6
- height?: undefined;
7
- opacity?: undefined;
8
- "altGlyph, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,"?: undefined;
9
- spacing?: undefined;
10
- size?: undefined;
11
- } | {
12
- $$size: string;
13
- width: string;
14
- height: string;
15
- opacity: number;
16
- "altGlyph, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,": {
17
- fill: string;
18
- };
19
- marginTop?: undefined;
20
- spacing?: undefined;
21
- size?: undefined;
22
- } | {
23
- spacing: {
24
- end: {
25
- marginInlineEnd: string;
26
- marginInlineStart: string;
27
- };
28
- start: {
29
- marginInlineEnd: string;
30
- marginInlineStart: string;
31
- };
32
- };
33
- size: {
34
- default: {};
35
- compact: {
36
- $$spacing: string;
37
- };
38
- };
39
- marginTop?: undefined;
40
- $$size?: undefined;
41
- width?: undefined;
42
- height?: undefined;
43
- opacity?: undefined;
44
- "altGlyph, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,"?: undefined;
45
- };
46
2
  $$spacing: string;
47
3
  svg: {
48
4
  $$size: string;
49
5
  width: string;
50
6
  height: string;
51
7
  opacity: number;
8
+ verticalAlign: string;
52
9
  "altGlyph, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,": {
53
- fill: string;
10
+ stroke: string;
54
11
  };
55
12
  };
56
13
  variants: {