@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
@@ -4,182 +4,184 @@
4
4
  @use '../coloring' as CM;
5
5
  @use '../../variables' as ARD;
6
6
 
7
- // the variables are commented out intentionally
8
- // read more in docs/dev/css-variables.md
9
- :root {
10
- // --ard-file-input-height: ;
11
- // --ard-file-input-height-compact: ;
12
- --ard-file-input-gap: 0.625rem;
13
- // --ard-file-input-font-size: ;
14
- // --ard-file-input-font-size-compact: ;
15
- --ard-file-input-line-height: 1.25;
16
- --ard-file-input-line-height-compact: 1;
17
- --ard-file-input-font-weight: 400;
18
- // --ard-file-input-padding-top: ;
19
- // --ard-file-input-padding-right: ;
20
- // --ard-file-input-padding-bottom: ;
21
- // --ard-file-input-padding-left: ;
22
- // --ard-file-input-padding-top-compact: ;
23
- // --ard-file-input-padding-right-compact: ;
24
- // --ard-file-input-padding-bottom-compact: ;
25
- // --ard-file-input-padding-left-compact: ;
26
- // --ard-file-input-color: ;
27
- // --ard-file-input-placeholder-color: ;
28
- --ard-file-input-placeholder-opacity: 60%;
7
+ @layer ard-theme {
8
+ // the variables are commented out intentionally
9
+ // read more in docs/dev/css-variables.md
10
+ :root {
11
+ // --ard-file-input-height: ;
12
+ // --ard-file-input-height-compact: ;
13
+ --ard-file-input-gap: 0.625rem;
14
+ // --ard-file-input-font-size: ;
15
+ // --ard-file-input-font-size-compact: ;
16
+ --ard-file-input-line-height: 1.25;
17
+ --ard-file-input-line-height-compact: 1;
18
+ --ard-file-input-font-weight: 400;
19
+ // --ard-file-input-padding-top: ;
20
+ // --ard-file-input-padding-right: ;
21
+ // --ard-file-input-padding-bottom: ;
22
+ // --ard-file-input-padding-left: ;
23
+ // --ard-file-input-padding-top-compact: ;
24
+ // --ard-file-input-padding-right-compact: ;
25
+ // --ard-file-input-padding-bottom-compact: ;
26
+ // --ard-file-input-padding-left-compact: ;
27
+ // --ard-file-input-color: ;
28
+ // --ard-file-input-placeholder-color: ;
29
+ --ard-file-input-placeholder-opacity: 60%;
29
30
 
30
- --ard-file-input-min-width: 10rem;
31
- --ard-file-input-max-width: 100%;
32
- --ard-file-input-gap: 0.375rem;
33
- --ard-file-input-dragover-outline-width: 2px;
34
- --ard-file-input-dragover-outline-style: solid;
35
- --ard-file-input-browse-button-height: calc(100% - 0.25rem);
36
- --ard-file-input-browse-button-width: unset;
37
- --ard-file-input-browse-button-margin: 0.125rem;
38
- --ard-file-input-browse-button-aspect-ratio: 1;
39
- --ard-file-input-browse-button-border: none;
40
- --ard-file-input-browse-button-border-radius: 9999px;
41
- --ard-file-input-browse-button-background: none;
42
- --ard-file-input-browse-button-padding: 0;
43
- // --ard-file-input-browse-button-color: ;
44
- // --ard-file-input-browse-button-color-error: ;
45
- --ard-file-input-browse-button-overlay-offset: 0rem;
46
- // --ard-file-input-browse-button-overlay-color: ;
47
- --ard-file-input-browse-button-overlay-hover-opacity: 4%;
48
- --ard-file-input-browse-button-overlay-focus-opacity: 0;
49
- --ard-file-input-browse-button-overlay-active-opacity: 12%;
50
- --ard-file-input-browse-button-overlay-focus-visible-opacity: 16%;
51
- --ard-file-input-file-name-font-weight: 500;
52
- --ard-file-input-file-ext-font-weight: 500;
53
- }
54
-
55
- .ard-file-input-form-field-frame {
56
- .ard-form-field-overlay {
57
- display: none;
31
+ --ard-file-input-min-width: 10rem;
32
+ --ard-file-input-max-width: 100%;
33
+ --ard-file-input-gap: 0.375rem;
34
+ --ard-file-input-dragover-outline-width: 2px;
35
+ --ard-file-input-dragover-outline-style: solid;
36
+ --ard-file-input-browse-button-height: calc(100% - 0.25rem);
37
+ --ard-file-input-browse-button-width: unset;
38
+ --ard-file-input-browse-button-margin: 0.125rem;
39
+ --ard-file-input-browse-button-aspect-ratio: 1;
40
+ --ard-file-input-browse-button-border: none;
41
+ --ard-file-input-browse-button-border-radius: 9999px;
42
+ --ard-file-input-browse-button-background: none;
43
+ --ard-file-input-browse-button-padding: 0;
44
+ // --ard-file-input-browse-button-color: ;
45
+ // --ard-file-input-browse-button-color-error: ;
46
+ --ard-file-input-browse-button-overlay-offset: 0rem;
47
+ // --ard-file-input-browse-button-overlay-color: ;
48
+ --ard-file-input-browse-button-overlay-hover-opacity: 4%;
49
+ --ard-file-input-browse-button-overlay-focus-opacity: 0;
50
+ --ard-file-input-browse-button-overlay-active-opacity: 12%;
51
+ --ard-file-input-browse-button-overlay-focus-visible-opacity: 16%;
52
+ --ard-file-input-file-name-font-weight: 500;
53
+ --ard-file-input-file-ext-font-weight: 500;
58
54
  }
59
- }
60
- .ard-file-input {
61
- @include inputMixin.genericInput(
62
- var(--ard-file-input-height, var(--ard-form-field-height, 2.3125rem)),
63
- var(--ard-file-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
64
- var(--ard-file-input-gap, 0.625rem),
65
- var(--ard-file-input-font-size, var(--ard-form-field-font-size, 1rem)),
66
- var(--ard-file-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
67
- var(--ard-file-input-line-height, 1.25),
68
- var(--ard-file-input-line-height-compact, 1),
69
- var(--ard-file-input-font-weight, 400),
70
- var(--ard-file-input-padding-top, var(--ard-form-field-padding-top, 0)),
71
- var(--ard-file-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
72
- var(--ard-file-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
73
- var(--ard-file-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
74
- var(--ard-file-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
75
- var(--ard-file-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
76
- var(--ard-file-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
77
- var(--ard-file-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
78
- var(--ard-file-input-color, #{ARD.$text}),
79
- var(--ard-file-input-placeholder-color, #{ARD.$text}),
80
- var(--ard-file-input-placeholder-opacity, 60%)
81
- );
82
- @include CM.typeColors();
83
- min-width: var(--ard-file-input-min-width, 10rem);
84
- max-width: var(--ard-file-input-max-width, 100%);
85
- gap: var(--ard-file-input-gap, 0.375rem);
86
- cursor: default;
87
- border-radius: var(--ard-variant-border-radius);
88
55
 
89
- *:not(button):not(ard-clear-button) {
90
- pointer-events: none;
91
- user-select: none;
56
+ .ard-file-input-form-field-frame {
57
+ .ard-form-field-overlay {
58
+ display: none;
59
+ }
92
60
  }
61
+ .ard-file-input {
62
+ @include inputMixin.genericInput(
63
+ var(--ard-file-input-height, var(--ard-form-field-height, 2.3125rem)),
64
+ var(--ard-file-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
65
+ var(--ard-file-input-gap, 0.625rem),
66
+ var(--ard-file-input-font-size, var(--ard-form-field-font-size, 1rem)),
67
+ var(--ard-file-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
68
+ var(--ard-file-input-line-height, 1.25),
69
+ var(--ard-file-input-line-height-compact, 1),
70
+ var(--ard-file-input-font-weight, 400),
71
+ var(--ard-file-input-padding-top, var(--ard-form-field-padding-top, 0)),
72
+ var(--ard-file-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
73
+ var(--ard-file-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
74
+ var(--ard-file-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
75
+ var(--ard-file-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
76
+ var(--ard-file-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
77
+ var(--ard-file-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
78
+ var(--ard-file-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
79
+ var(--ard-file-input-color, #{ARD.$text}),
80
+ var(--ard-file-input-placeholder-color, #{ARD.$text}),
81
+ var(--ard-file-input-placeholder-opacity, 60%)
82
+ );
83
+ @include CM.typeColors();
84
+ min-width: var(--ard-file-input-min-width, 10rem);
85
+ max-width: var(--ard-file-input-max-width, 100%);
86
+ gap: var(--ard-file-input-gap, 0.375rem);
87
+ cursor: default;
88
+ border-radius: var(--ard-variant-border-radius);
93
89
 
94
- &.ard-state-dragover {
95
- outline: var(--ard-file-input-dragover-outline-width, 2px) var(--ard-file-input-dragover-outline-style, solid)
96
- var(--ard-cmpcl--content-light);
97
- }
90
+ *:not(button):not(ard-clear-button) {
91
+ pointer-events: none;
92
+ user-select: none;
93
+ }
98
94
 
99
- .ard-file-input__value {
100
- overflow: hidden;
101
- text-overflow: ellipsis;
102
- display: flex;
103
- align-items: center;
104
- }
105
- .ard-browse-button {
106
- cursor: pointer;
107
- height: var(--ard-file-input-browse-button-height, calc(100% - 0.25rem));
108
- width: var(--ard-file-input-browse-button-width, unset);
109
- margin: var(--ard-file-input-browse-button-margin, 0.125rem);
110
- aspect-ratio: var(--ard-file-input-browse-button-aspect-ratio, 1);
111
- border: var(--ard-file-input-browse-button-border, none);
112
- border-radius: var(--ard-file-input-browse-button-border-radius, 9999px);
113
- background: var(--ard-file-input-browse-button-background, none);
114
- padding: var(--ard-file-input-browse-button-padding, 0);
115
- color: var(--ard-file-input-browse-button-color, #{ARD.$text});
116
- position: relative;
117
- display: flex;
118
- justify-content: center;
119
- align-items: center;
120
- outline: none;
95
+ &.ard-state-dragover {
96
+ outline: var(--ard-file-input-dragover-outline-width, 2px) var(--ard-file-input-dragover-outline-style, solid)
97
+ var(--ard-cmpcl--content-light);
98
+ }
121
99
 
122
- .ard-focus-overlay {
123
- @include defaultMixins.focus-overlay(var(--ard-file-input-browse-button-overlay-offset, 0.25rem));
124
- background: var(--ard-file-input-browse-button-overlay-color, #{ARD.$overlay});
125
- border-radius: var(--ard-file-input-browse-button-border-radius, 9999px);
100
+ .ard-file-input__value {
101
+ overflow: hidden;
102
+ text-overflow: ellipsis;
103
+ display: flex;
104
+ align-items: center;
126
105
  }
127
- &:hover {
106
+ .ard-browse-button {
107
+ cursor: pointer;
108
+ height: var(--ard-file-input-browse-button-height, calc(100% - 0.25rem));
109
+ width: var(--ard-file-input-browse-button-width, unset);
110
+ margin: var(--ard-file-input-browse-button-margin, 0.125rem);
111
+ aspect-ratio: var(--ard-file-input-browse-button-aspect-ratio, 1);
112
+ border: var(--ard-file-input-browse-button-border, none);
113
+ border-radius: var(--ard-file-input-browse-button-border-radius, 9999px);
114
+ background: var(--ard-file-input-browse-button-background, none);
115
+ padding: var(--ard-file-input-browse-button-padding, 0);
116
+ color: var(--ard-file-input-browse-button-color, #{ARD.$text});
117
+ position: relative;
118
+ display: flex;
119
+ justify-content: center;
120
+ align-items: center;
121
+ outline: none;
122
+
128
123
  .ard-focus-overlay {
129
- opacity: var(--ard-file-input-browse-button-overlay-hover-opacity, 4%);
124
+ @include defaultMixins.focus-overlay(var(--ard-file-input-browse-button-overlay-offset, 0.25rem));
125
+ background: var(--ard-file-input-browse-button-overlay-color, #{ARD.$overlay});
126
+ border-radius: var(--ard-file-input-browse-button-border-radius, 9999px);
130
127
  }
131
- }
132
- &:focus {
133
- .ard-focus-overlay {
134
- opacity: var(--ard-file-input-browse-button-overlay-focus-opacity, 8%);
128
+ &:hover {
129
+ .ard-focus-overlay {
130
+ opacity: var(--ard-file-input-browse-button-overlay-hover-opacity, 4%);
131
+ }
135
132
  }
136
- }
137
- &:active {
138
- .ard-focus-overlay {
139
- opacity: var(--ard-file-input-browse-button-overlay-active-opacity, 12%);
133
+ &:focus {
134
+ .ard-focus-overlay {
135
+ opacity: var(--ard-file-input-browse-button-overlay-focus-opacity, 8%);
136
+ }
140
137
  }
141
- }
142
- &:focus-visible {
143
- .ard-focus-overlay {
144
- opacity: var(--ard-file-input-browse-button-overlay-focus-visible-opacity, 16%);
138
+ &:active {
139
+ .ard-focus-overlay {
140
+ opacity: var(--ard-file-input-browse-button-overlay-active-opacity, 12%);
141
+ }
142
+ }
143
+ &:focus-visible {
144
+ .ard-focus-overlay {
145
+ opacity: var(--ard-file-input-browse-button-overlay-focus-visible-opacity, 16%);
146
+ }
145
147
  }
146
148
  }
147
- }
148
149
 
149
- @include CB.clearButton();
150
-
151
- .ard-input-container {
152
- white-space: nowrap;
153
- }
154
- .ard-input-container,
155
- .ard-file-input__value,
156
- .ard-file-input__uploaded,
157
- .ard-file-input__full-file-name,
158
- .ard-file-input__file-name {
159
- overflow: hidden;
160
- text-overflow: ellipsis;
161
- max-width: 100%;
162
- }
163
- .ard-file-input__full-file-name {
164
- display: grid;
165
- grid-template-columns: 1fr max-content;
150
+ @include CB.clearButton();
166
151
 
152
+ .ard-input-container {
153
+ white-space: nowrap;
154
+ }
155
+ .ard-input-container,
156
+ .ard-file-input__value,
157
+ .ard-file-input__uploaded,
158
+ .ard-file-input__full-file-name,
167
159
  .ard-file-input__file-name {
168
- font-weight: var(--ard-file-input-file-name-font-weight, 500);
160
+ overflow: hidden;
161
+ text-overflow: ellipsis;
162
+ max-width: 100%;
169
163
  }
170
- .ard-file-input__file-ext {
171
- font-weight: var(--ard-file-input-file-ext-font-weight, 500);
164
+ .ard-file-input__full-file-name {
165
+ display: grid;
166
+ grid-template-columns: 1fr max-content;
167
+
168
+ .ard-file-input__file-name {
169
+ font-weight: var(--ard-file-input-file-name-font-weight, 500);
170
+ }
171
+ .ard-file-input__file-ext {
172
+ font-weight: var(--ard-file-input-file-ext-font-weight, 500);
173
+ }
172
174
  }
173
175
  }
174
- }
175
- ard-file-input .ard-form-field-content-container {
176
- max-width: 100%;
177
- }
178
- ard-file-input .ard-form-field-frame {
179
- &.ard-has-error .ard-file-input {
180
- .ard-file-input__value,
181
- .ard-browse-button {
182
- color: var(--ard-file-input-browse-button-color-error, #{ARD.$danger700});
176
+ ard-file-input .ard-form-field-content-container {
177
+ max-width: 100%;
178
+ }
179
+ ard-file-input .ard-form-field-frame {
180
+ &.ard-has-error .ard-file-input {
181
+ .ard-file-input__value,
182
+ .ard-browse-button {
183
+ color: var(--ard-file-input-browse-button-color-error, #{ARD.$danger700});
184
+ }
183
185
  }
184
186
  }
185
187
  }
@@ -3,75 +3,77 @@
3
3
  @use '../clear-button' as CB;
4
4
  @use '../../variables' as ARD;
5
5
 
6
- // the variables are commented out intentionally
7
- // read more in docs/dev/css-variables.md
8
- :root {
9
- // --ard-hex-input-height: ;
10
- // --ard-hex-input-height-compact: ;
11
- --ard-hex-input-gap: 0.625rem;
12
- // --ard-hex-input-font-size: ;
13
- // --ard-hex-input-font-size-compact: ;
14
- --ard-hex-input-line-height: 1.25;
15
- --ard-hex-input-line-height-compact: 1;
16
- --ard-hex-input-font-weight: 400;
17
- // --ard-hex-input-padding-top: ;
18
- // --ard-hex-input-padding-right: ;
19
- // --ard-hex-input-padding-bottom: ;
20
- // --ard-hex-input-padding-left: ;
21
- // --ard-hex-input-padding-top-compact: ;
22
- // --ard-hex-input-padding-right-compact: ;
23
- // --ard-hex-input-padding-bottom-compact: ;
24
- // --ard-hex-input-padding-left-compact: ;
25
- // --ard-hex-input-color: ;
26
- // --ard-hex-input-placeholder-color: ;
27
- --ard-hex-input-placeholder-opacity: 60%;
6
+ @layer ard-theme {
7
+ // the variables are commented out intentionally
8
+ // read more in docs/dev/css-variables.md
9
+ :root {
10
+ // --ard-hex-input-height: ;
11
+ // --ard-hex-input-height-compact: ;
12
+ --ard-hex-input-gap: 0.625rem;
13
+ // --ard-hex-input-font-size: ;
14
+ // --ard-hex-input-font-size-compact: ;
15
+ --ard-hex-input-line-height: 1.25;
16
+ --ard-hex-input-line-height-compact: 1;
17
+ --ard-hex-input-font-weight: 400;
18
+ // --ard-hex-input-padding-top: ;
19
+ // --ard-hex-input-padding-right: ;
20
+ // --ard-hex-input-padding-bottom: ;
21
+ // --ard-hex-input-padding-left: ;
22
+ // --ard-hex-input-padding-top-compact: ;
23
+ // --ard-hex-input-padding-right-compact: ;
24
+ // --ard-hex-input-padding-bottom-compact: ;
25
+ // --ard-hex-input-padding-left-compact: ;
26
+ // --ard-hex-input-color: ;
27
+ // --ard-hex-input-placeholder-color: ;
28
+ --ard-hex-input-placeholder-opacity: 60%;
28
29
 
29
- --ard-hex-input-min-width: 10rem;
30
- --ard-hex-input-max-width: 100%;
31
- // --ard-hex-input-hash-color: ;
32
- --ard-hex-input-hash-opacity: 70%;
33
- }
30
+ --ard-hex-input-min-width: 10rem;
31
+ --ard-hex-input-max-width: 100%;
32
+ // --ard-hex-input-hash-color: ;
33
+ --ard-hex-input-hash-opacity: 70%;
34
+ }
34
35
 
35
- .ard-hex-input {
36
- @include inputMixin.genericInput(
37
- var(--ard-hex-input-height, var(--ard-form-field-height, 2.3125rem)),
38
- var(--ard-hex-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
39
- var(--ard-hex-input-gap, 0.625rem),
40
- var(--ard-hex-input-font-size, var(--ard-form-field-font-size, 1rem)),
41
- var(--ard-hex-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
42
- var(--ard-hex-input-line-height, 1.25),
43
- var(--ard-hex-input-line-height-compact, 1),
44
- var(--ard-hex-input-font-weight, 400),
45
- var(--ard-hex-input-padding-top, var(--ard-form-field-padding-top, 0)),
46
- var(--ard-hex-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
47
- var(--ard-hex-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
48
- var(--ard-hex-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
49
- var(--ard-hex-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
50
- var(--ard-hex-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
51
- var(--ard-hex-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
52
- var(--ard-hex-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
53
- var(--ard-hex-input-color, #{ARD.$text}),
54
- var(--ard-hex-input-placeholder-color, #{ARD.$text}),
55
- var(--ard-hex-input-placeholder-opacity, 60%)
56
- );
57
- min-width: var(--ard-hex-input-min-width, 10rem);
58
- max-width: var(--ard-hex-input-max-width, 100%);
36
+ .ard-hex-input {
37
+ @include inputMixin.genericInput(
38
+ var(--ard-hex-input-height, var(--ard-form-field-height, 2.3125rem)),
39
+ var(--ard-hex-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
40
+ var(--ard-hex-input-gap, 0.625rem),
41
+ var(--ard-hex-input-font-size, var(--ard-form-field-font-size, 1rem)),
42
+ var(--ard-hex-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
43
+ var(--ard-hex-input-line-height, 1.25),
44
+ var(--ard-hex-input-line-height-compact, 1),
45
+ var(--ard-hex-input-font-weight, 400),
46
+ var(--ard-hex-input-padding-top, var(--ard-form-field-padding-top, 0)),
47
+ var(--ard-hex-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
48
+ var(--ard-hex-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
49
+ var(--ard-hex-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
50
+ var(--ard-hex-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
51
+ var(--ard-hex-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
52
+ var(--ard-hex-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
53
+ var(--ard-hex-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
54
+ var(--ard-hex-input-color, #{ARD.$text}),
55
+ var(--ard-hex-input-placeholder-color, #{ARD.$text}),
56
+ var(--ard-hex-input-placeholder-opacity, 60%)
57
+ );
58
+ min-width: var(--ard-hex-input-min-width, 10rem);
59
+ max-width: var(--ard-hex-input-max-width, 100%);
59
60
 
60
- @include CB.clearButton();
61
+ @include CB.clearButton();
61
62
 
62
- .ard-input-container {
63
- input {
64
- font-family: var(--ard-font-family-mono);
63
+ .ard-input-container {
64
+ input {
65
+ font-family: var(--ard-font-family-mono);
66
+ }
65
67
  }
66
- }
67
68
 
68
- .ard-hash-container {
69
- color: var(--ard-hex-input-hash-color, #{ARD.$text});
70
- opacity: var(--ard-hex-input-hash-opacity, 70%);
71
- user-select: none;
72
- font-family: var(--ard-font-family-mono);
73
- display: flex;
74
- align-items: center;
75
- height: 100%;
69
+ .ard-hash-container {
70
+ color: var(--ard-hex-input-hash-color, #{ARD.$text});
71
+ opacity: var(--ard-hex-input-hash-opacity, 70%);
72
+ user-select: none;
73
+ font-family: var(--ard-font-family-mono);
74
+ display: flex;
75
+ align-items: center;
76
+ height: 100%;
77
+ }
76
78
  }
77
79
  }
@@ -3,57 +3,59 @@
3
3
  @use '../clear-button' as CB;
4
4
  @use '../../variables' as ARD;
5
5
 
6
- // the variables are commented out intentionally
7
- // read more in docs/dev/css-variables.md
8
- :root {
9
- // --ard-input-height: ;
10
- // --ard-input-height-compact: ;
11
- --ard-input-gap: 0.625rem;
12
- // --ard-input-font-size: ;
13
- // --ard-input-font-size-compact: ;
14
- --ard-input-line-height: 1.25;
15
- --ard-input-line-height-compact: 1;
16
- --ard-input-font-weight: 400;
17
- // --ard-input-padding-left: ;
18
- // --ard-input-padding-right: ;
19
- // --ard-input-padding-top: ;
20
- // --ard-input-padding-bottom: ;
21
- // --ard-input-padding-left-compact: ;
22
- // --ard-input-padding-right-compact: ;
23
- // --ard-input-padding-top-compact: ;
24
- // --ard-input-padding-bottom-compact: ;
25
- // --ard-input-color: ;
26
- // --ard-input-placeholder-color: ;
27
- --ard-input-placeholder-opacity: 60%;
6
+ @layer ard-theme {
7
+ // the variables are commented out intentionally
8
+ // read more in docs/dev/css-variables.md
9
+ :root {
10
+ // --ard-input-height: ;
11
+ // --ard-input-height-compact: ;
12
+ --ard-input-gap: 0.625rem;
13
+ // --ard-input-font-size: ;
14
+ // --ard-input-font-size-compact: ;
15
+ --ard-input-line-height: 1.25;
16
+ --ard-input-line-height-compact: 1;
17
+ --ard-input-font-weight: 400;
18
+ // --ard-input-padding-left: ;
19
+ // --ard-input-padding-right: ;
20
+ // --ard-input-padding-top: ;
21
+ // --ard-input-padding-bottom: ;
22
+ // --ard-input-padding-left-compact: ;
23
+ // --ard-input-padding-right-compact: ;
24
+ // --ard-input-padding-top-compact: ;
25
+ // --ard-input-padding-bottom-compact: ;
26
+ // --ard-input-color: ;
27
+ // --ard-input-placeholder-color: ;
28
+ --ard-input-placeholder-opacity: 60%;
28
29
 
29
- --ard-input-min-width: 10rem;
30
- --ard-input-max-width: 100%;
31
- }
30
+ --ard-input-min-width: 10rem;
31
+ --ard-input-max-width: 100%;
32
+ }
32
33
 
33
- .ard-input {
34
- @include inputMixin.genericInput(
35
- var(--ard-input-height, var(--ard-form-field-height, 2.3125rem)),
36
- var(--ard-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
37
- var(--ard-input-gap, 0.625rem),
38
- var(--ard-input-font-size, var(--ard-form-field-font-size, 1rem)),
39
- var(--ard-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
40
- var(--ard-input-line-height, 1.25),
41
- var(--ard-input-line-height-compact, 1),
42
- var(--ard-input-font-weight, 400),
43
- var(--ard-input-padding-top, var(--ard-form-field-padding-top, 0)),
44
- var(--ard-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
45
- var(--ard-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
46
- var(--ard-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
47
- var(--ard-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
48
- var(--ard-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
49
- var(--ard-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
50
- var(--ard-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
51
- var(--ard-input-color, #{ARD.$text}),
52
- var(--ard-input-placeholder-color, #{ARD.$text}),
53
- var(--ard-input-placeholder-opacity, 60%)
54
- );
55
- min-width: var(--ard-input-min-width, 10rem);
56
- max-width: var(--ard-input-max-width, 100%);
34
+ .ard-input {
35
+ @include inputMixin.genericInput(
36
+ var(--ard-input-height, var(--ard-form-field-height, 2.3125rem)),
37
+ var(--ard-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
38
+ var(--ard-input-gap, 0.625rem),
39
+ var(--ard-input-font-size, var(--ard-form-field-font-size, 1rem)),
40
+ var(--ard-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
41
+ var(--ard-input-line-height, 1.25),
42
+ var(--ard-input-line-height-compact, 1),
43
+ var(--ard-input-font-weight, 400),
44
+ var(--ard-input-padding-top, var(--ard-form-field-padding-top, 0)),
45
+ var(--ard-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
46
+ var(--ard-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
47
+ var(--ard-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
48
+ var(--ard-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
49
+ var(--ard-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
50
+ var(--ard-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
51
+ var(--ard-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
52
+ var(--ard-input-color, #{ARD.$text}),
53
+ var(--ard-input-placeholder-color, #{ARD.$text}),
54
+ var(--ard-input-placeholder-opacity, 60%)
55
+ );
56
+ min-width: var(--ard-input-min-width, 10rem);
57
+ max-width: var(--ard-input-max-width, 100%);
57
58
 
58
- @include CB.clearButton();
59
+ @include CB.clearButton();
60
+ }
59
61
  }