@graupl/graupl 1.0.0-alpha.11 → 1.0.0-alpha.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 (195) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/base/button.css +2 -0
  3. package/dist/base/button.css.map +1 -0
  4. package/dist/base/form.css +1 -1
  5. package/dist/base/form.css.map +1 -1
  6. package/dist/base/link.css +1 -1
  7. package/dist/base/link.css.map +1 -1
  8. package/dist/base/table.css +1 -1
  9. package/dist/base/table.css.map +1 -1
  10. package/dist/base.css +1 -1
  11. package/dist/base.css.map +1 -1
  12. package/dist/component/card.css +2 -0
  13. package/dist/component/card.css.map +1 -0
  14. package/dist/component/input-group.css +1 -1
  15. package/dist/component/input-group.css.map +1 -1
  16. package/dist/component/menu.css +2 -0
  17. package/dist/component/menu.css.map +1 -0
  18. package/dist/component/navigation.css +2 -0
  19. package/dist/component/navigation.css.map +1 -0
  20. package/dist/component.css +1 -1
  21. package/dist/component.css.map +1 -1
  22. package/dist/graupl.css +1 -1
  23. package/dist/graupl.css.map +1 -1
  24. package/dist/init.css +2 -0
  25. package/dist/init.css.map +1 -0
  26. package/dist/layout/columns.css +1 -1
  27. package/dist/layout/columns.css.map +1 -1
  28. package/dist/layout/container.css.map +1 -1
  29. package/dist/layout/flex-columns.css +2 -0
  30. package/dist/layout/flex-columns.css.map +1 -0
  31. package/dist/layout.css +1 -1
  32. package/dist/layout.css.map +1 -1
  33. package/dist/normalize.css +2 -0
  34. package/dist/normalize.css.map +1 -0
  35. package/dist/state/focus.css.map +1 -1
  36. package/dist/state.css.map +1 -1
  37. package/dist/theme/color.css.map +1 -1
  38. package/dist/theme/typography.css +1 -1
  39. package/dist/theme/typography.css.map +1 -1
  40. package/dist/theme.css +1 -1
  41. package/dist/theme.css.map +1 -1
  42. package/dist/utilities/order.css +2 -0
  43. package/dist/utilities/order.css.map +1 -0
  44. package/dist/utilities/spacing.css +1 -1
  45. package/dist/utilities/spacing.css.map +1 -1
  46. package/dist/utilities/typography.css +1 -1
  47. package/dist/utilities/typography.css.map +1 -1
  48. package/dist/utilities.css +1 -1
  49. package/dist/utilities.css.map +1 -1
  50. package/eslint.config.js +1 -0
  51. package/index.html +619 -326
  52. package/package.json +2 -1
  53. package/scss/base/button.scss +3 -0
  54. package/scss/base/form.scss +1 -1
  55. package/scss/base/link.scss +1 -1
  56. package/scss/base/table.scss +1 -1
  57. package/scss/base.scss +1 -1
  58. package/scss/component/card.scss +3 -0
  59. package/scss/component/input-group.scss +1 -1
  60. package/scss/component/menu.scss +3 -0
  61. package/scss/component/navigation.scss +3 -0
  62. package/scss/component.scss +1 -1
  63. package/scss/graupl.scss +1 -3
  64. package/scss/init.scss +3 -0
  65. package/scss/layout/columns.scss +1 -1
  66. package/scss/layout/container.scss +1 -1
  67. package/scss/layout/flex-columns.scss +3 -0
  68. package/scss/layout.scss +1 -1
  69. package/scss/normalize.scss +3 -0
  70. package/scss/state/focus.scss +1 -1
  71. package/scss/state.scss +1 -1
  72. package/scss/theme/color.scss +1 -1
  73. package/scss/theme/typography.scss +1 -1
  74. package/scss/theme.scss +1 -1
  75. package/scss/utilities/alignment.scss +1 -1
  76. package/scss/utilities/color.scss +1 -1
  77. package/scss/utilities/display.scss +1 -1
  78. package/scss/utilities/flex.scss +1 -1
  79. package/scss/utilities/inset.scss +1 -1
  80. package/scss/utilities/justification.scss +1 -1
  81. package/scss/utilities/list.scss +1 -1
  82. package/scss/utilities/order.scss +3 -0
  83. package/scss/utilities/postion.scss +1 -1
  84. package/scss/utilities/spacing.scss +1 -1
  85. package/scss/utilities/typography.scss +1 -1
  86. package/scss/utilities/visibility.scss +1 -1
  87. package/scss/utilities.scss +1 -1
  88. package/src/js/navigation.js +34 -0
  89. package/src/scss/_defaults.scss +21 -5
  90. package/src/scss/_index.scss +4 -3
  91. package/src/scss/_init.scss +2 -2
  92. package/src/scss/_normalize.scss +197 -0
  93. package/src/scss/_variables.scss +4 -1
  94. package/src/scss/base/_index.scss +2 -1
  95. package/src/scss/base/button/_defaults.scss +53 -0
  96. package/src/scss/base/button/_index.scss +210 -0
  97. package/src/scss/{component → base}/button/_variables.scss +51 -12
  98. package/src/scss/base/form/_defaults.scss +14 -4
  99. package/src/scss/base/form/_index.scss +23 -20
  100. package/src/scss/base/form/_variables.scss +12 -1
  101. package/src/scss/base/link/_defaults.scss +48 -5
  102. package/src/scss/base/link/_index.scss +101 -17
  103. package/src/scss/base/link/_variables.scss +226 -5
  104. package/src/scss/base/table/_defaults.scss +49 -4
  105. package/src/scss/base/table/_index.scss +102 -8
  106. package/src/scss/base/table/_variables.scss +71 -1
  107. package/src/scss/component/_index.scss +4 -3
  108. package/src/scss/component/card/_defaults.scss +29 -0
  109. package/src/scss/component/card/_index.scss +143 -0
  110. package/src/scss/component/card/_variables.scss +185 -0
  111. package/src/scss/component/input-group/_defaults.scss +11 -4
  112. package/src/scss/component/input-group/_index.scss +11 -9
  113. package/src/scss/component/input-group/_variables.scss +4 -1
  114. package/src/scss/component/menu/_defaults.scss +65 -0
  115. package/src/scss/component/menu/_index.scss +304 -0
  116. package/src/scss/component/menu/_variables.scss +491 -0
  117. package/src/scss/component/navigation/_defaults.scss +29 -0
  118. package/src/scss/component/navigation/_index.scss +189 -0
  119. package/src/scss/component/navigation/_variables.scss +237 -0
  120. package/src/scss/functions/_important.scss +2 -0
  121. package/src/scss/functions/_theme.scss +18 -0
  122. package/src/scss/layout/_index.scss +2 -1
  123. package/src/scss/layout/columns/_defaults.scss +12 -4
  124. package/src/scss/layout/columns/_index.scss +27 -5
  125. package/src/scss/layout/columns/_variables.scss +4 -1
  126. package/src/scss/layout/container/_defaults.scss +13 -4
  127. package/src/scss/layout/container/_index.scss +12 -7
  128. package/src/scss/layout/container/_variables.scss +4 -1
  129. package/src/scss/layout/flex-columns/_defaults.scss +18 -0
  130. package/src/scss/layout/flex-columns/_index.scss +77 -0
  131. package/src/scss/layout/flex-columns/_variables.scss +26 -0
  132. package/src/scss/mixins/_layer.scss +1 -1
  133. package/src/scss/mixins/_media-queries.scss +10 -1
  134. package/src/scss/state/_index.scss +1 -1
  135. package/src/scss/state/focus/_defaults.scss +6 -4
  136. package/src/scss/state/focus/_index.scss +1 -1
  137. package/src/scss/state/focus/_variables.scss +4 -1
  138. package/src/scss/theme/_index.scss +1 -1
  139. package/src/scss/theme/color/_defaults.scss +6 -4
  140. package/src/scss/theme/color/_index.scss +1 -1
  141. package/src/scss/theme/color/_variables.scss +4 -1
  142. package/src/scss/theme/typography/_defaults.scss +7 -5
  143. package/src/scss/theme/typography/_index.scss +1 -1
  144. package/src/scss/theme/typography/_variables.scss +9 -3
  145. package/src/scss/utilities/_index.scss +3 -1
  146. package/src/scss/utilities/alignment/_defaults.scss +6 -4
  147. package/src/scss/utilities/alignment/_index.scss +1 -1
  148. package/src/scss/utilities/alignment/_variables.scss +4 -1
  149. package/src/scss/utilities/color/_defaults.scss +6 -4
  150. package/src/scss/utilities/color/_index.scss +1 -1
  151. package/src/scss/utilities/color/_variables.scss +4 -1
  152. package/src/scss/utilities/display/_defaults.scss +6 -4
  153. package/src/scss/utilities/display/_index.scss +1 -1
  154. package/src/scss/utilities/display/_variables.scss +4 -1
  155. package/src/scss/utilities/flex/_defaults.scss +6 -4
  156. package/src/scss/utilities/flex/_index.scss +1 -1
  157. package/src/scss/utilities/flex/_variables.scss +4 -1
  158. package/src/scss/utilities/inset/_defaults.scss +6 -4
  159. package/src/scss/utilities/inset/_index.scss +1 -1
  160. package/src/scss/utilities/inset/_variables.scss +4 -1
  161. package/src/scss/utilities/justification/_defaults.scss +6 -4
  162. package/src/scss/utilities/justification/_index.scss +1 -1
  163. package/src/scss/utilities/justification/_variables.scss +4 -1
  164. package/src/scss/utilities/list/_defaults.scss +6 -4
  165. package/src/scss/utilities/list/_index.scss +1 -1
  166. package/src/scss/utilities/list/_variables.scss +4 -1
  167. package/src/scss/utilities/order/_defaults.scss +19 -0
  168. package/src/scss/utilities/order/_index.scss +35 -0
  169. package/src/scss/utilities/order/_variables.scss +6 -0
  170. package/src/scss/utilities/position/_defaults.scss +6 -4
  171. package/src/scss/utilities/position/_index.scss +1 -1
  172. package/src/scss/utilities/position/_variables.scss +4 -1
  173. package/src/scss/utilities/ratio/_defaults.scss +24 -0
  174. package/src/scss/utilities/ratio/_index.scss +26 -0
  175. package/src/scss/utilities/ratio/_variables.scss +9 -0
  176. package/src/scss/utilities/spacing/_defaults.scss +6 -4
  177. package/src/scss/utilities/spacing/_index.scss +41 -17
  178. package/src/scss/utilities/spacing/_variables.scss +4 -1
  179. package/src/scss/utilities/typography/_defaults.scss +6 -4
  180. package/src/scss/utilities/typography/_index.scss +1 -1
  181. package/src/scss/utilities/typography/_variables.scss +4 -1
  182. package/src/scss/utilities/visibility/_defaults.scss +6 -4
  183. package/src/scss/utilities/visibility/_index.scss +1 -1
  184. package/src/scss/utilities/visibility/_variables.scss +4 -1
  185. package/dist/component/button.css +0 -2
  186. package/dist/component/button.css.map +0 -1
  187. package/dist/component/table.css +0 -2
  188. package/dist/component/table.css.map +0 -1
  189. package/scss/component/button.scss +0 -3
  190. package/scss/component/table.scss +0 -3
  191. package/src/scss/component/button/_defaults.scss +0 -39
  192. package/src/scss/component/button/_index.scss +0 -134
  193. package/src/scss/component/table/_defaults.scss +0 -30
  194. package/src/scss/component/table/_index.scss +0 -77
  195. package/src/scss/component/table/_variables.scss +0 -64
@@ -1,3 +1,6 @@
1
- // Variables referencing custom properties.
1
+ // @graupl/graupl typography utilities variables.
2
+ //
3
+ // These values are to be used to directly style components and provide a
4
+ // cleaner way to reference custom properties.
2
5
 
3
6
  @forward "defaults";
@@ -1,8 +1,10 @@
1
- // Default values for Graupl.
1
+ // @graupl/graupl visibility utilities default values.
2
2
  //
3
- // Generally, these should not be used directly when styling components.
4
- // They are mainly used to provide default fallbacks for custom properties
5
- // which can be found in the `variables.scss` file.
3
+ // Generally, these should not be used directly when styling components unless a static value is needed.
4
+ // They are mainly used to provide class selectors, fallbacks for custom properties, or loop values.
5
+ //
6
+ // They should not be used to define direct property values (i.e. font-size, color, etc.).
7
+ // Those should be defined as custom properties in the `_variables.scss` file.
6
8
 
7
9
  @use "sass:map";
8
10
 
@@ -1,4 +1,4 @@
1
- // Graupl visibility utilities.
1
+ // @gruapl/graupl visibility utilities styles.
2
2
 
3
3
  @use "variables" as *;
4
4
  @use "defaults" as defaults;
@@ -1,3 +1,6 @@
1
- // Variables referencing custom properties.
1
+ // @graupl/graupl visibility utilities variables.
2
+ //
3
+ // These values are to be used to directly style components and provide a
4
+ // cleaner way to reference custom properties.
2
5
 
3
6
  @forward "defaults";
@@ -1,2 +0,0 @@
1
- @layer graupl.component{.button{align-items:center;border-radius:var(--graupl-button-border-radius,var(--graupl-border-radius,.125rem));border-style:var(--graupl-botton-border-style,var(--graupl-border-style,solid));border-width:var(--graupl-button-border-width,var(--graupl-border-width,2px));cursor:pointer;display:flex;font-size:var(--graupl-button-font-size,var(--graupl-font-base,calc(var(--graupl-font-base, 1rem)*1)));justify-content:center;min-height:var(--graupl-button-min-height,44px);min-width:var(--graupl-button-min-width,44px);padding:var(--graupl-button-padding,var(--graupl-button-padding-y,var(--graupl-spacer-3,calc(var(--graupl-spacer, 1rem)*.5))) var(--graupl-button-padding-x,var(--graupl-spacer-5,calc(var(--graupl-spacer, 1rem)*1))));transition:var(--graupl-button-transition,background var(--graupl-transition-duration-fast,.15s) var(--graupl-transition-timing-function,ease),color var(--graupl-transition-duration-fast,.15s) var(--graupl-transition-timing-function,ease),transform var(--graupl-transition-duration-fast,.15s) var(--graupl-transition-timing-function,ease))}.button:hover{transform:var(--graupl-button-hover-transform,none)}.button:active{transform:var(--graupl-button-active-transform,scale(.95))}.button:disabled{cursor:not-allowed}.button:disabled:active,.button:disabled:hover{transform:none}.button.link{border:0;font-size:inherit;min-height:auto;min-width:auto;padding:0;-webkit-text-decoration:var(--graupl-link-text-decoration,underline);text-decoration:var(--graupl-link-text-decoration,underline);text-decoration-thickness:var(--graupl-link-text-decoration-thickness,var(--graupl-border-width,2px))}@media (prefers-reduced-motion:reduce){.button{transition:var(--graupl-button-transition-reduced-motion,background var(--graupl-transition-timing-function,ease),color var(--graupl-transition-timing-function,ease))}.button:hover{transform:var(--graupl-button-hover-transform-reduced-motion,none)}.button:active{transform:var(--graupl-button-active-transform-reduced-motion,scale(.98))}}}@layer graupl.theme{.button{background:var(--graupl-button-background,var(--graupl-root-background,var(--graupl-theme-active--primary--100,var(--graupl-theme-light--primary--100,var(--graupl-primary--100,#e6eeff)))));border-color:var(--graupl-button-border-color,var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233))));color:var(--graupl-button-color,var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233))))}.button.primary{--graupl-button-color:var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233)));--graupl-button-border-color:var(--graupl-theme-active--primary--700,var(--graupl-theme-light--primary--700,var(--graupl-primary--700,#1244a1)));--graupl-button-hover-color:var(--graupl-theme-active--primary--100,var(--graupl-theme-light--primary--100,var(--graupl-primary--100,#e6eeff)));--graupl-button-hover-background:var(--graupl-theme-active--primary--700,var(--graupl-theme-light--primary--700,var(--graupl-primary--700,#1244a1)));--graupl-button-hover-border-color:var(--graupl-theme-active--primary--700,var(--graupl-theme-light--primary--700,var(--graupl-primary--700,#1244a1)));--graupl-button-active-color:var(--graupl-theme-active--primary--100,var(--graupl-theme-light--primary--100,var(--graupl-primary--100,#e6eeff)));--graupl-button-active-background:var(--graupl-theme-active--primary--700,var(--graupl-theme-light--primary--700,var(--graupl-primary--700,#1244a1)));--graupl-button-active-border-color:var(--graupl-theme-active--primary--700,var(--graupl-theme-light--primary--700,var(--graupl-primary--700,#1244a1)));--graupl-button-disabled-color:var(--graupl-theme-active--primary--200,var(--graupl-theme-light--primary--200,var(--graupl-primary--200,#9ebefa)));--graupl-button-disabled-border-color:var(--graupl-theme-active--primary--200,var(--graupl-theme-light--primary--200,var(--graupl-primary--200,#9ebefa)))}.button.secondary{--graupl-button-color:var(--graupl-theme-active--secondary--900,var(--graupl-theme-light--secondary--900,var(--graupl-secondary--900,#0f1124)));--graupl-button-border-color:var(--graupl-theme-active--secondary--700,var(--graupl-theme-light--secondary--700,var(--graupl-secondary--700,#474a6b)));--graupl-button-hover-color:var(--graupl-theme-active--secondary--100,var(--graupl-theme-light--secondary--100,var(--graupl-secondary--100,#edeef7)));--graupl-button-hover-background:var(--graupl-theme-active--secondary--700,var(--graupl-theme-light--secondary--700,var(--graupl-secondary--700,#474a6b)));--graupl-button-hover-border-color:var(--graupl-theme-active--secondary--700,var(--graupl-theme-light--secondary--700,var(--graupl-secondary--700,#474a6b)));--graupl-button-active-color:var(--graupl-theme-active--secondary--100,var(--graupl-theme-light--secondary--100,var(--graupl-secondary--100,#edeef7)));--graupl-button-active-background:var(--graupl-theme-active--secondary--700,var(--graupl-theme-light--secondary--700,var(--graupl-secondary--700,#474a6b)));--graupl-button-active-border-color:var(--graupl-theme-active--secondary--700,var(--graupl-theme-light--secondary--700,var(--graupl-secondary--700,#474a6b)));--graupl-button-disabled-color:var(--graupl-theme-active--secondary--200,var(--graupl-theme-light--secondary--200,var(--graupl-secondary--200,#bdbfdb)));--graupl-button-disabled-border-color:var(--graupl-theme-active--secondary--200,var(--graupl-theme-light--secondary--200,var(--graupl-secondary--200,#bdbfdb)))}.button.tertiary{--graupl-button-color:var(--graupl-theme-active--tertiary--900,var(--graupl-theme-light--tertiary--900,var(--graupl-tertiary--900,#2f0412)));--graupl-button-border-color:var(--graupl-theme-active--tertiary--700,var(--graupl-theme-light--tertiary--700,var(--graupl-tertiary--700,#931f46)));--graupl-button-hover-color:var(--graupl-theme-active--tertiary--100,var(--graupl-theme-light--tertiary--100,var(--graupl-tertiary--100,#fde7ef)));--graupl-button-hover-background:var(--graupl-theme-active--tertiary--700,var(--graupl-theme-light--tertiary--700,var(--graupl-tertiary--700,#931f46)));--graupl-button-hover-border-color:var(--graupl-theme-active--tertiary--700,var(--graupl-theme-light--tertiary--700,var(--graupl-tertiary--700,#931f46)));--graupl-button-active-color:var(--graupl-theme-active--tertiary--100,var(--graupl-theme-light--tertiary--100,var(--graupl-tertiary--100,#fde7ef)));--graupl-button-active-background:var(--graupl-theme-active--tertiary--700,var(--graupl-theme-light--tertiary--700,var(--graupl-tertiary--700,#931f46)));--graupl-button-active-border-color:var(--graupl-theme-active--tertiary--700,var(--graupl-theme-light--tertiary--700,var(--graupl-tertiary--700,#931f46)));--graupl-button-disabled-color:var(--graupl-theme-active--tertiary--200,var(--graupl-theme-light--tertiary--200,var(--graupl-tertiary--200,#f2a6bf)));--graupl-button-disabled-border-color:var(--graupl-theme-active--tertiary--200,var(--graupl-theme-light--tertiary--200,var(--graupl-tertiary--200,#f2a6bf)))}.button.link{--graupl-button-color:var(--graupl-link-color,var(--graupl-theme-active--primary--700,var(--graupl-theme-light--primary--700,var(--graupl-primary--700,#1244a1))));--graupl-button-hover-color:var(--graupl-link-hover-color,var(--graupl-theme-active--tertiary--700,var(--graupl-theme-light--tertiary--700,var(--graupl-tertiary--700,#931f46))));--graupl-button-active-color:var(--graupl-link-active-color,var(--graupl-theme-active--tertiary--700,var(--graupl-theme-light--tertiary--700,var(--graupl-tertiary--700,#931f46))));--graupl-button-disabled-color:var(--graupl-link-disabled-color,var(--graupl-theme-active--primary--200,var(--graupl-theme-light--primary--200,var(--graupl-primary--200,#9ebefa))));--graupl-button-background:none;--graupl-button-hover-background:none;--graupl-button-active-background:none;--graupl-button-disabled-background:none;--graupl-button-border-color:none;--graupl-button-hover-border-color:none;--graupl-button-active-border-color:none;--graupl-button-disabled-border-color:none;--graupl-button-hover-transform:none;--graupl-button-active-transform:none}.button:not(.link){--graupl-link-color:var(--graupl-button-color,var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233))));--graupl-link-hover-color:var(--graupl-button-hover-color,var(--graupl-theme-active--primary--100,var(--graupl-theme-light--primary--100,var(--graupl-primary--100,#e6eeff))));--graupl-link-active-color:var(--graupl-button-active-color,var(--graupl-theme-active--primary--100,var(--graupl-theme-light--primary--100,var(--graupl-primary--100,#e6eeff))));--graupl-link-visited-color:var(--graupl-button-hover-color,var(--graupl-theme-active--primary--100,var(--graupl-theme-light--primary--100,var(--graupl-primary--100,#e6eeff))));--graupl-link-disabled-color:var(--graupl-button-disabled-color,var(--graupl-theme-active--primary--200,var(--graupl-theme-light--primary--200,var(--graupl-primary--200,#9ebefa))))}.button:hover{--graupl-button-border-color:var(--graupl-button-hover-border-color,var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233))));--graupl-button-background:var(--graupl-button-hover-background,var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233))));--graupl-button-color:var(--graupl-button-hover-color,var(--graupl-theme-active--primary--100,var(--graupl-theme-light--primary--100,var(--graupl-primary--100,#e6eeff))))}.button:active{--graupl-button-border-color:var(--graupl-button-active-border-color,var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233))));--graupl-button-background:var(--graupl-button-active-background,var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233))));--graupl-button-color:var(--graupl-button-active-color,var(--graupl-theme-active--primary--100,var(--graupl-theme-light--primary--100,var(--graupl-primary--100,#e6eeff))))}.button:disabled,.button:disabled:active,.button:disabled:hover{--graupl-button-border-color:var(--graupl-button-disabled-border-color,var(--graupl-theme-active--primary--200,var(--graupl-theme-light--primary--200,var(--graupl-primary--200,#9ebefa))));--graupl-button-background:var(--graupl-button-disabled-background,var(--graupl-root-background,var(--graupl-theme-active--primary--100,var(--graupl-theme-light--primary--100,var(--graupl-primary--100,#e6eeff)))));--graupl-button-color:var(--graupl-button-disabled-color,var(--graupl-theme-active--primary--200,var(--graupl-theme-light--primary--200,var(--graupl-primary--200,#9ebefa))))}}
2
- /*# sourceMappingURL=button.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/scss/mixins/_layer.scss","../../src/scss/component/button/_index.scss","../../src/scss/component/button/_variables.scss","button.css","../../src/scss/base/link/_variables.scss","../../src/scss/mixins/_media-queries.scss"],"names":[],"mappings":"AASI,wBCGF,QAEE,kBAAA,CAQA,oFCwFmB,CDzFnB,+ECqFkB,CDtFlB,6ECkFkB,CD9ElB,cAAA,CAXA,YAAA,CAUA,sGCQe,CDhBf,sBAAA,CAEA,+CCFgB,CDChB,6CCLe,CDOf,uNCSa,CDRb,mVEJF,CFWE,cACE,mDETJ,CFYE,eACE,0DEVJ,CFaE,iBACE,kBEXJ,CFaI,+CAEE,cEZN,CFgBE,aAIE,QAAA,CACA,iBAAA,CAHA,eAAA,CADA,cAAA,CAEA,SAAA,CAGA,oEGzCiB,CHyCjB,4DGzCiB,CH0CjB,qGEdJ,CEtBA,uCJyCE,QACE,sKEhBF,CFkBE,cACE,kEEhBJ,CFmBE,eACE,yEEjBJ,CACF,CACF,CHvCI,oBC6DF,QAEE,4LCNgB,CDKhB,kKC6CkB,CD3ClB,oJEnBF,CFsBI,gBAEI,yIAAA,CAAA,gJAAA,CAAA,+IAAA,CAAA,oJAAA,CAAA,sJAAA,CAAA,gJAAA,CAAA,qJAAA,CAAA,uJAAA,CAAA,kJAAA,CAAA,yJEZR,CFUI,kBAEI,+IAAA,CAAA,sJAAA,CAAA,qJAAA,CAAA,0JAAA,CAAA,4JAAA,CAAA,sJAAA,CAAA,2JAAA,CAAA,6JAAA,CAAA,wJAAA,CAAA,+JEAR,CFFI,iBAEI,4IAAA,CAAA,mJAAA,CAAA,kJAAA,CAAA,uJAAA,CAAA,yJAAA,CAAA,mJAAA,CAAA,wJAAA,CAAA,0JAAA,CAAA,qJAAA,CAAA,4JEYR,CFPE,aACE,kKAAA,CACA,iLAAA,CACA,mLAAA,CACA,oLAAA,CACA,+BAAA,CACA,qCAAA,CACA,sCAAA,CACA,wCAAA,CACA,iCAAA,CACA,uCAAA,CACA,wCAAA,CACA,0CAAA,CACA,oCAAA,CACA,qCESJ,CFNE,mBACE,kKAAA,CACA,8KAAA,CACA,gLAAA,CACA,gLAAA,CACA,oLEQJ,CFLE,cACE,wLAAA,CACA,oLAAA,CACA,0KEOJ,CFJE,eACE,yLAAA,CACA,qLAAA,CACA,2KEMJ,CFEI,gEAEE,2LAAA,CACA,qNAAA,CACA,6KEIN,CACF","file":"button.css"}
@@ -1,2 +0,0 @@
1
- @layer graupl.component{table .primary,table.primary{--graupl-table-header-background:var(--graupl-theme-active--primary--700,var(--graupl-theme-light--primary--700,var(--graupl-primary--700,#1244a1)));--graupl-table-header-color:var(--graupl-theme-active--primary--100,var(--graupl-theme-light--primary--100,var(--graupl-primary--100,#e6eeff)));--graupl-table-striped-background:var(--graupl-theme-active--primary--200,var(--graupl-theme-light--primary--200,var(--graupl-primary--200,#9ebefa)));--graupl-table-striped-color:var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233)));--graupl-table-hover-background:var(--graupl-theme-active--primary--300,var(--graupl-theme-light--primary--300,var(--graupl-primary--300,#5e90ed)));--graupl-table-hover-color:var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233)));--graupl-table-border-color:var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233)));--graupl-table-highlight-background:var(--graupl-theme-active--primary--500,var(--graupl-theme-light--primary--500,var(--graupl-primary--500,#2063df)));--graupl-table-highlight-color:var(--graupl-theme-active--primary--100,var(--graupl-theme-light--primary--100,var(--graupl-primary--100,#e6eeff)))}table .secondary,table.secondary{--graupl-table-header-background:var(--graupl-theme-active--secondary--700,var(--graupl-theme-light--secondary--700,var(--graupl-secondary--700,#474a6b)));--graupl-table-header-color:var(--graupl-theme-active--secondary--100,var(--graupl-theme-light--secondary--100,var(--graupl-secondary--100,#edeef7)));--graupl-table-striped-background:var(--graupl-theme-active--secondary--200,var(--graupl-theme-light--secondary--200,var(--graupl-secondary--200,#bdbfdb)));--graupl-table-striped-color:var(--graupl-theme-active--secondary--900,var(--graupl-theme-light--secondary--900,var(--graupl-secondary--900,#0f1124)));--graupl-table-hover-background:var(--graupl-theme-active--secondary--300,var(--graupl-theme-light--secondary--300,var(--graupl-secondary--300,#9497b8)));--graupl-table-hover-color:var(--graupl-theme-active--secondary--900,var(--graupl-theme-light--secondary--900,var(--graupl-secondary--900,#0f1124)));--graupl-table-border-color:var(--graupl-theme-active--secondary--900,var(--graupl-theme-light--secondary--900,var(--graupl-secondary--900,#0f1124)));--graupl-table-highlight-background:var(--graupl-theme-active--secondary--500,var(--graupl-theme-light--secondary--500,var(--graupl-secondary--500,#6c7093)));--graupl-table-highlight-color:var(--graupl-theme-active--secondary--100,var(--graupl-theme-light--secondary--100,var(--graupl-secondary--100,#edeef7)))}table .tertiary,table.tertiary{--graupl-table-header-background:var(--graupl-theme-active--tertiary--700,var(--graupl-theme-light--tertiary--700,var(--graupl-tertiary--700,#931f46)));--graupl-table-header-color:var(--graupl-theme-active--tertiary--100,var(--graupl-theme-light--tertiary--100,var(--graupl-tertiary--100,#fde7ef)));--graupl-table-striped-background:var(--graupl-theme-active--tertiary--200,var(--graupl-theme-light--tertiary--200,var(--graupl-tertiary--200,#f2a6bf)));--graupl-table-striped-color:var(--graupl-theme-active--tertiary--900,var(--graupl-theme-light--tertiary--900,var(--graupl-tertiary--900,#2f0412)));--graupl-table-hover-background:var(--graupl-theme-active--tertiary--300,var(--graupl-theme-light--tertiary--300,var(--graupl-tertiary--300,#e06c92)));--graupl-table-hover-color:var(--graupl-theme-active--tertiary--900,var(--graupl-theme-light--tertiary--900,var(--graupl-tertiary--900,#2f0412)));--graupl-table-border-color:var(--graupl-theme-active--tertiary--900,var(--graupl-theme-light--tertiary--900,var(--graupl-tertiary--900,#2f0412)));--graupl-table-highlight-background:var(--graupl-theme-active--tertiary--500,var(--graupl-theme-light--tertiary--500,var(--graupl-tertiary--500,#c36)));--graupl-table-highlight-color:var(--graupl-theme-active--tertiary--100,var(--graupl-theme-light--tertiary--100,var(--graupl-tertiary--100,#fde7ef)))}table.bordered{border-collapse:collapse;border-color:var(--graupl-table-border-color,var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233))));border-style:var(--graupl-table-border-style,var(--graupl-border-style,solid));border-width:var(--graupl-table-border-width,var(--graupl-border-width,2px))}table.bordered tr>*{border-color:var(--graupl-table-cell-border-color,var(--graupl-table-border-color,var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233)))));border-style:var(--graupl-table-cell-border-style,var(--graupl-table-border-style,var(--graupl-border-style,solid)));border-width:var(--graupl-table-cell-border-width,var(--graupl-table-border-width,var(--graupl-border-width,2px)))}table.striped-columns tbody tr:nth-child(odd)>*,table.striped-rows tbody tr>:nth-child(odd){background:var(--graupl-table-striped-background,var(--graupl-theme-active--secondary--200,var(--graupl-theme-light--secondary--200,var(--graupl-secondary--200,#bdbfdb))));color:var(--graupl-table-striped-color,var(--graupl-theme-active--secondary--900,var(--graupl-theme-light--secondary--900,var(--graupl-secondary--900,#0f1124))))}table.hoverable tbody tr:hover>*{background:var(--graupl-table-hover-background,var(--graupl-theme-active--secondary--300,var(--graupl-theme-light--secondary--300,var(--graupl-secondary--300,#9497b8))));color:var(--graupl-table-hover-color,var(--graupl-theme-active--secondary--900,var(--graupl-theme-light--secondary--900,var(--graupl-secondary--900,#0f1124))))}table .highlight{--graupl-table-cell-background:var(--graupl-table-highlight-background,var(--graupl-theme-active--secondary--500,var(--graupl-theme-light--secondary--500,var(--graupl-secondary--500,#6c7093))));--graupl-table-cell-color:var(--graupl-table-highlight-color,var(--graupl-theme-active--secondary--100,var(--graupl-theme-light--secondary--100,var(--graupl-secondary--100,#edeef7))));--graupl-table-header-background:var(--graupl-table-highlight-background,var(--graupl-theme-active--secondary--500,var(--graupl-theme-light--secondary--500,var(--graupl-secondary--500,#6c7093))));--graupl-table-header-color:var(--graupl-table-highlight-color,var(--graupl-theme-active--secondary--100,var(--graupl-theme-light--secondary--100,var(--graupl-secondary--100,#edeef7))));--graupl-table-striped-background:var(--graupl-table-highlight-background,var(--graupl-theme-active--secondary--500,var(--graupl-theme-light--secondary--500,var(--graupl-secondary--500,#6c7093))));--graupl-table-striped-color:var(--graupl-table-highlight-color,var(--graupl-theme-active--secondary--100,var(--graupl-theme-light--secondary--100,var(--graupl-secondary--100,#edeef7))))}.responsive-table{display:block;overflow:scroll hidden;width:100%}.responsive-table table{margin-bottom:0;width:100%}}
2
- /*# sourceMappingURL=table.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/scss/mixins/_layer.scss","../../src/scss/component/table/_index.scss","table.css","../../src/scss/component/table/_variables.scss"],"names":[],"mappings":"AASI,wBCEE,6BAGI,oJAAA,CAAA,+IAAA,CAAA,qJAAA,CAAA,gJAAA,CAAA,mJAAA,CAAA,8IAAA,CAAA,+IAAA,CAAA,uJAAA,CAAA,kJCFR,CDDI,iCAGI,0JAAA,CAAA,qJAAA,CAAA,2JAAA,CAAA,sJAAA,CAAA,yJAAA,CAAA,oJAAA,CAAA,qJAAA,CAAA,6JAAA,CAAA,wJCUR,CDbI,+BAGI,uJAAA,CAAA,kJAAA,CAAA,wJAAA,CAAA,mJAAA,CAAA,sJAAA,CAAA,iJAAA,CAAA,kJAAA,CAAA,uJAAA,CAAA,qJCsBR,CDdE,eACE,wBAAA,CAGA,iKEVe,CFSf,8EEbe,CFYf,4ECkBJ,CDdI,oBAGE,uMEDkB,CFAlB,oHEJkB,CFGlB,kHCkBN,CDJI,4FACE,2KERmB,CFSnB,iKCUN,CDLI,iCACE,yKELiB,CFMjB,+JCON,CDHE,iBACE,iMAAA,CACA,uLAAA,CACA,mMAAA,CACA,yLAAA,CACA,oMAAA,CACA,0LCKJ,CDDA,kBACE,aAAA,CAEA,sBAAA,CADA,UCIF,CDDE,wBAEE,eAAA,CADA,UCIJ,CACF","file":"table.css"}
@@ -1,3 +0,0 @@
1
- // Graupl Button Component.
2
-
3
- @forward "../../src/scss/component/button";
@@ -1,3 +0,0 @@
1
- // Table component styles.
2
-
3
- @forward "../../src/scss/component/table";
@@ -1,39 +0,0 @@
1
- // Default values for Graupl.
2
- //
3
- // Generally, these should not be used directly when styling components.
4
- // They are mainly used to provide default fallbacks for custom properties
5
- // which can be found in the `variables.scss` file.
6
-
7
- @use "sass:map";
8
-
9
- $button-hover-transform: none !default;
10
- $button-hover-transform-reduced-motion: none !default;
11
- $button-active-transform: scale(0.95) !default;
12
- $button-active-transform-reduced-motion: scale(0.98) !default;
13
-
14
- // Button state theme defaults.
15
- // This map is used to define the default colour shades for the
16
- // themed button components.
17
- //
18
- // e.g.
19
- // Primary buttons will use primary--900 as the text colour, primary--100 as the background
20
- // and primary--900 as the border colour.
21
- //
22
- // Secondary/tertiary buttons will use the same shade for their respective colours.
23
- $base-button-state-theme-map: (
24
- color: 900,
25
- border-color: 700,
26
- hover-color: 100,
27
- hover-background: 700,
28
- hover-border-color: 700,
29
- active-color: 100,
30
- active-background: 700,
31
- active-border-color: 700,
32
- disabled-color: 200,
33
- disabled-border-color: 200,
34
- );
35
- $custom-button-state-theme-map: () !default;
36
- $button-state-theme-map: map.merge(
37
- $base-button-state-theme-map,
38
- $custom-button-state-theme-map
39
- );
@@ -1,134 +0,0 @@
1
- // Graupl Button Component.
2
-
3
- @use "defaults";
4
- @use "../../defaults" as root-defaults;
5
- @use "../../theme/color/variables" as color;
6
- @use "../../base/link/variables" as link;
7
- @use "variables" as *;
8
- @use "../../mixins/layer" as *;
9
- @use "../../mixins/media-queries" as *;
10
- @use "sass:map";
11
-
12
- @include layer(component) {
13
- .button {
14
- display: flex;
15
- align-items: center;
16
- justify-content: center;
17
- min-width: $button-min-width;
18
- min-height: $button-min-height;
19
- padding: $button-padding;
20
- transition: $button-transition;
21
- border-width: $button-border-width;
22
- border-style: $button-border-style;
23
- border-radius: $button-border-radius;
24
- font-size: $button-font-size;
25
- cursor: pointer;
26
-
27
- &:hover {
28
- transform: $button-hover-transform;
29
- }
30
-
31
- &:active {
32
- transform: $button-active-transform;
33
- }
34
-
35
- &:disabled {
36
- cursor: not-allowed;
37
-
38
- &:hover,
39
- &:active {
40
- transform: none;
41
- }
42
- }
43
-
44
- &.link {
45
- min-width: auto;
46
- min-height: auto;
47
- padding: 0;
48
- border: 0;
49
- font-size: inherit;
50
- text-decoration: link.$link-text-decoration;
51
- text-decoration-thickness: link.$link-text-decoration-thickness;
52
- }
53
- }
54
-
55
- @include animation-off {
56
- .button {
57
- transition: $button-transition-reduced-motion;
58
-
59
- &:hover {
60
- transform: $button-hover-transform-reduced-motion;
61
- }
62
-
63
- &:active {
64
- transform: $button-active-transform-reduced-motion;
65
- }
66
- }
67
- }
68
- }
69
-
70
- @include layer(theme) {
71
- .button {
72
- border-color: $button-border-color;
73
- background: $button-background;
74
- color: $button-color;
75
-
76
- @each $color, $map in color.$theme-active {
77
- &.#{$color} {
78
- @each $prop, $shade in defaults.$button-state-theme-map {
79
- --#{root-defaults.$prefix}-button-#{$prop}: #{map.get($map, $shade)};
80
- }
81
- }
82
- }
83
-
84
- &.link {
85
- --#{root-defaults.$prefix}-button-color: #{link.$link-color};
86
- --#{root-defaults.$prefix}-button-hover-color: #{link.$link-hover-color};
87
- --#{root-defaults.$prefix}-button-active-color: #{link.$link-active-color};
88
- --#{root-defaults.$prefix}-button-disabled-color: #{link.$link-disabled-color};
89
- --#{root-defaults.$prefix}-button-background: none;
90
- --#{root-defaults.$prefix}-button-hover-background: none;
91
- --#{root-defaults.$prefix}-button-active-background: none;
92
- --#{root-defaults.$prefix}-button-disabled-background: none;
93
- --#{root-defaults.$prefix}-button-border-color: none;
94
- --#{root-defaults.$prefix}-button-hover-border-color: none;
95
- --#{root-defaults.$prefix}-button-active-border-color: none;
96
- --#{root-defaults.$prefix}-button-disabled-border-color: none;
97
- --#{root-defaults.$prefix}-button-hover-transform: none;
98
- --#{root-defaults.$prefix}-button-active-transform: none;
99
- }
100
-
101
- &:not(.link) {
102
- --#{root-defaults.$prefix}-link-color: #{$button-color};
103
- --#{root-defaults.$prefix}-link-hover-color: #{$button-hover-color};
104
- --#{root-defaults.$prefix}-link-active-color: #{$button-active-color};
105
- --#{root-defaults.$prefix}-link-visited-color: #{$button-hover-color};
106
- --#{root-defaults.$prefix}-link-disabled-color: #{$button-disabled-color};
107
- }
108
-
109
- &:hover {
110
- --#{root-defaults.$prefix}-button-border-color: #{$button-hover-border-color};
111
- --#{root-defaults.$prefix}-button-background: #{$button-hover-background};
112
- --#{root-defaults.$prefix}-button-color: #{$button-hover-color};
113
- }
114
-
115
- &:active {
116
- --#{root-defaults.$prefix}-button-border-color: #{$button-active-border-color};
117
- --#{root-defaults.$prefix}-button-background: #{$button-active-background};
118
- --#{root-defaults.$prefix}-button-color: #{$button-active-color};
119
- }
120
-
121
- &:disabled {
122
- --#{root-defaults.$prefix}-button-border-color: #{$button-disabled-border-color};
123
- --#{root-defaults.$prefix}-button-background: #{$button-disabled-background};
124
- --#{root-defaults.$prefix}-button-color: #{$button-disabled-color};
125
-
126
- &:hover,
127
- &:active {
128
- --#{root-defaults.$prefix}-button-border-color: #{$button-disabled-border-color};
129
- --#{root-defaults.$prefix}-button-background: #{$button-disabled-background};
130
- --#{root-defaults.$prefix}-button-color: #{$button-disabled-color};
131
- }
132
- }
133
- }
134
- }
@@ -1,30 +0,0 @@
1
- // Default values for Graupl.
2
- //
3
- // Generally, these should not be used directly when styling components.
4
- // They are mainly used to provide default fallbacks for custom properties
5
- // which can be found in the `variables.scss` file.
6
-
7
- @use "sass:map";
8
-
9
- // Table theme defaults.
10
- // This map is used to define the default colour shades for the
11
- // themed table components.
12
- //
13
- // e.g.
14
- // Primary tables will use primary--700 as the header background,
15
- // and primary--100 as the header text colour.
16
- //
17
- // Secondary/tertiary tables will use the same shade for their respective colours.
18
- $base-table-theme-map: (
19
- header-background: 700,
20
- header-color: 100,
21
- striped-background: 200,
22
- striped-color: 900,
23
- hover-background: 300,
24
- hover-color: 900,
25
- border-color: 900,
26
- highlight-background: 500,
27
- highlight-color: 100,
28
- );
29
- $custom-table-theme-map: () !default;
30
- $table-theme-map: map.merge($base-table-theme-map, $custom-table-theme-map);
@@ -1,77 +0,0 @@
1
- // Table component styles.
2
-
3
- @use "variables" as *;
4
- @use "defaults";
5
- @use "../../mixins/layer" as *;
6
- @use "../../defaults" as root-defaults;
7
- @use "../../functions/theme";
8
-
9
- @include layer(component) {
10
- table {
11
- @each $variant in theme.variants() {
12
- &.#{$variant},
13
- .#{$variant} {
14
- @each $prop, $key in defaults.$table-theme-map {
15
- --#{root-defaults.$prefix}-table-#{$prop}: #{theme.get(
16
- $variant,
17
- $key
18
- )};
19
- }
20
- }
21
- }
22
-
23
- &.bordered {
24
- border-collapse: collapse;
25
- border-width: $table-border-width;
26
- border-style: $table-border-style;
27
- border-color: $table-border-color;
28
-
29
- tr > * {
30
- border-width: $table-cell-border-width;
31
- border-style: $table-cell-border-style;
32
- border-color: $table-cell-border-color;
33
- }
34
- }
35
-
36
- &.striped-columns {
37
- tbody tr:nth-child(odd) > * {
38
- background: $table-striped-background;
39
- color: $table-striped-color;
40
- }
41
- }
42
-
43
- &.striped-rows {
44
- tbody tr > :nth-child(odd) {
45
- background: $table-striped-background;
46
- color: $table-striped-color;
47
- }
48
- }
49
-
50
- &.hoverable {
51
- tbody tr:hover > * {
52
- background: $table-hover-background;
53
- color: $table-hover-color;
54
- }
55
- }
56
-
57
- .highlight {
58
- --#{root-defaults.$prefix}-table-cell-background: #{$table-highlight-background};
59
- --#{root-defaults.$prefix}-table-cell-color: #{$table-highlight-color};
60
- --#{root-defaults.$prefix}-table-header-background: #{$table-highlight-background};
61
- --#{root-defaults.$prefix}-table-header-color: #{$table-highlight-color};
62
- --#{root-defaults.$prefix}-table-striped-background: #{$table-highlight-background};
63
- --#{root-defaults.$prefix}-table-striped-color: #{$table-highlight-color};
64
- }
65
- }
66
-
67
- .responsive-table {
68
- display: block;
69
- width: 100%;
70
- overflow: scroll hidden;
71
-
72
- table {
73
- width: 100%;
74
- margin-bottom: 0;
75
- }
76
- }
77
- }
@@ -1,64 +0,0 @@
1
- // Variables referencing custom properties.
2
-
3
- @use "defaults";
4
- @use "../../defaults" as root-defaults;
5
- @use "../../variables" as root-variables;
6
- @use "../../functions/theme";
7
-
8
- // Table border properties.
9
- $table-border-width: var(
10
- --#{root-defaults.$prefix}-table-border-width,
11
- #{root-variables.$border-width}
12
- );
13
- $table-border-style: var(
14
- --#{root-defaults.$prefix}-table-border-style,
15
- #{root-variables.$border-style}
16
- );
17
- $table-border-color: var(
18
- --#{root-defaults.$prefix}-table-border-color,
19
- #{theme.get(primary, 900)}
20
- );
21
-
22
- // Table cell border properties.
23
- $table-cell-border-width: var(
24
- --#{root-defaults.$prefix}-table-cell-border-width,
25
- #{$table-border-width}
26
- );
27
- $table-cell-border-style: var(
28
- --#{root-defaults.$prefix}-table-cell-border-style,
29
- #{$table-border-style}
30
- );
31
- $table-cell-border-color: var(
32
- --#{root-defaults.$prefix}-table-cell-border-color,
33
- #{$table-border-color}
34
- );
35
-
36
- // Table striped properties.
37
- $table-striped-background: var(
38
- --#{root-defaults.$prefix}-table-striped-background,
39
- #{theme.get(secondary, 200)}
40
- );
41
- $table-striped-color: var(
42
- --#{root-defaults.$prefix}-table-striped-color,
43
- #{theme.get(secondary, 900)}
44
- );
45
-
46
- // Table hover properties.
47
- $table-hover-background: var(
48
- --#{root-defaults.$prefix}-table-hover-background,
49
- #{theme.get(secondary, 300)}
50
- );
51
- $table-hover-color: var(
52
- --#{root-defaults.$prefix}-table-hover-color,
53
- #{theme.get(secondary, 900)}
54
- );
55
-
56
- // Table highlight properties.
57
- $table-highlight-background: var(
58
- --#{root-defaults.$prefix}-table-highlight-background,
59
- #{theme.get(secondary, 500)}
60
- );
61
- $table-highlight-color: var(
62
- --#{root-defaults.$prefix}-table-highlight-color,
63
- #{theme.get(secondary, 100)}
64
- );