-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa9c658
commit 7079c30
Showing
34 changed files
with
849 additions
and
475 deletions.
There are no files selected for viewing
15 changes: 0 additions & 15 deletions
15
packages/core/src/stories/utility/utility-classes/align.stories.mdx
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
packages/core/src/stories/utility/utility-classes/align.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import type { Meta } from '@storybook/html'; | ||
import hljs from 'highlight.js'; | ||
import 'highlight.js/styles/default.css'; | ||
|
||
const meta: Meta = { | ||
title: 'Utilities/Utility Classes/Align', | ||
parameters: { | ||
layout: 'fullscreen', | ||
options: { | ||
showPanel: false, | ||
showToolbar: true, | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
export const Align = { | ||
render: () => { | ||
const code = ` | ||
.tds-u-align-start { | ||
align-items: start !important; | ||
} | ||
.tds-u-align-center { | ||
align-items: center !important; | ||
} | ||
.tds-u-align-end { | ||
align-items: end !important; | ||
} | ||
`; | ||
|
||
const highlightedCode = hljs.highlight(code, { language: 'css' }).value; | ||
|
||
return `<pre><code class="hljs">${highlightedCode}</code></pre>`; | ||
}, | ||
}; |
27 changes: 0 additions & 27 deletions
27
packages/core/src/stories/utility/utility-classes/display.stories.mdx
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
packages/core/src/stories/utility/utility-classes/display.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import type { Meta } from '@storybook/html'; | ||
import hljs from 'highlight.js'; | ||
import 'highlight.js/styles/default.css'; | ||
|
||
const meta: Meta = { | ||
title: 'Utilities/Utility Classes/Display', | ||
parameters: { | ||
layout: 'fullscreen', | ||
options: { | ||
showPanel: false, | ||
showToolbar: true, | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
export const Display = { | ||
render: () => { | ||
const code = ` | ||
.tds-u-flex { | ||
display: flex !important; | ||
} | ||
.tds-u-inline-flex { | ||
display: inline-flex; | ||
} | ||
.tds-u-block { | ||
display: block !important; | ||
} | ||
.tds-u-inline-block { | ||
display: inline-block !important; | ||
} | ||
.tds-u-grid { | ||
display: grid !important; | ||
} | ||
.tds-u-display-none { | ||
display: none !important; | ||
} | ||
`; | ||
|
||
const highlightedCode = hljs.highlight(code, { language: 'css' }).value; | ||
|
||
return `<pre><code class="hljs">${highlightedCode}</code></pre>`; | ||
}, | ||
}; |
27 changes: 0 additions & 27 deletions
27
packages/core/src/stories/utility/utility-classes/flex.stories.mdx
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
packages/core/src/stories/utility/utility-classes/flex.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import type { Meta } from '@storybook/html'; | ||
import hljs from 'highlight.js'; | ||
import 'highlight.js/styles/default.css'; | ||
|
||
const meta: Meta = { | ||
title: 'Utilities/Utility Classes/Flex', | ||
parameters: { | ||
layout: 'fullscreen', | ||
options: { | ||
showPanel: false, | ||
showToolbar: true, | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
export const Flex = { | ||
render: () => { | ||
const code = ` | ||
.tds-u-flex-start { | ||
display: flex !important; | ||
justify-content: flex-start !important; | ||
} | ||
.tds-u-flex-end { | ||
display: flex !important; | ||
justify-content: flex-end !important; | ||
} | ||
.tds-u-flex-center { | ||
display: flex !important; | ||
justify-content: center !important; | ||
align-items: center !important; | ||
} | ||
.tds-u-flex-dir-col { | ||
flex-direction: column !important; | ||
} | ||
.tds-u-flex-wrap { | ||
flex-wrap: wrap !important; | ||
} | ||
`; | ||
|
||
const highlightedCode = hljs.highlight(code, { language: 'css' }).value; | ||
|
||
return `<pre><code class="hljs">${highlightedCode}</code></pre>`; | ||
}, | ||
}; |
15 changes: 0 additions & 15 deletions
15
packages/core/src/stories/utility/utility-classes/float.stories.mdx
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
packages/core/src/stories/utility/utility-classes/float.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import type { Meta } from '@storybook/html'; | ||
import hljs from 'highlight.js'; | ||
import 'highlight.js/styles/default.css'; | ||
|
||
const meta: Meta = { | ||
title: 'Utilities/Utility Classes/Float', | ||
parameters: { | ||
layout: 'fullscreen', | ||
options: { | ||
showPanel: false, | ||
showToolbar: true, | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
export const Float = { | ||
render: () => { | ||
const code = ` | ||
.tds-u-float-right { | ||
float: right !important; | ||
} | ||
.tds-u-float-left { | ||
float: left !important; | ||
} | ||
.tds-u-float-none { | ||
float: none !important; | ||
} | ||
`; | ||
|
||
const highlightedCode = hljs.highlight(code, { language: 'css' }).value; | ||
|
||
return `<pre><code class="hljs">${highlightedCode}</code></pre>`; | ||
}, | ||
}; |
19 changes: 0 additions & 19 deletions
19
packages/core/src/stories/utility/utility-classes/gap.stories.mdx
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
packages/core/src/stories/utility/utility-classes/gap.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import type { Meta } from '@storybook/html'; | ||
import hljs from 'highlight.js'; | ||
import 'highlight.js/styles/default.css'; | ||
|
||
const meta: Meta = { | ||
title: 'Utilities/Utility Classes/Gap', | ||
parameters: { | ||
layout: 'fullscreen', | ||
options: { | ||
showPanel: false, | ||
showToolbar: true, | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
export const Gap = { | ||
render: () => { | ||
const code = ` | ||
.tds-u-gap1 { | ||
gap: 8px !important; | ||
} | ||
.tds-u-gap2 { | ||
gap: 16px !important; | ||
} | ||
.tds-u-gap3 { | ||
gap: 24px !important; | ||
} | ||
.tds-u-gap4 { | ||
gap: 32px !important; | ||
} | ||
`; | ||
|
||
const highlightedCode = hljs.highlight(code, { language: 'css' }).value; | ||
|
||
return `<pre><code class="hljs">${highlightedCode}</code></pre>`; | ||
}, | ||
}; |
23 changes: 0 additions & 23 deletions
23
packages/core/src/stories/utility/utility-classes/height.stories.mdx
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
packages/core/src/stories/utility/utility-classes/height.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import type { Meta } from '@storybook/html'; | ||
import hljs from 'highlight.js'; | ||
import 'highlight.js/styles/default.css'; | ||
|
||
const meta: Meta = { | ||
title: 'Utilities/Utility Classes/Height', | ||
parameters: { | ||
layout: 'fullscreen', | ||
options: { | ||
showPanel: false, | ||
showToolbar: true, | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
export const Height = { | ||
render: () => { | ||
const code = ` | ||
.tds-u-h-auto { | ||
height: auto !important; | ||
} | ||
.tds-u-h-100 { | ||
height: 100% !important; | ||
} | ||
.tds-u-h-75 { | ||
height: 75% !important; | ||
} | ||
.tds-u-h-50 { | ||
height: 50% !important; | ||
} | ||
.tds-u-h-25 { | ||
height: 25% !important; | ||
} | ||
`; | ||
|
||
const highlightedCode = hljs.highlight(code, { language: 'css' }).value; | ||
|
||
return `<pre><code class="hljs">${highlightedCode}</code></pre>`; | ||
}, | ||
}; |
Oops, something went wrong.