Skip to content

Commit 0b0f683

Browse files
committed
chore: wip decorators
1 parent 5a43124 commit 0b0f683

11 files changed

+7
-22
lines changed

apps/docs/src/content/components/blade.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import { Header } from "../../components/Header";
2727
},
2828
},
2929
}}
30-
decorator={(component) => <div className="flex w-full">{component}</div>}
3130
>
3231
<div className="p-xs">The answer to all things is 42.</div>
3332
</Header>

apps/docs/src/content/components/blades.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { Header } from "../../components/Header";
1515
atLeastOneExpanded: { defaultValue: false },
1616
fullWidthBlades: { defaultValue: true },
1717
}}
18-
decorator={(component) => <div className="w-full">{component}</div>}
1918
>
2019
<HvBlade label="1">
2120
<div className="flex items-center p-xs">Content 1</div>

apps/docs/src/content/components/carousel.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { Header } from "../../components/Header";
1818
showFullscreen: { defaultValue: true },
1919
controlsPosition: { defaultValue: "top" },
2020
}}
21-
decorator={(children) => <div className="overflow">{children}</div>}
2221
>
2322
{[...Array(7).keys()].map((i) => (
2423
<HvCarouselSlide

apps/docs/src/content/components/global-actions.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { Header } from "../../components/Header";
2626
</HvIconButton>
2727
),
2828
}}
29-
decorator={(component) => <div className="w-full">{component}</div>}
3029
>
3130
<HvButton variant="primary">Save</HvButton>
3231
<HvButton variant="secondarySubtle">Reset</HvButton>

apps/docs/src/content/components/number-input.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ import { Header } from "../../components/Header";
1818
readOnly: { defaultValue: false },
1919
disabled: { defaultValue: false },
2020
}}
21-
decorator={(c) => <div className="w-full">{c}</div>}
2221
/>
2322

24-
<br />
25-
2623
<Callout type="info">
2724
The `HvNumberInput` component shares the same API as `HvInput`. For full
2825
documentation, see the [HvInput component page](/components/input).

apps/docs/src/content/components/overflow-tooltip.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ import { Header } from "../../components/Header";
2424
"This is a very long text that should be cut because it so long that it doesn't fit",
2525
},
2626
}}
27-
decorator={(children) => <div className="max-w-160px">{children}</div>}
2827
/>

apps/docs/src/content/components/query-builder.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import { Header } from "../../components/Header";
3030
},
3131
},
3232
}}
33-
decorator={(component) => <div className="w-full">{component}</div>}
3433
/>
3534

3635
### How to use

apps/docs/src/content/components/search-input.mdx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ import {
66

77
import { Header } from "../../components/Header";
88

9-
<Callout type="info">
10-
The `HvSearchInput` component shares the same API as the `HvInput` component.
11-
Please check the [HvInput component page](/components/input) for
12-
documentation.
13-
</Callout>
14-
159
<Header
1610
params={{ name: "SearchInput", classes }}
1711
Component={HvSearchInput}
@@ -24,5 +18,10 @@ import { Header } from "../../components/Header";
2418
readOnly: { defaultValue: false },
2519
disabled: { defaultValue: false },
2620
}}
27-
decorator={(c) => <div className="w-full">{c}</div>}
2821
/>
22+
23+
<Callout type="info">
24+
The `HvSearchInput` component shares the same API as the `HvInput` component.
25+
Please check the [HvInput component page](/components/input) for
26+
documentation.
27+
</Callout>

apps/docs/src/content/components/skeleton.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { Header } from "../../components/Header";
2020
defaultValue: false,
2121
},
2222
}}
23-
decorator={(children) => <div className="w-190px">{children}</div>}
2423
children={<div>My skeleton example content</div>}
2524
/>
2625

apps/docs/src/content/components/tree-view.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { Header } from "../../components/Header";
1616
multiSelect: { defaultValue: false },
1717
disableSelection: { defaultValue: false },
1818
}}
19-
decorator={(children) => <HvPanel className="w-300px">{children}</HvPanel>}
2019
>
2120
<HvTreeItem nodeId="1" label="Applications">
2221
<HvTreeItem nodeId="10" label="Calendar.app" />

apps/docs/src/content/components/typography.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ import { Header } from "../../components/Header";
2323
defaultValue: false,
2424
},
2525
}}
26-
decorator={(children) => (
27-
<div className="w-200px text-balance">{children}</div>
28-
)}
29-
children={"Welcome to Hitachi Vantara's UI Kit."}
26+
children="Welcome to UI Kit."
3027
/>
3128

3229
### Root component

0 commit comments

Comments
 (0)