@qasa/qds-ui 0.1.0
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 +17 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/components/_internal/form-parts.d.ts +13 -0
- package/dist/cjs/types/components/_internal/index.d.ts +1 -0
- package/dist/cjs/types/components/avatar/avatar.d.ts +30 -0
- package/dist/cjs/types/components/avatar/index.d.ts +1 -0
- package/dist/cjs/types/components/button/button-styles.d.ts +755 -0
- package/dist/cjs/types/components/button/button.d.ts +41 -0
- package/dist/cjs/types/components/button/index.d.ts +1 -0
- package/dist/cjs/types/components/divider/divider.d.ts +14 -0
- package/dist/cjs/types/components/divider/index.d.ts +1 -0
- package/dist/cjs/types/components/heading/heading.d.ts +403 -0
- package/dist/cjs/types/components/heading/index.d.ts +1 -0
- package/dist/cjs/types/components/icon/create-icon.d.ts +409 -0
- package/dist/cjs/types/components/icon/icons/arrow-down.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/arrow-left.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/arrow-right.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/arrow-up.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/bell-slash.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/bell.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/calendar.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/check.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/chevron-down.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/chevron-left.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/chevron-right.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/chevron-up.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/ellipsis-vertical.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/ellipsis.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/heart-filled.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/heart.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/image.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/index.d.ts +27 -0
- package/dist/cjs/types/components/icon/icons/location-dot.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/map.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/plus.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/search.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/settings.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/star-filled.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/star.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/trash.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/user.d.ts +2 -0
- package/dist/cjs/types/components/icon/icons/xmark.d.ts +2 -0
- package/dist/cjs/types/components/icon/index.d.ts +2 -0
- package/dist/cjs/types/components/icon-button/icon-button-styles.d.ts +735 -0
- package/dist/cjs/types/components/icon-button/icon-button.d.ts +31 -0
- package/dist/cjs/types/components/icon-button/index.d.ts +1 -0
- package/dist/cjs/types/components/image/image.d.ts +16 -0
- package/dist/cjs/types/components/image/index.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +17 -0
- package/dist/cjs/types/components/label/index.d.ts +1 -0
- package/dist/cjs/types/components/label/label.d.ts +358 -0
- package/dist/cjs/types/components/link/index.d.ts +1 -0
- package/dist/cjs/types/components/link/link.d.ts +15 -0
- package/dist/cjs/types/components/loading-dots/index.d.ts +1 -0
- package/dist/cjs/types/components/loading-dots/loading-dots.d.ts +348 -0
- package/dist/cjs/types/components/paragraph/index.d.ts +1 -0
- package/dist/cjs/types/components/paragraph/paragraph.d.ts +402 -0
- package/dist/cjs/types/components/primitives/index.d.ts +3 -0
- package/dist/cjs/types/components/primitives/input-base/index.d.ts +1 -0
- package/dist/cjs/types/components/primitives/input-base/input-base.d.ts +21 -0
- package/dist/cjs/types/components/primitives/select-base/index.d.ts +1 -0
- package/dist/cjs/types/components/primitives/select-base/select-base.d.ts +30 -0
- package/dist/cjs/types/components/primitives/textarea-base/index.d.ts +1 -0
- package/dist/cjs/types/components/primitives/textarea-base/textarea-base.d.ts +36 -0
- package/dist/cjs/types/components/select/index.d.ts +1 -0
- package/dist/cjs/types/components/select/select-option.d.ts +10 -0
- package/dist/cjs/types/components/select/select.d.ts +25 -0
- package/dist/cjs/types/components/spacer/index.d.ts +1 -0
- package/dist/cjs/types/components/spacer/spacer.d.ts +11 -0
- package/dist/cjs/types/components/stack/index.d.ts +1 -0
- package/dist/cjs/types/components/stack/stack.d.ts +17 -0
- package/dist/cjs/types/components/stack/stack.types.d.ts +4 -0
- package/dist/cjs/types/components/stack/stack.utils.d.ts +6 -0
- package/dist/cjs/types/components/text-field/index.d.ts +1 -0
- package/dist/cjs/types/components/text-field/text-field.d.ts +22 -0
- package/dist/cjs/types/components/textarea/index.d.ts +1 -0
- package/dist/cjs/types/components/textarea/textarea.d.ts +22 -0
- package/dist/cjs/types/hooks/index.d.ts +6 -0
- package/dist/cjs/types/hooks/use-breakpoint-value.d.ts +16 -0
- package/dist/cjs/types/hooks/use-breakpoint.d.ts +17 -0
- package/dist/cjs/types/hooks/use-form-field.d.ts +49 -0
- package/dist/cjs/types/hooks/use-image.d.ts +10 -0
- package/dist/cjs/types/hooks/use-safe-layout-effect.d.ts +9 -0
- package/dist/cjs/types/hooks/use-stable-id.d.ts +4 -0
- package/dist/cjs/types/index.d.ts +6 -0
- package/dist/cjs/types/qds-provider.d.ts +8 -0
- package/dist/cjs/types/styles/common-styles.d.ts +369 -0
- package/dist/cjs/types/styles/css-reset.d.ts +5 -0
- package/dist/cjs/types/styles/css-utils.d.ts +19 -0
- package/dist/cjs/types/styles/global-styles.d.ts +5 -0
- package/dist/cjs/types/styles/index.d.ts +3 -0
- package/dist/cjs/types/theme/foundations/breakpoints.d.ts +8 -0
- package/dist/cjs/types/theme/foundations/colors.d.ts +107 -0
- package/dist/cjs/types/theme/foundations/index.d.ts +335 -0
- package/dist/cjs/types/theme/foundations/radius.d.ts +9 -0
- package/dist/cjs/types/theme/foundations/shadows.d.ts +7 -0
- package/dist/cjs/types/theme/foundations/sizes.d.ts +32 -0
- package/dist/cjs/types/theme/foundations/spacing.d.ts +14 -0
- package/dist/cjs/types/theme/foundations/typography.d.ts +131 -0
- package/dist/cjs/types/theme/foundations/z-index.d.ts +15 -0
- package/dist/cjs/types/theme/index.d.ts +2 -0
- package/dist/cjs/types/theme/theme-tools.d.ts +345 -0
- package/dist/cjs/types/theme/theme.d.ts +331 -0
- package/dist/cjs/types/types.d.ts +5 -0
- package/dist/cjs/types/utils/object.d.ts +1 -0
- package/dist/cjs/types/utils/polymorphic.d.ts +41 -0
- package/dist/cjs/types/utils/test-utils.d.ts +14 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/components/_internal/form-parts.d.ts +13 -0
- package/dist/esm/types/components/_internal/index.d.ts +1 -0
- package/dist/esm/types/components/avatar/avatar.d.ts +30 -0
- package/dist/esm/types/components/avatar/index.d.ts +1 -0
- package/dist/esm/types/components/button/button-styles.d.ts +755 -0
- package/dist/esm/types/components/button/button.d.ts +41 -0
- package/dist/esm/types/components/button/index.d.ts +1 -0
- package/dist/esm/types/components/divider/divider.d.ts +14 -0
- package/dist/esm/types/components/divider/index.d.ts +1 -0
- package/dist/esm/types/components/heading/heading.d.ts +403 -0
- package/dist/esm/types/components/heading/index.d.ts +1 -0
- package/dist/esm/types/components/icon/create-icon.d.ts +409 -0
- package/dist/esm/types/components/icon/icons/arrow-down.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/arrow-left.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/arrow-right.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/arrow-up.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/bell-slash.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/bell.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/calendar.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/check.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/chevron-down.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/chevron-left.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/chevron-right.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/chevron-up.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/ellipsis-vertical.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/ellipsis.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/heart-filled.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/heart.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/image.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/index.d.ts +27 -0
- package/dist/esm/types/components/icon/icons/location-dot.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/map.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/plus.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/search.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/settings.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/star-filled.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/star.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/trash.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/user.d.ts +2 -0
- package/dist/esm/types/components/icon/icons/xmark.d.ts +2 -0
- package/dist/esm/types/components/icon/index.d.ts +2 -0
- package/dist/esm/types/components/icon-button/icon-button-styles.d.ts +735 -0
- package/dist/esm/types/components/icon-button/icon-button.d.ts +31 -0
- package/dist/esm/types/components/icon-button/index.d.ts +1 -0
- package/dist/esm/types/components/image/image.d.ts +16 -0
- package/dist/esm/types/components/image/index.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +17 -0
- package/dist/esm/types/components/label/index.d.ts +1 -0
- package/dist/esm/types/components/label/label.d.ts +358 -0
- package/dist/esm/types/components/link/index.d.ts +1 -0
- package/dist/esm/types/components/link/link.d.ts +15 -0
- package/dist/esm/types/components/loading-dots/index.d.ts +1 -0
- package/dist/esm/types/components/loading-dots/loading-dots.d.ts +348 -0
- package/dist/esm/types/components/paragraph/index.d.ts +1 -0
- package/dist/esm/types/components/paragraph/paragraph.d.ts +402 -0
- package/dist/esm/types/components/primitives/index.d.ts +3 -0
- package/dist/esm/types/components/primitives/input-base/index.d.ts +1 -0
- package/dist/esm/types/components/primitives/input-base/input-base.d.ts +21 -0
- package/dist/esm/types/components/primitives/select-base/index.d.ts +1 -0
- package/dist/esm/types/components/primitives/select-base/select-base.d.ts +30 -0
- package/dist/esm/types/components/primitives/textarea-base/index.d.ts +1 -0
- package/dist/esm/types/components/primitives/textarea-base/textarea-base.d.ts +36 -0
- package/dist/esm/types/components/select/index.d.ts +1 -0
- package/dist/esm/types/components/select/select-option.d.ts +10 -0
- package/dist/esm/types/components/select/select.d.ts +25 -0
- package/dist/esm/types/components/spacer/index.d.ts +1 -0
- package/dist/esm/types/components/spacer/spacer.d.ts +11 -0
- package/dist/esm/types/components/stack/index.d.ts +1 -0
- package/dist/esm/types/components/stack/stack.d.ts +17 -0
- package/dist/esm/types/components/stack/stack.types.d.ts +4 -0
- package/dist/esm/types/components/stack/stack.utils.d.ts +6 -0
- package/dist/esm/types/components/text-field/index.d.ts +1 -0
- package/dist/esm/types/components/text-field/text-field.d.ts +22 -0
- package/dist/esm/types/components/textarea/index.d.ts +1 -0
- package/dist/esm/types/components/textarea/textarea.d.ts +22 -0
- package/dist/esm/types/hooks/index.d.ts +6 -0
- package/dist/esm/types/hooks/use-breakpoint-value.d.ts +16 -0
- package/dist/esm/types/hooks/use-breakpoint.d.ts +17 -0
- package/dist/esm/types/hooks/use-form-field.d.ts +49 -0
- package/dist/esm/types/hooks/use-image.d.ts +10 -0
- package/dist/esm/types/hooks/use-safe-layout-effect.d.ts +9 -0
- package/dist/esm/types/hooks/use-stable-id.d.ts +4 -0
- package/dist/esm/types/index.d.ts +6 -0
- package/dist/esm/types/qds-provider.d.ts +8 -0
- package/dist/esm/types/styles/common-styles.d.ts +369 -0
- package/dist/esm/types/styles/css-reset.d.ts +5 -0
- package/dist/esm/types/styles/css-utils.d.ts +19 -0
- package/dist/esm/types/styles/global-styles.d.ts +5 -0
- package/dist/esm/types/styles/index.d.ts +3 -0
- package/dist/esm/types/theme/foundations/breakpoints.d.ts +8 -0
- package/dist/esm/types/theme/foundations/colors.d.ts +107 -0
- package/dist/esm/types/theme/foundations/index.d.ts +335 -0
- package/dist/esm/types/theme/foundations/radius.d.ts +9 -0
- package/dist/esm/types/theme/foundations/shadows.d.ts +7 -0
- package/dist/esm/types/theme/foundations/sizes.d.ts +32 -0
- package/dist/esm/types/theme/foundations/spacing.d.ts +14 -0
- package/dist/esm/types/theme/foundations/typography.d.ts +131 -0
- package/dist/esm/types/theme/foundations/z-index.d.ts +15 -0
- package/dist/esm/types/theme/index.d.ts +2 -0
- package/dist/esm/types/theme/theme-tools.d.ts +345 -0
- package/dist/esm/types/theme/theme.d.ts +331 -0
- package/dist/esm/types/types.d.ts +5 -0
- package/dist/esm/types/utils/object.d.ts +1 -0
- package/dist/esm/types/utils/polymorphic.d.ts +41 -0
- package/dist/esm/types/utils/test-utils.d.ts +14 -0
- package/dist/index.d.ts +4978 -0
- package/package.json +103 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { VariantProps } from '../../styles';
|
|
2
|
+
import type * as Polymorphic from '../../utils/polymorphic';
|
|
3
|
+
import { getSizeStyles, getVariantStyles } from './button-styles';
|
|
4
|
+
declare type ButtonVariant = VariantProps<typeof getVariantStyles>;
|
|
5
|
+
declare type ButtonSize = VariantProps<typeof getSizeStyles>;
|
|
6
|
+
interface ButtonOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Sets the size of the button
|
|
9
|
+
* @default 'md'
|
|
10
|
+
*/
|
|
11
|
+
size?: ButtonSize;
|
|
12
|
+
/**
|
|
13
|
+
* Sets the style variant of the button
|
|
14
|
+
* @default 'secondary'
|
|
15
|
+
*/
|
|
16
|
+
variant?: ButtonVariant;
|
|
17
|
+
/**
|
|
18
|
+
* If `true` the button will fill its container
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
isFullWidth?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* If `true` the button will show a spinner
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
isLoading?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* If `true` the button will be disabled
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
isDisabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The HTML `type` attribute
|
|
34
|
+
* @default 'button'
|
|
35
|
+
*/
|
|
36
|
+
type?: 'button' | 'submit' | 'reset';
|
|
37
|
+
}
|
|
38
|
+
declare type PolymorphicButton = Polymorphic.ForwardRefComponent<'button', ButtonOptions>;
|
|
39
|
+
export declare type ButtonProps = Polymorphic.PropsOf<PolymorphicButton>;
|
|
40
|
+
export declare const Button: PolymorphicButton;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './button';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { HTMLQdsProps } from '../../types';
|
|
3
|
+
interface DividerOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The orientation of the divider.
|
|
6
|
+
*
|
|
7
|
+
* @default 'horizontal'
|
|
8
|
+
*/
|
|
9
|
+
orientation?: 'horizontal' | 'vertical';
|
|
10
|
+
}
|
|
11
|
+
export interface DividerProps extends HTMLQdsProps<'span'>, DividerOptions {
|
|
12
|
+
}
|
|
13
|
+
export declare const Divider: import("react").ForwardRefExoticComponent<DividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './divider';
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import type { VariantProps } from '../../styles';
|
|
2
|
+
import type * as Polymorphic from '../../utils/polymorphic';
|
|
3
|
+
declare const getSizeStyles: (theme: {
|
|
4
|
+
mediaQueries: {
|
|
5
|
+
readonly smUp: "@media(min-width: 480px)";
|
|
6
|
+
readonly mdUp: "@media(min-width: 768px)";
|
|
7
|
+
readonly lgUp: "@media(min-width: 1024px)";
|
|
8
|
+
readonly xlUp: "@media(min-width: 1280px)";
|
|
9
|
+
readonly '2xlUp': "@media(min-width: 1536px)";
|
|
10
|
+
};
|
|
11
|
+
spacing: {
|
|
12
|
+
'0x': string;
|
|
13
|
+
'1x': string;
|
|
14
|
+
'2x': string;
|
|
15
|
+
'3x': string;
|
|
16
|
+
'4x': string;
|
|
17
|
+
'5x': string;
|
|
18
|
+
'6x': string;
|
|
19
|
+
'8x': string;
|
|
20
|
+
'12x': string;
|
|
21
|
+
'16x': string;
|
|
22
|
+
'20x': string;
|
|
23
|
+
'24x': string;
|
|
24
|
+
};
|
|
25
|
+
breakpoints: {
|
|
26
|
+
readonly base: 0;
|
|
27
|
+
readonly sm: 480;
|
|
28
|
+
readonly md: 768;
|
|
29
|
+
readonly lg: 1024;
|
|
30
|
+
readonly xl: 1280;
|
|
31
|
+
readonly '2xl': 1536;
|
|
32
|
+
};
|
|
33
|
+
zIndices: {
|
|
34
|
+
hide: number;
|
|
35
|
+
auto: string;
|
|
36
|
+
base: number;
|
|
37
|
+
docked: number;
|
|
38
|
+
dropdown: number;
|
|
39
|
+
sticky: number;
|
|
40
|
+
banner: number;
|
|
41
|
+
overlay: number;
|
|
42
|
+
modal: number;
|
|
43
|
+
popover: number;
|
|
44
|
+
skipLink: number;
|
|
45
|
+
toast: number;
|
|
46
|
+
tooltip: number;
|
|
47
|
+
};
|
|
48
|
+
colors: {
|
|
49
|
+
core: {
|
|
50
|
+
black: string;
|
|
51
|
+
white: string;
|
|
52
|
+
gray90: string;
|
|
53
|
+
gray80: string;
|
|
54
|
+
gray70: string;
|
|
55
|
+
gray60: string;
|
|
56
|
+
gray50: string;
|
|
57
|
+
gray40: string;
|
|
58
|
+
gray30: string;
|
|
59
|
+
gray20: string;
|
|
60
|
+
gray10: string;
|
|
61
|
+
brand90: string;
|
|
62
|
+
brand80: string;
|
|
63
|
+
brand70: string;
|
|
64
|
+
brand60: string;
|
|
65
|
+
brand50: string;
|
|
66
|
+
brand40: string;
|
|
67
|
+
brand30: string;
|
|
68
|
+
brand20: string;
|
|
69
|
+
brand10: string;
|
|
70
|
+
red10: string;
|
|
71
|
+
red20: string;
|
|
72
|
+
red30: string;
|
|
73
|
+
red40: string;
|
|
74
|
+
red50: string;
|
|
75
|
+
red60: string;
|
|
76
|
+
red70: string;
|
|
77
|
+
red80: string;
|
|
78
|
+
red90: string;
|
|
79
|
+
green90: string;
|
|
80
|
+
green80: string;
|
|
81
|
+
green70: string;
|
|
82
|
+
green60: string;
|
|
83
|
+
green50: string;
|
|
84
|
+
green40: string;
|
|
85
|
+
green30: string;
|
|
86
|
+
green20: string;
|
|
87
|
+
green10: string;
|
|
88
|
+
blue90: string;
|
|
89
|
+
blue80: string;
|
|
90
|
+
blue70: string;
|
|
91
|
+
blue60: string;
|
|
92
|
+
blue50: string;
|
|
93
|
+
blue40: string;
|
|
94
|
+
blue30: string;
|
|
95
|
+
blue20: string;
|
|
96
|
+
blue10: string;
|
|
97
|
+
yellow90: string;
|
|
98
|
+
yellow80: string;
|
|
99
|
+
yellow70: string;
|
|
100
|
+
yellow60: string;
|
|
101
|
+
yellow50: string;
|
|
102
|
+
yellow40: string;
|
|
103
|
+
yellow30: string;
|
|
104
|
+
yellow20: string;
|
|
105
|
+
yellow10: string;
|
|
106
|
+
blackAlpha20: string;
|
|
107
|
+
};
|
|
108
|
+
bg: {
|
|
109
|
+
default: string;
|
|
110
|
+
brandPrimary: string;
|
|
111
|
+
brandPrimaryHover: string;
|
|
112
|
+
brandPrimaryActive: string;
|
|
113
|
+
brandSecondary: string;
|
|
114
|
+
brandSecondaryHover: string;
|
|
115
|
+
brandSecondaryActive: string;
|
|
116
|
+
negative: string;
|
|
117
|
+
warning: string;
|
|
118
|
+
positive: string;
|
|
119
|
+
inset: string;
|
|
120
|
+
backdrop: string;
|
|
121
|
+
};
|
|
122
|
+
text: {
|
|
123
|
+
strong: string;
|
|
124
|
+
default: string;
|
|
125
|
+
subtle: string;
|
|
126
|
+
disabled: string;
|
|
127
|
+
negative: string;
|
|
128
|
+
warning: string;
|
|
129
|
+
positive: string;
|
|
130
|
+
onColor: string;
|
|
131
|
+
};
|
|
132
|
+
icon: {
|
|
133
|
+
default: string;
|
|
134
|
+
strong: string;
|
|
135
|
+
subtle: string;
|
|
136
|
+
disabled: string;
|
|
137
|
+
negative: string;
|
|
138
|
+
warning: string;
|
|
139
|
+
success: string;
|
|
140
|
+
onColor: string;
|
|
141
|
+
};
|
|
142
|
+
border: {
|
|
143
|
+
default: string;
|
|
144
|
+
defaultHover: string;
|
|
145
|
+
defaultSelected: string;
|
|
146
|
+
strong: string;
|
|
147
|
+
subtle: string;
|
|
148
|
+
negative: string;
|
|
149
|
+
warning: string;
|
|
150
|
+
success: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
sizes: {
|
|
154
|
+
112: string;
|
|
155
|
+
128: string;
|
|
156
|
+
144: string;
|
|
157
|
+
160: string;
|
|
158
|
+
176: string;
|
|
159
|
+
192: string;
|
|
160
|
+
224: string;
|
|
161
|
+
256: string;
|
|
162
|
+
288: string;
|
|
163
|
+
320: string;
|
|
164
|
+
384: string;
|
|
165
|
+
448: string;
|
|
166
|
+
512: string;
|
|
167
|
+
576: string;
|
|
168
|
+
672: string;
|
|
169
|
+
768: string;
|
|
170
|
+
896: string;
|
|
171
|
+
1024: string;
|
|
172
|
+
'0x': string;
|
|
173
|
+
'1x': string;
|
|
174
|
+
'2x': string;
|
|
175
|
+
'3x': string;
|
|
176
|
+
'4x': string;
|
|
177
|
+
'5x': string;
|
|
178
|
+
'6x': string;
|
|
179
|
+
'8x': string;
|
|
180
|
+
'12x': string;
|
|
181
|
+
'16x': string;
|
|
182
|
+
'20x': string;
|
|
183
|
+
'24x': string;
|
|
184
|
+
};
|
|
185
|
+
radii: {
|
|
186
|
+
none: string;
|
|
187
|
+
xs: string;
|
|
188
|
+
sm: string;
|
|
189
|
+
md: string;
|
|
190
|
+
lg: string;
|
|
191
|
+
xl: string;
|
|
192
|
+
full: string;
|
|
193
|
+
};
|
|
194
|
+
shadows: {
|
|
195
|
+
none: string;
|
|
196
|
+
sm: string;
|
|
197
|
+
md: string;
|
|
198
|
+
lg: string;
|
|
199
|
+
xl: string;
|
|
200
|
+
};
|
|
201
|
+
typography: {
|
|
202
|
+
display: {
|
|
203
|
+
lg: {
|
|
204
|
+
fontFamily: string;
|
|
205
|
+
fontWeight: string;
|
|
206
|
+
fontSize: string;
|
|
207
|
+
lineHeight: string;
|
|
208
|
+
letterSpacing: string;
|
|
209
|
+
};
|
|
210
|
+
md: {
|
|
211
|
+
fontFamily: string;
|
|
212
|
+
fontWeight: string;
|
|
213
|
+
fontSize: string;
|
|
214
|
+
lineHeight: string;
|
|
215
|
+
letterSpacing: string;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
title: {
|
|
219
|
+
lg: {
|
|
220
|
+
fontFamily: string;
|
|
221
|
+
fontWeight: string;
|
|
222
|
+
fontSize: string;
|
|
223
|
+
lineHeight: string;
|
|
224
|
+
letterSpacing: string;
|
|
225
|
+
};
|
|
226
|
+
md: {
|
|
227
|
+
fontFamily: string;
|
|
228
|
+
fontWeight: string;
|
|
229
|
+
fontSize: string;
|
|
230
|
+
lineHeight: string;
|
|
231
|
+
letterSpacing: string;
|
|
232
|
+
};
|
|
233
|
+
sm: {
|
|
234
|
+
fontFamily: string;
|
|
235
|
+
fontWeight: string;
|
|
236
|
+
fontSize: string;
|
|
237
|
+
lineHeight: string;
|
|
238
|
+
letterSpacing: string; /**
|
|
239
|
+
* Truncates the heading after a specific number of lines
|
|
240
|
+
*/
|
|
241
|
+
};
|
|
242
|
+
xs: {
|
|
243
|
+
fontFamily: string;
|
|
244
|
+
fontWeight: string;
|
|
245
|
+
fontSize: string;
|
|
246
|
+
lineHeight: string;
|
|
247
|
+
letterSpacing: string;
|
|
248
|
+
};
|
|
249
|
+
'2xs': {
|
|
250
|
+
fontFamily: string;
|
|
251
|
+
fontWeight: string;
|
|
252
|
+
fontSize: string;
|
|
253
|
+
lineHeight: string;
|
|
254
|
+
letterSpacing: string;
|
|
255
|
+
};
|
|
256
|
+
'3xs': {
|
|
257
|
+
fontFamily: string;
|
|
258
|
+
fontWeight: string;
|
|
259
|
+
fontSize: string;
|
|
260
|
+
lineHeight: string;
|
|
261
|
+
letterSpacing: string;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
body: {
|
|
265
|
+
xl: {
|
|
266
|
+
fontFamily: string;
|
|
267
|
+
fontWeight: string;
|
|
268
|
+
fontSize: string;
|
|
269
|
+
lineHeight: string;
|
|
270
|
+
letterSpacing: string;
|
|
271
|
+
};
|
|
272
|
+
lg: {
|
|
273
|
+
fontFamily: string;
|
|
274
|
+
fontWeight: string;
|
|
275
|
+
fontSize: string;
|
|
276
|
+
lineHeight: string;
|
|
277
|
+
letterSpacing: string;
|
|
278
|
+
};
|
|
279
|
+
md: {
|
|
280
|
+
fontFamily: string;
|
|
281
|
+
fontWeight: string;
|
|
282
|
+
fontSize: string;
|
|
283
|
+
lineHeight: string;
|
|
284
|
+
letterSpacing: string;
|
|
285
|
+
};
|
|
286
|
+
sm: {
|
|
287
|
+
fontFamily: string;
|
|
288
|
+
fontWeight: string;
|
|
289
|
+
fontSize: string;
|
|
290
|
+
lineHeight: string;
|
|
291
|
+
letterSpacing: string;
|
|
292
|
+
};
|
|
293
|
+
xs: {
|
|
294
|
+
fontFamily: string;
|
|
295
|
+
fontWeight: string;
|
|
296
|
+
fontSize: string;
|
|
297
|
+
lineHeight: string;
|
|
298
|
+
letterSpacing: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
label: {
|
|
302
|
+
md: {
|
|
303
|
+
fontFamily: string;
|
|
304
|
+
fontWeight: string;
|
|
305
|
+
fontSize: string;
|
|
306
|
+
lineHeight: string;
|
|
307
|
+
letterSpacing: string;
|
|
308
|
+
};
|
|
309
|
+
sm: {
|
|
310
|
+
fontFamily: string;
|
|
311
|
+
fontWeight: string;
|
|
312
|
+
fontSize: string;
|
|
313
|
+
lineHeight: string;
|
|
314
|
+
letterSpacing: string;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
caption: {
|
|
318
|
+
md: {
|
|
319
|
+
fontFamily: string;
|
|
320
|
+
fontWeight: string;
|
|
321
|
+
fontSize: string;
|
|
322
|
+
lineHeight: string;
|
|
323
|
+
letterSpacing: string;
|
|
324
|
+
};
|
|
325
|
+
sm: {
|
|
326
|
+
fontFamily: string;
|
|
327
|
+
fontWeight: string;
|
|
328
|
+
fontSize: string;
|
|
329
|
+
lineHeight: string;
|
|
330
|
+
letterSpacing: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
}) => {
|
|
335
|
+
lg: {
|
|
336
|
+
fontFamily: string;
|
|
337
|
+
fontWeight: string;
|
|
338
|
+
fontSize: string;
|
|
339
|
+
lineHeight: string;
|
|
340
|
+
letterSpacing: string;
|
|
341
|
+
};
|
|
342
|
+
md: {
|
|
343
|
+
fontFamily: string;
|
|
344
|
+
fontWeight: string;
|
|
345
|
+
fontSize: string;
|
|
346
|
+
lineHeight: string;
|
|
347
|
+
letterSpacing: string;
|
|
348
|
+
};
|
|
349
|
+
sm: {
|
|
350
|
+
fontFamily: string;
|
|
351
|
+
fontWeight: string;
|
|
352
|
+
fontSize: string;
|
|
353
|
+
lineHeight: string;
|
|
354
|
+
letterSpacing: string; /**
|
|
355
|
+
* Truncates the heading after a specific number of lines
|
|
356
|
+
*/
|
|
357
|
+
};
|
|
358
|
+
xs: {
|
|
359
|
+
fontFamily: string;
|
|
360
|
+
fontWeight: string;
|
|
361
|
+
fontSize: string;
|
|
362
|
+
lineHeight: string;
|
|
363
|
+
letterSpacing: string;
|
|
364
|
+
};
|
|
365
|
+
'2xs': {
|
|
366
|
+
fontFamily: string;
|
|
367
|
+
fontWeight: string;
|
|
368
|
+
fontSize: string;
|
|
369
|
+
lineHeight: string;
|
|
370
|
+
letterSpacing: string;
|
|
371
|
+
};
|
|
372
|
+
'3xs': {
|
|
373
|
+
fontFamily: string;
|
|
374
|
+
fontWeight: string;
|
|
375
|
+
fontSize: string;
|
|
376
|
+
lineHeight: string;
|
|
377
|
+
letterSpacing: string;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
declare type HeadingSize = VariantProps<typeof getSizeStyles>;
|
|
381
|
+
interface HeadingOptions {
|
|
382
|
+
/**
|
|
383
|
+
* Sets the visual size of the heading.
|
|
384
|
+
* Also sets the HTML tag used for the heading.
|
|
385
|
+
* To override the rendered tag, use the `as` prop.
|
|
386
|
+
*
|
|
387
|
+
* @default 'md'
|
|
388
|
+
*/
|
|
389
|
+
size?: HeadingSize;
|
|
390
|
+
/**
|
|
391
|
+
* Truncates the heading after a specific number of lines
|
|
392
|
+
*/
|
|
393
|
+
numberOfLines?: number;
|
|
394
|
+
/**
|
|
395
|
+
* Alignment of the heading
|
|
396
|
+
* @default 'left'
|
|
397
|
+
*/
|
|
398
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
399
|
+
}
|
|
400
|
+
declare type HeadingComponent = Polymorphic.ForwardRefComponent<'h2', HeadingOptions>;
|
|
401
|
+
export declare type HeadingProps = Polymorphic.PropsOf<HeadingComponent>;
|
|
402
|
+
export declare const Heading: HeadingComponent;
|
|
403
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './heading';
|