@digo-labs/ui 0.1.18 → 0.1.19

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.
@@ -0,0 +1,22 @@
1
+ import { AwsBlockGroupBehavior, AwsBlockGroupFit, AwsBlockIdentity, AwsBlockPose } from '@digo-labs/common';
2
+ import { CSSProperties } from 'react';
3
+ import { Transition } from 'motion/react';
4
+ import { AwsBlockTransition } from './aws-block';
5
+ import { ComponentStylesProps } from '../utils/styles';
6
+ export interface AwsBlockGroupTransition extends AwsBlockTransition {
7
+ move: Transition;
8
+ }
9
+ type Properties = RootProperties & ComponentStylesProps<'awsBlockGroup'>;
10
+ export declare function AwsBlockGroup(properties: Properties): import("react").JSX.Element;
11
+ interface RootProperties {
12
+ blocks: Record<string, AwsBlockIdentity>;
13
+ poses: AwsBlockPose[];
14
+ behavior?: AwsBlockGroupBehavior;
15
+ pose?: number;
16
+ onPose?: (pose: number) => void;
17
+ fit?: AwsBlockGroupFit;
18
+ transition?: Partial<AwsBlockGroupTransition>;
19
+ className?: string;
20
+ style?: CSSProperties;
21
+ }
22
+ export {};
@@ -0,0 +1,21 @@
1
+ import { AwsBlockSize, AwsGlyphFamily, AwsGlyphStage, AwsPaletteColor } from '@digo-labs/common';
2
+ import { CSSProperties } from 'react';
3
+ import { Transition } from 'motion/react';
4
+ import { ComponentStylesProps } from '../utils/styles';
5
+ export interface AwsBlockTransition {
6
+ enter: Transition;
7
+ resize: Transition;
8
+ }
9
+ type Properties = RootProperties & ComponentStylesProps<'awsBlock'>;
10
+ export declare function AwsBlock(properties: Properties): import("react").JSX.Element;
11
+ interface RootProperties {
12
+ color?: AwsPaletteColor;
13
+ size?: AwsBlockSize;
14
+ family?: AwsGlyphFamily;
15
+ stage?: AwsGlyphStage;
16
+ onStage?: (stage: AwsGlyphStage) => void;
17
+ transition?: Partial<AwsBlockTransition>;
18
+ className?: string;
19
+ style?: CSSProperties;
20
+ }
21
+ export {};
@@ -0,0 +1,13 @@
1
+ import { AwsGlyphFamily, AwsGlyphStage } from '@digo-labs/common';
2
+ import { CSSProperties } from 'react';
3
+ import { ComponentStylesProps } from '../utils/styles';
4
+ type Properties = RootProperties & ComponentStylesProps<'awsShape'>;
5
+ export declare function AwsShape(properties: Properties): import("react").JSX.Element;
6
+ interface RootProperties {
7
+ family: AwsGlyphFamily;
8
+ stage?: AwsGlyphStage;
9
+ onStage?: (stage: AwsGlyphStage) => void;
10
+ className?: string;
11
+ style?: CSSProperties;
12
+ }
13
+ export {};
@@ -0,0 +1,26 @@
1
+ import { CSSProperties, Ref } from 'react';
2
+ import { AnimationDirection, AnimationItem, AnimationSegment, BMCompleteEvent, BMCompleteLoopEvent, BMEnterFrameEvent, BMSegmentStartEvent, SVGRendererConfig } from 'lottie-web/build/player/lottie_light';
3
+ import { ComponentStylesProps } from '../utils/styles';
4
+ type Properties = RootProperties & ComponentStylesProps<'lottie'>;
5
+ export declare function Lottie(properties: Properties): import("react").JSX.Element;
6
+ interface RootProperties {
7
+ data?: object;
8
+ path?: string;
9
+ loop?: boolean | number;
10
+ autoplay?: boolean;
11
+ speed?: number;
12
+ direction?: AnimationDirection;
13
+ initialSegment?: AnimationSegment;
14
+ rendererSettings?: SVGRendererConfig;
15
+ onComplete?: (event: BMCompleteEvent) => void;
16
+ onLoopComplete?: (event: BMCompleteLoopEvent) => void;
17
+ onEnterFrame?: (event: BMEnterFrameEvent) => void;
18
+ onSegmentStart?: (event: BMSegmentStartEvent) => void;
19
+ onDOMLoaded?: () => void;
20
+ onDataReady?: () => void;
21
+ onError?: () => void;
22
+ ref?: Ref<AnimationItem | null>;
23
+ className?: string;
24
+ style?: CSSProperties;
25
+ }
26
+ export {};
@@ -1,4 +1,4 @@
1
- import { AwsColor } from '@digo-labs/common';
1
+ import { BrickColor } from '@digo-labs/common';
2
2
  import { CSSProperties, ReactNode } from 'react';
3
3
  import { Transition } from 'motion/react';
4
4
  import { BrickOrigin } from './brick';
@@ -13,7 +13,7 @@ interface RootProperties {
13
13
  mode?: BrickGridMode;
14
14
  cellSize?: number;
15
15
  gap?: number;
16
- colors?: AwsColor[];
16
+ colors?: BrickColor[];
17
17
  density?: number;
18
18
  tempo?: number;
19
19
  seed?: number;
@@ -1,4 +1,4 @@
1
- import { AwsColor, AwsGlyph } from '@digo-labs/common';
1
+ import { BrickGlyph, BrickColor } from '@digo-labs/common';
2
2
  import { CSSProperties } from 'react';
3
3
  import { Transition } from 'motion/react';
4
4
  import { ComponentStylesProps } from '../utils/styles';
@@ -13,10 +13,10 @@ export declare const brickOriginClasses: {
13
13
  type Properties = RootProperties & ComponentStylesProps<'brick'>;
14
14
  export declare function Brick(properties: Properties): import("react").JSX.Element;
15
15
  interface RootProperties {
16
- glyph: AwsGlyph;
16
+ glyph: BrickGlyph;
17
17
  size?: number;
18
- color?: AwsColor;
19
- glyphColor?: AwsColor;
18
+ color?: BrickColor;
19
+ glyphColor?: BrickColor;
20
20
  origin?: BrickOrigin;
21
21
  animation?: BrickAnimation;
22
22
  interval?: number;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  export * from './animation/motion-animate-presence';
2
2
  export * from './other/animations';
3
+ export * from './aws/aws-block';
4
+ export * from './aws/aws-block-group';
5
+ export * from './aws/aws-shape';
3
6
  export * from './blocks/auth-guard';
4
7
  export * from './blocks/breadcrumb-nav';
5
8
  export * from './blocks/card';
@@ -108,6 +111,7 @@ export * from './components/spinner';
108
111
  export * from './components/steps';
109
112
  export * from './components/switch';
110
113
  export * from './components/loader';
114
+ export * from './components/lottie';
111
115
  export * from './components/tabs';
112
116
  export * from './components/toggle';
113
117
  export * from './components/toggle-group';
@@ -161,6 +165,7 @@ export * from './hooks/use-stopwatch';
161
165
  export * from './hooks/use-timer';
162
166
  export * from './pages/loading-page';
163
167
  export * from './pages/login-page';
168
+ export * from './providers/aws-unit-provider';
164
169
  export * from './providers/command-provider';
165
170
  export * from './providers/design-system-provider';
166
171
  export * from './providers/drawing-provider';
@@ -172,7 +177,6 @@ export * from './utils/styles';
172
177
  export * from './utils/shiki-highlighter';
173
178
  export * from './utils/code-meta-parser';
174
179
  export * from './utils/helpers';
175
- export * from './outdated/lottie';
176
180
  export * from './outdated/qr-code';
177
181
  export * from './outdated/shape';
178
182
  export * from './outdated/tint';