@linzjs/lui 18.3.1 → 18.4.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/README.md +1 -1
- package/dist/components/LuiSplitButton/LuiSplitButton.d.ts +28 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +72 -0
- package/dist/index.js.map +1 -1
- package/dist/lui.css +108 -0
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +71 -1
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiSplitButton/LuiSplitButton.scss +77 -0
- package/dist/scss/base.scss +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@use '../../Elements/Buttons/buttons.scss' as buttons;
|
|
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/Variables/MiscVars.scss' as misc;
|
|
6
|
+
@use "../../Foundation/Utilities" as *;
|
|
7
|
+
|
|
8
|
+
.lui-split-button {
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: 1px;
|
|
11
|
+
|
|
12
|
+
&-primary-btn {
|
|
13
|
+
border-radius: misc.$borderRadius 0px 0px misc.$borderRadius;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.popup-toggle-button {
|
|
17
|
+
@include buttons.button-builder(#fff, colors.$sea, colors.$sea);
|
|
18
|
+
@include buttons.button-states-builder(
|
|
19
|
+
#fff,
|
|
20
|
+
colors.$primary-hover-btn,
|
|
21
|
+
colors.$primary-hover-btn,
|
|
22
|
+
buttons.$reversed-btn-active-txt,
|
|
23
|
+
colors.$primary-active-btn,
|
|
24
|
+
colors.$primary-active-btn
|
|
25
|
+
);
|
|
26
|
+
align-items: center;
|
|
27
|
+
border-radius: 0px misc.$borderRadius misc.$borderRadius 0px;
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
|
|
31
|
+
.lui-expand-icon {
|
|
32
|
+
color: colors.$white;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Here are styles for lui split button menu
|
|
39
|
+
*/
|
|
40
|
+
.lui-split-button-menu {
|
|
41
|
+
z-index: 900;
|
|
42
|
+
width: 92vw;
|
|
43
|
+
overflow-y: scroll;
|
|
44
|
+
|
|
45
|
+
@include breakpoint(sm) {
|
|
46
|
+
overflow: visible;
|
|
47
|
+
height: auto;
|
|
48
|
+
width: 200px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
color: colors.$base-type-color;
|
|
52
|
+
@include fonts.font-light;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.lui-split-button-menuItem {
|
|
56
|
+
padding: spacing.$unit-xs spacing.$unit-sm spacing.$unit-xs spacing.$unit-xs;
|
|
57
|
+
display: flex;
|
|
58
|
+
line-height: 1;
|
|
59
|
+
transition: all 0.2s ease-in-out;
|
|
60
|
+
fill: colors.$fuscous;
|
|
61
|
+
|
|
62
|
+
&:hover {
|
|
63
|
+
background-color: colors.$polar;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.lui-split-button-menuItemText {
|
|
68
|
+
@include fonts.font-regular();
|
|
69
|
+
color: colors.$charcoal;
|
|
70
|
+
margin: 0;
|
|
71
|
+
padding-left: spacing.$unit-lg;
|
|
72
|
+
|
|
73
|
+
//if no icon, give it 4px to align with the group header
|
|
74
|
+
&--noPadding {
|
|
75
|
+
padding-left: spacing.$unit-xxs;
|
|
76
|
+
}
|
|
77
|
+
}
|
package/dist/scss/base.scss
CHANGED
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
@forward './Components/LuiAccordicard/LuiAccordicard.scss';
|
|
82
82
|
@forward './Components/LuiSideMenu/LuiSideMenu.scss';
|
|
83
83
|
@forward './Components/LuiSidePanel/LuiSidePanel.scss';
|
|
84
|
+
@forward './Components/LuiSplitButton/LuiSplitButton.scss';
|
|
84
85
|
|
|
85
86
|
// The following have scss next to the component that is yet to be hooked up with the react implementation
|
|
86
87
|
// LuiTabs
|
|
@@ -91,4 +92,3 @@
|
|
|
91
92
|
|
|
92
93
|
// LuiMenuTrigger
|
|
93
94
|
@forward './Components/LuiMenuTrigger/LuiMenuTrigger.scss';
|
|
94
|
-
|
package/package.json
CHANGED