@linzjs/lui 17.28.2 → 17.29.1-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.
- package/CHANGELOG.md +7 -0
- package/dist/components/LuiFloatingWindow/LuiFloatingWindow.d.ts +15 -0
- package/dist/components/LuiFloatingWindow/LuiFloatingWindowHeaders.d.ts +11 -0
- package/dist/components/LuiHeader/LuiHeader.d.ts +8 -0
- package/dist/components/LuiHeader/LuiHeaderV2.d.ts +16 -0
- package/dist/components/LuiHeaderMenu/LuiHeaderMenus.d.ts +12 -0
- package/dist/components/LuiHeaderMenu/LuiHeaderMenusV2.d.ts +26 -0
- package/dist/components/common/UseMediaQuery.d.ts +9 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +13661 -886
- package/dist/index.js.map +1 -1
- package/dist/lui.css +324 -0
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +13370 -611
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/Header/header-v2.scss +204 -0
- package/dist/scss/Components/LuiFloatingWindow/LuiFloatingWindow.scss +14 -0
- package/dist/scss/Components/Menu/menu-v2.scss +165 -0
- package/dist/scss/base.scss +2 -0
- package/package.json +4 -2
|
@@ -0,0 +1,204 @@
|
|
|
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
|
+
.lui-header-v2 {
|
|
19
|
+
@include lui-standard-header-background($swishHeightLgV2);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.lui-header-row-v2 {
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
align-items: center;
|
|
26
|
+
height: $headerRowHeightMdV2;
|
|
27
|
+
padding: spacing.$unit-xxs;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.lui-header-col-v2 {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
flex-wrap: nowrap;
|
|
34
|
+
flex: 0 1 auto;
|
|
35
|
+
height: 100%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.lui-header-title-v2 {
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
|
|
41
|
+
h1 {
|
|
42
|
+
color: colors.$white;
|
|
43
|
+
@media only screen {
|
|
44
|
+
//I've wrapped this in a media query so it will still print out on a page
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
@include breakpoint(sm) {
|
|
48
|
+
display: block;
|
|
49
|
+
font-size: 2rem;
|
|
50
|
+
line-height: 2rem; //line height same as size so vertical placement is true
|
|
51
|
+
@include fonts.font-light;
|
|
52
|
+
margin: 0;
|
|
53
|
+
}
|
|
54
|
+
@include breakpoint(md) {
|
|
55
|
+
font-size: 2.25rem;
|
|
56
|
+
line-height: 2.25rem; //line height same as size so vertical placement is true
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.lui-header-logo-v2 {
|
|
62
|
+
a:before {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
margin-left: spacing.$unit-xs;
|
|
67
|
+
margin-right: spacing.$unit-xs;
|
|
68
|
+
|
|
69
|
+
@include breakpoint(sm) {
|
|
70
|
+
border-right: 1px solid colors.$persian;
|
|
71
|
+
padding-right: spacing.$unit-xs;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
& .clickable {
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.linz-logo-v2 {
|
|
80
|
+
width: 170px;
|
|
81
|
+
@include breakpoint(sm) {
|
|
82
|
+
width: 200px;
|
|
83
|
+
}
|
|
84
|
+
vertical-align: middle;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.lui-header-small-v2 {
|
|
88
|
+
.lui-header-row-v2 {
|
|
89
|
+
height: $headerRowHeightSmV2;
|
|
90
|
+
|
|
91
|
+
.lui-header-col-v2 {
|
|
92
|
+
height: 40px;
|
|
93
|
+
|
|
94
|
+
.lui-header-logo-v2 {
|
|
95
|
+
border: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.linz-motif-v2 {
|
|
99
|
+
height: 32px;
|
|
100
|
+
width: 32px;
|
|
101
|
+
vertical-align: middle;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.lui-header-title-v2 {
|
|
105
|
+
white-space: nowrap;
|
|
106
|
+
|
|
107
|
+
h1 {
|
|
108
|
+
color: colors.$white;
|
|
109
|
+
font-size: 20px;
|
|
110
|
+
line-height: 24px;
|
|
111
|
+
@include fonts.font-regular;
|
|
112
|
+
margin: 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&:after {
|
|
119
|
+
height: $swishHeightSmV2;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.lui-header-sticky-v2 {
|
|
124
|
+
position: fixed;
|
|
125
|
+
z-index: 50;
|
|
126
|
+
top: 0;
|
|
127
|
+
left: 0;
|
|
128
|
+
width: 100%;
|
|
129
|
+
|
|
130
|
+
& + div,
|
|
131
|
+
& + main {
|
|
132
|
+
margin-top: $headerHeightMdV2;
|
|
133
|
+
|
|
134
|
+
@include breakpoint(md) {
|
|
135
|
+
margin-top: $headerHeightLgV2;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&.lui-header-small-v2 {
|
|
140
|
+
& + div,
|
|
141
|
+
& + main {
|
|
142
|
+
margin-top: $headerHeightSmV2;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.lui-header-menu-item-v2 {
|
|
148
|
+
.lui-header-menu-button {
|
|
149
|
+
@include fonts.font-semibold;
|
|
150
|
+
position: relative;
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
|
|
155
|
+
// still using original name rather than ui-header-menu-icon-v2
|
|
156
|
+
// as to avoid create a new version lui-standard-header-background which is used by modal.scss
|
|
157
|
+
.lui-header-menu-icon {
|
|
158
|
+
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
color: colors.$white;
|
|
161
|
+
cursor: default;
|
|
162
|
+
user-select: none;
|
|
163
|
+
|
|
164
|
+
&.clickable:hover {
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
width: spacing.$unit-xl;
|
|
169
|
+
height: spacing.$unit-xl;
|
|
170
|
+
align-items: center;
|
|
171
|
+
justify-content: center;
|
|
172
|
+
&:hover {
|
|
173
|
+
background-color: #8321ff;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
i {
|
|
177
|
+
font-size: rem(32px);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.lui-menu-label-v2 {
|
|
182
|
+
text-align: left;
|
|
183
|
+
margin-left: spacing.$unit-xxs;
|
|
184
|
+
margin-right: spacing.$unit-xxs;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.badge-v2 {
|
|
188
|
+
position: absolute;
|
|
189
|
+
top: 0.3rem;
|
|
190
|
+
left: 1.8rem;
|
|
191
|
+
width: 1.3rem;
|
|
192
|
+
height: 1.3rem;
|
|
193
|
+
font-size: 0.8em;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.badge-v2 {
|
|
199
|
+
display: block;
|
|
200
|
+
text-align: center;
|
|
201
|
+
border-radius: 50%;
|
|
202
|
+
background: #cc0000;
|
|
203
|
+
color: white;
|
|
204
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.LuiFloatingWindow-buttons {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.LuiFloatingWindow-extra-buttons-divider {
|
|
7
|
+
margin-right: 4px;
|
|
8
|
+
margin-left: 8px;
|
|
9
|
+
margin-top: -6px;
|
|
10
|
+
font-size: x-large;
|
|
11
|
+
opacity: 0.7;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.FloatingWindow-window{box-shadow:0 0 10px #0071981a;position:absolute;background-color:#fff;top:10%;left:5%;display:flex;flex-direction:column;border-radius:9px}.FloatingWindow-container{display:flex;height:calc(100% - 50px);width:100%;overflow:auto}.FloatingWindow-header-element{flex:0}.FloatingWindow-header{height:48px;line-height:48px;color:#6b6966;padding:0 8px;display:flex;overflow:hidden;justify-content:space-between;border-bottom:2px #eaeaea solid;font-size:1em;font-weight:600}.FloatingWindow-header-title-text{font-size:1em;font-weight:600;overflow:hidden}.FloatingWindow-buttons{display:flex;align-items:center}.FloatingWindow-extra-buttons-divider{margin-right:4px;margin-left:8px;margin-top:-6px;font-size:x-large;opacity:.7}.FloatingWindowHeaderButton-button{padding:0 0 0 8px;border:none;outline:none;border-radius:50%;background-color:transparent;color:#000;display:flex}.FloatingWindowHeaderButton-icon{fill:#6b6966}.floating-window-icon{display:inline-block;height:24px;max-height:24px;max-width:24px;width:24px;fill:#6b6966}
|
|
@@ -0,0 +1,165 @@
|
|
|
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 "../Header/header-v2.scss" as header;
|
|
7
|
+
|
|
8
|
+
@mixin menu-container-v2 {
|
|
9
|
+
text-align: left;
|
|
10
|
+
background-color: white;
|
|
11
|
+
color: colors.$base-type-color;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body.lui-menu-drawer-v2-open {
|
|
15
|
+
overflow-y: hidden;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.lui-menu-drawer-v2 {
|
|
19
|
+
@include menu-container-v2;
|
|
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
|
+
.lui-header-v2 & {
|
|
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
|
+
.lui-header-small-v2 & {
|
|
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
|
+
|
|
90
|
+
.lui-menu-dropdown-v2 {
|
|
91
|
+
animation: growDown 300ms ease-in-out forwards;
|
|
92
|
+
transform-origin: top center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes menu-dropdown-animation-go-down {
|
|
96
|
+
0% {
|
|
97
|
+
transform: scaleY(0);
|
|
98
|
+
}
|
|
99
|
+
100% {
|
|
100
|
+
transform: scaleY(1);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@keyframes menu-dropdown-animation-go-up {
|
|
105
|
+
0% {
|
|
106
|
+
transform: scaleY(1);
|
|
107
|
+
}
|
|
108
|
+
100% {
|
|
109
|
+
transform: scaleY(0);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.lui-menu-dropdown-container {
|
|
114
|
+
position: relative;
|
|
115
|
+
|
|
116
|
+
.lui-menu-dropdown-v2 {
|
|
117
|
+
@include menu-container-v2;
|
|
118
|
+
position: absolute;
|
|
119
|
+
border-radius: misc.$borderRadius;
|
|
120
|
+
top: spacing.$unit-xs;
|
|
121
|
+
|
|
122
|
+
// animation
|
|
123
|
+
animation: menu-dropdown-animation-go-down 200ms ease-in-out forwards;
|
|
124
|
+
transform-origin: top center;
|
|
125
|
+
|
|
126
|
+
&-closed {
|
|
127
|
+
animation: menu-dropdown-animation-go-up 200ms ease-in-out forwards;
|
|
128
|
+
transform-origin: top center;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
z-index: 900; // primary menu
|
|
132
|
+
|
|
133
|
+
&.dropdown-horizontal-left {
|
|
134
|
+
left: spacing.$unit-xs;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&.dropdown-horizontal-right {
|
|
138
|
+
right: spacing.$unit-xs;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&.dropdown-xxl {
|
|
142
|
+
width: 500px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.dropdown-xl {
|
|
146
|
+
width: 400px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.dropdown-lg {
|
|
150
|
+
width: 320px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.dropdown-md {
|
|
154
|
+
width: 260px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&.dropdown-sm {
|
|
158
|
+
width: 200px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&.dropdown-xs {
|
|
162
|
+
width: 150px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
package/dist/scss/base.scss
CHANGED
|
@@ -45,8 +45,10 @@
|
|
|
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/Header/header-v2.scss';
|
|
48
49
|
@forward './Components/HelpSection/help-section.scss';
|
|
49
50
|
@forward './Components/Menu/menu.scss';
|
|
51
|
+
@forward './Components/Menu/menu-v2.scss';
|
|
50
52
|
@forward './Components/Messaging/messaging.scss';
|
|
51
53
|
@forward './Components/Modal/modal.scss';
|
|
52
54
|
@forward './Components/NavDrawer/nav-drawer.scss';
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "17.
|
|
2
|
+
"version": "17.29.1-0",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
],
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@geometricpanda/storybook-addon-badges": "^0.2.1",
|
|
76
|
+
"@linzjs/floating-windows": "0.4.0",
|
|
76
77
|
"@linzjs/style": "^3.9.0",
|
|
77
78
|
"@react-types/shared": "^3.14.0",
|
|
78
79
|
"@rollup/plugin-commonjs": "^21.0.2",
|
|
@@ -93,6 +94,7 @@
|
|
|
93
94
|
"@storybook/theming": "^6.5.0",
|
|
94
95
|
"@testing-library/jest-dom": "^5.8.0",
|
|
95
96
|
"@testing-library/react": "^10.0.4",
|
|
97
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
96
98
|
"@testing-library/user-event": "^10.4.0",
|
|
97
99
|
"@types/camelcase": "^5.2.0",
|
|
98
100
|
"@types/jest": "^25.2.3",
|
|
@@ -149,7 +151,6 @@
|
|
|
149
151
|
"@react-aria/utils": "^3.13.2",
|
|
150
152
|
"@react-stately/list": "^3.5.2",
|
|
151
153
|
"@szhsin/react-menu": "^2.3.3",
|
|
152
|
-
"react-split-grid": "1.0.4",
|
|
153
154
|
"camelcase": "^6.0.0",
|
|
154
155
|
"clsx": "^1.1.0",
|
|
155
156
|
"container-query-polyfill": "0.1.2",
|
|
@@ -160,6 +161,7 @@
|
|
|
160
161
|
"react-modal": "^3.11.2",
|
|
161
162
|
"react-query": "2.26.3",
|
|
162
163
|
"react-select": "^5.1.0",
|
|
164
|
+
"react-split-grid": "1.0.4",
|
|
163
165
|
"resolve-url-loader": "^5.0.0",
|
|
164
166
|
"svgstore": "^3.0.0-2",
|
|
165
167
|
"tippy.js": "^6.3.1",
|