@cube-dev/ui-kit 0.1.3 → 0.2.1
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/README.md +3 -1
- package/dist/cjs/components/{Action.d.ts → actions/Action.d.ts} +2 -2
- package/dist/{mjs/atoms → cjs/components/actions}/Button/Button.d.ts +1 -1
- package/dist/cjs/{atoms → components/actions}/Button/Submit.d.ts +0 -0
- package/dist/{mjs/atoms → cjs/components/actions}/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/cjs/{atoms → components/content}/Avatar/Avatar.d.ts +2 -2
- package/dist/cjs/{atoms → components/content}/Badge/Badge.d.ts +2 -2
- package/dist/cjs/{atoms → components/content}/Card/Card.d.ts +1 -1
- package/dist/{mjs/components → cjs/components/content}/Content.d.ts +1 -1
- package/dist/{mjs/components → cjs/components/content}/Divider.d.ts +1 -1
- package/dist/cjs/components/{Footer.d.ts → content/Footer.d.ts} +1 -1
- package/dist/cjs/components/{Header.d.ts → content/Header.d.ts} +1 -1
- package/dist/cjs/components/{Paragraph.d.ts → content/Paragraph.d.ts} +1 -1
- package/dist/cjs/{atoms → components/content}/Placeholder/Placeholder.d.ts +2 -2
- package/dist/{mjs/atoms → cjs/components/content}/PrismCode/PrismCode.d.ts +1 -1
- package/dist/cjs/{atoms → components/content}/Skeleton/Skeleton.d.ts +2 -2
- package/dist/cjs/components/content/Tag/Tag.d.ts +10 -0
- package/dist/{mjs/components → cjs/components/content}/Text.d.ts +3 -3
- package/dist/{mjs/components → cjs/components/content}/Title.d.ts +2 -5
- package/dist/cjs/{atoms → components/forms}/Checkbox/Checkbox.d.ts +2 -2
- package/dist/{mjs/atoms → cjs/components/forms}/Checkbox/CheckboxGroup.d.ts +2 -2
- package/dist/cjs/{atoms → components/forms}/Checkbox/context.d.ts +0 -0
- package/dist/cjs/components/{FieldWrapper.d.ts → forms/FieldWrapper.d.ts} +2 -2
- package/dist/cjs/{atoms → components/forms}/Form/Field.d.ts +1 -1
- package/dist/{mjs/atoms → cjs/components/forms}/Form/Form.d.ts +2 -2
- package/dist/cjs/{atoms → components/forms}/Form/index.d.ts +0 -0
- package/dist/cjs/{atoms → components/forms}/Form/useForm.d.ts +0 -0
- package/dist/cjs/{atoms → components/forms}/Form/validation.d.ts +0 -0
- package/dist/cjs/components/{Label.d.ts → forms/Label.d.ts} +3 -3
- package/dist/cjs/{atoms → components/forms}/NumberInput/NumberInput.d.ts +0 -0
- package/dist/cjs/{atoms → components/forms}/NumberInput/StepButton.d.ts +0 -0
- package/dist/cjs/{atoms → components/forms}/PasswordInput/PasswordInput.d.ts +0 -0
- package/dist/cjs/{atoms → components/forms}/RadioGroup/Radio.d.ts +3 -3
- package/dist/cjs/{atoms → components/forms}/RadioGroup/RadioGroup.d.ts +0 -0
- package/dist/cjs/{atoms → components/forms}/RadioGroup/context.d.ts +0 -0
- package/dist/cjs/{atoms → components/forms}/SearchInput/SearchInput.d.ts +0 -0
- package/dist/{mjs/atoms → cjs/components/forms}/Switch/Switch.d.ts +3 -3
- package/dist/cjs/{atoms → components/forms}/TextArea/TextArea.d.ts +0 -0
- package/dist/cjs/{atoms → components/forms}/TextInput/TextInput.d.ts +0 -0
- package/dist/{mjs/atoms → cjs/components/forms}/TextInput/TextInputBase.d.ts +3 -3
- package/dist/cjs/components/{Flex.d.ts → layout/Flex.d.ts} +1 -1
- package/dist/{mjs/components → cjs/components/layout}/Flow.d.ts +1 -1
- package/dist/cjs/components/{Grid.d.ts → layout/Grid.d.ts} +1 -1
- package/dist/{mjs/components → cjs/components/layout}/Prefix.d.ts +1 -1
- package/dist/cjs/components/{Space.d.ts → layout/Space.d.ts} +1 -1
- package/dist/cjs/components/{Suffix.d.ts → layout/Suffix.d.ts} +1 -1
- package/dist/cjs/{atoms → components/navigation}/Link/Link.d.ts +1 -1
- package/dist/{mjs/molecules → cjs/components/navigation}/Tabs/Tabs.d.ts +3 -3
- package/dist/{mjs/molecules → cjs/components/organisms}/Alert/Alert.d.ts +2 -2
- package/dist/cjs/{molecules → components/organisms}/CopySnippet/CopySnippet.d.ts +3 -3
- package/dist/cjs/{molecules → components/organisms}/DirectoryTree/DirectoryTree.d.ts +1 -1
- package/dist/cjs/{molecules → components/organisms}/FileTabs/FileTabs.d.ts +3 -3
- package/dist/{mjs/molecules → cjs/components/organisms}/Modal/Modal.d.ts +1 -1
- package/dist/cjs/{molecules → components/organisms}/SearchResults/SearchResults.d.ts +1 -1
- package/dist/cjs/{molecules → components/organisms}/StatsCard/StatsCard.d.ts +1 -1
- package/dist/{mjs/molecules → cjs/components/organisms}/TopBar/TopBar.d.ts +1 -1
- package/dist/{mjs/atoms → cjs/components/other}/Base64Upload/Base64Upload.d.ts +1 -1
- package/dist/cjs/{atoms → components/other}/CloudLogo/CloudLogo.d.ts +1 -1
- package/dist/cjs/{molecules → components/overlays}/AlertDialog/AlertDialog.d.ts +2 -2
- package/dist/{mjs/atoms → cjs/components/overlays}/Dialog/Dialog.d.ts +1 -1
- package/dist/cjs/{atoms → components/overlays}/Dialog/DialogContainer.d.ts +0 -0
- package/dist/{mjs/atoms → cjs/components/overlays}/Dialog/DialogTrigger.d.ts +1 -1
- package/dist/{mjs/atoms → cjs/components/overlays}/Dialog/api.d.ts +1 -1
- package/dist/cjs/{atoms → components/overlays}/Dialog/context.d.ts +0 -0
- package/dist/cjs/{atoms → components/overlays}/Dialog/index.d.ts +0 -0
- package/dist/cjs/{atoms → components/overlays}/Modal/Modal.d.ts +2 -2
- package/dist/cjs/{atoms → components/overlays}/Modal/OpenTransition.d.ts +0 -0
- package/dist/cjs/{atoms → components/overlays}/Modal/Overlay.d.ts +0 -0
- package/dist/{mjs/atoms → cjs/components/overlays}/Modal/Popover.d.ts +2 -2
- package/dist/cjs/{atoms → components/overlays}/Modal/Tray.d.ts +2 -2
- package/dist/cjs/{atoms → components/overlays}/Modal/Underlay.d.ts +0 -0
- package/dist/cjs/{atoms → components/overlays}/Modal/index.d.ts +0 -0
- package/dist/cjs/{molecules → components/overlays}/Notification/Notification.d.ts +1 -1
- package/dist/cjs/components/overlays/OverlayWrapper.d.ts +11 -0
- package/dist/{mjs/atoms → cjs/components/overlays}/Tooltip/Tooltip.d.ts +3 -3
- package/dist/cjs/{atoms → components/overlays}/Tooltip/TooltipTrigger.d.ts +0 -0
- package/dist/{mjs/atoms → cjs/components/overlays}/Tooltip/context.d.ts +4 -2
- package/dist/cjs/{atoms → components/pickers}/ComboBox/ComboBox.d.ts +0 -0
- package/dist/{mjs/atoms → cjs/components/pickers}/Select/Select.d.ts +3 -3
- package/dist/cjs/{atoms → components/status}/LoadingAnimation/LoadingAnimation.d.ts +1 -1
- package/dist/{mjs/atoms → cjs/components/status}/Spin/Spin.d.ts +1 -1
- package/dist/cjs/components/types.d.ts +3 -4
- package/dist/cjs/css-properties.d.ts +62 -0
- package/dist/cjs/data/themes.d.ts +1 -1
- package/dist/cjs/index.d.ts +108 -106
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/notification.d.ts +1 -1
- package/dist/cjs/styles/color.d.ts +1 -3
- package/dist/cjs/styles/list.d.ts +4 -4
- package/dist/cjs/styles/preset.d.ts +11 -0
- package/dist/cjs/styles/size.d.ts +3 -0
- package/dist/cjs/styles/types.d.ts +4 -0
- package/dist/cjs/utils/react/Slots.d.ts +1 -2
- package/dist/cjs/utils/react/mapProps.d.ts +1 -1
- package/dist/cjs/utils/transitions.d.ts +7 -5
- package/dist/mjs/components/{Action.d.ts → actions/Action.d.ts} +2 -2
- package/dist/{cjs/atoms → mjs/components/actions}/Button/Button.d.ts +1 -1
- package/dist/mjs/{atoms → components/actions}/Button/Submit.d.ts +0 -0
- package/dist/{cjs/atoms → mjs/components/actions}/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/mjs/{atoms → components/content}/Avatar/Avatar.d.ts +2 -2
- package/dist/mjs/{atoms → components/content}/Badge/Badge.d.ts +2 -2
- package/dist/mjs/{atoms → components/content}/Card/Card.d.ts +1 -1
- package/dist/{cjs/components → mjs/components/content}/Content.d.ts +1 -1
- package/dist/{cjs/components → mjs/components/content}/Divider.d.ts +1 -1
- package/dist/mjs/components/{Footer.d.ts → content/Footer.d.ts} +1 -1
- package/dist/mjs/components/{Header.d.ts → content/Header.d.ts} +1 -1
- package/dist/mjs/components/{Paragraph.d.ts → content/Paragraph.d.ts} +1 -1
- package/dist/mjs/{atoms → components/content}/Placeholder/Placeholder.d.ts +2 -2
- package/dist/{cjs/atoms → mjs/components/content}/PrismCode/PrismCode.d.ts +1 -1
- package/dist/mjs/{atoms → components/content}/Skeleton/Skeleton.d.ts +2 -2
- package/dist/mjs/components/content/Tag/Tag.d.ts +10 -0
- package/dist/{cjs/components → mjs/components/content}/Text.d.ts +3 -3
- package/dist/{cjs/components → mjs/components/content}/Title.d.ts +2 -5
- package/dist/mjs/{atoms → components/forms}/Checkbox/Checkbox.d.ts +2 -2
- package/dist/{cjs/atoms → mjs/components/forms}/Checkbox/CheckboxGroup.d.ts +2 -2
- package/dist/mjs/{atoms → components/forms}/Checkbox/context.d.ts +0 -0
- package/dist/mjs/components/{FieldWrapper.d.ts → forms/FieldWrapper.d.ts} +2 -2
- package/dist/mjs/{atoms → components/forms}/Form/Field.d.ts +1 -1
- package/dist/{cjs/atoms → mjs/components/forms}/Form/Form.d.ts +2 -2
- package/dist/mjs/{atoms → components/forms}/Form/index.d.ts +0 -0
- package/dist/mjs/{atoms → components/forms}/Form/useForm.d.ts +0 -0
- package/dist/mjs/{atoms → components/forms}/Form/validation.d.ts +0 -0
- package/dist/mjs/components/{Label.d.ts → forms/Label.d.ts} +3 -3
- package/dist/mjs/{atoms → components/forms}/NumberInput/NumberInput.d.ts +0 -0
- package/dist/mjs/{atoms → components/forms}/NumberInput/StepButton.d.ts +0 -0
- package/dist/mjs/{atoms → components/forms}/PasswordInput/PasswordInput.d.ts +0 -0
- package/dist/mjs/{atoms → components/forms}/RadioGroup/Radio.d.ts +3 -3
- package/dist/mjs/{atoms → components/forms}/RadioGroup/RadioGroup.d.ts +0 -0
- package/dist/mjs/{atoms → components/forms}/RadioGroup/context.d.ts +0 -0
- package/dist/mjs/{atoms → components/forms}/SearchInput/SearchInput.d.ts +0 -0
- package/dist/{cjs/atoms → mjs/components/forms}/Switch/Switch.d.ts +3 -3
- package/dist/mjs/{atoms → components/forms}/TextArea/TextArea.d.ts +0 -0
- package/dist/mjs/{atoms → components/forms}/TextInput/TextInput.d.ts +0 -0
- package/dist/{cjs/atoms → mjs/components/forms}/TextInput/TextInputBase.d.ts +3 -3
- package/dist/mjs/components/{Flex.d.ts → layout/Flex.d.ts} +1 -1
- package/dist/{cjs/components → mjs/components/layout}/Flow.d.ts +1 -1
- package/dist/mjs/components/{Grid.d.ts → layout/Grid.d.ts} +1 -1
- package/dist/{cjs/components → mjs/components/layout}/Prefix.d.ts +1 -1
- package/dist/mjs/components/{Space.d.ts → layout/Space.d.ts} +1 -1
- package/dist/mjs/components/{Suffix.d.ts → layout/Suffix.d.ts} +1 -1
- package/dist/mjs/{atoms → components/navigation}/Link/Link.d.ts +1 -1
- package/dist/{cjs/molecules → mjs/components/navigation}/Tabs/Tabs.d.ts +3 -3
- package/dist/{cjs/molecules → mjs/components/organisms}/Alert/Alert.d.ts +2 -2
- package/dist/mjs/{molecules → components/organisms}/CopySnippet/CopySnippet.d.ts +3 -3
- package/dist/mjs/{molecules → components/organisms}/DirectoryTree/DirectoryTree.d.ts +1 -1
- package/dist/mjs/{molecules → components/organisms}/FileTabs/FileTabs.d.ts +3 -3
- package/dist/{cjs/molecules → mjs/components/organisms}/Modal/Modal.d.ts +1 -1
- package/dist/mjs/{molecules → components/organisms}/SearchResults/SearchResults.d.ts +1 -1
- package/dist/mjs/{molecules → components/organisms}/StatsCard/StatsCard.d.ts +1 -1
- package/dist/{cjs/molecules → mjs/components/organisms}/TopBar/TopBar.d.ts +1 -1
- package/dist/{cjs/atoms → mjs/components/other}/Base64Upload/Base64Upload.d.ts +1 -1
- package/dist/mjs/{atoms → components/other}/CloudLogo/CloudLogo.d.ts +1 -1
- package/dist/mjs/{molecules → components/overlays}/AlertDialog/AlertDialog.d.ts +2 -2
- package/dist/{cjs/atoms → mjs/components/overlays}/Dialog/Dialog.d.ts +1 -1
- package/dist/mjs/{atoms → components/overlays}/Dialog/DialogContainer.d.ts +0 -0
- package/dist/{cjs/atoms → mjs/components/overlays}/Dialog/DialogTrigger.d.ts +1 -1
- package/dist/{cjs/atoms → mjs/components/overlays}/Dialog/api.d.ts +1 -1
- package/dist/mjs/{atoms → components/overlays}/Dialog/context.d.ts +0 -0
- package/dist/mjs/{atoms → components/overlays}/Dialog/index.d.ts +0 -0
- package/dist/mjs/{atoms → components/overlays}/Modal/Modal.d.ts +2 -2
- package/dist/mjs/{atoms → components/overlays}/Modal/OpenTransition.d.ts +0 -0
- package/dist/mjs/{atoms → components/overlays}/Modal/Overlay.d.ts +0 -0
- package/dist/{cjs/atoms → mjs/components/overlays}/Modal/Popover.d.ts +2 -2
- package/dist/mjs/{atoms → components/overlays}/Modal/Tray.d.ts +2 -2
- package/dist/mjs/{atoms → components/overlays}/Modal/Underlay.d.ts +0 -0
- package/dist/mjs/{atoms → components/overlays}/Modal/index.d.ts +0 -0
- package/dist/mjs/{molecules → components/overlays}/Notification/Notification.d.ts +1 -1
- package/dist/mjs/components/overlays/OverlayWrapper.d.ts +11 -0
- package/dist/{cjs/atoms → mjs/components/overlays}/Tooltip/Tooltip.d.ts +3 -3
- package/dist/mjs/{atoms → components/overlays}/Tooltip/TooltipTrigger.d.ts +0 -0
- package/dist/{cjs/atoms → mjs/components/overlays}/Tooltip/context.d.ts +4 -2
- package/dist/mjs/{atoms → components/pickers}/ComboBox/ComboBox.d.ts +0 -0
- package/dist/{cjs/atoms → mjs/components/pickers}/Select/Select.d.ts +3 -3
- package/dist/mjs/{atoms → components/status}/LoadingAnimation/LoadingAnimation.d.ts +1 -1
- package/dist/{cjs/atoms → mjs/components/status}/Spin/Spin.d.ts +1 -1
- package/dist/mjs/components/types.d.ts +3 -4
- package/dist/mjs/css-properties.d.ts +62 -0
- package/dist/mjs/data/themes.d.ts +1 -1
- package/dist/mjs/index.d.ts +108 -106
- package/dist/mjs/index.js +7 -7
- package/dist/mjs/index.js.map +1 -1
- package/dist/mjs/services/notification.d.ts +1 -1
- package/dist/mjs/styles/color.d.ts +1 -3
- package/dist/mjs/styles/list.d.ts +4 -4
- package/dist/mjs/styles/preset.d.ts +11 -0
- package/dist/mjs/styles/size.d.ts +3 -0
- package/dist/mjs/styles/types.d.ts +4 -0
- package/dist/mjs/utils/react/Slots.d.ts +1 -2
- package/dist/mjs/utils/react/mapProps.d.ts +1 -1
- package/dist/mjs/utils/transitions.d.ts +7 -5
- package/package.json +1 -1
- package/dist/cjs/components/OverlayWrapper.d.ts +0 -8
- package/dist/mjs/components/OverlayWrapper.d.ts +0 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const BASE_STYLES: readonly ["display", "size", "font"];
|
|
1
|
+
export declare const BASE_STYLES: readonly ["display", "size", "font", "preset"];
|
|
2
2
|
export declare const POSITION_STYLES: readonly ["gridArea", "flexGrow", "flexShrink", "order", "gridColumn", "gridRow", "placeSelf", "zIndex", "margin"];
|
|
3
|
-
export declare const BLOCK_STYLES: readonly ["reset", "padding", "shadow", "border", "radius", "opacity", "overflow", "styledScrollbar", "hide", "outline"];
|
|
3
|
+
export declare const BLOCK_STYLES: readonly ["reset", "padding", "shadow", "border", "radius", "opacity", "overflow", "styledScrollbar", "hide", "outline", "textAlign"];
|
|
4
4
|
export declare const COLOR_STYLES: readonly ["color", "fill"];
|
|
5
|
-
export declare const TEXT_STYLES: readonly ["
|
|
5
|
+
export declare const TEXT_STYLES: readonly ["textTransform", "fontWeight", "fontStyle"];
|
|
6
6
|
export declare const DIMENSION_STYLES: readonly ["width", "height", "flexBasis"];
|
|
7
7
|
export declare const FLOW_STYLES: readonly ["flow", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "gap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
|
|
8
|
-
export declare const CONTAINER_STYLES: readonly ["display", "size", "font", "color", "fill", "width", "height", "flexBasis", "gridArea", "flexGrow", "flexShrink", "order", "gridColumn", "gridRow", "placeSelf", "zIndex", "margin", "reset", "padding", "shadow", "border", "radius", "opacity", "overflow", "styledScrollbar", "hide", "outline", "flow", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "gap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
|
|
8
|
+
export declare const CONTAINER_STYLES: readonly ["display", "size", "font", "preset", "color", "fill", "width", "height", "flexBasis", "gridArea", "flexGrow", "flexShrink", "order", "gridColumn", "gridRow", "placeSelf", "zIndex", "margin", "reset", "padding", "shadow", "border", "radius", "opacity", "overflow", "styledScrollbar", "hide", "outline", "textAlign", "flow", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "gap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
|
|
9
9
|
export declare const OUTER_STYLES: readonly ["gridArea", "flexGrow", "flexShrink", "order", "gridColumn", "gridRow", "placeSelf", "zIndex", "margin", "width", "height", "flexBasis"];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function presetStyle({ preset, fontSize, lineHeight, textTransform, letterSpacing, fontWeight }: {
|
|
2
|
+
preset: any;
|
|
3
|
+
fontSize: any;
|
|
4
|
+
lineHeight: any;
|
|
5
|
+
textTransform: any;
|
|
6
|
+
letterSpacing: any;
|
|
7
|
+
fontWeight: any;
|
|
8
|
+
}): "" | Record<string, any>;
|
|
9
|
+
export declare namespace presetStyle {
|
|
10
|
+
var __lookupStyles: string[];
|
|
11
|
+
}
|
|
@@ -92,6 +92,10 @@ export interface StylesInterface extends Omit<CSSProperties, 'color' | 'fill' |
|
|
|
92
92
|
* Syntax: <value> 'inset'?
|
|
93
93
|
*/
|
|
94
94
|
outline?: CSSProperties['fontFamily'] | boolean;
|
|
95
|
+
/**
|
|
96
|
+
* The preset style sets the base text settings according to the names preset. Affected styles: `font-size`, `line-height`, `letter-spacing`, `font-weight` and `text-transform`.
|
|
97
|
+
*/
|
|
98
|
+
preset?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h5s' | 'h5m' | 'h6' | 't1' | 't2' | 't3' | 't4' | 't4m' | 'p1' | 'p2' | 'p3' | 'p4' | 'tag' | 'default' | string;
|
|
95
99
|
}
|
|
96
100
|
export declare type Styles = {
|
|
97
101
|
[key in keyof StylesInterface]?: ResponsiveStyleValue<StylesInterface[key]>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
export declare function useSlotProps(props: Props, defaultSlot: any): Props;
|
|
2
|
+
export declare function useSlotProps(props: Record<string, any>, defaultSlot: any): Record<string, any>;
|
|
4
3
|
export declare function SlotProvider(props: any): JSX.Element;
|
|
5
4
|
export declare function ClearSlots(props: any): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CubeButtonProps } from '../../
|
|
1
|
+
import { CubeButtonProps } from '../../components/actions/Button/Button';
|
|
2
2
|
import { AriaButtonProps } from '@react-types/button';
|
|
3
3
|
/** Converts AriaButtonProps to CubeButtonProps */
|
|
4
4
|
export declare function ariaToCubeButtonProps(props: AriaButtonProps<'button'>): CubeButtonProps;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
minScale?: string |
|
|
5
|
-
|
|
1
|
+
export interface OverlayTransitionCSSProps {
|
|
2
|
+
suffix?: string;
|
|
3
|
+
placement?: string;
|
|
4
|
+
minScale?: string | number;
|
|
5
|
+
minOffset?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const getOverlayTransitionCSS: ({ suffix, placement, minScale, minOffset, }?: OverlayTransitionCSSProps) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
|
2
|
-
import { BaseProps, ContainerStyleProps, TagNameProps, TextStyleProps } from '
|
|
2
|
+
import { BaseProps, BaseStyleProps, ContainerStyleProps, TagNameProps, TextStyleProps } from '../types';
|
|
3
3
|
import { AriaButtonProps } from '@react-types/button';
|
|
4
|
-
export interface CubeActionProps extends BaseProps, TagNameProps, ContainerStyleProps, TextStyleProps, Omit<AriaButtonProps, 'type'> {
|
|
4
|
+
export interface CubeActionProps extends BaseProps, TagNameProps, BaseStyleProps, ContainerStyleProps, TextStyleProps, Omit<AriaButtonProps, 'type'> {
|
|
5
5
|
to?: string;
|
|
6
6
|
label?: string;
|
|
7
7
|
skipWarnings?: boolean;
|
|
File without changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CubeSpaceProps } from '../../
|
|
2
|
+
import { CubeSpaceProps } from '../../layout/Space';
|
|
3
3
|
export declare const ButtonGroup: import("react").ForwardRefExoticComponent<CubeSpaceProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps, ContainerStyleProps } from '../../
|
|
3
|
-
import { Styles } from '
|
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../../types';
|
|
3
|
+
import { Styles } from '../../../styles/types';
|
|
4
4
|
export interface CubeAvatarProps extends BaseProps, ContainerStyleProps {
|
|
5
5
|
icon?: JSX.Element;
|
|
6
6
|
size?: Styles['size'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import THEMES from '
|
|
3
|
-
import { BaseProps, ContainerStyleProps } from '../../
|
|
2
|
+
import THEMES from '../../../data/themes';
|
|
3
|
+
import { BaseProps, ContainerStyleProps } from '../../types';
|
|
4
4
|
export interface CubeBadgeProps extends BaseProps, ContainerStyleProps {
|
|
5
5
|
type?: keyof typeof THEMES;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps, ContainerStyleProps } from '../../
|
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../../types';
|
|
3
3
|
export interface CubeCardProps extends BaseProps, ContainerStyleProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const Card: import("react").ForwardRefExoticComponent<CubeCardProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps, ContainerStyleProps, TextStyleProps } from '
|
|
2
|
+
import { BaseProps, ContainerStyleProps, TextStyleProps } from '../types';
|
|
3
3
|
export interface CubeContentProps extends BaseProps, ContainerStyleProps, TextStyleProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const Content: import("react").ForwardRefExoticComponent<CubeContentProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps, OuterStyleProps } from '
|
|
2
|
+
import { BaseProps, OuterStyleProps } from '../types';
|
|
3
3
|
export interface CubeDividerProps extends BaseProps, OuterStyleProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const Divider: import("react").ForwardRefExoticComponent<CubeDividerProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps, ContainerStyleProps, TextStyleProps } from '
|
|
2
|
+
import { BaseProps, ContainerStyleProps, TextStyleProps } from '../types';
|
|
3
3
|
export interface CubeFooterProps extends BaseProps, ContainerStyleProps, TextStyleProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const Footer: import("react").ForwardRefExoticComponent<CubeFooterProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps, ContainerStyleProps, TextStyleProps } from '
|
|
2
|
+
import { BaseProps, ContainerStyleProps, TextStyleProps } from '../types';
|
|
3
3
|
export interface CubeHeaderProps extends BaseProps, ContainerStyleProps, TextStyleProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const Header: import("react").ForwardRefExoticComponent<CubeHeaderProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CubeTextProps } from './Text';
|
|
3
|
-
import { ContainerStyleProps } from '
|
|
3
|
+
import { ContainerStyleProps } from '../types';
|
|
4
4
|
export interface CubeParagraphProps extends CubeTextProps, ContainerStyleProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const Paragraph: import("react").ForwardRefExoticComponent<CubeParagraphProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Styles } from '
|
|
3
|
-
import { BaseProps, ContainerStyleProps } from '../../
|
|
2
|
+
import { Styles } from '../../../styles/types';
|
|
3
|
+
import { BaseProps, ContainerStyleProps } from '../../types';
|
|
4
4
|
export interface CubePlaceholderProps extends BaseProps, ContainerStyleProps {
|
|
5
5
|
size?: Styles['size'];
|
|
6
6
|
circle?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CubePlaceholderProps } from '../Placeholder/Placeholder';
|
|
3
|
-
import { CubeGridProps } from '../../
|
|
4
|
-
import { BaseProps, ContainerStyleProps } from '../../
|
|
3
|
+
import { CubeGridProps } from '../../layout/Grid';
|
|
4
|
+
import { BaseProps, ContainerStyleProps } from '../../types';
|
|
5
5
|
declare const LAYOUT_MAP: {
|
|
6
6
|
readonly page: ({ lines, children, ...props }: {
|
|
7
7
|
[x: string]: any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import THEMES from '../../../data/themes';
|
|
3
|
+
import { BaseProps, ContainerStyleProps } from '../../types';
|
|
4
|
+
export interface CubeTagProps extends BaseProps, ContainerStyleProps {
|
|
5
|
+
type?: keyof typeof THEMES;
|
|
6
|
+
isClosable?: boolean;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const _Tag: import("react").ForwardRefExoticComponent<CubeTagProps & import("react").RefAttributes<unknown>>;
|
|
10
|
+
export { _Tag as Tag };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { ResponsiveStyleValue } from '
|
|
3
|
-
import { BaseProps, BaseStyleProps, ColorStyleProps, TagNameProps, TextStyleProps } from '
|
|
2
|
+
import { ResponsiveStyleValue } from '../../utils/styles';
|
|
3
|
+
import { BaseProps, BaseStyleProps, ColorStyleProps, TagNameProps, TextStyleProps } from '../types';
|
|
4
4
|
export interface CubeTextProps extends BaseProps, TagNameProps, TextStyleProps, BaseStyleProps, ColorStyleProps {
|
|
5
5
|
/**
|
|
6
6
|
* Whether the text uses the monospace font.
|
|
@@ -18,7 +18,7 @@ export interface CubeTextProps extends BaseProps, TagNameProps, TextStyleProps,
|
|
|
18
18
|
* Whether the text has italic style
|
|
19
19
|
*/
|
|
20
20
|
italic?: ResponsiveStyleValue<CSSProperties['fontStyle']>;
|
|
21
|
-
weight?:
|
|
21
|
+
weight?: string | number;
|
|
22
22
|
align?: ResponsiveStyleValue<CSSProperties['textAlign']>;
|
|
23
23
|
transform?: ResponsiveStyleValue<CSSProperties['textTransform']>;
|
|
24
24
|
}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CubeTextProps } from './Text';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export interface CubeTitleProps extends CubeTextProps, TagNameProps, BlockStyleProps, PositionStyleProps {
|
|
3
|
+
import { BaseProps, BlockStyleProps, PositionStyleProps, TagNameProps } from '../types';
|
|
4
|
+
export interface CubeTitleProps extends BaseProps, CubeTextProps, TagNameProps, BlockStyleProps, PositionStyleProps {
|
|
6
5
|
/** The level of the heading **/
|
|
7
6
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
8
|
-
/** The size style for the heading **/
|
|
9
|
-
size?: ResponsiveStyleValue<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | string>;
|
|
10
7
|
}
|
|
11
8
|
declare const Title: import("react").ForwardRefExoticComponent<CubeTitleProps & import("react").RefAttributes<unknown>> & {
|
|
12
9
|
Danger: import("react").ForwardRefExoticComponent<CubeTitleProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AriaCheckboxProps } from '@react-types/checkbox';
|
|
3
|
-
import { BaseProps } from '../../
|
|
4
|
-
import { FormFieldProps } from '
|
|
3
|
+
import { BaseProps } from '../../types';
|
|
4
|
+
import { FormFieldProps } from '../../../shared';
|
|
5
5
|
export interface CubeCheckboxProps extends BaseProps, AriaCheckboxProps, FormFieldProps {
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps } from '../../
|
|
2
|
+
import { BaseProps } from '../../types';
|
|
3
3
|
import { AriaCheckboxGroupProps } from '@react-types/checkbox';
|
|
4
|
-
import { FormFieldProps } from '
|
|
4
|
+
import { FormFieldProps } from '../../../shared';
|
|
5
5
|
export interface CubeCheckboxGroupProps extends BaseProps, AriaCheckboxGroupProps, FormFieldProps {
|
|
6
6
|
orientation?: 'vertical' | 'horizontal';
|
|
7
7
|
}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LabelPosition, NecessityIndicator, ValidationState } from '
|
|
3
|
-
import { Styles } from '
|
|
2
|
+
import { LabelPosition, NecessityIndicator, ValidationState } from '../../shared';
|
|
3
|
+
import { Styles } from '../../styles/types';
|
|
4
4
|
export declare type CubeFieldWrapperProps = {
|
|
5
5
|
as: string;
|
|
6
6
|
labelPosition: LabelPosition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { FieldBaseProps, ValidationRule } from '
|
|
2
|
+
import { FieldBaseProps, ValidationRule } from '../../../shared';
|
|
3
3
|
import { FormStore } from './useForm';
|
|
4
4
|
export interface CubeFieldProps extends FieldBaseProps {
|
|
5
5
|
/** The type of the input. `Input`, `Checkbox`, RadioGroup`, `Select`, `ComboBox` etc... */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormHTMLAttributes } from 'react';
|
|
2
2
|
import { FormStore, useForm, CubeFormData } from './useForm';
|
|
3
|
-
import { BaseProps, ContainerStyleProps } from '../../
|
|
4
|
-
import { FormBaseProps } from '
|
|
3
|
+
import { BaseProps, ContainerStyleProps } from '../../types';
|
|
4
|
+
import { FormBaseProps } from '../../../shared';
|
|
5
5
|
export declare const FormContext: import("react").Context<{}>;
|
|
6
6
|
export declare function useFormProps(props: any): any;
|
|
7
7
|
export interface CubeFormProps extends FormBaseProps, BaseProps, ContainerStyleProps, Pick<FormHTMLAttributes<HTMLFormElement>, 'action' | 'autoComplete' | 'encType' | 'method' | 'target'> {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
|
2
|
-
import { BaseProps, ContainerStyleProps, TagNameProps } from '
|
|
3
|
-
import { LabelPosition, NecessityIndicator, ValidationState } from '
|
|
4
|
-
import { Styles } from '
|
|
2
|
+
import { BaseProps, ContainerStyleProps, TagNameProps } from '../types';
|
|
3
|
+
import { LabelPosition, NecessityIndicator, ValidationState } from '../../shared';
|
|
4
|
+
import { Styles } from '../../styles/types';
|
|
5
5
|
export declare const INLINE_LABEL_STYLES: Styles;
|
|
6
6
|
export declare const LABEL_STYLES: Styles;
|
|
7
7
|
export interface CubeLabelProps extends BaseProps, TagNameProps, ContainerStyleProps {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Styles } from '
|
|
3
|
-
import { BaseProps } from '../../
|
|
2
|
+
import { Styles } from '../../../styles/types';
|
|
3
|
+
import { BaseProps } from '../../types';
|
|
4
4
|
import { AriaRadioProps } from '@react-types/radio';
|
|
5
|
-
import { FormFieldProps } from '
|
|
5
|
+
import { FormFieldProps } from '../../../shared';
|
|
6
6
|
export interface CubeRadioProps extends BaseProps, AriaRadioProps, FormFieldProps {
|
|
7
7
|
inputStyles?: Styles;
|
|
8
8
|
type?: 'button' | 'radio';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Styles } from '
|
|
3
|
-
import { BaseProps, BlockStyleProps, OuterStyleProps } from '../../
|
|
2
|
+
import { Styles } from '../../../styles/types';
|
|
3
|
+
import { BaseProps, BlockStyleProps, OuterStyleProps } from '../../types';
|
|
4
4
|
import { AriaSwitchProps } from '@react-types/switch';
|
|
5
|
-
import { FormFieldProps } from '
|
|
5
|
+
import { FormFieldProps } from '../../../shared';
|
|
6
6
|
export interface CubeSwitchProps extends BaseProps, OuterStyleProps, BlockStyleProps, FormFieldProps, AriaSwitchProps {
|
|
7
7
|
thumbStyles?: Styles;
|
|
8
8
|
inputStyles?: Styles;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { Styles } from '
|
|
3
|
-
import { BaseProps, BlockStyleProps, PositionStyleProps, Props } from '../../
|
|
4
|
-
import { FormFieldProps } from '
|
|
2
|
+
import { Styles } from '../../../styles/types';
|
|
3
|
+
import { BaseProps, BlockStyleProps, PositionStyleProps, Props } from '../../types';
|
|
4
|
+
import { FormFieldProps } from '../../../shared';
|
|
5
5
|
import { AriaTextFieldProps } from '@react-types/textfield';
|
|
6
6
|
export declare const DEFAULT_INPUT_STYLES: Styles;
|
|
7
7
|
export interface CubeTextInputBaseProps extends BaseProps, PositionStyleProps, BlockStyleProps, AriaTextFieldProps, FormFieldProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps, ContainerStyleProps, ShortItemsStyles } from '
|
|
2
|
+
import { BaseProps, ContainerStyleProps, ShortItemsStyles } from '../types';
|
|
3
3
|
export interface CubeFlexProps extends BaseProps, ContainerStyleProps, ShortItemsStyles {
|
|
4
4
|
}
|
|
5
5
|
export declare const Flex: import("react").ForwardRefExoticComponent<CubeFlexProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps, ContainerStyleProps } from '
|
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../types';
|
|
3
3
|
export interface CubeFlowProps extends BaseProps, ContainerStyleProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const Flow: import("react").ForwardRefExoticComponent<CubeFlowProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps, ContainerStyleProps, ShortGridStyles, ShortItemsStyles } from '
|
|
2
|
+
import { BaseProps, ContainerStyleProps, ShortGridStyles, ShortItemsStyles } from '../types';
|
|
3
3
|
export interface CubeGridProps extends BaseProps, ContainerStyleProps, ShortItemsStyles, ShortGridStyles {
|
|
4
4
|
}
|
|
5
5
|
export declare const Grid: import("react").ForwardRefExoticComponent<CubeGridProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { BaseProps, ContainerStyleProps } from '
|
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../types';
|
|
3
3
|
export interface CubePrefixProps extends BaseProps, ContainerStyleProps {
|
|
4
4
|
onWidthChange?: Function;
|
|
5
5
|
outerGap?: CSSProperties['gap'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps, ContainerStyleProps, ShortItemsStyles } from '
|
|
2
|
+
import { BaseProps, ContainerStyleProps, ShortItemsStyles } from '../types';
|
|
3
3
|
export interface CubeSpaceProps extends BaseProps, ContainerStyleProps, ShortItemsStyles {
|
|
4
4
|
direction?: 'vertical' | 'horizontal';
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { BaseProps, ContainerStyleProps } from '
|
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../types';
|
|
3
3
|
export interface CubeSuffixProps extends BaseProps, ContainerStyleProps {
|
|
4
4
|
onWidthChange?: Function;
|
|
5
5
|
outerGap?: CSSProperties['gap'];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CubeActionProps } from '../../
|
|
2
|
+
import { CubeActionProps } from '../../actions/Action';
|
|
3
3
|
export declare const Link: import("react").ForwardRefExoticComponent<CubeActionProps & import("react").RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLLinkElement, HTMLLinkElement>>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { CubeFlexProps } from '../../
|
|
3
|
-
import { CubeButtonProps } from '../../
|
|
4
|
-
import { Styles } from '
|
|
2
|
+
import { CubeFlexProps } from '../../layout/Flex';
|
|
3
|
+
import { CubeButtonProps } from '../../actions/Button/Button';
|
|
4
|
+
import { Styles } from '../../../styles/types';
|
|
5
5
|
export interface CubeTabData {
|
|
6
6
|
id: string | number;
|
|
7
7
|
qa?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import THEMES from '
|
|
3
|
-
import { BaseProps, ContainerStyleProps, TextStyleProps } from '../../
|
|
2
|
+
import THEMES from '../../../data/themes';
|
|
3
|
+
import { BaseProps, ContainerStyleProps, TextStyleProps } from '../../types';
|
|
4
4
|
export interface CubeAlertProps extends BaseProps, ContainerStyleProps, TextStyleProps {
|
|
5
5
|
type?: keyof typeof THEMES;
|
|
6
6
|
label?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CubeCardProps } from '../../
|
|
3
|
-
import { CubePrismCodeProps } from '../../
|
|
4
|
-
import { Styles } from '
|
|
2
|
+
import { CubeCardProps } from '../../content/Card/Card';
|
|
3
|
+
import { CubePrismCodeProps } from '../../content/PrismCode/PrismCode';
|
|
4
|
+
import { Styles } from '../../../styles/types';
|
|
5
5
|
export interface CubeCopySnippetProps extends CubeCardProps {
|
|
6
6
|
padding?: Styles['padding'];
|
|
7
7
|
/** The code snippet */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { CubeActionProps } from '../../
|
|
3
|
-
import { CubeFlexProps } from '../../
|
|
4
|
-
import { Styles } from '
|
|
2
|
+
import { CubeActionProps } from '../../actions/Action';
|
|
3
|
+
import { CubeFlexProps } from '../../layout/Flex';
|
|
4
|
+
import { Styles } from '../../../styles/types';
|
|
5
5
|
export interface FileTabProps extends Omit<CubeActionProps, 'id'> {
|
|
6
6
|
isDirty?: boolean;
|
|
7
7
|
isDisabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps, ContainerStyleProps } from '../../
|
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../../types';
|
|
3
3
|
export interface CubeTopbarProps extends BaseProps, ContainerStyleProps {
|
|
4
4
|
onLogoPress?: () => void;
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CubeButtonProps } from '
|
|
2
|
+
import { CubeButtonProps } from '../../actions/Button/Button';
|
|
3
3
|
declare const _CloudLogo: import("react").ForwardRefExoticComponent<CubeButtonProps & import("react").RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
4
4
|
export { _CloudLogo as CloudLogo };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CubeButtonProps } from '../../
|
|
3
|
-
import { CubeDialogProps } from '
|
|
2
|
+
import { CubeButtonProps } from '../../actions/Button/Button';
|
|
3
|
+
import { CubeDialogProps } from '../Dialog/Dialog';
|
|
4
4
|
export interface CubeAlertDialogProps extends CubeDialogProps {
|
|
5
5
|
/** Whether the dialog is an important prompt */
|
|
6
6
|
danger?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps } from '../../
|
|
2
|
+
import { BaseProps } from '../../types';
|
|
3
3
|
import { AriaDialogProps } from '@react-types/dialog';
|
|
4
4
|
export interface CubeDialogProps extends Omit<BaseProps, 'role'>, AriaDialogProps {
|
|
5
5
|
type?: 'modal' | 'popover' | 'fullscreen' | 'fullscreenTakeover' | 'panel' | 'tray';
|
|
File without changes
|