@govbr-ds/webcomponents 2.0.0-next.22 → 2.0.0-next.23
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/LICENSE +1 -1
- package/README.md +99 -90
- package/package.json +15 -51
- package/dist/cjs/app-globals-77a217c6.js +0 -11
- package/dist/cjs/app-globals-77a217c6.js.map +0 -1
- package/dist/cjs/br-avatar.cjs.entry.js +0 -77
- package/dist/cjs/br-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/br-button_2.cjs.entry.js +0 -2610
- package/dist/cjs/br-button_2.cjs.entry.js.map +0 -1
- package/dist/cjs/br-checkbox.cjs.entry.js +0 -76
- package/dist/cjs/br-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/br-checkgroup.cjs.entry.js +0 -101
- package/dist/cjs/br-checkgroup.cjs.entry.js.map +0 -1
- package/dist/cjs/br-dropdown.cjs.entry.js +0 -100
- package/dist/cjs/br-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/br-input_3.cjs.entry.js +0 -284
- package/dist/cjs/br-input_3.cjs.entry.js.map +0 -1
- package/dist/cjs/br-item.cjs.entry.js +0 -166
- package/dist/cjs/br-item.cjs.entry.js.map +0 -1
- package/dist/cjs/br-loading.cjs.entry.js +0 -43
- package/dist/cjs/br-loading.cjs.entry.js.map +0 -1
- package/dist/cjs/br-message.cjs.entry.js +0 -68
- package/dist/cjs/br-message.cjs.entry.js.map +0 -1
- package/dist/cjs/br-select.cjs.entry.js +0 -281
- package/dist/cjs/br-select.cjs.entry.js.map +0 -1
- package/dist/cjs/br-switch.cjs.entry.js +0 -84
- package/dist/cjs/br-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/br-tag.cjs.entry.js +0 -88
- package/dist/cjs/br-tag.cjs.entry.js.map +0 -1
- package/dist/cjs/br-textarea.cjs.entry.js +0 -102
- package/dist/cjs/br-textarea.cjs.entry.js.map +0 -1
- package/dist/cjs/br-upload.cjs.entry.js +0 -168
- package/dist/cjs/br-upload.cjs.entry.js.map +0 -1
- package/dist/cjs/index-4fc1aab1.js +0 -2091
- package/dist/cjs/index-4fc1aab1.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -8
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/inherited-attributes-16f7d388.js +0 -107
- package/dist/cjs/inherited-attributes-16f7d388.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/v4-2a0fe526.js +0 -74
- package/dist/cjs/v4-2a0fe526.js.map +0 -1
- package/dist/cjs/webcomponents.cjs.js +0 -52
- package/dist/cjs/webcomponents.cjs.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -28
- package/dist/collection/components/avatar/avatar.css +0 -548
- package/dist/collection/components/avatar/avatar.js +0 -238
- package/dist/collection/components/avatar/avatar.js.map +0 -1
- package/dist/collection/components/button/button.css +0 -810
- package/dist/collection/components/button/button.js +0 -254
- package/dist/collection/components/button/button.js.map +0 -1
- package/dist/collection/components/checkbox/checkbox.css +0 -605
- package/dist/collection/components/checkbox/checkbox.js +0 -297
- package/dist/collection/components/checkbox/checkbox.js.map +0 -1
- package/dist/collection/components/checkgroup/checkgroup.css +0 -605
- package/dist/collection/components/checkgroup/checkgroup.js +0 -197
- package/dist/collection/components/checkgroup/checkgroup.js.map +0 -1
- package/dist/collection/components/dropdown/dropdown.css +0 -475
- package/dist/collection/components/dropdown/dropdown.js +0 -187
- package/dist/collection/components/dropdown/dropdown.js.map +0 -1
- package/dist/collection/components/icon/icon.css +0 -460
- package/dist/collection/components/icon/icon.js +0 -190
- package/dist/collection/components/icon/icon.js.map +0 -1
- package/dist/collection/components/input/input.css +0 -681
- package/dist/collection/components/input/input.js +0 -626
- package/dist/collection/components/input/input.js.map +0 -1
- package/dist/collection/components/item/item.css +0 -670
- package/dist/collection/components/item/item.js +0 -422
- package/dist/collection/components/item/item.js.map +0 -1
- package/dist/collection/components/list/list.css +0 -572
- package/dist/collection/components/list/list.js +0 -144
- package/dist/collection/components/list/list.js.map +0 -1
- package/dist/collection/components/loading/loading.css +0 -661
- package/dist/collection/components/loading/loading.js +0 -127
- package/dist/collection/components/loading/loading.js.map +0 -1
- package/dist/collection/components/message/message.css +0 -608
- package/dist/collection/components/message/message.js +0 -225
- package/dist/collection/components/message/message.js.map +0 -1
- package/dist/collection/components/radio/radio.css +0 -560
- package/dist/collection/components/radio/radio.js +0 -263
- package/dist/collection/components/radio/radio.js.map +0 -1
- package/dist/collection/components/select/select.css +0 -865
- package/dist/collection/components/select/select.js +0 -509
- package/dist/collection/components/select/select.js.map +0 -1
- package/dist/collection/components/switch/switch.css +0 -631
- package/dist/collection/components/switch/switch.js +0 -345
- package/dist/collection/components/switch/switch.js.map +0 -1
- package/dist/collection/components/tag/tag.css +0 -653
- package/dist/collection/components/tag/tag.js +0 -272
- package/dist/collection/components/tag/tag.js.map +0 -1
- package/dist/collection/components/textarea/textarea.css +0 -526
- package/dist/collection/components/textarea/textarea.js +0 -316
- package/dist/collection/components/textarea/textarea.js.map +0 -1
- package/dist/collection/components/upload/upload.css +0 -570
- package/dist/collection/components/upload/upload.js +0 -479
- package/dist/collection/components/upload/upload.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/pages/components/button/index.js +0 -18
- package/dist/collection/pages/components/checkbox/index.js +0 -18
- package/dist/collection/pages/components/checkgroup/index.js +0 -20
- package/dist/collection/pages/components/dropdown/index.js +0 -18
- package/dist/collection/pages/components/icon/index.js +0 -18
- package/dist/collection/pages/components/input/index.js +0 -27
- package/dist/collection/pages/components/item/index.js +0 -18
- package/dist/collection/pages/components/list/index.js +0 -19
- package/dist/collection/pages/components/message/index.js +0 -18
- package/dist/collection/pages/components/radio/index.js +0 -18
- package/dist/collection/pages/components/select/index.js +0 -18
- package/dist/collection/pages/components/switch/index.js +0 -18
- package/dist/collection/pages/components/tag/index.js +0 -18
- package/dist/collection/pages/components/textarea/index.js +0 -19
- package/dist/collection/pages/components/upload/index.js +0 -19
- package/dist/collection/pages/scripts/menu.js +0 -241
- package/dist/collection/pages/scripts/pageLoader.js +0 -180
- package/dist/collection/utils/inherited-attributes.js +0 -102
- package/dist/collection/utils/inherited-attributes.js.map +0 -1
- package/dist/collection/utils/interfaces.js +0 -2
- package/dist/collection/utils/interfaces.js.map +0 -1
- package/dist/collection/utils/unique-id-generator.js +0 -13
- package/dist/collection/utils/unique-id-generator.js.map +0 -1
- package/dist/components/br-avatar.d.ts +0 -11
- package/dist/components/br-avatar.js +0 -6
- package/dist/components/br-avatar.js.map +0 -1
- package/dist/components/br-button.d.ts +0 -11
- package/dist/components/br-button.js +0 -6
- package/dist/components/br-button.js.map +0 -1
- package/dist/components/br-checkbox.d.ts +0 -11
- package/dist/components/br-checkbox.js +0 -6
- package/dist/components/br-checkbox.js.map +0 -1
- package/dist/components/br-checkgroup.d.ts +0 -11
- package/dist/components/br-checkgroup.js +0 -6
- package/dist/components/br-checkgroup.js.map +0 -1
- package/dist/components/br-dropdown.d.ts +0 -11
- package/dist/components/br-dropdown.js +0 -6
- package/dist/components/br-dropdown.js.map +0 -1
- package/dist/components/br-icon.d.ts +0 -11
- package/dist/components/br-icon.js +0 -6
- package/dist/components/br-icon.js.map +0 -1
- package/dist/components/br-input.d.ts +0 -11
- package/dist/components/br-input.js +0 -6
- package/dist/components/br-input.js.map +0 -1
- package/dist/components/br-item.d.ts +0 -11
- package/dist/components/br-item.js +0 -6
- package/dist/components/br-item.js.map +0 -1
- package/dist/components/br-list.d.ts +0 -11
- package/dist/components/br-list.js +0 -6
- package/dist/components/br-list.js.map +0 -1
- package/dist/components/br-loading.d.ts +0 -11
- package/dist/components/br-loading.js +0 -6
- package/dist/components/br-loading.js.map +0 -1
- package/dist/components/br-message.d.ts +0 -11
- package/dist/components/br-message.js +0 -6
- package/dist/components/br-message.js.map +0 -1
- package/dist/components/br-radio.d.ts +0 -11
- package/dist/components/br-radio.js +0 -6
- package/dist/components/br-radio.js.map +0 -1
- package/dist/components/br-select.d.ts +0 -11
- package/dist/components/br-select.js +0 -6
- package/dist/components/br-select.js.map +0 -1
- package/dist/components/br-switch.d.ts +0 -11
- package/dist/components/br-switch.js +0 -6
- package/dist/components/br-switch.js.map +0 -1
- package/dist/components/br-tag.d.ts +0 -11
- package/dist/components/br-tag.js +0 -6
- package/dist/components/br-tag.js.map +0 -1
- package/dist/components/br-textarea.d.ts +0 -11
- package/dist/components/br-textarea.js +0 -6
- package/dist/components/br-textarea.js.map +0 -1
- package/dist/components/br-upload.d.ts +0 -11
- package/dist/components/br-upload.js +0 -6
- package/dist/components/br-upload.js.map +0 -1
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -6
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-126ad66d.js +0 -17
- package/dist/components/p-126ad66d.js.map +0 -1
- package/dist/components/p-184a3074.js +0 -6
- package/dist/components/p-184a3074.js.map +0 -1
- package/dist/components/p-5cb170a7.js +0 -6
- package/dist/components/p-5cb170a7.js.map +0 -1
- package/dist/components/p-65616dbd.js +0 -7
- package/dist/components/p-65616dbd.js.map +0 -1
- package/dist/components/p-65c54cc8.js +0 -6
- package/dist/components/p-65c54cc8.js.map +0 -1
- package/dist/components/p-74a4eb38.js +0 -6
- package/dist/components/p-74a4eb38.js.map +0 -1
- package/dist/components/p-a6dcabb0.js +0 -6
- package/dist/components/p-a6dcabb0.js.map +0 -1
- package/dist/components/p-ace62688.js +0 -6
- package/dist/components/p-ace62688.js.map +0 -1
- package/dist/components/p-d5a8d30c.js +0 -6
- package/dist/components/p-d5a8d30c.js.map +0 -1
- package/dist/esm/app-globals-72548b13.js +0 -9
- package/dist/esm/app-globals-72548b13.js.map +0 -1
- package/dist/esm/br-avatar.entry.js +0 -73
- package/dist/esm/br-avatar.entry.js.map +0 -1
- package/dist/esm/br-button_2.entry.js +0 -2605
- package/dist/esm/br-button_2.entry.js.map +0 -1
- package/dist/esm/br-checkbox.entry.js +0 -72
- package/dist/esm/br-checkbox.entry.js.map +0 -1
- package/dist/esm/br-checkgroup.entry.js +0 -97
- package/dist/esm/br-checkgroup.entry.js.map +0 -1
- package/dist/esm/br-dropdown.entry.js +0 -96
- package/dist/esm/br-dropdown.entry.js.map +0 -1
- package/dist/esm/br-input_3.entry.js +0 -278
- package/dist/esm/br-input_3.entry.js.map +0 -1
- package/dist/esm/br-item.entry.js +0 -162
- package/dist/esm/br-item.entry.js.map +0 -1
- package/dist/esm/br-loading.entry.js +0 -39
- package/dist/esm/br-loading.entry.js.map +0 -1
- package/dist/esm/br-message.entry.js +0 -64
- package/dist/esm/br-message.entry.js.map +0 -1
- package/dist/esm/br-select.entry.js +0 -277
- package/dist/esm/br-select.entry.js.map +0 -1
- package/dist/esm/br-switch.entry.js +0 -80
- package/dist/esm/br-switch.entry.js.map +0 -1
- package/dist/esm/br-tag.entry.js +0 -84
- package/dist/esm/br-tag.entry.js.map +0 -1
- package/dist/esm/br-textarea.entry.js +0 -98
- package/dist/esm/br-textarea.entry.js.map +0 -1
- package/dist/esm/br-upload.entry.js +0 -164
- package/dist/esm/br-upload.entry.js.map +0 -1
- package/dist/esm/index-45af9b53.js +0 -2061
- package/dist/esm/index-45af9b53.js.map +0 -1
- package/dist/esm/index.js +0 -6
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/inherited-attributes-553a7c36.js +0 -105
- package/dist/esm/inherited-attributes-553a7c36.js.map +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/v4-c99c1585.js +0 -72
- package/dist/esm/v4-c99c1585.js.map +0 -1
- package/dist/esm/webcomponents.js +0 -47
- package/dist/esm/webcomponents.js.map +0 -1
- package/dist/esm-es5/app-globals-72548b13.js +0 -6
- package/dist/esm-es5/app-globals-72548b13.js.map +0 -1
- package/dist/esm-es5/br-avatar.entry.js +0 -6
- package/dist/esm-es5/br-avatar.entry.js.map +0 -1
- package/dist/esm-es5/br-button_2.entry.js +0 -17
- package/dist/esm-es5/br-button_2.entry.js.map +0 -1
- package/dist/esm-es5/br-checkbox.entry.js +0 -6
- package/dist/esm-es5/br-checkbox.entry.js.map +0 -1
- package/dist/esm-es5/br-checkgroup.entry.js +0 -6
- package/dist/esm-es5/br-checkgroup.entry.js.map +0 -1
- package/dist/esm-es5/br-dropdown.entry.js +0 -6
- package/dist/esm-es5/br-dropdown.entry.js.map +0 -1
- package/dist/esm-es5/br-input_3.entry.js +0 -6
- package/dist/esm-es5/br-input_3.entry.js.map +0 -1
- package/dist/esm-es5/br-item.entry.js +0 -6
- package/dist/esm-es5/br-item.entry.js.map +0 -1
- package/dist/esm-es5/br-loading.entry.js +0 -6
- package/dist/esm-es5/br-loading.entry.js.map +0 -1
- package/dist/esm-es5/br-message.entry.js +0 -6
- package/dist/esm-es5/br-message.entry.js.map +0 -1
- package/dist/esm-es5/br-select.entry.js +0 -6
- package/dist/esm-es5/br-select.entry.js.map +0 -1
- package/dist/esm-es5/br-switch.entry.js +0 -6
- package/dist/esm-es5/br-switch.entry.js.map +0 -1
- package/dist/esm-es5/br-tag.entry.js +0 -6
- package/dist/esm-es5/br-tag.entry.js.map +0 -1
- package/dist/esm-es5/br-textarea.entry.js +0 -6
- package/dist/esm-es5/br-textarea.entry.js.map +0 -1
- package/dist/esm-es5/br-upload.entry.js +0 -6
- package/dist/esm-es5/br-upload.entry.js.map +0 -1
- package/dist/esm-es5/index-45af9b53.js +0 -6
- package/dist/esm-es5/index-45af9b53.js.map +0 -1
- package/dist/esm-es5/index.js +0 -5
- package/dist/esm-es5/index.js.map +0 -1
- package/dist/esm-es5/inherited-attributes-553a7c36.js +0 -6
- package/dist/esm-es5/inherited-attributes-553a7c36.js.map +0 -1
- package/dist/esm-es5/loader.js +0 -6
- package/dist/esm-es5/loader.js.map +0 -1
- package/dist/esm-es5/v4-c99c1585.js +0 -6
- package/dist/esm-es5/v4-c99c1585.js.map +0 -1
- package/dist/esm-es5/webcomponents.js +0 -6
- package/dist/esm-es5/webcomponents.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/avatar/avatar.d.ts +0 -60
- package/dist/types/components/button/button.d.ts +0 -64
- package/dist/types/components/checkbox/checkbox.d.ts +0 -78
- package/dist/types/components/checkgroup/checkgroup.d.ts +0 -52
- package/dist/types/components/dropdown/dropdown.d.ts +0 -64
- package/dist/types/components/icon/icon.d.ts +0 -58
- package/dist/types/components/input/input.d.ts +0 -151
- package/dist/types/components/item/item.d.ts +0 -98
- package/dist/types/components/list/list.d.ts +0 -34
- package/dist/types/components/loading/loading.d.ts +0 -34
- package/dist/types/components/message/message.d.ts +0 -62
- package/dist/types/components/radio/radio.d.ts +0 -75
- package/dist/types/components/select/select.d.ts +0 -98
- package/dist/types/components/switch/switch.d.ts +0 -79
- package/dist/types/components/tag/tag.d.ts +0 -73
- package/dist/types/components/textarea/textarea.d.ts +0 -66
- package/dist/types/components/upload/upload.d.ts +0 -160
- package/dist/types/components.d.ts +0 -1847
- package/dist/types/index.d.ts +0 -10
- package/dist/types/stencil-public-runtime.d.ts +0 -1680
- package/dist/types/utils/inherited-attributes.d.ts +0 -20
- package/dist/types/utils/interfaces.d.ts +0 -3
- package/dist/types/utils/unique-id-generator.d.ts +0 -1
- package/dist/webcomponents/index.esm.js +0 -6
- package/dist/webcomponents/index.esm.js.map +0 -1
- package/dist/webcomponents/p-04a3d24e.system.entry.js +0 -6
- package/dist/webcomponents/p-04a3d24e.system.entry.js.map +0 -1
- package/dist/webcomponents/p-057dcb7c.system.entry.js +0 -6
- package/dist/webcomponents/p-057dcb7c.system.entry.js.map +0 -1
- package/dist/webcomponents/p-19b77f11.entry.js +0 -6
- package/dist/webcomponents/p-19b77f11.entry.js.map +0 -1
- package/dist/webcomponents/p-1acbc680.entry.js +0 -6
- package/dist/webcomponents/p-1acbc680.entry.js.map +0 -1
- package/dist/webcomponents/p-254a2b7c.js +0 -6
- package/dist/webcomponents/p-254a2b7c.js.map +0 -1
- package/dist/webcomponents/p-25d82c85.system.entry.js +0 -6
- package/dist/webcomponents/p-25d82c85.system.entry.js.map +0 -1
- package/dist/webcomponents/p-27b820ac.system.entry.js +0 -6
- package/dist/webcomponents/p-27b820ac.system.entry.js.map +0 -1
- package/dist/webcomponents/p-2b0430f4.entry.js +0 -6
- package/dist/webcomponents/p-2b0430f4.entry.js.map +0 -1
- package/dist/webcomponents/p-2ff5f694.system.entry.js +0 -6
- package/dist/webcomponents/p-2ff5f694.system.entry.js.map +0 -1
- package/dist/webcomponents/p-357e1105.system.entry.js +0 -6
- package/dist/webcomponents/p-357e1105.system.entry.js.map +0 -1
- package/dist/webcomponents/p-35f07e4b.entry.js +0 -6
- package/dist/webcomponents/p-35f07e4b.entry.js.map +0 -1
- package/dist/webcomponents/p-3e449bd5.system.entry.js +0 -6
- package/dist/webcomponents/p-3e449bd5.system.entry.js.map +0 -1
- package/dist/webcomponents/p-46a75920.system.js +0 -6
- package/dist/webcomponents/p-46a75920.system.js.map +0 -1
- package/dist/webcomponents/p-491cdd00.entry.js +0 -6
- package/dist/webcomponents/p-491cdd00.entry.js.map +0 -1
- package/dist/webcomponents/p-52e5bcdd.entry.js +0 -6
- package/dist/webcomponents/p-52e5bcdd.entry.js.map +0 -1
- package/dist/webcomponents/p-60879543.system.entry.js +0 -6
- package/dist/webcomponents/p-60879543.system.entry.js.map +0 -1
- package/dist/webcomponents/p-6bfb8eb6.entry.js +0 -6
- package/dist/webcomponents/p-6bfb8eb6.entry.js.map +0 -1
- package/dist/webcomponents/p-6d0d2846.system.js +0 -7
- package/dist/webcomponents/p-6d0d2846.system.js.map +0 -1
- package/dist/webcomponents/p-6e286eba.system.js +0 -6
- package/dist/webcomponents/p-6e286eba.system.js.map +0 -1
- package/dist/webcomponents/p-74a4eb38.js +0 -6
- package/dist/webcomponents/p-74a4eb38.js.map +0 -1
- package/dist/webcomponents/p-7c3554a7.system.entry.js +0 -17
- package/dist/webcomponents/p-7c3554a7.system.entry.js.map +0 -1
- package/dist/webcomponents/p-8fd11f97.system.entry.js +0 -6
- package/dist/webcomponents/p-8fd11f97.system.entry.js.map +0 -1
- package/dist/webcomponents/p-907fab5d.entry.js +0 -6
- package/dist/webcomponents/p-907fab5d.entry.js.map +0 -1
- package/dist/webcomponents/p-90e2e623.system.js +0 -6
- package/dist/webcomponents/p-90e2e623.system.js.map +0 -1
- package/dist/webcomponents/p-929db2b8.entry.js +0 -17
- package/dist/webcomponents/p-929db2b8.entry.js.map +0 -1
- package/dist/webcomponents/p-98e6f0c1.system.entry.js +0 -6
- package/dist/webcomponents/p-98e6f0c1.system.entry.js.map +0 -1
- package/dist/webcomponents/p-9b0f20d7.entry.js +0 -6
- package/dist/webcomponents/p-9b0f20d7.entry.js.map +0 -1
- package/dist/webcomponents/p-a71689a5.system.js +0 -6
- package/dist/webcomponents/p-a71689a5.system.js.map +0 -1
- package/dist/webcomponents/p-ad5a7b8b.system.entry.js +0 -6
- package/dist/webcomponents/p-ad5a7b8b.system.entry.js.map +0 -1
- package/dist/webcomponents/p-c3811f09.js +0 -7
- package/dist/webcomponents/p-c3811f09.js.map +0 -1
- package/dist/webcomponents/p-c6a9c8ac.entry.js +0 -6
- package/dist/webcomponents/p-c6a9c8ac.entry.js.map +0 -1
- package/dist/webcomponents/p-d46495d5.system.entry.js +0 -6
- package/dist/webcomponents/p-d46495d5.system.entry.js.map +0 -1
- package/dist/webcomponents/p-d5a8d30c.js +0 -6
- package/dist/webcomponents/p-d5a8d30c.js.map +0 -1
- package/dist/webcomponents/p-dc3d284a.entry.js +0 -6
- package/dist/webcomponents/p-dc3d284a.entry.js.map +0 -1
- package/dist/webcomponents/p-e751c991.system.js +0 -6
- package/dist/webcomponents/p-e751c991.system.js.map +0 -1
- package/dist/webcomponents/p-e98418a4.entry.js +0 -6
- package/dist/webcomponents/p-e98418a4.entry.js.map +0 -1
- package/dist/webcomponents/p-ef89bcc9.system.entry.js +0 -6
- package/dist/webcomponents/p-ef89bcc9.system.entry.js.map +0 -1
- package/dist/webcomponents/p-fc11eac9.entry.js +0 -6
- package/dist/webcomponents/p-fc11eac9.entry.js.map +0 -1
- package/dist/webcomponents/webcomponents.esm.js +0 -6
- package/dist/webcomponents/webcomponents.esm.js.map +0 -1
- package/dist/webcomponents/webcomponents.js +0 -127
- package/hydrate/index.d.ts +0 -242
- package/hydrate/index.js +0 -22909
- package/hydrate/index.mjs +0 -22901
- package/hydrate/package.json +0 -12
- package/loader/cdn.js +0 -6
- package/loader/index.cjs.js +0 -6
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -6
- package/loader/index.js +0 -7
- package/loader/package.json +0 -11
- package/vscode-data.json +0 -985
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
# Web Components GovBR-DS
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A biblioteca de Web Components do [GovBR-DS](https://gov.br/ds) está sendo desenvolvida utilizando o [Stencil](https://stenciljs.com/), um compilador que cria Web Components (Custom Elements). O Stencil incorpora os melhores conceitos dos frameworks mais populares em uma ferramenta simples de compilação. Para mais informações sobre o Stencil, visite o [site oficial](https://stenciljs.com/).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Demonstração 🚀
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Veja nossos componentes em funcionamento:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- [Versão 1.x](https://gov.br/ds/webcomponents/)
|
|
10
|
+
- [Versão 2.x (em desenvolvimento)](https://govbr-ds.gitlab.io/bibliotecas/wbc/govbr-ds-wbc/)
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
- [Produção](https://gov.br/ds/webcomponents/)
|
|
14
|
-
- [Desenvolvimento](https://govbr-ds.gitlab.io/bibliotecas/wbc/govbr-ds-wbc/)
|
|
15
|
-
|
|
16
|
-
## Tecnologias
|
|
12
|
+
## Tecnologias 💻
|
|
17
13
|
|
|
18
14
|
Esse projeto é desenvolvido usando:
|
|
19
15
|
|
|
@@ -60,36 +56,99 @@ Nossos componentes usam a [Fonte Rawline](https://www.cdnfonts.com/rawline.font/
|
|
|
60
56
|
|
|
61
57
|
Consulte a documentação no site do [GovBR-DS](https://www.gov.br/ds/como-comecar/instalacao 'GovBR-DS') para mais detalhes sobre como importá-los de seus respectivos CDNs.
|
|
62
58
|
|
|
63
|
-
## Instalação
|
|
59
|
+
## Instalação ⚙️
|
|
60
|
+
|
|
61
|
+
Instale o pacote abaixo:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npm install --save-dev @govbr-ds/webcomponents
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Scripts Disponíveis 📜
|
|
68
|
+
|
|
69
|
+
No arquivo `package.json` e `project.json`, você encontrará uma variedade de scripts úteis. Aqui está uma lista com a descrição de cada um:
|
|
64
70
|
|
|
65
|
-
|
|
71
|
+
```bash
|
|
72
|
+
nx start webcomponents
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Executa o site no localhost para desenvolvimento.
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
nx build webcomponents
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Compila o projeto para produção.
|
|
66
82
|
|
|
67
83
|
```bash
|
|
68
|
-
|
|
84
|
+
nx test:unit webcomponents
|
|
69
85
|
```
|
|
70
86
|
|
|
87
|
+
Executa os testes unitários.
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
nx lint:tsx webcomponents
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Executa lint nos códigos TypeScript.
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
nx lint:md webcomponents
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Executa lint nos arquivos markdown.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
nx lint:styles webcomponents
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Executa lint nos arquivos de estilos.
|
|
106
|
+
|
|
107
|
+
## Configuração 🛠️
|
|
108
|
+
|
|
109
|
+
Os passos para usar os Web Components GovBR-DS em uma aplicação podem variar dependendo da tecnologia usada. Abaixo estão os passos gerais para grande parte dos casos:
|
|
110
|
+
|
|
111
|
+
### Adicione os tokens do `@govbr-ds/core`
|
|
112
|
+
|
|
113
|
+
```ts
|
|
114
|
+
import "node_modules/@govbr-ds/core/dist/core-tokens.min.css"
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Adicione o `loader` do JS
|
|
118
|
+
|
|
71
119
|
Depois de instalada, importe a biblioteca de dentro da pasta *node_modules*:
|
|
72
120
|
|
|
73
121
|
```javascript
|
|
74
|
-
@import "node_modules/@govbr-ds/webcomponents/loader"
|
|
122
|
+
@import "node_modules/@govbr-ds/webcomponents/dist/loader"
|
|
75
123
|
```
|
|
76
124
|
|
|
77
|
-
|
|
125
|
+
Também é possível importar o JS da biblioteca usando um CDN (não mantido por nossa equipe):
|
|
78
126
|
|
|
79
127
|
```html
|
|
80
|
-
<script src="https://
|
|
128
|
+
<script src="https://cdn.jsdelivr.net/npm/@govbr-ds/webcomponents@<VERSÃO>/dist/loader/index.js"></>
|
|
129
|
+
```
|
|
81
130
|
|
|
82
|
-
|
|
131
|
+
**Importante**: Dependendo do seu projeto pode ser necessário importar diretamente o arquivo `/dist/webcomponents/webcomponents.esm.js`. Observe as necessidades do seu projeto e importe os arquivos de acordo.
|
|
132
|
+
|
|
133
|
+
### Use as tags dos custom elements
|
|
83
134
|
|
|
84
|
-
|
|
135
|
+
```html
|
|
136
|
+
<br-button>Click me!</br-button>
|
|
85
137
|
```
|
|
86
138
|
|
|
87
|
-
|
|
139
|
+
### Eventos
|
|
88
140
|
|
|
89
|
-
|
|
141
|
+
Você pode escutar eventos padrão, como clique e mouseover, da mesma forma que faria com elementos HTML normais. Muitos componentes também emitem eventos personalizados, que recomendamos fortemente utilizar. Esses eventos funcionam como os eventos padrão, mas possuem nomes específicos. Consulte a documentação de cada componente para obter detalhes sobre os nomes e dados dos eventos.
|
|
90
142
|
|
|
91
143
|
```html
|
|
92
|
-
|
|
144
|
+
<br-button>Label</br-button>
|
|
145
|
+
|
|
146
|
+
<script>
|
|
147
|
+
const button = document.querySelector('br-button');
|
|
148
|
+
button.addEventListener('click', (event) => {
|
|
149
|
+
console.log('Botão foi clicado');
|
|
150
|
+
});
|
|
151
|
+
</script>
|
|
93
152
|
```
|
|
94
153
|
|
|
95
154
|
## VSCODE
|
|
@@ -193,90 +252,40 @@ webcomponents/
|
|
|
193
252
|
|
|
194
253
|
- **tsconfig.json**: Arquivo de configuração do TypeScript que especifica as opções do compilador TypeScript para o projeto.
|
|
195
254
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
- `build`: Gera um build do projeto e gera as documentações atualizadas.
|
|
199
|
-
- `dev`: Executa o projeto em um servidor de desenvolvimento.
|
|
200
|
-
|
|
201
|
-
### Fluxo de Trabalho
|
|
202
|
-
|
|
203
|
-
1. **Criar Componente**: Adicione um novo componente no diretório `src/components/` e crie os arquivos necessários.
|
|
204
|
-
1. **Escrever Lógica**: Crie a lógica do componente.
|
|
205
|
-
1. Implemente a lógica do componente no arquivo `.tsx`.
|
|
206
|
-
1. Importe e sobrescreva o CSS necessário no arquivo `scss`.
|
|
207
|
-
1. Adicione informações relevantes no arquivo `readme.md`.
|
|
208
|
-
1. Coloque os exemplos de uso do componente dos arquivos da pasta `pages`.
|
|
209
|
-
1. Inclua o componente e seus exemplos no array de componentes e exemplos dentro do arquivo `src/index.html`.
|
|
210
|
-
1. **Pré-visualizar**: Use o script `dev` para visualizar suas alterações localmente.
|
|
211
|
-
1. **Testar Componentes**: Escreva e execute testes unitários e E2E para garantir a qualidade do componente.
|
|
212
|
-
1. **Construir**: Use o script `build` para testar se o processo de compilação está funcionando corretamente.
|
|
213
|
-
|
|
214
|
-
É possível usar o `plop`para criar vários arquivos automaticamente para poupar tempo. Consulte a documentação do monorepo para mais detalhes.
|
|
215
|
-
|
|
216
|
-
#### Componentes
|
|
217
|
-
|
|
218
|
-
Observe que os componentes **devem** seguir um padrão de escrita. Além das nomenclaturas (descritas na Wiki), devemos seguir os padrões de comentários/descrições, de validações e escrita geral dos componentes.
|
|
219
|
-
|
|
220
|
-
Por exemplo, sempre use os mesmos comentários para os métodos do ciclo de vida dos componentes uma vez que eles são os mesmos para todos os componentes.
|
|
221
|
-
|
|
222
|
-
#### Exemplos
|
|
223
|
-
|
|
224
|
-
Os exemplos também tem modelos de escrita para ficarem iguais. Observe como os exemplos anteriores foram escritos e usem como base para os novos.
|
|
225
|
-
|
|
226
|
-
## Regras de Versionamento e Releases
|
|
227
|
-
|
|
228
|
-
Utilizamos o **Semantic Release** para gerar versões automaticamente, baseando-nos nos tipos, escopos e mensagens dos commits para determinar o tipo de versão que será publicada (major, minor, ou patch). No entanto, em alguns casos, é necessário que certos commits sejam ignorados na avaliação para o lançamento de uma nova versão. Para esses casos, utilize os tipos e/ou escopos listados abaixo.
|
|
229
|
-
|
|
230
|
-
### Tipos de Commits que Não Geram Releases
|
|
231
|
-
|
|
232
|
-
Os seguintes tipos de commit são ignorados na criação de novas versões, pois representam alterações internas ou trabalhos em progresso que não afetam diretamente o comportamento externo do projeto:
|
|
233
|
-
|
|
234
|
-
- **`build`**: Atualizações no sistema de build ou nas dependências, sem impacto no código final.
|
|
235
|
-
- **`chore`**: Tarefas gerais de manutenção que não impactam o produto final ou sua funcionalidade.
|
|
236
|
-
- **`ci`**: Ajustes no pipeline de integração contínua (CI), sem alteração direta no comportamento do produto.
|
|
237
|
-
- **`test`**: Criação ou modificação de testes, sem alterações nas funcionalidades existentes.
|
|
238
|
-
- **`wip`**: Trabalhos em progresso, indicados como incompletos ou ainda não prontos para produção.
|
|
239
|
-
|
|
240
|
-
### Escopos de Commits que Não Geram Releases
|
|
241
|
-
|
|
242
|
-
Em alguns casos, o escopo das alterações deixa claro que o commit não deve gerar uma nova versão, mesmo que o tipo de commit seja relevante. Para isso, os escopos abaixo são configurados para ignorar essas alterações no processo de versionamento:
|
|
243
|
-
|
|
244
|
-
- **`site`**: Modificações no site de documentação, que não alteram o código do produto.
|
|
245
|
-
- **`monorepo`**: Alterações feitas especificamente no repositório monorepo, sem impacto direto no projeto ou na biblioteca de componentes.
|
|
246
|
-
- **`no-release`**: Qualquer commit marcado explicitamente para não gerar uma nova versão.
|
|
247
|
-
|
|
248
|
-
## Documentações Complementares
|
|
255
|
+
## Documentações Complementares 📚
|
|
249
256
|
|
|
250
257
|
Consulte a seção sobre Web Componente na nossa [Wiki](https://gov.br/ds/wiki/desenvolvimento/web-components) para obter mais informações sobre esse projeto.
|
|
251
258
|
|
|
252
259
|
Para saber mais detalhes sobre a especificação Web Components sugerimos que consulte o [MDN](https://developer.mozilla.org/pt-BR/docs/Web/Web_Components 'Web Components | MDN').
|
|
253
260
|
|
|
254
|
-
|
|
261
|
+
## Contribuindo 🤝
|
|
255
262
|
|
|
256
|
-
|
|
263
|
+
Antes de abrir um Merge Request, por favor, leve em consideração as seguintes informações:
|
|
257
264
|
|
|
258
|
-
|
|
265
|
+
- Este é um projeto open-source e contribuições são bem-vindas.
|
|
266
|
+
- Para facilitar a aprovação da sua contribuição, use um título claro e explicativo para o MR, e siga os padrões estabelecidos em nossa [wiki](https://gov.br/ds/wiki/ 'Wiki').
|
|
267
|
+
- Quer contribuir? Consulte o nosso guia [como contribuir](https://gov.br/ds/wiki/comunidade/contribuindo-com-o-ds/ 'Como contribuir?').
|
|
259
268
|
|
|
260
|
-
|
|
269
|
+
## Reportar Bugs/Problemas ou Sugestões 🐛
|
|
261
270
|
|
|
262
|
-
|
|
271
|
+
Para reportar problemas ou sugerir melhorias, abra uma [issue](https://gitlab.com/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/-/issues/new). Utilize o modelo adequado e forneça o máximo de detalhes possível.
|
|
263
272
|
|
|
264
|
-
|
|
273
|
+
Nos comprometemos a responder a todas as issues.
|
|
265
274
|
|
|
266
|
-
|
|
275
|
+
## Commits 📝
|
|
267
276
|
|
|
268
|
-
|
|
269
|
-
- Web Components [https://gov.br/ds/webcomponents](https://gov.br/ds/webcomponents)
|
|
270
|
-
- Usando nosso canal no discord [https://discord.gg/U5GwPfqhUP](https://discord.gg/U5GwPfqhUP)
|
|
277
|
+
Este projeto segue um padrão para branches e commits. Consulte a documentação na nossa [wiki](https://gov.br/ds/wiki/ 'Wiki') para aprender mais sobre esses padrões.
|
|
271
278
|
|
|
272
|
-
|
|
279
|
+
## Precisa de ajuda? 🆘
|
|
273
280
|
|
|
274
|
-
|
|
281
|
+
Por favor, **não** crie issues para perguntas gerais.
|
|
275
282
|
|
|
276
|
-
|
|
283
|
+
Use os canais abaixo para tirar suas dúvidas:
|
|
277
284
|
|
|
278
|
-
|
|
285
|
+
- Site do GovBR-DS [http://gov.br/ds](http://gov.br/ds)
|
|
286
|
+
- Web Components [https://gov.br/ds/webcomponents](https://gov.br/ds/webcomponents)
|
|
287
|
+
- Canal no Discord [https://discord.gg/U5GwPfqhUP](https://discord.gg/U5GwPfqhUP)
|
|
279
288
|
|
|
280
|
-
##
|
|
289
|
+
## Créditos 🎉
|
|
281
290
|
|
|
282
|
-
|
|
291
|
+
Os Web Components do [GovBR-DS](https://gov.br/ds/ 'GovBR-DS') foram desenvolvidos pelo [SERPRO](https://www.serpro.gov.br/ 'SERPRO | Serviço Federal de Processamento de Dados') em colaboração com a comunidade.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@govbr-ds/webcomponents",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.23",
|
|
4
4
|
"description": "Projeto de Web Components baseado no GovBR-DS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
@@ -17,29 +17,13 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"author": "SERPRO (http://serpro.gov.br/)",
|
|
20
|
-
"main": "dist/index.cjs.js",
|
|
21
|
-
"unpkg": "dist/webcomponents/webcomponents.esm.js",
|
|
22
|
-
"module": "dist/index.js",
|
|
23
|
-
"types": "dist/types/index.d.ts",
|
|
20
|
+
"main": "./dist/index.cjs.js",
|
|
21
|
+
"unpkg": "./dist/webcomponents/webcomponents.esm.js",
|
|
22
|
+
"module": "./dist/index.js",
|
|
23
|
+
"types": "./dist/types/index.d.ts",
|
|
24
24
|
"files": [
|
|
25
|
-
"dist/"
|
|
26
|
-
"loader/",
|
|
27
|
-
"hydrate/",
|
|
28
|
-
"vscode-data.json"
|
|
25
|
+
"dist/"
|
|
29
26
|
],
|
|
30
|
-
"scripts": {
|
|
31
|
-
"build": "run-s build:prod lint:md",
|
|
32
|
-
"build:prod": "stencil build --prod",
|
|
33
|
-
"clear": "rm -rf .stencil dist hydrate loader www vscode-data.json",
|
|
34
|
-
"dev": "stencil build --dev --watch --serve",
|
|
35
|
-
"generate": "stencil generate",
|
|
36
|
-
"lint:md": "cross-env markdownlint -d -f '**/*.md'",
|
|
37
|
-
"lint:tsx": "eslint src/**/*{.ts,.tsx} --fix",
|
|
38
|
-
"test:e2e": "npx playwright test",
|
|
39
|
-
"test:e2e:ui": "npx playwright test --ui",
|
|
40
|
-
"test:unit": "stencil test --spec -- --collectCoverage",
|
|
41
|
-
"test:watch": "stencil test --spec --e2e --watchAll"
|
|
42
|
-
},
|
|
43
27
|
"lint-staged": {
|
|
44
28
|
"*.md": [
|
|
45
29
|
"cross-env markdownlint -d -f -c .markdownlint.yml"
|
|
@@ -48,32 +32,12 @@
|
|
|
48
32
|
"eslint --fix"
|
|
49
33
|
]
|
|
50
34
|
},
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"@stencil/react-output-target": "^0.7.4",
|
|
61
|
-
"@stencil/sass": "^3.0.12",
|
|
62
|
-
"@stencil/vue-output-target": "0.8.9",
|
|
63
|
-
"@types/autoprefixer": "^10.2.4",
|
|
64
|
-
"@types/jest": "^29.5.14",
|
|
65
|
-
"@types/node": "^22.9.0",
|
|
66
|
-
"autoprefixer": "^10.4.20",
|
|
67
|
-
"iconify-icon": "^2.1.0",
|
|
68
|
-
"jest": "^29.7.0",
|
|
69
|
-
"jest-cli": "^29.7.0",
|
|
70
|
-
"puppeteer": "^23.7.0"
|
|
71
|
-
},
|
|
72
|
-
"publishConfig": {
|
|
73
|
-
"access": "public"
|
|
74
|
-
},
|
|
75
|
-
"collection": "dist/collection/collection-manifest.json",
|
|
76
|
-
"collection:main": "dist/collection/index.js",
|
|
77
|
-
"es2015": "dist/esm-es5/loader.js",
|
|
78
|
-
"es2017": "dist/esm/loader.js"
|
|
79
|
-
}
|
|
35
|
+
"collection": "./dist/collection/collection-manifest.json",
|
|
36
|
+
"collection:main": "./dist/collection/index.js",
|
|
37
|
+
"es2015": "./dist/esm-es5/loader.js",
|
|
38
|
+
"es2017": "./dist/esm/loader.js",
|
|
39
|
+
"scripts": {
|
|
40
|
+
"test:e2e": "npx playwright test",
|
|
41
|
+
"test:e2e:ui": "npx playwright test --ui"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"app-globals-77a217c6.js","mappings":";;;;;;AAAY,MAAC,aAAa,GAAG,MAAM;;;;","names":[],"sources":["@stencil/core/internal/app-globals"],"sourcesContent":["export const globalScripts = () => {};\n"],"version":3}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Construído com @govbr-ds/webcomponents
|
|
3
|
-
* Padrão Digital de Governo.
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
-
|
|
9
|
-
const index = require('./index-4fc1aab1.js');
|
|
10
|
-
const inheritedAttributes = require('./inherited-attributes-16f7d388.js');
|
|
11
|
-
|
|
12
|
-
const avatarCss = "*,*::before,*::after{-webkit-box-sizing:border-box;box-sizing:border-box}html{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}body{margin:0}a{background-color:transparent}strong{font-weight:bolder}small{font-size:80%}img{border-style:none}button,input,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;-moz-appearance:button;appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}[hidden]{display:none}.d-flex{display:-ms-flexbox !important;display:flex !important}.align-items-center{-ms-flex-align:center !important;align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter) * 0.5);padding-right:calc(var(--grid-gutter) * 0.5);width:100%}.col{-ms-flex:1 0 0%;flex:1 0 0%;min-width:8.3333333333%}.col-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.container{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:calc(var(--grid-gutter) * -0.5);margin-right:calc(var(--grid-gutter) * -0.5)}@media (min-width: 576px){.container{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}}@media (min-width: 992px){.container{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}}@media (min-width: 1600px){.container{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.mt-1{margin-top:var(--spacing-scale-half) !important}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.mr-2{margin-right:var(--spacing-scale-base) !important}.mr-n2{margin-right:calc(var(--spacing-scale-base) * -1) !important}.ml-2{margin-left:var(--spacing-scale-base) !important}.mb-3{margin-bottom:var(--spacing-scale-2x) !important}.mr-auto{margin-right:auto !important}.pt-half{padding-top:var(--spacing-scale-half) !important}.py-3{padding-bottom:var(--spacing-scale-2x) !important;padding-top:var(--spacing-scale-2x) !important}.py-4{padding-bottom:var(--spacing-scale-3x) !important;padding-top:var(--spacing-scale-3x) !important}body{--bg-color:var(--background);--bg-color-rgb:var(--background-rgb);--bg-color-hsl:var(--background-hsl);--font-size:var(--font-size-scale-base);--font-weight:var(--font-weight-regular);--link-color:var(--interactive);--link-color-rgb:var(--interactive-rgb);--link-color-hsl:var(--interactive-hsl);--line-height:var(--font-line-height-medium);--text-color:var(--color);--text-color-rgb:var(--color-rgb);--text-color-hsl:var(--color-hsl);background:var(--bg-color);color:var(--text-color);font-family:var(--font-family-base);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height)}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half);color:var(--interactive);text-decoration:none}a:focus{outline:none}a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(var(--interactive-rgb), var(--hover))), to(rgba(var(--interactive-rgb), var(--hover))));background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(var(--interactive-rgb), var(--pressed))), to(rgba(var(--interactive-rgb), var(--pressed))));background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}button{cursor:pointer}img{max-width:100%;vertical-align:middle}ul{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}::-moz-placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}::-webkit-input-placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}:-ms-input-placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}::-ms-input-placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}.text-pure-0{color:var(--pure-0) !important}.text-primary-default{color:var(--color-primary-default) !important}.bg-support-01{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark);background:var(--color-support-01) !important}.text-nowrap{white-space:nowrap !important}.text-base{font-size:var(--font-size-scale-base) !important}.highlight{background:var(--status-highlight-background) -webkit-gradient(linear, left top, left bottom, from(var(--status-highlight-overlay)), to(var(--status-highlight-overlay)));background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{-webkit-box-shadow:var(--surface-shadow-sm);box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.br-avatar{--avatar-size:var(--avatar-small);--avatar-icon-size:var(--avatar-icon-small);--avatar-text-size:var(--avatar-text-small);--avatar-small:40px;--avatar-medium:100px;--avatar-large:160px;--avatar-icon-small:var(--icon-size-2x);--avatar-icon-medium:var(--icon-size-5x);--avatar-icon-large:var(--icon-size-8x);--avatar-text-small:var(--font-size-scale-up-03);--avatar-text-medium:var(--font-size-scale-up-07);--avatar-text-large:var(--font-size-scale-up-11);-ms-flex-align:center;align-items:center;background-color:transparent;border:0;display:-ms-inline-flexbox;display:inline-flex;font-size:var(--avatar-text-size);font-weight:var(--font-weight-bold);-ms-flex-pack:center;justify-content:center;line-height:var(--avatar-size);vertical-align:middle}.br-avatar .content{-ms-flex-align:center;align-items:center;background-color:var(--blue-10);border-radius:50%;color:var(--blue-warm-20);display:-ms-inline-flexbox;display:inline-flex;font-size:var(--avatar-text-size);height:var(--avatar-size);-ms-flex-pack:center;justify-content:center;overflow:hidden;text-align:center;text-transform:uppercase;vertical-align:inherit;width:var(--avatar-size)}.br-avatar .content img{height:var(--avatar-size);vertical-align:inherit;width:var(--avatar-size)}.br-avatar.small,.br-avatar[small]{--avatar-size:var(--avatar-small);--avatar-icon-size:var(--avatar-icon-small);--avatar-text-size:var(--avatar-text-small)}.br-avatar.is-medium,.br-avatar.medium,.br-avatar[medium]{--avatar-size:var(--avatar-medium);--avatar-icon-size:var(--avatar-icon-medium);--avatar-text-size:var(--avatar-text-medium)}.br-avatar.large,.br-avatar[large]{--avatar-size:var(--avatar-large);--avatar-icon-size:var(--avatar-icon-large);--avatar-text-size:var(--avatar-text-large)}.br-avatar[data-toggle=dropdown]:focus{outline:none}.br-avatar[data-toggle=dropdown]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}.br-avatar .image{-ms-flex-align:center;align-items:center;background-color:var(--blue-10);border-radius:50%;color:var(--blue-warm-20);display:-ms-inline-flexbox;display:inline-flex;font-size:var(--avatar-text-size);height:var(--avatar-size);-ms-flex-pack:center;justify-content:center;overflow:hidden;text-align:center;text-transform:uppercase;vertical-align:inherit;width:var(--avatar-size)}.br-avatar .image img{height:var(--avatar-size);vertical-align:inherit;width:var(--avatar-size)}:host{display:block}";
|
|
13
|
-
const BrAvatarStyle0 = avatarCss;
|
|
14
|
-
|
|
15
|
-
const Avatar = class {
|
|
16
|
-
constructor(hostRef) {
|
|
17
|
-
index.registerInstance(this, hostRef);
|
|
18
|
-
this.iconSizes = {
|
|
19
|
-
small: { height: '32px', width: '40px' },
|
|
20
|
-
medium: { height: '80px', width: '88px' },
|
|
21
|
-
large: { height: '128px', width: '136px' },
|
|
22
|
-
};
|
|
23
|
-
this.iconMarginTops = {
|
|
24
|
-
small: '0.7em',
|
|
25
|
-
medium: '1em',
|
|
26
|
-
large: '0.62em',
|
|
27
|
-
};
|
|
28
|
-
this.inheritedAttributes = {};
|
|
29
|
-
this.density = 'medium';
|
|
30
|
-
this.image = undefined;
|
|
31
|
-
this.imageAlt = 'Imagem do avatar';
|
|
32
|
-
this.isIconic = false;
|
|
33
|
-
this.text = undefined;
|
|
34
|
-
this.iconWidth = undefined;
|
|
35
|
-
this.iconHeight = undefined;
|
|
36
|
-
this.marginTop = undefined;
|
|
37
|
-
}
|
|
38
|
-
componentWillLoad() {
|
|
39
|
-
this.inheritedAttributes = inheritedAttributes.inheritAriaAttributes(this.el);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Gera um mapa de classes CSS com base nas propriedades do componente.
|
|
43
|
-
* O mapa de classes determina quais classes CSS devem ser aplicadas
|
|
44
|
-
* ao elemento host do componente, ajustando sua aparência.
|
|
45
|
-
*
|
|
46
|
-
* @returns {CssClassMap} Objeto contendo as classes CSS aplicadas.
|
|
47
|
-
*/
|
|
48
|
-
getCssClassMap() {
|
|
49
|
-
return {
|
|
50
|
-
'br-avatar': true,
|
|
51
|
-
small: this.density === 'small',
|
|
52
|
-
medium: this.density === 'medium',
|
|
53
|
-
large: this.density === 'large',
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
renderAvatar() {
|
|
57
|
-
var _a, _b, _c, _d, _e;
|
|
58
|
-
if (((_a = this.text) === null || _a === void 0 ? void 0 : _a.trim().length) > 0) {
|
|
59
|
-
return (index.h("span", { class: "content bg-support-01 text-pure-0", title: this.text }, this.text[0].toUpperCase()));
|
|
60
|
-
}
|
|
61
|
-
if (((_b = this.image) === null || _b === void 0 ? void 0 : _b.trim().length) > 0) {
|
|
62
|
-
return (index.h("span", { class: "content", title: this.imageAlt || this.text }, index.h("img", { src: this.image, alt: this.imageAlt, loading: "lazy" })));
|
|
63
|
-
}
|
|
64
|
-
if (this.isIconic) {
|
|
65
|
-
return (index.h("span", { class: "content", title: this.text }, index.h("br-icon", { "icon-name": "fa-solid:user", height: ((_c = this.iconHeight) === null || _c === void 0 ? void 0 : _c.length) > 0 ? this.iconHeight : this.iconSizes[this.density].height, width: ((_d = this.iconWidth) === null || _d === void 0 ? void 0 : _d.length) > 0 ? this.iconWidth : this.iconSizes[this.density].width, "aria-hidden": "true", style: { 'margin-top': ((_e = this.marginTop) === null || _e === void 0 ? void 0 : _e.length) > 0 ? this.marginTop : this.iconMarginTops[this.density] } })));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
render() {
|
|
69
|
-
return (index.h(index.Host, { key: '8e7d5a109467811e371dcfa56214f079b82970bb' }, index.h("span", Object.assign({ key: '63036c324a6be24469e6453a40af31e684973c1a', class: this.getCssClassMap() }, this.inheritedAttributes), this.renderAvatar())));
|
|
70
|
-
}
|
|
71
|
-
get el() { return index.getElement(this); }
|
|
72
|
-
};
|
|
73
|
-
Avatar.style = BrAvatarStyle0;
|
|
74
|
-
|
|
75
|
-
exports.br_avatar = Avatar;
|
|
76
|
-
|
|
77
|
-
//# sourceMappingURL=br-avatar.cjs.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"br-avatar.entry.cjs.js","mappings":";;;;;;;;;;;AAAA,MAAM,SAAS,GAAG,o7XAAo7X,CAAC;AACv8X,uBAAe,SAAS;;MCWX,MAAM;;;QAuEA,cAAS,GAAG;YAC3B,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;YACxC,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;YACzC,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;SAC3C,CAAA;QAEgB,mBAAc,GAAG;YAChC,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,QAAQ;SAChB,CAAA;QAEO,wBAAmB,GAAe,EAAE,CAAA;uBAzEI,QAAQ;;wBAYrC,kBAAkB;wBAMT,KAAK;;;;;;IAQjC,iBAAiB;QACf,IAAI,CAAC,mBAAmB,GAAGA,yCAAqB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;KAC1D;;;;;;;;IAwBO,cAAc;QACpB,OAAO;YACL,WAAW,EAAE,IAAI;YACjB,KAAK,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO;YAC/B,MAAM,EAAE,IAAI,CAAC,OAAO,KAAK,QAAQ;YACjC,KAAK,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO;SAChC,CAAA;KACF;IAgBO,YAAY;;QAClB,IAAI,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,IAAI,GAAG,MAAM,IAAG,CAAC,EAAE;YAChC,QACEC,kBAAM,KAAK,EAAC,mCAAmC,EAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAC7D,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CACtB,EACR;SACF;QAED,IAAI,CAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,IAAI,GAAG,MAAM,IAAG,CAAC,EAAE;YACjC,QACEA,kBAAM,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,IACrDA,iBAAK,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,GAAG,CACtD,EACR;SACF;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,QACEA,kBAAM,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IACpCA,kCACY,eAAe,EACzB,MAAM,EAAE,CAAA,MAAA,IAAI,CAAC,UAAU,0CAAE,MAAM,IAAG,CAAC,GAAG,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,EAC3F,KAAK,EAAE,CAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,MAAM,IAAG,CAAC,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,iBAC3E,MAAM,EAClB,KAAK,EAAE,EAAE,YAAY,EAAE,CAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,MAAM,IAAG,CAAC,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,GAC/F,CACN,EACR;SACF;KACF;IAED,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,iFAAM,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,IAAM,IAAI,CAAC,mBAAmB,GAC7D,IAAI,CAAC,YAAY,EAAE,CACf,CACF,EACR;KACF;;;;;;;","names":["inheritAriaAttributes","h","Host"],"sources":["src/components/avatar/avatar.scss?tag=br-avatar&encapsulation=shadow","src/components/avatar/avatar.tsx"],"sourcesContent":["@import \"~@govbr-ds/core/src/components/avatar/avatar\";\n\n:host {\n display: block;\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { Attributes, inheritAriaAttributes } from '../../utils/inherited-attributes'\nimport { CssClassMap } from '../../utils/interfaces'\n\n/**\n * Para uma descrição detalhada, consulte a [documentação do GovBR-DS](https://www.gov.br/ds/components/avatar?tab=designer).\n */\n@Component({\n tag: 'br-avatar',\n styleUrl: 'avatar.scss',\n shadow: true,\n})\nexport class Avatar {\n /**\n * Referência ao elemento host do componente.\n * Utilize esta propriedade para acessar e manipular o elemento do DOM associado ao componente.\n */\n @Element() el: HTMLBrAvatarElement\n\n /**\n * Ajusta a densidade, alterando o espaçamento interno para um visual mais compacto ou mais expandido.\n */\n @Prop() density: 'small' | 'medium' | 'large' = 'medium'\n\n /**\n * URL da imagem a ser exibida no avatar do tipo 'fotográfico'.\n * Deve ser uma URL válida que aponta para a imagem desejada.\n */\n @Prop() image: string\n\n /**\n * Texto alternativo (alt) associado à imagem do avatar. Essencial para acessibilidade e SEO.\n * Deve descrever de forma clara e concisa o conteúdo da imagem, por exemplo: \"Foto de perfil de João Silva\".\n */\n @Prop() imageAlt = 'Imagem do avatar'\n\n /**\n * Indica se o avatar deve ser exibido como um ícone em vez de uma imagem fotográfica.\n * Se definido como verdadeiro, o avatar será exibido como um ícone.\n */\n @Prop() isIconic: boolean = false\n\n /**\n * Texto exibido no avatar do tipo 'letra'.\n * Esse texto será mostrado em vez de uma imagem e pode ser usado para representar iniciais ou outras informações textuais.\n */\n @Prop() text: string\n\n componentWillLoad() {\n this.inheritedAttributes = inheritAriaAttributes(this.el)\n }\n\n /**\n * Largura do ícone no avatar do tipo icônico\n * */\n @Prop() iconWidth: string\n\n /**\n * Altura do ícone no avatar do tipo icônico\n */\n @Prop() iconHeight: string\n\n /**\n * Ajuste para a margem de cima do ícone no avatar do tipo icônico\n */\n @Prop() marginTop: string\n\n /**\n * Gera um mapa de classes CSS com base nas propriedades do componente.\n * O mapa de classes determina quais classes CSS devem ser aplicadas\n * ao elemento host do componente, ajustando sua aparência.\n *\n * @returns {CssClassMap} Objeto contendo as classes CSS aplicadas.\n */\n private getCssClassMap(): CssClassMap {\n return {\n 'br-avatar': true,\n small: this.density === 'small',\n medium: this.density === 'medium',\n large: this.density === 'large',\n }\n }\n\n private readonly iconSizes = {\n small: { height: '32px', width: '40px' },\n medium: { height: '80px', width: '88px' },\n large: { height: '128px', width: '136px' },\n }\n\n private readonly iconMarginTops = {\n small: '0.7em',\n medium: '1em',\n large: '0.62em',\n }\n\n private inheritedAttributes: Attributes = {}\n\n private renderAvatar() {\n if (this.text?.trim().length > 0) {\n return (\n <span class=\"content bg-support-01 text-pure-0\" title={this.text}>\n {this.text[0].toUpperCase()}\n </span>\n )\n }\n\n if (this.image?.trim().length > 0) {\n return (\n <span class=\"content\" title={this.imageAlt || this.text}>\n <img src={this.image} alt={this.imageAlt} loading=\"lazy\" />\n </span>\n )\n }\n\n if (this.isIconic) {\n return (\n <span class=\"content\" title={this.text}>\n <br-icon\n icon-name=\"fa-solid:user\"\n height={this.iconHeight?.length > 0 ? this.iconHeight : this.iconSizes[this.density].height}\n width={this.iconWidth?.length > 0 ? this.iconWidth : this.iconSizes[this.density].width}\n aria-hidden=\"true\"\n style={{ 'margin-top': this.marginTop?.length > 0 ? this.marginTop : this.iconMarginTops[this.density] }}\n ></br-icon>\n </span>\n )\n }\n }\n\n render() {\n return (\n <Host>\n <span class={this.getCssClassMap()} {...this.inheritedAttributes}>\n {this.renderAvatar()}\n </span>\n </Host>\n )\n }\n}\n"],"version":3}
|