@linzjs/lui 17.5.3 → 17.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- @use '../../../scss/Foundation/Variables/LuiColors' as colors;
1
+ @use '../../../scss/Foundation/Variables/ColorVars' as colors;
2
2
 
3
3
  .LuiFileInputBox-upload {
4
4
  outline: 2px dashed colors.$lily;
@@ -1,5 +1,5 @@
1
1
  @use '../../../Foundation/Variables/FontVars' as fonts;
2
- @use '../../../Foundation/Variables/LuiColors' as colors;
2
+ @use '../../../Foundation/Variables/ColorVars' as colors;
3
3
  @use '../../../Foundation/Variables/SpacingVars' as spacing;
4
4
  @use '../../../Foundation/Utilities/ScreenReadersOnly' as screen;
5
5
 
@@ -1,6 +1,6 @@
1
1
  @use '../../../Foundation/Variables/FormVars' as forms;
2
2
  @use '../../../Foundation/Variables/FontVars' as fonts;
3
- @use '../../../Foundation/Variables/LuiColors' as colors;
3
+ @use '../../../Foundation/Variables/ColorVars' as colors;
4
4
  @use '../../../Foundation/Variables/SpacingVars' as spacing;
5
5
  @use '../../../Foundation/Variables/MiscVars' as MiscVars;
6
6
  @use '../../../Foundation/Utilities/REM' as rem;
@@ -2,7 +2,7 @@
2
2
  @use '../../../Foundation/Variables/FontVars' as fonts;
3
3
  @use '../../../Foundation/Utilities/FluidType' as luiFluidType;
4
4
  @use '../../../Foundation/Variables/BreakpointVars' as breakpoints;
5
- @use '../../../Foundation/Variables/LuiColors' as colors;
5
+ @use '../../../Foundation/Variables/ColorVars' as colors;
6
6
  @use '../../../Foundation/Variables/MiscVars' as misc;
7
7
  @use '../../../Foundation/Variables/SpacingVars' as spacing;
8
8
  @use '../../../Foundation/Utilities/REM' as rem;
@@ -1,6 +1,6 @@
1
1
  @use '../../../Foundation/Variables/FormVars' as forms;
2
2
  @use '../../../Foundation/Variables/FontVars' as fonts;
3
- @use '../../../Foundation/Variables/LuiColors' as colors;
3
+ @use '../../../Foundation/Variables/ColorVars' as colors;
4
4
  @use '../../../Foundation/Variables/SpacingVars' as spacing;
5
5
  @use '../../../Foundation/Variables/MiscVars' as MiscVars;
6
6
  @use '../../../Foundation/Utilities/REM' as rem;
@@ -1,4 +1,4 @@
1
- @use '../../Foundation/Variables/LuiColors' as colors;
1
+ @use '../../Foundation/Variables/ColorVars' as colors;
2
2
  @use '../../Foundation/Variables/SpacingVars' as spacing;
3
3
  @use '../../Foundation/Variables/BreakpointVars' as breakpoints;
4
4
  @use "../../Foundation/Utilities" as *;
@@ -1,4 +1,4 @@
1
- @use '../../../Foundation/Variables/LuiColors' as colors;
1
+ @use '../../../Foundation/Variables/ColorVars' as colors;
2
2
  @use '../../../Foundation/Variables/SpacingVars' as spacing;
3
3
 
4
4
  .HelpInfo {
@@ -1,5 +1,5 @@
1
1
  @use '../../../Foundation/Variables/FormVars' as forms;
2
- @use '../../../Foundation/Variables/LuiColors' as colors;
2
+ @use '../../../Foundation/Variables/ColorVars' as colors;
3
3
  @use '../../../Foundation/Variables/FontVars' as fonts;
4
4
  @use '../../../Foundation/Variables/SpacingVars' as spacing;
5
5
  @use '../../../Foundation/Utilities/REM' as rem;
@@ -1,7 +1,7 @@
1
1
  @use '../../Foundation/Variables/BreakpointVars' as breakpoints;
2
2
  @use '../../Foundation/Variables/FormVars' as forms;
3
3
  @use '../../Foundation/Variables/FontVars' as fonts;
4
- @use '../../Foundation/Variables/LuiColors' as colors;
4
+ @use '../../Foundation/Variables/ColorVars' as colors;
5
5
  @use '../../Foundation/Variables/SpacingVars' as spacing;
6
6
  @use '../../Foundation/Utilities/BoxShadow' as shadow;
7
7
 
@@ -12,7 +12,7 @@ $input-wrapper-height-sm: 40px;
12
12
  $input-wrapper-height-lg: 56px;
13
13
 
14
14
  .LuiSearchInput {
15
- @include shadow.drop-shadow($size: "sm");
15
+ @include shadow.drop-shadow($size: 'sm');
16
16
 
17
17
  background: colors.$snow;
18
18
  border-radius: 0 3px 3px 0;
@@ -25,7 +25,7 @@ $input-wrapper-height-lg: 56px;
25
25
  &:active,
26
26
  &:focus,
27
27
  &:focus-within {
28
- @include shadow.drop-shadow("md");
28
+ @include shadow.drop-shadow('md');
29
29
  border-radius: 3px;
30
30
  }
31
31
  }
@@ -41,7 +41,7 @@ $input-wrapper-height-lg: 56px;
41
41
  min-height: $input-wrapper-height-lg;
42
42
 
43
43
  @media (max-width: breakpoints.$breakpoint-sm) {
44
- min-height: $input-wrapper-height-sm
44
+ min-height: $input-wrapper-height-sm;
45
45
  }
46
46
  }
47
47
 
@@ -152,7 +152,7 @@ $input-wrapper-height-lg: 56px;
152
152
  .LuiSearchInput-groupSeparator {
153
153
  margin-left: 20px;
154
154
  margin-right: 20px;
155
- background-color: #C4C4C4;
155
+ background-color: #c4c4c4;
156
156
  }
157
157
 
158
158
  .LuiSearchInput-resultSeparator {
@@ -164,4 +164,4 @@ $input-wrapper-height-lg: 56px;
164
164
  .LuiSearchInput-skeletonItem {
165
165
  margin: 9px 0;
166
166
  height: 20px;
167
- }
167
+ }
@@ -1,4 +1,4 @@
1
- @use '../../Foundation/Variables/LuiColors' as colors;
1
+ @use '../../Foundation/Variables/ColorVars' as colors;
2
2
  @use '../../Foundation/Variables/SpacingVars' as spacing;
3
3
 
4
4
  // ========================
@@ -1,7 +1,156 @@
1
+ @use "sass:color";
2
+ // ============
3
+ // Colours
4
+ // ============
1
5
 
2
- // @use "Colors";
3
- @forward "LuiColors";
4
- @forward "ExportCSS";
6
+ // Colours are hard. We've remapped the names in FigLui so that's what's below.
5
7
 
6
- // TODO: remove to avoid :export making it into CSS, here because components expect this to be here
7
- @forward "ExportColors";
8
+ // ----------------------------
9
+ // Brand
10
+ // ----------------------------
11
+
12
+ // Blues
13
+ $teal: #00425d;
14
+ $sea: #007198;
15
+ $electric: #0096cc;
16
+ $spray: #73c8e1;
17
+ $polar: #e2f3f7;
18
+ $linz-linear-gradient-blue: linear-gradient(70deg, $teal 12%, $sea 100%);
19
+
20
+ // Teals
21
+ $sherpa: #004b50;
22
+ $surfie: #017a76;
23
+ $persian: #00a599;
24
+ $downy: #73cdc8;
25
+ $iceberg: #dcf5f0;
26
+ $linz-linear-gradient-teal: linear-gradient(270deg, $persian 1%, $downy 100%);
27
+
28
+ // Greens
29
+ $sacramento: #004e32;
30
+ $salem: #08814d;
31
+ $pigment: #0aa245;
32
+ $granny: #9bd79b;
33
+ $panache: #e9fae7;
34
+
35
+ // ----------------------------
36
+ // Neutrals
37
+ // ----------------------------
38
+
39
+ $charcoal: #2a292c;
40
+ $fuscous: #6b6966;
41
+ $gray: #989189;
42
+ $silver: #beb9b4;
43
+ $lily: #eaeaea;
44
+ $hint: #f9f9f9;
45
+ $snow: #ffffff;
46
+ $white: $snow;
47
+
48
+ // ----------------------------
49
+ // Reserved
50
+ // ----------------------------
51
+
52
+ // error
53
+ $error: #cc0000;
54
+ $error-bg: #f5cccc;
55
+ $error-focus: #5a0000;
56
+
57
+ // warning
58
+ $warning: #ea6a2e;
59
+ $warning-bg: #fbdfd2;
60
+ $warning-focus: #b33a01;
61
+
62
+ // info
63
+ $info: #3a7cdf;
64
+ $info-bg: #d8e5f9;
65
+
66
+ // success
67
+ $success: $pigment;
68
+ $success-bg: $panache;
69
+
70
+ // text link
71
+ $txt-link: #1f69c3;
72
+
73
+ $test-pink: #f09;
74
+
75
+ // --------------------------------------------------------
76
+ // Deprecated variable sets
77
+ // --------------------------------------------------------
78
+
79
+ $grey-80: $charcoal;
80
+ $grey-60: $fuscous;
81
+ $grey-30: $gray;
82
+ $grey-20: $silver;
83
+ $grey-10: $lily;
84
+ $grey-05: $hint;
85
+
86
+ $blue-100: $teal;
87
+ $blue-75: $sea;
88
+ $blue-50: $electric;
89
+ $blue-25: $spray;
90
+ $blue-05: $polar;
91
+
92
+ $teal-100: $sherpa;
93
+ $teal-75: $surfie;
94
+ $teal-50: $persian;
95
+ $teal-25: $downy;
96
+ $teal-05: $iceberg;
97
+
98
+ $green-100: $sacramento;
99
+ $green-75: $salem;
100
+ $green-50: $pigment;
101
+ $green-25: $granny;
102
+ $green-05: $panache;
103
+
104
+ $brand-primary: $sherpa;
105
+ $brand-secondary: $surfie;
106
+
107
+ // System colours
108
+
109
+ $visited: $teal;
110
+ $selection: lighten($spray, 20%);
111
+
112
+ // restricted colours for btn hover states
113
+ $primary-hover-btn: #005678;
114
+ $primary-active-btn: $teal;
115
+
116
+ $secondary-hover-btn: $polar;
117
+ $secondary-active-btn: $sea;
118
+
119
+ $tertiary-hover-btn: $polar;
120
+ $tertiary-active-btn: $sea;
121
+ $tertiary-btn: #f0f;
122
+
123
+ $green-hover: #107c3a;
124
+ $green-active: #094a22;
125
+ $green-btn: $success;
126
+
127
+ $error-hover-btn: #8f0000;
128
+ $error-active-btn: #5a0000;
129
+
130
+ $txt-link: $electric;
131
+
132
+ //Restricted colours for spatial maps
133
+ $hot-pink: #f81bef;
134
+
135
+ //Type
136
+ $heading-color: $surfie;
137
+ $heading-color--secondary: $charcoal;
138
+ $base-type-color: $charcoal;
139
+
140
+ // Icons, inputs & radio/checkboxes
141
+ $input-text: $charcoal;
142
+ $input-placeholder: $fuscous;
143
+ $input-placeholder-when-disabled: $gray;
144
+ $base-icon-color: $sea;
145
+ $disabled-color: $gray;
146
+ $disabled-bg-color: $lily;
147
+ $disabled-color-dark: $fuscous;
148
+ $input-focus: $teal;
149
+
150
+ //LINZ public site colour variables
151
+
152
+ $linz-color-primary: #023d48;
153
+ $linz-color-primary-hover: #01818a;
154
+
155
+ $linz-color-tertiary: #e1e44a;
156
+ $linz-color-tertiary-hover: #cdcf59;
@@ -1,4 +1,4 @@
1
- @use "LuiColors";
1
+ @use "ColorVars" as LuiColors;
2
2
 
3
3
  // TODO: This should be used for including into components instead of ColorVars.scss
4
4
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "17.5.3",
2
+ "version": "17.5.6",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",
@@ -1,121 +0,0 @@
1
- @use 'LuiColors';
2
-
3
- $prefix: '--'; // Prefix string for custom CSS properties
4
-
5
- // Merges a variable name with $prefix
6
- @function custom-property-name($name) {
7
- @return $prefix + $name;
8
- }
9
-
10
- // Defines a custom property
11
- @mixin define-custom-property($name, $value) {
12
- #{custom-property-name($name)}: $value;
13
- }
14
-
15
- // Append SCSS variables which are desired to be accessible:
16
- :root {
17
- @include define-custom-property('grey-80', LuiColors.$charcoal);
18
- @include define-custom-property('grey-60', LuiColors.$fuscous);
19
- @include define-custom-property('$gray', LuiColors.$gray);
20
- @include define-custom-property('grey-20', LuiColors.$silver);
21
- @include define-custom-property('grey-10', LuiColors.$lily);
22
- @include define-custom-property('grey-05', LuiColors.$hint);
23
-
24
- @include define-custom-property('teal', LuiColors.$teal);
25
- // blue-85,// $blue-85
26
- @include define-custom-property('sea', LuiColors.$sea);
27
- @include define-custom-property('electric', LuiColors.$electric);
28
- @include define-custom-property('spray', LuiColors.$spray);
29
- @include define-custom-property('polar', LuiColors.$polar);
30
-
31
- @include define-custom-property('sherpa', LuiColors.$sherpa);
32
- @include define-custom-property('surfie', LuiColors.$surfie);
33
- @include define-custom-property('persian', LuiColors.$persian);
34
- @include define-custom-property('downy', LuiColors.$downy);
35
- @include define-custom-property('iceberg', LuiColors.$iceberg);
36
-
37
- @include define-custom-property('sacramento', LuiColors.$sacramento);
38
- @include define-custom-property('salem', LuiColors.$salem);
39
- @include define-custom-property('pigment', LuiColors.$pigment);
40
- @include define-custom-property('granny', LuiColors.$granny);
41
- @include define-custom-property('panache', LuiColors.$panache);
42
-
43
- @include define-custom-property('brand-primary', LuiColors.$brand-primary);
44
- @include define-custom-property(
45
- 'brand-secondary',
46
- LuiColors.$brand-secondary
47
- );
48
-
49
- // System colours,// System colours
50
-
51
- // reserved colours,// reserved colours
52
- @include define-custom-property('success', LuiColors.$success);
53
- @include define-custom-property('success-bg', LuiColors.$success-bg);
54
- @include define-custom-property('info', LuiColors.$info);
55
- @include define-custom-property('info-bg', LuiColors.$info-bg);
56
- @include define-custom-property('warning', LuiColors.$warning);
57
- @include define-custom-property('warning-bg', LuiColors.$warning-bg);
58
- @include define-custom-property('error', LuiColors.$error);
59
- @include define-custom-property('error-focus', LuiColors.$error-focus);
60
- @include define-custom-property('error-bg', LuiColors.$error-bg);
61
-
62
- @include define-custom-property('visited', LuiColors.$visited);
63
-
64
- // restricted colours for btn hover states,// restricted colours for btn hover states
65
- @include define-custom-property('green-hover', LuiColors.$green-hover);
66
- @include define-custom-property(
67
- 'color-green-active',
68
- LuiColors.$green-active
69
- );
70
- @include define-custom-property('green-btn', LuiColors.$green-btn);
71
- @include define-custom-property('txt-link', LuiColors.$txt-link);
72
- @include define-custom-property(
73
- 'color-primary-hover-btn',
74
- LuiColors.$primary-hover-btn
75
- );
76
- @include define-custom-property('color-selection', LuiColors.$selection);
77
-
78
- //Type
79
- @include define-custom-property('heading-color', LuiColors.$surfie);
80
- @include define-custom-property(
81
- 'heading-color--secondary',
82
- LuiColors.$charcoal
83
- );
84
- @include define-custom-property('base-type-color', LuiColors.$charcoal);
85
-
86
- // Icons & radio/checkboxes
87
- @include define-custom-property('base-icon-color', LuiColors.$sea);
88
- @include define-custom-property('disabled-color', LuiColors.$gray);
89
- @include define-custom-property('disabled-color-dark', LuiColors.$fuscous);
90
-
91
- //LINZ public site colour variables,//LINZ public site colour variables
92
-
93
- @include define-custom-property(
94
- 'linz-color-primary',
95
- LuiColors.$linz-color-primary
96
- );
97
- @include define-custom-property(
98
- 'linz-color-primary-hover',
99
- LuiColors.$linz-color-primary-hover
100
- );
101
-
102
- @include define-custom-property(
103
- 'linz-color-tertiary',
104
- LuiColors.$linz-color-tertiary
105
- );
106
- @include define-custom-property(
107
- 'linz-color-tertiary-hover',
108
- LuiColors.$linz-color-tertiary-hover
109
- );
110
-
111
- @include define-custom-property('color-test-pink', LuiColors.$test-pink);
112
-
113
- @include define-custom-property(
114
- 'linz-linear-gradient-blue',
115
- LuiColors.$linz-linear-gradient-blue
116
- );
117
- @include define-custom-property(
118
- 'linz-linear-gradient-teal',
119
- LuiColors.$linz-linear-gradient-teal
120
- );
121
- } // end :root
@@ -1,157 +0,0 @@
1
- @use "sass:color";
2
- // ============
3
- // Colours
4
- // ============
5
-
6
- // Colours are hard. We've remapped the names in FigLui so that's what's below.
7
-
8
- // ----------------------------
9
- // Brand
10
- // ----------------------------
11
-
12
- // Blues
13
- $teal: #00425d;
14
- $sea: #007198;
15
- $electric: #0096cc;
16
- $spray: #73c8e1;
17
- $polar: #e2f3f7;
18
- $linz-linear-gradient-blue: linear-gradient(70deg, $teal 12%, $sea 100%);
19
-
20
- // Teals
21
- $sherpa: #004b50;
22
- $surfie: #017a76;
23
- $persian: #00a599;
24
- $downy: #73cdc8;
25
- $iceberg: #dcf5f0;
26
- $linz-linear-gradient-teal: linear-gradient(270deg, $persian 1%, $downy 100%);
27
-
28
- // Greens
29
- $sacramento: #004e32;
30
- $salem: #08814d;
31
- $pigment: #0aa245;
32
- $granny: #9bd79b;
33
- $panache: #e9fae7;
34
-
35
- // ----------------------------
36
- // Neutrals
37
- // ----------------------------
38
-
39
- $charcoal: #2a292c;
40
- $fuscous: #6b6966;
41
- $gray: #989189;
42
- $silver: #beb9b4;
43
- $lily: #eaeaea;
44
- $hint: #f9f9f9;
45
- $snow: #ffffff;
46
- $white: $snow;
47
-
48
- // ----------------------------
49
- // Reserved
50
- // ----------------------------
51
-
52
- // error
53
- $error: #cc0000;
54
- $error-bg: #f5cccc;
55
- $error-focus: #5a0000;
56
-
57
- // warning
58
- $warning: #ea6a2e;
59
- $warning-bg: #fbdfd2;
60
- $warning-focus: #b33a01;
61
-
62
- // info
63
- $info: #3a7cdf;
64
- $info-bg: #d8e5f9;
65
-
66
- // success
67
- $success: $pigment;
68
- $success-bg: $panache;
69
-
70
- // text link
71
- $txt-link: #1f69c3;
72
-
73
- $test-pink: #f09;
74
-
75
- // --------------------------------------------------------
76
- // Deprecated variable sets
77
- // --------------------------------------------------------
78
-
79
- $grey-80: $charcoal;
80
- $grey-60: $fuscous;
81
- $grey-30: $gray;
82
- $grey-20: $silver;
83
- $grey-10: $lily;
84
- $grey-05: $hint;
85
-
86
- $blue-100: $teal;
87
- $blue-75: $sea;
88
- $blue-50: $electric;
89
- $blue-25: $spray;
90
- $blue-05: $polar;
91
-
92
- $teal-100: $sherpa;
93
- $teal-75: $surfie;
94
- $teal-50: $persian;
95
- $teal-25: $downy;
96
- $teal-05: $iceberg;
97
-
98
- $green-100: $sacramento;
99
- $green-75: $salem;
100
- $green-50: $pigment;
101
- $green-25: $granny;
102
- $green-05: $panache;
103
-
104
- $brand-primary: $sherpa;
105
- $brand-secondary: $surfie;
106
-
107
- // System colours
108
-
109
- $visited: $teal;
110
- $selection: lighten($spray, 20%);
111
-
112
- // restricted colours for btn hover states
113
- $primary-hover-btn: #005678;
114
- $primary-active-btn: $teal;
115
-
116
- $secondary-hover-btn: $polar;
117
- $secondary-active-btn: $sea;
118
-
119
- $tertiary-hover-btn: $polar;
120
- $tertiary-active-btn: $sea;
121
- $tertiary-btn: #f0f;
122
-
123
- $green-hover: #107c3a;
124
- $green-active: #094A22;
125
- $green-btn: $success;
126
-
127
- $error-hover-btn: #8f0000;
128
- $error-active-btn: #5a0000;
129
-
130
- $txt-link: $electric;
131
-
132
-
133
- //Restricted colours for spatial maps
134
- $hot-pink: #f81bef;
135
-
136
- //Type
137
- $heading-color: $surfie;
138
- $heading-color--secondary: $charcoal;
139
- $base-type-color: $charcoal;
140
-
141
- // Icons, inputs & radio/checkboxes
142
- $input-text: $charcoal;
143
- $input-placeholder: $fuscous;
144
- $input-placeholder-when-disabled: $gray;
145
- $base-icon-color: $sea;
146
- $disabled-color: $gray;
147
- $disabled-bg-color: $lily;
148
- $disabled-color-dark: $fuscous;
149
- $input-focus: $teal;
150
-
151
- //LINZ public site colour variables
152
-
153
- $linz-color-primary: #023d48;
154
- $linz-color-primary-hover: #01818a;
155
-
156
- $linz-color-tertiary: #e1e44a;
157
- $linz-color-tertiary-hover: #cdcf59;