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,146 +1,147 @@
1
- @use '../settings/index' as settings;
2
- @use '../variables' as vars;
3
-
4
- // Definitions
5
- $useLoader: if(vars.$useLoader != null, vars.$useLoader, settings.$useLoader);
6
-
7
-
8
- $dialogInline: (
9
- height: 100dvh,
10
- transition: all 300ms ease-in-out,
11
- );
12
-
13
- $dialogBlock: (
14
- transform: translateX(-50%),
15
- max-width: 95%,
16
- max-height: 95%,
17
- transition: all 300ms ease-in-out,
18
- );
19
-
20
- $dialogCenter: (
21
- transform: translate(-50%, -50%),
22
- max-width: 95%,
23
- max-height: 95%,
24
- transition: all 300ms cubic-bezier(0, 2.5, 1, 1),
25
- );
26
-
27
- $dialogPositions: (
28
- 'top': (
29
- origin: (
30
- top: -150%,
31
- left: 50%,
32
- ),
33
- active: (
34
- top: 2.5%,
35
- ),
36
- ),
37
- 'bottom': (
38
- origin: (
39
- bottom: -150%,
40
- left: 50%,
41
- ),
42
- active: (
43
- bottom: 2.5%,
44
- ),
45
- ),
46
- 'left': (
47
- origin: (
48
- top: 0,
49
- left: -100%,
50
- right: unset,
51
- ),
52
- active: (
53
- left: 0,
54
- ),
55
- ),
56
- 'start': (
57
- origin: (
58
- top: 0,
59
- inset-inline-start: -100%,
60
- inset-inline-end: unset,
61
- ),
62
- active: (
63
- inset-inline-start: 0,
64
- ),
65
- ),
66
- 'right': (
67
- origin: (
68
- top: 0,
69
- right: -100%,
70
- left: unset,
71
- ),
72
- active: (
73
- right: 0,
74
- ),
75
- ),
76
- 'end': (
77
- origin: (
78
- top: 0,
79
- inset-inline-end: -100%,
80
- inset-inline-start: unset,
81
- ),
82
- active: (
83
- inset-inline-end: 0,
84
- ),
85
- ),
86
- 'center': (
87
- origin: (
88
- top: 150%,
89
- left: 50%,
90
- ),
91
- active: (
92
- top: 50%,
93
- ),
94
- ),
95
- );
96
-
97
- .dialog {
98
- --dialog-width: 400px;
99
- --dialog-min-width: 380px;
100
-
101
- position: fixed;
102
- border: unset;
103
- overflow-y: auto;
104
- z-index: 2000;
105
- pointer-events: none;
106
- opacity: 0;
107
-
108
- &.active {
109
- pointer-events: all;
110
- opacity: 1;
111
- }
112
-
113
- @each $position, $modes in $dialogPositions {
114
- &.#{$position} {
115
- min-width: var(--dialog-min-width);
116
-
117
- @if $position == 'center' {
118
- @each $posProp, $posValue in $dialogCenter {
119
- #{$posProp}: $posValue;
120
- }
121
- } @else if $position == 'left' or $position == 'right' or $position == 'start' or $position == 'end' {
122
- @each $posProp, $posValue in $dialogInline {
123
- #{$posProp}: $posValue;
124
- }
125
-
126
- width: var(--dialog-width);
127
- } @else if $position == 'top' or $position == 'bottom' {
128
- @each $posProp, $posValue in $dialogBlock {
129
- #{$posProp}: $posValue;
130
- }
131
- }
132
-
133
- @each $mode, $values in $modes {
134
- @each $prop, $value in $values {
135
- @if $mode == 'active' {
136
- &.active {
137
- #{$prop}: $value;
138
- }
139
- } @else {
140
- #{$prop}: $value;
141
- }
142
- }
143
- }
144
- }
145
- }
146
- }
1
+ @use '../settings/index' as settings;
2
+ @use '../variables' as vars;
3
+
4
+ // Definitions
5
+ $useLoader: if(
6
+ sass(vars.$useLoader != null): vars.$useLoader; else: settings.$useLoader
7
+ );
8
+
9
+ $dialogInline: (
10
+ height: 100dvh,
11
+ transition: all 300ms ease-in-out
12
+ );
13
+
14
+ $dialogBlock: (
15
+ transform: translateX(-50%),
16
+ max-width: 95%,
17
+ max-height: 95%,
18
+ transition: all 300ms ease-in-out
19
+ );
20
+
21
+ $dialogCenter: (
22
+ transform: translate(-50%, -50%),
23
+ max-width: 95%,
24
+ max-height: 95%,
25
+ transition: all 300ms cubic-bezier(0, 2.5, 1, 1)
26
+ );
27
+
28
+ $dialogPositions: (
29
+ 'top': (
30
+ origin: (
31
+ top: -150%,
32
+ left: 50%
33
+ ),
34
+ active: (
35
+ top: 2.5%
36
+ )
37
+ ),
38
+ 'bottom': (
39
+ origin: (
40
+ bottom: -150%,
41
+ left: 50%
42
+ ),
43
+ active: (
44
+ bottom: 2.5%
45
+ )
46
+ ),
47
+ 'left': (
48
+ origin: (
49
+ top: 0,
50
+ left: -100%,
51
+ right: unset
52
+ ),
53
+ active: (
54
+ left: 0
55
+ )
56
+ ),
57
+ 'start': (
58
+ origin: (
59
+ top: 0,
60
+ inset-inline-start: -100%,
61
+ inset-inline-end: unset
62
+ ),
63
+ active: (
64
+ inset-inline-start: 0
65
+ )
66
+ ),
67
+ 'right': (
68
+ origin: (
69
+ top: 0,
70
+ right: -100%,
71
+ left: unset
72
+ ),
73
+ active: (
74
+ right: 0
75
+ )
76
+ ),
77
+ 'end': (
78
+ origin: (
79
+ top: 0,
80
+ inset-inline-end: -100%,
81
+ inset-inline-start: unset
82
+ ),
83
+ active: (
84
+ inset-inline-end: 0
85
+ )
86
+ ),
87
+ 'center': (
88
+ origin: (
89
+ top: 150%,
90
+ left: 50%
91
+ ),
92
+ active: (
93
+ top: 50%
94
+ )
95
+ )
96
+ );
97
+
98
+ .dialog {
99
+ --dialog-width: 400px;
100
+ --dialog-min-width: 380px;
101
+
102
+ position: fixed;
103
+ border: unset;
104
+ overflow-y: auto;
105
+ z-index: 2000;
106
+ pointer-events: none;
107
+ opacity: 0;
108
+
109
+ &.active {
110
+ pointer-events: all;
111
+ opacity: 1;
112
+ }
113
+
114
+ @each $position, $modes in $dialogPositions {
115
+ &.#{$position} {
116
+ min-width: var(--dialog-min-width);
117
+
118
+ @if $position == 'center' {
119
+ @each $posProp, $posValue in $dialogCenter {
120
+ #{$posProp}: $posValue;
121
+ }
122
+ } @else if $position == 'left' or $position == 'right' or $position == 'start' or $position == 'end' {
123
+ @each $posProp, $posValue in $dialogInline {
124
+ #{$posProp}: $posValue;
125
+ }
126
+
127
+ width: var(--dialog-width);
128
+ } @else if $position == 'top' or $position == 'bottom' {
129
+ @each $posProp, $posValue in $dialogBlock {
130
+ #{$posProp}: $posValue;
131
+ }
132
+ }
133
+
134
+ @each $mode, $values in $modes {
135
+ @each $prop, $value in $values {
136
+ @if $mode == 'active' {
137
+ &.active {
138
+ #{$prop}: $value;
139
+ }
140
+ } @else {
141
+ #{$prop}: $value;
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
@@ -1,80 +1,98 @@
1
- @use 'sass:map';
2
- @use '../functions/colors' as colors;
3
- @use '../settings/index' as settings;
4
- @use '../settings/defaults' as defs;
5
- @use '../variables' as vars;
6
-
7
- // Definitions
8
- $useGlass: if(vars.$useGlass != null, vars.$useGlass, settings.$useGlass);
9
- $useColorsLightMode: if(vars.$useColorsLightMode != null, vars.$useColorsLightMode, settings.$useColorsLightMode);
10
- $useColorsDarkMode: if(vars.$useColorsDarkMode != null, vars.$useColorsDarkMode, settings.$useColorsDarkMode);
11
- $glassBlur: if(vars.$glassBlur != null, vars.$glassBlur, defs.$glassBlur);
12
- $glassColor: if(vars.$glassColor != null, vars.$glassColor, defs.$glassColor);
13
- $glassBorderThickness: if(vars.$glassBorderThickness != null, vars.$glassBorderThickness, defs.$glassBorderThickness);
14
- $glassBorder1Color: if(vars.$glassBorder1Color != null, vars.$glassBorder1Color, defs.$glassBorder1Color);
15
- $glassBorder2Color: if(vars.$glassBorder2Color != null, vars.$glassBorder2Color, defs.$glassBorder2Color);
16
- $glassLightAngle: if(vars.$glassLightAngle != null, vars.$glassLightAngle, defs.$glassLightAngle);
17
-
18
- @if $useGlass {
19
- $glassColorLight: colors.hexToRgba(map.get($glassColor, 'light'), 0.15, 'Glass.light');
20
- $glassColorDark: colors.hexToRgba(map.get($glassColor, 'dark'), 0.15, 'Glass.dark');
21
- $glassBorder1ColorLight: colors.hexToRgba(map.get($glassBorder1Color, 'light'), 0.4, 'Glass.light');
22
- $glassBorder1ColorDark: colors.hexToRgba(map.get($glassBorder1Color, 'dark'), 0.4, 'Glass.dark');
23
- $glassBorder2ColorLight: colors.hexToRgba(map.get($glassBorder2Color, 'light'), 0.4, 'Glass.light');
24
- $glassBorder2ColorDark: colors.hexToRgba(map.get($glassBorder2Color, 'dark'), 0.4, 'Glass.dark');
25
-
26
- .bg\:glass {
27
- position: relative;
28
- isolation: isolate;
29
- backdrop-filter: blur(var(--glass-blur, $glassBlur));
30
-
31
- &::before {
32
- content: '';
33
- position: absolute;
34
- inset: 0;
35
- border-radius: inherit;
36
- border: var(--glass-border-thickness, $glassBorderThickness) solid transparent;
37
- mask:
38
- linear-gradient(black, black) border-box,
39
- linear-gradient(black, black) padding-box;
40
- mask-composite: subtract;
41
- z-index: -1;
42
- }
43
-
44
- @if ($useColorsLightMode) {
45
- .light &,
46
- .light\:#{&},
47
- &.light {
48
- background: var(--glass-color-light, $glassColorLight);
49
-
50
- &::before {
51
- background: linear-gradient(
52
- var(--glass-light-angle, $glassLightAngle),
53
- var(--glass-border-2-color-light, $glassBorder2ColorLight),
54
- var(--glass-border-1-color-light, $glassBorder1ColorLight),
55
- var(--glass-border-2-color-light, $glassBorder2ColorLight)
56
- )
57
- border-box;
58
- }
59
- }
60
- }
61
-
62
- @if ($useColorsDarkMode) {
63
- .dark &,
64
- .dark\:#{&},
65
- &.dark {
66
- background: var(--glass-color-dark, $glassColorDark);
67
-
68
- &::before {
69
- background: linear-gradient(
70
- var(--glass-light-angle, $glassLightAngle),
71
- var(--glass-border-2-color-dark, $glassBorder2ColorDark),
72
- var(--glass-border-1-color-dark, $glassBorder1ColorDark),
73
- var(--glass-border-2-color-dark, $glassBorder2ColorDark)
74
- )
75
- border-box;
76
- }
77
- }
78
- }
79
- }
80
- }
1
+ @use 'sass:map';
2
+ @use '../functions/colors' as colors;
3
+ @use '../settings/index' as settings;
4
+ @use '../settings/defaults' as defs;
5
+ @use '../variables' as vars;
6
+
7
+ // Definitions
8
+ $useGlass: if(
9
+ sass(vars.$useGlass != null): vars.$useGlass; else: settings.$useGlass
10
+ );
11
+ $useColorsLightMode: if(
12
+ sass(vars.$useColorsLightMode != null): vars.$useColorsLightMode; else: settings.$useColorsLightMode
13
+ );
14
+ $useColorsDarkMode: if(
15
+ sass(vars.$useColorsDarkMode != null): vars.$useColorsDarkMode; else: settings.$useColorsDarkMode
16
+ );
17
+ $glassBlur: if(
18
+ sass(vars.$glassBlur != null): vars.$glassBlur; else: defs.$glassBlur
19
+ );
20
+ $glassColor: if(
21
+ sass(vars.$glassColor != null): vars.$glassColor; else: defs.$glassColor
22
+ );
23
+ $glassBorderThickness: if(
24
+ sass(vars.$glassBorderThickness != null): vars.$glassBorderThickness; else: defs.$glassBorderThickness
25
+ );
26
+ $glassBorder1Color: if(
27
+ sass(vars.$glassBorder1Color != null): vars.$glassBorder1Color; else: defs.$glassBorder1Color
28
+ );
29
+ $glassBorder2Color: if(
30
+ sass(vars.$glassBorder2Color != null): vars.$glassBorder2Color; else: defs.$glassBorder2Color
31
+ );
32
+ $glassLightAngle: if(
33
+ sass(vars.$glassLightAngle != null): vars.$glassLightAngle; else: defs.$glassLightAngle
34
+ );
35
+
36
+ @if $useGlass {
37
+ $glassColorLight: colors.hexToRgba(map.get($glassColor, 'light'), 0.15, 'Glass.light');
38
+ $glassColorDark: colors.hexToRgba(map.get($glassColor, 'dark'), 0.15, 'Glass.dark');
39
+ $glassBorder1ColorLight: colors.hexToRgba(map.get($glassBorder1Color, 'light'), 0.4, 'Glass.light');
40
+ $glassBorder1ColorDark: colors.hexToRgba(map.get($glassBorder1Color, 'dark'), 0.4, 'Glass.dark');
41
+ $glassBorder2ColorLight: colors.hexToRgba(map.get($glassBorder2Color, 'light'), 0.4, 'Glass.light');
42
+ $glassBorder2ColorDark: colors.hexToRgba(map.get($glassBorder2Color, 'dark'), 0.4, 'Glass.dark');
43
+
44
+ .bg\:glass {
45
+ position: relative;
46
+ isolation: isolate;
47
+ backdrop-filter: blur(var(--glass-blur, $glassBlur));
48
+
49
+ &::before {
50
+ content: '';
51
+ position: absolute;
52
+ inset: 0;
53
+ border-radius: inherit;
54
+ border: var(--glass-border-thickness, $glassBorderThickness) solid transparent;
55
+ mask:
56
+ linear-gradient(black, black) border-box,
57
+ linear-gradient(black, black) padding-box;
58
+ mask-composite: subtract;
59
+ z-index: -1;
60
+ }
61
+
62
+ @if ($useColorsLightMode) {
63
+ .light &,
64
+ .light\:#{&},
65
+ &.light {
66
+ background: var(--glass-color-light, $glassColorLight);
67
+
68
+ &::before {
69
+ background: linear-gradient(
70
+ var(--glass-light-angle, $glassLightAngle),
71
+ var(--glass-border-2-color-light, $glassBorder2ColorLight),
72
+ var(--glass-border-1-color-light, $glassBorder1ColorLight),
73
+ var(--glass-border-2-color-light, $glassBorder2ColorLight)
74
+ )
75
+ border-box;
76
+ }
77
+ }
78
+ }
79
+
80
+ @if ($useColorsDarkMode) {
81
+ .dark &,
82
+ .dark\:#{&},
83
+ &.dark {
84
+ background: var(--glass-color-dark, $glassColorDark);
85
+
86
+ &::before {
87
+ background: linear-gradient(
88
+ var(--glass-light-angle, $glassLightAngle),
89
+ var(--glass-border-2-color-dark, $glassBorder2ColorDark),
90
+ var(--glass-border-1-color-dark, $glassBorder1ColorDark),
91
+ var(--glass-border-2-color-dark, $glassBorder2ColorDark)
92
+ )
93
+ border-box;
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }