placer-toolkit 0.5.1
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.md +9 -0
- package/README.md +66 -0
- package/dist/animations/attention_seekers/bounce.d.ts +16 -0
- package/dist/animations/attention_seekers/bounce.js +45 -0
- package/dist/animations/attention_seekers/flash.d.ts +4 -0
- package/dist/animations/attention_seekers/flash.js +9 -0
- package/dist/animations/attention_seekers/headShake.d.ts +4 -0
- package/dist/animations/attention_seekers/headShake.js +10 -0
- package/dist/animations/attention_seekers/heartBeat.d.ts +4 -0
- package/dist/animations/attention_seekers/heartBeat.js +9 -0
- package/dist/animations/attention_seekers/jello.d.ts +4 -0
- package/dist/animations/attention_seekers/jello.js +17 -0
- package/dist/animations/attention_seekers/pulse.d.ts +4 -0
- package/dist/animations/attention_seekers/pulse.js +7 -0
- package/dist/animations/attention_seekers/rubberBand.d.ts +4 -0
- package/dist/animations/attention_seekers/rubberBand.js +11 -0
- package/dist/animations/attention_seekers/shake.d.ts +4 -0
- package/dist/animations/attention_seekers/shake.js +15 -0
- package/dist/animations/attention_seekers/shakeX.d.ts +4 -0
- package/dist/animations/attention_seekers/shakeX.js +15 -0
- package/dist/animations/attention_seekers/shakeY.d.ts +4 -0
- package/dist/animations/attention_seekers/shakeY.js +15 -0
- package/dist/animations/attention_seekers/swing.d.ts +4 -0
- package/dist/animations/attention_seekers/swing.js +9 -0
- package/dist/animations/attention_seekers/tada.d.ts +4 -0
- package/dist/animations/attention_seekers/tada.js +42 -0
- package/dist/animations/attention_seekers/wobble.d.ts +4 -0
- package/dist/animations/attention_seekers/wobble.js +26 -0
- package/dist/animations/back_entrances/backInDown.d.ts +5 -0
- package/dist/animations/back_entrances/backInDown.js +7 -0
- package/dist/animations/back_entrances/backInLeft.d.ts +5 -0
- package/dist/animations/back_entrances/backInLeft.js +7 -0
- package/dist/animations/back_entrances/backInRight.d.ts +5 -0
- package/dist/animations/back_entrances/backInRight.js +7 -0
- package/dist/animations/back_entrances/backInUp.d.ts +5 -0
- package/dist/animations/back_entrances/backInUp.js +7 -0
- package/dist/animations/back_exits/backOutDown.d.ts +5 -0
- package/dist/animations/back_exits/backOutDown.js +7 -0
- package/dist/animations/back_exits/backOutLeft.d.ts +5 -0
- package/dist/animations/back_exits/backOutLeft.js +7 -0
- package/dist/animations/back_exits/backOutRight.d.ts +5 -0
- package/dist/animations/back_exits/backOutRight.js +7 -0
- package/dist/animations/back_exits/backOutUp.d.ts +5 -0
- package/dist/animations/back_exits/backOutUp.js +7 -0
- package/dist/animations/bouncing_entrances/bounceIn.d.ts +16 -0
- package/dist/animations/bouncing_entrances/bounceIn.js +16 -0
- package/dist/animations/bouncing_entrances/bounceInDown.d.ts +16 -0
- package/dist/animations/bouncing_entrances/bounceInDown.js +22 -0
- package/dist/animations/bouncing_entrances/bounceInLeft.d.ts +16 -0
- package/dist/animations/bouncing_entrances/bounceInLeft.js +22 -0
- package/dist/animations/bouncing_entrances/bounceInRight.d.ts +16 -0
- package/dist/animations/bouncing_entrances/bounceInRight.js +22 -0
- package/dist/animations/bouncing_entrances/bounceInUp.d.ts +16 -0
- package/dist/animations/bouncing_entrances/bounceInUp.js +22 -0
- package/dist/animations/bouncing_exits/bounceOut.d.ts +9 -0
- package/dist/animations/bouncing_exits/bounceOut.js +8 -0
- package/dist/animations/bouncing_exits/bounceOutDown.d.ts +9 -0
- package/dist/animations/bouncing_exits/bounceOutDown.js +20 -0
- package/dist/animations/bouncing_exits/bounceOutLeft.d.ts +5 -0
- package/dist/animations/bouncing_exits/bounceOutLeft.js +14 -0
- package/dist/animations/bouncing_exits/bounceOutRight.d.ts +5 -0
- package/dist/animations/bouncing_exits/bounceOutRight.js +14 -0
- package/dist/animations/bouncing_exits/bounceOutUp.d.ts +9 -0
- package/dist/animations/bouncing_exits/bounceOutUp.js +20 -0
- package/dist/animations/easings/easings.d.ts +31 -0
- package/dist/animations/easings/easings.js +33 -0
- package/dist/animations/fading_entrances/fadeIn.d.ts +4 -0
- package/dist/animations/fading_entrances/fadeIn.js +6 -0
- package/dist/animations/fading_entrances/fadeInBottomLeft.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInBottomLeft.js +6 -0
- package/dist/animations/fading_entrances/fadeInBottomRight.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInBottomRight.js +6 -0
- package/dist/animations/fading_entrances/fadeInDown.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInDown.js +6 -0
- package/dist/animations/fading_entrances/fadeInDownBig.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInDownBig.js +6 -0
- package/dist/animations/fading_entrances/fadeInLeft.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInLeft.js +6 -0
- package/dist/animations/fading_entrances/fadeInLeftBig.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInLeftBig.js +6 -0
- package/dist/animations/fading_entrances/fadeInRight.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInRight.js +6 -0
- package/dist/animations/fading_entrances/fadeInRightBig.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInRightBig.js +6 -0
- package/dist/animations/fading_entrances/fadeInTopLeft.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInTopLeft.js +6 -0
- package/dist/animations/fading_entrances/fadeInTopRight.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInTopRight.js +6 -0
- package/dist/animations/fading_entrances/fadeInUp.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInUp.js +6 -0
- package/dist/animations/fading_entrances/fadeInUpBig.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInUpBig.js +6 -0
- package/dist/animations/fading_exits/fadeOut.d.ts +4 -0
- package/dist/animations/fading_exits/fadeOut.js +6 -0
- package/dist/animations/fading_exits/fadeOutBottomLeft.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutBottomLeft.js +6 -0
- package/dist/animations/fading_exits/fadeOutBottomRight.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutBottomRight.js +6 -0
- package/dist/animations/fading_exits/fadeOutDown.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutDown.js +6 -0
- package/dist/animations/fading_exits/fadeOutDownBig.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutDownBig.js +6 -0
- package/dist/animations/fading_exits/fadeOutLeft.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutLeft.js +6 -0
- package/dist/animations/fading_exits/fadeOutLeftBig.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutLeftBig.js +6 -0
- package/dist/animations/fading_exits/fadeOutRight.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutRight.js +6 -0
- package/dist/animations/fading_exits/fadeOutRightBig.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutRightBig.js +6 -0
- package/dist/animations/fading_exits/fadeOutTopLeft.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutTopLeft.js +6 -0
- package/dist/animations/fading_exits/fadeOutTopRight.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutTopRight.js +6 -0
- package/dist/animations/fading_exits/fadeOutUp.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutUp.js +6 -0
- package/dist/animations/fading_exits/fadeOutUpBig.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutUpBig.js +6 -0
- package/dist/animations/flippers/flip.d.ts +5 -0
- package/dist/animations/flippers/flip.js +29 -0
- package/dist/animations/flippers/flipInX.d.ts +21 -0
- package/dist/animations/flippers/flipInX.js +22 -0
- package/dist/animations/flippers/flipInY.d.ts +21 -0
- package/dist/animations/flippers/flipInY.js +22 -0
- package/dist/animations/flippers/flipOutX.d.ts +9 -0
- package/dist/animations/flippers/flipOutX.js +15 -0
- package/dist/animations/flippers/flipOutY.d.ts +9 -0
- package/dist/animations/flippers/flipOutY.js +15 -0
- package/dist/animations/index.d.ts +99 -0
- package/dist/animations/index.js +101 -0
- package/dist/animations/lightspeed/lightSpeedInLeft.d.ts +9 -0
- package/dist/animations/lightspeed/lightSpeedInLeft.js +12 -0
- package/dist/animations/lightspeed/lightSpeedInRight.d.ts +9 -0
- package/dist/animations/lightspeed/lightSpeedInRight.js +12 -0
- package/dist/animations/lightspeed/lightSpeedOutLeft.d.ts +9 -0
- package/dist/animations/lightspeed/lightSpeedOutLeft.js +10 -0
- package/dist/animations/lightspeed/lightSpeedOutRight.d.ts +9 -0
- package/dist/animations/lightspeed/lightSpeedOutRight.js +10 -0
- package/dist/animations/rotating_entrances/rotateIn.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateIn.js +6 -0
- package/dist/animations/rotating_entrances/rotateInDownLeft.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateInDownLeft.js +6 -0
- package/dist/animations/rotating_entrances/rotateInDownRight.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateInDownRight.js +6 -0
- package/dist/animations/rotating_entrances/rotateInUpLeft.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateInUpLeft.js +6 -0
- package/dist/animations/rotating_entrances/rotateInUpRight.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateInUpRight.js +6 -0
- package/dist/animations/rotating_exits/rotateOut.d.ts +9 -0
- package/dist/animations/rotating_exits/rotateOut.js +6 -0
- package/dist/animations/rotating_exits/rotateOutDownLeft.d.ts +9 -0
- package/dist/animations/rotating_exits/rotateOutDownLeft.js +6 -0
- package/dist/animations/rotating_exits/rotateOutDownRight.d.ts +9 -0
- package/dist/animations/rotating_exits/rotateOutDownRight.js +6 -0
- package/dist/animations/rotating_exits/rotateOutUpLeft.d.ts +9 -0
- package/dist/animations/rotating_exits/rotateOutUpLeft.js +6 -0
- package/dist/animations/rotating_exits/rotateOutUpRight.d.ts +9 -0
- package/dist/animations/rotating_exits/rotateOutUpRight.js +6 -0
- package/dist/animations/sliding_entrances/slideInDown.d.ts +9 -0
- package/dist/animations/sliding_entrances/slideInDown.js +6 -0
- package/dist/animations/sliding_entrances/slideInLeft.d.ts +9 -0
- package/dist/animations/sliding_entrances/slideInLeft.js +6 -0
- package/dist/animations/sliding_entrances/slideInRight.d.ts +9 -0
- package/dist/animations/sliding_entrances/slideInRight.js +6 -0
- package/dist/animations/sliding_entrances/slideInUp.d.ts +9 -0
- package/dist/animations/sliding_entrances/slideInUp.js +6 -0
- package/dist/animations/sliding_exits/slideOutDown.d.ts +9 -0
- package/dist/animations/sliding_exits/slideOutDown.js +6 -0
- package/dist/animations/sliding_exits/slideOutLeft.d.ts +9 -0
- package/dist/animations/sliding_exits/slideOutLeft.js +6 -0
- package/dist/animations/sliding_exits/slideOutRight.d.ts +9 -0
- package/dist/animations/sliding_exits/slideOutRight.js +6 -0
- package/dist/animations/sliding_exits/slideOutUp.d.ts +9 -0
- package/dist/animations/sliding_exits/slideOutUp.js +6 -0
- package/dist/animations/specials/hinge.d.ts +21 -0
- package/dist/animations/specials/hinge.js +28 -0
- package/dist/animations/specials/jackInTheBox.d.ts +16 -0
- package/dist/animations/specials/jackInTheBox.js +13 -0
- package/dist/animations/specials/rollIn.d.ts +5 -0
- package/dist/animations/specials/rollIn.js +10 -0
- package/dist/animations/specials/rollOut.d.ts +9 -0
- package/dist/animations/specials/rollOut.js +10 -0
- package/dist/animations/zooming_entrances/zoomIn.d.ts +9 -0
- package/dist/animations/zooming_entrances/zoomIn.js +6 -0
- package/dist/animations/zooming_entrances/zoomInDown.d.ts +6 -0
- package/dist/animations/zooming_entrances/zoomInDown.js +16 -0
- package/dist/animations/zooming_entrances/zoomInLeft.d.ts +6 -0
- package/dist/animations/zooming_entrances/zoomInLeft.js +16 -0
- package/dist/animations/zooming_entrances/zoomInRight.d.ts +6 -0
- package/dist/animations/zooming_entrances/zoomInRight.js +16 -0
- package/dist/animations/zooming_entrances/zoomInUp.d.ts +6 -0
- package/dist/animations/zooming_entrances/zoomInUp.js +16 -0
- package/dist/animations/zooming_exits/zoomOut.d.ts +9 -0
- package/dist/animations/zooming_exits/zoomOut.js +7 -0
- package/dist/animations/zooming_exits/zoomOutDown.d.ts +6 -0
- package/dist/animations/zooming_exits/zoomOutDown.js +16 -0
- package/dist/animations/zooming_exits/zoomOutLeft.d.ts +5 -0
- package/dist/animations/zooming_exits/zoomOutLeft.js +14 -0
- package/dist/animations/zooming_exits/zoomOutRight.d.ts +5 -0
- package/dist/animations/zooming_exits/zoomOutRight.js +14 -0
- package/dist/animations/zooming_exits/zoomOutUp.d.ts +6 -0
- package/dist/animations/zooming_exits/zoomOutUp.js +16 -0
- package/dist/components/animation/animation.component.d.ts +65 -0
- package/dist/components/animation/animation.component.js +247 -0
- package/dist/components/animation/animation.d.ts +8 -0
- package/dist/components/animation/animation.js +5 -0
- package/dist/components/animation/animation.styles.d.ts +1 -0
- package/dist/components/animation/animation.styles.js +9 -0
- package/dist/components/animation/animations.d.ts +4 -0
- package/dist/components/animation/animations.js +13 -0
- package/dist/components/avatar/avatar.component.d.ts +43 -0
- package/dist/components/avatar/avatar.component.js +137 -0
- package/dist/components/avatar/avatar.d.ts +8 -0
- package/dist/components/avatar/avatar.js +5 -0
- package/dist/components/avatar/avatar.styles.d.ts +1 -0
- package/dist/components/avatar/avatar.styles.js +68 -0
- package/dist/components/badge/badge.component.d.ts +21 -0
- package/dist/components/badge/badge.component.js +64 -0
- package/dist/components/badge/badge.d.ts +8 -0
- package/dist/components/badge/badge.js +5 -0
- package/dist/components/badge/badge.styles.d.ts +1 -0
- package/dist/components/badge/badge.styles.js +76 -0
- package/dist/components/button/button.component.d.ts +104 -0
- package/dist/components/button/button.component.js +346 -0
- package/dist/components/button/button.d.ts +8 -0
- package/dist/components/button/button.js +5 -0
- package/dist/components/button/button.styles.d.ts +1 -0
- package/dist/components/button/button.styles.js +322 -0
- package/dist/components/button-group/button-group.component.d.ts +26 -0
- package/dist/components/button-group/button-group.component.js +93 -0
- package/dist/components/button-group/button-group.d.ts +8 -0
- package/dist/components/button-group/button-group.js +5 -0
- package/dist/components/button-group/button-group.styles.d.ts +1 -0
- package/dist/components/button-group/button-group.styles.js +14 -0
- package/dist/components/callout/callout.component.d.ts +22 -0
- package/dist/components/callout/callout.component.js +63 -0
- package/dist/components/callout/callout.d.ts +8 -0
- package/dist/components/callout/callout.js +5 -0
- package/dist/components/callout/callout.styles.d.ts +1 -0
- package/dist/components/callout/callout.styles.js +68 -0
- package/dist/components/card/card.component.d.ts +29 -0
- package/dist/components/card/card.component.js +59 -0
- package/dist/components/card/card.d.ts +8 -0
- package/dist/components/card/card.js +5 -0
- package/dist/components/card/card.styles.d.ts +1 -0
- package/dist/components/card/card.styles.js +65 -0
- package/dist/components/checkbox/checkbox.component.d.ts +44 -0
- package/dist/components/checkbox/checkbox.component.js +287 -0
- package/dist/components/checkbox/checkbox.d.ts +8 -0
- package/dist/components/checkbox/checkbox.js +5 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +1 -0
- package/dist/components/checkbox/checkbox.styles.js +166 -0
- package/dist/components/comparer/comparer.component.d.ts +43 -0
- package/dist/components/comparer/comparer.component.js +181 -0
- package/dist/components/comparer/comparer.d.ts +8 -0
- package/dist/components/comparer/comparer.js +5 -0
- package/dist/components/comparer/comparer.styles.d.ts +1 -0
- package/dist/components/comparer/comparer.styles.js +75 -0
- package/dist/components/copy-button/copy-button.component.d.ts +75 -0
- package/dist/components/copy-button/copy-button.component.js +289 -0
- package/dist/components/copy-button/copy-button.d.ts +8 -0
- package/dist/components/copy-button/copy-button.js +5 -0
- package/dist/components/copy-button/copy-button.styles.d.ts +1 -0
- package/dist/components/copy-button/copy-button.styles.js +61 -0
- package/dist/components/details/details.component.d.ts +25 -0
- package/dist/components/details/details.component.js +243 -0
- package/dist/components/details/details.d.ts +8 -0
- package/dist/components/details/details.js +5 -0
- package/dist/components/details/details.styles.d.ts +1 -0
- package/dist/components/details/details.styles.js +86 -0
- package/dist/components/dialog/dialog.component.d.ts +84 -0
- package/dist/components/dialog/dialog.component.js +362 -0
- package/dist/components/dialog/dialog.d.ts +8 -0
- package/dist/components/dialog/dialog.js +5 -0
- package/dist/components/dialog/dialog.styles.d.ts +1 -0
- package/dist/components/dialog/dialog.styles.js +123 -0
- package/dist/components/divider/divider.component.d.ts +20 -0
- package/dist/components/divider/divider.component.js +51 -0
- package/dist/components/divider/divider.d.ts +8 -0
- package/dist/components/divider/divider.js +5 -0
- package/dist/components/divider/divider.styles.d.ts +1 -0
- package/dist/components/divider/divider.styles.js +29 -0
- package/dist/components/drawer/drawer.component.d.ts +95 -0
- package/dist/components/drawer/drawer.component.js +509 -0
- package/dist/components/drawer/drawer.d.ts +8 -0
- package/dist/components/drawer/drawer.js +5 -0
- package/dist/components/drawer/drawer.styles.d.ts +1 -0
- package/dist/components/drawer/drawer.styles.js +157 -0
- package/dist/components/dropdown/dropdown.component.d.ts +44 -0
- package/dist/components/dropdown/dropdown.component.js +385 -0
- package/dist/components/dropdown/dropdown.d.ts +8 -0
- package/dist/components/dropdown/dropdown.js +5 -0
- package/dist/components/dropdown/dropdown.styles.d.ts +1 -0
- package/dist/components/dropdown/dropdown.styles.js +52 -0
- package/dist/components/icon/icon.component.d.ts +47 -0
- package/dist/components/icon/icon.component.js +225 -0
- package/dist/components/icon/icon.d.ts +8 -0
- package/dist/components/icon/icon.js +5 -0
- package/dist/components/icon/icon.styles.d.ts +1 -0
- package/dist/components/icon/icon.styles.js +49 -0
- package/dist/components/icon/library.d.ts +14 -0
- package/dist/components/icon/library.default.d.ts +3 -0
- package/dist/components/icon/library.default.js +8 -0
- package/dist/components/icon/library.js +34 -0
- package/dist/components/icon/library.system.d.ts +3 -0
- package/dist/components/icon/library.system.js +130 -0
- package/dist/components/icon-button/icon-button.component.d.ts +27 -0
- package/dist/components/icon-button/icon-button.component.js +151 -0
- package/dist/components/icon-button/icon-button.d.ts +8 -0
- package/dist/components/icon-button/icon-button.js +5 -0
- package/dist/components/icon-button/icon-button.styles.d.ts +1 -0
- package/dist/components/icon-button/icon-button.styles.js +53 -0
- package/dist/components/input/input.component.d.ts +78 -0
- package/dist/components/input/input.component.js +513 -0
- package/dist/components/input/input.d.ts +8 -0
- package/dist/components/input/input.js +5 -0
- package/dist/components/input/input.styles.d.ts +1 -0
- package/dist/components/input/input.styles.js +308 -0
- package/dist/components/menu/menu.component.d.ts +20 -0
- package/dist/components/menu/menu.component.js +123 -0
- package/dist/components/menu/menu.d.ts +8 -0
- package/dist/components/menu/menu.js +5 -0
- package/dist/components/menu/menu.styles.d.ts +1 -0
- package/dist/components/menu/menu.styles.js +20 -0
- package/dist/components/menu-item/menu-item.component.d.ts +34 -0
- package/dist/components/menu-item/menu-item.component.js +211 -0
- package/dist/components/menu-item/menu-item.d.ts +8 -0
- package/dist/components/menu-item/menu-item.js +5 -0
- package/dist/components/menu-item/menu-item.styles.d.ts +1 -0
- package/dist/components/menu-item/menu-item.styles.js +157 -0
- package/dist/components/menu-item/submenu-controller.d.ts +34 -0
- package/dist/components/menu-item/submenu-controller.js +246 -0
- package/dist/components/menu-label/menu-label.component.d.ts +15 -0
- package/dist/components/menu-label/menu-label.component.js +25 -0
- package/dist/components/menu-label/menu-label.d.ts +8 -0
- package/dist/components/menu-label/menu-label.js +5 -0
- package/dist/components/menu-label/menu-label.styles.d.ts +1 -0
- package/dist/components/menu-label/menu-label.styles.js +22 -0
- package/dist/components/option/option.component.d.ts +42 -0
- package/dist/components/option/option.component.js +161 -0
- package/dist/components/option/option.d.ts +8 -0
- package/dist/components/option/option.js +5 -0
- package/dist/components/option/option.styles.d.ts +1 -0
- package/dist/components/option/option.styles.js +108 -0
- package/dist/components/popup/popup.component.d.ts +44 -0
- package/dist/components/popup/popup.component.js +483 -0
- package/dist/components/popup/popup.d.ts +8 -0
- package/dist/components/popup/popup.js +6 -0
- package/dist/components/popup/popup.styles.d.ts +1 -0
- package/dist/components/popup/popup.styles.js +64 -0
- package/dist/components/qr-code/qr-code.component.d.ts +16 -0
- package/dist/components/qr-code/qr-code.component.js +94 -0
- package/dist/components/qr-code/qr-code.d.ts +8 -0
- package/dist/components/qr-code/qr-code.js +5 -0
- package/dist/components/qr-code/qr-code.styles.d.ts +1 -0
- package/dist/components/qr-code/qr-code.styles.js +9 -0
- package/dist/components/radio/radio.component.d.ts +19 -0
- package/dist/components/radio/radio.component.js +120 -0
- package/dist/components/radio/radio.d.ts +8 -0
- package/dist/components/radio/radio.js +5 -0
- package/dist/components/radio/radio.styles.d.ts +1 -0
- package/dist/components/radio/radio.styles.js +132 -0
- package/dist/components/radio-button/radio-button.component.d.ts +22 -0
- package/dist/components/radio-button/radio-button.component.js +131 -0
- package/dist/components/radio-button/radio-button.d.ts +8 -0
- package/dist/components/radio-button/radio-button.js +5 -0
- package/dist/components/radio-button/radio-button.styles.d.ts +1 -0
- package/dist/components/radio-button/radio-button.styles.js +25 -0
- package/dist/components/radio-group/radio-group.component.d.ts +46 -0
- package/dist/components/radio-group/radio-group.component.js +379 -0
- package/dist/components/radio-group/radio-group.d.ts +8 -0
- package/dist/components/radio-group/radio-group.js +5 -0
- package/dist/components/radio-group/radio-group.styles.d.ts +1 -0
- package/dist/components/radio-group/radio-group.styles.js +42 -0
- package/dist/components/rating/rating.component.d.ts +37 -0
- package/dist/components/rating/rating.component.js +308 -0
- package/dist/components/rating/rating.d.ts +8 -0
- package/dist/components/rating/rating.js +5 -0
- package/dist/components/rating/rating.styles.d.ts +1 -0
- package/dist/components/rating/rating.styles.js +94 -0
- package/dist/components/resize-observer/resize-observer.component.d.ts +26 -0
- package/dist/components/resize-observer/resize-observer.component.js +89 -0
- package/dist/components/resize-observer/resize-observer.d.ts +8 -0
- package/dist/components/resize-observer/resize-observer.js +5 -0
- package/dist/components/resize-observer/resize-observer.styles.d.ts +1 -0
- package/dist/components/resize-observer/resize-observer.styles.js +9 -0
- package/dist/components/select/select.component.d.ts +174 -0
- package/dist/components/select/select.component.js +960 -0
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/select/select.js +5 -0
- package/dist/components/select/select.styles.d.ts +1 -0
- package/dist/components/select/select.styles.js +363 -0
- package/dist/components/spinner/spinner.component.d.ts +20 -0
- package/dist/components/spinner/spinner.component.js +47 -0
- package/dist/components/spinner/spinner.d.ts +8 -0
- package/dist/components/spinner/spinner.js +5 -0
- package/dist/components/spinner/spinner.styles.d.ts +1 -0
- package/dist/components/spinner/spinner.styles.js +61 -0
- package/dist/components/switch/switch.component.d.ts +84 -0
- package/dist/components/switch/switch.component.js +281 -0
- package/dist/components/switch/switch.d.ts +8 -0
- package/dist/components/switch/switch.js +5 -0
- package/dist/components/switch/switch.styles.d.ts +1 -0
- package/dist/components/switch/switch.styles.js +178 -0
- package/dist/components/tab/tab.component.d.ts +22 -0
- package/dist/components/tab/tab.component.js +112 -0
- package/dist/components/tab/tab.d.ts +8 -0
- package/dist/components/tab/tab.js +5 -0
- package/dist/components/tab/tab.styles.d.ts +1 -0
- package/dist/components/tab/tab.styles.js +85 -0
- package/dist/components/tab-group/tab-group.component.d.ts +51 -0
- package/dist/components/tab-group/tab-group.component.js +513 -0
- package/dist/components/tab-group/tab-group.d.ts +8 -0
- package/dist/components/tab-group/tab-group.js +5 -0
- package/dist/components/tab-group/tab-group.styles.d.ts +1 -0
- package/dist/components/tab-group/tab-group.styles.js +219 -0
- package/dist/components/tab-panel/tab-panel.component.d.ts +12 -0
- package/dist/components/tab-panel/tab-panel.component.js +56 -0
- package/dist/components/tab-panel/tab-panel.d.ts +8 -0
- package/dist/components/tab-panel/tab-panel.js +5 -0
- package/dist/components/tab-panel/tab-panel.styles.d.ts +1 -0
- package/dist/components/tab-panel/tab-panel.styles.js +18 -0
- package/dist/components/tag/tag.component.d.ts +38 -0
- package/dist/components/tag/tag.component.js +109 -0
- package/dist/components/tag/tag.d.ts +8 -0
- package/dist/components/tag/tag.js +5 -0
- package/dist/components/tag/tag.styles.d.ts +1 -0
- package/dist/components/tag/tag.styles.js +155 -0
- package/dist/components/tooltip/tooltip.component.d.ts +38 -0
- package/dist/components/tooltip/tooltip.component.js +267 -0
- package/dist/components/tooltip/tooltip.d.ts +8 -0
- package/dist/components/tooltip/tooltip.js +5 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +1 -0
- package/dist/components/tooltip/tooltip.styles.js +59 -0
- package/dist/default.css +1005 -0
- package/dist/events/events.d.ts +33 -0
- package/dist/events/events.js +1 -0
- package/dist/events/pc-after-collapse.d.ts +6 -0
- package/dist/events/pc-after-collapse.js +1 -0
- package/dist/events/pc-after-expand.d.ts +6 -0
- package/dist/events/pc-after-expand.js +1 -0
- package/dist/events/pc-after-hide.d.ts +6 -0
- package/dist/events/pc-after-hide.js +1 -0
- package/dist/events/pc-after-show.d.ts +6 -0
- package/dist/events/pc-after-show.js +1 -0
- package/dist/events/pc-blur.d.ts +6 -0
- package/dist/events/pc-blur.js +1 -0
- package/dist/events/pc-cancel.d.ts +6 -0
- package/dist/events/pc-cancel.js +1 -0
- package/dist/events/pc-change.d.ts +6 -0
- package/dist/events/pc-change.js +1 -0
- package/dist/events/pc-clear.d.ts +6 -0
- package/dist/events/pc-clear.js +1 -0
- package/dist/events/pc-close.d.ts +6 -0
- package/dist/events/pc-close.js +1 -0
- package/dist/events/pc-collapse.d.ts +6 -0
- package/dist/events/pc-collapse.js +1 -0
- package/dist/events/pc-copy.d.ts +8 -0
- package/dist/events/pc-copy.js +1 -0
- package/dist/events/pc-error.d.ts +8 -0
- package/dist/events/pc-error.js +1 -0
- package/dist/events/pc-expand.d.ts +6 -0
- package/dist/events/pc-expand.js +1 -0
- package/dist/events/pc-finish.d.ts +6 -0
- package/dist/events/pc-finish.js +1 -0
- package/dist/events/pc-focus.d.ts +6 -0
- package/dist/events/pc-focus.js +1 -0
- package/dist/events/pc-hide.d.ts +6 -0
- package/dist/events/pc-hide.js +1 -0
- package/dist/events/pc-hover.d.ts +9 -0
- package/dist/events/pc-hover.js +1 -0
- package/dist/events/pc-initial-focus.d.ts +6 -0
- package/dist/events/pc-initial-focus.js +1 -0
- package/dist/events/pc-input.d.ts +6 -0
- package/dist/events/pc-input.js +1 -0
- package/dist/events/pc-invalid.d.ts +6 -0
- package/dist/events/pc-invalid.js +1 -0
- package/dist/events/pc-lazy-change.d.ts +6 -0
- package/dist/events/pc-lazy-change.js +1 -0
- package/dist/events/pc-lazy-load.d.ts +6 -0
- package/dist/events/pc-lazy-load.js +1 -0
- package/dist/events/pc-load.d.ts +6 -0
- package/dist/events/pc-load.js +1 -0
- package/dist/events/pc-mutation.d.ts +8 -0
- package/dist/events/pc-mutation.js +1 -0
- package/dist/events/pc-remove.d.ts +6 -0
- package/dist/events/pc-remove.js +1 -0
- package/dist/events/pc-reposition.d.ts +6 -0
- package/dist/events/pc-reposition.js +1 -0
- package/dist/events/pc-request-close.d.ts +8 -0
- package/dist/events/pc-request-close.js +1 -0
- package/dist/events/pc-resize.d.ts +8 -0
- package/dist/events/pc-resize.js +1 -0
- package/dist/events/pc-select.d.ts +9 -0
- package/dist/events/pc-select.js +1 -0
- package/dist/events/pc-selection-change.js +1 -0
- package/dist/events/pc-show.d.ts +6 -0
- package/dist/events/pc-show.js +1 -0
- package/dist/events/pc-slide-change.js +1 -0
- package/dist/events/pc-start.d.ts +6 -0
- package/dist/events/pc-start.js +1 -0
- package/dist/events/pc-tab-hide.d.ts +8 -0
- package/dist/events/pc-tab-hide.js +1 -0
- package/dist/events/pc-tab-show.d.ts +8 -0
- package/dist/events/pc-tab-show.js +1 -0
- package/dist/global-shims.d.ts +18 -0
- package/dist/global-shims.js +96 -0
- package/dist/internal/active-elements.d.ts +2 -0
- package/dist/internal/active-elements.js +16 -0
- package/dist/internal/animate.d.ts +10 -0
- package/dist/internal/animate.js +45 -0
- package/dist/internal/close-active-element.d.ts +1 -0
- package/dist/internal/close-active-element.js +8 -0
- package/dist/internal/debounce.d.ts +1 -0
- package/dist/internal/debounce.js +14 -0
- package/dist/internal/default-value.d.ts +2 -0
- package/dist/internal/default-value.js +26 -0
- package/dist/internal/drag.d.ts +7 -0
- package/dist/internal/drag.js +27 -0
- package/dist/internal/emit.d.ts +1 -0
- package/dist/internal/emit.js +14 -0
- package/dist/internal/event.d.ts +1 -0
- package/dist/internal/event.js +13 -0
- package/dist/internal/form.d.ts +41 -0
- package/dist/internal/form.js +282 -0
- package/dist/internal/math.d.ts +1 -0
- package/dist/internal/math.js +12 -0
- package/dist/internal/modal.d.ts +19 -0
- package/dist/internal/modal.js +116 -0
- package/dist/internal/offset.d.ts +4 -0
- package/dist/internal/offset.js +10 -0
- package/dist/internal/scroll.d.ts +3 -0
- package/dist/internal/scroll.js +70 -0
- package/dist/internal/scrollend-polyfill.d.ts +1 -0
- package/dist/internal/scrollend-polyfill.js +65 -0
- package/dist/internal/slot.d.ts +14 -0
- package/dist/internal/slot.js +75 -0
- package/dist/internal/string.d.ts +1 -0
- package/dist/internal/string.js +5 -0
- package/dist/internal/tabbable.d.ts +5 -0
- package/dist/internal/tabbable.js +145 -0
- package/dist/internal/watch.d.ts +11 -0
- package/dist/internal/watch.js +32 -0
- package/dist/native-styles.css +261 -0
- package/dist/placer-autoloader.d.ts +1 -0
- package/dist/placer-autoloader.js +41 -0
- package/dist/placer.d.ts +44 -0
- package/dist/placer.js +43 -0
- package/dist/style-utilities/fouce.css +13 -0
- package/dist/style-utilities/style-utilities.css +2 -0
- package/dist/style-utilities/visually-hidden.css +12 -0
- package/dist/utilities/animation-registry.d.ts +14 -0
- package/dist/utilities/animation-registry.js +39 -0
- package/dist/utilities/animation.d.ts +1 -0
- package/dist/utilities/animation.js +1 -0
- package/dist/utilities/base-path.d.ts +2 -0
- package/dist/utilities/base-path.js +8 -0
- package/dist/utilities/form.d.ts +2 -0
- package/dist/utilities/form.js +39 -0
- package/dist/utilities/icon-library.d.ts +1 -0
- package/dist/utilities/icon-library.js +1 -0
- package/dist/utility.css +41 -0
- package/package.json +82 -0
- package/src/animations/attention_seekers/bounce.ts +43 -0
- package/src/animations/attention_seekers/flash.ts +7 -0
- package/src/animations/attention_seekers/headShake.ts +8 -0
- package/src/animations/attention_seekers/heartBeat.ts +7 -0
- package/src/animations/attention_seekers/jello.ts +15 -0
- package/src/animations/attention_seekers/pulse.ts +5 -0
- package/src/animations/attention_seekers/rubberBand.ts +9 -0
- package/src/animations/attention_seekers/shake.ts +13 -0
- package/src/animations/attention_seekers/shakeX.ts +13 -0
- package/src/animations/attention_seekers/shakeY.ts +13 -0
- package/src/animations/attention_seekers/swing.ts +7 -0
- package/src/animations/attention_seekers/tada.ts +40 -0
- package/src/animations/attention_seekers/wobble.ts +24 -0
- package/src/animations/back_entrances/backInDown.ts +5 -0
- package/src/animations/back_entrances/backInLeft.ts +5 -0
- package/src/animations/back_entrances/backInRight.ts +5 -0
- package/src/animations/back_entrances/backInUp.ts +5 -0
- package/src/animations/back_exits/backOutDown.ts +5 -0
- package/src/animations/back_exits/backOutLeft.ts +5 -0
- package/src/animations/back_exits/backOutRight.ts +5 -0
- package/src/animations/back_exits/backOutUp.ts +5 -0
- package/src/animations/bouncing_entrances/bounceIn.ts +14 -0
- package/src/animations/bouncing_entrances/bounceInDown.ts +20 -0
- package/src/animations/bouncing_entrances/bounceInLeft.ts +20 -0
- package/src/animations/bouncing_entrances/bounceInRight.ts +20 -0
- package/src/animations/bouncing_entrances/bounceInUp.ts +20 -0
- package/src/animations/bouncing_exits/bounceOut.ts +6 -0
- package/src/animations/bouncing_exits/bounceOutDown.ts +18 -0
- package/src/animations/bouncing_exits/bounceOutLeft.ts +12 -0
- package/src/animations/bouncing_exits/bounceOutRight.ts +12 -0
- package/src/animations/bouncing_exits/bounceOutUp.ts +18 -0
- package/src/animations/easings/easings.ts +31 -0
- package/src/animations/fading_entrances/fadeIn.ts +4 -0
- package/src/animations/fading_entrances/fadeInBottomLeft.ts +4 -0
- package/src/animations/fading_entrances/fadeInBottomRight.ts +4 -0
- package/src/animations/fading_entrances/fadeInDown.ts +4 -0
- package/src/animations/fading_entrances/fadeInDownBig.ts +4 -0
- package/src/animations/fading_entrances/fadeInLeft.ts +4 -0
- package/src/animations/fading_entrances/fadeInLeftBig.ts +4 -0
- package/src/animations/fading_entrances/fadeInRight.ts +4 -0
- package/src/animations/fading_entrances/fadeInRightBig.ts +4 -0
- package/src/animations/fading_entrances/fadeInTopLeft.ts +4 -0
- package/src/animations/fading_entrances/fadeInTopRight.ts +4 -0
- package/src/animations/fading_entrances/fadeInUp.ts +4 -0
- package/src/animations/fading_entrances/fadeInUpBig.ts +4 -0
- package/src/animations/fading_exits/fadeOut.ts +4 -0
- package/src/animations/fading_exits/fadeOutBottomLeft.ts +4 -0
- package/src/animations/fading_exits/fadeOutBottomRight.ts +4 -0
- package/src/animations/fading_exits/fadeOutDown.ts +4 -0
- package/src/animations/fading_exits/fadeOutDownBig.ts +4 -0
- package/src/animations/fading_exits/fadeOutLeft.ts +4 -0
- package/src/animations/fading_exits/fadeOutLeftBig.ts +4 -0
- package/src/animations/fading_exits/fadeOutRight.ts +4 -0
- package/src/animations/fading_exits/fadeOutRightBig.ts +4 -0
- package/src/animations/fading_exits/fadeOutTopLeft.ts +4 -0
- package/src/animations/fading_exits/fadeOutTopRight.ts +4 -0
- package/src/animations/fading_exits/fadeOutUp.ts +4 -0
- package/src/animations/fading_exits/fadeOutUpBig.ts +4 -0
- package/src/animations/flippers/flip.ts +32 -0
- package/src/animations/flippers/flipInX.ts +20 -0
- package/src/animations/flippers/flipInY.ts +20 -0
- package/src/animations/flippers/flipOutX.ts +13 -0
- package/src/animations/flippers/flipOutY.ts +13 -0
- package/src/animations/index.ts +101 -0
- package/src/animations/lightspeed/lightSpeedInLeft.ts +10 -0
- package/src/animations/lightspeed/lightSpeedInRight.ts +10 -0
- package/src/animations/lightspeed/lightSpeedOutLeft.ts +8 -0
- package/src/animations/lightspeed/lightSpeedOutRight.ts +8 -0
- package/src/animations/rotating_entrances/rotateIn.ts +4 -0
- package/src/animations/rotating_entrances/rotateInDownLeft.ts +4 -0
- package/src/animations/rotating_entrances/rotateInDownRight.ts +4 -0
- package/src/animations/rotating_entrances/rotateInUpLeft.ts +4 -0
- package/src/animations/rotating_entrances/rotateInUpRight.ts +4 -0
- package/src/animations/rotating_exits/rotateOut.ts +4 -0
- package/src/animations/rotating_exits/rotateOutDownLeft.ts +4 -0
- package/src/animations/rotating_exits/rotateOutDownRight.ts +4 -0
- package/src/animations/rotating_exits/rotateOutUpLeft.ts +4 -0
- package/src/animations/rotating_exits/rotateOutUpRight.ts +4 -0
- package/src/animations/sliding_entrances/slideInDown.ts +4 -0
- package/src/animations/sliding_entrances/slideInLeft.ts +4 -0
- package/src/animations/sliding_entrances/slideInRight.ts +4 -0
- package/src/animations/sliding_entrances/slideInUp.ts +4 -0
- package/src/animations/sliding_exits/slideOutDown.ts +4 -0
- package/src/animations/sliding_exits/slideOutLeft.ts +4 -0
- package/src/animations/sliding_exits/slideOutRight.ts +4 -0
- package/src/animations/sliding_exits/slideOutUp.ts +4 -0
- package/src/animations/specials/hinge.ts +26 -0
- package/src/animations/specials/jackInTheBox.ts +11 -0
- package/src/animations/specials/rollIn.ts +8 -0
- package/src/animations/specials/rollOut.ts +8 -0
- package/src/animations/zooming_entrances/zoomIn.ts +4 -0
- package/src/animations/zooming_entrances/zoomInDown.ts +14 -0
- package/src/animations/zooming_entrances/zoomInLeft.ts +14 -0
- package/src/animations/zooming_entrances/zoomInRight.ts +14 -0
- package/src/animations/zooming_entrances/zoomInUp.ts +14 -0
- package/src/animations/zooming_exits/zoomOut.ts +5 -0
- package/src/animations/zooming_exits/zoomOutDown.ts +14 -0
- package/src/animations/zooming_exits/zoomOutLeft.ts +12 -0
- package/src/animations/zooming_exits/zoomOutRight.ts +12 -0
- package/src/animations/zooming_exits/zoomOutUp.ts +14 -0
- package/src/components/animation/animation.component.ts +224 -0
- package/src/components/animation/animation.styles.ts +7 -0
- package/src/components/animation/animation.ts +10 -0
- package/src/components/animation/animations.ts +13 -0
- package/src/components/avatar/avatar.component.ts +113 -0
- package/src/components/avatar/avatar.styles.ts +66 -0
- package/src/components/avatar/avatar.ts +10 -0
- package/src/components/badge/badge.component.ts +54 -0
- package/src/components/badge/badge.styles.ts +74 -0
- package/src/components/badge/badge.ts +10 -0
- package/src/components/button/button.component.ts +335 -0
- package/src/components/button/button.styles.ts +320 -0
- package/src/components/button/button.ts +10 -0
- package/src/components/button-group/button-group.component.ts +101 -0
- package/src/components/button-group/button-group.styles.ts +12 -0
- package/src/components/button-group/button-group.ts +10 -0
- package/src/components/callout/callout.component.ts +60 -0
- package/src/components/callout/callout.styles.ts +66 -0
- package/src/components/callout/callout.ts +10 -0
- package/src/components/card/card.component.ts +59 -0
- package/src/components/card/card.styles.ts +63 -0
- package/src/components/card/card.ts +10 -0
- package/src/components/checkbox/checkbox.component.ts +244 -0
- package/src/components/checkbox/checkbox.styles.ts +164 -0
- package/src/components/checkbox/checkbox.ts +10 -0
- package/src/components/comparer/comparer.component.ts +188 -0
- package/src/components/comparer/comparer.styles.ts +73 -0
- package/src/components/comparer/comparer.ts +10 -0
- package/src/components/copy-button/copy-button.component.ts +272 -0
- package/src/components/copy-button/copy-button.styles.ts +59 -0
- package/src/components/copy-button/copy-button.ts +10 -0
- package/src/components/details/details.component.ts +259 -0
- package/src/components/details/details.styles.ts +84 -0
- package/src/components/details/details.ts +10 -0
- package/src/components/dialog/dialog.component.ts +403 -0
- package/src/components/dialog/dialog.styles.ts +121 -0
- package/src/components/dialog/dialog.ts +10 -0
- package/src/components/divider/divider.component.ts +42 -0
- package/src/components/divider/divider.styles.ts +27 -0
- package/src/components/divider/divider.ts +10 -0
- package/src/components/drawer/drawer.component.ts +565 -0
- package/src/components/drawer/drawer.styles.ts +155 -0
- package/src/components/drawer/drawer.ts +10 -0
- package/src/components/dropdown/dropdown.component.ts +430 -0
- package/src/components/dropdown/dropdown.styles.ts +50 -0
- package/src/components/dropdown/dropdown.ts +10 -0
- package/src/components/icon/icon.component.ts +239 -0
- package/src/components/icon/icon.styles.ts +47 -0
- package/src/components/icon/icon.ts +10 -0
- package/src/components/icon/library.default.ts +10 -0
- package/src/components/icon/library.system.ts +136 -0
- package/src/components/icon/library.ts +54 -0
- package/src/components/icon-button/icon-button.component.ts +129 -0
- package/src/components/icon-button/icon-button.styles.ts +51 -0
- package/src/components/icon-button/icon-button.ts +10 -0
- package/src/components/input/input.component.ts +496 -0
- package/src/components/input/input.styles.ts +306 -0
- package/src/components/input/input.ts +10 -0
- package/src/components/menu/menu.component.ts +161 -0
- package/src/components/menu/menu.styles.ts +18 -0
- package/src/components/menu/menu.ts +10 -0
- package/src/components/menu-item/menu-item.component.ts +190 -0
- package/src/components/menu-item/menu-item.styles.ts +155 -0
- package/src/components/menu-item/menu-item.ts +10 -0
- package/src/components/menu-item/submenu-controller.ts +337 -0
- package/src/components/menu-label/menu-label.component.ts +22 -0
- package/src/components/menu-label/menu-label.styles.ts +20 -0
- package/src/components/menu-label/menu-label.ts +10 -0
- package/src/components/option/option.component.ts +141 -0
- package/src/components/option/option.styles.ts +106 -0
- package/src/components/option/option.ts +10 -0
- package/src/components/popup/popup.component.ts +540 -0
- package/src/components/popup/popup.styles.ts +63 -0
- package/src/components/popup/popup.ts +12 -0
- package/src/components/qr-code/qr-code.component.ts +70 -0
- package/src/components/qr-code/qr-code.styles.ts +7 -0
- package/src/components/qr-code/qr-code.ts +10 -0
- package/src/components/radio/radio.component.ts +100 -0
- package/src/components/radio/radio.styles.ts +130 -0
- package/src/components/radio/radio.ts +10 -0
- package/src/components/radio-button/radio-button.component.ts +116 -0
- package/src/components/radio-button/radio-button.styles.ts +23 -0
- package/src/components/radio-button/radio-button.ts +10 -0
- package/src/components/radio-group/radio-group.component.ts +404 -0
- package/src/components/radio-group/radio-group.styles.ts +40 -0
- package/src/components/radio-group/radio-group.ts +10 -0
- package/src/components/rating/rating.component.ts +319 -0
- package/src/components/rating/rating.styles.ts +92 -0
- package/src/components/rating/rating.ts +10 -0
- package/src/components/resize-observer/resize-observer.component.ts +91 -0
- package/src/components/resize-observer/resize-observer.styles.ts +7 -0
- package/src/components/resize-observer/resize-observer.ts +10 -0
- package/src/components/select/select.component.ts +1013 -0
- package/src/components/select/select.styles.ts +361 -0
- package/src/components/select/select.ts +10 -0
- package/src/components/spinner/spinner.component.ts +38 -0
- package/src/components/spinner/spinner.styles.ts +59 -0
- package/src/components/spinner/spinner.ts +10 -0
- package/src/components/switch/switch.component.ts +253 -0
- package/src/components/switch/switch.styles.ts +176 -0
- package/src/components/switch/switch.ts +10 -0
- package/src/components/tab/tab.component.ts +87 -0
- package/src/components/tab/tab.styles.ts +83 -0
- package/src/components/tab/tab.ts +10 -0
- package/src/components/tab-group/tab-group.component.ts +607 -0
- package/src/components/tab-group/tab-group.styles.ts +217 -0
- package/src/components/tab-group/tab-group.ts +10 -0
- package/src/components/tab-panel/tab-panel.component.ts +43 -0
- package/src/components/tab-panel/tab-panel.styles.ts +16 -0
- package/src/components/tab-panel/tab-panel.ts +10 -0
- package/src/components/tag/tag.component.ts +94 -0
- package/src/components/tag/tag.styles.ts +153 -0
- package/src/components/tag/tag.ts +10 -0
- package/src/components/tooltip/tooltip.component.ts +276 -0
- package/src/components/tooltip/tooltip.styles.ts +57 -0
- package/src/components/tooltip/tooltip.ts +10 -0
- package/src/default.css +1005 -0
- package/src/events/events.ts +35 -0
- package/src/events/pc-after-collapse.ts +7 -0
- package/src/events/pc-after-expand.ts +7 -0
- package/src/events/pc-after-hide.ts +7 -0
- package/src/events/pc-after-show.ts +7 -0
- package/src/events/pc-blur.ts +7 -0
- package/src/events/pc-cancel.ts +7 -0
- package/src/events/pc-change.ts +7 -0
- package/src/events/pc-clear.ts +7 -0
- package/src/events/pc-close.ts +7 -0
- package/src/events/pc-collapse.ts +7 -0
- package/src/events/pc-copy.ts +7 -0
- package/src/events/pc-error.ts +7 -0
- package/src/events/pc-expand.ts +7 -0
- package/src/events/pc-finish.ts +7 -0
- package/src/events/pc-focus.ts +7 -0
- package/src/events/pc-hide.ts +7 -0
- package/src/events/pc-hover.ts +10 -0
- package/src/events/pc-initial-focus.ts +7 -0
- package/src/events/pc-input.ts +7 -0
- package/src/events/pc-invalid.ts +7 -0
- package/src/events/pc-lazy-change.ts +7 -0
- package/src/events/pc-lazy-load.ts +7 -0
- package/src/events/pc-load.ts +7 -0
- package/src/events/pc-mutation.ts +7 -0
- package/src/events/pc-remove.ts +7 -0
- package/src/events/pc-reposition.ts +7 -0
- package/src/events/pc-request-close.ts +9 -0
- package/src/events/pc-resize.ts +7 -0
- package/src/events/pc-select.ts +9 -0
- package/src/events/pc-selection-change.ts +10 -0
- package/src/events/pc-show.ts +7 -0
- package/src/events/pc-slide-change.ts +13 -0
- package/src/events/pc-start.ts +7 -0
- package/src/events/pc-tab-hide.ts +7 -0
- package/src/events/pc-tab-show.ts +7 -0
- package/src/global-shims.ts +126 -0
- package/src/global.d.ts +31 -0
- package/src/internal/active-elements.ts +21 -0
- package/src/internal/animate.ts +62 -0
- package/src/internal/close-active-element.ts +7 -0
- package/src/internal/debounce.ts +25 -0
- package/src/internal/default-value.ts +40 -0
- package/src/internal/drag.ts +36 -0
- package/src/internal/emit.ts +19 -0
- package/src/internal/event.ts +12 -0
- package/src/internal/form.ts +389 -0
- package/src/internal/math.ts +14 -0
- package/src/internal/modal.ts +157 -0
- package/src/internal/offset.ts +12 -0
- package/src/internal/scroll.ts +95 -0
- package/src/internal/scrollend-polyfill.ts +99 -0
- package/src/internal/slot.ts +110 -0
- package/src/internal/string.ts +3 -0
- package/src/internal/tabbable.ts +207 -0
- package/src/internal/watch.ts +58 -0
- package/src/native-styles.css +261 -0
- package/src/placer-autoloader.ts +53 -0
- package/src/placer.ts +53 -0
- package/src/style-utilities/fouce.css +13 -0
- package/src/style-utilities/style-utilities.css +2 -0
- package/src/style-utilities/visually-hidden.css +12 -0
- package/src/utilities/animation-registry.ts +72 -0
- package/src/utilities/animation.ts +4 -0
- package/src/utilities/base-path.ts +39 -0
- package/src/utilities/form.ts +41 -0
- package/src/utilities/icon-library.ts +4 -0
- package/src/utility.css +41 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { LitElement, html } from 'lit';
|
|
3
|
+
import { queryAsync, property, customElement } from 'lit/decorators.js';
|
|
4
|
+
import { watch } from '../../internal/watch.js';
|
|
5
|
+
import { emit } from '../../internal/emit.js';
|
|
6
|
+
import * as index from '../../animations/index.js';
|
|
7
|
+
import { styles } from './animation.styles.js';
|
|
8
|
+
import { easings } from '../../animations/easings/easings.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @summary Animate elements declaratively with nearly 100 baked‐in presets, or roll your own with custom keyframes. These animations are powered by the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).
|
|
12
|
+
* @status experimental
|
|
13
|
+
* @since 0.4.0
|
|
14
|
+
*
|
|
15
|
+
* @event pc-cancel — Emitted when the animation is cancelled.
|
|
16
|
+
* @event pc-finish — Emitted when the animation finishes.
|
|
17
|
+
* @event pc‐start — Emitted when the animation starts or restarts.
|
|
18
|
+
*
|
|
19
|
+
* @slot — The element to animate. Avoid slotting in more than one element, as subsequent ones will be ignored. To animate multiple elements, either wrap them in a single container or use multiple `<pc-animation>` elements.
|
|
20
|
+
*/
|
|
21
|
+
let PcAnimation = class PcAnimation extends LitElement {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.hasStarted = false;
|
|
25
|
+
/** The name of the built‐in animation to use. For custom animations, use the `keyframes` prop. */
|
|
26
|
+
this.name = "none";
|
|
27
|
+
/** Plays the animation. When omitted, the animation will be paused. This attribute will be automatically removed when the animation finishes or gets cancelled. */
|
|
28
|
+
this.play = false;
|
|
29
|
+
/** The number of milliseconds to delay the start of the animation. */
|
|
30
|
+
this.delay = 0;
|
|
31
|
+
/** Determines the direction of playback as well as the behaviour when reaching the end of an iteration. Learn more about the CSS [`animation-direction`](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction) property. */
|
|
32
|
+
this.direction = "normal";
|
|
33
|
+
/** The number of milliseconds each iteration of the animation takes to complete. */
|
|
34
|
+
this.duration = 1000;
|
|
35
|
+
/** The easing function to use for the animation. This can be an easing function name like `easeInSine` or a custom easing function like `cubic-bezier(0.12, 0, 0.39, 0)`. */
|
|
36
|
+
this.easing = "ease-in-out";
|
|
37
|
+
/** The number of milliseconds to delay after the active period of an animation sequence. */
|
|
38
|
+
this.endDelay = 0;
|
|
39
|
+
/** Sets how the animation applies styles to its target before and after its execution. */
|
|
40
|
+
this.fill = "auto";
|
|
41
|
+
/** The number of iterations to run before the animation completes. */
|
|
42
|
+
this.iterations = Infinity;
|
|
43
|
+
/** The offset at which to start the animation, usually between 0 (start) and 1 (end). */
|
|
44
|
+
this.iterationStart = 0;
|
|
45
|
+
/** Sets the animation’s playback rate. The default is `1`, which plays the animation at a normal speed. Setting this to `2`, for example, will double the animation’s speed. A negative value can be used to reverse the animation. This value can be changed without causing the animation to restart. */
|
|
46
|
+
this.playbackRate = 1;
|
|
47
|
+
this.handleAnimationFinish = () => {
|
|
48
|
+
this.play = false;
|
|
49
|
+
this.hasStarted = false;
|
|
50
|
+
emit(this, "pc-finish");
|
|
51
|
+
};
|
|
52
|
+
this.handleAnimationCancel = () => {
|
|
53
|
+
this.play = false;
|
|
54
|
+
this.hasStarted = false;
|
|
55
|
+
emit(this, "pc-cancel");
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/** Gets and sets the current animation time. */
|
|
59
|
+
get currentTime() {
|
|
60
|
+
return this.animation?.currentTime ?? 0;
|
|
61
|
+
}
|
|
62
|
+
set currentTime(time) {
|
|
63
|
+
if (this.animation) {
|
|
64
|
+
this.animation.currentTime = time;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
connectedCallback() {
|
|
68
|
+
super.connectedCallback();
|
|
69
|
+
this.createAnimation();
|
|
70
|
+
}
|
|
71
|
+
disconnectedCallback() {
|
|
72
|
+
super.disconnectedCallback();
|
|
73
|
+
this.destroyAnimation();
|
|
74
|
+
}
|
|
75
|
+
handleSlotChange() {
|
|
76
|
+
this.destroyAnimation();
|
|
77
|
+
this.createAnimation();
|
|
78
|
+
}
|
|
79
|
+
async createAnimation() {
|
|
80
|
+
const easing = easings[this.easing] ?? this.easing;
|
|
81
|
+
const keyframes = this.keyframes ??
|
|
82
|
+
index[this.name];
|
|
83
|
+
const slot = await this.defaultSlot;
|
|
84
|
+
const element = slot.assignedElements()[0];
|
|
85
|
+
if (!element || !keyframes) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
this.destroyAnimation();
|
|
89
|
+
this.animation = element.animate(keyframes, {
|
|
90
|
+
delay: this.delay,
|
|
91
|
+
direction: this.direction,
|
|
92
|
+
duration: this.duration,
|
|
93
|
+
easing,
|
|
94
|
+
endDelay: this.endDelay,
|
|
95
|
+
fill: this.fill,
|
|
96
|
+
iterationStart: this.iterationStart,
|
|
97
|
+
iterations: this.iterations,
|
|
98
|
+
});
|
|
99
|
+
this.animation.playbackRate = this.playbackRate;
|
|
100
|
+
this.animation.addEventListener("cancel", this.handleAnimationCancel);
|
|
101
|
+
this.animation.addEventListener("finish", this.handleAnimationFinish);
|
|
102
|
+
if (this.play) {
|
|
103
|
+
this.hasStarted = true;
|
|
104
|
+
emit(this, "pc-start");
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
this.animation.pause();
|
|
108
|
+
}
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
destroyAnimation() {
|
|
112
|
+
if (this.animation) {
|
|
113
|
+
this.animation.cancel();
|
|
114
|
+
this.animation.removeEventListener("cancel", this.handleAnimationCancel);
|
|
115
|
+
this.animation.removeEventListener("finish", this.handleAnimationFinish);
|
|
116
|
+
this.hasStarted = false;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
/** @internal This is an internal property. */
|
|
120
|
+
handleAnimationChange() {
|
|
121
|
+
if (!this.hasUpdated) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
this.createAnimation();
|
|
125
|
+
}
|
|
126
|
+
/** @internal This is an internal property. */
|
|
127
|
+
handlePlayChange() {
|
|
128
|
+
if (this.animation) {
|
|
129
|
+
if (this.play && !this.hasStarted) {
|
|
130
|
+
this.hasStarted = true;
|
|
131
|
+
emit(this, "pc-start");
|
|
132
|
+
}
|
|
133
|
+
if (this.play) {
|
|
134
|
+
this.animation.play();
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
this.animation.pause();
|
|
138
|
+
}
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
/** @internal This is an internal property. */
|
|
144
|
+
handlePlaybackRateChange() {
|
|
145
|
+
if (this.animation) {
|
|
146
|
+
this.animation.playbackRate = this.playbackRate;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
/** Clears all keyframes caused by this animation and aborts its playback. */
|
|
150
|
+
cancel() {
|
|
151
|
+
this.animation?.cancel();
|
|
152
|
+
}
|
|
153
|
+
/** Sets the playback time to the end of the animation corresponding to the current playback direction. */
|
|
154
|
+
finish() {
|
|
155
|
+
this.animation?.finish();
|
|
156
|
+
}
|
|
157
|
+
render() {
|
|
158
|
+
return html `<slot @slotchange=${this.handleSlotChange}></slot>`;
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
PcAnimation.styles = styles;
|
|
162
|
+
__decorate([
|
|
163
|
+
queryAsync("slot"),
|
|
164
|
+
__metadata("design:type", Promise)
|
|
165
|
+
], PcAnimation.prototype, "defaultSlot", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
property(),
|
|
168
|
+
__metadata("design:type", Object)
|
|
169
|
+
], PcAnimation.prototype, "name", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
property({ type: Boolean, reflect: true }),
|
|
172
|
+
__metadata("design:type", Object)
|
|
173
|
+
], PcAnimation.prototype, "play", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
property({ type: Number }),
|
|
176
|
+
__metadata("design:type", Object)
|
|
177
|
+
], PcAnimation.prototype, "delay", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
property(),
|
|
180
|
+
__metadata("design:type", String)
|
|
181
|
+
], PcAnimation.prototype, "direction", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
property({ type: Number }),
|
|
184
|
+
__metadata("design:type", Object)
|
|
185
|
+
], PcAnimation.prototype, "duration", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
property(),
|
|
188
|
+
__metadata("design:type", Object)
|
|
189
|
+
], PcAnimation.prototype, "easing", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
property({ attribute: "end-delay", type: Number }),
|
|
192
|
+
__metadata("design:type", Object)
|
|
193
|
+
], PcAnimation.prototype, "endDelay", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
property(),
|
|
196
|
+
__metadata("design:type", String)
|
|
197
|
+
], PcAnimation.prototype, "fill", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
property({ type: Number }),
|
|
200
|
+
__metadata("design:type", Object)
|
|
201
|
+
], PcAnimation.prototype, "iterations", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
property({ attribute: "iteration-start", type: Number }),
|
|
204
|
+
__metadata("design:type", Object)
|
|
205
|
+
], PcAnimation.prototype, "iterationStart", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
property({ attribute: false }),
|
|
208
|
+
__metadata("design:type", Array)
|
|
209
|
+
], PcAnimation.prototype, "keyframes", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
property({ attribute: "playback-rate", type: Number }),
|
|
212
|
+
__metadata("design:type", Object)
|
|
213
|
+
], PcAnimation.prototype, "playbackRate", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
watch([
|
|
216
|
+
"name",
|
|
217
|
+
"delay",
|
|
218
|
+
"direction",
|
|
219
|
+
"duration",
|
|
220
|
+
"easing",
|
|
221
|
+
"endDelay",
|
|
222
|
+
"fill",
|
|
223
|
+
"iterations",
|
|
224
|
+
"iterationsStart",
|
|
225
|
+
"keyframes",
|
|
226
|
+
]),
|
|
227
|
+
__metadata("design:type", Function),
|
|
228
|
+
__metadata("design:paramtypes", []),
|
|
229
|
+
__metadata("design:returntype", void 0)
|
|
230
|
+
], PcAnimation.prototype, "handleAnimationChange", null);
|
|
231
|
+
__decorate([
|
|
232
|
+
watch("play"),
|
|
233
|
+
__metadata("design:type", Function),
|
|
234
|
+
__metadata("design:paramtypes", []),
|
|
235
|
+
__metadata("design:returntype", void 0)
|
|
236
|
+
], PcAnimation.prototype, "handlePlayChange", null);
|
|
237
|
+
__decorate([
|
|
238
|
+
watch("playbackRate"),
|
|
239
|
+
__metadata("design:type", Function),
|
|
240
|
+
__metadata("design:paramtypes", []),
|
|
241
|
+
__metadata("design:returntype", void 0)
|
|
242
|
+
], PcAnimation.prototype, "handlePlaybackRateChange", null);
|
|
243
|
+
PcAnimation = __decorate([
|
|
244
|
+
customElement("pc-animation")
|
|
245
|
+
], PcAnimation);
|
|
246
|
+
|
|
247
|
+
export { PcAnimation };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as index from '../../animations/index.js';
|
|
2
|
+
import { easings } from '../../animations/easings/easings.js';
|
|
3
|
+
|
|
4
|
+
function getAnimationNames() {
|
|
5
|
+
return Object.entries(index)
|
|
6
|
+
.filter(([name]) => name !== "easings")
|
|
7
|
+
.map(([name]) => name);
|
|
8
|
+
}
|
|
9
|
+
function getEasingNames() {
|
|
10
|
+
return Object.entries(easings).map(([name]) => name);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { index as animations, getAnimationNames, getEasingNames };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import type { CSSResultGroup } from "lit";
|
|
3
|
+
import { PcIcon } from "../icon/icon.js";
|
|
4
|
+
/**
|
|
5
|
+
* @summary Avatars are used to represent a person or object.
|
|
6
|
+
* @status experimental
|
|
7
|
+
* @since 0.1.0
|
|
8
|
+
*
|
|
9
|
+
* @dependency pc-icon
|
|
10
|
+
*
|
|
11
|
+
* @event pc-error — Emitted when the image couldn’t be loaded. This may be because of an invalid URL, a temporary network error or some other unknown cause.
|
|
12
|
+
*
|
|
13
|
+
* @slot icon — The default icon to use when no image or initials are present. Works best with `<pc-icon>`.
|
|
14
|
+
*
|
|
15
|
+
* @csspart base — The component’s base wrapper.
|
|
16
|
+
* @csspart icon — The container that wraps the avatar’s icon.
|
|
17
|
+
* @csspart initials — The container that wraps the avatar’s initials.
|
|
18
|
+
* @csspart image — The avatar image. Only shown when the `image` attribute is set.
|
|
19
|
+
*
|
|
20
|
+
* @cssproperty --size — The size of the avatar.
|
|
21
|
+
*/
|
|
22
|
+
export declare class PcAvatar extends LitElement {
|
|
23
|
+
static styles: CSSResultGroup;
|
|
24
|
+
/** @internal This is an internal property. */
|
|
25
|
+
static dependencies: {
|
|
26
|
+
"pc-icon": typeof PcIcon;
|
|
27
|
+
};
|
|
28
|
+
private hasError;
|
|
29
|
+
/** The image source to use for the avatar. */
|
|
30
|
+
image: string;
|
|
31
|
+
/** A label to use to describe the avatar to assistive devices. */
|
|
32
|
+
label: string;
|
|
33
|
+
/** Initials to use as a fallback when no image is available (1–2 characters recommended). */
|
|
34
|
+
initials: string;
|
|
35
|
+
/** Indicates how the browser should load the image. */
|
|
36
|
+
loading: "eager" | "lazy";
|
|
37
|
+
/** The shape of the avatar. */
|
|
38
|
+
shape: "circle" | "rounded" | "square";
|
|
39
|
+
/** @internal This is an internal property. */
|
|
40
|
+
handleImageChange(): void;
|
|
41
|
+
private handleImageLoadError;
|
|
42
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { LitElement, html } from 'lit';
|
|
3
|
+
import { state, property, customElement } from 'lit/decorators.js';
|
|
4
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
5
|
+
import { watch } from '../../internal/watch.js';
|
|
6
|
+
import { emit } from '../../internal/emit.js';
|
|
7
|
+
import { PcIcon } from '../icon/icon.component.js';
|
|
8
|
+
import { styles } from './avatar.styles.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @summary Avatars are used to represent a person or object.
|
|
12
|
+
* @status experimental
|
|
13
|
+
* @since 0.1.0
|
|
14
|
+
*
|
|
15
|
+
* @dependency pc-icon
|
|
16
|
+
*
|
|
17
|
+
* @event pc-error — Emitted when the image couldn’t be loaded. This may be because of an invalid URL, a temporary network error or some other unknown cause.
|
|
18
|
+
*
|
|
19
|
+
* @slot icon — The default icon to use when no image or initials are present. Works best with `<pc-icon>`.
|
|
20
|
+
*
|
|
21
|
+
* @csspart base — The component’s base wrapper.
|
|
22
|
+
* @csspart icon — The container that wraps the avatar’s icon.
|
|
23
|
+
* @csspart initials — The container that wraps the avatar’s initials.
|
|
24
|
+
* @csspart image — The avatar image. Only shown when the `image` attribute is set.
|
|
25
|
+
*
|
|
26
|
+
* @cssproperty --size — The size of the avatar.
|
|
27
|
+
*/
|
|
28
|
+
let PcAvatar = class PcAvatar extends LitElement {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
this.hasError = false;
|
|
32
|
+
/** The image source to use for the avatar. */
|
|
33
|
+
this.image = "";
|
|
34
|
+
/** A label to use to describe the avatar to assistive devices. */
|
|
35
|
+
this.label = "";
|
|
36
|
+
/** Initials to use as a fallback when no image is available (1–2 characters recommended). */
|
|
37
|
+
this.initials = "";
|
|
38
|
+
/** Indicates how the browser should load the image. */
|
|
39
|
+
this.loading = "eager";
|
|
40
|
+
/** The shape of the avatar. */
|
|
41
|
+
this.shape = "circle";
|
|
42
|
+
}
|
|
43
|
+
/** @internal This is an internal property. */
|
|
44
|
+
handleImageChange() {
|
|
45
|
+
this.hasError = false;
|
|
46
|
+
}
|
|
47
|
+
handleImageLoadError() {
|
|
48
|
+
this.hasError = true;
|
|
49
|
+
emit(this, "pc-error");
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
const avatarWithImage = html `
|
|
53
|
+
<img
|
|
54
|
+
class="image"
|
|
55
|
+
part="image"
|
|
56
|
+
src=${this.image}
|
|
57
|
+
loading=${this.loading}
|
|
58
|
+
alt=""
|
|
59
|
+
@error=${this.handleImageLoadError}
|
|
60
|
+
/>
|
|
61
|
+
`;
|
|
62
|
+
let avatarWithoutImage = html ``;
|
|
63
|
+
if (this.initials) {
|
|
64
|
+
avatarWithoutImage = html `
|
|
65
|
+
<div class="initials">${this.initials}</div>
|
|
66
|
+
`;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
avatarWithoutImage = html `
|
|
70
|
+
<div class="icon" part="icon" aria-hidden="true">
|
|
71
|
+
<slot name="icon">
|
|
72
|
+
<pc-icon
|
|
73
|
+
library="system"
|
|
74
|
+
icon-style="solid"
|
|
75
|
+
name="user"
|
|
76
|
+
></pc-icon>
|
|
77
|
+
</slot>
|
|
78
|
+
</div>
|
|
79
|
+
`;
|
|
80
|
+
}
|
|
81
|
+
return html `
|
|
82
|
+
<div
|
|
83
|
+
part="base"
|
|
84
|
+
class=${classMap({
|
|
85
|
+
avatar: true,
|
|
86
|
+
circle: this.shape === "circle",
|
|
87
|
+
rounded: this.shape === "rounded",
|
|
88
|
+
square: this.shape === "square",
|
|
89
|
+
})}
|
|
90
|
+
role="img"
|
|
91
|
+
aria-label=${this.label}
|
|
92
|
+
>
|
|
93
|
+
${this.image && !this.hasError
|
|
94
|
+
? avatarWithImage
|
|
95
|
+
: avatarWithoutImage}
|
|
96
|
+
</div>
|
|
97
|
+
`;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
PcAvatar.styles = styles;
|
|
101
|
+
/** @internal This is an internal property. */
|
|
102
|
+
PcAvatar.dependencies = { "pc-icon": PcIcon };
|
|
103
|
+
__decorate([
|
|
104
|
+
state(),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], PcAvatar.prototype, "hasError", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
property(),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], PcAvatar.prototype, "image", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
property(),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], PcAvatar.prototype, "label", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
property(),
|
|
117
|
+
__metadata("design:type", Object)
|
|
118
|
+
], PcAvatar.prototype, "initials", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
property(),
|
|
121
|
+
__metadata("design:type", String)
|
|
122
|
+
], PcAvatar.prototype, "loading", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
property({ reflect: true }),
|
|
125
|
+
__metadata("design:type", String)
|
|
126
|
+
], PcAvatar.prototype, "shape", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
watch("image"),
|
|
129
|
+
__metadata("design:type", Function),
|
|
130
|
+
__metadata("design:paramtypes", []),
|
|
131
|
+
__metadata("design:returntype", void 0)
|
|
132
|
+
], PcAvatar.prototype, "handleImageChange", null);
|
|
133
|
+
PcAvatar = __decorate([
|
|
134
|
+
customElement("pc-avatar")
|
|
135
|
+
], PcAvatar);
|
|
136
|
+
|
|
137
|
+
export { PcAvatar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
|
|
3
|
+
const styles = css `
|
|
4
|
+
:host {
|
|
5
|
+
--size: 3rem;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.avatar {
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
position: relative;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
width: var(--size);
|
|
15
|
+
height: var(--size);
|
|
16
|
+
background-color: var(--pc-color-neutral-500);
|
|
17
|
+
color: var(--pc-color-neutral-0);
|
|
18
|
+
font-family: var(--pc-font-sans);
|
|
19
|
+
font-size: calc(var(--size) * 0.4);
|
|
20
|
+
font-weight: var(--pc-font-weight-bold);
|
|
21
|
+
user-select: none;
|
|
22
|
+
-webkit-user-select: none;
|
|
23
|
+
vertical-align: middle;
|
|
24
|
+
transition: all var(--pc-transition-fast) ease-in-out;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.circle,
|
|
28
|
+
.circle .image {
|
|
29
|
+
border-radius: var(--pc-border-radius-circle);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.rounded,
|
|
33
|
+
.rounded .image {
|
|
34
|
+
border-radius: var(--pc-border-radius-m);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.square {
|
|
38
|
+
border-radius: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.icon {
|
|
42
|
+
display: flex;
|
|
43
|
+
position: absolute;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
top: 0;
|
|
47
|
+
left: 0;
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.initials {
|
|
53
|
+
line-height: 1;
|
|
54
|
+
text-transform: uppercase;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.image {
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: 0;
|
|
60
|
+
left: 0;
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
object-fit: cover;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
|
|
68
|
+
export { styles };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import type { CSSResultGroup } from "lit";
|
|
3
|
+
/**
|
|
4
|
+
* @summary Badges are used to draw attention and display statuses or counts.
|
|
5
|
+
* @status experimental
|
|
6
|
+
* @since 0.1.0
|
|
7
|
+
*
|
|
8
|
+
* @slot — The badge’s content.
|
|
9
|
+
*
|
|
10
|
+
* @csspart base — The component’s base wrapper.
|
|
11
|
+
*/
|
|
12
|
+
export declare class PcBadge extends LitElement {
|
|
13
|
+
static styles: CSSResultGroup;
|
|
14
|
+
/** The badge’s appearance. */
|
|
15
|
+
appearance: "primary" | "success" | "neutral" | "warning" | "danger";
|
|
16
|
+
/** Gives the badge a rounded rectangle shape. */
|
|
17
|
+
rounded: boolean;
|
|
18
|
+
/** Makes the badge pulsate to draw attention. */
|
|
19
|
+
pulse: boolean;
|
|
20
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { LitElement, html } from 'lit';
|
|
3
|
+
import { property, customElement } from 'lit/decorators.js';
|
|
4
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
5
|
+
import { styles } from './badge.styles.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @summary Badges are used to draw attention and display statuses or counts.
|
|
9
|
+
* @status experimental
|
|
10
|
+
* @since 0.1.0
|
|
11
|
+
*
|
|
12
|
+
* @slot — The badge’s content.
|
|
13
|
+
*
|
|
14
|
+
* @csspart base — The component’s base wrapper.
|
|
15
|
+
*/
|
|
16
|
+
let PcBadge = class PcBadge extends LitElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
/** The badge’s appearance. */
|
|
20
|
+
this.appearance = "primary";
|
|
21
|
+
/** Gives the badge a rounded rectangle shape. */
|
|
22
|
+
this.rounded = false;
|
|
23
|
+
/** Makes the badge pulsate to draw attention. */
|
|
24
|
+
this.pulse = false;
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return html `
|
|
28
|
+
<span
|
|
29
|
+
part="base"
|
|
30
|
+
class=${classMap({
|
|
31
|
+
"badge": true,
|
|
32
|
+
"badge-primary": this.appearance === "primary",
|
|
33
|
+
"badge-success": this.appearance === "success",
|
|
34
|
+
"badge-neutral": this.appearance === "neutral",
|
|
35
|
+
"badge-warning": this.appearance === "warning",
|
|
36
|
+
"badge-danger": this.appearance === "danger",
|
|
37
|
+
"badge-rounded": this.rounded === true,
|
|
38
|
+
"badge-pulse": this.pulse === true,
|
|
39
|
+
})}
|
|
40
|
+
role="status"
|
|
41
|
+
>
|
|
42
|
+
<slot></slot>
|
|
43
|
+
</span>
|
|
44
|
+
`;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
PcBadge.styles = styles;
|
|
48
|
+
__decorate([
|
|
49
|
+
property({ reflect: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], PcBadge.prototype, "appearance", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
property({ type: Boolean, reflect: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], PcBadge.prototype, "rounded", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
property({ type: Boolean, reflect: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], PcBadge.prototype, "pulse", void 0);
|
|
60
|
+
PcBadge = __decorate([
|
|
61
|
+
customElement("pc-badge")
|
|
62
|
+
], PcBadge);
|
|
63
|
+
|
|
64
|
+
export { PcBadge };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|