oziko-ui-kit 0.0.86 → 0.0.88
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,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type CircularProgressStatus = keyof typeof progressStatusIcon;
|
|
3
|
+
type CircularProgressSize = keyof typeof progressSizes;
|
|
4
|
+
export interface CircularProgressProps {
|
|
5
|
+
percent?: number;
|
|
6
|
+
size?: CircularProgressSize;
|
|
7
|
+
strokeWidth?: number;
|
|
8
|
+
showLabel?: boolean;
|
|
9
|
+
status?: CircularProgressStatus;
|
|
10
|
+
label?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const progressSizes: {
|
|
13
|
+
xs: number;
|
|
14
|
+
sm: number;
|
|
15
|
+
md: number;
|
|
16
|
+
lg: number;
|
|
17
|
+
xl: number;
|
|
18
|
+
};
|
|
19
|
+
declare const progressStatusIcon: {
|
|
20
|
+
readonly success: "check";
|
|
21
|
+
readonly danger: "close";
|
|
22
|
+
readonly normal: undefined;
|
|
23
|
+
};
|
|
24
|
+
declare const CircularProgress: ({ percent, size, strokeWidth, showLabel, status, label, }: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export default CircularProgress;
|
package/dist/index.css
CHANGED
|
@@ -3888,4 +3888,68 @@ button.font-increment {
|
|
|
3888
3888
|
.Tab-module_container__e6CN6.Tab-module_window__vPuG0 .Tab-module_active__687wz {
|
|
3889
3889
|
background-color: var(--oziko-color-default);
|
|
3890
3890
|
opacity: 1;
|
|
3891
|
+
}
|
|
3892
|
+
.CircularProgress-module_container__S-38y {
|
|
3893
|
+
position: relative;
|
|
3894
|
+
display: inline-block;
|
|
3895
|
+
}
|
|
3896
|
+
|
|
3897
|
+
.CircularProgress-module_svg__gon7t {
|
|
3898
|
+
display: block;
|
|
3899
|
+
}
|
|
3900
|
+
|
|
3901
|
+
.CircularProgress-module_backgroundCircle__MQZ2z {
|
|
3902
|
+
fill: none;
|
|
3903
|
+
stroke: var(--oziko-color-soft-dark);
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
.CircularProgress-module_progressCircle__aya2S {
|
|
3907
|
+
fill: none;
|
|
3908
|
+
stroke-linecap: round;
|
|
3909
|
+
transition: stroke-dashoffset 0.3s ease;
|
|
3910
|
+
transform-origin: center;
|
|
3911
|
+
transform: rotate(-90deg);
|
|
3912
|
+
stroke: var(--oziko-color-primary-light);
|
|
3913
|
+
}
|
|
3914
|
+
.CircularProgress-module_progressCircle__aya2S.CircularProgress-module_normal__asGeP {
|
|
3915
|
+
stroke: var(--oziko-color-primary-light);
|
|
3916
|
+
}
|
|
3917
|
+
.CircularProgress-module_progressCircle__aya2S.CircularProgress-module_success__F6h9t {
|
|
3918
|
+
stroke: var(--oziko-color-success);
|
|
3919
|
+
}
|
|
3920
|
+
.CircularProgress-module_progressCircle__aya2S.CircularProgress-module_danger__POA1X {
|
|
3921
|
+
stroke: var(--oziko-color-danger);
|
|
3922
|
+
}
|
|
3923
|
+
|
|
3924
|
+
.CircularProgress-module_centerText__SKGzM {
|
|
3925
|
+
position: absolute;
|
|
3926
|
+
top: 50%;
|
|
3927
|
+
left: 50%;
|
|
3928
|
+
transform: translate(-50%, -50%);
|
|
3929
|
+
font-weight: 500;
|
|
3930
|
+
font-family: var(--oziko-font-family-base);
|
|
3931
|
+
}
|
|
3932
|
+
.CircularProgress-module_centerText__SKGzM.CircularProgress-module_normal__asGeP {
|
|
3933
|
+
color: var(--oziko-color-font-primary);
|
|
3934
|
+
}
|
|
3935
|
+
.CircularProgress-module_centerText__SKGzM.CircularProgress-module_success__F6h9t {
|
|
3936
|
+
color: var(--oziko-color-success);
|
|
3937
|
+
}
|
|
3938
|
+
.CircularProgress-module_centerText__SKGzM.CircularProgress-module_danger__POA1X {
|
|
3939
|
+
color: var(--oziko-color-danger);
|
|
3940
|
+
}
|
|
3941
|
+
.CircularProgress-module_centerText__SKGzM.CircularProgress-module_xs__WVADp {
|
|
3942
|
+
font-size: var(--oziko-font-size-xs);
|
|
3943
|
+
}
|
|
3944
|
+
.CircularProgress-module_centerText__SKGzM.CircularProgress-module_sm__yLhUL {
|
|
3945
|
+
font-size: var(--oziko-font-size-sm);
|
|
3946
|
+
}
|
|
3947
|
+
.CircularProgress-module_centerText__SKGzM.CircularProgress-module_md__5RBcj {
|
|
3948
|
+
font-size: var(--oziko-font-size-md);
|
|
3949
|
+
}
|
|
3950
|
+
.CircularProgress-module_centerText__SKGzM.CircularProgress-module_lg__mzdQa {
|
|
3951
|
+
font-size: var(--oziko-font-size-lg);
|
|
3952
|
+
}
|
|
3953
|
+
.CircularProgress-module_centerText__SKGzM.CircularProgress-module_xl__tuBt- {
|
|
3954
|
+
font-size: var(--oziko-font-size-xl);
|
|
3891
3955
|
}
|
package/dist/index.export.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ export { default as Backdrop } from "./components/atoms/backdrop/Backdrop";
|
|
|
71
71
|
export { default as Portal } from "./components/atoms/portal/Portal";
|
|
72
72
|
export { default as Tab } from "./components/atoms/tab/Tab";
|
|
73
73
|
export { default as RelationInput } from "./components/atoms/relation-input/RelationInput";
|
|
74
|
+
export { default as CircularProgress } from "./components/atoms/CircularProgress/CircularProgress";
|
|
74
75
|
export { default as useInputRepresenter } from "./custom-hooks/useInputRepresenter";
|
|
75
76
|
export { default as useKeyDown } from "./custom-hooks/useKeyDown";
|
|
76
77
|
export { useOnClickOutside } from "./custom-hooks/useOnClickOutside";
|
|
@@ -179,3 +180,4 @@ export { color as colorUtil } from "./utils/color";
|
|
|
179
180
|
export { helperUtils } from "./utils/helperUtils";
|
|
180
181
|
export { time as timeUtil } from "./utils/time";
|
|
181
182
|
export { type TypeDimension, type TypeAlignment, type TypeDirection, type TypeFlexContainer, type TypeFlexDimension, type TypeFile, } from "./utils/interface";
|
|
183
|
+
export { type CircularProgressProps } from "./components/atoms/CircularProgress/CircularProgress";
|