@getflip/swirl-components 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (832) hide show
  1. package/LICENSE.md +25 -0
  2. package/README.md +8 -0
  3. package/dist/cjs/flip-action-list-item.cjs.entry.js +24 -0
  4. package/dist/cjs/flip-action-list-section.cjs.entry.js +19 -0
  5. package/dist/cjs/flip-action-list.cjs.entry.js +52 -0
  6. package/dist/cjs/flip-avatar-group.cjs.entry.js +24 -0
  7. package/dist/cjs/flip-avatar.cjs.entry.js +78 -0
  8. package/dist/cjs/flip-badge.cjs.entry.js +26 -0
  9. package/dist/cjs/flip-banner.cjs.entry.js +47 -0
  10. package/dist/cjs/flip-button_2.cjs.entry.js +59 -0
  11. package/dist/cjs/flip-checkbox.cjs.entry.js +44 -0
  12. package/dist/cjs/flip-chip.cjs.entry.js +50 -0
  13. package/dist/cjs/flip-description-list-item.cjs.entry.js +19 -0
  14. package/dist/cjs/flip-description-list.cjs.entry.js +19 -0
  15. package/dist/cjs/flip-dialog.cjs.entry.js +476 -0
  16. package/dist/cjs/flip-icon-add-photo.cjs.entry.js +20 -0
  17. package/dist/cjs/flip-icon-add.cjs.entry.js +20 -0
  18. package/dist/cjs/flip-icon-admin-panel-settings.cjs.entry.js +20 -0
  19. package/dist/cjs/flip-icon-arrow-back.cjs.entry.js +20 -0
  20. package/dist/cjs/flip-icon-arrow-forward.cjs.entry.js +20 -0
  21. package/dist/cjs/flip-icon-arrow-right-small.cjs.entry.js +20 -0
  22. package/dist/cjs/flip-icon-attachment.cjs.entry.js +20 -0
  23. package/dist/cjs/flip-icon-cancel_2.cjs.entry.js +34 -0
  24. package/dist/cjs/flip-icon-chat-bubble.cjs.entry.js +20 -0
  25. package/dist/cjs/flip-icon-check-circle.cjs.entry.js +20 -0
  26. package/dist/cjs/flip-icon-check-small.cjs.entry.js +20 -0
  27. package/dist/cjs/flip-icon-check-strong.cjs.entry.js +20 -0
  28. package/dist/cjs/flip-icon-check.cjs.entry.js +20 -0
  29. package/dist/cjs/flip-icon-chevron-left.cjs.entry.js +20 -0
  30. package/dist/cjs/flip-icon-chevron-right.cjs.entry.js +20 -0
  31. package/dist/cjs/flip-icon-close-small.cjs.entry.js +20 -0
  32. package/dist/cjs/flip-icon-close.cjs.entry.js +20 -0
  33. package/dist/cjs/flip-icon-comment.cjs.entry.js +20 -0
  34. package/dist/cjs/flip-icon-copy.cjs.entry.js +20 -0
  35. package/dist/cjs/flip-icon-date-range.cjs.entry.js +20 -0
  36. package/dist/cjs/flip-icon-delete.cjs.entry.js +20 -0
  37. package/dist/cjs/flip-icon-description.cjs.entry.js +20 -0
  38. package/dist/cjs/flip-icon-download.cjs.entry.js +20 -0
  39. package/dist/cjs/flip-icon-edit.cjs.entry.js +20 -0
  40. package/dist/cjs/flip-icon-emoji-mood.cjs.entry.js +20 -0
  41. package/dist/cjs/flip-icon-emoji-satisfied.cjs.entry.js +20 -0
  42. package/dist/cjs/flip-icon-error.cjs.entry.js +20 -0
  43. package/dist/cjs/flip-icon-expand-less.cjs.entry.js +20 -0
  44. package/dist/cjs/flip-icon-expand-more.cjs.entry.js +20 -0
  45. package/dist/cjs/flip-icon-file.cjs.entry.js +20 -0
  46. package/dist/cjs/flip-icon-folder-shared.cjs.entry.js +20 -0
  47. package/dist/cjs/flip-icon-group-assign.cjs.entry.js +20 -0
  48. package/dist/cjs/flip-icon-groups-custom.cjs.entry.js +20 -0
  49. package/dist/cjs/flip-icon-groups.cjs.entry.js +20 -0
  50. package/dist/cjs/flip-icon-image.cjs.entry.js +20 -0
  51. package/dist/cjs/flip-icon-info.cjs.entry.js +20 -0
  52. package/dist/cjs/flip-icon-inventory.cjs.entry.js +20 -0
  53. package/dist/cjs/flip-icon-like.cjs.entry.js +20 -0
  54. package/dist/cjs/flip-icon-link.cjs.entry.js +20 -0
  55. package/dist/cjs/flip-icon-lock.cjs.entry.js +20 -0
  56. package/dist/cjs/flip-icon-logout.cjs.entry.js +20 -0
  57. package/dist/cjs/flip-icon-mail.cjs.entry.js +20 -0
  58. package/dist/cjs/flip-icon-manage-accounts.cjs.entry.js +20 -0
  59. package/dist/cjs/flip-icon-mention.cjs.entry.js +20 -0
  60. package/dist/cjs/flip-icon-message.cjs.entry.js +20 -0
  61. package/dist/cjs/flip-icon-more-horizontal.cjs.entry.js +20 -0
  62. package/dist/cjs/flip-icon-more-vertikal.cjs.entry.js +20 -0
  63. package/dist/cjs/flip-icon-notifications-active.cjs.entry.js +20 -0
  64. package/dist/cjs/flip-icon-notifications-off.cjs.entry.js +20 -0
  65. package/dist/cjs/flip-icon-notifications.cjs.entry.js +20 -0
  66. package/dist/cjs/flip-icon-people-alt.cjs.entry.js +20 -0
  67. package/dist/cjs/flip-icon-person-off.cjs.entry.js +20 -0
  68. package/dist/cjs/flip-icon-person.cjs.entry.js +20 -0
  69. package/dist/cjs/flip-icon-phone.cjs.entry.js +20 -0
  70. package/dist/cjs/flip-icon-poll.cjs.entry.js +20 -0
  71. package/dist/cjs/flip-icon-recieved.cjs.entry.js +20 -0
  72. package/dist/cjs/flip-icon-search-strong.cjs.entry.js +20 -0
  73. package/dist/cjs/flip-icon-send.cjs.entry.js +20 -0
  74. package/dist/cjs/flip-icon-settings.cjs.entry.js +20 -0
  75. package/dist/cjs/flip-icon-time-filled.cjs.entry.js +20 -0
  76. package/dist/cjs/flip-icon-time-outlined.cjs.entry.js +20 -0
  77. package/dist/cjs/flip-icon-today.cjs.entry.js +20 -0
  78. package/dist/cjs/flip-icon-user-assign.cjs.entry.js +20 -0
  79. package/dist/cjs/flip-icon-video-camera.cjs.entry.js +20 -0
  80. package/dist/cjs/flip-icon-visibility-off.cjs.entry.js +20 -0
  81. package/dist/cjs/flip-icon-visibility.cjs.entry.js +20 -0
  82. package/dist/cjs/flip-icon-warning.cjs.entry.js +20 -0
  83. package/dist/cjs/flip-inline-error.cjs.entry.js +23 -0
  84. package/dist/cjs/flip-link.cjs.entry.js +19 -0
  85. package/dist/cjs/flip-popover.cjs.entry.js +1558 -0
  86. package/dist/cjs/flip-radio-group.cjs.entry.js +51 -0
  87. package/dist/cjs/flip-radio.cjs.entry.js +37 -0
  88. package/dist/cjs/flip-search.cjs.entry.js +47 -0
  89. package/dist/cjs/flip-spinner.cjs.entry.js +22 -0
  90. package/dist/cjs/flip-stack.cjs.entry.js +28 -0
  91. package/dist/cjs/flip-switch.cjs.entry.js +92 -0
  92. package/dist/cjs/flip-tag.cjs.entry.js +28 -0
  93. package/dist/cjs/flip-theme-provider.cjs.entry.js +367 -0
  94. package/dist/cjs/flip-thumbnail.cjs.entry.js +23 -0
  95. package/dist/cjs/flip-toast-provider.cjs.entry.js +54 -0
  96. package/dist/cjs/flip-toast.cjs.entry.js +52 -0
  97. package/dist/cjs/flip-tooltip.cjs.entry.js +122 -0
  98. package/dist/cjs/flip-visually-hidden.cjs.entry.js +19 -0
  99. package/dist/cjs/index-37fbfe64.js +1803 -0
  100. package/dist/cjs/index-b9715722.js +72 -0
  101. package/dist/cjs/index.cjs.js +2 -0
  102. package/dist/cjs/loader.cjs.js +21 -0
  103. package/dist/cjs/swirl-components.cjs.js +19 -0
  104. package/dist/cjs/utils-a6e2e7da.js +28 -0
  105. package/dist/collection/collection-manifest.json +109 -0
  106. package/dist/collection/components/flip-action-list/flip-action-list.css +11 -0
  107. package/dist/collection/components/flip-action-list/flip-action-list.js +54 -0
  108. package/dist/collection/components/flip-action-list/flip-action-list.stories.js +22 -0
  109. package/dist/collection/components/flip-action-list-item/flip-action-list-item.css +97 -0
  110. package/dist/collection/components/flip-action-list-item/flip-action-list-item.js +158 -0
  111. package/dist/collection/components/flip-action-list-item/flip-action-list-item.stories.js +30 -0
  112. package/dist/collection/components/flip-action-list-section/flip-action-list-section.css +22 -0
  113. package/dist/collection/components/flip-action-list-section/flip-action-list-section.js +40 -0
  114. package/dist/collection/components/flip-action-list-section/flip-action-list-section.stories.js +27 -0
  115. package/dist/collection/components/flip-avatar/flip-avatar.css +210 -0
  116. package/dist/collection/components/flip-avatar/flip-avatar.js +278 -0
  117. package/dist/collection/components/flip-avatar/flip-avatar.stories.js +40 -0
  118. package/dist/collection/components/flip-avatar-group/flip-avatar-group.css +46 -0
  119. package/dist/collection/components/flip-avatar-group/flip-avatar-group.js +44 -0
  120. package/dist/collection/components/flip-avatar-group/flip-avatar-group.stories.js +33 -0
  121. package/dist/collection/components/flip-badge/flip-badge.css +121 -0
  122. package/dist/collection/components/flip-badge/flip-badge.js +128 -0
  123. package/dist/collection/components/flip-badge/flip-badge.stories.js +31 -0
  124. package/dist/collection/components/flip-banner/flip-banner.css +146 -0
  125. package/dist/collection/components/flip-banner/flip-banner.js +222 -0
  126. package/dist/collection/components/flip-banner/flip-banner.stories.js +22 -0
  127. package/dist/collection/components/flip-button/flip-button.css +287 -0
  128. package/dist/collection/components/flip-button/flip-button.js +301 -0
  129. package/dist/collection/components/flip-button/flip-button.stories.js +31 -0
  130. package/dist/collection/components/flip-button-group/flip-button-group.css +7 -0
  131. package/dist/collection/components/flip-button-group/flip-button-group.js +81 -0
  132. package/dist/collection/components/flip-button-group/flip-button-group.stories.js +21 -0
  133. package/dist/collection/components/flip-checkbox/flip-checkbox.css +133 -0
  134. package/dist/collection/components/flip-checkbox/flip-checkbox.js +211 -0
  135. package/dist/collection/components/flip-checkbox/flip-checkbox.stories.js +29 -0
  136. package/dist/collection/components/flip-chip/flip-chip.css +89 -0
  137. package/dist/collection/components/flip-chip/flip-chip.js +144 -0
  138. package/dist/collection/components/flip-chip/flip-chip.stories.js +37 -0
  139. package/dist/collection/components/flip-description-list/flip-description-list.css +24 -0
  140. package/dist/collection/components/flip-description-list/flip-description-list.js +19 -0
  141. package/dist/collection/components/flip-description-list/flip-description-list.stories.js +30 -0
  142. package/dist/collection/components/flip-description-list-item/flip-description-list-item.css +65 -0
  143. package/dist/collection/components/flip-description-list-item/flip-description-list-item.js +40 -0
  144. package/dist/collection/components/flip-description-list-item/flip-description-list-item.stories.js +20 -0
  145. package/dist/collection/components/flip-dialog/flip-dialog.css +158 -0
  146. package/dist/collection/components/flip-dialog/flip-dialog.js +248 -0
  147. package/dist/collection/components/flip-dialog/flip-dialog.stories.js +40 -0
  148. package/dist/collection/components/flip-icon/flip-icon.css +3 -0
  149. package/dist/collection/components/flip-icon/flip-icon.stories.js +42 -0
  150. package/dist/collection/components/flip-icon/flip-icon.types.js +1 -0
  151. package/dist/collection/components/flip-icon/icons/flip-icon-add-photo.js +49 -0
  152. package/dist/collection/components/flip-icon/icons/flip-icon-add.js +49 -0
  153. package/dist/collection/components/flip-icon/icons/flip-icon-admin-panel-settings.js +52 -0
  154. package/dist/collection/components/flip-icon/icons/flip-icon-arrow-back.js +49 -0
  155. package/dist/collection/components/flip-icon/icons/flip-icon-arrow-forward.js +49 -0
  156. package/dist/collection/components/flip-icon/icons/flip-icon-arrow-right-small.js +49 -0
  157. package/dist/collection/components/flip-icon/icons/flip-icon-attachment.js +49 -0
  158. package/dist/collection/components/flip-icon/icons/flip-icon-cancel.js +49 -0
  159. package/dist/collection/components/flip-icon/icons/flip-icon-chat-bubble.js +49 -0
  160. package/dist/collection/components/flip-icon/icons/flip-icon-check-circle.js +49 -0
  161. package/dist/collection/components/flip-icon/icons/flip-icon-check-small.js +49 -0
  162. package/dist/collection/components/flip-icon/icons/flip-icon-check-strong.js +49 -0
  163. package/dist/collection/components/flip-icon/icons/flip-icon-check.js +49 -0
  164. package/dist/collection/components/flip-icon/icons/flip-icon-chevron-left.js +49 -0
  165. package/dist/collection/components/flip-icon/icons/flip-icon-chevron-right.js +49 -0
  166. package/dist/collection/components/flip-icon/icons/flip-icon-close-small.js +49 -0
  167. package/dist/collection/components/flip-icon/icons/flip-icon-close.js +49 -0
  168. package/dist/collection/components/flip-icon/icons/flip-icon-comment.js +52 -0
  169. package/dist/collection/components/flip-icon/icons/flip-icon-copy.js +49 -0
  170. package/dist/collection/components/flip-icon/icons/flip-icon-date-range.js +49 -0
  171. package/dist/collection/components/flip-icon/icons/flip-icon-delete.js +52 -0
  172. package/dist/collection/components/flip-icon/icons/flip-icon-description.js +49 -0
  173. package/dist/collection/components/flip-icon/icons/flip-icon-download.js +49 -0
  174. package/dist/collection/components/flip-icon/icons/flip-icon-edit.js +49 -0
  175. package/dist/collection/components/flip-icon/icons/flip-icon-emoji-mood.js +49 -0
  176. package/dist/collection/components/flip-icon/icons/flip-icon-emoji-satisfied.js +49 -0
  177. package/dist/collection/components/flip-icon/icons/flip-icon-error.js +49 -0
  178. package/dist/collection/components/flip-icon/icons/flip-icon-expand-less.js +49 -0
  179. package/dist/collection/components/flip-icon/icons/flip-icon-expand-more.js +49 -0
  180. package/dist/collection/components/flip-icon/icons/flip-icon-file.js +49 -0
  181. package/dist/collection/components/flip-icon/icons/flip-icon-folder-shared.js +49 -0
  182. package/dist/collection/components/flip-icon/icons/flip-icon-group-assign.js +49 -0
  183. package/dist/collection/components/flip-icon/icons/flip-icon-groups-custom.js +64 -0
  184. package/dist/collection/components/flip-icon/icons/flip-icon-groups.js +49 -0
  185. package/dist/collection/components/flip-icon/icons/flip-icon-image.js +49 -0
  186. package/dist/collection/components/flip-icon/icons/flip-icon-info.js +49 -0
  187. package/dist/collection/components/flip-icon/icons/flip-icon-inventory.js +49 -0
  188. package/dist/collection/components/flip-icon/icons/flip-icon-like.js +52 -0
  189. package/dist/collection/components/flip-icon/icons/flip-icon-link.js +49 -0
  190. package/dist/collection/components/flip-icon/icons/flip-icon-lock.js +49 -0
  191. package/dist/collection/components/flip-icon/icons/flip-icon-logout.js +49 -0
  192. package/dist/collection/components/flip-icon/icons/flip-icon-mail.js +49 -0
  193. package/dist/collection/components/flip-icon/icons/flip-icon-manage-accounts.js +55 -0
  194. package/dist/collection/components/flip-icon/icons/flip-icon-mention.js +49 -0
  195. package/dist/collection/components/flip-icon/icons/flip-icon-message.js +49 -0
  196. package/dist/collection/components/flip-icon/icons/flip-icon-more-horizontal.js +49 -0
  197. package/dist/collection/components/flip-icon/icons/flip-icon-more-vertikal.js +49 -0
  198. package/dist/collection/components/flip-icon/icons/flip-icon-notifications-active.js +49 -0
  199. package/dist/collection/components/flip-icon/icons/flip-icon-notifications-off.js +49 -0
  200. package/dist/collection/components/flip-icon/icons/flip-icon-notifications.js +49 -0
  201. package/dist/collection/components/flip-icon/icons/flip-icon-people-alt.js +58 -0
  202. package/dist/collection/components/flip-icon/icons/flip-icon-person-off.js +49 -0
  203. package/dist/collection/components/flip-icon/icons/flip-icon-person.js +49 -0
  204. package/dist/collection/components/flip-icon/icons/flip-icon-phone.js +49 -0
  205. package/dist/collection/components/flip-icon/icons/flip-icon-poll.js +49 -0
  206. package/dist/collection/components/flip-icon/icons/flip-icon-recieved.js +52 -0
  207. package/dist/collection/components/flip-icon/icons/flip-icon-search-strong.js +49 -0
  208. package/dist/collection/components/flip-icon/icons/flip-icon-search.js +49 -0
  209. package/dist/collection/components/flip-icon/icons/flip-icon-send.js +49 -0
  210. package/dist/collection/components/flip-icon/icons/flip-icon-settings.js +49 -0
  211. package/dist/collection/components/flip-icon/icons/flip-icon-time-filled.js +49 -0
  212. package/dist/collection/components/flip-icon/icons/flip-icon-time-outlined.js +49 -0
  213. package/dist/collection/components/flip-icon/icons/flip-icon-today.js +49 -0
  214. package/dist/collection/components/flip-icon/icons/flip-icon-user-assign.js +49 -0
  215. package/dist/collection/components/flip-icon/icons/flip-icon-video-camera.js +49 -0
  216. package/dist/collection/components/flip-icon/icons/flip-icon-visibility-off.js +49 -0
  217. package/dist/collection/components/flip-icon/icons/flip-icon-visibility.js +49 -0
  218. package/dist/collection/components/flip-icon/icons/flip-icon-warning.js +49 -0
  219. package/dist/collection/components/flip-inline-error/flip-inline-error.css +35 -0
  220. package/dist/collection/components/flip-inline-error/flip-inline-error.js +65 -0
  221. package/dist/collection/components/flip-inline-error/flip-inline-error.stories.js +19 -0
  222. package/dist/collection/components/flip-link/flip-link.css +21 -0
  223. package/dist/collection/components/flip-link/flip-link.js +72 -0
  224. package/dist/collection/components/flip-link/flip-link.stories.js +20 -0
  225. package/dist/collection/components/flip-popover/flip-popover.css +267 -0
  226. package/dist/collection/components/flip-popover/flip-popover.js +229 -0
  227. package/dist/collection/components/flip-popover/flip-popover.stories.js +63 -0
  228. package/dist/collection/components/flip-radio/flip-radio.css +120 -0
  229. package/dist/collection/components/flip-radio/flip-radio.js +201 -0
  230. package/dist/collection/components/flip-radio/flip-radio.stories.js +24 -0
  231. package/dist/collection/components/flip-radio-group/flip-radio-group.css +13 -0
  232. package/dist/collection/components/flip-radio-group/flip-radio-group.js +82 -0
  233. package/dist/collection/components/flip-radio-group/flip-radio-group.stories.js +25 -0
  234. package/dist/collection/components/flip-search/flip-search.css +96 -0
  235. package/dist/collection/components/flip-search/flip-search.js +247 -0
  236. package/dist/collection/components/flip-search/flip-search.stories.js +19 -0
  237. package/dist/collection/components/flip-spinner/flip-spinner.css +90 -0
  238. package/dist/collection/components/flip-spinner/flip-spinner.js +66 -0
  239. package/dist/collection/components/flip-spinner/flip-spinner.stories.js +19 -0
  240. package/dist/collection/components/flip-stack/flip-stack.css +82 -0
  241. package/dist/collection/components/flip-stack/flip-stack.js +153 -0
  242. package/dist/collection/components/flip-stack/flip-stack.stories.js +26 -0
  243. package/dist/collection/components/flip-switch/flip-switch.css +100 -0
  244. package/dist/collection/components/flip-switch/flip-switch.js +245 -0
  245. package/dist/collection/components/flip-switch/flip-switch.stories.js +22 -0
  246. package/dist/collection/components/flip-tag/flip-tag.css +70 -0
  247. package/dist/collection/components/flip-tag/flip-tag.js +124 -0
  248. package/dist/collection/components/flip-tag/flip-tag.stories.js +20 -0
  249. package/dist/collection/components/flip-theme-provider/flip-theme-provider.css +3 -0
  250. package/dist/collection/components/flip-theme-provider/flip-theme-provider.js +253 -0
  251. package/dist/collection/components/flip-theme-provider/flip-theme-provider.stories.js +80 -0
  252. package/dist/collection/components/flip-thumbnail/flip-thumbnail.css +61 -0
  253. package/dist/collection/components/flip-thumbnail/flip-thumbnail.js +102 -0
  254. package/dist/collection/components/flip-thumbnail/flip-thumbnail.stories.js +20 -0
  255. package/dist/collection/components/flip-toast/flip-toast.css +64 -0
  256. package/dist/collection/components/flip-toast/flip-toast.js +198 -0
  257. package/dist/collection/components/flip-toast/flip-toast.stories.js +30 -0
  258. package/dist/collection/components/flip-toast-provider/flip-toast-provider.js +157 -0
  259. package/dist/collection/components/flip-toast-provider/flip-toast-provider.stories.js +58 -0
  260. package/dist/collection/components/flip-tooltip/flip-tooltip.css +42 -0
  261. package/dist/collection/components/flip-tooltip/flip-tooltip.js +212 -0
  262. package/dist/collection/components/flip-tooltip/flip-tooltip.stories.js +33 -0
  263. package/dist/collection/components/flip-visually-hidden/flip-visually-hidden.css +13 -0
  264. package/dist/collection/components/flip-visually-hidden/flip-visually-hidden.js +15 -0
  265. package/dist/collection/components/flip-visually-hidden/flip-visually-hidden.stories.js +17 -0
  266. package/dist/collection/index.js +1 -0
  267. package/dist/collection/utils.js +39 -0
  268. package/dist/components/flip-action-list-item.d.ts +11 -0
  269. package/dist/components/flip-action-list-item.js +47 -0
  270. package/dist/components/flip-action-list-section.d.ts +11 -0
  271. package/dist/components/flip-action-list-section.js +36 -0
  272. package/dist/components/flip-action-list.d.ts +11 -0
  273. package/dist/components/flip-action-list.js +67 -0
  274. package/dist/components/flip-avatar-group.d.ts +11 -0
  275. package/dist/components/flip-avatar-group.js +41 -0
  276. package/dist/components/flip-avatar.d.ts +11 -0
  277. package/dist/components/flip-avatar.js +111 -0
  278. package/dist/components/flip-badge.d.ts +11 -0
  279. package/dist/components/flip-badge.js +47 -0
  280. package/dist/components/flip-banner.d.ts +11 -0
  281. package/dist/components/flip-banner.js +76 -0
  282. package/dist/components/flip-button-group.d.ts +11 -0
  283. package/dist/components/flip-button-group.js +6 -0
  284. package/dist/components/flip-button-group2.js +46 -0
  285. package/dist/components/flip-button.d.ts +11 -0
  286. package/dist/components/flip-button.js +6 -0
  287. package/dist/components/flip-button2.js +67 -0
  288. package/dist/components/flip-checkbox.d.ts +11 -0
  289. package/dist/components/flip-checkbox.js +79 -0
  290. package/dist/components/flip-chip.d.ts +11 -0
  291. package/dist/components/flip-chip.js +71 -0
  292. package/dist/components/flip-description-list-item.d.ts +11 -0
  293. package/dist/components/flip-description-list-item.js +36 -0
  294. package/dist/components/flip-description-list.d.ts +11 -0
  295. package/dist/components/flip-description-list.js +34 -0
  296. package/dist/components/flip-dialog.d.ts +11 -0
  297. package/dist/components/flip-dialog.js +518 -0
  298. package/dist/components/flip-icon-add-photo.d.ts +11 -0
  299. package/dist/components/flip-icon-add-photo.js +37 -0
  300. package/dist/components/flip-icon-add.d.ts +11 -0
  301. package/dist/components/flip-icon-add.js +37 -0
  302. package/dist/components/flip-icon-admin-panel-settings.d.ts +11 -0
  303. package/dist/components/flip-icon-admin-panel-settings.js +37 -0
  304. package/dist/components/flip-icon-arrow-back.d.ts +11 -0
  305. package/dist/components/flip-icon-arrow-back.js +37 -0
  306. package/dist/components/flip-icon-arrow-forward.d.ts +11 -0
  307. package/dist/components/flip-icon-arrow-forward.js +37 -0
  308. package/dist/components/flip-icon-arrow-right-small.d.ts +11 -0
  309. package/dist/components/flip-icon-arrow-right-small.js +37 -0
  310. package/dist/components/flip-icon-attachment.d.ts +11 -0
  311. package/dist/components/flip-icon-attachment.js +37 -0
  312. package/dist/components/flip-icon-cancel.d.ts +11 -0
  313. package/dist/components/flip-icon-cancel.js +6 -0
  314. package/dist/components/flip-icon-cancel2.js +34 -0
  315. package/dist/components/flip-icon-chat-bubble.d.ts +11 -0
  316. package/dist/components/flip-icon-chat-bubble.js +37 -0
  317. package/dist/components/flip-icon-check-circle.d.ts +11 -0
  318. package/dist/components/flip-icon-check-circle.js +37 -0
  319. package/dist/components/flip-icon-check-small.d.ts +11 -0
  320. package/dist/components/flip-icon-check-small.js +37 -0
  321. package/dist/components/flip-icon-check-strong.d.ts +11 -0
  322. package/dist/components/flip-icon-check-strong.js +6 -0
  323. package/dist/components/flip-icon-check-strong2.js +34 -0
  324. package/dist/components/flip-icon-check.d.ts +11 -0
  325. package/dist/components/flip-icon-check.js +37 -0
  326. package/dist/components/flip-icon-chevron-left.d.ts +11 -0
  327. package/dist/components/flip-icon-chevron-left.js +37 -0
  328. package/dist/components/flip-icon-chevron-right.d.ts +11 -0
  329. package/dist/components/flip-icon-chevron-right.js +37 -0
  330. package/dist/components/flip-icon-close-small.d.ts +11 -0
  331. package/dist/components/flip-icon-close-small.js +37 -0
  332. package/dist/components/flip-icon-close.d.ts +11 -0
  333. package/dist/components/flip-icon-close.js +6 -0
  334. package/dist/components/flip-icon-close2.js +34 -0
  335. package/dist/components/flip-icon-comment.d.ts +11 -0
  336. package/dist/components/flip-icon-comment.js +37 -0
  337. package/dist/components/flip-icon-copy.d.ts +11 -0
  338. package/dist/components/flip-icon-copy.js +37 -0
  339. package/dist/components/flip-icon-date-range.d.ts +11 -0
  340. package/dist/components/flip-icon-date-range.js +37 -0
  341. package/dist/components/flip-icon-delete.d.ts +11 -0
  342. package/dist/components/flip-icon-delete.js +37 -0
  343. package/dist/components/flip-icon-description.d.ts +11 -0
  344. package/dist/components/flip-icon-description.js +37 -0
  345. package/dist/components/flip-icon-download.d.ts +11 -0
  346. package/dist/components/flip-icon-download.js +37 -0
  347. package/dist/components/flip-icon-edit.d.ts +11 -0
  348. package/dist/components/flip-icon-edit.js +37 -0
  349. package/dist/components/flip-icon-emoji-mood.d.ts +11 -0
  350. package/dist/components/flip-icon-emoji-mood.js +37 -0
  351. package/dist/components/flip-icon-emoji-satisfied.d.ts +11 -0
  352. package/dist/components/flip-icon-emoji-satisfied.js +37 -0
  353. package/dist/components/flip-icon-error.d.ts +11 -0
  354. package/dist/components/flip-icon-error.js +6 -0
  355. package/dist/components/flip-icon-error2.js +34 -0
  356. package/dist/components/flip-icon-expand-less.d.ts +11 -0
  357. package/dist/components/flip-icon-expand-less.js +37 -0
  358. package/dist/components/flip-icon-expand-more.d.ts +11 -0
  359. package/dist/components/flip-icon-expand-more.js +37 -0
  360. package/dist/components/flip-icon-file.d.ts +11 -0
  361. package/dist/components/flip-icon-file.js +37 -0
  362. package/dist/components/flip-icon-folder-shared.d.ts +11 -0
  363. package/dist/components/flip-icon-folder-shared.js +37 -0
  364. package/dist/components/flip-icon-group-assign.d.ts +11 -0
  365. package/dist/components/flip-icon-group-assign.js +37 -0
  366. package/dist/components/flip-icon-groups-custom.d.ts +11 -0
  367. package/dist/components/flip-icon-groups-custom.js +37 -0
  368. package/dist/components/flip-icon-groups.d.ts +11 -0
  369. package/dist/components/flip-icon-groups.js +37 -0
  370. package/dist/components/flip-icon-image.d.ts +11 -0
  371. package/dist/components/flip-icon-image.js +37 -0
  372. package/dist/components/flip-icon-info.d.ts +11 -0
  373. package/dist/components/flip-icon-info.js +37 -0
  374. package/dist/components/flip-icon-inventory.d.ts +11 -0
  375. package/dist/components/flip-icon-inventory.js +37 -0
  376. package/dist/components/flip-icon-like.d.ts +11 -0
  377. package/dist/components/flip-icon-like.js +37 -0
  378. package/dist/components/flip-icon-link.d.ts +11 -0
  379. package/dist/components/flip-icon-link.js +37 -0
  380. package/dist/components/flip-icon-lock.d.ts +11 -0
  381. package/dist/components/flip-icon-lock.js +37 -0
  382. package/dist/components/flip-icon-logout.d.ts +11 -0
  383. package/dist/components/flip-icon-logout.js +37 -0
  384. package/dist/components/flip-icon-mail.d.ts +11 -0
  385. package/dist/components/flip-icon-mail.js +37 -0
  386. package/dist/components/flip-icon-manage-accounts.d.ts +11 -0
  387. package/dist/components/flip-icon-manage-accounts.js +37 -0
  388. package/dist/components/flip-icon-mention.d.ts +11 -0
  389. package/dist/components/flip-icon-mention.js +37 -0
  390. package/dist/components/flip-icon-message.d.ts +11 -0
  391. package/dist/components/flip-icon-message.js +37 -0
  392. package/dist/components/flip-icon-more-horizontal.d.ts +11 -0
  393. package/dist/components/flip-icon-more-horizontal.js +37 -0
  394. package/dist/components/flip-icon-more-vertikal.d.ts +11 -0
  395. package/dist/components/flip-icon-more-vertikal.js +37 -0
  396. package/dist/components/flip-icon-notifications-active.d.ts +11 -0
  397. package/dist/components/flip-icon-notifications-active.js +37 -0
  398. package/dist/components/flip-icon-notifications-off.d.ts +11 -0
  399. package/dist/components/flip-icon-notifications-off.js +37 -0
  400. package/dist/components/flip-icon-notifications.d.ts +11 -0
  401. package/dist/components/flip-icon-notifications.js +37 -0
  402. package/dist/components/flip-icon-people-alt.d.ts +11 -0
  403. package/dist/components/flip-icon-people-alt.js +37 -0
  404. package/dist/components/flip-icon-person-off.d.ts +11 -0
  405. package/dist/components/flip-icon-person-off.js +37 -0
  406. package/dist/components/flip-icon-person.d.ts +11 -0
  407. package/dist/components/flip-icon-person.js +6 -0
  408. package/dist/components/flip-icon-person2.js +34 -0
  409. package/dist/components/flip-icon-phone.d.ts +11 -0
  410. package/dist/components/flip-icon-phone.js +37 -0
  411. package/dist/components/flip-icon-poll.d.ts +11 -0
  412. package/dist/components/flip-icon-poll.js +37 -0
  413. package/dist/components/flip-icon-recieved.d.ts +11 -0
  414. package/dist/components/flip-icon-recieved.js +37 -0
  415. package/dist/components/flip-icon-search-strong.d.ts +11 -0
  416. package/dist/components/flip-icon-search-strong.js +37 -0
  417. package/dist/components/flip-icon-search.d.ts +11 -0
  418. package/dist/components/flip-icon-search.js +6 -0
  419. package/dist/components/flip-icon-search2.js +34 -0
  420. package/dist/components/flip-icon-send.d.ts +11 -0
  421. package/dist/components/flip-icon-send.js +37 -0
  422. package/dist/components/flip-icon-settings.d.ts +11 -0
  423. package/dist/components/flip-icon-settings.js +37 -0
  424. package/dist/components/flip-icon-time-filled.d.ts +11 -0
  425. package/dist/components/flip-icon-time-filled.js +37 -0
  426. package/dist/components/flip-icon-time-outlined.d.ts +11 -0
  427. package/dist/components/flip-icon-time-outlined.js +37 -0
  428. package/dist/components/flip-icon-today.d.ts +11 -0
  429. package/dist/components/flip-icon-today.js +37 -0
  430. package/dist/components/flip-icon-user-assign.d.ts +11 -0
  431. package/dist/components/flip-icon-user-assign.js +37 -0
  432. package/dist/components/flip-icon-video-camera.d.ts +11 -0
  433. package/dist/components/flip-icon-video-camera.js +37 -0
  434. package/dist/components/flip-icon-visibility-off.d.ts +11 -0
  435. package/dist/components/flip-icon-visibility-off.js +37 -0
  436. package/dist/components/flip-icon-visibility.d.ts +11 -0
  437. package/dist/components/flip-icon-visibility.js +37 -0
  438. package/dist/components/flip-icon-warning.d.ts +11 -0
  439. package/dist/components/flip-icon-warning.js +37 -0
  440. package/dist/components/flip-inline-error.d.ts +11 -0
  441. package/dist/components/flip-inline-error.js +47 -0
  442. package/dist/components/flip-link.d.ts +11 -0
  443. package/dist/components/flip-link.js +38 -0
  444. package/dist/components/flip-popover.d.ts +11 -0
  445. package/dist/components/flip-popover.js +1580 -0
  446. package/dist/components/flip-radio-group.d.ts +11 -0
  447. package/dist/components/flip-radio-group.js +67 -0
  448. package/dist/components/flip-radio.d.ts +11 -0
  449. package/dist/components/flip-radio.js +66 -0
  450. package/dist/components/flip-search.d.ts +11 -0
  451. package/dist/components/flip-search.js +82 -0
  452. package/dist/components/flip-spinner.d.ts +11 -0
  453. package/dist/components/flip-spinner.js +46 -0
  454. package/dist/components/flip-stack.d.ts +11 -0
  455. package/dist/components/flip-stack.js +6 -0
  456. package/dist/components/flip-stack2.js +47 -0
  457. package/dist/components/flip-switch.d.ts +11 -0
  458. package/dist/components/flip-switch.js +120 -0
  459. package/dist/components/flip-tag.d.ts +11 -0
  460. package/dist/components/flip-tag.js +54 -0
  461. package/dist/components/flip-theme-provider.d.ts +11 -0
  462. package/dist/components/flip-theme-provider.js +387 -0
  463. package/dist/components/flip-thumbnail.d.ts +11 -0
  464. package/dist/components/flip-thumbnail.js +43 -0
  465. package/dist/components/flip-toast-provider.d.ts +11 -0
  466. package/dist/components/flip-toast-provider.js +93 -0
  467. package/dist/components/flip-toast.d.ts +11 -0
  468. package/dist/components/flip-toast.js +6 -0
  469. package/dist/components/flip-toast2.js +78 -0
  470. package/dist/components/flip-tooltip.d.ts +11 -0
  471. package/dist/components/flip-tooltip.js +143 -0
  472. package/dist/components/flip-visually-hidden.d.ts +11 -0
  473. package/dist/components/flip-visually-hidden.js +6 -0
  474. package/dist/components/flip-visually-hidden2.js +31 -0
  475. package/dist/components/index.d.ts +119 -0
  476. package/dist/components/index.js +99 -0
  477. package/dist/components/index2.js +70 -0
  478. package/dist/components/utils.js +26 -0
  479. package/dist/esm/flip-action-list-item.entry.js +20 -0
  480. package/dist/esm/flip-action-list-section.entry.js +15 -0
  481. package/dist/esm/flip-action-list.entry.js +48 -0
  482. package/dist/esm/flip-avatar-group.entry.js +20 -0
  483. package/dist/esm/flip-avatar.entry.js +74 -0
  484. package/dist/esm/flip-badge.entry.js +22 -0
  485. package/dist/esm/flip-banner.entry.js +43 -0
  486. package/dist/esm/flip-button_2.entry.js +54 -0
  487. package/dist/esm/flip-checkbox.entry.js +40 -0
  488. package/dist/esm/flip-chip.entry.js +46 -0
  489. package/dist/esm/flip-description-list-item.entry.js +15 -0
  490. package/dist/esm/flip-description-list.entry.js +15 -0
  491. package/dist/esm/flip-dialog.entry.js +472 -0
  492. package/dist/esm/flip-icon-add-photo.entry.js +16 -0
  493. package/dist/esm/flip-icon-add.entry.js +16 -0
  494. package/dist/esm/flip-icon-admin-panel-settings.entry.js +16 -0
  495. package/dist/esm/flip-icon-arrow-back.entry.js +16 -0
  496. package/dist/esm/flip-icon-arrow-forward.entry.js +16 -0
  497. package/dist/esm/flip-icon-arrow-right-small.entry.js +16 -0
  498. package/dist/esm/flip-icon-attachment.entry.js +16 -0
  499. package/dist/esm/flip-icon-cancel_2.entry.js +29 -0
  500. package/dist/esm/flip-icon-chat-bubble.entry.js +16 -0
  501. package/dist/esm/flip-icon-check-circle.entry.js +16 -0
  502. package/dist/esm/flip-icon-check-small.entry.js +16 -0
  503. package/dist/esm/flip-icon-check-strong.entry.js +16 -0
  504. package/dist/esm/flip-icon-check.entry.js +16 -0
  505. package/dist/esm/flip-icon-chevron-left.entry.js +16 -0
  506. package/dist/esm/flip-icon-chevron-right.entry.js +16 -0
  507. package/dist/esm/flip-icon-close-small.entry.js +16 -0
  508. package/dist/esm/flip-icon-close.entry.js +16 -0
  509. package/dist/esm/flip-icon-comment.entry.js +16 -0
  510. package/dist/esm/flip-icon-copy.entry.js +16 -0
  511. package/dist/esm/flip-icon-date-range.entry.js +16 -0
  512. package/dist/esm/flip-icon-delete.entry.js +16 -0
  513. package/dist/esm/flip-icon-description.entry.js +16 -0
  514. package/dist/esm/flip-icon-download.entry.js +16 -0
  515. package/dist/esm/flip-icon-edit.entry.js +16 -0
  516. package/dist/esm/flip-icon-emoji-mood.entry.js +16 -0
  517. package/dist/esm/flip-icon-emoji-satisfied.entry.js +16 -0
  518. package/dist/esm/flip-icon-error.entry.js +16 -0
  519. package/dist/esm/flip-icon-expand-less.entry.js +16 -0
  520. package/dist/esm/flip-icon-expand-more.entry.js +16 -0
  521. package/dist/esm/flip-icon-file.entry.js +16 -0
  522. package/dist/esm/flip-icon-folder-shared.entry.js +16 -0
  523. package/dist/esm/flip-icon-group-assign.entry.js +16 -0
  524. package/dist/esm/flip-icon-groups-custom.entry.js +16 -0
  525. package/dist/esm/flip-icon-groups.entry.js +16 -0
  526. package/dist/esm/flip-icon-image.entry.js +16 -0
  527. package/dist/esm/flip-icon-info.entry.js +16 -0
  528. package/dist/esm/flip-icon-inventory.entry.js +16 -0
  529. package/dist/esm/flip-icon-like.entry.js +16 -0
  530. package/dist/esm/flip-icon-link.entry.js +16 -0
  531. package/dist/esm/flip-icon-lock.entry.js +16 -0
  532. package/dist/esm/flip-icon-logout.entry.js +16 -0
  533. package/dist/esm/flip-icon-mail.entry.js +16 -0
  534. package/dist/esm/flip-icon-manage-accounts.entry.js +16 -0
  535. package/dist/esm/flip-icon-mention.entry.js +16 -0
  536. package/dist/esm/flip-icon-message.entry.js +16 -0
  537. package/dist/esm/flip-icon-more-horizontal.entry.js +16 -0
  538. package/dist/esm/flip-icon-more-vertikal.entry.js +16 -0
  539. package/dist/esm/flip-icon-notifications-active.entry.js +16 -0
  540. package/dist/esm/flip-icon-notifications-off.entry.js +16 -0
  541. package/dist/esm/flip-icon-notifications.entry.js +16 -0
  542. package/dist/esm/flip-icon-people-alt.entry.js +16 -0
  543. package/dist/esm/flip-icon-person-off.entry.js +16 -0
  544. package/dist/esm/flip-icon-person.entry.js +16 -0
  545. package/dist/esm/flip-icon-phone.entry.js +16 -0
  546. package/dist/esm/flip-icon-poll.entry.js +16 -0
  547. package/dist/esm/flip-icon-recieved.entry.js +16 -0
  548. package/dist/esm/flip-icon-search-strong.entry.js +16 -0
  549. package/dist/esm/flip-icon-send.entry.js +16 -0
  550. package/dist/esm/flip-icon-settings.entry.js +16 -0
  551. package/dist/esm/flip-icon-time-filled.entry.js +16 -0
  552. package/dist/esm/flip-icon-time-outlined.entry.js +16 -0
  553. package/dist/esm/flip-icon-today.entry.js +16 -0
  554. package/dist/esm/flip-icon-user-assign.entry.js +16 -0
  555. package/dist/esm/flip-icon-video-camera.entry.js +16 -0
  556. package/dist/esm/flip-icon-visibility-off.entry.js +16 -0
  557. package/dist/esm/flip-icon-visibility.entry.js +16 -0
  558. package/dist/esm/flip-icon-warning.entry.js +16 -0
  559. package/dist/esm/flip-inline-error.entry.js +19 -0
  560. package/dist/esm/flip-link.entry.js +15 -0
  561. package/dist/esm/flip-popover.entry.js +1554 -0
  562. package/dist/esm/flip-radio-group.entry.js +47 -0
  563. package/dist/esm/flip-radio.entry.js +33 -0
  564. package/dist/esm/flip-search.entry.js +43 -0
  565. package/dist/esm/flip-spinner.entry.js +18 -0
  566. package/dist/esm/flip-stack.entry.js +24 -0
  567. package/dist/esm/flip-switch.entry.js +88 -0
  568. package/dist/esm/flip-tag.entry.js +24 -0
  569. package/dist/esm/flip-theme-provider.entry.js +363 -0
  570. package/dist/esm/flip-thumbnail.entry.js +19 -0
  571. package/dist/esm/flip-toast-provider.entry.js +50 -0
  572. package/dist/esm/flip-toast.entry.js +48 -0
  573. package/dist/esm/flip-tooltip.entry.js +118 -0
  574. package/dist/esm/flip-visually-hidden.entry.js +15 -0
  575. package/dist/esm/index-36517fab.js +1774 -0
  576. package/dist/esm/index-3c78bcaf.js +70 -0
  577. package/dist/esm/index.js +1 -0
  578. package/dist/esm/loader.js +17 -0
  579. package/dist/esm/polyfills/core-js.js +11 -0
  580. package/dist/esm/polyfills/css-shim.js +1 -0
  581. package/dist/esm/polyfills/dom.js +79 -0
  582. package/dist/esm/polyfills/es5-html-element.js +1 -0
  583. package/dist/esm/polyfills/index.js +34 -0
  584. package/dist/esm/polyfills/system.js +6 -0
  585. package/dist/esm/swirl-components.js +17 -0
  586. package/dist/esm/utils-03e3261c.js +26 -0
  587. package/dist/index.cjs.js +1 -0
  588. package/dist/index.js +1 -0
  589. package/dist/swirl-components/index.esm.js +0 -0
  590. package/dist/swirl-components/p-01857435.entry.js +1 -0
  591. package/dist/swirl-components/p-0a9f3ada.entry.js +1 -0
  592. package/dist/swirl-components/p-0d619d62.entry.js +1 -0
  593. package/dist/swirl-components/p-0de885c6.entry.js +1 -0
  594. package/dist/swirl-components/p-0fa4c4cf.entry.js +1 -0
  595. package/dist/swirl-components/p-0fa6b98f.entry.js +1 -0
  596. package/dist/swirl-components/p-102db76d.entry.js +1 -0
  597. package/dist/swirl-components/p-1126e372.entry.js +1 -0
  598. package/dist/swirl-components/p-126ead5f.entry.js +1 -0
  599. package/dist/swirl-components/p-1419666f.entry.js +1 -0
  600. package/dist/swirl-components/p-1429e47a.entry.js +1 -0
  601. package/dist/swirl-components/p-1609dbf3.entry.js +1 -0
  602. package/dist/swirl-components/p-17073db0.entry.js +1 -0
  603. package/dist/swirl-components/p-1853aaf0.entry.js +1 -0
  604. package/dist/swirl-components/p-18965b40.entry.js +1 -0
  605. package/dist/swirl-components/p-18a51976.entry.js +1 -0
  606. package/dist/swirl-components/p-1a9f0bc1.entry.js +1 -0
  607. package/dist/swirl-components/p-1bd3e7c0.entry.js +1 -0
  608. package/dist/swirl-components/p-1c2e8e09.entry.js +1 -0
  609. package/dist/swirl-components/p-1c8b77fe.entry.js +1 -0
  610. package/dist/swirl-components/p-213191cb.entry.js +1 -0
  611. package/dist/swirl-components/p-24d112d7.entry.js +1 -0
  612. package/dist/swirl-components/p-30011711.entry.js +1 -0
  613. package/dist/swirl-components/p-30048d87.js +1 -0
  614. package/dist/swirl-components/p-3234f836.entry.js +1 -0
  615. package/dist/swirl-components/p-32a5e2a7.entry.js +1 -0
  616. package/dist/swirl-components/p-37cfdd8f.js +7 -0
  617. package/dist/swirl-components/p-37d96123.entry.js +1 -0
  618. package/dist/swirl-components/p-3d59d365.entry.js +1 -0
  619. package/dist/swirl-components/p-432dd5f1.entry.js +1 -0
  620. package/dist/swirl-components/p-437842a2.entry.js +1 -0
  621. package/dist/swirl-components/p-453db2cf.entry.js +1 -0
  622. package/dist/swirl-components/p-468d0e9b.entry.js +1 -0
  623. package/dist/swirl-components/p-46f638cf.entry.js +1 -0
  624. package/dist/swirl-components/p-47a9a9cb.entry.js +1 -0
  625. package/dist/swirl-components/p-4f3d8490.entry.js +1 -0
  626. package/dist/swirl-components/p-545caf4a.entry.js +1 -0
  627. package/dist/swirl-components/p-54b9e1b5.entry.js +1 -0
  628. package/dist/swirl-components/p-55aaf1d3.entry.js +1 -0
  629. package/dist/swirl-components/p-56bdede5.entry.js +1 -0
  630. package/dist/swirl-components/p-5a13d6fe.entry.js +1 -0
  631. package/dist/swirl-components/p-5d27a69e.entry.js +1 -0
  632. package/dist/swirl-components/p-63e5b5d9.entry.js +1 -0
  633. package/dist/swirl-components/p-67aaf094.entry.js +1 -0
  634. package/dist/swirl-components/p-67deba9e.entry.js +1 -0
  635. package/dist/swirl-components/p-6a6de48d.entry.js +1 -0
  636. package/dist/swirl-components/p-6a9a0e08.entry.js +1 -0
  637. package/dist/swirl-components/p-6b840e3d.entry.js +1 -0
  638. package/dist/swirl-components/p-6b957569.entry.js +1 -0
  639. package/dist/swirl-components/p-70b255b3.entry.js +1 -0
  640. package/dist/swirl-components/p-7a6b480c.entry.js +1 -0
  641. package/dist/swirl-components/p-828cc4a3.entry.js +1 -0
  642. package/dist/swirl-components/p-8423a1b5.entry.js +1 -0
  643. package/dist/swirl-components/p-8bf1ad8a.entry.js +1 -0
  644. package/dist/swirl-components/p-94d933b3.entry.js +1 -0
  645. package/dist/swirl-components/p-95bd2274.entry.js +1 -0
  646. package/dist/swirl-components/p-9b4a9856.entry.js +1 -0
  647. package/dist/swirl-components/p-9c12d1eb.entry.js +1 -0
  648. package/dist/swirl-components/p-9d07fb5a.entry.js +1 -0
  649. package/dist/swirl-components/p-a1946e3b.entry.js +1 -0
  650. package/dist/swirl-components/p-a203be4a.entry.js +1 -0
  651. package/dist/swirl-components/p-a605b3d1.entry.js +1 -0
  652. package/dist/swirl-components/p-a6fb93df.entry.js +1 -0
  653. package/dist/swirl-components/p-a71261bc.entry.js +1 -0
  654. package/dist/swirl-components/p-aada2b77.entry.js +1 -0
  655. package/dist/swirl-components/p-ad434623.entry.js +1 -0
  656. package/dist/swirl-components/p-adbcf0ae.entry.js +1 -0
  657. package/dist/swirl-components/p-ae504b3e.entry.js +1 -0
  658. package/dist/swirl-components/p-b16d4978.entry.js +1 -0
  659. package/dist/swirl-components/p-b4540264.entry.js +1 -0
  660. package/dist/swirl-components/p-b5cd4041.entry.js +1 -0
  661. package/dist/swirl-components/p-b624ff23.entry.js +1 -0
  662. package/dist/swirl-components/p-b64b6dc5.entry.js +1 -0
  663. package/dist/swirl-components/p-c35a6610.entry.js +1 -0
  664. package/dist/swirl-components/p-c5200740.entry.js +1 -0
  665. package/dist/swirl-components/p-cac72e30.entry.js +1 -0
  666. package/dist/swirl-components/p-cc50d7a7.entry.js +1 -0
  667. package/dist/swirl-components/p-cf8be27a.entry.js +1 -0
  668. package/dist/swirl-components/p-cfef8bdb.entry.js +1 -0
  669. package/dist/swirl-components/p-d1c899ad.entry.js +1 -0
  670. package/dist/swirl-components/p-d3999b94.entry.js +2 -0
  671. package/dist/swirl-components/p-d41e3a37.entry.js +1 -0
  672. package/dist/swirl-components/p-db229451.entry.js +1 -0
  673. package/dist/swirl-components/p-db902aec.entry.js +1 -0
  674. package/dist/swirl-components/p-e0513b73.entry.js +1 -0
  675. package/dist/swirl-components/p-e12fbb2d.js +2 -0
  676. package/dist/swirl-components/p-e1554c48.entry.js +1 -0
  677. package/dist/swirl-components/p-e384bd2c.entry.js +1 -0
  678. package/dist/swirl-components/p-e4df2658.entry.js +1 -0
  679. package/dist/swirl-components/p-e65d2d81.entry.js +1 -0
  680. package/dist/swirl-components/p-e89c7891.entry.js +1 -0
  681. package/dist/swirl-components/p-f1774da0.entry.js +1 -0
  682. package/dist/swirl-components/p-f45709c0.entry.js +1 -0
  683. package/dist/swirl-components/p-f59098f7.entry.js +1 -0
  684. package/dist/swirl-components/p-f6e77552.entry.js +1 -0
  685. package/dist/swirl-components/p-f8273972.entry.js +1 -0
  686. package/dist/swirl-components/p-fa7cc450.entry.js +1 -0
  687. package/dist/swirl-components/p-fb19d8b9.entry.js +1 -0
  688. package/dist/swirl-components/p-ff0868ae.entry.js +1 -0
  689. package/dist/swirl-components/swirl-components.css +2 -0
  690. package/dist/swirl-components/swirl-components.esm.js +1 -0
  691. package/dist/types/components/flip-action-list/flip-action-list.d.ts +13 -0
  692. package/dist/types/components/flip-action-list/flip-action-list.stories.d.ts +13 -0
  693. package/dist/types/components/flip-action-list-item/flip-action-list-item.d.ts +12 -0
  694. package/dist/types/components/flip-action-list-item/flip-action-list-item.stories.d.ts +14 -0
  695. package/dist/types/components/flip-action-list-section/flip-action-list-section.d.ts +7 -0
  696. package/dist/types/components/flip-action-list-section/flip-action-list-section.stories.d.ts +13 -0
  697. package/dist/types/components/flip-avatar/flip-avatar.d.ts +23 -0
  698. package/dist/types/components/flip-avatar/flip-avatar.stories.d.ts +32 -0
  699. package/dist/types/components/flip-avatar-group/flip-avatar-group.d.ts +7 -0
  700. package/dist/types/components/flip-avatar-group/flip-avatar-group.stories.d.ts +23 -0
  701. package/dist/types/components/flip-badge/flip-badge.d.ts +11 -0
  702. package/dist/types/components/flip-badge/flip-badge.stories.d.ts +23 -0
  703. package/dist/types/components/flip-banner/flip-banner.d.ts +18 -0
  704. package/dist/types/components/flip-banner/flip-banner.stories.d.ts +13 -0
  705. package/dist/types/components/flip-button/flip-button.d.ts +24 -0
  706. package/dist/types/components/flip-button/flip-button.stories.d.ts +23 -0
  707. package/dist/types/components/flip-button-group/flip-button-group.d.ts +8 -0
  708. package/dist/types/components/flip-button-group/flip-button-group.stories.d.ts +13 -0
  709. package/dist/types/components/flip-checkbox/flip-checkbox.d.ts +15 -0
  710. package/dist/types/components/flip-checkbox/flip-checkbox.stories.d.ts +19 -0
  711. package/dist/types/components/flip-chip/flip-chip.d.ts +14 -0
  712. package/dist/types/components/flip-chip/flip-chip.stories.d.ts +31 -0
  713. package/dist/types/components/flip-description-list/flip-description-list.d.ts +6 -0
  714. package/dist/types/components/flip-description-list/flip-description-list.stories.d.ts +13 -0
  715. package/dist/types/components/flip-description-list-item/flip-description-list-item.d.ts +7 -0
  716. package/dist/types/components/flip-description-list-item/flip-description-list-item.stories.d.ts +13 -0
  717. package/dist/types/components/flip-dialog/flip-dialog.d.ts +33 -0
  718. package/dist/types/components/flip-dialog/flip-dialog.stories.d.ts +16 -0
  719. package/dist/types/components/flip-icon/flip-icon.stories.d.ts +16 -0
  720. package/dist/types/components/flip-icon/flip-icon.types.d.ts +1 -0
  721. package/dist/types/components/flip-icon/icons/flip-icon-add-photo.d.ts +5 -0
  722. package/dist/types/components/flip-icon/icons/flip-icon-add.d.ts +5 -0
  723. package/dist/types/components/flip-icon/icons/flip-icon-admin-panel-settings.d.ts +5 -0
  724. package/dist/types/components/flip-icon/icons/flip-icon-arrow-back.d.ts +5 -0
  725. package/dist/types/components/flip-icon/icons/flip-icon-arrow-forward.d.ts +5 -0
  726. package/dist/types/components/flip-icon/icons/flip-icon-arrow-right-small.d.ts +5 -0
  727. package/dist/types/components/flip-icon/icons/flip-icon-attachment.d.ts +5 -0
  728. package/dist/types/components/flip-icon/icons/flip-icon-cancel.d.ts +5 -0
  729. package/dist/types/components/flip-icon/icons/flip-icon-chat-bubble.d.ts +5 -0
  730. package/dist/types/components/flip-icon/icons/flip-icon-check-circle.d.ts +5 -0
  731. package/dist/types/components/flip-icon/icons/flip-icon-check-small.d.ts +5 -0
  732. package/dist/types/components/flip-icon/icons/flip-icon-check-strong.d.ts +5 -0
  733. package/dist/types/components/flip-icon/icons/flip-icon-check.d.ts +5 -0
  734. package/dist/types/components/flip-icon/icons/flip-icon-chevron-left.d.ts +5 -0
  735. package/dist/types/components/flip-icon/icons/flip-icon-chevron-right.d.ts +5 -0
  736. package/dist/types/components/flip-icon/icons/flip-icon-close-small.d.ts +5 -0
  737. package/dist/types/components/flip-icon/icons/flip-icon-close.d.ts +5 -0
  738. package/dist/types/components/flip-icon/icons/flip-icon-comment.d.ts +5 -0
  739. package/dist/types/components/flip-icon/icons/flip-icon-copy.d.ts +5 -0
  740. package/dist/types/components/flip-icon/icons/flip-icon-date-range.d.ts +5 -0
  741. package/dist/types/components/flip-icon/icons/flip-icon-delete.d.ts +5 -0
  742. package/dist/types/components/flip-icon/icons/flip-icon-description.d.ts +5 -0
  743. package/dist/types/components/flip-icon/icons/flip-icon-download.d.ts +5 -0
  744. package/dist/types/components/flip-icon/icons/flip-icon-edit.d.ts +5 -0
  745. package/dist/types/components/flip-icon/icons/flip-icon-emoji-mood.d.ts +5 -0
  746. package/dist/types/components/flip-icon/icons/flip-icon-emoji-satisfied.d.ts +5 -0
  747. package/dist/types/components/flip-icon/icons/flip-icon-error.d.ts +5 -0
  748. package/dist/types/components/flip-icon/icons/flip-icon-expand-less.d.ts +5 -0
  749. package/dist/types/components/flip-icon/icons/flip-icon-expand-more.d.ts +5 -0
  750. package/dist/types/components/flip-icon/icons/flip-icon-file.d.ts +5 -0
  751. package/dist/types/components/flip-icon/icons/flip-icon-folder-shared.d.ts +5 -0
  752. package/dist/types/components/flip-icon/icons/flip-icon-group-assign.d.ts +5 -0
  753. package/dist/types/components/flip-icon/icons/flip-icon-groups-custom.d.ts +5 -0
  754. package/dist/types/components/flip-icon/icons/flip-icon-groups.d.ts +5 -0
  755. package/dist/types/components/flip-icon/icons/flip-icon-image.d.ts +5 -0
  756. package/dist/types/components/flip-icon/icons/flip-icon-info.d.ts +5 -0
  757. package/dist/types/components/flip-icon/icons/flip-icon-inventory.d.ts +5 -0
  758. package/dist/types/components/flip-icon/icons/flip-icon-like.d.ts +5 -0
  759. package/dist/types/components/flip-icon/icons/flip-icon-link.d.ts +5 -0
  760. package/dist/types/components/flip-icon/icons/flip-icon-lock.d.ts +5 -0
  761. package/dist/types/components/flip-icon/icons/flip-icon-logout.d.ts +5 -0
  762. package/dist/types/components/flip-icon/icons/flip-icon-mail.d.ts +5 -0
  763. package/dist/types/components/flip-icon/icons/flip-icon-manage-accounts.d.ts +5 -0
  764. package/dist/types/components/flip-icon/icons/flip-icon-mention.d.ts +5 -0
  765. package/dist/types/components/flip-icon/icons/flip-icon-message.d.ts +5 -0
  766. package/dist/types/components/flip-icon/icons/flip-icon-more-horizontal.d.ts +5 -0
  767. package/dist/types/components/flip-icon/icons/flip-icon-more-vertikal.d.ts +5 -0
  768. package/dist/types/components/flip-icon/icons/flip-icon-notifications-active.d.ts +5 -0
  769. package/dist/types/components/flip-icon/icons/flip-icon-notifications-off.d.ts +5 -0
  770. package/dist/types/components/flip-icon/icons/flip-icon-notifications.d.ts +5 -0
  771. package/dist/types/components/flip-icon/icons/flip-icon-people-alt.d.ts +5 -0
  772. package/dist/types/components/flip-icon/icons/flip-icon-person-off.d.ts +5 -0
  773. package/dist/types/components/flip-icon/icons/flip-icon-person.d.ts +5 -0
  774. package/dist/types/components/flip-icon/icons/flip-icon-phone.d.ts +5 -0
  775. package/dist/types/components/flip-icon/icons/flip-icon-poll.d.ts +5 -0
  776. package/dist/types/components/flip-icon/icons/flip-icon-recieved.d.ts +5 -0
  777. package/dist/types/components/flip-icon/icons/flip-icon-search-strong.d.ts +5 -0
  778. package/dist/types/components/flip-icon/icons/flip-icon-search.d.ts +5 -0
  779. package/dist/types/components/flip-icon/icons/flip-icon-send.d.ts +5 -0
  780. package/dist/types/components/flip-icon/icons/flip-icon-settings.d.ts +5 -0
  781. package/dist/types/components/flip-icon/icons/flip-icon-time-filled.d.ts +5 -0
  782. package/dist/types/components/flip-icon/icons/flip-icon-time-outlined.d.ts +5 -0
  783. package/dist/types/components/flip-icon/icons/flip-icon-today.d.ts +5 -0
  784. package/dist/types/components/flip-icon/icons/flip-icon-user-assign.d.ts +5 -0
  785. package/dist/types/components/flip-icon/icons/flip-icon-video-camera.d.ts +5 -0
  786. package/dist/types/components/flip-icon/icons/flip-icon-visibility-off.d.ts +5 -0
  787. package/dist/types/components/flip-icon/icons/flip-icon-visibility.d.ts +5 -0
  788. package/dist/types/components/flip-icon/icons/flip-icon-warning.d.ts +5 -0
  789. package/dist/types/components/flip-inline-error/flip-inline-error.d.ts +6 -0
  790. package/dist/types/components/flip-inline-error/flip-inline-error.stories.d.ts +13 -0
  791. package/dist/types/components/flip-link/flip-link.d.ts +7 -0
  792. package/dist/types/components/flip-link/flip-link.stories.d.ts +13 -0
  793. package/dist/types/components/flip-popover/flip-popover.d.ts +33 -0
  794. package/dist/types/components/flip-popover/flip-popover.stories.d.ts +21 -0
  795. package/dist/types/components/flip-radio/flip-radio.d.ts +15 -0
  796. package/dist/types/components/flip-radio/flip-radio.stories.d.ts +13 -0
  797. package/dist/types/components/flip-radio-group/flip-radio-group.d.ts +11 -0
  798. package/dist/types/components/flip-radio-group/flip-radio-group.stories.d.ts +13 -0
  799. package/dist/types/components/flip-search/flip-search.d.ts +21 -0
  800. package/dist/types/components/flip-search/flip-search.stories.d.ts +13 -0
  801. package/dist/types/components/flip-spinner/flip-spinner.d.ts +6 -0
  802. package/dist/types/components/flip-spinner/flip-spinner.stories.d.ts +13 -0
  803. package/dist/types/components/flip-stack/flip-stack.d.ts +13 -0
  804. package/dist/types/components/flip-stack/flip-stack.stories.d.ts +13 -0
  805. package/dist/types/components/flip-switch/flip-switch.d.ts +23 -0
  806. package/dist/types/components/flip-switch/flip-switch.stories.d.ts +13 -0
  807. package/dist/types/components/flip-tag/flip-tag.d.ts +11 -0
  808. package/dist/types/components/flip-tag/flip-tag.stories.d.ts +13 -0
  809. package/dist/types/components/flip-theme-provider/flip-theme-provider.d.ts +51 -0
  810. package/dist/types/components/flip-theme-provider/flip-theme-provider.stories.d.ts +17 -0
  811. package/dist/types/components/flip-thumbnail/flip-thumbnail.d.ts +9 -0
  812. package/dist/types/components/flip-thumbnail/flip-thumbnail.stories.d.ts +13 -0
  813. package/dist/types/components/flip-toast/flip-toast.d.ts +19 -0
  814. package/dist/types/components/flip-toast/flip-toast.stories.d.ts +23 -0
  815. package/dist/types/components/flip-toast-provider/flip-toast-provider.d.ts +43 -0
  816. package/dist/types/components/flip-toast-provider/flip-toast-provider.stories.d.ts +16 -0
  817. package/dist/types/components/flip-tooltip/flip-tooltip.d.ts +28 -0
  818. package/dist/types/components/flip-tooltip/flip-tooltip.stories.d.ts +14 -0
  819. package/dist/types/components/flip-visually-hidden/flip-visually-hidden.d.ts +3 -0
  820. package/dist/types/components/flip-visually-hidden/flip-visually-hidden.stories.d.ts +13 -0
  821. package/dist/types/components.d.ts +1809 -0
  822. package/dist/types/index.d.ts +1 -0
  823. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  824. package/dist/types/utils.d.ts +4 -0
  825. package/loader/cdn.js +3 -0
  826. package/loader/index.cjs.js +3 -0
  827. package/loader/index.d.ts +12 -0
  828. package/loader/index.es2017.js +3 -0
  829. package/loader/index.js +4 -0
  830. package/loader/package.json +10 -0
  831. package/package.json +82 -0
  832. package/vscode-data.json +2041 -0
@@ -0,0 +1,47 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-36517fab.js';
2
+
3
+ const flipRadioGroupCss = ".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)}";
4
+
5
+ const FlipRadioGroup = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.valueChange = createEvent(this, "valueChange", 7);
9
+ }
10
+ componentDidLoad() {
11
+ this.radioButtons = Array.from(this.el.querySelectorAll("flip-radio"));
12
+ this.initValue();
13
+ this.handleValueChanges();
14
+ }
15
+ initValue() {
16
+ if (this.value === undefined) {
17
+ return;
18
+ }
19
+ const radioWithValue = this.radioButtons.find((radio) => radio.value === this.value);
20
+ if (!Boolean(radioWithValue)) {
21
+ return;
22
+ }
23
+ radioWithValue.checked = true;
24
+ }
25
+ handleValueChanges() {
26
+ for (const [key, radio] of Object.entries(this.radioButtons)) {
27
+ radio.addEventListener("valueChange", () => {
28
+ if (radio.checked === true || radio.checked === "true") {
29
+ this.valueChange.emit(radio.value);
30
+ this.radioButtons.forEach((r, k) => {
31
+ if (String(k) === key) {
32
+ return;
33
+ }
34
+ r.checked = false;
35
+ });
36
+ }
37
+ });
38
+ }
39
+ }
40
+ render() {
41
+ return (h(Host, { role: "radiogroup" }, h("div", { class: "radio-group" }, h("slot", null))));
42
+ }
43
+ get el() { return getElement(this); }
44
+ };
45
+ FlipRadioGroup.style = flipRadioGroupCss;
46
+
47
+ export { FlipRadioGroup as flip_radio_group };
@@ -0,0 +1,33 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-36517fab.js';
2
+ import { c as classnames } from './index-3c78bcaf.js';
3
+
4
+ const flipRadioCss = ".sc-flip-radio-h{display:inline-flex}.sc-flip-radio-h *.sc-flip-radio{box-sizing:border-box}.radio.sc-flip-radio{display:inline-flex;cursor:pointer;line-height:var(--s-line-height-base)}.radio.sc-flip-radio:focus-within .radio__box.sc-flip-radio{box-shadow:0 0 0 0.0625rem var(--s-background-default),\n 0 0 0 0.1875rem var(--s-focus-default)}.radio--checked.sc-flip-radio .radio__control.sc-flip-radio:hover .radio__box.sc-flip-radio{border-color:var(--s-interactive-primary-hovered);background-color:var(--s-interactive-primary-hovered)}.radio--checked.sc-flip-radio .radio__box.sc-flip-radio{position:relative;border-color:var(--s-icon-highlight);background-color:var(--s-icon-highlight)}.radio--checked.sc-flip-radio .radio__box.sc-flip-radio:after{position:absolute;top:50%;left:50%;width:0.5rem;height:0.5rem;border-radius:50%;background-color:var(--s-background-default);content:\"\";transform:translate3d(-50%, -50%, 0)}.radio--invalid.radio--checked.sc-flip-radio .radio__box.sc-flip-radio,.radio--invalid.radio--indeterminate.sc-flip-radio .radio__box.sc-flip-radio{background-color:var(--s-icon-critical)}.radio--invalid.sc-flip-radio .radio__box.sc-flip-radio{border-color:var(--s-icon-critical)}.radio--disabled.sc-flip-radio{cursor:default}.radio--disabled.radio--checked.sc-flip-radio .radio__control.sc-flip-radio:hover .radio__box.sc-flip-radio{border-color:var(--s-icon-disabled);background-color:transparent}.radio--disabled.radio--checked.sc-flip-radio .radio__box.sc-flip-radio{border-color:var(--s-icon-disabled);background-color:var(--s-background-default)}.radio--disabled.radio--checked.sc-flip-radio .radio__box.sc-flip-radio:after{background-color:var(--s-icon-disabled)}.radio--disabled.sc-flip-radio .radio__control.sc-flip-radio:hover .radio__box.sc-flip-radio{background-color:transparent}.radio--disabled.sc-flip-radio .radio__box.sc-flip-radio{border-color:var(--s-icon-disabled);backround-color:var(--s-icon-disabled)}.radio--disabled.sc-flip-radio .radio__description.sc-flip-radio,.radio--disabled.sc-flip-radio .radio__label.sc-flip-radio{color:var(--s-text-disabled)}.radio__control.sc-flip-radio{position:relative;display:inline-flex;width:1.5rem;height:1.5rem;padding:var(--s-space-2);flex-shrink:0}.radio__control.sc-flip-radio:hover .radio__box.sc-flip-radio{background-color:var(--s-action-neutral-hovered)}.radio__box.sc-flip-radio{position:relative;display:flex;width:100%;height:100%;justify-content:center;align-items:center;border:0.125rem solid var(--s-icon-default);border-radius:50%}.radio__label-container.sc-flip-radio{display:inline-flex;margin-left:var(--s-space-12);padding-top:var(--s-space-2);flex-direction:column}.radio__label.sc-flip-radio{font-weight:var(--s-font-weight-medium)}.radio__description.sc-flip-radio{color:var(--s-text-subdued)}";
5
+
6
+ const FlipRadio = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.valueChange = createEvent(this, "valueChange", 7);
10
+ this.checked = false;
11
+ this.disabled = false;
12
+ this.onChange = () => {
13
+ this.checked = true;
14
+ this.valueChange.emit(this.value);
15
+ };
16
+ }
17
+ render() {
18
+ const unchecked = this.checked === false || this.checked === "false";
19
+ const checked = this.checked === true || this.checked === "true";
20
+ const ariaCheckedLabel = checked ? "true" : unchecked ? "false" : "mixed";
21
+ const ariaInvalid = this.invalid;
22
+ const className = classnames("radio", {
23
+ "radio--checked": checked,
24
+ "radio--disabled": this.disabled,
25
+ "radio--invalid": this.invalid,
26
+ "radio--unchecked": unchecked,
27
+ });
28
+ return (h(Host, null, h("label", { class: className, htmlFor: this.inputId }, h("span", { class: "radio__control" }, h("flip-visually-hidden", null, h("input", { "aria-checked": ariaCheckedLabel, "aria-invalid": ariaInvalid, checked: checked, class: "radio__input", disabled: this.disabled, id: this.inputId, name: this.inputName, onChange: this.onChange, type: "radio", value: this.value })), h("span", { "aria-hidden": "true", class: "radio__box" })), h("span", { class: "radio__label-container" }, this.label && h("span", { class: "radio__label" }, this.label), this.description && (h("span", { class: "radio__description" }, this.description))))));
29
+ }
30
+ };
31
+ FlipRadio.style = flipRadioCss;
32
+
33
+ export { FlipRadio as flip_radio };
@@ -0,0 +1,43 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-36517fab.js';
2
+ import { c as classnames } from './index-3c78bcaf.js';
3
+
4
+ const flipSearchCss = ".sc-flip-search-h{display:flex;width:100%}.sc-flip-search-h *.sc-flip-search{box-sizing:border-box}.search.sc-flip-search{position:relative;display:flex;width:100%}.search--disabled.sc-flip-search .search__icon.sc-flip-search{color:var(--s-icon-disabled)}.search--disabled.sc-flip-search .search__input.sc-flip-search{color:var(--s-text-disabled)}.search--disabled.sc-flip-search .search__input.sc-flip-search::-moz-placeholder{color:var(--s-text-disabled)}.search--disabled.sc-flip-search .search__input.sc-flip-search::placeholder{color:var(--s-text-disabled)}.search__icon.sc-flip-search{position:absolute;top:50%;left:var(--s-space-12);display:inline-flex;color:var(--s-icon-default);transform:translateY(-50%)}.search__input.sc-flip-search{width:100%;height:2.5rem;padding-top:var(--s-space-8);padding-right:calc(var(--s-space-12) + 1.5rem + var(--s-space-8));padding-bottom:var(--s-space-8);padding-left:calc(var(--s-space-12) + 1.5rem + var(--s-space-8));border:none;border-radius:var(--s-border-radius-base);color:var(--s-text-default);background-color:var(--s-surface-raised-default);font:inherit;line-height:var(--s-line-height-base);caret-color:var(--s-border-highlight)}.search__input.sc-flip-search:focus{outline-color:var(--s-focus-default)}.search__input.sc-flip-search::-moz-placeholder{color:var(--s-text-subdued)}.search__input.sc-flip-search::placeholder{color:var(--s-text-subdued)}.search__input.sc-flip-search::-webkit-search-decoration,.search__input.sc-flip-search::-webkit-search-cancel-button,.search__input.sc-flip-search::-webkit-search-results-button,.search__input.sc-flip-search::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.search__input.sc-flip-search:not(:-moz-placeholder-shown)+.search__clear-button.sc-flip-search{display:inline-flex}.search__input.sc-flip-search:not(:placeholder-shown)+.search__clear-button.sc-flip-search{display:inline-flex}.search__clear-button.sc-flip-search{position:absolute;top:50%;right:var(--s-space-12);display:none;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer;transform:translateY(-50%)}";
5
+
6
+ const FlipSearch = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.inputBlur = createEvent(this, "inputBlur", 7);
10
+ this.inputFocus = createEvent(this, "inputFocus", 7);
11
+ this.valueChange = createEvent(this, "valueChange", 7);
12
+ this.clearButtonLabel = "Clear search term";
13
+ this.placeholder = "Search …";
14
+ this.clear = () => {
15
+ this.input.value = "";
16
+ this.input.focus();
17
+ };
18
+ this.onBlur = (event) => {
19
+ this.inputBlur.emit(event);
20
+ };
21
+ this.onChange = (event) => {
22
+ this.valueChange.emit(event.target.value);
23
+ };
24
+ this.onFocus = (event) => {
25
+ this.inputFocus.emit(event);
26
+ };
27
+ }
28
+ onKeyDown(event) {
29
+ if ((event.code === "KeyK" || event.code === "Slash") &&
30
+ (event.ctrlKey || event.metaKey)) {
31
+ this.input.focus();
32
+ }
33
+ }
34
+ render() {
35
+ const className = classnames("search", {
36
+ "search--disabled": this.disabled,
37
+ });
38
+ return (h(Host, null, h("span", { class: className }, h("flip-icon-search", { class: "search__icon" }), h("input", { "aria-disabled": this.disabled ? "true" : undefined, "aria-label": this.label, autoComplete: "off", autoFocus: this.autoFocus, class: "search__input", disabled: this.disabled, id: this.inputId, inputMode: "search", name: this.inputName, onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, placeholder: this.placeholder, ref: (el) => (this.input = el), type: "search", value: this.value }), !this.disabled && (h("button", { "aria-label": this.clearButtonLabel, class: "search__clear-button", onClick: this.clear, type: "button" }, h("flip-icon-cancel", null))))));
39
+ }
40
+ };
41
+ FlipSearch.style = flipSearchCss;
42
+
43
+ export { FlipSearch as flip_search };
@@ -0,0 +1,18 @@
1
+ import { r as registerInstance, h, H as Host } from './index-36517fab.js';
2
+ import { c as classnames } from './index-3c78bcaf.js';
3
+
4
+ const flipSpinnerCss = ":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}}";
5
+
6
+ const FlipSpinner = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.size = "m";
10
+ }
11
+ render() {
12
+ const className = classnames("spinner", `spinner--size-${this.size}`);
13
+ return (h(Host, null, h("span", { class: className, role: Boolean(this.label) ? "status" : undefined }, h("svg", { "aria-hidden": "true", class: "spinner__indicator", focusable: "false", viewBox: "0 0 50 50" }, h("circle", { class: "spinner__background", cx: "25", cy: "25", r: "20", fill: "none", "stroke-width": "4" }), h("circle", { class: "spinner__circle", cx: "25", cy: "25", r: "20", fill: "none", "stroke-width": "4" })), this.label && (h("flip-visually-hidden", null, h("span", { class: "spinner__label" }, this.label))))));
14
+ }
15
+ };
16
+ FlipSpinner.style = flipSpinnerCss;
17
+
18
+ export { FlipSpinner as flip_spinner };
@@ -0,0 +1,24 @@
1
+ import { r as registerInstance, h, H as Host } from './index-36517fab.js';
2
+ import { c as classnames } from './index-3c78bcaf.js';
3
+
4
+ const flipStackCss = ":host{display:block;width:100%}:host *{box-sizing:border-box}.stack{display:flex;width:100%;max-width:100%}.stack ::slotted(*){min-width:0;max-width:100%;flex-basis:auto;flex-grow:0;flex-shrink:0}.stack--align-start{align-items:flex-start}.stack--align-center{align-items:center}.stack--align-end{align-items:flex-end}.stack--align-stretch{align-items:stretch}.stack--justify-start{justify-content:flex-start}.stack--justify-center{justify-content:center}.stack--justify-end{justify-content:flex-end}.stack--justify-space-between{justify-content:space-between}.stack--justify-space-around{justify-content:space-around}.stack--justify-space-evenly{justify-content:space-evenly}.stack--justify-stretch{justify-content:stretch}.stack--justify-stretch ::slotted(*){flex-grow:1}.stack--orientation-vertical{flex-direction:column}.stack--orientation-horizontal{flex-direction:row}.stack--wrap{flex-wrap:wrap}";
5
+
6
+ const FlipStack = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.align = "start";
10
+ this.as = "div";
11
+ this.justify = "start";
12
+ this.orientation = "vertical";
13
+ this.spacing = "0";
14
+ this.wrap = false;
15
+ }
16
+ render() {
17
+ const Tag = this.as;
18
+ const className = classnames("stack", `stack--align-${this.align}`, `stack--justify-${this.justify}`, `stack--orientation-${this.orientation}`, { "stack--wrap": this.wrap });
19
+ return (h(Host, null, h(Tag, { class: className, style: { gap: `var(--s-space-${this.spacing})` } }, h("slot", null))));
20
+ }
21
+ };
22
+ FlipStack.style = flipStackCss;
23
+
24
+ export { FlipStack as flip_stack };
@@ -0,0 +1,88 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-36517fab.js';
2
+ import { c as classnames } from './index-3c78bcaf.js';
3
+
4
+ const flipSwitchCss = ".sc-flip-switch-h{display:inline-flex}.sc-flip-switch-h *.sc-flip-switch{box-sizing:border-box}.switch.sc-flip-switch{display:inline-flex;align-items:center;touch-action:none}.switch.sc-flip-switch:focus-within .switch__control.sc-flip-switch{box-shadow:0 0 0 0.0625rem var(--s-background-default),\n 0 0 0 0.1875rem var(--s-focus-default)}.switch--size-m.sc-flip-switch .switch__control.sc-flip-switch{width:2.75rem;height:1.5rem;border-radius:calc(1.5rem / 2)}.switch--size-m.sc-flip-switch .switch__thumb.sc-flip-switch{width:1.25rem;height:1.25rem}.switch--on.switch--size-m.sc-flip-switch .switch__thumb.sc-flip-switch{left:calc(100% - 1.25rem - var(--s-space-2))}.switch--on.sc-flip-switch .switch__control.sc-flip-switch{background-color:var(--s-interactive-primary-default)}.switch--on.sc-flip-switch .switch__thumb.sc-flip-switch{left:calc(100% - 0.875rem - var(--s-space-2))}.switch--disabled.sc-flip-switch .switch__control.sc-flip-switch{background-color:var(--s-interactive-primary-disabled);cursor:default}.switch--disabled.sc-flip-switch .switch__thumb.sc-flip-switch{background-color:var(--s-interactive-neutral-default)}.switch--disabled.sc-flip-switch .switch__label.sc-flip-switch{color:var(--s-text-disabled)}.switch__control.sc-flip-switch{position:relative;width:1.875rem;height:1.125rem;flex-shrink:0;border-radius:calc(1.125rem / 2);background-color:var(--s-interactive-primary-disabled);cursor:pointer;transition:background-color 0.2s}@media (prefers-reduced-motion){.switch__control.sc-flip-switch{transition:none}}.switch__thumb.sc-flip-switch{position:absolute;top:var(--s-space-2);left:var(--s-space-2);width:0.875rem;height:0.875rem;border-radius:50%;background-color:var(--s-surface-default);transition:left 0.2s;pointer-events:none}@media (prefers-reduced-motion){.switch__thumb.sc-flip-switch{transition:none}}.switch__label.sc-flip-switch{position:relative;z-index:1;margin-left:var(--s-space-12);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base)}";
5
+
6
+ const FlipSwitch = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.valueChange = createEvent(this, "valueChange", 7);
10
+ this.checked = false;
11
+ this.disabled = false;
12
+ this.size = "m";
13
+ this.dragging = false;
14
+ this.recentlyDragged = false;
15
+ this.onChange = () => {
16
+ if (this.dragging) {
17
+ return;
18
+ }
19
+ if (this.recentlyDragged) {
20
+ this.recentlyDragged = false;
21
+ return;
22
+ }
23
+ this.checked = !this.checked;
24
+ this.valueChange.emit(this.checked);
25
+ };
26
+ this.onStartDrag = () => {
27
+ if (this.disabled) {
28
+ return;
29
+ }
30
+ this.dragging = true;
31
+ this.thumb.style.transition = "none";
32
+ };
33
+ this.onEndDrag = () => {
34
+ if (this.disabled) {
35
+ return;
36
+ }
37
+ if (this.recentlyDragged) {
38
+ const controlBonds = this.control.getBoundingClientRect();
39
+ const thumbBounds = this.thumb.getBoundingClientRect();
40
+ const on = this.thumb.offsetLeft + thumbBounds.width / 2 > controlBonds.width / 2;
41
+ if (this.checked !== on) {
42
+ this.checked = on;
43
+ this.valueChange.emit(on);
44
+ }
45
+ }
46
+ this.thumb.style.left = "";
47
+ this.thumb.style.transition = "";
48
+ this.dragging = false;
49
+ setTimeout(() => {
50
+ this.recentlyDragged = false;
51
+ });
52
+ };
53
+ this.onDrag = (event) => {
54
+ if (!this.dragging) {
55
+ return;
56
+ }
57
+ this.recentlyDragged = true;
58
+ const controlBonds = this.control.getBoundingClientRect();
59
+ const thumbBounds = this.thumb.getBoundingClientRect();
60
+ let pos = Math.round(event.offsetX - thumbBounds.width / 2);
61
+ if (pos < 0) {
62
+ pos = 0;
63
+ }
64
+ if (pos > Math.round(controlBonds.width - thumbBounds.width)) {
65
+ pos = Math.round(controlBonds.width - thumbBounds.width);
66
+ }
67
+ this.thumb.style.left = `${pos}px`;
68
+ };
69
+ }
70
+ onWindowPointerUp() {
71
+ this.onEndDrag();
72
+ }
73
+ render() {
74
+ const off = !this.checked;
75
+ const on = this.checked;
76
+ const ariaCheckedLabel = on ? "true" : "false";
77
+ const className = classnames("switch", `switch--size-${this.size}`, {
78
+ "switch--off": off,
79
+ "switch--on": on,
80
+ "switch--disabled": this.disabled,
81
+ });
82
+ return (h(Host, null, h("label", { class: className, htmlFor: this.inputId }, h("span", { class: "switch__control", onPointerDown: this.onStartDrag, onPointerMove: this.onDrag, onPointerUp: this.onEndDrag, ref: (el) => (this.control = el) }, h("flip-visually-hidden", null, h("input", { "aria-checked": ariaCheckedLabel, checked: on, class: "switch__input", disabled: this.disabled, id: this.inputId, name: this.inputName, onChange: this.onChange, role: "switch", type: "checkbox", value: this.value })), h("span", { "aria-hidden": "true", class: "switch__thumb", ref: (el) => (this.thumb = el) })), this.label && h("span", { class: "switch__label" }, this.label))));
83
+ }
84
+ get el() { return getElement(this); }
85
+ };
86
+ FlipSwitch.style = flipSwitchCss;
87
+
88
+ export { FlipSwitch as flip_switch };
@@ -0,0 +1,24 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-36517fab.js';
2
+ import { c as classnames } from './index-3c78bcaf.js';
3
+
4
+ const flipTagCss = ":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);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{outline-color:var(--s-focus-default)}";
5
+
6
+ const FlipTag = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.remove = createEvent(this, "remove", 7);
10
+ this.intent = "default";
11
+ this.removalButtonLabel = "Remove";
12
+ this.onRemove = (event) => {
13
+ var _a;
14
+ (_a = this.remove) === null || _a === void 0 ? void 0 : _a.emit(event);
15
+ };
16
+ }
17
+ render() {
18
+ const className = classnames("tag", `tag--intent-${this.intent}`);
19
+ return (h(Host, null, h("span", { class: className }, this.label, this.removable && (h("button", { "aria-label": this.removalButtonLabel, class: "tag__removal-button", onClick: this.onRemove, type: "button" }, h("flip-icon-close", { size: 16 }))))));
20
+ }
21
+ };
22
+ FlipTag.style = flipTagCss;
23
+
24
+ export { FlipTag as flip_tag };
@@ -0,0 +1,363 @@
1
+ import { r as registerInstance, h, H as Host } from './index-36517fab.js';
2
+
3
+ /**
4
+ * A simple guard function:
5
+ *
6
+ * ```js
7
+ * Math.min(Math.max(low, value), high)
8
+ * ```
9
+ */
10
+ function guard(low, high, value) {
11
+ return Math.min(Math.max(low, value), high);
12
+ }
13
+
14
+ class ColorError extends Error {
15
+ constructor(color) {
16
+ super(`Failed to parse color: "${color}"`);
17
+ }
18
+
19
+ }
20
+
21
+ var ColorError$1 = ColorError;
22
+
23
+ /**
24
+ * Parses a color into red, gree, blue, alpha parts
25
+ *
26
+ * @param color the input color. Can be a RGB, RBGA, HSL, HSLA, or named color
27
+ */
28
+
29
+ function parseToRgba(color) {
30
+ if (typeof color !== 'string') throw new ColorError$1(color);
31
+ if (color.trim().toLowerCase() === 'transparent') return [0, 0, 0, 0];
32
+ let normalizedColor = color.trim();
33
+ normalizedColor = namedColorRegex.test(color) ? nameToHex(color) : color;
34
+ const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
35
+
36
+ if (reducedHexMatch) {
37
+ const arr = Array.from(reducedHexMatch).slice(1);
38
+ return [...arr.slice(0, 3).map(x => parseInt(r(x, 2), 16)), parseInt(r(arr[3] || 'f', 2), 16) / 255];
39
+ }
40
+
41
+ const hexMatch = hexRegex.exec(normalizedColor);
42
+
43
+ if (hexMatch) {
44
+ const arr = Array.from(hexMatch).slice(1);
45
+ return [...arr.slice(0, 3).map(x => parseInt(x, 16)), parseInt(arr[3] || 'ff', 16) / 255];
46
+ }
47
+
48
+ const rgbaMatch = rgbaRegex.exec(normalizedColor);
49
+
50
+ if (rgbaMatch) {
51
+ const arr = Array.from(rgbaMatch).slice(1);
52
+ return [...arr.slice(0, 3).map(x => parseInt(x, 10)), parseFloat(arr[3] || '1')];
53
+ }
54
+
55
+ const hslaMatch = hslaRegex.exec(normalizedColor);
56
+
57
+ if (hslaMatch) {
58
+ const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
59
+ if (guard(0, 100, s) !== s) throw new ColorError$1(color);
60
+ if (guard(0, 100, l) !== l) throw new ColorError$1(color);
61
+ return [...hslToRgb(h, s, l), a || 1];
62
+ }
63
+
64
+ throw new ColorError$1(color);
65
+ }
66
+
67
+ function hash(str) {
68
+ let hash = 5381;
69
+ let i = str.length;
70
+
71
+ while (i) {
72
+ hash = hash * 33 ^ str.charCodeAt(--i);
73
+ }
74
+ /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
75
+ * integers. Since we want the results to be always positive, convert the
76
+ * signed int to an unsigned by doing an unsigned bitshift. */
77
+
78
+
79
+ return (hash >>> 0) % 2341;
80
+ }
81
+
82
+ const colorToInt = x => parseInt(x.replace(/_/g, ''), 36);
83
+
84
+ const compressedColorMap = '1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce((acc, next) => {
85
+ const key = colorToInt(next.substring(0, 3));
86
+ const hex = colorToInt(next.substring(3)).toString(16); // NOTE: padStart could be used here but it breaks Node 6 compat
87
+ // https://github.com/ricokahler/color2k/issues/351
88
+
89
+ let prefix = '';
90
+
91
+ for (let i = 0; i < 6 - hex.length; i++) {
92
+ prefix += '0';
93
+ }
94
+
95
+ acc[key] = `${prefix}${hex}`;
96
+ return acc;
97
+ }, {});
98
+ /**
99
+ * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.
100
+ */
101
+
102
+ function nameToHex(color) {
103
+ const normalizedColorName = color.toLowerCase().trim();
104
+ const result = compressedColorMap[hash(normalizedColorName)];
105
+ if (!result) throw new ColorError$1(color);
106
+ return `#${result}`;
107
+ }
108
+
109
+ const r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');
110
+
111
+ const reducedHexRegex = new RegExp(`^#${r('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');
112
+ const hexRegex = new RegExp(`^#${r('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');
113
+ const rgbaRegex = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r(',\\s*(\\d+)\\s*', 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, 'i');
114
+ const hslaRegex = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;
115
+ const namedColorRegex = /^[a-z]+$/i;
116
+
117
+ const roundColor = color => {
118
+ return Math.round(color * 255);
119
+ };
120
+
121
+ const hslToRgb = (hue, saturation, lightness) => {
122
+ let l = lightness / 100;
123
+
124
+ if (saturation === 0) {
125
+ // achromatic
126
+ return [l, l, l].map(roundColor);
127
+ } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
128
+
129
+
130
+ const huePrime = (hue % 360 + 360) % 360 / 60;
131
+ const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);
132
+ const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
133
+ let red = 0;
134
+ let green = 0;
135
+ let blue = 0;
136
+
137
+ if (huePrime >= 0 && huePrime < 1) {
138
+ red = chroma;
139
+ green = secondComponent;
140
+ } else if (huePrime >= 1 && huePrime < 2) {
141
+ red = secondComponent;
142
+ green = chroma;
143
+ } else if (huePrime >= 2 && huePrime < 3) {
144
+ green = chroma;
145
+ blue = secondComponent;
146
+ } else if (huePrime >= 3 && huePrime < 4) {
147
+ green = secondComponent;
148
+ blue = chroma;
149
+ } else if (huePrime >= 4 && huePrime < 5) {
150
+ red = secondComponent;
151
+ blue = chroma;
152
+ } else if (huePrime >= 5 && huePrime < 6) {
153
+ red = chroma;
154
+ blue = secondComponent;
155
+ }
156
+
157
+ const lightnessModification = l - chroma / 2;
158
+ const finalRed = red + lightnessModification;
159
+ const finalGreen = green + lightnessModification;
160
+ const finalBlue = blue + lightnessModification;
161
+ return [finalRed, finalGreen, finalBlue].map(roundColor);
162
+ };
163
+
164
+ // taken from:
165
+ /**
166
+ * Parses a color in hue, saturation, lightness, and the alpha channel.
167
+ *
168
+ * Hue is a number between 0 and 360, saturation, lightness, and alpha are
169
+ * decimal percentages between 0 and 1
170
+ */
171
+
172
+ function parseToHsla(color) {
173
+ const [red, green, blue, alpha] = parseToRgba(color).map((value, index) => // 3rd index is alpha channel which is already normalized
174
+ index === 3 ? value : value / 255);
175
+ const max = Math.max(red, green, blue);
176
+ const min = Math.min(red, green, blue);
177
+ const lightness = (max + min) / 2; // achromatic
178
+
179
+ if (max === min) return [0, 0, lightness, alpha];
180
+ const delta = max - min;
181
+ const saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
182
+ const hue = 60 * (red === max ? (green - blue) / delta + (green < blue ? 6 : 0) : green === max ? (blue - red) / delta + 2 : (red - green) / delta + 4);
183
+ return [hue, saturation, lightness, alpha];
184
+ }
185
+
186
+ /**
187
+ * Takes in hsla parts and constructs an hsla string
188
+ *
189
+ * @param hue The color circle (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue
190
+ * @param saturation Percentage of saturation, given as a decimal between 0 and 1
191
+ * @param lightness Percentage of lightness, given as a decimal between 0 and 1
192
+ * @param alpha Percentage of opacity, given as a decimal between 0 and 1
193
+ */
194
+
195
+ function hsla(hue, saturation, lightness, alpha) {
196
+ return `hsla(${(hue % 360).toFixed()}, ${guard(0, 100, saturation * 100).toFixed()}%, ${guard(0, 100, lightness * 100).toFixed()}%, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;
197
+ }
198
+
199
+ /**
200
+ * Takes in rgba parts and returns an rgba string
201
+ *
202
+ * @param red The amount of red in the red channel, given in a number between 0 and 255 inclusive
203
+ * @param green The amount of green in the red channel, given in a number between 0 and 255 inclusive
204
+ * @param blue The amount of blue in the red channel, given in a number between 0 and 255 inclusive
205
+ * @param alpha Percentage of opacity, given as a decimal between 0 and 1
206
+ */
207
+
208
+ function rgba(red, green, blue, alpha) {
209
+ return `rgba(${guard(0, 255, red).toFixed()}, ${guard(0, 255, green).toFixed()}, ${guard(0, 255, blue).toFixed()}, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;
210
+ }
211
+
212
+ /**
213
+ * Takes in any color and returns it as an rgba string.
214
+ */
215
+
216
+ function toRgba(color) {
217
+ return rgba(...parseToRgba(color));
218
+ }
219
+
220
+ const flipThemeProviderCss = ".sc-flip-theme-provider-h{display:block}";
221
+
222
+ const preferredThemeStorageKey = "flip-preferred-theme";
223
+ const tenantColorMapping = {
224
+ "--s-action-primary-default": "primary",
225
+ "--s-action-primary-hovered": "primaryHovered",
226
+ "--s-action-primary-pressed": "primaryPressed",
227
+ "--s-text-on-action-primary": "primaryContrast",
228
+ "--s-icon-on-action-primary": "primaryContrast",
229
+ "--s-surface-highlight-default": "secondary",
230
+ "--s-surface-highlight-hovered": "secondaryHovered",
231
+ "--s-surface-highlight-pressed": "secondaryPressed",
232
+ "--s-on-surface-highlight-default": "secondaryHovered",
233
+ "--s-text-on-surface-highlight": "secondaryContrast",
234
+ "--s-icon-on-surface-highlight": "secondaryContrast",
235
+ "--s-text-highlight": "text",
236
+ "--s-interactive-primary-default": "text",
237
+ "--s-interactive-primary-hovered": "textHovered",
238
+ "--s-interactive-primary-pressed": "textPressed",
239
+ };
240
+ const FlipThemeProvider = class {
241
+ constructor(hostRef) {
242
+ registerInstance(this, hostRef);
243
+ }
244
+ componentWillLoad() {
245
+ this.resolveConfig();
246
+ this.determineOSTheme();
247
+ this.updateAppTheme();
248
+ }
249
+ watchConfig() {
250
+ this.resolveConfig();
251
+ this.determineOSTheme();
252
+ this.updateAppTheme();
253
+ }
254
+ /**
255
+ * Returns the active app theme.
256
+ * @returns FlipTheme
257
+ */
258
+ async getActiveTheme() {
259
+ return this.appTheme;
260
+ }
261
+ /**
262
+ * Returns the user's preferred theme stored in local storage.
263
+ * @returns FlipTheme
264
+ */
265
+ async getPreferredTheme() {
266
+ if (!Boolean(this.resolvedConfig.storage)) {
267
+ return;
268
+ }
269
+ return this.resolvedConfig.storage.getItem(preferredThemeStorageKey);
270
+ }
271
+ /**
272
+ * Sets the user's preferred theme and stores it in local storage. Overrides
273
+ * the OS theme.
274
+ */
275
+ async setPreferredTheme(theme) {
276
+ if (!Boolean(this.resolvedConfig.storage)) {
277
+ return;
278
+ }
279
+ this.resolvedConfig.storage.setItem(preferredThemeStorageKey, theme);
280
+ this.updateAppTheme();
281
+ }
282
+ /**
283
+ * Resets the user's preferred theme, using the OS theme instead.
284
+ */
285
+ async resetPreferredTheme() {
286
+ if (!Boolean(this.resolvedConfig.storage)) {
287
+ return;
288
+ }
289
+ this.resolvedConfig.storage.removeItem(preferredThemeStorageKey);
290
+ this.updateAppTheme();
291
+ }
292
+ resolveConfig() {
293
+ var _a, _b;
294
+ this.resolvedConfig = Object.assign(Object.assign({}, (this.config || {})), { rootElement: ((_a = this.config) === null || _a === void 0 ? void 0 : _a.rootElement) || document.documentElement, storage: ((_b = this.config) === null || _b === void 0 ? void 0 : _b.storage) || (window === null || window === void 0 ? void 0 : window.localStorage) });
295
+ }
296
+ determineOSTheme() {
297
+ if (!Boolean(window.matchMedia)) {
298
+ this.osTheme = "light";
299
+ return;
300
+ }
301
+ const darkThemeMediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
302
+ this.osTheme = darkThemeMediaQuery.matches ? "dark" : "light";
303
+ darkThemeMediaQuery.addEventListener("change", (e) => {
304
+ this.osTheme = e.matches ? "dark" : "light";
305
+ this.updateAppTheme();
306
+ });
307
+ }
308
+ async updateAppTheme() {
309
+ this.appTheme = (await this.getPreferredTheme()) || this.osTheme;
310
+ if (this.appTheme === "dark") {
311
+ document.documentElement.classList.remove("theme-light");
312
+ document.documentElement.classList.add("theme-dark");
313
+ }
314
+ else {
315
+ document.documentElement.classList.remove("theme-dark");
316
+ document.documentElement.classList.add("theme-light");
317
+ }
318
+ this.updateTenantVariables();
319
+ }
320
+ updateTenantVariables() {
321
+ var _a;
322
+ const tenantTheme = (_a = this.resolvedConfig) === null || _a === void 0 ? void 0 : _a.tenantColors;
323
+ if (!Boolean(tenantTheme)) {
324
+ this.resetTenantVariables();
325
+ return;
326
+ }
327
+ const rootElement = this.resolvedConfig.rootElement;
328
+ // generate state colors (hovered, pressed) from base colors
329
+ const primaryHsla = parseToHsla(tenantTheme.primary);
330
+ const secondaryHsla = parseToHsla(tenantTheme.secondary);
331
+ const textHsla = parseToHsla(tenantTheme.text);
332
+ const primaryHovered = toRgba(hsla(primaryHsla[0], primaryHsla[1] - 0.21, primaryHsla[2] + 0.09, 1));
333
+ const primaryPressed = toRgba(hsla(primaryHsla[0], primaryHsla[1] - 0.2, primaryHsla[2] + 0.17, 1));
334
+ const secondaryHovered = toRgba(hsla(secondaryHsla[0], secondaryHsla[1], secondaryHsla[2] + 0.07, 1));
335
+ const secondaryPressed = toRgba(hsla(secondaryHsla[0], secondaryHsla[1], secondaryHsla[2] + 0.15, 1));
336
+ const textHovered = toRgba(hsla(textHsla[0], textHsla[1] - 0.34, textHsla[2] + 0.1, 1));
337
+ const textPressed = toRgba(hsla(textHsla[0], textHsla[1] - 0.48, textHsla[2] + 0.2, 1));
338
+ const tenantThemeWithGeneratedStateColors = Object.assign(Object.assign({}, tenantTheme), { primaryHovered: primaryHovered, primaryPressed: primaryPressed, secondaryHovered: secondaryHovered, secondaryPressed: secondaryPressed, textHovered: textHovered, textPressed: textPressed });
339
+ // set custom properties for tenant theme colors
340
+ Object.entries(tenantColorMapping).forEach(([key, value]) => rootElement.style.setProperty(key, tenantThemeWithGeneratedStateColors[value]));
341
+ }
342
+ resetTenantVariables() {
343
+ const rootElement = this.resolvedConfig.rootElement;
344
+ [
345
+ ...Object.keys(tenantColorMapping),
346
+ "primaryHovered",
347
+ "primaryPressed",
348
+ "secondaryHovered",
349
+ "secondaryPressed",
350
+ "textHovered",
351
+ "textPressed",
352
+ ].forEach((key) => rootElement.style.removeProperty(key));
353
+ }
354
+ render() {
355
+ return (h(Host, null, h("slot", null)));
356
+ }
357
+ static get watchers() { return {
358
+ "config": ["watchConfig"]
359
+ }; }
360
+ };
361
+ FlipThemeProvider.style = flipThemeProviderCss;
362
+
363
+ export { FlipThemeProvider as flip_theme_provider };