softui-css 1.9.0 → 1.11.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/README.md +3 -3
- package/dist/softui.css +94 -24
- package/dist/softui.min.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
| Feature | Description |
|
|
34
34
|
|---|---|
|
|
35
|
-
| **
|
|
35
|
+
| **65+ Components** | Buttons, Cards, Modals, Tables, Tabs, Calendar, Charts, Pricing, and more |
|
|
36
36
|
| **Dark Mode** | Add `data-theme="dark"` and everything adapts |
|
|
37
37
|
| **Zero Dependencies** | Pure CSS + vanilla JS. No build step required |
|
|
38
38
|
| **CSS Variables** | Fully customizable via custom properties |
|
|
@@ -94,9 +94,9 @@ That's it. Every component adapts automatically.
|
|
|
94
94
|
|
|
95
95
|
## Components
|
|
96
96
|
|
|
97
|
-
**Forms** — Input, Select, Textarea, Toggle, Checkbox, Radio, Slider, OTP, Combobox, Color Picker, File Upload, Tags Input, Number Input, Password Input
|
|
97
|
+
**Forms** — Input, Styled Select, Textarea, Toggle, Checkbox, Radio, Slider, OTP, Combobox, Color Picker, File Upload, Tags Input, Number Input, Password Input
|
|
98
98
|
|
|
99
|
-
**General** — Buttons, Button Group, Card, Badge, Avatar, Chip, Divider, Kbd, Copy Button, Swap
|
|
99
|
+
**General** — Buttons, Button Group, Card, Badge, Avatar, Chip, Divider, Kbd, Copy Button, Swap, Pricing
|
|
100
100
|
|
|
101
101
|
**Data Display** — Table, Data Table, Chart, Stat Card, Timeline, Chat Bubble, Calendar, Tree View, Radial Progress, Rating
|
|
102
102
|
|
package/dist/softui.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! SoftUI v1.
|
|
1
|
+
/*! SoftUI v1.11.0 — A Neumorphic CSS Library */
|
|
2
2
|
|
|
3
3
|
/* ===========================================
|
|
4
4
|
CSS Variables / Tokens
|
|
@@ -157,6 +157,7 @@ a:focus-visible {
|
|
|
157
157
|
box-shadow: var(--sui-shadow-raised);
|
|
158
158
|
cursor: pointer;
|
|
159
159
|
transition: var(--sui-transition);
|
|
160
|
+
-webkit-user-select: none;
|
|
160
161
|
user-select: none;
|
|
161
162
|
white-space: nowrap;
|
|
162
163
|
line-height: 1.4;
|
|
@@ -729,6 +730,7 @@ a.sui-btn-warning:visited {
|
|
|
729
730
|
cursor: pointer;
|
|
730
731
|
font-size: 14px;
|
|
731
732
|
color: var(--sui-text);
|
|
733
|
+
-webkit-user-select: none;
|
|
732
734
|
user-select: none;
|
|
733
735
|
}
|
|
734
736
|
|
|
@@ -786,6 +788,7 @@ a.sui-btn-warning:visited {
|
|
|
786
788
|
cursor: pointer;
|
|
787
789
|
font-size: 14px;
|
|
788
790
|
color: var(--sui-text);
|
|
791
|
+
-webkit-user-select: none;
|
|
789
792
|
user-select: none;
|
|
790
793
|
}
|
|
791
794
|
|
|
@@ -1122,20 +1125,20 @@ a.sui-btn-warning:visited {
|
|
|
1122
1125
|
.sui-mb-2 { margin-bottom: 8px; } .sui-mb-3 { margin-bottom: 16px; }
|
|
1123
1126
|
.sui-mb-4 { margin-bottom: 24px; } .sui-mb-5 { margin-bottom: 48px; }
|
|
1124
1127
|
|
|
1125
|
-
.sui-ml-0 { margin-
|
|
1126
|
-
.sui-ml-2 { margin-
|
|
1127
|
-
.sui-ml-4 { margin-
|
|
1128
|
+
.sui-ml-0 { margin-inline-start: 0; } .sui-ml-1 { margin-inline-start: 4px; }
|
|
1129
|
+
.sui-ml-2 { margin-inline-start: 8px; } .sui-ml-3 { margin-inline-start: 16px; }
|
|
1130
|
+
.sui-ml-4 { margin-inline-start: 24px; } .sui-ml-5 { margin-inline-start: 48px; }
|
|
1128
1131
|
|
|
1129
|
-
.sui-mr-0 { margin-
|
|
1130
|
-
.sui-mr-2 { margin-
|
|
1131
|
-
.sui-mr-4 { margin-
|
|
1132
|
+
.sui-mr-0 { margin-inline-end: 0; } .sui-mr-1 { margin-inline-end: 4px; }
|
|
1133
|
+
.sui-mr-2 { margin-inline-end: 8px; } .sui-mr-3 { margin-inline-end: 16px; }
|
|
1134
|
+
.sui-mr-4 { margin-inline-end: 24px; } .sui-mr-5 { margin-inline-end: 48px; }
|
|
1132
1135
|
|
|
1133
1136
|
/* ===========================================
|
|
1134
1137
|
Utility: Text
|
|
1135
1138
|
=========================================== */
|
|
1136
1139
|
.sui-text-center { text-align: center; }
|
|
1137
|
-
.sui-text-left { text-align:
|
|
1138
|
-
.sui-text-right { text-align:
|
|
1140
|
+
.sui-text-left { text-align: start; }
|
|
1141
|
+
.sui-text-right { text-align: end; }
|
|
1139
1142
|
|
|
1140
1143
|
.sui-text-muted { color: var(--sui-text-muted); }
|
|
1141
1144
|
.sui-text-primary { color: var(--sui-primary); }
|
|
@@ -1275,7 +1278,6 @@ a.sui-btn-warning:visited {
|
|
|
1275
1278
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
1276
1279
|
width: 90%;
|
|
1277
1280
|
max-width: 520px;
|
|
1278
|
-
max-height: 85vh;
|
|
1279
1281
|
overflow: visible;
|
|
1280
1282
|
transform: translateY(20px) scale(0.97);
|
|
1281
1283
|
transition: transform var(--sui-transition-base) ease;
|
|
@@ -1357,6 +1359,7 @@ a.sui-btn-warning:visited {
|
|
|
1357
1359
|
padding: 0 28px 24px;
|
|
1358
1360
|
}
|
|
1359
1361
|
|
|
1362
|
+
|
|
1360
1363
|
/* Size variants */
|
|
1361
1364
|
.sui-modal-sm { max-width: 380px; }
|
|
1362
1365
|
.sui-modal-lg { max-width: 720px; }
|
|
@@ -1566,6 +1569,7 @@ a.sui-btn-warning:visited {
|
|
|
1566
1569
|
transition: var(--sui-transition);
|
|
1567
1570
|
text-decoration: none;
|
|
1568
1571
|
line-height: 1;
|
|
1572
|
+
-webkit-user-select: none;
|
|
1569
1573
|
user-select: none;
|
|
1570
1574
|
}
|
|
1571
1575
|
|
|
@@ -1774,6 +1778,7 @@ a.sui-btn-warning:visited {
|
|
|
1774
1778
|
border-radius: 8px;
|
|
1775
1779
|
cursor: pointer;
|
|
1776
1780
|
transition: var(--sui-transition);
|
|
1781
|
+
-webkit-user-select: none;
|
|
1777
1782
|
user-select: none;
|
|
1778
1783
|
line-height: 1.4;
|
|
1779
1784
|
}
|
|
@@ -2920,6 +2925,7 @@ select.sui-datatable-filter {
|
|
|
2920
2925
|
/* Sortable headers */
|
|
2921
2926
|
.sui-datatable .sui-table th[data-sort] {
|
|
2922
2927
|
cursor: pointer;
|
|
2928
|
+
-webkit-user-select: none;
|
|
2923
2929
|
user-select: none;
|
|
2924
2930
|
position: relative;
|
|
2925
2931
|
padding-right: 28px;
|
|
@@ -3041,6 +3047,7 @@ select.sui-datatable-filter {
|
|
|
3041
3047
|
border-radius: var(--sui-radius-xs);
|
|
3042
3048
|
box-shadow: var(--sui-shadow-raised-sm);
|
|
3043
3049
|
cursor: grab;
|
|
3050
|
+
-webkit-user-select: none;
|
|
3044
3051
|
user-select: none;
|
|
3045
3052
|
font-size: 14px;
|
|
3046
3053
|
color: var(--sui-text);
|
|
@@ -3144,6 +3151,7 @@ select.sui-datatable-filter {
|
|
|
3144
3151
|
font-size: 13px;
|
|
3145
3152
|
color: var(--sui-text);
|
|
3146
3153
|
cursor: grab;
|
|
3154
|
+
-webkit-user-select: none;
|
|
3147
3155
|
user-select: none;
|
|
3148
3156
|
transition: box-shadow var(--sui-transition-fast), opacity var(--sui-transition-fast);
|
|
3149
3157
|
}
|
|
@@ -4180,6 +4188,7 @@ select.sui-datatable-filter {
|
|
|
4180
4188
|
border-radius: var(--sui-radius);
|
|
4181
4189
|
box-shadow: var(--sui-shadow-raised);
|
|
4182
4190
|
width: 296px;
|
|
4191
|
+
-webkit-user-select: none;
|
|
4183
4192
|
user-select: none;
|
|
4184
4193
|
}
|
|
4185
4194
|
|
|
@@ -4470,6 +4479,7 @@ select.sui-datatable-filter {
|
|
|
4470
4479
|
background: var(--sui-bg);
|
|
4471
4480
|
border-radius: var(--sui-radius);
|
|
4472
4481
|
box-shadow: var(--sui-shadow-raised);
|
|
4482
|
+
-webkit-user-select: none;
|
|
4473
4483
|
user-select: none;
|
|
4474
4484
|
}
|
|
4475
4485
|
|
|
@@ -5225,6 +5235,7 @@ select.sui-datatable-filter {
|
|
|
5225
5235
|
justify-content: center;
|
|
5226
5236
|
background: var(--sui-bg-dark);
|
|
5227
5237
|
transition: background var(--sui-transition-fast);
|
|
5238
|
+
-webkit-user-select: none;
|
|
5228
5239
|
user-select: none;
|
|
5229
5240
|
touch-action: none;
|
|
5230
5241
|
}
|
|
@@ -5745,17 +5756,17 @@ select.sui-datatable-filter {
|
|
|
5745
5756
|
/* ===========================================
|
|
5746
5757
|
Layout — Offsets
|
|
5747
5758
|
=========================================== */
|
|
5748
|
-
.sui-offset-1 { margin-
|
|
5749
|
-
.sui-offset-2 { margin-
|
|
5750
|
-
.sui-offset-3 { margin-
|
|
5751
|
-
.sui-offset-4 { margin-
|
|
5752
|
-
.sui-offset-5 { margin-
|
|
5753
|
-
.sui-offset-6 { margin-
|
|
5754
|
-
.sui-offset-7 { margin-
|
|
5755
|
-
.sui-offset-8 { margin-
|
|
5756
|
-
.sui-offset-9 { margin-
|
|
5757
|
-
.sui-offset-10 { margin-
|
|
5758
|
-
.sui-offset-11 { margin-
|
|
5759
|
+
.sui-offset-1 { margin-inline-start: 8.333333%; }
|
|
5760
|
+
.sui-offset-2 { margin-inline-start: 16.666667%; }
|
|
5761
|
+
.sui-offset-3 { margin-inline-start: 25%; }
|
|
5762
|
+
.sui-offset-4 { margin-inline-start: 33.333333%; }
|
|
5763
|
+
.sui-offset-5 { margin-inline-start: 41.666667%; }
|
|
5764
|
+
.sui-offset-6 { margin-inline-start: 50%; }
|
|
5765
|
+
.sui-offset-7 { margin-inline-start: 58.333333%; }
|
|
5766
|
+
.sui-offset-8 { margin-inline-start: 66.666667%; }
|
|
5767
|
+
.sui-offset-9 { margin-inline-start: 75%; }
|
|
5768
|
+
.sui-offset-10 { margin-inline-start: 83.333333%; }
|
|
5769
|
+
.sui-offset-11 { margin-inline-start: 91.666667%; }
|
|
5759
5770
|
|
|
5760
5771
|
/* ===========================================
|
|
5761
5772
|
Flex Utilities
|
|
@@ -5901,8 +5912,8 @@ select.sui-datatable-filter {
|
|
|
5901
5912
|
.sui-select-all { user-select: all !important; }
|
|
5902
5913
|
|
|
5903
5914
|
/* Auto margins */
|
|
5904
|
-
.sui-ms-auto { margin-
|
|
5905
|
-
.sui-me-auto { margin-
|
|
5915
|
+
.sui-ms-auto { margin-inline-start: auto !important; }
|
|
5916
|
+
.sui-me-auto { margin-inline-end: auto !important; }
|
|
5906
5917
|
.sui-mx-auto { margin-left: auto !important; margin-right: auto !important; }
|
|
5907
5918
|
|
|
5908
5919
|
/* ===========================================
|
|
@@ -6250,6 +6261,7 @@ select.sui-datatable-filter {
|
|
|
6250
6261
|
box-shadow: var(--sui-shadow-raised-sm), inset 0 -2px 0 rgba(0,0,0,0.08);
|
|
6251
6262
|
line-height: 1;
|
|
6252
6263
|
white-space: nowrap;
|
|
6264
|
+
-webkit-user-select: none;
|
|
6253
6265
|
user-select: none;
|
|
6254
6266
|
vertical-align: baseline;
|
|
6255
6267
|
}
|
|
@@ -6304,6 +6316,7 @@ select.sui-datatable-filter {
|
|
|
6304
6316
|
font-size: 11px;
|
|
6305
6317
|
color: var(--sui-text-muted);
|
|
6306
6318
|
font-weight: 500;
|
|
6319
|
+
-webkit-user-select: none;
|
|
6307
6320
|
user-select: none;
|
|
6308
6321
|
}
|
|
6309
6322
|
|
|
@@ -6312,7 +6325,6 @@ select.sui-datatable-filter {
|
|
|
6312
6325
|
=========================================== */
|
|
6313
6326
|
.sui-scroll-area {
|
|
6314
6327
|
overflow: auto;
|
|
6315
|
-
overflow: overlay;
|
|
6316
6328
|
scrollbar-width: thin;
|
|
6317
6329
|
scrollbar-color: var(--sui-bg-dark) transparent;
|
|
6318
6330
|
}
|
|
@@ -7600,6 +7612,7 @@ select.sui-datatable-filter {
|
|
|
7600
7612
|
border-radius: var(--sui-radius-sm);
|
|
7601
7613
|
box-shadow: var(--sui-shadow-inset);
|
|
7602
7614
|
transition: var(--sui-transition);
|
|
7615
|
+
-webkit-user-select: none;
|
|
7603
7616
|
user-select: none;
|
|
7604
7617
|
}
|
|
7605
7618
|
|
|
@@ -7755,6 +7768,7 @@ select.sui-datatable-filter {
|
|
|
7755
7768
|
cursor: pointer;
|
|
7756
7769
|
transition: var(--sui-transition);
|
|
7757
7770
|
white-space: nowrap;
|
|
7771
|
+
-webkit-user-select: none;
|
|
7758
7772
|
user-select: none;
|
|
7759
7773
|
line-height: 1.4;
|
|
7760
7774
|
}
|
|
@@ -8079,6 +8093,7 @@ select.sui-datatable-filter {
|
|
|
8079
8093
|
text-align: right;
|
|
8080
8094
|
min-width: 28px;
|
|
8081
8095
|
padding-bottom: 28px;
|
|
8096
|
+
-webkit-user-select: none;
|
|
8082
8097
|
user-select: none;
|
|
8083
8098
|
}
|
|
8084
8099
|
|
|
@@ -11001,6 +11016,7 @@ select.sui-datatable-filter {
|
|
|
11001
11016
|
color: var(--sui-text);
|
|
11002
11017
|
font-weight: 500;
|
|
11003
11018
|
transition: background 0.15s ease;
|
|
11019
|
+
-webkit-user-select: none;
|
|
11004
11020
|
user-select: none;
|
|
11005
11021
|
}
|
|
11006
11022
|
|
|
@@ -11733,6 +11749,7 @@ select.sui-datatable-filter {
|
|
|
11733
11749
|
border-radius: var(--sui-radius);
|
|
11734
11750
|
box-shadow: var(--sui-shadow-raised-sm);
|
|
11735
11751
|
cursor: ew-resize;
|
|
11752
|
+
-webkit-user-select: none;
|
|
11736
11753
|
user-select: none;
|
|
11737
11754
|
}
|
|
11738
11755
|
|
|
@@ -13015,6 +13032,59 @@ select.sui-datatable-filter {
|
|
|
13015
13032
|
}
|
|
13016
13033
|
|
|
13017
13034
|
|
|
13035
|
+
/* ===========================================
|
|
13036
|
+
RTL (Right-to-Left) Support
|
|
13037
|
+
=========================================== */
|
|
13038
|
+
|
|
13039
|
+
/* Navbar brand spacing */
|
|
13040
|
+
[dir="rtl"] .sui-navbar-brand { margin-right: auto; margin-left: 0; }
|
|
13041
|
+
|
|
13042
|
+
/* Sheet slide direction */
|
|
13043
|
+
[dir="rtl"] .sui-sheet-right { right: auto; left: 0; transform: translateX(-100%); }
|
|
13044
|
+
[dir="rtl"] .sui-sheet-backdrop.sui-sheet-open .sui-sheet-right { transform: translateX(0); }
|
|
13045
|
+
[dir="rtl"] .sui-sheet-left { left: auto; right: 0; transform: translateX(100%); }
|
|
13046
|
+
[dir="rtl"] .sui-sheet-backdrop.sui-sheet-open .sui-sheet-left { transform: translateX(0); }
|
|
13047
|
+
|
|
13048
|
+
/* Carousel controls */
|
|
13049
|
+
[dir="rtl"] .sui-carousel-prev { left: auto; right: 0; }
|
|
13050
|
+
[dir="rtl"] .sui-carousel-next { right: auto; left: 0; }
|
|
13051
|
+
|
|
13052
|
+
/* Lightbox controls */
|
|
13053
|
+
[dir="rtl"] .sui-lightbox-prev { left: auto; right: 16px; }
|
|
13054
|
+
[dir="rtl"] .sui-lightbox-next { right: auto; left: 16px; }
|
|
13055
|
+
|
|
13056
|
+
/* Breadcrumb separator */
|
|
13057
|
+
[dir="rtl"] .sui-breadcrumb-item + .sui-breadcrumb-item { padding-left: 0; padding-right: 24px; }
|
|
13058
|
+
[dir="rtl"] .sui-breadcrumb-item + .sui-breadcrumb-item::before { padding-right: 0; padding-left: 12px; }
|
|
13059
|
+
|
|
13060
|
+
/* Dropdown toggle arrow */
|
|
13061
|
+
[dir="rtl"] .sui-dropdown-toggle::after { margin-left: 0; margin-right: 6px; }
|
|
13062
|
+
|
|
13063
|
+
/* Sidebar */
|
|
13064
|
+
[dir="rtl"] .sui-sidebar-bordered { border-right: none; border-left: 1px solid var(--sui-bg-dark); }
|
|
13065
|
+
|
|
13066
|
+
/* Speed dial corners */
|
|
13067
|
+
[dir="rtl"] .sui-speed-dial-br { right: auto; left: 24px; }
|
|
13068
|
+
[dir="rtl"] .sui-speed-dial-bl { left: auto; right: 24px; }
|
|
13069
|
+
[dir="rtl"] .sui-speed-dial-tr { right: auto; left: 24px; }
|
|
13070
|
+
[dir="rtl"] .sui-speed-dial-tl { left: auto; right: 24px; }
|
|
13071
|
+
|
|
13072
|
+
/* Avatar status dot */
|
|
13073
|
+
[dir="rtl"] .sui-avatar-status::after { right: auto; left: 1px; }
|
|
13074
|
+
|
|
13075
|
+
/* Select arrow */
|
|
13076
|
+
[dir="rtl"] .sui-select { background-position: left 16px center; padding-right: 16px; padding-left: 40px; }
|
|
13077
|
+
[dir="rtl"] .sui-styled-select-trigger { flex-direction: row-reverse; }
|
|
13078
|
+
|
|
13079
|
+
/* Accordion chevron */
|
|
13080
|
+
[dir="rtl"] .sui-accordion-header::after { margin-left: 0; margin-right: auto; }
|
|
13081
|
+
|
|
13082
|
+
/* Stepper connector */
|
|
13083
|
+
[dir="rtl"] .sui-step-connector { transform: scaleX(-1); }
|
|
13084
|
+
|
|
13085
|
+
/* Timeline */
|
|
13086
|
+
[dir="rtl"] .sui-timeline-separator { margin-right: 0; margin-left: 16px; }
|
|
13087
|
+
|
|
13018
13088
|
/* ===========================================
|
|
13019
13089
|
Reduced Motion
|
|
13020
13090
|
=========================================== */
|