@vaneui/ui 0.1.4 → 0.1.6
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/components/themeContext.d.ts +19 -19
- package/dist/components/ui/props/keys.d.ts +8 -10
- package/dist/components/ui/theme/appearance/bgAppearanceTheme.d.ts +8 -0
- package/dist/components/ui/theme/appearance/genericVariantTheme.d.ts +16 -0
- package/dist/components/ui/theme/appearance/shadowAppearanceTheme.d.ts +10 -0
- package/dist/components/ui/theme/appearance/textAppearanceTheme.d.ts +3 -4
- package/dist/components/ui/theme/badgeTheme.d.ts +12 -11
- package/dist/components/ui/theme/buttonTheme.d.ts +12 -11
- package/dist/components/ui/theme/cardTheme.d.ts +7 -7
- package/dist/components/ui/theme/chipTheme.d.ts +12 -11
- package/dist/components/ui/theme/colTheme.d.ts +3 -3
- package/dist/components/ui/theme/common/ComponentTheme.d.ts +10 -6
- package/dist/components/ui/theme/containerTheme.d.ts +5 -5
- package/dist/components/ui/theme/dividerTheme.d.ts +2 -2
- package/dist/components/ui/theme/gridTheme.d.ts +3 -3
- package/dist/components/ui/theme/rowTheme.d.ts +3 -3
- package/dist/components/ui/theme/sectionTheme.d.ts +12 -10
- package/dist/components/ui/theme/stackTheme.d.ts +3 -3
- package/dist/components/ui/theme/typographyComponentTheme.d.ts +11 -11
- package/dist/index.esm.js +264 -333
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +263 -333
- package/dist/index.js.map +1 -1
- package/dist/ui.css +44 -51
- package/package.json +2 -2
- package/dist/components/ui/theme/appearance/layoutAppearanceTheme.d.ts +0 -10
- package/dist/components/ui/theme/appearance/variantTheme.d.ts +0 -15
- package/dist/components/ui/theme/layout/shadowTheme.d.ts +0 -9
package/dist/ui.css
CHANGED
|
@@ -565,9 +565,6 @@
|
|
|
565
565
|
.gap-16 {
|
|
566
566
|
gap: calc(var(--spacing) * 16);
|
|
567
567
|
}
|
|
568
|
-
.overflow-hidden {
|
|
569
|
-
overflow: hidden;
|
|
570
|
-
}
|
|
571
568
|
.rounded {
|
|
572
569
|
border-radius: 0.25rem;
|
|
573
570
|
}
|
|
@@ -672,6 +669,9 @@
|
|
|
672
669
|
.border-\(--filled-border-color-warning\) {
|
|
673
670
|
border-color: var(--filled-border-color-warning);
|
|
674
671
|
}
|
|
672
|
+
.border-transparent {
|
|
673
|
+
border-color: transparent;
|
|
674
|
+
}
|
|
675
675
|
.bg-\(--background-color-accent\) {
|
|
676
676
|
background-color: var(--background-color-accent);
|
|
677
677
|
}
|
|
@@ -1017,6 +1017,9 @@
|
|
|
1017
1017
|
.text-\(--text-color-warning\) {
|
|
1018
1018
|
color: var(--text-color-warning);
|
|
1019
1019
|
}
|
|
1020
|
+
.text-transparent {
|
|
1021
|
+
color: transparent;
|
|
1022
|
+
}
|
|
1020
1023
|
.text-white {
|
|
1021
1024
|
color: var(--color-white);
|
|
1022
1025
|
}
|
|
@@ -1066,10 +1069,6 @@
|
|
|
1066
1069
|
--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1067
1070
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1068
1071
|
}
|
|
1069
|
-
.shadow-none {
|
|
1070
|
-
--tw-shadow: 0 0 #0000;
|
|
1071
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1072
|
-
}
|
|
1073
1072
|
.shadow-sm {
|
|
1074
1073
|
--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));
|
|
1075
1074
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -1152,6 +1151,9 @@
|
|
|
1152
1151
|
.ring-\(--filled-border-color-warning\) {
|
|
1153
1152
|
--tw-ring-color: var(--filled-border-color-warning);
|
|
1154
1153
|
}
|
|
1154
|
+
.ring-transparent {
|
|
1155
|
+
--tw-ring-color: transparent;
|
|
1156
|
+
}
|
|
1155
1157
|
.outline {
|
|
1156
1158
|
outline-style: var(--tw-outline-style);
|
|
1157
1159
|
outline-width: 1px;
|
|
@@ -1340,14 +1342,6 @@
|
|
|
1340
1342
|
}
|
|
1341
1343
|
}
|
|
1342
1344
|
}
|
|
1343
|
-
.hover\:shadow-none {
|
|
1344
|
-
&:hover {
|
|
1345
|
-
@media (hover: hover) {
|
|
1346
|
-
--tw-shadow: 0 0 #0000;
|
|
1347
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
1345
|
.hover\:shadow-sm {
|
|
1352
1346
|
&:hover {
|
|
1353
1347
|
@media (hover: hover) {
|
|
@@ -1502,42 +1496,6 @@
|
|
|
1502
1496
|
background-color: transparent;
|
|
1503
1497
|
}
|
|
1504
1498
|
}
|
|
1505
|
-
.active\:shadow-lg {
|
|
1506
|
-
&:active {
|
|
1507
|
-
--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));
|
|
1508
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
.active\:shadow-md {
|
|
1512
|
-
&:active {
|
|
1513
|
-
--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1514
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
|
-
.active\:shadow-none {
|
|
1518
|
-
&:active {
|
|
1519
|
-
--tw-shadow: 0 0 #0000;
|
|
1520
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
.active\:shadow-sm {
|
|
1524
|
-
&:active {
|
|
1525
|
-
--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));
|
|
1526
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
.active\:shadow-xl {
|
|
1530
|
-
&:active {
|
|
1531
|
-
--tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1532
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
.active\:shadow-xs {
|
|
1536
|
-
&:active {
|
|
1537
|
-
--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
|
|
1538
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1539
|
-
}
|
|
1540
|
-
}
|
|
1541
1499
|
.active\:ring {
|
|
1542
1500
|
&:active {
|
|
1543
1501
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
@@ -1620,6 +1578,16 @@
|
|
|
1620
1578
|
gap: calc(var(--spacing) * 9);
|
|
1621
1579
|
}
|
|
1622
1580
|
}
|
|
1581
|
+
.max-lg\:px-2 {
|
|
1582
|
+
@media (width < 64rem) {
|
|
1583
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
.max-lg\:px-3 {
|
|
1587
|
+
@media (width < 64rem) {
|
|
1588
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1623
1591
|
.max-lg\:px-4 {
|
|
1624
1592
|
@media (width < 64rem) {
|
|
1625
1593
|
padding-inline: calc(var(--spacing) * 4);
|
|
@@ -1645,6 +1613,26 @@
|
|
|
1645
1613
|
padding-inline: calc(var(--spacing) * 8);
|
|
1646
1614
|
}
|
|
1647
1615
|
}
|
|
1616
|
+
.max-lg\:py-2 {
|
|
1617
|
+
@media (width < 64rem) {
|
|
1618
|
+
padding-block: calc(var(--spacing) * 2);
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
.max-lg\:py-3 {
|
|
1622
|
+
@media (width < 64rem) {
|
|
1623
|
+
padding-block: calc(var(--spacing) * 3);
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
.max-lg\:py-4 {
|
|
1627
|
+
@media (width < 64rem) {
|
|
1628
|
+
padding-block: calc(var(--spacing) * 4);
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
.max-lg\:py-5 {
|
|
1632
|
+
@media (width < 64rem) {
|
|
1633
|
+
padding-block: calc(var(--spacing) * 5);
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1648
1636
|
.max-lg\:py-14 {
|
|
1649
1637
|
@media (width < 64rem) {
|
|
1650
1638
|
padding-block: calc(var(--spacing) * 14);
|
|
@@ -1751,6 +1739,11 @@
|
|
|
1751
1739
|
padding-block: calc(var(--spacing) * 3);
|
|
1752
1740
|
}
|
|
1753
1741
|
}
|
|
1742
|
+
.max-md\:py-4 {
|
|
1743
|
+
@media (width < 48rem) {
|
|
1744
|
+
padding-block: calc(var(--spacing) * 4);
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1754
1747
|
.max-md\:py-6 {
|
|
1755
1748
|
@media (width < 48rem) {
|
|
1756
1749
|
padding-block: calc(var(--spacing) * 6);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaneui/ui",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "A simple
|
|
3
|
+
"version": "0.1.6",
|
|
4
|
+
"description": "A simple and lightweight UI component library for React, built with Tailwind CSS.",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"homepage": "https://vaneui.com/",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseTheme } from "../common/baseTheme";
|
|
2
|
-
import { BgAppearanceKey, ModeKey } from "../../props";
|
|
3
|
-
export interface LayoutAppearanceTheme extends Record<BgAppearanceKey, Record<ModeKey, string>> {
|
|
4
|
-
}
|
|
5
|
-
export declare class LayoutAppearanceTheme extends BaseTheme {
|
|
6
|
-
static readonly defaultFullConfig: Record<BgAppearanceKey, Record<ModeKey, string>>;
|
|
7
|
-
constructor(initialOverrides?: Partial<Record<BgAppearanceKey, Partial<Record<ModeKey, string>>>>);
|
|
8
|
-
getClasses(props: Record<string, boolean>, defaults: Record<string, boolean>): string[];
|
|
9
|
-
static createDefaultStyle(src?: Partial<Record<ModeKey, Partial<Record<BgAppearanceKey, string>>>>): LayoutAppearanceTheme;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseTheme } from "../common/baseTheme";
|
|
2
|
-
import { VariantKey } from "../../props";
|
|
3
|
-
import { TextAppearanceTheme } from "./textAppearanceTheme";
|
|
4
|
-
export interface VariantTheme extends Record<VariantKey, TextAppearanceTheme> {
|
|
5
|
-
}
|
|
6
|
-
export declare class VariantTheme extends BaseTheme {
|
|
7
|
-
static readonly defaultInstances: Record<VariantKey, TextAppearanceTheme>;
|
|
8
|
-
constructor(variantInstances?: Record<VariantKey, TextAppearanceTheme>);
|
|
9
|
-
getClasses(props: Record<string, boolean>, defaults: Record<string, boolean>): string[];
|
|
10
|
-
static createDefault(initialInstances?: Partial<Record<VariantKey, TextAppearanceTheme>>): VariantTheme;
|
|
11
|
-
static createDefaultBackground(): VariantTheme;
|
|
12
|
-
static createDefaultText(): VariantTheme;
|
|
13
|
-
static createDefaultBorder(): VariantTheme;
|
|
14
|
-
static createDefaultRing(): VariantTheme;
|
|
15
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SizeKey, ModeKey, ShadowKey } from "../../props/keys";
|
|
2
|
-
import { BaseTheme } from "../common/baseTheme";
|
|
3
|
-
export interface ShadowTheme extends Record<ShadowKey, Record<ModeKey, string | Record<SizeKey, string>>> {
|
|
4
|
-
}
|
|
5
|
-
export declare class ShadowTheme extends BaseTheme {
|
|
6
|
-
static readonly defaultClasses: Record<ShadowKey, Record<ModeKey, string | Record<SizeKey, string>>>;
|
|
7
|
-
constructor(initial?: Partial<Record<ShadowKey, Record<ModeKey, string | Record<SizeKey, string>>>>);
|
|
8
|
-
getClasses(props: Record<string, boolean>, defaults: Record<string, boolean>): string[];
|
|
9
|
-
}
|