@ctlyst.id/internal-ui 1.0.1-canary.4 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. package/dist/components/base/stories/button.stories.d.ts +10 -0
  2. package/dist/components/base/stories/checkbox.stories.d.ts +11 -0
  3. package/dist/components/base/stories/input.stories.d.ts +16 -0
  4. package/dist/components/base/stories/radio.stories.d.ts +15 -0
  5. package/dist/components/base/stories/switch.stories.d.ts +11 -0
  6. package/dist/{types/components → components}/breadcrumb/components/BreadCrumb.d.ts +17 -17
  7. package/dist/components/breadcrumb/components/BreadCrumb.stories.d.ts +10 -0
  8. package/dist/{types/components → components}/breadcrumb/index.d.ts +2 -2
  9. package/dist/{types/components → components}/data-table/components/data-table.d.ts +40 -40
  10. package/dist/{types/components → components}/data-table/components/indeterminate-checkbox.d.ts +5 -5
  11. package/dist/{types/components → components}/data-table/index.d.ts +3 -3
  12. package/dist/components/data-table/stories/data-table.stories.d.ts +38 -0
  13. package/dist/{types/components → components}/data-table/types/table-core.d.ts +1 -1
  14. package/dist/{types/components → components}/datepicker/components/datepicker.d.ts +17 -17
  15. package/dist/components/datepicker/components/datepicker.stories.d.ts +13 -0
  16. package/dist/{types/components → components}/datepicker/components/styles.d.ts +2 -2
  17. package/dist/{types/components → components}/datepicker/components/time-input.d.ts +9 -9
  18. package/dist/{types/components → components}/datepicker/index.d.ts +2 -2
  19. package/dist/{types/components → components}/field/components/field.d.ts +11 -11
  20. package/dist/{types/components → components}/field/components/input-field.d.ts +12 -12
  21. package/dist/{types/components → components}/field/components/textarea-field.d.ts +12 -12
  22. package/dist/{types/components → components}/field/index.d.ts +6 -6
  23. package/dist/{types/components → components}/header/components/header.d.ts +10 -10
  24. package/dist/{types/components → components}/header/components/logo.d.ts +2 -2
  25. package/dist/{types/components → components}/header/components/profile.d.ts +8 -8
  26. package/dist/{types/components → components}/header/components/switch-mode.d.ts +3 -3
  27. package/dist/{types/components → components}/header/components/version.d.ts +9 -9
  28. package/dist/{types/components → components}/header/index.d.ts +3 -3
  29. package/dist/components/header/stories/header.stories.d.ts +10 -0
  30. package/dist/{types/components → components}/header/types.d.ts +10 -10
  31. package/dist/{types/components → components}/header/utils/formatter.d.ts +2 -2
  32. package/dist/{types/components → components}/index.d.ts +11 -11
  33. package/dist/{types/components → components}/modal/components/modal-close-button.d.ts +4 -4
  34. package/dist/{types/components → components}/modal/components/modal-footer.d.ts +4 -4
  35. package/dist/{types/components → components}/modal/components/modal-header.d.ts +4 -4
  36. package/dist/{types/components → components}/modal/index.d.ts +4 -4
  37. package/dist/components/modal/stories/modal.stories.d.ts +10 -0
  38. package/dist/{types/components → components}/navigation/components/navigation.d.ts +10 -10
  39. package/dist/{types/components → components}/navigation/index.d.ts +2 -2
  40. package/dist/components/navigation/stories/navigation.stories.d.ts +10 -0
  41. package/dist/{types/components → components}/navigation/types.d.ts +8 -8
  42. package/dist/{types/components → components}/pagination/components/pagination-button-trigger.d.ts +10 -10
  43. package/dist/{types/components → components}/pagination/components/pagination-button.d.ts +6 -6
  44. package/dist/{types/components → components}/pagination/components/pagination-detail.d.ts +10 -10
  45. package/dist/{types/components → components}/pagination/components/pagination-filter.d.ts +13 -13
  46. package/dist/{types/components → components}/pagination/components/pagination.d.ts +16 -16
  47. package/dist/{types/components → components}/pagination/index.d.ts +6 -6
  48. package/dist/components/pagination/stories/pagination.stories.d.ts +13 -0
  49. package/dist/{types/components → components}/select/components/select-async-creatable.d.ts +4 -4
  50. package/dist/{types/components → components}/select/components/select-async.d.ts +5 -5
  51. package/dist/{types/components → components}/select/components/select-creatable.d.ts +4 -4
  52. package/dist/{types/components → components}/select/components/select.d.ts +4 -4
  53. package/dist/{types/components → components}/select/components/utils.d.ts +26 -26
  54. package/dist/{types/components → components}/select/index.d.ts +8 -8
  55. package/dist/components/select/stories/select.stories.d.ts +13 -0
  56. package/dist/{types/components → components}/tabs/components/tab-list.d.ts +3 -3
  57. package/dist/{types/components → components}/tabs/components/tab-panel.d.ts +3 -3
  58. package/dist/{types/components → components}/tabs/components/tab.d.ts +11 -11
  59. package/dist/{types/components → components}/tabs/index.d.ts +4 -4
  60. package/dist/components/tabs/stories/tabs.stories.d.ts +10 -0
  61. package/dist/{types/components → components}/uploader/components/uploader.d.ts +12 -12
  62. package/dist/{types/components → components}/uploader/constants.d.ts +8 -8
  63. package/dist/{types/components → components}/uploader/index.d.ts +2 -2
  64. package/dist/components/uploader/stories/uploader.stories.d.ts +12 -0
  65. package/dist/config/foundations.stories.d.ts +13 -0
  66. package/dist/{types/config → config}/index.d.ts +1 -1
  67. package/dist/{types/config → config}/theme/components/button.d.ts +3 -3
  68. package/dist/{types/config → config}/theme/components/checkbox.d.ts +3 -3
  69. package/dist/{types/config → config}/theme/components/form-label.d.ts +19 -19
  70. package/dist/{types/config → config}/theme/components/index.d.ts +8 -8
  71. package/dist/{types/config → config}/theme/components/input.d.ts +114 -114
  72. package/dist/{types/config → config}/theme/components/popover.d.ts +3 -3
  73. package/dist/{types/config → config}/theme/components/radio.d.ts +3 -3
  74. package/dist/{types/config → config}/theme/components/switch.d.ts +32 -32
  75. package/dist/{types/config → config}/theme/components/textarea.d.ts +3 -3
  76. package/dist/config/theme/foundations/colors.d.ts +158 -0
  77. package/dist/{types/config → config}/theme/foundations/index.d.ts +5 -5
  78. package/dist/{types/config → config}/theme/foundations/radius.d.ts +8 -8
  79. package/dist/{types/config → config}/theme/foundations/sizes.d.ts +66 -66
  80. package/dist/{types/config → config}/theme/foundations/spacing.d.ts +42 -42
  81. package/dist/{types/config → config}/theme/foundations/typography.d.ts +173 -173
  82. package/dist/{types/config → config}/theme/index.d.ts +1 -1
  83. package/dist/{types/config → config}/theme/themeConfiguration.d.ts +4 -4
  84. package/dist/hooks/index.d.ts +1 -0
  85. package/dist/hooks/useFetcher.d.ts +4 -0
  86. package/dist/{types/index.d.ts → index.d.ts} +3 -3
  87. package/dist/index.js +6 -892
  88. package/dist/interfaces/common.d.ts +17 -0
  89. package/dist/internal-ui.cjs.development.js +3279 -0
  90. package/dist/internal-ui.cjs.development.js.map +1 -0
  91. package/dist/internal-ui.cjs.production.min.js +10 -0
  92. package/dist/internal-ui.cjs.production.min.js.map +1 -0
  93. package/dist/internal-ui.esm.js +3008 -0
  94. package/dist/internal-ui.esm.js.map +1 -0
  95. package/dist/{types/provider → provider}/index.d.ts +2 -2
  96. package/dist/{types/provider → provider}/provider.d.ts +6 -6
  97. package/dist/provider/provider.stories.d.ts +5 -0
  98. package/dist/provider/types.d.ts +14 -0
  99. package/package.json +8 -7
  100. package/dist/index.mjs +0 -20509
  101. package/dist/types/config/theme/foundations/colors.d.ts +0 -158
  102. package/dist/types/provider/types.d.ts +0 -14
@@ -1,42 +1,42 @@
1
- declare const spacing: {
2
- 4.5: string;
3
- 9.5: string;
4
- 18: string;
5
- 22: string;
6
- 26: string;
7
- 30: string;
8
- px: string;
9
- 0.5: string;
10
- 1: string;
11
- 1.5: string;
12
- 2: string;
13
- 2.5: string;
14
- 3: string;
15
- 3.5: string;
16
- 4: string;
17
- 5: string;
18
- 6: string;
19
- 7: string;
20
- 8: string;
21
- 9: string;
22
- 10: string;
23
- 12: string;
24
- 14: string;
25
- 16: string;
26
- 20: string;
27
- 24: string;
28
- 28: string;
29
- 32: string;
30
- 36: string;
31
- 40: string;
32
- 44: string;
33
- 48: string;
34
- 52: string;
35
- 56: string;
36
- 60: string;
37
- 64: string;
38
- 72: string;
39
- 80: string;
40
- 96: string;
41
- };
42
- export default spacing;
1
+ declare const spacing: {
2
+ 4.5: string;
3
+ 9.5: string;
4
+ 18: string;
5
+ 22: string;
6
+ 26: string;
7
+ 30: string;
8
+ px: string;
9
+ 0.5: string;
10
+ 1: string;
11
+ 1.5: string;
12
+ 2: string;
13
+ 2.5: string;
14
+ 3: string;
15
+ 3.5: string;
16
+ 4: string;
17
+ 5: string;
18
+ 6: string;
19
+ 7: string;
20
+ 8: string;
21
+ 9: string;
22
+ 10: string;
23
+ 12: string;
24
+ 14: string;
25
+ 16: string;
26
+ 20: string;
27
+ 24: string;
28
+ 28: string;
29
+ 32: string;
30
+ 36: string;
31
+ 40: string;
32
+ 44: string;
33
+ 48: string;
34
+ 52: string;
35
+ 56: string;
36
+ 60: string;
37
+ 64: string;
38
+ 72: string;
39
+ 80: string;
40
+ 96: string;
41
+ };
42
+ export default spacing;
@@ -1,173 +1,173 @@
1
- declare const fonts: {
2
- heading: string;
3
- body: string;
4
- };
5
- declare const fontWeights: {
6
- hairline: number;
7
- thin: number;
8
- light: number;
9
- normal: number;
10
- medium: number;
11
- semibold: number;
12
- bold: number;
13
- extrabold: number;
14
- black: number;
15
- };
16
- declare const lineHeights: {
17
- normal: string;
18
- none: number;
19
- shorter: number;
20
- short: number;
21
- base: number;
22
- tall: number;
23
- 34: string;
24
- 32: string;
25
- 30: string;
26
- 28: string;
27
- 26: string;
28
- 24: string;
29
- 22: string;
30
- 20: string;
31
- 18: string;
32
- 16: string;
33
- 14: string;
34
- 12: string;
35
- };
36
- declare const fontSizes: {
37
- heading: {
38
- 1: string;
39
- 2: string;
40
- 3: string;
41
- 4: string;
42
- 5: string;
43
- 6: string;
44
- };
45
- text: {
46
- xl: string;
47
- lg: string;
48
- md: string;
49
- sm: string;
50
- xs: string;
51
- };
52
- button: {
53
- lg: string;
54
- md: string;
55
- sm: string;
56
- };
57
- field: {
58
- lg: string;
59
- md: string;
60
- sm: string;
61
- };
62
- table: {
63
- header: string;
64
- };
65
- };
66
- declare const textStyles: {
67
- heading: {
68
- 1: {
69
- fontSize: string;
70
- fontWeight: string;
71
- lineHeight: string;
72
- letterSpacing: string;
73
- };
74
- 2: {
75
- fontSize: string;
76
- fontWeight: string;
77
- lineHeight: string;
78
- letterSpacing: string;
79
- };
80
- 3: {
81
- fontSize: string;
82
- fontWeight: string;
83
- lineHeight: string;
84
- letterSpacing: string;
85
- };
86
- 4: {
87
- fontSize: string;
88
- fontWeight: string;
89
- lineHeight: string;
90
- letterSpacing: string;
91
- };
92
- 5: {
93
- fontSize: string;
94
- fontWeight: string;
95
- lineHeight: string;
96
- letterSpacing: string;
97
- };
98
- 6: {
99
- fontSize: string;
100
- fontWeight: string;
101
- lineHeight: string;
102
- letterSpacing: string;
103
- };
104
- };
105
- text: {
106
- xl: {
107
- fontSize: string;
108
- lineHeight: string;
109
- letterSpacing: string;
110
- };
111
- lg: {
112
- fontSize: string;
113
- lineHeight: string;
114
- letterSpacing: string;
115
- };
116
- md: {
117
- fontSize: string;
118
- lineHeight: string;
119
- letterSpacing: string;
120
- };
121
- sm: {
122
- fontSize: string;
123
- lineHeight: string;
124
- letterSpacing: string;
125
- };
126
- xs: {
127
- fontSize: string;
128
- lineHeight: string;
129
- letterSpacing: string;
130
- };
131
- };
132
- button: {
133
- lg: {
134
- fontSize: string;
135
- lineHeight: string;
136
- letterSpacing: string;
137
- fontWeight: number;
138
- };
139
- md: {
140
- fontSize: string;
141
- lineHeight: string;
142
- letterSpacing: string;
143
- fontWeight: number;
144
- };
145
- sm: {
146
- fontSize: string;
147
- lineHeight: string;
148
- letterSpacing: string;
149
- fontWeight: number;
150
- };
151
- };
152
- field: {
153
- lg: {
154
- fontSize: string;
155
- lineHeight: string;
156
- letterSpacing: string;
157
- fontWeight: number;
158
- };
159
- md: {
160
- fontSize: string;
161
- lineHeight: string;
162
- letterSpacing: string;
163
- fontWeight: number;
164
- };
165
- sm: {
166
- fontSize: string;
167
- lineHeight: string;
168
- letterSpacing: string;
169
- fontWeight: number;
170
- };
171
- };
172
- };
173
- export { fonts, fontSizes, fontWeights, lineHeights, textStyles };
1
+ declare const fonts: {
2
+ heading: string;
3
+ body: string;
4
+ };
5
+ declare const fontWeights: {
6
+ hairline: number;
7
+ thin: number;
8
+ light: number;
9
+ normal: number;
10
+ medium: number;
11
+ semibold: number;
12
+ bold: number;
13
+ extrabold: number;
14
+ black: number;
15
+ };
16
+ declare const lineHeights: {
17
+ normal: string;
18
+ none: number;
19
+ shorter: number;
20
+ short: number;
21
+ base: number;
22
+ tall: number;
23
+ 34: string;
24
+ 32: string;
25
+ 30: string;
26
+ 28: string;
27
+ 26: string;
28
+ 24: string;
29
+ 22: string;
30
+ 20: string;
31
+ 18: string;
32
+ 16: string;
33
+ 14: string;
34
+ 12: string;
35
+ };
36
+ declare const fontSizes: {
37
+ heading: {
38
+ 1: string;
39
+ 2: string;
40
+ 3: string;
41
+ 4: string;
42
+ 5: string;
43
+ 6: string;
44
+ };
45
+ text: {
46
+ xl: string;
47
+ lg: string;
48
+ md: string;
49
+ sm: string;
50
+ xs: string;
51
+ };
52
+ button: {
53
+ lg: string;
54
+ md: string;
55
+ sm: string;
56
+ };
57
+ field: {
58
+ lg: string;
59
+ md: string;
60
+ sm: string;
61
+ };
62
+ table: {
63
+ header: string;
64
+ };
65
+ };
66
+ declare const textStyles: {
67
+ heading: {
68
+ 1: {
69
+ fontSize: string;
70
+ fontWeight: string;
71
+ lineHeight: string;
72
+ letterSpacing: string;
73
+ };
74
+ 2: {
75
+ fontSize: string;
76
+ fontWeight: string;
77
+ lineHeight: string;
78
+ letterSpacing: string;
79
+ };
80
+ 3: {
81
+ fontSize: string;
82
+ fontWeight: string;
83
+ lineHeight: string;
84
+ letterSpacing: string;
85
+ };
86
+ 4: {
87
+ fontSize: string;
88
+ fontWeight: string;
89
+ lineHeight: string;
90
+ letterSpacing: string;
91
+ };
92
+ 5: {
93
+ fontSize: string;
94
+ fontWeight: string;
95
+ lineHeight: string;
96
+ letterSpacing: string;
97
+ };
98
+ 6: {
99
+ fontSize: string;
100
+ fontWeight: string;
101
+ lineHeight: string;
102
+ letterSpacing: string;
103
+ };
104
+ };
105
+ text: {
106
+ xl: {
107
+ fontSize: string;
108
+ lineHeight: string;
109
+ letterSpacing: string;
110
+ };
111
+ lg: {
112
+ fontSize: string;
113
+ lineHeight: string;
114
+ letterSpacing: string;
115
+ };
116
+ md: {
117
+ fontSize: string;
118
+ lineHeight: string;
119
+ letterSpacing: string;
120
+ };
121
+ sm: {
122
+ fontSize: string;
123
+ lineHeight: string;
124
+ letterSpacing: string;
125
+ };
126
+ xs: {
127
+ fontSize: string;
128
+ lineHeight: string;
129
+ letterSpacing: string;
130
+ };
131
+ };
132
+ button: {
133
+ lg: {
134
+ fontSize: string;
135
+ lineHeight: string;
136
+ letterSpacing: string;
137
+ fontWeight: number;
138
+ };
139
+ md: {
140
+ fontSize: string;
141
+ lineHeight: string;
142
+ letterSpacing: string;
143
+ fontWeight: number;
144
+ };
145
+ sm: {
146
+ fontSize: string;
147
+ lineHeight: string;
148
+ letterSpacing: string;
149
+ fontWeight: number;
150
+ };
151
+ };
152
+ field: {
153
+ lg: {
154
+ fontSize: string;
155
+ lineHeight: string;
156
+ letterSpacing: string;
157
+ fontWeight: number;
158
+ };
159
+ md: {
160
+ fontSize: string;
161
+ lineHeight: string;
162
+ letterSpacing: string;
163
+ fontWeight: number;
164
+ };
165
+ sm: {
166
+ fontSize: string;
167
+ lineHeight: string;
168
+ letterSpacing: string;
169
+ fontWeight: number;
170
+ };
171
+ };
172
+ };
173
+ export { fonts, fontSizes, fontWeights, lineHeights, textStyles };
@@ -1 +1 @@
1
- export * from './themeConfiguration';
1
+ export * from './themeConfiguration';
@@ -1,4 +1,4 @@
1
- declare const theme: Record<string, any>;
2
- type Theme = typeof theme;
3
- export type { Theme };
4
- export { theme };
1
+ declare const theme: Record<string, any>;
2
+ declare type Theme = typeof theme;
3
+ export type { Theme };
4
+ export { theme };
@@ -0,0 +1 @@
1
+ export { default as useFetcher } from './useFetcher';
@@ -0,0 +1,4 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ export default function useFetcher(): {
3
+ fetcher: <TResponse = unknown>({ url, data, method, headers, ...config }: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<TResponse, any>>;
4
+ };
@@ -1,3 +1,3 @@
1
- export * from './components';
2
- export * from './config';
3
- export * from './provider';
1
+ export * from './components';
2
+ export * from './config';
3
+ export * from './provider';