@getflip/swirl-components-react 0.1.0 → 0.2.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 (160) hide show
  1. package/dist/_commonjsHelpers-44457d8d.ba94af77.js +37 -0
  2. package/dist/a11y-dialog.esm-d7a94c8c.bd6ae411.js +99 -0
  3. package/dist/bodyScrollLock.esm-ce6356d8.2c600fb9.js +93 -0
  4. package/dist/{flip-action-list-item.entry.1b728e6a.js → flip-action-list-item.entry.66f33805.js} +3 -2
  5. package/dist/{flip-action-list-section.entry.da3e6186.js → flip-action-list-section.entry.2927ba41.js} +1 -1
  6. package/dist/{flip-action-list.entry.400a309a.js → flip-action-list.entry.66352b19.js} +2 -2
  7. package/dist/flip-avatar-group.entry.be7886a3.js +20 -0
  8. package/dist/{flip-avatar.entry.2eb3242e.js → flip-avatar.entry.f95286a1.js} +3 -2
  9. package/dist/flip-badge.entry.3f2d34e9.js +20 -0
  10. package/dist/{flip-banner.entry.b3012465.js → flip-banner.entry.32f2ef57.js} +3 -2
  11. package/dist/flip-button-group.entry.ed86679b.js +15 -0
  12. package/dist/flip-button.entry.555b8fd4.js +33 -0
  13. package/dist/{flip-checkbox.entry.2f740fb8.js → flip-checkbox.entry.9768035f.js} +10 -9
  14. package/dist/{flip-chip.entry.e9729ac7.js → flip-chip.entry.5ebbf411.js} +3 -2
  15. package/dist/flip-date-input.entry.7bf9efc5.js +5473 -0
  16. package/dist/flip-date-picker_3.entry.54e0b84d.js +1270 -0
  17. package/dist/{flip-description-list-item.entry.c789511e.js → flip-description-list-item.entry.f4e6faf7.js} +1 -1
  18. package/dist/{flip-description-list.entry.3b158436.js → flip-description-list.entry.2b1d4579.js} +1 -1
  19. package/dist/flip-dialog.entry.2bbc3bff.js +45 -0
  20. package/dist/flip-empty-state.entry.376592fa.js +15 -0
  21. package/dist/flip-file-uploader.entry.c0ddf5a7.js +32 -0
  22. package/dist/flip-file-viewer-audio_6.entry.d60d1099.js +16174 -0
  23. package/dist/flip-file-viewer.entry.0c2922e5.js +95 -0
  24. package/dist/flip-form-control.entry.71c275f5.js +58 -0
  25. package/dist/flip-form-group.entry.ad2385d5.js +18 -0
  26. package/dist/flip-heading.entry.1245bdda.js +18 -0
  27. package/dist/{flip-icon-add-photo.entry.a1003bdf.js → flip-icon-add-photo.entry.c3178433.js} +1 -1
  28. package/dist/{flip-icon-add.entry.7103fbe7.js → flip-icon-add.entry.708a8c7c.js} +1 -1
  29. package/dist/{flip-icon-admin-panel-settings.entry.36a12e47.js → flip-icon-admin-panel-settings.entry.88af777a.js} +1 -1
  30. package/dist/{flip-icon-arrow-back.entry.e35ba078.js → flip-icon-arrow-back.entry.abd86e13.js} +1 -1
  31. package/dist/{flip-icon-arrow-forward.entry.5138c404.js → flip-icon-arrow-forward.entry.ef6e8b77.js} +1 -1
  32. package/dist/flip-icon-arrow-left.entry.70be0607.js +15 -0
  33. package/dist/{flip-icon-arrow-right-small.entry.d1eeb150.js → flip-icon-arrow-right-small.entry.d342c71f.js} +1 -1
  34. package/dist/flip-icon-arrow-right.entry.bd9eae8e.js +15 -0
  35. package/dist/{flip-icon-attachment.entry.594b602b.js → flip-icon-attachment.entry.898243d2.js} +1 -1
  36. package/dist/flip-icon-cancel.entry.fac41df2.js +15 -0
  37. package/dist/{flip-icon-chat-bubble.entry.f56fcdc4.js → flip-icon-chat-bubble.entry.016c1f0d.js} +1 -1
  38. package/dist/{flip-icon-check-circle.entry.e4f8169d.js → flip-icon-check-circle.entry.330f4038.js} +1 -1
  39. package/dist/{flip-icon-check-small.entry.308d57d1.js → flip-icon-check-small.entry.590b928f.js} +1 -1
  40. package/dist/{flip-icon-check-strong.entry.b61365d2.js → flip-icon-check-strong.entry.8fb90e69.js} +1 -1
  41. package/dist/{flip-icon-check.entry.f2c6b547.js → flip-icon-check.entry.bf4892a9.js} +1 -1
  42. package/dist/{flip-icon-chevron-left.entry.dbe9b291.js → flip-icon-chevron-left.entry.8a5cd7ef.js} +1 -1
  43. package/dist/{flip-icon-chevron-right.entry.9565c0f1.js → flip-icon-chevron-right.entry.ba87bdc8.js} +1 -1
  44. package/dist/{flip-icon-close-small.entry.8bfcf1b1.js → flip-icon-close-small.entry.d3ca39fb.js} +1 -1
  45. package/dist/{flip-icon-close.entry.41992748.js → flip-icon-close.entry.ebcf0fe6.js} +1 -1
  46. package/dist/flip-icon-cloud-upload.entry.bf4e840b.js +15 -0
  47. package/dist/{flip-icon-comment.entry.2aac2c10.js → flip-icon-comment.entry.dd07b7a4.js} +1 -1
  48. package/dist/{flip-icon-copy.entry.8e59bf1d.js → flip-icon-copy.entry.796dcb43.js} +1 -1
  49. package/dist/{flip-icon-date-range.entry.c1dd2730.js → flip-icon-date-range.entry.53c670dc.js} +1 -1
  50. package/dist/{flip-icon-delete.entry.bc0b61ff.js → flip-icon-delete.entry.df480685.js} +1 -1
  51. package/dist/{flip-icon-description.entry.e01b2d40.js → flip-icon-description.entry.da40cecc.js} +1 -1
  52. package/dist/{flip-icon-download.entry.a512f353.js → flip-icon-download.entry.3926477e.js} +1 -1
  53. package/dist/{flip-icon-edit.entry.7e3cd472.js → flip-icon-edit.entry.0f50ba4c.js} +1 -1
  54. package/dist/{flip-icon-emoji-mood.entry.df7b536f.js → flip-icon-emoji-mood.entry.4fa27f13.js} +1 -1
  55. package/dist/{flip-icon-emoji-satisfied.entry.e3e5352b.js → flip-icon-emoji-satisfied.entry.9246c39b.js} +1 -1
  56. package/dist/{flip-icon-error.entry.96c3c29b.js → flip-icon-error_3.entry.4e8dcd9e.js} +30 -6
  57. package/dist/flip-icon-expand-less_3.entry.f191352f.js +35 -0
  58. package/dist/{flip-icon-expand-more.entry.4c1fa160.js → flip-icon-expand-more.entry.5dbcc3e3.js} +1 -1
  59. package/dist/{flip-icon-file.entry.3a18cce8.js → flip-icon-file.entry.64c3e030.js} +1 -1
  60. package/dist/{flip-icon-folder-shared.entry.38b22cd2.js → flip-icon-folder-shared.entry.87cd72cd.js} +1 -1
  61. package/dist/flip-icon-fullscreen-exit.entry.b274fc5c.js +15 -0
  62. package/dist/flip-icon-fullscreen.entry.a0a70cc8.js +15 -0
  63. package/dist/{flip-icon-group-assign.entry.a640254f.js → flip-icon-group-assign.entry.17e70921.js} +1 -1
  64. package/dist/{flip-icon-groups-custom.entry.d77901cd.js → flip-icon-groups-custom.entry.ed78b313.js} +1 -1
  65. package/dist/{flip-icon-groups.entry.80196d79.js → flip-icon-groups.entry.ff8a5e63.js} +1 -1
  66. package/dist/{flip-icon-image.entry.601bf2ae.js → flip-icon-image.entry.b010afb8.js} +1 -1
  67. package/dist/{flip-icon-info.entry.b480a255.js → flip-icon-info.entry.61351d50.js} +1 -1
  68. package/dist/{flip-icon-inventory.entry.bb8a5615.js → flip-icon-inventory.entry.f0ffd90a.js} +1 -1
  69. package/dist/{flip-icon-like.entry.af8b36e2.js → flip-icon-like.entry.6b0034de.js} +1 -1
  70. package/dist/{flip-icon-link.entry.be72688c.js → flip-icon-link.entry.9229312e.js} +1 -1
  71. package/dist/{flip-icon-lock.entry.440459fe.js → flip-icon-lock.entry.03e5fa85.js} +1 -1
  72. package/dist/{flip-icon-logout.entry.dde0bfc8.js → flip-icon-logout.entry.8b073a7d.js} +1 -1
  73. package/dist/{flip-icon-mail.entry.b57a0093.js → flip-icon-mail.entry.91482af2.js} +1 -1
  74. package/dist/{flip-icon-manage-accounts.entry.11cc3149.js → flip-icon-manage-accounts.entry.5de8be6f.js} +1 -1
  75. package/dist/{flip-icon-mention.entry.32771810.js → flip-icon-mention.entry.ef803509.js} +1 -1
  76. package/dist/{flip-icon-message.entry.636088c3.js → flip-icon-message.entry.20ae73fb.js} +1 -1
  77. package/dist/{flip-icon-more-horizontal.entry.38f14508.js → flip-icon-more-horizontal.entry.9a2357f0.js} +1 -1
  78. package/dist/{flip-icon-more-vertikal.entry.8a4c613a.js → flip-icon-more-vertikal.entry.0447fdab.js} +1 -1
  79. package/dist/{flip-icon-notifications-active.entry.5658308d.js → flip-icon-notifications-active.entry.3aa487b9.js} +1 -1
  80. package/dist/{flip-icon-notifications-off.entry.8d3b11ff.js → flip-icon-notifications-off.entry.285c2bb6.js} +1 -1
  81. package/dist/{flip-icon-notifications.entry.91f77dd2.js → flip-icon-notifications.entry.e60fed91.js} +1 -1
  82. package/dist/flip-icon-open-in-new.entry.9de4d7c0.js +15 -0
  83. package/dist/{flip-icon-people-alt.entry.b0b2e20c.js → flip-icon-people-alt.entry.dd840fb1.js} +1 -1
  84. package/dist/{flip-icon-person-off.entry.e79df0e6.js → flip-icon-person-off.entry.df6c63b6.js} +1 -1
  85. package/dist/{flip-icon-person.entry.1bc59e68.js → flip-icon-person.entry.37939889.js} +1 -1
  86. package/dist/{flip-icon-phone.entry.03e81177.js → flip-icon-phone.entry.08245320.js} +1 -1
  87. package/dist/{flip-icon-poll.entry.4e059f77.js → flip-icon-poll.entry.e0ff1d9f.js} +1 -1
  88. package/dist/flip-icon-print.entry.f5fbd804.js +15 -0
  89. package/dist/{flip-icon-recieved.entry.e3410f9e.js → flip-icon-recieved.entry.5b4e2a50.js} +1 -1
  90. package/dist/flip-icon-remove.entry.98d516c6.js +15 -0
  91. package/dist/{flip-icon-search-strong.entry.ec0849a6.js → flip-icon-search-strong.entry.afcf6af9.js} +1 -1
  92. package/dist/{flip-icon-cancel_2.entry.eb8d1a8c.js → flip-icon-search.entry.0f103075.js} +3 -13
  93. package/dist/{flip-icon-send.entry.3f80869c.js → flip-icon-send.entry.fd3001a2.js} +1 -1
  94. package/dist/{flip-icon-settings.entry.c86a7bca.js → flip-icon-settings.entry.2b1e4bb0.js} +1 -1
  95. package/dist/{flip-icon-time-filled.entry.ad86a08f.js → flip-icon-time-filled.entry.7fa814d7.js} +1 -1
  96. package/dist/{flip-icon-time-outlined.entry.75a29f76.js → flip-icon-time-outlined.entry.e3f601ce.js} +1 -1
  97. package/dist/{flip-icon-user-assign.entry.1f331180.js → flip-icon-user-assign.entry.4951e82f.js} +1 -1
  98. package/dist/{flip-icon-video-camera.entry.40ea3d7d.js → flip-icon-video-camera.entry.74f8a7b6.js} +1 -1
  99. package/dist/{flip-icon-warning.entry.1c1540b8.js → flip-icon-warning.entry.76ebfb1e.js} +1 -1
  100. package/dist/{flip-link.entry.fe817ab1.js → flip-link.entry.f67e488c.js} +1 -1
  101. package/dist/flip-list.entry.5cc5b288.js +18 -0
  102. package/dist/flip-modal.entry.4921d0b4.js +61 -0
  103. package/dist/flip-option-list-item.entry.fd1d85dd.js +30 -0
  104. package/dist/flip-option-list-section.entry.5509895e.js +15 -0
  105. package/dist/flip-option-list.entry.efe97de9.js +95 -0
  106. package/dist/flip-pagination.entry.b109c35d.js +27 -0
  107. package/dist/flip-progress-indicator.entry.b7cf2985.js +18 -0
  108. package/dist/flip-radio-group.entry.dfc6ef8e.js +35 -0
  109. package/dist/{flip-radio.entry.817d976d.js → flip-radio.entry.f153fc92.js} +6 -5
  110. package/dist/flip-resource-list-file-item.entry.26beeeee.js +20 -0
  111. package/dist/flip-resource-list-item.entry.7cac7a7c.js +41 -0
  112. package/dist/flip-resource-list.entry.75d10224.js +49 -0
  113. package/dist/{flip-search.entry.6717d77a.js → flip-search.entry.eccdd9b5.js} +3 -2
  114. package/dist/{flip-stack.entry.50d88d6f.js → flip-stack.entry.2448bd6b.js} +3 -2
  115. package/dist/{flip-switch.entry.ef96875e.js → flip-switch.entry.71d04383.js} +3 -2
  116. package/dist/flip-tab.entry.184626dd.js +18 -0
  117. package/dist/flip-tabs.entry.9434fd96.js +92 -0
  118. package/dist/{flip-tag.entry.31a7d0f7.js → flip-tag.entry.5df8a6b4.js} +3 -2
  119. package/dist/flip-text-input.entry.55decf50.js +55 -0
  120. package/dist/flip-text.entry.2b6e3f56.js +18 -0
  121. package/dist/{flip-theme-provider.entry.9c054d33.js → flip-theme-provider.entry.1570cb6b.js} +1 -1
  122. package/dist/{flip-thumbnail.entry.449e93ef.js → flip-thumbnail.entry.54ea67cf.js} +3 -2
  123. package/dist/{flip-toast-provider.entry.59025e1a.js → flip-toast-provider.entry.0ee21f8b.js} +1 -1
  124. package/dist/{flip-toast.entry.78522d59.js → flip-toast.entry.29ea2ead.js} +3 -2
  125. package/dist/flip-tooltip.entry.e6a904e4.js +94 -0
  126. package/dist/flip-video-thumbnail.entry.f3cf1c28.js +83 -0
  127. package/dist/{flip-visually-hidden.entry.ae0ff292.js → flip-visually-hidden.entry.47d25a46.js} +1 -1
  128. package/dist/floating-ui.dom.esm-1a4e8b8a.87557233.js +752 -0
  129. package/dist/index-6d2e18c6.289636d4.js +37 -0
  130. package/dist/index.b6e7bb76.js +1359 -0
  131. package/dist/index.d.ts +1 -0
  132. package/dist/stencil-generated/index.d.ts +136 -0
  133. package/dist/stencil-generated/react-component-lib/createComponent.d.ts +10 -0
  134. package/dist/stencil-generated/react-component-lib/createOverlayComponent.d.ts +21 -0
  135. package/dist/stencil-generated/react-component-lib/index.d.ts +2 -0
  136. package/dist/stencil-generated/react-component-lib/interfaces.d.ts +29 -0
  137. package/dist/stencil-generated/react-component-lib/utils/attachProps.d.ts +12 -0
  138. package/dist/stencil-generated/react-component-lib/utils/case.d.ts +2 -0
  139. package/dist/stencil-generated/react-component-lib/utils/index.d.ts +10 -0
  140. package/dist/swirl-components-react.js +133 -96
  141. package/dist/swirl-components-react.umd.cjs +137 -17
  142. package/dist/utils-b46bcd4f.79126bb2.js +30 -0
  143. package/dist/vite-env.d.ts +1 -0
  144. package/package.json +5 -3
  145. package/dist/flip-avatar-group.entry.71bf1f2a.js +0 -19
  146. package/dist/flip-badge.entry.ebda6058.js +0 -19
  147. package/dist/flip-button_2.entry.a323451d.js +0 -42
  148. package/dist/flip-dialog.entry.f2be9a9c.js +0 -139
  149. package/dist/flip-icon-expand-less.entry.3e970433.js +0 -15
  150. package/dist/flip-icon-today.entry.ab272990.js +0 -15
  151. package/dist/flip-icon-visibility-off.entry.ed4db3b5.js +0 -15
  152. package/dist/flip-icon-visibility.entry.1a7dfd44.js +0 -15
  153. package/dist/flip-inline-error.entry.38c26d13.js +0 -17
  154. package/dist/flip-popover.entry.18c5ead6.js +0 -878
  155. package/dist/flip-radio-group.entry.187f29ee.js +0 -35
  156. package/dist/flip-spinner.entry.f8f179be.js +0 -17
  157. package/dist/flip-tooltip.entry.8b5f35c7.js +0 -102
  158. package/dist/index-3c78bcaf.2675909b.js +0 -48
  159. package/dist/main.7e7363a7.js +0 -1322
  160. package/dist/utils-03e3261c.f5223801.js +0 -16
@@ -1,35 +0,0 @@
1
- import { r as a, c as s, h as r, H as l, g as n } from "./main.7e7363a7.js";
2
- import "react";
3
- import "react-dom";
4
- const u = ".sc-flip-radio-group-h{display:block}.sc-flip-radio-group-h *.sc-flip-radio-group{box-sizing:border-box}.radio-group.sc-flip-radio-group{display:flex;flex-direction:column;gap:var(--s-space-4)}", d = class {
5
- constructor(e) {
6
- a(this, e), this.valueChange = s(this, "valueChange", 7);
7
- }
8
- componentDidLoad() {
9
- this.radioButtons = Array.from(this.el.querySelectorAll("flip-radio")), this.initValue(), this.handleValueChanges();
10
- }
11
- initValue() {
12
- if (this.value === void 0)
13
- return;
14
- const e = this.radioButtons.find((i) => i.value === this.value);
15
- !Boolean(e) || (e.checked = !0);
16
- }
17
- handleValueChanges() {
18
- for (const [e, i] of Object.entries(this.radioButtons))
19
- i.addEventListener("valueChange", () => {
20
- (i.checked === !0 || i.checked === "true") && (this.valueChange.emit(i.value), this.radioButtons.forEach((t, o) => {
21
- String(o) !== e && (t.checked = !1);
22
- }));
23
- });
24
- }
25
- render() {
26
- return r(l, { role: "radiogroup" }, r("div", { class: "radio-group" }, r("slot", null)));
27
- }
28
- get el() {
29
- return n(this);
30
- }
31
- };
32
- d.style = u;
33
- export {
34
- d as flip_radio_group
35
- };
@@ -1,17 +0,0 @@
1
- import { r, h as e, H as i } from "./main.7e7363a7.js";
2
- import { c as n } from "./index-3c78bcaf.2675909b.js";
3
- import "react";
4
- import "react-dom";
5
- const t = ":host{display:inline-flex}:host *{box-sizing:border-box}.spinner{position:relative;display:inline-flex;overflow:hidden;width:2.25rem;height:2.25rem}.spinner--size-s{width:1.5rem;height:1.5rem}.spinner--size-s .spinner__circle{stroke-width:0.1875rem}.spinner__indicator{position:absolute;inset:0;width:100%;height:100%;transform-origin:center center;-webkit-animation:spinner-rotate 2s linear infinite;animation:spinner-rotate 2s linear infinite}.spinner__background{stroke:var(--s-border-default);stroke-linecap:round}.spinner__circle{-webkit-animation:spinner-dash 1.5s ease-in-out infinite;animation:spinner-dash 1.5s ease-in-out infinite;stroke:var(--s-interactive-primary-default);stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round}@-webkit-keyframes spinner-rotate{100%{transform:rotate(360deg)}}@keyframes spinner-rotate{100%{transform:rotate(360deg)}}@-webkit-keyframes spinner-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}@keyframes spinner-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}", a = class {
6
- constructor(s) {
7
- r(this, s), this.size = "m";
8
- }
9
- render() {
10
- const s = n("spinner", `spinner--size-${this.size}`);
11
- return e(i, null, e("span", { class: s, role: Boolean(this.label) ? "status" : void 0 }, e("svg", { "aria-hidden": "true", class: "spinner__indicator", focusable: "false", viewBox: "0 0 50 50" }, e("circle", { class: "spinner__background", cx: "25", cy: "25", r: "20", fill: "none", "stroke-width": "4" }), e("circle", { class: "spinner__circle", cx: "25", cy: "25", r: "20", fill: "none", "stroke-width": "4" })), this.label && e("flip-visually-hidden", null, e("span", { class: "spinner__label" }, this.label))));
12
- }
13
- };
14
- a.style = t;
15
- export {
16
- a as flip_spinner
17
- };
@@ -1,102 +0,0 @@
1
- import { r as A, h as e, H as D } from "./main.7e7363a7.js";
2
- import "react";
3
- import "react-dom";
4
- /*! NanoPop 2.1.0 MIT | https://github.com/Simonwep/nanopop */
5
- const H = { variantFlipOrder: { start: "sme", middle: "mse", end: "ems" }, positionFlipOrder: { top: "tbrl", right: "rltb", bottom: "btrl", left: "lrbt" }, position: "bottom", margin: 8 }, K = (s, t, b) => {
6
- const { container: w, margin: r, position: y, variantFlipOrder: v, positionFlipOrder: _ } = { container: document.documentElement.getBoundingClientRect(), ...H, ...b }, { left: x, top: T } = t.style;
7
- t.style.left = "0", t.style.top = "0";
8
- const o = s.getBoundingClientRect(), i = t.getBoundingClientRect(), E = { t: o.top - i.height - r, b: o.bottom + r, r: o.right + r, l: o.left - i.width - r }, B = { vs: o.left, vm: o.left + o.width / 2 + -i.width / 2, ve: o.left + o.width - i.width, hs: o.top, hm: o.bottom - o.height / 2 - i.height / 2, he: o.bottom - i.height }, [F, O = "middle"] = y.split("-"), P = _[F], C = v[O], { top: p, left: d, bottom: c, right: u } = w;
9
- for (const l of P) {
10
- const n = l === "t" || l === "b", a = E[l], [m, f] = n ? ["top", "left"] : ["left", "top"], [k, S] = n ? [i.height, i.width] : [i.width, i.height], [W, z] = n ? [c, u] : [u, c], [L, R] = n ? [p, d] : [d, p];
11
- if (!(a < L || a + k > W))
12
- for (const g of C) {
13
- const h = B[(n ? "v" : "h") + g];
14
- if (!(h < R || h + S > z))
15
- return t.style[f] = h - i[f] + "px", t.style[m] = a - i[m] + "px", l + g;
16
- }
17
- }
18
- return t.style.left = x, t.style.top = T, null;
19
- }, M = ":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);backgrund-color:red}.tooltip__arrow{position:absolute;width:0.5rem;height:0.5rem;background-color:var(--s-surface-neutral-default)}", I = class {
20
- constructor(s) {
21
- A(this, s), this.delay = 300, this.position = "top", this.visible = !1, this.onKeydown = (t) => {
22
- t.code === "Escape" && this.hide();
23
- }, this.reposition = () => {
24
- !Boolean(this.referenceEl) || !Boolean(this.popperEl) || (this.actualPosition = K(this.referenceEl, this.popperEl, this.options));
25
- }, this.show = () => {
26
- this.visible = !0, requestAnimationFrame(() => {
27
- this.reposition();
28
- });
29
- }, this.showWithDelay = () => {
30
- Boolean(this.showTimeout) && (clearTimeout(this.showTimeout), this.showTimeout = void 0), this.showTimeout = setTimeout(() => {
31
- this.show();
32
- }, this.delay);
33
- }, this.hide = () => {
34
- Boolean(this.showTimeout) && (clearTimeout(this.showTimeout), this.showTimeout = void 0), this.visible = !1;
35
- }, this.updateOptions = () => {
36
- const t = +getComputedStyle(document.documentElement).getPropertyValue("--s-space-12").replace("rem", "") * 16;
37
- this.options = {
38
- margin: t,
39
- position: this.position
40
- };
41
- }, this.getArrowStyles = () => {
42
- if (this.actualPosition === "tm")
43
- return {
44
- top: "100%",
45
- left: "50%",
46
- transform: "translate3d(-50%, -50%, 0) rotate(45deg)"
47
- };
48
- if (this.actualPosition === "bm")
49
- return {
50
- bottom: "100%",
51
- left: "50%",
52
- transform: "translate3d(-50%, 50%, 0) rotate(45deg)"
53
- };
54
- if (this.actualPosition === "rm")
55
- return {
56
- top: "50%",
57
- right: "100%",
58
- transform: "translate3d(50%, -50%, 0) rotate(45deg)"
59
- };
60
- if (this.actualPosition === "lm")
61
- return {
62
- top: "50%",
63
- left: "100%",
64
- transform: "translate3d(-50%, -50%, 0) rotate(45deg)"
65
- };
66
- };
67
- }
68
- watchPosition() {
69
- this.updateOptions();
70
- }
71
- onMouseEnter() {
72
- this.showWithDelay();
73
- }
74
- onMouseLeave() {
75
- this.hide();
76
- }
77
- onWindowResize() {
78
- this.reposition();
79
- }
80
- onWindowScroll() {
81
- this.reposition();
82
- }
83
- componentWillLoad() {
84
- this.reposition();
85
- }
86
- componentDidLoad() {
87
- this.updateOptions();
88
- }
89
- render() {
90
- const s = this.getArrowStyles();
91
- return e(D, { onKeydown: this.onKeydown }, e("span", { class: "tooltip" }, e("span", { class: "tooltip__reference", "aria-describedby": "tooltip", onBlur: this.hide, onClick: this.hide, onFocus: this.show, ref: (t) => this.referenceEl = t, tabIndex: 0 }, e("slot", null)), e("span", { class: "tooltip__popper", ref: (t) => this.popperEl = t }, this.visible && e("span", { class: "tooltip__bubble", id: "tooltip", role: "tooltip" }, e("span", { class: "tooltip__content", innerHTML: this.content }), e("span", { class: "tooltip__arrow", style: s })))));
92
- }
93
- static get watchers() {
94
- return {
95
- position: ["watchPosition"]
96
- };
97
- }
98
- };
99
- I.style = M;
100
- export {
101
- I as flip_tooltip
102
- };
@@ -1,48 +0,0 @@
1
- function p(r, o, n) {
2
- return n = {
3
- path: o,
4
- exports: {},
5
- require: function(e, s) {
6
- return a();
7
- }
8
- }, r(n, n.exports), n.exports;
9
- }
10
- function a() {
11
- throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
12
- }
13
- var f = p(function(r) {
14
- /*!
15
- Copyright (c) 2018 Jed Watson.
16
- Licensed under the MIT License (MIT), see
17
- http://jedwatson.github.io/classnames
18
- */
19
- (function() {
20
- var o = {}.hasOwnProperty;
21
- function n() {
22
- for (var e = [], s = 0; s < arguments.length; s++) {
23
- var t = arguments[s];
24
- if (!!t) {
25
- var i = typeof t;
26
- if (i === "string" || i === "number")
27
- e.push(t);
28
- else if (Array.isArray(t)) {
29
- if (t.length) {
30
- var c = n.apply(null, t);
31
- c && e.push(c);
32
- }
33
- } else if (i === "object")
34
- if (t.toString === Object.prototype.toString)
35
- for (var u in t)
36
- o.call(t, u) && t[u] && e.push(u);
37
- else
38
- e.push(t.toString());
39
- }
40
- }
41
- return e.join(" ");
42
- }
43
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
44
- })();
45
- });
46
- export {
47
- f as c
48
- };