@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.
- package/dist/AuditTrail/components/AuditItem/index.spec.js +14 -13
- package/dist/AuditTrail/components/IconAvatar/index.js +3 -4
- package/dist/AuditTrail/constants.js +21 -20
- package/dist/Breadcrumbs/components/Breadcrumb/index.js +3 -3
- package/dist/Button/components/ButtonIcon/styles/BaseButtonIcon.styles.js +27 -30
- package/dist/Button/primitives/styles/BaseContentContainer.styles.js +1 -1
- package/dist/Callout/constants.js +19 -17
- package/dist/Callout/hooks/useCalloutContent.js +1 -1
- package/dist/Callout/index.js +10 -14
- package/dist/Callout/styles/BaseCalloutIconContainer.styles.js +12 -2
- package/dist/Chip/components/Checkbox/constants.js +4 -4
- package/dist/Chip/components/ChipIcon/index.js +2 -2
- package/dist/Chip/components/RemoveButton/index.js +4 -4
- package/dist/Chip/components/RemoveButton/styles/BaseRemoveButtonButton.styles.js +4 -1
- package/dist/Chip/styles/BaseChip.styles.js +1 -1
- package/dist/ComboButton/index.js +2 -2
- package/dist/Dialog/components/DialogHeader/index.js +5 -4
- package/dist/Dialog/constants.js +3 -3
- package/dist/DropdownMenu/components/Content/index.js +5 -6
- package/dist/DropdownMenu/components/IconContainer/index.js +1 -2
- package/dist/DropdownMenu/styles/Content.styles.js +4 -1
- package/dist/Form/FormField/index.js +4 -4
- package/dist/Form/HelperMessage/index.js +4 -4
- package/dist/IconButton/index.js +2 -2
- package/dist/IconButton/styles/BaseIconButton.styles.js +6 -3
- package/dist/Input/DatePicker/components/Calendar/index.js +3 -3
- package/dist/Input/DatePicker/index.js +2 -2
- package/dist/Input/DateRangePicker/index.js +4 -6
- package/dist/Input/DateRangePicker/styles/ExtrasContainers.js +7 -2
- package/dist/Input/PasswordInput/constants.js +3 -3
- package/dist/Input/SearchInput/index.js +2 -2
- package/dist/Input/Select/SearchSelectInput/index.js +2 -2
- package/dist/Input/Select/components/Chip/MultiValueRemove/index.js +4 -4
- package/dist/Input/Select/components/ClearButton/index.js +4 -4
- package/dist/Input/Select/components/DropdownIndicator/index.js +7 -7
- package/dist/Input/TextInput/components/IconAdornment/index.js +1 -2
- package/dist/Input/TextInput/components/IconAdornment/styles/BaseIconWrapper.styles.js +6 -2
- package/dist/Input/TextInput/components/IconButtonAdornment/index.js +1 -4
- package/dist/Input/TextInput/components/IconButtonAdornment/styles/BaseIconButtonWrapper.styles.js +1 -6
- package/dist/Input/TextInput/components/SpinnerAdornment/index.js +1 -1
- package/dist/Input/TextInput/components/SpinnerAdornment/styles/BaseSpinnerWrapper.styles.js +1 -1
- package/dist/LucideProvider/index.js +18 -0
- package/dist/LucideProvider/types.js +1 -0
- package/dist/Provider/index.js +3 -1
- package/dist/Sidebar/components/SidebarCloseButton/index.js +2 -2
- package/dist/StatusBadge/components/StatusBadgeIcon/styles/BaseStatusBadge.styles.js +1 -1
- package/dist/StatusBadge/constants.js +9 -6
- package/dist/StatusBadge/logic.spec.js +13 -6
- package/dist/StatusBadge/styles/BaseStatusBadge.styles.js +27 -1
- package/dist/Switch/index.js +4 -4
- package/dist/Table/components/Cells/RowActions/constants.js +5 -5
- package/dist/Table/components/Cells/SortableHeader/components/SortableIcon/index.js +3 -4
- package/dist/Table/components/Cells/SortableHeader/components/SortableIcon/styles/BaseSortableIconContainer.styles.js +3 -1
- package/dist/Table/components/Cells/SortableHeader/components/SortedIcon/index.js +4 -4
- package/dist/Table/components/Cells/SortableHeader/components/SortedIcon/styles/BaseSortedIconContainer.js +4 -2
- package/dist/Table/components/MemoizedCell/constants.js +4 -1
- package/dist/Table/components/MemoizedCell/logic.js +6 -5
- package/dist/Table/components/MemoizedCell/logic.spec.js +24 -0
- package/dist/Table/components/Pagination/index.js +3 -3
- package/dist/Table/components/States/Error/index.js +5 -4
- package/dist/Tabs/index.js +18 -8
- package/dist/Toaster/components/CloseIconButton/index.js +4 -4
- package/dist/Toaster/components/Toast/constants.js +6 -6
- package/dist/Toaster/components/Toast/helpers/getVariantsByColorScale.js +2 -4
- package/dist/Toaster/components/Toast/index.js +1 -1
- package/dist/Toaster/components/Toast/logic.spec.js +6 -6
- package/dist/Toaster/components/Toast/styles/BaseToast.styles.js +3 -0
- package/dist/Typography/styles/BaseTypography.styles.js +128 -127
- package/dist/components/src/AuditTrail/components/IconAvatar/types.d.ts +2 -3
- package/dist/components/src/AuditTrail/logic.d.ts +2 -2
- package/dist/components/src/AuditTrail/types.d.ts +2 -3
- package/dist/components/src/Button/components/ButtonIcon/styled.d.ts +2 -45
- package/dist/components/src/Button/components/ButtonIcon/styles/BaseButtonIcon.styles.d.ts +2 -45
- package/dist/components/src/Callout/styled.d.ts +408 -1
- package/dist/components/src/Callout/styles/BaseCalloutIconContainer.styles.d.ts +14 -1
- package/dist/components/src/Callout/types.d.ts +4 -4
- package/dist/components/src/Chip/components/ChipIcon/types.d.ts +2 -3
- package/dist/components/src/Chip/types.d.ts +3 -4
- package/dist/components/src/Dialog/types.d.ts +4 -4
- package/dist/components/src/DropdownMenu/components/DropdownMenuItem/types.d.ts +2 -3
- package/dist/components/src/Form/FormField/constants.d.ts +2 -2
- package/dist/components/src/IconButton/styled.d.ts +10 -4
- package/dist/components/src/IconButton/styles/BaseIconButton.styles.d.ts +5 -2
- package/dist/components/src/IconButton/types.d.ts +3 -4
- package/dist/components/src/Input/PasswordInput/types.d.ts +3 -2
- package/dist/components/src/Input/SearchInput/types.d.ts +2 -3
- package/dist/components/src/Input/Select/AsyncSelect/index.d.ts +1 -1
- package/dist/components/src/Input/Select/SearchSelectInput/index.d.ts +1 -1
- package/dist/components/src/Input/Select/types.d.ts +2 -2
- package/dist/components/src/Input/TextInput/components/IconAdornment/types.d.ts +3 -7
- package/dist/components/src/Link/styled.d.ts +3 -259
- package/dist/components/src/LucideProvider/index.d.ts +4 -0
- package/dist/components/src/LucideProvider/types.d.ts +7 -0
- package/dist/components/src/Provider/types.d.ts +10 -1
- package/dist/components/src/StatusBadge/styled.d.ts +6 -0
- package/dist/components/src/StatusBadge/styles/BaseStatusBadge.styles.d.ts +2 -0
- package/dist/components/src/StatusBadge/types.d.ts +1 -1
- package/dist/components/src/Table/components/Cells/Icon/types.d.ts +3 -4
- package/dist/components/src/Table/components/Cells/RowActions/constants.d.ts +4 -5
- package/dist/components/src/Table/components/Cells/SortableHeader/components/SortedIcon/styled.d.ts +2 -0
- package/dist/components/src/Table/components/Cells/SortableHeader/components/SortedIcon/styles/BaseSortedIconContainer.d.ts +2 -0
- package/dist/components/src/Table/components/MemoizedCell/constants.d.ts +1 -0
- package/dist/components/src/Tabs/index.d.ts +1 -1
- package/dist/components/src/Tabs/types.d.ts +2 -6
- package/dist/components/src/Toaster/components/Toast/constants.d.ts +5 -6
- package/dist/components/src/Toaster/components/Toast/helpers/getVariantsByColorScale.d.ts +2 -4
- package/dist/components/src/Toaster/components/Toast/styled.d.ts +13 -20
- package/dist/components/src/Toaster/components/Toast/styles/BaseToast.styles.d.ts +13 -20
- package/dist/components/src/Typography/styled.d.ts +3 -259
- package/dist/components/src/Typography/styles/BaseTypography.styles.d.ts +3 -313
- package/dist/esm/AuditTrail/components/AuditItem/index.spec.js +15 -14
- package/dist/esm/AuditTrail/components/IconAvatar/index.js +3 -4
- package/dist/esm/AuditTrail/constants.js +22 -21
- package/dist/esm/Breadcrumbs/components/Breadcrumb/index.js +2 -2
- package/dist/esm/Button/components/ButtonIcon/styles/BaseButtonIcon.styles.js +27 -29
- package/dist/esm/Button/primitives/styles/BaseContentContainer.styles.js +1 -1
- package/dist/esm/Callout/constants.js +14 -13
- package/dist/esm/Callout/hooks/useCalloutContent.js +1 -1
- package/dist/esm/Callout/index.js +10 -14
- package/dist/esm/Callout/styles/BaseCalloutIconContainer.styles.js +12 -2
- package/dist/esm/Chip/components/Checkbox/constants.js +4 -4
- package/dist/esm/Chip/components/ChipIcon/index.js +2 -2
- package/dist/esm/Chip/components/RemoveButton/index.js +4 -4
- package/dist/esm/Chip/components/RemoveButton/styles/BaseRemoveButtonButton.styles.js +4 -1
- package/dist/esm/Chip/styles/BaseChip.styles.js +1 -1
- package/dist/esm/ComboButton/index.js +2 -2
- package/dist/esm/Dialog/components/DialogHeader/index.js +5 -4
- package/dist/esm/Dialog/constants.js +3 -3
- package/dist/esm/DropdownMenu/components/Content/index.js +4 -5
- package/dist/esm/DropdownMenu/components/IconContainer/index.js +1 -2
- package/dist/esm/DropdownMenu/styles/Content.styles.js +4 -1
- package/dist/esm/Form/FormField/index.js +3 -3
- package/dist/esm/Form/HelperMessage/index.js +4 -4
- package/dist/esm/IconButton/index.js +2 -2
- package/dist/esm/IconButton/styles/BaseIconButton.styles.js +6 -3
- package/dist/esm/Input/DatePicker/components/Calendar/index.js +1 -1
- package/dist/esm/Input/DatePicker/index.js +2 -2
- package/dist/esm/Input/DateRangePicker/index.js +4 -6
- package/dist/esm/Input/DateRangePicker/styles/ExtrasContainers.js +6 -2
- package/dist/esm/Input/PasswordInput/constants.js +3 -3
- package/dist/esm/Input/SearchInput/index.js +1 -1
- package/dist/esm/Input/Select/SearchSelectInput/index.js +1 -1
- package/dist/esm/Input/Select/components/Chip/MultiValueRemove/index.js +4 -4
- package/dist/esm/Input/Select/components/ClearButton/index.js +4 -4
- package/dist/esm/Input/Select/components/DropdownIndicator/index.js +7 -7
- package/dist/esm/Input/TextInput/components/IconAdornment/index.js +1 -2
- package/dist/esm/Input/TextInput/components/IconAdornment/styles/BaseIconWrapper.styles.js +6 -3
- package/dist/esm/Input/TextInput/components/IconButtonAdornment/index.js +1 -4
- package/dist/esm/Input/TextInput/components/IconButtonAdornment/styles/BaseIconButtonWrapper.styles.js +1 -6
- package/dist/esm/Input/TextInput/components/SpinnerAdornment/index.js +1 -1
- package/dist/esm/Input/TextInput/components/SpinnerAdornment/styles/BaseSpinnerWrapper.styles.js +1 -1
- package/dist/esm/LucideProvider/index.js +11 -0
- package/dist/esm/LucideProvider/types.js +1 -0
- package/dist/esm/Provider/index.js +3 -1
- package/dist/esm/Sidebar/components/SidebarCloseButton/index.js +2 -2
- package/dist/esm/StatusBadge/components/StatusBadgeIcon/styles/BaseStatusBadge.styles.js +1 -1
- package/dist/esm/StatusBadge/constants.js +8 -5
- package/dist/esm/StatusBadge/logic.spec.js +11 -4
- package/dist/esm/StatusBadge/styles/BaseStatusBadge.styles.js +27 -1
- package/dist/esm/Switch/index.js +4 -4
- package/dist/esm/Table/components/Cells/RowActions/constants.js +4 -4
- package/dist/esm/Table/components/Cells/SortableHeader/components/SortableIcon/index.js +3 -4
- package/dist/esm/Table/components/Cells/SortableHeader/components/SortableIcon/styles/BaseSortableIconContainer.styles.js +3 -1
- package/dist/esm/Table/components/Cells/SortableHeader/components/SortedIcon/index.js +4 -4
- package/dist/esm/Table/components/Cells/SortableHeader/components/SortedIcon/styles/BaseSortedIconContainer.js +4 -2
- package/dist/esm/Table/components/MemoizedCell/constants.js +3 -0
- package/dist/esm/Table/components/MemoizedCell/logic.js +7 -6
- package/dist/esm/Table/components/MemoizedCell/logic.spec.js +24 -0
- package/dist/esm/Table/components/Pagination/index.js +1 -1
- package/dist/esm/Table/components/States/Error/index.js +5 -4
- package/dist/esm/Tabs/index.js +18 -8
- package/dist/esm/Toaster/components/CloseIconButton/index.js +4 -4
- package/dist/esm/Toaster/components/Toast/constants.js +4 -4
- package/dist/esm/Toaster/components/Toast/helpers/getVariantsByColorScale.js +2 -4
- package/dist/esm/Toaster/components/Toast/index.js +1 -1
- package/dist/esm/Toaster/components/Toast/logic.spec.js +4 -4
- package/dist/esm/Toaster/components/Toast/styles/BaseToast.styles.js +3 -0
- package/dist/esm/Typography/styles/BaseTypography.styles.js +128 -127
- package/dist/esm/helpers/logic/get-component-from-lookup.spec.js +3 -3
- package/dist/helpers/logic/get-component-from-lookup.spec.js +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- 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)(
|
|
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
|
-
|
|
25
|
-
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
108
|
-
|
|
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
|
-
|
|
111
|
-
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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
|
-
})
|
|
149
|
-
listStylePosition: "inside",
|
|
150
|
-
paddingInlineStart: 0,
|
|
151
|
-
marginBlock: "inherit"
|
|
152
|
-
}));
|
|
153
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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) =>
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
10
|
+
stroke: string;
|
|
54
11
|
};
|
|
55
12
|
};
|
|
56
13
|
variants: {
|