beathers 5.7.6 → 5.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/.prettierrc.js +10 -8
  2. package/CHANGELOG +305 -274
  3. package/css/beathers.min.css +2 -2
  4. package/css/beathers.min.css.map +1 -1
  5. package/docs/colors.md +250 -250
  6. package/docs/grid-system.md +130 -130
  7. package/docs/shaping.md +272 -272
  8. package/docs/typography.md +124 -124
  9. package/package.json +107 -105
  10. package/readme.md +301 -301
  11. package/scripts/commands/build.js +4 -4
  12. package/scripts/commands/clean.d.ts +2 -0
  13. package/scripts/commands/clean.d.ts.map +1 -0
  14. package/scripts/commands/clean.js +22 -0
  15. package/scripts/commands/fonts.d.ts.map +1 -1
  16. package/scripts/commands/fonts.js +4 -3
  17. package/scripts/commands/index.js +8 -8
  18. package/scripts/commands/init.js +1 -1
  19. package/scripts/commands/version-update.d.ts +2 -0
  20. package/scripts/commands/version-update.d.ts.map +1 -0
  21. package/scripts/commands/version-update.js +122 -0
  22. package/scripts/commands/version.js +1 -1
  23. package/scripts/helpers/BuildScssVariables.d.ts +1 -1
  24. package/scripts/helpers/BuildScssVariables.d.ts.map +1 -1
  25. package/scripts/helpers/BuildScssVariables.js +20 -10
  26. package/scripts/helpers/LoadUserConfigs.js +1 -1
  27. package/scripts/helpers/ReadDefaultValues.js +20 -20
  28. package/scripts/types.d.ts +1 -1
  29. package/scripts/types.d.ts.map +1 -1
  30. package/scss/_variables.scss +19 -19
  31. package/scss/beathers.min.scss +15 -14
  32. package/scss/functions/_colors.scss +242 -230
  33. package/scss/functions/_mediaQueries.scss +140 -136
  34. package/scss/functions/_others.scss +113 -79
  35. package/scss/functions/_typographic.scss +133 -129
  36. package/scss/functions/_validations.scss +293 -251
  37. package/scss/settings/_configs.scss +270 -270
  38. package/scss/settings/_defaults.scss +209 -214
  39. package/scss/settings/_index.scss +90 -90
  40. package/scss/style/_button.scss +103 -101
  41. package/scss/style/_colors.scss +156 -146
  42. package/scss/style/_dialog.scss +147 -146
  43. package/scss/style/_glass.scss +98 -80
  44. package/scss/style/_grid.scss +121 -95
  45. package/scss/style/_loader.scss +74 -62
  46. package/scss/style/_resets.scss +176 -168
  47. package/scss/style/_shaping.scss +561 -439
  48. package/scss/style/_typographic.scss +400 -345
@@ -1,270 +1,270 @@
1
- // Core configuration maps and variables for the Beathers Design System.
2
-
3
- // Defines CSS properties for color utilities.
4
- $colorsPropertiesMap: (
5
- null: color,
6
- bg: background-color,
7
- border: border-color,
8
- fill: fill,
9
- stroke: stroke,
10
- text-stroke: -webkit-text-stroke-color,
11
- );
12
-
13
- // Defines pseudo-classes for color variants.
14
- $colorsPseudoMap: (
15
- 'placeholder': '::placeholder',
16
- 'hover': ':hover',
17
- 'focus': ':focus',
18
- );
19
-
20
- // Defines available font weights.
21
- $fontWeightsValues: (
22
- 'thin': 100,
23
- 'extra-light': 200,
24
- 'light': 300,
25
- 'regular': 400,
26
- 'medium': 500,
27
- 'semibold': 600,
28
- 'bold': 700,
29
- 'extra-bold': 800,
30
- 'black': 900,
31
- );
32
-
33
- // Defines text transformation and decoration options.
34
- $fontShapes: (
35
- 'transform': (
36
- uppercase,
37
- lowercase,
38
- capitalize,
39
- ),
40
- 'decoration': (
41
- underline,
42
- line-through,
43
- ),
44
- 'styles': (
45
- wavy,
46
- double,
47
- dotted,
48
- dashed,
49
- ),
50
- );
51
-
52
- // Defines text alignment options.
53
- $aligns: (left, start, right, end, justify, center);
54
-
55
- // Defines flexbox properties.
56
- $flexProperties: (
57
- flex-wrap: wrap nowrap,
58
- flex-direction: row row-reverse column column-reverse,
59
- );
60
-
61
- // Defines display utility options.
62
- $displays: (inline, block, inline-block, flex, inline-flex, inline-grid, table, table-cell, none);
63
-
64
- // Defines overflow directions.
65
- $overflowsDirections: (null, 'x', 'y');
66
- // Defines overflow behaviors.
67
- $overflows: (visible, hidden, auto, scroll);
68
- // Defines object-fit property values.
69
- $objectsFits: (cover, fill, contain, none);
70
-
71
- // Defines available cursor types.
72
- $cursors: (
73
- alias,
74
- auto,
75
- cell,
76
- context-menu,
77
- copy,
78
- crosshair,
79
- default,
80
- grab,
81
- grabbing,
82
- help,
83
- move,
84
- no-drop,
85
- none,
86
- not-allowed,
87
- pointer,
88
- progress,
89
- col-resize,
90
- row-resize,
91
- text,
92
- wait,
93
- zoom-in,
94
- zoom-out
95
- );
96
-
97
- // Defines shadow presets.
98
- $shadows: (
99
- 'light': (
100
- rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em,
101
- rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em,
102
- rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset,
103
- ),
104
- 'soft': (
105
- rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
106
- rgba(0, 0, 0, 0.04) 0px 10px 10px -5px,
107
- ),
108
- 'medium': (
109
- rgba(0, 0, 0, 0.1) 0px 10px 50px,
110
- ),
111
- 'solid': (
112
- rgba(0, 0, 0, 0.2) 0px 12px 28px 0px,
113
- rgba(0, 0, 0, 0.1) 0px 2px 4px 0px,
114
- rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset,
115
- ),
116
- 'floating': (
117
- rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
118
- rgba(0, 0, 0, 0.3) 0px 8px 16px -8px,
119
- ),
120
- 'flat': (
121
- rgba(0, 0, 0, 0.15) 0px 3px 3px 0px,
122
- ),
123
- ) !default;
124
-
125
- // Defines utility classes for clearing properties.
126
- $clearanceOptions: (
127
- no-bg: (
128
- background: unset,
129
- background-color: unset,
130
- ),
131
- no-border: (
132
- border: unset,
133
- ),
134
- no-radius: (
135
- border-radius: unset,
136
- ),
137
- no-events: (
138
- pointer-events: none,
139
- ),
140
- no-position: (
141
- position: unset,
142
- ),
143
- );
144
-
145
- // Defines available position values.
146
- $positions: static, relative, fixed, absolute, sticky;
147
-
148
- // Defines inset positioning options.
149
- $insetPositions: null, inline, block;
150
-
151
- // Defines the step for spacing utilities.
152
- $spacesStep: 5;
153
-
154
- // Defines properties for width and height utilities.
155
- $spacesDirections: (
156
- 'w': width,
157
- 'min#{\:}w': min-width,
158
- 'max#{\:}w': max-width,
159
- 'h': height,
160
- 'min#{\:}h': min-height,
161
- 'max#{\:}h': max-height,
162
- );
163
-
164
- // Defines properties for padding, margin and gap utilities.
165
- $gutters: (
166
- p: padding,
167
- px: padding-inline,
168
- py: padding-block,
169
- ps: padding-inline-start,
170
- pe: padding-inline-end,
171
- pt: padding-block-start,
172
- pb: padding-block-end,
173
- m: margin,
174
- mx: margin-inline,
175
- my: margin-block,
176
- ms: margin-inline-start,
177
- me: margin-inline-end,
178
- mt: margin-block-start,
179
- mb: margin-block-end,
180
- g: gap,
181
- gx: column-gap,
182
- gy: row-gap,
183
- );
184
-
185
- // Defines border direction properties.
186
- $bordersDirections: (
187
- null: border,
188
- 'top': border-block-start,
189
- 'bottom': border-block-end,
190
- 'start': border-inline-start,
191
- 'end': border-inline-end,
192
- );
193
-
194
- // Defines border-radius direction properties.
195
- $radiusDirection: (
196
- null: (
197
- border-radius,
198
- ),
199
- 'top': (
200
- border-start-start-radius,
201
- border-start-end-radius,
202
- ),
203
- 'bottom': (
204
- border-end-start-radius,
205
- border-end-end-radius,
206
- ),
207
- 'start': (
208
- border-start-start-radius,
209
- border-end-start-radius,
210
- ),
211
- 'end': (
212
- border-start-end-radius,
213
- border-end-end-radius,
214
- ),
215
- 'top-start': (
216
- border-start-start-radius,
217
- ),
218
- 'top-end': (
219
- border-start-end-radius,
220
- ),
221
- 'bottom-start': (
222
- border-end-start-radius,
223
- ),
224
- 'bottom-end': (
225
- border-end-end-radius,
226
- ),
227
- );
228
-
229
- $justify: (
230
- justify: (
231
- content: (
232
- start,
233
- center,
234
- end,
235
- between,
236
- around,
237
- evenly,
238
- ),
239
- self: (
240
- auto,
241
- center,
242
- stretch,
243
- ),
244
- ),
245
- align: (
246
- content: (
247
- start,
248
- center,
249
- end,
250
- around,
251
- between,
252
- stretch,
253
- ),
254
- items: (
255
- start,
256
- center,
257
- end,
258
- stretch,
259
- baseline,
260
- ),
261
- self: (
262
- auto,
263
- start,
264
- center,
265
- end,
266
- stretch,
267
- baseline,
268
- ),
269
- ),
270
- );
1
+ // Core configuration maps and variables for the Beathers Design System.
2
+
3
+ // Defines CSS properties for color utilities.
4
+ $colorsPropertiesMap: (
5
+ null: color,
6
+ bg: background-color,
7
+ border: border-color,
8
+ fill: fill,
9
+ stroke: stroke,
10
+ text-stroke: -webkit-text-stroke-color
11
+ );
12
+
13
+ // Defines pseudo-classes for color variants.
14
+ $colorsPseudoMap: (
15
+ 'placeholder': '::placeholder',
16
+ 'hover': ':hover',
17
+ 'focus': ':focus'
18
+ );
19
+
20
+ // Defines available font weights.
21
+ $fontWeightsValues: (
22
+ 'thin': 100,
23
+ 'extra-light': 200,
24
+ 'light': 300,
25
+ 'regular': 400,
26
+ 'medium': 500,
27
+ 'semibold': 600,
28
+ 'bold': 700,
29
+ 'extra-bold': 800,
30
+ 'black': 900
31
+ );
32
+
33
+ // Defines text transformation and decoration options.
34
+ $fontShapes: (
35
+ 'transform': (
36
+ uppercase,
37
+ lowercase,
38
+ capitalize
39
+ ),
40
+ 'decoration': (
41
+ underline,
42
+ line-through
43
+ ),
44
+ 'styles': (
45
+ wavy,
46
+ double,
47
+ dotted,
48
+ dashed
49
+ )
50
+ );
51
+
52
+ // Defines text alignment options.
53
+ $aligns: (left, start, right, end, justify, center);
54
+
55
+ // Defines flexbox properties.
56
+ $flexProperties: (
57
+ flex-wrap: wrap nowrap,
58
+ flex-direction: row row-reverse column column-reverse
59
+ );
60
+
61
+ // Defines display utility options.
62
+ $displays: (inline, block, inline-block, flex, inline-flex, inline-grid, table, table-cell, none);
63
+
64
+ // Defines overflow directions.
65
+ $overflowsDirections: (null, 'x', 'y');
66
+ // Defines overflow behaviors.
67
+ $overflows: (visible, hidden, auto, scroll);
68
+ // Defines object-fit property values.
69
+ $objectsFits: (cover, fill, contain, none);
70
+
71
+ // Defines available cursor types.
72
+ $cursors: (
73
+ alias,
74
+ auto,
75
+ cell,
76
+ context-menu,
77
+ copy,
78
+ crosshair,
79
+ default,
80
+ grab,
81
+ grabbing,
82
+ help,
83
+ move,
84
+ no-drop,
85
+ none,
86
+ not-allowed,
87
+ pointer,
88
+ progress,
89
+ col-resize,
90
+ row-resize,
91
+ text,
92
+ wait,
93
+ zoom-in,
94
+ zoom-out
95
+ );
96
+
97
+ // Defines shadow presets.
98
+ $shadows: (
99
+ 'light': (
100
+ rgb(0, 0, 0, 0.25) 0px 0.0625em 0.0625em,
101
+ rgb(0, 0, 0, 0.25) 0px 0.125em 0.5em,
102
+ rgb(255, 255, 255, 0.1) 0px 0px 0px 1px inset
103
+ ),
104
+ 'soft': (
105
+ rgb(0, 0, 0, 0.1) 0px 20px 25px -5px,
106
+ rgb(0, 0, 0, 0.04) 0px 10px 10px -5px
107
+ ),
108
+ 'medium': (
109
+ rgb(0, 0, 0, 0.1) 0px 10px 50px
110
+ ),
111
+ 'solid': (
112
+ rgb(0, 0, 0, 0.2) 0px 12px 28px 0px,
113
+ rgb(0, 0, 0, 0.1) 0px 2px 4px 0px,
114
+ rgb(255, 255, 255, 0.05) 0px 0px 0px 1px inset
115
+ ),
116
+ 'floating': (
117
+ rgb(50, 50, 93, 0.25) 0px 13px 27px -5px,
118
+ rgb(0, 0, 0, 0.3) 0px 8px 16px -8px
119
+ ),
120
+ 'flat': (
121
+ rgb(0, 0, 0, 0.15) 0px 3px 3px 0px
122
+ )
123
+ ) !default;
124
+
125
+ // Defines utility classes for clearing properties.
126
+ $clearanceOptions: (
127
+ no-bg: (
128
+ background: unset,
129
+ background-color: unset
130
+ ),
131
+ no-border: (
132
+ border: unset
133
+ ),
134
+ no-radius: (
135
+ border-radius: unset
136
+ ),
137
+ no-events: (
138
+ pointer-events: none
139
+ ),
140
+ no-position: (
141
+ position: unset
142
+ )
143
+ );
144
+
145
+ // Defines available position values.
146
+ $positions: static, relative, fixed, absolute, sticky;
147
+
148
+ // Defines inset positioning options.
149
+ $insetPositions: null, inline, block;
150
+
151
+ // Defines the step for spacing utilities.
152
+ $spacesStep: 5;
153
+
154
+ // Defines properties for width and height utilities.
155
+ $spacesDirections: (
156
+ 'w': width,
157
+ 'min#{\:}w': min-width,
158
+ 'max#{\:}w': max-width,
159
+ 'h': height,
160
+ 'min#{\:}h': min-height,
161
+ 'max#{\:}h': max-height
162
+ );
163
+
164
+ // Defines properties for padding, margin and gap utilities.
165
+ $gutters: (
166
+ p: padding,
167
+ px: padding-inline,
168
+ py: padding-block,
169
+ ps: padding-inline-start,
170
+ pe: padding-inline-end,
171
+ pt: padding-block-start,
172
+ pb: padding-block-end,
173
+ m: margin,
174
+ mx: margin-inline,
175
+ my: margin-block,
176
+ ms: margin-inline-start,
177
+ me: margin-inline-end,
178
+ mt: margin-block-start,
179
+ mb: margin-block-end,
180
+ g: gap,
181
+ gx: column-gap,
182
+ gy: row-gap
183
+ );
184
+
185
+ // Defines border direction properties.
186
+ $bordersDirections: (
187
+ null: border,
188
+ 'top': border-block-start,
189
+ 'bottom': border-block-end,
190
+ 'start': border-inline-start,
191
+ 'end': border-inline-end
192
+ );
193
+
194
+ // Defines border-radius direction properties.
195
+ $radiusDirection: (
196
+ null: (
197
+ border-radius
198
+ ),
199
+ 'top': (
200
+ border-start-start-radius,
201
+ border-start-end-radius
202
+ ),
203
+ 'bottom': (
204
+ border-end-start-radius,
205
+ border-end-end-radius
206
+ ),
207
+ 'start': (
208
+ border-start-start-radius,
209
+ border-end-start-radius
210
+ ),
211
+ 'end': (
212
+ border-start-end-radius,
213
+ border-end-end-radius
214
+ ),
215
+ 'top-start': (
216
+ border-start-start-radius
217
+ ),
218
+ 'top-end': (
219
+ border-start-end-radius
220
+ ),
221
+ 'bottom-start': (
222
+ border-end-start-radius
223
+ ),
224
+ 'bottom-end': (
225
+ border-end-end-radius
226
+ )
227
+ );
228
+
229
+ $justify: (
230
+ justify: (
231
+ content: (
232
+ start,
233
+ center,
234
+ end,
235
+ between,
236
+ around,
237
+ evenly
238
+ ),
239
+ self: (
240
+ auto,
241
+ center,
242
+ stretch
243
+ )
244
+ ),
245
+ align: (
246
+ content: (
247
+ start,
248
+ center,
249
+ end,
250
+ around,
251
+ between,
252
+ stretch
253
+ ),
254
+ items: (
255
+ start,
256
+ center,
257
+ end,
258
+ stretch,
259
+ baseline
260
+ ),
261
+ self: (
262
+ auto,
263
+ start,
264
+ center,
265
+ end,
266
+ stretch,
267
+ baseline
268
+ )
269
+ )
270
+ );