@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.218",
3
+ "version": "0.0.220",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -17,8 +17,7 @@ export const Columns = ({ align, vAlign, columns, children, className }: Columns
17
17
  key={index}
18
18
  className={columnItem}
19
19
  style={{
20
- flex: columns[index],
21
- maxWidth: `${columns[index]}%`,
20
+ flex: `0 0 ${columns[index]}%`,
22
21
  }}>
23
22
  {child}
24
23
  </div>
@@ -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
+ };
@@ -65,6 +65,7 @@ export const columnItem = style({
65
65
  '@media': {
66
66
  [queries.md]: {
67
67
  flex: 'unset',
68
+ maxWidth: 'unset',
68
69
  },
69
70
  },
70
71
  });
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
- export { ThemeToggle } from './components/ThemeToggle';
11
+
12
+ export * from './components/ThemeToggle/export';
12
13
 
13
14
  export * from './components/Actions/export';
14
15
  export * from './components/Button/export';