@timmbr/ui 1.17.1 → 1.17.4
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/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.js +2 -1
- package/dist/components/Stepper/Stepper.types.d.ts +2 -0
- package/dist/components/Stepper/Stepper.types.d.ts.map +1 -1
- package/dist/components/Stepper/subcomponents/ProgressStepper.d.ts +1 -0
- package/dist/components/Stepper/subcomponents/ProgressStepper.d.ts.map +1 -1
- package/dist/components/Stepper/subcomponents/ProgressStepper.js +2 -2
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAA+B,YAAY,EAAE,MAAM,iBAAiB,CAAC;AASjF;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAA+B,YAAY,EAAE,MAAM,iBAAiB,CAAC;AASjF;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,uFAuFnB,CAAC"}
|
|
@@ -11,7 +11,7 @@ function stateOf(index, current, status) {
|
|
|
11
11
|
return "upcoming";
|
|
12
12
|
}
|
|
13
13
|
const Stepper = React.forwardRef(
|
|
14
|
-
({ steps, current, status = "default", orientation = "horizontal", variant = "default", className, ...props }, ref) => {
|
|
14
|
+
({ steps, current, status = "default", orientation = "horizontal", variant = "default", showBadge = true, className, ...props }, ref) => {
|
|
15
15
|
if (variant === "progress") {
|
|
16
16
|
return /* @__PURE__ */ jsx(
|
|
17
17
|
ProgressStepper,
|
|
@@ -19,6 +19,7 @@ const Stepper = React.forwardRef(
|
|
|
19
19
|
steps,
|
|
20
20
|
current,
|
|
21
21
|
status,
|
|
22
|
+
showBadge,
|
|
22
23
|
className
|
|
23
24
|
}
|
|
24
25
|
);
|
|
@@ -26,5 +26,7 @@ export interface StepperProps extends React.OlHTMLAttributes<HTMLOListElement> {
|
|
|
26
26
|
orientation?: 'horizontal' | 'vertical';
|
|
27
27
|
/** 'default' = numbered circles (existing). 'progress' = icon circles + status badges. */
|
|
28
28
|
variant?: 'default' | 'progress';
|
|
29
|
+
/** Hide the status badge below each step label in the `progress` variant. Defaults to `true`. */
|
|
30
|
+
showBadge?: boolean;
|
|
29
31
|
}
|
|
30
32
|
//# sourceMappingURL=Stepper.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.types.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;AAEtE,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0EAA0E;IAC1E,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;uEACmE;IACnE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;6GACyG;IACzG,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,8EAA8E;AAC9E,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC9D,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,gBAAgB,CAAC,gBAAgB,CAAC;IAC5E,KAA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U,CAAC;IACjC,iGAAiG;IACjG,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -4,6 +4,7 @@ export interface ProgressStepperProps {
|
|
|
4
4
|
steps: StepperProps['steps'];
|
|
5
5
|
current: number;
|
|
6
6
|
status?: StepperProps['status'];
|
|
7
|
+
showBadge?: boolean;
|
|
7
8
|
className?: string;
|
|
8
9
|
}
|
|
9
10
|
export declare const ProgressStepper: React.ForwardRefExoticComponent<ProgressStepperProps & React.RefAttributes<HTMLOListElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressStepper.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/subcomponents/ProgressStepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAa,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAehE,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,+
|
|
1
|
+
{"version":3,"file":"ProgressStepper.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/subcomponents/ProgressStepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAa,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAehE,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,+FA2E3B,CAAC"}
|
|
@@ -16,7 +16,7 @@ const DEFAULT_BADGE_LABELS = {
|
|
|
16
16
|
upcoming: "Pending"
|
|
17
17
|
};
|
|
18
18
|
const ProgressStepper = React.forwardRef(
|
|
19
|
-
({ steps, current, status = "default", className }, ref) => /* @__PURE__ */ jsx(
|
|
19
|
+
({ steps, current, status = "default", showBadge = true, className }, ref) => /* @__PURE__ */ jsx(
|
|
20
20
|
"ol",
|
|
21
21
|
{
|
|
22
22
|
ref,
|
|
@@ -62,7 +62,7 @@ const ProgressStepper = React.forwardRef(
|
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
64
|
step.description && /* @__PURE__ */ jsx("span", { className: "mt-0.5 block text-caption-lg text-muted-foreground", children: step.description }),
|
|
65
|
-
/* @__PURE__ */ jsx("span", { className: cn("mt-1.5 inline-flex", stepProgressBadgeVariants({ state })), children: badgeLabel })
|
|
65
|
+
showBadge && /* @__PURE__ */ jsx("span", { className: cn("mt-1.5 inline-flex", stepProgressBadgeVariants({ state })), children: badgeLabel })
|
|
66
66
|
] })
|
|
67
67
|
]
|
|
68
68
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timmbr/ui",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.4",
|
|
4
4
|
"description": "High-performance, Next.js App Router-compatible UI design system components for Timmbr",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"@tiptap/extension-placeholder": "^2.11.0",
|
|
53
53
|
"@tiptap/extension-character-count": "^2.11.0",
|
|
54
54
|
"@timmbr/hooks": "1.3.0",
|
|
55
|
-
"@timmbr/
|
|
55
|
+
"@timmbr/motion": "1.2.6",
|
|
56
56
|
"@timmbr/utils": "1.6.0",
|
|
57
|
-
"@timmbr/
|
|
58
|
-
"@timmbr/
|
|
57
|
+
"@timmbr/icons": "1.7.0",
|
|
58
|
+
"@timmbr/theme": "1.3.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"next": ">=13.0.0 || >=14.0.0 || >=15.0.0 || >=16.0.0",
|