@umami/react-zen 0.243.0 → 0.245.0
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/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +85 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +85 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/styles.full.css +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1050,6 +1050,80 @@ var gapYMap = {
|
|
|
1050
1050
|
"32": "gap-y-32",
|
|
1051
1051
|
true: "gap-y-[var(--gap-default)]"
|
|
1052
1052
|
};
|
|
1053
|
+
var spaceXMap = {
|
|
1054
|
+
"0": "space-x-0",
|
|
1055
|
+
px: "space-x-px",
|
|
1056
|
+
"0.5": "space-x-0.5",
|
|
1057
|
+
"1": "space-x-1",
|
|
1058
|
+
"1.5": "space-x-1.5",
|
|
1059
|
+
"2": "space-x-2",
|
|
1060
|
+
"2.5": "space-x-2.5",
|
|
1061
|
+
"3": "space-x-3",
|
|
1062
|
+
"3.5": "space-x-3.5",
|
|
1063
|
+
"4": "space-x-4",
|
|
1064
|
+
"5": "space-x-5",
|
|
1065
|
+
"6": "space-x-6",
|
|
1066
|
+
"7": "space-x-7",
|
|
1067
|
+
"8": "space-x-8",
|
|
1068
|
+
"9": "space-x-9",
|
|
1069
|
+
"10": "space-x-10",
|
|
1070
|
+
"11": "space-x-11",
|
|
1071
|
+
"12": "space-x-12",
|
|
1072
|
+
"14": "space-x-14",
|
|
1073
|
+
"16": "space-x-16",
|
|
1074
|
+
"20": "space-x-20",
|
|
1075
|
+
"24": "space-x-24",
|
|
1076
|
+
"28": "space-x-28",
|
|
1077
|
+
"32": "space-x-32",
|
|
1078
|
+
"36": "space-x-36",
|
|
1079
|
+
"40": "space-x-40",
|
|
1080
|
+
"44": "space-x-44",
|
|
1081
|
+
"48": "space-x-48",
|
|
1082
|
+
"52": "space-x-52",
|
|
1083
|
+
"56": "space-x-56",
|
|
1084
|
+
"60": "space-x-60",
|
|
1085
|
+
"64": "space-x-64",
|
|
1086
|
+
"72": "space-x-72",
|
|
1087
|
+
"80": "space-x-80",
|
|
1088
|
+
"96": "space-x-96"
|
|
1089
|
+
};
|
|
1090
|
+
var spaceYMap = {
|
|
1091
|
+
"0": "space-y-0",
|
|
1092
|
+
px: "space-y-px",
|
|
1093
|
+
"0.5": "space-y-0.5",
|
|
1094
|
+
"1": "space-y-1",
|
|
1095
|
+
"1.5": "space-y-1.5",
|
|
1096
|
+
"2": "space-y-2",
|
|
1097
|
+
"2.5": "space-y-2.5",
|
|
1098
|
+
"3": "space-y-3",
|
|
1099
|
+
"3.5": "space-y-3.5",
|
|
1100
|
+
"4": "space-y-4",
|
|
1101
|
+
"5": "space-y-5",
|
|
1102
|
+
"6": "space-y-6",
|
|
1103
|
+
"7": "space-y-7",
|
|
1104
|
+
"8": "space-y-8",
|
|
1105
|
+
"9": "space-y-9",
|
|
1106
|
+
"10": "space-y-10",
|
|
1107
|
+
"11": "space-y-11",
|
|
1108
|
+
"12": "space-y-12",
|
|
1109
|
+
"14": "space-y-14",
|
|
1110
|
+
"16": "space-y-16",
|
|
1111
|
+
"20": "space-y-20",
|
|
1112
|
+
"24": "space-y-24",
|
|
1113
|
+
"28": "space-y-28",
|
|
1114
|
+
"32": "space-y-32",
|
|
1115
|
+
"36": "space-y-36",
|
|
1116
|
+
"40": "space-y-40",
|
|
1117
|
+
"44": "space-y-44",
|
|
1118
|
+
"48": "space-y-48",
|
|
1119
|
+
"52": "space-y-52",
|
|
1120
|
+
"56": "space-y-56",
|
|
1121
|
+
"60": "space-y-60",
|
|
1122
|
+
"64": "space-y-64",
|
|
1123
|
+
"72": "space-y-72",
|
|
1124
|
+
"80": "space-y-80",
|
|
1125
|
+
"96": "space-y-96"
|
|
1126
|
+
};
|
|
1053
1127
|
var fontSizeMap = {
|
|
1054
1128
|
xs: "text-xs",
|
|
1055
1129
|
sm: "text-sm",
|
|
@@ -1511,6 +1585,10 @@ function mapGap(value, axis) {
|
|
|
1511
1585
|
const map = axis === "x" ? gapXMap : axis === "y" ? gapYMap : gapMap;
|
|
1512
1586
|
return mapResponsive(value, (v) => map[String(v)]);
|
|
1513
1587
|
}
|
|
1588
|
+
function mapSpace(value, axis) {
|
|
1589
|
+
const map = axis === "x" ? spaceXMap : spaceYMap;
|
|
1590
|
+
return mapResponsive(value, (v) => map[String(v)]);
|
|
1591
|
+
}
|
|
1514
1592
|
function mapFontSize(value) {
|
|
1515
1593
|
return mapResponsive(value, (v) => fontSizeMap[v]);
|
|
1516
1594
|
}
|
|
@@ -2510,6 +2588,8 @@ var Box = forwardRef(function Box2({
|
|
|
2510
2588
|
marginRight,
|
|
2511
2589
|
marginBottom,
|
|
2512
2590
|
marginLeft,
|
|
2591
|
+
spaceX,
|
|
2592
|
+
spaceY,
|
|
2513
2593
|
width,
|
|
2514
2594
|
minWidth,
|
|
2515
2595
|
maxWidth,
|
|
@@ -2579,6 +2659,8 @@ var Box = forwardRef(function Box2({
|
|
|
2579
2659
|
mapMargin(marginRight, "r"),
|
|
2580
2660
|
mapMargin(marginBottom, "b"),
|
|
2581
2661
|
mapMargin(marginLeft, "l"),
|
|
2662
|
+
mapSpace(spaceX, "x"),
|
|
2663
|
+
mapSpace(spaceY, "y"),
|
|
2582
2664
|
mapWidth(width),
|
|
2583
2665
|
mapMinWidth(minWidth),
|
|
2584
2666
|
mapMaxWidth(maxWidth),
|
|
@@ -3582,8 +3664,8 @@ function Dots({ size = "md", className, color: _color, ...props }) {
|
|
|
3582
3664
|
/* @__PURE__ */ jsx(Dot, { size })
|
|
3583
3665
|
] });
|
|
3584
3666
|
}
|
|
3585
|
-
function Tooltip({ children, className, showArrow, ...props }) {
|
|
3586
|
-
return /* @__PURE__ */ jsxs(Tooltip$1, { ...props, className: cn("group", tooltip(), className), children: [
|
|
3667
|
+
function Tooltip({ children, className, offset = 8, showArrow, ...props }) {
|
|
3668
|
+
return /* @__PURE__ */ jsxs(Tooltip$1, { ...props, offset, className: cn("group", tooltip(), className), children: [
|
|
3587
3669
|
showArrow && /* @__PURE__ */ jsx(OverlayArrow, { className: "w-2 h-2", children: /* @__PURE__ */ jsx(
|
|
3588
3670
|
"svg",
|
|
3589
3671
|
{
|
|
@@ -5137,6 +5219,6 @@ function ZenProvider({
|
|
|
5137
5219
|
return /* @__PURE__ */ jsx(ToastProvider, { ...toast2, children });
|
|
5138
5220
|
}
|
|
5139
5221
|
|
|
5140
|
-
export { Accordion, AccordionItem, AlertBanner, AlertDialog, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, ComboBox, ConfirmationDialog, Container, CopyButton, DataCard, DataColumn, DataTable, Dialog, Dots, Flexbox, FloatingTooltip, Form, FormButtons, FormController, FormField, FormFieldArray, FormResetButton, FormSubmitButton, Grid, Heading, HoverTrigger, Icon, Image, Label, List, ListItem, ListSection, ListSeparator, Loading, LoadingButton, Menu, MenuItem, MenuSection, MenuSeparator, Modal, Navbar, NavbarContext, NavbarItem, PALETTES, PaletteSwitcher, PasswordField, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, Slider, Spinner, StatusLight, SubMenuTrigger, Switch, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, Tag, TagGroup, Text, TextField, ThemeButton, ThemeSwitcher, Toast, ToastContext, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipBubble, ZenProvider, cn, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
|
|
5222
|
+
export { Accordion, AccordionItem, AlertBanner, AlertDialog, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, ComboBox, ConfirmationDialog, Container, CopyButton, DataCard, DataColumn, DataTable, Dialog, Dots, Flexbox, FloatingTooltip, Form, FormButtons, FormController, FormField, FormFieldArray, FormResetButton, FormSubmitButton, Grid, Heading, HoverTrigger, Icon, Image, Label, List, ListItem, ListSection, ListSeparator, Loading, LoadingButton, Menu, MenuItem, MenuSection, MenuSeparator, Modal, Navbar, NavbarContext, NavbarItem, PALETTES, PaletteSwitcher, PasswordField, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, Slider, Spinner, StatusLight, SubMenuTrigger, Switch, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, Tag, TagGroup, Text, TextField, ThemeButton, ThemeSwitcher, Toast, ToastContext, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipBubble, ZenProvider, cn, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapSpace, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
|
|
5141
5223
|
//# sourceMappingURL=index.mjs.map
|
|
5142
5224
|
//# sourceMappingURL=index.mjs.map
|