@linzjs/lui 17.30.0 → 17.32.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.
@@ -0,0 +1,242 @@
1
+ @use "../../Foundation/Variables/MiscVars.scss" as misc;
2
+ @use "../../Foundation/Variables/ColorVars.scss" as colors;
3
+ @use "../../Foundation/Variables/FontVars.scss" as fonts;
4
+ @use "../../Foundation/Variables/SpacingVars.scss" as spacing;
5
+ @use "../../Foundation/Utilities" as *;
6
+
7
+ $headerRowHeightSmV2: 56px;
8
+ $headerRowHeightMdV2: 85px;
9
+ $headerRowHeightLgV2: 110px;
10
+ $swishHeightSmV2: 3px;
11
+ $swishHeightLgV2: 6px;
12
+ // header height is row height + swish height
13
+ // columns in header row is always 100% so it's row and swish that drives the height of the header
14
+ $headerHeightSmV2: $headerRowHeightSmV2 + $swishHeightSmV2;
15
+ $headerHeightMdV2: $headerRowHeightMdV2 + $swishHeightLgV2;
16
+ $headerHeightLgV2: $headerRowHeightLgV2 + $swishHeightLgV2;
17
+
18
+ $headerPadding: spacing.$unit-xxs;
19
+
20
+ // the padding (margin) size for the menu logo, icon and heading text
21
+ $headerElementPadding: spacing.$unit-xs;
22
+
23
+ .LuiHeaderV2 {
24
+ background: colors.$linz-linear-gradient-blue;
25
+ color: #fff;
26
+
27
+ &:after {
28
+ width: 100%;
29
+ content: '';
30
+ display: block;
31
+ height: $swishHeightLgV2;
32
+ overflow: hidden;
33
+ background: colors.$linz-linear-gradient-teal;
34
+ }
35
+
36
+ &.LuiHeaderV2-transparent {
37
+ background: transparent;
38
+ color: colors.$sea;
39
+ &:after {
40
+ content: none;
41
+ }
42
+ .LuiHeaderV2-menu-button {
43
+ .LuiHeaderV2-menu-icon {
44
+ color: colors.$surfie;
45
+ }
46
+ }
47
+ }
48
+ }
49
+
50
+ .LuiHeaderV2-row {
51
+ display: flex;
52
+ justify-content: space-between;
53
+ align-items: center;
54
+ height: $headerRowHeightMdV2;
55
+ padding: $headerPadding;
56
+ }
57
+
58
+ .LuiHeaderV2-col {
59
+ display: flex;
60
+ align-items: center;
61
+ flex-wrap: nowrap;
62
+ flex: 0 1 auto;
63
+ height: 100%;
64
+ }
65
+
66
+ .LuiHeaderV2-title {
67
+ white-space: nowrap;
68
+ padding-right: $headerElementPadding;
69
+ padding-left: $headerElementPadding;
70
+ vertical-align: middle;
71
+
72
+ h1 {
73
+ color: colors.$white;
74
+ @media only screen {
75
+ display: none;
76
+ }
77
+ @include breakpoint(sm) {
78
+ display: block;
79
+ font-size: 2rem;
80
+ line-height: 2rem; // line height same as size so vertical placement is true
81
+ @include fonts.font-light;
82
+ margin: 0;
83
+ }
84
+ @include breakpoint(md) {
85
+ font-size: 2.25rem;
86
+ line-height: 2.25rem; // line height same as size so vertical placement is true
87
+ }
88
+ }
89
+ }
90
+
91
+ .LuiHeaderV2-logo {
92
+ a:before {
93
+ display: none;
94
+ }
95
+
96
+ margin-left: $headerElementPadding;
97
+ margin-right: $headerElementPadding;
98
+
99
+ @include breakpoint(sm) {
100
+ border-right: 1px solid colors.$persian;
101
+ padding-right: $headerElementPadding;
102
+ }
103
+
104
+ & .clickable {
105
+ cursor: pointer;
106
+ }
107
+ }
108
+
109
+ .LuiHeaderV2-linz-logo {
110
+ width: 170px;
111
+ @include breakpoint(sm) {
112
+ width: 200px;
113
+ }
114
+ vertical-align: middle;
115
+ }
116
+
117
+ .LuiHeaderV2-small {
118
+ .LuiHeaderV2-row {
119
+ height: $headerRowHeightSmV2;
120
+
121
+ .LuiHeaderV2-col {
122
+ height: 40px;
123
+
124
+ .LuiHeaderV2-logo {
125
+ border: none;
126
+ padding-right: 0;
127
+ }
128
+
129
+ .LuiHeaderV2-linz-motif {
130
+ height: 32px;
131
+ width: 32px;
132
+ vertical-align: middle;
133
+ }
134
+
135
+ .LuiHeaderV2-title {
136
+ white-space: nowrap;
137
+
138
+ h1 {
139
+ color: colors.$white;
140
+ font-size: 20px;
141
+ line-height: 24px;
142
+ @include fonts.font-regular;
143
+ margin: 0;
144
+ }
145
+ }
146
+ }
147
+ }
148
+
149
+ &:after {
150
+ height: $swishHeightSmV2;
151
+ }
152
+ }
153
+
154
+ .LuiHeaderV2-sticky {
155
+ position: fixed;
156
+ z-index: 50;
157
+ top: 0;
158
+ left: 0;
159
+ width: 100%;
160
+
161
+ & + div,
162
+ & + main {
163
+ margin-top: $headerHeightMdV2;
164
+
165
+ @include breakpoint(md) {
166
+ margin-top: $headerHeightLgV2;
167
+ }
168
+ }
169
+
170
+ &.LuiHeaderV2-small {
171
+ & + div,
172
+ & + main {
173
+ margin-top: $headerHeightSmV2;
174
+ }
175
+ }
176
+ }
177
+
178
+ .LuiHeaderV2-menu-item {
179
+ .LuiHeaderV2-menu-button {
180
+ @include fonts.font-semibold;
181
+ position: relative;
182
+ display: flex;
183
+ align-items: center;
184
+ justify-content: center;
185
+
186
+ .clickable:hover {
187
+ cursor: pointer;
188
+ }
189
+
190
+ .lui-icon {
191
+ fill: colors.$white;
192
+ }
193
+
194
+ .LuiHeaderV2-menu-icon {
195
+ display: flex;
196
+ align-items: center;
197
+ color: colors.$white;
198
+ cursor: default;
199
+ user-select: none;
200
+
201
+ width: spacing.$unit-xl;
202
+ height: spacing.$unit-xl;
203
+ align-items: center;
204
+ justify-content: center;
205
+ &:hover {
206
+ background-color: #8321ff;
207
+ }
208
+
209
+ i {
210
+ font-size: rem(32px);
211
+ }
212
+ }
213
+
214
+ .LuiHeaderV2-menu-label {
215
+ text-align: left;
216
+ margin-right: $headerElementPadding;
217
+ }
218
+
219
+ .LuiHeaderV2-menu-label-only {
220
+ text-align: left;
221
+ margin-left: $headerElementPadding;
222
+ margin-right: $headerElementPadding;
223
+ }
224
+
225
+ .LuiHeaderV2-badge {
226
+ position: absolute;
227
+ top: 0.25rem;
228
+ left: 1.75rem;
229
+ width: 1.25rem;
230
+ height: 1.25rem;
231
+ font-size: 0.75em;
232
+ }
233
+ }
234
+ }
235
+
236
+ .LuiHeaderV2-badge {
237
+ display: block;
238
+ text-align: center;
239
+ border-radius: 50%;
240
+ background: #cc0000;
241
+ color: white;
242
+ }
@@ -0,0 +1,23 @@
1
+ @use "../../Foundation/Variables/SpacingVars.scss" as spacing;
2
+ @use "../../Foundation/Variables/ColorVars.scss" as colors;
3
+ .lui-splash-content {
4
+ display: flex;
5
+ justify-content: center;
6
+ align-items: center;
7
+ width: fit-content;
8
+ overflow: auto;
9
+ WebkitOverflowScrolling: touch;
10
+ border-radius: 0.2rem;
11
+ margin: 0 spacing.$unit-sm;
12
+ }
13
+ .splash_overlay {
14
+ position: fixed;
15
+ top: 0;
16
+ left: 0;
17
+ right: 0;
18
+ bottom: 0;
19
+ background: rgba(0, 0, 0, 0.6);
20
+ display: flex;
21
+ justify-content: center;
22
+ align-items: center;
23
+ }
@@ -0,0 +1,172 @@
1
+ @use "../../Foundation/Variables/MiscVars.scss" as misc;
2
+ @use "../../Foundation/Variables/ColorVars.scss" as colors;
3
+ @use '../../Foundation/Variables/FontVars.scss' as fonts;
4
+ @use "../../Foundation/Variables/SpacingVars.scss" as spacing;
5
+ @use "../../Foundation/Utilities" as *;
6
+ @use "../HeaderV2/header-v2.scss" as header;
7
+
8
+ @mixin LuiHeaderMenuV2-container {
9
+ text-align: left;
10
+ background-color: white;
11
+ color: colors.$base-type-color;
12
+ }
13
+
14
+ body.LuiHeaderMenuV2-drawer-open {
15
+ overflow-y: hidden;
16
+ }
17
+
18
+ .LuiHeaderMenuV2-drawer {
19
+ @include LuiHeaderMenuV2-container;
20
+ height: 100%;
21
+ width: 300px;
22
+ max-width: 100%;
23
+ position: fixed;
24
+ z-index: 1;
25
+ top: 0;
26
+ right: 0;
27
+ overflow-x: hidden;
28
+ border-left: 2px solid colors.$lily;
29
+ transition: right 0.5s, visibility 0.6s;
30
+
31
+ .LuiHeaderV2 & {
32
+ top: header.$headerHeightMdV2;
33
+ height: calc(100% - #{header.$headerHeightMdV2});
34
+
35
+ @include breakpoint(md) {
36
+ top: header.$headerHeightLgV2;
37
+ height: calc(100% - #{header.$headerHeightLgV2});
38
+ }
39
+ }
40
+
41
+ .LuiHeaderV2-small & {
42
+ top: header.$headerHeightSmV2;
43
+ height: calc(100% - #{header.$headerHeightSmV2});
44
+ }
45
+
46
+ &-closed {
47
+ right: -300px;
48
+ visibility: hidden;
49
+ }
50
+
51
+ &-options {
52
+ hr {
53
+ background-color: colors.$lily;
54
+ }
55
+ }
56
+
57
+ &-option {
58
+ display: flex;
59
+ justify-content: space-between;
60
+ padding: 12px 16px;
61
+
62
+ &:hover {
63
+ cursor: pointer;
64
+ background-color: colors.$polar;
65
+ }
66
+
67
+ &-label {
68
+ display: flex;
69
+ align-items: center;
70
+
71
+ :first-child {
72
+ margin-right: 10px;
73
+ }
74
+
75
+ i {
76
+ color: colors.$brand-secondary;
77
+ font-size: rem(24px);
78
+ }
79
+ }
80
+
81
+ .badge {
82
+ width: 24px;
83
+ height: 24px;
84
+ }
85
+ }
86
+ }
87
+
88
+ // drop down
89
+ @keyframes LuiHeaderMenuV2-dropdown-animation-down {
90
+ 0% {
91
+ transform: scaleY(0);
92
+ }
93
+ 100% {
94
+ transform: scaleY(1);
95
+ }
96
+ }
97
+
98
+ @keyframes LuiHeaderMenuV2-dropdown-animation-up {
99
+ 0% {
100
+ transform: scaleY(1);
101
+ }
102
+ 100% {
103
+ transform: scaleY(0);
104
+ }
105
+ }
106
+
107
+ .LuiHeaderMenuV2-dropdown-container {
108
+ position: relative;
109
+
110
+ .LuiHeaderMenuV2-dropdown {
111
+ @include LuiHeaderMenuV2-container;
112
+ position: absolute;
113
+ border-radius: misc.$borderRadius;
114
+ top: spacing.$unit-xs;
115
+
116
+ display: none; // closed at inital state
117
+
118
+ &-open {
119
+ // animate dropping down
120
+ animation: LuiHeaderMenuV2-dropdown-animation-down 250ms ease-in-out
121
+ forwards;
122
+ transform-origin: center top;
123
+ display: block;
124
+ }
125
+
126
+ &-closed {
127
+ // animate shrinking up
128
+ animation: LuiHeaderMenuV2-dropdown-animation-up 250ms ease-in-out
129
+ forwards;
130
+ transform-origin: center top;
131
+ display: block;
132
+ }
133
+
134
+ z-index: 900; // primary menu
135
+
136
+ &.anchor-horizontal-icon-left {
137
+ left: spacing.$unit-xs;
138
+ }
139
+
140
+ &.anchor-horizontal-icon-right {
141
+ right: spacing.$unit-xs;
142
+ }
143
+
144
+ &.anchor-horizontal-label-right {
145
+ right: 0;
146
+ }
147
+
148
+ &.dropdown-xxl {
149
+ width: 500px;
150
+ }
151
+
152
+ &.dropdown-xl {
153
+ width: 400px;
154
+ }
155
+
156
+ &.dropdown-lg {
157
+ width: 320px;
158
+ }
159
+
160
+ &.dropdown-md {
161
+ width: 260px;
162
+ }
163
+
164
+ &.dropdown-sm {
165
+ width: 200px;
166
+ }
167
+
168
+ &.dropdown-xs {
169
+ width: 150px;
170
+ }
171
+ }
172
+ }
@@ -45,10 +45,13 @@
45
45
  @forward './Components/ExpandingSection/expanding-section.scss';
46
46
  @forward './Components/Footer/footer.scss';
47
47
  @forward './Components/Header/header.scss';
48
+ @forward './Components/HeaderV2/header-v2.scss';
48
49
  @forward './Components/HelpSection/help-section.scss';
49
50
  @forward './Components/Menu/menu.scss';
51
+ @forward './Components/MenuV2/menu-v2.scss';
50
52
  @forward './Components/Messaging/messaging.scss';
51
53
  @forward './Components/Modal/modal.scss';
54
+ @forward './Components/LuiUpdateSplashModal/splashModal.scss';
52
55
  @forward './Components/NavDrawer/nav-drawer.scss';
53
56
  @forward './Components/Notifications/notifications.scss';
54
57
  @forward './Components/Scrim/scrim.scss';
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "17.30.0",
2
+ "version": "17.32.0",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",
@@ -73,8 +73,8 @@
73
73
  ],
74
74
  "devDependencies": {
75
75
  "@geometricpanda/storybook-addon-badges": "^0.2.1",
76
- "@linzjs/style": "^3.9.0",
77
76
  "@linzjs/floating-windows": "0.4.0",
77
+ "@linzjs/style": "^3.9.0",
78
78
  "@react-types/shared": "^3.14.0",
79
79
  "@rollup/plugin-commonjs": "^21.0.2",
80
80
  "@rollup/plugin-json": "^4.1.0",
@@ -94,14 +94,15 @@
94
94
  "@storybook/theming": "^6.5.0",
95
95
  "@testing-library/jest-dom": "^5.8.0",
96
96
  "@testing-library/react": "^10.0.4",
97
+ "@testing-library/react-hooks": "^8.0.1",
97
98
  "@testing-library/user-event": "^10.4.0",
98
99
  "@types/camelcase": "^5.2.0",
99
100
  "@types/jest": "^25.2.3",
100
101
  "@types/jest-axe": "^3.5.0",
101
102
  "@types/react": "^16.9.55",
103
+ "@types/react-modal": "^3.13.1",
102
104
  "@types/react-dom": "^16.9.9",
103
105
  "@types/react-helmet": "^6.1.2",
104
- "@types/react-modal": "^3.10.5",
105
106
  "@types/sass": "^1.16.0",
106
107
  "@types/uuid": "^8.3.1",
107
108
  "@types/yup": "0.29.13",
@@ -150,7 +151,6 @@
150
151
  "@react-aria/utils": "^3.13.2",
151
152
  "@react-stately/list": "^3.5.2",
152
153
  "@szhsin/react-menu": "^2.3.3",
153
- "react-split-grid": "1.0.4",
154
154
  "camelcase": "^6.0.0",
155
155
  "clsx": "^1.1.0",
156
156
  "container-query-polyfill": "0.1.2",
@@ -158,9 +158,10 @@
158
158
  "framer-motion": "4.1.17",
159
159
  "lottie-web": "^5.9.1",
160
160
  "react-loading-skeleton": "^3.1.0",
161
- "react-modal": "^3.11.2",
161
+ "react-modal": "^3.16.1",
162
162
  "react-query": "2.26.3",
163
163
  "react-select": "^5.1.0",
164
+ "react-split-grid": "1.0.4",
164
165
  "resolve-url-loader": "^5.0.0",
165
166
  "svgstore": "^3.0.0-2",
166
167
  "tippy.js": "^6.3.1",
@@ -203,5 +204,9 @@
203
204
  },
204
205
  "homepage": "https://github.com/linz/lui#readme",
205
206
  "keywords": [],
206
- "author": ""
207
+ "author": "",
208
+ "engines": {
209
+ "node": "18.12.1",
210
+ "npm": "8.19.2"
211
+ }
207
212
  }