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,47 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import type { CSSResultGroup, HTMLTemplateResult } from "lit";
|
|
3
|
+
/**
|
|
4
|
+
* @summary Icons are visual symbols that represent actions, objects or ideas.
|
|
5
|
+
* @status experimental
|
|
6
|
+
* @since 0.1.0
|
|
7
|
+
*
|
|
8
|
+
* @event pc-load — Emitted when the icon has loaded. When using `spriteSheet: true`, this will not emit.
|
|
9
|
+
* @event pc-error — Emitted when the icon fails to load due to an error. When using `spriteSheet: true`, this will not emit.
|
|
10
|
+
*
|
|
11
|
+
* @csspart svg — The component’s internal SVG element.
|
|
12
|
+
* @csspart use — The `<use>` element generated when using `spriteSheet: true`.
|
|
13
|
+
*
|
|
14
|
+
* @cssproperty --fa-primary-color — The primary colour for the primary layer in duotone icons.
|
|
15
|
+
* @cssproperty --fa-secondary-color — The secondary colour for the secondary layer in duotone icons.
|
|
16
|
+
* @cssproperty --fa-primary-opacity — The primary opacity for the primary layer in duotone icons.
|
|
17
|
+
* @cssproperty --fa-secondary-opacity — The secondary opacity for the secondary layer in duotone icons.
|
|
18
|
+
*/
|
|
19
|
+
export declare class PcIcon extends LitElement {
|
|
20
|
+
static styles: CSSResultGroup;
|
|
21
|
+
private initialRender;
|
|
22
|
+
private resolveIcon;
|
|
23
|
+
private svg;
|
|
24
|
+
/** The name of the icon to render. Available names depend on the icon library being used. */
|
|
25
|
+
name?: string;
|
|
26
|
+
/** The icon style to use for the icon. If not configured, this only works for the default and Font Awesome Pro icon libraries. */
|
|
27
|
+
iconStyle?: string;
|
|
28
|
+
/** Sets the width of the icon to 1.25em (20px) and centres it. It’s similar to the Font Awesome class `fa-fw`. */
|
|
29
|
+
fixedWidth: boolean;
|
|
30
|
+
/** Swaps the opacity of duotone icons. Has no effect on icon libraries that aren’t the default one or Font Awesome Pro one. */
|
|
31
|
+
swapOpacity: boolean;
|
|
32
|
+
/** The external URL of an SVG file. Make sure you trust the content you are included, as it will be executed as code and can result in XSS attacks. */
|
|
33
|
+
src?: string;
|
|
34
|
+
/** A label to include for assistive devices. If omitted, the icon will be considered presentational and ignored by assistive devices. */
|
|
35
|
+
label: string;
|
|
36
|
+
/** The name of a registered icon library. */
|
|
37
|
+
library: string;
|
|
38
|
+
connectedCallback(): void;
|
|
39
|
+
firstUpdated(): void;
|
|
40
|
+
disconnectedCallback(): void;
|
|
41
|
+
private getIconSource;
|
|
42
|
+
/** @internal This is an internal property. */
|
|
43
|
+
handleLabelChange(): void;
|
|
44
|
+
/** @internal This is an internal property. */
|
|
45
|
+
setIcon(): Promise<void>;
|
|
46
|
+
render(): SVGElement | HTMLTemplateResult | null;
|
|
47
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { unwatchIcon, getIconLibrary, watchIcon } from './library.js';
|
|
3
|
+
import { LitElement, html } from 'lit';
|
|
4
|
+
import { state, property, customElement } from 'lit/decorators.js';
|
|
5
|
+
import { isTemplateResult } from 'lit/directive-helpers.js';
|
|
6
|
+
import { watch } from '../../internal/watch.js';
|
|
7
|
+
import { emit } from '../../internal/emit.js';
|
|
8
|
+
import { styles } from './icon.styles.js';
|
|
9
|
+
|
|
10
|
+
const CACHEABLE_ERROR = Symbol();
|
|
11
|
+
const RETRYABLE_ERROR = Symbol();
|
|
12
|
+
let parser;
|
|
13
|
+
const iconCache = new Map();
|
|
14
|
+
/**
|
|
15
|
+
* @summary Icons are visual symbols that represent actions, objects or ideas.
|
|
16
|
+
* @status experimental
|
|
17
|
+
* @since 0.1.0
|
|
18
|
+
*
|
|
19
|
+
* @event pc-load — Emitted when the icon has loaded. When using `spriteSheet: true`, this will not emit.
|
|
20
|
+
* @event pc-error — Emitted when the icon fails to load due to an error. When using `spriteSheet: true`, this will not emit.
|
|
21
|
+
*
|
|
22
|
+
* @csspart svg — The component’s internal SVG element.
|
|
23
|
+
* @csspart use — The `<use>` element generated when using `spriteSheet: true`.
|
|
24
|
+
*
|
|
25
|
+
* @cssproperty --fa-primary-color — The primary colour for the primary layer in duotone icons.
|
|
26
|
+
* @cssproperty --fa-secondary-color — The secondary colour for the secondary layer in duotone icons.
|
|
27
|
+
* @cssproperty --fa-primary-opacity — The primary opacity for the primary layer in duotone icons.
|
|
28
|
+
* @cssproperty --fa-secondary-opacity — The secondary opacity for the secondary layer in duotone icons.
|
|
29
|
+
*/
|
|
30
|
+
let PcIcon = class PcIcon extends LitElement {
|
|
31
|
+
constructor() {
|
|
32
|
+
super(...arguments);
|
|
33
|
+
this.initialRender = false;
|
|
34
|
+
this.svg = null;
|
|
35
|
+
/** Sets the width of the icon to 1.25em (20px) and centres it. It’s similar to the Font Awesome class `fa-fw`. */
|
|
36
|
+
this.fixedWidth = false;
|
|
37
|
+
/** Swaps the opacity of duotone icons. Has no effect on icon libraries that aren’t the default one or Font Awesome Pro one. */
|
|
38
|
+
this.swapOpacity = false;
|
|
39
|
+
/** A label to include for assistive devices. If omitted, the icon will be considered presentational and ignored by assistive devices. */
|
|
40
|
+
this.label = "";
|
|
41
|
+
/** The name of a registered icon library. */
|
|
42
|
+
this.library = "default";
|
|
43
|
+
}
|
|
44
|
+
async resolveIcon(url, library) {
|
|
45
|
+
let fileData;
|
|
46
|
+
if (library?.spriteSheet) {
|
|
47
|
+
this.svg = html `
|
|
48
|
+
<svg part="svg">
|
|
49
|
+
<use part="use" href=${url}></use>
|
|
50
|
+
</svg>
|
|
51
|
+
`;
|
|
52
|
+
return this.svg;
|
|
53
|
+
}
|
|
54
|
+
try {
|
|
55
|
+
fileData = await fetch(url, { mode: "cors" });
|
|
56
|
+
if (!fileData.ok) {
|
|
57
|
+
return fileData.status === 410
|
|
58
|
+
? CACHEABLE_ERROR
|
|
59
|
+
: RETRYABLE_ERROR;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch {
|
|
63
|
+
return RETRYABLE_ERROR;
|
|
64
|
+
}
|
|
65
|
+
try {
|
|
66
|
+
const div = document.createElement("div");
|
|
67
|
+
div.innerHTML = await fileData.text();
|
|
68
|
+
const svg = div.firstElementChild;
|
|
69
|
+
if (svg?.tagName?.toLowerCase() !== "svg") {
|
|
70
|
+
return CACHEABLE_ERROR;
|
|
71
|
+
}
|
|
72
|
+
if (!parser) {
|
|
73
|
+
parser = new DOMParser();
|
|
74
|
+
}
|
|
75
|
+
const doc = parser.parseFromString(svg.outerHTML, "text/html");
|
|
76
|
+
const svgElement = doc.body.querySelector("svg");
|
|
77
|
+
if (!svgElement) {
|
|
78
|
+
return CACHEABLE_ERROR;
|
|
79
|
+
}
|
|
80
|
+
svgElement.part.add("svg");
|
|
81
|
+
return document.adoptNode(svgElement);
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
return CACHEABLE_ERROR;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
connectedCallback() {
|
|
88
|
+
super.connectedCallback();
|
|
89
|
+
watchIcon(this);
|
|
90
|
+
}
|
|
91
|
+
firstUpdated() {
|
|
92
|
+
this.initialRender = true;
|
|
93
|
+
this.setIcon();
|
|
94
|
+
}
|
|
95
|
+
disconnectedCallback() {
|
|
96
|
+
super.disconnectedCallback();
|
|
97
|
+
unwatchIcon(this);
|
|
98
|
+
}
|
|
99
|
+
getIconSource() {
|
|
100
|
+
const library = getIconLibrary(this.library);
|
|
101
|
+
if (this.name && library) {
|
|
102
|
+
return {
|
|
103
|
+
url: library.resolver(this.name, this.iconStyle),
|
|
104
|
+
fromLibrary: true,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
url: this.src,
|
|
109
|
+
fromLibrary: false,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
/** @internal This is an internal property. */
|
|
113
|
+
handleLabelChange() {
|
|
114
|
+
const hasLabel = typeof this.label === "string" && this.label.length > 0;
|
|
115
|
+
if (hasLabel) {
|
|
116
|
+
this.setAttribute("role", "img");
|
|
117
|
+
this.setAttribute("aria-label", this.label);
|
|
118
|
+
this.removeAttribute("aria-hidden");
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
this.removeAttribute("role");
|
|
122
|
+
this.removeAttribute("aria-label");
|
|
123
|
+
this.setAttribute("aria-hidden", "true");
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/** @internal This is an internal property. */
|
|
127
|
+
async setIcon() {
|
|
128
|
+
const { url, fromLibrary } = this.getIconSource();
|
|
129
|
+
const library = fromLibrary ? getIconLibrary(this.library) : undefined;
|
|
130
|
+
if (!url) {
|
|
131
|
+
this.svg = null;
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
let iconResolver = iconCache.get(url);
|
|
135
|
+
if (!iconResolver) {
|
|
136
|
+
iconResolver = this.resolveIcon(url, library);
|
|
137
|
+
iconCache.set(url, iconResolver);
|
|
138
|
+
}
|
|
139
|
+
if (!this.initialRender) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
const svg = await iconResolver;
|
|
143
|
+
if (svg === RETRYABLE_ERROR) {
|
|
144
|
+
iconCache.delete(url);
|
|
145
|
+
}
|
|
146
|
+
if (url !== this.getIconSource().url) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (isTemplateResult(svg)) {
|
|
150
|
+
this.svg = svg;
|
|
151
|
+
if (library) {
|
|
152
|
+
await this.updateComplete;
|
|
153
|
+
const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
|
|
154
|
+
if (typeof library.mutator === "function" && shadowSVG) {
|
|
155
|
+
library.mutator(shadowSVG);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
switch (svg) {
|
|
161
|
+
case RETRYABLE_ERROR:
|
|
162
|
+
case CACHEABLE_ERROR:
|
|
163
|
+
this.svg = null;
|
|
164
|
+
emit(this, "pc-error");
|
|
165
|
+
break;
|
|
166
|
+
default:
|
|
167
|
+
this.svg = svg.cloneNode(true);
|
|
168
|
+
library?.mutator?.(this.svg);
|
|
169
|
+
emit(this, "pc-load");
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
render() {
|
|
173
|
+
return this.svg;
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
PcIcon.styles = styles;
|
|
177
|
+
__decorate([
|
|
178
|
+
state(),
|
|
179
|
+
__metadata("design:type", Object)
|
|
180
|
+
], PcIcon.prototype, "svg", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
property({ reflect: true }),
|
|
183
|
+
__metadata("design:type", String)
|
|
184
|
+
], PcIcon.prototype, "name", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
property({ attribute: "icon-style", reflect: true }),
|
|
187
|
+
__metadata("design:type", String)
|
|
188
|
+
], PcIcon.prototype, "iconStyle", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
property({ attribute: "fixed-width", type: Boolean, reflect: true }),
|
|
191
|
+
__metadata("design:type", Object)
|
|
192
|
+
], PcIcon.prototype, "fixedWidth", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
property({ attribute: "swap-opacity", type: Boolean, reflect: true }),
|
|
195
|
+
__metadata("design:type", Object)
|
|
196
|
+
], PcIcon.prototype, "swapOpacity", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
property(),
|
|
199
|
+
__metadata("design:type", String)
|
|
200
|
+
], PcIcon.prototype, "src", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
property(),
|
|
203
|
+
__metadata("design:type", Object)
|
|
204
|
+
], PcIcon.prototype, "label", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
property({ reflect: true }),
|
|
207
|
+
__metadata("design:type", Object)
|
|
208
|
+
], PcIcon.prototype, "library", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
watch("label"),
|
|
211
|
+
__metadata("design:type", Function),
|
|
212
|
+
__metadata("design:paramtypes", []),
|
|
213
|
+
__metadata("design:returntype", void 0)
|
|
214
|
+
], PcIcon.prototype, "handleLabelChange", null);
|
|
215
|
+
__decorate([
|
|
216
|
+
watch(["library", "iconStyle", "name", "src"]),
|
|
217
|
+
__metadata("design:type", Function),
|
|
218
|
+
__metadata("design:paramtypes", []),
|
|
219
|
+
__metadata("design:returntype", Promise)
|
|
220
|
+
], PcIcon.prototype, "setIcon", null);
|
|
221
|
+
PcIcon = __decorate([
|
|
222
|
+
customElement("pc-icon")
|
|
223
|
+
], PcIcon);
|
|
224
|
+
|
|
225
|
+
export { PcIcon };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
|
|
3
|
+
const styles = css `
|
|
4
|
+
:host {
|
|
5
|
+
--fa-primary-color: currentColor;
|
|
6
|
+
--fa-secondary-color: currentColor;
|
|
7
|
+
--fa-primary-opacity: 1;
|
|
8
|
+
--fa-secondary-opacity: 0.4;
|
|
9
|
+
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
box-sizing: content-box !important;
|
|
14
|
+
width: 1em;
|
|
15
|
+
height: 1em;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host([fixed-width]) {
|
|
19
|
+
width: 1.25em;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host([swap-opacity]) .fa-primary {
|
|
23
|
+
opacity: var(--fa-secondary-opacity) !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host([swap-opacity]) .fa-secondary {
|
|
27
|
+
opacity: var(--fa-primary-opacity) !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
svg {
|
|
31
|
+
display: block;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
fill: currentColor;
|
|
35
|
+
overflow: visible;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.fa-primary {
|
|
39
|
+
color: var(--fa-primary-color);
|
|
40
|
+
opacity: var(--fa-primary-opacity);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.fa-secondary {
|
|
44
|
+
color: var(--fa-secondary-color);
|
|
45
|
+
opacity: var(--fa-secondary-opacity);
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
|
|
49
|
+
export { styles };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PcIcon } from "./icon.js";
|
|
2
|
+
export type IconLibraryResolver = (name: string, iconStyle?: string) => string;
|
|
3
|
+
export type IconLibraryMutator = (svg: SVGElement) => void;
|
|
4
|
+
export interface IconLibrary {
|
|
5
|
+
name: string;
|
|
6
|
+
resolver: IconLibraryResolver;
|
|
7
|
+
mutator?: IconLibraryMutator;
|
|
8
|
+
spriteSheet?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function watchIcon(icon: PcIcon): void;
|
|
11
|
+
export declare function unwatchIcon(icon: PcIcon): void;
|
|
12
|
+
export declare function getIconLibrary(name?: string): IconLibrary | undefined;
|
|
13
|
+
export declare function registerIconLibrary(name: string, options: Omit<IconLibrary, "name">): void;
|
|
14
|
+
export declare function unregisterIconLibrary(name: string): void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import library from './library.default.js';
|
|
2
|
+
import systemLibrary from './library.system.js';
|
|
3
|
+
|
|
4
|
+
let registry = [library, systemLibrary];
|
|
5
|
+
let watchedIcons = [];
|
|
6
|
+
function watchIcon(icon) {
|
|
7
|
+
watchedIcons.push(icon);
|
|
8
|
+
}
|
|
9
|
+
function unwatchIcon(icon) {
|
|
10
|
+
watchedIcons = watchedIcons.filter((element) => element !== icon);
|
|
11
|
+
}
|
|
12
|
+
function getIconLibrary(name) {
|
|
13
|
+
return (registry.find((library) => library.name === name) ||
|
|
14
|
+
registry.find((library) => library.name === "default"));
|
|
15
|
+
}
|
|
16
|
+
function registerIconLibrary(name, options) {
|
|
17
|
+
unregisterIconLibrary(name);
|
|
18
|
+
registry.push({
|
|
19
|
+
name,
|
|
20
|
+
resolver: options.resolver,
|
|
21
|
+
mutator: options.mutator,
|
|
22
|
+
spriteSheet: options.spriteSheet,
|
|
23
|
+
});
|
|
24
|
+
watchedIcons.forEach((icon) => {
|
|
25
|
+
if (icon.library === name) {
|
|
26
|
+
icon.setIcon();
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function unregisterIconLibrary(name) {
|
|
31
|
+
registry = registry.filter((library) => library.name !== name);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { getIconLibrary, registerIconLibrary, unregisterIconLibrary, unwatchIcon, watchIcon };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/* System icons are a separate library to ensure they’re always available,
|
|
2
|
+
regardless of how the default icon library is configured or whether its
|
|
3
|
+
icons resolve correctly.
|
|
4
|
+
|
|
5
|
+
All Placer Toolkit components must use the system library instead of the
|
|
6
|
+
default. For visual consistency, system icons are a subset of Font Awesome Free.
|
|
7
|
+
|
|
8
|
+
Note: Please keep the Font Awesome attribution comments and don’t remove them.
|
|
9
|
+
We don’t want to violate the Font Awesome Free licence. */
|
|
10
|
+
const icons = {
|
|
11
|
+
"check": `
|
|
12
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
|
|
13
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
14
|
+
<path
|
|
15
|
+
d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"
|
|
16
|
+
/>
|
|
17
|
+
</svg>
|
|
18
|
+
`,
|
|
19
|
+
"chevron-down": `
|
|
20
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
21
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
22
|
+
<path
|
|
23
|
+
d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"
|
|
24
|
+
/>
|
|
25
|
+
</svg>
|
|
26
|
+
`,
|
|
27
|
+
"chevron-left": `
|
|
28
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
|
|
29
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
30
|
+
<path
|
|
31
|
+
d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"
|
|
32
|
+
/>
|
|
33
|
+
</svg>
|
|
34
|
+
`,
|
|
35
|
+
"chevron-right": `
|
|
36
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
|
|
37
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
38
|
+
<path
|
|
39
|
+
d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"
|
|
40
|
+
/>
|
|
41
|
+
</svg>
|
|
42
|
+
`,
|
|
43
|
+
// circle-xmark is in the Regular style
|
|
44
|
+
"circle-xmark": `
|
|
45
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
46
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
47
|
+
<path
|
|
48
|
+
d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"
|
|
49
|
+
/>
|
|
50
|
+
</svg>
|
|
51
|
+
`,
|
|
52
|
+
// copy is in the Regular style
|
|
53
|
+
"copy": `
|
|
54
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
|
|
55
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
56
|
+
<path
|
|
57
|
+
d="M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l140.1 0L400 115.9 400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-204.1c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-32-48 0 0 32c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l32 0 0-48-32 0z"
|
|
58
|
+
/>
|
|
59
|
+
</svg>
|
|
60
|
+
`,
|
|
61
|
+
// eye is in the Regular style
|
|
62
|
+
"eye": `
|
|
63
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
|
|
64
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
65
|
+
<path
|
|
66
|
+
d="M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z"
|
|
67
|
+
/>
|
|
68
|
+
</svg>
|
|
69
|
+
`,
|
|
70
|
+
// eye-slash is in the Regular style
|
|
71
|
+
"eye-slash": `
|
|
72
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">
|
|
73
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
74
|
+
<path
|
|
75
|
+
d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zm151 118.3C226 97.7 269.5 80 320 80c65.2 0 118.8 29.6 159.9 67.7C518.4 183.5 545 226 558.6 256c-12.6 28-36.6 66.8-70.9 100.9l-53.8-42.2c9.1-17.6 14.2-37.5 14.2-58.7c0-70.7-57.3-128-128-128c-32.2 0-61.7 11.9-84.2 31.5l-46.1-36.1zM394.9 284.2l-81.5-63.9c4.2-8.5 6.6-18.2 6.6-28.3c0-5.5-.7-10.9-2-16c.7 0 1.3 0 2 0c44.2 0 80 35.8 80 80c0 9.9-1.8 19.4-5.1 28.2zm9.4 130.3C378.8 425.4 350.7 432 320 432c-65.2 0-118.8-29.6-159.9-67.7C121.6 328.5 95 286 81.4 256c8.3-18.4 21.5-41.5 39.4-64.8L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5l-41.9-33zM192 256c0 70.7 57.3 128 128 128c13.3 0 26.1-2 38.2-5.8L302 334c-23.5-5.4-43.1-21.2-53.7-42.3l-56.1-44.2c-.2 2.8-.3 5.6-.3 8.5z"
|
|
76
|
+
/>
|
|
77
|
+
</svg>
|
|
78
|
+
`,
|
|
79
|
+
"grip-vertical": `
|
|
80
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
|
|
81
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
82
|
+
<path
|
|
83
|
+
d="M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"
|
|
84
|
+
/>
|
|
85
|
+
</svg>
|
|
86
|
+
`,
|
|
87
|
+
"minus": `
|
|
88
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
|
|
89
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
90
|
+
<path
|
|
91
|
+
d="M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"
|
|
92
|
+
/>
|
|
93
|
+
</svg>
|
|
94
|
+
`,
|
|
95
|
+
"star": `
|
|
96
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
|
|
97
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
98
|
+
<path
|
|
99
|
+
d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"
|
|
100
|
+
/>
|
|
101
|
+
</svg>
|
|
102
|
+
`,
|
|
103
|
+
"user": `
|
|
104
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
|
|
105
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
106
|
+
<path
|
|
107
|
+
d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"
|
|
108
|
+
/>
|
|
109
|
+
</svg>
|
|
110
|
+
`,
|
|
111
|
+
"xmark": `
|
|
112
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
|
|
113
|
+
<!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
|
|
114
|
+
<path
|
|
115
|
+
d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"
|
|
116
|
+
/>
|
|
117
|
+
</svg>
|
|
118
|
+
`,
|
|
119
|
+
};
|
|
120
|
+
const systemLibrary = {
|
|
121
|
+
name: "system",
|
|
122
|
+
resolver: (name) => {
|
|
123
|
+
if (name in icons) {
|
|
124
|
+
return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;
|
|
125
|
+
}
|
|
126
|
+
return "";
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export { systemLibrary as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import type { CSSResultGroup } from "lit";
|
|
3
|
+
import { PcIcon } from "../icon/icon.js";
|
|
4
|
+
export declare class PcIconButton extends LitElement {
|
|
5
|
+
static styles: CSSResultGroup;
|
|
6
|
+
static dependencies: {
|
|
7
|
+
"pc-icon": typeof PcIcon;
|
|
8
|
+
};
|
|
9
|
+
button: HTMLButtonElement | HTMLLinkElement;
|
|
10
|
+
private hasFocus;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
download?: string;
|
|
13
|
+
href?: string;
|
|
14
|
+
iconStyle?: string;
|
|
15
|
+
label: string;
|
|
16
|
+
library?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
src?: string;
|
|
19
|
+
target?: "_blank" | "_parent" | "_self" | "_top";
|
|
20
|
+
private handleClick;
|
|
21
|
+
private handleFocus;
|
|
22
|
+
private handleBlur;
|
|
23
|
+
click(): void;
|
|
24
|
+
focus(options?: FocusOptions): void;
|
|
25
|
+
blur(): void;
|
|
26
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
27
|
+
}
|