@duskmoon-dev/components 2.0.0-rc.3 → 2.1.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 +6 -1
- package/dist/components/settings/Settings.d.ts +7 -0
- package/dist/components/settings/Settings.types.d.ts +35 -0
- package/dist/components/settings/index.d.ts +2 -0
- package/dist/components/settings/index.js +290 -0
- package/dist/generated/version.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +358 -192
- package/dist/infrastructure.js +1 -1
- package/dist/styles.css +150 -1
- package/package.json +7 -3
package/dist/infrastructure.js
CHANGED
package/dist/styles.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @duskmoon-dev/core v2.
|
|
2
|
+
* @duskmoon-dev/core v2.1.0
|
|
3
3
|
* Material Design 3 color system with Tailwind CSS v4
|
|
4
4
|
* https://github.com/duskmoon-dev/duskmoon-web
|
|
5
5
|
*
|
|
@@ -8746,6 +8746,155 @@ html {
|
|
|
8746
8746
|
}
|
|
8747
8747
|
}
|
|
8748
8748
|
|
|
8749
|
+
@layer components {
|
|
8750
|
+
.settings-list {
|
|
8751
|
+
display: grid;
|
|
8752
|
+
gap: 1.25rem;
|
|
8753
|
+
min-inline-size: 0;
|
|
8754
|
+
}
|
|
8755
|
+
|
|
8756
|
+
.settings-section {
|
|
8757
|
+
--settings-row-padding: 1rem;
|
|
8758
|
+
--settings-leading-size: 1.25rem;
|
|
8759
|
+
--settings-row-gap: 0.75rem;
|
|
8760
|
+
|
|
8761
|
+
min-inline-size: 0;
|
|
8762
|
+
}
|
|
8763
|
+
|
|
8764
|
+
.settings-section-title,
|
|
8765
|
+
.settings-section-description {
|
|
8766
|
+
padding-inline: var(--settings-row-padding);
|
|
8767
|
+
color: var(--color-on-surface-variant);
|
|
8768
|
+
font-size: 0.875rem;
|
|
8769
|
+
line-height: 1.4;
|
|
8770
|
+
}
|
|
8771
|
+
|
|
8772
|
+
.settings-section-title {
|
|
8773
|
+
margin: 0 0 0.5rem;
|
|
8774
|
+
font-weight: 600;
|
|
8775
|
+
}
|
|
8776
|
+
|
|
8777
|
+
.settings-section-description {
|
|
8778
|
+
margin: 0.5rem 0 0;
|
|
8779
|
+
overflow-wrap: anywhere;
|
|
8780
|
+
}
|
|
8781
|
+
|
|
8782
|
+
.settings-section-items {
|
|
8783
|
+
margin: 0;
|
|
8784
|
+
padding: 0;
|
|
8785
|
+
list-style: none;
|
|
8786
|
+
border-radius: var(--radius-md, 0.75rem);
|
|
8787
|
+
background: var(--color-surface-container-low);
|
|
8788
|
+
overflow: clip;
|
|
8789
|
+
}
|
|
8790
|
+
|
|
8791
|
+
.settings-section-items > li {
|
|
8792
|
+
position: relative;
|
|
8793
|
+
margin: 0;
|
|
8794
|
+
padding: 0;
|
|
8795
|
+
}
|
|
8796
|
+
|
|
8797
|
+
.settings-section-items > li + li::before {
|
|
8798
|
+
position: absolute;
|
|
8799
|
+
inset-block-start: 0;
|
|
8800
|
+
inset-inline: var(--settings-row-padding);
|
|
8801
|
+
border-block-start: 1px solid var(--color-outline-variant);
|
|
8802
|
+
pointer-events: none;
|
|
8803
|
+
content: "";
|
|
8804
|
+
}
|
|
8805
|
+
|
|
8806
|
+
.settings-section-items > li + li:has(> .settings-row > .settings-row-leading)::before {
|
|
8807
|
+
inset-inline-start: calc(var(--settings-row-padding) + var(--settings-leading-size) + var(--settings-row-gap));
|
|
8808
|
+
}
|
|
8809
|
+
|
|
8810
|
+
.settings-row {
|
|
8811
|
+
box-sizing: border-box;
|
|
8812
|
+
display: flex;
|
|
8813
|
+
flex-wrap: wrap;
|
|
8814
|
+
align-items: center;
|
|
8815
|
+
gap: 0.5rem var(--settings-row-gap);
|
|
8816
|
+
min-block-size: 3rem;
|
|
8817
|
+
padding: 0.625rem var(--settings-row-padding);
|
|
8818
|
+
color: var(--color-on-surface);
|
|
8819
|
+
text-decoration: none;
|
|
8820
|
+
}
|
|
8821
|
+
|
|
8822
|
+
a.settings-row:hover {
|
|
8823
|
+
background: var(--color-surface-container);
|
|
8824
|
+
}
|
|
8825
|
+
|
|
8826
|
+
a.settings-row:focus-visible {
|
|
8827
|
+
outline: 2px solid var(--color-primary);
|
|
8828
|
+
outline-offset: -2px;
|
|
8829
|
+
}
|
|
8830
|
+
|
|
8831
|
+
.settings-row-leading {
|
|
8832
|
+
display: grid;
|
|
8833
|
+
flex: none;
|
|
8834
|
+
place-items: center;
|
|
8835
|
+
inline-size: var(--settings-leading-size);
|
|
8836
|
+
block-size: var(--settings-leading-size);
|
|
8837
|
+
color: var(--color-on-surface-variant);
|
|
8838
|
+
}
|
|
8839
|
+
|
|
8840
|
+
.settings-row-leading > svg {
|
|
8841
|
+
inline-size: 100%;
|
|
8842
|
+
block-size: 100%;
|
|
8843
|
+
}
|
|
8844
|
+
|
|
8845
|
+
.settings-row-content {
|
|
8846
|
+
display: grid;
|
|
8847
|
+
flex: 1 1 12ch;
|
|
8848
|
+
min-inline-size: 0;
|
|
8849
|
+
gap: 0.125rem;
|
|
8850
|
+
overflow-wrap: anywhere;
|
|
8851
|
+
}
|
|
8852
|
+
|
|
8853
|
+
.settings-row-title {
|
|
8854
|
+
font-weight: 500;
|
|
8855
|
+
}
|
|
8856
|
+
|
|
8857
|
+
.settings-row-description,
|
|
8858
|
+
.settings-row-trailing {
|
|
8859
|
+
color: var(--color-on-surface-variant);
|
|
8860
|
+
font-size: 0.875rem;
|
|
8861
|
+
}
|
|
8862
|
+
|
|
8863
|
+
.settings-row-trailing {
|
|
8864
|
+
display: flex;
|
|
8865
|
+
flex-wrap: wrap;
|
|
8866
|
+
align-items: center;
|
|
8867
|
+
justify-content: flex-end;
|
|
8868
|
+
gap: 0.5rem;
|
|
8869
|
+
margin-inline-start: auto;
|
|
8870
|
+
min-inline-size: 0;
|
|
8871
|
+
max-inline-size: 100%;
|
|
8872
|
+
overflow-wrap: anywhere;
|
|
8873
|
+
}
|
|
8874
|
+
|
|
8875
|
+
.settings-row-trailing > :where(input, select, textarea) {
|
|
8876
|
+
max-inline-size: 100%;
|
|
8877
|
+
}
|
|
8878
|
+
|
|
8879
|
+
.settings-row-chevron {
|
|
8880
|
+
flex: none;
|
|
8881
|
+
inline-size: 0.4375rem;
|
|
8882
|
+
block-size: 0.4375rem;
|
|
8883
|
+
border-block-start: 2px solid currentColor;
|
|
8884
|
+
border-inline-end: 2px solid currentColor;
|
|
8885
|
+
rotate: 45deg;
|
|
8886
|
+
}
|
|
8887
|
+
|
|
8888
|
+
.settings-row-chevron:dir(rtl) {
|
|
8889
|
+
rotate: -45deg;
|
|
8890
|
+
}
|
|
8891
|
+
|
|
8892
|
+
.settings-row-stacked > .settings-row-trailing {
|
|
8893
|
+
flex-basis: 100%;
|
|
8894
|
+
justify-content: flex-start;
|
|
8895
|
+
}
|
|
8896
|
+
}
|
|
8897
|
+
|
|
8749
8898
|
/**
|
|
8750
8899
|
* Table Component Styles
|
|
8751
8900
|
* DuskMoonUI - Material Design 3 inspired table system
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duskmoon-dev/components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -339,6 +339,10 @@
|
|
|
339
339
|
"types": "./dist/components/steps/index.d.ts",
|
|
340
340
|
"import": "./dist/components/steps/index.js"
|
|
341
341
|
},
|
|
342
|
+
"./settings": {
|
|
343
|
+
"types": "./dist/components/settings/index.d.ts",
|
|
344
|
+
"import": "./dist/components/settings/index.js"
|
|
345
|
+
},
|
|
342
346
|
"./switch": {
|
|
343
347
|
"types": "./dist/components/switch/index.d.ts",
|
|
344
348
|
"import": "./dist/components/switch/index.js"
|
|
@@ -477,7 +481,7 @@
|
|
|
477
481
|
}
|
|
478
482
|
],
|
|
479
483
|
"peerDependencies": {
|
|
480
|
-
"@duskmoon-dev/core": "2.
|
|
484
|
+
"@duskmoon-dev/core": "2.1.0",
|
|
481
485
|
"react": ">=19.0.0",
|
|
482
486
|
"react-dom": ">=19.0.0",
|
|
483
487
|
"lexical": "0.53.0",
|
|
@@ -493,7 +497,7 @@
|
|
|
493
497
|
"ajv-formats": "^3.0.1"
|
|
494
498
|
},
|
|
495
499
|
"devDependencies": {
|
|
496
|
-
"@duskmoon-dev/core": "2.
|
|
500
|
+
"@duskmoon-dev/core": "2.1.0",
|
|
497
501
|
"@lexical/history": "0.53.0",
|
|
498
502
|
"@lexical/plain-text": "0.53.0",
|
|
499
503
|
"@testing-library/react": "16.3.2",
|