@getflip/swirl-components-react 0.0.0-beta-20260114160010

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 (460) hide show
  1. package/README.md +4 -0
  2. package/dist/FileSaver.min-DISpcNDq.9430eab9.js +79 -0
  3. package/dist/a11y-dialog.esm-DyxMdBpZ.05195d89.js +99 -0
  4. package/dist/bodyScrollLock.esm-B0kNlhKL.c7a66a82.js +93 -0
  5. package/dist/file-manager.entry.9324d1f2.js +57 -0
  6. package/dist/floating-ui.dom.browser.min-BtsCuEVE.45e9e353.js +407 -0
  7. package/dist/focus-trap.esm-DIdMBZfn.c41dd5d8.js +568 -0
  8. package/dist/index-D3UoejeY.7db8c51e.js +7494 -0
  9. package/dist/index-orsBiyT_.fc4357c3.js +47 -0
  10. package/dist/index.a571673c.js +4538 -0
  11. package/dist/index.d.ts +1 -0
  12. package/dist/media-query.service-BZg4zbFx.7454a4f3.js +17 -0
  13. package/dist/sortable.esm-CMrz6687.dac971cd.js +1240 -0
  14. package/dist/stencil-generated/index.d.ts +474 -0
  15. package/dist/stencil-generated/react-component-lib/createComponent.d.ts +10 -0
  16. package/dist/stencil-generated/react-component-lib/createOverlayComponent.d.ts +21 -0
  17. package/dist/stencil-generated/react-component-lib/index.d.ts +2 -0
  18. package/dist/stencil-generated/react-component-lib/interfaces.d.ts +29 -0
  19. package/dist/stencil-generated/react-component-lib/utils/attachProps.d.ts +16 -0
  20. package/dist/stencil-generated/react-component-lib/utils/case.d.ts +2 -0
  21. package/dist/stencil-generated/react-component-lib/utils/index.d.ts +10 -0
  22. package/dist/swirl-accordion-item.entry.31fbf5c5.js +38 -0
  23. package/dist/swirl-accordion.entry.cfd20983.js +36 -0
  24. package/dist/swirl-action-list-section.entry.b7c81227.js +15 -0
  25. package/dist/swirl-action-list_2.entry.223fbd83.js +94 -0
  26. package/dist/swirl-app-bar.entry.37b95506.js +49 -0
  27. package/dist/swirl-app-icon.entry.6f0989a4.js +30 -0
  28. package/dist/swirl-app-layout_5.entry.20f3bb24.js +482 -0
  29. package/dist/swirl-autocomplete.entry.9ebda2cc.js +115 -0
  30. package/dist/swirl-avatar-group.entry.74269f75.js +37 -0
  31. package/dist/swirl-avatar.entry.e7c15705.js +71 -0
  32. package/dist/swirl-badge.entry.58aa8dbc.js +19 -0
  33. package/dist/swirl-banner.entry.4fcc4c7d.js +51 -0
  34. package/dist/swirl-box.entry.1b222cd9.js +78 -0
  35. package/dist/swirl-button-group.entry.bcc8068f.js +19 -0
  36. package/dist/swirl-button.entry.95db14c8.js +66 -0
  37. package/dist/swirl-card.entry.04b2829f.js +55 -0
  38. package/dist/swirl-carousel-slide.entry.af4c744d.js +23 -0
  39. package/dist/swirl-carousel.entry.be08f959.js +99 -0
  40. package/dist/swirl-checkbox.entry.1b75bf7c.js +30 -0
  41. package/dist/swirl-chip.entry.e44a0ab3.js +42 -0
  42. package/dist/swirl-color-input.entry.20a36e97.js +270 -0
  43. package/dist/swirl-columns.entry.48d14ddb.js +18 -0
  44. package/dist/swirl-components-react.js +478 -0
  45. package/dist/swirl-components-react.umd.cjs +707 -0
  46. package/dist/swirl-console-layout.entry.b09d278c.js +99 -0
  47. package/dist/swirl-data-cell-stack.entry.34d1281b.js +27 -0
  48. package/dist/swirl-data-cell.entry.5626b905.js +25 -0
  49. package/dist/swirl-date-input.entry.8157a0d6.js +142 -0
  50. package/dist/swirl-date-picker_2.entry.d7f6d860.js +47 -0
  51. package/dist/swirl-description-list-item.entry.791e4702.js +24 -0
  52. package/dist/swirl-description-list.entry.bfbeb9f7.js +15 -0
  53. package/dist/swirl-dialog.entry.a7ced35a.js +47 -0
  54. package/dist/swirl-emoji-clap.entry.bf934cb3.js +17 -0
  55. package/dist/swirl-emoji-happy.entry.c0906888.js +17 -0
  56. package/dist/swirl-emoji-idea.entry.d7e3e745.js +17 -0
  57. package/dist/swirl-emoji-love.entry.6e1bac94.js +17 -0
  58. package/dist/swirl-emoji-sad.entry.d643653a.js +17 -0
  59. package/dist/swirl-emoji-thumbs-up.entry.9ab2cf9d.js +17 -0
  60. package/dist/swirl-emoji.entry.583c2f57.js +16 -0
  61. package/dist/swirl-file-chip.entry.b4cef1ea.js +57 -0
  62. package/dist/swirl-file-uploader.entry.d5817238.js +31 -0
  63. package/dist/swirl-file-viewer_8.entry.8b2b3825.js +18733 -0
  64. package/dist/swirl-form-control.entry.629ecdc9.js +102 -0
  65. package/dist/swirl-form-group.entry.cf1e2b90.js +17 -0
  66. package/dist/swirl-heading.entry.de4bcccf.js +26 -0
  67. package/dist/swirl-icon-add-moderator.entry.5d132121.js +19 -0
  68. package/dist/swirl-icon-add-photo.entry.f347873b.js +19 -0
  69. package/dist/swirl-icon-add-reaction.entry.45b74b14.js +19 -0
  70. package/dist/swirl-icon-add_6.entry.0d135c71.js +84 -0
  71. package/dist/swirl-icon-admin-panel-settings.entry.53a4acd1.js +19 -0
  72. package/dist/swirl-icon-ai-filled.entry.94219699.js +19 -0
  73. package/dist/swirl-icon-ai.entry.aec5f959.js +19 -0
  74. package/dist/swirl-icon-apps.entry.98af7691.js +19 -0
  75. package/dist/swirl-icon-arrow-back_5.entry.470cc5c3.js +71 -0
  76. package/dist/swirl-icon-arrow-downward_2.entry.0481ca15.js +32 -0
  77. package/dist/swirl-icon-arrow-left_4.entry.7f95b0bf.js +59 -0
  78. package/dist/swirl-icon-arrow-right-small.entry.f56a9208.js +19 -0
  79. package/dist/swirl-icon-aspect-ratio.entry.7242c53a.js +19 -0
  80. package/dist/swirl-icon-attachment_6.entry.db8e96d0.js +84 -0
  81. package/dist/swirl-icon-autorenew.entry.f93bdac5.js +19 -0
  82. package/dist/swirl-icon-bar-chart.entry.ce837874.js +19 -0
  83. package/dist/swirl-icon-beach-access-filled.entry.4487e775.js +19 -0
  84. package/dist/swirl-icon-beach-access.entry.a7817d07.js +19 -0
  85. package/dist/swirl-icon-block.entry.1e248eb7.js +19 -0
  86. package/dist/swirl-icon-bookmark-filled.entry.760cc04c.js +19 -0
  87. package/dist/swirl-icon-bookmark.entry.4e3cec92.js +19 -0
  88. package/dist/swirl-icon-calendar-add-on-filled.entry.15e61a59.js +19 -0
  89. package/dist/swirl-icon-calendar-respond.entry.385706f6.js +19 -0
  90. package/dist/swirl-icon-calendar-today.entry.580617b5.js +19 -0
  91. package/dist/swirl-icon-call-end.entry.ba24d100.js +19 -0
  92. package/dist/swirl-icon-call.entry.30cb76cb.js +19 -0
  93. package/dist/swirl-icon-cancel-filled.entry.c0669dc0.js +19 -0
  94. package/dist/swirl-icon-cancel-outline.entry.9b6cd6af.js +19 -0
  95. package/dist/swirl-icon-cancel_4.entry.0f12fe5d.js +58 -0
  96. package/dist/swirl-icon-chat-bubble.entry.9d30b9e7.js +19 -0
  97. package/dist/swirl-icon-chats-filled.entry.923ab51c.js +19 -0
  98. package/dist/swirl-icon-chats.entry.9732dfbf.js +19 -0
  99. package/dist/swirl-icon-check-circle-filled.entry.2b6ef8f9.js +19 -0
  100. package/dist/swirl-icon-check-circle_2.entry.321ddcb8.js +32 -0
  101. package/dist/swirl-icon-check-small_3.entry.265cd869.js +45 -0
  102. package/dist/swirl-icon-check.entry.26756ff1.js +19 -0
  103. package/dist/swirl-icon-checkbox-filled.entry.c03b691f.js +19 -0
  104. package/dist/swirl-icon-chevron-left.entry.b4e39cb3.js +19 -0
  105. package/dist/swirl-icon-chevron-right.entry.62384158.js +19 -0
  106. package/dist/swirl-icon-close-fullscreen.entry.b6bdec6d.js +19 -0
  107. package/dist/swirl-icon-close-small.entry.e4328d58.js +19 -0
  108. package/dist/swirl-icon-close.entry.f4a5ab8a.js +19 -0
  109. package/dist/swirl-icon-cloud-upload.entry.8ac8a3ec.js +19 -0
  110. package/dist/swirl-icon-column.entry.7206b282.js +19 -0
  111. package/dist/swirl-icon-comment.entry.06794b41.js +19 -0
  112. package/dist/swirl-icon-contrast.entry.7d685a11.js +19 -0
  113. package/dist/swirl-icon-copy.entry.09fa5029.js +19 -0
  114. package/dist/swirl-icon-crop.entry.2f79f6b9.js +19 -0
  115. package/dist/swirl-icon-dark-mode.entry.837b3751.js +19 -0
  116. package/dist/swirl-icon-date-range.entry.d7069a91.js +19 -0
  117. package/dist/swirl-icon-delete.entry.65e85f8b.js +19 -0
  118. package/dist/swirl-icon-deployed-code.entry.8bd3655e.js +19 -0
  119. package/dist/swirl-icon-description.entry.f6a3484a.js +19 -0
  120. package/dist/swirl-icon-desktop.entry.746ad477.js +19 -0
  121. package/dist/swirl-icon-directory-filled.entry.73501145.js +19 -0
  122. package/dist/swirl-icon-directory.entry.3f400073.js +19 -0
  123. package/dist/swirl-icon-discover.entry.7caa9191.js +19 -0
  124. package/dist/swirl-icon-dock-left.entry.8d1206ba.js +19 -0
  125. package/dist/swirl-icon-door-open.entry.110188f8.js +19 -0
  126. package/dist/swirl-icon-dot.entry.36b2b4c1.js +19 -0
  127. package/dist/swirl-icon-double-arrow-right.entry.7f3d1d6a.js +19 -0
  128. package/dist/swirl-icon-download.entry.0905afd1.js +19 -0
  129. package/dist/swirl-icon-edit-note.entry.cbc8e96f.js +19 -0
  130. package/dist/swirl-icon-edit.entry.d1971f53.js +19 -0
  131. package/dist/swirl-icon-emoji-mood.entry.cb732a8e.js +19 -0
  132. package/dist/swirl-icon-emoji-satisfied.entry.6ab31ac0.js +19 -0
  133. package/dist/swirl-icon-emoji-symbols.entry.aa7f65ae.js +19 -0
  134. package/dist/swirl-icon-error_3.entry.a68cc1ce.js +59 -0
  135. package/dist/swirl-icon-expand-more.entry.abd7b9f9.js +19 -0
  136. package/dist/swirl-icon-experiment.entry.3796deb4.js +19 -0
  137. package/dist/swirl-icon-file.entry.a3b46a14.js +19 -0
  138. package/dist/swirl-icon-filter.entry.680660c0.js +19 -0
  139. package/dist/swirl-icon-format-h-one.entry.144610d2.js +19 -0
  140. package/dist/swirl-icon-format-list-bulleted.entry.931716c0.js +19 -0
  141. package/dist/swirl-icon-forward.entry.e22fcd0a.js +19 -0
  142. package/dist/swirl-icon-gif.entry.3bf5c061.js +19 -0
  143. package/dist/swirl-icon-group-add.entry.8955b53b.js +19 -0
  144. package/dist/swirl-icon-group-assign.entry.3babab99.js +19 -0
  145. package/dist/swirl-icon-groups-filled.entry.835ea7dc.js +19 -0
  146. package/dist/swirl-icon-groups.entry.7bcbc5f8.js +19 -0
  147. package/dist/swirl-icon-hamburger-menu.entry.f1393962.js +19 -0
  148. package/dist/swirl-icon-health-and-safety.entry.9ee990bf.js +19 -0
  149. package/dist/swirl-icon-help-filled.entry.6710be90.js +19 -0
  150. package/dist/swirl-icon-help.entry.1d7b617a.js +19 -0
  151. package/dist/swirl-icon-highlight.entry.552d6123.js +19 -0
  152. package/dist/swirl-icon-history.entry.0c15188f.js +19 -0
  153. package/dist/swirl-icon-home-filled.entry.628bd980.js +19 -0
  154. package/dist/swirl-icon-home.entry.810b36dc.js +19 -0
  155. package/dist/swirl-icon-hr-resting.entry.00f0b993.js +19 -0
  156. package/dist/swirl-icon-improve-text.entry.1446114d.js +19 -0
  157. package/dist/swirl-icon-info.entry.73d6a040.js +19 -0
  158. package/dist/swirl-icon-insert-below.entry.2b152638.js +19 -0
  159. package/dist/swirl-icon-insert-chart.entry.c633da44.js +19 -0
  160. package/dist/swirl-icon-insert-on-top.entry.215d4894.js +19 -0
  161. package/dist/swirl-icon-inventory-off.entry.ef9ceabd.js +19 -0
  162. package/dist/swirl-icon-inventory.entry.ce6112ff.js +19 -0
  163. package/dist/swirl-icon-iphone.entry.0ef61fb2.js +19 -0
  164. package/dist/swirl-icon-key.entry.ff87d058.js +19 -0
  165. package/dist/swirl-icon-keyboard-hide.entry.066f8268.js +19 -0
  166. package/dist/swirl-icon-keyboard.entry.249bdec8.js +19 -0
  167. package/dist/swirl-icon-language.entry.1045270f.js +19 -0
  168. package/dist/swirl-icon-light-mode.entry.f8d3a255.js +19 -0
  169. package/dist/swirl-icon-like.entry.353ed1f7.js +19 -0
  170. package/dist/swirl-icon-link.entry.df6e1fbc.js +19 -0
  171. package/dist/swirl-icon-live.entry.e892f81c.js +19 -0
  172. package/dist/swirl-icon-load.entry.16cf0e40.js +19 -0
  173. package/dist/swirl-icon-location-on.entry.914beede.js +19 -0
  174. package/dist/swirl-icon-lock-open.entry.8874358a.js +19 -0
  175. package/dist/swirl-icon-lock-person.entry.3bb90e74.js +19 -0
  176. package/dist/swirl-icon-lock.entry.1efadbea.js +19 -0
  177. package/dist/swirl-icon-login.entry.175a09c2.js +19 -0
  178. package/dist/swirl-icon-logout.entry.90be77c5.js +19 -0
  179. package/dist/swirl-icon-long-text.entry.4ea376da.js +19 -0
  180. package/dist/swirl-icon-mail.entry.ac087e15.js +19 -0
  181. package/dist/swirl-icon-manage-accounts.entry.4d5823c9.js +19 -0
  182. package/dist/swirl-icon-mark-chat-read.entry.33a626d9.js +19 -0
  183. package/dist/swirl-icon-mark-chat-unread.entry.34b80392.js +19 -0
  184. package/dist/swirl-icon-mention.entry.22d9b84f.js +19 -0
  185. package/dist/swirl-icon-menu-book-filled.entry.ee2e70e2.js +19 -0
  186. package/dist/swirl-icon-menu-filled.entry.fadcb691.js +19 -0
  187. package/dist/swirl-icon-menu.entry.140041f4.js +19 -0
  188. package/dist/swirl-icon-message.entry.ff7ef7e9.js +19 -0
  189. package/dist/swirl-icon-mic-off.entry.92b32a4e.js +19 -0
  190. package/dist/swirl-icon-mic.entry.f4bf233c.js +19 -0
  191. package/dist/swirl-icon-more-horizontal.entry.4dd60270.js +19 -0
  192. package/dist/swirl-icon-news-filled.entry.c53f19ba.js +19 -0
  193. package/dist/swirl-icon-news-off.entry.044fba74.js +19 -0
  194. package/dist/swirl-icon-news.entry.5aed544b.js +19 -0
  195. package/dist/swirl-icon-next-plan.entry.09aa5a1c.js +19 -0
  196. package/dist/swirl-icon-note-stack-filled.entry.e87d4207.js +19 -0
  197. package/dist/swirl-icon-note-stack.entry.e395bf3b.js +19 -0
  198. package/dist/swirl-icon-notifications-active.entry.f8125d36.js +19 -0
  199. package/dist/swirl-icon-notifications-off.entry.261c6453.js +19 -0
  200. package/dist/swirl-icon-notifications.entry.576f6b90.js +19 -0
  201. package/dist/swirl-icon-open-in-full.entry.7dba26df.js +19 -0
  202. package/dist/swirl-icon-open-in-new.entry.496dd714.js +19 -0
  203. package/dist/swirl-icon-patient-list.entry.90dd4279.js +19 -0
  204. package/dist/swirl-icon-pause-circle.entry.ee714f97.js +19 -0
  205. package/dist/swirl-icon-pause.entry.5c69d425.js +19 -0
  206. package/dist/swirl-icon-people-alt.entry.a3ac5b7e.js +19 -0
  207. package/dist/swirl-icon-person-check.entry.f6928b7a.js +19 -0
  208. package/dist/swirl-icon-person-off.entry.aeea6661.js +19 -0
  209. package/dist/swirl-icon-person.entry.7acec6a3.js +19 -0
  210. package/dist/swirl-icon-phone.entry.9e647bcb.js +19 -0
  211. package/dist/swirl-icon-photo-camera.entry.0d2eac7f.js +19 -0
  212. package/dist/swirl-icon-picture-in-picture.entry.a2319d7d.js +19 -0
  213. package/dist/swirl-icon-pin-off.entry.4e9eb23d.js +19 -0
  214. package/dist/swirl-icon-pin.entry.573cd18b.js +19 -0
  215. package/dist/swirl-icon-place.entry.d8100d2d.js +19 -0
  216. package/dist/swirl-icon-play-arrow.entry.e3797e9c.js +19 -0
  217. package/dist/swirl-icon-poll.entry.83f7e410.js +19 -0
  218. package/dist/swirl-icon-post-approval.entry.6eafcd9b.js +19 -0
  219. package/dist/swirl-icon-present.entry.21f73969.js +19 -0
  220. package/dist/swirl-icon-preview.entry.99895edc.js +19 -0
  221. package/dist/swirl-icon-print.entry.7ffe5753.js +19 -0
  222. package/dist/swirl-icon-public-off.entry.8475e9e2.js +19 -0
  223. package/dist/swirl-icon-public.entry.0dfbc126.js +19 -0
  224. package/dist/swirl-icon-published-with-changes.entry.d4ea6c16.js +19 -0
  225. package/dist/swirl-icon-ratio-four-to-three.entry.ef80cf13.js +19 -0
  226. package/dist/swirl-icon-ratio-freeform.entry.a577e929.js +19 -0
  227. package/dist/swirl-icon-ratio-sixteen-to-nine.entry.d6adb40c.js +19 -0
  228. package/dist/swirl-icon-ratio-square.entry.eee3cdb1.js +19 -0
  229. package/dist/swirl-icon-ratio-three-to-four.entry.4dca6581.js +19 -0
  230. package/dist/swirl-icon-ratio-three-to-two.entry.f63c60b2.js +19 -0
  231. package/dist/swirl-icon-recieved.entry.c8f4b02e.js +19 -0
  232. package/dist/swirl-icon-refresh.entry.1b47a8ff.js +19 -0
  233. package/dist/swirl-icon-remove-circle.entry.6b7aeeb4.js +19 -0
  234. package/dist/swirl-icon-remove-moderator.entry.ebbd7ff8.js +19 -0
  235. package/dist/swirl-icon-reply.entry.58f69283.js +19 -0
  236. package/dist/swirl-icon-report.entry.03edc588.js +19 -0
  237. package/dist/swirl-icon-roadmap.entry.b42676ac.js +19 -0
  238. package/dist/swirl-icon-rotate-left.entry.dc8b47bc.js +19 -0
  239. package/dist/swirl-icon-rotate-right.entry.03a95967.js +19 -0
  240. package/dist/swirl-icon-screenshare-off.entry.fa2ec867.js +19 -0
  241. package/dist/swirl-icon-screenshare.entry.1e89cb9e.js +19 -0
  242. package/dist/swirl-icon-search-strong.entry.ba6ee0ff.js +19 -0
  243. package/dist/swirl-icon-search.entry.3325d362.js +19 -0
  244. package/dist/swirl-icon-section.entry.61f6a798.js +19 -0
  245. package/dist/swirl-icon-secure.entry.061942fb.js +19 -0
  246. package/dist/swirl-icon-send.entry.3d07096d.js +19 -0
  247. package/dist/swirl-icon-settings.entry.856f9aba.js +19 -0
  248. package/dist/swirl-icon-short-text.entry.2c55d673.js +19 -0
  249. package/dist/swirl-icon-simplify.entry.c544ad0a.js +19 -0
  250. package/dist/swirl-icon-spellcheck.entry.8eb5a827.js +19 -0
  251. package/dist/swirl-icon-stars.entry.70798fc6.js +19 -0
  252. package/dist/swirl-icon-sticky-note.entry.3b6b0753.js +19 -0
  253. package/dist/swirl-icon-stop-circle.entry.c7f79119.js +19 -0
  254. package/dist/swirl-icon-stop.entry.03b7ff1c.js +19 -0
  255. package/dist/swirl-icon-sunny.entry.4764e8ed.js +19 -0
  256. package/dist/swirl-icon-sync.entry.0862f9cb.js +19 -0
  257. package/dist/swirl-icon-tasks-filled.entry.4c3f7848.js +19 -0
  258. package/dist/swirl-icon-tasks.entry.1195149d.js +19 -0
  259. package/dist/swirl-icon-terminal.entry.f60e9430.js +19 -0
  260. package/dist/swirl-icon-time-filled.entry.4149ca87.js +19 -0
  261. package/dist/swirl-icon-time.entry.43039614.js +19 -0
  262. package/dist/swirl-icon-today-filled.entry.0bb06e31.js +19 -0
  263. package/dist/swirl-icon-translate.entry.5dce14b1.js +19 -0
  264. package/dist/swirl-icon-tree-structure.entry.a871a32f.js +19 -0
  265. package/dist/swirl-icon-undo.entry.77393e5f.js +19 -0
  266. package/dist/swirl-icon-unlock-person.entry.d8099b34.js +19 -0
  267. package/dist/swirl-icon-upload.entry.3c3d69e1.js +19 -0
  268. package/dist/swirl-icon-user-add.entry.85817a39.js +19 -0
  269. package/dist/swirl-icon-user-assign.entry.80bdec60.js +19 -0
  270. package/dist/swirl-icon-video-camera-off.entry.428856ea.js +19 -0
  271. package/dist/swirl-icon-video-camera.entry.74ab1a01.js +19 -0
  272. package/dist/swirl-icon-video-library.entry.5769a1d2.js +19 -0
  273. package/dist/swirl-icon-view-agenda.entry.beb59374.js +19 -0
  274. package/dist/swirl-icon-voice.entry.dedd8d18.js +19 -0
  275. package/dist/swirl-icon-volume-up.entry.ae055de7.js +19 -0
  276. package/dist/swirl-icon-web-asset-off.entry.43fc4e7b.js +19 -0
  277. package/dist/swirl-icon-web-asset.entry.06166dbc.js +19 -0
  278. package/dist/swirl-icon-work.entry.31304b32.js +19 -0
  279. package/dist/swirl-icon.entry.274c5e1a.js +16 -0
  280. package/dist/swirl-image-grid-item.entry.8ff213c9.js +90 -0
  281. package/dist/swirl-image-grid.entry.79fca64d.js +53 -0
  282. package/dist/swirl-inline-notification.entry.05f8fe19.js +17 -0
  283. package/dist/swirl-inline-status.entry.d88da209.js +37 -0
  284. package/dist/swirl-lightbox.entry.348d64eb.js +179 -0
  285. package/dist/swirl-link.entry.d04d4ffa.js +17 -0
  286. package/dist/swirl-list.entry.52e5900e.js +18 -0
  287. package/dist/swirl-menu-item.entry.badc4108.js +84 -0
  288. package/dist/swirl-menu.entry.d50bea1b.js +179 -0
  289. package/dist/swirl-modal-shell.entry.5f7081c0.js +51 -0
  290. package/dist/swirl-modal.entry.6a68d800.js +368 -0
  291. package/dist/swirl-option-list-section.entry.d378b076.js +15 -0
  292. package/dist/swirl-option-list_2.entry.d4aa249d.js +290 -0
  293. package/dist/swirl-pagination.entry.a160db64.js +38 -0
  294. package/dist/swirl-pdf-reader.entry.423f5880.js +111 -0
  295. package/dist/swirl-popover_2.entry.558bbb91.js +261 -0
  296. package/dist/swirl-progress-indicator.entry.0c057aaa.js +17 -0
  297. package/dist/swirl-radio-group.entry.d76ac6d8.js +35 -0
  298. package/dist/swirl-radio.entry.9a7b9f6f.js +29 -0
  299. package/dist/swirl-resource-list-file-item.entry.d37e845c.js +39 -0
  300. package/dist/swirl-resource-list-section.entry.8c95a93c.js +19 -0
  301. package/dist/swirl-search.entry.061cae00.js +51 -0
  302. package/dist/swirl-select.entry.0075c6f1.js +92 -0
  303. package/dist/swirl-separator.entry.baf7955e.js +29 -0
  304. package/dist/swirl-shell-layout.entry.d3a131c5.js +117 -0
  305. package/dist/swirl-shell-navigation-item.entry.52958a3e.js +409 -0
  306. package/dist/swirl-skeleton-box.entry.e238ed83.js +31 -0
  307. package/dist/swirl-skeleton-text.entry.83ad90d0.js +38 -0
  308. package/dist/swirl-stack.entry.d9ca97c3.js +21 -0
  309. package/dist/swirl-status-indicator.entry.081dd7f8.js +17 -0
  310. package/dist/swirl-switch.entry.acde5be2.js +31 -0
  311. package/dist/swirl-symbol-ac-unit.entry.aa240106.js +17 -0
  312. package/dist/swirl-symbol-account-circle.entry.06a36fe5.js +17 -0
  313. package/dist/swirl-symbol-alternate-email.entry.e2129c31.js +17 -0
  314. package/dist/swirl-symbol-android.entry.201a4125.js +17 -0
  315. package/dist/swirl-symbol-announcement.entry.a94db356.js +17 -0
  316. package/dist/swirl-symbol-autorenew.entry.b72a66a4.js +17 -0
  317. package/dist/swirl-symbol-backup.entry.98b5954d.js +17 -0
  318. package/dist/swirl-symbol-badge.entry.2f308a88.js +17 -0
  319. package/dist/swirl-symbol-barcode-reader.entry.0cdf79a2.js +17 -0
  320. package/dist/swirl-symbol-barcode-scanner.entry.d1e2f921.js +17 -0
  321. package/dist/swirl-symbol-battery-horiz.entry.057428e3.js +17 -0
  322. package/dist/swirl-symbol-beach-access.entry.bf383d07.js +17 -0
  323. package/dist/swirl-symbol-bolt.entry.0842d31e.js +17 -0
  324. package/dist/swirl-symbol-bookmark.entry.1e9efe7c.js +17 -0
  325. package/dist/swirl-symbol-calendar.entry.a5c5358a.js +17 -0
  326. package/dist/swirl-symbol-campaign.entry.01f8f033.js +17 -0
  327. package/dist/swirl-symbol-cards-star.entry.315fe6be.js +17 -0
  328. package/dist/swirl-symbol-cloud.entry.827135e1.js +17 -0
  329. package/dist/swirl-symbol-construction.entry.14840079.js +17 -0
  330. package/dist/swirl-symbol-contacts.entry.6d8a49b8.js +17 -0
  331. package/dist/swirl-symbol-coronavirus.entry.739efc77.js +17 -0
  332. package/dist/swirl-symbol-design-services.entry.c865fbd1.js +17 -0
  333. package/dist/swirl-symbol-desktop-windows.entry.8fb44c31.js +17 -0
  334. package/dist/swirl-symbol-directions-car-filled.entry.4de9317f.js +17 -0
  335. package/dist/swirl-symbol-diversity.entry.239adaee.js +17 -0
  336. package/dist/swirl-symbol-draw.entry.bde78762.js +17 -0
  337. package/dist/swirl-symbol-edit-calendar.entry.e14027d3.js +17 -0
  338. package/dist/swirl-symbol-email.entry.9f3230fd.js +17 -0
  339. package/dist/swirl-symbol-emergency.entry.3f41fed5.js +17 -0
  340. package/dist/swirl-symbol-emoji-food-beverage.entry.252da904.js +17 -0
  341. package/dist/swirl-symbol-engineering.entry.f36c9a37.js +17 -0
  342. package/dist/swirl-symbol-event-menu.entry.5582f902.js +17 -0
  343. package/dist/swirl-symbol-explore.entry.1618017e.js +17 -0
  344. package/dist/swirl-symbol-extension.entry.53cf475a.js +17 -0
  345. package/dist/swirl-symbol-facebook.entry.8acb7f2d.js +17 -0
  346. package/dist/swirl-symbol-favorite.entry.3a98846f.js +17 -0
  347. package/dist/swirl-symbol-fitness-center.entry.befeaa82.js +17 -0
  348. package/dist/swirl-symbol-flag.entry.cab3bdf3.js +17 -0
  349. package/dist/swirl-symbol-flight.entry.6a0a6b76.js +17 -0
  350. package/dist/swirl-symbol-folder.entry.c760184a.js +17 -0
  351. package/dist/swirl-symbol-globe.entry.aedb2d66.js +17 -0
  352. package/dist/swirl-symbol-groups.entry.bc6edbec.js +17 -0
  353. package/dist/swirl-symbol-healing.entry.59b79e8c.js +17 -0
  354. package/dist/swirl-symbol-health-and-safety.entry.d9f91491.js +17 -0
  355. package/dist/swirl-symbol-help.entry.4ab2e6d2.js +17 -0
  356. package/dist/swirl-symbol-home-repair-service.entry.897c1abb.js +17 -0
  357. package/dist/swirl-symbol-home-storage.entry.ba3a8d7b.js +17 -0
  358. package/dist/swirl-symbol-id-card.entry.c50576f5.js +17 -0
  359. package/dist/swirl-symbol-image.entry.3f4b22cd.js +17 -0
  360. package/dist/swirl-symbol-info-menu.entry.7e13220a.js +17 -0
  361. package/dist/swirl-symbol-instagram.entry.e4919079.js +17 -0
  362. package/dist/swirl-symbol-inventory-2.entry.1db5045b.js +17 -0
  363. package/dist/swirl-symbol-inventory.entry.fc2614aa.js +17 -0
  364. package/dist/swirl-symbol-ios.entry.879a05fa.js +17 -0
  365. package/dist/swirl-symbol-key.entry.ad7551f0.js +17 -0
  366. package/dist/swirl-symbol-language.entry.06c49248.js +17 -0
  367. package/dist/swirl-symbol-leaderboard.entry.362e5c51.js +17 -0
  368. package/dist/swirl-symbol-lightbulb.entry.dfea74d1.js +17 -0
  369. package/dist/swirl-symbol-linkedin.entry.fa0c9612.js +17 -0
  370. package/dist/swirl-symbol-local-shipping.entry.22dc603e.js +17 -0
  371. package/dist/swirl-symbol-location-on.entry.bb0e12b8.js +17 -0
  372. package/dist/swirl-symbol-loyalty.entry.94833379.js +17 -0
  373. package/dist/swirl-symbol-map.entry.2cddee2e.js +17 -0
  374. package/dist/swirl-symbol-maps-home-work.entry.e79d025f.js +17 -0
  375. package/dist/swirl-symbol-menu-book.entry.2ecafa8a.js +17 -0
  376. package/dist/swirl-symbol-mop.entry.2cc0d0c5.js +17 -0
  377. package/dist/swirl-symbol-nest-eco-leaf.entry.288d13f5.js +17 -0
  378. package/dist/swirl-symbol-notifications.entry.e323e8b2.js +17 -0
  379. package/dist/swirl-symbol-open-in-new.entry.9c854372.js +17 -0
  380. package/dist/swirl-symbol-orders.entry.9075fd8c.js +17 -0
  381. package/dist/swirl-symbol-package.entry.260e1ae7.js +17 -0
  382. package/dist/swirl-symbol-palette.entry.e764bcf2.js +17 -0
  383. package/dist/swirl-symbol-partly-cloudy-day.entry.ac98103f.js +17 -0
  384. package/dist/swirl-symbol-pedal-bike.entry.93f40ced.js +17 -0
  385. package/dist/swirl-symbol-percent-discount.entry.40ab2efd.js +17 -0
  386. package/dist/swirl-symbol-pets.entry.1f416f74.js +17 -0
  387. package/dist/swirl-symbol-pinterest.entry.fd044141.js +17 -0
  388. package/dist/swirl-symbol-point-of-sale.entry.9b91edb7.js +17 -0
  389. package/dist/swirl-symbol-policy.entry.6dd67ced.js +17 -0
  390. package/dist/swirl-symbol-precision-manufacturing.entry.80f9476e.js +17 -0
  391. package/dist/swirl-symbol-print.entry.745580ea.js +17 -0
  392. package/dist/swirl-symbol-push-pin.entry.bc021c6f.js +17 -0
  393. package/dist/swirl-symbol-recycling.entry.6f6d272e.js +17 -0
  394. package/dist/swirl-symbol-redeem.entry.ab06c285.js +17 -0
  395. package/dist/swirl-symbol-report-problem.entry.3675250f.js +17 -0
  396. package/dist/swirl-symbol-restaurant.entry.b824fa8d.js +17 -0
  397. package/dist/swirl-symbol-roadmap.entry.b79855ba.js +17 -0
  398. package/dist/swirl-symbol-rocket-launch.entry.b45f1d7e.js +17 -0
  399. package/dist/swirl-symbol-room.entry.9ab68f8c.js +17 -0
  400. package/dist/swirl-symbol-savings.entry.a19214fa.js +17 -0
  401. package/dist/swirl-symbol-school.entry.8e0f8f07.js +17 -0
  402. package/dist/swirl-symbol-sell.entry.350f4b8b.js +17 -0
  403. package/dist/swirl-symbol-settings-voice.entry.164b581a.js +17 -0
  404. package/dist/swirl-symbol-shopping-bag.entry.59659a50.js +17 -0
  405. package/dist/swirl-symbol-shopping-cart.entry.b8ebf585.js +17 -0
  406. package/dist/swirl-symbol-smartphone.entry.6fea3fcd.js +17 -0
  407. package/dist/swirl-symbol-spa.entry.1e9c5fd9.js +17 -0
  408. package/dist/swirl-symbol-sports-soccer.entry.c2de63d8.js +17 -0
  409. package/dist/swirl-symbol-star.entry.61a898bd.js +17 -0
  410. package/dist/swirl-symbol-supervisor-account.entry.56e20c53.js +17 -0
  411. package/dist/swirl-symbol-task.entry.089f6717.js +17 -0
  412. package/dist/swirl-symbol-tasks.entry.8c924a80.js +17 -0
  413. package/dist/swirl-symbol-thumbs-up-down.entry.9ab7bd6d.js +17 -0
  414. package/dist/swirl-symbol-timer.entry.fe7e0b61.js +17 -0
  415. package/dist/swirl-symbol-tools-power-drill.entry.c63a6eb5.js +17 -0
  416. package/dist/swirl-symbol-train.entry.36222f5c.js +17 -0
  417. package/dist/swirl-symbol-trophy.entry.02bb0222.js +17 -0
  418. package/dist/swirl-symbol-twitter.entry.2cb4541b.js +17 -0
  419. package/dist/swirl-symbol-video.entry.cebc615e.js +17 -0
  420. package/dist/swirl-symbol-warehouse.entry.7fc3ed70.js +17 -0
  421. package/dist/swirl-symbol-water-drop.entry.9322f16a.js +17 -0
  422. package/dist/swirl-symbol-wb-sunny.entry.c124ab0f.js +17 -0
  423. package/dist/swirl-symbol-wechat.entry.48296722.js +17 -0
  424. package/dist/swirl-symbol-weibo.entry.ada934f3.js +17 -0
  425. package/dist/swirl-symbol-wifi.entry.0b10e3db.js +17 -0
  426. package/dist/swirl-symbol-work.entry.f97b5495.js +17 -0
  427. package/dist/swirl-symbol-xing.entry.bd28357d.js +17 -0
  428. package/dist/swirl-symbol-youtube.entry.045c17c1.js +17 -0
  429. package/dist/swirl-symbol.entry.bd734ef6.js +16 -0
  430. package/dist/swirl-tab-bar.entry.c23ed52a.js +66 -0
  431. package/dist/swirl-tab.entry.a1c1d81d.js +17 -0
  432. package/dist/swirl-table-cell.entry.3a090768.js +15 -0
  433. package/dist/swirl-table-column.entry.22f305af.js +34 -0
  434. package/dist/swirl-table-row-group.entry.03db15eb.js +35 -0
  435. package/dist/swirl-table-row.entry.6a61773f.js +27 -0
  436. package/dist/swirl-table.entry.e235b6e6.js +337 -0
  437. package/dist/swirl-tabs.entry.73fbccf3.js +63 -0
  438. package/dist/swirl-tag.entry.676c088f.js +40 -0
  439. package/dist/swirl-text-input.entry.d1dde70c.js +91 -0
  440. package/dist/swirl-text.entry.76733e09.js +299 -0
  441. package/dist/swirl-theme-provider.entry.b3ada014.js +94 -0
  442. package/dist/swirl-time-input.entry.cf56cc64.js +136 -0
  443. package/dist/swirl-toast-provider.entry.338257fa.js +36 -0
  444. package/dist/swirl-toast.entry.05b92ac1.js +51 -0
  445. package/dist/swirl-toggle-button.entry.fca8a98c.js +21 -0
  446. package/dist/swirl-toggle-group.entry.40eb7ded.js +60 -0
  447. package/dist/swirl-toolbar.entry.61a6f0ae.js +56 -0
  448. package/dist/swirl-tooltip.entry.91b9760f.js +113 -0
  449. package/dist/swirl-tree-navigation-item.entry.83de59ac.js +71 -0
  450. package/dist/swirl-tree-navigation.entry.c2169a90.js +15 -0
  451. package/dist/swirl-tree-view-item.entry.f9792cf2.js +203 -0
  452. package/dist/swirl-tree-view.config-BkSXzL50.94f4a648.js +24 -0
  453. package/dist/swirl-tree-view.entry.9a915ba7.js +220 -0
  454. package/dist/swirl-video-thumbnail.entry.d06c364a.js +88 -0
  455. package/dist/swirl-visually-hidden.entry.2bbc675c.js +15 -0
  456. package/dist/utils-wi_3Z3FQ.29a3aebe.js +119 -0
  457. package/dist/v4-DD3477fe.2624487e.js +27 -0
  458. package/dist/vite-env.d.ts +1 -0
  459. package/dist/wc-datepicker.entry.cfc78e40.js +370 -0
  460. package/package.json +38 -0
@@ -0,0 +1,370 @@
1
+ import { r as H, c as N, h as n, H as V, g as E } from "./index.a571673c.js";
2
+ import "react";
3
+ import "react-dom";
4
+ function w(e, t) {
5
+ const s = new Date(e);
6
+ return s.setDate(s.getDate() + t), s;
7
+ }
8
+ function K(e, t, s) {
9
+ const a = [], i = S(e), o = i.getDay() === 0 ? 7 : i.getDay(), r = M(e), l = r.getDay() === 0 ? 7 : r.getDay(), d = s === 1 ? 7 : s - 1, u = [], b = [];
10
+ {
11
+ let m = (7 - s + o) % 7, v = k(i);
12
+ for (; m > 0; )
13
+ u.push(v), v = k(v), m -= 1;
14
+ u.reverse();
15
+ let f = (7 - l + d) % 7, p = y(r);
16
+ for (; f > 0; )
17
+ b.push(p), p = y(p), f -= 1;
18
+ }
19
+ let h = i;
20
+ for (; h.getMonth() === e.getMonth(); )
21
+ a.push(h), h = y(h);
22
+ return [...u, ...a, ...b];
23
+ }
24
+ function S(e) {
25
+ return g(new Date(`${String(P(e)).padStart(4, "0")}-${String(W(e)).padStart(2, "0")}-01`));
26
+ }
27
+ function D(e) {
28
+ if (e instanceof Date)
29
+ return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
30
+ }
31
+ function M(e) {
32
+ const t = S(e);
33
+ return t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1), t;
34
+ }
35
+ function W(e) {
36
+ return e.getMonth() + 1;
37
+ }
38
+ function j(e) {
39
+ return new Array(12).fill(void 0).map((t, s) => {
40
+ const a = g(new Date(`2006-${String(s + 1).padStart(2, "0")}-01`));
41
+ return Intl.DateTimeFormat(e, {
42
+ month: "long"
43
+ }).format(a);
44
+ });
45
+ }
46
+ function y(e) {
47
+ return w(e, 1);
48
+ }
49
+ function B(e) {
50
+ const t = new Date(e);
51
+ return t.setDate(1), t.setMonth(t.getMonth() + 1), t;
52
+ }
53
+ function O(e) {
54
+ const t = new Date(e);
55
+ return t.setFullYear(t.getFullYear() + 1), t;
56
+ }
57
+ function k(e) {
58
+ return C(e, 1);
59
+ }
60
+ function T(e) {
61
+ const t = new Date(e);
62
+ return t.setDate(1), t.setMonth(t.getMonth() - 1), t;
63
+ }
64
+ function F(e) {
65
+ const t = new Date(e);
66
+ return t.setFullYear(t.getFullYear() - 1), t;
67
+ }
68
+ function U(e, t) {
69
+ return new Array(7).fill(void 0).map((s, a) => (e + a) % 7 + 1).map((s) => {
70
+ const a = g(new Date(`2006-01-0${s}`));
71
+ return [
72
+ Intl.DateTimeFormat(t, {
73
+ weekday: "short"
74
+ }).format(a).slice(0, 3),
75
+ Intl.DateTimeFormat(t, {
76
+ weekday: "long"
77
+ }).format(a)
78
+ ];
79
+ });
80
+ }
81
+ function P(e) {
82
+ return e.getFullYear();
83
+ }
84
+ function A(e, t) {
85
+ if (!e || !t || !t.from || !t.to)
86
+ return !1;
87
+ const s = t.from < t.to ? t.from : t.to, a = t.from < t.to ? t.to : t.from;
88
+ return e >= s && e <= a;
89
+ }
90
+ function c(e, t) {
91
+ return !e || !t ? !1 : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
92
+ }
93
+ function g(e) {
94
+ const t = new Date(e);
95
+ return t.setMinutes(t.getMinutes() + t.getTimezoneOffset()), t;
96
+ }
97
+ function C(e, t) {
98
+ const s = new Date(e);
99
+ return s.setDate(s.getDate() - t), s;
100
+ }
101
+ const z = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}", q = {
102
+ clearButton: "Clear value",
103
+ monthSelect: "Select month",
104
+ nextMonthButton: "Next month",
105
+ nextYearButton: "Next year",
106
+ picker: "Choose date",
107
+ previousMonthButton: "Previous month",
108
+ previousYearButton: "Previous year",
109
+ todayButton: "Show today",
110
+ yearSelect: "Select year"
111
+ }, G = class {
112
+ constructor(e) {
113
+ H(this, e), this.selectDate = N(this, "selectDate", 7), this.changeMonth = N(this, "changeMonth", 7), this.disabled = !1, this.disableDate = () => !1, this.elementClassName = "wc-datepicker", this.firstDayOfWeek = 0, this.labels = q, this.locale = (navigator == null ? void 0 : navigator.language) || "en-US", this.showClearButton = !1, this.showMonthStepper = !0, this.showTodayButton = !1, this.showYearStepper = !1, this.startDate = D(new Date()), this.maxSearchDays = 365, this.goToRangeStartOnSelect = !0, this.init = () => {
114
+ this.currentDate = this.startDate ? g(new Date(this.startDate)) : new Date(), this.updateWeekdays();
115
+ }, this.getAvailableDate = (t, s) => {
116
+ let a, i = !1;
117
+ switch (s) {
118
+ case "previousDay":
119
+ a = k(t);
120
+ break;
121
+ case "nextDay":
122
+ a = y(t);
123
+ break;
124
+ case "previousSameWeekDay":
125
+ a = C(t, 7);
126
+ break;
127
+ case "nextSameWeekDay":
128
+ a = w(t, 7);
129
+ break;
130
+ case "firstOfMonth":
131
+ a = S(t);
132
+ break;
133
+ case "lastOfMonth":
134
+ a = M(t);
135
+ break;
136
+ case "previousMonth":
137
+ a = T(t);
138
+ break;
139
+ case "nextMonth":
140
+ a = B(t);
141
+ break;
142
+ case "previousYear":
143
+ a = F(t);
144
+ break;
145
+ case "nextYear":
146
+ a = O(t);
147
+ break;
148
+ }
149
+ for (; this.disableDate(a) && !i; ) {
150
+ switch (s) {
151
+ case "previousDay":
152
+ case "lastOfMonth":
153
+ a = k(a);
154
+ break;
155
+ case "nextDay":
156
+ case "firstOfMonth":
157
+ case "previousMonth":
158
+ case "nextMonth":
159
+ case "previousYear":
160
+ case "nextYear":
161
+ a = y(a);
162
+ break;
163
+ case "previousSameWeekDay":
164
+ a = C(a, 7);
165
+ break;
166
+ case "nextSameWeekDay":
167
+ a = w(a, 7);
168
+ break;
169
+ }
170
+ switch (s) {
171
+ case "firstOfMonth":
172
+ case "lastOfMonth":
173
+ case "previousYear":
174
+ case "nextYear":
175
+ i = a.getMonth() !== t.getMonth();
176
+ break;
177
+ case "previousMonth":
178
+ i = a.getMonth() !== t.getMonth() - 1;
179
+ break;
180
+ case "nextMonth":
181
+ i = a.getMonth() !== t.getMonth() + 1;
182
+ break;
183
+ default:
184
+ i = !A(a, {
185
+ from: C(t, this.maxSearchDays),
186
+ to: w(t, this.maxSearchDays)
187
+ });
188
+ break;
189
+ }
190
+ }
191
+ return i ? t : a;
192
+ }, this.nextMonth = () => {
193
+ this.updateCurrentDate(B(this.currentDate));
194
+ }, this.nextYear = () => {
195
+ this.updateCurrentDate(O(this.currentDate));
196
+ }, this.previousMonth = () => {
197
+ this.updateCurrentDate(T(this.currentDate));
198
+ }, this.previousYear = () => {
199
+ this.updateCurrentDate(F(this.currentDate));
200
+ }, this.showToday = () => {
201
+ this.updateCurrentDate(new Date());
202
+ }, this.clear = () => {
203
+ this.value = void 0, this.selectDate.emit(void 0);
204
+ }, this.onClick = (t) => {
205
+ if (this.disabled)
206
+ return;
207
+ const s = t.target.closest("[data-date]");
208
+ if (!Boolean(s))
209
+ return;
210
+ const a = g(new Date(s.dataset.date));
211
+ this.updateCurrentDate(a), this.onSelectDate(a);
212
+ }, this.onMonthSelect = (t) => {
213
+ const s = +t.target.value - 1, a = this.currentDate.getDate(), i = new Date(this.currentDate.getFullYear(), s, 1), o = M(i).getDate(), r = Math.min(a, o), l = new Date(this.currentDate.getFullYear(), s, r);
214
+ this.updateCurrentDate(l);
215
+ }, this.onYearSelect = (t) => {
216
+ let s = +t.target.value;
217
+ const a = t.target;
218
+ isNaN(s) ? (s = new Date().getFullYear(), a.value = String(s)) : s < 0 ? (s = 0, a.value = String(s)) : s > 9999 && (s = 9999, a.value = String(s));
219
+ const i = this.currentDate.getDate(), o = this.currentDate.getMonth(), r = new Date();
220
+ r.setFullYear(s, o, 1);
221
+ const l = M(r).getDate(), d = Math.min(i, l), u = new Date();
222
+ u.setFullYear(s, o, d), this.updateCurrentDate(u);
223
+ }, this.onKeyDown = (t) => {
224
+ this.disabled || (t.code === "ArrowLeft" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousDay"), !0)) : t.code === "ArrowRight" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextDay"), !0)) : t.code === "ArrowUp" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousSameWeekDay"), !0)) : t.code === "ArrowDown" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextSameWeekDay"), !0)) : t.code === "PageUp" ? (t.preventDefault(), t.shiftKey ? this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousYear"), !0) : this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousMonth"), !0)) : t.code === "PageDown" ? (t.preventDefault(), t.shiftKey ? this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextYear"), !0) : this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextMonth"), !0)) : t.code === "Home" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "firstOfMonth"), !0)) : t.code === "End" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "lastOfMonth"), !0)) : (t.code === "Space" || t.code === "Enter") && (t.preventDefault(), this.onSelectDate(this.currentDate)));
225
+ }, this.onMouseEnter = (t) => {
226
+ if (this.disabled)
227
+ return;
228
+ const s = g(new Date(t.target.closest("td").dataset.date));
229
+ this.hoveredDate = s;
230
+ }, this.onMouseLeave = () => {
231
+ this.hoveredDate = void 0;
232
+ };
233
+ }
234
+ componentWillLoad() {
235
+ this.init();
236
+ }
237
+ watchFirstDayOfWeek() {
238
+ this.updateWeekdays();
239
+ }
240
+ watchLocale() {
241
+ Boolean(this.locale) || (this.locale = (navigator == null ? void 0 : navigator.language) || "en-US"), this.updateWeekdays();
242
+ }
243
+ watchRange() {
244
+ this.value = void 0, this.selectDate.emit(void 0);
245
+ }
246
+ watchStartDate() {
247
+ this.currentDate = this.startDate ? g(new Date(this.startDate)) : new Date();
248
+ }
249
+ watchValue() {
250
+ !Boolean(this.value) || (Array.isArray(this.value) ? this.currentDate = this.value.length > 1 && !this.goToRangeStartOnSelect ? this.value[1] : this.value[0] : this.value instanceof Date && (this.currentDate = this.value));
251
+ }
252
+ componentDidRender() {
253
+ this.moveFocusAfterMonthChanged && (this.focusDate(this.currentDate), this.moveFocusAfterMonthChanged = !1);
254
+ }
255
+ updateWeekdays() {
256
+ this.weekdays = U(this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek, this.locale);
257
+ }
258
+ getClassName(e) {
259
+ return Boolean(e) ? `${this.elementClassName}__${e}` : this.elementClassName;
260
+ }
261
+ getCalendarRows() {
262
+ const e = K(this.currentDate, !0, this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek), t = [];
263
+ for (let s = 0; s < e.length; s += 7) {
264
+ const a = e.slice(s, s + 7);
265
+ t.push(a);
266
+ }
267
+ return t;
268
+ }
269
+ getTitle() {
270
+ if (!!Boolean(this.value))
271
+ if (this.isRangeValue(this.value)) {
272
+ const e = Intl.DateTimeFormat(this.locale, {
273
+ day: "numeric",
274
+ month: "long",
275
+ year: "numeric"
276
+ }).format(this.value[0]), t = this.value[1] ? Intl.DateTimeFormat(this.locale, {
277
+ day: "numeric",
278
+ month: "long",
279
+ year: "numeric"
280
+ }).format(this.value[1]) : void 0;
281
+ return Boolean(t) ? `${e} - ${t}` : e;
282
+ } else
283
+ return Intl.DateTimeFormat(this.locale, {
284
+ day: "numeric",
285
+ month: "long",
286
+ year: "numeric"
287
+ }).format(this.value);
288
+ }
289
+ focusDate(e) {
290
+ var t;
291
+ (t = this.el.querySelector(`[data-date="${D(e)}"]`)) === null || t === void 0 || t.focus();
292
+ }
293
+ updateCurrentDate(e, t) {
294
+ const s = e.getMonth(), a = e.getFullYear();
295
+ if (a > 9999 || a < 0)
296
+ return;
297
+ (s !== this.currentDate.getMonth() || a !== this.currentDate.getFullYear()) && (this.changeMonth.emit({
298
+ month: W(e),
299
+ year: P(e),
300
+ day: e.getDate()
301
+ }), t && (this.moveFocusAfterMonthChanged = !0)), this.currentDate = e, t && this.focusDate(this.currentDate);
302
+ }
303
+ onSelectDate(e) {
304
+ var t, s;
305
+ if (!this.disableDate(e))
306
+ if (this.isRangeValue(this.value)) {
307
+ const a = ((t = this.value) === null || t === void 0 ? void 0 : t[0]) === void 0 || this.value.length === 2 ? [e] : [this.value[0], e];
308
+ a.length === 2 && a[0] > a[1] && a.reverse();
309
+ const i = a[1] === void 0 ? [D(a[0])] : [D(a[0]), D(a[1])];
310
+ this.value = a, this.selectDate.emit(i);
311
+ } else {
312
+ if (((s = this.value) === null || s === void 0 ? void 0 : s.getTime()) === e.getTime())
313
+ return;
314
+ this.value = e, this.selectDate.emit(D(e));
315
+ }
316
+ }
317
+ isRangeValue(e) {
318
+ return this.range;
319
+ }
320
+ render() {
321
+ const e = this.showTodayButton || this.showClearButton;
322
+ return n(V, null, n("div", { "aria-disabled": String(this.disabled), "aria-label": this.labels.picker, class: {
323
+ [this.getClassName()]: !0,
324
+ [`${this.getClassName()}--disabled`]: this.disabled
325
+ }, role: "group" }, n("div", { class: this.getClassName("header") }, n("span", { "aria-atomic": "true", "aria-live": "polite", class: "visually-hidden" }, this.getTitle()), this.showYearStepper && n("button", { "aria-label": this.labels.previousYearButton, class: this.getClassName("previous-year-button"), disabled: this.disabled, innerHTML: this.previousYearButtonContent || void 0, onClick: this.previousYear, type: "button" }, n("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, n("polyline", { points: "11 17 6 12 11 7" }), n("polyline", { points: "18 17 13 12 18 7" }))), this.showMonthStepper && n("button", { "aria-label": this.labels.previousMonthButton, class: this.getClassName("previous-month-button"), disabled: this.disabled, innerHTML: this.previousMonthButtonContent || void 0, onClick: this.previousMonth, type: "button" }, n("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, n("polyline", { points: "15 18 9 12 15 6" }))), n("span", { class: this.getClassName("current-month") }, n("select", { title: this.labels.monthSelect, "aria-label": this.labels.monthSelect, class: this.getClassName("month-select"), disabled: this.disabled, name: "month", onChange: this.onMonthSelect }, j(this.locale).map((t, s) => n("option", { key: t, selected: this.currentDate.getMonth() === s, value: s + 1 }, t))), n("input", { title: this.labels.yearSelect, "aria-label": this.labels.yearSelect, class: this.getClassName("year-select"), disabled: this.disabled, max: 9999, maxLength: 4, min: 1, name: "year", onChange: this.onYearSelect, type: "number", value: this.currentDate.getFullYear() })), this.showMonthStepper && n("button", { "aria-label": this.labels.nextMonthButton, class: this.getClassName("next-month-button"), disabled: this.disabled, innerHTML: this.nextMonthButtonContent || void 0, onClick: this.nextMonth, type: "button" }, n("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, n("polyline", { points: "9 18 15 12 9 6" }))), this.showYearStepper && n("button", { "aria-label": this.labels.nextYearButton, class: this.getClassName("next-year-button"), disabled: this.disabled, innerHTML: this.nextYearButtonContent || void 0, onClick: this.nextYear, type: "button" }, n("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, n("polyline", { points: "13 17 18 12 13 7" }), n("polyline", { points: "6 17 11 12 6 7" })))), n("div", { class: this.getClassName("body") }, n("table", { class: this.getClassName("calendar"), onKeyDown: this.onKeyDown, role: "grid" }, n("thead", { class: this.getClassName("calendar-header") }, n("tr", { class: this.getClassName("weekday-row") }, this.weekdays.map((t) => n("th", { "aria-label": t[1], abbr: t[1], class: this.getClassName("weekday"), key: t[0], scope: "col" }, n("span", null, t[0]))))), n("tbody", null, this.getCalendarRows().map((t) => {
326
+ const s = `row-${t[0].getMonth()}-${t[0].getDate()}`;
327
+ return n("tr", { class: this.getClassName("calendar-row"), key: s }, t.map((a) => {
328
+ var i, o, r, l, d;
329
+ const u = c(a, this.currentDate), b = a.getMonth() !== this.currentDate.getMonth(), h = Array.isArray(this.value) ? c(a, this.value[0]) || c(a, this.value[1]) : c(a, this.value), x = this.isRangeValue ? A(a, {
330
+ from: (i = this.value) === null || i === void 0 ? void 0 : i[0],
331
+ to: ((o = this.value) === null || o === void 0 ? void 0 : o[1]) || this.hoveredDate || this.currentDate
332
+ }) : !1, m = Boolean((r = this.value) === null || r === void 0 ? void 0 : r[0]) ? [
333
+ (l = this.value) === null || l === void 0 ? void 0 : l[0],
334
+ ((d = this.value) === null || d === void 0 ? void 0 : d[1]) || this.hoveredDate
335
+ ].sort((_, I) => _ - I) : [], v = this.range && c(m[0], a), Y = this.range && c(m[1], a), f = c(a, new Date()), p = this.disableDate(a), $ = `cell-${a.getMonth()}-${a.getDate()}`, L = {
336
+ [this.getClassName("date")]: !0,
337
+ [this.getClassName("date--current")]: u,
338
+ [this.getClassName("date--disabled")]: p,
339
+ [this.getClassName("date--overflowing")]: b,
340
+ [this.getClassName("date--today")]: f,
341
+ [this.getClassName("date--selected")]: h,
342
+ [this.getClassName("date--in-range")]: x,
343
+ [this.getClassName("date--start")]: v,
344
+ [this.getClassName("date--end")]: Y
345
+ }, R = h ? "strong" : f ? "em" : "span";
346
+ return n("td", { "aria-disabled": String(p), "aria-selected": h ? "true" : void 0, "aria-current": f ? "date" : h ? "true" : void 0, class: L, "data-date": D(a), key: $, onClick: this.onClick, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, role: "gridcell", tabIndex: c(a, this.currentDate) && !this.disabled ? 0 : -1 }, n(R, { "aria-hidden": "true" }, a.getDate()), n("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
347
+ day: "numeric",
348
+ month: "long",
349
+ year: "numeric"
350
+ }).format(a)));
351
+ }));
352
+ })))), e && n("div", { class: this.getClassName("footer") }, this.showTodayButton && n("button", { class: this.getClassName("today-button"), disabled: this.disabled, innerHTML: this.todayButtonContent || void 0, onClick: this.showToday, type: "button" }, this.labels.todayButton), this.showClearButton && n("button", { class: this.getClassName("clear-button"), disabled: this.disabled, innerHTML: this.clearButtonContent || void 0, onClick: this.clear, type: "button" }, this.labels.clearButton))));
353
+ }
354
+ get el() {
355
+ return E(this);
356
+ }
357
+ static get watchers() {
358
+ return {
359
+ firstDayOfWeek: ["watchFirstDayOfWeek"],
360
+ locale: ["watchLocale"],
361
+ range: ["watchRange"],
362
+ startDate: ["watchStartDate"],
363
+ value: ["watchValue"]
364
+ };
365
+ }
366
+ };
367
+ G.style = z;
368
+ export {
369
+ G as wc_datepicker
370
+ };
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@getflip/swirl-components-react",
3
+ "version": "0.0.0-beta-20260114160010",
4
+ "type": "module",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "main": "./dist/swirl-components-react.umd.cjs",
9
+ "module": "./dist/swirl-components-react.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/swirl-components-react.js",
14
+ "require": "./dist/swirl-components-react.umd.cjs",
15
+ "types": "./dist/index.d.ts"
16
+ }
17
+ },
18
+ "scripts": {
19
+ "build": "tsc && vite build"
20
+ },
21
+ "peerDependencies": {
22
+ "react": "18.2.0",
23
+ "react-dom": "18.2.0"
24
+ },
25
+ "dependencies": {
26
+ "@getflip/swirl-components": "0.0.0-beta-20260114160010"
27
+ },
28
+ "devDependencies": {
29
+ "@types/react": "18.0.18",
30
+ "@types/react-dom": "18.0.6",
31
+ "@vitejs/plugin-react": "2.0.1",
32
+ "typescript": "4.9.5",
33
+ "react": "18.2.0",
34
+ "react-dom": "18.2.0",
35
+ "vite": "3.2.10",
36
+ "vite-plugin-dts": "1.6.6"
37
+ }
38
+ }