@vaneui/ui 0.0.16 → 0.0.18

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/dist/complex.css CHANGED
@@ -72,7 +72,7 @@
72
72
  --color-gray-950: oklch(13% 0.028 261.692);
73
73
  --color-white: #fff;
74
74
  --spacing: 0.25rem;
75
- --container-3xs: 16rem;
75
+ --container-xs: 20rem;
76
76
  --container-xl: 36rem;
77
77
  --container-3xl: 48rem;
78
78
  --container-4xl: 56rem;
@@ -453,12 +453,6 @@
453
453
  .mt-\[calc\(36px\+\(var\(--spacing\)\*6\)\)\] {
454
454
  margin-top: calc(36px + (var(--spacing) * 6));
455
455
  }
456
- .mr-2 {
457
- margin-right: calc(var(--spacing) * 2);
458
- }
459
- .mr-3 {
460
- margin-right: calc(var(--spacing) * 3);
461
- }
462
456
  .mb-2 {
463
457
  margin-bottom: calc(var(--spacing) * 2);
464
458
  }
@@ -486,6 +480,26 @@
486
480
  .inline-flex {
487
481
  display: inline-flex;
488
482
  }
483
+ .size-4 {
484
+ width: calc(var(--spacing) * 4);
485
+ height: calc(var(--spacing) * 4);
486
+ }
487
+ .size-4\.5 {
488
+ width: calc(var(--spacing) * 4.5);
489
+ height: calc(var(--spacing) * 4.5);
490
+ }
491
+ .size-5 {
492
+ width: calc(var(--spacing) * 5);
493
+ height: calc(var(--spacing) * 5);
494
+ }
495
+ .size-6 {
496
+ width: calc(var(--spacing) * 6);
497
+ height: calc(var(--spacing) * 6);
498
+ }
499
+ .size-7 {
500
+ width: calc(var(--spacing) * 7);
501
+ height: calc(var(--spacing) * 7);
502
+ }
489
503
  .h-5 {
490
504
  height: calc(var(--spacing) * 5);
491
505
  }
@@ -525,8 +539,8 @@
525
539
  .w-44 {
526
540
  width: calc(var(--spacing) * 44);
527
541
  }
528
- .w-\[36px\] {
529
- width: 36px;
542
+ .w-\[48px\] {
543
+ width: 48px;
530
544
  }
531
545
  .w-fit {
532
546
  width: fit-content;
@@ -558,15 +572,15 @@
558
572
  .max-w-xl {
559
573
  max-width: var(--container-xl);
560
574
  }
561
- .min-w-3xs {
562
- min-width: var(--container-3xs);
563
- }
564
575
  .min-w-44 {
565
576
  min-width: calc(var(--spacing) * 44);
566
577
  }
567
578
  .min-w-full {
568
579
  min-width: 100%;
569
580
  }
581
+ .min-w-xs {
582
+ min-width: var(--container-xs);
583
+ }
570
584
  .flex-1 {
571
585
  flex: 1;
572
586
  }
@@ -791,9 +805,9 @@
791
805
  border-bottom-style: var(--tw-border-style);
792
806
  border-bottom-width: 1px;
793
807
  }
794
- .border-l {
808
+ .border-l-2 {
795
809
  border-left-style: var(--tw-border-style);
796
- border-left-width: 1px;
810
+ border-left-width: 2px;
797
811
  }
798
812
  .border-none {
799
813
  --tw-border-style: none;
@@ -1015,6 +1029,9 @@
1015
1029
  .bg-gray-100 {
1016
1030
  background-color: var(--color-gray-100);
1017
1031
  }
1032
+ .bg-gray-300 {
1033
+ background-color: var(--color-gray-300);
1034
+ }
1018
1035
  .bg-indigo-50 {
1019
1036
  background-color: var(--color-indigo-50);
1020
1037
  }
@@ -1124,6 +1141,9 @@
1124
1141
  .py-0 {
1125
1142
  padding-block: calc(var(--spacing) * 0);
1126
1143
  }
1144
+ .py-0\.5 {
1145
+ padding-block: calc(var(--spacing) * 0.5);
1146
+ }
1127
1147
  .py-1 {
1128
1148
  padding-block: calc(var(--spacing) * 1);
1129
1149
  }
@@ -1133,6 +1153,9 @@
1133
1153
  .py-2 {
1134
1154
  padding-block: calc(var(--spacing) * 2);
1135
1155
  }
1156
+ .py-2\.5 {
1157
+ padding-block: calc(var(--spacing) * 2.5);
1158
+ }
1136
1159
  .py-3 {
1137
1160
  padding-block: calc(var(--spacing) * 3);
1138
1161
  }
@@ -1151,6 +1174,9 @@
1151
1174
  .py-10 {
1152
1175
  padding-block: calc(var(--spacing) * 10);
1153
1176
  }
1177
+ .py-12 {
1178
+ padding-block: calc(var(--spacing) * 12);
1179
+ }
1154
1180
  .py-16 {
1155
1181
  padding-block: calc(var(--spacing) * 16);
1156
1182
  }
@@ -1169,9 +1195,6 @@
1169
1195
  .pl-2 {
1170
1196
  padding-left: calc(var(--spacing) * 2);
1171
1197
  }
1172
- .pl-2\.5 {
1173
- padding-left: calc(var(--spacing) * 2.5);
1174
- }
1175
1198
  .pl-4 {
1176
1199
  padding-left: calc(var(--spacing) * 4);
1177
1200
  }
@@ -1181,6 +1204,9 @@
1181
1204
  .pl-6 {
1182
1205
  padding-left: calc(var(--spacing) * 6);
1183
1206
  }
1207
+ .pl-\[calc\(var\(--spacing\)\*2\.5-1px\)\] {
1208
+ padding-left: calc(var(--spacing) * 2.5 - 1px);
1209
+ }
1184
1210
  .text-center {
1185
1211
  text-align: center;
1186
1212
  }
@@ -1234,34 +1260,18 @@
1234
1260
  font-size: var(--text-lg);
1235
1261
  line-height: var(--tw-leading, var(--text-lg--line-height));
1236
1262
  }
1237
- .text-lg\/6 {
1238
- font-size: var(--text-lg);
1239
- line-height: calc(var(--spacing) * 6);
1240
- }
1241
1263
  .text-sm {
1242
1264
  font-size: var(--text-sm);
1243
1265
  line-height: var(--tw-leading, var(--text-sm--line-height));
1244
1266
  }
1245
- .text-sm\/5 {
1246
- font-size: var(--text-sm);
1247
- line-height: calc(var(--spacing) * 5);
1248
- }
1249
1267
  .text-xl {
1250
1268
  font-size: var(--text-xl);
1251
1269
  line-height: var(--tw-leading, var(--text-xl--line-height));
1252
1270
  }
1253
- .text-xl\/6 {
1254
- font-size: var(--text-xl);
1255
- line-height: calc(var(--spacing) * 6);
1256
- }
1257
1271
  .text-xs {
1258
1272
  font-size: var(--text-xs);
1259
1273
  line-height: var(--tw-leading, var(--text-xs--line-height));
1260
1274
  }
1261
- .text-xs\/5 {
1262
- font-size: var(--text-xs);
1263
- line-height: calc(var(--spacing) * 5);
1264
- }
1265
1275
  .font-black {
1266
1276
  --tw-font-weight: var(--font-weight-black);
1267
1277
  font-weight: var(--font-weight-black);
@@ -1409,6 +1419,10 @@
1409
1419
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
1410
1420
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1411
1421
  }
1422
+ .shadow-2xs {
1423
+ --tw-shadow: 0 1px var(--tw-shadow-color, rgb(0 0 0 / 0.05));
1424
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1425
+ }
1412
1426
  .shadow-lg {
1413
1427
  --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
1414
1428
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -1728,10 +1742,10 @@
1728
1742
  }
1729
1743
  }
1730
1744
  }
1731
- .hover\:bg-gray-50 {
1745
+ .hover\:bg-gray-100 {
1732
1746
  &:hover {
1733
1747
  @media (hover: hover) {
1734
- background-color: var(--color-gray-50);
1748
+ background-color: var(--color-gray-100);
1735
1749
  }
1736
1750
  }
1737
1751
  }
@@ -1793,14 +1807,6 @@
1793
1807
  }
1794
1808
  }
1795
1809
  }
1796
- .hover\:shadow-2xl {
1797
- &:hover {
1798
- @media (hover: hover) {
1799
- --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
1800
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1801
- }
1802
- }
1803
- }
1804
1810
  .hover\:shadow-lg {
1805
1811
  &:hover {
1806
1812
  @media (hover: hover) {
@@ -1841,6 +1847,14 @@
1841
1847
  }
1842
1848
  }
1843
1849
  }
1850
+ .hover\:shadow-xs {
1851
+ &:hover {
1852
+ @media (hover: hover) {
1853
+ --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
1854
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1855
+ }
1856
+ }
1857
+ }
1844
1858
  .hover\:ring {
1845
1859
  &:hover {
1846
1860
  @media (hover: hover) {
@@ -2001,12 +2015,6 @@
2001
2015
  color: var(--color-gray-400);
2002
2016
  }
2003
2017
  }
2004
- .active\:shadow-2xl {
2005
- &:active {
2006
- --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
2007
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2008
- }
2009
- }
2010
2018
  .active\:shadow-lg {
2011
2019
  &:active {
2012
2020
  --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
@@ -2037,6 +2045,12 @@
2037
2045
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2038
2046
  }
2039
2047
  }
2048
+ .active\:shadow-xs {
2049
+ &:active {
2050
+ --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
2051
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2052
+ }
2053
+ }
2040
2054
  .active\:ring {
2041
2055
  &:active {
2042
2056
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
@@ -2261,9 +2275,14 @@
2261
2275
  padding-inline: calc(var(--spacing) * 7);
2262
2276
  }
2263
2277
  }
2264
- .max-md\:py-5 {
2278
+ .max-md\:py-3 {
2279
+ @media (width < 48rem) {
2280
+ padding-block: calc(var(--spacing) * 3);
2281
+ }
2282
+ }
2283
+ .max-md\:py-6 {
2265
2284
  @media (width < 48rem) {
2266
- padding-block: calc(var(--spacing) * 5);
2285
+ padding-block: calc(var(--spacing) * 6);
2267
2286
  }
2268
2287
  }
2269
2288
  .max-md\:py-12 {
@@ -12,9 +12,11 @@ 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 { ButtonProps, GridProps, TypographyComponentProps, CardProps, RowProps, ColProps, StackProps, BadgeProps, ChipProps, DividerProps, ContainerProps, SectionProps } from "../ui/props/props";
15
+ import { BadgeProps, ButtonProps, CardProps, ChipProps, ColProps, ContainerProps, DividerProps, GridProps, RowProps, SectionProps, StackProps, TypographyComponentProps } from "../ui/props/props";
16
16
  import { DeepPartial } from "../utils/deepPartial";
17
- export interface ThemeProps {
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
+ export type ComponentKey = typeof COMPONENT_KEYS[number];
19
+ export interface ThemeProps extends Record<ComponentKey, ComponentTheme<object, object>> {
18
20
  button: ComponentTheme<ButtonProps, ButtonTheme<ButtonProps>>;
19
21
  badge: ComponentTheme<BadgeProps, BadgeTheme<BadgeProps>>;
20
22
  chip: ComponentTheme<ChipProps, ChipTheme<ChipProps>>;
@@ -32,15 +34,17 @@ export interface ThemeProps {
32
34
  title: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
33
35
  text: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
34
36
  link: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
35
- listItem: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
36
37
  list: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
38
+ listItem: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
37
39
  }
38
40
  export type PartialTheme = DeepPartial<ThemeProps>;
39
41
  export declare const defaultTheme: ThemeProps;
42
+ export type ThemeDefaults = Partial<Record<ComponentKey, Record<string, boolean>>>;
40
43
  export interface ThemeProviderProps {
41
44
  children: React.ReactNode;
42
45
  theme?: PartialTheme;
46
+ themeDefaults?: ThemeDefaults;
43
47
  themeOverride?: (theme: ThemeProps) => ThemeProps;
44
48
  }
45
- export declare function ThemeProvider({ children, theme: themeObject, themeOverride }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
49
+ export declare function ThemeProvider({ children, theme: themeObject, themeDefaults, themeOverride }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
46
50
  export declare function useTheme(): ThemeProps;
@@ -75,5 +75,5 @@ export declare const DIVIDER_KEYS: readonly ["xs", "sm", "md", "lg", "xl", "xsHi
75
75
  export type DividerKey = typeof DIVIDER_KEYS[number];
76
76
  export declare const CONTAINER_KEYS: readonly ["xs", "sm", "md", "lg", "xl", "xsHide", "smHide", "mdHide", "lgHide", "xlHide", "relative", "absolute", "fixed", "sticky", "static", "itemsStart", "itemsEnd", "itemsCenter", "itemsBaseline", "itemsStretch", "default", "accent", "primary", "secondary", "tertiary", "success", "danger", "warning", "info", "transparent", "border", "noBorder", "shadow", "noShadow", "ring", "noRing", "gap", "noGap"];
77
77
  export type ContainerKey = typeof CONTAINER_KEYS[number];
78
- export declare const SECTION_KEYS: readonly ["xs", "sm", "md", "lg", "xl", "xsHide", "smHide", "mdHide", "lgHide", "xlHide", "relative", "absolute", "fixed", "sticky", "static", "row", "column", "rowReverse", "columnReverse", "itemsStart", "itemsEnd", "itemsCenter", "itemsBaseline", "itemsStretch", "default", "accent", "primary", "secondary", "tertiary", "success", "danger", "warning", "info", "transparent", "padding", "noPadding", "reverse", "justifyStart", "justifyEnd", "justifyCenter", "justifyBetween", "justifyAround", "justifyEvenly", "justifyStretch", "justifyBaseline", "flexWrap", "flexNoWrap", "flexWrapReverse", "xsCol", "smCol", "mdCol", "lgCol", "xlCol", "gap", "noGap"];
78
+ export declare const SECTION_KEYS: readonly ["xs", "sm", "md", "lg", "xl", "xsHide", "smHide", "mdHide", "lgHide", "xlHide", "relative", "absolute", "fixed", "sticky", "static", "row", "column", "rowReverse", "columnReverse", "itemsStart", "itemsEnd", "itemsCenter", "itemsBaseline", "itemsStretch", "default", "accent", "primary", "secondary", "tertiary", "success", "danger", "warning", "info", "transparent", "padding", "noPadding", "reverse", "justifyStart", "justifyEnd", "justifyCenter", "justifyBetween", "justifyAround", "justifyEvenly", "justifyStretch", "justifyBaseline", "flexWrap", "flexNoWrap", "flexWrapReverse", "xsCol", "smCol", "mdCol", "lgCol", "xlCol", "gap", "noGap", "border", "noBorder", "shadow", "noShadow", "ring", "noRing", "pill", "sharp", "rounded"];
79
79
  export type SectionKey = typeof SECTION_KEYS[number];
@@ -4,9 +4,9 @@ import { HideTheme } from "../layout/hideTheme";
4
4
  import { ItemsTheme } from "../layout/itemsTheme";
5
5
  import { JustifyTheme } from "../layout/justifyTheme";
6
6
  import { PositionTheme } from "../layout/positionTheme";
7
+ import { FontStyleTheme } from "../typography/fontStyleTheme";
7
8
  import { FontFamilyTheme } from "../typography/fontFamilyTheme";
8
9
  import { FontWeightTheme } from "../typography/fontWeightTheme";
9
- import { FontStyleTheme } from "../typography/fontStyleTheme";
10
10
  import { TextDecorationTheme } from "../typography/textDecorationTheme";
11
11
  import { TextTransformTheme } from "../typography/textTransformTheme";
12
12
  import { TextAlignTheme } from "../typography/textAlignTheme";
@@ -36,8 +36,8 @@ export interface BaseComponentTheme<P> {
36
36
  export declare class ComponentTheme<P extends object, TThemes extends object> {
37
37
  readonly tag: React.ElementType;
38
38
  readonly base: string;
39
- readonly defaults: Partial<P>;
40
39
  readonly themes: TThemes;
40
+ defaults: Partial<P>;
41
41
  constructor(tag: React.ElementType, base: string, subThemes: DeepPartial<TThemes>, defaults?: Partial<P>);
42
42
  getClasses(props: P, defaults?: Partial<P>): string[];
43
43
  }
@@ -5,15 +5,30 @@ import { WrapTheme } from "./layout/wrapTheme";
5
5
  import { SectionProps } from "../props/props";
6
6
  import { PxTheme } from "./size/pxTheme";
7
7
  import { PyTheme } from "./size/pyTheme";
8
+ import { VariantTheme } from "./appearance/variantTheme";
9
+ import { BorderTheme } from "./layout/borderTheme";
10
+ import { RingTheme } from "./layout/ringTheme";
11
+ import { RadiusTheme } from "./layout/radiusTheme";
12
+ import { ShadowTheme } from "./layout/shadowTheme";
8
13
  export interface SectionTheme<P> extends BaseComponentTheme<P> {
9
14
  size: {
10
15
  px: PxTheme;
11
16
  py: PyTheme;
12
17
  gap: GapTheme;
18
+ shadow: ShadowTheme;
19
+ };
20
+ appearance: {
21
+ background: VariantTheme;
22
+ text: VariantTheme;
23
+ border: VariantTheme;
24
+ ring: VariantTheme;
13
25
  };
14
26
  layout: DefaultLayoutThemes<P> & {
15
27
  wrap: WrapTheme;
16
28
  direction: DirectionTheme;
29
+ border: BorderTheme;
30
+ ring: RingTheme;
31
+ radius: RadiusTheme;
17
32
  };
18
33
  }
19
34
  export declare const defaultSectionTheme: ComponentTheme<SectionProps, SectionTheme<SectionProps>>;