@ardium-ui/ui 1.0.0 → 1.0.2

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 (269) hide show
  1. package/esm2022/lib/_internal/boolean-component.mjs +1 -1
  2. package/esm2022/lib/_internal/clear-button/clear-button.component.mjs +1 -1
  3. package/esm2022/lib/_internal/clear-button/clear-button.module.mjs +1 -1
  4. package/esm2022/lib/_internal/disablable-component.mjs +1 -1
  5. package/esm2022/lib/_internal/focusable-component.mjs +1 -1
  6. package/esm2022/lib/_internal/item-storages/dropdown-item-storage.mjs +1 -1
  7. package/esm2022/lib/_internal/item-storages/simple-item-storage.mjs +1 -1
  8. package/esm2022/lib/_internal/item-storages/simplest-item-storage.mjs +1 -1
  9. package/esm2022/lib/_internal/models/pagination.model.mjs +1 -1
  10. package/esm2022/lib/_internal/ngmodel-component.mjs +1 -1
  11. package/esm2022/lib/_internal/queue.mjs +1 -1
  12. package/esm2022/lib/_internal/selectable-list-component.mjs +1 -1
  13. package/esm2022/lib/badge/badge.directive.mjs +1 -1
  14. package/esm2022/lib/badge/badge.module.mjs +1 -1
  15. package/esm2022/lib/badge/badge.types.mjs +1 -1
  16. package/esm2022/lib/buttons/_button-base.mjs +1 -1
  17. package/esm2022/lib/buttons/button/button.component.mjs +1 -1
  18. package/esm2022/lib/buttons/button/button.module.mjs +1 -1
  19. package/esm2022/lib/buttons/fab/fab.component.mjs +1 -1
  20. package/esm2022/lib/buttons/fab/fab.module.mjs +1 -1
  21. package/esm2022/lib/buttons/general-button.types.mjs +1 -1
  22. package/esm2022/lib/buttons/icon-button/icon-button.component.mjs +1 -1
  23. package/esm2022/lib/buttons/icon-button/icon-button.module.mjs +1 -1
  24. package/esm2022/lib/calendar/calendar.component.mjs +2 -5
  25. package/esm2022/lib/calendar/calendar.directives.mjs +1 -1
  26. package/esm2022/lib/calendar/calendar.helpers.mjs +1 -1
  27. package/esm2022/lib/calendar/calendar.module.mjs +1 -1
  28. package/esm2022/lib/calendar/calendar.types.mjs +1 -1
  29. package/esm2022/lib/card/card.children.mjs +1 -1
  30. package/esm2022/lib/card/card.component.mjs +1 -1
  31. package/esm2022/lib/card/card.module.mjs +1 -1
  32. package/esm2022/lib/card/card.types.mjs +1 -1
  33. package/esm2022/lib/checkbox/checkbox.component.mjs +1 -1
  34. package/esm2022/lib/checkbox/checkbox.module.mjs +1 -1
  35. package/esm2022/lib/checkbox/checkbox.types.mjs +1 -1
  36. package/esm2022/lib/checkbox-list/checkbox-list.component.mjs +1 -1
  37. package/esm2022/lib/checkbox-list/checkbox-list.module.mjs +1 -1
  38. package/esm2022/lib/checkbox-list/checkbox-list.types.mjs +1 -1
  39. package/esm2022/lib/chip/chip.component.mjs +1 -1
  40. package/esm2022/lib/chip/chip.module.mjs +1 -1
  41. package/esm2022/lib/chip/deletable-chip/deletable-chip.component.mjs +1 -1
  42. package/esm2022/lib/chip/selectable-chip/selectable-chip.component.mjs +1 -1
  43. package/esm2022/lib/color/color-display/color-display.component.mjs +1 -1
  44. package/esm2022/lib/color/color-display/color-display.module.mjs +1 -1
  45. package/esm2022/lib/color/color-display/color-display.types.mjs +1 -1
  46. package/esm2022/lib/color/color-picker/color-picker.component.mjs +1 -1
  47. package/esm2022/lib/color/color-picker/color-picker.directives.mjs +1 -1
  48. package/esm2022/lib/color/color-picker/color-picker.module.mjs +1 -1
  49. package/esm2022/lib/color/color-picker/color-picker.types.mjs +1 -1
  50. package/esm2022/lib/dialog/dialog.component.mjs +1 -1
  51. package/esm2022/lib/dialog/dialog.directives.mjs +1 -1
  52. package/esm2022/lib/dialog/dialog.module.mjs +1 -1
  53. package/esm2022/lib/dialog/dialog.types.mjs +1 -1
  54. package/esm2022/lib/divider/divider.component.mjs +1 -1
  55. package/esm2022/lib/divider/divider.module.mjs +1 -1
  56. package/esm2022/lib/dropdown-panel/dropdown-panel.component.mjs +1 -1
  57. package/esm2022/lib/dropdown-panel/dropdown-panel.module.mjs +1 -1
  58. package/esm2022/lib/dropdown-panel/dropdown-panel.types.mjs +1 -1
  59. package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.component.mjs +1 -1
  60. package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.directives.mjs +1 -1
  61. package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.module.mjs +1 -1
  62. package/esm2022/lib/file-inputs/file-input/file-input.component.mjs +1 -1
  63. package/esm2022/lib/file-inputs/file-input/file-input.directives.mjs +1 -1
  64. package/esm2022/lib/file-inputs/file-input/file-input.module.mjs +1 -1
  65. package/esm2022/lib/file-inputs/file-input-base.mjs +1 -1
  66. package/esm2022/lib/file-inputs/file-input-types.mjs +1 -1
  67. package/esm2022/lib/form-field-frame/form-field-frame.component.mjs +1 -1
  68. package/esm2022/lib/form-field-frame/form-field-frame.directives.mjs +1 -1
  69. package/esm2022/lib/form-field-frame/form-field-frame.module.mjs +1 -1
  70. package/esm2022/lib/icon/icon.component.mjs +1 -1
  71. package/esm2022/lib/icon/icon.module.mjs +1 -1
  72. package/esm2022/lib/icon/icon.pipe.mjs +1 -1
  73. package/esm2022/lib/inputs/color-input/color-input.component.mjs +1 -1
  74. package/esm2022/lib/inputs/color-input/color-input.directives.mjs +1 -1
  75. package/esm2022/lib/inputs/color-input/color-input.module.mjs +1 -1
  76. package/esm2022/lib/inputs/color-input/color-input.types.mjs +1 -1
  77. package/esm2022/lib/inputs/digit-input/digit-input.component.mjs +1 -1
  78. package/esm2022/lib/inputs/digit-input/digit-input.model.mjs +1 -1
  79. package/esm2022/lib/inputs/digit-input/digit-input.module.mjs +1 -1
  80. package/esm2022/lib/inputs/digit-input/digit-input.types.mjs +1 -1
  81. package/esm2022/lib/inputs/digit-input/digit-input.utils.mjs +1 -1
  82. package/esm2022/lib/inputs/hex-input/hex-input.component.mjs +2 -3
  83. package/esm2022/lib/inputs/hex-input/hex-input.directives.mjs +1 -1
  84. package/esm2022/lib/inputs/hex-input/hex-input.module.mjs +1 -1
  85. package/esm2022/lib/inputs/hex-input.model.mjs +1 -1
  86. package/esm2022/lib/inputs/input/input.component.mjs +1 -1
  87. package/esm2022/lib/inputs/input/input.directives.mjs +1 -1
  88. package/esm2022/lib/inputs/input/input.module.mjs +1 -1
  89. package/esm2022/lib/inputs/input-transformers.mjs +1 -1
  90. package/esm2022/lib/inputs/input-types.mjs +1 -1
  91. package/esm2022/lib/inputs/input-utils.mjs +1 -1
  92. package/esm2022/lib/inputs/number-input/number-input.component.mjs +2 -3
  93. package/esm2022/lib/inputs/number-input/number-input.directives.mjs +1 -1
  94. package/esm2022/lib/inputs/number-input/number-input.module.mjs +1 -1
  95. package/esm2022/lib/inputs/password-input/password-input.component.mjs +2 -3
  96. package/esm2022/lib/inputs/password-input/password-input.directives.mjs +1 -1
  97. package/esm2022/lib/inputs/password-input/password-input.module.mjs +1 -1
  98. package/esm2022/lib/inputs/password-input/password-input.types.mjs +1 -1
  99. package/esm2022/lib/inputs/simple-input/simple-input.component.mjs +2 -3
  100. package/esm2022/lib/inputs/simple-input/simple-input.directives.mjs +1 -1
  101. package/esm2022/lib/inputs/simple-input/simple-input.module.mjs +1 -1
  102. package/esm2022/lib/kbd/kbd.component.mjs +1 -1
  103. package/esm2022/lib/kbd/kbd.module.mjs +1 -1
  104. package/esm2022/lib/kbd/kbd.pipe.mjs +1 -1
  105. package/esm2022/lib/kbd-shortcut/kbd-shortcut.component.mjs +1 -1
  106. package/esm2022/lib/kbd-shortcut/kbd-shortcut.module.mjs +1 -1
  107. package/esm2022/lib/modal/modal.component.mjs +1 -1
  108. package/esm2022/lib/modal/modal.module.mjs +1 -1
  109. package/esm2022/lib/option/option.component.mjs +1 -1
  110. package/esm2022/lib/option/option.module.mjs +1 -1
  111. package/esm2022/lib/progress-bar/progress-bar.component.mjs +1 -1
  112. package/esm2022/lib/progress-bar/progress-bar.directive.mjs +1 -1
  113. package/esm2022/lib/progress-bar/progress-bar.module.mjs +1 -1
  114. package/esm2022/lib/progress-bar/progress-bar.types.mjs +1 -1
  115. package/esm2022/lib/progress-circle/progress-circle.component.mjs +1 -1
  116. package/esm2022/lib/progress-circle/progress-circle.directive.mjs +1 -1
  117. package/esm2022/lib/progress-circle/progress-circle.module.mjs +1 -1
  118. package/esm2022/lib/progress-circle/progress-circle.types.mjs +1 -1
  119. package/esm2022/lib/radio/radio/radio.component.mjs +1 -1
  120. package/esm2022/lib/radio/radio-group.component.mjs +1 -1
  121. package/esm2022/lib/radio/radio.module.mjs +1 -1
  122. package/esm2022/lib/search-functions.mjs +1 -1
  123. package/esm2022/lib/segment/segment.component.mjs +1 -1
  124. package/esm2022/lib/segment/segment.directives.mjs +1 -1
  125. package/esm2022/lib/segment/segment.module.mjs +1 -1
  126. package/esm2022/lib/segment/segment.types.mjs +1 -1
  127. package/esm2022/lib/select/select.component.mjs +2 -4
  128. package/esm2022/lib/select/select.directive.mjs +1 -1
  129. package/esm2022/lib/select/select.module.mjs +1 -1
  130. package/esm2022/lib/select/select.types.mjs +1 -1
  131. package/esm2022/lib/slide-toggle/slide-toggle.component.mjs +1 -1
  132. package/esm2022/lib/slide-toggle/slide-toggle.module.mjs +1 -1
  133. package/esm2022/lib/slider/abstract-slider.mjs +1 -1
  134. package/esm2022/lib/slider/range-slider/range-slider.component.mjs +1 -1
  135. package/esm2022/lib/slider/range-slider/range-slider.module.mjs +1 -1
  136. package/esm2022/lib/slider/slider.component.mjs +1 -1
  137. package/esm2022/lib/slider/slider.directive.mjs +1 -1
  138. package/esm2022/lib/slider/slider.module.mjs +1 -1
  139. package/esm2022/lib/slider/slider.types.mjs +1 -1
  140. package/esm2022/lib/snackbar/snackbar-ref.mjs +1 -1
  141. package/esm2022/lib/snackbar/snackbar.component.mjs +1 -1
  142. package/esm2022/lib/snackbar/snackbar.service.mjs +1 -1
  143. package/esm2022/lib/snackbar/snackbar.token.mjs +1 -1
  144. package/esm2022/lib/snackbar/snackbar.types.mjs +1 -1
  145. package/esm2022/lib/spinner/spinner.component.mjs +1 -1
  146. package/esm2022/lib/spinner/spinner.module.mjs +1 -1
  147. package/esm2022/lib/star/star-button/star-button.component.mjs +1 -1
  148. package/esm2022/lib/star/star-button/star-button.module.mjs +1 -1
  149. package/esm2022/lib/star/star-display/star-display.component.mjs +1 -1
  150. package/esm2022/lib/star/star-display/star-display.module.mjs +1 -1
  151. package/esm2022/lib/star/star-input/star-input.component.mjs +1 -1
  152. package/esm2022/lib/star/star-input/star-input.module.mjs +1 -1
  153. package/esm2022/lib/star/star.component.mjs +1 -1
  154. package/esm2022/lib/star/star.module.mjs +1 -1
  155. package/esm2022/lib/star/star.types.mjs +1 -1
  156. package/esm2022/lib/statebox/statebox.component.mjs +1 -1
  157. package/esm2022/lib/statebox/statebox.module.mjs +1 -1
  158. package/esm2022/lib/statebox/statebox.types.mjs +1 -1
  159. package/esm2022/lib/table/table-item-storage.mjs +1 -1
  160. package/esm2022/lib/table/table.component.mjs +2 -2
  161. package/esm2022/lib/table/table.directives.mjs +1 -1
  162. package/esm2022/lib/table/table.module.mjs +1 -1
  163. package/esm2022/lib/table/table.types.mjs +1 -1
  164. package/esm2022/lib/table/utils.mjs +1 -1
  165. package/esm2022/lib/table-from-csv/table-from-csv.component.mjs +1 -1
  166. package/esm2022/lib/table-from-csv/table-from-csv.module.mjs +1 -1
  167. package/esm2022/lib/table-pagination/table-pagination.component.mjs +1 -1
  168. package/esm2022/lib/table-pagination/table-pagination.module.mjs +1 -1
  169. package/esm2022/lib/table-pagination/table-pagination.types.mjs +1 -1
  170. package/esm2022/lib/types/alignment.types.mjs +1 -1
  171. package/esm2022/lib/types/colors.types.mjs +1 -1
  172. package/esm2022/lib/types/item-storage.types.mjs +1 -1
  173. package/esm2022/lib/types/theming.types.mjs +1 -1
  174. package/esm2022/lib/types/utility.types.mjs +1 -1
  175. package/fesm2022/ardium-ui-ui.mjs +7 -16
  176. package/fesm2022/ardium-ui-ui.mjs.map +1 -1
  177. package/lib/color/color-picker/color-picker.component.d.ts +12 -12
  178. package/lib/inputs/color-input/color-input.component.d.ts +24 -24
  179. package/package.json +6 -2
  180. package/prebuilt-themes/default/badge.css.map +1 -1
  181. package/prebuilt-themes/default/buttons/button.css.map +1 -1
  182. package/prebuilt-themes/default/buttons/fab.css.map +1 -1
  183. package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
  184. package/prebuilt-themes/default/calendar.css.map +1 -1
  185. package/prebuilt-themes/default/card.css.map +1 -1
  186. package/prebuilt-themes/default/checkbox-list.css.map +1 -1
  187. package/prebuilt-themes/default/checkbox.css.map +1 -1
  188. package/prebuilt-themes/default/chips.css.map +1 -1
  189. package/prebuilt-themes/default/color-display.css.map +1 -1
  190. package/prebuilt-themes/default/color-picker.css.map +1 -1
  191. package/prebuilt-themes/default/core.css.map +1 -1
  192. package/prebuilt-themes/default/dialog.css.map +1 -1
  193. package/prebuilt-themes/default/divider.css.map +1 -1
  194. package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
  195. package/prebuilt-themes/default/file-drop-area.css.map +1 -1
  196. package/prebuilt-themes/default/form-field-frame.css.map +1 -1
  197. package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
  198. package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
  199. package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
  200. package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
  201. package/prebuilt-themes/default/inputs/input.css.map +1 -1
  202. package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
  203. package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
  204. package/prebuilt-themes/default/inputs/search-bar.css.map +1 -1
  205. package/prebuilt-themes/default/inputs/simple-input.css.map +1 -1
  206. package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
  207. package/prebuilt-themes/default/kbd.css.map +1 -1
  208. package/prebuilt-themes/default/modal.css.map +1 -1
  209. package/prebuilt-themes/default/progress-bar.css.map +1 -1
  210. package/prebuilt-themes/default/progress-circle.css.map +1 -1
  211. package/prebuilt-themes/default/radio.css.map +1 -1
  212. package/prebuilt-themes/default/segment.css.map +1 -1
  213. package/prebuilt-themes/default/select.css.map +1 -1
  214. package/prebuilt-themes/default/slide-toggle.css.map +1 -1
  215. package/prebuilt-themes/default/slider.css.map +1 -1
  216. package/prebuilt-themes/default/snackbar.css.map +1 -1
  217. package/prebuilt-themes/default/spinner.css.map +1 -1
  218. package/prebuilt-themes/default/stars.css.map +1 -1
  219. package/prebuilt-themes/default/statebox.css.map +1 -1
  220. package/prebuilt-themes/default/table-pagination.css.map +1 -1
  221. package/prebuilt-themes/default/table.css.map +1 -1
  222. package/themes/default/_clear-button.scss +59 -59
  223. package/themes/default/_coloring.scss +133 -133
  224. package/themes/default/_dropdown-arrow.scss +8 -8
  225. package/themes/default/_mixins.scss +50 -50
  226. package/themes/default/badge.scss +79 -79
  227. package/themes/default/buttons/_button-mixins.scss +112 -112
  228. package/themes/default/buttons/button.scss +47 -47
  229. package/themes/default/buttons/fab.scss +53 -53
  230. package/themes/default/buttons/icon-button.scss +40 -40
  231. package/themes/default/calendar.scss +154 -154
  232. package/themes/default/card.scss +90 -90
  233. package/themes/default/checkbox-list.scss +67 -67
  234. package/themes/default/checkbox.scss +87 -87
  235. package/themes/default/chips.scss +167 -167
  236. package/themes/default/color-display.scss +29 -29
  237. package/themes/default/color-picker.scss +97 -97
  238. package/themes/default/core.scss +75 -75
  239. package/themes/default/dialog.scss +8 -8
  240. package/themes/default/divider.scss +7 -7
  241. package/themes/default/dropdown-panel.scss +33 -33
  242. package/themes/default/file-drop-area.scss +139 -139
  243. package/themes/default/form-field-frame.scss +59 -59
  244. package/themes/default/inputs/_shared.scss +34 -34
  245. package/themes/default/inputs/color-input.scss +30 -30
  246. package/themes/default/inputs/digit-input.scss +37 -37
  247. package/themes/default/inputs/file-input.scss +62 -62
  248. package/themes/default/inputs/hex-input.scss +16 -16
  249. package/themes/default/inputs/input.scss +34 -34
  250. package/themes/default/inputs/number-input.scss +95 -95
  251. package/themes/default/inputs/password-input.scss +31 -31
  252. package/themes/default/inputs/search-bar.scss +9 -9
  253. package/themes/default/inputs/simple-input.scss +9 -9
  254. package/themes/default/kbd-shortcut.scss +8 -8
  255. package/themes/default/kbd.scss +15 -15
  256. package/themes/default/modal.scss +75 -75
  257. package/themes/default/progress-bar.scss +140 -140
  258. package/themes/default/progress-circle.scss +43 -43
  259. package/themes/default/radio.scss +87 -87
  260. package/themes/default/segment.scss +283 -283
  261. package/themes/default/select.scss +226 -226
  262. package/themes/default/slide-toggle.scss +121 -121
  263. package/themes/default/slider.scss +206 -206
  264. package/themes/default/snackbar.scss +40 -40
  265. package/themes/default/spinner.scss +12 -12
  266. package/themes/default/stars.scss +93 -93
  267. package/themes/default/statebox.scss +91 -91
  268. package/themes/default/table-pagination.scss +44 -44
  269. package/themes/default/table.scss +345 -345
@@ -5,202 +5,202 @@
5
5
 
6
6
  //! general css
7
7
  .ard-chip-wrapper {
8
- @include coloringMixins.typeColors();
9
- @include clearButton.clearButton();
10
- @include defaultMixins.formVariants();
11
-
12
- font-family: 'Roboto', sans-serif;
13
- color: $text2;
14
- background: $bg;
15
- border-radius: var(--ard-_chip-border-radius);
16
- padding: 0;
17
- margin: 6px;
18
- vertical-align: middle;
8
+ @include coloringMixins.typeColors();
9
+ @include clearButton.clearButton();
10
+ @include defaultMixins.formVariants();
11
+
12
+ font-family: 'Roboto', sans-serif;
13
+ color: $text2;
14
+ background: $bg;
15
+ border-radius: var(--ard-_chip-border-radius);
16
+ padding: 0;
17
+ margin: 6px;
18
+ vertical-align: middle;
19
+ display: flex;
20
+ align-items: center;
21
+ font-size: 14px;
22
+ position: relative;
23
+ outline: none;
24
+ user-select: none;
25
+ overflow: hidden;
26
+ height: 32px;
27
+
28
+ > .ard-chip-content-wrapper {
29
+ padding: 0 12px;
30
+ }
31
+ > .ard-focus-overlay {
32
+ @include defaultMixins.focus-overlay;
33
+ background: $overlay;
34
+ border-radius: 0;
35
+ }
36
+
37
+ &.ard-chip-selectable {
38
+ cursor: pointer;
19
39
  display: flex;
20
40
  align-items: center;
21
- font-size: 14px;
22
- position: relative;
23
- outline: none;
24
- user-select: none;
25
- overflow: hidden;
26
- height: 32px;
27
41
 
28
- > .ard-chip-content-wrapper {
29
- padding: 0 12px;
42
+ &:hover,
43
+ &:focus {
44
+ > .ard-focus-overlay {
45
+ opacity: 7.5%;
46
+ }
30
47
  }
31
- > .ard-focus-overlay {
32
- @include defaultMixins.focus-overlay;
33
- background: $overlay;
34
- border-radius: 0;
48
+ &:active {
49
+ > .ard-focus-overlay {
50
+ opacity: 20%;
51
+ }
52
+ }
53
+
54
+ .ard-chip-selection-icon {
55
+ @include defaultMixins.icon;
56
+
57
+ &::after {
58
+ content: '\e876';
59
+ }
60
+ }
61
+ }
62
+ //! variants
63
+ &.ard-variant-rounded {
64
+ --ard-_chip-border-radius: 6px;
65
+ }
66
+ &.ard-chip-variant-pill {
67
+ --ard-_chip-border-radius: 9999px;
68
+ }
69
+ //! appearances
70
+ &.ard-appearance-filled {
71
+ background: var(--ard-cmpcl--bg-colored);
72
+ color: var(--ard-cmpcl--on-bg-colored);
73
+ border: none;
74
+
75
+ &.ard-chip-selectable {
76
+ background-color: $bg-f;
77
+ color: $text2;
78
+ transition:
79
+ color 0.15s ease,
80
+ border-color 0.15s ease,
81
+ background-color 0.15s ease;
82
+
83
+ &.ard-chip-selected {
84
+ color: var(--ard-cmpcl--on-bg-colored);
85
+ background: var(--ard-cmpcl--bg-colored);
86
+ }
35
87
  }
88
+ }
89
+ &.ard-appearance-outlined,
90
+ &.ard-appearance-outlined-strong {
91
+ background: transparent;
92
+ color: var(--ard-cmpcl--content);
93
+ border: 1px solid var(--ard-cmpcl--bg-colored);
94
+ font-weight: 600;
36
95
 
37
96
  &.ard-chip-selectable {
38
- cursor: pointer;
39
- display: flex;
40
- align-items: center;
97
+ transition:
98
+ color 0.15s ease,
99
+ border-color 0.15s ease;
41
100
 
42
- &:hover,
43
- &:focus {
44
- > .ard-focus-overlay {
45
- opacity: 7.5%;
46
- }
101
+ > .ard-focus-overlay {
102
+ opacity: 0;
103
+ background: var(--ard-cmpcl--bg-colored);
104
+ }
105
+ &:hover,
106
+ &:focus {
107
+ > .ard-focus-overlay {
108
+ opacity: 4%;
47
109
  }
48
- &:active {
49
- > .ard-focus-overlay {
50
- opacity: 20%;
51
- }
110
+ }
111
+ &:active {
112
+ > .ard-focus-overlay {
113
+ opacity: 10%;
52
114
  }
115
+ }
53
116
 
54
- .ard-chip-selection-icon {
55
- @include defaultMixins.icon;
117
+ &.ard-chip-selected {
118
+ color: var(--ard-cmpcl--content);
56
119
 
57
- &::after {
58
- content: '\e876';
59
- }
120
+ > .ard-focus-overlay {
121
+ opacity: 7.5%;
60
122
  }
61
- }
62
- //! variants
63
- &.ard-variant-rounded {
64
- --ard-_chip-border-radius: 6px;
65
- }
66
- &.ard-chip-variant-pill {
67
- --ard-_chip-border-radius: 9999px;
68
- }
69
- //! appearances
70
- &.ard-appearance-filled {
71
- background: var(--ard-cmpcl--bg-colored);
72
- color: var(--ard-cmpcl--on-bg-colored);
73
- border: none;
74
-
75
- &.ard-chip-selectable {
76
- background-color: $bg-f;
77
- color: $text2;
78
- transition:
79
- color 0.15s ease,
80
- border-color 0.15s ease,
81
- background-color 0.15s ease;
82
-
83
- &.ard-chip-selected {
84
- color: var(--ard-cmpcl--on-bg-colored);
85
- background: var(--ard-cmpcl--bg-colored);
86
- }
123
+ &:hover,
124
+ &:focus {
125
+ > .ard-focus-overlay {
126
+ opacity: 15%;
127
+ }
87
128
  }
88
- }
89
- &.ard-appearance-outlined,
90
- &.ard-appearance-outlined-strong {
91
- background: transparent;
92
- color: var(--ard-cmpcl--content);
93
- border: 1px solid var(--ard-cmpcl--bg-colored);
94
- font-weight: 600;
95
-
96
- &.ard-chip-selectable {
97
- transition:
98
- color 0.15s ease,
99
- border-color 0.15s ease;
100
-
101
- > .ard-focus-overlay {
102
- opacity: 0;
103
- background: var(--ard-cmpcl--bg-colored);
104
- }
105
- &:hover,
106
- &:focus {
107
- > .ard-focus-overlay {
108
- opacity: 4%;
109
- }
110
- }
111
- &:active {
112
- > .ard-focus-overlay {
113
- opacity: 10%;
114
- }
115
- }
116
-
117
- &.ard-chip-selected {
118
- color: var(--ard-cmpcl--content);
119
-
120
- > .ard-focus-overlay {
121
- opacity: 7.5%;
122
- }
123
- &:hover,
124
- &:focus {
125
- > .ard-focus-overlay {
126
- opacity: 15%;
127
- }
128
- }
129
- &:active {
130
- > .ard-focus-overlay {
131
- opacity: 20%;
132
- }
133
- }
134
- }
129
+ &:active {
130
+ > .ard-focus-overlay {
131
+ opacity: 20%;
132
+ }
135
133
  }
134
+ }
136
135
  }
137
- &.ard-appearance-outlined-strong {
138
- > .ard-focus-overlay {
139
- opacity: 7.5%;
140
- background: var(--ard-cmpcl--bg-colored);
141
- }
136
+ }
137
+ &.ard-appearance-outlined-strong {
138
+ > .ard-focus-overlay {
139
+ opacity: 7.5%;
140
+ background: var(--ard-cmpcl--bg-colored);
142
141
  }
142
+ }
143
143
 
144
- //! alignments
145
- &.ard-chip-align-left {
146
- flex-direction: row;
147
- padding-left: 2px;
144
+ //! alignments
145
+ &.ard-chip-align-left {
146
+ flex-direction: row;
147
+ padding-left: 2px;
148
148
 
149
- .ard-chip-selection-icon {
150
- padding-left: 8px;
151
- margin-right: -2px;
152
- }
153
- &.ard-chip-deletable {
154
- padding-left: 4px;
155
-
156
- .ard-chip-content-wrapper {
157
- padding-left: 8px;
158
- }
159
- }
149
+ .ard-chip-selection-icon {
150
+ padding-left: 8px;
151
+ margin-right: -2px;
160
152
  }
161
- &.ard-chip-align-right {
162
- flex-direction: row-reverse;
163
- padding-right: 2px;
153
+ &.ard-chip-deletable {
154
+ padding-left: 4px;
164
155
 
165
- .ard-chip-selection-icon {
166
- padding-right: 8px;
167
- margin-left: -2px;
168
- }
169
- &.ard-chip-deletable {
170
- padding-right: 4px;
156
+ .ard-chip-content-wrapper {
157
+ padding-left: 8px;
158
+ }
159
+ }
160
+ }
161
+ &.ard-chip-align-right {
162
+ flex-direction: row-reverse;
163
+ padding-right: 2px;
164
+
165
+ .ard-chip-selection-icon {
166
+ padding-right: 8px;
167
+ margin-left: -2px;
168
+ }
169
+ &.ard-chip-deletable {
170
+ padding-right: 4px;
171
171
 
172
- .ard-chip-content-wrapper {
173
- padding-right: 8px;
174
- }
175
- }
172
+ .ard-chip-content-wrapper {
173
+ padding-right: 8px;
174
+ }
176
175
  }
177
- //! compact
178
- &.ard-compact {
179
- height: 23px;
180
- font-size: 13px;
176
+ }
177
+ //! compact
178
+ &.ard-compact {
179
+ height: 23px;
180
+ font-size: 13px;
181
181
 
182
- > .ard-chip-content-wrapper {
183
- padding: 0 9px;
184
- }
182
+ > .ard-chip-content-wrapper {
183
+ padding: 0 9px;
184
+ }
185
185
 
186
- &.ard-chip-align-left .ard-chip-selection-icon {
187
- padding-left: 4px;
188
- margin-right: -4px;
189
- }
190
- &.ard-chip-align-right .ard-chip-selection-icon {
191
- padding-right: 4px;
192
- margin-left: -4px;
193
- }
186
+ &.ard-chip-align-left .ard-chip-selection-icon {
187
+ padding-left: 4px;
188
+ margin-right: -4px;
194
189
  }
190
+ &.ard-chip-align-right .ard-chip-selection-icon {
191
+ padding-right: 4px;
192
+ margin-left: -4px;
193
+ }
194
+ }
195
195
  }
196
196
  //! disabled state
197
197
  .ard-disabled {
198
- .ard-chip-wrapper {
199
- pointer-events: none;
200
- opacity: 60%;
198
+ .ard-chip-wrapper {
199
+ pointer-events: none;
200
+ opacity: 60%;
201
201
 
202
- &.ard-chip-selected {
203
- opacity: 40%;
204
- }
202
+ &.ard-chip-selected {
203
+ opacity: 40%;
205
204
  }
205
+ }
206
206
  }
@@ -2,40 +2,40 @@
2
2
  @import '../variables';
3
3
 
4
4
  .ard-color-display-wrapper {
5
- gap: 0.3ch;
6
- align-items: center;
5
+ gap: 0.3ch;
6
+ align-items: center;
7
7
 
8
- .ard-color-display {
9
- width: 1em * math.div(19, 16);
10
- height: 1em * math.div(19, 16);
11
- font-size: inherit;
12
- cursor: help;
13
- border: math.div(1em, 16) solid transparent;
14
- }
8
+ .ard-color-display {
9
+ width: 1em * math.div(19, 16);
10
+ height: 1em * math.div(19, 16);
11
+ font-size: inherit;
12
+ cursor: help;
13
+ border: math.div(1em, 16) solid transparent;
14
+ }
15
15
 
16
- .ard-color-display-label {
17
- font-family: monospace;
18
- font-size: 1.15em;
19
- }
16
+ .ard-color-display-label {
17
+ font-family: monospace;
18
+ font-size: 1.15em;
19
+ }
20
20
 
21
- &.ard-appearance-rounded {
22
- .ard-color-display {
23
- border-radius: 0.25em;
24
- }
21
+ &.ard-appearance-rounded {
22
+ .ard-color-display {
23
+ border-radius: 0.25em;
25
24
  }
26
- &.ard-appearance-circle {
27
- .ard-color-display {
28
- border-radius: 9999px;
29
- }
25
+ }
26
+ &.ard-appearance-circle {
27
+ .ard-color-display {
28
+ border-radius: 9999px;
30
29
  }
31
- &.ard-appearance-sharp {
32
- .ard-color-display {
33
- border-radius: 0;
34
- }
30
+ }
31
+ &.ard-appearance-sharp {
32
+ .ard-color-display {
33
+ border-radius: 0;
35
34
  }
36
- &.ard-with-border {
37
- .ard-color-display {
38
- border-color: $text;
39
- }
35
+ }
36
+ &.ard-with-border {
37
+ .ard-color-display {
38
+ border-color: $text;
40
39
  }
40
+ }
41
41
  }
@@ -1,111 +1,111 @@
1
1
  @import '../variables';
2
2
 
3
3
  .ard-color-picker {
4
- width: 15rem;
5
- padding: 0.5rem;
6
- display: flex;
7
- flex-direction: column;
8
- gap: 0.5rem;
4
+ width: 15rem;
5
+ padding: 0.5rem;
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: 0.5rem;
9
9
 
10
- .ard-color-picker-click-areas {
11
- width: 100%;
12
- gap: 0.5rem;
10
+ .ard-color-picker-click-areas {
11
+ width: 100%;
12
+ gap: 0.5rem;
13
13
 
14
- .ard-color-picker-shade-map,
15
- .ard-color-picker-hue-map,
16
- .ard-color-picker-opacity-map {
17
- border: 1px solid $detail-ultralight-solid;
14
+ .ard-color-picker-shade-map,
15
+ .ard-color-picker-hue-map,
16
+ .ard-color-picker-opacity-map {
17
+ border: 1px solid $detail-ultralight-solid;
18
18
 
19
- &:focus-visible {
20
- outline: 2px solid $overlay;
21
- outline-offset: 1px;
22
- }
23
- }
24
- .ard-color-picker-shade-map {
25
- flex-grow: 1;
26
- aspect-ratio: 1;
27
- }
28
- .ard-color-picker-hue-map,
29
- .ard-color-picker-opacity-map {
30
- width: 1rem;
31
- }
32
- .ard-color-picker-opacity-map {
33
- --ard-color-picker-opacity-checkerboard-color: #{$detail-ultralight-solid};
34
- --ard-color-picker-opacity-checkerboard-size: 0.5rem;
35
- }
36
- .ard-color-picker-shade-indicator {
37
- width: 0.375rem;
38
- height: 0.375rem;
39
- border: 2px solid white;
40
- outline: 1px solid black;
41
- border-radius: 999px;
42
- cursor: pointer;
43
- }
44
- .ard-color-picker-shade-indicator-container,
45
- .ard-color-picker-hue-indicator-container,
46
- .ard-color-picker-opacity-indicator-container {
47
- top: clamp(2px, var(--top), calc(100% - 2px));
48
- }
49
- .ard-color-picker-shade-indicator-container {
50
- left: clamp(2px, var(--left), calc(100% - 2px));
51
- }
52
- .ard-color-picker-hue-indicator-container,
53
- .ard-color-picker-opacity-indicator-container {
54
- left: 50%;
55
- }
56
- .ard-color-picker-hue-indicator,
57
- .ard-color-picker-opacity-indicator {
58
- width: 1rem;
59
- height: 0.25rem;
60
- border: 2px solid white;
61
- outline: 1px solid black;
62
- border-radius: 3px;
63
- cursor: pointer;
64
- }
19
+ &:focus-visible {
20
+ outline: 2px solid $overlay;
21
+ outline-offset: 1px;
22
+ }
65
23
  }
66
- .ard-color-picker-inputs {
67
- display: grid;
68
- grid-template-columns: 1fr max-content;
69
- grid-template-rows: max-content max-content;
70
- gap: 0.5rem;
71
-
72
- .ard-color-picker-input-type {
73
- font-weight: 700;
74
- width: max-content;
75
- }
76
- .ard-color-picker-inputs-container {
77
- display: grid;
78
- gap: 0.5rem;
79
- width: 100%;
80
- grid-column: 1 / 3;
24
+ .ard-color-picker-shade-map {
25
+ flex-grow: 1;
26
+ aspect-ratio: 1;
27
+ }
28
+ .ard-color-picker-hue-map,
29
+ .ard-color-picker-opacity-map {
30
+ width: 1rem;
31
+ }
32
+ .ard-color-picker-opacity-map {
33
+ --ard-color-picker-opacity-checkerboard-color: #{$detail-ultralight-solid};
34
+ --ard-color-picker-opacity-checkerboard-size: 0.5rem;
35
+ }
36
+ .ard-color-picker-shade-indicator {
37
+ width: 0.375rem;
38
+ height: 0.375rem;
39
+ border: 2px solid white;
40
+ outline: 1px solid black;
41
+ border-radius: 999px;
42
+ cursor: pointer;
43
+ }
44
+ .ard-color-picker-shade-indicator-container,
45
+ .ard-color-picker-hue-indicator-container,
46
+ .ard-color-picker-opacity-indicator-container {
47
+ top: clamp(2px, var(--top), calc(100% - 2px));
48
+ }
49
+ .ard-color-picker-shade-indicator-container {
50
+ left: clamp(2px, var(--left), calc(100% - 2px));
51
+ }
52
+ .ard-color-picker-hue-indicator-container,
53
+ .ard-color-picker-opacity-indicator-container {
54
+ left: 50%;
55
+ }
56
+ .ard-color-picker-hue-indicator,
57
+ .ard-color-picker-opacity-indicator {
58
+ width: 1rem;
59
+ height: 0.25rem;
60
+ border: 2px solid white;
61
+ outline: 1px solid black;
62
+ border-radius: 3px;
63
+ cursor: pointer;
64
+ }
65
+ }
66
+ .ard-color-picker-inputs {
67
+ display: grid;
68
+ grid-template-columns: 1fr max-content;
69
+ grid-template-rows: max-content max-content;
70
+ gap: 0.5rem;
81
71
 
82
- &.ard-mode-hex {
83
- grid-template-columns: 1fr;
84
- }
85
- &.ard-mode-triple {
86
- grid-template-columns: 1fr 1fr 1fr;
87
- }
88
- &.ard-mode-opacity {
89
- grid-template-columns: 1fr 1fr 1fr 1fr;
72
+ .ard-color-picker-input-type {
73
+ font-weight: 700;
74
+ width: max-content;
75
+ }
76
+ .ard-color-picker-inputs-container {
77
+ display: grid;
78
+ gap: 0.5rem;
79
+ width: 100%;
80
+ grid-column: 1 / 3;
90
81
 
91
- &.ard-mode-hex .ard-color-picker-hex-input {
92
- grid-column: 1 / 4;
93
- }
94
- }
95
- }
96
- .ard-color-picker-reference {
97
- --ard-color-picker-opacity-checkerboard-color: #{$detail-ultralight-solid};
98
- --ard-color-picker-opacity-checkerboard-size: 0.5rem;
82
+ &.ard-mode-hex {
83
+ grid-template-columns: 1fr;
84
+ }
85
+ &.ard-mode-triple {
86
+ grid-template-columns: 1fr 1fr 1fr;
87
+ }
88
+ &.ard-mode-opacity {
89
+ grid-template-columns: 1fr 1fr 1fr 1fr;
99
90
 
100
- display: grid;
101
- grid-template-columns: 1fr 1fr;
102
- width: 4rem;
103
- height: 100%;
104
- border: 1px solid $detail-ultralight-solid;
105
- box-sizing: border-box;
91
+ &.ard-mode-hex .ard-color-picker-hex-input {
92
+ grid-column: 1 / 4;
106
93
  }
94
+ }
107
95
  }
108
- &.ard-vertical {
109
- width: 13.5rem;
96
+ .ard-color-picker-reference {
97
+ --ard-color-picker-opacity-checkerboard-color: #{$detail-ultralight-solid};
98
+ --ard-color-picker-opacity-checkerboard-size: 0.5rem;
99
+
100
+ display: grid;
101
+ grid-template-columns: 1fr 1fr;
102
+ width: 4rem;
103
+ height: 100%;
104
+ border: 1px solid $detail-ultralight-solid;
105
+ box-sizing: border-box;
110
106
  }
107
+ }
108
+ &.ard-vertical {
109
+ width: 13.5rem;
110
+ }
111
111
  }