@ultraviolet/ui 3.10.2 → 3.11.1

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 (368) hide show
  1. package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/asyncToGenerator.js +1 -1
  2. package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/defineProperty.js +1 -1
  3. package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/objectSpread2.js +1 -1
  4. package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/objectWithoutProperties.js +1 -1
  5. package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
  6. package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/toPrimitive.js +1 -1
  7. package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/toPropertyKey.js +1 -1
  8. package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/typeof.js +1 -1
  9. package/dist/components/ActionBar/index.js +2 -2
  10. package/dist/components/Alert/index.js +2 -2
  11. package/dist/components/Avatar/index.js +3 -3
  12. package/dist/components/Avatar/styles.css.js +1 -0
  13. package/dist/components/Avatar/variables.css.js +0 -2
  14. package/dist/components/Badge/index.js +1 -1
  15. package/dist/components/Banner/index.js +2 -2
  16. package/dist/components/BarChart/Tooltip.js +1 -1
  17. package/dist/components/BarChart/index.js +2 -2
  18. package/dist/components/BarStack/index.js +1 -1
  19. package/dist/components/Breadcrumbs/components/Item.js +1 -1
  20. package/dist/components/Bullet/index.js +1 -1
  21. package/dist/components/Button/index.js +2 -2
  22. package/dist/components/Card/index.js +1 -1
  23. package/dist/components/Carousel/index.js +2 -2
  24. package/dist/components/Checkbox/CheckboxIconContainer.d.ts +4 -0
  25. package/dist/components/Checkbox/CheckboxIconContainer.d.ts.map +1 -0
  26. package/dist/components/Checkbox/CheckboxIconContainer.js +38 -0
  27. package/dist/components/Checkbox/index.d.ts +1 -0
  28. package/dist/components/Checkbox/index.d.ts.map +1 -1
  29. package/dist/components/Checkbox/index.js +9 -37
  30. package/dist/components/Checkbox/styles.css.d.ts +3 -3
  31. package/dist/components/Checkbox/styles.css.d.ts.map +1 -1
  32. package/dist/components/Checkbox/styles.css.js +19 -8
  33. package/dist/components/CheckboxGroup/index.d.ts +2 -2
  34. package/dist/components/CheckboxGroup/index.d.ts.map +1 -1
  35. package/dist/components/CheckboxGroup/index.js +4 -3
  36. package/dist/components/Chip/index.js +1 -1
  37. package/dist/components/DateInput/components/CalendarContent.js +1 -1
  38. package/dist/components/DateInput/components/CalendarMonthly.js +1 -1
  39. package/dist/components/DateInput/index.js +1 -1
  40. package/dist/components/Dialog/index.js +1 -1
  41. package/dist/components/Drawer/index.js +1 -1
  42. package/dist/components/EmptyState/index.js +1 -1
  43. package/dist/components/Expandable/index.js +2 -2
  44. package/dist/components/ExpandableCard/index.js +2 -2
  45. package/dist/components/FileInput/components/Button.js +2 -2
  46. package/dist/components/GlobalAlert/GlobalAlertLink.js +1 -1
  47. package/dist/components/GlobalAlert/index.js +1 -1
  48. package/dist/components/InfiniteScroll/index.js +1 -1
  49. package/dist/components/Key/index.js +1 -1
  50. package/dist/components/Label/index.js +1 -1
  51. package/dist/components/LineChart/CustomLegend.js +2 -2
  52. package/dist/components/LineChart/index.js +2 -2
  53. package/dist/components/Link/index.js +4 -4
  54. package/dist/components/List/Cell.js +2 -2
  55. package/dist/components/List/HeaderCell.js +3 -3
  56. package/dist/components/List/HeaderRow.js +1 -1
  57. package/dist/components/List/ListContext.js +3 -3
  58. package/dist/components/List/Row.js +5 -5
  59. package/dist/components/List/SelectBar.js +1 -1
  60. package/dist/components/List/SkeletonRows.js +2 -2
  61. package/dist/components/List/index.js +1 -1
  62. package/dist/components/List/styles.css.js +0 -1
  63. package/dist/components/Loader/index.js +2 -2
  64. package/dist/components/Menu/MenuContent.js +1 -1
  65. package/dist/components/Menu/components/Item.d.ts +1 -0
  66. package/dist/components/Menu/components/Item.d.ts.map +1 -1
  67. package/dist/components/Menu/components/Item.js +28 -8
  68. package/dist/components/Menu/index.d.ts +1 -0
  69. package/dist/components/Menu/index.d.ts.map +1 -1
  70. package/dist/components/Menu/index.js +2 -2
  71. package/dist/components/Modal/components/Dialog.js +2 -2
  72. package/dist/components/Notice/index.js +1 -1
  73. package/dist/components/Notification/Notification.js +1 -1
  74. package/dist/components/Notification/NotificationContainer.js +1 -1
  75. package/dist/components/NumberInput/index.js +1 -1
  76. package/dist/components/Pagination/PaginationButtons.js +1 -1
  77. package/dist/components/PasswordCheck/index.js +1 -1
  78. package/dist/components/PieChart/index.js +2 -2
  79. package/dist/components/Popover/index.js +1 -1
  80. package/dist/components/Popup/index.js +2 -2
  81. package/dist/components/ProgressBar/index.js +1 -1
  82. package/dist/components/ProgressBar/styles.css.js +0 -1
  83. package/dist/components/ProgressBar/variables.css.js +2 -0
  84. package/dist/components/Radio/index.js +1 -1
  85. package/dist/components/Radio/styles.css.js +0 -1
  86. package/dist/components/RadioGroup/index.js +2 -2
  87. package/dist/components/Row/index.js +3 -3
  88. package/dist/components/SearchInput/index.js +1 -1
  89. package/dist/components/SelectInput/components/Dropdown.js +4 -4
  90. package/dist/components/SelectInput/components/SearchBarDropdown.js +3 -3
  91. package/dist/components/SelectInput/components/SelectBar.js +2 -2
  92. package/dist/components/SelectInput/index.js +1 -1
  93. package/dist/components/SelectableCard/IllustrationContainer.d.ts +1 -1
  94. package/dist/components/SelectableCard/IllustrationContainer.js +2 -2
  95. package/dist/components/SelectableCard/MultiStateInput.js +1 -1
  96. package/dist/components/SelectableCard/SelectableCard.js +2 -2
  97. package/dist/components/SelectableCardGroup/index.js +1 -1
  98. package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.js +1 -1
  99. package/dist/components/SelectableCardOptionGroup/components/Image.js +1 -1
  100. package/dist/components/SelectableCardOptionGroup/components/Option.js +2 -2
  101. package/dist/components/Separator/index.js +1 -1
  102. package/dist/components/Skeleton/index.js +1 -1
  103. package/dist/components/Slider/components/DoubleSlider.js +2 -2
  104. package/dist/components/Slider/components/SingleSlider.js +3 -3
  105. package/dist/components/Snippet/index.js +2 -2
  106. package/dist/components/Stack/index.js +3 -3
  107. package/dist/components/Status/index.js +1 -1
  108. package/dist/components/StepList/index.js +1 -1
  109. package/dist/components/Stepper/Step.js +1 -1
  110. package/dist/components/Stepper/index.js +2 -2
  111. package/dist/components/SwitchButton/Option.js +1 -1
  112. package/dist/components/SwitchButton/index.js +1 -1
  113. package/dist/components/Table/Cell.js +2 -2
  114. package/dist/components/Table/HeaderCell.js +2 -2
  115. package/dist/components/Table/HeaderRow.js +1 -1
  116. package/dist/components/Table/Row.js +5 -5
  117. package/dist/components/Table/TableContext.js +2 -2
  118. package/dist/components/Table/index.js +1 -1
  119. package/dist/components/Tabs/Tab.js +3 -3
  120. package/dist/components/Tabs/TabMenu.js +3 -3
  121. package/dist/components/Tabs/TabMenuItem.js +2 -2
  122. package/dist/components/Tabs/index.d.ts +1 -0
  123. package/dist/components/Tabs/index.js +3 -3
  124. package/dist/components/Tag/index.js +1 -1
  125. package/dist/components/TagInput/index.js +2 -2
  126. package/dist/components/TagList/index.js +2 -2
  127. package/dist/components/Text/index.js +3 -3
  128. package/dist/components/Text/style.css.js +0 -1
  129. package/dist/components/Text/variables.css.js +2 -0
  130. package/dist/components/TextArea/index.js +2 -2
  131. package/dist/components/TextInput/index.js +1 -1
  132. package/dist/components/TimeInput/index.js +1 -1
  133. package/dist/components/Toaster/Toaster.js +1 -1
  134. package/dist/components/Toaster/ToasterContainer.js +1 -1
  135. package/dist/components/Toggle/index.js +1 -1
  136. package/dist/components/ToggleGroup/index.js +1 -1
  137. package/dist/components/Tooltip/index.js +1 -1
  138. package/dist/components/TreeMapChart/index.js +3 -3
  139. package/dist/components/UnitInput/index.js +2 -2
  140. package/dist/components/VerificationCode/index.js +1 -1
  141. package/dist/components/compositions/CodeEditor/index.d.ts +40 -0
  142. package/dist/components/compositions/CodeEditor/index.d.ts.map +1 -0
  143. package/dist/components/compositions/CodeEditor/index.js +129 -0
  144. package/dist/components/compositions/CodeEditor/styles.css.d.ts +19 -0
  145. package/dist/components/compositions/CodeEditor/styles.css.d.ts.map +1 -0
  146. package/dist/components/compositions/CodeEditor/styles.css.js +30 -0
  147. package/dist/components/compositions/ContentCard/Content.d.ts +13 -0
  148. package/dist/components/compositions/ContentCard/Content.d.ts.map +1 -0
  149. package/dist/components/compositions/ContentCard/Content.js +65 -0
  150. package/dist/components/compositions/ContentCard/Skeleton.d.ts +6 -0
  151. package/dist/components/compositions/ContentCard/Skeleton.d.ts.map +1 -0
  152. package/dist/components/compositions/ContentCard/Skeleton.js +33 -0
  153. package/dist/components/compositions/ContentCard/index.d.ts +8 -0
  154. package/dist/components/compositions/ContentCard/index.d.ts.map +1 -0
  155. package/dist/components/compositions/ContentCard/index.js +80 -0
  156. package/dist/components/compositions/ContentCard/styles.css.d.ts +24 -0
  157. package/dist/components/compositions/ContentCard/styles.css.d.ts.map +1 -0
  158. package/dist/components/compositions/ContentCard/styles.css.js +36 -0
  159. package/dist/components/compositions/ContentCard/type.d.ts +30 -0
  160. package/dist/components/compositions/ContentCard/type.d.ts.map +1 -0
  161. package/dist/components/compositions/ContentCardGroup/Card.d.ts +15 -0
  162. package/dist/components/compositions/ContentCardGroup/Card.d.ts.map +1 -0
  163. package/dist/components/compositions/ContentCardGroup/Card.js +58 -0
  164. package/dist/components/compositions/ContentCardGroup/SkeletonCard.d.ts +2 -0
  165. package/dist/components/compositions/ContentCardGroup/SkeletonCard.d.ts.map +1 -0
  166. package/dist/components/compositions/ContentCardGroup/SkeletonCard.js +30 -0
  167. package/dist/components/compositions/ContentCardGroup/index.d.ts +21 -0
  168. package/dist/components/compositions/ContentCardGroup/index.d.ts.map +1 -0
  169. package/dist/components/compositions/ContentCardGroup/index.js +21 -0
  170. package/dist/components/compositions/ContentCardGroup/styles.css.d.ts +8 -0
  171. package/dist/components/compositions/ContentCardGroup/styles.css.d.ts.map +1 -0
  172. package/dist/components/compositions/ContentCardGroup/styles.css.js +13 -0
  173. package/dist/components/compositions/Conversation/index.d.ts +50 -0
  174. package/dist/components/compositions/Conversation/index.d.ts.map +1 -0
  175. package/dist/components/compositions/Conversation/index.js +53 -0
  176. package/dist/components/compositions/Conversation/styles.css.d.ts +8 -0
  177. package/dist/components/compositions/Conversation/styles.css.d.ts.map +1 -0
  178. package/dist/components/compositions/Conversation/styles.css.js +22 -0
  179. package/dist/components/compositions/CustomerSatisfaction/assets/1-5.js +5 -0
  180. package/dist/components/compositions/CustomerSatisfaction/assets/1-5NB.js +5 -0
  181. package/dist/components/compositions/CustomerSatisfaction/assets/2-5.js +5 -0
  182. package/dist/components/compositions/CustomerSatisfaction/assets/2-5NB.js +5 -0
  183. package/dist/components/compositions/CustomerSatisfaction/assets/3-5.js +5 -0
  184. package/dist/components/compositions/CustomerSatisfaction/assets/3-5NB.js +5 -0
  185. package/dist/components/compositions/CustomerSatisfaction/assets/4-5.js +5 -0
  186. package/dist/components/compositions/CustomerSatisfaction/assets/4-5NB.js +5 -0
  187. package/dist/components/compositions/CustomerSatisfaction/assets/5-5.js +5 -0
  188. package/dist/components/compositions/CustomerSatisfaction/assets/5-5NB.js +5 -0
  189. package/dist/components/compositions/CustomerSatisfaction/index.d.ts +33 -0
  190. package/dist/components/compositions/CustomerSatisfaction/index.d.ts.map +1 -0
  191. package/dist/components/compositions/CustomerSatisfaction/index.js +89 -0
  192. package/dist/components/compositions/CustomerSatisfaction/styles.css.d.ts +19 -0
  193. package/dist/components/compositions/CustomerSatisfaction/styles.css.d.ts.map +1 -0
  194. package/dist/components/compositions/CustomerSatisfaction/styles.css.js +20 -0
  195. package/dist/components/compositions/EstimateCost/CompactEstimateCost.d.ts +16 -0
  196. package/dist/components/compositions/EstimateCost/CompactEstimateCost.d.ts.map +1 -0
  197. package/dist/components/compositions/EstimateCost/CompactEstimateCost.js +38 -0
  198. package/dist/components/compositions/EstimateCost/Components/ContentComponents.d.ts +12 -0
  199. package/dist/components/compositions/EstimateCost/Components/ContentComponents.d.ts.map +1 -0
  200. package/dist/components/compositions/EstimateCost/Components/ContentComponents.js +114 -0
  201. package/dist/components/compositions/EstimateCost/Components/CustomUnitInput.d.ts +10 -0
  202. package/dist/components/compositions/EstimateCost/Components/CustomUnitInput.d.ts.map +1 -0
  203. package/dist/components/compositions/EstimateCost/Components/CustomUnitInput.js +41 -0
  204. package/dist/components/compositions/EstimateCost/Components/Item.d.ts +118 -0
  205. package/dist/components/compositions/EstimateCost/Components/Item.d.ts.map +1 -0
  206. package/dist/components/compositions/EstimateCost/Components/Item.js +168 -0
  207. package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.d.ts +3 -0
  208. package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.d.ts.map +1 -0
  209. package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.js +75 -0
  210. package/dist/components/compositions/EstimateCost/Components/ItemPrice.d.ts +3 -0
  211. package/dist/components/compositions/EstimateCost/Components/ItemPrice.d.ts.map +1 -0
  212. package/dist/components/compositions/EstimateCost/Components/ItemPrice.js +54 -0
  213. package/dist/components/compositions/EstimateCost/Components/LineThrough.d.ts +7 -0
  214. package/dist/components/compositions/EstimateCost/Components/LineThrough.d.ts.map +1 -0
  215. package/dist/components/compositions/EstimateCost/Components/LineThrough.js +18 -0
  216. package/dist/components/compositions/EstimateCost/Components/NumberInput.d.ts +11 -0
  217. package/dist/components/compositions/EstimateCost/Components/NumberInput.d.ts.map +1 -0
  218. package/dist/components/compositions/EstimateCost/Components/NumberInput.js +35 -0
  219. package/dist/components/compositions/EstimateCost/Components/Region.d.ts +23 -0
  220. package/dist/components/compositions/EstimateCost/Components/Region.d.ts.map +1 -0
  221. package/dist/components/compositions/EstimateCost/Components/Region.js +38 -0
  222. package/dist/components/compositions/EstimateCost/Components/Regular.d.ts +11 -0
  223. package/dist/components/compositions/EstimateCost/Components/Regular.d.ts.map +1 -0
  224. package/dist/components/compositions/EstimateCost/Components/Regular.js +23 -0
  225. package/dist/components/compositions/EstimateCost/Components/Strong.d.ts +10 -0
  226. package/dist/components/compositions/EstimateCost/Components/Strong.d.ts.map +1 -0
  227. package/dist/components/compositions/EstimateCost/Components/Strong.js +16 -0
  228. package/dist/components/compositions/EstimateCost/Components/Unit.d.ts +11 -0
  229. package/dist/components/compositions/EstimateCost/Components/Unit.d.ts.map +1 -0
  230. package/dist/components/compositions/EstimateCost/Components/Unit.js +50 -0
  231. package/dist/components/compositions/EstimateCost/Components/Zone.d.ts +23 -0
  232. package/dist/components/compositions/EstimateCost/Components/Zone.d.ts.map +1 -0
  233. package/dist/components/compositions/EstimateCost/Components/Zone.js +37 -0
  234. package/dist/components/compositions/EstimateCost/Components/components.css.d.ts +78 -0
  235. package/dist/components/compositions/EstimateCost/Components/components.css.d.ts.map +1 -0
  236. package/dist/components/compositions/EstimateCost/Components/components.css.js +72 -0
  237. package/dist/components/compositions/EstimateCost/EstimateCostContent.d.ts +3 -0
  238. package/dist/components/compositions/EstimateCost/EstimateCostContent.d.ts.map +1 -0
  239. package/dist/components/compositions/EstimateCost/EstimateCostContent.js +198 -0
  240. package/dist/components/compositions/EstimateCost/EstimateCostProvider.d.ts +26 -0
  241. package/dist/components/compositions/EstimateCost/EstimateCostProvider.d.ts.map +1 -0
  242. package/dist/components/compositions/EstimateCost/EstimateCostProvider.js +33 -0
  243. package/dist/components/compositions/EstimateCost/OverlayComponent.d.ts +27 -0
  244. package/dist/components/compositions/EstimateCost/OverlayComponent.d.ts.map +1 -0
  245. package/dist/components/compositions/EstimateCost/OverlayComponent.js +100 -0
  246. package/dist/components/compositions/EstimateCost/OverlayContext.d.ts +13 -0
  247. package/dist/components/compositions/EstimateCost/OverlayContext.d.ts.map +1 -0
  248. package/dist/components/compositions/EstimateCost/OverlayContext.js +15 -0
  249. package/dist/components/compositions/EstimateCost/constants.d.ts +8 -0
  250. package/dist/components/compositions/EstimateCost/constants.d.ts.map +1 -0
  251. package/dist/components/compositions/EstimateCost/constants.js +26 -0
  252. package/dist/components/compositions/EstimateCost/helper.d.ts +10 -0
  253. package/dist/components/compositions/EstimateCost/helper.d.ts.map +1 -0
  254. package/dist/components/compositions/EstimateCost/helper.js +11 -0
  255. package/dist/components/compositions/EstimateCost/index.d.ts +177 -0
  256. package/dist/components/compositions/EstimateCost/index.d.ts.map +1 -0
  257. package/dist/components/compositions/EstimateCost/index.js +97 -0
  258. package/dist/components/compositions/EstimateCost/locales/en.d.ts +23 -0
  259. package/dist/components/compositions/EstimateCost/locales/en.d.ts.map +1 -0
  260. package/dist/components/compositions/EstimateCost/locales/en.js +25 -0
  261. package/dist/components/compositions/EstimateCost/styles.css.d.ts +86 -0
  262. package/dist/components/compositions/EstimateCost/styles.css.d.ts.map +1 -0
  263. package/dist/components/compositions/EstimateCost/styles.css.js +72 -0
  264. package/dist/components/compositions/EstimateCost/types.d.ts +226 -0
  265. package/dist/components/compositions/EstimateCost/types.d.ts.map +1 -0
  266. package/dist/components/compositions/FAQ/index.d.ts +14 -0
  267. package/dist/components/compositions/FAQ/index.d.ts.map +1 -0
  268. package/dist/components/compositions/FAQ/index.js +43 -0
  269. package/dist/components/compositions/FAQ/styles.css.d.ts +2 -0
  270. package/dist/components/compositions/FAQ/styles.css.d.ts.map +1 -0
  271. package/dist/components/compositions/FAQ/styles.css.js +7 -0
  272. package/dist/components/compositions/InfoTable/Context.d.ts +4 -0
  273. package/dist/components/compositions/InfoTable/Context.d.ts.map +1 -0
  274. package/dist/components/compositions/InfoTable/Context.js +7 -0
  275. package/dist/components/compositions/InfoTable/components/Cell.d.ts +10 -0
  276. package/dist/components/compositions/InfoTable/components/Cell.d.ts.map +1 -0
  277. package/dist/components/compositions/InfoTable/components/Cell.js +39 -0
  278. package/dist/components/compositions/InfoTable/components/Row.d.ts +9 -0
  279. package/dist/components/compositions/InfoTable/components/Row.d.ts.map +1 -0
  280. package/dist/components/compositions/InfoTable/components/Row.js +23 -0
  281. package/dist/components/compositions/InfoTable/index.d.ts +25 -0
  282. package/dist/components/compositions/InfoTable/index.d.ts.map +1 -0
  283. package/dist/components/compositions/InfoTable/index.js +28 -0
  284. package/dist/components/compositions/InfoTable/styles.css.d.ts +8 -0
  285. package/dist/components/compositions/InfoTable/styles.css.d.ts.map +1 -0
  286. package/dist/components/compositions/InfoTable/styles.css.js +13 -0
  287. package/dist/components/compositions/Navigation/Footer.d.ts +9 -0
  288. package/dist/components/compositions/Navigation/Footer.d.ts.map +1 -0
  289. package/dist/components/compositions/Navigation/Footer.js +65 -0
  290. package/dist/components/compositions/Navigation/Header.d.ts +7 -0
  291. package/dist/components/compositions/Navigation/Header.d.ts.map +1 -0
  292. package/dist/components/compositions/Navigation/Header.js +24 -0
  293. package/dist/components/compositions/Navigation/NavigationContent.d.ts +3 -0
  294. package/dist/components/compositions/Navigation/NavigationContent.d.ts.map +1 -0
  295. package/dist/components/compositions/Navigation/NavigationContent.js +104 -0
  296. package/dist/components/compositions/Navigation/NavigationProvider.d.ts +94 -0
  297. package/dist/components/compositions/Navigation/NavigationProvider.d.ts.map +1 -0
  298. package/dist/components/compositions/Navigation/NavigationProvider.js +121 -0
  299. package/dist/components/compositions/Navigation/animations.css.d.ts +7 -0
  300. package/dist/components/compositions/Navigation/animations.css.d.ts.map +1 -0
  301. package/dist/components/compositions/Navigation/components/ComponentsTypes.d.ts +65 -0
  302. package/dist/components/compositions/Navigation/components/ComponentsTypes.d.ts.map +1 -0
  303. package/dist/components/compositions/Navigation/components/Group.d.ts +10 -0
  304. package/dist/components/compositions/Navigation/components/Group.d.ts.map +1 -0
  305. package/dist/components/compositions/Navigation/components/Group.js +40 -0
  306. package/dist/components/compositions/Navigation/components/Item.d.ts +88 -0
  307. package/dist/components/compositions/Navigation/components/Item.d.ts.map +1 -0
  308. package/dist/components/compositions/Navigation/components/Item.js +200 -0
  309. package/dist/components/compositions/Navigation/components/ItemExpanded.d.ts +3 -0
  310. package/dist/components/compositions/Navigation/components/ItemExpanded.d.ts.map +1 -0
  311. package/dist/components/compositions/Navigation/components/ItemExpanded.js +214 -0
  312. package/dist/components/compositions/Navigation/components/ItemFragments.d.ts +6 -0
  313. package/dist/components/compositions/Navigation/components/ItemFragments.d.ts.map +1 -0
  314. package/dist/components/compositions/Navigation/components/ItemFragments.js +63 -0
  315. package/dist/components/compositions/Navigation/components/ItemMenu.d.ts +4 -0
  316. package/dist/components/compositions/Navigation/components/ItemMenu.d.ts.map +1 -0
  317. package/dist/components/compositions/Navigation/components/ItemMenu.js +135 -0
  318. package/dist/components/compositions/Navigation/components/ItemProvider.d.ts +8 -0
  319. package/dist/components/compositions/Navigation/components/ItemProvider.d.ts.map +1 -0
  320. package/dist/components/compositions/Navigation/components/ItemProvider.js +17 -0
  321. package/dist/components/compositions/Navigation/components/PinnedItems.d.ts +24 -0
  322. package/dist/components/compositions/Navigation/components/PinnedItems.d.ts.map +1 -0
  323. package/dist/components/compositions/Navigation/components/PinnedItems.js +105 -0
  324. package/dist/components/compositions/Navigation/components/Separator.d.ts +2 -0
  325. package/dist/components/compositions/Navigation/components/Separator.d.ts.map +1 -0
  326. package/dist/components/compositions/Navigation/components/Separator.js +11 -0
  327. package/dist/components/compositions/Navigation/components/ShowHide.d.ts +16 -0
  328. package/dist/components/compositions/Navigation/components/ShowHide.d.ts.map +1 -0
  329. package/dist/components/compositions/Navigation/components/ShowHide.js +54 -0
  330. package/dist/components/compositions/Navigation/components/items.css.d.ts +98 -0
  331. package/dist/components/compositions/Navigation/components/items.css.d.ts.map +1 -0
  332. package/dist/components/compositions/Navigation/components/items.css.js +123 -0
  333. package/dist/components/compositions/Navigation/components/styles.css.d.ts +25 -0
  334. package/dist/components/compositions/Navigation/components/styles.css.d.ts.map +1 -0
  335. package/dist/components/compositions/Navigation/components/styles.css.js +29 -0
  336. package/dist/components/compositions/Navigation/constants.d.ts +10 -0
  337. package/dist/components/compositions/Navigation/constants.d.ts.map +1 -0
  338. package/dist/components/compositions/Navigation/index.d.ts +65 -0
  339. package/dist/components/compositions/Navigation/index.d.ts.map +1 -0
  340. package/dist/components/compositions/Navigation/index.js +35 -0
  341. package/dist/components/compositions/Navigation/locales/en.d.ts +11 -0
  342. package/dist/components/compositions/Navigation/locales/en.d.ts.map +1 -0
  343. package/dist/components/compositions/Navigation/locales/en.js +13 -0
  344. package/dist/components/compositions/Navigation/styles.css.d.ts +34 -0
  345. package/dist/components/compositions/Navigation/styles.css.d.ts.map +1 -0
  346. package/dist/components/compositions/Navigation/styles.css.js +37 -0
  347. package/dist/components/compositions/Navigation/types.d.ts +43 -0
  348. package/dist/components/compositions/Navigation/types.d.ts.map +1 -0
  349. package/dist/components/compositions/Navigation/variables.css.d.ts +2 -0
  350. package/dist/components/compositions/Navigation/variables.css.d.ts.map +1 -0
  351. package/dist/components/compositions/Navigation/variables.css.js +5 -0
  352. package/dist/components/compositions/OfferList/components/Cell.js +1 -1
  353. package/dist/components/compositions/OfferList/components/Row.js +4 -4
  354. package/dist/components/compositions/OfferList/index.js +1 -1
  355. package/dist/components/compositions/OfferList/styles.css.js +0 -1
  356. package/dist/components/compositions/OptionSelector/components/Selector.js +1 -1
  357. package/dist/components/compositions/OptionSelector/index.js +1 -1
  358. package/dist/components/compositions/OrderSummary/ScrollableContent.js +1 -1
  359. package/dist/components/compositions/OrderSummary/helpers.js +1 -1
  360. package/dist/components/compositions/OrderSummary/index.js +1 -1
  361. package/dist/components/compositions/Plans/PlanHeader.js +1 -1
  362. package/dist/components/compositions/index.d.ts +9 -0
  363. package/dist/components/compositions/index.d.ts.map +1 -1
  364. package/dist/components/compositions/index.js +12 -1
  365. package/dist/index.js +17 -17
  366. package/dist/theme/ThemeProvider.js +1 -1
  367. package/dist/ui.css +1 -1
  368. package/package.json +10 -6
@@ -0,0 +1,24 @@
1
+ import type { CSSProperties, ReactElement } from 'react';
2
+ type PinnedItemsProps = {
3
+ /**
4
+ * This prop is used to control if the item is expanded or collapsed
5
+ */
6
+ toggle?: boolean;
7
+ /**
8
+ * This function will be triggered on click of the item. If the item is expandable
9
+ * toggle will be passed with it.
10
+ */
11
+ onToggle?: (toggle: boolean) => void;
12
+ /**
13
+ * This function will be called when the user reorder the pinned items
14
+ */
15
+ onReorder?: (pinnedItems: string[]) => void;
16
+ /**
17
+ * Use this prop if it is needed to wrap each PinnedItem component into another component (eg NavLink)
18
+ */
19
+ itemWrapper?: (item: ReactElement, itemId: string) => ReactElement;
20
+ style?: CSSProperties;
21
+ };
22
+ export declare const PinnedItems: ({ toggle, onReorder, onToggle, itemWrapper, style, }: PinnedItemsProps) => import("react/jsx-runtime").JSX.Element | null;
23
+ export {};
24
+ //# sourceMappingURL=PinnedItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PinnedItems.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/Navigation/components/PinnedItems.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAa,YAAY,EAAE,MAAM,OAAO,CAAA;AAYnE,KAAK,gBAAgB,GAAG;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC3C;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,KAAK,YAAY,CAAA;IAClE,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,WAAW,4HAiJvB,CAAA"}
@@ -0,0 +1,105 @@
1
+ 'use client';
2
+ import { __name } from "../../../../_virtual/_rolldown/runtime.js";
3
+ import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
4
+ import { Text } from "../../../Text/index.js";
5
+ import { useNavigation } from "../NavigationProvider.js";
6
+ import { navigationPinnedItemContainer, navigationPinnedItemDropableArea, navigationPinnedItemRelativeDiv } from "./styles.css.js";
7
+ import { Item } from "./Item.js";
8
+ import { useCallback } from "react";
9
+ import { useTheme } from "@ultraviolet/themes";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { PinCategoryIcon } from "@ultraviolet/icons/category";
12
+
13
+ //#region src/components/compositions/Navigation/components/PinnedItems.tsx
14
+ const PinnedItems = ({ toggle = true, onReorder, onToggle, itemWrapper, style }) => {
15
+ const context = useNavigation();
16
+ if (!context) throw new Error("Navigation.PinnedItems can only be used inside a NavigationProvider.");
17
+ const { locales, pinnedItems, pinnedFeature, reorderItems, expanded, items, animation, showHide } = context;
18
+ const theme = useTheme();
19
+ const onDrop = useCallback((event, index) => {
20
+ event.preventDefault();
21
+ if (event === null || event === void 0 ? void 0 : event.dataTransfer) {
22
+ event.currentTarget.style.borderColor = "transparent";
23
+ const data = JSON.parse(event.dataTransfer.getData("text"));
24
+ if (data.index === index - 1 || index > data.index) {
25
+ const newItems = reorderItems(data.index, index - 1);
26
+ onReorder === null || onReorder === void 0 || onReorder(newItems);
27
+ return;
28
+ }
29
+ const newItems = reorderItems(data.index, index);
30
+ onReorder === null || onReorder === void 0 || onReorder(newItems);
31
+ }
32
+ }, [onReorder, reorderItems]);
33
+ const onDragOver = useCallback((event) => {
34
+ event.preventDefault();
35
+ event.currentTarget.style.borderColor = theme.colors.primary.border;
36
+ }, [theme.colors.primary.border]);
37
+ const onDragLeave = useCallback((event) => {
38
+ event.preventDefault();
39
+ event.currentTarget.style.borderColor = "transparent";
40
+ }, []);
41
+ if (Object.keys(items).length === 0) return null;
42
+ if (pinnedFeature && showHide !== "hide") return /* @__PURE__ */ jsx("div", {
43
+ style: _objectSpread2({ width: animation ? "100%" : void 0 }, style),
44
+ children: /* @__PURE__ */ jsxs(Item, {
45
+ categoryIcon: /* @__PURE__ */ jsx(PinCategoryIcon, { variant: "neutral" }),
46
+ "data-testid": "pinned-group",
47
+ id: "pinned-group",
48
+ label: locales["navigation.pinned.item.group.label"],
49
+ onToggle,
50
+ toggle,
51
+ type: "pinnedGroup",
52
+ children: [pinnedItems.length > 0 ? pinnedItems.map((itemId, index) => {
53
+ var _items$itemId;
54
+ if ((_items$itemId = items[itemId]) === null || _items$itemId === void 0 ? void 0 : _items$itemId.label) {
55
+ var _items$itemId$active;
56
+ var _items$itemId2;
57
+ var _items$itemId$onClick;
58
+ var _items$itemId3;
59
+ var _items$itemId4;
60
+ const itemElement = /* @__PURE__ */ jsx(Item, {
61
+ active: (_items$itemId$active = (_items$itemId2 = items[itemId]) === null || _items$itemId2 === void 0 ? void 0 : _items$itemId2.active) !== null && _items$itemId$active !== void 0 ? _items$itemId$active : false,
62
+ id: itemId,
63
+ index,
64
+ label: items[itemId].label,
65
+ onClickPinUnpin: (_items$itemId$onClick = (_items$itemId3 = items[itemId]) === null || _items$itemId3 === void 0 ? void 0 : _items$itemId3.onClickPinUnpin) !== null && _items$itemId$onClick !== void 0 ? _items$itemId$onClick : void 0,
66
+ onToggle: (_items$itemId4 = items[itemId]) === null || _items$itemId4 === void 0 ? void 0 : _items$itemId4.onToggle,
67
+ toggle,
68
+ type: "pinned"
69
+ }, itemId);
70
+ return /* @__PURE__ */ jsxs("div", {
71
+ className: navigationPinnedItemRelativeDiv,
72
+ children: [/* @__PURE__ */ jsx("div", {
73
+ className: navigationPinnedItemDropableArea,
74
+ onDragLeave,
75
+ onDragOver,
76
+ onDrop: (event) => onDrop(event, index)
77
+ }), itemWrapper ? itemWrapper(itemElement, itemId) : itemElement]
78
+ }, itemId);
79
+ }
80
+ return null;
81
+ }) : /* @__PURE__ */ jsx("div", {
82
+ className: navigationPinnedItemContainer({ expanded }),
83
+ children: /* @__PURE__ */ jsx(Text, {
84
+ as: "p",
85
+ prominence: "weak",
86
+ sentiment: "neutral",
87
+ variant: "caption",
88
+ children: locales["navigation.pinned.item.group.empty"]
89
+ })
90
+ }), /* @__PURE__ */ jsx("div", {
91
+ className: navigationPinnedItemRelativeDiv,
92
+ children: /* @__PURE__ */ jsx("div", {
93
+ className: navigationPinnedItemDropableArea,
94
+ onDragLeave,
95
+ onDragOver,
96
+ onDrop: (event) => onDrop(event, pinnedItems.length)
97
+ })
98
+ })]
99
+ })
100
+ });
101
+ return null;
102
+ };
103
+
104
+ //#endregion
105
+ export { PinnedItems };
@@ -0,0 +1,2 @@
1
+ export declare const Separator: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=Separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/Navigation/components/Separator.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,+CAAwD,CAAA"}
@@ -0,0 +1,11 @@
1
+ 'use client';
2
+ import { __name } from "../../../../_virtual/_rolldown/runtime.js";
3
+ import { navigationSeparator } from "./styles.css.js";
4
+ import { Separator as Separator$1 } from "../../../Separator/index.js";
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ //#region src/components/compositions/Navigation/components/Separator.tsx
8
+ const Separator = () => /* @__PURE__ */ jsx(Separator$1, { className: navigationSeparator });
9
+
10
+ //#endregion
11
+ export { Separator };
@@ -0,0 +1,16 @@
1
+ import type { CSSProperties, ReactNode } from 'react';
2
+ type ShowAllProp = {
3
+ showContent: ReactNode;
4
+ hideContent: ReactNode;
5
+ onShowHide?: (expanded: 'show' | 'hide') => void;
6
+ disabled?: boolean;
7
+ /**
8
+ * Add a tooltip to display on hover when the navigation is not-exanped
9
+ */
10
+ tooltip?: string;
11
+ 'data-testid'?: string;
12
+ style?: CSSProperties;
13
+ };
14
+ export declare const ShowHide: import("react").MemoExoticComponent<({ showContent, hideContent, onShowHide, tooltip, 'data-testid': dataTestId, style, }: ShowAllProp) => import("react/jsx-runtime").JSX.Element>;
15
+ export {};
16
+ //# sourceMappingURL=ShowHide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShowHide.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/Navigation/components/ShowHide.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOrD,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,SAAS,CAAA;IACtB,WAAW,EAAE,SAAS,CAAA;IACtB,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAA;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,qLAgEpB,CAAA"}
@@ -0,0 +1,54 @@
1
+ 'use client';
2
+ import { __name } from "../../../../_virtual/_rolldown/runtime.js";
3
+ import { Stack } from "../../../Stack/index.js";
4
+ import { useNavigation } from "../NavigationProvider.js";
5
+ import { navigationShowHideStack } from "./styles.css.js";
6
+ import { Button } from "../../../Button/index.js";
7
+ import { memo, useState } from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+ import { ArrowDownIcon } from "@ultraviolet/icons/ArrowDownIcon";
10
+ import { ArrowUpIcon } from "@ultraviolet/icons/ArrowUpIcon";
11
+
12
+ //#region src/components/compositions/Navigation/components/ShowHide.tsx
13
+ const ShowHide = memo(({ showContent, hideContent, onShowHide, tooltip, "data-testid": dataTestId, style }) => {
14
+ const context = useNavigation();
15
+ if (!context) throw new Error("Navigation.ShowAll can only be used inside a NavigationProvider.");
16
+ const { expanded, showHide } = context;
17
+ const [computedShown, setIsShown] = useState(showHide === "show");
18
+ const onClick = () => {
19
+ setIsShown(!computedShown);
20
+ onShowHide === null || onShowHide === void 0 || onShowHide(computedShown ? "hide" : "show");
21
+ };
22
+ if (expanded) return /* @__PURE__ */ jsx(Stack, {
23
+ className: navigationShowHideStack,
24
+ justifyContent: "flex-end",
25
+ style,
26
+ children: /* @__PURE__ */ jsx(Button, {
27
+ "data-testid": dataTestId,
28
+ onClick,
29
+ sentiment: "primary",
30
+ size: "small",
31
+ style,
32
+ variant: "ghost",
33
+ children: computedShown ? hideContent : showContent
34
+ })
35
+ });
36
+ return /* @__PURE__ */ jsx(Stack, {
37
+ alignItems: "center",
38
+ className: navigationShowHideStack,
39
+ justifyContent: "flex-end",
40
+ style,
41
+ children: /* @__PURE__ */ jsx(Button, {
42
+ "data-testid": dataTestId,
43
+ onClick,
44
+ sentiment: "primary",
45
+ size: "small",
46
+ tooltip,
47
+ variant: "ghost",
48
+ children: computedShown ? /* @__PURE__ */ jsx(ArrowUpIcon, {}) : /* @__PURE__ */ jsx(ArrowDownIcon, {})
49
+ })
50
+ });
51
+ });
52
+
53
+ //#endregion
54
+ export { ShowHide };
@@ -0,0 +1,98 @@
1
+ export declare const navigationItemMenuContainer: string;
2
+ export declare const navigationItemRelative: string;
3
+ export declare const navigationItemPadded: string;
4
+ export declare const navigationItemPinIcon: Record<"active" | "inactive", string>;
5
+ export declare const navigationItemMenu: string;
6
+ export declare const navigationItemMenuPinned: string;
7
+ export declare const navigationItemContainerBase: string;
8
+ export declare const navigationItemContainer: import("@vanilla-extract/recipes").RuntimeFn<{
9
+ disabled: {
10
+ true: {
11
+ backgroundColor: "unset";
12
+ cursor: "not-allowed";
13
+ };
14
+ };
15
+ hasActive: {
16
+ true: {
17
+ backgroundColor: `var(--${string})`;
18
+ };
19
+ };
20
+ isActive: {
21
+ true: {
22
+ backgroundColor: `var(--${string})`;
23
+ selectors: {
24
+ '&:hover': {
25
+ backgroundColor: `var(--${string})`;
26
+ };
27
+ };
28
+ };
29
+ };
30
+ noExpand: {
31
+ false: {
32
+ cursor: "pointer";
33
+ };
34
+ };
35
+ subLabel: {
36
+ true: {
37
+ padding: `var(--${string}) var(--${string})`;
38
+ };
39
+ };
40
+ }>;
41
+ export declare const navigationItemContainerAnimated: import("@vanilla-extract/recipes").RuntimeFn<{
42
+ animated: {
43
+ true: {};
44
+ };
45
+ animation: {
46
+ collapse: {};
47
+ expand: {};
48
+ };
49
+ }>;
50
+ export declare const navigationItemShowDraggable: string;
51
+ export declare const navigationItemShowPinButton: string;
52
+ export declare const navigationItemWeakText: string;
53
+ export declare const navigationItemVariants: import("@vanilla-extract/recipes").RuntimeFn<{
54
+ showDraggableIcon: {
55
+ true: string;
56
+ };
57
+ showPinIcon: {
58
+ true: string;
59
+ };
60
+ shouldHaveWeakText: {
61
+ true: string;
62
+ };
63
+ }>;
64
+ export declare const navigationItemDragIcon: string;
65
+ export declare const navigationItemWrapText: import("@vanilla-extract/recipes").RuntimeFn<{
66
+ disabled: {
67
+ true: {
68
+ color: `var(--${string})`;
69
+ };
70
+ };
71
+ weak: {
72
+ true: {
73
+ color: `var(--${string})`;
74
+ };
75
+ };
76
+ }>;
77
+ export declare const navigationItemBadge: string;
78
+ export declare const navigationItemPinnedButton: string;
79
+ export declare const navigationItemAnimatedIcon: import("@vanilla-extract/recipes").RuntimeFn<{
80
+ animated: {
81
+ true: {};
82
+ };
83
+ animation: {
84
+ collapse: {};
85
+ expand: {};
86
+ };
87
+ }>;
88
+ export declare const navigationItemMenuStack: string;
89
+ export declare const navigationItemStackIcon: string;
90
+ export declare const navigationItemCategoryIcon: string;
91
+ export declare const navigationItemPaddingStack: import("@vanilla-extract/recipes").RuntimeFn<{
92
+ hide: {
93
+ true: {
94
+ display: "none";
95
+ };
96
+ };
97
+ }>;
98
+ //# sourceMappingURL=items.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.css.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/Navigation/components/items.css.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,2BAA2B,QAAwB,CAAA;AAEhE,eAAO,MAAM,sBAAsB,QAAkC,CAAA;AAErE,eAAO,MAAM,oBAAoB,QAAyC,CAAA;AAW1E,eAAO,MAAM,qBAAqB,uCAiBhC,CAAA;AAEF,eAAO,MAAM,kBAAkB,QAE7B,CAAA;AAEF,eAAO,MAAM,wBAAwB,QAAY,CAAA;AAEjD,eAAO,MAAM,2BAA2B,QAUtC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+ElC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;EAwB1C,CAAA;AAEF,eAAO,MAAM,2BAA2B,QAAY,CAAA;AACpD,eAAO,MAAM,2BAA2B,QAAY,CAAA;AACpD,eAAO,MAAM,sBAAsB,QAAY,CAAA;AAE/C,eAAO,MAAM,sBAAsB;;;;;;;;;;EAYjC,CAAA;AAEF,eAAO,MAAM,sBAAsB,QAUjC,CAAA;AACF,eAAO,MAAM,sBAAsB;;;;;;;;;;;EA6BjC,CAAA;AAEF,eAAO,MAAM,mBAAmB,QAgB9B,CAAA;AAEF,eAAO,MAAM,0BAA0B,QA2BrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;EAwBrC,CAAA;AAEF,eAAO,MAAM,uBAAuB,QAIlC,CAAA;AAEF,eAAO,MAAM,uBAAuB,QAElC,CAAA;AAEF,eAAO,MAAM,0BAA0B,QAErC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;EAWrC,CAAA"}
@@ -0,0 +1,123 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ /* empty css */
4
+ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
5
+
6
+ //#region src/components/compositions/Navigation/components/items.css.ts
7
+ var navigationItemMenuContainer = "uv_5h81qo0";
8
+ var navigationItemRelative = "uv_5h81qo1";
9
+ var navigationItemPadded = "uv_5h81qo2";
10
+ var navigationItemPinIcon = {
11
+ active: "uv_5h81qo4 uv_5h81qo3",
12
+ inactive: "uv_5h81qo5 uv_5h81qo3"
13
+ };
14
+ var navigationItemMenu = "uv_5h81qo6";
15
+ var navigationItemMenuPinned = "uv_5h81qo7";
16
+ var navigationItemContainer = createRuntimeFn({
17
+ defaultClassName: "uv_5h81qo9 uv_5h81qo8",
18
+ variantClassNames: {
19
+ disabled: { true: "uv_5h81qoa" },
20
+ hasActive: { true: "uv_5h81qob" },
21
+ isActive: { true: "uv_5h81qoc" },
22
+ noExpand: { false: "uv_5h81qod" },
23
+ subLabel: { true: "uv_5h81qoe" }
24
+ },
25
+ defaultVariants: {
26
+ disabled: false,
27
+ hasActive: false,
28
+ isActive: false,
29
+ noExpand: false,
30
+ subLabel: false
31
+ },
32
+ compoundVariants: [
33
+ [{
34
+ disabled: false,
35
+ isActive: false,
36
+ noExpand: false
37
+ }, "uv_5h81qof"],
38
+ [{
39
+ disabled: false,
40
+ hasActive: true,
41
+ isActive: false,
42
+ noExpand: false
43
+ }, "uv_5h81qog"],
44
+ [{
45
+ disabled: false,
46
+ isActive: false,
47
+ noExpand: false
48
+ }, "uv_5h81qoh"]
49
+ ]
50
+ });
51
+ var navigationItemContainerAnimated = createRuntimeFn({
52
+ defaultClassName: "uv_5h81qoi",
53
+ variantClassNames: {
54
+ animated: { true: "uv_5h81qoj" },
55
+ animation: {
56
+ collapse: "uv_5h81qok",
57
+ expand: "uv_5h81qol"
58
+ }
59
+ },
60
+ defaultVariants: {},
61
+ compoundVariants: [[{
62
+ animated: true,
63
+ animation: "collapse"
64
+ }, "uv_5h81qom"], [{
65
+ animated: true,
66
+ animation: "expand"
67
+ }, "uv_5h81qon"]]
68
+ });
69
+ var navigationItemVariants = createRuntimeFn({
70
+ defaultClassName: "uv_5h81qor",
71
+ variantClassNames: {
72
+ showDraggableIcon: { true: "uv_5h81qos uv_5h81qoo" },
73
+ showPinIcon: { true: "uv_5h81qot uv_5h81qop" },
74
+ shouldHaveWeakText: { true: "uv_5h81qou uv_5h81qoq" }
75
+ },
76
+ defaultVariants: {},
77
+ compoundVariants: []
78
+ });
79
+ var navigationItemDragIcon = "uv_5h81qov";
80
+ var navigationItemWrapText = createRuntimeFn({
81
+ defaultClassName: "uv_5h81qow",
82
+ variantClassNames: {
83
+ disabled: { true: "uv_5h81qox" },
84
+ weak: { true: "uv_5h81qoy" }
85
+ },
86
+ defaultVariants: {
87
+ disabled: false,
88
+ weak: false
89
+ },
90
+ compoundVariants: []
91
+ });
92
+ var navigationItemBadge = "uv_5h81qoz";
93
+ var navigationItemPinnedButton = "uv_5h81qo10";
94
+ var navigationItemAnimatedIcon = createRuntimeFn({
95
+ defaultClassName: "uv_5h81qo11",
96
+ variantClassNames: {
97
+ animated: { true: "uv_5h81qo12" },
98
+ animation: {
99
+ collapse: "uv_5h81qo13",
100
+ expand: "uv_5h81qo14"
101
+ }
102
+ },
103
+ defaultVariants: {},
104
+ compoundVariants: [[{
105
+ animated: true,
106
+ animation: "collapse"
107
+ }, "uv_5h81qo15"], [{
108
+ animated: true,
109
+ animation: "expand"
110
+ }, "uv_5h81qo16"]]
111
+ });
112
+ var navigationItemMenuStack = "uv_5h81qo17";
113
+ var navigationItemStackIcon = "uv_5h81qo18";
114
+ var navigationItemCategoryIcon = "uv_5h81qo19";
115
+ var navigationItemPaddingStack = createRuntimeFn({
116
+ defaultClassName: "uv_5h81qo1a",
117
+ variantClassNames: { hide: { true: "uv_5h81qo1b" } },
118
+ defaultVariants: {},
119
+ compoundVariants: []
120
+ });
121
+
122
+ //#endregion
123
+ export { navigationItemAnimatedIcon, navigationItemBadge, navigationItemCategoryIcon, navigationItemContainer, navigationItemContainerAnimated, navigationItemDragIcon, navigationItemMenu, navigationItemMenuContainer, navigationItemMenuPinned, navigationItemMenuStack, navigationItemPadded, navigationItemPaddingStack, navigationItemPinIcon, navigationItemPinnedButton, navigationItemRelative, navigationItemStackIcon, navigationItemVariants, navigationItemWrapText };
@@ -0,0 +1,25 @@
1
+ export declare const navigationGroupText: import("@vanilla-extract/recipes").RuntimeFn<{
2
+ animation: {
3
+ collapse: {
4
+ animation: `${string} 250ms ease-in-out reverse`;
5
+ };
6
+ expand: {
7
+ animation: `${string} 250ms ease-in-out`;
8
+ };
9
+ false: {};
10
+ };
11
+ }>;
12
+ export declare const navigationGroupStack: string;
13
+ export declare const navigationPinnedItemDropableArea: string;
14
+ export declare const navigationPinnedItemRelativeDiv: string;
15
+ export declare const navigationPinnedItemContainer: import("@vanilla-extract/recipes").RuntimeFn<{
16
+ expanded: {
17
+ true: {
18
+ marginLeft: `var(--${string})`;
19
+ paddingLeft: `var(--${string})`;
20
+ };
21
+ };
22
+ }>;
23
+ export declare const navigationSeparator: string;
24
+ export declare const navigationShowHideStack: string;
25
+ //# sourceMappingURL=styles.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/Navigation/components/styles.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB;;;;;;;;;;EAkB9B,CAAA;AAEF,eAAO,MAAM,oBAAoB,QAAwC,CAAA;AAEzE,eAAO,MAAM,gCAAgC,QAsB3C,CAAA;AAEF,eAAO,MAAM,+BAA+B,QAE1C,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;EAYxC,CAAA;AAEF,eAAO,MAAM,mBAAmB,QAG9B,CAAA;AAEF,eAAO,MAAM,uBAAuB,QAElC,CAAA"}
@@ -0,0 +1,29 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
4
+
5
+ //#region src/components/compositions/Navigation/components/styles.css.ts
6
+ var navigationGroupText = createRuntimeFn({
7
+ defaultClassName: "uv_1kj9apl0",
8
+ variantClassNames: { animation: {
9
+ collapse: "uv_1kj9apl1",
10
+ expand: "uv_1kj9apl2",
11
+ false: "uv_1kj9apl3"
12
+ } },
13
+ defaultVariants: {},
14
+ compoundVariants: []
15
+ });
16
+ var navigationGroupStack = "uv_1kj9apl4";
17
+ var navigationPinnedItemDropableArea = "uv_1kj9apl5";
18
+ var navigationPinnedItemRelativeDiv = "uv_1kj9apl6";
19
+ var navigationPinnedItemContainer = createRuntimeFn({
20
+ defaultClassName: "uv_1kj9apl7",
21
+ variantClassNames: { expanded: { true: "uv_1kj9apl8" } },
22
+ defaultVariants: {},
23
+ compoundVariants: []
24
+ });
25
+ var navigationSeparator = "uv_1kj9apl9";
26
+ var navigationShowHideStack = "uv_1kj9apla";
27
+
28
+ //#endregion
29
+ export { navigationGroupStack, navigationGroupText, navigationPinnedItemContainer, navigationPinnedItemDropableArea, navigationPinnedItemRelativeDiv, navigationSeparator, navigationShowHideStack };
@@ -0,0 +1,10 @@
1
+ export declare const NAVIGATION_MIN_WIDTH = 220;
2
+ export declare const NAVIGATION_WIDTH = 280;
3
+ export declare const NAVIGATION_COLLASPED_WIDTH = 67;
4
+ export declare const NAVIGATION_MAX_WIDTH = 320;
5
+ /**
6
+ * ANIMATIONS
7
+ * collapse and expand animation duration of the whole nav in ms
8
+ */
9
+ export declare const ANIMATION_DURATION = 250;
10
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/Navigation/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,MAAM,CAAA;AACvC,eAAO,MAAM,gBAAgB,MAAM,CAAA;AACnC,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAC5C,eAAO,MAAM,oBAAoB,MAAM,CAAA;AAEvC;;;GAGG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAA"}
@@ -0,0 +1,65 @@
1
+ import { NavigationProvider, useNavigation } from './NavigationProvider';
2
+ import type { NavigationProps } from './types';
3
+ export declare function Navigation({ 'data-testid': dataTestId, children, className, id, logo, onToggleExpand, onWidthResize, style }: NavigationProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare namespace Navigation {
5
+ var Group: ({ children, label, style, additionalData, }: {
6
+ children: import("react").ReactNode;
7
+ label: string;
8
+ style?: import("react").CSSProperties | undefined;
9
+ additionalData?: import("react").ReactNode;
10
+ }) => import("react/jsx-runtime").JSX.Element | null;
11
+ }
12
+ export declare namespace Navigation {
13
+ var Item: import("react").MemoExoticComponent<({ children, categoryIcon, label, labelDescription, subLabel, badgeText, badgeSentiment, href, target, rel, onToggle, onClickPinUnpin, toggle, active, noPinButton, type, as, disabled, noExpand, index, id, 'data-testid': dataTestId, style, alwaysVisible, }: {
14
+ children?: import("react").ReactNode;
15
+ categoryIcon?: import("react").ReactNode;
16
+ label: string;
17
+ labelDescription?: import("react").ReactNode;
18
+ id: string;
19
+ subLabel?: string | undefined;
20
+ badgeText?: string | undefined;
21
+ badgeSentiment?: "black" | "danger" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | "white" | undefined;
22
+ href?: string | undefined;
23
+ target?: string | undefined;
24
+ rel?: string | undefined;
25
+ onToggle?: ((toggle: boolean) => void) | undefined;
26
+ onClickPinUnpin?: ((parameters: import("./types").PinUnPinType) => void) | undefined;
27
+ toggle?: boolean | undefined;
28
+ active?: boolean | undefined;
29
+ noPinButton?: boolean | undefined;
30
+ type?: import("./types").ItemType | undefined;
31
+ index?: number | undefined;
32
+ as?: import("react").ElementType | undefined;
33
+ noExpand?: boolean | undefined;
34
+ alwaysVisible?: boolean | undefined;
35
+ disabled?: boolean | undefined;
36
+ 'data-testid'?: string | undefined;
37
+ style?: import("react").CSSProperties | undefined;
38
+ }) => import("react/jsx-runtime").JSX.Element | null>;
39
+ }
40
+ export declare namespace Navigation {
41
+ var PinnedItems: ({ toggle, onReorder, onToggle, itemWrapper, style, }: {
42
+ toggle?: boolean | undefined;
43
+ onToggle?: ((toggle: boolean) => void) | undefined;
44
+ onReorder?: ((pinnedItems: string[]) => void) | undefined;
45
+ itemWrapper?: ((item: import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>, itemId: string) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>) | undefined;
46
+ style?: import("react").CSSProperties | undefined;
47
+ }) => import("react/jsx-runtime").JSX.Element | null;
48
+ }
49
+ export declare namespace Navigation {
50
+ var Separator: () => import("react/jsx-runtime").JSX.Element;
51
+ }
52
+ export declare namespace Navigation {
53
+ var ShowHide: import("react").MemoExoticComponent<({ showContent, hideContent, onShowHide, tooltip, 'data-testid': dataTestId, style, }: {
54
+ showContent: import("react").ReactNode;
55
+ hideContent: import("react").ReactNode;
56
+ onShowHide?: ((expanded: "hide" | "show") => void) | undefined;
57
+ disabled?: boolean | undefined;
58
+ tooltip?: string | undefined;
59
+ 'data-testid'?: string | undefined;
60
+ style?: import("react").CSSProperties | undefined;
61
+ }) => import("react/jsx-runtime").JSX.Element>;
62
+ }
63
+ export { NavigationProvider, useNavigation };
64
+ export type { NavigationProps };
65
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/Navigation/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;mCAOnB,EACzB,aAAa,EAAE,UAAU,EACzB,QAAQ,EACR,SAAS,EACT,EAAE,EACF,IAAI,EACJ,cAAc,EACd,aAAa,EACb,KAAK,EACN,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBlB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,CAAA;AAC5C,YAAY,EAAE,eAAe,EAAE,CAAA"}
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+ import { __name } from "../../../_virtual/_rolldown/runtime.js";
3
+ import { NavigationProvider, useNavigation } from "./NavigationProvider.js";
4
+ import { Group } from "./components/Group.js";
5
+ import { Item } from "./components/Item.js";
6
+ import { PinnedItems } from "./components/PinnedItems.js";
7
+ import { Separator } from "./components/Separator.js";
8
+ import { ShowHide } from "./components/ShowHide.js";
9
+ import { NavigationContent } from "./NavigationContent.js";
10
+ import { jsx } from "react/jsx-runtime";
11
+
12
+ //#region src/components/compositions/Navigation/index.tsx
13
+ /**
14
+ * Navigation is a component that allows you to create a sidebar navigation.
15
+ * You can wrap your navigation items like `<Navigation.Item>` with your router
16
+ * to make it work in your application.
17
+ */
18
+ const Navigation = ({ "data-testid": dataTestId, children, className, id, logo, onToggleExpand, onWidthResize, style }) => /* @__PURE__ */ jsx(NavigationContent, {
19
+ className,
20
+ "data-testid": dataTestId,
21
+ id,
22
+ logo,
23
+ onToggleExpand,
24
+ onWidthResize,
25
+ style,
26
+ children
27
+ });
28
+ Navigation.Group = Group;
29
+ Navigation.Item = Item;
30
+ Navigation.PinnedItems = PinnedItems;
31
+ Navigation.Separator = Separator;
32
+ Navigation.ShowHide = ShowHide;
33
+
34
+ //#endregion
35
+ export { Navigation, NavigationProvider, useNavigation };
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ readonly 'navigation.collapse.button': "Collapse sidebar";
3
+ readonly 'navigation.expand.button': "Expand sidebar";
4
+ readonly 'navigation.pin.limit': "You cannot pin more products";
5
+ readonly 'navigation.pin.tooltip': "Pin product";
6
+ readonly 'navigation.pinned.item.group.empty': "You have no pinned items.";
7
+ readonly 'navigation.pinned.item.group.label': "Pinned items";
8
+ readonly 'navigation.unpin.tooltip': "Unpin product";
9
+ };
10
+ export default _default;
11
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/Navigation/locales/en.ts"],"names":[],"mappings":";;;;;;;;;AAAA,wBAQU"}