@latte-macchiat-io/latte-vanilla-components 0.0.184 → 0.0.186

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.
@@ -1,33 +0,0 @@
1
- // import type { Meta, StoryObj } from '@storybook/react';
2
- //
3
- // import { NavSocial } from '../../index';
4
- //
5
- // // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
6
- // const meta: Meta<typeof NavSocial> = {
7
- // title: 'Latte Components / 6. Nav / Social',
8
- // component: NavSocial,
9
- // parameters: {
10
- // // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
11
- // layout: 'centered',
12
- // },
13
- // // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
14
- // tags: ['autodocs'],
15
- // // More on argTypes: https://storybook.js.org/docs/api/argtypes
16
- // argTypes: {},
17
- // // 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
18
- // };
19
- //
20
- // export default meta;
21
- // type Story = StoryObj<typeof meta>;
22
- //
23
- // // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
24
- // export const Default: Story = {
25
- // args: {
26
- // navSocial: [
27
- // {
28
- // name: 'instagram',
29
- // link: 'https://www.instagram.com/',
30
- // },
31
- // ],
32
- // },
33
- // };
@@ -1,20 +0,0 @@
1
- import { createGlobalTheme } from '@vanilla-extract/css';
2
- import { themeContract } from '../theme/contract.css';
3
- import { baseLightTheme } from '../theme/baseThemeValues';
4
-
5
- // Create a default theme for quick usage and RAD (Rapid Application Development)
6
- // This provides a ready-to-use theme without any customization needed
7
- export const defaultTheme = createGlobalTheme(':root', themeContract, {
8
- colors: baseLightTheme.colors,
9
- space: baseLightTheme.space,
10
- radii: baseLightTheme.radii,
11
- fonts: baseLightTheme.fonts,
12
- maxWidth: baseLightTheme.maxWidth,
13
- fontSizes: baseLightTheme.fontSizes,
14
- fontWeights: baseLightTheme.fontWeights,
15
- lineHeights: baseLightTheme.lineHeights,
16
- shadows: baseLightTheme.shadows,
17
- section: baseLightTheme.section,
18
- header: baseLightTheme.header,
19
- footer: baseLightTheme.footer,
20
- });
@@ -1,52 +0,0 @@
1
- import { baseLightTheme, baseDarkTheme } from '../theme/baseThemeValues';
2
-
3
- // Type for partial theme overrides
4
- export type ThemeOverrides = {
5
- colors?: Partial<typeof baseLightTheme.colors>;
6
- space?: Partial<typeof baseLightTheme.space>;
7
- radii?: Partial<typeof baseLightTheme.radii>;
8
- fonts?: Partial<typeof baseLightTheme.fonts>;
9
- maxWidth?: string;
10
- fontSizes?: Partial<typeof baseLightTheme.fontSizes>;
11
- fontWeights?: Partial<typeof baseLightTheme.fontWeights>;
12
- lineHeights?: Partial<typeof baseLightTheme.lineHeights>;
13
- shadows?: Partial<typeof baseLightTheme.shadows>;
14
- section?: Partial<typeof baseLightTheme.section>;
15
- header?: Partial<typeof baseLightTheme.header>;
16
- footer?: Partial<typeof baseLightTheme.footer>;
17
- };
18
-
19
- // Utility to merge overrides with base theme
20
- export const createCustomLightTheme = (overrides: ThemeOverrides = {}) => {
21
- return {
22
- colors: { ...baseLightTheme.colors, ...overrides.colors },
23
- space: { ...baseLightTheme.space, ...overrides.space },
24
- radii: { ...baseLightTheme.radii, ...overrides.radii },
25
- fonts: { ...baseLightTheme.fonts, ...overrides.fonts },
26
- maxWidth: overrides.maxWidth || `${baseLightTheme.maxWidth}px`,
27
- fontSizes: { ...baseLightTheme.fontSizes, ...overrides.fontSizes },
28
- fontWeights: { ...baseLightTheme.fontWeights, ...overrides.fontWeights },
29
- lineHeights: { ...baseLightTheme.lineHeights, ...overrides.lineHeights },
30
- shadows: { ...baseLightTheme.shadows, ...overrides.shadows },
31
- section: { ...baseLightTheme.section, ...overrides.section },
32
- header: { ...baseLightTheme.header, ...overrides.header },
33
- footer: { ...baseLightTheme.footer, ...overrides.footer },
34
- };
35
- };
36
-
37
- export const createCustomDarkTheme = (overrides: ThemeOverrides = {}) => {
38
- return {
39
- colors: { ...baseDarkTheme.colors, ...overrides.colors },
40
- space: { ...baseDarkTheme.space, ...overrides.space },
41
- radii: { ...baseDarkTheme.radii, ...overrides.radii },
42
- fonts: { ...baseDarkTheme.fonts, ...overrides.fonts },
43
- maxWidth: overrides.maxWidth || `${baseDarkTheme.maxWidth}px`,
44
- fontSizes: { ...baseDarkTheme.fontSizes, ...overrides.fontSizes },
45
- fontWeights: { ...baseDarkTheme.fontWeights, ...overrides.fontWeights },
46
- lineHeights: { ...baseDarkTheme.lineHeights, ...overrides.lineHeights },
47
- shadows: { ...baseDarkTheme.shadows, ...overrides.shadows },
48
- section: { ...baseDarkTheme.section, ...overrides.section },
49
- header: { ...baseDarkTheme.header, ...overrides.header },
50
- footer: { ...baseDarkTheme.footer, ...overrides.footer },
51
- };
52
- };
@@ -1,10 +0,0 @@
1
- import { createGlobalTheme, createThemeContract } from '@vanilla-extract/css';
2
- import { themeContract } from '../theme/contract.css';
3
-
4
- // Create a higher-specificity theme that can override the base themes
5
- export const themeOverrides = createThemeContract(themeContract);
6
-
7
- // Export a utility to create CSS theme overrides with custom selectors
8
- export const createScopedTheme = (selector: string, values: Partial<typeof themeContract>) => {
9
- return createGlobalTheme(selector, themeContract, values as any);
10
- };