@rossigee/clarity-ui 18.2.1-fixed

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 (219) hide show
  1. package/README.md +29 -0
  2. package/STYLES.md +1796 -0
  3. package/accordion/_accordion.clarity.scss +81 -0
  4. package/accordion/_properties.accordion.scss +45 -0
  5. package/accordion/_variables.accordion.scss +91 -0
  6. package/button/_buttons.clarity.scss +374 -0
  7. package/button/_mixins.buttons.scss +232 -0
  8. package/button/_properties.buttons.scss +325 -0
  9. package/button/_properties.toggles.scss +35 -0
  10. package/button/_variables.buttons.scss +843 -0
  11. package/button/_variables.toggles.scss +41 -0
  12. package/button/button-group/_button-group.clarity.scss +193 -0
  13. package/clr-ui.css +31728 -0
  14. package/clr-ui.css.map +1 -0
  15. package/clr-ui.min.css +52 -0
  16. package/clr-ui.min.css.map +1 -0
  17. package/collapsible-panel/_mixins.collapsible-panel.scss +189 -0
  18. package/collapsible-panel/_properties.collapsible-panel.scss +42 -0
  19. package/collapsible-panel/_variables.collapsible-panel.scss +40 -0
  20. package/data/_mixins.tables.scss +111 -0
  21. package/data/_properties.tables.scss +62 -0
  22. package/data/_tables.clarity.scss +120 -0
  23. package/data/_variables.tables.scss +42 -0
  24. package/data/datagrid/_datagrid.clarity.scss +1753 -0
  25. package/data/datagrid/_mixins.datagrid.scss +102 -0
  26. package/data/datagrid/_properties.datagrid.scss +90 -0
  27. package/data/datagrid/_variables.datagrid.scss +96 -0
  28. package/data/stack-view/_properties.stack-view.scss +50 -0
  29. package/data/stack-view/_stack-view.clarity.scss +267 -0
  30. package/data/stack-view/_variables.stack-view.scss +32 -0
  31. package/data/tree-view/_properties.tree-view.scss +41 -0
  32. package/data/tree-view/_tree-view.clarity.scss +281 -0
  33. package/data/tree-view/_variables.tree-view.scss +51 -0
  34. package/emphasis/alert/_alert.clarity.scss +467 -0
  35. package/emphasis/alert/_mixins.alert.scss +96 -0
  36. package/emphasis/alert/_properties.alert.scss +183 -0
  37. package/emphasis/alert/_variables.alert.scss +502 -0
  38. package/emphasis/badge/_badges.clarity.scss +61 -0
  39. package/emphasis/badge/_mixins.bades.scss +34 -0
  40. package/emphasis/badge/_properties.badges.scss +82 -0
  41. package/emphasis/badge/_variables.badges.scss +160 -0
  42. package/emphasis/label/_labels.clarity.scss +175 -0
  43. package/emphasis/label/_mixins.label.scss +76 -0
  44. package/emphasis/label/_properties.label.scss +105 -0
  45. package/emphasis/label/_variables.label.scss +181 -0
  46. package/forms/combobox/_combobox.clarity.scss +322 -0
  47. package/forms/combobox/_properties.combobox.scss +45 -0
  48. package/forms/combobox/_variables.combobox.scss +32 -0
  49. package/forms/datepicker/_datepicker.clarity.scss +259 -0
  50. package/forms/datepicker/_mixins.datepicker.scss +90 -0
  51. package/forms/datepicker/_properties.datepicker.scss +46 -0
  52. package/forms/datepicker/_variables.datepicker.scss +74 -0
  53. package/forms/styles/_checkbox.clarity.scss +193 -0
  54. package/forms/styles/_containers.clarity.scss +228 -0
  55. package/forms/styles/_datalist.clarity.scss +47 -0
  56. package/forms/styles/_file-input.clarity.scss +134 -0
  57. package/forms/styles/_file.clarity.scss +52 -0
  58. package/forms/styles/_form.clarity.scss +87 -0
  59. package/forms/styles/_input-group.clarity.scss +118 -0
  60. package/forms/styles/_input.clarity.scss +78 -0
  61. package/forms/styles/_mixins.forms.scss +173 -0
  62. package/forms/styles/_number-input.clarity.scss +58 -0
  63. package/forms/styles/_password.clarity.scss +26 -0
  64. package/forms/styles/_properties.forms.scss +121 -0
  65. package/forms/styles/_radio.clarity.scss +120 -0
  66. package/forms/styles/_range.clarity.scss +124 -0
  67. package/forms/styles/_select.clarity.scss +178 -0
  68. package/forms/styles/_textarea.clarity.scss +77 -0
  69. package/forms/styles/_toggles.clarity.scss +209 -0
  70. package/forms/styles/_variables.forms.scss +128 -0
  71. package/icon/icon.component.scss +242 -0
  72. package/image/_icons.clarity.scss +101 -0
  73. package/image/_images.clarity.scss +42 -0
  74. package/image/_mixins.images.scss +11 -0
  75. package/layout/_card.clarity.scss +311 -0
  76. package/layout/_login.clarity.scss +240 -0
  77. package/layout/_properties.card.scss +36 -0
  78. package/layout/_properties.login.scss +32 -0
  79. package/layout/_variables.card.scss +23 -0
  80. package/layout/_variables.login.scss +22 -0
  81. package/layout/breadcrumbs/_breadcrumbs.clarity.scss +60 -0
  82. package/layout/breadcrumbs/_properties.breadcrumbs.scss +18 -0
  83. package/layout/breadcrumbs/_variables.breadcrumbs.scss +11 -0
  84. package/layout/grid/_grid.scss +23 -0
  85. package/layout/grid/grid/_grid.scss +39 -0
  86. package/layout/grid/mixins/_breakpoint.scss +83 -0
  87. package/layout/grid/mixins/_clearfix.scss +13 -0
  88. package/layout/grid/mixins/_grid-framework.scss +91 -0
  89. package/layout/grid/mixins/_grid.scss +39 -0
  90. package/layout/grid/utilities/_align.scss +30 -0
  91. package/layout/grid/utilities/_clearfix.scss +12 -0
  92. package/layout/grid/utilities/_display.scss +18 -0
  93. package/layout/grid/utilities/_flex.scss +222 -0
  94. package/layout/grid/utilities/_float.scss +26 -0
  95. package/layout/grid/utilities/_visibility.scss +60 -0
  96. package/layout/main-container/_layout.clarity.scss +87 -0
  97. package/layout/main-container/_properties.header.scss +39 -0
  98. package/layout/main-container/_variables.header.scss +32 -0
  99. package/layout/nav/_header.clarity.scss +40 -0
  100. package/layout/nav/_links.clarity.scss +84 -0
  101. package/layout/nav/_mixins.header.scss +332 -0
  102. package/layout/nav/_mixins.responsive-nav.scss +75 -0
  103. package/layout/nav/_nav.clarity.scss +100 -0
  104. package/layout/nav/_properties.nav.scss +27 -0
  105. package/layout/nav/_properties.responsive-nav.scss +23 -0
  106. package/layout/nav/_properties.subnav.scss +19 -0
  107. package/layout/nav/_responsive-nav.clarity.scss +488 -0
  108. package/layout/nav/_subnav.clarity.scss +48 -0
  109. package/layout/nav/_variables.nav.scss +13 -0
  110. package/layout/nav/_variables.responsive-nav.scss +28 -0
  111. package/layout/nav/_variables.subnav.scss +21 -0
  112. package/layout/tabs/_mixins.tabs.scss +41 -0
  113. package/layout/tabs/_properties.tabs.scss +25 -0
  114. package/layout/tabs/_tabs.clarity.scss +110 -0
  115. package/layout/tabs/_variables.tabs.scss +17 -0
  116. package/layout/vertical-nav/_mixins.vertical-nav.scss +52 -0
  117. package/layout/vertical-nav/_properties.vertical-nav.scss +73 -0
  118. package/layout/vertical-nav/_variables.vertical-nav.scss +52 -0
  119. package/layout/vertical-nav/_vertical-nav.clarity.scss +469 -0
  120. package/main.scss +14 -0
  121. package/modal/_modal.clarity.scss +362 -0
  122. package/modal/_properties.modal.scss +45 -0
  123. package/modal/_variables.modal.scss +38 -0
  124. package/package.json +15 -0
  125. package/popover/common/_popover.clarity.scss +28 -0
  126. package/popover/dropdown/_dropdown.clarity.scss +326 -0
  127. package/popover/dropdown/_menu-mixins.clarity.scss +132 -0
  128. package/popover/dropdown/_properties.dropdown.scss +50 -0
  129. package/popover/dropdown/_variables.dropdown.scss +36 -0
  130. package/popover/signpost/_properties.signpost.scss +34 -0
  131. package/popover/signpost/_signposts.clarity.scss +414 -0
  132. package/popover/signpost/_variables.signpost.scss +21 -0
  133. package/popover/tooltip/_mixins.tooltip.scss +186 -0
  134. package/popover/tooltip/_properties.tooltip.scss +28 -0
  135. package/popover/tooltip/_tooltips.clarity.scss +122 -0
  136. package/popover/tooltip/_variables.tooltip.scss +20 -0
  137. package/progress/progress-bars/_progress-bars.clarity.scss +616 -0
  138. package/progress/progress-bars/_properties.progress-bars.scss +24 -0
  139. package/progress/progress-bars/_variables.progress-bars.scss +15 -0
  140. package/progress/progress-bars/utils/_mixins.clarity.scss +18 -0
  141. package/progress/spinner/_mixins.spinner.scss +30 -0
  142. package/progress/spinner/_properties.spinner.scss +37 -0
  143. package/progress/spinner/_spinner.clarity.scss +148 -0
  144. package/progress/spinner/_variables.spinner.scss +25 -0
  145. package/stepper/_properties.stepper.scss +29 -0
  146. package/stepper/_stepper.clarity.scss +184 -0
  147. package/stepper/_variables.stepper.scss +13 -0
  148. package/styles/_a11y.scss +14 -0
  149. package/styles/_close.clarity.scss +60 -0
  150. package/styles/_components.clarity.scss +183 -0
  151. package/styles/_mixins.scss +478 -0
  152. package/styles/_normalize.scss +292 -0
  153. package/styles/_reboot.clarity.scss +374 -0
  154. package/styles/_variables.clarity.scss +139 -0
  155. package/styles/core/base/base.element.scss +97 -0
  156. package/styles/core/global.scss +12 -0
  157. package/styles/core/layout/_alignments.scss +18 -0
  158. package/styles/core/layout/_container.scss +29 -0
  159. package/styles/core/layout/_display.scss +58 -0
  160. package/styles/core/layout/_optimize.scss +60 -0
  161. package/styles/core/layout/_shadow-dom.scss +47 -0
  162. package/styles/core/layout/_spacing.scss +31 -0
  163. package/styles/core/layout/_type-grid.scss +66 -0
  164. package/styles/core/layout/_type-horizontal.scss +33 -0
  165. package/styles/core/layout/_type-vertical.scss +26 -0
  166. package/styles/core/layout/mixins/_mixins.alignment.scss +35 -0
  167. package/styles/core/layout/mixins/_mixins.display.scss +23 -0
  168. package/styles/core/layout/mixins/_mixins.grid.scss +105 -0
  169. package/styles/core/layout/mixins/_mixins.scss +106 -0
  170. package/styles/core/layout/mixins/_mixins.shadow-dom.scss +106 -0
  171. package/styles/core/layout/mixins/_mixins.type-horizontal.scss +113 -0
  172. package/styles/core/layout/mixins/_mixins.type-vertical.scss +108 -0
  173. package/styles/core/module.layout.scss +22 -0
  174. package/styles/core/module.reset.scss +48 -0
  175. package/styles/core/module.typography.scss +9 -0
  176. package/styles/core/theme.dark.scss +266 -0
  177. package/styles/core/theme.high-contrast.scss +42 -0
  178. package/styles/core/theme.low-motion.scss +20 -0
  179. package/styles/core/tokens/_alias-interaction.scss +59 -0
  180. package/styles/core/tokens/_alias-object-background.scss +14 -0
  181. package/styles/core/tokens/_alias-object-border.scss +21 -0
  182. package/styles/core/tokens/_alias-object-container.scss +20 -0
  183. package/styles/core/tokens/_alias-object-opacity.scss +15 -0
  184. package/styles/core/tokens/_alias-object-shadow.scss +17 -0
  185. package/styles/core/tokens/_alias-status.scss +34 -0
  186. package/styles/core/tokens/_alias-typography.scss +101 -0
  187. package/styles/core/tokens/_alias-utility.scss +38 -0
  188. package/styles/core/tokens/_alias-viz-colors.scss +170 -0
  189. package/styles/core/tokens/_global-animation.scss +32 -0
  190. package/styles/core/tokens/_global-colors.scss +249 -0
  191. package/styles/core/tokens/_global-space.scss +52 -0
  192. package/styles/core/tokens/_internal-scale.scss +14 -0
  193. package/styles/core/tokens/_properties.tokens.scss +21 -0
  194. package/styles/core/tokens/_variables.tokens.scss +770 -0
  195. package/styles/core/typography/_legacy-typography.scss +328 -0
  196. package/styles/core/typography/_mixins.typography.scss +18 -0
  197. package/styles/core/typography/_typography.scss +321 -0
  198. package/styles/variables/_properties.density.scss +223 -0
  199. package/styles/variables/_properties.global.scss +51 -0
  200. package/styles/variables/_properties.layout.scss +21 -0
  201. package/styles/variables/_properties.scss +11 -0
  202. package/styles/variables/_properties.typography.scss +164 -0
  203. package/styles/variables/_variables.density.scss +114 -0
  204. package/styles/variables/_variables.global.scss +82 -0
  205. package/styles/variables/_variables.layout.scss +37 -0
  206. package/styles/variables/_variables.scss +11 -0
  207. package/styles/variables/_variables.typography.scss +156 -0
  208. package/timeline/_properties.timeline.scss +38 -0
  209. package/timeline/_timeline.clarity.scss +172 -0
  210. package/timeline/_variables.timeline.scss +29 -0
  211. package/typography/_code.scss +36 -0
  212. package/typography/_font-metropolis.scss +45 -0
  213. package/typography/_lists.scss +81 -0
  214. package/typography/_typography.scss +322 -0
  215. package/utils/animations/_animations.clarity.scss +44 -0
  216. package/utils/animations/_mixins.animations.scss +33 -0
  217. package/wizard/_properties.wizard.scss +53 -0
  218. package/wizard/_variables.wizard.scss +58 -0
  219. package/wizard/_wizard.clarity.scss +688 -0
@@ -0,0 +1,228 @@
1
+ /*
2
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
3
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
4
+ * This software is released under MIT license.
5
+ * The full license information can be found in LICENSE in the root directory of this project.
6
+ */
7
+
8
+ @use '../../styles/mixins';
9
+ @use 'mixins.forms' as forms-mixins;
10
+ @use '../../styles/core/tokens/variables.tokens' as tokens;
11
+ @use 'variables.forms' as forms-variables;
12
+ @use '../../styles/variables/variables.density' as density;
13
+
14
+ @include mixins.exports('forms.containers') {
15
+ .clr-form-control {
16
+ margin-top: density.$clr-base-vertical-offset-2xl;
17
+ display: flex;
18
+ flex-direction: column;
19
+ align-items: flex-start;
20
+ }
21
+
22
+ .clr-form-control-disabled {
23
+ color: forms-variables.$clr-forms-text-disabled-color;
24
+
25
+ label,
26
+ .clr-control-label {
27
+ color: forms-variables.$clr-forms-label-disabled-color;
28
+ }
29
+
30
+ .clr-input,
31
+ .clr-textarea,
32
+ .clr-select,
33
+ .clr-number-input {
34
+ color: forms-variables.$clr-forms-text-disabled-color;
35
+ border-bottom-color: forms-variables.$clr-forms-border-disabled-color;
36
+ }
37
+
38
+ input[type='range']::-webkit-slider-thumb,
39
+ input[type='range']::-moz-range-thumb {
40
+ background-color: var(
41
+ --clr-forms-range-progress-fill-color-disabled,
42
+ forms-variables.$clr-forms-range-progress-fill-color-disabled
43
+ );
44
+ }
45
+
46
+ .clr-subtext {
47
+ color: forms-variables.$clr-forms-subtext-disabled-color;
48
+ }
49
+ }
50
+
51
+ .clr-form-control-multi {
52
+ flex-flow: row wrap;
53
+
54
+ .clr-control-label {
55
+ width: 100%;
56
+ }
57
+ }
58
+
59
+ .clr-control-label {
60
+ display: block;
61
+ color: forms-variables.$clr-forms-label-color;
62
+ padding-top: density.$clr-base-vertical-offset-xs;
63
+ padding-bottom: density.$clr-base-vertical-offset-xs;
64
+
65
+ @include mixins.generate-typography-token(
66
+ 'SECONDARY-13-SB-CPT',
67
+ (
68
+ font-weight: forms-variables.$clr-forms-label-font-weight,
69
+ )
70
+ );
71
+ }
72
+
73
+ .clr-control-container {
74
+ @include mixins.generate-typography-token('SECONDARY-13-RG-EXP');
75
+ }
76
+
77
+ .clr-control-inline {
78
+ @include forms-mixins.form-inline-input(true);
79
+
80
+ .clr-checkbox-wrapper,
81
+ .clr-radio-wrapper {
82
+ padding-top: 0;
83
+ }
84
+
85
+ .clr-toggle-wrapper {
86
+ margin-top: 0;
87
+ }
88
+ }
89
+
90
+ .clr-subtext {
91
+ display: block;
92
+
93
+ @include mixins.generate-typography-token('CAPTION-LG-11-STD');
94
+
95
+ color: forms-variables.$clr-forms-subtext-color;
96
+ margin-top: density.$clr-base-gap-xs;
97
+
98
+ &.error {
99
+ color: forms-variables.$clr-forms-invalid-text-color;
100
+
101
+ .clr-validate-icon {
102
+ display: inline-block;
103
+ color: forms-variables.$clr-forms-invalid-color;
104
+ fill: forms-variables.$clr-forms-invalid-color;
105
+ }
106
+ }
107
+
108
+ &.success {
109
+ color: forms-variables.$clr-forms-valid-text-color;
110
+
111
+ .clr-validate-icon {
112
+ display: inline-block;
113
+ color: forms-variables.$clr-forms-valid-color;
114
+ fill: forms-variables.$clr-forms-valid-color;
115
+ }
116
+ }
117
+ }
118
+
119
+ .clr-subtext-wrapper {
120
+ flex-basis: 100%;
121
+ display: none;
122
+ align-items: flex-start;
123
+ gap: density.$clr-base-gap-xs;
124
+ margin-top: density.$clr-base-gap-xs;
125
+
126
+ &:not(.success, .error) {
127
+ display: flex;
128
+ }
129
+
130
+ .clr-subtext {
131
+ margin: 0;
132
+ }
133
+ }
134
+
135
+ .clr-validate-icon {
136
+ @include mixins.min-equilateral(forms-variables.$clr-forms-icon-size);
137
+
138
+ display: none;
139
+ }
140
+
141
+ .clr-success .clr-subtext-wrapper.success {
142
+ display: flex;
143
+
144
+ &,
145
+ .clr-subtext {
146
+ color: forms-variables.$clr-forms-valid-text-color;
147
+ }
148
+
149
+ .clr-validate-icon {
150
+ display: inline-block;
151
+ color: forms-variables.$clr-forms-valid-color;
152
+ fill: forms-variables.$clr-forms-valid-color;
153
+ }
154
+ }
155
+
156
+ .clr-error .clr-subtext-wrapper.error {
157
+ display: flex;
158
+
159
+ &,
160
+ .clr-subtext {
161
+ color: forms-variables.$clr-forms-invalid-text-color;
162
+ }
163
+
164
+ .clr-validate-icon {
165
+ display: inline-block;
166
+ color: forms-variables.$clr-forms-invalid-color;
167
+ fill: forms-variables.$clr-forms-invalid-color;
168
+ }
169
+ }
170
+
171
+ .clr-form-horizontal {
172
+ .clr-form-control > .clr-control-label,
173
+ .clr-form-control > .clr-form-control.clr-form-control-multi .clr-control-label {
174
+ width: calc(32 * #{forms-variables.$clr-forms-baseline});
175
+ flex-shrink: 0;
176
+ }
177
+
178
+ &.clr-row .clr-control-label {
179
+ width: auto;
180
+ }
181
+
182
+ .clr-form-control {
183
+ display: flex;
184
+ flex-direction: row;
185
+ }
186
+ }
187
+
188
+ .clr-form-compact {
189
+ .clr-form-control > .clr-control-label {
190
+ width: calc(32 * #{forms-variables.$clr-forms-baseline});
191
+ min-width: calc(32 * #{forms-variables.$clr-forms-baseline});
192
+ }
193
+
194
+ .clr-form-control.clr-row > .clr-control-label {
195
+ width: auto;
196
+ min-width: auto;
197
+ }
198
+
199
+ .clr-form-control {
200
+ display: flex;
201
+ flex-direction: row;
202
+ margin-top: density.$clr-base-vertical-offset-l;
203
+ }
204
+
205
+ .clr-control-container {
206
+ display: flex;
207
+ flex-flow: row wrap;
208
+ align-items: center;
209
+ }
210
+
211
+ .clr-subtext {
212
+ display: inline-block;
213
+ align-self: flex-start;
214
+ margin-left: density.$clr-base-gap-s;
215
+ }
216
+
217
+ .clr-subtext-wrapper {
218
+ flex-basis: auto;
219
+ flex-direction: row;
220
+ align-self: flex-start;
221
+ margin-left: density.$clr-base-gap-s;
222
+
223
+ .clr-subtext {
224
+ margin: 0;
225
+ }
226
+ }
227
+ }
228
+ }
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
3
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
4
+ * This software is released under MIT license.
5
+ * The full license information can be found in LICENSE in the root directory of this project.
6
+ */
7
+
8
+ @use 'sass:map';
9
+ @use '../../styles/mixins';
10
+ @use '../../styles/variables/variables';
11
+ @use 'variables.forms' as forms-variables;
12
+ @use '../../styles/variables/variables.density' as density;
13
+ @use '../../styles/core/tokens/variables.tokens' as tokens;
14
+
15
+ input[clrDatalistInput] {
16
+ position: relative;
17
+
18
+ &::-webkit-calendar-picker-indicator {
19
+ opacity: 0;
20
+ cursor: text;
21
+ }
22
+ }
23
+
24
+ .clr-input-group {
25
+ input[clrDatalistInput] {
26
+ //Moves the .clr-datalist-caret (arrow) to the back so that clicking over it activates
27
+ //the dropdown.
28
+ z-index: map.get(variables.$clr-layers, datalist-box);
29
+ }
30
+
31
+ .clr-datalist-caret {
32
+ color: forms-variables.$clr-forms-datalist-caret-color;
33
+ cursor: pointer;
34
+ margin: density.$clr-base-vertical-offset-xs density.$clr-base-horizontal-offset-xs;
35
+
36
+ @include mixins.equilateral(forms-variables.$clr-forms-datalist-caret-icon-size);
37
+ }
38
+ }
39
+
40
+ .clr-form-control-disabled .clr-datalist-caret {
41
+ color: forms-variables.$clr-forms-datalist-caret-disabled-color;
42
+ }
43
+
44
+ // Keeps the browser added datalist toggle on the right side of the input underline
45
+ clr-datalist-container .clr-input-group {
46
+ padding-right: 0;
47
+ }
@@ -0,0 +1,134 @@
1
+ /*
2
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
3
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
4
+ * This software is released under MIT license.
5
+ * The full license information can be found in LICENSE in the root directory of this project.
6
+ */
7
+
8
+ @use 'sass:map';
9
+ @use '../../styles/mixins';
10
+ @use '../../styles/variables/variables';
11
+ @use '../../styles/variables/variables.density' as density;
12
+ @use 'variables.forms' as forms-variables;
13
+
14
+ @include mixins.exports('forms.file-input') {
15
+ .clr-file-input-wrapper {
16
+ display: flex;
17
+ position: relative;
18
+ gap: density.$clr-base-gap-xs;
19
+
20
+ .clr-control-label {
21
+ padding: 0;
22
+ }
23
+
24
+ .clr-file-input {
25
+ @include mixins.equilateral(0);
26
+
27
+ opacity: 0;
28
+ overflow: hidden;
29
+ position: absolute;
30
+ z-index: -1;
31
+ }
32
+
33
+ .clr-file-input-browse-button,
34
+ .clr-file-input-clear-button {
35
+ margin: 0;
36
+ }
37
+
38
+ .clr-file-input-clear-button {
39
+ padding: 0;
40
+ min-width: unset;
41
+ border: 0;
42
+
43
+ cds-icon:not([size]),
44
+ clr-icon:not([size]) {
45
+ @include mixins.equilateral(density.$clr-base-icon-size-l);
46
+ }
47
+ }
48
+
49
+ .clr-file-input-browse-button-text {
50
+ overflow: hidden;
51
+ text-overflow: ellipsis;
52
+ }
53
+ }
54
+
55
+ .clr-form-compact .clr-file-input-wrapper {
56
+ margin-top: 0;
57
+ }
58
+
59
+ .clr-form-horizontal .clr-file-input-wrapper {
60
+ @media screen and (min-width: map.get(variables.$clr-grid-breakpoints, md)) {
61
+ margin-top: 0;
62
+ }
63
+ }
64
+
65
+ .clr-file-list {
66
+ display: flex;
67
+ flex-direction: column;
68
+ gap: density.$clr-base-gap-s;
69
+
70
+ .clr-file-list-item {
71
+ max-width: mixins.baselinePx(500);
72
+
73
+ &:first-of-type {
74
+ margin-top: density.$clr-base-gap-s;
75
+ }
76
+
77
+ &.clr-success .clr-validate-icon {
78
+ color: forms-variables.$clr-forms-valid-color;
79
+ fill: forms-variables.$clr-forms-valid-color;
80
+ }
81
+
82
+ &.clr-error .clr-validate-icon {
83
+ color: forms-variables.$clr-forms-invalid-color;
84
+ fill: forms-variables.$clr-forms-invalid-color;
85
+ }
86
+ }
87
+
88
+ .clr-file-label-and-status-icon {
89
+ display: inline-flex;
90
+ align-items: center;
91
+ }
92
+
93
+ .clr-file-label {
94
+ white-space: wrap;
95
+ padding-right: density.$clr-base-horizontal-offset-xs;
96
+ margin-bottom: 0;
97
+ margin-right: density.$clr-base-gap-xs;
98
+ border-radius: density.$clr-base-border-radius-l;
99
+ }
100
+
101
+ .clr-file-clear-button {
102
+ margin: 0;
103
+ padding: 0;
104
+
105
+ @include mixins.min-equilateral(density.$clr-base-icon-size-s);
106
+
107
+ cds-icon,
108
+ clr-icon {
109
+ margin: 0;
110
+ }
111
+ }
112
+ }
113
+
114
+ .clr-form-compact {
115
+ .clr-file-list-item {
116
+ display: flex;
117
+ flex-wrap: wrap;
118
+ align-items: center;
119
+ gap: density.$clr-base-gap-xs;
120
+ max-width: unset;
121
+
122
+ .clr-subtext {
123
+ margin: 0;
124
+ align-self: unset;
125
+ padding: 0;
126
+ }
127
+ }
128
+
129
+ .clr-file-list-break {
130
+ flex-basis: 100%;
131
+ height: 0;
132
+ }
133
+ }
134
+ }
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
3
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
4
+ * This software is released under MIT license.
5
+ * The full license information can be found in LICENSE in the root directory of this project.
6
+ */
7
+
8
+ /*
9
+ * These styles are not documented and are deprecated in favor in of _file-input.clarity.scss.
10
+ * The file input component uses .clr-file-input-wrapper instead due to differences from these styles.
11
+ */
12
+
13
+ @use '../../styles/mixins';
14
+ @use '../../styles/variables/variables.global';
15
+ @use 'mixins.forms' as forms-mixins;
16
+ @use 'variables.forms' as forms-variables;
17
+
18
+ @include mixins.exports('forms.file') {
19
+ .clr-file-wrapper {
20
+ @include forms-mixins.form-flatten-validate-text();
21
+
22
+ position: relative;
23
+
24
+ .clr-control-label {
25
+ padding: 0;
26
+ }
27
+
28
+ .btn {
29
+ margin: 0;
30
+ }
31
+ }
32
+
33
+ .clr-file {
34
+ @include mixins.equilateral(0);
35
+
36
+ opacity: 0;
37
+ overflow: hidden;
38
+ position: absolute;
39
+ z-index: -1;
40
+ }
41
+
42
+ .clr-form-compact .clr-file-wrapper {
43
+ @include forms-mixins.form-flatten-compact-adjustments();
44
+
45
+ margin-top: 0;
46
+
47
+ & ~ .clr-subtext,
48
+ .clr-control-label {
49
+ margin-top: 0;
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,87 @@
1
+ /*
2
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
3
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
4
+ * This software is released under MIT license.
5
+ * The full license information can be found in LICENSE in the root directory of this project.
6
+ */
7
+
8
+ @use '../../styles/mixins';
9
+ @use '../../styles/core/tokens/variables.tokens' as tokens;
10
+ @use '../../styles/variables/variables.density' as density;
11
+ @use 'variables.forms' as forms-variables;
12
+
13
+ @include mixins.exports('forms.wrappers') {
14
+ .clr-form {
15
+ $widthSize: calc(100% - #{forms-variables.$clr-forms-icon-size});
16
+
17
+ padding: density.$clr-base-vertical-offset-s density.$clr-base-horizontal-offset-s;
18
+
19
+ &-full-width {
20
+ .clr-form-control {
21
+ .clr-control-container,
22
+ .clr-select-wrapper,
23
+ .clr-input-wrapper,
24
+ .clr-number-input-wrapper,
25
+ .clr-combobox {
26
+ width: $widthSize;
27
+ }
28
+
29
+ .clr-combobox-wrapper,
30
+ .clr-textarea-wrapper,
31
+ .clr-input-group,
32
+ input,
33
+ textarea,
34
+ select {
35
+ width: 100%;
36
+ }
37
+
38
+ .clr-combobox {
39
+ display: inline-flex;
40
+ }
41
+ }
42
+
43
+ &.clr-form-compact {
44
+ .clr-form-control {
45
+ .clr-input-wrapper,
46
+ .clr-number-input-wrapper,
47
+ .clr-select-wrapper,
48
+ .clr-multiselect-wrapper {
49
+ display: inline-flex;
50
+ }
51
+ }
52
+
53
+ .clr-control-container {
54
+ flex-wrap: nowrap;
55
+ }
56
+
57
+ .clr-subtext {
58
+ flex: 0 0 auto;
59
+ }
60
+ }
61
+
62
+ &:not(.clr-form-compact) .clr-form-control {
63
+ .clr-error .clr-select-wrapper::after,
64
+ .clr-success .clr-select-wrapper::after {
65
+ right: forms-variables.$clr-forms-baseline;
66
+ }
67
+
68
+ .clr-control-container:not(.clr-error, .clr-success) textarea {
69
+ width: $widthSize;
70
+ }
71
+ }
72
+ }
73
+ }
74
+
75
+ .clr-form-group {
76
+ padding: density.$clr-base-vertical-offset-s density.$clr-base-horizontal-offset-s;
77
+ }
78
+
79
+ .clr-required-mark::after {
80
+ content: '*';
81
+ color: forms-variables.$clr-forms-invalid-color;
82
+ fill: forms-variables.$clr-forms-invalid-color;
83
+
84
+ // using margin as gap
85
+ margin-left: density.$clr-base-gap-xs;
86
+ }
87
+ }
@@ -0,0 +1,118 @@
1
+ /*
2
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
3
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
4
+ * This software is released under MIT license.
5
+ * The full license information can be found in LICENSE in the root directory of this project.
6
+ */
7
+
8
+ @use '../../styles/mixins';
9
+ @use 'mixins.forms' as forms-mixins;
10
+ @use 'variables.forms' as forms-variables;
11
+ @use '../../styles/variables/variables.density' as density;
12
+ @use '../../styles/core/tokens/variables.tokens' as tokens;
13
+
14
+ @include mixins.exports('forms.input-group') {
15
+ .clr-input-group {
16
+ @include forms-mixins.form-fields-appearance();
17
+ @include forms-mixins.input-border-bottom-animation();
18
+
19
+ position: relative;
20
+ max-width: 100%;
21
+ max-height: forms-variables.$clr-forms-input-wrapper-height;
22
+ padding-right: density.$clr-base-horizontal-offset-xs;
23
+
24
+ &.clr-focus {
25
+ width: auto;
26
+ }
27
+
28
+ .clr-input {
29
+ background: none;
30
+ border: none;
31
+ margin-right: 0;
32
+ max-width: 100%;
33
+
34
+ &:not([readonly]):focus {
35
+ background-size: 0;
36
+ border: 0;
37
+ }
38
+ }
39
+
40
+ /* handle case when select is used without clr-select-wrapper */
41
+ select {
42
+ border: none;
43
+ }
44
+
45
+ .clr-select-wrapper select,
46
+ .clr-multiselect-wrapper select {
47
+ border: none;
48
+ }
49
+
50
+ .clr-input-group-addon {
51
+ color: forms-variables.$clr-forms-subtext-color;
52
+ }
53
+
54
+ .clr-input-group-actions {
55
+ display: inline-flex;
56
+ align-items: center;
57
+ }
58
+
59
+ .clr-input-group-icon-action {
60
+ @include mixins.clr-no-styles-button();
61
+
62
+ padding: 0 density.$clr-base-horizontal-offset-s;
63
+ cursor: pointer;
64
+
65
+ cds-icon,
66
+ clr-icon {
67
+ fill: forms-variables.$clr-forms-icon-color;
68
+
69
+ &:not([size]) {
70
+ @include mixins.equilateral(var(--clr-forms-input-group-icon-action-size));
71
+ }
72
+ }
73
+ }
74
+ }
75
+
76
+ .clr-error .clr-input-group {
77
+ border-bottom-color: forms-variables.$clr-forms-invalid-color;
78
+
79
+ @include forms-mixins.input-border-bottom-animation(forms-variables.$clr-forms-invalid-color);
80
+ }
81
+
82
+ .clr-success .clr-input-group {
83
+ border-bottom-color: forms-variables.$clr-forms-valid-color;
84
+
85
+ @include forms-mixins.input-border-bottom-animation(forms-variables.$clr-forms-valid-color);
86
+ }
87
+
88
+ .clr-form-control-disabled {
89
+ .clr-input-group {
90
+ border-bottom-color: forms-variables.$clr-forms-border-disabled-color;
91
+ }
92
+
93
+ .clr-input-group-icon-action {
94
+ color: forms-variables.$clr-forms-text-disabled-color;
95
+ cursor: not-allowed;
96
+
97
+ cds-icon,
98
+ clr-icon {
99
+ fill: forms-variables.$clr-forms-input-group-icon-disabled-color;
100
+ }
101
+ }
102
+ }
103
+
104
+ .clr-input-group:has(input[readonly]),
105
+ .clr-form-control-readonly .clr-input-group {
106
+ border: none;
107
+ background: transparent;
108
+
109
+ .clr-input-group-actions {
110
+ display: none;
111
+ }
112
+ }
113
+
114
+ .clr-form-horizontal .clr-input-group {
115
+ max-width: 100%;
116
+ padding-right: 0;
117
+ }
118
+ }