@vaneui/ui 0.1.7 → 0.1.8-alpha.20250714170309.cd74562

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.
@@ -3,7 +3,7 @@ import { ComponentTheme } from "./ui/theme/common/ComponentTheme";
3
3
  import { ButtonTheme } from './ui/theme/buttonTheme';
4
4
  import { BadgeTheme } from './ui/theme/badgeTheme';
5
5
  import { ChipTheme } from './ui/theme/chipTheme';
6
- import { TypographyComponentTheme } from './ui/theme/typographyComponentTheme';
6
+ import { ListTheme, TypographyComponentTheme } from './ui/theme/typographyComponentTheme';
7
7
  import { CardTheme } from "./ui/theme/cardTheme";
8
8
  import { RowTheme } from "./ui/theme/rowTheme";
9
9
  import { DividerTheme } from './ui/theme/dividerTheme';
@@ -12,7 +12,7 @@ import { ColTheme } from './ui/theme/colTheme';
12
12
  import { StackTheme } from './ui/theme/stackTheme';
13
13
  import { SectionTheme } from "./ui/theme/sectionTheme";
14
14
  import { GridTheme } from "./ui/theme/gridTheme";
15
- import { BadgeProps, ButtonProps, CardProps, ChipProps, ColProps, ContainerProps, DividerProps, GridProps, RowProps, SectionProps, StackProps, TypographyComponentProps } from "./ui/props/props";
15
+ import { BadgeProps, ButtonProps, CardProps, ChipProps, ColProps, ContainerProps, DividerProps, GridProps, RowProps, SectionProps, StackProps, TypographyProps } from "./ui/props/props";
16
16
  import { DeepPartial } from "./utils/deepPartial";
17
17
  export declare const COMPONENT_KEYS: readonly ["button", "badge", "chip", "card", "divider", "row", "col", "stack", "section", "grid3", "grid4", "pageTitle", "sectionTitle", "title", "text", "link", "list", "listItem"];
18
18
  export type ComponentKey = typeof COMPONENT_KEYS[number];
@@ -29,13 +29,13 @@ export interface ThemeProps extends Record<ComponentKey, ComponentTheme<object,
29
29
  section: ComponentTheme<SectionProps, SectionTheme>;
30
30
  grid3: ComponentTheme<GridProps, GridTheme>;
31
31
  grid4: ComponentTheme<GridProps, GridTheme>;
32
- pageTitle: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
33
- sectionTitle: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
34
- title: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
35
- text: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
36
- link: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
37
- list: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
38
- listItem: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
32
+ pageTitle: ComponentTheme<TypographyProps, TypographyComponentTheme>;
33
+ sectionTitle: ComponentTheme<TypographyProps, TypographyComponentTheme>;
34
+ title: ComponentTheme<TypographyProps, TypographyComponentTheme>;
35
+ text: ComponentTheme<TypographyProps, TypographyComponentTheme>;
36
+ link: ComponentTheme<TypographyProps, TypographyComponentTheme>;
37
+ list: ComponentTheme<TypographyProps, ListTheme>;
38
+ listItem: ComponentTheme<TypographyProps, TypographyComponentTheme>;
39
39
  }
40
40
  export type PartialTheme = DeepPartial<ThemeProps>;
41
41
  export declare const defaultTheme: ThemeProps;
@@ -1,3 +1,3 @@
1
1
  import { JSX } from 'react';
2
- import { TypographyComponentProps } from './props/props';
3
- export declare const Chip: (props: TypographyComponentProps) => JSX.Element;
2
+ import { TypographyProps } from './props/props';
3
+ export declare const Chip: (props: TypographyProps) => JSX.Element;
@@ -56,8 +56,8 @@ export type DisplayKey = typeof DISPLAY_KEYS[number];
56
56
  export type OverflowKey = typeof OVERFLOW_KEYS[number];
57
57
  export declare const BASE_COMPONENT_KEYS: readonly ["xs", "sm", "md", "lg", "xl", "xsHide", "smHide", "mdHide", "lgHide", "xlHide", "itemsStart", "itemsEnd", "itemsCenter", "itemsBaseline", "itemsStretch", "justifyStart", "justifyEnd", "justifyCenter", "justifyBetween", "justifyAround", "justifyEvenly", "justifyStretch", "justifyBaseline", "relative", "absolute", "fixed", "sticky", "static", "inline", "block", "inlineBlock", "flex", "inlineFlex", "grid", "inlineGrid", "contents", "table", "tableCell", "hidden", "overflowAuto", "overflowHidden", "overflowClip", "overflowVisible", "overflowScroll", "overflowXAuto", "overflowYAuto", "overflowXHidden", "overflowYHidden", "overflowXClip", "overflowYClip", "overflowXVisible", "overflowYVisible", "overflowXScroll", "overflowYScroll"];
58
58
  export declare const FONT_KEYS: readonly ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", "italic", "notItalic", "underline", "lineThrough", "noUnderline", "overline", "uppercase", "lowercase", "capitalize", "normalCase", "sans", "serif", "mono", "default", "accent", "primary", "secondary", "tertiary", "success", "danger", "warning", "info", "transparent", "muted", "link", "textLeft", "textCenter", "textRight", "textJustify"];
59
- export declare const TYPOGRAPHY_COMPONENT_KEYS: readonly ["xs", "sm", "md", "lg", "xl", "xsHide", "smHide", "mdHide", "lgHide", "xlHide", "itemsStart", "itemsEnd", "itemsCenter", "itemsBaseline", "itemsStretch", "justifyStart", "justifyEnd", "justifyCenter", "justifyBetween", "justifyAround", "justifyEvenly", "justifyStretch", "justifyBaseline", "relative", "absolute", "fixed", "sticky", "static", "inline", "block", "inlineBlock", "flex", "inlineFlex", "grid", "inlineGrid", "contents", "table", "tableCell", "hidden", "overflowAuto", "overflowHidden", "overflowClip", "overflowVisible", "overflowScroll", "overflowXAuto", "overflowYAuto", "overflowXHidden", "overflowYHidden", "overflowXClip", "overflowYClip", "overflowXVisible", "overflowYVisible", "overflowXScroll", "overflowYScroll", "thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", "italic", "notItalic", "underline", "lineThrough", "noUnderline", "overline", "uppercase", "lowercase", "capitalize", "normalCase", "sans", "serif", "mono", "default", "accent", "primary", "secondary", "tertiary", "success", "danger", "warning", "info", "transparent", "muted", "link", "textLeft", "textCenter", "textRight", "textJustify"];
60
- export type TypographyComponentKey = typeof TYPOGRAPHY_COMPONENT_KEYS[number];
59
+ export declare const TYPOGRAPHY_KEYS: readonly ["xs", "sm", "md", "lg", "xl", "xsHide", "smHide", "mdHide", "lgHide", "xlHide", "itemsStart", "itemsEnd", "itemsCenter", "itemsBaseline", "itemsStretch", "justifyStart", "justifyEnd", "justifyCenter", "justifyBetween", "justifyAround", "justifyEvenly", "justifyStretch", "justifyBaseline", "relative", "absolute", "fixed", "sticky", "static", "inline", "block", "inlineBlock", "flex", "inlineFlex", "grid", "inlineGrid", "contents", "table", "tableCell", "hidden", "overflowAuto", "overflowHidden", "overflowClip", "overflowVisible", "overflowScroll", "overflowXAuto", "overflowYAuto", "overflowXHidden", "overflowYHidden", "overflowXClip", "overflowYClip", "overflowXVisible", "overflowYVisible", "overflowXScroll", "overflowYScroll", "thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", "italic", "notItalic", "underline", "lineThrough", "noUnderline", "overline", "uppercase", "lowercase", "capitalize", "normalCase", "sans", "serif", "mono", "default", "accent", "primary", "secondary", "tertiary", "success", "danger", "warning", "info", "transparent", "muted", "link", "textLeft", "textCenter", "textRight", "textJustify"];
60
+ export type TypographyKey = typeof TYPOGRAPHY_KEYS[number];
61
61
  export declare const BUTTON_KEYS: readonly ["xs", "sm", "md", "lg", "xl", "xsHide", "smHide", "mdHide", "lgHide", "xlHide", "itemsStart", "itemsEnd", "itemsCenter", "itemsBaseline", "itemsStretch", "justifyStart", "justifyEnd", "justifyCenter", "justifyBetween", "justifyAround", "justifyEvenly", "justifyStretch", "justifyBaseline", "relative", "absolute", "fixed", "sticky", "static", "inline", "block", "inlineBlock", "flex", "inlineFlex", "grid", "inlineGrid", "contents", "table", "tableCell", "hidden", "overflowAuto", "overflowHidden", "overflowClip", "overflowVisible", "overflowScroll", "overflowXAuto", "overflowYAuto", "overflowXHidden", "overflowYHidden", "overflowXClip", "overflowYClip", "overflowXVisible", "overflowYVisible", "overflowXScroll", "overflowYScroll", "thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", "italic", "notItalic", "underline", "lineThrough", "noUnderline", "overline", "uppercase", "lowercase", "capitalize", "normalCase", "sans", "serif", "mono", "default", "accent", "primary", "secondary", "tertiary", "success", "danger", "warning", "info", "transparent", "muted", "link", "textLeft", "textCenter", "textRight", "textJustify", "pill", "sharp", "rounded", "border", "noBorder", "shadow", "noShadow", "ring", "noRing", "gap", "noGap", "padding", "noPadding", "filled", "outline", "default", "accent", "primary", "secondary", "tertiary", "success", "danger", "warning", "info", "transparent", "muted", "link"];
62
62
  export type ButtonKey = typeof BUTTON_KEYS[number];
63
63
  export declare const GRID_KEYS: readonly ["xs", "sm", "md", "lg", "xl", "xsHide", "smHide", "mdHide", "lgHide", "xlHide", "itemsStart", "itemsEnd", "itemsCenter", "itemsBaseline", "itemsStretch", "justifyStart", "justifyEnd", "justifyCenter", "justifyBetween", "justifyAround", "justifyEvenly", "justifyStretch", "justifyBaseline", "relative", "absolute", "fixed", "sticky", "static", "inline", "block", "inlineBlock", "flex", "inlineFlex", "grid", "inlineGrid", "contents", "table", "tableCell", "hidden", "overflowAuto", "overflowHidden", "overflowClip", "overflowVisible", "overflowScroll", "overflowXAuto", "overflowYAuto", "overflowXHidden", "overflowYHidden", "overflowXClip", "overflowYClip", "overflowXVisible", "overflowYVisible", "overflowXScroll", "overflowYScroll", "gap", "noGap", "default", "accent", "primary", "secondary", "tertiary", "success", "danger", "warning", "info", "transparent"];
@@ -1,12 +1,12 @@
1
1
  import React from "react";
2
- import { BadgeKey, ButtonKey, GridKey, RowKey, ColKey, CardKey, StackKey, ChipKey, DividerKey, ContainerKey, SectionKey, TypographyComponentKey } from "./keys";
2
+ import { BadgeKey, ButtonKey, GridKey, RowKey, ColKey, CardKey, StackKey, ChipKey, DividerKey, ContainerKey, SectionKey, TypographyKey } from "./keys";
3
3
  export type ComponentProps = {
4
4
  tag?: React.ReactNode | string | any;
5
5
  className?: string;
6
6
  children?: React.ReactNode;
7
7
  } & React.HTMLProps<HTMLElement>;
8
- export type TypographyComponentProps = {
9
- [K in TypographyComponentKey]?: boolean;
8
+ export type TypographyProps = {
9
+ [K in TypographyKey]?: boolean;
10
10
  } & ComponentProps;
11
11
  export type ButtonProps = {
12
12
  [K in ButtonKey]?: boolean;
@@ -0,0 +1,9 @@
1
+ import { SizeKey, PaddingKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ export interface PaddingTheme extends Record<PaddingKey, string | Record<SizeKey, string>> {
4
+ }
5
+ export declare class PaddingTheme extends BaseTheme {
6
+ readonly defaultClasses: Record<PaddingKey, string | Record<SizeKey, string>>;
7
+ constructor(initial?: Partial<Record<PaddingKey, string | Record<SizeKey, string>>>);
8
+ getClasses(props: Record<string, boolean>, defaults: Record<string, boolean>): string[];
9
+ }
@@ -0,0 +1,7 @@
1
+ import { SizeKey, PaddingKey } from "../../props";
2
+ import { PaddingTheme } from "./paddingTheme";
3
+ export interface PlTheme extends Record<PaddingKey, string | Record<SizeKey, string>> {
4
+ }
5
+ export declare class PlTheme extends PaddingTheme {
6
+ readonly defaultClasses: Record<PaddingKey, string | Record<SizeKey, string>>;
7
+ }
@@ -1,9 +1,7 @@
1
- import { SizeKey, PaddingKey } from "../../props/keys";
2
- import { BaseTheme } from "../common/baseTheme";
1
+ import { SizeKey, PaddingKey } from "../../props";
2
+ import { PaddingTheme } from "./paddingTheme";
3
3
  export interface PxTheme extends Record<PaddingKey, string | Record<SizeKey, string>> {
4
4
  }
5
- export declare class PxTheme extends BaseTheme {
6
- static readonly defaultClasses: Record<PaddingKey, string | Record<SizeKey, string>>;
7
- constructor(initial?: Partial<Record<PaddingKey, string | Record<SizeKey, string>>>);
8
- getClasses(props: Record<string, boolean>, defaults: Record<string, boolean>): string[];
5
+ export declare class PxTheme extends PaddingTheme {
6
+ readonly defaultClasses: Record<PaddingKey, string | Record<SizeKey, string>>;
9
7
  }
@@ -1,9 +1,7 @@
1
- import { SizeKey, PaddingKey } from "../../props/keys";
2
- import { BaseTheme } from "../common/baseTheme";
1
+ import { SizeKey, PaddingKey } from "../../props";
2
+ import { PaddingTheme } from "./paddingTheme";
3
3
  export interface PyTheme extends Record<PaddingKey, string | Record<SizeKey, string>> {
4
4
  }
5
- export declare class PyTheme extends BaseTheme {
6
- static readonly defaultClasses: Record<PaddingKey, string | Record<SizeKey, string>>;
7
- constructor(initial?: Partial<Record<PaddingKey, string | Record<SizeKey, string>>>);
8
- getClasses(props: Record<string, boolean>, defaults: Record<string, boolean>): string[];
5
+ export declare class PyTheme extends PaddingTheme {
6
+ readonly defaultClasses: Record<PaddingKey, string | Record<SizeKey, string>>;
9
7
  }
@@ -1,5 +1,5 @@
1
1
  import { BaseTheme } from "../common/baseTheme";
2
- import { SizeKey } from "../../props/keys";
2
+ import { SizeKey } from "../../props";
3
3
  export interface SizeTheme extends Record<SizeKey, string> {
4
4
  }
5
5
  export declare class SizeTheme extends BaseTheme {
@@ -1,9 +1,10 @@
1
- import { TypographyComponentProps } from "../props/props";
1
+ import { TypographyProps } from "../props/props";
2
2
  import React from "react";
3
3
  import { BaseTypographyComponentTheme, ComponentTheme } from "./common/ComponentTheme";
4
4
  import { SizeTheme } from "./size/sizeTheme";
5
5
  import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
6
6
  import { SizeKey } from "../props";
7
+ import { PlTheme } from "./size/plTheme";
7
8
  export interface TypographyComponentTheme extends BaseTypographyComponentTheme {
8
9
  size: {
9
10
  text: SizeTheme;
@@ -12,11 +13,17 @@ export interface TypographyComponentTheme extends BaseTypographyComponentTheme {
12
13
  text: TextAppearanceTheme;
13
14
  };
14
15
  }
15
- export declare const createTypographyComponentTheme: (tag: React.ReactNode | string | any, base?: string, textSizeMap?: Record<SizeKey, string>, defaults?: Partial<TypographyComponentProps>) => ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
16
- export declare const pageTitleTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
17
- export declare const sectionTitleTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
18
- export declare const titleTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
19
- export declare const textTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
20
- export declare const linkTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
21
- export declare const listItemTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
22
- export declare const listTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
16
+ export interface ListTheme extends TypographyComponentTheme {
17
+ size: {
18
+ text: SizeTheme;
19
+ paddingLeft: PlTheme;
20
+ };
21
+ }
22
+ export declare const createTypographyComponentTheme: (tag: React.ReactNode | string | any, base?: string, textSizeMap?: Record<SizeKey, string>, defaults?: Partial<TypographyProps>) => ComponentTheme<TypographyProps, TypographyComponentTheme>;
23
+ export declare const pageTitleTheme: ComponentTheme<TypographyProps, TypographyComponentTheme>;
24
+ export declare const sectionTitleTheme: ComponentTheme<TypographyProps, TypographyComponentTheme>;
25
+ export declare const titleTheme: ComponentTheme<TypographyProps, TypographyComponentTheme>;
26
+ export declare const textTheme: ComponentTheme<TypographyProps, TypographyComponentTheme>;
27
+ export declare const linkTheme: ComponentTheme<TypographyProps, TypographyComponentTheme>;
28
+ export declare const listItemTheme: ComponentTheme<TypographyProps, TypographyComponentTheme>;
29
+ export declare const listTheme: ComponentTheme<TypographyProps, ListTheme>;
@@ -1,9 +1,9 @@
1
1
  import { JSX } from 'react';
2
- import { TypographyComponentProps } from './props/props';
3
- export declare const PageTitle: (props: TypographyComponentProps) => JSX.Element;
4
- export declare const SectionTitle: (props: TypographyComponentProps) => JSX.Element;
5
- export declare const Title: (props: TypographyComponentProps) => JSX.Element;
6
- export declare const Text: (props: TypographyComponentProps) => JSX.Element;
7
- export declare const Link: (props: TypographyComponentProps) => JSX.Element;
8
- export declare const ListItem: (props: TypographyComponentProps) => JSX.Element;
9
- export declare const List: (props: TypographyComponentProps) => JSX.Element;
2
+ import { TypographyProps } from './props/props';
3
+ export declare const PageTitle: (props: TypographyProps) => JSX.Element;
4
+ export declare const SectionTitle: (props: TypographyProps) => JSX.Element;
5
+ export declare const Title: (props: TypographyProps) => JSX.Element;
6
+ export declare const Text: (props: TypographyProps) => JSX.Element;
7
+ export declare const Link: (props: TypographyProps) => JSX.Element;
8
+ export declare const ListItem: (props: TypographyProps) => JSX.Element;
9
+ export declare const List: (props: TypographyProps) => JSX.Element;
package/dist/index.esm.js CHANGED
@@ -89,13 +89,13 @@ const FONT_KEYS = [
89
89
  ...TEXT_ALIGN_KEYS
90
90
  ];
91
91
  // Typography component keys
92
- const TYPOGRAPHY_COMPONENT_KEYS = [
92
+ const TYPOGRAPHY_KEYS = [
93
93
  ...BASE_COMPONENT_KEYS,
94
94
  ...FONT_KEYS
95
95
  ];
96
96
  // Button keys
97
97
  const BUTTON_KEYS = [
98
- ...TYPOGRAPHY_COMPONENT_KEYS,
98
+ ...TYPOGRAPHY_KEYS,
99
99
  ...SHAPE_KEYS,
100
100
  ...BORDER_KEYS,
101
101
  ...SHADOW_KEYS,
@@ -130,7 +130,7 @@ const COL_KEYS = [
130
130
  ];
131
131
  // Card keys
132
132
  const CARD_KEYS = [
133
- ...TYPOGRAPHY_COMPONENT_KEYS,
133
+ ...TYPOGRAPHY_KEYS,
134
134
  ...GAP_KEYS,
135
135
  ...SHARP_KEYS,
136
136
  ...ROUNDED_KEYS,
@@ -157,7 +157,7 @@ const STACK_KEYS = [
157
157
  ];
158
158
  // Badge keys
159
159
  const BADGE_KEYS = [
160
- ...TYPOGRAPHY_COMPONENT_KEYS,
160
+ ...TYPOGRAPHY_KEYS,
161
161
  ...SHAPE_KEYS,
162
162
  ...VARIANT_KEYS,
163
163
  ...SHADOW_KEYS,
@@ -169,7 +169,7 @@ const BADGE_KEYS = [
169
169
  ];
170
170
  // Chip keys
171
171
  const CHIP_KEYS = [
172
- ...TYPOGRAPHY_COMPONENT_KEYS,
172
+ ...TYPOGRAPHY_KEYS,
173
173
  ...SHAPE_KEYS,
174
174
  ...VARIANT_KEYS,
175
175
  ...SHADOW_KEYS,
@@ -3409,12 +3409,22 @@ RingTheme.defaultClasses = {
3409
3409
  },
3410
3410
  };
3411
3411
 
3412
- class PxTheme extends BaseTheme {
3412
+ class PaddingTheme extends BaseTheme {
3413
3413
  constructor(initial) {
3414
3414
  super();
3415
+ this.defaultClasses = {
3416
+ padding: {
3417
+ xs: "",
3418
+ sm: "",
3419
+ md: "",
3420
+ lg: "",
3421
+ xl: ""
3422
+ },
3423
+ noPadding: ""
3424
+ };
3415
3425
  PADDING_KEYS.forEach((key) => {
3416
3426
  var _a;
3417
- this[key] = (_a = initial === null || initial === void 0 ? void 0 : initial[key]) !== null && _a !== void 0 ? _a : PxTheme.defaultClasses[key];
3427
+ this[key] = (_a = initial === null || initial === void 0 ? void 0 : initial[key]) !== null && _a !== void 0 ? _a : this.defaultClasses[key];
3418
3428
  });
3419
3429
  }
3420
3430
  getClasses(props, defaults) {
@@ -3423,41 +3433,38 @@ class PxTheme extends BaseTheme {
3423
3433
  return [typeof this[key] === 'string' ? this[key] : this[key][size]];
3424
3434
  }
3425
3435
  }
3426
- PxTheme.defaultClasses = {
3427
- padding: {
3428
- xs: "px-2",
3429
- sm: "px-4",
3430
- md: "px-6",
3431
- lg: "px-8",
3432
- xl: "px-10"
3433
- },
3434
- noPadding: "px-0"
3435
- };
3436
3436
 
3437
- class PyTheme extends BaseTheme {
3438
- constructor(initial) {
3439
- super();
3440
- PADDING_KEYS.forEach((key) => {
3441
- var _a;
3442
- this[key] = (_a = initial === null || initial === void 0 ? void 0 : initial[key]) !== null && _a !== void 0 ? _a : PyTheme.defaultClasses[key];
3443
- });
3437
+ class PxTheme extends PaddingTheme {
3438
+ constructor() {
3439
+ super(...arguments);
3440
+ this.defaultClasses = {
3441
+ padding: {
3442
+ xs: "px-2",
3443
+ sm: "px-4",
3444
+ md: "px-6",
3445
+ lg: "px-8",
3446
+ xl: "px-10"
3447
+ },
3448
+ noPadding: "px-0"
3449
+ };
3444
3450
  }
3445
- getClasses(props, defaults) {
3446
- const size = pickFirstTruthyKey(props, defaults, SIZE_KEYS) || 'md';
3447
- const key = pickFirstTruthyKey(props, defaults, PADDING_KEYS) || 'noPadding';
3448
- return [typeof this[key] === 'string' ? this[key] : this[key][size]];
3451
+ }
3452
+
3453
+ class PyTheme extends PaddingTheme {
3454
+ constructor() {
3455
+ super(...arguments);
3456
+ this.defaultClasses = {
3457
+ padding: {
3458
+ xs: "py-2",
3459
+ sm: "py-4",
3460
+ md: "py-6",
3461
+ lg: "py-8",
3462
+ xl: "py-10"
3463
+ },
3464
+ noPadding: "py-0"
3465
+ };
3449
3466
  }
3450
3467
  }
3451
- PyTheme.defaultClasses = {
3452
- padding: {
3453
- xs: "py-2",
3454
- sm: "py-4",
3455
- md: "py-6",
3456
- lg: "py-8",
3457
- xl: "py-10"
3458
- },
3459
- noPadding: "py-0"
3460
- };
3461
3468
 
3462
3469
  class TextAppearanceTheme extends BaseTheme {
3463
3470
  constructor(config) {
@@ -4073,6 +4080,22 @@ const mergeDefaults = (baseDefaults, overrideDefaults) => {
4073
4080
  return finalDefaults;
4074
4081
  };
4075
4082
 
4083
+ class PlTheme extends PaddingTheme {
4084
+ constructor() {
4085
+ super(...arguments);
4086
+ this.defaultClasses = {
4087
+ padding: {
4088
+ xs: "pl-2",
4089
+ sm: "pl-4",
4090
+ md: "pl-6",
4091
+ lg: "pl-8",
4092
+ xl: "pl-10"
4093
+ },
4094
+ noPadding: "pl-0"
4095
+ };
4096
+ }
4097
+ }
4098
+
4076
4099
  const typographyThemeDefaults = {
4077
4100
  md: true,
4078
4101
  default: true,
@@ -4121,7 +4144,16 @@ const linkTheme = createTypographyComponentTheme("a", "hover:underline w-fit", t
4121
4144
  // List item specific theme
4122
4145
  const listItemTheme = createTypographyComponentTheme("li");
4123
4146
  // List specific theme
4124
- const listTheme = createTypographyComponentTheme("ul", "list-disc list-inside");
4147
+ const listTheme = new ComponentTheme("ul", "list-disc list-inside", {
4148
+ size: {
4149
+ text: new SizeTheme(textSizeClasses),
4150
+ paddingLeft: new PlTheme(),
4151
+ },
4152
+ appearance: {
4153
+ text: TextAppearanceTheme.createTheme({ base: textAppearanceClasses }),
4154
+ },
4155
+ typography: defaultTypographyTheme,
4156
+ }, typographyThemeDefaults);
4125
4157
 
4126
4158
  class DirectionTheme extends BaseTheme {
4127
4159
  constructor(initial) {
@@ -4524,8 +4556,8 @@ const defaultTheme = {
4524
4556
  title: titleTheme,
4525
4557
  text: textTheme,
4526
4558
  link: linkTheme,
4527
- listItem: listItemTheme,
4528
4559
  list: listTheme,
4560
+ listItem: listItemTheme,
4529
4561
  };
4530
4562
  const ThemeContext = createContext(defaultTheme);
4531
4563
  function ThemeProvider({ children, theme: themeObject = {}, themeDefaults, themeOverride }) {
@@ -4625,32 +4657,32 @@ const Stack = (props) => {
4625
4657
 
4626
4658
  const PageTitle = (props) => {
4627
4659
  const theme = useTheme();
4628
- return jsx(ThemedComponent, { theme: theme.pageTitle, propsToOmit: TYPOGRAPHY_COMPONENT_KEYS, ...props });
4660
+ return jsx(ThemedComponent, { theme: theme.pageTitle, propsToOmit: TYPOGRAPHY_KEYS, ...props });
4629
4661
  };
4630
4662
  const SectionTitle = (props) => {
4631
4663
  const theme = useTheme();
4632
- return jsx(ThemedComponent, { theme: theme.sectionTitle, propsToOmit: TYPOGRAPHY_COMPONENT_KEYS, ...props });
4664
+ return jsx(ThemedComponent, { theme: theme.sectionTitle, propsToOmit: TYPOGRAPHY_KEYS, ...props });
4633
4665
  };
4634
4666
  const Title = (props) => {
4635
4667
  const theme = useTheme();
4636
- return jsx(ThemedComponent, { theme: theme.title, propsToOmit: TYPOGRAPHY_COMPONENT_KEYS, ...props });
4668
+ return jsx(ThemedComponent, { theme: theme.title, propsToOmit: TYPOGRAPHY_KEYS, ...props });
4637
4669
  };
4638
4670
  const Text = (props) => {
4639
4671
  const theme = useTheme();
4640
- return jsx(ThemedComponent, { theme: theme.text, propsToOmit: TYPOGRAPHY_COMPONENT_KEYS, ...props });
4672
+ return jsx(ThemedComponent, { theme: theme.text, propsToOmit: TYPOGRAPHY_KEYS, ...props });
4641
4673
  };
4642
4674
  const Link = (props) => {
4643
4675
  const theme = useTheme();
4644
- return jsx(ThemedComponent, { theme: theme.link, propsToOmit: TYPOGRAPHY_COMPONENT_KEYS, ...props });
4676
+ return jsx(ThemedComponent, { theme: theme.link, propsToOmit: TYPOGRAPHY_KEYS, ...props });
4645
4677
  };
4646
4678
  const ListItem = (props) => {
4647
4679
  const theme = useTheme();
4648
- return jsx(ThemedComponent, { theme: theme.listItem, propsToOmit: TYPOGRAPHY_COMPONENT_KEYS, ...props });
4680
+ return jsx(ThemedComponent, { theme: theme.listItem, propsToOmit: TYPOGRAPHY_KEYS, ...props });
4649
4681
  };
4650
4682
  const List = (props) => {
4651
4683
  const theme = useTheme();
4652
- return jsx(ThemedComponent, { theme: theme.list, propsToOmit: TYPOGRAPHY_COMPONENT_KEYS, ...props });
4684
+ return jsx(ThemedComponent, { theme: theme.list, propsToOmit: TYPOGRAPHY_KEYS, ...props });
4653
4685
  };
4654
4686
 
4655
- export { BADGE_KEYS, BASE_COMPONENT_KEYS, BG_APPEARANCE_KEYS, BORDER_KEYS, BREAKPOINT_KEYS, BUTTON_KEYS, Badge, Button, CARD_KEYS, CHIP_KEYS, COL_KEYS, COMPONENT_KEYS, CONTAINER_KEYS, Card, Chip, Col, Container, DIRECTION_REVERSE_KEYS, DISPLAY_KEYS, DIVIDER_KEYS, Divider, EXCLUSIVE_KEY_GROUPS, FLEX_DIRECTION_KEYS, FONT_FAMILY_KEYS, FONT_KEYS, FONT_STYLE_KEYS, FONT_WEIGHT_KEYS, GAP_KEYS, GRID_KEYS, Grid3, Grid4, HIDE_KEYS, ITEMS_KEYS, JUSTIFY_KEYS, Link, List, ListItem, MODE_KEYS, OVERFLOW_KEYS, PADDING_KEYS, PILL_KEYS, POSITION_KEYS, PageTitle, RING_KEYS, ROUNDED_KEYS, ROW_KEYS, Row, SECTION_KEYS, SHADOW_KEYS, SHAPE_KEYS, SHARP_KEYS, SIZE_KEYS, STACK_KEYS, Section, SectionTitle, Stack, TEXT_ALIGN_KEYS, TEXT_APPEARANCE_KEYS, TEXT_DECORATION_KEYS, TEXT_TRANSFORM_KEYS, TYPOGRAPHY_COMPONENT_KEYS, Text, ThemeProvider, Title, VARIANT_KEYS, WRAP_KEYS, defaultTheme, useTheme };
4687
+ export { BADGE_KEYS, BASE_COMPONENT_KEYS, BG_APPEARANCE_KEYS, BORDER_KEYS, BREAKPOINT_KEYS, BUTTON_KEYS, Badge, Button, CARD_KEYS, CHIP_KEYS, COL_KEYS, COMPONENT_KEYS, CONTAINER_KEYS, Card, Chip, Col, Container, DIRECTION_REVERSE_KEYS, DISPLAY_KEYS, DIVIDER_KEYS, Divider, EXCLUSIVE_KEY_GROUPS, FLEX_DIRECTION_KEYS, FONT_FAMILY_KEYS, FONT_KEYS, FONT_STYLE_KEYS, FONT_WEIGHT_KEYS, GAP_KEYS, GRID_KEYS, Grid3, Grid4, HIDE_KEYS, ITEMS_KEYS, JUSTIFY_KEYS, Link, List, ListItem, MODE_KEYS, OVERFLOW_KEYS, PADDING_KEYS, PILL_KEYS, POSITION_KEYS, PageTitle, RING_KEYS, ROUNDED_KEYS, ROW_KEYS, Row, SECTION_KEYS, SHADOW_KEYS, SHAPE_KEYS, SHARP_KEYS, SIZE_KEYS, STACK_KEYS, Section, SectionTitle, Stack, TEXT_ALIGN_KEYS, TEXT_APPEARANCE_KEYS, TEXT_DECORATION_KEYS, TEXT_TRANSFORM_KEYS, TYPOGRAPHY_KEYS, Text, ThemeProvider, Title, VARIANT_KEYS, WRAP_KEYS, defaultTheme, useTheme };
4656
4688
  //# sourceMappingURL=index.esm.js.map