@warp-ds/elements 2.3.0-next.9 → 2.3.1

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 (282) hide show
  1. package/dist/custom-elements.json +156 -3728
  2. package/dist/index.d.ts +34 -717
  3. package/dist/packages/affix/index.js.map +2 -2
  4. package/dist/packages/alert/index.js.map +2 -2
  5. package/dist/packages/attention/attention.stories.js +4 -1
  6. package/dist/packages/attention/index.js +55 -19
  7. package/dist/packages/attention/index.js.map +3 -3
  8. package/dist/packages/attention/styles.js +1 -1
  9. package/dist/packages/badge/index.js.map +2 -2
  10. package/dist/packages/box/index.js.map +2 -2
  11. package/dist/packages/breadcrumbs/index.js.map +2 -2
  12. package/dist/packages/button/button.react.stories.d.ts +1 -1
  13. package/dist/packages/button/button.stories.d.ts +4 -4
  14. package/dist/packages/button/button.stories.js +4 -4
  15. package/dist/packages/button/button.test.js +30 -1
  16. package/dist/packages/button/index.d.ts +2 -0
  17. package/dist/packages/button/index.js +49 -13
  18. package/dist/packages/button/index.js.map +3 -3
  19. package/dist/packages/card/index.js.map +2 -2
  20. package/dist/packages/datepicker/datepicker.d.ts +1 -0
  21. package/dist/packages/datepicker/datepicker.js +439 -2732
  22. package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
  23. package/dist/packages/datepicker/datepicker.test.js +27 -0
  24. package/dist/packages/datepicker/index.js +2785 -1
  25. package/dist/packages/datepicker/{datepicker.js.map → index.js.map} +3 -3
  26. package/dist/packages/expandable/index.js.map +2 -2
  27. package/dist/packages/link/index.d.ts +2 -8
  28. package/dist/packages/link/index.js +43 -7
  29. package/dist/packages/link/index.js.map +4 -4
  30. package/dist/packages/link/link.react.stories.d.ts +6 -4
  31. package/dist/packages/link/link.react.stories.js +22 -12
  32. package/dist/packages/link/link.stories.d.ts +5 -3
  33. package/dist/packages/link/link.stories.js +22 -12
  34. package/dist/packages/link/styles.js +36 -0
  35. package/dist/packages/modal/index.js.map +2 -2
  36. package/dist/packages/modal/modal-header.js.map +2 -2
  37. package/dist/packages/modal/modal.stories.d.ts +3 -3
  38. package/dist/packages/modal/modal.stories.js +32 -32
  39. package/dist/packages/pill/index.js.map +2 -2
  40. package/dist/packages/select/index.d.ts +26 -5
  41. package/dist/packages/select/index.js +17 -16
  42. package/dist/packages/select/index.js.map +3 -3
  43. package/dist/packages/select/select.react.stories.d.ts +1 -1
  44. package/dist/packages/select/select.stories.d.ts +1 -1
  45. package/dist/packages/select/select.stories.js +3 -4
  46. package/dist/packages/select/select.test.js +30 -0
  47. package/dist/packages/textfield/index.d.ts +4 -0
  48. package/dist/packages/textfield/index.js +20 -19
  49. package/dist/packages/textfield/index.js.map +3 -3
  50. package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
  51. package/dist/packages/textfield/textfield.stories.d.ts +1 -0
  52. package/dist/packages/textfield/textfield.stories.js +17 -0
  53. package/dist/web-types.json +44 -707
  54. package/package.json +11 -89
  55. package/dist/packages/combobox/combobox.react.stories.d.ts +0 -28
  56. package/dist/packages/combobox/combobox.react.stories.js +0 -90
  57. package/dist/packages/combobox/combobox.stories.d.ts +0 -18
  58. package/dist/packages/combobox/combobox.stories.js +0 -117
  59. package/dist/packages/combobox/index.d.ts +0 -85
  60. package/dist/packages/combobox/index.js +0 -2492
  61. package/dist/packages/combobox/index.js.map +0 -7
  62. package/dist/packages/combobox/locales/da/messages.d.mts +0 -1
  63. package/dist/packages/combobox/locales/da/messages.mjs +0 -1
  64. package/dist/packages/combobox/locales/en/messages.d.mts +0 -1
  65. package/dist/packages/combobox/locales/en/messages.mjs +0 -1
  66. package/dist/packages/combobox/locales/fi/messages.d.mts +0 -1
  67. package/dist/packages/combobox/locales/fi/messages.mjs +0 -1
  68. package/dist/packages/combobox/locales/nb/messages.d.mts +0 -1
  69. package/dist/packages/combobox/locales/nb/messages.mjs +0 -1
  70. package/dist/packages/combobox/locales/sv/messages.d.mts +0 -1
  71. package/dist/packages/combobox/locales/sv/messages.mjs +0 -1
  72. package/dist/packages/combobox/react.d.ts +0 -7
  73. package/dist/packages/combobox/react.js +0 -17
  74. package/dist/packages/combobox/styles.d.ts +0 -1
  75. package/dist/packages/combobox/styles.js +0 -2
  76. package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +0 -15
  77. package/dist/packages/dead-toggle/dead-toggle.react.stories.js +0 -34
  78. package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +0 -14
  79. package/dist/packages/dead-toggle/dead-toggle.stories.js +0 -45
  80. package/dist/packages/dead-toggle/dead-toggle.test.d.ts +0 -1
  81. package/dist/packages/dead-toggle/dead-toggle.test.js +0 -9
  82. package/dist/packages/dead-toggle/index.d.ts +0 -17
  83. package/dist/packages/dead-toggle/index.js +0 -2547
  84. package/dist/packages/dead-toggle/index.js.map +0 -7
  85. package/dist/packages/dead-toggle/react.d.ts +0 -2
  86. package/dist/packages/dead-toggle/react.js +0 -11
  87. package/dist/packages/pageindicator/index.d.ts +0 -10
  88. package/dist/packages/pageindicator/index.js +0 -32
  89. package/dist/packages/pageindicator/index.js.map +0 -7
  90. package/dist/packages/pageindicator/pageindicator.react.stories.d.ts +0 -19
  91. package/dist/packages/pageindicator/pageindicator.react.stories.js +0 -20
  92. package/dist/packages/pageindicator/pageindicator.stories.d.ts +0 -32
  93. package/dist/packages/pageindicator/pageindicator.stories.js +0 -71
  94. package/dist/packages/pageindicator/react.d.ts +0 -2
  95. package/dist/packages/pageindicator/react.js +0 -11
  96. package/dist/packages/pageindicator/style.d.ts +0 -1
  97. package/dist/packages/pageindicator/style.js +0 -26
  98. package/dist/packages/pagination/index.d.ts +0 -32
  99. package/dist/packages/pagination/index.js +0 -2500
  100. package/dist/packages/pagination/index.js.map +0 -7
  101. package/dist/packages/pagination/locales/da/messages.d.mts +0 -1
  102. package/dist/packages/pagination/locales/da/messages.mjs +0 -1
  103. package/dist/packages/pagination/locales/en/messages.d.mts +0 -1
  104. package/dist/packages/pagination/locales/en/messages.mjs +0 -1
  105. package/dist/packages/pagination/locales/fi/messages.d.mts +0 -1
  106. package/dist/packages/pagination/locales/fi/messages.mjs +0 -1
  107. package/dist/packages/pagination/locales/nb/messages.d.mts +0 -1
  108. package/dist/packages/pagination/locales/nb/messages.mjs +0 -1
  109. package/dist/packages/pagination/locales/sv/messages.d.mts +0 -1
  110. package/dist/packages/pagination/locales/sv/messages.mjs +0 -1
  111. package/dist/packages/pagination/pagination.react.stories.d.ts +0 -21
  112. package/dist/packages/pagination/pagination.react.stories.js +0 -45
  113. package/dist/packages/pagination/pagination.stories.d.ts +0 -14
  114. package/dist/packages/pagination/pagination.stories.js +0 -56
  115. package/dist/packages/pagination/pagination.test.d.ts +0 -1
  116. package/dist/packages/pagination/pagination.test.js +0 -76
  117. package/dist/packages/pagination/react.d.ts +0 -5
  118. package/dist/packages/pagination/react.js +0 -15
  119. package/dist/packages/pagination/styles.d.ts +0 -1
  120. package/dist/packages/pagination/styles.js +0 -2
  121. package/dist/packages/rip-and-tear-checkbox/checkbox-group.d.ts +0 -10
  122. package/dist/packages/rip-and-tear-checkbox/checkbox-group.js +0 -7
  123. package/dist/packages/rip-and-tear-checkbox/checkbox-group.js.map +0 -7
  124. package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +0 -66
  125. package/dist/packages/rip-and-tear-checkbox/checkbox.js +0 -2591
  126. package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +0 -7
  127. package/dist/packages/rip-and-tear-checkbox/checkbox.stories.d.ts +0 -11
  128. package/dist/packages/rip-and-tear-checkbox/checkbox.stories.js +0 -25
  129. package/dist/packages/rip-and-tear-checkbox/index.d.ts +0 -1
  130. package/dist/packages/rip-and-tear-checkbox/index.js +0 -6
  131. package/dist/packages/rip-and-tear-checkbox/react.d.ts +0 -7
  132. package/dist/packages/rip-and-tear-checkbox/react.js +0 -20
  133. package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.d.ts +0 -12
  134. package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.js +0 -10
  135. package/dist/packages/rip-and-tear-checkbox/styles.d.ts +0 -0
  136. package/dist/packages/rip-and-tear-checkbox/styles.js +0 -0
  137. package/dist/packages/rip-and-tear-radio/base-element.d.ts +0 -46
  138. package/dist/packages/rip-and-tear-radio/base-element.js +0 -100
  139. package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +0 -6
  140. package/dist/packages/rip-and-tear-radio/custom-error-validator.js +0 -22
  141. package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +0 -103
  142. package/dist/packages/rip-and-tear-radio/form-associated-element.js +0 -282
  143. package/dist/packages/rip-and-tear-radio/host-styles.d.ts +0 -1
  144. package/dist/packages/rip-and-tear-radio/host-styles.js +0 -12
  145. package/dist/packages/rip-and-tear-radio/index.d.ts +0 -1
  146. package/dist/packages/rip-and-tear-radio/index.js +0 -6
  147. package/dist/packages/rip-and-tear-radio/invalid.d.ts +0 -8
  148. package/dist/packages/rip-and-tear-radio/invalid.js +0 -5
  149. package/dist/packages/rip-and-tear-radio/math.d.ts +0 -1
  150. package/dist/packages/rip-and-tear-radio/math.js +0 -4
  151. package/dist/packages/rip-and-tear-radio/radio-group-styles.d.ts +0 -1
  152. package/dist/packages/rip-and-tear-radio/radio-group-styles.js +0 -59
  153. package/dist/packages/rip-and-tear-radio/radio-group-styles.js.map +0 -7
  154. package/dist/packages/rip-and-tear-radio/radio-group.d.ts +0 -72
  155. package/dist/packages/rip-and-tear-radio/radio-group.js +0 -2648
  156. package/dist/packages/rip-and-tear-radio/radio-group.js.map +0 -7
  157. package/dist/packages/rip-and-tear-radio/radio-styles.d.ts +0 -0
  158. package/dist/packages/rip-and-tear-radio/radio-styles.js +0 -1
  159. package/dist/packages/rip-and-tear-radio/radio-styles.js.map +0 -7
  160. package/dist/packages/rip-and-tear-radio/radio.d.ts +0 -38
  161. package/dist/packages/rip-and-tear-radio/radio.js +0 -2562
  162. package/dist/packages/rip-and-tear-radio/radio.js.map +0 -7
  163. package/dist/packages/rip-and-tear-radio/radio.stories.d.ts +0 -8
  164. package/dist/packages/rip-and-tear-radio/radio.stories.js +0 -2653
  165. package/dist/packages/rip-and-tear-radio/radio.stories.js.map +0 -7
  166. package/dist/packages/rip-and-tear-radio/react.d.ts +0 -9
  167. package/dist/packages/rip-and-tear-radio/react.js +0 -22
  168. package/dist/packages/rip-and-tear-radio/required-validator.d.ts +0 -11
  169. package/dist/packages/rip-and-tear-radio/required-validator.js +0 -34
  170. package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.d.ts +0 -9
  171. package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.js +0 -10
  172. package/dist/packages/rip-and-tear-radio/slot.d.ts +0 -20
  173. package/dist/packages/rip-and-tear-radio/slot.js +0 -71
  174. package/dist/packages/rip-and-tear-radio/watch.d.ts +0 -26
  175. package/dist/packages/rip-and-tear-radio/watch.js +0 -39
  176. package/dist/packages/slider/Slider.d.ts +0 -2
  177. package/dist/packages/slider/Slider.js +0 -8
  178. package/dist/packages/slider/SliderThumb.d.ts +0 -2
  179. package/dist/packages/slider/SliderThumb.js +0 -8
  180. package/dist/packages/slider/index.d.ts +0 -2
  181. package/dist/packages/slider/index.js +0 -2
  182. package/dist/packages/slider/oddbird-css-anchor-positioning.d.ts +0 -2
  183. package/dist/packages/slider/oddbird-css-anchor-positioning.js +0 -3
  184. package/dist/packages/slider/react.d.ts +0 -8
  185. package/dist/packages/slider/react.js +0 -20
  186. package/dist/packages/slider/slider-thumb.d.ts +0 -57
  187. package/dist/packages/slider/slider-thumb.js +0 -2705
  188. package/dist/packages/slider/slider-thumb.js.map +0 -7
  189. package/dist/packages/slider/slider.d.ts +0 -46
  190. package/dist/packages/slider/slider.js +0 -2587
  191. package/dist/packages/slider/slider.js.map +0 -7
  192. package/dist/packages/slider/slider.react.stories.d.ts +0 -18
  193. package/dist/packages/slider/slider.react.stories.js +0 -118
  194. package/dist/packages/slider/slider.stories.d.ts +0 -18
  195. package/dist/packages/slider/slider.stories.js +0 -197
  196. package/dist/packages/slider/slider.test.d.ts +0 -4
  197. package/dist/packages/slider/slider.test.js +0 -83
  198. package/dist/packages/slider/styles/w-slider-thumb.styles.d.ts +0 -1
  199. package/dist/packages/slider/styles/w-slider-thumb.styles.js +0 -167
  200. package/dist/packages/slider/styles/w-slider.styles.d.ts +0 -1
  201. package/dist/packages/slider/styles/w-slider.styles.js +0 -134
  202. package/dist/packages/slider/styles.d.ts +0 -1
  203. package/dist/packages/slider/styles.js +0 -2
  204. package/dist/packages/steps/index.d.ts +0 -36
  205. package/dist/packages/steps/index.js +0 -2465
  206. package/dist/packages/steps/index.js.map +0 -7
  207. package/dist/packages/steps/locales/da/messages.d.mts +0 -1
  208. package/dist/packages/steps/locales/da/messages.mjs +0 -1
  209. package/dist/packages/steps/locales/en/messages.d.mts +0 -1
  210. package/dist/packages/steps/locales/en/messages.mjs +0 -1
  211. package/dist/packages/steps/locales/fi/messages.d.mts +0 -1
  212. package/dist/packages/steps/locales/fi/messages.mjs +0 -1
  213. package/dist/packages/steps/locales/nb/messages.d.mts +0 -1
  214. package/dist/packages/steps/locales/nb/messages.mjs +0 -1
  215. package/dist/packages/steps/locales/sv/messages.d.mts +0 -1
  216. package/dist/packages/steps/locales/sv/messages.mjs +0 -1
  217. package/dist/packages/steps/react.d.ts +0 -3
  218. package/dist/packages/steps/react.js +0 -16
  219. package/dist/packages/steps/steps.react.stories.d.ts +0 -15
  220. package/dist/packages/steps/steps.react.stories.js +0 -112
  221. package/dist/packages/steps/steps.stories.d.ts +0 -12
  222. package/dist/packages/steps/steps.stories.js +0 -172
  223. package/dist/packages/steps/styles.d.ts +0 -1
  224. package/dist/packages/steps/styles.js +0 -2
  225. package/dist/packages/switch/index.d.ts +0 -15
  226. package/dist/packages/switch/index.js +0 -2455
  227. package/dist/packages/switch/index.js.map +0 -7
  228. package/dist/packages/switch/react.d.ts +0 -5
  229. package/dist/packages/switch/react.js +0 -15
  230. package/dist/packages/switch/styles.d.ts +0 -1
  231. package/dist/packages/switch/styles.js +0 -2
  232. package/dist/packages/switch/switch.react.stories.d.ts +0 -15
  233. package/dist/packages/switch/switch.react.stories.js +0 -29
  234. package/dist/packages/switch/switch.stories.d.ts +0 -9
  235. package/dist/packages/switch/switch.stories.js +0 -34
  236. package/dist/packages/tabs/index.d.ts +0 -4
  237. package/dist/packages/tabs/index.js +0 -3
  238. package/dist/packages/tabs/react.d.ts +0 -12
  239. package/dist/packages/tabs/react.js +0 -31
  240. package/dist/packages/tabs/styles.d.ts +0 -1
  241. package/dist/packages/tabs/styles.js +0 -2
  242. package/dist/packages/tabs/tab-panel.d.ts +0 -20
  243. package/dist/packages/tabs/tab-panel.js +0 -51
  244. package/dist/packages/tabs/tab.d.ts +0 -18
  245. package/dist/packages/tabs/tab.js +0 -2464
  246. package/dist/packages/tabs/tab.js.map +0 -7
  247. package/dist/packages/tabs/tabs.d.ts +0 -40
  248. package/dist/packages/tabs/tabs.js +0 -2448
  249. package/dist/packages/tabs/tabs.js.map +0 -7
  250. package/dist/packages/tabs/tabs.react.stories.d.ts +0 -15
  251. package/dist/packages/tabs/tabs.react.stories.js +0 -51
  252. package/dist/packages/tabs/tabs.stories.d.ts +0 -11
  253. package/dist/packages/tabs/tabs.stories.js +0 -93
  254. package/dist/packages/textarea/index.d.ts +0 -1
  255. package/dist/packages/textarea/index.js +0 -1
  256. package/dist/packages/textarea/locales/da/messages.d.mts +0 -1
  257. package/dist/packages/textarea/locales/da/messages.mjs +0 -1
  258. package/dist/packages/textarea/locales/en/messages.d.mts +0 -1
  259. package/dist/packages/textarea/locales/en/messages.mjs +0 -1
  260. package/dist/packages/textarea/locales/fi/messages.d.mts +0 -1
  261. package/dist/packages/textarea/locales/fi/messages.mjs +0 -1
  262. package/dist/packages/textarea/locales/nb/messages.d.mts +0 -1
  263. package/dist/packages/textarea/locales/nb/messages.mjs +0 -1
  264. package/dist/packages/textarea/locales/sv/messages.d.mts +0 -1
  265. package/dist/packages/textarea/locales/sv/messages.mjs +0 -1
  266. package/dist/packages/textarea/react.d.ts +0 -11
  267. package/dist/packages/textarea/react.js +0 -21
  268. package/dist/packages/textarea/styles.d.ts +0 -1
  269. package/dist/packages/textarea/styles.js +0 -2
  270. package/dist/packages/textarea/textarea.d.ts +0 -48
  271. package/dist/packages/textarea/textarea.js +0 -2475
  272. package/dist/packages/textarea/textarea.js.map +0 -7
  273. package/dist/packages/textarea/textarea.react.stories.d.ts +0 -33
  274. package/dist/packages/textarea/textarea.react.stories.js +0 -41
  275. package/dist/packages/textarea/textarea.stories.d.ts +0 -19
  276. package/dist/packages/textarea/textarea.stories.js +0 -85
  277. package/dist/packages/textarea/textarea.test.d.ts +0 -1
  278. package/dist/packages/textarea/textarea.test.js +0 -49
  279. package/dist/packages/toggle-styles.d.ts +0 -1
  280. package/dist/packages/toggle-styles.js +0 -108
  281. package/dist/setup-tests.d.ts +0 -1
  282. package/dist/setup-tests.js +0 -1
@@ -1,12 +1,11 @@
1
1
  import { LitElement } from 'lit';
2
- type ButtonVariant = 'primary' | 'secondary' | 'negative' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet';
3
- declare const WarpLink_base: import("@open-wc/form-control").Constructor<import("@open-wc/form-control").FormControlInterface> & typeof LitElement;
2
+ type ButtonVariant = 'primary' | 'secondary' | 'negative' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet';
4
3
  /**
5
4
  * Buttons are used to perform actions, with different visuals for different needs.
6
5
  *
7
6
  * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)
8
7
  */
9
- declare class WarpLink extends WarpLink_base {
8
+ declare class WarpLink extends LitElement {
10
9
  static shadowRootOptions: {
11
10
  delegatesFocus: boolean;
12
11
  mode: ShadowRootMode;
@@ -15,18 +14,13 @@ declare class WarpLink extends WarpLink_base {
15
14
  };
16
15
  autofocus: boolean;
17
16
  variant: ButtonVariant;
18
- quiet: boolean;
19
17
  small: boolean;
20
18
  href: string;
21
19
  disabled: boolean;
22
20
  target: string;
23
21
  rel: string;
24
22
  fullWidth: boolean;
25
- buttonClass: string;
26
- name: string;
27
- classes: string;
28
23
  static styles: import("lit").CSSResult[];
29
- constructor();
30
24
  connectedCallback(): void;
31
25
  firstUpdated(): void;
32
26
  render(): import("lit").TemplateResult<1>;
@@ -1,4 +1,4 @@
1
- var N=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var h=(b,e,l,a)=>{for(var i=a>1?void 0:a?O(e,l):e,u=b.length-1,m;u>=0;u--)(m=b[u])&&(i=(a?m(e,l,i):m(i))||i);return a&&i&&N(e,l,i),i};var t=function(b,e,l,a){if(l==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?b!==e||!a:!e.has(b))throw new TypeError("Cannot read private member from an object whose class did not declare it");return l==="m"?a:l==="a"?a.call(b):a?a.value:e.get(b)},s=function(b,e,l,a,i){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?b!==e||!i:!e.has(b))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?i.call(b,l):i?i.value=l:e.set(b,l),l};function Z(b){var e,l,a,i,u,m,f,W,x,Y,E,j,V,y,M,w,S,T,P;class G extends b{constructor(...r){var o,n,d;super(...r),e.add(this),this.internals=this.attachInternals(),l.set(this,!1),a.set(this,!1),i.set(this,!1),u.set(this,void 0),m.set(this,void 0),f.set(this,!0),x.set(this,""),Y.set(this,()=>{s(this,i,!0,"f"),s(this,l,!0,"f"),t(this,e,"m",w).call(this)}),E.set(this,()=>{s(this,l,!1,"f"),t(this,e,"m",S).call(this,this.shouldFormValueUpdate()?t(this,x,"f"):""),!this.validity.valid&&t(this,i,"f")&&s(this,a,!0,"f");let p=t(this,e,"m",w).call(this);this.validationMessageCallback&&this.validationMessageCallback(p?this.internals.validationMessage:"")}),j.set(this,()=>{var p;t(this,f,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),s(this,f,!1,"f")),s(this,i,!0,"f"),s(this,a,!0,"f"),t(this,e,"m",w).call(this),(p=this===null||this===void 0?void 0:this.validationMessageCallback)===null||p===void 0||p.call(this,this.showError?this.internals.validationMessage:"")}),V.set(this,void 0),y.set(this,!1),M.set(this,Promise.resolve()),(o=this.addEventListener)===null||o===void 0||o.call(this,"focus",t(this,Y,"f")),(n=this.addEventListener)===null||n===void 0||n.call(this,"blur",t(this,E,"f")),(d=this.addEventListener)===null||d===void 0||d.call(this,"invalid",t(this,j,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let r=this.validators.map(d=>d.attribute).flat(),o=super.observedAttributes||[];return[...new Set([...o,...r])]}static getValidator(r){return this.validators.find(o=>o.attribute===r)||null}static getValidators(r){return this.validators.filter(o=>{var n;if(o.attribute===r||!((n=o.attribute)===null||n===void 0)&&n.includes(r))return!0})}get form(){return this.internals.form}get showError(){return t(this,e,"m",w).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(r,o,n){var d;(d=super.attributeChangedCallback)===null||d===void 0||d.call(this,r,o,n);let z=this.constructor.getValidators(r);z!=null&&z.length&&this.validationTarget&&this.setValue(t(this,x,"f"))}setValue(r){var o;s(this,a,!1,"f"),(o=this.validationMessageCallback)===null||o===void 0||o.call(this,""),s(this,x,r,"f");let d=this.shouldFormValueUpdate()?r:null;this.internals.setFormValue(d),t(this,e,"m",S).call(this,d),this.valueChangedCallback&&this.valueChangedCallback(d),t(this,e,"m",w).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(r=>r(t(this,M,"f")))}formResetCallback(){var r,o;s(this,i,!1,"f"),s(this,a,!1,"f"),t(this,e,"m",w).call(this),(r=this.resetFormControl)===null||r===void 0||r.call(this),(o=this.validationMessageCallback)===null||o===void 0||o.call(this,t(this,e,"m",w).call(this)?this.validationMessage:"")}}return l=new WeakMap,a=new WeakMap,i=new WeakMap,u=new WeakMap,m=new WeakMap,f=new WeakMap,x=new WeakMap,Y=new WeakMap,E=new WeakMap,j=new WeakMap,V=new WeakMap,y=new WeakMap,M=new WeakMap,e=new WeakSet,W=function(){let r=this.getRootNode(),o=`${this.localName}[name="${this.getAttribute("name")}"]`;return r.querySelectorAll(o)},w=function(){if(this.hasAttribute("disabled"))return!1;let r=t(this,a,"f")||t(this,i,"f")&&!this.validity.valid&&!t(this,l,"f");return r&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),r},S=function(r){let o=this.constructor,n={},d=o.validators,p=[],z=d.some(v=>v.isValid instanceof Promise);t(this,y,"f")||(s(this,M,new Promise(v=>{s(this,V,v,"f")}),"f"),s(this,y,!0,"f")),t(this,u,"f")&&(t(this,u,"f").abort(),s(this,m,t(this,u,"f"),"f"));let C=new AbortController;s(this,u,C,"f");let F,A=!1;d.length&&(d.forEach(v=>{let X=v.key||"customError",k=v.isValid(this,r,C.signal);k instanceof Promise?(p.push(k),k.then(q=>{q!=null&&(n[X]=!q,F=t(this,e,"m",P).call(this,v,r),t(this,e,"m",T).call(this,n,F))})):(n[X]=!k,this.validity[X]!==!k&&(A=!0),!k&&!F&&(F=t(this,e,"m",P).call(this,v,r)))}),Promise.allSettled(p).then(()=>{var v;C!=null&&C.signal.aborted||(s(this,y,!1,"f"),(v=t(this,V,"f"))===null||v===void 0||v.call(this))}),(A||!z)&&t(this,e,"m",T).call(this,n,F))},T=function(r,o){if(this.validationTarget)this.internals.setValidity(r,o,this.validationTarget),s(this,f,!1,"f");else{if(this.internals.setValidity(r,o),this.internals.validity.valid)return;s(this,f,!0,"f")}},P=function(r,o){if(this.validityCallback){let n=this.validityCallback(r.key||"customError");if(n)return n}return r.message instanceof Function?r.message(this,o):r.message},G}import{html as H,LitElement as Q}from"lit";import{property as g}from"lit/decorators.js";import{classMap as D}from"lit/directives/class-map.js";import{css as B}from"lit";var U=B`
1
+ var u=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var e=(d,a,i,n)=>{for(var t=n>1?void 0:n?h(a,i):a,c=d.length-1,l;c>=0;c--)(l=d[c])&&(t=(n?l(a,i,t):l(t))||t);return n&&t&&u(a,i,t),t};import{html as m,LitElement as g}from"lit";import{property as o}from"lit/decorators.js";import{classMap as f}from"lit/directives/class-map.js";import{css as s}from"lit";var b=s`
2
2
  *,
3
3
  :before,
4
4
  :after {
@@ -271,7 +271,7 @@ var N=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var h=(b,e,l,a
271
271
  svg {
272
272
  pointer-events: none;
273
273
  }
274
- `,er=B`*, :before, :after {
274
+ `,y=s`*, :before, :after {
275
275
  --w-rotate: 0;
276
276
  --w-rotate-x: 0;
277
277
  --w-rotate-y: 0;
@@ -2437,7 +2437,7 @@ var N=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var h=(b,e,l,a
2437
2437
  display: none
2438
2438
  }
2439
2439
  }
2440
- `;import{css as I}from"lit";var $=I`.w-button,
2440
+ `;import{css as w}from"lit";var v=w`.w-button,
2441
2441
  .w-button--secondary {
2442
2442
  /* Local scoped variables, given the default button (the secondary variant) as a default */
2443
2443
  --_background: var(--background, var(--w-s-color-background));
@@ -2529,6 +2529,10 @@ var N=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var h=(b,e,l,a
2529
2529
  --color: var(--w-s-color-text);
2530
2530
  --border-width: 0px;
2531
2531
  }
2532
+ .w-button--quiet {
2533
+ --background: transparent;
2534
+ --border-width: 0px;
2535
+ }
2532
2536
  .w-button--overlay {
2533
2537
  --background: var(--w-color-background);
2534
2538
  --background-hover: var(--w-color-background-hover);
@@ -2570,6 +2574,38 @@ var N=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var h=(b,e,l,a
2570
2574
  --font-weight: normal;
2571
2575
  display: inline;
2572
2576
  }
2577
+ .w-button--overlay {
2578
+ --background: var(--w-color-background);
2579
+ --background-hover: var(--w-color-background-hover);
2580
+ --background-active: var(--w-color-background-active);
2581
+ --color: var(--w-s-color-text);
2582
+ --border-radius: 9999px;
2583
+ --border-width: 0px;
2584
+ }
2585
+ .w-button--overlay-quiet {
2586
+ --background: transparent;
2587
+ --background-hover: var(--w-s-color-background-hover);
2588
+ --background-active: var(--w-s-color-background-active);
2589
+ --color: var(--w-s-color-text);
2590
+ --border-radius: 9999px;
2591
+ --border-width: 0px;
2592
+ }
2593
+ .w-button--overlay-inverted {
2594
+ --background: var(--w-s-color-background-inverted);
2595
+ --background-hover: var(--w-s-color-background-inverted-hover);
2596
+ --background-active: var(--w-s-color-background-inverted-active);
2597
+ --color: var(--w-s-color-text-inverted);
2598
+ --border-radius: 9999px;
2599
+ --border-width: 0px;
2600
+ }
2601
+ .w-button--overlay-inverted-quiet {
2602
+ --background: transparent;
2603
+ --background-hover: var(--w-s-color-background-inverted-hover);
2604
+ --background-active: var(--w-s-color-background-inverted-active);
2605
+ --color: var(--w-s-color-text-inverted);
2606
+ --border-radius: 9999px;
2607
+ --border-width: 0px;
2608
+ }
2573
2609
 
2574
2610
  /* States config, selects --loading as well since loading is always supposed to be disabled */
2575
2611
  .w-button:disabled,
@@ -2635,12 +2671,12 @@ var N=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var h=(b,e,l,a
2635
2671
  100% {
2636
2672
  background-position: 60px 0;
2637
2673
  }
2638
- }`;var R=["primary","secondary","negative","negativeQuiet","utility","utilityQuiet","pill","link"],c=class extends Z(Q){constructor(){super(),this.variant="secondary"}connectedCallback(){if(super.connectedCallback(),!R.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
2639
- ${R.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){let e={"w-button":this.variant!=="link","w-button--primary":this.variant==="primary","w-button--secondary":this.variant==="secondary","w-button--negative":this.variant==="negative","w-button--utility":this.variant==="utility","w-button--quiet":this.variant==="quiet","w-button--negative-quiet":this.variant==="negativeQuiet","w-button--utility-quiet":this.variant==="utilityQuiet","w-button--small":this.small,"w-button--full-width":this.fullWidth,"w-button--disabled":this.disabled};return H`<a
2674
+ }`;var p=["primary","secondary","negative","negativeQuiet","utility","utilityQuiet","quiet","link","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"],r=class extends g{constructor(){super(...arguments);this.variant="secondary"}connectedCallback(){if(super.connectedCallback(),!p.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
2675
+ ${p.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){let i={"w-button":this.variant!=="link","w-button--primary":this.variant==="primary","w-button--secondary":this.variant==="secondary","w-button--negative":this.variant==="negative","w-button--utility":this.variant==="utility","w-button--quiet":this.variant==="quiet","w-button--negative-quiet":this.variant==="negativeQuiet","w-button--utility-quiet":this.variant==="utilityQuiet","w-button--overlay":this.variant==="overlay","w-button--overlay-inverted":this.variant==="overlayInverted","w-button--overlay-quiet":this.variant==="overlayQuiet","w-button--overlay-inverted-quiet":this.variant==="overlayInvertedQuiet","w-button--small":this.small,"w-button--full-width":this.fullWidth,"w-button--disabled":this.disabled};return m`<a
2640
2676
  href=${this.href}
2641
2677
  target=${this.target}
2642
2678
  rel=${this.target==="_blank"?this.rel||"noopener":void 0}
2643
- class=${D(e)}>
2679
+ class=${f(i)}>
2644
2680
  <slot></slot>
2645
- </a>`}};c.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},c.styles=[U,$],h([g({type:Boolean,reflect:!0})],c.prototype,"autofocus",2),h([g({reflect:!0})],c.prototype,"variant",2),h([g({type:Boolean,reflect:!0})],c.prototype,"quiet",2),h([g({type:Boolean,reflect:!0})],c.prototype,"small",2),h([g({reflect:!0})],c.prototype,"href",2),h([g({type:Boolean,reflect:!0})],c.prototype,"disabled",2),h([g({reflect:!0})],c.prototype,"target",2),h([g({reflect:!0})],c.prototype,"rel",2),h([g({attribute:"full-width",type:Boolean,reflect:!0})],c.prototype,"fullWidth",2),h([g({attribute:"button-class",reflect:!0})],c.prototype,"buttonClass",2),h([g({reflect:!0})],c.prototype,"name",2);customElements.get("w-link")||customElements.define("w-link",c);export{c as WarpLink};
2681
+ </a>`}};r.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},r.styles=[b,v],e([o({type:Boolean,reflect:!0})],r.prototype,"autofocus",2),e([o({reflect:!0})],r.prototype,"variant",2),e([o({type:Boolean,reflect:!0})],r.prototype,"small",2),e([o({reflect:!0})],r.prototype,"href",2),e([o({type:Boolean,reflect:!0})],r.prototype,"disabled",2),e([o({reflect:!0})],r.prototype,"target",2),e([o({reflect:!0})],r.prototype,"rel",2),e([o({attribute:"full-width",type:Boolean,reflect:!0})],r.prototype,"fullWidth",2);customElements.get("w-link")||customElements.define("w-link",r);export{r as WarpLink};
2646
2682
  //# sourceMappingURL=index.js.map