@infonomic/uikit 5.27.0 → 5.28.0

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 (188) hide show
  1. package/dist/components/accordion/accordion.js +5 -5
  2. package/dist/components/accordion/accordion.module.css +11 -5
  3. package/dist/components/accordion/accordion_module.css +7 -7
  4. package/dist/components/avatar/avatar.d.ts.map +1 -1
  5. package/dist/components/avatar/avatar.js +5 -4
  6. package/dist/components/avatar/avatar.module.css +17 -11
  7. package/dist/components/avatar/avatar_module.css +6 -6
  8. package/dist/components/badge/badge.js +1 -1
  9. package/dist/components/badge/badge.module.css +8 -8
  10. package/dist/components/badge/badge_module.css +8 -8
  11. package/dist/components/button/button-group.module.css +5 -3
  12. package/dist/components/button/button-group_module.css +2 -2
  13. package/dist/components/button/button.js +1 -1
  14. package/dist/components/button/button.module.css +50 -50
  15. package/dist/components/button/button_module.css +38 -38
  16. package/dist/components/button/control-buttons.js +1 -1
  17. package/dist/components/button/control-buttons.module.css +6 -2
  18. package/dist/components/button/control-buttons_module.css +1 -1
  19. package/dist/components/button/copy-button.d.ts.map +1 -1
  20. package/dist/components/button/copy-button.js +2 -2
  21. package/dist/components/button/copy-button.module.css +14 -13
  22. package/dist/components/button/copy-button_module.css +7 -7
  23. package/dist/components/card/card.js +6 -6
  24. package/dist/components/card/card.module.css +10 -10
  25. package/dist/components/card/card_module.css +10 -10
  26. package/dist/components/chips/chip.js +5 -5
  27. package/dist/components/chips/chip.module.css +49 -45
  28. package/dist/components/chips/chip_module.css +35 -35
  29. package/dist/components/container/container.d.ts.map +1 -1
  30. package/dist/components/container/container.js +1 -1
  31. package/dist/components/container/container.module.css +14 -10
  32. package/dist/components/container/container_module.css +4 -4
  33. package/dist/components/dropdown/dropdown.js +8 -8
  34. package/dist/components/dropdown/dropdown.module.css +18 -11
  35. package/dist/components/dropdown/dropdown_module.css +8 -9
  36. package/dist/components/forms/checkbox.js +5 -5
  37. package/dist/components/forms/checkbox.module.css +62 -33
  38. package/dist/components/forms/checkbox_module.css +26 -26
  39. package/dist/components/forms/error-text.module.css +8 -7
  40. package/dist/components/forms/error-text_module.css +1 -1
  41. package/dist/components/forms/help-text.js +1 -1
  42. package/dist/components/forms/help-text.module.css +8 -7
  43. package/dist/components/forms/help-text_module.css +1 -1
  44. package/dist/components/forms/input-adornment.js +1 -1
  45. package/dist/components/forms/input-adornment.module.css +10 -9
  46. package/dist/components/forms/input-adornment_module.css +3 -3
  47. package/dist/components/forms/input.js +5 -5
  48. package/dist/components/forms/input.module.css +50 -49
  49. package/dist/components/forms/input_module.css +37 -37
  50. package/dist/components/forms/label.module.css +9 -8
  51. package/dist/components/forms/label_module.css +2 -2
  52. package/dist/components/forms/radio-group.js +1 -1
  53. package/dist/components/forms/radio-group.module.css +44 -24
  54. package/dist/components/forms/radio-group_module.css +42 -15
  55. package/dist/components/forms/select.js +3 -3
  56. package/dist/components/forms/select.module.css +23 -14
  57. package/dist/components/forms/select_module.css +17 -6
  58. package/dist/components/forms/text-area.js +1 -1
  59. package/dist/components/forms/text-area.module.css +12 -12
  60. package/dist/components/forms/text-area_module.css +2 -2
  61. package/dist/components/notifications/alert.js +10 -10
  62. package/dist/components/notifications/alert.module.css +39 -22
  63. package/dist/components/notifications/alert_module.css +19 -15
  64. package/dist/components/notifications/toast.js +5 -5
  65. package/dist/components/notifications/toast.module.css +53 -24
  66. package/dist/components/notifications/toast_module.css +66 -13
  67. package/dist/components/overlay/overlay.module.css +14 -6
  68. package/dist/components/overlay/overlay_module.css +4 -4
  69. package/dist/components/pager/pagination.js +2 -2
  70. package/dist/components/pager/pagination.module.css +12 -11
  71. package/dist/components/pager/pagination_module.css +18 -2
  72. package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
  73. package/dist/components/scroll-area/scroll-area.js +7 -7
  74. package/dist/components/scroll-area/scroll-area.module.css +17 -11
  75. package/dist/components/scroll-area/scroll-area_module.css +9 -9
  76. package/dist/components/scroll-to-top/scroll-to-top.js +2 -2
  77. package/dist/components/scroll-to-top/scroll-to-top.module.css +16 -14
  78. package/dist/components/scroll-to-top/scroll-to-top_module.css +9 -9
  79. package/dist/components/section/section.d.ts.map +1 -1
  80. package/dist/components/section/section.js +1 -1
  81. package/dist/components/section/section.module.css +8 -7
  82. package/dist/components/section/section_module.css +1 -1
  83. package/dist/components/shimmer/shimmer.module.css +14 -6
  84. package/dist/components/shimmer/shimmer_module.css +6 -6
  85. package/dist/components/table/table.js +8 -8
  86. package/dist/components/table/table.module.css +29 -14
  87. package/dist/components/table/table_module.css +25 -13
  88. package/dist/components/tabs/tabs.js +4 -4
  89. package/dist/components/tabs/tabs.module.css +15 -10
  90. package/dist/components/tabs/tabs_module.css +9 -9
  91. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  92. package/dist/components/tooltip/tooltip.js +3 -2
  93. package/dist/components/tooltip/tooltip.module.css +11 -10
  94. package/dist/components/tooltip/tooltip_module.css +2 -2
  95. package/dist/styles/components-vanilla.css +1 -1
  96. package/dist/widgets/datepicker/datepicker.module.css +2 -2
  97. package/dist/widgets/datepicker/datepicker.module.js +0 -1
  98. package/dist/widgets/datepicker/datepicker_module.css +1 -1
  99. package/dist/widgets/drawer/drawer-container.js +1 -1
  100. package/dist/widgets/drawer/drawer-content.js +1 -1
  101. package/dist/widgets/drawer/drawer-header.js +1 -1
  102. package/dist/widgets/drawer/drawer-top-actions.js +1 -1
  103. package/dist/widgets/drawer/drawer-wrapper.js +1 -1
  104. package/dist/widgets/drawer/drawer.module.css +37 -16
  105. package/dist/widgets/drawer/drawer_module.css +63 -5
  106. package/dist/widgets/modal/modal-actions.js +1 -1
  107. package/dist/widgets/modal/modal-container.js +1 -1
  108. package/dist/widgets/modal/modal-content.js +1 -1
  109. package/dist/widgets/modal/modal-header.js +1 -1
  110. package/dist/widgets/modal/modal-wrapper.d.ts.map +1 -1
  111. package/dist/widgets/modal/modal-wrapper.js +2 -1
  112. package/dist/widgets/modal/modal.module.css +18 -8
  113. package/dist/widgets/modal/modal_module.css +14 -6
  114. package/dist/widgets/timeline/timeline.module.css +28 -16
  115. package/dist/widgets/timeline/timeline_module.css +15 -9
  116. package/package.json +17 -17
  117. package/src/components/accordion/accordion.module.css +11 -5
  118. package/src/components/accordion/accordion.tsx +5 -5
  119. package/src/components/avatar/avatar.module.css +17 -11
  120. package/src/components/avatar/avatar.tsx +5 -4
  121. package/src/components/badge/badge.module.css +8 -8
  122. package/src/components/badge/badge.tsx +1 -1
  123. package/src/components/button/button-group.module.css +5 -3
  124. package/src/components/button/button.module.css +50 -50
  125. package/src/components/button/button.tsx +5 -5
  126. package/src/components/button/control-buttons.module.css +6 -2
  127. package/src/components/button/control-buttons.tsx +1 -1
  128. package/src/components/button/copy-button.module.css +14 -13
  129. package/src/components/button/copy-button.tsx +6 -2
  130. package/src/components/card/card.module.css +10 -10
  131. package/src/components/card/card.tsx +6 -6
  132. package/src/components/chips/chip.module.css +49 -45
  133. package/src/components/chips/chip.tsx +10 -10
  134. package/src/components/container/container.module.css +14 -10
  135. package/src/components/container/container.tsx +2 -2
  136. package/src/components/dropdown/dropdown.module.css +18 -11
  137. package/src/components/dropdown/dropdown.tsx +8 -8
  138. package/src/components/forms/checkbox.module.css +62 -33
  139. package/src/components/forms/checkbox.tsx +8 -8
  140. package/src/components/forms/error-text.module.css +8 -7
  141. package/src/components/forms/help-text.module.css +8 -7
  142. package/src/components/forms/help-text.tsx +1 -1
  143. package/src/components/forms/input-adornment.module.css +10 -9
  144. package/src/components/forms/input-adornment.tsx +2 -2
  145. package/src/components/forms/input.module.css +50 -49
  146. package/src/components/forms/input.tsx +8 -8
  147. package/src/components/forms/label.module.css +9 -8
  148. package/src/components/forms/radio-group.module.css +44 -24
  149. package/src/components/forms/radio-group.tsx +1 -1
  150. package/src/components/forms/select.module.css +23 -14
  151. package/src/components/forms/select.tsx +3 -3
  152. package/src/components/forms/text-area.module.css +12 -12
  153. package/src/components/forms/text-area.tsx +3 -3
  154. package/src/components/notifications/alert.module.css +39 -22
  155. package/src/components/notifications/alert.tsx +10 -10
  156. package/src/components/notifications/toast.module.css +53 -24
  157. package/src/components/notifications/toast.tsx +5 -5
  158. package/src/components/overlay/overlay.module.css +14 -6
  159. package/src/components/pager/pagination.module.css +12 -11
  160. package/src/components/pager/pagination.tsx +2 -2
  161. package/src/components/scroll-area/scroll-area.module.css +17 -11
  162. package/src/components/scroll-area/scroll-area.tsx +8 -8
  163. package/src/components/scroll-to-top/scroll-to-top.module.css +16 -14
  164. package/src/components/scroll-to-top/scroll-to-top.tsx +2 -2
  165. package/src/components/section/section.module.css +8 -7
  166. package/src/components/section/section.tsx +2 -2
  167. package/src/components/shimmer/shimmer.module.css +14 -6
  168. package/src/components/table/table.module.css +29 -14
  169. package/src/components/table/table.tsx +8 -8
  170. package/src/components/tabs/tabs.module.css +15 -10
  171. package/src/components/tabs/tabs.tsx +4 -4
  172. package/src/components/tooltip/tooltip.module.css +11 -10
  173. package/src/components/tooltip/tooltip.tsx +5 -2
  174. package/src/styles/components/loaders.css +1 -1
  175. package/src/widgets/datepicker/datepicker.module.css +2 -2
  176. package/src/widgets/drawer/drawer-container.tsx +1 -1
  177. package/src/widgets/drawer/drawer-content.tsx +1 -1
  178. package/src/widgets/drawer/drawer-header.tsx +1 -1
  179. package/src/widgets/drawer/drawer-top-actions.tsx +1 -1
  180. package/src/widgets/drawer/drawer-wrapper.tsx +1 -1
  181. package/src/widgets/drawer/drawer.module.css +37 -16
  182. package/src/widgets/modal/modal-actions.tsx +1 -1
  183. package/src/widgets/modal/modal-container.tsx +1 -1
  184. package/src/widgets/modal/modal-content.tsx +1 -1
  185. package/src/widgets/modal/modal-header.tsx +1 -1
  186. package/src/widgets/modal/modal-wrapper.tsx +2 -1
  187. package/src/widgets/modal/modal.module.css +18 -8
  188. package/src/widgets/timeline/timeline.module.css +28 -16
@@ -1,17 +1,20 @@
1
1
  @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
4
- infonomic-theme,
5
- infonomic-typography,
6
- infonomic-components;
2
+ infonomic-functional,
3
+ infonomic-utilities,
4
+ infonomic-theme,
5
+ infonomic-typography,
6
+ infonomic-components;
7
7
 
8
8
  @layer infonomic-components {
9
- .container {
9
+
10
+ .container,
11
+ :global(.infonomic-checkbox-container) {
10
12
  width: 100%;
11
13
  padding: 0;
12
14
  }
13
15
 
14
- .component {
16
+ .component,
17
+ :global(.infonomic-checkbox-component) {
15
18
  display: flex;
16
19
  width: 100%;
17
20
  padding: 0;
@@ -19,11 +22,13 @@
19
22
  gap: var(--gap-2);
20
23
  }
21
24
 
22
- .reverse {
25
+ .reverse,
26
+ :global(.infonomic-checkbox-reverse) {
23
27
  flex-direction: row-reverse;
24
28
  }
25
29
 
26
- .checkbox {
30
+ .checkbox,
31
+ :global(.infonomic-checkbox) {
27
32
  display: inline-flex;
28
33
  align-items: center;
29
34
  justify-content: center;
@@ -31,7 +36,8 @@
31
36
  transition: all var(--transition-normal);
32
37
  }
33
38
 
34
- .checkbox[data-state="checked"] {
39
+ .checkbox[data-state="checked"],
40
+ :global(.infonomic-checkbox)[data-state="checked"] {
35
41
  --ring-offset-color: var(--background);
36
42
  --ring-offset-shadow: var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color);
37
43
  --ring-shadow: var(--ring-inset) 0 0 0 calc(1px + var(--ring-offset-width)) var(--ring-color);
@@ -39,88 +45,105 @@
39
45
  }
40
46
 
41
47
  .checkbox:disabled,
42
- .checkbox[disabled] {
48
+ :global(.infonomic-checkbox):disabled,
49
+ .checkbox[disabled],
50
+ :global(.infonomic-checkbox)[disabled] {
43
51
  pointer-events: none;
44
52
  }
45
53
 
46
- .indicator {
54
+ .indicator,
55
+ :global(.infonomic-checkbox-indicator) {
47
56
  display: flex;
48
57
  align-items: center;
49
58
  justify-content: center;
50
59
  }
51
60
 
52
- .icon {
61
+ .icon,
62
+ :global(.infonomic-checkbox-icon) {
53
63
  width: 20px;
54
64
  height: 20px;
55
65
  color: var(--checkbox-icon-color);
56
66
  }
57
67
 
58
68
  /* Style for the "checked" state */
59
- .indicator[data-state="checked"] .icon {
69
+ .indicator[data-state="checked"] .icon,
70
+ :global(.infonomic-checkbox-indicator)[data-state="checked"] :global(.infonomic-checkbox-icon) {
60
71
  animation: checkBoxIn 0.3s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
61
72
  opacity: 1;
62
73
  transform: scale(1);
63
74
  }
64
75
 
65
76
  /* Style for the "unchecked" state */
66
- .indicator[data-state="unchecked"] .icon {
77
+ .indicator[data-state="unchecked"] .icon,
78
+ :global(.infonomic-checkbox-indicator)[data-state="unchecked"] :global(.infonomic-checkbox-icon) {
67
79
  animation: checkBoxOut 0.2s ease-in;
68
80
  opacity: 0;
69
81
  transform: scale(0.8);
70
82
  }
71
83
 
72
- .label {
84
+ .label,
85
+ :global(.infonomic-checkbox-label) {
73
86
  margin-left: 0.25rem;
74
87
  cursor: pointer;
75
88
  font-weight: 500;
76
89
  color: var(--label-color);
77
90
  }
78
91
 
79
- .checkbox:disabled ~ .label,
80
- .checkbox[disabled] ~ .label {
92
+ .checkbox:disabled~.label,
93
+ .checkbox[disabled]~.label,
94
+ :global(.infonomic-checkbox):disabled~:global(.infonomic-checkbox-label),
95
+ :global(.infonomic-checkbox)[disabled]~:global(.infonomic-checkbox-label) {
81
96
  pointer-events: none;
82
97
  }
83
98
 
84
- .errorText {
99
+ .errorText,
100
+ :global(.infonomic-dropdown-error-text) {
85
101
  margin-top: 0.25rem;
86
102
  font-size: 0.875rem;
87
103
  color: red;
88
104
  }
89
105
 
90
106
  /* Sizes */
91
- .sm {
107
+ .sm,
108
+ :global(.infonomic-checkbox-sm) {
92
109
  width: 18px;
93
110
  height: 18px;
94
111
  }
95
112
 
96
- .md {
113
+ .md,
114
+ :global(.infonomic-checkbox-md) {
97
115
  width: 20px;
98
116
  height: 20px;
99
117
  }
100
118
 
101
- .lg {
119
+ .lg,
120
+ :global(.infonomic-checkbox-lg) {
102
121
  width: 22px;
103
122
  height: 22px;
104
123
  }
105
124
 
106
125
  /* Variants */
107
- .outlined {
126
+ .outlined,
127
+ :global(.infonomic-checkbox-outlined) {
108
128
  border: 2px solid var(--checkbox-variant-outlined-border);
109
129
  --checkbox-icon-color: white;
110
130
  }
111
131
 
112
- .outlined[data-state="checked"] {
132
+ .outlined[data-state="checked"],
133
+ :global(.infonomic-checkbox-outlined)[data-state="checked"] {
113
134
  --ring-color: var(--checkbox-variant-outline-ring-color);
114
135
  background-color: var(--checkbox-variant-outlined);
115
136
  }
116
137
 
117
- .filled {
138
+ .filled,
139
+ :global(.infonomic-checkbox-filled) {
118
140
  background-color: var(--checkbox-variant-filled);
119
141
  --checkbox-icon-color: white;
120
142
  }
121
143
 
122
144
  /* Intents */
123
- .primary {
145
+ .primary,
146
+ :global(.infonomic-checkbox-primary) {
124
147
  --checkbox-variant-outlined-border: var(--fill-primary-strong);
125
148
  --checkbox-variant-outlined: var(--fill-primary-strong);
126
149
  --checkbox-variant-outlined-hover-border: var(--fill-primary-strong-hover);
@@ -129,7 +152,8 @@
129
152
  --checkbox-icon-color: var(--text-on-primary);
130
153
  }
131
154
 
132
- .secondary {
155
+ .secondary,
156
+ :global(.infonomic-checkbox-secondary) {
133
157
  --checkbox-variant-outlined-border: var(--fill-secondary-strong);
134
158
  --checkbox-variant-outlined: var(--fill-secondary-strong);
135
159
  --checkbox-variant-outlined-hover-border: var(--fill-secondary-strong-hover);
@@ -138,7 +162,8 @@
138
162
  --checkbox-icon-color: var(--text-on-secondary);
139
163
  }
140
164
 
141
- .noeffect {
165
+ .noeffect,
166
+ :global(.infonomic-checkbox-noeffect) {
142
167
  --checkbox-variant-outlined-border: var(--fill-noeffect-strong);
143
168
  --checkbox-variant-outlined: var(--fill-noeffect-strong);
144
169
  --checkbox-variant-outlined-hover-border: var(--fill-noeffect-strong-hover);
@@ -147,7 +172,8 @@
147
172
  --checkbox-icon-color: var(--text-on-noeffect);
148
173
  }
149
174
 
150
- .success {
175
+ .success,
176
+ :global(.infonomic-checkbox-success) {
151
177
  --checkbox-variant-outlined-border: var(--fill-success-strong);
152
178
  --checkbox-variant-outlined: var(--fill-success-strong);
153
179
  --checkbox-variant-outlined-hover-border: var(--fill-success-strong-hover);
@@ -156,7 +182,8 @@
156
182
  --checkbox-icon-color: var(--text-on-success);
157
183
  }
158
184
 
159
- .info {
185
+ .info,
186
+ :global(.infonomic-checkbox-info) {
160
187
  --checkbox-variant-outlined-border: var(--fill-info-strong);
161
188
  --checkbox-variant-outlined: var(--fill-info-strong);
162
189
  --checkbox-variant-outlined-hover-border: var(--fill-info-strong-hover);
@@ -165,7 +192,8 @@
165
192
  --checkbox-icon-color: var(--text-on-info);
166
193
  }
167
194
 
168
- .warning {
195
+ .warning,
196
+ :global(.infonomic-checkbox-warning) {
169
197
  --checkbox-variant-outlined-border: var(--fill-warning-strong);
170
198
  --checkbox-variant-outlined: var(--fill-warning-strong);
171
199
  --checkbox-variant-outlined-hover-border: var(--fill-warning-strong-hover);
@@ -174,7 +202,8 @@
174
202
  --checkbox-icon-color: var(--text-on-warning);
175
203
  }
176
204
 
177
- .danger {
205
+ .danger,
206
+ :global(.infonomic-checkbox-danger) {
178
207
  --checkbox-variant-outlined-border: var(--fill-danger-strong);
179
208
  --checkbox-variant-outlined: var(--fill-danger-strong);
180
209
  --checkbox-variant-outlined-hover-border: var(--fill-danger-strong-hover);
@@ -220,4 +249,4 @@
220
249
  transform: scale(0.8);
221
250
  }
222
251
  }
223
- }
252
+ }
@@ -53,9 +53,9 @@ export const Checkbox = function Checkbox({
53
53
  ref?: React.RefObject<HTMLButtonElement>
54
54
  }): React.JSX.Element {
55
55
  return (
56
- <div className={cx('checkbox-container', styles.container, containerClasses)}>
56
+ <div className={cx('infonomic-checkbox-container', styles.container, containerClasses)}>
57
57
  <div
58
- className={cx('checkbox-component', styles.component, componentClasses, {
58
+ className={cx('infonomic-checkbox-component', styles.component, componentClasses, {
59
59
  [styles.reverse]: reverse,
60
60
  })}
61
61
  >
@@ -64,10 +64,10 @@ export const Checkbox = function Checkbox({
64
64
  id={id}
65
65
  name={name}
66
66
  className={cx(
67
- 'checkbox',
68
- variant,
69
- size,
70
- intent,
67
+ 'infonomic-checkbox',
68
+ `infonomic-checkbox-${variant}`,
69
+ `infonomic-checkbox-${size}`,
70
+ `infonomic-checkbox-${intent}`,
71
71
  styles.checkbox,
72
72
  styles[variant],
73
73
  styles[size],
@@ -79,14 +79,14 @@ export const Checkbox = function Checkbox({
79
79
  >
80
80
  <CheckboxPrimitive.Indicator
81
81
  forceMount
82
- className={cx('checkbox-indicator', styles.indicator)}
82
+ className={cx('infonomic-checkbox-indicator', styles.indicator)}
83
83
  >
84
84
  <CheckIcon className={styles.icon} />
85
85
  </CheckboxPrimitive.Indicator>
86
86
  </CheckboxPrimitive.Root>
87
87
 
88
88
  {label != null && (
89
- <LabelPrimitive.Label htmlFor={id} className={cx(styles.label, labelClasses)}>
89
+ <LabelPrimitive.Label htmlFor={id} className={cx('infonomic-checkbox-label', styles.label, labelClasses)}>
90
90
  {label}
91
91
  </LabelPrimitive.Label>
92
92
  )}
@@ -1,14 +1,15 @@
1
1
  @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
4
- infonomic-theme,
5
- infonomic-typography,
6
- infonomic-components;
2
+ infonomic-functional,
3
+ infonomic-utilities,
4
+ infonomic-theme,
5
+ infonomic-typography,
6
+ infonomic-components;
7
7
 
8
8
  @layer infonomic-components {
9
+
9
10
  .text,
10
- :global(.error-text) {
11
+ :global(.infonomic-error-text) {
11
12
  font-size: 0.875rem;
12
13
  color: var(--error);
13
14
  }
14
- }
15
+ }
@@ -1,14 +1,15 @@
1
1
  @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
4
- infonomic-theme,
5
- infonomic-typography,
6
- infonomic-components;
2
+ infonomic-functional,
3
+ infonomic-utilities,
4
+ infonomic-theme,
5
+ infonomic-typography,
6
+ infonomic-components;
7
7
 
8
8
  @layer infonomic-components {
9
+
9
10
  .text,
10
- :global(.help-text) {
11
+ :global(.infonomic-help-text) {
11
12
  font-size: 0.875rem;
12
13
  color: var(--muted);
13
14
  }
14
- }
15
+ }
@@ -10,5 +10,5 @@ interface HelpTextProps {
10
10
  }
11
11
 
12
12
  export function HelpText({ className, text }: HelpTextProps): React.JSX.Element {
13
- return <p className={cx('help-text', styles.text, className)}>{text}</p>
13
+ return <p className={cx('infonomic-help-text', styles.text, className)}>{text}</p>
14
14
  }
@@ -1,13 +1,14 @@
1
1
  @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
4
- infonomic-theme,
5
- infonomic-typography,
6
- infonomic-components;
2
+ infonomic-functional,
3
+ infonomic-utilities,
4
+ infonomic-theme,
5
+ infonomic-typography,
6
+ infonomic-components;
7
7
 
8
8
  @layer infonomic-components {
9
+
9
10
  .adornment,
10
- :global(.input-adornment) {
11
+ :global(.infonomic-input-adornment) {
11
12
  display: flex;
12
13
  align-items: center;
13
14
  line-height: 0;
@@ -15,12 +16,12 @@
15
16
  }
16
17
 
17
18
  .start,
18
- :global(.input-adornment-start) {
19
+ :global(.infonomic-input-adornment-start) {
19
20
  justify-content: flex-start;
20
21
  }
21
22
 
22
23
  .end,
23
- :global(.input-adornment-end) {
24
+ :global(.infonomic-input-adornment-end) {
24
25
  justify-content: flex-end;
25
26
  }
26
- }
27
+ }
@@ -22,8 +22,8 @@ export function InputAdornment({
22
22
  return (
23
23
  <div
24
24
  className={cx(
25
- 'input-adornment',
26
- position,
25
+ 'infonomic-input-adornment',
26
+ `infonomic-input-adornment-${position}`,
27
27
  styles.adornment,
28
28
  { [styles.start]: position === 'start' },
29
29
  { [styles.end]: position === 'end' },
@@ -1,20 +1,21 @@
1
1
  @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
4
- infonomic-theme,
5
- infonomic-typography,
6
- infonomic-components;
2
+ infonomic-functional,
3
+ infonomic-utilities,
4
+ infonomic-theme,
5
+ infonomic-typography,
6
+ infonomic-components;
7
7
 
8
8
  @layer infonomic-components {
9
+
9
10
  .input-wrapper,
10
- :global(.input-wrapper) {
11
+ :global(.infonomic-input-wrapper) {
11
12
  display: flex;
12
13
  flex-direction: column;
13
14
  gap: var(--gap-1);
14
15
  }
15
16
 
16
17
  .input-container,
17
- :global(.input-container) {
18
+ :global(.infonomic-input-container) {
18
19
  position: relative;
19
20
  width: 100%;
20
21
  padding: 0;
@@ -24,7 +25,7 @@
24
25
  }
25
26
 
26
27
  .input,
27
- :global(.input) {
28
+ :global(.infonomic-input) {
28
29
  border: none;
29
30
  outline: none;
30
31
  font-weight: normal;
@@ -38,8 +39,8 @@
38
39
 
39
40
  .input:focus,
40
41
  .input:active,
41
- :global(.input):focus,
42
- :global(.input):active {
42
+ :global(.infonomic-input):focus,
43
+ :global(.infonomic-input):active {
43
44
  --ring-offset-color: var(--background);
44
45
  --ring-offset-shadow: var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color);
45
46
  --ring-shadow: var(--ring-inset) 0 0 0 calc(1px + var(--ring-offset-width)) var(--ring-color);
@@ -48,13 +49,13 @@
48
49
 
49
50
  .input:disabled,
50
51
  .input[disabled],
51
- :global(.input):disabled,
52
- :global(.input)[disabled] {
52
+ :global(.infonomic-input):disabled,
53
+ :global(.infonomic-input)[disabled] {
53
54
  pointer-events: none;
54
55
  }
55
56
 
56
57
  .label,
57
- :global(.input-label) {
58
+ :global(.infonomic-input-label) {
58
59
  font-size: 0.875rem;
59
60
  font-weight: 500;
60
61
  color: var(--label-color);
@@ -62,7 +63,7 @@
62
63
 
63
64
  /* Sizes */
64
65
  .sm,
65
- :global(.input-sm) {
66
+ :global(.infonomic-input-sm) {
66
67
  min-height: 32px;
67
68
  font-size: 0.875rem;
68
69
  line-height: 0;
@@ -70,7 +71,7 @@
70
71
  }
71
72
 
72
73
  .md,
73
- :global(.input-md) {
74
+ :global(.infonomic-input-md) {
74
75
  min-height: 38px;
75
76
  font-size: 1.1rem;
76
77
  line-height: 0;
@@ -78,7 +79,7 @@
78
79
  }
79
80
 
80
81
  .lg,
81
- :global(.input-lg) {
82
+ :global(.infonomic-input-lg) {
82
83
  min-height: 46px;
83
84
  font-size: 1.2rem;
84
85
  line-height: 0;
@@ -87,50 +88,50 @@
87
88
 
88
89
  .start-adornment,
89
90
  .end-adornment,
90
- :global(.input-start-adornment),
91
- :global(.input-end-adornment) {
91
+ :global(.infonomic-input-start-adornment),
92
+ :global(.infonomic-input-end-adornment) {
92
93
  position: absolute;
93
94
  display: flex;
94
95
  align-items: center;
95
96
  }
96
97
 
97
98
  .start-adornment,
98
- :global(.input-start-adornment) {
99
+ :global(.infonomic-input-start-adornment) {
99
100
  left: 5px;
100
101
  }
101
102
 
102
103
  .end-adornment,
103
- :global(.input-end-adornment) {
104
+ :global(.infonomic-input-end-adornment) {
104
105
  right: 5px;
105
106
  }
106
107
 
107
108
  .help-text,
108
- :global(.input-help-text) {
109
+ :global(.infonomic-input-help-text) {
109
110
  font-size: 0.75rem;
110
111
  color: var(--help-text-color);
111
112
  }
112
113
 
113
114
  /* Variants */
114
115
  .outlined,
115
- :global(.input-outlined) {
116
+ :global(.infonomic-input-outlined) {
116
117
  border: 1px solid var(--input-variant-outlined-border);
117
118
  background-color: transparent;
118
119
  }
119
120
 
120
121
  .outlined:hover,
121
- :global(.input-outlined):hover {
122
+ :global(.infonomic-input-outlined):hover {
122
123
  border: 1px solid var(--input-variant-outlined-hover-border);
123
124
  }
124
125
 
125
126
  .outlined:focus,
126
127
  .outlined:active,
127
- :global(.input-outlined):focus,
128
- :global(.input-outlined):active {
128
+ :global(.infonomic-input-outlined):focus,
129
+ :global(.infonomic-input-outlined):active {
129
130
  --ring-color: var(--input-variant-outline-ring-color);
130
131
  }
131
132
 
132
133
  .underlined,
133
- :global(.input-underlined) {
134
+ :global(.infonomic-input-underlined) {
134
135
  border-bottom: 1px solid var(--input-variant-underlined-border);
135
136
  border-radius: 0;
136
137
  gap: var(--gap-1);
@@ -139,79 +140,79 @@
139
140
 
140
141
  /* Sizes */
141
142
  .underlined.sm,
142
- :global(.input-underlined.input-sm) {
143
+ :global(.infonomic-input-underlined.input-sm) {
143
144
  padding: 0.25rem 0.1rem;
144
145
  min-height: 26px;
145
146
  }
146
147
 
147
148
  .underlined.md,
148
- :global(.input-underlined.input-md) {
149
+ :global(.infonomic-input-underlined.input-md) {
149
150
  padding: 0.25rem 0.1rem;
150
151
  min-height: 30px;
151
152
  }
152
153
 
153
154
  .underlined.lg,
154
- :global(.input-underlined.input-lg) {
155
+ :global(.infonomic-input-underlined.input-lg) {
155
156
  padding: 0 0.1rem;
156
157
  min-height: 34px;
157
158
  }
158
159
 
159
160
  .underlined:hover,
160
- :global(.input-underlined):hover {
161
+ :global(.infonomic-input-underlined):hover {
161
162
  border-bottom: 1px solid var(--input-variant-underlined-hover-border);
162
163
  }
163
164
 
164
165
  .filled,
165
- :global(.input-filled) {
166
+ :global(.infonomic-input-filled) {
166
167
  background-color: var(--input-variant-filled);
167
168
  }
168
169
 
169
170
  /* Error classes last, so that they override all
170
171
  of the above */
171
172
  .error,
172
- :global(.input-error) {
173
+ :global(.infonomic-input-error) {
173
174
  border: 1px solid var(--red-400);
174
175
  }
175
176
 
176
177
  .error:hover,
177
- :global(.input-error):hover {
178
+ :global(.infonomic-input-error):hover {
178
179
  border: 1px solid var(--red-400);
179
180
  }
180
181
 
181
182
  .error:focus,
182
183
  .error:active,
183
- :global(.input-error):focus,
184
- :global(.input-error):active {
184
+ :global(.infonomic-input-error):focus,
185
+ :global(.infonomic-input-error):active {
185
186
  --ring-color: var(--red-300);
186
187
  }
187
188
 
188
189
  .underlined.start-adornment-padding,
189
190
  .start-adornment-padding,
190
- :global(.input-underlined.input-start-adornment-padding),
191
- :global(.input-start-adornment-padding) {
191
+ :global(.infonomic-input-underlined.input-start-adornment-padding),
192
+ :global(.infonomic-input-start-adornment-padding) {
192
193
  padding-left: 2rem;
193
194
  }
194
195
 
195
196
  .underlined.end-adornment-padding,
196
197
  .end-adornment-padding,
197
- :global(.input-underlined.input-end-adornment-padding),
198
- :global(.input-end-adornment-padding) {
198
+ :global(.infonomic-input-underlined.input-end-adornment-padding),
199
+ :global(.infonomic-input-end-adornment-padding) {
199
200
  padding-right: 2rem;
200
201
  }
201
202
 
202
203
  .underlined.start-adornment,
203
- :global(.input-underlined.input-start-adornment) {
204
+ :global(.infonomic-input-underlined.input-start-adornment) {
204
205
  left: 0;
205
206
  }
206
207
 
207
208
  .underlined.end-adornment,
208
- :global(.input-underlined.input-end-adornment) {
209
+ :global(.infonomic-input-underlined.input-end-adornment) {
209
210
  right: 0;
210
211
  }
211
212
 
212
213
  /* Intents */
213
214
  .primary,
214
- :global(.input-primary) {
215
+ :global(.infonomic-input-primary) {
215
216
  --input-variant-outlined-border: var(--stroke-primary);
216
217
  --input-variant-outlined-hover-border: var(--stroke-primary-hover);
217
218
  --input-variant-outline-ring-color: var(--ring-primary);
@@ -221,7 +222,7 @@
221
222
  }
222
223
 
223
224
  .secondary,
224
- :global(.input-secondary) {
225
+ :global(.infonomic-input-secondary) {
225
226
  --input-variant-outlined-border: var(--stroke-secondary);
226
227
  --input-variant-outlined-hover-border: var(--stroke-secondary-hover);
227
228
  --input-variant-outline-ring-color: var(--ring-secondary);
@@ -231,7 +232,7 @@
231
232
  }
232
233
 
233
234
  .noeffect,
234
- :global(.input-noeffect) {
235
+ :global(.infonomic-input-noeffect) {
235
236
  --input-variant-outlined-border: var(--stroke-noeffect);
236
237
  --input-variant-outlined-hover-border: var(--stroke-noeffect-hover);
237
238
  --input-variant-outline-ring-color: var(--ring-noeffect);
@@ -241,7 +242,7 @@
241
242
  }
242
243
 
243
244
  .success,
244
- :global(.input-success) {
245
+ :global(.infonomic-input-success) {
245
246
  --input-variant-outlined-border: var(--stroke-success);
246
247
  --input-variant-outlined-hover-border: var(--stroke-success-hover);
247
248
  --input-variant-outline-ring-color: var(--ring-success);
@@ -251,7 +252,7 @@
251
252
  }
252
253
 
253
254
  .info,
254
- :global(.input-info) {
255
+ :global(.infonomic-input-info) {
255
256
  --input-variant-outlined-border: var(--stroke-info);
256
257
  --input-variant-outlined-hover-border: var(--stroke-info-hover);
257
258
  --input-variant-outline-ring-color: var(--ring-info);
@@ -261,7 +262,7 @@
261
262
  }
262
263
 
263
264
  .warning,
264
- :global(.input-warning) {
265
+ :global(.infonomic-input-warning) {
265
266
  --input-variant-outlined-border: var(--stroke-warning);
266
267
  --input-variant-outlined-hover-border: var(--stroke-warning-hover);
267
268
  --input-variant-outline-ring-color: var(--ring-warning);
@@ -271,7 +272,7 @@
271
272
  }
272
273
 
273
274
  .danger,
274
- :global(.input-danger) {
275
+ :global(.infonomic-input-danger) {
275
276
  --input-variant-outlined-border: var(--stroke-danger);
276
277
  --input-variant-outlined-hover-border: var(--stroke-danger-hover);
277
278
  --input-variant-outline-ring-color: var(--ring-danger);
@@ -281,4 +282,4 @@
281
282
  }
282
283
 
283
284
  /* Dark mode handled by semantic tokens in theme layer */
284
- }
285
+ }