@saas-ui/react 3.0.0-next.21 → 3.0.0-next.23
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/CHANGELOG.md +12 -0
- package/dist/.tsbuildinfo.json +1 -1
- package/dist/components/action-bar/action-bar.js +1 -1
- package/dist/components/action-bar/index.d.ts +1 -1
- package/dist/components/action-bar/index.js +1 -1
- package/dist/components/alert/alert.js +1 -1
- package/dist/components/app-shell/index.d.ts +2 -2
- package/dist/components/app-shell/index.js +1 -1
- package/dist/components/card/index.js +0 -1
- package/dist/components/checkbox/checkbox.recipe.d.ts +1 -1
- package/dist/components/checkbox/checkbox.recipe.js +1 -1
- package/dist/components/clipboard/clipboard.d.ts +3 -3
- package/dist/components/clipboard/clipboard.js +4 -4
- package/dist/components/clipboard/index.d.ts +1 -1
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/close-button/close-button.d.ts +1 -1
- package/dist/components/close-button/close-button.js +2 -2
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-badge/index.d.ts +2 -2
- package/dist/components/icon-badge/index.js +1 -1
- package/dist/components/icons/icons.js +1 -1
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/link/index.js +1 -1
- package/dist/components/native-select/index.d.ts +2 -2
- package/dist/components/native-select/index.js +1 -1
- package/dist/components/native-select/native-select.js +1 -1
- package/dist/components/password-input/index.d.ts +2 -2
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/radio/index.d.ts +2 -2
- package/dist/components/radio/index.js +1 -1
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/provider/index.d.ts +3 -3
- package/dist/provider/index.js +2 -2
- package/dist/provider/use-link.js +1 -1
- package/dist/theme/index.js +30 -30
- package/dist/theme/slot-recipes.d.ts +40 -40
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from 'react';
|
3
3
|
import { ActionBar } from '@chakra-ui/react/action-bar';
|
4
4
|
import { Portal } from '@chakra-ui/react/portal';
|
5
|
-
import { CloseButton as CloseButtonBase } from
|
5
|
+
import { CloseButton as CloseButtonBase } from "../close-button/index.js";
|
6
6
|
const ActionBarContent = forwardRef(function ActionBarContent(props, ref) {
|
7
7
|
const { children, portalled = true, portalRef, ...rest } = props;
|
8
8
|
return (_jsx(Portal, { disabled: !portalled, container: portalRef, children: _jsx(ActionBar.Positioner, { children: _jsx(ActionBar.Content, { ref: ref, ...rest, asChild: false, children: children }) }) }));
|
@@ -1 +1 @@
|
|
1
|
-
export * as ActionBar from './action-bar';
|
1
|
+
export * as ActionBar from './action-bar.tsx';
|
@@ -1 +1 @@
|
|
1
|
-
export * as ActionBar from
|
1
|
+
export * as ActionBar from "./action-bar.js";
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
3
|
import { forwardRef } from 'react';
|
4
4
|
import { Alert as AlertPrimitive } from '@chakra-ui/react/alert';
|
5
|
-
import { CloseButton } from
|
5
|
+
import { CloseButton } from "../close-button/index.js";
|
6
6
|
export const Alert = forwardRef(function Alert(props, ref) {
|
7
7
|
const { title, children, icon, closable, onClose, startElement, endElement, ...rest } = props;
|
8
8
|
return (_jsxs(AlertPrimitive.Root, { ref: ref, ...rest, children: [startElement || (_jsx(AlertPrimitive.Indicator, { children: icon })), children ? (_jsxs(AlertPrimitive.Content, { children: [_jsx(AlertPrimitive.Title, { children: title }), _jsx(AlertPrimitive.Description, { children: children })] })) : (_jsx(AlertPrimitive.Title, { flex: "1", children: title })), endElement, closable && (_jsx(CloseButton, { size: "sm", pos: "relative", top: "-2", insetEnd: "-2", alignSelf: "flex-start", onClick: onClose }))] }));
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { AppShell } from './app-shell';
|
2
|
-
export type { AppShellProps } from './app-shell';
|
1
|
+
export { AppShell } from './app-shell.tsx';
|
2
|
+
export type { AppShellProps } from './app-shell.tsx';
|
@@ -1 +1 @@
|
|
1
|
-
export { AppShell } from
|
1
|
+
export { AppShell } from "./app-shell.js";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const checkboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "
|
1
|
+
export declare const checkboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "root" | "group" | "indicator" | "control", {
|
2
2
|
size: {
|
3
3
|
xs: {
|
4
4
|
root: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { checkboxAnatomy } from '@chakra-ui/react/anatomy';
|
2
2
|
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
3
|
-
import { checkmarkRecipe } from
|
3
|
+
import { checkmarkRecipe } from "../checkmark/checkmark.recipe.js";
|
4
4
|
export const checkboxSlotRecipe = defineSlotRecipe({
|
5
5
|
slots: checkboxAnatomy.keys(),
|
6
6
|
className: 'chakra-checkbox',
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { Clipboard as ChakraClipboard } from '@chakra-ui/react/clipboard';
|
3
|
-
import { type ButtonProps } from '../button';
|
4
|
-
import { type IconButtonProps } from '../icon-button';
|
5
|
-
import { type InputProps } from '../input';
|
3
|
+
import { type ButtonProps } from '../button/index.ts';
|
4
|
+
import { type IconButtonProps } from '../icon-button/index.ts';
|
5
|
+
import { type InputProps } from '../input/index.ts';
|
6
6
|
interface ClipboardButtonProps extends ButtonProps {
|
7
7
|
icon?: React.ReactNode;
|
8
8
|
copiedIcon?: React.ReactNode;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import * as React from 'react';
|
3
3
|
import { Clipboard as ChakraClipboard } from '@chakra-ui/react/clipboard';
|
4
|
-
import { Button } from
|
5
|
-
import { IconButton } from
|
6
|
-
import { CheckIcon, CopyIcon } from
|
7
|
-
import { Input } from
|
4
|
+
import { Button } from "../button/index.js";
|
5
|
+
import { IconButton } from "../icon-button/index.js";
|
6
|
+
import { CheckIcon, CopyIcon } from "../icons/index.js";
|
7
|
+
import { Input } from "../input/index.js";
|
8
8
|
const ClipboardIcon = React.forwardRef(function ClipboardIndicator(props, ref) {
|
9
9
|
const { children = _jsx(CopyIcon, {}), copied = _jsx(CheckIcon, {}), ...rest } = props;
|
10
10
|
return (_jsx(ChakraClipboard.Indicator, { copied: copied, ...rest, ref: ref, children: children }));
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as Clipboard from
|
1
|
+
export * as Clipboard from "./clipboard.js";
|
2
2
|
export { useClipboard } from '@chakra-ui/react/clipboard';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { type IconButtonProps } from '../icon-button';
|
1
|
+
import { type IconButtonProps } from '../icon-button/index.ts';
|
2
2
|
export interface CloseButtonProps extends IconButtonProps {
|
3
3
|
}
|
4
4
|
export declare const CloseButton: import("react").ForwardRefExoticComponent<CloseButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { forwardRef } from 'react';
|
3
|
-
import { IconButton
|
3
|
+
import { IconButton } from "../icon-button/index.js";
|
4
4
|
import { CloseIcon } from "../icons/icons.js";
|
5
5
|
export const CloseButton = forwardRef(function CloseButton(props, ref) {
|
6
|
-
return (_jsx(
|
6
|
+
return (_jsx(IconButton, { variant: "ghost", "aria-label": "Close", ref: ref, ...props, children: props.children ?? _jsx(CloseIcon, {}) }));
|
7
7
|
});
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as FileUpload from './file-upload';
|
1
|
+
export * as FileUpload from './file-upload.tsx';
|
2
2
|
export { useFileUploadContext } from '@chakra-ui/react/file-upload';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as FileUpload from
|
1
|
+
export * as FileUpload from "./file-upload.js";
|
2
2
|
export { useFileUploadContext } from '@chakra-ui/react/file-upload';
|
@@ -1 +1 @@
|
|
1
|
-
export * as HoverCard from './hover-card';
|
1
|
+
export * as HoverCard from './hover-card.tsx';
|
@@ -1 +1 @@
|
|
1
|
-
export * as HoverCard from
|
1
|
+
export * as HoverCard from "./hover-card.js";
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { IconBadge } from './icon-badge';
|
2
|
-
export type { IconBadgeProps } from './icon-badge';
|
1
|
+
export { IconBadge } from './icon-badge.tsx';
|
2
|
+
export type { IconBadgeProps } from './icon-badge.tsx';
|
@@ -1 +1 @@
|
|
1
|
-
export { IconBadge } from
|
1
|
+
export { IconBadge } from "./icon-badge.js";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
|
-
import { createIcon } from
|
2
|
+
import { createIcon } from "./create-icon.js";
|
3
3
|
export const ChevronUpIcon = createIcon({
|
4
4
|
displayName: 'ChevronUpIcon',
|
5
5
|
path: _jsx("polyline", { points: "18 15 12 9 6 15" }),
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { Link } from './link';
|
2
|
-
export type { LinkProps } from './link';
|
1
|
+
export { Link } from './link.tsx';
|
2
|
+
export type { LinkProps } from './link.tsx';
|
@@ -1 +1 @@
|
|
1
|
-
export { Link } from
|
1
|
+
export { Link } from "./link.js";
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { NativeSelect } from './native-select';
|
2
|
-
export type { NativeSelectProps } from './native-select';
|
1
|
+
export { NativeSelect } from './native-select.tsx';
|
2
|
+
export type { NativeSelectProps } from './native-select.tsx';
|
@@ -1 +1 @@
|
|
1
|
-
export { NativeSelect } from
|
1
|
+
export { NativeSelect } from "./native-select.js";
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
3
|
import * as React from 'react';
|
4
4
|
import { NativeSelect as Select } from '@chakra-ui/react/native-select';
|
5
|
-
import { ChevronDownIcon } from
|
5
|
+
import { ChevronDownIcon } from "../icons/icons.js";
|
6
6
|
export const NativeSelect = React.forwardRef(function NativeSelect(props, ref) {
|
7
7
|
const { icon = _jsx(ChevronDownIcon, {}), placeholder, children, ...rest } = props;
|
8
8
|
return (_jsx(Select.Root, { ref: ref, ...rest, children: _jsxs(Select.Field, { placeholder: placeholder, children: [children, _jsx(Select.Indicator, { children: icon })] }) }));
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { PasswordInput } from './password-input';
|
2
|
-
export type { PasswordInputProps } from './password-input';
|
1
|
+
export { PasswordInput } from './password-input.tsx';
|
2
|
+
export type { PasswordInputProps } from './password-input.tsx';
|
@@ -1 +1 @@
|
|
1
|
-
export { PasswordInput } from
|
1
|
+
export { PasswordInput } from "./password-input.js";
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { Radio } from './radio';
|
2
|
-
export type { RadioProps } from './radio';
|
1
|
+
export { Radio } from './radio.tsx';
|
2
|
+
export type { RadioProps } from './radio.tsx';
|
@@ -1 +1 @@
|
|
1
|
-
export { Radio } from
|
1
|
+
export { Radio } from "./radio.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * as Select from './namespace';
|
1
|
+
export * as Select from './namespace.ts';
|
@@ -1 +1 @@
|
|
1
|
-
export * as Select from
|
1
|
+
export * as Select from "./namespace.js";
|
package/dist/provider/index.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export { SuiContext, SuiProvider, useSui } from './sui-provider';
|
2
|
-
export type { SuiContextValue, SuiProviderProps } from './sui-provider';
|
3
|
-
export { useLink } from './use-link';
|
1
|
+
export { SuiContext, SuiProvider, useSui } from './sui-provider.tsx';
|
2
|
+
export type { SuiContextValue, SuiProviderProps } from './sui-provider.tsx';
|
3
|
+
export { useLink } from './use-link.tsx';
|
package/dist/provider/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { SuiContext, SuiProvider, useSui } from
|
2
|
-
export { useLink } from
|
1
|
+
export { SuiContext, SuiProvider, useSui } from "./sui-provider.js";
|
2
|
+
export { useLink } from "./use-link.js";
|
package/dist/theme/index.js
CHANGED
@@ -1,34 +1,34 @@
|
|
1
1
|
import { defineConfig } from '@chakra-ui/react';
|
2
|
-
import { animationStyles } from
|
3
|
-
import { breakpoints } from
|
4
|
-
import { conditions } from
|
5
|
-
import { globalCss } from
|
6
|
-
import { layerStyles } from
|
7
|
-
import { recipes } from
|
8
|
-
import { semanticColors } from
|
9
|
-
import { semanticRadii } from
|
10
|
-
import { semanticShadows } from
|
11
|
-
import { slotRecipes } from
|
12
|
-
import { textStyles } from
|
13
|
-
import { animations } from
|
14
|
-
import { aspectRatios } from
|
15
|
-
import { blurs } from
|
16
|
-
import { borders } from
|
17
|
-
import { colors } from
|
18
|
-
import { cursor } from
|
19
|
-
import { durations } from
|
20
|
-
import { easings } from
|
21
|
-
import { fontSizes } from
|
22
|
-
import { fontWeights } from
|
23
|
-
import { fonts } from
|
24
|
-
import { keyframes } from
|
25
|
-
import { letterSpacings } from
|
26
|
-
import { lineHeights } from
|
27
|
-
import { radii } from
|
28
|
-
import { sizes } from
|
29
|
-
import { spacing } from
|
30
|
-
import { zIndices } from
|
31
|
-
import { utilities } from
|
2
|
+
import { animationStyles } from "./animation-styles.js";
|
3
|
+
import { breakpoints } from "./breakpoints.js";
|
4
|
+
import { conditions } from "./conditions.js";
|
5
|
+
import { globalCss } from "./global-css.js";
|
6
|
+
import { layerStyles } from "./layer-styles.js";
|
7
|
+
import { recipes } from "./recipes.js";
|
8
|
+
import { semanticColors } from "./semantic-tokens/colors.js";
|
9
|
+
import { semanticRadii } from "./semantic-tokens/radii.js";
|
10
|
+
import { semanticShadows } from "./semantic-tokens/shadows.js";
|
11
|
+
import { slotRecipes } from "./slot-recipes.js";
|
12
|
+
import { textStyles } from "./text-styles.js";
|
13
|
+
import { animations } from "./tokens/animations.js";
|
14
|
+
import { aspectRatios } from "./tokens/aspect-ratios.js";
|
15
|
+
import { blurs } from "./tokens/blurs.js";
|
16
|
+
import { borders } from "./tokens/borders.js";
|
17
|
+
import { colors } from "./tokens/colors.js";
|
18
|
+
import { cursor } from "./tokens/cursor.js";
|
19
|
+
import { durations } from "./tokens/durations.js";
|
20
|
+
import { easings } from "./tokens/easings.js";
|
21
|
+
import { fontSizes } from "./tokens/font-sizes.js";
|
22
|
+
import { fontWeights } from "./tokens/font-weights.js";
|
23
|
+
import { fonts } from "./tokens/fonts.js";
|
24
|
+
import { keyframes } from "./tokens/keyframes.js";
|
25
|
+
import { letterSpacings } from "./tokens/letter-spacing.js";
|
26
|
+
import { lineHeights } from "./tokens/line-heights.js";
|
27
|
+
import { radii } from "./tokens/radius.js";
|
28
|
+
import { sizes } from "./tokens/sizes.js";
|
29
|
+
import { spacing } from "./tokens/spacing.js";
|
30
|
+
import { zIndices } from "./tokens/z-indices.js";
|
31
|
+
import { utilities } from "./utilities.js";
|
32
32
|
export const defaultThemeConfig = defineConfig({
|
33
33
|
preflight: true,
|
34
34
|
cssVarsPrefix: 'chakra',
|