@dxos/react-ui 0.10.0 → 0.11.1
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
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { G as ThemeProvider, c as defaultTx, n as ErrorStack, r as Tooltip, t as parseCaptureOwnerStack } from "./chunk-parse-stack.mjs";
|
|
2
|
+
import { captureOwnerStack, memo, useEffect, useState } from "react";
|
|
3
|
+
import { mx, surfaceShadow } from "@dxos/ui-theme";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { safeStringify } from "@dxos/util";
|
|
6
|
+
import { I18nProvider } from "react-aria-components";
|
|
7
|
+
//#region src/testing/decorators/withLayout.tsx
|
|
8
|
+
/**
|
|
9
|
+
* Adds layout container.
|
|
10
|
+
*/
|
|
11
|
+
var withLayout = (props = {}) => (Story) => {
|
|
12
|
+
const MemoizedStory = memo(Story);
|
|
13
|
+
if (typeof props === "function") return /* @__PURE__ */ jsx(props, { children: /* @__PURE__ */ jsx(MemoizedStory, {}) });
|
|
14
|
+
else {
|
|
15
|
+
const { layout = "default", classNames, scroll } = props;
|
|
16
|
+
return /* @__PURE__ */ jsx(layouts[layout] ?? layouts.fullscreen, {
|
|
17
|
+
classNames: mx(scroll ? "overflow-y-auto" : "overflow-hidden", classNames),
|
|
18
|
+
children: /* @__PURE__ */ jsx(MemoizedStory, {})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
var layouts = {
|
|
23
|
+
default: ({ classNames, children }) => /* @__PURE__ */ jsx("div", {
|
|
24
|
+
className: mx("p-4", classNames),
|
|
25
|
+
children
|
|
26
|
+
}),
|
|
27
|
+
fullscreen: ({ classNames, children }) => /* @__PURE__ */ jsx("div", {
|
|
28
|
+
className: mx("fixed inset-0 flex overflow-hidden bg-black", classNames),
|
|
29
|
+
children
|
|
30
|
+
}),
|
|
31
|
+
centered: ({ classNames, children }) => /* @__PURE__ */ jsx("div", {
|
|
32
|
+
className: mx("fixed inset-0 grid overflow-hidden place-items-center dx-deck-surface"),
|
|
33
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
34
|
+
className: mx("flex flex-col dx-base-surface", classNames),
|
|
35
|
+
children
|
|
36
|
+
})
|
|
37
|
+
}),
|
|
38
|
+
column: ({ classNames, children }) => /* @__PURE__ */ jsx("div", {
|
|
39
|
+
className: "fixed inset-0 flex overflow-hidden justify-center dx-deck-surface",
|
|
40
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
41
|
+
className: mx("flex flex-col w-[40rem] dx-base-surface", classNames),
|
|
42
|
+
children
|
|
43
|
+
})
|
|
44
|
+
})
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/testing/decorators/withLayoutVariants.tsx
|
|
48
|
+
var Container = ({ children, elevation, surface }) => /* @__PURE__ */ jsx("div", {
|
|
49
|
+
className: mx("p-4 rounded-sm", surface, surfaceShadow({ elevation })),
|
|
50
|
+
children
|
|
51
|
+
});
|
|
52
|
+
var Panel = ({ Story, elevations, densities, className }) => {
|
|
53
|
+
return /* @__PURE__ */ jsx("div", {
|
|
54
|
+
className: mx("flex flex-col h-full p-8 gap-8", className),
|
|
55
|
+
children: elevations?.map(({ elevation, surface }) => densities?.map((density) => /* @__PURE__ */ jsx(Container, {
|
|
56
|
+
surface,
|
|
57
|
+
elevation,
|
|
58
|
+
children: /* @__PURE__ */ jsx(Story, {})
|
|
59
|
+
}, `${elevation}--${density}`)))
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
var withLayoutVariants = ({ elevations = [
|
|
63
|
+
{
|
|
64
|
+
elevation: "dialog",
|
|
65
|
+
surface: "dx-modal-surface"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
elevation: "positioned",
|
|
69
|
+
surface: "dx-card-surface"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
elevation: "base",
|
|
73
|
+
surface: "dx-base-surface"
|
|
74
|
+
}
|
|
75
|
+
], densities = ["md"] } = {}) => {
|
|
76
|
+
return (Story) => /* @__PURE__ */ jsx(Panel, {
|
|
77
|
+
Story,
|
|
78
|
+
elevations,
|
|
79
|
+
densities
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/testing/decorators/withTheme.tsx
|
|
84
|
+
/**
|
|
85
|
+
* Adds theme decorator.
|
|
86
|
+
*
|
|
87
|
+
* `I18nProvider` is included so react-aria-components-backed widgets (DateField, Calendar, …)
|
|
88
|
+
* have a guaranteed locale in headless test environments where `navigator.language` may be
|
|
89
|
+
* empty.
|
|
90
|
+
*/
|
|
91
|
+
var withTheme = ({ tx = defaultTx, platform } = {}) => (Story, context) => {
|
|
92
|
+
const { globals: { theme }, parameters: { translations } } = context;
|
|
93
|
+
return /* @__PURE__ */ jsx(I18nProvider, {
|
|
94
|
+
locale: "en-US",
|
|
95
|
+
children: /* @__PURE__ */ jsx(ThemeProvider, {
|
|
96
|
+
tx,
|
|
97
|
+
themeMode: theme || "dark",
|
|
98
|
+
resourceExtensions: translations,
|
|
99
|
+
platform,
|
|
100
|
+
children: /* @__PURE__ */ jsx(Tooltip.Provider, { children: /* @__PURE__ */ jsx(Story, {}) })
|
|
101
|
+
})
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/testing/Loading.tsx
|
|
106
|
+
/**
|
|
107
|
+
* Storybook loading component.
|
|
108
|
+
*/
|
|
109
|
+
var Loading = ({ data }) => {
|
|
110
|
+
const [visible, setVisible] = useState(false);
|
|
111
|
+
const ownerFrames = parseCaptureOwnerStack(captureOwnerStack());
|
|
112
|
+
useEffect(() => {
|
|
113
|
+
const t = setTimeout(() => setVisible(true), 500);
|
|
114
|
+
return () => clearTimeout(t);
|
|
115
|
+
}, []);
|
|
116
|
+
return /* @__PURE__ */ jsx("div", {
|
|
117
|
+
className: "grid p-2",
|
|
118
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
119
|
+
className: mx("flex flex-col w-full p-2 border-2 border-teal-500 rounded-md", "opacity-0 transition delay-1000 duration-1000", "overflow-auto", visible && "opacity-100"),
|
|
120
|
+
children: [
|
|
121
|
+
/* @__PURE__ */ jsx("h2", {
|
|
122
|
+
className: "uppercase capitalize text-xs",
|
|
123
|
+
children: "Loading State"
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ jsx("pre", {
|
|
126
|
+
className: "text-sm text-description",
|
|
127
|
+
children: safeStringify(data, void 0, 2)
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ jsx("h3", {
|
|
130
|
+
className: "uppercase capitalize text-xs mt-2",
|
|
131
|
+
children: "Owner stack"
|
|
132
|
+
}),
|
|
133
|
+
ownerFrames && ownerFrames.length > 0 ? /* @__PURE__ */ jsx(ErrorStack, { frames: ownerFrames }) : /* @__PURE__ */ jsx("p", {
|
|
134
|
+
className: "text-xs text-subdued",
|
|
135
|
+
children: "No owner stack (production build or unsupported context)."
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
})
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
//#endregion
|
|
142
|
+
export { Loading, withLayout, withLayoutVariants, withTheme };
|
|
143
|
+
|
|
144
|
+
//# sourceMappingURL=testing.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.mjs","names":[],"sources":["../../src/testing/decorators/withLayout.tsx","../../src/testing/decorators/withLayoutVariants.tsx","../../src/testing/decorators/withTheme.tsx","../../src/testing/Loading.tsx"],"sourcesContent":["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { type FC, type PropsWithChildren, memo } from 'react';\n\nimport { type ClassNameValue, type ThemedClassName } from '@dxos/react-ui';\nimport { mx } from '@dxos/ui-theme';\n\nexport type ContainerProps = ThemedClassName<PropsWithChildren>;\n\nexport type ContainerType = 'default' | 'fullscreen' | 'centered' | 'column';\n\nexport type WithLayoutProps =\n | FC<ContainerProps>\n | {\n classNames?: ClassNameValue;\n layout?: ContainerType;\n scroll?: boolean;\n };\n\n/**\n * Adds layout container.\n */\nexport const withLayout =\n (props: WithLayoutProps = {}): Decorator =>\n (Story) => {\n // Prevent re-rendering of the story.\n const MemoizedStory = memo(Story);\n if (typeof props === 'function') {\n const Container = props;\n return (\n <Container>\n <MemoizedStory />\n </Container>\n );\n } else {\n const { layout = 'default', classNames, scroll } = props;\n const Container = layouts[layout] ?? layouts.fullscreen;\n return (\n <Container classNames={mx(scroll ? 'overflow-y-auto' : 'overflow-hidden', classNames)}>\n <MemoizedStory />\n </Container>\n );\n }\n };\n\nconst layouts: Record<ContainerType, FC<ContainerProps>> = {\n default: ({ classNames, children }: ContainerProps) => <div className={mx('p-4', classNames)}>{children}</div>,\n\n fullscreen: ({ classNames, children }: ContainerProps) => (\n <div className={mx('fixed inset-0 flex overflow-hidden bg-black', classNames)}>{children}</div>\n ),\n\n centered: ({ classNames, children }: ContainerProps) => (\n <div className={mx('fixed inset-0 grid overflow-hidden place-items-center dx-deck-surface')}>\n <div className={mx('flex flex-col dx-base-surface', classNames)}>{children}</div>\n </div>\n ),\n\n column: ({ classNames, children }: ContainerProps) => (\n <div className='fixed inset-0 flex overflow-hidden justify-center dx-deck-surface'>\n <div className={mx('flex flex-col w-[40rem] dx-base-surface', classNames)}>{children}</div>\n </div>\n ),\n};\n","//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { type ComponentType, type PropsWithChildren } from 'react';\n\nimport { mx, surfaceShadow } from '@dxos/ui-theme';\nimport { type Density, type Elevation } from '@dxos/ui-types';\n\ntype Config = {\n elevations?: { elevation: Elevation; surface?: string }[];\n densities?: Density[];\n};\n\nconst Container = ({ children, elevation, surface }: PropsWithChildren<{ elevation: Elevation; surface?: string }>) => (\n <div className={mx('p-4 rounded-sm', surface, surfaceShadow({ elevation }))}>{children}</div>\n);\n\nconst Panel = ({\n Story,\n elevations,\n densities,\n className,\n}: { Story: ComponentType } & Config & { className?: string }) => {\n return (\n <div className={mx('flex flex-col h-full p-8 gap-8', className)}>\n {elevations?.map(({ elevation, surface }) =>\n densities?.map((density) => (\n <Container key={`${elevation}--${density}`} surface={surface} elevation={elevation}>\n <Story />\n </Container>\n )),\n )}\n </div>\n );\n};\n\nexport const withLayoutVariants = ({\n elevations = [\n { elevation: 'dialog', surface: 'dx-modal-surface' },\n { elevation: 'positioned', surface: 'dx-card-surface' },\n { elevation: 'base', surface: 'dx-base-surface' },\n ],\n densities = ['md'],\n}: Config = {}): Decorator => {\n return (Story) => <Panel Story={Story} elevations={elevations} densities={densities} />;\n};\n","//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React from 'react';\nimport { I18nProvider } from 'react-aria-components';\n\nimport { type ThemeMode } from '@dxos/ui-types';\n\nimport { Tooltip } from '../../components';\nimport { type ThemeContextValue, ThemeProvider } from '../../primitives';\nimport { defaultTx } from '../../theme';\n\n/**\n * Adds theme decorator.\n *\n * `I18nProvider` is included so react-aria-components-backed widgets (DateField, Calendar, …)\n * have a guaranteed locale in headless test environments where `navigator.language` may be\n * empty.\n */\nexport const withTheme =\n ({ tx = defaultTx, platform }: Partial<ThemeContextValue> = {}): Decorator =>\n (Story, context) => {\n const {\n globals: { theme },\n parameters: { translations },\n } = context;\n\n return (\n <I18nProvider locale='en-US'>\n <ThemeProvider\n tx={tx}\n themeMode={(theme as ThemeMode) || 'dark'}\n resourceExtensions={translations}\n platform={platform}\n >\n <Tooltip.Provider>\n <Story />\n </Tooltip.Provider>\n </ThemeProvider>\n </I18nProvider>\n );\n };\n","//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { captureOwnerStack, useEffect, useState } from 'react';\n\nimport { mx } from '@dxos/ui-theme';\nimport { safeStringify } from '@dxos/util';\n\nimport { ErrorStack, parseCaptureOwnerStack } from '../components';\n\nexport type LoadingProps = { data?: any };\n\n/**\n * Storybook loading component.\n */\nexport const Loading = ({ data }: LoadingProps) => {\n const [visible, setVisible] = useState(false);\n const ownerFrames = parseCaptureOwnerStack(captureOwnerStack());\n\n useEffect(() => {\n const t = setTimeout(() => setVisible(true), 500);\n return () => clearTimeout(t);\n }, []);\n\n return (\n <div className='grid p-2'>\n <div\n className={mx(\n 'flex flex-col w-full p-2 border-2 border-teal-500 rounded-md',\n 'opacity-0 transition delay-1000 duration-1000',\n 'overflow-auto',\n visible && 'opacity-100',\n )}\n >\n <h2 className='uppercase capitalize text-xs'>Loading State</h2>\n <pre className='text-sm text-description'>{safeStringify(data, undefined, 2)}</pre>\n\n <h3 className='uppercase capitalize text-xs mt-2'>Owner stack</h3>\n {ownerFrames && ownerFrames.length > 0 ? (\n <ErrorStack frames={ownerFrames} />\n ) : (\n <p className='text-xs text-subdued'>No owner stack (production build or unsupported context).</p>\n )}\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;AAyBA,IAAa,cACV,QAAyB,CAAC,OAC1B,UAAU;CAET,MAAM,gBA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AA4D,CAAA;GAE/F;;CACF,CAAA;AAET"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region src/translations.ts
|
|
2
|
+
var translationKey = "@dxos/react-ui";
|
|
3
|
+
var translations = [{ "en-US": { [translationKey]: {
|
|
4
|
+
"toolbar-menu.label": "Action menu",
|
|
5
|
+
"toolbar-drag-handle.label": "Drag to rearrange",
|
|
6
|
+
"toolbar-close.label": "Close",
|
|
7
|
+
"toolbar-delete.label": "Delete",
|
|
8
|
+
"system-button.star.label": "Star",
|
|
9
|
+
"system-button.unstar.label": "Unstar",
|
|
10
|
+
"system-button.bookmark.label": "Bookmark",
|
|
11
|
+
"system-button.unbookmark.label": "Remove bookmark",
|
|
12
|
+
"system-button.expand.label": "Expand",
|
|
13
|
+
"system-button.collapse.label": "Collapse",
|
|
14
|
+
"system-button.add.label": "Add",
|
|
15
|
+
"system-button.delete.label": "Delete",
|
|
16
|
+
"system-button.edit.label": "Edit",
|
|
17
|
+
"system-button.close.label": "Close",
|
|
18
|
+
"system-button.upload.label": "Upload",
|
|
19
|
+
"system-button.download.label": "Download",
|
|
20
|
+
"system-button.clipboard.label": "Copy",
|
|
21
|
+
"carousel-viewport.label": "Carousel",
|
|
22
|
+
"carousel-prev.label": "Previous slide",
|
|
23
|
+
"carousel-next.label": "Next slide",
|
|
24
|
+
"carousel-indicators.label": "Carousel slides",
|
|
25
|
+
"carousel-go-to.label": "Go to slide {{index}}",
|
|
26
|
+
"date-picker.placeholder.single.label": "Pick a date",
|
|
27
|
+
"date-picker.placeholder.range.label": "Pick a date range",
|
|
28
|
+
"date-picker.placeholder.multiple.label": "Pick dates",
|
|
29
|
+
"date-picker.clear.label": "Clear",
|
|
30
|
+
"calendar.nav.previous.label": "Previous month",
|
|
31
|
+
"calendar.nav.next.label": "Next month",
|
|
32
|
+
"calendar.footer.today.label": "Today",
|
|
33
|
+
"trigger-button.label": "Open"
|
|
34
|
+
} } }];
|
|
35
|
+
//#endregion
|
|
36
|
+
export { translationKey, translations };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.mjs","names":[],"sources":["../../src/translations.ts"],"sourcesContent":["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nexport const translationKey = '@dxos/react-ui';\n\nexport const translations = [\n {\n 'en-US': {\n [translationKey]: {\n 'toolbar-menu.label': 'Action menu',\n 'toolbar-drag-handle.label': 'Drag to rearrange',\n 'toolbar-close.label': 'Close',\n 'toolbar-delete.label': 'Delete',\n\n 'system-button.star.label': 'Star',\n 'system-button.unstar.label': 'Unstar',\n 'system-button.bookmark.label': 'Bookmark',\n 'system-button.unbookmark.label': 'Remove bookmark',\n 'system-button.expand.label': 'Expand',\n 'system-button.collapse.label': 'Collapse',\n 'system-button.add.label': 'Add',\n 'system-button.delete.label': 'Delete',\n 'system-button.edit.label': 'Edit',\n 'system-button.close.label': 'Close',\n 'system-button.upload.label': 'Upload',\n 'system-button.download.label': 'Download',\n 'system-button.clipboard.label': 'Copy',\n\n 'carousel-viewport.label': 'Carousel',\n 'carousel-prev.label': 'Previous slide',\n 'carousel-next.label': 'Next slide',\n 'carousel-indicators.label': 'Carousel slides',\n 'carousel-go-to.label': 'Go to slide {{index}}',\n\n 'date-picker.placeholder.single.label': 'Pick a date',\n 'date-picker.placeholder.range.label': 'Pick a date range',\n 'date-picker.placeholder.multiple.label': 'Pick dates',\n 'date-picker.clear.label': 'Clear',\n\n 'calendar.nav.previous.label': 'Previous month',\n 'calendar.nav.next.label': 'Next month',\n 'calendar.footer.today.label': 'Today',\n\n 'trigger-button.label': 'Open',\n },\n },\n },\n] as const satisfies Resource[];\n"],"mappings":";AAMA,IAAa,iBAAiB;AAE9B,IAAa,eAAe,CAC1B,EACE,SAAS,GACN,iBAAiB;CAChB,sBAAsB;CACtB,6BAA6B;CAC7B,uBAAuB;CACvB,wBAAwB;CAExB,4BAA4B;CAC5B,8BAA8B;CAC9B,gCAAgC;CAChC,kCAAkC;CAClC,8BAA8B;CAC9B,gCAAgC;CAChC,2BAA2B;CAC3B,8BAA8B;CAC9B,4BAA4B;CAC5B,6BAA6B;CAC7B,8BAA8B;CAC9B,gCAAgC;CAChC,iCAAiC;CAEjC,2BAA2B;CAC3B,uBAAuB;CACvB,uBAAuB;CACvB,6BAA6B;CAC7B,wBAAwB;CAExB,wCAAwC;CACxC,uCAAuC;CACvC,0CAA0C;CAC1C,2BAA2B;CAE3B,+BAA+B;CAC/B,2BAA2B;CAC3B,+BAA+B;CAE/B,wBAAwB;AAC1B,EACF,EACF,CACF"}
|
|
@@ -4,12 +4,8 @@ import '@dxos/lit-ui/dx-avatar.pcss';
|
|
|
4
4
|
import { type AvatarAnimation, type AvatarStatus, type AvatarVariant, type DxAvatar as NaturalDxAvatar } from '@dxos/lit-ui';
|
|
5
5
|
import { DxAvatar } from '@dxos/lit-ui/react';
|
|
6
6
|
import { type ThemedClassName } from '../../util';
|
|
7
|
+
import { type AvatarContextValue } from './AvatarContext';
|
|
7
8
|
export type AvatarRootProps = PropsWithChildren<Partial<AvatarContextValue>>;
|
|
8
|
-
type AvatarContextValue = {
|
|
9
|
-
labelId: string;
|
|
10
|
-
descriptionId: string;
|
|
11
|
-
};
|
|
12
|
-
declare const useAvatarContext: (consumerName: string) => AvatarContextValue;
|
|
13
9
|
type AvatarContentProps = ThemedClassName<Omit<ComponentProps<typeof DxAvatar>, 'children'>>;
|
|
14
10
|
type AvatarLabelProps = ThemedClassName<Omit<ComponentPropsWithRef<typeof Primitive.span>, 'id'>> & {
|
|
15
11
|
asChild?: boolean;
|
|
@@ -25,6 +21,5 @@ export declare const Avatar: {
|
|
|
25
21
|
Label: React.ForwardRefExoticComponent<Omit<AvatarLabelProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
26
22
|
Description: React.ForwardRefExoticComponent<Omit<AvatarDescriptionProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
27
23
|
};
|
|
28
|
-
export { useAvatarContext };
|
|
29
24
|
export type { AvatarAnimation, AvatarContentProps, AvatarDescriptionProps, AvatarLabelProps, AvatarStatus, AvatarVariant, NaturalDxAvatar as DxAvatar, };
|
|
30
25
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatars/Avatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatars/Avatar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAEnH,OAAO,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,QAAQ,IAAI,eAAe,EACjC,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAK9C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,KAAK,kBAAkB,EAAoC,MAAM,iBAAiB,CAAC;AAE5F,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAQ7E,KAAK,kBAAkB,GAAG,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;AAmB7F,KAAK,gBAAgB,GAAG,eAAe,CAAC,IAAI,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG;IAClG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAWF,KAAK,sBAAsB,GAAG,eAAe,CAAC,IAAI,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG;IACxG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAkBF,eAAO,MAAM,MAAM;IACjB,IAAI,2EA7DsF,eAAe;IA8DzG,OAAO;IACP,KAAK;IACL,WAAW;CACZ,CAAC;AAEF,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,eAAe,IAAI,QAAQ,GAC5B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type AvatarContextValue = {
|
|
2
|
+
labelId: string;
|
|
3
|
+
descriptionId: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const AVATAR_NAME = "Avatar";
|
|
6
|
+
export declare const AvatarProvider: import("react").FC<AvatarContextValue & {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}>, useAvatarContext: (consumerName: string) => AvatarContextValue;
|
|
9
|
+
//# sourceMappingURL=AvatarContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatars/AvatarContext.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAO,cAAc;;IAAE,gBAAgB,8CAAkD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatars/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatars/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,cAAc,UAAU,CAAC"}
|
|
@@ -17,7 +17,7 @@ type BreadcrumbCurrentProps = ThemedClassName<ComponentPropsWithRef<'h1'>> & {
|
|
|
17
17
|
asChild?: boolean;
|
|
18
18
|
};
|
|
19
19
|
type BreadcrumbSeparatorProps = ThemedClassName<ComponentPropsWithoutRef<typeof Primitive.span>>;
|
|
20
|
-
declare function BreadcrumbSeparator({
|
|
20
|
+
declare function BreadcrumbSeparator({ classNames, children, ...props }: BreadcrumbSeparatorProps): React.JSX.Element;
|
|
21
21
|
declare namespace BreadcrumbSeparator {
|
|
22
22
|
var displayName: string;
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../../../src/components/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAGrG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAE/C,KAAK,mBAAmB,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG;IACxF,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAYF,KAAK,mBAAmB,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,EAAE,CAAC,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAA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IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAYnH,KAAK,mBAAmB,GAAG,SAAS,CAAC;AASrC,KAAK,sBAAsB,GAAG,eAAe,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAcnG,KAAK,wBAAwB,GAAG,eAAe,CAAC,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;AAEjG,iBAAS,mBAAmB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,qBAYxF;;;;AAID,eAAO,MAAM,UAAU;IACrB,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,IAAI;IACJ,OAAO;IACP,SAAS;CACV,CAAC;AAEF,YAAY,EACV,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,GACzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Breadcrumb/Breadcrumb.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAc,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Breadcrumb.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Breadcrumb/Breadcrumb.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAc,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAgCpE,QAAA,MAAM,IAAI;;eAEsB,GAAG;oBAhCN,mBAAmB;;CAmCX,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Breadcrumb/Breadcrumb.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEpE,MAAM,MAAM,oBAAoB,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Breadcrumb.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Breadcrumb/Breadcrumb.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEpE,MAAM,MAAM,oBAAoB,GAAG,EAAE,CAAC;AActC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,oBAAoB,CAMvD,CAAC"}
|
|
@@ -10,17 +10,12 @@ type ButtonProps = ThemedClassName<ComponentPropsWithRef<typeof Primitive.button
|
|
|
10
10
|
/** Render a trailing caret indicating the button opens a menu. */
|
|
11
11
|
caretDown?: boolean;
|
|
12
12
|
};
|
|
13
|
-
type ButtonGroupContextValue = {
|
|
14
|
-
inGroup?: boolean;
|
|
15
|
-
};
|
|
16
|
-
declare const BUTTON_GROUP_NAME = "ButtonGroup";
|
|
17
|
-
declare const useButtonGroupContext: (consumerName: string) => ButtonGroupContextValue;
|
|
18
13
|
declare const Button: React.NamedExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
14
|
type ButtonGroupProps = ThemedClassName<ComponentPropsWithRef<typeof Primitive.div>> & {
|
|
20
15
|
elevation?: Elevation;
|
|
21
16
|
asChild?: boolean;
|
|
22
17
|
};
|
|
23
18
|
declare const ButtonGroup: React.ForwardRefExoticComponent<Omit<ButtonGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
export { Button,
|
|
19
|
+
export { Button, ButtonGroup };
|
|
25
20
|
export type { ButtonGroupProps, ButtonProps };
|
|
26
21
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAoB,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG9D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,KAAK,WAAW,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG;IACnF,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,CAAC;IAClF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,MAAM,+FAsDX,CAAC;AAIF,KAAK,gBAAgB,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG;IACrF,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,QAAA,MAAM,WAAW,sGAWhB,CAAC;AAIF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;AAE/B,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type ButtonGroupContextValue = {
|
|
2
|
+
inGroup?: boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare const BUTTON_GROUP_NAME = "ButtonGroup";
|
|
5
|
+
export declare const BUTTON_NAME = "Button";
|
|
6
|
+
export declare const ButtonGroupProvider: import("react").FC<ButtonGroupContextValue & {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}>, useButtonGroupContext: (consumerName: string) => ButtonGroupContextValue;
|
|
9
|
+
//# sourceMappingURL=ButtonGroupContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroupContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/ButtonGroupContext.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,uBAAuB,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5D,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,eAAO,MAAO,mBAAmB;;IAAE,qBAAqB,mDAEtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/IconButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAW,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpD,KAAK,eAAe,GAAG,IAAI,CAAC,WAAW,EA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AM,UAAU,wGAMf,CAAC;AAqCF,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/IconButton.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmC,MAAM,OAAO,CAAC;AAQxD,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/IconButton.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmC,MAAM,OAAO,CAAC;AAQxD,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAwHhE,QAAA,MAAM,IAAI;;;YAGgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMM,CAAC;eAErB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAKpB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { type ButtonStyleProps } from './Button.theme';
|
|
|
3
3
|
export type IconButtonStyleProps = ButtonStyleProps & {
|
|
4
4
|
iconOnly?: boolean;
|
|
5
5
|
square?: boolean;
|
|
6
|
+
caretDown?: boolean;
|
|
6
7
|
};
|
|
7
8
|
export declare const iconButtonTheme: Theme<IconButtonStyleProps>;
|
|
8
9
|
//# sourceMappingURL=IconButton.theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/IconButton.theme.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAqB,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GAAG;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/IconButton.theme.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAqB,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GAAG;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAkBF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,oBAAoB,CAEvD,CAAC"}
|
|
@@ -15,7 +15,7 @@ type UploadIconButtonProps = StaticPresetProps & Pick<InputHTMLAttributes<HTMLIn
|
|
|
15
15
|
};
|
|
16
16
|
type DownloadIconButtonProps = StaticPresetProps & {
|
|
17
17
|
filename: string;
|
|
18
|
-
onDownload: () => Blob | null
|
|
18
|
+
onDownload: () => Blob | null | Promise<Blob | null>;
|
|
19
19
|
};
|
|
20
20
|
export declare const SystemIconButton: {
|
|
21
21
|
Star: React.ForwardRefExoticComponent<Omit<TogglePresetProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemIconButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/SystemIconButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAmC,MAAM,OAAO,CAAC;AAKpF,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGlF,KAAK,iBAAiB,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAGtF,KAAK,iBAAiB,GAAG,IAAI,CAAC,qBAAqB,EAAE,MAAM,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA8H3G,KAAK,wBAAwB,GAAG,iBAAiB,GAAG;IAClD,MAAM,EAAE,MAAM,MAAM,CAAC;CACtB,CAAC;AA6BF,KAAK,qBAAqB,GAAG,iBAAiB,GAC5C,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC,GAAG;IACtD,YAAY,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,UAAU,CAAC,CAAC;CAClE,CAAC;AA2BJ,KAAK,uBAAuB,GAAG,iBAAiB,GAAG;IACjD,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"SystemIconButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/SystemIconButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAmC,MAAM,OAAO,CAAC;AAKpF,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGlF,KAAK,iBAAiB,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAGtF,KAAK,iBAAiB,GAAG,IAAI,CAAC,qBAAqB,EAAE,MAAM,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA8H3G,KAAK,wBAAwB,GAAG,iBAAiB,GAAG;IAClD,MAAM,EAAE,MAAM,MAAM,CAAC;CACtB,CAAC;AA6BF,KAAK,qBAAqB,GAAG,iBAAiB,GAC5C,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC,GAAG;IACtD,YAAY,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,UAAU,CAAC,CAAC;CAClE,CAAC;AA2BJ,KAAK,uBAAuB,GAAG,iBAAiB,GAAG;IACjD,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,EAAE,MAAM,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;CACtD,CAAC;AA4CF,eAAO,MAAM,gBAAgB;IAC3B,IAAI;IACJ,QAAQ;IACR,QAAQ;IACR,GAAG;IACH,MAAM;IACN,IAAI;IACJ,KAAK;IACL,SAAS;IACT,MAAM;IACN,QAAQ;CACT,CAAC;AAEF,YAAY,EACV,wBAAwB,EACxB,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,GACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { parseDate } from '@internationalized/date';
|
|
2
1
|
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
3
2
|
import { type ClassNameValue } from '@dxos/ui-types';
|
|
4
3
|
export type DateRange = {
|
|
@@ -28,6 +27,5 @@ export type CalendarRootProps = SingleProps | RangeProps;
|
|
|
28
27
|
export declare const Calendar: {
|
|
29
28
|
Root: React.ForwardRefExoticComponent<CalendarRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
29
|
};
|
|
31
|
-
export { parseDate as parseCalendarDate };
|
|
32
30
|
export type { ComponentPropsWithoutRef };
|
|
33
31
|
//# sourceMappingURL=Calendar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAA8B,MAAM,OAAO,CAAC;AAgBzF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAwBrD,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,EAAE,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAMlD,KAAK,iBAAiB,GAAG;IACvB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,kFAAkF;IAClF,YAAY,CAAC,EAAE,IAAI,CAAC;CACrB,CAAC;AAEF,KAAK,WAAW,GAAG,iBAAiB,GAAG;IACrC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;CAC7C,CAAC;AAEF,KAAK,UAAU,GAAG,iBAAiB,GAAG;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,UAAU,CAAC;AAoHzD,eAAO,MAAM,QAAQ;IACnB,IAAI;CACL,CAAC;AAEF,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-calendar-date.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/parse-calendar-date.ts"],"names":[],"mappings":"AAOA,6EAA6E;AAC7E,OAAO,EAAE,SAAS,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,16 +1,29 @@
|
|
|
1
|
-
import React, { CSSProperties, MouseEventHandler, type ReactNode } from 'react';
|
|
1
|
+
import React, { CSSProperties, type KeyboardEventHandler, MouseEventHandler, type ReactNode } from 'react';
|
|
2
2
|
import { type Density, type SlottableProps } from '@dxos/ui-types';
|
|
3
3
|
import { type ThemedClassName } from '../../util';
|
|
4
|
+
import { type ColumnRootProps } from '../Column';
|
|
4
5
|
import { type ImageProps } from '../Image';
|
|
5
6
|
import { type ToolbarActionIconButtonProps, type ToolbarDragHandleProps, type ToolbarMenuProps } from '../Toolbar';
|
|
6
7
|
type CardRootProps = {
|
|
7
8
|
'id'?: string;
|
|
8
9
|
'border'?: boolean;
|
|
9
10
|
'fullWidth'?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Adopt the parent grid's columns (via `subgrid`) instead of defining the card's own gutters —
|
|
13
|
+
* used to align a nested card's rows to an outer 3-track grid. See `Column.Root`.
|
|
14
|
+
*/
|
|
15
|
+
'subgrid'?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Width of the card's leading/trailing gutter tracks. Defaults to `lg` (chrome-sized inset for
|
|
18
|
+
* headers and rows); a card whose whole body is a form should use `sm` so the fields inset like
|
|
19
|
+
* a standalone form rather than by the card's chrome.
|
|
20
|
+
*/
|
|
21
|
+
'gutter'?: ColumnRootProps['gutter'];
|
|
10
22
|
'density'?: Density;
|
|
11
23
|
'style'?: CSSProperties;
|
|
12
24
|
'tabIndex'?: number;
|
|
13
25
|
'onClick'?: MouseEventHandler<HTMLDivElement>;
|
|
26
|
+
'onKeyDown'?: KeyboardEventHandler<HTMLDivElement>;
|
|
14
27
|
'data-selected'?: boolean;
|
|
15
28
|
'data-testid'?: string;
|
|
16
29
|
};
|
|
@@ -33,6 +46,12 @@ type CardSectionProps = {
|
|
|
33
46
|
type CardRowProps = {
|
|
34
47
|
fullWidth?: boolean;
|
|
35
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* Body text within a Card. Carries no column placement of its own, so it must be a child of a subgrid
|
|
51
|
+
* part — `Card.Row` (the usual home), `Card.Header`, or `Card.Section` — which places it in the center
|
|
52
|
+
* content track. Placed directly under `Card.Root` (or a `display:contents` `Card.Body`) it auto-places
|
|
53
|
+
* into a gutter track and renders squeezed. Use `variant='description'` for muted secondary text.
|
|
54
|
+
*/
|
|
36
55
|
type CardTextProps = {
|
|
37
56
|
truncate?: boolean;
|
|
38
57
|
variant?: 'default' | 'description';
|
|
@@ -45,6 +64,12 @@ type CardHtmlProps = {
|
|
|
45
64
|
/**
|
|
46
65
|
* Renders sanitized HTML content inside a card text slot.
|
|
47
66
|
* Uses DOMPurify to prevent XSS from untrusted markup (e.g. RSS feed content).
|
|
67
|
+
*
|
|
68
|
+
* Sanitization is all this does: the markup renders in the app's own DOM, so the content's CSS reaches
|
|
69
|
+
* the app, remote images (tracking pixels) load, and nothing adapts to the theme. Prefer
|
|
70
|
+
* `@dxos/react-ui-components`' `Html`, which isolates content in a shadow root and blocks remote images
|
|
71
|
+
* by default — it cannot be used from here (that package depends on this one), so a caller that needs
|
|
72
|
+
* those guarantees should compose `Html` into the card rather than reach for this.
|
|
48
73
|
*/
|
|
49
74
|
declare function CardHtml({ html, variant, ...props }: CardHtmlProps & ThemedClassName<object>): React.JSX.Element;
|
|
50
75
|
declare namespace CardHtml {
|
|
@@ -64,10 +89,12 @@ declare namespace CardPoster {
|
|
|
64
89
|
type CardActionProps = {
|
|
65
90
|
icon?: string;
|
|
66
91
|
label: string;
|
|
92
|
+
/** Short trailing text (e.g. an age); kept at full width while the label truncates around it. */
|
|
93
|
+
annotation?: string;
|
|
67
94
|
actionIcon?: string;
|
|
68
95
|
onClick?: () => void;
|
|
69
96
|
};
|
|
70
|
-
declare function CardAction({ icon, actionIcon, label, onClick }: CardActionProps): React.JSX.Element;
|
|
97
|
+
declare function CardAction({ icon, actionIcon, label, annotation, onClick }: CardActionProps): React.JSX.Element;
|
|
71
98
|
declare namespace CardAction {
|
|
72
99
|
var displayName: string;
|
|
73
100
|
}
|
|
@@ -82,19 +109,24 @@ declare namespace CardLink {
|
|
|
82
109
|
export declare const Card: {
|
|
83
110
|
Root: React.ForwardRefExoticComponent<Omit<CardRootProps, "className"> & {
|
|
84
111
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
85
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
112
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
86
113
|
Header: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
87
114
|
asChild?: boolean;
|
|
88
115
|
}, "className"> & {
|
|
89
116
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
90
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
117
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & {
|
|
118
|
+
asChild?: boolean;
|
|
119
|
+
}, "className"> & {
|
|
120
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
121
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
122
|
+
Body: React.ForwardRefExoticComponent<Omit<{
|
|
91
123
|
asChild?: boolean;
|
|
92
124
|
}, "className"> & {
|
|
93
125
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
94
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
126
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
95
127
|
Block: React.ForwardRefExoticComponent<Omit<CardBlockProps, "className"> & {
|
|
96
128
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
97
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
129
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
98
130
|
DragHandle: React.ForwardRefExoticComponent<ToolbarDragHandleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
99
131
|
ActionIconButton: React.ForwardRefExoticComponent<ToolbarActionIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
100
132
|
Menu: typeof CardMenu;
|
|
@@ -102,27 +134,22 @@ export declare const Card: {
|
|
|
102
134
|
asChild?: boolean;
|
|
103
135
|
}, "className"> & {
|
|
104
136
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
105
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
106
|
-
Body: React.ForwardRefExoticComponent<Omit<{
|
|
107
|
-
asChild?: boolean;
|
|
108
|
-
}, "className"> & {
|
|
109
|
-
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
110
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
137
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
111
138
|
Section: React.ForwardRefExoticComponent<Omit<CardSectionProps & {
|
|
112
139
|
asChild?: boolean;
|
|
113
140
|
}, "className"> & {
|
|
114
141
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
115
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
142
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
116
143
|
Row: React.ForwardRefExoticComponent<Omit<CardRowProps & {
|
|
117
144
|
asChild?: boolean;
|
|
118
145
|
}, "className"> & {
|
|
119
146
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
120
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
147
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
121
148
|
Text: React.ForwardRefExoticComponent<Omit<CardTextProps & {
|
|
122
149
|
asChild?: boolean;
|
|
123
150
|
}, "className"> & {
|
|
124
151
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
125
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
152
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
126
153
|
Html: typeof CardHtml;
|
|
127
154
|
Poster: typeof CardPoster;
|
|
128
155
|
Action: typeof CardAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EACZ,aAAa,EACb,KAAK,oBAAoB,EACzB,iBAAiB,EACjB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMnE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAEzD,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,EAAE,KAAK,4BAA4B,EAAE,KAAK,sBAAsB,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAQnH,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACp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