@intelligencebank/connectingib 5.0.0 → 5.2.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.
- package/README.md +123 -0
- package/dist/components/Box/Box.d.ts +35 -0
- package/dist/components/Box/Box.d.ts.map +1 -0
- package/dist/components/Box/Box.types.d.ts +79 -0
- package/dist/components/Box/Box.types.d.ts.map +1 -0
- package/dist/components/Box/index.d.ts +3 -0
- package/dist/components/Box/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.types.d.ts +5 -1
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/CategoryFilters/CategoryFilters.d.ts +23 -0
- package/dist/components/CategoryFilters/CategoryFilters.d.ts.map +1 -0
- package/dist/components/CategoryFilters/CategoryFilters.types.d.ts +61 -0
- package/dist/components/CategoryFilters/CategoryFilters.types.d.ts.map +1 -0
- package/dist/components/CategoryFilters/index.d.ts +22 -0
- package/dist/components/CategoryFilters/index.d.ts.map +1 -0
- package/dist/components/Center/Center.d.ts +25 -0
- package/dist/components/Center/Center.d.ts.map +1 -0
- package/dist/components/Center/Center.types.d.ts +53 -0
- package/dist/components/Center/Center.types.d.ts.map +1 -0
- package/dist/components/Center/index.d.ts +3 -0
- package/dist/components/Center/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +168 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/components/Checkbox/CheckboxGroup.d.ts +7 -0
- package/dist/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +4 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/Chip/Chip.types.d.ts +2 -0
- package/dist/components/Chip/Chip.types.d.ts.map +1 -1
- package/dist/components/ConnectedAppCard/ConnectedAppCard.d.ts +5 -0
- package/dist/components/ConnectedAppCard/ConnectedAppCard.d.ts.map +1 -0
- package/dist/components/ConnectedAppCard/ConnectedAppCard.types.d.ts +136 -0
- package/dist/components/ConnectedAppCard/ConnectedAppCard.types.d.ts.map +1 -0
- package/dist/components/ConnectedAppCard/index.d.ts +3 -0
- package/dist/components/ConnectedAppCard/index.d.ts.map +1 -0
- package/dist/components/CreateReview/CreateReview.d.ts +44 -0
- package/dist/components/CreateReview/CreateReview.d.ts.map +1 -0
- package/dist/components/CreateReview/CreateReview.types.d.ts +180 -0
- package/dist/components/CreateReview/CreateReview.types.d.ts.map +1 -0
- package/dist/components/CreateReview/index.d.ts +3 -0
- package/dist/components/CreateReview/index.d.ts.map +1 -0
- package/dist/components/Divider/Divider.d.ts +7 -0
- package/dist/components/Divider/Divider.d.ts.map +1 -0
- package/dist/components/Divider/Divider.types.d.ts +37 -0
- package/dist/components/Divider/Divider.types.d.ts.map +1 -0
- package/dist/components/Divider/index.d.ts +3 -0
- package/dist/components/Divider/index.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +7 -0
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.types.d.ts +40 -0
- package/dist/components/EmptyState/EmptyState.types.d.ts.map +1 -0
- package/dist/components/EmptyState/index.d.ts +3 -0
- package/dist/components/EmptyState/index.d.ts.map +1 -0
- package/dist/components/HStack/HStack.d.ts +24 -0
- package/dist/components/HStack/HStack.d.ts.map +1 -0
- package/dist/components/HStack/HStack.types.d.ts +19 -0
- package/dist/components/HStack/HStack.types.d.ts.map +1 -0
- package/dist/components/HStack/index.d.ts +3 -0
- package/dist/components/HStack/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.types.d.ts +7 -1
- package/dist/components/Input/Input.types.d.ts.map +1 -1
- package/dist/components/LatestReview/FieldSelectionDialog.d.ts +22 -0
- package/dist/components/LatestReview/FieldSelectionDialog.d.ts.map +1 -0
- package/dist/components/LatestReview/LatestReview.d.ts +37 -0
- package/dist/components/LatestReview/LatestReview.d.ts.map +1 -0
- package/dist/components/LatestReview/LatestReview.types.d.ts +169 -0
- package/dist/components/LatestReview/LatestReview.types.d.ts.map +1 -0
- package/dist/components/LatestReview/index.d.ts +4 -0
- package/dist/components/LatestReview/index.d.ts.map +1 -0
- package/dist/components/LoginForm/LoginForm.d.ts.map +1 -1
- package/dist/components/Message/Message.d.ts.map +1 -1
- package/dist/components/Message/Message.types.d.ts +5 -1
- package/dist/components/Message/Message.types.d.ts.map +1 -1
- package/dist/components/ReviewDetails/ReviewDetails.d.ts +34 -0
- package/dist/components/ReviewDetails/ReviewDetails.d.ts.map +1 -0
- package/dist/components/ReviewDetails/ReviewDetails.types.d.ts +77 -0
- package/dist/components/ReviewDetails/ReviewDetails.types.d.ts.map +1 -0
- package/dist/components/ReviewDetails/index.d.ts +9 -0
- package/dist/components/ReviewDetails/index.d.ts.map +1 -0
- package/dist/components/ReviewFiles/ReviewFiles.d.ts +16 -0
- package/dist/components/ReviewFiles/ReviewFiles.d.ts.map +1 -0
- package/dist/components/ReviewFiles/ReviewFiles.types.d.ts +91 -0
- package/dist/components/ReviewFiles/ReviewFiles.types.d.ts.map +1 -0
- package/dist/components/ReviewFiles/index.d.ts +33 -0
- package/dist/components/ReviewFiles/index.d.ts.map +1 -0
- package/dist/components/ReviewProcessing/ReviewProcessing.d.ts +37 -0
- package/dist/components/ReviewProcessing/ReviewProcessing.d.ts.map +1 -0
- package/dist/components/ReviewProcessing/ReviewProcessing.types.d.ts +52 -0
- package/dist/components/ReviewProcessing/ReviewProcessing.types.d.ts.map +1 -0
- package/dist/components/ReviewProcessing/index.d.ts +3 -0
- package/dist/components/ReviewProcessing/index.d.ts.map +1 -0
- package/dist/components/ReviewResults/ReviewResults.d.ts +33 -0
- package/dist/components/ReviewResults/ReviewResults.d.ts.map +1 -0
- package/dist/components/ReviewResults/ReviewResults.types.d.ts +56 -0
- package/dist/components/ReviewResults/ReviewResults.types.d.ts.map +1 -0
- package/dist/components/ReviewResults/index.d.ts +9 -0
- package/dist/components/ReviewResults/index.d.ts.map +1 -0
- package/dist/components/RiskCard/RiskCard.d.ts.map +1 -1
- package/dist/components/RiskCard/RiskCard.types.d.ts +0 -2
- package/dist/components/RiskCard/RiskCard.types.d.ts.map +1 -1
- package/dist/components/RiskItemCard/RiskItemCard.d.ts +42 -0
- package/dist/components/RiskItemCard/RiskItemCard.d.ts.map +1 -0
- package/dist/components/RiskItemCard/RiskItemCard.types.d.ts +111 -0
- package/dist/components/RiskItemCard/RiskItemCard.types.d.ts.map +1 -0
- package/dist/components/RiskItemCard/index.d.ts +3 -0
- package/dist/components/RiskItemCard/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.types.d.ts +6 -0
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/SelectableItem/SelectableItem.d.ts +23 -0
- package/dist/components/SelectableItem/SelectableItem.d.ts.map +1 -0
- package/dist/components/SelectableItem/SelectableItem.types.d.ts +53 -0
- package/dist/components/SelectableItem/SelectableItem.types.d.ts.map +1 -0
- package/dist/components/SelectableItem/index.d.ts +3 -0
- package/dist/components/SelectableItem/index.d.ts.map +1 -0
- package/dist/components/Stack/Stack.d.ts +39 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/Stack.types.d.ts +45 -0
- package/dist/components/Stack/Stack.types.d.ts.map +1 -0
- package/dist/components/Stack/index.d.ts +3 -0
- package/dist/components/Stack/index.d.ts.map +1 -0
- package/dist/components/Status/Status.d.ts.map +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.types.d.ts +6 -0
- package/dist/components/Switch/Switch.types.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.types.d.ts +22 -0
- package/dist/components/TextArea/TextArea.types.d.ts.map +1 -1
- package/dist/components/Typography/Typography.d.ts +45 -0
- package/dist/components/Typography/Typography.d.ts.map +1 -0
- package/dist/components/Typography/Typography.types.d.ts +140 -0
- package/dist/components/Typography/Typography.types.d.ts.map +1 -0
- package/dist/components/Typography/index.d.ts +4 -0
- package/dist/components/Typography/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/connectingib.css +1 -1
- package/dist/index.js +1792 -770
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9436 -6761
- package/dist/index.mjs.map +1 -1
- package/dist/tokens/index.d.ts +1 -156
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/index.mjs +23 -96
- package/dist/tokens/index.mjs.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/riskReview.d.ts +258 -0
- package/dist/types/riskReview.d.ts.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,6 +110,129 @@ Domain-specific components for IntelligenceBank integrations:
|
|
|
110
110
|
- **PresetSelector** - Preset selection
|
|
111
111
|
- **SearchForm** - Search interface
|
|
112
112
|
|
|
113
|
+
### Risk Review Integration Components
|
|
114
|
+
|
|
115
|
+
Components for building AI-powered risk review workflows:
|
|
116
|
+
|
|
117
|
+
#### Core Components
|
|
118
|
+
|
|
119
|
+
- **ReviewProcessing** - Processing/loading overlay for single or batch reviews with progress indicators
|
|
120
|
+
- **ReviewDetails** - Displays review metadata (type, file, filters, timestamp, ID)
|
|
121
|
+
- **ReviewResults** - Displays risk findings with status and expandable multi-file sections
|
|
122
|
+
- **ReviewFiles** - File list with single/multiple selection, removal, and validation errors
|
|
123
|
+
- **CategoryFilters** - Dynamic filter dropdowns (single/multi-select) from API categories
|
|
124
|
+
|
|
125
|
+
#### Composite Components
|
|
126
|
+
|
|
127
|
+
- **CreateReview** - Complete review creation form with platform modes (extension/webapp)
|
|
128
|
+
- **LatestReview** - Complete results view with actions and Send to IB integration
|
|
129
|
+
|
|
130
|
+
#### Usage Example
|
|
131
|
+
|
|
132
|
+
```tsx
|
|
133
|
+
import {
|
|
134
|
+
CreateReview,
|
|
135
|
+
LatestReview,
|
|
136
|
+
ReviewProcessing,
|
|
137
|
+
ReviewDetails,
|
|
138
|
+
ReviewResults,
|
|
139
|
+
ReviewFiles,
|
|
140
|
+
CategoryFilters,
|
|
141
|
+
type ReviewContentType,
|
|
142
|
+
type RiskItem,
|
|
143
|
+
type ReviewFileItem,
|
|
144
|
+
} from '@intelligencebank/connectingib';
|
|
145
|
+
|
|
146
|
+
// Composite component for review creation
|
|
147
|
+
function ReviewCreationPage() {
|
|
148
|
+
return (
|
|
149
|
+
<CreateReview
|
|
150
|
+
platform="webapp"
|
|
151
|
+
files={files}
|
|
152
|
+
onFilesChange={setFiles}
|
|
153
|
+
categories={categories}
|
|
154
|
+
selectedCategories={selectedCategories}
|
|
155
|
+
onCategoryChange={handleCategoryChange}
|
|
156
|
+
onSubmit={handleSubmit}
|
|
157
|
+
isSubmitting={isSubmitting}
|
|
158
|
+
/>
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// Composite component for results display
|
|
163
|
+
function ReviewResultsPage() {
|
|
164
|
+
return (
|
|
165
|
+
<LatestReview
|
|
166
|
+
reviewData={reviewData}
|
|
167
|
+
onSendToIB={handleSendToIB}
|
|
168
|
+
isSending={isSending}
|
|
169
|
+
/>
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Building blocks for custom layouts
|
|
174
|
+
function CustomReviewLayout() {
|
|
175
|
+
return (
|
|
176
|
+
<>
|
|
177
|
+
<ReviewProcessing
|
|
178
|
+
isProcessing={isProcessing}
|
|
179
|
+
mode="multi"
|
|
180
|
+
progressData={progressData}
|
|
181
|
+
/>
|
|
182
|
+
<ReviewDetails
|
|
183
|
+
contentType="document"
|
|
184
|
+
fileName="report.pdf"
|
|
185
|
+
timestamp={new Date()}
|
|
186
|
+
reviewId="abc123"
|
|
187
|
+
/>
|
|
188
|
+
<CategoryFilters
|
|
189
|
+
categories={categories}
|
|
190
|
+
selectedCategories={selectedCategories}
|
|
191
|
+
onCategoryChange={handleCategoryChange}
|
|
192
|
+
/>
|
|
193
|
+
<ReviewFiles
|
|
194
|
+
files={files}
|
|
195
|
+
mode="multiple"
|
|
196
|
+
onSelect={handleSelect}
|
|
197
|
+
onRemove={handleRemove}
|
|
198
|
+
/>
|
|
199
|
+
<ReviewResults
|
|
200
|
+
risks={risks}
|
|
201
|
+
status="completed"
|
|
202
|
+
mode="single"
|
|
203
|
+
/>
|
|
204
|
+
</>
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
#### Types
|
|
210
|
+
|
|
211
|
+
```tsx
|
|
212
|
+
import type {
|
|
213
|
+
// Content and risk types
|
|
214
|
+
ReviewContentType,
|
|
215
|
+
RiskItem,
|
|
216
|
+
ReviewFileItem,
|
|
217
|
+
ReviewResultData,
|
|
218
|
+
|
|
219
|
+
// Multi-file review types
|
|
220
|
+
MultiFileReviewResultData,
|
|
221
|
+
MultiFileProgressData,
|
|
222
|
+
FileProgressData,
|
|
223
|
+
|
|
224
|
+
// Filter types
|
|
225
|
+
FilterCategoryData,
|
|
226
|
+
FilterValueData,
|
|
227
|
+
CategorySelection,
|
|
228
|
+
|
|
229
|
+
// Upload types
|
|
230
|
+
UploadFieldData,
|
|
231
|
+
} from '@intelligencebank/connectingib';
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
See [Storybook](http://localhost:6006) for interactive examples of all Risk Review components.
|
|
235
|
+
|
|
113
236
|
## Theming
|
|
114
237
|
|
|
115
238
|
The library uses Emotion for theming. Wrap your app with `ThemeProvider`:
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BoxProps } from './Box.types';
|
|
2
|
+
/**
|
|
3
|
+
* Box component - A basic container with spacing and visual styling props
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* // Padding on all sides
|
|
8
|
+
* <Box p={4}>
|
|
9
|
+
* <Content />
|
|
10
|
+
* </Box>
|
|
11
|
+
*
|
|
12
|
+
* // Horizontal and vertical padding
|
|
13
|
+
* <Box px={4} py={2}>
|
|
14
|
+
* <Content />
|
|
15
|
+
* </Box>
|
|
16
|
+
*
|
|
17
|
+
* // Individual spacing values
|
|
18
|
+
* <Box pt={4} pb={2} ml={3}>
|
|
19
|
+
* <Content />
|
|
20
|
+
* </Box>
|
|
21
|
+
*
|
|
22
|
+
* // As a section element
|
|
23
|
+
* <Box as="section" p={4} mb={3}>
|
|
24
|
+
* <Content />
|
|
25
|
+
* </Box>
|
|
26
|
+
*
|
|
27
|
+
* // Accented variant with custom color (for branded sections)
|
|
28
|
+
* <Box variant="accented" accentColor="#6161FF" p={5} borderRadius="md">
|
|
29
|
+
* <BrandedContent />
|
|
30
|
+
* </Box>
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare const Box: import('react').ForwardRefExoticComponent<BoxProps & import('react').RefAttributes<HTMLElement>>;
|
|
34
|
+
export default Box;
|
|
35
|
+
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAiC,MAAM,aAAa,CAAC;AA6E3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,GAAG,kGAqEf,CAAC;AAIF,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes, ElementType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Spacing value - can be a theme spacing index (number) or a CSS value (string)
|
|
4
|
+
*/
|
|
5
|
+
export type SpacingValue = number | string;
|
|
6
|
+
/**
|
|
7
|
+
* Box variant for visual styling
|
|
8
|
+
* - 'default': No visual styling applied
|
|
9
|
+
* - 'accented': Applies gradient background and colored border using accentColor
|
|
10
|
+
*/
|
|
11
|
+
export type BoxVariant = 'default' | 'accented';
|
|
12
|
+
/**
|
|
13
|
+
* Border radius options for Box
|
|
14
|
+
*/
|
|
15
|
+
export type BoxBorderRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
16
|
+
/**
|
|
17
|
+
* Props for the Box component
|
|
18
|
+
*/
|
|
19
|
+
export interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
20
|
+
/** Box content */
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
/** Padding on all sides */
|
|
23
|
+
p?: SpacingValue;
|
|
24
|
+
/** Horizontal padding (left and right) */
|
|
25
|
+
px?: SpacingValue;
|
|
26
|
+
/** Vertical padding (top and bottom) */
|
|
27
|
+
py?: SpacingValue;
|
|
28
|
+
/** Padding top */
|
|
29
|
+
pt?: SpacingValue;
|
|
30
|
+
/** Padding right */
|
|
31
|
+
pr?: SpacingValue;
|
|
32
|
+
/** Padding bottom */
|
|
33
|
+
pb?: SpacingValue;
|
|
34
|
+
/** Padding left */
|
|
35
|
+
pl?: SpacingValue;
|
|
36
|
+
/** Margin on all sides */
|
|
37
|
+
m?: SpacingValue;
|
|
38
|
+
/** Horizontal margin (left and right) */
|
|
39
|
+
mx?: SpacingValue;
|
|
40
|
+
/** Vertical margin (top and bottom) */
|
|
41
|
+
my?: SpacingValue;
|
|
42
|
+
/** Margin top */
|
|
43
|
+
mt?: SpacingValue;
|
|
44
|
+
/** Margin right */
|
|
45
|
+
mr?: SpacingValue;
|
|
46
|
+
/** Margin bottom */
|
|
47
|
+
mb?: SpacingValue;
|
|
48
|
+
/** Margin left */
|
|
49
|
+
ml?: SpacingValue;
|
|
50
|
+
/**
|
|
51
|
+
* Visual variant of the box
|
|
52
|
+
* - 'default': No visual styling
|
|
53
|
+
* - 'accented': Gradient background and colored border using accentColor
|
|
54
|
+
* @default 'default'
|
|
55
|
+
*/
|
|
56
|
+
variant?: BoxVariant;
|
|
57
|
+
/**
|
|
58
|
+
* Accent color for the 'accented' variant (hex color value)
|
|
59
|
+
* Creates a subtle gradient background and colored border
|
|
60
|
+
* @example '#6161FF'
|
|
61
|
+
*/
|
|
62
|
+
accentColor?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Border radius preset
|
|
65
|
+
* @default 'none'
|
|
66
|
+
*/
|
|
67
|
+
borderRadius?: BoxBorderRadius;
|
|
68
|
+
/** Polymorphic element type */
|
|
69
|
+
as?: ElementType;
|
|
70
|
+
/** Additional CSS classes */
|
|
71
|
+
className?: string;
|
|
72
|
+
/** Test ID (deprecated, use dataTestId) */
|
|
73
|
+
'data-testid'?: string;
|
|
74
|
+
/** Test identifier for automated testing */
|
|
75
|
+
dataTestId?: string;
|
|
76
|
+
/** Data identifier for ib-ui compatibility */
|
|
77
|
+
dataId?: string;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=Box.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.types.d.ts","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,QAAS,SAAQ,IAAI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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAuiBlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,MAAM,2GA6HlB,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
|
4
4
|
* Visual variants for the Button component
|
|
5
5
|
* Extended to match ib-ui platform variants
|
|
6
6
|
*/
|
|
7
|
-
export type ButtonVariant = 'primary' | 'primaryInverse' | 'secondary' | 'secondaryInverse' | 'ghost' | 'ghostInverse' | 'positive' | 'danger' | 'destructive' | 'outlinePrimary' | 'outlineSecondary' | 'outlineSuccess' | 'outlineError' | 'outlineDanger' | 'outlineWarning';
|
|
7
|
+
export type ButtonVariant = 'primary' | 'primaryInverse' | 'secondary' | 'secondaryInverse' | 'ghost' | 'ghostInverse' | 'ghostDanger' | 'positive' | 'danger' | 'destructive' | 'link' | 'outlinePrimary' | 'outlineSecondary' | 'outlineSuccess' | 'outlineError' | 'outlineDanger' | 'outlineWarning';
|
|
8
8
|
/**
|
|
9
9
|
* Font weight options for button text
|
|
10
10
|
*/
|
|
@@ -79,6 +79,10 @@ interface BaseButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
79
79
|
fontWeight?: ButtonFontWeight;
|
|
80
80
|
/** Custom outline color for outline variants (CSS color value) */
|
|
81
81
|
outlineColor?: string;
|
|
82
|
+
/** Custom background color for solid variants (CSS color value) */
|
|
83
|
+
backgroundColor?: string;
|
|
84
|
+
/** Custom text color for solid variants (CSS color value) */
|
|
85
|
+
textColor?: string;
|
|
82
86
|
}
|
|
83
87
|
/**
|
|
84
88
|
* Button with children (text content)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,gBAAgB,GAChB,WAAW,GACX,kBAAkB,GAClB,OAAO,GACP,cAAc,GACd,UAAU,GACV,QAAQ,GACR,aAAa,GACb,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,gBAAgB,CAAC;AAErB;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEjD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM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,CAAC;IACf,uEAAuE;IACvE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0CAA0C;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kCAAkC;IAClC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,gBAAgB,GAChB,WAAW,GACX,kBAAkB,GAClB,OAAO,GACP,cAAc,GACd,aAAa,GACb,UAAU,GACV,QAAQ,GACR,aAAa,GACb,MAAM,GACN,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,gBAAgB,CAAC;AAErB;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEjD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,UAAU,eAAgB,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CA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gB,CAAC;IAC9B,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,UAAU,kBAAmB,SAAQ,eAAe;IAClD,qBAAqB;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;GAEG;AACH,UAAU,cAAe,SAAQ,eAAe;IAC9C,sDAAsD;IACtD,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,6CAA6C;IAC7C,IAAI,EAAE,SAAS,CAAC;IAChB,yDAAyD;IACzD,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CategoryFiltersProps } from './CategoryFilters.types';
|
|
2
|
+
/**
|
|
3
|
+
* CategoryFilters component - Displays filter category dropdowns
|
|
4
|
+
*
|
|
5
|
+
* EXACT copy of FilterSection styling from web-app-risk-reviews
|
|
6
|
+
*
|
|
7
|
+
* Displays each category as a Select (single) or Multiselect (multiple) component.
|
|
8
|
+
* Required categories show orange asterisk indicator.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <CategoryFilters
|
|
13
|
+
* categories={categories}
|
|
14
|
+
* selectedValues={selectedValues}
|
|
15
|
+
* onSelect={handleSelect}
|
|
16
|
+
* isLoading={isLoading}
|
|
17
|
+
* loadError={loadError}
|
|
18
|
+
* />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const CategoryFilters: React.FC<CategoryFiltersProps>;
|
|
22
|
+
export default CategoryFilters;
|
|
23
|
+
//# sourceMappingURL=CategoryFilters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryFilters.d.ts","sourceRoot":"","sources":["../../../src/components/CategoryFilters/CategoryFilters.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAuC,MAAM,yBAAyB,CAAC;AA8LzG;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAuE1D,CAAC;AAIF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Filter value in a category - matches web-app-risk-reviews FilterValue type
|
|
4
|
+
*/
|
|
5
|
+
export interface FilterValue {
|
|
6
|
+
uuid: string;
|
|
7
|
+
value: string;
|
|
8
|
+
sortOrder: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Filter category - matches web-app-risk-reviews FilterCategory type
|
|
12
|
+
*/
|
|
13
|
+
export interface FilterCategory {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
required: '0' | '1';
|
|
17
|
+
multiple: '0' | '1';
|
|
18
|
+
filterValues: FilterValue[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Selection callback parameters
|
|
22
|
+
*/
|
|
23
|
+
export interface FilterSelectionParams {
|
|
24
|
+
categoryId: string;
|
|
25
|
+
categoryName: string;
|
|
26
|
+
values: string[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Size variants for CategoryFilters (sm: 32px, md: 36px)
|
|
30
|
+
*/
|
|
31
|
+
export type CategoryFiltersSize = 'sm' | 'md';
|
|
32
|
+
/**
|
|
33
|
+
* Props for CategoryFilters component
|
|
34
|
+
*
|
|
35
|
+
* EXACT match of FilterSection props from web-app-risk-reviews
|
|
36
|
+
*/
|
|
37
|
+
export interface CategoryFiltersProps {
|
|
38
|
+
/** Categories to display */
|
|
39
|
+
categories: FilterCategory[];
|
|
40
|
+
/** Currently selected values per category (categoryId -> values) */
|
|
41
|
+
selectedValues: Record<string, string[]>;
|
|
42
|
+
/** Callback when a filter selection changes */
|
|
43
|
+
onSelect: (categoryId: string, categoryName: string, values: string[]) => void;
|
|
44
|
+
/** Whether filters are loading */
|
|
45
|
+
isLoading?: boolean;
|
|
46
|
+
/** Error message if loading failed */
|
|
47
|
+
loadError?: string | null;
|
|
48
|
+
/** Whether to disable all filters */
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
/** Size variant for all Select/Multiselect components (sm: 32px, md: 36px) */
|
|
51
|
+
size?: CategoryFiltersSize;
|
|
52
|
+
/** Additional CSS class */
|
|
53
|
+
className?: string;
|
|
54
|
+
/** Data test ID for testing */
|
|
55
|
+
dataTestId?: string;
|
|
56
|
+
/** Data ID for analytics */
|
|
57
|
+
dataId?: string;
|
|
58
|
+
/** Inline styles */
|
|
59
|
+
style?: CSSProperties;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=CategoryFilters.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryFilters.types.d.ts","sourceRoot":"","sources":["../../../src/components/CategoryFilters/CategoryFilters.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,GAAG,GAAG,CAAC;IACpB,QAAQ,EAAE,GAAG,GAAG,GAAG,CAAC;IACpB,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,4BAA4B;IAC5B,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACzC,+CAA+C;IAC/C,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC/E,kCAAkC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CategoryFilters Component
|
|
3
|
+
*
|
|
4
|
+
* Display and manage category-based filter selections.
|
|
5
|
+
* EXACT match of FilterSection styling from web-app-risk-reviews.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* import { CategoryFilters } from '@intelligencebank/connectingib';
|
|
10
|
+
*
|
|
11
|
+
* <CategoryFilters
|
|
12
|
+
* categories={categories}
|
|
13
|
+
* selectedValues={selectedValues}
|
|
14
|
+
* onSelect={handleSelect}
|
|
15
|
+
* isLoading={isLoading}
|
|
16
|
+
* loadError={loadError}
|
|
17
|
+
* />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export { CategoryFilters } from './CategoryFilters';
|
|
21
|
+
export type { CategoryFiltersProps, CategoryFiltersSize, FilterCategory, FilterValue, FilterSelectionParams, } from './CategoryFilters.types';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CategoryFilters/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,qBAAqB,GACtB,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CenterProps } from './Center.types';
|
|
2
|
+
/**
|
|
3
|
+
* Center component - A centered container (flex with center alignment)
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* // Center a spinner
|
|
8
|
+
* <Center p={4}>
|
|
9
|
+
* <Spinner />
|
|
10
|
+
* </Center>
|
|
11
|
+
*
|
|
12
|
+
* // Full-page center
|
|
13
|
+
* <Center style={{ height: '100vh' }}>
|
|
14
|
+
* <Logo />
|
|
15
|
+
* </Center>
|
|
16
|
+
*
|
|
17
|
+
* // Inline centered content
|
|
18
|
+
* <Center inline p={2}>
|
|
19
|
+
* <Icon />
|
|
20
|
+
* </Center>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare const Center: import('react').ForwardRefExoticComponent<CenterProps & import('react').RefAttributes<HTMLElement>>;
|
|
24
|
+
export default Center;
|
|
25
|
+
//# sourceMappingURL=Center.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../../src/components/Center/Center.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,gBAAgB,CAAC;AAyDhE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,MAAM,qGA8DlB,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes, ElementType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Spacing value - can be a theme spacing index (number) or a CSS value (string)
|
|
4
|
+
*/
|
|
5
|
+
export type SpacingValue = number | string;
|
|
6
|
+
/**
|
|
7
|
+
* Props for the Center component
|
|
8
|
+
*/
|
|
9
|
+
export interface CenterProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
10
|
+
/** Center content */
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
/** Padding on all sides */
|
|
13
|
+
p?: SpacingValue;
|
|
14
|
+
/** Horizontal padding (left and right) */
|
|
15
|
+
px?: SpacingValue;
|
|
16
|
+
/** Vertical padding (top and bottom) */
|
|
17
|
+
py?: SpacingValue;
|
|
18
|
+
/** Padding top */
|
|
19
|
+
pt?: SpacingValue;
|
|
20
|
+
/** Padding right */
|
|
21
|
+
pr?: SpacingValue;
|
|
22
|
+
/** Padding bottom */
|
|
23
|
+
pb?: SpacingValue;
|
|
24
|
+
/** Padding left */
|
|
25
|
+
pl?: SpacingValue;
|
|
26
|
+
/** Margin on all sides */
|
|
27
|
+
m?: SpacingValue;
|
|
28
|
+
/** Horizontal margin (left and right) */
|
|
29
|
+
mx?: SpacingValue;
|
|
30
|
+
/** Vertical margin (top and bottom) */
|
|
31
|
+
my?: SpacingValue;
|
|
32
|
+
/** Margin top */
|
|
33
|
+
mt?: SpacingValue;
|
|
34
|
+
/** Margin right */
|
|
35
|
+
mr?: SpacingValue;
|
|
36
|
+
/** Margin bottom */
|
|
37
|
+
mb?: SpacingValue;
|
|
38
|
+
/** Margin left */
|
|
39
|
+
ml?: SpacingValue;
|
|
40
|
+
/** Make the container inline-flex */
|
|
41
|
+
inline?: boolean;
|
|
42
|
+
/** Polymorphic element type */
|
|
43
|
+
as?: ElementType;
|
|
44
|
+
/** Additional CSS classes */
|
|
45
|
+
className?: string;
|
|
46
|
+
/** Test ID (deprecated, use dataTestId) */
|
|
47
|
+
'data-testid'?: string;
|
|
48
|
+
/** Test identifier for automated testing */
|
|
49
|
+
dataTestId?: string;
|
|
50
|
+
/** Data identifier for ib-ui compatibility */
|
|
51
|
+
dataId?: string;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=Center.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Center.types.d.ts","sourceRoot":"","sources":["../../../src/components/Center/Center.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IAChF,qBAAqB;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,2BAA2B;IAC3B,CAAC,CAAC,EAAE,YAAY,CAAC;IACjB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,wCAAwC;IACxC,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,kBAAkB;IAClB,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,oBAAoB;IACpB,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,qBAAqB;IACrB,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,mBAAmB;IACnB,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,0BAA0B;IAC1B,CAAC,CAAC,EAAE,YAAY,CAAC;IACjB,yCAAyC;IACzC,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,uCAAuC;IACvC,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,iBAAiB;IACjB,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,mBAAmB;IACnB,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,oBAAoB;IACpB,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,kBAAkB;IAClB,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,qCAAqC;IACrC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,+BAA+B;IAC/B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Center/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAC3C,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAkVtD,eAAO,MAAM,QAAQ,qGAA0B,CAAC;AAEhD,eAAe,QAAQ,CAAC"}
|