@umami/react-zen 0.242.0 → 0.244.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 +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +96 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +96 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -11
- 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),
|
|
@@ -4698,6 +4780,7 @@ function Select({
|
|
|
4698
4780
|
searchDelay,
|
|
4699
4781
|
isFullscreen,
|
|
4700
4782
|
maxHeight,
|
|
4783
|
+
showIcon = true,
|
|
4701
4784
|
onSearch,
|
|
4702
4785
|
onChange,
|
|
4703
4786
|
buttonProps,
|
|
@@ -4731,10 +4814,18 @@ function Select({
|
|
|
4731
4814
|
onChange: handleChange,
|
|
4732
4815
|
children: [
|
|
4733
4816
|
label && /* @__PURE__ */ jsx(Label, { children: label }),
|
|
4734
|
-
/* @__PURE__ */
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4817
|
+
/* @__PURE__ */ jsxs(
|
|
4818
|
+
Button,
|
|
4819
|
+
{
|
|
4820
|
+
variant: "outline",
|
|
4821
|
+
...buttonProps,
|
|
4822
|
+
className: cn("w-full justify-between", buttonProps?.className),
|
|
4823
|
+
children: [
|
|
4824
|
+
/* @__PURE__ */ jsx(SelectValue, { children: renderValue }),
|
|
4825
|
+
showIcon && /* @__PURE__ */ jsx(Icon, { rotate: 90, "aria-hidden": "true", size: "sm", children: /* @__PURE__ */ jsx(icons_exports.ChevronRight, {}) })
|
|
4826
|
+
]
|
|
4827
|
+
}
|
|
4828
|
+
),
|
|
4738
4829
|
/* @__PURE__ */ jsx(Popover, { ...popoverProps, onOpenChange: handleOpenChange, isFullscreen, children: /* @__PURE__ */ jsxs(
|
|
4739
4830
|
Column,
|
|
4740
4831
|
{
|
|
@@ -5128,6 +5219,6 @@ function ZenProvider({
|
|
|
5128
5219
|
return /* @__PURE__ */ jsx(ToastProvider, { ...toast2, children });
|
|
5129
5220
|
}
|
|
5130
5221
|
|
|
5131
|
-
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 };
|
|
5132
5223
|
//# sourceMappingURL=index.mjs.map
|
|
5133
5224
|
//# sourceMappingURL=index.mjs.map
|