@usefragments/ui 1.4.0 → 1.5.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.
- package/dist/assets/ui.css +36 -32
- package/dist/components/Card/index.cjs +2 -2
- package/dist/components/Card/index.d.ts +4 -1
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/index.js +2 -2
- package/dist/components/Progress/Progress.module.scss.cjs +28 -25
- package/dist/components/Progress/Progress.module.scss.js +28 -25
- package/dist/components/Progress/index.cjs +3 -0
- package/dist/components/Progress/index.d.ts +8 -8
- package/dist/components/Progress/index.d.ts.map +1 -1
- package/dist/components/Progress/index.js +3 -0
- package/fragments.json +1 -1
- package/package.json +2 -2
- package/src/components/Card/Card.contract.json +5 -0
- package/src/components/Card/index.tsx +6 -3
- package/src/components/Progress/Progress.contract.json +9 -27
- package/src/components/Progress/Progress.module.scss +5 -1
- package/src/components/Progress/index.tsx +56 -62
package/dist/assets/ui.css
CHANGED
|
@@ -3843,7 +3843,7 @@
|
|
|
3843
3843
|
._popup_1pyvn_6[data-side=top][data-starting-style], ._popup_1pyvn_6[data-side=top][data-ending-style] {
|
|
3844
3844
|
transform: none;
|
|
3845
3845
|
}
|
|
3846
|
-
}.
|
|
3846
|
+
}._root_le29r_1 {
|
|
3847
3847
|
display: flex;
|
|
3848
3848
|
flex-direction: column;
|
|
3849
3849
|
gap: var(--fui-space-1, 0.5rem);
|
|
@@ -3851,26 +3851,26 @@
|
|
|
3851
3851
|
font-family: var(--fui-font-sans, "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
|
|
3852
3852
|
}
|
|
3853
3853
|
|
|
3854
|
-
.
|
|
3854
|
+
._header_le29r_9 {
|
|
3855
3855
|
display: flex;
|
|
3856
3856
|
align-items: center;
|
|
3857
3857
|
justify-content: space-between;
|
|
3858
3858
|
gap: var(--fui-space-2, 1rem);
|
|
3859
3859
|
}
|
|
3860
3860
|
|
|
3861
|
-
.
|
|
3861
|
+
._label_le29r_16 {
|
|
3862
3862
|
font-size: var(--fui-font-size-sm, 1rem);
|
|
3863
3863
|
font-weight: var(--fui-font-weight-medium, 500);
|
|
3864
3864
|
color: var(--fui-text-primary, #212121);
|
|
3865
3865
|
}
|
|
3866
3866
|
|
|
3867
|
-
.
|
|
3867
|
+
._value_le29r_22 {
|
|
3868
3868
|
font-size: var(--fui-font-size-sm, 1rem);
|
|
3869
3869
|
color: var(--fui-text-secondary, rgb(84.468434358, 84.468434358, 84.468434358));
|
|
3870
3870
|
font-variant-numeric: tabular-nums;
|
|
3871
3871
|
}
|
|
3872
3872
|
|
|
3873
|
-
.
|
|
3873
|
+
._track_le29r_28 {
|
|
3874
3874
|
position: relative;
|
|
3875
3875
|
width: 100%;
|
|
3876
3876
|
overflow: hidden;
|
|
@@ -3878,43 +3878,47 @@
|
|
|
3878
3878
|
border-radius: var(--fui-radius-full, 9999px);
|
|
3879
3879
|
}
|
|
3880
3880
|
|
|
3881
|
-
.
|
|
3881
|
+
._trackSm_le29r_36 {
|
|
3882
3882
|
height: calc(var(--fui-space-1, 0.5rem) / 2);
|
|
3883
3883
|
}
|
|
3884
3884
|
|
|
3885
|
-
.
|
|
3885
|
+
._trackMd_le29r_40 {
|
|
3886
3886
|
height: var(--fui-space-1, 0.5rem);
|
|
3887
3887
|
}
|
|
3888
3888
|
|
|
3889
|
-
.
|
|
3889
|
+
._trackLg_le29r_44 {
|
|
3890
3890
|
height: var(--fui-space-2, 1rem);
|
|
3891
3891
|
}
|
|
3892
3892
|
|
|
3893
|
-
.
|
|
3893
|
+
._indicator_le29r_48 {
|
|
3894
3894
|
height: 100%;
|
|
3895
3895
|
background-color: var(--fui-color-accent, #006b57);
|
|
3896
3896
|
border-radius: var(--fui-radius-full, 9999px);
|
|
3897
3897
|
transition: width var(--fui-transition-normal, 200ms cubic-bezier(0.4, 0, 0.2, 1));
|
|
3898
3898
|
}
|
|
3899
3899
|
|
|
3900
|
-
.
|
|
3900
|
+
._indicatorNeutral_le29r_55 {
|
|
3901
|
+
background-color: var(--fui-text-tertiary, rgb(86.4227350852, 86.4227350852, 86.4227350852));
|
|
3902
|
+
}
|
|
3903
|
+
|
|
3904
|
+
._indicatorSuccess_le29r_59 {
|
|
3901
3905
|
background-color: var(--fui-color-success-text, rgb(29.9064810064, 108.5606699289, 89.7163569497));
|
|
3902
3906
|
}
|
|
3903
3907
|
|
|
3904
|
-
.
|
|
3908
|
+
._indicatorWarning_le29r_63 {
|
|
3905
3909
|
background-color: var(--fui-color-warning-text, hsl(41.194706405, 139.9133245857%, 21.9712967806%));
|
|
3906
3910
|
}
|
|
3907
3911
|
|
|
3908
|
-
.
|
|
3912
|
+
._indicatorDanger_le29r_67 {
|
|
3909
3913
|
background-color: var(--fui-color-danger-text, rgb(162.7774064935, 63.3790672702, 56.4827894566));
|
|
3910
3914
|
}
|
|
3911
3915
|
|
|
3912
|
-
.
|
|
3916
|
+
._indicatorIndeterminate_le29r_71 {
|
|
3913
3917
|
width: 50% !important;
|
|
3914
|
-
animation:
|
|
3918
|
+
animation: _indeterminate_le29r_1 1.5s ease-in-out infinite;
|
|
3915
3919
|
}
|
|
3916
3920
|
|
|
3917
|
-
@keyframes
|
|
3921
|
+
@keyframes _indeterminate_le29r_1 {
|
|
3918
3922
|
0% {
|
|
3919
3923
|
transform: translateX(-100%);
|
|
3920
3924
|
}
|
|
@@ -3925,50 +3929,50 @@
|
|
|
3925
3929
|
transform: translateX(-100%);
|
|
3926
3930
|
}
|
|
3927
3931
|
}
|
|
3928
|
-
.
|
|
3932
|
+
._root_le29r_1[data-complete] ._indicator_le29r_48:not(._indicatorNeutral_le29r_55) {
|
|
3929
3933
|
background-color: var(--fui-color-success-text, rgb(29.9064810064, 108.5606699289, 89.7163569497));
|
|
3930
3934
|
}
|
|
3931
3935
|
|
|
3932
|
-
.
|
|
3936
|
+
._circular_le29r_91 {
|
|
3933
3937
|
position: relative;
|
|
3934
3938
|
display: inline-flex;
|
|
3935
3939
|
align-items: center;
|
|
3936
3940
|
justify-content: center;
|
|
3937
3941
|
}
|
|
3938
3942
|
|
|
3939
|
-
.
|
|
3943
|
+
._circularSvg_le29r_98 {
|
|
3940
3944
|
transform: rotate(-90deg);
|
|
3941
3945
|
}
|
|
3942
3946
|
|
|
3943
|
-
.
|
|
3947
|
+
._circularTrack_le29r_102 {
|
|
3944
3948
|
stroke: var(--fui-bg-tertiary, #f4f4f4);
|
|
3945
3949
|
fill: none;
|
|
3946
3950
|
}
|
|
3947
3951
|
|
|
3948
|
-
.
|
|
3952
|
+
._circularIndicator_le29r_107 {
|
|
3949
3953
|
stroke: var(--fui-color-accent, #006b57);
|
|
3950
3954
|
fill: none;
|
|
3951
3955
|
stroke-linecap: round;
|
|
3952
3956
|
transition: stroke-dashoffset var(--fui-transition-normal, 200ms cubic-bezier(0.4, 0, 0.2, 1));
|
|
3953
3957
|
}
|
|
3954
3958
|
|
|
3955
|
-
.
|
|
3959
|
+
._circularIndicatorSuccess_le29r_114 {
|
|
3956
3960
|
stroke: var(--fui-color-success-text, rgb(29.9064810064, 108.5606699289, 89.7163569497));
|
|
3957
3961
|
}
|
|
3958
3962
|
|
|
3959
|
-
.
|
|
3963
|
+
._circularIndicatorWarning_le29r_118 {
|
|
3960
3964
|
stroke: var(--fui-color-warning-text, hsl(41.194706405, 139.9133245857%, 21.9712967806%));
|
|
3961
3965
|
}
|
|
3962
3966
|
|
|
3963
|
-
.
|
|
3967
|
+
._circularIndicatorDanger_le29r_122 {
|
|
3964
3968
|
stroke: var(--fui-color-danger-text, rgb(162.7774064935, 63.3790672702, 56.4827894566));
|
|
3965
3969
|
}
|
|
3966
3970
|
|
|
3967
|
-
.
|
|
3968
|
-
animation:
|
|
3971
|
+
._circularIndicatorIndeterminate_le29r_126 {
|
|
3972
|
+
animation: _circularIndeterminate_le29r_1 1.5s ease-in-out infinite;
|
|
3969
3973
|
}
|
|
3970
3974
|
|
|
3971
|
-
@keyframes
|
|
3975
|
+
@keyframes _circularIndeterminate_le29r_1 {
|
|
3972
3976
|
0% {
|
|
3973
3977
|
stroke-dashoffset: 280;
|
|
3974
3978
|
transform: rotate(0deg);
|
|
@@ -3981,7 +3985,7 @@
|
|
|
3981
3985
|
transform: rotate(360deg);
|
|
3982
3986
|
}
|
|
3983
3987
|
}
|
|
3984
|
-
.
|
|
3988
|
+
._circularValue_le29r_143 {
|
|
3985
3989
|
position: absolute;
|
|
3986
3990
|
font-size: var(--fui-font-size-sm, 1rem);
|
|
3987
3991
|
font-weight: var(--fui-font-weight-medium, 500);
|
|
@@ -3989,24 +3993,24 @@
|
|
|
3989
3993
|
font-variant-numeric: tabular-nums;
|
|
3990
3994
|
}
|
|
3991
3995
|
|
|
3992
|
-
.
|
|
3996
|
+
._circularSm_le29r_151 {
|
|
3993
3997
|
width: var(--fui-space-4, 2rem);
|
|
3994
3998
|
height: var(--fui-space-4, 2rem);
|
|
3995
3999
|
}
|
|
3996
|
-
.
|
|
4000
|
+
._circularSm_le29r_151 ._circularValue_le29r_143 {
|
|
3997
4001
|
font-size: var(--fui-font-size-xs, 0.857rem);
|
|
3998
4002
|
}
|
|
3999
4003
|
|
|
4000
|
-
.
|
|
4004
|
+
._circularMd_le29r_159 {
|
|
4001
4005
|
width: var(--fui-space-6, 3rem);
|
|
4002
4006
|
height: var(--fui-space-6, 3rem);
|
|
4003
4007
|
}
|
|
4004
4008
|
|
|
4005
|
-
.
|
|
4009
|
+
._circularLg_le29r_164 {
|
|
4006
4010
|
width: var(--fui-space-8, 4rem);
|
|
4007
4011
|
height: var(--fui-space-8, 4rem);
|
|
4008
4012
|
}
|
|
4009
|
-
.
|
|
4013
|
+
._circularLg_le29r_164 ._circularValue_le29r_143 {
|
|
4010
4014
|
font-size: var(--fui-font-size-base, 1rem);
|
|
4011
4015
|
}._wrapper_11gr0_1 {
|
|
4012
4016
|
display: inline-flex;
|
|
@@ -92,9 +92,9 @@ function CardHeader({ children, divided, className, ...htmlProps }) {
|
|
|
92
92
|
const classes = [Card_module.default.header, divided && Card_module.default.headerDivided, className].filter(Boolean).join(" ");
|
|
93
93
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...htmlProps, className: classes, children });
|
|
94
94
|
}
|
|
95
|
-
function CardTitle({ children, className, ...htmlProps }) {
|
|
95
|
+
function CardTitle({ children, as: Component = "h3", className, ...htmlProps }) {
|
|
96
96
|
const classes = [Card_module.default.title, className].filter(Boolean).join(" ");
|
|
97
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Component, { ...htmlProps, className: classes, children });
|
|
98
98
|
}
|
|
99
99
|
function CardDescription({ children, className, ...htmlProps }) {
|
|
100
100
|
const classes = [Card_module.default.description, className].filter(Boolean).join(" ");
|
|
@@ -32,6 +32,9 @@ export interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
32
32
|
}
|
|
33
33
|
export interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
34
34
|
children: React.ReactNode;
|
|
35
|
+
/** Semantic heading level.
|
|
36
|
+
* @default "h3" */
|
|
37
|
+
as?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
35
38
|
}
|
|
36
39
|
export interface CardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
37
40
|
children: React.ReactNode;
|
|
@@ -47,7 +50,7 @@ export interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
47
50
|
}
|
|
48
51
|
declare function CardRoot({ children, variant: variantProp, padding, as: Component, className, style, ...htmlProps }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
49
52
|
declare function CardHeader({ children, divided, className, ...htmlProps }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
-
declare function CardTitle({ children, className, ...htmlProps }: CardTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
declare function CardTitle({ children, as: Component, className, ...htmlProps }: CardTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
51
54
|
declare function CardDescription({ children, className, ...htmlProps }: CardDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
52
55
|
declare function CardBody({ children, padding, className, ...htmlProps }: CardBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
53
56
|
declare function CardFooter({ children, className, ...htmlProps }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IACpF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;;;;;;gEAS4D;IAC5D,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;IAC7E;uBACmB;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACtC;4BACwB;IACxB,EAAE,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;8DAE0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IAC9E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO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Q,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAwCD,iBAAS,QAAQ,CAAC,EAChB,QAAQ,EACR,OAAO,EAAE,WAAuB,EAChC,OAAc,EACd,EAAE,EAAE,SAAqB,EACzB,SAAS,EACT,KAAK,EACL,GAAG,SAAS,EACb,EAAE,SAAS,2CA6DX;AAED,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,eAAe,2CASlF;AAED,iBAAS,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAgB,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,cAAc,2CAO7F;AAED,iBAAS,eAAe,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,oBAAoB,2CAOnF;AAED,iBAAS,QAAQ,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,aAAa,2CAS9E;AAED,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,eAAe,2CAOzE;AAMD,eAAO,MAAM,IAAI;;;;;;CAMf,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -73,9 +73,9 @@ function CardHeader({ children, divided, className, ...htmlProps }) {
|
|
|
73
73
|
const classes = [styles.header, divided && styles.headerDivided, className].filter(Boolean).join(" ");
|
|
74
74
|
return /* @__PURE__ */ jsx("div", { ...htmlProps, className: classes, children });
|
|
75
75
|
}
|
|
76
|
-
function CardTitle({ children, className, ...htmlProps }) {
|
|
76
|
+
function CardTitle({ children, as: Component = "h3", className, ...htmlProps }) {
|
|
77
77
|
const classes = [styles.title, className].filter(Boolean).join(" ");
|
|
78
|
-
return /* @__PURE__ */ jsx(
|
|
78
|
+
return /* @__PURE__ */ jsx(Component, { ...htmlProps, className: classes, children });
|
|
79
79
|
}
|
|
80
80
|
function CardDescription({ children, className, ...htmlProps }) {
|
|
81
81
|
const classes = [styles.description, className].filter(Boolean).join(" ");
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "
|
|
4
|
-
const header = "
|
|
5
|
-
const label = "
|
|
6
|
-
const value = "
|
|
7
|
-
const track = "
|
|
8
|
-
const trackSm = "
|
|
9
|
-
const trackMd = "
|
|
10
|
-
const trackLg = "
|
|
11
|
-
const indicator = "
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
3
|
+
const root = "_root_le29r_1";
|
|
4
|
+
const header = "_header_le29r_9";
|
|
5
|
+
const label = "_label_le29r_16";
|
|
6
|
+
const value = "_value_le29r_22";
|
|
7
|
+
const track = "_track_le29r_28";
|
|
8
|
+
const trackSm = "_trackSm_le29r_36";
|
|
9
|
+
const trackMd = "_trackMd_le29r_40";
|
|
10
|
+
const trackLg = "_trackLg_le29r_44";
|
|
11
|
+
const indicator = "_indicator_le29r_48";
|
|
12
|
+
const indicatorNeutral = "_indicatorNeutral_le29r_55";
|
|
13
|
+
const indicatorSuccess = "_indicatorSuccess_le29r_59";
|
|
14
|
+
const indicatorWarning = "_indicatorWarning_le29r_63";
|
|
15
|
+
const indicatorDanger = "_indicatorDanger_le29r_67";
|
|
16
|
+
const indicatorIndeterminate = "_indicatorIndeterminate_le29r_71";
|
|
17
|
+
const circular = "_circular_le29r_91";
|
|
18
|
+
const circularSvg = "_circularSvg_le29r_98";
|
|
19
|
+
const circularTrack = "_circularTrack_le29r_102";
|
|
20
|
+
const circularIndicator = "_circularIndicator_le29r_107";
|
|
21
|
+
const circularIndicatorSuccess = "_circularIndicatorSuccess_le29r_114";
|
|
22
|
+
const circularIndicatorWarning = "_circularIndicatorWarning_le29r_118";
|
|
23
|
+
const circularIndicatorDanger = "_circularIndicatorDanger_le29r_122";
|
|
24
|
+
const circularIndicatorIndeterminate = "_circularIndicatorIndeterminate_le29r_126";
|
|
25
|
+
const circularValue = "_circularValue_le29r_143";
|
|
26
|
+
const circularSm = "_circularSm_le29r_151";
|
|
27
|
+
const circularMd = "_circularMd_le29r_159";
|
|
28
|
+
const circularLg = "_circularLg_le29r_164";
|
|
28
29
|
const styles = {
|
|
29
30
|
root,
|
|
30
31
|
header,
|
|
@@ -35,6 +36,7 @@ const styles = {
|
|
|
35
36
|
trackMd,
|
|
36
37
|
trackLg,
|
|
37
38
|
indicator,
|
|
39
|
+
indicatorNeutral,
|
|
38
40
|
indicatorSuccess,
|
|
39
41
|
indicatorWarning,
|
|
40
42
|
indicatorDanger,
|
|
@@ -69,6 +71,7 @@ exports.header = header;
|
|
|
69
71
|
exports.indicator = indicator;
|
|
70
72
|
exports.indicatorDanger = indicatorDanger;
|
|
71
73
|
exports.indicatorIndeterminate = indicatorIndeterminate;
|
|
74
|
+
exports.indicatorNeutral = indicatorNeutral;
|
|
72
75
|
exports.indicatorSuccess = indicatorSuccess;
|
|
73
76
|
exports.indicatorWarning = indicatorWarning;
|
|
74
77
|
exports.label = label;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
const root = "
|
|
2
|
-
const header = "
|
|
3
|
-
const label = "
|
|
4
|
-
const value = "
|
|
5
|
-
const track = "
|
|
6
|
-
const trackSm = "
|
|
7
|
-
const trackMd = "
|
|
8
|
-
const trackLg = "
|
|
9
|
-
const indicator = "
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
1
|
+
const root = "_root_le29r_1";
|
|
2
|
+
const header = "_header_le29r_9";
|
|
3
|
+
const label = "_label_le29r_16";
|
|
4
|
+
const value = "_value_le29r_22";
|
|
5
|
+
const track = "_track_le29r_28";
|
|
6
|
+
const trackSm = "_trackSm_le29r_36";
|
|
7
|
+
const trackMd = "_trackMd_le29r_40";
|
|
8
|
+
const trackLg = "_trackLg_le29r_44";
|
|
9
|
+
const indicator = "_indicator_le29r_48";
|
|
10
|
+
const indicatorNeutral = "_indicatorNeutral_le29r_55";
|
|
11
|
+
const indicatorSuccess = "_indicatorSuccess_le29r_59";
|
|
12
|
+
const indicatorWarning = "_indicatorWarning_le29r_63";
|
|
13
|
+
const indicatorDanger = "_indicatorDanger_le29r_67";
|
|
14
|
+
const indicatorIndeterminate = "_indicatorIndeterminate_le29r_71";
|
|
15
|
+
const circular = "_circular_le29r_91";
|
|
16
|
+
const circularSvg = "_circularSvg_le29r_98";
|
|
17
|
+
const circularTrack = "_circularTrack_le29r_102";
|
|
18
|
+
const circularIndicator = "_circularIndicator_le29r_107";
|
|
19
|
+
const circularIndicatorSuccess = "_circularIndicatorSuccess_le29r_114";
|
|
20
|
+
const circularIndicatorWarning = "_circularIndicatorWarning_le29r_118";
|
|
21
|
+
const circularIndicatorDanger = "_circularIndicatorDanger_le29r_122";
|
|
22
|
+
const circularIndicatorIndeterminate = "_circularIndicatorIndeterminate_le29r_126";
|
|
23
|
+
const circularValue = "_circularValue_le29r_143";
|
|
24
|
+
const circularSm = "_circularSm_le29r_151";
|
|
25
|
+
const circularMd = "_circularMd_le29r_159";
|
|
26
|
+
const circularLg = "_circularLg_le29r_164";
|
|
26
27
|
const styles = {
|
|
27
28
|
root,
|
|
28
29
|
header,
|
|
@@ -33,6 +34,7 @@ const styles = {
|
|
|
33
34
|
trackMd,
|
|
34
35
|
trackLg,
|
|
35
36
|
indicator,
|
|
37
|
+
indicatorNeutral,
|
|
36
38
|
indicatorSuccess,
|
|
37
39
|
indicatorWarning,
|
|
38
40
|
indicatorDanger,
|
|
@@ -68,6 +70,7 @@ export {
|
|
|
68
70
|
indicator,
|
|
69
71
|
indicatorDanger,
|
|
70
72
|
indicatorIndeterminate,
|
|
73
|
+
indicatorNeutral,
|
|
71
74
|
indicatorSuccess,
|
|
72
75
|
indicatorWarning,
|
|
73
76
|
label,
|
|
@@ -14,6 +14,7 @@ function ProgressRoot({
|
|
|
14
14
|
showValue = false,
|
|
15
15
|
formatValue,
|
|
16
16
|
className,
|
|
17
|
+
role,
|
|
17
18
|
"aria-label": ariaLabel,
|
|
18
19
|
"aria-valuetext": ariaValueText,
|
|
19
20
|
...htmlProps
|
|
@@ -30,6 +31,7 @@ function ProgressRoot({
|
|
|
30
31
|
].filter(Boolean).join(" ");
|
|
31
32
|
const indicatorClasses = [
|
|
32
33
|
Progress_module.default.indicator,
|
|
34
|
+
variant === "neutral" && Progress_module.default.indicatorNeutral,
|
|
33
35
|
variant === "success" && Progress_module.default.indicatorSuccess,
|
|
34
36
|
variant === "warning" && Progress_module.default.indicatorWarning,
|
|
35
37
|
variant === "danger" && Progress_module.default.indicatorDanger,
|
|
@@ -46,6 +48,7 @@ function ProgressRoot({
|
|
|
46
48
|
min,
|
|
47
49
|
max,
|
|
48
50
|
className: rootClasses,
|
|
51
|
+
role: role ?? "progressbar",
|
|
49
52
|
"aria-label": ariaLabel || (label ? void 0 : "Progress"),
|
|
50
53
|
"aria-valuetext": effectiveValueText,
|
|
51
54
|
"aria-busy": isIndeterminate,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
export interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "defaultValue"> {
|
|
3
3
|
/** Current progress value (0-100). Null for indeterminate. */
|
|
4
4
|
value?: number | null;
|
|
5
5
|
/** Minimum value */
|
|
@@ -7,9 +7,9 @@ export interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
7
7
|
/** Maximum value */
|
|
8
8
|
max?: number;
|
|
9
9
|
/** Size of the progress bar */
|
|
10
|
-
size?:
|
|
10
|
+
size?: "sm" | "md" | "lg";
|
|
11
11
|
/** Color variant */
|
|
12
|
-
variant?:
|
|
12
|
+
variant?: "default" | "neutral" | "success" | "warning" | "danger";
|
|
13
13
|
/** Label text */
|
|
14
14
|
label?: string;
|
|
15
15
|
/** Show percentage value */
|
|
@@ -21,16 +21,16 @@ export interface CircularProgressProps extends React.HTMLAttributes<HTMLDivEleme
|
|
|
21
21
|
/** Current progress value (0-100). Null for indeterminate. */
|
|
22
22
|
value?: number | null;
|
|
23
23
|
/** Size of the circular progress */
|
|
24
|
-
size?:
|
|
24
|
+
size?: "sm" | "md" | "lg";
|
|
25
25
|
/** Color variant */
|
|
26
|
-
variant?:
|
|
26
|
+
variant?: "default" | "success" | "warning" | "danger";
|
|
27
27
|
/** Show percentage in center */
|
|
28
28
|
showValue?: boolean;
|
|
29
29
|
/** Stroke width */
|
|
30
30
|
strokeWidth?: number;
|
|
31
31
|
}
|
|
32
|
-
declare function ProgressRoot({ value, min, max, size, variant, label, showValue, formatValue, className,
|
|
33
|
-
declare function CircularProgressRoot({ value, size, variant, showValue, strokeWidth: customStrokeWidth, className,
|
|
32
|
+
declare function ProgressRoot({ value, min, max, size, variant, label, showValue, formatValue, className, role, "aria-label": ariaLabel, "aria-valuetext": ariaValueText, ...htmlProps }: ProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function CircularProgressRoot({ value, size, variant, showValue, strokeWidth: customStrokeWidth, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-valuetext": ariaValueText, ...htmlProps }: CircularProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
34
34
|
export declare const CircularProgress: typeof CircularProgressRoot;
|
|
35
35
|
export declare const Progress: typeof ProgressRoot & {
|
|
36
36
|
Root: typeof ProgressRoot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC;IAC/F,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,oBAAoB;IACpB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC;IAC/F,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,oBAAoB;IACpB,OAAO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@@ -12,6 +12,7 @@ function ProgressRoot({
|
|
|
12
12
|
showValue = false,
|
|
13
13
|
formatValue,
|
|
14
14
|
className,
|
|
15
|
+
role,
|
|
15
16
|
"aria-label": ariaLabel,
|
|
16
17
|
"aria-valuetext": ariaValueText,
|
|
17
18
|
...htmlProps
|
|
@@ -28,6 +29,7 @@ function ProgressRoot({
|
|
|
28
29
|
].filter(Boolean).join(" ");
|
|
29
30
|
const indicatorClasses = [
|
|
30
31
|
styles.indicator,
|
|
32
|
+
variant === "neutral" && styles.indicatorNeutral,
|
|
31
33
|
variant === "success" && styles.indicatorSuccess,
|
|
32
34
|
variant === "warning" && styles.indicatorWarning,
|
|
33
35
|
variant === "danger" && styles.indicatorDanger,
|
|
@@ -44,6 +46,7 @@ function ProgressRoot({
|
|
|
44
46
|
min,
|
|
45
47
|
max,
|
|
46
48
|
className: rootClasses,
|
|
49
|
+
role: role ?? "progressbar",
|
|
47
50
|
"aria-label": ariaLabel || (label ? void 0 : "Progress"),
|
|
48
51
|
"aria-valuetext": effectiveValueText,
|
|
49
52
|
"aria-busy": isIndeterminate,
|