@politiet/sheriff-web-components 2.1.2 → 2.2.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.
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/playwright-util/custom-matchers.d.ts.map +1 -1
- package/dist/playwright-util/custom-matchers.js +2 -3
- package/dist/playwright-util/custom-matchers.js.map +1 -1
- package/dist/react-wrappers/SDSAlertWrapper.d.ts +1 -1
- package/dist/react-wrappers/SDSAlertWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSAlertWrapper.js.map +1 -1
- package/dist/react-wrappers/SDSButtonWrapper.d.ts +1 -1
- package/dist/react-wrappers/SDSButtonWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSButtonWrapper.js.map +1 -1
- package/dist/react-wrappers/SDSCheckboxGroupWrapper.d.ts +1 -1
- package/dist/react-wrappers/SDSCheckboxGroupWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSCheckboxGroupWrapper.js.map +1 -1
- package/dist/react-wrappers/SDSCheckboxWrapper.d.ts +1 -1
- package/dist/react-wrappers/SDSCheckboxWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSCheckboxWrapper.js.map +1 -1
- package/dist/react-wrappers/SDSChipWrapper.d.ts +1 -1
- package/dist/react-wrappers/SDSChipWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSChipWrapper.js.map +1 -1
- package/dist/react-wrappers/SDSDetailsWrapper.d.ts +1 -1
- package/dist/react-wrappers/SDSDetailsWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSDetailsWrapper.js.map +1 -1
- package/dist/react-wrappers/SDSNotificationWrapper.d.ts +1 -1
- package/dist/react-wrappers/SDSNotificationWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSNotificationWrapper.js.map +1 -1
- package/dist/react-wrappers/SDSRadioGroupWrapper.d.ts +1 -1
- package/dist/react-wrappers/SDSRadioGroupWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSRadioGroupWrapper.js.map +1 -1
- package/dist/react-wrappers/SDSRadioWrapper.d.ts +1 -1
- package/dist/react-wrappers/SDSRadioWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSRadioWrapper.js.map +1 -1
- package/dist/react-wrappers/SDSSwitchWrapper.d.ts +1 -1
- package/dist/react-wrappers/SDSSwitchWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSSwitchWrapper.js.map +1 -1
- package/dist/react-wrappers/SDSTextAreaWrapper.d.ts +1 -1
- package/dist/react-wrappers/SDSTextAreaWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSTextAreaWrapper.js.map +1 -1
- package/dist/react-wrappers/SDSTextFieldWrapper.d.ts +1 -1
- package/dist/react-wrappers/SDSTextFieldWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSTextFieldWrapper.js.map +1 -1
- package/dist/react-wrappers/types.d.ts +4 -0
- package/dist/react-wrappers/types.d.ts.map +1 -0
- package/dist/react-wrappers/types.js +2 -0
- package/dist/react-wrappers/types.js.map +1 -0
- package/dist/sds-alert/sds-alert.component.d.ts +25 -0
- package/dist/sds-alert/sds-alert.component.d.ts.map +1 -0
- package/dist/sds-alert/sds-alert.component.js +73 -0
- package/dist/sds-alert/sds-alert.component.js.map +1 -0
- package/dist/sds-alert/sds-alert.d.ts +3 -19
- package/dist/sds-alert/sds-alert.d.ts.map +1 -1
- package/dist/sds-alert/sds-alert.js +2 -55
- package/dist/sds-alert/sds-alert.js.map +1 -1
- package/dist/sds-alert/sds-alert.styles.d.ts.map +1 -1
- package/dist/sds-alert/sds-alert.styles.js +5 -4
- package/dist/sds-alert/sds-alert.styles.js.map +1 -1
- package/dist/sds-button/sds-button.component.d.ts +44 -0
- package/dist/sds-button/sds-button.component.d.ts.map +1 -0
- package/dist/sds-button/sds-button.component.js +159 -0
- package/dist/sds-button/sds-button.component.js.map +1 -0
- package/dist/sds-button/sds-button.d.ts +2 -42
- package/dist/sds-button/sds-button.d.ts.map +1 -1
- package/dist/sds-button/sds-button.js +2 -151
- package/dist/sds-button/sds-button.js.map +1 -1
- package/dist/sds-button/sds-button.styles.d.ts.map +1 -1
- package/dist/sds-button/sds-button.styles.js +15 -0
- package/dist/sds-button/sds-button.styles.js.map +1 -1
- package/dist/sds-heading/sds-heading.component.d.ts +16 -0
- package/dist/sds-heading/sds-heading.component.d.ts.map +1 -0
- package/dist/sds-heading/sds-heading.component.js +50 -0
- package/dist/sds-heading/sds-heading.component.js.map +1 -0
- package/dist/sds-heading/sds-heading.d.ts +2 -14
- package/dist/sds-heading/sds-heading.d.ts.map +1 -1
- package/dist/sds-heading/sds-heading.js +2 -42
- package/dist/sds-heading/sds-heading.js.map +1 -1
- package/dist/sds-icon/sds-icon.component.d.ts +31 -0
- package/dist/sds-icon/sds-icon.component.d.ts.map +1 -0
- package/dist/sds-icon/sds-icon.component.js +73 -0
- package/dist/sds-icon/sds-icon.component.js.map +1 -0
- package/dist/sds-icon/sds-icon.d.ts +2 -29
- package/dist/sds-icon/sds-icon.d.ts.map +1 -1
- package/dist/sds-icon/sds-icon.js +3 -67
- package/dist/sds-icon/sds-icon.js.map +1 -1
- package/dist/sds-text/sds-text.component.d.ts +17 -0
- package/dist/sds-text/sds-text.component.d.ts.map +1 -0
- package/dist/sds-text/sds-text.component.js +33 -0
- package/dist/sds-text/sds-text.component.js.map +1 -0
- package/dist/sds-text/sds-text.d.ts +2 -15
- package/dist/sds-text/sds-text.d.ts.map +1 -1
- package/dist/sds-text/sds-text.js +2 -25
- package/dist/sds-text/sds-text.js.map +1 -1
- package/dist/sds-textfield/sds-textfield.spec.js +7 -9
- package/dist/sds-textfield/sds-textfield.spec.js.map +1 -1
- package/dist/sheriff-web-components.js +133 -114
- package/dist/types.d.ts +0 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { SDSAlert } from './sds-alert/sds-alert';
|
|
2
|
-
export type { SDSAlertProps } from './sds-alert/sds-alert';
|
|
2
|
+
export type { SDSAlertProps } from './sds-alert/sds-alert.component';
|
|
3
3
|
export { SDSButton } from './sds-button/sds-button';
|
|
4
|
-
export type { SDSButtonProps } from './sds-button/sds-button';
|
|
4
|
+
export type { SDSButtonProps } from './sds-button/sds-button.component';
|
|
5
5
|
export { SDSCard } from './sds-card/sds-card';
|
|
6
6
|
export type { SDSCardProps } from './sds-card/sds-card';
|
|
7
7
|
export { SDSCheckbox } from './sds-checkbox/sds-checkbox';
|
|
@@ -13,9 +13,9 @@ export type { SDSChipProps } from './sds-chip/sds-chip';
|
|
|
13
13
|
export { SDSDetails } from './sds-details/sds-details';
|
|
14
14
|
export type { SDSDetailsProps as SDSDetailProps } from './sds-details/sds-details';
|
|
15
15
|
export { SDSHeading } from './sds-heading/sds-heading';
|
|
16
|
-
export type { SDSHeadingProps } from './sds-heading/sds-heading';
|
|
16
|
+
export type { SDSHeadingProps } from './sds-heading/sds-heading.component';
|
|
17
17
|
export { SDSIcon } from './sds-icon/sds-icon';
|
|
18
|
-
export type { SDSIconProps } from './sds-icon/sds-icon';
|
|
18
|
+
export type { SDSIconProps } from './sds-icon/sds-icon.component';
|
|
19
19
|
export { SDSLoader } from './sds-loader/sds-loader';
|
|
20
20
|
export type { SDSLoaderProps } from './sds-loader/sds-loader';
|
|
21
21
|
export { SDSNotification } from './sds-notification/sds-notification';
|
|
@@ -29,7 +29,7 @@ export type { SDSSwitchProps } from './sds-switch/sds-switch';
|
|
|
29
29
|
export { SDSTag } from './sds-tag/sds-tag';
|
|
30
30
|
export type { SDSTagProps } from './sds-tag/sds-tag';
|
|
31
31
|
export { SDSText } from './sds-text/sds-text';
|
|
32
|
-
export type { SDSTextProps } from './sds-text/sds-text';
|
|
32
|
+
export type { SDSTextProps } from './sds-text/sds-text.component';
|
|
33
33
|
export { SDSTextField } from './sds-textfield/sds-textfield';
|
|
34
34
|
export type { SDSTextFieldProps } from './sds-textfield/sds-textfield';
|
|
35
35
|
export { SDSTextArea } from './sds-textarea/sds-textarea';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,YAAY,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,YAAY,EAAE,eAAe,IAAI,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEnF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,YAAY,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,YAAY,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAGtE,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,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,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';\n\nexport { SDSButton } from './sds-button/sds-button';\nexport type { SDSButtonProps } from './sds-button/sds-button';\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 { SDSDetails } from './sds-details/sds-details';\nexport type { SDSDetailsProps as SDSDetailProps } from './sds-details/sds-details';\n\nexport { SDSHeading } from './sds-heading/sds-heading';\nexport type { SDSHeadingProps } from './sds-heading/sds-heading';\n\nexport { SDSIcon } from './sds-icon/sds-icon';\nexport type { SDSIconProps } from './sds-icon/sds-icon';\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 { 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 { 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 { SDSText } from './sds-text/sds-text';\nexport type { SDSTextProps } from './sds-text/sds-text';\n\nexport { SDSTextField } from './sds-textfield/sds-textfield';\nexport type { SDSTextFieldProps } from './sds-textfield/sds-textfield';\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,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAGtE,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,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,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 { SDSDetails } from './sds-details/sds-details';\nexport type { SDSDetailsProps as SDSDetailProps } from './sds-details/sds-details';\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 { 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 { 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 { 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 { 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';\n\nexport { SDSTextArea } from './sds-textarea/sds-textarea';\nexport type { SDSTextAreaProps } from './sds-textarea/sds-textarea';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-matchers.d.ts","sourceRoot":"","sources":["../../src/playwright-util/custom-matchers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,kBAAkB,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEtG,eAAO,MAAM,MAAM;oBACI,kBAAkB,YAAY,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"custom-matchers.d.ts","sourceRoot":"","sources":["../../src/playwright-util/custom-matchers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,kBAAkB,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEtG,eAAO,MAAM,MAAM;oBACI,kBAAkB,YAAY,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC;uBAK/D,kBAAkB,YAAY,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC;sBAInE,kBAAkB,YAAY,OAAO,YAAY,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;EAQ3G,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { expect as pwExpect } from '@playwright/test';
|
|
2
2
|
export const expect = pwExpect.extend({
|
|
3
3
|
async isChecked(receiver) {
|
|
4
|
+
console.log(await receiver.getAttribute('checked'));
|
|
4
5
|
expect(await receiver.getAttribute('checked')).toBe('');
|
|
5
6
|
return { message: () => 'Pass', pass: true };
|
|
6
7
|
},
|
|
@@ -13,9 +14,7 @@ export const expect = pwExpect.extend({
|
|
|
13
14
|
const pass = actual === expected;
|
|
14
15
|
return {
|
|
15
16
|
pass,
|
|
16
|
-
message: () => pass
|
|
17
|
-
? `expected value not to be “${expected}”`
|
|
18
|
-
: `expected value to be “${expected}”, but got ${actual === null ? 'no value' : `“${actual}”`}`,
|
|
17
|
+
message: () => (pass ? `expected value not to be “${expected}”` : `expected value to be “${expected}”, but got ${actual === null ? 'no value' : `“${actual}”`}`),
|
|
19
18
|
};
|
|
20
19
|
},
|
|
21
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-matchers.js","sourceRoot":"","sources":["../../src/playwright-util/custom-matchers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAkD,MAAM,kBAAkB,CAAC;AAEtG,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IACrC,KAAK,CAAC,SAAS,CAA2B,QAAiB;QAC1D,MAAM,CAAC,MAAM,QAAQ,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACxD,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9C,CAAC;IACD,KAAK,CAAC,YAAY,CAA2B,QAAiB;QAC7D,MAAM,CAAC,MAAM,QAAQ,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC1D,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9C,CAAC;IACD,KAAK,CAAC,WAAW,CAA2B,QAAiB,EAAE,QAAgB;QAC9E,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAAoB,EAAE,EAAE,CAAC,EAAE,CAAC,KAAe,CAAC,CAAC;QACrF,MAAM,IAAI,GAAG,MAAM,KAAK,QAAQ,CAAC;QACjC,OAAO;YACN,IAAI;YACJ,OAAO,EAAE,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"custom-matchers.js","sourceRoot":"","sources":["../../src/playwright-util/custom-matchers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAkD,MAAM,kBAAkB,CAAC;AAEtG,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IACrC,KAAK,CAAC,SAAS,CAA2B,QAAiB;QAC1D,OAAO,CAAC,GAAG,CAAC,MAAM,QAAQ,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;QACpD,MAAM,CAAC,MAAM,QAAQ,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACxD,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9C,CAAC;IACD,KAAK,CAAC,YAAY,CAA2B,QAAiB;QAC7D,MAAM,CAAC,MAAM,QAAQ,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC1D,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9C,CAAC;IACD,KAAK,CAAC,WAAW,CAA2B,QAAiB,EAAE,QAAgB;QAC9E,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAAoB,EAAE,EAAE,CAAC,EAAE,CAAC,KAAe,CAAC,CAAC;QACrF,MAAM,IAAI,GAAG,MAAM,KAAK,QAAQ,CAAC;QACjC,OAAO;YACN,IAAI;YACJ,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,6BAA6B,QAAQ,GAAG,CAAC,CAAC,CAAC,yBAAyB,QAAQ,cAAc,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC;SAChK,CAAC;IACH,CAAC;CACD,CAAC,CAAC","sourcesContent":["import { expect as pwExpect, ExpectMatcherState, Locator, MatcherReturnType } from '@playwright/test';\n\nexport const expect = pwExpect.extend({\n\tasync isChecked(this: ExpectMatcherState, receiver: Locator): Promise<MatcherReturnType> {\n\t\tconsole.log(await receiver.getAttribute('checked'));\n\t\texpect(await receiver.getAttribute('checked')).toBe('');\n\t\treturn { message: () => 'Pass', pass: true };\n\t},\n\tasync isNotChecked(this: ExpectMatcherState, receiver: Locator): Promise<MatcherReturnType> {\n\t\texpect(await receiver.getAttribute('checked')).toBeNull();\n\t\treturn { message: () => 'Pass', pass: true };\n\t},\n\tasync toHaveValue(this: ExpectMatcherState, receiver: Locator, expected: string): Promise<MatcherReturnType> {\n\t\tconst actual = await receiver.evaluate((el: HTMLInputElement) => el.value as string);\n\t\tconst pass = actual === expected;\n\t\treturn {\n\t\t\tpass,\n\t\t\tmessage: () => (pass ? `expected value not to be “${expected}”` : `expected value to be “${expected}”, but got ${actual === null ? 'no value' : `“${actual}”`}`),\n\t\t};\n\t},\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDSAlert } from '../sds-alert/sds-alert';
|
|
2
|
-
import { SheriffEventName } from '
|
|
2
|
+
import { SheriffEventName } from './types';
|
|
3
3
|
export declare const SDSAlertWrapper: import("@lit/react").ReactWebComponent<SDSAlert, {
|
|
4
4
|
onRemove: SheriffEventName;
|
|
5
5
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSAlertWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSAlertWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SDSAlertWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSAlertWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,eAAe;cAKA,gBAAgB;EAE1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSAlertWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSAlertWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;IAC9C,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,QAAQ;IACtB,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 { SDSAlert } from '../sds-alert/sds-alert';\nimport { SheriffEventName } from '
|
|
1
|
+
{"version":3,"file":"SDSAlertWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSAlertWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;IAC9C,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,QAAQ;IACtB,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 { SDSAlert } from '../sds-alert/sds-alert';\nimport { SheriffEventName } from './types';\n\nexport const SDSAlertWrapper = createComponent({\n\ttagName: 'sds-alert',\n\telementClass: SDSAlert,\n\treact: React,\n\tevents: {\n\t\tonRemove: 'sds-remove' as SheriffEventName,\n\t},\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDSButton } from '../sds-button/sds-button';
|
|
2
|
-
import { SheriffEventName } from '
|
|
2
|
+
import { SheriffEventName } from './types';
|
|
3
3
|
export declare const SDSButtonWrapper: import("@lit/react").ReactWebComponent<SDSButton, {
|
|
4
4
|
onClick: SheriffEventName;
|
|
5
5
|
onReset: SheriffEventName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSButtonWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSButtonWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SDSButtonWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSButtonWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,gBAAgB;aAKP,gBAAgB;aAChB,gBAAgB;cACd,gBAAgB;EAEtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSButtonWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSButtonWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD,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,OAAO,EAAE,OAA2B;QACpC,QAAQ,EAAE,QAA4B;KACtC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSButton } from '../sds-button/sds-button';\nimport { SheriffEventName } from '
|
|
1
|
+
{"version":3,"file":"SDSButtonWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSButtonWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD,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,OAAO,EAAE,OAA2B;QACpC,QAAQ,EAAE,QAA4B;KACtC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSButton } from '../sds-button/sds-button';\nimport { SheriffEventName } from './types';\n\nexport const SDSButtonWrapper = createComponent({\n\ttagName: 'sds-button',\n\telementClass: SDSButton,\n\treact: React,\n\tevents: {\n\t\tonClick: 'click' as SheriffEventName,\n\t\tonReset: 'reset' as SheriffEventName,\n\t\tonSubmit: 'submit' as SheriffEventName,\n\t},\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDSCheckboxGroup } from '../sds-checkbox-group/sds-checkbox-group';
|
|
2
|
-
import { SheriffEventName } from '
|
|
2
|
+
import { SheriffEventName } from './types';
|
|
3
3
|
export declare const SDSCheckboxGroupWrapper: import("@lit/react").ReactWebComponent<SDSCheckboxGroup, {
|
|
4
4
|
onUpdate: SheriffEventName;
|
|
5
5
|
onChange: SheriffEventName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSCheckboxGroupWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSCheckboxGroupWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SDSCheckboxGroupWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSCheckboxGroupWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,uBAAuB;cAKR,gBAAgB;cACpB,gBAAgB;EAEtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSCheckboxGroupWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSCheckboxGroupWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAG5E,MAAM,CAAC,MAAM,uBAAuB,GAAG,eAAe,CAAC;IACtD,OAAO,EAAE,oBAAoB;IAC7B,YAAY,EAAE,gBAAgB;IAC9B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,QAAQ,EAAE,YAAgC;QAC1C,QAAQ,EAAE,QAA4B;KACtC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSCheckboxGroup } from '../sds-checkbox-group/sds-checkbox-group';\nimport { SheriffEventName } from '
|
|
1
|
+
{"version":3,"file":"SDSCheckboxGroupWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSCheckboxGroupWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAG5E,MAAM,CAAC,MAAM,uBAAuB,GAAG,eAAe,CAAC;IACtD,OAAO,EAAE,oBAAoB;IAC7B,YAAY,EAAE,gBAAgB;IAC9B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,QAAQ,EAAE,YAAgC;QAC1C,QAAQ,EAAE,QAA4B;KACtC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSCheckboxGroup } from '../sds-checkbox-group/sds-checkbox-group';\nimport { SheriffEventName } from './types';\n\nexport const SDSCheckboxGroupWrapper = createComponent({\n\ttagName: 'sds-checkbox-group',\n\telementClass: SDSCheckboxGroup,\n\treact: React,\n\tevents: {\n\t\tonUpdate: 'sds-update' as SheriffEventName,\n\t\tonChange: 'change' as SheriffEventName,\n\t},\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDSCheckbox } from '../sds-checkbox/sds-checkbox';
|
|
2
|
-
import { SheriffEventName } from '
|
|
2
|
+
import { SheriffEventName } from './types';
|
|
3
3
|
export declare const SDSCheckboxWrapper: import("@lit/react").ReactWebComponent<SDSCheckbox, {
|
|
4
4
|
onChange: SheriffEventName;
|
|
5
5
|
onFocus: SheriffEventName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSCheckboxWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSCheckboxWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SDSCheckboxWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSCheckboxWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,kBAAkB;cAKP,gBAAgB;aAClB,gBAAgB;YAClB,gBAAgB;EAElC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSCheckboxWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSCheckboxWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;IACjD,OAAO,EAAE,cAAc;IACvB,YAAY,EAAE,WAAW;IACzB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,QAAQ,EAAE,QAA4B;QACtC,OAAO,EAAE,OAA2B;QACpC,MAAM,EAAE,MAA0B;KAClC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSCheckbox } from '../sds-checkbox/sds-checkbox';\nimport { SheriffEventName } from '
|
|
1
|
+
{"version":3,"file":"SDSCheckboxWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSCheckboxWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;IACjD,OAAO,EAAE,cAAc;IACvB,YAAY,EAAE,WAAW;IACzB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,QAAQ,EAAE,QAA4B;QACtC,OAAO,EAAE,OAA2B;QACpC,MAAM,EAAE,MAA0B;KAClC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSCheckbox } from '../sds-checkbox/sds-checkbox';\nimport { SheriffEventName } from './types';\n\nexport const SDSCheckboxWrapper = createComponent({\n\ttagName: 'sds-checkbox',\n\telementClass: SDSCheckbox,\n\treact: React,\n\tevents: {\n\t\tonChange: 'change' as SheriffEventName,\n\t\tonFocus: 'focus' as SheriffEventName,\n\t\tonBlur: 'blur' as SheriffEventName,\n\t},\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDSChip } from '../sds-chip/sds-chip';
|
|
2
|
-
import { SheriffEventName } from '
|
|
2
|
+
import { SheriffEventName } from './types';
|
|
3
3
|
export declare const SDSChipWrapper: import("@lit/react").ReactWebComponent<SDSChip, {
|
|
4
4
|
onChange: SheriffEventName;
|
|
5
5
|
onRemove: SheriffEventName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSChipWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSChipWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SDSChipWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSChipWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,cAAc;cAKH,gBAAgB;cACZ,gBAAgB;EAE1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSChipWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSChipWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;IAC7C,OAAO,EAAE,UAAU;IACnB,YAAY,EAAE,OAAO;IACrB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,QAAQ,EAAE,QAA4B;QACtC,QAAQ,EAAE,YAAgC;KAC1C;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSChip } from '../sds-chip/sds-chip';\nimport { SheriffEventName } from '
|
|
1
|
+
{"version":3,"file":"SDSChipWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSChipWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;IAC7C,OAAO,EAAE,UAAU;IACnB,YAAY,EAAE,OAAO;IACrB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,QAAQ,EAAE,QAA4B;QACtC,QAAQ,EAAE,YAAgC;KAC1C;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSChip } from '../sds-chip/sds-chip';\nimport { SheriffEventName } from './types';\n\nexport const SDSChipWrapper = createComponent({\n\ttagName: 'sds-chip',\n\telementClass: SDSChip,\n\treact: React,\n\tevents: {\n\t\tonChange: 'change' as SheriffEventName,\n\t\tonRemove: 'sds-remove' as SheriffEventName,\n\t},\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDSDetails } from '../sds-details/sds-details';
|
|
2
|
-
import { SheriffEventName } from '
|
|
2
|
+
import { SheriffEventName } from './types';
|
|
3
3
|
export declare const SDSDetailsWrapper: import("@lit/react").ReactWebComponent<SDSDetails, {
|
|
4
4
|
onToggle: SheriffEventName;
|
|
5
5
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSDetailsWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSDetailsWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SDSDetailsWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSDetailsWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,iBAAiB;cAKF,gBAAgB;EAE1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSDetailsWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSDetailsWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGxD,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC;IAChD,OAAO,EAAE,aAAa;IACtB,YAAY,EAAE,UAAU;IACxB,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 { SDSDetails } from '../sds-details/sds-details';\nimport { SheriffEventName } from '
|
|
1
|
+
{"version":3,"file":"SDSDetailsWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSDetailsWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGxD,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC;IAChD,OAAO,EAAE,aAAa;IACtB,YAAY,EAAE,UAAU;IACxB,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 { SDSDetails } from '../sds-details/sds-details';\nimport { SheriffEventName } from './types';\n\nexport const SDSDetailsWrapper = createComponent({\n\ttagName: 'sds-details',\n\telementClass: SDSDetails,\n\treact: React,\n\tevents: {\n\t\tonToggle: 'sds-toggle' as SheriffEventName,\n\t},\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDSNotification } from '../sds-notification/sds-notification';
|
|
2
|
-
import { SheriffEventName } from '
|
|
2
|
+
import { SheriffEventName } from './types';
|
|
3
3
|
export declare const SDSNotificationWrapper: import("@lit/react").ReactWebComponent<SDSNotification, {
|
|
4
4
|
onRemove: SheriffEventName;
|
|
5
5
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSNotificationWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSNotificationWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SDSNotificationWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSNotificationWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,sBAAsB;cAKP,gBAAgB;EAE1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSNotificationWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSNotificationWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAGvE,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC;IACrD,OAAO,EAAE,kBAAkB;IAC3B,YAAY,EAAE,eAAe;IAC7B,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 { SDSNotification } from '../sds-notification/sds-notification';\nimport { SheriffEventName } from '
|
|
1
|
+
{"version":3,"file":"SDSNotificationWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSNotificationWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAGvE,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC;IACrD,OAAO,EAAE,kBAAkB;IAC3B,YAAY,EAAE,eAAe;IAC7B,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 { SDSNotification } from '../sds-notification/sds-notification';\nimport { SheriffEventName } from './types';\n\nexport const SDSNotificationWrapper = createComponent({\n\ttagName: 'sds-notification',\n\telementClass: SDSNotification,\n\treact: React,\n\tevents: {\n\t\tonRemove: 'sds-remove' as SheriffEventName,\n\t},\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDSRadioGroup } from '../sds-radio-group/sds-radio-group';
|
|
2
|
-
import { SheriffEventName } from '
|
|
2
|
+
import { SheriffEventName } from './types';
|
|
3
3
|
export declare const SDSRadioGroupWrapper: import("@lit/react").ReactWebComponent<SDSRadioGroup, {
|
|
4
4
|
onUpdate: SheriffEventName;
|
|
5
5
|
onChange: SheriffEventName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSRadioGroupWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSRadioGroupWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SDSRadioGroupWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSRadioGroupWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,oBAAoB;cAKL,gBAAgB;cACpB,gBAAgB;EAEtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSRadioGroupWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSRadioGroupWrapper.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,YAAgC;QAC1C,QAAQ,EAAE,QAA4B;KACtC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSRadioGroup } from '../sds-radio-group/sds-radio-group';\nimport { SheriffEventName } from '
|
|
1
|
+
{"version":3,"file":"SDSRadioGroupWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSRadioGroupWrapper.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,YAAgC;QAC1C,QAAQ,EAAE,QAA4B;KACtC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSRadioGroup } from '../sds-radio-group/sds-radio-group';\nimport { SheriffEventName } from './types';\n\nexport const SDSRadioGroupWrapper = createComponent({\n\ttagName: 'sds-radio-group',\n\telementClass: SDSRadioGroup,\n\treact: React,\n\tevents: {\n\t\tonUpdate: 'sds-update' as SheriffEventName,\n\t\tonChange: 'change' as SheriffEventName,\n\t},\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDSRadio } from '../sds-radio/sds-radio';
|
|
2
|
-
import { SheriffEventName } from '
|
|
2
|
+
import { SheriffEventName } from './types';
|
|
3
3
|
export declare const SDSRadioWrapper: import("@lit/react").ReactWebComponent<SDSRadio, {
|
|
4
4
|
onChange: SheriffEventName;
|
|
5
5
|
onFocus: SheriffEventName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSRadioWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSRadioWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SDSRadioWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSRadioWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,eAAe;cAKJ,gBAAgB;aAClB,gBAAgB;YAClB,gBAAgB;EAElC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSRadioWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSRadioWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;IAC9C,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,QAAQ;IACtB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,QAAQ,EAAE,QAA4B;QACtC,OAAO,EAAE,OAA2B;QACpC,MAAM,EAAE,MAA0B;KAClC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSRadio } from '../sds-radio/sds-radio';\nimport { SheriffEventName } from '
|
|
1
|
+
{"version":3,"file":"SDSRadioWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSRadioWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;IAC9C,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,QAAQ;IACtB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,QAAQ,EAAE,QAA4B;QACtC,OAAO,EAAE,OAA2B;QACpC,MAAM,EAAE,MAA0B;KAClC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSRadio } from '../sds-radio/sds-radio';\nimport { SheriffEventName } from './types';\n\nexport const SDSRadioWrapper = createComponent({\n\ttagName: 'sds-radio',\n\telementClass: SDSRadio,\n\treact: React,\n\tevents: {\n\t\tonChange: 'change' as SheriffEventName,\n\t\tonFocus: 'focus' as SheriffEventName,\n\t\tonBlur: 'blur' as SheriffEventName,\n\t},\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDSSwitch } from '../sds-switch/sds-switch';
|
|
2
|
-
import { SheriffEventName } from '
|
|
2
|
+
import { SheriffEventName } from './types';
|
|
3
3
|
export declare const SDSSwitchWrapper: import("@lit/react").ReactWebComponent<SDSSwitch, {
|
|
4
4
|
onChange: SheriffEventName;
|
|
5
5
|
onFocus: SheriffEventName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSSwitchWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSSwitchWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SDSSwitchWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSSwitchWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,gBAAgB;cAKL,gBAAgB;aAClB,gBAAgB;YAClB,gBAAgB;EAElC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSSwitchWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSSwitchWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD,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,QAA4B;QACtC,OAAO,EAAE,OAA2B;QACpC,MAAM,EAAE,MAA0B;KAClC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSSwitch } from '../sds-switch/sds-switch';\nimport { SheriffEventName } from '
|
|
1
|
+
{"version":3,"file":"SDSSwitchWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSSwitchWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD,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,QAA4B;QACtC,OAAO,EAAE,OAA2B;QACpC,MAAM,EAAE,MAA0B;KAClC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSSwitch } from '../sds-switch/sds-switch';\nimport { SheriffEventName } from './types';\n\nexport const SDSSwitchWrapper = createComponent({\n\ttagName: 'sds-switch',\n\telementClass: SDSSwitch,\n\treact: React,\n\tevents: {\n\t\tonChange: 'change' as SheriffEventName,\n\t\tonFocus: 'focus' as SheriffEventName,\n\t\tonBlur: 'blur' as SheriffEventName,\n\t},\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDSTextArea } from '../sds-textarea/sds-textarea';
|
|
2
|
-
import { SheriffEventName } from '
|
|
2
|
+
import { SheriffEventName } from './types';
|
|
3
3
|
export declare const SDSTextAreaWrapper: import("@lit/react").ReactWebComponent<SDSTextArea, {
|
|
4
4
|
onInput: SheriffEventName;
|
|
5
5
|
onChange: SheriffEventName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSTextAreaWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSTextAreaWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SDSTextAreaWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSTextAreaWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,kBAAkB;aAKT,gBAAgB;cACf,gBAAgB;cACf,gBAAgB;aAClB,gBAAgB;YAClB,gBAAgB;EAElC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSTextAreaWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSTextAreaWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;IACjD,OAAO,EAAE,cAAc;IACvB,YAAY,EAAE,WAAW;IACzB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,OAAO,EAAE,OAA2B;QACpC,QAAQ,EAAE,OAA2B;QACrC,QAAQ,EAAE,QAA4B;QACtC,OAAO,EAAE,OAA2B;QACpC,MAAM,EAAE,MAA0B;KAClC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSTextArea } from '../sds-textarea/sds-textarea';\nimport { SheriffEventName } from '
|
|
1
|
+
{"version":3,"file":"SDSTextAreaWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSTextAreaWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;IACjD,OAAO,EAAE,cAAc;IACvB,YAAY,EAAE,WAAW;IACzB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,OAAO,EAAE,OAA2B;QACpC,QAAQ,EAAE,OAA2B;QACrC,QAAQ,EAAE,QAA4B;QACtC,OAAO,EAAE,OAA2B;QACpC,MAAM,EAAE,MAA0B;KAClC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSTextArea } from '../sds-textarea/sds-textarea';\nimport { SheriffEventName } from './types';\n\nexport const SDSTextAreaWrapper = createComponent({\n\ttagName: 'sds-textarea',\n\telementClass: SDSTextArea,\n\treact: React,\n\tevents: {\n\t\tonInput: 'input' as SheriffEventName,\n\t\tonChange: 'input' as SheriffEventName,\n\t\tonSelect: 'select' as SheriffEventName,\n\t\tonFocus: 'focus' as SheriffEventName,\n\t\tonBlur: 'blur' as SheriffEventName,\n\t},\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDSTextField } from '../sds-textfield/sds-textfield';
|
|
2
|
-
import { SheriffEventName } from '
|
|
2
|
+
import { SheriffEventName } from './types';
|
|
3
3
|
export declare const SDSTextFieldWrapper: import("@lit/react").ReactWebComponent<SDSTextField, {
|
|
4
4
|
onInput: SheriffEventName;
|
|
5
5
|
onChange: SheriffEventName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSTextFieldWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSTextFieldWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SDSTextFieldWrapper.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/SDSTextFieldWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,mBAAmB;aAKV,gBAAgB;cACf,gBAAgB;cACf,gBAAgB;aAClB,gBAAgB;YAClB,gBAAgB;EAElC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDSTextFieldWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSTextFieldWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAG9D,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAClD,OAAO,EAAE,eAAe;IACxB,YAAY,EAAE,YAAY;IAC1B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,OAAO,EAAE,OAA2B;QACpC,QAAQ,EAAE,OAA2B;QACrC,QAAQ,EAAE,QAA4B;QACtC,OAAO,EAAE,OAA2B;QACpC,MAAM,EAAE,MAA0B;KAClC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSTextField } from '../sds-textfield/sds-textfield';\nimport { SheriffEventName } from '
|
|
1
|
+
{"version":3,"file":"SDSTextFieldWrapper.js","sourceRoot":"","sources":["../../src/react-wrappers/SDSTextFieldWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAG9D,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAClD,OAAO,EAAE,eAAe;IACxB,YAAY,EAAE,YAAY;IAC1B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACP,OAAO,EAAE,OAA2B;QACpC,QAAQ,EAAE,OAA2B;QACrC,QAAQ,EAAE,QAA4B;QACtC,OAAO,EAAE,OAA2B;QACpC,MAAM,EAAE,MAA0B;KAClC;CACD,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport React from 'react';\nimport { SDSTextField } from '../sds-textfield/sds-textfield';\nimport { SheriffEventName } from './types';\n\nexport const SDSTextFieldWrapper = createComponent({\n\ttagName: 'sds-textfield',\n\telementClass: SDSTextField,\n\treact: React,\n\tevents: {\n\t\tonInput: 'input' as SheriffEventName,\n\t\tonChange: 'input' as SheriffEventName,\n\t\tonSelect: 'select' as SheriffEventName,\n\t\tonFocus: 'focus' as SheriffEventName,\n\t\tonBlur: 'blur' as SheriffEventName,\n\t},\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/react-wrappers/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/react-wrappers/types.ts"],"names":[],"mappings":"","sourcesContent":["import { EventName } from '@lit/react';\nimport { SheriffEvent } from '../types';\nexport type SheriffEventName = EventName<SheriffEvent>;\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { SDS_VARIANTS, SDS_SIZES } from '../types';
|
|
3
|
+
type ColorPalette = 'info' | 'success' | 'attention' | 'danger';
|
|
4
|
+
type Variants = Extract<SDS_VARIANTS, 'primary' | 'secondary'>;
|
|
5
|
+
type AlertSize = Extract<SDS_SIZES, 'lg' | 'md' | 'sm'>;
|
|
6
|
+
export interface SDSAlertProps {
|
|
7
|
+
variant?: Variants;
|
|
8
|
+
size?: AlertSize;
|
|
9
|
+
'removable-label'?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class SDSAlertComponent extends LitElement {
|
|
12
|
+
static styles: import("lit").CSSResult[];
|
|
13
|
+
variant: Variants;
|
|
14
|
+
size: AlertSize;
|
|
15
|
+
removableLabel?: string;
|
|
16
|
+
palette: ColorPalette;
|
|
17
|
+
protected iconTag: import("lit-html/static").StaticValue;
|
|
18
|
+
protected buttonTag: import("lit-html/static").StaticValue;
|
|
19
|
+
private readonly _remove;
|
|
20
|
+
private readonly _renderIcon;
|
|
21
|
+
private readonly _renderRemoveButton;
|
|
22
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=sds-alert.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sds-alert.component.d.ts","sourceRoot":"","sources":["../../src/sds-alert/sds-alert.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;AAIhD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEnD,KAAK,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAChE,KAAK,QAAQ,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,WAAW,CAAC,CAAC;AAC/D,KAAK,SAAS,GAAG,OAAO,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;AASxD,MAAM,WAAW,aAAa;IAC7B,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,qBAAa,iBAAkB,SAAQ,UAAU;IAChD,OAAgB,MAAM,4BAAY;IAES,OAAO,EAAE,QAAQ,CAAa;IAC9B,IAAI,EAAE,SAAS,CAAQ;IACO,cAAc,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,YAAY,CAAU;IAErG,SAAS,CAAC,OAAO,wCAAqB;IACtC,SAAS,CAAC,SAAS,wCAAuB;IAE1C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAOtB;IAEF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAE1B;IAEF,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAWlC;IAEO,MAAM;CAaf"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, nothing } from 'lit';
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
9
|
+
import { html as staticHtml, literal } from 'lit/static-html.js';
|
|
10
|
+
import { styles } from './sds-alert.styles';
|
|
11
|
+
const alertIcons = {
|
|
12
|
+
info: 'InformationSquareFill-aksel-filled',
|
|
13
|
+
success: 'check_circle-material-filled',
|
|
14
|
+
attention: 'warning-material-filled',
|
|
15
|
+
danger: 'dangerous-material-filled',
|
|
16
|
+
};
|
|
17
|
+
export class SDSAlertComponent extends LitElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.variant = 'primary';
|
|
21
|
+
this.size = 'md';
|
|
22
|
+
this.palette = 'info';
|
|
23
|
+
this.iconTag = literal `sds-icon`;
|
|
24
|
+
this.buttonTag = literal `sds-button`;
|
|
25
|
+
this._remove = () => {
|
|
26
|
+
this.dispatchEvent(new CustomEvent('sds-remove', {
|
|
27
|
+
bubbles: true,
|
|
28
|
+
composed: true,
|
|
29
|
+
}));
|
|
30
|
+
};
|
|
31
|
+
this._renderIcon = (iconName, size, cls) => {
|
|
32
|
+
return staticHtml `<${this.iconTag} ${cls ? `class=${cls}` : ''} name="${iconName}" size=${size}></${this.iconTag}>`;
|
|
33
|
+
};
|
|
34
|
+
this._renderRemoveButton = (ariaLabel) => {
|
|
35
|
+
return staticHtml `<${this.buttonTag}
|
|
36
|
+
class="sds-alert__remove-btn"
|
|
37
|
+
variant="tertiary"
|
|
38
|
+
size="sm"
|
|
39
|
+
?icon=${true}
|
|
40
|
+
aria-label=${ariaLabel}
|
|
41
|
+
@click=${this._remove}
|
|
42
|
+
>
|
|
43
|
+
${this._renderIcon('close-material-outlined', 'sm')}
|
|
44
|
+
</${this.buttonTag}>`;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
const iconSize = this.variant === 'primary' ? 'md' : this.size ?? 'md';
|
|
49
|
+
const iconName = alertIcons[this.palette] ?? alertIcons['info'];
|
|
50
|
+
return html `<div class="sds-alert">
|
|
51
|
+
<div class="sds-alert__type">${this._renderIcon(iconName, iconSize, 'sds-alert__icon')}</div>
|
|
52
|
+
<div class="sds-alert__content">
|
|
53
|
+
<slot name="title"></slot>
|
|
54
|
+
<slot name="message"></slot>
|
|
55
|
+
</div>
|
|
56
|
+
${this.removableLabel && this.variant === 'primary' ? html `<div class="sds-alert__actions">${this._renderRemoveButton(this.removableLabel)}</div>` : nothing}
|
|
57
|
+
</div>`;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
SDSAlertComponent.styles = [styles];
|
|
61
|
+
__decorate([
|
|
62
|
+
property({ type: String, reflect: true })
|
|
63
|
+
], SDSAlertComponent.prototype, "variant", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
property({ type: String, reflect: true })
|
|
66
|
+
], SDSAlertComponent.prototype, "size", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
property({ type: String, attribute: 'removable-label', reflect: true })
|
|
69
|
+
], SDSAlertComponent.prototype, "removableLabel", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
property({ type: String, attribute: 'data-palette', reflect: true })
|
|
72
|
+
], SDSAlertComponent.prototype, "palette", void 0);
|
|
73
|
+
//# sourceMappingURL=sds-alert.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sds-alert.component.js","sourceRoot":"","sources":["../../src/sds-alert/sds-alert.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAO5C,MAAM,UAAU,GAAiC;IAChD,IAAI,EAAE,oCAAoC;IAC1C,OAAO,EAAE,8BAA8B;IACvC,SAAS,EAAE,yBAAyB;IACpC,MAAM,EAAE,2BAA2B;CACnC,CAAC;AAQF,MAAM,OAAO,iBAAkB,SAAQ,UAAU;IAAjD;;QAG4C,YAAO,GAAa,SAAS,CAAC;QAC9B,SAAI,GAAc,IAAI,CAAC;QAEI,YAAO,GAAiB,MAAM,CAAC;QAE3F,YAAO,GAAG,OAAO,CAAA,UAAU,CAAC;QAC5B,cAAS,GAAG,OAAO,CAAA,YAAY,CAAC;QAEzB,YAAO,GAAG,GAAG,EAAE;YAC/B,IAAI,CAAC,aAAa,CACjB,IAAI,WAAW,CAAC,YAAY,EAAE;gBAC7B,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,IAAI;aACd,CAAC,CACF,CAAC;QACH,CAAC,CAAC;QAEe,gBAAW,GAAG,CAAC,QAAgB,EAAE,IAAY,EAAE,GAAY,EAAE,EAAE;YAC/E,OAAO,UAAU,CAAA,IAAI,IAAI,CAAC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,SAAS,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,QAAQ,UAAU,IAAI,MAAM,IAAI,CAAC,OAAO,GAAG,CAAC;QACrH,CAAC,CAAC;QAEe,wBAAmB,GAAG,CAAC,SAAiB,EAAE,EAAE;YAC5D,OAAO,UAAU,CAAA,IAAI,IAAI,CAAC,SAAS;;;;UAI3B,IAAI;eACC,SAAS;WACb,IAAI,CAAC,OAAO;;IAEnB,IAAI,CAAC,WAAW,CAAC,yBAAyB,EAAE,IAAI,CAAC;MAC/C,IAAI,CAAC,SAAS,GAAG,CAAC;QACvB,CAAC,CAAC;IAeH,CAAC;IAbS,MAAM;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC;QACvE,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAA;kCACqB,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,CAAC;;;;;KAKpF,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA,mCAAmC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO;SACtJ,CAAC;IACT,CAAC;;AAhDe,wBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAES;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAA+B;AAC9B;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAAwB;AACO;IAAxE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yDAAyB;AAC3B;IAArE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAAgC","sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { html as staticHtml, literal } from 'lit/static-html.js';\nimport { styles } from './sds-alert.styles';\nimport { SDS_VARIANTS, SDS_SIZES } from '../types';\n\ntype ColorPalette = 'info' | 'success' | 'attention' | 'danger';\ntype Variants = Extract<SDS_VARIANTS, 'primary' | 'secondary'>;\ntype AlertSize = Extract<SDS_SIZES, 'lg' | 'md' | 'sm'>;\n\nconst alertIcons: Record<ColorPalette, string> = {\n\tinfo: 'InformationSquareFill-aksel-filled',\n\tsuccess: 'check_circle-material-filled',\n\tattention: 'warning-material-filled',\n\tdanger: 'dangerous-material-filled',\n};\n\nexport interface SDSAlertProps {\n\tvariant?: Variants;\n\tsize?: AlertSize;\n\t'removable-label'?: string;\n}\n\nexport class SDSAlertComponent extends LitElement {\n\tstatic override styles = [styles];\n\n\t@property({ type: String, reflect: true }) variant: Variants = 'primary';\n\t@property({ type: String, reflect: true }) size: AlertSize = 'md';\n\t@property({ type: String, attribute: 'removable-label', reflect: true }) removableLabel?: string;\n\t@property({ type: String, attribute: 'data-palette', reflect: true }) palette: ColorPalette = 'info';\n\n\tprotected iconTag = literal`sds-icon`;\n\tprotected buttonTag = literal`sds-button`;\n\n\tprivate readonly _remove = () => {\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent('sds-remove', {\n\t\t\t\tbubbles: true,\n\t\t\t\tcomposed: true,\n\t\t\t})\n\t\t);\n\t};\n\n\tprivate readonly _renderIcon = (iconName: string, size: string, cls?: string) => {\n\t\treturn staticHtml`<${this.iconTag} ${cls ? `class=${cls}` : ''} name=\"${iconName}\" size=${size}></${this.iconTag}>`;\n\t};\n\n\tprivate readonly _renderRemoveButton = (ariaLabel: string) => {\n\t\treturn staticHtml`<${this.buttonTag}\n\t\tclass=\"sds-alert__remove-btn\"\n\t\tvariant=\"tertiary\"\n\t\tsize=\"sm\"\n\t\t?icon=${true}\n\t\taria-label=${ariaLabel}\n\t\t@click=${this._remove}\n\t\t>\n\t\t${this._renderIcon('close-material-outlined', 'sm')}\n\t\t</${this.buttonTag}>`;\n\t};\n\n\toverride render() {\n\t\tconst iconSize = this.variant === 'primary' ? 'md' : this.size ?? 'md';\n\t\tconst iconName = alertIcons[this.palette] ?? alertIcons['info'];\n\n\t\treturn html`<div class=\"sds-alert\">\n\t\t\t<div class=\"sds-alert__type\">${this._renderIcon(iconName, iconSize, 'sds-alert__icon')}</div>\n\t\t\t<div class=\"sds-alert__content\">\n\t\t\t\t<slot name=\"title\"></slot>\n\t\t\t\t<slot name=\"message\"></slot>\n\t\t\t</div>\n\t\t\t${this.removableLabel && this.variant === 'primary' ? html`<div class=\"sds-alert__actions\">${this._renderRemoveButton(this.removableLabel)}</div>` : nothing}\n\t\t</div>`;\n\t}\n}\n"]}
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SheriffEvent } from '../types';
|
|
2
|
+
import { SDSAlertComponent } from './sds-alert.component';
|
|
3
3
|
import '../sds-icon/sds-icon';
|
|
4
4
|
import '../sds-button/sds-button';
|
|
5
|
-
|
|
6
|
-
type Variants = Extract<SDS_VARIANTS, 'primary' | 'secondary'>;
|
|
7
|
-
type AlertSize = Extract<SDS_SIZES, 'lg' | 'md' | 'sm'>;
|
|
8
|
-
export interface SDSAlertProps {
|
|
9
|
-
variant?: Variants;
|
|
10
|
-
size?: AlertSize;
|
|
11
|
-
'removable-label'?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare class SDSAlert extends LitElement {
|
|
14
|
-
static styles: import("lit").CSSResult[];
|
|
15
|
-
variant: Variants;
|
|
16
|
-
size: AlertSize;
|
|
17
|
-
removableLabel?: string;
|
|
18
|
-
palette: ColorPalette;
|
|
19
|
-
private readonly _remove;
|
|
20
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
5
|
+
export declare class SDSAlert extends SDSAlertComponent {
|
|
21
6
|
}
|
|
22
7
|
declare global {
|
|
23
8
|
interface HTMLElementTagNameMap {
|
|
@@ -27,5 +12,4 @@ declare global {
|
|
|
27
12
|
'sds-remove': SheriffEvent;
|
|
28
13
|
}
|
|
29
14
|
}
|
|
30
|
-
export {};
|
|
31
15
|
//# sourceMappingURL=sds-alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sds-alert.d.ts","sourceRoot":"","sources":["../../src/sds-alert/sds-alert.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sds-alert.d.ts","sourceRoot":"","sources":["../../src/sds-alert/sds-alert.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,sBAAsB,CAAC;AAC9B,OAAO,0BAA0B,CAAC;AAElC,qBACa,QAAS,SAAQ,iBAAiB;CAAG;AAElD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;KACtB;IACD,UAAU,2BAA2B;QACpC,YAAY,EAAE,YAAY,CAAC;KAC3B;CACD"}
|