@lightspeed/design-system-css 27.2.1 → 29.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +420 -420
- package/dist/index.css.map +1 -1
- package/dist/vend-styles.css +420 -420
- package/package.json +1 -1
- package/src/vend-styles/components/Carousel/Carousel.scss +3 -3
- package/src/vend-styles/components/DataTable/DataTable.scss +7 -7
- package/src/vend-styles/components/DatePicker/DatePicker.scss +4 -4
- package/src/vend-styles/components/DatePicker/_DatePicker-ns.scss +5 -5
- package/src/vend-styles/components/LineChart/LineChart.scss +8 -8
- package/src/vend-styles/components/Modal/Modal.scss +1 -1
- package/src/vend-styles/components/ProgressBar/ProgressBar.scss +2 -2
- package/src/vend-styles/components/PromotionModal/PromotionModal.scss +1 -1
- package/src/vend-styles/components/TableList/TableList.scss +9 -9
- package/src/vend-styles/components/TableList/_TableList-ns.scss +1 -1
- package/src/vend-styles/components/UpsellPrimary/UpsellPrimary.scss +4 -4
- package/src/vend-styles/components/VendVideo/VendVideo.scss +3 -3
- package/src/vend-styles/utilities/sticky.scss +2 -2
- package/src/vend.ui/components/vd-action-bar/vd-action-bar-ns.scss +1 -1
- package/src/vend.ui/components/vd-autocomplete/vd-autocomplete.scss +1 -1
- package/src/vend.ui/components/vd-autocomplete-filter/vd-autocomplete-filter.scss +1 -1
- package/src/vend.ui/components/vd-avatar/vd-avatar.scss +4 -4
- package/src/vend.ui/components/vd-avatar-multi/vd-avatar-multi.scss +3 -3
- package/src/vend.ui/components/vd-badges/vd-id-badge/vd-id-badge.scss +5 -5
- package/src/vend.ui/components/vd-banner/vd-banner-ns.scss +2 -2
- package/src/vend.ui/components/vd-banner/vd-banner.scss +3 -3
- package/src/vend.ui/components/vd-bg/vd-bg.scss +1 -1
- package/src/vend.ui/components/vd-btn/_vd-btn-mixins.scss +13 -13
- package/src/vend.ui/components/vd-btn/_vd-btn-ns.scss +2 -0
- package/src/vend.ui/components/vd-btn/vd-btn-panel.scss +8 -8
- package/src/vend.ui/components/vd-btn/vd-btn.scss +1 -1
- package/src/vend.ui/components/vd-card/vd-card-ns.scss +1 -1
- package/src/vend.ui/components/vd-carousel/vd-carousel.scss +3 -3
- package/src/vend.ui/components/vd-checkbox/vd-checkbox.scss +7 -7
- package/src/vend.ui/components/vd-datepicker/vd-datepicker-ns.scss +6 -6
- package/src/vend.ui/components/vd-datepicker/vd-datepicker.scss +8 -8
- package/src/vend.ui/components/vd-dialog/vd-dialog-ns.scss +1 -1
- package/src/vend.ui/components/vd-dialog/vd-dialog.scss +2 -2
- package/src/vend.ui/components/vd-dialog-close/vd-dialog-close-ns.scss +1 -1
- package/src/vend.ui/components/vd-dialog-close/vd-dialog-close.scss +8 -8
- package/src/vend.ui/components/vd-dott/vd-dott.scss +7 -7
- package/src/vend.ui/components/vd-fieldset/vd-fieldset.scss +1 -1
- package/src/vend.ui/components/vd-flag/vd-flag.scss +4 -4
- package/src/vend.ui/components/vd-header/vd-header.scss +1 -1
- package/src/vend.ui/components/vd-hero/vd-hero.scss +4 -4
- package/src/vend.ui/components/vd-hr/vd-hr.scss +1 -1
- package/src/vend.ui/components/vd-in-page-help/vd-in-page-help.scss +1 -1
- package/src/vend.ui/components/vd-input/vd-input-ns.scss +7 -7
- package/src/vend.ui/components/vd-input/vd-input.scss +2 -2
- package/src/vend.ui/components/vd-input-char-limit/vd-input-char-limit.scss +1 -1
- package/src/vend.ui/components/vd-link/vd-link.scss +3 -3
- package/src/vend.ui/components/vd-loader/vd-loader.scss +1 -1
- package/src/vend.ui/components/vd-lozenge/vd-lozenge.scss +6 -6
- package/src/vend.ui/components/vd-lozenge-group/vd-lozenge-group.scss +2 -2
- package/src/vend.ui/components/vd-multiselect-popover/vd-multiselect-popover.scss +1 -1
- package/src/vend.ui/components/vd-next-stepper/vd-next-stepper.scss +2 -2
- package/src/vend.ui/components/vd-overlay/vd-overlay-ns.scss +1 -1
- package/src/vend.ui/components/vd-panel/vd-panel.scss +2 -2
- package/src/vend.ui/components/vd-password/vd-password.scss +1 -1
- package/src/vend.ui/components/vd-popover/vd-popover.scss +4 -4
- package/src/vend.ui/components/vd-popover-list/vd-popover-list.scss +6 -6
- package/src/vend.ui/components/vd-radio/vd-radio.scss +7 -7
- package/src/vend.ui/components/vd-scrollable/vd-scrollable.scss +1 -1
- package/src/vend.ui/components/vd-section/vd-section.scss +3 -3
- package/src/vend.ui/components/vd-section-back/vd-section-back.scss +2 -2
- package/src/vend.ui/components/vd-segcontrol/vd-segcontrol.scss +7 -7
- package/src/vend.ui/components/vd-select/vd-select-inline.scss +1 -1
- package/src/vend.ui/components/vd-select/vd-select-ns.scss +1 -1
- package/src/vend.ui/components/vd-select/vd-select.scss +2 -2
- package/src/vend.ui/components/vd-splash/vd-splash.scss +1 -1
- package/src/vend.ui/components/vd-status-icon/vd-status-icon.scss +2 -2
- package/src/vend.ui/components/vd-suggestion/vd-suggestion-list.scss +3 -3
- package/src/vend.ui/components/vd-switch/vd-switch.scss +8 -8
- package/src/vend.ui/components/vd-table/vd-table-ns.scss +2 -2
- package/src/vend.ui/components/vd-table/vd-table.scss +8 -8
- package/src/vend.ui/components/vd-tabs/vd-tabs.scss +4 -4
- package/src/vend.ui/components/vd-text/vd-text.scss +4 -4
- package/src/vend.ui/components/vd-toast-notification/vd-toast-notification.scss +3 -3
- package/src/vend.ui/components/vd-tooltip/vd-tooltip.scss +6 -6
- package/src/vend.ui/styles/global/_base-mixins.scss +1 -1
- package/src/vend.ui/styles/global/_helper-mixins.scss +1 -1
- package/src/vend.ui/styles/global/_misc.scss +2 -2
- package/src/vend.ui/styles/global/_normalise.scss +1 -1
- package/src/vend.ui/styles/global/colour/_colour-functions.scss +72 -16
- package/src/vend.ui/styles/global/colour/_colour-helpers.scss +4 -2
- package/src/vend.ui/styles/global/effects/_effects.scss +1 -1
- package/src/vend.ui/styles/global/text/_text-mixins.scss +1 -1
@@ -24,7 +24,8 @@
|
|
24
24
|
/// @return {String} - Color as a css variable
|
25
25
|
@function hs-color($_hs-color) {
|
26
26
|
// @TODO update map to use final unified theme once migration replacements have been made
|
27
|
-
|
27
|
+
$_hs-theme: map-get($hs-unified-migration-themes, light);
|
28
|
+
@if (map-has-key($_hs-theme, $_hs-color)) {
|
28
29
|
@return var(#{$hs-css-variables-prefix}#{$_hs-color});
|
29
30
|
} @else {
|
30
31
|
@error "[colour-functions] The specified element (#{$_hs-color}) does not exist in the helios unified theme.";
|
@@ -32,21 +33,6 @@
|
|
32
33
|
}
|
33
34
|
}
|
34
35
|
|
35
|
-
/// Generating a solid border for permitted border types (currently either keyline or framing)
|
36
|
-
///
|
37
|
-
/// @ DEPRECATED
|
38
|
-
/// @function vd-border
|
39
|
-
/// @param {String} $_vd-border-type - The border type, either keyline or framing
|
40
|
-
/// @param {Unit} [$_vd-border-width=1px] - The width of the border
|
41
|
-
/// @param {String} [$_vd-border-style=solid] - The style of the border
|
42
|
-
@function vd-border($_vd-border-type, $_vd-border-width: 1px, $_vd-border-style: solid) {
|
43
|
-
@if (null != index($vd-border-types, $_vd-border-type)) {
|
44
|
-
@return $_vd-border-width $_vd-border-style vd-colour($_vd-border-type);
|
45
|
-
} @else {
|
46
|
-
@warn "[colour-functions] The specified border type (#{$_vd-border-type}) is not a valid.";
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
36
|
/// Converts HEX to RGB Values
|
51
37
|
///
|
52
38
|
/// @function vd-hex-to-rgb
|
@@ -76,3 +62,73 @@
|
|
76
62
|
$string: '%23' + $string;
|
77
63
|
@return $string;
|
78
64
|
}
|
65
|
+
|
66
|
+
// Helper function for getting an action colour during the migration to the
|
67
|
+
// unified theme. This is mostly used by buttons.
|
68
|
+
@function hs-get-action-color($_supplied-color, $_fgOrBg: '') {
|
69
|
+
$_vd-action-colors: (
|
70
|
+
do,
|
71
|
+
do-rgb,
|
72
|
+
do-lighter,
|
73
|
+
do-darker,
|
74
|
+
go,
|
75
|
+
go-rgb,
|
76
|
+
go-lighter,
|
77
|
+
go-darker,
|
78
|
+
no,
|
79
|
+
no-rgb,
|
80
|
+
no-lighter,
|
81
|
+
no-darker,
|
82
|
+
supplementary,
|
83
|
+
supplementary-rgb,
|
84
|
+
supplementary-lighter,
|
85
|
+
supplementary-darker
|
86
|
+
);
|
87
|
+
$_hs-color-types: (fg, bg);
|
88
|
+
// @TODO Remove once all instances of `do` have been replaced with `go` (they are the same value).
|
89
|
+
$_hs-color: vd-remove-suffix(vd-str-replace($_supplied-color, do, go));
|
90
|
+
|
91
|
+
@if (index($_vd-action-colors, $_supplied-color) == null) {
|
92
|
+
@error 'Must supply either do, go, no or supplementary: ' + $_supplied-color;
|
93
|
+
}
|
94
|
+
|
95
|
+
@if (index($_hs-color-types, $_fgOrBg) == null) {
|
96
|
+
@error 'Must supply either fg or bg';
|
97
|
+
}
|
98
|
+
|
99
|
+
@if (str-index($_supplied-color, lighter) != null) {
|
100
|
+
@return hs-color('#{$_fgOrBg}-#{$_hs-color}-soft');
|
101
|
+
} @else if (str-index($_supplied-color, darker) != null) {
|
102
|
+
@return hs-color('#{$_fgOrBg}-#{$_hs-color}-strong');
|
103
|
+
} @else if (str-index($_supplied-color, rbg) != null) {
|
104
|
+
@return hs-color('#{$_fgOrBg}-#{$_hs-color}-default-rgb');
|
105
|
+
} @else {
|
106
|
+
@return hs-color('#{$_fgOrBg}-#{$_hs-color}-default');
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
@function vd-str-replace($string, $search, $replace: '') {
|
111
|
+
$index: str-index($string, $search);
|
112
|
+
|
113
|
+
@if $index {
|
114
|
+
@return str-slice($string, 1, $index - 1) + $replace +
|
115
|
+
vd-str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
116
|
+
}
|
117
|
+
|
118
|
+
@return $string;
|
119
|
+
}
|
120
|
+
|
121
|
+
@function vd-remove-suffix($string) {
|
122
|
+
$suffixes: (-rgb, -lighter, -darker);
|
123
|
+
$result: $string;
|
124
|
+
|
125
|
+
@each $suffix in $suffixes {
|
126
|
+
$suffix-position: str-index($result, $suffix);
|
127
|
+
|
128
|
+
@if $suffix-position {
|
129
|
+
$result: str-slice($result, 1, $suffix-position - 1);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
@return $result;
|
134
|
+
}
|
@@ -1,7 +1,9 @@
|
|
1
|
+
// @TODO remove `do` color option. While React components no longer support `do`, we still need to keen the `vd-colour-do` classes that are generated. Consuming apps still reference
|
2
|
+
// and use these.
|
1
3
|
$_vd-colour-helpers: (do, go, no, supplementary);
|
2
|
-
|
3
4
|
@each $key in ($_vd-colour-helpers) {
|
4
5
|
.vd-colour-#{$key} {
|
5
|
-
color:
|
6
|
+
color: hs-get-action-color($key, fg);
|
6
7
|
}
|
7
8
|
}
|
9
|
+
|
@@ -10,7 +10,7 @@
|
|
10
10
|
}
|
11
11
|
|
12
12
|
// Heading Reset - Ensure correct styling continue for H<1..6>'s
|
13
|
-
@mixin vd-heading-reset($color:
|
13
|
+
@mixin vd-heading-reset($color: hs-color(fg-neutral-default)) {
|
14
14
|
word-break: break-word;
|
15
15
|
font-weight: $vd-font-weight--bold;
|
16
16
|
margin: 0;
|