@linzjs/lui 17.29.1-5 → 17.29.1

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.
@@ -102,6 +102,16 @@ $label-line-height: spacing.$unit-md;
102
102
  }
103
103
  }
104
104
 
105
+ .LuiTextInput-sm {
106
+ height: spacing.$unit-lg; // 32px
107
+ padding: {
108
+ top: spacing.$unit-xs;
109
+ right: spacing.$unit-sm;
110
+ bottom: spacing.$unit-xs;
111
+ left: spacing.$unit-sm;
112
+ }
113
+ }
114
+
105
115
  .LuiTextInput-iconPosition {
106
116
  position: absolute;
107
117
  right: 7px;
@@ -122,7 +132,8 @@ $label-line-height: spacing.$unit-md;
122
132
  background-size: 16px 21px;
123
133
  }
124
134
 
125
- .LuiTextInput-error, .LuiTextInput-warning {
135
+ .LuiTextInput-error,
136
+ .LuiTextInput-warning {
126
137
  @include fonts.font-semibold();
127
138
  display: flex; // make sure we have a hanging indent with the icon
128
139
  position: relative;
@@ -137,7 +148,8 @@ $label-line-height: spacing.$unit-md;
137
148
  color: colors.$error;
138
149
  }
139
150
 
140
- .LuiTextInput-error-icon, .LuiTextInput-warning-icon {
151
+ .LuiTextInput-error-icon,
152
+ .LuiTextInput-warning-icon {
141
153
  position: absolute;
142
154
  left: 0;
143
155
  top: 2px;
@@ -45,10 +45,8 @@
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';
49
48
  @forward './Components/HelpSection/help-section.scss';
50
49
  @forward './Components/Menu/menu.scss';
51
- @forward './Components/MenuV2/menu-v2.scss';
52
50
  @forward './Components/Messaging/messaging.scss';
53
51
  @forward './Components/Modal/modal.scss';
54
52
  @forward './Components/NavDrawer/nav-drawer.scss';
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "17.29.1-5",
2
+ "version": "17.29.1",
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/floating-windows": "0.4.0",
77
76
  "@linzjs/style": "^3.9.0",
77
+ "@linzjs/floating-windows": "0.4.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,7 +94,6 @@
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",
98
97
  "@testing-library/user-event": "^10.4.0",
99
98
  "@types/camelcase": "^5.2.0",
100
99
  "@types/jest": "^25.2.3",
@@ -151,6 +150,7 @@
151
150
  "@react-aria/utils": "^3.13.2",
152
151
  "@react-stately/list": "^3.5.2",
153
152
  "@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",
@@ -161,7 +161,6 @@
161
161
  "react-modal": "^3.11.2",
162
162
  "react-query": "2.26.3",
163
163
  "react-select": "^5.1.0",
164
- "react-split-grid": "1.0.4",
165
164
  "resolve-url-loader": "^5.0.0",
166
165
  "svgstore": "^3.0.0-2",
167
166
  "tippy.js": "^6.3.1",
@@ -1,60 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- import { ILuiHeaderMenuItem, ILuiIcon } from '../LuiHeader/LuiHeader';
3
- import { ILuiDrawerMenu, ILuiDrawerMenuSection } from '../LuiHeaderMenu/LuiHeaderMenus';
4
- import { Size } from '../common/ResponsiveUtils';
5
- interface ILuiDrawerMenuOptionV2 {
6
- /**
7
- * The material-ui icon name (see https://material.io/resources/icons/?search=account_c&style=round)
8
- */
9
- icon?: string | ReactElement;
10
- /**
11
- * The label shown beside the icon which is aligned at the left of the drawer
12
- */
13
- label: string | ReactElement;
14
- /**
15
- * The badge which is shown which is aligned at the right of the drawer
16
- */
17
- badge?: ReactElement;
18
- /**
19
- * The function to be bound together with closing the drawer on click
20
- */
21
- onClick?: () => void;
22
- }
23
- declare const LuiDrawerMenuOptionsV2: ({ children, }: ILuiIcon & {
24
- children: ReactNode;
25
- }) => JSX.Element;
26
- declare const LuiDrawerMenuOptionV2: ({ icon, label, badge, onClick, }: ILuiDrawerMenuOptionV2) => JSX.Element;
27
- declare const LuiDrawerMenuV2: ({ children, hasStickyHeader, ...menuPropsCopy }: Omit<ILuiHeaderMenuItem, "onClick"> & {
28
- hasStickyHeader?: boolean | undefined;
29
- } & {
30
- children: ReactNode;
31
- }) => JSX.Element;
32
- declare type ILuiDropdownMenuV2 = Omit<ILuiHeaderMenuItem, 'onClick'> & {
33
- /**
34
- * The anchor origin of dropdown, default to left
35
- */
36
- anchorOrigin?: {
37
- horizontal?: 'left' | 'right';
38
- };
39
- /**
40
- * the width of dropdown, default to 'md'
41
- */
42
- size?: Size | 'xxl';
43
- };
44
- declare const LuiDropdownMenuV2: ({ ...restOfProps }: Omit<ILuiHeaderMenuItem, "onClick"> & {
45
- /**
46
- * The anchor origin of dropdown, default to left
47
- */
48
- anchorOrigin?: {
49
- horizontal?: "left" | "right" | undefined;
50
- } | undefined;
51
- /**
52
- * the width of dropdown, default to 'md'
53
- */
54
- size?: Size | "xxl" | undefined;
55
- } & {
56
- children: ReactNode;
57
- }) => JSX.Element;
58
- declare const LuiDrawerMenuSectionV2: (props: ILuiDrawerMenuSection) => JSX.Element;
59
- declare const LuiDrawerMenuDividerV2: () => JSX.Element;
60
- export { LuiDrawerMenuV2, LuiDrawerMenuOptionsV2, LuiDrawerMenuOptionV2, ILuiDropdownMenuV2, LuiDropdownMenuV2, LuiDrawerMenuSectionV2, LuiDrawerMenuDividerV2, ILuiDrawerMenuOptionV2, };
@@ -1,19 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { HeaderSize, ILuiCloseableHeaderMenuItem, ILuiHeaderMenuItem } from '../LuiHeader/LuiHeader';
3
- interface HeaderPropsV2 {
4
- headingText?: string;
5
- size?: HeaderSize;
6
- homeLink?: string | (() => void);
7
- transparent?: boolean;
8
- sticky?: boolean;
9
- appMenu?: ReactNode;
10
- children: ReactNode;
11
- }
12
- declare const LuiHeaderV2: ({ headingText, size, homeLink, transparent, children, sticky, appMenu, }: HeaderPropsV2) => JSX.Element;
13
- declare const LuiHeaderMenuItemV2: React.ForwardRefExoticComponent<ILuiHeaderMenuItem & {
14
- children?: ReactNode;
15
- } & React.RefAttributes<HTMLDivElement>>;
16
- declare const LuiCloseableHeaderMenuItemV2: ({ open, setOpen, children, ...props }: ILuiCloseableHeaderMenuItem & {
17
- children?: ReactNode;
18
- }) => JSX.Element;
19
- export { LuiHeaderV2, LuiHeaderMenuItemV2, LuiCloseableHeaderMenuItemV2 };
@@ -1,9 +0,0 @@
1
- import { Size } from './ResponsiveUtils';
2
- export declare type Breakpoint = Exclude<Size | 'xxl', 'xs'>;
3
- export declare const breakpoints: Record<Breakpoint, number>;
4
- export declare const breakpointQuery: {
5
- up: (bp: Breakpoint) => string;
6
- down: (bp: Breakpoint) => string;
7
- between: (bp1: Breakpoint, bp2: Breakpoint) => string;
8
- };
9
- export declare const useMediaQuery: (query: string) => boolean;
@@ -1,238 +0,0 @@
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: 4px;
19
-
20
- // the padding (margin) size for the menu logo, icon and heading text
21
- $headerElementPadding: 8px;
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
- .LuiHeaderV2-menu-icon {
191
- display: flex;
192
- align-items: center;
193
- color: colors.$white;
194
- cursor: default;
195
- user-select: none;
196
-
197
- width: spacing.$unit-xl;
198
- height: spacing.$unit-xl;
199
- align-items: center;
200
- justify-content: center;
201
- &:hover {
202
- background-color: #8321ff;
203
- }
204
-
205
- i {
206
- font-size: rem(32px);
207
- }
208
- }
209
-
210
- .LuiHeaderV2-menu-label {
211
- text-align: left;
212
- margin-right: $headerElementPadding;
213
- }
214
-
215
- .LuiHeaderV2-menu-label-only {
216
- text-align: left;
217
- margin-left: $headerElementPadding;
218
- margin-right: $headerElementPadding;
219
- }
220
-
221
- .LuiHeaderV2-badge {
222
- position: absolute;
223
- top: 0.25rem;
224
- left: 1.75rem;
225
- width: 1.25rem;
226
- height: 1.25rem;
227
- font-size: 0.75em;
228
- }
229
- }
230
- }
231
-
232
- .LuiHeaderV2-badge {
233
- display: block;
234
- text-align: center;
235
- border-radius: 50%;
236
- background: #cc0000;
237
- color: white;
238
- }
@@ -1,172 +0,0 @@
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
- }