@infonomic/uikit 6.8.2 → 6.9.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 (219) hide show
  1. package/README.md +183 -19
  2. package/dist/components/accordion/accordion.js +5 -5
  3. package/dist/components/accordion/accordion.module.css +11 -1
  4. package/dist/components/accordion/accordion_module.css +3 -1
  5. package/dist/components/avatar/avatar.module.css +9 -4
  6. package/dist/components/avatar/avatar_module.css +3 -1
  7. package/dist/components/badge/badge.d.ts +1 -1
  8. package/dist/components/badge/badge.module.css +9 -4
  9. package/dist/components/badge/badge_module.css +3 -1
  10. package/dist/components/button/button-group.d.ts +1 -1
  11. package/dist/components/button/button-group.module.css +11 -1
  12. package/dist/components/button/button-group_module.css +4 -2
  13. package/dist/components/button/button.module.css +9 -4
  14. package/dist/components/button/button_module.css +3 -1
  15. package/dist/components/button/combo-button.d.ts +1 -1
  16. package/dist/components/button/combo-button.module.css +11 -1
  17. package/dist/components/button/combo-button_module.css +3 -1
  18. package/dist/components/button/control-buttons.module.css +11 -1
  19. package/dist/components/button/control-buttons_module.css +3 -1
  20. package/dist/components/button/copy-button.module.css +9 -4
  21. package/dist/components/button/copy-button_module.css +3 -1
  22. package/dist/components/button/index.d.ts +5 -5
  23. package/dist/components/card/card.module.css +9 -4
  24. package/dist/components/card/card_module.css +3 -1
  25. package/dist/components/chips/chip.module.css +9 -4
  26. package/dist/components/chips/chip_module.css +3 -1
  27. package/dist/components/container/container.module.css +9 -4
  28. package/dist/components/container/container_module.css +6 -4
  29. package/dist/components/dropdown/dropdown.js +11 -11
  30. package/dist/components/dropdown/dropdown.module.css +9 -4
  31. package/dist/components/dropdown/dropdown_module.css +3 -1
  32. package/dist/components/hamburger/hamburger.module.css +9 -4
  33. package/dist/components/hamburger/hamburger_module.css +3 -1
  34. package/dist/components/inputs/autocomplete.module.css +9 -4
  35. package/dist/components/inputs/autocomplete_module.css +3 -1
  36. package/dist/components/inputs/calendar.module.css +9 -4
  37. package/dist/components/inputs/calendar_module.css +4 -2
  38. package/dist/components/inputs/checkbox-group.module.css +9 -4
  39. package/dist/components/inputs/checkbox-group_module.css +3 -1
  40. package/dist/components/inputs/checkbox.module.css +9 -4
  41. package/dist/components/inputs/checkbox_module.css +3 -1
  42. package/dist/components/inputs/error-text.module.css +9 -4
  43. package/dist/components/inputs/error-text_module.css +3 -1
  44. package/dist/components/inputs/help-text.module.css +9 -4
  45. package/dist/components/inputs/help-text_module.css +3 -1
  46. package/dist/components/inputs/input-adornment.module.css +9 -4
  47. package/dist/components/inputs/input-adornment_module.css +3 -1
  48. package/dist/components/inputs/input-password.d.ts +18 -2
  49. package/dist/components/inputs/input-password.d.ts.map +1 -1
  50. package/dist/components/inputs/input-password.js +19 -11
  51. package/dist/components/inputs/input-password.module.css +55 -0
  52. package/dist/components/inputs/input-password.module.js +5 -0
  53. package/dist/components/inputs/input-password_module.css +25 -0
  54. package/dist/components/inputs/input.d.ts +1 -1
  55. package/dist/components/inputs/input.module.css +9 -4
  56. package/dist/components/inputs/input_module.css +3 -1
  57. package/dist/components/inputs/label.module.css +9 -4
  58. package/dist/components/inputs/label_module.css +3 -1
  59. package/dist/components/inputs/radio-group.d.ts +1 -1
  60. package/dist/components/inputs/radio-group.module.css +9 -4
  61. package/dist/components/inputs/radio-group_module.css +3 -1
  62. package/dist/components/inputs/select.module.css +9 -4
  63. package/dist/components/inputs/select_module.css +3 -1
  64. package/dist/components/inputs/text-area.module.css +9 -4
  65. package/dist/components/inputs/text-area_module.css +3 -1
  66. package/dist/components/notifications/alert.module.css +9 -4
  67. package/dist/components/notifications/alert_module.css +4 -2
  68. package/dist/components/notifications/toast.module.css +9 -4
  69. package/dist/components/notifications/toast_module.css +5 -3
  70. package/dist/components/pager/first-button.d.ts +1 -1
  71. package/dist/components/pager/hooks/usePagination.d.ts +1 -1
  72. package/dist/components/pager/last-button.d.ts +1 -1
  73. package/dist/components/pager/next-button.d.ts +1 -1
  74. package/dist/components/pager/number-button.d.ts +1 -1
  75. package/dist/components/pager/pagination.d.ts +7 -7
  76. package/dist/components/pager/pagination.module.css +9 -4
  77. package/dist/components/pager/pagination_module.css +4 -2
  78. package/dist/components/pager/previous-button.d.ts +1 -1
  79. package/dist/components/scroll-area/scroll-area.module.css +9 -4
  80. package/dist/components/scroll-area/scroll-area_module.css +3 -1
  81. package/dist/components/scroll-to-top/scroll-to-top.module.css +9 -3
  82. package/dist/components/scroll-to-top/scroll-to-top_module.css +4 -2
  83. package/dist/components/section/section.module.css +9 -4
  84. package/dist/components/section/section_module.css +3 -1
  85. package/dist/components/shimmer/shimmer.module.css +9 -4
  86. package/dist/components/shimmer/shimmer_module.css +3 -1
  87. package/dist/components/table/table.module.css +9 -4
  88. package/dist/components/table/table_module.css +3 -1
  89. package/dist/components/tabs/tabs.module.css +9 -4
  90. package/dist/components/tabs/tabs_module.css +3 -1
  91. package/dist/components/tooltip/tooltip.module.css +9 -4
  92. package/dist/components/tooltip/tooltip_module.css +3 -1
  93. package/dist/css-layers.d.ts +23 -0
  94. package/dist/css-layers.d.ts.map +1 -0
  95. package/dist/css-layers.js +14 -0
  96. package/dist/icons/icons.module.css +11 -1
  97. package/dist/icons/icons_module.css +3 -1
  98. package/dist/icons/stopwatch-icon.d.ts +1 -1
  99. package/dist/loaders/ellipses.module.css +9 -4
  100. package/dist/loaders/ellipses_module.css +3 -1
  101. package/dist/loaders/ring.module.css +9 -4
  102. package/dist/loaders/ring_module.css +3 -1
  103. package/dist/loaders/spinner.module.css +9 -4
  104. package/dist/loaders/spinner_module.css +3 -1
  105. package/dist/react.d.ts +14 -14
  106. package/dist/styles/components-vanilla.css +1 -1
  107. package/dist/styles/reset.css +1 -1
  108. package/dist/styles/styles.css +1 -1
  109. package/dist/styles/typography.css +1 -1
  110. package/dist/widgets/datepicker/datepicker.d.ts +42 -1
  111. package/dist/widgets/datepicker/datepicker.d.ts.map +1 -1
  112. package/dist/widgets/datepicker/datepicker.js +34 -4
  113. package/dist/widgets/datepicker/datepicker.module.css +21 -2
  114. package/dist/widgets/datepicker/datepicker.module.js +1 -0
  115. package/dist/widgets/datepicker/datepicker_module.css +7 -2
  116. package/dist/widgets/drawer/drawer.d.ts +4 -4
  117. package/dist/widgets/drawer/drawer.module.css +11 -1
  118. package/dist/widgets/drawer/drawer_module.css +4 -2
  119. package/dist/widgets/modal/modal-context.d.ts +20 -0
  120. package/dist/widgets/modal/modal-context.d.ts.map +1 -0
  121. package/dist/widgets/modal/modal-context.js +4 -0
  122. package/dist/widgets/modal/modal-header.d.ts +1 -1
  123. package/dist/widgets/modal/modal-header.d.ts.map +1 -1
  124. package/dist/widgets/modal/modal-header.js +23 -1
  125. package/dist/widgets/modal/modal.d.ts +13 -8
  126. package/dist/widgets/modal/modal.d.ts.map +1 -1
  127. package/dist/widgets/modal/modal.js +8 -4
  128. package/dist/widgets/modal/modal.module.css +11 -1
  129. package/dist/widgets/modal/modal_module.css +5 -3
  130. package/dist/widgets/timeline/timeline.module.css +9 -4
  131. package/dist/widgets/timeline/timeline_module.css +3 -1
  132. package/package.json +45 -32
  133. package/src/components/accordion/accordion.module.css +11 -1
  134. package/src/components/avatar/avatar.module.css +9 -4
  135. package/src/components/badge/badge.module.css +9 -4
  136. package/src/components/button/button-group.module.css +11 -1
  137. package/src/components/button/button.module.css +9 -4
  138. package/src/components/button/combo-button.module.css +11 -1
  139. package/src/components/button/control-buttons.module.css +11 -1
  140. package/src/components/button/copy-button.module.css +9 -4
  141. package/src/components/card/card.module.css +9 -4
  142. package/src/components/chips/chip.module.css +9 -4
  143. package/src/components/container/container.module.css +9 -4
  144. package/src/components/dropdown/dropdown.module.css +9 -4
  145. package/src/components/hamburger/hamburger.module.css +9 -4
  146. package/src/components/inputs/autocomplete.module.css +9 -4
  147. package/src/components/inputs/calendar.module.css +9 -4
  148. package/src/components/inputs/checkbox-group.module.css +9 -4
  149. package/src/components/inputs/checkbox.module.css +9 -4
  150. package/src/components/inputs/error-text.module.css +9 -4
  151. package/src/components/inputs/help-text.module.css +9 -4
  152. package/src/components/inputs/input-adornment.module.css +9 -4
  153. package/src/components/inputs/input-password.module.css +55 -0
  154. package/src/components/inputs/input-password.tsx +49 -7
  155. package/src/components/inputs/input.module.css +9 -4
  156. package/src/components/inputs/label.module.css +9 -4
  157. package/src/components/inputs/radio-group.module.css +9 -4
  158. package/src/components/inputs/select.module.css +9 -4
  159. package/src/components/inputs/text-area.module.css +9 -4
  160. package/src/components/notifications/alert.module.css +9 -4
  161. package/src/components/notifications/toast.module.css +9 -4
  162. package/src/components/pager/pagination.module.css +9 -4
  163. package/src/components/scroll-area/scroll-area.module.css +9 -4
  164. package/src/components/scroll-to-top/scroll-to-top.module.css +9 -3
  165. package/src/components/section/section.module.css +9 -4
  166. package/src/components/shimmer/shimmer.module.css +9 -4
  167. package/src/components/table/table.module.css +9 -4
  168. package/src/components/tabs/tabs.module.css +9 -4
  169. package/src/components/tooltip/tooltip.module.css +9 -4
  170. package/src/css-layers.ts +34 -0
  171. package/src/icons/icons.module.css +11 -1
  172. package/src/loaders/ellipses.module.css +9 -4
  173. package/src/loaders/ring.module.css +9 -4
  174. package/src/loaders/spinner.module.css +9 -4
  175. package/src/styles/base/animations.css +12 -0
  176. package/src/styles/base/base.css +12 -0
  177. package/src/styles/base/borders.css +12 -0
  178. package/src/styles/base/breakpoints.css +12 -0
  179. package/src/styles/base/colors.css +12 -0
  180. package/src/styles/base/opacity.css +12 -0
  181. package/src/styles/base/shadows.css +12 -0
  182. package/src/styles/base/size.css +12 -0
  183. package/src/styles/base/spacing.css +12 -0
  184. package/src/styles/base/transitions.css +12 -0
  185. package/src/styles/base/typography.css +12 -0
  186. package/src/styles/base/z-index.css +12 -0
  187. package/src/styles/components/components.css +12 -0
  188. package/src/styles/components/fade-in-lift.css +27 -13
  189. package/src/styles/components/hamburger.css +11 -6
  190. package/src/styles/components/loaders.css +168 -154
  191. package/src/styles/functional/README.md +18 -18
  192. package/src/styles/functional/borders.css +12 -0
  193. package/src/styles/functional/colors.css +12 -0
  194. package/src/styles/functional/functional.css +12 -0
  195. package/src/styles/functional/grid-flex.css +12 -0
  196. package/src/styles/functional/shadcn-compat.css +12 -0
  197. package/src/styles/functional/surfaces.css +12 -0
  198. package/src/styles/functional/typography.css +12 -0
  199. package/src/styles/local-fonts.css +12 -0
  200. package/src/styles/reset.css +18 -0
  201. package/src/styles/styles.css +9 -4
  202. package/src/styles/theme/autofill.css +12 -0
  203. package/src/styles/theme/defaults.css +12 -0
  204. package/src/styles/theme/scrollers.css +12 -0
  205. package/src/styles/theme/theme.css +12 -0
  206. package/src/styles/typography/fonts.css +12 -0
  207. package/src/styles/typography/prose.css +12 -0
  208. package/src/styles/typography.css +12 -0
  209. package/src/styles/utils/scroll-layout-shift.css +12 -0
  210. package/src/styles/utils/utility-classes.css +12 -0
  211. package/src/styles/utils/utils.css +12 -0
  212. package/src/widgets/datepicker/datepicker.module.css +21 -2
  213. package/src/widgets/datepicker/datepicker.tsx +97 -4
  214. package/src/widgets/drawer/drawer.module.css +11 -1
  215. package/src/widgets/modal/modal-context.ts +23 -0
  216. package/src/widgets/modal/modal-header.tsx +29 -2
  217. package/src/widgets/modal/modal.module.css +11 -1
  218. package/src/widgets/modal/modal.tsx +15 -6
  219. package/src/widgets/timeline/timeline.module.css +9 -4
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  :is(.container-tSpizY, .infonomic-container) {
@@ -8,22 +8,24 @@
8
8
  padding: 0 1rem;
9
9
  }
10
10
 
11
- @media (min-width: 66rem) {
11
+ @media (width >= 66rem) {
12
12
  :is(.container-tSpizY, .infonomic-container) {
13
13
  max-width: 64rem;
14
14
  }
15
15
  }
16
16
 
17
- @media (min-width: 77rem) {
17
+ @media (width >= 77rem) {
18
18
  :is(.container-tSpizY, .infonomic-container) {
19
19
  max-width: 74.375rem;
20
20
  }
21
21
  }
22
22
 
23
- @media (min-width: 94rem) {
23
+ @media (width >= 94rem) {
24
24
  :is(.container-tSpizY, .infonomic-container) {
25
25
  max-width: 87.5rem;
26
26
  }
27
27
  }
28
28
  }
29
29
 
30
+ @layer overrides, infonomic-utilities, utilities;
31
+
@@ -92,16 +92,16 @@ const SubTrigger = ({ ref, className, children, ...rest })=>/*#__PURE__*/ jsx(Me
92
92
  });
93
93
  SubTrigger.displayName = 'SubTrigger';
94
94
  const Dropdown = {
95
- Root: Root,
96
- Trigger: Trigger,
97
- Portal: Portal,
98
- Content: Content,
99
- Group: Group,
100
- Item: Item,
101
- Label: Label,
102
- Separator: Separator,
103
- Sub: Sub,
104
- SubContent: SubContent,
105
- SubTrigger: SubTrigger
95
+ Root,
96
+ Trigger,
97
+ Portal,
98
+ Content,
99
+ Group,
100
+ Item,
101
+ Label,
102
+ Separator,
103
+ Sub,
104
+ SubContent,
105
+ SubTrigger
106
106
  };
107
107
  export { Dropdown };
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  .dropdown-content,
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  :is(.dropdown-content-oNxY22, .dropdown-subcontent-JZGnvB, .infonomic-dropdown-content, .infonomic-dropdown-subcontent) {
@@ -109,3 +109,5 @@
109
109
  }
110
110
  }
111
111
 
112
+ @layer overrides, infonomic-utilities, utilities;
113
+
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  .hamburger,
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  :is(.hamburger-CFjgP7, .infonomic-hamburger) {
@@ -167,3 +167,5 @@
167
167
  }
168
168
  }
169
169
 
170
+ @layer overrides, infonomic-utilities, utilities;
171
+
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  /* ── Wrapper ── */
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  :is(.autocomplete-wrapper-JirsmI, .infonomic-autocomplete-wrapper) {
@@ -310,3 +310,5 @@
310
310
  }
311
311
  }
312
312
 
313
+ @layer overrides, infonomic-utilities, utilities;
314
+
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  .day-picker {
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  .day-picker-HSdX8f {
@@ -199,7 +199,7 @@
199
199
  background-color: #0000;
200
200
  }
201
201
 
202
- @media (min-width: 40rem) {
202
+ @media (width >= 40rem) {
203
203
  .months-C3oVse {
204
204
  flex-direction: row;
205
205
  }
@@ -221,3 +221,5 @@
221
221
  }
222
222
  }
223
223
 
224
+ @layer overrides, infonomic-utilities, utilities;
225
+
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  :global(.infonomic-checkbox-group),
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  :is(.infonomic-checkbox-group, .checkbox-group-hPRXiQ) {
@@ -8,3 +8,5 @@
8
8
  }
9
9
  }
10
10
 
11
+ @layer overrides, infonomic-utilities, utilities;
12
+
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  .container,
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  :is(.container-oQwpyX, .infonomic-checkbox-container) {
@@ -218,3 +218,5 @@
218
218
  }
219
219
  }
220
220
 
221
+ @layer overrides, infonomic-utilities, utilities;
222
+
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  .text,
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  :is(.text-DoybHX, .infonomic-error-text) {
@@ -19,3 +19,5 @@
19
19
  }
20
20
  }
21
21
 
22
+ @layer overrides, infonomic-utilities, utilities;
23
+
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  .text,
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  :is(.text-tefb0a, .infonomic-help-text) {
@@ -19,3 +19,5 @@
19
19
  }
20
20
  }
21
21
 
22
+ @layer overrides, infonomic-utilities, utilities;
23
+
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  .adornment,
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  :is(.adornment-JKPOkF, .infonomic-input-adornment) {
@@ -17,3 +17,5 @@
17
17
  }
18
18
  }
19
19
 
20
+ @layer overrides, infonomic-utilities, utilities;
21
+
@@ -1,3 +1,19 @@
1
- import type { InputProps } from './input.jsx';
2
- export declare function InputPassword({ ...props }: InputProps): import("react").JSX.Element;
1
+ import type { InputProps } from './input.js';
2
+ /**
3
+ * `type` and `endAdornment` are the two props this component exists to
4
+ * control, so they are removed from the public surface rather than left
5
+ * to be overridden.
6
+ *
7
+ * They used to be overridable by accident: props were spread AFTER them,
8
+ * so a caller passing the obvious `type="password"` silently defeated the
9
+ * toggle — the icon swapped, the field stayed masked. Omitting them turns
10
+ * that into a compile error instead of a bug someone has to notice.
11
+ */
12
+ export interface InputPasswordProps extends Omit<InputProps, 'type' | 'endAdornment'> {
13
+ /** Accessible name for the reveal control while the password is hidden. */
14
+ showPasswordLabel?: string;
15
+ /** Accessible name for the reveal control while the password is shown. */
16
+ hidePasswordLabel?: string;
17
+ }
18
+ export declare function InputPassword({ showPasswordLabel, hidePasswordLabel, ...props }: InputPasswordProps): import("react").JSX.Element;
3
19
  //# sourceMappingURL=input-password.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-password.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/input-password.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,wBAAgB,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,+BAgBrD"}
1
+ {"version":3,"file":"input-password.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/input-password.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;GASG;AACH,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,CAAC;IACnF,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,wBAAgB,aAAa,CAAC,EAC5B,iBAAmC,EACnC,iBAAmC,EACnC,GAAG,KAAK,EACT,EAAE,kBAAkB,+BAkCpB"}
@@ -1,22 +1,30 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
+ import clsx from "clsx";
3
4
  import { EyeClosedIcon } from "../../icons/eye-closed-icon.js";
4
5
  import { EyeOpenIcon } from "../../icons/eye-open-icon.js";
5
6
  import { Input } from "./input.js";
6
- function InputPassword({ ...props }) {
7
+ import input_password_module from "./input-password.module.js";
8
+ function InputPassword({ showPasswordLabel = 'Show password', hidePasswordLabel = 'Hide password', ...props }) {
7
9
  const [visible, setVisible] = useState(false);
8
10
  return /*#__PURE__*/ jsx(Input, {
11
+ ...props,
9
12
  type: visible ? 'text' : 'password',
10
- endAdornment: visible ? /*#__PURE__*/ jsx(EyeOpenIcon, {
11
- width: "18px",
12
- height: "18px",
13
- onClick: ()=>setVisible(!visible)
14
- }) : /*#__PURE__*/ jsx(EyeClosedIcon, {
15
- width: "18px",
16
- height: "18px",
17
- onClick: ()=>setVisible(!visible)
18
- }),
19
- ...props
13
+ endAdornment: /*#__PURE__*/ jsx("button", {
14
+ type: "button",
15
+ className: clsx('infonomic-input-password-toggle', input_password_module.toggle),
16
+ "aria-label": visible ? hidePasswordLabel : showPasswordLabel,
17
+ "aria-pressed": visible,
18
+ onMouseDown: (event)=>event.preventDefault(),
19
+ onClick: ()=>setVisible((current)=>!current),
20
+ children: visible ? /*#__PURE__*/ jsx(EyeOpenIcon, {
21
+ width: "18px",
22
+ height: "18px"
23
+ }) : /*#__PURE__*/ jsx(EyeClosedIcon, {
24
+ width: "18px",
25
+ height: "18px"
26
+ })
27
+ })
20
28
  });
21
29
  }
22
30
  export { InputPassword };
@@ -0,0 +1,55 @@
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
+ infonomic-theme,
5
+ infonomic-functional,
6
+ infonomic-typography,
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
12
+
13
+ /**
14
+ * InputPassword — the reveal toggle inside the input's end adornment.
15
+ *
16
+ * Override handle:
17
+ * .infonomic-input-password-toggle — the reveal/hide button
18
+ *
19
+ * It is a `<button>` so it is keyboard reachable and announced, which
20
+ * means the browser's default button chrome has to be stripped back to
21
+ * what the bare icon used to look like.
22
+ */
23
+
24
+ @layer infonomic-components {
25
+ .toggle,
26
+ :global(.infonomic-input-password-toggle) {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ padding: 0;
31
+ border: none;
32
+ background: none;
33
+ color: inherit;
34
+ cursor: pointer;
35
+ /* The icon is 18px; the box is padded out to a comfortable target
36
+ without changing where the icon sits. */
37
+ min-width: 1.375rem;
38
+ min-height: 1.375rem;
39
+ }
40
+
41
+ /*
42
+ * A hairline ring at reduced opacity. The control is a 22px box sitting
43
+ * inside a 36px field, so a 2px ring at full `--ring-primary` reads as
44
+ * heavier than the input's own border and draws the eye away from the
45
+ * field. Thickness and offset are both 1px, which keeps the outer edge
46
+ * tight without touching the button box — so the 18px icon and the
47
+ * click target are unaffected.
48
+ */
49
+ .toggle:focus-visible,
50
+ :global(.infonomic-input-password-toggle):focus-visible {
51
+ outline: 1px solid oklch(from var(--field-ring, var(--blue-500)) l c h / 0.6);
52
+ outline-offset: 1px;
53
+ border-radius: var(--border-radius-sm, 3px);
54
+ }
55
+ }
@@ -0,0 +1,5 @@
1
+ import "./input-password_module.css";
2
+ const input_password_module = {
3
+ toggle: "toggle-bNQhst"
4
+ };
5
+ export default input_password_module;
@@ -0,0 +1,25 @@
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
+
3
+ @layer infonomic-components {
4
+ :is(.toggle-bNQhst, .infonomic-input-password-toggle) {
5
+ color: inherit;
6
+ cursor: pointer;
7
+ background: none;
8
+ border: none;
9
+ justify-content: center;
10
+ align-items: center;
11
+ min-width: 1.375rem;
12
+ min-height: 1.375rem;
13
+ padding: 0;
14
+ display: flex;
15
+ }
16
+
17
+ :is(.toggle-bNQhst:focus-visible, .infonomic-input-password-toggle:focus-visible) {
18
+ outline: 1px solid oklch(from var(--field-ring, var(--blue-500)) l c h / .6);
19
+ outline-offset: 1px;
20
+ border-radius: var(--border-radius-sm, 3px);
21
+ }
22
+ }
23
+
24
+ @layer overrides, infonomic-utilities, utilities;
25
+
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
2
  import type { Intent, Size, Variant } from './@types/input.js';
3
- import type { InputAdornmentProps } from './input-adornment.jsx';
3
+ import type { InputAdornmentProps } from './input-adornment.js';
4
4
  export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
5
5
  id: string;
6
6
  name: string;
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  .input-wrapper,
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  :is(.input-wrapper-OJAKML, .infonomic-input-wrapper) {
@@ -257,3 +257,5 @@
257
257
  }
258
258
  }
259
259
 
260
+ @layer overrides, infonomic-utilities, utilities;
261
+
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  .label,
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  :is(.label-pYbboO, .infonomic-label) {
@@ -12,3 +12,5 @@
12
12
  }
13
13
  }
14
14
 
15
+ @layer overrides, infonomic-utilities, utilities;
16
+
@@ -1,7 +1,7 @@
1
1
  import type React from 'react';
2
2
  import { Radio } from '@base-ui/react/radio';
3
3
  import { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group';
4
- import type { Intent } from '../@types/shared';
4
+ import type { Intent } from '../@types/shared.js';
5
5
  export interface RadioGroupValue {
6
6
  id: string;
7
7
  value: string;
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  /* 'border-collapse w-full text-sm text-left text-gray-700 dark:text-gray-400 m-0', */
9
14
  @layer infonomic-components {
@@ -1,4 +1,4 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
1
+ @layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
2
2
 
3
3
  @layer infonomic-components {
4
4
  :is(.column-Ca6c3z, .infonomic-radio-group-column) {
@@ -158,3 +158,5 @@
158
158
  }
159
159
  }
160
160
 
161
+ @layer overrides, infonomic-utilities, utilities;
162
+
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  .positioner,