@qasa/qds-ui 0.10.1 → 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 (42) 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 +28 -16
  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 +28 -16
  7. package/dist/cjs/types/components/label/label.d.ts +14 -8
  8. package/dist/cjs/types/components/loading-dots/loading-dots.d.ts +14 -8
  9. package/dist/cjs/types/components/paragraph/paragraph.d.ts +14 -8
  10. package/dist/cjs/types/components/textarea/textarea.d.ts +5 -0
  11. package/dist/cjs/types/components/toast/toast-styles.d.ts +14 -8
  12. package/dist/cjs/types/hooks/index.d.ts +0 -1
  13. package/dist/cjs/types/styles/common-styles.d.ts +14 -8
  14. package/dist/cjs/types/theme/foundations/colors.d.ts +10 -8
  15. package/dist/cjs/types/theme/foundations/index.d.ts +14 -8
  16. package/dist/cjs/types/theme/foundations/sizes.d.ts +2 -0
  17. package/dist/cjs/types/theme/foundations/spacing.d.ts +4 -0
  18. package/dist/cjs/types/theme/theme-tools.d.ts +14 -8
  19. package/dist/cjs/types/theme/theme.d.ts +14 -8
  20. package/dist/esm/index.js +1322 -1323
  21. package/dist/esm/index.js.map +1 -1
  22. package/dist/esm/types/components/avatar/avatar.d.ts +2 -1
  23. package/dist/esm/types/components/button/button-styles.d.ts +28 -16
  24. package/dist/esm/types/components/icon/icons.d.ts +1 -0
  25. package/dist/esm/types/components/icon-button/icon-button-styles.d.ts +28 -16
  26. package/dist/esm/types/components/label/label.d.ts +14 -8
  27. package/dist/esm/types/components/loading-dots/loading-dots.d.ts +14 -8
  28. package/dist/esm/types/components/paragraph/paragraph.d.ts +14 -8
  29. package/dist/esm/types/components/textarea/textarea.d.ts +5 -0
  30. package/dist/esm/types/components/toast/toast-styles.d.ts +14 -8
  31. package/dist/esm/types/hooks/index.d.ts +0 -1
  32. package/dist/esm/types/styles/common-styles.d.ts +14 -8
  33. package/dist/esm/types/theme/foundations/colors.d.ts +10 -8
  34. package/dist/esm/types/theme/foundations/index.d.ts +14 -8
  35. package/dist/esm/types/theme/foundations/sizes.d.ts +2 -0
  36. package/dist/esm/types/theme/foundations/spacing.d.ts +4 -0
  37. package/dist/esm/types/theme/theme-tools.d.ts +14 -8
  38. package/dist/esm/types/theme/theme.d.ts +14 -8
  39. package/dist/index.d.ts +149 -91
  40. package/package.json +4 -5
  41. package/dist/cjs/types/hooks/use-image.d.ts +0 -10
  42. package/dist/esm/types/hooks/use-image.d.ts +0 -10
package/dist/index.d.ts CHANGED
@@ -29,7 +29,9 @@ declare const theme: {
29
29
  '5x': string;
30
30
  '6x': string;
31
31
  '8x': string;
32
+ '10x': string;
32
33
  '12x': string;
34
+ '14x': string;
33
35
  '16x': string;
34
36
  '20x': string;
35
37
  '24x': string;
@@ -70,6 +72,7 @@ declare const theme: {
70
72
  gray30: string;
71
73
  gray20: string;
72
74
  gray10: string;
75
+ pink: string;
73
76
  uiPink: string;
74
77
  uiPinkDark: string;
75
78
  uiPinkLight: string;
@@ -82,15 +85,15 @@ declare const theme: {
82
85
  softPink: string;
83
86
  warmYellow: string;
84
87
  softYellow: string;
85
- red10: string;
86
- red20: string;
87
- red30: string;
88
- red40: string;
89
- red50: string;
90
- red60: string;
91
- red70: string;
92
- red80: string;
93
88
  red90: string;
89
+ red80: string;
90
+ red70: string;
91
+ red60: string;
92
+ red50: string;
93
+ red40: string;
94
+ red30: string;
95
+ red20: string;
96
+ red10: string;
94
97
  green90: string;
95
98
  green80: string;
96
99
  green70: string;
@@ -118,6 +121,7 @@ declare const theme: {
118
121
  yellow30: string;
119
122
  yellow20: string;
120
123
  yellow10: string;
124
+ blackAlpha5: string;
121
125
  blackAlpha20: string;
122
126
  };
123
127
  bg: {
@@ -199,7 +203,9 @@ declare const theme: {
199
203
  '5x': string;
200
204
  '6x': string;
201
205
  '8x': string;
206
+ '10x': string;
202
207
  '12x': string;
208
+ '14x': string;
203
209
  '16x': string;
204
210
  '20x': string;
205
211
  '24x': string;
@@ -634,6 +640,7 @@ declare const overrideTheme: (overrides: ThemeOverrides) => {
634
640
  gray30: string;
635
641
  gray20: string;
636
642
  gray10: string;
643
+ pink: string;
637
644
  uiPink: string;
638
645
  uiPinkDark: string;
639
646
  uiPinkLight: string;
@@ -646,15 +653,15 @@ declare const overrideTheme: (overrides: ThemeOverrides) => {
646
653
  softPink: string;
647
654
  warmYellow: string;
648
655
  softYellow: string;
649
- red10: string;
650
- red20: string;
651
- red30: string;
652
- red40: string;
653
- red50: string;
654
- red60: string;
655
- red70: string;
656
- red80: string;
657
656
  red90: string;
657
+ red80: string;
658
+ red70: string;
659
+ red60: string;
660
+ red50: string;
661
+ red40: string;
662
+ red30: string;
663
+ red20: string;
664
+ red10: string;
658
665
  green90: string;
659
666
  green80: string;
660
667
  green70: string;
@@ -682,6 +689,7 @@ declare const overrideTheme: (overrides: ThemeOverrides) => {
682
689
  yellow30: string;
683
690
  yellow20: string;
684
691
  yellow10: string;
692
+ blackAlpha5: string;
685
693
  blackAlpha20: string;
686
694
  };
687
695
  bg: {
@@ -752,7 +760,9 @@ declare const overrideTheme: (overrides: ThemeOverrides) => {
752
760
  '5x': string;
753
761
  '6x': string;
754
762
  '8x': string;
763
+ '10x': string;
755
764
  '12x': string;
765
+ '14x': string;
756
766
  '16x': string;
757
767
  '20x': string;
758
768
  '24x': string;
@@ -807,7 +817,9 @@ declare const overrideTheme: (overrides: ThemeOverrides) => {
807
817
  '5x': string;
808
818
  '6x': string;
809
819
  '8x': string;
820
+ '10x': string;
810
821
  '12x': string;
822
+ '14x': string;
811
823
  '16x': string;
812
824
  '20x': string;
813
825
  '24x': string;
@@ -865,7 +877,8 @@ interface AvatarOptions {
865
877
  */
866
878
  src?: string;
867
879
  /**
868
- * 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.
869
882
  */
870
883
  name?: string;
871
884
  /**
@@ -1000,6 +1013,7 @@ declare const HelpCircleIcon: react.ForwardRefExoticComponent<IconProps & react.
1000
1013
  declare const HistoryIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1001
1014
  declare const HomeIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1002
1015
  declare const ImageIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1016
+ declare const InfoIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1003
1017
  declare const ListIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1004
1018
  declare const ListFilterIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
1005
1019
  declare const LogOutIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
@@ -1062,7 +1076,9 @@ declare const getFormFieldBaseStyles: (theme: {
1062
1076
  '5x': string;
1063
1077
  '6x': string;
1064
1078
  '8x': string;
1079
+ '10x': string;
1065
1080
  '12x': string;
1081
+ '14x': string;
1066
1082
  '16x': string;
1067
1083
  '20x': string;
1068
1084
  '24x': string;
@@ -1103,6 +1119,7 @@ declare const getFormFieldBaseStyles: (theme: {
1103
1119
  gray30: string;
1104
1120
  gray20: string;
1105
1121
  gray10: string;
1122
+ pink: string;
1106
1123
  uiPink: string;
1107
1124
  uiPinkDark: string;
1108
1125
  uiPinkLight: string;
@@ -1115,15 +1132,15 @@ declare const getFormFieldBaseStyles: (theme: {
1115
1132
  softPink: string;
1116
1133
  warmYellow: string;
1117
1134
  softYellow: string;
1118
- red10: string;
1119
- red20: string;
1120
- red30: string;
1121
- red40: string;
1122
- red50: string;
1123
- red60: string;
1124
- red70: string;
1125
- red80: string;
1126
1135
  red90: string;
1136
+ red80: string;
1137
+ red70: string;
1138
+ red60: string;
1139
+ red50: string;
1140
+ red40: string;
1141
+ red30: string;
1142
+ red20: string;
1143
+ red10: string;
1127
1144
  green90: string;
1128
1145
  green80: string;
1129
1146
  green70: string;
@@ -1151,6 +1168,7 @@ declare const getFormFieldBaseStyles: (theme: {
1151
1168
  yellow30: string;
1152
1169
  yellow20: string;
1153
1170
  yellow10: string;
1171
+ blackAlpha5: string;
1154
1172
  blackAlpha20: string;
1155
1173
  };
1156
1174
  bg: {
@@ -1232,7 +1250,9 @@ declare const getFormFieldBaseStyles: (theme: {
1232
1250
  '5x': string;
1233
1251
  '6x': string;
1234
1252
  '8x': string;
1253
+ '10x': string;
1235
1254
  '12x': string;
1255
+ '14x': string;
1236
1256
  '16x': string;
1237
1257
  '20x': string;
1238
1258
  '24x': string;
@@ -1508,7 +1528,9 @@ declare const getSizeStyles$4: (theme: {
1508
1528
  '5x': string;
1509
1529
  '6x': string;
1510
1530
  '8x': string;
1531
+ '10x': string;
1511
1532
  '12x': string;
1533
+ '14x': string;
1512
1534
  '16x': string;
1513
1535
  '20x': string;
1514
1536
  '24x': string;
@@ -1549,6 +1571,7 @@ declare const getSizeStyles$4: (theme: {
1549
1571
  gray30: string;
1550
1572
  gray20: string;
1551
1573
  gray10: string;
1574
+ pink: string;
1552
1575
  uiPink: string;
1553
1576
  uiPinkDark: string;
1554
1577
  uiPinkLight: string;
@@ -1561,15 +1584,15 @@ declare const getSizeStyles$4: (theme: {
1561
1584
  softPink: string;
1562
1585
  warmYellow: string;
1563
1586
  softYellow: string;
1564
- red10: string;
1565
- red20: string;
1566
- red30: string;
1567
- red40: string;
1568
- red50: string;
1569
- red60: string;
1570
- red70: string;
1571
- red80: string;
1572
1587
  red90: string;
1588
+ red80: string;
1589
+ red70: string;
1590
+ red60: string;
1591
+ red50: string;
1592
+ red40: string;
1593
+ red30: string;
1594
+ red20: string;
1595
+ red10: string;
1573
1596
  green90: string;
1574
1597
  green80: string;
1575
1598
  green70: string;
@@ -1597,6 +1620,7 @@ declare const getSizeStyles$4: (theme: {
1597
1620
  yellow30: string;
1598
1621
  yellow20: string;
1599
1622
  yellow10: string;
1623
+ blackAlpha5: string;
1600
1624
  blackAlpha20: string;
1601
1625
  };
1602
1626
  bg: {
@@ -1678,7 +1702,9 @@ declare const getSizeStyles$4: (theme: {
1678
1702
  '5x': string;
1679
1703
  '6x': string;
1680
1704
  '8x': string;
1705
+ '10x': string;
1681
1706
  '12x': string;
1707
+ '14x': string;
1682
1708
  '16x': string;
1683
1709
  '20x': string;
1684
1710
  '24x': string;
@@ -1960,7 +1986,9 @@ declare const getVariantStyles$1: (theme: {
1960
1986
  '5x': string;
1961
1987
  '6x': string;
1962
1988
  '8x': string;
1989
+ '10x': string;
1963
1990
  '12x': string;
1991
+ '14x': string;
1964
1992
  '16x': string;
1965
1993
  '20x': string;
1966
1994
  '24x': string;
@@ -2001,6 +2029,7 @@ declare const getVariantStyles$1: (theme: {
2001
2029
  gray30: string;
2002
2030
  gray20: string;
2003
2031
  gray10: string;
2032
+ pink: string;
2004
2033
  uiPink: string;
2005
2034
  uiPinkDark: string;
2006
2035
  uiPinkLight: string;
@@ -2013,15 +2042,15 @@ declare const getVariantStyles$1: (theme: {
2013
2042
  softPink: string;
2014
2043
  warmYellow: string;
2015
2044
  softYellow: string;
2016
- red10: string;
2017
- red20: string;
2018
- red30: string;
2019
- red40: string;
2020
- red50: string;
2021
- red60: string;
2022
- red70: string;
2023
- red80: string;
2024
2045
  red90: string;
2046
+ red80: string;
2047
+ red70: string;
2048
+ red60: string;
2049
+ red50: string;
2050
+ red40: string;
2051
+ red30: string;
2052
+ red20: string;
2053
+ red10: string;
2025
2054
  green90: string;
2026
2055
  green80: string;
2027
2056
  green70: string;
@@ -2049,6 +2078,7 @@ declare const getVariantStyles$1: (theme: {
2049
2078
  yellow30: string;
2050
2079
  yellow20: string;
2051
2080
  yellow10: string;
2081
+ blackAlpha5: string;
2052
2082
  blackAlpha20: string;
2053
2083
  };
2054
2084
  bg: {
@@ -2130,7 +2160,9 @@ declare const getVariantStyles$1: (theme: {
2130
2160
  '5x': string;
2131
2161
  '6x': string;
2132
2162
  '8x': string;
2163
+ '10x': string;
2133
2164
  '12x': string;
2165
+ '14x': string;
2134
2166
  '16x': string;
2135
2167
  '20x': string;
2136
2168
  '24x': string;
@@ -2719,7 +2751,9 @@ declare const getSizeStyles$3: (theme: {
2719
2751
  '5x': string;
2720
2752
  '6x': string;
2721
2753
  '8x': string;
2754
+ '10x': string;
2722
2755
  '12x': string;
2756
+ '14x': string;
2723
2757
  '16x': string;
2724
2758
  '20x': string;
2725
2759
  '24x': string;
@@ -2760,6 +2794,7 @@ declare const getSizeStyles$3: (theme: {
2760
2794
  gray30: string;
2761
2795
  gray20: string;
2762
2796
  gray10: string;
2797
+ pink: string;
2763
2798
  uiPink: string;
2764
2799
  uiPinkDark: string;
2765
2800
  uiPinkLight: string;
@@ -2772,15 +2807,15 @@ declare const getSizeStyles$3: (theme: {
2772
2807
  softPink: string;
2773
2808
  warmYellow: string;
2774
2809
  softYellow: string;
2775
- red10: string;
2776
- red20: string;
2777
- red30: string;
2778
- red40: string;
2779
- red50: string;
2780
- red60: string;
2781
- red70: string;
2782
- red80: string;
2783
2810
  red90: string;
2811
+ red80: string;
2812
+ red70: string;
2813
+ red60: string;
2814
+ red50: string;
2815
+ red40: string;
2816
+ red30: string;
2817
+ red20: string;
2818
+ red10: string;
2784
2819
  green90: string;
2785
2820
  green80: string;
2786
2821
  green70: string;
@@ -2808,6 +2843,7 @@ declare const getSizeStyles$3: (theme: {
2808
2843
  yellow30: string;
2809
2844
  yellow20: string;
2810
2845
  yellow10: string;
2846
+ blackAlpha5: string;
2811
2847
  blackAlpha20: string;
2812
2848
  };
2813
2849
  bg: {
@@ -2889,7 +2925,9 @@ declare const getSizeStyles$3: (theme: {
2889
2925
  '5x': string;
2890
2926
  '6x': string;
2891
2927
  '8x': string;
2928
+ '10x': string;
2892
2929
  '12x': string;
2930
+ '14x': string;
2893
2931
  '16x': string;
2894
2932
  '20x': string;
2895
2933
  '24x': string;
@@ -3132,7 +3170,9 @@ declare const getVariantStyles: (theme: {
3132
3170
  '5x': string;
3133
3171
  '6x': string;
3134
3172
  '8x': string;
3173
+ '10x': string;
3135
3174
  '12x': string;
3175
+ '14x': string;
3136
3176
  '16x': string;
3137
3177
  '20x': string;
3138
3178
  '24x': string;
@@ -3173,6 +3213,7 @@ declare const getVariantStyles: (theme: {
3173
3213
  gray30: string;
3174
3214
  gray20: string;
3175
3215
  gray10: string;
3216
+ pink: string;
3176
3217
  uiPink: string;
3177
3218
  uiPinkDark: string;
3178
3219
  uiPinkLight: string;
@@ -3185,15 +3226,15 @@ declare const getVariantStyles: (theme: {
3185
3226
  softPink: string;
3186
3227
  warmYellow: string;
3187
3228
  softYellow: string;
3188
- red10: string;
3189
- red20: string;
3190
- red30: string;
3191
- red40: string;
3192
- red50: string;
3193
- red60: string;
3194
- red70: string;
3195
- red80: string;
3196
3229
  red90: string;
3230
+ red80: string;
3231
+ red70: string;
3232
+ red60: string;
3233
+ red50: string;
3234
+ red40: string;
3235
+ red30: string;
3236
+ red20: string;
3237
+ red10: string;
3197
3238
  green90: string;
3198
3239
  green80: string;
3199
3240
  green70: string;
@@ -3221,6 +3262,7 @@ declare const getVariantStyles: (theme: {
3221
3262
  yellow30: string;
3222
3263
  yellow20: string;
3223
3264
  yellow10: string;
3265
+ blackAlpha5: string;
3224
3266
  blackAlpha20: string;
3225
3267
  };
3226
3268
  bg: {
@@ -3302,7 +3344,9 @@ declare const getVariantStyles: (theme: {
3302
3344
  '5x': string;
3303
3345
  '6x': string;
3304
3346
  '8x': string;
3347
+ '10x': string;
3305
3348
  '12x': string;
3349
+ '14x': string;
3306
3350
  '16x': string;
3307
3351
  '20x': string;
3308
3352
  '24x': string;
@@ -3664,7 +3708,9 @@ declare const getSizeStyles$2: (theme: {
3664
3708
  '5x': string;
3665
3709
  '6x': string;
3666
3710
  '8x': string;
3711
+ '10x': string;
3667
3712
  '12x': string;
3713
+ '14x': string;
3668
3714
  '16x': string;
3669
3715
  '20x': string;
3670
3716
  '24x': string;
@@ -3705,6 +3751,7 @@ declare const getSizeStyles$2: (theme: {
3705
3751
  gray30: string;
3706
3752
  gray20: string;
3707
3753
  gray10: string;
3754
+ pink: string;
3708
3755
  uiPink: string;
3709
3756
  uiPinkDark: string;
3710
3757
  uiPinkLight: string;
@@ -3717,15 +3764,15 @@ declare const getSizeStyles$2: (theme: {
3717
3764
  softPink: string;
3718
3765
  warmYellow: string;
3719
3766
  softYellow: string;
3720
- red10: string;
3721
- red20: string;
3722
- red30: string;
3723
- red40: string;
3724
- red50: string;
3725
- red60: string;
3726
- red70: string;
3727
- red80: string;
3728
3767
  red90: string;
3768
+ red80: string;
3769
+ red70: string;
3770
+ red60: string;
3771
+ red50: string;
3772
+ red40: string;
3773
+ red30: string;
3774
+ red20: string;
3775
+ red10: string;
3729
3776
  green90: string;
3730
3777
  green80: string;
3731
3778
  green70: string;
@@ -3753,6 +3800,7 @@ declare const getSizeStyles$2: (theme: {
3753
3800
  yellow30: string;
3754
3801
  yellow20: string;
3755
3802
  yellow10: string;
3803
+ blackAlpha5: string;
3756
3804
  blackAlpha20: string;
3757
3805
  };
3758
3806
  bg: {
@@ -3834,7 +3882,9 @@ declare const getSizeStyles$2: (theme: {
3834
3882
  '5x': string;
3835
3883
  '6x': string;
3836
3884
  '8x': string;
3885
+ '10x': string;
3837
3886
  '12x': string;
3887
+ '14x': string;
3838
3888
  '16x': string;
3839
3889
  '20x': string;
3840
3890
  '24x': string;
@@ -4113,7 +4163,9 @@ declare const getSizeStyles$1: (theme: {
4113
4163
  '5x': string;
4114
4164
  '6x': string;
4115
4165
  '8x': string;
4166
+ '10x': string;
4116
4167
  '12x': string;
4168
+ '14x': string;
4117
4169
  '16x': string;
4118
4170
  '20x': string;
4119
4171
  '24x': string;
@@ -4154,6 +4206,7 @@ declare const getSizeStyles$1: (theme: {
4154
4206
  gray30: string;
4155
4207
  gray20: string;
4156
4208
  gray10: string;
4209
+ pink: string;
4157
4210
  uiPink: string;
4158
4211
  uiPinkDark: string;
4159
4212
  uiPinkLight: string;
@@ -4166,15 +4219,15 @@ declare const getSizeStyles$1: (theme: {
4166
4219
  softPink: string;
4167
4220
  warmYellow: string;
4168
4221
  softYellow: string;
4169
- red10: string;
4170
- red20: string;
4171
- red30: string;
4172
- red40: string;
4173
- red50: string;
4174
- red60: string;
4175
- red70: string;
4176
- red80: string;
4177
4222
  red90: string;
4223
+ red80: string;
4224
+ red70: string;
4225
+ red60: string;
4226
+ red50: string;
4227
+ red40: string;
4228
+ red30: string;
4229
+ red20: string;
4230
+ red10: string;
4178
4231
  green90: string;
4179
4232
  green80: string;
4180
4233
  green70: string;
@@ -4202,6 +4255,7 @@ declare const getSizeStyles$1: (theme: {
4202
4255
  yellow30: string;
4203
4256
  yellow20: string;
4204
4257
  yellow10: string;
4258
+ blackAlpha5: string;
4205
4259
  blackAlpha20: string;
4206
4260
  };
4207
4261
  bg: {
@@ -4283,7 +4337,9 @@ declare const getSizeStyles$1: (theme: {
4283
4337
  '5x': string;
4284
4338
  '6x': string;
4285
4339
  '8x': string;
4340
+ '10x': string;
4286
4341
  '12x': string;
4342
+ '14x': string;
4287
4343
  '16x': string;
4288
4344
  '20x': string;
4289
4345
  '24x': string;
@@ -4528,7 +4584,9 @@ declare const getSizeStyles: (theme: {
4528
4584
  '5x': string;
4529
4585
  '6x': string;
4530
4586
  '8x': string;
4587
+ '10x': string;
4531
4588
  '12x': string;
4589
+ '14x': string;
4532
4590
  '16x': string;
4533
4591
  '20x': string;
4534
4592
  '24x': string;
@@ -4569,6 +4627,7 @@ declare const getSizeStyles: (theme: {
4569
4627
  gray30: string;
4570
4628
  gray20: string;
4571
4629
  gray10: string;
4630
+ pink: string;
4572
4631
  uiPink: string;
4573
4632
  uiPinkDark: string;
4574
4633
  uiPinkLight: string;
@@ -4581,15 +4640,15 @@ declare const getSizeStyles: (theme: {
4581
4640
  softPink: string;
4582
4641
  warmYellow: string;
4583
4642
  softYellow: string;
4584
- red10: string;
4585
- red20: string;
4586
- red30: string;
4587
- red40: string;
4588
- red50: string;
4589
- red60: string;
4590
- red70: string;
4591
- red80: string;
4592
4643
  red90: string;
4644
+ red80: string;
4645
+ red70: string;
4646
+ red60: string;
4647
+ red50: string;
4648
+ red40: string;
4649
+ red30: string;
4650
+ red20: string;
4651
+ red10: string;
4593
4652
  green90: string;
4594
4653
  green80: string;
4595
4654
  green70: string;
@@ -4617,6 +4676,7 @@ declare const getSizeStyles: (theme: {
4617
4676
  yellow30: string;
4618
4677
  yellow20: string;
4619
4678
  yellow10: string;
4679
+ blackAlpha5: string;
4620
4680
  blackAlpha20: string;
4621
4681
  };
4622
4682
  bg: {
@@ -4698,7 +4758,9 @@ declare const getSizeStyles: (theme: {
4698
4758
  '5x': string;
4699
4759
  '6x': string;
4700
4760
  '8x': string;
4761
+ '10x': string;
4701
4762
  '12x': string;
4763
+ '14x': string;
4702
4764
  '16x': string;
4703
4765
  '20x': string;
4704
4766
  '24x': string;
@@ -5236,6 +5298,11 @@ interface TextareaOptions extends TextareaBaseOptions {
5236
5298
  * Text that provides additional guidance to the user
5237
5299
  */
5238
5300
  helperText?: string;
5301
+ /**
5302
+ * If `true`, the input will display an optional indicator.
5303
+ * If the `isRequired` prop is also `true`, this prop will be ignored.
5304
+ */
5305
+ isOptional?: boolean;
5239
5306
  }
5240
5307
  type OmittedProps$1 = 'children' | 'readOnly' | 'size';
5241
5308
  interface TextareaProps extends Omit<HTMLQdsProps<'textarea'>, OmittedProps$1>, TextareaOptions {
@@ -5286,15 +5353,6 @@ type UseBreakpointValueProps<T> = BreakpointsConfig<T>;
5286
5353
  */
5287
5354
  declare function useBreakpointValue<T>(values: UseBreakpointValueProps<T>, options?: UseBreakpointOptions): T;
5288
5355
 
5289
- type LoadingStatus = 'loading' | 'loaded' | 'error' | 'pending';
5290
- interface UseImageProps {
5291
- src?: string;
5292
- loading?: HTMLQdsProps<'img'>['loading'];
5293
- }
5294
- declare const useImage: ({ src, loading }: UseImageProps) => {
5295
- loadingStatus: LoadingStatus;
5296
- };
5297
-
5298
5356
  type FormFieldElement = 'input' | 'select' | 'textarea';
5299
5357
  type PropGetter<T extends ElementType = LegitimateAny> = (props?: HTMLQdsProps<T>) => Record<string, unknown>;
5300
5358
  interface FormFieldOptions {
@@ -5356,4 +5414,4 @@ declare function useStableId(fixedId?: string | null): string;
5356
5414
  */
5357
5415
  declare const useSafeLayoutEffect: typeof useLayoutEffect;
5358
5416
 
5359
- 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.10.1",
3
+ "version": "0.12.0",
4
4
  "license": "UNLICENSED",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,8 +26,7 @@
26
26
  "lint:ci": "NODE_ENV=production eslint . --cache",
27
27
  "lint:prettier": "prettier --check ./src --cache",
28
28
  "prepublishOnly": "yarn build",
29
- "release": "changeset publish",
30
- "gen:component": "plop --plopfile scripts/plopfile.js"
29
+ "release": "changeset publish"
31
30
  },
32
31
  "devDependencies": {
33
32
  "@babel/core": "^7.19.3",
@@ -69,14 +68,13 @@
69
68
  "eslint-plugin-react": "^7.34.1",
70
69
  "eslint-plugin-react-hooks": "^4.6.0",
71
70
  "eslint-plugin-testing-library": "^6.2.0",
72
- "jest": "^29.1.1",
73
71
  "framer-motion": "^11.0.3",
72
+ "jest": "^29.1.1",
74
73
  "jest-axe": "^6.0.0",
75
74
  "jest-environment-jsdom": "^29.1.1",
76
75
  "jest-matchmedia-mock": "^1.1.0",
77
76
  "jest-watch-typeahead": "^2.2.0",
78
77
  "lucide-react": "^0.294.0",
79
- "plop": "^3.1.1",
80
78
  "prettier": "^3.2.5",
81
79
  "react": "^18.2.0",
82
80
  "react-dom": "^18.2.0",
@@ -103,6 +101,7 @@
103
101
  "node": ">=20"
104
102
  },
105
103
  "dependencies": {
104
+ "@radix-ui/react-avatar": "^1.0.4",
106
105
  "@radix-ui/react-checkbox": "^1.0.4",
107
106
  "@radix-ui/react-dropdown-menu": "^2.0.6",
108
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 {};