@politiet/sheriff-web-components 2.13.0 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/custom-elements.json +3996 -1344
  2. package/dist/controllers/index.d.ts +3 -0
  3. package/dist/controllers/index.d.ts.map +1 -0
  4. package/dist/controllers/index.js +3 -0
  5. package/dist/controllers/index.js.map +1 -0
  6. package/dist/controllers/sds-drag-drop-controller.d.ts +25 -0
  7. package/dist/controllers/sds-drag-drop-controller.d.ts.map +1 -0
  8. package/dist/controllers/sds-drag-drop-controller.js +52 -0
  9. package/dist/controllers/sds-drag-drop-controller.js.map +1 -0
  10. package/dist/controllers/sds-file-preview-controller.d.ts +38 -0
  11. package/dist/controllers/sds-file-preview-controller.d.ts.map +1 -0
  12. package/dist/controllers/sds-file-preview-controller.js +90 -0
  13. package/dist/controllers/sds-file-preview-controller.js.map +1 -0
  14. package/dist/frameworks/preact.d.ts +14 -1
  15. package/dist/frameworks/preact.d.ts.map +1 -1
  16. package/dist/frameworks/react.d.ts +30 -1
  17. package/dist/frameworks/react.d.ts.map +1 -1
  18. package/dist/frameworks/solidjs.d.ts +4 -0
  19. package/dist/frameworks/solidjs.d.ts.map +1 -1
  20. package/dist/frameworks/svelte.d.ts +4 -0
  21. package/dist/frameworks/svelte.d.ts.map +1 -1
  22. package/dist/frameworks/vue.d.ts +24 -1
  23. package/dist/frameworks/vue.d.ts.map +1 -1
  24. package/dist/index.d.ts +8 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +4 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/mixins/sds-dialog-target-mixin.d.ts.map +1 -1
  29. package/dist/mixins/sds-dialog-target-mixin.js +10 -0
  30. package/dist/mixins/sds-dialog-target-mixin.js.map +1 -1
  31. package/dist/react-wrappers/SDSDialogWrapper.d.ts +1 -0
  32. package/dist/react-wrappers/SDSDialogWrapper.d.ts.map +1 -1
  33. package/dist/react-wrappers/SDSDialogWrapper.js +1 -0
  34. package/dist/react-wrappers/SDSDialogWrapper.js.map +1 -1
  35. package/dist/react-wrappers/SDSFileUploadFileListWrapper.d.ts +3 -0
  36. package/dist/react-wrappers/SDSFileUploadFileListWrapper.d.ts.map +1 -0
  37. package/dist/react-wrappers/SDSFileUploadFileListWrapper.js +10 -0
  38. package/dist/react-wrappers/SDSFileUploadFileListWrapper.js.map +1 -0
  39. package/dist/react-wrappers/SDSFileUploadItemWrapper.d.ts +6 -0
  40. package/dist/react-wrappers/SDSFileUploadItemWrapper.d.ts.map +1 -0
  41. package/dist/react-wrappers/SDSFileUploadItemWrapper.js +12 -0
  42. package/dist/react-wrappers/SDSFileUploadItemWrapper.js.map +1 -0
  43. package/dist/react-wrappers/SDSFileUploadWrapper.d.ts +12 -0
  44. package/dist/react-wrappers/SDSFileUploadWrapper.d.ts.map +1 -0
  45. package/dist/react-wrappers/SDSFileUploadWrapper.js +18 -0
  46. package/dist/react-wrappers/SDSFileUploadWrapper.js.map +1 -0
  47. package/dist/react-wrappers/SDSSearchWrapper.d.ts +15 -0
  48. package/dist/react-wrappers/SDSSearchWrapper.d.ts.map +1 -0
  49. package/dist/react-wrappers/SDSSearchWrapper.js +19 -0
  50. package/dist/react-wrappers/SDSSearchWrapper.js.map +1 -0
  51. package/dist/react-wrappers/index.d.ts +4 -0
  52. package/dist/react-wrappers/index.d.ts.map +1 -1
  53. package/dist/react-wrappers/index.js +4 -0
  54. package/dist/react-wrappers/index.js.map +1 -1
  55. package/dist/sds-button/sds-button.component.d.ts +0 -1
  56. package/dist/sds-button/sds-button.component.d.ts.map +1 -1
  57. package/dist/sds-button/sds-button.component.js +10 -16
  58. package/dist/sds-button/sds-button.component.js.map +1 -1
  59. package/dist/sds-button/sds-button.styles.d.ts.map +1 -1
  60. package/dist/sds-button/sds-button.styles.js +7 -2
  61. package/dist/sds-button/sds-button.styles.js.map +1 -1
  62. package/dist/sds-dialog/sds-dialog.component.d.ts.map +1 -1
  63. package/dist/sds-dialog/sds-dialog.component.js +11 -1
  64. package/dist/sds-dialog/sds-dialog.component.js.map +1 -1
  65. package/dist/sds-file-upload/sds-file-upload.d.ts +102 -0
  66. package/dist/sds-file-upload/sds-file-upload.d.ts.map +1 -0
  67. package/dist/sds-file-upload/sds-file-upload.js +384 -0
  68. package/dist/sds-file-upload/sds-file-upload.js.map +1 -0
  69. package/dist/sds-file-upload/sds-file-upload.styles.d.ts +2 -0
  70. package/dist/sds-file-upload/sds-file-upload.styles.d.ts.map +1 -0
  71. package/dist/sds-file-upload/sds-file-upload.styles.js +234 -0
  72. package/dist/sds-file-upload/sds-file-upload.styles.js.map +1 -0
  73. package/dist/sds-file-upload-file-list/sds-file-upload-file-list.d.ts +14 -0
  74. package/dist/sds-file-upload-file-list/sds-file-upload-file-list.d.ts.map +1 -0
  75. package/dist/sds-file-upload-file-list/sds-file-upload-file-list.js +26 -0
  76. package/dist/sds-file-upload-file-list/sds-file-upload-file-list.js.map +1 -0
  77. package/dist/sds-file-upload-file-list/sds-file-upload-file-list.styles.d.ts +2 -0
  78. package/dist/sds-file-upload-file-list/sds-file-upload-file-list.styles.d.ts.map +1 -0
  79. package/dist/sds-file-upload-file-list/sds-file-upload-file-list.styles.js +19 -0
  80. package/dist/sds-file-upload-file-list/sds-file-upload-file-list.styles.js.map +1 -0
  81. package/dist/sds-file-upload-item/assets/u-progress.js +2 -0
  82. package/dist/sds-file-upload-item/sds-file-upload-item.d.ts +62 -0
  83. package/dist/sds-file-upload-item/sds-file-upload-item.d.ts.map +1 -0
  84. package/dist/sds-file-upload-item/sds-file-upload-item.js +205 -0
  85. package/dist/sds-file-upload-item/sds-file-upload-item.js.map +1 -0
  86. package/dist/sds-file-upload-item/sds-file-upload-item.styles.d.ts +2 -0
  87. package/dist/sds-file-upload-item/sds-file-upload-item.styles.d.ts.map +1 -0
  88. package/dist/sds-file-upload-item/sds-file-upload-item.styles.js +227 -0
  89. package/dist/sds-file-upload-item/sds-file-upload-item.styles.js.map +1 -0
  90. package/dist/sds-radio/sds-radio.d.ts +53 -1
  91. package/dist/sds-radio/sds-radio.d.ts.map +1 -1
  92. package/dist/sds-radio/sds-radio.js +218 -41
  93. package/dist/sds-radio/sds-radio.js.map +1 -1
  94. package/dist/sds-radio/sds-radio.styles.js +36 -36
  95. package/dist/sds-radio/sds-radio.styles.js.map +1 -1
  96. package/dist/sds-radio-group/sds-radio-group.d.ts +4 -2
  97. package/dist/sds-radio-group/sds-radio-group.d.ts.map +1 -1
  98. package/dist/sds-radio-group/sds-radio-group.js +10 -3
  99. package/dist/sds-radio-group/sds-radio-group.js.map +1 -1
  100. package/dist/sds-search/sds-search.component.d.ts +128 -0
  101. package/dist/sds-search/sds-search.component.d.ts.map +1 -0
  102. package/dist/sds-search/sds-search.component.js +345 -0
  103. package/dist/sds-search/sds-search.component.js.map +1 -0
  104. package/dist/sds-search/sds-search.d.ts +13 -0
  105. package/dist/sds-search/sds-search.d.ts.map +1 -0
  106. package/dist/sds-search/sds-search.js +18 -0
  107. package/dist/sds-search/sds-search.js.map +1 -0
  108. package/dist/sds-search/sds-search.styles.d.ts +2 -0
  109. package/dist/sds-search/sds-search.styles.d.ts.map +1 -0
  110. package/dist/sds-search/sds-search.styles.js +74 -0
  111. package/dist/sds-search/sds-search.styles.js.map +1 -0
  112. package/dist/sds-textfield/sds-textfield.component.d.ts +4 -1
  113. package/dist/sds-textfield/sds-textfield.component.d.ts.map +1 -1
  114. package/dist/sds-textfield/sds-textfield.component.js +20 -5
  115. package/dist/sds-textfield/sds-textfield.component.js.map +1 -1
  116. package/dist/sds-textfield/sds-textfield.styles.d.ts.map +1 -1
  117. package/dist/sds-textfield/sds-textfield.styles.js +11 -0
  118. package/dist/sds-textfield/sds-textfield.styles.js.map +1 -1
  119. package/dist/sheriff-web-components.js +1104 -375
  120. package/dist/skill/SKILL.md +136 -42
  121. package/dist/skill/references/components.md +332 -35
  122. package/dist/skill/references/react-wrappers.md +41 -9
  123. package/dist/utils/file-validation.d.ts +31 -0
  124. package/dist/utils/file-validation.d.ts.map +1 -0
  125. package/dist/utils/file-validation.js +57 -0
  126. package/dist/utils/file-validation.js.map +1 -0
  127. package/dist/utils/format-bytes.d.ts +6 -0
  128. package/dist/utils/format-bytes.d.ts.map +1 -0
  129. package/dist/utils/format-bytes.js +13 -0
  130. package/dist/utils/format-bytes.js.map +1 -0
  131. package/dist/utils/video-thumbnail.d.ts +8 -0
  132. package/dist/utils/video-thumbnail.d.ts.map +1 -0
  133. package/dist/utils/video-thumbnail.js +77 -0
  134. package/dist/utils/video-thumbnail.js.map +1 -0
  135. package/dist/version.d.ts +1 -1
  136. package/dist/version.js +1 -1
  137. package/dist/version.js.map +1 -1
  138. package/package.json +24 -4
  139. package/web-types.json +3452 -1048
package/dist/index.js CHANGED
@@ -5,6 +5,9 @@ export { SDSCheckbox } from './sds-checkbox/sds-checkbox';
5
5
  export { SDSCheckboxGroup } from './sds-checkbox-group/sds-checkbox-group';
6
6
  export { SDSChip } from './sds-chip/sds-chip';
7
7
  export { SDSEnvironmentBanner } from './sds-environment-banner/sds-environment-banner';
8
+ export { SDSFileUpload } from './sds-file-upload/sds-file-upload';
9
+ export { SDSFileUploadItem } from './sds-file-upload-item/sds-file-upload-item';
10
+ export { SDSFileUploadFileList } from './sds-file-upload-file-list/sds-file-upload-file-list';
8
11
  export { SDSDetails } from './sds-details/sds-details';
9
12
  export { SDSDetailsGroup } from './sds-details-group/sds-details-group';
10
13
  export { SDSDialog } from './sds-dialog/sds-dialog';
@@ -18,6 +21,7 @@ export { SDSProcessStep } from './sds-process-step/sds-process-step';
18
21
  export { SDSPopover } from './sds-popover/sds-popover';
19
22
  export { SDSRadio } from './sds-radio/sds-radio';
20
23
  export { SDSRadioGroup } from './sds-radio-group/sds-radio-group';
24
+ export { SDSSearch } from './sds-search/sds-search';
21
25
  export { SDSSelect } from './sds-select/sds-select';
22
26
  export { SDSStepper } from './sds-stepper/sds-stepper';
23
27
  export { SDSStepperStep } from './sds-stepper-step/s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AM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAGrE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG7D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export { SDSAlert } from './sds-alert/sds-alert';\nexport type { SDSAlertProps } from './sds-alert/sds-alert.component';\n\nexport { SDSButton } from './sds-button/sds-button';\nexport type { SDSButtonProps } from './sds-button/sds-button.component';\n\nexport { SDSCard } from './sds-card/sds-card';\nexport type { SDSCardProps } from './sds-card/sds-card';\n\nexport { SDSCheckbox } from './sds-checkbox/sds-checkbox';\nexport type { SDSCheckboxProps } from './sds-checkbox/sds-checkbox';\n\nexport { SDSCheckboxGroup } from './sds-checkbox-group/sds-checkbox-group';\nexport type { SDSCheckboxGroupProps } from './sds-checkbox-group/sds-checkbox-group';\n\nexport { SDSChip } from './sds-chip/sds-chip';\nexport type { SDSChipProps } from './sds-chip/sds-chip';\n\nexport { SDSEnvironmentBanner } from './sds-environment-banner/sds-environment-banner';\nexport type { SDSEnvironmentBannerProps, EnvironmentBannerEnv } from './sds-environment-banner/sds-environment-banner.component';\n\nexport { SDSDetails } from './sds-details/sds-details';\nexport type { SDSDetailsProps as SDSDetailProps } from './sds-details/sds-details';\n\nexport { SDSDetailsGroup } from './sds-details-group/sds-details-group';\nexport type { SDSDetailsGroupProps } from './sds-details-group/sds-details-group';\n\nexport { SDSDialog } from './sds-dialog/sds-dialog';\nexport type { SDSDialogProps } from './sds-dialog/sds-dialog.component';\n\nexport { SDSHeading } from './sds-heading/sds-heading';\nexport type { SDSHeadingProps } from './sds-heading/sds-heading.component';\n\nexport { SDSIcon } from './sds-icon/sds-icon';\nexport type { SDSIconProps } from './sds-icon/sds-icon.component';\n\nexport { SDSInternalHeader } from './sds-internal-header/sds-internal-header';\nexport type { SDSInternalHeaderProps } from './sds-internal-header/sds-internal-header.component';\n\nexport { SDSLoader } from './sds-loader/sds-loader';\nexport type { SDSLoaderProps } from './sds-loader/sds-loader';\n\nexport { SDSNotification } from './sds-notification/sds-notification';\nexport type { SDSNotificationProps } from './sds-notification/sds-notification';\n\nexport { SDSProcess } from './sds-process/sds-process';\nexport type { SDSProcessProps } from './sds-process/sds-process';\n\nexport { SDSProcessStep } from './sds-process-step/sds-process-step';\nexport type { SDSProcessStepProps } from './sds-process-step/sds-process-step';\nexport { SDSPopover } from './sds-popover/sds-popover';\nexport type { SDSPopoverProps } from './sds-popover/sds-popover';\n\nexport { SDSRadio } from './sds-radio/sds-radio';\nexport type { SDSRadioProps } from './sds-radio/sds-radio';\n\nexport { SDSRadioGroup } from './sds-radio-group/sds-radio-group';\nexport type { SDSRadioGroupProps } from './sds-radio-group/sds-radio-group';\n\nexport { SDSSelect } from './sds-select/sds-select';\nexport type { SDSSelectProps } from './sds-select/sds-select.component';\n\nexport { SDSStepper } from './sds-stepper/sds-stepper';\nexport type { SDSStepperProps } from './sds-stepper/sds-stepper';\n\nexport { SDSStepperStep } from './sds-stepper-step/sds-stepper-step';\nexport type { SDSStepperStepProps } from './sds-stepper-step/sds-stepper-step';\n\nexport { SDSSwitch } from './sds-switch/sds-switch';\nexport type { SDSSwitchProps } from './sds-switch/sds-switch';\n\nexport { SDSTag } from './sds-tag/sds-tag';\nexport type { SDSTagProps } from './sds-tag/sds-tag';\n\nexport { SDSTooltip } from './sds-tooltip/sds-tooltip';\nexport type { SDSTooltipProps } from './sds-tooltip/sds-tooltip';\n\nexport { SDSText } from './sds-text/sds-text';\nexport type { SDSTextProps } from './sds-text/sds-text.component';\n\nexport { SDSTextField } from './sds-textfield/sds-textfield';\nexport type { SDSTextFieldProps } from './sds-textfield/sds-textfield.component';\n\nexport { SDSTextArea } from './sds-textarea/sds-textarea';\nexport type { SDSTextAreaProps } from './sds-textarea/sds-textarea';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAG3E,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AAGvF,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGlE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAGhF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAG9F,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAGxE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAG9E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAGtE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAGrE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG7D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export { SDSAlert } from './sds-alert/sds-alert';\nexport type { SDSAlertProps } from './sds-alert/sds-alert.component';\n\nexport { SDSButton } from './sds-button/sds-button';\nexport type { SDSButtonProps } from './sds-button/sds-button.component';\n\nexport { SDSCard } from './sds-card/sds-card';\nexport type { SDSCardProps } from './sds-card/sds-card';\n\nexport { SDSCheckbox } from './sds-checkbox/sds-checkbox';\nexport type { SDSCheckboxProps } from './sds-checkbox/sds-checkbox';\n\nexport { SDSCheckboxGroup } from './sds-checkbox-group/sds-checkbox-group';\nexport type { SDSCheckboxGroupProps } from './sds-checkbox-group/sds-checkbox-group';\n\nexport { SDSChip } from './sds-chip/sds-chip';\nexport type { SDSChipProps } from './sds-chip/sds-chip';\n\nexport { SDSEnvironmentBanner } from './sds-environment-banner/sds-environment-banner';\nexport type { SDSEnvironmentBannerProps, EnvironmentBannerEnv } from './sds-environment-banner/sds-environment-banner.component';\n\nexport { SDSFileUpload } from './sds-file-upload/sds-file-upload';\nexport type { SDSFileUploadProps, SDSRejectedFile } from './sds-file-upload/sds-file-upload';\n\nexport { SDSFileUploadItem } from './sds-file-upload-item/sds-file-upload-item';\nexport type { SDSFileUploadItemProps } from './sds-file-upload-item/sds-file-upload-item';\n\nexport { SDSFileUploadFileList } from './sds-file-upload-file-list/sds-file-upload-file-list';\nexport type { SDSFileUploadFileListProps } from './sds-file-upload-file-list/sds-file-upload-file-list';\n\nexport { SDSDetails } from './sds-details/sds-details';\nexport type { SDSDetailsProps as SDSDetailProps } from './sds-details/sds-details';\n\nexport { SDSDetailsGroup } from './sds-details-group/sds-details-group';\nexport type { SDSDetailsGroupProps } from './sds-details-group/sds-details-group';\n\nexport { SDSDialog } from './sds-dialog/sds-dialog';\nexport type { SDSDialogProps } from './sds-dialog/sds-dialog.component';\n\nexport { SDSHeading } from './sds-heading/sds-heading';\nexport type { SDSHeadingProps } from './sds-heading/sds-heading.component';\n\nexport { SDSIcon } from './sds-icon/sds-icon';\nexport type { SDSIconProps } from './sds-icon/sds-icon.component';\n\nexport { SDSInternalHeader } from './sds-internal-header/sds-internal-header';\nexport type { SDSInternalHeaderProps } from './sds-internal-header/sds-internal-header.component';\n\nexport { SDSLoader } from './sds-loader/sds-loader';\nexport type { SDSLoaderProps } from './sds-loader/sds-loader';\n\nexport { SDSNotification } from './sds-notification/sds-notification';\nexport type { SDSNotificationProps } from './sds-notification/sds-notification';\n\nexport { SDSProcess } from './sds-process/sds-process';\nexport type { SDSProcessProps } from './sds-process/sds-process';\n\nexport { SDSProcessStep } from './sds-process-step/sds-process-step';\nexport type { SDSProcessStepProps } from './sds-process-step/sds-process-step';\nexport { SDSPopover } from './sds-popover/sds-popover';\nexport type { SDSPopoverProps } from './sds-popover/sds-popover';\n\nexport { SDSRadio } from './sds-radio/sds-radio';\nexport type { SDSRadioProps } from './sds-radio/sds-radio';\n\nexport { SDSRadioGroup } from './sds-radio-group/sds-radio-group';\nexport type { SDSRadioGroupProps } from './sds-radio-group/sds-radio-group';\n\nexport { SDSSearch } from './sds-search/sds-search';\nexport type { SDSSearchProps, SDSSearchDetail } from './sds-search/sds-search.component';\n\nexport { SDSSelect } from './sds-select/sds-select';\nexport type { SDSSelectProps } from './sds-select/sds-select.component';\n\nexport { SDSStepper } from './sds-stepper/sds-stepper';\nexport type { SDSStepperProps } from './sds-stepper/sds-stepper';\n\nexport { SDSStepperStep } from './sds-stepper-step/sds-stepper-step';\nexport type { SDSStepperStepProps } from './sds-stepper-step/sds-stepper-step';\n\nexport { SDSSwitch } from './sds-switch/sds-switch';\nexport type { SDSSwitchProps } from './sds-switch/sds-switch';\n\nexport { SDSTag } from './sds-tag/sds-tag';\nexport type { SDSTagProps } from './sds-tag/sds-tag';\n\nexport { SDSTooltip } from './sds-tooltip/sds-tooltip';\nexport type { SDSTooltipProps } from './sds-tooltip/sds-tooltip';\n\nexport { SDSText } from './sds-text/sds-text';\nexport type { SDSTextProps } from './sds-text/sds-text.component';\n\nexport { SDSTextField } from './sds-textfield/sds-textfield';\nexport type { SDSTextFieldProps } from './sds-textfield/sds-textfield.component';\n\nexport { SDSTextArea } from './sds-textarea/sds-textarea';\nexport type { SDSTextAreaProps } from './sds-textarea/sds-textarea';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"sds-dialog-target-mixin.d.ts","sourceRoot":"","sources":["../../src/mixins/sds-dialog-target-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAIxC,KAAK,aAAa,GAAG,OAAO,GAAG,eAAe,GAAG,YAAY,CAAC;AAM9D,MAAM,WAAW,6BAA6B;IAC7C,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC;IAC1C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACtC,gBAAgB,IAAI,IAAI,CAAC;CACzB;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,aAAa,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,aAAa,CAAC,6BAA6B,CAAC,GAAG,CAAC,CAkHzI"}
1
+ {"version":3,"file":"sds-dialog-target-mixin.d.ts","sourceRoot":"","sources":["../../src/mixins/sds-dialog-target-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAIxC,KAAK,aAAa,GAAG,OAAO,GAAG,eAAe,GAAG,YAAY,CAAC;AAM9D,MAAM,WAAW,6BAA6B;IAC7C,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC;IAC1C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACtC,gBAAgB,IAAI,IAAI,CAAC;CACzB;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,aAAa,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,aAAa,CAAC,6BAA6B,CAAC,GAAG,CAAC,CA8HzI"}
@@ -22,6 +22,13 @@ export function SDSDialogTargetMixin(superClass) {
22
22
  this._updateCommandTarget();
23
23
  }
24
24
  }
25
+ connectedCallback() {
26
+ super.connectedCallback();
27
+ // React moves keyed nodes by disconnect/reconnect without changing props, so updated() won't re-run.
28
+ if (this.hasUpdated) {
29
+ this._updateCommandTarget();
30
+ }
31
+ }
25
32
  disconnectedCallback() {
26
33
  super.disconnectedCallback();
27
34
  this._cleanupDialogObserver();
@@ -80,6 +87,9 @@ export function SDSDialogTargetMixin(superClass) {
80
87
  }
81
88
  }
82
89
  runDialogCommand() {
90
+ if (!this._dialogElement?.isConnected) {
91
+ this._updateCommandTarget();
92
+ }
83
93
  if (!this._dialogElement) {
84
94
  return;
85
95
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sds-dialog-target-mixin.js","sourceRoot":"","sources":["../../src/mixins/sds-dialog-target-mixin.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO7C,SAAS,WAAW,CAAC,IAAoB;IACxC,OAAO,IAAI,IAAI,IAAI,IAAI,WAAW,IAAI,IAAI,IAAI,cAAc,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,CAAC;AAC3G,CAAC;AAUD,MAAM,UAAU,oBAAoB,CAAsC,UAAa;IACtF,MAAM,eAAgB,SAAQ,UAAU;QASvC,IAAI,gBAAgB;YACnB,OAAO,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,CAAC;QACzC,CAAC;QAED,IAAI,mBAAmB;YACtB,OAAO,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,cAAc,CAAC;QAC/C,CAAC;QAEQ,OAAO,CAAC,OAAuB;YACvC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAEvB,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,CAAC;gBACxH,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC7B,CAAC;QACF,CAAC;QAEQ,oBAAoB;YAC5B,KAAK,CAAC,oBAAoB,EAAE,CAAC;YAC7B,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC/B,CAAC;QAEO,sBAAsB;YAC7B,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;gBAC9B,IAAI,CAAC,mBAAmB,CAAC,UAAU,EAAE,CAAC;gB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IA7GiE;QAAhE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDAAyB;IACrB;QAAnE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDAAqB;IACjC;QAAtD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;wDAA6B;IACzB;QAAzD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;2DAAyB;IA4GnF,OAAO,eAAe,CAAC;AACxB,CAAC","sourcesContent":["import { LitElement, PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Constructable } from './types';\n\nimport type { SDSDialog } from '../sds-dialog/sds-dialog';\n\ntype DialogCommand = 'close' | 'request-close' | 'show-modal';\n\nfunction isSDSDialog(node: Element | null): node is SDSDialog {\n\treturn node != null && 'showModal' in node && 'requestClose' in node && 'close' in node && 'open' in node;\n}\n\nexport interface SDSDialogTargetMixinInterface {\n\tcommand?: DialogCommand;\n\tcommandFor?: string;\n\treadonly effectiveCommand?: DialogCommand;\n\treadonly effectiveCommandFor?: string;\n\trunDialogCommand(): void;\n}\n\nexport function SDSDialogTargetMixin<T extends Constructable<LitElement>>(superClass: T): Constructable<SDSDialogTargetMixinInterface> & T {\n\tclass SDSDialogTarget extends superClass {\n\t\t@property({ type: String, attribute: 'command', reflect: true }) command?: DialogCommand;\n\t\t@property({ type: String, attribute: 'commandfor', reflect: true }) commandFor?: string;\n\t\t@property({ type: String, attribute: 'data-command' }) dataCommand?: DialogCommand;\n\t\t@property({ type: String, attribute: 'data-commandfor' }) dataCommandFor?: string;\n\n\t\tprivate _dialogElement?: SDSDialog;\n\t\tprivate _dialogOpenObserver?: MutationObserver;\n\n\t\tget effectiveCommand(): DialogCommand | undefined {\n\t\t\treturn this.command ?? this.dataCommand;\n\t\t}\n\n\t\tget effectiveCommandFor(): string | undefined {\n\t\t\treturn this.commandFor ?? this.dataCommandFor;\n\t\t}\n\n\t\toverride updated(changed: PropertyValues) {\n\t\t\tsuper.updated(changed);\n\n\t\t\tif (changed.has('command') || changed.has('commandFor') || changed.has('dataCommand') || changed.has('dataCommandFor')) {\n\t\t\t\tthis._updateCommandTarget();\n\t\t\t}\n\t\t}\n\n\t\toverride disconnectedCallback() {\n\t\t\tsuper.disconnectedCallback();\n\t\t\tthis._cleanupDialogObserver();\n\t\t}\n\n\t\tprivate _cleanupDialogObserver() {\n\t\t\tif (this._dialogOpenObserver) {\n\t\t\t\tthis._dialogOpenObserver.disconnect();\n\t\t\t\tthis._dialogOpenObserver = undefined;\n\t\t\t}\n\t\t\tthis._dialogElement = undefined;\n\t\t}\n\n\t\tprivate _observeDialog(button: HTMLButtonElement, dialog: SDSDialog) {\n\t\t\t// Observe the 'open' attribute to detect when the dialog opens\n\t\t\tthis._dialogOpenObserver = new MutationObserver((mutations) => {\n\t\t\t\tfor (const mutation of mutations) {\n\t\t\t\t\tif (mutation.attributeName === 'open') {\n\t\t\t\t\t\tconst isOpen = dialog.hasAttribute('open');\n\t\t\t\t\t\tbutton.setAttribute('aria-expanded', String(isOpen));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis._dialogOpenObserver.observe(dialog, { attributes: true, attributeFilter: ['open'] });\n\t\t}\n\n\t\tprivate _clearAriaFields(button: HTMLButtonElement) {\n\t\t\tbutton.removeAttribute('aria-haspopup');\n\t\t\tbutton.removeAttribute('aria-expanded');\n\t\t\tbutton.removeAttribute('aria-controls');\n\t\t}\n\n\t\tprivate _updateCommandTarget() {\n\t\t\tthis._cleanupDialogObserver();\n\n\t\t\tconst internalButton = this.shadowRoot?.querySelector<HTMLButtonElement>('#control');\n\t\t\tif (!internalButton) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst command = this.effectiveCommand;\n\t\t\tconst commandFor = this.effectiveCommandFor;\n\n\t\t\tif (!commandFor || !command) {\n\t\t\t\tthis._clearAriaFields(internalButton);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst root = this.getRootNode() as Document | ShadowRoot;\n\t\t\tconst targetDialog = root.getElementById?.(commandFor) ?? document.getElementById(commandFor);\n\n\t\t\tif (!isSDSDialog(targetDialog)) {\n\t\t\t\tthis._clearAriaFields(internalButton);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._dialogElement = targetDialog;\n\n\t\t\tif (command === 'show-modal') {\n\t\t\t\tinternalButton.setAttribute('aria-haspopup', 'dialog');\n\t\t\t\tinternalButton.setAttribute('aria-expanded', String(targetDialog.open));\n\t\t\t\tinternalButton.setAttribute('aria-controls', commandFor);\n\t\t\t\tthis._observeDialog(internalButton, targetDialog);\n\t\t\t} else {\n\t\t\t\tthis._clearAriaFields(internalButton);\n\t\t\t}\n\t\t}\n\n\t\trunDialogCommand(): void {\n\t\t\tif (!this._dialogElement) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tswitch (this.effectiveCommand) {\n\t\t\t\tcase 'show-modal':\n\t\t\t\t\tthis._dialogElement.showModal();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'close':\n\t\t\t\t\tthis._dialogElement.close();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'request-close':\n\t\t\t\t\tthis._dialogElement.requestClose();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn SDSDialogTarget;\n}\n"]}
1
+ {"version":3,"file":"sds-dialog-target-mixin.js","sourceRoot":"","sources":["../../src/mixins/sds-dialog-target-mixin.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO7C,SAAS,WAAW,CAAC,IAAoB;IACxC,OAAO,IAAI,IAAI,IAAI,IAAI,WAAW,IAAI,IAAI,IAAI,cAAc,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AE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDAAyB;IACrB;QAAnE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDAAqB;IACjC;QAAtD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;wDAA6B;IACzB;QAAzD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;2DAAyB;IAwHnF,OAAO,eAAe,CAAC;AACxB,CAAC","sourcesContent":["import { LitElement, PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Constructable } from './types';\n\nimport type { SDSDialog } from '../sds-dialog/sds-dialog';\n\ntype DialogCommand = 'close' | 'request-close' | 'show-modal';\n\nfunction isSDSDialog(node: Element | null): node is SDSDialog {\n\treturn node != null && 'showModal' in node && 'requestClose' in node && 'close' in node && 'open' in node;\n}\n\nexport interface SDSDialogTargetMixinInterface {\n\tcommand?: DialogCommand;\n\tcommandFor?: string;\n\treadonly effectiveCommand?: DialogCommand;\n\treadonly effectiveCommandFor?: string;\n\trunDialogCommand(): void;\n}\n\nexport function SDSDialogTargetMixin<T extends Constructable<LitElement>>(superClass: T): Constructable<SDSDialogTargetMixinInterface> & T {\n\tclass SDSDialogTarget extends superClass {\n\t\t@property({ type: String, attribute: 'command', reflect: true }) command?: DialogCommand;\n\t\t@property({ type: String, attribute: 'commandfor', reflect: true }) commandFor?: string;\n\t\t@property({ type: String, attribute: 'data-command' }) dataCommand?: DialogCommand;\n\t\t@property({ type: String, attribute: 'data-commandfor' }) dataCommandFor?: string;\n\n\t\tprivate _dialogElement?: SDSDialog;\n\t\tprivate _dialogOpenObserver?: MutationObserver;\n\n\t\tget effectiveCommand(): DialogCommand | undefined {\n\t\t\treturn this.command ?? this.dataCommand;\n\t\t}\n\n\t\tget effectiveCommandFor(): string | undefined {\n\t\t\treturn this.commandFor ?? this.dataCommandFor;\n\t\t}\n\n\t\toverride updated(changed: PropertyValues) {\n\t\t\tsuper.updated(changed);\n\n\t\t\tif (changed.has('command') || changed.has('commandFor') || changed.has('dataCommand') || changed.has('dataCommandFor')) {\n\t\t\t\tthis._updateCommandTarget();\n\t\t\t}\n\t\t}\n\n\t\toverride connectedCallback() {\n\t\t\tsuper.connectedCallback();\n\t\t\t// React moves keyed nodes by disconnect/reconnect without changing props, so updated() won't re-run.\n\t\t\tif (this.hasUpdated) {\n\t\t\t\tthis._updateCommandTarget();\n\t\t\t}\n\t\t}\n\n\t\toverride disconnectedCallback() {\n\t\t\tsuper.disconnectedCallback();\n\t\t\tthis._cleanupDialogObserver();\n\t\t}\n\n\t\tprivate _cleanupDialogObserver() {\n\t\t\tif (this._dialogOpenObserver) {\n\t\t\t\tthis._dialogOpenObserver.disconnect();\n\t\t\t\tthis._dialogOpenObserver = undefined;\n\t\t\t}\n\t\t\tthis._dialogElement = undefined;\n\t\t}\n\n\t\tprivate _observeDialog(button: HTMLButtonElement, dialog: SDSDialog) {\n\t\t\t// Observe the 'open' attribute to detect when the dialog opens\n\t\t\tthis._dialogOpenObserver = new MutationObserver((mutations) => {\n\t\t\t\tfor (const mutation of mutations) {\n\t\t\t\t\tif (mutation.attributeName === 'open') {\n\t\t\t\t\t\tconst isOpen = dialog.hasAttribute('open');\n\t\t\t\t\t\tbutton.setAttribute('aria-expanded', String(isOpen));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis._dialogOpenObserver.observe(dialog, { attributes: true, attributeFilter: ['open'] });\n\t\t}\n\n\t\tprivate _clearAriaFields(button: HTMLButtonElement) {\n\t\t\tbutton.removeAttribute('aria-haspopup');\n\t\t\tbutton.removeAttribute('aria-expanded');\n\t\t\tbutton.removeAttribute('aria-controls');\n\t\t}\n\n\t\tprivate _updateCommandTarget() {\n\t\t\tthis._cleanupDialogObserver();\n\n\t\t\tconst internalButton = this.shadowRoot?.querySelector<HTMLButtonElement>('#control');\n\t\t\tif (!internalButton) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst command = this.effectiveCommand;\n\t\t\tconst commandFor = this.effectiveCommandFor;\n\n\t\t\tif (!commandFor || !command) {\n\t\t\t\tthis._clearAriaFields(internalButton);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst root = this.getRootNode() as Document | ShadowRoot;\n\t\t\tconst targetDialog = root.getElementById?.(commandFor) ?? document.getElementById(commandFor);\n\n\t\t\tif (!isSDSDialog(targetDialog)) {\n\t\t\t\tthis._clearAriaFields(internalButton);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._dialogElement = targetDialog;\n\n\t\t\tif (command === 'show-modal') {\n\t\t\t\tinternalButton.setAttribute('aria-haspopup', 'dialog');\n\t\t\t\tinternalButton.setAttribute('aria-expanded', String(targetDialog.open));\n\t\t\t\tinternalButton.setAttribute('aria-controls', commandFor);\n\t\t\t\tthis._observeDialog(internalButton, targetDialog);\n\t\t\t} else {\n\t\t\t\tthis._clearAriaFields(internalButton);\n\t\t\t}\n\t\t}\n\n\t\trunDialogCommand(): void {\n\t\t\tif (!this._dialogElement?.isConnected) {\n\t\t\t\tthis._updateCommandTarget();\n\t\t\t}\n\n\t\t\tif (!this._dialogElement) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tswitch (this.effectiveCommand) {\n\t\t\t\tcase 'show-modal':\n\t\t\t\t\tthis._dialogElement.showModal();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'close':\n\t\t\t\t\tthis._dialogElement.close();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'request-close':\n\t\t\t\t\tthis._dialogElement.requestClose();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn SDSDialogTarget;\n}\n"]}
@@ -2,5 +2,6 @@ import { SheriffEventName } from './types';
2
2
  import { SDSDialog } from '../sds-dialog/sds-dialog';
3
3
  export declare const SDSDialogWrapper: import("@lit/react").ReactWebComponent<SDSDialog, {
4
4
  onClose: SheriffEventName;
5
+ onCancel: SheriffEventName;
5
6
  }>;
6
7
  //# sourceMappingURL=SDSDialogWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SDSDialogWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSDialogWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,eAAO,MAAM,gBAAgB;aAKP,gBAAgB;EAEpC,CAAC"}
1
+ {"version":3,"file":"SDSDialogWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSDialogWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,eAAO,MAAM,gBAAgB;aAKP,gBAAgB;cACd,gBAAgB;EAEtC,CAAC"}
@@ -7,6 +7,7 @@ export const SDSDialogWrapper = createComponent({
7
7
  react: React,
8
8
  events: {
9
9
  onClose: 'close',
10
+ onCancel: 'cancel',
10
11
  },
11
12
  });
12
13
  //# sourceMappingURL=SDSDialogWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SDSDialogWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSDialogWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;IAC/C,OAAO,EAAE,YAAY;IACrB,YAAY,EAAE,SAAS;IACvB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,OAAO,EAAE,OAA2B;KACpC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SheriffEventName } from './types';\nimport { SDSDialog } from '../sds-dialog/sds-dialog';\n\nexport const SDSDialogWrapper = createComponent({\n\ttagName: 'sds-dialog',\n\telementClass: SDSDialog,\n\treact: React,\n\tevents: {\n\t\tonClose: 'close' as SheriffEventName,\n\t},\n});\n"]}
1
+ {"version":3,"file":"SDSDialogWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSDialogWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;IAC/C,OAAO,EAAE,YAAY;IACrB,YAAY,EAAE,SAAS;IACvB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,OAAO,EAAE,OAA2B;QACpC,QAAQ,EAAE,QAA4B;KACtC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SheriffEventName } from './types';\nimport { SDSDialog } from '../sds-dialog/sds-dialog';\n\nexport const SDSDialogWrapper = createComponent({\n\ttagName: 'sds-dialog',\n\telementClass: SDSDialog,\n\treact: React,\n\tevents: {\n\t\tonClose: 'close' as SheriffEventName,\n\t\tonCancel: 'cancel' as SheriffEventName,\n\t},\n});\n"]}
@@ -0,0 +1,3 @@
1
+ import { SDSFileUploadFileList } from '../sds-file-upload-file-list/sds-file-upload-file-list';
2
+ export declare const SDSFileUploadFileListWrapper: import("@lit/react").ReactWebComponent<SDSFileUploadFileList, {}>;
3
+ //# sourceMappingURL=SDSFileUploadFileListWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SDSFileUploadFileListWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSFileUploadFileListWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAE/F,eAAO,MAAM,4BAA4B,mEAKvC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { createComponent } from '@lit/react';
2
+ import React from 'react';
3
+ import { SDSFileUploadFileList } from '../sds-file-upload-file-list/sds-file-upload-file-list';
4
+ export const SDSFileUploadFileListWrapper = createComponent({
5
+ tagName: 'sds-file-upload-file-list',
6
+ elementClass: SDSFileUploadFileList,
7
+ react: React,
8
+ events: {},
9
+ });
10
+ //# sourceMappingURL=SDSFileUploadFileListWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SDSFileUploadFileListWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSFileUploadFileListWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAE/F,MAAM,CAAC,MAAM,4BAA4B,GAAG,eAAe,CAAC;IAC3D,OAAO,EAAE,2BAA2B;IACpC,YAAY,EAAE,qBAAqB;IACnC,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,EAAE;CACV,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSFileUploadFileList } from '../sds-file-upload-file-list/sds-file-upload-file-list';\n\nexport const SDSFileUploadFileListWrapper = createComponent({\n\ttagName: 'sds-file-upload-file-list',\n\telementClass: SDSFileUploadFileList,\n\treact: React,\n\tevents: {},\n});\n"]}
@@ -0,0 +1,6 @@
1
+ import { SDSFileUploadItem } from '../sds-file-upload-item/sds-file-upload-item';
2
+ import type { SheriffEventName } from './types';
3
+ export declare const SDSFileUploadItemWrapper: import("@lit/react").ReactWebComponent<SDSFileUploadItem, {
4
+ onRemove: SheriffEventName;
5
+ }>;
6
+ //# sourceMappingURL=SDSFileUploadItemWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SDSFileUploadItemWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSFileUploadItemWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,wBAAwB;cAKT,gBAAgB;EAE1C,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { createComponent } from '@lit/react';
2
+ import React from 'react';
3
+ import { SDSFileUploadItem } from '../sds-file-upload-item/sds-file-upload-item';
4
+ export const SDSFileUploadItemWrapper = createComponent({
5
+ tagName: 'sds-file-upload-item',
6
+ elementClass: SDSFileUploadItem,
7
+ react: React,
8
+ events: {
9
+ onRemove: 'sds-remove',
10
+ },
11
+ });
12
+ //# sourceMappingURL=SDSFileUploadItemWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SDSFileUploadItemWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSFileUploadItemWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAGjF,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe,CAAC;IACvD,OAAO,EAAE,sBAAsB;IAC/B,YAAY,EAAE,iBAAiB;IAC/B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,QAAQ,EAAE,YAAgC;KAC1C;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSFileUploadItem } from '../sds-file-upload-item/sds-file-upload-item';\nimport type { SheriffEventName } from './types';\n\nexport const SDSFileUploadItemWrapper = createComponent({\n\ttagName: 'sds-file-upload-item',\n\telementClass: SDSFileUploadItem,\n\treact: React,\n\tevents: {\n\t\tonRemove: 'sds-remove' as SheriffEventName,\n\t},\n});\n"]}
@@ -0,0 +1,12 @@
1
+ import { SDSFileUpload } from '../sds-file-upload/sds-file-upload';
2
+ import { SheriffEventName } from './types';
3
+ export declare const SDSFileUploadWrapper: import("@lit/react").ReactWebComponent<SDSFileUpload, {
4
+ onChange: SheriffEventName;
5
+ onInput: SheriffEventName;
6
+ onCancel: SheriffEventName;
7
+ onFocus: SheriffEventName;
8
+ onBlur: SheriffEventName;
9
+ onReject: SheriffEventName;
10
+ onPreviewReady: SheriffEventName;
11
+ }>;
12
+ //# sourceMappingURL=SDSFileUploadWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SDSFileUploadWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSFileUploadWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,oBAAoB;cAKT,gBAAgB;aAClB,gBAAgB;cACd,gBAAgB;aAClB,gBAAgB;YAClB,gBAAgB;cACR,gBAAgB;oBACH,gBAAgB;EAEvD,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { createComponent } from '@lit/react';
2
+ import React from 'react';
3
+ import { SDSFileUpload } from '../sds-file-upload/sds-file-upload';
4
+ export const SDSFileUploadWrapper = createComponent({
5
+ tagName: 'sds-file-upload',
6
+ elementClass: SDSFileUpload,
7
+ react: React,
8
+ events: {
9
+ onChange: 'change',
10
+ onInput: 'input',
11
+ onCancel: 'cancel',
12
+ onFocus: 'focus',
13
+ onBlur: 'blur',
14
+ onReject: 'sds-reject',
15
+ onPreviewReady: 'sds-preview-ready',
16
+ },
17
+ });
18
+ //# sourceMappingURL=SDSFileUploadWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SDSFileUploadWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSFileUploadWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAGnE,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC;IACnD,OAAO,EAAE,iBAAiB;IAC1B,YAAY,EAAE,aAAa;IAC3B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,QAAQ,EAAE,QAA4B;QACtC,OAAO,EAAE,OAA2B;QACpC,QAAQ,EAAE,QAA4B;QACtC,OAAO,EAAE,OAA2B;QACpC,MAAM,EAAE,MAA0B;QAClC,QAAQ,EAAE,YAAgC;QAC1C,cAAc,EAAE,mBAAuC;KACvD;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSFileUpload } from '../sds-file-upload/sds-file-upload';\nimport { SheriffEventName } from './types';\n\nexport const SDSFileUploadWrapper = createComponent({\n\ttagName: 'sds-file-upload',\n\telementClass: SDSFileUpload,\n\treact: React,\n\tevents: {\n\t\tonChange: 'change' as SheriffEventName,\n\t\tonInput: 'input' as SheriffEventName,\n\t\tonCancel: 'cancel' as SheriffEventName,\n\t\tonFocus: 'focus' as SheriffEventName,\n\t\tonBlur: 'blur' as SheriffEventName,\n\t\tonReject: 'sds-reject' as SheriffEventName,\n\t\tonPreviewReady: 'sds-preview-ready' as SheriffEventName,\n\t},\n});\n"]}
@@ -0,0 +1,15 @@
1
+ import { EventName } from '@lit/react';
2
+ import { SDSSearch } from '../sds-search/sds-search';
3
+ import type { SDSSearchDetail } from '../sds-search/sds-search.component';
4
+ import { SheriffEventName } from './types';
5
+ export declare const SDSSearchWrapper: import("@lit/react").ReactWebComponent<SDSSearch, {
6
+ onSearch: EventName<CustomEvent<SDSSearchDetail>>;
7
+ onInput: SheriffEventName;
8
+ onChange: SheriffEventName;
9
+ onSelect: SheriffEventName;
10
+ onFocus: EventName<FocusEvent>;
11
+ onBlur: EventName<FocusEvent>;
12
+ onKeyDown: EventName<KeyboardEvent>;
13
+ onInvalid: EventName<Event>;
14
+ }>;
15
+ //# sourceMappingURL=SDSSearchWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SDSSearchWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSSearchWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,SAAS,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,gBAAgB;cAKL,SAAS,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;aACzC,gBAAgB;cACf,gBAAgB;cACf,gBAAgB;aAClB,SAAS,CAAC,UAAU,CAAC;YACvB,SAAS,CAAC,UAAU,CAAC;eACf,SAAS,CAAC,aAAa,CAAC;eACxB,SAAS,CAAC,KAAK,CAAC;EAExC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { createComponent } from '@lit/react';
2
+ import React from 'react';
3
+ import { SDSSearch } from '../sds-search/sds-search';
4
+ export const SDSSearchWrapper = createComponent({
5
+ tagName: 'sds-search',
6
+ elementClass: SDSSearch,
7
+ react: React,
8
+ events: {
9
+ onSearch: 'search',
10
+ onInput: 'input',
11
+ onChange: 'input',
12
+ onSelect: 'select',
13
+ onFocus: 'focus',
14
+ onBlur: 'blur',
15
+ onKeyDown: 'keydown',
16
+ onInvalid: 'invalid',
17
+ },
18
+ });
19
+ //# sourceMappingURL=SDSSearchWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SDSSearchWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSSearchWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAa,MAAM,YAAY,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAIrD,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;IAC/C,OAAO,EAAE,YAAY;IACrB,YAAY,EAAE,SAAS;IACvB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,QAAQ,EAAE,QAAmD;QAC7D,OAAO,EAAE,OAA2B;QACpC,QAAQ,EAAE,OAA2B;QACrC,QAAQ,EAAE,QAA4B;QACtC,OAAO,EAAE,OAAgC;QACzC,MAAM,EAAE,MAA+B;QACvC,SAAS,EAAE,SAAqC;QAChD,SAAS,EAAE,SAA6B;KACxC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent, EventName } from '@lit/react';\nimport React from 'react';\nimport { SDSSearch } from '../sds-search/sds-search';\nimport type { SDSSearchDetail } from '../sds-search/sds-search.component';\nimport { SheriffEventName } from './types';\n\nexport const SDSSearchWrapper = createComponent({\n\ttagName: 'sds-search',\n\telementClass: SDSSearch,\n\treact: React,\n\tevents: {\n\t\tonSearch: 'search' as EventName<CustomEvent<SDSSearchDetail>>,\n\t\tonInput: 'input' as SheriffEventName,\n\t\tonChange: 'input' as SheriffEventName,\n\t\tonSelect: 'select' as SheriffEventName,\n\t\tonFocus: 'focus' as EventName<FocusEvent>,\n\t\tonBlur: 'blur' as EventName<FocusEvent>,\n\t\tonKeyDown: 'keydown' as EventName<KeyboardEvent>,\n\t\tonInvalid: 'invalid' as EventName<Event>,\n\t},\n});\n"]}
@@ -8,6 +8,9 @@ export { SDSDialogWrapper } from './SDSDialogWrapper';
8
8
  export { SDSDetailsWrapper } from './SDSDetailsWrapper';
9
9
  export { SDSDetailsGroupWrapper } from './SDSDetailsGroupWrapper';
10
10
  export { SDSEnvironmentBannerWrapper } from './SDSEnvironmentBannerWrapper';
11
+ export { SDSFileUploadWrapper } from './SDSFileUploadWrapper';
12
+ export { SDSFileUploadItemWrapper } from './SDSFileUploadItemWrapper';
13
+ export { SDSFileUploadFileListWrapper } from './SDSFileUploadFileListWrapper';
11
14
  export { SDSHeadingWrapper } from './SDSHeadingWrapper';
12
15
  export { SDSIconWrapper } from './SDSIconWrapper';
13
16
  export { SDSInternalHeaderWrapper } from './SDSInternalHeaderWrapper';
@@ -18,6 +21,7 @@ export { SDSProcessStepWrapper } from './SDSProcessStepWrapper';
18
21
  export { SDSPopoverWrapper } from './SDSPopoverWrapper';
19
22
  export { SDSRadioGroupWrapper } from './SDSRadioGroupWrapper';
20
23
  export { SDSRadioWrapper } from './SDSRadioWrapper';
24
+ export { SDSSearchWrapper } from './SDSSearchWrapper';
21
25
  export { SDSSelectWrapper } from './SDSSelectWrapper';
22
26
  export { SDSStepperWrapper } from './SDSStepperWrapper';
23
27
  export { SDSStepperStepWrapper } from './SDSStepperStepWrapper';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MA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C;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -8,6 +8,9 @@ export { SDSDialogWrapper } from './SDSDialogWrapper';
8
8
  export { SDSDetailsWrapper } from './SDSDetailsWrapper';
9
9
  export { SDSDetailsGroupWrapper } from './SDSDetailsGroupWrapper';
10
10
  export { SDSEnvironmentBannerWrapper } from './SDSEnvironmentBannerWrapper';
11
+ export { SDSFileUploadWrapper } from './SDSFileUploadWrapper';
12
+ export { SDSFileUploadItemWrapper } from './SDSFileUploadItemWrapper';
13
+ export { SDSFileUploadFileListWrapper } from './SDSFileUploadFileListWrapper';
11
14
  export { SDSHeadingWrapper } from './SDSHeadingWrapper';
12
15
  export { SDSIconWrapper } from './SDSIconWrapper';
13
16
  export { SDSInternalHeaderWrapper } from './SDSInternalHeaderWrapper';
@@ -18,6 +21,7 @@ export { SDSProcessStepWrapper } from './SDSProcessStepWrapper';
18
21
  export { SDSPopoverWrapper } from './SDSPopoverWrapper';
19
22
  export { SDSRadioGroupWrapper } from './SDSRadioGroupWrapper';
20
23
  export { SDSRadioWrapper } from './SDSRadioWrapper';
24
+ export { SDSSearchWrapper } from './SDSSearchWrapper';
21
25
  export { SDSSelectWrapper } from './SDSSelectWrapper';
22
26
  export { SDSStepperWrapper } from './SDSStepperWrapper';
23
27
  export { SDSStepperStepWrapper } from './SDSStepperStepWrapper';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react-wrappers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AChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["export { SDSAlertWrapper } from './SDSAlertWrapper';\nexport { SDSButtonWrapper } from './SDSButtonWrapper';\nexport { SDSCardWrapper } from './SDSCardWrapper';\nexport { SDSCheckboxGroupWrapper } from './SDSCheckboxGroupWrapper';\nexport { SDSCheckboxWrapper } from './SDSCheckboxWrapper';\nexport { SDSChipWrapper } from './SDSChipWrapper';\nexport { SDSDialogWrapper } from './SDSDialogWrapper';\nexport { SDSDetailsWrapper } from './SDSDetailsWrapper';\nexport { SDSDetailsGroupWrapper } from './SDSDetailsGroupWrapper';\nexport { SDSEnvironmentBannerWrapper } from './SDSEnvironmentBannerWrapper';\nexport { SDSHeadingWrapper } from './SDSHeadingWrapper';\nexport { SDSIconWrapper } from './SDSIconWrapper';\nexport { SDSInternalHeaderWrapper } from './SDSInternalHeaderWrapper';\nexport { SDSLoaderWrapper } from './SDSLoaderWrapper';\nexport { SDSNotificationWrapper } from './SDSNotificationWrapper';\nexport { SDSProcessWrapper } from './SDSProcessWrapper';\nexport { SDSProcessStepWrapper } from './SDSProcessStepWrapper';\nexport { SDSPopoverWrapper } from './SDSPopoverWrapper';\nexport { SDSRadioGroupWrapper } from './SDSRadioGroupWrapper';\nexport { SDSRadioWrapper } from './SDSRadioWrapper';\nexport { SDSSelectWrapper } from './SDSSelectWrapper';\nexport { SDSStepperWrapper } from './SDSStepperWrapper';\nexport { SDSStepperStepWrapper } from './SDSStepperStepWrapper';\nexport { SDSSwitchWrapper } from './SDSSwitchWrapper';\nexport { SDSTagWrapper } from './SDSTagWrapper';\nexport { SDSTextAreaWrapper } from './SDSTextAreaWrapper';\nexport { SDSTextFieldWrapper } from './SDSTextFieldWrapper';\nexport { SDSTextWrapper } from './SDSTextWrapper';\nexport { SDSTooltipWrapper } from './SDSTooltipWrapper';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react-wrappers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["export { SDSAlertWrapper } from './SDSAlertWrapper';\nexport { SDSButtonWrapper } from './SDSButtonWrapper';\nexport { SDSCardWrapper } from './SDSCardWrapper';\nexport { SDSCheckboxGroupWrapper } from './SDSCheckboxGroupWrapper';\nexport { SDSCheckboxWrapper } from './SDSCheckboxWrapper';\nexport { SDSChipWrapper } from './SDSChipWrapper';\nexport { SDSDialogWrapper } from './SDSDialogWrapper';\nexport { SDSDetailsWrapper } from './SDSDetailsWrapper';\nexport { SDSDetailsGroupWrapper } from './SDSDetailsGroupWrapper';\nexport { SDSEnvironmentBannerWrapper } from './SDSEnvironmentBannerWrapper';\nexport { SDSFileUploadWrapper } from './SDSFileUploadWrapper';\nexport { SDSFileUploadItemWrapper } from './SDSFileUploadItemWrapper';\nexport { SDSFileUploadFileListWrapper } from './SDSFileUploadFileListWrapper';\nexport { SDSHeadingWrapper } from './SDSHeadingWrapper';\nexport { SDSIconWrapper } from './SDSIconWrapper';\nexport { SDSInternalHeaderWrapper } from './SDSInternalHeaderWrapper';\nexport { SDSLoaderWrapper } from './SDSLoaderWrapper';\nexport { SDSNotificationWrapper } from './SDSNotificationWrapper';\nexport { SDSProcessWrapper } from './SDSProcessWrapper';\nexport { SDSProcessStepWrapper } from './SDSProcessStepWrapper';\nexport { SDSPopoverWrapper } from './SDSPopoverWrapper';\nexport { SDSRadioGroupWrapper } from './SDSRadioGroupWrapper';\nexport { SDSRadioWrapper } from './SDSRadioWrapper';\nexport { SDSSearchWrapper } from './SDSSearchWrapper';\nexport { SDSSelectWrapper } from './SDSSelectWrapper';\nexport { SDSStepperWrapper } from './SDSStepperWrapper';\nexport { SDSStepperStepWrapper } from './SDSStepperStepWrapper';\nexport { SDSSwitchWrapper } from './SDSSwitchWrapper';\nexport { SDSTagWrapper } from './SDSTagWrapper';\nexport { SDSTextAreaWrapper } from './SDSTextAreaWrapper';\nexport { SDSTextFieldWrapper } from './SDSTextFieldWrapper';\nexport { SDSTextWrapper } from './SDSTextWrapper';\nexport { SDSTooltipWrapper } from './SDSTooltipWrapper';\n"]}
@@ -46,7 +46,6 @@ export declare class SDSButtonComponent extends SDSButtonComponent_base {
46
46
  control: HTMLButtonElement;
47
47
  constructor();
48
48
  updated(changed: PropertyValues): void;
49
- private _resolveForm;
50
49
  private _handlePopoverClick;
51
50
  private _handleDialogCommandClick;
52
51
  private _handleSubmitClick;
@@ -1 +1 @@
1
- {"version":3,"file":"sds-button.component.d.ts","sourceRoot":"","sources":["../../src/sds-button/sds-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiB,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIlD,OAAO,EAAE,SAAS,EAAE,YAAY,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,MAAM,CAAM;IACnB,OAAO,EAAE,aAAa,CAAa;IACnC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAa;IAE9D,OAAO,EAAG,iBAAiB,CAAC;;IAOtC,OAAO,CAAC,OAAO,EAAE,cAAc;IAWxC,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,yBAAyB;IAKjC,OAAO,CAAC,kBAAkB;IAM1B,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,QAAQ,CAAC,YAAY,CAsB3B;IAEO,MAAM;CAiCf"}
@@ -33,16 +33,16 @@ export class SDSButtonComponent extends SDSDialogTargetMixin(SDSPopoverTargetMix
33
33
  if (this.disabled) {
34
34
  return;
35
35
  }
36
- if (this.effectiveCommandFor && this.effectiveCommand) {
37
- this._handleDialogCommandClick();
38
- return;
39
- }
40
- else if (this.type === 'submit') {
36
+ const hasForm = this.internals.form;
37
+ if (hasForm && this.type === 'submit') {
41
38
  this._handleSubmitClick();
42
39
  }
43
- else if (this.type === 'reset') {
40
+ else if (hasForm && this.type === 'reset') {
44
41
  this._handleResetClick();
45
42
  }
43
+ else if (this.effectiveCommandFor && this.effectiveCommand) {
44
+ this._handleDialogCommandClick();
45
+ }
46
46
  else {
47
47
  this.dispatchSheriffEvent('click');
48
48
  }
@@ -56,13 +56,6 @@ export class SDSButtonComponent extends SDSDialogTargetMixin(SDSPopoverTargetMix
56
56
  this.setAttribute('data-palette', 'danger');
57
57
  }
58
58
  }
59
- _resolveForm() {
60
- if (this.form) {
61
- const root = this.getRootNode();
62
- return root.querySelector(`form#${this.form}`);
63
- }
64
- return this.internals.form;
65
- }
66
59
  // For popover triggers, let the browser handle the toggle natively.
67
60
  // Stop propagation and re-dispatch a composed click for listeners on the host.
68
61
  _handlePopoverClick(event) {
@@ -80,12 +73,12 @@ export class SDSButtonComponent extends SDSDialogTargetMixin(SDSPopoverTargetMix
80
73
  }
81
74
  _handleSubmitClick() {
82
75
  if (this.dispatchSheriffEvent('submit')) {
83
- this._resolveForm()?.requestSubmit();
76
+ this.internals.form?.requestSubmit();
84
77
  }
85
78
  }
86
79
  _handleResetClick() {
87
80
  if (this.dispatchSheriffEvent('reset')) {
88
- this._resolveForm()?.reset();
81
+ this.internals.form?.reset();
89
82
  }
90
83
  }
91
84
  render() {
@@ -112,7 +105,8 @@ export class SDSButtonComponent extends SDSDialogTargetMixin(SDSPopoverTargetMix
112
105
  @click="${this._handleClick}"
113
106
  aria-label="${ifDefined(this.label)}"
114
107
  >
115
- ${this.loading ? html `<sds-loader slot="before" ?contrast="${this.inverted || this.variant !== 'primary'}"></sds-loader>` : nothing} ${this.loading ? nothing : html `<slot name="before"></slot>`}
108
+ ${this.loading ? html `<sds-loader slot="before" ?contrast="${this.inverted || this.variant !== 'primary'}"></sds-loader>` : nothing}
109
+ ${this.loading ? nothing : html `<slot name="before"></slot>`}
116
110
  <slot></slot>
117
111
  ${this.loading ? nothing : html `<slot name="after"></slot>`}
118
112
  </button>
@@ -1 +1 @@
1
- {"version":3,"file":"sds-button.component.js","sourceRoot":"","sources":["../../src/sds-button/sds-button.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAkB,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AA2B9H,MAAM,OAAO,kBAAmB,SAAQ,oBAAoB,CAAC,qBAAqB,CAAC,2BAA2B,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC,CAA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AC;gDAAuB;AACtB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDAA2B;AAC1B;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAA0B;AAC1B;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAAe;AACd;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAAe;AACd;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAAe;AACd;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAAyB;AACxB;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAAsB;AACrB;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAA6B;AAC5B;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAAoB;AACnB;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAAoC;AACnC;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAAuC;AAE9D;IAAlB,KAAK,CAAC,UAAU,CAAC;mDAA6B","sourcesContent":["import { PropertyValues, html, nothing } from 'lit';\nimport { SDSElement } from '../utils/sds-element';\nimport { property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { SDS_SIZES, SDS_VARIANTS } from '../types';\nimport { styles } from './sds-button.styles';\nimport { SDSEventDispatcherMixin, SDSDelegateInteractionMixin, SDSDialogTargetMixin, SDSPopoverTargetMixin } from '../mixins';\n\ntype ButtonType = 'button' | 'submit' | 'reset';\ntype ButtonVariant = SDS_VARIANTS | 'critical';\ntype ButtonSize = 'large' | 'medium' | 'small' | Extract<SDS_SIZES, 'lg' | 'md' | 'sm'>;\ntype TargetTypes = '_self' | '_blank' | '_parent' | '_top';\n\nexport interface SDSButtonProps {\n\tcommand?: 'close' | 'request-close' | 'show-modal';\n\tcommandFor?: string;\n\tdisabled?: boolean;\n\tform?: string;\n\thref?: string;\n\ticon?: boolean;\n\tinverted?: boolean;\n\tlabel?: string;\n\tloading?: boolean;\n\tname?: string;\n\tpopoverTarget?: string;\n\tpopoverTargetAction?: 'hide' | 'show' | 'toggle';\n\tsize?: ButtonSize;\n\ttarget?: TargetTypes;\n\ttype?: ButtonType;\n\tvalue?: string;\n\tvariant?: ButtonVariant;\n}\n\nexport class SDSButtonComponent extends SDSDialogTargetMixin(SDSPopoverTargetMixin(SDSDelegateInteractionMixin(SDSEventDispatcherMixin(SDSElement)))) {\n\tstatic override styles = [styles];\n\n\tstatic formAssociated = true;\n\tpublic readonly internals: ElementInternals;\n\n\tstatic override shadowRootOptions: ShadowRootInit = {\n\t\t...SDSElement.shadowRootOptions,\n\t\tdelegatesFocus: true,\n\t};\n\n\t@property({ type: Boolean, reflect: true }) disabled: boolean = false;\n\t@property({ type: Boolean, reflect: true }) icon: boolean = false;\n\t@property({ type: Boolean, reflect: true }) inverted: boolean = false;\n\t@property({ type: Boolean, reflect: true }) loading: boolean = false;\n\t@property({ type: String, reflect: true }) form?: string;\n\t@property({ type: String, reflect: true }) href?: string;\n\t@property({ type: String, reflect: true }) name?: string;\n\t@property({ type: String, reflect: true }) size: ButtonSize = 'lg';\n\t@property({ type: String, reflect: true }) target?: TargetTypes;\n\t@property({ type: String, reflect: true }) type: ButtonType = 'button';\n\t@property({ type: String, reflect: true }) value: string = '';\n\t@property({ type: String, reflect: true }) variant: ButtonVariant = 'primary';\n\t@property({ type: String, reflect: true }) label: string | undefined = undefined;\n\n\t@query('#control') control!: HTMLButtonElement;\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis.internals = this.attachInternals();\n\t}\n\n\toverride updated(changed: PropertyValues) {\n\t\tsuper.updated(changed);\n\n\t\t// Cast critical variant to danger palette to prevent breaking changes\n\t\tif (changed.has('variant') && this.variant === 'critical') {\n\t\t\tthis.setAttribute('data-palette', 'danger');\n\t\t}\n\t}\n\n\tprivate _resolveForm(): HTMLFormElement | null {\n\t\tif (this.form) {\n\t\t\tconst root = this.getRootNode() as Document | ShadowRoot;\n\t\t\treturn root.querySelector<HTMLFormElement>(`form#${this.form}`);\n\t\t}\n\t\treturn this.internals.form;\n\t}\n\n\t// For popover triggers, let the browser handle the toggle natively.\n\t// Stop propagation and re-dispatch a composed click for listeners on the host.\n\tprivate _handlePopoverClick(event: MouseEvent): void {\n\t\tevent.stopImmediatePropagation();\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\t\tthis.dispatchSheriffEvent('click');\n\t}\n\n\t// For dialog commands, emulate the native commandfor/command behavior on the host.\n\t// Stop propagation and re-dispatch a composed click for listeners on the host.\n\tprivate _handleDialogCommandClick(): void {\n\t\tthis.runDialogCommand();\n\t\tthis.dispatchSheriffEvent('click');\n\t}\n\n\tprivate _handleSubmitClick(): void {\n\t\tif (this.dispatchSheriffEvent('submit')) {\n\t\t\tthis._resolveForm()?.requestSubmit();\n\t\t}\n\t}\n\n\tprivate _handleResetClick(): void {\n\t\tif (this.dispatchSheriffEvent('reset')) {\n\t\t\tthis._resolveForm()?.reset();\n\t\t}\n\t}\n\n\tprivate readonly _handleClick = (event: MouseEvent) => {\n\t\tif (this.popoverTarget) {\n\t\t\tthis._handlePopoverClick(event);\n\t\t\treturn;\n\t\t}\n\n\t\tevent.preventDefault();\n\t\tevent.stopImmediatePropagation();\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.effectiveCommandFor && this.effectiveCommand) {\n\t\t\tthis._handleDialogCommandClick();\n\t\t\treturn;\n\t\t} else if (this.type === 'submit') {\n\t\t\tthis._handleSubmitClick();\n\t\t} else if (this.type === 'reset') {\n\t\t\tthis._handleResetClick();\n\t\t} else {\n\t\t\tthis.dispatchSheriffEvent('click');\n\t\t}\n\t};\n\n\toverride render() {\n\t\tconst buttonClasses = {\n\t\t\t'sds-button': true,\n\t\t\t'sds-button--as-link': !!this.href,\n\t\t};\n\n\t\tif (this.href) {\n\t\t\treturn html` <a id=\"link\" class=\"${classMap(buttonClasses)}\" href=\"${this.href}\" target=\"${ifDefined(this.target)}\">\n\t\t\t\t<slot name=\"before\"></slot>\n\t\t\t\t<slot></slot>\n\t\t\t\t<slot name=\"after\"></slot>\n\t\t\t</a>`;\n\t\t}\n\n\t\treturn html`\n\t\t\t<button\n\t\t\t\tid=\"control\"\n\t\t\t\tform=\"${ifDefined(this.form)}\"\n\t\t\t\tclass=\"${classMap(buttonClasses)}\"\n\t\t\t\ttype=\"${this.type}\"\n\t\t\t\tname=\"${ifDefined(this.name)}\"\n\t\t\t\tvalue=\"${ifDefined(this.value)}\"\n\t\t\t\t?disabled=\"${this.disabled}\"\n\t\t\t\t@click=\"${this._handleClick}\"\n\t\t\t\taria-label=\"${ifDefined(this.label)}\"\n\t\t\t>\n\t\t\t\t${this.loading ? html`<sds-loader slot=\"before\" ?contrast=\"${this.inverted || this.variant !== 'primary'}\"></sds-loader>` : nothing} ${this.loading ? nothing : html`<slot name=\"before\"></slot>`}\n\t\t\t\t<slot></slot>\n\t\t\t\t${this.loading ? nothing : html`<slot name=\"after\"></slot>`}\n\t\t\t</button>\n\t\t`;\n\t}\n}\n"]}
1
+ {"version":3,"file":"sds-button.component.js","sourceRoot":"","sources":["../../src/sds-button/sds-button.component.ts"],"names":[],"mappings":";;;;;;AAA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;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAAoC;AACnC;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAAuC;AAE9D;IAAlB,KAAK,CAAC,UAAU,CAAC;mDAA6B","sourcesContent":["import { PropertyValues, html, nothing } from 'lit';\nimport { SDSElement } from '../utils/sds-element';\nimport { property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { SDS_SIZES, SDS_VARIANTS } from '../types';\nimport { styles } from './sds-button.styles';\nimport { SDSEventDispatcherMixin, SDSDelegateInteractionMixin, SDSDialogTargetMixin, SDSPopoverTargetMixin } from '../mixins';\n\ntype ButtonType = 'button' | 'submit' | 'reset';\ntype ButtonVariant = SDS_VARIANTS | 'critical';\ntype ButtonSize = 'large' | 'medium' | 'small' | Extract<SDS_SIZES, 'lg' | 'md' | 'sm'>;\ntype TargetTypes = '_self' | '_blank' | '_parent' | '_top';\n\nexport interface SDSButtonProps {\n\tcommand?: 'close' | 'request-close' | 'show-modal';\n\tcommandFor?: string;\n\tdisabled?: boolean;\n\tform?: string;\n\thref?: string;\n\ticon?: boolean;\n\tinverted?: boolean;\n\tlabel?: string;\n\tloading?: boolean;\n\tname?: string;\n\tpopoverTarget?: string;\n\tpopoverTargetAction?: 'hide' | 'show' | 'toggle';\n\tsize?: ButtonSize;\n\ttarget?: TargetTypes;\n\ttype?: ButtonType;\n\tvalue?: string;\n\tvariant?: ButtonVariant;\n}\n\nexport class SDSButtonComponent extends SDSDialogTargetMixin(SDSPopoverTargetMixin(SDSDelegateInteractionMixin(SDSEventDispatcherMixin(SDSElement)))) {\n\tstatic override styles = [styles];\n\n\tstatic formAssociated = true;\n\tpublic readonly internals: ElementInternals;\n\n\tstatic override shadowRootOptions: ShadowRootInit = {\n\t\t...SDSElement.shadowRootOptions,\n\t\tdelegatesFocus: true,\n\t};\n\n\t@property({ type: Boolean, reflect: true }) disabled: boolean = false;\n\t@property({ type: Boolean, reflect: true }) icon: boolean = false;\n\t@property({ type: Boolean, reflect: true }) inverted: boolean = false;\n\t@property({ type: Boolean, reflect: true }) loading: boolean = false;\n\t@property({ type: String, reflect: true }) form?: string;\n\t@property({ type: String, reflect: true }) href?: string;\n\t@property({ type: String, reflect: true }) name?: string;\n\t@property({ type: String, reflect: true }) size: ButtonSize = 'lg';\n\t@property({ type: String, reflect: true }) target?: TargetTypes;\n\t@property({ type: String, reflect: true }) type: ButtonType = 'button';\n\t@property({ type: String, reflect: true }) value: string = '';\n\t@property({ type: String, reflect: true }) variant: ButtonVariant = 'primary';\n\t@property({ type: String, reflect: true }) label: string | undefined = undefined;\n\n\t@query('#control') control!: HTMLButtonElement;\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis.internals = this.attachInternals();\n\t}\n\n\toverride updated(changed: PropertyValues) {\n\t\tsuper.updated(changed);\n\n\t\t// Cast critical variant to danger palette to prevent breaking changes\n\t\tif (changed.has('variant') && this.variant === 'critical') {\n\t\t\tthis.setAttribute('data-palette', 'danger');\n\t\t}\n\t}\n\n\t// For popover triggers, let the browser handle the toggle natively.\n\t// Stop propagation and re-dispatch a composed click for listeners on the host.\n\tprivate _handlePopoverClick(event: MouseEvent): void {\n\t\tevent.stopImmediatePropagation();\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\t\tthis.dispatchSheriffEvent('click');\n\t}\n\n\t// For dialog commands, emulate the native commandfor/command behavior on the host.\n\t// Stop propagation and re-dispatch a composed click for listeners on the host.\n\tprivate _handleDialogCommandClick(): void {\n\t\tthis.runDialogCommand();\n\t\tthis.dispatchSheriffEvent('click');\n\t}\n\n\tprivate _handleSubmitClick(): void {\n\t\tif (this.dispatchSheriffEvent('submit')) {\n\t\t\tthis.internals.form?.requestSubmit();\n\t\t}\n\t}\n\n\tprivate _handleResetClick(): void {\n\t\tif (this.dispatchSheriffEvent('reset')) {\n\t\t\tthis.internals.form?.reset();\n\t\t}\n\t}\n\n\tprivate readonly _handleClick = (event: MouseEvent) => {\n\t\tif (this.popoverTarget) {\n\t\t\tthis._handlePopoverClick(event);\n\t\t\treturn;\n\t\t}\n\n\t\tevent.preventDefault();\n\t\tevent.stopImmediatePropagation();\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst hasForm = this.internals.form;\n\t\tif (hasForm && this.type === 'submit') {\n\t\t\tthis._handleSubmitClick();\n\t\t} else if (hasForm && this.type === 'reset') {\n\t\t\tthis._handleResetClick();\n\t\t} else if (this.effectiveCommandFor && this.effectiveCommand) {\n\t\t\tthis._handleDialogCommandClick();\n\t\t} else {\n\t\t\tthis.dispatchSheriffEvent('click');\n\t\t}\n\t};\n\n\toverride render() {\n\t\tconst buttonClasses = {\n\t\t\t'sds-button': true,\n\t\t\t'sds-button--as-link': !!this.href,\n\t\t};\n\n\t\tif (this.href) {\n\t\t\treturn html` <a id=\"link\" class=\"${classMap(buttonClasses)}\" href=\"${this.href}\" target=\"${ifDefined(this.target)}\">\n\t\t\t\t<slot name=\"before\"></slot>\n\t\t\t\t<slot></slot>\n\t\t\t\t<slot name=\"after\"></slot>\n\t\t\t</a>`;\n\t\t}\n\n\t\treturn html`\n\t\t\t<button\n\t\t\t\tid=\"control\"\n\t\t\t\tform=\"${ifDefined(this.form)}\"\n\t\t\t\tclass=\"${classMap(buttonClasses)}\"\n\t\t\t\ttype=\"${this.type}\"\n\t\t\t\tname=\"${ifDefined(this.name)}\"\n\t\t\t\tvalue=\"${ifDefined(this.value)}\"\n\t\t\t\t?disabled=\"${this.disabled}\"\n\t\t\t\t@click=\"${this._handleClick}\"\n\t\t\t\taria-label=\"${ifDefined(this.label)}\"\n\t\t\t>\n\t\t\t\t${this.loading ? html`<sds-loader slot=\"before\" ?contrast=\"${this.inverted || this.variant !== 'primary'}\"></sds-loader>` : nothing}\n\t\t\t\t${this.loading ? nothing : html`<slot name=\"before\"></slot>`}\n\t\t\t\t<slot></slot>\n\t\t\t\t${this.loading ? nothing : html`<slot name=\"after\"></slot>`}\n\t\t\t</button>\n\t\t`;\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"sds-button.styles.d.ts","sourceRoot":"","sources":["../../src/sds-button/sds-button.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBA4PlB,CAAC"}
1
+ {"version":3,"file":"sds-button.styles.d.ts","sourceRoot":"","sources":["../../src/sds-button/sds-button.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAiQlB,CAAC"}
@@ -149,7 +149,7 @@ export const styles = css `
149
149
  --_sds-button-min-height: var(--sds-button-height, var(--sds-components-button-md));
150
150
  --_sds-button-font-size: var(--sds-button-font-size, var(--sds-components-font-size-content-md));
151
151
 
152
- &:host([variant='tertiary']) {
152
+ &:host([variant='tertiary']:not([inverted])) {
153
153
  --_sds-button-padding-inline: var(--sds-button-padding-inline, 0);
154
154
  }
155
155
  }
@@ -159,7 +159,7 @@ export const styles = css `
159
159
  --_sds-button-min-height: var(--sds-button-height, var(--sds-components-button-sm));
160
160
  --_sds-button-font-size: var(--sds-button-font-size, var(--sds-components-font-size-content-sm));
161
161
 
162
- &:host([variant='tertiary']) {
162
+ &:host([variant='tertiary']:not([inverted])) {
163
163
  --_sds-button-padding-inline: var(--sds-button-padding-inline, 0);
164
164
  }
165
165
  }
@@ -227,10 +227,15 @@ export const styles = css `
227
227
  :host([inverted][variant='tertiary']) {
228
228
  --_sds-button-background-color: var(--sds-button-background-color, transparent);
229
229
  --_sds-button-border-color: var(--sds-button-border-color, transparent);
230
+ --_sds-button-padding-inline: var(--sds-button-padding-inline, var(--sds-spacing-xs));
230
231
  --_sds-button-text-color: var(--sds-button-text-color, var(--sds-color-action-contrast-default, var(--sds-color-accent-action-contrast-default)));
231
232
  --sds-typography-link-text-decoration: none;
232
233
  --sds-loader-main-color: var(--sds-color-accent-action-contrast-default);
233
234
 
235
+ &:host([icon]) {
236
+ --_sds-button-padding-inline: var(--sds-button-padding-inline, 0);
237
+ }
238
+
234
239
  .sds-button:hover {
235
240
  --_sds-button-background-color: var(--sds-button-background-color, var(--sds-color-action-contrast-default, var(--sds-color-accent-action-contrast-default)));
236
241
  --_sds-button-border-color: var(--sds-button-border-color, var(--sds-color-action-contrast-default, var(--sds-color-accent-action-contrast-default)));