@graupl/graupl 1.0.0-alpha.10 → 1.0.0-alpha.12

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 (154) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/base/button.css +2 -0
  3. package/dist/base/button.css.map +1 -0
  4. package/dist/base/form.css.map +1 -1
  5. package/dist/base/link.css +1 -1
  6. package/dist/base/link.css.map +1 -1
  7. package/dist/base/table.css +1 -1
  8. package/dist/base/table.css.map +1 -1
  9. package/dist/base.css +1 -1
  10. package/dist/base.css.map +1 -1
  11. package/dist/component/input-group.css.map +1 -1
  12. package/dist/component.css +1 -1
  13. package/dist/component.css.map +1 -1
  14. package/dist/graupl.css +1 -1
  15. package/dist/graupl.css.map +1 -1
  16. package/dist/init.css +2 -0
  17. package/dist/init.css.map +1 -0
  18. package/dist/layout/columns.css.map +1 -1
  19. package/dist/layout/container.css.map +1 -1
  20. package/dist/layout.css +1 -1
  21. package/dist/layout.css.map +1 -1
  22. package/dist/normalize.css +2 -0
  23. package/dist/normalize.css.map +1 -0
  24. package/dist/state/focus.css.map +1 -1
  25. package/dist/state.css.map +1 -1
  26. package/dist/theme/color.css +1 -1
  27. package/dist/theme/color.css.map +1 -1
  28. package/dist/theme/typography.css.map +1 -1
  29. package/dist/theme.css +1 -1
  30. package/dist/theme.css.map +1 -1
  31. package/dist/utilities/spacing.css +1 -1
  32. package/dist/utilities/spacing.css.map +1 -1
  33. package/dist/utilities.css +1 -1
  34. package/dist/utilities.css.map +1 -1
  35. package/index.html +6 -7
  36. package/package.json +2 -1
  37. package/scss/base/button.scss +3 -0
  38. package/scss/base/form.scss +1 -1
  39. package/scss/base/link.scss +1 -1
  40. package/scss/base/table.scss +1 -1
  41. package/scss/base.scss +1 -1
  42. package/scss/component/input-group.scss +1 -1
  43. package/scss/component.scss +1 -1
  44. package/scss/graupl.scss +1 -3
  45. package/scss/init.scss +3 -0
  46. package/scss/layout/columns.scss +1 -1
  47. package/scss/layout/container.scss +1 -1
  48. package/scss/layout.scss +1 -1
  49. package/scss/normalize.scss +3 -0
  50. package/scss/state/focus.scss +1 -1
  51. package/scss/state.scss +1 -1
  52. package/scss/theme/color.scss +1 -1
  53. package/scss/theme/typography.scss +1 -1
  54. package/scss/theme.scss +1 -1
  55. package/scss/utilities/alignment.scss +1 -1
  56. package/scss/utilities/color.scss +1 -1
  57. package/scss/utilities/display.scss +1 -1
  58. package/scss/utilities/flex.scss +1 -1
  59. package/scss/utilities/inset.scss +1 -1
  60. package/scss/utilities/justification.scss +1 -1
  61. package/scss/utilities/list.scss +1 -1
  62. package/scss/utilities/postion.scss +1 -1
  63. package/scss/utilities/spacing.scss +1 -1
  64. package/scss/utilities/typography.scss +1 -1
  65. package/scss/utilities/visibility.scss +1 -1
  66. package/scss/utilities.scss +1 -1
  67. package/src/scss/_defaults.scss +6 -4
  68. package/src/scss/_index.scss +4 -3
  69. package/src/scss/_init.scss +2 -2
  70. package/src/scss/_normalize.scss +197 -0
  71. package/src/scss/_variables.scss +4 -1
  72. package/src/scss/base/_index.scss +2 -1
  73. package/src/scss/{component → base}/button/_defaults.scss +14 -5
  74. package/src/scss/base/button/_index.scss +147 -0
  75. package/src/scss/{component → base}/button/_variables.scss +8 -1
  76. package/src/scss/base/form/_defaults.scss +14 -4
  77. package/src/scss/base/form/_index.scss +21 -16
  78. package/src/scss/base/form/_variables.scss +4 -1
  79. package/src/scss/base/link/_defaults.scss +16 -4
  80. package/src/scss/base/link/_index.scss +49 -8
  81. package/src/scss/base/link/_variables.scss +69 -1
  82. package/src/scss/base/table/_defaults.scss +49 -4
  83. package/src/scss/base/table/_index.scss +104 -8
  84. package/src/scss/base/table/_variables.scss +67 -5
  85. package/src/scss/component/_index.scss +1 -3
  86. package/src/scss/component/input-group/_defaults.scss +11 -4
  87. package/src/scss/component/input-group/_index.scss +11 -9
  88. package/src/scss/component/input-group/_variables.scss +4 -1
  89. package/src/scss/functions/_important.scss +2 -0
  90. package/src/scss/functions/_theme.scss +2 -0
  91. package/src/scss/layout/_index.scss +1 -1
  92. package/src/scss/layout/columns/_defaults.scss +12 -4
  93. package/src/scss/layout/columns/_index.scss +5 -5
  94. package/src/scss/layout/columns/_variables.scss +4 -1
  95. package/src/scss/layout/container/_defaults.scss +13 -4
  96. package/src/scss/layout/container/_index.scss +12 -7
  97. package/src/scss/layout/container/_variables.scss +4 -1
  98. package/src/scss/mixins/_layer.scss +1 -1
  99. package/src/scss/mixins/_media-queries.scss +2 -1
  100. package/src/scss/state/_index.scss +1 -1
  101. package/src/scss/state/focus/_defaults.scss +6 -4
  102. package/src/scss/state/focus/_index.scss +1 -1
  103. package/src/scss/state/focus/_variables.scss +4 -1
  104. package/src/scss/theme/_index.scss +1 -1
  105. package/src/scss/theme/color/_defaults.scss +6 -4
  106. package/src/scss/theme/color/_index.scss +2 -2
  107. package/src/scss/theme/color/_variables.scss +6 -3
  108. package/src/scss/theme/typography/_defaults.scss +6 -4
  109. package/src/scss/theme/typography/_index.scss +1 -1
  110. package/src/scss/theme/typography/_variables.scss +4 -1
  111. package/src/scss/utilities/_index.scss +1 -1
  112. package/src/scss/utilities/alignment/_defaults.scss +6 -4
  113. package/src/scss/utilities/alignment/_index.scss +1 -1
  114. package/src/scss/utilities/alignment/_variables.scss +4 -1
  115. package/src/scss/utilities/color/_defaults.scss +6 -4
  116. package/src/scss/utilities/color/_index.scss +1 -1
  117. package/src/scss/utilities/color/_variables.scss +4 -1
  118. package/src/scss/utilities/display/_defaults.scss +6 -4
  119. package/src/scss/utilities/display/_index.scss +1 -1
  120. package/src/scss/utilities/display/_variables.scss +4 -1
  121. package/src/scss/utilities/flex/_defaults.scss +6 -4
  122. package/src/scss/utilities/flex/_index.scss +1 -1
  123. package/src/scss/utilities/flex/_variables.scss +4 -1
  124. package/src/scss/utilities/inset/_defaults.scss +6 -4
  125. package/src/scss/utilities/inset/_index.scss +1 -1
  126. package/src/scss/utilities/inset/_variables.scss +4 -1
  127. package/src/scss/utilities/justification/_defaults.scss +6 -4
  128. package/src/scss/utilities/justification/_index.scss +1 -1
  129. package/src/scss/utilities/justification/_variables.scss +4 -1
  130. package/src/scss/utilities/list/_defaults.scss +6 -4
  131. package/src/scss/utilities/list/_index.scss +1 -1
  132. package/src/scss/utilities/list/_variables.scss +4 -1
  133. package/src/scss/utilities/position/_defaults.scss +6 -4
  134. package/src/scss/utilities/position/_index.scss +1 -1
  135. package/src/scss/utilities/position/_variables.scss +4 -1
  136. package/src/scss/utilities/spacing/_defaults.scss +6 -4
  137. package/src/scss/utilities/spacing/_index.scss +8 -1
  138. package/src/scss/utilities/spacing/_variables.scss +4 -1
  139. package/src/scss/utilities/typography/_defaults.scss +6 -4
  140. package/src/scss/utilities/typography/_index.scss +1 -1
  141. package/src/scss/utilities/typography/_variables.scss +4 -1
  142. package/src/scss/utilities/visibility/_defaults.scss +6 -4
  143. package/src/scss/utilities/visibility/_index.scss +1 -1
  144. package/src/scss/utilities/visibility/_variables.scss +4 -1
  145. package/dist/component/button.css +0 -2
  146. package/dist/component/button.css.map +0 -1
  147. package/dist/component/table.css +0 -2
  148. package/dist/component/table.css.map +0 -1
  149. package/scss/component/button.scss +0 -3
  150. package/scss/component/table.scss +0 -3
  151. package/src/scss/component/button/_index.scss +0 -98
  152. package/src/scss/component/table/_defaults.scss +0 -30
  153. package/src/scss/component/table/_index.scss +0 -77
  154. package/src/scss/component/table/_variables.scss +0 -64
@@ -1,11 +1,12 @@
1
- // Graupl Container layout.
1
+ // @gruapl/graupl container layout styles.
2
2
 
3
+ @use "defaults";
3
4
  @use "variables" as *;
4
5
  @use "../../mixins/layer" as *;
5
6
 
6
7
  @include layer(layout) {
7
- .container,
8
- .container > .full-width {
8
+ #{defaults.$container-selector},
9
+ #{defaults.$container-selector} > #{defaults.$container-full-width-selector} {
9
10
  display: grid;
10
11
  grid-template-columns:
11
12
  [full-width-start] $container-full-width-section-width
@@ -17,19 +18,23 @@
17
18
  $container-feature-section-width [feature-end]
18
19
  $container-full-width-section-width [full-width-end];
19
20
 
20
- > :not(.breakout, .full-width, .feature) {
21
+ > :not(
22
+ #{defaults.$container-breakout-selector},
23
+ #{defaults.$container-full-width-selector},
24
+ #{defaults.$container-feature-selector}
25
+ ) {
21
26
  grid-column: content;
22
27
  }
23
28
 
24
- .breakout {
29
+ #{defaults.$container-breakout-selector} {
25
30
  grid-column: breakout;
26
31
  }
27
32
 
28
- .feature {
33
+ #{defaults.$container-feature-selector} {
29
34
  grid-column: feature;
30
35
  }
31
36
 
32
- .full-width {
37
+ #{defaults.$container-full-width-selector} {
33
38
  grid-column: full-width;
34
39
  }
35
40
  }
@@ -1,4 +1,7 @@
1
- // Variables referencing custom properties.
1
+ // @graupl/graupl container layout 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
  @use "defaults";
4
7
  @use "../../variables" as root-variables;
@@ -1,4 +1,4 @@
1
- // Layer mixins.
1
+ // @graupl/graupl layer mixins.
2
2
  //
3
3
  // These should be used to define the layers of your components to ensure that
4
4
  // they are output in the correct order in the final compiled CSS.
@@ -1,4 +1,4 @@
1
- // Media query mixins.
1
+ // @graupl/graupl media query mixins.
2
2
 
3
3
  @use "../defaults" as root-defaults;
4
4
  @use "sass:map";
@@ -17,6 +17,7 @@
17
17
  }
18
18
  }
19
19
 
20
+ // A media query for targetting specific screen sizes.
20
21
  @mixin screen($size) {
21
22
  $screen-size: map.get(root-defaults.$screen-sizes, $size);
22
23
 
@@ -1,3 +1,3 @@
1
- // Graupl states.
1
+ // @gruapl/graupl state styles.
2
2
 
3
3
  @forward "focus";
@@ -1,8 +1,10 @@
1
- // Default values for Graupl.
1
+ // @graupl/graupl focus state 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
  $focus-outline-style: dotted !default;
8
10
  $focus-box-shadow-style: inset !default;
@@ -1,4 +1,4 @@
1
- // Focus state styles.
1
+ // @gruapl/graupl focus state styles.
2
2
 
3
3
  @use "variables" as *;
4
4
  @use "../../mixins/layer" as *;
@@ -1,4 +1,7 @@
1
- // Variables referencing custom properties.
1
+ // @graupl/graupl focus state 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
  @use "../../variables" as root-variables;
4
7
  @use "defaults";
@@ -1,4 +1,4 @@
1
- // Graupl theme.
1
+ // @gruapl/graupl theme styles.
2
2
 
3
3
  @forward "color";
4
4
  @forward "typography";
@@ -1,8 +1,10 @@
1
- // Default values for Graupl.
1
+ // @graupl/graupl color theme 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
- // Color theme styles.
1
+ // @gruapl/graupl color theme styles.
2
2
 
3
3
  @use "variables" as *;
4
4
  @use "../../mixins/layer" as *;
@@ -9,7 +9,7 @@
9
9
  @include layer(theme) {
10
10
  :root {
11
11
  background: $root-background;
12
- color: $root-font-color;
12
+ color: $root-color;
13
13
 
14
14
  @each $color, $map in $theme-light {
15
15
  @each $shade, $value in $map {
@@ -1,4 +1,7 @@
1
- // Variables referencing custom properties.
1
+ // @graupl/graupl color theme 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
  @use "defaults";
4
7
  @use "../../defaults" as root-defaults;
@@ -111,8 +114,8 @@ $theme-active: ();
111
114
  }
112
115
 
113
116
  // Colour properties.
114
- $root-font-color: var(
115
- --#{root-defaults.$prefix}-root-font-color,
117
+ $root-color: var(
118
+ --#{root-defaults.$prefix}-root-color,
116
119
  #{map.get(map.get($theme-active, primary), 900)}
117
120
  );
118
121
  $root-background: var(
@@ -1,8 +1,10 @@
1
- // Default values for Graupl.
1
+ // @graupl/graupl typography theme 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
- // Typography theme styles.
1
+ // @gruapl/graupl typography theme styles.
2
2
 
3
3
  @use "variables" as *;
4
4
  @use "../../mixins/layer" as *;
@@ -1,4 +1,7 @@
1
- // Variables referencing custom properties.
1
+ // @graupl/graupl typography theme 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
  @use "defaults";
4
7
  @use "../../defaults" as root-defaults;
@@ -1,4 +1,4 @@
1
- // Graupl utilities.
1
+ // @gruapl/graupl utilities styles.
2
2
 
3
3
  @forward "alignment";
4
4
  @forward "color";
@@ -1,8 +1,10 @@
1
- // Default values for Graupl.
1
+ // @graupl/graupl alignment 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 alignment utilities.
1
+ // @gruapl/graupl alignment 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 alignment 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 color 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 color utilities.
1
+ // @gruapl/graupl color utilities styles.
2
2
 
3
3
  @use "variables" as *;
4
4
  @use "defaults";
@@ -1,3 +1,6 @@
1
- // Variables referencing custom properties.
1
+ // @graupl/graupl color 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 display 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 display utilities.
1
+ // @gruapl/graupl display 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 display 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 flex 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 flex utilities.
1
+ // @gruapl/graupl flex 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 flex 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 inset 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 inset utilities.
1
+ // @gruapl/graupl inset 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 inset 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 justification 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 justification utilities.
1
+ // @gruapl/graupl justification 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 justification 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 list 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 list 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 list 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 position 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 position utilities.
1
+ // @gruapl/graupl position 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 position 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 spacing 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 spacing utilities.
1
+ // @gruapl/graupl spacing utilities styles.
2
2
 
3
3
  @use "variables" as *;
4
4
  @use "defaults" as defaults;
@@ -60,5 +60,12 @@
60
60
  }
61
61
  }
62
62
  }
63
+
64
+ // Create the "auto" utility class.
65
+ .#{$name}-auto {
66
+ @each $prop in $property {
67
+ #{$prop}: important.insert(auto);
68
+ }
69
+ }
63
70
  }
64
71
  }
@@ -1,3 +1,6 @@
1
- // Variables referencing custom properties.
1
+ // @graupl/graupl spacing 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 typography 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 typography utilities.
1
+ // @gruapl/graupl typography utilities styles.
2
2
 
3
3
  @use "variables" as *;
4
4
  @use "defaults";
@@ -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}@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:hover{background:var(--graupl-button-hover-background,var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233))));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))));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{background:var(--graupl-button-active-background,var(--graupl-theme-active--primary--900,var(--graupl-theme-light--primary--900,var(--graupl-primary--900,#001233))));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))));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{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)))));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))));color:var(--graupl-button-disabled-color,var(--graupl-theme-active--primary--200,var(--graupl-theme-light--primary--200,var(--graupl-primary--200,#9ebefa))))}.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)))}}
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/mixins/_media-queries.scss"],"names":[],"mappings":"AASI,wBCEF,QAEE,kBAAA,CAQA,oFCyFmB,CD1FnB,+ECsFkB,CDvFlB,6ECmFkB,CD/ElB,cAAA,CAXA,YAAA,CAUA,sGCSe,CDjBf,sBAAA,CAEA,+CCDgB,CDAhB,6CCJe,CDMf,uNCUa,CDTb,mVEHF,CFUE,cACE,mDERJ,CFWE,eACE,0DETJ,CFYE,iBACE,kBEVJ,CFYI,+CAEE,cEXN,CCbA,uCH8BE,QACE,sKEdF,CFgBE,cACE,kEEdJ,CFiBE,eACE,yEEfJ,CACF,CACF,CH9BI,oBCkDF,QAEE,4LCKgB,CDNhB,kKCwDkB,CDtDlB,oJEjBF,CFmBE,cAEE,oKCIoB,CDLpB,wKCuDsB,CDrDtB,0JEjBJ,CFoBE,eAEE,qKCEqB,CDHrB,yKCqDuB,CDnDvB,2JElBJ,CF0BI,gEAGE,qMCNqB,CDKrB,2KC6CuB,CD3CvB,6JEpBN,CFyBI,gBAEI,yIAAA,CAAA,gJAAA,CAAA,+IAAA,CAAA,oJAAA,CAAA,sJAAA,CAAA,gJAAA,CAAA,qJAAA,CAAA,uJAAA,CAAA,kJAAA,CAAA,yJEfR,CFaI,kBAEI,+IAAA,CAAA,sJAAA,CAAA,qJAAA,CAAA,0JAAA,CAAA,4JAAA,CAAA,sJAAA,CAAA,2JAAA,CAAA,6JAAA,CAAA,wJAAA,CAAA,+JEHR,CFCI,iBAEI,4IAAA,CAAA,mJAAA,CAAA,kJAAA,CAAA,uJAAA,CAAA,yJAAA,CAAA,mJAAA,CAAA,wJAAA,CAAA,0JAAA,CAAA,qJAAA,CAAA,4JESR,CACF","file":"button.css"}