@smwb/ui-css 2.5.0 → 2.7.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/dist/ui.css +215 -1
- package/package.json +2 -2
package/dist/ui.css
CHANGED
|
@@ -744,6 +744,63 @@
|
|
|
744
744
|
color: var(--smui-infoColor);
|
|
745
745
|
border-color: var(--smui-infoColor);
|
|
746
746
|
}
|
|
747
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled {
|
|
748
|
+
color: var(--smwb-chip-custom-text-color, var(--smwb-chip-custom-on-color, var(--smui-primaryTextColor)));
|
|
749
|
+
}
|
|
750
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled,
|
|
751
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled:hover,
|
|
752
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled:active,
|
|
753
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled.smwb-selected {
|
|
754
|
+
background-color: var(--smwb-chip-custom-fill, var(--smui-chipsBg));
|
|
755
|
+
}
|
|
756
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled .smwb-chip__delete-icon {
|
|
757
|
+
border-radius: 50%;
|
|
758
|
+
}
|
|
759
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled .smwb-chip__delete-icon svg,
|
|
760
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled .smwb-chip__delete-icon svg:hover {
|
|
761
|
+
fill: currentColor;
|
|
762
|
+
}
|
|
763
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled .smwb-chip__delete-icon:hover {
|
|
764
|
+
background-color: color-mix(in srgb, currentColor 16%, transparent);
|
|
765
|
+
}
|
|
766
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-outlined {
|
|
767
|
+
color: var(--smwb-chip-custom-text-color, var(--smui-primaryTextColor));
|
|
768
|
+
border-color: var(--smwb-chip-custom-color);
|
|
769
|
+
}
|
|
770
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-outlined:hover {
|
|
771
|
+
background-color: color-mix(in srgb, var(--smwb-chip-custom-color) 12%, transparent);
|
|
772
|
+
}
|
|
773
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-outlined:active,
|
|
774
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-outlined.smwb-selected {
|
|
775
|
+
background-color: color-mix(in srgb, var(--smwb-chip-custom-color) 20%, transparent);
|
|
776
|
+
}
|
|
777
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-outlined .smwb-chip__delete-icon svg {
|
|
778
|
+
fill: var(--smwb-chip-custom-text-color, var(--smui-chipsIconColor));
|
|
779
|
+
}
|
|
780
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-outlined .smwb-chip__delete-icon svg:hover {
|
|
781
|
+
fill: var(--smwb-chip-custom-text-color, var(--smui-chipsIconColorHover));
|
|
782
|
+
}
|
|
783
|
+
@supports (color: color(from red srgb r g b)) {
|
|
784
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled) {
|
|
785
|
+
--smwb-chip-custom-solid: color(from var(--smwb-chip-custom-color) srgb r g b / 1);
|
|
786
|
+
--smwb-chip-custom-pick: color(from var(--smwb-chip-custom-solid) srgb-linear clamp(0, (0.17913 - (0.2126 * r + 0.7152 * g + 0.0722 * b)) * 100000, 1) clamp(0, (0.17913 - (0.2126 * r + 0.7152 * g + 0.0722 * b)) * 100000, 1) clamp(0, (0.17913 - (0.2126 * r + 0.7152 * g + 0.0722 * b)) * 100000, 1) / 1);
|
|
787
|
+
--smwb-chip-custom-label: var(--smwb-chip-custom-text-color, var(--smwb-chip-custom-pick));
|
|
788
|
+
--smwb-chip-custom-away: color(from var(--smwb-chip-custom-label) srgb-linear clamp(0, (0.17913 - (0.2126 * r + 0.7152 * g + 0.0722 * b)) * 100000, 1) clamp(0, (0.17913 - (0.2126 * r + 0.7152 * g + 0.0722 * b)) * 100000, 1) clamp(0, (0.17913 - (0.2126 * r + 0.7152 * g + 0.0722 * b)) * 100000, 1) / 1);
|
|
789
|
+
}
|
|
790
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled {
|
|
791
|
+
color: var(--smwb-chip-custom-label);
|
|
792
|
+
}
|
|
793
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled,
|
|
794
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled.smwb-selected {
|
|
795
|
+
background-color: var(--smwb-chip-custom-solid);
|
|
796
|
+
}
|
|
797
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled:hover {
|
|
798
|
+
background-color: color-mix(in srgb, var(--smwb-chip-custom-solid), var(--smwb-chip-custom-away) 8%);
|
|
799
|
+
}
|
|
800
|
+
.smwb-chip.smwb-chip_custom-color:not(.smwb-chip.smwb-disabled).smwb-filled:active {
|
|
801
|
+
background-color: color-mix(in srgb, var(--smwb-chip-custom-solid), var(--smwb-chip-custom-away) 14%);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
747
804
|
.smwb-chip-group {
|
|
748
805
|
display: flex;
|
|
749
806
|
flex-wrap: wrap;
|
|
@@ -1622,6 +1679,88 @@
|
|
|
1622
1679
|
border-color: CanvasText;
|
|
1623
1680
|
}
|
|
1624
1681
|
}
|
|
1682
|
+
.smwb-identity-badge {
|
|
1683
|
+
--smwb-identity-badge-color: var(--smwb-identity-badge-accent, var(--smui-onSurfaceVariant));
|
|
1684
|
+
display: inline-flex;
|
|
1685
|
+
align-items: center;
|
|
1686
|
+
gap: 2px;
|
|
1687
|
+
flex: none;
|
|
1688
|
+
box-sizing: border-box;
|
|
1689
|
+
height: 18px;
|
|
1690
|
+
padding: 0 4px;
|
|
1691
|
+
vertical-align: middle;
|
|
1692
|
+
white-space: nowrap;
|
|
1693
|
+
border: 1px solid var(--smwb-identity-badge-color);
|
|
1694
|
+
border-radius: 4px;
|
|
1695
|
+
background-color: transparent;
|
|
1696
|
+
color: var(--smwb-identity-badge-color);
|
|
1697
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
1698
|
+
font-size: 11px;
|
|
1699
|
+
font-weight: 500;
|
|
1700
|
+
line-height: 1;
|
|
1701
|
+
}
|
|
1702
|
+
.smwb-identity-badge__icon {
|
|
1703
|
+
display: inline-flex;
|
|
1704
|
+
flex: none;
|
|
1705
|
+
align-items: center;
|
|
1706
|
+
justify-content: center;
|
|
1707
|
+
width: 12px;
|
|
1708
|
+
height: 12px;
|
|
1709
|
+
overflow: hidden;
|
|
1710
|
+
}
|
|
1711
|
+
.smwb-identity-badge__icon > .smwb-icon__wrapper {
|
|
1712
|
+
width: 100%;
|
|
1713
|
+
height: 100%;
|
|
1714
|
+
}
|
|
1715
|
+
.smwb-identity-badge__icon svg,
|
|
1716
|
+
.smwb-identity-badge__icon img {
|
|
1717
|
+
max-width: 100%;
|
|
1718
|
+
max-height: 100%;
|
|
1719
|
+
}
|
|
1720
|
+
.smwb-identity-badge__icon .material-symbols-outlined {
|
|
1721
|
+
font-size: 12px !important;
|
|
1722
|
+
}
|
|
1723
|
+
.smwb-identity-badge-group {
|
|
1724
|
+
display: inline-flex;
|
|
1725
|
+
align-items: center;
|
|
1726
|
+
gap: 4px;
|
|
1727
|
+
vertical-align: middle;
|
|
1728
|
+
}
|
|
1729
|
+
.smwb-identity-badge-group__hidden {
|
|
1730
|
+
display: none;
|
|
1731
|
+
}
|
|
1732
|
+
button.smwb-identity-badge-group__surplus {
|
|
1733
|
+
position: relative;
|
|
1734
|
+
margin: 0;
|
|
1735
|
+
appearance: none;
|
|
1736
|
+
background-color: transparent;
|
|
1737
|
+
cursor: pointer;
|
|
1738
|
+
}
|
|
1739
|
+
button.smwb-identity-badge-group__surplus:focus-visible {
|
|
1740
|
+
outline: 2px solid var(--smui-primaryColor);
|
|
1741
|
+
outline-offset: 2px;
|
|
1742
|
+
}
|
|
1743
|
+
@media (pointer: coarse) {
|
|
1744
|
+
button.smwb-identity-badge-group__surplus::after {
|
|
1745
|
+
content: "";
|
|
1746
|
+
position: absolute;
|
|
1747
|
+
top: 50%;
|
|
1748
|
+
left: 50%;
|
|
1749
|
+
width: var(--smui-control-h-sm, 44px);
|
|
1750
|
+
height: var(--smui-control-h-sm, 44px);
|
|
1751
|
+
transform: translate(-50%, -50%);
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
@media (forced-colors: active) {
|
|
1755
|
+
.smwb-identity-badge {
|
|
1756
|
+
border-color: CanvasText;
|
|
1757
|
+
color: CanvasText;
|
|
1758
|
+
}
|
|
1759
|
+
button.smwb-identity-badge-group__surplus {
|
|
1760
|
+
border-color: ButtonText;
|
|
1761
|
+
color: ButtonText;
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1625
1764
|
.smwb-qr-code {
|
|
1626
1765
|
display: inline-flex;
|
|
1627
1766
|
flex-direction: column;
|
|
@@ -4057,12 +4196,18 @@
|
|
|
4057
4196
|
width: 100%;
|
|
4058
4197
|
box-sizing: border-box;
|
|
4059
4198
|
}
|
|
4199
|
+
.smwb-grid[hidden] {
|
|
4200
|
+
display: none;
|
|
4201
|
+
}
|
|
4060
4202
|
.smwb-grid__row {
|
|
4061
4203
|
display: flex;
|
|
4062
4204
|
flex-wrap: wrap;
|
|
4063
4205
|
width: 100%;
|
|
4064
4206
|
box-sizing: border-box;
|
|
4065
4207
|
}
|
|
4208
|
+
.smwb-grid__row[hidden] {
|
|
4209
|
+
display: none;
|
|
4210
|
+
}
|
|
4066
4211
|
.smwb-grid__row--spacing-1 {
|
|
4067
4212
|
width: calc(100% + (4px * 1));
|
|
4068
4213
|
margin-top: -4px;
|
|
@@ -4889,12 +5034,16 @@
|
|
|
4889
5034
|
align-items: center;
|
|
4890
5035
|
justify-content: center;
|
|
4891
5036
|
cursor: pointer;
|
|
5037
|
+
min-width: 0;
|
|
5038
|
+
max-width: 100%;
|
|
4892
5039
|
}
|
|
4893
5040
|
.smwb-tooltip__wrapper {
|
|
4894
5041
|
position: relative;
|
|
4895
5042
|
display: inline-flex;
|
|
4896
5043
|
align-items: center;
|
|
4897
5044
|
justify-content: center;
|
|
5045
|
+
min-width: 0;
|
|
5046
|
+
max-width: 100%;
|
|
4898
5047
|
}
|
|
4899
5048
|
@keyframes smwb-tooltip-in {
|
|
4900
5049
|
from {
|
|
@@ -8687,7 +8836,14 @@
|
|
|
8687
8836
|
--smwb-dag-view-status-warning: var(--smui-warningColor);
|
|
8688
8837
|
--smwb-dag-view-status-error: var(--smui-errorColor);
|
|
8689
8838
|
--smwb-dag-view-status-skipped: var(--smui-disabledTextColor);
|
|
8839
|
+
--smwb-dag-view-edge-flow-color: var(--smwb-dag-view-status-running);
|
|
8840
|
+
--smwb-dag-view-edge-flow-track-color: color-mix(in srgb, var(--smwb-dag-view-edge-flow-color) 45%, transparent);
|
|
8690
8841
|
--smwb-dag-view-dim-opacity: 0.35;
|
|
8842
|
+
--smwb-dag-view-edge-flow-width: 2.5px;
|
|
8843
|
+
--smwb-dag-view-edge-flow-duration: 0.6s;
|
|
8844
|
+
--smwb-dag-view-edge-glow-opacity: 0.25;
|
|
8845
|
+
--smwb-dag-view-node-glow-opacity: 0.6;
|
|
8846
|
+
--smwb-dag-view-node-pulse-duration: 1.4s;
|
|
8691
8847
|
--smwb-dag-view-node-border-style: solid;
|
|
8692
8848
|
position: relative;
|
|
8693
8849
|
width: 100%;
|
|
@@ -8747,6 +8903,45 @@
|
|
|
8747
8903
|
.smwb-dag-view__arrow--active {
|
|
8748
8904
|
fill: var(--smwb-dag-view-edge-active-color);
|
|
8749
8905
|
}
|
|
8906
|
+
.smwb-dag-view__edge--flowing {
|
|
8907
|
+
stroke: var(--smwb-dag-view-edge-flow-color);
|
|
8908
|
+
stroke-width: var(--smwb-dag-view-edge-flow-width);
|
|
8909
|
+
}
|
|
8910
|
+
.smwb-dag-view__arrow--flow {
|
|
8911
|
+
fill: var(--smwb-dag-view-edge-flow-color);
|
|
8912
|
+
}
|
|
8913
|
+
.smwb-dag-view__edge-glow {
|
|
8914
|
+
fill: none;
|
|
8915
|
+
stroke: var(--smwb-dag-view-edge-flow-color);
|
|
8916
|
+
stroke-width: calc(var(--smwb-dag-view-edge-flow-width) * 3);
|
|
8917
|
+
stroke-linecap: round;
|
|
8918
|
+
stroke-opacity: var(--smwb-dag-view-edge-glow-opacity);
|
|
8919
|
+
transition: opacity 0.12s;
|
|
8920
|
+
}
|
|
8921
|
+
.smwb-dag-view__edge-pulse {
|
|
8922
|
+
display: none;
|
|
8923
|
+
fill: none;
|
|
8924
|
+
stroke: var(--smwb-dag-view-edge-flow-color);
|
|
8925
|
+
stroke-width: calc(var(--smwb-dag-view-edge-flow-width) + 1px);
|
|
8926
|
+
stroke-linecap: round;
|
|
8927
|
+
stroke-dasharray: 6px 18px;
|
|
8928
|
+
transition: opacity 0.12s;
|
|
8929
|
+
}
|
|
8930
|
+
.smwb-dag-view__edge-glow--dimmed,
|
|
8931
|
+
.smwb-dag-view__edge-pulse--dimmed {
|
|
8932
|
+
opacity: var(--smwb-dag-view-dim-opacity);
|
|
8933
|
+
}
|
|
8934
|
+
.smwb-dag-view[data-animate-running="true"] .smwb-dag-view__node[data-status="running"]::before {
|
|
8935
|
+
content: "";
|
|
8936
|
+
position: absolute;
|
|
8937
|
+
inset: 0;
|
|
8938
|
+
z-index: -1;
|
|
8939
|
+
pointer-events: none;
|
|
8940
|
+
box-shadow: inset 0 0 0 1px var(--smwb-dag-view-node-glow-color, var(--smwb-dag-view-accent)), inset 0 0 12px 2px color-mix(in srgb, var(--smwb-dag-view-node-glow-color, var(--smwb-dag-view-accent)) calc(var(--smwb-dag-view-node-glow-opacity) * 100%), transparent);
|
|
8941
|
+
}
|
|
8942
|
+
.smwb-dag-view[data-animate-running="false"] .smwb-dag-view__node[data-status="running"] .smwb-dag-view__dot {
|
|
8943
|
+
animation: none;
|
|
8944
|
+
}
|
|
8750
8945
|
.smwb-dag-view__node {
|
|
8751
8946
|
--smwb-dag-view-accent: var(--smwb-dag-view-node-accent, var(--smwb-dag-view-status-idle));
|
|
8752
8947
|
--smwb-dag-view-border-style: var(--smwb-dag-view-node-border-style);
|
|
@@ -8904,7 +9099,17 @@
|
|
|
8904
9099
|
}
|
|
8905
9100
|
@media (prefers-reduced-motion: no-preference) {
|
|
8906
9101
|
.smwb-dag-view__node[data-status="running"] .smwb-dag-view__dot {
|
|
8907
|
-
animation: smwb-dag-view-pulse
|
|
9102
|
+
animation: smwb-dag-view-pulse var(--smwb-dag-view-node-pulse-duration) ease-in-out infinite;
|
|
9103
|
+
}
|
|
9104
|
+
.smwb-dag-view[data-animate-running="true"] .smwb-dag-view__node[data-status="running"]::before {
|
|
9105
|
+
animation: smwb-dag-view-pulse var(--smwb-dag-view-node-pulse-duration) ease-in-out infinite;
|
|
9106
|
+
}
|
|
9107
|
+
.smwb-dag-view__edge--flowing {
|
|
9108
|
+
stroke: var(--smwb-dag-view-edge-flow-track-color);
|
|
9109
|
+
}
|
|
9110
|
+
.smwb-dag-view__edge-pulse {
|
|
9111
|
+
display: inline;
|
|
9112
|
+
animation: smwb-dag-view-flow var(--smwb-dag-view-edge-flow-duration) linear infinite;
|
|
8908
9113
|
}
|
|
8909
9114
|
}
|
|
8910
9115
|
@keyframes smwb-dag-view-pulse {
|
|
@@ -8912,6 +9117,11 @@
|
|
|
8912
9117
|
opacity: 0.35;
|
|
8913
9118
|
}
|
|
8914
9119
|
}
|
|
9120
|
+
@keyframes smwb-dag-view-flow {
|
|
9121
|
+
to {
|
|
9122
|
+
stroke-dashoffset: -24px;
|
|
9123
|
+
}
|
|
9124
|
+
}
|
|
8915
9125
|
.smwb-swimlanes {
|
|
8916
9126
|
position: relative;
|
|
8917
9127
|
box-sizing: border-box;
|
|
@@ -9801,8 +10011,12 @@
|
|
|
9801
10011
|
font-variant-numeric: tabular-nums;
|
|
9802
10012
|
}
|
|
9803
10013
|
.smwb-stack {
|
|
10014
|
+
display: flex;
|
|
9804
10015
|
min-width: 0;
|
|
9805
10016
|
}
|
|
10017
|
+
.smwb-stack[hidden] {
|
|
10018
|
+
display: none;
|
|
10019
|
+
}
|
|
9806
10020
|
.smwb-stack--direction-base-row {
|
|
9807
10021
|
flex-direction: row;
|
|
9808
10022
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smwb/ui-css",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Prebuilt aggregate stylesheet for the @smwb design system (compiled from @smwb/ui-styles). Framework-agnostic — shared by the React and SolidJS libraries.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"build": "lessc -rp=/ ../styles/less/components.less ./dist/ui.css"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@smwb/ui-styles": "^2.
|
|
22
|
+
"@smwb/ui-styles": "^2.7.0",
|
|
23
23
|
"less": "^4.6.4"
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://sourcecraft.dev/elfenmail/ui",
|