Skip to content

Commit a02d801

Browse files
feat: add fitHeight param (#146)
1 parent 0895209 commit a02d801

60 files changed

Lines changed: 183 additions & 46 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/csk-marketing-site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uniformdev/csk-marketing-site",
3-
"version": "6.0.84",
3+
"version": "6.0.85",
44
"private": true,
55
"engines": {
66
"yarn": "please-use-npm",

apps/csk-storybook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uniformdev/csk-storybook",
3-
"version": "6.0.84",
3+
"version": "6.0.85",
44
"description": "CSK vNext Storybook is an interactive Storybook build showcasing components from the CSK vNext component starter kit. It provides detailed documentation, live previews, and testing capabilities for easy integration into your projects.",
55
"main": "index.js",
66
"scripts": {

apps/csk-storybook/src/stories/canvas/components/Card.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const Default: Story = createStory({
8181
backgroundColor: 'text-secondary',
8282
fluidContent: true,
8383
fullHeight: false,
84+
fitHeight: false,
8485
},
8586
content: cardDefault,
8687
});

apps/csk-storybook/src/stories/canvas/components/Carousel.stories.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const Default: Story = {
5959
backgroundColor: 'text-secondary',
6060
fluidContent: true,
6161
fullHeight: false,
62+
fitHeight: false,
6263
itemsPerPage: '1',
6364
},
6465
argTypes,
@@ -71,6 +72,7 @@ export const DefaultWithMultipleItems: Story = {
7172
backgroundColor: 'text-secondary',
7273
fluidContent: true,
7374
fullHeight: false,
75+
fitHeight: false,
7476
itemsPerPage: '3',
7577
gapX: '4',
7678
},
@@ -84,6 +86,7 @@ export const BrochureWithMultipleItems: Story = {
8486
backgroundColor: 'text-secondary',
8587
fluidContent: true,
8688
fullHeight: false,
89+
fitHeight: false,
8790
itemsPerPage: '3',
8891
gapX: '4',
8992
},
@@ -97,6 +100,7 @@ export const NumericWithMultipleItems: Story = {
97100
backgroundColor: 'text-secondary',
98101
fluidContent: true,
99102
fullHeight: false,
103+
fitHeight: false,
100104
itemsPerPage: '3',
101105
gapX: '4',
102106
},

apps/csk-storybook/src/stories/canvas/components/Container.stories.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export const Default: Story = {
5858
backgroundColor: 'text-secondary',
5959
fluidContent: false,
6060
fullHeight: false,
61+
fitHeight: false,
6162
},
6263
argTypes,
6364
render: renderStory('Simple Container'),
@@ -69,6 +70,7 @@ export const FluidContainer: Story = {
6970
backgroundColor: 'text-secondary',
7071
fluidContent: true,
7172
fullHeight: false,
73+
fitHeight: false,
7274
},
7375
argTypes,
7476
render: renderStory('Fluid Container'),
@@ -80,6 +82,7 @@ export const FullHeightContainer: Story = {
8082
backgroundColor: 'text-secondary',
8183
fluidContent: false,
8284
fullHeight: true,
85+
fitHeight: false,
8386
},
8487
argTypes,
8588
render: renderStory('Full Height Container'),
@@ -101,6 +104,7 @@ export const WithSpacingContainer: Story = {
101104
},
102105
fluidContent: false,
103106
fullHeight: true,
107+
fitHeight: false,
104108
},
105109
argTypes,
106110
render: renderStory('With Spacing Container'),

apps/csk-storybook/src/stories/canvas/components/FixedHero.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const meta: Meta<typeof DemoHero.FixedHero> = {
3737
export default meta;
3838
type Story = StoryObj<typeof DemoHero.FixedHero>;
3939

40-
const { displayName, fullHeight } = ContainerArgTypes;
40+
const { displayName, fullHeight, fitHeight } = ContainerArgTypes;
4141
const { text, tag, color } = TextArgTypes;
4242
const { text: buttonText } = ButtonArgTypes;
4343

@@ -51,6 +51,7 @@ const argTypes: Partial<ArgTypes<FixedHeroParameters>> = {
5151
textColor: color,
5252
enableOverlayAutoTint: { control: 'boolean' },
5353
fullHeight,
54+
fitHeight,
5455
};
5556

5657
const renderStory = (variant?: FixedHeroVariants) => (args: FixedHeroParameters) => {

apps/csk-storybook/src/stories/canvas/components/Flex.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const Default: Story = {
4444
backgroundColor: 'text-secondary',
4545
fluidContent: false,
4646
fullHeight: false,
47+
fitHeight: false,
4748
},
4849
argTypes,
4950
render: (args: FlexParameters) => {

apps/csk-storybook/src/stories/canvas/components/Grid.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const Default: Story = {
3636
backgroundColor: 'text-secondary',
3737
fluidContent: false,
3838
fullHeight: false,
39+
fitHeight: false,
3940
},
4041
argTypes,
4142
render: (args: GridParameters) => {

apps/csk-storybook/src/stories/canvas/components/ImageGallery.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const Default: Story = {
2929
backgroundColor: 'text-secondary',
3030
fluidContent: true,
3131
fullHeight: false,
32+
fitHeight: false,
3233
},
3334
argTypes,
3435
render: (args: ImageGalleryParameters) => {

apps/csk/content/component/accordion.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ parameters:
2020
- border
2121
- fluidContent
2222
- fullHeight
23+
- fitHeight
2324
- id: backgroundColor
2425
name: Background Color
2526
type: dex-color-palette-parameter
@@ -48,6 +49,10 @@ parameters:
4849
name: Full Height
4950
type: checkbox
5051
typeConfig: null
52+
- id: fitHeight
53+
name: Fit Height
54+
type: checkbox
55+
typeConfig: null
5156
categoryId: 096fd5ed-5e2a-4bfa-834b-fb805d1d1ce9
5257
previewImageUrl: >-
5358
https://res.cloudinary.com/uniform-demos/image/upload/csk-v-next/baseline/preview-images/accordion.jpg

0 commit comments

Comments
 (0)