@timmbr/ui 1.17.2 → 1.17.5
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/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyState.js +9 -4
- package/dist/components/EmptyState/EmptyState.types.d.ts +6 -0
- package/dist/components/EmptyState/EmptyState.types.d.ts.map +1 -1
- package/dist/components/Heading/Heading.styles.d.ts +1 -1
- package/dist/components/Heading/Heading.styles.d.ts.map +1 -1
- package/dist/components/Heading/Heading.styles.js +4 -2
- package/dist/components/Heading/Heading.types.d.ts +2 -2
- package/dist/components/Heading/Heading.types.d.ts.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.d.ts.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +12 -3
- package/dist/components/ProductGallery/ProductGallery.types.d.ts +4 -0
- package/dist/components/ProductGallery/ProductGallery.types.d.ts.map +1 -1
- 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":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,wFAmFtB,CAAC"}
|
|
@@ -4,6 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { cn } from '@timmbr/utils';
|
|
5
5
|
import { Sparkles } from '@timmbr/icons';
|
|
6
6
|
import { resolveMotion } from '../../types/motion.js';
|
|
7
|
+
import { Heading } from '../Heading/Heading.js';
|
|
7
8
|
import { emptyStateIconWrapperVariants, emptyStateVariants } from './EmptyState.styles.js';
|
|
8
9
|
import { useGlobalAnimation } from '../../providers/AnimationProvider.js';
|
|
9
10
|
|
|
@@ -15,6 +16,7 @@ const EmptyState = React.forwardRef(
|
|
|
15
16
|
fullWidth = false,
|
|
16
17
|
icon,
|
|
17
18
|
title,
|
|
19
|
+
titleFont = "display",
|
|
18
20
|
description,
|
|
19
21
|
action,
|
|
20
22
|
secondaryAction,
|
|
@@ -45,14 +47,17 @@ const EmptyState = React.forwardRef(
|
|
|
45
47
|
children: icon ?? /* @__PURE__ */ jsx(Sparkles, { className: "size-6 text-primary", "aria-hidden": "true" })
|
|
46
48
|
}
|
|
47
49
|
),
|
|
48
|
-
title && /* @__PURE__ */ jsx(
|
|
49
|
-
|
|
50
|
+
title && (typeof title === "string" || typeof title === "number" ? /* @__PURE__ */ jsx(
|
|
51
|
+
Heading,
|
|
50
52
|
{
|
|
51
|
-
|
|
53
|
+
level: 6,
|
|
54
|
+
font: titleFont,
|
|
55
|
+
weight: "semibold",
|
|
56
|
+
className: "tracking-tight",
|
|
52
57
|
"data-slot": "empty-state-title",
|
|
53
58
|
children: title
|
|
54
59
|
}
|
|
55
|
-
),
|
|
60
|
+
) : /* @__PURE__ */ jsx("div", { className: "tracking-tight", "data-slot": "empty-state-title", children: title })),
|
|
56
61
|
description && /* @__PURE__ */ jsx(
|
|
57
62
|
"p",
|
|
58
63
|
{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
import type { EmptyStateVariants } from './EmptyState.styles';
|
|
3
3
|
import type { MotionProp } from '../../types/motion';
|
|
4
|
+
import type { HeadingProps } from '../Heading/Heading.types';
|
|
4
5
|
export interface EmptyStateProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>, EmptyStateVariants {
|
|
5
6
|
/**
|
|
6
7
|
* Main illustration, icon, or SVG node.
|
|
@@ -10,6 +11,11 @@ export interface EmptyStateProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
10
11
|
* Primary title or heading.
|
|
11
12
|
*/
|
|
12
13
|
title?: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Font family for the title heading (when `title` is a string).
|
|
16
|
+
* @default 'display'
|
|
17
|
+
*/
|
|
18
|
+
titleFont?: HeadingProps['font'];
|
|
13
19
|
/**
|
|
14
20
|
* Explanatory description copy.
|
|
15
21
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.types.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"EmptyState.types.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,EACzD,kBAAkB;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
export declare const headingVariants: (props?: ({
|
|
3
3
|
level?: 4 | 1 | 2 | 3 | 5 | 6 | null | undefined;
|
|
4
|
-
font?: "title" | "display" | null | undefined;
|
|
4
|
+
font?: "title" | "display" | "sans" | null | undefined;
|
|
5
5
|
foreground?: "default" | "destructive" | "success" | "warning" | "inherit" | "white" | "subtle" | "primary" | "secondary" | "muted" | null | undefined;
|
|
6
6
|
weight?: "bold" | "normal" | "medium" | "light" | "semibold" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,eAAe;;;;;
|
|
1
|
+
{"version":3,"file":"Heading.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,eAAe;;;;;8EA2C1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -11,8 +11,10 @@ const headingVariants = cva("transition-colors text-foreground", {
|
|
|
11
11
|
6: "text-h6"
|
|
12
12
|
},
|
|
13
13
|
font: {
|
|
14
|
-
//
|
|
15
|
-
display: "",
|
|
14
|
+
// DM Serif Display (enforce display font over container font-sans).
|
|
15
|
+
display: "font-display!",
|
|
16
|
+
// Manrope (matches Text font="sans").
|
|
17
|
+
sans: "font-sans!",
|
|
16
18
|
// Override the token's family ("!" so it wins regardless of CSS order).
|
|
17
19
|
title: "font-title! font-bold"
|
|
18
20
|
},
|
|
@@ -13,10 +13,10 @@ export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement>,
|
|
|
13
13
|
*/
|
|
14
14
|
as?: HeadingTag;
|
|
15
15
|
/**
|
|
16
|
-
* Typographic font family ('display' uses DM Serif Display; 'title' uses Outfit).
|
|
16
|
+
* Typographic font family ('display' uses DM Serif Display; 'sans' uses Manrope; 'title' uses Outfit).
|
|
17
17
|
* @default 'display'
|
|
18
18
|
*/
|
|
19
|
-
font?: 'display' | 'title';
|
|
19
|
+
font?: 'display' | 'sans' | 'title';
|
|
20
20
|
/**
|
|
21
21
|
* Font weight override.
|
|
22
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.types.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACjE,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEjD,MAAM,WAAW,YACf,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAC9C,eAAe;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB;;OAEG;IACH,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Heading.types.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACjE,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEjD,MAAM,WAAW,YACf,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAC9C,eAAe;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB;;OAEG;IACH,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;IAC7D;;;OAGG;IACH,UAAU,CAAC,EACP,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,WAAW,GACX,aAAa,GACb,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGallery.d.ts","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,OAAO,KAAK,EAAE,mBAAmB,EAAoD,MAAM,wBAAwB,CAAC;AAoBpH;;;;;GAKG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"ProductGallery.d.ts","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,OAAO,KAAK,EAAE,mBAAmB,EAAoD,MAAM,wBAAwB,CAAC;AAoBpH;;;;;GAKG;AACH,eAAO,MAAM,cAAc,4FA+S1B,CAAC"}
|
|
@@ -33,6 +33,8 @@ const ProductGallery = React.forwardRef(
|
|
|
33
33
|
thumbnails = "bottom",
|
|
34
34
|
hoverZoom = true,
|
|
35
35
|
zoomScale = 2.5,
|
|
36
|
+
thumbnailSize,
|
|
37
|
+
stageMaxHeight,
|
|
36
38
|
labels: labelsProp,
|
|
37
39
|
className,
|
|
38
40
|
...props
|
|
@@ -121,7 +123,7 @@ const ProductGallery = React.forwardRef(
|
|
|
121
123
|
{
|
|
122
124
|
ref,
|
|
123
125
|
className: cn(productGalleryFrameVariants(), className),
|
|
124
|
-
style: { aspectRatio },
|
|
126
|
+
style: { aspectRatio, ...stageMaxHeight ? { maxHeight: stageMaxHeight } : {} },
|
|
125
127
|
"data-slot": "product-gallery",
|
|
126
128
|
...props
|
|
127
129
|
}
|
|
@@ -144,7 +146,10 @@ const ProductGallery = React.forwardRef(
|
|
|
144
146
|
"div",
|
|
145
147
|
{
|
|
146
148
|
className: productGalleryFrameVariants(),
|
|
147
|
-
style: {
|
|
149
|
+
style: {
|
|
150
|
+
aspectRatio,
|
|
151
|
+
...stageMaxHeight ? { maxHeight: stageMaxHeight } : {}
|
|
152
|
+
},
|
|
148
153
|
onPointerMove: onZoomMove,
|
|
149
154
|
onPointerLeave: () => setZoom(null),
|
|
150
155
|
children: [
|
|
@@ -267,7 +272,11 @@ const ProductGallery = React.forwardRef(
|
|
|
267
272
|
type: "button",
|
|
268
273
|
"aria-label": labels.thumbnail(i, total),
|
|
269
274
|
"aria-current": i === index ? "true" : void 0,
|
|
270
|
-
className:
|
|
275
|
+
className: cn(
|
|
276
|
+
productGalleryThumbVariants({ active: i === index, thumbnails }),
|
|
277
|
+
thumbnailSize != null && "!aspect-square !w-auto shrink-0"
|
|
278
|
+
),
|
|
279
|
+
style: thumbnailSize != null ? { width: thumbnailSize, height: thumbnailSize } : void 0,
|
|
271
280
|
onClick: () => setIndex(i),
|
|
272
281
|
children: renderImage(image, {
|
|
273
282
|
priority: false,
|
|
@@ -50,6 +50,10 @@ export interface ProductGalleryProps extends Omit<React.HTMLAttributes<HTMLDivEl
|
|
|
50
50
|
hoverZoom?: boolean;
|
|
51
51
|
/** Magnification of the hover zoom. Defaults to 2.5. */
|
|
52
52
|
zoomScale?: number;
|
|
53
|
+
/** Fixed square thumb size (px). Overrides fluid calc() widths when set. */
|
|
54
|
+
thumbnailSize?: number;
|
|
55
|
+
/** Max height (px) for the main image frame when viewport fitting. */
|
|
56
|
+
stageMaxHeight?: number;
|
|
53
57
|
labels?: ProductGalleryLabels;
|
|
54
58
|
}
|
|
55
59
|
//# sourceMappingURL=ProductGallery.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGallery.types.d.ts","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,2BAA2B;IAC1C,gGAAgG;IAChG,QAAQ,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,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AAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B"}
|
|
1
|
+
{"version":3,"file":"ProductGallery.types.d.ts","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,2BAA2B;IAC1C,gGAAgG;IAChG,QAAQ,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,UAAU,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACpD,uCAAuC;IACvC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACjG,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,2BAA2B,KAAK,KAAK,CAAC,SAAS,CAAC;IACpG,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+FAA+F;IAC/F,UAAU,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B"}
|
|
@@ -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,CAA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Q,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,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC7B,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,0FAA0F;IAC1F,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,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.5",
|
|
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",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"@tiptap/extension-text-align": "^2.11.0",
|
|
52
52
|
"@tiptap/extension-placeholder": "^2.11.0",
|
|
53
53
|
"@tiptap/extension-character-count": "^2.11.0",
|
|
54
|
+
"@timmbr/utils": "1.6.0",
|
|
54
55
|
"@timmbr/motion": "1.2.6",
|
|
55
|
-
"@timmbr/theme": "1.3.0",
|
|
56
|
-
"@timmbr/icons": "1.6.1",
|
|
57
56
|
"@timmbr/hooks": "1.3.0",
|
|
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",
|