@lax-wp/design-system 0.2.1 → 0.2.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.
- package/dist/index.es.js +1629 -1628
- package/dist/index.umd.js +37 -37
- package/package.json +1 -1
- package/dist/components/buttons/option-button/OptionButton.d.ts +0 -79
- package/dist/components/data-display/badge/Badge.d.ts +0 -44
- package/dist/components/data-display/banner/Banner.d.ts +0 -41
- package/dist/components/data-display/code-editor/CodeEditor.d.ts +0 -4
- package/dist/components/data-display/code-editor/JsonGrid.d.ts +0 -14
- package/dist/components/data-display/code-editor/Tabs.d.ts +0 -12
- package/dist/components/data-display/diff-viewer/DiffViewer.d.ts +0 -64
- package/dist/components/data-display/label-value/LabelValue.d.ts +0 -121
- package/dist/components/data-display/modal/Modal.d.ts +0 -77
- package/dist/components/data-display/pdf-viewer/PdfViewer.d.ts +0 -45
- package/dist/components/data-display/popper/Popper.d.ts +0 -57
- package/dist/components/data-display/resizable-sidebar/ResizableSidebar.d.ts +0 -54
- package/dist/components/data-display/status-color-mapping/StatusColorMapping.d.ts +0 -29
- package/dist/components/data-display/tag/Tag.d.ts +0 -53
- package/dist/components/data-display/typography/Typography.d.ts +0 -15
- package/dist/components/feedback/toast/Toast.d.ts +0 -29
- package/dist/components/floating-bar/FloatingBar.d.ts +0 -147
- package/dist/components/forms/checkbox/Checkbox.d.ts +0 -55
- package/dist/components/forms/color-picker/ColorPicker.d.ts +0 -60
- package/dist/components/forms/creatable-select/CreatableSelect.d.ts +0 -92
- package/dist/components/forms/currency-input/CurrencyInputField.d.ts +0 -73
- package/dist/components/forms/currency-input/currency.constant.d.ts +0 -12
- package/dist/components/forms/date-range/DateRange.d.ts +0 -72
- package/dist/components/forms/debounce-input/DebounceInputField.d.ts +0 -76
- package/dist/components/forms/file-upload/FileUpload.d.ts +0 -81
- package/dist/components/forms/input-field/InputField.d.ts +0 -62
- package/dist/components/forms/multi-file-upload/MultiFileUpload.d.ts +0 -78
- package/dist/components/forms/percentage-input/PercentageInputField.d.ts +0 -75
- package/dist/components/forms/text-field/TextField.d.ts +0 -48
- package/dist/components/forms/toggle/Toggle.d.ts +0 -71
- package/dist/components/icons/CloseIcon.d.ts +0 -16
- package/dist/components/icons/HelpIcon.d.ts +0 -6
- package/dist/components/icons/SearchIcon.d.ts +0 -6
- package/dist/components/tooltip/Tooltip.d.ts +0 -8
- package/dist/constants/colors.d.ts +0 -263
- package/dist/hooks/useOutsideClick.d.ts +0 -28
- package/dist/hooks/usePythonSyntax.d.ts +0 -28
- package/dist/hooks/useTheme.d.ts +0 -6
- package/dist/index.d.ts +0 -67
- package/dist/services/monacoManager.d.ts +0 -28
- package/dist/types/index.d.ts +0 -66
- package/dist/utils/formatters.d.ts +0 -24
- package/dist/utils/messageConstants.d.ts +0 -16
- package/dist/utils/tagUtils.d.ts +0 -12
- package/dist/utils/utilities.d.ts +0 -13
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Color palette for tag components
|
|
3
|
-
*/
|
|
4
|
-
export declare const COLORS: {
|
|
5
|
-
readonly primary: {
|
|
6
|
-
readonly 50: "#E6F1FC";
|
|
7
|
-
readonly 100: "#C6E1F9";
|
|
8
|
-
readonly 200: "#8AC0F2";
|
|
9
|
-
readonly 300: "#54A4EC";
|
|
10
|
-
readonly 400: "#3392E9";
|
|
11
|
-
readonly 500: "#0077E3";
|
|
12
|
-
readonly 600: "#016DCF";
|
|
13
|
-
readonly 700: "#0054A1";
|
|
14
|
-
readonly 800: "#00417D";
|
|
15
|
-
readonly 900: "#00325F";
|
|
16
|
-
readonly 950: "#001c35";
|
|
17
|
-
readonly 975: "#00111f";
|
|
18
|
-
};
|
|
19
|
-
readonly black: {
|
|
20
|
-
readonly 50: "#f0f0f0";
|
|
21
|
-
readonly 100: "#d9d9d9";
|
|
22
|
-
readonly 200: "#bfbfbf";
|
|
23
|
-
readonly 300: "#8c8c8c";
|
|
24
|
-
readonly 400: "#595959";
|
|
25
|
-
readonly 500: "#454545";
|
|
26
|
-
readonly 600: "#262626";
|
|
27
|
-
readonly 700: "#1f1f1f";
|
|
28
|
-
readonly 800: "#141414";
|
|
29
|
-
readonly 900: "#000000";
|
|
30
|
-
readonly 950: "#0a0a0a";
|
|
31
|
-
readonly 975: "#050505";
|
|
32
|
-
};
|
|
33
|
-
readonly blue: {
|
|
34
|
-
readonly 50: "#E6F1FC";
|
|
35
|
-
readonly 100: "#C6E1F9";
|
|
36
|
-
readonly 200: "#8AC0F2";
|
|
37
|
-
readonly 300: "#54A4EC";
|
|
38
|
-
readonly 400: "#3392E9";
|
|
39
|
-
readonly 500: "#0077E3";
|
|
40
|
-
readonly 600: "#016DCF";
|
|
41
|
-
readonly 700: "#0054A1";
|
|
42
|
-
readonly 800: "#00417D";
|
|
43
|
-
readonly 900: "#00325F";
|
|
44
|
-
readonly 950: "#002547";
|
|
45
|
-
readonly 975: "#001529";
|
|
46
|
-
};
|
|
47
|
-
readonly success: {
|
|
48
|
-
readonly 50: "#ECFDF3";
|
|
49
|
-
readonly 100: "#D1FADF";
|
|
50
|
-
readonly 200: "#A6F4C5";
|
|
51
|
-
readonly 300: "#6CE9A6";
|
|
52
|
-
readonly 400: "#32D583";
|
|
53
|
-
readonly 500: "#12B76A";
|
|
54
|
-
readonly 600: "#039855";
|
|
55
|
-
readonly 700: "#027A48";
|
|
56
|
-
readonly 800: "#05603A";
|
|
57
|
-
readonly 900: "#054F31";
|
|
58
|
-
readonly 950: "#033625";
|
|
59
|
-
readonly 975: "#022419";
|
|
60
|
-
};
|
|
61
|
-
readonly neutral: {
|
|
62
|
-
readonly 50: "#F9FAFB";
|
|
63
|
-
readonly 100: "#F2F4F7";
|
|
64
|
-
readonly 200: "#EAECF0";
|
|
65
|
-
readonly 300: "#D0D5DD";
|
|
66
|
-
readonly 400: "#98A2B3";
|
|
67
|
-
readonly 500: "#667085";
|
|
68
|
-
readonly 600: "#475467";
|
|
69
|
-
readonly 700: "#344054";
|
|
70
|
-
readonly 800: "#1D2939";
|
|
71
|
-
readonly 900: "#101828";
|
|
72
|
-
readonly 950: "#0c1219";
|
|
73
|
-
readonly 975: "#080a0f";
|
|
74
|
-
};
|
|
75
|
-
readonly error: {
|
|
76
|
-
readonly 50: "#FEF3F2";
|
|
77
|
-
readonly 100: "#FEE4E2";
|
|
78
|
-
readonly 200: "#FECDCA";
|
|
79
|
-
readonly 300: "#FDA29B";
|
|
80
|
-
readonly 400: "#F97066";
|
|
81
|
-
readonly 500: "#F04438";
|
|
82
|
-
readonly 600: "#D92D20";
|
|
83
|
-
readonly 700: "#B42318";
|
|
84
|
-
readonly 800: "#912018";
|
|
85
|
-
readonly 900: "#7A271A";
|
|
86
|
-
readonly 950: "#3d1008";
|
|
87
|
-
readonly 975: "#2a0b05";
|
|
88
|
-
};
|
|
89
|
-
readonly warning: {
|
|
90
|
-
readonly 50: "#FFFAEB";
|
|
91
|
-
readonly 100: "#FEF0C7";
|
|
92
|
-
readonly 200: "#FEDF89";
|
|
93
|
-
readonly 300: "#FEC84B";
|
|
94
|
-
readonly 400: "#FDB022";
|
|
95
|
-
readonly 500: "#F79009";
|
|
96
|
-
readonly 600: "#DC6803";
|
|
97
|
-
readonly 700: "#B54708";
|
|
98
|
-
readonly 800: "#93370D";
|
|
99
|
-
readonly 900: "#7A2E0E";
|
|
100
|
-
readonly 950: "#662505";
|
|
101
|
-
readonly 975: "#451803";
|
|
102
|
-
};
|
|
103
|
-
readonly teal: {
|
|
104
|
-
readonly 50: "#ebf5f5";
|
|
105
|
-
readonly 100: "#c2e0df";
|
|
106
|
-
readonly 200: "#a4d1d0";
|
|
107
|
-
readonly 300: "#7abcba";
|
|
108
|
-
readonly 400: "#61afad";
|
|
109
|
-
readonly 500: "#399b98";
|
|
110
|
-
readonly 600: "#348d8a";
|
|
111
|
-
readonly 700: "#286e6c";
|
|
112
|
-
readonly 800: "#1f5554";
|
|
113
|
-
readonly 900: "#184140";
|
|
114
|
-
readonly 950: "#133534";
|
|
115
|
-
readonly 975: "#0c2222";
|
|
116
|
-
};
|
|
117
|
-
readonly green: {
|
|
118
|
-
readonly 50: "#f2f7f2";
|
|
119
|
-
readonly 100: "#d5e5d5";
|
|
120
|
-
readonly 200: "#c1d9c1";
|
|
121
|
-
readonly 300: "#a5c7a5";
|
|
122
|
-
readonly 400: "#94bd93";
|
|
123
|
-
readonly 500: "#79ac78";
|
|
124
|
-
readonly 600: "#6e9d6d";
|
|
125
|
-
readonly 700: "#567a55";
|
|
126
|
-
readonly 800: "#435f42";
|
|
127
|
-
readonly 900: "#334832";
|
|
128
|
-
readonly 950: "#001e00";
|
|
129
|
-
readonly 975: "#182818";
|
|
130
|
-
};
|
|
131
|
-
readonly yellow: {
|
|
132
|
-
readonly 50: "#fffaed";
|
|
133
|
-
readonly 100: "#fff0c7";
|
|
134
|
-
readonly 200: "#ffe8ac";
|
|
135
|
-
readonly 300: "#ffde86";
|
|
136
|
-
readonly 400: "#ffd76f";
|
|
137
|
-
readonly 500: "#ffcd4b";
|
|
138
|
-
readonly 600: "#e8bb44";
|
|
139
|
-
readonly 700: "#b59235";
|
|
140
|
-
readonly 800: "#8c7129";
|
|
141
|
-
readonly 900: "#6b5620";
|
|
142
|
-
readonly 950: "#524314";
|
|
143
|
-
readonly 975: "#382e0e";
|
|
144
|
-
};
|
|
145
|
-
readonly orange: {
|
|
146
|
-
readonly 50: "#fef4e8";
|
|
147
|
-
readonly 100: "#fddeb7";
|
|
148
|
-
readonly 200: "#fcce94";
|
|
149
|
-
readonly 300: "#fbb764";
|
|
150
|
-
readonly 400: "#faa945";
|
|
151
|
-
readonly 500: "#f99417";
|
|
152
|
-
readonly 600: "#e38715";
|
|
153
|
-
readonly 700: "#b16910";
|
|
154
|
-
readonly 800: "#89510d";
|
|
155
|
-
readonly 900: "#693e0a";
|
|
156
|
-
readonly 950: "#4d2d07";
|
|
157
|
-
readonly 975: "#331e05";
|
|
158
|
-
};
|
|
159
|
-
readonly peach: {
|
|
160
|
-
readonly 50: "#fceef3";
|
|
161
|
-
readonly 100: "#f5cad9";
|
|
162
|
-
readonly 200: "#f0b0c6";
|
|
163
|
-
readonly 300: "#ea8cad";
|
|
164
|
-
readonly 400: "#e5759d";
|
|
165
|
-
readonly 500: "#df5384";
|
|
166
|
-
readonly 600: "#cb4c78";
|
|
167
|
-
readonly 700: "#9e3b5e";
|
|
168
|
-
readonly 800: "#7b2e49";
|
|
169
|
-
readonly 900: "#5e2337";
|
|
170
|
-
readonly 950: "#451a2b";
|
|
171
|
-
readonly 975: "#2e111d";
|
|
172
|
-
};
|
|
173
|
-
readonly red: {
|
|
174
|
-
readonly 50: "#fceaeb";
|
|
175
|
-
readonly 100: "#f6bec0";
|
|
176
|
-
readonly 200: "#f29ea2";
|
|
177
|
-
readonly 300: "#ec7278";
|
|
178
|
-
readonly 400: "#e9575d";
|
|
179
|
-
readonly 500: "#e32d35";
|
|
180
|
-
readonly 600: "#cf2930";
|
|
181
|
-
readonly 700: "#a12026";
|
|
182
|
-
readonly 800: "#7d191d";
|
|
183
|
-
readonly 900: "#5f1316";
|
|
184
|
-
readonly 950: "#470c0f";
|
|
185
|
-
readonly 975: "#2f080a";
|
|
186
|
-
};
|
|
187
|
-
readonly purple: {
|
|
188
|
-
readonly 50: "#f5e7ff";
|
|
189
|
-
readonly 100: "#dfb4ff";
|
|
190
|
-
readonly 200: "#d090ff";
|
|
191
|
-
readonly 300: "#bb5dff";
|
|
192
|
-
readonly 400: "#ad3dff";
|
|
193
|
-
readonly 500: "#990dff";
|
|
194
|
-
readonly 600: "#8b0ce8";
|
|
195
|
-
readonly 700: "#6d09b5";
|
|
196
|
-
readonly 800: "#54078c";
|
|
197
|
-
readonly 900: "#40056b";
|
|
198
|
-
readonly 950: "#300450";
|
|
199
|
-
readonly 975: "#200336";
|
|
200
|
-
};
|
|
201
|
-
readonly navy: {
|
|
202
|
-
readonly 50: "#eaebf6";
|
|
203
|
-
readonly 100: "#bebfe2";
|
|
204
|
-
readonly 200: "#9ea1d3";
|
|
205
|
-
readonly 300: "#7276bf";
|
|
206
|
-
readonly 400: "#575bb3";
|
|
207
|
-
readonly 500: "#2d32a0";
|
|
208
|
-
readonly 600: "#292e92";
|
|
209
|
-
readonly 700: "#202472";
|
|
210
|
-
readonly 800: "#191c58";
|
|
211
|
-
readonly 900: "#131543";
|
|
212
|
-
readonly 950: "#0d0e2f";
|
|
213
|
-
readonly 975: "#090a20";
|
|
214
|
-
};
|
|
215
|
-
readonly grey: {
|
|
216
|
-
readonly 50: "#f2f2f2";
|
|
217
|
-
readonly 100: "#d5d5d5";
|
|
218
|
-
readonly 200: "#c1c1c1";
|
|
219
|
-
readonly 300: "#a5a5a5";
|
|
220
|
-
readonly 400: "#939393";
|
|
221
|
-
readonly 500: "#787878";
|
|
222
|
-
readonly 600: "#6d6d6d";
|
|
223
|
-
readonly 700: "#555555";
|
|
224
|
-
readonly 800: "#424242";
|
|
225
|
-
readonly 900: "#323232";
|
|
226
|
-
readonly 950: "#252525";
|
|
227
|
-
readonly 975: "#191919";
|
|
228
|
-
};
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* Available color names for tag components
|
|
232
|
-
*/
|
|
233
|
-
export declare const SELECT_COLORS: readonly [{
|
|
234
|
-
readonly title: "Blue";
|
|
235
|
-
readonly color: "blue";
|
|
236
|
-
}, {
|
|
237
|
-
readonly title: "Green";
|
|
238
|
-
readonly color: "green";
|
|
239
|
-
}, {
|
|
240
|
-
readonly title: "Teal";
|
|
241
|
-
readonly color: "teal";
|
|
242
|
-
}, {
|
|
243
|
-
readonly title: "Red";
|
|
244
|
-
readonly color: "red";
|
|
245
|
-
}, {
|
|
246
|
-
readonly title: "Yellow";
|
|
247
|
-
readonly color: "yellow";
|
|
248
|
-
}, {
|
|
249
|
-
readonly title: "Orange";
|
|
250
|
-
readonly color: "orange";
|
|
251
|
-
}, {
|
|
252
|
-
readonly title: "Peach";
|
|
253
|
-
readonly color: "peach";
|
|
254
|
-
}, {
|
|
255
|
-
readonly title: "Grey";
|
|
256
|
-
readonly color: "grey";
|
|
257
|
-
}, {
|
|
258
|
-
readonly title: "Purple";
|
|
259
|
-
readonly color: "purple";
|
|
260
|
-
}, {
|
|
261
|
-
readonly title: "Navy";
|
|
262
|
-
readonly color: "navy";
|
|
263
|
-
}];
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Props for the useOutsideClick hook
|
|
4
|
-
*/
|
|
5
|
-
export interface UseOutsideClickProps {
|
|
6
|
-
/** Reference to the element to detect outside clicks for */
|
|
7
|
-
ref: RefObject<HTMLElement>;
|
|
8
|
-
/** Handler function called when clicking outside the referenced element */
|
|
9
|
-
handler: () => void;
|
|
10
|
-
/** Whether the hook is active */
|
|
11
|
-
enabled?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Custom hook to detect clicks outside a referenced element
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* const menuRef = useRef<HTMLDivElement>(null);
|
|
19
|
-
*
|
|
20
|
-
* useOutsideClick({
|
|
21
|
-
* ref: menuRef,
|
|
22
|
-
* handler: () => setIsOpen(false),
|
|
23
|
-
* enabled: isOpen
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare const useOutsideClick: ({ ref, handler, enabled, }: UseOutsideClickProps) => void;
|
|
28
|
-
export default useOutsideClick;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type Monaco } from '@monaco-editor/react';
|
|
2
|
-
export interface UsePythonSyntaxProps {
|
|
3
|
-
monacoEditor: Monaco | null;
|
|
4
|
-
currentEditorModel: any;
|
|
5
|
-
code: string;
|
|
6
|
-
setCode: (code: string) => void;
|
|
7
|
-
enable: boolean;
|
|
8
|
-
checkSyntaxAPI?: (code: string) => Promise<{
|
|
9
|
-
data: {
|
|
10
|
-
error?: {
|
|
11
|
-
message: string;
|
|
12
|
-
line?: number;
|
|
13
|
-
column?: number;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
}>;
|
|
17
|
-
formatCodeAPI?: (code: string) => Promise<{
|
|
18
|
-
data: {
|
|
19
|
-
formatted_code?: string;
|
|
20
|
-
};
|
|
21
|
-
}>;
|
|
22
|
-
}
|
|
23
|
-
export declare const usePythonSyntax: ({ monacoEditor, currentEditorModel, code, setCode, enable, checkSyntaxAPI, formatCodeAPI }: UsePythonSyntaxProps) => {
|
|
24
|
-
pythonError: any;
|
|
25
|
-
pythonLoading: boolean;
|
|
26
|
-
handleCheckSyntax: () => Promise<void>;
|
|
27
|
-
handleFormatCode: () => Promise<void>;
|
|
28
|
-
};
|
package/dist/hooks/useTheme.d.ts
DELETED
package/dist/index.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export { InputField } from "./components/forms/input-field/InputField";
|
|
2
|
-
export type { InputFieldProps } from "./components/forms/input-field/InputField";
|
|
3
|
-
export * from "./components/data-display/typography/Typography";
|
|
4
|
-
export { TextField } from "./components/forms/text-field/TextField";
|
|
5
|
-
export type { TextFieldProps } from "./components/forms/text-field/TextField";
|
|
6
|
-
export { Checkbox } from "./components/forms/checkbox/Checkbox";
|
|
7
|
-
export type { CheckboxComponentProps, TCheckboxComponentProps, } from "./components/forms/checkbox/Checkbox";
|
|
8
|
-
export { ColorPicker } from "./components/forms/color-picker/ColorPicker";
|
|
9
|
-
export type { ColorPickerProps, ColorPickerComponentProps, } from "./components/forms/color-picker/ColorPicker";
|
|
10
|
-
export { CreatableSelectField } from "./components/forms/creatable-select/CreatableSelect";
|
|
11
|
-
export type { CreatableSelectProps, SelectOption, TProps, } from "./components/forms/creatable-select/CreatableSelect";
|
|
12
|
-
export { CurrencyInputField } from "./components/forms/currency-input/CurrencyInputField";
|
|
13
|
-
export type { CurrencyInputFieldProps } from "./components/forms/currency-input/CurrencyInputField";
|
|
14
|
-
export { CURRENCIES, CURRENCY_SYMBOLS } from "./components/forms/currency-input/currency.constant";
|
|
15
|
-
export { DateRange } from "./components/forms/date-range/DateRange";
|
|
16
|
-
export type { DateRangeProps, DateRangeValue, } from "./components/forms/date-range/DateRange";
|
|
17
|
-
export { DebounceInputField } from "./components/forms/debounce-input/DebounceInputField";
|
|
18
|
-
export type { DebounceInputFieldProps } from "./components/forms/debounce-input/DebounceInputField";
|
|
19
|
-
export { PercentageInputField } from "./components/forms/percentage-input/PercentageInputField";
|
|
20
|
-
export type { PercentageInputFieldProps } from "./components/forms/percentage-input/PercentageInputField";
|
|
21
|
-
export { Toggle } from "./components/forms/toggle/Toggle";
|
|
22
|
-
export type { ToggleProps, ToggleDirection, } from "./components/forms/toggle/Toggle";
|
|
23
|
-
export { MultiFileUpload } from "./components/forms/multi-file-upload/MultiFileUpload";
|
|
24
|
-
export type { MultiFileUploadProps, FileUploadResult, FileChangeValue, } from "./components/forms/multi-file-upload/MultiFileUpload";
|
|
25
|
-
export { FileUpload } from "./components/forms/file-upload/FileUpload";
|
|
26
|
-
export type { FileUploadProps, FileUploadSize, FileUploadVariant, } from "./components/forms/file-upload/FileUpload";
|
|
27
|
-
export { StatusColorMapping } from "./components/data-display/status-color-mapping/StatusColorMapping";
|
|
28
|
-
export type { StatusColorMappingProps, StatusColor, } from "./components/data-display/status-color-mapping/StatusColorMapping";
|
|
29
|
-
export { Badge } from "./components/data-display/badge/Badge";
|
|
30
|
-
export type { BadgeProps, BadgeStatus, BadgeAppearance, BadgeSize, } from "./components/data-display/badge/Badge";
|
|
31
|
-
export { Modal } from "./components/data-display/modal/Modal";
|
|
32
|
-
export type { ModalProps, ModalSize, ModalAppearance, } from "./components/data-display/modal/Modal";
|
|
33
|
-
export { Tag } from "./components/data-display/tag/Tag";
|
|
34
|
-
export type { TagProps, TagSize, TagColor, ThemeMode, UploadHandler, } from "./components/data-display/tag/Tag";
|
|
35
|
-
export { LabelValue } from "./components/data-display/label-value/LabelValue";
|
|
36
|
-
export type { LabelValueProps, LabelValueSize, HighlightColor, MasterDataItem, RiskDetails, MasterDataModalProps, } from "./components/data-display/label-value/LabelValue";
|
|
37
|
-
export { Banner } from "./components/data-display/banner/Banner";
|
|
38
|
-
export type { BannerProps, BannerStatus, } from "./components/data-display/banner/Banner";
|
|
39
|
-
export { ResizableSidebar } from "./components/data-display/resizable-sidebar/ResizableSidebar";
|
|
40
|
-
export type { ResizableSidebarProps, ResizableSidebarPlacement, ResizableSidebarTheme, } from "./components/data-display/resizable-sidebar/ResizableSidebar";
|
|
41
|
-
export { PdfViewer } from "./components/data-display/pdf-viewer/PdfViewer";
|
|
42
|
-
export type { PdfViewerProps } from "./components/data-display/pdf-viewer/PdfViewer";
|
|
43
|
-
export { Popper } from "./components/data-display/popper/Popper";
|
|
44
|
-
export type { PopperProps, PopperPlacement, } from "./components/data-display/popper/Popper";
|
|
45
|
-
export { default as Toast, toast } from "./components/feedback/toast/Toast";
|
|
46
|
-
export type { ToastContainerProps, ToastType, ToastPosition, } from "./components/feedback/toast/Toast";
|
|
47
|
-
export { CodeEditor } from "./components/data-display/code-editor/CodeEditor";
|
|
48
|
-
export type { CodeEditorProps } from "./types";
|
|
49
|
-
export { JsonGrid } from "./components/data-display/code-editor/JsonGrid";
|
|
50
|
-
export { Tabs } from "./components/data-display/code-editor/Tabs";
|
|
51
|
-
export type { TabsProps } from "./components/data-display/code-editor/Tabs";
|
|
52
|
-
export { monacoManager } from "./services/monacoManager";
|
|
53
|
-
export { usePythonSyntax } from "./hooks/usePythonSyntax";
|
|
54
|
-
export type { UsePythonSyntaxProps } from "./hooks/usePythonSyntax";
|
|
55
|
-
export { useTheme } from "./hooks/useTheme";
|
|
56
|
-
export { parseJson, filterTopLevelPaths, randomHexString } from "./utils/utilities";
|
|
57
|
-
export { systemMessages } from "./utils/messageConstants";
|
|
58
|
-
export { formatCurrency, formatDate, formatBooleanValue, isISODateString } from "./utils/formatters";
|
|
59
|
-
export type { JsonValue, JsonObject, JsonArray, Tab, ThemeContextType, PythonError, JsonGridContextType } from "./types";
|
|
60
|
-
export { DiffViewer, InlineDiffHighlighter, } from "./components/data-display/diff-viewer/DiffViewer";
|
|
61
|
-
export type { DiffViewerProps, DiffType, DiffTheme, } from "./components/data-display/diff-viewer/DiffViewer";
|
|
62
|
-
export { OptionButton } from "./components/buttons/option-button/OptionButton";
|
|
63
|
-
export type { OptionButtonProps, OptionButtonSize, OptionButtonVariant, } from "./components/buttons/option-button/OptionButton";
|
|
64
|
-
export { FloatingBar } from "./components/floating-bar/FloatingBar";
|
|
65
|
-
export type { FloatingBarProps, FloatingBarActionConfig, FloatingBarDeleteConfig, FloatingBarSize, FloatingBarPosition, FloatingBarTheme, } from "./components/floating-bar/FloatingBar";
|
|
66
|
-
export { useOutsideClick } from "./hooks/useOutsideClick";
|
|
67
|
-
export type { UseOutsideClickProps } from "./hooks/useOutsideClick";
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type Monaco } from '@monaco-editor/react';
|
|
2
|
-
declare class MonacoManager {
|
|
3
|
-
private static instance;
|
|
4
|
-
private monaco;
|
|
5
|
-
private initialized;
|
|
6
|
-
private initializationPromise;
|
|
7
|
-
static getInstance(): MonacoManager;
|
|
8
|
-
initialize(): Promise<Monaco>;
|
|
9
|
-
private performInitialization;
|
|
10
|
-
getMonaco(): Monaco | null;
|
|
11
|
-
isInitialized(): boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Safely get an editor instance by index
|
|
14
|
-
*/
|
|
15
|
-
getEditorInstance(index?: number): any;
|
|
16
|
-
/**
|
|
17
|
-
* Get the first available editor instance
|
|
18
|
-
*/
|
|
19
|
-
getFirstEditorInstance(): Monaco | null;
|
|
20
|
-
/**
|
|
21
|
-
* Safely dispose of disposables with error handling
|
|
22
|
-
*/
|
|
23
|
-
static safeDispose(disposables: Array<{
|
|
24
|
-
dispose: () => void;
|
|
25
|
-
} | null | undefined>): void;
|
|
26
|
-
}
|
|
27
|
-
export declare const monacoManager: MonacoManager;
|
|
28
|
-
export type { Monaco };
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
|
|
2
|
-
export type JsonObject = {
|
|
3
|
-
[key: string]: JsonValue;
|
|
4
|
-
};
|
|
5
|
-
export type JsonArray = JsonValue[];
|
|
6
|
-
export interface Tab<T extends string> {
|
|
7
|
-
name: T;
|
|
8
|
-
is_default: boolean;
|
|
9
|
-
is_hidden: boolean;
|
|
10
|
-
is_pinned: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface CodeEditorProps {
|
|
13
|
-
value: string;
|
|
14
|
-
onChange?: (value: string) => void;
|
|
15
|
-
withFullScreen?: boolean;
|
|
16
|
-
withTheme?: boolean;
|
|
17
|
-
isEditMode?: boolean;
|
|
18
|
-
height?: string;
|
|
19
|
-
language?: 'json' | 'python';
|
|
20
|
-
monacoEditor?: any;
|
|
21
|
-
setIsDisableSave?: (flag: boolean) => void;
|
|
22
|
-
isShowCopy?: boolean;
|
|
23
|
-
isShowDownload?: boolean;
|
|
24
|
-
withJsonGrid?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface ThemeContextType {
|
|
27
|
-
theme: 'light' | 'dark';
|
|
28
|
-
editorTheme: 'vs' | 'vs-dark';
|
|
29
|
-
setEditorTheme: (theme: 'vs' | 'vs-dark') => void;
|
|
30
|
-
}
|
|
31
|
-
export interface UsePythonSyntaxProps {
|
|
32
|
-
monacoEditor: any;
|
|
33
|
-
currentEditorModel: any;
|
|
34
|
-
code: string;
|
|
35
|
-
setCode: (code: string) => void;
|
|
36
|
-
enable: boolean;
|
|
37
|
-
}
|
|
38
|
-
export interface PythonError {
|
|
39
|
-
message: string;
|
|
40
|
-
line?: number;
|
|
41
|
-
column?: number;
|
|
42
|
-
}
|
|
43
|
-
export interface JsonGridContextType {
|
|
44
|
-
allExpanded: boolean;
|
|
45
|
-
toggleAll: () => void;
|
|
46
|
-
isEditMode: boolean;
|
|
47
|
-
isDarkMode: boolean;
|
|
48
|
-
selectedPaths: string[];
|
|
49
|
-
setSelectedPaths: (paths: string[]) => void;
|
|
50
|
-
selectedTopLevelPaths: string[];
|
|
51
|
-
setSelectedTopLevelPaths: (paths: string[]) => void;
|
|
52
|
-
selectedPathModification: string | null;
|
|
53
|
-
setSelectedPathModification: (path: string | null) => void;
|
|
54
|
-
selectedPathForEdit: string | null;
|
|
55
|
-
setSelectedPathForEdit: (path: string | null) => void;
|
|
56
|
-
jsonData: JsonObject | JsonArray;
|
|
57
|
-
setJsonData: (data: JsonObject | JsonArray) => void;
|
|
58
|
-
error: string | null;
|
|
59
|
-
setError: (error: string | null) => void;
|
|
60
|
-
handleDelete: (paths: string[]) => void;
|
|
61
|
-
handleDuplicate: (paths: string[]) => void;
|
|
62
|
-
handleCopy: (paths: string[]) => Promise<boolean>;
|
|
63
|
-
handleAddKey: (path: string, key: string, value: JsonValue | undefined) => Promise<void>;
|
|
64
|
-
setIsAddKeyModalOpen: (open: boolean) => void;
|
|
65
|
-
isAddKeyModalOpen: boolean;
|
|
66
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Format a boolean value to display text
|
|
3
|
-
*/
|
|
4
|
-
export declare const formatBooleanValue: (value: any) => string;
|
|
5
|
-
/**
|
|
6
|
-
* Format a currency value
|
|
7
|
-
*/
|
|
8
|
-
export declare const formatCurrency: (value: any, currencyCode?: string) => string;
|
|
9
|
-
/**
|
|
10
|
-
* Format a date value
|
|
11
|
-
*/
|
|
12
|
-
export declare const formatDate: (date?: string, config?: {
|
|
13
|
-
format?: string;
|
|
14
|
-
timezone?: string;
|
|
15
|
-
relative?: boolean;
|
|
16
|
-
withTime?: boolean;
|
|
17
|
-
fallback?: string;
|
|
18
|
-
skipTimezone?: boolean;
|
|
19
|
-
onlyTime?: boolean;
|
|
20
|
-
}) => string;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a value is a valid ISO date string
|
|
23
|
-
*/
|
|
24
|
-
export declare const isISODateString: (value: string) => boolean;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const systemMessages: {
|
|
2
|
-
createSuccess: (value: string) => string;
|
|
3
|
-
createFailure: (value: string) => string;
|
|
4
|
-
updateSuccess: (value: string) => string;
|
|
5
|
-
updateFailure: (value: string) => string;
|
|
6
|
-
copySuccess: (value: string) => string;
|
|
7
|
-
copyFailure: (value: string) => string;
|
|
8
|
-
copyToClipboard: (value: string) => string;
|
|
9
|
-
deleteSuccess: (value: string) => string;
|
|
10
|
-
deleteFailure: (value: string) => string;
|
|
11
|
-
errorMessage: string;
|
|
12
|
-
requiredFieldError: string;
|
|
13
|
-
noItemSelected: string;
|
|
14
|
-
invalidFileType: string;
|
|
15
|
-
formatFailed: string;
|
|
16
|
-
};
|
package/dist/utils/tagUtils.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generate a consistent hash color from a string
|
|
3
|
-
*/
|
|
4
|
-
export declare const getHashColor: (str: string) => string;
|
|
5
|
-
/**
|
|
6
|
-
* Lighten a hex color by a percentage
|
|
7
|
-
*/
|
|
8
|
-
export declare const getLighterColor: (hex: string, percent?: number) => string;
|
|
9
|
-
/**
|
|
10
|
-
* Darken a hex color by a percentage
|
|
11
|
-
*/
|
|
12
|
-
export declare const getDarkerColor: (hex: string, percent?: number) => string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type JsonValue } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Parse JSON string safely
|
|
4
|
-
*/
|
|
5
|
-
export declare const parseJson: (value: string) => JsonValue;
|
|
6
|
-
/**
|
|
7
|
-
* Filter top level paths from an array of paths
|
|
8
|
-
*/
|
|
9
|
-
export declare const filterTopLevelPaths: (paths: string[]) => string[];
|
|
10
|
-
/**
|
|
11
|
-
* Generate a random hex string
|
|
12
|
-
*/
|
|
13
|
-
export declare const randomHexString: (length: number) => string;
|