@uni-design-system/uni-react 10.1.0 → 10.2.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/types/components/button/button.component.d.ts +1 -1
  3. package/dist/types/components/card/card.component.d.ts +1 -1
  4. package/dist/types/components/draggable/SortableList/components/SortableItem/sortableItem.component.d.ts +1 -1
  5. package/dist/types/components/draggable/SortableList/components/SortableItem/sortableItem.context.d.ts +1 -1
  6. package/dist/types/components/draggable/SortableList/components/SortableOverlay/sortableOverlay.component.d.ts +1 -1
  7. package/dist/types/components/draggable/SortableList/sortableList.component.d.ts +1 -1
  8. package/dist/types/components/grainy-gradient-background/grainy-gradient-background.component.d.ts +1 -1
  9. package/dist/types/components/icon-text-row/icon-text-row.component.d.ts +1 -1
  10. package/dist/types/components/layout/box/box.component.d.ts +1 -1
  11. package/dist/types/components/layout/center/center.component.d.ts +1 -1
  12. package/dist/types/components/layout/grid/grid-area/grid-area.component.d.ts +1 -1
  13. package/dist/types/components/layout/grid/grid.component.d.ts +1 -1
  14. package/dist/types/components/layout/row/row.component.d.ts +1 -1
  15. package/dist/types/components/layout/stack/stack.component.d.ts +1 -1
  16. package/dist/types/components/layout/wrap/wrap.component.d.ts +1 -1
  17. package/dist/types/components/modal/modal-close-button.component.d.ts +1 -1
  18. package/dist/types/components/modal/modal.component.d.ts +1 -1
  19. package/dist/types/core/background/background.component.d.ts +1 -1
  20. package/dist/types/core/border/border.style.d.ts +1 -1
  21. package/dist/types/core/container/container.component.d.ts +1 -1
  22. package/dist/types/core/filter/filter.component.d.ts +1 -1
  23. package/dist/types/core/filter/filter.style.d.ts +1 -1
  24. package/dist/types/core/flex/flex.component.d.ts +1 -1
  25. package/dist/types/core/flex/flex.style.d.ts +1 -1
  26. package/dist/types/core/image/image.style.d.ts +1 -1
  27. package/dist/types/core/layout/layout.context.d.ts +1 -1
  28. package/dist/types/core/layout/layout.provider.d.ts +1 -1
  29. package/dist/types/core/overlay/overlay.config.d.ts +1 -1
  30. package/dist/types/core/overlay/overlay.model.d.ts +1 -1
  31. package/dist/types/core/padding/padding.style.d.ts +1 -1
  32. package/dist/types/core/polymorphic/polymorphic.types.d.ts +1 -1
  33. package/dist/types/core/text/text.component.d.ts +1 -1
  34. package/dist/types/core/theme/theming.d.ts +1 -1
  35. package/dist/types/core/transition/collapse/collapse.component.d.ts +1 -1
  36. package/dist/types/core/transition/fade/fade.component.d.ts +1 -1
  37. package/dist/types/core/transition/slide/slide.component.d.ts +1 -1
  38. package/dist/types/layouts/parallax-hero/parallax-hero.model.d.ts +1 -1
  39. package/dist/types/stories/Page.d.ts +1 -1
  40. package/dist/types/stories/Page.stories.d.ts +1 -1
  41. package/dist/types/tools/color-swatch/color-swatch.component.d.ts +1 -1
  42. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @uni-design-system/uni-react
2
2
 
3
+ ## 10.2.1
4
+
5
+ ## 10.2.0
6
+
3
7
  ## 10.1.0
4
8
 
5
9
  ## 10.0.0
@@ -1,4 +1,4 @@
1
- import { default as React, CSSProperties, ReactNode } from 'react';
1
+ import { default as React, CSSProperties, ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { ButtonType, ContentColorToken } from '@uni-design-system/uni-core';
3
3
  import { IconName } from '../../core/icon';
4
4
  export interface ButtonProps {
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { ContainerColorToken, ShadowElevation, Size } from '@uni-design-system/uni-core';
3
3
  import { Property } from 'csstype';
4
4
  export type CardType = 'elevated' | 'filled' | 'outlined';
@@ -1,4 +1,4 @@
1
- import { CSSProperties, PropsWithChildren } from 'react';
1
+ import { CSSProperties, PropsWithChildren } from '../../../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { UniqueIdentifier } from '@dnd-kit/core';
3
3
  export interface SortableItemProps {
4
4
  id: UniqueIdentifier;
@@ -4,6 +4,6 @@ interface Context {
4
4
  listeners: DraggableSyntheticListeners;
5
5
  ref(node: HTMLElement | null): void;
6
6
  }
7
- export declare const SortableItemContext: import('react').Context<Context>;
7
+ export declare const SortableItemContext: import('../../../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react').Context<Context>;
8
8
  export {};
9
9
  //# sourceMappingURL=sortableItem.context.d.ts.map
@@ -1,3 +1,3 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from '../../../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  export declare const SortableOverlay: ({ children }: PropsWithChildren) => JSX.Element;
3
3
  //# sourceMappingURL=sortableOverlay.component.d.ts.map
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from '../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { UniqueIdentifier } from '@dnd-kit/core';
3
3
  export interface SortableItemProps {
4
4
  id: UniqueIdentifier;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { Property } from 'csstype';
3
3
  export interface GrainyGradientProps {
4
4
  children?: ReactNode;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { ContentColorToken, HorizontalAlign, TextRole } from '@uni-design-system/uni-core';
3
3
  import { IconName } from '../../core/icon';
4
4
  export interface IconTextRowProps {
@@ -1,4 +1,4 @@
1
- import { ElementType, ReactNode } from 'react';
1
+ import { ElementType, ReactNode } from '../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { PolymorphicComponent, PolymorphicProps } from '../../../core/polymorphic';
3
3
  import { BoxStyleProps } from './box.styles';
4
4
  export interface BoxOwnProps extends BoxStyleProps {
@@ -1,4 +1,4 @@
1
- import { ElementType } from 'react';
1
+ import { ElementType } from '../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { PolymorphicComponent } from '../../../core/polymorphic';
3
3
  import { BoxOwnProps, BoxProps } from '../box';
4
4
  export type CenterProps<E extends ElementType = 'div'> = BoxProps<E>;
@@ -1,4 +1,4 @@
1
- import { ElementType } from 'react';
1
+ import { ElementType } from '../../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { PolymorphicComponent } from '../../../../core/polymorphic';
3
3
  import { BoxOwnProps, BoxProps } from '../../box';
4
4
  export interface GridAreaOwnProps extends BoxOwnProps {
@@ -1,4 +1,4 @@
1
- import { ElementType } from 'react';
1
+ import { ElementType } from '../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { Thickness, Variant } from '@uni-design-system/uni-core';
3
3
  import { PolymorphicComponent } from '../../../core/polymorphic';
4
4
  import { BoxOwnProps, BoxProps } from '../box';
@@ -1,4 +1,4 @@
1
- import { ElementType } from 'react';
1
+ import { ElementType } from '../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { PolymorphicComponent } from '../../../core/polymorphic';
3
3
  import { BoxOwnProps, BoxProps } from '../box';
4
4
  export type RowProps<E extends ElementType = 'div'> = BoxProps<E>;
@@ -1,4 +1,4 @@
1
- import { ElementType } from 'react';
1
+ import { ElementType } from '../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { PolymorphicComponent } from '../../../core/polymorphic';
3
3
  import { BoxOwnProps, BoxProps } from '../box';
4
4
  export type StackProps<E extends ElementType = 'div'> = BoxProps<E>;
@@ -1,4 +1,4 @@
1
- import { ElementType } from 'react';
1
+ import { ElementType } from '../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { PolymorphicComponent } from '../../../core/polymorphic';
3
3
  import { BoxOwnProps, BoxProps } from '../box';
4
4
  export type WrapProps<E extends ElementType = 'div'> = BoxProps<E>;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { ButtonProps } from '../button';
3
3
  export declare const ModalCloseButton: ({ ...rest }: PropsWithChildren<ButtonProps>) => JSX.Element;
4
4
  //# sourceMappingURL=modal-close-button.component.d.ts.map
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { default as React, ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  type ModalSize = 'sm' | 'md' | 'lg';
3
3
  export interface ModalProps {
4
4
  size: ModalSize;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { Property } from 'csstype';
3
3
  export interface BackgroundProps {
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
1
  import { Border, UniTheme } from '@uni-design-system/uni-core';
2
- import { CSSProperties } from 'react';
2
+ import { CSSProperties } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
3
3
  export declare function BorderStyle(border: Border | undefined, theme: UniTheme): CSSProperties;
4
4
  //# sourceMappingURL=border.style.d.ts.map
@@ -1,4 +1,4 @@
1
- import { default as React, CSSProperties, ReactNode } from 'react';
1
+ import { default as React, CSSProperties, ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { ContainerColorToken } from '@uni-design-system/uni-core';
3
3
  export interface ContainerProps {
4
4
  children: ReactNode;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { FilterProps } from './filter.model';
3
3
  export declare const Filter: (filterProps: PropsWithChildren<FilterProps>) => import("react/jsx-runtime").JSX.Element;
4
4
  //# sourceMappingURL=filter.component.d.ts.map
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import { CSSProperties } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { FilterProps } from './filter.model';
3
3
  export declare const FilterStyle: (filterSettings: Partial<FilterProps>) => CSSProperties;
4
4
  //# sourceMappingURL=filter.style.d.ts.map
@@ -1,4 +1,4 @@
1
- import { default as React, HTMLAttributes, ReactNode } from 'react';
1
+ import { default as React, HTMLAttributes, ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { AlignContent, FlexDirection, FlexGrow, FlexShrink, FlexWrap, JustifyContent } from '@uni-design-system/uni-core';
3
3
  import { Property } from 'csstype';
4
4
  export interface FlexOptions extends HTMLAttributes<HTMLDivElement> {
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import { CSSProperties } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { HorizontalAlign, VerticalAlign } from '@uni-design-system/uni-core';
3
3
  export declare const flex: CSSProperties;
4
4
  export declare const row: CSSProperties;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import { CSSProperties } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { ImageProps } from './image.model';
3
3
  export declare const ImageStyle: (props: Partial<ImageProps>) => CSSProperties;
4
4
  //# sourceMappingURL=image.style.d.ts.map
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  interface ScreenSize {
3
3
  height: number;
4
4
  width: number;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  export declare const LayoutProvider: ({ children }: {
3
3
  children: React.ReactNode;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { UniTheme } from '@uni-design-system/uni-core';
2
- import { CSSProperties } from 'react';
2
+ import { CSSProperties } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
3
3
  import { OverlayProps } from './overlay.model';
4
4
  export declare const OverlayStyle: (theme: UniTheme, { hueRotateDeg, hueDeg, saturation, lightness, transparency, blurPx, }: OverlayProps) => CSSProperties;
5
5
  //# sourceMappingURL=overlay.config.d.ts.map
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  export interface OverlayProps {
3
3
  children?: ReactNode;
4
4
  blurPx?: number;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import { CSSProperties } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { Apply, Size } from '@uni-design-system/uni-core';
3
3
  export declare function Padding(size: Size, apply: Apply): CSSProperties;
4
4
  //# sourceMappingURL=padding.style.d.ts.map
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithRef, ComponentPropsWithoutRef, ElementType, ReactElement } from 'react';
1
+ import { ComponentPropsWithRef, ComponentPropsWithoutRef, ElementType, ReactElement } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  /**
3
3
  * The `as` prop every layout primitive accepts. Angular applies layout as an
4
4
  * attribute (`<main box-layout>`) so the element's semantics stay the author's;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { ContentColorToken, HorizontalAlign, Size, TextRole } from '@uni-design-system/uni-core';
3
3
  export interface TextProps {
4
4
  text?: string;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { UniTheme } from '@uni-design-system/uni-core';
3
3
  export declare const ThemeProvider: React.FC<{
4
4
  theme?: UniTheme;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { HTMLMotionProps } from 'framer-motion';
3
3
  import { WithTransitionConfig } from '../transition.utils';
4
4
  export interface CollapseOptions {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { HTMLMotionProps } from 'framer-motion';
3
3
  import { WithTransitionConfig } from '../transition.utils';
4
4
  export type FadeProps = WithTransitionConfig<HTMLMotionProps<'div'>>;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { HTMLMotionProps } from 'framer-motion';
3
3
  import { SlideDirection, WithTransitionConfig } from '../transition.utils';
4
4
  export type { SlideDirection };
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  export interface ImageLayer {
3
3
  name: string;
4
4
  src: string;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  export declare const Page: React.FC;
3
3
  //# sourceMappingURL=Page.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import('react').FC<{}>;
4
+ component: import('../../../../node_modules/.pnpm/react@18.3.1/node_modules/react').FC<{}>;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
2
2
  import { RGB, ShadowElevation } from '@uni-design-system/uni-core';
3
3
  export type CardType = 'elevated' | 'filled' | 'outlined';
4
4
  export interface ColorSwatchProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uni-design-system/uni-react",
3
- "version": "10.1.0",
3
+ "version": "10.2.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -66,7 +66,7 @@
66
66
  "vite-plugin-dts": "^4.5.4",
67
67
  "vitest": "^4.1.5",
68
68
  "@uni-design-system/tsconfig": "0.1.0",
69
- "@uni-design-system/uni-core": "10.1.0"
69
+ "@uni-design-system/uni-core": "10.2.1"
70
70
  },
71
71
  "scripts": {
72
72
  "dev": "vite build --watch",