@dinofront/design_system 0.1.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Divider/Divider.d.ts +2 -0
- package/dist/components/Divider/Divider.types.d.ts +10 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Progress/Progress.d.ts +2 -0
- package/dist/components/Progress/Progress.types.d.ts +18 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +22 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +343 -185
- package/dist/index.js.map +1 -1
- package/dist/styles.css +220 -0
- package/package.json +3 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { BaseProps } from '../../types';
|
|
3
|
+
export type DividerOrientation = 'horizontal' | 'vertical';
|
|
4
|
+
export type DividerVariant = 'solid' | 'dashed';
|
|
5
|
+
export type DividerColor = 'default' | 'subtle' | 'strong' | 'brand';
|
|
6
|
+
export interface DividerProps extends HTMLAttributes<HTMLDivElement>, BaseProps {
|
|
7
|
+
orientation?: DividerOrientation;
|
|
8
|
+
variant?: DividerVariant;
|
|
9
|
+
color?: DividerColor;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { BaseProps } from '../../types';
|
|
3
|
+
export type ProgressVariant = 'linear' | 'circular';
|
|
4
|
+
export type ProgressSize = 'sm' | 'lg';
|
|
5
|
+
export interface ProgressProps extends HTMLAttributes<HTMLDivElement>, BaseProps {
|
|
6
|
+
variant?: ProgressVariant;
|
|
7
|
+
size?: ProgressSize;
|
|
8
|
+
/** Completion percentage (0-100). Ignored when `stepCount`/`currentStep` are set. */
|
|
9
|
+
percent?: number;
|
|
10
|
+
stepCount?: number;
|
|
11
|
+
currentStep?: number;
|
|
12
|
+
/** Hides the percent/step text next to (linear) or inside (circular) the bar. */
|
|
13
|
+
hideLabel?: boolean;
|
|
14
|
+
/** Circular only — overrides the size-based default radius, in px. */
|
|
15
|
+
dimension?: number;
|
|
16
|
+
/** Circular only — renders an indeterminate spinner instead of tracking `percent`. */
|
|
17
|
+
loop?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { BaseProps } from '../../types';
|
|
3
|
+
export type SkeletonVariant = 'text' | 'circular' | 'rectangular' | 'rounded';
|
|
4
|
+
export type SkeletonAnimation = 'pulse' | 'wave' | 'none';
|
|
5
|
+
export interface SkeletonProps extends HTMLAttributes<HTMLSpanElement>, BaseProps {
|
|
6
|
+
/** Visual shape of the placeholder. */
|
|
7
|
+
variant?: SkeletonVariant;
|
|
8
|
+
/** Animation style. Pass `'none'` to disable. */
|
|
9
|
+
animation?: SkeletonAnimation;
|
|
10
|
+
/** Width as a number (px) or any valid CSS length / percentage. */
|
|
11
|
+
width?: number | string;
|
|
12
|
+
/** Height as a number (px) or any valid CSS length / percentage. */
|
|
13
|
+
height?: number | string;
|
|
14
|
+
/** Render N stacked skeletons. Useful for placeholder paragraphs. */
|
|
15
|
+
count?: number;
|
|
16
|
+
/**
|
|
17
|
+
* If provided, the skeleton wraps the children and infers its size from
|
|
18
|
+
* them while the children remain invisible (used as a layout guide).
|
|
19
|
+
*/
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './components/ButtonGroup';
|
|
|
6
6
|
export * from './components/Card';
|
|
7
7
|
export * from './components/Checkbox';
|
|
8
8
|
export * from './components/DatePicker';
|
|
9
|
+
export * from './components/Divider';
|
|
9
10
|
export * from './components/Drawer';
|
|
10
11
|
export * from './components/DropdownMenu';
|
|
11
12
|
export * from './components/Filter';
|
|
@@ -18,9 +19,11 @@ export * from './components/MultiSelect';
|
|
|
18
19
|
export * from './components/NotificationBadge';
|
|
19
20
|
export * from './components/Pagination';
|
|
20
21
|
export * from './components/PersonCard';
|
|
22
|
+
export * from './components/Progress';
|
|
21
23
|
export * from './components/Radio';
|
|
22
24
|
export * from './components/Select';
|
|
23
25
|
export * from './components/Sidebar';
|
|
26
|
+
export * from './components/Skeleton';
|
|
24
27
|
export * from './components/Snackbar';
|
|
25
28
|
export * from './components/Status';
|
|
26
29
|
export * from './components/Switch';
|