@ardium-ui/ui 5.0.0-alpha.75 → 5.0.0-alpha.77

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 (132) hide show
  1. package/fesm2022/ardium-ui-ui.mjs +106 -106
  2. package/fesm2022/ardium-ui-ui.mjs.map +1 -1
  3. package/package.json +1 -1
  4. package/prebuilt-themes/default/badge.css +234 -234
  5. package/prebuilt-themes/default/badge.css.map +1 -1
  6. package/prebuilt-themes/default/buttons/button.css +324 -324
  7. package/prebuilt-themes/default/buttons/button.css.map +1 -1
  8. package/prebuilt-themes/default/buttons/fab.css +317 -319
  9. package/prebuilt-themes/default/buttons/fab.css.map +1 -1
  10. package/prebuilt-themes/default/buttons/icon-button.css +299 -300
  11. package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
  12. package/prebuilt-themes/default/calendar.css +390 -391
  13. package/prebuilt-themes/default/calendar.css.map +1 -1
  14. package/prebuilt-themes/default/card.css +151 -159
  15. package/prebuilt-themes/default/card.css.map +1 -1
  16. package/prebuilt-themes/default/checkbox-list.css +89 -88
  17. package/prebuilt-themes/default/checkbox-list.css.map +1 -1
  18. package/prebuilt-themes/default/checkbox.css +349 -349
  19. package/prebuilt-themes/default/checkbox.css.map +1 -1
  20. package/prebuilt-themes/default/chips.css +412 -412
  21. package/prebuilt-themes/default/chips.css.map +1 -1
  22. package/prebuilt-themes/default/color-display.css +34 -33
  23. package/prebuilt-themes/default/color-display.css.map +1 -1
  24. package/prebuilt-themes/default/color-picker.css +105 -103
  25. package/prebuilt-themes/default/color-picker.css.map +1 -1
  26. package/prebuilt-themes/default/core.css +108 -106
  27. package/prebuilt-themes/default/core.css.map +1 -1
  28. package/prebuilt-themes/default/dialog.css +19 -20
  29. package/prebuilt-themes/default/dialog.css.map +1 -1
  30. package/prebuilt-themes/default/divider.css +84 -83
  31. package/prebuilt-themes/default/divider.css.map +1 -1
  32. package/prebuilt-themes/default/dropdown-panel.css +42 -42
  33. package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
  34. package/prebuilt-themes/default/file-drop-area.css +329 -329
  35. package/prebuilt-themes/default/file-drop-area.css.map +1 -1
  36. package/prebuilt-themes/default/form-field-frame.css +102 -102
  37. package/prebuilt-themes/default/form-field-frame.css.map +1 -1
  38. package/prebuilt-themes/default/form-field.css +148 -151
  39. package/prebuilt-themes/default/form-field.css.map +1 -1
  40. package/prebuilt-themes/default/inputs/autocomplete-input.css +183 -183
  41. package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
  42. package/prebuilt-themes/default/inputs/color-input.css +99 -98
  43. package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
  44. package/prebuilt-themes/default/inputs/date-input.css +134 -135
  45. package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
  46. package/prebuilt-themes/default/inputs/digit-input.css +120 -122
  47. package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
  48. package/prebuilt-themes/default/inputs/file-input.css +385 -387
  49. package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
  50. package/prebuilt-themes/default/inputs/hex-input.css +150 -149
  51. package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
  52. package/prebuilt-themes/default/inputs/input.css +137 -136
  53. package/prebuilt-themes/default/inputs/input.css.map +1 -1
  54. package/prebuilt-themes/default/inputs/number-input.css +213 -214
  55. package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
  56. package/prebuilt-themes/default/inputs/password-input.css +120 -120
  57. package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
  58. package/prebuilt-themes/default/kbd-shortcut.css +14 -13
  59. package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
  60. package/prebuilt-themes/default/kbd.css +26 -25
  61. package/prebuilt-themes/default/kbd.css.map +1 -1
  62. package/prebuilt-themes/default/modal.css +96 -95
  63. package/prebuilt-themes/default/modal.css.map +1 -1
  64. package/prebuilt-themes/default/progress-bar.css +250 -235
  65. package/prebuilt-themes/default/progress-bar.css.map +1 -1
  66. package/prebuilt-themes/default/progress-circle.css +178 -177
  67. package/prebuilt-themes/default/progress-circle.css.map +1 -1
  68. package/prebuilt-themes/default/radio.css +246 -248
  69. package/prebuilt-themes/default/radio.css.map +1 -1
  70. package/prebuilt-themes/default/segment.css +432 -431
  71. package/prebuilt-themes/default/segment.css.map +1 -1
  72. package/prebuilt-themes/default/select.css +302 -304
  73. package/prebuilt-themes/default/select.css.map +1 -1
  74. package/prebuilt-themes/default/slide-toggle.css +319 -319
  75. package/prebuilt-themes/default/slide-toggle.css.map +1 -1
  76. package/prebuilt-themes/default/slider.css +399 -399
  77. package/prebuilt-themes/default/slider.css.map +1 -1
  78. package/prebuilt-themes/default/snackbar.css +185 -185
  79. package/prebuilt-themes/default/snackbar.css.map +1 -1
  80. package/prebuilt-themes/default/spinner.css +161 -161
  81. package/prebuilt-themes/default/spinner.css.map +1 -1
  82. package/prebuilt-themes/default/stars.css +271 -275
  83. package/prebuilt-themes/default/stars.css.map +1 -1
  84. package/prebuilt-themes/default/tabber.css +250 -250
  85. package/prebuilt-themes/default/tabber.css.map +1 -1
  86. package/prebuilt-themes/default/table-pagination.css +57 -57
  87. package/prebuilt-themes/default/table-pagination.css.map +1 -1
  88. package/prebuilt-themes/default/table.css +464 -463
  89. package/prebuilt-themes/default/table.css.map +1 -1
  90. package/themes/default/badge.scss +112 -110
  91. package/themes/default/buttons/button.scss +91 -89
  92. package/themes/default/buttons/fab.scss +80 -76
  93. package/themes/default/buttons/icon-button.scss +73 -71
  94. package/themes/default/calendar.scss +246 -242
  95. package/themes/default/card.scss +161 -159
  96. package/themes/default/checkbox-list.scss +85 -83
  97. package/themes/default/checkbox.scss +68 -66
  98. package/themes/default/chips.scss +202 -195
  99. package/themes/default/color-display.scss +40 -38
  100. package/themes/default/color-picker.scss +95 -93
  101. package/themes/default/core.scss +124 -121
  102. package/themes/default/dialog.scss +21 -19
  103. package/themes/default/divider.scss +92 -90
  104. package/themes/default/dropdown-panel.scss +49 -47
  105. package/themes/default/file-drop-area.scss +197 -195
  106. package/themes/default/form-field-frame.scss +69 -67
  107. package/themes/default/form-field.scss +135 -133
  108. package/themes/default/inputs/autocomplete-input.scss +99 -97
  109. package/themes/default/inputs/color-input.scss +34 -32
  110. package/themes/default/inputs/date-input.scss +88 -86
  111. package/themes/default/inputs/digit-input.scss +103 -101
  112. package/themes/default/inputs/file-input.scss +158 -156
  113. package/themes/default/inputs/hex-input.scss +66 -64
  114. package/themes/default/inputs/input.scss +52 -50
  115. package/themes/default/inputs/number-input.scss +162 -160
  116. package/themes/default/inputs/password-input.scss +99 -97
  117. package/themes/default/kbd-shortcut.scss +15 -13
  118. package/themes/default/kbd.scss +34 -32
  119. package/themes/default/modal.scss +106 -104
  120. package/themes/default/progress-bar.scss +126 -102
  121. package/themes/default/progress-circle.scss +50 -48
  122. package/themes/default/radio.scss +110 -108
  123. package/themes/default/segment.scss +282 -277
  124. package/themes/default/select.scss +255 -253
  125. package/themes/default/slide-toggle.scss +173 -171
  126. package/themes/default/slider.scss +223 -217
  127. package/themes/default/snackbar.scss +49 -47
  128. package/themes/default/spinner.scss +23 -21
  129. package/themes/default/stars.scss +95 -93
  130. package/themes/default/tabber.scss +105 -103
  131. package/themes/default/table-pagination.scss +60 -59
  132. package/themes/default/table.scss +375 -373
@@ -1,38 +1,40 @@
1
1
  @use '../variables' as ARD;
2
2
 
3
- // the variables are commented out intentionally
4
- // read more in docs/dev/css-variables.md
5
- :root {
6
- // --ard-kbd-font-size: ;
7
- --ard-kbd-border-radius: 0.1875em;
8
- --ard-kbd-margin: 0 0.125em;
9
- --ard-kbd-padding: 0.125em 0.375em;
10
- --ard-kbd-border-width: 1px;
11
- --ard-kbd-border-style: solid;
12
- --ard-kbd-border-color: ;
13
- --ard-kbd-box-shadow-settings: inset 0 -1px 0;
14
- // --ard-kbd-box-shadow-color: ;
15
- // --ard-kbd-bg: ;
16
- // --ard-kbd-filled-bg: ;
17
- }
3
+ @layer ard-theme {
4
+ // the variables are commented out intentionally
5
+ // read more in docs/dev/css-variables.md
6
+ :root {
7
+ // --ard-kbd-font-size: ;
8
+ --ard-kbd-border-radius: 0.1875em;
9
+ --ard-kbd-margin: 0 0.125em;
10
+ --ard-kbd-padding: 0.125em 0.375em;
11
+ --ard-kbd-border-width: 1px;
12
+ --ard-kbd-border-style: solid;
13
+ --ard-kbd-border-color: ;
14
+ --ard-kbd-box-shadow-settings: inset 0 -1px 0;
15
+ // --ard-kbd-box-shadow-color: ;
16
+ // --ard-kbd-bg: ;
17
+ // --ard-kbd-filled-bg: ;
18
+ }
18
19
 
19
- .ard-kbd {
20
- border-radius: var(--ard-kbd-border-radius, 0.1875em);
21
- font-family: var(--ard-font-family-mono);
22
- font-size: var(--ard-kbd-font-size, 0.875em);
23
- margin: var(--ard-kbd-margin, 0 0.125em);
24
- color: ARD.$text2;
20
+ .ard-kbd {
21
+ border-radius: var(--ard-kbd-border-radius, 0.1875em);
22
+ font-family: var(--ard-font-family-mono);
23
+ font-size: var(--ard-kbd-font-size, 0.875em);
24
+ margin: var(--ard-kbd-margin, 0 0.125em);
25
+ color: ARD.$text2;
25
26
 
26
- //! appearance
27
- &.ard-appearance-outlined,
28
- &.ard-appearance-filled {
29
- border: var(--ard-kbd-border-width, 1px) var(--ard-kbd-border-style, solid)
30
- var(--ard-kbd-border-color, #{ARD.$detail-ultralight});
31
- box-shadow: var(--ard-kbd-box-shadow-settings, inset 0 -1px 0) var(--ard-kbd-box-shadow-color, #{ARD.$detail-light});
32
- padding: var(--ard-kbd-padding, 0.125em 0.375em);
33
- background-color: var(--ard-kbd-bg, #{ARD.$bg});
34
- }
35
- &.ard-appearance-filled {
36
- background: var(--ard-kbd-filled-bg, #{ARD.$bg-d});
27
+ //! appearance
28
+ &.ard-appearance-outlined,
29
+ &.ard-appearance-filled {
30
+ border: var(--ard-kbd-border-width, 1px) var(--ard-kbd-border-style, solid)
31
+ var(--ard-kbd-border-color, #{ARD.$detail-ultralight});
32
+ box-shadow: var(--ard-kbd-box-shadow-settings, inset 0 -1px 0) var(--ard-kbd-box-shadow-color, #{ARD.$detail-light});
33
+ padding: var(--ard-kbd-padding, 0.125em 0.375em);
34
+ background-color: var(--ard-kbd-bg, #{ARD.$bg});
35
+ }
36
+ &.ard-appearance-filled {
37
+ background: var(--ard-kbd-filled-bg, #{ARD.$bg-d});
38
+ }
37
39
  }
38
40
  }
@@ -1,126 +1,128 @@
1
1
  @use '../variables' as ARD;
2
2
 
3
- // the variables are commented out intentionally
4
- // read more in docs/dev/css-variables.md
5
- :root {
6
- // --ard-modal-width: ;
7
- // --ard-modal-height: ;
8
- // --ard-modal-min-width: ;
9
- // --ard-modal-min-height: ;
10
- // --ard-modal-max-width: ;
11
- // --ard-modal-max-height: ;
12
- --ard-modal-viewport-spacing: 2rem;
13
- --ard-modal-padding: 1.25rem;
14
- --ard-modal-padding-top: 1rem;
15
- --ard-modal-gap: 1.5rem;
16
- // --ard-modal-bg: ;
17
- --ard-modal-no-heading-gap: 0.25rem;
18
- --ard-modal-close-button-offset: 0.5rem;
19
- --ard-modal-heading-padding-right: 2rem;
20
- --ard-modal-heading-font-size: 1.25rem;
21
- --ard-modal-heading-font-weight: 500;
22
- // --ard-modal-heading-color: ;
23
- --ard-modal-rounded-border-radius: 8px;
24
- --ard-modal-font-size: 1rem;
25
- --ard-modal-font-size-compact: 0.875rem;
26
- --ard-modal-padding-compact: 0.75rem 2rem 1rem 2rem;
27
- --ard-modal-gap-compact: 1rem;
28
- --ard-modal-close-button-offset-compact: 0.25rem;
29
- }
3
+ @layer ard-theme {
4
+ // the variables are commented out intentionally
5
+ // read more in docs/dev/css-variables.md
6
+ :root {
7
+ // --ard-modal-width: ;
8
+ // --ard-modal-height: ;
9
+ // --ard-modal-min-width: ;
10
+ // --ard-modal-min-height: ;
11
+ // --ard-modal-max-width: ;
12
+ // --ard-modal-max-height: ;
13
+ --ard-modal-viewport-spacing: 2rem;
14
+ --ard-modal-padding: 1.25rem;
15
+ --ard-modal-padding-top: 1rem;
16
+ --ard-modal-gap: 1.5rem;
17
+ // --ard-modal-bg: ;
18
+ --ard-modal-no-heading-gap: 0.25rem;
19
+ --ard-modal-close-button-offset: 0.5rem;
20
+ --ard-modal-heading-padding-right: 2rem;
21
+ --ard-modal-heading-font-size: 1.25rem;
22
+ --ard-modal-heading-font-weight: 500;
23
+ // --ard-modal-heading-color: ;
24
+ --ard-modal-rounded-border-radius: 8px;
25
+ --ard-modal-font-size: 1rem;
26
+ --ard-modal-font-size-compact: 0.875rem;
27
+ --ard-modal-padding-compact: 0.75rem 2rem 1rem 2rem;
28
+ --ard-modal-gap-compact: 1rem;
29
+ --ard-modal-close-button-offset-compact: 0.25rem;
30
+ }
30
31
 
31
- .ard-modal {
32
- position: fixed;
33
- top: 0;
34
- bottom: 0;
35
- left: 0;
36
- right: 0;
37
- display: grid;
38
- place-items: center;
32
+ .ard-modal {
33
+ position: fixed;
34
+ top: 0;
35
+ bottom: 0;
36
+ left: 0;
37
+ right: 0;
38
+ display: grid;
39
+ place-items: center;
39
40
 
40
- &.ard-modal-backdrop {
41
- background: ARD.$darken-overlay-strong;
42
- }
43
- .ard-modal-panel {
44
- padding: var(--ard-modal-padding, 1.25rem);
45
- padding-top: var(--ard-modal-padding-top, 1rem);
46
- width: var(--ard-modal-width);
47
- height: var(--ard-modal-height);
48
- min-width: var(--ard-modal-min-width);
49
- min-height: var(--ard-modal-min-height);
50
- max-width: var(--ard-modal-max-width, calc(100vw - var(--ard-modal-viewport-spacing, 2rem) * 2));
51
- max-height: var(--ard-modal-max-height, calc(100vh - var(--ard-modal-viewport-spacing, 2rem) * 2));
52
- background: var(--ard-modal-bg, #{ARD.$bg});
53
- position: relative;
54
- display: flex;
55
- flex-direction: column;
56
- align-items: flex-start;
57
- gap: var(--ard-modal-gap, 1.5rem);
58
- font-size: 1rem;
41
+ &.ard-modal-backdrop {
42
+ background: ARD.$darken-overlay-strong;
43
+ }
44
+ .ard-modal-panel {
45
+ padding: var(--ard-modal-padding, 1.25rem);
46
+ padding-top: var(--ard-modal-padding-top, 1rem);
47
+ width: var(--ard-modal-width);
48
+ height: var(--ard-modal-height);
49
+ min-width: var(--ard-modal-min-width);
50
+ min-height: var(--ard-modal-min-height);
51
+ max-width: var(--ard-modal-max-width, calc(100vw - var(--ard-modal-viewport-spacing, 2rem) * 2));
52
+ max-height: var(--ard-modal-max-height, calc(100vh - var(--ard-modal-viewport-spacing, 2rem) * 2));
53
+ background: var(--ard-modal-bg, #{ARD.$bg});
54
+ position: relative;
55
+ display: flex;
56
+ flex-direction: column;
57
+ align-items: flex-start;
58
+ gap: var(--ard-modal-gap, 1.5rem);
59
+ font-size: 1rem;
59
60
 
60
- &.ard-modal-no-heading-text {
61
- gap: var(--ard-modal-no-heading-gap, 0.25rem);
61
+ &.ard-modal-no-heading-text {
62
+ gap: var(--ard-modal-no-heading-gap, 0.25rem);
63
+
64
+ .ard-modal-close-button {
65
+ position: absolute;
66
+ right: var(--ard-modal-close-button-offset, 0.5rem);
67
+ top: var(--ard-modal-close-button-offset, 0.5rem);
68
+ }
69
+ }
70
+ &.ard-modal-has-close-button {
71
+ .ard-modal-heading {
72
+ padding-right: var(--ard-modal-heading-padding-right, 2rem);
73
+ }
74
+ }
75
+ }
76
+ .ard-modal-heading {
77
+ display: flex;
78
+ align-items: flex-start;
79
+ justify-content: space-between;
62
80
 
81
+ .ard-modal-heading-text {
82
+ font-size: var(--ard-modal-heading-font-size, 1.25rem);
83
+ color: var(--ard-modal-heading-color, #{ARD.$text});
84
+ font-weight: var(--ard-modal-heading-font-weight, 500);
85
+ font-family: var(--ard-font-family);
86
+ }
63
87
  .ard-modal-close-button {
64
88
  position: absolute;
65
89
  right: var(--ard-modal-close-button-offset, 0.5rem);
66
90
  top: var(--ard-modal-close-button-offset, 0.5rem);
67
91
  }
68
92
  }
69
- &.ard-modal-has-close-button {
70
- .ard-modal-heading {
71
- padding-right: var(--ard-modal-heading-padding-right, 2rem);
93
+ //! appearances
94
+ &.ard-appearance-raised {
95
+ .ard-modal-panel {
96
+ box-shadow: ARD.$simple-shadow2;
72
97
  }
73
98
  }
74
- }
75
- .ard-modal-heading {
76
- display: flex;
77
- align-items: flex-start;
78
- justify-content: space-between;
79
-
80
- .ard-modal-heading-text {
81
- font-size: var(--ard-modal-heading-font-size, 1.25rem);
82
- color: var(--ard-modal-heading-color, #{ARD.$text});
83
- font-weight: var(--ard-modal-heading-font-weight, 500);
84
- font-family: var(--ard-font-family);
85
- }
86
- .ard-modal-close-button {
87
- position: absolute;
88
- right: var(--ard-modal-close-button-offset, 0.5rem);
89
- top: var(--ard-modal-close-button-offset, 0.5rem);
90
- }
91
- }
92
- //! appearances
93
- &.ard-appearance-raised {
94
- .ard-modal-panel {
95
- box-shadow: ARD.$simple-shadow2;
96
- }
97
- }
98
- //! variants
99
- &.ard-variant-rounded {
100
- .ard-modal-panel {
101
- border-radius: var(--ard-modal-rounded-border-radius, 8px);
99
+ //! variants
100
+ &.ard-variant-rounded {
101
+ .ard-modal-panel {
102
+ border-radius: var(--ard-modal-rounded-border-radius, 8px);
103
+ }
102
104
  }
103
- }
104
- &.ard-variant-sharp {
105
- .ard-modal-panel {
106
- border-radius: 0;
105
+ &.ard-variant-sharp {
106
+ .ard-modal-panel {
107
+ border-radius: 0;
108
+ }
107
109
  }
108
- }
109
110
 
110
- //! compact
111
- &.ard-compact {
112
- .ard-modal-panel {
113
- font-size: var(--ard-modal-font-size-compact, 0.875rem);
114
- padding: var(--ard-modal-padding-compact, 0.75rem 2rem 1rem 2rem);
115
- gap: var(--ard-modal-gap-compact, 1rem);
111
+ //! compact
112
+ &.ard-compact {
113
+ .ard-modal-panel {
114
+ font-size: var(--ard-modal-font-size-compact, 0.875rem);
115
+ padding: var(--ard-modal-padding-compact, 0.75rem 2rem 1rem 2rem);
116
+ gap: var(--ard-modal-gap-compact, 1rem);
116
117
 
117
- &.ard-modal-no-heading-text {
118
- gap: var(--ard-modal-no-heading-gap, 0.25rem);
118
+ &.ard-modal-no-heading-text {
119
+ gap: var(--ard-modal-no-heading-gap, 0.25rem);
119
120
 
120
- .ard-modal-close-button {
121
- position: absolute;
122
- right: var(--ard-modal-close-button-offset-compact, 0.25rem);
123
- top: var(--ard-modal-close-button-offset-compact, 0.25rem);
121
+ .ard-modal-close-button {
122
+ position: absolute;
123
+ right: var(--ard-modal-close-button-offset-compact, 0.25rem);
124
+ top: var(--ard-modal-close-button-offset-compact, 0.25rem);
125
+ }
124
126
  }
125
127
  }
126
128
  }
@@ -1,127 +1,151 @@
1
1
  @use './coloring' as CM;
2
2
  @use '../variables' as ARD;
3
3
 
4
- .ard-progress-bar {
5
- @include CM.typeColors();
6
- width: 100%;
7
- margin: 0.5rem 0;
8
- overflow: hidden;
9
-
10
- .ard-progress-bar__background,
11
- .ard-progress-bar__overlay {
12
- position: absolute;
13
- background-color: var(--ard-cmpcl--bg-colored);
14
- top: 0;
15
- bottom: 0;
16
- left: 0;
17
- }
18
- .ard-progress-bar__background {
19
- background-color: var(--ard-cmpcl--bg-colored-light);
20
- top: 0;
21
- bottom: 0;
22
- left: 0;
23
- right: 0;
24
- opacity: 30%;
25
- }
26
- .ard-progress-bar__overlay {
27
- width: var(--ard-_progress-bar-main, 0);
4
+ @layer ard-theme {
5
+ // the variables are commented out intentionally
6
+ // read more in docs/dev/css-variables.md
7
+ :root {
8
+ --ard-progress-bar-width: 100%;
9
+ --ard-progress-bar-height: 0.25rem;
10
+ --ard-progress-bar-margin: 0.5rem 0;
11
+ // --ard-progress-bar-foreground-color: ;
12
+ // --ard-progress-bar-background-color: ;
13
+ // --ard-progress-bar-buffer-color: ;
14
+ --ard-progress-bar-background-opacity: 30%;
15
+ --ard-progress-bar-buffer-opacity: 100%;
16
+ --ard-progress-bar-transition-duration: 0.1s;
17
+ --ard-progress-bar-indeterminate-animation-duration: 2.1s;
18
+ --ard-progress-bar-buffer-animation-distance: 0.5rem;
19
+ --ard-progress-bar-buffer-animation-duration: 0.4s;
20
+ --ard-progress-bar-currentColor-background-opacity: 22.5%;
21
+ --ard-progress-bar-currentColor-overlay-buffer-opacity: 30%;
28
22
  }
29
23
 
30
- //! variants
31
- &.ard-variant-sharp {
32
- border-radius: 0;
33
- }
34
- &.ard-variant-pill {
35
- border-radius: 9999px;
36
- }
24
+ .ard-progress-bar {
25
+ @include CM.typeColors();
26
+ width: var(--ard-progress-bar-width, 100%);
27
+ margin: var(--ard-progress-bar-margin, 0.5rem 0);
28
+ overflow: hidden;
37
29
 
38
- //! sizes
39
- &.ard-progress-bar__size-default {
40
- height: 0.25rem;
41
- }
42
- &.ard-progress-bar__size-auto:not(.ard-progress-bar__mode-buffer) {
43
- height: 100%;
44
- }
45
-
46
- //! modes
47
- &.ard-progress-bar__mode-determinate,
48
- &.ard-progress-bar__mode-buffer {
30
+ .ard-progress-bar__background,
49
31
  .ard-progress-bar__overlay {
50
- transition: width 0.1s ARD.$timing-fn;
32
+ position: absolute;
33
+ background-color: var(--ard-progress-bar-foreground-color, var(--ard-cmpcl--bg-colored));
34
+ top: 0;
35
+ bottom: 0;
36
+ left: 0;
37
+ }
38
+ .ard-progress-bar__background {
39
+ background-color: var(--ard-progress-bar-background-color, var(--ard-cmpcl--bg-colored-light));
40
+ top: 0;
41
+ bottom: 0;
42
+ left: 0;
43
+ right: 0;
44
+ opacity: var(--ard-progress-bar-background-opacity, 30%);
51
45
  }
52
- }
53
- &.ard-progress-bar__mode-indeterminate,
54
- &.ard-progress-bar__mode-query {
55
46
  .ard-progress-bar__overlay {
56
- position: unset;
47
+ width: var(--ard-_progress-bar-main, 0);
48
+ }
57
49
 
58
- &::before,
59
- &::after {
60
- content: '';
61
- position: absolute;
62
- background-color: inherit;
63
- top: 0;
64
- left: 0;
65
- bottom: 0;
66
- }
67
- &::before {
68
- animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
50
+ //! variants
51
+ &.ard-variant-sharp {
52
+ border-radius: 0;
53
+ }
54
+ &.ard-variant-pill {
55
+ border-radius: 9999px;
56
+ }
57
+
58
+ //! sizes
59
+ &.ard-progress-bar__size-default {
60
+ height: var(--ard-progress-bar-height, 0.25rem);
61
+ }
62
+ &.ard-progress-bar__size-auto:not(.ard-progress-bar__mode-buffer) {
63
+ height: 100%;
64
+ }
65
+
66
+ //! modes
67
+ &.ard-progress-bar__mode-determinate,
68
+ &.ard-progress-bar__mode-buffer {
69
+ .ard-progress-bar__overlay {
70
+ transition: width var(--ard-progress-bar-transition-duration, 0.1s) ARD.$timing-fn;
69
71
  }
70
- &::after {
71
- animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
72
- animation-delay: 1.15s;
72
+ }
73
+ &.ard-progress-bar__mode-indeterminate,
74
+ &.ard-progress-bar__mode-query {
75
+ .ard-progress-bar__overlay {
76
+ position: unset;
77
+
78
+ &::before,
79
+ &::after {
80
+ content: '';
81
+ position: absolute;
82
+ background-color: inherit;
83
+ top: 0;
84
+ left: 0;
85
+ bottom: 0;
86
+ }
87
+ &::before {
88
+ animation: indeterminate var(--ard-progress-bar-indeterminate-animation-duration, 2.1s)
89
+ cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
90
+ }
91
+ &::after {
92
+ animation: indeterminate-short var(--ard-progress-bar-indeterminate-animation-duration, 2.1s)
93
+ cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
94
+ animation-delay: calc(var(--ard-progress-bar-indeterminate-animation-duration, 2.1s) * 0.55);
95
+ }
73
96
  }
74
97
  }
75
- }
76
- &.ard-progress-bar__mode-query {
77
- transform: rotate(180deg);
78
- }
79
- &.ard-progress-bar__mode-buffer {
80
- .ard-progress-bar__background {
81
- background: none !important;
82
- left: var(--ard-_progress-bar-buffer, 100%);
83
- overflow: hidden;
98
+ &.ard-progress-bar__mode-query {
99
+ transform: rotate(180deg);
100
+ }
101
+ &.ard-progress-bar__mode-buffer {
102
+ .ard-progress-bar__background {
103
+ background: none !important;
104
+ left: var(--ard-_progress-bar-buffer, 100%);
105
+ overflow: hidden;
84
106
 
85
- &::after {
86
- content: '';
107
+ &::after {
108
+ content: '';
109
+ position: absolute;
110
+ right: calc(var(--ard-progress-bar-buffer-animation-distance, 0.5rem) * -1);
111
+ top: 0;
112
+ bottom: 0;
113
+ width: 9999px;
114
+ animation: buffer var(--ard-progress-bar-buffer-animation-duration, 0.4s) linear infinite;
115
+ border-bottom: var(--ard-progress-bar-height, 0.25rem) dotted var(--ard-cmpcl--bg-colored);
116
+ }
117
+ }
118
+ .ard-progress-bar__overlay-buffer {
119
+ background: var(--ard-progress-bar-buffer-color, var(--ard-cmpcl--bg-colored-light));
120
+ opacity: var(--ard-progress-bar-buffer-opacity, 100%);
87
121
  position: absolute;
88
- right: -0.5rem;
122
+ left: 0;
123
+ width: var(--ard-_progress-bar-buffer, 0);
89
124
  top: 0;
90
125
  bottom: 0;
91
- width: 9999px;
92
- animation: buffer 0.4s linear infinite;
93
- border-bottom: 0.25rem dotted var(--ard-cmpcl--bg-colored);
126
+ transition: width var(--ard-progress-bar-transition-duration, 0.1s) ARD.$timing-fn;
94
127
  }
95
128
  }
96
- .ard-progress-bar__overlay-buffer {
97
- background: var(--ard-cmpcl--bg-colored-light);
98
- position: absolute;
99
- left: 0;
100
- width: var(--ard-_progress-bar-buffer, 0);
101
- top: 0;
102
- bottom: 0;
103
- transition: width 0.1s ARD.$timing-fn;
104
- }
105
- }
106
129
 
107
- //! hiding the value
108
- &.ard-progress-bar__size-default,
109
- &.ard-progress-bar__hide-value,
110
- &.ard-progress-bar__mode-buffer {
111
- > .ard-progress-bar__value {
112
- display: none;
130
+ //! hiding the value
131
+ &.ard-progress-bar__size-default,
132
+ &.ard-progress-bar__hide-value,
133
+ &.ard-progress-bar__mode-buffer {
134
+ > .ard-progress-bar__value {
135
+ display: none;
136
+ }
113
137
  }
114
- }
115
138
 
116
- //! currentColor special case
117
- &.ard-color-currentColor {
118
- .ard-progress-bar__background {
119
- opacity: 22.5%;
120
- background: var(--ard-cmpcl--bg-colored);
121
- }
122
- .ard-progress-bar__overlay-buffer {
123
- opacity: 30%;
124
- background: var(--ard-cmpcl--bg-colored);
139
+ //! currentColor special case
140
+ &.ard-color-currentColor {
141
+ .ard-progress-bar__background {
142
+ opacity: var(--ard-progress-bar-currentColor-background-opacity, 22.5%);
143
+ background: var(--ard-cmpcl--bg-colored);
144
+ }
145
+ .ard-progress-bar__overlay-buffer {
146
+ opacity: var(--ard-progress-bar-currentColor-overlay-buffer-opacity, 30%);
147
+ background: var(--ard-cmpcl--bg-colored);
148
+ }
125
149
  }
126
150
  }
127
151
  }