@linzjs/lui 11.1.8 → 11.3.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 +28 -0
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.d.ts +4 -0
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.stories.d.ts +4 -0
- package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.d.ts +7 -0
- package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.stories.d.ts +5 -0
- package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.test.d.ts +1 -0
- package/dist/components/LuiForms/LuiFormSection/LuiHelpInfo/LuiHelpInfo.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/lui.cjs.development.js +45 -6
- package/dist/lui.cjs.development.js.map +1 -1
- package/dist/lui.cjs.production.min.js +1 -1
- package/dist/lui.cjs.production.min.js.map +1 -1
- package/dist/lui.css +58 -1
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +45 -7
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiFormSection/LuiFormSectionHeader.scss +46 -0
- package/dist/scss/Components/LuiFormSection/LuiHelpInfo/LuiHelpInfo.scss +16 -0
- package/dist/scss/Foundation/Variables/FormVars.scss +18 -3
- package/dist/scss/Foundation/Variables/_LuiColors.scss +2 -1
- package/dist/scss/base.scss +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@use '../../Foundation/Variables/LuiColors' as luiColors;
|
|
2
|
+
@use '../../Foundation/Variables/SpacingVars' as spacing;
|
|
3
|
+
@use '../../Foundation/Variables/BreakpointVars' as breakpoints;
|
|
4
|
+
@use "../../Foundation/Utilities" as *;
|
|
5
|
+
|
|
6
|
+
.LuiFormSectionHeader {
|
|
7
|
+
margin-top: spacing.$unit-md;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
padding: 1rem;
|
|
11
|
+
background-color: luiColors.$white;
|
|
12
|
+
|
|
13
|
+
@include breakpoint(md) {
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
background-color: inherit;
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.LuiFormSectionHeader-header {
|
|
21
|
+
width: 100%;
|
|
22
|
+
padding-right: spacing.$unit-sm;
|
|
23
|
+
|
|
24
|
+
@include breakpoint(md) {
|
|
25
|
+
width: 30%;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.LuiFormSectionHeader-heading {
|
|
30
|
+
margin: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.LuiFormSectionHeader-details {
|
|
34
|
+
padding: 0;
|
|
35
|
+
width: 100%;
|
|
36
|
+
background-color: luiColors.$white;
|
|
37
|
+
flex-grow: 2;
|
|
38
|
+
|
|
39
|
+
@include breakpoint(md) {
|
|
40
|
+
width: 70%;
|
|
41
|
+
border-radius: 5px;
|
|
42
|
+
margin-top: spacing.$unit-sm;
|
|
43
|
+
background-color: luiColors.$white;
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use '../../../Foundation/Variables/LuiColors' as luiColors;
|
|
2
|
+
@use '../../../Foundation/Variables/SpacingVars' as spacing;
|
|
3
|
+
|
|
4
|
+
.HelpInfo {
|
|
5
|
+
margin: 0;
|
|
6
|
+
display: flex;
|
|
7
|
+
color: luiColors.$fuscous;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.HelpInfo-icon {
|
|
11
|
+
transform: rotate(180deg);
|
|
12
|
+
|
|
13
|
+
margin-left: spacing.$unit-sm;
|
|
14
|
+
margin-right: spacing.$unit-xs;
|
|
15
|
+
fill: luiColors.$fuscous;
|
|
16
|
+
}
|
|
@@ -3,17 +3,32 @@
|
|
|
3
3
|
@use './SpacingVars.scss' as spacing;
|
|
4
4
|
@use './ColorVars.scss' as colors;
|
|
5
5
|
@use './FontVars.scss' as fonts;
|
|
6
|
+
@use '../Utilities/REM.scss' as rem;
|
|
6
7
|
|
|
7
8
|
$label-spacing: spacing.$unit-md; // 24px
|
|
8
9
|
$input-spacing: spacing.$unit-xs; // 8px
|
|
9
10
|
|
|
10
|
-
$label-font-size: 14px;
|
|
11
|
-
$label-line-height:
|
|
11
|
+
$label-font-size: rem.rem(14px);
|
|
12
|
+
$label-line-height: spacing.$unit-md;
|
|
12
13
|
|
|
13
|
-
@mixin
|
|
14
|
+
@mixin formLabel {
|
|
14
15
|
@include fonts.font-semibold();
|
|
16
|
+
margin-bottom: $input-spacing;
|
|
15
17
|
font-size: $label-font-size;
|
|
16
18
|
line-height: $label-line-height;
|
|
19
|
+
color: colors.$charcoal;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin formPlaceholder {
|
|
23
|
+
&::placeholder {
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
color: colors.$input-placeholder;
|
|
26
|
+
opacity: 1; // Because firefox is cool
|
|
27
|
+
|
|
28
|
+
.isDisabled & {
|
|
29
|
+
color: colors.$input-placeholder-when-disabled;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
17
32
|
}
|
|
18
33
|
|
|
19
34
|
$input-width: spacing.$unit-md;
|
|
@@ -123,7 +123,8 @@ $base-type-color: $charcoal;
|
|
|
123
123
|
|
|
124
124
|
// Icons, inputs & radio/checkboxes
|
|
125
125
|
$input-text: $charcoal;
|
|
126
|
-
$input-placeholder: $
|
|
126
|
+
$input-placeholder: $fuscous;
|
|
127
|
+
$input-placeholder-when-disabled: $gray;
|
|
127
128
|
$base-icon-color: $sea;
|
|
128
129
|
$disabled-color: $gray;
|
|
129
130
|
$disabled-color-dark: $gray;
|
package/dist/scss/base.scss
CHANGED
|
@@ -59,6 +59,8 @@
|
|
|
59
59
|
@forward "./Components/LOLCommonMenu/LOLFirmSwitcherMenu.scss";
|
|
60
60
|
@forward "./Components/Spinner/spinner.scss";
|
|
61
61
|
@forward "./Components/LuiFormElements/LuiFileInputBox.scss";
|
|
62
|
+
@forward "./Components/LuiFormSection/LuiFormSectionHeader.scss";
|
|
63
|
+
@forward "./Components/LuiFormSection/LuiHelpInfo/LuiHelpInfo.scss";
|
|
62
64
|
|
|
63
65
|
// The following have scss next to the component that is yet to be hooked up with the react implementation
|
|
64
66
|
// LuiTabs
|
package/package.json
CHANGED