@loadsmart/miranda-wc 2.1.0 → 3.0.0-beta.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 (159) hide show
  1. package/dist/{alarm-w4NUx-rp-BmRYbQEM.js → alarm-ClEvktQy-Dx1i3ncJ.js} +1 -1
  2. package/dist/{alert-circle-C9OayCok-B7xAoPb7.js → alert-circle-D3-zk-yN-E3Mw2Ya9.js} +1 -1
  3. package/dist/{anchor-BaCuyEZX-BZcDKz8T.js → anchor-aajIyEsU-RlK1GQFa.js} +1 -1
  4. package/dist/{arrow-left-BsPExOUg-DzrWKb3H.js → arrow-left-Ccdwi2lQ-DmAdlJxt.js} +1 -1
  5. package/dist/{arrow-right-Bu-KwOrV-BqRNS90P.js → arrow-right-BTgbbGsW-n8nuklh6.js} +1 -1
  6. package/dist/{arrow-sort-down-CTJRI2Ij-U8np-YzG.js → arrow-sort-down-BFi5ko_d-COaapmGj.js} +1 -1
  7. package/dist/{arrow-sort-up-DHmFk86f-DjEMhI-p.js → arrow-sort-up-bZbEGYPY-DreNJ6bb.js} +1 -1
  8. package/dist/{arrow-sort-up-down-qBAksbYU-B2D4RBJp.js → arrow-sort-up-down-DrB_En7--D1aUB1xq.js} +1 -1
  9. package/dist/{attention-DmmMIK7b-gZEusG5g.js → attention-C8woNT4E-BUO1Ru8v.js} +1 -1
  10. package/dist/{automatic-DBMfz3g4-Bgzdb975.js → automatic-DqgICJh--DoIItUqs.js} +1 -1
  11. package/dist/{bank-DYOUF1Qq-CbJioynM.js → bank-CrJbT0v--BXDcwCHy.js} +1 -1
  12. package/dist/{bell-B2RIK0M6-Bp9voTMM.js → bell-6VlkaJAP-DicH4dYS.js} +1 -1
  13. package/dist/{bell-cancel-SDGlBezD-DoRmW2dW.js → bell-cancel-DNDcejCY-ztNzbg-S.js} +1 -1
  14. package/dist/{blind-bol-DYfAF7D_-C69pgCqI.js → blind-bol-cbqpFayf-DRp_J18A.js} +1 -1
  15. package/dist/{bolt-D0T3CTGg-SvH9Jj-e.js → bolt-BdDzzV7K-9_QaaddR.js} +1 -1
  16. package/dist/{bolt-off-tzLu9lXJ-DOmNqijD.js → bolt-off-Xyeum8V0-DdihEMLf.js} +1 -1
  17. package/dist/{box-DfRR1ulG-DUeCaJiS.js → box-DNAh1pwA-Cagcqn0G.js} +1 -1
  18. package/dist/{burguer-menu-D3s4vhTS-DjmzZm55.js → burguer-menu-CceCKQPT-42lJhCTU.js} +1 -1
  19. package/dist/{calendar-C6MhKSQ1-CPDlLAKL.js → calendar-CmOChPa2-BTsVh4_L.js} +1 -1
  20. package/dist/{camera-Gl1fuhfw-CbLr73G6.js → camera-Cpx1xWiF-DIQoAS1w.js} +1 -1
  21. package/dist/{canada-flag-ClanoJtT-B50ZPPPW.js → canada-flag-bDi1W_H_-CrLjeQS4.js} +1 -1
  22. package/dist/{caret-down-wGLVtNTQ-CPsGVWi5.js → caret-down-CrZloOlx-wF5TYN5o.js} +1 -1
  23. package/dist/{caret-left-4qQU4dSk-DfTKQQCm.js → caret-left-BLPOpenf-PlqzdBmX.js} +1 -1
  24. package/dist/{caret-right-C4qu4AqQ-hh9exD87.js → caret-right-C_fQHZCD-D2c7Xxot.js} +1 -1
  25. package/dist/{caret-up-drbqMAlT-HF7x802b.js → caret-up-B-poM2Ul-DHGHIaJ4.js} +1 -1
  26. package/dist/{chat-5UMSZeQ2-4VnWPZJ4.js → chat-CH_OoH6w-CQeD7Aoq.js} +1 -1
  27. package/dist/{check-DIL4h60y-Ct-b3sf6.js → check-CWwENvrP-B_qyIhZg.js} +1 -1
  28. package/dist/{clock-BHpfQ8F--D_nJ2UXr.js → clock-BAzhmCDI-BrrTOYsX.js} +1 -1
  29. package/dist/{close-CML1EIvi-1jH_HJiq.js → close-D1KXSU1e-BqtboDki.js} +1 -1
  30. package/dist/{clown-qSd-cPs5-CtMEBWd8.js → clown-Dbdy1LyP-C3_9sPDQ.js} +1 -1
  31. package/dist/{comment-Cae7x1KB-iEpKQSW-.js → comment-BaK9TPVc-BiQEYr9Y.js} +1 -1
  32. package/dist/{company-T35tA5gd-0dNkP7Rj.js → company-CFhQBP2S-CpLnOvF3.js} +1 -1
  33. package/dist/components/button/base-button.styles.d.ts +1 -1
  34. package/dist/components/button/button.d.ts +73 -39
  35. package/dist/components/checkbox/checkbox.d.ts +35 -47
  36. package/dist/components/checkbox/index.d.ts +1 -1
  37. package/dist/components/component/component.d.ts +2 -0
  38. package/dist/components/component/form-component.d.ts +5 -0
  39. package/dist/components/component/form-component.mixin.d.ts +17 -0
  40. package/dist/components/component/index.d.ts +3 -0
  41. package/dist/components/field/field.context.d.ts +2 -2
  42. package/dist/components/field/field.d.ts +1 -0
  43. package/dist/components/field/field.styles.d.ts +2 -0
  44. package/dist/components/labeled-value/labeled-value-label.d.ts +4 -0
  45. package/dist/components/popover/popover.d.ts +4 -4
  46. package/dist/components/progress-bar-countdown/progress-bar-countdown.d.ts +1 -1
  47. package/dist/components/radio-group/index.d.ts +1 -1
  48. package/dist/components/radio-group/radio-group.d.ts +44 -28
  49. package/dist/components/radio-group/radio-group.styles.d.ts +2 -2
  50. package/dist/components/radio-group/radio.d.ts +17 -19
  51. package/dist/components/switch/index.d.ts +1 -1
  52. package/dist/components/switch/switch.d.ts +26 -31
  53. package/dist/components/text/text.d.ts +13 -7
  54. package/dist/components/text-area/text-area.d.ts +35 -52
  55. package/dist/components/text-field/text-field.d.ts +37 -48
  56. package/dist/components/toggle-group/index.d.ts +1 -1
  57. package/dist/components/toggle-group/toggle-group.d.ts +49 -29
  58. package/dist/components/toggle-group/toggle-group.styles.d.ts +2 -2
  59. package/dist/components/toggle-group/toggle.d.ts +17 -16
  60. package/dist/components/tooltip/tooltip.d.ts +19 -9
  61. package/dist/components/tooltip/tooltip.helpers.d.ts +1 -1
  62. package/dist/{contract-BM65T47z-DV_FXT7o.js → contract-BgrFRUoS-CEBozvMs.js} +1 -1
  63. package/dist/controllers/focus-manager/focus-manager.controller.d.ts +3 -3
  64. package/dist/controllers/selection/index.d.ts +4 -1
  65. package/dist/controllers/selection/legacy-selection.controller.d.ts +36 -0
  66. package/dist/controllers/selection/selection-control.d.ts +5 -0
  67. package/dist/controllers/selection/selection-control.mixin.d.ts +13 -0
  68. package/dist/controllers/selection/selection.controller.d.ts +25 -26
  69. package/dist/{credit-card-Ba3HSNMP-7B5CPgSb.js → credit-card-CZu8wwxT-CMjr4JtL.js} +1 -1
  70. package/dist/{delivery--Ca9irJt-CjzX2g3_.js → delivery-CaGuAImD-BboDCunG.js} +1 -1
  71. package/dist/{dislike-hNfAprn0-nPspnGgp.js → dislike-EH_2F1CS-OYF-Q-IW.js} +1 -1
  72. package/dist/{dollar-DOTSyNln-CwwxqRe4.js → dollar-IwsR93DG-znaOjEgb.js} +1 -1
  73. package/dist/{dollar-circle-4cWeXRkY-D0o4LBCO.js → dollar-circle-Ct4XrnUR-Df9QrB31.js} +1 -1
  74. package/dist/{dots-horizontal-BaeHh5uG-Ba-SKFCQ.js → dots-horizontal-fGWUQNrN-C0rUBURy.js} +1 -1
  75. package/dist/{dots-vertical-Iec7OSE1-CRvawBge.js → dots-vertical-COn3fUe8-CMgY1dDV.js} +1 -1
  76. package/dist/{double-caret-left-cYE3d8lk-DebxdpyY.js → double-caret-left-CR_XqsEH-GoPoQs_q.js} +1 -1
  77. package/dist/{double-caret-right-CQZ5u4Bz-s5Ue9XVx.js → double-caret-right-DnSZzrYh-CNQnxPBg.js} +1 -1
  78. package/dist/{email-BPWijEjF-DZNcwJky.js → email-B_5fU6Y3-CU0_IHQ9.js} +1 -1
  79. package/dist/{email-filled-BAvfMYJs-C6JsvdMA.js → email-filled-DaJlXCaP-4MzP_dsn.js} +1 -1
  80. package/dist/{eye-AthrVnne-Umsnwzdw.js → eye-DLgVfqBl-DkiflePQ.js} +1 -1
  81. package/dist/{fast-5ZOdx3Rg-D9yWqWI7.js → fast-V2fDwYnL-BxYOUgas.js} +1 -1
  82. package/dist/{favorite-BtwjGbEU-DKHtwKHL.js → favorite-B9jJ1m2L-C28sLz6Z.js} +1 -1
  83. package/dist/{filter-DFCZnGIe-CSUOgesC.js → filter-BhwZyBT1-CeT3Kkmp.js} +1 -1
  84. package/dist/{flag-CJjIJyQh-D0YQqa6C.js → flag-C-6O4IF2-Nkk-kuhP.js} +1 -1
  85. package/dist/{folder-DiKv_t_I-C-tElPgn.js → folder-Bmz1BiaD-CyLXMeci.js} +1 -1
  86. package/dist/{funnel-Chc-WBbM-CqsvBYp4.js → funnel-DcwG6aD5-B411UBGq.js} +1 -1
  87. package/dist/{gear-DDDWiYKV-BA1Mm4Kw.js → gear-COmwDiUj-3gAAo0vn.js} +1 -1
  88. package/dist/{graph-nK3uktak-B7Qtknu7.js → graph-Bymiuuu6-DdNSjQgD.js} +1 -1
  89. package/dist/{hand-DalfnoE8-DbUGFIPN.js → hand-aNua9p5C-DYP0PX5U.js} +1 -1
  90. package/dist/{high-signal-BFiaqsHy-DWWhDKe4.js → high-signal-DQI9HoGk-Lx7fIVtd.js} +1 -1
  91. package/dist/{history-Bl_9vhi4-mZxvW34D.js → history-CJXcFsLp-DdDTds5P.js} +1 -1
  92. package/dist/{home-BK-0nN6K-mYymjQL1.js → home-CZ-tv2IQ-DxsDjOhm.js} +1 -1
  93. package/dist/{hourglass-Dc0eK_H_-BJHOFBPm.js → hourglass-Ctylh8jm-CED18o82.js} +1 -1
  94. package/dist/{indeterminate-Bya3vcaZ-B7BUZ6vF.js → indeterminate-ChV29ni3-CR3_Mg4Q.js} +1 -1
  95. package/dist/{index-BXT-EaD1.js → index-aME_oSSl.js} +2457 -1614
  96. package/dist/index.js +1 -1
  97. package/dist/{info-Dyx4kwtx-CqCzl7ej.js → info-CAt2fElH-Y-l5aRjt.js} +1 -1
  98. package/dist/{info-circle-DXkfHc-K-CJAkI1Io.js → info-circle-CBKNuyAF-CvwSRLup.js} +1 -1
  99. package/dist/{kanban-CDOjvTl4-BeSB9yRb.js → kanban-BZlrCfVV-okMSg5ko.js} +1 -1
  100. package/dist/{like-CKw4whze-_YBq7Aje.js → like-C7Z9AqwX-DvARvmqI.js} +1 -1
  101. package/dist/{link-Gq220f9v-C6PogyFU.js → link-xI6HkqkQ-CNfSpvsz.js} +1 -1
  102. package/dist/{list-CGjTg9F8-MhhXeD_B.js → list-KfWanjih-B6tEQ-6J.js} +1 -1
  103. package/dist/{log-out-DndAyJma-OclABdvN.js → log-out-WsgOSNPj-BrDKs9Af.js} +1 -1
  104. package/dist/{low-signal-CrzbA01P-JsC6OPzR.js → low-signal-DdNhY8hw-DFJKrnNQ.js} +1 -1
  105. package/dist/{map-DnS-0nAn-DW-gWq7O.js → map-jeobYqG2-C3qL5ASd.js} +1 -1
  106. package/dist/{medal-7ECzT02N-dRJQNpeF.js → medal-BxnX91kx-BR2kPxB4.js} +1 -1
  107. package/dist/{megaphone-DRZc0DSp-CuSE47a9.js → megaphone-B0fUSOj2-BWmOz6w5.js} +1 -1
  108. package/dist/{mexico-flag-BT_GhNh6-BfVXe4nk.js → mexico-flag-XyiZ8KGY-YHijI08g.js} +1 -1
  109. package/dist/{minus-iTbgiUUf-Dw3xMwMm.js → minus-h-eKltqW-Q950Mh52.js} +1 -1
  110. package/dist/mixins/polymorphic-tag/polymorphic-tag.d.ts +2 -2
  111. package/dist/{network-signal-DoxJE425-DD4QRCSh.js → network-signal-Dwr4KAep-DNPsZmIG.js} +1 -1
  112. package/dist/{no-awarded-BEg4XvQo-DkvEC3W9.js → no-awarded-Cfu77I8Q-gF-VMDaR.js} +1 -1
  113. package/dist/{notes-lock-Bh-4txKp-Bg4SCWNa.js → notes-lock-CLjvC3kU-Cwm5yxCu.js} +1 -1
  114. package/dist/{padlock-S5nyMfsX-DMLRMxzg.js → padlock-Btc4aStq-B0eNM7Wy.js} +1 -1
  115. package/dist/{padlock-open-BjZWrB1I-D-J4YYVt.js → padlock-open-DiPv8dLT-Dnte16N6.js} +1 -1
  116. package/dist/{pencil-wk_lo54n-ByVqVKvX.js → pencil-Ba571u0x-VSOGm1ZD.js} +1 -1
  117. package/dist/{phone-OTH-wucK-CjP6rix0.js → phone-By2Qb--s-BlRjhRLY.js} +1 -1
  118. package/dist/{pin-bLVBPZTV-Bz7Ma2mf.js → pin-Cjr86hU9--E0AI6Zj.js} +1 -1
  119. package/dist/{plus-ozFIfK2K-C6VTAhgo.js → plus-iRiklC_j-B5hSaVgz.js} +1 -1
  120. package/dist/{pre-confirmed-load-7dhHEljm-Blp1lP7I.js → pre-confirmed-load-CLC53BJM-YSFxJ0i2.js} +1 -1
  121. package/dist/{print-MRNbN0L6-CWS8LUB8.js → print-Dw8YauIR-CZcR7pGZ.js} +1 -1
  122. package/dist/{profile-CrWXxhjN-BZYoYc-f.js → profile-DsvXPyOg-D1KcBqB-.js} +1 -1
  123. package/dist/{question-CYU3H0XU-DlWDpPcW.js → question-QtNojcRe-CiNlJl87.js} +1 -1
  124. package/dist/{road-BzANu9lx-Bt7bU9_X.js → road-CZSBc2xd-CNsozSwJ.js} +1 -1
  125. package/dist/{satellite-imWnssFH-eeWBQQ38.js → satellite-DAr696xz-Bw3kxgEm.js} +1 -1
  126. package/dist/{search-_Cv793b3-CWzIO3J6.js → search-CO_Zf95E-C44sXHcR.js} +1 -1
  127. package/dist/{send-BeTaWbwn-sWjL5nsK.js → send-BisNie7M-tbVy6Zjc.js} +1 -1
  128. package/dist/{ship-CGUI1eMq-BX31YXwx.js → ship-YjLzGOJX-PDaQ-gUl.js} +1 -1
  129. package/dist/{signal-BKjJOHPc-0omNBbMG.js → signal-ZyiQ3ON3-B6vlzsFG.js} +1 -1
  130. package/dist/{sparkle-DezYw4Fs-DHhIPKQk.js → sparkle-B7obP7to-CsUG7GF2.js} +1 -1
  131. package/dist/{star-DBmjnONs-3esp3qU5.js → star-BlB1Bqki-CKRIQ9fA.js} +1 -1
  132. package/dist/{tag-DQyrgl7x-CmwgE0VZ.js → tag-DCtTuGfd-BlE8CZ8A.js} +1 -1
  133. package/dist/{telephone-BmiZ7SFm-Dni9NFr1.js → telephone-D1BH4Hzx-KjDWmuuz.js} +1 -1
  134. package/dist/{terminal-CgxADoEs-AZDSMwTu.js → terminal-D-ZbFJQA-D5yryOVh.js} +1 -1
  135. package/dist/{timer-DoSQwnm7-BGJMOrgZ.js → timer-C70GbLeN-ChWwvwyo.js} +1 -1
  136. package/dist/{tms-ready-C22wOl93-B8oz9xBL.js → tms-ready-eUPB99YI-Bn4kPgy1.js} +1 -1
  137. package/dist/tokens.js +2 -2
  138. package/dist/{trash-B55qy0OS-BZcRo7xY.js → trash-DMd6NgRP-C03t4NJC.js} +1 -1
  139. package/dist/{trend-down-kcjg1gLd-lbFdALu7.js → trend-down-DOuKcfat-BPxpgt2R.js} +1 -1
  140. package/dist/{trend-up-2yU-5NIA-0uC_btRu.js → trend-up-BKyTTwnq-CZQqoUdq.js} +1 -1
  141. package/dist/{trophee-Dl1OuipW-sfQBfYGW.js → trophee-JK2CFFAo-EQS4CFOT.js} +1 -1
  142. package/dist/{united-states-flag-CrhCzAXh-DgRm2LLg.js → united-states-flag-gUx1otDH-igCcN1pY.js} +1 -1
  143. package/dist/{upgrade-Csv1_l6I-C20M7zib.js → upgrade-BHlrXXws-K1B5AwyZ.js} +1 -1
  144. package/dist/{user-COyFpFPE-0VApQHH3.js → user-DFCTsnF9-DvJDkTBg.js} +1 -1
  145. package/dist/utils/selection/selection-strategy.types.d.ts +1 -1
  146. package/dist/{wallet-ChO0_ccG-BpPR3FgZ.js → wallet-DKS8Imd5-sNKLkxN3.js} +1 -1
  147. package/dist/{warehouse-CVwTVH2N-ZLcyaZVY.js → warehouse-B6S3_Csk-C2hvK_Es.js} +1 -1
  148. package/dist/{wifi-R27kDIkM-DaB3fC8F.js → wifi-BRqdYqV1-D6O-s6nl.js} +1 -1
  149. package/dist/{wifi-off-C4FqQ8FF-PpmaKGrs.js → wifi-off-BlI_5Cun-B9FNeYzQ.js} +1 -1
  150. package/dist/{zoom-in-BfJrh-0k-Bn6kRriD.js → zoom-in-CmSyIRfi-DDVsvYzT.js} +1 -1
  151. package/dist/{zoom-out-CaGxkwez-GKHD_Mg8.js → zoom-out-BEBAzX23--vsu75qb.js} +1 -1
  152. package/package.json +3 -3
  153. package/dist/components/checkbox/checkbox.constants.d.ts +0 -2
  154. package/dist/components/field/field-hint.styles.d.ts +0 -2
  155. package/dist/components/form-control/form-control.d.ts +0 -19
  156. package/dist/components/form-control/index.d.ts +0 -1
  157. package/dist/components/radio-group/radio-button.styles.d.ts +0 -2
  158. package/dist/components/radio-group/radio-group.constants.d.ts +0 -1
  159. package/dist/components/toggle-group/toggle.styles.d.ts +0 -2
@@ -2,7 +2,7 @@ import type { PropertyValues } from 'lit';
2
2
  import type { PopoverProps } from './popover.types';
3
3
  import { Component } from '../component';
4
4
  export declare const POPOVER_PLACEMENT_VALUES: string[];
5
- export declare abstract class Popover extends Component {
5
+ export declare class Popover extends Component {
6
6
  #private;
7
7
  static get properties(): {
8
8
  position: {
@@ -42,9 +42,9 @@ export declare abstract class Popover extends Component {
42
42
  disconnectedCallback(): void;
43
43
  protected firstUpdated(): void;
44
44
  updated(changedProperties: PropertyValues<this>): void;
45
- abstract getReferenceElement(): HTMLElement | null;
46
- abstract getFloatingElement(): HTMLElement | null;
47
- abstract getArrowElement(): HTMLElement | null;
45
+ getReferenceElement(): HTMLElement | null;
46
+ getFloatingElement(): HTMLElement | null;
47
+ getArrowElement(): HTMLElement | null;
48
48
  getFloatingOffset: () => number;
49
49
  get reference(): HTMLElement | null;
50
50
  get floating(): HTMLElement | null;
@@ -2,7 +2,7 @@ import type { ProgressBarProps } from '../progress-bar';
2
2
  import { ProgressBar } from '../progress-bar';
3
3
  export type ProgressBarCountdownProps = Omit<ProgressBarProps, 'variant'>;
4
4
  export declare class ProgressBarCountdown extends ProgressBar implements ProgressBarCountdownProps {
5
- get currentVariant(): "warning" | "danger" | "success";
5
+ get currentVariant(): "danger" | "warning" | "success";
6
6
  }
7
7
  declare global {
8
8
  interface HTMLElementTagNameMap {
@@ -1,4 +1,4 @@
1
1
  export { Radio } from './radio';
2
2
  export type { RadioProps } from './radio';
3
3
  export { RadioGroup } from './radio-group';
4
- export type { RadioGroupProps, RadioGroupOrientation, RadioGroupChangeEventDetail, } from './radio-group';
4
+ export type { RadioGroupProps, RadioGroupOrientation } from './radio-group';
@@ -1,65 +1,81 @@
1
1
  import type { PropertyValues } from 'lit';
2
- import { LitElement } from 'lit';
3
- import type { AcceptedType, SelectionState, SelectionType } from '../../controllers/selection';
2
+ import { Component } from '../component';
3
+ import { fromAttribute } from '../../controllers/selection';
4
+ import type { AcceptedType, SelectionType } from '../../controllers/selection';
4
5
  export type RadioGroupOrientation = 'vertical' | 'horizontal';
5
- export type RadioGroupChangeEventDetail = {
6
- type: SelectionType;
7
- value: string;
8
- };
9
6
  export interface RadioGroupProps {
10
- value?: AcceptedType;
7
+ initialValue?: AcceptedType;
11
8
  disabled?: boolean;
9
+ name?: string;
12
10
  orientation?: RadioGroupOrientation;
13
- 'm-change'?: (event: CustomEvent<RadioGroupChangeEventDetail>) => void;
11
+ value?: AcceptedType;
12
+ onchange?: GlobalEventHandlers['onchange'];
14
13
  }
15
- export declare class RadioGroup extends LitElement implements RadioGroupProps {
14
+ declare const RadioGroup_base: import("../../utils/types").Constructor<import("../../controllers/selection/selection-control.mixin").WithSelectionControlMixinInterface> & typeof Component;
15
+ export declare class RadioGroup extends RadioGroup_base implements RadioGroupProps {
16
16
  #private;
17
17
  static styles: import("lit").CSSResult[];
18
18
  static get properties(): {
19
- value: {
20
- type: StringConstructor;
21
- reflect: boolean;
22
- };
23
19
  disabled: {
24
20
  type: BooleanConstructor;
21
+ };
22
+ initialValue: {
23
+ type: StringConstructor;
24
+ attribute: string;
25
+ fromAttribute: typeof fromAttribute;
25
26
  reflect: boolean;
26
27
  };
27
- selection: {
28
- state: boolean;
28
+ /**
29
+ * We use a different property name internally so the react wrapper can still
30
+ * keep track of the property while we can use custom getter/setter to
31
+ * set and reflect the `value` attribute.
32
+ */
33
+ providedValue: {
34
+ type: StringConstructor;
35
+ attribute: string;
36
+ fromAttribute: typeof fromAttribute;
37
+ };
38
+ name: {
39
+ type: StringConstructor;
40
+ reflect: boolean;
29
41
  };
30
42
  orientation: {
31
43
  type: StringConstructor;
32
44
  };
33
45
  };
34
46
  /**
35
- * Value of the selected radio-button.
47
+ * Name that will represent this radio group in the form.
36
48
  */
37
- value: RadioGroupProps['value'];
49
+ name: RadioGroupProps['name'];
38
50
  /**
39
- * Type of the selected radio-button.
40
- * It is necessary due to eligibility as a SelectionHost for the SelectionController
51
+ * Should the button be disabled.
41
52
  */
42
- type: SelectionType;
53
+ disabled: RadioGroupProps['disabled'];
43
54
  /**
44
- * Should the button be disabled.
55
+ * Buttons display orientation (vertical or horizontal)
45
56
  */
46
- disabled: boolean;
57
+ orientation: RadioGroupProps['orientation'];
47
58
  /**
48
- * Inner toggle selection state.
59
+ * Value that will be selected by default on initialization and form reset.
49
60
  */
50
- selection: SelectionState;
61
+ initialValue: RadioGroupProps['initialValue'];
51
62
  /**
52
- * Buttons display orientation (vertical or horizontal)
63
+ * Current selected value.
53
64
  */
54
- orientation: RadioGroupOrientation;
65
+ providedValue: RadioGroupProps['value'];
55
66
  constructor();
56
- connectedCallback(): void;
67
+ getSelectionType(): SelectionType;
68
+ connectedCallback(): Promise<void>;
69
+ disconnectedCallback(): void;
57
70
  protected update(changedProperties: PropertyValues<this>): void;
58
- protected updated(changedProperties: PropertyValues<this>): void;
59
71
  render(): import("lit-html").TemplateResult<1>;
72
+ get value(): string;
73
+ set value(value: string);
74
+ protected handleFormReset: () => void;
60
75
  }
61
76
  declare global {
62
77
  interface HTMLElementTagNameMap {
63
78
  'm-radio-group': RadioGroup;
64
79
  }
65
80
  }
81
+ export {};
@@ -1,2 +1,2 @@
1
- declare function styles(): import("lit").CSSResult;
2
- export default styles;
1
+ export declare function radioGroupStyles(): import("lit").CSSResult;
2
+ export declare function radioStyles(): import("lit").CSSResult;
@@ -1,46 +1,44 @@
1
1
  import type { PropertyValues } from 'lit';
2
- import { LitElement } from 'lit';
3
- export interface RadioProps {
4
- value: string;
5
- disabled?: boolean;
2
+ import { Component } from '../component';
3
+ import type { FormComponentProps } from '../component';
4
+ export interface RadioProps extends FormComponentProps {
6
5
  checked?: boolean;
6
+ value: string;
7
7
  }
8
- export declare class Radio extends LitElement implements RadioProps {
8
+ declare const Radio_base: import("../../utils/types").Constructor<import("../component/form-component.mixin").WithFormComponentMixinInterface> & typeof Component;
9
+ export declare class Radio extends Radio_base implements RadioProps {
9
10
  #private;
10
11
  static styles: import("lit").CSSResult[];
11
12
  static get properties(): {
12
- value: {
13
- type: StringConstructor;
14
- };
15
- disabled: {
13
+ checked: {
16
14
  type: BooleanConstructor;
17
15
  reflect: boolean;
18
16
  };
19
- checked: {
20
- type: BooleanConstructor;
17
+ value: {
18
+ type: StringConstructor;
21
19
  reflect: boolean;
22
20
  };
23
21
  };
24
22
  /**
25
23
  * Value of the button, raised with the event.
26
24
  */
27
- value: string;
28
- /**
29
- * Should the button be disabled.
30
- */
31
- disabled: boolean;
25
+ value: RadioProps['value'];
32
26
  /**
33
27
  * The button initial state
34
28
  */
35
- checked: boolean;
29
+ checked: RadioProps['checked'];
36
30
  constructor();
37
31
  connectedCallback(): void;
38
- protected updated(changedProperties: PropertyValues<this>): void;
32
+ disconnectedCallback(): void;
33
+ protected update(changedProperties: PropertyValues<this>): void;
39
34
  render(): import("lit-html").TemplateResult<1>;
40
- focus(options?: FocusOptions | undefined): void;
35
+ formResetCallback(): void;
36
+ formStateRestoreCallback(state: unknown): void;
37
+ formDisabledCallback(disabled: boolean): void;
41
38
  }
42
39
  declare global {
43
40
  interface HTMLElementTagNameMap {
44
41
  'm-radio': Radio;
45
42
  }
46
43
  }
44
+ export {};
@@ -1,2 +1,2 @@
1
1
  export { Switch } from './switch';
2
- export type { SwitchProps, SwitchChangeEventDetail, SwitchSize, } from './switch';
2
+ export type { SwitchProps, SwitchSize } from './switch';
@@ -1,59 +1,54 @@
1
1
  import type { PropertyValues } from 'lit';
2
- import { Component } from '../component';
2
+ import { FormComponent } from '../component';
3
+ import type { FormComponentProps } from '../component';
3
4
  export type SwitchSize = 'default' | 'large';
4
- export type SwitchChangeEventDetail = {
5
- name?: string;
6
- checked: boolean;
7
- };
8
- export interface SwitchProps {
9
- name?: string;
10
- disabled?: boolean;
5
+ export interface SwitchProps extends FormComponentProps {
11
6
  checked?: boolean;
7
+ initialChecked?: boolean;
12
8
  size?: SwitchSize;
13
- 'm-change'?: (event: CustomEvent<SwitchChangeEventDetail>) => void;
9
+ onchange?: ((this: GlobalEventHandlers, event: Event) => unknown) | null;
14
10
  }
15
- export declare class Switch extends Component implements SwitchProps {
11
+ export declare class Switch extends FormComponent implements SwitchProps {
16
12
  #private;
13
+ static shadowRootOptions: {
14
+ delegatesFocus: boolean;
15
+ mode: ShadowRootMode;
16
+ slotAssignment?: SlotAssignmentMode | undefined;
17
+ };
17
18
  static styles: import("lit").CSSResult[][];
18
19
  static get properties(): {
19
- name: {
20
- type: StringConstructor;
21
- reflect: boolean;
22
- };
23
- disabled: {
20
+ checked: {
24
21
  type: BooleanConstructor;
25
22
  reflect: boolean;
26
23
  };
27
- checked: {
24
+ initialChecked: {
28
25
  type: BooleanConstructor;
29
- reflect: boolean;
26
+ attribute: string;
30
27
  };
31
28
  size: {
32
29
  type: StringConstructor;
33
30
  reflect: boolean;
34
31
  };
35
32
  };
36
- /**
37
- * Switch name.
38
- */
39
- name: SwitchProps['name'];
40
- /**
41
- * Option to disable the switch.
42
- */
43
- disabled: SwitchProps['disabled'];
44
- /**
45
- * Option to check the switch.
46
- */
47
- checked: SwitchProps['checked'];
48
33
  /**
49
34
  * Switch size.
50
35
  */
51
36
  size: SwitchProps['size'];
52
- constructor();
53
- connectedCallback(): void;
37
+ /**
38
+ * Should the switch be checked initially or when the form it is in is reset.
39
+ */
40
+ initialChecked: SwitchProps['initialChecked'];
41
+ createRenderRoot(): Element | ShadowRoot;
42
+ connectedCallback(): Promise<void>;
54
43
  disconnectedCallback(): void;
55
44
  updated(changedProperties: PropertyValues<this>): void;
56
45
  render(): import("lit-html").TemplateResult<1>;
46
+ get input(): HTMLInputElement | null;
47
+ set checked(checked: boolean);
48
+ get checked(): boolean;
49
+ formResetCallback(): void;
50
+ formStateRestoreCallback(state: unknown): void;
51
+ formDisabledCallback(disabled: boolean): void;
57
52
  }
58
53
  declare global {
59
54
  interface HTMLElementTagNameMap {
@@ -1,21 +1,21 @@
1
1
  import { LitElement } from 'lit';
2
2
  import type { PropertyValues } from 'lit';
3
3
  import type { ColorToken } from '@loadsmart/miranda-tokens';
4
- import type { TypographyVariant } from '../../styles/typography';
5
- import type { HTMLTag } from '../../mixins/polymorphic-tag';
4
+ import type { TypographyVariant } from '../../styles';
5
+ type HTMLTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
6
6
  export interface TextProps {
7
7
  as?: HTMLTag;
8
8
  color?: ColorToken;
9
9
  ellipsized?: boolean;
10
10
  variant?: TypographyVariant;
11
11
  }
12
- declare const Text_base: import("../../utils/types").Constructor<{
13
- as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span";
14
- readonly tag: import("lit-html/static").StaticValue;
15
- }> & typeof LitElement;
16
- export declare class Text extends Text_base implements TextProps {
12
+ export declare class Text extends LitElement implements TextProps {
17
13
  static styles: import("lit").CSSResult[];
18
14
  static get properties(): {
15
+ as: {
16
+ type: StringConstructor;
17
+ reflect: boolean;
18
+ };
19
19
  color: {
20
20
  type: StringConstructor;
21
21
  reflect: boolean;
@@ -44,6 +44,12 @@ export declare class Text extends Text_base implements TextProps {
44
44
  * @type {TypographyVariant}
45
45
  */
46
46
  variant: TypographyVariant;
47
+ /**
48
+ * Which HTML tag should be used to render this element.
49
+ * @type {HTMLTag}
50
+ * @deprecated wrap the text in the desired tag
51
+ */
52
+ as?: HTMLTag;
47
53
  constructor();
48
54
  protected update(changedProperties: PropertyValues<this>): void;
49
55
  render(): import("lit-html").TemplateResult;
@@ -1,50 +1,49 @@
1
1
  import type { PropertyValues } from 'lit';
2
- import { Component } from '../component';
3
- import type { FieldStatus } from '../field';
4
- export interface TextAreaProps {
2
+ import { FormComponent } from '../component';
3
+ import type { FormComponentProps } from '../component';
4
+ export interface TextAreaProps extends FormComponentProps {
5
5
  autosize?: boolean;
6
6
  autocomplete?: 'off' | 'on';
7
7
  cols?: number;
8
+ initialValue?: string;
8
9
  dirname?: string;
9
- disabled?: boolean;
10
- 'max-length'?: number;
11
- 'min-length'?: number;
12
- name?: string;
10
+ maxLength?: number;
11
+ minLength?: number;
13
12
  placeholder?: string;
14
13
  resize?: 'none' | 'both' | 'horizontal' | 'vertical' | 'block' | 'inline';
15
- 'read-only'?: boolean;
14
+ readOnly?: boolean;
16
15
  rows?: number;
17
- 'spell-check'?: boolean | 'default';
18
- status?: FieldStatus;
16
+ spellCheck?: boolean | 'default';
19
17
  value?: string;
20
18
  wrap?: 'hard' | 'soft';
21
19
  textarea: HTMLTextAreaElement | null;
22
20
  onchange?: GlobalEventHandlers['onchange'];
23
21
  oninput?: GlobalEventHandlers['oninput'];
24
22
  }
25
- export declare class TextArea extends Component {
23
+ export declare class TextArea extends FormComponent implements TextAreaProps {
26
24
  #private;
27
25
  static styles: import("lit").CSSResult[];
28
26
  static get properties(): {
29
- autosize: {
30
- type: BooleanConstructor;
31
- };
32
27
  autocomplete: {
33
28
  type: BooleanConstructor;
34
29
  };
35
30
  autofocus: {
36
31
  type: BooleanConstructor;
37
32
  };
33
+ autosize: {
34
+ type: BooleanConstructor;
35
+ };
38
36
  cols: {
39
37
  type: NumberConstructor;
40
38
  };
41
- dirname: {
39
+ initialValue: {
42
40
  type: StringConstructor;
43
- };
44
- disabled: {
45
- type: BooleanConstructor;
41
+ attribute: string;
46
42
  reflect: boolean;
47
43
  };
44
+ dirname: {
45
+ type: StringConstructor;
46
+ };
48
47
  maxLength: {
49
48
  type: NumberConstructor;
50
49
  reflect: boolean;
@@ -55,9 +54,6 @@ export declare class TextArea extends Component {
55
54
  reflect: boolean;
56
55
  attribute: string;
57
56
  };
58
- name: {
59
- type: StringConstructor;
60
- };
61
57
  placeholder: {
62
58
  type: StringConstructor;
63
59
  };
@@ -80,14 +76,11 @@ export declare class TextArea extends Component {
80
76
  };
81
77
  value: {
82
78
  type: StringConstructor;
79
+ reflect: boolean;
83
80
  };
84
81
  wrap: {
85
82
  type: StringConstructor;
86
83
  };
87
- status: {
88
- type: StringConstructor;
89
- reflect: boolean;
90
- };
91
84
  };
92
85
  /**
93
86
  * This attribute indicates whether the textarea height should automatically adjust to its content.
@@ -124,26 +117,15 @@ export declare class TextArea extends Component {
124
117
  * [`dirname` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/dirname).
125
118
  */
126
119
  dirname: TextAreaProps['dirname'];
127
- /**
128
- * This Boolean attribute indicates that the user cannot interact with the control. If this
129
- * attribute is not specified, the control inherits its setting from the containing element,
130
- * for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset);
131
- * if there is no containing element when the `disabled` attribute is set, the control is enabled.
132
- */
133
- disabled: TextAreaProps['disabled'];
134
120
  /**
135
121
  * The maximum string length (measured in UTF-16 code units) that the user can enter. If this value
136
122
  * isn't specified, the user can enter an unlimited number of characters.
137
123
  */
138
- maxLength: TextAreaProps['max-length'];
124
+ maxLength: TextAreaProps['maxLength'];
139
125
  /**
140
126
  * The minimum string length (measured in UTF-16 code units) required that the user should enter.
141
127
  */
142
- minLength: TextAreaProps['min-length'];
143
- /**
144
- * The name of the control.
145
- */
146
- name: TextAreaProps['name'];
128
+ minLength: TextAreaProps['minLength'];
147
129
  /**
148
130
  * A hint to the user of what can be entered in the control. Carriage returns or line-feeds within the
149
131
  * placeholder text must be treated as line breaks when rendering the hint.
@@ -154,7 +136,7 @@ export declare class TextArea extends Component {
154
136
  * `disabled` attribute, the `readonly` attribute does not prevent the user from clicking or selecting
155
137
  * in the control. The value of a read-only control is still submitted with the form.
156
138
  */
157
- readOnly: TextAreaProps['read-only'];
139
+ readOnly: TextAreaProps['readOnly'];
158
140
  /**
159
141
  * Determines whether an element is resizable, and if so, in which directions.
160
142
  *
@@ -167,13 +149,9 @@ export declare class TextArea extends Component {
167
149
  */
168
150
  rows: TextAreaProps['rows'];
169
151
  /**
170
- * Text area status type.
171
- */
172
- status: TextAreaProps['status'];
173
- /**
174
- * Text area value.
152
+ * Text area default value.
175
153
  */
176
- value?: TextAreaProps['value'];
154
+ initialValue?: TextAreaProps['initialValue'];
177
155
  /**
178
156
  * Indicates how the control should wrap the value for form submission. Possible values are:
179
157
  * - `hard`: The browser automatically inserts line breaks (CR+LF) so that each line is no longer than
@@ -185,18 +163,23 @@ export declare class TextArea extends Component {
185
163
  * If this attribute is not specified, soft is its default value.
186
164
  */
187
165
  wrap: TextAreaProps['wrap'];
188
- private textAreaElement;
189
- /**
190
- * If there's a m-field ancestor, we want to consume its context.
191
- */
192
- private field;
193
166
  constructor();
194
- connectedCallback(): void;
195
- protected update(changedProperties: PropertyValues<this>): void;
167
+ createRenderRoot(): Element | ShadowRoot;
168
+ connectedCallback(): Promise<void>;
169
+ disconnectedCallback(): void;
170
+ update(changedProperties: PropertyValues<this>): void;
196
171
  protected updated(changedProperties: PropertyValues<this>): void;
197
172
  render(): import("lit-html").TemplateResult<1>;
198
173
  get textarea(): HTMLTextAreaElement | null;
174
+ /**
175
+ * Textarea value.
176
+ */
177
+ set value(value: string);
178
+ get value(): string;
199
179
  focus(): void;
180
+ formResetCallback(): void;
181
+ formStateRestoreCallback(state: string): void;
182
+ formDisabledCallback(disabled: boolean): void;
200
183
  }
201
184
  declare global {
202
185
  interface HTMLElementTagNameMap {