@qasa/qds-ui 0.1.0 → 0.1.2

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.
@@ -4,11 +4,37 @@ import type * as Polymorphic from '../../utils/polymorphic';
4
4
  import type { AlignItems, FlexDirection, JustifyContent, FlexWrap } from './stack.types';
5
5
  declare type GapProp = keyof Theme['spacing'];
6
6
  interface StackOptions {
7
+ /**
8
+ * The direction of the stack.
9
+ * @default 'column'
10
+ */
7
11
  direction?: FlexDirection;
12
+ /**
13
+ * The CSS `justify-content` property.
14
+ * Controls the alignment of items on the main axis.
15
+ */
8
16
  justifyContent?: JustifyContent;
17
+ /**
18
+ * The CSS `align-items` property.
19
+ * Controls the alignment of items on the cross axis.
20
+ */
9
21
  alignItems?: AlignItems;
22
+ /**
23
+ * The CSS `flex-wrap` property.
24
+ * Controls whether children can wrap onto multiple lines.
25
+ * @default 'nowrap'
26
+ */
10
27
  wrap?: FlexWrap;
28
+ /**
29
+ * The gap between each child element.
30
+ */
11
31
  gap?: GapProp;
32
+ /**
33
+ * A divider element to be rendered between each child element.
34
+ *
35
+ * _Note: For the divider to be rendered, the child elements can't be loose strings or numbers.
36
+ * Wrap them in a `div` or other element._
37
+ */
12
38
  divider?: ReactNode;
13
39
  }
14
40
  declare type StackComponent = Polymorphic.ForwardRefComponent<'div', StackOptions>;
@@ -29,9 +29,9 @@ interface FormFieldOptions {
29
29
  isRequired?: boolean;
30
30
  }
31
31
  declare type OmittedProps = 'children' | 'readOnly' | 'size';
32
- declare type UseFormFieldProps<T extends FormFieldElement> = Omit<HTMLQdsProps<T>, OmittedProps> & FormFieldOptions;
32
+ export declare type UseFormFieldProps<T extends FormFieldElement> = Omit<HTMLQdsProps<T>, OmittedProps> & FormFieldOptions;
33
33
  /**
34
- * Custom hook that returns props for a form field's label, inpu, helper text and error message.
34
+ * Custom hook that returns props for a form field's label, input, helper text and error message.
35
35
  * Meant to be used in conjunction with the `Input`, `Select` or `Textarea` component.
36
36
  *
37
37
  * Used internally by `TextField`, `Select` and `Textarea`.
package/dist/index.d.ts CHANGED
@@ -4844,11 +4844,37 @@ declare type FlexWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
4844
4844
 
4845
4845
  declare type GapProp = keyof Theme['spacing'];
4846
4846
  interface StackOptions {
4847
+ /**
4848
+ * The direction of the stack.
4849
+ * @default 'column'
4850
+ */
4847
4851
  direction?: FlexDirection;
4852
+ /**
4853
+ * The CSS `justify-content` property.
4854
+ * Controls the alignment of items on the main axis.
4855
+ */
4848
4856
  justifyContent?: JustifyContent;
4857
+ /**
4858
+ * The CSS `align-items` property.
4859
+ * Controls the alignment of items on the cross axis.
4860
+ */
4849
4861
  alignItems?: AlignItems;
4862
+ /**
4863
+ * The CSS `flex-wrap` property.
4864
+ * Controls whether children can wrap onto multiple lines.
4865
+ * @default 'nowrap'
4866
+ */
4850
4867
  wrap?: FlexWrap;
4868
+ /**
4869
+ * The gap between each child element.
4870
+ */
4851
4871
  gap?: GapProp;
4872
+ /**
4873
+ * A divider element to be rendered between each child element.
4874
+ *
4875
+ * _Note: For the divider to be rendered, the child elements can't be loose strings or numbers.
4876
+ * Wrap them in a `div` or other element._
4877
+ */
4852
4878
  divider?: ReactNode;
4853
4879
  }
4854
4880
  declare type StackComponent = ForwardRefComponent<'div', StackOptions>;
@@ -4945,7 +4971,7 @@ interface FormFieldOptions {
4945
4971
  declare type OmittedProps = 'children' | 'readOnly' | 'size';
4946
4972
  declare type UseFormFieldProps<T extends FormFieldElement> = Omit<HTMLQdsProps<T>, OmittedProps> & FormFieldOptions;
4947
4973
  /**
4948
- * Custom hook that returns props for a form field's label, inpu, helper text and error message.
4974
+ * Custom hook that returns props for a form field's label, input, helper text and error message.
4949
4975
  * Meant to be used in conjunction with the `Input`, `Select` or `Textarea` component.
4950
4976
  *
4951
4977
  * Used internally by `TextField`, `Select` and `Textarea`.
@@ -4975,4 +5001,4 @@ declare function useStableId(fixedId?: string | null): string;
4975
5001
  */
4976
5002
  declare const useSafeLayoutEffect: typeof useLayoutEffect;
4977
5003
 
4978
- export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Avatar, AvatarProps, BellIcon, BellSlashIcon, Button, ButtonProps, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CreateIconOptions, Divider, DividerProps, EllipsisIcon, EllipsisVerticalIcon, ForwardRefComponent, GlobalStyles, Heading, HeadingProps, HeartFilledIcon, HeartIcon, IconButton, IconButtonProps, IconProps, Image, ImageIcon, ImageProps, InputBase, InputBaseOptions, InputBaseProps, IntrinsicElement, Label, LabelProps, Link, LinkProps, LoadingDots, LoadingDotsProps, LocationDotIcon, MapIcon, OwnProps, Paragraph, ParagraphProps, PlusIcon, PropsOf, QdsProvider, SearchIcon, Select, SelectBase, SelectBaseOptions, SelectOptionProps, SelectProps, SettingsIcon, Spacer, SpacerProps, Stack, StackProps, StarFilledIcon, StarIcon, TextField, TextFieldProps, Textarea, TextareaBase, TextareaBaseOptions, TextareaBaseProps, TextareaProps, Theme, ThemeOverrides, TrashIcon, UseBreakpointOptions, UseBreakpointValueProps, UseImageProps, UserIcon, VariantProps, XmarkIcon, createIcon, createStyle, createStyleVariants, getFormFieldBaseStyles, overrideTheme, pxToRem, theme, useBreakpoint, useBreakpointValue, useFormField, useImage, useSafeLayoutEffect, useStableId };
5004
+ export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Avatar, AvatarProps, BellIcon, BellSlashIcon, Button, ButtonProps, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CreateIconOptions, Divider, DividerProps, EllipsisIcon, EllipsisVerticalIcon, ForwardRefComponent, GlobalStyles, Heading, HeadingProps, HeartFilledIcon, HeartIcon, IconButton, IconButtonProps, IconProps, Image, ImageIcon, ImageProps, InputBase, InputBaseOptions, InputBaseProps, IntrinsicElement, Label, LabelProps, Link, LinkProps, LoadingDots, LoadingDotsProps, LocationDotIcon, MapIcon, OwnProps, Paragraph, ParagraphProps, PlusIcon, PropsOf, QdsProvider, SearchIcon, Select, SelectBase, SelectBaseOptions, SelectOptionProps, SelectProps, SettingsIcon, Spacer, SpacerProps, Stack, StackProps, StarFilledIcon, StarIcon, TextField, TextFieldProps, Textarea, TextareaBase, TextareaBaseOptions, TextareaBaseProps, TextareaProps, Theme, ThemeOverrides, TrashIcon, UseBreakpointOptions, UseBreakpointValueProps, UseFormFieldProps, UseImageProps, UserIcon, VariantProps, XmarkIcon, createIcon, createStyle, createStyleVariants, getFormFieldBaseStyles, overrideTheme, pxToRem, theme, useBreakpoint, useBreakpointValue, useFormField, useImage, useSafeLayoutEffect, useStableId };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qasa/qds-ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "license": "UNLICENSED",
5
5
  "publishConfig": {
6
6
  "access": "public"