@graupl/navigation-shelf 1.0.0-beta.16

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 (49) hide show
  1. package/dist/css/component/navigation-shelf.css +36 -0
  2. package/dist/css/component/navigation-shelf.css.map +1 -0
  3. package/dist/css/component.css +36 -0
  4. package/dist/css/component.css.map +1 -0
  5. package/dist/css/navigation-shelf.css +36 -0
  6. package/dist/css/navigation-shelf.css.map +1 -0
  7. package/dist/css/utilities/shelf-aware.css +2 -0
  8. package/dist/css/utilities/shelf-aware.css.map +1 -0
  9. package/dist/css/utilities/width.css +2 -0
  10. package/dist/css/utilities/width.css.map +1 -0
  11. package/dist/css/utilities.css +2 -0
  12. package/dist/css/utilities.css.map +1 -0
  13. package/dist/js/component/navigation-shelf.cjs.js +5 -0
  14. package/dist/js/component/navigation-shelf.cjs.js.map +1 -0
  15. package/dist/js/component/navigation-shelf.es.js +5 -0
  16. package/dist/js/component/navigation-shelf.es.js.map +1 -0
  17. package/dist/js/component/navigation-shelf.iife.js +5 -0
  18. package/dist/js/component/navigation-shelf.iife.js.map +1 -0
  19. package/dist/js/generator/navigation-shelf.cjs.js +5 -0
  20. package/dist/js/generator/navigation-shelf.cjs.js.map +1 -0
  21. package/dist/js/generator/navigation-shelf.es.js +5 -0
  22. package/dist/js/generator/navigation-shelf.es.js.map +1 -0
  23. package/dist/js/generator/navigation-shelf.iife.js +5 -0
  24. package/dist/js/generator/navigation-shelf.iife.js.map +1 -0
  25. package/dist/js/navigation-shelf.js +5 -0
  26. package/dist/js/navigation-shelf.js.map +1 -0
  27. package/package.json +71 -0
  28. package/scss/component/navigation-shelf.scss +3 -0
  29. package/scss/component.scss +3 -0
  30. package/scss/navigation-shelf.scss +3 -0
  31. package/scss/utilities/shelf-aware.scss +3 -0
  32. package/scss/utilities/width.scss +3 -0
  33. package/scss/utilities.scss +3 -0
  34. package/src/js/navigation-shelf/NavigationShelf.js +1912 -0
  35. package/src/js/navigation-shelf/generator.js +38 -0
  36. package/src/js/navigation-shelf/index.js +5 -0
  37. package/src/js/validate.js +46 -0
  38. package/src/scss/_index.scss +2 -0
  39. package/src/scss/component/_index.scss +1 -0
  40. package/src/scss/component/navigation-shelf/_defaults.scss +85 -0
  41. package/src/scss/component/navigation-shelf/_index.scss +228 -0
  42. package/src/scss/component/navigation-shelf/_variables.scss +196 -0
  43. package/src/scss/utilities/_index.scss +2 -0
  44. package/src/scss/utilities/shelf-aware/_defaults.scss +31 -0
  45. package/src/scss/utilities/shelf-aware/_index.scss +383 -0
  46. package/src/scss/utilities/shelf-aware/_variables.scss +6 -0
  47. package/src/scss/utilities/width/_defaults.scss +58 -0
  48. package/src/scss/utilities/width/_index.scss +290 -0
  49. package/src/scss/utilities/width/_variables.scss +6 -0
@@ -0,0 +1,383 @@
1
+ // @graupl/navigation-shelf [_template] utilities styles.
2
+ //
3
+ // This file generates the [_template] utility classes provided by Graupl.
4
+ //
5
+ // The following classes are generated by default:
6
+ // - `.template-class`: Applies the base value for the property.
7
+ //
8
+ // The following custom properties control the generated classes:
9
+ // - N/A.
10
+ //
11
+ // The following variables control the generated classes:
12
+ // - `$selector-base`: The base selector for the utility classes.
13
+ // - `$use-important`: A flag to determine if the `!important` flag should be added to the utility classes.
14
+ // - `$generate-base-utilities`: A flag to determine if the base utility classes should be generated.
15
+ // - `$screen-aware`: A flag to generate screen-aware utility classes.
16
+ // - `$theme-aware`: A flag to generate theme-aware utility classes.
17
+ // - `$state-aware`: A flag to generate state-aware utility classes.
18
+ // - `$container-aware`: A flag to generate container-aware utility classes.
19
+ // - `$screen-aware-separator`: The separator for screen-aware utility classes.
20
+ // - `$theme-aware-separator`: The separator for theme-aware utility classes.
21
+ // - `$state-aware-separator`: The separator for state-aware utility classes.
22
+ // - `$container-aware-separator`: The separator for container-aware utility classes.
23
+ // - `$screen-aware-selector-prefix`: The prefix for screen-aware utility classes.
24
+ // - `$theme-aware-selector-prefix`: The prefix for theme-aware utility classes.
25
+ // - `$state-aware-selector-prefix`: The prefix for state-aware utility classes.
26
+ // - `$container-aware-selector-prefix`: The prefix for container-aware utility classes.
27
+ // - `$template-selector-prefix`: The prefix for the utility classes.
28
+ // - `$custom-template-properties`: The custom properties and values for the template utility classes.
29
+ // - `$template-properties`: The merged properties and values for the template utility classes.
30
+ //
31
+ // Generating responsive utility classes can be done by setting `$screen-aware`, `$theme-aware`, or `$state-aware` to `true`.
32
+ // By default, no responsive utility classes are generated.
33
+ //
34
+ // When set to true, screen-aware utility classes will be generated for each screen size in the following pattern:
35
+ // - `.{screen-prefix}{screen-name}:{prefix}{value}`
36
+ //
37
+ // e.g. `.sm:[template-class]` will set the `template` property to `value` on screens equal to or larger than the `sm` breakpoint.
38
+ //
39
+ // When set to true, theme-aware utility classes will be generated for each theme in the following pattern:
40
+ // - `.{theme-prefix}{theme-name}:{prefix}{value}`
41
+ //
42
+ // e.g. `.dark:[template-class]` will set the `template` property to `value` when the `dark` theme is active.
43
+ //
44
+ // When set to true, state-aware utility classes will be generated for each state in the following pattern:
45
+ // - `.{state-prefix}{state-name}:{prefix}{value}`
46
+ //
47
+ // e.g. `.hover:[template-class]` will set the `template` property to `value` when the element is hovered.
48
+ //
49
+ // When set to true, container-aware utility classes will be generated for each container in the following pattern:
50
+ // - `.{container-prefix}{container-name}:{prefix}{value}`
51
+ //
52
+ // e.g. `.cq:md:[template-class]` will set the `template` property to `value` when the parent container is larger than the `md` breakpoint.
53
+ //
54
+ // @example
55
+ // <div class="template-class">This content showing you how to use this.</div>
56
+
57
+ @use "pkg:@graupl/core/src/defaults" as root-defaults;
58
+ @use "pkg:@graupl/core/src/mixins/layer" as *;
59
+ @use "pkg:@graupl/core/src/mixins/utility";
60
+ @use "pkg:@graupl/core/src/theme/color/variables" as color;
61
+ @use "defaults";
62
+ @use "sass:map";
63
+ @use "variables" as *;
64
+ @use "../../component/navigation-shelf/defaults" as navigation-shelf-defaults;
65
+ @use "../../component/navigation-shelf/variables" as navigation-shelf-variables;
66
+ @use "pkg:@graupl/core/src/functions/important";
67
+
68
+ @include layer(utilities) {
69
+ // `.`
70
+ $selector-prefix: defaults.$selector-base;
71
+
72
+ // `.shelf-aware`
73
+ $selector: #{$selector-prefix}#{defaults.$shelf-aware-selector};
74
+
75
+ @include utility.create-mapped(
76
+ $selector,
77
+ (
78
+ padding-right: 0,
79
+ padding-left: navigation-shelf-variables.$navigation-shelf-closed-width,
80
+ ),
81
+ $important: #{defaults.$use-important}
82
+ ) {
83
+ // `&.locked`
84
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
85
+ padding-left: important.insert(
86
+ navigation-shelf-variables.$navigation-shelf-open-width,
87
+ defaults.$use-important
88
+ );
89
+ }
90
+
91
+ // `&.left-side`
92
+ &#{navigation-shelf-defaults.$navigation-shelf-side-selector-base}#{navigation-shelf-defaults.$navigation-shelf-left-side-selector}#{navigation-shelf-defaults.$navigation-shelf-side-selector-suffix} {
93
+ padding-right: important.insert(0, defaults.$use-important);
94
+ padding-left: important.insert(
95
+ navigation-shelf-variables.$navigation-shelf-closed-width,
96
+ defaults.$use-important
97
+ );
98
+
99
+ // `&.locked`
100
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
101
+ padding-left: important.insert(
102
+ navigation-shelf-variables.$navigation-shelf-open-width,
103
+ defaults.$use-important
104
+ );
105
+ }
106
+ }
107
+
108
+ // `&.right-side`
109
+ &#{navigation-shelf-defaults.$navigation-shelf-side-selector-base}#{navigation-shelf-defaults.$navigation-shelf-right-side-selector}#{navigation-shelf-defaults.$navigation-shelf-side-selector-suffix} {
110
+ padding-right: important.insert(
111
+ navigation-shelf-variables.$navigation-shelf-closed-width,
112
+ defaults.$use-important
113
+ );
114
+ padding-left: important.insert(0, defaults.$use-important);
115
+
116
+ // `&.locked`
117
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
118
+ padding-right: important.insert(
119
+ navigation-shelf-variables.$navigation-shelf-open-width,
120
+ defaults.$use-important
121
+ );
122
+ }
123
+ }
124
+ }
125
+
126
+ // Generate screen-aware utilities.
127
+ @if defaults.$screen-aware and root-defaults.$screen-aware-utilities {
128
+ @each $screen-name in map.keys(root-defaults.$screen-sizes) {
129
+ // e.g. `.md:` or `.lg:`
130
+ $selector-prefix: #{defaults.$selector-base}#{defaults.$screen-aware-selector-prefix}#{$screen-name}#{defaults.$screen-aware-separator};
131
+
132
+ // e.g. `.md:shelf-aware`
133
+ $selector: #{$selector-prefix}#{defaults.$shelf-aware-selector};
134
+
135
+ @include utility.create-mapped(
136
+ $selector,
137
+ (
138
+ padding-right: 0,
139
+ padding-left:
140
+ navigation-shelf-variables.$navigation-shelf-closed-width,
141
+ ),
142
+ $important: #{defaults.$use-important},
143
+ $screen: $screen-name
144
+ ) {
145
+ // `&.locked`
146
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
147
+ padding-left: important.insert(
148
+ navigation-shelf-variables.$navigation-shelf-open-width,
149
+ defaults.$use-important
150
+ );
151
+ }
152
+
153
+ // `&.left-side`
154
+ &#{navigation-shelf-defaults.$navigation-shelf-side-selector-base}#{navigation-shelf-defaults.$navigation-shelf-left-side-selector}#{navigation-shelf-defaults.$navigation-shelf-side-selector-suffix} {
155
+ padding-right: important.insert(0, defaults.$use-important);
156
+ padding-left: important.insert(
157
+ navigation-shelf-variables.$navigation-shelf-closed-width,
158
+ defaults.$use-important
159
+ );
160
+
161
+ // `&.locked`
162
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
163
+ padding-left: important.insert(
164
+ navigation-shelf-variables.$navigation-shelf-open-width,
165
+ defaults.$use-important
166
+ );
167
+ }
168
+ }
169
+
170
+ // `&.right-side`
171
+ &#{navigation-shelf-defaults.$navigation-shelf-side-selector-base}#{navigation-shelf-defaults.$navigation-shelf-right-side-selector}#{navigation-shelf-defaults.$navigation-shelf-side-selector-suffix} {
172
+ padding-right: important.insert(
173
+ navigation-shelf-variables.$navigation-shelf-closed-width,
174
+ defaults.$use-important
175
+ );
176
+ padding-left: important.insert(0, defaults.$use-important);
177
+
178
+ // `&.locked`
179
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
180
+ padding-right: important.insert(
181
+ navigation-shelf-variables.$navigation-shelf-open-width,
182
+ defaults.$use-important
183
+ );
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
189
+
190
+ // Generate theme-aware utilities.
191
+ @if defaults.$theme-aware and root-defaults.$theme-aware-utilities {
192
+ @each $theme-name, $colors in color.$themes {
193
+ @if $theme-name != active {
194
+ // e.g. `.dark:` or `.light:`
195
+ $selector-prefix: #{defaults.$selector-base}#{defaults.$theme-aware-selector-prefix}#{$theme-name}#{defaults.$theme-aware-separator};
196
+
197
+ // e.g. `.dark:shelf-aware` or `.light:shelf-aware`
198
+ $selector: #{$selector-prefix}#{defaults.$shelf-aware-selector};
199
+
200
+ @include utility.create-mapped(
201
+ $selector,
202
+ (
203
+ padding-right: 0,
204
+ padding-left:
205
+ navigation-shelf-variables.$navigation-shelf-closed-width,
206
+ ),
207
+ $important: #{defaults.$use-important},
208
+ $theme: $theme-name
209
+ ) {
210
+ // `&.locked`
211
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
212
+ padding-left: important.insert(
213
+ navigation-shelf-variables.$navigation-shelf-open-width,
214
+ defaults.$use-important
215
+ );
216
+ }
217
+
218
+ // `&.left-side`
219
+ &#{navigation-shelf-defaults.$navigation-shelf-side-selector-base}#{navigation-shelf-defaults.$navigation-shelf-left-side-selector}#{navigation-shelf-defaults.$navigation-shelf-side-selector-suffix} {
220
+ padding-right: important.insert(0, defaults.$use-important);
221
+ padding-left: important.insert(
222
+ navigation-shelf-variables.$navigation-shelf-closed-width,
223
+ defaults.$use-important
224
+ );
225
+
226
+ // `&.locked`
227
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
228
+ padding-left: important.insert(
229
+ navigation-shelf-variables.$navigation-shelf-open-width,
230
+ defaults.$use-important
231
+ );
232
+ }
233
+ }
234
+
235
+ // `&.right-side`
236
+ &#{navigation-shelf-defaults.$navigation-shelf-side-selector-base}#{navigation-shelf-defaults.$navigation-shelf-right-side-selector}#{navigation-shelf-defaults.$navigation-shelf-side-selector-suffix} {
237
+ padding-right: important.insert(
238
+ navigation-shelf-variables.$navigation-shelf-closed-width,
239
+ defaults.$use-important
240
+ );
241
+ padding-left: important.insert(0, defaults.$use-important);
242
+
243
+ // `&.locked`
244
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
245
+ padding-right: important.insert(
246
+ navigation-shelf-variables.$navigation-shelf-open-width,
247
+ defaults.$use-important
248
+ );
249
+ }
250
+ }
251
+ }
252
+ }
253
+ }
254
+ }
255
+
256
+ // Generate state-aware utilities.
257
+ @if defaults.$state-aware and root-defaults.$state-aware-utilities {
258
+ @each $state-name, $value in root-defaults.$state-selectors {
259
+ // e.g. `.hover:` or `.focus:`
260
+ $selector-prefix: #{defaults.$selector-base}#{defaults.$state-aware-selector-prefix}#{$state-name}#{defaults.$state-aware-separator};
261
+
262
+ // e.g. `.hover:shelf-aware` or `.focus:shelf-aware`
263
+ $selector: #{$selector-prefix}#{defaults.$shelf-aware-selector};
264
+
265
+ @include utility.create-mapped(
266
+ $selector,
267
+ (
268
+ padding-right: 0,
269
+ padding-left:
270
+ navigation-shelf-variables.$navigation-shelf-closed-width,
271
+ ),
272
+ $important: #{defaults.$use-important},
273
+ $state: $state-name
274
+ ) {
275
+ // `&.locked`
276
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
277
+ padding-left: important.insert(
278
+ navigation-shelf-variables.$navigation-shelf-open-width,
279
+ defaults.$use-important
280
+ );
281
+ }
282
+
283
+ // `&.left-side`
284
+ &#{navigation-shelf-defaults.$navigation-shelf-side-selector-base}#{navigation-shelf-defaults.$navigation-shelf-left-side-selector}#{navigation-shelf-defaults.$navigation-shelf-side-selector-suffix} {
285
+ padding-right: important.insert(0, defaults.$use-important);
286
+ padding-left: important.insert(
287
+ navigation-shelf-variables.$navigation-shelf-closed-width,
288
+ defaults.$use-important
289
+ );
290
+
291
+ // `&.locked`
292
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
293
+ padding-left: important.insert(
294
+ navigation-shelf-variables.$navigation-shelf-open-width,
295
+ defaults.$use-important
296
+ );
297
+ }
298
+ }
299
+
300
+ // `&.right-side`
301
+ &#{navigation-shelf-defaults.$navigation-shelf-side-selector-base}#{navigation-shelf-defaults.$navigation-shelf-right-side-selector}#{navigation-shelf-defaults.$navigation-shelf-side-selector-suffix} {
302
+ padding-right: important.insert(
303
+ navigation-shelf-variables.$navigation-shelf-closed-width,
304
+ defaults.$use-important
305
+ );
306
+ padding-left: important.insert(0, defaults.$use-important);
307
+
308
+ // `&.locked`
309
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
310
+ padding-right: important.insert(
311
+ navigation-shelf-variables.$navigation-shelf-open-width,
312
+ defaults.$use-important
313
+ );
314
+ }
315
+ }
316
+ }
317
+ }
318
+ }
319
+
320
+ // Generate container-aware utilities.
321
+ @if defaults.$container-aware and root-defaults.$container-aware-utilities {
322
+ @each $container-name in map.keys(root-defaults.$container-sizes) {
323
+ // e.g. `.md:` or `.lg:`
324
+ $selector-prefix: #{defaults.$selector-base}#{defaults.$container-aware-selector-prefix}#{$container-name}#{defaults.$container-aware-separator};
325
+
326
+ // e.g. `.cq:md:shelf-aware`
327
+ $selector: #{$selector-prefix}#{defaults.$shelf-aware-selector};
328
+
329
+ @include utility.create-mapped(
330
+ $selector,
331
+ (
332
+ padding-right: 0,
333
+ padding-left:
334
+ navigation-shelf-variables.$navigation-shelf-closed-width,
335
+ ),
336
+ $important: #{defaults.$use-important},
337
+ $container: $container-name
338
+ ) {
339
+ // `&.locked`
340
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
341
+ padding-left: important.insert(
342
+ navigation-shelf-variables.$navigation-shelf-open-width,
343
+ defaults.$use-important
344
+ );
345
+ }
346
+
347
+ // `&.left-side`
348
+ &#{navigation-shelf-defaults.$navigation-shelf-side-selector-base}#{navigation-shelf-defaults.$navigation-shelf-left-side-selector}#{navigation-shelf-defaults.$navigation-shelf-side-selector-suffix} {
349
+ padding-right: important.insert(0, defaults.$use-important);
350
+ padding-left: important.insert(
351
+ navigation-shelf-variables.$navigation-shelf-closed-width,
352
+ defaults.$use-important
353
+ );
354
+
355
+ // `&.locked`
356
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
357
+ padding-left: important.insert(
358
+ navigation-shelf-variables.$navigation-shelf-open-width,
359
+ defaults.$use-important
360
+ );
361
+ }
362
+ }
363
+
364
+ // `&.right-side`
365
+ &#{navigation-shelf-defaults.$navigation-shelf-side-selector-base}#{navigation-shelf-defaults.$navigation-shelf-right-side-selector}#{navigation-shelf-defaults.$navigation-shelf-side-selector-suffix} {
366
+ padding-right: important.insert(
367
+ navigation-shelf-variables.$navigation-shelf-closed-width,
368
+ defaults.$use-important
369
+ );
370
+ padding-left: important.insert(0, defaults.$use-important);
371
+
372
+ // `&.locked`
373
+ &#{navigation-shelf-defaults.$navigation-shelf-locked-selector-base}#{navigation-shelf-defaults.$navigation-shelf-locked-selector} {
374
+ padding-right: important.insert(
375
+ navigation-shelf-variables.$navigation-shelf-open-width,
376
+ defaults.$use-important
377
+ );
378
+ }
379
+ }
380
+ }
381
+ }
382
+ }
383
+ }
@@ -0,0 +1,6 @@
1
+ // @graupl/navigation-shelf [_template] utilities variables.
2
+ //
3
+ // These values are to be used to directly style components and provide a
4
+ // cleaner way to reference custom properties.
5
+
6
+ @use "defaults";
@@ -0,0 +1,58 @@
1
+ // @graupl/navigation-shelf width utilities default values.
2
+ //
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.
8
+
9
+ @use "../../component/navigation-shelf/variables" as *;
10
+ @use "pkg:@graupl/core/src/defaults" as root-defaults;
11
+ @use "pkg:@graupl/core/src/utilities/width/defaults" as width-defaults;
12
+ @use "pkg:@graupl/core/src/variables" as root-variables;
13
+ @use "sass:map";
14
+
15
+ // Utility modifiers.
16
+ $selector-base: width-defaults.$selector-base !default;
17
+ $use-important: width-defaults.$use-important !default;
18
+ $generate-base-utilities: width-defaults.$generate-base-utilities !default;
19
+ $screen-aware: width-defaults.$screen-aware !default;
20
+ $theme-aware: width-defaults.$theme-aware !default;
21
+ $state-aware: width-defaults.$state-aware !default;
22
+ $container-aware: width-defaults.$container-aware !default;
23
+ $screen-aware-separator: width-defaults.$screen-aware-separator !default;
24
+ $theme-aware-separator: width-defaults.$theme-aware-separator !default;
25
+ $state-aware-separator: width-defaults.$state-aware-separator !default;
26
+ $container-aware-separator: width-defaults.$container-aware-separator !default;
27
+ $screen-aware-selector-prefix: width-defaults.$screen-aware-selector-prefix !default;
28
+ $theme-aware-selector-prefix: width-defaults.$theme-aware-selector-prefix !default;
29
+ $state-aware-selector-prefix: width-defaults.$state-aware-selector-prefix !default;
30
+ $container-aware-selector-prefix: width-defaults.$container-aware-selector-prefix !default;
31
+
32
+ // Width properties.
33
+ $width-selector-prefix: width-defaults.$width-selector-prefix !default;
34
+ $max-width-selector-prefix: width-defaults.$max-width-selector-prefix !default;
35
+ $min-width-selector-prefix: width-defaults.$min-width-selector-prefix !default;
36
+
37
+ // Width values.
38
+ $-width-values: (
39
+ shelf-min: $navigation-shelf-min-width,
40
+ shelf-max: $navigation-shelf-max-width,
41
+ shelf-current: $navigation-shelf-current-width,
42
+ shelf-closed: $navigation-shelf-closed-width,
43
+ shelf-open: $navigation-shelf-open-width,
44
+ );
45
+ $custom-width-values: () !default;
46
+ $width-values: () !default;
47
+
48
+ // @todo remove this once $custom-width-values is removed
49
+ @if $custom-width-values != () {
50
+ @warn "`$custom-width-values` is deprecated and will be removed in a future release of Graupl. Use `$width-values` instead.";
51
+
52
+ $width-values: map.merge($width-values, $custom-width-values);
53
+ }
54
+
55
+ // Merge custom properties with base properties if generating base utilities.
56
+ @if $generate-base-utilities {
57
+ $width-values: map.merge($-width-values, $width-values);
58
+ }