@vaneui/ui 0.3.1-alpha.20251001131502.03a0ce2 → 0.3.1-alpha.20251001142553.9da86c7
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/ui/card.d.ts +8 -10
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/checkbox.d.ts +4 -5
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/code.d.ts +4 -5
- package/dist/components/ui/code.d.ts.map +1 -1
- package/dist/components/ui/col.d.ts +4 -5
- package/dist/components/ui/col.d.ts.map +1 -1
- package/dist/components/ui/container.d.ts +4 -5
- package/dist/components/ui/container.d.ts.map +1 -1
- package/dist/components/ui/divider.d.ts +4 -5
- package/dist/components/ui/divider.d.ts.map +1 -1
- package/dist/components/ui/grid.d.ts +20 -25
- package/dist/components/ui/grid.d.ts.map +1 -1
- package/dist/components/ui/img.d.ts +4 -5
- package/dist/components/ui/img.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts +4 -5
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/label.d.ts +4 -5
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/props/breakpoint.d.ts +9 -11
- package/dist/components/ui/props/breakpoint.d.ts.map +1 -1
- package/dist/components/ui/props/hide.d.ts +9 -11
- package/dist/components/ui/props/hide.d.ts.map +1 -1
- package/dist/components/ui/props/keys.d.ts +2 -2
- package/dist/components/ui/row.d.ts +8 -10
- package/dist/components/ui/row.d.ts.map +1 -1
- package/dist/components/ui/section.d.ts +8 -10
- package/dist/components/ui/section.d.ts.map +1 -1
- package/dist/components/ui/stack.d.ts +8 -10
- package/dist/components/ui/stack.d.ts.map +1 -1
- package/dist/components/ui/theme/cardTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/defaults.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/hideTheme.d.ts +8 -10
- package/dist/components/ui/theme/layout/hideTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/breakpointTheme.d.ts +8 -10
- package/dist/components/ui/theme/size/breakpointTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/gapTheme.d.ts.map +1 -1
- package/dist/components/ui/typography.d.ts +4 -5
- package/dist/components/ui/typography.d.ts.map +1 -1
- package/dist/index.esm.js +57 -52
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +64 -61
- package/dist/index.js.map +1 -1
- package/dist/ui.css +53 -17
- package/dist/vars.css +3 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/components/ui/typography.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAa,MAAM,SAAS,CAAC;AAIrD,eAAO,MAAM,SAAS,gHAKrB,CAAC;AAEF,eAAO,MAAM,YAAY,gHAKxB,CAAC;AAEF,eAAO,MAAM,KAAK,gHAKjB,CAAC;AAEF,eAAO,MAAM,IAAI,kHAKhB,CAAC;AAEF,eAAO,MAAM,IAAI,+GAKhB,CAAC;AAEF,eAAO,MAAM,QAAQ,2GAKpB,CAAC;AAEF,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/components/ui/typography.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAa,MAAM,SAAS,CAAC;AAIrD,eAAO,MAAM,SAAS,gHAKrB,CAAC;AAEF,eAAO,MAAM,YAAY,gHAKxB,CAAC;AAEF,eAAO,MAAM,KAAK,gHAKjB,CAAC;AAEF,eAAO,MAAM,IAAI,kHAKhB,CAAC;AAEF,eAAO,MAAM,IAAI,+GAKhB,CAAC;AAEF,eAAO,MAAM,QAAQ,2GAKpB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAKhB,CAAC"}
|
package/dist/index.esm.js
CHANGED
|
@@ -53,18 +53,16 @@ const BORDER_VALUES = [BORDER$1, BORDER_T, BORDER_B, BORDER_L, BORDER_R, BORDER_
|
|
|
53
53
|
/** All border side keys (excluding noBorder since it doesn't have a CSS class) */
|
|
54
54
|
const BORDER_KEYS = [BORDER$1, BORDER_T, BORDER_B, BORDER_L, BORDER_R, BORDER_X, BORDER_Y];
|
|
55
55
|
|
|
56
|
-
/**
|
|
57
|
-
const
|
|
58
|
-
/**
|
|
59
|
-
const
|
|
60
|
-
/**
|
|
61
|
-
const
|
|
62
|
-
/**
|
|
63
|
-
const
|
|
64
|
-
/** Extra-large column breakpoint - responsive grid column sizing for xl screens */
|
|
65
|
-
const XL_COL = 'xlCol';
|
|
56
|
+
/** Mobile column breakpoint - switch to column layout on mobile devices (max-mobile: 20rem) */
|
|
57
|
+
const MOBILE_COL = 'mobileCol';
|
|
58
|
+
/** Tablet column breakpoint - switch to column layout on tablet devices (max-tablet: 40rem) */
|
|
59
|
+
const TABLET_COL = 'tabletCol';
|
|
60
|
+
/** Laptop column breakpoint - switch to column layout on laptop devices (max-laptop: 64rem) */
|
|
61
|
+
const LAPTOP_COL = 'laptopCol';
|
|
62
|
+
/** Desktop column breakpoint - switch to column layout on desktop devices (max-desktop: 80rem) */
|
|
63
|
+
const DESKTOP_COL = 'desktopCol';
|
|
66
64
|
/** All breakpoint property values */
|
|
67
|
-
const BREAKPOINT_VALUES = [
|
|
65
|
+
const BREAKPOINT_VALUES = [MOBILE_COL, TABLET_COL, LAPTOP_COL, DESKTOP_COL];
|
|
68
66
|
|
|
69
67
|
/** Inline display - flows with text */
|
|
70
68
|
const INLINE = 'inline';
|
|
@@ -146,18 +144,16 @@ const NO_GAP = 'noGap';
|
|
|
146
144
|
/** All gap property values */
|
|
147
145
|
const GAP_VALUES = [GAP, NO_GAP];
|
|
148
146
|
|
|
149
|
-
/** Hide element on
|
|
150
|
-
const
|
|
151
|
-
/** Hide element on
|
|
152
|
-
const
|
|
153
|
-
/** Hide element on
|
|
154
|
-
const
|
|
155
|
-
/** Hide element on
|
|
156
|
-
const
|
|
157
|
-
/** Hide element on extra-large screens and up - visible only on large screens and below */
|
|
158
|
-
const XL_HIDE = 'xlHide';
|
|
147
|
+
/** Hide element on mobile devices and below (max-mobile: 20rem) */
|
|
148
|
+
const MOBILE_HIDE = 'mobileHide';
|
|
149
|
+
/** Hide element on tablet devices and below (max-tablet: 40rem) */
|
|
150
|
+
const TABLET_HIDE = 'tabletHide';
|
|
151
|
+
/** Hide element on laptop devices and below (max-laptop: 64rem) */
|
|
152
|
+
const LAPTOP_HIDE = 'laptopHide';
|
|
153
|
+
/** Hide element on desktop devices and below (max-desktop: 80rem) */
|
|
154
|
+
const DESKTOP_HIDE = 'desktopHide';
|
|
159
155
|
/** All hide property values */
|
|
160
|
-
const HIDE_VALUES = [
|
|
156
|
+
const HIDE_VALUES = [MOBILE_HIDE, TABLET_HIDE, LAPTOP_HIDE, DESKTOP_HIDE];
|
|
161
157
|
|
|
162
158
|
/** Align items to the start of the cross axis */
|
|
163
159
|
const ITEMS_START = 'itemsStart';
|
|
@@ -566,16 +562,14 @@ const ComponentCategories = {
|
|
|
566
562
|
class HideTheme extends BaseTheme {
|
|
567
563
|
constructor() {
|
|
568
564
|
super(...arguments);
|
|
569
|
-
/** Hide element on
|
|
570
|
-
this.
|
|
571
|
-
/** Hide element on
|
|
572
|
-
this.
|
|
573
|
-
/** Hide element on
|
|
574
|
-
this.
|
|
575
|
-
/** Hide element on
|
|
576
|
-
this.
|
|
577
|
-
/** Hide element on extra-large screens and below */
|
|
578
|
-
this.xlHide = "max-xl:hidden";
|
|
565
|
+
/** Hide element on mobile devices and below (max-mobile: 20rem) */
|
|
566
|
+
this.mobileHide = "max-mobile:hidden";
|
|
567
|
+
/** Hide element on tablet devices and below (max-tablet: 40rem) */
|
|
568
|
+
this.tabletHide = "max-tablet:hidden";
|
|
569
|
+
/** Hide element on laptop devices and below (max-laptop: 64rem) */
|
|
570
|
+
this.laptopHide = "max-laptop:hidden";
|
|
571
|
+
/** Hide element on desktop devices and below (max-desktop: 80rem) */
|
|
572
|
+
this.desktopHide = "max-desktop:hidden";
|
|
579
573
|
}
|
|
580
574
|
getClasses(extractedKeys) {
|
|
581
575
|
return [(extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.hide) ? this[extractedKeys.hide] : ''];
|
|
@@ -4695,6 +4689,7 @@ const themeDefaults = {
|
|
|
4695
4689
|
container: {
|
|
4696
4690
|
noRing: true,
|
|
4697
4691
|
flex: true,
|
|
4692
|
+
column: true,
|
|
4698
4693
|
md: true,
|
|
4699
4694
|
itemsCenter: true,
|
|
4700
4695
|
gap: true,
|
|
@@ -5216,16 +5211,14 @@ const listTheme = new ComponentTheme("ul", "list-inside", {
|
|
|
5216
5211
|
class BreakpointTheme extends BaseTheme {
|
|
5217
5212
|
constructor() {
|
|
5218
5213
|
super(...arguments);
|
|
5219
|
-
/** Switch to column layout on
|
|
5220
|
-
this.
|
|
5221
|
-
/** Switch to column layout on
|
|
5222
|
-
this.
|
|
5223
|
-
/** Switch to column layout on
|
|
5224
|
-
this.
|
|
5225
|
-
/** Switch to column layout on
|
|
5226
|
-
this.
|
|
5227
|
-
/** Switch to column layout on extra-large screens and below */
|
|
5228
|
-
this.xlCol = "max-xl:flex-col";
|
|
5214
|
+
/** Switch to column layout on mobile devices and below (max-mobile: 20rem) */
|
|
5215
|
+
this.mobileCol = "max-mobile:flex-col";
|
|
5216
|
+
/** Switch to column layout on tablet devices and below (max-tablet: 40rem) */
|
|
5217
|
+
this.tabletCol = "max-tablet:flex-col";
|
|
5218
|
+
/** Switch to column layout on laptop devices and below (max-laptop: 64rem) */
|
|
5219
|
+
this.laptopCol = "max-laptop:flex-col";
|
|
5220
|
+
/** Switch to column layout on desktop devices and below (max-desktop: 80rem) */
|
|
5221
|
+
this.desktopCol = "max-desktop:flex-col";
|
|
5229
5222
|
}
|
|
5230
5223
|
getClasses(extractedKeys) {
|
|
5231
5224
|
return (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.breakpoint) ? [this[extractedKeys.breakpoint] || ''] : [];
|
|
@@ -5234,10 +5227,22 @@ class BreakpointTheme extends BaseTheme {
|
|
|
5234
5227
|
|
|
5235
5228
|
const defaultCardTheme = new ComponentTheme("div", "", {
|
|
5236
5229
|
size: {
|
|
5237
|
-
px: new PxTheme(
|
|
5238
|
-
|
|
5230
|
+
px: new PxTheme({
|
|
5231
|
+
xs: "[--aspect-ratio:1]",
|
|
5232
|
+
sm: "[--aspect-ratio:1]",
|
|
5233
|
+
md: "[--aspect-ratio:1]",
|
|
5234
|
+
lg: "[--aspect-ratio:1]",
|
|
5235
|
+
xl: "[--aspect-ratio:1]",
|
|
5236
|
+
}),
|
|
5237
|
+
py: new PyTheme({
|
|
5238
|
+
xs: "[--py-unit:2]",
|
|
5239
|
+
sm: "[--py-unit:4]",
|
|
5240
|
+
md: "[--py-unit:6]",
|
|
5241
|
+
lg: "[--py-unit:8]",
|
|
5242
|
+
xl: "[--py-unit:10]",
|
|
5243
|
+
}),
|
|
5239
5244
|
lineHeight: LineHeightTheme.createDefault(),
|
|
5240
|
-
gap: new GapTheme(
|
|
5245
|
+
gap: new GapTheme(false),
|
|
5241
5246
|
},
|
|
5242
5247
|
layout: {
|
|
5243
5248
|
...defaultLayoutsThemes,
|
|
@@ -5317,7 +5322,7 @@ class SizeTheme extends BaseTheme {
|
|
|
5317
5322
|
}
|
|
5318
5323
|
}
|
|
5319
5324
|
|
|
5320
|
-
const defaultContainerTheme = new ComponentTheme("div", "
|
|
5325
|
+
const defaultContainerTheme = new ComponentTheme("div", "mx-auto w-full", {
|
|
5321
5326
|
size: {
|
|
5322
5327
|
gap: new GapTheme(),
|
|
5323
5328
|
maxWidth: new SizeTheme({ xs: 'max-w-3xl', sm: 'max-w-4xl', md: 'max-w-5xl', lg: 'max-w-6xl', xl: 'max-w-7xl' }),
|
|
@@ -5394,11 +5399,11 @@ const defaultSectionTheme = new ComponentTheme("div", "w-full", {
|
|
|
5394
5399
|
xl: "[--aspect-ratio:1.5]",
|
|
5395
5400
|
}),
|
|
5396
5401
|
py: new PyTheme({
|
|
5397
|
-
xs: "[--py-unit:4]",
|
|
5398
|
-
sm: "[--py-unit:8]",
|
|
5399
|
-
md: "[--py-unit:12]",
|
|
5400
|
-
lg: "[--py-unit:16]",
|
|
5401
|
-
xl: "[--py-unit:20]",
|
|
5402
|
+
xs: "[--py-unit:4] max-laptop:[--py-unit:3] max-tablet:[--py-unit:2]",
|
|
5403
|
+
sm: "[--py-unit:8] max-laptop:[--py-unit:4] max-tablet:[--py-unit:2]",
|
|
5404
|
+
md: "[--py-unit:12] max-laptop:[--py-unit:6] max-tablet:[--py-unit:2]",
|
|
5405
|
+
lg: "[--py-unit:16] max-laptop:[--py-unit:8] max-tablet:[--py-unit:2]",
|
|
5406
|
+
xl: "[--py-unit:20] max-laptop:[--py-unit:10] max-tablet:[--py-unit:4]",
|
|
5402
5407
|
}),
|
|
5403
5408
|
gap: new GapTheme(),
|
|
5404
5409
|
breakpoint: new BreakpointTheme(),
|
|
@@ -5862,5 +5867,5 @@ const List = forwardRef(function List(props, ref) {
|
|
|
5862
5867
|
return jsx(ThemedComponent, { ref: ref, theme: theme.list, ...props });
|
|
5863
5868
|
});
|
|
5864
5869
|
|
|
5865
|
-
export { ABSOLUTE, ACCENT, ACTIVE, APPEARANCE_CATEGORY, APPEARANCE_VALUES, BADGE_CATEGORIES, BASE, BLACK, BLOCK, BOLD, BORDER, BORDER_B, BORDER_KEYS, BORDER_L, BORDER_R, BORDER_T, BORDER_VALUES, BORDER_X, BORDER_Y, BREAKPOINT, BREAKPOINT_VALUES, BUTTON_CATEGORIES, Badge, Button, CAPITALIZE, CARD_CATEGORIES, CHECKBOX_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, COLUMN, COLUMN_REVERSE, COL_CATEGORIES, COMPONENT, COMPONENT_PROPS_CATEGORY, CONTAINER_CATEGORIES, CONTENTS, Card, Checkbox, Chip, Code, Col, ComponentCategories, ComponentKeys, Container, DANGER, DECIMAL, DEFAULT, DISC, DISPLAY_VALUES, DIVIDER_CATEGORIES, Divider, EXTRABOLD, EXTRALIGHT, FILLED, FIXED, FLEX, FLEX_DIRECTION_VALUES, FLEX_NO_WRAP, FLEX_WRAP, FLEX_WRAP_REVERSE, FOCUS, FOCUS_VISIBLE, FOCUS_VISIBLE_OUTLINE, FOCUS_VISIBLE_VALUES, FONT_FAMILY_VALUES, FONT_STYLE_VALUES, FONT_WEIGHT_VALUES, GAP, GAP_VALUES, GRID, GRID_CATEGORIES, Grid2, Grid3, Grid4, Grid5, Grid6, HIDDEN, HIDE_VALUES, HOVER, IMG_CATEGORIES, INFO, INLINE, INLINE_BLOCK, INLINE_FLEX, INLINE_GRID, INPUT_CATEGORIES, INTERACTIVE_CATEGORIES, ITALIC, ITEMS_BASELINE, ITEMS_CENTER, ITEMS_END, ITEMS_START, ITEMS_STRETCH, ITEMS_VALUES, Img, Input, JUSTIFY_AROUND, JUSTIFY_BASELINE, JUSTIFY_BETWEEN, JUSTIFY_CENTER, JUSTIFY_END, JUSTIFY_EVENLY, JUSTIFY_START, JUSTIFY_STRETCH, JUSTIFY_VALUES, LABEL_CATEGORIES, LAYOUT_CORE, LAYOUT_FLEX, LAYOUT_FULL, LG,
|
|
5870
|
+
export { ABSOLUTE, ACCENT, ACTIVE, APPEARANCE_CATEGORY, APPEARANCE_VALUES, BADGE_CATEGORIES, BASE, BLACK, BLOCK, BOLD, BORDER, BORDER_B, BORDER_KEYS, BORDER_L, BORDER_R, BORDER_T, BORDER_VALUES, BORDER_X, BORDER_Y, BREAKPOINT, BREAKPOINT_VALUES, BUTTON_CATEGORIES, Badge, Button, CAPITALIZE, CARD_CATEGORIES, CHECKBOX_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, COLUMN, COLUMN_REVERSE, COL_CATEGORIES, COMPONENT, COMPONENT_PROPS_CATEGORY, CONTAINER_CATEGORIES, CONTENTS, Card, Checkbox, Chip, Code, Col, ComponentCategories, ComponentKeys, Container, DANGER, DECIMAL, DEFAULT, DESKTOP_COL, DESKTOP_HIDE, DISC, DISPLAY_VALUES, DIVIDER_CATEGORIES, Divider, EXTRABOLD, EXTRALIGHT, FILLED, FIXED, FLEX, FLEX_DIRECTION_VALUES, FLEX_NO_WRAP, FLEX_WRAP, FLEX_WRAP_REVERSE, FOCUS, FOCUS_VISIBLE, FOCUS_VISIBLE_OUTLINE, FOCUS_VISIBLE_VALUES, FONT_FAMILY_VALUES, FONT_STYLE_VALUES, FONT_WEIGHT_VALUES, GAP, GAP_VALUES, GRID, GRID_CATEGORIES, Grid2, Grid3, Grid4, Grid5, Grid6, HIDDEN, HIDE_VALUES, HOVER, IMG_CATEGORIES, INFO, INLINE, INLINE_BLOCK, INLINE_FLEX, INLINE_GRID, INPUT_CATEGORIES, INTERACTIVE_CATEGORIES, ITALIC, ITEMS_BASELINE, ITEMS_CENTER, ITEMS_END, ITEMS_START, ITEMS_STRETCH, ITEMS_VALUES, Img, Input, JUSTIFY_AROUND, JUSTIFY_BASELINE, JUSTIFY_BETWEEN, JUSTIFY_CENTER, JUSTIFY_END, JUSTIFY_EVENLY, JUSTIFY_START, JUSTIFY_STRETCH, JUSTIFY_VALUES, LABEL_CATEGORIES, LAPTOP_COL, LAPTOP_HIDE, LAYOUT_CORE, LAYOUT_FLEX, LAYOUT_FULL, LG, LIGHT, LINE_THROUGH, LINK, LIST_CATEGORIES, LIST_STYLE, LIST_STYLE_VALUES, LOWERCASE, Label, Link, List, ListItem, MD, MEDIUM, MOBILE_COL, MOBILE_HIDE, MODE_VALUES, MONO, ModeKeys, NORMAL, NORMAL_CASE, NOT_ITALIC, NO_BORDER, NO_FOCUS_VISIBLE_OUTLINE, NO_GAP, NO_PADDING, NO_RING, NO_SHADOW, NO_UNDERLINE, OUTLINE, OVERFLOW_AUTO, OVERFLOW_CLIP, OVERFLOW_HIDDEN, OVERFLOW_SCROLL, OVERFLOW_VALUES, OVERFLOW_VISIBLE, OVERFLOW_X_AUTO, OVERFLOW_X_CLIP, OVERFLOW_X_HIDDEN, OVERFLOW_X_SCROLL, OVERFLOW_X_VISIBLE, OVERFLOW_Y_AUTO, OVERFLOW_Y_CLIP, OVERFLOW_Y_HIDDEN, OVERFLOW_Y_SCROLL, OVERFLOW_Y_VISIBLE, OVERLINE, PADDING, PADDING_VALUES, PILL, POSITION_VALUES, PRIMARY, PageTitle, RELATIVE, REVERSE, REVERSE_VALUES, RING, RING_VALUES, ROUNDED, ROW, ROW_CATEGORIES, ROW_REVERSE, Row, SANS, SECONDARY, SECTION_CATEGORIES, SEMIBOLD, SERIF, SHADOW, SHADOW_VALUES, SHAPE, SHAPE_VALUES, SHARP, SIZE_VALUES, SM, STACK_CATEGORIES, STATIC, STICKY, SUCCESS, Section, SectionTitle, Stack, TABLE, TABLET_COL, TABLET_HIDE, TABLE_CELL, TERTIARY, TEXT_ALIGN_VALUES, TEXT_CENTER, TEXT_DECORATION_VALUES, TEXT_JUSTIFY, TEXT_LEFT, TEXT_RIGHT, TEXT_TRANSFORM_VALUES, THIN, TRANSPARENT, TRANSPARENT_VALUES, TYPOGRAPHY_CATEGORIES, TYPOGRAPHY_FULL, TYPOGRAPHY_STYLE, Text, ThemeProvider, Title, UNDERLINE, UPPERCASE, VARIANT, VARIANT_VALUES, VISUAL_CORE, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, VISUAL_FULL, VISUAL_LAYOUT, WARNING, WRAP_VALUES, XL, XS, defaultTheme, themeDefaults, useTheme };
|
|
5866
5871
|
//# sourceMappingURL=index.esm.js.map
|