@aic-kits/react 0.35.1 → 0.35.3

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 (48) hide show
  1. package/dist/components/Button/StyledButton.d.ts +15 -10
  2. package/dist/components/DatePicker/hooks.d.ts +1 -1
  3. package/dist/components/Grid/StyledGrid.d.ts +13 -4
  4. package/dist/components/Grid/__tests__/index.test.d.ts +1 -0
  5. package/dist/components/Grid/__tests__/utils.test.d.ts +1 -0
  6. package/dist/components/Grid/types.d.ts +2 -1
  7. package/dist/components/Grid/utils.d.ts +2 -1
  8. package/dist/components/Input/StyledInput.d.ts +2 -1
  9. package/dist/components/Input/types.d.ts +6 -1
  10. package/dist/components/Radio/Radio.d.ts +3 -0
  11. package/dist/components/Radio/RadioButton.d.ts +3 -0
  12. package/dist/components/Radio/RadioContext.d.ts +3 -0
  13. package/dist/components/Radio/RadioGroup.d.ts +3 -0
  14. package/dist/components/Radio/index.d.ts +10 -0
  15. package/dist/components/Radio/types.d.ts +147 -0
  16. package/dist/components/Select/Select.d.ts +1 -1
  17. package/dist/components/Select/types.d.ts +10 -1
  18. package/dist/components/Switch/StyledSwitch.d.ts +6 -0
  19. package/dist/components/Switch/Switch.d.ts +3 -0
  20. package/dist/components/Switch/__tests__/index.test.d.ts +1 -0
  21. package/dist/components/Switch/index.d.ts +2 -0
  22. package/dist/components/Switch/types.d.ts +44 -0
  23. package/dist/components/Table/AccordionRow.d.ts +5 -0
  24. package/dist/components/Table/AccordionRowContent.d.ts +20 -0
  25. package/dist/components/Table/AccordionRowHeader.d.ts +16 -0
  26. package/dist/components/Table/AddForm.d.ts +5 -0
  27. package/dist/components/Table/DeleteDialog.d.ts +3 -0
  28. package/dist/components/Table/Filters.d.ts +3 -0
  29. package/dist/components/Table/FormFields.d.ts +24 -0
  30. package/dist/components/Table/InlineMultiSelect.d.ts +3 -0
  31. package/dist/components/Table/InlinePairSelect.d.ts +3 -0
  32. package/dist/components/Table/StyledTable.d.ts +29 -0
  33. package/dist/components/Table/Table.d.ts +5 -0
  34. package/dist/components/Table/TableHeaderRow.d.ts +10 -0
  35. package/dist/components/Table/TablePagination.d.ts +11 -0
  36. package/dist/components/Table/ValidationDialog.d.ts +7 -0
  37. package/dist/components/Table/hooks.d.ts +34 -0
  38. package/dist/components/Table/index.d.ts +12 -0
  39. package/dist/components/Table/types.d.ts +372 -0
  40. package/dist/components/Table/utils.d.ts +83 -0
  41. package/dist/components/index.d.ts +3 -0
  42. package/dist/index.cjs +470 -370
  43. package/dist/index.js +13150 -9572
  44. package/dist/theme/components/index.d.ts +10 -1
  45. package/dist/theme/components/radio.d.ts +42 -0
  46. package/dist/theme/components/switch.d.ts +27 -0
  47. package/dist/theme/components/table.d.ts +34 -0
  48. package/package.json +2 -2
@@ -17,8 +17,11 @@ import { LoadingThemeConfig } from './loading';
17
17
  import { PaginationTheme } from './pagination';
18
18
  import { PieChartThemeConfig } from './pieChart';
19
19
  import { ProgressThemeConfig, ProgressSize, ProgressVariant } from './progress';
20
+ import { RadioThemeConfig, RadioSize } from './radio';
20
21
  import { SelectThemeConfig, SelectSize, SelectVariant } from './select';
21
22
  import { SkeletonThemeConfig } from './skeleton';
23
+ import { SwitchThemeConfig } from './switch';
24
+ import { TableThemeConfig } from './table';
22
25
  import { TagThemeConfig } from './tag';
23
26
  import { TimePickerThemeConfig } from './timepicker';
24
27
  import { TooltipThemeConfig } from './tooltip';
@@ -50,6 +53,9 @@ export interface ComponentsTheme {
50
53
  lineChart: LineChartThemeConfig;
51
54
  datepicker: DatePickerThemeConfig;
52
55
  timepicker: TimePickerThemeConfig;
56
+ switch: SwitchThemeConfig;
57
+ table: TableThemeConfig;
58
+ radio: RadioThemeConfig;
53
59
  }
54
60
  export declare const getComponentsTheme: (theme: Theme) => ComponentsTheme;
55
61
  export * from './accordion';
@@ -71,6 +77,7 @@ export * from './pieChart';
71
77
  export * from './progress';
72
78
  export * from './select';
73
79
  export * from './skeleton';
80
+ export * from './table';
74
81
  export * from './tag';
75
82
  export * from './tooltip';
76
83
  export * from './touchable';
@@ -85,4 +92,6 @@ export * from './avatar';
85
92
  export * from './tooltip';
86
93
  export * from './datepicker';
87
94
  export * from './timepicker';
88
- export type { SelectSize, SelectVariant, ProgressSize, ProgressVariant };
95
+ export * from './switch';
96
+ export * from './radio';
97
+ export type { SelectSize, SelectVariant, ProgressSize, ProgressVariant, RadioSize, };
@@ -0,0 +1,42 @@
1
+ import { Size, Space, Radius, Color, BorderWidth, FontSize } from '../common';
2
+ import { Theme } from '../getTheme';
3
+ export type RadioSize = 'sm' | 'md' | 'lg';
4
+ export interface RadioSizeConfig {
5
+ labelFontSize: FontSize;
6
+ labelPaddingLeft: Space;
7
+ indicatorSize: Size | `${number}px`;
8
+ indicatorInnerSize: Size | `${number}px`;
9
+ borderRadius: Radius;
10
+ borderWidth: BorderWidth;
11
+ horizontalGap: Space;
12
+ verticalGap: Space;
13
+ }
14
+ export interface RadioButtonSizeConfig {
15
+ paddingHorizontal: Space;
16
+ paddingVertical: Space;
17
+ fontSize: FontSize;
18
+ borderRadius: Radius;
19
+ }
20
+ export interface RadioThemeConfig {
21
+ defaultColor: Color;
22
+ defaultSize: RadioSize;
23
+ uncheckedBorderColor: Color;
24
+ disabledColor: Color;
25
+ disabledTextColor: Color;
26
+ textColor: Color;
27
+ sizes: Record<RadioSize, RadioSizeConfig>;
28
+ button: {
29
+ borderColor: Color;
30
+ activeBorderColor: Color;
31
+ solidBackground: Color;
32
+ solidTextColor: Color;
33
+ outlineTextColor: Color;
34
+ disabledBackground: Color;
35
+ sizes: Record<RadioSize, RadioButtonSizeConfig>;
36
+ };
37
+ animation: {
38
+ duration: number;
39
+ easing: string;
40
+ };
41
+ }
42
+ export declare const radioTheme: (_theme: Theme) => RadioThemeConfig;
@@ -0,0 +1,27 @@
1
+ import { Color, FontSize, Space } from '../common';
2
+ import { Theme } from '../getTheme';
3
+ export type SwitchSize = 'sm' | 'md';
4
+ export interface SwitchSizeConfig {
5
+ trackWidth: number;
6
+ trackHeight: number;
7
+ handleSize: number;
8
+ handleMargin: number;
9
+ labelFontSize: FontSize;
10
+ labelPaddingLeft: Space;
11
+ }
12
+ export interface SwitchThemeConfig {
13
+ defaultColor: Color;
14
+ defaultSize: SwitchSize;
15
+ activeColor: Color;
16
+ inactiveColor: Color;
17
+ handleColor: Color;
18
+ disabledOpacity: number;
19
+ disabledTextColor: Color;
20
+ textColor: Color;
21
+ sizes: Record<SwitchSize, SwitchSizeConfig>;
22
+ animation: {
23
+ duration: number;
24
+ easing: string;
25
+ };
26
+ }
27
+ export declare const switchTheme: (_theme: Theme) => SwitchThemeConfig;
@@ -0,0 +1,34 @@
1
+ import { Theme } from '..';
2
+ export interface TableThemeConfig {
3
+ borderColor: string;
4
+ borderRadius: string;
5
+ headerBgColor: string;
6
+ headerTextColor: string;
7
+ headerFontWeight: string;
8
+ headerPadding: string;
9
+ rowBgColor: string;
10
+ rowBgColorAlt: string;
11
+ rowBgColorHover: string;
12
+ rowBgColorSelected: string;
13
+ rowBorderColor: string;
14
+ cellPadding: string;
15
+ cellTextColor: string;
16
+ cellFontSize: string;
17
+ sortIndicatorColor: string;
18
+ sortIndicatorActiveColor: string;
19
+ filterBgColor: string;
20
+ filterBorderColor: string;
21
+ filterPadding: string;
22
+ formBgColor: string;
23
+ formBorderColor: string;
24
+ formPadding: string;
25
+ chipBgColor: string;
26
+ chipBorderColor: string;
27
+ chipTextColor: string;
28
+ chipPadding: string;
29
+ chipBorderRadius: string;
30
+ linkColor: string;
31
+ linkHoverColor: string;
32
+ noDataTextColor: string;
33
+ }
34
+ export declare const tableTheme: (theme: Theme) => TableThemeConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aic-kits/react",
3
- "version": "0.35.1",
3
+ "version": "0.35.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -55,5 +55,5 @@
55
55
  "vite-plugin-dts": "^4.3.0",
56
56
  "vitest": "^2.1.8"
57
57
  },
58
- "gitHead": "b1b948233f856007bbbc2e6133f700b7a80604e9"
58
+ "gitHead": "c02e5a6979f49694335aad5e90e4b09aae7a1cdf"
59
59
  }