@qasa/qds-ui 0.12.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 (229) hide show
  1. package/dist/index.d.mts +5416 -0
  2. package/dist/index.d.ts +1 -2
  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 +14 -14
  8. package/dist/cjs/index.js +0 -9236
  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 -33
  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 -909
  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 -48
  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 -882
  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 -445
  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 -425
  50. package/dist/cjs/types/components/paragraph/index.d.ts +0 -1
  51. package/dist/cjs/types/components/paragraph/paragraph.d.ts +0 -476
  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 -417
  84. package/dist/cjs/types/components/toast/toast.d.ts +0 -12
  85. package/dist/cjs/types/hooks/index.d.ts +0 -5
  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-responsive-prop.d.ts +0 -16
  90. package/dist/cjs/types/hooks/use-safe-layout-effect.d.ts +0 -9
  91. package/dist/cjs/types/hooks/use-stable-id.d.ts +0 -4
  92. package/dist/cjs/types/i18n/locale-context.d.ts +0 -12
  93. package/dist/cjs/types/i18n/locales.d.ts +0 -8
  94. package/dist/cjs/types/i18n/use-translation.d.ts +0 -6
  95. package/dist/cjs/types/index.d.ts +0 -6
  96. package/dist/cjs/types/qds-provider.d.ts +0 -12
  97. package/dist/cjs/types/styles/common-styles.d.ts +0 -451
  98. package/dist/cjs/types/styles/css-reset.d.ts +0 -4
  99. package/dist/cjs/types/styles/css-utils.d.ts +0 -19
  100. package/dist/cjs/types/styles/global-styles.d.ts +0 -4
  101. package/dist/cjs/types/styles/index.d.ts +0 -3
  102. package/dist/cjs/types/theme/foundations/breakpoints.d.ts +0 -8
  103. package/dist/cjs/types/theme/foundations/colors.d.ts +0 -117
  104. package/dist/cjs/types/theme/foundations/index.d.ts +0 -411
  105. package/dist/cjs/types/theme/foundations/radius.d.ts +0 -20
  106. package/dist/cjs/types/theme/foundations/shadows.d.ts +0 -7
  107. package/dist/cjs/types/theme/foundations/sizes.d.ts +0 -34
  108. package/dist/cjs/types/theme/foundations/spacing.d.ts +0 -30
  109. package/dist/cjs/types/theme/foundations/typography.d.ts +0 -189
  110. package/dist/cjs/types/theme/foundations/z-index.d.ts +0 -28
  111. package/dist/cjs/types/theme/index.d.ts +0 -2
  112. package/dist/cjs/types/theme/theme-tools.d.ts +0 -421
  113. package/dist/cjs/types/theme/theme.d.ts +0 -407
  114. package/dist/cjs/types/types.d.ts +0 -5
  115. package/dist/cjs/types/utils/html-attributes.d.ts +0 -4
  116. package/dist/cjs/types/utils/merge-refs.d.ts +0 -5
  117. package/dist/cjs/types/utils/object.d.ts +0 -1
  118. package/dist/cjs/types/utils/polymorphic.d.ts +0 -41
  119. package/dist/esm/index.js +0 -9236
  120. package/dist/esm/index.js.map +0 -1
  121. package/dist/esm/types/components/_internal/form-parts.d.ts +0 -10
  122. package/dist/esm/types/components/_internal/index.d.ts +0 -1
  123. package/dist/esm/types/components/avatar/avatar.d.ts +0 -33
  124. package/dist/esm/types/components/avatar/index.d.ts +0 -1
  125. package/dist/esm/types/components/button/button-icon.d.ts +0 -10
  126. package/dist/esm/types/components/button/button-styles.d.ts +0 -909
  127. package/dist/esm/types/components/button/button-types.d.ts +0 -44
  128. package/dist/esm/types/components/button/button.d.ts +0 -6
  129. package/dist/esm/types/components/button/index.d.ts +0 -1
  130. package/dist/esm/types/components/checkbox/checkbox.d.ts +0 -78
  131. package/dist/esm/types/components/checkbox/index.d.ts +0 -1
  132. package/dist/esm/types/components/display-text/display-text.d.ts +0 -30
  133. package/dist/esm/types/components/display-text/index.d.ts +0 -1
  134. package/dist/esm/types/components/divider/divider.d.ts +0 -14
  135. package/dist/esm/types/components/divider/index.d.ts +0 -1
  136. package/dist/esm/types/components/dropdown-menu/dropdown-menu-content.d.ts +0 -67
  137. package/dist/esm/types/components/dropdown-menu/dropdown-menu-divider.d.ts +0 -4
  138. package/dist/esm/types/components/dropdown-menu/dropdown-menu-item.d.ts +0 -28
  139. package/dist/esm/types/components/dropdown-menu/dropdown-menu-trigger.d.ts +0 -5
  140. package/dist/esm/types/components/dropdown-menu/dropdown-menu.d.ts +0 -29
  141. package/dist/esm/types/components/dropdown-menu/index.d.ts +0 -1
  142. package/dist/esm/types/components/heading/heading.d.ts +0 -32
  143. package/dist/esm/types/components/heading/index.d.ts +0 -1
  144. package/dist/esm/types/components/hint-box/hint-box.d.ts +0 -10
  145. package/dist/esm/types/components/hint-box/index.d.ts +0 -1
  146. package/dist/esm/types/components/icon/create-icon.d.ts +0 -41
  147. package/dist/esm/types/components/icon/create-lucide-icon.d.ts +0 -4
  148. package/dist/esm/types/components/icon/icon.types.d.ts +0 -22
  149. package/dist/esm/types/components/icon/icons.d.ts +0 -48
  150. package/dist/esm/types/components/icon/index.d.ts +0 -4
  151. package/dist/esm/types/components/icon-button/icon-button-styles.d.ts +0 -882
  152. package/dist/esm/types/components/icon-button/icon-button.d.ts +0 -32
  153. package/dist/esm/types/components/icon-button/index.d.ts +0 -1
  154. package/dist/esm/types/components/index.d.ts +0 -23
  155. package/dist/esm/types/components/label/index.d.ts +0 -1
  156. package/dist/esm/types/components/label/label.d.ts +0 -445
  157. package/dist/esm/types/components/link/index.d.ts +0 -1
  158. package/dist/esm/types/components/link/link.d.ts +0 -15
  159. package/dist/esm/types/components/loading-dots/index.d.ts +0 -1
  160. package/dist/esm/types/components/loading-dots/loading-dots.d.ts +0 -425
  161. package/dist/esm/types/components/paragraph/index.d.ts +0 -1
  162. package/dist/esm/types/components/paragraph/paragraph.d.ts +0 -476
  163. package/dist/esm/types/components/primitives/index.d.ts +0 -3
  164. package/dist/esm/types/components/primitives/input-base/index.d.ts +0 -1
  165. package/dist/esm/types/components/primitives/input-base/input-base.d.ts +0 -21
  166. package/dist/esm/types/components/primitives/select-base/index.d.ts +0 -1
  167. package/dist/esm/types/components/primitives/select-base/select-base.d.ts +0 -30
  168. package/dist/esm/types/components/primitives/textarea-base/index.d.ts +0 -1
  169. package/dist/esm/types/components/primitives/textarea-base/textarea-base.d.ts +0 -36
  170. package/dist/esm/types/components/radio-group/index.d.ts +0 -1
  171. package/dist/esm/types/components/radio-group/radio-card.d.ts +0 -26
  172. package/dist/esm/types/components/radio-group/radio-group-context.d.ts +0 -16
  173. package/dist/esm/types/components/radio-group/radio-group-label.d.ts +0 -4
  174. package/dist/esm/types/components/radio-group/radio-group.d.ts +0 -50
  175. package/dist/esm/types/components/radio-group/radio-indicator.d.ts +0 -10
  176. package/dist/esm/types/components/select/index.d.ts +0 -1
  177. package/dist/esm/types/components/select/select-option.d.ts +0 -10
  178. package/dist/esm/types/components/select/select.d.ts +0 -25
  179. package/dist/esm/types/components/spacer/index.d.ts +0 -1
  180. package/dist/esm/types/components/spacer/spacer.d.ts +0 -12
  181. package/dist/esm/types/components/stack/index.d.ts +0 -1
  182. package/dist/esm/types/components/stack/stack.d.ts +0 -44
  183. package/dist/esm/types/components/stack/stack.types.d.ts +0 -4
  184. package/dist/esm/types/components/stack/stack.utils.d.ts +0 -6
  185. package/dist/esm/types/components/switch/index.d.ts +0 -1
  186. package/dist/esm/types/components/switch/switch.d.ts +0 -35
  187. package/dist/esm/types/components/text-field/index.d.ts +0 -1
  188. package/dist/esm/types/components/text-field/text-field.d.ts +0 -32
  189. package/dist/esm/types/components/textarea/index.d.ts +0 -1
  190. package/dist/esm/types/components/textarea/textarea.d.ts +0 -27
  191. package/dist/esm/types/components/toast/index.d.ts +0 -1
  192. package/dist/esm/types/components/toast/toast-provider.d.ts +0 -4
  193. package/dist/esm/types/components/toast/toast-store.d.ts +0 -44
  194. package/dist/esm/types/components/toast/toast-styles.d.ts +0 -417
  195. package/dist/esm/types/components/toast/toast.d.ts +0 -12
  196. package/dist/esm/types/hooks/index.d.ts +0 -5
  197. package/dist/esm/types/hooks/use-breakpoint-value.d.ts +0 -16
  198. package/dist/esm/types/hooks/use-breakpoint.d.ts +0 -15
  199. package/dist/esm/types/hooks/use-form-field.d.ts +0 -49
  200. package/dist/esm/types/hooks/use-responsive-prop.d.ts +0 -16
  201. package/dist/esm/types/hooks/use-safe-layout-effect.d.ts +0 -9
  202. package/dist/esm/types/hooks/use-stable-id.d.ts +0 -4
  203. package/dist/esm/types/i18n/locale-context.d.ts +0 -12
  204. package/dist/esm/types/i18n/locales.d.ts +0 -8
  205. package/dist/esm/types/i18n/use-translation.d.ts +0 -6
  206. package/dist/esm/types/index.d.ts +0 -6
  207. package/dist/esm/types/qds-provider.d.ts +0 -12
  208. package/dist/esm/types/styles/common-styles.d.ts +0 -451
  209. package/dist/esm/types/styles/css-reset.d.ts +0 -4
  210. package/dist/esm/types/styles/css-utils.d.ts +0 -19
  211. package/dist/esm/types/styles/global-styles.d.ts +0 -4
  212. package/dist/esm/types/styles/index.d.ts +0 -3
  213. package/dist/esm/types/theme/foundations/breakpoints.d.ts +0 -8
  214. package/dist/esm/types/theme/foundations/colors.d.ts +0 -117
  215. package/dist/esm/types/theme/foundations/index.d.ts +0 -411
  216. package/dist/esm/types/theme/foundations/radius.d.ts +0 -20
  217. package/dist/esm/types/theme/foundations/shadows.d.ts +0 -7
  218. package/dist/esm/types/theme/foundations/sizes.d.ts +0 -34
  219. package/dist/esm/types/theme/foundations/spacing.d.ts +0 -30
  220. package/dist/esm/types/theme/foundations/typography.d.ts +0 -189
  221. package/dist/esm/types/theme/foundations/z-index.d.ts +0 -28
  222. package/dist/esm/types/theme/index.d.ts +0 -2
  223. package/dist/esm/types/theme/theme-tools.d.ts +0 -421
  224. package/dist/esm/types/theme/theme.d.ts +0 -407
  225. package/dist/esm/types/types.d.ts +0 -5
  226. package/dist/esm/types/utils/html-attributes.d.ts +0 -4
  227. package/dist/esm/types/utils/merge-refs.d.ts +0 -5
  228. package/dist/esm/types/utils/object.d.ts +0 -1
  229. 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,417 +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
- blackAlpha5: string;
112
- blackAlpha20: string;
113
- };
114
- bg: {
115
- default: string;
116
- brandPrimary: string;
117
- brandPrimaryHover: string;
118
- brandPrimaryActive: string;
119
- brandSecondary: string;
120
- brandSecondaryHover: string;
121
- brandSecondaryActive: string;
122
- brandTertiary: string;
123
- brandTertiaryHover: string;
124
- brandTertiaryActive: string;
125
- negative: string;
126
- warning: string;
127
- positive: string;
128
- inset: string;
129
- backdrop: string;
130
- };
131
- text: {
132
- strong: string;
133
- default: string;
134
- subtle: string;
135
- disabled: string;
136
- negative: string;
137
- warning: string;
138
- positive: string;
139
- onBrandPrimary: string;
140
- onBrandSecondary: string;
141
- onBrandTertiary: string;
142
- };
143
- icon: {
144
- default: string;
145
- strong: string;
146
- subtle: string;
147
- disabled: string;
148
- negative: string;
149
- warning: string;
150
- positive: string;
151
- onBrandPrimary: string;
152
- onBrandSecondary: string;
153
- onBrandTertiary: string;
154
- };
155
- border: {
156
- default: string;
157
- defaultHover: string;
158
- defaultSelected: string;
159
- strong: string;
160
- subtle: string;
161
- negative: string;
162
- warning: string;
163
- positive: string;
164
- };
165
- };
166
- sizes: {
167
- 112: string;
168
- 128: string;
169
- 144: string;
170
- 160: string;
171
- 176: string;
172
- 192: string;
173
- 224: string;
174
- 256: string;
175
- 288: string;
176
- 320: string;
177
- 384: string;
178
- 448: string;
179
- 512: string;
180
- 576: string;
181
- 672: string;
182
- 768: string;
183
- 896: string;
184
- 1024: string;
185
- '0x': string;
186
- '1x': string;
187
- '2x': string;
188
- '3x': string;
189
- '4x': string;
190
- '5x': string;
191
- '6x': string;
192
- '8x': string;
193
- '10x': string;
194
- '12x': string;
195
- '14x': string;
196
- '16x': string;
197
- '20x': string;
198
- '24x': string;
199
- };
200
- radii: {
201
- none: string;
202
- '2xs': string;
203
- xs: string;
204
- sm: string;
205
- md: string;
206
- lg: string;
207
- xl: string;
208
- '2xl': string;
209
- full: string;
210
- };
211
- shadows: {
212
- none: string;
213
- sm: string;
214
- md: string;
215
- lg: string;
216
- xl: string;
217
- };
218
- typography: {
219
- display: {
220
- '3xl': {
221
- fontFamily: string;
222
- fontWeight: string;
223
- fontSize: string;
224
- lineHeight: string;
225
- letterSpacing: string;
226
- fontFeatureSettings: string;
227
- };
228
- '2xl': {
229
- fontFamily: string;
230
- fontWeight: string;
231
- fontSize: string;
232
- lineHeight: string;
233
- letterSpacing: string;
234
- fontFeatureSettings: string;
235
- };
236
- xl: {
237
- fontFamily: string;
238
- fontWeight: string;
239
- fontSize: string;
240
- lineHeight: string;
241
- letterSpacing: string;
242
- fontFeatureSettings: string;
243
- };
244
- lg: {
245
- fontFamily: string;
246
- fontWeight: string;
247
- fontSize: string;
248
- lineHeight: string;
249
- letterSpacing: string;
250
- fontFeatureSettings: string;
251
- };
252
- md: {
253
- fontFamily: string;
254
- fontWeight: string;
255
- fontSize: string;
256
- lineHeight: string;
257
- letterSpacing: string;
258
- fontFeatureSettings: string;
259
- };
260
- sm: {
261
- fontFamily: string;
262
- fontWeight: string;
263
- fontSize: string;
264
- lineHeight: string;
265
- letterSpacing: string;
266
- fontFeatureSettings: string;
267
- };
268
- xs: {
269
- fontFamily: string;
270
- fontWeight: string;
271
- fontSize: string;
272
- lineHeight: string;
273
- letterSpacing: string;
274
- fontFeatureSettings: string;
275
- };
276
- };
277
- title: {
278
- lg: {
279
- fontFamily: string;
280
- fontWeight: string;
281
- fontSize: string;
282
- lineHeight: string;
283
- letterSpacing: string;
284
- };
285
- md: {
286
- fontFamily: string;
287
- fontWeight: string;
288
- fontSize: string;
289
- lineHeight: string;
290
- letterSpacing: string;
291
- };
292
- sm: {
293
- fontFamily: string;
294
- fontWeight: string;
295
- fontSize: string;
296
- lineHeight: string;
297
- letterSpacing: string;
298
- };
299
- xs: {
300
- fontFamily: string;
301
- fontWeight: string;
302
- fontSize: string;
303
- lineHeight: string;
304
- letterSpacing: string;
305
- };
306
- '2xs': {
307
- fontFamily: string;
308
- fontWeight: string;
309
- fontSize: string;
310
- lineHeight: string;
311
- letterSpacing: string;
312
- };
313
- '3xs': {
314
- fontFamily: string;
315
- fontWeight: string;
316
- fontSize: string;
317
- lineHeight: string;
318
- letterSpacing: string;
319
- };
320
- };
321
- body: {
322
- xl: {
323
- fontFamily: string;
324
- fontWeight: string;
325
- fontSize: string;
326
- lineHeight: string;
327
- letterSpacing: string;
328
- };
329
- lg: {
330
- fontFamily: string;
331
- fontWeight: string;
332
- fontSize: string;
333
- lineHeight: string;
334
- letterSpacing: string;
335
- };
336
- md: {
337
- fontFamily: string;
338
- fontWeight: string;
339
- fontSize: string;
340
- lineHeight: string;
341
- letterSpacing: string;
342
- };
343
- sm: {
344
- fontFamily: string;
345
- fontWeight: string;
346
- fontSize: string;
347
- lineHeight: string;
348
- letterSpacing: string;
349
- };
350
- xs: {
351
- fontFamily: string;
352
- fontWeight: string;
353
- fontSize: string;
354
- lineHeight: string;
355
- letterSpacing: string;
356
- };
357
- };
358
- label: {
359
- md: {
360
- fontFamily: string;
361
- fontWeight: string;
362
- fontSize: string;
363
- lineHeight: string;
364
- letterSpacing: string;
365
- };
366
- sm: {
367
- fontFamily: string;
368
- fontWeight: string;
369
- fontSize: string;
370
- lineHeight: string;
371
- letterSpacing: string;
372
- };
373
- };
374
- button: {
375
- md: {
376
- fontFamily: string;
377
- fontWeight: string;
378
- fontSize: string;
379
- lineHeight: string;
380
- letterSpacing: string;
381
- };
382
- sm: {
383
- fontFamily: string;
384
- fontWeight: string;
385
- fontSize: string;
386
- lineHeight: string;
387
- letterSpacing: string;
388
- };
389
- };
390
- caption: {
391
- md: {
392
- fontFamily: string;
393
- fontWeight: string;
394
- fontSize: string;
395
- lineHeight: string;
396
- letterSpacing: string;
397
- };
398
- sm: {
399
- fontFamily: string;
400
- fontWeight: string;
401
- fontSize: string;
402
- lineHeight: string;
403
- letterSpacing: string;
404
- };
405
- };
406
- };
407
- }) => {
408
- neutral: {
409
- background: string;
410
- color: string;
411
- };
412
- error: {
413
- background: string;
414
- color: string;
415
- };
416
- };
417
- export type ToastVariant = VariantProps<typeof getVariantStyles>;