@qasa/qds-ui 0.9.0-next.2 → 0.9.0-next.4

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 (38) hide show
  1. package/dist/cjs/index.js +14 -15
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/button/button-icon.d.ts +10 -0
  4. package/dist/cjs/types/components/button/button-styles.d.ts +7 -8
  5. package/dist/cjs/types/components/button/button-types.d.ts +43 -0
  6. package/dist/cjs/types/components/button/button.d.ts +1 -36
  7. package/dist/cjs/types/components/heading/heading.d.ts +2 -2
  8. package/dist/cjs/types/components/icon/icon.types.d.ts +3 -1
  9. package/dist/cjs/types/components/icon/icons.d.ts +1 -0
  10. package/dist/cjs/types/components/icon-button/icon-button-styles.d.ts +7 -10
  11. package/dist/cjs/types/components/label/label.d.ts +2 -2
  12. package/dist/cjs/types/components/loading-dots/loading-dots.d.ts +2 -2
  13. package/dist/cjs/types/components/paragraph/paragraph.d.ts +2 -2
  14. package/dist/cjs/types/styles/common-styles.d.ts +2 -2
  15. package/dist/cjs/types/theme/foundations/colors.d.ts +2 -2
  16. package/dist/cjs/types/theme/foundations/index.d.ts +2 -2
  17. package/dist/cjs/types/theme/theme-tools.d.ts +2 -2
  18. package/dist/cjs/types/theme/theme.d.ts +2 -2
  19. package/dist/esm/index.js +14 -15
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/esm/types/components/button/button-icon.d.ts +10 -0
  22. package/dist/esm/types/components/button/button-styles.d.ts +7 -8
  23. package/dist/esm/types/components/button/button-types.d.ts +43 -0
  24. package/dist/esm/types/components/button/button.d.ts +1 -36
  25. package/dist/esm/types/components/heading/heading.d.ts +2 -2
  26. package/dist/esm/types/components/icon/icon.types.d.ts +3 -1
  27. package/dist/esm/types/components/icon/icons.d.ts +1 -0
  28. package/dist/esm/types/components/icon-button/icon-button-styles.d.ts +7 -10
  29. package/dist/esm/types/components/label/label.d.ts +2 -2
  30. package/dist/esm/types/components/loading-dots/loading-dots.d.ts +2 -2
  31. package/dist/esm/types/components/paragraph/paragraph.d.ts +2 -2
  32. package/dist/esm/types/styles/common-styles.d.ts +2 -2
  33. package/dist/esm/types/theme/foundations/colors.d.ts +2 -2
  34. package/dist/esm/types/theme/foundations/index.d.ts +2 -2
  35. package/dist/esm/types/theme/theme-tools.d.ts +2 -2
  36. package/dist/esm/types/theme/theme.d.ts +2 -2
  37. package/dist/index.d.ts +183 -178
  38. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as react from 'react';
3
3
  import { ElementType, ComponentPropsWithoutRef, ReactNode, SVGAttributes, useLayoutEffect } from 'react';
4
4
  import { Options } from '@emotion/cache';
5
5
  import * as _emotion_react from '@emotion/react';
6
- import { CSSObject, Theme as Theme$1 } from '@emotion/react';
6
+ import { Theme as Theme$1, CSSObject } from '@emotion/react';
7
7
  import * as _emotion_styled from '@emotion/styled';
8
8
  import { LucideIcon } from 'lucide-react';
9
9
 
@@ -151,7 +151,7 @@ declare const theme: {
151
151
  disabled: string;
152
152
  negative: string;
153
153
  warning: string;
154
- success: string;
154
+ positive: string;
155
155
  onBrandPrimary: string;
156
156
  onBrandSecondary: string;
157
157
  onBrandTertiary: string;
@@ -164,7 +164,7 @@ declare const theme: {
164
164
  subtle: string;
165
165
  negative: string;
166
166
  warning: string;
167
- success: string;
167
+ positive: string;
168
168
  };
169
169
  };
170
170
  sizes: {
@@ -714,7 +714,7 @@ declare const overrideTheme: (overrides: ThemeOverrides) => {
714
714
  disabled: string;
715
715
  negative: string;
716
716
  warning: string;
717
- success: string;
717
+ positive: string;
718
718
  onBrandPrimary: string;
719
719
  onBrandSecondary: string;
720
720
  onBrandTertiary: string;
@@ -727,7 +727,7 @@ declare const overrideTheme: (overrides: ThemeOverrides) => {
727
727
  subtle: string;
728
728
  negative: string;
729
729
  warning: string;
730
- success: string;
730
+ positive: string;
731
731
  };
732
732
  };
733
733
  mediaQueries: {
@@ -865,6 +865,151 @@ interface AvatarProps extends HTMLQdsProps<'span'>, AvatarOptions {
865
865
  }
866
866
  declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<HTMLSpanElement>>;
867
867
 
868
+ /**
869
+ * This file is originally from `@radix-ui/react-polymorphic` before the package
870
+ * was deprecated. The original source for this lived in the URL below.
871
+ *
872
+ * @see https://github.com/radix-ui/primitives/blob/17ffcb7aaa42cbd36b3c210ba86d7d73d218e5be/packages/react/polymorphic/src/polymorphic.ts
873
+ */
874
+
875
+ /**
876
+ * Infers the OwnProps if E is a ForwardRefExoticComponentWithAs
877
+ */
878
+ declare type OwnProps<E> = E extends ForwardRefComponent<any, infer P> ? P : {};
879
+ /**
880
+ * Infers the JSX.IntrinsicElement if E is a ForwardRefExoticComponentWithAs
881
+ */
882
+ declare type IntrinsicElement<E> = E extends ForwardRefComponent<infer I, any> ? I : never;
883
+ declare type ForwardRefExoticComponent<E, OwnProps> = react.ForwardRefExoticComponent<Merge<E extends react.ElementType ? react.ComponentPropsWithRef<E> : never, OwnProps & {
884
+ as?: E;
885
+ }>>;
886
+ interface ForwardRefComponent<IntrinsicElementString, OwnProps = {}> extends ForwardRefExoticComponent<IntrinsicElementString, OwnProps> {
887
+ /**
888
+ * When `as` prop is passed, use this overload.
889
+ * Merges original own props (without DOM props) and the inferred props
890
+ * from `as` element with the own props taking precendence.
891
+ *
892
+ * We explicitly avoid `React.ElementType` and manually narrow the prop types
893
+ * so that events are typed when using JSX.IntrinsicElements.
894
+ */
895
+ <As = IntrinsicElementString>(props: As extends '' ? {
896
+ as: keyof JSX.IntrinsicElements;
897
+ } : As extends react.ComponentType<infer P> ? Merge<P, OwnProps & {
898
+ as: As;
899
+ }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
900
+ as: As;
901
+ }> : never): react.ReactElement | null;
902
+ }
903
+ /**
904
+ * Infers the props of a React component
905
+ */
906
+ declare type PropsOf<E> = E extends react.ComponentType<infer P> ? P : never;
907
+
908
+ declare type IconSize = 16 | 20 | 24 | 32;
909
+ declare type IconColor = keyof Theme$1['colors']['icon'] | 'currentColor';
910
+ interface IconOptions {
911
+ /**
912
+ * The size of the icon.
913
+ *
914
+ * @default 24
915
+ */
916
+ size?: IconSize;
917
+ /**
918
+ * The color of the icon.
919
+ *
920
+ * @default 'default'
921
+ */
922
+ color?: IconColor;
923
+ }
924
+ declare type OmittedProps$9 = 'color' | 'onClick' | 'width' | 'height' | 'fontSize';
925
+ interface IconProps extends Omit<SVGAttributes<SVGElement>, OmittedProps$9>, IconOptions {
926
+ }
927
+
928
+ interface CreateIconOptions {
929
+ /**
930
+ * The `svg`'s `viewBox` attribute
931
+ */
932
+ viewBox: string;
933
+ /**
934
+ * If the `svg` has a single path, simply copy the path's `d` attribute
935
+ */
936
+ d?: string;
937
+ /**
938
+ * The `svg` path or group element
939
+ *
940
+ * @example
941
+ * ```jsx
942
+ * createIcon({
943
+ * viewBox: '0 0 512 512',
944
+ * path: [
945
+ * <circle cx="50" cy="50" r="50" />,
946
+ * <path d="M10 10" />,
947
+ * ],
948
+ * displayName: 'ExampleIcon',
949
+ * })
950
+ * ```
951
+ */
952
+ path?: React.ReactElement | React.ReactElement[];
953
+ /**
954
+ * The display name of the icon. Useful for debugging
955
+ * and internal use.
956
+ */
957
+ displayName?: string;
958
+ }
959
+ /**
960
+ * Helper function to create an icon component.
961
+ */
962
+ declare const createIcon: (options: CreateIconOptions) => react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
963
+
964
+ declare const createLucideIcon: (Icon: LucideIcon) => react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
965
+
966
+ declare const AlertCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
967
+ declare const AlertTriangleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
968
+ declare const ArrowDownIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
969
+ declare const ArrowLeftIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
970
+ declare const ArrowRightIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
971
+ declare const ArrowUpIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
972
+ declare const BellIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
973
+ declare const BellOffIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
974
+ declare const BookmarkIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
975
+ declare const CalendarIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
976
+ declare const CameraIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
977
+ declare const CheckCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
978
+ declare const CheckIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
979
+ declare const ChevronDownIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
980
+ declare const ChevronLeftIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
981
+ declare const ChevronRightIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
982
+ declare const ChevronUpIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
983
+ declare const GlobeIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
984
+ declare const HeartFilledIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
985
+ declare const HeartIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
986
+ declare const HelpCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
987
+ declare const HistoryIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
988
+ declare const HomeIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
989
+ declare const ImageIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
990
+ declare const ListIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
991
+ declare const ListFilterIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
992
+ declare const LogOutIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
993
+ declare const MapIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
994
+ declare const MapPinIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
995
+ declare const MenuIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
996
+ declare const MessageCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
997
+ declare const MinusIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
998
+ declare const MoreHorizontalIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
999
+ declare const MoreVerticalIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1000
+ declare const PenIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1001
+ declare const PlusIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1002
+ declare const SearchIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1003
+ declare const SettingsIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1004
+ declare const ShareIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1005
+ declare const SlidersIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1006
+ declare const StarFilledIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1007
+ declare const StarIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1008
+ declare const TrashIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1009
+ declare const UserIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1010
+ declare const XCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1011
+ declare const XIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1012
+
868
1013
  /**
869
1014
  * Adds some global opinionated styles.
870
1015
  */
@@ -1031,7 +1176,7 @@ declare const getFormFieldBaseStyles: (theme: {
1031
1176
  disabled: string;
1032
1177
  negative: string;
1033
1178
  warning: string;
1034
- success: string;
1179
+ positive: string;
1035
1180
  onBrandPrimary: string;
1036
1181
  onBrandSecondary: string;
1037
1182
  onBrandTertiary: string;
@@ -1044,7 +1189,7 @@ declare const getFormFieldBaseStyles: (theme: {
1044
1189
  subtle: string;
1045
1190
  negative: string;
1046
1191
  warning: string;
1047
- success: string;
1192
+ positive: string;
1048
1193
  };
1049
1194
  };
1050
1195
  sizes: {
@@ -1331,46 +1476,6 @@ declare const getFormFieldBaseStyles: (theme: {
1331
1476
  alignItems: "center";
1332
1477
  };
1333
1478
 
1334
- /**
1335
- * This file is originally from `@radix-ui/react-polymorphic` before the package
1336
- * was deprecated. The original source for this lived in the URL below.
1337
- *
1338
- * @see https://github.com/radix-ui/primitives/blob/17ffcb7aaa42cbd36b3c210ba86d7d73d218e5be/packages/react/polymorphic/src/polymorphic.ts
1339
- */
1340
-
1341
- /**
1342
- * Infers the OwnProps if E is a ForwardRefExoticComponentWithAs
1343
- */
1344
- declare type OwnProps<E> = E extends ForwardRefComponent<any, infer P> ? P : {};
1345
- /**
1346
- * Infers the JSX.IntrinsicElement if E is a ForwardRefExoticComponentWithAs
1347
- */
1348
- declare type IntrinsicElement<E> = E extends ForwardRefComponent<infer I, any> ? I : never;
1349
- declare type ForwardRefExoticComponent<E, OwnProps> = react.ForwardRefExoticComponent<Merge<E extends react.ElementType ? react.ComponentPropsWithRef<E> : never, OwnProps & {
1350
- as?: E;
1351
- }>>;
1352
- interface ForwardRefComponent<IntrinsicElementString, OwnProps = {}> extends ForwardRefExoticComponent<IntrinsicElementString, OwnProps> {
1353
- /**
1354
- * When `as` prop is passed, use this overload.
1355
- * Merges original own props (without DOM props) and the inferred props
1356
- * from `as` element with the own props taking precendence.
1357
- *
1358
- * We explicitly avoid `React.ElementType` and manually narrow the prop types
1359
- * so that events are typed when using JSX.IntrinsicElements.
1360
- */
1361
- <As = IntrinsicElementString>(props: As extends '' ? {
1362
- as: keyof JSX.IntrinsicElements;
1363
- } : As extends react.ComponentType<infer P> ? Merge<P, OwnProps & {
1364
- as: As;
1365
- }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
1366
- as: As;
1367
- }> : never): react.ReactElement | null;
1368
- }
1369
- /**
1370
- * Infers the props of a React component
1371
- */
1372
- declare type PropsOf<E> = E extends react.ComponentType<infer P> ? P : never;
1373
-
1374
1479
  declare const getSizeStyles$5: (theme: {
1375
1480
  mediaQueries: {
1376
1481
  readonly smUp: "@media(min-width: 480px)";
@@ -1515,7 +1620,7 @@ declare const getSizeStyles$5: (theme: {
1515
1620
  disabled: string;
1516
1621
  negative: string;
1517
1622
  warning: string;
1518
- success: string;
1623
+ positive: string;
1519
1624
  onBrandPrimary: string;
1520
1625
  onBrandSecondary: string;
1521
1626
  onBrandTertiary: string;
@@ -1528,7 +1633,7 @@ declare const getSizeStyles$5: (theme: {
1528
1633
  subtle: string;
1529
1634
  negative: string;
1530
1635
  warning: string;
1531
- success: string;
1636
+ positive: string;
1532
1637
  };
1533
1638
  };
1534
1639
  sizes: {
@@ -1777,7 +1882,6 @@ declare const getSizeStyles$5: (theme: {
1777
1882
  lineHeight: string;
1778
1883
  letterSpacing: string;
1779
1884
  height: string;
1780
- minWidth: string;
1781
1885
  paddingLeft: string;
1782
1886
  paddingRight: string;
1783
1887
  };
@@ -1788,7 +1892,6 @@ declare const getSizeStyles$5: (theme: {
1788
1892
  lineHeight: string;
1789
1893
  letterSpacing: string;
1790
1894
  height: string;
1791
- minWidth: string;
1792
1895
  paddingLeft: string;
1793
1896
  paddingRight: string;
1794
1897
  };
@@ -1799,7 +1902,6 @@ declare const getSizeStyles$5: (theme: {
1799
1902
  lineHeight: string;
1800
1903
  letterSpacing: string;
1801
1904
  height: string;
1802
- minWidth: string;
1803
1905
  paddingLeft: string;
1804
1906
  paddingRight: string;
1805
1907
  };
@@ -1810,7 +1912,6 @@ declare const getSizeStyles$5: (theme: {
1810
1912
  lineHeight: string;
1811
1913
  letterSpacing: string;
1812
1914
  height: string;
1813
- minWidth: string;
1814
1915
  paddingLeft: string;
1815
1916
  paddingRight: string;
1816
1917
  };
@@ -1825,6 +1926,7 @@ declare const getSizeStyles$5: (theme: {
1825
1926
  paddingRight: string;
1826
1927
  };
1827
1928
  };
1929
+ declare type ButtonSize = VariantProps<typeof getSizeStyles$5>;
1828
1930
  declare const getVariantStyles$1: (theme: {
1829
1931
  mediaQueries: {
1830
1932
  readonly smUp: "@media(min-width: 480px)";
@@ -1969,7 +2071,7 @@ declare const getVariantStyles$1: (theme: {
1969
2071
  disabled: string;
1970
2072
  negative: string;
1971
2073
  warning: string;
1972
- success: string;
2074
+ positive: string;
1973
2075
  onBrandPrimary: string;
1974
2076
  onBrandSecondary: string;
1975
2077
  onBrandTertiary: string;
@@ -1982,7 +2084,7 @@ declare const getVariantStyles$1: (theme: {
1982
2084
  subtle: string;
1983
2085
  negative: string;
1984
2086
  warning: string;
1985
- success: string;
2087
+ positive: string;
1986
2088
  };
1987
2089
  };
1988
2090
  sizes: {
@@ -2267,9 +2369,8 @@ declare const getVariantStyles$1: (theme: {
2267
2369
  };
2268
2370
  };
2269
2371
  };
2270
-
2271
2372
  declare type ButtonVariant = VariantProps<typeof getVariantStyles$1>;
2272
- declare type ButtonSize = VariantProps<typeof getSizeStyles$5>;
2373
+
2273
2374
  interface ButtonOptions {
2274
2375
  /**
2275
2376
  * Sets the size of the button
@@ -2296,12 +2397,21 @@ interface ButtonOptions {
2296
2397
  * @default false
2297
2398
  */
2298
2399
  isDisabled?: boolean;
2400
+ /**
2401
+ * Icon to display before the button label
2402
+ */
2403
+ iconLeft?: ElementType<IconProps>;
2404
+ /**
2405
+ * Icon to display after the button label
2406
+ */
2407
+ iconRight?: ElementType<IconProps>;
2299
2408
  /**
2300
2409
  * The HTML `type` attribute
2301
2410
  * @default 'button'
2302
2411
  */
2303
2412
  type?: 'button' | 'submit' | 'reset';
2304
2413
  }
2414
+
2305
2415
  declare type PolymorphicButton = ForwardRefComponent<'button', ButtonOptions>;
2306
2416
  declare type ButtonProps = PropsOf<PolymorphicButton>;
2307
2417
  declare const Button: PolymorphicButton;
@@ -2462,7 +2572,7 @@ declare const getSizeStyles$4: (theme: {
2462
2572
  disabled: string;
2463
2573
  negative: string;
2464
2574
  warning: string;
2465
- success: string;
2575
+ positive: string;
2466
2576
  onBrandPrimary: string;
2467
2577
  onBrandSecondary: string;
2468
2578
  onBrandTertiary: string;
@@ -2475,7 +2585,7 @@ declare const getSizeStyles$4: (theme: {
2475
2585
  subtle: string;
2476
2586
  negative: string;
2477
2587
  warning: string;
2478
- success: string;
2588
+ positive: string;
2479
2589
  };
2480
2590
  };
2481
2591
  sizes: {
@@ -2799,108 +2909,6 @@ declare const HintBox: react.ForwardRefExoticComponent<Pick<react.DetailedHTMLPr
2799
2909
  }, react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
2800
2910
  };
2801
2911
 
2802
- declare type IconSize = 16 | 20 | 24 | 32;
2803
- declare type IconColor = keyof Theme$1['colors']['icon'] | 'currentColor';
2804
- interface IconOptions {
2805
- /**
2806
- * The size of the icon.
2807
- *
2808
- * @default 16
2809
- */
2810
- size?: IconSize;
2811
- /**
2812
- * The color of the icon.
2813
- */
2814
- color?: IconColor;
2815
- }
2816
- declare type OmittedProps$9 = 'color' | 'onClick' | 'width' | 'height' | 'fontSize';
2817
- interface IconProps extends Omit<SVGAttributes<SVGElement>, OmittedProps$9>, IconOptions {
2818
- }
2819
-
2820
- interface CreateIconOptions {
2821
- /**
2822
- * The `svg`'s `viewBox` attribute
2823
- */
2824
- viewBox: string;
2825
- /**
2826
- * If the `svg` has a single path, simply copy the path's `d` attribute
2827
- */
2828
- d?: string;
2829
- /**
2830
- * The `svg` path or group element
2831
- *
2832
- * @example
2833
- * ```jsx
2834
- * createIcon({
2835
- * viewBox: '0 0 512 512',
2836
- * path: [
2837
- * <circle cx="50" cy="50" r="50" />,
2838
- * <path d="M10 10" />,
2839
- * ],
2840
- * displayName: 'ExampleIcon',
2841
- * })
2842
- * ```
2843
- */
2844
- path?: React.ReactElement | React.ReactElement[];
2845
- /**
2846
- * The display name of the icon. Useful for debugging
2847
- * and internal use.
2848
- */
2849
- displayName?: string;
2850
- }
2851
- /**
2852
- * Helper function to create an icon component.
2853
- */
2854
- declare const createIcon: (options: CreateIconOptions) => react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2855
-
2856
- declare const createLucideIcon: (Icon: LucideIcon) => react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2857
-
2858
- declare const AlertCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2859
- declare const AlertTriangleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2860
- declare const ArrowDownIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2861
- declare const ArrowLeftIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2862
- declare const ArrowRightIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2863
- declare const ArrowUpIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2864
- declare const BellIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2865
- declare const BellOffIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2866
- declare const BookmarkIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2867
- declare const CalendarIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2868
- declare const CameraIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2869
- declare const CheckCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2870
- declare const CheckIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2871
- declare const ChevronDownIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2872
- declare const ChevronLeftIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2873
- declare const ChevronRightIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2874
- declare const ChevronUpIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2875
- declare const GlobeIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2876
- declare const HeartFilledIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2877
- declare const HeartIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2878
- declare const HelpCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2879
- declare const HistoryIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2880
- declare const HomeIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2881
- declare const ImageIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2882
- declare const ListIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2883
- declare const ListFilterIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2884
- declare const LogOutIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2885
- declare const MapIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2886
- declare const MapPinIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2887
- declare const MenuIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2888
- declare const MessageCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2889
- declare const MinusIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2890
- declare const MoreHorizontalIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2891
- declare const MoreVerticalIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2892
- declare const PlusIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2893
- declare const SearchIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2894
- declare const SettingsIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2895
- declare const ShareIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2896
- declare const SlidersIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2897
- declare const StarFilledIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2898
- declare const StarIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2899
- declare const TrashIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2900
- declare const UserIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2901
- declare const XCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2902
- declare const XIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
2903
-
2904
2912
  declare const getSizeStyles$3: (theme: {
2905
2913
  mediaQueries: {
2906
2914
  readonly smUp: "@media(min-width: 480px)";
@@ -3045,7 +3053,7 @@ declare const getSizeStyles$3: (theme: {
3045
3053
  disabled: string;
3046
3054
  negative: string;
3047
3055
  warning: string;
3048
- success: string;
3056
+ positive: string;
3049
3057
  onBrandPrimary: string;
3050
3058
  onBrandSecondary: string;
3051
3059
  onBrandTertiary: string;
@@ -3058,7 +3066,7 @@ declare const getSizeStyles$3: (theme: {
3058
3066
  subtle: string;
3059
3067
  negative: string;
3060
3068
  warning: string;
3061
- success: string;
3069
+ positive: string;
3062
3070
  };
3063
3071
  };
3064
3072
  sizes: {
@@ -3303,17 +3311,14 @@ declare const getSizeStyles$3: (theme: {
3303
3311
  xs: {
3304
3312
  width: string;
3305
3313
  height: string;
3306
- fontSize: string;
3307
3314
  };
3308
3315
  sm: {
3309
3316
  width: string;
3310
3317
  height: string;
3311
- fontSize: string;
3312
3318
  };
3313
3319
  md: {
3314
3320
  width: string;
3315
3321
  height: string;
3316
- fontSize: string;
3317
3322
  };
3318
3323
  };
3319
3324
  declare const getVariantStyles: (theme: {
@@ -3460,7 +3465,7 @@ declare const getVariantStyles: (theme: {
3460
3465
  disabled: string;
3461
3466
  negative: string;
3462
3467
  warning: string;
3463
- success: string;
3468
+ positive: string;
3464
3469
  onBrandPrimary: string;
3465
3470
  onBrandSecondary: string;
3466
3471
  onBrandTertiary: string;
@@ -3473,7 +3478,7 @@ declare const getVariantStyles: (theme: {
3473
3478
  subtle: string;
3474
3479
  negative: string;
3475
3480
  warning: string;
3476
- success: string;
3481
+ positive: string;
3477
3482
  };
3478
3483
  };
3479
3484
  sizes: {
@@ -3765,9 +3770,9 @@ declare const getVariantStyles: (theme: {
3765
3770
  ':hover': {
3766
3771
  background: string;
3767
3772
  };
3768
- ':active': {
3769
- background: string;
3770
- };
3773
+ };
3774
+ ':active': {
3775
+ background: string;
3771
3776
  };
3772
3777
  };
3773
3778
  };
@@ -4007,7 +4012,7 @@ declare const getSizeStyles$2: (theme: {
4007
4012
  disabled: string;
4008
4013
  negative: string;
4009
4014
  warning: string;
4010
- success: string;
4015
+ positive: string;
4011
4016
  onBrandPrimary: string;
4012
4017
  onBrandSecondary: string;
4013
4018
  onBrandTertiary: string;
@@ -4020,7 +4025,7 @@ declare const getSizeStyles$2: (theme: {
4020
4025
  subtle: string;
4021
4026
  negative: string;
4022
4027
  warning: string;
4023
- success: string;
4028
+ positive: string;
4024
4029
  };
4025
4030
  };
4026
4031
  sizes: {
@@ -4452,7 +4457,7 @@ declare const getSizeStyles$1: (theme: {
4452
4457
  disabled: string;
4453
4458
  negative: string;
4454
4459
  warning: string;
4455
- success: string;
4460
+ positive: string;
4456
4461
  onBrandPrimary: string;
4457
4462
  onBrandSecondary: string;
4458
4463
  onBrandTertiary: string;
@@ -4465,7 +4470,7 @@ declare const getSizeStyles$1: (theme: {
4465
4470
  subtle: string;
4466
4471
  negative: string;
4467
4472
  warning: string;
4468
- success: string;
4473
+ positive: string;
4469
4474
  };
4470
4475
  };
4471
4476
  sizes: {
@@ -4866,7 +4871,7 @@ declare const getSizeStyles: (theme: {
4866
4871
  disabled: string;
4867
4872
  negative: string;
4868
4873
  warning: string;
4869
- success: string;
4874
+ positive: string;
4870
4875
  onBrandPrimary: string;
4871
4876
  onBrandSecondary: string;
4872
4877
  onBrandTertiary: string;
@@ -4879,7 +4884,7 @@ declare const getSizeStyles: (theme: {
4879
4884
  subtle: string;
4880
4885
  negative: string;
4881
4886
  warning: string;
4882
- success: string;
4887
+ positive: string;
4883
4888
  };
4884
4889
  };
4885
4890
  sizes: {
@@ -5444,4 +5449,4 @@ declare function useStableId(fixedId?: string | null): string;
5444
5449
  */
5445
5450
  declare const useSafeLayoutEffect: typeof useLayoutEffect;
5446
5451
 
5447
- export { AlertCircleIcon, AlertTriangleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Avatar, AvatarProps, BellIcon, BellOffIcon, BookmarkIcon, Button, ButtonProps, CalendarIcon, CameraIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CreateIconOptions, Divider, DividerProps, ForwardRefComponent, GlobalStyles, GlobeIcon, Heading, HeadingProps, HeartFilledIcon, HeartIcon, HelpCircleIcon, HintBox, HintBoxProps, HintBoxTitleProps, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconProps, Image, ImageIcon, ImageProps, InputBase, InputBaseOptions, InputBaseProps, IntrinsicElement, Label, LabelProps, Link, LinkProps, ListFilterIcon, ListIcon, LoadingDots, LoadingDotsProps, LogOutIcon, MapIcon, MapPinIcon, MenuIcon, MessageCircleIcon, MinusIcon, MoreHorizontalIcon, MoreVerticalIcon, OwnProps, Paragraph, ParagraphProps, PlusIcon, PropsOf, QdsProvider, SearchIcon, Select, SelectBase, SelectBaseOptions, SelectOptionProps, SelectProps, SettingsIcon, ShareIcon, SlidersIcon, Spacer, SpacerProps, Stack, StackProps, StarFilledIcon, StarIcon, 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, useBreakpoint, useBreakpointValue, useFormField, useImage, useSafeLayoutEffect, useStableId };
5452
+ export { AlertCircleIcon, AlertTriangleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Avatar, AvatarProps, BellIcon, BellOffIcon, BookmarkIcon, Button, ButtonProps, CalendarIcon, CameraIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CreateIconOptions, Divider, DividerProps, ForwardRefComponent, GlobalStyles, GlobeIcon, Heading, HeadingProps, HeartFilledIcon, HeartIcon, HelpCircleIcon, HintBox, HintBoxProps, HintBoxTitleProps, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconProps, Image, ImageIcon, ImageProps, 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, SearchIcon, Select, SelectBase, SelectBaseOptions, SelectOptionProps, SelectProps, SettingsIcon, ShareIcon, SlidersIcon, Spacer, SpacerProps, Stack, StackProps, StarFilledIcon, StarIcon, 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, 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.9.0-next.2",
3
+ "version": "0.9.0-next.4",
4
4
  "license": "UNLICENSED",
5
5
  "repository": {
6
6
  "type": "git",