plass-ui 0.0.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/PlAccordion.d.ts +98 -0
- package/dist/components/accordion/PlAccordion.js +131 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/alert/PlAlert.d.ts +50 -0
- package/dist/components/alert/PlAlert.js +109 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/animate-appear/PlAnimateAppear.d.ts +55 -0
- package/dist/components/animate-appear/PlAnimateAppear.js +71 -0
- package/dist/components/animate-appear/index.d.ts +2 -0
- package/dist/components/animate-appear/index.js +1 -0
- package/dist/components/animate-blink/PlAnimateBlink.d.ts +30 -0
- package/dist/components/animate-blink/PlAnimateBlink.js +47 -0
- package/dist/components/animate-blink/index.d.ts +2 -0
- package/dist/components/animate-blink/index.js +1 -0
- package/dist/components/animate-fade/PlAnimateFade.d.ts +35 -0
- package/dist/components/animate-fade/PlAnimateFade.js +48 -0
- package/dist/components/animate-fade/index.d.ts +2 -0
- package/dist/components/animate-fade/index.js +1 -0
- package/dist/components/animate-grow/PlAnimateGrow.d.ts +45 -0
- package/dist/components/animate-grow/PlAnimateGrow.js +49 -0
- package/dist/components/animate-grow/index.d.ts +2 -0
- package/dist/components/animate-grow/index.js +1 -0
- package/dist/components/animate-headline/PlAnimateHeadline.d.ts +55 -0
- package/dist/components/animate-headline/PlAnimateHeadline.js +120 -0
- package/dist/components/animate-headline/index.d.ts +2 -0
- package/dist/components/animate-headline/index.js +1 -0
- package/dist/components/animate-lighting/PlAnimateLighting.d.ts +67 -0
- package/dist/components/animate-lighting/PlAnimateLighting.js +65 -0
- package/dist/components/animate-lighting/index.d.ts +2 -0
- package/dist/components/animate-lighting/index.js +1 -0
- package/dist/components/animate-marquee/PlAnimateMarquee.d.ts +65 -0
- package/dist/components/animate-marquee/PlAnimateMarquee.js +94 -0
- package/dist/components/animate-marquee/index.d.ts +2 -0
- package/dist/components/animate-marquee/index.js +1 -0
- package/dist/components/animate-rotate/PlAnimateRotate.d.ts +52 -0
- package/dist/components/animate-rotate/PlAnimateRotate.js +50 -0
- package/dist/components/animate-rotate/index.d.ts +2 -0
- package/dist/components/animate-rotate/index.js +1 -0
- package/dist/components/animate-slide/PlAnimateSlide.d.ts +47 -0
- package/dist/components/animate-slide/PlAnimateSlide.js +49 -0
- package/dist/components/animate-slide/index.d.ts +2 -0
- package/dist/components/animate-slide/index.js +1 -0
- package/dist/components/animate-typing/PlAnimateTyping.d.ts +56 -0
- package/dist/components/animate-typing/PlAnimateTyping.js +177 -0
- package/dist/components/animate-typing/index.d.ts +2 -0
- package/dist/components/animate-typing/index.js +1 -0
- package/dist/components/animate-zoom/PlAnimateZoom.d.ts +37 -0
- package/dist/components/animate-zoom/PlAnimateZoom.js +45 -0
- package/dist/components/animate-zoom/index.d.ts +2 -0
- package/dist/components/animate-zoom/index.js +1 -0
- package/dist/components/aspect-ratio/PlAspectRatio.d.ts +64 -0
- package/dist/components/aspect-ratio/PlAspectRatio.js +58 -0
- package/dist/components/aspect-ratio/index.d.ts +2 -0
- package/dist/components/aspect-ratio/index.js +1 -0
- package/dist/components/avatar/PlAvatar.d.ts +102 -0
- package/dist/components/avatar/PlAvatar.js +121 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/badge/PlBadge.d.ts +86 -0
- package/dist/components/badge/PlBadge.js +168 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/blockquote/PlBlockquote.d.ts +64 -0
- package/dist/components/blockquote/PlBlockquote.js +112 -0
- package/dist/components/blockquote/index.d.ts +2 -0
- package/dist/components/blockquote/index.js +1 -0
- package/dist/components/bottom-navigation/PlBottomNavigation.d.ts +111 -0
- package/dist/components/bottom-navigation/PlBottomNavigation.js +141 -0
- package/dist/components/bottom-navigation/index.d.ts +2 -0
- package/dist/components/bottom-navigation/index.js +1 -0
- package/dist/components/box/PlBox.d.ts +50 -0
- package/dist/components/box/PlBox.js +46 -0
- package/dist/components/box/index.d.ts +2 -0
- package/dist/components/box/index.js +1 -0
- package/dist/components/breadcrumb/PlBreadcrumb.d.ts +138 -0
- package/dist/components/breadcrumb/PlBreadcrumb.js +201 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/index.js +1 -0
- package/dist/components/button/{Button.d.ts → PlButton.d.ts} +3 -3
- package/dist/components/button/PlButton.js +196 -0
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/PlButtonGroup.d.ts +32 -0
- package/dist/components/button-group/PlButtonGroup.js +64 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.js +1 -0
- package/dist/components/card/PlCard.d.ts +81 -0
- package/dist/components/card/PlCard.js +102 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/carousel/PlCarousel.d.ts +78 -0
- package/dist/components/carousel/PlCarousel.js +177 -0
- package/dist/components/carousel/index.d.ts +2 -0
- package/dist/components/carousel/index.js +1 -0
- package/dist/components/chat-bubble/PlChatBubble.d.ts +127 -0
- package/dist/components/chat-bubble/PlChatBubble.js +206 -0
- package/dist/components/chat-bubble/index.d.ts +2 -0
- package/dist/components/chat-bubble/index.js +1 -0
- package/dist/components/checkbox/PlCheckbox.d.ts +39 -0
- package/dist/components/checkbox/PlCheckbox.js +100 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/chip/PlChip.d.ts +55 -0
- package/dist/components/chip/PlChip.js +144 -0
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/chip/index.js +1 -0
- package/dist/components/collapsible/PlCollapsible.d.ts +84 -0
- package/dist/components/collapsible/PlCollapsible.js +65 -0
- package/dist/components/collapsible/index.d.ts +2 -0
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/combobox/PlCombobox.d.ts +140 -0
- package/dist/components/combobox/PlCombobox.js +199 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/container/PlContainer.d.ts +66 -0
- package/dist/components/container/PlContainer.js +47 -0
- package/dist/components/container/index.d.ts +2 -0
- package/dist/components/container/index.js +1 -0
- package/dist/components/date-picker/PlDatePicker.d.ts +73 -0
- package/dist/components/date-picker/PlDatePicker.js +87 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/date-range-picker/PlDateRangePicker.d.ts +91 -0
- package/dist/components/date-range-picker/PlDateRangePicker.js +152 -0
- package/dist/components/date-range-picker/index.d.ts +2 -0
- package/dist/components/date-range-picker/index.js +1 -0
- package/dist/components/date-time-picker/PlDateTimePicker.d.ts +74 -0
- package/dist/components/date-time-picker/PlDateTimePicker.js +106 -0
- package/dist/components/date-time-picker/index.d.ts +2 -0
- package/dist/components/date-time-picker/index.js +1 -0
- package/dist/components/divider/PlDivider.d.ts +73 -0
- package/dist/components/divider/PlDivider.js +107 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.js +1 -0
- package/dist/components/drawer/PlDrawer.d.ts +144 -0
- package/dist/components/drawer/PlDrawer.js +190 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/file-picker/PlFilePicker.d.ts +105 -0
- package/dist/components/file-picker/PlFilePicker.js +274 -0
- package/dist/components/file-picker/index.d.ts +2 -0
- package/dist/components/file-picker/index.js +1 -0
- package/dist/components/floating-bottom-navigation/PlFloatingBottomNavigation.d.ts +118 -0
- package/dist/components/floating-bottom-navigation/PlFloatingBottomNavigation.js +291 -0
- package/dist/components/floating-bottom-navigation/index.d.ts +2 -0
- package/dist/components/floating-bottom-navigation/index.js +1 -0
- package/dist/components/grid/PlGrid.d.ts +67 -0
- package/dist/components/grid/PlGrid.js +51 -0
- package/dist/components/grid/PlGridItem.d.ts +50 -0
- package/dist/components/grid/PlGridItem.js +34 -0
- package/dist/components/grid/index.d.ts +4 -0
- package/dist/components/grid/index.js +2 -0
- package/dist/components/highlight/PlHighlight.d.ts +90 -0
- package/dist/components/highlight/PlHighlight.js +185 -0
- package/dist/components/highlight/index.d.ts +2 -0
- package/dist/components/highlight/index.js +1 -0
- package/dist/components/hot-keys/PlHotKeys.d.ts +93 -0
- package/dist/components/hot-keys/PlHotKeys.js +294 -0
- package/dist/components/hot-keys/index.d.ts +2 -0
- package/dist/components/hot-keys/index.js +1 -0
- package/dist/components/icon/PlIcon.d.ts +62 -0
- package/dist/components/icon/PlIcon.js +58 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/index.js +1 -0
- package/dist/components/icon-button/PlIconButton.d.ts +39 -0
- package/dist/components/icon-button/PlIconButton.js +37 -0
- package/dist/components/icon-button/index.d.ts +2 -0
- package/dist/components/icon-button/index.js +1 -0
- package/dist/components/list/PlList.d.ts +82 -0
- package/dist/components/list/PlList.js +160 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/list/index.js +1 -0
- package/dist/components/menu/PlMenu.d.ts +210 -0
- package/dist/components/menu/PlMenu.js +209 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/modal/PlModal.d.ts +112 -0
- package/dist/components/modal/PlModal.js +150 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.js +1 -0
- package/dist/components/number-field/PlNumberField.d.ts +133 -0
- package/dist/components/number-field/PlNumberField.js +111 -0
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/index.js +1 -0
- package/dist/components/otp-field/PlOtpField.d.ts +82 -0
- package/dist/components/otp-field/PlOtpField.js +109 -0
- package/dist/components/otp-field/index.d.ts +2 -0
- package/dist/components/otp-field/index.js +1 -0
- package/dist/components/overlay/PlOverlay.d.ts +96 -0
- package/dist/components/overlay/PlOverlay.js +77 -0
- package/dist/components/overlay/index.d.ts +2 -0
- package/dist/components/overlay/index.js +1 -0
- package/dist/components/pagination/PlPagination.d.ts +88 -0
- package/dist/components/pagination/PlPagination.js +159 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/index.js +1 -0
- package/dist/components/panes/PlPanes.d.ts +79 -0
- package/dist/components/panes/PlPanes.js +324 -0
- package/dist/components/panes/index.d.ts +2 -0
- package/dist/components/panes/index.js +1 -0
- package/dist/components/pill/PlPill.d.ts +81 -0
- package/dist/components/pill/PlPill.js +154 -0
- package/dist/components/pill/index.d.ts +2 -0
- package/dist/components/pill/index.js +1 -0
- package/dist/components/popover/PlPopover.d.ts +107 -0
- package/dist/components/popover/PlPopover.js +113 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/progress-box/PlProgressBox.d.ts +32 -0
- package/dist/components/progress-box/PlProgressBox.js +34 -0
- package/dist/components/progress-box/index.d.ts +2 -0
- package/dist/components/progress-box/index.js +1 -0
- package/dist/components/progress-circular/PlProgressCircular.d.ts +22 -0
- package/dist/components/progress-circular/PlProgressCircular.js +47 -0
- package/dist/components/progress-circular/index.d.ts +2 -0
- package/dist/components/progress-circular/index.js +1 -0
- package/dist/components/progress-linear/PlProgressLinear.d.ts +31 -0
- package/dist/components/progress-linear/PlProgressLinear.js +40 -0
- package/dist/components/progress-linear/index.d.ts +2 -0
- package/dist/components/progress-linear/index.js +1 -0
- package/dist/components/radio-group/PlRadioGroup.d.ts +54 -0
- package/dist/components/radio-group/PlRadioGroup.js +99 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.js +1 -0
- package/dist/components/rating/PlRating.d.ts +90 -0
- package/dist/components/rating/PlRating.js +101 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/rating/index.js +1 -0
- package/dist/components/scroll-zone/PlScrollZone.d.ts +132 -0
- package/dist/components/scroll-zone/PlScrollZone.js +411 -0
- package/dist/components/scroll-zone/index.d.ts +2 -0
- package/dist/components/scroll-zone/index.js +1 -0
- package/dist/components/segmented-button/PlSegmentedButton.d.ts +79 -0
- package/dist/components/segmented-button/PlSegmentedButton.js +206 -0
- package/dist/components/segmented-button/index.d.ts +2 -0
- package/dist/components/segmented-button/index.js +1 -0
- package/dist/components/select/PlSelect.d.ts +77 -0
- package/dist/components/select/PlSelect.js +115 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/skeleton/PlSkeleton.d.ts +73 -0
- package/dist/components/skeleton/PlSkeleton.js +142 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.js +1 -0
- package/dist/components/slider/PlSlider.d.ts +44 -0
- package/dist/components/slider/PlSlider.js +132 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.js +1 -0
- package/dist/components/spoiler/PlSpoiler.d.ts +84 -0
- package/dist/components/spoiler/PlSpoiler.js +74 -0
- package/dist/components/spoiler/index.d.ts +2 -0
- package/dist/components/spoiler/index.js +1 -0
- package/dist/components/switch/PlSwitch.d.ts +42 -0
- package/dist/components/switch/PlSwitch.js +131 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/table/PlTable.d.ts +112 -0
- package/dist/components/table/PlTable.js +210 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/tabs/PlTabs.d.ts +94 -0
- package/dist/components/tabs/PlTabs.js +182 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/text-field/{TextField.d.ts → PlTextField.d.ts} +5 -5
- package/dist/components/text-field/PlTextField.js +126 -0
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/text-field/index.js +1 -1
- package/dist/components/text-link/PlTextLink.d.ts +80 -0
- package/dist/components/text-link/PlTextLink.js +136 -0
- package/dist/components/text-link/index.d.ts +2 -0
- package/dist/components/text-link/index.js +1 -0
- package/dist/components/time-picker/PlTimePicker.d.ts +88 -0
- package/dist/components/time-picker/PlTimePicker.js +97 -0
- package/dist/components/time-picker/index.d.ts +2 -0
- package/dist/components/time-picker/index.js +1 -0
- package/dist/components/timeline/PlTimeline.d.ts +98 -0
- package/dist/components/timeline/PlTimeline.js +207 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/timeline/index.js +1 -0
- package/dist/components/toast/PlToast.d.ts +122 -0
- package/dist/components/toast/PlToast.js +174 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toolbar/PlToolbar.d.ts +68 -0
- package/dist/components/toolbar/PlToolbar.js +65 -0
- package/dist/components/toolbar/index.d.ts +2 -0
- package/dist/components/toolbar/index.js +1 -0
- package/dist/components/tooltip/PlTooltip.d.ts +92 -0
- package/dist/components/tooltip/PlTooltip.js +117 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/typography/PlTypography.d.ts +66 -0
- package/dist/components/typography/PlTypography.js +143 -0
- package/dist/components/typography/index.d.ts +2 -0
- package/dist/components/typography/index.js +1 -0
- package/dist/css/accordion.css +2 -0
- package/dist/css/alert.css +2 -0
- package/dist/css/animate-appear.css +2 -0
- package/dist/css/animate-blink.css +2 -0
- package/dist/css/animate-fade.css +2 -0
- package/dist/css/animate-grow.css +2 -0
- package/dist/css/animate-headline.css +2 -0
- package/dist/css/animate-lighting.css +2 -0
- package/dist/css/animate-marquee.css +2 -0
- package/dist/css/animate-rotate.css +2 -0
- package/dist/css/animate-slide.css +2 -0
- package/dist/css/animate-typing.css +2 -0
- package/dist/css/animate-zoom.css +2 -0
- package/dist/css/aspect-ratio.css +2 -0
- package/dist/css/avatar.css +2 -0
- package/dist/css/badge.css +2 -0
- package/dist/css/base.css +4 -0
- package/dist/css/blockquote.css +2 -0
- package/dist/css/bottom-navigation.css +2 -0
- package/dist/css/box.css +2 -0
- package/dist/css/breadcrumb.css +2 -0
- package/dist/css/button-group.css +2 -0
- package/dist/css/button.css +2 -0
- package/dist/css/card.css +2 -0
- package/dist/css/carousel.css +2 -0
- package/dist/css/chat-bubble.css +2 -0
- package/dist/css/checkbox.css +2 -0
- package/dist/css/chip.css +2 -0
- package/dist/css/collapsible.css +2 -0
- package/dist/css/combobox.css +2 -0
- package/dist/css/container.css +2 -0
- package/dist/css/date-picker.css +2 -0
- package/dist/css/date-range-picker.css +2 -0
- package/dist/css/date-time-picker.css +2 -0
- package/dist/css/divider.css +2 -0
- package/dist/css/drawer.css +2 -0
- package/dist/css/file-picker.css +2 -0
- package/dist/css/floating-bottom-navigation.css +2 -0
- package/dist/css/grid.css +2 -0
- package/dist/css/highlight.css +2 -0
- package/dist/css/hot-keys.css +2 -0
- package/dist/css/icon-button.css +2 -0
- package/dist/css/icon.css +2 -0
- package/dist/css/list.css +2 -0
- package/dist/css/menu.css +2 -0
- package/dist/css/modal.css +2 -0
- package/dist/css/number-field.css +2 -0
- package/dist/css/otp-field.css +2 -0
- package/dist/css/overlay.css +2 -0
- package/dist/css/pagination.css +2 -0
- package/dist/css/panes.css +2 -0
- package/dist/css/pill.css +2 -0
- package/dist/css/popover.css +2 -0
- package/dist/css/progress-box.css +2 -0
- package/dist/css/progress-circular.css +2 -0
- package/dist/css/progress-linear.css +2 -0
- package/dist/css/radio-group.css +2 -0
- package/dist/css/rating.css +2 -0
- package/dist/css/scroll-zone.css +2 -0
- package/dist/css/segmented-button.css +2 -0
- package/dist/css/select.css +2 -0
- package/dist/css/skeleton.css +2 -0
- package/dist/css/slider.css +2 -0
- package/dist/css/spoiler.css +2 -0
- package/dist/css/switch.css +2 -0
- package/dist/css/table.css +2 -0
- package/dist/css/tabs.css +2 -0
- package/dist/css/text-field.css +2 -0
- package/dist/css/text-link.css +2 -0
- package/dist/css/time-picker.css +2 -0
- package/dist/css/timeline.css +2 -0
- package/dist/css/toast.css +2 -0
- package/dist/css/toolbar.css +2 -0
- package/dist/css/tooltip.css +2 -0
- package/dist/css/typography.css +2 -0
- package/dist/index.d.ts +75 -3
- package/dist/index.js +75 -1
- package/dist/internal/animate.d.ts +161 -0
- package/dist/internal/animate.js +318 -0
- package/dist/internal/button-group.d.ts +27 -0
- package/dist/internal/button-group.js +19 -0
- package/dist/internal/calendar.d.ts +148 -0
- package/dist/internal/calendar.js +501 -0
- package/dist/internal/date.d.ts +173 -0
- package/dist/internal/date.js +353 -0
- package/dist/internal/format.d.ts +24 -0
- package/dist/internal/format.js +41 -0
- package/dist/internal/grid.d.ts +67 -0
- package/dist/internal/grid.js +143 -0
- package/dist/internal/icons.d.ts +86 -1
- package/dist/internal/icons.js +138 -1
- package/dist/internal/menu.d.ts +20 -0
- package/dist/internal/menu.js +18 -0
- package/dist/internal/picker.d.ts +118 -0
- package/dist/internal/picker.js +139 -0
- package/dist/internal/progress.d.ts +145 -0
- package/dist/internal/progress.js +167 -0
- package/dist/internal/sizer.d.ts +32 -0
- package/dist/internal/sizer.js +35 -0
- package/dist/internal/styles.d.ts +198 -8
- package/dist/internal/styles.js +636 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +899 -125
- package/dist/tokens.css +1275 -0
- package/dist/types.d.ts +150 -8
- package/dist/types.js +1 -1
- package/package.json +31 -27
- package/README.md +0 -111
- package/dist/components/button/Button.js +0 -1
- package/dist/components/text-field/TextField.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,75 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
export * from './components/
|
|
3
|
-
export * from './components/
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './components/accordion/index.js';
|
|
3
|
+
export * from './components/alert/index.js';
|
|
4
|
+
export * from './components/animate-appear/index.js';
|
|
5
|
+
export * from './components/animate-blink/index.js';
|
|
6
|
+
export * from './components/animate-fade/index.js';
|
|
7
|
+
export * from './components/animate-grow/index.js';
|
|
8
|
+
export * from './components/animate-headline/index.js';
|
|
9
|
+
export * from './components/animate-lighting/index.js';
|
|
10
|
+
export * from './components/animate-marquee/index.js';
|
|
11
|
+
export * from './components/animate-rotate/index.js';
|
|
12
|
+
export * from './components/animate-slide/index.js';
|
|
13
|
+
export * from './components/animate-typing/index.js';
|
|
14
|
+
export * from './components/animate-zoom/index.js';
|
|
15
|
+
export * from './components/aspect-ratio/index.js';
|
|
16
|
+
export * from './components/avatar/index.js';
|
|
17
|
+
export * from './components/badge/index.js';
|
|
18
|
+
export * from './components/blockquote/index.js';
|
|
19
|
+
export * from './components/bottom-navigation/index.js';
|
|
20
|
+
export * from './components/box/index.js';
|
|
21
|
+
export * from './components/breadcrumb/index.js';
|
|
22
|
+
export * from './components/button/index.js';
|
|
23
|
+
export * from './components/button-group/index.js';
|
|
24
|
+
export * from './components/card/index.js';
|
|
25
|
+
export * from './components/carousel/index.js';
|
|
26
|
+
export * from './components/chat-bubble/index.js';
|
|
27
|
+
export * from './components/checkbox/index.js';
|
|
28
|
+
export * from './components/chip/index.js';
|
|
29
|
+
export * from './components/collapsible/index.js';
|
|
30
|
+
export * from './components/combobox/index.js';
|
|
31
|
+
export * from './components/container/index.js';
|
|
32
|
+
export * from './components/date-picker/index.js';
|
|
33
|
+
export * from './components/date-range-picker/index.js';
|
|
34
|
+
export * from './components/date-time-picker/index.js';
|
|
35
|
+
export * from './components/divider/index.js';
|
|
36
|
+
export * from './components/drawer/index.js';
|
|
37
|
+
export * from './components/file-picker/index.js';
|
|
38
|
+
export * from './components/floating-bottom-navigation/index.js';
|
|
39
|
+
export * from './components/grid/index.js';
|
|
40
|
+
export * from './components/highlight/index.js';
|
|
41
|
+
export * from './components/hot-keys/index.js';
|
|
42
|
+
export * from './components/icon/index.js';
|
|
43
|
+
export * from './components/icon-button/index.js';
|
|
44
|
+
export * from './components/list/index.js';
|
|
45
|
+
export * from './components/menu/index.js';
|
|
46
|
+
export * from './components/modal/index.js';
|
|
47
|
+
export * from './components/number-field/index.js';
|
|
48
|
+
export * from './components/otp-field/index.js';
|
|
49
|
+
export * from './components/overlay/index.js';
|
|
50
|
+
export * from './components/pagination/index.js';
|
|
51
|
+
export * from './components/panes/index.js';
|
|
52
|
+
export * from './components/pill/index.js';
|
|
53
|
+
export * from './components/popover/index.js';
|
|
54
|
+
export * from './components/progress-box/index.js';
|
|
55
|
+
export * from './components/progress-circular/index.js';
|
|
56
|
+
export * from './components/progress-linear/index.js';
|
|
57
|
+
export * from './components/radio-group/index.js';
|
|
58
|
+
export * from './components/rating/index.js';
|
|
59
|
+
export * from './components/scroll-zone/index.js';
|
|
60
|
+
export * from './components/segmented-button/index.js';
|
|
61
|
+
export * from './components/select/index.js';
|
|
62
|
+
export * from './components/skeleton/index.js';
|
|
63
|
+
export * from './components/slider/index.js';
|
|
64
|
+
export * from './components/spoiler/index.js';
|
|
65
|
+
export * from './components/switch/index.js';
|
|
66
|
+
export * from './components/table/index.js';
|
|
67
|
+
export * from './components/tabs/index.js';
|
|
68
|
+
export * from './components/text-field/index.js';
|
|
69
|
+
export * from './components/text-link/index.js';
|
|
70
|
+
export * from './components/time-picker/index.js';
|
|
71
|
+
export * from './components/timeline/index.js';
|
|
72
|
+
export * from './components/toast/index.js';
|
|
73
|
+
export * from './components/toolbar/index.js';
|
|
74
|
+
export * from './components/tooltip/index.js';
|
|
75
|
+
export * from './components/typography/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1,75 @@
|
|
|
1
|
-
export*from
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './components/accordion/index.js';
|
|
3
|
+
export * from './components/alert/index.js';
|
|
4
|
+
export * from './components/animate-appear/index.js';
|
|
5
|
+
export * from './components/animate-blink/index.js';
|
|
6
|
+
export * from './components/animate-fade/index.js';
|
|
7
|
+
export * from './components/animate-grow/index.js';
|
|
8
|
+
export * from './components/animate-headline/index.js';
|
|
9
|
+
export * from './components/animate-lighting/index.js';
|
|
10
|
+
export * from './components/animate-marquee/index.js';
|
|
11
|
+
export * from './components/animate-rotate/index.js';
|
|
12
|
+
export * from './components/animate-slide/index.js';
|
|
13
|
+
export * from './components/animate-typing/index.js';
|
|
14
|
+
export * from './components/animate-zoom/index.js';
|
|
15
|
+
export * from './components/aspect-ratio/index.js';
|
|
16
|
+
export * from './components/avatar/index.js';
|
|
17
|
+
export * from './components/badge/index.js';
|
|
18
|
+
export * from './components/blockquote/index.js';
|
|
19
|
+
export * from './components/bottom-navigation/index.js';
|
|
20
|
+
export * from './components/box/index.js';
|
|
21
|
+
export * from './components/breadcrumb/index.js';
|
|
22
|
+
export * from './components/button/index.js';
|
|
23
|
+
export * from './components/button-group/index.js';
|
|
24
|
+
export * from './components/card/index.js';
|
|
25
|
+
export * from './components/carousel/index.js';
|
|
26
|
+
export * from './components/chat-bubble/index.js';
|
|
27
|
+
export * from './components/checkbox/index.js';
|
|
28
|
+
export * from './components/chip/index.js';
|
|
29
|
+
export * from './components/collapsible/index.js';
|
|
30
|
+
export * from './components/combobox/index.js';
|
|
31
|
+
export * from './components/container/index.js';
|
|
32
|
+
export * from './components/date-picker/index.js';
|
|
33
|
+
export * from './components/date-range-picker/index.js';
|
|
34
|
+
export * from './components/date-time-picker/index.js';
|
|
35
|
+
export * from './components/divider/index.js';
|
|
36
|
+
export * from './components/drawer/index.js';
|
|
37
|
+
export * from './components/file-picker/index.js';
|
|
38
|
+
export * from './components/floating-bottom-navigation/index.js';
|
|
39
|
+
export * from './components/grid/index.js';
|
|
40
|
+
export * from './components/highlight/index.js';
|
|
41
|
+
export * from './components/hot-keys/index.js';
|
|
42
|
+
export * from './components/icon/index.js';
|
|
43
|
+
export * from './components/icon-button/index.js';
|
|
44
|
+
export * from './components/list/index.js';
|
|
45
|
+
export * from './components/menu/index.js';
|
|
46
|
+
export * from './components/modal/index.js';
|
|
47
|
+
export * from './components/number-field/index.js';
|
|
48
|
+
export * from './components/otp-field/index.js';
|
|
49
|
+
export * from './components/overlay/index.js';
|
|
50
|
+
export * from './components/pagination/index.js';
|
|
51
|
+
export * from './components/panes/index.js';
|
|
52
|
+
export * from './components/pill/index.js';
|
|
53
|
+
export * from './components/popover/index.js';
|
|
54
|
+
export * from './components/progress-box/index.js';
|
|
55
|
+
export * from './components/progress-circular/index.js';
|
|
56
|
+
export * from './components/progress-linear/index.js';
|
|
57
|
+
export * from './components/radio-group/index.js';
|
|
58
|
+
export * from './components/rating/index.js';
|
|
59
|
+
export * from './components/scroll-zone/index.js';
|
|
60
|
+
export * from './components/segmented-button/index.js';
|
|
61
|
+
export * from './components/select/index.js';
|
|
62
|
+
export * from './components/skeleton/index.js';
|
|
63
|
+
export * from './components/slider/index.js';
|
|
64
|
+
export * from './components/spoiler/index.js';
|
|
65
|
+
export * from './components/switch/index.js';
|
|
66
|
+
export * from './components/table/index.js';
|
|
67
|
+
export * from './components/tabs/index.js';
|
|
68
|
+
export * from './components/text-field/index.js';
|
|
69
|
+
export * from './components/text-link/index.js';
|
|
70
|
+
export * from './components/time-picker/index.js';
|
|
71
|
+
export * from './components/timeline/index.js';
|
|
72
|
+
export * from './components/toast/index.js';
|
|
73
|
+
export * from './components/toolbar/index.js';
|
|
74
|
+
export * from './components/tooltip/index.js';
|
|
75
|
+
export * from './components/typography/index.js';
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The machinery every `PlAnimate*` component runs on.
|
|
3
|
+
*
|
|
4
|
+
* It lives in `internal/` for the reason `button-group.ts` and `progress.ts`
|
|
5
|
+
* do: eleven components need it and none of them should have to import another.
|
|
6
|
+
*
|
|
7
|
+
* ## The shape of it
|
|
8
|
+
*
|
|
9
|
+
* Every effect is one `@keyframes` in `styles.css` running from a state written
|
|
10
|
+
* entirely in custom properties to the element's natural one. Nothing here
|
|
11
|
+
* generates CSS — it fills `--p-anim-*` slots and the stylesheet decides what
|
|
12
|
+
* they mean, which is the same split `controlSlots()` makes for colour and for
|
|
13
|
+
* the same reason: Tailwind only ever sees class names that appear literally in
|
|
14
|
+
* the source, so a class per duration would not survive the first prop.
|
|
15
|
+
*
|
|
16
|
+
* Because the from-state is the *keyframe* rather than a second class, running
|
|
17
|
+
* an effect backwards is `animation-direction: reverse` and nothing else. That
|
|
18
|
+
* is what makes `mode="out"` free on the five that offer it.
|
|
19
|
+
*
|
|
20
|
+
* ## Where the design language draws the line
|
|
21
|
+
*
|
|
22
|
+
* A Plass **control** never moves — a key that scales resamples its label, and
|
|
23
|
+
* that rule holds without exception. What moves here is content a caller has
|
|
24
|
+
* asked to have moved, and it moves on the independent `translate`, `scale` and
|
|
25
|
+
* `rotate` properties rather than on the `transform` shorthand, so a caller's
|
|
26
|
+
* own transform on the same element survives.
|
|
27
|
+
*
|
|
28
|
+
* ## What is deliberately not here
|
|
29
|
+
*
|
|
30
|
+
* An effect that has to know what its children *are* — a marquee that lays them
|
|
31
|
+
* down twice, a headline that swaps between them, a typewriter that counts
|
|
32
|
+
* graphemes — cannot be a class name and a few numbers. Those are components,
|
|
33
|
+
* and their logic stays in their own files.
|
|
34
|
+
*/
|
|
35
|
+
import * as React from 'react';
|
|
36
|
+
import type { PlassAnimateRepeat, PlassAnimateTrigger, PlassAnimation, PlassSide } from '../types.js';
|
|
37
|
+
/**
|
|
38
|
+
* Which keyframe an effect runs.
|
|
39
|
+
*
|
|
40
|
+
* `grow` and `zoom` share one: they are the same arithmetic at two strengths,
|
|
41
|
+
* and a second identical `@keyframes` would only be a second place to fix a
|
|
42
|
+
* bug. What separates them is their defaults and their origin, and an origin is
|
|
43
|
+
* a property rather than a keyframe.
|
|
44
|
+
*/
|
|
45
|
+
export declare const animationClasses: Record<PlassAnimation, string>;
|
|
46
|
+
/** The class that reads the slots. Always paired with one of the above. */
|
|
47
|
+
export declare const animBaseClass = "plass-anim";
|
|
48
|
+
/** A number is pixels; a string is already a CSS length. */
|
|
49
|
+
export declare function lengthValue(value: number | string): string;
|
|
50
|
+
/** `'infinite'` reaches CSS as the word; a count reaches it as the number. */
|
|
51
|
+
export declare function repeatValue(repeat: PlassAnimateRepeat): string;
|
|
52
|
+
export declare function isInfinite(repeat: PlassAnimateRepeat | undefined): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* `normal`, `reverse`, `alternate`, `alternate-reverse` — the four CSS already
|
|
55
|
+
* has, assembled from the two props that mean something to a caller.
|
|
56
|
+
*
|
|
57
|
+
* `mode="out"` is a reversed run rather than a keyframe of its own, which is
|
|
58
|
+
* also why a reversed animation ends held on its own first frame: `fill-mode`
|
|
59
|
+
* is `both`, so a faded-out element stays faded out instead of snapping back.
|
|
60
|
+
*/
|
|
61
|
+
export declare function directionValue(mode: 'in' | 'out', alternate: boolean | undefined): string;
|
|
62
|
+
export interface AnimationSlotOptions {
|
|
63
|
+
duration: number;
|
|
64
|
+
delay: number;
|
|
65
|
+
easing?: string;
|
|
66
|
+
repeat: PlassAnimateRepeat;
|
|
67
|
+
alternate?: boolean;
|
|
68
|
+
mode?: 'in' | 'out';
|
|
69
|
+
/** Where the animated properties start. Only the ones an effect reads. */
|
|
70
|
+
opacity?: number;
|
|
71
|
+
scale?: number;
|
|
72
|
+
x?: string;
|
|
73
|
+
y?: string;
|
|
74
|
+
angle?: string;
|
|
75
|
+
angleTo?: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The `--p-anim-*` slots, as an inline style object.
|
|
79
|
+
*
|
|
80
|
+
* Inline rather than utilities for the reason the colour slots are: these are
|
|
81
|
+
* per-instance numbers, and Tailwind cannot generate a class for a duration it
|
|
82
|
+
* has never seen written down.
|
|
83
|
+
*/
|
|
84
|
+
export declare function animationSlots(options: AnimationSlotOptions): React.CSSProperties;
|
|
85
|
+
/**
|
|
86
|
+
* Which way a slide starts, given the edge it comes from.
|
|
87
|
+
*
|
|
88
|
+
* `PlassSide` is physical everywhere in the library and it stays physical here:
|
|
89
|
+
* something arriving from the top of the window arrives from the top in every
|
|
90
|
+
* writing direction.
|
|
91
|
+
*/
|
|
92
|
+
export declare function slideOffsets(from: PlassSide, distance: number | string): {
|
|
93
|
+
x: string;
|
|
94
|
+
y: string;
|
|
95
|
+
};
|
|
96
|
+
export declare function usePrefersReducedMotion(): boolean;
|
|
97
|
+
export interface AnimationRunOptions {
|
|
98
|
+
trigger: PlassAnimateTrigger;
|
|
99
|
+
play?: boolean;
|
|
100
|
+
once: boolean;
|
|
101
|
+
threshold: number;
|
|
102
|
+
paused?: boolean;
|
|
103
|
+
/** An infinite effect stops when the pointer leaves; a finite one finishes. */
|
|
104
|
+
infinite: boolean;
|
|
105
|
+
}
|
|
106
|
+
export interface AnimationRun {
|
|
107
|
+
/** Goes on the animated element. */
|
|
108
|
+
ref: React.RefCallback<HTMLElement>;
|
|
109
|
+
/** `running` or `paused`, for `--p-anim-state`. */
|
|
110
|
+
state: 'running' | 'paused';
|
|
111
|
+
/** Whether the animation has been let go at all. */
|
|
112
|
+
started: boolean;
|
|
113
|
+
/** Spread onto the element when `trigger` is `hover`; empty otherwise. */
|
|
114
|
+
handlers: React.HTMLAttributes<HTMLElement>;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Starts, restarts and holds an animation.
|
|
118
|
+
*
|
|
119
|
+
* Two things here are less obvious than they look.
|
|
120
|
+
*
|
|
121
|
+
* **Waiting is `animation-play-state: paused`, not a second class.** An element
|
|
122
|
+
* that has not been triggered yet has to already look like its own first frame,
|
|
123
|
+
* or a `visible` fade would be fully drawn until it scrolled into view and then
|
|
124
|
+
* blink out to start. With `fill-mode: both` a paused animation shows exactly
|
|
125
|
+
* that frame, so waiting and running are one animation in two states rather
|
|
126
|
+
* than two states to keep in step.
|
|
127
|
+
*
|
|
128
|
+
* **Restarting reaches for the DOM.** There is no way to rewind a CSS animation
|
|
129
|
+
* from React: re-rendering with the same class changes nothing, and a `key`
|
|
130
|
+
* would restart the animation by unmounting the children, taking their state
|
|
131
|
+
* with it. Clearing `animation-name`, reading a layout property to force the
|
|
132
|
+
* style to settle, and putting it back is the one move that rewinds the element
|
|
133
|
+
* and leaves everything inside it alone.
|
|
134
|
+
*/
|
|
135
|
+
export declare function useAnimationRun({ trigger, play, once, threshold, paused, infinite }: AnimationRunOptions): AnimationRun;
|
|
136
|
+
export interface AnimateElementParams extends AnimationSlotOptions, AnimationRunOptions {
|
|
137
|
+
/** Which keyframe. `null` for the components that write their own. */
|
|
138
|
+
effect: PlassAnimation | null;
|
|
139
|
+
}
|
|
140
|
+
export interface AnimateElement {
|
|
141
|
+
ref: React.RefCallback<HTMLElement>;
|
|
142
|
+
className: string;
|
|
143
|
+
style: React.CSSProperties;
|
|
144
|
+
/** The hover handlers and the two data attributes, ready to be spread. */
|
|
145
|
+
props: React.HTMLAttributes<HTMLElement> & Record<string, unknown>;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Everything a one-keyframe `PlAnimate*` root needs, in one call.
|
|
149
|
+
*
|
|
150
|
+
* The six effect components differ only in their defaults and in which slots
|
|
151
|
+
* they fill, so this is where the identical two-thirds of each of them lives.
|
|
152
|
+
* The ones that have to understand their children — Appear, Headline, Marquee,
|
|
153
|
+
* Typing — call `useAnimationRun` directly and put the classes where their own
|
|
154
|
+
* structure needs them, which is why `effect` is allowed to be `null`.
|
|
155
|
+
*
|
|
156
|
+
* `data-plass-animation` and `data-state` are here rather than in each
|
|
157
|
+
* component because they are the same two facts every time, and because a test
|
|
158
|
+
* that has to assert on a class name is a test that breaks when a class name
|
|
159
|
+
* changes.
|
|
160
|
+
*/
|
|
161
|
+
export declare function useAnimateElement(params: AnimateElementParams): AnimateElement;
|