@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.
Files changed (217) hide show
  1. package/README.md +17 -0
  2. package/dist/cjs/index.js +2 -0
  3. package/dist/cjs/index.js.map +1 -0
  4. package/dist/cjs/types/components/_internal/form-parts.d.ts +13 -0
  5. package/dist/cjs/types/components/_internal/index.d.ts +1 -0
  6. package/dist/cjs/types/components/avatar/avatar.d.ts +30 -0
  7. package/dist/cjs/types/components/avatar/index.d.ts +1 -0
  8. package/dist/cjs/types/components/button/button-styles.d.ts +755 -0
  9. package/dist/cjs/types/components/button/button.d.ts +41 -0
  10. package/dist/cjs/types/components/button/index.d.ts +1 -0
  11. package/dist/cjs/types/components/divider/divider.d.ts +14 -0
  12. package/dist/cjs/types/components/divider/index.d.ts +1 -0
  13. package/dist/cjs/types/components/heading/heading.d.ts +403 -0
  14. package/dist/cjs/types/components/heading/index.d.ts +1 -0
  15. package/dist/cjs/types/components/icon/create-icon.d.ts +409 -0
  16. package/dist/cjs/types/components/icon/icons/arrow-down.d.ts +2 -0
  17. package/dist/cjs/types/components/icon/icons/arrow-left.d.ts +2 -0
  18. package/dist/cjs/types/components/icon/icons/arrow-right.d.ts +2 -0
  19. package/dist/cjs/types/components/icon/icons/arrow-up.d.ts +2 -0
  20. package/dist/cjs/types/components/icon/icons/bell-slash.d.ts +2 -0
  21. package/dist/cjs/types/components/icon/icons/bell.d.ts +2 -0
  22. package/dist/cjs/types/components/icon/icons/calendar.d.ts +2 -0
  23. package/dist/cjs/types/components/icon/icons/check.d.ts +2 -0
  24. package/dist/cjs/types/components/icon/icons/chevron-down.d.ts +2 -0
  25. package/dist/cjs/types/components/icon/icons/chevron-left.d.ts +2 -0
  26. package/dist/cjs/types/components/icon/icons/chevron-right.d.ts +2 -0
  27. package/dist/cjs/types/components/icon/icons/chevron-up.d.ts +2 -0
  28. package/dist/cjs/types/components/icon/icons/ellipsis-vertical.d.ts +2 -0
  29. package/dist/cjs/types/components/icon/icons/ellipsis.d.ts +2 -0
  30. package/dist/cjs/types/components/icon/icons/heart-filled.d.ts +2 -0
  31. package/dist/cjs/types/components/icon/icons/heart.d.ts +2 -0
  32. package/dist/cjs/types/components/icon/icons/image.d.ts +2 -0
  33. package/dist/cjs/types/components/icon/icons/index.d.ts +27 -0
  34. package/dist/cjs/types/components/icon/icons/location-dot.d.ts +2 -0
  35. package/dist/cjs/types/components/icon/icons/map.d.ts +2 -0
  36. package/dist/cjs/types/components/icon/icons/plus.d.ts +2 -0
  37. package/dist/cjs/types/components/icon/icons/search.d.ts +2 -0
  38. package/dist/cjs/types/components/icon/icons/settings.d.ts +2 -0
  39. package/dist/cjs/types/components/icon/icons/star-filled.d.ts +2 -0
  40. package/dist/cjs/types/components/icon/icons/star.d.ts +2 -0
  41. package/dist/cjs/types/components/icon/icons/trash.d.ts +2 -0
  42. package/dist/cjs/types/components/icon/icons/user.d.ts +2 -0
  43. package/dist/cjs/types/components/icon/icons/xmark.d.ts +2 -0
  44. package/dist/cjs/types/components/icon/index.d.ts +2 -0
  45. package/dist/cjs/types/components/icon-button/icon-button-styles.d.ts +735 -0
  46. package/dist/cjs/types/components/icon-button/icon-button.d.ts +31 -0
  47. package/dist/cjs/types/components/icon-button/index.d.ts +1 -0
  48. package/dist/cjs/types/components/image/image.d.ts +16 -0
  49. package/dist/cjs/types/components/image/index.d.ts +1 -0
  50. package/dist/cjs/types/components/index.d.ts +17 -0
  51. package/dist/cjs/types/components/label/index.d.ts +1 -0
  52. package/dist/cjs/types/components/label/label.d.ts +358 -0
  53. package/dist/cjs/types/components/link/index.d.ts +1 -0
  54. package/dist/cjs/types/components/link/link.d.ts +15 -0
  55. package/dist/cjs/types/components/loading-dots/index.d.ts +1 -0
  56. package/dist/cjs/types/components/loading-dots/loading-dots.d.ts +348 -0
  57. package/dist/cjs/types/components/paragraph/index.d.ts +1 -0
  58. package/dist/cjs/types/components/paragraph/paragraph.d.ts +402 -0
  59. package/dist/cjs/types/components/primitives/index.d.ts +3 -0
  60. package/dist/cjs/types/components/primitives/input-base/index.d.ts +1 -0
  61. package/dist/cjs/types/components/primitives/input-base/input-base.d.ts +21 -0
  62. package/dist/cjs/types/components/primitives/select-base/index.d.ts +1 -0
  63. package/dist/cjs/types/components/primitives/select-base/select-base.d.ts +30 -0
  64. package/dist/cjs/types/components/primitives/textarea-base/index.d.ts +1 -0
  65. package/dist/cjs/types/components/primitives/textarea-base/textarea-base.d.ts +36 -0
  66. package/dist/cjs/types/components/select/index.d.ts +1 -0
  67. package/dist/cjs/types/components/select/select-option.d.ts +10 -0
  68. package/dist/cjs/types/components/select/select.d.ts +25 -0
  69. package/dist/cjs/types/components/spacer/index.d.ts +1 -0
  70. package/dist/cjs/types/components/spacer/spacer.d.ts +11 -0
  71. package/dist/cjs/types/components/stack/index.d.ts +1 -0
  72. package/dist/cjs/types/components/stack/stack.d.ts +17 -0
  73. package/dist/cjs/types/components/stack/stack.types.d.ts +4 -0
  74. package/dist/cjs/types/components/stack/stack.utils.d.ts +6 -0
  75. package/dist/cjs/types/components/text-field/index.d.ts +1 -0
  76. package/dist/cjs/types/components/text-field/text-field.d.ts +22 -0
  77. package/dist/cjs/types/components/textarea/index.d.ts +1 -0
  78. package/dist/cjs/types/components/textarea/textarea.d.ts +22 -0
  79. package/dist/cjs/types/hooks/index.d.ts +6 -0
  80. package/dist/cjs/types/hooks/use-breakpoint-value.d.ts +16 -0
  81. package/dist/cjs/types/hooks/use-breakpoint.d.ts +17 -0
  82. package/dist/cjs/types/hooks/use-form-field.d.ts +49 -0
  83. package/dist/cjs/types/hooks/use-image.d.ts +10 -0
  84. package/dist/cjs/types/hooks/use-safe-layout-effect.d.ts +9 -0
  85. package/dist/cjs/types/hooks/use-stable-id.d.ts +4 -0
  86. package/dist/cjs/types/index.d.ts +6 -0
  87. package/dist/cjs/types/qds-provider.d.ts +8 -0
  88. package/dist/cjs/types/styles/common-styles.d.ts +369 -0
  89. package/dist/cjs/types/styles/css-reset.d.ts +5 -0
  90. package/dist/cjs/types/styles/css-utils.d.ts +19 -0
  91. package/dist/cjs/types/styles/global-styles.d.ts +5 -0
  92. package/dist/cjs/types/styles/index.d.ts +3 -0
  93. package/dist/cjs/types/theme/foundations/breakpoints.d.ts +8 -0
  94. package/dist/cjs/types/theme/foundations/colors.d.ts +107 -0
  95. package/dist/cjs/types/theme/foundations/index.d.ts +335 -0
  96. package/dist/cjs/types/theme/foundations/radius.d.ts +9 -0
  97. package/dist/cjs/types/theme/foundations/shadows.d.ts +7 -0
  98. package/dist/cjs/types/theme/foundations/sizes.d.ts +32 -0
  99. package/dist/cjs/types/theme/foundations/spacing.d.ts +14 -0
  100. package/dist/cjs/types/theme/foundations/typography.d.ts +131 -0
  101. package/dist/cjs/types/theme/foundations/z-index.d.ts +15 -0
  102. package/dist/cjs/types/theme/index.d.ts +2 -0
  103. package/dist/cjs/types/theme/theme-tools.d.ts +345 -0
  104. package/dist/cjs/types/theme/theme.d.ts +331 -0
  105. package/dist/cjs/types/types.d.ts +5 -0
  106. package/dist/cjs/types/utils/object.d.ts +1 -0
  107. package/dist/cjs/types/utils/polymorphic.d.ts +41 -0
  108. package/dist/cjs/types/utils/test-utils.d.ts +14 -0
  109. package/dist/esm/index.js +2 -0
  110. package/dist/esm/index.js.map +1 -0
  111. package/dist/esm/types/components/_internal/form-parts.d.ts +13 -0
  112. package/dist/esm/types/components/_internal/index.d.ts +1 -0
  113. package/dist/esm/types/components/avatar/avatar.d.ts +30 -0
  114. package/dist/esm/types/components/avatar/index.d.ts +1 -0
  115. package/dist/esm/types/components/button/button-styles.d.ts +755 -0
  116. package/dist/esm/types/components/button/button.d.ts +41 -0
  117. package/dist/esm/types/components/button/index.d.ts +1 -0
  118. package/dist/esm/types/components/divider/divider.d.ts +14 -0
  119. package/dist/esm/types/components/divider/index.d.ts +1 -0
  120. package/dist/esm/types/components/heading/heading.d.ts +403 -0
  121. package/dist/esm/types/components/heading/index.d.ts +1 -0
  122. package/dist/esm/types/components/icon/create-icon.d.ts +409 -0
  123. package/dist/esm/types/components/icon/icons/arrow-down.d.ts +2 -0
  124. package/dist/esm/types/components/icon/icons/arrow-left.d.ts +2 -0
  125. package/dist/esm/types/components/icon/icons/arrow-right.d.ts +2 -0
  126. package/dist/esm/types/components/icon/icons/arrow-up.d.ts +2 -0
  127. package/dist/esm/types/components/icon/icons/bell-slash.d.ts +2 -0
  128. package/dist/esm/types/components/icon/icons/bell.d.ts +2 -0
  129. package/dist/esm/types/components/icon/icons/calendar.d.ts +2 -0
  130. package/dist/esm/types/components/icon/icons/check.d.ts +2 -0
  131. package/dist/esm/types/components/icon/icons/chevron-down.d.ts +2 -0
  132. package/dist/esm/types/components/icon/icons/chevron-left.d.ts +2 -0
  133. package/dist/esm/types/components/icon/icons/chevron-right.d.ts +2 -0
  134. package/dist/esm/types/components/icon/icons/chevron-up.d.ts +2 -0
  135. package/dist/esm/types/components/icon/icons/ellipsis-vertical.d.ts +2 -0
  136. package/dist/esm/types/components/icon/icons/ellipsis.d.ts +2 -0
  137. package/dist/esm/types/components/icon/icons/heart-filled.d.ts +2 -0
  138. package/dist/esm/types/components/icon/icons/heart.d.ts +2 -0
  139. package/dist/esm/types/components/icon/icons/image.d.ts +2 -0
  140. package/dist/esm/types/components/icon/icons/index.d.ts +27 -0
  141. package/dist/esm/types/components/icon/icons/location-dot.d.ts +2 -0
  142. package/dist/esm/types/components/icon/icons/map.d.ts +2 -0
  143. package/dist/esm/types/components/icon/icons/plus.d.ts +2 -0
  144. package/dist/esm/types/components/icon/icons/search.d.ts +2 -0
  145. package/dist/esm/types/components/icon/icons/settings.d.ts +2 -0
  146. package/dist/esm/types/components/icon/icons/star-filled.d.ts +2 -0
  147. package/dist/esm/types/components/icon/icons/star.d.ts +2 -0
  148. package/dist/esm/types/components/icon/icons/trash.d.ts +2 -0
  149. package/dist/esm/types/components/icon/icons/user.d.ts +2 -0
  150. package/dist/esm/types/components/icon/icons/xmark.d.ts +2 -0
  151. package/dist/esm/types/components/icon/index.d.ts +2 -0
  152. package/dist/esm/types/components/icon-button/icon-button-styles.d.ts +735 -0
  153. package/dist/esm/types/components/icon-button/icon-button.d.ts +31 -0
  154. package/dist/esm/types/components/icon-button/index.d.ts +1 -0
  155. package/dist/esm/types/components/image/image.d.ts +16 -0
  156. package/dist/esm/types/components/image/index.d.ts +1 -0
  157. package/dist/esm/types/components/index.d.ts +17 -0
  158. package/dist/esm/types/components/label/index.d.ts +1 -0
  159. package/dist/esm/types/components/label/label.d.ts +358 -0
  160. package/dist/esm/types/components/link/index.d.ts +1 -0
  161. package/dist/esm/types/components/link/link.d.ts +15 -0
  162. package/dist/esm/types/components/loading-dots/index.d.ts +1 -0
  163. package/dist/esm/types/components/loading-dots/loading-dots.d.ts +348 -0
  164. package/dist/esm/types/components/paragraph/index.d.ts +1 -0
  165. package/dist/esm/types/components/paragraph/paragraph.d.ts +402 -0
  166. package/dist/esm/types/components/primitives/index.d.ts +3 -0
  167. package/dist/esm/types/components/primitives/input-base/index.d.ts +1 -0
  168. package/dist/esm/types/components/primitives/input-base/input-base.d.ts +21 -0
  169. package/dist/esm/types/components/primitives/select-base/index.d.ts +1 -0
  170. package/dist/esm/types/components/primitives/select-base/select-base.d.ts +30 -0
  171. package/dist/esm/types/components/primitives/textarea-base/index.d.ts +1 -0
  172. package/dist/esm/types/components/primitives/textarea-base/textarea-base.d.ts +36 -0
  173. package/dist/esm/types/components/select/index.d.ts +1 -0
  174. package/dist/esm/types/components/select/select-option.d.ts +10 -0
  175. package/dist/esm/types/components/select/select.d.ts +25 -0
  176. package/dist/esm/types/components/spacer/index.d.ts +1 -0
  177. package/dist/esm/types/components/spacer/spacer.d.ts +11 -0
  178. package/dist/esm/types/components/stack/index.d.ts +1 -0
  179. package/dist/esm/types/components/stack/stack.d.ts +17 -0
  180. package/dist/esm/types/components/stack/stack.types.d.ts +4 -0
  181. package/dist/esm/types/components/stack/stack.utils.d.ts +6 -0
  182. package/dist/esm/types/components/text-field/index.d.ts +1 -0
  183. package/dist/esm/types/components/text-field/text-field.d.ts +22 -0
  184. package/dist/esm/types/components/textarea/index.d.ts +1 -0
  185. package/dist/esm/types/components/textarea/textarea.d.ts +22 -0
  186. package/dist/esm/types/hooks/index.d.ts +6 -0
  187. package/dist/esm/types/hooks/use-breakpoint-value.d.ts +16 -0
  188. package/dist/esm/types/hooks/use-breakpoint.d.ts +17 -0
  189. package/dist/esm/types/hooks/use-form-field.d.ts +49 -0
  190. package/dist/esm/types/hooks/use-image.d.ts +10 -0
  191. package/dist/esm/types/hooks/use-safe-layout-effect.d.ts +9 -0
  192. package/dist/esm/types/hooks/use-stable-id.d.ts +4 -0
  193. package/dist/esm/types/index.d.ts +6 -0
  194. package/dist/esm/types/qds-provider.d.ts +8 -0
  195. package/dist/esm/types/styles/common-styles.d.ts +369 -0
  196. package/dist/esm/types/styles/css-reset.d.ts +5 -0
  197. package/dist/esm/types/styles/css-utils.d.ts +19 -0
  198. package/dist/esm/types/styles/global-styles.d.ts +5 -0
  199. package/dist/esm/types/styles/index.d.ts +3 -0
  200. package/dist/esm/types/theme/foundations/breakpoints.d.ts +8 -0
  201. package/dist/esm/types/theme/foundations/colors.d.ts +107 -0
  202. package/dist/esm/types/theme/foundations/index.d.ts +335 -0
  203. package/dist/esm/types/theme/foundations/radius.d.ts +9 -0
  204. package/dist/esm/types/theme/foundations/shadows.d.ts +7 -0
  205. package/dist/esm/types/theme/foundations/sizes.d.ts +32 -0
  206. package/dist/esm/types/theme/foundations/spacing.d.ts +14 -0
  207. package/dist/esm/types/theme/foundations/typography.d.ts +131 -0
  208. package/dist/esm/types/theme/foundations/z-index.d.ts +15 -0
  209. package/dist/esm/types/theme/index.d.ts +2 -0
  210. package/dist/esm/types/theme/theme-tools.d.ts +345 -0
  211. package/dist/esm/types/theme/theme.d.ts +331 -0
  212. package/dist/esm/types/types.d.ts +5 -0
  213. package/dist/esm/types/utils/object.d.ts +1 -0
  214. package/dist/esm/types/utils/polymorphic.d.ts +41 -0
  215. package/dist/esm/types/utils/test-utils.d.ts +14 -0
  216. package/dist/index.d.ts +4978 -0
  217. 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';