@duskmoon-dev/core 1.18.4 → 1.18.5
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 +1 -1
- package/dist/components/badge.css +29 -0
- package/dist/components/button.css +19 -0
- package/dist/components/index.css +92 -2
- package/dist/components/table.css +44 -2
- package/dist/esm/components/badge.js +29 -0
- package/dist/esm/components/button.js +19 -0
- package/dist/esm/components/table.js +44 -2
- package/dist/index.css +92 -2
- package/dist/index.min.css +1 -1
- package/dist/standalone/duskmoonui-themes.css +1 -1
- package/dist/standalone/duskmoonui.css +94 -4
- package/dist/standalone/duskmoonui.js +4 -4
- package/dist/standalone/duskmoonui.mjs +4 -4
- package/package.json +1 -1
|
@@ -14,6 +14,11 @@ export const css = `/**
|
|
|
14
14
|
color: var(--color-on-surface);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
/* Surface Variant */
|
|
18
|
+
.table-surface {
|
|
19
|
+
background-color: var(--color-surface);
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
/* Table Head */
|
|
18
23
|
.table thead,
|
|
19
24
|
.table-header {
|
|
@@ -61,7 +66,9 @@ export const css = `/**
|
|
|
61
66
|
|
|
62
67
|
/* Zebra Striping */
|
|
63
68
|
.table-zebra tbody tr:nth-child(even),
|
|
64
|
-
.table-zebra .table-row:nth-child(even)
|
|
69
|
+
.table-zebra .table-row:nth-child(even),
|
|
70
|
+
.table-striped tbody tr:nth-child(even),
|
|
71
|
+
.table-striped .table-row:nth-child(even) {
|
|
65
72
|
background-color: var(--color-surface-container-low);
|
|
66
73
|
}
|
|
67
74
|
|
|
@@ -83,6 +90,16 @@ export const css = `/**
|
|
|
83
90
|
border: 1px solid var(--color-outline-variant);
|
|
84
91
|
}
|
|
85
92
|
|
|
93
|
+
/* Borderless Table */
|
|
94
|
+
.table-borderless,
|
|
95
|
+
.table-borderless th,
|
|
96
|
+
.table-borderless td,
|
|
97
|
+
.table-borderless tfoot td,
|
|
98
|
+
.table-borderless .table-header-cell,
|
|
99
|
+
.table-borderless .table-cell {
|
|
100
|
+
border: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
86
103
|
/* Compact Table */
|
|
87
104
|
.table-compact th,
|
|
88
105
|
.table-compact td {
|
|
@@ -101,6 +118,16 @@ export const css = `/**
|
|
|
101
118
|
table-layout: fixed;
|
|
102
119
|
}
|
|
103
120
|
|
|
121
|
+
/* Sticky Header */
|
|
122
|
+
.table-sticky thead,
|
|
123
|
+
.table-sticky .table-header {
|
|
124
|
+
position: sticky;
|
|
125
|
+
top: 0;
|
|
126
|
+
z-index: 10;
|
|
127
|
+
background-color: var(--color-surface-container);
|
|
128
|
+
box-shadow: var(--shadow-xs);
|
|
129
|
+
}
|
|
130
|
+
|
|
104
131
|
/* Sortable Header */
|
|
105
132
|
.table-sortable th {
|
|
106
133
|
cursor: pointer;
|
|
@@ -121,9 +148,24 @@ export const css = `/**
|
|
|
121
148
|
opacity: 0.7;
|
|
122
149
|
}
|
|
123
150
|
|
|
151
|
+
/* Selectable Rows */
|
|
152
|
+
.table-selectable tbody tr,
|
|
153
|
+
.table-selectable .table-row {
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.table-selectable tbody tr:hover,
|
|
158
|
+
.table-selectable .table-row:hover {
|
|
159
|
+
background-color: color-mix(in oklch, var(--color-on-surface) 8%, transparent);
|
|
160
|
+
}
|
|
161
|
+
|
|
124
162
|
/* Selected Row */
|
|
125
163
|
.table-row-selected,
|
|
126
|
-
.table tr.selected
|
|
164
|
+
.table tr.selected,
|
|
165
|
+
.table-selectable tbody tr.table-row-selected,
|
|
166
|
+
.table-selectable .table-row.table-row-selected,
|
|
167
|
+
.table-selectable tbody tr.selected,
|
|
168
|
+
.table-selectable .table-row.selected {
|
|
127
169
|
background-color: var(--color-primary-container);
|
|
128
170
|
color: var(--color-on-primary-container);
|
|
129
171
|
}
|
package/dist/index.css
CHANGED
|
@@ -1651,6 +1651,25 @@ html {
|
|
|
1651
1651
|
}
|
|
1652
1652
|
|
|
1653
1653
|
/* Icon Button */
|
|
1654
|
+
.btn-icon {
|
|
1655
|
+
padding: 0.75rem;
|
|
1656
|
+
width: 2.5rem;
|
|
1657
|
+
height: 2.5rem;
|
|
1658
|
+
border-radius: var(--radius-full);
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
.btn-icon-sm {
|
|
1662
|
+
padding: 0.5rem;
|
|
1663
|
+
width: 2rem;
|
|
1664
|
+
height: 2rem;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
.btn-icon-lg {
|
|
1668
|
+
padding: 1rem;
|
|
1669
|
+
width: 3rem;
|
|
1670
|
+
height: 3rem;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1654
1673
|
.btn-circle {
|
|
1655
1674
|
--btn-p: 0.625rem;
|
|
1656
1675
|
--btn-py: 0.625rem;
|
|
@@ -4215,112 +4234,141 @@ html {
|
|
|
4215
4234
|
}
|
|
4216
4235
|
|
|
4217
4236
|
/* Outlined Variants */
|
|
4237
|
+
.badge-outlined,
|
|
4238
|
+
.badge-outlined-secondary,
|
|
4239
|
+
.badge-outlined-tertiary,
|
|
4218
4240
|
.badge-outline {
|
|
4219
4241
|
background-color: transparent;
|
|
4220
4242
|
border: 1px solid currentColor;
|
|
4221
4243
|
}
|
|
4222
4244
|
|
|
4245
|
+
.badge-outlined,
|
|
4246
|
+
.badge-outlined.badge-primary,
|
|
4223
4247
|
.badge-outline.badge-primary {
|
|
4224
4248
|
color: var(--color-primary);
|
|
4225
4249
|
border-color: var(--color-primary);
|
|
4226
4250
|
}
|
|
4227
4251
|
|
|
4252
|
+
.badge-outlined.badge-secondary,
|
|
4253
|
+
.badge-outlined-secondary,
|
|
4228
4254
|
.badge-outline.badge-secondary {
|
|
4229
4255
|
color: var(--color-secondary);
|
|
4230
4256
|
border-color: var(--color-secondary);
|
|
4231
4257
|
}
|
|
4232
4258
|
|
|
4259
|
+
.badge-outlined.badge-tertiary,
|
|
4260
|
+
.badge-outlined-tertiary,
|
|
4233
4261
|
.badge-outline.badge-tertiary {
|
|
4234
4262
|
color: var(--color-tertiary);
|
|
4235
4263
|
border-color: var(--color-tertiary);
|
|
4236
4264
|
}
|
|
4237
4265
|
|
|
4266
|
+
.badge-outlined.badge-accent,
|
|
4238
4267
|
.badge-outline.badge-accent {
|
|
4239
4268
|
color: var(--color-accent);
|
|
4240
4269
|
border-color: var(--color-accent);
|
|
4241
4270
|
}
|
|
4242
4271
|
|
|
4272
|
+
.badge-outlined.badge-neutral,
|
|
4243
4273
|
.badge-outline.badge-neutral {
|
|
4244
4274
|
color: var(--color-neutral);
|
|
4245
4275
|
border-color: var(--color-neutral);
|
|
4246
4276
|
}
|
|
4247
4277
|
|
|
4278
|
+
.badge-outlined.badge-base,
|
|
4248
4279
|
.badge-outline.badge-base {
|
|
4249
4280
|
color: var(--color-base-content);
|
|
4250
4281
|
border-color: var(--color-base-content);
|
|
4251
4282
|
}
|
|
4252
4283
|
|
|
4284
|
+
.badge-outlined.badge-info,
|
|
4253
4285
|
.badge-outline.badge-info {
|
|
4254
4286
|
color: var(--color-info);
|
|
4255
4287
|
border-color: var(--color-info);
|
|
4256
4288
|
}
|
|
4257
4289
|
|
|
4290
|
+
.badge-outlined.badge-success,
|
|
4258
4291
|
.badge-outline.badge-success {
|
|
4259
4292
|
color: var(--color-success);
|
|
4260
4293
|
border-color: var(--color-success);
|
|
4261
4294
|
}
|
|
4262
4295
|
|
|
4296
|
+
.badge-outlined.badge-warning,
|
|
4263
4297
|
.badge-outline.badge-warning {
|
|
4264
4298
|
color: var(--color-warning);
|
|
4265
4299
|
border-color: var(--color-warning);
|
|
4266
4300
|
}
|
|
4267
4301
|
|
|
4302
|
+
.badge-outlined.badge-error,
|
|
4268
4303
|
.badge-outline.badge-error {
|
|
4269
4304
|
color: var(--color-error);
|
|
4270
4305
|
border-color: var(--color-error);
|
|
4271
4306
|
}
|
|
4272
4307
|
|
|
4273
4308
|
/* Soft/Tonal Variants */
|
|
4309
|
+
.badge-tonal,
|
|
4274
4310
|
.badge-soft {
|
|
4275
4311
|
background-color: var(--color-primary-container);
|
|
4276
4312
|
color: var(--color-on-primary-container);
|
|
4277
4313
|
}
|
|
4278
4314
|
|
|
4315
|
+
.badge-tonal.badge-primary,
|
|
4279
4316
|
.badge-soft.badge-primary {
|
|
4280
4317
|
background-color: var(--color-primary-container);
|
|
4281
4318
|
color: var(--color-on-primary-container);
|
|
4282
4319
|
}
|
|
4283
4320
|
|
|
4321
|
+
.badge-tonal.badge-secondary,
|
|
4322
|
+
.badge-tonal-secondary,
|
|
4284
4323
|
.badge-soft.badge-secondary {
|
|
4285
4324
|
background-color: var(--color-secondary-container);
|
|
4286
4325
|
color: var(--color-on-secondary-container);
|
|
4287
4326
|
}
|
|
4288
4327
|
|
|
4328
|
+
.badge-tonal.badge-tertiary,
|
|
4329
|
+
.badge-tonal-tertiary,
|
|
4289
4330
|
.badge-soft.badge-tertiary {
|
|
4290
4331
|
background-color: var(--color-tertiary-container);
|
|
4291
4332
|
color: var(--color-on-tertiary-container);
|
|
4292
4333
|
}
|
|
4293
4334
|
|
|
4335
|
+
.badge-tonal.badge-accent,
|
|
4294
4336
|
.badge-soft.badge-accent {
|
|
4295
4337
|
background-color: color-mix(in oklch, var(--color-accent) 15%, var(--color-surface));
|
|
4296
4338
|
color: var(--color-on-surface);
|
|
4297
4339
|
}
|
|
4298
4340
|
|
|
4341
|
+
.badge-tonal.badge-neutral,
|
|
4299
4342
|
.badge-soft.badge-neutral {
|
|
4300
4343
|
background-color: color-mix(in oklch, var(--color-neutral) 15%, var(--color-surface));
|
|
4301
4344
|
color: var(--color-on-surface);
|
|
4302
4345
|
}
|
|
4303
4346
|
|
|
4347
|
+
.badge-tonal.badge-base,
|
|
4304
4348
|
.badge-soft.badge-base {
|
|
4305
4349
|
background-color: var(--color-base-200);
|
|
4306
4350
|
color: var(--color-base-content);
|
|
4307
4351
|
}
|
|
4308
4352
|
|
|
4353
|
+
.badge-tonal.badge-info,
|
|
4309
4354
|
.badge-soft.badge-info {
|
|
4310
4355
|
background-color: var(--color-info-container);
|
|
4311
4356
|
color: var(--color-on-info-container);
|
|
4312
4357
|
}
|
|
4313
4358
|
|
|
4359
|
+
.badge-tonal.badge-success,
|
|
4314
4360
|
.badge-soft.badge-success {
|
|
4315
4361
|
background-color: var(--color-success-container);
|
|
4316
4362
|
color: var(--color-on-success-container);
|
|
4317
4363
|
}
|
|
4318
4364
|
|
|
4365
|
+
.badge-tonal.badge-warning,
|
|
4319
4366
|
.badge-soft.badge-warning {
|
|
4320
4367
|
background-color: var(--color-warning-container);
|
|
4321
4368
|
color: var(--color-on-warning-container);
|
|
4322
4369
|
}
|
|
4323
4370
|
|
|
4371
|
+
.badge-tonal.badge-error,
|
|
4324
4372
|
.badge-soft.badge-error {
|
|
4325
4373
|
background-color: var(--color-error-container);
|
|
4326
4374
|
color: var(--color-on-error-container);
|
|
@@ -5815,6 +5863,11 @@ html {
|
|
|
5815
5863
|
color: var(--color-on-surface);
|
|
5816
5864
|
}
|
|
5817
5865
|
|
|
5866
|
+
/* Surface Variant */
|
|
5867
|
+
.table-surface {
|
|
5868
|
+
background-color: var(--color-surface);
|
|
5869
|
+
}
|
|
5870
|
+
|
|
5818
5871
|
/* Table Head */
|
|
5819
5872
|
.table thead,
|
|
5820
5873
|
.table-header {
|
|
@@ -5862,7 +5915,9 @@ html {
|
|
|
5862
5915
|
|
|
5863
5916
|
/* Zebra Striping */
|
|
5864
5917
|
.table-zebra tbody tr:nth-child(even),
|
|
5865
|
-
.table-zebra .table-row:nth-child(even)
|
|
5918
|
+
.table-zebra .table-row:nth-child(even),
|
|
5919
|
+
.table-striped tbody tr:nth-child(even),
|
|
5920
|
+
.table-striped .table-row:nth-child(even) {
|
|
5866
5921
|
background-color: var(--color-surface-container-low);
|
|
5867
5922
|
}
|
|
5868
5923
|
|
|
@@ -5884,6 +5939,16 @@ html {
|
|
|
5884
5939
|
border: 1px solid var(--color-outline-variant);
|
|
5885
5940
|
}
|
|
5886
5941
|
|
|
5942
|
+
/* Borderless Table */
|
|
5943
|
+
.table-borderless,
|
|
5944
|
+
.table-borderless th,
|
|
5945
|
+
.table-borderless td,
|
|
5946
|
+
.table-borderless tfoot td,
|
|
5947
|
+
.table-borderless .table-header-cell,
|
|
5948
|
+
.table-borderless .table-cell {
|
|
5949
|
+
border: none;
|
|
5950
|
+
}
|
|
5951
|
+
|
|
5887
5952
|
/* Compact Table */
|
|
5888
5953
|
.table-compact th,
|
|
5889
5954
|
.table-compact td {
|
|
@@ -5902,6 +5967,16 @@ html {
|
|
|
5902
5967
|
table-layout: fixed;
|
|
5903
5968
|
}
|
|
5904
5969
|
|
|
5970
|
+
/* Sticky Header */
|
|
5971
|
+
.table-sticky thead,
|
|
5972
|
+
.table-sticky .table-header {
|
|
5973
|
+
position: sticky;
|
|
5974
|
+
top: 0;
|
|
5975
|
+
z-index: 10;
|
|
5976
|
+
background-color: var(--color-surface-container);
|
|
5977
|
+
box-shadow: var(--shadow-xs);
|
|
5978
|
+
}
|
|
5979
|
+
|
|
5905
5980
|
/* Sortable Header */
|
|
5906
5981
|
.table-sortable th {
|
|
5907
5982
|
cursor: pointer;
|
|
@@ -5922,9 +5997,24 @@ html {
|
|
|
5922
5997
|
opacity: 0.7;
|
|
5923
5998
|
}
|
|
5924
5999
|
|
|
6000
|
+
/* Selectable Rows */
|
|
6001
|
+
.table-selectable tbody tr,
|
|
6002
|
+
.table-selectable .table-row {
|
|
6003
|
+
cursor: pointer;
|
|
6004
|
+
}
|
|
6005
|
+
|
|
6006
|
+
.table-selectable tbody tr:hover,
|
|
6007
|
+
.table-selectable .table-row:hover {
|
|
6008
|
+
background-color: color-mix(in oklch, var(--color-on-surface) 8%, transparent);
|
|
6009
|
+
}
|
|
6010
|
+
|
|
5925
6011
|
/* Selected Row */
|
|
5926
6012
|
.table-row-selected,
|
|
5927
|
-
.table tr.selected
|
|
6013
|
+
.table tr.selected,
|
|
6014
|
+
.table-selectable tbody tr.table-row-selected,
|
|
6015
|
+
.table-selectable .table-row.table-row-selected,
|
|
6016
|
+
.table-selectable tbody tr.selected,
|
|
6017
|
+
.table-selectable .table-row.selected {
|
|
5928
6018
|
background-color: var(--color-primary-container);
|
|
5929
6019
|
color: var(--color-on-primary-container);
|
|
5930
6020
|
}
|