@digo-labs/ui 0.1.18 → 0.1.20
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/aws/aws-block-group.d.ts +18 -0
- package/dist/aws/aws-block.d.ts +21 -0
- package/dist/aws/aws-shape.d.ts +13 -0
- package/dist/components/lottie.d.ts +26 -0
- package/dist/effects/brick-grid.d.ts +2 -2
- package/dist/effects/brick.d.ts +4 -4
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5183 -4848
- package/dist/index.js.map +1 -1
- package/dist/providers/aws-unit-provider.d.ts +8 -0
- package/dist/styles/aws-block-group.d.ts +45 -0
- package/dist/styles/aws-block.d.ts +45 -0
- package/dist/styles/aws-shape.d.ts +45 -0
- package/dist/styles/brick.d.ts +5 -5
- package/dist/styles/index.d.ts +4 -0
- package/dist/styles/lottie.d.ts +37 -0
- package/dist/utils/brick-grid-helpers.d.ts +5 -5
- package/package.json +3 -3
- package/dist/outdated/lottie.d.ts +0 -8
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AwsBlockGroupBehavior, AwsBlockGroupFit, AwsBlockIdentity, AwsBlockPose } from '@digo-labs/common';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import { ComponentStylesProps } from '../utils/styles';
|
|
4
|
+
type Properties = RootProperties & ComponentStylesProps<'awsBlockGroup'>;
|
|
5
|
+
export declare function AwsBlockGroup(properties: Properties): import("react").JSX.Element;
|
|
6
|
+
interface RootProperties {
|
|
7
|
+
blocks: Record<string, AwsBlockIdentity>;
|
|
8
|
+
poses: AwsBlockPose[];
|
|
9
|
+
behavior?: AwsBlockGroupBehavior;
|
|
10
|
+
pose?: number;
|
|
11
|
+
onPose?: (pose: number) => void;
|
|
12
|
+
fit?: AwsBlockGroupFit;
|
|
13
|
+
beat?: number;
|
|
14
|
+
hold?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { 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?: number;
|
|
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 {
|
|
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?:
|
|
16
|
+
colors?: BrickColor[];
|
|
17
17
|
density?: number;
|
|
18
18
|
tempo?: number;
|
|
19
19
|
seed?: number;
|
package/dist/effects/brick.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
16
|
+
glyph: BrickGlyph;
|
|
17
17
|
size?: number;
|
|
18
|
-
color?:
|
|
19
|
-
glyphColor?:
|
|
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';
|