@arkcit/react-ui 0.3.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 +59 -0
- package/dist/ApiDocLayout-6hYQvst0.d.ts +19 -0
- package/dist/ComponentGuidelines-h1MjGBuJ.d.ts +1293 -0
- package/dist/FileUploadField-DLwEPn_A.d.ts +32 -0
- package/dist/contracts.d.ts +10 -0
- package/dist/contracts.js +36 -0
- package/dist/form-fields-9C7CmVGn.d.ts +88 -0
- package/dist/form-fields.d.ts +5 -0
- package/dist/form-fields.js +2113 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +16112 -0
- package/dist/orchestrator-contracts.d.ts +1 -0
- package/dist/orchestrator-contracts.js +0 -0
- package/dist/orchestrator-registry.d.ts +25 -0
- package/dist/orchestrator-registry.js +9405 -0
- package/dist/orchestrator.d.ts +29 -0
- package/dist/orchestrator.js +9602 -0
- package/dist/registry.d.ts +30 -0
- package/dist/registry.js +15786 -0
- package/dist/ui-contracts.d.ts +123 -0
- package/dist/ui-contracts.js +36 -0
- package/dist/ui-registry.d.ts +127 -0
- package/dist/ui-registry.js +15611 -0
- package/dist/ui.d.ts +119 -0
- package/dist/ui.js +9618 -0
- package/package.json +121 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { a as ApiDocLayoutProps } from './ApiDocLayout-6hYQvst0.js';
|
|
2
|
+
export { b as ApiPropDoc } from './ApiDocLayout-6hYQvst0.js';
|
|
3
|
+
import { c4 as AlertBannerProps, c5 as CarouselProps, a6 as EmbeddedVideoProps, c6 as GameCanvas2DProps, au as GraphProps, aS as LineGraphProps, d as BarGraphProps, a$ as MapCardProps, c7 as FormFieldProps, c8 as ToastContainerProps, c9 as DecodeTranslationProps, ca as ExpandablePanelProps, cb as EmptyStateProps, R as DataGridProps, cc as FilterBarProps, cd as AccordionProps, g as BreadcrumbProps, s as ComboboxProps, I as CoverProps, ce as FormProps, a0 as DateRangePickerProps, W as DateRangeFieldProps, aK as InfiniteListProps, bh as ScrollRevealProps, bx as StepperProps, bs as StepFormProps, al as FormWizardProps, bT as TreeProps, E as ContextMenuProps, v as CommandPaletteProps, b4 as PopinProps, cf as PaginationProps, cg as ProductProps, ch as TableProps, ci as TabsProps, cj as ToastProps, a4 as DrawerProps, bL as TooltipProps, bb as RadioFieldProps, j as ButtonProps, ck as BadgeProps, cl as AvatarProps, cm as CheckboxProps, bf as RadioProps, bd as RadioGroupProps, cn as ContainerProps, co as DividerProps, b6 as PortalProps, aE as GridProps, aC as GridItemProps, cp as InputProps, aV as LinkProps, aN as KbdProps, cq as ProgressProps, cr as SelectProps, cs as SkeletonProps, bm as SliderProps, ct as SwitchProps, bD as TagProps, cu as TextareaProps, aa as FileUploadProps, bX as TypographyProps, cv as H1Props, cw as H2Props, cx as H3Props, cy as TextProps, cz as MutedProps, cA as LeadProps, cB as CodeProps, p as CodeExampleProps, x as ComponentGuidelinesProps } from './ComponentGuidelines-h1MjGBuJ.js';
|
|
4
|
+
export { N as Currency, O as CurrencySymbol } from './ComponentGuidelines-h1MjGBuJ.js';
|
|
5
|
+
export { DeclarativeValidatorConfig, DeclarativeValidatorType, FieldConfig } from '@arkcit/engine/form';
|
|
6
|
+
import { ComponentType } from 'react';
|
|
7
|
+
import { UIEngineProps } from '@arkcit/engine/types';
|
|
8
|
+
import { f as CheckboxFieldProps, g as CheckboxSearchFieldProps, h as ColorFieldProps, i as DatePickerFieldProps, j as SelectFieldProps, k as SwitchFieldProps, l as TagsFieldProps, m as TextAreaFieldProps, n as TextFieldProps } from './form-fields-9C7CmVGn.js';
|
|
9
|
+
import { a as ComboboxFieldProps, c as SliderFieldProps, b as FileUploadFieldProps } from './FileUploadField-DLwEPn_A.js';
|
|
10
|
+
import 'react/jsx-runtime';
|
|
11
|
+
import 'lucide-react';
|
|
12
|
+
|
|
13
|
+
declare enum FieldType {
|
|
14
|
+
TEXT = "text",
|
|
15
|
+
TEXTAREA = "textarea",
|
|
16
|
+
NUMBER = "number",
|
|
17
|
+
DATE = "date",
|
|
18
|
+
SELECT = "select",
|
|
19
|
+
TAGS = "tags",
|
|
20
|
+
CHECKBOX_SEARCH = "checkbox-search",
|
|
21
|
+
COMBOBOX = "combobox",
|
|
22
|
+
SLIDER = "slider",
|
|
23
|
+
FILE_UPLOAD = "file-upload",
|
|
24
|
+
CHECKBOX = "checkbox",
|
|
25
|
+
SWITCH = "switch",
|
|
26
|
+
COLOR = "color",
|
|
27
|
+
RADIO = "radio",
|
|
28
|
+
DATE_RANGE = "date-range"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface SharedUI {
|
|
32
|
+
AlertBanner: ComponentType<AlertBannerProps>;
|
|
33
|
+
Carousel: ComponentType<CarouselProps>;
|
|
34
|
+
EmbeddedVideo: ComponentType<EmbeddedVideoProps>;
|
|
35
|
+
GameCanvas2D: ComponentType<GameCanvas2DProps>;
|
|
36
|
+
Graph: ComponentType<GraphProps>;
|
|
37
|
+
LineGraph: ComponentType<LineGraphProps>;
|
|
38
|
+
BarGraph: ComponentType<BarGraphProps>;
|
|
39
|
+
MapCard: ComponentType<MapCardProps>;
|
|
40
|
+
FormField: ComponentType<FormFieldProps>;
|
|
41
|
+
ToastContainer: ComponentType<ToastContainerProps>;
|
|
42
|
+
DecodeTranslation: ComponentType<DecodeTranslationProps>;
|
|
43
|
+
ExpandablePanel: ComponentType<ExpandablePanelProps>;
|
|
44
|
+
EmptyState: ComponentType<EmptyStateProps>;
|
|
45
|
+
DataGrid: ComponentType<DataGridProps<unknown>>;
|
|
46
|
+
FilterBar: ComponentType<FilterBarProps>;
|
|
47
|
+
Accordion: ComponentType<AccordionProps>;
|
|
48
|
+
Breadcrumb: ComponentType<BreadcrumbProps>;
|
|
49
|
+
Combobox: ComponentType<ComboboxProps<string>>;
|
|
50
|
+
Cover: ComponentType<CoverProps>;
|
|
51
|
+
Form: ComponentType<FormProps>;
|
|
52
|
+
DateRangePicker: ComponentType<DateRangePickerProps>;
|
|
53
|
+
DateRangeField: ComponentType<DateRangeFieldProps>;
|
|
54
|
+
InfiniteList: ComponentType<InfiniteListProps>;
|
|
55
|
+
ScrollReveal: ComponentType<ScrollRevealProps>;
|
|
56
|
+
Stepper: ComponentType<StepperProps>;
|
|
57
|
+
StepForm: ComponentType<StepFormProps>;
|
|
58
|
+
FormWizard: ComponentType<FormWizardProps>;
|
|
59
|
+
Tree: ComponentType<TreeProps>;
|
|
60
|
+
UIEngine: ComponentType<UIEngineProps>;
|
|
61
|
+
ContextMenu: ComponentType<ContextMenuProps>;
|
|
62
|
+
CommandPalette: ComponentType<CommandPaletteProps>;
|
|
63
|
+
Popin: ComponentType<PopinProps>;
|
|
64
|
+
Pagination: ComponentType<PaginationProps>;
|
|
65
|
+
Product: ComponentType<ProductProps>;
|
|
66
|
+
Table: ComponentType<TableProps>;
|
|
67
|
+
Tabs: ComponentType<TabsProps>;
|
|
68
|
+
Toast: ComponentType<ToastProps>;
|
|
69
|
+
Drawer: ComponentType<DrawerProps>;
|
|
70
|
+
Tooltip: ComponentType<TooltipProps>;
|
|
71
|
+
CheckboxField: ComponentType<CheckboxFieldProps>;
|
|
72
|
+
RadioField: ComponentType<RadioFieldProps>;
|
|
73
|
+
CheckboxSearchField: ComponentType<CheckboxSearchFieldProps>;
|
|
74
|
+
ComboboxField: ComponentType<ComboboxFieldProps>;
|
|
75
|
+
ColorField: ComponentType<ColorFieldProps>;
|
|
76
|
+
DatePickerField: ComponentType<DatePickerFieldProps>;
|
|
77
|
+
SelectField: ComponentType<SelectFieldProps>;
|
|
78
|
+
SwitchField: ComponentType<SwitchFieldProps>;
|
|
79
|
+
TagsField: ComponentType<TagsFieldProps>;
|
|
80
|
+
TagField: ComponentType<TagsFieldProps>;
|
|
81
|
+
TextAreaField: ComponentType<TextAreaFieldProps>;
|
|
82
|
+
TextField: ComponentType<TextFieldProps>;
|
|
83
|
+
SliderField: ComponentType<SliderFieldProps>;
|
|
84
|
+
FileUploadField: ComponentType<FileUploadFieldProps>;
|
|
85
|
+
Button: ComponentType<ButtonProps>;
|
|
86
|
+
LoaderSpinner: ComponentType;
|
|
87
|
+
LoaderRing: ComponentType;
|
|
88
|
+
LoaderDots: ComponentType;
|
|
89
|
+
Badge: ComponentType<BadgeProps>;
|
|
90
|
+
Avatar: ComponentType<AvatarProps>;
|
|
91
|
+
Checkbox: ComponentType<CheckboxProps>;
|
|
92
|
+
Radio: ComponentType<RadioProps>;
|
|
93
|
+
RadioGroup: ComponentType<RadioGroupProps>;
|
|
94
|
+
Container: ComponentType<ContainerProps>;
|
|
95
|
+
Divider: ComponentType<DividerProps>;
|
|
96
|
+
Portal: ComponentType<PortalProps>;
|
|
97
|
+
Grid: ComponentType<GridProps>;
|
|
98
|
+
GridItem: ComponentType<GridItemProps>;
|
|
99
|
+
Input: ComponentType<InputProps>;
|
|
100
|
+
Link: ComponentType<LinkProps>;
|
|
101
|
+
Kbd: ComponentType<KbdProps>;
|
|
102
|
+
Progress: ComponentType<ProgressProps>;
|
|
103
|
+
Select: ComponentType<SelectProps>;
|
|
104
|
+
Skeleton: ComponentType<SkeletonProps>;
|
|
105
|
+
Slider: ComponentType<SliderProps>;
|
|
106
|
+
Switch: ComponentType<SwitchProps>;
|
|
107
|
+
Tag: ComponentType<TagProps>;
|
|
108
|
+
Textarea: ComponentType<TextareaProps>;
|
|
109
|
+
FileUpload: ComponentType<FileUploadProps>;
|
|
110
|
+
Typography: ComponentType<TypographyProps>;
|
|
111
|
+
H1: ComponentType<H1Props>;
|
|
112
|
+
H2: ComponentType<H2Props>;
|
|
113
|
+
H3: ComponentType<H3Props>;
|
|
114
|
+
Text: ComponentType<TextProps>;
|
|
115
|
+
Muted: ComponentType<MutedProps>;
|
|
116
|
+
Lead: ComponentType<LeadProps>;
|
|
117
|
+
Code: ComponentType<CodeProps>;
|
|
118
|
+
ApiDocLayout: ComponentType<ApiDocLayoutProps>;
|
|
119
|
+
CodeExample: ComponentType<CodeExampleProps>;
|
|
120
|
+
ComponentGuidelines: ComponentType<ComponentGuidelinesProps>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export { EmbeddedVideoProps, FieldType, MapCardProps, type SharedUI };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// src/components/shared/patterns/forms/FormField/constants.ts
|
|
2
|
+
var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
3
|
+
FieldType2["TEXT"] = "text";
|
|
4
|
+
FieldType2["TEXTAREA"] = "textarea";
|
|
5
|
+
FieldType2["NUMBER"] = "number";
|
|
6
|
+
FieldType2["DATE"] = "date";
|
|
7
|
+
FieldType2["SELECT"] = "select";
|
|
8
|
+
FieldType2["TAGS"] = "tags";
|
|
9
|
+
FieldType2["CHECKBOX_SEARCH"] = "checkbox-search";
|
|
10
|
+
FieldType2["COMBOBOX"] = "combobox";
|
|
11
|
+
FieldType2["SLIDER"] = "slider";
|
|
12
|
+
FieldType2["FILE_UPLOAD"] = "file-upload";
|
|
13
|
+
FieldType2["CHECKBOX"] = "checkbox";
|
|
14
|
+
FieldType2["SWITCH"] = "switch";
|
|
15
|
+
FieldType2["COLOR"] = "color";
|
|
16
|
+
FieldType2["RADIO"] = "radio";
|
|
17
|
+
FieldType2["DATE_RANGE"] = "date-range";
|
|
18
|
+
return FieldType2;
|
|
19
|
+
})(FieldType || {});
|
|
20
|
+
|
|
21
|
+
// src/types/currency.ts
|
|
22
|
+
var Currency = /* @__PURE__ */ ((Currency2) => {
|
|
23
|
+
Currency2["EURO"] = "EUR";
|
|
24
|
+
Currency2["DOLLAR"] = "USD";
|
|
25
|
+
return Currency2;
|
|
26
|
+
})(Currency || {});
|
|
27
|
+
var CurrencySymbol = /* @__PURE__ */ ((CurrencySymbol2) => {
|
|
28
|
+
CurrencySymbol2["EUR"] = "\u20AC";
|
|
29
|
+
CurrencySymbol2["USD"] = "$";
|
|
30
|
+
return CurrencySymbol2;
|
|
31
|
+
})(CurrencySymbol || {});
|
|
32
|
+
export {
|
|
33
|
+
Currency,
|
|
34
|
+
CurrencySymbol,
|
|
35
|
+
FieldType
|
|
36
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import React__default, { ReactNode } from 'react';
|
|
2
|
+
import { b as ApiPropDoc } from './ApiDocLayout-6hYQvst0.js';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import { FieldConfig, Field } from '@arkcit/engine/form';
|
|
5
|
+
|
|
6
|
+
type ComponentFolder = "primitives" | "patterns" | "overlays" | "media" | "domain" | "docs";
|
|
7
|
+
type ComponentCategory = ComponentFolder;
|
|
8
|
+
interface ComponentRouteItem {
|
|
9
|
+
folder: ComponentFolder;
|
|
10
|
+
category: ComponentCategory;
|
|
11
|
+
family: string;
|
|
12
|
+
keywords?: string[];
|
|
13
|
+
name: string;
|
|
14
|
+
url: string;
|
|
15
|
+
description: string;
|
|
16
|
+
demo: ReactNode;
|
|
17
|
+
apiProps: ApiPropDoc[];
|
|
18
|
+
example: string;
|
|
19
|
+
}
|
|
20
|
+
declare const componentRegistry: ComponentRouteItem[];
|
|
21
|
+
declare const groupByCategoryThenFamily: (entries: ComponentRouteItem[]) => Record<ComponentFolder, Record<string, ComponentRouteItem[]>>;
|
|
22
|
+
declare const folderLabels: Record<ComponentFolder, string>;
|
|
23
|
+
|
|
24
|
+
interface UseCaseExample {
|
|
25
|
+
id: string;
|
|
26
|
+
title: string;
|
|
27
|
+
description: string;
|
|
28
|
+
code: string;
|
|
29
|
+
render: () => React__default.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
interface ComponentExamplesEntry {
|
|
32
|
+
key: string;
|
|
33
|
+
folder: ComponentFolder;
|
|
34
|
+
family: string;
|
|
35
|
+
route: string;
|
|
36
|
+
title: string;
|
|
37
|
+
description: string;
|
|
38
|
+
propsTypeName: string;
|
|
39
|
+
apiProps: ApiPropDoc[];
|
|
40
|
+
examples: UseCaseExample[];
|
|
41
|
+
}
|
|
42
|
+
interface ComponentGuidelinesContent {
|
|
43
|
+
whenToUse?: string[];
|
|
44
|
+
whenNotToUse?: string[];
|
|
45
|
+
bestPractices?: string[];
|
|
46
|
+
accessibility?: string[];
|
|
47
|
+
}
|
|
48
|
+
declare const examplesRegistry: Record<string, ComponentExamplesEntry>;
|
|
49
|
+
declare const getExamplesRegistryEntry: (item: Pick<ComponentExamplesEntry, "folder" | "title"> | {
|
|
50
|
+
folder: ComponentFolder;
|
|
51
|
+
name: string;
|
|
52
|
+
}) => ComponentExamplesEntry;
|
|
53
|
+
declare const getComponentGuidelines: (item: {
|
|
54
|
+
folder: ComponentFolder;
|
|
55
|
+
name: string;
|
|
56
|
+
description: string;
|
|
57
|
+
}) => ComponentGuidelinesContent;
|
|
58
|
+
declare const renderUseCaseBlocks: (entry: ComponentExamplesEntry) => react_jsx_runtime.JSX.Element;
|
|
59
|
+
|
|
60
|
+
declare const registryFormOptions: {
|
|
61
|
+
value: string;
|
|
62
|
+
label: string;
|
|
63
|
+
}[];
|
|
64
|
+
declare const registryModulesOptions: {
|
|
65
|
+
value: string;
|
|
66
|
+
label: string;
|
|
67
|
+
}[];
|
|
68
|
+
declare const registryFormFields: FieldConfig[];
|
|
69
|
+
declare const registryFormValues: Record<string, Field>;
|
|
70
|
+
declare const registryLineSeries: ({
|
|
71
|
+
id: string;
|
|
72
|
+
label: string;
|
|
73
|
+
intent: "primary";
|
|
74
|
+
data: {
|
|
75
|
+
x: string;
|
|
76
|
+
y: number;
|
|
77
|
+
}[];
|
|
78
|
+
} | {
|
|
79
|
+
id: string;
|
|
80
|
+
label: string;
|
|
81
|
+
intent: "success";
|
|
82
|
+
data: {
|
|
83
|
+
x: string;
|
|
84
|
+
y: number;
|
|
85
|
+
}[];
|
|
86
|
+
})[];
|
|
87
|
+
declare const registryBarSeries: {
|
|
88
|
+
id: string;
|
|
89
|
+
label: string;
|
|
90
|
+
intent: "info";
|
|
91
|
+
data: {
|
|
92
|
+
x: string;
|
|
93
|
+
y: number;
|
|
94
|
+
}[];
|
|
95
|
+
}[];
|
|
96
|
+
declare const RegistryInfiniteListDemo: () => react_jsx_runtime.JSX.Element;
|
|
97
|
+
declare const RegistryComboboxDemo: () => react_jsx_runtime.JSX.Element;
|
|
98
|
+
declare const RegistryCommandPaletteDemo: () => react_jsx_runtime.JSX.Element;
|
|
99
|
+
declare const RegistryPopinDemo: () => react_jsx_runtime.JSX.Element;
|
|
100
|
+
declare const RegistryFileUploadDemo: () => react_jsx_runtime.JSX.Element;
|
|
101
|
+
declare const RegistryFileUploadFieldDemo: () => react_jsx_runtime.JSX.Element;
|
|
102
|
+
declare const RegistryStepFormDemo: () => react_jsx_runtime.JSX.Element;
|
|
103
|
+
declare const RegistryFormWizardDemo: () => react_jsx_runtime.JSX.Element;
|
|
104
|
+
declare const RegistryRadioGroupDemo: () => react_jsx_runtime.JSX.Element;
|
|
105
|
+
declare const RegistryRadioFieldDemo: () => react_jsx_runtime.JSX.Element;
|
|
106
|
+
declare const RegistryDateRangePickerDemo: () => react_jsx_runtime.JSX.Element;
|
|
107
|
+
declare const RegistryDateRangeFieldDemo: () => react_jsx_runtime.JSX.Element;
|
|
108
|
+
type GridUser = {
|
|
109
|
+
id: string;
|
|
110
|
+
name: string;
|
|
111
|
+
role: string;
|
|
112
|
+
projects: number;
|
|
113
|
+
};
|
|
114
|
+
declare const registryGridRows: GridUser[];
|
|
115
|
+
declare const RegistryDataGridDemo: () => react_jsx_runtime.JSX.Element;
|
|
116
|
+
declare const RegistryDataGridBasicDemo: () => react_jsx_runtime.JSX.Element;
|
|
117
|
+
declare const RegistryDataGridInfiniteDemo: () => react_jsx_runtime.JSX.Element;
|
|
118
|
+
declare const RegistryDataGridCustomRenderDemo: () => react_jsx_runtime.JSX.Element;
|
|
119
|
+
declare const RegistryDataGridBoundDataDemo: () => react_jsx_runtime.JSX.Element;
|
|
120
|
+
declare const RegistryDataGridLoadingDemo: () => react_jsx_runtime.JSX.Element;
|
|
121
|
+
declare const RegistryDataGridEmptyDemo: () => react_jsx_runtime.JSX.Element;
|
|
122
|
+
|
|
123
|
+
declare const OrchardGameDemo: () => react_jsx_runtime.JSX.Element;
|
|
124
|
+
|
|
125
|
+
declare const PizzaMapDemo: () => react_jsx_runtime.JSX.Element;
|
|
126
|
+
|
|
127
|
+
export { type ComponentCategory, type ComponentExamplesEntry, type ComponentFolder, type ComponentGuidelinesContent, type ComponentRouteItem, OrchardGameDemo, PizzaMapDemo, RegistryComboboxDemo, RegistryCommandPaletteDemo, RegistryDataGridBasicDemo, RegistryDataGridBoundDataDemo, RegistryDataGridCustomRenderDemo, RegistryDataGridDemo, RegistryDataGridEmptyDemo, RegistryDataGridInfiniteDemo, RegistryDataGridLoadingDemo, RegistryDateRangeFieldDemo, RegistryDateRangePickerDemo, RegistryFileUploadDemo, RegistryFileUploadFieldDemo, RegistryFormWizardDemo, RegistryInfiniteListDemo, RegistryPopinDemo, RegistryRadioFieldDemo, RegistryRadioGroupDemo, RegistryStepFormDemo, type UseCaseExample, componentRegistry, examplesRegistry, folderLabels, getComponentGuidelines, getExamplesRegistryEntry, groupByCategoryThenFamily, registryBarSeries, registryFormFields, registryFormOptions, registryFormValues, registryGridRows, registryLineSeries, registryModulesOptions, renderUseCaseBlocks };
|