@openpawlabs/diy-guides-ui 1.5.5 → 1.6.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/components/GuideLayout/GuideLayout.d.ts +9 -4
- package/dist/components/GuideLayout/GuideLayout.d.ts.map +1 -1
- package/dist/components/GuideLayout/GuideLayout.stories.d.ts +2 -1
- package/dist/components/GuideLayout/GuideLayout.stories.d.ts.map +1 -1
- package/dist/diy-guides-ui.cjs +1 -1
- package/dist/diy-guides-ui.cjs.map +1 -1
- package/dist/diy-guides-ui.js +443 -430
- package/dist/diy-guides-ui.js.map +1 -1
- package/dist/stories/Welcome.stories.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,10 @@ export interface GuideLayoutProps {
|
|
|
8
8
|
export interface GuideLayoutHeaderProps {
|
|
9
9
|
/** Guide title. */
|
|
10
10
|
title: ReactNode;
|
|
11
|
+
/** Optional hero image URL — the guide's main image, shown left of the title block. */
|
|
12
|
+
heroImage?: string;
|
|
13
|
+
/** Alt text for `heroImage`. Defaults to `""` (decorative). */
|
|
14
|
+
heroImageAlt?: string;
|
|
11
15
|
/** Difficulty level — rendered as a `DifficultyBadge`. */
|
|
12
16
|
difficulty?: Difficulty;
|
|
13
17
|
/** Time estimate text, e.g. "20 – 30 minutes". */
|
|
@@ -21,7 +25,7 @@ export interface GuideLayoutIntroProps {
|
|
|
21
25
|
children: ReactNode;
|
|
22
26
|
className?: string;
|
|
23
27
|
}
|
|
24
|
-
declare function GuideLayoutHeader({ title, difficulty, timeEstimate, meta, className, }: GuideLayoutHeaderProps): import("react").JSX.Element;
|
|
28
|
+
declare function GuideLayoutHeader({ title, heroImage, heroImageAlt, difficulty, timeEstimate, meta, className, }: GuideLayoutHeaderProps): import("react").JSX.Element;
|
|
25
29
|
/** Introduction column — sits left of `Sidebar` on desktop. */
|
|
26
30
|
declare function GuideLayoutIntro({ children, className }: GuideLayoutIntroProps): import("react").JSX.Element;
|
|
27
31
|
/** "What you need" column — sits right of `Intro` on desktop. */
|
|
@@ -35,9 +39,10 @@ declare function GuideLayoutContent({ children, className, }: {
|
|
|
35
39
|
className?: string;
|
|
36
40
|
}): import("react").JSX.Element;
|
|
37
41
|
/**
|
|
38
|
-
* Responsive page shell for a guide: a full-width `Header
|
|
39
|
-
*
|
|
40
|
-
* (steps). On mobile
|
|
42
|
+
* Responsive page shell for a guide: a full-width `Header` (optionally with a
|
|
43
|
+
* 4:3 hero image left of the title), an intro row with `Intro` (description)
|
|
44
|
+
* beside `Sidebar` (tools/parts), then full-width `Content` (steps). On mobile
|
|
45
|
+
* the intro row stacks with intro first, then sidebar.
|
|
41
46
|
*/
|
|
42
47
|
export declare const GuideLayout: (({ children, className }: GuideLayoutProps) => import("react").JSX.Element) & {
|
|
43
48
|
Header: typeof GuideLayoutHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GuideLayout.d.ts","sourceRoot":"","sources":["../../../src/components/GuideLayout/GuideLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAEL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,gBAAgB;IAC/B,mGAAmG;IACnG,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,mBAAmB;IACnB,KAAK,EAAE,SAAS,CAAC;IACjB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kDAAkD;IAClD,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,8DAA8D;IAC9D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,6DAA6D;IAC7D,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iBAAS,iBAAiB,CAAC,EACzB,KAAK,EACL,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,SAAS,GACV,EAAE,sBAAsB,+
|
|
1
|
+
{"version":3,"file":"GuideLayout.d.ts","sourceRoot":"","sources":["../../../src/components/GuideLayout/GuideLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAEL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,gBAAgB;IAC/B,mGAAmG;IACnG,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,mBAAmB;IACnB,KAAK,EAAE,SAAS,CAAC;IACjB,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kDAAkD;IAClD,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,8DAA8D;IAC9D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,6DAA6D;IAC7D,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iBAAS,iBAAiB,CAAC,EACzB,KAAK,EACL,SAAS,EACT,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,SAAS,GACV,EAAE,sBAAsB,+BA2CxB;AAED,+DAA+D;AAC/D,iBAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,qBAAqB,+BAMvE;AAED,iEAAiE;AACjE,iBAAS,kBAAkB,CAAC,EAC1B,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAMA;AAED,kEAAkE;AAClE,iBAAS,kBAAkB,CAAC,EAC1B,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAMA;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,6BAC4B,gBAAgB;;;;;CAkBnE,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { StoryObj } from "@storybook/react-vite";
|
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
4
|
component: (({ children, className }: import("./GuideLayout").GuideLayoutProps) => import("react").JSX.Element) & {
|
|
5
|
-
Header: ({ title, difficulty, timeEstimate, meta, className, }: import("./GuideLayout").GuideLayoutHeaderProps) => import("react").JSX.Element;
|
|
5
|
+
Header: ({ title, heroImage, heroImageAlt, difficulty, timeEstimate, meta, className, }: import("./GuideLayout").GuideLayoutHeaderProps) => import("react").JSX.Element;
|
|
6
6
|
Intro: ({ children, className }: import("./GuideLayout").GuideLayoutIntroProps) => import("react").JSX.Element;
|
|
7
7
|
Sidebar: ({ children, className, }: {
|
|
8
8
|
children: import("react").ReactNode;
|
|
@@ -29,5 +29,6 @@ declare const meta: {
|
|
|
29
29
|
export default meta;
|
|
30
30
|
type Story = StoryObj<typeof meta>;
|
|
31
31
|
export declare const FullGuide: Story;
|
|
32
|
+
export declare const WithHeroImage: Story;
|
|
32
33
|
export declare const WithoutSidebar: Story;
|
|
33
34
|
//# sourceMappingURL=GuideLayout.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GuideLayout.stories.d.ts","sourceRoot":"","sources":["../../../src/components/GuideLayout/GuideLayout.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"GuideLayout.stories.d.ts","sourceRoot":"","sources":["../../../src/components/GuideLayout/GuideLayout.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA8B5D,QAAA,MAAM,IAAI;;;;;;;qBAoDA,CAAC;;;;qBAUS,CAAC;;;;;;;;;;;;;;;CArDe,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAKnC,eAAO,MAAM,SAAS,EAAE,KAwGvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KA2B3B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAsD5B,CAAC"}
|