@schukai/monster 4.148.9 → 4.149.1

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 (207) hide show
  1. package/package.json +1 -1
  2. package/source/components/accessibility/stylesheet/locale-picker.mjs +61 -1
  3. package/source/components/content/image-editor.mjs +79 -11
  4. package/source/components/content/style/copy.pcss +1 -1
  5. package/source/components/content/stylesheet/camera-capture.mjs +1 -1
  6. package/source/components/content/stylesheet/copy.mjs +1 -1
  7. package/source/components/content/stylesheet/fetch-box.mjs +1 -1
  8. package/source/components/content/stylesheet/viewer.mjs +61 -1
  9. package/source/components/data/kpi-tile.mjs +5 -3
  10. package/source/components/data/metric-graph.mjs +22 -20
  11. package/source/components/data/metric.mjs +20 -18
  12. package/source/components/data/style/kpi-tile.pcss +65 -43
  13. package/source/components/data/style/metric-graph.pcss +35 -18
  14. package/source/components/data/style/metric.pcss +35 -28
  15. package/source/components/data/stylesheet/kpi-tile.mjs +61 -1
  16. package/source/components/data/stylesheet/metric-graph.mjs +61 -1
  17. package/source/components/data/stylesheet/metric.mjs +61 -1
  18. package/source/components/datatable/columnbar.mjs +4 -2
  19. package/source/components/datatable/datatable.mjs +73 -15
  20. package/source/components/datatable/filter/date-range.mjs +61 -61
  21. package/source/components/datatable/filter/date-time.mjs +5 -1
  22. package/source/components/datatable/filter/range.mjs +3 -3
  23. package/source/components/datatable/filter/select-operator.mjs +7 -1
  24. package/source/components/datatable/filter/text-operator.mjs +11 -3
  25. package/source/components/datatable/filter.mjs +16 -0
  26. package/source/components/datatable/pagination.mjs +122 -23
  27. package/source/components/datatable/style/column-bar.pcss +115 -23
  28. package/source/components/datatable/style/datatable.pcss +257 -29
  29. package/source/components/datatable/style/embedded-pagination.pcss +93 -43
  30. package/source/components/datatable/style/filter-button.pcss +1 -1
  31. package/source/components/datatable/style/filter-controls-defaults.pcss +49 -3
  32. package/source/components/datatable/style/filter-select.pcss +4 -1
  33. package/source/components/datatable/style/filter.pcss +18 -1
  34. package/source/components/datatable/stylesheet/change-button.mjs +61 -1
  35. package/source/components/datatable/stylesheet/column-bar.mjs +69 -1
  36. package/source/components/datatable/stylesheet/dataset.mjs +61 -1
  37. package/source/components/datatable/stylesheet/datatable.mjs +71 -1
  38. package/source/components/datatable/stylesheet/embedded-pagination.mjs +15 -1
  39. package/source/components/datatable/stylesheet/filter-button.mjs +1 -1
  40. package/source/components/datatable/stylesheet/filter-controls-defaults.mjs +1 -1
  41. package/source/components/datatable/stylesheet/filter-select.mjs +61 -1
  42. package/source/components/datatable/stylesheet/filter.mjs +61 -1
  43. package/source/components/datatable/stylesheet/pagination.mjs +67 -1
  44. package/source/components/datatable/stylesheet/save-button.mjs +61 -1
  45. package/source/components/datatable/stylesheet/status.mjs +61 -1
  46. package/source/components/form/action-button.mjs +2 -1
  47. package/source/components/form/button-bar.mjs +7 -2
  48. package/source/components/form/context-error.mjs +4 -3
  49. package/source/components/form/context-help.mjs +10 -4
  50. package/source/components/form/context-hint.mjs +1 -1
  51. package/source/components/form/context-info.mjs +1 -1
  52. package/source/components/form/context-note.mjs +1 -1
  53. package/source/components/form/context-success.mjs +1 -1
  54. package/source/components/form/context-warning.mjs +1 -1
  55. package/source/components/form/control-bar.mjs +300 -14
  56. package/source/components/form/credential-button.mjs +4 -2
  57. package/source/components/form/digits.mjs +28 -1
  58. package/source/components/form/field-set.mjs +30 -0
  59. package/source/components/form/login.mjs +13 -10
  60. package/source/components/form/password.mjs +6 -0
  61. package/source/components/form/popper-button.mjs +1 -1
  62. package/source/components/form/quantity.mjs +14 -6
  63. package/source/components/form/register-wizard.mjs +46 -26
  64. package/source/components/form/select.mjs +17 -10
  65. package/source/components/form/sheet.mjs +13 -2
  66. package/source/components/form/style/action-button.pcss +131 -5
  67. package/source/components/form/style/button-bar.pcss +204 -3
  68. package/source/components/form/style/control-bar.pcss +254 -26
  69. package/source/components/form/style/digits.pcss +7 -6
  70. package/source/components/form/style/input-group.pcss +65 -1
  71. package/source/components/form/style/login.pcss +1 -1
  72. package/source/components/form/style/mixin/field-set-layout.pcss +8 -0
  73. package/source/components/form/style/password.pcss +25 -1
  74. package/source/components/form/style/popper-button.pcss +1 -0
  75. package/source/components/form/style/quantity.pcss +11 -20
  76. package/source/components/form/style/select.pcss +52 -7
  77. package/source/components/form/style/sheet.pcss +70 -1
  78. package/source/components/form/style/state-button.pcss +5 -2
  79. package/source/components/form/style/toggle-switch.pcss +7 -4
  80. package/source/components/form/stylesheet/action-button.mjs +63 -1
  81. package/source/components/form/stylesheet/button-bar.mjs +153 -1
  82. package/source/components/form/stylesheet/button.mjs +67 -1
  83. package/source/components/form/stylesheet/control-bar.mjs +163 -1
  84. package/source/components/form/stylesheet/digits.mjs +1 -1
  85. package/source/components/form/stylesheet/field-layout.mjs +1 -1
  86. package/source/components/form/stylesheet/field-set.mjs +1 -1
  87. package/source/components/form/stylesheet/form.mjs +1 -1
  88. package/source/components/form/stylesheet/input-group.mjs +15 -1
  89. package/source/components/form/stylesheet/login.mjs +1 -1
  90. package/source/components/form/stylesheet/password.mjs +7 -1
  91. package/source/components/form/stylesheet/popper-button.mjs +61 -1
  92. package/source/components/form/stylesheet/quantity.mjs +1 -1
  93. package/source/components/form/stylesheet/register-wizard.mjs +1 -1
  94. package/source/components/form/stylesheet/select.mjs +3 -1
  95. package/source/components/form/stylesheet/sheet.mjs +1 -1
  96. package/source/components/form/stylesheet/state-button.mjs +3 -1
  97. package/source/components/form/stylesheet/toggle-switch.mjs +1 -1
  98. package/source/components/form/stylesheet/wizard.mjs +1 -1
  99. package/source/components/form/util/floating-ui.mjs +35 -7
  100. package/source/components/host/call-button.mjs +3 -1
  101. package/source/components/host/stylesheet/call-button.mjs +61 -1
  102. package/source/components/host/stylesheet/host.mjs +1 -1
  103. package/source/components/host/stylesheet/toggle-button.mjs +61 -1
  104. package/source/components/layout/full-screen.mjs +31 -23
  105. package/source/components/layout/iframe.mjs +5 -1
  106. package/source/components/layout/popper.mjs +34 -4
  107. package/source/components/layout/style/full-screen.pcss +94 -23
  108. package/source/components/layout/style/split-panel.pcss +57 -5
  109. package/source/components/layout/style/tabs.pcss +277 -47
  110. package/source/components/layout/style/vertical-tabs.pcss +147 -0
  111. package/source/components/layout/stylesheet/collapse.mjs +61 -1
  112. package/source/components/layout/stylesheet/details.mjs +61 -1
  113. package/source/components/layout/stylesheet/full-screen.mjs +23 -1
  114. package/source/components/layout/stylesheet/overlay.mjs +1 -1
  115. package/source/components/layout/stylesheet/panel.mjs +1 -1
  116. package/source/components/layout/stylesheet/slider.mjs +1 -1
  117. package/source/components/layout/stylesheet/split-panel.mjs +17 -1
  118. package/source/components/layout/stylesheet/tabs.mjs +97 -1
  119. package/source/components/layout/stylesheet/vertical-tabs.mjs +33 -95
  120. package/source/components/layout/tabs.mjs +63 -0
  121. package/source/components/layout/vertical-tabs.mjs +63 -0
  122. package/source/components/navigation/stylesheet/site-navigation.mjs +1 -1
  123. package/source/components/navigation/stylesheet/table-of-content.mjs +1 -1
  124. package/source/components/navigation/stylesheet/wizard-navigation.mjs +1 -1
  125. package/source/components/navigation/table-of-content.mjs +13 -0
  126. package/source/components/notify/style/notify.pcss +1 -2
  127. package/source/components/notify/stylesheet/message.mjs +1 -1
  128. package/source/components/notify/stylesheet/notify.mjs +1 -1
  129. package/source/components/state/style/log.pcss +1 -0
  130. package/source/components/state/style/state.pcss +5 -1
  131. package/source/components/state/stylesheet/log.mjs +1 -1
  132. package/source/components/state/stylesheet/state.mjs +7 -1
  133. package/source/components/style/button.css +61 -205
  134. package/source/components/style/button.pcss +78 -34
  135. package/source/components/style/common.css +1 -170
  136. package/source/components/style/common.pcss +5 -9
  137. package/source/components/style/form.css +1 -49
  138. package/source/components/style/form.pcss +34 -9
  139. package/source/components/style/link.css +1 -39
  140. package/source/components/style/link.pcss +8 -16
  141. package/source/components/style/mixin/button.pcss +21 -11
  142. package/source/components/style/mixin/property.pcss +8 -0
  143. package/source/components/style/mixin/skeleton.pcss +11 -5
  144. package/source/components/style/normalize.css +1 -144
  145. package/source/components/style/normalize.pcss +5 -5
  146. package/source/components/style/property.css +1 -387
  147. package/source/components/style/skeleton.css +1 -198
  148. package/source/components/style/skeleton.pcss +8 -2
  149. package/source/components/style/theme-modern.css +74 -0
  150. package/source/components/style/theme-modern.pcss +498 -0
  151. package/source/components/stylesheet/button.mjs +61 -1
  152. package/source/components/stylesheet/common.mjs +1 -1
  153. package/source/components/stylesheet/form.mjs +1 -1
  154. package/source/components/stylesheet/link.mjs +1 -1
  155. package/source/components/stylesheet/normalize.mjs +1 -1
  156. package/source/components/stylesheet/property.mjs +1 -1
  157. package/source/components/stylesheet/skeleton.mjs +1 -1
  158. package/source/components/stylesheet/theme-modern.mjs +110 -0
  159. package/source/components/time/stylesheet/day.mjs +61 -1
  160. package/source/components/time/stylesheet/month-calendar.mjs +61 -1
  161. package/source/components/time/timeline/stylesheet/appointment.mjs +61 -1
  162. package/source/components/time/timeline/stylesheet/segment.mjs +61 -1
  163. package/source/components/tree-menu/style/tree-menu.pcss +26 -37
  164. package/source/components/tree-menu/stylesheet/tree-menu.mjs +1 -1
  165. package/test/cases/components/content/image-editor.mjs +19 -0
  166. package/test/cases/components/datatable/accessibility-defaults.mjs +112 -0
  167. package/test/cases/components/datatable/filter-availability.mjs +37 -0
  168. package/test/cases/components/datatable/filter-date-range-layout.mjs +40 -0
  169. package/test/cases/components/datatable/filter-select-operator.mjs +118 -0
  170. package/test/cases/components/datatable/mobile-layout.mjs +254 -0
  171. package/test/cases/components/datatable/pagination.mjs +79 -0
  172. package/test/cases/components/datatable/responsive-breakpoint.mjs +41 -0
  173. package/test/cases/components/datatable/selection.mjs +149 -0
  174. package/test/cases/components/form/action-button-style.mjs +85 -0
  175. package/test/cases/components/form/button-bar.mjs +222 -3
  176. package/test/cases/components/form/context-theme-colors.mjs +59 -0
  177. package/test/cases/components/form/control-bar.mjs +228 -3
  178. package/test/cases/components/form/control-heights.mjs +103 -0
  179. package/test/cases/components/form/digits-accessibility.mjs +65 -0
  180. package/test/cases/components/form/field-set.mjs +54 -0
  181. package/test/cases/components/form/floating-ui.mjs +74 -0
  182. package/test/cases/components/form/input-group.mjs +61 -28
  183. package/test/cases/components/form/login.mjs +47 -0
  184. package/test/cases/components/form/password.mjs +63 -0
  185. package/test/cases/components/form/popper-button.mjs +30 -15
  186. package/test/cases/components/form/quantity-accessibility.mjs +46 -0
  187. package/test/cases/components/form/register-wizard.mjs +79 -0
  188. package/test/cases/components/form/select.mjs +94 -2
  189. package/test/cases/components/form/sheet.mjs +56 -2
  190. package/test/cases/components/host/toggle-button.mjs +50 -0
  191. package/test/cases/components/layout/full-screen.mjs +60 -0
  192. package/test/cases/components/layout/iframe-accessibility.mjs +44 -0
  193. package/test/cases/components/layout/popper.mjs +128 -0
  194. package/test/cases/components/layout/slit-panel.mjs +30 -1
  195. package/test/cases/components/layout/tabs.mjs +93 -0
  196. package/test/cases/components/navigation/table-of-content.mjs +18 -0
  197. package/test/cases/components/state/state-style.mjs +31 -0
  198. package/test/cases/components/style/action-menu.mjs +74 -0
  199. package/test/cases/components/style/button-sizing.mjs +31 -0
  200. package/test/cases/components/style/form-controls.mjs +50 -0
  201. package/test/cases/components/style/kpi-tile.mjs +60 -0
  202. package/test/cases/components/style/legacy-theme-compatibility.mjs +137 -0
  203. package/test/cases/components/style/metric-layout.mjs +94 -0
  204. package/test/cases/components/style/skeleton.mjs +69 -0
  205. package/test/cases/components/style/theme-component-catalog.mjs +853 -0
  206. package/test/cases/components/style/theme-modern.mjs +439 -0
  207. package/test/cases/components/style/theme-review-regressions.mjs +41 -0
@@ -1,50 +1,2 @@
1
1
  /** generated from form.pcss **/
2
- input,
3
- meter,
4
- progress,
5
- select,
6
- textarea {
7
- accent-color: var(--monster-color-secondary-2);
8
- box-sizing: border-box;
9
- color: var(--monster-color-primary-1);
10
- background-color: var(--monster-bg-color-primary-1);
11
- font-family: inherit;
12
- font-size: 100%;
13
- margin: 0;
14
- outline: none;
15
- border-width: var(--monster-theme-control-border-width);
16
- border-radius: var(--monster-theme-control-border-radius);
17
- border-style: var(--monster-theme-control-border-style);
18
- border-color: var(--monster-theme-control-border-color);
19
- }
20
- input,
21
- select,
22
- textarea {
23
- padding: 0.4rem 0.6rem;
24
- height: -moz-fit-content;
25
- height: fit-content;
26
- }
27
- textarea {
28
- resize: vertical;
29
- min-height: 6rem;
30
- }
31
- input[type="color"] {
32
- padding: 0.1rem;
33
- margin: 0;
34
- height: 2rem;
35
- width: 2rem;
36
- }
37
- input:hover:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
38
- select:hover,
39
- textarea:hover {
40
- transition:
41
- background 0.8s,
42
- color 0.25s 0.0833333333s;
43
- box-shadow: var(--monster-box-shadow-2);
44
- }
45
- input:focus,
46
- select:focus,
47
- textarea:focus {
48
- outline: 1px dashed var(--monster-color-selection-3);
49
- outline-offset: 3px;
50
- }
2
+ input,meter,progress,select,textarea{accent-color:var(--monster-color-secondary-2);box-sizing:border-box;color:var(--monster-color-primary-1);background-color:var(--monster-bg-color-primary-1);font-family:inherit;font-size:100%;margin:0;outline:none;border-width:var(--monster-theme-control-border-width);border-radius:var(--monster-theme-control-border-radius);border-style:var(--monster-theme-control-border-style);border-color:var(--monster-theme-control-border-color)}input[readonly]:not([type=checkbox]):not([type=radio]),textarea[readonly]{background-color:var(--monster-bg-color-primary-2);color:var(--monster-color-primary-2);cursor:default}input:not([type=checkbox]):not([type=radio]),select,textarea{min-height:var(--monster-control-min-block-size,auto);padding:var(--monster-control-padding-block,.4rem) var(--monster-control-padding-inline,.6rem);height:-moz-fit-content;height:fit-content}input:is([type=checkbox],[type=radio]){block-size:1rem;inline-size:1rem;min-height:0;padding:0;vertical-align:middle}textarea{resize:vertical;min-height:6rem}input[type=color]{padding:.1rem;margin:0;height:2rem;width:2rem}input:hover:not([type=radio]):not([type=checkbox]):not([type=range]):not([readonly]):not([disabled]),select:hover:not(:disabled),textarea:hover:not([readonly]):not([disabled]){transition:background .8s,color .25s .0833333333s;box-shadow:var(--monster-box-shadow-2)}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:var(--monster-focus-ring-width,2px) var(--monster-focus-ring-style,solid) var(--monster-focus-ring-color,currentColor);outline-offset:var(--monster-focus-ring-offset,2px)}
@@ -28,7 +28,6 @@ textarea {
28
28
  background-color: var(--monster-bg-color-primary-1);
29
29
  font-family: inherit;
30
30
  font-size: 100%;
31
- padding: 0.4rem 0.6rem;
32
31
  margin: 0;
33
32
  outline: none;
34
33
 
@@ -37,8 +36,31 @@ textarea {
37
36
  border-style: var(--monster-theme-control-border-style);
38
37
  border-color: var(--monster-theme-control-border-color);
39
38
 
39
+ }
40
+
41
+ input[readonly]:not([type="checkbox"]):not([type="radio"]),
42
+ textarea[readonly] {
43
+ background-color: var(--monster-bg-color-primary-2);
44
+ color: var(--monster-color-primary-2);
45
+ cursor: default;
46
+ }
47
+
48
+ input:not([type="checkbox"]):not([type="radio"]),
49
+ select,
50
+ textarea {
51
+ min-height: var(--monster-control-min-block-size, auto);
52
+ padding:
53
+ var(--monster-control-padding-block, 0.4rem)
54
+ var(--monster-control-padding-inline, 0.6rem);
40
55
  height: fit-content;
56
+ }
41
57
 
58
+ input:is([type="checkbox"], [type="radio"]) {
59
+ block-size: 1rem;
60
+ inline-size: 1rem;
61
+ min-height: 0;
62
+ padding: 0;
63
+ vertical-align: middle;
42
64
  }
43
65
 
44
66
  textarea {
@@ -53,16 +75,19 @@ input[type="color"] {
53
75
  width: 2rem;
54
76
  }
55
77
 
56
- input:hover:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
57
- select:hover,
58
- textarea:hover {
78
+ input:hover:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([readonly]):not([disabled]),
79
+ select:hover:not(:disabled),
80
+ textarea:hover:not([readonly]):not([disabled]) {
59
81
  @mixin box-hover;
60
82
  }
61
83
 
62
84
 
63
- input:focus,
64
- select:focus,
65
- textarea:focus {
66
- outline: 1px dashed var(--monster-color-selection-3);
67
- outline-offset: 3px;
85
+ input:focus-visible,
86
+ select:focus-visible,
87
+ textarea:focus-visible {
88
+ outline:
89
+ var(--monster-focus-ring-width, 2px)
90
+ var(--monster-focus-ring-style, solid)
91
+ var(--monster-focus-ring-color, currentColor);
92
+ outline-offset: var(--monster-focus-ring-offset, 2px);
68
93
  }
@@ -1,40 +1,2 @@
1
1
  /** generated from link.pcss **/
2
- a,
3
- a:active,
4
- a:focus,
5
- a:hover,
6
- a:link,
7
- a:visited {
8
- color: var(--monster-color-secondary-1);
9
- text-decoration: none;
10
- outline: none;
11
- transition:
12
- color 0.3s ease-in-out,
13
- text-decoration-color 0.3s ease-in-out;
14
- }
15
- a:active,
16
- a:focus,
17
- a:hover {
18
- color: var(--monster-color-primary-2);
19
- text-decoration: underline;
20
- text-decoration-color: var(--monster-color-secondary-1);
21
- text-decoration-thickness: 1px;
22
- text-underline-offset: 2px;
23
- }
24
- a:focus {
25
- outline: 1px dashed var(--monster-color-selection-1);
26
- outline-offset: 2px;
27
- }
28
- @media (prefers-color-scheme: dark) {
29
- a,
30
- a:active,
31
- a:focus,
32
- a:hover,
33
- a:link,
34
- a:visited {
35
- color: var(--monster-color-amber-2);
36
- }
37
- a:focus {
38
- outline: 1px dashed var(--monster-color-selection-4);
39
- }
40
- }
2
+ a,a:active,a:focus-visible,a:hover,a:link,a:visited{color:var(--monster-color-secondary-1);text-decoration:none;outline:none;transition:color .3s ease-in-out,text-decoration-color .3s ease-in-out}a:active,a:focus-visible,a:hover{color:var(--monster-color-primary-2);text-decoration:underline;text-decoration-color:var(--monster-color-secondary-1 );text-decoration-thickness:1px;text-underline-offset:2px}a:focus-visible{outline:var(--monster-focus-ring-width,2px) var(--monster-focus-ring-style,solid) var(--monster-focus-ring-color,currentColor);outline-offset:var(--monster-focus-ring-offset,2px)}
@@ -13,7 +13,7 @@ Note the order there is important (LVHA-order):
13
13
  @see https://developer.mozilla.org/en-US/docs/Web/CSS/:link?retiredLocale=de
14
14
 
15
15
  */
16
- a, a:link, a:visited, a:hover, a:active, a:focus {
16
+ a, a:link, a:visited, a:hover, a:active, a:focus-visible {
17
17
  color: var(--monster-color-secondary-1);
18
18
  text-decoration: none;
19
19
  outline: none;
@@ -22,7 +22,7 @@ a, a:link, a:visited, a:hover, a:active, a:focus {
22
22
 
23
23
 
24
24
 
25
- a:hover, a:active, a:focus {
25
+ a:hover, a:active, a:focus-visible {
26
26
  color: var(--monster-color-primary-2);
27
27
  text-decoration: underline;
28
28
  text-decoration-color: var(--monster-color-secondary-1 );
@@ -30,18 +30,10 @@ a:hover, a:active, a:focus {
30
30
  text-underline-offset: 2px;
31
31
  }
32
32
 
33
- a:focus {
34
- outline: 1px dashed var(--monster-color-selection-1);
35
- outline-offset: 2px;
36
- }
37
-
38
- @media (prefers-color-scheme: dark) {
39
-
40
- a, a:link, a:visited, a:hover, a:active, a:focus {
41
- color: var(--monster-color-amber-2);
42
- }
43
-
44
- a:focus {
45
- outline: 1px dashed var(--monster-color-selection-4);
46
- }
33
+ a:focus-visible {
34
+ outline:
35
+ var(--monster-focus-ring-width, 2px)
36
+ var(--monster-focus-ring-style, solid)
37
+ var(--monster-focus-ring-color, currentColor);
38
+ outline-offset: var(--monster-focus-ring-offset, 2px);
47
39
  }
@@ -1,5 +1,7 @@
1
1
  @define-mixin button {
2
2
 
3
+ box-sizing: border-box;
4
+
3
5
  /**
4
6
  * https://caniuse.com/?search=fill-available
5
7
  * https://lists.w3.org/Archives/Public/www-style/2015Aug/0127.html
@@ -12,7 +14,7 @@
12
14
  font-weight: 400;
13
15
  line-height: 1.5;
14
16
 
15
- text-align: center;
17
+ text-align: var(--monster-button-text-align, center);
16
18
  text-decoration: none;
17
19
 
18
20
  vertical-align: middle;
@@ -21,12 +23,23 @@
21
23
 
22
24
  user-select: none;
23
25
 
24
- border-width: var(--monster-border-width);
25
- border-radius: var(--monster-border-radius);
26
- border-style: var(--monster-border-style);
27
- box-shadow: var(--monster-box-shadow-1);
28
-
29
- padding: .375rem .75rem;
26
+ border-width: var(--monster-button-border-width, var(--monster-border-width));
27
+ border-radius: var(
28
+ --monster-button-border-radius,
29
+ var(--monster-border-radius)
30
+ );
31
+ border-style: var(--monster-button-border-style, var(--monster-border-style));
32
+ box-shadow: var(--monster-button-box-shadow, var(--monster-box-shadow-1));
33
+
34
+ min-height: var(
35
+ --monster-button-min-block-size,
36
+ var(--monster-control-min-block-size, auto)
37
+ );
38
+ padding: var(
39
+ --monster-button-padding,
40
+ var(--monster-control-padding-block, .375rem)
41
+ var(--monster-control-padding-inline, .75rem)
42
+ );
30
43
  outline: none;
31
44
 
32
45
  background-position: center;
@@ -38,13 +51,10 @@
38
51
 
39
52
  display: flex;
40
53
  align-items: center;
41
- justify-content: center;
54
+ justify-content: var(--monster-button-justify-content, center);
42
55
  gap: .4rem;
43
56
 
44
57
  }
45
58
 
46
59
 
47
60
 
48
-
49
-
50
-
@@ -60,6 +60,14 @@
60
60
  --monster-border-width: 3px;
61
61
  --monster-border-radius: 0;
62
62
  --monster-outline-width: 1px;
63
+ --monster-focus-ring-width: 2px;
64
+ --monster-focus-ring-style: solid;
65
+ --monster-focus-ring-color: var(--monster-color-blue-4);
66
+ --monster-focus-ring-offset: 2px;
67
+
68
+ @media (prefers-color-scheme: dark) {
69
+ --monster-focus-ring-color: var(--monster-color-yellow-2);
70
+ }
63
71
  }
64
72
 
65
73
  @define-mixin defaultFontProperty {
@@ -1,13 +1,19 @@
1
1
  @define-mixin skeleton $width, $color, $height:100% {
2
- --monster-skeleton-color: $color;
3
- --monster-skeleton-color-50: rgba(from $color 255 255 255 / 0.5);
2
+ --monster-skeleton-color: var(--monster-skeleton-fill, $color);
3
+ --monster-skeleton-color-50: color-mix(
4
+ in srgb,
5
+ var(--monster-skeleton-color) 50%,
6
+ transparent
7
+ );
4
8
  --monster-skeleton-height: $height;
5
9
  --monster-skeleton-width: $width;
6
10
  --monster-skeleton: linear-gradient(
7
11
  99deg,
8
- var(--monster-skeleton-color) 0%,
9
- var(--monster-skeleton-color-50) 40%,
10
- transparent 70%
12
+ transparent 0%,
13
+ var(--monster-skeleton-color-50) 18%,
14
+ var(--monster-skeleton-color) 48%,
15
+ var(--monster-skeleton-color-50) 78%,
16
+ transparent 100%
11
17
  );
12
18
 
13
19
  background-image: var(--monster-skeleton);
@@ -1,145 +1,2 @@
1
1
  /** generated from normalize.pcss **/
2
- :where(html) {
3
- line-height: 1.15;
4
- -webkit-text-size-adjust: 100%;
5
- -moz-text-size-adjust: 100%;
6
- text-size-adjust: 100%;
7
- }
8
- :where(h1) {
9
- font-size: 2em;
10
- margin-block-end: 0.67em;
11
- margin-block-start: 0.67em;
12
- }
13
- :where(dl, ol, ul) :where(dl, ol, ul) {
14
- margin-block-end: 0;
15
- margin-block-start: 0;
16
- }
17
- :where(hr) {
18
- box-sizing: content-box;
19
- color: inherit;
20
- height: 0;
21
- }
22
- :where(abbr[title]) {
23
- text-decoration: underline;
24
- -webkit-text-decoration: underline dotted;
25
- text-decoration: underline dotted;
26
- }
27
- :where(b, strong) {
28
- font-weight: bolder;
29
- }
30
- :where(code, kbd, pre, samp) {
31
- font-family: monospace, monospace;
32
- font-size: 1em;
33
- }
34
- :where(small) {
35
- font-size: 80%;
36
- }
37
- :where(table) {
38
- border-color: currentColor;
39
- text-indent: 0;
40
- }
41
- :where(button, input, select) {
42
- margin: 0;
43
- }
44
- :where(button) {
45
- text-transform: none;
46
- }
47
- :where(
48
- button,
49
- input:is([type="button" i], [type="reset" i], [type="submit" i])
50
- ) {
51
- -webkit-appearance: button;
52
- }
53
- :where(progress) {
54
- vertical-align: baseline;
55
- }
56
- :where(select) {
57
- text-transform: none;
58
- }
59
- :where(textarea) {
60
- margin: 0;
61
- }
62
- :where(input[type="search" i]) {
63
- -webkit-appearance: textfield;
64
- outline-offset: -2px;
65
- }
66
- ::-webkit-inner-spin-button,
67
- ::-webkit-outer-spin-button {
68
- height: auto;
69
- }
70
- ::-webkit-input-placeholder {
71
- color: inherit;
72
- opacity: 0.54;
73
- }
74
- ::-webkit-search-decoration {
75
- -webkit-appearance: none;
76
- }
77
- ::-webkit-file-upload-button {
78
- -webkit-appearance: button;
79
- font: inherit;
80
- }
81
- :where(
82
- button,
83
- input:is(
84
- [type="button" i],
85
- [type="color" i],
86
- [type="reset" i],
87
- [type="submit" i]
88
- )
89
- )::-moz-focus-inner {
90
- border-style: none;
91
- padding: 0;
92
- }
93
- :where(
94
- button,
95
- input:is(
96
- [type="button" i],
97
- [type="color" i],
98
- [type="reset" i],
99
- [type="submit" i]
100
- )
101
- )::-moz-focusring {
102
- outline: 1px dotted ButtonText;
103
- }
104
- :where(:-moz-ui-invalid) {
105
- box-shadow: none;
106
- }
107
- :where(dialog) {
108
- background-color: #fff;
109
- border: solid;
110
- color: #000;
111
- height: -moz-fit-content;
112
- height: fit-content;
113
- left: 0;
114
- margin: auto;
115
- padding: 1em;
116
- position: absolute;
117
- right: 0;
118
- width: -moz-fit-content;
119
- width: fit-content;
120
- }
121
- :where(dialog:not([open])) {
122
- display: none;
123
- }
124
- :where(summary) {
125
- display: list-item;
126
- }
127
- html {
128
- height: 100%;
129
- }
130
- body,
131
- html {
132
- min-height: calc(100vh - 40px);
133
- }
134
- body {
135
- box-sizing: border-box;
136
- margin: 0;
137
- padding: 0;
138
- word-break: break-word;
139
- }
140
- body:focus-visible {
141
- outline: none;
142
- }
143
- :focus-visible {
144
- outline: none;
145
- }
2
+ :where(html){line-height:1.15;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}:where(h1){font-size:2em;margin-block-end:.67em;margin-block-start:.67em}:where(dl,ol,ul) :where(dl,ol,ul){margin-block-end:0;margin-block-start:0}:where(hr){box-sizing:content-box;color:inherit;height:0}:where(abbr[title]){text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(b,strong){font-weight:bolder}:where(code,kbd,pre,samp){font-family:monospace,monospace;font-size:1em}:where(small){font-size:80%}:where(table){border-color:currentColor;text-indent:0}:where(button,input,select){margin:0}:where(button){text-transform:none}:where(button,input:is([type=button i],[type=reset i],[type=submit i])){-webkit-appearance:button}:where(progress){vertical-align:baseline}:where(select){text-transform:none}:where(textarea){margin:0}:where(input[type=search i]){-webkit-appearance:textfield;outline-offset:-2px}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}:where(button,input:is([type=button i],[type=color i],[type=reset i],[type=submit i]))::-moz-focus-inner{border-style:none;padding:0}:where(button,input:is([type=button i],[type=color i],[type=reset i],[type=submit i]))::-moz-focusring{outline:1px dotted ButtonText}:where(:-moz-ui-invalid){box-shadow:none}:where(dialog){background-color:#fff;border:solid;color:#000;height:-moz-fit-content;height:fit-content;left:0;margin:auto;padding:1em;position:absolute;right:0;width:-moz-fit-content;width:fit-content}:where(dialog:not([open])){display:none}:where(summary){display:list-item}html{height:100%}body,html{min-height:calc(100vh - 40px)}body{box-sizing:border-box;margin:0;padding:0;word-break:break-word}:focus-visible{outline:var(--monster-focus-ring-width,2px) var(--monster-focus-ring-style,solid) var(--monster-focus-ring-color,currentColor);outline-offset:var(--monster-focus-ring-offset,2px)}
@@ -13,10 +13,10 @@ body {
13
13
  word-break: break-word;
14
14
  }
15
15
 
16
- body:focus-visible {
17
- outline: none;
18
- }
19
-
20
16
  :focus-visible {
21
- outline: none;
17
+ outline:
18
+ var(--monster-focus-ring-width, 2px)
19
+ var(--monster-focus-ring-style, solid)
20
+ var(--monster-focus-ring-color, currentColor);
21
+ outline-offset: var(--monster-focus-ring-offset, 2px);
22
22
  }