@getflip/swirl-components-react 0.11.0 → 0.12.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 (162) hide show
  1. package/dist/{_commonjsHelpers-44457d8d.ba94af77.js → _commonjsHelpers-10467d11.b7d83301.js} +0 -0
  2. package/dist/balancetext-31f1ec68.bd1c1b2d.js +189 -0
  3. package/dist/{file-manager.entry.7f94c2d2.js → file-manager.entry.7a321755.js} +1 -1
  4. package/dist/{floating-ui.dom.esm-1a4e8b8a.87557233.js → floating-ui.dom.esm-b9f28f6d.15013ef7.js} +0 -0
  5. package/dist/{index-c3028f7d.557956d2.js → index-47862d62.75c2fcf1.js} +1 -1
  6. package/dist/index.149af511.js +1394 -0
  7. package/dist/stencil-generated/index.d.ts +1 -0
  8. package/dist/{swirl-action-list-item.entry.447b2688.js → swirl-action-list-item.entry.6548a6f0.js} +4 -4
  9. package/dist/{swirl-action-list-section.entry.e84808c9.js → swirl-action-list-section.entry.e12fe159.js} +1 -1
  10. package/dist/{swirl-action-list.entry.2fb802dc.js → swirl-action-list.entry.21644ba6.js} +2 -2
  11. package/dist/{swirl-app-layout_5.entry.875542b9.js → swirl-app-layout_5.entry.9703e919.js} +4 -4
  12. package/dist/{swirl-autocomplete.entry.7be53f33.js → swirl-autocomplete.entry.4bad6cbf.js} +8 -8
  13. package/dist/{swirl-avatar-group.entry.38bafbf0.js → swirl-avatar-group.entry.d41bfa97.js} +3 -3
  14. package/dist/{swirl-avatar.entry.6107d926.js → swirl-avatar.entry.c81909ad.js} +3 -3
  15. package/dist/{swirl-badge.entry.1f4d89cf.js → swirl-badge.entry.7bd8bbda.js} +3 -3
  16. package/dist/{swirl-banner.entry.2d29edfc.js → swirl-banner.entry.ef0143b1.js} +4 -4
  17. package/dist/{swirl-button-group.entry.8ce93c3c.js → swirl-button-group.entry.60578a80.js} +3 -3
  18. package/dist/{swirl-button.entry.42b57f80.js → swirl-button.entry.167120c6.js} +4 -4
  19. package/dist/{swirl-card.entry.a09d5cdf.js → swirl-card.entry.47b41ce9.js} +3 -3
  20. package/dist/{swirl-checkbox.entry.58064458.js → swirl-checkbox.entry.37c16abe.js} +3 -3
  21. package/dist/{swirl-chip.entry.b6b676d6.js → swirl-chip.entry.89c2c730.js} +4 -4
  22. package/dist/swirl-components-react.js +102 -101
  23. package/dist/swirl-components-react.umd.cjs +49 -42
  24. package/dist/{swirl-console-layout.entry.88cca8db.js → swirl-console-layout.entry.61b9ad81.js} +4 -4
  25. package/dist/{swirl-date-input.entry.1ff3f34d.js → swirl-date-input.entry.f0f6d6ee.js} +621 -618
  26. package/dist/swirl-date-picker_2.entry.91531b84.js +37 -0
  27. package/dist/{swirl-description-list-item.entry.e5e7327a.js → swirl-description-list-item.entry.99c83045.js} +1 -1
  28. package/dist/{swirl-description-list.entry.b451e1b2.js → swirl-description-list.entry.724f88d9.js} +1 -1
  29. package/dist/{swirl-dialog.entry.27d08ab3.js → swirl-dialog.entry.b50cfdb2.js} +3 -3
  30. package/dist/{swirl-file-uploader.entry.6c075751.js → swirl-file-uploader.entry.f8afd2d4.js} +3 -3
  31. package/dist/{swirl-file-viewer_7.entry.2d664fd5.js → swirl-file-viewer_7.entry.8973a210.js} +3 -3
  32. package/dist/swirl-form-control.entry.bc87b691.js +70 -0
  33. package/dist/{swirl-form-group.entry.f58b5fda.js → swirl-form-group.entry.674e8b3f.js} +3 -3
  34. package/dist/{swirl-heading.entry.1761ccaf.js → swirl-heading.entry.8e9ded19.js} +20 -10
  35. package/dist/{swirl-icon-add-photo.entry.2be32855.js → swirl-icon-add-photo.entry.5a20015c.js} +3 -3
  36. package/dist/{swirl-icon-add_4.entry.54bb7e89.js → swirl-icon-add_4.entry.0844d9ca.js} +3 -3
  37. package/dist/{swirl-icon-admin-panel-settings.entry.a43bcc7d.js → swirl-icon-admin-panel-settings.entry.8f932fe7.js} +3 -3
  38. package/dist/{swirl-icon-arrow-back.entry.ee4ddf1e.js → swirl-icon-arrow-back.entry.c9c0cd69.js} +3 -3
  39. package/dist/{swirl-icon-arrow-downward_2.entry.74231d7a.js → swirl-icon-arrow-downward_2.entry.03e4f1bc.js} +3 -3
  40. package/dist/{swirl-icon-arrow-forward.entry.a895e898.js → swirl-icon-arrow-forward.entry.965aa3ee.js} +3 -3
  41. package/dist/{swirl-icon-arrow-left_3.entry.6ea8dad5.js → swirl-icon-arrow-left_3.entry.5cddfb42.js} +3 -3
  42. package/dist/{swirl-icon-arrow-right-small.entry.daf39424.js → swirl-icon-arrow-right-small.entry.53b648b8.js} +3 -3
  43. package/dist/{swirl-icon-attachment.entry.2cb8c35f.js → swirl-icon-attachment.entry.302569e9.js} +3 -3
  44. package/dist/{swirl-icon-block.entry.0d7f0e2b.js → swirl-icon-block.entry.79c5f2b2.js} +3 -3
  45. package/dist/{swirl-icon-cancel_4.entry.2943f0c0.js → swirl-icon-cancel_4.entry.31c7f7d7.js} +3 -3
  46. package/dist/{swirl-icon-chat-bubble.entry.66624624.js → swirl-icon-chat-bubble.entry.ac1cbfcd.js} +3 -3
  47. package/dist/{swirl-icon-chats-filled.entry.83e0eeb7.js → swirl-icon-chats-filled.entry.18c0e11a.js} +3 -3
  48. package/dist/{swirl-icon-chats-outlined.entry.f768aca8.js → swirl-icon-chats-outlined.entry.af240396.js} +3 -3
  49. package/dist/{swirl-icon-check-circle.entry.03a596c7.js → swirl-icon-check-circle.entry.4c0304e9.js} +3 -3
  50. package/dist/swirl-icon-check-small_4.entry.c7292189.js +1468 -0
  51. package/dist/{swirl-icon-check-strong.entry.88cfb7b3.js → swirl-icon-check-strong.entry.0e1ebe49.js} +3 -3
  52. package/dist/{swirl-icon-check.entry.360c5b8c.js → swirl-icon-check.entry.bb609d4c.js} +3 -3
  53. package/dist/{swirl-icon-chevron-left.entry.d6f5077d.js → swirl-icon-chevron-left.entry.0faf5ceb.js} +3 -3
  54. package/dist/{swirl-icon-chevron-right.entry.4cbdaed5.js → swirl-icon-chevron-right.entry.9b9edbac.js} +3 -3
  55. package/dist/{swirl-icon-close-small.entry.d223e192.js → swirl-icon-close-small.entry.47516cb5.js} +3 -3
  56. package/dist/{swirl-icon-close.entry.eee59783.js → swirl-icon-close.entry.f20dd2d1.js} +3 -3
  57. package/dist/{swirl-icon-cloud-upload.entry.b50d30c3.js → swirl-icon-cloud-upload.entry.5307cd46.js} +3 -3
  58. package/dist/{swirl-icon-column.entry.07e869e3.js → swirl-icon-column.entry.fb461b40.js} +3 -3
  59. package/dist/{swirl-icon-comment.entry.221fe61a.js → swirl-icon-comment.entry.7bfbd903.js} +3 -3
  60. package/dist/{swirl-icon-copy.entry.d113e5bb.js → swirl-icon-copy.entry.4c17082a.js} +3 -3
  61. package/dist/{swirl-icon-date-range.entry.a1eb0554.js → swirl-icon-date-range.entry.c8ce6402.js} +3 -3
  62. package/dist/{swirl-icon-delete.entry.ebcf7073.js → swirl-icon-delete.entry.6d3a6a54.js} +3 -3
  63. package/dist/{swirl-icon-description.entry.fb0d88a1.js → swirl-icon-description.entry.060d019c.js} +3 -3
  64. package/dist/{swirl-icon-edit.entry.c6cf867f.js → swirl-icon-edit.entry.329a25ea.js} +3 -3
  65. package/dist/{swirl-icon-emoji-mood.entry.bf9ee6c2.js → swirl-icon-emoji-mood.entry.3fbee1e1.js} +3 -3
  66. package/dist/{swirl-icon-emoji-satisfied.entry.df8c1d60.js → swirl-icon-emoji-satisfied.entry.9fc1863d.js} +3 -3
  67. package/dist/{swirl-icon-error_3.entry.c21fbb54.js → swirl-icon-error_3.entry.8209c557.js} +4 -4
  68. package/dist/{swirl-icon-expand-more.entry.bbde4949.js → swirl-icon-expand-more.entry.b2e0a30c.js} +3 -3
  69. package/dist/{swirl-icon-file.entry.7ab04321.js → swirl-icon-file.entry.c0e82b43.js} +3 -3
  70. package/dist/{swirl-icon-filter.entry.95211f5f.js → swirl-icon-filter.entry.e26fa57c.js} +3 -3
  71. package/dist/{swirl-icon-folder-shared.entry.052229e9.js → swirl-icon-folder-shared.entry.0169b375.js} +3 -3
  72. package/dist/{swirl-icon-group-assign.entry.bb3ba16d.js → swirl-icon-group-assign.entry.70e80a6e.js} +3 -3
  73. package/dist/{swirl-icon-groups-custom.entry.89cb31bf.js → swirl-icon-groups-custom.entry.d16f5fb9.js} +3 -3
  74. package/dist/{swirl-icon-groups-filled.entry.8e4dd776.js → swirl-icon-groups-filled.entry.6cccc3d3.js} +3 -3
  75. package/dist/{swirl-icon-groups-outlined.entry.d257fa35.js → swirl-icon-groups-outlined.entry.2bf03f93.js} +3 -3
  76. package/dist/{swirl-icon-groups.entry.eb164fa2.js → swirl-icon-groups.entry.cbc420c1.js} +3 -3
  77. package/dist/{swirl-icon-help.entry.95af80fe.js → swirl-icon-help.entry.bca2c9e9.js} +3 -3
  78. package/dist/{swirl-icon-image.entry.ac7fce8a.js → swirl-icon-image.entry.67457d50.js} +3 -3
  79. package/dist/{swirl-icon-info.entry.7bea6932.js → swirl-icon-info.entry.0ee58aeb.js} +3 -3
  80. package/dist/{swirl-icon-inventory.entry.7bb8c552.js → swirl-icon-inventory.entry.1548c8b5.js} +3 -3
  81. package/dist/{swirl-icon-like.entry.ec92b9fd.js → swirl-icon-like.entry.e9d549b8.js} +3 -3
  82. package/dist/{swirl-icon-link.entry.f3d5937c.js → swirl-icon-link.entry.c442143c.js} +3 -3
  83. package/dist/{swirl-icon-lock.entry.807d8a95.js → swirl-icon-lock.entry.d84f882b.js} +3 -3
  84. package/dist/{swirl-icon-logout.entry.4f31d257.js → swirl-icon-logout.entry.7a6a96d3.js} +3 -3
  85. package/dist/{swirl-icon-mail.entry.54c49af9.js → swirl-icon-mail.entry.a7b7df7b.js} +3 -3
  86. package/dist/{swirl-icon-manage-accounts.entry.8bc3721c.js → swirl-icon-manage-accounts.entry.fe2691fc.js} +3 -3
  87. package/dist/{swirl-icon-mention.entry.5cf61986.js → swirl-icon-mention.entry.c0368650.js} +3 -3
  88. package/dist/{swirl-icon-menu-filled.entry.1597fcdc.js → swirl-icon-menu-filled.entry.06cced02.js} +3 -3
  89. package/dist/{swirl-icon-menu-outlined.entry.05c230c7.js → swirl-icon-menu-outlined.entry.89dca403.js} +3 -3
  90. package/dist/{swirl-icon-menu.entry.eb38317a.js → swirl-icon-menu.entry.ff253f8f.js} +3 -3
  91. package/dist/{swirl-icon-message.entry.3f3b0ee6.js → swirl-icon-message.entry.b7d9f581.js} +3 -3
  92. package/dist/{swirl-icon-more-horizontal.entry.746bde39.js → swirl-icon-more-horizontal.entry.407e51c1.js} +3 -3
  93. package/dist/{swirl-icon-more-vertikal.entry.bf9342ef.js → swirl-icon-more-vertikal.entry.718f85e0.js} +3 -3
  94. package/dist/{swirl-icon-news-filled.entry.1c1d78f8.js → swirl-icon-news-filled.entry.5134e640.js} +3 -3
  95. package/dist/{swirl-icon-news-outlined.entry.76c94ea9.js → swirl-icon-news-outlined.entry.9c0931c4.js} +3 -3
  96. package/dist/{swirl-icon-notifications-active.entry.d8c49de6.js → swirl-icon-notifications-active.entry.c47bbb94.js} +3 -3
  97. package/dist/{swirl-icon-notifications-off.entry.2c8866a8.js → swirl-icon-notifications-off.entry.d5933059.js} +3 -3
  98. package/dist/{swirl-icon-notifications.entry.a5c7b275.js → swirl-icon-notifications.entry.b945b795.js} +3 -3
  99. package/dist/{swirl-icon-open-in-new.entry.128350f5.js → swirl-icon-open-in-new.entry.98a7ed82.js} +3 -3
  100. package/dist/{swirl-icon-people-alt.entry.7ac6d23a.js → swirl-icon-people-alt.entry.646cfc3d.js} +3 -3
  101. package/dist/{swirl-icon-person-off.entry.fda1c4d4.js → swirl-icon-person-off.entry.f5db1b83.js} +3 -3
  102. package/dist/{swirl-icon-person.entry.19fc5367.js → swirl-icon-person.entry.4b5b54cb.js} +3 -3
  103. package/dist/{swirl-icon-phone.entry.73cfee35.js → swirl-icon-phone.entry.f6c4012a.js} +3 -3
  104. package/dist/{swirl-icon-poll.entry.4ab05380.js → swirl-icon-poll.entry.9ee6b1d2.js} +3 -3
  105. package/dist/{swirl-icon-print.entry.cd89ebc5.js → swirl-icon-print.entry.37f08abb.js} +3 -3
  106. package/dist/{swirl-icon-recieved.entry.56d93432.js → swirl-icon-recieved.entry.f79a1343.js} +3 -3
  107. package/dist/{swirl-icon-search-strong.entry.904a6694.js → swirl-icon-search-strong.entry.6752b238.js} +3 -3
  108. package/dist/{swirl-icon-search.entry.cf65f83f.js → swirl-icon-search.entry.d152e72f.js} +3 -3
  109. package/dist/{swirl-icon-send.entry.56297757.js → swirl-icon-send.entry.cafcc526.js} +3 -3
  110. package/dist/{swirl-icon-settings.entry.1c988cf1.js → swirl-icon-settings.entry.cdd23f77.js} +3 -3
  111. package/dist/{swirl-icon-sync.entry.b88dd7b8.js → swirl-icon-sync.entry.37eed48f.js} +3 -3
  112. package/dist/{swirl-icon-tasks-filled.entry.b2bf1c6e.js → swirl-icon-tasks-filled.entry.629446b0.js} +3 -3
  113. package/dist/{swirl-icon-tasks-outlined.entry.09551261.js → swirl-icon-tasks-outlined.entry.21e25bc3.js} +3 -3
  114. package/dist/{swirl-icon-time-filled.entry.4954d002.js → swirl-icon-time-filled.entry.67ee5a24.js} +3 -3
  115. package/dist/{swirl-icon-time-outlined.entry.697e9656.js → swirl-icon-time-outlined.entry.d0eb5d19.js} +3 -3
  116. package/dist/{swirl-icon-user-assign.entry.fe5b582b.js → swirl-icon-user-assign.entry.8a6b68ea.js} +3 -3
  117. package/dist/{swirl-icon-video-camera.entry.d4707dde.js → swirl-icon-video-camera.entry.85101910.js} +3 -3
  118. package/dist/{swirl-icon-warning.entry.69762f5b.js → swirl-icon-warning.entry.330bf12a.js} +3 -3
  119. package/dist/{swirl-lightbox.entry.bae60d38.js → swirl-lightbox.entry.7a2191eb.js} +4 -4
  120. package/dist/{swirl-link.entry.3d52e8ef.js → swirl-link.entry.81bd6e0f.js} +1 -1
  121. package/dist/{swirl-list.entry.53688da6.js → swirl-list.entry.ca7b2daf.js} +1 -1
  122. package/dist/{swirl-modal.entry.4bf5e6c3.js → swirl-modal.entry.97df470f.js} +3 -3
  123. package/dist/{swirl-option-list-section.entry.898ea907.js → swirl-option-list-section.entry.b3b30b8f.js} +1 -1
  124. package/dist/{swirl-pagination.entry.b892dbdb.js → swirl-pagination.entry.0bbbf034.js} +3 -3
  125. package/dist/{swirl-pdf-reader.entry.28aa5b27.js → swirl-pdf-reader.entry.064e66a5.js} +4 -4
  126. package/dist/{swirl-popover.entry.3e96f1d7.js → swirl-popover.entry.1e51f870.js} +5 -5
  127. package/dist/{swirl-progress-indicator.entry.30f3d224.js → swirl-progress-indicator.entry.46470fa4.js} +3 -3
  128. package/dist/{swirl-radio-group.entry.9cbdf732.js → swirl-radio-group.entry.f931de9f.js} +1 -1
  129. package/dist/{swirl-radio.entry.7a24ed80.js → swirl-radio.entry.5ccbc5fa.js} +3 -3
  130. package/dist/{swirl-resource-list-file-item.entry.c7c3d567.js → swirl-resource-list-file-item.entry.66329d69.js} +4 -4
  131. package/dist/{swirl-search.entry.19702179.js → swirl-search.entry.364d373f.js} +4 -4
  132. package/dist/{swirl-select.entry.3ff36072.js → swirl-select.entry.95b1f5bc.js} +7 -6
  133. package/dist/{swirl-separator.entry.6dfbb1a4.js → swirl-separator.entry.7c230cd1.js} +1 -1
  134. package/dist/{swirl-stack.entry.43f00bc0.js → swirl-stack.entry.cb1d54ae.js} +3 -3
  135. package/dist/{swirl-switch.entry.eaba1cc3.js → swirl-switch.entry.895cfbbd.js} +3 -3
  136. package/dist/{swirl-tab.entry.982c6bc3.js → swirl-tab.entry.b870a20f.js} +3 -3
  137. package/dist/{swirl-table-cell.entry.5cacafda.js → swirl-table-cell.entry.0d4a9b8f.js} +1 -1
  138. package/dist/{swirl-table-column.entry.d66cfcf5.js → swirl-table-column.entry.b1f05cb5.js} +1 -1
  139. package/dist/{swirl-table-row-group.entry.4273e651.js → swirl-table-row-group.entry.85368b7a.js} +1 -1
  140. package/dist/{swirl-table-row.entry.1f98e36b.js → swirl-table-row.entry.39f31a4b.js} +3 -3
  141. package/dist/{swirl-table.entry.5a37f233.js → swirl-table.entry.cd3a7dde.js} +2 -2
  142. package/dist/{swirl-tabs.entry.a932c6b9.js → swirl-tabs.entry.6dbf6d57.js} +3 -3
  143. package/dist/{swirl-tag.entry.2fd7c670.js → swirl-tag.entry.b0d8059b.js} +3 -3
  144. package/dist/{swirl-text-input.entry.c1eb2d9c.js → swirl-text-input.entry.86bbfa05.js} +10 -9
  145. package/dist/swirl-text.entry.53142b33.js +31 -0
  146. package/dist/{swirl-theme-provider.entry.5bf11693.js → swirl-theme-provider.entry.9cc36512.js} +1 -1
  147. package/dist/{swirl-thumbnail.entry.3b230d52.js → swirl-thumbnail.entry.bd0a5c89.js} +3 -3
  148. package/dist/{swirl-toast-provider.entry.da18eaab.js → swirl-toast-provider.entry.7747ba81.js} +1 -1
  149. package/dist/{swirl-toast.entry.d0f32449.js → swirl-toast.entry.ea517c98.js} +4 -4
  150. package/dist/{swirl-tooltip.entry.e444ef8c.js → swirl-tooltip.entry.71acfc7d.js} +2 -2
  151. package/dist/{swirl-tree-navigation-item.entry.49118257.js → swirl-tree-navigation-item.entry.59540e7e.js} +3 -3
  152. package/dist/{swirl-video-thumbnail.entry.786a3d11.js → swirl-video-thumbnail.entry.4546c208.js} +1 -1
  153. package/dist/{swirl-visually-hidden.entry.1da622ab.js → swirl-visually-hidden.entry.bbc8b32d.js} +1 -1
  154. package/dist/utils-33d31b58.1488fcfe.js +46 -0
  155. package/dist/wc-datepicker.entry.d105e9ee.js +269 -0
  156. package/package.json +2 -2
  157. package/dist/index.9489626d.js +0 -1393
  158. package/dist/swirl-date-picker_2.entry.e9905308.js +0 -1188
  159. package/dist/swirl-form-control.entry.89293c5d.js +0 -65
  160. package/dist/swirl-icon-check-small_3.entry.b2362b00.js +0 -153
  161. package/dist/swirl-text.entry.ec8c8813.js +0 -18
  162. package/dist/utils-7efaa1c6.4a9c3721.js +0 -42
@@ -1,8 +1,8 @@
1
- import { r as a, h as s, H as i } from "./index.9489626d.js";
2
- import { c as r } from "./index-c3028f7d.557956d2.js";
1
+ import { r as a, h as s, H as i } from "./index.149af511.js";
2
+ import { c as r } from "./index-47862d62.75c2fcf1.js";
3
3
  import "react";
4
4
  import "react-dom";
5
- import "./_commonjsHelpers-44457d8d.ba94af77.js";
5
+ import "./_commonjsHelpers-10467d11.b7d83301.js";
6
6
  const o = ":host{display:block;width:100%}:host *{box-sizing:border-box}.tab{display:none;width:100%;padding:var(--s-space-8)}.tab--active{display:block}", e = class {
7
7
  constructor(t) {
8
8
  a(this, t);
@@ -1,4 +1,4 @@
1
- import { r as a, h as s, H as e } from "./index.9489626d.js";
1
+ import { r as a, h as s, H as e } from "./index.149af511.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const t = ":host{display:flex;overflow:auto;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;background-color:var(--s-background-default);word-break:break-word;-webkit-hyphens:auto;hyphens:auto;transition:box-shadow 0.15s}:host(.table-cell--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-cell--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host(:first-child){border-left:var(--s-border-width-default) solid var(--s-border-default)}:host(:last-child){border-right:var(--s-border-width-default) solid var(--s-border-default)}:host *{box-sizing:border-box}", l = class {
@@ -1,4 +1,4 @@
1
- import { r, h as t, H as e, g as i } from "./index.9489626d.js";
1
+ import { r, h as t, H as e, g as i } from "./index.149af511.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const o = ":host{display:flex;overflow:hidden;padding-top:var(--s-space-12);padding-right:var(--s-space-16);padding-bottom:var(--s-space-12);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;border-top:var(--s-border-width-default) solid var(--s-border-default);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);background-color:var(--s-background-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;letter-spacing:var(--s-letter-spacing-tighter);text-overflow:ellipsis;transition:box-shadow 0.15s;gap:var(--s-space-8)}:host(:first-child){border-left:var(--s-border-width-default) solid var(--s-border-default)}:host(:last-child){border-right:var(--s-border-width-default) solid var(--s-border-default)}:host(.table-column--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-column--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host *{box-sizing:border-box}.table-column__sort-indicator{display:inline-flex;width:1.25rem;height:1.25rem;flex-grow:0;flex-shrink:0}", a = class {
@@ -1,4 +1,4 @@
1
- import { r as o, h as r, H as s, g as t } from "./index.9489626d.js";
1
+ import { r as o, h as r, H as s, g as t } from "./index.149af511.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const a = ":host{position:relative;z-index:1;display:block}:host *{box-sizing:border-box}.table-row-group__header-row{padding:var(--s-space-12) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-surface-raised-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm)}@media (min-width: 768px){.table-row-group__label{position:sticky;left:var(--s-space-16)}}", l = class {
@@ -1,8 +1,8 @@
1
- import { r, h as o, H as s } from "./index.9489626d.js";
2
- import { c as e } from "./index-c3028f7d.557956d2.js";
1
+ import { r, h as o, H as s } from "./index.149af511.js";
2
+ import { c as e } from "./index-47862d62.75c2fcf1.js";
3
3
  import "react";
4
4
  import "react-dom";
5
- import "./_commonjsHelpers-44457d8d.ba94af77.js";
5
+ import "./_commonjsHelpers-10467d11.b7d83301.js";
6
6
  const l = ":host{display:flex}:host(.table-row--highlighted){--swirl-ghost-button-background-default:transparent}:host(.table-row--highlighted) ::slotted(.table-cell){background-color:rgba(240, 242, 255, 1);}:host ::slotted(.table-cell){border-bottom:var(--s-border-width-default) solid var(--s-border-default)}:host *{box-sizing:border-box}", a = class {
7
7
  constructor(t) {
8
8
  r(this, t);
@@ -1,5 +1,5 @@
1
- import { r as g, h as i, H as _, g as S } from "./index.9489626d.js";
2
- import { i as v } from "./utils-7efaa1c6.4a9c3721.js";
1
+ import { r as g, h as i, H as _, g as S } from "./index.149af511.js";
2
+ import { i as v } from "./utils-33d31b58.1488fcfe.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  var C = function(e) {
@@ -1,8 +1,8 @@
1
- import { r as i, c as r, h as e, H as o, g as b } from "./index.9489626d.js";
2
- import { c as n } from "./index-c3028f7d.557956d2.js";
1
+ import { r as i, c as r, h as e, H as o, g as b } from "./index.149af511.js";
2
+ import { c as n } from "./index-47862d62.75c2fcf1.js";
3
3
  import "react";
4
4
  import "react-dom";
5
- import "./_commonjsHelpers-44457d8d.ba94af77.js";
5
+ import "./_commonjsHelpers-10467d11.b7d83301.js";
6
6
  const l = '.sc-swirl-tabs-h{display:block;width:100%}.sc-swirl-tabs-h *.sc-swirl-tabs{box-sizing:border-box}.tabs.sc-swirl-tabs{width:100%}.tabs__tab-bar.sc-swirl-tabs{position:relative;display:flex;width:100%;justify-content:flex-start;border-bottom:var(--s-border-width-default) solid var(--s-border-default)}.tabs__tab.sc-swirl-tabs{position:relative;display:block;min-width:0;margin:0;padding:var(--s-space-4) var(--s-space-8);border:none;background-color:transparent;font:inherit;font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);cursor:pointer}.tabs__tab.sc-swirl-tabs:focus{outline:none}.tabs__tab.sc-swirl-tabs:focus-visible .tabs__tab-label.sc-swirl-tabs{border-radius:var(--s-border-radius-s);box-shadow:inset 0 0 0 0.125rem var(--s-focus-default)}.tabs__tab.sc-swirl-tabs:not(.tabs__tab--active):hover:after{position:absolute;bottom:0;left:50%;width:calc(100% - var(--s-space-8));height:0.1875rem;border-radius:0.125rem;background-color:var(--s-border-default);content:"";transform:translateX(-50%);pointer-events:none}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tabs__tab.sc-swirl-tabs{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tabs__tab-label.sc-swirl-tabs{display:block;overflow:hidden;width:100%;padding:var(--s-space-8) var(--s-space-8);text-align:center;white-space:nowrap;text-overflow:ellipsis}.tabs__tab--active.sc-swirl-tabs{color:var(--s-text-highlight)}.tabs__tab--active.sc-swirl-tabs:after{position:absolute;bottom:0;left:50%;width:calc(100% - var(--s-space-8));height:0.1875rem;border-radius:0.125rem;background-color:var(--s-border-highlight);content:"";transform:translateX(-50%);pointer-events:none}', c = class {
7
7
  constructor(t) {
8
8
  i(this, t), this.tabActivated = r(this, "tabActivated", 7), this.tabs = [], this.onKeyDown = (a) => {
@@ -1,8 +1,8 @@
1
- import { r as s, c as e, h as t, H as n } from "./index.9489626d.js";
2
- import { c as i } from "./index-c3028f7d.557956d2.js";
1
+ import { r as s, c as e, h as t, H as n } from "./index.149af511.js";
2
+ import { c as i } from "./index-47862d62.75c2fcf1.js";
3
3
  import "react";
4
4
  import "react-dom";
5
- import "./_commonjsHelpers-44457d8d.ba94af77.js";
5
+ import "./_commonjsHelpers-10467d11.b7d83301.js";
6
6
  const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tag{display:inline-flex;padding:var(--s-space-2) var(--s-space-8);align-items:center;border-radius:var(--s-border-radius-s);color:var(--s-text-default);background-color:var(--s-surface-neutral-subdued);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;gap:var(--s-space-4)}.tag--intent-info{color:var(--s-text-info);background-color:var(--s-surface-info-subdued)}.tag--intent-info .tag__removal-button{color:var(--icon-info)}.tag--intent-critical{color:var(--s-text-critical);background-color:var(--s-surface-critical-subdued)}.tag--intent-critical .tag__removal-button{color:var(--icon-critical)}.tag--intent-warning{color:var(--s-text-warning);background-color:var(--s-surface-warning-subdued)}.tag--intent-warning .tag__removal-button{color:var(--icon-warning)}.tag--intent-success{color:var(--s-text-success);background-color:var(--s-surface-success-subdued)}.tag--intent-success .tag__removal-button{color:var(--icon-success)}.tag__removal-button{display:inline-flex;margin-right:calc(-1 * var(--s-space-4));padding:0;border:none;color:var(--s-icon-strong);background-color:transparent;cursor:pointer}.tag__removal-button:focus:not(:focus-visible){outline:none}.tag__removal-button:focus-visible{outline-color:var(--s-focus-default)}", l = class {
7
7
  constructor(o) {
8
8
  s(this, o), this.remove = e(this, "remove", 7), this.intent = "default", this.removalButtonLabel = "Remove", this.onRemove = (r) => {
@@ -1,10 +1,10 @@
1
- import { r as h, c as n, h as i, H as d } from "./index.9489626d.js";
2
- import { c } from "./index-c3028f7d.557956d2.js";
3
- import { g as x } from "./utils-7efaa1c6.4a9c3721.js";
1
+ import { r as h, c as n, h as i, H as d } from "./index.149af511.js";
2
+ import { c } from "./index-47862d62.75c2fcf1.js";
3
+ import { g as x } from "./utils-33d31b58.1488fcfe.js";
4
4
  import "react";
5
5
  import "react-dom";
6
- import "./_commonjsHelpers-44457d8d.ba94af77.js";
7
- const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-h *.sc-swirl-text-input{box-sizing:border-box}.text-input.sc-swirl-text-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);font:inherit;line-height:var(--s-line-height-sm)}.text-input--clearable.sc-swirl-text-input,.text-input--type-number.sc-swirl-text-input,.text-input--type-password.sc-swirl-text-input{padding-right:calc(1.5rem + var(--s-space-8))}.text-input--show-password.sc-swirl-text-input .text-input__input.sc-swirl-text-input{width:100%}.text-input--disabled.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{color:var(--s-text-disabled)}.text-input__input.sc-swirl-text-input{display:inline-flex;width:100%;max-height:13.75rem;margin:0;padding:0;border:none;color:var(--s-text-default);background-color:transparent;font:inherit;font-size:var(--s-font-size-base);line-height:var(--s-line-height-base);resize:none;caret-color:var(--s-border-highlight)}.text-input__input.sc-swirl-text-input:focus{outline:none}.text-input__input.sc-swirl-text-input:disabled{color:var(--s-text-disabled);background-color:transparent}.text-input__input.sc-swirl-text-input::-webkit-outer-spin-button,.text-input__input.sc-swirl-text-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.text-input__input[type="number"].sc-swirl-text-input{-moz-appearance:textfield}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__input.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}input.text-input__input.sc-swirl-text-input:not([type="password"]){width:0.25rem;min-width:0.25rem}.text-input--disable-dynamic-width.sc-swirl-text-input input.text-input__input.sc-swirl-text-input:not([type="password"]){width:100%;min-width:0}.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__clear-button.sc-swirl-text-input:focus:not(:focus-visible),.text-input__password-toggle.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__clear-button.sc-swirl-text-input:focus-visible,.text-input__password-toggle.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{top:-0.625rem}}.text-input__stepper.sc-swirl-text-input{position:absolute;top:-1.4375rem;right:0;display:flex;flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__stepper.sc-swirl-text-input{top:-1.25rem}}.text-input__step-button.sc-swirl-text-input{display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__step-button.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__step-button.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}.text-input__character-counter.sc-swirl-text-input{position:absolute;top:-1.375rem;right:0;display:flex;color:var(--s-text-subdued);line-height:var(--s-line-height-sm);flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__character-counter.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text-input__prefix.sc-swirl-text-input{padding-right:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}.text-input__suffix.sc-swirl-text-input{padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}', b = class {
6
+ import "./_commonjsHelpers-10467d11.b7d83301.js";
7
+ const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-h *.sc-swirl-text-input{box-sizing:border-box}.text-input.sc-swirl-text-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);font:inherit;line-height:var(--s-line-height-sm)}.text-input--clearable.sc-swirl-text-input,.text-input--type-number.sc-swirl-text-input,.text-input--type-password.sc-swirl-text-input{padding-right:calc(1.5rem + var(--s-space-8))}.text-input--show-password.sc-swirl-text-input .text-input__input.sc-swirl-text-input{width:100%}.text-input--disabled.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{color:var(--s-text-disabled)}.text-input--inline.sc-swirl-text-input .text-input__stepper.sc-swirl-text-input{display:none}.text-input--inline.sc-swirl-text-input .text-input__clear-button.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__password-toggle.sc-swirl-text-input{top:-0.0625rem}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input--inline.sc-swirl-text-input .text-input__clear-button.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__password-toggle.sc-swirl-text-input{top:0}}.text-input--inline.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{top:0}.text-input__input.sc-swirl-text-input{display:inline-flex;width:100%;max-height:13.75rem;margin:0;padding:0;border:none;color:var(--s-text-default);background-color:transparent;font:inherit;font-size:var(--s-font-size-base);line-height:var(--s-line-height-base);resize:none;caret-color:var(--s-border-highlight)}.text-input__input.sc-swirl-text-input:focus{outline:none}.text-input__input.sc-swirl-text-input:disabled{color:var(--s-text-disabled);background-color:transparent}.text-input__input.sc-swirl-text-input::-webkit-outer-spin-button,.text-input__input.sc-swirl-text-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.text-input__input[type="number"].sc-swirl-text-input{-moz-appearance:textfield}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__input.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}input.text-input__input.sc-swirl-text-input:not([type="password"]){width:0.25rem;min-width:0.25rem}.text-input--disable-dynamic-width.sc-swirl-text-input input.text-input__input.sc-swirl-text-input:not([type="password"]){width:100%;min-width:0}.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__clear-button.sc-swirl-text-input:focus:not(:focus-visible),.text-input__password-toggle.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__clear-button.sc-swirl-text-input:focus-visible,.text-input__password-toggle.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{top:-0.625rem}}.text-input__stepper.sc-swirl-text-input{position:absolute;top:-1.4375rem;right:0;display:flex;flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__stepper.sc-swirl-text-input{top:-1.25rem}}.text-input__step-button.sc-swirl-text-input{display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__step-button.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__step-button.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}.text-input__character-counter.sc-swirl-text-input{position:absolute;top:-1.375rem;right:0;display:flex;color:var(--s-text-subdued);line-height:var(--s-line-height-sm);flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__character-counter.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text-input__prefix.sc-swirl-text-input{padding-right:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}.text-input__suffix.sc-swirl-text-input{padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}', m = class {
8
8
  constructor(e) {
9
9
  h(this, e), this.inputBlur = n(this, "inputBlur", 7), this.inputFocus = n(this, "inputFocus", 7), this.valueChange = n(this, "valueChange", 7), this.autoComplete = "on", this.clearButtonLabel = "Clear input", this.rows = 1, this.passwordToggleLabel = "Toggle password display", this.type = "text", this.iconSize = 24, this.showPassword = !1, this.desktopMediaQuery = x(), this.desktopMediaQueryHandler = (t) => {
10
10
  this.updateIconSize(t.matches);
@@ -59,16 +59,17 @@ const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-
59
59
  }
60
60
  render() {
61
61
  var e;
62
- const t = this.rows === 1 ? "input" : "textarea", s = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, a = this.type === "number" && !this.disabled, r = this.type === "password" && !this.disabled, o = this.clearable && !this.disabled && Boolean(this.value) && !r && !a && !this.showCharacterCounter, l = this.type === "password" && this.showPassword ? "text" : this.type, u = c("text-input", `text-input--type-${this.type}`, {
62
+ const t = this.rows === 1 ? "input" : "textarea", s = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, r = this.type === "number" && !this.disabled, a = this.type === "password" && !this.disabled, u = this.clearable && !this.disabled && Boolean(this.value) && !a && !r && !this.showCharacterCounter, l = this.type === "password" && this.showPassword ? "text" : this.type, o = c("text-input", `text-input--type-${this.type}`, {
63
63
  "text-input--clearable": this.clearable,
64
64
  "text-input--disabled": this.disabled,
65
65
  "text-input--disable-dynamic-width": this.disableDynamicWidth,
66
+ "text-input--inline": this.inline,
66
67
  "text-input--show-password": this.type === "password" && this.showPassword
67
68
  });
68
- return i(d, null, i("div", { class: u }, this.prefixLabel && i("span", { class: "text-input__prefix" }, this.prefixLabel), i(t, { "aria-autocomplete": this.swirlAriaAutocomplete, "aria-controls": this.swirlAriaControls, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-expanded": this.swirlAriaExpanded, "aria-invalid": s, autoComplete: this.autoComplete, autoFocus: this.autoFocus, class: "text-input__input", disabled: this.disabled, inputMode: this.mode, maxLength: this.maxLength, max: this.type === "number" ? this.max : void 0, min: this.type === "number" ? this.min : void 0, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyPress: this.onKeyPress, ref: (p) => this.inputEl = p, required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : void 0, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : void 0, type: l, value: this.rows === 1 ? this.value : void 0 }, this.rows > 1 && this.value), this.suffixLabel && i("span", { class: "text-input__suffix" }, this.suffixLabel), o && i("button", { "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, type: "button" }, i("swirl-icon-cancel", { size: this.iconSize })), r && i("button", { "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? i("swirl-icon-visibility-off", { size: this.iconSize }) : i("swirl-icon-visibility", { size: this.iconSize })), a && i("span", { class: "text-input__stepper" }, i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-less", { size: this.iconSize })), i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-more", { size: this.iconSize }))), this.showCharacterCounter && i("span", { class: "text-input__character-counter" }, ((e = this.value) === null || e === void 0 ? void 0 : e.length) || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")));
69
+ return i(d, null, i("div", { class: o }, this.prefixLabel && i("span", { class: "text-input__prefix" }, this.prefixLabel), i(t, { "aria-autocomplete": this.swirlAriaAutocomplete, "aria-controls": this.swirlAriaControls, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-expanded": this.swirlAriaExpanded, "aria-invalid": s, autoComplete: this.autoComplete, autoFocus: this.autoFocus, class: "text-input__input", disabled: this.disabled, inputMode: this.mode, maxLength: this.maxLength, max: this.type === "number" ? this.max : void 0, min: this.type === "number" ? this.min : void 0, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyPress: this.onKeyPress, ref: (p) => this.inputEl = p, required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : void 0, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : void 0, type: l, value: this.rows === 1 ? this.value : void 0 }, this.rows > 1 && this.value), this.suffixLabel && i("span", { class: "text-input__suffix" }, this.suffixLabel), u && i("button", { "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, type: "button" }, i("swirl-icon-cancel", { size: this.iconSize })), a && i("button", { "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? i("swirl-icon-visibility-off", { size: this.iconSize }) : i("swirl-icon-visibility", { size: this.iconSize })), r && i("span", { class: "text-input__stepper" }, i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-less", { size: this.iconSize })), i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-more", { size: this.iconSize }))), this.showCharacterCounter && i("span", { class: "text-input__character-counter" }, ((e = this.value) === null || e === void 0 ? void 0 : e.length) || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")));
69
70
  }
70
71
  };
71
- b.style = w;
72
+ m.style = w;
72
73
  export {
73
- b as swirl_text_input
74
+ m as swirl_text_input
74
75
  };
@@ -0,0 +1,31 @@
1
+ import { r, h as e, H as l, g as n } from "./index.149af511.js";
2
+ import { c as o } from "./index-47862d62.75c2fcf1.js";
3
+ import { b as a } from "./balancetext-31f1ec68.bd1c1b2d.js";
4
+ import "react";
5
+ import "react-dom";
6
+ import "./_commonjsHelpers-10467d11.b7d83301.js";
7
+ const x = ".sc-swirl-text-h{display:block;max-width:100%}.sc-swirl-text-h *.sc-swirl-text{box-sizing:border-box}.text.sc-swirl-text{margin:0;padding:0}.text--align-start.sc-swirl-text{text-align:start}.text--align-center.sc-swirl-text{text-align:center}.text--align-end.sc-swirl-text{text-align:end}.text--color-default.sc-swirl-text{color:var(--s-text-default)}.text--color-subdued.sc-swirl-text{color:var(--s-text-subdued)}.text--color-critical.sc-swirl-text{color:var(--s-text-critical)}.text--color-success.sc-swirl-text{color:var(--s-text-success)}.text--color-warning.sc-swirl-text{color:var(--s-text-warning)}.text--size-sm.sc-swirl-text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}.text--size-base.sc-swirl-text{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-base.sc-swirl-text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text--size-lg.sc-swirl-text{font-size:var(--s-font-size-lg);line-height:var(--s-line-height-lg)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-lg.sc-swirl-text{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}}.text--weight-normal.sc-swirl-text{font-weight:var(--s-font-weight-normal)}.text--weight-medium.sc-swirl-text{font-weight:var(--s-font-weight-medium)}.text--weight-semibold.sc-swirl-text{font-weight:var(--s-font-weight-semibold)}.text--weight-bold.sc-swirl-text{font-weight:var(--s-font-weight-bold)}.text--font-style-normal.sc-swirl-text{font-style:normal}.text--font-style-italic.sc-swirl-text{font-style:italic}.text--truncate.sc-swirl-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}", c = class {
8
+ constructor(t) {
9
+ r(this, t), this.align = "start", this.as = "p", this.color = "default", this.fontStyle = "normal", this.size = "base", this.weight = "normal";
10
+ }
11
+ componentDidRender() {
12
+ this.rebalance();
13
+ }
14
+ onWindowResize() {
15
+ this.rebalance();
16
+ }
17
+ rebalance() {
18
+ !this.balance || !Boolean(this.textEl) || a(this.textEl);
19
+ }
20
+ render() {
21
+ const t = this.as, s = o("text", `text--align-${this.align}`, `text--color-${this.color}`, `text--font-style-${this.fontStyle}`, `text--size-${this.size}`, `text--weight-${this.weight}`, { "text--truncate": this.truncate });
22
+ return e(l, null, e(t, { class: s, ref: (i) => this.textEl = i }, e("slot", null)));
23
+ }
24
+ get el() {
25
+ return n(this);
26
+ }
27
+ };
28
+ c.style = x;
29
+ export {
30
+ c as swirl_text
31
+ };
@@ -1,4 +1,4 @@
1
- import { r as j, c as E, h as w, H } from "./index.9489626d.js";
1
+ import { r as j, c as E, h as w, H } from "./index.149af511.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  function d(e, t, o) {
@@ -1,8 +1,8 @@
1
- import { r as t, h as a, H as s } from "./index.9489626d.js";
2
- import { c as r } from "./index-c3028f7d.557956d2.js";
1
+ import { r as t, h as a, H as s } from "./index.149af511.js";
2
+ import { c as r } from "./index-47862d62.75c2fcf1.js";
3
3
  import "react";
4
4
  import "react-dom";
5
- import "./_commonjsHelpers-44457d8d.ba94af77.js";
5
+ import "./_commonjsHelpers-10467d11.b7d83301.js";
6
6
  const l = ":host{display:inline-flex}:host *{box-sizing:border-box}.thumbnail{position:relative;display:inline-flex;overflow:hidden;border-radius:var(--s-border-radius-s);box-shadow:inset 0 0 0 0.03125rem rgba(0, 0, 0, 0.1)}.thumbnail--size-s{--swirl-thumbnail-size:2.5rem}.thumbnail--size-m{--swirl-thumbnail-size:3rem}.thumbnail--size-l{--swirl-thumbnail-size:4rem}.thumbnail--format-landscape{width:var(--swirl-thumbnail-size);aspect-ratio:4 / 3}.thumbnail--format-landscape .thumbnail__image{width:100%}.thumbnail--format-portrait{height:var(--swirl-thumbnail-size);aspect-ratio:3 / 4}.thumbnail--format-portrait .thumbnail__image{height:100%}.thumbnail--format-square{width:var(--swirl-thumbnail-size);height:var(--swirl-thumbnail-size)}.thumbnail--format-square .thumbnail__image{width:100%}.thumbnail__image{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", m = class {
7
7
  constructor(i) {
8
8
  t(this, i), this.format = "landscape", this.size = "m";
@@ -1,4 +1,4 @@
1
- import { r, h as a, H as e } from "./index.9489626d.js";
1
+ import { r, h as a, H as e } from "./index.149af511.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const l = class {
@@ -1,9 +1,9 @@
1
- import { r as a, c as n, h as i, H as r } from "./index.9489626d.js";
2
- import { c } from "./index-c3028f7d.557956d2.js";
3
- import { g as d } from "./utils-7efaa1c6.4a9c3721.js";
1
+ import { r as a, c as n, h as i, H as r } from "./index.149af511.js";
2
+ import { c } from "./index-47862d62.75c2fcf1.js";
3
+ import { g as d } from "./utils-33d31b58.1488fcfe.js";
4
4
  import "react";
5
5
  import "react-dom";
6
- import "./_commonjsHelpers-44457d8d.ba94af77.js";
6
+ import "./_commonjsHelpers-10467d11.b7d83301.js";
7
7
  const l = ":host{display:flex}:host *{box-sizing:border-box}.toast{display:flex;width:100%;max-width:28rem;padding:var(--s-space-16);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);box-shadow:var(--s-shadow-level-2)}.toast--intent-critical{background-color:var(--s-surface-critical-default)}.toast--intent-success{background-color:var(--s-surface-success-default)}.toast__icon{display:inline-flex;margin-top:calc(-1 * var(--s-space-2));margin-right:0.625rem;flex-shrink:0}.toast__icon ::part(icon){color:var(--s-icon-on-status)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.toast__icon{margin-top:0}}.toast__content{flex-grow:1;line-height:var(--s-line-height-base);text-align:left;align-self:flex-start}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.toast__content{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.toast__dismiss-button{display:inline-flex;min-width:1.5rem;height:1.5rem;margin-top:calc(-1 * var(--s-space-2));margin-left:var(--s-space-16);padding:0;flex-shrink:0;justify-content:center;align-items:center;border:none;color:var(--s-text-on-status);background-color:transparent;font:inherit;font-weight:var(--s-font-weight-semibold);cursor:pointer}.toast__dismiss-button ::part(icon){color:var(--s-icon-on-status)}", h = class {
8
8
  constructor(s) {
9
9
  a(this, s), this.dismiss = n(this, "dismiss", 7), this.accessibleDismissLabel = "Dismiss", this.intent = "default", this.desktopMediaQuery = d(), this.desktopMediaQueryHandler = (t) => {
@@ -1,5 +1,5 @@
1
- import { r as n, h as i, H as l } from "./index.9489626d.js";
2
- import { c as r, o as p, s as h, f as d } from "./floating-ui.dom.esm-1a4e8b8a.87557233.js";
1
+ import { r as n, h as i, H as l } from "./index.149af511.js";
2
+ import { c as r, o as p, s as h, f as d } from "./floating-ui.dom.esm-b9f28f6d.15013ef7.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tooltip{display:inline-flex}.tooltip .tooltip__reference{display:inline-flex}.tooltip__popper{position:fixed;z-index:var(--s-z-40);max-width:17.5rem}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:var(--s-space-8);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);-webkit-animation:tooltip-fade-in 0.1s;animation:tooltip-fade-in 0.1s}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tooltip__bubble{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tooltip__arrow{position:absolute;width:0.5rem;height:0.5rem;background-color:var(--s-surface-neutral-default)}@-webkit-keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}@keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}", u = class {
@@ -1,8 +1,8 @@
1
- import { r as i, h as a, H as s, g as r } from "./index.9489626d.js";
2
- import { c as o } from "./index-c3028f7d.557956d2.js";
1
+ import { r as i, h as a, H as s, g as r } from "./index.149af511.js";
2
+ import { c as o } from "./index-47862d62.75c2fcf1.js";
3
3
  import "react";
4
4
  import "react-dom";
5
- import "./_commonjsHelpers-44457d8d.ba94af77.js";
5
+ import "./_commonjsHelpers-10467d11.b7d83301.js";
6
6
  const n = ":host{display:inline-flex;width:100%;height:2.5rem;padding-right:var(--s-space-16);padding-left:calc(var(--s-space-16) + 1.5rem + var(--s-space-8));flex-shrink:0;justify-content:flex-start;align-items:center;color:var(--s-text-default);background-color:var(--s-surface-default);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);cursor:pointer;gap:calc(var(--s-space-8) - var(--s-space-2))}:host(:hover){background-color:var(--s-surface-hovered)}:host(:active){background-color:var(--s-surface-pressed)}:host(:focus){outline:none}:host(:focus-visible) .tree-navigation-item__label{border-radius:var(--s-border-radius-xs);box-shadow:0 0 0 0.125rem var(--s-focus-default)}:host(.tree-navigation-item--active){background-color:var(--s-surface-raised-default);box-shadow:inset 0.25rem 0 0 0 var(--s-surface-highlight-default)}:host(.tree-navigation-item--active:hover){background-color:var(--s-surface-raised-hovered)}:host(.tree-navigation-item--active:active){background-color:var(--s-surface-raised-pressed)}:host(.tree-navigation-item--has-icon){padding-left:var(--s-space-16)}:host *{box-sizing:border-box}.tree-navigation-item__icon{display:inline-flex}.tree-navigation-item__label{overflow:hidden;min-width:0;white-space:nowrap;text-overflow:ellipsis;padding-right:var(--s-space-2);padding-left:var(--s-space-2)}", c = class {
7
7
  constructor(e) {
8
8
  i(this, e), this.onKeyDown = (t) => {
@@ -1,4 +1,4 @@
1
- import { r as t, h as n, H as e } from "./index.9489626d.js";
1
+ import { r as t, h as n, H as e } from "./index.149af511.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const a = `:host {
@@ -1,4 +1,4 @@
1
- import { r as s, h as i, H as l } from "./index.9489626d.js";
1
+ import { r as s, h as i, H as l } from "./index.149af511.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const t = ":host{position:absolute;display:inline;overflow:hidden;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;word-wrap:normal;clip:rect(0, 0, 0, 0)}", o = class {
@@ -0,0 +1,46 @@
1
+ function u(t, n) {
2
+ return t ? t instanceof ShadowRoot ? u(t.host, n) : t instanceof HTMLElement && t.matches(n) ? t : u(t.parentNode, n) : null;
3
+ }
4
+ const f = () => document.documentElement.classList.contains("disable-desktop-style-tweaks") ? window.matchMedia(null) : window.matchMedia("(min-width: 992px) and (max-width: 1439px) and (hover: hover), (min-width: 1440px)");
5
+ function p(t, n, o = !1) {
6
+ let c;
7
+ return async function() {
8
+ const e = this, a = arguments, i = function() {
9
+ c = null, o || t.apply(e, a);
10
+ }, l = o && !Boolean(c);
11
+ clearTimeout(c), c = setTimeout(i, n), l && t.apply(e, a);
12
+ };
13
+ }
14
+ function w(t, n) {
15
+ const o = n.scrollTop, c = o + n.clientHeight, s = n.getBoundingClientRect(), e = t.getBoundingClientRect(), i = {
16
+ top: e.top - s.top,
17
+ right: e.right - s.right,
18
+ bottom: e.bottom - s.bottom,
19
+ left: e.left - s.left
20
+ }.top + o, l = i + t.offsetHeight, r = i < o ? o : i;
21
+ return (l > c ? c : l) - r;
22
+ }
23
+ function g() {
24
+ return !window.matchMedia("(min-width: 768px)").matches;
25
+ }
26
+ function b(t, n) {
27
+ function o(s, e) {
28
+ if (!Boolean(e))
29
+ return [];
30
+ const a = Array.from(e.querySelectorAll(s)), i = Boolean(window.HTMLSlotElement) && e instanceof HTMLSlotElement ? e.assignedElements() : [], l = [...Array.from(e.children), ...i], r = e.shadowRoot, h = o(s, r);
31
+ return [
32
+ ...a,
33
+ ...l.map((m) => o(s, m)).flat(),
34
+ ...h
35
+ ];
36
+ }
37
+ return o(n, t).filter((s, e, a) => !a.some((i, l) => i.isSameNode(s) && l > e));
38
+ }
39
+ export {
40
+ w as a,
41
+ u as c,
42
+ p as d,
43
+ f as g,
44
+ g as i,
45
+ b as q
46
+ };
@@ -0,0 +1,269 @@
1
+ import { r as R, c as S, h as n, H, g as E } from "./index.149af511.js";
2
+ import "react";
3
+ import "react-dom";
4
+ function T(e, t) {
5
+ const a = new Date(e);
6
+ return a.setDate(a.getDate() + t), a;
7
+ }
8
+ function V(e, t, a) {
9
+ const s = [], i = b(e), d = i.getDay() === 0 ? 7 : i.getDay(), l = F(e), D = l.getDay() === 0 ? 7 : l.getDay(), g = a === 1 ? 7 : a - 1, f = [], v = [];
10
+ if (t) {
11
+ let p = (7 - a + d) % 7, m = y(i);
12
+ for (; p > 0; )
13
+ f.push(m), m = y(m), p -= 1;
14
+ f.reverse();
15
+ let w = (7 - D + g) % 7, c = C(l);
16
+ for (; w > 0; )
17
+ v.push(c), c = C(c), w -= 1;
18
+ }
19
+ let r = i;
20
+ for (; r.getMonth() === e.getMonth(); )
21
+ s.push(r), r = C(r);
22
+ return [...f, ...s, ...v];
23
+ }
24
+ function b(e) {
25
+ return u(new Date(`${P(e)}-${String(O(e)).padStart(2, "0")}-01`));
26
+ }
27
+ function h(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 F(e) {
32
+ const t = b(e);
33
+ return t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1), t;
34
+ }
35
+ function O(e) {
36
+ return e.getMonth() + 1;
37
+ }
38
+ function K(e) {
39
+ return new Array(12).fill(void 0).map((t, a) => {
40
+ const s = u(new Date(`2006-${String(a + 1).padStart(2, "0")}-01`));
41
+ return Intl.DateTimeFormat(e, {
42
+ month: "long"
43
+ }).format(s);
44
+ });
45
+ }
46
+ function C(e) {
47
+ return T(e, 1);
48
+ }
49
+ function N(e) {
50
+ const t = new Date(e);
51
+ return t.setMonth(t.getMonth() + 1), t;
52
+ }
53
+ function B(e) {
54
+ const t = new Date(e);
55
+ return t.setFullYear(t.getFullYear() + 1), t;
56
+ }
57
+ function y(e) {
58
+ return A(e, 1);
59
+ }
60
+ function Y(e) {
61
+ const t = new Date(e);
62
+ return t.setMonth(t.getMonth() - 1), t;
63
+ }
64
+ function x(e) {
65
+ const t = new Date(e);
66
+ return t.setFullYear(t.getFullYear() - 1), t;
67
+ }
68
+ function j(e, t) {
69
+ return new Array(7).fill(void 0).map((a, s) => (e + s) % 7 + 1).map((a) => {
70
+ const s = u(new Date(`2006-01-0${a}`));
71
+ return [
72
+ Intl.DateTimeFormat(t, {
73
+ weekday: "short"
74
+ }).format(s),
75
+ Intl.DateTimeFormat(t, {
76
+ weekday: "long"
77
+ }).format(s)
78
+ ];
79
+ });
80
+ }
81
+ function P(e) {
82
+ return e.getFullYear();
83
+ }
84
+ function U(e, t) {
85
+ if (!e || !t || !t.from || !t.to)
86
+ return !1;
87
+ const a = t.from < t.to ? t.from : t.to, s = t.from < t.to ? t.to : t.from;
88
+ return e >= a && e <= s;
89
+ }
90
+ function o(e, t) {
91
+ return !e || !t ? !1 : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
92
+ }
93
+ function u(e) {
94
+ const t = new Date(e);
95
+ return t.setMinutes(t.getMinutes() + t.getTimezoneOffset()), t;
96
+ }
97
+ function A(e, t) {
98
+ const a = new Date(e);
99
+ return a.setDate(a.getDate() - t), a;
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);-webkit-clip-path:inset(50%);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
+ R(this, e), this.selectDate = S(this, "selectDate", 7), this.changeMonth = S(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 = h(new Date()), this.init = () => {
114
+ this.currentDate = this.startDate ? u(new Date(this.startDate)) : new Date(), this.updateWeekdays();
115
+ }, this.nextMonth = () => {
116
+ this.updateCurrentDate(N(this.currentDate));
117
+ }, this.nextYear = () => {
118
+ this.updateCurrentDate(B(this.currentDate));
119
+ }, this.previousMonth = () => {
120
+ this.updateCurrentDate(Y(this.currentDate));
121
+ }, this.previousYear = () => {
122
+ this.updateCurrentDate(x(this.currentDate));
123
+ }, this.showToday = () => {
124
+ this.updateCurrentDate(new Date());
125
+ }, this.clear = () => {
126
+ this.value = void 0, this.selectDate.emit(void 0);
127
+ }, this.onClick = (t) => {
128
+ if (this.disabled)
129
+ return;
130
+ const a = t.target.closest("[data-date]");
131
+ if (!Boolean(a))
132
+ return;
133
+ const s = u(new Date(a.dataset.date));
134
+ this.updateCurrentDate(s), this.onSelectDate(s);
135
+ }, this.onMonthSelect = (t) => {
136
+ const a = +t.target.value - 1, s = new Date(this.currentDate);
137
+ s.setMonth(a), this.updateCurrentDate(s);
138
+ }, this.onYearSelect = (t) => {
139
+ const a = +t.target.value, s = new Date(this.currentDate);
140
+ s.setFullYear(a), this.updateCurrentDate(s);
141
+ }, this.onKeyDown = (t) => {
142
+ this.disabled || (t.code === "ArrowLeft" ? (t.preventDefault(), this.updateCurrentDate(y(this.currentDate), !0)) : t.code === "ArrowRight" ? (t.preventDefault(), this.updateCurrentDate(C(this.currentDate), !0)) : t.code === "ArrowUp" ? (t.preventDefault(), this.updateCurrentDate(A(this.currentDate, 7), !0)) : t.code === "ArrowDown" ? (t.preventDefault(), this.updateCurrentDate(T(this.currentDate, 7), !0)) : t.code === "PageUp" ? (t.preventDefault(), t.shiftKey ? this.updateCurrentDate(x(this.currentDate), !0) : this.updateCurrentDate(Y(this.currentDate), !0)) : t.code === "PageDown" ? (t.preventDefault(), t.shiftKey ? this.updateCurrentDate(B(this.currentDate), !0) : this.updateCurrentDate(N(this.currentDate), !0)) : t.code === "Home" ? (t.preventDefault(), this.updateCurrentDate(b(this.currentDate), !0)) : t.code === "End" ? (t.preventDefault(), this.updateCurrentDate(F(this.currentDate), !0)) : (t.code === "Space" || t.code === "Enter") && (t.preventDefault(), this.onSelectDate(this.currentDate)));
143
+ }, this.onMouseEnter = (t) => {
144
+ if (this.disabled)
145
+ return;
146
+ const a = u(new Date(t.target.closest("td").dataset.date));
147
+ this.hoveredDate = a;
148
+ }, this.onMouseLeave = () => {
149
+ this.hoveredDate = void 0;
150
+ };
151
+ }
152
+ componentWillLoad() {
153
+ this.init();
154
+ }
155
+ watchFirstDayOfWeek() {
156
+ this.updateWeekdays();
157
+ }
158
+ watchLocale() {
159
+ Boolean(this.locale) || (this.locale = (navigator == null ? void 0 : navigator.language) || "en-US"), this.updateWeekdays();
160
+ }
161
+ watchRange() {
162
+ this.value = void 0, this.selectDate.emit(void 0);
163
+ }
164
+ watchStartDate() {
165
+ this.currentDate = this.startDate ? u(new Date(this.startDate)) : new Date();
166
+ }
167
+ watchValue() {
168
+ Boolean(this.value) && (Array.isArray(this.value) && this.value.length >= 1 ? this.currentDate = this.value[0] : this.value instanceof Date && (this.currentDate = this.value));
169
+ }
170
+ componentDidRender() {
171
+ this.moveFocusAfterMonthChanged && (this.focusDate(this.currentDate), this.moveFocusAfterMonthChanged = !1);
172
+ }
173
+ updateWeekdays() {
174
+ this.weekdays = j(this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek, this.locale);
175
+ }
176
+ getClassName(e) {
177
+ return Boolean(e) ? `${this.elementClassName}__${e}` : this.elementClassName;
178
+ }
179
+ getCalendarRows() {
180
+ const e = V(this.currentDate, !0, this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek), t = [];
181
+ for (let a = 0; a < e.length; a += 7) {
182
+ const s = e.slice(a, a + 7);
183
+ t.push(s);
184
+ }
185
+ return t;
186
+ }
187
+ getTitle() {
188
+ if (!!Boolean(this.currentDate))
189
+ return Intl.DateTimeFormat(this.locale, {
190
+ day: "numeric",
191
+ month: "long",
192
+ year: "numeric"
193
+ }).format(this.currentDate);
194
+ }
195
+ focusDate(e) {
196
+ var t;
197
+ (t = this.el.querySelector(`[data-date="${h(e)}"]`)) === null || t === void 0 || t.focus();
198
+ }
199
+ updateCurrentDate(e, t) {
200
+ const a = e.getMonth(), s = e.getFullYear();
201
+ (a !== this.currentDate.getMonth() || s !== this.currentDate.getFullYear()) && (this.changeMonth.emit({ month: O(e), year: P(e) }), t && (this.moveFocusAfterMonthChanged = !0)), this.currentDate = e, t && this.focusDate(this.currentDate);
202
+ }
203
+ onSelectDate(e) {
204
+ var t, a;
205
+ if (!this.disableDate(e))
206
+ if (this.isRangeValue(this.value)) {
207
+ const s = ((t = this.value) === null || t === void 0 ? void 0 : t[0]) === void 0 || this.value.length === 2 ? [e] : [this.value[0], e];
208
+ s.length === 2 && s[0] > s[1] && s.reverse();
209
+ const i = s[1] === void 0 ? [h(s[0])] : [h(s[0]), h(s[1])];
210
+ this.value = s, this.selectDate.emit(i);
211
+ } else {
212
+ if (((a = this.value) === null || a === void 0 ? void 0 : a.getTime()) === e.getTime())
213
+ return;
214
+ this.value = e, this.selectDate.emit(h(e));
215
+ }
216
+ }
217
+ isRangeValue(e) {
218
+ return this.range;
219
+ }
220
+ render() {
221
+ const e = this.showTodayButton || this.showClearButton;
222
+ return n(H, null, n("div", { "aria-disabled": String(this.disabled), "aria-label": this.labels.picker, class: {
223
+ [this.getClassName()]: !0,
224
+ [`${this.getClassName()}--disabled`]: this.disabled
225
+ }, 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", { "aria-label": this.labels.monthSelect, class: this.getClassName("month-select"), disabled: this.disabled, name: "month", onChange: this.onMonthSelect }, K(this.locale).map((t, a) => n("option", { key: t, selected: this.currentDate.getMonth() === a, value: a + 1 }, t))), n("input", { "aria-label": this.labels.yearSelect, class: this.getClassName("year-select"), disabled: this.disabled, max: 9999, 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", { abbr: t[1], class: this.getClassName("weekday"), key: t[0], scope: "col" }, n("span", null, t[0]))))), n("tbody", null, this.getCalendarRows().map((t) => {
226
+ const a = `row-${t[0].getMonth()}-${t[0].getDate()}`;
227
+ return n("tr", { class: this.getClassName("calendar-row"), key: a }, t.map((s) => {
228
+ var i, d, l, D, g;
229
+ const f = o(s, this.currentDate), v = s.getMonth() !== this.currentDate.getMonth(), r = Array.isArray(this.value) ? o(s, this.value[0]) || o(s, this.value[1]) : o(s, this.value), M = this.isRangeValue ? U(s, {
230
+ from: (i = this.value) === null || i === void 0 ? void 0 : i[0],
231
+ to: ((d = this.value) === null || d === void 0 ? void 0 : d[1]) || this.hoveredDate || this.currentDate
232
+ }) : !1, p = Boolean((l = this.value) === null || l === void 0 ? void 0 : l[0]) ? [
233
+ (D = this.value) === null || D === void 0 ? void 0 : D[0],
234
+ ((g = this.value) === null || g === void 0 ? void 0 : g[1]) || this.hoveredDate
235
+ ].sort((_, I) => _ - I) : [], m = this.range && o(p[0], s), k = this.range && o(p[1], s), w = o(s, new Date()), c = this.disableDate(s), L = `cell-${s.getMonth()}-${s.getDate()}`, $ = {
236
+ [this.getClassName("date")]: !0,
237
+ [this.getClassName("date--current")]: f,
238
+ [this.getClassName("date--disabled")]: c,
239
+ [this.getClassName("date--overflowing")]: v,
240
+ [this.getClassName("date--today")]: w,
241
+ [this.getClassName("date--selected")]: r,
242
+ [this.getClassName("date--in-range")]: M,
243
+ [this.getClassName("date--start")]: m,
244
+ [this.getClassName("date--end")]: k
245
+ }, W = r ? "strong" : w ? "em" : "span";
246
+ return n("td", { "aria-disabled": String(c), "aria-selected": r ? "true" : void 0, class: $, "data-date": h(s), key: L, onClick: this.onClick, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, role: "gridcell", tabIndex: o(s, this.currentDate) && !this.disabled ? 0 : -1 }, n(W, { "aria-hidden": "true" }, s.getDate()), n("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
247
+ day: "numeric",
248
+ month: "long"
249
+ }).format(s)));
250
+ }));
251
+ })))), 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))));
252
+ }
253
+ get el() {
254
+ return E(this);
255
+ }
256
+ static get watchers() {
257
+ return {
258
+ firstDayOfWeek: ["watchFirstDayOfWeek"],
259
+ locale: ["watchLocale"],
260
+ range: ["watchRange"],
261
+ startDate: ["watchStartDate"],
262
+ value: ["watchValue"]
263
+ };
264
+ }
265
+ };
266
+ G.style = z;
267
+ export {
268
+ G as wc_datepicker
269
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getflip/swirl-components-react",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -18,7 +18,7 @@
18
18
  "build": "tsc && vite build"
19
19
  },
20
20
  "dependencies": {
21
- "@getflip/swirl-components": "^0.12.0",
21
+ "@getflip/swirl-components": "^0.13.0",
22
22
  "react": "^18.2.0",
23
23
  "react-dom": "^18.2.0"
24
24
  },