@koobiq/react-components 0.0.1-beta.29 → 0.0.1-beta.30

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 (44) hide show
  1. package/dist/components/Alert/Alert.js +24 -23
  2. package/dist/components/Alert/types.d.ts +9 -9
  3. package/dist/components/AnimatedIcon/types.d.ts +1 -1
  4. package/dist/components/Backdrop/Backdrop.js +5 -5
  5. package/dist/components/Backdrop/types.d.ts +5 -5
  6. package/dist/components/Badge/Badge.js +19 -17
  7. package/dist/components/Badge/types.d.ts +5 -3
  8. package/dist/components/Button/Button.js +22 -21
  9. package/dist/components/Button/types.d.ts +15 -15
  10. package/dist/components/ButtonToggleGroup/components/ButtonToggle/ButtonToggle.js +1 -1
  11. package/dist/components/ButtonToggleGroup/types.d.ts +3 -3
  12. package/dist/components/Checkbox/Checkbox.js +20 -20
  13. package/dist/components/Checkbox/types.d.ts +34 -41
  14. package/dist/components/Collections/Cell.d.ts +2 -2
  15. package/dist/components/Collections/Column.d.ts +2 -2
  16. package/dist/components/Container/Container.js +5 -5
  17. package/dist/components/Container/types.d.ts +7 -7
  18. package/dist/components/Dialog/types.d.ts +1 -1
  19. package/dist/components/Grid/types.d.ts +2 -2
  20. package/dist/components/IconButton/IconButton.js +19 -18
  21. package/dist/components/IconButton/types.d.ts +12 -12
  22. package/dist/components/Input/types.d.ts +7 -7
  23. package/dist/components/InputNumber/types.d.ts +7 -7
  24. package/dist/components/Link/Link.js +14 -14
  25. package/dist/components/Link/types.d.ts +26 -14
  26. package/dist/components/Menu/types.d.ts +1 -1
  27. package/dist/components/Modal/types.d.ts +2 -2
  28. package/dist/components/Popover/types.d.ts +4 -4
  29. package/dist/components/ProgressBar/types.d.ts +1 -1
  30. package/dist/components/ProgressSpinner/types.d.ts +2 -2
  31. package/dist/components/RadioGroup/components/Radio/types.d.ts +1 -1
  32. package/dist/components/RadioGroup/types.d.ts +2 -2
  33. package/dist/components/Select/types.d.ts +5 -5
  34. package/dist/components/SidePanel/types.d.ts +3 -3
  35. package/dist/components/SkeletonTypography/types.d.ts +1 -1
  36. package/dist/components/Table/types.d.ts +2 -2
  37. package/dist/components/TagGroup/types.d.ts +1 -1
  38. package/dist/components/Textarea/types.d.ts +6 -6
  39. package/dist/components/Toggle/Toggle.js +14 -14
  40. package/dist/components/Toggle/types.d.ts +25 -27
  41. package/dist/components/Tooltip/Tooltip.js +6 -6
  42. package/dist/components/Tooltip/types.d.ts +10 -10
  43. package/dist/components/Typography/types.d.ts +2 -2
  44. package/package.json +5 -5
@@ -9,33 +9,34 @@ import intlMessages from "./intl.json.js";
9
9
  import { AlertIcon } from "./components/AlertIcon/AlertIcon.js";
10
10
  import { IconButton } from "../IconButton/IconButton.js";
11
11
  const Alert = polymorphicForwardRef(
12
- ({
13
- status = "info",
14
- colored = false,
15
- compact = false,
16
- as: Tag = "div",
17
- hideIcon = false,
18
- isColored: isColoredProp = false,
19
- isCompact: isCompactProp = false,
20
- slotProps,
21
- icon,
22
- onClose,
23
- action,
24
- title,
25
- className,
26
- children,
27
- ...other
28
- }, ref) => {
29
- const isColored = isColoredProp || colored;
30
- const isCompact = isCompactProp || compact;
31
- if (process.env.NODE_ENV !== "production" && colored) {
12
+ (props, ref) => {
13
+ const {
14
+ status = "info",
15
+ as: Tag = "div",
16
+ hideIcon = false,
17
+ colored,
18
+ compact,
19
+ isColored: isColoredProp,
20
+ isCompact: isCompactProp,
21
+ slotProps,
22
+ icon,
23
+ onClose,
24
+ action,
25
+ title,
26
+ className,
27
+ children,
28
+ ...other
29
+ } = props;
30
+ const isColored = isColoredProp ?? colored ?? false;
31
+ const isCompact = isCompactProp ?? compact ?? false;
32
+ if (process.env.NODE_ENV !== "production" && "colored" in props) {
32
33
  deprecate(
33
- 'Alert. The "colored" prop is deprecated. Use "isColored" prop to replace it.'
34
+ 'Alert: the "colored" prop is deprecated. Use "isColored" prop to replace it.'
34
35
  );
35
36
  }
36
- if (process.env.NODE_ENV !== "production" && compact) {
37
+ if (process.env.NODE_ENV !== "production" && "compact" in props) {
37
38
  deprecate(
38
- 'Alert. The "compact" prop is deprecated. Use "isCompact" prop to replace it.'
39
+ 'Alert: the "compact" prop is deprecated. Use "isCompact" prop to replace it.'
39
40
  );
40
41
  }
41
42
  const stringFormatter = useLocalizedStringFormatter(intlMessages);
@@ -2,27 +2,27 @@ import type { ComponentPropsWithRef, ReactNode } from 'react';
2
2
  import type { IconButtonProps } from '../IconButton';
3
3
  export declare const alertPropStatus: readonly ["info", "warning", "error", "success"];
4
4
  export type AlertPropStatus = (typeof alertPropStatus)[number];
5
- type AlertBaseDeprecatedProps = {
5
+ type AlertDeprecatedProps = {
6
6
  /**
7
+ * If `true`, compact mode will be enabled in the alert.
8
+ *
7
9
  * @deprecated
8
10
  * The "compact" prop is deprecated. Use "isCompact" prop to replace it.
9
- *
10
- * If `true`, compact mode will be enabled in the alert.
11
- * */
11
+ */
12
12
  compact?: boolean;
13
13
  /**
14
+ * If `true`, background color will be enabled in the alert.
15
+ *
14
16
  * @deprecated
15
17
  * The "colored" prop is deprecated. Use "isColored" prop to replace it.
16
- *
17
- * If `true`, background color will be enabled in the alert.
18
- * */
18
+ */
19
19
  colored?: boolean;
20
20
  };
21
21
  export type AlertBaseProps = {
22
22
  /**
23
23
  * The status of the component.
24
24
  * @default info
25
- * */
25
+ */
26
26
  status?: AlertPropStatus;
27
27
  /**
28
28
  * If `true`, compact mode will be enabled in the alert.
@@ -57,5 +57,5 @@ export type AlertBaseProps = {
57
57
  statusIcon?: ComponentPropsWithRef<'div'>;
58
58
  closeIcon?: IconButtonProps;
59
59
  };
60
- } & AlertBaseDeprecatedProps;
60
+ } & AlertDeprecatedProps;
61
61
  export {};
@@ -7,7 +7,7 @@ export type AnimatedIconBaseProps = {
7
7
  /**
8
8
  * Animation duration in milliseconds.
9
9
  * @default 300
10
- * */
10
+ */
11
11
  transition?: number;
12
12
  /** Index of the active icon. */
13
13
  activeIndex?: number;
@@ -10,19 +10,19 @@ const Backdrop = polymorphicForwardRef(
10
10
  const {
11
11
  as: Tag = "div",
12
12
  duration = 300,
13
- open = false,
14
- isOpen: isOpenProp = false,
13
+ open,
14
+ isOpen: isOpenProp,
15
15
  style: styleProp,
16
16
  zIndex,
17
17
  children,
18
18
  className,
19
19
  ...other
20
20
  } = props;
21
- const isOpen = isOpenProp || open;
21
+ const isOpen = isOpenProp ?? open ?? false;
22
22
  const domRef = useDOMRef(ref);
23
- if (process.env.NODE_ENV !== "production" && open) {
23
+ if (process.env.NODE_ENV !== "production" && "open" in props) {
24
24
  deprecate(
25
- 'Backdrop. The "open" prop is deprecated. Use "isOpen" prop to replace it.'
25
+ 'Backdrop: the "open" prop is deprecated. Use "isOpen" prop to replace it.'
26
26
  );
27
27
  }
28
28
  const style = {
@@ -1,11 +1,11 @@
1
1
  import type { CSSProperties, ReactNode } from 'react';
2
- type BackdropBaseDeprecatedProps = {
2
+ type BackdropDeprecatedProps = {
3
3
  /**
4
+ * If `true`, the component is shown.
5
+ *
4
6
  * @deprecated
5
7
  * The "open" prop is deprecated. Use "isOpen" prop to replace it.
6
- *
7
- * If `true`, the component is shown.
8
- * */
8
+ */
9
9
  open?: boolean;
10
10
  };
11
11
  export type BackdropBaseProps = {
@@ -23,5 +23,5 @@ export type BackdropBaseProps = {
23
23
  zIndex?: CSSProperties['zIndex'];
24
24
  /** Unique identifier for testing purposes. */
25
25
  'data-testid'?: string;
26
- } & BackdropBaseDeprecatedProps;
26
+ } & BackdropDeprecatedProps;
27
27
  export {};
@@ -1,35 +1,37 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { deprecate } from "@koobiq/logger";
3
- import { polymorphicForwardRef, isNotNil, clsx } from "@koobiq/react-core";
3
+ import { polymorphicForwardRef, clsx } from "@koobiq/react-core";
4
4
  import s from "./Badge.module.css.js";
5
5
  const Badge = polymorphicForwardRef(
6
- ({
7
- variant = "fade-contrast",
8
- as: Tag = "span",
9
- size = "normal",
10
- className,
11
- startIcon,
12
- endIcon,
13
- label,
14
- children,
15
- ...other
16
- }, ref) => {
17
- if (process.env.NODE_ENV !== "production" && isNotNil(label)) {
6
+ (props, ref) => {
7
+ const {
8
+ variant = "fade-contrast",
9
+ as: Tag = "span",
10
+ size = "normal",
11
+ className,
12
+ startIcon,
13
+ endIcon,
14
+ label,
15
+ children,
16
+ ...other
17
+ } = props;
18
+ if (process.env.NODE_ENV !== "production" && "label" in props) {
18
19
  deprecate(
19
- 'Badge. The "label" prop is deprecated. Use "children" prop to replace it.'
20
+ 'Badge: the "label" prop is deprecated. Use "children" prop to replace it.'
20
21
  );
21
22
  }
23
+ const content = children ?? label;
22
24
  return /* @__PURE__ */ jsxs(
23
25
  Tag,
24
26
  {
25
- "data-variant": variant,
26
27
  "data-size": size,
28
+ "data-variant": variant,
29
+ className: clsx(s.base, s[size], s[variant], className),
27
30
  ...other,
28
31
  ref,
29
- className: clsx(s.base, s[size], s[variant], className),
30
32
  children: [
31
33
  startIcon,
32
- /* @__PURE__ */ jsx("span", { className: s.label, children: children ?? label }),
34
+ /* @__PURE__ */ jsx("span", { className: s.label, children: content }),
33
35
  endIcon
34
36
  ]
35
37
  }
@@ -3,11 +3,13 @@ export declare const badgePropSize: readonly ["compact", "normal"];
3
3
  export type BadgePropSize = (typeof badgePropSize)[number];
4
4
  export declare const badgePropVariant: readonly ["theme", "fade-theme", "outline-fade-theme", "error", "fade-error", "outline-fade-error", "warning", "fade-warning", "outline-fade-warning", "success", "fade-success", "outline-fade-success", "contrast", "fade-contrast", "outline-fade-contrast"];
5
5
  export type BadgePropVariant = (typeof badgePropVariant)[number];
6
- type BadgeBaseDeprecatedProps = {
6
+ type BadgeDeprecatedProps = {
7
7
  /**
8
+ * The label of the component.
9
+ *
8
10
  * @deprecated
9
11
  * The "label" prop is deprecated. Use "children" prop to replace it.
10
- * The label of the component. */
12
+ */
11
13
  label?: ReactNode;
12
14
  };
13
15
  export type BadgeBaseProps = {
@@ -23,5 +25,5 @@ export type BadgeBaseProps = {
23
25
  endIcon?: ReactNode;
24
26
  /** Additional CSS-classes. */
25
27
  className?: string;
26
- } & BadgeBaseDeprecatedProps;
28
+ } & BadgeDeprecatedProps;
27
29
  export {};
@@ -5,31 +5,32 @@ import { polymorphicForwardRef, clsx } from "@koobiq/react-core";
5
5
  import { Button as Button$1 } from "@koobiq/react-primitives";
6
6
  import s from "./Button.module.css.js";
7
7
  const Button = polymorphicForwardRef(
8
- ({
9
- as: Tag = "button",
10
- variant = "contrast-filled",
11
- isLoading: isLoadingProp = false,
12
- isDisabled: isDisabledProp = false,
13
- onlyIcon = false,
14
- fullWidth = false,
15
- progress = false,
16
- disabled = false,
17
- children,
18
- startIcon,
19
- endIcon,
20
- className,
21
- ...other
22
- }, ref) => {
23
- const isLoading = isLoadingProp || progress;
24
- const isDisabled = isDisabledProp || disabled;
25
- if (process.env.NODE_ENV !== "production" && progress) {
8
+ (props, ref) => {
9
+ const {
10
+ as: Tag = "button",
11
+ variant = "contrast-filled",
12
+ onlyIcon = false,
13
+ fullWidth = false,
14
+ isLoading: isLoadingProp,
15
+ isDisabled: isDisabledProp,
16
+ progress,
17
+ disabled,
18
+ children,
19
+ startIcon,
20
+ endIcon,
21
+ className,
22
+ ...other
23
+ } = props;
24
+ const isLoading = isLoadingProp ?? progress ?? false;
25
+ const isDisabled = isDisabledProp ?? disabled ?? false;
26
+ if (process.env.NODE_ENV !== "production" && "progress" in props) {
26
27
  deprecate(
27
- 'Button. The "progress" prop is deprecated. Use "isLoading" prop to replace it.'
28
+ 'Button: the "progress" prop is deprecated. Use "isLoading" prop to replace it.'
28
29
  );
29
30
  }
30
- if (process.env.NODE_ENV !== "production" && disabled) {
31
+ if (process.env.NODE_ENV !== "production" && "disabled" in props) {
31
32
  deprecate(
32
- 'Button. The "disabled" prop is deprecated. Use "isDisabled" prop to replace it.'
33
+ 'Button: the "disabled" prop is deprecated. Use "isDisabled" prop to replace it.'
33
34
  );
34
35
  }
35
36
  const iconOnly = (!children || onlyIcon) && (startIcon || endIcon);
@@ -3,22 +3,22 @@ import type { ExtendableProps } from '@koobiq/react-core';
3
3
  import type { HoverEvent, UseButtonProps } from '@koobiq/react-primitives';
4
4
  export declare const buttonPropVariant: readonly ["contrast-filled", "contrast-transparent", "fade-contrast-filled", "fade-contrast-outline", "fade-theme-outline", "theme-transparent"];
5
5
  export type ButtonPropVariant = (typeof buttonPropVariant)[number];
6
- type ButtonBaseDeprecatedProps = {
6
+ type ButtonDeprecatedProps = {
7
7
  /**
8
- * @deprecated
9
- * The "progress" prop is deprecated. Use "isLoading" prop to replace it.
10
- *
11
8
  * If `true`, the progress indicator is shown and the button becomes disabled.
12
9
  * @default false
13
- * */
10
+ *
11
+ * @deprecated
12
+ * The "progress" prop is deprecated. Use "isLoading" prop to replace it.
13
+ */
14
14
  progress?: boolean;
15
15
  /**
16
- * @deprecated
17
- * The "disabled" prop is deprecated. Use "isDisabled" prop to replace it.
18
- *
19
16
  * If `true`, the component is disabled.
20
17
  * @default false
21
- * */
18
+ *
19
+ * @deprecated
20
+ * The "disabled" prop is deprecated. Use "isDisabled" prop to replace it.
21
+ */
22
22
  disabled?: boolean;
23
23
  };
24
24
  export type ButtonBaseProps = ExtendableProps<{
@@ -27,29 +27,29 @@ export type ButtonBaseProps = ExtendableProps<{
27
27
  /**
28
28
  * The variant to use.
29
29
  * @default contrast-filled
30
- * */
30
+ */
31
31
  variant?: ButtonPropVariant;
32
32
  /**
33
33
  * If `true`, the progress indicator is shown and the button becomes disabled.
34
34
  * @default false
35
- * */
35
+ */
36
36
  isLoading?: boolean;
37
37
  /**
38
38
  * If `true`, the component is disabled.
39
39
  * @default false
40
- * */
40
+ */
41
41
  isDisabled?: boolean;
42
42
  /**
43
43
  * If `true`, only the icon is shown, and the button has same sides.
44
44
  * @default false
45
- * */
45
+ */
46
46
  onlyIcon?: boolean;
47
47
  /** Additional CSS-classes. */
48
48
  className?: string;
49
49
  /**
50
50
  * If `true`, the button will take up the full width of its container.
51
51
  * @default false
52
- * */
52
+ */
53
53
  fullWidth?: boolean;
54
54
  /** Icon placed before the children. */
55
55
  startIcon?: ReactNode;
@@ -61,5 +61,5 @@ export type ButtonBaseProps = ExtendableProps<{
61
61
  onHoverStart?: (e: HoverEvent) => void;
62
62
  /** Handler that is called when a hover interaction ends. */
63
63
  onHoverEnd?: (e: HoverEvent) => void;
64
- } & ButtonBaseDeprecatedProps, UseButtonProps>;
64
+ } & ButtonDeprecatedProps, UseButtonProps>;
65
65
  export {};
@@ -37,7 +37,7 @@ const ButtonToggle = forwardRef(
37
37
  {
38
38
  delay: 300,
39
39
  anchorRef: domRef,
40
- disabled: !showTooltip,
40
+ isDisabled: !showTooltip,
41
41
  ...slotProps?.tooltip,
42
42
  control: ({ ref: controlRef, ...controlProps }) => {
43
43
  const rootRef = useMultiRef([domRef, controlRef]);
@@ -6,19 +6,19 @@ export type ButtonToggleGroupBaseProps = {
6
6
  /**
7
7
  * Whether all items are disabled.
8
8
  * @default false
9
- * */
9
+ */
10
10
  isDisabled?: boolean;
11
11
  /**
12
12
  * If `true`, the button will take up the full width of its container.
13
13
  * @default false
14
- * */
14
+ */
15
15
  fullWidth?: boolean;
16
16
  /** The contents of the collection. */
17
17
  children?: Array<ReactElement<ButtonToggleProps>>;
18
18
  /**
19
19
  * If `true`, each item's width will be equal.
20
20
  * @default false
21
- * */
21
+ */
22
22
  hasEqualItemSize?: boolean;
23
23
  /** The currently selected key in the collection (controlled). */
24
24
  selectedKey?: ButtonToggleGroupKey;
@@ -2,7 +2,7 @@
2
2
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
3
  import { forwardRef } from "react";
4
4
  import { deprecate } from "@koobiq/logger";
5
- import { isNotNil, mergeProps, clsx } from "@koobiq/react-core";
5
+ import { mergeProps, clsx, isNotNil } from "@koobiq/react-core";
6
6
  import { IconCheckS16, IconMinusS16 } from "@koobiq/react-icons";
7
7
  import { Checkbox as Checkbox$1 } from "@koobiq/react-primitives";
8
8
  import s from "./Checkbox.module.css.js";
@@ -31,13 +31,13 @@ const Checkbox = forwardRef(
31
31
  slotProps,
32
32
  ...other
33
33
  } = props;
34
- const isDisabled = isDisabledProp || disabled;
34
+ const isDisabled = isDisabledProp ?? disabled ?? false;
35
+ const isInvalid = isInvalidProp ?? error ?? false;
35
36
  const isSelected = isSelectedProp ?? checked;
36
- const isInvalid = isInvalidProp || error;
37
37
  const defaultSelected = defaultSelectedProp ?? defaultChecked;
38
- const isReadOnly = isReadOnlyProp || readonly;
39
- const isRequired = isRequiredProp || required;
40
- const isIndeterminate = isIndeterminateProp || indeterminate;
38
+ const isReadOnly = isReadOnlyProp ?? readonly ?? false;
39
+ const isRequired = isRequiredProp ?? required ?? false;
40
+ const isIndeterminate = isIndeterminateProp ?? indeterminate ?? false;
41
41
  const commonProps = {
42
42
  isIndeterminate,
43
43
  isDisabled,
@@ -67,39 +67,39 @@ const Checkbox = forwardRef(
67
67
  ),
68
68
  ...other
69
69
  };
70
- if (process.env.NODE_ENV !== "production" && isNotNil(disabled)) {
70
+ if (process.env.NODE_ENV !== "production" && "disabled" in props) {
71
71
  deprecate(
72
- 'Checkbox. The "disabled" prop is deprecated. Use "isDisabled" prop to replace it.'
72
+ 'Checkbox: the "disabled" prop is deprecated. Use "isDisabled" prop to replace it.'
73
73
  );
74
74
  }
75
- if (process.env.NODE_ENV !== "production" && isNotNil(checked)) {
75
+ if (process.env.NODE_ENV !== "production" && "checked" in props) {
76
76
  deprecate(
77
- 'Checkbox. The "checked" prop is deprecated. Use "isSelected" prop to replace it.'
77
+ 'Checkbox: the "checked" prop is deprecated. Use "isSelected" prop to replace it.'
78
78
  );
79
79
  }
80
- if (process.env.NODE_ENV !== "production" && isNotNil(error)) {
80
+ if (process.env.NODE_ENV !== "production" && "error" in props) {
81
81
  deprecate(
82
- 'Checkbox. The "error" prop is deprecated. Use "isInvalid" prop to replace it.'
82
+ 'Checkbox: the "error" prop is deprecated. Use "isInvalid" prop to replace it.'
83
83
  );
84
84
  }
85
- if (process.env.NODE_ENV !== "production" && isNotNil(defaultChecked)) {
85
+ if (process.env.NODE_ENV !== "production" && "defaultChecked" in props) {
86
86
  deprecate(
87
- 'Checkbox. The "defaultChecked" prop is deprecated. Use "defaultSelected" prop to replace it.'
87
+ 'Checkbox: the "defaultChecked" prop is deprecated. Use "defaultSelected" prop to replace it.'
88
88
  );
89
89
  }
90
- if (process.env.NODE_ENV !== "production" && isNotNil(readonly)) {
90
+ if (process.env.NODE_ENV !== "production" && "readonly" in props) {
91
91
  deprecate(
92
- 'Checkbox. The "readonly" prop is deprecated. Use "isReadOnly" prop to replace it.'
92
+ 'Checkbox: the "readonly" prop is deprecated. Use "isReadOnly" prop to replace it.'
93
93
  );
94
94
  }
95
- if (process.env.NODE_ENV !== "production" && isNotNil(required)) {
95
+ if (process.env.NODE_ENV !== "production" && "required" in props) {
96
96
  deprecate(
97
- 'Checkbox. The "required" prop is deprecated. Use "isRequired" prop to replace it.'
97
+ 'Checkbox: the "required" prop is deprecated. Use "isRequired" prop to replace it.'
98
98
  );
99
99
  }
100
- if (process.env.NODE_ENV !== "production" && isNotNil(indeterminate)) {
100
+ if (process.env.NODE_ENV !== "production" && "indeterminate" in props) {
101
101
  deprecate(
102
- 'Checkbox. The "indeterminate" prop is deprecated. Use "isIndeterminate" prop to replace it.'
102
+ 'Checkbox: the "indeterminate" prop is deprecated. Use "isIndeterminate" prop to replace it.'
103
103
  );
104
104
  }
105
105
  const boxProps = mergeProps({ className: s.checkbox }, slotProps?.box);
@@ -6,60 +6,58 @@ export type CheckboxPropLabelPlacement = (typeof checkboxPropLabelPlacement)[num
6
6
  export type CheckboxPropOnChange = (selected: boolean) => void;
7
7
  type CheckboxDeprecatedProps = {
8
8
  /**
9
- * @deprecated
10
- * The "disabled" prop is deprecated. Use "isDisabled" prop to replace it.
11
- *
12
9
  * If `true`, the component is disabled.
13
10
  * @default false
14
- * */
11
+ *
12
+ * @deprecated
13
+ * The "disabled" prop is deprecated. Use "isDisabled" prop to replace it.
14
+ */
15
15
  disabled?: boolean;
16
16
  /**
17
- * @deprecated
18
- * The "error" prop is deprecated. Use "isInvalid" prop to replace it.
19
- *
20
17
  * If `true`, the component will indicate an error.
21
18
  * @default false
22
- * */
19
+ *
20
+ * @deprecated
21
+ * The "error" prop is deprecated. Use "isInvalid" prop to replace it.
22
+ */
23
23
  error?: boolean;
24
24
  /**
25
+ * If `true`, the component is checked.
26
+ *
25
27
  * @deprecated
26
28
  * The "checked" prop is deprecated. Use "isSelected" prop to replace it.
27
- *
28
- * If `true`, the component is checked.
29
- * @default false
30
- * */
29
+ */
31
30
  checked?: boolean;
32
31
  /**
33
- * @deprecated
34
- * The "readonly" prop is deprecated. Use "isReadonly" prop to replace it.
35
- *
36
32
  * It prevents the user from changing the value of the checkbox.
37
33
  * @default false
34
+ *
35
+ * @deprecated
36
+ * The "readonly" prop is deprecated. Use "isReadonly" prop to replace it.
38
37
  */
39
38
  readonly?: boolean;
40
39
  /**
41
- * @deprecated
42
- * The "required" prop is deprecated. Use "isRequired" prop to replace it.
43
- *
44
40
  * If `true`, the input element is required.
45
41
  * @default false
46
- * */
42
+ *
43
+ * @deprecated
44
+ * The "required" prop is deprecated. Use "isRequired" prop to replace it.
45
+ */
47
46
  required?: boolean;
48
47
  /**
49
- * @deprecated
50
- * The "indeterminate" prop is deprecated. Use "isIndeterminate" prop to replace it.
51
- *
52
48
  * If `true`, the component appears indeterminate.
53
49
  * @default false
54
- * */
50
+ *
51
+ * @deprecated
52
+ * The "indeterminate" prop is deprecated. Use "isIndeterminate" prop to replace it.
53
+ */
55
54
  indeterminate?: boolean;
56
55
  /**
56
+ * The default checked state. Use when the component is not controlled.
57
+ *
57
58
  * @deprecated
58
59
  * The "defaultChecked" prop is deprecated. Use "defaultSelected" prop to replace it.
59
- *
60
- * The default checked state. Use when the component is not controlled.
61
- * @default false
62
- * */
60
+ */
63
61
  defaultChecked?: boolean;
64
62
  };
65
63
  export type CheckboxProps = {
@@ -72,7 +70,7 @@ export type CheckboxProps = {
72
70
  /**
73
71
  * Size.
74
72
  * @default normal
75
- * */
73
+ */
76
74
  size?: CheckboxPropSize;
77
75
  /**
78
76
  * The position of the label.
@@ -82,36 +80,31 @@ export type CheckboxProps = {
82
80
  /**
83
81
  * If `true`, the component will indicate an error.
84
82
  * @default false
85
- * */
83
+ */
86
84
  isInvalid?: boolean;
87
- /**
88
- * If `true`, the component is checked.
89
- * @default false
90
- * */
85
+ /** If `true`, the component is checked. */
91
86
  isSelected?: boolean;
92
- /** It prevents the user from changing the value of the checkbox.
87
+ /**
88
+ * It prevents the user from changing the value of the checkbox.
93
89
  * @default false
94
90
  */
95
91
  isReadOnly?: boolean;
96
92
  /**
97
93
  * If `true`, the component is disabled.
98
94
  * @default false
99
- * */
95
+ */
100
96
  isDisabled?: boolean;
101
97
  /**
102
98
  * If `true`, the input element is required.
103
99
  * @default false
104
- * */
100
+ */
105
101
  isRequired?: boolean;
106
102
  /**
107
103
  * If `true`, the component appears indeterminate.
108
104
  * @default false
109
- * */
105
+ */
110
106
  isIndeterminate?: boolean;
111
- /**
112
- * The default checked state. Use when the component is not controlled.
113
- * @default false
114
- * */
107
+ /** The default checked state. Use when the component is not controlled. */
115
108
  defaultSelected?: boolean;
116
109
  /** Callback fired when the state is changed. */
117
110
  onChange?: CheckboxPropOnChange;
@@ -14,12 +14,12 @@ export type CellProps = AriaCellProps & {
14
14
  /**
15
15
  * Horizontal alignment of the cell content.
16
16
  * @default left
17
- * */
17
+ */
18
18
  align?: CellPropAlign;
19
19
  /**
20
20
  * Vertical alignment of the cell content.
21
21
  * @default middle
22
- * */
22
+ */
23
23
  valign?: CellPropVerticalAlign;
24
24
  };
25
25
  export declare function Cell(_props: CellProps): null;
@@ -14,12 +14,12 @@ export type ColumnProps<T> = Omit<AriaColumnProps<T>, 'allowsResizing' | 'allows
14
14
  /**
15
15
  * Horizontal alignment of the cell content.
16
16
  * @default left
17
- * */
17
+ */
18
18
  align?: ColumnPropAlign;
19
19
  /**
20
20
  * Vertical alignment of the cell content.
21
21
  * @default middle
22
- * */
22
+ */
23
23
  valign?: ColumnPropVerticalAlign;
24
24
  };
25
25
  export declare function Column<T>(_props: ColumnProps<T>): null;