@primereact/headless 11.0.0-rc.1 → 11.0.0-rc.2
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/accordion/index.mjs +1 -2
- package/animateonscroll/index.mjs +1 -2
- package/autocomplete/index.mjs +1 -2
- package/avatar/index.mjs +1 -2
- package/avatargroup/index.mjs +0 -1
- package/badge/index.mjs +1 -2
- package/breadcrumb/index.mjs +0 -1
- package/button/index.mjs +0 -1
- package/card/index.mjs +0 -1
- package/carousel/index.mjs +1 -2
- package/carousel/useCarousel.d.ts +28 -15
- package/checkbox/index.mjs +1 -2
- package/checkboxgroup/index.mjs +1 -2
- package/chip/index.mjs +1 -2
- package/collapsible/index.mjs +1 -2
- package/compare/index.mjs +1 -2
- package/contextmenu/index.mjs +1 -2
- package/contextmenu/submenu/index.mjs +0 -1
- package/datatable/features/index.mjs +8 -9
- package/datatable/features/useDataTableExport.d.ts +1 -1
- package/datatable/features/useDataTableKeyboard.d.ts +1 -1
- package/datatable/features/useDataTableSelection.d.ts +4 -4
- package/datatable/index.mjs +8 -9
- package/datatable/useDataTable.d.ts +2 -2
- package/datatable/utils/index.mjs +0 -1
- package/dataview/index.mjs +1 -2
- package/datepicker/index.mjs +1 -2
- package/dialog/index.mjs +1 -2
- package/dialog/useDialog.d.ts +12 -12
- package/divider/index.mjs +0 -1
- package/divider/useDivider.d.ts +1 -1
- package/dnd/index.mjs +1 -2
- package/drawer/index.mjs +1 -2
- package/fieldset/index.mjs +1 -2
- package/fileupload/index.mjs +1 -2
- package/fileupload/useFileUpload.d.ts +3 -0
- package/floatlabel/index.mjs +0 -1
- package/fluid/index.mjs +0 -1
- package/focustrap/index.mjs +1 -2
- package/gallery/index.mjs +1 -2
- package/gallery/item/index.mjs +1 -2
- package/gallery/useGallery.d.ts +17 -9
- package/iconfield/index.mjs +0 -1
- package/iftalabel/index.mjs +0 -1
- package/inplace/index.mjs +1 -2
- package/inplace/useInplace.d.ts +18 -6
- package/inputcolor/colorManager.d.ts +1 -1
- package/inputcolor/index.mjs +1 -2
- package/inputgroup/index.mjs +0 -1
- package/inputnumber/index.mjs +1 -2
- package/inputotp/index.mjs +1 -2
- package/inputpassword/index.mjs +1 -2
- package/inputtags/index.mjs +1 -2
- package/inputtext/index.mjs +1 -2
- package/knob/index.mjs +1 -2
- package/label/index.mjs +0 -1
- package/listbox/index.mjs +1 -2
- package/menu/checkboxitem/index.mjs +1 -2
- package/menu/index.mjs +1 -2
- package/menu/radioitem/index.mjs +1 -2
- package/menu/submenu/index.mjs +1 -2
- package/message/index.mjs +1 -2
- package/metergroup/index.mjs +1 -2
- package/navigationmenu/index.mjs +1 -2
- package/orderlist/index.mjs +1 -2
- package/orderlist/useOrderList.d.ts +1 -0
- package/organizationchart/index.mjs +1 -2
- package/overlaybadge/index.mjs +0 -1
- package/package.json +9 -7
- package/paginator/index.mjs +1 -2
- package/paginator/usePaginator.d.ts +1 -1
- package/panel/index.mjs +1 -2
- package/picklist/index.mjs +1 -2
- package/popover/index.mjs +1 -2
- package/portal/index.mjs +0 -1
- package/positioner/index.mjs +1 -2
- package/positioner/usePositioner.anchor.d.ts +2 -2
- package/positioner/usePositioner.fallback.d.ts +2 -2
- package/progressbar/index.mjs +1 -2
- package/progressspinner/index.mjs +1 -2
- package/radiobutton/index.mjs +1 -2
- package/radiobuttongroup/index.mjs +1 -2
- package/rating/index.mjs +1 -2
- package/scrollarea/index.mjs +1 -2
- package/scrollarea/useScrollArea.d.ts +1 -1
- package/select/index.mjs +1 -2
- package/sidebar/index.mjs +1 -2
- package/sidebar/useSidebar.d.ts +30 -4
- package/sidebar/useSidebarLayout.d.ts +4 -4
- package/sidebar/useSidebarMenuItem.d.ts +0 -1
- package/skeleton/index.mjs +0 -1
- package/slider/index.mjs +1 -2
- package/speeddial/index.mjs +1 -2
- package/splitter/index.mjs +1 -2
- package/stepper/index.mjs +1 -2
- package/styleclass/index.mjs +1 -2
- package/tabs/index.mjs +1 -2
- package/tag/index.mjs +0 -1
- package/terminal/index.mjs +1 -2
- package/textarea/index.mjs +1 -2
- package/timeline/index.mjs +0 -1
- package/toast/index.mjs +1 -2
- package/toaster/index.mjs +1 -2
- package/togglebutton/index.mjs +1 -2
- package/togglebuttongroup/index.mjs +1 -2
- package/toggleswitch/index.mjs +1 -2
- package/toolbar/index.mjs +0 -1
- package/tooltip/index.mjs +1 -2
- package/tooltipmanager/index.mjs +1 -2
- package/tree/index.mjs +1 -2
- package/tree/useTree.d.ts +4 -4
- package/tree/useTreeDragDrop.d.ts +2 -2
- package/tree/useTreeFlatten.d.ts +1 -1
- package/tree/useTreeSelection.d.ts +3 -3
- package/accordion/index.mjs.map +0 -1
- package/accordion/useAccordion.test.d.ts +0 -0
- package/animateonscroll/index.mjs.map +0 -1
- package/animateonscroll/useAnimateOnScroll.test.d.ts +0 -0
- package/autocomplete/index.mjs.map +0 -1
- package/autocomplete/useAutoComplete.test.d.ts +0 -0
- package/avatar/index.mjs.map +0 -1
- package/avatar/useAvatar.test.d.ts +0 -0
- package/avatargroup/index.mjs.map +0 -1
- package/badge/index.mjs.map +0 -1
- package/badge/useBadge.test.d.ts +0 -0
- package/breadcrumb/index.mjs.map +0 -1
- package/breadcrumb/useBreadcrumb.test.d.ts +0 -0
- package/button/index.mjs.map +0 -1
- package/button/useButton.test.d.ts +0 -0
- package/card/index.mjs.map +0 -1
- package/card/useCard.test.d.ts +0 -0
- package/carousel/index.mjs.map +0 -1
- package/carousel/useCarousel.test.d.ts +0 -0
- package/checkbox/index.mjs.map +0 -1
- package/checkbox/useCheckbox.test.d.ts +0 -0
- package/checkboxgroup/index.mjs.map +0 -1
- package/checkboxgroup/useCheckboxGroup.test.d.ts +0 -0
- package/chip/index.mjs.map +0 -1
- package/chip/useChip.test.d.ts +0 -0
- package/collapsible/index.mjs.map +0 -1
- package/collapsible/useCollapsible.test.d.ts +0 -0
- package/compare/index.mjs.map +0 -1
- package/compare/useCompare.test.d.ts +0 -0
- package/contextmenu/index.mjs.map +0 -1
- package/contextmenu/submenu/index.mjs.map +0 -1
- package/contextmenu/useContextMenu.test.d.ts +0 -0
- package/datatable/features/index.mjs.map +0 -1
- package/datatable/index.mjs.map +0 -1
- package/datatable/utils/index.mjs.map +0 -1
- package/dataview/index.mjs.map +0 -1
- package/dataview/useDataView.test.d.ts +0 -0
- package/datepicker/index.mjs.map +0 -1
- package/datepicker/useDatePicker.test.d.ts +0 -0
- package/dialog/index.mjs.map +0 -1
- package/dialog/useDialog.test.d.ts +0 -0
- package/divider/index.mjs.map +0 -1
- package/divider/useDivider.test.d.ts +0 -0
- package/dnd/index.mjs.map +0 -1
- package/drawer/index.mjs.map +0 -1
- package/drawer/useDrawer.test.d.ts +0 -0
- package/fieldset/index.mjs.map +0 -1
- package/fieldset/useFieldset.test.d.ts +0 -0
- package/fileupload/index.mjs.map +0 -1
- package/fileupload/useFileUpload.test.d.ts +0 -0
- package/floatlabel/index.mjs.map +0 -1
- package/floatlabel/useFloatLabel.test.d.ts +0 -0
- package/fluid/index.mjs.map +0 -1
- package/fluid/useFluid.test.d.ts +0 -0
- package/focustrap/index.mjs.map +0 -1
- package/focustrap/useFocusTrap.test.d.ts +0 -0
- package/gallery/index.mjs.map +0 -1
- package/gallery/item/index.mjs.map +0 -1
- package/gallery/useGallery.test.d.ts +0 -0
- package/iconfield/index.mjs.map +0 -1
- package/iconfield/useIconField.test.d.ts +0 -0
- package/iftalabel/index.mjs.map +0 -1
- package/iftalabel/useIftaLabel.test.d.ts +0 -0
- package/inplace/index.mjs.map +0 -1
- package/inplace/useInplace.test.d.ts +0 -0
- package/inputcolor/index.mjs.map +0 -1
- package/inputcolor/useInputColor.test.d.ts +0 -0
- package/inputgroup/index.mjs.map +0 -1
- package/inputgroup/useInputGroup.test.d.ts +0 -0
- package/inputnumber/index.mjs.map +0 -1
- package/inputnumber/useInputNumber.test.d.ts +0 -0
- package/inputotp/index.mjs.map +0 -1
- package/inputotp/useInputOtp.test.d.ts +0 -0
- package/inputpassword/index.mjs.map +0 -1
- package/inputpassword/useInputPassword.test.d.ts +0 -0
- package/inputtags/index.mjs.map +0 -1
- package/inputtags/useInputTags.test.d.ts +0 -0
- package/inputtext/index.mjs.map +0 -1
- package/inputtext/useInputText.test.d.ts +0 -0
- package/knob/index.mjs.map +0 -1
- package/knob/useKnob.test.d.ts +0 -0
- package/label/index.mjs.map +0 -1
- package/label/useLabel.test.d.ts +0 -0
- package/listbox/index.mjs.map +0 -1
- package/listbox/useListbox.test.d.ts +0 -0
- package/menu/checkboxitem/index.mjs.map +0 -1
- package/menu/index.mjs.map +0 -1
- package/menu/radioitem/index.mjs.map +0 -1
- package/menu/submenu/index.mjs.map +0 -1
- package/menu/useMenu.test.d.ts +0 -0
- package/message/index.mjs.map +0 -1
- package/message/useMessage.test.d.ts +0 -0
- package/metergroup/index.mjs.map +0 -1
- package/metergroup/useMeterGroup.test.d.ts +0 -0
- package/navigationmenu/index.mjs.map +0 -1
- package/navigationmenu/useNavigationMenu.test.d.ts +0 -0
- package/orderlist/index.mjs.map +0 -1
- package/organizationchart/index.mjs.map +0 -1
- package/organizationchart/useOrganizationChart.test.d.ts +0 -0
- package/overlaybadge/index.mjs.map +0 -1
- package/overlaybadge/useOverlayBadge.test.d.ts +0 -0
- package/paginator/index.mjs.map +0 -1
- package/paginator/usePaginator.test.d.ts +0 -0
- package/panel/index.mjs.map +0 -1
- package/panel/usePanel.test.d.ts +0 -0
- package/picklist/index.mjs.map +0 -1
- package/popover/index.mjs.map +0 -1
- package/popover/usePopover.test.d.ts +0 -0
- package/portal/index.mjs.map +0 -1
- package/portal/usePortal.test.d.ts +0 -0
- package/positioner/index.mjs.map +0 -1
- package/positioner/usePositioner.test.d.ts +0 -0
- package/progressbar/index.mjs.map +0 -1
- package/progressbar/useProgressBar.test.d.ts +0 -0
- package/progressspinner/index.mjs.map +0 -1
- package/radiobutton/index.mjs.map +0 -1
- package/radiobutton/useRadioButton.test.d.ts +0 -0
- package/radiobuttongroup/index.mjs.map +0 -1
- package/radiobuttongroup/useRadioButtonGroup.test.d.ts +0 -0
- package/rating/index.mjs.map +0 -1
- package/scrollarea/index.mjs.map +0 -1
- package/scrollarea/useScrollArea.test.d.ts +0 -0
- package/select/index.mjs.map +0 -1
- package/select/useSelect.test.d.ts +0 -1
- package/sidebar/index.mjs.map +0 -1
- package/skeleton/index.mjs.map +0 -1
- package/skeleton/useSkeleton.test.d.ts +0 -0
- package/slider/index.mjs.map +0 -1
- package/slider/useSlider.test.d.ts +0 -0
- package/speeddial/index.mjs.map +0 -1
- package/speeddial/useSpeedDial.test.d.ts +0 -0
- package/splitter/index.mjs.map +0 -1
- package/splitter/useSplitter.test.d.ts +0 -0
- package/stepper/index.mjs.map +0 -1
- package/stepper/useStepper.test.d.ts +0 -0
- package/styleclass/index.mjs.map +0 -1
- package/styleclass/useStyleClass.test.d.ts +0 -0
- package/tabs/index.mjs.map +0 -1
- package/tabs/useTabs.test.d.ts +0 -0
- package/tag/index.mjs.map +0 -1
- package/tag/useTag.test.d.ts +0 -0
- package/terminal/index.mjs.map +0 -1
- package/terminal/useTerminal.test.d.ts +0 -0
- package/textarea/index.mjs.map +0 -1
- package/textarea/useTextarea.test.d.ts +0 -0
- package/timeline/index.mjs.map +0 -1
- package/timeline/useTimeline.test.d.ts +0 -0
- package/toast/index.mjs.map +0 -1
- package/toast/useToast.test.d.ts +0 -0
- package/toaster/index.mjs.map +0 -1
- package/toaster/useToaster.test.d.ts +0 -0
- package/togglebutton/index.mjs.map +0 -1
- package/togglebutton/useToggle.test.d.ts +0 -0
- package/togglebuttongroup/index.mjs.map +0 -1
- package/togglebuttongroup/useToggleButtonGroup.test.d.ts +0 -0
- package/toggleswitch/index.mjs.map +0 -1
- package/toggleswitch/useToggleSwitch.test.d.ts +0 -0
- package/toolbar/index.mjs.map +0 -1
- package/toolbar/useToolbar.test.d.ts +0 -0
- package/tooltip/index.mjs.map +0 -1
- package/tooltip/useTooltip.test.d.ts +0 -0
- package/tooltipmanager/index.mjs.map +0 -1
- package/tooltipmanager/useTooltipManager.test.d.ts +0 -0
- package/tree/index.mjs.map +0 -1
- package/tree/useTree.test.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/gallery/item/useGalleryItem.ts","../../../../../primereact/src/gallery/Gallery.context.ts","../../../../../primereact/src/gallery/Gallery.parts.ts","../../../../../primereact/src/gallery/backdrop/GalleryBackdrop.tsx","../../../../../primereact/src/gallery/backdrop/GalleryBackdrop.props.ts","../../../../../primereact/src/gallery/content/GalleryContent.tsx","../../../../../primereact/src/gallery/content/GalleryContent.props.ts","../../../../../primereact/src/gallery/download/GalleryDownload.tsx","../../../../../primereact/src/gallery/download/GalleryDownload.props.ts","../../../../../primereact/src/gallery/flipx/GalleryFlipX.tsx","../../../../../primereact/src/gallery/flipx/GalleryFlipX.props.ts","../../../../../primereact/src/gallery/flipy/GalleryFlipY.tsx","../../../../../primereact/src/gallery/flipy/GalleryFlipY.props.ts","../../../../../primereact/src/gallery/footer/GalleryFooter.tsx","../../../../../primereact/src/gallery/footer/GalleryFooter.props.ts","../../../../../primereact/src/gallery/fullscreen/GalleryFullScreen.tsx","../../../../../primereact/src/gallery/fullscreen/GalleryFullScreen.props.ts","../../../../../primereact/src/gallery/header/GalleryHeader.tsx","../../../../../primereact/src/gallery/header/GalleryHeader.props.ts","../../../../../primereact/src/gallery/item/GalleryItem.tsx","../../../../../primereact/src/gallery/item/GalleryItem.context.ts","../../../../../primereact/src/gallery/item/GalleryItem.props.ts","../../../../../primereact/src/gallery/next/GalleryNext.tsx","../../../../../primereact/src/gallery/next/GalleryNext.props.ts","../../../../../primereact/src/gallery/prev/GalleryPrev.tsx","../../../../../primereact/src/gallery/prev/GalleryPrev.props.ts","../../../../../primereact/src/gallery/root/GalleryRoot.tsx","../../../../../primereact/src/gallery/root/GalleryRoot.props.ts","../../../../../primereact/src/gallery/rotateleft/GalleryRotateLeft.tsx","../../../../../primereact/src/gallery/rotateleft/GalleryRotateLeft.props.ts","../../../../../primereact/src/gallery/rotateright/GalleryRotateRight.tsx","../../../../../primereact/src/gallery/rotateright/GalleryRotateRight.props.ts","../../../../../primereact/src/gallery/thumbnail/GalleryThumbnail.tsx","../../../../../primereact/src/carousel/Carousel.context.ts","../../../../../primereact/src/carousel/Carousel.parts.ts","../../../../../primereact/src/carousel/content/CarouselContent.tsx","../../../../../primereact/src/carousel/content/CarouselContent.props.ts","../../../../../primereact/src/carousel/indicator/CarouselIndicator.tsx","../../../../../primereact/src/carousel/indicator/CarouselIndicator.props.ts","../../../../../primereact/src/carousel/indicators/CarouselIndicators.tsx","../../../../../primereact/src/carousel/indicators/CarouselIndicators.props.ts","../../../../../primereact/src/carousel/item/CarouselItem.tsx","../../../../../primereact/src/carousel/item/CarouselItem.props.ts","../../../../../primereact/src/carousel/next/CarouselNext.tsx","../../../../../primereact/src/carousel/next/CarouselNext.props.ts","../../../../../primereact/src/carousel/prev/CarouselPrev.tsx","../../../../../primereact/src/carousel/prev/CarouselPrev.props.ts","../../../../../primereact/src/carousel/root/CarouselRoot.tsx","../../../../../primereact/src/carousel/root/CarouselRoot.props.ts","../../../../../primereact/src/carousel/Carousel.props.ts","../../../../../primereact/src/gallery/thumbnail/GalleryThumbnail.props.ts","../../../../../primereact/src/gallery/thumbnailcontent/GalleryThumbnailContent.tsx","../../../../../primereact/src/gallery/thumbnailcontent/GalleryThumbnailContent.props.ts","../../../../../primereact/src/gallery/thumbnailitem/GalleryThumbnailItem.tsx","../../../../../primereact/src/gallery/thumbnailitem/GalleryThumbnailItem.props.ts","../../../../../primereact/src/gallery/zoomin/GalleryZoomIn.tsx","../../../../../primereact/src/gallery/zoomin/GalleryZoomIn.props.ts","../../../../../primereact/src/gallery/zoomout/GalleryZoomOut.tsx","../../../../../primereact/src/gallery/zoomout/GalleryZoomOut.props.ts","../../../../../primereact/src/gallery/zoomtoggle/GalleryZoomToggle.tsx","../../../../../primereact/src/gallery/zoomtoggle/GalleryZoomToggle.props.ts","../../../../../primereact/src/gallery/Gallery.props.ts","../../../src/gallery/item/useGalleryItem.props.ts"],"sourcesContent":["import { withHeadless } from '@primereact/core/headless';\nimport { useGalleryContext } from 'primereact/gallery';\nimport * as React from 'react';\nimport { defaultItemProps } from './useGalleryItem.props';\n\nexport const useGalleryItem = withHeadless({\n name: 'useGalleryItem',\n defaultProps: defaultItemProps,\n setup: ({ props, elementRef }) => {\n const { context: galleryProp, normalScale = 1, zoomedScale = 3 } = props;\n\n const galleryContext = useGalleryContext();\n const gallery = galleryProp ?? galleryContext;\n const [index, setIndex] = React.useState(-1);\n const [isActive, setIsActive] = React.useState(false);\n const [position, setPosition] = React.useState({ x: 0, y: 0 });\n const [scale, setScale] = React.useState(1);\n const [rotation, setRotation] = React.useState(0);\n const [flip, setFlip] = React.useState({ x: 1, y: 1 });\n const [isRotating, setIsRotating] = React.useState(false);\n\n const registeredIndexRef = React.useRef<number | null>(null);\n const pointerDataRef = React.useRef<Map<number, { x: number; y: number }>>(new Map());\n const pointerStartRef = React.useRef({ x: 0, y: 0 });\n const lastDistanceRef = React.useRef(0);\n const initialPinchDistanceRef = React.useRef(0);\n const initialPinchScaleRef = React.useRef(1);\n const isPinchingRef = React.useRef(false);\n const liveScaleRef = React.useRef(1);\n const livePositionRef = React.useRef({ x: 0, y: 0 });\n const isDraggingRef = React.useRef(false);\n const dragStartRef = React.useRef({ x: 0, y: 0 });\n const hasDraggedRef = React.useRef(false);\n const wheelSyncTimerRef = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n React.useLayoutEffect(() => {\n if (gallery?.registerItem) {\n const newIndex = gallery.registerItem(registeredIndexRef.current);\n\n registeredIndexRef.current = newIndex;\n\n if (newIndex !== index) {\n setIndex(newIndex);\n }\n }\n }, [gallery]);\n\n React.useEffect(() => {\n liveScaleRef.current = scale;\n }, [scale]);\n\n React.useEffect(() => {\n livePositionRef.current = position;\n }, [position]);\n\n const calculateItemSize = React.useCallback(() => {\n if (!gallery?.contentRef.current || !elementRef.current) return;\n\n const contentRect = gallery?.contentRef.current.getBoundingClientRect();\n\n const imageElement = elementRef.current.firstElementChild as HTMLImageElement;\n\n if (!imageElement) return;\n\n let naturalWidth = imageElement.naturalWidth || imageElement.offsetWidth;\n let naturalHeight = imageElement.naturalHeight || imageElement.offsetHeight;\n\n if (naturalWidth === 0 || naturalHeight === 0) return;\n\n const isRotated = Math.abs(rotation) % 180 === 90;\n\n if (isRotated) {\n [naturalWidth, naturalHeight] = [naturalHeight, naturalWidth];\n }\n\n const naturalAspectRatio = naturalWidth / naturalHeight;\n const contentAspectRatio = contentRect.width / contentRect.height;\n\n let targetWidth, targetHeight;\n\n if (naturalAspectRatio > contentAspectRatio) {\n targetWidth = Math.min(contentRect.width * 0.99, naturalWidth);\n targetHeight = targetWidth / naturalAspectRatio;\n } else {\n targetHeight = Math.min(contentRect.height * 0.99, naturalHeight);\n targetWidth = targetHeight * naturalAspectRatio;\n }\n\n if (isRotated) {\n imageElement.style.width = `${targetHeight}px`;\n imageElement.style.height = `${targetWidth}px`;\n elementRef.current.style.width = `${targetHeight > 0 ? targetHeight : 'auto'}px`;\n elementRef.current.style.height = `${targetWidth > 0 ? targetWidth : 'auto'}px`;\n } else {\n imageElement.style.width = `${targetWidth}px`;\n imageElement.style.height = `${targetHeight}px`;\n elementRef.current.style.width = `${targetWidth > 0 ? targetWidth : 'auto'}px`;\n elementRef.current.style.height = `${targetHeight > 0 ? targetHeight : 'auto'}px`;\n }\n\n elementRef.current.style.aspectRatio = `${naturalWidth / naturalHeight}`;\n }, [gallery?.contentRef, rotation]);\n\n const calculateConstraints = React.useCallback(\n (targetScale?: number) => {\n if (!gallery?.contentRef.current || !elementRef.current) return { minX: 0, maxX: 0, minY: 0, maxY: 0 };\n\n const contentRect = gallery?.contentRef.current.getBoundingClientRect();\n const scaleToUse = targetScale !== undefined ? targetScale : liveScaleRef.current;\n\n const itemElement = elementRef.current.firstElementChild as HTMLElement;\n\n if (!itemElement) return { minX: 0, maxX: 0, minY: 0, maxY: 0 };\n\n let originalWidth = itemElement.offsetWidth;\n let originalHeight = itemElement.offsetHeight;\n\n const isRotated = Math.abs(rotation) % 180 === 90;\n\n if (isRotated) {\n [originalWidth, originalHeight] = [originalHeight, originalWidth];\n }\n\n const scaledWidth = originalWidth * scaleToUse;\n const scaledHeight = originalHeight * scaleToUse;\n\n const contentCenterX = contentRect.width / 2;\n const contentCenterY = contentRect.height / 2;\n\n const halfScaledWidth = scaledWidth / 2;\n const halfScaledHeight = scaledHeight / 2;\n\n const maxX = halfScaledWidth > contentCenterX ? halfScaledWidth - contentCenterX : 0;\n const minX = halfScaledWidth > contentCenterX ? -(halfScaledWidth - contentCenterX) : 0;\n\n const maxY = halfScaledHeight > contentCenterY ? halfScaledHeight - contentCenterY : 0;\n const minY = halfScaledHeight > contentCenterY ? -(halfScaledHeight - contentCenterY) : 0;\n\n return { minX, maxX, minY, maxY };\n },\n [gallery?.contentRef, rotation]\n );\n\n const zoomIn = React.useCallback(() => {\n setScale(zoomedScale);\n\n if (elementRef.current) {\n elementRef.current.style.cursor = 'zoom-out';\n }\n }, [zoomedScale]);\n\n const zoomOut = React.useCallback(() => {\n setScale(normalScale);\n setPosition({ x: 0, y: 0 });\n\n if (elementRef.current) {\n elementRef.current.style.cursor = 'zoom-in';\n }\n }, [normalScale]);\n\n const rotateLeft = () => {\n setIsRotating(true);\n\n if (elementRef.current) elementRef.current.style.transition = '';\n\n setRotation((prev) => prev - 90);\n };\n\n const rotateRight = () => {\n setIsRotating(true);\n\n if (elementRef.current) elementRef.current.style.transition = '';\n\n setRotation((prev) => prev + 90);\n };\n\n const flipX = () => {\n setFlip((prev) => ({ ...prev, x: Math.sign(prev.x) * -1 }));\n };\n\n const flipY = () => {\n setFlip((prev) => ({ ...prev, y: Math.sign(prev.y) * -1 }));\n };\n\n const download = () => {\n if (!elementRef.current) return;\n\n const imageElement = elementRef.current.querySelector('img') as HTMLImageElement;\n\n if (!imageElement || !imageElement.src) return;\n\n const link = document.createElement('a');\n\n link.href = imageElement.src;\n\n const urlParts = imageElement.src.split('/');\n const filename = urlParts[urlParts.length - 1] || 'image.jpg';\n\n link.download = filename;\n link.target = '_blank';\n\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n };\n\n const handleClick = React.useCallback(\n (e: React.MouseEvent) => {\n if (hasDraggedRef.current) {\n hasDraggedRef.current = false;\n\n return;\n }\n\n if (liveScaleRef.current === normalScale) {\n if (elementRef.current) {\n const itemRect = elementRef.current.getBoundingClientRect();\n\n const itemCenterX = itemRect.width / 2;\n const itemCenterY = itemRect.height / 2;\n\n const clickX = e.clientX - itemRect.left;\n const clickY = e.clientY - itemRect.top;\n\n const offsetX = itemCenterX - clickX;\n const offsetY = itemCenterY - clickY;\n\n const zoomOffsetX = offsetX * (zoomedScale - 1);\n const zoomOffsetY = offsetY * (zoomedScale - 1);\n\n const constraints = calculateConstraints(zoomedScale);\n const constrainedX = Math.max(constraints.minX, Math.min(constraints.maxX, zoomOffsetX));\n const constrainedY = Math.max(constraints.minY, Math.min(constraints.maxY, zoomOffsetY));\n\n setPosition({ x: constrainedX, y: constrainedY });\n }\n\n zoomIn();\n } else {\n zoomOut();\n }\n },\n [normalScale, zoomedScale, calculateConstraints, zoomIn, zoomOut]\n );\n\n const handleDragStart = React.useCallback((e: React.DragEvent<HTMLDivElement>) => {\n e.preventDefault();\n }, []);\n\n const handlePointerDown = React.useCallback((e: React.PointerEvent) => {\n e.currentTarget.setPointerCapture(e.pointerId);\n pointerDataRef.current.set(e.pointerId, { x: e.clientX, y: e.clientY });\n pointerStartRef.current = { x: e.clientX, y: e.clientY };\n\n if (e.pointerType === 'touch' && pointerDataRef.current.size >= 2) {\n isDraggingRef.current = false;\n initialPinchDistanceRef.current = 0;\n initialPinchScaleRef.current = liveScaleRef.current;\n } else if (liveScaleRef.current > 1) {\n if (e.pointerType === 'mouse' || (e.pointerType === 'touch' && pointerDataRef.current.size === 1)) {\n isDraggingRef.current = true;\n dragStartRef.current = { x: e.clientX - livePositionRef.current.x, y: e.clientY - livePositionRef.current.y };\n hasDraggedRef.current = false;\n }\n }\n }, []);\n\n const handlePointerMove = React.useCallback(\n (e: React.PointerEvent) => {\n if (!pointerDataRef.current.has(e.pointerId) || !elementRef.current) return;\n\n elementRef.current.style.transition = 'none';\n\n if (e.pointerType === 'mouse' && !elementRef.current.style.cursor) {\n elementRef.current.style.cursor = liveScaleRef.current > normalScale ? 'zoom-out' : 'zoom-in';\n }\n\n pointerDataRef.current.set(e.pointerId, { x: e.clientX, y: e.clientY });\n\n const pointers = Array.from(pointerDataRef.current.values());\n\n if (pointers.length === 2) {\n const [p1, p2] = pointers;\n const distance = Math.hypot(p2.x - p1.x, p2.y - p1.y);\n\n isPinchingRef.current = true;\n hasDraggedRef.current = true;\n\n if (initialPinchDistanceRef.current === 0) {\n initialPinchDistanceRef.current = distance;\n initialPinchScaleRef.current = liveScaleRef.current;\n } else {\n const ratio = distance / initialPinchDistanceRef.current;\n const newScale = Math.max(normalScale, Math.min(zoomedScale, initialPinchScaleRef.current * ratio));\n\n const constraints = calculateConstraints(newScale);\n const constrainedX = Math.max(constraints.minX, Math.min(constraints.maxX, livePositionRef.current.x));\n const constrainedY = Math.max(constraints.minY, Math.min(constraints.maxY, livePositionRef.current.y));\n\n liveScaleRef.current = newScale;\n livePositionRef.current = { x: constrainedX, y: constrainedY };\n\n elementRef.current.style.setProperty('--px-scale', `${newScale}`);\n elementRef.current.style.setProperty('--px-position-x', `${constrainedX}px`);\n elementRef.current.style.setProperty('--px-position-y', `${constrainedY}px`);\n }\n\n lastDistanceRef.current = distance;\n } else if (pointers.length === 1 && isDraggingRef.current) {\n const pointer = pointers[0];\n const newX = pointer.x - dragStartRef.current.x;\n const newY = pointer.y - dragStartRef.current.y;\n const constraints = calculateConstraints(liveScaleRef.current);\n\n const computedX = Math.max(constraints.minX, Math.min(constraints.maxX, newX));\n const computedY = Math.max(constraints.minY, Math.min(constraints.maxY, newY));\n\n livePositionRef.current = { x: computedX, y: computedY };\n\n elementRef.current.style.setProperty('--px-position-x', `${computedX}px`);\n elementRef.current.style.setProperty('--px-position-y', `${computedY}px`);\n\n const distFromStart = Math.hypot(pointer.x - pointerStartRef.current.x, pointer.y - pointerStartRef.current.y);\n\n if (distFromStart > 5) {\n hasDraggedRef.current = true;\n }\n }\n },\n [normalScale, zoomedScale, calculateConstraints]\n );\n\n const handlePointerUp = React.useCallback(\n (e: React.PointerEvent) => {\n if (!elementRef.current) return;\n\n elementRef.current.style.transition = '';\n\n if (e.pointerType === 'mouse') {\n elementRef.current.style.cursor = liveScaleRef.current > normalScale ? 'zoom-out' : 'zoom-in';\n }\n\n e.currentTarget.releasePointerCapture(e.pointerId);\n pointerDataRef.current.delete(e.pointerId);\n\n if (pointerDataRef.current.size < 2) {\n lastDistanceRef.current = 0;\n initialPinchDistanceRef.current = 0;\n initialPinchScaleRef.current = 1;\n isPinchingRef.current = false;\n }\n\n if (pointerDataRef.current.size === 0) {\n isDraggingRef.current = false;\n setScale(liveScaleRef.current);\n setPosition(livePositionRef.current);\n }\n },\n [normalScale]\n );\n\n React.useEffect(() => {\n if (scale <= 1) {\n setPosition({ x: 0, y: 0 });\n }\n }, [scale]);\n\n React.useEffect(() => {\n if (gallery?.state.activeIndex === index && document.readyState === 'complete') {\n calculateItemSize();\n }\n }, [gallery?.state.activeIndex, index, calculateItemSize]);\n\n React.useEffect(() => {\n if (gallery?.state.activeIndex === index) {\n calculateItemSize();\n }\n }, [rotation, calculateItemSize, gallery?.state.activeIndex, index]);\n\n React.useEffect(() => {\n if (gallery?.state.activeIndex === index && gallery?.state.isFullscreen !== undefined) {\n calculateItemSize();\n }\n }, [gallery?.state.isFullscreen, calculateItemSize, gallery?.state.activeIndex, index]);\n\n React.useEffect(() => {\n const handleResize = () => {\n if (gallery?.state.activeIndex === index) {\n calculateItemSize();\n }\n };\n\n window.addEventListener('resize', handleResize);\n\n return () => window.removeEventListener('resize', handleResize);\n }, [gallery?.state.activeIndex, index, calculateItemSize]);\n\n // Watch pendingAction from gallery and execute on active item\n React.useEffect(() => {\n const action = gallery?.state.pendingAction;\n\n if (!action || !isActive) return;\n\n switch (action.type) {\n case 'zoom-in':\n zoomIn();\n break;\n case 'zoom-out':\n zoomOut();\n break;\n case 'rotate-left':\n rotateLeft();\n break;\n case 'rotate-right':\n rotateRight();\n break;\n case 'flip-x':\n flipX();\n break;\n case 'flip-y':\n flipY();\n break;\n case 'download':\n download();\n break;\n }\n\n gallery?.clearPendingAction();\n }, [gallery?.state.pendingAction, isActive]);\n\n React.useEffect(() => {\n const itemElement = elementRef.current;\n\n if (!itemElement || !isActive) return;\n\n const handleWheel = (e: WheelEvent) => {\n if (!e.ctrlKey) return;\n\n e.preventDefault();\n\n itemElement.style.transition = 'none';\n\n const delta = -e.deltaY;\n const scaleFactor = 1 + delta * 0.01;\n const newScale = Math.max(normalScale, Math.min(zoomedScale, liveScaleRef.current * scaleFactor));\n\n const constraints = calculateConstraints(newScale);\n const constrainedX = Math.max(constraints.minX, Math.min(constraints.maxX, livePositionRef.current.x));\n const constrainedY = Math.max(constraints.minY, Math.min(constraints.maxY, livePositionRef.current.y));\n\n liveScaleRef.current = newScale;\n livePositionRef.current = { x: constrainedX, y: constrainedY };\n\n itemElement.style.setProperty('--px-scale', `${newScale}`);\n itemElement.style.setProperty('--px-position-x', `${constrainedX}px`);\n itemElement.style.setProperty('--px-position-y', `${constrainedY}px`);\n\n if (wheelSyncTimerRef.current) {\n clearTimeout(wheelSyncTimerRef.current);\n }\n\n wheelSyncTimerRef.current = setTimeout(() => {\n itemElement.style.transition = '';\n itemElement.style.cursor = liveScaleRef.current > normalScale ? 'zoom-out' : 'zoom-in';\n\n setScale(liveScaleRef.current);\n setPosition(livePositionRef.current);\n wheelSyncTimerRef.current = null;\n }, 150);\n };\n\n itemElement.addEventListener('wheel', handleWheel, { passive: false });\n\n return () => {\n itemElement.removeEventListener('wheel', handleWheel);\n\n if (wheelSyncTimerRef.current) {\n clearTimeout(wheelSyncTimerRef.current);\n wheelSyncTimerRef.current = null;\n }\n };\n }, [isActive, normalScale, zoomedScale, calculateConstraints]);\n\n React.useEffect(() => {\n if (gallery?.state.activeIndex === index) {\n setIsActive(true);\n } else {\n setIsActive(false);\n }\n }, [gallery?.state.activeIndex, index]);\n\n React.useEffect(() => {\n if (isActive && gallery?.reportItemState) {\n gallery.reportItemState({\n zoomed: scale > normalScale,\n rotated: rotation !== 0,\n flipped: flip.x === -1 || flip.y === -1,\n scale,\n rotation,\n flip\n });\n }\n }, [isActive, scale, normalScale, rotation, flip, gallery?.reportItemState]);\n\n React.useLayoutEffect(() => {\n if (!isRotating) return;\n\n const id = setTimeout(() => setIsRotating(false), 300);\n\n return () => clearTimeout(id);\n }, [isRotating, rotation]);\n\n const attributes = React.useMemo(() => {\n return {\n ...(isActive ? { 'data-active': '' as const } : {}),\n ...(isRotating ? { 'data-rotating': '' as const } : {})\n };\n }, [isActive, isRotating]);\n\n const CSSVariables = React.useMemo(() => {\n return {\n '--px-position-x': `${position.x}px`,\n '--px-position-y': `${position.y}px`,\n '--px-scale': `${scale}`,\n '--px-rotation': `${rotation}deg`,\n '--px-flip-x': flip.x,\n '--px-flip-y': flip.y\n } as React.CSSProperties;\n }, [position, scale, rotation, flip]);\n\n const state = {\n index,\n position,\n scale,\n rotation,\n flip,\n isActive\n };\n\n const itemProps = {\n ref: elementRef as React.RefObject<HTMLDivElement>,\n 'data-scope': 'gallery' as const,\n 'data-part': 'item' as const,\n 'data-index': index,\n onClick: handleClick,\n onPointerDown: handlePointerDown,\n onPointerMove: handlePointerMove,\n onPointerUp: handlePointerUp,\n onDragStart: handleDragStart,\n style: CSSVariables,\n ...attributes\n };\n\n return {\n state,\n attributes,\n CSSVariables,\n itemProps,\n handlePointerUp,\n handlePointerMove,\n handlePointerDown,\n handleClick,\n handleDragStart,\n zoomIn,\n zoomOut,\n rotateLeft,\n rotateRight,\n flipX,\n flipY,\n download,\n calculateConstraints,\n calculateItemSize\n };\n }\n});\n","'use client';\nimport { createOptionalContext } from '@primereact/core/utils';\nimport type { GalleryRootInstance } from '@primereact/types/primitive/gallery';\n\nexport const [GalleryProvider, useGalleryContext] = createOptionalContext<GalleryRootInstance>();\n","export { GalleryBackdrop as Backdrop } from './backdrop';\nexport { GalleryContent as Content } from './content';\nexport { GalleryDownload as Download } from './download';\nexport { GalleryFlipX as FlipX } from './flipx';\nexport { GalleryFlipY as FlipY } from './flipy';\nexport { GalleryFooter as Footer } from './footer';\nexport { GalleryFullScreen as FullScreen } from './fullscreen';\nexport { GalleryHeader as Header } from './header';\nexport { GalleryItem as Item } from './item';\nexport { GalleryNext as Next } from './next';\nexport { GalleryPrev as Prev } from './prev';\nexport { GalleryRoot as Root } from './root';\nexport { GalleryRotateLeft as RotateLeft } from './rotateleft';\nexport { GalleryRotateRight as RotateRight } from './rotateright';\nexport { GalleryThumbnail as Thumbnail } from './thumbnail';\nexport { GalleryThumbnailContent as ThumbnailContent } from './thumbnailcontent';\nexport { GalleryThumbnailItem as ThumbnailItem } from './thumbnailitem';\nexport { GalleryZoomIn as ZoomIn } from './zoomin';\nexport { GalleryZoomOut as ZoomOut } from './zoomout';\nexport { GalleryZoomToggle as ZoomToggle } from './zoomtoggle';\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultBackdropProps } from './GalleryBackdrop.props';\n\nexport const GalleryBackdrop = withComponent({\n name: 'Gallery.Backdrop',\n defaultProps: defaultBackdropProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.backdropProps,\n {\n className: gallery?.cx('backdrop')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryBackdropProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultBackdropProps: GalleryBackdropProps = {\n as: 'div'\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultContentProps } from './GalleryContent.props';\n\nexport const GalleryContent = withComponent({\n name: 'Gallery.Content',\n defaultProps: defaultContentProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.contentProps,\n {\n className: gallery?.cx('content')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryContentProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultContentProps: GalleryContentProps = {\n as: 'div'\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultDownloadProps } from './GalleryDownload.props';\n\nexport const GalleryDownload = withComponent({\n name: 'Gallery.Download',\n defaultProps: defaultDownloadProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.downloadProps,\n {\n className: gallery?.cx('download')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryDownloadProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultDownloadProps: GalleryDownloadProps = {\n as: 'button',\n onClick: undefined\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultFlipXProps } from './GalleryFlipX.props';\n\nexport const GalleryFlipX = withComponent({\n name: 'Gallery.FlipX',\n defaultProps: defaultFlipXProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.flipXProps,\n {\n className: gallery?.cx('flipX')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryFlipXProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultFlipXProps: GalleryFlipXProps = {\n as: 'button',\n onClick: undefined\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultFlipYProps } from './GalleryFlipY.props';\n\nexport const GalleryFlipY = withComponent({\n name: 'Gallery.FlipY',\n defaultProps: defaultFlipYProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.flipYProps,\n {\n className: gallery?.cx('flipY')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryFlipYProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultFlipYProps: GalleryFlipYProps = {\n as: 'button',\n onClick: undefined\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultFooterProps } from './GalleryFooter.props';\n\nexport const GalleryFooter = withComponent({\n name: 'Gallery.Footer',\n defaultProps: defaultFooterProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.footerProps,\n {\n className: gallery?.cx('footer')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryFooterProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultFooterProps: GalleryFooterProps = {\n as: 'div'\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultFullScreenProps } from './GalleryFullScreen.props';\n\nexport const GalleryFullScreen = withComponent({\n name: 'Gallery.FullScreen',\n defaultProps: defaultFullScreenProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n const isFullscreen = gallery?.state.isFullscreen ?? false;\n\n const rootProps = mergeProps(\n gallery?.fullScreenProps,\n {\n className: gallery?.cx('fullScreen')\n },\n ptmi('root')\n );\n\n const children = typeof props.children === 'function' ? props.children({ isFullscreen }) : props.children;\n\n return <Component instance={instance} attrs={rootProps} children={children} />;\n }\n});\n","import { GalleryFullScreenProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultFullScreenProps: GalleryFullScreenProps = {\n as: 'button',\n onClick: undefined\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultHeaderProps } from './GalleryHeader.props';\n\nexport const GalleryHeader = withComponent({\n name: 'Gallery.Header',\n defaultProps: defaultHeaderProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.headerProps,\n {\n className: gallery?.cx('header')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryHeaderProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultHeaderProps: GalleryHeaderProps = {\n as: 'div'\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { useGalleryItem } from '@primereact/headless/gallery/item';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { GalleryItemProvider } from './GalleryItem.context';\nimport { defaultItemProps } from './GalleryItem.props';\n\nexport const GalleryItem = withComponent({\n name: 'Gallery.Item',\n defaultProps: defaultItemProps,\n setup(instance) {\n const gallery = useGalleryContext();\n const galleryItem = useGalleryItem(instance.inProps);\n\n return { ...galleryItem, gallery };\n },\n render(instance) {\n const { id, props, ptmi, gallery, itemProps } = instance;\n\n const rootProps = mergeProps(\n itemProps,\n {\n id,\n className: gallery?.cx('item')\n },\n ptmi('root'),\n gallery?.ptm('item')\n );\n\n return (\n <GalleryItemProvider value={instance}>\n <Component instance={instance} attrs={rootProps} children={props.children} />\n </GalleryItemProvider>\n );\n }\n});\n","'use client';\nimport { createOptionalContext } from '@primereact/core/utils';\nimport type { GalleryItemInstance } from '@primereact/types/primitive/gallery';\n\nexport const [GalleryItemProvider, useGalleryItemContext] = createOptionalContext<GalleryItemInstance>();\n","import * as HeadlessGallery from '@primereact/headless/gallery';\nimport type { GalleryItemProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultItemProps: GalleryItemProps = {\n ...HeadlessGallery.defaultProps,\n as: 'div'\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultNextProps } from './GalleryNext.props';\n\nexport const GalleryNext = withComponent({\n name: 'Gallery.Next',\n defaultProps: defaultNextProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.nextProps,\n {\n className: gallery?.cx('next')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} ref={gallery?.nextRef} />;\n }\n});\n","import { GalleryNextProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultNextProps: GalleryNextProps = {\n as: 'button'\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultPrevProps } from './GalleryPrev.props';\n\nexport const GalleryPrev = withComponent({\n name: 'Gallery.Prev',\n defaultProps: defaultPrevProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.prevProps,\n {\n className: gallery?.cx('prev')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} ref={gallery?.prevRef} />;\n }\n});\n","import { GalleryPrevProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultPrevProps: GalleryPrevProps = {\n as: 'button'\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { useGallery } from '@primereact/headless/gallery';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { createPortal } from 'react-dom';\nimport { GalleryProvider } from '../Gallery.context';\nimport { defaultRootProps } from './GalleryRoot.props';\n\nexport const GalleryRoot = withComponent({\n name: 'Gallery.Root',\n defaultProps: defaultRootProps,\n setup(instance) {\n const gallery = useGallery(instance.inProps);\n\n return gallery;\n },\n render(instance) {\n const { props, ptmi, cx, rootProps: headlessRootProps } = instance;\n const isFullscreen = !!props.fullscreen;\n\n const rootProps = mergeProps(\n headlessRootProps,\n {\n className: cx('root')\n },\n ptmi('root')\n );\n\n const element = (\n <GalleryProvider value={instance}>\n <Component instance={instance} attrs={rootProps} children={props.children} />\n </GalleryProvider>\n );\n\n if (isFullscreen && typeof document !== 'undefined') {\n return createPortal(element, document.body);\n }\n\n return element;\n }\n});\n","import * as HeadlessGallery from '@primereact/headless/gallery';\nimport type { GalleryRootProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultRootProps: GalleryRootProps = {\n ...HeadlessGallery.defaultProps,\n as: 'div'\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultRotateLeftProps } from './GalleryRotateLeft.props';\n\nexport const GalleryRotateLeft = withComponent({\n name: 'Gallery.RotateLeft',\n defaultProps: defaultRotateLeftProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.rotateLeftProps,\n {\n className: gallery?.cx('rotateLeft')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryRotateLeftProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultRotateLeftProps: GalleryRotateLeftProps = {\n as: 'button',\n onClick: undefined\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultRotateRightProps } from './GalleryRotateRight.props';\n\nexport const GalleryRotateRight = withComponent({\n name: 'Gallery.RotateRight',\n defaultProps: defaultRotateRightProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.rotateRightProps,\n {\n className: gallery?.cx('rotateRight')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryRotateRightProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultRotateRightProps: GalleryRotateRightProps = {\n as: 'button',\n onClick: undefined\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultThumbnailProps } from './GalleryThumbnail.props';\n\nexport const GalleryThumbnail = withComponent({\n name: 'Gallery.Thumbnail',\n defaultProps: defaultThumbnailProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n const { as, ...restProps } = props;\n\n const rootProps = mergeProps(\n restProps,\n gallery?.thumbnailProps,\n {\n className: gallery?.cx('thumbnail')\n },\n gallery?.ptm('thumbnail'),\n ptmi('root')\n );\n\n return <Component as={as} instance={instance} attrs={rootProps} children={props.children} ref={gallery?.thumbnailRef} />;\n }\n});\n","'use client';\nimport { createOptionalContext } from '@primereact/core/utils';\nimport type { CarouselRootInstance } from '@primereact/types/primitive/carousel';\n\nexport const [CarouselProvider, useCarouselContext] = createOptionalContext<CarouselRootInstance>();\n","export { CarouselContent as Content } from './content';\nexport { CarouselIndicator as Indicator } from './indicator';\nexport { CarouselIndicators as Indicators } from './indicators';\nexport { CarouselItem as Item } from './item';\nexport { CarouselNext as Next } from './next';\nexport { CarouselPrev as Prev } from './prev';\nexport { CarouselRoot as Root } from './root';\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useCarouselContext } from '../Carousel.context';\nimport { defaultContentProps } from './CarouselContent.props';\n\nexport const CarouselContent = withComponent({\n name: 'Carousel.Content',\n defaultProps: defaultContentProps,\n setup() {\n const carousel = useCarouselContext();\n\n return { carousel };\n },\n render(instance) {\n const { props, ptmi, carousel } = instance;\n\n const contentProps = mergeProps(\n carousel?.contentProps,\n {\n className: carousel?.cx('content')\n },\n carousel?.ptm('content'),\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={contentProps} children={props.children} />;\n }\n});\n","import type { CarouselContentProps } from '@primereact/types/primitive/carousel';\n\nexport const defaultContentProps: CarouselContentProps = {\n as: 'div'\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useCarouselContext } from '../Carousel.context';\nimport { defaultIndicatorProps } from './CarouselIndicator.props';\n\nexport const CarouselIndicator = withComponent({\n name: 'Carousel.Indicator',\n defaultProps: defaultIndicatorProps,\n setup(instance) {\n const carousel = useCarouselContext();\n const isActive = carousel?.state.page === instance.props.page;\n\n return { carousel, isActive };\n },\n render(instance) {\n const { props, ptmi, carousel, isActive } = instance;\n\n const contentProps = mergeProps(\n carousel?.getIndicatorProps(props.page ?? 0),\n {\n className: carousel?.cx('indicator', { active: isActive })\n },\n carousel?.ptm('indicator'),\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={contentProps} children={props.children} />;\n }\n});\n","import type { CarouselIndicatorProps } from '@primereact/types/primitive/carousel';\n\nexport const defaultIndicatorProps: CarouselIndicatorProps = {\n as: 'button',\n page: undefined\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useCarouselContext } from '../Carousel.context';\nimport { CarouselIndicator } from '../indicator/CarouselIndicator';\nimport { defaultIndicatorsProps } from './CarouselIndicators.props';\n\nexport const CarouselIndicators = withComponent({\n name: 'Carousel.Indicators',\n defaultProps: defaultIndicatorsProps,\n setup() {\n const carousel = useCarouselContext();\n\n return { carousel };\n },\n render(instance) {\n const { props, ptmi, carousel } = instance;\n\n const contentProps = mergeProps(\n carousel?.indicatorsProps,\n {\n className: carousel?.cx('indicators')\n },\n carousel?.ptm('indicators'),\n ptmi('root')\n );\n\n return (\n <Component\n instance={instance}\n attrs={contentProps}\n children={\n props.children ?? (\n <>\n {Array.from(carousel?.state.snapPoints ?? []).map((_, i) => (\n <CarouselIndicator key={i} page={i} />\n ))}\n </>\n )\n }\n />\n );\n }\n});\n","import type { CarouselIndicatorsProps } from '@primereact/types/primitive/carousel';\n\nexport const defaultIndicatorsProps: CarouselIndicatorsProps = {\n as: 'div'\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useCarouselContext } from '../Carousel.context';\nimport { defaultItemProps } from './CarouselItem.props';\n\nexport const CarouselItem = withComponent({\n name: 'Carousel.Item',\n defaultProps: defaultItemProps,\n setup() {\n const carousel = useCarouselContext();\n\n return { carousel };\n },\n render(instance) {\n const { id, props, ptmi, carousel } = instance;\n\n const rootProps = mergeProps(\n carousel?.getItemProps(props.value),\n {\n id,\n className: carousel?.cx('item')\n },\n carousel?.ptm('item'),\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import type { CarouselItemProps } from '@primereact/types/primitive/carousel';\n\nexport const defaultItemProps: CarouselItemProps = {\n as: 'div',\n value: undefined\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useCarouselContext } from '../Carousel.context';\nimport { defaultNextProps } from './CarouselNext.props';\n\nexport const CarouselNext = withComponent({\n name: 'Carousel.Next',\n defaultProps: defaultNextProps,\n setup(instance) {\n const carousel = useCarouselContext();\n const disabled = (carousel?.state.isNextDisabled || instance.props.disabled) ?? false;\n\n return { carousel, disabled };\n },\n render(instance) {\n const { props, ptmi, carousel, disabled } = instance;\n\n const rootProps = mergeProps(\n carousel?.getNextProps(disabled),\n {\n className: carousel?.cx('next', { disabled })\n },\n carousel?.ptm('next'),\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import type { CarouselNextProps } from '@primereact/types/primitive/carousel';\n\nexport const defaultNextProps: CarouselNextProps = {\n as: 'button'\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useCarouselContext } from '../Carousel.context';\nimport { defaultPrevProps } from './CarouselPrev.props';\n\nexport const CarouselPrev = withComponent({\n name: 'Carousel.Prev',\n defaultProps: defaultPrevProps,\n setup(instance) {\n const carousel = useCarouselContext();\n const disabled = (carousel?.state.isPrevDisabled || instance.props.disabled) ?? false;\n\n return { carousel, disabled };\n },\n render(instance) {\n const { props, ptmi, carousel, disabled } = instance;\n\n const rootProps = mergeProps(\n carousel?.getPrevProps(disabled),\n {\n className: carousel?.cx('prev', { disabled })\n },\n carousel?.ptm('prev'),\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import type { CarouselPrevProps } from '@primereact/types/primitive/carousel';\n\nexport const defaultPrevProps: CarouselPrevProps = {\n as: 'button'\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { useCarousel } from '@primereact/headless/carousel';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { CarouselProvider } from '../Carousel.context';\nimport { defaultRootProps } from './CarouselRoot.props';\n\nexport const CarouselRoot = withComponent({\n name: 'Carousel.Root',\n defaultProps: defaultRootProps,\n setup(instance) {\n const carousel = useCarousel(instance.inProps);\n\n return carousel;\n },\n render(instance) {\n const { id, props, rootProps: carouselRootProps, ptmi, cx } = instance;\n\n const rootProps = mergeProps(\n carouselRootProps,\n {\n id,\n className: cx('root')\n },\n ptmi('root')\n );\n\n return (\n <CarouselProvider value={instance}>\n <Component instance={instance} attrs={rootProps} children={props.children} />\n </CarouselProvider>\n );\n }\n});\n","import * as HeadlessCarousel from '@primereact/headless/carousel';\nimport type { CarouselRootProps } from '@primereact/types/primitive/carousel';\n\nexport const defaultRootProps: CarouselRootProps = {\n ...HeadlessCarousel.defaultProps,\n as: 'div'\n};\n","export { defaultContentProps } from './content';\nexport { defaultIndicatorProps } from './indicator';\nexport { defaultIndicatorsProps } from './indicators';\nexport { defaultItemProps } from './item';\nexport { defaultNextProps } from './next';\nexport { defaultPrevProps } from './prev';\nexport { defaultRootProps } from './root';\n","import { GalleryThumbnailProps } from '@primereact/types/primitive/gallery';\nimport { CarouselRoot } from 'primereact/carousel';\n\nexport const defaultThumbnailProps: GalleryThumbnailProps = {\n as: CarouselRoot,\n autoSize: true,\n loop: true,\n align: 'center',\n spacing: 8\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultThumbnailContentProps } from './GalleryThumbnailContent.props';\n\nexport const GalleryThumbnailContent = withComponent({\n name: 'Gallery.ThumbnailContent',\n defaultProps: defaultThumbnailContentProps,\n setup() {\n const gallery = useGalleryContext();\n const thumbnailContentProps = gallery?.thumbnailContentProps ?? {};\n\n return { gallery, thumbnailContentProps };\n },\n render(instance) {\n const { props, ptmi, gallery, thumbnailContentProps } = instance;\n const { as, ...restProps } = props;\n\n const rootProps = mergeProps(\n restProps,\n thumbnailContentProps,\n {\n className: gallery?.cx('thumbnailContent')\n },\n gallery?.ptm('thumbnailContent'),\n ptmi('root')\n );\n\n return <Component as={as} instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryThumbnailContentProps } from '@primereact/types/primitive/gallery';\nimport { CarouselContent } from 'primereact/carousel';\n\nexport const defaultThumbnailContentProps: GalleryThumbnailContentProps = {\n as: CarouselContent\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultThumbnailItemProps } from './GalleryThumbnailItem.props';\n\nexport const GalleryThumbnailItem = withComponent({\n name: 'Gallery.ThumbnailItem',\n defaultProps: defaultThumbnailItemProps,\n setup(instance) {\n const gallery = useGalleryContext();\n const { index } = instance.props;\n const thumbnailItemProps = gallery?.thumbnailItemProps(index) ?? {};\n\n return { gallery, thumbnailItemProps };\n },\n render(instance) {\n const { props, ptmi, gallery, thumbnailItemProps } = instance;\n const { as, ...restProps } = props;\n\n const rootProps = mergeProps(\n restProps,\n thumbnailItemProps,\n {\n className: gallery?.cx('thumbnailItem')\n },\n gallery?.ptm('thumbnailItem'),\n ptmi('root')\n );\n\n return <Component as={as} instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryThumbnailItemProps } from '@primereact/types/primitive/gallery';\nimport { CarouselItem } from 'primereact/carousel';\n\nexport const defaultThumbnailItemProps: GalleryThumbnailItemProps = {\n as: CarouselItem,\n index: undefined\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultZoomInProps } from './GalleryZoomIn.props';\n\nexport const GalleryZoomIn = withComponent({\n name: 'Gallery.ZoomIn',\n defaultProps: defaultZoomInProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.zoomInProps,\n {\n className: gallery?.cx('zoomIn')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryZoomInProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultZoomInProps: GalleryZoomInProps = {\n as: 'button',\n onClick: undefined\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultZoomOutProps } from './GalleryZoomOut.props';\n\nexport const GalleryZoomOut = withComponent({\n name: 'Gallery.ZoomOut',\n defaultProps: defaultZoomOutProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.zoomOutProps,\n {\n className: gallery?.cx('zoomOut')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryZoomOutProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultZoomOutProps: GalleryZoomOutProps = {\n as: 'button',\n onClick: undefined\n};\n","'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { useGalleryContext } from '../Gallery.context';\nimport { defaultZoomToggleProps } from './GalleryZoomToggle.props';\n\nexport const GalleryZoomToggle = withComponent({\n name: 'Gallery.ZoomToggle',\n defaultProps: defaultZoomToggleProps,\n setup() {\n const gallery = useGalleryContext();\n\n return { gallery };\n },\n render(instance) {\n const { props, ptmi, gallery } = instance;\n\n const rootProps = mergeProps(\n gallery?.zoomToggleProps,\n {\n className: gallery?.cx('zoomToggle')\n },\n ptmi('root')\n );\n\n return <Component instance={instance} attrs={rootProps} children={props.children} />;\n }\n});\n","import { GalleryZoomToggleProps } from '@primereact/types/primitive/gallery';\n\nexport const defaultZoomToggleProps: GalleryZoomToggleProps = {\n as: 'button',\n onClick: undefined\n};\n","export { defaultBackdropProps } from './backdrop';\nexport { defaultContentProps } from './content';\nexport { defaultDownloadProps } from './download';\nexport { defaultFlipXProps } from './flipx';\nexport { defaultFlipYProps } from './flipy';\nexport { defaultFooterProps } from './footer';\nexport { defaultFullScreenProps } from './fullscreen';\nexport { defaultHeaderProps } from './header';\nexport { defaultItemProps } from './item';\nexport { defaultNextProps } from './next';\nexport { defaultPrevProps } from './prev';\nexport { defaultRootProps } from './root';\nexport { defaultRotateLeftProps } from './rotateleft';\nexport { defaultRotateRightProps } from './rotateright';\nexport { defaultThumbnailProps } from './thumbnail';\nexport { defaultThumbnailContentProps } from './thumbnailcontent';\nexport { defaultThumbnailItemProps } from './thumbnailitem';\nexport { defaultZoomInProps } from './zoomin';\nexport { defaultZoomOutProps } from './zoomout';\nexport { defaultZoomToggleProps } from './zoomtoggle';\n","import type { UseGalleryItemProps } from '@primereact/types/headless/gallery';\n\nexport const defaultItemProps: UseGalleryItemProps = {\n context: undefined,\n normalScale: 1,\n zoomedScale: 3\n};\n"],"mappings":"mqBAAA,OAAS,gBAAAA,OAAoB,4BCC7B,OAAS,yBAAAC,OAA6B,yBAG/B,GAAM,CAACC,GAAiBC,CAAiB,EAAIF,GAA2C,ECJ/F,IAAAG,GAAA,GAAAC,GAAAD,GAAA,cAAAE,GAAA,YAAAC,GAAA,aAAAC,GAAA,UAAAC,GAAA,UAAAC,GAAA,WAAAC,GAAA,eAAAC,GAAA,WAAAC,GAAA,SAAAC,GAAA,SAAAC,GAAA,SAAAC,GAAA,SAAAC,GAAA,eAAAC,GAAA,g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UE,CAAI,CAAC,EAE9B6F,GAAQ,CACV,MAAAvG,EACA,SAAAI,EACA,MAAAE,EACA,SAAAE,EACA,KAAAE,EACA,SAAAR,CACJ,EAEMsG,GAAY3C,EAAA,CACd,IAAKpE,EACL,aAAc,UACd,YAAa,OACb,aAAcO,EACd,QAASmE,GACT,cAAee,GACf,cAAeC,GACf,YAAaY,GACb,YAAad,GACb,MAAOqB,IACJD,IAGP,MAAO,CACH,MAAAE,GACA,WAAAF,GACA,aAAAC,GACA,UAAAE,GACA,gBAAAT,GACA,kBAAAZ,GACA,kBAAAD,GACA,YAAAf,GACA,gBAAAc,GACA,OAAA3B,GACA,QAAAC,GACA,WAAAC,GACA,YAAAE,GACA,MAAAC,GACA,MAAAG,GACA,SAAAC,GACA,qBAAAzB,EACA,kBAAAV,CACJ,CACJ,CACJ,CAAC","names":["withHeadless","createOptionalContext","GalleryProvider","useGalleryContext","Gallery_parts_exports","__export","GalleryBackdrop","GalleryContent","GalleryDownload","GalleryFlipX","GalleryFlipY","GalleryFooter","GalleryFullScreen","GalleryHeader","GalleryItem","GalleryNext","GalleryPrev","GalleryRoot","GalleryRotateLeft","GalleryRotateRight","GalleryThumbnail","GalleryThumbnailContent","GalleryThumbnailItem","GalleryZoomIn","GalleryZoomOut","GalleryZoomToggle","Component","withComponent","mergeProps","React","defaultBackdropProps","GalleryBackdrop","withComponent","defaultBackdropProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultContentProps","GalleryContent","withComponent","defaultContentProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultDownloadProps","GalleryDownload","withComponent","defaultDownloadProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultFlipXProps","GalleryFlipX","withComponent","defaultFlipXProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultFlipYProps","GalleryFlipY","withComponent","defaultFlipYProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultFooterProps","GalleryFooter","withComponent","defaultFooterProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultFullScreenProps","GalleryFullScreen","withComponent","defaultFullScreenProps","useGalleryContext","instance","_a","props","ptmi","gallery","isFullscreen","rootProps","mergeProps","children","Component","Component","withComponent","mergeProps","React","defaultHeaderProps","GalleryHeader","withComponent","defaultHeaderProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","useGalleryItem","mergeProps","React","createOptionalContext","GalleryItemProvider","useGalleryItemContext","HeadlessGallery","defaultItemProps","__spreadProps","__spreadValues","GalleryItem","withComponent","defaultItemProps","instance","gallery","useGalleryContext","galleryItem","useGalleryItem","__spreadProps","__spreadValues","id","props","ptmi","itemProps","rootProps","mergeProps","GalleryItemProvider","Component","Component","withComponent","mergeProps","React","defaultNextProps","GalleryNext","withComponent","defaultNextProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultPrevProps","GalleryPrev","withComponent","defaultPrevProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","useGallery","mergeProps","React","createPortal","HeadlessGallery","defaultRootProps","__spreadProps","__spreadValues","GalleryRoot","withComponent","defaultRootProps","instance","useGallery","props","ptmi","cx","headlessRootProps","isFullscreen","rootProps","mergeProps","element","GalleryProvider","Component","createPortal","Component","withComponent","mergeProps","React","defaultRotateLeftProps","GalleryRotateLeft","withComponent","defaultRotateLeftProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultRotateRightProps","GalleryRotateRight","withComponent","defaultRotateRightProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","createOptionalContext","CarouselProvider","useCarouselContext","Carousel_parts_exports","__export","CarouselContent","CarouselIndicator","CarouselIndicators","CarouselItem","CarouselNext","CarouselPrev","CarouselRoot","Component","withComponent","mergeProps","React","defaultContentProps","CarouselContent","withComponent","defaultContentProps","useCarouselContext","instance","props","ptmi","carousel","contentProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultIndicatorProps","CarouselIndicator","withComponent","defaultIndicatorProps","instance","carousel","useCarouselContext","isActive","_a","props","ptmi","contentProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultIndicatorsProps","CarouselIndicators","withComponent","defaultIndicatorsProps","useCarouselContext","instance","_a","_b","props","ptmi","carousel","contentProps","mergeProps","Component","_","i","CarouselIndicator","Component","withComponent","mergeProps","React","defaultItemProps","CarouselItem","withComponent","defaultItemProps","useCarouselContext","instance","id","props","ptmi","carousel","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultNextProps","CarouselNext","withComponent","defaultNextProps","instance","_a","carousel","useCarouselContext","disabled","props","ptmi","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultPrevProps","CarouselPrev","withComponent","defaultPrevProps","instance","_a","carousel","useCarouselContext","disabled","props","ptmi","rootProps","mergeProps","Component","Component","withComponent","useCarousel","mergeProps","React","HeadlessCarousel","defaultRootProps","__spreadProps","__spreadValues","CarouselRoot","withComponent","defaultRootProps","instance","useCarousel","id","props","carouselRootProps","ptmi","cx","rootProps","mergeProps","CarouselProvider","Component","Carousel_props_exports","__export","defaultContentProps","defaultIndicatorProps","defaultIndicatorsProps","defaultItemProps","defaultNextProps","defaultPrevProps","defaultRootProps","defaultThumbnailProps","CarouselRoot","GalleryThumbnail","withComponent","defaultThumbnailProps","useGalleryContext","instance","props","ptmi","gallery","_a","as","restProps","__objRest","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultThumbnailContentProps","CarouselContent","GalleryThumbnailContent","withComponent","defaultThumbnailContentProps","_a","gallery","useGalleryContext","thumbnailContentProps","instance","props","ptmi","as","restProps","__objRest","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultThumbnailItemProps","CarouselItem","GalleryThumbnailItem","withComponent","defaultThumbnailItemProps","instance","_a","gallery","useGalleryContext","index","thumbnailItemProps","props","ptmi","as","restProps","__objRest","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultZoomInProps","GalleryZoomIn","withComponent","defaultZoomInProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultZoomOutProps","GalleryZoomOut","withComponent","defaultZoomOutProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Component","withComponent","mergeProps","React","defaultZoomToggleProps","GalleryZoomToggle","withComponent","defaultZoomToggleProps","useGalleryContext","instance","props","ptmi","gallery","rootProps","mergeProps","Component","Gallery_props_exports","__export","defaultBackdropProps","defaultContentProps","defaultDownloadProps","defaultFlipXProps","defaultFlipYProps","defaultFooterProps","defaultFullScreenProps","defaultHeaderProps","defaultItemProps","defaultNextProps","defaultPrevProps","defaultRootProps","defaultRotateLeftProps","defaultRotateRightProps","defaultThumbnailContentProps","defaultThumbnailItemProps","defaultThumbnailProps","defaultZoomInProps","defaultZoomOutProps","defaultZoomToggleProps","React","defaultItemProps","useGalleryItem","withHeadless","defaultItemProps","props","elementRef","galleryProp","normalScale","zoomedScale","galleryContext","useGalleryContext","gallery","index","setIndex","isActive","setIsActive","position","setPosition","scale","setScale","rotation","setRotation","flip","setFlip","isRotating","setIsRotating","registeredIndexRef","pointerDataRef","pointerStartRef","lastDistanceRef","initialPinchDistanceRef","initialPinchScaleRef","isPinchingRef","liveScaleRef","livePositionRef","isDraggingRef","dragStartRef","hasDraggedRef","wheelSyncTimerRef","newIndex","calculateItemSize","contentRect","imageElement","naturalWidth","naturalHeight","isRotated","naturalAspectRatio","contentAspectRatio","targetWidth","targetHeight","calculateConstraints","targetScale","scaleToUse","itemElement","originalWidth","originalHeight","scaledWidth","scaledHeight","contentCenterX","contentCenterY","halfScaledWidth","halfScaledHeight","maxX","minX","maxY","minY","zoomIn","zoomOut","rotateLeft","prev","rotateRight","flipX","__spreadProps","__spreadValues","flipY","download","link","urlParts","filename","handleClick","e","itemRect","itemCenterX","itemCenterY","clickX","clickY","offsetX","offsetY","zoomOffsetX","zoomOffsetY","constraints","constrainedX","constrainedY","handleDragStart","handlePointerDown","handlePointerMove","pointers","p1","p2","distance","ratio","newScale","pointer","newX","newY","computedX","computedY","handlePointerUp","handleResize","action","handleWheel","scaleFactor","id","attributes","CSSVariables","state","itemProps"]}
|
|
File without changes
|
package/iconfield/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/iconfield/useIconField.ts","../../src/iconfield/useIconField.props.ts"],"sourcesContent":["import { withHeadless } from '@primereact/core/headless';\nimport { defaultProps } from './useIconField.props';\n\nexport const useIconField = withHeadless({\n name: 'useIconField',\n defaultProps,\n setup() {\n // prop getters\n const rootProps = {\n 'data-scope': 'iconfield',\n 'data-part': 'root'\n };\n\n return {\n rootProps\n };\n }\n});\n","import type { UseIconFieldProps } from '@primereact/types/headless/iconfield';\n\nexport const defaultProps: UseIconFieldProps = {};\n"],"mappings":"AAAA,OAAS,gBAAAA,MAAoB,4BCEtB,IAAMC,EAAkC,CAAC,EDCzC,IAAMC,EAAeC,EAAa,CACrC,KAAM,eACN,aAAAC,EACA,OAAQ,CAOJ,MAAO,CACH,UANc,CACd,aAAc,YACd,YAAa,MACjB,CAIA,CACJ,CACJ,CAAC","names":["withHeadless","defaultProps","useIconField","withHeadless","defaultProps"]}
|
|
File without changes
|
package/iftalabel/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/iftalabel/useIftaLabel.ts","../../src/iftalabel/useIftaLabel.props.ts"],"sourcesContent":["import { withHeadless } from '@primereact/core/headless';\nimport { defaultProps } from './useIftaLabel.props';\n\nexport const useIftaLabel = withHeadless({\n name: 'useIftaLabel',\n defaultProps,\n setup() {\n // prop getters\n const rootProps = {\n 'data-scope': 'iftalabel',\n 'data-part': 'root'\n };\n\n return {\n rootProps\n };\n }\n});\n","import type { UseIftaLabelProps } from '@primereact/types/headless/iftalabel';\n\nexport const defaultProps: UseIftaLabelProps = {};\n"],"mappings":"AAAA,OAAS,gBAAAA,MAAoB,4BCEtB,IAAMC,EAAkC,CAAC,EDCzC,IAAMC,EAAeC,EAAa,CACrC,KAAM,eACN,aAAAC,EACA,OAAQ,CAOJ,MAAO,CACH,UANc,CACd,aAAc,YACd,YAAa,MACjB,CAIA,CACJ,CACJ,CAAC","names":["withHeadless","defaultProps","useIftaLabel","withHeadless","defaultProps"]}
|
|
File without changes
|
package/inplace/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/inplace/useInplace.ts","../../src/inplace/useInplace.props.ts"],"sourcesContent":["import { withHeadless } from '@primereact/core/headless';\nimport { useControlledState } from '@primereact/hooks/use-controlled-state';\nimport { defaultProps } from './useInplace.props';\n\nexport const useInplace = withHeadless({\n name: 'useInplace',\n defaultProps,\n setup: ({ props }) => {\n const [activeState, setActiveState] = useControlledState({\n value: props.active,\n defaultValue: props.defaultActive ?? false,\n onChange: props.onActiveChange\n });\n\n const state = {\n active: activeState\n };\n\n // methods\n const open = () =>\n setActiveState([\n true,\n {\n originalEvent: undefined,\n active: true\n }\n ]);\n const close = () =>\n setActiveState([\n false,\n {\n originalEvent: undefined,\n active: false\n }\n ]);\n\n function onDisplayKeyDown(event: React.KeyboardEvent<HTMLDivElement>) {\n if (event.defaultPrevented) return;\n\n event.preventDefault();\n\n if (event.code === 'Enter' || event.code === 'Space') {\n open();\n }\n }\n\n const rootProps = {\n 'data-scope': 'inplace',\n 'data-part': 'root',\n [activeState ? 'data-active' : 'data-inactive']: '' as const,\n ...(props.disabled && { 'data-disabled': '' as const })\n };\n\n const displayProps = {\n 'data-scope': 'inplace',\n 'data-part': 'display',\n tabIndex: 0 as const,\n onClick: open,\n onKeyDown: onDisplayKeyDown,\n [activeState ? 'data-active' : 'data-inactive']: '' as const,\n ...(props.disabled && { 'data-disabled': '' as const })\n };\n\n const closeProps = {\n 'data-scope': 'inplace',\n 'data-part': 'close',\n onClick: close,\n [activeState ? 'data-active' : 'data-inactive']: '' as const,\n ...(props.disabled && { 'data-disabled': '' as const })\n };\n\n return {\n state,\n open,\n close,\n onDisplayKeyDown,\n // prop getters\n rootProps,\n displayProps,\n closeProps\n };\n }\n});\n","import type { UseInplaceProps } from '@primereact/types/headless/inplace';\n\nexport const defaultProps: UseInplaceProps = {\n active: undefined,\n defaultActive: false,\n disabled: false,\n onActiveChange: undefined\n};\n"],"mappings":"yVAAA,OAAS,gBAAAA,MAAoB,4BAC7B,OAAS,sBAAAC,MAA0B,yCCC5B,IAAMC,EAAgC,CACzC,OAAQ,OACR,cAAe,GACf,SAAU,GACV,eAAgB,MACpB,EDHO,IAAMC,EAAaC,EAAa,CACnC,KAAM,aACN,aAAAC,EACA,MAAO,CAAC,CAAE,MAAAC,CAAM,IAAM,CAP1B,IAAAC,EAQQ,GAAM,CAACC,EAAaC,CAAc,EAAIC,EAAmB,CACrD,MAAOJ,EAAM,OACb,cAAcC,EAAAD,EAAM,gBAAN,KAAAC,EAAuB,GACrC,SAAUD,EAAM,cACpB,CAAC,EAEKK,EAAQ,CACV,OAAQH,CACZ,EAGMI,EAAO,IACTH,EAAe,CACX,GACA,CACI,cAAe,OACf,OAAQ,EACZ,CACJ,CAAC,EACCI,EAAQ,IACVJ,EAAe,CACX,GACA,CACI,cAAe,OACf,OAAQ,EACZ,CACJ,CAAC,EAEL,SAASK,EAAiBC,EAA4C,CAC9DA,EAAM,mBAEVA,EAAM,eAAe,GAEjBA,EAAM,OAAS,SAAWA,EAAM,OAAS,UACzCH,EAAK,EAEb,CAEA,IAAMI,EAAYC,EAAA,CACd,aAAc,UACd,YAAa,OACb,CAACT,EAAc,cAAgB,eAAe,EAAG,IAC7CF,EAAM,UAAY,CAAE,gBAAiB,EAAY,GAGnDY,EAAeD,EAAA,CACjB,aAAc,UACd,YAAa,UACb,SAAU,EACV,QAASL,EACT,UAAWE,EACX,CAACN,EAAc,cAAgB,eAAe,EAAG,IAC7CF,EAAM,UAAY,CAAE,gBAAiB,EAAY,GAGnDa,EAAaF,EAAA,CACf,aAAc,UACd,YAAa,QACb,QAASJ,EACT,CAACL,EAAc,cAAgB,eAAe,EAAG,IAC7CF,EAAM,UAAY,CAAE,gBAAiB,EAAY,GAGzD,MAAO,CACH,MAAAK,EACA,KAAAC,EACA,MAAAC,EACA,iBAAAC,EAEA,UAAAE,EACA,aAAAE,EACA,WAAAC,CACJ,CACJ,CACJ,CAAC","names":["withHeadless","useControlledState","defaultProps","useInplace","withHeadless","defaultProps","props","_a","activeState","setActiveState","useControlledState","state","open","close","onDisplayKeyDown","event","rootProps","__spreadValues","displayProps","closeProps"]}
|
|
File without changes
|
package/inputcolor/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/inputcolor/colorManager.ts","../../src/inputcolor/useInputColor.ts","../../src/inputcolor/useInputColor.props.ts"],"sourcesContent":["import type { Color2DAxes, Color3DAxes, ColorChannel, ColorChannelRange, ColorInputChannel, ColorInstance, ColorOutput, ColorSliderChannel, ColorSpace } from '@primereact/types/headless/inputcolor';\n\n// CONSTANTS\nconst RGB_MAX = 255;\n// Matches hsb(...) or hsba(...)\nconst HSB_REGEX = /hsb\\(([-+]?\\d+(?:.\\d+)?\\s*,\\s*[-+]?\\d+(?:.\\d+)?%\\s*,\\s*[-+]?\\d+(?:.\\d+)?%)\\)|hsba\\(([-+]?\\d+(?:.\\d+)?\\s*,\\s*[-+]?\\d+(?:.\\d+)?%\\s*,\\s*[-+]?\\d+(?:.\\d+)?%\\s*,\\s*[-+]?\\d(.\\d+)?)\\)/;\n// Matches hsl(...) or hsla(...)\nconst HSL_REGEX = /hsl\\(([-+]?\\d+(?:.\\d+)?\\s*,\\s*[-+]?\\d+(?:.\\d+)?%\\s*,\\s*[-+]?\\d+(?:.\\d+)?%)\\)|hsla\\(([-+]?\\d+(?:.\\d+)?\\s*,\\s*[-+]?\\d+(?:.\\d+)?%\\s*,\\s*[-+]?\\d+(?:.\\d+)?%\\s*,\\s*[-+]?\\d(.\\d+)?)\\)/;\n// Matches #rgb, #rgba, #rrggbb, #rrggbbaa (hash optional)\nconst HEX_REGEX = /^#?([a-fA-F0-9]{3,8})$/;\n// Matches rgb(...) or rgba(...)\nconst RGB_REGEX = /^rgba?\\(\\s*([^)]+)\\s*\\)$/;\n// Matches oklch(L C H / a)\nconst OKLCH_REGEX = /oklch\\(\\s*([\\d.]+)%?\\s+([\\d.]+)\\s+([\\d.]+)(deg)?(?:\\s*\\/\\s*([\\d.]+))?\\)/i;\n\n// UTILS\nfunction clamp(value: number, min: number, max: number) {\n return Math.min(Math.max(value, min), max);\n}\n\nexport const isEqual = (a: unknown, b: unknown) => JSON.stringify(a) === JSON.stringify(b);\n\nconst multiplyMatrices = (A: number[], B: number[]) => {\n return [A[0] * B[0] + A[1] * B[1] + A[2] * B[2], A[3] * B[0] + A[4] * B[1] + A[5] * B[2], A[6] * B[0] + A[7] * B[1] + A[8] * B[2]];\n};\n\n/**\n * Snaps a value to the nearest step increment within min/max bounds\n * @example snap(23.7, 0, 100, 5) => 25\n * @example snap(0.234, 0, 1, 0.01) => 0.23\n */\nfunction snap(value: number, min: number, max: number, step: number) {\n const clamped = clamp(value, min, max);\n\n const offset = clamped - min;\n const steps = Math.round(offset / step);\n\n const snapped = min + steps * step;\n\n const precision = (step.toString().split('.')[1] || '').length;\n\n return parseFloat(snapped.toFixed(precision));\n}\n\nabstract class Color {\n abstract clone(): ColorInstance;\n abstract toString(format: ColorOutput): string;\n abstract toFormat(format: ColorSpace): ColorInstance;\n abstract toJSON(): Record<string, number>;\n abstract getChannelRange(channel: ColorChannel): ColorChannelRange;\n abstract getFormat(): ColorSpace;\n abstract getChannels(): [ColorChannel, ColorChannel, ColorChannel];\n\n getChannelValue(channel: ColorChannel): number {\n if (channel in this) {\n return this[channel as keyof this] as number;\n }\n\n throw new Error(`Unknown color channel: ${channel}`);\n }\n\n withChannelValue(channel: ColorChannel, value: number): ColorInstance {\n const { min, max } = this.getChannelRange(channel);\n\n if (channel in this) {\n const cloned = this.clone();\n\n // @ts-expect-error - channel\n cloned[channel] = clamp(value, min, max);\n\n return cloned;\n }\n\n throw new Error(`Unknown color channel: ${channel}`);\n }\n\n getSpaceAxes(xyChannels: Color2DAxes): Color3DAxes {\n const { xChannel, yChannel } = xyChannels;\n\n if (xChannel === yChannel) {\n throw new Error('xChannel and yChannel cannot be the same');\n }\n\n const zChannel = this.getChannels().find((channel) => channel !== xChannel && channel !== yChannel);\n\n if (!zChannel) {\n throw new Error('zChannel not found');\n }\n\n return { xChannel, yChannel, zChannel };\n }\n\n incChannelValue(channel: ColorChannel, step: number): ColorInstance {\n const { min, max, step: availableStep } = this.getChannelRange(channel);\n\n const value = snap(clamp(this.getChannelValue(channel) + step, min, max), min, max, availableStep);\n\n return this.withChannelValue(channel, value);\n }\n\n decChannelValue(channel: ColorChannel, step: number): ColorInstance {\n return this.incChannelValue(channel, -step);\n }\n}\n\nexport class HSBColor extends Color {\n private hue: number;\n private saturation: number;\n private brightness: number;\n private alpha: number;\n\n constructor(hue: number, saturation: number, brightness: number, alpha: number) {\n super();\n this.hue = hue;\n this.saturation = saturation;\n this.brightness = brightness;\n this.alpha = alpha;\n }\n\n static parse(value: string): HSBColor | undefined {\n const match = value.match(HSB_REGEX);\n\n if (!match) return undefined;\n\n const [h, s, b, a] = (match[1] ?? match[2]).split(',').map((n) => Number(n.trim().replace('%', '')));\n\n return new HSBColor(h % 360, clamp(s, 0, 100), clamp(b, 0, 100), clamp(a ?? 1, 0, 1));\n }\n\n private toRGB(): RGBColor {\n const h = this.hue;\n const s = this.saturation / 100;\n const b = this.brightness / 100;\n\n function f(n: number) {\n const k = (n + h / 60) % 6;\n\n return b - b * s * Math.max(0, Math.min(k, 4 - k, 1));\n }\n\n return new RGBColor(Math.round(f(5) * RGB_MAX), Math.round(f(3) * RGB_MAX), Math.round(f(1) * RGB_MAX), Number(this.alpha.toFixed(2)));\n }\n\n private toHSL(): HSLColor {\n const h = this.hue;\n let s = this.saturation / 100;\n const b = this.brightness / 100;\n\n const l = b * (1 - s / 2);\n\n if (l === 0 || l === 1) {\n s = 0;\n } else {\n s = (b - l) / Math.min(l, 1 - l);\n }\n\n return new HSLColor(Number(h.toFixed(2)), Number((s * 100).toFixed(2)), Number((l * 100).toFixed(2)), Number(this.alpha.toFixed(2)));\n }\n\n toFormat(format: ColorSpace): ColorInstance {\n switch (format) {\n case 'hsba':\n return this;\n case 'rgba':\n return this.toRGB();\n case 'hsla':\n return this.toHSL();\n case 'oklcha':\n return this.toRGB().toFormat('oklcha');\n default:\n throw new Error(`Invalid format: ${format}`);\n }\n }\n\n toString(format: ColorOutput): string {\n switch (format) {\n case 'css':\n return this.toHSL().toString('css');\n case 'hex':\n return this.toRGB().toString('hex');\n case 'hexa':\n return this.toRGB().toString('hexa');\n case 'hsb':\n return `hsb(${this.hue}, ${this.saturation.toFixed(2)}%, ${this.brightness.toFixed(2)}%)`;\n case 'hsba':\n return `hsba(${this.hue}, ${this.saturation.toFixed(2)}%, ${this.brightness.toFixed(2)}%, ${this.alpha})`;\n case 'hsl':\n return this.toHSL().toString('hsl');\n case 'rgb':\n return this.toRGB().toString('rgb');\n case 'oklch':\n return this.toRGB().toFormat('oklcha').toString('oklch');\n default:\n return this.toFormat(format).toString(format);\n }\n }\n\n toJSON() {\n return {\n hue: this.hue,\n saturation: this.saturation,\n brightness: this.brightness,\n alpha: this.alpha\n };\n }\n\n clone(): ColorInstance {\n return new HSBColor(this.hue, this.saturation, this.brightness, this.alpha);\n }\n\n getChannelRange(channel: ColorChannel): ColorChannelRange {\n switch (channel) {\n case 'hue':\n return { min: 0, max: 360, step: 1 };\n case 'saturation':\n case 'brightness':\n return { min: 0, max: 100, step: 1 };\n case 'alpha':\n return { min: 0, max: 1, step: 0.01 };\n default:\n throw new Error(`Unknown color channel: ${channel}`);\n }\n }\n\n getFormat(): ColorSpace {\n return 'hsba';\n }\n\n getChannels(): [ColorChannel, ColorChannel, ColorChannel] {\n return ['hue', 'saturation', 'brightness'];\n }\n}\n\nexport class HSLColor extends Color {\n private hue: number;\n private saturation: number;\n private lightness: number;\n private alpha: number;\n\n constructor(hue: number, saturation: number, lightness: number, alpha: number) {\n super();\n this.hue = hue;\n this.saturation = saturation;\n this.lightness = lightness;\n this.alpha = alpha;\n }\n\n static parse(value: string): HSLColor | undefined {\n const match = value.match(HSL_REGEX);\n\n if (!match) return undefined;\n\n const [h, s, l, a] = (match[1] || match[2])?.split(',').map((n) => Number(n.trim().replace('%', ''))) ?? [];\n\n return new HSLColor(h % 360, clamp(s, 0, 100), clamp(l, 0, 100), clamp(a ?? 1, 0, 1));\n }\n\n private toRGB(): RGBColor {\n const h = this.hue;\n const s = this.saturation / 100;\n const l = this.lightness / 100;\n\n function f(n: number) {\n const k = (n + h / 30) % 12;\n const a = s * Math.min(l, 1 - l);\n\n return l - a * Math.max(-1, Math.min(k - 3, 9 - k, 1));\n }\n\n return new RGBColor(Math.round(f(0) * RGB_MAX), Math.round(f(8) * RGB_MAX), Math.round(f(4) * RGB_MAX), Number(this.alpha.toFixed(2)));\n }\n\n private toHSB(): HSBColor {\n const h = this.hue;\n let s = this.saturation / 100;\n const l = this.lightness / 100;\n\n const b = l + s * Math.min(l, 1 - l);\n\n if (b === 0) {\n s = 0;\n } else {\n s = 2 * (1 - l / b);\n }\n\n return new HSBColor(Number(h.toFixed(2)), Number((s * 100).toFixed(2)), Number((b * 100).toFixed(2)), Number(this.alpha.toFixed(2)));\n }\n\n toFormat(format: ColorSpace): ColorInstance {\n switch (format) {\n case 'hsla':\n return this;\n case 'rgba':\n return this.toRGB();\n case 'hsba':\n return this.toHSB();\n case 'oklcha':\n return this.toRGB().toFormat('oklcha');\n default:\n throw new Error(`Invalid format: ${format}`);\n }\n }\n\n toString(format: ColorOutput): string {\n switch (format) {\n case 'hex':\n return this.toRGB().toString('hex');\n case 'hexa':\n return this.toRGB().toString('hexa');\n case 'hsl':\n return `hsl(${this.hue}, ${this.saturation.toFixed(2)}%, ${this.lightness.toFixed(2)}%)`;\n case 'css':\n case 'hsla':\n return `hsla(${this.hue}, ${this.saturation.toFixed(2)}%, ${this.lightness.toFixed(2)}%, ${this.alpha})`;\n case 'rgb':\n return this.toRGB().toString('rgb');\n case 'hsb':\n return this.toHSB().toString('hsb');\n case 'oklch':\n return this.toRGB().toFormat('oklcha').toString('oklch');\n default:\n return this.toFormat(format).toString(format);\n }\n }\n\n toJSON(): Record<string, number> {\n return {\n hue: this.hue,\n saturation: this.saturation,\n lightness: this.lightness,\n alpha: this.alpha\n };\n }\n\n clone(): ColorInstance {\n return new HSLColor(this.hue, this.saturation, this.lightness, this.alpha);\n }\n\n getChannelRange(channel: ColorChannel): ColorChannelRange {\n switch (channel) {\n case 'hue':\n return { min: 0, max: 360, step: 1 };\n case 'saturation':\n case 'lightness':\n return { min: 0, max: 100, step: 1 };\n case 'alpha':\n return { min: 0, max: 1, step: 0.01 };\n default:\n throw new Error(`Unknown color channel: ${channel}`);\n }\n }\n\n getFormat(): ColorSpace {\n return 'hsla';\n }\n\n getChannels(): [ColorChannel, ColorChannel, ColorChannel] {\n return ['hue', 'saturation', 'lightness'];\n }\n}\n\nexport class RGBColor extends Color {\n private red: number;\n private green: number;\n private blue: number;\n private alpha: number;\n\n constructor(red: number, green: number, blue: number, alpha: number) {\n super();\n this.red = red;\n this.green = green;\n this.blue = blue;\n this.alpha = alpha;\n }\n\n static parse(value: string): RGBColor | undefined {\n if (!value) return undefined;\n\n const input = value.trim();\n\n return this.parseHexColor(input) ?? this.parseRgbFunction(input);\n }\n\n private static expandShortHex(hex: string) {\n return hex\n .split('')\n .map((c) => c + c)\n .join('');\n }\n\n private static parseHexColor(input: string): RGBColor | undefined {\n const match = input.match(HEX_REGEX);\n\n if (!match) return undefined;\n\n let hex = match[1];\n\n // Expand shorthand (#abc -> #aabbcc, #abcd -> #aabbccdd)\n if (hex.length <= 4) {\n hex = this.expandShortHex(hex);\n }\n\n if (![6, 8].includes(hex.length)) return undefined;\n\n const r = parseInt(hex.slice(0, 2), 16);\n const g = parseInt(hex.slice(2, 4), 16);\n const b = parseInt(hex.slice(4, 6), 16);\n const a = hex.length === 8 ? parseInt(hex.slice(6, 8), 16) / RGB_MAX : 1;\n\n return new RGBColor(r, g, b, a);\n }\n\n private static parseRgbFunction(input: string): RGBColor | undefined {\n const match = input.match(RGB_REGEX);\n\n if (!match?.[1]) return undefined;\n\n const [rStr, gStr, bStr, aStr] = match[1].split(',').map((v) => v.trim());\n\n const r = clamp(Number(rStr), 0, RGB_MAX);\n const g = clamp(Number(gStr), 0, RGB_MAX);\n const b = clamp(Number(bStr), 0, RGB_MAX);\n const a = aStr !== undefined ? clamp(Number(aStr), 0, 1) : 1;\n\n if ([r, g, b, a].some((v) => Number.isNaN(v))) return undefined;\n\n return new RGBColor(r, g, b, a);\n }\n\n private toHSB(): HSBColor {\n const [r, g, b] = [this.red / RGB_MAX, this.green / RGB_MAX, this.blue / RGB_MAX];\n\n const mmax = Math.max(r, g, b);\n const mmin = Math.min(r, g, b);\n\n const chroma = mmax - mmin;\n const brightness = mmax;\n\n const saturation = mmax === 0 ? 0 : chroma / mmax;\n\n let hue = 0;\n\n if (chroma !== 0) {\n switch (mmax) {\n case r:\n hue = ((g - b) / chroma) % 6;\n break;\n case g:\n hue = (b - r) / chroma + 2;\n break;\n case b:\n hue = (r - g) / chroma + 4;\n break;\n }\n\n hue *= 60;\n\n if (hue < 0) {\n hue += 360;\n }\n }\n\n return new HSBColor(Number(hue.toFixed(2)), Number((saturation * 100).toFixed(2)), Number((brightness * 100).toFixed(2)), Number(this.alpha.toFixed(2)));\n }\n\n private toHSL(): HSLColor {\n const [r, g, b] = [this.red / RGB_MAX, this.green / RGB_MAX, this.blue / RGB_MAX];\n\n const mmax = Math.max(r, g, b);\n const mmin = Math.min(r, g, b);\n\n const lightness = (mmax + mmin) / 2;\n const chroma = mmax - mmin;\n\n let hue = 0;\n let saturation = -1;\n\n if (chroma !== 0) {\n switch (mmax) {\n case r:\n hue = ((g - b) / chroma) % 6;\n break;\n case g:\n hue = (b - r) / chroma + 2;\n break;\n case b:\n hue = (r - g) / chroma + 4;\n break;\n }\n\n hue *= 60;\n\n if (hue < 0) {\n hue += 360;\n }\n }\n\n if (lightness === 0 || lightness === 1) {\n saturation = 0;\n } else {\n saturation = chroma / (1 - Math.abs(2 * mmax - chroma - 1));\n }\n\n return new HSLColor(Number(hue.toFixed(2)), Number((saturation * 100).toFixed(2)), Number((lightness * 100).toFixed(2)), Number(this.alpha.toFixed(2)));\n }\n\n private toOKLCH(): OKLCHColor {\n const rgb = [this.red / RGB_MAX, this.green / RGB_MAX, this.blue / RGB_MAX];\n\n const rgbLinear = rgb.map((c) => (Math.abs(c) <= 0.04045 ? c / 12.92 : (c < 0 ? -1 : 1) * ((Math.abs(c) + 0.055) / 1.055) ** 2.4));\n\n const xyz = multiplyMatrices([0.41239079926595934, 0.357584339383878, 0.1804807884018343, 0.21263900587151027, 0.715168678767756, 0.07219231536073371, 0.01933081871559182, 0.11919477979462598, 0.9505321522496607], rgbLinear);\n\n const LMS = multiplyMatrices([0.819022437996703, 0.3619062600528904, -0.1288737815209879, 0.0329836539323885, 0.9292868615863434, 0.0361446663506424, 0.0481771893596242, 0.2642395317527308, 0.6335478284694309], xyz);\n\n const LMSg = LMS.map((val) => Math.cbrt(val));\n\n const [L, a, b] = multiplyMatrices([0.210454268309314, 0.7936177747023054, -0.0040720430116193, 1.9779985324311684, -2.4285922420485799, 0.450593709617411, 0.0259040424655478, 0.7827717124575296, -0.8086757549230774], LMSg);\n\n const C = Math.sqrt(a ** 2 + b ** 2);\n const H = Math.abs(a) < 0.0002 && Math.abs(b) < 0.0002 ? NaN : ((((Math.atan2(b, a) * 180) / Math.PI) % 360) + 360) % 360;\n\n const outL = Number(Math.min(1, Math.max(0, L)).toFixed(4));\n\n const outC = Number(C.toFixed(4));\n\n const outH = Number.isNaN(H) ? NaN : Number(H.toFixed(2));\n\n return new OKLCHColor(outL, outC, outH, Number(this.alpha.toFixed(2)));\n }\n\n toHexInt(): number {\n return (this.red << 16) | (this.green << 8) | this.blue;\n }\n\n toFormat(format: ColorSpace): ColorInstance {\n switch (format) {\n case 'rgba':\n return this;\n case 'hsla':\n return this.toHSL();\n case 'hsba':\n return this.toHSB();\n case 'oklcha':\n return this.toOKLCH();\n default:\n throw new Error(`Invalid format: ${format}`);\n }\n }\n\n toString(format: ColorOutput): string {\n switch (format) {\n case 'hex':\n return `#${this.red.toString(16).padStart(2, '0')}${this.green.toString(16).padStart(2, '0')}${this.blue.toString(16).padStart(2, '0')}`;\n case 'hexa':\n return `#${this.red.toString(16).padStart(2, '0')}${this.green.toString(16).padStart(2, '0')}${this.blue.toString(16).padStart(2, '0')}${Math.round(this.alpha * RGB_MAX)\n .toString(16)\n .padStart(2, '0')}`;\n case 'rgb':\n return `rgb(${this.red}, ${this.green}, ${this.blue})`;\n case 'rgba':\n case 'css':\n return `rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;\n case 'hsl':\n return this.toHSL().toString('hsl');\n case 'hsb':\n return this.toHSB().toString('hsb');\n case 'oklch':\n return this.toOKLCH().toString('oklch');\n default:\n return this.toFormat(format).toString(format);\n }\n }\n\n toJSON(): Record<string, number> {\n return {\n red: this.red,\n green: this.green,\n blue: this.blue,\n alpha: this.alpha\n };\n }\n\n clone(): ColorInstance {\n return new RGBColor(this.red, this.green, this.blue, this.alpha);\n }\n\n getChannelRange(channel: ColorChannel): ColorChannelRange {\n switch (channel) {\n case 'red':\n case 'green':\n case 'blue':\n return { min: 0, max: RGB_MAX, step: 1 };\n case 'alpha':\n return { min: 0, max: 1, step: 0.01 };\n default:\n throw new Error(`Unknown color channel: ${channel}`);\n }\n }\n\n getFormat(): ColorSpace {\n return 'rgba';\n }\n\n getChannels(): [ColorChannel, ColorChannel, ColorChannel] {\n return ['red', 'green', 'blue'];\n }\n}\n\nexport class OKLCHColor extends Color {\n private L: number; // 0–1\n private C: number; // ~0–0.4 typical usable range\n private H: number; // 0–360\n private alpha: number; // 0–1\n\n constructor(L: number, C: number, H: number, alpha: number) {\n super();\n this.L = L;\n this.C = C;\n this.H = H;\n this.alpha = alpha;\n }\n\n static parse(value: string): OKLCHColor | undefined {\n if (!value) return undefined;\n\n const m = value.trim().match(OKLCH_REGEX);\n\n if (!m) return;\n\n const l = Number(m[1]) / 100;\n const c = Number(m[2]);\n const h = Number(m[3]);\n const alpha = m[5] !== undefined ? Number(m[5]) : 1;\n\n return new OKLCHColor(l, c, h, alpha);\n }\n\n private toRGB(): RGBColor {\n const L = this.L;\n const a = Number.isNaN(this.H) ? 0 : this.C * Math.cos((this.H * Math.PI) / 180);\n const b = Number.isNaN(this.H) ? 0 : this.C * Math.sin((this.H * Math.PI) / 180);\n\n const LMSg = multiplyMatrices([1, 0.3963377774, 0.2158037573, 1, -0.1055613458, -0.0638541728, 1, -0.0894841775, -1.291485548], [L, a, b]);\n\n const LMS = LMSg.map((v) => v ** 3);\n\n const xyz = multiplyMatrices([1.2268798758, -0.5578149945, 0.2813910457, -0.0405757452, 1.1122868033, -0.0717110581, -0.0763729367, -0.4214933324, 1.5869240198], LMS);\n\n let [r, g, b2] = multiplyMatrices([3.240969942, -1.537383178, -0.49861076, -0.969243636, 1.875967502, 0.041555057, 0.05563008, -0.203976959, 1.056971514], xyz);\n\n [r, g, b2] = [r, g, b2].map((c) => (Math.abs(c) > 0.0031308 ? (c < 0 ? -1 : 1) * (1.055 * Math.abs(c) ** (1 / 2.4) - 0.055) : 12.92 * c));\n\n return new RGBColor(Math.round(clamp(r, 0, 1) * RGB_MAX), Math.round(clamp(g, 0, 1) * RGB_MAX), Math.round(clamp(b2, 0, 1) * RGB_MAX), Number(this.alpha.toFixed(2)));\n }\n\n toJSON(): Record<string, number> {\n return {\n L: this.L,\n C: this.C,\n H: this.H,\n alpha: this.alpha\n };\n }\n\n clone(): ColorInstance {\n return new OKLCHColor(this.L, this.C, this.H, this.alpha);\n }\n\n toFormat(format: ColorSpace): ColorInstance {\n switch (format) {\n case 'oklcha':\n return this;\n case 'rgba':\n return this.toRGB();\n case 'hsla':\n return this.toRGB().toFormat('hsla');\n case 'hsba':\n return this.toRGB().toFormat('hsba');\n default:\n throw new Error(`Invalid format: ${format}`);\n }\n }\n\n toString(format: ColorOutput): string {\n switch (format) {\n case 'hex':\n return this.toRGB().toString('hex');\n case 'hexa':\n return this.toRGB().toString('hexa');\n\n case 'oklch': {\n const l = Number.isNaN(this.L) ? 0 : Number((this.L * 100).toFixed(2));\n const c = Number.isNaN(this.C) ? 0 : Number(this.C.toFixed(4));\n const h = Number.isNaN(this.H) ? 0 : Number(this.H.toFixed(2));\n\n return `oklch(${l}% ${c} ${h})`;\n }\n\n case 'oklcha':\n\n case 'css': {\n const l = Number.isNaN(this.L) ? 0 : Number((this.L * 100).toFixed(2));\n const c = Number.isNaN(this.C) ? 0 : Number(this.C.toFixed(4));\n const h = Number.isNaN(this.H) ? 0 : Number(this.H.toFixed(2));\n const a = Number.isNaN(this.alpha) ? 1 : Number(this.alpha.toFixed(2));\n\n return `oklch(${l}% ${c} ${h} / ${a})`;\n }\n\n case 'hsl':\n return this.toRGB().toString('hsl');\n case 'hsb':\n return this.toRGB().toString('hsb');\n case 'rgb':\n return this.toRGB().toString('rgb');\n default:\n return this.toFormat(format).toString(format);\n }\n }\n\n getChannelRange(channel: ColorChannel): ColorChannelRange {\n switch (channel) {\n case 'L':\n return { min: 0, max: 1, step: 0.01 };\n case 'C':\n return { min: 0, max: 0.4, step: 0.01 };\n case 'H':\n return { min: 0, max: 360, step: 1 };\n case 'alpha':\n return { min: 0, max: 1, step: 0.01 };\n default:\n throw new Error(`Unknown color channel: ${channel}`);\n }\n }\n\n getFormat(): ColorSpace {\n return 'oklcha';\n }\n\n getChannels(): [ColorChannel, ColorChannel, ColorChannel] {\n return ['L', 'C', 'H'];\n }\n}\n\nexport const parseColor = (color: string): ColorInstance => {\n const parsedColor = RGBColor.parse(color) ?? HSLColor.parse(color) ?? HSBColor.parse(color) ?? undefined;\n\n if (!parsedColor) {\n throw new Error(`Invalid color: ${color}`);\n }\n\n return parsedColor;\n};\n\nexport function getChannelGradient(channel: ColorSliderChannel, value: ColorInstance, orientation: 'horizontal' | 'vertical') {\n const { min, max } = value.getChannelRange(channel);\n\n const direction = orientation === 'horizontal' ? 'right' : 'bottom';\n\n switch (channel) {\n case 'hue':\n return `linear-gradient(to ${direction}, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)`;\n\n case 'lightness': {\n const start = value.withChannelValue(channel, min).toString('css');\n const middle = value.withChannelValue(channel, (max - min) / 2).toString('css');\n const end = value.withChannelValue(channel, max).toString('css');\n\n return `linear-gradient(to ${direction}, ${start}, ${middle}, ${end})`;\n }\n\n case 'red':\n case 'green':\n case 'blue':\n case 'saturation':\n case 'brightness':\n\n case 'alpha': {\n const start = value.withChannelValue(channel, min).toString('css');\n const end = value.withChannelValue(channel, max).toString('css');\n\n return `linear-gradient(to ${direction}, ${start}, ${end})`;\n }\n\n default:\n throw new Error(`Unknown color channel: ${channel}`);\n }\n}\n\nexport function getChannelColor(color: ColorInstance, channel: ColorChannel) {\n switch (channel) {\n case 'hue':\n return parseColor(`hsl(${color.getChannelValue('hue')}, 100%, 50%)`);\n\n case 'red':\n case 'green':\n case 'blue':\n case 'lightness':\n case 'brightness':\n case 'saturation':\n return color.withChannelValue('alpha', 1);\n\n case 'alpha': {\n return color;\n }\n\n default:\n throw new Error(`Unknown color channel: ${channel}`);\n }\n}\n\nconst channelGenerators = {\n hue: (color: ColorInstance) => [0, 60, 120, 180, 240, 300, 360].map((h) => color.withChannelValue('hue', h).toString('css')).join(', '),\n\n saturation: (color: ColorInstance) => `${color.withChannelValue('saturation', 0).toString('css')}, transparent`,\n\n lightness: () => 'black, transparent, white',\n brightness: () => 'black, transparent'\n};\n\nexport function getAreaGradient(color: ColorInstance, axes: Color2DAxes) {\n const { xChannel, zChannel } = color.getSpaceAxes(axes);\n const zValue = color.getChannelValue(zChannel);\n const baseFormat = color.getFormat();\n\n const format = baseFormat === 'rgba' || baseFormat === 'oklcha' ? 'hsba' : baseFormat;\n\n const base = (format === 'hsla' ? parseColor('hsl(0, 100%, 50%)') : parseColor('hsb(0, 100%, 100%)')).withChannelValue(zChannel, zValue);\n\n const channels = color.getChannels();\n\n const direction = (c: string) => (c === xChannel ? 'right' : 'top');\n\n const layers = channels\n .filter((c) => c !== zChannel)\n .map((c) => `linear-gradient(to ${direction(c)}, ${channelGenerators[c as keyof typeof channelGenerators](base)})`)\n .reverse();\n\n if (zChannel === 'hue') {\n layers.push(base.toString('css'));\n }\n\n return {\n '--px-area-gradient': layers.join(', ')\n };\n}\n\nexport function getInputChannelValue(color: ColorInstance, channel: ColorInputChannel, format: ColorSpace = 'hsba') {\n const isHSL = color.getFormat() === 'hsla';\n\n switch (channel) {\n case 'hex': {\n if (color.getChannelValue('alpha') < color.getChannelRange('alpha').max) {\n return color.toString('hexa');\n }\n\n return color.toString('hex');\n }\n\n case 'css':\n return color.toFormat(format).toString('css');\n\n case 'red':\n case 'green':\n case 'blue':\n return color.toFormat('rgba').getChannelValue(channel).toString();\n\n case 'hue':\n return color\n .toFormat(isHSL ? 'hsla' : 'hsba')\n .getChannelValue('hue')\n .toString();\n\n case 'saturation':\n return color\n .toFormat(isHSL ? 'hsla' : 'hsba')\n .getChannelValue('saturation')\n .toString();\n\n case 'lightness':\n return color.toFormat('hsla').getChannelValue('lightness').toString();\n\n case 'brightness':\n return color.toFormat('hsba').getChannelValue('brightness').toString();\n\n case 'C':\n return color.toFormat('oklcha').getChannelValue('C').toString();\n case 'H':\n return color.toFormat('oklcha').getChannelValue('H').toString();\n case 'L':\n return color.toFormat('oklcha').getChannelValue('L').toString();\n default:\n return color.getChannelValue(channel).toString();\n }\n}\n\nexport function getInputChannelRange(color: ColorInstance, channel: ColorInputChannel = 'hex'): ColorChannelRange | undefined {\n switch (channel) {\n case 'hex': {\n return {\n min: (parseColor('#000000') as RGBColor).toHexInt(),\n max: (parseColor('#FFFFFF') as RGBColor).toHexInt(),\n step: 1\n };\n }\n\n case 'css':\n return undefined;\n\n case 'red':\n case 'green':\n case 'blue':\n return color.toFormat('rgba').getChannelRange(channel);\n\n case 'hue':\n case 'lightness':\n case 'saturation':\n return color.toFormat('hsla').getChannelRange(channel);\n\n case 'brightness':\n return color.toFormat('hsba').getChannelRange(channel);\n\n case 'L':\n case 'C':\n case 'H':\n return color.toFormat('oklcha').getChannelRange(channel);\n\n default:\n return color.getChannelRange(channel);\n }\n}\n","import { withHeadless } from '@primereact/core/headless';\nimport { useControlledState } from '@primereact/hooks/use-controlled-state';\nimport type { ColorInputChannel, ColorInstance, ColorSliderChannel } from '@primereact/types/headless/inputcolor';\nimport * as React from 'react';\nimport { getAreaGradient, getChannelColor, getChannelGradient, getInputChannelRange, getInputChannelValue, parseColor } from './colorManager';\nimport { defaultProps } from './useInputColor.props';\n\nconst HEX_REGEX = /^[0-9a-fA-F]{3,8}$/;\n\nfunction isValidHex(value: string) {\n return HEX_REGEX.test(value);\n}\n\nfunction prefixHex(value: string) {\n if (value.startsWith('#')) return value;\n\n if (isValidHex(value)) return `#${value}`;\n\n return value;\n}\n\nfunction flipVerticalGradient(gradient: string) {\n return gradient.replace('to bottom', 'to top');\n}\n\nexport const useInputColor = withHeadless({\n name: 'useInputColor',\n defaultProps,\n setup({ props }) {\n const { format = 'hsba', disabled } = props;\n const [isAreaDragging, setIsAreaDragging] = React.useState(false);\n const inputElRefs = React.useRef<HTMLInputElement[]>([]);\n const areaDragOffset = React.useRef({ x: 0, y: 0 });\n\n const defaultValueRef = React.useRef<ColorInstance | undefined>(props.defaultValue ?? parseColor('#ff0000').toFormat(props.format || 'hsba'));\n\n const [value, setValue] = useControlledState({\n value: props.value,\n defaultValue: defaultValueRef.current,\n onChange: props.onValueChange\n });\n\n const ensuredValue: ColorInstance = React.useMemo(() => {\n return ((value as ColorInstance | undefined) ?? parseColor('#ff0000').toFormat(format)) as ColorInstance;\n }, [value, format]);\n\n const areaFormat = format.startsWith('hsl') ? 'hsla' : 'hsba';\n const areaValue = React.useMemo(() => {\n return ensuredValue.toFormat(areaFormat);\n }, [ensuredValue, areaFormat]);\n\n const state = {\n value: ensuredValue,\n isAreaDragging\n };\n\n const commitColor = (nextColor: ColorInstance, options?: { originalEvent?: React.SyntheticEvent }) => {\n setValue([\n nextColor,\n {\n color: nextColor.toString(format),\n value: nextColor,\n ...(options?.originalEvent ? { originalEvent: options.originalEvent } : {})\n }\n ]);\n\n syncChannelInputs(nextColor);\n };\n\n const moveArea = (x: number, y: number, element: HTMLElement) => {\n if (!element || disabled) return;\n\n const rect = element.getBoundingClientRect();\n const nx = Math.max(0, Math.min(1, (x - areaDragOffset.current.x - rect.left) / rect.width));\n const ny = Math.max(0, Math.min(1, (y - areaDragOffset.current.y - rect.top) / rect.height));\n\n const { xChannel, yChannel } = getAreaChannels();\n\n const xRange = areaValue.getChannelRange(xChannel);\n const yRange = areaValue.getChannelRange(yChannel);\n\n const xValue = nx * (xRange.max - xRange.min) + xRange.min;\n const yValue = (1 - ny) * (yRange.max - yRange.min) + yRange.min;\n\n const xDelta = xValue - areaValue.getChannelValue(xChannel);\n const yDelta = yValue - areaValue.getChannelValue(yChannel);\n\n const newColor = areaValue.incChannelValue(xChannel, xDelta).incChannelValue(yChannel, yDelta);\n\n commitColor(newColor);\n };\n\n const handleAreaPointerDown = (event: React.PointerEvent<HTMLElement>) => {\n const element = event.currentTarget as HTMLElement;\n\n if (!element || event.button !== 0) return;\n\n const target = event.target as HTMLElement | null;\n const handle = target?.closest?.('[data-part=\"area-handle\"], .p-input-color-area-handle') as HTMLElement | null;\n\n if (handle) {\n const handleRect = handle.getBoundingClientRect();\n const handleCenterX = handleRect.left + handleRect.width / 2;\n const handleCenterY = handleRect.top + handleRect.height / 2;\n\n areaDragOffset.current = {\n x: event.clientX - handleCenterX,\n y: event.clientY - handleCenterY\n };\n } else {\n areaDragOffset.current = { x: 0, y: 0 };\n }\n\n element.setPointerCapture(event.pointerId);\n setIsAreaDragging(true);\n moveArea(event.clientX, event.clientY, element);\n };\n\n const handleAreaPointerMove = (event: React.PointerEvent<HTMLElement>) => {\n if (!isAreaDragging) return;\n\n moveArea(event.clientX, event.clientY, event.currentTarget as HTMLElement);\n };\n\n const handleAreaPointerUp = (event: React.PointerEvent<HTMLElement>) => {\n const element = event.currentTarget as HTMLElement;\n\n if (!element) return;\n\n element.releasePointerCapture(event.pointerId);\n setIsAreaDragging(false);\n areaDragOffset.current = { x: 0, y: 0 };\n\n if (props.onValueChangeEnd) {\n props.onValueChangeEnd({\n originalEvent: event,\n color: ensuredValue.toString(format),\n value: ensuredValue\n });\n }\n };\n\n const handleAreaBlur = (event: React.FocusEvent<HTMLElement>) => {\n if (!props.onValueChangeEnd) return;\n\n props.onValueChangeEnd({\n originalEvent: event,\n color: ensuredValue.toString(format),\n value: ensuredValue\n });\n };\n\n const handleAreaKeyDown = (event: React.KeyboardEvent<HTMLElement>) => {\n if (disabled) return;\n\n const key = event.key;\n\n if (!['ArrowRight', 'ArrowLeft', 'ArrowUp', 'ArrowDown'].includes(key)) return;\n\n event.preventDefault();\n\n const { xChannel, yChannel } = getAreaChannels();\n const { step: stepX } = areaValue.getChannelRange(xChannel);\n const { step: stepY } = areaValue.getChannelRange(yChannel);\n\n let next = areaValue;\n\n if (key === 'ArrowRight') next = next.incChannelValue(xChannel, stepX);\n\n if (key === 'ArrowLeft') next = next.decChannelValue(xChannel, stepX);\n\n if (key === 'ArrowUp') next = next.incChannelValue(yChannel, stepY);\n\n if (key === 'ArrowDown') next = next.decChannelValue(yChannel, stepY);\n\n commitColor(next);\n\n if (props.onValueChangeEnd) {\n props.onValueChangeEnd({\n originalEvent: event,\n color: next.toString(format),\n value: next\n });\n }\n };\n\n const getAreaChannels = () => {\n const channels = areaValue.getChannels();\n\n return {\n xChannel: channels[1],\n yChannel: channels[2]\n };\n };\n\n const openEyeDropper = () => {\n // @ts-expect-error - EyeDropper is not supported by some browsers\n if ((typeof window !== 'undefined' && !window.EyeDropper) || disabled) return;\n\n const eyeDropper = new (window as Window & typeof globalThis & { EyeDropper: new () => { open: () => Promise<{ sRGBHex: string }> } }).EyeDropper();\n\n eyeDropper\n .open()\n .then((result: { sRGBHex: string }) => {\n const newColor = parseColor(result.sRGBHex);\n\n commitColor(newColor);\n })\n .catch((e: Error) => {\n // User cancelled the eyedropper\n // eslint-disable-next-line no-console\n console.error('Error opening eyedropper', e);\n });\n };\n\n const areaChannels = getAreaChannels();\n const { min: minX, max: maxX } = areaValue.getChannelRange(areaChannels.xChannel);\n const { min: minY, max: maxY } = areaValue.getChannelRange(areaChannels.yChannel);\n const xValue = areaValue.getChannelValue(areaChannels.xChannel);\n const yValue = areaValue.getChannelValue(areaChannels.yChannel);\n\n const areaStyles = {\n ...getAreaGradient(areaValue, areaChannels),\n '--px-handle-background': areaValue.withChannelValue('alpha', 1).toString('css'),\n '--px-handle-position-left': ((xValue - minX) / (maxX - minX)) * 100 + '%',\n '--px-handle-position-top': (1 - (yValue - minY) / (maxY - minY)) * 100 + '%'\n } as React.CSSProperties;\n\n const swatchStyles = {\n '--px-swatch-background': ensuredValue.toString('css')\n } as React.CSSProperties;\n\n const getSliderProps = ({\n channel = 'hue',\n orientation = 'horizontal',\n disabled: sliderDisabled\n }: {\n channel?: ColorSliderChannel;\n orientation?: 'horizontal' | 'vertical';\n disabled?: boolean;\n } = {}) => {\n const isDisabled = disabled || sliderDisabled;\n const workingValue = channel === 'alpha' ? areaValue : ensuredValue.getChannels().includes(channel) ? ensuredValue : areaValue.getChannels().includes(channel) ? areaValue : ensuredValue.toFormat(format);\n\n const channelRange = workingValue.getChannelRange(channel);\n const channelValue = workingValue.getChannelValue(channel);\n\n const baseGradient = getChannelGradient(channel, workingValue, orientation);\n const sliderBackground = orientation === 'vertical' ? flipVerticalGradient(baseGradient) : baseGradient;\n\n const sliderStyle = {\n '--px-slider-background': sliderBackground,\n '--px-slider-handle-background': getChannelColor(workingValue, channel).toString('css')\n } as React.CSSProperties;\n\n const onValueChange = (event: { originalEvent: React.SyntheticEvent; value: number | number[] | undefined }) => {\n if (isDisabled) return;\n\n const nextValue = Array.isArray(event.value) ? event.value[0] : event.value;\n\n if (nextValue === undefined || Number.isNaN(nextValue)) return;\n\n const nextColor = workingValue.withChannelValue(channel, nextValue);\n\n commitColor(nextColor, { originalEvent: event.originalEvent });\n };\n\n const onValueChangeEnd = (event: { originalEvent: React.SyntheticEvent; value: number | number[] | undefined }) => {\n if (isDisabled || !props.onValueChangeEnd) return;\n\n const nextValue = Array.isArray(event.value) ? event.value[0] : event.value;\n\n if (nextValue === undefined || Number.isNaN(nextValue)) return;\n\n const nextColor = workingValue.withChannelValue(channel, nextValue);\n\n props.onValueChangeEnd({\n originalEvent: event.originalEvent,\n color: nextColor.toString(format),\n value: nextColor\n });\n };\n\n return {\n 'data-scope': 'inputcolor' as const,\n 'data-part': 'slider' as const,\n 'data-orientation': orientation,\n 'data-channel': channel,\n orientation,\n style: sliderStyle,\n value: channelValue,\n min: channelRange.min,\n max: channelRange.max,\n step: channelRange.step,\n disabled: isDisabled,\n onValueChange,\n onValueChangeEnd\n };\n };\n\n const registerInputEl = (el: { elementRef: React.RefObject<HTMLInputElement> }) => {\n const element = el.elementRef.current;\n\n if (inputElRefs.current.includes(element)) return;\n\n inputElRefs.current.push(element);\n };\n\n const syncChannelInputs = (color?: ColorInstance) => {\n requestAnimationFrame(() => {\n const base = color || ensuredValue;\n\n const channelInputs = inputElRefs.current;\n\n channelInputs.forEach((input) => {\n const channel = input.getAttribute('data-channel');\n\n if (channel) {\n const channelValue = getInputChannelValue(base, channel as ColorInputChannel, format);\n\n input.value = String(channelValue);\n }\n });\n });\n };\n\n React.useEffect(() => {\n syncChannelInputs();\n }, [ensuredValue, format]);\n\n // prop getters\n\n const getInputProps = ({\n channel = 'hex',\n disabled: inputDisabled\n }: {\n channel?: ColorInputChannel;\n disabled?: boolean;\n } = {}) => {\n const isDisabled = disabled || inputDisabled;\n const colorValue = ensuredValue as ColorInstance;\n const colorFormat = format;\n const channelRange = getInputChannelRange(colorValue, channel);\n const channelValue = getInputChannelValue(colorValue, channel, colorFormat);\n const isCssChannel = channel === 'hex' || channel === 'css';\n\n const changeValue = (value: string | number) => {\n if (isDisabled) return undefined;\n\n let newColor: ColorInstance;\n\n if (isCssChannel) {\n try {\n newColor = parseColor(channel === 'hex' ? prefixHex(String(value)) : String(value));\n } catch {\n newColor = colorValue;\n }\n } else {\n let current = colorValue;\n\n if (channel !== 'alpha') {\n current = current.toFormat(colorFormat);\n }\n\n const parsed = Number.parseFloat(String(value));\n const valueAsNumber = Number.isNaN(parsed) ? current.getChannelValue(channel) : parsed;\n\n newColor = current.withChannelValue(channel, valueAsNumber);\n }\n\n commitColor(newColor);\n\n return newColor;\n };\n\n const commitInputValue = (event: React.FocusEvent<HTMLInputElement> | React.KeyboardEvent<HTMLInputElement>) => {\n const currentTarget = event.currentTarget as HTMLInputElement;\n const value = isCssChannel ? currentTarget.value : currentTarget.valueAsNumber;\n const nextColor = changeValue(value);\n\n if (!nextColor || !props.onValueChangeEnd) return;\n\n props.onValueChangeEnd({\n originalEvent: event,\n color: nextColor.toString(format),\n value: nextColor\n });\n };\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n const currentTarget = event.currentTarget as HTMLInputElement;\n const value = isCssChannel ? currentTarget.value : currentTarget.valueAsNumber;\n\n changeValue(value);\n };\n\n const handleBlur = (event: React.FocusEvent<HTMLInputElement>) => {\n commitInputValue(event);\n };\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (event.defaultPrevented) return;\n\n if (event.key === 'Enter') {\n commitInputValue(event);\n event.preventDefault();\n }\n };\n\n return {\n 'data-scope': 'inputcolor' as const,\n 'data-part': 'input' as const,\n type: (isCssChannel ? 'text' : 'number') as 'text' | 'number',\n spellCheck: false as const,\n autoComplete: 'off' as const,\n disabled: !!isDisabled,\n 'data-channel': channel,\n 'aria-label': channel,\n min: channelRange?.min,\n max: channelRange?.max,\n step: channelRange?.step,\n channelValue,\n onChange: handleChange,\n onBlur: handleBlur,\n onKeyDown: handleKeyDown\n };\n };\n\n const rootProps = {\n 'data-scope': 'inputcolor' as const,\n 'data-part': 'root' as const,\n ...(disabled && { 'data-disabled': '' as const }),\n ...(isAreaDragging && { 'data-dragging': '' as const })\n };\n\n const areaProps = {\n 'data-scope': 'inputcolor' as const,\n 'data-part': 'area' as const,\n style: areaStyles,\n onPointerDown: handleAreaPointerDown,\n onPointerMove: handleAreaPointerMove,\n onPointerUp: handleAreaPointerUp\n };\n\n const areaHandleProps = {\n 'data-scope': 'inputcolor' as const,\n 'data-part': 'area-handle' as const,\n role: 'slider' as const,\n tabIndex: disabled ? -1 : 0,\n 'aria-disabled': disabled,\n 'aria-valuemin': 0,\n 'aria-valuemax': 100,\n 'aria-valuenow': areaValue.getChannelValue(areaChannels.xChannel),\n 'aria-label': `${areaChannels.xChannel} and ${areaChannels.yChannel}`,\n 'aria-roledescription': '2d slider',\n 'aria-valuetext': `${areaChannels.xChannel} ${areaValue.getChannelValue(areaChannels.xChannel)}, ${areaChannels.yChannel} ${areaValue.getChannelValue(areaChannels.yChannel)}`,\n onKeyDown: handleAreaKeyDown,\n onBlur: handleAreaBlur\n };\n\n const swatchProps = {\n 'data-scope': 'inputcolor' as const,\n 'data-part': 'swatch' as const,\n style: swatchStyles\n };\n\n const eyeDropperProps = {\n 'data-scope': 'inputcolor' as const,\n 'data-part': 'eye-dropper' as const,\n disabled: !!disabled,\n onClick: openEyeDropper\n };\n\n const sliderHandleProps = {\n 'data-scope': 'inputcolor' as const,\n 'data-part': 'slider-handle' as const,\n role: 'slider' as const,\n tabIndex: disabled ? -1 : 0,\n 'aria-disabled': disabled\n };\n\n return {\n state,\n value,\n areaValue,\n areaChannels,\n // prop getters\n rootProps,\n areaProps,\n areaHandleProps,\n swatchProps,\n eyeDropperProps,\n sliderHandleProps,\n getInputProps,\n getSliderProps,\n // methods\n setValue,\n handleAreaPointerDown,\n handleAreaPointerMove,\n handleAreaPointerUp,\n handleAreaBlur,\n handleAreaKeyDown,\n areaStyles,\n swatchStyles,\n openEyeDropper,\n syncChannelInputs,\n registerInputEl\n };\n }\n});\n","import type { UseInputColorProps } from '@primereact/types/headless/inputcolor';\n\nexport const defaultProps: UseInputColorProps = {\n defaultValue: undefined,\n value: undefined,\n format: 'hsba',\n disabled: false,\n onValueChange: undefined,\n onValueChangeEnd: undefined\n};\n"],"mappings":"8bAKA,IAAMA,GAAY,kLAEZC,GAAY,kLAEZC,GAAY,yBAEZC,GAAY,2BAEZC,GAAc,2EAGpB,SAASC,EAAMC,EAAeC,EAAaC,EAAa,CACpD,OAAO,KAAK,IAAI,KAAK,IAAIF,EAAOC,CAAG,EAAGC,CAAG,CAC7C,CAEO,IAAMC,GAAU,CAACC,EAAYC,IAAe,KAAK,UAAUD,CAAC,IAAM,KAAK,UAAUC,CAAC,EAEnFC,EAAmB,CAACC,EAAaC,IAC5B,CAACD,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAGD,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAGD,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAIC,EAAE,CAAC,CAAC,EAQrI,SAASC,GAAKT,EAAeC,EAAaC,EAAaQ,EAAc,CAGjE,I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iBW,EAAU,gBAAgB2C,EAAa,QAAQ,EAChE,aAAc,GAAGA,EAAa,QAAQ,QAAQA,EAAa,QAAQ,GACnE,uBAAwB,YACxB,iBAAkB,GAAGA,EAAa,QAAQ,IAAI3C,EAAU,gBAAgB2C,EAAa,QAAQ,CAAC,KAAKA,EAAa,QAAQ,IAAI3C,EAAU,gBAAgB2C,EAAa,QAAQ,CAAC,GAC5K,UAAWT,EACX,OAAQD,CACZ,EAuBA,MAAO,CACH,MAAAhC,EACA,MAAAtB,EACA,UAAAqB,EACA,aAAA2C,EAEA,UAAA6C,GACA,UAAAC,GACA,gBAAAC,GACA,YA9BgB,CAChB,aAAc,aACd,YAAa,SACb,MAAOvC,EACX,EA2BI,gBAzBoB,CACpB,aAAc,aACd,YAAa,cACb,SAAU,CAAC,CAAC9D,EACZ,QAASmD,CACb,EAqBI,kBAnBsB,CACtB,aAAc,aACd,YAAa,gBACb,KAAM,SACN,SAAUnD,EAAW,GAAK,EAC1B,gBAAiBA,CACrB,EAcI,cAAAoF,GACA,eAAArB,GAEA,SAAAxD,EACA,sBAAA4B,EACA,sBAAAO,EACA,oBAAAC,EACA,eAAAC,EACA,kBAAAC,EACA,WAAAc,GACA,aAAAG,GACA,eAAAX,EACA,kBAAAlC,EACA,gBAAA6D,EACJ,CACJ,CACJ,CAAC","names":["HSB_REGEX","HSL_REGEX","HEX_REGEX","RGB_REGEX","OKLCH_REGEX","clamp","value","min","max","isEqual","a","b","multiplyMatrices","A","B","snap","step","offset","steps","snapped","precision","Color","channel","cloned","xyChannels","xChannel","yChannel","zChannel","availableStep","HSBColor","_HSBColor","hue","saturation","brightness","alpha","_a","match","h","s","n","f","k","RGBColor","l","HSLColor","format","_HSLColor","lightness","_b","_RGBColor","red","green","blue","input","hex","c","r","g","rStr","gStr","bStr","aStr","v","mmax","mmin","chroma","rgbLinear","xyz","LMSg","val","L","C","H","outL","outC","outH","OKLCHColor","_OKLCHColor","m","LMS","b2","parseColor","color","_c","parsedColor","getChannelGradient","orientation","direction","start","middle","end","getChannelColor","channelGenerators","getAreaGradient","axes","zValue","baseFormat","base","channels","layers","getInputChannelValue","isHSL","getInputChannelRange","withHeadless","useControlledState","React","defaultProps","HEX_REGEX","isValidHex","value","prefixHex","flipVerticalGradient","gradient","useInputColor","withHeadless","defaultProps","props","_a","format","disabled","isAreaDragging","setIsAreaDragging","inputElRefs","areaDragOffset","defaultValueRef","parseColor","setValue","useControlledState","ensuredValue","areaFormat","areaValue","state","commitColor","nextColor","options","__spreadValues","syncChannelInputs","moveArea","x","y","element","rect","nx","ny","xChannel","yChannel","getAreaChannels","xRange","yRange","xValue","yValue","xDelta","yDelta","newColor","handleAreaPointerDown","event","target","handle","handleRect","handleCenterX","handleCenterY","handleAreaPointerMove","handleAreaPointerUp","handleAreaBlur","handleAreaKeyDown","key","stepX","stepY","next","channels","openEyeDropper","result","e","areaChannels","minX","maxX","minY","maxY","areaStyles","__spreadProps","getAreaGradient","swatchStyles","getSliderProps","channel","orientation","sliderDisabled","isDisabled","workingValue","channelRange","channelValue","baseGradient","getChannelGradient","sliderStyle","getChannelColor","onValueChange","nextValue","onValueChangeEnd","registerInputEl","el","color","base","input","getInputChannelValue","getInputProps","inputDisabled","colorValue","colorFormat","getInputChannelRange","isCssChannel","changeValue","current","parsed","valueAsNumber","commitInputValue","currentTarget","handleChange","handleBlur","handleKeyDown","rootProps","areaProps","areaHandleProps"]}
|
|
File without changes
|
package/inputgroup/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/inputgroup/useInputGroup.ts","../../src/inputgroup/useInputGroup.props.ts"],"sourcesContent":["import { withHeadless } from '@primereact/core/headless';\nimport { defaultProps } from './useInputGroup.props';\n\nexport const useInputGroup = withHeadless({\n name: 'useInputGroup',\n defaultProps,\n setup() {\n // prop getters\n const rootProps = {\n 'data-scope': 'inputgroup',\n 'data-part': 'root'\n };\n\n return {\n rootProps\n };\n }\n});\n","import type { UseInputGroupProps } from '@primereact/types/headless/inputgroup';\n\nexport const defaultProps: UseInputGroupProps = {};\n"],"mappings":"AAAA,OAAS,gBAAAA,MAAoB,4BCEtB,IAAMC,EAAmC,CAAC,EDC1C,IAAMC,EAAgBC,EAAa,CACtC,KAAM,gBACN,aAAAC,EACA,OAAQ,CAOJ,MAAO,CACH,UANc,CACd,aAAc,aACd,YAAa,MACjB,CAIA,CACJ,CACJ,CAAC","names":["withHeadless","defaultProps","useInputGroup","withHeadless","defaultProps"]}
|
|
File without changes
|