@ardium-ui/ui 1.0.2 → 1.0.3

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 (229) hide show
  1. package/README.md +25 -25
  2. package/esm2022/lib/_internal/boolean-component.mjs +4 -4
  3. package/esm2022/lib/_internal/clear-button/clear-button.component.mjs +4 -4
  4. package/esm2022/lib/_internal/clear-button/clear-button.module.mjs +5 -5
  5. package/esm2022/lib/_internal/disablable-component.mjs +4 -4
  6. package/esm2022/lib/_internal/focusable-component.mjs +4 -4
  7. package/esm2022/lib/_internal/item-storages/dropdown-item-storage.mjs +1 -1
  8. package/esm2022/lib/_internal/item-storages/simple-item-storage.mjs +1 -1
  9. package/esm2022/lib/_internal/item-storages/simplest-item-storage.mjs +1 -1
  10. package/esm2022/lib/_internal/models/pagination.model.mjs +1 -1
  11. package/esm2022/lib/_internal/ngmodel-component.mjs +4 -4
  12. package/esm2022/lib/_internal/queue.mjs +1 -1
  13. package/esm2022/lib/_internal/selectable-list-component.mjs +4 -4
  14. package/esm2022/lib/badge/badge.directive.mjs +4 -4
  15. package/esm2022/lib/badge/badge.module.mjs +5 -5
  16. package/esm2022/lib/badge/badge.types.mjs +1 -1
  17. package/esm2022/lib/buttons/_button-base.mjs +4 -4
  18. package/esm2022/lib/buttons/button/button.component.mjs +4 -4
  19. package/esm2022/lib/buttons/button/button.module.mjs +5 -5
  20. package/esm2022/lib/buttons/fab/fab.component.mjs +4 -4
  21. package/esm2022/lib/buttons/fab/fab.module.mjs +5 -5
  22. package/esm2022/lib/buttons/general-button.types.mjs +1 -1
  23. package/esm2022/lib/buttons/icon-button/icon-button.component.mjs +4 -4
  24. package/esm2022/lib/buttons/icon-button/icon-button.module.mjs +5 -5
  25. package/esm2022/lib/calendar/calendar.component.mjs +4 -4
  26. package/esm2022/lib/calendar/calendar.directives.mjs +25 -25
  27. package/esm2022/lib/calendar/calendar.helpers.mjs +1 -1
  28. package/esm2022/lib/calendar/calendar.module.mjs +5 -5
  29. package/esm2022/lib/calendar/calendar.types.mjs +1 -1
  30. package/esm2022/lib/card/card.children.mjs +25 -25
  31. package/esm2022/lib/card/card.component.mjs +7 -7
  32. package/esm2022/lib/card/card.module.mjs +5 -5
  33. package/esm2022/lib/card/card.types.mjs +1 -1
  34. package/esm2022/lib/checkbox/checkbox.component.mjs +4 -4
  35. package/esm2022/lib/checkbox/checkbox.module.mjs +5 -5
  36. package/esm2022/lib/checkbox/checkbox.types.mjs +1 -1
  37. package/esm2022/lib/checkbox-list/checkbox-list.component.mjs +4 -4
  38. package/esm2022/lib/checkbox-list/checkbox-list.module.mjs +5 -5
  39. package/esm2022/lib/checkbox-list/checkbox-list.types.mjs +1 -1
  40. package/esm2022/lib/chip/chip.component.mjs +4 -4
  41. package/esm2022/lib/chip/chip.module.mjs +5 -5
  42. package/esm2022/lib/chip/deletable-chip/deletable-chip.component.mjs +4 -4
  43. package/esm2022/lib/chip/selectable-chip/selectable-chip.component.mjs +4 -4
  44. package/esm2022/lib/color/color-display/color-display.component.mjs +4 -4
  45. package/esm2022/lib/color/color-display/color-display.module.mjs +5 -5
  46. package/esm2022/lib/color/color-display/color-display.types.mjs +1 -1
  47. package/esm2022/lib/color/color-picker/color-picker.component.mjs +4 -4
  48. package/esm2022/lib/color/color-picker/color-picker.directives.mjs +13 -13
  49. package/esm2022/lib/color/color-picker/color-picker.module.mjs +5 -5
  50. package/esm2022/lib/color/color-picker/color-picker.types.mjs +1 -1
  51. package/esm2022/lib/dialog/dialog.component.mjs +4 -4
  52. package/esm2022/lib/dialog/dialog.directives.mjs +4 -4
  53. package/esm2022/lib/dialog/dialog.module.mjs +5 -5
  54. package/esm2022/lib/dialog/dialog.types.mjs +1 -1
  55. package/esm2022/lib/divider/divider.component.mjs +4 -4
  56. package/esm2022/lib/divider/divider.module.mjs +5 -5
  57. package/esm2022/lib/dropdown-panel/dropdown-panel.component.mjs +4 -4
  58. package/esm2022/lib/dropdown-panel/dropdown-panel.module.mjs +5 -5
  59. package/esm2022/lib/dropdown-panel/dropdown-panel.types.mjs +1 -1
  60. package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.component.mjs +4 -4
  61. package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.directives.mjs +10 -10
  62. package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.module.mjs +5 -5
  63. package/esm2022/lib/file-inputs/file-input/file-input.component.mjs +4 -4
  64. package/esm2022/lib/file-inputs/file-input/file-input.directives.mjs +19 -19
  65. package/esm2022/lib/file-inputs/file-input/file-input.module.mjs +5 -5
  66. package/esm2022/lib/file-inputs/file-input-base.mjs +4 -4
  67. package/esm2022/lib/file-inputs/file-input-types.mjs +1 -1
  68. package/esm2022/lib/form-field-frame/form-field-frame.component.mjs +4 -4
  69. package/esm2022/lib/form-field-frame/form-field-frame.directives.mjs +7 -7
  70. package/esm2022/lib/form-field-frame/form-field-frame.module.mjs +5 -5
  71. package/esm2022/lib/icon/icon.component.mjs +4 -4
  72. package/esm2022/lib/icon/icon.module.mjs +5 -5
  73. package/esm2022/lib/icon/icon.pipe.mjs +4 -4
  74. package/esm2022/lib/inputs/color-input/color-input.component.mjs +4 -4
  75. package/esm2022/lib/inputs/color-input/color-input.directives.mjs +25 -25
  76. package/esm2022/lib/inputs/color-input/color-input.module.mjs +5 -5
  77. package/esm2022/lib/inputs/color-input/color-input.types.mjs +1 -1
  78. package/esm2022/lib/inputs/digit-input/digit-input.component.mjs +4 -4
  79. package/esm2022/lib/inputs/digit-input/digit-input.model.mjs +1 -1
  80. package/esm2022/lib/inputs/digit-input/digit-input.module.mjs +5 -5
  81. package/esm2022/lib/inputs/digit-input/digit-input.types.mjs +1 -1
  82. package/esm2022/lib/inputs/digit-input/digit-input.utils.mjs +1 -1
  83. package/esm2022/lib/inputs/hex-input/hex-input.component.mjs +4 -4
  84. package/esm2022/lib/inputs/hex-input/hex-input.directives.mjs +10 -10
  85. package/esm2022/lib/inputs/hex-input/hex-input.module.mjs +5 -5
  86. package/esm2022/lib/inputs/hex-input.model.mjs +1 -1
  87. package/esm2022/lib/inputs/input/input.component.mjs +4 -4
  88. package/esm2022/lib/inputs/input/input.directives.mjs +16 -16
  89. package/esm2022/lib/inputs/input/input.module.mjs +5 -5
  90. package/esm2022/lib/inputs/input-transformers.mjs +1 -1
  91. package/esm2022/lib/inputs/input-types.mjs +1 -1
  92. package/esm2022/lib/inputs/input-utils.mjs +1 -1
  93. package/esm2022/lib/inputs/number-input/number-input.component.mjs +4 -4
  94. package/esm2022/lib/inputs/number-input/number-input.directives.mjs +4 -4
  95. package/esm2022/lib/inputs/number-input/number-input.module.mjs +5 -5
  96. package/esm2022/lib/inputs/password-input/password-input.component.mjs +4 -4
  97. package/esm2022/lib/inputs/password-input/password-input.directives.mjs +13 -13
  98. package/esm2022/lib/inputs/password-input/password-input.module.mjs +5 -5
  99. package/esm2022/lib/inputs/password-input/password-input.types.mjs +1 -1
  100. package/esm2022/lib/inputs/simple-input/simple-input.component.mjs +4 -4
  101. package/esm2022/lib/inputs/simple-input/simple-input.directives.mjs +10 -10
  102. package/esm2022/lib/inputs/simple-input/simple-input.module.mjs +5 -5
  103. package/esm2022/lib/kbd/kbd.component.mjs +4 -4
  104. package/esm2022/lib/kbd/kbd.module.mjs +5 -5
  105. package/esm2022/lib/kbd/kbd.pipe.mjs +4 -4
  106. package/esm2022/lib/kbd-shortcut/kbd-shortcut.component.mjs +4 -4
  107. package/esm2022/lib/kbd-shortcut/kbd-shortcut.module.mjs +5 -5
  108. package/esm2022/lib/modal/modal.component.mjs +4 -4
  109. package/esm2022/lib/modal/modal.module.mjs +5 -5
  110. package/esm2022/lib/option/option.component.mjs +4 -4
  111. package/esm2022/lib/option/option.module.mjs +5 -5
  112. package/esm2022/lib/progress-bar/progress-bar.component.mjs +4 -4
  113. package/esm2022/lib/progress-bar/progress-bar.directive.mjs +4 -4
  114. package/esm2022/lib/progress-bar/progress-bar.module.mjs +5 -5
  115. package/esm2022/lib/progress-bar/progress-bar.types.mjs +1 -1
  116. package/esm2022/lib/progress-circle/progress-circle.component.mjs +4 -4
  117. package/esm2022/lib/progress-circle/progress-circle.directive.mjs +4 -4
  118. package/esm2022/lib/progress-circle/progress-circle.module.mjs +5 -5
  119. package/esm2022/lib/progress-circle/progress-circle.types.mjs +1 -1
  120. package/esm2022/lib/radio/radio/radio.component.mjs +4 -4
  121. package/esm2022/lib/radio/radio-group.component.mjs +4 -4
  122. package/esm2022/lib/radio/radio.module.mjs +5 -5
  123. package/esm2022/lib/search-functions.mjs +1 -1
  124. package/esm2022/lib/segment/segment.component.mjs +4 -4
  125. package/esm2022/lib/segment/segment.directives.mjs +4 -4
  126. package/esm2022/lib/segment/segment.module.mjs +5 -5
  127. package/esm2022/lib/segment/segment.types.mjs +1 -1
  128. package/esm2022/lib/select/select.component.mjs +4 -4
  129. package/esm2022/lib/select/select.directive.mjs +46 -46
  130. package/esm2022/lib/select/select.module.mjs +5 -5
  131. package/esm2022/lib/select/select.types.mjs +1 -1
  132. package/esm2022/lib/slide-toggle/slide-toggle.component.mjs +4 -4
  133. package/esm2022/lib/slide-toggle/slide-toggle.module.mjs +5 -5
  134. package/esm2022/lib/slider/abstract-slider.mjs +4 -4
  135. package/esm2022/lib/slider/range-slider/range-slider.component.mjs +4 -4
  136. package/esm2022/lib/slider/range-slider/range-slider.module.mjs +5 -5
  137. package/esm2022/lib/slider/slider.component.mjs +4 -4
  138. package/esm2022/lib/slider/slider.directive.mjs +4 -4
  139. package/esm2022/lib/slider/slider.module.mjs +5 -5
  140. package/esm2022/lib/slider/slider.types.mjs +1 -1
  141. package/esm2022/lib/snackbar/index.mjs +1 -1
  142. package/esm2022/lib/snackbar/snackbar-ref.mjs +1 -1
  143. package/esm2022/lib/snackbar/snackbar.component.mjs +4 -4
  144. package/esm2022/lib/snackbar/snackbar.service.mjs +4 -4
  145. package/esm2022/lib/snackbar/snackbar.token.mjs +1 -1
  146. package/esm2022/lib/snackbar/snackbar.types.mjs +1 -1
  147. package/esm2022/lib/spinner/spinner.component.mjs +4 -4
  148. package/esm2022/lib/spinner/spinner.module.mjs +5 -5
  149. package/esm2022/lib/star/star-button/star-button.component.mjs +4 -4
  150. package/esm2022/lib/star/star-button/star-button.module.mjs +5 -5
  151. package/esm2022/lib/star/star-display/star-display.component.mjs +4 -4
  152. package/esm2022/lib/star/star-display/star-display.module.mjs +5 -5
  153. package/esm2022/lib/star/star-input/star-input.component.mjs +4 -4
  154. package/esm2022/lib/star/star-input/star-input.module.mjs +5 -5
  155. package/esm2022/lib/star/star.component.mjs +4 -4
  156. package/esm2022/lib/star/star.module.mjs +5 -5
  157. package/esm2022/lib/star/star.types.mjs +1 -1
  158. package/esm2022/lib/statebox/statebox.component.mjs +4 -4
  159. package/esm2022/lib/statebox/statebox.module.mjs +5 -5
  160. package/esm2022/lib/statebox/statebox.types.mjs +1 -1
  161. package/esm2022/lib/table/table-item-storage.mjs +1 -1
  162. package/esm2022/lib/table/table.component.mjs +4 -4
  163. package/esm2022/lib/table/table.directives.mjs +16 -16
  164. package/esm2022/lib/table/table.module.mjs +5 -5
  165. package/esm2022/lib/table/table.types.mjs +1 -1
  166. package/esm2022/lib/table/utils.mjs +1 -1
  167. package/esm2022/lib/table-from-csv/table-from-csv.component.mjs +4 -4
  168. package/esm2022/lib/table-from-csv/table-from-csv.module.mjs +5 -5
  169. package/esm2022/lib/table-pagination/table-pagination.component.mjs +4 -4
  170. package/esm2022/lib/table-pagination/table-pagination.module.mjs +5 -5
  171. package/esm2022/lib/table-pagination/table-pagination.types.mjs +1 -1
  172. package/esm2022/lib/types/alignment.types.mjs +1 -1
  173. package/esm2022/lib/types/colors.types.mjs +1 -1
  174. package/esm2022/lib/types/item-storage.types.mjs +1 -1
  175. package/esm2022/lib/types/theming.types.mjs +1 -1
  176. package/esm2022/lib/types/utility.types.mjs +1 -1
  177. package/esm2022/public-api.mjs +1 -1
  178. package/fesm2022/ardium-ui-ui.mjs +618 -618
  179. package/fesm2022/ardium-ui-ui.mjs.map +1 -1
  180. package/package.json +4 -4
  181. package/themes/_variables.scss +121 -121
  182. package/themes/default/_clear-button.scss +73 -73
  183. package/themes/default/_coloring.scss +137 -137
  184. package/themes/default/_dropdown-arrow.scss +12 -12
  185. package/themes/default/_mixins.scss +70 -70
  186. package/themes/default/badge.scss +94 -94
  187. package/themes/default/buttons/_button-mixins.scss +144 -144
  188. package/themes/default/buttons/button.scss +62 -62
  189. package/themes/default/buttons/fab.scss +72 -72
  190. package/themes/default/buttons/icon-button.scss +59 -59
  191. package/themes/default/calendar.scss +182 -182
  192. package/themes/default/card.scss +126 -126
  193. package/themes/default/checkbox-list.scss +83 -83
  194. package/themes/default/checkbox.scss +109 -109
  195. package/themes/default/chips.scss +206 -206
  196. package/themes/default/color-display.scss +41 -41
  197. package/themes/default/color-picker.scss +111 -111
  198. package/themes/default/core.scss +96 -96
  199. package/themes/default/dialog.scss +16 -16
  200. package/themes/default/divider.scss +13 -13
  201. package/themes/default/dropdown-panel.scss +45 -45
  202. package/themes/default/file-drop-area.scss +162 -162
  203. package/themes/default/form-field-frame.scss +78 -78
  204. package/themes/default/inputs/_shared.scss +46 -46
  205. package/themes/default/inputs/color-input.scss +46 -46
  206. package/themes/default/inputs/digit-input.scss +56 -56
  207. package/themes/default/inputs/file-input.scss +78 -78
  208. package/themes/default/inputs/hex-input.scss +27 -27
  209. package/themes/default/inputs/input.scss +52 -52
  210. package/themes/default/inputs/number-input.scss +121 -121
  211. package/themes/default/inputs/password-input.scss +43 -43
  212. package/themes/default/inputs/search-bar.scss +19 -19
  213. package/themes/default/inputs/simple-input.scss +19 -19
  214. package/themes/default/kbd-shortcut.scss +13 -13
  215. package/themes/default/kbd.scss +20 -20
  216. package/themes/default/modal.scss +93 -93
  217. package/themes/default/progress-bar.scss +166 -166
  218. package/themes/default/progress-circle.scss +56 -56
  219. package/themes/default/radio.scss +112 -112
  220. package/themes/default/segment.scss +339 -339
  221. package/themes/default/select.scss +253 -253
  222. package/themes/default/slide-toggle.scss +151 -151
  223. package/themes/default/slider.scss +224 -224
  224. package/themes/default/snackbar.scss +60 -60
  225. package/themes/default/spinner.scss +21 -21
  226. package/themes/default/stars.scss +122 -122
  227. package/themes/default/statebox.scss +109 -109
  228. package/themes/default/table-pagination.scss +56 -56
  229. package/themes/default/table.scss +403 -403
@@ -1,144 +1,144 @@
1
- @use '../mixins' as defaultMixins;
2
- @use '../coloring' as coloringMixins;
3
- @import '../../variables';
4
-
5
- @mixin button {
6
- @include coloringMixins.typeColors();
7
- font-family: 'Roboto', sans-serif;
8
- margin: 2px;
9
- border: 1px solid transparent;
10
- font-weight: 500;
11
- display: inline-flex;
12
- align-items: center;
13
- position: relative;
14
- cursor: pointer;
15
- outline: none;
16
-
17
- //! button icon
18
- .ard-button-icon {
19
- @include defaultMixins.icon(1);
20
- }
21
- //! button focus inficator
22
- .ard-focus-overlay {
23
- @include defaultMixins.focus-overlay;
24
- background-color: var(--ard-cmpcl--overlay);
25
- }
26
- &:hover,
27
- &:focus {
28
- .ard-focus-overlay {
29
- opacity: 4%;
30
- }
31
- }
32
- &.ard-active,
33
- &:active {
34
- .ard-focus-overlay {
35
- opacity: 12%;
36
- }
37
- }
38
- &:focus-visible {
39
- .ard-focus-overlay {
40
- opacity: 18%;
41
- }
42
- }
43
- //! button appearances
44
- &.ard-appearance-transparent,
45
- &.ard-appearance-raised {
46
- background: transparent;
47
- color: var(--ard-cmpcl--content);
48
- border: none;
49
-
50
- .ard-focus-overlay {
51
- background: var(--ard-cmpcl--overlay-colored);
52
- }
53
- }
54
- &.ard-appearance-flat,
55
- &.ard-appearance-raised-strong {
56
- background: var(--ard-cmpcl--bg);
57
- color: var(--ard-cmpcl--on-bg);
58
- border: none;
59
-
60
- .ard-focus-overlay {
61
- background: var(--ard-cmpcl--on-bg);
62
- }
63
- }
64
- &.ard-appearance-raised,
65
- &.ard-appearance-raised-strong {
66
- transition: box-shadow 0.28s $timing-fn;
67
- box-shadow: $simple-shadow;
68
-
69
- &:hover,
70
- &:focus {
71
- box-shadow: $simple-shadow2;
72
- }
73
- &:active {
74
- box-shadow: $simple-shadow3;
75
- }
76
- }
77
- &.ard-appearance-outlined {
78
- background: $bg;
79
- color: var(--ard-cmpcl--content);
80
- border: 1px solid $border-light;
81
-
82
- .ard-focus-overlay {
83
- background: var(--ard-cmpcl--overlay-colored);
84
- }
85
- }
86
- &.ard-appearance-outlined-strong {
87
- background: $bg;
88
- color: var(--ard-cmpcl--content);
89
- border: 1px solid $border-light;
90
-
91
- .ard-focus-overlay {
92
- display: none;
93
- }
94
-
95
- transition:
96
- background-color 0.2s ease,
97
- color 0.2s ease;
98
- &:hover,
99
- &:focus,
100
- &:focus-visible {
101
- background: var(--ard-cmpcl--bg-colored);
102
- color: var(--ard-cmpcl--on-bg-colored);
103
- }
104
- }
105
- &.ard-appearance-raised-strong,
106
- &.ard-appearance-flat {
107
- .ard-focus-overlay {
108
- background: var(--ard-cmpcl--on-bg);
109
- }
110
- &:focus-visible {
111
- outline: solid black;
112
- }
113
- }
114
- //! light coloring
115
- &.ard-appearance-transparent.ard-light-coloring {
116
- color: var(--ard-cmpcl--content-light);
117
-
118
- .ard-focus-overlay {
119
- background: var(--ard-cmpcl--overlay-colored-light);
120
- }
121
- }
122
- }
123
-
124
- //! disabled state
125
- @mixin button-disabled {
126
- pointer-events: none;
127
- opacity: 60%;
128
-
129
- .ard-focus-overlay {
130
- opacity: 20%;
131
- transform: scale(1);
132
- }
133
-
134
- //edge case for no coloring
135
- &.ard-color-none {
136
- .ard-button-icon,
137
- .ard-button-content {
138
- opacity: 60%;
139
- }
140
- .ard-focus-overlay {
141
- background: var(--ard-cmpcl--overlay);
142
- }
143
- }
144
- }
1
+ @use '../mixins' as defaultMixins;
2
+ @use '../coloring' as coloringMixins;
3
+ @import '../../variables';
4
+
5
+ @mixin button {
6
+ @include coloringMixins.typeColors();
7
+ font-family: 'Roboto', sans-serif;
8
+ margin: 2px;
9
+ border: 1px solid transparent;
10
+ font-weight: 500;
11
+ display: inline-flex;
12
+ align-items: center;
13
+ position: relative;
14
+ cursor: pointer;
15
+ outline: none;
16
+
17
+ //! button icon
18
+ .ard-button-icon {
19
+ @include defaultMixins.icon(1);
20
+ }
21
+ //! button focus inficator
22
+ .ard-focus-overlay {
23
+ @include defaultMixins.focus-overlay;
24
+ background-color: var(--ard-cmpcl--overlay);
25
+ }
26
+ &:hover,
27
+ &:focus {
28
+ .ard-focus-overlay {
29
+ opacity: 4%;
30
+ }
31
+ }
32
+ &.ard-active,
33
+ &:active {
34
+ .ard-focus-overlay {
35
+ opacity: 12%;
36
+ }
37
+ }
38
+ &:focus-visible {
39
+ .ard-focus-overlay {
40
+ opacity: 18%;
41
+ }
42
+ }
43
+ //! button appearances
44
+ &.ard-appearance-transparent,
45
+ &.ard-appearance-raised {
46
+ background: transparent;
47
+ color: var(--ard-cmpcl--content);
48
+ border: none;
49
+
50
+ .ard-focus-overlay {
51
+ background: var(--ard-cmpcl--overlay-colored);
52
+ }
53
+ }
54
+ &.ard-appearance-flat,
55
+ &.ard-appearance-raised-strong {
56
+ background: var(--ard-cmpcl--bg);
57
+ color: var(--ard-cmpcl--on-bg);
58
+ border: none;
59
+
60
+ .ard-focus-overlay {
61
+ background: var(--ard-cmpcl--on-bg);
62
+ }
63
+ }
64
+ &.ard-appearance-raised,
65
+ &.ard-appearance-raised-strong {
66
+ transition: box-shadow 0.28s $timing-fn;
67
+ box-shadow: $simple-shadow;
68
+
69
+ &:hover,
70
+ &:focus {
71
+ box-shadow: $simple-shadow2;
72
+ }
73
+ &:active {
74
+ box-shadow: $simple-shadow3;
75
+ }
76
+ }
77
+ &.ard-appearance-outlined {
78
+ background: $bg;
79
+ color: var(--ard-cmpcl--content);
80
+ border: 1px solid $border-light;
81
+
82
+ .ard-focus-overlay {
83
+ background: var(--ard-cmpcl--overlay-colored);
84
+ }
85
+ }
86
+ &.ard-appearance-outlined-strong {
87
+ background: $bg;
88
+ color: var(--ard-cmpcl--content);
89
+ border: 1px solid $border-light;
90
+
91
+ .ard-focus-overlay {
92
+ display: none;
93
+ }
94
+
95
+ transition:
96
+ background-color 0.2s ease,
97
+ color 0.2s ease;
98
+ &:hover,
99
+ &:focus,
100
+ &:focus-visible {
101
+ background: var(--ard-cmpcl--bg-colored);
102
+ color: var(--ard-cmpcl--on-bg-colored);
103
+ }
104
+ }
105
+ &.ard-appearance-raised-strong,
106
+ &.ard-appearance-flat {
107
+ .ard-focus-overlay {
108
+ background: var(--ard-cmpcl--on-bg);
109
+ }
110
+ &:focus-visible {
111
+ outline: solid black;
112
+ }
113
+ }
114
+ //! light coloring
115
+ &.ard-appearance-transparent.ard-light-coloring {
116
+ color: var(--ard-cmpcl--content-light);
117
+
118
+ .ard-focus-overlay {
119
+ background: var(--ard-cmpcl--overlay-colored-light);
120
+ }
121
+ }
122
+ }
123
+
124
+ //! disabled state
125
+ @mixin button-disabled {
126
+ pointer-events: none;
127
+ opacity: 60%;
128
+
129
+ .ard-focus-overlay {
130
+ opacity: 20%;
131
+ transform: scale(1);
132
+ }
133
+
134
+ //edge case for no coloring
135
+ &.ard-color-none {
136
+ .ard-button-icon,
137
+ .ard-button-content {
138
+ opacity: 60%;
139
+ }
140
+ .ard-focus-overlay {
141
+ background: var(--ard-cmpcl--overlay);
142
+ }
143
+ }
144
+ }
@@ -1,62 +1,62 @@
1
- @use './button-mixins' as shared;
2
-
3
- ard-button {
4
- display: block;
5
- width: max-content;
6
- height: max-content;
7
- }
8
-
9
- .ard-button {
10
- @include shared.button;
11
- background: transparent;
12
- gap: 6px;
13
- font-size: 0.875rem;
14
- height: 2.5em;
15
- padding: 0 1.2em;
16
- letter-spacing: 0.5px;
17
-
18
- //! aligns
19
- &.ard-align-left {
20
- flex-direction: row;
21
- }
22
- &.ard-align-right {
23
- flex-direction: row-reverse;
24
- }
25
-
26
- //! button variants
27
- &.ard-button-vertical {
28
- height: max-content;
29
- padding: 0.3em 1em;
30
- gap: 2px;
31
- flex-direction: column;
32
- }
33
- &.ard-variant-rounded,
34
- &.ard-variant-pill.ard-button-vertical {
35
- border-radius: 6px;
36
- }
37
- &.ard-variant-pill:not(.ard-button-vertical) {
38
- border-radius: 9999px;
39
- }
40
- &.ard-variant-sharp {
41
- border-radius: 0;
42
- }
43
-
44
- //! compact
45
- &.ard-compact {
46
- font-size: 0.75rem;
47
- height: 2.25em;
48
- padding: 0 0.9em;
49
-
50
- &.ard-button-vertical {
51
- height: max-content;
52
- padding: 0.2em 0.8em;
53
- gap: 0;
54
- }
55
- }
56
- }
57
-
58
- ard-button.ard-disabled {
59
- > .ard-button {
60
- @include shared.button-disabled;
61
- }
62
- }
1
+ @use './button-mixins' as shared;
2
+
3
+ ard-button {
4
+ display: block;
5
+ width: max-content;
6
+ height: max-content;
7
+ }
8
+
9
+ .ard-button {
10
+ @include shared.button;
11
+ background: transparent;
12
+ gap: 6px;
13
+ font-size: 0.875rem;
14
+ height: 2.5em;
15
+ padding: 0 1.2em;
16
+ letter-spacing: 0.5px;
17
+
18
+ //! aligns
19
+ &.ard-align-left {
20
+ flex-direction: row;
21
+ }
22
+ &.ard-align-right {
23
+ flex-direction: row-reverse;
24
+ }
25
+
26
+ //! button variants
27
+ &.ard-button-vertical {
28
+ height: max-content;
29
+ padding: 0.3em 1em;
30
+ gap: 2px;
31
+ flex-direction: column;
32
+ }
33
+ &.ard-variant-rounded,
34
+ &.ard-variant-pill.ard-button-vertical {
35
+ border-radius: 6px;
36
+ }
37
+ &.ard-variant-pill:not(.ard-button-vertical) {
38
+ border-radius: 9999px;
39
+ }
40
+ &.ard-variant-sharp {
41
+ border-radius: 0;
42
+ }
43
+
44
+ //! compact
45
+ &.ard-compact {
46
+ font-size: 0.75rem;
47
+ height: 2.25em;
48
+ padding: 0 0.9em;
49
+
50
+ &.ard-button-vertical {
51
+ height: max-content;
52
+ padding: 0.2em 0.8em;
53
+ gap: 0;
54
+ }
55
+ }
56
+ }
57
+
58
+ ard-button.ard-disabled {
59
+ > .ard-button {
60
+ @include shared.button-disabled;
61
+ }
62
+ }
@@ -1,72 +1,72 @@
1
- @use './button-mixins' as shared;
2
- @use '../mixins' as CM;
3
-
4
- ard-fab {
5
- margin: 8px;
6
- display: block;
7
- width: max-content;
8
- height: max-content;
9
- }
10
-
11
- .ard-fab {
12
- @include shared.button;
13
- height: var(--ard-_fab-size);
14
- width: var(--ard-_fab-size);
15
- font-weight: 900;
16
- user-select: none;
17
- border-radius: 999px;
18
- justify-content: center;
19
- margin: 0;
20
- padding: 1rem;
21
-
22
- &.ard-fab-size-standard {
23
- --ard-_fab-size: 3.5rem;
24
- font-size: 1rem;
25
- }
26
- &.ard-fab-size-small {
27
- --ard-_fab-size: 2.5rem;
28
- font-size: 0.875rem;
29
- padding: 0.5625rem;
30
- }
31
- &.ard-fab-extended {
32
- min-width: var(--ard-_fab-size);
33
- width: max-content;
34
- font-weight: unset;
35
-
36
- .ard-button-content {
37
- gap: 0.75em;
38
- max-width: 10em;
39
- }
40
- }
41
-
42
- .ard-button-content {
43
- gap: 1em;
44
- font-weight: 500;
45
- justify-content: flex-start !important;
46
- max-width: 1.5em;
47
- overflow: hidden;
48
- transition: max-width 0.5s ease;
49
- }
50
-
51
- &.ard-appearance-transparent {
52
- @include CM.focus-overlay-scale-addon();
53
- }
54
- }
55
-
56
- ard-fab.ard-disabled {
57
- > .ard-fab {
58
- @include shared.button-disabled;
59
- }
60
- }
61
-
62
- @keyframes maxWidth {
63
- 0% {
64
- max-width: 1.5em;
65
- }
66
- 99% {
67
- max-width: 21em;
68
- }
69
- 100% {
70
- max-width: unset;
71
- }
72
- }
1
+ @use './button-mixins' as shared;
2
+ @use '../mixins' as CM;
3
+
4
+ ard-fab {
5
+ margin: 8px;
6
+ display: block;
7
+ width: max-content;
8
+ height: max-content;
9
+ }
10
+
11
+ .ard-fab {
12
+ @include shared.button;
13
+ height: var(--ard-_fab-size);
14
+ width: var(--ard-_fab-size);
15
+ font-weight: 900;
16
+ user-select: none;
17
+ border-radius: 999px;
18
+ justify-content: center;
19
+ margin: 0;
20
+ padding: 1rem;
21
+
22
+ &.ard-fab-size-standard {
23
+ --ard-_fab-size: 3.5rem;
24
+ font-size: 1rem;
25
+ }
26
+ &.ard-fab-size-small {
27
+ --ard-_fab-size: 2.5rem;
28
+ font-size: 0.875rem;
29
+ padding: 0.5625rem;
30
+ }
31
+ &.ard-fab-extended {
32
+ min-width: var(--ard-_fab-size);
33
+ width: max-content;
34
+ font-weight: unset;
35
+
36
+ .ard-button-content {
37
+ gap: 0.75em;
38
+ max-width: 10em;
39
+ }
40
+ }
41
+
42
+ .ard-button-content {
43
+ gap: 1em;
44
+ font-weight: 500;
45
+ justify-content: flex-start !important;
46
+ max-width: 1.5em;
47
+ overflow: hidden;
48
+ transition: max-width 0.5s ease;
49
+ }
50
+
51
+ &.ard-appearance-transparent {
52
+ @include CM.focus-overlay-scale-addon();
53
+ }
54
+ }
55
+
56
+ ard-fab.ard-disabled {
57
+ > .ard-fab {
58
+ @include shared.button-disabled;
59
+ }
60
+ }
61
+
62
+ @keyframes maxWidth {
63
+ 0% {
64
+ max-width: 1.5em;
65
+ }
66
+ 99% {
67
+ max-width: 21em;
68
+ }
69
+ 100% {
70
+ max-width: unset;
71
+ }
72
+ }
@@ -1,59 +1,59 @@
1
- @use './button-mixins' as shared;
2
-
3
- ard-icon-button {
4
- height: max-content;
5
- width: max-content;
6
- border-radius: 9999px;
7
- aspect-ratio: 1;
8
- display: inline-block;
9
- }
10
-
11
- .ard-icon-button {
12
- @include shared.button;
13
- background: transparent;
14
- height: 2.1875rem;
15
- border-radius: 9999px;
16
- aspect-ratio: 1;
17
- align-items: center;
18
- justify-content: center;
19
- padding: 0;
20
- overflow: hidden;
21
- font-weight: 600;
22
- color: var(--ard-cmpcl--bg-colored) !important;
23
-
24
- .ard-button-content {
25
- font-size: 1.25rem;
26
- display: flex;
27
- align-items: center;
28
-
29
- > ard-icon {
30
- font-weight: 500;
31
- font-size: 1.5rem;
32
- font-variation-settings: 'FILL' 1;
33
- }
34
- }
35
-
36
- //! compact
37
- &.ard-compact {
38
- font-size: 0.75rem;
39
- height: 1.6875rem;
40
-
41
- .ard-button-content {
42
- font-size: 1.0625rem;
43
-
44
- > ard-icon {
45
- font-size: 1.25rem;
46
- }
47
- }
48
- }
49
- }
50
-
51
- ard-icon-button.ard-disabled {
52
- > .ard-icon-button {
53
- @include shared.button-disabled;
54
-
55
- .ard-focus-overlay {
56
- opacity: 0;
57
- }
58
- }
59
- }
1
+ @use './button-mixins' as shared;
2
+
3
+ ard-icon-button {
4
+ height: max-content;
5
+ width: max-content;
6
+ border-radius: 9999px;
7
+ aspect-ratio: 1;
8
+ display: inline-block;
9
+ }
10
+
11
+ .ard-icon-button {
12
+ @include shared.button;
13
+ background: transparent;
14
+ height: 2.1875rem;
15
+ border-radius: 9999px;
16
+ aspect-ratio: 1;
17
+ align-items: center;
18
+ justify-content: center;
19
+ padding: 0;
20
+ overflow: hidden;
21
+ font-weight: 600;
22
+ color: var(--ard-cmpcl--bg-colored) !important;
23
+
24
+ .ard-button-content {
25
+ font-size: 1.25rem;
26
+ display: flex;
27
+ align-items: center;
28
+
29
+ > ard-icon {
30
+ font-weight: 500;
31
+ font-size: 1.5rem;
32
+ font-variation-settings: 'FILL' 1;
33
+ }
34
+ }
35
+
36
+ //! compact
37
+ &.ard-compact {
38
+ font-size: 0.75rem;
39
+ height: 1.6875rem;
40
+
41
+ .ard-button-content {
42
+ font-size: 1.0625rem;
43
+
44
+ > ard-icon {
45
+ font-size: 1.25rem;
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+ ard-icon-button.ard-disabled {
52
+ > .ard-icon-button {
53
+ @include shared.button-disabled;
54
+
55
+ .ard-focus-overlay {
56
+ opacity: 0;
57
+ }
58
+ }
59
+ }