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,483 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { autoUpdate, offset, size, flip, shift, arrow, platform, computePosition } from '@floating-ui/dom';
|
|
3
|
+
import { LitElement, html } from 'lit';
|
|
4
|
+
import { query, property, customElement } from 'lit/decorators.js';
|
|
5
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
6
|
+
import { offsetParent } from 'composed-offset-position';
|
|
7
|
+
import { emit } from '../../internal/emit.js';
|
|
8
|
+
import { styles } from './popup.styles.js';
|
|
9
|
+
|
|
10
|
+
//! Popup is a low‐level utility built specifically for positioning elements. Do not mistake it for a tooltip or similar because it does not facilitate an accessible experience! Almost every correct usage of it will involve building other components. It should rarely, if ever, occur directly in your HTML.
|
|
11
|
+
function isVirtualElement(e) {
|
|
12
|
+
return (e !== null &&
|
|
13
|
+
typeof e === "object" &&
|
|
14
|
+
"getBoundingClientRect" in e &&
|
|
15
|
+
("contextElement" in e ? e.contextElement instanceof Element : true));
|
|
16
|
+
}
|
|
17
|
+
let PcPopup = class PcPopup extends LitElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.active = false;
|
|
21
|
+
this.arrow = false;
|
|
22
|
+
this.arrowPadding = 10;
|
|
23
|
+
this.arrowPlacement = "anchor";
|
|
24
|
+
this.autoSizePadding = 0;
|
|
25
|
+
this.distance = 0;
|
|
26
|
+
this.flip = false;
|
|
27
|
+
this.flipFallbackPlacements = "";
|
|
28
|
+
this.flipFallbackStrategy = "best-fit";
|
|
29
|
+
this.flipPadding = 0;
|
|
30
|
+
this.hoverBridge = false;
|
|
31
|
+
this.placement = "top";
|
|
32
|
+
this.shift = false;
|
|
33
|
+
this.shiftPadding = 0;
|
|
34
|
+
this.skidding = 0;
|
|
35
|
+
this.strategy = "absolute";
|
|
36
|
+
this.updateHoverBridge = () => {
|
|
37
|
+
if (this.hoverBridge && this.anchorElement) {
|
|
38
|
+
const anchorRect = this.anchorElement.getBoundingClientRect();
|
|
39
|
+
const popupRect = this.popup.getBoundingClientRect();
|
|
40
|
+
const isVertical = this.placement.includes("top") ||
|
|
41
|
+
this.placement.includes("bottom");
|
|
42
|
+
let topLeftX = 0;
|
|
43
|
+
let topLeftY = 0;
|
|
44
|
+
let topRightX = 0;
|
|
45
|
+
let topRightY = 0;
|
|
46
|
+
let bottomLeftX = 0;
|
|
47
|
+
let bottomLeftY = 0;
|
|
48
|
+
let bottomRightX = 0;
|
|
49
|
+
let bottomRightY = 0;
|
|
50
|
+
if (isVertical) {
|
|
51
|
+
if (anchorRect.top < popupRect.top) {
|
|
52
|
+
topLeftX = anchorRect.left;
|
|
53
|
+
topLeftY = anchorRect.bottom;
|
|
54
|
+
topRightX = anchorRect.right;
|
|
55
|
+
topRightY = anchorRect.bottom;
|
|
56
|
+
bottomLeftX = popupRect.left;
|
|
57
|
+
bottomLeftY = popupRect.top;
|
|
58
|
+
bottomRightX = popupRect.right;
|
|
59
|
+
bottomRightY = popupRect.top;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
topLeftX = popupRect.left;
|
|
63
|
+
topLeftY = popupRect.bottom;
|
|
64
|
+
topRightX = popupRect.right;
|
|
65
|
+
topRightY = popupRect.bottom;
|
|
66
|
+
bottomLeftX = anchorRect.left;
|
|
67
|
+
bottomLeftY = anchorRect.top;
|
|
68
|
+
bottomRightX = anchorRect.right;
|
|
69
|
+
bottomRightY = anchorRect.top;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
if (anchorRect.left < popupRect.left) {
|
|
74
|
+
topLeftX = anchorRect.right;
|
|
75
|
+
topLeftY = anchorRect.top;
|
|
76
|
+
topRightX = popupRect.left;
|
|
77
|
+
topRightY = popupRect.top;
|
|
78
|
+
bottomLeftX = anchorRect.right;
|
|
79
|
+
bottomLeftY = anchorRect.bottom;
|
|
80
|
+
bottomRightX = popupRect.left;
|
|
81
|
+
bottomRightY = popupRect.bottom;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
topLeftX = popupRect.right;
|
|
85
|
+
topLeftY = popupRect.top;
|
|
86
|
+
topRightX = anchorRect.left;
|
|
87
|
+
topRightY = anchorRect.top;
|
|
88
|
+
bottomLeftX = popupRect.right;
|
|
89
|
+
bottomLeftY = popupRect.bottom;
|
|
90
|
+
bottomRightX = anchorRect.left;
|
|
91
|
+
bottomRightY = anchorRect.bottom;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
this.style.setProperty("--hover-bridge-top-left-x", `${topLeftX}px`);
|
|
95
|
+
this.style.setProperty("--hover-bridge-top-left-y", `${topLeftY}px`);
|
|
96
|
+
this.style.setProperty("--hover-bridge-top-right-x", `${topRightX}px`);
|
|
97
|
+
this.style.setProperty("--hover-bridge-top-right-y", `${topRightY}px`);
|
|
98
|
+
this.style.setProperty("--hover-bridge-bottom-left-x", `${bottomLeftX}px`);
|
|
99
|
+
this.style.setProperty("--hover-bridge-bottom-left-y", `${bottomLeftY}px`);
|
|
100
|
+
this.style.setProperty("--hover-bridge-bottom-right-x", `${bottomRightX}px`);
|
|
101
|
+
this.style.setProperty("--hover-bridge-bottom-right-y", `${bottomRightY}px`);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
async connectedCallback() {
|
|
106
|
+
super.connectedCallback();
|
|
107
|
+
await this.updateComplete;
|
|
108
|
+
this.start();
|
|
109
|
+
}
|
|
110
|
+
disconnectedCallback() {
|
|
111
|
+
super.disconnectedCallback();
|
|
112
|
+
this.stop();
|
|
113
|
+
}
|
|
114
|
+
async updated(changedProps) {
|
|
115
|
+
super.updated(changedProps);
|
|
116
|
+
if (changedProps.has("active")) {
|
|
117
|
+
if (this.active) {
|
|
118
|
+
this.start();
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
this.stop();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
if (changedProps.has("anchor")) {
|
|
125
|
+
this.handleAnchorChange();
|
|
126
|
+
}
|
|
127
|
+
if (this.active) {
|
|
128
|
+
await this.updateComplete;
|
|
129
|
+
this.reposition();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
async handleAnchorChange() {
|
|
133
|
+
await this.stop();
|
|
134
|
+
if (this.anchor && typeof this.anchor === "string") {
|
|
135
|
+
const root = this.getRootNode();
|
|
136
|
+
this.anchorElement = root.getElementById(this.anchor);
|
|
137
|
+
}
|
|
138
|
+
else if (this.anchor instanceof Element ||
|
|
139
|
+
isVirtualElement(this.anchor)) {
|
|
140
|
+
this.anchorElement = this.anchor;
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
this.anchorElement =
|
|
144
|
+
this.querySelector('[slot="anchor"]');
|
|
145
|
+
}
|
|
146
|
+
if (this.anchorElement instanceof HTMLSlotElement) {
|
|
147
|
+
this.anchorElement = this.anchorElement.assignedElements({
|
|
148
|
+
flatten: true,
|
|
149
|
+
})[0];
|
|
150
|
+
}
|
|
151
|
+
if (this.anchorElement && this.active) {
|
|
152
|
+
this.start();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
start() {
|
|
156
|
+
if (!this.anchorElement || !this.active) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
this.cleanup = autoUpdate(this.anchorElement, this.popup, () => {
|
|
160
|
+
this.reposition();
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
async stop() {
|
|
164
|
+
return new Promise((resolve) => {
|
|
165
|
+
if (this.cleanup) {
|
|
166
|
+
this.cleanup();
|
|
167
|
+
this.cleanup = undefined;
|
|
168
|
+
this.removeAttribute("data-current-placement");
|
|
169
|
+
this.style.removeProperty("--auto-size-available-width");
|
|
170
|
+
this.style.removeProperty("--auto-size-available-height");
|
|
171
|
+
requestAnimationFrame(() => resolve());
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
resolve();
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
reposition() {
|
|
179
|
+
if (!this.anchorElement || !this.active) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
const middleware = [
|
|
183
|
+
offset({ mainAxis: this.distance, crossAxis: this.skidding }),
|
|
184
|
+
];
|
|
185
|
+
if (this.sync) {
|
|
186
|
+
middleware.push(size({
|
|
187
|
+
apply: ({ rects }) => {
|
|
188
|
+
const syncWidth = this.sync === "width" || this.sync === "both";
|
|
189
|
+
const syncHeight = this.sync === "height" || this.sync === "both";
|
|
190
|
+
this.popup.style.width = syncWidth
|
|
191
|
+
? `${rects.reference.width}px`
|
|
192
|
+
: "";
|
|
193
|
+
this.popup.style.height = syncHeight
|
|
194
|
+
? `${rects.reference.height}px`
|
|
195
|
+
: "";
|
|
196
|
+
},
|
|
197
|
+
}));
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
this.popup.style.width = "";
|
|
201
|
+
this.popup.style.height = "";
|
|
202
|
+
}
|
|
203
|
+
if (this.flip) {
|
|
204
|
+
middleware.push(flip({
|
|
205
|
+
boundary: this.flipBoundary,
|
|
206
|
+
// @ts-expect-error — We’re converting the property type of “fallbackPlacements” from a string to an array
|
|
207
|
+
fallbackPlacements: this.flipFallbackPlacements,
|
|
208
|
+
fallbackStrategy: this.flipFallbackStrategy === "best-fit"
|
|
209
|
+
? "bestFit"
|
|
210
|
+
: "initialPlacement",
|
|
211
|
+
padding: this.flipPadding,
|
|
212
|
+
}));
|
|
213
|
+
}
|
|
214
|
+
if (this.shift) {
|
|
215
|
+
middleware.push(shift({
|
|
216
|
+
boundary: this.shiftBoundary,
|
|
217
|
+
padding: this.shiftPadding,
|
|
218
|
+
}));
|
|
219
|
+
}
|
|
220
|
+
if (this.autoSize) {
|
|
221
|
+
middleware.push(size({
|
|
222
|
+
boundary: this.autoSizeBoundary,
|
|
223
|
+
padding: this.autoSizePadding,
|
|
224
|
+
apply: ({ availableWidth, availableHeight }) => {
|
|
225
|
+
if (this.autoSize === "vertical" ||
|
|
226
|
+
this.autoSize === "both") {
|
|
227
|
+
this.style.setProperty("--auto-size-available-height", `${availableHeight}px`);
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
this.style.removeProperty("--auto-size-available-height");
|
|
231
|
+
}
|
|
232
|
+
if (this.autoSize === "horizontal" ||
|
|
233
|
+
this.autoSize === "both") {
|
|
234
|
+
this.style.setProperty("--auto-size-available-width", `${availableWidth}px`);
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
this.style.removeProperty("--auto-size-available-width");
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
}));
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
this.style.removeProperty("--auto-size-available-width");
|
|
244
|
+
this.style.removeProperty("--auto-size-available-height");
|
|
245
|
+
}
|
|
246
|
+
if (this.arrow) {
|
|
247
|
+
middleware.push(arrow({
|
|
248
|
+
element: this.arrowElement,
|
|
249
|
+
padding: this.arrowPadding,
|
|
250
|
+
}));
|
|
251
|
+
}
|
|
252
|
+
const getOffsetParent = this.strategy === "absolute"
|
|
253
|
+
? (element) => platform.getOffsetParent(element, offsetParent)
|
|
254
|
+
: platform.getOffsetParent;
|
|
255
|
+
computePosition(this.anchorElement, this.popup, {
|
|
256
|
+
placement: this.placement,
|
|
257
|
+
middleware,
|
|
258
|
+
strategy: this.strategy,
|
|
259
|
+
platform: {
|
|
260
|
+
...platform,
|
|
261
|
+
getOffsetParent,
|
|
262
|
+
},
|
|
263
|
+
}).then(({ x, y, middlewareData, placement }) => {
|
|
264
|
+
const isRTL = document.documentElement.dir === "rtl" ||
|
|
265
|
+
(!document.documentElement.dir &&
|
|
266
|
+
getComputedStyle(document.documentElement).direction ===
|
|
267
|
+
"rtl");
|
|
268
|
+
const staticSide = {
|
|
269
|
+
top: "bottom",
|
|
270
|
+
right: "left",
|
|
271
|
+
bottom: "top",
|
|
272
|
+
left: "right",
|
|
273
|
+
}[placement.split("-")[0]];
|
|
274
|
+
this.setAttribute("data-current-placement", placement);
|
|
275
|
+
Object.assign(this.popup.style, {
|
|
276
|
+
left: `${x}px`,
|
|
277
|
+
top: `${y}px`,
|
|
278
|
+
});
|
|
279
|
+
if (this.arrow) {
|
|
280
|
+
const arrowX = middlewareData.arrow.x;
|
|
281
|
+
const arrowY = middlewareData.arrow.y;
|
|
282
|
+
let top = "";
|
|
283
|
+
let right = "";
|
|
284
|
+
let bottom = "";
|
|
285
|
+
let left = "";
|
|
286
|
+
if (this.arrowPlacement === "start") {
|
|
287
|
+
const value = typeof arrowX === "number"
|
|
288
|
+
? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))`
|
|
289
|
+
: "";
|
|
290
|
+
top =
|
|
291
|
+
typeof arrowY === "number"
|
|
292
|
+
? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))`
|
|
293
|
+
: "";
|
|
294
|
+
right = isRTL ? value : "";
|
|
295
|
+
left = isRTL ? "" : value;
|
|
296
|
+
}
|
|
297
|
+
else if (this.arrowPlacement === "end") {
|
|
298
|
+
const value = typeof arrowX === "number"
|
|
299
|
+
? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))`
|
|
300
|
+
: "";
|
|
301
|
+
right = isRTL ? "" : value;
|
|
302
|
+
left = isRTL ? value : "";
|
|
303
|
+
bottom =
|
|
304
|
+
typeof arrowY === "number"
|
|
305
|
+
? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))`
|
|
306
|
+
: "";
|
|
307
|
+
}
|
|
308
|
+
else if (this.arrowPlacement === "center") {
|
|
309
|
+
left =
|
|
310
|
+
typeof arrowX === "number"
|
|
311
|
+
? `calc(50% - var(--arrow-size-diagonal))`
|
|
312
|
+
: "";
|
|
313
|
+
top =
|
|
314
|
+
typeof arrowY === "number"
|
|
315
|
+
? `calc(50% - var(--arrow-size-diagonal))`
|
|
316
|
+
: "";
|
|
317
|
+
}
|
|
318
|
+
else {
|
|
319
|
+
left = typeof arrowX === "number" ? `${arrowX}px` : "";
|
|
320
|
+
top = typeof arrowY === "number" ? `${arrowY}px` : "";
|
|
321
|
+
}
|
|
322
|
+
Object.assign(this.arrowElement.style, {
|
|
323
|
+
top,
|
|
324
|
+
right,
|
|
325
|
+
bottom,
|
|
326
|
+
left,
|
|
327
|
+
[staticSide]: "calc(var(--arrow-size-diagonal) * -1)",
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
requestAnimationFrame(() => this.updateHoverBridge());
|
|
332
|
+
emit(this, "pc-reposition");
|
|
333
|
+
}
|
|
334
|
+
render() {
|
|
335
|
+
return html `
|
|
336
|
+
<slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
|
|
337
|
+
|
|
338
|
+
<span
|
|
339
|
+
part="hover-bridge"
|
|
340
|
+
class=${classMap({
|
|
341
|
+
"popup-hover-bridge": true,
|
|
342
|
+
"popup-hover-bridge-visible": this.hoverBridge && this.active,
|
|
343
|
+
})}
|
|
344
|
+
></span>
|
|
345
|
+
|
|
346
|
+
<div
|
|
347
|
+
part="popup"
|
|
348
|
+
class=${classMap({
|
|
349
|
+
"popup": true,
|
|
350
|
+
"popup-active": this.active === true,
|
|
351
|
+
"popup-fixed": this.strategy === "fixed",
|
|
352
|
+
"popup-has-arrow": this.arrow === true,
|
|
353
|
+
})}
|
|
354
|
+
>
|
|
355
|
+
<slot></slot>
|
|
356
|
+
${this.arrow
|
|
357
|
+
? html `
|
|
358
|
+
<div
|
|
359
|
+
part="arrow"
|
|
360
|
+
class="popup-arrow"
|
|
361
|
+
role="presentation"
|
|
362
|
+
></div>
|
|
363
|
+
`
|
|
364
|
+
: ""}
|
|
365
|
+
</div>
|
|
366
|
+
`;
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
PcPopup.styles = styles;
|
|
370
|
+
__decorate([
|
|
371
|
+
query(".popup"),
|
|
372
|
+
__metadata("design:type", HTMLElement)
|
|
373
|
+
], PcPopup.prototype, "popup", void 0);
|
|
374
|
+
__decorate([
|
|
375
|
+
query(".popup-arrow"),
|
|
376
|
+
__metadata("design:type", HTMLElement)
|
|
377
|
+
], PcPopup.prototype, "arrowElement", void 0);
|
|
378
|
+
__decorate([
|
|
379
|
+
property({ type: Boolean, reflect: true }),
|
|
380
|
+
__metadata("design:type", Object)
|
|
381
|
+
], PcPopup.prototype, "active", void 0);
|
|
382
|
+
__decorate([
|
|
383
|
+
property(),
|
|
384
|
+
__metadata("design:type", Object)
|
|
385
|
+
], PcPopup.prototype, "anchor", void 0);
|
|
386
|
+
__decorate([
|
|
387
|
+
property({ type: Boolean }),
|
|
388
|
+
__metadata("design:type", Object)
|
|
389
|
+
], PcPopup.prototype, "arrow", void 0);
|
|
390
|
+
__decorate([
|
|
391
|
+
property({ attribute: "arrow-padding", type: Number }),
|
|
392
|
+
__metadata("design:type", Object)
|
|
393
|
+
], PcPopup.prototype, "arrowPadding", void 0);
|
|
394
|
+
__decorate([
|
|
395
|
+
property({ attribute: "arrow-placement" }),
|
|
396
|
+
__metadata("design:type", String)
|
|
397
|
+
], PcPopup.prototype, "arrowPlacement", void 0);
|
|
398
|
+
__decorate([
|
|
399
|
+
property({ attribute: "auto-size" }),
|
|
400
|
+
__metadata("design:type", String)
|
|
401
|
+
], PcPopup.prototype, "autoSize", void 0);
|
|
402
|
+
__decorate([
|
|
403
|
+
property({ type: Object }),
|
|
404
|
+
__metadata("design:type", Object)
|
|
405
|
+
], PcPopup.prototype, "autoSizeBoundary", void 0);
|
|
406
|
+
__decorate([
|
|
407
|
+
property({ attribute: "auto-size-padding", type: Number }),
|
|
408
|
+
__metadata("design:type", Object)
|
|
409
|
+
], PcPopup.prototype, "autoSizePadding", void 0);
|
|
410
|
+
__decorate([
|
|
411
|
+
property({ type: Number }),
|
|
412
|
+
__metadata("design:type", Object)
|
|
413
|
+
], PcPopup.prototype, "distance", void 0);
|
|
414
|
+
__decorate([
|
|
415
|
+
property({ type: Boolean }),
|
|
416
|
+
__metadata("design:type", Object)
|
|
417
|
+
], PcPopup.prototype, "flip", void 0);
|
|
418
|
+
__decorate([
|
|
419
|
+
property({ type: Object }),
|
|
420
|
+
__metadata("design:type", Object)
|
|
421
|
+
], PcPopup.prototype, "flipBoundary", void 0);
|
|
422
|
+
__decorate([
|
|
423
|
+
property({
|
|
424
|
+
attribute: "flip-fallback-placements",
|
|
425
|
+
converter: {
|
|
426
|
+
fromAttribute: (value) => {
|
|
427
|
+
return value
|
|
428
|
+
.split(" ")
|
|
429
|
+
.map((p) => p.trim())
|
|
430
|
+
.filter((p) => p !== "");
|
|
431
|
+
},
|
|
432
|
+
toAttribute: (value) => {
|
|
433
|
+
return value.join(" ");
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
}),
|
|
437
|
+
__metadata("design:type", Object)
|
|
438
|
+
], PcPopup.prototype, "flipFallbackPlacements", void 0);
|
|
439
|
+
__decorate([
|
|
440
|
+
property({ attribute: "flip-fallback-strategy" }),
|
|
441
|
+
__metadata("design:type", String)
|
|
442
|
+
], PcPopup.prototype, "flipFallbackStrategy", void 0);
|
|
443
|
+
__decorate([
|
|
444
|
+
property({ attribute: "flip-padding", type: Number }),
|
|
445
|
+
__metadata("design:type", Object)
|
|
446
|
+
], PcPopup.prototype, "flipPadding", void 0);
|
|
447
|
+
__decorate([
|
|
448
|
+
property({ attribute: "hover-bridge", type: Boolean }),
|
|
449
|
+
__metadata("design:type", Object)
|
|
450
|
+
], PcPopup.prototype, "hoverBridge", void 0);
|
|
451
|
+
__decorate([
|
|
452
|
+
property({ reflect: true }),
|
|
453
|
+
__metadata("design:type", String)
|
|
454
|
+
], PcPopup.prototype, "placement", void 0);
|
|
455
|
+
__decorate([
|
|
456
|
+
property({ type: Boolean }),
|
|
457
|
+
__metadata("design:type", Object)
|
|
458
|
+
], PcPopup.prototype, "shift", void 0);
|
|
459
|
+
__decorate([
|
|
460
|
+
property({ type: Object }),
|
|
461
|
+
__metadata("design:type", Object)
|
|
462
|
+
], PcPopup.prototype, "shiftBoundary", void 0);
|
|
463
|
+
__decorate([
|
|
464
|
+
property({ attribute: "shift-padding", type: Number }),
|
|
465
|
+
__metadata("design:type", Object)
|
|
466
|
+
], PcPopup.prototype, "shiftPadding", void 0);
|
|
467
|
+
__decorate([
|
|
468
|
+
property({ type: Number }),
|
|
469
|
+
__metadata("design:type", Object)
|
|
470
|
+
], PcPopup.prototype, "skidding", void 0);
|
|
471
|
+
__decorate([
|
|
472
|
+
property({ reflect: true }),
|
|
473
|
+
__metadata("design:type", String)
|
|
474
|
+
], PcPopup.prototype, "strategy", void 0);
|
|
475
|
+
__decorate([
|
|
476
|
+
property(),
|
|
477
|
+
__metadata("design:type", String)
|
|
478
|
+
], PcPopup.prototype, "sync", void 0);
|
|
479
|
+
PcPopup = __decorate([
|
|
480
|
+
customElement("pc-popup")
|
|
481
|
+
], PcPopup);
|
|
482
|
+
|
|
483
|
+
export { PcPopup };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PcPopup as PcPopup$1 } from './popup.component.js';
|
|
2
|
+
|
|
3
|
+
//! Popup is a low‐level utility built specifically for positioning elements. Do not mistake it for a tooltip or similar because it does not facilitate an accessible experience! Almost every correct usage of it will involve building other components. It should rarely, if ever, occur directly in your HTML.
|
|
4
|
+
var PcPopup = PcPopup$1;
|
|
5
|
+
|
|
6
|
+
export { PcPopup$1 as PcPopup, PcPopup as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
|
|
3
|
+
//! Popup is a low‐level utility built specifically for positioning elements. Do not mistake it for a tooltip or similar because it does not facilitate an accessible experience! Almost every correct usage of it will involve building other components. It should rarely, if ever, occur directly in your HTML.
|
|
4
|
+
const styles = css `
|
|
5
|
+
:host {
|
|
6
|
+
--arrow-color: var(--pc-color-neutral-200);
|
|
7
|
+
--arrow-size: 6px;
|
|
8
|
+
|
|
9
|
+
/* These properties are computed to account for the arrow’s dimensions
|
|
10
|
+
after being rotated 45°. The constant 0.7071 is derived from sin(45°),
|
|
11
|
+
which is the diagonal size of the arrow’s container after rotating. */
|
|
12
|
+
--arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);
|
|
13
|
+
--arrow-padding-offset: calc(
|
|
14
|
+
var(--arrow-size-diagonal) - var(--arrow-size)
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
display: contents;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.popup {
|
|
21
|
+
position: absolute;
|
|
22
|
+
isolation: isolate;
|
|
23
|
+
max-width: var(--auto-size-available-width, none);
|
|
24
|
+
max-height: var(--auto-size-available-height, none);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.popup-fixed {
|
|
28
|
+
position: fixed;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.popup:not(.popup-active) {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.popup-arrow {
|
|
36
|
+
position: absolute;
|
|
37
|
+
width: calc(var(--arrow-size-diagonal) * 2);
|
|
38
|
+
height: calc(var(--arrow-size-diagonal) * 2);
|
|
39
|
+
background-color: var(--arrow-color);
|
|
40
|
+
rotate: 45deg;
|
|
41
|
+
z-index: 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.popup-hover-bridge:not(.popup-hover-bridge-visible) {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.popup-hover-bridge {
|
|
49
|
+
position: fixed;
|
|
50
|
+
inset: 0;
|
|
51
|
+
z-index: calc(var(--pc-z-index-dropdown) - 1);
|
|
52
|
+
clip-path: polygon(
|
|
53
|
+
var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),
|
|
54
|
+
var(--hover-bridge-top-right-x, 0)
|
|
55
|
+
var(--hover-bridge-top-right-y, 0),
|
|
56
|
+
var(--hover-bridge-bottom-right-x, 0)
|
|
57
|
+
var(--hover-bridge-bottom-right-y, 0),
|
|
58
|
+
var(--hover-bridge-bottom-left-x, 0)
|
|
59
|
+
var(--hover-bridge-bottom-left-y, 0)
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
export { styles };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import type { CSSResultGroup } from "lit";
|
|
3
|
+
export declare class PcQrCode extends LitElement {
|
|
4
|
+
static styles: CSSResultGroup;
|
|
5
|
+
canvas: HTMLElement;
|
|
6
|
+
background: string;
|
|
7
|
+
errorCorrection: "L" | "M" | "Q" | "H";
|
|
8
|
+
fill: string;
|
|
9
|
+
label: string;
|
|
10
|
+
radius: number;
|
|
11
|
+
size: number;
|
|
12
|
+
value: string;
|
|
13
|
+
firstUpdated(): void;
|
|
14
|
+
generate(): void;
|
|
15
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { LitElement, html } from 'lit';
|
|
3
|
+
import { query, property, customElement } from 'lit/decorators.js';
|
|
4
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
5
|
+
import { watch } from '../../internal/watch.js';
|
|
6
|
+
import QrCreator from 'qr-creator';
|
|
7
|
+
import { styles } from './qr-code.styles.js';
|
|
8
|
+
|
|
9
|
+
let PcQrCode = class PcQrCode extends LitElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.background = "white";
|
|
13
|
+
this.errorCorrection = "M";
|
|
14
|
+
this.fill = "black";
|
|
15
|
+
this.label = "";
|
|
16
|
+
this.radius = 0;
|
|
17
|
+
this.size = 128;
|
|
18
|
+
this.value = "";
|
|
19
|
+
}
|
|
20
|
+
firstUpdated() {
|
|
21
|
+
this.generate();
|
|
22
|
+
}
|
|
23
|
+
generate() {
|
|
24
|
+
if (!this.hasUpdated) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
QrCreator.render({
|
|
28
|
+
background: this.background,
|
|
29
|
+
ecLevel: this.errorCorrection,
|
|
30
|
+
fill: this.fill,
|
|
31
|
+
radius: this.radius,
|
|
32
|
+
size: this.size * 2,
|
|
33
|
+
text: this.value,
|
|
34
|
+
}, this.canvas);
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return html `
|
|
38
|
+
<canvas
|
|
39
|
+
class="qr-code"
|
|
40
|
+
part="base"
|
|
41
|
+
role="img"
|
|
42
|
+
style=${styleMap({
|
|
43
|
+
width: `${this.size}px`,
|
|
44
|
+
height: `${this.size}px`,
|
|
45
|
+
})}
|
|
46
|
+
aria-label=${this.label?.length > 0 ? this.label : this.value}
|
|
47
|
+
></canvas>
|
|
48
|
+
`;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
PcQrCode.styles = styles;
|
|
52
|
+
__decorate([
|
|
53
|
+
query("canvas"),
|
|
54
|
+
__metadata("design:type", HTMLElement)
|
|
55
|
+
], PcQrCode.prototype, "canvas", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
property(),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], PcQrCode.prototype, "background", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
property({ attribute: "error-correction" }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], PcQrCode.prototype, "errorCorrection", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
property(),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], PcQrCode.prototype, "fill", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
property(),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], PcQrCode.prototype, "label", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
property({ type: Number }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], PcQrCode.prototype, "radius", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
property({ type: Number }),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], PcQrCode.prototype, "size", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
property(),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], PcQrCode.prototype, "value", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
watch(["background", "errorCorrection", "fill", "radius", "size", "value"]),
|
|
86
|
+
__metadata("design:type", Function),
|
|
87
|
+
__metadata("design:paramtypes", []),
|
|
88
|
+
__metadata("design:returntype", void 0)
|
|
89
|
+
], PcQrCode.prototype, "generate", null);
|
|
90
|
+
PcQrCode = __decorate([
|
|
91
|
+
customElement("pc-qr-code")
|
|
92
|
+
], PcQrCode);
|
|
93
|
+
|
|
94
|
+
export { PcQrCode };
|