@smwb/ui-styles 1.4.2 → 1.4.3
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.
|
@@ -91,8 +91,13 @@
|
|
|
91
91
|
font-size: 0.75rem;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
// A color repaints the neutral filled/outlined rules above. The guard mirrors
|
|
95
|
+
// theirs, so the color class outranks them, and the tie with their :hover /
|
|
96
|
+
// :active / .smwb-selected rules goes to these later rules: a selected filled
|
|
97
|
+
// chip (ChipGroup's selected option) keeps the color fill and on-color label.
|
|
98
|
+
// Disabled chips fall outside the guard and keep the disabled look.
|
|
94
99
|
.smui-chip-color(@n; @c; @on) {
|
|
95
|
-
&.smwb-chip_color-@{n} {
|
|
100
|
+
&.smwb-chip_color-@{n}:not(&.smwb-disabled) {
|
|
96
101
|
&.smwb-filled {
|
|
97
102
|
background-color: @c;
|
|
98
103
|
color: @on;
|
|
@@ -105,10 +110,10 @@
|
|
|
105
110
|
filter: brightness(0.88);
|
|
106
111
|
}
|
|
107
112
|
}
|
|
113
|
+
// Recolor only: the border width and the hover/active/selected fills stay neutral.
|
|
108
114
|
&.smwb-outlined {
|
|
109
115
|
color: @c;
|
|
110
|
-
border:
|
|
111
|
-
background: transparent;
|
|
116
|
+
border-color: @c;
|
|
112
117
|
}
|
|
113
118
|
}
|
|
114
119
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
.smwb-overflow-menu {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// The modifier lands on the menu item next to `smwb-menu__item--disabled`, and both set
|
|
5
|
+
// `color` with a single class: without the `:not()` whichever stylesheet loads later would
|
|
6
|
+
// decide whether a disabled danger item looks disabled. It must, in any load order.
|
|
7
|
+
&__item--danger:not(.smwb-menu__item--disabled) {
|
|
5
8
|
color: var(--smui-errorColor);
|
|
6
9
|
}
|
|
7
10
|
}
|
package/less/components.less
CHANGED
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
@import "./components/button/button.less";
|
|
4
4
|
@import "./components/checkbox/checkbox.less";
|
|
5
5
|
@import "./components/chip/chip.less";
|
|
6
|
+
@import "./components/chipGroup/chipGroup.less";
|
|
6
7
|
@import "./components/floatingButton/floatingButton.less";
|
|
7
8
|
@import "./components/fileDrop/fileDrop.less";
|
|
8
9
|
@import "./components/fileInput/fileInput.less";
|
|
9
10
|
@import "./components/modal/modal.less";
|
|
11
|
+
@import "./components/confirmDialog/confirmDialog.less";
|
|
12
|
+
@import "./components/saveAssetDialog/saveAssetDialog.less";
|
|
10
13
|
@import "./components/progressIndicator/progressIndicator.less";
|
|
11
14
|
@import "./components/radioButton/radioButton.less";
|
|
12
15
|
@import "./components/sidebar/sidebar.less";
|
|
@@ -15,14 +18,19 @@
|
|
|
15
18
|
@import "./components/textField/textField.less";
|
|
16
19
|
@import "./components/toggle/toggle.less";
|
|
17
20
|
@import "./components/menu/menu.less";
|
|
21
|
+
@import "./components/overflowMenu/overflowMenu.less";
|
|
18
22
|
@import "./components/tabs/tabs.less";
|
|
19
23
|
@import "./components/tabs/tab/tab.less";
|
|
20
24
|
@import "./components/slider/slider.less";
|
|
25
|
+
@import "./components/valueSlider/valueSlider.less";
|
|
21
26
|
@import "./components/selectField/selectField.less";
|
|
22
27
|
@import "./components/ripple/ripple.less";
|
|
23
28
|
@import "./components/list/list.less";
|
|
24
29
|
@import "./components/imagesList/imagesList.less";
|
|
25
30
|
@import "./components/imagesList/imagesListItem/imagesListItem.less";
|
|
31
|
+
@import "./components/lazyImage/lazyImage.less";
|
|
32
|
+
@import "./components/thumbCard/thumbCard.less";
|
|
33
|
+
@import "./components/assetGrid/assetGrid.less";
|
|
26
34
|
@import "./components/grid/grid.less";
|
|
27
35
|
@import "./components/tooltip/tooltip.less";
|
|
28
36
|
@import "./components/sheet/sheet.less";
|
package/less/variables.less
CHANGED
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
--smui-chipsOutlinedBorder: @chipsOutlinedBorder;
|
|
75
75
|
--smui-chipsHoverBg: @chipsHoverBg;
|
|
76
76
|
--smui-chipsActiveBg: @chipsActiveBg;
|
|
77
|
+
--smui-chipsSelectedBg: @chipsSelectedBg;
|
|
77
78
|
|
|
78
79
|
--smui-menuTextColor: @menuTextColor;
|
|
79
80
|
--smui-menuDividerColor: @menuDividerColor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smwb/ui-styles",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "Framework-agnostic LESS design tokens and component styles (smwb-*) shared by the @smwb UI libraries. Prebuilt aggregate CSS lives in @smwb/ui-css.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"./less/*": "./less/*",
|
|
19
19
|
"./package.json": "./package.json"
|
|
20
20
|
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"lint": "node scripts/check-aggregate.mjs"
|
|
23
|
+
},
|
|
21
24
|
"homepage": "https://sourcecraft.dev/elfenmail/ui",
|
|
22
25
|
"repository": {
|
|
23
26
|
"type": "git",
|