@cryptlex/web-components 2.0.2 → 3.1.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 (491) hide show
  1. package/README.md +3 -7
  2. package/dist/components/data-table/column-picker.es.js +45 -74
  3. package/dist/components/data-table/column-picker.es.js.map +1 -1
  4. package/dist/components/data-table/data-table.es.js +147 -156
  5. package/dist/components/data-table/data-table.es.js.map +1 -1
  6. package/dist/components/data-table/page-size.es.js +18 -16
  7. package/dist/components/data-table/page-size.es.js.map +1 -1
  8. package/dist/components/data-table/paginator.es.js +37 -30
  9. package/dist/components/data-table/paginator.es.js.map +1 -1
  10. package/dist/components/data-table/table-actions.es.js +29 -61
  11. package/dist/components/data-table/table-actions.es.js.map +1 -1
  12. package/dist/components/data-table/table-commons.es.js +17 -17
  13. package/dist/components/data-table/table-commons.es.js.map +1 -1
  14. package/dist/components/data-table/table-content.es.js +82 -44
  15. package/dist/components/data-table/table-content.es.js.map +1 -1
  16. package/dist/components/data-table/table-utils/constants.es.js.map +1 -1
  17. package/dist/components/data-table/table-utils/createTableFetchFn.es.js +14 -13
  18. package/dist/components/data-table/table-utils/createTableFetchFn.es.js.map +1 -1
  19. package/dist/components/data-table/table-utils/date.es.js.map +1 -1
  20. package/dist/components/data-table/table-utils/string.es.js +2 -2
  21. package/dist/components/data-table/table-utils/string.es.js.map +1 -1
  22. package/dist/components/data-table/table-utils/types.es.js.map +1 -1
  23. package/dist/components/inputs/calendar.es.js +61 -0
  24. package/dist/components/inputs/calendar.es.js.map +1 -0
  25. package/dist/components/inputs/checkbox.es.js +34 -0
  26. package/dist/components/inputs/checkbox.es.js.map +1 -0
  27. package/dist/components/inputs/country-select.es.js +283 -0
  28. package/dist/components/inputs/country-select.es.js.map +1 -0
  29. package/dist/components/inputs/form-field.es.js +62 -0
  30. package/dist/components/inputs/form-field.es.js.map +1 -0
  31. package/dist/components/inputs/input-otp.es.js +60 -0
  32. package/dist/components/inputs/input-otp.es.js.map +1 -0
  33. package/dist/components/inputs/input.es.js +52 -0
  34. package/dist/components/inputs/input.es.js.map +1 -0
  35. package/dist/components/inputs/license-type-select.es.js +30 -0
  36. package/dist/components/inputs/license-type-select.es.js.map +1 -0
  37. package/dist/components/inputs/multi-select.es.js +70 -0
  38. package/dist/components/inputs/multi-select.es.js.map +1 -0
  39. package/dist/components/inputs/password-input.es.js +24 -0
  40. package/dist/components/inputs/password-input.es.js.map +1 -0
  41. package/dist/components/inputs/radio-group.es.js +37 -0
  42. package/dist/components/inputs/radio-group.es.js.map +1 -0
  43. package/dist/components/{ui → inputs}/search-input.es.js +14 -11
  44. package/dist/components/inputs/search-input.es.js.map +1 -0
  45. package/dist/components/inputs/select.es.js +49 -0
  46. package/dist/components/inputs/select.es.js.map +1 -0
  47. package/dist/components/inputs/textarea.es.js +27 -0
  48. package/dist/components/inputs/textarea.es.js.map +1 -0
  49. package/dist/components/key-value-card/key-value-card.es.js +36 -64
  50. package/dist/components/key-value-card/key-value-card.es.js.map +1 -1
  51. package/dist/components/ui/accordion.es.js +49 -44
  52. package/dist/components/ui/accordion.es.js.map +1 -1
  53. package/dist/components/ui/avatar.es.js +16 -38
  54. package/dist/components/ui/avatar.es.js.map +1 -1
  55. package/dist/components/ui/badge.es.js +13 -4
  56. package/dist/components/ui/badge.es.js.map +1 -1
  57. package/dist/components/ui/breadcrumb.es.js +97 -82
  58. package/dist/components/ui/breadcrumb.es.js.map +1 -1
  59. package/dist/components/ui/button.es.js +42 -36
  60. package/dist/components/ui/button.es.js.map +1 -1
  61. package/dist/components/ui/card.es.js +50 -65
  62. package/dist/components/ui/card.es.js.map +1 -1
  63. package/dist/components/ui/collapsible.es.js +5 -5
  64. package/dist/components/ui/collapsible.es.js.map +1 -1
  65. package/dist/components/ui/copy-button.es.js +26 -47
  66. package/dist/components/ui/copy-button.es.js.map +1 -1
  67. package/dist/components/ui/dialog.es.js +95 -95
  68. package/dist/components/ui/dialog.es.js.map +1 -1
  69. package/dist/components/ui/drawer.es.js +96 -55
  70. package/dist/components/ui/drawer.es.js.map +1 -1
  71. package/dist/components/ui/dropdown-menu.es.js +128 -134
  72. package/dist/components/ui/dropdown-menu.es.js.map +1 -1
  73. package/dist/components/ui/label.es.js +19 -17
  74. package/dist/components/ui/label.es.js.map +1 -1
  75. package/dist/components/ui/loader.es.js +6 -6
  76. package/dist/components/ui/loader.es.js.map +1 -1
  77. package/dist/components/ui/pagination.es.js +107 -96
  78. package/dist/components/ui/pagination.es.js.map +1 -1
  79. package/dist/components/ui/popover.es.js +28 -22
  80. package/dist/components/ui/popover.es.js.map +1 -1
  81. package/dist/components/ui/separator.es.js +24 -20
  82. package/dist/components/ui/separator.es.js.map +1 -1
  83. package/dist/components/ui/sheet.es.js +104 -67
  84. package/dist/components/ui/sheet.es.js.map +1 -1
  85. package/dist/components/ui/sidebar.es.js +434 -452
  86. package/dist/components/ui/sidebar.es.js.map +1 -1
  87. package/dist/components/ui/skeleton.es.js +3 -12
  88. package/dist/components/ui/skeleton.es.js.map +1 -1
  89. package/dist/components/ui/sonner.es.js +18 -16
  90. package/dist/components/ui/sonner.es.js.map +1 -1
  91. package/dist/components/{static-data-table → ui}/static-data-table.es.js +8 -11
  92. package/dist/components/ui/static-data-table.es.js.map +1 -0
  93. package/dist/components/ui/table-page-layout.es.js.map +1 -1
  94. package/dist/components/ui/table.es.js +76 -87
  95. package/dist/components/ui/table.es.js.map +1 -1
  96. package/dist/components/ui/tabs.es.js +52 -43
  97. package/dist/components/ui/tabs.es.js.map +1 -1
  98. package/dist/components/ui/tooltip.es.js +24 -20
  99. package/dist/components/ui/tooltip.es.js.map +1 -1
  100. package/dist/hooks/use-mobile.es.js +3 -1
  101. package/dist/hooks/use-mobile.es.js.map +1 -1
  102. package/dist/index.es.d.ts +247 -511
  103. package/dist/index.es.js +230 -271
  104. package/dist/index.es.js.map +1 -1
  105. package/dist/node_modules/.pnpm/@date-fns_tz@1.2.0/node_modules/@date-fns/tz/date/index.es.js +67 -0
  106. package/dist/node_modules/.pnpm/@date-fns_tz@1.2.0/node_modules/@date-fns/tz/date/index.es.js.map +1 -0
  107. package/dist/node_modules/.pnpm/@date-fns_tz@1.2.0/node_modules/@date-fns/tz/date/mini.es.js +65 -0
  108. package/dist/node_modules/.pnpm/@date-fns_tz@1.2.0/node_modules/@date-fns/tz/date/mini.es.js.map +1 -0
  109. package/dist/node_modules/.pnpm/@date-fns_tz@1.2.0/node_modules/@date-fns/tz/tzOffset/index.es.js +24 -0
  110. package/dist/node_modules/.pnpm/@date-fns_tz@1.2.0/node_modules/@date-fns/tz/tzOffset/index.es.js.map +1 -0
  111. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.es.js +530 -0
  112. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.es.js.map +1 -0
  113. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js +400 -0
  114. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js.map +1 -0
  115. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.2_react-dom@19.1.0_react@19.1.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.es.js +208 -0
  116. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.2_react-dom@19.1.0_react@19.1.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.es.js.map +1 -0
  117. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js +132 -0
  118. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js.map +1 -0
  119. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js +130 -0
  120. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js.map +1 -0
  121. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.es.js +10 -0
  122. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
  123. package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.11_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-accordion/dist/index.es.js +242 -0
  124. package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.11_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-accordion/dist/index.es.js.map +1 -0
  125. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-arrow/dist/index.es.js +25 -0
  126. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -0
  127. package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.11_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-collapsible/dist/index.es.js +122 -0
  128. package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.11_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-collapsible/dist/index.es.js.map +1 -0
  129. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-collection/dist/index.es.js +50 -0
  130. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-collection/dist/index.es.js.map +1 -0
  131. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +30 -0
  132. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
  133. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.es.js +71 -0
  134. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
  135. package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.14_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dialog/dist/index.es.js +264 -0
  136. package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.14_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -0
  137. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-direction/dist/index.es.js +11 -0
  138. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-direction/dist/index.es.js.map +1 -0
  139. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.10_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +129 -0
  140. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.10_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
  141. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.15_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dropdown-menu/dist/index.es.js +229 -0
  142. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.15_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dropdown-menu/dist/index.es.js.map +1 -0
  143. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-focus-guards/dist/index.es.js +19 -0
  144. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-focus-guards/dist/index.es.js.map +1 -0
  145. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +139 -0
  146. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -0
  147. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.es.js +14 -0
  148. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -0
  149. package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-label/dist/index.es.js +22 -0
  150. package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-label/dist/index.es.js.map +1 -0
  151. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.15_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-menu/dist/index.es.js +654 -0
  152. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.15_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-menu/dist/index.es.js.map +1 -0
  153. package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1.14_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-popover/dist/index.es.js +246 -0
  154. package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1.14_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-popover/dist/index.es.js.map +1 -0
  155. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-popper/dist/index.es.js +222 -0
  156. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -0
  157. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-portal/dist/index.es.js +18 -0
  158. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
  159. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.4_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-presence/dist/index.es.js +73 -0
  160. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.4_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -0
  161. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-primitive/dist/index.es.js +37 -0
  162. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  163. package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.3.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-radio-group/dist/index.es.js +241 -0
  164. package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.3.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-radio-group/dist/index.es.js.map +1 -0
  165. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.10_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-roving-focus/dist/index.es.js +185 -0
  166. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.10_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-roving-focus/dist/index.es.js.map +1 -0
  167. package/dist/node_modules/.pnpm/@radix-ui_react-separator@1.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-separator/dist/index.es.js +25 -0
  168. package/dist/node_modules/.pnpm/@radix-ui_react-separator@1.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-separator/dist/index.es.js.map +1 -0
  169. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.es.js +60 -0
  170. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  171. package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.12_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-tabs/dist/index.es.js +166 -0
  172. package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.12_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-tabs/dist/index.es.js.map +1 -0
  173. package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-tooltip/dist/index.es.js +341 -0
  174. package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -0
  175. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +14 -0
  176. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  177. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +55 -0
  178. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
  179. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js +15 -0
  180. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js.map +1 -0
  181. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +7 -0
  182. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -0
  183. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-previous/dist/index.es.js +9 -0
  184. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-previous/dist/index.es.js.map +1 -0
  185. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-size/dist/index.es.js +28 -0
  186. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-size/dist/index.es.js.map +1 -0
  187. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +33 -0
  188. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -0
  189. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.es.js +53 -0
  190. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.es.js.map +1 -0
  191. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.es.js +10 -0
  192. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.es.js.map +1 -0
  193. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.es.js +19 -0
  194. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.es.js.map +1 -0
  195. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.es.js +32 -0
  196. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.es.js.map +1 -0
  197. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.es.js +16 -0
  198. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.es.js.map +1 -0
  199. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.es.js +71 -0
  200. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.es.js.map +1 -0
  201. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.es.js +34 -0
  202. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.es.js.map +1 -0
  203. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.es.js +12 -0
  204. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.es.js.map +1 -0
  205. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.es.js +156 -0
  206. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.es.js.map +1 -0
  207. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.es.js +111 -0
  208. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.es.js.map +1 -0
  209. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.es.js +22 -0
  210. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.es.js.map +1 -0
  211. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.es.js +8 -0
  212. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.es.js.map +1 -0
  213. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/DayPicker.es.js +209 -0
  214. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/DayPicker.es.js.map +1 -0
  215. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/UI.es.js +23 -0
  216. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/UI.es.js.map +1 -0
  217. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/CalendarDay.es.js +20 -0
  218. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/CalendarDay.es.js.map +1 -0
  219. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.es.js +9 -0
  220. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.es.js.map +1 -0
  221. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.es.js +9 -0
  222. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.es.js.map +1 -0
  223. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/DateLib.es.js +166 -0
  224. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/DateLib.es.js.map +1 -0
  225. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Button.es.js +8 -0
  226. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Button.es.js.map +1 -0
  227. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/CaptionLabel.es.js +8 -0
  228. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/CaptionLabel.es.js.map +1 -0
  229. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Chevron.es.js +16 -0
  230. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Chevron.es.js.map +1 -0
  231. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Day.es.js +9 -0
  232. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Day.es.js.map +1 -0
  233. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/DayButton.es.js +12 -0
  234. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/DayButton.es.js.map +1 -0
  235. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Dropdown.es.js +20 -0
  236. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Dropdown.es.js.map +1 -0
  237. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/DropdownNav.es.js +8 -0
  238. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/DropdownNav.es.js.map +1 -0
  239. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Footer.es.js +8 -0
  240. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Footer.es.js.map +1 -0
  241. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Month.es.js +9 -0
  242. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Month.es.js.map +1 -0
  243. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/MonthCaption.es.js +9 -0
  244. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/MonthCaption.es.js.map +1 -0
  245. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/MonthGrid.es.js +8 -0
  246. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/MonthGrid.es.js.map +1 -0
  247. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Months.es.js +8 -0
  248. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Months.es.js.map +1 -0
  249. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.es.js +10 -0
  250. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.es.js.map +1 -0
  251. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Nav.es.js +28 -0
  252. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Nav.es.js.map +1 -0
  253. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/NextMonthButton.es.js +10 -0
  254. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/NextMonthButton.es.js.map +1 -0
  255. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Option.es.js +8 -0
  256. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Option.es.js.map +1 -0
  257. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.es.js +10 -0
  258. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.es.js.map +1 -0
  259. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Root.es.js +9 -0
  260. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Root.es.js.map +1 -0
  261. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Select.es.js +8 -0
  262. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Select.es.js.map +1 -0
  263. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Week.es.js +9 -0
  264. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Week.es.js.map +1 -0
  265. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/WeekNumber.es.js +9 -0
  266. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/WeekNumber.es.js.map +1 -0
  267. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.es.js +8 -0
  268. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.es.js.map +1 -0
  269. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Weekday.es.js +8 -0
  270. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Weekday.es.js.map +1 -0
  271. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Weekdays.es.js +12 -0
  272. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Weekdays.es.js.map +1 -0
  273. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Weeks.es.js +8 -0
  274. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Weeks.es.js.map +1 -0
  275. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/YearsDropdown.es.js +10 -0
  276. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/YearsDropdown.es.js.map +1 -0
  277. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/custom-components.es.js +55 -0
  278. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/custom-components.es.js.map +1 -0
  279. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatCaption.es.js +10 -0
  280. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatCaption.es.js.map +1 -0
  281. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatDay.es.js +8 -0
  282. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatDay.es.js.map +1 -0
  283. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.es.js +8 -0
  284. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.es.js.map +1 -0
  285. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.es.js +8 -0
  286. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.es.js.map +1 -0
  287. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.es.js +7 -0
  288. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.es.js.map +1 -0
  289. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.es.js +8 -0
  290. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.es.js.map +1 -0
  291. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.es.js +10 -0
  292. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.es.js.map +1 -0
  293. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/index.es.js +19 -0
  294. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/formatters/index.es.js.map +1 -0
  295. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.es.js +20 -0
  296. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.es.js.map +1 -0
  297. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.es.js +43 -0
  298. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.es.js.map +1 -0
  299. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.es.js +10 -0
  300. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.es.js.map +1 -0
  301. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.es.js +8 -0
  302. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.es.js.map +1 -0
  303. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.es.js +8 -0
  304. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.es.js.map +1 -0
  305. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getComponents.es.js +11 -0
  306. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getComponents.es.js.map +1 -0
  307. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.es.js +17 -0
  308. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.es.js.map +1 -0
  309. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDates.es.js +22 -0
  310. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDates.es.js.map +1 -0
  311. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDays.es.js +11 -0
  312. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDays.es.js.map +1 -0
  313. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.es.js +17 -0
  314. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.es.js.map +1 -0
  315. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.es.js +14 -0
  316. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.es.js.map +1 -0
  317. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.es.js +16 -0
  318. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.es.js.map +1 -0
  319. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getFormatters.es.js +11 -0
  320. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getFormatters.es.js.map +1 -0
  321. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.es.js +14 -0
  322. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.es.js.map +1 -0
  323. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.es.js +14 -0
  324. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.es.js.map +1 -0
  325. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getMonths.es.js +25 -0
  326. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getMonths.es.js.map +1 -0
  327. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.es.js +14 -0
  328. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.es.js.map +1 -0
  329. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.es.js +13 -0
  330. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.es.js.map +1 -0
  331. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.es.js +13 -0
  332. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.es.js.map +1 -0
  333. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.es.js +13 -0
  334. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.es.js.map +1 -0
  335. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.es.js +14 -0
  336. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.es.js.map +1 -0
  337. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.es.js +12 -0
  338. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.es.js.map +1 -0
  339. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getWeeks.es.js +8 -0
  340. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getWeeks.es.js.map +1 -0
  341. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.es.js +20 -0
  342. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.es.js.map +1 -0
  343. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.es.js +8 -0
  344. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.es.js.map +1 -0
  345. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.es.js +9 -0
  346. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.es.js.map +1 -0
  347. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/index.es.js +27 -0
  348. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/index.es.js.map +1 -0
  349. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelDayButton.es.js +11 -0
  350. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelDayButton.es.js.map +1 -0
  351. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelGrid.es.js +10 -0
  352. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelGrid.es.js.map +1 -0
  353. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelGridcell.es.js +9 -0
  354. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelGridcell.es.js.map +1 -0
  355. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.es.js +7 -0
  356. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.es.js.map +1 -0
  357. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelNav.es.js +7 -0
  358. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelNav.es.js.map +1 -0
  359. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelNext.es.js +7 -0
  360. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelNext.es.js.map +1 -0
  361. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelPrevious.es.js +7 -0
  362. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelPrevious.es.js.map +1 -0
  363. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.es.js +7 -0
  364. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.es.js.map +1 -0
  365. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.es.js +7 -0
  366. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.es.js.map +1 -0
  367. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelWeekday.es.js +8 -0
  368. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelWeekday.es.js.map +1 -0
  369. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.es.js +7 -0
  370. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.es.js.map +1 -0
  371. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/selection/useMulti.es.js +22 -0
  372. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/selection/useMulti.es.js.map +1 -0
  373. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/selection/useRange.es.js +19 -0
  374. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/selection/useRange.es.js.map +1 -0
  375. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/selection/useSingle.es.js +16 -0
  376. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/selection/useSingle.es.js.map +1 -0
  377. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useAnimation.es.js +57 -0
  378. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useAnimation.es.js.map +1 -0
  379. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useCalendar.es.js +45 -0
  380. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useCalendar.es.js.map +1 -0
  381. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useDayPicker.es.js +13 -0
  382. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useDayPicker.es.js.map +1 -0
  383. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useFocus.es.js +24 -0
  384. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useFocus.es.js.map +1 -0
  385. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useSelection.es.js +20 -0
  386. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useSelection.es.js.map +1 -0
  387. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/addToRange.es.js +33 -0
  388. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/addToRange.es.js.map +1 -0
  389. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.es.js +27 -0
  390. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.es.js.map +1 -0
  391. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.es.js +16 -0
  392. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.es.js.map +1 -0
  393. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.es.js +29 -0
  394. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.es.js.map +1 -0
  395. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.es.js +10 -0
  396. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.es.js.map +1 -0
  397. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.es.js +9 -0
  398. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.es.js.map +1 -0
  399. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/typeguards.es.js +27 -0
  400. package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/typeguards.es.js.map +1 -0
  401. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js +72 -0
  402. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js.map +1 -0
  403. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js +8 -0
  404. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js.map +1 -0
  405. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js +26 -0
  406. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js.map +1 -0
  407. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/Combination.es.js +12 -0
  408. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/Combination.es.js.map +1 -0
  409. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js +113 -0
  410. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js.map +1 -0
  411. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/UI.es.js +32 -0
  412. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/UI.es.js.map +1 -0
  413. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js +17 -0
  414. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js.map +1 -0
  415. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js +65 -0
  416. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js.map +1 -0
  417. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/medium.es.js +6 -0
  418. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/medium.es.js.map +1 -0
  419. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js +8 -0
  420. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.0_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js.map +1 -0
  421. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.1.0_react@19.1.0/node_modules/react-style-singleton/dist/es2015/component.es.js +12 -0
  422. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.1.0_react@19.1.0/node_modules/react-style-singleton/dist/es2015/component.es.js.map +1 -0
  423. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.1.0_react@19.1.0/node_modules/react-style-singleton/dist/es2015/hook.es.js +16 -0
  424. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.1.0_react@19.1.0/node_modules/react-style-singleton/dist/es2015/hook.es.js.map +1 -0
  425. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.1.0_react@19.1.0/node_modules/react-style-singleton/dist/es2015/singleton.es.js +31 -0
  426. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.1.0_react@19.1.0/node_modules/react-style-singleton/dist/es2015/singleton.es.js.map +1 -0
  427. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.es.js +28 -0
  428. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.es.js.map +1 -0
  429. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.1.0_react@19.1.0/node_modules/use-callback-ref/dist/es2015/assignRef.es.js +7 -0
  430. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.1.0_react@19.1.0/node_modules/use-callback-ref/dist/es2015/assignRef.es.js.map +1 -0
  431. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.1.0_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js +27 -0
  432. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.1.0_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js.map +1 -0
  433. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.1.0_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useRef.es.js +26 -0
  434. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.1.0_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useRef.es.js.map +1 -0
  435. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.1.0_react@19.1.0/node_modules/use-sidecar/dist/es2015/exports.es.js +19 -0
  436. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.1.0_react@19.1.0/node_modules/use-sidecar/dist/es2015/exports.es.js.map +1 -0
  437. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.1.0_react@19.1.0/node_modules/use-sidecar/dist/es2015/medium.es.js +68 -0
  438. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.1.0_react@19.1.0/node_modules/use-sidecar/dist/es2015/medium.es.js.map +1 -0
  439. package/dist/utils/form-context.es.js +8 -0
  440. package/dist/utils/form-context.es.js.map +1 -0
  441. package/dist/utils/form-hook.es.js +28 -0
  442. package/dist/utils/form-hook.es.js.map +1 -0
  443. package/dist/utils/index.es.js.map +1 -1
  444. package/lib/base.css +47 -51
  445. package/lib/index.css +5 -5
  446. package/lib/theme.css +10 -7
  447. package/lib/tokens.css +156 -156
  448. package/lib/utilities.css +47 -24
  449. package/package.json +37 -51
  450. package/dist/components/data-table/table-filter.es.js +0 -261
  451. package/dist/components/data-table/table-filter.es.js.map +0 -1
  452. package/dist/components/data-table/table-utils/link-display.es.js +0 -21
  453. package/dist/components/data-table/table-utils/link-display.es.js.map +0 -1
  454. package/dist/components/sidebar/app-layout.es.js +0 -74
  455. package/dist/components/sidebar/app-layout.es.js.map +0 -1
  456. package/dist/components/sidebar/breadcrumb.es.js +0 -58
  457. package/dist/components/sidebar/breadcrumb.es.js.map +0 -1
  458. package/dist/components/sidebar/nav-main.es.js +0 -90
  459. package/dist/components/sidebar/nav-main.es.js.map +0 -1
  460. package/dist/components/sidebar/sidebar.es.js +0 -10
  461. package/dist/components/sidebar/sidebar.es.js.map +0 -1
  462. package/dist/components/static-data-table/static-data-table.es.js.map +0 -1
  463. package/dist/components/ui/calendar.es.js +0 -61
  464. package/dist/components/ui/calendar.es.js.map +0 -1
  465. package/dist/components/ui/chart.es.js +0 -174
  466. package/dist/components/ui/chart.es.js.map +0 -1
  467. package/dist/components/ui/checkbox.es.js +0 -22
  468. package/dist/components/ui/checkbox.es.js.map +0 -1
  469. package/dist/components/ui/command.es.js +0 -110
  470. package/dist/components/ui/command.es.js.map +0 -1
  471. package/dist/components/ui/form.es.js +0 -94
  472. package/dist/components/ui/form.es.js.map +0 -1
  473. package/dist/components/ui/input-otp.es.js +0 -49
  474. package/dist/components/ui/input-otp.es.js.map +0 -1
  475. package/dist/components/ui/input.es.js +0 -27
  476. package/dist/components/ui/input.es.js.map +0 -1
  477. package/dist/components/ui/link-button.es.js +0 -22
  478. package/dist/components/ui/link-button.es.js.map +0 -1
  479. package/dist/components/ui/mutli-select.es.js +0 -198
  480. package/dist/components/ui/mutli-select.es.js.map +0 -1
  481. package/dist/components/ui/navigation-menu.es.js +0 -121
  482. package/dist/components/ui/navigation-menu.es.js.map +0 -1
  483. package/dist/components/ui/password-input.es.js +0 -19
  484. package/dist/components/ui/password-input.es.js.map +0 -1
  485. package/dist/components/ui/radio-group.es.js +0 -32
  486. package/dist/components/ui/radio-group.es.js.map +0 -1
  487. package/dist/components/ui/search-input.es.js.map +0 -1
  488. package/dist/components/ui/select.es.js +0 -99
  489. package/dist/components/ui/select.es.js.map +0 -1
  490. package/dist/components/ui/textarea.es.js +0 -19
  491. package/dist/components/ui/textarea.es.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"constants.es.js","sources":["../../../../lib/components/data-table/table-utils/constants.ts"],"sourcesContent":["import { intervalToDuration } from 'date-fns';\nimport { convertCamelCaseToTitleCase } from './string';\n\nexport const FILTERABLE_PROPERTY_TYPES = [\n 'objectString',\n 'string',\n 'number',\n 'objectNumber',\n 'boolean',\n 'objectDate',\n 'licenseType',\n 'product',\n 'product-version',\n 'user',\n 'webhook',\n 'automated-email',\n 'organization',\n 'country',\n 'tag',\n 'resource',\n 'resourceId',\n 'reseller',\n 'role',\n 'note',\n 'os',\n 'action',\n] as const;\nexport type FilterablePropertyType = (typeof FILTERABLE_PROPERTY_TYPES)[number];\nexport type FilterableProperties<T> = {\n [K in keyof T]?: FilterablePropertyType;\n};\n\nexport const DEFAULT_FILTERABLE_FIELDS: FilterableProperties<any> = {\n createdAt: 'objectDate',\n updatedAt: 'objectDate',\n};\nexport const FILTER_COMPARISON_OPERATORS = [\n 'eq',\n 'ne',\n 'cn',\n 'nc',\n 'sw',\n 'ew',\n 'in',\n 'nin',\n 'gt',\n 'gte',\n 'lt',\n 'lte',\n] as const;\nexport type FilterComparisonOperator = (typeof FILTER_COMPARISON_OPERATORS)[number];\nexport type OperatorsForFilterType = Record<FilterablePropertyType, FilterComparisonOperator[]>;\nexport const COMPARISON_OPERATOR_LABELS: Record<FilterComparisonOperator, string> = {\n eq: 'equal to',\n ne: 'not equal to',\n cn: 'contains',\n nc: 'does not contain',\n sw: 'starts with',\n ew: 'ends with',\n in: 'includes',\n nin: 'does not include',\n gt: 'greater than',\n gte: 'greater than or equal to',\n lt: 'less than',\n lte: 'less than or equal to',\n};\n\nexport const OPERATORS_FOR_FILTER_TYPE: OperatorsForFilterType = {\n 'objectString': ['eq', 'ne', 'cn', 'nc', 'sw', 'ew', 'in', 'nin'],\n 'objectDate': ['gt', 'lt', 'eq'],\n 'objectNumber': ['eq', 'ne', 'gt', 'gte', 'lt', 'lte'],\n 'tag': ['in', 'nin'],\n 'string': ['eq'],\n 'number': ['eq'],\n 'boolean': ['eq'],\n 'licenseType': ['in', 'nin'],\n 'product': ['in', 'nin'],\n 'product-version': ['in', 'nin'],\n 'user': ['eq'],\n 'reseller': ['eq'],\n 'webhook': ['in', 'nin'],\n 'automated-email': ['in', 'nin'],\n 'organization': ['eq'],\n 'country': ['in', 'nin'],\n 'resource': ['in', 'nin'],\n 'resourceId': ['eq', 'ne', 'in', 'nin'],\n 'role': ['in', 'nin'],\n 'note': ['eq', 'ne', 'cn', 'nc', 'sw', 'ew'],\n 'os': ['in', 'nin'],\n 'action': ['in', 'nin'],\n};\n\n/** Application Names */\nexport type CtxProjectName =\n | 'admin-portal'\n | 'customer-portal'\n | 'internal-portal'\n | 'reseller-portal';\n// Display names specific to customer and reseller portal\nconst OTHER_PORTALS_DISPLAY_NAME: Record<string, string> = {\n 'product.displayName': 'Product',\n};\n\n/** Resource Name should ALWAYS be in singular form */\nexport const RESOURCE_NAMES = [\n 'access-token',\n 'account',\n 'activation',\n 'activation-log',\n 'admin-role',\n 'audit-log',\n 'automated-email',\n 'automated-email-event-log',\n 'card',\n 'feature-flag',\n 'invoice',\n 'license',\n 'license-template',\n 'maintenance-policy',\n 'organization',\n 'plan',\n 'product',\n 'product-version',\n 'profile',\n 'release',\n 'release-channel',\n 'release-file',\n 'release-platform',\n 'report',\n 'role',\n 'role-claim',\n 'saml-configuration',\n 'segment',\n 'sending-domain',\n 'setting',\n 'tag',\n 'team-member',\n 'trial',\n 'trial-policy',\n 'user',\n 'user-group',\n 'webhook',\n 'webhook-event-log',\n 'webhook-trigger',\n 'reseller',\n 'oidc-configuration',\n 'organization-claim',\n 'reseller-claim',\n] as const;\nexport type ResourceName = (typeof RESOURCE_NAMES)[number];\nexport const RESOURCE_DEFINITIONS: Record<ResourceName, string> = {\n 'account': 'Your organization account.',\n 'product': 'Products are the software products you want to license',\n 'license':\n 'Licenses represent a purchase of your software. These can be linked to customers, and the license key is required to use the product.',\n 'access-token': 'Access Tokens are used to authenticate your API requests.',\n 'activation':\n 'Activations, also known as devices/machines/seats are the devices consuming licenses.',\n 'activation-log':\n 'Activation Log is a log entry of activation/deactivation of a particular license.',\n 'trial': 'Trial/Trial Activation is a device that has activated a trial of your product.',\n 'audit-log': 'Audit logs contain all the changes made to your account.',\n 'automated-email':\n 'Automated Email allow you to send marketing emails based on events on the linked product.',\n 'automated-email-event-log':\n 'Automated email event log is the log of all the automated email events for your product.',\n 'card': 'The payment card for your account.',\n 'feature-flag': 'Feature flags define features that make up tiers for your products.',\n 'invoice': '',\n 'license-template':\n 'License templates are a blueprint for the licenses you create for your customers and prevent repetition when creating licenses.',\n 'maintenance-policy':\n 'Maintenance policies represent support contracts and can be linked to licenses.',\n 'plan': '',\n 'product-version':\n 'Product Versions are sets of Feature Flags that define the tiers of your products.',\n 'release-channel': 'Release channel is the release channel for your product.',\n 'release-file': 'Release files are files within your created releases.',\n 'release-platform':\n 'Release Platforms differentiate the target platform for your release. Common platforms include \"Windows\", \"macOS\", and \"Linux\".',\n 'release':\n 'Releases help you to manage different versions of your app, and secure distribute it to licensed users.',\n 'report': 'Analytics data for your account',\n 'role-claim': '',\n 'role': 'Roles define permissions for your team.',\n 'saml-configuration': '',\n 'segment': 'Sets of filters that can be saved to filter resources.',\n 'trial-policy': 'Trial policies are templates for creating trials for your products.',\n 'webhook-event-log': 'Webhook Event Logs are logs of events that have occured on webhooks.',\n 'webhook-trigger': '',\n 'webhook': 'Webhooks are HTTP callbacks which are triggered by specific events.',\n 'organization': '',\n 'profile': '',\n 'setting': '',\n 'tag': 'Tags allow you to manage your licenses and customers on the dashboard.',\n 'team-member': 'Team members can access the account based on their roles.',\n 'user': 'A user refers to your customer whom you want to license your product.',\n 'sending-domain': 'Allows Cryptlex to send emails on your behalf using your From Email address',\n 'admin-role': 'Roles that have type admin',\n 'user-group': 'Groups of users that you can assign licenses to.',\n 'reseller': 'Resellers allow you to delegate user management to third parties or partners',\n 'oidc-configuration': '',\n 'organization-claim': '',\n 'reseller-claim': '',\n};\n\nconst RESOURCE_DISPLAY_NAMES: Record<string, string> = {\n 'id': 'ID',\n 'createdAt': 'Creation Date',\n 'scopes': 'Permissions',\n 'updatedAt': 'Last Updated',\n 'expiresAt': 'Expiration Date',\n 'lastSeenAt': 'Last Seen',\n 'os': 'OS',\n 'osVersion': 'OS Version',\n 'key': 'License Key',\n 'vmName': 'VM Name',\n 'container': 'Container',\n 'allowedIpRange': 'Allowed IP Range',\n 'allowedIpRanges': 'Allowed IP Ranges',\n 'allowedIpAddresses': 'Allowed IP Addresses',\n 'disallowedIpAddresses': 'Disallowed IP Addresses',\n 'allowVmActivation': 'Allow VM Activation',\n 'disableGeoLocation': 'Disable Geolocation',\n 'user.id': 'User ID',\n 'userId': 'User',\n 'productId': 'Product',\n 'downloads': 'Total Downloads',\n 'claims': 'Permissions',\n 'googleSsoEnabled': 'Google Login Enabled',\n 'lastAttemptedAt': 'Last Attempt Date',\n 'url': 'URL',\n 'trialPolicy.name': 'Trial Policy Name',\n 'licensePolicy.name': 'License Template Name',\n 'licensePolicy': 'License Template',\n 'eventLog': 'Audit Log',\n 'cc': 'CC Recepients',\n 'bcc': 'BCC Recepients',\n 'ipAddress': 'IP Address',\n 'resellerId': 'Reseller',\n 'productVersionId': 'Product Version',\n 'releaseId': 'Release',\n 'maintenancePolicyId': 'Maintenance Policy',\n 'webhookId': 'Webhook',\n 'automatedEmailId': 'Automated Email',\n 'location.countryName': 'Country',\n 'location.ipAddress': 'IP Address',\n 'location.countryCode': 'Country',\n 'organizationId': 'Organization',\n 'address.country': 'Country',\n 'address.addressLine1': 'Address Line 1',\n 'address.addressLine2': 'Address Line 2',\n 'responseStatusCode': 'HTTP Status Code',\n 'resourceId': 'Resource ID',\n 'Sso': 'SAML SSO 2.0',\n 'reseller.name': 'Reseller',\n 'sendingDomain': 'Email Sending Domain',\n};\nexport function getResourceDisplayName(resourceName: string, portal: CtxProjectName) {\n if (portal !== 'admin-portal' && resourceName in OTHER_PORTALS_DISPLAY_NAME) {\n return OTHER_PORTALS_DISPLAY_NAME[resourceName];\n } else if (resourceName in RESOURCE_DISPLAY_NAMES) {\n return RESOURCE_DISPLAY_NAMES[resourceName];\n } else {\n return convertCamelCaseToTitleCase(resourceName);\n }\n}\n\n/**\n * Format multiple license parameters (expired, suspended, revoked) into a single status\n */\nexport function getLicenseStatus(license: any): string {\n const licenseExpired = license.expiresAt && new Date(license.expiresAt) < new Date();\n // Status Column\n switch (true) {\n case license.revoked && license.suspended && licenseExpired:\n return 'Revoked, Suspended, Expired';\n case license.revoked && license.suspended:\n return 'Revoked, Suspended';\n case license.revoked && licenseExpired:\n return 'Revoked, Expired';\n case license.suspended && licenseExpired:\n return 'Suspended, Expired';\n case license.suspended:\n return 'Suspended';\n case license.revoked:\n return 'Revoked';\n case licenseExpired:\n return 'Expired';\n default:\n return 'Active';\n }\n}\n\nexport function getValidityDisplay(validity: number | undefined) {\n if (validity === 0 || !validity) {\n return 'Lifetime';\n } else {\n return secondsToDuration(validity);\n }\n}\nexport function secondsToDuration(seconds: number): string {\n const duration = intervalToDuration({\n start: 0,\n end: seconds * 1000,\n });\n\n const parts = [\n duration.years && `${duration.years}y`,\n duration.months && `${duration.months}m`,\n duration.days && `${duration.days}d`,\n duration.hours && `${duration.hours}h`,\n ];\n\n // Filter out undefined values and join\n return parts.filter(Boolean).join(' ').trim();\n}\n\nexport function getValueFromData(data: any, accessor: string | number | symbol) {\n const accessors = accessor.toString().split('.');\n let value = data;\n for (const acc of accessors) {\n value = value?.[acc];\n }\n return value;\n}\nexport const ALL_OS: { [key: string]: string } = {\n windows: 'Windows',\n macos: 'macOS',\n linux: 'Linux',\n ios: 'iOS',\n android: 'Android',\n};\n"],"names":["FILTERABLE_PROPERTY_TYPES","DEFAULT_FILTERABLE_FIELDS","FILTER_COMPARISON_OPERATORS","COMPARISON_OPERATOR_LABELS","OPERATORS_FOR_FILTER_TYPE","OTHER_PORTALS_DISPLAY_NAME","RESOURCE_NAMES","RESOURCE_DEFINITIONS","RESOURCE_DISPLAY_NAMES","getResourceDisplayName","resourceName","portal","convertCamelCaseToTitleCase","getLicenseStatus","license","licenseExpired","getValidityDisplay","validity","secondsToDuration","seconds","duration","intervalToDuration","getValueFromData","data","accessor","accessors","value","acc","ALL_OS"],"mappings":";;AAGO,MAAMA,IAA4B;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAMaC,IAAuD;AAAA,EAClE,WAAW;AAAA,EACX,WAAW;AACb,GACaC,IAA8B;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAC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,UAAQ,IAAM;AAAA,IACZ,MAAKA,EAAQ,WAAWA,EAAQ,aAAaC;AACpC,aAAA;AAAA,IACT,MAAKD,EAAQ,WAAWA,EAAQ;AACvB,aAAA;AAAA,IACT,MAAKA,EAAQ,WAAWC;AACf,aAAA;AAAA,IACT,MAAKD,EAAQ,aAAaC;AACjB,aAAA;AAAA,IACT,KAAKD,EAAQ;AACJ,aAAA;AAAA,IACT,KAAKA,EAAQ;AACJ,aAAA;AAAA,IACT,KAAKC;AACI,aAAA;AAAA,IACT;AACS,aAAA;AAAA,EAAA;AAEb;AAEO,SAASC,EAAmBC,GAA8B;AAC3D,SAAAA,MAAa,KAAK,CAACA,IACd,aAEAC,EAAkBD,CAAQ;AAErC;AACO,SAASC,EAAkBC,GAAyB;AACzD,QAAMC,IAAWC,EAAmB;AAAA,IAClC,OAAO;AAAA,IACP,KAAKF,IAAU;AAAA,EAAA,CAChB;AAUD,SARc;AAAA,IACZC,EAAS,SAAS,GAAGA,EAAS,KAAK;AAAA,IACnCA,EAAS,UAAU,GAAGA,EAAS,MAAM;AAAA,IACrCA,EAAS,QAAQ,GAAGA,EAAS,IAAI;AAAA,IACjCA,EAAS,SAAS,GAAGA,EAAS,KAAK;AAAA,EACrC,EAGa,OAAO,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK;AAC9C;AAEgB,SAAAE,EAAiBC,GAAWC,GAAoC;AAC9E,QAAMC,IAAYD,EAAS,SAAS,EAAE,MAAM,GAAG;AAC/C,MAAIE,IAAQH;AACZ,aAAWI,KAAOF;AAChB,IAAAC,IAAQA,KAAA,gBAAAA,EAAQC;AAEX,SAAAD;AACT;AACO,MAAME,IAAoC;AAAA,EAC/C,SAAS;AAAA,EACT,OAAO;AAAA,EACP,OAAO;AAAA,EACP,KAAK;AAAA,EACL,SAAS;AACX;"}
1
+ {"version":3,"file":"constants.es.js","sources":["../../../../lib/components/data-table/table-utils/constants.ts"],"sourcesContent":["import { intervalToDuration } from \"date-fns\";\nimport { convertCamelCaseToTitleCase } from \"./string\";\n\nexport const FILTERABLE_PROPERTY_TYPES = [\n\t\"objectString\",\n\t\"string\",\n\t\"number\",\n\t\"objectNumber\",\n\t\"boolean\",\n\t\"objectDate\",\n\t\"licenseType\",\n\t\"product\",\n\t\"product-version\",\n\t\"user\",\n\t\"webhook\",\n\t\"automated-email\",\n\t\"organization\",\n\t\"country\",\n\t\"tag\",\n\t\"resource\",\n\t\"resourceId\",\n\t\"reseller\",\n\t\"role\",\n\t\"note\",\n\t\"os\",\n\t\"action\",\n] as const;\nexport type FilterablePropertyType = (typeof FILTERABLE_PROPERTY_TYPES)[number];\nexport type FilterableProperties<T> = {\n\t[K in keyof T]?: FilterablePropertyType;\n};\n\nexport const DEFAULT_FILTERABLE_FIELDS: FilterableProperties<any> = {\n\tcreatedAt: \"objectDate\",\n\tupdatedAt: \"objectDate\",\n};\nexport const FILTER_COMPARISON_OPERATORS = [\n\t\"eq\",\n\t\"ne\",\n\t\"cn\",\n\t\"nc\",\n\t\"sw\",\n\t\"ew\",\n\t\"in\",\n\t\"nin\",\n\t\"gt\",\n\t\"gte\",\n\t\"lt\",\n\t\"lte\",\n] as const;\nexport type FilterComparisonOperator =\n\t(typeof FILTER_COMPARISON_OPERATORS)[number];\nexport type OperatorsForFilterType = Record<\n\tFilterablePropertyType,\n\tFilterComparisonOperator[]\n>;\nexport const COMPARISON_OPERATOR_LABELS: Record<\n\tFilterComparisonOperator,\n\tstring\n> = {\n\teq: \"equal to\",\n\tne: \"not equal to\",\n\tcn: \"contains\",\n\tnc: \"does not contain\",\n\tsw: \"starts with\",\n\tew: \"ends with\",\n\tin: \"includes\",\n\tnin: \"does not include\",\n\tgt: \"greater than\",\n\tgte: \"greater than or equal to\",\n\tlt: \"less than\",\n\tlte: \"less than or equal to\",\n};\n\nexport const OPERATORS_FOR_FILTER_TYPE: OperatorsForFilterType = {\n\tobjectString: [\"eq\", \"ne\", \"cn\", \"nc\", \"sw\", \"ew\", \"in\", \"nin\"],\n\tobjectDate: [\"gt\", \"lt\", \"eq\"],\n\tobjectNumber: [\"eq\", \"ne\", \"gt\", \"gte\", \"lt\", \"lte\"],\n\ttag: [\"in\", \"nin\"],\n\tstring: [\"eq\"],\n\tnumber: [\"eq\"],\n\tboolean: [\"eq\"],\n\tlicenseType: [\"in\", \"nin\"],\n\tproduct: [\"in\", \"nin\"],\n\t\"product-version\": [\"in\", \"nin\"],\n\tuser: [\"eq\"],\n\treseller: [\"eq\"],\n\twebhook: [\"in\", \"nin\"],\n\t\"automated-email\": [\"in\", \"nin\"],\n\torganization: [\"eq\"],\n\tcountry: [\"in\", \"nin\"],\n\tresource: [\"in\", \"nin\"],\n\tresourceId: [\"eq\", \"ne\", \"in\", \"nin\"],\n\trole: [\"in\", \"nin\"],\n\tnote: [\"eq\", \"ne\", \"cn\", \"nc\", \"sw\", \"ew\"],\n\tos: [\"in\", \"nin\"],\n\taction: [\"in\", \"nin\"],\n};\n\n/** Application Names */\nexport type CtxProjectName =\n\t| \"admin-portal\"\n\t| \"customer-portal\"\n\t| \"internal-portal\"\n\t| \"reseller-portal\";\n// Display names specific to customer and reseller portal\nconst OTHER_PORTALS_DISPLAY_NAME: Record<string, string> = {\n\t\"product.displayName\": \"Product\",\n};\n\n/** Resource Name should ALWAYS be in singular form */\nexport const RESOURCE_NAMES = [\n\t\"access-token\",\n\t\"account\",\n\t\"activation\",\n\t\"activation-log\",\n\t\"admin-role\",\n\t\"audit-log\",\n\t\"automated-email\",\n\t\"automated-email-event-log\",\n\t\"card\",\n\t\"feature-flag\",\n\t\"invoice\",\n\t\"license\",\n\t\"license-template\",\n\t\"maintenance-policy\",\n\t\"organization\",\n\t\"plan\",\n\t\"product\",\n\t\"product-version\",\n\t\"profile\",\n\t\"release\",\n\t\"release-channel\",\n\t\"release-file\",\n\t\"release-platform\",\n\t\"report\",\n\t\"role\",\n\t\"role-claim\",\n\t\"saml-configuration\",\n\t\"segment\",\n\t\"sending-domain\",\n\t\"setting\",\n\t\"tag\",\n\t\"team-member\",\n\t\"trial\",\n\t\"trial-policy\",\n\t\"user\",\n\t\"user-group\",\n\t\"webhook\",\n\t\"webhook-event-log\",\n\t\"webhook-trigger\",\n\t\"reseller\",\n\t\"oidc-configuration\",\n\t\"organization-claim\",\n\t\"reseller-claim\",\n] as const;\nexport type ResourceName = (typeof RESOURCE_NAMES)[number];\nexport const RESOURCE_DEFINITIONS: Record<ResourceName, string> = {\n\taccount: \"Your organization account.\",\n\tproduct: \"Products are the software products you want to license\",\n\tlicense:\n\t\t\"Licenses represent a purchase of your software. These can be linked to customers, and the license key is required to use the product.\",\n\t\"access-token\": \"Access Tokens are used to authenticate your API requests.\",\n\tactivation:\n\t\t\"Activations, also known as devices/machines/seats are the devices consuming licenses.\",\n\t\"activation-log\":\n\t\t\"Activation Log is a log entry of activation/deactivation of a particular license.\",\n\ttrial:\n\t\t\"Trial/Trial Activation is a device that has activated a trial of your product.\",\n\t\"audit-log\": \"Audit logs contain all the changes made to your account.\",\n\t\"automated-email\":\n\t\t\"Automated Email allow you to send marketing emails based on events on the linked product.\",\n\t\"automated-email-event-log\":\n\t\t\"Automated email event log is the log of all the automated email events for your product.\",\n\tcard: \"The payment card for your account.\",\n\t\"feature-flag\":\n\t\t\"Feature flags define features that make up tiers for your products.\",\n\tinvoice: \"\",\n\t\"license-template\":\n\t\t\"License templates are a blueprint for the licenses you create for your customers and prevent repetition when creating licenses.\",\n\t\"maintenance-policy\":\n\t\t\"Maintenance policies represent support contracts and can be linked to licenses.\",\n\tplan: \"\",\n\t\"product-version\":\n\t\t\"Product Versions are sets of Feature Flags that define the tiers of your products.\",\n\t\"release-channel\": \"Release channel is the release channel for your product.\",\n\t\"release-file\": \"Release files are files within your created releases.\",\n\t\"release-platform\":\n\t\t'Release Platforms differentiate the target platform for your release. Common platforms include \"Windows\", \"macOS\", and \"Linux\".',\n\trelease:\n\t\t\"Releases help you to manage different versions of your app, and secure distribute it to licensed users.\",\n\treport: \"Analytics data for your account\",\n\t\"role-claim\": \"\",\n\trole: \"Roles define permissions for your team.\",\n\t\"saml-configuration\": \"\",\n\tsegment: \"Sets of filters that can be saved to filter resources.\",\n\t\"trial-policy\":\n\t\t\"Trial policies are templates for creating trials for your products.\",\n\t\"webhook-event-log\":\n\t\t\"Webhook Event Logs are logs of events that have occured on webhooks.\",\n\t\"webhook-trigger\": \"\",\n\twebhook:\n\t\t\"Webhooks are HTTP callbacks which are triggered by specific events.\",\n\torganization: \"\",\n\tprofile: \"\",\n\tsetting: \"\",\n\ttag: \"Tags allow you to manage your licenses and customers on the dashboard.\",\n\t\"team-member\": \"Team members can access the account based on their roles.\",\n\tuser: \"A user refers to your customer whom you want to license your product.\",\n\t\"sending-domain\":\n\t\t\"Allows Cryptlex to send emails on your behalf using your From Email address\",\n\t\"admin-role\": \"Roles that have type admin\",\n\t\"user-group\": \"Groups of users that you can assign licenses to.\",\n\treseller:\n\t\t\"Resellers allow you to delegate user management to third parties or partners\",\n\t\"oidc-configuration\": \"\",\n\t\"organization-claim\": \"\",\n\t\"reseller-claim\": \"\",\n};\n\nconst RESOURCE_DISPLAY_NAMES: Record<string, string> = {\n\tid: \"ID\",\n\tcreatedAt: \"Creation Date\",\n\tscopes: \"Permissions\",\n\tupdatedAt: \"Last Updated\",\n\texpiresAt: \"Expiration Date\",\n\tlastSeenAt: \"Last Seen\",\n\tos: \"OS\",\n\tosVersion: \"OS Version\",\n\tkey: \"License Key\",\n\tvmName: \"VM Name\",\n\tcontainer: \"Container\",\n\tallowedIpRange: \"Allowed IP Range\",\n\tallowedIpRanges: \"Allowed IP Ranges\",\n\tallowedIpAddresses: \"Allowed IP Addresses\",\n\tdisallowedIpAddresses: \"Disallowed IP Addresses\",\n\tallowVmActivation: \"Allow VM Activation\",\n\tdisableGeoLocation: \"Disable Geolocation\",\n\t\"user.id\": \"User ID\",\n\tuserId: \"User\",\n\tproductId: \"Product\",\n\tdownloads: \"Total Downloads\",\n\tclaims: \"Permissions\",\n\tgoogleSsoEnabled: \"Google Login Enabled\",\n\tlastAttemptedAt: \"Last Attempt Date\",\n\turl: \"URL\",\n\t\"trialPolicy.name\": \"Trial Policy Name\",\n\t\"licensePolicy.name\": \"License Template Name\",\n\tlicensePolicy: \"License Template\",\n\teventLog: \"Audit Log\",\n\tcc: \"CC Recepients\",\n\tbcc: \"BCC Recepients\",\n\tipAddress: \"IP Address\",\n\tresellerId: \"Reseller\",\n\tproductVersionId: \"Product Version\",\n\treleaseId: \"Release\",\n\tmaintenancePolicyId: \"Maintenance Policy\",\n\twebhookId: \"Webhook\",\n\tautomatedEmailId: \"Automated Email\",\n\t\"location.countryName\": \"Country\",\n\t\"location.ipAddress\": \"IP Address\",\n\t\"location.countryCode\": \"Country\",\n\torganizationId: \"Organization\",\n\t\"address.country\": \"Country\",\n\t\"address.addressLine1\": \"Address Line 1\",\n\t\"address.addressLine2\": \"Address Line 2\",\n\tresponseStatusCode: \"HTTP Status Code\",\n\tresourceId: \"Resource ID\",\n\tSso: \"SAML SSO 2.0\",\n\t\"reseller.name\": \"Reseller\",\n\tsendingDomain: \"Email Sending Domain\",\n};\nexport function getResourceDisplayName(\n\tresourceName: string,\n\tportal: CtxProjectName,\n) {\n\tif (portal !== \"admin-portal\" && resourceName in OTHER_PORTALS_DISPLAY_NAME) {\n\t\treturn OTHER_PORTALS_DISPLAY_NAME[resourceName];\n\t} else if (resourceName in RESOURCE_DISPLAY_NAMES) {\n\t\treturn RESOURCE_DISPLAY_NAMES[resourceName];\n\t} else {\n\t\treturn convertCamelCaseToTitleCase(resourceName);\n\t}\n}\n\n/**\n * Format multiple license parameters (expired, suspended, revoked) into a single status\n */\nexport function getLicenseStatus(license: any): string {\n\tconst licenseExpired =\n\t\tlicense.expiresAt && new Date(license.expiresAt) < new Date();\n\t// Status Column\n\tswitch (true) {\n\t\tcase license.revoked && license.suspended && licenseExpired:\n\t\t\treturn \"Revoked, Suspended, Expired\";\n\t\tcase license.revoked && license.suspended:\n\t\t\treturn \"Revoked, Suspended\";\n\t\tcase license.revoked && licenseExpired:\n\t\t\treturn \"Revoked, Expired\";\n\t\tcase license.suspended && licenseExpired:\n\t\t\treturn \"Suspended, Expired\";\n\t\tcase license.suspended:\n\t\t\treturn \"Suspended\";\n\t\tcase license.revoked:\n\t\t\treturn \"Revoked\";\n\t\tcase licenseExpired:\n\t\t\treturn \"Expired\";\n\t\tdefault:\n\t\t\treturn \"Active\";\n\t}\n}\n\nexport function getValidityDisplay(validity: number | undefined) {\n\tif (validity === 0 || !validity) {\n\t\treturn \"Lifetime\";\n\t} else {\n\t\treturn secondsToDuration(validity);\n\t}\n}\nexport function secondsToDuration(seconds: number): string {\n\tconst duration = intervalToDuration({\n\t\tstart: 0,\n\t\tend: seconds * 1000,\n\t});\n\n\tconst parts = [\n\t\tduration.years && `${duration.years}y`,\n\t\tduration.months && `${duration.months}m`,\n\t\tduration.days && `${duration.days}d`,\n\t\tduration.hours && `${duration.hours}h`,\n\t];\n\n\t// Filter out undefined values and join\n\treturn parts.filter(Boolean).join(\" \").trim();\n}\n\nexport function getValueFromData(\n\tdata: any,\n\taccessor: string | number | symbol,\n) {\n\tconst accessors = accessor.toString().split(\".\");\n\tlet value = data;\n\tfor (const acc of accessors) {\n\t\tvalue = value?.[acc];\n\t}\n\treturn value;\n}\nexport const ALL_OS: { [key: string]: string } = {\n\twindows: \"Windows\",\n\tmacos: \"macOS\",\n\tlinux: \"Linux\",\n\tios: \"iOS\",\n\tandroid: \"Android\",\n};\n"],"names":["FILTERABLE_PROPERTY_TYPES","DEFAULT_FILTERABLE_FIELDS","FILTER_COMPARISON_OPERATORS","COMPARISON_OPERATOR_LABELS","OPERATORS_FOR_FILTER_TYPE","OTHER_PORTALS_DISPLAY_NAME","RESOURCE_NAMES","RESOURCE_DEFINITIONS","RESOURCE_DISPLAY_NAMES","getResourceDisplayName","resourceName","portal","convertCamelCaseToTitleCase","getLicenseStatus","license","licenseExpired","getValidityDisplay","validity","secondsToDuration","seconds","duration","intervalToDuration","getValueFromData","data","accessor","accessors","value","acc","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AAE,KAAK;AAC7C;AAEgB,SAAAE,EACfC,GACAC,GACC;AACD,QAAMC,IAAYD,EAAS,SAAS,EAAE,MAAM,GAAG;AAC/C,MAAIE,IAAQH;AACZ,aAAWI,KAAOF;AACjB,IAAAC,IAAQA,KAAA,gBAAAA,EAAQC;AAEV,SAAAD;AACR;AACO,MAAME,IAAoC;AAAA,EAChD,SAAS;AAAA,EACT,OAAO;AAAA,EACP,OAAO;AAAA,EACP,KAAK;AAAA,EACL,SAAS;AACV;"}
@@ -1,24 +1,25 @@
1
- import { merge as d } from "lodash-es";
2
- function f(e, n, a) {
3
- return async (t, o, u, s) => {
4
- const c = {
1
+ import { merge as i } from "lodash-es";
2
+ function g(e, n, a) {
3
+ return async (r, o, u) => {
4
+ const s = {
5
5
  params: {
6
6
  query: {
7
- page: t.pageIndex + 1,
8
- limit: t.pageSize,
9
- sort: p(o[0]),
10
- query: u,
11
- ...s
7
+ page: r.pageIndex + 1,
8
+ limit: r.pageSize,
9
+ sort: d(o[0]),
10
+ query: u
12
11
  }
13
12
  }
14
- }, i = d(c, a);
15
- return e.GET(n, i).then((r) => ({ total: parseInt(r.response.headers.get("Pagination-Count") || "0"), data: r.data }));
13
+ }, c = i(s, a);
14
+ return e.GET(n, c).then((t) => ({ total: Number.parseInt(
15
+ t.response.headers.get("Pagination-Count") || "0"
16
+ ), data: t.data }));
16
17
  };
17
18
  }
18
- function p(e) {
19
+ function d(e) {
19
20
  return e ? e.desc ? `-${e.id}` : `+${e.id}` : "-createdAt";
20
21
  }
21
22
  export {
22
- f as createTableFetchFn
23
+ g as createTableFetchFn
23
24
  };
24
25
  //# sourceMappingURL=createTableFetchFn.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createTableFetchFn.es.js","sources":["../../../../lib/components/data-table/table-utils/createTableFetchFn.ts"],"sourcesContent":["import type { paths } from '@cryptlex/web-api-types';\nimport { merge } from 'lodash-es';\nimport createClient, { ParamsOption } from 'openapi-fetch';\nimport { type TableFetchFn } from './types';\n\ninterface Params {\n query: Record<string, string | number | boolean | Record<string, string | number | boolean>>;\n}\n\ntype Client = ReturnType<typeof createClient<paths>>;\n\n// Helper type to extract valid GET paths\ntype GetPaths = {\n [P in keyof paths]: paths[P] extends { get: any } ? P : never;\n}[keyof paths];\n\nexport function createTableFetchFn<_any, Return>(\n ctxclient: Client,\n path: GetPaths,\n // TODO: Use generic type instead\n params?: ParamsOption<any>,\n): TableFetchFn<Return> {\n return async (pagination, sorting, searching, filtering) => {\n const ab: { params: Params } = {\n params: {\n query: {\n page: pagination.pageIndex + 1,\n limit: pagination.pageSize,\n sort: generateSortParam(sorting[0]),\n query: searching,\n ...filtering,\n },\n },\n };\n\n const pathParams = merge(ab, params) as { params: Params };\n\n return ctxclient.GET(path, pathParams).then((value) => {\n const rowCount = parseInt(value.response.headers.get('Pagination-Count') || '0');\n return { total: rowCount, data: value.data };\n });\n };\n}\n\nfunction generateSortParam(sort: { id: string; desc: boolean } | undefined): string {\n if (sort) {\n if (sort.desc) {\n return `-${sort.id}`;\n } else {\n return `+${sort.id}`;\n }\n } else {\n return '-createdAt';\n }\n}\n"],"names":["createTableFetchFn","ctxclient","path","params","pagination","sorting","searching","filtering","ab","generateSortParam","pathParams","merge","value","sort"],"mappings":";AAgBgB,SAAAA,EACdC,GACAC,GAEAC,GACsB;AACtB,SAAO,OAAOC,GAAYC,GAASC,GAAWC,MAAc;AAC1D,UAAMC,IAAyB;AAAA,MAC7B,QAAQ;AAAA,QACN,OAAO;AAAA,UACL,MAAMJ,EAAW,YAAY;AAAA,UAC7B,OAAOA,EAAW;AAAA,UAClB,MAAMK,EAAkBJ,EAAQ,CAAC,CAAC;AAAA,UAClC,OAAOC;AAAA,UACP,GAAGC;AAAA,QAAA;AAAA,MACL;AAAA,IAEJ,GAEMG,IAAaC,EAAMH,GAAIL,CAAM;AAEnC,WAAOF,EAAU,IAAIC,GAAMQ,CAAU,EAAE,KAAK,CAACE,OAEpC,EAAE,OADQ,SAASA,EAAM,SAAS,QAAQ,IAAI,kBAAkB,KAAK,GAAG,GACrD,MAAMA,EAAM,KAAK,EAC5C;AAAA,EACH;AACF;AAEA,SAASH,EAAkBI,GAAyD;AAClF,SAAIA,IACEA,EAAK,OACA,IAAIA,EAAK,EAAE,KAEX,IAAIA,EAAK,EAAE,KAGb;AAEX;"}
1
+ {"version":3,"file":"createTableFetchFn.es.js","sources":["../../../../lib/components/data-table/table-utils/createTableFetchFn.ts"],"sourcesContent":["import type { paths } from \"@cryptlex/web-api-types\";\nimport { merge } from \"lodash-es\";\nimport type createClient from \"openapi-fetch\";\nimport type { ParamsOption } from \"openapi-fetch\";\nimport type { TableFetchFn } from \"./types\";\n\ninterface Params {\n\tquery: Record<\n\t\tstring,\n\t\tstring | number | boolean | Record<string, string | number | boolean>\n\t>;\n}\n\ntype Client = ReturnType<typeof createClient<paths>>;\n\n// Helper type to extract valid GET paths\ntype GetPaths = {\n\t[P in keyof paths]: paths[P] extends { get: any } ? P : never;\n}[keyof paths];\n\nexport function createTableFetchFn<_any, Return>(\n\tctxclient: Client,\n\tpath: GetPaths,\n\t// TODO: Use generic type instead\n\tparams?: ParamsOption<any>,\n): TableFetchFn<Return> {\n\treturn async (pagination, sorting, searching) => {\n\t\tconst ab: { params: Params } = {\n\t\t\tparams: {\n\t\t\t\tquery: {\n\t\t\t\t\tpage: pagination.pageIndex + 1,\n\t\t\t\t\tlimit: pagination.pageSize,\n\t\t\t\t\tsort: generateSortParam(sorting[0]),\n\t\t\t\t\tquery: searching,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\n\t\tconst pathParams = merge(ab, params) as { params: Params };\n\n\t\treturn ctxclient.GET(path, pathParams).then((value) => {\n\t\t\tconst rowCount = Number.parseInt(\n\t\t\t\tvalue.response.headers.get(\"Pagination-Count\") || \"0\",\n\t\t\t);\n\t\t\treturn { total: rowCount, data: value.data };\n\t\t});\n\t};\n}\n\nfunction generateSortParam(\n\tsort: { id: string; desc: boolean } | undefined,\n): string {\n\tif (sort) {\n\t\tif (sort.desc) {\n\t\t\treturn `-${sort.id}`;\n\t\t} else {\n\t\t\treturn `+${sort.id}`;\n\t\t}\n\t} else {\n\t\treturn \"-createdAt\";\n\t}\n}\n"],"names":["createTableFetchFn","ctxclient","path","params","pagination","sorting","searching","ab","generateSortParam","pathParams","merge","value","sort"],"mappings":";AAoBgB,SAAAA,EACfC,GACAC,GAEAC,GACuB;AAChB,SAAA,OAAOC,GAAYC,GAASC,MAAc;AAChD,UAAMC,IAAyB;AAAA,MAC9B,QAAQ;AAAA,QACP,OAAO;AAAA,UACN,MAAMH,EAAW,YAAY;AAAA,UAC7B,OAAOA,EAAW;AAAA,UAClB,MAAMI,EAAkBH,EAAQ,CAAC,CAAC;AAAA,UAClC,OAAOC;AAAA,QAAA;AAAA,MACR;AAAA,IAEF,GAEMG,IAAaC,EAAMH,GAAIJ,CAAM;AAEnC,WAAOF,EAAU,IAAIC,GAAMO,CAAU,EAAE,KAAK,CAACE,OAIrC,EAAE,OAHQ,OAAO;AAAA,MACvBA,EAAM,SAAS,QAAQ,IAAI,kBAAkB,KAAK;AAAA,IACnD,GAC0B,MAAMA,EAAM,KAAK,EAC3C;AAAA,EACF;AACD;AAEA,SAASH,EACRI,GACS;AACT,SAAIA,IACCA,EAAK,OACD,IAAIA,EAAK,EAAE,KAEX,IAAIA,EAAK,EAAE,KAGZ;AAET;"}
@@ -1 +1 @@
1
- {"version":3,"file":"date.es.js","sources":["../../../../lib/components/data-table/table-utils/date.ts"],"sourcesContent":["export function FormatDate(date: string | null | undefined) {\n if (!date) return null;\n const _date = new Date(date);\n return new Intl.DateTimeFormat(undefined, {\n dateStyle: 'medium',\n timeStyle: 'short',\n }).format(_date);\n}\n"],"names":["FormatDate","date","_date"],"mappings":"AAAO,SAASA,EAAWC,GAAiC;AACtD,MAAA,CAACA,EAAa,QAAA;AACZ,QAAAC,IAAQ,IAAI,KAAKD,CAAI;AACpB,SAAA,IAAI,KAAK,eAAe,QAAW;AAAA,IACxC,WAAW;AAAA,IACX,WAAW;AAAA,EAAA,CACZ,EAAE,OAAOC,CAAK;AACjB;"}
1
+ {"version":3,"file":"date.es.js","sources":["../../../../lib/components/data-table/table-utils/date.ts"],"sourcesContent":["export function FormatDate(date: string | null | undefined) {\n\tif (!date) return null;\n\tconst _date = new Date(date);\n\treturn new Intl.DateTimeFormat(undefined, {\n\t\tdateStyle: \"medium\",\n\t\ttimeStyle: \"short\",\n\t}).format(_date);\n}\n"],"names":["FormatDate","date","_date"],"mappings":"AAAO,SAASA,EAAWC,GAAiC;AACvD,MAAA,CAACA,EAAa,QAAA;AACZ,QAAAC,IAAQ,IAAI,KAAKD,CAAI;AACpB,SAAA,IAAI,KAAK,eAAe,QAAW;AAAA,IACzC,WAAW;AAAA,IACX,WAAW;AAAA,EAAA,CACX,EAAE,OAAOC,CAAK;AAChB;"}
@@ -8,8 +8,8 @@ function c(e) {
8
8
  if (e) {
9
9
  const t = e.replace(/([A-Z])/g, " $1");
10
10
  return t.charAt(0).toUpperCase().concat(t.slice(1)).replace(/\.[a-z]/, (r) => r.replace(".", " ").toUpperCase());
11
- } else
12
- return e;
11
+ }
12
+ return e;
13
13
  }
14
14
  export {
15
15
  c as convertCamelCaseToTitleCase,
@@ -1 +1 @@
1
- {"version":3,"file":"string.es.js","sources":["../../../../lib/components/data-table/table-utils/string.ts"],"sourcesContent":["/**\n *\n * @param input camelCase\n * @returns title case for the camelCase string\n */\nexport function convertToTitleCase(input: string): string {\n return input\n .replace(/([A-Z])/g, ' $1') // Insert space before capital letters\n .trim() // Remove any leading/trailing spaces\n .split(' ') // Split into words\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()) // Capitalize each word\n .join(' '); // Join back into a single string\n}\nexport function pluralizeTimes(resourceName: string, count: number) {\n if (count > 1) {\n if (/y$/.test(resourceName)) {\n if (resourceName === 'Day') return 'Days';\n return resourceName.replace(/y$/, 'ies');\n } else {\n return resourceName.concat('s');\n }\n } else return resourceName;\n}\n\n/**\n * Converts a string from 'camelCase' to 'Title Case'\n * @param string String to convert to `Title Case`\n */\nexport function convertCamelCaseToTitleCase(string: string) {\n if (string) {\n const spacedString = string.replace(/([A-Z])/g, ' $1');\n return spacedString\n .charAt(0)\n .toUpperCase()\n .concat(spacedString.slice(1))\n .replace(/\\.[a-z]/, (substr: string) => {\n return substr.replace('.', ' ').toUpperCase();\n });\n } else {\n return string;\n }\n}\n"],"names":["convertToTitleCase","input","word","pluralizeTimes","resourceName","count","convertCamelCaseToTitleCase","string","spacedString","substr"],"mappings":"AAKO,SAASA,EAAmBC,GAAuB;AACjD,SAAAA,EACJ,QAAQ,YAAY,KAAK,EACzB,KAAK,EACL,MAAM,GAAG,EACT,IAAI,CAACC,MAASA,EAAK,OAAO,CAAC,EAAE,YAAY,IAAIA,EAAK,MAAM,CAAC,EAAE,YAAY,CAAC,EACxE,KAAK,GAAG;AACb;AACgB,SAAAC,EAAeC,GAAsBC,GAAe;AAClE,SAAIA,IAAQ,IACN,KAAK,KAAKD,CAAY,IACpBA,MAAiB,QAAc,SAC5BA,EAAa,QAAQ,MAAM,KAAK,IAEhCA,EAAa,OAAO,GAAG,IAEpBA;AAChB;AAMO,SAASE,EAA4BC,GAAgB;AAC1D,MAAIA,GAAQ;AACV,UAAMC,IAAeD,EAAO,QAAQ,YAAY,KAAK;AACrD,WAAOC,EACJ,OAAO,CAAC,EACR,YACA,EAAA,OAAOA,EAAa,MAAM,CAAC,CAAC,EAC5B,QAAQ,WAAW,CAACC,MACZA,EAAO,QAAQ,KAAK,GAAG,EAAE,YAAY,CAC7C;AAAA,EAAA;AAEI,WAAAF;AAEX;"}
1
+ {"version":3,"file":"string.es.js","sources":["../../../../lib/components/data-table/table-utils/string.ts"],"sourcesContent":["/**\n *\n * @param input camelCase\n * @returns title case for the camelCase string\n */\nexport function convertToTitleCase(input: string): string {\n\treturn input\n\t\t.replace(/([A-Z])/g, \" $1\") // Insert space before capital letters\n\t\t.trim() // Remove any leading/trailing spaces\n\t\t.split(\" \") // Split into words\n\t\t.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()) // Capitalize each word\n\t\t.join(\" \"); // Join back into a single string\n}\nexport function pluralizeTimes(resourceName: string, count: number) {\n\tif (count > 1) {\n\t\tif (/y$/.test(resourceName)) {\n\t\t\tif (resourceName === \"Day\") return \"Days\";\n\t\t\treturn resourceName.replace(/y$/, \"ies\");\n\t\t}\n\t\treturn resourceName.concat(\"s\");\n\t}\n\treturn resourceName;\n}\n\n/**\n * Converts a string from 'camelCase' to 'Title Case'\n * @param string String to convert to `Title Case`\n */\nexport function convertCamelCaseToTitleCase(string: string) {\n\tif (string) {\n\t\tconst spacedString = string.replace(/([A-Z])/g, \" $1\");\n\t\treturn spacedString\n\t\t\t.charAt(0)\n\t\t\t.toUpperCase()\n\t\t\t.concat(spacedString.slice(1))\n\t\t\t.replace(/\\.[a-z]/, (substr: string) => {\n\t\t\t\treturn substr.replace(\".\", \" \").toUpperCase();\n\t\t\t});\n\t}\n\treturn string;\n}\n"],"names":["convertToTitleCase","input","word","pluralizeTimes","resourceName","count","convertCamelCaseToTitleCase","string","spacedString","substr"],"mappings":"AAKO,SAASA,EAAmBC,GAAuB;AAClD,SAAAA,EACL,QAAQ,YAAY,KAAK,EACzB,KAAK,EACL,MAAM,GAAG,EACT,IAAI,CAACC,MAASA,EAAK,OAAO,CAAC,EAAE,YAAY,IAAIA,EAAK,MAAM,CAAC,EAAE,YAAY,CAAC,EACxE,KAAK,GAAG;AACX;AACgB,SAAAC,EAAeC,GAAsBC,GAAe;AACnE,SAAIA,IAAQ,IACP,KAAK,KAAKD,CAAY,IACrBA,MAAiB,QAAc,SAC5BA,EAAa,QAAQ,MAAM,KAAK,IAEjCA,EAAa,OAAO,GAAG,IAExBA;AACR;AAMO,SAASE,EAA4BC,GAAgB;AAC3D,MAAIA,GAAQ;AACX,UAAMC,IAAeD,EAAO,QAAQ,YAAY,KAAK;AACrD,WAAOC,EACL,OAAO,CAAC,EACR,YACA,EAAA,OAAOA,EAAa,MAAM,CAAC,CAAC,EAC5B,QAAQ,WAAW,CAACC,MACbA,EAAO,QAAQ,KAAK,GAAG,EAAE,YAAY,CAC5C;AAAA,EAAA;AAEI,SAAAF;AACR;"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.es.js","sources":["../../../../lib/components/data-table/table-utils/types.ts"],"sourcesContent":["import { components } from '@cryptlex/web-api-types';\nimport { PaginationState, SortingState } from '@tanstack/react-table';\n// export type RoutePath = RoutePaths<typeof routeTree>;\nexport type fieldsToDisplay = {\n display: string;\n accessor: string;\n};\n[];\nexport enum DYNAMIC_INPUT_TARGET {\n USER,\n ORGANIZATION,\n RESELLER,\n}\nexport type VisibilityState<T> = {\n [K in keyof T]?: boolean;\n};\nexport type TableActions = {\n /** True if reading this resource is allowed. */\n read: boolean;\n\n /** True if creation of resource from dashboard is allowed. */\n create: boolean;\n\n /** True if the resource can be updated */\n update: boolean;\n\n /** True if the resource can be deleted */\n delete: boolean;\n\n /** True if the resource can be exported */\n export: boolean;\n\n /** True if the resource can be linked to tags. */\n tag: boolean;\n\n /** True if searching is supported. Search is defined by the `query` QueryParameter in the Web API */\n search: boolean;\n\n /** True if selection using checkboxes is allowed */\n selection: boolean;\n\n /** True if the resource has support for segments */\n segments: boolean;\n};\n\nexport type MetadataDto = components['schemas']['MetadataDto'];\n\nexport type TableFetchFn<TData> = (\n p: PaginationState,\n s: SortingState,\n q: string,\n f: any,\n) => Promise<{\n total: number;\n data: TData[] | undefined;\n}>;\n/*** Type for hide some of the columns based on the dto of the particular page\n ** `id`, `updatedAt` are by default hidden\n */\nexport type DefaultVisibilityState<T> = {\n [K in keyof T]?: boolean;\n};\n"],"names":["DYNAMIC_INPUT_TARGET","DYNAMIC_INPUT_TARGET2"],"mappings":"AAQY,IAAAA,sBAAAA,OACVA,EAAAC,EAAA,OAAA,CAAA,IAAA,QACAD,EAAAC,EAAA,eAAA,CAAA,IAAA,gBACAD,EAAAC,EAAA,WAAA,CAAA,IAAA,YAHUD,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"types.es.js","sources":["../../../../lib/components/data-table/table-utils/types.ts"],"sourcesContent":["import type { components } from \"@cryptlex/web-api-types\";\nimport type { PaginationState, SortingState } from \"@tanstack/react-table\";\n// export type RoutePath = RoutePaths<typeof routeTree>;\nexport type fieldsToDisplay = {\n\tdisplay: string;\n\taccessor: string;\n};\n[];\nexport enum DYNAMIC_INPUT_TARGET {\n\tUSER = 0,\n\tORGANIZATION = 1,\n\tRESELLER = 2,\n}\nexport type VisibilityState<T> = {\n\t[K in keyof T]?: boolean;\n};\nexport type TableActions = {\n\t/** True if reading this resource is allowed. */\n\tread: boolean;\n\n\t/** True if creation of resource from dashboard is allowed. */\n\tcreate: boolean;\n\n\t/** True if the resource can be updated */\n\tupdate: boolean;\n\n\t/** True if the resource can be deleted */\n\tdelete: boolean;\n\n\t/** True if the resource can be exported */\n\texport: boolean;\n\n\t/** True if the resource can be linked to tags. */\n\ttag: boolean;\n\n\t/** True if searching is supported. Search is defined by the `query` QueryParameter in the Web API */\n\tsearch: boolean;\n\n\t/** True if selection using checkboxes is allowed */\n\tselection: boolean;\n\n\t/** True if the resource has support for segments */\n\tsegments: boolean;\n};\n\nexport type MetadataDto = components[\"schemas\"][\"MetadataDto\"];\n\nexport type TableFetchFn<TData> = (\n\tp: PaginationState,\n\ts: SortingState,\n\tq: string,\n\t// f: any,\n) => Promise<{\n\ttotal: number;\n\tdata: TData[] | undefined;\n}>;\n/*** Type for hide some of the columns based on the dto of the particular page\n ** `id`, `updatedAt` are by default hidden\n */\nexport type DefaultVisibilityState<T> = {\n\t[K in keyof T]?: boolean;\n};\n"],"names":["DYNAMIC_INPUT_TARGET"],"mappings":"AAQY,IAAAA,sBAAAA,OACXA,EAAAA,EAAA,OAAO,CAAP,IAAA,QACAA,EAAAA,EAAA,eAAe,CAAf,IAAA,gBACAA,EAAAA,EAAA,WAAW,CAAX,IAAA,YAHWA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -0,0 +1,61 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { buttonVariants as t } from "../ui/button.es.js";
3
+ import { cn as e } from "../../utils/index.es.js";
4
+ import { DayPicker as s } from "../../node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/DayPicker.es.js";
5
+ function u({
6
+ className: r,
7
+ classNames: d,
8
+ showOutsideDays: o = !0,
9
+ ...a
10
+ }) {
11
+ return /* @__PURE__ */ n(
12
+ s,
13
+ {
14
+ showOutsideDays: o,
15
+ className: e("p-3", r),
16
+ classNames: {
17
+ months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
18
+ month: "space-y-4",
19
+ caption: "flex justify-center pt-1 relative items-center",
20
+ caption_label: "body font-medium",
21
+ nav: "space-x-1 flex items-center",
22
+ nav_button: e(
23
+ t({ variant: "outline" }),
24
+ "size-7 bg-transparent p-0 opacity-50 hover:opacity-100"
25
+ ),
26
+ nav_button_previous: "absolute left-1",
27
+ nav_button_next: "absolute right-1",
28
+ table: "w-full border-collapse space-y-1",
29
+ head_row: "flex",
30
+ head_cell: "text-muted-foreground rounded-md w-8 font-normal text-caption",
31
+ row: "flex w-full mt-2",
32
+ cell: e(
33
+ "relative p-0 text-center body focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",
34
+ a.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md"
35
+ ),
36
+ day: e(
37
+ t({ variant: "ghost" }),
38
+ "size-8 p-0 font-normal aria-selected:opacity-100"
39
+ ),
40
+ day_range_start: "day-range-start",
41
+ day_range_end: "day-range-end",
42
+ day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
43
+ day_today: "bg-accent text-accent-foreground",
44
+ day_outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
45
+ day_disabled: "text-muted-foreground opacity-50",
46
+ day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
47
+ day_hidden: "invisible",
48
+ ...d
49
+ },
50
+ components: {
51
+ // IconLeft: () => <ChevronLeft className="size-4" />,
52
+ // IconRight: () => <ChevronRight className="size-4" />,
53
+ },
54
+ ...a
55
+ }
56
+ );
57
+ }
58
+ export {
59
+ u as Calendar
60
+ };
61
+ //# sourceMappingURL=calendar.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar.es.js","sources":["../../../lib/components/inputs/calendar.tsx"],"sourcesContent":["import type * as React from \"react\";\nimport { DayPicker } from \"react-day-picker\";\n\nimport { buttonVariants } from \"@/components/ui/button\";\nimport { cn } from \"@/utils\";\n\nexport type CalendarProps = React.ComponentProps<typeof DayPicker>;\n\nexport function Calendar({\n\tclassName,\n\tclassNames,\n\tshowOutsideDays = true,\n\t...props\n}: CalendarProps) {\n\treturn (\n\t\t<DayPicker\n\t\t\tshowOutsideDays={showOutsideDays}\n\t\t\tclassName={cn(\"p-3\", className)}\n\t\t\tclassNames={{\n\t\t\t\tmonths: \"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0\",\n\t\t\t\tmonth: \"space-y-4\",\n\t\t\t\tcaption: \"flex justify-center pt-1 relative items-center\",\n\t\t\t\tcaption_label: \"body font-medium\",\n\t\t\t\tnav: \"space-x-1 flex items-center\",\n\t\t\t\tnav_button: cn(\n\t\t\t\t\tbuttonVariants({ variant: \"outline\" }),\n\t\t\t\t\t\"size-7 bg-transparent p-0 opacity-50 hover:opacity-100\",\n\t\t\t\t),\n\t\t\t\tnav_button_previous: \"absolute left-1\",\n\t\t\t\tnav_button_next: \"absolute right-1\",\n\t\t\t\ttable: \"w-full border-collapse space-y-1\",\n\t\t\t\thead_row: \"flex\",\n\t\t\t\thead_cell:\n\t\t\t\t\t\"text-muted-foreground rounded-md w-8 font-normal text-caption\",\n\t\t\t\trow: \"flex w-full mt-2\",\n\t\t\t\tcell: cn(\n\t\t\t\t\t\"relative p-0 text-center body focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md\",\n\t\t\t\t\tprops.mode === \"range\"\n\t\t\t\t\t\t? \"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md\"\n\t\t\t\t\t\t: \"[&:has([aria-selected])]:rounded-md\",\n\t\t\t\t),\n\t\t\t\tday: cn(\n\t\t\t\t\tbuttonVariants({ variant: \"ghost\" }),\n\t\t\t\t\t\"size-8 p-0 font-normal aria-selected:opacity-100\",\n\t\t\t\t),\n\t\t\t\tday_range_start: \"day-range-start\",\n\t\t\t\tday_range_end: \"day-range-end\",\n\t\t\t\tday_selected:\n\t\t\t\t\t\"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n\t\t\t\tday_today: \"bg-accent text-accent-foreground\",\n\t\t\t\tday_outside:\n\t\t\t\t\t\"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30\",\n\t\t\t\tday_disabled: \"text-muted-foreground opacity-50\",\n\t\t\t\tday_range_middle:\n\t\t\t\t\t\"aria-selected:bg-accent aria-selected:text-accent-foreground\",\n\t\t\t\tday_hidden: \"invisible\",\n\t\t\t\t...classNames,\n\t\t\t}}\n\t\t\tcomponents={{\n\t\t\t\t// IconLeft: () => <ChevronLeft className=\"size-4\" />,\n\t\t\t\t// IconRight: () => <ChevronRight className=\"size-4\" />,\n\t\t\t}}\n\t\t\t{...props}\n\t\t/>\n\t);\n};\n"],"names":["Calendar","className","classNames","showOutsideDays","props","jsx","DayPicker","cn","buttonVariants"],"mappings":";;;;AAQO,SAASA,EAAS;AAAA,EACxB,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,GAAGC;AACJ,GAAkB;AAEhB,SAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACA,iBAAAH;AAAA,MACA,WAAWI,EAAG,OAAON,CAAS;AAAA,MAC9B,YAAY;AAAA,QACX,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,SAAS;AAAA,QACT,eAAe;AAAA,QACf,KAAK;AAAA,QACL,YAAYM;AAAA,UACXC,EAAe,EAAE,SAAS,WAAW;AAAA,UACrC;AAAA,QACD;AAAA,QACA,qBAAqB;AAAA,QACrB,iBAAiB;AAAA,QACjB,OAAO;AAAA,QACP,UAAU;AAAA,QACV,WACC;AAAA,QACD,KAAK;AAAA,QACL,MAAMD;AAAA,UACL;AAAA,UACAH,EAAM,SAAS,UACZ,yKACA;AAAA,QACJ;AAAA,QACA,KAAKG;AAAA,UACJC,EAAe,EAAE,SAAS,SAAS;AAAA,UACnC;AAAA,QACD;AAAA,QACA,iBAAiB;AAAA,QACjB,eAAe;AAAA,QACf,cACC;AAAA,QACD,WAAW;AAAA,QACX,aACC;AAAA,QACD,cAAc;AAAA,QACd,kBACC;AAAA,QACD,YAAY;AAAA,QACZ,GAAGN;AAAA,MACJ;AAAA,MACA,YAAY;AAAA;AAAA;AAAA,MAGZ;AAAA,MACC,GAAGE;AAAA,IAAA;AAAA,EACL;AAEF;"}
@@ -0,0 +1,34 @@
1
+ import { jsx as o, Fragment as i } from "react/jsx-runtime";
2
+ import { cn as t } from "../../utils/index.es.js";
3
+ import { useFieldContext as c } from "../../utils/form-context.es.js";
4
+ function a({ className: n, checked: e, ...r }) {
5
+ return /* @__PURE__ */ o(i, { children: /* @__PURE__ */ o(
6
+ "input",
7
+ {
8
+ checked: e,
9
+ type: "checkbox",
10
+ className: t(
11
+ "appearance-none size-input border border-input bg-card checked:bg-accent rounded-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
12
+ n
13
+ ),
14
+ ...r
15
+ }
16
+ ) });
17
+ }
18
+ function s({ ...n }) {
19
+ const e = c();
20
+ return /* @__PURE__ */ o(
21
+ a,
22
+ {
23
+ checked: e.state.value,
24
+ onChange: () => e.handleChange(!e.state.value),
25
+ onBlur: e.handleBlur,
26
+ ...n
27
+ }
28
+ );
29
+ }
30
+ export {
31
+ a as Checkbox,
32
+ s as TfCheckbox
33
+ };
34
+ //# sourceMappingURL=checkbox.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.es.js","sources":["../../../lib/components/inputs/checkbox.tsx"],"sourcesContent":["import { cn } from \"@/utils\";\nimport { useFieldContext } from \"@/utils/form-context\";\nimport type * as React from \"react\";\n\nexport interface CheckboxProps\n\textends Omit<React.ComponentProps<\"input\">, \"type\" | \"value\"> { }\n\nexport function Checkbox({ className, checked, ...props }: CheckboxProps) {\n\treturn (\n\t\t<>\n\t\t\t<input\n\t\t\t\tchecked={checked}\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"appearance-none size-input border border-input bg-card checked:bg-accent rounded-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</>\n\t);\n}\n\nexport interface TfCheckboxProps\n\textends Omit<\n\t\tReact.ComponentProps<typeof Checkbox>,\n\t\t\"onChange\" | \"onBlur\" | \"checked\"\n\t> { }\nexport function TfCheckbox({ ...props }: TfCheckboxProps) {\n\tconst field = useFieldContext<boolean>();\n\n\treturn (\n\t\t<Checkbox\n\t\t\tchecked={field.state.value}\n\t\t\tonChange={() => field.handleChange(!field.state.value)}\n\t\t\tonBlur={field.handleBlur}\n\t\t\t{...props}\n\t\t/>\n\t);\n};\n"],"names":["Checkbox","className","checked","props","jsx","Fragment","cn","TfCheckbox","field","useFieldContext"],"mappings":";;;AAOO,SAASA,EAAS,EAAE,WAAAC,GAAW,SAAAC,GAAS,GAAGC,KAAwB;AACzE,SAEE,gBAAAC,EAAAC,GAAA,EAAA,UAAA,gBAAAD;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,SAAAF;AAAA,MACA,MAAK;AAAA,MACL,WAAWI;AAAA,QACV;AAAA,QACAL;AAAA,MACD;AAAA,MACC,GAAGE;AAAA,IAAA;AAAA,EAAA,GAEN;AAEF;AAOO,SAASI,EAAW,EAAE,GAAGJ,KAA0B;AACzD,QAAMK,IAAQC,EAAyB;AAGtC,SAAA,gBAAAL;AAAA,IAACJ;AAAA,IAAA;AAAA,MACA,SAASQ,EAAM,MAAM;AAAA,MACrB,UAAU,MAAMA,EAAM,aAAa,CAACA,EAAM,MAAM,KAAK;AAAA,MACrD,QAAQA,EAAM;AAAA,MACb,GAAGL;AAAA,IAAA;AAAA,EACL;AAEF;"}
@@ -0,0 +1,283 @@
1
+ import { jsx as i, jsxs as o, Fragment as t } from "react/jsx-runtime";
2
+ import { TfMultiSelect as l, MultiSelect as s } from "./multi-select.es.js";
3
+ function u(a) {
4
+ function n(r) {
5
+ return String.fromCodePoint(
6
+ 127397 + r.toUpperCase().charCodeAt(0)
7
+ );
8
+ }
9
+ return n(a[0]) + n(a[1]);
10
+ }
11
+ const d = {
12
+ AF: "Afghanistan",
13
+ AX: "Åland Islands",
14
+ AL: "Albania",
15
+ DZ: "Algeria",
16
+ AS: "American Samoa",
17
+ AD: "Andorra",
18
+ AO: "Angola",
19
+ AI: "Anguilla",
20
+ AQ: "Antarctica",
21
+ AG: "Antigua and Barbuda",
22
+ AR: "Argentina",
23
+ AM: "Armenia",
24
+ AW: "Aruba",
25
+ AU: "Australia",
26
+ AT: "Austria",
27
+ AZ: "Azerbaijan",
28
+ BS: "Bahamas",
29
+ BH: "Bahrain",
30
+ BD: "Bangladesh",
31
+ BB: "Barbados",
32
+ BY: "Belarus",
33
+ BE: "Belgium",
34
+ BZ: "Belize",
35
+ BJ: "Benin",
36
+ BM: "Bermuda",
37
+ BT: "Bhutan",
38
+ BO: "Bolivia (Plurinational State of)",
39
+ BQ: "Bonaire, Sint Eustatius and Saba",
40
+ BA: "Bosnia and Herzegovina",
41
+ BW: "Botswana",
42
+ BV: "Bouvet Island",
43
+ BR: "Brazil",
44
+ IO: "British Indian Ocean Territory",
45
+ BN: "Brunei Darussalam",
46
+ BG: "Bulgaria",
47
+ BF: "Burkina Faso",
48
+ BI: "Burundi",
49
+ CV: "Caboe Verde",
50
+ KH: "Cambodia",
51
+ CM: "Cameroon",
52
+ CA: "Canada",
53
+ KY: "Cayman Islands",
54
+ CF: "Central African Republic",
55
+ TD: "Chad",
56
+ CL: "Chile",
57
+ CN: "China",
58
+ CX: "Christmas Island",
59
+ CC: "Cocos (Keeling) Islands",
60
+ CO: "Colombia",
61
+ KM: "Comoros",
62
+ CG: "Congo",
63
+ CD: "Congo, Democratic Republic of the",
64
+ CK: "Cook Islands",
65
+ CR: "Costa Rica",
66
+ CI: "Côte d'voire",
67
+ HR: "Croatia",
68
+ CU: "Cuba",
69
+ CW: "Curaçao",
70
+ CY: "Cyprus",
71
+ CZ: "Czechia",
72
+ DK: "Denmark",
73
+ DJ: "Djibouti",
74
+ DM: "Dominica",
75
+ DO: "Dominican Republic",
76
+ EC: "Ecuador",
77
+ EG: "Egypt",
78
+ SV: "El Salvador",
79
+ GQ: "Equatorial Guinea",
80
+ ER: "Eritrea",
81
+ EE: "Estonia",
82
+ SZ: "Eswatini",
83
+ ET: "Ethiopia",
84
+ FK: "Falkland Islands (Malvinas)",
85
+ FO: "Faroe Islands",
86
+ FJ: "Fiji",
87
+ FI: "Finland",
88
+ FR: "France",
89
+ GF: "French Guiana",
90
+ PF: "French Polynesia",
91
+ TF: "French Southern Territories",
92
+ GA: "Gabon",
93
+ GM: "Gambia",
94
+ GE: "Georgia",
95
+ DE: "Germany",
96
+ GH: "Ghana",
97
+ GI: "Gibraltar",
98
+ GR: "Greece",
99
+ GL: "Greenland",
100
+ GD: "Grenada",
101
+ GP: "Guadeloupe",
102
+ GU: "Guam",
103
+ GT: "Guatemala",
104
+ GG: "Guernsey",
105
+ GN: "Guinea",
106
+ GW: "Guinea-Bissau",
107
+ GY: "Guyana",
108
+ HT: "Haiti",
109
+ HM: "Heard Island and Mcdonald Islands",
110
+ VA: "Holy See",
111
+ HN: "Honduras",
112
+ HK: "Hong Kong",
113
+ HU: "Hungary",
114
+ IS: "Iceland",
115
+ IN: "India",
116
+ ID: "Indonesia",
117
+ IR: "Iran (Islamic Republic of)",
118
+ IQ: "Iraq",
119
+ IE: "Ireland",
120
+ IM: "Isle of Man",
121
+ IL: "Israel",
122
+ IT: "Italy",
123
+ JM: "Jamaica",
124
+ JP: "Japan",
125
+ JE: "Jersey",
126
+ JO: "Jordan",
127
+ KZ: "Kazakhstan",
128
+ KE: "Kenya",
129
+ KI: "Kiribati",
130
+ KP: "Korea (Democratic People's Republic of)",
131
+ KR: "Korea (Republic of)",
132
+ KW: "Kuwait",
133
+ KG: "Kyrgyzstan",
134
+ LA: "Lao People's Democratic Republic",
135
+ LV: "Latvia",
136
+ LB: "Lebanon",
137
+ LS: "Lesotho",
138
+ LR: "Liberia",
139
+ LY: "Libya",
140
+ LI: "Liechtenstein",
141
+ LT: "Lithuania",
142
+ LU: "Luxembourg",
143
+ MO: "Macao",
144
+ MG: "Madagascar",
145
+ MW: "Malawi",
146
+ MY: "Malaysia",
147
+ MV: "Maldives",
148
+ ML: "Mali",
149
+ MT: "Malta",
150
+ MH: "Marshall Islands",
151
+ MQ: "Martinique",
152
+ MR: "Mauritania",
153
+ MU: "Mauritius",
154
+ YT: "Mayotte",
155
+ MX: "Mexico",
156
+ FM: "Micronesia (Federated States of)",
157
+ MD: "Moldova, Republic of",
158
+ MC: "Monaco",
159
+ MN: "Mongolia",
160
+ ME: "Montenegro",
161
+ MS: "Montserrat",
162
+ MA: "Morocco",
163
+ MZ: "Mozambique",
164
+ MM: "Myanmar",
165
+ NA: "Namibia",
166
+ NR: "Nauru",
167
+ NP: "Nepal",
168
+ NL: "Netherlands, Kingdom of the",
169
+ NC: "New Caledonia",
170
+ NZ: "New Zealand",
171
+ NI: "Nicaragua",
172
+ NE: "Niger",
173
+ NG: "Nigeria",
174
+ NU: "Niue",
175
+ NF: "Norfolk Island",
176
+ MK: "North Macedonia",
177
+ MP: "Northern Mariana Islands",
178
+ NO: "Norway",
179
+ OM: "Oman",
180
+ PK: "Pakistan",
181
+ PW: "Palau",
182
+ PS: "Palestine, State of",
183
+ PA: "Panama",
184
+ PG: "Papua New Guinea",
185
+ PY: "Paraguay",
186
+ PE: "Peru",
187
+ PH: "Philippines",
188
+ PN: "Pitcairn",
189
+ PL: "Poland",
190
+ PT: "Portugal",
191
+ PR: "Puerto Rico",
192
+ QA: "Qatar",
193
+ RE: "Réunion",
194
+ RO: "Romania",
195
+ RU: "Russian Federation",
196
+ RW: "Rwanda",
197
+ BL: "Saint Barthélemy",
198
+ SH: "Saint Helena, Ascension Island, Tristan da Cunha",
199
+ KN: "Saint Kitts and Nevis",
200
+ LC: "Saint Lucia",
201
+ MF: "Saint Martin (French part)",
202
+ PM: "Saint Pierre and Miquelon",
203
+ VC: "Saint Vincent and the Grenadines",
204
+ WS: "Samoa",
205
+ SM: "San Marino",
206
+ ST: "Sao Tome and Principe",
207
+ SA: "Saudi Arabia",
208
+ SN: "Senegal",
209
+ RS: "Serbia",
210
+ SC: "Seychelles",
211
+ SL: "Sierra Leone",
212
+ SG: "Singapore",
213
+ SX: "Sint Maarten (Dutch part)",
214
+ SK: "Slovakia",
215
+ SI: "Slovenia",
216
+ SB: "Solomon Islands",
217
+ SO: "Somalia",
218
+ ZA: "South Africa",
219
+ GS: "South Georgia and the South Sandwich Islands",
220
+ SS: "South Sudan",
221
+ ES: "Spain",
222
+ LK: "Sri Lanka",
223
+ SD: "Sudan",
224
+ SR: "Suriname",
225
+ SJ: "Svalbard and Jan Mayen",
226
+ SE: "Sweden",
227
+ CH: "Switzerland",
228
+ SY: "Syrian Arab Republic",
229
+ TW: "Taiwan, Province of China",
230
+ TJ: "Tajikistan",
231
+ TZ: "Tanzania, United Republic of",
232
+ TH: "Thailand",
233
+ TL: "Timor-Leste",
234
+ TG: "Togo",
235
+ TK: "Tokelau",
236
+ TO: "Tonga",
237
+ TT: "Trinidad and Tobago",
238
+ TN: "Tunisia",
239
+ TR: "Türkiye",
240
+ TM: "Turkmenistan",
241
+ TC: "Turks and Caicos Islands",
242
+ TV: "Tuvalu",
243
+ UG: "Uganda",
244
+ UA: "Ukraine",
245
+ AE: "United Arab Emirates",
246
+ GB: "United Kingdom of Great Britain and Northern Ireland",
247
+ UM: "United States Minor Outlying Islands",
248
+ US: "United States of America",
249
+ UY: "Uruguay",
250
+ UZ: "Uzbekistan",
251
+ VU: "Vanuatu",
252
+ VE: "Venezuela (Bolivarian Republic of)",
253
+ VN: "Viet Nam",
254
+ VG: "Virgin Islands (British)",
255
+ VI: "Virgin Islands (U.S)",
256
+ WF: "Wallis and Futuna",
257
+ EH: "Western Sahara",
258
+ YE: "Yemen",
259
+ ZM: "Zambia",
260
+ ZW: "Zimbabwe"
261
+ }, e = Object.entries(d).map((a) => ({
262
+ label: /* @__PURE__ */ o(t, { children: [
263
+ u(a[0]),
264
+ " ",
265
+ a[1]
266
+ ] }),
267
+ value: a[0]
268
+ }));
269
+ function c({
270
+ ...a
271
+ }) {
272
+ return /* @__PURE__ */ i(s, { ...a, options: e });
273
+ }
274
+ function C({
275
+ ...a
276
+ }) {
277
+ return /* @__PURE__ */ i(l, { ...a, options: e });
278
+ }
279
+ export {
280
+ c as CountrySelect,
281
+ C as TfCountrySelect
282
+ };
283
+ //# sourceMappingURL=country-select.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country-select.es.js","sources":["../../../lib/components/inputs/country-select.tsx"],"sourcesContent":["import {\n\tMultiSelect,\n\tTfMultiSelect,\n\ttype MultiSelectProps,\n\ttype TfMultiSelectProps,\n} from \"@/components/inputs/multi-select\";\n\n/**\n * Creates Unicode flag from a two-letter ISO country code.\n * https://stackoverflow.com/questions/24050671/how-to-put-japan-flag-character-in-a-string\n * @param {string} country — A two-letter ISO country code (case-insensitive).\n * @return {string}\n */\nfunction getCountryFlag(country: string) {\n\tfunction getRegionalIndicatorSymbol(letter: string) {\n\t\treturn String.fromCodePoint(\n\t\t\t0x1f1e6 - 65 + letter.toUpperCase().charCodeAt(0),\n\t\t);\n\t}\n\n\treturn (\n\t\tgetRegionalIndicatorSymbol(country[0]) +\n\t\tgetRegionalIndicatorSymbol(country[1])\n\t);\n}\n\nconst ALL_COUNTRIES: { [key: string]: string } = {\n\tAF: \"Afghanistan\",\n\tAX: \"Åland Islands\",\n\tAL: \"Albania\",\n\tDZ: \"Algeria\",\n\tAS: \"American Samoa\",\n\tAD: \"Andorra\",\n\tAO: \"Angola\",\n\tAI: \"Anguilla\",\n\tAQ: \"Antarctica\",\n\tAG: \"Antigua and Barbuda\",\n\tAR: \"Argentina\",\n\tAM: \"Armenia\",\n\tAW: \"Aruba\",\n\tAU: \"Australia\",\n\tAT: \"Austria\",\n\tAZ: \"Azerbaijan\",\n\tBS: \"Bahamas\",\n\tBH: \"Bahrain\",\n\tBD: \"Bangladesh\",\n\tBB: \"Barbados\",\n\tBY: \"Belarus\",\n\tBE: \"Belgium\",\n\tBZ: \"Belize\",\n\tBJ: \"Benin\",\n\tBM: \"Bermuda\",\n\tBT: \"Bhutan\",\n\tBO: \"Bolivia (Plurinational State of)\",\n\tBQ: \"Bonaire, Sint Eustatius and Saba\",\n\tBA: \"Bosnia and Herzegovina\",\n\tBW: \"Botswana\",\n\tBV: \"Bouvet Island\",\n\tBR: \"Brazil\",\n\tIO: \"British Indian Ocean Territory\",\n\tBN: \"Brunei Darussalam\",\n\tBG: \"Bulgaria\",\n\tBF: \"Burkina Faso\",\n\tBI: \"Burundi\",\n\tCV: \"Caboe Verde\",\n\tKH: \"Cambodia\",\n\tCM: \"Cameroon\",\n\tCA: \"Canada\",\n\tKY: \"Cayman Islands\",\n\tCF: \"Central African Republic\",\n\tTD: \"Chad\",\n\tCL: \"Chile\",\n\tCN: \"China\",\n\tCX: \"Christmas Island\",\n\tCC: \"Cocos (Keeling) Islands\",\n\tCO: \"Colombia\",\n\tKM: \"Comoros\",\n\tCG: \"Congo\",\n\tCD: \"Congo, Democratic Republic of the\",\n\tCK: \"Cook Islands\",\n\tCR: \"Costa Rica\",\n\tCI: \"Côte d'voire\",\n\tHR: \"Croatia\",\n\tCU: \"Cuba\",\n\tCW: \"Curaçao\",\n\tCY: \"Cyprus\",\n\tCZ: \"Czechia\",\n\tDK: \"Denmark\",\n\tDJ: \"Djibouti\",\n\tDM: \"Dominica\",\n\tDO: \"Dominican Republic\",\n\tEC: \"Ecuador\",\n\tEG: \"Egypt\",\n\tSV: \"El Salvador\",\n\tGQ: \"Equatorial Guinea\",\n\tER: \"Eritrea\",\n\tEE: \"Estonia\",\n\tSZ: \"Eswatini\",\n\tET: \"Ethiopia\",\n\tFK: \"Falkland Islands (Malvinas)\",\n\tFO: \"Faroe Islands\",\n\tFJ: \"Fiji\",\n\tFI: \"Finland\",\n\tFR: \"France\",\n\tGF: \"French Guiana\",\n\tPF: \"French Polynesia\",\n\tTF: \"French Southern Territories\",\n\tGA: \"Gabon\",\n\tGM: \"Gambia\",\n\tGE: \"Georgia\",\n\tDE: \"Germany\",\n\tGH: \"Ghana\",\n\tGI: \"Gibraltar\",\n\tGR: \"Greece\",\n\tGL: \"Greenland\",\n\tGD: \"Grenada\",\n\tGP: \"Guadeloupe\",\n\tGU: \"Guam\",\n\tGT: \"Guatemala\",\n\tGG: \"Guernsey\",\n\tGN: \"Guinea\",\n\tGW: \"Guinea-Bissau\",\n\tGY: \"Guyana\",\n\tHT: \"Haiti\",\n\tHM: \"Heard Island and Mcdonald Islands\",\n\tVA: \"Holy See\",\n\tHN: \"Honduras\",\n\tHK: \"Hong Kong\",\n\tHU: \"Hungary\",\n\tIS: \"Iceland\",\n\tIN: \"India\",\n\tID: \"Indonesia\",\n\tIR: \"Iran (Islamic Republic of)\",\n\tIQ: \"Iraq\",\n\tIE: \"Ireland\",\n\tIM: \"Isle of Man\",\n\tIL: \"Israel\",\n\tIT: \"Italy\",\n\tJM: \"Jamaica\",\n\tJP: \"Japan\",\n\tJE: \"Jersey\",\n\tJO: \"Jordan\",\n\tKZ: \"Kazakhstan\",\n\tKE: \"Kenya\",\n\tKI: \"Kiribati\",\n\tKP: \"Korea (Democratic People's Republic of)\",\n\tKR: \"Korea (Republic of)\",\n\tKW: \"Kuwait\",\n\tKG: \"Kyrgyzstan\",\n\tLA: \"Lao People's Democratic Republic\",\n\tLV: \"Latvia\",\n\tLB: \"Lebanon\",\n\tLS: \"Lesotho\",\n\tLR: \"Liberia\",\n\tLY: \"Libya\",\n\tLI: \"Liechtenstein\",\n\tLT: \"Lithuania\",\n\tLU: \"Luxembourg\",\n\tMO: \"Macao\",\n\tMG: \"Madagascar\",\n\tMW: \"Malawi\",\n\tMY: \"Malaysia\",\n\tMV: \"Maldives\",\n\tML: \"Mali\",\n\tMT: \"Malta\",\n\tMH: \"Marshall Islands\",\n\tMQ: \"Martinique\",\n\tMR: \"Mauritania\",\n\tMU: \"Mauritius\",\n\tYT: \"Mayotte\",\n\tMX: \"Mexico\",\n\tFM: \"Micronesia (Federated States of)\",\n\tMD: \"Moldova, Republic of\",\n\tMC: \"Monaco\",\n\tMN: \"Mongolia\",\n\tME: \"Montenegro\",\n\tMS: \"Montserrat\",\n\tMA: \"Morocco\",\n\tMZ: \"Mozambique\",\n\tMM: \"Myanmar\",\n\tNA: \"Namibia\",\n\tNR: \"Nauru\",\n\tNP: \"Nepal\",\n\tNL: \"Netherlands, Kingdom of the\",\n\tNC: \"New Caledonia\",\n\tNZ: \"New Zealand\",\n\tNI: \"Nicaragua\",\n\tNE: \"Niger\",\n\tNG: \"Nigeria\",\n\tNU: \"Niue\",\n\tNF: \"Norfolk Island\",\n\tMK: \"North Macedonia\",\n\tMP: \"Northern Mariana Islands\",\n\tNO: \"Norway\",\n\tOM: \"Oman\",\n\tPK: \"Pakistan\",\n\tPW: \"Palau\",\n\tPS: \"Palestine, State of\",\n\tPA: \"Panama\",\n\tPG: \"Papua New Guinea\",\n\tPY: \"Paraguay\",\n\tPE: \"Peru\",\n\tPH: \"Philippines\",\n\tPN: \"Pitcairn\",\n\tPL: \"Poland\",\n\tPT: \"Portugal\",\n\tPR: \"Puerto Rico\",\n\tQA: \"Qatar\",\n\tRE: \"Réunion\",\n\tRO: \"Romania\",\n\tRU: \"Russian Federation\",\n\tRW: \"Rwanda\",\n\tBL: \"Saint Barthélemy\",\n\tSH: \"Saint Helena, Ascension Island, Tristan da Cunha\",\n\tKN: \"Saint Kitts and Nevis\",\n\tLC: \"Saint Lucia\",\n\tMF: \"Saint Martin (French part)\",\n\tPM: \"Saint Pierre and Miquelon\",\n\tVC: \"Saint Vincent and the Grenadines\",\n\tWS: \"Samoa\",\n\tSM: \"San Marino\",\n\tST: \"Sao Tome and Principe\",\n\tSA: \"Saudi Arabia\",\n\tSN: \"Senegal\",\n\tRS: \"Serbia\",\n\tSC: \"Seychelles\",\n\tSL: \"Sierra Leone\",\n\tSG: \"Singapore\",\n\tSX: \"Sint Maarten (Dutch part)\",\n\tSK: \"Slovakia\",\n\tSI: \"Slovenia\",\n\tSB: \"Solomon Islands\",\n\tSO: \"Somalia\",\n\tZA: \"South Africa\",\n\tGS: \"South Georgia and the South Sandwich Islands\",\n\tSS: \"South Sudan\",\n\tES: \"Spain\",\n\tLK: \"Sri Lanka\",\n\tSD: \"Sudan\",\n\tSR: \"Suriname\",\n\tSJ: \"Svalbard and Jan Mayen\",\n\tSE: \"Sweden\",\n\tCH: \"Switzerland\",\n\tSY: \"Syrian Arab Republic\",\n\tTW: \"Taiwan, Province of China\",\n\tTJ: \"Tajikistan\",\n\tTZ: \"Tanzania, United Republic of\",\n\tTH: \"Thailand\",\n\tTL: \"Timor-Leste\",\n\tTG: \"Togo\",\n\tTK: \"Tokelau\",\n\tTO: \"Tonga\",\n\tTT: \"Trinidad and Tobago\",\n\tTN: \"Tunisia\",\n\tTR: \"Türkiye\",\n\tTM: \"Turkmenistan\",\n\tTC: \"Turks and Caicos Islands\",\n\tTV: \"Tuvalu\",\n\tUG: \"Uganda\",\n\tUA: \"Ukraine\",\n\tAE: \"United Arab Emirates\",\n\tGB: \"United Kingdom of Great Britain and Northern Ireland\",\n\tUM: \"United States Minor Outlying Islands\",\n\tUS: \"United States of America\",\n\tUY: \"Uruguay\",\n\tUZ: \"Uzbekistan\",\n\tVU: \"Vanuatu\",\n\tVE: \"Venezuela (Bolivarian Republic of)\",\n\tVN: \"Viet Nam\",\n\tVG: \"Virgin Islands (British)\",\n\tVI: \"Virgin Islands (U.S)\",\n\tWF: \"Wallis and Futuna\",\n\tEH: \"Western Sahara\",\n\tYE: \"Yemen\",\n\tZM: \"Zambia\",\n\tZW: \"Zimbabwe\",\n};\n\n/** Options for MultiSelect component */\nconst options = Object.entries(ALL_COUNTRIES).map((v) => {\n\treturn {\n\t\tlabel: (\n\t\t\t<>\n\t\t\t\t{getCountryFlag(v[0])} {v[1]}\n\t\t\t</>\n\t\t),\n\t\tvalue: v[0],\n\t};\n});\n\nexport function CountrySelect({\n\t...props\n}: Omit<MultiSelectProps, \"options\">) {\n\treturn <MultiSelect {...props} options={options} />;\n};\n\nexport function TfCountrySelect({\n\t...props\n}: Omit<TfMultiSelectProps, \"options\">) {\n\treturn <TfMultiSelect {...props} options={options} />;\n};\n"],"names":["getCountryFlag","country","getRegionalIndicatorSymbol","letter","ALL_COUNTRIES","options","v","jsxs","Fragment","CountrySelect","props","jsx","MultiSelect","TfCountrySelect","TfMultiSelect"],"mappings":";;AAaA,SAASA,EAAeC,GAAiB;AACxC,WAASC,EAA2BC,GAAgB;AACnD,WAAO,OA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