@theroutingcompany/components 0.0.8 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theroutingcompany/components",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -26,7 +26,7 @@
26
26
  "clean": "rimraf ./dist ./types",
27
27
  "storybook": "storybook dev -p 6006",
28
28
  "build-storybook": "storybook build",
29
- "lint": "eslint src",
29
+ "lint": "eslint --cache src",
30
30
  "lint:css": "stylelint src/components/**/*.{tsx,ts}",
31
31
  "prepublishOnly": "npm run build",
32
32
  "build:types": "tsc --incremental",
@@ -49,15 +49,18 @@
49
49
  "@radix-ui/react-select": "^1.1.2",
50
50
  "@radix-ui/react-separator": "^1.0.1",
51
51
  "@radix-ui/react-switch": "^1.0.1",
52
+ "@radix-ui/react-tabs": "^1.0.1",
52
53
  "@radix-ui/react-toast": "^1.1.2",
53
54
  "@radix-ui/react-toggle-group": "^1.0.1",
54
55
  "@radix-ui/react-tooltip": "^1.0.2",
55
56
  "@react-aria/breadcrumbs": "^3.4.1",
56
57
  "@react-aria/button": "^3.6.4",
58
+ "@react-aria/dnd": "^3.0.1",
57
59
  "@react-aria/focus": "^3.10.1",
58
60
  "@react-aria/interactions": "^3.13.1",
59
61
  "@react-aria/label": "^3.4.4",
60
62
  "@react-aria/numberfield": "^3.3.4",
63
+ "@react-aria/progress": "^3.3.4",
61
64
  "@react-aria/radio": "^3.4.2",
62
65
  "@react-aria/searchfield": "^3.4.4",
63
66
  "@react-aria/textfield": "^3.8.1",
@@ -66,7 +69,7 @@
66
69
  "@react-stately/radio": "^3.6.2",
67
70
  "@react-stately/searchfield": "^3.3.4",
68
71
  "@tanstack/react-table": "^8.7.6",
69
- "@theroutingcompany/design-tokens": "^0.0.2",
72
+ "@theroutingcompany/design-tokens": "^0.0.3",
70
73
  "styled-components": "^5.3.6"
71
74
  },
72
75
  "peerDependencies": {
@@ -87,9 +90,10 @@
87
90
  "@storybook/addon-interactions": "^7.0.0-beta.2",
88
91
  "@storybook/addon-links": "^7.0.0-beta.2",
89
92
  "@storybook/react": "^7.0.0-beta.2",
90
- "@storybook/react-vite": "^7.0.0-beta.2",
93
+ "@storybook/react-vite": "^7.0.0-alpha.25",
91
94
  "@storybook/testing-library": "^0.0.14-next.0",
92
95
  "@types/eslint": "^8.4.10",
96
+ "@types/mime-types": "^2.1.1",
93
97
  "@types/prettier": "^2.7.2",
94
98
  "@types/react": "^17.0.0 || ^18.0.0",
95
99
  "@types/react-dom": "^17.0.0 || ^18.0.0",
@@ -100,12 +104,13 @@
100
104
  "@vitejs/plugin-react": "^3.0.1",
101
105
  "chromatic": "^6.14.0",
102
106
  "csstype": "^3.1.1",
103
- "eslint": "^8.31.0",
107
+ "eslint": "^8.32.0",
104
108
  "eslint-config-prettier": "^8.6.0",
105
109
  "eslint-plugin-jsx-a11y": "^6.7.0",
106
110
  "eslint-plugin-react": "^7.32.0",
111
+ "eslint-plugin-storybook": "^0.6.10",
107
112
  "postcss-styled-syntax": "^0.3.1",
108
- "prettier": "^2.8.2",
113
+ "prettier": "^2.8.3",
109
114
  "react": "^16.14.0",
110
115
  "react-dom": "^16.14.0",
111
116
  "react-is": "^16.13.1 || ^17.0.0 || ^18.0.0",
@@ -1,4 +1,4 @@
1
- import { type ComponentPropsWithRef, type PropsWithChildren } from 'react';
1
+ import { type PropsWithChildren } from 'react';
2
2
  import { type AriaButtonProps } from '@react-aria/button';
3
3
  import type { RenameMisprefixedProps } from 'helpers';
4
4
  type Variant = 'primary' | 'secondary' | 'danger' | 'inverse';
@@ -20,36 +20,8 @@ export type ButtonBaseProps = {
20
20
  paddingSize: Size;
21
21
  };
22
22
  type ReactAriaProps = RenameMisprefixedProps<AriaButtonProps, 'is', 'isDisabled'>;
23
- export type ButtonProps = PropsWithChildren<ButtonDesignProps> & ComponentPropsWithRef<'button'> & ReactAriaProps;
24
- export declare const Button: import("react").ForwardRefExoticComponent<(Pick<{
25
- emphasis?: "low" | undefined;
26
- variant?: "primary" | "danger" | "inverse" | undefined;
27
- size?: Size | undefined;
28
- } & {
29
- children?: import("react").ReactNode;
30
- } & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
31
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
32
- } & Omit<AriaButtonProps<"button">, "isDisabled"> & {
33
- disabled?: boolean | undefined;
34
- }, "key" | "size" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "target" | "href" | "rel" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "emphasis" | "variant"> | Pick<{
35
- emphasis?: "medium" | undefined;
36
- variant?: "primary" | "danger" | "inverse" | undefined;
37
- size?: Size | undefined;
38
- } & {
39
- children?: import("react").ReactNode;
40
- } & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
41
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
42
- } & Omit<AriaButtonProps<"button">, "isDisabled"> & {
43
- disabled?: boolean | undefined;
44
- }, "key" | "size" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "target" | "href" | "rel" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "emphasis" | "variant"> | Pick<{
45
- emphasis?: "high" | undefined;
46
- variant?: Variant | undefined;
47
- size?: Size | undefined;
48
- } & {
49
- children?: import("react").ReactNode;
50
- } & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
51
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
52
- } & Omit<AriaButtonProps<"button">, "isDisabled"> & {
53
- disabled?: boolean | undefined;
54
- }, "key" | "size" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "target" | "href" | "rel" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "emphasis" | "variant">) & import("react").RefAttributes<HTMLButtonElement>>;
23
+ export type ButtonProps = PropsWithChildren<ButtonDesignProps> & ReactAriaProps & {
24
+ onClick?: ReactAriaProps["onPress"];
25
+ };
26
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
55
27
  export {};
@@ -1,9 +1,22 @@
1
1
  /// <reference types="react" />
2
2
  import type { ComponentPropsWithoutStyles } from 'helpers/typeHelpers';
3
3
  export declare const StyledFieldSet: import("styled-components").StyledComponent<"fieldset", any, {}, never>;
4
- /** Adding disabled to <fieldset> will disable all inputs inside it HTML wise,
4
+ /** Adding disabled to `<fieldset>` will disable all inputs inside it HTML wise,
5
5
  * the problem is that React won't know about that they the input components are disabled (prop-wise)
6
+ *
6
7
  * This 'compound component' makes it known to child input components via React context (for example for react-aria input hooks)
8
+ *
9
+ * ```jsx
10
+ * <fieldset disabled>
11
+ * <Input> // ❌ Not disabled!
12
+ * </fieldset>
13
+ * ```
14
+ *
15
+ * ```jsx
16
+ * <Fieldset disabled>
17
+ * <Input> // ✅ Disabled by Fieldset context
18
+ * </Fieldset>
19
+ * ```
7
20
  */
8
21
  export declare function Fieldset({ children, disabled, ...fieldsetProps }: ComponentPropsWithoutStyles<'fieldset'>): JSX.Element;
9
22
  export declare function useFieldset(): boolean;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ type FileDescription = {
3
+ name: string;
4
+ mime: `${string}/${string}`;
5
+ };
6
+ type DropTargetProps = {
7
+ file: File | null;
8
+ fileTypes: FileDescription[];
9
+ onAddFile: (f: File) => void;
10
+ onDeleteFile: () => void;
11
+ };
12
+ export declare function FileUpload({ file, onAddFile, onDeleteFile, fileTypes, }: DropTargetProps): JSX.Element;
13
+ export {};
File without changes
@@ -1,9 +1,11 @@
1
+ /// <reference types="react" />
1
2
  import { type AriaButtonProps } from '@react-aria/button';
2
- import { type ComponentPropsWithRef } from 'react';
3
3
  type Size = 'small' | 'large';
4
4
  type Variant = 'primary' | 'secondary' | 'danger' | 'inverse';
5
5
  type Shape = 'circle' | 'square';
6
- export type StyledIconButtonProps = ComponentPropsWithRef<'button'> & AriaButtonProps & {
6
+ export type StyledIconButtonProps = AriaButtonProps & {
7
+ onClick?: AriaButtonProps['onPress'] | undefined;
8
+ } & {
7
9
  label: string;
8
10
  size?: Size;
9
11
  variant?: Variant;
@@ -17,5 +19,13 @@ export type StyledIconButtonProps = ComponentPropsWithRef<'button'> & AriaButton
17
19
  * </IconButton>
18
20
  *
19
21
  */
20
- export declare const IconButton: import("react").ForwardRefExoticComponent<Pick<StyledIconButtonProps, "form" | "label" | "slot" | "style" | "title" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "size" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "isDisabled" | "target" | "href" | "rel" | "shape" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "variant"> & import("react").RefAttributes<HTMLButtonElement>>;
22
+ export declare const IconButton: import("react").ForwardRefExoticComponent<AriaButtonProps<"button"> & {
23
+ onClick?: AriaButtonProps['onPress'] | undefined;
24
+ } & {
25
+ label: string;
26
+ size?: Size | undefined;
27
+ variant?: Variant | undefined;
28
+ shape?: Shape | undefined;
29
+ disabled?: boolean | undefined;
30
+ } & import("react").RefAttributes<HTMLButtonElement>>;
21
31
  export {};
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { type AriaTextFieldOptions } from '@react-aria/textfield';
3
- import type { ComponentPropsWithoutStyles, RenameBooleanProps } from 'helpers/typeHelpers';
3
+ import type { RenameBooleanProps } from 'helpers/typeHelpers';
4
4
  import { type InputBaseProps } from '../InputBase';
5
5
  type ReactAriaInputProps = Omit<RenameBooleanProps<AriaTextFieldOptions<'input'>>, 'inputElementType'>;
6
- export type TextInputProps = ReactAriaInputProps & InputBaseProps & ComponentPropsWithoutStyles<'input'>;
6
+ export type TextInputProps = ReactAriaInputProps & InputBaseProps;
7
7
  /**
8
8
  * 1. With custom label element as prop
9
9
  * ```jsx
@@ -23,5 +23,5 @@ export type TextInputProps = ReactAriaInputProps & InputBaseProps & ComponentPro
23
23
  * </label>
24
24
  * ```
25
25
  */
26
- export declare const TextInput: import("react").ForwardRefExoticComponent<ReactAriaInputProps & InputBaseProps & ComponentPropsWithoutStyles<"input"> & import("react").RefAttributes<HTMLInputElement>>;
26
+ export declare const TextInput: import("react").ForwardRefExoticComponent<ReactAriaInputProps & InputBaseProps & import("react").RefAttributes<HTMLInputElement>>;
27
27
  export {};
@@ -1,40 +1,12 @@
1
- import { type ComponentPropsWithRef } from 'react';
2
- type PaginatorButtonProps = ComponentPropsWithRef<'button'> & {
1
+ /// <reference types="react" />
2
+ import { type ButtonProps } from 'components';
3
+ type PaginatorButtonProps = ButtonProps & {
3
4
  label: string;
4
5
  direction: 'left' | 'right';
6
+ title?: string;
5
7
  };
6
- export declare const PaginatorButton: import("react").ForwardRefExoticComponent<Pick<PaginatorButtonProps, "label" | "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "direction"> & import("react").RefAttributes<HTMLButtonElement>>;
7
- export declare const PaginatorNumber: import("react").ForwardRefExoticComponent<(Pick<{
8
- emphasis?: "low" | undefined;
9
- variant?: "primary" | "danger" | "inverse" | undefined;
10
- size?: ("small" | "large") | undefined;
11
- } & {
12
- children?: import("react").ReactNode;
13
- } & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
14
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
15
- } & Omit<import("@react-types/button").AriaButtonProps<"button">, "isDisabled"> & {
16
- disabled?: boolean | undefined;
17
- }, "key" | "size" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "target" | "href" | "rel" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "emphasis" | "variant"> | Pick<{
18
- emphasis?: "medium" | undefined;
19
- variant?: "primary" | "danger" | "inverse" | undefined;
20
- size?: ("small" | "large") | undefined;
21
- } & {
22
- children?: import("react").ReactNode;
23
- } & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
24
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
25
- } & Omit<import("@react-types/button").AriaButtonProps<"button">, "isDisabled"> & {
26
- disabled?: boolean | undefined;
27
- }, "key" | "size" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "target" | "href" | "rel" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "emphasis" | "variant"> | Pick<{
28
- emphasis?: "high" | undefined;
29
- variant?: ("primary" | "secondary" | "danger" | "inverse") | undefined;
30
- size?: ("small" | "large") | undefined;
31
- } & {
32
- children?: import("react").ReactNode;
33
- } & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
34
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
35
- } & Omit<import("@react-types/button").AriaButtonProps<"button">, "isDisabled"> & {
36
- disabled?: boolean | undefined;
37
- }, "key" | "size" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "target" | "href" | "rel" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "emphasis" | "variant">) & import("react").RefAttributes<HTMLButtonElement>>;
8
+ export declare const PaginatorButton: import("react").ForwardRefExoticComponent<PaginatorButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
9
+ export declare const PaginatorNumber: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
38
10
  type PaginationProps = {
39
11
  nrOfPages: number;
40
12
  currentPage: number;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import * as PopoverPrimitive from '@radix-ui/react-popover';
3
- export type { PopoverCloseProps, PopoverContentProps } from '@radix-ui/react-popover';
3
+ export type { PopoverCloseProps, PopoverContentProps, } from '@radix-ui/react-popover';
4
4
  export declare function PopoverContent({ children, ...props }: PopoverPrimitive.PopoverContentProps): JSX.Element;
5
- export declare const PopoverClose: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
5
+ export declare const PopoverClose: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
6
+ export declare const PopoverCloseCross: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
6
7
  export declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
7
8
  export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { type AriaProgressBarProps } from '@react-aria/progress';
3
+ type ProgressBarProps = {
4
+ width?: number | undefined;
5
+ } & AriaProgressBarProps;
6
+ export declare function ProgressBar(props: ProgressBarProps): JSX.Element;
7
+ export {};
@@ -1,7 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare function TableHeader({ children }: {
3
- children: any;
4
- }): JSX.Element;
2
+ export declare const TableHeader: import("styled-components").StyledComponent<"th", any, {}, never>;
5
3
  export declare const TableDataCell: import("styled-components").StyledComponent<"td", any, {}, never>;
6
4
  export declare const Table: import("styled-components").StyledComponent<"table", any, {}, never>;
7
5
  export declare const TableSortButtons: () => JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import * as Tabs from '@radix-ui/react-tabs';
3
+ export type { TabsContentProps, TabsTriggerProps, TabsProps, } from '@radix-ui/react-tabs';
4
+ export declare const TabsRoot: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Tabs.TabsProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
5
+ export declare const TabsList: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Tabs.TabsListProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
6
+ export declare const TabsTrigger: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Tabs.TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
7
+ export declare const TabsContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Tabs.TabsContentProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
@@ -30,6 +30,7 @@ type SentimentTextColorProps = {
30
30
  type TextColorProps = NormalTextColorProps | SentimentTextColorProps;
31
31
  export type TextProps = TextColorProps & Partial<NumberTextProps | CaptionTextProps | BodyTextProps> & {
32
32
  bold?: boolean;
33
+ italic?: boolean;
33
34
  as?: TextElements;
34
35
  };
35
36
  type PolymorphicText = Polymorphic.ForwardRefComponent<TextElements, TextProps>;
@@ -1,9 +1,8 @@
1
1
  import type * as Polymorphic from '@radix-ui/react-polymorphic';
2
- interface TitleProps {
3
- as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'legend';
2
+ export interface TitleProps {
3
+ as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'legend' | 'figcaption';
4
4
  size: 'small' | 'medium' | 'large' | 'xsmall';
5
5
  }
6
- type PolymorphicTitle = Polymorphic.ForwardRefComponent<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', // more? span? div?
6
+ export type PolymorphicTitle = Polymorphic.ForwardRefComponent<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', // more? span? div?
7
7
  TitleProps>;
8
8
  export declare const Title: PolymorphicTitle;
9
- export {};