@linzjs/lui 17.0.0 → 17.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.
@@ -1,5 +1,7 @@
1
1
  @use "../../Foundation/Variables/ColorVars.scss" as colors;
2
- @use '../../Foundation/Variables/FontVars.scss' as fonts;
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,120 @@
1
+ @use '../../Foundation/Variables/FormVars' as forms;
2
+ @use '../../Foundation/Variables/FontVars' as fonts;
3
+ @use '../../Foundation/Variables/LuiColors' as colors;
4
+ @use '../../Foundation/Variables/SpacingVars' as spacing;
5
+ @use "../../Foundation/Utilities/BoxShadow" as shadow;
6
+
7
+ .LuiSearchInput {
8
+ @include shadow.drop-shadow($size: "sm");
9
+
10
+ background: colors.$snow;
11
+ border-radius: 0 3px 3px 0;
12
+ margin: 0;
13
+ max-width: 600px;
14
+ border: none;
15
+
16
+ &:active,
17
+ &:focus,
18
+ &:focus-within {
19
+ @include shadow.drop-shadow("md");
20
+ }
21
+ }
22
+
23
+ .LuiSearchInput-inputWrapper {
24
+ position: relative;
25
+ display: block;
26
+ border: none;
27
+ }
28
+
29
+ .LuiSearchInput-input {
30
+ @include fonts.font-regular();
31
+ @include forms.formPlaceholder;
32
+ margin-bottom: 0;
33
+ height: spacing.$unit-xl;
34
+ color: colors.$charcoal;
35
+ caret-color: colors.$charcoal;
36
+ border: none;
37
+ padding: {
38
+ top: spacing.$unit-sm;
39
+ right: spacing.$unit-lg;
40
+ bottom: spacing.$unit-sm;
41
+ left: spacing.$unit-xl;
42
+ }
43
+ width: 100%;
44
+
45
+ &:focus-visible {
46
+ outline-width: 0;
47
+ }
48
+ }
49
+
50
+ .LuiSearchInput-startIconPosition {
51
+ position: absolute;
52
+ left: 7px;
53
+ top: 17%;
54
+
55
+ svg {
56
+ fill: colors.$fuscous;
57
+ }
58
+ }
59
+
60
+ .LuiSearchInput-iconPosition {
61
+ position: absolute;
62
+ right: 7px;
63
+ top: 17%;
64
+
65
+ svg {
66
+ fill: colors.$fuscous;
67
+ }
68
+ }
69
+
70
+ .LuiSearchInput-results {
71
+ max-height: 275px;
72
+ overflow: auto;
73
+ }
74
+
75
+ .LuiSearchInput-resultEntry {
76
+ @include fonts.font-regular();
77
+ font-size: 16px;
78
+ cursor: pointer;
79
+ padding: 5px 20px;
80
+ line-height: 24px;
81
+ color: colors.$charcoal;
82
+ height: 40px;
83
+
84
+ &.selected {
85
+ background-color: colors.$polar;
86
+ }
87
+ }
88
+
89
+ .LuiSearchInput-resultHeader {
90
+ @include fonts.font-regular();
91
+ font-size: 14px;
92
+ padding: 5px 20px;
93
+ line-height: 18px;
94
+ letter-spacing: 0.02em;
95
+ color: colors.$fuscous;
96
+ }
97
+
98
+ .LuiSearchInput-disclaimer {
99
+ @include fonts.font-regular();
100
+ font-size: 14px;
101
+ padding: 5px 20px;
102
+ line-height: 20px;
103
+ color: colors.$fuscous;
104
+ }
105
+
106
+ .LuiSearchInput-loader {
107
+ padding: 5px 20px;
108
+ }
109
+
110
+ .LuiSearchInput-groupSeparator {
111
+ margin-left: 20px;
112
+ margin-right: 20px;
113
+ background-color: #C4C4C4;
114
+ }
115
+
116
+ .LuiSearchInput-resultSeparator {
117
+ margin-left: 10px;
118
+ margin-right: 10px;
119
+ background-color: colors.$lily;
120
+ }
@@ -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.0.0",
2
+ "version": "17.1.0",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",
@@ -147,6 +147,7 @@
147
147
  "clsx": "^1.1.0",
148
148
  "formik": "^2.1.4",
149
149
  "lottie-web": "^5.9.1",
150
+ "react-loading-skeleton": "^3.1.0",
150
151
  "react-modal": "^3.11.2",
151
152
  "react-query": "2.26.3",
152
153
  "react-select": "^5.1.0",