@luxfi/ui 6.1.3 → 7.1.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/accordion.cjs +213 -0
- package/dist/accordion.d.cts +74 -0
- package/dist/accordion.d.ts +74 -0
- package/dist/accordion.js +186 -0
- package/dist/alert.cjs +430 -0
- package/dist/alert.d.cts +30 -0
- package/dist/alert.d.ts +30 -0
- package/dist/alert.js +408 -0
- package/dist/avatar.cjs +149 -0
- package/dist/avatar.d.cts +25 -0
- package/dist/avatar.d.ts +25 -0
- package/dist/avatar.js +125 -0
- package/dist/badge.cjs +452 -0
- package/dist/badge.d.cts +19 -0
- package/dist/badge.d.ts +19 -0
- package/dist/badge.js +431 -0
- package/dist/bank.cjs +272 -0
- package/dist/bank.d.cts +76 -0
- package/dist/bank.d.ts +76 -0
- package/dist/bank.js +258 -0
- package/dist/button.cjs +578 -0
- package/dist/button.d.cts +55 -0
- package/dist/button.d.ts +55 -0
- package/dist/button.js +553 -0
- package/dist/checkbox.cjs +265 -0
- package/dist/checkbox.d.cts +31 -0
- package/dist/checkbox.d.ts +31 -0
- package/dist/checkbox.js +241 -0
- package/dist/close-button.cjs +92 -0
- package/dist/close-button.d.cts +9 -0
- package/dist/close-button.d.ts +9 -0
- package/dist/close-button.js +70 -0
- package/dist/collapsible.cjs +555 -0
- package/dist/collapsible.d.cts +23 -0
- package/dist/collapsible.d.ts +23 -0
- package/dist/collapsible.js +532 -0
- package/dist/color-mode.cjs +96 -0
- package/dist/color-mode.d.cts +25 -0
- package/dist/color-mode.d.ts +25 -0
- package/dist/color-mode.js +72 -0
- package/dist/dialog.cjs +295 -0
- package/dist/dialog.d.cts +65 -0
- package/dist/dialog.d.ts +65 -0
- package/dist/dialog.js +263 -0
- package/dist/drawer.cjs +231 -0
- package/dist/drawer.d.cts +36 -0
- package/dist/drawer.d.ts +36 -0
- package/dist/drawer.js +199 -0
- package/dist/empty-state.cjs +93 -0
- package/dist/empty-state.d.cts +13 -0
- package/dist/empty-state.d.ts +13 -0
- package/dist/empty-state.js +71 -0
- package/dist/expiration-selector.cjs +138 -0
- package/dist/expiration-selector.d.cts +16 -0
- package/dist/expiration-selector.d.ts +16 -0
- package/dist/expiration-selector.js +116 -0
- package/dist/field.cjs +183 -0
- package/dist/field.d.cts +24 -0
- package/dist/field.d.ts +24 -0
- package/dist/field.js +160 -0
- package/dist/greeks-display.cjs +114 -0
- package/dist/greeks-display.d.cts +14 -0
- package/dist/greeks-display.d.ts +14 -0
- package/dist/greeks-display.js +92 -0
- package/dist/heading.cjs +41 -0
- package/dist/heading.d.cts +10 -0
- package/dist/heading.d.ts +10 -0
- package/dist/heading.js +35 -0
- package/dist/icon-button.cjs +367 -0
- package/dist/icon-button.d.cts +33 -0
- package/dist/icon-button.d.ts +33 -0
- package/dist/icon-button.js +345 -0
- package/dist/image.cjs +425 -0
- package/dist/image.d.cts +57 -0
- package/dist/image.d.ts +57 -0
- package/dist/image.js +404 -0
- package/dist/index.cjs +7220 -0
- package/dist/index.d.cts +55 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +7043 -0
- package/dist/input-group.cjs +155 -0
- package/dist/input-group.d.cts +17 -0
- package/dist/input-group.d.ts +17 -0
- package/dist/input-group.js +133 -0
- package/dist/input.cjs +65 -0
- package/dist/input.d.cts +11 -0
- package/dist/input.d.ts +11 -0
- package/dist/input.js +59 -0
- package/dist/link.cjs +483 -0
- package/dist/link.d.cts +37 -0
- package/dist/link.d.ts +37 -0
- package/dist/link.js +459 -0
- package/dist/menu.cjs +305 -0
- package/dist/menu.d.cts +84 -0
- package/dist/menu.d.ts +84 -0
- package/dist/menu.js +269 -0
- package/dist/option-chain.cjs +221 -0
- package/dist/option-chain.d.cts +37 -0
- package/dist/option-chain.d.ts +37 -0
- package/dist/option-chain.js +199 -0
- package/dist/option-position.cjs +164 -0
- package/dist/option-position.d.cts +29 -0
- package/dist/option-position.d.ts +29 -0
- package/dist/option-position.js +142 -0
- package/dist/pin-input.cjs +182 -0
- package/dist/pin-input.d.cts +25 -0
- package/dist/pin-input.d.ts +25 -0
- package/dist/pin-input.js +160 -0
- package/dist/pnl-diagram.cjs +453 -0
- package/dist/pnl-diagram.d.cts +11 -0
- package/dist/pnl-diagram.d.ts +11 -0
- package/dist/pnl-diagram.js +431 -0
- package/dist/popover.cjs +342 -0
- package/dist/popover.d.cts +73 -0
- package/dist/popover.d.ts +73 -0
- package/dist/popover.js +310 -0
- package/dist/progress-circle.cjs +152 -0
- package/dist/progress-circle.d.cts +47 -0
- package/dist/progress-circle.d.ts +47 -0
- package/dist/progress-circle.js +128 -0
- package/dist/progress.cjs +117 -0
- package/dist/progress.d.cts +28 -0
- package/dist/progress.d.ts +28 -0
- package/dist/progress.js +94 -0
- package/dist/provider.cjs +62 -0
- package/dist/provider.d.cts +7 -0
- package/dist/provider.d.ts +7 -0
- package/dist/provider.js +40 -0
- package/dist/radio.cjs +177 -0
- package/dist/radio.d.cts +53 -0
- package/dist/radio.d.ts +53 -0
- package/dist/radio.js +153 -0
- package/dist/rating.cjs +80 -0
- package/dist/rating.d.cts +14 -0
- package/dist/rating.d.ts +14 -0
- package/dist/rating.js +58 -0
- package/dist/select.cjs +644 -0
- package/dist/select.d.cts +130 -0
- package/dist/select.d.ts +130 -0
- package/dist/select.js +610 -0
- package/dist/separator.cjs +57 -0
- package/dist/separator.d.cts +13 -0
- package/dist/separator.d.ts +13 -0
- package/dist/separator.js +51 -0
- package/dist/skeleton.cjs +223 -0
- package/dist/skeleton.d.cts +60 -0
- package/dist/skeleton.d.ts +60 -0
- package/dist/skeleton.js +199 -0
- package/dist/slider.cjs +138 -0
- package/dist/slider.d.cts +24 -0
- package/dist/slider.d.ts +24 -0
- package/dist/slider.js +115 -0
- package/dist/strategy-builder.cjs +373 -0
- package/dist/strategy-builder.d.cts +26 -0
- package/dist/strategy-builder.d.ts +26 -0
- package/dist/strategy-builder.js +351 -0
- package/dist/switch.cjs +163 -0
- package/dist/switch.d.cts +27 -0
- package/dist/switch.d.ts +27 -0
- package/dist/switch.js +140 -0
- package/dist/table.cjs +897 -0
- package/dist/table.d.cts +107 -0
- package/dist/table.d.ts +107 -0
- package/dist/table.js +866 -0
- package/dist/tabs.cjs +240 -0
- package/dist/tabs.d.cts +78 -0
- package/dist/tabs.d.ts +78 -0
- package/dist/tabs.js +213 -0
- package/dist/tag.cjs +529 -0
- package/dist/tag.d.cts +21 -0
- package/dist/tag.d.ts +21 -0
- package/dist/tag.js +507 -0
- package/dist/textarea.cjs +65 -0
- package/dist/textarea.d.cts +11 -0
- package/dist/textarea.d.ts +11 -0
- package/dist/textarea.js +59 -0
- package/dist/toaster.cjs +99 -0
- package/dist/toaster.d.cts +29 -0
- package/dist/toaster.d.ts +29 -0
- package/dist/toaster.js +96 -0
- package/dist/tooltip.cjs +172 -0
- package/dist/tooltip.d.cts +38 -0
- package/dist/tooltip.d.ts +38 -0
- package/dist/tooltip.js +150 -0
- package/dist/utils.cjs +11 -0
- package/dist/utils.d.cts +5 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +9 -0
- package/package.json +284 -89
- package/src/accordion.tsx +285 -0
- package/src/alert.tsx +221 -0
- package/src/avatar.tsx +174 -0
- package/src/badge.tsx +147 -0
- package/src/bank.tsx +325 -0
- package/src/button.tsx +477 -0
- package/src/checkbox.tsx +307 -0
- package/src/close-button.tsx +77 -0
- package/src/collapsible.tsx +126 -0
- package/src/color-mode.tsx +125 -0
- package/src/dialog.tsx +346 -0
- package/src/drawer.tsx +186 -0
- package/src/empty-state.tsx +97 -0
- package/src/expiration-selector.tsx +163 -0
- package/src/field.tsx +202 -0
- package/src/greeks-display.tsx +138 -0
- package/src/heading.tsx +44 -0
- package/src/icon-button.tsx +217 -0
- package/src/image.tsx +280 -0
- package/src/index.ts +267 -138
- package/src/input-group.tsx +159 -0
- package/src/input.tsx +60 -0
- package/src/link.tsx +326 -0
- package/src/menu.tsx +471 -0
- package/src/option-chain.tsx +261 -0
- package/src/option-position.tsx +200 -0
- package/src/pin-input.tsx +187 -0
- package/src/pnl-diagram.tsx +458 -0
- package/src/popover.tsx +386 -0
- package/src/progress-circle.tsx +180 -0
- package/src/progress.tsx +109 -0
- package/src/provider.tsx +12 -0
- package/src/radio.tsx +175 -0
- package/src/rating.tsx +79 -0
- package/src/select.tsx +696 -0
- package/src/separator.tsx +59 -0
- package/src/skeleton.tsx +254 -0
- package/src/slider.tsx +152 -0
- package/src/strategy-builder.tsx +466 -0
- package/src/switch.tsx +158 -0
- package/src/table.tsx +621 -0
- package/src/tabs.tsx +354 -0
- package/src/tag.tsx +159 -0
- package/src/textarea.tsx +60 -0
- package/src/toaster.tsx +117 -0
- package/src/tokens.css +438 -0
- package/src/tooltip.tsx +191 -0
- package/src/utils/cn.ts +7 -0
- package/src/utils.ts +6 -0
- package/tokens.css +438 -0
- package/LICENSE +0 -122
- package/README.md +0 -109
package/dist/popover.js
ADDED
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Popover } from '@hanzogui/popover';
|
|
3
|
+
import * as React2 from 'react';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
|
+
import { twMerge } from 'tailwind-merge';
|
|
6
|
+
import { styled, View } from '@hanzogui/core';
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
// src/popover.tsx
|
|
10
|
+
function cn(...inputs) {
|
|
11
|
+
return twMerge(clsx(inputs));
|
|
12
|
+
}
|
|
13
|
+
var CLOSE_ICON_PATH = "M9.44 8.035a.791.791 0 0 0 1.12 0l3.802-3.803a.791.791 0 0 1 1.119 0l.287.287a.79.79 0 0 1 0 1.119L11.965 9.44a.79.79 0 0 0 0 1.118l3.803 3.803a.791.791 0 0 1 0 1.119l-.287.287a.791.791 0 0 1-1.119 0l-3.803-3.803a.79.79 0 0 0-1.118 0l-3.803 3.803a.79.79 0 0 1-1.119 0l-.287-.287a.791.791 0 0 1 0-1.119l3.803-3.803a.791.791 0 0 0 0-1.118L4.232 5.638a.791.791 0 0 1 0-1.119l.287-.287a.791.791 0 0 1 1.119 0L9.44 8.035Z";
|
|
14
|
+
var CloseButtonFrame = styled(View, {
|
|
15
|
+
name: "LuxCloseButton",
|
|
16
|
+
render: /* @__PURE__ */ jsx("button", { type: "button", "aria-label": "Close" }),
|
|
17
|
+
role: "button",
|
|
18
|
+
cursor: "pointer",
|
|
19
|
+
display: "inline-flex",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
justifyContent: "center",
|
|
22
|
+
width: 20,
|
|
23
|
+
height: 20,
|
|
24
|
+
minWidth: 0,
|
|
25
|
+
flexShrink: 1,
|
|
26
|
+
padding: 0,
|
|
27
|
+
borderRadius: 4,
|
|
28
|
+
borderWidth: 0,
|
|
29
|
+
overflow: "hidden",
|
|
30
|
+
backgroundColor: "transparent",
|
|
31
|
+
hoverStyle: {
|
|
32
|
+
backgroundColor: "transparent"
|
|
33
|
+
},
|
|
34
|
+
variants: {
|
|
35
|
+
disabled: {
|
|
36
|
+
true: {
|
|
37
|
+
opacity: 0.4,
|
|
38
|
+
pointerEvents: "none"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
var CLOSE_BUTTON_CLASSES = [
|
|
44
|
+
"text-[var(--closeButton-fg,currentColor)]",
|
|
45
|
+
"hover:text-[var(--hover-color,currentColor)]",
|
|
46
|
+
"disabled:opacity-40"
|
|
47
|
+
].join(" ");
|
|
48
|
+
var CloseButton = React2.forwardRef(function CloseButton2(props, ref) {
|
|
49
|
+
const { variant: _variant, size: _size, className, children, ...rest } = props;
|
|
50
|
+
return /* @__PURE__ */ jsx(
|
|
51
|
+
CloseButtonFrame,
|
|
52
|
+
{
|
|
53
|
+
ref,
|
|
54
|
+
className: [CLOSE_BUTTON_CLASSES, className].filter(Boolean).join(" "),
|
|
55
|
+
...rest,
|
|
56
|
+
children: children ?? /* @__PURE__ */ jsx(
|
|
57
|
+
"svg",
|
|
58
|
+
{
|
|
59
|
+
className: "size-5",
|
|
60
|
+
viewBox: "0 0 20 20",
|
|
61
|
+
fill: "none",
|
|
62
|
+
"aria-hidden": "true",
|
|
63
|
+
children: /* @__PURE__ */ jsx(
|
|
64
|
+
"path",
|
|
65
|
+
{
|
|
66
|
+
d: CLOSE_ICON_PATH,
|
|
67
|
+
fill: "currentColor"
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
});
|
|
75
|
+
function parsePlacement(placement) {
|
|
76
|
+
if (!placement) {
|
|
77
|
+
return { side: "bottom", align: "start" };
|
|
78
|
+
}
|
|
79
|
+
const parts = placement.split("-");
|
|
80
|
+
const side = parts[0] ?? "bottom";
|
|
81
|
+
const alignPart = parts[1];
|
|
82
|
+
let align = "center";
|
|
83
|
+
if (alignPart === "start") {
|
|
84
|
+
align = "start";
|
|
85
|
+
} else if (alignPart === "end") {
|
|
86
|
+
align = "end";
|
|
87
|
+
}
|
|
88
|
+
return { side, align };
|
|
89
|
+
}
|
|
90
|
+
var PositioningContext = React2.createContext({
|
|
91
|
+
side: "bottom",
|
|
92
|
+
align: "start",
|
|
93
|
+
sideOffset: 4,
|
|
94
|
+
alignOffset: 0,
|
|
95
|
+
collisionPadding: 4,
|
|
96
|
+
autoFocus: false,
|
|
97
|
+
closeOnInteractOutside: true
|
|
98
|
+
});
|
|
99
|
+
var PopoverRoot = (props) => {
|
|
100
|
+
const {
|
|
101
|
+
children,
|
|
102
|
+
open,
|
|
103
|
+
defaultOpen,
|
|
104
|
+
onOpenChange,
|
|
105
|
+
positioning,
|
|
106
|
+
autoFocus = false,
|
|
107
|
+
closeOnInteractOutside = true,
|
|
108
|
+
// lazyMount and unmountOnExit are handled via keepChildrenMounted
|
|
109
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
110
|
+
lazyMount: _lazyMount,
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
112
|
+
unmountOnExit: _unmountOnExit
|
|
113
|
+
} = props;
|
|
114
|
+
const mergedPositioning = {
|
|
115
|
+
placement: "bottom-start",
|
|
116
|
+
overflowPadding: 4,
|
|
117
|
+
...positioning,
|
|
118
|
+
offset: {
|
|
119
|
+
mainAxis: 4,
|
|
120
|
+
...positioning?.offset
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
const { side, align } = parsePlacement(mergedPositioning.placement);
|
|
124
|
+
const positioningValue = React2.useMemo(() => ({
|
|
125
|
+
side,
|
|
126
|
+
align,
|
|
127
|
+
sideOffset: mergedPositioning.offset?.mainAxis ?? 4,
|
|
128
|
+
alignOffset: mergedPositioning.offset?.crossAxis ?? 0,
|
|
129
|
+
collisionPadding: mergedPositioning.overflowPadding ?? 4,
|
|
130
|
+
autoFocus,
|
|
131
|
+
closeOnInteractOutside
|
|
132
|
+
}), [
|
|
133
|
+
side,
|
|
134
|
+
align,
|
|
135
|
+
mergedPositioning.offset?.mainAxis,
|
|
136
|
+
mergedPositioning.offset?.crossAxis,
|
|
137
|
+
mergedPositioning.overflowPadding,
|
|
138
|
+
autoFocus,
|
|
139
|
+
closeOnInteractOutside
|
|
140
|
+
]);
|
|
141
|
+
const handleOpenChange = React2.useCallback((isOpen) => {
|
|
142
|
+
onOpenChange?.({ open: isOpen });
|
|
143
|
+
}, [onOpenChange]);
|
|
144
|
+
const placement = mergedPositioning.placement ?? "bottom-start";
|
|
145
|
+
const offset = mergedPositioning.offset?.mainAxis ?? 4;
|
|
146
|
+
return /* @__PURE__ */ jsx(PositioningContext.Provider, { value: positioningValue, children: /* @__PURE__ */ jsx(
|
|
147
|
+
Popover,
|
|
148
|
+
{
|
|
149
|
+
open,
|
|
150
|
+
defaultOpen,
|
|
151
|
+
onOpenChange: handleOpenChange,
|
|
152
|
+
placement,
|
|
153
|
+
offset,
|
|
154
|
+
disableFocus: !autoFocus,
|
|
155
|
+
children
|
|
156
|
+
}
|
|
157
|
+
) });
|
|
158
|
+
};
|
|
159
|
+
var PopoverTrigger = React2.forwardRef(function PopoverTrigger2(props, ref) {
|
|
160
|
+
const { asChild = true, ...rest } = props;
|
|
161
|
+
return /* @__PURE__ */ jsx(Popover.Trigger, { asChild: asChild ? "except-style" : void 0, ref, ...rest });
|
|
162
|
+
});
|
|
163
|
+
var PopoverContent = React2.forwardRef(function PopoverContent2(props, ref) {
|
|
164
|
+
const { portalled = true, portalRef: _portalRef, className, w, minW, maxW, paddingTop, style: styleProp, ...rest } = props;
|
|
165
|
+
const resolvedW = typeof w === "object" ? w.base ?? w.lg : w;
|
|
166
|
+
const contentStyle = {
|
|
167
|
+
...styleProp,
|
|
168
|
+
...resolvedW ? { width: resolvedW } : {},
|
|
169
|
+
...minW ? { minWidth: minW } : {},
|
|
170
|
+
...maxW ? { maxWidth: maxW } : {},
|
|
171
|
+
...paddingTop !== void 0 ? { paddingTop: typeof paddingTop === "number" ? `${paddingTop * 4}px` : paddingTop } : {}
|
|
172
|
+
};
|
|
173
|
+
return /* @__PURE__ */ jsx(
|
|
174
|
+
Popover.Content,
|
|
175
|
+
{
|
|
176
|
+
ref,
|
|
177
|
+
unstyled: true,
|
|
178
|
+
className: cn(
|
|
179
|
+
"z-50 rounded-lg border border-[var(--color-popover-border,var(--color-border-divider))]",
|
|
180
|
+
"bg-[var(--color-popover-bg,var(--color-dialog-bg))]",
|
|
181
|
+
"shadow-[var(--shadow-popover,var(--shadow-lg))]",
|
|
182
|
+
"outline-none",
|
|
183
|
+
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
184
|
+
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
185
|
+
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
186
|
+
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
187
|
+
className
|
|
188
|
+
),
|
|
189
|
+
style: Object.keys(contentStyle).length > 0 ? contentStyle : void 0,
|
|
190
|
+
...rest
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
});
|
|
194
|
+
var PopoverArrow = React2.forwardRef(function PopoverArrow2(props, ref) {
|
|
195
|
+
const { className, ...rest } = props;
|
|
196
|
+
return /* @__PURE__ */ jsx(
|
|
197
|
+
Popover.Arrow,
|
|
198
|
+
{
|
|
199
|
+
ref,
|
|
200
|
+
unstyled: true,
|
|
201
|
+
className: cn("fill-[var(--color-popover-bg,var(--color-dialog-bg))]", className),
|
|
202
|
+
...rest
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
});
|
|
206
|
+
var PopoverCloseTrigger = React2.forwardRef(function PopoverCloseTrigger2(props, ref) {
|
|
207
|
+
const { className, ...rest } = props;
|
|
208
|
+
return /* @__PURE__ */ jsx(
|
|
209
|
+
Popover.Close,
|
|
210
|
+
{
|
|
211
|
+
unstyled: true,
|
|
212
|
+
className: cn("absolute top-1 right-1", className),
|
|
213
|
+
...rest,
|
|
214
|
+
asChild: true,
|
|
215
|
+
ref,
|
|
216
|
+
children: /* @__PURE__ */ jsx(CloseButton, {})
|
|
217
|
+
}
|
|
218
|
+
);
|
|
219
|
+
});
|
|
220
|
+
var PopoverCloseTriggerWrapper = React2.forwardRef(function PopoverCloseTriggerWrapper2(props, ref) {
|
|
221
|
+
const { disabled, children, ...rest } = props;
|
|
222
|
+
if (disabled) {
|
|
223
|
+
return children;
|
|
224
|
+
}
|
|
225
|
+
return /* @__PURE__ */ jsx(Popover.Close, { ref, ...rest, asChild: true, children });
|
|
226
|
+
});
|
|
227
|
+
var PopoverBody = React2.forwardRef(function PopoverBody2(props, ref) {
|
|
228
|
+
const {
|
|
229
|
+
className,
|
|
230
|
+
style: styleProp,
|
|
231
|
+
display: _display,
|
|
232
|
+
flexDir: _flexDir,
|
|
233
|
+
rowGap: _rowGap,
|
|
234
|
+
px: _px,
|
|
235
|
+
py: _py,
|
|
236
|
+
textStyle: _textStyle,
|
|
237
|
+
alignItems: _alignItems,
|
|
238
|
+
...rest
|
|
239
|
+
} = props;
|
|
240
|
+
const bodyStyle = {
|
|
241
|
+
...styleProp,
|
|
242
|
+
..._display ? { display: _display } : {},
|
|
243
|
+
..._flexDir ? { flexDirection: _flexDir } : {},
|
|
244
|
+
..._rowGap !== void 0 ? { rowGap: typeof _rowGap === "number" ? `${_rowGap * 4}px` : _rowGap } : {},
|
|
245
|
+
..._px !== void 0 ? {
|
|
246
|
+
paddingLeft: typeof _px === "number" ? `${_px * 4}px` : _px,
|
|
247
|
+
paddingRight: typeof _px === "number" ? `${_px * 4}px` : _px
|
|
248
|
+
} : {},
|
|
249
|
+
..._py !== void 0 ? {
|
|
250
|
+
paddingTop: typeof _py === "number" ? `${_py * 4}px` : _py,
|
|
251
|
+
paddingBottom: typeof _py === "number" ? `${_py * 4}px` : _py
|
|
252
|
+
} : {},
|
|
253
|
+
..._alignItems ? { alignItems: _alignItems } : {}
|
|
254
|
+
};
|
|
255
|
+
return /* @__PURE__ */ jsx(
|
|
256
|
+
"div",
|
|
257
|
+
{
|
|
258
|
+
ref,
|
|
259
|
+
className: cn("p-4", className),
|
|
260
|
+
style: Object.keys(bodyStyle).length > 0 ? bodyStyle : void 0,
|
|
261
|
+
...rest
|
|
262
|
+
}
|
|
263
|
+
);
|
|
264
|
+
});
|
|
265
|
+
var PopoverHeader = React2.forwardRef(function PopoverHeader2(props, ref) {
|
|
266
|
+
const { className, ...rest } = props;
|
|
267
|
+
return /* @__PURE__ */ jsx(
|
|
268
|
+
"div",
|
|
269
|
+
{
|
|
270
|
+
ref,
|
|
271
|
+
className: cn("px-4 pt-4 pb-0 font-semibold", className),
|
|
272
|
+
...rest
|
|
273
|
+
}
|
|
274
|
+
);
|
|
275
|
+
});
|
|
276
|
+
var PopoverFooter = React2.forwardRef(function PopoverFooter2(props, ref) {
|
|
277
|
+
const { className, ...rest } = props;
|
|
278
|
+
return /* @__PURE__ */ jsx(
|
|
279
|
+
"div",
|
|
280
|
+
{
|
|
281
|
+
ref,
|
|
282
|
+
className: cn("px-4 pb-4 pt-0", className),
|
|
283
|
+
...rest
|
|
284
|
+
}
|
|
285
|
+
);
|
|
286
|
+
});
|
|
287
|
+
var PopoverTitle = React2.forwardRef(function PopoverTitle2(props, ref) {
|
|
288
|
+
const { className, ...rest } = props;
|
|
289
|
+
return /* @__PURE__ */ jsx(
|
|
290
|
+
"h3",
|
|
291
|
+
{
|
|
292
|
+
ref,
|
|
293
|
+
className: cn("text-base font-semibold", className),
|
|
294
|
+
...rest
|
|
295
|
+
}
|
|
296
|
+
);
|
|
297
|
+
});
|
|
298
|
+
var PopoverDescription = React2.forwardRef(function PopoverDescription2(props, ref) {
|
|
299
|
+
const { className, ...rest } = props;
|
|
300
|
+
return /* @__PURE__ */ jsx(
|
|
301
|
+
"p",
|
|
302
|
+
{
|
|
303
|
+
ref,
|
|
304
|
+
className: cn("text-sm", className),
|
|
305
|
+
...rest
|
|
306
|
+
}
|
|
307
|
+
);
|
|
308
|
+
});
|
|
309
|
+
|
|
310
|
+
export { PopoverArrow, PopoverBody, PopoverCloseTrigger, PopoverCloseTriggerWrapper, PopoverContent, PopoverDescription, PopoverFooter, PopoverHeader, PopoverRoot, PopoverTitle, PopoverTrigger };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var clsx = require('clsx');
|
|
6
|
+
var tailwindMerge = require('tailwind-merge');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
|
+
|
|
29
|
+
// src/progress-circle.tsx
|
|
30
|
+
function cn(...inputs) {
|
|
31
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
32
|
+
}
|
|
33
|
+
var SIZE_MAP = {
|
|
34
|
+
xs: { size: 24, thickness: 4, textClass: "text-[10px]" },
|
|
35
|
+
sm: { size: 32, thickness: 5, textClass: "text-[10px]" },
|
|
36
|
+
md: { size: 40, thickness: 6, textClass: "text-xs" },
|
|
37
|
+
lg: { size: 48, thickness: 7, textClass: "text-sm" },
|
|
38
|
+
xl: { size: 64, thickness: 8, textClass: "text-sm" }
|
|
39
|
+
};
|
|
40
|
+
var Ctx = React__namespace.createContext({
|
|
41
|
+
value: 0,
|
|
42
|
+
size: "md",
|
|
43
|
+
colorPalette: "blue"
|
|
44
|
+
});
|
|
45
|
+
var ProgressCircleRoot = React__namespace.forwardRef(function ProgressCircleRoot2(props, ref) {
|
|
46
|
+
const {
|
|
47
|
+
value = 0,
|
|
48
|
+
size = "md",
|
|
49
|
+
colorPalette = "blue",
|
|
50
|
+
className,
|
|
51
|
+
children,
|
|
52
|
+
...rest
|
|
53
|
+
} = props;
|
|
54
|
+
const ctx = React__namespace.useMemo(
|
|
55
|
+
() => ({ value: value ?? null, size, colorPalette }),
|
|
56
|
+
[value, size, colorPalette]
|
|
57
|
+
);
|
|
58
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Ctx.Provider, { value: ctx, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
ref,
|
|
62
|
+
role: "progressbar",
|
|
63
|
+
"aria-valuenow": value ?? void 0,
|
|
64
|
+
"aria-valuemin": 0,
|
|
65
|
+
"aria-valuemax": 100,
|
|
66
|
+
className: cn("relative inline-flex text-sm", className),
|
|
67
|
+
...rest,
|
|
68
|
+
children
|
|
69
|
+
}
|
|
70
|
+
) });
|
|
71
|
+
});
|
|
72
|
+
var ProgressCircleRing = React__namespace.forwardRef(function ProgressCircleRing2(props, ref) {
|
|
73
|
+
const { trackColor, cap, color, className, ...rest } = props;
|
|
74
|
+
const { value, size: sizeKey } = React__namespace.useContext(Ctx);
|
|
75
|
+
const { size, thickness } = SIZE_MAP[sizeKey];
|
|
76
|
+
const radius = size / 2 - thickness / 2;
|
|
77
|
+
const circumference = 2 * Math.PI * radius;
|
|
78
|
+
const percent = value ?? 0;
|
|
79
|
+
const offset = circumference * ((100 - percent) / 100);
|
|
80
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
81
|
+
"svg",
|
|
82
|
+
{
|
|
83
|
+
ref,
|
|
84
|
+
width: size,
|
|
85
|
+
height: size,
|
|
86
|
+
viewBox: `0 0 ${size} ${size}`,
|
|
87
|
+
className: cn(
|
|
88
|
+
value === null && "animate-spin",
|
|
89
|
+
className
|
|
90
|
+
),
|
|
91
|
+
...rest,
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
94
|
+
"circle",
|
|
95
|
+
{
|
|
96
|
+
cx: size / 2,
|
|
97
|
+
cy: size / 2,
|
|
98
|
+
r: radius,
|
|
99
|
+
fill: "transparent",
|
|
100
|
+
strokeWidth: thickness,
|
|
101
|
+
stroke: trackColor ?? "currentColor",
|
|
102
|
+
className: !trackColor ? "opacity-20" : void 0
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
106
|
+
"circle",
|
|
107
|
+
{
|
|
108
|
+
cx: size / 2,
|
|
109
|
+
cy: size / 2,
|
|
110
|
+
r: radius,
|
|
111
|
+
fill: "transparent",
|
|
112
|
+
strokeWidth: thickness,
|
|
113
|
+
stroke: color ?? "currentColor",
|
|
114
|
+
strokeLinecap: cap,
|
|
115
|
+
strokeDasharray: circumference,
|
|
116
|
+
strokeDashoffset: offset,
|
|
117
|
+
style: {
|
|
118
|
+
transformOrigin: "center",
|
|
119
|
+
transform: "rotate(-90deg)",
|
|
120
|
+
transition: "stroke-dashoffset 0.6s, stroke-dasharray 0.6s",
|
|
121
|
+
opacity: percent === 0 ? 0 : void 0
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
});
|
|
129
|
+
var ProgressCircleValueText = React__namespace.forwardRef(function ProgressCircleValueText2(props, ref) {
|
|
130
|
+
const { className, children, ...rest } = props;
|
|
131
|
+
const { value, size: sizeKey } = React__namespace.useContext(Ctx);
|
|
132
|
+
const { textClass } = SIZE_MAP[sizeKey];
|
|
133
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
134
|
+
"div",
|
|
135
|
+
{
|
|
136
|
+
ref,
|
|
137
|
+
"aria-live": "polite",
|
|
138
|
+
className: cn(
|
|
139
|
+
"absolute inset-0 flex items-center justify-center",
|
|
140
|
+
"font-medium tracking-tight tabular-nums leading-none",
|
|
141
|
+
textClass,
|
|
142
|
+
className
|
|
143
|
+
),
|
|
144
|
+
...rest,
|
|
145
|
+
children: children ?? `${Math.round(value ?? 0)}%`
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
exports.ProgressCircleRing = ProgressCircleRing;
|
|
151
|
+
exports.ProgressCircleRoot = ProgressCircleRoot;
|
|
152
|
+
exports.ProgressCircleValueText = ProgressCircleValueText;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare const SIZE_MAP: {
|
|
4
|
+
readonly xs: {
|
|
5
|
+
readonly size: 24;
|
|
6
|
+
readonly thickness: 4;
|
|
7
|
+
readonly textClass: "text-[10px]";
|
|
8
|
+
};
|
|
9
|
+
readonly sm: {
|
|
10
|
+
readonly size: 32;
|
|
11
|
+
readonly thickness: 5;
|
|
12
|
+
readonly textClass: "text-[10px]";
|
|
13
|
+
};
|
|
14
|
+
readonly md: {
|
|
15
|
+
readonly size: 40;
|
|
16
|
+
readonly thickness: 6;
|
|
17
|
+
readonly textClass: "text-xs";
|
|
18
|
+
};
|
|
19
|
+
readonly lg: {
|
|
20
|
+
readonly size: 48;
|
|
21
|
+
readonly thickness: 7;
|
|
22
|
+
readonly textClass: "text-sm";
|
|
23
|
+
};
|
|
24
|
+
readonly xl: {
|
|
25
|
+
readonly size: 64;
|
|
26
|
+
readonly thickness: 8;
|
|
27
|
+
readonly textClass: "text-sm";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type Size = keyof typeof SIZE_MAP;
|
|
31
|
+
interface ProgressCircleRootProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
32
|
+
readonly value?: number | null;
|
|
33
|
+
readonly size?: Size;
|
|
34
|
+
readonly colorPalette?: string;
|
|
35
|
+
}
|
|
36
|
+
declare const ProgressCircleRoot: React.ForwardRefExoticComponent<ProgressCircleRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
interface ProgressCircleRingProps extends Omit<React.SVGAttributes<SVGSVGElement>, 'color'> {
|
|
38
|
+
readonly trackColor?: string;
|
|
39
|
+
readonly cap?: React.SVGAttributes<SVGCircleElement>['strokeLinecap'];
|
|
40
|
+
readonly color?: string;
|
|
41
|
+
}
|
|
42
|
+
declare const ProgressCircleRing: React.ForwardRefExoticComponent<ProgressCircleRingProps & React.RefAttributes<SVGSVGElement>>;
|
|
43
|
+
interface ProgressCircleValueTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
44
|
+
}
|
|
45
|
+
declare const ProgressCircleValueText: React.ForwardRefExoticComponent<ProgressCircleValueTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
|
|
47
|
+
export { ProgressCircleRing, type ProgressCircleRingProps, ProgressCircleRoot, type ProgressCircleRootProps, ProgressCircleValueText, type ProgressCircleValueTextProps };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare const SIZE_MAP: {
|
|
4
|
+
readonly xs: {
|
|
5
|
+
readonly size: 24;
|
|
6
|
+
readonly thickness: 4;
|
|
7
|
+
readonly textClass: "text-[10px]";
|
|
8
|
+
};
|
|
9
|
+
readonly sm: {
|
|
10
|
+
readonly size: 32;
|
|
11
|
+
readonly thickness: 5;
|
|
12
|
+
readonly textClass: "text-[10px]";
|
|
13
|
+
};
|
|
14
|
+
readonly md: {
|
|
15
|
+
readonly size: 40;
|
|
16
|
+
readonly thickness: 6;
|
|
17
|
+
readonly textClass: "text-xs";
|
|
18
|
+
};
|
|
19
|
+
readonly lg: {
|
|
20
|
+
readonly size: 48;
|
|
21
|
+
readonly thickness: 7;
|
|
22
|
+
readonly textClass: "text-sm";
|
|
23
|
+
};
|
|
24
|
+
readonly xl: {
|
|
25
|
+
readonly size: 64;
|
|
26
|
+
readonly thickness: 8;
|
|
27
|
+
readonly textClass: "text-sm";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type Size = keyof typeof SIZE_MAP;
|
|
31
|
+
interface ProgressCircleRootProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
32
|
+
readonly value?: number | null;
|
|
33
|
+
readonly size?: Size;
|
|
34
|
+
readonly colorPalette?: string;
|
|
35
|
+
}
|
|
36
|
+
declare const ProgressCircleRoot: React.ForwardRefExoticComponent<ProgressCircleRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
interface ProgressCircleRingProps extends Omit<React.SVGAttributes<SVGSVGElement>, 'color'> {
|
|
38
|
+
readonly trackColor?: string;
|
|
39
|
+
readonly cap?: React.SVGAttributes<SVGCircleElement>['strokeLinecap'];
|
|
40
|
+
readonly color?: string;
|
|
41
|
+
}
|
|
42
|
+
declare const ProgressCircleRing: React.ForwardRefExoticComponent<ProgressCircleRingProps & React.RefAttributes<SVGSVGElement>>;
|
|
43
|
+
interface ProgressCircleValueTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
44
|
+
}
|
|
45
|
+
declare const ProgressCircleValueText: React.ForwardRefExoticComponent<ProgressCircleValueTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
|
|
47
|
+
export { ProgressCircleRing, type ProgressCircleRingProps, ProgressCircleRoot, type ProgressCircleRootProps, ProgressCircleValueText, type ProgressCircleValueTextProps };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { clsx } from 'clsx';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
// src/progress-circle.tsx
|
|
8
|
+
function cn(...inputs) {
|
|
9
|
+
return twMerge(clsx(inputs));
|
|
10
|
+
}
|
|
11
|
+
var SIZE_MAP = {
|
|
12
|
+
xs: { size: 24, thickness: 4, textClass: "text-[10px]" },
|
|
13
|
+
sm: { size: 32, thickness: 5, textClass: "text-[10px]" },
|
|
14
|
+
md: { size: 40, thickness: 6, textClass: "text-xs" },
|
|
15
|
+
lg: { size: 48, thickness: 7, textClass: "text-sm" },
|
|
16
|
+
xl: { size: 64, thickness: 8, textClass: "text-sm" }
|
|
17
|
+
};
|
|
18
|
+
var Ctx = React.createContext({
|
|
19
|
+
value: 0,
|
|
20
|
+
size: "md",
|
|
21
|
+
colorPalette: "blue"
|
|
22
|
+
});
|
|
23
|
+
var ProgressCircleRoot = React.forwardRef(function ProgressCircleRoot2(props, ref) {
|
|
24
|
+
const {
|
|
25
|
+
value = 0,
|
|
26
|
+
size = "md",
|
|
27
|
+
colorPalette = "blue",
|
|
28
|
+
className,
|
|
29
|
+
children,
|
|
30
|
+
...rest
|
|
31
|
+
} = props;
|
|
32
|
+
const ctx = React.useMemo(
|
|
33
|
+
() => ({ value: value ?? null, size, colorPalette }),
|
|
34
|
+
[value, size, colorPalette]
|
|
35
|
+
);
|
|
36
|
+
return /* @__PURE__ */ jsx(Ctx.Provider, { value: ctx, children: /* @__PURE__ */ jsx(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
ref,
|
|
40
|
+
role: "progressbar",
|
|
41
|
+
"aria-valuenow": value ?? void 0,
|
|
42
|
+
"aria-valuemin": 0,
|
|
43
|
+
"aria-valuemax": 100,
|
|
44
|
+
className: cn("relative inline-flex text-sm", className),
|
|
45
|
+
...rest,
|
|
46
|
+
children
|
|
47
|
+
}
|
|
48
|
+
) });
|
|
49
|
+
});
|
|
50
|
+
var ProgressCircleRing = React.forwardRef(function ProgressCircleRing2(props, ref) {
|
|
51
|
+
const { trackColor, cap, color, className, ...rest } = props;
|
|
52
|
+
const { value, size: sizeKey } = React.useContext(Ctx);
|
|
53
|
+
const { size, thickness } = SIZE_MAP[sizeKey];
|
|
54
|
+
const radius = size / 2 - thickness / 2;
|
|
55
|
+
const circumference = 2 * Math.PI * radius;
|
|
56
|
+
const percent = value ?? 0;
|
|
57
|
+
const offset = circumference * ((100 - percent) / 100);
|
|
58
|
+
return /* @__PURE__ */ jsxs(
|
|
59
|
+
"svg",
|
|
60
|
+
{
|
|
61
|
+
ref,
|
|
62
|
+
width: size,
|
|
63
|
+
height: size,
|
|
64
|
+
viewBox: `0 0 ${size} ${size}`,
|
|
65
|
+
className: cn(
|
|
66
|
+
value === null && "animate-spin",
|
|
67
|
+
className
|
|
68
|
+
),
|
|
69
|
+
...rest,
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ jsx(
|
|
72
|
+
"circle",
|
|
73
|
+
{
|
|
74
|
+
cx: size / 2,
|
|
75
|
+
cy: size / 2,
|
|
76
|
+
r: radius,
|
|
77
|
+
fill: "transparent",
|
|
78
|
+
strokeWidth: thickness,
|
|
79
|
+
stroke: trackColor ?? "currentColor",
|
|
80
|
+
className: !trackColor ? "opacity-20" : void 0
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
/* @__PURE__ */ jsx(
|
|
84
|
+
"circle",
|
|
85
|
+
{
|
|
86
|
+
cx: size / 2,
|
|
87
|
+
cy: size / 2,
|
|
88
|
+
r: radius,
|
|
89
|
+
fill: "transparent",
|
|
90
|
+
strokeWidth: thickness,
|
|
91
|
+
stroke: color ?? "currentColor",
|
|
92
|
+
strokeLinecap: cap,
|
|
93
|
+
strokeDasharray: circumference,
|
|
94
|
+
strokeDashoffset: offset,
|
|
95
|
+
style: {
|
|
96
|
+
transformOrigin: "center",
|
|
97
|
+
transform: "rotate(-90deg)",
|
|
98
|
+
transition: "stroke-dashoffset 0.6s, stroke-dasharray 0.6s",
|
|
99
|
+
opacity: percent === 0 ? 0 : void 0
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
});
|
|
107
|
+
var ProgressCircleValueText = React.forwardRef(function ProgressCircleValueText2(props, ref) {
|
|
108
|
+
const { className, children, ...rest } = props;
|
|
109
|
+
const { value, size: sizeKey } = React.useContext(Ctx);
|
|
110
|
+
const { textClass } = SIZE_MAP[sizeKey];
|
|
111
|
+
return /* @__PURE__ */ jsx(
|
|
112
|
+
"div",
|
|
113
|
+
{
|
|
114
|
+
ref,
|
|
115
|
+
"aria-live": "polite",
|
|
116
|
+
className: cn(
|
|
117
|
+
"absolute inset-0 flex items-center justify-center",
|
|
118
|
+
"font-medium tracking-tight tabular-nums leading-none",
|
|
119
|
+
textClass,
|
|
120
|
+
className
|
|
121
|
+
),
|
|
122
|
+
...rest,
|
|
123
|
+
children: children ?? `${Math.round(value ?? 0)}%`
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export { ProgressCircleRing, ProgressCircleRoot, ProgressCircleValueText };
|