@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,90 +0,0 @@
|
|
|
1
|
-
import IconsData from "./riverty-kit";
|
|
2
|
-
export const PATH_ICONS = 'https://cdn.riverty.design/icons/';
|
|
3
|
-
export const DEFAULT_KIT_NAME = 'riverty';
|
|
4
|
-
let parser;
|
|
5
|
-
const data = IconsData;
|
|
6
|
-
const minifySvgContent = (content) => {
|
|
7
|
-
// Remove spaces at the beginning and at the end
|
|
8
|
-
let string = content.trim();
|
|
9
|
-
// Strip fill attributes
|
|
10
|
-
string = string.replace(/\sfill="([\S]*)"/gi, '');
|
|
11
|
-
// Strip stroke attributes
|
|
12
|
-
string = string.replace(/\sstroke="([\S]*)"/gi, '');
|
|
13
|
-
// Remove line breaks
|
|
14
|
-
string = string.replace(/\n|\r/g, "");
|
|
15
|
-
// Remove spaces between tags
|
|
16
|
-
string = string.replace(/>\s+</g, '><');
|
|
17
|
-
// Strip attributes from <svg> tag
|
|
18
|
-
string = string.replace(/<svg[^>]*?>/gi, '<svg stroke="currentColor">');
|
|
19
|
-
return string;
|
|
20
|
-
};
|
|
21
|
-
const checkEventListeners = element => {
|
|
22
|
-
// Get all inner nodes
|
|
23
|
-
const nodesArray = Array.from(element.querySelectorAll('*'));
|
|
24
|
-
// Take each node
|
|
25
|
-
const nodesFilter = nodesArray.filter((el) => {
|
|
26
|
-
// Get an array of attributes
|
|
27
|
-
const attributes = Array.from(el.attributes);
|
|
28
|
-
// Check if there is an attribute, that starts with "on"
|
|
29
|
-
if (attributes.filter(attr => attr.name.startsWith("on")).length > 0) {
|
|
30
|
-
return el;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
// If nodes found -> hasEventListeners = true
|
|
34
|
-
return nodesFilter.length > 0;
|
|
35
|
-
};
|
|
36
|
-
const isSvgContentValid = (element) => {
|
|
37
|
-
const hasEventListeners = checkEventListeners(element);
|
|
38
|
-
const hasScriptTags = element.querySelectorAll('script').length > 0;
|
|
39
|
-
const hasLinksJSTriggers = element.querySelectorAll('[href^="javascript:"]').length > 0;
|
|
40
|
-
return !hasEventListeners && !hasScriptTags && !hasLinksJSTriggers;
|
|
41
|
-
};
|
|
42
|
-
// Get SVG Element based on SVG text content
|
|
43
|
-
export const parseElementFromSvgContent = (content) => {
|
|
44
|
-
if (!parser) {
|
|
45
|
-
parser = new DOMParser();
|
|
46
|
-
}
|
|
47
|
-
const htmlContent = parser.parseFromString(content, 'text/html');
|
|
48
|
-
const element = htmlContent.querySelector('svg');
|
|
49
|
-
if (!element)
|
|
50
|
-
return null;
|
|
51
|
-
if (isSvgContentValid(element)) {
|
|
52
|
-
return element;
|
|
53
|
-
}
|
|
54
|
-
return null;
|
|
55
|
-
};
|
|
56
|
-
export const getSvgElementBySrc = async (src) => {
|
|
57
|
-
try {
|
|
58
|
-
// Fetch content of the SVG from source provided
|
|
59
|
-
const responce = await fetch(src);
|
|
60
|
-
if (!responce.ok) {
|
|
61
|
-
console.warn(`Error while fetching from ${src}: ${responce.status}.`);
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
const textContent = await responce.text();
|
|
65
|
-
const svgElement = parseElementFromSvgContent(textContent);
|
|
66
|
-
return Promise.resolve(svgElement);
|
|
67
|
-
}
|
|
68
|
-
catch (error) {
|
|
69
|
-
return Promise.reject(error);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
export const getSvgContentByName = (name) => {
|
|
73
|
-
return data[name] || null;
|
|
74
|
-
};
|
|
75
|
-
// Define <SVG> element by name
|
|
76
|
-
export const getSvgElementByName = name => {
|
|
77
|
-
// Get content from json
|
|
78
|
-
const svgContent = getSvgContentByName(name);
|
|
79
|
-
// Get element if content exists
|
|
80
|
-
return svgContent ? parseElementFromSvgContent(svgContent) : null;
|
|
81
|
-
};
|
|
82
|
-
export const getIconsData = () => {
|
|
83
|
-
return data;
|
|
84
|
-
};
|
|
85
|
-
export const addToIconsData = (name, value) => {
|
|
86
|
-
const content = minifySvgContent(value);
|
|
87
|
-
if (data[name] === undefined) {
|
|
88
|
-
data[name] = content;
|
|
89
|
-
}
|
|
90
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { getIconsData } from "./data";
|
|
2
|
-
export const iconsData = getIconsData();
|
|
3
|
-
export const iconSizeArray = ['s', 'm', 'l'];
|
|
4
|
-
export const iconSizeValue = { 's': '16', 'm': '24', 'l': '32' };
|
|
5
|
-
export const iconPositionArray = ['start', 'end'];
|
|
6
|
-
export const iconKitArray = ['riverty', 'test'];
|
|
7
|
-
export const iconVariantArray = ['button'];
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
vertical-align: top;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
:host([size=s]) {
|
|
7
|
-
--r-icon--width: 16px;
|
|
8
|
-
--r-icon--height: 16px;
|
|
9
|
-
line-height: 16px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:host([size=m]) {
|
|
13
|
-
--r-icon--width: 24px;
|
|
14
|
-
--r-icon--height: 24px;
|
|
15
|
-
line-height: 24px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host([size=l]) {
|
|
19
|
-
--r-icon--width: 32px;
|
|
20
|
-
--r-icon--height: 32px;
|
|
21
|
-
line-height: 32px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:host([size]) {
|
|
25
|
-
--r-icon--slotted--width: var(--r-icon--width, 24px);
|
|
26
|
-
--r-icon--slotted--height: var(--r-icon--height, 24px);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:host([variant=button]) {
|
|
30
|
-
--r-icon--target-area--display: block;
|
|
31
|
-
--r-icon--button-area--display: block;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host([variant=button]:hover) {
|
|
35
|
-
--r-icon--button-area--border-color: var(--r-border-softer);
|
|
36
|
-
--r-icon--button-area--background-color: var(--r-background-interactive-hovered);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
:host([variant=button][size=m]) {
|
|
40
|
-
--r-icon--button-area--width: 2.25rem;
|
|
41
|
-
--r-icon--button-area--height: 2.25rem;
|
|
42
|
-
--r-icon--button-area--top: calc(50% - 1.125rem)
|
|
43
|
-
--r-icon--button-area--left: calc(50% - 1.125rem) ;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:host([variant=button][size=l]) {
|
|
47
|
-
--r-icon--button-area--width: 2.75rem;
|
|
48
|
-
--r-icon--button-area--height: 2.75rem;
|
|
49
|
-
--r-icon--button-area--top: calc(50% - 1.375rem)
|
|
50
|
-
--r-icon--button-area--left: calc(50% - 1.375rem) ;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.r-icon {
|
|
54
|
-
display: var(--r-icon--display, block);
|
|
55
|
-
width: var(--r-icon--width, 24px);
|
|
56
|
-
height: var(--r-icon--height, 24px);
|
|
57
|
-
margin-left: var(--r-icon--margin-left, 0);
|
|
58
|
-
margin-right: var(--r-icon--margin-right, 0);
|
|
59
|
-
overflow: var(--r-icon--overflow, hidden);
|
|
60
|
-
color: var(--r-icon--color, inherit);
|
|
61
|
-
}
|
|
62
|
-
.r-icon--container {
|
|
63
|
-
display: var(--r-icon--container--display, flex);
|
|
64
|
-
align-items: var(--r-icon--container--align-items, center);
|
|
65
|
-
justify-content: var(--r-icon--container--justify-content, center);
|
|
66
|
-
fill: var(--r-icon--container--fill, rgba(0, 0, 0, 0));
|
|
67
|
-
stroke: var(--r-icon--container--stroke, inherit);
|
|
68
|
-
stroke-width: var(--r-icon--container--stroke-width, 1.5);
|
|
69
|
-
width: var(--r-icon--container--width, inherit);
|
|
70
|
-
height: var(--r-icon--container--height, inherit);
|
|
71
|
-
}
|
|
72
|
-
.r-icon ::slotted(svg) {
|
|
73
|
-
width: var(--r-icon--slotted--width, 100%);
|
|
74
|
-
height: var(--r-icon--slotted--height, auto);
|
|
75
|
-
vertical-align: var(--r-icon--slotted--vertical-align, top);
|
|
76
|
-
color: var(--r-icon--slotted--color, inherit);
|
|
77
|
-
stroke-width: var(--r-icon--slotted--stroke-width, 1.5);
|
|
78
|
-
fill: var(--r-icon--slotted--fill, transparent);
|
|
79
|
-
}
|
|
80
|
-
.r-icon--button-area {
|
|
81
|
-
position: var(--r-icon--button-area--position, absolute);
|
|
82
|
-
left: var(--r-icon--button-area--left, calc(50% - 0.75rem));
|
|
83
|
-
top: var(--r-icon--button-area--top, calc(50% - 0.75rem));
|
|
84
|
-
display: var(--r-icon--button-area--display, none);
|
|
85
|
-
width: var(--r-icon--button-area--width, 1.5rem);
|
|
86
|
-
height: var(--r-icon--button-area--height, 1.5rem);
|
|
87
|
-
background-color: var(--r-icon--button-area--background-color, transparent);
|
|
88
|
-
border-width: var(--r-icon--button-area--border-width, 1px);
|
|
89
|
-
border-style: var(--r-icon--button-area--border-style, solid);
|
|
90
|
-
border-color: var(--r-icon--button-area--border-color, transparent);
|
|
91
|
-
border-radius: var(--r-icon--button-area--border-radius, 50%);
|
|
92
|
-
box-sizing: var(--r-icon--button-area--box-sizing, border-box);
|
|
93
|
-
outline: var(--r-icon--button-area--outline, none);
|
|
94
|
-
outline-offset: var(--r-icon--button-area--outline-offset, 0);
|
|
95
|
-
box-shadow: var(--r-icon--button-area--box-shadow, 0);
|
|
96
|
-
}
|
|
97
|
-
.r-icon--target-area {
|
|
98
|
-
position: var(--r-icon--target-area--position, absolute);
|
|
99
|
-
left: var(--r-icon--target-area--left, calc(50% - 1.375rem));
|
|
100
|
-
top: var(--r-icon--target-area--top, calc(50% - 1.375rem));
|
|
101
|
-
display: var(--r-icon--target-area--display, none);
|
|
102
|
-
width: var(--r-icon--target-area--width, 2.75rem);
|
|
103
|
-
height: var(--r-icon--target-area--height, 2.75rem);
|
|
104
|
-
background-color: var(--r-icon--target-area--background-color, transparent);
|
|
105
|
-
}
|
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
import { Host, h, Fragment } from "@stencil/core";
|
|
2
|
-
import { PATH_ICONS, DEFAULT_KIT_NAME, getSvgElementBySrc, getSvgElementByName, getIconsData, addToIconsData } from "./data";
|
|
3
|
-
import { iconSizeValue } from "./exports";
|
|
4
|
-
let iconsData = getIconsData();
|
|
5
|
-
export class RIcon {
|
|
6
|
-
constructor() {
|
|
7
|
-
/** Select kit */
|
|
8
|
-
this.kit = DEFAULT_KIT_NAME;
|
|
9
|
-
/** Select one of pre-set sizes (width and height automatically selected) */
|
|
10
|
-
this.size = "m";
|
|
11
|
-
/** Customize `viewBox` of rendered icon SVG element */
|
|
12
|
-
this.viewBox = '0 0 24 24';
|
|
13
|
-
/**
|
|
14
|
-
* Quick way to set display color to one of the
|
|
15
|
-
* Riverty color tokens
|
|
16
|
-
*/
|
|
17
|
-
this.color = null;
|
|
18
|
-
this._setElementAttrs = (el, attrs = {}) => {
|
|
19
|
-
if (!el)
|
|
20
|
-
return;
|
|
21
|
-
const keys = Object.keys(attrs);
|
|
22
|
-
keys.forEach(key => {
|
|
23
|
-
const elHasNoAttr = el.getAttribute(key) === null;
|
|
24
|
-
const attrHasValue = attrs[key] !== undefined;
|
|
25
|
-
if (elHasNoAttr && attrHasValue) {
|
|
26
|
-
el.setAttribute(key, attrs[key]);
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
// Combine attributes for <SVG>
|
|
31
|
-
this._defineSvgAttrs = () => {
|
|
32
|
-
const { viewBox, name } = this;
|
|
33
|
-
const sizeValue = this.size ? iconSizeValue[this.size] : null;
|
|
34
|
-
const attrs = {
|
|
35
|
-
viewBox,
|
|
36
|
-
key: name,
|
|
37
|
-
xmlns: 'http://www.w3.org/2000/svg',
|
|
38
|
-
'aria-label': this.iconAriaLabel,
|
|
39
|
-
'aria-hidden': !this.iconAriaLabel
|
|
40
|
-
};
|
|
41
|
-
if (sizeValue !== null) {
|
|
42
|
-
attrs['width'] = sizeValue;
|
|
43
|
-
attrs['height'] = sizeValue;
|
|
44
|
-
}
|
|
45
|
-
return attrs;
|
|
46
|
-
};
|
|
47
|
-
// Pass attributes from <r-icon> to <SVG>
|
|
48
|
-
this._passAttributesToSvg = () => {
|
|
49
|
-
// Search for an <svg> within <r-icon> component
|
|
50
|
-
const svgElement = this.host.querySelector('svg');
|
|
51
|
-
// If an SVG was not found inside <r-icon>
|
|
52
|
-
// Exit function
|
|
53
|
-
if (svgElement === null)
|
|
54
|
-
return;
|
|
55
|
-
// Pass name of an attribute, get the value
|
|
56
|
-
const _getAttrValue = attrName => {
|
|
57
|
-
return (
|
|
58
|
-
// First check if an attribute is provided by <r-icon>,
|
|
59
|
-
this.host.getAttribute(attrName) ||
|
|
60
|
-
// If not, then check if <SVG> in slot provides one
|
|
61
|
-
svgElement.getAttribute(attrName) ||
|
|
62
|
-
// If not, then take deafult <r-icon> value
|
|
63
|
-
this[attrName]);
|
|
64
|
-
};
|
|
65
|
-
// Collect attribute values available
|
|
66
|
-
// Priority of overriding: host -> svg -> default
|
|
67
|
-
// Set values of attributes of an <SVG>
|
|
68
|
-
this._setElementAttrs(svgElement, {
|
|
69
|
-
viewBox: _getAttrValue('viewBox')
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
this._defineSvgElement = async () => {
|
|
73
|
-
let svgElement = null;
|
|
74
|
-
let attrs = {};
|
|
75
|
-
// Define <SVG> element by source
|
|
76
|
-
if (this.src) {
|
|
77
|
-
// Fetch <SVG> content from the source
|
|
78
|
-
try {
|
|
79
|
-
svgElement = await getSvgElementBySrc(this.src);
|
|
80
|
-
}
|
|
81
|
-
catch (error) {
|
|
82
|
-
console.info('Error while fetching:', error);
|
|
83
|
-
return null;
|
|
84
|
-
}
|
|
85
|
-
// If <SVG> element fetched successfully
|
|
86
|
-
if (svgElement) {
|
|
87
|
-
// Set <SVG> element attributes
|
|
88
|
-
this._setElementAttrs(svgElement, this._defineSvgAttrs());
|
|
89
|
-
// Extract name from src
|
|
90
|
-
const name = this.src.split("/").pop().replace('.svg', '');
|
|
91
|
-
if (iconsData[name] !== undefined) {
|
|
92
|
-
return svgElement;
|
|
93
|
-
}
|
|
94
|
-
// Save icon content to data object
|
|
95
|
-
addToIconsData(name, `${svgElement.outerHTML}`);
|
|
96
|
-
// Update data object
|
|
97
|
-
iconsData = getIconsData();
|
|
98
|
-
return svgElement;
|
|
99
|
-
}
|
|
100
|
-
console.warn(`The icon was NOT found by src "${this.src}".`);
|
|
101
|
-
}
|
|
102
|
-
// Check name attribute
|
|
103
|
-
if (this.name) {
|
|
104
|
-
// Getting an <SVG> element by name
|
|
105
|
-
svgElement = getSvgElementByName(this.name);
|
|
106
|
-
if (svgElement !== null) {
|
|
107
|
-
attrs = this._defineSvgAttrs();
|
|
108
|
-
this._setElementAttrs(svgElement, attrs);
|
|
109
|
-
return svgElement;
|
|
110
|
-
}
|
|
111
|
-
const isDefaultKit = this.kit === DEFAULT_KIT_NAME;
|
|
112
|
-
// If element was NOT found by name
|
|
113
|
-
// Pass source based on CDN path and name prop
|
|
114
|
-
const source = !isDefaultKit ? `${PATH_ICONS}${this.kit}/${this.name}.svg` : `${PATH_ICONS}${this.name}.svg`;
|
|
115
|
-
try {
|
|
116
|
-
svgElement = await getSvgElementBySrc(source);
|
|
117
|
-
}
|
|
118
|
-
catch (error) {
|
|
119
|
-
console.info(`Error while fetching "${source}":`, error);
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
if (!svgElement) {
|
|
123
|
-
console.info(`
|
|
124
|
-
No SVG Element recieved after fetching "${source}".
|
|
125
|
-
`);
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
// Add set of attributes to SVG
|
|
129
|
-
this._setElementAttrs(svgElement, this._defineSvgAttrs());
|
|
130
|
-
// Save icon content to data object
|
|
131
|
-
addToIconsData(this.name, `${svgElement.outerHTML}`);
|
|
132
|
-
// Update data object
|
|
133
|
-
iconsData = getIconsData();
|
|
134
|
-
return svgElement;
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
get cssColor() {
|
|
139
|
-
if (!this.color)
|
|
140
|
-
return null;
|
|
141
|
-
const varRegex = new RegExp(/^var\(/);
|
|
142
|
-
const nameRegex = new RegExp(/^--r-/);
|
|
143
|
-
const rgbRegex = new RegExp(/^rgb?.\(/);
|
|
144
|
-
const hexRegex = new RegExp(/^#(?:[0-9a-fA-F]{3}){1,2}$/);
|
|
145
|
-
const isHex = hexRegex.test(this.color);
|
|
146
|
-
const isRgb = rgbRegex.test(this.color);
|
|
147
|
-
const isVar = varRegex.test(this.color);
|
|
148
|
-
const isName = nameRegex.test(this.color);
|
|
149
|
-
return (isHex || isRgb || isVar) ? this.color : isName ? `var(${this.color})` : null;
|
|
150
|
-
}
|
|
151
|
-
componentWillLoad() {
|
|
152
|
-
// If an <SVG> within <r-icon> slot exists
|
|
153
|
-
// Collect attributes and pass them to an <SVG>
|
|
154
|
-
// According to defined priority (host -> svg -> default)
|
|
155
|
-
this._passAttributesToSvg();
|
|
156
|
-
}
|
|
157
|
-
async componentWillRender() {
|
|
158
|
-
// Define the source on an <SVG> element
|
|
159
|
-
// Priority: src -> name -> from cdn by src based on name
|
|
160
|
-
this.svgElement = await this._defineSvgElement();
|
|
161
|
-
}
|
|
162
|
-
render() {
|
|
163
|
-
const attrs = {};
|
|
164
|
-
// Add style to the wrapper
|
|
165
|
-
attrs['style'] = {
|
|
166
|
-
color: this.cssColor
|
|
167
|
-
};
|
|
168
|
-
// If no <SVG> Element defined at this point
|
|
169
|
-
if (!this.svgElement) {
|
|
170
|
-
// Render slot content
|
|
171
|
-
return (h(Host, null, h("div", Object.assign({ class: "r-icon" }, attrs), h("slot", null))));
|
|
172
|
-
}
|
|
173
|
-
// Else paste <SVG> element into innerHTML attribute
|
|
174
|
-
// And render into <Host>
|
|
175
|
-
const containerAttrs = {
|
|
176
|
-
innerHTML: this.svgElement.outerHTML
|
|
177
|
-
};
|
|
178
|
-
return (h(Host, null, h("div", Object.assign({ class: "r-icon" }, attrs), h("i", Object.assign({ class: "r-icon--container" }, containerAttrs)), this.variant === 'button' &&
|
|
179
|
-
h(Fragment, null, h("i", { class: "r-icon--button-area" }), h("i", { class: "r-icon--target-area" })))));
|
|
180
|
-
}
|
|
181
|
-
static get is() { return "r-icon"; }
|
|
182
|
-
static get encapsulation() { return "shadow"; }
|
|
183
|
-
static get originalStyleUrls() {
|
|
184
|
-
return {
|
|
185
|
-
"$": ["icon.css"]
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
static get styleUrls() {
|
|
189
|
-
return {
|
|
190
|
-
"$": ["icon.css"]
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
static get assetsDirs() { return ["bundled-icons"]; }
|
|
194
|
-
static get properties() {
|
|
195
|
-
return {
|
|
196
|
-
"name": {
|
|
197
|
-
"type": "string",
|
|
198
|
-
"attribute": "name",
|
|
199
|
-
"mutable": false,
|
|
200
|
-
"complexType": {
|
|
201
|
-
"original": "IconName",
|
|
202
|
-
"resolved": "string",
|
|
203
|
-
"references": {
|
|
204
|
-
"IconName": {
|
|
205
|
-
"location": "import",
|
|
206
|
-
"path": "./exports",
|
|
207
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
"required": false,
|
|
212
|
-
"optional": true,
|
|
213
|
-
"docs": {
|
|
214
|
-
"tags": [],
|
|
215
|
-
"text": "Name of icon to select from the set"
|
|
216
|
-
},
|
|
217
|
-
"getter": false,
|
|
218
|
-
"setter": false,
|
|
219
|
-
"reflect": true
|
|
220
|
-
},
|
|
221
|
-
"src": {
|
|
222
|
-
"type": "string",
|
|
223
|
-
"attribute": "src",
|
|
224
|
-
"mutable": false,
|
|
225
|
-
"complexType": {
|
|
226
|
-
"original": "string",
|
|
227
|
-
"resolved": "string",
|
|
228
|
-
"references": {}
|
|
229
|
-
},
|
|
230
|
-
"required": false,
|
|
231
|
-
"optional": true,
|
|
232
|
-
"docs": {
|
|
233
|
-
"tags": [],
|
|
234
|
-
"text": "Source of an icon to fetch from"
|
|
235
|
-
},
|
|
236
|
-
"getter": false,
|
|
237
|
-
"setter": false,
|
|
238
|
-
"reflect": false
|
|
239
|
-
},
|
|
240
|
-
"kit": {
|
|
241
|
-
"type": "string",
|
|
242
|
-
"attribute": "kit",
|
|
243
|
-
"mutable": false,
|
|
244
|
-
"complexType": {
|
|
245
|
-
"original": "IconKit",
|
|
246
|
-
"resolved": "\"riverty\" | \"test\"",
|
|
247
|
-
"references": {
|
|
248
|
-
"IconKit": {
|
|
249
|
-
"location": "import",
|
|
250
|
-
"path": "./exports",
|
|
251
|
-
"id": "src/components/icon/exports.ts::IconKit"
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
"required": false,
|
|
256
|
-
"optional": false,
|
|
257
|
-
"docs": {
|
|
258
|
-
"tags": [],
|
|
259
|
-
"text": "Select kit"
|
|
260
|
-
},
|
|
261
|
-
"getter": false,
|
|
262
|
-
"setter": false,
|
|
263
|
-
"reflect": false,
|
|
264
|
-
"defaultValue": "DEFAULT_KIT_NAME"
|
|
265
|
-
},
|
|
266
|
-
"size": {
|
|
267
|
-
"type": "string",
|
|
268
|
-
"attribute": "size",
|
|
269
|
-
"mutable": false,
|
|
270
|
-
"complexType": {
|
|
271
|
-
"original": "IconSize",
|
|
272
|
-
"resolved": "\"l\" | \"m\" | \"s\"",
|
|
273
|
-
"references": {
|
|
274
|
-
"IconSize": {
|
|
275
|
-
"location": "import",
|
|
276
|
-
"path": "./exports",
|
|
277
|
-
"id": "src/components/icon/exports.ts::IconSize"
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
"required": false,
|
|
282
|
-
"optional": true,
|
|
283
|
-
"docs": {
|
|
284
|
-
"tags": [],
|
|
285
|
-
"text": "Select one of pre-set sizes (width and height automatically selected)"
|
|
286
|
-
},
|
|
287
|
-
"getter": false,
|
|
288
|
-
"setter": false,
|
|
289
|
-
"reflect": true,
|
|
290
|
-
"defaultValue": "\"m\""
|
|
291
|
-
},
|
|
292
|
-
"viewBox": {
|
|
293
|
-
"type": "string",
|
|
294
|
-
"attribute": "view-box",
|
|
295
|
-
"mutable": false,
|
|
296
|
-
"complexType": {
|
|
297
|
-
"original": "string",
|
|
298
|
-
"resolved": "string",
|
|
299
|
-
"references": {}
|
|
300
|
-
},
|
|
301
|
-
"required": false,
|
|
302
|
-
"optional": false,
|
|
303
|
-
"docs": {
|
|
304
|
-
"tags": [],
|
|
305
|
-
"text": "Customize `viewBox` of rendered icon SVG element"
|
|
306
|
-
},
|
|
307
|
-
"getter": false,
|
|
308
|
-
"setter": false,
|
|
309
|
-
"reflect": false,
|
|
310
|
-
"defaultValue": "'0 0 24 24'"
|
|
311
|
-
},
|
|
312
|
-
"color": {
|
|
313
|
-
"type": "string",
|
|
314
|
-
"attribute": "color",
|
|
315
|
-
"mutable": false,
|
|
316
|
-
"complexType": {
|
|
317
|
-
"original": "string",
|
|
318
|
-
"resolved": "string",
|
|
319
|
-
"references": {}
|
|
320
|
-
},
|
|
321
|
-
"required": false,
|
|
322
|
-
"optional": false,
|
|
323
|
-
"docs": {
|
|
324
|
-
"tags": [],
|
|
325
|
-
"text": "Quick way to set display color to one of the\nRiverty color tokens"
|
|
326
|
-
},
|
|
327
|
-
"getter": false,
|
|
328
|
-
"setter": false,
|
|
329
|
-
"reflect": false,
|
|
330
|
-
"defaultValue": "null"
|
|
331
|
-
},
|
|
332
|
-
"variant": {
|
|
333
|
-
"type": "string",
|
|
334
|
-
"attribute": "variant",
|
|
335
|
-
"mutable": false,
|
|
336
|
-
"complexType": {
|
|
337
|
-
"original": "IconVariant",
|
|
338
|
-
"resolved": "\"button\"",
|
|
339
|
-
"references": {
|
|
340
|
-
"IconVariant": {
|
|
341
|
-
"location": "import",
|
|
342
|
-
"path": "./exports",
|
|
343
|
-
"id": "src/components/icon/exports.ts::IconVariant"
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
"required": false,
|
|
348
|
-
"optional": true,
|
|
349
|
-
"docs": {
|
|
350
|
-
"tags": [],
|
|
351
|
-
"text": "Defines UI deviations for the icon."
|
|
352
|
-
},
|
|
353
|
-
"getter": false,
|
|
354
|
-
"setter": false,
|
|
355
|
-
"reflect": true
|
|
356
|
-
},
|
|
357
|
-
"iconAriaLabel": {
|
|
358
|
-
"type": "string",
|
|
359
|
-
"attribute": "icon-aria-label",
|
|
360
|
-
"mutable": false,
|
|
361
|
-
"complexType": {
|
|
362
|
-
"original": "string",
|
|
363
|
-
"resolved": "string",
|
|
364
|
-
"references": {}
|
|
365
|
-
},
|
|
366
|
-
"required": false,
|
|
367
|
-
"optional": true,
|
|
368
|
-
"docs": {
|
|
369
|
-
"tags": [],
|
|
370
|
-
"text": "Defines an accessible name for the icon."
|
|
371
|
-
},
|
|
372
|
-
"getter": false,
|
|
373
|
-
"setter": false,
|
|
374
|
-
"reflect": false
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
static get elementRef() { return "host"; }
|
|
379
|
-
}
|