@duskmoon-dev/core 1.19.2 → 1.19.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.
- package/README.md +1 -1
- package/dist/components/footer.css +48 -0
- package/dist/components/hero.css +57 -0
- package/dist/components/index.css +405 -0
- package/dist/components/indicator.css +63 -0
- package/dist/components/join.css +70 -0
- package/dist/components/mask.css +38 -0
- package/dist/components/sidebar-layout.css +66 -0
- package/dist/components/stack.css +56 -0
- package/dist/esm/components/footer.d.ts +5 -0
- package/dist/esm/components/footer.js +57 -0
- package/dist/esm/components/hero.d.ts +5 -0
- package/dist/esm/components/hero.js +66 -0
- package/dist/esm/components/indicator.d.ts +5 -0
- package/dist/esm/components/indicator.js +72 -0
- package/dist/esm/components/join.d.ts +5 -0
- package/dist/esm/components/join.js +79 -0
- package/dist/esm/components/mask.d.ts +5 -0
- package/dist/esm/components/mask.js +47 -0
- package/dist/esm/components/sidebar-layout.d.ts +5 -0
- package/dist/esm/components/sidebar-layout.js +75 -0
- package/dist/esm/components/stack.d.ts +5 -0
- package/dist/esm/components/stack.js +65 -0
- package/dist/index.css +405 -0
- package/dist/index.min.css +1 -1
- package/dist/standalone/duskmoonui-themes.css +1 -1
- package/dist/standalone/duskmoonui.css +407 -2
- package/dist/standalone/duskmoonui.js +3 -3
- package/dist/standalone/duskmoonui.mjs +3 -3
- package/package.json +43 -1
package/dist/index.css
CHANGED
|
@@ -16769,6 +16769,411 @@ html {
|
|
|
16769
16769
|
}
|
|
16770
16770
|
}
|
|
16771
16771
|
|
|
16772
|
+
/**
|
|
16773
|
+
* Footer Composition Primitive
|
|
16774
|
+
* Responsive, content-neutral groups on an MD3 surface.
|
|
16775
|
+
*/
|
|
16776
|
+
|
|
16777
|
+
@layer components {
|
|
16778
|
+
.footer {
|
|
16779
|
+
display: grid;
|
|
16780
|
+
grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
|
|
16781
|
+
gap: var(--footer-gap, 2rem);
|
|
16782
|
+
width: 100%;
|
|
16783
|
+
padding: var(--footer-padding, 2rem);
|
|
16784
|
+
background-color: var(--color-surface-container-low);
|
|
16785
|
+
color: var(--color-on-surface);
|
|
16786
|
+
}
|
|
16787
|
+
|
|
16788
|
+
.footer > :where(nav, section, div):not(.footer-horizontal):not(.footer-vertical) {
|
|
16789
|
+
display: grid;
|
|
16790
|
+
align-content: start;
|
|
16791
|
+
gap: 0.75rem;
|
|
16792
|
+
}
|
|
16793
|
+
|
|
16794
|
+
.footer-title {
|
|
16795
|
+
color: var(--color-on-surface-variant);
|
|
16796
|
+
font-size: 0.75rem;
|
|
16797
|
+
font-weight: 600;
|
|
16798
|
+
line-height: 1rem;
|
|
16799
|
+
letter-spacing: 0.08em;
|
|
16800
|
+
text-transform: uppercase;
|
|
16801
|
+
}
|
|
16802
|
+
|
|
16803
|
+
.footer-center {
|
|
16804
|
+
place-items: center;
|
|
16805
|
+
text-align: center;
|
|
16806
|
+
}
|
|
16807
|
+
|
|
16808
|
+
.footer-horizontal {
|
|
16809
|
+
grid-template-columns: none;
|
|
16810
|
+
grid-auto-flow: column;
|
|
16811
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
16812
|
+
align-items: start;
|
|
16813
|
+
}
|
|
16814
|
+
|
|
16815
|
+
.footer-vertical {
|
|
16816
|
+
grid-template-columns: minmax(0, 1fr);
|
|
16817
|
+
grid-auto-flow: row;
|
|
16818
|
+
}
|
|
16819
|
+
}
|
|
16820
|
+
|
|
16821
|
+
/**
|
|
16822
|
+
* Hero Composition Primitive
|
|
16823
|
+
* Layers a content region and an optional presentation-neutral overlay.
|
|
16824
|
+
*/
|
|
16825
|
+
|
|
16826
|
+
@layer components {
|
|
16827
|
+
.hero {
|
|
16828
|
+
display: grid;
|
|
16829
|
+
width: 100%;
|
|
16830
|
+
min-width: 0;
|
|
16831
|
+
place-items: center;
|
|
16832
|
+
isolation: isolate;
|
|
16833
|
+
}
|
|
16834
|
+
|
|
16835
|
+
.hero > * {
|
|
16836
|
+
grid-area: 1 / 1;
|
|
16837
|
+
}
|
|
16838
|
+
|
|
16839
|
+
.hero-content {
|
|
16840
|
+
z-index: 1;
|
|
16841
|
+
display: flex;
|
|
16842
|
+
width: min(100%, var(--hero-content-max-width, 80rem));
|
|
16843
|
+
min-width: 0;
|
|
16844
|
+
align-items: center;
|
|
16845
|
+
justify-content: center;
|
|
16846
|
+
}
|
|
16847
|
+
|
|
16848
|
+
.hero-overlay {
|
|
16849
|
+
z-index: 0;
|
|
16850
|
+
align-self: stretch;
|
|
16851
|
+
justify-self: stretch;
|
|
16852
|
+
pointer-events: none;
|
|
16853
|
+
}
|
|
16854
|
+
|
|
16855
|
+
.hero-center {
|
|
16856
|
+
justify-items: center;
|
|
16857
|
+
text-align: center;
|
|
16858
|
+
}
|
|
16859
|
+
|
|
16860
|
+
.hero-start {
|
|
16861
|
+
justify-items: start;
|
|
16862
|
+
text-align: start;
|
|
16863
|
+
}
|
|
16864
|
+
|
|
16865
|
+
.hero-end {
|
|
16866
|
+
justify-items: end;
|
|
16867
|
+
text-align: end;
|
|
16868
|
+
}
|
|
16869
|
+
|
|
16870
|
+
.hero-start > .hero-content {
|
|
16871
|
+
justify-content: flex-start;
|
|
16872
|
+
}
|
|
16873
|
+
|
|
16874
|
+
.hero-end > .hero-content {
|
|
16875
|
+
justify-content: flex-end;
|
|
16876
|
+
}
|
|
16877
|
+
}
|
|
16878
|
+
|
|
16879
|
+
/**
|
|
16880
|
+
* Indicator Composition Primitive
|
|
16881
|
+
* Positions arbitrary content around an inline-sized anchor.
|
|
16882
|
+
*/
|
|
16883
|
+
|
|
16884
|
+
@layer components {
|
|
16885
|
+
.indicator {
|
|
16886
|
+
position: relative;
|
|
16887
|
+
display: inline-grid;
|
|
16888
|
+
width: max-content;
|
|
16889
|
+
max-width: 100%;
|
|
16890
|
+
}
|
|
16891
|
+
|
|
16892
|
+
.indicator-item {
|
|
16893
|
+
--indicator-block: 0%;
|
|
16894
|
+
--indicator-inline: 0%;
|
|
16895
|
+
--indicator-x: 50%;
|
|
16896
|
+
--indicator-y: -50%;
|
|
16897
|
+
position: absolute;
|
|
16898
|
+
z-index: 1;
|
|
16899
|
+
inset-block-start: var(--indicator-block);
|
|
16900
|
+
inset-inline-end: var(--indicator-inline);
|
|
16901
|
+
translate: var(--indicator-x) var(--indicator-y);
|
|
16902
|
+
}
|
|
16903
|
+
|
|
16904
|
+
.indicator-top {
|
|
16905
|
+
--indicator-block: 0%;
|
|
16906
|
+
--indicator-y: -50%;
|
|
16907
|
+
}
|
|
16908
|
+
|
|
16909
|
+
.indicator-middle {
|
|
16910
|
+
--indicator-block: 50%;
|
|
16911
|
+
--indicator-y: -50%;
|
|
16912
|
+
}
|
|
16913
|
+
|
|
16914
|
+
.indicator-bottom {
|
|
16915
|
+
--indicator-block: 100%;
|
|
16916
|
+
--indicator-y: -50%;
|
|
16917
|
+
}
|
|
16918
|
+
|
|
16919
|
+
.indicator-start {
|
|
16920
|
+
--indicator-inline: 100%;
|
|
16921
|
+
--indicator-x: 50%;
|
|
16922
|
+
}
|
|
16923
|
+
|
|
16924
|
+
.indicator-center {
|
|
16925
|
+
--indicator-inline: 50%;
|
|
16926
|
+
--indicator-x: 50%;
|
|
16927
|
+
}
|
|
16928
|
+
|
|
16929
|
+
.indicator-end {
|
|
16930
|
+
--indicator-inline: 0%;
|
|
16931
|
+
--indicator-x: 50%;
|
|
16932
|
+
}
|
|
16933
|
+
|
|
16934
|
+
:dir(rtl) .indicator-item {
|
|
16935
|
+
--indicator-x: -50%;
|
|
16936
|
+
}
|
|
16937
|
+
|
|
16938
|
+
:dir(rtl) .indicator-start {
|
|
16939
|
+
--indicator-x: -50%;
|
|
16940
|
+
}
|
|
16941
|
+
}
|
|
16942
|
+
|
|
16943
|
+
/**
|
|
16944
|
+
* Join Composition Primitive
|
|
16945
|
+
* Visually connects arbitrary adjacent controls.
|
|
16946
|
+
*/
|
|
16947
|
+
|
|
16948
|
+
@layer components {
|
|
16949
|
+
.join {
|
|
16950
|
+
display: inline-flex;
|
|
16951
|
+
align-items: stretch;
|
|
16952
|
+
flex-direction: row;
|
|
16953
|
+
width: max-content;
|
|
16954
|
+
max-width: 100%;
|
|
16955
|
+
vertical-align: middle;
|
|
16956
|
+
}
|
|
16957
|
+
|
|
16958
|
+
.join > .join-item {
|
|
16959
|
+
position: relative;
|
|
16960
|
+
flex: 0 1 auto;
|
|
16961
|
+
}
|
|
16962
|
+
|
|
16963
|
+
.join > .join-item:hover,
|
|
16964
|
+
.join > .join-item:focus,
|
|
16965
|
+
.join > .join-item:focus-within {
|
|
16966
|
+
z-index: 1;
|
|
16967
|
+
}
|
|
16968
|
+
|
|
16969
|
+
:is(.join, .join-horizontal) > .join-item:not(:first-child) {
|
|
16970
|
+
margin-inline-start: -1px;
|
|
16971
|
+
}
|
|
16972
|
+
|
|
16973
|
+
:is(.join, .join-horizontal) > .join-item:not(:first-child):not(:last-child) {
|
|
16974
|
+
border-radius: 0;
|
|
16975
|
+
}
|
|
16976
|
+
|
|
16977
|
+
:is(.join, .join-horizontal) > .join-item:first-child:not(:last-child) {
|
|
16978
|
+
border-start-end-radius: 0;
|
|
16979
|
+
border-end-end-radius: 0;
|
|
16980
|
+
}
|
|
16981
|
+
|
|
16982
|
+
:is(.join, .join-horizontal) > .join-item:last-child:not(:first-child) {
|
|
16983
|
+
border-start-start-radius: 0;
|
|
16984
|
+
border-end-start-radius: 0;
|
|
16985
|
+
}
|
|
16986
|
+
|
|
16987
|
+
.join-vertical {
|
|
16988
|
+
flex-direction: column;
|
|
16989
|
+
}
|
|
16990
|
+
|
|
16991
|
+
.join-vertical > .join-item {
|
|
16992
|
+
margin-inline-start: 0;
|
|
16993
|
+
}
|
|
16994
|
+
|
|
16995
|
+
.join-vertical > .join-item:not(:first-child) {
|
|
16996
|
+
margin-block-start: -1px;
|
|
16997
|
+
}
|
|
16998
|
+
|
|
16999
|
+
.join-vertical > .join-item:not(:first-child):not(:last-child) {
|
|
17000
|
+
border-radius: 0;
|
|
17001
|
+
}
|
|
17002
|
+
|
|
17003
|
+
.join-vertical > .join-item:first-child:not(:last-child) {
|
|
17004
|
+
border-end-start-radius: 0;
|
|
17005
|
+
border-end-end-radius: 0;
|
|
17006
|
+
}
|
|
17007
|
+
|
|
17008
|
+
.join-vertical > .join-item:last-child:not(:first-child) {
|
|
17009
|
+
border-start-start-radius: 0;
|
|
17010
|
+
border-start-end-radius: 0;
|
|
17011
|
+
}
|
|
17012
|
+
}
|
|
17013
|
+
|
|
17014
|
+
/**
|
|
17015
|
+
* Mask Composition Primitive
|
|
17016
|
+
* Small, dependency-free catalog of reusable clipping shapes.
|
|
17017
|
+
*/
|
|
17018
|
+
|
|
17019
|
+
@layer components {
|
|
17020
|
+
.mask {
|
|
17021
|
+
display: inline-block;
|
|
17022
|
+
max-width: 100%;
|
|
17023
|
+
overflow: hidden;
|
|
17024
|
+
vertical-align: middle;
|
|
17025
|
+
object-fit: cover;
|
|
17026
|
+
}
|
|
17027
|
+
|
|
17028
|
+
.mask-circle {
|
|
17029
|
+
clip-path: circle(50% at 50% 50%);
|
|
17030
|
+
}
|
|
17031
|
+
|
|
17032
|
+
.mask-squircle {
|
|
17033
|
+
clip-path: inset(0 round 28%);
|
|
17034
|
+
}
|
|
17035
|
+
|
|
17036
|
+
.mask-square {
|
|
17037
|
+
clip-path: inset(0);
|
|
17038
|
+
}
|
|
17039
|
+
|
|
17040
|
+
.mask-diamond {
|
|
17041
|
+
clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
|
|
17042
|
+
}
|
|
17043
|
+
|
|
17044
|
+
.mask-hexagon {
|
|
17045
|
+
clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
|
|
17046
|
+
}
|
|
17047
|
+
|
|
17048
|
+
.mask-triangle {
|
|
17049
|
+
clip-path: polygon(50% 0, 100% 100%, 0 100%);
|
|
17050
|
+
}
|
|
17051
|
+
}
|
|
17052
|
+
|
|
17053
|
+
/**
|
|
17054
|
+
* Sidebar Layout Composition Primitive
|
|
17055
|
+
* Persistent, responsive sidebar + content grid; application code owns state.
|
|
17056
|
+
*/
|
|
17057
|
+
|
|
17058
|
+
@layer components {
|
|
17059
|
+
.sidebar-layout {
|
|
17060
|
+
--sidebar-layout-width: 17.5rem;
|
|
17061
|
+
--sidebar-layout-compact-width: 5rem;
|
|
17062
|
+
container-type: inline-size;
|
|
17063
|
+
container-name: sidebar-layout;
|
|
17064
|
+
display: grid;
|
|
17065
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
17066
|
+
grid-template-areas: "sidebar content";
|
|
17067
|
+
width: 100%;
|
|
17068
|
+
min-width: 0;
|
|
17069
|
+
min-height: 0;
|
|
17070
|
+
background-color: var(--color-surface);
|
|
17071
|
+
color: var(--color-on-surface);
|
|
17072
|
+
}
|
|
17073
|
+
|
|
17074
|
+
.sidebar-layout-sidebar {
|
|
17075
|
+
display: none;
|
|
17076
|
+
grid-area: sidebar;
|
|
17077
|
+
width: var(--sidebar-layout-width);
|
|
17078
|
+
min-width: 0;
|
|
17079
|
+
overflow: hidden;
|
|
17080
|
+
background-color: var(--color-surface-container-low);
|
|
17081
|
+
color: var(--color-on-surface);
|
|
17082
|
+
border-inline-end: 1px solid var(--color-outline-variant);
|
|
17083
|
+
}
|
|
17084
|
+
|
|
17085
|
+
.sidebar-layout-content {
|
|
17086
|
+
grid-area: content;
|
|
17087
|
+
min-width: 0;
|
|
17088
|
+
}
|
|
17089
|
+
|
|
17090
|
+
.sidebar-layout-start {
|
|
17091
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
17092
|
+
grid-template-areas: "sidebar content";
|
|
17093
|
+
}
|
|
17094
|
+
|
|
17095
|
+
.sidebar-layout-end {
|
|
17096
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
17097
|
+
grid-template-areas: "content sidebar";
|
|
17098
|
+
}
|
|
17099
|
+
|
|
17100
|
+
.sidebar-layout-end > .sidebar-layout-sidebar {
|
|
17101
|
+
border-inline-start: 1px solid var(--color-outline-variant);
|
|
17102
|
+
border-inline-end: 0;
|
|
17103
|
+
}
|
|
17104
|
+
|
|
17105
|
+
@container sidebar-layout (min-width: 48rem) {
|
|
17106
|
+
.sidebar-layout-sidebar {
|
|
17107
|
+
display: block;
|
|
17108
|
+
}
|
|
17109
|
+
}
|
|
17110
|
+
|
|
17111
|
+
.sidebar-layout-compact > .sidebar-layout-sidebar {
|
|
17112
|
+
width: var(--sidebar-layout-compact-width);
|
|
17113
|
+
}
|
|
17114
|
+
|
|
17115
|
+
.sidebar-layout-hidden > .sidebar-layout-sidebar {
|
|
17116
|
+
display: none;
|
|
17117
|
+
}
|
|
17118
|
+
}
|
|
17119
|
+
|
|
17120
|
+
/**
|
|
17121
|
+
* Stack Composition Primitive
|
|
17122
|
+
* Overlaps arbitrary children in one intrinsic CSS Grid area.
|
|
17123
|
+
*/
|
|
17124
|
+
|
|
17125
|
+
@layer components {
|
|
17126
|
+
.stack {
|
|
17127
|
+
--stack-inline-offset: 0;
|
|
17128
|
+
--stack-block-offset: 0.375rem;
|
|
17129
|
+
display: inline-grid;
|
|
17130
|
+
place-items: stretch;
|
|
17131
|
+
isolation: isolate;
|
|
17132
|
+
}
|
|
17133
|
+
|
|
17134
|
+
.stack > * {
|
|
17135
|
+
grid-area: 1 / 1;
|
|
17136
|
+
position: relative;
|
|
17137
|
+
min-width: 0;
|
|
17138
|
+
}
|
|
17139
|
+
|
|
17140
|
+
.stack > :first-child {
|
|
17141
|
+
z-index: 3;
|
|
17142
|
+
}
|
|
17143
|
+
|
|
17144
|
+
.stack > :nth-child(2) {
|
|
17145
|
+
z-index: 2;
|
|
17146
|
+
inset-inline-start: var(--stack-inline-offset);
|
|
17147
|
+
inset-block-start: var(--stack-block-offset);
|
|
17148
|
+
}
|
|
17149
|
+
|
|
17150
|
+
.stack > :nth-child(n + 3) {
|
|
17151
|
+
z-index: 1;
|
|
17152
|
+
inset-inline-start: calc(var(--stack-inline-offset) * 2);
|
|
17153
|
+
inset-block-start: calc(var(--stack-block-offset) * 2);
|
|
17154
|
+
}
|
|
17155
|
+
|
|
17156
|
+
.stack-top {
|
|
17157
|
+
--stack-inline-offset: 0;
|
|
17158
|
+
--stack-block-offset: -0.375rem;
|
|
17159
|
+
}
|
|
17160
|
+
|
|
17161
|
+
.stack-bottom {
|
|
17162
|
+
--stack-inline-offset: 0;
|
|
17163
|
+
--stack-block-offset: 0.375rem;
|
|
17164
|
+
}
|
|
17165
|
+
|
|
17166
|
+
.stack-start {
|
|
17167
|
+
--stack-inline-offset: -0.375rem;
|
|
17168
|
+
--stack-block-offset: 0;
|
|
17169
|
+
}
|
|
17170
|
+
|
|
17171
|
+
.stack-end {
|
|
17172
|
+
--stack-inline-offset: 0.375rem;
|
|
17173
|
+
--stack-block-offset: 0;
|
|
17174
|
+
}
|
|
17175
|
+
}
|
|
17176
|
+
|
|
16772
17177
|
/**
|
|
16773
17178
|
* Home Page Layout
|
|
16774
17179
|
* App-bar-led public application shell driven by its containing width.
|