@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,8 +1,8 @@
|
|
|
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
|
import { AriaTooltipProps } from '@react-types/tooltip';
|
|
5
|
-
import { PlacementAxis } from '
|
|
5
|
+
import { PlacementAxis } from '../../../shared';
|
|
6
6
|
export interface CubeTooltipProps extends BaseProps, ContainerStyleProps, AriaTooltipProps {
|
|
7
7
|
tipStyles?: Styles;
|
|
8
8
|
showIcon?: boolean;
|
|
File without changes
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import React, { HTMLAttributes, RefObject } from 'react';
|
|
2
2
|
import { TooltipTriggerState } from '@react-stately/tooltip';
|
|
3
|
-
import { PlacementAxis } from '
|
|
4
|
-
import { Props } from '../../
|
|
3
|
+
import { PlacementAxis } from '../../../shared';
|
|
4
|
+
import { Props } from '../../types';
|
|
5
5
|
interface TooltipContextProps {
|
|
6
6
|
state?: TooltipTriggerState;
|
|
7
7
|
ref?: RefObject<HTMLDivElement>;
|
|
8
8
|
placement?: PlacementAxis;
|
|
9
9
|
arrowProps?: HTMLAttributes<HTMLElement>;
|
|
10
10
|
overlayProps?: Props;
|
|
11
|
+
minScale?: string | number;
|
|
12
|
+
minOffset?: string | number;
|
|
11
13
|
}
|
|
12
14
|
export declare const TooltipContext: React.Context<TooltipContextProps>;
|
|
13
15
|
export {};
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { Styles } from '
|
|
3
|
-
import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Props } from '../../
|
|
2
|
+
import { Styles } from '../../../styles/types';
|
|
3
|
+
import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Props } from '../../types';
|
|
4
4
|
import { AriaSelectProps } from '@react-types/select';
|
|
5
|
-
import { FormFieldProps } from '
|
|
5
|
+
import { FormFieldProps } from '../../../shared';
|
|
6
6
|
export interface CubeSelectBaseProps<T> extends BasePropsWithoutChildren, OuterStyleProps, FormFieldProps, BlockStyleProps, AriaSelectProps<T> {
|
|
7
7
|
prefix?: ReactNode;
|
|
8
8
|
suffix?: ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AllHTMLAttributes, CSSProperties
|
|
1
|
+
import { AllHTMLAttributes, CSSProperties } from 'react';
|
|
2
2
|
import { Styles } from '../styles/types';
|
|
3
3
|
import { BASE_STYLES, BLOCK_STYLES, COLOR_STYLES, CONTAINER_STYLES, DIMENSION_STYLES, FLOW_STYLES, OUTER_STYLES, POSITION_STYLES, TEXT_STYLES } from '../styles/list';
|
|
4
4
|
export interface BasePropsWithoutChildren extends Pick<AllHTMLAttributes<HTMLElement>, 'className' | 'role' | 'id'> {
|
|
@@ -34,11 +34,10 @@ export interface BasePropsWithoutChildren extends Pick<AllHTMLAttributes<HTMLEle
|
|
|
34
34
|
[key: string]: string | number | null;
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
export interface BaseProps extends BasePropsWithoutChildren {
|
|
38
|
-
children?: ReactElement<any, string | JSXElementConstructor<any>> | string | number | {} | ReactNodeArray | ReactPortal | boolean | null | undefined;
|
|
37
|
+
export interface BaseProps extends BasePropsWithoutChildren, Pick<AllHTMLAttributes<HTMLElementTagNameMap['div']>, 'children'> {
|
|
39
38
|
}
|
|
40
39
|
export interface AllBaseProps<K extends keyof HTMLElementTagNameMap = 'div'> extends BaseProps, Omit<AllHTMLAttributes<HTMLElementTagNameMap[K]>, 'style'> {
|
|
41
|
-
as?:
|
|
40
|
+
as?: string;
|
|
42
41
|
}
|
|
43
42
|
export declare type BaseStyleProps = Pick<Styles, typeof BASE_STYLES[number]>;
|
|
44
43
|
export declare type PositionStyleProps = Pick<Styles, typeof POSITION_STYLES[number]>;
|
|
@@ -17,6 +17,7 @@ declare const PROPS: {
|
|
|
17
17
|
'minor-color': string;
|
|
18
18
|
'success-bg-color': string;
|
|
19
19
|
'note-bg-color': string;
|
|
20
|
+
'note-text-color': string;
|
|
20
21
|
'danger-bg-color': string;
|
|
21
22
|
'danger-bg-hover-color': string;
|
|
22
23
|
'primary-1': string;
|
|
@@ -64,15 +65,76 @@ declare const PROPS: {
|
|
|
64
65
|
'h1-font-size': string;
|
|
65
66
|
'h1-line-height': string;
|
|
66
67
|
'h1-letter-spacing': string;
|
|
68
|
+
'h1-font-weight': string;
|
|
67
69
|
'h2-font-size': string;
|
|
68
70
|
'h2-line-height': string;
|
|
71
|
+
'h2-letter-spacing': string;
|
|
72
|
+
'h2-font-weight': string;
|
|
69
73
|
'h3-font-size': string;
|
|
70
74
|
'h3-line-height': string;
|
|
75
|
+
'h3-letter-spacing': string;
|
|
76
|
+
'h3-font-weight': string;
|
|
71
77
|
'h4-font-size': string;
|
|
72
78
|
'h4-line-height': string;
|
|
79
|
+
'h4-letter-spacing': string;
|
|
80
|
+
'h4-font-weight': string;
|
|
73
81
|
'h5-font-size': string;
|
|
74
82
|
'h5-line-height': string;
|
|
83
|
+
'h5-letter-spacing': string;
|
|
84
|
+
'h5-font-weight': string;
|
|
85
|
+
'h5s-font-size': string;
|
|
86
|
+
'h5s-line-height': string;
|
|
87
|
+
'h5s-letter-spacing': string;
|
|
88
|
+
'h5s-font-weight': string;
|
|
89
|
+
'h5m-font-size': string;
|
|
90
|
+
'h5m-line-height': string;
|
|
91
|
+
'h5m-letter-spacing': string;
|
|
92
|
+
'h5m-font-weight': string;
|
|
75
93
|
'h6-font-size': string;
|
|
76
94
|
'h6-line-height': string;
|
|
95
|
+
't1-font-size': string;
|
|
96
|
+
't1-line-height': string;
|
|
97
|
+
't1-letter-spacing': string;
|
|
98
|
+
't1-font-weight': string;
|
|
99
|
+
't2-font-size': string;
|
|
100
|
+
't2-line-height': string;
|
|
101
|
+
't2-letter-spacing': string;
|
|
102
|
+
't2-font-weight': string;
|
|
103
|
+
't3-font-size': string;
|
|
104
|
+
't3-line-height': string;
|
|
105
|
+
't3-letter-spacing': string;
|
|
106
|
+
't3-font-weight': string;
|
|
107
|
+
't4-font-size': string;
|
|
108
|
+
't4-line-height': string;
|
|
109
|
+
't4-letter-spacing': string;
|
|
110
|
+
't4-font-weight': string;
|
|
111
|
+
't4m-font-size': string;
|
|
112
|
+
't4m-line-height': string;
|
|
113
|
+
't4m-letter-spacing': string;
|
|
114
|
+
't4m-font-weight': string;
|
|
115
|
+
'p1-font-size': string;
|
|
116
|
+
'p1-line-height': string;
|
|
117
|
+
'p1-letter-spacing': string;
|
|
118
|
+
'p1-font-weight': string;
|
|
119
|
+
'p2-font-size': string;
|
|
120
|
+
'p2-line-height': string;
|
|
121
|
+
'p2-letter-spacing': string;
|
|
122
|
+
'p2-font-weight': string;
|
|
123
|
+
'p3-font-size': string;
|
|
124
|
+
'p3-line-height': string;
|
|
125
|
+
'p3-letter-spacing': string;
|
|
126
|
+
'p3-font-weight': string;
|
|
127
|
+
'p4-font-size': string;
|
|
128
|
+
'p4-line-height': string;
|
|
129
|
+
'p4-letter-spacing': string;
|
|
130
|
+
'p4-font-weight': string;
|
|
131
|
+
'tag-font-size': string;
|
|
132
|
+
'tag-line-height': string;
|
|
133
|
+
'tag-letter-spacing': string;
|
|
134
|
+
'tag-font-weight': string;
|
|
135
|
+
'default-font-size': string;
|
|
136
|
+
'default-line-height': string;
|
|
137
|
+
'default-letter-spacing': string;
|
|
138
|
+
'default-font-weight': string;
|
|
77
139
|
};
|
|
78
140
|
export default PROPS;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CubeFormProps, Field, useFormProps } from './
|
|
3
|
-
import { CubeTextProps, Text } from './components/Text';
|
|
4
|
-
import { CubeTitleProps, Title } from './components/Title';
|
|
5
|
-
import { CubeParagraphProps, Paragraph } from './components/Paragraph';
|
|
6
|
-
import { ButtonGroup } from './
|
|
7
|
-
declare const _Button: import("react").ForwardRefExoticComponent<import("./
|
|
8
|
-
Group: import("react").ForwardRefExoticComponent<import("./components/Space").CubeSpaceProps & import("react").RefAttributes<unknown>>;
|
|
2
|
+
import { CubeFormProps, Field, useFormProps } from './components/forms/Form';
|
|
3
|
+
import { CubeTextProps, Text } from './components/content/Text';
|
|
4
|
+
import { CubeTitleProps, Title } from './components/content/Title';
|
|
5
|
+
import { CubeParagraphProps, Paragraph } from './components/content/Paragraph';
|
|
6
|
+
import { ButtonGroup } from './components/actions/ButtonGroup/ButtonGroup';
|
|
7
|
+
declare const _Button: import("react").ForwardRefExoticComponent<import("./components/actions/Button/Button").CubeButtonProps & import("react").RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLElement, HTMLElement>>> & {
|
|
8
|
+
Group: import("react").ForwardRefExoticComponent<import("./components/layout/Space").CubeSpaceProps & import("react").RefAttributes<unknown>>;
|
|
9
9
|
};
|
|
10
10
|
declare const Form: import("react").ForwardRefExoticComponent<CubeFormProps & import("react").RefAttributes<unknown>> & {
|
|
11
|
-
useForm: typeof import("./
|
|
11
|
+
useForm: typeof import("./components/forms/Form").useForm;
|
|
12
12
|
} & {
|
|
13
13
|
Item: typeof Field;
|
|
14
14
|
};
|
|
@@ -16,107 +16,109 @@ export { Item } from '@react-stately/collections';
|
|
|
16
16
|
export { Base } from './components/Base';
|
|
17
17
|
export { Block } from './components/Block';
|
|
18
18
|
export type { CubeBlockProps } from './components/Block';
|
|
19
|
-
export { Action } from './components/Action';
|
|
20
|
-
export type { CubeActionProps } from './components/Action';
|
|
21
|
-
export { Grid } from './components/Grid';
|
|
22
|
-
export type { CubeGridProps } from './components/Grid';
|
|
23
|
-
export { Flex } from './components/Flex';
|
|
24
|
-
export type { CubeFlexProps } from './components/Flex';
|
|
25
|
-
export { Link } from './
|
|
26
|
-
export { Space } from './components/Space';
|
|
27
|
-
export type { CubeSpaceProps } from './components/Space';
|
|
28
|
-
export { Flow } from './components/Flow';
|
|
29
|
-
export type { CubeFlowProps } from './components/Flow';
|
|
19
|
+
export { Action } from './components/actions/Action';
|
|
20
|
+
export type { CubeActionProps } from './components/actions/Action';
|
|
21
|
+
export { Grid } from './components/layout/Grid';
|
|
22
|
+
export type { CubeGridProps } from './components/layout/Grid';
|
|
23
|
+
export { Flex } from './components/layout/Flex';
|
|
24
|
+
export type { CubeFlexProps } from './components/layout/Flex';
|
|
25
|
+
export { Link } from './components/navigation/Link/Link';
|
|
26
|
+
export { Space } from './components/layout/Space';
|
|
27
|
+
export type { CubeSpaceProps } from './components/layout/Space';
|
|
28
|
+
export { Flow } from './components/layout/Flow';
|
|
29
|
+
export type { CubeFlowProps } from './components/layout/Flow';
|
|
30
30
|
export { Root } from './components/Root';
|
|
31
31
|
export type { CubeRootProps } from './components/Root';
|
|
32
|
-
export { PrismCode } from './
|
|
33
|
-
export type { CubePrismCodeProps } from './
|
|
34
|
-
export { Prefix } from './components/Prefix';
|
|
35
|
-
export type { CubePrefixProps } from './components/Prefix';
|
|
36
|
-
export { Suffix } from './components/Suffix';
|
|
37
|
-
export type { CubeSuffixProps } from './components/Suffix';
|
|
38
|
-
export { Divider } from './components/Divider';
|
|
39
|
-
export type { CubeDividerProps } from './components/Divider';
|
|
32
|
+
export { PrismCode } from './components/content/PrismCode/PrismCode';
|
|
33
|
+
export type { CubePrismCodeProps } from './components/content/PrismCode/PrismCode';
|
|
34
|
+
export { Prefix } from './components/layout/Prefix';
|
|
35
|
+
export type { CubePrefixProps } from './components/layout/Prefix';
|
|
36
|
+
export { Suffix } from './components/layout/Suffix';
|
|
37
|
+
export type { CubeSuffixProps } from './components/layout/Suffix';
|
|
38
|
+
export { Divider } from './components/content/Divider';
|
|
39
|
+
export type { CubeDividerProps } from './components/content/Divider';
|
|
40
40
|
export { GridProvider } from './components/GridProvider';
|
|
41
41
|
export type { CubeGridProviderProps } from './components/GridProvider';
|
|
42
|
-
export { Content } from './components/Content';
|
|
43
|
-
export type { CubeContentProps } from './components/Content';
|
|
44
|
-
export { Header } from './components/Header';
|
|
45
|
-
export type { CubeHeaderProps } from './components/Header';
|
|
46
|
-
export { Footer } from './components/Footer';
|
|
47
|
-
export type { CubeFooterProps } from './components/Footer';
|
|
48
|
-
export { FieldWrapper } from './components/FieldWrapper';
|
|
49
|
-
export type { CubeFieldWrapperProps } from './components/FieldWrapper';
|
|
50
|
-
export { LoadingAnimation } from './
|
|
51
|
-
export type { CubeLoadingAnimationProps } from './
|
|
52
|
-
export { Spin } from './
|
|
53
|
-
export type { CubeSpinProps } from './
|
|
54
|
-
export { Base64Upload } from './
|
|
55
|
-
export type { CubeBase64UploadProps } from './
|
|
56
|
-
export { Card } from './
|
|
57
|
-
export type { CubeCardProps } from './
|
|
42
|
+
export { Content } from './components/content/Content';
|
|
43
|
+
export type { CubeContentProps } from './components/content/Content';
|
|
44
|
+
export { Header } from './components/content/Header';
|
|
45
|
+
export type { CubeHeaderProps } from './components/content/Header';
|
|
46
|
+
export { Footer } from './components/content/Footer';
|
|
47
|
+
export type { CubeFooterProps } from './components/content/Footer';
|
|
48
|
+
export { FieldWrapper } from './components/forms/FieldWrapper';
|
|
49
|
+
export type { CubeFieldWrapperProps } from './components/forms/FieldWrapper';
|
|
50
|
+
export { LoadingAnimation } from './components/status/LoadingAnimation/LoadingAnimation';
|
|
51
|
+
export type { CubeLoadingAnimationProps } from './components/status/LoadingAnimation/LoadingAnimation';
|
|
52
|
+
export { Spin } from './components/status/Spin/Spin';
|
|
53
|
+
export type { CubeSpinProps } from './components/status/Spin/Spin';
|
|
54
|
+
export { Base64Upload } from './components/other/Base64Upload/Base64Upload';
|
|
55
|
+
export type { CubeBase64UploadProps } from './components/other/Base64Upload/Base64Upload';
|
|
56
|
+
export { Card } from './components/content/Card/Card';
|
|
57
|
+
export type { CubeCardProps } from './components/content/Card/Card';
|
|
58
58
|
export { _Button as Button, ButtonGroup };
|
|
59
|
-
export type { CubeButtonProps } from './
|
|
60
|
-
export { Placeholder } from './
|
|
61
|
-
export type { CubePlaceholderProps } from './
|
|
62
|
-
export { Skeleton } from './
|
|
63
|
-
export type { CubeSkeletonProps } from './
|
|
64
|
-
export { CloudLogo } from './
|
|
65
|
-
export { Badge } from './
|
|
66
|
-
export type { CubeBadgeProps } from './
|
|
67
|
-
export {
|
|
68
|
-
export type {
|
|
69
|
-
export {
|
|
70
|
-
export type {
|
|
71
|
-
export
|
|
72
|
-
export {
|
|
73
|
-
export {
|
|
74
|
-
export
|
|
75
|
-
export {
|
|
76
|
-
export {
|
|
77
|
-
export
|
|
78
|
-
export {
|
|
79
|
-
export type {
|
|
80
|
-
export {
|
|
81
|
-
export type {
|
|
82
|
-
export {
|
|
83
|
-
export type {
|
|
59
|
+
export type { CubeButtonProps } from './components/actions/Button/Button';
|
|
60
|
+
export { Placeholder } from './components/content/Placeholder/Placeholder';
|
|
61
|
+
export type { CubePlaceholderProps } from './components/content/Placeholder/Placeholder';
|
|
62
|
+
export { Skeleton } from './components/content/Skeleton/Skeleton';
|
|
63
|
+
export type { CubeSkeletonProps } from './components/content/Skeleton/Skeleton';
|
|
64
|
+
export { CloudLogo } from './components/other/CloudLogo/CloudLogo';
|
|
65
|
+
export { Badge } from './components/content/Badge/Badge';
|
|
66
|
+
export type { CubeBadgeProps } from './components/content/Badge/Badge';
|
|
67
|
+
export { Tag } from './components/content/Tag/Tag';
|
|
68
|
+
export type { CubeTagProps } from './components/content/Tag/Tag';
|
|
69
|
+
export { SearchInput } from './components/forms/SearchInput/SearchInput';
|
|
70
|
+
export type { CubeSearchInputProps } from './components/forms/SearchInput/SearchInput';
|
|
71
|
+
export { Submit } from './components/actions/Button/Submit';
|
|
72
|
+
export type { CubeTextInputBaseProps } from './components/forms/TextInput/TextInputBase';
|
|
73
|
+
export type { CubeTextInputBaseProps as CubeTextInputProps } from './components/forms/TextInput/TextInputBase';
|
|
74
|
+
export { TextInput } from './components/forms/TextInput/TextInput';
|
|
75
|
+
export { TextArea } from './components/forms/TextArea/TextArea';
|
|
76
|
+
export type { CubeTextAreaProps } from './components/forms/TextArea/TextArea';
|
|
77
|
+
export { PasswordInput } from './components/forms/PasswordInput/PasswordInput';
|
|
78
|
+
export { Checkbox } from './components/forms/Checkbox/Checkbox';
|
|
79
|
+
export type { CubeCheckboxProps } from './components/forms/Checkbox/Checkbox';
|
|
80
|
+
export { CheckboxGroup } from './components/forms/Checkbox/CheckboxGroup';
|
|
81
|
+
export type { CubeCheckboxGroupProps } from './components/forms/Checkbox/CheckboxGroup';
|
|
82
|
+
export { Switch } from './components/forms/Switch/Switch';
|
|
83
|
+
export type { CubeSwitchProps } from './components/forms/Switch/Switch';
|
|
84
|
+
export { Radio } from './components/forms/RadioGroup/Radio';
|
|
85
|
+
export type { CubeRadioProps } from './components/forms/RadioGroup/Radio';
|
|
84
86
|
export { Form, Field, useFormProps };
|
|
85
87
|
export type { CubeFormProps };
|
|
86
|
-
export { ComboBox } from './
|
|
87
|
-
export type { CubeComboBoxProps } from './
|
|
88
|
-
export { Select, ListBoxPopup } from './
|
|
89
|
-
export type { CubeSelectProps, CubeSelectBaseProps, } from './
|
|
90
|
-
export { NumberInput } from './
|
|
91
|
-
export type { CubeNumberInputProps } from './
|
|
92
|
-
export { Avatar } from './
|
|
93
|
-
export type { CubeAvatarProps } from './
|
|
94
|
-
export { Dialog, DialogTrigger, DialogContainer } from './
|
|
95
|
-
export type { CubeDialogTriggerProps, CubeDialogContainerProps, CubeDialogProps, } from './
|
|
96
|
-
export { Tooltip } from './
|
|
97
|
-
export type { CubeTooltipProps } from './
|
|
98
|
-
export { TooltipTrigger } from './
|
|
99
|
-
export type { CubeTooltipTriggerProps } from './
|
|
100
|
-
export { TopBar } from './
|
|
101
|
-
export type { CubeTopbarProps } from './
|
|
102
|
-
export { Alert } from './
|
|
103
|
-
export type { CubeAlertProps } from './
|
|
104
|
-
export { DirectoryTree } from './
|
|
105
|
-
export type { CubeDirectoryTreeProps } from './
|
|
106
|
-
export { Tabs } from './
|
|
107
|
-
export type { CubeTabsProps } from './
|
|
108
|
-
export { FileTabs } from './
|
|
109
|
-
export type { CubeFileTabProps } from './
|
|
110
|
-
export { Modal } from './
|
|
111
|
-
export type { CubeModalProps } from './
|
|
112
|
-
export { CopySnippet } from './
|
|
113
|
-
export type { CubeCopySnippetProps } from './
|
|
114
|
-
export { StatsCard } from './
|
|
115
|
-
export type { CubeStatsCard } from './
|
|
116
|
-
export { AlertDialog } from './
|
|
117
|
-
export type { CubeAlertDialogProps } from './
|
|
118
|
-
export { SearchResults } from './
|
|
119
|
-
export type { CubeSearchResultsProps } from './
|
|
88
|
+
export { ComboBox } from './components/pickers/ComboBox/ComboBox';
|
|
89
|
+
export type { CubeComboBoxProps } from './components/pickers/ComboBox/ComboBox';
|
|
90
|
+
export { Select, ListBoxPopup } from './components/pickers/Select/Select';
|
|
91
|
+
export type { CubeSelectProps, CubeSelectBaseProps, } from './components/pickers/Select/Select';
|
|
92
|
+
export { NumberInput } from './components/forms/NumberInput/NumberInput';
|
|
93
|
+
export type { CubeNumberInputProps } from './components/forms/NumberInput/NumberInput';
|
|
94
|
+
export { Avatar } from './components/content/Avatar/Avatar';
|
|
95
|
+
export type { CubeAvatarProps } from './components/content/Avatar/Avatar';
|
|
96
|
+
export { Dialog, DialogTrigger, DialogContainer, } from './components/overlays/Dialog';
|
|
97
|
+
export type { CubeDialogTriggerProps, CubeDialogContainerProps, CubeDialogProps, } from './components/overlays/Dialog';
|
|
98
|
+
export { Tooltip } from './components/overlays/Tooltip/Tooltip';
|
|
99
|
+
export type { CubeTooltipProps } from './components/overlays/Tooltip/Tooltip';
|
|
100
|
+
export { TooltipTrigger } from './components/overlays/Tooltip/TooltipTrigger';
|
|
101
|
+
export type { CubeTooltipTriggerProps } from './components/overlays/Tooltip/TooltipTrigger';
|
|
102
|
+
export { TopBar } from './components/organisms/TopBar/TopBar';
|
|
103
|
+
export type { CubeTopbarProps } from './components/organisms/TopBar/TopBar';
|
|
104
|
+
export { Alert } from './components/organisms/Alert/Alert';
|
|
105
|
+
export type { CubeAlertProps } from './components/organisms/Alert/Alert';
|
|
106
|
+
export { DirectoryTree } from './components/organisms/DirectoryTree/DirectoryTree';
|
|
107
|
+
export type { CubeDirectoryTreeProps } from './components/organisms/DirectoryTree/DirectoryTree';
|
|
108
|
+
export { Tabs } from './components/navigation/Tabs/Tabs';
|
|
109
|
+
export type { CubeTabsProps } from './components/navigation/Tabs/Tabs';
|
|
110
|
+
export { FileTabs } from './components/organisms/FileTabs/FileTabs';
|
|
111
|
+
export type { CubeFileTabProps } from './components/organisms/FileTabs/FileTabs';
|
|
112
|
+
export { Modal } from './components/organisms/Modal/Modal';
|
|
113
|
+
export type { CubeModalProps } from './components/organisms/Modal/Modal';
|
|
114
|
+
export { CopySnippet } from './components/organisms/CopySnippet/CopySnippet';
|
|
115
|
+
export type { CubeCopySnippetProps } from './components/organisms/CopySnippet/CopySnippet';
|
|
116
|
+
export { StatsCard } from './components/organisms/StatsCard/StatsCard';
|
|
117
|
+
export type { CubeStatsCard } from './components/organisms/StatsCard/StatsCard';
|
|
118
|
+
export { AlertDialog } from './components/overlays/AlertDialog/AlertDialog';
|
|
119
|
+
export type { CubeAlertDialogProps } from './components/overlays/AlertDialog/AlertDialog';
|
|
120
|
+
export { SearchResults } from './components/organisms/SearchResults/SearchResults';
|
|
121
|
+
export type { CubeSearchResultsProps } from './components/organisms/SearchResults/SearchResults';
|
|
120
122
|
export { notification } from './services/notification';
|
|
121
123
|
export type { CubeNotificationOptions } from './services/notification';
|
|
122
124
|
export * from './providers/Responsive';
|
|
@@ -139,15 +141,15 @@ export type { CubeTextProps, CubeTitleProps, CubeParagraphProps };
|
|
|
139
141
|
export { useContextStyles, StyleProvider } from './providers/Styles';
|
|
140
142
|
export { Provider } from './provider';
|
|
141
143
|
export type { useProviderProps } from './provider';
|
|
142
|
-
declare const Input: import("react").ForwardRefExoticComponent<import("./
|
|
143
|
-
Text: import("react").ForwardRefExoticComponent<import("./
|
|
144
|
-
Password: import("react").ForwardRefExoticComponent<import("./
|
|
144
|
+
declare const Input: import("react").ForwardRefExoticComponent<import("./components/forms/TextInput/TextInputBase").CubeTextInputBaseProps & import("react").RefAttributes<unknown>> & {
|
|
145
|
+
Text: import("react").ForwardRefExoticComponent<import("./components/forms/TextInput/TextInputBase").CubeTextInputBaseProps & import("react").RefAttributes<unknown>>;
|
|
146
|
+
Password: import("react").ForwardRefExoticComponent<import("./components/forms/TextInput/TextInputBase").CubeTextInputBaseProps & import("react").RefAttributes<unknown>> & {
|
|
145
147
|
cubeInputType: string;
|
|
146
148
|
};
|
|
147
149
|
Number: import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<unknown>> & {
|
|
148
150
|
cubeInputType: string;
|
|
149
151
|
};
|
|
150
|
-
TextArea: import("react").ForwardRefExoticComponent<import("./
|
|
152
|
+
TextArea: import("react").ForwardRefExoticComponent<import("./components/forms/TextArea/TextArea").CubeTextAreaProps & import("react").RefAttributes<unknown>> & {
|
|
151
153
|
cubeInputType: string;
|
|
152
154
|
};
|
|
153
155
|
};
|