bako-ui 0.2.2 → 0.2.4
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 +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +41 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +42 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -25,10 +25,9 @@ declare function GridItem(props: GridItemProps$1): react_jsx_runtime.JSX.Element
|
|
|
25
25
|
|
|
26
26
|
declare const Badge: react.ForwardRefExoticComponent<_chakra_ui_react.BadgeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
}
|
|
28
|
+
declare const Button: react.ForwardRefExoticComponent<_chakra_ui_react.ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
type ButtonProps = ButtonProps$1;
|
|
32
31
|
|
|
33
32
|
declare const Card: typeof Card$1;
|
|
34
33
|
|
|
@@ -343,6 +342,11 @@ declare const Menu: typeof Menu$1 & {
|
|
|
343
342
|
Portal: typeof Portal;
|
|
344
343
|
};
|
|
345
344
|
|
|
345
|
+
declare const floatingStyles: ({ hasValue, withStartIcon, }: {
|
|
346
|
+
hasValue: boolean;
|
|
347
|
+
withStartIcon?: boolean;
|
|
348
|
+
}) => _chakra_ui_react.SystemStyleObject;
|
|
349
|
+
|
|
346
350
|
declare const CheckIcon: FC<IconProps>;
|
|
347
351
|
|
|
348
352
|
declare const CloseIcon: FC<IconProps>;
|
|
@@ -354,4 +358,4 @@ declare const ThemeProvider: (props: ThemeProviderProps) => react_jsx_runtime.JS
|
|
|
354
358
|
|
|
355
359
|
declare const theme: _chakra_ui_react.SystemContext;
|
|
356
360
|
|
|
357
|
-
export { Accordion, type AccordionItemBodyProps, type AccordionItemContentProps, type AccordionItemIndicatorProps, type AccordionItemProps, type AccordionItemTriggerProps, type AccordionRootProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, Breadcrumb, type BreadcrumbCurrentLinkProps, type BreadcrumbEllipsisProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbListProps, type BreadcrumbRootProps, type BreadcrumbSeparatorProps, Button, type ButtonProps, Card, CheckIcon, Checkbox, type CheckboxProps, Clipboard, _default$4 as CloseButton, type CloseButtonProps, CloseIcon, Combobox, Container, type ContainerProps, Dialog, Drawer, EmptyState, type EnumOption, Grid, GridItem, type GridItemProps, type GridProps, HStack, type HStackProps, Icon, _default$3 as IconButton, type IconButtonProps, _default as Input, type InputProps, _default$2 as Link, _default$1 as LinkOverlay, type LinkOverlayProps, type LinkProps, List, Menu, MoneyField, type MoneyFieldProps, Popover, Progress, ProgressLabel, type ProgressLabelProps, type ProgressProps, ProgressRange, type ProgressRangeProps, ProgressRoot, type ProgressRootProps, ProgressTrack, type ProgressTrackProps, ProgressValueText, type ProgressValueTextProps, QrCode, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RhfCombobox, type RhfComboboxOptions, type RhfComboboxProps, RhfInput, type RhfInputProps, RhfMoneyField, type RhfMoneyFieldProps, Select, Skeleton, SkeletonCircle, SkeletonText, Stack, type StackProps, Steps, type StepsCompletedContentProps, type StepsContentProps, type StepsDescriptionProps, type StepsIndicatorProps, type StepsItemProps, type StepsListProps, type StepsNextTriggerProps, type StepsNumberProps, type StepsPrevTriggerProps, type StepsRootProps, type StepsSeparatorProps, type StepsStatusProps, type StepsTitleProps, type StepsTriggerProps, Switch, type SwitchProps, Tabs, TextArea, type TextAreaProps, TextMask, type TextMaskProps, ThemeProvider, type ThemeProviderProps, Toast, Tooltip, type TooltipProps, VStack, type VStackProps, WalletIcon, theme, toaster };
|
|
361
|
+
export { Accordion, type AccordionItemBodyProps, type AccordionItemContentProps, type AccordionItemIndicatorProps, type AccordionItemProps, type AccordionItemTriggerProps, type AccordionRootProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, Breadcrumb, type BreadcrumbCurrentLinkProps, type BreadcrumbEllipsisProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbListProps, type BreadcrumbRootProps, type BreadcrumbSeparatorProps, Button, type ButtonProps, Card, CheckIcon, Checkbox, type CheckboxProps, Clipboard, _default$4 as CloseButton, type CloseButtonProps, CloseIcon, Combobox, Container, type ContainerProps, Dialog, Drawer, EmptyState, type EnumOption, Grid, GridItem, type GridItemProps, type GridProps, HStack, type HStackProps, Icon, _default$3 as IconButton, type IconButtonProps, _default as Input, type InputProps, _default$2 as Link, _default$1 as LinkOverlay, type LinkOverlayProps, type LinkProps, List, Menu, MoneyField, type MoneyFieldProps, Popover, Progress, ProgressLabel, type ProgressLabelProps, type ProgressProps, ProgressRange, type ProgressRangeProps, ProgressRoot, type ProgressRootProps, ProgressTrack, type ProgressTrackProps, ProgressValueText, type ProgressValueTextProps, QrCode, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RhfCombobox, type RhfComboboxOptions, type RhfComboboxProps, RhfInput, type RhfInputProps, RhfMoneyField, type RhfMoneyFieldProps, Select, Skeleton, SkeletonCircle, SkeletonText, Stack, type StackProps, Steps, type StepsCompletedContentProps, type StepsContentProps, type StepsDescriptionProps, type StepsIndicatorProps, type StepsItemProps, type StepsListProps, type StepsNextTriggerProps, type StepsNumberProps, type StepsPrevTriggerProps, type StepsRootProps, type StepsSeparatorProps, type StepsStatusProps, type StepsTitleProps, type StepsTriggerProps, Switch, type SwitchProps, Tabs, TextArea, type TextAreaProps, TextMask, type TextMaskProps, ThemeProvider, type ThemeProviderProps, Toast, Tooltip, type TooltipProps, VStack, type VStackProps, WalletIcon, floatingStyles, theme, toaster };
|
package/dist/index.d.ts
CHANGED
|
@@ -25,10 +25,9 @@ declare function GridItem(props: GridItemProps$1): react_jsx_runtime.JSX.Element
|
|
|
25
25
|
|
|
26
26
|
declare const Badge: react.ForwardRefExoticComponent<_chakra_ui_react.BadgeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
}
|
|
28
|
+
declare const Button: react.ForwardRefExoticComponent<_chakra_ui_react.ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
type ButtonProps = ButtonProps$1;
|
|
32
31
|
|
|
33
32
|
declare const Card: typeof Card$1;
|
|
34
33
|
|
|
@@ -343,6 +342,11 @@ declare const Menu: typeof Menu$1 & {
|
|
|
343
342
|
Portal: typeof Portal;
|
|
344
343
|
};
|
|
345
344
|
|
|
345
|
+
declare const floatingStyles: ({ hasValue, withStartIcon, }: {
|
|
346
|
+
hasValue: boolean;
|
|
347
|
+
withStartIcon?: boolean;
|
|
348
|
+
}) => _chakra_ui_react.SystemStyleObject;
|
|
349
|
+
|
|
346
350
|
declare const CheckIcon: FC<IconProps>;
|
|
347
351
|
|
|
348
352
|
declare const CloseIcon: FC<IconProps>;
|
|
@@ -354,4 +358,4 @@ declare const ThemeProvider: (props: ThemeProviderProps) => react_jsx_runtime.JS
|
|
|
354
358
|
|
|
355
359
|
declare const theme: _chakra_ui_react.SystemContext;
|
|
356
360
|
|
|
357
|
-
export { Accordion, type AccordionItemBodyProps, type AccordionItemContentProps, type AccordionItemIndicatorProps, type AccordionItemProps, type AccordionItemTriggerProps, type AccordionRootProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, Breadcrumb, type BreadcrumbCurrentLinkProps, type BreadcrumbEllipsisProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbListProps, type BreadcrumbRootProps, type BreadcrumbSeparatorProps, Button, type ButtonProps, Card, CheckIcon, Checkbox, type CheckboxProps, Clipboard, _default$4 as CloseButton, type CloseButtonProps, CloseIcon, Combobox, Container, type ContainerProps, Dialog, Drawer, EmptyState, type EnumOption, Grid, GridItem, type GridItemProps, type GridProps, HStack, type HStackProps, Icon, _default$3 as IconButton, type IconButtonProps, _default as Input, type InputProps, _default$2 as Link, _default$1 as LinkOverlay, type LinkOverlayProps, type LinkProps, List, Menu, MoneyField, type MoneyFieldProps, Popover, Progress, ProgressLabel, type ProgressLabelProps, type ProgressProps, ProgressRange, type ProgressRangeProps, ProgressRoot, type ProgressRootProps, ProgressTrack, type ProgressTrackProps, ProgressValueText, type ProgressValueTextProps, QrCode, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RhfCombobox, type RhfComboboxOptions, type RhfComboboxProps, RhfInput, type RhfInputProps, RhfMoneyField, type RhfMoneyFieldProps, Select, Skeleton, SkeletonCircle, SkeletonText, Stack, type StackProps, Steps, type StepsCompletedContentProps, type StepsContentProps, type StepsDescriptionProps, type StepsIndicatorProps, type StepsItemProps, type StepsListProps, type StepsNextTriggerProps, type StepsNumberProps, type StepsPrevTriggerProps, type StepsRootProps, type StepsSeparatorProps, type StepsStatusProps, type StepsTitleProps, type StepsTriggerProps, Switch, type SwitchProps, Tabs, TextArea, type TextAreaProps, TextMask, type TextMaskProps, ThemeProvider, type ThemeProviderProps, Toast, Tooltip, type TooltipProps, VStack, type VStackProps, WalletIcon, theme, toaster };
|
|
361
|
+
export { Accordion, type AccordionItemBodyProps, type AccordionItemContentProps, type AccordionItemIndicatorProps, type AccordionItemProps, type AccordionItemTriggerProps, type AccordionRootProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, Breadcrumb, type BreadcrumbCurrentLinkProps, type BreadcrumbEllipsisProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbListProps, type BreadcrumbRootProps, type BreadcrumbSeparatorProps, Button, type ButtonProps, Card, CheckIcon, Checkbox, type CheckboxProps, Clipboard, _default$4 as CloseButton, type CloseButtonProps, CloseIcon, Combobox, Container, type ContainerProps, Dialog, Drawer, EmptyState, type EnumOption, Grid, GridItem, type GridItemProps, type GridProps, HStack, type HStackProps, Icon, _default$3 as IconButton, type IconButtonProps, _default as Input, type InputProps, _default$2 as Link, _default$1 as LinkOverlay, type LinkOverlayProps, type LinkProps, List, Menu, MoneyField, type MoneyFieldProps, Popover, Progress, ProgressLabel, type ProgressLabelProps, type ProgressProps, ProgressRange, type ProgressRangeProps, ProgressRoot, type ProgressRootProps, ProgressTrack, type ProgressTrackProps, ProgressValueText, type ProgressValueTextProps, QrCode, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RhfCombobox, type RhfComboboxOptions, type RhfComboboxProps, RhfInput, type RhfInputProps, RhfMoneyField, type RhfMoneyFieldProps, Select, Skeleton, SkeletonCircle, SkeletonText, Stack, type StackProps, Steps, type StepsCompletedContentProps, type StepsContentProps, type StepsDescriptionProps, type StepsIndicatorProps, type StepsItemProps, type StepsListProps, type StepsNextTriggerProps, type StepsNumberProps, type StepsPrevTriggerProps, type StepsRootProps, type StepsSeparatorProps, type StepsStatusProps, type StepsTitleProps, type StepsTriggerProps, Switch, type SwitchProps, Tabs, TextArea, type TextAreaProps, TextMask, type TextMaskProps, ThemeProvider, type ThemeProviderProps, Toast, Tooltip, type TooltipProps, VStack, type VStackProps, WalletIcon, floatingStyles, theme, toaster };
|
package/dist/index.js
CHANGED
|
@@ -43,12 +43,13 @@ var text_default = react.Text;
|
|
|
43
43
|
var heading_default = react.Heading;
|
|
44
44
|
var box_default = react.Box;
|
|
45
45
|
var Badge = react.Badge;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
var Button = React.forwardRef(
|
|
47
|
+
function Button2(props, ref) {
|
|
48
|
+
const { colorPalette = "primary", ...rest } = props;
|
|
49
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.Button, { ref, colorPalette, ...rest });
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
var button_default = Button;
|
|
52
53
|
var Card = react.Card;
|
|
53
54
|
var card_default = Card;
|
|
54
55
|
var Clipboard = react.Clipboard;
|
|
@@ -202,14 +203,13 @@ var Radio = React.forwardRef(
|
|
|
202
203
|
var radio_default = Radio;
|
|
203
204
|
var floatingStyles = ({
|
|
204
205
|
hasValue,
|
|
205
|
-
withStartIcon
|
|
206
|
+
withStartIcon = false
|
|
206
207
|
}) => react.defineStyle({
|
|
207
208
|
pos: "absolute",
|
|
208
209
|
px: "1",
|
|
209
210
|
top: hasValue ? "0" : "50%",
|
|
210
211
|
transform: hasValue ? "none" : "translateY(-50%)",
|
|
211
212
|
insetStart: withStartIcon ? "9" : "2.5",
|
|
212
|
-
color: "bg.emphasized",
|
|
213
213
|
fontWeight: "normal",
|
|
214
214
|
pointerEvents: "none",
|
|
215
215
|
transition: "all 0.2s",
|
|
@@ -432,7 +432,7 @@ function RhfInput({
|
|
|
432
432
|
pt: 2,
|
|
433
433
|
pl: (inputGroup == null ? void 0 : inputGroup.startElement) ? "10" : "3",
|
|
434
434
|
pr: (inputGroup == null ? void 0 : inputGroup.endElement) ? "10" : "3",
|
|
435
|
-
color: "fg
|
|
435
|
+
color: "fg",
|
|
436
436
|
...rest,
|
|
437
437
|
...slotProps == null ? void 0 : slotProps.input,
|
|
438
438
|
...props,
|
|
@@ -854,8 +854,8 @@ var semanticColors = react.defineSemanticTokens.colors({
|
|
|
854
854
|
},
|
|
855
855
|
solid: {
|
|
856
856
|
value: {
|
|
857
|
-
_light: "{colors.primary.
|
|
858
|
-
_dark: "{colors.primary.
|
|
857
|
+
_light: "{colors.primary.main}",
|
|
858
|
+
_dark: "{colors.primary.main}"
|
|
859
859
|
}
|
|
860
860
|
},
|
|
861
861
|
muted: {
|
|
@@ -966,6 +966,14 @@ var accordionSlotRecipe = react.defineSlotRecipe({
|
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
});
|
|
969
|
+
var fieldSlotRecipe = react.defineSlotRecipe({
|
|
970
|
+
slots: anatomy.fieldAnatomy.keys(),
|
|
971
|
+
base: {
|
|
972
|
+
label: {
|
|
973
|
+
color: "fg.muted"
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
});
|
|
969
977
|
var menuSlotRecipe = react.defineSlotRecipe({
|
|
970
978
|
slots: anatomy.menuAnatomy.keys(),
|
|
971
979
|
base: {
|
|
@@ -1034,6 +1042,22 @@ var tabsSlotRecipe = react.defineSlotRecipe({
|
|
|
1034
1042
|
color: "fg"
|
|
1035
1043
|
}
|
|
1036
1044
|
}
|
|
1045
|
+
},
|
|
1046
|
+
subtle: {
|
|
1047
|
+
trigger: {
|
|
1048
|
+
rounded: "lg",
|
|
1049
|
+
color: "textSecondary",
|
|
1050
|
+
bg: "bg.panel",
|
|
1051
|
+
transition: "all 0.3s",
|
|
1052
|
+
_hover: {
|
|
1053
|
+
bg: "bg.muted",
|
|
1054
|
+
color: "textPrimary"
|
|
1055
|
+
},
|
|
1056
|
+
_selected: {
|
|
1057
|
+
color: "textPrimary",
|
|
1058
|
+
bg: "bg.muted"
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1037
1061
|
}
|
|
1038
1062
|
}
|
|
1039
1063
|
}
|
|
@@ -1089,15 +1113,16 @@ var slotRecipes = {
|
|
|
1089
1113
|
tabs: tabsSlotRecipe,
|
|
1090
1114
|
progress: progessSlotRecipes,
|
|
1091
1115
|
toast: toastSlotRecipe,
|
|
1092
|
-
accordion: accordionSlotRecipe
|
|
1116
|
+
accordion: accordionSlotRecipe,
|
|
1117
|
+
field: fieldSlotRecipe
|
|
1093
1118
|
};
|
|
1094
1119
|
var colorsTokens = react.defineTokens.colors({
|
|
1095
1120
|
primary: {
|
|
1096
1121
|
contrast: { value: "{colors.gray.600}" },
|
|
1097
|
-
|
|
1122
|
+
main: { value: "{colors.yellow.100}" }
|
|
1098
1123
|
},
|
|
1099
1124
|
secondary: {
|
|
1100
|
-
|
|
1125
|
+
main: { value: "{colors.gray.600}" },
|
|
1101
1126
|
contrast: { value: "{colors.gray.300}" }
|
|
1102
1127
|
},
|
|
1103
1128
|
textPrimary: { value: "{colors.gray.100}" },
|
|
@@ -1277,7 +1302,7 @@ exports.AvatarGroup = AvatarGroup;
|
|
|
1277
1302
|
exports.Badge = Badge;
|
|
1278
1303
|
exports.Box = box_default;
|
|
1279
1304
|
exports.Breadcrumb = Breadcrumb;
|
|
1280
|
-
exports.Button =
|
|
1305
|
+
exports.Button = button_default;
|
|
1281
1306
|
exports.Card = card_default;
|
|
1282
1307
|
exports.CheckIcon = CheckIcon;
|
|
1283
1308
|
exports.Checkbox = checkbox_default;
|
|
@@ -1334,6 +1359,7 @@ exports.Toast = Toast;
|
|
|
1334
1359
|
exports.Tooltip = tooltip_default;
|
|
1335
1360
|
exports.VStack = VStack;
|
|
1336
1361
|
exports.WalletIcon = WalletIcon;
|
|
1362
|
+
exports.floatingStyles = floatingStyles;
|
|
1337
1363
|
exports.theme = theme_default;
|
|
1338
1364
|
exports.toaster = toaster;
|
|
1339
1365
|
//# sourceMappingURL=index.js.map
|