@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.
Files changed (41) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/.tsbuildinfo.json +1 -1
  3. package/dist/components/action-bar/action-bar.js +1 -1
  4. package/dist/components/action-bar/index.d.ts +1 -1
  5. package/dist/components/action-bar/index.js +1 -1
  6. package/dist/components/alert/alert.js +1 -1
  7. package/dist/components/app-shell/index.d.ts +2 -2
  8. package/dist/components/app-shell/index.js +1 -1
  9. package/dist/components/card/index.js +0 -1
  10. package/dist/components/checkbox/checkbox.recipe.d.ts +1 -1
  11. package/dist/components/checkbox/checkbox.recipe.js +1 -1
  12. package/dist/components/clipboard/clipboard.d.ts +3 -3
  13. package/dist/components/clipboard/clipboard.js +4 -4
  14. package/dist/components/clipboard/index.d.ts +1 -1
  15. package/dist/components/clipboard/index.js +1 -1
  16. package/dist/components/close-button/close-button.d.ts +1 -1
  17. package/dist/components/close-button/close-button.js +2 -2
  18. package/dist/components/file-upload/index.d.ts +1 -1
  19. package/dist/components/file-upload/index.js +1 -1
  20. package/dist/components/hover-card/index.d.ts +1 -1
  21. package/dist/components/hover-card/index.js +1 -1
  22. package/dist/components/icon-badge/index.d.ts +2 -2
  23. package/dist/components/icon-badge/index.js +1 -1
  24. package/dist/components/icons/icons.js +1 -1
  25. package/dist/components/link/index.d.ts +2 -2
  26. package/dist/components/link/index.js +1 -1
  27. package/dist/components/native-select/index.d.ts +2 -2
  28. package/dist/components/native-select/index.js +1 -1
  29. package/dist/components/native-select/native-select.js +1 -1
  30. package/dist/components/password-input/index.d.ts +2 -2
  31. package/dist/components/password-input/index.js +1 -1
  32. package/dist/components/radio/index.d.ts +2 -2
  33. package/dist/components/radio/index.js +1 -1
  34. package/dist/components/select/index.d.ts +1 -1
  35. package/dist/components/select/index.js +1 -1
  36. package/dist/provider/index.d.ts +3 -3
  37. package/dist/provider/index.js +2 -2
  38. package/dist/provider/use-link.js +1 -1
  39. package/dist/theme/index.js +30 -30
  40. package/dist/theme/slot-recipes.d.ts +40 -40
  41. 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 '../close-button';
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 './action-bar';
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 '../close-button';
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 './app-shell';
1
+ export { AppShell } from "./app-shell.js";
@@ -1,2 +1 @@
1
- 'use client';
2
1
  export { Card } from '@chakra-ui/react/card';
@@ -1,4 +1,4 @@
1
- export declare const checkboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "control" | "indicator" | "root" | "group", {
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 '../checkmark/checkmark.recipe';
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 '../button';
5
- import { IconButton } from '../icon-button';
6
- import { CheckIcon, CopyIcon } from '../icons';
7
- import { Input } from '../input';
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,3 +1,3 @@
1
- export * as Clipboard from './clipboard';
1
+ export * as Clipboard from './clipboard.tsx';
2
2
  export { useClipboard } from '@chakra-ui/react/clipboard';
3
3
  export type { UseClipboardReturn } from '@chakra-ui/react/clipboard';
@@ -1,2 +1,2 @@
1
- export * as Clipboard from './clipboard';
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 as ChakraIconButton, } from '../icon-button';
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(ChakraIconButton, { variant: "ghost", "aria-label": "Close", ref: ref, ...props, children: props.children ?? _jsx(CloseIcon, {}) }));
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 './file-upload';
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 './hover-card';
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 './icon-badge';
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 './create-icon';
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 './link';
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 './native-select';
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 '../icons';
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 './password-input';
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 './radio';
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 './namespace';
1
+ export * as Select from "./namespace.js";
@@ -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';
@@ -1,2 +1,2 @@
1
- export { SuiContext, SuiProvider, useSui } from './sui-provider';
2
- export { useLink } from './use-link';
1
+ export { SuiContext, SuiProvider, useSui } from "./sui-provider.js";
2
+ export { useLink } from "./use-link.js";
@@ -1,5 +1,5 @@
1
1
  import { chakra } from '@chakra-ui/react';
2
- import { useSui } from './sui-provider';
2
+ import { useSui } from "./sui-provider.js";
3
3
  export function useLink() {
4
4
  const context = useSui();
5
5
  if (context?.linkComponent) {
@@ -1,34 +1,34 @@
1
1
  import { defineConfig } from '@chakra-ui/react';
2
- import { animationStyles } from './animation-styles';
3
- import { breakpoints } from './breakpoints';
4
- import { conditions } from './conditions';
5
- import { globalCss } from './global-css';
6
- import { layerStyles } from './layer-styles';
7
- import { recipes } from './recipes';
8
- import { semanticColors } from './semantic-tokens/colors';
9
- import { semanticRadii } from './semantic-tokens/radii';
10
- import { semanticShadows } from './semantic-tokens/shadows';
11
- import { slotRecipes } from './slot-recipes';
12
- import { textStyles } from './text-styles';
13
- import { animations } from './tokens/animations';
14
- import { aspectRatios } from './tokens/aspect-ratios';
15
- import { blurs } from './tokens/blurs';
16
- import { borders } from './tokens/borders';
17
- import { colors } from './tokens/colors';
18
- import { cursor } from './tokens/cursor';
19
- import { durations } from './tokens/durations';
20
- import { easings } from './tokens/easings';
21
- import { fontSizes } from './tokens/font-sizes';
22
- import { fontWeights } from './tokens/font-weights';
23
- import { fonts } from './tokens/fonts';
24
- import { keyframes } from './tokens/keyframes';
25
- import { letterSpacings } from './tokens/letter-spacing';
26
- import { lineHeights } from './tokens/line-heights';
27
- import { radii } from './tokens/radius';
28
- import { sizes } from './tokens/sizes';
29
- import { spacing } from './tokens/spacing';
30
- import { zIndices } from './tokens/z-indices';
31
- import { utilities } from './utilities';
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',