@dxos/react-ui 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/chunk-parse-stack.mjs +1566 -0
- package/dist/lib/chunk-parse-stack.mjs.map +1 -0
- package/dist/lib/index.mjs +5220 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/lib/testing.mjs +144 -0
- package/dist/lib/testing.mjs.map +1 -0
- package/dist/lib/translations.mjs +38 -0
- package/dist/lib/translations.mjs.map +1 -0
- package/dist/types/src/components/Avatars/Avatar.d.ts +1 -6
- package/dist/types/src/components/Avatars/Avatar.d.ts.map +1 -1
- package/dist/types/src/components/Avatars/AvatarContext.d.ts +9 -0
- package/dist/types/src/components/Avatars/AvatarContext.d.ts.map +1 -0
- package/dist/types/src/components/Avatars/index.d.ts +1 -0
- package/dist/types/src/components/Avatars/index.d.ts.map +1 -1
- package/dist/types/src/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/types/src/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts.map +1 -1
- package/dist/types/src/components/Breadcrumb/Breadcrumb.theme.d.ts.map +1 -1
- package/dist/types/src/components/Button/Button.d.ts +1 -6
- package/dist/types/src/components/Button/Button.d.ts.map +1 -1
- package/dist/types/src/components/Button/ButtonGroupContext.d.ts +9 -0
- package/dist/types/src/components/Button/ButtonGroupContext.d.ts.map +1 -0
- package/dist/types/src/components/Button/IconButton.d.ts.map +1 -1
- package/dist/types/src/components/Button/IconButton.stories.d.ts.map +1 -1
- package/dist/types/src/components/Button/IconButton.theme.d.ts +1 -0
- package/dist/types/src/components/Button/IconButton.theme.d.ts.map +1 -1
- package/dist/types/src/components/Button/SystemIconButton.d.ts +1 -1
- package/dist/types/src/components/Button/SystemIconButton.d.ts.map +1 -1
- package/dist/types/src/components/Button/index.d.ts +1 -0
- package/dist/types/src/components/Button/index.d.ts.map +1 -1
- package/dist/types/src/components/Calendar/Calendar.d.ts +0 -2
- package/dist/types/src/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/types/src/components/Calendar/index.d.ts +1 -0
- package/dist/types/src/components/Calendar/index.d.ts.map +1 -1
- package/dist/types/src/components/Calendar/parse-calendar-date.d.ts +3 -0
- package/dist/types/src/components/Calendar/parse-calendar-date.d.ts.map +1 -0
- package/dist/types/src/components/Card/Card.d.ts +42 -15
- package/dist/types/src/components/Card/Card.d.ts.map +1 -1
- package/dist/types/src/components/Card/Card.theme.d.ts +0 -1
- package/dist/types/src/components/Card/Card.theme.d.ts.map +1 -1
- package/dist/types/src/components/Carousel/Carousel.d.ts +2 -4
- package/dist/types/src/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/types/src/components/Carousel/CarouselContext.d.ts +8 -0
- package/dist/types/src/components/Carousel/CarouselContext.d.ts.map +1 -0
- package/dist/types/src/components/Carousel/index.d.ts +1 -0
- package/dist/types/src/components/Carousel/index.d.ts.map +1 -1
- package/dist/types/src/components/Clipboard/ClipboardContext.d.ts +7 -0
- package/dist/types/src/components/Clipboard/ClipboardContext.d.ts.map +1 -0
- package/dist/types/src/components/Clipboard/ClipboardProvider.d.ts +0 -6
- package/dist/types/src/components/Clipboard/ClipboardProvider.d.ts.map +1 -1
- package/dist/types/src/components/Clipboard/index.d.ts +1 -1
- package/dist/types/src/components/Clipboard/index.d.ts.map +1 -1
- package/dist/types/src/components/Column/Column.d.ts +7 -12
- package/dist/types/src/components/Column/Column.d.ts.map +1 -1
- package/dist/types/src/components/Column/Column.stories.d.ts +2 -2
- package/dist/types/src/components/Column/Column.theme.d.ts +0 -1
- package/dist/types/src/components/Column/Column.theme.d.ts.map +1 -1
- package/dist/types/src/components/Column/ColumnContext.d.ts +9 -0
- package/dist/types/src/components/Column/ColumnContext.d.ts.map +1 -0
- package/dist/types/src/components/Column/index.d.ts +1 -0
- package/dist/types/src/components/Column/index.d.ts.map +1 -1
- package/dist/types/src/components/Column/withColumn.d.ts +40 -4
- package/dist/types/src/components/Column/withColumn.d.ts.map +1 -1
- package/dist/types/src/components/DatePicker/DatePicker.d.ts +0 -10
- package/dist/types/src/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/types/src/components/DatePicker/DatePickerContext.d.ts +13 -0
- package/dist/types/src/components/DatePicker/DatePickerContext.d.ts.map +1 -0
- package/dist/types/src/components/DatePicker/index.d.ts +1 -0
- package/dist/types/src/components/DatePicker/index.d.ts.map +1 -1
- package/dist/types/src/components/Dialog/AlertDialog.d.ts +3 -3
- package/dist/types/src/components/Dialog/Dialog.d.ts +3 -3
- package/dist/types/src/components/ErrorFallback/ErrorStack.d.ts +5 -10
- package/dist/types/src/components/ErrorFallback/ErrorStack.d.ts.map +1 -1
- package/dist/types/src/components/ErrorFallback/index.d.ts +1 -0
- package/dist/types/src/components/ErrorFallback/index.d.ts.map +1 -1
- package/dist/types/src/components/ErrorFallback/parse-stack.d.ts +8 -0
- package/dist/types/src/components/ErrorFallback/parse-stack.d.ts.map +1 -0
- package/dist/types/src/components/Focus/Focus.d.ts +2 -10
- package/dist/types/src/components/Focus/Focus.d.ts.map +1 -1
- package/dist/types/src/components/Focus/FocusContext.d.ts +10 -0
- package/dist/types/src/components/Focus/FocusContext.d.ts.map +1 -0
- package/dist/types/src/components/Focus/index.d.ts +1 -0
- package/dist/types/src/components/Focus/index.d.ts.map +1 -1
- package/dist/types/src/components/Input/Input.d.ts +9 -10
- package/dist/types/src/components/Input/Input.d.ts.map +1 -1
- package/dist/types/src/components/Input/Input.stories.d.ts +7 -2
- package/dist/types/src/components/Input/Input.stories.d.ts.map +1 -1
- package/dist/types/src/components/Input/Input.theme.d.ts +13 -0
- package/dist/types/src/components/Input/Input.theme.d.ts.map +1 -1
- package/dist/types/src/components/Input/InputTriggerContext.d.ts +15 -0
- package/dist/types/src/components/Input/InputTriggerContext.d.ts.map +1 -0
- package/dist/types/src/components/Input/SegmentedInput.d.ts.map +1 -1
- package/dist/types/src/components/Input/index.d.ts +1 -0
- package/dist/types/src/components/Input/index.d.ts.map +1 -1
- package/dist/types/src/components/Main/Main.d.ts +2 -35
- package/dist/types/src/components/Main/Main.d.ts.map +1 -1
- package/dist/types/src/components/Main/Main.stories.d.ts.map +1 -1
- package/dist/types/src/components/Main/Main.theme.d.ts.map +1 -1
- package/dist/types/src/components/Main/MainContext.d.ts +38 -0
- package/dist/types/src/components/Main/MainContext.d.ts.map +1 -0
- package/dist/types/src/components/Main/index.d.ts +1 -0
- package/dist/types/src/components/Main/index.d.ts.map +1 -1
- package/dist/types/src/components/MediaPlayer/MediaPlayer.d.ts +1 -17
- package/dist/types/src/components/MediaPlayer/MediaPlayer.d.ts.map +1 -1
- package/dist/types/src/components/MediaPlayer/index.d.ts +1 -0
- package/dist/types/src/components/MediaPlayer/index.d.ts.map +1 -1
- package/dist/types/src/components/MediaPlayer/media-kind.d.ts +18 -0
- package/dist/types/src/components/MediaPlayer/media-kind.d.ts.map +1 -0
- package/dist/types/src/components/Menu/DropdownMenu.d.ts +6 -22
- package/dist/types/src/components/Menu/DropdownMenu.d.ts.map +1 -1
- package/dist/types/src/components/Menu/DropdownMenu.stories.d.ts +1 -11
- package/dist/types/src/components/Menu/DropdownMenu.stories.d.ts.map +1 -1
- package/dist/types/src/components/Menu/DropdownMenuContext.d.ts +27 -0
- package/dist/types/src/components/Menu/DropdownMenuContext.d.ts.map +1 -0
- package/dist/types/src/components/Menu/index.d.ts +1 -0
- package/dist/types/src/components/Menu/index.d.ts.map +1 -1
- package/dist/types/src/components/Message/Message.d.ts +11 -6
- package/dist/types/src/components/Message/Message.d.ts.map +1 -1
- package/dist/types/src/components/Message/Message.stories.d.ts +4 -1
- package/dist/types/src/components/Message/Message.stories.d.ts.map +1 -1
- package/dist/types/src/components/Message/Message.theme.d.ts.map +1 -1
- package/dist/types/src/components/Message/index.d.ts +1 -0
- package/dist/types/src/components/Message/index.d.ts.map +1 -1
- package/dist/types/src/components/Message/message-icons.d.ts +3 -0
- package/dist/types/src/components/Message/message-icons.d.ts.map +1 -0
- package/dist/types/src/components/Panel/Panel.d.ts +4 -4
- package/dist/types/src/components/Panel/Panel.stories.d.ts.map +1 -1
- package/dist/types/src/components/Panel/Panel.theme.d.ts +1 -1
- package/dist/types/src/components/Panel/Panel.theme.d.ts.map +1 -1
- package/dist/types/src/components/Popover/Popover.d.ts +6 -10
- package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
- package/dist/types/src/components/Popover/PopoverContext.d.ts +29 -0
- package/dist/types/src/components/Popover/PopoverContext.d.ts.map +1 -0
- package/dist/types/src/components/Popover/index.d.ts +1 -0
- package/dist/types/src/components/Popover/index.d.ts.map +1 -1
- package/dist/types/src/components/ScrollArea/ScrollArea.d.ts +2 -2
- package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts +2 -2
- package/dist/types/src/components/ScrollContainer/ScrollContainer.d.ts +3 -16
- package/dist/types/src/components/ScrollContainer/ScrollContainer.d.ts.map +1 -1
- package/dist/types/src/components/ScrollContainer/ScrollContainerContext.d.ts +16 -0
- package/dist/types/src/components/ScrollContainer/ScrollContainerContext.d.ts.map +1 -0
- package/dist/types/src/components/ScrollContainer/index.d.ts +1 -0
- package/dist/types/src/components/ScrollContainer/index.d.ts.map +1 -1
- package/dist/types/src/components/Slider/Slider.d.ts +25 -0
- package/dist/types/src/components/Slider/Slider.d.ts.map +1 -0
- package/dist/types/src/components/Slider/Slider.stories.d.ts +29 -0
- package/dist/types/src/components/Slider/Slider.stories.d.ts.map +1 -0
- package/dist/types/src/components/Slider/Slider.test.d.ts +2 -0
- package/dist/types/src/components/Slider/Slider.test.d.ts.map +1 -0
- package/dist/types/src/components/Slider/Slider.theme.d.ts +7 -0
- package/dist/types/src/components/Slider/Slider.theme.d.ts.map +1 -0
- package/dist/types/src/components/Slider/index.d.ts +2 -0
- package/dist/types/src/components/Slider/index.d.ts.map +1 -0
- package/dist/types/src/components/Splitter/Splitter.d.ts +3 -3
- package/dist/types/src/components/Status/Status.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +4 -2
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.theme.d.ts.map +1 -1
- package/dist/types/src/components/Tooltip/TextTooltip.d.ts.map +1 -1
- package/dist/types/src/components/Tooltip/Tooltip.d.ts +2 -23
- package/dist/types/src/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/src/components/Tooltip/TooltipContext.d.ts +35 -0
- package/dist/types/src/components/Tooltip/TooltipContext.d.ts.map +1 -0
- package/dist/types/src/components/Tooltip/index.d.ts +1 -0
- package/dist/types/src/components/Tooltip/index.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/exemplars/generics.stories.d.ts +1 -1
- package/dist/types/src/hooks/useIconHref.d.ts +8 -0
- package/dist/types/src/hooks/useIconHref.d.ts.map +1 -1
- package/dist/types/src/hooks/useThemeContext.d.ts +2 -1
- package/dist/types/src/hooks/useThemeContext.d.ts.map +1 -1
- package/dist/types/src/hooks/useThemeContext.test.d.ts +2 -0
- package/dist/types/src/hooks/useThemeContext.test.d.ts.map +1 -0
- package/dist/types/src/playground/Density.stories.d.ts +11 -0
- package/dist/types/src/playground/Density.stories.d.ts.map +1 -0
- package/dist/types/src/playground/Elevation.stories.d.ts +14 -0
- package/dist/types/src/playground/Elevation.stories.d.ts.map +1 -0
- package/dist/types/src/primitives/Container/Container.d.ts +1 -1
- package/dist/types/src/primitives/Container/Container.d.ts.map +1 -1
- package/dist/types/src/primitives/DensityProvider/DensityContext.d.ts +6 -0
- package/dist/types/src/primitives/DensityProvider/DensityContext.d.ts.map +1 -0
- package/dist/types/src/primitives/DensityProvider/DensityProvider.d.ts +10 -4
- package/dist/types/src/primitives/DensityProvider/DensityProvider.d.ts.map +1 -1
- package/dist/types/src/primitives/DensityProvider/index.d.ts +1 -0
- package/dist/types/src/primitives/DensityProvider/index.d.ts.map +1 -1
- package/dist/types/src/primitives/Flex/Flex.d.ts +1 -1
- package/dist/types/src/primitives/Flex/Flex.d.ts.map +1 -1
- package/dist/types/src/primitives/Grid/Grid.d.ts +1 -1
- package/dist/types/src/primitives/Grid/Grid.d.ts.map +1 -1
- package/dist/types/src/primitives/ThemeProvider/IconRegistry.d.ts +15 -0
- package/dist/types/src/primitives/ThemeProvider/IconRegistry.d.ts.map +1 -0
- package/dist/types/src/primitives/ThemeProvider/ThemeProvider.d.ts +1 -2
- package/dist/types/src/primitives/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/types/src/primitives/ThemeProvider/ThemeProvider.stories.d.ts +1 -1
- package/dist/types/src/primitives/ThemeProvider/TranslationsContext.d.ts +112 -0
- package/dist/types/src/primitives/ThemeProvider/TranslationsContext.d.ts.map +1 -0
- package/dist/types/src/primitives/ThemeProvider/TranslationsProvider.d.ts +0 -109
- package/dist/types/src/primitives/ThemeProvider/TranslationsProvider.d.ts.map +1 -1
- package/dist/types/src/primitives/ThemeProvider/icon-registry.d.ts +34 -0
- package/dist/types/src/primitives/ThemeProvider/icon-registry.d.ts.map +1 -0
- package/dist/types/src/primitives/ThemeProvider/index.d.ts +3 -1
- package/dist/types/src/primitives/ThemeProvider/index.d.ts.map +1 -1
- package/dist/types/src/testing/decorators/withTheme.d.ts +1 -1
- package/dist/types/src/testing/decorators/withTheme.d.ts.map +1 -1
- package/dist/types/src/theme/defaultTheme.d.ts.map +1 -1
- package/dist/types/src/theme/index.d.ts +1 -0
- package/dist/types/src/theme/index.d.ts.map +1 -1
- package/dist/types/src/util/slots.d.ts +6 -3
- package/dist/types/src/util/slots.d.ts.map +1 -1
- package/dist/types/src/util/slots.stories.d.ts +14 -0
- package/dist/types/src/util/slots.stories.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -27
- package/src/components/Avatars/Avatar.tsx +1 -11
- package/src/components/Avatars/AvatarContext.ts +16 -0
- package/src/components/Avatars/index.ts +2 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +27 -25
- package/src/components/Breadcrumb/Breadcrumb.theme.ts +7 -5
- package/src/components/Breadcrumb/Breadcrumb.tsx +2 -2
- package/src/components/Button/Button.tsx +2 -11
- package/src/components/Button/ButtonGroupContext.ts +17 -0
- package/src/components/Button/IconButton.stories.tsx +2 -3
- package/src/components/Button/IconButton.theme.ts +15 -2
- package/src/components/Button/IconButton.tsx +6 -1
- package/src/components/Button/SystemIconButton.tsx +23 -16
- package/src/components/Button/index.ts +2 -0
- package/src/components/Calendar/Calendar.theme.ts +5 -5
- package/src/components/Calendar/Calendar.tsx +1 -3
- package/src/components/Calendar/index.ts +2 -0
- package/src/components/Calendar/parse-calendar-date.ts +9 -0
- package/src/components/Card/Card.theme.ts +48 -38
- package/src/components/Card/Card.tsx +77 -16
- package/src/components/Carousel/Carousel.tsx +4 -11
- package/src/components/Carousel/CarouselContext.ts +17 -0
- package/src/components/Carousel/index.ts +2 -0
- package/src/components/Clipboard/ClipboardContext.ts +20 -0
- package/src/components/Clipboard/ClipboardProvider.tsx +2 -12
- package/src/components/Clipboard/CopyButton.tsx +1 -1
- package/src/components/Clipboard/index.ts +1 -1
- package/src/components/Column/Column.stories.tsx +2 -2
- package/src/components/Column/Column.theme.ts +2 -11
- package/src/components/Column/Column.tsx +35 -57
- package/src/components/Column/ColumnContext.ts +22 -0
- package/src/components/Column/index.ts +2 -0
- package/src/components/Column/withColumn.ts +41 -4
- package/src/components/DatePicker/DatePicker.theme.ts +2 -2
- package/src/components/DatePicker/DatePicker.tsx +1 -14
- package/src/components/DatePicker/DatePickerContext.ts +21 -0
- package/src/components/DatePicker/index.ts +2 -0
- package/src/components/ErrorFallback/ErrorStack.tsx +8 -28
- package/src/components/ErrorFallback/index.ts +1 -0
- package/src/components/ErrorFallback/parse-stack.ts +33 -0
- package/src/components/Focus/Focus.stories.tsx +6 -6
- package/src/components/Focus/Focus.tsx +2 -30
- package/src/components/Focus/FocusContext.ts +22 -0
- package/src/components/Focus/index.ts +2 -0
- package/src/components/Image/Image.tsx +1 -1
- package/src/components/Input/Input.stories.tsx +63 -48
- package/src/components/Input/Input.theme.ts +33 -27
- package/src/components/Input/Input.tsx +46 -43
- package/src/components/Input/InputTriggerContext.ts +45 -0
- package/src/components/Input/SegmentedInput.tsx +2 -1
- package/src/components/Input/index.ts +2 -0
- package/src/components/Main/Main.stories.tsx +2 -1
- package/src/components/Main/Main.theme.ts +10 -1
- package/src/components/Main/Main.tsx +1 -115
- package/src/components/Main/MainContext.ts +126 -0
- package/src/components/Main/index.ts +2 -0
- package/src/components/MediaPlayer/MediaPlayer.tsx +16 -47
- package/src/components/MediaPlayer/index.ts +2 -0
- package/src/components/MediaPlayer/media-kind.ts +41 -0
- package/src/components/Menu/DropdownMenu.tsx +27 -44
- package/src/components/Menu/DropdownMenuContext.ts +35 -0
- package/src/components/Menu/Menu.theme.ts +3 -3
- package/src/components/Menu/index.ts +2 -0
- package/src/components/Message/Message.stories.tsx +32 -15
- package/src/components/Message/Message.theme.ts +8 -2
- package/src/components/Message/Message.tsx +47 -23
- package/src/components/Message/index.ts +2 -0
- package/src/components/Message/message-icons.ts +16 -0
- package/src/components/Panel/Panel.stories.tsx +15 -2
- package/src/components/Panel/Panel.theme.ts +15 -6
- package/src/components/Popover/Popover.theme.ts +1 -1
- package/src/components/Popover/Popover.tsx +22 -37
- package/src/components/Popover/PopoverContext.ts +32 -0
- package/src/components/Popover/index.ts +2 -0
- package/src/components/ScrollContainer/ScrollContainer.stories.tsx +1 -1
- package/src/components/ScrollContainer/ScrollContainer.tsx +1 -18
- package/src/components/ScrollContainer/ScrollContainerContext.ts +25 -0
- package/src/components/ScrollContainer/index.ts +2 -0
- package/src/components/Select/Select.theme.ts +2 -2
- package/src/components/Slider/Slider.stories.tsx +107 -0
- package/src/components/Slider/Slider.test.tsx +105 -0
- package/src/components/Slider/Slider.theme.ts +38 -0
- package/src/components/Slider/Slider.tsx +64 -0
- package/src/components/Slider/index.ts +5 -0
- package/src/components/Status/Status.theme.ts +1 -1
- package/src/components/Status/Status.tsx +0 -1
- package/src/components/Tag/Tag.stories.tsx +1 -1
- package/src/components/Toolbar/Toolbar.theme.ts +14 -5
- package/src/components/Toolbar/Toolbar.tsx +5 -1
- package/src/components/Tooltip/TextTooltip.tsx +2 -1
- package/src/components/Tooltip/Tooltip.tsx +12 -35
- package/src/components/Tooltip/TooltipContext.ts +41 -0
- package/src/components/Tooltip/index.ts +2 -0
- package/src/components/index.ts +1 -0
- package/src/hooks/useIconHref.ts +26 -5
- package/src/hooks/useThemeContext.test.tsx +33 -0
- package/src/hooks/useThemeContext.ts +28 -3
- package/src/playground/Density.stories.tsx +41 -0
- package/src/playground/Elevation.stories.tsx +348 -0
- package/src/primitives/DensityProvider/DensityContext.ts +15 -0
- package/src/primitives/DensityProvider/DensityProvider.tsx +12 -6
- package/src/primitives/DensityProvider/index.ts +1 -0
- package/src/primitives/Flex/Flex.stories.tsx +1 -1
- package/src/primitives/Grid/Grid.stories.tsx +1 -1
- package/src/primitives/ThemeProvider/IconRegistry.tsx +42 -0
- package/src/primitives/ThemeProvider/ThemeProvider.tsx +16 -15
- package/src/primitives/ThemeProvider/TranslationsContext.ts +24 -0
- package/src/primitives/ThemeProvider/TranslationsProvider.tsx +4 -16
- package/src/primitives/ThemeProvider/icon-registry.ts +272 -0
- package/src/primitives/ThemeProvider/index.ts +9 -1
- package/src/testing/decorators/withLayout.tsx +4 -4
- package/src/testing/decorators/withLayoutVariants.tsx +3 -3
- package/src/testing/decorators/withTheme.tsx +1 -2
- package/src/theme/defaultTheme.ts +2 -0
- package/src/theme/index.ts +1 -0
- package/src/util/slots.stories.tsx +80 -0
- package/src/util/slots.ts +14 -5
- package/dist/lib/browser/chunk-CMHHVHX3.mjs +0 -46
- package/dist/lib/browser/chunk-CMHHVHX3.mjs.map +0 -7
- package/dist/lib/browser/chunk-GTHV4WYK.mjs +0 -1499
- package/dist/lib/browser/chunk-GTHV4WYK.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -5632
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/testing/index.mjs +0 -133
- package/dist/lib/browser/testing/index.mjs.map +0 -7
- package/dist/lib/browser/translations.mjs +0 -9
- package/dist/lib/browser/translations.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3VSKWNCQ.mjs +0 -1501
- package/dist/lib/node-esm/chunk-3VSKWNCQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-P4KFQGJI.mjs +0 -48
- package/dist/lib/node-esm/chunk-P4KFQGJI.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -5633
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/testing/index.mjs +0 -134
- package/dist/lib/node-esm/testing/index.mjs.map +0 -7
- package/dist/lib/node-esm/translations.mjs +0 -10
- package/dist/lib/node-esm/translations.mjs.map +0 -7
- package/src/components/Column/AUDIT.md +0 -148
- package/src/components/Focus/AUDIT.md +0 -43
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Card.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Card.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAIlF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAqFF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,cAAc,CAmB3C,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { type ThemedClassName } from '../../util';
|
|
|
3
3
|
import { type MediaKind } from '../MediaPlayer';
|
|
4
4
|
/** Slide change behaviour: `none` hard-swaps the active slide, `slide` animates a horizontal track. */
|
|
5
5
|
export type CarouselTransition = 'none' | 'slide';
|
|
6
|
-
type CarouselContextValue = {
|
|
6
|
+
export type CarouselContextValue = {
|
|
7
7
|
index: number;
|
|
8
8
|
count: number;
|
|
9
9
|
transition: CarouselTransition;
|
|
@@ -23,8 +23,6 @@ type CarouselContextValue = {
|
|
|
23
23
|
next: () => void;
|
|
24
24
|
prev: () => void;
|
|
25
25
|
};
|
|
26
|
-
/** Returns the current carousel state. Must be used within {@link Carousel.Root}. */
|
|
27
|
-
export declare const useCarousel: () => CarouselContextValue;
|
|
28
26
|
export type CarouselRootProps = PropsWithChildren<{
|
|
29
27
|
/** Total number of slides; drives auto-advance and indicator counts. */
|
|
30
28
|
count: number;
|
|
@@ -99,7 +97,7 @@ export declare const Carousel: {
|
|
|
99
97
|
};
|
|
100
98
|
Content: React.ForwardRefExoticComponent<Omit<{}, "className"> & {
|
|
101
99
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
102
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
100
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
103
101
|
Viewport: {
|
|
104
102
|
({ children, classNames }: CarouselViewportProps): React.JSX.Element;
|
|
105
103
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAGZ,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAQf,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,KAAK,eAAe,EAA+B,MAAM,YAAY,CAAC;AAE/E,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,gBAAgB,CAAC;AAS7D,uGAAuG;AACvG,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,kBAAkB,CAAC;IAC/B,yGAAyG;IACzG,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,iGAAiG;IACjG,OAAO,EAAE,OAAO,CAAC;IACjB,mFAAmF;IACnF,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAMF,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;IAChD,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mGAAmG;IACnG,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC,CAAC;8BAEmB,EACpB,QAAQ,EACR,KAAK,EACL,WAAe,EACf,YAAgB,EAChB,UAAmB,EACnB,UAAkB,EACnB,EAAE,iBAAiB;;;;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CAGsB,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,oBAAoB;;;;AAoBvE,eAAO,MAAM,QAAQ;IACnB,IAAI;kFAtZH,iBAAiB;;;IAuZlB,OAAO;;;IACP,QAAQ;mCAtR0C,qBAAqB;;;IAuRvE,KAAK;+FAtKJ,kBAAkB;;;IAuKnB,QAAQ;yBA9HgC,mBAAmB;;;IA+H3D,IAAI;yBAzGgC,mBAAmB;;;IA0GvD,UAAU;yBA7EgC,uBAAuB;;;IA8EjE,OAAO;mCA5B0C,oBAAoB;;;CA6BtE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type CarouselContextValue } from './Carousel';
|
|
2
|
+
export declare const CAROUSEL_NAME = "Carousel";
|
|
3
|
+
export declare const CarouselProvider: import("react").FC<CarouselContextValue & {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}>, useCarouselContext: (consumerName: string) => CarouselContextValue;
|
|
6
|
+
/** Returns the current carousel state. Must be used within {@link Carousel.Root}. */
|
|
7
|
+
export declare const useCarousel: () => CarouselContextValue;
|
|
8
|
+
//# sourceMappingURL=CarouselContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarouselContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Carousel/CarouselContext.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAKvD,eAAO,MAAM,aAAa,aAAa,CAAC;AAExC,eAAO,MAAO,gBAAgB;;IAAE,kBAAkB,gDAAsD,CAAC;AAEzG,qFAAqF;AACrF,eAAO,MAAM,WAAW,QAAO,oBAAyD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Carousel/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Carousel/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type ClipboardContextValue = {
|
|
2
|
+
textValue: string;
|
|
3
|
+
setTextValue: (nextValue: string) => Promise<void>;
|
|
4
|
+
};
|
|
5
|
+
export declare const ClipboardContext: import("react").Context<ClipboardContextValue>;
|
|
6
|
+
export declare const useClipboard: () => ClipboardContextValue;
|
|
7
|
+
//# sourceMappingURL=ClipboardContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClipboardContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Clipboard/ClipboardContext.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpD,CAAC;AAEF,eAAO,MAAM,gBAAgB,gDAG3B,CAAC;AAEH,eAAO,MAAM,YAAY,6BAAqC,CAAC"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
export type ClipboardContextValue = {
|
|
3
|
-
textValue: string;
|
|
4
|
-
setTextValue: (nextValue: string) => Promise<void>;
|
|
5
|
-
};
|
|
6
|
-
export declare const ClipboardContext: React.Context<ClipboardContextValue>;
|
|
7
|
-
export declare const useClipboard: () => ClipboardContextValue;
|
|
8
2
|
export declare const ClipboardProvider: ({ children }: PropsWithChildren<{}>) => React.JSX.Element;
|
|
9
3
|
//# sourceMappingURL=ClipboardProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClipboardProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/Clipboard/ClipboardProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ClipboardProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/Clipboard/ClipboardProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAyB,MAAM,OAAO,CAAC;AAI7E,eAAO,MAAM,iBAAiB,iBAAkB,iBAAiB,CAAC,EAAE,CAAC,sBAOpE,CAAC"}
|
|
@@ -17,5 +17,5 @@ export declare const Clipboard: {
|
|
|
17
17
|
}>) => import("react").JSX.Element;
|
|
18
18
|
Provider: ({ children }: import("react").PropsWithChildren<{}>) => import("react").JSX.Element;
|
|
19
19
|
};
|
|
20
|
-
export { useClipboard } from './
|
|
20
|
+
export { useClipboard } from './ClipboardContext';
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Clipboard/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;IACpB,MAAM;IACN,UAAU;;;;;;;;;;;;;;;IACV,QAAQ;CACT,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Clipboard/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;IACpB,MAAM;IACN,UAAU;;;;;;;;;;;;;;;IACV,QAAQ;CACT,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -3,9 +3,9 @@ import { type SlottableProps } from '@dxos/ui-types';
|
|
|
3
3
|
type GutterSize = 'sm' | 'md' | 'lg';
|
|
4
4
|
type ColumnRootProps = {
|
|
5
5
|
gutter?: GutterSize;
|
|
6
|
+
subgrid?: boolean;
|
|
6
7
|
};
|
|
7
8
|
type ColumnRowProps = {};
|
|
8
|
-
type ColumnBleedProps = SlottableProps;
|
|
9
9
|
type ColumnCenterProps = SlottableProps;
|
|
10
10
|
type ColumnBlockProps = SlottableProps<{
|
|
11
11
|
end?: boolean;
|
|
@@ -17,12 +17,12 @@ export declare const Column: {
|
|
|
17
17
|
asChild?: boolean;
|
|
18
18
|
}, "className"> & {
|
|
19
19
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
20
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
20
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
21
|
Row: React.ForwardRefExoticComponent<Omit<{
|
|
22
22
|
asChild?: boolean;
|
|
23
23
|
}, "className"> & {
|
|
24
24
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
25
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
25
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
Block: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
27
27
|
end?: boolean;
|
|
28
28
|
compact?: boolean;
|
|
@@ -31,21 +31,16 @@ export declare const Column: {
|
|
|
31
31
|
asChild?: boolean;
|
|
32
32
|
}, "className"> & {
|
|
33
33
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
34
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
34
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & {
|
|
35
35
|
asChild?: boolean;
|
|
36
36
|
}, "className"> & {
|
|
37
37
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
38
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
39
|
-
Bleed: React.ForwardRefExoticComponent<Omit<{
|
|
40
|
-
asChild?: boolean;
|
|
41
|
-
}, "className"> & {
|
|
42
|
-
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
43
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
44
39
|
Center: React.ForwardRefExoticComponent<Omit<{
|
|
45
40
|
asChild?: boolean;
|
|
46
41
|
}, "className"> & {
|
|
47
42
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
48
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
43
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
49
44
|
};
|
|
50
|
-
export type {
|
|
45
|
+
export type { ColumnBlockProps, ColumnCenterProps, ColumnRootProps, ColumnRowProps };
|
|
51
46
|
//# sourceMappingURL=Column.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Column.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/Column.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Column.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/Column.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAYrD,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAQrC,KAAK,eAAe,GAAG;IAAE,MAAM,CAAC,EAAE,UAAU,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AA4DlE,KAAK,cAAc,GAAG,EAAE,CAAC;AA0BzB,KAAK,iBAAiB,GAAG,cAAc,CAAC;AA0BxC,KAAK,gBAAgB,GAAG,cAAc,CAAC;IAAE,GAAG,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AA4B/F,eAAO,MAAM,MAAM;IACjB,IAAI;;;;;IACJ,GAAG;;;;;IACH,KAAK;cA/BwC,OAAO;kBAAY,OAAO;iBAAW,OAAO;;;;;;;;;;IAgCzF,MAAM;;;;;CACP,CAAC;AAEF,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -15,8 +15,8 @@ export declare const WithScrollArea: {
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const WithCenter: Story;
|
|
17
17
|
/**
|
|
18
|
-
* ScrollArea auto-bleeds inside Column.Root (via [.dx-
|
|
19
|
-
* No
|
|
18
|
+
* ScrollArea auto-bleeds inside Column.Root (via `[.dx-column-root_&]:col-span-full` in its theme).
|
|
19
|
+
* No bleed wrapper needed.
|
|
20
20
|
*/
|
|
21
21
|
export declare const WithScrollAreaAutoBleed: Story;
|
|
22
22
|
export declare const Experimental: {
|
|
@@ -11,7 +11,6 @@ export declare const columnTheme: {
|
|
|
11
11
|
root: ComponentFunction<ColumnStyleProps>;
|
|
12
12
|
row: ComponentFunction<ColumnStyleProps>;
|
|
13
13
|
block: ComponentFunction<ColumnBlockStyleProps>;
|
|
14
|
-
bleed: ComponentFunction<ColumnStyleProps>;
|
|
15
14
|
center: ComponentFunction<ColumnStyleProps>;
|
|
16
15
|
};
|
|
17
16
|
//# sourceMappingURL=Column.theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Column.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/Column.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIxD,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,qBAAqB,GAAG;IAClC,mFAAmF;IACnF,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gFAAgF;IAChF,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"Column.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/Column.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIxD,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,qBAAqB,GAAG;IAClC,mFAAmF;IACnF,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gFAAgF;IAChF,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AA4CF,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const ColumnContext: import("react").Context<boolean>;
|
|
2
|
+
/**
|
|
3
|
+
* Whether the caller is already inside a `Column.Root`. A component that would otherwise establish
|
|
4
|
+
* its own gutter grid (a form viewport, say) should use this to place itself in the host's content
|
|
5
|
+
* track instead — nesting a second grid is what makes a form's fields inset differently from the
|
|
6
|
+
* card title above them.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useInColumn: () => boolean;
|
|
9
|
+
//# sourceMappingURL=ColumnContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/ColumnContext.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,aAAa,kCAAuB,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,eAAkC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
@@ -8,14 +8,50 @@
|
|
|
8
8
|
* - ScrollArea.Viewport resets `--dx-col: auto` after consuming `--gutter`.
|
|
9
9
|
* - Components apply `grid-column: var(--dx-col, auto)` to auto-center in Column
|
|
10
10
|
* or do nothing outside Column / inside ScrollArea.
|
|
11
|
+
*
|
|
12
|
+
* ## Which one to use
|
|
13
|
+
*
|
|
14
|
+
* Three placement mechanisms coexist because they solve different problems. An earlier plan was to
|
|
15
|
+
* collapse them onto `--dx-col` alone; that was tried and abandoned — the other two are each the
|
|
16
|
+
* only way to express their case (see AUDIT.md §3).
|
|
17
|
+
*
|
|
18
|
+
* | Mechanism | Places | Reach for it when |
|
|
19
|
+
* | ----------------- | ----------------------------- | -------------------------------------------------- |
|
|
20
|
+
* | `center()` | the element itself | one element belongs in the content track |
|
|
21
|
+
* | `placeContent()` | the element's children | a subgrid row mixes gutter slots with content |
|
|
22
|
+
* | `propagate()` | opens the tracks to children | a child must reach the gutters |
|
|
23
|
+
*
|
|
24
|
+
* - **`center()`** is inheritance-based, so it survives a `display: contents` wrapper — the case
|
|
25
|
+
* where a child selector or subgrid silently fails. Prefer it whenever it is sufficient.
|
|
26
|
+
* - **`placeContent()`** needs the element to already be a subgrid row (`col-span-3 grid
|
|
27
|
+
* grid-cols-subgrid`). It reaches grandchildren too, so a wrapper element (a link, a button)
|
|
28
|
+
* doesn't strand its content in column 1.
|
|
29
|
+
* - **`propagate()`** is the only one that lets a *descendant* address the gutters: it spans the
|
|
30
|
+
* element across all tracks and re-exposes them via subgrid, with `.dx-container` exempted so a
|
|
31
|
+
* ScrollArea can span full width and keep its scrollbar in the gutter. `Dialog.Body` depends on
|
|
32
|
+
* this — replacing it with `center()` confines the body's ScrollArea to the content track and
|
|
33
|
+
* pulls the scrollbar 32px inboard.
|
|
11
34
|
*/
|
|
12
35
|
export declare const withColumn: {
|
|
13
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* Centers element in the Column grid via --dx-col. No-op outside Column or inside ScrollArea.
|
|
38
|
+
*/
|
|
14
39
|
center: () => string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
40
|
+
/**
|
|
41
|
+
* Places a subgrid row's content children in the center track, leaving `.dx-gutter` slots to
|
|
42
|
+
* their own explicit `col-start`. Covers grandchildren too, so a wrapper element (a link, a
|
|
43
|
+
* button) doesn't strand its content in column 1 — and excludes gutters at that depth as well,
|
|
44
|
+
* since a `display: contents` wrapper promotes its children into this grid.
|
|
45
|
+
*/
|
|
46
|
+
placeContent: () => string;
|
|
47
|
+
/**
|
|
48
|
+
* Propagates the Column grid to children via subgrid. No-op outside Column.
|
|
49
|
+
* Direct children default to center column unless they are a dx-container (ScrollArea).
|
|
50
|
+
*/
|
|
17
51
|
propagate: () => string;
|
|
18
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Resets --dx-col after consuming --gutter. Applied by ScrollArea.Viewport.
|
|
54
|
+
*/
|
|
19
55
|
consumed: () => string;
|
|
20
56
|
};
|
|
21
57
|
//# sourceMappingURL=withColumn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/withColumn.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"withColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/withColumn.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,UAAU;IACrB;;OAEG;IACH,MAAM;IAEN;;;;;OAKG;IACH,YAAY;IAEZ;;;OAGG;IACH,SAAS;IAGT;;OAEG;IACH,QAAQ;CACT,CAAC"}
|
|
@@ -7,15 +7,6 @@ type ValueByMode = {
|
|
|
7
7
|
single: Date | undefined;
|
|
8
8
|
range: DateRange | undefined;
|
|
9
9
|
};
|
|
10
|
-
type DatePickerContextValue = {
|
|
11
|
-
mode: DatePickerMode;
|
|
12
|
-
value: ValueByMode[DatePickerMode];
|
|
13
|
-
setValue: (next: ValueByMode[DatePickerMode]) => void;
|
|
14
|
-
withTime: boolean;
|
|
15
|
-
open: boolean;
|
|
16
|
-
onOpenChange: (open: boolean) => void;
|
|
17
|
-
};
|
|
18
|
-
declare const useDatePickerContext: (consumerName: string) => DatePickerContextValue;
|
|
19
10
|
export type DatePickerRootProps<M extends DatePickerMode = 'single'> = {
|
|
20
11
|
mode?: M;
|
|
21
12
|
value?: ValueByMode[M];
|
|
@@ -67,6 +58,5 @@ export declare const DatePicker: {
|
|
|
67
58
|
displayName: string;
|
|
68
59
|
};
|
|
69
60
|
};
|
|
70
|
-
export { useDatePickerContext };
|
|
71
61
|
export type { ValueByMode };
|
|
72
62
|
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EACZ,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAYrC,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEhD,KAAK,WAAW,GAAG;IACjB,MAA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A+E;eACxE,OAAO;;;;IA6HhB,OAAO;;;;;;;IACP,QAAQ;0BAtDkC;YAAE,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE;;;CAuDlE,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type DatePickerMode, type ValueByMode } from './DatePicker';
|
|
2
|
+
export type DatePickerContextValue = {
|
|
3
|
+
mode: DatePickerMode;
|
|
4
|
+
value: ValueByMode[DatePickerMode];
|
|
5
|
+
setValue: (next: ValueByMode[DatePickerMode]) => void;
|
|
6
|
+
withTime: boolean;
|
|
7
|
+
open: boolean;
|
|
8
|
+
onOpenChange: (open: boolean) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const DatePickerProvider: import("react").FC<DatePickerContextValue & {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}>, useDatePickerContext: (consumerName: string) => DatePickerContextValue;
|
|
13
|
+
//# sourceMappingURL=DatePickerContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatePickerContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePickerContext.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKrE,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;IACnC,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACtD,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,eAAO,MAAO,kBAAkB;;IAAE,oBAAoB,kDAAuD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,cAAc,cAAc,CAAC"}
|
|
@@ -30,19 +30,19 @@ export declare const AlertDialog: {
|
|
|
30
30
|
asChild?: boolean;
|
|
31
31
|
}, "className"> & {
|
|
32
32
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
33
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
33
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
34
|
Body: ForwardRefExoticComponent<Omit<{
|
|
35
35
|
asChild?: boolean;
|
|
36
36
|
}, "className"> & {
|
|
37
37
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
38
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
38
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
39
39
|
Title: ForwardRefExoticComponent<AlertDialogTitleProps>;
|
|
40
40
|
Description: ForwardRefExoticComponent<AlertDialogDescriptionProps>;
|
|
41
41
|
ActionBar: ForwardRefExoticComponent<Omit<{
|
|
42
42
|
asChild?: boolean;
|
|
43
43
|
}, "className"> & {
|
|
44
44
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
45
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
45
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
46
46
|
ActionIconButton: ForwardRefExoticComponent<DialogActionIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
47
47
|
Cancel: ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
48
48
|
Action: ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -38,12 +38,12 @@ export declare const Dialog: {
|
|
|
38
38
|
asChild?: boolean;
|
|
39
39
|
}, "className"> & {
|
|
40
40
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
41
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
41
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
42
|
Body: ForwardRefExoticComponent<Omit<{
|
|
43
43
|
asChild?: boolean;
|
|
44
44
|
}, "className"> & {
|
|
45
45
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
46
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
46
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
47
47
|
Title: ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps, "className"> & {
|
|
48
48
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
49
49
|
} & {
|
|
@@ -58,7 +58,7 @@ export declare const Dialog: {
|
|
|
58
58
|
asChild?: boolean;
|
|
59
59
|
}, "className"> & {
|
|
60
60
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
61
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
61
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
62
62
|
Close: ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
63
63
|
ActionIconButton: ForwardRefExoticComponent<DialogActionIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
64
64
|
};
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import ErrorStackParser from 'error-stack-parser';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { ThemedClassName } from '../../util';
|
|
3
|
+
import { type ParsedStackFrame } from './parse-stack';
|
|
4
|
+
export type ErrorStackProps = ThemedClassName<{
|
|
5
5
|
/** When set, these frames are shown instead of parsing `error`. */
|
|
6
6
|
frames?: ParsedStackFrame[];
|
|
7
7
|
/** Used when `frames` is omitted. */
|
|
8
8
|
error?: Error;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Parses `captureOwnerStack()` output (React dev) into frames for {@link ErrorStack}.
|
|
12
|
-
* Prefixes a synthetic Error line when needed so `error-stack-parser` can read V8-style stacks.
|
|
13
|
-
*/
|
|
14
|
-
export declare const parseCaptureOwnerStack: (stack: string | null) => ParsedStackFrame[] | null;
|
|
9
|
+
}>;
|
|
15
10
|
/**
|
|
16
11
|
* Renders a parsed error stack trace with tree connector symbols and clickable vscode:// links for local frames.
|
|
17
12
|
*/
|
|
18
|
-
export declare const ErrorStack: ({ error, frames: framesProp }: ErrorStackProps) => React.JSX.Element | null;
|
|
13
|
+
export declare const ErrorStack: ({ classNames, error, frames: framesProp }: ErrorStackProps) => React.JSX.Element | null;
|
|
19
14
|
//# sourceMappingURL=ErrorStack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorStack.d.ts","sourceRoot":"","sources":["../../../../../src/components/ErrorFallback/ErrorStack.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ErrorStack.d.ts","sourceRoot":"","sources":["../../../../../src/components/ErrorFallback/ErrorStack.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAKtD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;IAC5C,mEAAmE;IACnE,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC5B,qCAAqC;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU,8CAA+C,eAAe,6BAiDpF,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ErrorBoundary, type ErrorBoundaryProps, type FallbackProps } from '@dxos/react-error-boundary';
|
|
2
2
|
export * from './ErrorFallback';
|
|
3
|
+
export { type ParsedStackFrame, parseCaptureOwnerStack } from './parse-stack';
|
|
3
4
|
export * from './ErrorStack';
|
|
4
5
|
export * from './ThrowError';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ErrorFallback/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAExG,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ErrorFallback/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAExG,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,KAAK,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC9E,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import ErrorStackParser from 'error-stack-parser';
|
|
2
|
+
export type ParsedStackFrame = ReturnType<typeof ErrorStackParser.parse>[number];
|
|
3
|
+
/**
|
|
4
|
+
* Parses `captureOwnerStack()` output (React dev) into frames for {@link ErrorStack}.
|
|
5
|
+
* Prefixes a synthetic Error line when needed so `error-stack-parser` can read V8-style stacks.
|
|
6
|
+
*/
|
|
7
|
+
export declare const parseCaptureOwnerStack: (stack: string | null) => ParsedStackFrame[] | null;
|
|
8
|
+
//# sourceMappingURL=parse-stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-stack.d.ts","sourceRoot":"","sources":["../../../../../src/components/ErrorFallback/parse-stack.ts"],"names":[],"mappings":"AAIA,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAKlD,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,UAAW,MAAM,GAAG,IAAI,KAAG,gBAAgB,EAAE,GAAG,IAiBlF,CAAC"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import React, { type KeyboardEvent } from 'react';
|
|
2
2
|
import { type Axis } from '@dxos/ui-types';
|
|
3
|
-
type FocusState = 'active' | 'error';
|
|
4
|
-
type ContextValue = {
|
|
5
|
-
setFocus?: (state: FocusState | undefined) => void;
|
|
6
|
-
/** True when any item within the group has DOM focus. */
|
|
7
|
-
groupHasFocus?: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare const useFocus: () => ContextValue;
|
|
10
3
|
type GroupProps = {
|
|
11
4
|
orientation?: Axis;
|
|
12
5
|
/** Show a subdued ring when unfocused (e.g., as a cell border). */
|
|
@@ -24,13 +17,12 @@ export declare const Focus: {
|
|
|
24
17
|
asChild?: boolean;
|
|
25
18
|
}, "className"> & {
|
|
26
19
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
27
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
20
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
21
|
Item: React.ForwardRefExoticComponent<Omit<ItemProps & {
|
|
29
22
|
asChild?: boolean;
|
|
30
23
|
}, "className"> & {
|
|
31
24
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
32
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
25
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
26
|
};
|
|
34
27
|
export type { GroupProps as FocusGroupProps, ItemProps as FocusItemProps };
|
|
35
|
-
export { useFocus };
|
|
36
28
|
//# sourceMappingURL=Focus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Focus.d.ts","sourceRoot":"","sources":["../../../../../src/components/Focus/Focus.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Focus.d.ts","sourceRoot":"","sources":["../../../../../src/components/Focus/Focus.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,EAAmB,KAAK,aAAa,EAAkD,MAAM,OAAO,CAAC;AAEnH,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAU3C,KAAK,UAAU,GAAG;IAChB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,mEAAmE;IACnE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC5D,CAAC;AAqDF,KAAK,SAAS,GAAG;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mEAAmE;IACnE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAgFF,eAAO,MAAM,KAAK;;;;;;;;;;;CAGjB,CAAC;AAEF,YAAY,EAAE,UAAU,IAAI,eAAe,EAAE,SAAS,IAAI,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type FocusState = 'active' | 'error';
|
|
2
|
+
export declare const FOCUS_STATE_ATTR = "focus-state";
|
|
3
|
+
export type ContextValue = {
|
|
4
|
+
setFocus?: (state: FocusState | undefined) => void;
|
|
5
|
+
/** True when any item within the group has DOM focus. */
|
|
6
|
+
groupHasFocus?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const FocusContext: import("react").Context<ContextValue>;
|
|
9
|
+
export declare const useFocus: () => ContextValue;
|
|
10
|
+
//# sourceMappingURL=FocusContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FocusContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Focus/FocusContext.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE5C,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,KAAK,IAAI,CAAC;IACnD,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,YAAY,uCAAkC,CAAC;AAE5D,eAAO,MAAM,QAAQ,oBAAiC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Focus/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Focus/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,cAAc,SAAS,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
2
|
-
import React, { type ComponentPropsWithRef, type ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import React, { type ComponentPropsWithRef, type ForwardRefExoticComponent, type ReactNode } from 'react';
|
|
3
3
|
import { type DescriptionAndValidationProps as DescriptionAndValidationPrimitiveProps, type DescriptionProps as DescriptionPrimitiveProps, type InputRootProps, type InputScopedProps, type LabelProps as LabelPrimitiveProps, type PinInputProps as PinInputPrimitiveProps, type TextAreaProps as TextAreaPrimitiveProps, type TextInputProps as TextInputPrimitiveProps, type ValidationProps as ValidationPrimitiveProps } from '@dxos/react-input';
|
|
4
4
|
import { type Density, type Elevation, type Size } from '@dxos/ui-types';
|
|
5
5
|
import { type ThemedClassName } from '../../util';
|
|
@@ -11,12 +11,6 @@ type InputSharedProps = Partial<{
|
|
|
11
11
|
elevation: Elevation;
|
|
12
12
|
variant: InputVariant;
|
|
13
13
|
}>;
|
|
14
|
-
type InputTriggerHandler = () => void;
|
|
15
|
-
/**
|
|
16
|
-
* Field hook. Pass an opener function; while the field is mounted, an `Input.TriggerIcon`
|
|
17
|
-
* sibling will call this opener on press. Returns a no-op when used outside `Input.Root`.
|
|
18
|
-
*/
|
|
19
|
-
declare const useInputTrigger: (handler: InputTriggerHandler | undefined) => void;
|
|
20
14
|
declare function Root(props: InputRootProps): React.JSX.Element;
|
|
21
15
|
declare namespace Root {
|
|
22
16
|
var displayName: string;
|
|
@@ -40,7 +34,13 @@ type PinInputProps = ThemedClassName<InputSharedProps & Omit<PinInputPrimitivePr
|
|
|
40
34
|
type AutoFillProps = {
|
|
41
35
|
noAutoFill?: boolean;
|
|
42
36
|
};
|
|
43
|
-
type
|
|
37
|
+
type AdornmentProps = {
|
|
38
|
+
/** Content rendered inside the input container before the field (icon or text). */
|
|
39
|
+
start?: ReactNode;
|
|
40
|
+
/** Content rendered inside the input container after the field (icon, text, or button). */
|
|
41
|
+
end?: ReactNode;
|
|
42
|
+
};
|
|
43
|
+
type TextInputProps = InputSharedProps & ThemedClassName<TextInputPrimitiveProps> & AutoFillProps & AdornmentProps;
|
|
44
44
|
type TextAreaProps = InputSharedProps & ThemedClassName<TextAreaPrimitiveProps>;
|
|
45
45
|
type CheckboxProps = ThemedClassName<Omit<CheckboxPrimitive.CheckboxProps, 'children'>> & {
|
|
46
46
|
size?: Size;
|
|
@@ -118,13 +118,12 @@ export declare const Input: {
|
|
|
118
118
|
Checkbox: ForwardRefExoticComponent<CheckboxProps>;
|
|
119
119
|
Switch: ForwardRefExoticComponent<Omit<InputScopedProps<SwitchProps>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
120
120
|
Block: ForwardRefExoticComponent<{
|
|
121
|
-
children?:
|
|
121
|
+
children?: ReactNode | undefined;
|
|
122
122
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
123
123
|
Label: ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
124
124
|
Description: ForwardRefExoticComponent<Omit<DescriptionProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
125
125
|
Validation: ForwardRefExoticComponent<Omit<InputScopedProps<ValidationProps>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
126
126
|
DescriptionAndValidation: ForwardRefExoticComponent<Omit<DescriptionAndValidationProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
127
127
|
};
|
|
128
|
-
export { useInputTrigger };
|
|
129
128
|
export type { CheckboxProps, DateInputProps, DateTimeInputProps, DescriptionAndValidationProps, DescriptionProps, InputRootProps, InputSharedProps, InputVariant, LabelProps, PinInputProps, SwitchProps, TextAreaProps, TextInputProps, TimeProps, ValidationProps, };
|
|
130
129
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"Input.d.ts","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