@jars-labs/jars-components 1.1.8 → 1.1.9
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/{index-BswprZpZ.js → index-DugdOx47.js} +6 -5
- package/dist/index-DugdOx47.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{lottie-CzEUvYDu.js → lottie-B07UQWO7.js} +2 -2
- package/dist/{lottie-CzEUvYDu.js.map → lottie-B07UQWO7.js.map} +1 -1
- package/dist/types/ProgressStepper/ProgressStepper.d.ts +5 -0
- package/dist/types/ProgressStepper/ProgressStepper.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-BswprZpZ.js.map +0 -1
|
@@ -183,7 +183,7 @@ var Animation = function (_a) {
|
|
|
183
183
|
var refVector = useRef(null);
|
|
184
184
|
var _b = useState(null), lottie = _b[0], setLottie = _b[1];
|
|
185
185
|
useEffect(function () {
|
|
186
|
-
import('./lottie-
|
|
186
|
+
import('./lottie-B07UQWO7.js').then(function (n) { return n.l; }).then(function (Lottie) { return setLottie(Lottie.default); });
|
|
187
187
|
}, []);
|
|
188
188
|
useEffect(function () {
|
|
189
189
|
if (lottie && refVector.current) {
|
|
@@ -1585,11 +1585,12 @@ var styles$7 = {"wrapper":"ProgressStepper-module_wrapper__ELFBB","circle":"Prog
|
|
|
1585
1585
|
*
|
|
1586
1586
|
*/
|
|
1587
1587
|
var ProgressStepper = function (_a) {
|
|
1588
|
-
var totalSteps = _a.totalSteps, active = _a.active, className = _a.className;
|
|
1589
|
-
|
|
1588
|
+
var totalSteps = _a.totalSteps, active = _a.active, className = _a.className, _b = _a.ariaLabel, ariaLabel = _b === undefined ? 'Progress' : _b;
|
|
1589
|
+
var current = Math.min(active + 1, totalSteps);
|
|
1590
|
+
return (jsx("div", { className: "".concat(styles$7.wrapper, " ").concat(className !== null && className !== undefined ? className : ''), role: "progressbar", "aria-label": ariaLabel, "aria-valuemin": 1, "aria-valuemax": totalSteps, "aria-valuenow": current, "aria-valuetext": "Step ".concat(current, " of ").concat(totalSteps), children: Array.from({ length: totalSteps }).map(function (_, index) {
|
|
1590
1591
|
var state = index < active ? 'completed' : index === active ? 'active' : 'pending';
|
|
1591
1592
|
var isLast = index === totalSteps - 1;
|
|
1592
|
-
return (jsxs(React.Fragment, { children: [jsxs("div", { className: styles$7.circle, "data-state": state, children: [state === 'completed' && (jsx(Tick, { width: "14px", height: "14px", viewBox: "0 0 32 32", stroke: "var(--color-primary-300)", strokeWidth: 3 })), state === 'active' && (jsx(StepIndicator, { width: "24px", height: "24px" }))] }), !isLast && (jsx("div", { className: styles$7.line, "data-state": index < active ? 'completed' : 'pending' }))] }, index));
|
|
1593
|
+
return (jsxs(React.Fragment, { children: [jsxs("div", { className: styles$7.circle, "data-state": state, "aria-hidden": true, children: [state === 'completed' && (jsx(Tick, { width: "14px", height: "14px", viewBox: "0 0 32 32", stroke: "var(--color-primary-300)", strokeWidth: 3 })), state === 'active' && (jsx(StepIndicator, { width: "24px", height: "24px" }))] }), !isLast && (jsx("div", { className: styles$7.line, "data-state": index < active ? 'completed' : 'pending' }))] }, index));
|
|
1593
1594
|
}) }));
|
|
1594
1595
|
};
|
|
1595
1596
|
ProgressStepper.displayName = 'ProgressStepper';
|
|
@@ -2197,4 +2198,4 @@ var World = function (_a) {
|
|
|
2197
2198
|
World.displayName = 'World';
|
|
2198
2199
|
|
|
2199
2200
|
export { Arrow as $, Accordion as A, Badge as B, Card as C, DateInput as D, EnterCodeInput as E, FileInput as F, StatusBadge as G, Stepper as H, IncrementNumber as I, Tabs as J, Text as K, Link as L, Message as M, NavBar as N, Textarea as O, Pagination as P, ToastContainer as Q, RadioButton as R, SegmentedControl as S, Table as T, Tooltip as U, AIGenerate as V, AIPrompt as W, AIRedo as X, AISearch as Y, Alert as Z, Archive as _, AccordionItem as a, Attachment as a0, AvatarPlaceholder as a1, Bell as a2, Calendar as a3, Camera as a4, Cat as a5, Chat as a6, Check as a7, CheckSquare as a8, Chevron as a9, MenuTouched as aA, Notification as aB, Open as aC, Pets as aD, Phone as aE, Plaid as aF, Plus as aG, Refresh as aH, Remove as aI, Search as aJ, Shield as aK, StepIndicator as aL, ThreeDots as aM, ThumbsDown as aN, Tick as aO, Umbrello as aP, Upload as aQ, Visa as aR, Warning as aS, World as aT, capitalizeFirstSentenceLetter as aU, ChevronCollapse as aa, Clock as ab, Close as ac, Cloud as ad, CloudUpload as ae, CreditCard as af, Curriculum as ag, Delete as ah, Document as ai, Dog as aj, EyeHide as ak, EyeShow as al, Fingerprint as am, Flash as an, Google as ao, Grid as ap, Hamburger as aq, HappyFace as ar, House as as, HouseCheck as at, HouseTime as au, Identification as av, Info as aw, Location as ax, Mail as ay, Menu as az, AccordionControl as b, AccordionPanel as c, ActionIcon as d, Animation as e, Autocomplete as f, getDefaultExportFromCjs as g, Avatar as h, badgeVariantMap as i, Button as j, cardStatusVariantMap as k, CardStatus as l, Checkbox as m, Chip as n, Dropdown as o, FileUpload as p, Input as q, LinkModal as r, Loader as s, Modal as t, Multiselect as u, NavBarSide as v, PasswordInput as w, Pill as x, ProgressStepper as y, Select as z };
|
|
2200
|
-
//# sourceMappingURL=index-
|
|
2201
|
+
//# sourceMappingURL=index-DugdOx47.js.map
|