@saasquatch/mint-components 1.5.2 → 1.5.3-2

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 (268) hide show
  1. package/CHANGELOG.md +18 -1
  2. package/dist/cjs/{ShadowViewAddon-9b256c28.js → ShadowViewAddon-8de07cc1.js} +58 -27
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/mint-components.cjs.js +1 -1
  5. package/dist/cjs/{sqm-big-stat_34.cjs.entry.js → sqm-big-stat_35.cjs.entry.js} +129 -55
  6. package/dist/cjs/sqm-stencilbook.cjs.entry.js +224 -43
  7. package/dist/collection/collection-manifest.json +1 -0
  8. package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +4 -0
  9. package/dist/collection/components/sqm-checkbox-field/UseCheckboxField.stories.js +5 -1
  10. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
  11. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +18 -8
  12. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
  13. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +18 -8
  14. package/dist/collection/components/sqm-hero/Hero.stories.js +1 -1
  15. package/dist/collection/components/sqm-input-field/InputField.stories.js +81 -0
  16. package/dist/collection/components/sqm-input-field/UseInputField.stories.js +71 -0
  17. package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +33 -0
  18. package/dist/collection/components/sqm-input-field/sqm-input-field.js +197 -0
  19. package/dist/collection/components/sqm-input-field/useInputField.js +10 -0
  20. package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -2
  21. package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +1 -1
  22. package/dist/collection/components/sqm-program-menu/ProgramMenu.stories.js +1 -1
  23. package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -1
  24. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +5 -1
  25. package/dist/esm/{ShadowViewAddon-b98faaf1.js → ShadowViewAddon-63a40a95.js} +58 -28
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/esm/mint-components.js +1 -1
  28. package/dist/esm/{sqm-big-stat_34.entry.js → sqm-big-stat_35.entry.js} +131 -58
  29. package/dist/esm/sqm-stencilbook.entry.js +224 -43
  30. package/dist/esm-es5/{ShadowViewAddon-b98faaf1.js → ShadowViewAddon-63a40a95.js} +1 -1
  31. package/dist/esm-es5/loader.js +1 -1
  32. package/dist/esm-es5/mint-components.js +1 -1
  33. package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -0
  34. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  35. package/dist/mint-components/mint-components.esm.js +1 -1
  36. package/dist/mint-components/p-436da6b8.system.js +1 -1
  37. package/dist/mint-components/{p-f702ffef.js → p-86263d7f.js} +1 -1
  38. package/dist/mint-components/p-9e34ff81.system.entry.js +1 -0
  39. package/dist/mint-components/p-aa5474be.system.entry.js +1 -0
  40. package/dist/mint-components/p-d336a610.system.js +1 -0
  41. package/dist/mint-components/{p-52ca31c9.entry.js → p-e218474f.entry.js} +12 -12
  42. package/dist/mint-components/p-ff22834a.entry.js +9 -0
  43. package/dist/types/components/sqm-checkbox-field/CheckboxField.stories.d.ts +3 -0
  44. package/dist/types/components/sqm-checkbox-field/UseCheckboxField.stories.d.ts +3 -0
  45. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
  46. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +2 -2
  47. package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field-view.d.ts +1 -1
  48. package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +2 -2
  49. package/dist/types/components/sqm-input-field/InputField.stories.d.ts +15 -0
  50. package/dist/types/components/sqm-input-field/UseInputField.stories.d.ts +43 -0
  51. package/dist/types/components/sqm-input-field/sqm-input-field-view.d.ts +14 -0
  52. package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +35 -0
  53. package/dist/types/components/sqm-input-field/useInputField.d.ts +5 -0
  54. package/dist/types/components.d.ts +74 -8
  55. package/grapesjs/grapesjs.js +1 -1
  56. package/package.json +1 -1
  57. package/shoelace/assets/icons/123.svg +3 -0
  58. package/shoelace/assets/icons/activity.svg +3 -0
  59. package/shoelace/assets/icons/apple.svg +4 -0
  60. package/shoelace/assets/icons/bandaid-fill.svg +3 -0
  61. package/shoelace/assets/icons/bandaid.svg +4 -0
  62. package/shoelace/assets/icons/bank.svg +3 -0
  63. package/shoelace/assets/icons/bank2.svg +3 -0
  64. package/shoelace/assets/icons/behance.svg +3 -0
  65. package/shoelace/assets/icons/bell-slash-fill.svg +3 -0
  66. package/shoelace/assets/icons/bell-slash.svg +3 -0
  67. package/shoelace/assets/icons/bluetooth.svg +3 -0
  68. package/shoelace/assets/icons/body-text.svg +3 -0
  69. package/shoelace/assets/icons/boombox-fill.svg +4 -0
  70. package/shoelace/assets/icons/boombox.svg +6 -0
  71. package/shoelace/assets/icons/boxes.svg +3 -0
  72. package/shoelace/assets/icons/cash-coin.svg +6 -0
  73. package/shoelace/assets/icons/check-lg.svg +3 -0
  74. package/shoelace/assets/icons/cloud-haze2.svg +3 -0
  75. package/shoelace/assets/icons/coin.svg +5 -0
  76. package/shoelace/assets/icons/currency-bitcoin.svg +3 -0
  77. package/shoelace/assets/icons/currency-dollar.svg +3 -0
  78. package/shoelace/assets/icons/currency-euro.svg +3 -0
  79. package/shoelace/assets/icons/currency-exchange.svg +3 -0
  80. package/shoelace/assets/icons/currency-pound.svg +3 -0
  81. package/shoelace/assets/icons/currency-yen.svg +3 -0
  82. package/shoelace/assets/icons/dash-lg.svg +3 -0
  83. package/shoelace/assets/icons/device-hdd-fill.svg +4 -0
  84. package/shoelace/assets/icons/device-hdd.svg +5 -0
  85. package/shoelace/assets/icons/device-ssd-fill.svg +4 -0
  86. package/shoelace/assets/icons/device-ssd.svg +4 -0
  87. package/shoelace/assets/icons/displayport-fill.svg +3 -0
  88. package/shoelace/assets/icons/displayport.svg +4 -0
  89. package/shoelace/assets/icons/dpad-fill.svg +3 -0
  90. package/shoelace/assets/icons/dpad.svg +4 -0
  91. package/shoelace/assets/icons/dribbble.svg +3 -0
  92. package/shoelace/assets/icons/ear-fill.svg +3 -0
  93. package/shoelace/assets/icons/ear.svg +3 -0
  94. package/shoelace/assets/icons/easel2-fill.svg +4 -0
  95. package/shoelace/assets/icons/easel2.svg +3 -0
  96. package/shoelace/assets/icons/easel3-fill.svg +3 -0
  97. package/shoelace/assets/icons/easel3.svg +3 -0
  98. package/shoelace/assets/icons/envelope-check-fill.svg +4 -0
  99. package/shoelace/assets/icons/envelope-check.svg +4 -0
  100. package/shoelace/assets/icons/envelope-dash-fill.svg +4 -0
  101. package/shoelace/assets/icons/envelope-dash.svg +4 -0
  102. package/shoelace/assets/icons/envelope-exclamation-fill.svg +4 -0
  103. package/shoelace/assets/icons/envelope-exclamation.svg +4 -0
  104. package/shoelace/assets/icons/envelope-plus-fill.svg +4 -0
  105. package/shoelace/assets/icons/envelope-plus.svg +4 -0
  106. package/shoelace/assets/icons/envelope-slash-fill.svg +4 -0
  107. package/shoelace/assets/icons/envelope-slash.svg +4 -0
  108. package/shoelace/assets/icons/envelope-x-fill.svg +4 -0
  109. package/shoelace/assets/icons/envelope-x.svg +4 -0
  110. package/shoelace/assets/icons/ethernet.svg +4 -0
  111. package/shoelace/assets/icons/exclamation-lg.svg +3 -0
  112. package/shoelace/assets/icons/explicit-fill.svg +3 -0
  113. package/shoelace/assets/icons/explicit.svg +4 -0
  114. package/shoelace/assets/icons/fan.svg +4 -0
  115. package/shoelace/assets/icons/file-earmark-pdf-fill.svg +4 -0
  116. package/shoelace/assets/icons/file-earmark-pdf.svg +4 -0
  117. package/shoelace/assets/icons/file-pdf-fill.svg +4 -0
  118. package/shoelace/assets/icons/file-pdf.svg +4 -0
  119. package/shoelace/assets/icons/fingerprint.svg +7 -0
  120. package/shoelace/assets/icons/gender-ambiguous.svg +3 -0
  121. package/shoelace/assets/icons/gender-female.svg +3 -0
  122. package/shoelace/assets/icons/gender-male.svg +3 -0
  123. package/shoelace/assets/icons/gender-trans.svg +3 -0
  124. package/shoelace/assets/icons/git.svg +3 -0
  125. package/shoelace/assets/icons/gpu-card.svg +5 -0
  126. package/shoelace/assets/icons/graph-down-arrow.svg +3 -0
  127. package/shoelace/assets/icons/graph-up-arrow.svg +3 -0
  128. package/shoelace/assets/icons/hdmi-fill.svg +3 -0
  129. package/shoelace/assets/icons/hdmi.svg +4 -0
  130. package/shoelace/assets/icons/headset-vr.svg +4 -0
  131. package/shoelace/assets/icons/hypnotize.svg +4 -0
  132. package/shoelace/assets/icons/infinity.svg +3 -0
  133. package/shoelace/assets/icons/info-lg.svg +3 -0
  134. package/shoelace/assets/icons/line.svg +3 -0
  135. package/shoelace/assets/icons/list-columns-reverse.svg +3 -0
  136. package/shoelace/assets/icons/list-columns.svg +3 -0
  137. package/shoelace/assets/icons/magic.svg +3 -0
  138. package/shoelace/assets/icons/mastodon.svg +3 -0
  139. package/shoelace/assets/icons/medium.svg +3 -0
  140. package/shoelace/assets/icons/memory.svg +3 -0
  141. package/shoelace/assets/icons/messenger.svg +3 -0
  142. package/shoelace/assets/icons/meta.svg +3 -0
  143. package/shoelace/assets/icons/microsoft.svg +3 -0
  144. package/shoelace/assets/icons/modem-fill.svg +3 -0
  145. package/shoelace/assets/icons/modem.svg +4 -0
  146. package/shoelace/assets/icons/mortarboard-fill.svg +4 -0
  147. package/shoelace/assets/icons/mortarboard.svg +4 -0
  148. package/shoelace/assets/icons/motherboard-fill.svg +4 -0
  149. package/shoelace/assets/icons/motherboard.svg +4 -0
  150. package/shoelace/assets/icons/nintendo-switch.svg +4 -0
  151. package/shoelace/assets/icons/optical-audio-fill.svg +4 -0
  152. package/shoelace/assets/icons/optical-audio.svg +5 -0
  153. package/shoelace/assets/icons/paypal.svg +3 -0
  154. package/shoelace/assets/icons/pc-display-horizontal.svg +3 -0
  155. package/shoelace/assets/icons/pc-display.svg +3 -0
  156. package/shoelace/assets/icons/pc-horizontal.svg +3 -0
  157. package/shoelace/assets/icons/pc.svg +3 -0
  158. package/shoelace/assets/icons/pci-card.svg +4 -0
  159. package/shoelace/assets/icons/person-rolodex.svg +4 -0
  160. package/shoelace/assets/icons/person-video.svg +4 -0
  161. package/shoelace/assets/icons/person-video2.svg +4 -0
  162. package/shoelace/assets/icons/person-video3.svg +4 -0
  163. package/shoelace/assets/icons/person-workspace.svg +4 -0
  164. package/shoelace/assets/icons/piggy-bank-fill.svg +3 -0
  165. package/shoelace/assets/icons/piggy-bank.svg +4 -0
  166. package/shoelace/assets/icons/pin-map-fill.svg +4 -0
  167. package/shoelace/assets/icons/pin-map.svg +4 -0
  168. package/shoelace/assets/icons/pinterest.svg +3 -0
  169. package/shoelace/assets/icons/playstation.svg +3 -0
  170. package/shoelace/assets/icons/plus-lg.svg +3 -0
  171. package/shoelace/assets/icons/plus-slash-minus.svg +3 -0
  172. package/shoelace/assets/icons/projector-fill.svg +3 -0
  173. package/shoelace/assets/icons/projector.svg +4 -0
  174. package/shoelace/assets/icons/qr-code-scan.svg +7 -0
  175. package/shoelace/assets/icons/qr-code.svg +7 -0
  176. package/shoelace/assets/icons/question-lg.svg +3 -0
  177. package/shoelace/assets/icons/quora.svg +3 -0
  178. package/shoelace/assets/icons/quote.svg +3 -0
  179. package/shoelace/assets/icons/radioactive.svg +4 -0
  180. package/shoelace/assets/icons/recycle.svg +3 -0
  181. package/shoelace/assets/icons/reddit.svg +4 -0
  182. package/shoelace/assets/icons/robot.svg +4 -0
  183. package/shoelace/assets/icons/router-fill.svg +6 -0
  184. package/shoelace/assets/icons/router.svg +6 -0
  185. package/shoelace/assets/icons/safe-fill.svg +4 -0
  186. package/shoelace/assets/icons/safe.svg +4 -0
  187. package/shoelace/assets/icons/safe2-fill.svg +4 -0
  188. package/shoelace/assets/icons/safe2.svg +4 -0
  189. package/shoelace/assets/icons/sd-card-fill.svg +3 -0
  190. package/shoelace/assets/icons/sd-card.svg +4 -0
  191. package/shoelace/assets/icons/send-check-fill.svg +4 -0
  192. package/shoelace/assets/icons/send-check.svg +4 -0
  193. package/shoelace/assets/icons/send-dash-fill.svg +4 -0
  194. package/shoelace/assets/icons/send-dash.svg +4 -0
  195. package/shoelace/assets/icons/send-exclamation-fill.svg +4 -0
  196. package/shoelace/assets/icons/send-exclamation.svg +4 -0
  197. package/shoelace/assets/icons/send-fill.svg +3 -0
  198. package/shoelace/assets/icons/send-plus-fill.svg +4 -0
  199. package/shoelace/assets/icons/send-plus.svg +4 -0
  200. package/shoelace/assets/icons/send-slash-fill.svg +4 -0
  201. package/shoelace/assets/icons/send-slash.svg +4 -0
  202. package/shoelace/assets/icons/send-x-fill.svg +4 -0
  203. package/shoelace/assets/icons/send-x.svg +4 -0
  204. package/shoelace/assets/icons/send.svg +3 -0
  205. package/shoelace/assets/icons/signal.svg +3 -0
  206. package/shoelace/assets/icons/skype.svg +3 -0
  207. package/shoelace/assets/icons/slash-lg.svg +3 -0
  208. package/shoelace/assets/icons/snapchat.svg +3 -0
  209. package/shoelace/assets/icons/spotify.svg +3 -0
  210. package/shoelace/assets/icons/stack-overflow.svg +4 -0
  211. package/shoelace/assets/icons/steam.svg +4 -0
  212. package/shoelace/assets/icons/strava.svg +3 -0
  213. package/shoelace/assets/icons/terminal-dash.svg +4 -0
  214. package/shoelace/assets/icons/terminal-plus.svg +4 -0
  215. package/shoelace/assets/icons/terminal-split.svg +4 -0
  216. package/shoelace/assets/icons/terminal-x.svg +4 -0
  217. package/shoelace/assets/icons/thunderbolt-fill.svg +3 -0
  218. package/shoelace/assets/icons/thunderbolt.svg +4 -0
  219. package/shoelace/assets/icons/ticket-detailed-fill.svg +3 -0
  220. package/shoelace/assets/icons/ticket-detailed.svg +4 -0
  221. package/shoelace/assets/icons/ticket-fill.svg +3 -0
  222. package/shoelace/assets/icons/ticket-perforated-fill.svg +3 -0
  223. package/shoelace/assets/icons/ticket-perforated.svg +4 -0
  224. package/shoelace/assets/icons/ticket.svg +3 -0
  225. package/shoelace/assets/icons/tiktok.svg +3 -0
  226. package/shoelace/assets/icons/translate.svg +4 -0
  227. package/shoelace/assets/icons/usb-c-fill.svg +3 -0
  228. package/shoelace/assets/icons/usb-c.svg +4 -0
  229. package/shoelace/assets/icons/usb-drive-fill.svg +3 -0
  230. package/shoelace/assets/icons/usb-drive.svg +3 -0
  231. package/shoelace/assets/icons/usb-fill.svg +3 -0
  232. package/shoelace/assets/icons/usb-micro-fill.svg +3 -0
  233. package/shoelace/assets/icons/usb-micro.svg +4 -0
  234. package/shoelace/assets/icons/usb-mini-fill.svg +3 -0
  235. package/shoelace/assets/icons/usb-mini.svg +4 -0
  236. package/shoelace/assets/icons/usb-plug-fill.svg +3 -0
  237. package/shoelace/assets/icons/usb-plug.svg +3 -0
  238. package/shoelace/assets/icons/usb-symbol.svg +3 -0
  239. package/shoelace/assets/icons/usb.svg +4 -0
  240. package/shoelace/assets/icons/vimeo.svg +3 -0
  241. package/shoelace/assets/icons/webcam-fill.svg +4 -0
  242. package/shoelace/assets/icons/webcam.svg +4 -0
  243. package/shoelace/assets/icons/window-dash.svg +5 -0
  244. package/shoelace/assets/icons/window-desktop.svg +4 -0
  245. package/shoelace/assets/icons/window-fullscreen.svg +4 -0
  246. package/shoelace/assets/icons/window-plus.svg +5 -0
  247. package/shoelace/assets/icons/window-split.svg +4 -0
  248. package/shoelace/assets/icons/window-stack.svg +4 -0
  249. package/shoelace/assets/icons/window-x.svg +5 -0
  250. package/shoelace/assets/icons/windows.svg +3 -0
  251. package/shoelace/assets/icons/wordpress.svg +5 -0
  252. package/shoelace/assets/icons/x-lg.svg +4 -0
  253. package/shoelace/assets/icons/xbox.svg +3 -0
  254. package/shoelace/assets/icons/yin-yang.svg +4 -0
  255. package/shoelace/themes/themes/dark.styles.d.ts +2 -0
  256. package/shoelace/themes/themes/dark.styles.js +531 -0
  257. package/shoelace/themes/themes/light.css +439 -0
  258. package/shoelace/themes/themes/light.styles.d.ts +2 -0
  259. package/shoelace/themes/themes/light.styles.js +531 -0
  260. package/dist/esm-es5/sqm-big-stat_34.entry.js +0 -1
  261. package/dist/mint-components/p-842aa194.system.js +0 -1
  262. package/dist/mint-components/p-8a1a1fb4.system.entry.js +0 -1
  263. package/dist/mint-components/p-a624b8d7.system.entry.js +0 -1
  264. package/dist/mint-components/p-b176c55c.entry.js +0 -9
  265. package/dist/types/global/android.d.ts +0 -7
  266. package/dist/types/global/demo.d.ts +0 -1
  267. package/dist/types/stories/features.d.ts +0 -4
  268. package/dist/types/stories/templates.d.ts +0 -4
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
2
- import { m as h, e as useEffect, y, o as d, k as useState, f as useRef, b as browser, u as useReducer } from './stencil-hooks.module-acc8a613.js';
2
+ import { m as h, e as useEffect, k as useState, y, o as d, f as useRef, b as browser, u as useReducer } from './stencil-hooks.module-acc8a613.js';
3
3
  import { i as intl } from './global-15cdf41a.js';
4
4
  import { u as useCallback } from './use-callback-7e0bfd3b.js';
5
5
  import { j as jn, P, d as dist, i as ie, b as sn, q as qe, M, r as rn, c as dn, g as $e, E as Ee, D as De, H as He, l as ln, R as Rn, A as An } from './index.module-f5e17a4e.js';
@@ -11,10 +11,10 @@ import { c as createStyleSheet } from './JSS-418cab16.js';
11
11
  import { a as useRequestRerender } from './re-render-8f0a7ab1.js';
12
12
  import { u as useChildElements } from './useChildElements-3ffd7077.js';
13
13
  import './luxon-f44215d9.js';
14
- import { g as getProps, s as sanitizeUrlPath, a as getMissingProps } from './utils-d7bbb0e2.js';
14
+ import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-d7bbb0e2.js';
15
15
  import './sqm-text-span-view-020db63f.js';
16
16
  import './sqm-portal-container-view-34f26e2a.js';
17
- import { c as useDemoBigStat, J as useBigStat, B as BigStatView, H as autoColorScaleCss, G as CardFeedView, C as CheckboxFieldView, D as DropdownFieldView, E as EditProfileView, K as withShadowView, L as LeaderboardView, N as NameFieldsView, e as PortalChangePasswordView, P as PortalFrameView, f as PortalLoginView, g as PortalRegisterView, R as ReferralIframeView, M as demoRewardExchange, i as RewardExchangeView, O as pathToRegexp, b as useShareButton, S as ShareButtonView, a as ShareLinkView, u as useShareLink, d as StatContainerView, T as TaskCardView } from './ShadowViewAddon-b98faaf1.js';
17
+ import { c as useDemoBigStat, K as useBigStat, B as BigStatView, H as autoColorScaleCss, G as CardFeedView, C as CheckboxFieldView, D as DropdownFieldView, E as EditProfileView, I as InputFieldView, M as withShadowView, L as LeaderboardView, N as NameFieldsView, e as PortalChangePasswordView, P as PortalFrameView, f as PortalLoginView, g as PortalRegisterView, R as ReferralIframeView, O as demoRewardExchange, i as RewardExchangeView, Q as pathToRegexp, b as useShareButton, S as ShareButtonView, a as ShareLinkView, u as useShareLink, d as StatContainerView, T as TaskCardView } from './ShadowViewAddon-63a40a95.js';
18
18
  import './sqm-portal-section-view-c8d1c727.js';
19
19
 
20
20
  const BigStat = class {
@@ -119,6 +119,51 @@ const CardFeed = class {
119
119
  }
120
120
  };
121
121
 
122
+ const style = {
123
+ IconStyle: {
124
+ display: "block",
125
+ position: "absolute",
126
+ top: "23px",
127
+ },
128
+ DivStyle: {
129
+ marginLeft: "30px",
130
+ },
131
+ Details: {
132
+ marginLeft: "30px",
133
+ },
134
+ Heading: {
135
+ display: "inline-block",
136
+ },
137
+ Alert: {
138
+ margin: "30px",
139
+ },
140
+ };
141
+ const sheet = createStyleSheet(style);
142
+ const styleString = sheet.toString();
143
+ function RequiredPropsError({ missingProps }) {
144
+ if (!missingProps)
145
+ return false;
146
+ const host = P();
147
+ const [detailsOpen, setDetailsOpen] = useState(false);
148
+ return (h$1("sl-alert", { type: "danger", open: true, class: sheet.classes.Alert },
149
+ h$1("style", { type: "text/css" }, styleString),
150
+ h$1("div", { slot: "icon", class: sheet.classes.IconStyle },
151
+ h$1("sl-icon", { name: "exclamation-octagon" })),
152
+ h$1("div", { class: sheet.classes.DivStyle },
153
+ h$1("h2", { class: sheet.classes.Heading }, "There was a problem loading this page"),
154
+ h$1("p", null, "There was a technical problem that prevented this page from loading. Please contact us with the link to this page.")),
155
+ h$1("details", { class: sheet.classes.Details },
156
+ h$1("summary", { onClick: () => setDetailsOpen(!detailsOpen) },
157
+ detailsOpen ? "Less" : "More",
158
+ " details"),
159
+ h$1("p", null,
160
+ "Error occured while loading ",
161
+ `<${host.tagName.toLowerCase()}>`,
162
+ ". Values for the following attributes are missing:"),
163
+ h$1("ul", null, missingProps.map((prop) => (h$1("li", null,
164
+ h$1("strong", null, prop.attribute))))))));
165
+ }
166
+
122
167
  const FORM_VALIDATION_CONTEXT = "sq:validation-state";
123
168
  function useValidationState(formState) {
124
169
  const host = P();
@@ -162,13 +207,22 @@ const CheckboxField = class {
162
207
  */
163
208
  this.errorMessage = "Must be checked";
164
209
  /**
165
- * @uiName Required
210
+ * @uiName Optional
166
211
  */
167
- this.checkboxRequired = true;
212
+ this.checkboxOptional = false;
168
213
  h(this);
169
214
  }
170
215
  disconnectedCallback() { }
171
216
  render() {
217
+ const missingProps = getMissingProps([
218
+ {
219
+ attribute: "checkbox-name",
220
+ value: this.checkboxName,
221
+ },
222
+ ]);
223
+ if (missingProps) {
224
+ return h$1(RequiredPropsError, { missingProps: missingProps });
225
+ }
172
226
  const content = {
173
227
  ...getProps(this),
174
228
  };
@@ -279,13 +333,22 @@ const DropdownField = class {
279
333
  */
280
334
  this.errorMessage = "Select an option";
281
335
  /**
282
- * @uiName Required
336
+ * @uiName Optional
283
337
  */
284
- this.dropdownRequired = true;
338
+ this.dropdownOptional = false;
285
339
  h(this);
286
340
  }
287
341
  disconnectedCallback() { }
288
342
  render() {
343
+ const missingProps = getMissingProps([
344
+ {
345
+ attribute: "dropdown-name",
346
+ value: this.dropdownName,
347
+ },
348
+ ]);
349
+ if (missingProps) {
350
+ return h$1(RequiredPropsError, { missingProps: missingProps });
351
+ }
289
352
  const content = {
290
353
  ...getProps(this),
291
354
  selectOptions: h$1("slot", null),
@@ -737,6 +800,61 @@ const SqmHookStoryContainer = class {
737
800
  }
738
801
  };
739
802
 
803
+ function useInputField() {
804
+ const validationState = d(FORM_VALIDATION_CONTEXT);
805
+ return {
806
+ states: {
807
+ validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
808
+ },
809
+ };
810
+ }
811
+
812
+ const InputField = class {
813
+ constructor(hostRef) {
814
+ registerInstance(this, hostRef);
815
+ this.ignored = true;
816
+ /**
817
+ * @uiName Input Type
818
+ * @uiType string
819
+ * @uiEnum ["text", "date", "tel"]
820
+ */
821
+ this.fieldType = "text";
822
+ /**
823
+ * @uiName Empty error message
824
+ */
825
+ this.errorMessage = "Cannot be empty";
826
+ /**
827
+ * @uiName Optional
828
+ */
829
+ this.fieldOptional = false;
830
+ h(this);
831
+ }
832
+ disconnectedCallback() { }
833
+ render() {
834
+ const content = {
835
+ ...getProps(this),
836
+ };
837
+ const missingProps = getMissingProps([
838
+ {
839
+ attribute: "field-name",
840
+ value: this.fieldName,
841
+ },
842
+ ]);
843
+ if (missingProps) {
844
+ return h$1(RequiredPropsError, { missingProps: missingProps });
845
+ }
846
+ const { states } = jn() ? useInputFieldDemo(this) : useInputField();
847
+ return h$1(InputFieldView, { states: states, content: content });
848
+ }
849
+ };
850
+ function useInputFieldDemo(props) {
851
+ return cjs({
852
+ states: {
853
+ validationErrors: [],
854
+ },
855
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
856
+ }
857
+
740
858
  const GET_LEADERBOARD = dist.gql `
741
859
  query ($type: String!, $filter: UserLeaderboardFilterInput) {
742
860
  userLeaderboard(type: $type, filter: $filter) {
@@ -5593,7 +5711,7 @@ const ProgramMenu = class {
5593
5711
  }
5594
5712
  };
5595
5713
 
5596
- const style = {
5714
+ const style$1 = {
5597
5715
  Container: {
5598
5716
  display: "flex",
5599
5717
  color: "var(--sl-color-neutral-900)",
@@ -5627,8 +5745,8 @@ const style = {
5627
5745
  },
5628
5746
  },
5629
5747
  };
5630
- const sheet = createStyleSheet(style);
5631
- const styleString = sheet.toString();
5748
+ const sheet$1 = createStyleSheet(style$1);
5749
+ const styleString$1 = sheet$1.toString();
5632
5750
  const vanillaStyle = `
5633
5751
  :host{
5634
5752
  display: block;
@@ -5637,9 +5755,9 @@ const vanillaStyle = `
5637
5755
  function ReferralCardView(props) {
5638
5756
  return (h$1("div", null,
5639
5757
  h$1("style", { type: "text/css" },
5640
- styleString,
5758
+ styleString$1,
5641
5759
  vanillaStyle),
5642
- h$1("div", { class: sheet.classes.Container },
5760
+ h$1("div", { class: sheet$1.classes.Container },
5643
5761
  h$1("div", { class: "left", style: {
5644
5762
  alignSelf: props.verticalAlignment,
5645
5763
  } }, props.slots.left),
@@ -5695,51 +5813,6 @@ function useReferralIframe(props) {
5695
5813
  };
5696
5814
  }
5697
5815
 
5698
- const style$1 = {
5699
- IconStyle: {
5700
- display: "block",
5701
- position: "absolute",
5702
- top: "23px",
5703
- },
5704
- DivStyle: {
5705
- marginLeft: "30px",
5706
- },
5707
- Details: {
5708
- marginLeft: "30px",
5709
- },
5710
- Heading: {
5711
- display: "inline-block",
5712
- },
5713
- Alert: {
5714
- margin: "30px",
5715
- },
5716
- };
5717
- const sheet$1 = createStyleSheet(style$1);
5718
- const styleString$1 = sheet$1.toString();
5719
- function RequiredPropsError({ missingProps }) {
5720
- if (!missingProps)
5721
- return false;
5722
- const host = P();
5723
- const [detailsOpen, setDetailsOpen] = useState(false);
5724
- return (h$1("sl-alert", { type: "danger", open: true, class: sheet$1.classes.Alert },
5725
- h$1("style", { type: "text/css" }, styleString$1),
5726
- h$1("div", { slot: "icon", class: sheet$1.classes.IconStyle },
5727
- h$1("sl-icon", { name: "exclamation-octagon" })),
5728
- h$1("div", { class: sheet$1.classes.DivStyle },
5729
- h$1("h2", { class: sheet$1.classes.Heading }, "There was a problem loading this page"),
5730
- h$1("p", null, "There was a technical problem that prevented this page from loading. Please contact us with the link to this page.")),
5731
- h$1("details", { class: sheet$1.classes.Details },
5732
- h$1("summary", { onClick: () => setDetailsOpen(!detailsOpen) },
5733
- detailsOpen ? "Less" : "More",
5734
- " details"),
5735
- h$1("p", null,
5736
- "Error occured while loading ",
5737
- `<${host.tagName.toLowerCase()}>`,
5738
- ". Values for the following attributes are missing:"),
5739
- h$1("ul", null, missingProps.map((prop) => (h$1("li", null,
5740
- h$1("strong", null, prop.attribute))))))));
5741
- }
5742
-
5743
5816
  const SqmReferralIframe = class {
5744
5817
  constructor(hostRef) {
5745
5818
  registerInstance(this, hostRef);
@@ -7525,4 +7598,4 @@ function useUserNameDemo(props) {
7525
7598
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
7526
7599
  }
7527
7600
 
7528
- export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Leaderboard as sqm_leaderboard, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PortalChangePassword as sqm_portal_change_password, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, Scroll as sqm_scroll, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };
7601
+ export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, InputField as sqm_input_field, Leaderboard as sqm_leaderboard, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PortalChangePassword as sqm_portal_change_password, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, Scroll as sqm_scroll, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };