@qasa/qds-ui 0.11.0 → 0.12.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 (36) hide show
  1. package/dist/cjs/index.js +1322 -1323
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/avatar/avatar.d.ts +2 -1
  4. package/dist/cjs/types/components/button/button-styles.d.ts +2 -0
  5. package/dist/cjs/types/components/icon/icons.d.ts +1 -0
  6. package/dist/cjs/types/components/icon-button/icon-button-styles.d.ts +2 -0
  7. package/dist/cjs/types/components/label/label.d.ts +1 -0
  8. package/dist/cjs/types/components/loading-dots/loading-dots.d.ts +1 -0
  9. package/dist/cjs/types/components/paragraph/paragraph.d.ts +1 -0
  10. package/dist/cjs/types/components/toast/toast-styles.d.ts +1 -0
  11. package/dist/cjs/types/hooks/index.d.ts +0 -1
  12. package/dist/cjs/types/styles/common-styles.d.ts +1 -0
  13. package/dist/cjs/types/theme/foundations/colors.d.ts +1 -0
  14. package/dist/cjs/types/theme/foundations/index.d.ts +1 -0
  15. package/dist/cjs/types/theme/theme-tools.d.ts +1 -0
  16. package/dist/cjs/types/theme/theme.d.ts +1 -0
  17. package/dist/esm/index.js +1322 -1323
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/types/components/avatar/avatar.d.ts +2 -1
  20. package/dist/esm/types/components/button/button-styles.d.ts +2 -0
  21. package/dist/esm/types/components/icon/icons.d.ts +1 -0
  22. package/dist/esm/types/components/icon-button/icon-button-styles.d.ts +2 -0
  23. package/dist/esm/types/components/label/label.d.ts +1 -0
  24. package/dist/esm/types/components/loading-dots/loading-dots.d.ts +1 -0
  25. package/dist/esm/types/components/paragraph/paragraph.d.ts +1 -0
  26. package/dist/esm/types/components/toast/toast-styles.d.ts +1 -0
  27. package/dist/esm/types/hooks/index.d.ts +0 -1
  28. package/dist/esm/types/styles/common-styles.d.ts +1 -0
  29. package/dist/esm/types/theme/foundations/colors.d.ts +1 -0
  30. package/dist/esm/types/theme/foundations/index.d.ts +1 -0
  31. package/dist/esm/types/theme/theme-tools.d.ts +1 -0
  32. package/dist/esm/types/theme/theme.d.ts +1 -0
  33. package/dist/index.d.ts +14 -11
  34. package/package.json +3 -2
  35. package/dist/cjs/types/hooks/use-image.d.ts +0 -10
  36. package/dist/esm/types/hooks/use-image.d.ts +0 -10
@@ -17,7 +17,8 @@ interface AvatarOptions {
17
17
  */
18
18
  src?: string;
19
19
  /**
20
- * Name of the user. Important for accessibility.
20
+ * Name of the user. Used to generate the initials
21
+ * if no image is provided, but also for accessibility.
21
22
  */
22
23
  name?: string;
23
24
  /**
@@ -108,6 +108,7 @@ export declare const getSizeStyles: (theme: {
108
108
  yellow30: string;
109
109
  yellow20: string;
110
110
  yellow10: string;
111
+ blackAlpha5: string;
111
112
  blackAlpha20: string;
112
113
  };
113
114
  bg: {
@@ -565,6 +566,7 @@ export declare const getVariantStyles: (theme: {
565
566
  yellow30: string;
566
567
  yellow20: string;
567
568
  yellow10: string;
569
+ blackAlpha5: string;
568
570
  blackAlpha20: string;
569
571
  };
570
572
  bg: {
@@ -23,6 +23,7 @@ export declare const HelpCircleIcon: import("react").ForwardRefExoticComponent<i
23
23
  export declare const HistoryIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
24
24
  export declare const HomeIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
25
25
  export declare const ImageIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
26
+ export declare const InfoIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
26
27
  export declare const ListIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
27
28
  export declare const ListFilterIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
28
29
  export declare const LogOutIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -107,6 +107,7 @@ export declare const getSizeStyles: (theme: {
107
107
  yellow30: string;
108
108
  yellow20: string;
109
109
  yellow10: string;
110
+ blackAlpha5: string;
110
111
  blackAlpha20: string;
111
112
  };
112
113
  bg: {
@@ -525,6 +526,7 @@ export declare const getVariantStyles: (theme: {
525
526
  yellow30: string;
526
527
  yellow20: string;
527
528
  yellow10: string;
529
+ blackAlpha5: string;
528
530
  blackAlpha20: string;
529
531
  };
530
532
  bg: {
@@ -111,6 +111,7 @@ declare const getSizeStyles: (theme: {
111
111
  yellow30: string;
112
112
  yellow20: string;
113
113
  yellow10: string;
114
+ blackAlpha5: string;
114
115
  blackAlpha20: string;
115
116
  };
116
117
  bg: {
@@ -111,6 +111,7 @@ declare const getSizeStyles: (theme: {
111
111
  yellow30: string;
112
112
  yellow20: string;
113
113
  yellow10: string;
114
+ blackAlpha5: string;
114
115
  blackAlpha20: string;
115
116
  };
116
117
  bg: {
@@ -111,6 +111,7 @@ declare const getSizeStyles: (theme: {
111
111
  yellow30: string;
112
112
  yellow20: string;
113
113
  yellow10: string;
114
+ blackAlpha5: string;
114
115
  blackAlpha20: string;
115
116
  };
116
117
  bg: {
@@ -108,6 +108,7 @@ export declare const getVariantStyles: (theme: {
108
108
  yellow30: string;
109
109
  yellow20: string;
110
110
  yellow10: string;
111
+ blackAlpha5: string;
111
112
  blackAlpha20: string;
112
113
  };
113
114
  bg: {
@@ -1,6 +1,5 @@
1
1
  export * from './use-breakpoint';
2
2
  export * from './use-breakpoint-value';
3
- export * from './use-image';
4
3
  export * from './use-form-field';
5
4
  export * from './use-stable-id';
6
5
  export * from './use-safe-layout-effect';
@@ -107,6 +107,7 @@ export declare const getFormFieldBaseStyles: (theme: {
107
107
  yellow30: string;
108
108
  yellow20: string;
109
109
  yellow10: string;
110
+ blackAlpha5: string;
110
111
  blackAlpha20: string;
111
112
  };
112
113
  bg: {
@@ -60,6 +60,7 @@ export declare const colors: {
60
60
  yellow30: string;
61
61
  yellow20: string;
62
62
  yellow10: string;
63
+ blackAlpha5: string;
63
64
  blackAlpha20: string;
64
65
  };
65
66
  bg: {
@@ -112,6 +112,7 @@ export declare const foundations: {
112
112
  yellow30: string;
113
113
  yellow20: string;
114
114
  yellow10: string;
115
+ blackAlpha5: string;
115
116
  blackAlpha20: string;
116
117
  };
117
118
  bg: {
@@ -264,6 +264,7 @@ export declare const overrideTheme: (overrides: ThemeOverrides) => {
264
264
  yellow30: string;
265
265
  yellow20: string;
266
266
  yellow10: string;
267
+ blackAlpha5: string;
267
268
  blackAlpha20: string;
268
269
  };
269
270
  bg: {
@@ -107,6 +107,7 @@ export declare const theme: {
107
107
  yellow30: string;
108
108
  yellow20: string;
109
109
  yellow10: string;
110
+ blackAlpha5: string;
110
111
  blackAlpha20: string;
111
112
  };
112
113
  bg: {
package/dist/index.d.ts CHANGED
@@ -121,6 +121,7 @@ declare const theme: {
121
121
  yellow30: string;
122
122
  yellow20: string;
123
123
  yellow10: string;
124
+ blackAlpha5: string;
124
125
  blackAlpha20: string;
125
126
  };
126
127
  bg: {
@@ -688,6 +689,7 @@ declare const overrideTheme: (overrides: ThemeOverrides) => {
688
689
  yellow30: string;
689
690
  yellow20: string;
690
691
  yellow10: string;
692
+ blackAlpha5: string;
691
693
  blackAlpha20: string;
692
694
  };
693
695
  bg: {
@@ -875,7 +877,8 @@ interface AvatarOptions {
875
877
  */
876
878
  src?: string;
877
879
  /**
878
- * Name of the user. Important for accessibility.
880
+ * Name of the user. Used to generate the initials
881
+ * if no image is provided, but also for accessibility.
879
882
  */
880
883
  name?: string;
881
884
  /**
@@ -1010,6 +1013,7 @@ declare const HelpCircleIcon: react.ForwardRefExoticComponent<IconProps & react.
1010
1013
  declare const HistoryIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1011
1014
  declare const HomeIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1012
1015
  declare const ImageIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1016
+ declare const InfoIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1013
1017
  declare const ListIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1014
1018
  declare const ListFilterIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1015
1019
  declare const LogOutIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
@@ -1164,6 +1168,7 @@ declare const getFormFieldBaseStyles: (theme: {
1164
1168
  yellow30: string;
1165
1169
  yellow20: string;
1166
1170
  yellow10: string;
1171
+ blackAlpha5: string;
1167
1172
  blackAlpha20: string;
1168
1173
  };
1169
1174
  bg: {
@@ -1615,6 +1620,7 @@ declare const getSizeStyles$4: (theme: {
1615
1620
  yellow30: string;
1616
1621
  yellow20: string;
1617
1622
  yellow10: string;
1623
+ blackAlpha5: string;
1618
1624
  blackAlpha20: string;
1619
1625
  };
1620
1626
  bg: {
@@ -2072,6 +2078,7 @@ declare const getVariantStyles$1: (theme: {
2072
2078
  yellow30: string;
2073
2079
  yellow20: string;
2074
2080
  yellow10: string;
2081
+ blackAlpha5: string;
2075
2082
  blackAlpha20: string;
2076
2083
  };
2077
2084
  bg: {
@@ -2836,6 +2843,7 @@ declare const getSizeStyles$3: (theme: {
2836
2843
  yellow30: string;
2837
2844
  yellow20: string;
2838
2845
  yellow10: string;
2846
+ blackAlpha5: string;
2839
2847
  blackAlpha20: string;
2840
2848
  };
2841
2849
  bg: {
@@ -3254,6 +3262,7 @@ declare const getVariantStyles: (theme: {
3254
3262
  yellow30: string;
3255
3263
  yellow20: string;
3256
3264
  yellow10: string;
3265
+ blackAlpha5: string;
3257
3266
  blackAlpha20: string;
3258
3267
  };
3259
3268
  bg: {
@@ -3791,6 +3800,7 @@ declare const getSizeStyles$2: (theme: {
3791
3800
  yellow30: string;
3792
3801
  yellow20: string;
3793
3802
  yellow10: string;
3803
+ blackAlpha5: string;
3794
3804
  blackAlpha20: string;
3795
3805
  };
3796
3806
  bg: {
@@ -4245,6 +4255,7 @@ declare const getSizeStyles$1: (theme: {
4245
4255
  yellow30: string;
4246
4256
  yellow20: string;
4247
4257
  yellow10: string;
4258
+ blackAlpha5: string;
4248
4259
  blackAlpha20: string;
4249
4260
  };
4250
4261
  bg: {
@@ -4665,6 +4676,7 @@ declare const getSizeStyles: (theme: {
4665
4676
  yellow30: string;
4666
4677
  yellow20: string;
4667
4678
  yellow10: string;
4679
+ blackAlpha5: string;
4668
4680
  blackAlpha20: string;
4669
4681
  };
4670
4682
  bg: {
@@ -5341,15 +5353,6 @@ type UseBreakpointValueProps<T> = BreakpointsConfig<T>;
5341
5353
  */
5342
5354
  declare function useBreakpointValue<T>(values: UseBreakpointValueProps<T>, options?: UseBreakpointOptions): T;
5343
5355
 
5344
- type LoadingStatus = 'loading' | 'loaded' | 'error' | 'pending';
5345
- interface UseImageProps {
5346
- src?: string;
5347
- loading?: HTMLQdsProps<'img'>['loading'];
5348
- }
5349
- declare const useImage: ({ src, loading }: UseImageProps) => {
5350
- loadingStatus: LoadingStatus;
5351
- };
5352
-
5353
5356
  type FormFieldElement = 'input' | 'select' | 'textarea';
5354
5357
  type PropGetter<T extends ElementType = LegitimateAny> = (props?: HTMLQdsProps<T>) => Record<string, unknown>;
5355
5358
  interface FormFieldOptions {
@@ -5411,4 +5414,4 @@ declare function useStableId(fixedId?: string | null): string;
5411
5414
  */
5412
5415
  declare const useSafeLayoutEffect: typeof useLayoutEffect;
5413
5416
 
5414
- export { AlertCircleIcon, AlertTriangleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Avatar, AvatarProps, BellIcon, BellOffIcon, BookmarkIcon, Button, ButtonProps, CalendarIcon, CameraIcon, CheckCircleIcon, CheckIcon, Checkbox, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CreateIconOptions, DisplayText, DisplayTextProps, Divider, DividerProps, DropdownMenu, DropdownMenuContentProps, DropdownMenuDividerProps, DropdownMenuItemProps, DropdownMenuRootProps, DropdownMenuTriggerProps, ForwardRefComponent, GlobalStyles, GlobeIcon, Heading, HeadingProps, HeartFilledIcon, HeartIcon, HelpCircleIcon, HintBox, HintBoxProps, HintBoxTitleProps, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconProps, ImageIcon, InputBase, InputBaseOptions, InputBaseProps, IntrinsicElement, Label, LabelProps, Link, LinkProps, ListFilterIcon, ListIcon, LoadingDots, LoadingDotsProps, LogOutIcon, MapIcon, MapPinIcon, MenuIcon, MessageCircleIcon, MinusIcon, MoreHorizontalIcon, MoreVerticalIcon, OwnProps, Paragraph, ParagraphProps, PenIcon, PlusIcon, PropsOf, QdsProvider, RadioCardProps, RadioGroup, RadioGroupLabelProps, RadioGroupProps, SearchIcon, Select, SelectBase, SelectBaseOptions, SelectOptionProps, SelectProps, SettingsIcon, ShareIcon, SlidersIcon, Spacer, SpacerProps, Stack, StackProps, StarFilledIcon, StarIcon, Switch, TextField, TextFieldProps, Textarea, TextareaBase, TextareaBaseOptions, TextareaBaseProps, TextareaProps, Theme, ThemeOverrides, TrashIcon, UseBreakpointOptions, UseBreakpointValueProps, UseFormFieldProps, UseImageProps, UserIcon, VariantProps, XCircleIcon, XIcon, createIcon, createLucideIcon, createStyle, createStyleVariants, getFormFieldBaseStyles, overrideTheme, pxToRem, theme, toast, useBreakpoint, useBreakpointValue, useFormField, useImage, useSafeLayoutEffect, useStableId };
5417
+ export { AlertCircleIcon, AlertTriangleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Avatar, AvatarProps, BellIcon, BellOffIcon, BookmarkIcon, Button, ButtonProps, CalendarIcon, CameraIcon, CheckCircleIcon, CheckIcon, Checkbox, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CreateIconOptions, DisplayText, DisplayTextProps, Divider, DividerProps, DropdownMenu, DropdownMenuContentProps, DropdownMenuDividerProps, DropdownMenuItemProps, DropdownMenuRootProps, DropdownMenuTriggerProps, ForwardRefComponent, GlobalStyles, GlobeIcon, Heading, HeadingProps, HeartFilledIcon, HeartIcon, HelpCircleIcon, HintBox, HintBoxProps, HintBoxTitleProps, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconProps, ImageIcon, InfoIcon, InputBase, InputBaseOptions, InputBaseProps, IntrinsicElement, Label, LabelProps, Link, LinkProps, ListFilterIcon, ListIcon, LoadingDots, LoadingDotsProps, LogOutIcon, MapIcon, MapPinIcon, MenuIcon, MessageCircleIcon, MinusIcon, MoreHorizontalIcon, MoreVerticalIcon, OwnProps, Paragraph, ParagraphProps, PenIcon, PlusIcon, PropsOf, QdsProvider, RadioCardProps, RadioGroup, RadioGroupLabelProps, RadioGroupProps, SearchIcon, Select, SelectBase, SelectBaseOptions, SelectOptionProps, SelectProps, SettingsIcon, ShareIcon, SlidersIcon, Spacer, SpacerProps, Stack, StackProps, StarFilledIcon, StarIcon, Switch, TextField, TextFieldProps, Textarea, TextareaBase, TextareaBaseOptions, TextareaBaseProps, TextareaProps, Theme, ThemeOverrides, TrashIcon, UseBreakpointOptions, UseBreakpointValueProps, UseFormFieldProps, UserIcon, VariantProps, XCircleIcon, XIcon, createIcon, createLucideIcon, createStyle, createStyleVariants, getFormFieldBaseStyles, overrideTheme, pxToRem, theme, toast, useBreakpoint, useBreakpointValue, useFormField, useSafeLayoutEffect, useStableId };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qasa/qds-ui",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "license": "UNLICENSED",
5
5
  "repository": {
6
6
  "type": "git",
@@ -68,8 +68,8 @@
68
68
  "eslint-plugin-react": "^7.34.1",
69
69
  "eslint-plugin-react-hooks": "^4.6.0",
70
70
  "eslint-plugin-testing-library": "^6.2.0",
71
- "jest": "^29.1.1",
72
71
  "framer-motion": "^11.0.3",
72
+ "jest": "^29.1.1",
73
73
  "jest-axe": "^6.0.0",
74
74
  "jest-environment-jsdom": "^29.1.1",
75
75
  "jest-matchmedia-mock": "^1.1.0",
@@ -101,6 +101,7 @@
101
101
  "node": ">=20"
102
102
  },
103
103
  "dependencies": {
104
+ "@radix-ui/react-avatar": "^1.0.4",
104
105
  "@radix-ui/react-checkbox": "^1.0.4",
105
106
  "@radix-ui/react-dropdown-menu": "^2.0.6",
106
107
  "@radix-ui/react-radio-group": "^1.1.3",
@@ -1,10 +0,0 @@
1
- import type { HTMLQdsProps } from '../types';
2
- type LoadingStatus = 'loading' | 'loaded' | 'error' | 'pending';
3
- export interface UseImageProps {
4
- src?: string;
5
- loading?: HTMLQdsProps<'img'>['loading'];
6
- }
7
- export declare const useImage: ({ src, loading }: UseImageProps) => {
8
- loadingStatus: LoadingStatus;
9
- };
10
- export {};
@@ -1,10 +0,0 @@
1
- import type { HTMLQdsProps } from '../types';
2
- type LoadingStatus = 'loading' | 'loaded' | 'error' | 'pending';
3
- export interface UseImageProps {
4
- src?: string;
5
- loading?: HTMLQdsProps<'img'>['loading'];
6
- }
7
- export declare const useImage: ({ src, loading }: UseImageProps) => {
8
- loadingStatus: LoadingStatus;
9
- };
10
- export {};