@riverty/web-components 6.2.0 → 6.3.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/CHANGELOG.md +30 -0
- package/README.md +78 -0
- package/custom-elements.json +4 -0
- package/package.json +3 -2
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
- package/dist/cjs/focusable-Oll_rmtP.js +0 -28
- package/dist/cjs/formData-B2DZyLxP.js +0 -44
- package/dist/cjs/index-BnETQtSf.js +0 -1834
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -13
- package/dist/cjs/r-accordion-panel.cjs.entry.js +0 -24
- package/dist/cjs/r-accordion-section.cjs.entry.js +0 -125
- package/dist/cjs/r-accordion-trigger.cjs.entry.js +0 -93
- package/dist/cjs/r-accordion.cjs.entry.js +0 -20
- package/dist/cjs/r-alert.cjs.entry.js +0 -146
- package/dist/cjs/r-badge.cjs.entry.js +0 -40
- package/dist/cjs/r-button.cjs.entry.js +0 -149
- package/dist/cjs/r-checkbox-group.cjs.entry.js +0 -232
- package/dist/cjs/r-checkbox.cjs.entry.js +0 -269
- package/dist/cjs/r-design-system-devtools.cjs.entry.js +0 -31
- package/dist/cjs/r-dialog.cjs.entry.js +0 -107
- package/dist/cjs/r-hint_2.cjs.entry.js +0 -50
- package/dist/cjs/r-icon-button_2.cjs.entry.js +0 -467
- package/dist/cjs/r-icon.cjs.entry.js +0 -284
- package/dist/cjs/r-illustration.cjs.entry.js +0 -396
- package/dist/cjs/r-input-code.cjs.entry.js +0 -432
- package/dist/cjs/r-input-date.cjs.entry.js +0 -519
- package/dist/cjs/r-input-password.cjs.entry.js +0 -265
- package/dist/cjs/r-input-phone-number.cjs.entry.js +0 -2525
- package/dist/cjs/r-input.cjs.entry.js +0 -402
- package/dist/cjs/r-list-item.cjs.entry.js +0 -109
- package/dist/cjs/r-pagination.cjs.entry.js +0 -314
- package/dist/cjs/r-panel.cjs.entry.js +0 -184
- package/dist/cjs/r-popover-action.cjs.entry.js +0 -80
- package/dist/cjs/r-popover-content.cjs.entry.js +0 -62
- package/dist/cjs/r-popover-headline.cjs.entry.js +0 -28
- package/dist/cjs/r-popover-trigger.cjs.entry.js +0 -70
- package/dist/cjs/r-popover.cjs.entry.js +0 -347
- package/dist/cjs/r-progress-bar.cjs.entry.js +0 -25
- package/dist/cjs/r-radio-button-description.cjs.entry.js +0 -18
- package/dist/cjs/r-radio-button-leading.cjs.entry.js +0 -18
- package/dist/cjs/r-radio-button-title.cjs.entry.js +0 -18
- package/dist/cjs/r-radio-button-trailing.cjs.entry.js +0 -18
- package/dist/cjs/r-radio-button.cjs.entry.js +0 -139
- package/dist/cjs/r-radio-group.cjs.entry.js +0 -425
- package/dist/cjs/r-select-option.cjs.entry.js +0 -130
- package/dist/cjs/r-select.cjs.entry.js +0 -1101
- package/dist/cjs/r-skip-link.cjs.entry.js +0 -19
- package/dist/cjs/r-stepper-item.cjs.entry.js +0 -42
- package/dist/cjs/r-stepper.cjs.entry.js +0 -99
- package/dist/cjs/r-tab-panel.cjs.entry.js +0 -26
- package/dist/cjs/r-tab.cjs.entry.js +0 -62
- package/dist/cjs/r-tabs-list.cjs.entry.js +0 -175
- package/dist/cjs/r-tabs.cjs.entry.js +0 -277
- package/dist/cjs/r-textarea.cjs.entry.js +0 -270
- package/dist/cjs/r-toast-group.cjs.entry.js +0 -46
- package/dist/cjs/r-toast.cjs.entry.js +0 -306
- package/dist/cjs/style-observer-D9zSP9wP.js +0 -1118
- package/dist/cjs/theming-NqxjhVJS.js +0 -109
- package/dist/cjs/web-components.cjs.js +0 -25
- package/dist/collection/collection-manifest.json +0 -60
- package/dist/collection/components/accordion/accordion.css +0 -24
- package/dist/collection/components/accordion/accordion.js +0 -90
- package/dist/collection/components/accordion/exports.js +0 -1
- package/dist/collection/components/accordion-panel/accordion-panel.css +0 -50
- package/dist/collection/components/accordion-panel/accordion-panel.js +0 -86
- package/dist/collection/components/accordion-section/accordion-section.css +0 -27
- package/dist/collection/components/accordion-section/accordion-section.js +0 -235
- package/dist/collection/components/accordion-trigger/accordion-trigger.css +0 -93
- package/dist/collection/components/accordion-trigger/accordion-trigger.js +0 -220
- package/dist/collection/components/alert/alert.css +0 -119
- package/dist/collection/components/alert/alert.js +0 -526
- package/dist/collection/components/alert/exports.js +0 -2
- package/dist/collection/components/badge/badge.css +0 -52
- package/dist/collection/components/badge/badge.js +0 -120
- package/dist/collection/components/badge/exports.js +0 -1
- package/dist/collection/components/button/button.css +0 -180
- package/dist/collection/components/button/button.js +0 -510
- package/dist/collection/components/button/exports.js +0 -5
- package/dist/collection/components/checkbox/checkbox.css +0 -116
- package/dist/collection/components/checkbox/checkbox.js +0 -777
- package/dist/collection/components/checkbox-group/checkbox-group.css +0 -48
- package/dist/collection/components/checkbox-group/checkbox-group.js +0 -718
- package/dist/collection/components/design-system-devtools/design-system-devtools.js +0 -59
- package/dist/collection/components/dialog/dialog.css +0 -125
- package/dist/collection/components/dialog/dialog.js +0 -345
- package/dist/collection/components/dialog/exports.js +0 -9
- package/dist/collection/components/hint/exports.js +0 -1
- package/dist/collection/components/hint/hint.css +0 -63
- package/dist/collection/components/hint/hint.js +0 -114
- package/dist/collection/components/icon/all-kit.js +0 -2
- package/dist/collection/components/icon/data.js +0 -90
- package/dist/collection/components/icon/exports.js +0 -7
- package/dist/collection/components/icon/icon.css +0 -105
- package/dist/collection/components/icon/icon.js +0 -379
- package/dist/collection/components/icon/riverty-kit.js +0 -2
- package/dist/collection/components/icon-button/icon-button.css +0 -105
- package/dist/collection/components/icon-button/icon-button.js +0 -343
- package/dist/collection/components/illustration/data.js +0 -112
- package/dist/collection/components/illustration/exports.js +0 -3
- package/dist/collection/components/illustration/illustration.js +0 -540
- package/dist/collection/components/illustration/illustration.scss +0 -56
- package/dist/collection/components/illustration/illustrations-ui-kit.js +0 -2
- package/dist/collection/components/input/exports.js +0 -16
- package/dist/collection/components/input/input.css +0 -180
- package/dist/collection/components/input/input.js +0 -1572
- package/dist/collection/components/input-code/exports.js +0 -2
- package/dist/collection/components/input-code/input-code.css +0 -127
- package/dist/collection/components/input-code/input-code.js +0 -1139
- package/dist/collection/components/input-date/exports.js +0 -1
- package/dist/collection/components/input-date/input-date.css +0 -148
- package/dist/collection/components/input-date/input-date.js +0 -1228
- package/dist/collection/components/input-password/exports.js +0 -1
- package/dist/collection/components/input-password/input-password.css +0 -25
- package/dist/collection/components/input-password/input-password.js +0 -1051
- package/dist/collection/components/input-phone-number/input-phone-number.css +0 -61
- package/dist/collection/components/input-phone-number/input-phone-number.js +0 -874
- package/dist/collection/components/label/label.css +0 -38
- package/dist/collection/components/label/label.js +0 -47
- package/dist/collection/components/list-item/list-item/exports.js +0 -2
- package/dist/collection/components/list-item/list-item/list-item.css +0 -199
- package/dist/collection/components/list-item/list-item/list-item.js +0 -467
- package/dist/collection/components/pagination/exports.js +0 -3
- package/dist/collection/components/pagination/pagination.css +0 -118
- package/dist/collection/components/pagination/pagination.js +0 -799
- package/dist/collection/components/panel/exports.js +0 -1
- package/dist/collection/components/panel/panel.css +0 -192
- package/dist/collection/components/panel/panel.js +0 -473
- package/dist/collection/components/popover/exports.js +0 -3
- package/dist/collection/components/popover/popover.css +0 -251
- package/dist/collection/components/popover/popover.js +0 -741
- package/dist/collection/components/popover-action/popover-action.css +0 -21
- package/dist/collection/components/popover-action/popover-action.js +0 -150
- package/dist/collection/components/popover-content/popover-content.css +0 -9
- package/dist/collection/components/popover-content/popover-content.js +0 -130
- package/dist/collection/components/popover-headline/popover-headline.css +0 -7
- package/dist/collection/components/popover-headline/popover-headline.js +0 -28
- package/dist/collection/components/popover-trigger/exports.js +0 -1
- package/dist/collection/components/popover-trigger/popover-trigger.css +0 -4
- package/dist/collection/components/popover-trigger/popover-trigger.js +0 -163
- package/dist/collection/components/progress-bar/progress-bar.css +0 -41
- package/dist/collection/components/progress-bar/progress-bar.js +0 -71
- package/dist/collection/components/radio-button/radio-button.css +0 -126
- package/dist/collection/components/radio-button/radio-button.js +0 -559
- package/dist/collection/components/radio-button-description/radio-button-description.css +0 -5
- package/dist/collection/components/radio-button-description/radio-button-description.js +0 -22
- package/dist/collection/components/radio-button-leading/radio-button-leading.css +0 -3
- package/dist/collection/components/radio-button-leading/radio-button-leading.js +0 -22
- package/dist/collection/components/radio-button-title/radio-button-title.css +0 -8
- package/dist/collection/components/radio-button-title/radio-button-title.js +0 -22
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.css +0 -6
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +0 -22
- package/dist/collection/components/radio-group/exports.js +0 -1
- package/dist/collection/components/radio-group/radio-group.css +0 -65
- package/dist/collection/components/radio-group/radio-group.js +0 -1020
- package/dist/collection/components/select/exports.js +0 -1
- package/dist/collection/components/select/select.css +0 -247
- package/dist/collection/components/select/select.js +0 -2011
- package/dist/collection/components/select-option/select-option.css +0 -93
- package/dist/collection/components/select-option/select-option.js +0 -459
- package/dist/collection/components/skip-link/exports.js +0 -1
- package/dist/collection/components/skip-link/skip-link.css +0 -37
- package/dist/collection/components/skip-link/skip-link.js +0 -52
- package/dist/collection/components/stepper/stepper.css +0 -25
- package/dist/collection/components/stepper/stepper.js +0 -216
- package/dist/collection/components/stepper-item/stepper-item.css +0 -62
- package/dist/collection/components/stepper-item/stepper-item.js +0 -171
- package/dist/collection/components/tab/tab.css +0 -81
- package/dist/collection/components/tab/tab.js +0 -169
- package/dist/collection/components/tab-panel/tab-panel.css +0 -19
- package/dist/collection/components/tab-panel/tab-panel.js +0 -72
- package/dist/collection/components/tabs/tabs.css +0 -4
- package/dist/collection/components/tabs/tabs.js +0 -345
- package/dist/collection/components/tabs-list/exports.js +0 -2
- package/dist/collection/components/tabs-list/tabs-list.css +0 -58
- package/dist/collection/components/tabs-list/tabs-list.js +0 -294
- package/dist/collection/components/textarea/exports.js +0 -8
- package/dist/collection/components/textarea/textarea.css +0 -148
- package/dist/collection/components/textarea/textarea.js +0 -1055
- package/dist/collection/components/toast/exports.js +0 -3
- package/dist/collection/components/toast/toast.css +0 -179
- package/dist/collection/components/toast/toast.js +0 -812
- package/dist/collection/components/toast-group/exports.js +0 -1
- package/dist/collection/components/toast-group/toast-group.css +0 -37
- package/dist/collection/components/toast-group/toast-group.js +0 -49
- package/dist/collection/components/tooltip/exports.js +0 -3
- package/dist/collection/components/tooltip/tooltip.css +0 -106
- package/dist/collection/components/tooltip/tooltip.js +0 -500
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/focusable.js +0 -24
- package/dist/collection/utils/formData.js +0 -40
- package/dist/collection/utils/theming.js +0 -103
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/focusable-ky1yonnS.js +0 -26
- package/dist/esm/formData-DvLT8-y3.js +0 -42
- package/dist/esm/index-CTxpqopm.js +0 -1806
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -11
- package/dist/esm/r-accordion-panel.entry.js +0 -22
- package/dist/esm/r-accordion-section.entry.js +0 -123
- package/dist/esm/r-accordion-trigger.entry.js +0 -91
- package/dist/esm/r-accordion.entry.js +0 -18
- package/dist/esm/r-alert.entry.js +0 -144
- package/dist/esm/r-badge.entry.js +0 -38
- package/dist/esm/r-button.entry.js +0 -147
- package/dist/esm/r-checkbox-group.entry.js +0 -230
- package/dist/esm/r-checkbox.entry.js +0 -267
- package/dist/esm/r-design-system-devtools.entry.js +0 -29
- package/dist/esm/r-dialog.entry.js +0 -105
- package/dist/esm/r-hint_2.entry.js +0 -47
- package/dist/esm/r-icon-button_2.entry.js +0 -464
- package/dist/esm/r-icon.entry.js +0 -282
- package/dist/esm/r-illustration.entry.js +0 -394
- package/dist/esm/r-input-code.entry.js +0 -430
- package/dist/esm/r-input-date.entry.js +0 -517
- package/dist/esm/r-input-password.entry.js +0 -263
- package/dist/esm/r-input-phone-number.entry.js +0 -2523
- package/dist/esm/r-input.entry.js +0 -400
- package/dist/esm/r-list-item.entry.js +0 -107
- package/dist/esm/r-pagination.entry.js +0 -312
- package/dist/esm/r-panel.entry.js +0 -182
- package/dist/esm/r-popover-action.entry.js +0 -78
- package/dist/esm/r-popover-content.entry.js +0 -60
- package/dist/esm/r-popover-headline.entry.js +0 -26
- package/dist/esm/r-popover-trigger.entry.js +0 -68
- package/dist/esm/r-popover.entry.js +0 -345
- package/dist/esm/r-progress-bar.entry.js +0 -23
- package/dist/esm/r-radio-button-description.entry.js +0 -16
- package/dist/esm/r-radio-button-leading.entry.js +0 -16
- package/dist/esm/r-radio-button-title.entry.js +0 -16
- package/dist/esm/r-radio-button-trailing.entry.js +0 -16
- package/dist/esm/r-radio-button.entry.js +0 -137
- package/dist/esm/r-radio-group.entry.js +0 -423
- package/dist/esm/r-select-option.entry.js +0 -128
- package/dist/esm/r-select.entry.js +0 -1099
- package/dist/esm/r-skip-link.entry.js +0 -17
- package/dist/esm/r-stepper-item.entry.js +0 -40
- package/dist/esm/r-stepper.entry.js +0 -97
- package/dist/esm/r-tab-panel.entry.js +0 -24
- package/dist/esm/r-tab.entry.js +0 -60
- package/dist/esm/r-tabs-list.entry.js +0 -173
- package/dist/esm/r-tabs.entry.js +0 -275
- package/dist/esm/r-textarea.entry.js +0 -268
- package/dist/esm/r-toast-group.entry.js +0 -44
- package/dist/esm/r-toast.entry.js +0 -304
- package/dist/esm/style-observer-4Uv3PpKT.js +0 -1116
- package/dist/esm/theming-DD2IrjpG.js +0 -106
- package/dist/esm/web-components.js +0 -21
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/accordion/accordion.d.ts +0 -27
- package/dist/types/components/accordion/exports.d.ts +0 -2
- package/dist/types/components/accordion-panel/accordion-panel.d.ts +0 -10
- package/dist/types/components/accordion-section/accordion-section.d.ts +0 -36
- package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +0 -33
- package/dist/types/components/alert/alert.d.ts +0 -67
- package/dist/types/components/alert/exports.d.ts +0 -4
- package/dist/types/components/badge/badge.d.ts +0 -23
- package/dist/types/components/badge/exports.d.ts +0 -2
- package/dist/types/components/button/button.d.ts +0 -89
- package/dist/types/components/button/exports.d.ts +0 -10
- package/dist/types/components/checkbox/checkbox.d.ts +0 -136
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +0 -122
- package/dist/types/components/design-system-devtools/design-system-devtools.d.ts +0 -15
- package/dist/types/components/dialog/dialog.d.ts +0 -69
- package/dist/types/components/dialog/exports.d.ts +0 -10
- package/dist/types/components/hint/exports.d.ts +0 -2
- package/dist/types/components/hint/hint.d.ts +0 -20
- package/dist/types/components/icon/all-kit.d.ts +0 -2890
- package/dist/types/components/icon/data.d.ts +0 -145
- package/dist/types/components/icon/exports.d.ts +0 -152
- package/dist/types/components/icon/icon.d.ts +0 -37
- package/dist/types/components/icon/riverty-kit.d.ts +0 -139
- package/dist/types/components/icon-button/icon-button.d.ts +0 -69
- package/dist/types/components/illustration/data.d.ts +0 -52
- package/dist/types/components/illustration/exports.d.ts +0 -23
- package/dist/types/components/illustration/illustration.d.ts +0 -51
- package/dist/types/components/illustration/illustrations-ui-kit.d.ts +0 -21
- package/dist/types/components/input/exports.d.ts +0 -10
- package/dist/types/components/input/input.d.ts +0 -300
- package/dist/types/components/input-code/exports.d.ts +0 -4
- package/dist/types/components/input-code/input-code.d.ts +0 -175
- package/dist/types/components/input-date/exports.d.ts +0 -5
- package/dist/types/components/input-date/input-date.d.ts +0 -172
- package/dist/types/components/input-password/exports.d.ts +0 -1
- package/dist/types/components/input-password/input-password.d.ts +0 -184
- package/dist/types/components/input-phone-number/input-phone-number.d.ts +0 -128
- package/dist/types/components/label/label.d.ts +0 -9
- package/dist/types/components/list-item/list-item/exports.d.ts +0 -4
- package/dist/types/components/list-item/list-item/list-item.d.ts +0 -61
- package/dist/types/components/pagination/exports.d.ts +0 -6
- package/dist/types/components/pagination/pagination.d.ts +0 -140
- package/dist/types/components/panel/exports.d.ts +0 -2
- package/dist/types/components/panel/panel.d.ts +0 -56
- package/dist/types/components/popover/exports.d.ts +0 -6
- package/dist/types/components/popover/popover.d.ts +0 -131
- package/dist/types/components/popover-action/popover-action.d.ts +0 -24
- package/dist/types/components/popover-content/popover-content.d.ts +0 -22
- package/dist/types/components/popover-headline/popover-headline.d.ts +0 -6
- package/dist/types/components/popover-trigger/exports.d.ts +0 -2
- package/dist/types/components/popover-trigger/popover-trigger.d.ts +0 -31
- package/dist/types/components/progress-bar/progress-bar.d.ts +0 -10
- package/dist/types/components/radio-button/radio-button.d.ts +0 -92
- package/dist/types/components/radio-button-description/radio-button-description.d.ts +0 -8
- package/dist/types/components/radio-button-leading/radio-button-leading.d.ts +0 -8
- package/dist/types/components/radio-button-title/radio-button-title.d.ts +0 -8
- package/dist/types/components/radio-button-trailing/radio-button-trailing.d.ts +0 -8
- package/dist/types/components/radio-group/exports.d.ts +0 -2
- package/dist/types/components/radio-group/radio-group.d.ts +0 -178
- package/dist/types/components/select/exports.d.ts +0 -2
- package/dist/types/components/select/select.d.ts +0 -317
- package/dist/types/components/select-option/select-option.d.ts +0 -113
- package/dist/types/components/skip-link/exports.d.ts +0 -2
- package/dist/types/components/skip-link/skip-link.d.ts +0 -6
- package/dist/types/components/stepper/stepper.d.ts +0 -22
- package/dist/types/components/stepper-item/stepper-item.d.ts +0 -23
- package/dist/types/components/tab/tab.d.ts +0 -23
- package/dist/types/components/tab-panel/tab-panel.d.ts +0 -7
- package/dist/types/components/tabs/tabs.d.ts +0 -49
- package/dist/types/components/tabs-list/exports.d.ts +0 -4
- package/dist/types/components/tabs-list/tabs-list.d.ts +0 -41
- package/dist/types/components/textarea/exports.d.ts +0 -2
- package/dist/types/components/textarea/textarea.d.ts +0 -158
- package/dist/types/components/toast/exports.d.ts +0 -6
- package/dist/types/components/toast/toast.d.ts +0 -146
- package/dist/types/components/toast-group/exports.d.ts +0 -2
- package/dist/types/components/toast-group/toast-group.d.ts +0 -9
- package/dist/types/components/tooltip/exports.d.ts +0 -6
- package/dist/types/components/tooltip/tooltip.d.ts +0 -131
- package/dist/types/components.d.ts +0 -6286
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1732
- package/dist/types/types/jsx-shim.d.ts +0 -13
- package/dist/types/types/style-observer.d.ts +0 -20
- package/dist/types/utils/focusable.d.ts +0 -1
- package/dist/types/utils/formData.d.ts +0 -1
- package/dist/types/utils/theming.d.ts +0 -15
- package/dist/web-components/index.esm.js +0 -0
- package/dist/web-components/p-02b22f8e.entry.js +0 -1
- package/dist/web-components/p-075a8dc8.entry.js +0 -1
- package/dist/web-components/p-0a34d33b.entry.js +0 -1
- package/dist/web-components/p-10cc9983.entry.js +0 -1
- package/dist/web-components/p-253068b9.entry.js +0 -1
- package/dist/web-components/p-3b8c8951.entry.js +0 -1
- package/dist/web-components/p-3beacdab.entry.js +0 -1
- package/dist/web-components/p-4214867d.entry.js +0 -1
- package/dist/web-components/p-42c857e9.entry.js +0 -1
- package/dist/web-components/p-44f87e16.entry.js +0 -1
- package/dist/web-components/p-477614c5.entry.js +0 -1
- package/dist/web-components/p-495ba3d2.entry.js +0 -1
- package/dist/web-components/p-4Uv3PpKT.js +0 -1
- package/dist/web-components/p-4de76291.entry.js +0 -1
- package/dist/web-components/p-55600d47.entry.js +0 -1
- package/dist/web-components/p-562051aa.entry.js +0 -1
- package/dist/web-components/p-5b850e0f.entry.js +0 -1
- package/dist/web-components/p-6013dfc8.entry.js +0 -1
- package/dist/web-components/p-62e7ae04.entry.js +0 -1
- package/dist/web-components/p-71519d37.entry.js +0 -1
- package/dist/web-components/p-88f7b47f.entry.js +0 -1
- package/dist/web-components/p-8975a6a3.entry.js +0 -1
- package/dist/web-components/p-8e125826.entry.js +0 -1
- package/dist/web-components/p-91cc0bde.entry.js +0 -1
- package/dist/web-components/p-93435fcd.entry.js +0 -1
- package/dist/web-components/p-947969d7.entry.js +0 -1
- package/dist/web-components/p-95396b5c.entry.js +0 -1
- package/dist/web-components/p-9de3a1a5.entry.js +0 -1
- package/dist/web-components/p-9f583ed1.entry.js +0 -1
- package/dist/web-components/p-B9rsR6cQ.js +0 -1
- package/dist/web-components/p-CTxpqopm.js +0 -2
- package/dist/web-components/p-DQuL1Twl.js +0 -1
- package/dist/web-components/p-DvLT8-y3.js +0 -1
- package/dist/web-components/p-a1086abe.entry.js +0 -1
- package/dist/web-components/p-bbba6d79.entry.js +0 -1
- package/dist/web-components/p-bde44ec4.entry.js +0 -1
- package/dist/web-components/p-bfc7e6c0.entry.js +0 -1
- package/dist/web-components/p-c1030394.entry.js +0 -1
- package/dist/web-components/p-c1f59ed1.entry.js +0 -1
- package/dist/web-components/p-c80a5541.entry.js +0 -1
- package/dist/web-components/p-c96ee61a.entry.js +0 -1
- package/dist/web-components/p-caf8f067.entry.js +0 -1
- package/dist/web-components/p-cc363c3d.entry.js +0 -1
- package/dist/web-components/p-cf4ff357.entry.js +0 -1
- package/dist/web-components/p-d0310ed4.entry.js +0 -1
- package/dist/web-components/p-d1412932.entry.js +0 -1
- package/dist/web-components/p-d2447e30.entry.js +0 -1
- package/dist/web-components/p-dc9cca06.entry.js +0 -1
- package/dist/web-components/p-e5b943a2.entry.js +0 -1
- package/dist/web-components/p-e67b13df.entry.js +0 -1
- package/dist/web-components/p-efec231a.entry.js +0 -1
- package/dist/web-components/p-f867e4c3.entry.js +0 -1
- package/dist/web-components/p-ky1yonnS.js +0 -1
- package/dist/web-components/web-components.esm.js +0 -1
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
|
@@ -1,510 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* A button can be used by a user to trigger an action. Corresponds to, and is rendered as a,
|
|
4
|
-
* [native button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button).
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export class Button {
|
|
8
|
-
constructor() {
|
|
9
|
-
/**
|
|
10
|
-
* Button behavior, corresponding to
|
|
11
|
-
* [native `type` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type)
|
|
12
|
-
*/
|
|
13
|
-
this.type = 'button';
|
|
14
|
-
/** Visual size */
|
|
15
|
-
this.size = 'large';
|
|
16
|
-
/** Presentational style */
|
|
17
|
-
this.variant = 'primary';
|
|
18
|
-
/** Position of an icon within button.
|
|
19
|
-
* Only use it when 'icon' is specified.
|
|
20
|
-
* */
|
|
21
|
-
this.iconPosition = 'start';
|
|
22
|
-
this._activateTmpButton = (formEl) => {
|
|
23
|
-
if (!formEl) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
const { type } = this;
|
|
27
|
-
switch (type) {
|
|
28
|
-
case 'submit':
|
|
29
|
-
case 'reset': {
|
|
30
|
-
/* Create temporary button inside the <form>
|
|
31
|
-
and either submit or reset it based on button type */
|
|
32
|
-
const tmpButton = document.createElement('button');
|
|
33
|
-
tmpButton.type = type;
|
|
34
|
-
tmpButton.style.display = 'none';
|
|
35
|
-
formEl.appendChild(tmpButton);
|
|
36
|
-
tmpButton.click();
|
|
37
|
-
tmpButton.remove();
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Handles button action based on its type attribute
|
|
44
|
-
* @param {Event} event event<Event> from onClick on the component
|
|
45
|
-
*/
|
|
46
|
-
this.handleClick = (event) => {
|
|
47
|
-
if (this.disabled)
|
|
48
|
-
return;
|
|
49
|
-
if (!this.hasShadowDom)
|
|
50
|
-
return;
|
|
51
|
-
if (!this.isLink && this.isResetOrSubmit) {
|
|
52
|
-
event.preventDefault();
|
|
53
|
-
this._activateTmpButton(this.formEl);
|
|
54
|
-
}
|
|
55
|
-
this.rClick.emit();
|
|
56
|
-
};
|
|
57
|
-
this.handleSlotChange = () => {
|
|
58
|
-
this.host.setAttribute('data-icon-only', `${this.isIconOnly}`);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
handleIconChange() {
|
|
62
|
-
this.host.setAttribute('data-icon-only', `${this.isIconOnly}`);
|
|
63
|
-
}
|
|
64
|
-
/** Simulate a button click */
|
|
65
|
-
async triggerClick() {
|
|
66
|
-
var _a;
|
|
67
|
-
(_a = this.nativeElement) === null || _a === void 0 ? void 0 : _a.click();
|
|
68
|
-
}
|
|
69
|
-
/** Set focus on the button */
|
|
70
|
-
async setFocus() {
|
|
71
|
-
var _a;
|
|
72
|
-
(_a = this.nativeElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
73
|
-
}
|
|
74
|
-
/** Remove focus from the button */
|
|
75
|
-
async setBlur() {
|
|
76
|
-
var _a;
|
|
77
|
-
(_a = this.nativeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
78
|
-
}
|
|
79
|
-
get hasText() {
|
|
80
|
-
return this.host.textContent.trim().length > 0;
|
|
81
|
-
}
|
|
82
|
-
get hasIcon() {
|
|
83
|
-
const isIconInSlot = this.host.querySelector('r-icon') !== null;
|
|
84
|
-
const isIconInShadow = this.host.shadowRoot.querySelector('r-icon') !== null;
|
|
85
|
-
return isIconInSlot || isIconInShadow;
|
|
86
|
-
}
|
|
87
|
-
get isIconOnly() {
|
|
88
|
-
return this.hasIcon && !this.hasText;
|
|
89
|
-
}
|
|
90
|
-
get isLink() {
|
|
91
|
-
return typeof this.href === 'string';
|
|
92
|
-
}
|
|
93
|
-
get hasShadowDom() {
|
|
94
|
-
const { host } = this;
|
|
95
|
-
return !!host.shadowRoot && !!host.attachShadow;
|
|
96
|
-
}
|
|
97
|
-
get formEl() {
|
|
98
|
-
const { form, host } = this;
|
|
99
|
-
/** If form attr contains form id */
|
|
100
|
-
if (typeof form === 'string') {
|
|
101
|
-
const formEl = document.getElementById(form);
|
|
102
|
-
if (formEl instanceof HTMLFormElement) {
|
|
103
|
-
return formEl;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
/** If form attr is not defined checking for form as parent */
|
|
107
|
-
if (typeof form === 'undefined') {
|
|
108
|
-
const formEl = host.closest('form');
|
|
109
|
-
if (formEl instanceof HTMLFormElement) {
|
|
110
|
-
return formEl;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return null;
|
|
114
|
-
}
|
|
115
|
-
get isResetOrSubmit() {
|
|
116
|
-
return this.type === 'submit' || this.type === 'reset';
|
|
117
|
-
}
|
|
118
|
-
get hasIconSlot() {
|
|
119
|
-
return !!this.host.querySelector('[slot="icon"]');
|
|
120
|
-
}
|
|
121
|
-
get ariaCurrentValue() {
|
|
122
|
-
const { rAriaCurrent } = this;
|
|
123
|
-
return !rAriaCurrent || rAriaCurrent === "false" ? null : rAriaCurrent;
|
|
124
|
-
}
|
|
125
|
-
componentDidLoad() {
|
|
126
|
-
this.host.dataset.iconOnly = `${this.isIconOnly}`;
|
|
127
|
-
}
|
|
128
|
-
render() {
|
|
129
|
-
const { type, disabled, form, href, target, isLink, icon, iconPosition, rAriaLabel } = this;
|
|
130
|
-
const linkAttr = disabled ? { 'aria-disabled': 'true', role: 'link' } : { href, target };
|
|
131
|
-
const btnAttr = { 'aria-disabled': `${disabled || false}`, disabled, type, form };
|
|
132
|
-
const attrs = isLink ? Object.assign({}, linkAttr) : Object.assign({}, btnAttr);
|
|
133
|
-
const iconAttrs = {
|
|
134
|
-
name: icon,
|
|
135
|
-
position: iconPosition
|
|
136
|
-
};
|
|
137
|
-
const TagName = isLink ? 'a' : 'button';
|
|
138
|
-
return (h(Host, { key: '031466e55efe7e99791d10758a20f4b37e907b00' }, h(TagName, Object.assign({ key: 'a3ae13e71992fd688a97ce7dda45d981cbc5dd6c', class: "r-button" }, attrs, { "aria-label": rAriaLabel || null, "aria-current": this.ariaCurrentValue, ref: (el) => (this.nativeElement = el), onClick: this.handleClick }), h("span", { key: 'da45d9ce4699302833b83c49b0767347fc4157e4', class: "r-button--slot" }, icon && h("r-icon", Object.assign({ key: 'dc20d6e8d16b4c179f2568467acda503eb0e89e2', name: icon }, iconAttrs, { size: "s" })), this.hasIconSlot && h("slot", { key: '43fbd25fd7d938ee2a7d872194ff72bc2d7695f3', name: "icon" }), h("div", { key: '26f26cf15e77c7e4b72992dee1a08851848fc0bd', style: { display: 'contents' } }, h("slot", { key: 'ce694ed33656d76e6e094a5655dc598ca6df4a5b', onSlotchange: this.handleSlotChange }))))));
|
|
139
|
-
}
|
|
140
|
-
static get is() { return "r-button"; }
|
|
141
|
-
static get encapsulation() { return "shadow"; }
|
|
142
|
-
static get originalStyleUrls() {
|
|
143
|
-
return {
|
|
144
|
-
"$": ["button.css"]
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
static get styleUrls() {
|
|
148
|
-
return {
|
|
149
|
-
"$": ["button.css"]
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
static get properties() {
|
|
153
|
-
return {
|
|
154
|
-
"form": {
|
|
155
|
-
"type": "string",
|
|
156
|
-
"attribute": "form",
|
|
157
|
-
"mutable": false,
|
|
158
|
-
"complexType": {
|
|
159
|
-
"original": "string",
|
|
160
|
-
"resolved": "string",
|
|
161
|
-
"references": {}
|
|
162
|
-
},
|
|
163
|
-
"required": false,
|
|
164
|
-
"optional": true,
|
|
165
|
-
"docs": {
|
|
166
|
-
"tags": [],
|
|
167
|
-
"text": "Reference form element id with which the button is associated."
|
|
168
|
-
},
|
|
169
|
-
"getter": false,
|
|
170
|
-
"setter": false,
|
|
171
|
-
"reflect": false
|
|
172
|
-
},
|
|
173
|
-
"type": {
|
|
174
|
-
"type": "string",
|
|
175
|
-
"attribute": "type",
|
|
176
|
-
"mutable": false,
|
|
177
|
-
"complexType": {
|
|
178
|
-
"original": "ButtonType",
|
|
179
|
-
"resolved": "\"button\" | \"reset\" | \"submit\"",
|
|
180
|
-
"references": {
|
|
181
|
-
"ButtonType": {
|
|
182
|
-
"location": "import",
|
|
183
|
-
"path": "./exports",
|
|
184
|
-
"id": "src/components/button/exports.ts::ButtonType"
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
"required": false,
|
|
189
|
-
"optional": false,
|
|
190
|
-
"docs": {
|
|
191
|
-
"tags": [],
|
|
192
|
-
"text": "Button behavior, corresponding to\n[native `type` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type)"
|
|
193
|
-
},
|
|
194
|
-
"getter": false,
|
|
195
|
-
"setter": false,
|
|
196
|
-
"reflect": true,
|
|
197
|
-
"defaultValue": "'button'"
|
|
198
|
-
},
|
|
199
|
-
"rAriaLabel": {
|
|
200
|
-
"type": "string",
|
|
201
|
-
"attribute": "r-aria-label",
|
|
202
|
-
"mutable": false,
|
|
203
|
-
"complexType": {
|
|
204
|
-
"original": "string",
|
|
205
|
-
"resolved": "string",
|
|
206
|
-
"references": {}
|
|
207
|
-
},
|
|
208
|
-
"required": false,
|
|
209
|
-
"optional": false,
|
|
210
|
-
"docs": {
|
|
211
|
-
"tags": [],
|
|
212
|
-
"text": "Sets string value for `aria-label` attribute\n(https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label)"
|
|
213
|
-
},
|
|
214
|
-
"getter": false,
|
|
215
|
-
"setter": false,
|
|
216
|
-
"reflect": true
|
|
217
|
-
},
|
|
218
|
-
"size": {
|
|
219
|
-
"type": "string",
|
|
220
|
-
"attribute": "size",
|
|
221
|
-
"mutable": false,
|
|
222
|
-
"complexType": {
|
|
223
|
-
"original": "ButtonSize",
|
|
224
|
-
"resolved": "\"large\" | \"small\"",
|
|
225
|
-
"references": {
|
|
226
|
-
"ButtonSize": {
|
|
227
|
-
"location": "import",
|
|
228
|
-
"path": "./exports",
|
|
229
|
-
"id": "src/components/button/exports.ts::ButtonSize"
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
"required": false,
|
|
234
|
-
"optional": false,
|
|
235
|
-
"docs": {
|
|
236
|
-
"tags": [],
|
|
237
|
-
"text": "Visual size"
|
|
238
|
-
},
|
|
239
|
-
"getter": false,
|
|
240
|
-
"setter": false,
|
|
241
|
-
"reflect": true,
|
|
242
|
-
"defaultValue": "'large'"
|
|
243
|
-
},
|
|
244
|
-
"variant": {
|
|
245
|
-
"type": "string",
|
|
246
|
-
"attribute": "variant",
|
|
247
|
-
"mutable": false,
|
|
248
|
-
"complexType": {
|
|
249
|
-
"original": "ButtonVariant",
|
|
250
|
-
"resolved": "\"blank\" | \"primary\" | \"secondary\" | \"text\" | \"text-inline\"",
|
|
251
|
-
"references": {
|
|
252
|
-
"ButtonVariant": {
|
|
253
|
-
"location": "import",
|
|
254
|
-
"path": "./exports",
|
|
255
|
-
"id": "src/components/button/exports.ts::ButtonVariant"
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
"required": false,
|
|
260
|
-
"optional": false,
|
|
261
|
-
"docs": {
|
|
262
|
-
"tags": [],
|
|
263
|
-
"text": "Presentational style"
|
|
264
|
-
},
|
|
265
|
-
"getter": false,
|
|
266
|
-
"setter": false,
|
|
267
|
-
"reflect": true,
|
|
268
|
-
"defaultValue": "'primary'"
|
|
269
|
-
},
|
|
270
|
-
"expanded": {
|
|
271
|
-
"type": "boolean",
|
|
272
|
-
"attribute": "expanded",
|
|
273
|
-
"mutable": false,
|
|
274
|
-
"complexType": {
|
|
275
|
-
"original": "boolean",
|
|
276
|
-
"resolved": "boolean",
|
|
277
|
-
"references": {}
|
|
278
|
-
},
|
|
279
|
-
"required": false,
|
|
280
|
-
"optional": true,
|
|
281
|
-
"docs": {
|
|
282
|
-
"tags": [],
|
|
283
|
-
"text": "Whether to present as a full-width (100%) button.\n\nOnly primary and secondary buttons can be expanded."
|
|
284
|
-
},
|
|
285
|
-
"getter": false,
|
|
286
|
-
"setter": false,
|
|
287
|
-
"reflect": true
|
|
288
|
-
},
|
|
289
|
-
"disabled": {
|
|
290
|
-
"type": "boolean",
|
|
291
|
-
"attribute": "disabled",
|
|
292
|
-
"mutable": false,
|
|
293
|
-
"complexType": {
|
|
294
|
-
"original": "boolean",
|
|
295
|
-
"resolved": "boolean",
|
|
296
|
-
"references": {}
|
|
297
|
-
},
|
|
298
|
-
"required": false,
|
|
299
|
-
"optional": true,
|
|
300
|
-
"docs": {
|
|
301
|
-
"tags": [],
|
|
302
|
-
"text": "Prevents user interaction and applies disabled style"
|
|
303
|
-
},
|
|
304
|
-
"getter": false,
|
|
305
|
-
"setter": false,
|
|
306
|
-
"reflect": true
|
|
307
|
-
},
|
|
308
|
-
"icon": {
|
|
309
|
-
"type": "string",
|
|
310
|
-
"attribute": "icon",
|
|
311
|
-
"mutable": false,
|
|
312
|
-
"complexType": {
|
|
313
|
-
"original": "IconName",
|
|
314
|
-
"resolved": "string",
|
|
315
|
-
"references": {
|
|
316
|
-
"IconName": {
|
|
317
|
-
"location": "import",
|
|
318
|
-
"path": "../icon/exports",
|
|
319
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
"required": false,
|
|
324
|
-
"optional": true,
|
|
325
|
-
"docs": {
|
|
326
|
-
"tags": [],
|
|
327
|
-
"text": "Name of an icon to display within button."
|
|
328
|
-
},
|
|
329
|
-
"getter": false,
|
|
330
|
-
"setter": false,
|
|
331
|
-
"reflect": false
|
|
332
|
-
},
|
|
333
|
-
"iconPosition": {
|
|
334
|
-
"type": "string",
|
|
335
|
-
"attribute": "icon-position",
|
|
336
|
-
"mutable": false,
|
|
337
|
-
"complexType": {
|
|
338
|
-
"original": "IconPosition",
|
|
339
|
-
"resolved": "\"end\" | \"start\"",
|
|
340
|
-
"references": {
|
|
341
|
-
"IconPosition": {
|
|
342
|
-
"location": "import",
|
|
343
|
-
"path": "../icon/exports",
|
|
344
|
-
"id": "src/components/icon/exports.ts::IconPosition"
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
"required": false,
|
|
349
|
-
"optional": false,
|
|
350
|
-
"docs": {
|
|
351
|
-
"tags": [],
|
|
352
|
-
"text": "Position of an icon within button.\nOnly use it when 'icon' is specified."
|
|
353
|
-
},
|
|
354
|
-
"getter": false,
|
|
355
|
-
"setter": false,
|
|
356
|
-
"reflect": false,
|
|
357
|
-
"defaultValue": "'start'"
|
|
358
|
-
},
|
|
359
|
-
"href": {
|
|
360
|
-
"type": "string",
|
|
361
|
-
"attribute": "href",
|
|
362
|
-
"mutable": false,
|
|
363
|
-
"complexType": {
|
|
364
|
-
"original": "string",
|
|
365
|
-
"resolved": "string",
|
|
366
|
-
"references": {}
|
|
367
|
-
},
|
|
368
|
-
"required": false,
|
|
369
|
-
"optional": true,
|
|
370
|
-
"docs": {
|
|
371
|
-
"tags": [],
|
|
372
|
-
"text": "URL or a URL fragment that the hyperlink points to.\nIf the property is set, an anchor tag will be rendered."
|
|
373
|
-
},
|
|
374
|
-
"getter": false,
|
|
375
|
-
"setter": false,
|
|
376
|
-
"reflect": false
|
|
377
|
-
},
|
|
378
|
-
"target": {
|
|
379
|
-
"type": "string",
|
|
380
|
-
"attribute": "target",
|
|
381
|
-
"mutable": false,
|
|
382
|
-
"complexType": {
|
|
383
|
-
"original": "ButtonTarget",
|
|
384
|
-
"resolved": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\"",
|
|
385
|
-
"references": {
|
|
386
|
-
"ButtonTarget": {
|
|
387
|
-
"location": "import",
|
|
388
|
-
"path": "./exports",
|
|
389
|
-
"id": "src/components/button/exports.ts::ButtonTarget"
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
"required": false,
|
|
394
|
-
"optional": true,
|
|
395
|
-
"docs": {
|
|
396
|
-
"tags": [],
|
|
397
|
-
"text": "Specifies where to display the linked URL.\nOnly applies when an `href` is provided.\nSpecial keywords: `\"_blank\"`, `\"_self\"`, `\"_parent\"`, `\"_top\"`."
|
|
398
|
-
},
|
|
399
|
-
"getter": false,
|
|
400
|
-
"setter": false,
|
|
401
|
-
"reflect": false
|
|
402
|
-
},
|
|
403
|
-
"rAriaCurrent": {
|
|
404
|
-
"type": "string",
|
|
405
|
-
"attribute": "r-aria-current",
|
|
406
|
-
"mutable": false,
|
|
407
|
-
"complexType": {
|
|
408
|
-
"original": "ButtonAriaCurrent",
|
|
409
|
-
"resolved": "\"date\" | \"false\" | \"location\" | \"page\" | \"step\" | \"time\" | \"true\"",
|
|
410
|
-
"references": {
|
|
411
|
-
"ButtonAriaCurrent": {
|
|
412
|
-
"location": "import",
|
|
413
|
-
"path": "./exports",
|
|
414
|
-
"id": "src/components/button/exports.ts::ButtonAriaCurrent"
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
"required": false,
|
|
419
|
-
"optional": true,
|
|
420
|
-
"docs": {
|
|
421
|
-
"tags": [],
|
|
422
|
-
"text": "Indicates the current item within a set of related elements.\nCorresponds to\n[native `aria-current` attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current)"
|
|
423
|
-
},
|
|
424
|
-
"getter": false,
|
|
425
|
-
"setter": false,
|
|
426
|
-
"reflect": false
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
}
|
|
430
|
-
static get events() {
|
|
431
|
-
return [{
|
|
432
|
-
"method": "rClick",
|
|
433
|
-
"name": "rClick",
|
|
434
|
-
"bubbles": true,
|
|
435
|
-
"cancelable": true,
|
|
436
|
-
"composed": true,
|
|
437
|
-
"docs": {
|
|
438
|
-
"tags": [],
|
|
439
|
-
"text": "Emits `rClick` event on click and keyup"
|
|
440
|
-
},
|
|
441
|
-
"complexType": {
|
|
442
|
-
"original": "any",
|
|
443
|
-
"resolved": "any",
|
|
444
|
-
"references": {}
|
|
445
|
-
}
|
|
446
|
-
}];
|
|
447
|
-
}
|
|
448
|
-
static get methods() {
|
|
449
|
-
return {
|
|
450
|
-
"triggerClick": {
|
|
451
|
-
"complexType": {
|
|
452
|
-
"signature": "() => Promise<void>",
|
|
453
|
-
"parameters": [],
|
|
454
|
-
"references": {
|
|
455
|
-
"Promise": {
|
|
456
|
-
"location": "global",
|
|
457
|
-
"id": "global::Promise"
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
"return": "Promise<void>"
|
|
461
|
-
},
|
|
462
|
-
"docs": {
|
|
463
|
-
"text": "Simulate a button click",
|
|
464
|
-
"tags": []
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
"setFocus": {
|
|
468
|
-
"complexType": {
|
|
469
|
-
"signature": "() => Promise<void>",
|
|
470
|
-
"parameters": [],
|
|
471
|
-
"references": {
|
|
472
|
-
"Promise": {
|
|
473
|
-
"location": "global",
|
|
474
|
-
"id": "global::Promise"
|
|
475
|
-
}
|
|
476
|
-
},
|
|
477
|
-
"return": "Promise<void>"
|
|
478
|
-
},
|
|
479
|
-
"docs": {
|
|
480
|
-
"text": "Set focus on the button",
|
|
481
|
-
"tags": []
|
|
482
|
-
}
|
|
483
|
-
},
|
|
484
|
-
"setBlur": {
|
|
485
|
-
"complexType": {
|
|
486
|
-
"signature": "() => Promise<void>",
|
|
487
|
-
"parameters": [],
|
|
488
|
-
"references": {
|
|
489
|
-
"Promise": {
|
|
490
|
-
"location": "global",
|
|
491
|
-
"id": "global::Promise"
|
|
492
|
-
}
|
|
493
|
-
},
|
|
494
|
-
"return": "Promise<void>"
|
|
495
|
-
},
|
|
496
|
-
"docs": {
|
|
497
|
-
"text": "Remove focus from the button",
|
|
498
|
-
"tags": []
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
};
|
|
502
|
-
}
|
|
503
|
-
static get elementRef() { return "host"; }
|
|
504
|
-
static get watchers() {
|
|
505
|
-
return [{
|
|
506
|
-
"propName": "icon",
|
|
507
|
-
"methodName": "handleIconChange"
|
|
508
|
-
}];
|
|
509
|
-
}
|
|
510
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export const buttonTypeArray = ['button', 'submit', 'reset'];
|
|
2
|
-
export const buttonVariantArray = ['primary', 'secondary', 'text', 'text-inline', 'blank'];
|
|
3
|
-
export const buttonSizeArray = ['large', 'small'];
|
|
4
|
-
export const buttonTargetArray = ['_blank', '_self', '_parent', '_top'];
|
|
5
|
-
export const buttonAriaCurrentArray = ['true', 'false', 'page', 'step', 'location', 'date', 'time'];
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
user-select: none;
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
font-family: var(--r-font-family-text);
|
|
6
|
-
font-size: var(--r-font-size-400);
|
|
7
|
-
text-align: left;
|
|
8
|
-
color: var(--r-text-regular);
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
}
|
|
11
|
-
:host ::slotted(a),
|
|
12
|
-
:host ::slotted(a:visited),
|
|
13
|
-
:host ::slotted(a:hover),
|
|
14
|
-
:host ::slotted(a:focus),
|
|
15
|
-
:host ::slotted(a:active) {
|
|
16
|
-
color: var(--r-text-regular);
|
|
17
|
-
}
|
|
18
|
-
:host slot {
|
|
19
|
-
display: contents;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host(:hover:not([disabled]:not([disabled=false]))) {
|
|
23
|
-
--r-checkbox--box--background-color: var(--r-background-interactive-hovered);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:host(:focus-within:not(:active)) {
|
|
27
|
-
box-shadow: 0 0 0 3px var(--r-border-focused-outlined, #fff), inset 0 0 0 1px var(--r-border-focused-outlined, #fff);
|
|
28
|
-
outline: 2px solid var(--r-border-focused, #0071e3);
|
|
29
|
-
outline-offset: 2px;
|
|
30
|
-
--r-checkbox--box--box-shadow: 0 0 0 3px var(--r-border-focused-outlined, #fff), inset 0 0 0 1px var(--r-border-focused-outlined, #fff);
|
|
31
|
-
--r-checkbox--box--outline: 2px solid var(--r-border-focused, #0071e3);
|
|
32
|
-
--r-checkbox--box--outline-offset: 2px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host(:active:not([disabled]:not([disabled=false]))) {
|
|
36
|
-
--r-checkbox--box--background-color: var(--r-background-interactive-pressed);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
:host([invalid]:not([invalid=false])) {
|
|
40
|
-
--r-checkbox--box--border-color: var(--r-status-error-regular);
|
|
41
|
-
--r-checkbox--box--background-color: var(--r-status-error-soft);
|
|
42
|
-
--r-checkbox--marker--color: var(--r-status-error-regular);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
:host([disabled]:not([disabled=false])) {
|
|
46
|
-
--r-checkbox--box--opacity: 0.4;
|
|
47
|
-
--r-checkbox--cursor: not-allowed;
|
|
48
|
-
--r-checkbox--label-container--cursor: not-allowed;
|
|
49
|
-
--r-checkbox--label--cursor: not-allowed;
|
|
50
|
-
cursor: not-allowed;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.r-checkbox {
|
|
54
|
-
position: var(--r-checkbox--position, relative);
|
|
55
|
-
display: var(--r-checkbox--display, flex);
|
|
56
|
-
gap: var(--r-checkbox--gap, var(--r-spacing-100, 1rem));
|
|
57
|
-
cursor: var(--r-checkbox--cursor, pointer);
|
|
58
|
-
padding: var(--r-checkbox--padding, var(--r-spacing-100, 1rem));
|
|
59
|
-
min-height: var(--r-checkbox--min-height, var(--r-spacing-150, 1.5rem));
|
|
60
|
-
}
|
|
61
|
-
.r-checkbox--input {
|
|
62
|
-
position: var(--r-checkbox--input--position, absolute);
|
|
63
|
-
top: var(--r-checkbox--input--top, var(--r-checkbox--padding));
|
|
64
|
-
left: var(--r-checkbox--input--left, var(--r-checkbox--padding));
|
|
65
|
-
opacity: var(--r-checkbox--input--opacity, 0);
|
|
66
|
-
width: var(--r-checkbox--input--width, 1.5rem);
|
|
67
|
-
height: var(--r-checkbox--input--height, 1.5rem);
|
|
68
|
-
box-sizing: var(--r-checkbox--input--box-sizing, border-box);
|
|
69
|
-
padding: var(--r-checkbox--input--padding, 0);
|
|
70
|
-
margin: var(--r-checkbox--input--margin, 0);
|
|
71
|
-
}
|
|
72
|
-
.r-checkbox--box {
|
|
73
|
-
position: var(--r-checkbox--box--position, relative);
|
|
74
|
-
display: var(--r-checkbox--box--display, flex);
|
|
75
|
-
align-items: var(--r-checkbox--box--align-items, center);
|
|
76
|
-
justify-content: var(--r-checkbox--box--justify-content, center);
|
|
77
|
-
left: var(--r-checkbox--box--left, 0);
|
|
78
|
-
top: var(--r-checkbox--box--top, 0);
|
|
79
|
-
height: var(--r-checkbox--box--height, 1.5rem);
|
|
80
|
-
width: var(--r-checkbox--box--width, 1.5rem);
|
|
81
|
-
min-width: var(--r-checkbox--box--min-width, 1.5rem);
|
|
82
|
-
background-color: var(--r-checkbox--box--background-color, var(--r-background-interactive-softest, #fff));
|
|
83
|
-
border-width: var(--r-checkbox--box--border-width, 0.0625rem);
|
|
84
|
-
border-style: var(--r-checkbox--box--border-style, solid);
|
|
85
|
-
border-color: var(--r-checkbox--box--border-color, var(--r-border-soft, #686868));
|
|
86
|
-
outline: var(--r-checkbox--box--outline, none);
|
|
87
|
-
outline-offset: var(--r-checkbox--box--outline-offset, 0);
|
|
88
|
-
box-sizing: var(--r-checkbox--box--box-sizing, border-box);
|
|
89
|
-
box-shadow: var(--r-checkbox--box--box-shadow, none);
|
|
90
|
-
opacity: var(--r-checkbox--box--opacity, 1);
|
|
91
|
-
}
|
|
92
|
-
.r-checkbox--description {
|
|
93
|
-
cursor: var(--r-checkbox--label-container--cursor, pointer);
|
|
94
|
-
flex: var(--r-checkbox--label-container--flex, 1);
|
|
95
|
-
line-height: var(--r-checkbox--label-container--line-height, 1.5);
|
|
96
|
-
display: var(--r-checkbox--label-container--display, flex);
|
|
97
|
-
flex-direction: var(--r-checkbox--label-container--flex-direction, column);
|
|
98
|
-
gap: var(--r-checkbox--label-container--gap, var(--r-spacing-025, 0.25rem));
|
|
99
|
-
}
|
|
100
|
-
.r-checkbox--label {
|
|
101
|
-
cursor: var(--r-checkbox--label--cursor, pointer);
|
|
102
|
-
}
|
|
103
|
-
.r-checkbox--message {
|
|
104
|
-
margin-top: var(--r-checkbox--message--margin-top, var(--r-spacing-025, 0.25rem));
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
:host(.visually-hidden),
|
|
108
|
-
.visually-hidden {
|
|
109
|
-
position: absolute;
|
|
110
|
-
width: 0.0625rem;
|
|
111
|
-
height: 0.0625rem;
|
|
112
|
-
clip: rect(0 0 0 0);
|
|
113
|
-
clip-path: inset(50%);
|
|
114
|
-
overflow: hidden;
|
|
115
|
-
white-space: nowrap;
|
|
116
|
-
}
|