@qasa/qds-ui 0.11.0 → 0.13.0-next.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 (231) hide show
  1. package/dist/index.d.mts +5416 -0
  2. package/dist/index.d.ts +14 -12
  3. package/dist/index.js +819 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +703 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +16 -15
  8. package/dist/cjs/index.js +0 -9237
  9. package/dist/cjs/index.js.map +0 -1
  10. package/dist/cjs/types/components/_internal/form-parts.d.ts +0 -10
  11. package/dist/cjs/types/components/_internal/index.d.ts +0 -1
  12. package/dist/cjs/types/components/avatar/avatar.d.ts +0 -32
  13. package/dist/cjs/types/components/avatar/index.d.ts +0 -1
  14. package/dist/cjs/types/components/button/button-icon.d.ts +0 -10
  15. package/dist/cjs/types/components/button/button-styles.d.ts +0 -907
  16. package/dist/cjs/types/components/button/button-types.d.ts +0 -44
  17. package/dist/cjs/types/components/button/button.d.ts +0 -6
  18. package/dist/cjs/types/components/button/index.d.ts +0 -1
  19. package/dist/cjs/types/components/checkbox/checkbox.d.ts +0 -78
  20. package/dist/cjs/types/components/checkbox/index.d.ts +0 -1
  21. package/dist/cjs/types/components/display-text/display-text.d.ts +0 -30
  22. package/dist/cjs/types/components/display-text/index.d.ts +0 -1
  23. package/dist/cjs/types/components/divider/divider.d.ts +0 -14
  24. package/dist/cjs/types/components/divider/index.d.ts +0 -1
  25. package/dist/cjs/types/components/dropdown-menu/dropdown-menu-content.d.ts +0 -67
  26. package/dist/cjs/types/components/dropdown-menu/dropdown-menu-divider.d.ts +0 -4
  27. package/dist/cjs/types/components/dropdown-menu/dropdown-menu-item.d.ts +0 -28
  28. package/dist/cjs/types/components/dropdown-menu/dropdown-menu-trigger.d.ts +0 -5
  29. package/dist/cjs/types/components/dropdown-menu/dropdown-menu.d.ts +0 -29
  30. package/dist/cjs/types/components/dropdown-menu/index.d.ts +0 -1
  31. package/dist/cjs/types/components/heading/heading.d.ts +0 -32
  32. package/dist/cjs/types/components/heading/index.d.ts +0 -1
  33. package/dist/cjs/types/components/hint-box/hint-box.d.ts +0 -10
  34. package/dist/cjs/types/components/hint-box/index.d.ts +0 -1
  35. package/dist/cjs/types/components/icon/create-icon.d.ts +0 -41
  36. package/dist/cjs/types/components/icon/create-lucide-icon.d.ts +0 -4
  37. package/dist/cjs/types/components/icon/icon.types.d.ts +0 -22
  38. package/dist/cjs/types/components/icon/icons.d.ts +0 -47
  39. package/dist/cjs/types/components/icon/index.d.ts +0 -4
  40. package/dist/cjs/types/components/icon-button/icon-button-styles.d.ts +0 -880
  41. package/dist/cjs/types/components/icon-button/icon-button.d.ts +0 -32
  42. package/dist/cjs/types/components/icon-button/index.d.ts +0 -1
  43. package/dist/cjs/types/components/index.d.ts +0 -23
  44. package/dist/cjs/types/components/label/index.d.ts +0 -1
  45. package/dist/cjs/types/components/label/label.d.ts +0 -444
  46. package/dist/cjs/types/components/link/index.d.ts +0 -1
  47. package/dist/cjs/types/components/link/link.d.ts +0 -15
  48. package/dist/cjs/types/components/loading-dots/index.d.ts +0 -1
  49. package/dist/cjs/types/components/loading-dots/loading-dots.d.ts +0 -424
  50. package/dist/cjs/types/components/paragraph/index.d.ts +0 -1
  51. package/dist/cjs/types/components/paragraph/paragraph.d.ts +0 -475
  52. package/dist/cjs/types/components/primitives/index.d.ts +0 -3
  53. package/dist/cjs/types/components/primitives/input-base/index.d.ts +0 -1
  54. package/dist/cjs/types/components/primitives/input-base/input-base.d.ts +0 -21
  55. package/dist/cjs/types/components/primitives/select-base/index.d.ts +0 -1
  56. package/dist/cjs/types/components/primitives/select-base/select-base.d.ts +0 -30
  57. package/dist/cjs/types/components/primitives/textarea-base/index.d.ts +0 -1
  58. package/dist/cjs/types/components/primitives/textarea-base/textarea-base.d.ts +0 -36
  59. package/dist/cjs/types/components/radio-group/index.d.ts +0 -1
  60. package/dist/cjs/types/components/radio-group/radio-card.d.ts +0 -26
  61. package/dist/cjs/types/components/radio-group/radio-group-context.d.ts +0 -16
  62. package/dist/cjs/types/components/radio-group/radio-group-label.d.ts +0 -4
  63. package/dist/cjs/types/components/radio-group/radio-group.d.ts +0 -50
  64. package/dist/cjs/types/components/radio-group/radio-indicator.d.ts +0 -10
  65. package/dist/cjs/types/components/select/index.d.ts +0 -1
  66. package/dist/cjs/types/components/select/select-option.d.ts +0 -10
  67. package/dist/cjs/types/components/select/select.d.ts +0 -25
  68. package/dist/cjs/types/components/spacer/index.d.ts +0 -1
  69. package/dist/cjs/types/components/spacer/spacer.d.ts +0 -12
  70. package/dist/cjs/types/components/stack/index.d.ts +0 -1
  71. package/dist/cjs/types/components/stack/stack.d.ts +0 -44
  72. package/dist/cjs/types/components/stack/stack.types.d.ts +0 -4
  73. package/dist/cjs/types/components/stack/stack.utils.d.ts +0 -6
  74. package/dist/cjs/types/components/switch/index.d.ts +0 -1
  75. package/dist/cjs/types/components/switch/switch.d.ts +0 -35
  76. package/dist/cjs/types/components/text-field/index.d.ts +0 -1
  77. package/dist/cjs/types/components/text-field/text-field.d.ts +0 -32
  78. package/dist/cjs/types/components/textarea/index.d.ts +0 -1
  79. package/dist/cjs/types/components/textarea/textarea.d.ts +0 -27
  80. package/dist/cjs/types/components/toast/index.d.ts +0 -1
  81. package/dist/cjs/types/components/toast/toast-provider.d.ts +0 -4
  82. package/dist/cjs/types/components/toast/toast-store.d.ts +0 -44
  83. package/dist/cjs/types/components/toast/toast-styles.d.ts +0 -416
  84. package/dist/cjs/types/components/toast/toast.d.ts +0 -12
  85. package/dist/cjs/types/hooks/index.d.ts +0 -6
  86. package/dist/cjs/types/hooks/use-breakpoint-value.d.ts +0 -16
  87. package/dist/cjs/types/hooks/use-breakpoint.d.ts +0 -15
  88. package/dist/cjs/types/hooks/use-form-field.d.ts +0 -49
  89. package/dist/cjs/types/hooks/use-image.d.ts +0 -10
  90. package/dist/cjs/types/hooks/use-responsive-prop.d.ts +0 -16
  91. package/dist/cjs/types/hooks/use-safe-layout-effect.d.ts +0 -9
  92. package/dist/cjs/types/hooks/use-stable-id.d.ts +0 -4
  93. package/dist/cjs/types/i18n/locale-context.d.ts +0 -12
  94. package/dist/cjs/types/i18n/locales.d.ts +0 -8
  95. package/dist/cjs/types/i18n/use-translation.d.ts +0 -6
  96. package/dist/cjs/types/index.d.ts +0 -6
  97. package/dist/cjs/types/qds-provider.d.ts +0 -12
  98. package/dist/cjs/types/styles/common-styles.d.ts +0 -450
  99. package/dist/cjs/types/styles/css-reset.d.ts +0 -4
  100. package/dist/cjs/types/styles/css-utils.d.ts +0 -19
  101. package/dist/cjs/types/styles/global-styles.d.ts +0 -4
  102. package/dist/cjs/types/styles/index.d.ts +0 -3
  103. package/dist/cjs/types/theme/foundations/breakpoints.d.ts +0 -8
  104. package/dist/cjs/types/theme/foundations/colors.d.ts +0 -116
  105. package/dist/cjs/types/theme/foundations/index.d.ts +0 -410
  106. package/dist/cjs/types/theme/foundations/radius.d.ts +0 -20
  107. package/dist/cjs/types/theme/foundations/shadows.d.ts +0 -7
  108. package/dist/cjs/types/theme/foundations/sizes.d.ts +0 -34
  109. package/dist/cjs/types/theme/foundations/spacing.d.ts +0 -30
  110. package/dist/cjs/types/theme/foundations/typography.d.ts +0 -189
  111. package/dist/cjs/types/theme/foundations/z-index.d.ts +0 -28
  112. package/dist/cjs/types/theme/index.d.ts +0 -2
  113. package/dist/cjs/types/theme/theme-tools.d.ts +0 -420
  114. package/dist/cjs/types/theme/theme.d.ts +0 -406
  115. package/dist/cjs/types/types.d.ts +0 -5
  116. package/dist/cjs/types/utils/html-attributes.d.ts +0 -4
  117. package/dist/cjs/types/utils/merge-refs.d.ts +0 -5
  118. package/dist/cjs/types/utils/object.d.ts +0 -1
  119. package/dist/cjs/types/utils/polymorphic.d.ts +0 -41
  120. package/dist/esm/index.js +0 -9237
  121. package/dist/esm/index.js.map +0 -1
  122. package/dist/esm/types/components/_internal/form-parts.d.ts +0 -10
  123. package/dist/esm/types/components/_internal/index.d.ts +0 -1
  124. package/dist/esm/types/components/avatar/avatar.d.ts +0 -32
  125. package/dist/esm/types/components/avatar/index.d.ts +0 -1
  126. package/dist/esm/types/components/button/button-icon.d.ts +0 -10
  127. package/dist/esm/types/components/button/button-styles.d.ts +0 -907
  128. package/dist/esm/types/components/button/button-types.d.ts +0 -44
  129. package/dist/esm/types/components/button/button.d.ts +0 -6
  130. package/dist/esm/types/components/button/index.d.ts +0 -1
  131. package/dist/esm/types/components/checkbox/checkbox.d.ts +0 -78
  132. package/dist/esm/types/components/checkbox/index.d.ts +0 -1
  133. package/dist/esm/types/components/display-text/display-text.d.ts +0 -30
  134. package/dist/esm/types/components/display-text/index.d.ts +0 -1
  135. package/dist/esm/types/components/divider/divider.d.ts +0 -14
  136. package/dist/esm/types/components/divider/index.d.ts +0 -1
  137. package/dist/esm/types/components/dropdown-menu/dropdown-menu-content.d.ts +0 -67
  138. package/dist/esm/types/components/dropdown-menu/dropdown-menu-divider.d.ts +0 -4
  139. package/dist/esm/types/components/dropdown-menu/dropdown-menu-item.d.ts +0 -28
  140. package/dist/esm/types/components/dropdown-menu/dropdown-menu-trigger.d.ts +0 -5
  141. package/dist/esm/types/components/dropdown-menu/dropdown-menu.d.ts +0 -29
  142. package/dist/esm/types/components/dropdown-menu/index.d.ts +0 -1
  143. package/dist/esm/types/components/heading/heading.d.ts +0 -32
  144. package/dist/esm/types/components/heading/index.d.ts +0 -1
  145. package/dist/esm/types/components/hint-box/hint-box.d.ts +0 -10
  146. package/dist/esm/types/components/hint-box/index.d.ts +0 -1
  147. package/dist/esm/types/components/icon/create-icon.d.ts +0 -41
  148. package/dist/esm/types/components/icon/create-lucide-icon.d.ts +0 -4
  149. package/dist/esm/types/components/icon/icon.types.d.ts +0 -22
  150. package/dist/esm/types/components/icon/icons.d.ts +0 -47
  151. package/dist/esm/types/components/icon/index.d.ts +0 -4
  152. package/dist/esm/types/components/icon-button/icon-button-styles.d.ts +0 -880
  153. package/dist/esm/types/components/icon-button/icon-button.d.ts +0 -32
  154. package/dist/esm/types/components/icon-button/index.d.ts +0 -1
  155. package/dist/esm/types/components/index.d.ts +0 -23
  156. package/dist/esm/types/components/label/index.d.ts +0 -1
  157. package/dist/esm/types/components/label/label.d.ts +0 -444
  158. package/dist/esm/types/components/link/index.d.ts +0 -1
  159. package/dist/esm/types/components/link/link.d.ts +0 -15
  160. package/dist/esm/types/components/loading-dots/index.d.ts +0 -1
  161. package/dist/esm/types/components/loading-dots/loading-dots.d.ts +0 -424
  162. package/dist/esm/types/components/paragraph/index.d.ts +0 -1
  163. package/dist/esm/types/components/paragraph/paragraph.d.ts +0 -475
  164. package/dist/esm/types/components/primitives/index.d.ts +0 -3
  165. package/dist/esm/types/components/primitives/input-base/index.d.ts +0 -1
  166. package/dist/esm/types/components/primitives/input-base/input-base.d.ts +0 -21
  167. package/dist/esm/types/components/primitives/select-base/index.d.ts +0 -1
  168. package/dist/esm/types/components/primitives/select-base/select-base.d.ts +0 -30
  169. package/dist/esm/types/components/primitives/textarea-base/index.d.ts +0 -1
  170. package/dist/esm/types/components/primitives/textarea-base/textarea-base.d.ts +0 -36
  171. package/dist/esm/types/components/radio-group/index.d.ts +0 -1
  172. package/dist/esm/types/components/radio-group/radio-card.d.ts +0 -26
  173. package/dist/esm/types/components/radio-group/radio-group-context.d.ts +0 -16
  174. package/dist/esm/types/components/radio-group/radio-group-label.d.ts +0 -4
  175. package/dist/esm/types/components/radio-group/radio-group.d.ts +0 -50
  176. package/dist/esm/types/components/radio-group/radio-indicator.d.ts +0 -10
  177. package/dist/esm/types/components/select/index.d.ts +0 -1
  178. package/dist/esm/types/components/select/select-option.d.ts +0 -10
  179. package/dist/esm/types/components/select/select.d.ts +0 -25
  180. package/dist/esm/types/components/spacer/index.d.ts +0 -1
  181. package/dist/esm/types/components/spacer/spacer.d.ts +0 -12
  182. package/dist/esm/types/components/stack/index.d.ts +0 -1
  183. package/dist/esm/types/components/stack/stack.d.ts +0 -44
  184. package/dist/esm/types/components/stack/stack.types.d.ts +0 -4
  185. package/dist/esm/types/components/stack/stack.utils.d.ts +0 -6
  186. package/dist/esm/types/components/switch/index.d.ts +0 -1
  187. package/dist/esm/types/components/switch/switch.d.ts +0 -35
  188. package/dist/esm/types/components/text-field/index.d.ts +0 -1
  189. package/dist/esm/types/components/text-field/text-field.d.ts +0 -32
  190. package/dist/esm/types/components/textarea/index.d.ts +0 -1
  191. package/dist/esm/types/components/textarea/textarea.d.ts +0 -27
  192. package/dist/esm/types/components/toast/index.d.ts +0 -1
  193. package/dist/esm/types/components/toast/toast-provider.d.ts +0 -4
  194. package/dist/esm/types/components/toast/toast-store.d.ts +0 -44
  195. package/dist/esm/types/components/toast/toast-styles.d.ts +0 -416
  196. package/dist/esm/types/components/toast/toast.d.ts +0 -12
  197. package/dist/esm/types/hooks/index.d.ts +0 -6
  198. package/dist/esm/types/hooks/use-breakpoint-value.d.ts +0 -16
  199. package/dist/esm/types/hooks/use-breakpoint.d.ts +0 -15
  200. package/dist/esm/types/hooks/use-form-field.d.ts +0 -49
  201. package/dist/esm/types/hooks/use-image.d.ts +0 -10
  202. package/dist/esm/types/hooks/use-responsive-prop.d.ts +0 -16
  203. package/dist/esm/types/hooks/use-safe-layout-effect.d.ts +0 -9
  204. package/dist/esm/types/hooks/use-stable-id.d.ts +0 -4
  205. package/dist/esm/types/i18n/locale-context.d.ts +0 -12
  206. package/dist/esm/types/i18n/locales.d.ts +0 -8
  207. package/dist/esm/types/i18n/use-translation.d.ts +0 -6
  208. package/dist/esm/types/index.d.ts +0 -6
  209. package/dist/esm/types/qds-provider.d.ts +0 -12
  210. package/dist/esm/types/styles/common-styles.d.ts +0 -450
  211. package/dist/esm/types/styles/css-reset.d.ts +0 -4
  212. package/dist/esm/types/styles/css-utils.d.ts +0 -19
  213. package/dist/esm/types/styles/global-styles.d.ts +0 -4
  214. package/dist/esm/types/styles/index.d.ts +0 -3
  215. package/dist/esm/types/theme/foundations/breakpoints.d.ts +0 -8
  216. package/dist/esm/types/theme/foundations/colors.d.ts +0 -116
  217. package/dist/esm/types/theme/foundations/index.d.ts +0 -410
  218. package/dist/esm/types/theme/foundations/radius.d.ts +0 -20
  219. package/dist/esm/types/theme/foundations/shadows.d.ts +0 -7
  220. package/dist/esm/types/theme/foundations/sizes.d.ts +0 -34
  221. package/dist/esm/types/theme/foundations/spacing.d.ts +0 -30
  222. package/dist/esm/types/theme/foundations/typography.d.ts +0 -189
  223. package/dist/esm/types/theme/foundations/z-index.d.ts +0 -28
  224. package/dist/esm/types/theme/index.d.ts +0 -2
  225. package/dist/esm/types/theme/theme-tools.d.ts +0 -420
  226. package/dist/esm/types/theme/theme.d.ts +0 -406
  227. package/dist/esm/types/types.d.ts +0 -5
  228. package/dist/esm/types/utils/html-attributes.d.ts +0 -4
  229. package/dist/esm/types/utils/merge-refs.d.ts +0 -5
  230. package/dist/esm/types/utils/object.d.ts +0 -1
  231. package/dist/esm/types/utils/polymorphic.d.ts +0 -41
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import type { HTMLQdsProps } from '../../types';
3
- interface SelectOptionOptions {
4
- isDisabled?: boolean;
5
- }
6
- type OmittedProps = 'disabled' | 'label';
7
- export interface SelectOptionProps extends Omit<HTMLQdsProps<'option'>, OmittedProps>, SelectOptionOptions {
8
- }
9
- export declare const SelectOption: import("react").ForwardRefExoticComponent<SelectOptionProps & import("react").RefAttributes<HTMLOptionElement>>;
10
- export {};
@@ -1,25 +0,0 @@
1
- /// <reference types="react" />
2
- import type { HTMLQdsProps } from '../../types';
3
- import type { SelectBaseOptions } from '../primitives/select-base';
4
- import type { SelectOptionProps } from './select-option';
5
- interface SelectOptions extends SelectBaseOptions {
6
- /**
7
- * The label for the select field
8
- */
9
- label: string;
10
- /**
11
- * The error message to display if `isInvalid` is `true`
12
- */
13
- errorMessage?: string;
14
- /**
15
- * Text that provides additional guidance to the user
16
- */
17
- helperText?: string;
18
- }
19
- type OmittedProps = 'readOnly' | 'size';
20
- export interface SelectProps extends Omit<HTMLQdsProps<'select'>, OmittedProps>, SelectOptions {
21
- }
22
- export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<HTMLSelectElement>> & {
23
- Option: import("react").ForwardRefExoticComponent<SelectOptionProps & import("react").RefAttributes<HTMLOptionElement>>;
24
- };
25
- export type { SelectOptionProps };
@@ -1 +0,0 @@
1
- export * from './spacer';
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Theme } from '../../theme';
3
- import type { HTMLQdsProps } from '../../types';
4
- import { type ResponsiveProp } from '../../hooks/use-responsive-prop';
5
- interface SpacerOptions {
6
- axis?: 'x' | 'y';
7
- size: ResponsiveProp<keyof Theme['spacing']>;
8
- }
9
- export interface SpacerProps extends HTMLQdsProps<'span'>, SpacerOptions {
10
- }
11
- export declare const Spacer: import("react").ForwardRefExoticComponent<SpacerProps & import("react").RefAttributes<HTMLSpanElement>>;
12
- export {};
@@ -1 +0,0 @@
1
- export * from './stack';
@@ -1,44 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { Theme } from '../../theme';
3
- import type * as Polymorphic from '../../utils/polymorphic';
4
- import { type ResponsiveProp } from '../../hooks/use-responsive-prop';
5
- import type { AlignItems, FlexDirection, JustifyContent, FlexWrap } from './stack.types';
6
- type GapProp = keyof Theme['spacing'];
7
- interface StackOptions {
8
- /**
9
- * The direction of the stack.
10
- * @default 'column'
11
- */
12
- direction?: ResponsiveProp<FlexDirection>;
13
- /**
14
- * The CSS `justify-content` property.
15
- * Controls the alignment of items on the main axis.
16
- */
17
- justifyContent?: JustifyContent;
18
- /**
19
- * The CSS `align-items` property.
20
- * Controls the alignment of items on the cross axis.
21
- */
22
- alignItems?: AlignItems;
23
- /**
24
- * The CSS `flex-wrap` property.
25
- * Controls whether children can wrap onto multiple lines.
26
- * @default 'nowrap'
27
- */
28
- wrap?: FlexWrap;
29
- /**
30
- * The gap between each child element.
31
- */
32
- gap?: ResponsiveProp<GapProp>;
33
- /**
34
- * A divider element to be rendered between each child element.
35
- *
36
- * _Note: For the divider to be rendered, the child elements can't be loose strings or numbers.
37
- * Wrap them in a `div` or other element._
38
- */
39
- divider?: ReactNode;
40
- }
41
- type StackComponent = Polymorphic.ForwardRefComponent<'div', StackOptions>;
42
- export type StackProps = Polymorphic.PropsOf<StackComponent>;
43
- export declare const Stack: StackComponent;
44
- export {};
@@ -1,4 +0,0 @@
1
- export type AlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
2
- export type JustifyContent = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
3
- export type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
4
- export type FlexWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
@@ -1,6 +0,0 @@
1
- import type { ReactElement, ReactNode } from 'react';
2
- /**
3
- * Gets only the valid children of a component,
4
- * and ignores any nullish or falsy child.
5
- */
6
- export declare function getValidChildren(children: ReactNode): ReactElement<any, string | import("react").JSXElementConstructor<any>>[];
@@ -1 +0,0 @@
1
- export * from './switch';
@@ -1,35 +0,0 @@
1
- /// <reference types="react" />
2
- import * as RadixSwitch from '@radix-ui/react-switch';
3
- interface SwitchOptions {
4
- /**
5
- * The label for the switch
6
- */
7
- label: string;
8
- /**
9
- * The text that appears below the label
10
- * to provide additional guidance to the user
11
- */
12
- helperText?: string;
13
- /**
14
- * The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state.
15
- */
16
- isDefaultChecked?: boolean;
17
- /**
18
- * If `true`, the switch will be checked
19
- */
20
- isChecked?: boolean;
21
- /**
22
- * If `true`, the switch will be disabled and
23
- * cannot be interacted with
24
- */
25
- isDisabled?: boolean;
26
- /**
27
- * If `true`, indicates that the switch is required
28
- */
29
- isRequired?: boolean;
30
- onCheckedChange?: (isChecked: boolean) => void;
31
- }
32
- interface SwitchProps extends Omit<RadixSwitch.SwitchProps, 'asChild' | keyof SwitchOptions>, SwitchOptions {
33
- }
34
- export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<HTMLButtonElement>>;
35
- export {};
@@ -1 +0,0 @@
1
- export * from './text-field';
@@ -1,32 +0,0 @@
1
- /// <reference types="react" />
2
- import type { HTMLQdsProps } from '../../types';
3
- import type { InputBaseOptions } from '../primitives/input-base';
4
- interface TextFieldOptions extends InputBaseOptions {
5
- /**
6
- * The label for the input
7
- */
8
- label: string;
9
- /**
10
- * The error message to display if `isInvalid` is `true`
11
- */
12
- errorMessage?: string;
13
- /**
14
- * If `true`, the input will display an optional indicator.
15
- * If the `isRequired` prop is also `true`, this prop will be ignored.
16
- */
17
- isOptional?: boolean;
18
- /**
19
- * Text that provides additional guidance to the user
20
- */
21
- helperText?: string;
22
- /**
23
- * Suffixed text to display after the input.
24
- * This is useful for e.g. displaying units of measurement.
25
- */
26
- suffix?: string;
27
- }
28
- type OmittedProps = 'children' | 'readOnly' | 'size';
29
- export interface TextFieldProps extends Omit<HTMLQdsProps<'input'>, OmittedProps>, TextFieldOptions {
30
- }
31
- export declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement>>;
32
- export {};
@@ -1 +0,0 @@
1
- export * from './textarea';
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- import type { HTMLQdsProps } from '../../types';
3
- import type { TextareaBaseOptions } from '../primitives/textarea-base';
4
- interface TextareaOptions extends TextareaBaseOptions {
5
- /**
6
- * The label for the textarea field
7
- */
8
- label: string;
9
- /**
10
- * The error message to display if `isInvalid` is `true`
11
- */
12
- errorMessage?: string;
13
- /**
14
- * Text that provides additional guidance to the user
15
- */
16
- helperText?: string;
17
- /**
18
- * If `true`, the input will display an optional indicator.
19
- * If the `isRequired` prop is also `true`, this prop will be ignored.
20
- */
21
- isOptional?: boolean;
22
- }
23
- type OmittedProps = 'children' | 'readOnly' | 'size';
24
- export interface TextareaProps extends Omit<HTMLQdsProps<'textarea'>, OmittedProps>, TextareaOptions {
25
- }
26
- export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
27
- export {};
@@ -1 +0,0 @@
1
- export { toast } from './toast-store';
@@ -1,4 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- export declare function ToastProvider({ children }: {
3
- children: ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,44 +0,0 @@
1
- import type { ToastVariant } from './toast-styles';
2
- type Id = number | string;
3
- interface Toast {
4
- id: Id;
5
- /**
6
- * The text for the toast
7
- */
8
- text: string;
9
- /**
10
- * Sets the style variant of the toast, currently supports 'neutral' and 'negative'
11
- * @default 'neutral'
12
- */
13
- variant?: ToastVariant;
14
- }
15
- interface ToastOptions {
16
- /**
17
- * Unique identifier for the toast (can be used for removing it prematurely). If a toast with this
18
- * identifier already exists it will be removed before the new toast is added.
19
- * @default a random unique id will be set and returned
20
- */
21
- id?: Id;
22
- }
23
- type Subscriber = () => void;
24
- declare class ToastStore {
25
- toasts: Toast[];
26
- subscribers: Subscriber[];
27
- id: number;
28
- constructor();
29
- subscribe: (subscriber: Subscriber) => () => void;
30
- notify: () => void;
31
- add: (toast: Omit<Toast, 'id'> & ToastOptions) => Id;
32
- addNeutral: (text: string, options?: ToastOptions) => Id;
33
- addError: (text: string, options?: ToastOptions) => Id;
34
- remove: (id: Id) => void;
35
- removeAll: () => void;
36
- getSnapshot: () => Toast[];
37
- }
38
- export declare const toastStore: ToastStore;
39
- export declare const toast: ((text: string, options?: ToastOptions) => Id) & {
40
- error: (text: string, options?: ToastOptions) => Id;
41
- remove: (id: Id) => void;
42
- removeAll: () => void;
43
- };
44
- export {};
@@ -1,416 +0,0 @@
1
- import type { VariantProps } from '../../styles';
2
- export declare const getVariantStyles: (theme: {
3
- mediaQueries: {
4
- readonly smUp: "@media(min-width: 480px)";
5
- readonly mdUp: "@media(min-width: 768px)";
6
- readonly lgUp: "@media(min-width: 1024px)";
7
- readonly xlUp: "@media(min-width: 1280px)";
8
- readonly '2xlUp': "@media(min-width: 1536px)";
9
- };
10
- spacing: {
11
- '0x': string;
12
- '1x': string;
13
- '2x': string;
14
- '3x': string;
15
- '4x': string;
16
- '5x': string;
17
- '6x': string;
18
- '8x': string;
19
- '10x': string;
20
- '12x': string;
21
- '14x': string;
22
- '16x': string;
23
- '20x': string;
24
- '24x': string;
25
- };
26
- breakpoints: {
27
- readonly base: 0;
28
- readonly sm: 480;
29
- readonly md: 768;
30
- readonly lg: 1024;
31
- readonly xl: 1280;
32
- readonly '2xl': 1536;
33
- };
34
- zIndices: {
35
- hide: number;
36
- auto: string;
37
- base: number;
38
- docked: number;
39
- dropdown: number;
40
- sticky: number;
41
- banner: number;
42
- overlay: number;
43
- modal: number;
44
- popover: number;
45
- skipLink: number;
46
- toast: number;
47
- tooltip: number;
48
- };
49
- colors: {
50
- core: {
51
- black: string;
52
- white: string;
53
- gray90: string;
54
- gray80: string;
55
- gray70: string;
56
- gray60: string;
57
- gray50: string;
58
- gray40: string;
59
- gray30: string;
60
- gray20: string;
61
- gray10: string;
62
- pink: string;
63
- uiPink: string;
64
- uiPinkDark: string;
65
- uiPinkLight: string;
66
- brown: string;
67
- brownDark: string;
68
- brownLight: string;
69
- offWhite: string;
70
- offWhiteDark: string;
71
- offWhiteLight: string;
72
- softPink: string;
73
- warmYellow: string;
74
- softYellow: string;
75
- red90: string;
76
- red80: string;
77
- red70: string;
78
- red60: string;
79
- red50: string;
80
- red40: string;
81
- red30: string;
82
- red20: string;
83
- red10: string;
84
- green90: string;
85
- green80: string;
86
- green70: string;
87
- green60: string;
88
- green50: string;
89
- green40: string;
90
- green30: string;
91
- green20: string;
92
- green10: string;
93
- blue90: string;
94
- blue80: string;
95
- blue70: string;
96
- blue60: string;
97
- blue50: string;
98
- blue40: string;
99
- blue30: string;
100
- blue20: string;
101
- blue10: string;
102
- yellow90: string;
103
- yellow80: string;
104
- yellow70: string;
105
- yellow60: string;
106
- yellow50: string;
107
- yellow40: string;
108
- yellow30: string;
109
- yellow20: string;
110
- yellow10: string;
111
- blackAlpha20: string;
112
- };
113
- bg: {
114
- default: string;
115
- brandPrimary: string;
116
- brandPrimaryHover: string;
117
- brandPrimaryActive: string;
118
- brandSecondary: string;
119
- brandSecondaryHover: string;
120
- brandSecondaryActive: string;
121
- brandTertiary: string;
122
- brandTertiaryHover: string;
123
- brandTertiaryActive: string;
124
- negative: string;
125
- warning: string;
126
- positive: string;
127
- inset: string;
128
- backdrop: string;
129
- };
130
- text: {
131
- strong: string;
132
- default: string;
133
- subtle: string;
134
- disabled: string;
135
- negative: string;
136
- warning: string;
137
- positive: string;
138
- onBrandPrimary: string;
139
- onBrandSecondary: string;
140
- onBrandTertiary: string;
141
- };
142
- icon: {
143
- default: string;
144
- strong: string;
145
- subtle: string;
146
- disabled: string;
147
- negative: string;
148
- warning: string;
149
- positive: string;
150
- onBrandPrimary: string;
151
- onBrandSecondary: string;
152
- onBrandTertiary: string;
153
- };
154
- border: {
155
- default: string;
156
- defaultHover: string;
157
- defaultSelected: string;
158
- strong: string;
159
- subtle: string;
160
- negative: string;
161
- warning: string;
162
- positive: string;
163
- };
164
- };
165
- sizes: {
166
- 112: string;
167
- 128: string;
168
- 144: string;
169
- 160: string;
170
- 176: string;
171
- 192: string;
172
- 224: string;
173
- 256: string;
174
- 288: string;
175
- 320: string;
176
- 384: string;
177
- 448: string;
178
- 512: string;
179
- 576: string;
180
- 672: string;
181
- 768: string;
182
- 896: string;
183
- 1024: string;
184
- '0x': string;
185
- '1x': string;
186
- '2x': string;
187
- '3x': string;
188
- '4x': string;
189
- '5x': string;
190
- '6x': string;
191
- '8x': string;
192
- '10x': string;
193
- '12x': string;
194
- '14x': string;
195
- '16x': string;
196
- '20x': string;
197
- '24x': string;
198
- };
199
- radii: {
200
- none: string;
201
- '2xs': string;
202
- xs: string;
203
- sm: string;
204
- md: string;
205
- lg: string;
206
- xl: string;
207
- '2xl': string;
208
- full: string;
209
- };
210
- shadows: {
211
- none: string;
212
- sm: string;
213
- md: string;
214
- lg: string;
215
- xl: string;
216
- };
217
- typography: {
218
- display: {
219
- '3xl': {
220
- fontFamily: string;
221
- fontWeight: string;
222
- fontSize: string;
223
- lineHeight: string;
224
- letterSpacing: string;
225
- fontFeatureSettings: string;
226
- };
227
- '2xl': {
228
- fontFamily: string;
229
- fontWeight: string;
230
- fontSize: string;
231
- lineHeight: string;
232
- letterSpacing: string;
233
- fontFeatureSettings: string;
234
- };
235
- xl: {
236
- fontFamily: string;
237
- fontWeight: string;
238
- fontSize: string;
239
- lineHeight: string;
240
- letterSpacing: string;
241
- fontFeatureSettings: string;
242
- };
243
- lg: {
244
- fontFamily: string;
245
- fontWeight: string;
246
- fontSize: string;
247
- lineHeight: string;
248
- letterSpacing: string;
249
- fontFeatureSettings: string;
250
- };
251
- md: {
252
- fontFamily: string;
253
- fontWeight: string;
254
- fontSize: string;
255
- lineHeight: string;
256
- letterSpacing: string;
257
- fontFeatureSettings: string;
258
- };
259
- sm: {
260
- fontFamily: string;
261
- fontWeight: string;
262
- fontSize: string;
263
- lineHeight: string;
264
- letterSpacing: string;
265
- fontFeatureSettings: string;
266
- };
267
- xs: {
268
- fontFamily: string;
269
- fontWeight: string;
270
- fontSize: string;
271
- lineHeight: string;
272
- letterSpacing: string;
273
- fontFeatureSettings: string;
274
- };
275
- };
276
- title: {
277
- lg: {
278
- fontFamily: string;
279
- fontWeight: string;
280
- fontSize: string;
281
- lineHeight: string;
282
- letterSpacing: string;
283
- };
284
- md: {
285
- fontFamily: string;
286
- fontWeight: string;
287
- fontSize: string;
288
- lineHeight: string;
289
- letterSpacing: string;
290
- };
291
- sm: {
292
- fontFamily: string;
293
- fontWeight: string;
294
- fontSize: string;
295
- lineHeight: string;
296
- letterSpacing: string;
297
- };
298
- xs: {
299
- fontFamily: string;
300
- fontWeight: string;
301
- fontSize: string;
302
- lineHeight: string;
303
- letterSpacing: string;
304
- };
305
- '2xs': {
306
- fontFamily: string;
307
- fontWeight: string;
308
- fontSize: string;
309
- lineHeight: string;
310
- letterSpacing: string;
311
- };
312
- '3xs': {
313
- fontFamily: string;
314
- fontWeight: string;
315
- fontSize: string;
316
- lineHeight: string;
317
- letterSpacing: string;
318
- };
319
- };
320
- body: {
321
- xl: {
322
- fontFamily: string;
323
- fontWeight: string;
324
- fontSize: string;
325
- lineHeight: string;
326
- letterSpacing: string;
327
- };
328
- lg: {
329
- fontFamily: string;
330
- fontWeight: string;
331
- fontSize: string;
332
- lineHeight: string;
333
- letterSpacing: string;
334
- };
335
- md: {
336
- fontFamily: string;
337
- fontWeight: string;
338
- fontSize: string;
339
- lineHeight: string;
340
- letterSpacing: string;
341
- };
342
- sm: {
343
- fontFamily: string;
344
- fontWeight: string;
345
- fontSize: string;
346
- lineHeight: string;
347
- letterSpacing: string;
348
- };
349
- xs: {
350
- fontFamily: string;
351
- fontWeight: string;
352
- fontSize: string;
353
- lineHeight: string;
354
- letterSpacing: string;
355
- };
356
- };
357
- label: {
358
- md: {
359
- fontFamily: string;
360
- fontWeight: string;
361
- fontSize: string;
362
- lineHeight: string;
363
- letterSpacing: string;
364
- };
365
- sm: {
366
- fontFamily: string;
367
- fontWeight: string;
368
- fontSize: string;
369
- lineHeight: string;
370
- letterSpacing: string;
371
- };
372
- };
373
- button: {
374
- md: {
375
- fontFamily: string;
376
- fontWeight: string;
377
- fontSize: string;
378
- lineHeight: string;
379
- letterSpacing: string;
380
- };
381
- sm: {
382
- fontFamily: string;
383
- fontWeight: string;
384
- fontSize: string;
385
- lineHeight: string;
386
- letterSpacing: string;
387
- };
388
- };
389
- caption: {
390
- md: {
391
- fontFamily: string;
392
- fontWeight: string;
393
- fontSize: string;
394
- lineHeight: string;
395
- letterSpacing: string;
396
- };
397
- sm: {
398
- fontFamily: string;
399
- fontWeight: string;
400
- fontSize: string;
401
- lineHeight: string;
402
- letterSpacing: string;
403
- };
404
- };
405
- };
406
- }) => {
407
- neutral: {
408
- background: string;
409
- color: string;
410
- };
411
- error: {
412
- background: string;
413
- color: string;
414
- };
415
- };
416
- export type ToastVariant = VariantProps<typeof getVariantStyles>;