@latte-macchiat-io/latte-vanilla-components 0.0.218 → 0.0.220
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/package.json
CHANGED
@@ -0,0 +1,34 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
2
|
+
import React from 'react';
|
3
|
+
|
4
|
+
import { Columns } from '.';
|
5
|
+
|
6
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
7
|
+
const meta: Meta<typeof Columns> = {
|
8
|
+
title: 'Latte Components / 1. Global / Columns',
|
9
|
+
component: Columns,
|
10
|
+
parameters: {
|
11
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
|
12
|
+
layout: 'centered',
|
13
|
+
},
|
14
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
15
|
+
tags: ['autodocs'],
|
16
|
+
// More on argTypes: https://storybook.js.org/docs/api/argtypes
|
17
|
+
argTypes: {},
|
18
|
+
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
|
19
|
+
};
|
20
|
+
|
21
|
+
export default meta;
|
22
|
+
type Story = StoryObj<typeof meta>;
|
23
|
+
|
24
|
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
25
|
+
export const Default: Story = {
|
26
|
+
args: {
|
27
|
+
children: (
|
28
|
+
<>
|
29
|
+
<div>Col 1</div>
|
30
|
+
<div>Col 2</div>
|
31
|
+
</>
|
32
|
+
),
|
33
|
+
},
|
34
|
+
};
|
package/src/index.ts
CHANGED
@@ -8,7 +8,8 @@ export { sprinkles, type Sprinkles } from './styles/sprinkles.css';
|
|
8
8
|
export { breakpoints, queries } from './styles/mediaqueries';
|
9
9
|
|
10
10
|
// Components
|
11
|
-
|
11
|
+
|
12
|
+
export * from './components/ThemeToggle/export';
|
12
13
|
|
13
14
|
export * from './components/Actions/export';
|
14
15
|
export * from './components/Button/export';
|