@yamatozhen/design_system 1.3.11 → 1.3.13

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.
Files changed (155) hide show
  1. package/dist/components/(buttons)/button/Button.js +1 -1
  2. package/dist/components/(buttons)/button/Button.styles.css +1 -1
  3. package/dist/components/(buttons)/button/Button.styles.js +1 -1
  4. package/dist/components/(buttons)/buttonSplit/ButtonSplit.js +1 -1
  5. package/dist/components/(buttons)/buttonSplit/ButtonSplit.styles.css +1 -1
  6. package/dist/components/(buttons)/fab/Fab.js +1 -1
  7. package/dist/components/(buttons)/fab/Fab.styles.css +1 -1
  8. package/dist/components/(color)/colorField/ColorField.styles.css +1 -1
  9. package/dist/components/(color)/colorPicker/ColorPicker.styles.css +1 -1
  10. package/dist/components/(color)/colorSlider/ColorSlider.styles.css +1 -1
  11. package/dist/components/(color)/colorSwatch/ColorSwatch.js +1 -1
  12. package/dist/components/(color)/colorSwatch/ColorSwatch.styles.css +1 -1
  13. package/dist/components/(color)/colorSwatchPicker/ColorSwatchPicker.js +1 -1
  14. package/dist/components/(color)/colorSwatchPicker/ColorSwatchPicker.styles.css +1 -1
  15. package/dist/components/(datetime)/calendar/Calendar.js +1 -1
  16. package/dist/components/(datetime)/calendar/Calendar.styles.css +1 -1
  17. package/dist/components/(datetime)/dateField/DateField.js +1 -1
  18. package/dist/components/(datetime)/rangeCalendar/RangeCalendar.styles.css +1 -1
  19. package/dist/components/(datetime)/shared/PickerShell.js +1 -1
  20. package/dist/components/(datetime)/shared/PickerShell.styles.css +1 -1
  21. package/dist/components/(datetime)/shared/PickerShell.styles.js +1 -1
  22. package/dist/components/(datetime)/timeField/TimeField.js +1 -1
  23. package/dist/components/(datetime)/timeField/TimeField.styles.css +1 -1
  24. package/dist/components/(effects)/ripple/Ripple.js +1 -1
  25. package/dist/components/(effects)/ripple/Ripple.styles.css +1 -1
  26. package/dist/components/(effects)/ripple/Ripple.styles.js +1 -1
  27. package/dist/components/(effects)/scrollShadow/ScrollShadow.js +1 -1
  28. package/dist/components/(effects)/scrollShadow/ScrollShadow.styles.css +1 -1
  29. package/dist/components/(effects)/scrollShadow/useScrollShadow.js +1 -1
  30. package/dist/components/(effects)/sinewave/Sinewave.js +1 -1
  31. package/dist/components/(feedback)/circularProgress/CircularProgress.js +1 -1
  32. package/dist/components/(feedback)/skeleton/Skeleton.js +1 -1
  33. package/dist/components/(feedback)/skeleton/Skeleton.styles.css +1 -1
  34. package/dist/components/(feedback)/skeleton/Skeleton.styles.js +1 -1
  35. package/dist/components/(feedback)/skeleton/constants.js +1 -0
  36. package/dist/components/(feedback)/skeleton/ghost.js +1 -0
  37. package/dist/components/(feedback)/skeleton/measure.js +1 -0
  38. package/dist/components/(feedback)/skeleton/reveal.js +1 -0
  39. package/dist/components/(feedback)/skeleton/shimmer.js +1 -0
  40. package/dist/components/(forms)/checkbox/Checkbox.js +1 -1
  41. package/dist/components/(forms)/checkbox/Checkbox.styles.css +1 -1
  42. package/dist/components/(forms)/checkboxGroup/CheckboxGroup.js +1 -1
  43. package/dist/components/(forms)/checkboxGroup/CheckboxGroup.styles.css +1 -1
  44. package/dist/components/(forms)/fieldset/Fieldset.js +1 -1
  45. package/dist/components/(forms)/fieldset/Fieldset.styles.css +1 -1
  46. package/dist/components/(forms)/fileUpload/FileUpload.styles.css +1 -1
  47. package/dist/components/(forms)/form/Form.js +1 -1
  48. package/dist/components/(forms)/form/Form.styles.css +1 -1
  49. package/dist/components/(forms)/input/Input.styles.css +1 -1
  50. package/dist/components/(forms)/inputOtp/InputOtp.js +1 -1
  51. package/dist/components/(forms)/numberField/NumberField.styles.css +1 -1
  52. package/dist/components/(forms)/radio/Radio.styles.css +1 -1
  53. package/dist/components/(forms)/radioGroup/RadioGroup.js +1 -1
  54. package/dist/components/(forms)/radioGroup/RadioGroup.styles.css +1 -1
  55. package/dist/components/(forms)/search/Search.styles.css +1 -1
  56. package/dist/components/(forms)/shared/FieldAdornment.styles.css +1 -1
  57. package/dist/components/(forms)/shared/FieldShell.js +1 -1
  58. package/dist/components/(forms)/shared/FieldShell.styles.css +1 -1
  59. package/dist/components/(forms)/shared/FieldShell.styles.js +1 -1
  60. package/dist/components/(forms)/shared/field.styles.css +1 -1
  61. package/dist/components/(forms)/slider/Slider.styles.css +1 -1
  62. package/dist/components/(forms)/switch/Switch.styles.css +1 -1
  63. package/dist/components/(layout)/accordion/Accordion.js +1 -1
  64. package/dist/components/(layout)/accordion/Accordion.styles.css +1 -1
  65. package/dist/components/(layout)/accordion/Accordion.styles.js +1 -1
  66. package/dist/components/(layout)/card/Card.js +1 -1
  67. package/dist/components/(layout)/card/Card.styles.css +1 -1
  68. package/dist/components/(layout)/codeSnippet/CodeSnippet.styles.css +1 -1
  69. package/dist/components/(layout)/grid/Grid.js +1 -1
  70. package/dist/components/(layout)/list/List.js +1 -1
  71. package/dist/components/(layout)/list/List.styles.css +1 -1
  72. package/dist/components/(layout)/section/Section.styles.css +1 -1
  73. package/dist/components/(layout)/table/Table.js +1 -1
  74. package/dist/components/(layout)/table/Table.styles.css +1 -1
  75. package/dist/components/(layout)/table/index.js +1 -1
  76. package/dist/components/(navigation)/breadcrumbs/Breadcrumbs.styles.css +1 -1
  77. package/dist/components/(navigation)/nav/Nav.js +1 -1
  78. package/dist/components/(navigation)/nav/Nav.styles.css +1 -1
  79. package/dist/components/(navigation)/nav/Nav.styles.js +1 -1
  80. package/dist/components/(navigation)/nav/NavContext.js +1 -1
  81. package/dist/components/(navigation)/nav/navAppBar/NavAppBar.styles.css +1 -1
  82. package/dist/components/(navigation)/nav/navBar/NavBar.js +1 -1
  83. package/dist/components/(navigation)/nav/navBar/NavBar.styles.css +1 -1
  84. package/dist/components/(navigation)/nav/navDrawer/NavDrawer.js +1 -1
  85. package/dist/components/(navigation)/nav/navDrawer/NavDrawer.styles.css +1 -1
  86. package/dist/components/(navigation)/nav/navMenu/NavMenu.js +1 -1
  87. package/dist/components/(navigation)/nav/navRail/NavRail.js +1 -1
  88. package/dist/components/(navigation)/nav/navRail/NavRail.styles.css +1 -1
  89. package/dist/components/(navigation)/nav/navRail/NavRail.styles.js +1 -1
  90. package/dist/components/(navigation)/pagination/Pagination.js +1 -1
  91. package/dist/components/(navigation)/pagination/Pagination.styles.css +1 -1
  92. package/dist/components/(navigation)/tabs/Tabs.js +1 -0
  93. package/dist/components/(navigation)/tabs/Tabs.styles.css +1 -0
  94. package/dist/components/(navigation)/tabs/Tabs.styles.js +2 -0
  95. package/dist/components/(navigation)/tabs/index.js +1 -0
  96. package/dist/components/(navigation)/tabs/usePillPhysics.js +1 -0
  97. package/dist/components/(overlays)/drawer/Drawer.js +1 -1
  98. package/dist/components/(overlays)/drawer/Drawer.styles.css +1 -1
  99. package/dist/components/(overlays)/drop/Drop.js +1 -1
  100. package/dist/components/(overlays)/drop/Drop.styles.css +1 -1
  101. package/dist/components/(overlays)/modal/Modal.js +1 -1
  102. package/dist/components/(overlays)/modal/Modal.styles.css +1 -1
  103. package/dist/components/(overlays)/popover/Popover.js +1 -1
  104. package/dist/components/(overlays)/popover/Popover.styles.css +1 -1
  105. package/dist/components/(overlays)/toast/Toast.js +1 -1
  106. package/dist/components/(overlays)/toast/Toast.styles.css +1 -1
  107. package/dist/components/(pickers)/select/Select.js +1 -1
  108. package/dist/components/(pickers)/shared/Picker.styles.css +1 -1
  109. package/dist/components/(primitives)/avatar/Avatar.styles.css +1 -1
  110. package/dist/components/(primitives)/badge/Badge.js +1 -1
  111. package/dist/components/(primitives)/badge/Badge.styles.css +1 -1
  112. package/dist/components/(primitives)/badge/Badge.styles.js +1 -1
  113. package/dist/components/(primitives)/code/Code.styles.css +1 -1
  114. package/dist/components/(primitives)/comment/Comment.js +1 -1
  115. package/dist/components/(primitives)/icon/Icon.js +1 -1
  116. package/dist/components/(primitives)/icon/Icon.styles.css +1 -0
  117. package/dist/components/(primitives)/icon/Icon.styles.js +2 -0
  118. package/dist/components/(primitives)/kbd/Kbd.styles.css +1 -1
  119. package/dist/components/(primitives)/label/Label.js +1 -1
  120. package/dist/components/(primitives)/label/Label.styles.css +1 -0
  121. package/dist/components/(primitives)/label/Label.styles.js +2 -0
  122. package/dist/components/(primitives)/separator/Separator.styles.css +1 -1
  123. package/dist/hooks/useErrorShake.js +1 -0
  124. package/dist/themes/theme.css +125 -99
  125. package/dist/themes/yz-palette-dark-hc.css +30 -30
  126. package/dist/themes/yz-palette-dark.css +29 -29
  127. package/dist/types/components/(buttons)/button/Button.d.ts +0 -72
  128. package/dist/types/components/(buttons)/button/index.d.ts +1 -1
  129. package/dist/types/components/(buttons)/fab/Fab.d.ts +1 -1
  130. package/dist/types/components/(buttons)/toggleButton/ButtonToggle.d.ts +1 -1
  131. package/dist/types/components/(datetime)/calendar/Calendar.d.ts +3 -3
  132. package/dist/types/components/(effects)/ripple/Ripple.d.ts +4 -0
  133. package/dist/types/components/(feedback)/skeleton/Skeleton.d.ts +18 -8
  134. package/dist/types/components/(feedback)/skeleton/constants.d.ts +25 -0
  135. package/dist/types/components/(feedback)/skeleton/ghost.d.ts +17 -0
  136. package/dist/types/components/(feedback)/skeleton/measure.d.ts +8 -0
  137. package/dist/types/components/(feedback)/skeleton/reveal.d.ts +12 -0
  138. package/dist/types/components/(feedback)/skeleton/shimmer.d.ts +7 -0
  139. package/dist/types/components/(forms)/form/Form.d.ts +2 -0
  140. package/dist/types/components/(layout)/accordion/Accordion.d.ts +16 -5
  141. package/dist/types/components/(layout)/table/Table.d.ts +3 -3
  142. package/dist/types/components/(layout)/table/index.d.ts +1 -1
  143. package/dist/types/components/(navigation)/nav/Nav.d.ts +1 -1
  144. package/dist/types/components/(navigation)/nav/NavContext.d.ts +3 -0
  145. package/dist/types/components/(navigation)/nav/navBar/NavBar.d.ts +3 -1
  146. package/dist/types/components/(navigation)/nav/navDrawer/NavDrawer.d.ts +3 -1
  147. package/dist/types/components/(navigation)/nav/navMenu/NavMenu.d.ts +3 -2
  148. package/dist/types/components/(navigation)/nav/navRail/NavRail.d.ts +3 -1
  149. package/dist/types/components/(navigation)/tabs/Tabs.d.ts +40 -0
  150. package/dist/types/components/(navigation)/tabs/index.d.ts +2 -0
  151. package/dist/types/components/(navigation)/tabs/usePillPhysics.d.ts +10 -0
  152. package/dist/types/components/(pickers)/select/Select.d.ts +2 -2
  153. package/dist/types/hooks/useErrorShake.d.ts +4 -0
  154. package/package.json +34 -32
  155. package/dist/package.exports.json +0 -403
@@ -56,42 +56,42 @@
56
56
  }
57
57
 
58
58
  .dark {
59
- --yz-palette-primary: oklch(83.8% 0.094 207.0);
60
- --yz-palette-on-primary: oklch(32.0% 0.055 207.0);
61
- --yz-palette-primary-container: oklch(39.9% 0.069 207.0);
62
- --yz-palette-on-primary-container: oklch(92.4% 0.074 207.0);
63
- --yz-palette-secondary: oklch(83.8% 0.037 206.0);
64
- --yz-palette-on-secondary: oklch(32.0% 0.031 206.0);
65
- --yz-palette-secondary-container: oklch(39.9% 0.025 206.0);
66
- --yz-palette-on-secondary-container: oklch(92.4% 0.032 206.0);
67
- --yz-palette-tertiary: oklch(83.8% 0.066 261.0);
68
- --yz-palette-on-tertiary: oklch(32.0% 0.101 261.0);
69
- --yz-palette-tertiary-container: oklch(39.9% 0.057 261.0);
70
- --yz-palette-on-tertiary-container: oklch(92.4% 0.036 261.0);
59
+ --yz-palette-primary: oklch(83.8% 0.094 207);
60
+ --yz-palette-on-primary: oklch(32% 0.055 207);
61
+ --yz-palette-primary-container: oklch(39.9% 0.069 207);
62
+ --yz-palette-on-primary-container: oklch(92.4% 0.074 207);
63
+ --yz-palette-secondary: oklch(83.8% 0.037 206);
64
+ --yz-palette-on-secondary: oklch(32% 0.031 206);
65
+ --yz-palette-secondary-container: oklch(39.9% 0.025 206);
66
+ --yz-palette-on-secondary-container: oklch(92.4% 0.032 206);
67
+ --yz-palette-tertiary: oklch(83.8% 0.066 261);
68
+ --yz-palette-on-tertiary: oklch(32% 0.101 261);
69
+ --yz-palette-tertiary-container: oklch(39.9% 0.057 261);
70
+ --yz-palette-on-tertiary-container: oklch(92.4% 0.036 261);
71
71
  --yz-palette-error: oklch(84.3% 0.086 27.5);
72
72
  --yz-palette-on-error: oklch(32.8% 0.134 27.5);
73
- --yz-palette-error-container: oklch(41.7% 0.170 27.5);
73
+ --yz-palette-error-container: oklch(41.7% 0.17 27.5);
74
74
  --yz-palette-on-error-container: oklch(92.3% 0.039 27.5);
75
75
  --yz-palette-success: oklch(85.3% 0.067 161.5);
76
76
  --yz-palette-on-success: oklch(32.8% 0.073 161.5);
77
77
  --yz-palette-success-container: oklch(41.7% 0.092 161.5);
78
78
  --yz-palette-on-success-container: oklch(95.8% 0.032 161.5);
79
- --yz-palette-surface-dim: oklch(18.9% 0.012 207.0);
80
- --yz-palette-surface: oklch(18.9% 0.012 207.0);
81
- --yz-palette-surface-bright: oklch(34.8% 0.013 207.0);
82
- --yz-palette-surface-container-lowest: oklch(16.5% 0.011 207.0);
83
- --yz-palette-surface-container-low: oklch(22.5% 0.013 207.0);
84
- --yz-palette-surface-container: oklch(24.2% 0.012 207.0);
85
- --yz-palette-surface-container-high: oklch(28.7% 0.012 207.0);
86
- --yz-palette-surface-container-highest: oklch(32.8% 0.013 207.0);
87
- --yz-palette-on-surface: oklch(91.7% 0.015 207.0);
88
- --yz-palette-on-surface-variant: oklch(83.1% 0.019 207.0);
89
- --yz-palette-outline: oklch(65.7% 0.018 207.0);
90
- --yz-palette-outline-variant: oklch(39.8% 0.017 207.0);
91
- --yz-palette-surface-tint: oklch(83.8% 0.094 207.0);
92
- --yz-palette-border: oklch(91.7% 0.020 207.0 / 0.03);
93
- --yz-palette-subtle: oklch(91.7% 0.015 207.0 / 0.03);
94
- --yz-palette-a11y-border: oklch(91.7% 0.015 207.0 / 0.9);
79
+ --yz-palette-surface-dim: oklch(18.9% 0.012 207);
80
+ --yz-palette-surface: oklch(18.9% 0.012 207);
81
+ --yz-palette-surface-bright: oklch(34.8% 0.013 207);
82
+ --yz-palette-surface-container-lowest: oklch(16.5% 0.011 207);
83
+ --yz-palette-surface-container-low: oklch(22.5% 0.013 207);
84
+ --yz-palette-surface-container: oklch(24.2% 0.012 207);
85
+ --yz-palette-surface-container-high: oklch(28.7% 0.012 207);
86
+ --yz-palette-surface-container-highest: oklch(32.8% 0.013 207);
87
+ --yz-palette-on-surface: oklch(91.7% 0.015 207);
88
+ --yz-palette-on-surface-variant: oklch(83.1% 0.019 207);
89
+ --yz-palette-outline: oklch(65.7% 0.018 207);
90
+ --yz-palette-outline-variant: oklch(39.8% 0.017 207);
91
+ --yz-palette-surface-tint: oklch(83.8% 0.094 207);
92
+ --yz-palette-border: oklch(91.7% 0.02 207 / 0.03);
93
+ --yz-palette-subtle: oklch(91.7% 0.015 207 / 0.03);
94
+ --yz-palette-a11y-border: oklch(91.7% 0.015 207 / 0.9);
95
95
  }
96
96
 
97
97
  .light-medium-contrast {
@@ -212,52 +212,56 @@
212
212
  }
213
213
 
214
214
  .dark-high-contrast {
215
- --yz-palette-primary: oklch(95.7% 0.019 207.0);
216
- --yz-palette-on-primary: oklch(0.0% 0.000 207.0);
217
- --yz-palette-primary-container: oklch(82.5% 0.087 207.0);
218
- --yz-palette-on-primary-container: oklch(15.6% 0.028 207.0);
219
- --yz-palette-secondary: oklch(95.7% 0.016 206.0);
220
- --yz-palette-on-secondary: oklch(0.0% 0.000 206.0);
221
- --yz-palette-secondary-container: oklch(82.5% 0.037 206.0);
222
- --yz-palette-on-secondary-container: oklch(15.6% 0.027 206.0);
223
- --yz-palette-tertiary: oklch(95.7% 0.020 261.0);
224
- --yz-palette-on-tertiary: oklch(0.0% 0.000 261.0);
225
- --yz-palette-tertiary-container: oklch(82.5% 0.067 261.0);
226
- --yz-palette-on-tertiary-container: oklch(15.6% 0.027 261.0);
215
+ --yz-palette-primary: oklch(95.7% 0.019 207);
216
+ --yz-palette-on-primary: oklch(0% 0 207);
217
+ --yz-palette-primary-container: oklch(82.5% 0.087 207);
218
+ --yz-palette-on-primary-container: oklch(15.6% 0.028 207);
219
+ --yz-palette-secondary: oklch(95.7% 0.016 206);
220
+ --yz-palette-on-secondary: oklch(0% 0 206);
221
+ --yz-palette-secondary-container: oklch(82.5% 0.037 206);
222
+ --yz-palette-on-secondary-container: oklch(15.6% 0.027 206);
223
+ --yz-palette-tertiary: oklch(95.7% 0.02 261);
224
+ --yz-palette-on-tertiary: oklch(0% 0 261);
225
+ --yz-palette-tertiary-container: oklch(82.5% 0.067 261);
226
+ --yz-palette-on-tertiary-container: oklch(15.6% 0.027 261);
227
227
  --yz-palette-error: oklch(95.7% 0.021 27.5);
228
- --yz-palette-on-error: oklch(0.0% 0.000 27.5);
228
+ --yz-palette-on-error: oklch(0% 0 27.5);
229
229
  --yz-palette-error-container: oklch(82.6% 0.097 27.5);
230
230
  --yz-palette-on-error-container: oklch(15.4% 0.064 27.5);
231
231
  --yz-palette-success: oklch(95.7% 0.016 161.5);
232
- --yz-palette-on-success: oklch(0.0% 0.000 161.5);
232
+ --yz-palette-on-success: oklch(0% 0 161.5);
233
233
  --yz-palette-success-container: oklch(82.6% 0.073 161.5);
234
234
  --yz-palette-on-success-container: oklch(15.9% 0.036 161.5);
235
- --yz-palette-surface-dim: oklch(18.9% 0.012 207.0);
236
- --yz-palette-surface: oklch(18.9% 0.012 207.0);
237
- --yz-palette-surface-bright: oklch(43.2% 0.013 207.0);
238
- --yz-palette-surface-container-lowest: oklch(0.0% 0.000 207.0);
239
- --yz-palette-surface-container-low: oklch(24.2% 0.012 207.0);
240
- --yz-palette-surface-container: oklch(31.2% 0.013 207.0);
241
- --yz-palette-surface-container-high: oklch(35.5% 0.012 207.0);
242
- --yz-palette-surface-container-highest: oklch(39.8% 0.013 207.0);
243
- --yz-palette-on-surface: oklch(100.0% 0.000 207.0);
244
- --yz-palette-on-surface-variant: oklch(100.0% 0.000 207.0);
245
- --yz-palette-outline: oklch(95.7% 0.016 207.0);
246
- --yz-palette-outline-variant: oklch(81.8% 0.020 207.0);
247
- --yz-palette-surface-tint: oklch(95.7% 0.019 207.0);
248
- --yz-palette-border: oklch(91.7% 0.020 207.0 / 0.03);
249
- --yz-palette-subtle: oklch(91.7% 0.015 207.0 / 0.03);
250
- --yz-palette-a11y-border: oklch(91.7% 0.015 207.0 / 0.9);
235
+ --yz-palette-surface-dim: oklch(18.9% 0.012 207);
236
+ --yz-palette-surface: oklch(18.9% 0.012 207);
237
+ --yz-palette-surface-bright: oklch(43.2% 0.013 207);
238
+ --yz-palette-surface-container-lowest: oklch(0% 0 207);
239
+ --yz-palette-surface-container-low: oklch(24.2% 0.012 207);
240
+ --yz-palette-surface-container: oklch(31.2% 0.013 207);
241
+ --yz-palette-surface-container-high: oklch(35.5% 0.012 207);
242
+ --yz-palette-surface-container-highest: oklch(39.8% 0.013 207);
243
+ --yz-palette-on-surface: oklch(100% 0 207);
244
+ --yz-palette-on-surface-variant: oklch(100% 0 207);
245
+ --yz-palette-outline: oklch(95.7% 0.016 207);
246
+ --yz-palette-outline-variant: oklch(81.8% 0.02 207);
247
+ --yz-palette-surface-tint: oklch(95.7% 0.019 207);
248
+ --yz-palette-border: oklch(91.7% 0.02 207 / 0.03);
249
+ --yz-palette-subtle: oklch(91.7% 0.015 207 / 0.03);
250
+ --yz-palette-a11y-border: oklch(91.7% 0.015 207 / 0.9);
251
251
  }
252
252
 
253
253
 
254
254
 
255
255
 
256
+ * {
257
+ outline: 1px solid rgba(255, 0, 0, 0) !important;
258
+ }
259
+
256
260
  .material-symbols-rounded {
257
261
  font-family: "Material Symbols Rounded", "DS Material Symbols";
258
262
  font-weight: normal;
259
263
  font-style: normal;
260
- font-size: 24px; /* Preferred icon size */
264
+ font-size: 1.4286rem; /* Preferred icon size */
261
265
  display: inline-block;
262
266
  line-height: normal;
263
267
  text-transform: none;
@@ -275,7 +279,7 @@
275
279
  "FILL" 0,
276
280
  "wght" 300,
277
281
  "GRAD" 0,
278
- "opsz" 24;
282
+ "opsz" 20;
279
283
 
280
284
  /* Support for all WebKit browsers. */
281
285
  -webkit-font-smoothing: antialiased;
@@ -301,6 +305,35 @@
301
305
  --font-size-base: 14px;
302
306
  }
303
307
 
308
+ body,
309
+ html {
310
+ background-color: var(--sys-background);
311
+ color: var(--yz-palette-on-surface);
312
+ width: 100%;
313
+ min-height: 100dvh;
314
+ overflow-x: hidden;
315
+ overflow-y: auto;
316
+ transition: background var(--transition-expressive-color);
317
+ margin: 0;
318
+ text-align: left;
319
+ display: flex;
320
+ flex-direction: row;
321
+ font-family: "Outfit", "DS Outfit", sans-serif;
322
+ font-size: var(--font-size-base);
323
+ font-weight: 400;
324
+ font-style: normal;
325
+ text-box-trim: trim-both;
326
+ text-box-edge: cap alphabetic;
327
+ font-optical-sizing: auto;
328
+ column-rule: var(--yz-palette-outline-variant);
329
+ font-synthesis: none;
330
+ text-rendering: optimizeLegibility;
331
+ -webkit-font-smoothing: antialiased;
332
+ -moz-osx-font-smoothing: grayscale;
333
+ }
334
+ P {
335
+ hyphens: auto;
336
+ }
304
337
  p,
305
338
  h1,
306
339
  h2,
@@ -354,33 +387,6 @@ a {
354
387
  a:hover {
355
388
  filter: var(--filterBrightness);
356
389
  }
357
-
358
- body,
359
- html {
360
- background-color: var(--yz-palette-surface);
361
- color: var(--yz-palette-on-surface);
362
- width: 100%;
363
- min-height: 100dvh;
364
- overflow-x: hidden;
365
- overflow-y: auto;
366
- transition: background var(--transition-expressive-color);
367
- margin: 0;
368
- text-align: left;
369
- display: flex;
370
- flex-direction: row;
371
- font-family: "Outfit", "DS Outfit", sans-serif;
372
- line-height: 1.5;
373
- font-size: var(--font-size-base);
374
- font-weight: 400;
375
- font-style: normal;
376
- font-optical-sizing: auto;
377
- column-rule: var(--yz-palette-outline-variant);
378
- font-synthesis: none;
379
- text-rendering: optimizeLegibility;
380
- -webkit-font-smoothing: antialiased;
381
- -moz-osx-font-smoothing: grayscale;
382
- }
383
-
384
390
  .MuiSvgIcon-root {
385
391
  stroke-width: 1;
386
392
  }
@@ -408,13 +414,33 @@ html {
408
414
  }
409
415
 
410
416
  /* ── Shared defaults ──────────────────────────────────────────────────────── */
417
+ @property --borderRadius-base {
418
+ syntax: "<length>";
419
+ inherits: true;
420
+ initial-value: 16px;
421
+ }
422
+
411
423
  :root {
412
- --transition-expressive-fast: 300ms cubic-bezier(0.61, 0.22, 0, 1.65);
413
- --transition-expressive: 350ms cubic-bezier(0.46, 0.19, 0.21, 1.38);
414
- --transition-expressive-slow: 400ms cubic-bezier(0.54, 0.23, 0.15, 1.23);
415
- --transition-expressive-slower: 1000ms cubic-bezier(0.01, 1.25, 0.23, 1.01);
416
- --transition-expressive-color: 0.2s cubic-bezier(0.12, 0.78, 0.17, 0.87);
424
+ /*Old transitions, to be sorted & deleted
425
+ --transition-expressive-fast: 400ms cubic-bezier(0, 1.75, 0.5, 1);
426
+ --transition-expressive: 300ms cubic-bezier(0, 1, 0.5, 1);
427
+ --transition-expressive-slow: 350ms cubic-bezier(0.54, 0.55, 0, 1);
428
+ --transition-expressive-slower: 750ms cubic-bezier(0.01, 1.25, 0.23, 1.01);
429
+ --transition-expressive-color: 200ms cubic-bezier(0.12, 0.78, 0.17, 0.87);
417
430
  --transition-expressive-fast-alt: cubic-bezier(0.01, 1.25, 0.23, 1.01);
431
+ */
432
+ --sys-background: var(--yz-palette-surface);
433
+ /* MARK: Expressive (Bounce) */
434
+ --transition-expressive-fast: 350ms cubic-bezier(0.43, 1.83, 0.21, 0.9);
435
+ --transition-expressive: 500ms cubic-bezier(0.4, 1.35, 0.22, 1);
436
+ --transition-expressive-slow: 650ms cubic-bezier(0.39, 1.29, 0.35, 0.98);
437
+ --transition-expressive-color: 150ms cubic-bezier(0.31, 0.94, 0.34, 1);
438
+
439
+ /* MARK: Standard (Ease-in-out) */
440
+ --transition-standard-fast: 250ms cubic-bezier(0.43, -0.01, 0.1, 1);
441
+ --transition-standard: 400ms cubic-bezier(0.51, -0.01, 0.1, 1);
442
+ --transition-standard-slow: 600ms cubic-bezier(0.64, 0, 0.05, 1);
443
+ --transition-standard-color: 200ms cubic-bezier(0.34, 0.8, 0.34, 1);
418
444
 
419
445
  /* Button gradient mix strength */
420
446
  --btn-gradient-mix: 30%;
@@ -435,15 +461,15 @@ html {
435
461
  cap for that one section. */
436
462
  --sectionMaxWidth: 1080px;
437
463
 
438
- --borderRadius-base: 24px;
439
- --borderRadius-xs: calc(var(--borderRadius-base)/3);
440
- --borderRadius-sm: calc(var(--borderRadius-base)/1.5);
441
- --borderRadius-md: calc(var(--borderRadius-base));
464
+ --borderRadius-base: 18px;
465
+ --borderRadius-xs: calc(var(--borderRadius-base) / 4);
466
+ --borderRadius-sm: calc(var(--borderRadius-base) / 1.5);
467
+ --borderRadius-md: var(--borderRadius-base);
442
468
  --borderRadius-l: calc(var(--borderRadius-base) * 1.5);
443
469
  --borderRadius-xl: calc(var(--borderRadius-base) * 2);
444
470
 
445
- --padding-base: 24px;
446
- --padding-xs: calc(var(--padding-base) / 3);
471
+ --padding-base: 18px;
472
+ --padding-xs: calc(var(--padding-base) / 4);
447
473
  --padding-s: calc(var(--padding-base) / 2);
448
474
  --padding-m: var(--padding-base);
449
475
  --padding-l: calc(var(--padding-base) * 1.5);
@@ -1,41 +1,41 @@
1
1
  @layer ds-defaults{
2
2
  .dark-high-contrast {
3
- --yz-palette-primary: oklch(95.7% 0.019 207.0);
4
- --yz-palette-on-primary: oklch(0.0% 0.000 207.0);
5
- --yz-palette-primary-container: oklch(82.5% 0.087 207.0);
6
- --yz-palette-on-primary-container: oklch(15.6% 0.028 207.0);
7
- --yz-palette-secondary: oklch(95.7% 0.016 206.0);
8
- --yz-palette-on-secondary: oklch(0.0% 0.000 206.0);
9
- --yz-palette-secondary-container: oklch(82.5% 0.037 206.0);
10
- --yz-palette-on-secondary-container: oklch(15.6% 0.027 206.0);
11
- --yz-palette-tertiary: oklch(95.7% 0.020 261.0);
12
- --yz-palette-on-tertiary: oklch(0.0% 0.000 261.0);
13
- --yz-palette-tertiary-container: oklch(82.5% 0.067 261.0);
14
- --yz-palette-on-tertiary-container: oklch(15.6% 0.027 261.0);
3
+ --yz-palette-primary: oklch(95.7% 0.019 207);
4
+ --yz-palette-on-primary: oklch(0% 0 207);
5
+ --yz-palette-primary-container: oklch(82.5% 0.087 207);
6
+ --yz-palette-on-primary-container: oklch(15.6% 0.028 207);
7
+ --yz-palette-secondary: oklch(95.7% 0.016 206);
8
+ --yz-palette-on-secondary: oklch(0% 0 206);
9
+ --yz-palette-secondary-container: oklch(82.5% 0.037 206);
10
+ --yz-palette-on-secondary-container: oklch(15.6% 0.027 206);
11
+ --yz-palette-tertiary: oklch(95.7% 0.02 261);
12
+ --yz-palette-on-tertiary: oklch(0% 0 261);
13
+ --yz-palette-tertiary-container: oklch(82.5% 0.067 261);
14
+ --yz-palette-on-tertiary-container: oklch(15.6% 0.027 261);
15
15
  --yz-palette-error: oklch(95.7% 0.021 27.5);
16
- --yz-palette-on-error: oklch(0.0% 0.000 27.5);
16
+ --yz-palette-on-error: oklch(0% 0 27.5);
17
17
  --yz-palette-error-container: oklch(82.6% 0.097 27.5);
18
18
  --yz-palette-on-error-container: oklch(15.4% 0.064 27.5);
19
19
  --yz-palette-success: oklch(95.7% 0.016 161.5);
20
- --yz-palette-on-success: oklch(0.0% 0.000 161.5);
20
+ --yz-palette-on-success: oklch(0% 0 161.5);
21
21
  --yz-palette-success-container: oklch(82.6% 0.073 161.5);
22
22
  --yz-palette-on-success-container: oklch(15.9% 0.036 161.5);
23
- --yz-palette-surface-dim: oklch(18.9% 0.012 207.0);
24
- --yz-palette-surface: oklch(18.9% 0.012 207.0);
25
- --yz-palette-surface-bright: oklch(43.2% 0.013 207.0);
26
- --yz-palette-surface-container-lowest: oklch(0.0% 0.000 207.0);
27
- --yz-palette-surface-container-low: oklch(24.2% 0.012 207.0);
28
- --yz-palette-surface-container: oklch(31.2% 0.013 207.0);
29
- --yz-palette-surface-container-high: oklch(35.5% 0.012 207.0);
30
- --yz-palette-surface-container-highest: oklch(39.8% 0.013 207.0);
31
- --yz-palette-on-surface: oklch(100.0% 0.000 207.0);
32
- --yz-palette-on-surface-variant: oklch(100.0% 0.000 207.0);
33
- --yz-palette-outline: oklch(95.7% 0.016 207.0);
34
- --yz-palette-outline-variant: oklch(81.8% 0.020 207.0);
35
- --yz-palette-surface-tint: oklch(95.7% 0.019 207.0);
36
- --yz-palette-border: oklch(91.7% 0.020 207.0 / 0.03);
37
- --yz-palette-subtle: oklch(91.7% 0.015 207.0 / 0.03);
38
- --yz-palette-a11y-border: oklch(91.7% 0.015 207.0 / 0.9);
23
+ --yz-palette-surface-dim: oklch(18.9% 0.012 207);
24
+ --yz-palette-surface: oklch(18.9% 0.012 207);
25
+ --yz-palette-surface-bright: oklch(43.2% 0.013 207);
26
+ --yz-palette-surface-container-lowest: oklch(0% 0 207);
27
+ --yz-palette-surface-container-low: oklch(24.2% 0.012 207);
28
+ --yz-palette-surface-container: oklch(31.2% 0.013 207);
29
+ --yz-palette-surface-container-high: oklch(35.5% 0.012 207);
30
+ --yz-palette-surface-container-highest: oklch(39.8% 0.013 207);
31
+ --yz-palette-on-surface: oklch(100% 0 207);
32
+ --yz-palette-on-surface-variant: oklch(100% 0 207);
33
+ --yz-palette-outline: oklch(95.7% 0.016 207);
34
+ --yz-palette-outline-variant: oklch(81.8% 0.02 207);
35
+ --yz-palette-surface-tint: oklch(95.7% 0.019 207);
36
+ --yz-palette-border: oklch(91.7% 0.02 207 / 0.03);
37
+ --yz-palette-subtle: oklch(91.7% 0.015 207 / 0.03);
38
+ --yz-palette-a11y-border: oklch(91.7% 0.015 207 / 0.9);
39
39
  }
40
40
 
41
41
  }
@@ -1,41 +1,41 @@
1
1
  @layer ds-defaults{
2
2
  .dark {
3
- --yz-palette-primary: oklch(83.8% 0.094 207.0);
4
- --yz-palette-on-primary: oklch(32.0% 0.055 207.0);
5
- --yz-palette-primary-container: oklch(39.9% 0.069 207.0);
6
- --yz-palette-on-primary-container: oklch(92.4% 0.074 207.0);
7
- --yz-palette-secondary: oklch(83.8% 0.037 206.0);
8
- --yz-palette-on-secondary: oklch(32.0% 0.031 206.0);
9
- --yz-palette-secondary-container: oklch(39.9% 0.025 206.0);
10
- --yz-palette-on-secondary-container: oklch(92.4% 0.032 206.0);
11
- --yz-palette-tertiary: oklch(83.8% 0.066 261.0);
12
- --yz-palette-on-tertiary: oklch(32.0% 0.101 261.0);
13
- --yz-palette-tertiary-container: oklch(39.9% 0.057 261.0);
14
- --yz-palette-on-tertiary-container: oklch(92.4% 0.036 261.0);
3
+ --yz-palette-primary: oklch(83.8% 0.094 207);
4
+ --yz-palette-on-primary: oklch(32% 0.055 207);
5
+ --yz-palette-primary-container: oklch(39.9% 0.069 207);
6
+ --yz-palette-on-primary-container: oklch(92.4% 0.074 207);
7
+ --yz-palette-secondary: oklch(83.8% 0.037 206);
8
+ --yz-palette-on-secondary: oklch(32% 0.031 206);
9
+ --yz-palette-secondary-container: oklch(39.9% 0.025 206);
10
+ --yz-palette-on-secondary-container: oklch(92.4% 0.032 206);
11
+ --yz-palette-tertiary: oklch(83.8% 0.066 261);
12
+ --yz-palette-on-tertiary: oklch(32% 0.101 261);
13
+ --yz-palette-tertiary-container: oklch(39.9% 0.057 261);
14
+ --yz-palette-on-tertiary-container: oklch(92.4% 0.036 261);
15
15
  --yz-palette-error: oklch(84.3% 0.086 27.5);
16
16
  --yz-palette-on-error: oklch(32.8% 0.134 27.5);
17
- --yz-palette-error-container: oklch(41.7% 0.170 27.5);
17
+ --yz-palette-error-container: oklch(41.7% 0.17 27.5);
18
18
  --yz-palette-on-error-container: oklch(92.3% 0.039 27.5);
19
19
  --yz-palette-success: oklch(85.3% 0.067 161.5);
20
20
  --yz-palette-on-success: oklch(32.8% 0.073 161.5);
21
21
  --yz-palette-success-container: oklch(41.7% 0.092 161.5);
22
22
  --yz-palette-on-success-container: oklch(95.8% 0.032 161.5);
23
- --yz-palette-surface-dim: oklch(18.9% 0.012 207.0);
24
- --yz-palette-surface: oklch(18.9% 0.012 207.0);
25
- --yz-palette-surface-bright: oklch(34.8% 0.013 207.0);
26
- --yz-palette-surface-container-lowest: oklch(16.5% 0.011 207.0);
27
- --yz-palette-surface-container-low: oklch(22.5% 0.013 207.0);
28
- --yz-palette-surface-container: oklch(24.2% 0.012 207.0);
29
- --yz-palette-surface-container-high: oklch(28.7% 0.012 207.0);
30
- --yz-palette-surface-container-highest: oklch(32.8% 0.013 207.0);
31
- --yz-palette-on-surface: oklch(91.7% 0.015 207.0);
32
- --yz-palette-on-surface-variant: oklch(83.1% 0.019 207.0);
33
- --yz-palette-outline: oklch(65.7% 0.018 207.0);
34
- --yz-palette-outline-variant: oklch(39.8% 0.017 207.0);
35
- --yz-palette-surface-tint: oklch(83.8% 0.094 207.0);
36
- --yz-palette-border: oklch(91.7% 0.020 207.0 / 0.03);
37
- --yz-palette-subtle: oklch(91.7% 0.015 207.0 / 0.03);
38
- --yz-palette-a11y-border: oklch(91.7% 0.015 207.0 / 0.9);
23
+ --yz-palette-surface-dim: oklch(18.9% 0.012 207);
24
+ --yz-palette-surface: oklch(18.9% 0.012 207);
25
+ --yz-palette-surface-bright: oklch(34.8% 0.013 207);
26
+ --yz-palette-surface-container-lowest: oklch(16.5% 0.011 207);
27
+ --yz-palette-surface-container-low: oklch(22.5% 0.013 207);
28
+ --yz-palette-surface-container: oklch(24.2% 0.012 207);
29
+ --yz-palette-surface-container-high: oklch(28.7% 0.012 207);
30
+ --yz-palette-surface-container-highest: oklch(32.8% 0.013 207);
31
+ --yz-palette-on-surface: oklch(91.7% 0.015 207);
32
+ --yz-palette-on-surface-variant: oklch(83.1% 0.019 207);
33
+ --yz-palette-outline: oklch(65.7% 0.018 207);
34
+ --yz-palette-outline-variant: oklch(39.8% 0.017 207);
35
+ --yz-palette-surface-tint: oklch(83.8% 0.094 207);
36
+ --yz-palette-border: oklch(91.7% 0.02 207 / 0.03);
37
+ --yz-palette-subtle: oklch(91.7% 0.015 207 / 0.03);
38
+ --yz-palette-a11y-border: oklch(91.7% 0.015 207 / 0.9);
39
39
  }
40
40
 
41
41
  }
@@ -13,78 +13,6 @@ export type ButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "c
13
13
  elevated?: boolean;
14
14
  loading?: boolean;
15
15
  };
16
- export declare const SIZE: {
17
- readonly xs: {
18
- readonly height: 32;
19
- readonly paddingBlock: 2;
20
- readonly paddingInline: {
21
- readonly narrow: 2;
22
- readonly standard: 4;
23
- readonly wide: 10;
24
- readonly full: 6;
25
- };
26
- readonly iconMargin: -2;
27
- readonly radius: "var(--borderRadius-sm)";
28
- readonly activeRadius: "var(--borderRadius-xs)";
29
- readonly spinner: "s";
30
- };
31
- readonly s: {
32
- readonly height: 36;
33
- readonly paddingBlock: 5;
34
- readonly paddingInline: {
35
- readonly narrow: 6;
36
- readonly standard: 8;
37
- readonly wide: 18;
38
- readonly full: 9;
39
- };
40
- readonly iconMargin: -4;
41
- readonly radius: "calc(var(--borderRadius-sm) + 4px)";
42
- readonly activeRadius: "calc(var(--borderRadius-xs) + 2px)";
43
- readonly spinner: "s";
44
- };
45
- readonly m: {
46
- readonly height: 44;
47
- readonly paddingBlock: 8;
48
- readonly paddingInline: {
49
- readonly narrow: 10;
50
- readonly standard: 14;
51
- readonly wide: 26;
52
- readonly full: 12;
53
- };
54
- readonly iconMargin: -6;
55
- readonly radius: "var(--borderRadius-md)";
56
- readonly activeRadius: "calc(var(--borderRadius-xs) + 4px)";
57
- readonly spinner: "s";
58
- };
59
- readonly l: {
60
- readonly height: 56;
61
- readonly paddingBlock: 15;
62
- readonly paddingInline: {
63
- readonly narrow: 16;
64
- readonly standard: 22;
65
- readonly wide: 36;
66
- readonly full: 20;
67
- };
68
- readonly iconMargin: -8;
69
- readonly radius: "calc(var(--borderRadius-md) + 4px)";
70
- readonly activeRadius: "calc(var(--borderRadius-sm) - 2px)";
71
- readonly spinner: "m";
72
- };
73
- readonly xl: {
74
- readonly height: 62;
75
- readonly paddingBlock: 18;
76
- readonly paddingInline: {
77
- readonly narrow: 18;
78
- readonly standard: 26;
79
- readonly wide: 41;
80
- readonly full: 26;
81
- };
82
- readonly iconMargin: -9;
83
- readonly radius: "calc(var(--borderRadius-md) + var(--borderRadius-xs))";
84
- readonly activeRadius: "var(--borderRadius-sm)";
85
- readonly spinner: "m";
86
- };
87
- };
88
16
  export type ButtonGroupContextValue = {
89
17
  variant: ButtonVariant;
90
18
  size: ButtonSize;
@@ -8,7 +8,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("rea
8
8
  elevated?: boolean;
9
9
  loading?: boolean;
10
10
  } & import("react").RefAttributes<HTMLButtonElement>> & {
11
- Toggle: import("react").ForwardRefExoticComponent<Omit<import("./Button").ButtonProps, "onChange" | "onToggle" | "value" | "variant"> & {
11
+ Toggle: import("react").ForwardRefExoticComponent<Omit<import("./Button").ButtonProps, "value" | "onChange" | "onToggle" | "variant"> & {
12
12
  variant?: import("../toggleButton/ButtonToggle.js").ButtonToggleVariant;
13
13
  value?: string;
14
14
  active?: boolean;
@@ -38,7 +38,7 @@ declare function Panel({ children }: RegionProps): React.JSX.Element;
38
38
  declare namespace Panel {
39
39
  var displayName: string;
40
40
  }
41
- declare const Fab: React.ForwardRefExoticComponent<Omit<ButtonProps, "reverse" | "children" | "content" | "color" | "width" | "variant"> & {
41
+ declare const Fab: React.ForwardRefExoticComponent<Omit<ButtonProps, "reverse" | "children" | "width" | "color" | "content" | "variant"> & {
42
42
  color?: FabColor;
43
43
  size?: ButtonSize;
44
44
  content: {
@@ -9,7 +9,7 @@ export type ButtonToggleProps = Omit<ButtonProps, "variant" | "value" | "onToggl
9
9
  defaultActive?: boolean;
10
10
  onChange?: (active: boolean) => void;
11
11
  };
12
- declare const ButtonToggle: React.ForwardRefExoticComponent<Omit<ButtonProps, "onChange" | "onToggle" | "value" | "variant"> & {
12
+ declare const ButtonToggle: React.ForwardRefExoticComponent<Omit<ButtonProps, "value" | "onChange" | "onToggle" | "variant"> & {
13
13
  variant?: ButtonToggleVariant;
14
14
  value?: string;
15
15
  active?: boolean;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { type WeekDay } from "../shared/dateUtils.js";
3
- export type CalendarSelectionMode = "single" | "multiple";
3
+ export type CalendarSelection = "single" | "multiple";
4
4
  export interface CalendarProps {
5
- selectionMode?: CalendarSelectionMode;
5
+ selection?: CalendarSelection;
6
6
  value?: Date | Date[] | null;
7
7
  defaultValue?: Date | Date[] | null;
8
8
  onChange?: (value: Date | Date[] | null) => void;
@@ -16,4 +16,4 @@ export interface CalendarProps {
16
16
  className?: string;
17
17
  style?: React.CSSProperties;
18
18
  }
19
- export default function Calendar({ selectionMode, value: controlledValue, defaultValue, onChange, min, max, isDateUnavailable, firstDayOfWeek, disabled, readOnly, "aria-label": ariaLabel, className, style, }: CalendarProps): React.JSX.Element;
19
+ export default function Calendar({ selection, value: controlledValue, defaultValue, onChange, min, max, isDateUnavailable, firstDayOfWeek, disabled, readOnly, "aria-label": ariaLabel, className, style, }: CalendarProps): React.JSX.Element;
@@ -1,13 +1,17 @@
1
1
  import React from "react";
2
+ export type RippleStyle = "base" | "dots" | "noise";
2
3
  export interface RippleHandle {
3
4
  triggerRipple: (e?: {
4
5
  clientX: number;
5
6
  clientY: number;
6
7
  }) => void;
8
+ releaseRipple: () => void;
7
9
  }
8
10
  interface RippleProps {
9
11
  rippleColor?: string;
10
12
  borderRadius?: number;
13
+ holdSize?: number;
14
+ rippleStyle?: RippleStyle;
11
15
  }
12
16
  declare const Ripple: React.ForwardRefExoticComponent<RippleProps & React.RefAttributes<RippleHandle>>;
13
17
  export default Ripple;
@@ -1,18 +1,28 @@
1
- import React from "react";
1
+ import { type CSSProperties, type ReactNode } from "react";
2
2
  export type SkeletonShape = "text" | "rect" | "circle";
3
3
  export type SkeletonAnimation = "shimmer" | "pulse" | "none";
4
4
  export type SkeletonRadius = "xs" | "s" | "m" | "l" | "xl";
5
- export type SkeletonProps = {
6
- shape?: SkeletonShape;
5
+ type SharedProps = {
7
6
  animation?: SkeletonAnimation;
7
+ className?: string;
8
+ style?: CSSProperties;
9
+ };
10
+ export type SkeletonBoneProps = SharedProps & {
11
+ shape?: SkeletonShape;
8
12
  lines?: number;
9
13
  width?: number | string;
10
14
  height?: number | string;
11
15
  size?: number;
12
16
  radius?: SkeletonRadius;
13
- loaded?: boolean;
14
- className?: string;
15
- style?: React.CSSProperties;
16
- children?: React.ReactNode;
17
+ loaded?: never;
18
+ children?: never;
19
+ };
20
+ export type SkeletonRevealProps = SharedProps & {
21
+ loaded: boolean;
22
+ children: ReactNode;
23
+ label?: string;
24
+ onReveal?: () => void;
17
25
  };
18
- export default function Skeleton({ shape, animation, lines, width, height, size, radius, loaded, className, style, children, }: SkeletonProps): React.JSX.Element;
26
+ export type SkeletonProps = SkeletonBoneProps | SkeletonRevealProps;
27
+ export default function Skeleton(props: SkeletonProps): import("react").JSX.Element;
28
+ export {};
@@ -0,0 +1,25 @@
1
+ export declare const ATTR_REVEAL = "data-sk-reveal";
2
+ export declare const ATTR_PANE = "data-sk-pane";
3
+ export declare const ATTR_LOADING = "data-sk-loading";
4
+ export declare const ATTR_GHOST = "data-sk-ghost";
5
+ export declare const ATTR_SNAPSHOT = "data-sk-snapshot";
6
+ export declare const ATTR_LAYER = "data-sk-layer";
7
+ export declare const ATTR_RECT = "data-sk-rect";
8
+ export declare const ATTR_INACTIVE = "data-sk-inactive";
9
+ export declare const ATTR_EXITING = "data-sk-exiting";
10
+ export declare const ATTR_COVERED = "data-sk-covered";
11
+ export declare const ATTR_OWN = "data-sk-own";
12
+ export declare const ATTR_IGNORE = "data-sk-ignore";
13
+ export declare const ATTR_BLOCK = "data-sk-block";
14
+ export declare const BASE = "var(--sk-base)";
15
+ export declare const HIGHLIGHT = "var(--sk-highlight)";
16
+ export declare const FADE_DURATION = 200;
17
+ export declare const CASCADE_SPREAD = 320;
18
+ export declare const RESIZE_DURATION = 280;
19
+ export declare const IMAGE_TIMEOUT = 10000;
20
+ export declare const DURATIONS: {
21
+ readonly shimmer: 4000;
22
+ readonly pulse: 2400;
23
+ };
24
+ export declare const TEXT_TAGS: string[];
25
+ export declare const MEDIA_TAGS: string[];