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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* None of this is exported from `src/index.ts` — it is the library talking to
|
|
5
5
|
* itself. It lives here for one reason: a `size` of `md` has to be 40px on a
|
|
6
|
-
*
|
|
6
|
+
* PlButton, a PlTextField, a Select and a Chip, and a table copied into eleven
|
|
7
7
|
* files is a table that will disagree with itself by the twelfth.
|
|
8
8
|
*
|
|
9
9
|
* The two things that cannot move out of a component are its variant classes
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* '.'` in `styles.css` covers this folder in the repository and in `dist/`.
|
|
16
16
|
*/
|
|
17
17
|
import type * as React from 'react';
|
|
18
|
-
import type { PlassColor, PlassDensity, PlassElevation, PlassSize, PlassVariant } from '../types';
|
|
18
|
+
import type { PlassColor, PlassDensity, PlassElevation, PlassSize, PlassVariant } from '../types.js';
|
|
19
19
|
/**
|
|
20
20
|
* Corner radius — a moulded fillet rather than a chamfer or a pill.
|
|
21
21
|
*
|
|
@@ -27,7 +27,7 @@ import type { PlassColor, PlassDensity, PlassElevation, PlassSize, PlassVariant
|
|
|
27
27
|
export declare const radiusClasses: Record<PlassSize, string>;
|
|
28
28
|
/**
|
|
29
29
|
* The height of a control, and the one number the whole library lines up on:
|
|
30
|
-
* a
|
|
30
|
+
* a PlButton, a PlTextField, a Select and a Chip of the same `size` sit on the same
|
|
31
31
|
* baseline in the same row.
|
|
32
32
|
*
|
|
33
33
|
* The ladder is 8px per step, and it starts higher than a dense desktop toolkit
|
|
@@ -60,10 +60,128 @@ export declare const metaTextClasses: Record<PlassSize, string>;
|
|
|
60
60
|
* two-pixel nudge.
|
|
61
61
|
*/
|
|
62
62
|
export declare const paddingXClasses: Record<PlassDensity, Record<PlassSize, string>>;
|
|
63
|
+
/**
|
|
64
|
+
* A standalone glyph's box: 14, 16, 20, 24 and 28px.
|
|
65
|
+
*
|
|
66
|
+
* Its own ladder rather than a step off `controlHeightClasses`, because an icon
|
|
67
|
+
* is not a control — it is content, and it is measured against the text it sits
|
|
68
|
+
* beside rather than against the row it sits in.
|
|
69
|
+
*
|
|
70
|
+
* `iconClasses` is the other half of the same idea and is not this: that one
|
|
71
|
+
* sizes a glyph *inside* a control, in `em`, so it tracks the label it belongs
|
|
72
|
+
* to. This one is for the glyph that is the whole object.
|
|
73
|
+
*/
|
|
74
|
+
export declare const iconSizeClasses: Record<PlassSize, string>;
|
|
75
|
+
/**
|
|
76
|
+
* A tick box: the square a PlCheckbox draws and the circle a PlRadioGroup draws.
|
|
77
|
+
*
|
|
78
|
+
* Its own ladder rather than a step off `controlHeightClasses`, because a tick
|
|
79
|
+
* is not a control you can put a label inside — it is an indicator next to one,
|
|
80
|
+
* and it is sized against the text beside it rather than against the row.
|
|
81
|
+
*/
|
|
82
|
+
export declare const tickSizeClasses: Record<PlassSize, string>;
|
|
83
|
+
/**
|
|
84
|
+
* And its own radius, well below the control ladder's.
|
|
85
|
+
*
|
|
86
|
+
* `--plass-radius-md` is 12px, which on an 18px box is most of the way to a
|
|
87
|
+
* circle — and a checkbox that is round is a radio button. The intent is the
|
|
88
|
+
* same fillet as everywhere else, measured against a much smaller object.
|
|
89
|
+
*/
|
|
90
|
+
export declare const tickRadiusClasses: Record<PlassSize, string>;
|
|
91
|
+
/**
|
|
92
|
+
* The dot inside a checked radio.
|
|
93
|
+
*
|
|
94
|
+
* Whole pixels at every step rather than a percentage of the ring around it —
|
|
95
|
+
* and, which is the half that was missing, whole pixels *of margin* as well.
|
|
96
|
+
* A diameter can be an exact 7px and still be centred at x.5, because what
|
|
97
|
+
* decides the offset is `(box − border − border − dot) / 2`: a 7px dot inside
|
|
98
|
+
* an 18px ring with a 1px edge sits 4.5px from each side, and a circle whose
|
|
99
|
+
* four sides are antialiased at half coverage reads as "the dot is not
|
|
100
|
+
* centred" even though the box says it is — and reads as *up and to the left*,
|
|
101
|
+
* because that is the way the paint rounds.
|
|
102
|
+
*
|
|
103
|
+
* So every dot here has the same parity as the ring's content box: 12/6, 14/6,
|
|
104
|
+
* 16/8, 18/8, 22/10. The ratio wanders between 38% and 44% as a result, which
|
|
105
|
+
* is the price, and it is invisible next to the thing it buys.
|
|
106
|
+
*/
|
|
107
|
+
export declare const tickDotClasses: Record<PlassSize, string>;
|
|
108
|
+
/**
|
|
109
|
+
* The line box a tick and its label share.
|
|
110
|
+
*
|
|
111
|
+
* Both the tick's wrapper and the label are measured against it: the wrapper is
|
|
112
|
+
* `h-[1lh]` so the box centres on the label's *first* line rather than on the
|
|
113
|
+
* whole block, and that only lines up if the two agree on what a line is. Left
|
|
114
|
+
* to inherit, `1lh` picks up whatever leading the host page happens to set and
|
|
115
|
+
* the tick drifts a pixel or two off the text beside it.
|
|
116
|
+
*
|
|
117
|
+
* It is `controlTextLeadingClasses` and not a ratio of its own, and that is the
|
|
118
|
+
* whole point of it having moved: a ratio produces a fractional line box at
|
|
119
|
+
* every step but one — 14px of text at 1.4 is a 19.6px line — and an 18px tick
|
|
120
|
+
* centred in 19.6px starts at 0.8px, which drags the ring, its edge and the dot
|
|
121
|
+
* inside it off the pixel grid together. The table's line boxes are whole
|
|
122
|
+
* numbers with the same parity as the ticks that sit in them (16/14, 18/16,
|
|
123
|
+
* 20/18, 24/20, 28/24), so every one of those offsets is a whole pixel.
|
|
124
|
+
*
|
|
125
|
+
* The label needs no leading of its own; it inherits this one, which is the
|
|
126
|
+
* only way the two can be guaranteed to agree.
|
|
127
|
+
*/
|
|
128
|
+
export declare const tickRowTextClasses: Record<PlassSize, string>;
|
|
129
|
+
/**
|
|
130
|
+
* The same two tracks again, as raw lengths.
|
|
131
|
+
*
|
|
132
|
+
* These exist for one element: a table cell. `<td>` and `<th>` are among the
|
|
133
|
+
* very few tags that host stylesheets still style by name — VitePress's
|
|
134
|
+
* `.vp-doc td`, Tailwind Typography's `.prose td`, every CSS framework ever —
|
|
135
|
+
* and all of those are two-class selectors that a one-class utility cannot
|
|
136
|
+
* outrank. A table therefore writes its cell padding inline, where nothing can
|
|
137
|
+
* reach it.
|
|
138
|
+
*
|
|
139
|
+
* Keep these in step with `paddingXClasses`. They are the same numbers: the
|
|
140
|
+
* Tailwind spacing scale is 0.25rem per step.
|
|
141
|
+
*/
|
|
142
|
+
export declare const paddingXValues: Record<PlassDensity, Record<PlassSize, string>>;
|
|
63
143
|
/** Between a control's own parts — an icon and its label. */
|
|
64
144
|
export declare const gapClasses: Record<PlassSize, string>;
|
|
65
145
|
/** Between a label, the control under it and the text under that. */
|
|
66
146
|
export declare const stackGapClasses: Record<PlassSize, string>;
|
|
147
|
+
/**
|
|
148
|
+
* A sheet's own padding, which is not a control's.
|
|
149
|
+
*
|
|
150
|
+
* `paddingXClasses` is the room a label needs beside the edge of the key it is
|
|
151
|
+
* printed on. This is the margin a sheet keeps around whatever it is holding,
|
|
152
|
+
* and it is bigger, because the thing inside is a paragraph rather than a word.
|
|
153
|
+
* Both axes are offered separately: a sheet with hairlines between its sections
|
|
154
|
+
* gives its vertical padding away to them.
|
|
155
|
+
*/
|
|
156
|
+
export declare const sheetPaddingXClasses: Record<PlassDensity, Record<PlassSize, string>>;
|
|
157
|
+
export declare const sheetPaddingYClasses: Record<PlassDensity, Record<PlassSize, string>>;
|
|
158
|
+
/**
|
|
159
|
+
* A sheet's heading: one step above the body, on the same ladder the controls
|
|
160
|
+
* use, so a card's title lines up with the buttons that end up inside it.
|
|
161
|
+
*/
|
|
162
|
+
export declare const sheetTitleClasses: Record<PlassSize, string>;
|
|
163
|
+
/**
|
|
164
|
+
* Body copy: the control type scale with the leading opened up, because a
|
|
165
|
+
* label is one line and a body is a paragraph.
|
|
166
|
+
*/
|
|
167
|
+
export declare const sheetBodyClasses: Record<PlassSize, string>;
|
|
168
|
+
/** Between a sheet's sections, when there are no hairlines to separate them. */
|
|
169
|
+
export declare const sheetSectionGapClasses: Record<PlassSize, string>;
|
|
170
|
+
/**
|
|
171
|
+
* The hairline that scores a sheet into sections — a card's body from its
|
|
172
|
+
* footer, one accordion fold from the next, one table row from the next.
|
|
173
|
+
*
|
|
174
|
+
* `--plass-divider` and **not** the `--plass-glass-line` the sheet's own edge is
|
|
175
|
+
* drawn in, which is what this used to be. The edge line is white light caught
|
|
176
|
+
* on a cut edge, and it reads because what is behind it is the page wash. The
|
|
177
|
+
* same white laid *across* the middle of the sheet has the sheet behind it
|
|
178
|
+
* instead, and a white line on a 62%-white pane over a near-white page is not a
|
|
179
|
+
* line — which is why a light-mode list, card or table had no visible structure
|
|
180
|
+
* at all unless the host page happened to be drawing its own.
|
|
181
|
+
*/
|
|
182
|
+
export declare const sheetLineClasses = "border-t [border-color:var(--plass-divider)]";
|
|
183
|
+
/** Title to subtitle. Tight — they are one block of text, not two sections. */
|
|
184
|
+
export declare const sheetHeaderGapClasses: Record<PlassSize, string>;
|
|
67
185
|
/**
|
|
68
186
|
* Glass: a translucent fill over a heavily blurred backdrop.
|
|
69
187
|
*
|
|
@@ -102,10 +220,45 @@ export declare const transitionClasses: string;
|
|
|
102
220
|
* its `box-shadow` on the elevation, the tinted glow and the gloss line. A ring
|
|
103
221
|
* would have to be spliced into that chain in each of the three variants, and
|
|
104
222
|
* the first one that forgot would silently lose its focus ring.
|
|
223
|
+
*
|
|
224
|
+
* **It is flush.** The offset used to be 2px, and a 2px gap is the one thing a
|
|
225
|
+
* ring must not have on a control that already draws an edge of its own: a
|
|
226
|
+
* field, a select, a tick, a switch. The eye reads the field's hairline, then a
|
|
227
|
+
* band of page, then the ring — three concentric rectangles where there is one
|
|
228
|
+
* object, and the control looks as though it has come loose from the ring
|
|
229
|
+
* around it. At offset 0 the outline sits directly on the outside of the edge
|
|
230
|
+
* and the edge simply thickens and takes the family's colour, which is what
|
|
231
|
+
* "this one is focused" should look like.
|
|
232
|
+
*
|
|
233
|
+
* Nothing is lost on a control with no edge either: the outline is still drawn
|
|
234
|
+
* entirely *outside* the border box, so on a filled key it is a rim against the
|
|
235
|
+
* page rather than a band over the fill.
|
|
105
236
|
*/
|
|
106
|
-
export declare const focusRingClasses = "focus-visible:[outline:2px_solid_var(--p-ring)] focus-visible:outline-offset
|
|
237
|
+
export declare const focusRingClasses = "focus-visible:[outline:2px_solid_var(--p-ring)] focus-visible:[outline-offset:0px]";
|
|
107
238
|
/** The same ring, drawn by whichever descendant actually takes focus. */
|
|
108
|
-
export declare const focusWithinRingClasses = "has-[:focus-visible]:[outline:2px_solid_var(--p-ring)] has-[:focus-visible]:outline-offset
|
|
239
|
+
export declare const focusWithinRingClasses = "has-[:focus-visible]:[outline:2px_solid_var(--p-ring)] has-[:focus-visible]:[outline-offset:0px]";
|
|
240
|
+
/**
|
|
241
|
+
* The same ring again, turned inward.
|
|
242
|
+
*
|
|
243
|
+
* For an element that is *inside* something that clips — a segment in a
|
|
244
|
+
* groove, a tab on a rail, a row in a sheet with rounded corners, an accordion
|
|
245
|
+
* header in a scored pane. A ring drawn outside those is a ring with its top or
|
|
246
|
+
* its bottom sliced off by the container's own overflow, so it is drawn just
|
|
247
|
+
* inside the edge instead. Same width, same colour, same absence of a gap.
|
|
248
|
+
*/
|
|
249
|
+
export declare const focusRingInsetClasses = "focus-visible:[outline:2px_solid_var(--p-ring)] focus-visible:[outline-offset:-2px]";
|
|
250
|
+
/**
|
|
251
|
+
* The × that takes something off a chip.
|
|
252
|
+
*
|
|
253
|
+
* Here rather than in `PlChip` because a `PlCombobox` draws the same affordance
|
|
254
|
+
* on the chips *it* puts in its field, and it cannot reach into the component to
|
|
255
|
+
* borrow one — Base UI owns that button so the primitive can wire it up. Two
|
|
256
|
+
* copies of this would be two ×s that stop matching.
|
|
257
|
+
*
|
|
258
|
+
* Kept quiet until it is wanted: the glyph sits at 70% until the pointer or the
|
|
259
|
+
* keyboard arrives.
|
|
260
|
+
*/
|
|
261
|
+
export declare const chipRemoveClasses: string;
|
|
109
262
|
/** Icons track their label rather than carrying a size of their own. */
|
|
110
263
|
export declare const iconClasses = "[&_svg]:pointer-events-none [&_svg]:size-[1.2em] [&_svg]:shrink-0";
|
|
111
264
|
/**
|
|
@@ -123,11 +276,16 @@ export declare const srOnlyClasses = "absolute size-px overflow-hidden whitespac
|
|
|
123
276
|
* The three elevation slots are resolved here rather than in CSS because
|
|
124
277
|
* hovering adds a level and pressing removes one, and doing that arithmetic in
|
|
125
278
|
* a stylesheet would mean four ladders instead of one.
|
|
279
|
+
*
|
|
280
|
+
* `variant` is taken for one reason: the two interaction-light slots switch
|
|
281
|
+
* with it. Light thrown onto a filled surface is white; onto a tinted or a bare
|
|
282
|
+
* one it has to be the family's own soft tint, or there is nothing for it to
|
|
283
|
+
* show up against.
|
|
126
284
|
*/
|
|
127
|
-
export declare function controlSlots(color: PlassColor, elevation: PlassElevation): React.CSSProperties;
|
|
285
|
+
export declare function controlSlots(color: PlassColor, elevation: PlassElevation, variant: PlassVariant): React.CSSProperties;
|
|
128
286
|
/**
|
|
129
287
|
* The same slots for a surface that **holds** content rather than being
|
|
130
|
-
* pressed: a Box, a Card, a
|
|
288
|
+
* pressed: a Box, a Card, a PlTextField's shell, a popup.
|
|
131
289
|
*
|
|
132
290
|
* There is no `--p-fill` and no `--p-lift` here, and that is the point. A
|
|
133
291
|
* container's sheet is the undyed glass, because what it holds arrives with its
|
|
@@ -160,7 +318,29 @@ export declare const disabledClasses: Record<PlassVariant, string>;
|
|
|
160
318
|
*/
|
|
161
319
|
export declare const readOnlyFilterClasses = "saturate-[0.55]";
|
|
162
320
|
/**
|
|
163
|
-
* The
|
|
321
|
+
* The sheet a **container** is drawn on — a PlCard, a PlAccordion, a PlTable, a
|
|
322
|
+
* PlModal's panel. Everything that holds other people's content rather than
|
|
323
|
+
* being pressed.
|
|
324
|
+
*
|
|
325
|
+
* The three variants say what they say everywhere else, read as a *material*
|
|
326
|
+
* rather than as an appearance, and the ladder between them is opacity:
|
|
327
|
+
*
|
|
328
|
+
* - `solid` — the clear glass at its most opaque. The sheet you cannot see the
|
|
329
|
+
* page through, for a panel that has to sit forward of everything around it.
|
|
330
|
+
* No border, because a slab that dense has no edge left to catch light on.
|
|
331
|
+
* - `glass` — the canonical Plass sheet, and the default on every container:
|
|
332
|
+
* translucent, blurred, a white hairline round it and the light lying along
|
|
333
|
+
* its top edge.
|
|
334
|
+
* - `ghost` — no sheet at all. For a container inside a container, where a
|
|
335
|
+
* second bordered rectangle is a second rectangle.
|
|
336
|
+
*
|
|
337
|
+
* None of the three is dyed, and there is no `--p-fill` in `surfaceSlots` to
|
|
338
|
+
* dye them with. What a container holds arrives with its own colours; the
|
|
339
|
+
* family reaches the hairline, the focus ring and the caret and stops.
|
|
340
|
+
*/
|
|
341
|
+
export declare const sheetRestClasses: Record<PlassVariant, string>;
|
|
342
|
+
/**
|
|
343
|
+
* The shell a field-shaped control is drawn on — a PlTextField's box and a
|
|
164
344
|
* Select's trigger, which have to be indistinguishable or a form looks like two
|
|
165
345
|
* different forms stacked on each other.
|
|
166
346
|
*
|
|
@@ -171,6 +351,16 @@ export declare const readOnlyFilterClasses = "saturate-[0.55]";
|
|
|
171
351
|
* **well** — the glass at its most opaque with an inset shadow falling into it,
|
|
172
352
|
* the one shadow in the library that points downward — and the colour family
|
|
173
353
|
* shows up in the hairline, the ring and the caret instead.
|
|
354
|
+
*
|
|
355
|
+
* The edge is `--plass-border` and not the sheet's own `--plass-glass-line`,
|
|
356
|
+
* which is the same correction a PlCheckbox's tick, a PlRadio's ring and a
|
|
357
|
+
* PlTabs rail already carry, made for the third time and for the last: white
|
|
358
|
+
* light on a cut edge is a claim about the page wash behind the pane, and a
|
|
359
|
+
* field is very often *not* on the page — it is on a card, and a white hairline
|
|
360
|
+
* round a 76%-white box on a white card is a field a reader cannot see the
|
|
361
|
+
* shape of. A neutral hairline reads on both, and it means every edge on a form
|
|
362
|
+
* — the tick beside the field, the switch under it, the rail over it — is one
|
|
363
|
+
* line rather than two kinds of line that only agree on one background.
|
|
174
364
|
*/
|
|
175
365
|
export declare const fieldRestClasses: Record<PlassVariant, string>;
|
|
176
366
|
/** The same three, held still. */
|