@wow-two-beta/ui 0.0.5 → 0.0.7
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/actions/button/Button.d.ts +6 -0
- package/dist/actions/button/Button.d.ts.map +1 -0
- package/dist/actions/button/Button.variants.d.ts +81 -0
- package/dist/actions/button/Button.variants.d.ts.map +1 -0
- package/dist/actions/button/index.d.ts +3 -0
- package/dist/actions/button/index.d.ts.map +1 -0
- package/dist/actions/iconButton/IconButton.d.ts +13 -0
- package/dist/actions/iconButton/IconButton.d.ts.map +1 -0
- package/dist/actions/iconButton/IconButton.variants.d.ts +130 -0
- package/dist/actions/iconButton/IconButton.variants.d.ts.map +1 -0
- package/dist/actions/iconButton/index.d.ts +3 -0
- package/dist/actions/iconButton/index.d.ts.map +1 -0
- package/dist/actions/index.d.ts +4 -329
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +2 -2
- package/dist/actions/link/Link.d.ts +13 -0
- package/dist/actions/link/Link.d.ts.map +1 -0
- package/dist/actions/link/Link.variants.d.ts +88 -0
- package/dist/actions/link/Link.variants.d.ts.map +1 -0
- package/dist/actions/link/index.d.ts +3 -0
- package/dist/actions/link/index.d.ts.map +1 -0
- package/dist/{chunk-YLN7VMYU.js → chunk-62NXDB5V.js} +33 -33
- package/dist/chunk-62NXDB5V.js.map +1 -0
- package/dist/{chunk-MP4OTUFA.js → chunk-DBQ4VF2J.js} +32 -32
- package/dist/chunk-DBQ4VF2J.js.map +1 -0
- package/dist/{chunk-4CIRBYYP.js → chunk-HVJVLK6B.js} +17 -17
- package/dist/chunk-HVJVLK6B.js.map +1 -0
- package/dist/{chunk-KSJE3JAI.js → chunk-TDEEVNSD.js} +33 -33
- package/dist/chunk-TDEEVNSD.js.map +1 -0
- package/dist/display/avatar/Avatar.d.ts +18 -0
- package/dist/display/avatar/Avatar.d.ts.map +1 -0
- package/dist/display/avatar/Avatar.variants.d.ts +95 -0
- package/dist/display/avatar/Avatar.variants.d.ts.map +1 -0
- package/dist/display/avatar/index.d.ts +3 -0
- package/dist/display/avatar/index.d.ts.map +1 -0
- package/dist/display/badge/Badge.d.ts +10 -0
- package/dist/display/badge/Badge.d.ts.map +1 -0
- package/dist/display/badge/Badge.variants.d.ts +109 -0
- package/dist/display/badge/Badge.variants.d.ts.map +1 -0
- package/dist/display/badge/index.d.ts +3 -0
- package/dist/display/badge/index.d.ts.map +1 -0
- package/dist/display/code/Code.d.ts +10 -0
- package/dist/display/code/Code.d.ts.map +1 -0
- package/dist/display/code/Code.variants.d.ts +39 -0
- package/dist/display/code/Code.variants.d.ts.map +1 -0
- package/dist/display/code/index.d.ts +3 -0
- package/dist/display/code/index.d.ts.map +1 -0
- package/dist/display/heading/Heading.d.ts +15 -0
- package/dist/display/heading/Heading.d.ts.map +1 -0
- package/dist/display/heading/Heading.variants.d.ts +158 -0
- package/dist/display/heading/Heading.variants.d.ts.map +1 -0
- package/dist/display/heading/index.d.ts +3 -0
- package/dist/display/heading/index.d.ts.map +1 -0
- package/dist/display/image/Image.d.ts +12 -0
- package/dist/display/image/Image.d.ts.map +1 -0
- package/dist/display/image/index.d.ts +2 -0
- package/dist/display/image/index.d.ts.map +1 -0
- package/dist/display/index.d.ts +12 -806
- package/dist/display/index.d.ts.map +1 -0
- package/dist/display/index.js +1 -1
- package/dist/display/kbd/Kbd.d.ts +8 -0
- package/dist/display/kbd/Kbd.d.ts.map +1 -0
- package/dist/display/kbd/index.d.ts +2 -0
- package/dist/display/kbd/index.d.ts.map +1 -0
- package/dist/display/mark/Mark.d.ts +8 -0
- package/dist/display/mark/Mark.d.ts.map +1 -0
- package/dist/display/mark/index.d.ts +2 -0
- package/dist/display/mark/index.d.ts.map +1 -0
- package/dist/display/quote/Quote.d.ts +7 -0
- package/dist/display/quote/Quote.d.ts.map +1 -0
- package/dist/display/quote/index.d.ts +2 -0
- package/dist/display/quote/index.d.ts.map +1 -0
- package/dist/display/separator/Separator.d.ts +13 -0
- package/dist/display/separator/Separator.d.ts.map +1 -0
- package/dist/display/separator/index.d.ts +2 -0
- package/dist/display/separator/index.d.ts.map +1 -0
- package/dist/display/tag/Tag.d.ts +15 -0
- package/dist/display/tag/Tag.d.ts.map +1 -0
- package/dist/display/tag/Tag.variants.d.ts +67 -0
- package/dist/display/tag/Tag.variants.d.ts.map +1 -0
- package/dist/display/tag/index.d.ts +3 -0
- package/dist/display/tag/index.d.ts.map +1 -0
- package/dist/display/text/Text.d.ts +11 -0
- package/dist/display/text/Text.d.ts.map +1 -0
- package/dist/display/text/Text.variants.d.ts +228 -0
- package/dist/display/text/Text.variants.d.ts.map +1 -0
- package/dist/display/text/index.d.ts +3 -0
- package/dist/display/text/index.d.ts.map +1 -0
- package/dist/feedback/alertSimple/AlertSimple.d.ts +13 -0
- package/dist/feedback/alertSimple/AlertSimple.d.ts.map +1 -0
- package/dist/feedback/alertSimple/AlertSimple.variants.d.ts +60 -0
- package/dist/feedback/alertSimple/AlertSimple.variants.d.ts.map +1 -0
- package/dist/feedback/alertSimple/index.d.ts +3 -0
- package/dist/feedback/alertSimple/index.d.ts.map +1 -0
- package/dist/feedback/bannerSimple/BannerSimple.d.ts +10 -0
- package/dist/feedback/bannerSimple/BannerSimple.d.ts.map +1 -0
- package/dist/feedback/bannerSimple/BannerSimple.variants.d.ts +60 -0
- package/dist/feedback/bannerSimple/BannerSimple.variants.d.ts.map +1 -0
- package/dist/feedback/bannerSimple/index.d.ts +3 -0
- package/dist/feedback/bannerSimple/index.d.ts.map +1 -0
- package/dist/feedback/index.d.ts +8 -507
- package/dist/feedback/index.d.ts.map +1 -0
- package/dist/feedback/index.js +1 -1
- package/dist/feedback/progressBar/ProgressBar.d.ts +15 -0
- package/dist/feedback/progressBar/ProgressBar.d.ts.map +1 -0
- package/dist/feedback/progressBar/ProgressBar.variants.d.ts +103 -0
- package/dist/feedback/progressBar/ProgressBar.variants.d.ts.map +1 -0
- package/dist/feedback/progressBar/index.d.ts +3 -0
- package/dist/feedback/progressBar/index.d.ts.map +1 -0
- package/dist/feedback/progressCircle/ProgressCircle.d.ts +16 -0
- package/dist/feedback/progressCircle/ProgressCircle.d.ts.map +1 -0
- package/dist/feedback/progressCircle/index.d.ts +2 -0
- package/dist/feedback/progressCircle/index.d.ts.map +1 -0
- package/dist/feedback/skeleton/Skeleton.d.ts +10 -0
- package/dist/feedback/skeleton/Skeleton.d.ts.map +1 -0
- package/dist/feedback/skeleton/Skeleton.variants.d.ts +46 -0
- package/dist/feedback/skeleton/Skeleton.variants.d.ts.map +1 -0
- package/dist/feedback/skeleton/index.d.ts +3 -0
- package/dist/feedback/skeleton/index.d.ts.map +1 -0
- package/dist/feedback/spinner/Spinner.d.ts +12 -0
- package/dist/feedback/spinner/Spinner.d.ts.map +1 -0
- package/dist/feedback/spinner/Spinner.variants.d.ts +102 -0
- package/dist/feedback/spinner/Spinner.variants.d.ts.map +1 -0
- package/dist/feedback/spinner/index.d.ts +3 -0
- package/dist/feedback/spinner/index.d.ts.map +1 -0
- package/dist/feedback/toastSimple/ToastSimple.d.ts +12 -0
- package/dist/feedback/toastSimple/ToastSimple.d.ts.map +1 -0
- package/dist/feedback/toastSimple/ToastSimple.variants.d.ts +60 -0
- package/dist/feedback/toastSimple/ToastSimple.variants.d.ts.map +1 -0
- package/dist/feedback/toastSimple/index.d.ts +3 -0
- package/dist/feedback/toastSimple/index.d.ts.map +1 -0
- package/dist/forms/_styles.d.ts +74 -0
- package/dist/forms/_styles.d.ts.map +1 -0
- package/dist/forms/checkbox/Checkbox.d.ts +12 -0
- package/dist/forms/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/forms/checkbox/index.d.ts +2 -0
- package/dist/forms/checkbox/index.d.ts.map +1 -0
- package/dist/forms/emailInput/EmailInput.d.ts +7 -0
- package/dist/forms/emailInput/EmailInput.d.ts.map +1 -0
- package/dist/forms/emailInput/index.d.ts +2 -0
- package/dist/forms/emailInput/index.d.ts.map +1 -0
- package/dist/forms/fieldset/Fieldset.d.ts +8 -0
- package/dist/forms/fieldset/Fieldset.d.ts.map +1 -0
- package/dist/forms/fieldset/index.d.ts +2 -0
- package/dist/forms/fieldset/index.d.ts.map +1 -0
- package/dist/forms/formErrorMessage/FormErrorMessage.d.ts +8 -0
- package/dist/forms/formErrorMessage/FormErrorMessage.d.ts.map +1 -0
- package/dist/forms/formErrorMessage/index.d.ts +2 -0
- package/dist/forms/formErrorMessage/index.d.ts.map +1 -0
- package/dist/forms/formHelperText/FormHelperText.d.ts +8 -0
- package/dist/forms/formHelperText/FormHelperText.d.ts.map +1 -0
- package/dist/forms/formHelperText/index.d.ts +2 -0
- package/dist/forms/formHelperText/index.d.ts.map +1 -0
- package/dist/forms/index.d.ts +18 -218
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/index.js +2 -2
- package/dist/forms/label/Label.d.ts +11 -0
- package/dist/forms/label/Label.d.ts.map +1 -0
- package/dist/forms/label/index.d.ts +2 -0
- package/dist/forms/label/index.d.ts.map +1 -0
- package/dist/forms/legend/Legend.d.ts +7 -0
- package/dist/forms/legend/Legend.d.ts.map +1 -0
- package/dist/forms/legend/index.d.ts +2 -0
- package/dist/forms/legend/index.d.ts.map +1 -0
- package/dist/forms/numberInput/NumberInput.d.ts +11 -0
- package/dist/forms/numberInput/NumberInput.d.ts.map +1 -0
- package/dist/forms/numberInput/index.d.ts +2 -0
- package/dist/forms/numberInput/index.d.ts.map +1 -0
- package/dist/forms/passwordInput/PasswordInput.d.ts +12 -0
- package/dist/forms/passwordInput/PasswordInput.d.ts.map +1 -0
- package/dist/forms/passwordInput/index.d.ts +2 -0
- package/dist/forms/passwordInput/index.d.ts.map +1 -0
- package/dist/forms/radio/Radio.d.ts +11 -0
- package/dist/forms/radio/Radio.d.ts.map +1 -0
- package/dist/forms/radio/index.d.ts +2 -0
- package/dist/forms/radio/index.d.ts.map +1 -0
- package/dist/forms/searchInput/SearchInput.d.ts +13 -0
- package/dist/forms/searchInput/SearchInput.d.ts.map +1 -0
- package/dist/forms/searchInput/index.d.ts +2 -0
- package/dist/forms/searchInput/index.d.ts.map +1 -0
- package/dist/forms/slider/Slider.d.ts +10 -0
- package/dist/forms/slider/Slider.d.ts.map +1 -0
- package/dist/forms/slider/index.d.ts +2 -0
- package/dist/forms/slider/index.d.ts.map +1 -0
- package/dist/forms/switch/Switch.d.ts +10 -0
- package/dist/forms/switch/Switch.d.ts.map +1 -0
- package/dist/forms/switch/index.d.ts +2 -0
- package/dist/forms/switch/index.d.ts.map +1 -0
- package/dist/forms/telInput/TelInput.d.ts +7 -0
- package/dist/forms/telInput/TelInput.d.ts.map +1 -0
- package/dist/forms/telInput/index.d.ts +2 -0
- package/dist/forms/telInput/index.d.ts.map +1 -0
- package/dist/forms/textInput/TextInput.d.ts +11 -0
- package/dist/forms/textInput/TextInput.d.ts.map +1 -0
- package/dist/forms/textInput/index.d.ts +2 -0
- package/dist/forms/textInput/index.d.ts.map +1 -0
- package/dist/forms/textarea/Textarea.d.ts +10 -0
- package/dist/forms/textarea/Textarea.d.ts.map +1 -0
- package/dist/forms/textarea/index.d.ts +2 -0
- package/dist/forms/textarea/index.d.ts.map +1 -0
- package/dist/forms/urlInput/UrlInput.d.ts +7 -0
- package/dist/forms/urlInput/UrlInput.d.ts.map +1 -0
- package/dist/forms/urlInput/index.d.ts +2 -0
- package/dist/forms/urlInput/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +11 -2
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useControlled.d.ts +16 -0
- package/dist/hooks/useControlled.d.ts.map +1 -0
- package/dist/hooks/useDisclosure.d.ts +14 -0
- package/dist/hooks/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useEscape.d.ts +7 -0
- package/dist/hooks/useEscape.d.ts.map +1 -0
- package/dist/hooks/useEventListener.d.ts +8 -0
- package/dist/hooks/useEventListener.d.ts.map +1 -0
- package/dist/hooks/useFocusTrap.d.ts +11 -0
- package/dist/hooks/useFocusTrap.d.ts.map +1 -0
- package/dist/hooks/useId.d.ts +6 -0
- package/dist/hooks/useId.d.ts.map +1 -0
- package/dist/hooks/useMediaQuery.d.ts +6 -0
- package/dist/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/hooks/useOutsideClick.d.ts +8 -0
- package/dist/hooks/useOutsideClick.d.ts.map +1 -0
- package/dist/hooks/useResizeObserver.d.ts +7 -0
- package/dist/hooks/useResizeObserver.d.ts.map +1 -0
- package/dist/hooks/useScrollLock.d.ts +7 -0
- package/dist/hooks/useScrollLock.d.ts.map +1 -0
- package/dist/icons/Icon.d.ts +26 -0
- package/dist/icons/Icon.d.ts.map +1 -0
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/index.css +180 -3
- package/dist/index.d.ts +10 -17
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -7
- package/dist/layout/aspectRatio/AspectRatio.d.ts +12 -0
- package/dist/layout/aspectRatio/AspectRatio.d.ts.map +1 -0
- package/dist/layout/aspectRatio/index.d.ts +2 -0
- package/dist/layout/aspectRatio/index.d.ts.map +1 -0
- package/dist/layout/box/Box.d.ts +12 -0
- package/dist/layout/box/Box.d.ts.map +1 -0
- package/dist/layout/box/index.d.ts +2 -0
- package/dist/layout/box/index.d.ts.map +1 -0
- package/dist/layout/center/Center.d.ts +5 -0
- package/dist/layout/center/Center.d.ts.map +1 -0
- package/dist/layout/center/index.d.ts +2 -0
- package/dist/layout/center/index.d.ts.map +1 -0
- package/dist/layout/container/Container.d.ts +11 -0
- package/dist/layout/container/Container.d.ts.map +1 -0
- package/dist/layout/container/Container.variants.d.ts +67 -0
- package/dist/layout/container/Container.variants.d.ts.map +1 -0
- package/dist/layout/container/index.d.ts +3 -0
- package/dist/layout/container/index.d.ts.map +1 -0
- package/dist/layout/flex/Flex.d.ts +10 -0
- package/dist/layout/flex/Flex.d.ts.map +1 -0
- package/dist/layout/flex/index.d.ts +2 -0
- package/dist/layout/flex/index.d.ts.map +1 -0
- package/dist/layout/grid/Grid.d.ts +12 -0
- package/dist/layout/grid/Grid.d.ts.map +1 -0
- package/dist/layout/grid/Grid.variants.d.ts +165 -0
- package/dist/layout/grid/Grid.variants.d.ts.map +1 -0
- package/dist/layout/grid/index.d.ts +3 -0
- package/dist/layout/grid/index.d.ts.map +1 -0
- package/dist/layout/hStack/HStack.d.ts +5 -0
- package/dist/layout/hStack/HStack.d.ts.map +1 -0
- package/dist/layout/hStack/index.d.ts +2 -0
- package/dist/layout/hStack/index.d.ts.map +1 -0
- package/dist/layout/index.d.ts +12 -606
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/scrollArea/ScrollArea.d.ts +11 -0
- package/dist/layout/scrollArea/ScrollArea.d.ts.map +1 -0
- package/dist/layout/scrollArea/index.d.ts +2 -0
- package/dist/layout/scrollArea/index.d.ts.map +1 -0
- package/dist/layout/spacer/Spacer.d.ts +13 -0
- package/dist/layout/spacer/Spacer.d.ts.map +1 -0
- package/dist/layout/spacer/index.d.ts +2 -0
- package/dist/layout/spacer/index.d.ts.map +1 -0
- package/dist/layout/stack/Stack.d.ts +11 -0
- package/dist/layout/stack/Stack.d.ts.map +1 -0
- package/dist/layout/stack/Stack.variants.d.ts +277 -0
- package/dist/layout/stack/Stack.variants.d.ts.map +1 -0
- package/dist/layout/stack/index.d.ts +3 -0
- package/dist/layout/stack/index.d.ts.map +1 -0
- package/dist/layout/vStack/VStack.d.ts +5 -0
- package/dist/layout/vStack/VStack.d.ts.map +1 -0
- package/dist/layout/vStack/index.d.ts +2 -0
- package/dist/layout/vStack/index.d.ts.map +1 -0
- package/dist/primitives/accessibleIcon/AccessibleIcon.d.ts +13 -0
- package/dist/primitives/accessibleIcon/AccessibleIcon.d.ts.map +1 -0
- package/dist/primitives/accessibleIcon/index.d.ts +2 -0
- package/dist/primitives/accessibleIcon/index.d.ts.map +1 -0
- package/dist/primitives/anchoredPositioner/AnchoredPositioner.d.ts +20 -0
- package/dist/primitives/anchoredPositioner/AnchoredPositioner.d.ts.map +1 -0
- package/dist/primitives/anchoredPositioner/index.d.ts +2 -0
- package/dist/primitives/anchoredPositioner/index.d.ts.map +1 -0
- package/dist/primitives/collection/Collection.d.ts +19 -0
- package/dist/primitives/collection/Collection.d.ts.map +1 -0
- package/dist/primitives/collection/index.d.ts +2 -0
- package/dist/primitives/collection/index.d.ts.map +1 -0
- package/dist/primitives/directionProvider/DirectionProvider.d.ts +13 -0
- package/dist/primitives/directionProvider/DirectionProvider.d.ts.map +1 -0
- package/dist/primitives/directionProvider/index.d.ts +2 -0
- package/dist/primitives/directionProvider/index.d.ts.map +1 -0
- package/dist/primitives/dismissableLayer/DismissableLayer.d.ts +18 -0
- package/dist/primitives/dismissableLayer/DismissableLayer.d.ts.map +1 -0
- package/dist/primitives/dismissableLayer/index.d.ts +2 -0
- package/dist/primitives/dismissableLayer/index.d.ts.map +1 -0
- package/dist/primitives/focusScope/FocusScope.d.ts +11 -0
- package/dist/primitives/focusScope/FocusScope.d.ts.map +1 -0
- package/dist/primitives/focusScope/index.d.ts +2 -0
- package/dist/primitives/focusScope/index.d.ts.map +1 -0
- package/dist/primitives/formControlContext/FormControlContext.d.ts +32 -0
- package/dist/primitives/formControlContext/FormControlContext.d.ts.map +1 -0
- package/dist/primitives/formControlContext/index.d.ts +2 -0
- package/dist/primitives/formControlContext/index.d.ts.map +1 -0
- package/dist/primitives/index.d.ts +14 -5
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/portal/Portal.d.ts +14 -0
- package/dist/primitives/portal/Portal.d.ts.map +1 -0
- package/dist/primitives/portal/index.d.ts +2 -0
- package/dist/primitives/portal/index.d.ts.map +1 -0
- package/dist/primitives/presence/Presence.d.ts +14 -0
- package/dist/primitives/presence/Presence.d.ts.map +1 -0
- package/dist/primitives/presence/index.d.ts +2 -0
- package/dist/primitives/presence/index.d.ts.map +1 -0
- package/dist/primitives/rovingFocusGroup/RovingFocusGroup.d.ts +26 -0
- package/dist/primitives/rovingFocusGroup/RovingFocusGroup.d.ts.map +1 -0
- package/dist/primitives/rovingFocusGroup/index.d.ts +2 -0
- package/dist/primitives/rovingFocusGroup/index.d.ts.map +1 -0
- package/dist/primitives/scrollLockProvider/ScrollLockProvider.d.ts +12 -0
- package/dist/primitives/scrollLockProvider/ScrollLockProvider.d.ts.map +1 -0
- package/dist/primitives/scrollLockProvider/index.d.ts +2 -0
- package/dist/primitives/scrollLockProvider/index.d.ts.map +1 -0
- package/dist/primitives/slot/Slot.d.ts +15 -0
- package/dist/primitives/slot/Slot.d.ts.map +1 -0
- package/dist/primitives/slot/index.d.ts +2 -0
- package/dist/primitives/slot/index.d.ts.map +1 -0
- package/dist/primitives/visuallyHidden/VisuallyHidden.d.ts +9 -0
- package/dist/primitives/visuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/dist/primitives/visuallyHidden/index.d.ts +2 -0
- package/dist/primitives/visuallyHidden/index.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +7 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/composeEventHandlers.d.ts +11 -0
- package/dist/utils/composeEventHandlers.d.ts.map +1 -0
- package/dist/utils/composeRefs.d.ts +9 -0
- package/dist/utils/composeRefs.d.ts.map +1 -0
- package/dist/utils/dataAttr.d.ts +7 -0
- package/dist/utils/dataAttr.d.ts.map +1 -0
- package/dist/utils/index.d.ts +7 -4
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/polymorphic.d.ts +14 -0
- package/dist/utils/polymorphic.d.ts.map +1 -0
- package/dist/utils/tv.d.ts +2 -0
- package/dist/utils/tv.d.ts.map +1 -0
- package/package.json +5 -14
- package/dist/chunk-4CIRBYYP.js.map +0 -1
- package/dist/chunk-D67WGR7Y.js +0 -212
- package/dist/chunk-D67WGR7Y.js.map +0 -1
- package/dist/chunk-KSJE3JAI.js.map +0 -1
- package/dist/chunk-MP4OTUFA.js.map +0 -1
- package/dist/chunk-YLN7VMYU.js.map +0 -1
- package/dist/index-Bk6CuDNT.d.ts +0 -247
- package/dist/index-C0IDphm_.d.ts +0 -61
- package/dist/index-CEAM9LLM.d.ts +0 -37
- package/dist/index-PAuwodyY.d.ts +0 -103
- package/dist/index-goThcZ1E.d.ts +0 -416
- package/dist/tailwind/index.d.ts +0 -5
- package/dist/tailwind/index.js +0 -23
- package/dist/tailwind/index.js.map +0 -1
- package/dist/tokens/index.d.ts +0 -1
- package/dist/tokens/index.js +0 -4
- package/dist/tokens/index.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/forms/label/Label.tsx","../src/forms/formHelperText/FormHelperText.tsx","../src/forms/formErrorMessage/FormErrorMessage.tsx","../src/forms/fieldset/Fieldset.tsx","../src/forms/legend/Legend.tsx","../src/forms/_styles.ts","../src/forms/textInput/TextInput.tsx","../src/forms/emailInput/EmailInput.tsx","../src/forms/telInput/TelInput.tsx","../src/forms/urlInput/UrlInput.tsx","../src/forms/numberInput/NumberInput.tsx","../src/forms/passwordInput/PasswordInput.tsx","../src/forms/searchInput/SearchInput.tsx","../src/forms/textarea/Textarea.tsx","../src/forms/checkbox/Checkbox.tsx","../src/forms/radio/Radio.tsx","../src/forms/switch/Switch.tsx","../src/forms/slider/Slider.tsx"],"names":["forwardRef","jsx","jsxs","useRef","useImperativeHandle","useState","Minus","SIZE_CLASS","TRACK_CLASS"],"mappings":";;;;;;;;AAaO,IAAM,KAAA,GAAQ,UAAA;AAAA,EACnB,CAAC,EAAE,SAAA,EAAW,QAAA,EAAU,OAAA,EAAS,IAAI,QAAA,EAAU,GAAG,KAAA,EAAM,EAAG,GAAA,KAAQ;AACjE,IAAA,MAAM,MAAM,cAAA,EAAe;AAC3B,IAAA,MAAM,UAAA,GAAa,QAAA,IAAY,GAAA,EAAK,UAAA,IAAc,KAAA;AAClD,IAAA,uBACE,IAAA;AAAA,MAAC,OAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,OAAA,EAAS,WAAW,GAAA,EAAK,EAAA;AAAA,QACzB,EAAA,EAAI,MAAM,GA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AA,EAAW,EAAA;AAAA,UACT,uFAAA;AAAA;AAAA,UAEA,mGAAA;AAAA,UACA,CAAA,mCAAA,EAAsCO,YAAAA,CAAY,IAAI,CAAC,CAAA,CAAA;AAAA,UACvD,mSAAA;AAAA;AAAA,UAEA,CAAA,sBAAA,EAAyBA,YAAAA,CAAY,IAAI,CAAC,CAAA,CAAA;AAAA,UAC1C,yEAAA;AAAA,UACA,6LAAA;AAAA,UACA,kIAAA;AAAA,UACA;AAAA,SACF;AAAA,QACC,GAAG;AAAA;AAAA,KACN;AAAA,EAEJ;AACF;AACA,MAAA,CAAO,WAAA,GAAc,QAAA","file":"chunk-KSJE3JAI.js","sourcesContent":["import { forwardRef, type LabelHTMLAttributes } from 'react';\nimport { cn } from '../../utils';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\n\nexport interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {\n /** Show a `*` indicator. Auto-derived from `FormControl.isRequired` when present. */\n required?: boolean;\n}\n\n/**\n * `<label>` wired to `FormControl` context — when wrapped in a `FormControl`\n * it auto-fills `htmlFor` and `id`. Standalone use: pass `htmlFor` directly.\n */\nexport const Label = forwardRef<HTMLLabelElement, LabelProps>(\n ({ className, required, htmlFor, id, children, ...props }, ref) => {\n const ctx = useFormControl();\n const isRequired = required ?? ctx?.isRequired ?? false;\n return (\n <label\n ref={ref}\n htmlFor={htmlFor ?? ctx?.id}\n id={id ?? ctx?.labelId}\n className={cn(\n 'text-sm font-medium text-neutral-900',\n ctx?.isDisabled && 'opacity-60',\n className,\n )}\n {...props}\n >\n {children}\n {isRequired && <span className=\"ml-0.5 text-danger-500\" aria-hidden=\"true\">*</span>}\n </label>\n );\n },\n);\nLabel.displayName = 'Label';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\n\nexport type FormHelperTextProps = ComponentPropsWithoutRef<'p'>;\n\n/**\n * Helper / hint text below a form control. Reads `helperId` from\n * `FormControl` so the input can reference it via `aria-describedby`.\n */\nexport const FormHelperText = forwardRef<HTMLParagraphElement, FormHelperTextProps>(\n ({ className, id, ...props }, ref) => {\n const ctx = useFormControl();\n return (\n <p\n ref={ref}\n id={id ?? ctx?.helperId}\n className={cn('text-sm text-neutral-500', className)}\n {...props}\n />\n );\n },\n);\nFormHelperText.displayName = 'FormHelperText';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\n\nexport type FormErrorMessageProps = ComponentPropsWithoutRef<'p'>;\n\n/**\n * Error copy under a form control. Renders only when the surrounding\n * `FormControl` is `isInvalid`. `id={errorId}` for `aria-describedby` wiring.\n */\nexport const FormErrorMessage = forwardRef<HTMLParagraphElement, FormErrorMessageProps>(\n ({ className, id, ...props }, ref) => {\n const ctx = useFormControl();\n if (ctx && !ctx.isInvalid) return null;\n return (\n <p\n ref={ref}\n id={id ?? ctx?.errorId}\n role=\"alert\"\n className={cn('text-sm text-danger-600', className)}\n {...props}\n />\n );\n },\n);\nFormErrorMessage.displayName = 'FormErrorMessage';\n","import { forwardRef, type FieldsetHTMLAttributes } from 'react';\nimport { cn } from '../../utils';\n\nexport type FieldsetProps = FieldsetHTMLAttributes<HTMLFieldSetElement>;\n\n/**\n * Semantic `<fieldset>` for grouping related controls. Pair with `Legend`\n * for the group label.\n */\nexport const Fieldset = forwardRef<HTMLFieldSetElement, FieldsetProps>(\n ({ className, ...props }, ref) => (\n <fieldset\n ref={ref}\n className={cn('m-0 min-w-0 border-0 p-0', className)}\n {...props}\n />\n ),\n);\nFieldset.displayName = 'Fieldset';\n","import { forwardRef, type HTMLAttributes } from 'react';\nimport { cn } from '../../utils';\n\nexport type LegendProps = HTMLAttributes<HTMLLegendElement>;\n\n/**\n * `<legend>` styled to match `Label`. Pair with `Fieldset`.\n */\nexport const Legend = forwardRef<HTMLLegendElement, LegendProps>(\n ({ className, ...props }, ref) => (\n <legend\n ref={ref}\n className={cn('mb-2 text-sm font-medium text-neutral-900', className)}\n {...props}\n />\n ),\n);\nLegend.displayName = 'Legend';\n","// Shared visual primitives for form atoms. Co-located in `forms/` so imports\n// stay within-domain (ESLint boundaries allow same-domain imports).\n\nimport { tv, type VariantProps } from '../utils';\n\nexport const inputBaseVariants = tv({\n base: 'flex w-full rounded-md border bg-white text-neutral-900 placeholder:text-neutral-400 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 disabled:cursor-not-allowed disabled:opacity-60 read-only:bg-neutral-50',\n variants: {\n size: {\n sm: 'h-8 px-2.5 text-sm',\n md: 'h-10 px-3 text-sm',\n lg: 'h-12 px-4 text-base',\n },\n state: {\n default: 'border-neutral-300 hover:border-neutral-400',\n invalid: 'border-danger-500 focus-visible:ring-danger-500',\n },\n },\n defaultVariants: {\n size: 'md',\n state: 'default',\n },\n});\n\nexport type InputBaseVariants = VariantProps<typeof inputBaseVariants>;\n","import { forwardRef, type InputHTMLAttributes } from 'react';\nimport { cn } from '../../utils';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\nimport { inputBaseVariants, type InputBaseVariants } from '../_styles';\n\nexport interface TextInputProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>,\n InputBaseVariants {}\n\n/**\n * Single-line text input. For email/tel/url/number/password/search variants\n * use the dedicated input component (each carries only the props/buttons it\n * actually needs).\n */\nexport const TextInput = forwardRef<HTMLInputElement, TextInputProps>(\n ({ className, size, state, id, disabled, required, readOnly, ...props }, ref) => {\n const ctx = useFormControl();\n const finalState = state ?? (ctx?.isInvalid ? 'invalid' : 'default');\n return (\n <input\n ref={ref}\n type=\"text\"\n id={id ?? ctx?.id}\n disabled={disabled ?? ctx?.isDisabled}\n required={required ?? ctx?.isRequired}\n readOnly={readOnly ?? ctx?.isReadOnly}\n aria-invalid={ctx?.isInvalid || undefined}\n aria-describedby={ctx ? `${ctx.helperId} ${ctx.errorId}` : undefined}\n className={cn(inputBaseVariants({ size, state: finalState }), className)}\n {...props}\n />\n );\n },\n);\nTextInput.displayName = 'TextInput';\n","import { forwardRef, type InputHTMLAttributes } from 'react';\nimport { cn } from '../../utils';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\nimport { inputBaseVariants, type InputBaseVariants } from '../_styles';\n\nexport interface EmailInputProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>,\n InputBaseVariants {}\n\n/** `<input type=\"email\">` with sensible defaults (autocomplete, inputmode). */\nexport const EmailInput = forwardRef<HTMLInputElement, EmailInputProps>(\n ({ className, size, state, id, disabled, required, readOnly, ...props }, ref) => {\n const ctx = useFormControl();\n const finalState = state ?? (ctx?.isInvalid ? 'invalid' : 'default');\n return (\n <input\n ref={ref}\n type=\"email\"\n autoComplete=\"email\"\n inputMode=\"email\"\n spellCheck={false}\n id={id ?? ctx?.id}\n disabled={disabled ?? ctx?.isDisabled}\n required={required ?? ctx?.isRequired}\n readOnly={readOnly ?? ctx?.isReadOnly}\n aria-invalid={ctx?.isInvalid || undefined}\n aria-describedby={ctx ? `${ctx.helperId} ${ctx.errorId}` : undefined}\n className={cn(inputBaseVariants({ size, state: finalState }), className)}\n {...props}\n />\n );\n },\n);\nEmailInput.displayName = 'EmailInput';\n","import { forwardRef, type InputHTMLAttributes } from 'react';\nimport { cn } from '../../utils';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\nimport { inputBaseVariants, type InputBaseVariants } from '../_styles';\n\nexport interface TelInputProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>,\n InputBaseVariants {}\n\n/** `<input type=\"tel\">` with `inputmode=\"tel\"` and `autocomplete=\"tel\"`. */\nexport const TelInput = forwardRef<HTMLInputElement, TelInputProps>(\n ({ className, size, state, id, disabled, required, readOnly, ...props }, ref) => {\n const ctx = useFormControl();\n const finalState = state ?? (ctx?.isInvalid ? 'invalid' : 'default');\n return (\n <input\n ref={ref}\n type=\"tel\"\n autoComplete=\"tel\"\n inputMode=\"tel\"\n id={id ?? ctx?.id}\n disabled={disabled ?? ctx?.isDisabled}\n required={required ?? ctx?.isRequired}\n readOnly={readOnly ?? ctx?.isReadOnly}\n aria-invalid={ctx?.isInvalid || undefined}\n aria-describedby={ctx ? `${ctx.helperId} ${ctx.errorId}` : undefined}\n className={cn(inputBaseVariants({ size, state: finalState }), className)}\n {...props}\n />\n );\n },\n);\nTelInput.displayName = 'TelInput';\n","import { forwardRef, type InputHTMLAttributes } from 'react';\nimport { cn } from '../../utils';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\nimport { inputBaseVariants, type InputBaseVariants } from '../_styles';\n\nexport interface UrlInputProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>,\n InputBaseVariants {}\n\n/** `<input type=\"url\">` with `inputmode=\"url\"` and `autocomplete=\"url\"`. */\nexport const UrlInput = forwardRef<HTMLInputElement, UrlInputProps>(\n ({ className, size, state, id, disabled, required, readOnly, ...props }, ref) => {\n const ctx = useFormControl();\n const finalState = state ?? (ctx?.isInvalid ? 'invalid' : 'default');\n return (\n <input\n ref={ref}\n type=\"url\"\n autoComplete=\"url\"\n inputMode=\"url\"\n spellCheck={false}\n id={id ?? ctx?.id}\n disabled={disabled ?? ctx?.isDisabled}\n required={required ?? ctx?.isRequired}\n readOnly={readOnly ?? ctx?.isReadOnly}\n aria-invalid={ctx?.isInvalid || undefined}\n aria-describedby={ctx ? `${ctx.helperId} ${ctx.errorId}` : undefined}\n className={cn(inputBaseVariants({ size, state: finalState }), className)}\n {...props}\n />\n );\n },\n);\nUrlInput.displayName = 'UrlInput';\n","import {\n forwardRef,\n useImperativeHandle,\n useRef,\n type InputHTMLAttributes,\n} from 'react';\nimport { Minus, Plus } from 'lucide-react';\nimport { cn } from '../../utils';\nimport { Icon } from '../../icons';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\nimport { inputBaseVariants, type InputBaseVariants } from '../_styles';\n\nexport interface NumberInputProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>,\n InputBaseVariants {\n step?: number;\n}\n\n/**\n * Numeric input with stepper buttons. Steppers are raw `<button>` elements\n * (not `IconButton`) to keep the strict atom rule.\n */\nexport const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(\n (\n { className, size, state, id, disabled, required, readOnly, step = 1, ...props },\n forwardedRef,\n ) => {\n const ctx = useFormControl();\n const finalState = state ?? (ctx?.isInvalid ? 'invalid' : 'default');\n const inputRef = useRef<HTMLInputElement | null>(null);\n useImperativeHandle(forwardedRef, () => inputRef.current as HTMLInputElement);\n\n const adjust = (direction: 1 | -1) => {\n const el = inputRef.current;\n if (!el || typeof el.stepUp !== 'function') return;\n if (direction === 1) el.stepUp(step);\n else el.stepDown(step);\n el.dispatchEvent(new Event('input', { bubbles: true }));\n el.dispatchEvent(new Event('change', { bubbles: true }));\n };\n\n const isDisabled = disabled ?? ctx?.isDisabled ?? false;\n\n return (\n <div className={cn('relative', className)}>\n <input\n ref={inputRef}\n type=\"number\"\n inputMode=\"decimal\"\n step={step}\n id={id ?? ctx?.id}\n disabled={isDisabled}\n required={required ?? ctx?.isRequired}\n readOnly={readOnly ?? ctx?.isReadOnly}\n aria-invalid={ctx?.isInvalid || undefined}\n aria-describedby={ctx ? `${ctx.helperId} ${ctx.errorId}` : undefined}\n className={cn(inputBaseVariants({ size, state: finalState }), 'pr-12 [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none')}\n {...props}\n />\n <div className=\"absolute right-1 top-1/2 flex -translate-y-1/2 items-center\">\n <button\n type=\"button\"\n disabled={isDisabled}\n onClick={() => adjust(-1)}\n aria-label=\"Decrement\"\n className=\"grid h-7 w-6 place-items-center rounded text-neutral-500 hover:bg-neutral-100 disabled:opacity-50\"\n >\n <Icon icon={Minus} size={14} />\n </button>\n <button\n type=\"button\"\n disabled={isDisabled}\n onClick={() => adjust(1)}\n aria-label=\"Increment\"\n className=\"grid h-7 w-6 place-items-center rounded text-neutral-500 hover:bg-neutral-100 disabled:opacity-50\"\n >\n <Icon icon={Plus} size={14} />\n </button>\n </div>\n </div>\n );\n },\n);\nNumberInput.displayName = 'NumberInput';\n","import { forwardRef, useState, type InputHTMLAttributes } from 'react';\nimport { Eye, EyeOff } from 'lucide-react';\nimport { cn } from '../../utils';\nimport { Icon } from '../../icons';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\nimport { inputBaseVariants, type InputBaseVariants } from '../_styles';\n\nexport interface PasswordInputProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>,\n InputBaseVariants {\n /** Whether to render the visibility-toggle button. Default true. */\n toggleable?: boolean;\n}\n\n/**\n * Password input with optional visibility toggle. Toggle is a raw `<button>`\n * to keep the strict atom rule.\n */\nexport const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(\n (\n {\n className,\n size,\n state,\n id,\n disabled,\n required,\n readOnly,\n toggleable = true,\n autoComplete = 'current-password',\n ...props\n },\n ref,\n ) => {\n const [visible, setVisible] = useState(false);\n const ctx = useFormControl();\n const finalState = state ?? (ctx?.isInvalid ? 'invalid' : 'default');\n const isDisabled = disabled ?? ctx?.isDisabled ?? false;\n\n return (\n <div className={cn('relative', className)}>\n <input\n ref={ref}\n type={visible ? 'text' : 'password'}\n autoComplete={autoComplete}\n spellCheck={false}\n id={id ?? ctx?.id}\n disabled={isDisabled}\n required={required ?? ctx?.isRequired}\n readOnly={readOnly ?? ctx?.isReadOnly}\n aria-invalid={ctx?.isInvalid || undefined}\n aria-describedby={ctx ? `${ctx.helperId} ${ctx.errorId}` : undefined}\n className={cn(inputBaseVariants({ size, state: finalState }), toggleable && 'pr-10')}\n {...props}\n />\n {toggleable && (\n <button\n type=\"button\"\n disabled={isDisabled}\n onClick={() => setVisible((v) => !v)}\n aria-label={visible ? 'Hide password' : 'Show password'}\n aria-pressed={visible}\n className=\"absolute right-1 top-1/2 grid h-8 w-8 -translate-y-1/2 place-items-center rounded text-neutral-500 hover:bg-neutral-100 disabled:opacity-50\"\n >\n <Icon icon={visible ? EyeOff : Eye} size={16} />\n </button>\n )}\n </div>\n );\n },\n);\nPasswordInput.displayName = 'PasswordInput';\n","import {\n forwardRef,\n useImperativeHandle,\n useRef,\n useState,\n type InputHTMLAttributes,\n} from 'react';\nimport { Search, X } from 'lucide-react';\nimport { cn } from '../../utils';\nimport { Icon } from '../../icons';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\nimport { inputBaseVariants, type InputBaseVariants } from '../_styles';\n\nexport interface SearchInputProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>,\n InputBaseVariants {\n /** Show a clear (×) button when the input has a value. Default true. */\n clearable?: boolean;\n onClear?: () => void;\n}\n\n/**\n * Search input with leading search icon and optional clear button.\n * Buttons are raw `<button>` elements to keep the strict atom rule.\n */\nexport const SearchInput = forwardRef<HTMLInputElement, SearchInputProps>(\n (\n {\n className,\n size,\n state,\n id,\n disabled,\n required,\n readOnly,\n clearable = true,\n onClear,\n onChange,\n defaultValue,\n value,\n ...props\n },\n forwardedRef,\n ) => {\n const ctx = useFormControl();\n const finalState = state ?? (ctx?.isInvalid ? 'invalid' : 'default');\n const isDisabled = disabled ?? ctx?.isDisabled ?? false;\n const inputRef = useRef<HTMLInputElement | null>(null);\n useImperativeHandle(forwardedRef, () => inputRef.current as HTMLInputElement);\n const isControlled = value !== undefined;\n const [uncontrolled, setUncontrolled] = useState(defaultValue ?? '');\n const currentValue = isControlled ? value : uncontrolled;\n const showClear = clearable && String(currentValue ?? '').length > 0;\n\n const handleClear = () => {\n const el = inputRef.current;\n if (el) {\n const setter = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value')\n ?.set;\n setter?.call(el, '');\n el.dispatchEvent(new Event('input', { bubbles: true }));\n el.focus();\n }\n if (!isControlled) setUncontrolled('');\n onClear?.();\n };\n\n return (\n <div className={cn('relative', className)}>\n <Icon\n icon={Search}\n size={16}\n className=\"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400\"\n />\n <input\n ref={inputRef}\n type=\"search\"\n id={id ?? ctx?.id}\n value={isControlled ? value : undefined}\n defaultValue={!isControlled ? (defaultValue as string | number | undefined) : undefined}\n onChange={(e) => {\n if (!isControlled) setUncontrolled(e.target.value);\n onChange?.(e);\n }}\n disabled={isDisabled}\n required={required ?? ctx?.isRequired}\n readOnly={readOnly ?? ctx?.isReadOnly}\n aria-invalid={ctx?.isInvalid || undefined}\n aria-describedby={ctx ? `${ctx.helperId} ${ctx.errorId}` : undefined}\n className={cn(\n inputBaseVariants({ size, state: finalState }),\n 'pl-9',\n showClear && 'pr-9',\n '[&::-webkit-search-cancel-button]:appearance-none',\n )}\n {...props}\n />\n {showClear && (\n <button\n type=\"button\"\n disabled={isDisabled}\n onClick={handleClear}\n aria-label=\"Clear search\"\n className=\"absolute right-1 top-1/2 grid h-8 w-8 -translate-y-1/2 place-items-center rounded text-neutral-400 hover:bg-neutral-100 hover:text-neutral-600\"\n >\n <Icon icon={X} size={14} />\n </button>\n )}\n </div>\n );\n },\n);\nSearchInput.displayName = 'SearchInput';\n","import { forwardRef, type TextareaHTMLAttributes } from 'react';\nimport { cn } from '../../utils';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\nimport { inputBaseVariants, type InputBaseVariants } from '../_styles';\n\nexport interface TextareaProps\n extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>,\n InputBaseVariants {}\n\n/**\n * Multi-line text input. Inherits the input visual base. For autosize, pair\n * with a sibling-domain hook in v1 — kept simple at L3.\n */\nexport const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n { className, size, state, id, disabled, required, readOnly, rows = 3, ...props },\n ref,\n ) => {\n const ctx = useFormControl();\n const finalState = state ?? (ctx?.isInvalid ? 'invalid' : 'default');\n return (\n <textarea\n ref={ref}\n rows={rows}\n id={id ?? ctx?.id}\n disabled={disabled ?? ctx?.isDisabled}\n required={required ?? ctx?.isRequired}\n readOnly={readOnly ?? ctx?.isReadOnly}\n aria-invalid={ctx?.isInvalid || undefined}\n aria-describedby={ctx ? `${ctx.helperId} ${ctx.errorId}` : undefined}\n className={cn(\n inputBaseVariants({ size, state: finalState }),\n 'h-auto resize-y py-2',\n className,\n )}\n {...props}\n />\n );\n },\n);\nTextarea.displayName = 'Textarea';\n","import { forwardRef, type InputHTMLAttributes } from 'react';\nimport { Check, Minus } from 'lucide-react';\nimport { cn } from '../../utils';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\n\nexport interface CheckboxProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {\n size?: 'sm' | 'md' | 'lg';\n /** Tristate visual — input is `checked={false}` but rendered as a dash. */\n indeterminate?: boolean;\n}\n\nconst SIZE_CLASS: Record<NonNullable<CheckboxProps['size']>, string> = {\n sm: 'h-4 w-4',\n md: 'h-5 w-5',\n lg: 'h-6 w-6',\n};\n\n/**\n * Native checkbox with custom visual. Renders the input visually hidden but\n * accessible — wrap in a `<label>` (or pair with `Label` via `FormControl`).\n */\nexport const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(\n (\n { className, size = 'md', indeterminate, id, disabled, required, checked, ...props },\n ref,\n ) => {\n const ctx = useFormControl();\n const isDisabled = disabled ?? ctx?.isDisabled;\n return (\n <span className={cn('relative inline-flex shrink-0', SIZE_CLASS[size], className)}>\n <input\n ref={ref}\n type=\"checkbox\"\n id={id ?? ctx?.id}\n disabled={isDisabled}\n required={required ?? ctx?.isRequired}\n checked={checked}\n aria-invalid={ctx?.isInvalid || undefined}\n aria-describedby={ctx ? `${ctx.helperId} ${ctx.errorId}` : undefined}\n className=\"peer absolute inset-0 m-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed\"\n {...props}\n />\n <span\n aria-hidden=\"true\"\n className={cn(\n 'pointer-events-none grid h-full w-full place-items-center rounded-sm border border-neutral-300 bg-white text-white transition-colors',\n 'peer-checked:border-brand-600 peer-checked:bg-brand-600',\n 'peer-focus-visible:ring-2 peer-focus-visible:ring-brand-500 peer-focus-visible:ring-offset-1',\n 'peer-disabled:opacity-50',\n indeterminate && 'border-brand-600 bg-brand-600',\n )}\n >\n {indeterminate ? (\n <Minus size={Math.round(SIZE_CLASS[size].length * 1.4)} className=\"h-3 w-3\" />\n ) : (\n <Check className=\"h-3 w-3 opacity-0 peer-checked:opacity-100\" />\n )}\n </span>\n </span>\n );\n },\n);\nCheckbox.displayName = 'Checkbox';\n","import { forwardRef, type InputHTMLAttributes } from 'react';\nimport { cn } from '../../utils';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\n\nexport interface RadioProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {\n size?: 'sm' | 'md' | 'lg';\n}\n\nconst SIZE_CLASS: Record<NonNullable<RadioProps['size']>, string> = {\n sm: 'h-4 w-4',\n md: 'h-5 w-5',\n lg: 'h-6 w-6',\n};\n\n/**\n * Native radio button with custom visual. Use multiple with the same `name`\n * to form a mutually exclusive group; for arrow-key nav, wrap in\n * `RadioGroup` (L4).\n */\nexport const Radio = forwardRef<HTMLInputElement, RadioProps>(\n ({ className, size = 'md', id, disabled, required, ...props }, ref) => {\n const ctx = useFormControl();\n return (\n <span className={cn('relative inline-flex shrink-0', SIZE_CLASS[size], className)}>\n <input\n ref={ref}\n type=\"radio\"\n id={id ?? ctx?.id}\n disabled={disabled ?? ctx?.isDisabled}\n required={required ?? ctx?.isRequired}\n aria-invalid={ctx?.isInvalid || undefined}\n className=\"peer absolute inset-0 m-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed\"\n {...props}\n />\n <span\n aria-hidden=\"true\"\n className={cn(\n 'pointer-events-none grid h-full w-full place-items-center rounded-full border border-neutral-300 bg-white transition-colors',\n 'peer-checked:border-brand-600',\n 'peer-focus-visible:ring-2 peer-focus-visible:ring-brand-500 peer-focus-visible:ring-offset-1',\n 'peer-disabled:opacity-50',\n )}\n >\n <span className=\"h-2 w-2 rounded-full bg-brand-600 opacity-0 peer-checked:opacity-100\" />\n </span>\n </span>\n );\n },\n);\nRadio.displayName = 'Radio';\n","import { forwardRef, type InputHTMLAttributes } from 'react';\nimport { cn } from '../../utils';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\n\nexport interface SwitchProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {\n size?: 'sm' | 'md' | 'lg';\n}\n\nconst TRACK_CLASS: Record<NonNullable<SwitchProps['size']>, string> = {\n sm: 'h-4 w-7',\n md: 'h-5 w-9',\n lg: 'h-6 w-11',\n};\nconst THUMB_CLASS: Record<NonNullable<SwitchProps['size']>, string> = {\n sm: 'h-3 w-3 peer-checked:translate-x-3',\n md: 'h-4 w-4 peer-checked:translate-x-4',\n lg: 'h-5 w-5 peer-checked:translate-x-5',\n};\n\n/**\n * Toggle switch — native checkbox styled as an iOS-style track + thumb.\n * Strict atom: no built-in label; pair via `FormControl` or wrap manually.\n */\nexport const Switch = forwardRef<HTMLInputElement, SwitchProps>(\n ({ className, size = 'md', id, disabled, required, ...props }, ref) => {\n const ctx = useFormControl();\n return (\n <span className={cn('relative inline-flex shrink-0', TRACK_CLASS[size], className)}>\n <input\n ref={ref}\n type=\"checkbox\"\n role=\"switch\"\n id={id ?? ctx?.id}\n disabled={disabled ?? ctx?.isDisabled}\n required={required ?? ctx?.isRequired}\n aria-invalid={ctx?.isInvalid || undefined}\n className=\"peer absolute inset-0 m-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed\"\n {...props}\n />\n <span\n aria-hidden=\"true\"\n className={cn(\n 'pointer-events-none flex h-full w-full items-center rounded-full bg-neutral-300 px-0.5 transition-colors',\n 'peer-checked:bg-brand-600',\n 'peer-focus-visible:ring-2 peer-focus-visible:ring-brand-500 peer-focus-visible:ring-offset-1',\n 'peer-disabled:opacity-50',\n )}\n >\n <span\n className={cn(\n 'rounded-full bg-white shadow-sm transition-transform duration-150',\n THUMB_CLASS[size],\n )}\n />\n </span>\n </span>\n );\n },\n);\nSwitch.displayName = 'Switch';\n","import { forwardRef, type InputHTMLAttributes } from 'react';\nimport { cn } from '../../utils';\nimport { useFormControl } from '../../primitives/formControlContext/FormControlContext';\n\nexport interface SliderProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {\n size?: 'sm' | 'md' | 'lg';\n}\n\nconst TRACK_CLASS: Record<NonNullable<SliderProps['size']>, string> = {\n sm: 'h-1',\n md: 'h-1.5',\n lg: 'h-2',\n};\n\n/**\n * Single-value range slider — native `<input type=\"range\">` styled across\n * browsers. Multi-thumb / range slider lives at L5.\n */\nexport const Slider = forwardRef<HTMLInputElement, SliderProps>(\n (\n { className, size = 'md', id, disabled, required, min = 0, max = 100, ...props },\n ref,\n ) => {\n const ctx = useFormControl();\n return (\n <input\n ref={ref}\n type=\"range\"\n id={id ?? ctx?.id}\n disabled={disabled ?? ctx?.isDisabled}\n required={required ?? ctx?.isRequired}\n min={min}\n max={max}\n aria-invalid={ctx?.isInvalid || undefined}\n className={cn(\n 'w-full appearance-none bg-transparent disabled:cursor-not-allowed disabled:opacity-50',\n // WebKit\n '[&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-neutral-200',\n `[&::-webkit-slider-runnable-track]:${TRACK_CLASS[size]}`,\n '[&::-webkit-slider-thumb]:mt-[-6px] [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-brand-600 [&::-webkit-slider-thumb]:bg-white',\n // Firefox\n `[&::-moz-range-track]:${TRACK_CLASS[size]}`,\n '[&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-neutral-200',\n '[&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-brand-600 [&::-moz-range-thumb]:bg-white',\n 'focus-visible:outline-none focus-visible:[&::-webkit-slider-thumb]:ring-2 focus-visible:[&::-webkit-slider-thumb]:ring-brand-500',\n className,\n )}\n {...props}\n />\n );\n },\n);\nSlider.displayName = 'Slider';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/display/heading/Heading.variants.ts","../src/display/heading/Heading.tsx","../src/display/text/Text.variants.ts","../src/display/text/Text.tsx","../src/display/code/Code.variants.ts","../src/display/code/Code.tsx","../src/display/kbd/Kbd.tsx","../src/display/image/Image.tsx","../src/display/avatar/Avatar.variants.ts","../src/display/avatar/Avatar.tsx","../src/display/badge/Badge.variants.ts","../src/display/badge/Badge.tsx","../src/display/tag/Tag.variants.ts","../src/display/tag/Tag.tsx","../src/display/separator/Separator.tsx","../src/display/mark/Mark.tsx","../src/display/quote/Quote.tsx"],"names":["Tag","forwardRef","jsx","useState"],"mappings":";;;;;;;;AAEO,IAAM,kBAAkB,EAAA,CAAG;AAAA,EAChC,IAAA,EAAM,+CAAA;AAAA,EACN,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI,SAAA;AAAA,MACJ,EAAA,EAAI,WAAA;AAAA,MACJ,EAAA,EAAI,SAAA;AAAA,MACJ,EAAA,EAAI,SAAA;AAAA,MACJ,EAAA,EAAI,UAAA;AAAA,MACJ,KAAA,EAAO,UAAA;AAAA,MACP,KAAA,EAAO,UAAA;AAAA,MACP,KAAA,EAAO;AAAA,KACT;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ,aAAA;AAAA,MACR,MAAA,EAAQ,aAAA;AAAA,MACR,QAAA,EAAU,eAAA;AAAA,MACV,IAAA,EAAM;AAAA,KACR;AAAA,IACA,KAAA,EAAO;AAAA,MACL,IAAA,EAAM,WAAA;AAAA,MACN,MAAA,EAAQ,aAAA;AAAA,MACR,KA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AM,EAAG,GAAA,qBACvEC,GAAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,IAAA,EAAM,aAAa,MAAA,GAAS,WAAA;AAAA,MAC5B,kBAAA,EAAkB,aAAa,MAAA,GAAY,WAAA;AAAA,MAC3C,SAAA,EAAW,EAAA;AAAA,QACT,gBAAA;AAAA,QACA,WAAA,KAAgB,eAAe,aAAA,GAAgB,mBAAA;AAAA,QAC/C;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA;AAGV;AACA,SAAA,CAAU,WAAA,GAAc,WAAA;ACpBjB,IAAM,IAAA,GAAOD,WAAmC,CAAC,EAAE,WAAW,GAAG,KAAA,EAAM,EAAG,GAAA,qBAC/EC,GAAAA;AAAA,EAAC,MAAA;AAAA,EAAA;AAAA,IACC,GAAA;AAAA,IACA,SAAA,EAAW,EAAA,CAAG,mDAAA,EAAqD,SAAS,CAAA;AAAA,IAC3E,GAAG;AAAA;AACN,CACD;AACD,IAAA,CAAK,WAAA,GAAc,MAAA;ACRZ,IAAM,KAAA,GAAQD,UAAAA;AAAA,EACnB,CAAC,EAAE,SAAA,EAAW,GAAG,KAAA,EAAM,EAAG,wBACxBC,GAAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,SAAA,EAAW,EAAA;AAAA,QACT,4DAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA;AAGV;AACA,KAAA,CAAM,WAAA,GAAc,OAAA","file":"chunk-MP4OTUFA.js","sourcesContent":["import { tv, type VariantProps } from '../../utils';\n\nexport const headingVariants = tv({\n base: 'font-semibold tracking-tight text-neutral-900',\n variants: {\n size: {\n xs: 'text-sm',\n sm: 'text-base',\n md: 'text-lg',\n lg: 'text-xl',\n xl: 'text-2xl',\n '2xl': 'text-3xl',\n '3xl': 'text-4xl',\n '4xl': 'text-5xl',\n },\n weight: {\n normal: 'font-normal',\n medium: 'font-medium',\n semibold: 'font-semibold',\n bold: 'font-bold',\n },\n align: {\n left: 'text-left',\n center: 'text-center',\n right: 'text-right',\n },\n },\n defaultVariants: {\n size: 'lg',\n weight: 'semibold',\n },\n});\n\nexport type HeadingVariants = VariantProps<typeof headingVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { headingVariants, type HeadingVariants } from './Heading.variants';\n\ntype HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;\n\nexport interface HeadingProps\n extends Omit<ComponentPropsWithoutRef<'h2'>, 'size'>,\n HeadingVariants {\n /** Semantic heading level (1–6). Default 2. Visual size is independent — set via `size`. */\n level?: HeadingLevel;\n}\n\n/**\n * Semantic heading. `level` controls the rendered tag (`h1`–`h6`); `size`\n * controls the visual scale independently — so a visually-large heading\n * can still be the right outline level.\n */\nexport const Heading = forwardRef<HTMLHeadingElement, HeadingProps>(\n ({ level = 2, className, size, weight, align, ...props }, ref) => {\n const Tag = `h${level}` as 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n return (\n <Tag\n ref={ref}\n className={cn(headingVariants({ size, weight, align }), className)}\n {...props}\n />\n );\n },\n);\nHeading.displayName = 'Heading';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const textVariants = tv({\n base: '',\n variants: {\n size: {\n xs: 'text-xs',\n sm: 'text-sm',\n md: 'text-base',\n lg: 'text-lg',\n xl: 'text-xl',\n },\n weight: {\n normal: 'font-normal',\n medium: 'font-medium',\n semibold: 'font-semibold',\n bold: 'font-bold',\n },\n color: {\n default: 'text-neutral-900',\n muted: 'text-neutral-500',\n subtle: 'text-neutral-400',\n brand: 'text-brand-600',\n success: 'text-success-600',\n warning: 'text-warning-600',\n danger: 'text-danger-600',\n },\n align: {\n left: 'text-left',\n center: 'text-center',\n right: 'text-right',\n justify: 'text-justify',\n },\n truncate: {\n true: 'truncate',\n },\n },\n defaultVariants: {\n size: 'md',\n weight: 'normal',\n color: 'default',\n },\n});\n\nexport type TextVariants = VariantProps<typeof textVariants>;\n","import {\n forwardRef,\n type ComponentPropsWithoutRef,\n type ElementType,\n type Ref,\n} from 'react';\nimport { cn } from '../../utils';\nimport { textVariants, type TextVariants } from './Text.variants';\n\nexport interface TextProps\n extends Omit<ComponentPropsWithoutRef<'p'>, 'as' | 'color'>,\n TextVariants {\n as?: ElementType;\n}\n\n/**\n * Body text. Renders as `<p>` by default; pass `as=\"span\"` (or any element)\n * to keep semantics consistent with the surrounding markup.\n */\nexport const Text = forwardRef<HTMLElement, TextProps>(\n ({ as: Component = 'p', className, size, weight, color, align, truncate, ...props }, ref) => (\n <Component\n ref={ref as Ref<HTMLElement>}\n className={cn(textVariants({ size, weight, color, align, truncate }), className)}\n {...props}\n />\n ),\n);\nText.displayName = 'Text';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const codeVariants = tv({\n base: 'font-mono text-sm',\n variants: {\n variant: {\n inline: 'rounded-sm bg-neutral-100 px-1 py-0.5 text-neutral-900',\n block: 'block w-full overflow-x-auto rounded-md bg-neutral-100 p-4 text-neutral-900',\n },\n },\n defaultVariants: {\n variant: 'inline',\n },\n});\n\nexport type CodeVariants = VariantProps<typeof codeVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { codeVariants, type CodeVariants } from './Code.variants';\n\nexport interface CodeProps extends ComponentPropsWithoutRef<'code'>, CodeVariants {}\n\n/**\n * Inline or block code. For block, wrap children in a `<pre>` if you need\n * pre-wrap whitespace; this atom only styles. Syntax highlighting is L5.\n */\nexport const Code = forwardRef<HTMLElement, CodeProps>(\n ({ className, variant, ...props }, ref) => (\n <code ref={ref} className={cn(codeVariants({ variant }), className)} {...props} />\n ),\n);\nCode.displayName = 'Code';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport type KbdProps = ComponentPropsWithoutRef<'kbd'>;\n\n/**\n * Keyboard key affordance — `<kbd>` styled with subtle border and inset\n * shadow. Single key per `<Kbd>`; chain via `<Kbd>⌘</Kbd> + <Kbd>K</Kbd>`.\n */\nexport const Kbd = forwardRef<HTMLElement, KbdProps>(({ className, ...props }, ref) => (\n <kbd\n ref={ref}\n className={cn(\n 'inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-neutral-300',\n 'bg-neutral-100 px-1.5 font-mono text-xs text-neutral-700 shadow-[inset_0_-1px_0_0_rgb(0_0_0/0.05)]',\n className,\n )}\n {...props}\n />\n));\nKbd.displayName = 'Kbd';\n","import { forwardRef, useState, type ComponentPropsWithoutRef, type ReactNode } from 'react';\nimport { cn } from '../../utils';\n\nexport interface ImageProps extends ComponentPropsWithoutRef<'img'> {\n /** Element rendered when the image fails to load. */\n fallback?: ReactNode;\n}\n\n/**\n * Image with built-in error fallback. The fallback element replaces the\n * `<img>` on error (broken `src`, network failure). For aspect-locked\n * images, wrap in `AspectRatio`.\n */\nexport const Image = forwardRef<HTMLImageElement, ImageProps>(\n ({ fallback, onError, alt = '', className, ...props }, ref) => {\n const [errored, setErrored] = useState(false);\n if (errored && fallback !== undefined) return <>{fallback}</>;\n return (\n <img\n ref={ref}\n alt={alt}\n className={cn('block max-w-full', className)}\n onError={(e) => {\n setErrored(true);\n onError?.(e);\n }}\n {...props}\n />\n );\n },\n);\nImage.displayName = 'Image';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const avatarVariants = tv({\n base: 'inline-flex shrink-0 select-none items-center justify-center overflow-hidden rounded-full bg-neutral-200 text-neutral-700 font-medium',\n variants: {\n size: {\n xs: 'h-6 w-6 text-xs',\n sm: 'h-8 w-8 text-sm',\n md: 'h-10 w-10 text-base',\n lg: 'h-12 w-12 text-lg',\n xl: 'h-16 w-16 text-xl',\n '2xl': 'h-20 w-20 text-2xl',\n },\n shape: {\n circle: 'rounded-full',\n square: 'rounded-md',\n },\n },\n defaultVariants: {\n size: 'md',\n shape: 'circle',\n },\n});\n\nexport type AvatarVariants = VariantProps<typeof avatarVariants>;\n","import {\n forwardRef,\n useState,\n type ComponentPropsWithoutRef,\n type ReactNode,\n} from 'react';\nimport { cn } from '../../utils';\nimport { avatarVariants, type AvatarVariants } from './Avatar.variants';\n\nexport interface AvatarProps\n extends Omit<ComponentPropsWithoutRef<'span'>, 'children'>,\n AvatarVariants {\n /** Image source. Falls back to `name` initials or `fallback` on error. */\n src?: string;\n /** Person/entity name — used to derive initials when no image. */\n name?: string;\n /** Custom fallback (overrides initials). */\n fallback?: ReactNode;\n /** Alt text for the underlying `<img>`. Defaults to `name`. */\n alt?: string;\n}\n\nfunction getInitials(name: string): string {\n const parts = name.trim().split(/\\s+/);\n if (parts.length === 0) return '';\n const first = parts[0]?.[0] ?? '';\n const last = parts.length > 1 ? parts[parts.length - 1]?.[0] ?? '' : '';\n return (first + last).toUpperCase();\n}\n\n/**\n * Image avatar with initials fallback. Strict atom — fallback is rendered\n * inline (raw text), not via the `Text` atom, to keep this self-contained.\n */\nexport const Avatar = forwardRef<HTMLSpanElement, AvatarProps>(\n ({ src, name = '', fallback, alt, className, size, shape, ...props }, ref) => {\n const [errored, setErrored] = useState(false);\n const showImage = src && !errored;\n return (\n <span\n ref={ref}\n className={cn(avatarVariants({ size, shape }), className)}\n {...props}\n >\n {showImage ? (\n <img\n src={src}\n alt={alt ?? name}\n className=\"h-full w-full object-cover\"\n onError={() => setErrored(true)}\n />\n ) : (\n fallback ?? getInitials(name)\n )}\n </span>\n );\n },\n);\nAvatar.displayName = 'Avatar';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const badgeVariants = tv({\n base: 'inline-flex items-center rounded-full font-medium',\n variants: {\n variant: {\n neutral: 'bg-neutral-100 text-neutral-800',\n brand: 'bg-brand-100 text-brand-800',\n success: 'bg-success-100 text-success-700',\n warning: 'bg-warning-100 text-warning-700',\n danger: 'bg-danger-100 text-danger-700',\n info: 'bg-info-100 text-info-700',\n outline: 'border border-neutral-300 text-neutral-800',\n },\n size: {\n sm: 'h-5 px-2 text-xs',\n md: 'h-6 px-2.5 text-xs',\n lg: 'h-7 px-3 text-sm',\n },\n },\n defaultVariants: {\n variant: 'neutral',\n size: 'md',\n },\n});\n\nexport type BadgeVariants = VariantProps<typeof badgeVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { badgeVariants, type BadgeVariants } from './Badge.variants';\n\nexport interface BadgeProps extends ComponentPropsWithoutRef<'span'>, BadgeVariants {}\n\n/**\n * Pill-shaped status / category indicator. Non-interactive — for clickable\n * use `Tag`. For severity-tinted callouts at message scale, use `Alert*`.\n */\nexport const Badge = forwardRef<HTMLSpanElement, BadgeProps>(\n ({ className, variant, size, ...props }, ref) => (\n <span ref={ref} className={cn(badgeVariants({ variant, size }), className)} {...props} />\n ),\n);\nBadge.displayName = 'Badge';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const tagVariants = tv({\n base: 'inline-flex items-center gap-1 rounded-md border border-neutral-200 bg-white px-2 py-0.5 text-xs font-medium text-neutral-800',\n variants: {\n variant: {\n neutral: '',\n brand: 'border-brand-200 bg-brand-50 text-brand-800',\n success: 'border-success-100 bg-success-50 text-success-700',\n warning: 'border-warning-100 bg-warning-50 text-warning-700',\n danger: 'border-danger-100 bg-danger-50 text-danger-700',\n info: 'border-info-100 bg-info-50 text-info-700',\n },\n },\n defaultVariants: {\n variant: 'neutral',\n },\n});\n\nexport type TagVariants = VariantProps<typeof tagVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef, type ReactNode } from 'react';\nimport { X } from 'lucide-react';\nimport { cn } from '../../utils';\nimport { Icon } from '../../icons';\nimport { tagVariants, type TagVariants } from './Tag.variants';\n\nexport interface TagProps\n extends Omit<ComponentPropsWithoutRef<'span'>, 'children'>,\n TagVariants {\n children?: ReactNode;\n /** Show a close (×) button. Pass a handler to receive the click. */\n onClose?: () => void;\n /** Accessible label for the close button. Default `\"Remove\"`. */\n closeLabel?: string;\n}\n\n/**\n * Pill with an optional close button. The close button is a raw `<button>`\n * (not `IconButton`) so this stays a strict atom.\n */\nexport const Tag = forwardRef<HTMLSpanElement, TagProps>(\n ({ children, onClose, closeLabel = 'Remove', variant, className, ...props }, ref) => (\n <span ref={ref} className={cn(tagVariants({ variant }), className)} {...props}>\n {children}\n {onClose && (\n <button\n type=\"button\"\n aria-label={closeLabel}\n onClick={onClose}\n className=\"-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-sm text-neutral-500 hover:bg-neutral-100 hover:text-neutral-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-brand-500\"\n >\n <Icon icon={X} size={12} />\n </button>\n )}\n </span>\n ),\n);\nTag.displayName = 'Tag';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport interface SeparatorProps extends ComponentPropsWithoutRef<'div'> {\n orientation?: 'horizontal' | 'vertical';\n /** When `true`, the separator is purely decorative — `role=\"none\"` and\n * unannounced. Default `true`. Set `false` when meaningful in context. */\n decorative?: boolean;\n}\n\n/**\n * Visual divider. Defaults to a horizontal hairline; pass `orientation=\"vertical\"`\n * for column dividers (use inside a flex/grid with explicit height).\n */\nexport const Separator = forwardRef<HTMLDivElement, SeparatorProps>(\n ({ orientation = 'horizontal', decorative = true, className, ...props }, ref) => (\n <div\n ref={ref}\n role={decorative ? 'none' : 'separator'}\n aria-orientation={decorative ? undefined : orientation}\n className={cn(\n 'bg-neutral-200',\n orientation === 'horizontal' ? 'h-px w-full' : 'w-px self-stretch',\n className,\n )}\n {...props}\n />\n ),\n);\nSeparator.displayName = 'Separator';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport type MarkProps = ComponentPropsWithoutRef<'mark'>;\n\n/**\n * Highlighted text — semantic `<mark>` with a yellow tint. Use for search\n * matches and \"you mentioned this\" affordances.\n */\nexport const Mark = forwardRef<HTMLElement, MarkProps>(({ className, ...props }, ref) => (\n <mark\n ref={ref}\n className={cn('rounded-sm bg-warning-100 px-0.5 text-warning-900', className)}\n {...props}\n />\n));\nMark.displayName = 'Mark';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport type QuoteProps = ComponentPropsWithoutRef<'blockquote'>;\n\n/**\n * Block quote with subtle left border and italic body text.\n */\nexport const Quote = forwardRef<HTMLQuoteElement, QuoteProps>(\n ({ className, ...props }, ref) => (\n <blockquote\n ref={ref}\n className={cn(\n 'border-l-4 border-neutral-200 pl-4 italic text-neutral-700',\n className,\n )}\n {...props}\n />\n ),\n);\nQuote.displayName = 'Quote';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/feedback/spinner/Spinner.variants.ts","../src/feedback/spinner/Spinner.tsx","../src/feedback/skeleton/Skeleton.variants.ts","../src/feedback/skeleton/Skeleton.tsx","../src/feedback/progressBar/ProgressBar.variants.ts","../src/feedback/progressBar/ProgressBar.tsx","../src/feedback/progressCircle/ProgressCircle.tsx","../src/feedback/alertSimple/AlertSimple.variants.ts","../src/feedback/alertSimple/AlertSimple.tsx","../src/feedback/bannerSimple/BannerSimple.variants.ts","../src/feedback/bannerSimple/BannerSimple.tsx","../src/feedback/toastSimple/ToastSimple.variants.ts","../src/feedback/toastSimple/ToastSimple.tsx"],"names":["forwardRef","jsx","jsxs"],"mappings":";;;;;;AAEO,IAAM,kBAAkB,EAAA,CAAG;AAAA,EAChC,IAAA,EAAM,4EAAA;AAAA,EACN,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI,gBAAA;AAAA,MACJ,EAAA,EAAI,kBAAA;AAAA,MACJ,EAAA,EAAI,kBAAA;AAAA,MACJ,EAAA,EAAI,kBAAA;AAAA,MACJ,EAAA,EAAI;AAAA,KACN;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,OAAA,EAAS,kBAAA;AAAA,MACT,KAAA,EAAO,gBAAA;AAAA,MACP,KAAA,EAAO,kBAAA;AAAA,MACP,OAAA,EAAS;AAAA;AACX,GACF;AAAA,EACA,eAAA,E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MYU.js","sourcesContent":["import { tv, type VariantProps } from '../../utils';\n\nexport const spinnerVariants = tv({\n base: 'inline-block animate-spin rounded-full border-current border-b-transparent',\n variants: {\n size: {\n xs: 'h-3 w-3 border',\n sm: 'h-4 w-4 border-2',\n md: 'h-5 w-5 border-2',\n lg: 'h-8 w-8 border-2',\n xl: 'h-12 w-12 border-[3px]',\n },\n tone: {\n default: 'text-neutral-500',\n brand: 'text-brand-600',\n muted: 'text-neutral-300',\n current: '',\n },\n },\n defaultVariants: {\n size: 'md',\n tone: 'default',\n },\n});\n\nexport type SpinnerVariants = VariantProps<typeof spinnerVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { spinnerVariants, type SpinnerVariants } from './Spinner.variants';\n\nexport interface SpinnerProps\n extends Omit<ComponentPropsWithoutRef<'span'>, 'children'>,\n SpinnerVariants {\n /** Accessible label. Default `\"Loading\"`. */\n label?: string;\n}\n\n/**\n * Indeterminate loading spinner. Renders a spinning circle and a visually\n * hidden text label for screen readers.\n */\nexport const Spinner = forwardRef<HTMLSpanElement, SpinnerProps>(\n ({ className, size, tone, label = 'Loading', role = 'status', ...props }, ref) => (\n <span ref={ref} role={role} {...props}>\n <span className={cn(spinnerVariants({ size, tone }), className)} />\n <span className=\"sr-only\">{label}</span>\n </span>\n ),\n);\nSpinner.displayName = 'Spinner';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const skeletonVariants = tv({\n base: 'animate-pulse bg-neutral-200',\n variants: {\n shape: {\n rect: 'rounded-md',\n text: 'h-4 rounded-sm',\n circle: 'rounded-full',\n },\n },\n defaultVariants: {\n shape: 'rect',\n },\n});\n\nexport type SkeletonVariants = VariantProps<typeof skeletonVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { skeletonVariants, type SkeletonVariants } from './Skeleton.variants';\n\nexport interface SkeletonProps extends ComponentPropsWithoutRef<'div'>, SkeletonVariants {}\n\n/**\n * Loading placeholder. Use sized via `className` (e.g. `w-32 h-4`) for text\n * lines, or as a full block with `shape=\"rect\"`.\n */\nexport const Skeleton = forwardRef<HTMLDivElement, SkeletonProps>(\n ({ className, shape, ...props }, ref) => (\n <div\n ref={ref}\n aria-hidden=\"true\"\n className={cn(skeletonVariants({ shape }), className)}\n {...props}\n />\n ),\n);\nSkeleton.displayName = 'Skeleton';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const progressTrackVariants = tv({\n base: 'h-2 w-full overflow-hidden rounded-full bg-neutral-200',\n variants: {\n size: {\n sm: 'h-1',\n md: 'h-2',\n lg: 'h-3',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\nexport const progressFillVariants = tv({\n base: 'h-full rounded-full transition-[width] duration-300',\n variants: {\n tone: {\n brand: 'bg-brand-600',\n success: 'bg-success-500',\n warning: 'bg-warning-500',\n danger: 'bg-danger-500',\n neutral: 'bg-neutral-500',\n },\n },\n defaultVariants: {\n tone: 'brand',\n },\n});\n\nexport type ProgressBarVariants = VariantProps<typeof progressTrackVariants> &\n VariantProps<typeof progressFillVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport {\n progressFillVariants,\n progressTrackVariants,\n type ProgressBarVariants,\n} from './ProgressBar.variants';\n\nexport interface ProgressBarProps\n extends Omit<ComponentPropsWithoutRef<'div'>, 'children'>,\n ProgressBarVariants {\n /** Current value 0–100. Pass `undefined` for indeterminate. */\n value?: number;\n max?: number;\n /** Accessible label for the progress. */\n label?: string;\n}\n\n/**\n * Linear progress indicator. Set `value` (0–`max`) for determinate; omit\n * for indeterminate.\n */\nexport const ProgressBar = forwardRef<HTMLDivElement, ProgressBarProps>(\n ({ value, max = 100, size, tone, label, className, ...props }, ref) => {\n const determinate = typeof value === 'number';\n const pct = determinate ? Math.min(100, Math.max(0, (value / max) * 100)) : undefined;\n return (\n <div\n ref={ref}\n role=\"progressbar\"\n aria-label={label}\n aria-valuemin={0}\n aria-valuemax={max}\n aria-valuenow={determinate ? value : undefined}\n className={cn(progressTrackVariants({ size }), className)}\n {...props}\n >\n <div\n className={cn(\n progressFillVariants({ tone }),\n !determinate && 'w-1/3 animate-[indeterminate_1.4s_ease-in-out_infinite]',\n )}\n style={determinate ? { width: `${pct}%` } : undefined}\n />\n </div>\n );\n },\n);\nProgressBar.displayName = 'ProgressBar';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport interface ProgressCircleProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {\n /** 0–100. Omit for indeterminate. */\n value?: number;\n max?: number;\n size?: number;\n thickness?: number;\n tone?: 'brand' | 'success' | 'warning' | 'danger' | 'neutral';\n label?: string;\n}\n\nconst TONE_CLASS: Record<NonNullable<ProgressCircleProps['tone']>, string> = {\n brand: 'text-brand-600',\n success: 'text-success-500',\n warning: 'text-warning-500',\n danger: 'text-danger-500',\n neutral: 'text-neutral-500',\n};\n\n/**\n * Circular progress indicator (SVG). Determinate when `value` is set;\n * indeterminate (rotating) when omitted.\n */\nexport const ProgressCircle = forwardRef<HTMLDivElement, ProgressCircleProps>(\n (\n { value, max = 100, size = 40, thickness = 4, tone = 'brand', label, className, ...props },\n ref,\n ) => {\n const determinate = typeof value === 'number';\n const radius = (size - thickness) / 2;\n const circumference = 2 * Math.PI * radius;\n const pct = determinate ? Math.min(100, Math.max(0, (value / max) * 100)) : 25;\n const offset = circumference - (pct / 100) * circumference;\n\n return (\n <div\n ref={ref}\n role=\"progressbar\"\n aria-label={label}\n aria-valuemin={0}\n aria-valuemax={max}\n aria-valuenow={determinate ? value : undefined}\n className={cn('inline-block', !determinate && 'animate-spin', TONE_CLASS[tone], className)}\n style={{ width: size, height: size }}\n {...props}\n >\n <svg width={size} height={size} viewBox={`0 0 ${size} ${size}`}>\n <circle\n cx={size / 2}\n cy={size / 2}\n r={radius}\n stroke=\"currentColor\"\n strokeWidth={thickness}\n fill=\"none\"\n opacity={0.2}\n />\n <circle\n cx={size / 2}\n cy={size / 2}\n r={radius}\n stroke=\"currentColor\"\n strokeWidth={thickness}\n strokeLinecap=\"round\"\n fill=\"none\"\n strokeDasharray={circumference}\n strokeDashoffset={offset}\n transform={`rotate(-90 ${size / 2} ${size / 2})`}\n style={{ transition: 'stroke-dashoffset 300ms ease' }}\n />\n </svg>\n </div>\n );\n },\n);\nProgressCircle.displayName = 'ProgressCircle';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const alertSimpleVariants = tv({\n base: 'rounded-md border px-4 py-3 text-sm',\n variants: {\n severity: {\n info: 'border-info-100 bg-info-50 text-info-900',\n success: 'border-success-100 bg-success-50 text-success-900',\n warning: 'border-warning-100 bg-warning-50 text-warning-900',\n danger: 'border-danger-100 bg-danger-50 text-danger-900',\n neutral: 'border-neutral-200 bg-neutral-50 text-neutral-900',\n },\n },\n defaultVariants: {\n severity: 'info',\n },\n});\n\nexport type AlertSimpleVariants = VariantProps<typeof alertSimpleVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { alertSimpleVariants, type AlertSimpleVariants } from './AlertSimple.variants';\n\nexport interface AlertSimpleProps\n extends ComponentPropsWithoutRef<'div'>,\n AlertSimpleVariants {}\n\n/**\n * Atomic alert — a styled colored container that takes free-form `children`.\n * No internal slots; consumer composes title/description/actions inline.\n *\n * For the structured Icon + Title + Description + Actions composition use\n * the `Alert` molecule (L4).\n */\nexport const AlertSimple = forwardRef<HTMLDivElement, AlertSimpleProps>(\n ({ className, severity, role = 'status', ...props }, ref) => (\n <div\n ref={ref}\n role={role}\n className={cn(alertSimpleVariants({ severity }), className)}\n {...props}\n />\n ),\n);\nAlertSimple.displayName = 'AlertSimple';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const bannerSimpleVariants = tv({\n base: 'w-full px-6 py-3 text-sm',\n variants: {\n severity: {\n info: 'bg-info-500 text-white',\n success: 'bg-success-500 text-white',\n warning: 'bg-warning-500 text-warning-900',\n danger: 'bg-danger-500 text-white',\n neutral: 'bg-neutral-900 text-neutral-50',\n },\n },\n defaultVariants: {\n severity: 'info',\n },\n});\n\nexport type BannerSimpleVariants = VariantProps<typeof bannerSimpleVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { bannerSimpleVariants, type BannerSimpleVariants } from './BannerSimple.variants';\n\nexport interface BannerSimpleProps\n extends ComponentPropsWithoutRef<'div'>,\n BannerSimpleVariants {}\n\n/**\n * Full-width banner — typically pinned to the top of the app to broadcast\n * status. Atom; for structured slotted layout use `Banner` (L4).\n */\nexport const BannerSimple = forwardRef<HTMLDivElement, BannerSimpleProps>(\n ({ className, severity, role = 'status', ...props }, ref) => (\n <div\n ref={ref}\n role={role}\n className={cn(bannerSimpleVariants({ severity }), className)}\n {...props}\n />\n ),\n);\nBannerSimple.displayName = 'BannerSimple';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const toastSimpleVariants = tv({\n base: 'pointer-events-auto rounded-md border bg-white shadow-lg px-4 py-3 text-sm',\n variants: {\n severity: {\n info: 'border-info-100',\n success: 'border-success-100',\n warning: 'border-warning-100',\n danger: 'border-danger-100',\n neutral: 'border-neutral-200',\n },\n },\n defaultVariants: {\n severity: 'neutral',\n },\n});\n\nexport type ToastSimpleVariants = VariantProps<typeof toastSimpleVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { toastSimpleVariants, type ToastSimpleVariants } from './ToastSimple.variants';\n\nexport interface ToastSimpleProps\n extends ComponentPropsWithoutRef<'div'>,\n ToastSimpleVariants {}\n\n/**\n * Atomic toast — a single notification card with free-form `children`.\n * Visual only; the queue / portal manager (`Toaster`) lives at L5. For\n * the structured Icon + Title + Description + Action layout, use the\n * `Toast` molecule (L4).\n */\nexport const ToastSimple = forwardRef<HTMLDivElement, ToastSimpleProps>(\n ({ className, severity, role = 'status', ...props }, ref) => (\n <div\n ref={ref}\n role={role}\n aria-live=\"polite\"\n className={cn(toastSimpleVariants({ severity }), className)}\n {...props}\n />\n ),\n);\nToastSimple.displayName = 'ToastSimple';\n"]}
|
package/dist/index-Bk6CuDNT.d.ts
DELETED
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, ReactNode, ReactElement, KeyboardEvent as KeyboardEvent$1, Context } from 'react';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import * as _radix_ui_react_focus_scope from '@radix-ui/react-focus-scope';
|
|
5
|
-
import { FocusScope as FocusScope$1 } from '@radix-ui/react-focus-scope';
|
|
6
|
-
import { Placement } from '@floating-ui/react';
|
|
7
|
-
|
|
8
|
-
interface SlotProps extends HTMLAttributes<HTMLElement> {
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Polymorphic slot — renders the single child element with the parent's props
|
|
13
|
-
* merged in (className concatenated, handlers chained, refs composed).
|
|
14
|
-
*
|
|
15
|
-
* Use to enable an `asChild` API on a component:
|
|
16
|
-
* ```tsx
|
|
17
|
-
* <Button asChild><a href="/x">Open</a></Button>
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
declare const Slot: react.ForwardRefExoticComponent<SlotProps & react.RefAttributes<HTMLElement>>;
|
|
21
|
-
|
|
22
|
-
interface PortalProps {
|
|
23
|
-
children: ReactNode;
|
|
24
|
-
/** Container to render into. Default: `document.body`. */
|
|
25
|
-
container?: HTMLElement | null;
|
|
26
|
-
/** Optional named layer — sets `data-portal-name` on the wrapper. */
|
|
27
|
-
name?: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Render children into a different DOM node (default `document.body`).
|
|
31
|
-
* Client-only — package targets pure CSR consumers.
|
|
32
|
-
*/
|
|
33
|
-
declare function Portal({ children, container, name }: PortalProps): ReactNode;
|
|
34
|
-
|
|
35
|
-
type VisuallyHiddenProps = HTMLAttributes<HTMLSpanElement>;
|
|
36
|
-
/**
|
|
37
|
-
* Visually hidden span — content removed from the visual layout but still
|
|
38
|
-
* announced to screen readers. Use for accessible labels on icon-only
|
|
39
|
-
* affordances and live-region announcements.
|
|
40
|
-
*/
|
|
41
|
-
declare const VisuallyHidden: react.ForwardRefExoticComponent<VisuallyHiddenProps & react.RefAttributes<HTMLSpanElement>>;
|
|
42
|
-
|
|
43
|
-
interface PresenceProps {
|
|
44
|
-
/** Whether the content should be present. Toggle false to trigger exit. */
|
|
45
|
-
present: boolean;
|
|
46
|
-
/** Single React element child — receives `ref` and `data-state` ("open" | "closed"). */
|
|
47
|
-
children: ReactElement;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Defer unmount until the child's exit animation/transition finishes.
|
|
51
|
-
* Pass `present={false}` to start the exit; the child stays mounted with
|
|
52
|
-
* `data-state="closed"` until `animationend`/`transitionend` fires.
|
|
53
|
-
*/
|
|
54
|
-
declare function Presence({ present, children }: PresenceProps): ReactElement | null;
|
|
55
|
-
|
|
56
|
-
type Direction = 'ltr' | 'rtl';
|
|
57
|
-
interface DirectionProviderProps {
|
|
58
|
-
dir: Direction;
|
|
59
|
-
children: ReactNode;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Provide reading direction to descendants. Components that mirror in RTL
|
|
63
|
-
* (Tabs arrow keys, Slider, Carousel, etc.) read this via `useDirection()`.
|
|
64
|
-
*/
|
|
65
|
-
declare function DirectionProvider({ dir, children }: DirectionProviderProps): react_jsx_runtime.JSX.Element;
|
|
66
|
-
declare function useDirection(): Direction;
|
|
67
|
-
|
|
68
|
-
interface AccessibleIconProps {
|
|
69
|
-
/** Required accessible label for the icon. */
|
|
70
|
-
label: string;
|
|
71
|
-
/** Single icon element — will receive `aria-hidden` so SR reads only the label. */
|
|
72
|
-
children: ReactElement;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Wrap an icon-only element with an accessible label. The icon is hidden
|
|
76
|
-
* from assistive tech and a `VisuallyHidden` sibling provides the label.
|
|
77
|
-
*/
|
|
78
|
-
declare function AccessibleIcon({ label, children }: AccessibleIconProps): react_jsx_runtime.JSX.Element;
|
|
79
|
-
|
|
80
|
-
type FocusScopeProps = React.ComponentProps<typeof FocusScope$1>;
|
|
81
|
-
/**
|
|
82
|
-
* Trap focus within children. On unmount, returns focus to the previously
|
|
83
|
-
* focused element. Pass `loop` to wrap Tab navigation; `trapped` to enable
|
|
84
|
-
* the trap (default true while mounted).
|
|
85
|
-
*
|
|
86
|
-
* Wraps `@radix-ui/react-focus-scope` — battle-tested implementation.
|
|
87
|
-
*/
|
|
88
|
-
declare const FocusScope: react.ForwardRefExoticComponent<_radix_ui_react_focus_scope.FocusScopeProps & react.RefAttributes<HTMLDivElement>>;
|
|
89
|
-
|
|
90
|
-
interface DismissableLayerProps extends HTMLAttributes<HTMLDivElement> {
|
|
91
|
-
/** Called when Escape is pressed and this is the topmost layer. */
|
|
92
|
-
onEscape?: (event: KeyboardEvent) => void;
|
|
93
|
-
/** Called when a pointerdown lands outside this layer's DOM and this is topmost. */
|
|
94
|
-
onOutsidePointerDown?: (event: PointerEvent) => void;
|
|
95
|
-
/** Disable the Escape listener for this layer. */
|
|
96
|
-
disableEscape?: boolean;
|
|
97
|
-
/** Disable the outside-pointer-down listener for this layer. */
|
|
98
|
-
disableOutsideClick?: boolean;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Stack-aware dismissal layer. Multiple layers may stack (modal > popover);
|
|
102
|
-
* only the topmost reacts to Escape / outside click. Used as the base of
|
|
103
|
-
* Modal, Drawer, Popover, Menu, HoverCard, ContextMenu.
|
|
104
|
-
*/
|
|
105
|
-
declare const DismissableLayer: react.ForwardRefExoticComponent<DismissableLayerProps & react.RefAttributes<HTMLDivElement>>;
|
|
106
|
-
|
|
107
|
-
interface AnchoredPositionerProps extends HTMLAttributes<HTMLDivElement> {
|
|
108
|
-
/** The element the floating layer should be anchored to. */
|
|
109
|
-
anchor: HTMLElement | null;
|
|
110
|
-
/** Floating UI placement. Default `bottom`. */
|
|
111
|
-
placement?: Placement;
|
|
112
|
-
/** Distance between anchor and floating element in px. Default 8. */
|
|
113
|
-
offset?: number;
|
|
114
|
-
/** Render the floating element only when open. */
|
|
115
|
-
open?: boolean;
|
|
116
|
-
children: ReactNode;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Position children relative to an anchor element using Floating UI.
|
|
120
|
-
* Auto-flips and shifts to stay in viewport. Use as the positioning surface
|
|
121
|
-
* for Tooltip, Popover, Menu, HoverCard.
|
|
122
|
-
*/
|
|
123
|
-
declare const AnchoredPositioner: react.ForwardRefExoticComponent<AnchoredPositionerProps & react.RefAttributes<HTMLDivElement>>;
|
|
124
|
-
|
|
125
|
-
type Orientation = 'horizontal' | 'vertical' | 'both';
|
|
126
|
-
interface RovingFocusGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
127
|
-
orientation?: Orientation;
|
|
128
|
-
loop?: boolean;
|
|
129
|
-
children: ReactNode;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Provide arrow-key navigation for a group of focusable children. Children
|
|
133
|
-
* call `useRovingFocusItem()` to register and receive `tabIndex` / event
|
|
134
|
-
* handlers. Used by Tabs, ToggleGroup, RadioGroup, Menu.
|
|
135
|
-
*/
|
|
136
|
-
declare function RovingFocusGroup({ orientation, loop, children, ...props }: RovingFocusGroupProps): react_jsx_runtime.JSX.Element;
|
|
137
|
-
interface UseRovingFocusItemReturn {
|
|
138
|
-
ref: (node: HTMLElement | null) => void;
|
|
139
|
-
tabIndex: 0 | -1;
|
|
140
|
-
onKeyDown: (event: KeyboardEvent$1) => void;
|
|
141
|
-
onFocus: () => void;
|
|
142
|
-
'data-roving-focus-item': boolean;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Inside a `RovingFocusGroup`, returns props to spread onto a focusable item.
|
|
146
|
-
* Outside, returns inert props (tabIndex 0).
|
|
147
|
-
*/
|
|
148
|
-
declare function useRovingFocusItem(): UseRovingFocusItemReturn;
|
|
149
|
-
|
|
150
|
-
interface CollectionContextValue<T> {
|
|
151
|
-
items: T[];
|
|
152
|
-
register: (item: T) => void;
|
|
153
|
-
unregister: (item: T) => void;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Factory for a typed children-registry context. Compound components
|
|
157
|
-
* (Menu, Tabs, Listbox) use this so the parent can iterate ordered children
|
|
158
|
-
* without prop-drilling.
|
|
159
|
-
*/
|
|
160
|
-
declare function createCollection<T>(): {
|
|
161
|
-
Provider: (props: {
|
|
162
|
-
children: ReactNode;
|
|
163
|
-
}) => ReactNode;
|
|
164
|
-
useCollection: () => CollectionContextValue<T>;
|
|
165
|
-
Context: Context<CollectionContextValue<T> | null>;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
interface FormControlContextValue {
|
|
169
|
-
id: string;
|
|
170
|
-
labelId: string;
|
|
171
|
-
helperId: string;
|
|
172
|
-
errorId: string;
|
|
173
|
-
isInvalid: boolean;
|
|
174
|
-
isDisabled: boolean;
|
|
175
|
-
isRequired: boolean;
|
|
176
|
-
isReadOnly: boolean;
|
|
177
|
-
}
|
|
178
|
-
interface FormControlProviderProps {
|
|
179
|
-
/** Override the auto-generated id (also used as control's `id`). */
|
|
180
|
-
id?: string;
|
|
181
|
-
isInvalid?: boolean;
|
|
182
|
-
isDisabled?: boolean;
|
|
183
|
-
isRequired?: boolean;
|
|
184
|
-
isReadOnly?: boolean;
|
|
185
|
-
children: ReactNode;
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Wires Label ↔ control ↔ HelperText/ErrorMessage via stable IDs and shared
|
|
189
|
-
* state flags. Used by `FormField` (L4) — atoms (Input, Label, etc.) read
|
|
190
|
-
* via `useFormControl()` to get the right `id`/`htmlFor`/`aria-describedby`.
|
|
191
|
-
*/
|
|
192
|
-
declare function FormControlProvider({ id: providedId, isInvalid, isDisabled, isRequired, isReadOnly, children, }: FormControlProviderProps): react_jsx_runtime.JSX.Element;
|
|
193
|
-
/**
|
|
194
|
-
* Read the surrounding form-control context. Returns `null` when used
|
|
195
|
-
* outside a provider — atoms gracefully degrade to standalone mode.
|
|
196
|
-
*/
|
|
197
|
-
declare function useFormControl(): FormControlContextValue | null;
|
|
198
|
-
|
|
199
|
-
interface ScrollLockProviderProps {
|
|
200
|
-
enabled?: boolean;
|
|
201
|
-
children: ReactNode;
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Component wrapper around `useScrollLock` — handy when scroll lock should
|
|
205
|
-
* follow a child's mount lifecycle (e.g. inside a Modal's portal).
|
|
206
|
-
* Multiple wrappers stack; lock releases when the count reaches zero.
|
|
207
|
-
*/
|
|
208
|
-
declare function ScrollLockProvider({ enabled, children }: ScrollLockProviderProps): react_jsx_runtime.JSX.Element;
|
|
209
|
-
|
|
210
|
-
declare const index_AccessibleIcon: typeof AccessibleIcon;
|
|
211
|
-
type index_AccessibleIconProps = AccessibleIconProps;
|
|
212
|
-
declare const index_AnchoredPositioner: typeof AnchoredPositioner;
|
|
213
|
-
type index_AnchoredPositionerProps = AnchoredPositionerProps;
|
|
214
|
-
type index_CollectionContextValue<T> = CollectionContextValue<T>;
|
|
215
|
-
type index_Direction = Direction;
|
|
216
|
-
declare const index_DirectionProvider: typeof DirectionProvider;
|
|
217
|
-
type index_DirectionProviderProps = DirectionProviderProps;
|
|
218
|
-
declare const index_DismissableLayer: typeof DismissableLayer;
|
|
219
|
-
type index_DismissableLayerProps = DismissableLayerProps;
|
|
220
|
-
declare const index_FocusScope: typeof FocusScope;
|
|
221
|
-
type index_FocusScopeProps = FocusScopeProps;
|
|
222
|
-
type index_FormControlContextValue = FormControlContextValue;
|
|
223
|
-
declare const index_FormControlProvider: typeof FormControlProvider;
|
|
224
|
-
type index_FormControlProviderProps = FormControlProviderProps;
|
|
225
|
-
type index_Orientation = Orientation;
|
|
226
|
-
declare const index_Portal: typeof Portal;
|
|
227
|
-
type index_PortalProps = PortalProps;
|
|
228
|
-
declare const index_Presence: typeof Presence;
|
|
229
|
-
type index_PresenceProps = PresenceProps;
|
|
230
|
-
declare const index_RovingFocusGroup: typeof RovingFocusGroup;
|
|
231
|
-
type index_RovingFocusGroupProps = RovingFocusGroupProps;
|
|
232
|
-
declare const index_ScrollLockProvider: typeof ScrollLockProvider;
|
|
233
|
-
type index_ScrollLockProviderProps = ScrollLockProviderProps;
|
|
234
|
-
declare const index_Slot: typeof Slot;
|
|
235
|
-
type index_SlotProps = SlotProps;
|
|
236
|
-
type index_UseRovingFocusItemReturn = UseRovingFocusItemReturn;
|
|
237
|
-
declare const index_VisuallyHidden: typeof VisuallyHidden;
|
|
238
|
-
type index_VisuallyHiddenProps = VisuallyHiddenProps;
|
|
239
|
-
declare const index_createCollection: typeof createCollection;
|
|
240
|
-
declare const index_useDirection: typeof useDirection;
|
|
241
|
-
declare const index_useFormControl: typeof useFormControl;
|
|
242
|
-
declare const index_useRovingFocusItem: typeof useRovingFocusItem;
|
|
243
|
-
declare namespace index {
|
|
244
|
-
export { index_AccessibleIcon as AccessibleIcon, type index_AccessibleIconProps as AccessibleIconProps, index_AnchoredPositioner as AnchoredPositioner, type index_AnchoredPositionerProps as AnchoredPositionerProps, type index_CollectionContextValue as CollectionContextValue, type index_Direction as Direction, index_DirectionProvider as DirectionProvider, type index_DirectionProviderProps as DirectionProviderProps, index_DismissableLayer as DismissableLayer, type index_DismissableLayerProps as DismissableLayerProps, index_FocusScope as FocusScope, type index_FocusScopeProps as FocusScopeProps, type index_FormControlContextValue as FormControlContextValue, index_FormControlProvider as FormControlProvider, type index_FormControlProviderProps as FormControlProviderProps, type index_Orientation as Orientation, index_Portal as Portal, type index_PortalProps as PortalProps, index_Presence as Presence, type index_PresenceProps as PresenceProps, index_RovingFocusGroup as RovingFocusGroup, type index_RovingFocusGroupProps as RovingFocusGroupProps, index_ScrollLockProvider as ScrollLockProvider, type index_ScrollLockProviderProps as ScrollLockProviderProps, index_Slot as Slot, type index_SlotProps as SlotProps, type index_UseRovingFocusItemReturn as UseRovingFocusItemReturn, index_VisuallyHidden as VisuallyHidden, type index_VisuallyHiddenProps as VisuallyHiddenProps, index_createCollection as createCollection, index_useDirection as useDirection, index_useFormControl as useFormControl, index_useRovingFocusItem as useRovingFocusItem };
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export { AccessibleIcon as A, type CollectionContextValue as C, type Direction as D, FocusScope as F, type Orientation as O, Portal as P, RovingFocusGroup as R, ScrollLockProvider as S, type UseRovingFocusItemReturn as U, VisuallyHidden as V, type AccessibleIconProps as a, AnchoredPositioner as b, type AnchoredPositionerProps as c, DirectionProvider as d, type DirectionProviderProps as e, DismissableLayer as f, type DismissableLayerProps as g, type FocusScopeProps as h, index as i, type FormControlContextValue as j, FormControlProvider as k, type FormControlProviderProps as l, type PortalProps as m, Presence as n, type PresenceProps as o, type RovingFocusGroupProps as p, type ScrollLockProviderProps as q, Slot as r, type SlotProps as s, type VisuallyHiddenProps as t, createCollection as u, useDirection as v, useFormControl as w, useRovingFocusItem as x };
|
package/dist/index-C0IDphm_.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { ClassValue } from 'clsx';
|
|
2
|
-
import { Ref, SyntheticEvent, ElementType, ComponentPropsWithRef, PropsWithoutRef } from 'react';
|
|
3
|
-
import { VariantProps, tv } from 'tailwind-variants';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Conditional class composer with Tailwind conflict-resolution.
|
|
7
|
-
* Use anywhere you'd otherwise concatenate class strings.
|
|
8
|
-
*/
|
|
9
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
10
|
-
|
|
11
|
-
type PossibleRef<T> = Ref<T> | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Merge multiple React refs (callback or object) into a single callback ref.
|
|
14
|
-
* Use to forward a ref while also keeping a local ref to the same node.
|
|
15
|
-
*/
|
|
16
|
-
declare function composeRefs<T>(...refs: PossibleRef<T>[]): (node: T | null) => void;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Chain two event handlers. The first handler runs, then the second — unless
|
|
20
|
-
* the first called `event.preventDefault()`, in which case the second is skipped.
|
|
21
|
-
* Use when overriding a default handler from a parent while still allowing
|
|
22
|
-
* the consumer to provide their own.
|
|
23
|
-
*/
|
|
24
|
-
declare function composeEventHandlers<E extends SyntheticEvent>(theirHandler: ((event: E) => void) | undefined, ourHandler: (event: E) => void, { checkForDefaultPrevented }?: {
|
|
25
|
-
checkForDefaultPrevented?: boolean;
|
|
26
|
-
}): (event: E) => void;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Returns `""` when the condition is true, `undefined` otherwise.
|
|
30
|
-
* Use for boolean `data-*` attributes — React strips the attr when value is undefined,
|
|
31
|
-
* so the DOM cleanly toggles `data-state` rather than `data-state="false"`.
|
|
32
|
-
*/
|
|
33
|
-
declare function dataAttr(condition: boolean | undefined): '' | undefined;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Props for a polymorphic component (`as` prop). Use only when a component
|
|
37
|
-
* meaningfully changes its DOM element — most components should use `Slot`/`asChild`
|
|
38
|
-
* instead.
|
|
39
|
-
*/
|
|
40
|
-
type PolymorphicProps<C extends ElementType, P = object> = P & Omit<ComponentPropsWithRef<C>, keyof P | 'as'> & {
|
|
41
|
-
as?: C;
|
|
42
|
-
};
|
|
43
|
-
type PolymorphicPropsWithoutRef<C extends ElementType, P = object> = P & Omit<PropsWithoutRef<ComponentPropsWithRef<C>>, keyof P | 'as'> & {
|
|
44
|
-
as?: C;
|
|
45
|
-
};
|
|
46
|
-
type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>['ref'];
|
|
47
|
-
|
|
48
|
-
type index_PolymorphicProps<C extends ElementType, P = object> = PolymorphicProps<C, P>;
|
|
49
|
-
type index_PolymorphicPropsWithoutRef<C extends ElementType, P = object> = PolymorphicPropsWithoutRef<C, P>;
|
|
50
|
-
type index_PolymorphicRef<C extends ElementType> = PolymorphicRef<C>;
|
|
51
|
-
declare const index_VariantProps: typeof VariantProps;
|
|
52
|
-
declare const index_cn: typeof cn;
|
|
53
|
-
declare const index_composeEventHandlers: typeof composeEventHandlers;
|
|
54
|
-
declare const index_composeRefs: typeof composeRefs;
|
|
55
|
-
declare const index_dataAttr: typeof dataAttr;
|
|
56
|
-
declare const index_tv: typeof tv;
|
|
57
|
-
declare namespace index {
|
|
58
|
-
export { type index_PolymorphicProps as PolymorphicProps, type index_PolymorphicPropsWithoutRef as PolymorphicPropsWithoutRef, type index_PolymorphicRef as PolymorphicRef, index_VariantProps as VariantProps, index_cn as cn, index_composeEventHandlers as composeEventHandlers, index_composeRefs as composeRefs, index_dataAttr as dataAttr, index_tv as tv };
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export { type PolymorphicProps as P, type PolymorphicPropsWithoutRef as a, type PolymorphicRef as b, cn as c, composeEventHandlers as d, composeRefs as e, dataAttr as f, index as i };
|
package/dist/index-CEAM9LLM.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { SVGProps, ComponentType } from 'react';
|
|
3
|
-
|
|
4
|
-
interface IconAdapterProps extends SVGProps<SVGSVGElement> {
|
|
5
|
-
size?: number | string;
|
|
6
|
-
}
|
|
7
|
-
type IconAdapter = ComponentType<IconAdapterProps>;
|
|
8
|
-
interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'aria-hidden'> {
|
|
9
|
-
/** Icon component — pass a `lucide-react` icon, custom SVG component, or any matching shape. */
|
|
10
|
-
icon: IconAdapter;
|
|
11
|
-
/** Pixel size of the rendered SVG. Default 20. */
|
|
12
|
-
size?: number | string;
|
|
13
|
-
/**
|
|
14
|
-
* Provide an aria-label when the icon stands alone (decorative siblings
|
|
15
|
-
* should pass it via parent). Sets `role="img"` and unhides from AT.
|
|
16
|
-
* Without it, the icon is `aria-hidden` and decorative.
|
|
17
|
-
*/
|
|
18
|
-
'aria-label'?: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Generic icon wrapper. Accepts any icon component matching the lucide-react
|
|
22
|
-
* shape (`{ size, color, className, ...svgProps }`).
|
|
23
|
-
*
|
|
24
|
-
* - Without `aria-label` → decorative, `aria-hidden`.
|
|
25
|
-
* - With `aria-label` → semantic, `role="img"`.
|
|
26
|
-
*/
|
|
27
|
-
declare const Icon: react.ForwardRefExoticComponent<Omit<IconProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
28
|
-
|
|
29
|
-
declare const index_Icon: typeof Icon;
|
|
30
|
-
type index_IconAdapter = IconAdapter;
|
|
31
|
-
type index_IconAdapterProps = IconAdapterProps;
|
|
32
|
-
type index_IconProps = IconProps;
|
|
33
|
-
declare namespace index {
|
|
34
|
-
export { index_Icon as Icon, type index_IconAdapter as IconAdapter, type index_IconAdapterProps as IconAdapterProps, type index_IconProps as IconProps };
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { Icon as I, type IconAdapter as a, type IconAdapterProps as b, type IconProps as c, index as i };
|