@linzjs/lui 17.0.0 → 17.1.2
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 +16 -0
- package/dist/assets/icons/left_col.svg +1 -0
- package/dist/assets/icons/pop_back.svg +1 -0
- package/dist/assets/svg-content.tsx +12 -0
- package/dist/components/LuiSearchInput/LuiSearchInput.d.ts +24 -0
- package/dist/components/LuiSearchInput/ResultsDisplay.d.ts +13 -0
- package/dist/components/LuiSelectMenu/LuiSelectDataMenu.d.ts +15 -0
- package/dist/components/LuiSelectMenu/LuiSelectMenu.d.ts +20 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +369 -7
- package/dist/index.js.map +1 -1
- package/dist/lui.css +270 -1
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +365 -9
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/ContextMenu/context-menu.scss +118 -3
- package/dist/scss/Components/LuiSearchInput/LuiSearchInput.scss +165 -0
- package/dist/scss/base.scss +1 -0
- package/package.json +10 -8
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@use "../../Foundation/Variables/ColorVars.scss" as colors;
|
|
2
|
-
@use
|
|
2
|
+
@use "../../Foundation/Variables/FontVars.scss" as fonts;
|
|
3
|
+
@use "../../Foundation/Variables/SpacingVars.scss"as spacing;
|
|
4
|
+
@use "../../Foundation/Utilities" as *;
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Here is where we can override the styles of react-menu
|
|
@@ -14,9 +16,122 @@
|
|
|
14
16
|
color: colors.$base-type-color;
|
|
15
17
|
@include fonts.font-light;
|
|
16
18
|
|
|
17
|
-
a[role="menuitem"] {
|
|
19
|
+
div, a[role="menuitem"] {
|
|
18
20
|
text-decoration: none;
|
|
19
21
|
color: colors.$base-type-color;
|
|
20
22
|
@include fonts.font-light;
|
|
21
23
|
}
|
|
22
|
-
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Here are styles for lui select menu
|
|
28
|
+
*/
|
|
29
|
+
.lui-select-menu.szh-menu-container {
|
|
30
|
+
@include breakpoint(sm) {
|
|
31
|
+
position: absolute;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.lui-select-menu.szh-menu {
|
|
36
|
+
z-index: 900;
|
|
37
|
+
width: 92vw;
|
|
38
|
+
overflow-y: scroll;
|
|
39
|
+
|
|
40
|
+
@include breakpoint(sm) {
|
|
41
|
+
overflow: visible;
|
|
42
|
+
height: auto;
|
|
43
|
+
width: 240px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
color: colors.$base-type-color;
|
|
47
|
+
@include fonts.font-light;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.lui-select-menuItem {
|
|
51
|
+
padding: spacing.$unit-xs spacing.$unit-sm spacing.$unit-xs spacing.$unit-xs;
|
|
52
|
+
display: flex;
|
|
53
|
+
line-height: 1;
|
|
54
|
+
transition: all 0.2s ease-in-out;
|
|
55
|
+
fill: colors.$fuscous;
|
|
56
|
+
|
|
57
|
+
&:hover {
|
|
58
|
+
background-color: colors.$polar;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.lui-select-menuItem--error {
|
|
64
|
+
p {
|
|
65
|
+
color: colors.$error;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.LuiIcon {
|
|
69
|
+
fill: colors.$error;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.lui-select-menuItemText {
|
|
74
|
+
@include fonts.font-regular();
|
|
75
|
+
color: colors.$charcoal;
|
|
76
|
+
margin: 0;
|
|
77
|
+
padding-left: spacing.$unit-lg;
|
|
78
|
+
|
|
79
|
+
//if no icon, give it 4px to align with the group header
|
|
80
|
+
&--noPadding {
|
|
81
|
+
padding-left: spacing.$unit-xxs;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.lui-select-icon+.lui-select-menuItemText {
|
|
86
|
+
padding-left: spacing.$unit-xs;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.lui-select-menu-group {
|
|
90
|
+
height: 32px;
|
|
91
|
+
color: colors.$fuscous;
|
|
92
|
+
padding-left: 0.75rem;
|
|
93
|
+
text-transform: none;
|
|
94
|
+
@include fonts.font-semibold();
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.lui-select-submenu {
|
|
98
|
+
flex: 1;
|
|
99
|
+
div[role="menuitem"] {
|
|
100
|
+
padding: spacing.$unit-xs spacing.$unit-xs spacing.$unit-xs 2.5rem;
|
|
101
|
+
text-decoration: none;
|
|
102
|
+
@include fonts.font-regular();
|
|
103
|
+
height: 40px;
|
|
104
|
+
}
|
|
105
|
+
//overwrite the hover color
|
|
106
|
+
.szh-menu__item--hover {
|
|
107
|
+
background-color: colors.$polar;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
.lui-select-submenu-with-icon {
|
|
114
|
+
flex: 1;
|
|
115
|
+
// width: 200px;
|
|
116
|
+
div[role="menuitem"] {
|
|
117
|
+
padding-left: 0px;
|
|
118
|
+
text-decoration: none;
|
|
119
|
+
@include fonts.font-regular();
|
|
120
|
+
height: 40px;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
.lui-select-divider {
|
|
126
|
+
margin: 0.25rem;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.lui-menu-sub-header {
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.lui-menu-sub-header-icon {
|
|
135
|
+
margin: spacing.$unit-xs;
|
|
136
|
+
fill: colors.$fuscous;
|
|
137
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
@use '../../Foundation/Variables/BreakpointVars' as breakpoints;
|
|
2
|
+
@use '../../Foundation/Variables/FormVars' as forms;
|
|
3
|
+
@use '../../Foundation/Variables/FontVars' as fonts;
|
|
4
|
+
@use '../../Foundation/Variables/LuiColors' as colors;
|
|
5
|
+
@use '../../Foundation/Variables/SpacingVars' as spacing;
|
|
6
|
+
@use '../../Foundation/Utilities/BoxShadow' as shadow;
|
|
7
|
+
|
|
8
|
+
@use "sass:math";
|
|
9
|
+
|
|
10
|
+
$breakpoint: 599px;
|
|
11
|
+
$input-wrapper-height-sm: 48px;
|
|
12
|
+
$input-wrapper-height-lg: 56px;
|
|
13
|
+
|
|
14
|
+
.LuiSearchInput {
|
|
15
|
+
@include shadow.drop-shadow($size: "sm");
|
|
16
|
+
|
|
17
|
+
background: colors.$snow;
|
|
18
|
+
border-radius: 0 3px 3px 0;
|
|
19
|
+
margin: 0;
|
|
20
|
+
max-width: 600px;
|
|
21
|
+
border: none;
|
|
22
|
+
|
|
23
|
+
transition: box-shadow 0.3s ease-in-out, border-radius 0.3s ease-in-out;
|
|
24
|
+
|
|
25
|
+
&:active,
|
|
26
|
+
&:focus,
|
|
27
|
+
&:focus-within {
|
|
28
|
+
@include shadow.drop-shadow("md");
|
|
29
|
+
border-radius: 3px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.LuiSearchInput-inputWrapper {
|
|
34
|
+
position: relative;
|
|
35
|
+
display: block;
|
|
36
|
+
border: none;
|
|
37
|
+
width: auto;
|
|
38
|
+
margin-left: 3px;
|
|
39
|
+
margin-right: 3px;
|
|
40
|
+
|
|
41
|
+
min-height: $input-wrapper-height-lg;
|
|
42
|
+
|
|
43
|
+
@media (max-height: $breakpoint) {
|
|
44
|
+
min-height: $input-wrapper-height-sm
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.LuiSearchInput-input {
|
|
49
|
+
@include fonts.font-regular();
|
|
50
|
+
@include forms.formPlaceholder;
|
|
51
|
+
|
|
52
|
+
$input-height: 24px;
|
|
53
|
+
|
|
54
|
+
height: $input-height;
|
|
55
|
+
color: colors.$charcoal;
|
|
56
|
+
caret-color: colors.$charcoal;
|
|
57
|
+
border: none;
|
|
58
|
+
width: 100%;
|
|
59
|
+
margin-top: 16px;
|
|
60
|
+
padding-left: 48px;
|
|
61
|
+
padding-right: 48px;
|
|
62
|
+
|
|
63
|
+
@media (max-height: $breakpoint) {
|
|
64
|
+
margin-top: math.div($input-wrapper-height-sm - $input-height, 2);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:focus-visible {
|
|
68
|
+
outline-width: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.LuiSearchInput-startIconPosition {
|
|
73
|
+
position: absolute;
|
|
74
|
+
left: 15px;
|
|
75
|
+
top: 16px;
|
|
76
|
+
|
|
77
|
+
$icon-height: 24px;
|
|
78
|
+
@media (max-height: $breakpoint) {
|
|
79
|
+
top: math.div($input-wrapper-height-sm - $icon-height, 2);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
svg {
|
|
83
|
+
fill: colors.$fuscous;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.LuiSearchInput-iconPosition {
|
|
88
|
+
position: absolute;
|
|
89
|
+
right: 15px;
|
|
90
|
+
top: 16px;
|
|
91
|
+
|
|
92
|
+
$icon-height: 24px;
|
|
93
|
+
@media (max-height: $breakpoint) {
|
|
94
|
+
top: math.div($input-wrapper-height-sm - $icon-height, 2);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:hover {
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
svg {
|
|
102
|
+
fill: colors.$fuscous;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.LuiSearchInput-results {
|
|
107
|
+
max-height: 275px;
|
|
108
|
+
overflow: auto;
|
|
109
|
+
|
|
110
|
+
@media (max-height: breakpoints.$breakpoint2) {
|
|
111
|
+
max-height: 218px;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.LuiSearchInput-resultEntry {
|
|
116
|
+
@include fonts.font-regular();
|
|
117
|
+
font-size: 16px;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
padding: 5px 20px;
|
|
120
|
+
line-height: 24px;
|
|
121
|
+
color: colors.$charcoal;
|
|
122
|
+
min-height: 40px;
|
|
123
|
+
|
|
124
|
+
&.selected {
|
|
125
|
+
background-color: colors.$polar;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.LuiSearchInput-resultHeader {
|
|
130
|
+
@include fonts.font-regular();
|
|
131
|
+
font-size: 14px;
|
|
132
|
+
padding: 5px 20px;
|
|
133
|
+
line-height: 18px;
|
|
134
|
+
letter-spacing: 0.02em;
|
|
135
|
+
color: colors.$fuscous;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.LuiSearchInput-disclaimer {
|
|
139
|
+
@include fonts.font-regular();
|
|
140
|
+
font-size: 14px;
|
|
141
|
+
padding: 5px 20px;
|
|
142
|
+
line-height: 20px;
|
|
143
|
+
color: colors.$fuscous;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.LuiSearchInput-loader {
|
|
147
|
+
padding: 5px 20px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.LuiSearchInput-groupSeparator {
|
|
151
|
+
margin-left: 20px;
|
|
152
|
+
margin-right: 20px;
|
|
153
|
+
background-color: #C4C4C4;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.LuiSearchInput-resultSeparator {
|
|
157
|
+
margin-left: 10px;
|
|
158
|
+
margin-right: 10px;
|
|
159
|
+
background-color: colors.$lily;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.LuiSearchInput-skeletonItem {
|
|
163
|
+
margin: 9px 0;
|
|
164
|
+
height: 20px;
|
|
165
|
+
}
|
package/dist/scss/base.scss
CHANGED
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
@forward "./Components/LuiFormElements/LuiSelectInput/LuiSelectInput.scss";
|
|
66
66
|
@forward "./Components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.scss";
|
|
67
67
|
@forward "./Components/LuiFormElements/LuiTextInput/LuiTextInput.scss";
|
|
68
|
+
@forward "./Components/LuiSearchInput/LuiSearchInput.scss";
|
|
68
69
|
@forward "./Components/LuiForms/LuiComboSelect/LuiComboSelect.scss";
|
|
69
70
|
@forward "./Components/LuiFormElements/LuiFileInputBox.scss";
|
|
70
71
|
@forward "./Components/LuiFormSection/LuiFormSectionHeader.scss";
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "17.
|
|
2
|
+
"version": "17.1.2",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
@@ -79,16 +79,16 @@
|
|
|
79
79
|
"@semantic-release/changelog": "^5.0.1",
|
|
80
80
|
"@semantic-release/git": "^9.0.0",
|
|
81
81
|
"@size-limit/preset-small-lib": "^7.0.8",
|
|
82
|
-
"@storybook/addon-a11y": "^6.
|
|
83
|
-
"@storybook/addon-docs": "^6.
|
|
84
|
-
"@storybook/addon-essentials": "^6.
|
|
82
|
+
"@storybook/addon-a11y": "^6.5.0",
|
|
83
|
+
"@storybook/addon-docs": "^6.5.0",
|
|
84
|
+
"@storybook/addon-essentials": "^6.5.0",
|
|
85
85
|
"@storybook/addon-info": "^5.3.21",
|
|
86
|
-
"@storybook/addon-links": "^6.
|
|
86
|
+
"@storybook/addon-links": "^6.5.0",
|
|
87
87
|
"@storybook/addon-storysource": "6.4.19",
|
|
88
|
-
"@storybook/addons": "^6.
|
|
88
|
+
"@storybook/addons": "^6.5.0",
|
|
89
89
|
"@storybook/preset-scss": "^1.0.3",
|
|
90
|
-
"@storybook/react": "^6.
|
|
91
|
-
"@storybook/theming": "^6.
|
|
90
|
+
"@storybook/react": "^6.5.0",
|
|
91
|
+
"@storybook/theming": "^6.5.0",
|
|
92
92
|
"@testing-library/jest-dom": "^5.8.0",
|
|
93
93
|
"@testing-library/react": "^10.0.4",
|
|
94
94
|
"@testing-library/user-event": "^10.4.0",
|
|
@@ -145,8 +145,10 @@
|
|
|
145
145
|
"@szhsin/react-menu": "^2.3.3",
|
|
146
146
|
"camelcase": "^6.0.0",
|
|
147
147
|
"clsx": "^1.1.0",
|
|
148
|
+
"container-query-polyfill": "0.1.2",
|
|
148
149
|
"formik": "^2.1.4",
|
|
149
150
|
"lottie-web": "^5.9.1",
|
|
151
|
+
"react-loading-skeleton": "^3.1.0",
|
|
150
152
|
"react-modal": "^3.11.2",
|
|
151
153
|
"react-query": "2.26.3",
|
|
152
154
|
"react-select": "^5.1.0",
|