@code0-tech/pictor 0.3.0 → 0.4.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/dist/_virtual/compiler-runtime.js +5 -0
- package/dist/_virtual/compiler-runtime2.js +4 -0
- package/dist/_virtual/react-compiler-runtime.development.js +4 -0
- package/dist/_virtual/react-compiler-runtime.production.js +4 -0
- package/dist/assets/components/alert/Alert.style.css +1 -0
- package/dist/assets/components/aurora/Aurora.style.css +1 -0
- package/dist/assets/components/avatar/Avatar.style.css +1 -0
- package/dist/assets/components/badge/Badge.style.css +1 -0
- package/dist/assets/components/breadcrumb/Breadcrumb.style.css +1 -0
- package/dist/assets/components/button/Button.style.css +1 -0
- package/dist/assets/components/button-group/ButtonGroup.style.css +1 -0
- package/dist/assets/components/card/Card.style.css +1 -0
- package/dist/assets/components/col/Col.style.css +1 -0
- package/dist/assets/components/command/Command.style.css +1 -0
- package/dist/assets/components/container/Container.style.css +1 -0
- package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
- package/dist/assets/components/data-table/DataTable.style.css +1 -0
- package/dist/assets/components/dialog/Dialog.style.css +1 -0
- package/dist/assets/components/editor/Editor.styles.css +1 -0
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -0
- package/dist/assets/components/flex/Flex.style.css +1 -0
- package/dist/assets/components/form/Input.style.css +1 -0
- package/dist/assets/components/fullscreen/FullScreen.style.css +1 -0
- package/dist/assets/components/layout/Layout.style.css +1 -0
- package/dist/assets/components/menu/Menu.style.css +1 -0
- package/dist/assets/components/quote/Quote.style.css +1 -0
- package/dist/assets/components/resizable/Resizable.style.css +1 -0
- package/dist/assets/components/row/Row.style.css +1 -0
- package/dist/assets/components/scroll-area/ScrollArea.style.css +1 -0
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -0
- package/dist/assets/components/spacing/Spacing.style.css +1 -0
- package/dist/assets/components/tab/Tab.style.css +1 -0
- package/dist/assets/components/text/Text.style.css +1 -0
- package/dist/assets/components/toast/Toast.style.css +1 -0
- package/dist/assets/components/tooltip/Tooltip.style.css +1 -0
- package/dist/components/alert/Alert.d.ts +7 -0
- package/dist/components/alert/Alert.js +39 -0
- package/dist/components/aurora/Aurora.d.ts +5 -0
- package/dist/components/aurora/Aurora.js +23 -0
- package/dist/components/avatar/Avatar.d.ts +10 -0
- package/dist/components/avatar/Avatar.js +53 -0
- package/dist/components/badge/Badge.d.ts +8 -0
- package/dist/components/badge/Badge.js +63 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +7 -0
- package/dist/components/breadcrumb/Breadcrumb.js +19 -0
- package/dist/components/button/Button.d.ts +11 -0
- package/dist/components/button/Button.js +31 -0
- package/dist/components/button-group/ButtonGroup.d.ts +8 -0
- package/dist/components/button-group/ButtonGroup.js +28 -0
- package/dist/components/card/Card.d.ts +15 -0
- package/dist/components/card/Card.js +42 -0
- package/dist/components/card/CardSection.d.ts +10 -0
- package/dist/components/card/CardSection.js +28 -0
- package/dist/{esm/components → components}/col/Col.d.ts +3 -5
- package/dist/components/col/Col.js +27 -0
- package/dist/components/command/Command.d.ts +30 -0
- package/dist/components/command/Command.js +103 -0
- package/dist/components/container/Container.d.ts +6 -0
- package/dist/components/container/Container.js +21 -0
- package/dist/components/context-menu/ContextMenu.d.ts +31 -0
- package/dist/components/context-menu/ContextMenu.js +106 -0
- package/dist/components/data-table/DataTable.d.ts +23 -0
- package/dist/components/data-table/DataTable.js +41 -0
- package/dist/components/data-table/DataTableColumn.d.ts +6 -0
- package/dist/components/data-table/DataTableColumn.js +22 -0
- package/dist/components/data-table/DataTableFilterInput.d.ts +18 -0
- package/dist/components/data-table/DataTableFilterInput.js +212 -0
- package/dist/components/data-table/DataTableFilterSuggestionMenu.d.ts +7 -0
- package/dist/components/data-table/DataTableFilterSuggestionMenu.js +53 -0
- package/dist/components/data-table/index.d.ts +4 -0
- package/dist/components/data-table/index.js +11 -0
- package/dist/components/dialog/Dialog.d.ts +29 -0
- package/dist/components/dialog/Dialog.js +102 -0
- package/dist/components/editor/Editor.d.ts +29 -0
- package/dist/components/editor/Editor.js +337 -0
- package/dist/components/file-tabs/FileTabs.d.ts +17 -0
- package/dist/components/file-tabs/FileTabs.js +71 -0
- package/dist/components/file-tabs/FileTabs.service.d.ts +17 -0
- package/dist/components/file-tabs/FileTabs.service.js +88 -0
- package/dist/components/file-tabs/FileTabs.view.d.ts +10 -0
- package/dist/components/file-tabs/FileTabs.view.js +1 -0
- package/dist/components/file-tabs/index.d.ts +3 -0
- package/dist/components/file-tabs/index.js +9 -0
- package/dist/components/flex/Flex.d.ts +7 -0
- package/dist/components/flex/Flex.js +21 -0
- package/dist/components/form/CheckboxInput.d.ts +5 -0
- package/dist/components/form/CheckboxInput.js +76 -0
- package/dist/components/form/EmailInput.d.ts +8 -0
- package/dist/components/form/EmailInput.js +21 -0
- package/dist/components/form/Input.d.ts +35 -0
- package/dist/components/form/Input.js +434 -0
- package/dist/components/form/Input.syntax.hook.d.ts +10 -0
- package/dist/components/form/Input.syntax.hook.js +14 -0
- package/dist/components/form/Input.utils.d.ts +10 -0
- package/dist/components/form/Input.utils.js +38 -0
- package/dist/components/form/InputContentEditable.hook.d.ts +52 -0
- package/dist/components/form/InputContentEditable.hook.js +449 -0
- package/dist/components/form/InputDescription.d.ts +5 -0
- package/dist/components/form/InputDescription.js +12 -0
- package/dist/components/form/InputLabel.d.ts +5 -0
- package/dist/components/form/InputLabel.js +12 -0
- package/dist/components/form/InputMessage.d.ts +5 -0
- package/dist/components/form/InputMessage.js +18 -0
- package/dist/components/form/InputSuggestion.d.ts +27 -0
- package/dist/components/form/InputSuggestion.js +218 -0
- package/dist/components/form/NumberInput.d.ts +6 -0
- package/dist/components/form/NumberInput.js +20 -0
- package/dist/components/form/PasswordInput.d.ts +8 -0
- package/dist/components/form/PasswordInput.js +19 -0
- package/dist/components/form/PinInput.d.ts +11 -0
- package/dist/components/form/PinInput.js +66 -0
- package/dist/components/form/RadioGroup.d.ts +5 -0
- package/dist/components/form/RadioGroup.js +48 -0
- package/dist/components/form/RadioInput.d.ts +7 -0
- package/dist/components/form/RadioInput.js +27 -0
- package/dist/components/form/SwitchInput.d.ts +6 -0
- package/dist/components/form/SwitchInput.js +19 -0
- package/dist/components/form/TextAreaInput.d.ts +7 -0
- package/dist/components/form/TextAreaInput.js +20 -0
- package/dist/components/form/TextInput.d.ts +7 -0
- package/dist/components/form/TextInput.js +20 -0
- package/dist/components/form/index.d.ts +17 -0
- package/dist/components/form/index.js +40 -0
- package/dist/components/form/useForm.d.ts +30 -0
- package/dist/components/form/useForm.js +78 -0
- package/dist/components/fullscreen/FullScreen.d.ts +6 -0
- package/dist/components/fullscreen/FullScreen.js +26 -0
- package/dist/components/layout/Layout.d.ts +12 -0
- package/dist/components/layout/Layout.js +75 -0
- package/dist/components/menu/Menu.d.ts +35 -0
- package/dist/components/menu/Menu.js +120 -0
- package/dist/components/quote/Quote.d.ts +10 -0
- package/dist/components/quote/Quote.js +44 -0
- package/dist/components/resizable/Resizable.d.ts +12 -0
- package/dist/components/resizable/Resizable.js +34 -0
- package/dist/components/row/Row.d.ts +6 -0
- package/dist/components/row/Row.js +21 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +13 -0
- package/dist/components/scroll-area/ScrollArea.js +43 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts +10 -0
- package/dist/components/segmented-control/SegmentedControl.js +26 -0
- package/dist/components/spacing/Spacing.d.ts +6 -0
- package/dist/components/spacing/Spacing.js +23 -0
- package/dist/components/tab/Tab.d.ts +11 -0
- package/dist/components/tab/Tab.js +40 -0
- package/dist/components/text/Text.d.ts +8 -0
- package/dist/components/text/Text.js +23 -0
- package/dist/components/toast/Toast.d.ts +13 -0
- package/dist/components/toast/Toast.js +66 -0
- package/dist/components/tooltip/Tooltip.d.ts +17 -0
- package/dist/components/tooltip/Tooltip.js +48 -0
- package/dist/index.d.ts +33 -305
- package/dist/index.js +191 -0
- package/dist/node_modules/@lezer/common/dist/index.js +146 -0
- package/dist/node_modules/@lezer/highlight/dist/index.js +543 -0
- package/dist/node_modules/prettier/plugins/babel.js +7157 -0
- package/dist/node_modules/prettier/plugins/estree.js +4453 -0
- package/dist/node_modules/prettier/standalone.js +2429 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
- package/dist/node_modules/react/compiler-runtime.js +10 -0
- package/dist/utils/arrayService.d.ts +10 -0
- package/dist/utils/arrayService.js +1 -0
- package/dist/utils/contextStore.d.ts +62 -0
- package/dist/utils/contextStore.js +60 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +25 -0
- package/dist/utils/inspection.d.ts +15 -0
- package/dist/utils/inspection.js +29 -0
- package/dist/utils/nonReactiveArrayService.d.ts +19 -0
- package/dist/utils/nonReactiveArrayService.js +54 -0
- package/dist/utils/objectStore.d.ts +12 -0
- package/dist/utils/objectStore.js +34 -0
- package/dist/utils/reactiveArrayService.d.ts +23 -0
- package/dist/utils/reactiveArrayService.js +90 -0
- package/dist/{cjs/utils → utils}/types.d.ts +4 -4
- package/dist/utils/types.js +4 -0
- package/dist/utils/utils.d.ts +55 -0
- package/dist/utils/utils.js +159 -0
- package/dist/utils/view.d.ts +8 -0
- package/dist/utils/view.js +28 -0
- package/package.json +130 -54
- package/dist/cjs/components/Text/Text.d.ts +0 -10
- package/dist/cjs/components/alert/Alert.d.ts +0 -16
- package/dist/cjs/components/badge/Badge.d.ts +0 -9
- package/dist/cjs/components/button/Button.d.ts +0 -17
- package/dist/cjs/components/button-group/ButtonGroup.d.ts +0 -9
- package/dist/cjs/components/card/Card.d.ts +0 -20
- package/dist/cjs/components/col/Col.d.ts +0 -15
- package/dist/cjs/components/container/Container.d.ts +0 -8
- package/dist/cjs/components/dropdown/Dropdown.d.ts +0 -24
- package/dist/cjs/components/dropdown/DropdownFooter.d.ts +0 -13
- package/dist/cjs/components/dropdown/DropdownHeader.d.ts +0 -13
- package/dist/cjs/components/dropdown/DropdownItem.d.ts +0 -12
- package/dist/cjs/components/dropdown/DropdownItemGroup.d.ts +0 -12
- package/dist/cjs/components/flex/Flex.d.ts +0 -8
- package/dist/cjs/components/input/Input.d.ts +0 -37
- package/dist/cjs/components/list-group/ListGroup.d.ts +0 -12
- package/dist/cjs/components/menu/InternalMenu.d.ts +0 -4
- package/dist/cjs/components/menu/Menu.d.ts +0 -41
- package/dist/cjs/components/popover/InternalPopover.d.ts +0 -10
- package/dist/cjs/components/popover/Popover.d.ts +0 -16
- package/dist/cjs/components/quote/Quote.d.ts +0 -12
- package/dist/cjs/components/row/Row.d.ts +0 -8
- package/dist/cjs/components/tooltip/Tooltip.d.ts +0 -18
- package/dist/cjs/index.d.ts +0 -17
- package/dist/cjs/index.js +0 -9284
- package/dist/cjs/utils/utils.d.ts +0 -18
- package/dist/esm/components/Text/Text.d.ts +0 -10
- package/dist/esm/components/alert/Alert.d.ts +0 -16
- package/dist/esm/components/badge/Badge.d.ts +0 -9
- package/dist/esm/components/button/Button.d.ts +0 -17
- package/dist/esm/components/button-group/ButtonGroup.d.ts +0 -9
- package/dist/esm/components/card/Card.d.ts +0 -20
- package/dist/esm/components/container/Container.d.ts +0 -8
- package/dist/esm/components/dropdown/Dropdown.d.ts +0 -24
- package/dist/esm/components/dropdown/DropdownFooter.d.ts +0 -13
- package/dist/esm/components/dropdown/DropdownHeader.d.ts +0 -13
- package/dist/esm/components/dropdown/DropdownItem.d.ts +0 -12
- package/dist/esm/components/dropdown/DropdownItemGroup.d.ts +0 -12
- package/dist/esm/components/flex/Flex.d.ts +0 -8
- package/dist/esm/components/input/Input.d.ts +0 -37
- package/dist/esm/components/list-group/ListGroup.d.ts +0 -12
- package/dist/esm/components/menu/InternalMenu.d.ts +0 -4
- package/dist/esm/components/menu/Menu.d.ts +0 -41
- package/dist/esm/components/popover/InternalPopover.d.ts +0 -10
- package/dist/esm/components/popover/Popover.d.ts +0 -16
- package/dist/esm/components/quote/Quote.d.ts +0 -12
- package/dist/esm/components/row/Row.d.ts +0 -8
- package/dist/esm/components/tooltip/Tooltip.d.ts +0 -18
- package/dist/esm/index.d.ts +0 -17
- package/dist/esm/index.js +0 -9259
- package/dist/esm/utils/types.d.ts +0 -57
- package/dist/esm/utils/utils.d.ts +0 -18
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import t from "merge-props";
|
|
2
|
+
import { md5 as p } from "js-md5";
|
|
3
|
+
const c = (m) => ({
|
|
4
|
+
...m.m ? {
|
|
5
|
+
margin: `${m.m}rem`
|
|
6
|
+
} : {},
|
|
7
|
+
...m.my ? {
|
|
8
|
+
marginTop: `${m.my}rem`,
|
|
9
|
+
marginBottom: `${m.my}rem`
|
|
10
|
+
} : {},
|
|
11
|
+
...m.mx ? {
|
|
12
|
+
marginLeft: `${m.mx}rem`,
|
|
13
|
+
marginRight: `${m.mx}rem`
|
|
14
|
+
} : {},
|
|
15
|
+
...m.mt ? {
|
|
16
|
+
marginTop: `${m.mt}rem`
|
|
17
|
+
} : {},
|
|
18
|
+
...m.mb ? {
|
|
19
|
+
marginBottom: `${m.mb}rem`
|
|
20
|
+
} : {},
|
|
21
|
+
...m.ml ? {
|
|
22
|
+
marginLeft: `${m.ml}rem`
|
|
23
|
+
} : {},
|
|
24
|
+
...m.mr ? {
|
|
25
|
+
marginRight: `${m.mr}rem`
|
|
26
|
+
} : {},
|
|
27
|
+
...m.p ? {
|
|
28
|
+
padding: `${m.p}rem`
|
|
29
|
+
} : {},
|
|
30
|
+
...m.py ? {
|
|
31
|
+
paddingTop: `${m.py}rem`,
|
|
32
|
+
paddingBottom: `${m.py}rem`
|
|
33
|
+
} : {},
|
|
34
|
+
...m.px ? {
|
|
35
|
+
paddingLeft: `${m.px}rem`,
|
|
36
|
+
paddingRight: `${m.px}rem`
|
|
37
|
+
} : {},
|
|
38
|
+
...m.pt ? {
|
|
39
|
+
paddingTop: `${m.pt}rem`
|
|
40
|
+
} : {},
|
|
41
|
+
...m.pb ? {
|
|
42
|
+
paddingBottom: `${m.pb}rem`
|
|
43
|
+
} : {},
|
|
44
|
+
...m.pl ? {
|
|
45
|
+
paddingLeft: `${m.pl}rem`
|
|
46
|
+
} : {},
|
|
47
|
+
...m.pr ? {
|
|
48
|
+
paddingRight: `${m.pr}rem`
|
|
49
|
+
} : {},
|
|
50
|
+
...m.bg ? {
|
|
51
|
+
backgroundColor: m.bg
|
|
52
|
+
} : {},
|
|
53
|
+
...m.c ? {
|
|
54
|
+
color: m.c
|
|
55
|
+
} : {},
|
|
56
|
+
...m.opacity ? {
|
|
57
|
+
opacity: m.opacity
|
|
58
|
+
} : {},
|
|
59
|
+
...m.ff ? {
|
|
60
|
+
fontFamily: m.ff
|
|
61
|
+
} : {},
|
|
62
|
+
...m.fz ? {
|
|
63
|
+
fontSize: `${m.fz}rem`
|
|
64
|
+
} : {},
|
|
65
|
+
...m.ta ? {
|
|
66
|
+
textAlign: m.ta
|
|
67
|
+
} : {},
|
|
68
|
+
...m.w ? {
|
|
69
|
+
width: m.w
|
|
70
|
+
} : {},
|
|
71
|
+
...m.miw ? {
|
|
72
|
+
minWidth: m.miw
|
|
73
|
+
} : {},
|
|
74
|
+
...m.maw ? {
|
|
75
|
+
maxWidth: m.maw
|
|
76
|
+
} : {},
|
|
77
|
+
...m.h ? {
|
|
78
|
+
height: m.h
|
|
79
|
+
} : {},
|
|
80
|
+
...m.mih ? {
|
|
81
|
+
minHeight: m.mih
|
|
82
|
+
} : {},
|
|
83
|
+
...m.mah ? {
|
|
84
|
+
maxHeight: m.mah
|
|
85
|
+
} : {},
|
|
86
|
+
...m.pos ? {
|
|
87
|
+
position: m.pos
|
|
88
|
+
} : {},
|
|
89
|
+
...m.top ? {
|
|
90
|
+
top: m.top
|
|
91
|
+
} : {},
|
|
92
|
+
...m.left ? {
|
|
93
|
+
left: m.left
|
|
94
|
+
} : {},
|
|
95
|
+
...m.bottom ? {
|
|
96
|
+
bottom: m.bottom
|
|
97
|
+
} : {},
|
|
98
|
+
...m.right ? {
|
|
99
|
+
right: m.right
|
|
100
|
+
} : {},
|
|
101
|
+
...m.display ? {
|
|
102
|
+
display: m.display
|
|
103
|
+
} : {},
|
|
104
|
+
...m.flex ? {
|
|
105
|
+
flex: m.flex
|
|
106
|
+
} : {},
|
|
107
|
+
...m.align ? {
|
|
108
|
+
alignItems: m.align
|
|
109
|
+
} : {},
|
|
110
|
+
...m.justify ? {
|
|
111
|
+
justifyContent: m.justify
|
|
112
|
+
} : {},
|
|
113
|
+
...m.tf ? {
|
|
114
|
+
transform: m.tf
|
|
115
|
+
} : {}
|
|
116
|
+
}), b = (m, r) => {
|
|
117
|
+
const i = c(r), o = {
|
|
118
|
+
...r
|
|
119
|
+
};
|
|
120
|
+
return ["m", "my", "mx", "mt", "mb", "ml", "mr", "p", "py", "px", "pt", "pb", "pl", "pr", "bg", "c", "opacity", "ff", "fz", "fw", "lts", "ta", "lh", "fs", "tt", "td", "w", "miw", "maw", "h", "mih", "mah", "bgsz", "bgp", "bgr", "bga", "pos", "top", "left", "bottom", "right", "inset", "display", "flex", "align", "justify", "tf"].forEach((a) => {
|
|
121
|
+
delete o[a];
|
|
122
|
+
}), t(o, {
|
|
123
|
+
className: m,
|
|
124
|
+
...Object.keys(i).length !== 0 ? {
|
|
125
|
+
style: i
|
|
126
|
+
} : {}
|
|
127
|
+
});
|
|
128
|
+
}, x = (m) => {
|
|
129
|
+
switch (m) {
|
|
130
|
+
case "xxs":
|
|
131
|
+
return "0.35rem";
|
|
132
|
+
case "xs":
|
|
133
|
+
return "0.7rem";
|
|
134
|
+
case "sm":
|
|
135
|
+
return "0.8rem";
|
|
136
|
+
case "md":
|
|
137
|
+
return "1rem";
|
|
138
|
+
case "lg":
|
|
139
|
+
return "1.2rem";
|
|
140
|
+
case "xl":
|
|
141
|
+
return "1.3rem";
|
|
142
|
+
default:
|
|
143
|
+
return m;
|
|
144
|
+
}
|
|
145
|
+
}, f = 137.50776405003785, h = (m) => {
|
|
146
|
+
const r = m.match(/\/(\d+)\s*$/);
|
|
147
|
+
return r ? Number(r[1]) : null;
|
|
148
|
+
}, e = (m, r = 25, i = 320) => {
|
|
149
|
+
const o = i - r, n = h(m);
|
|
150
|
+
if (n != null)
|
|
151
|
+
return `hsl(${r + n * f % o}, 100%, 72%)`;
|
|
152
|
+
const a = p(p(m)), g = parseInt(a.slice(0, 8), 16);
|
|
153
|
+
return `hsl(${r + g % o}, 100%, 72%)`;
|
|
154
|
+
};
|
|
155
|
+
export {
|
|
156
|
+
x as getDOMSizeFromCodeZeroSize,
|
|
157
|
+
e as hashToColor,
|
|
158
|
+
b as mergeCode0Props
|
|
159
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function o(r, e, t) {
|
|
2
|
+
return (e = n(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
3
|
+
}
|
|
4
|
+
function n(r) {
|
|
5
|
+
var e = u(r, "string");
|
|
6
|
+
return typeof e == "symbol" ? e : e + "";
|
|
7
|
+
}
|
|
8
|
+
function u(r, e) {
|
|
9
|
+
if (typeof r != "object" || !r) return r;
|
|
10
|
+
var t = r[Symbol.toPrimitive];
|
|
11
|
+
if (t !== void 0) {
|
|
12
|
+
var i = t.call(r, e);
|
|
13
|
+
if (typeof i != "object") return i;
|
|
14
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
|
+
}
|
|
16
|
+
return (e === "string" ? String : Number)(r);
|
|
17
|
+
}
|
|
18
|
+
class a {
|
|
19
|
+
constructor(e) {
|
|
20
|
+
o(this, "_payload", void 0), this._payload = e;
|
|
21
|
+
}
|
|
22
|
+
get payload() {
|
|
23
|
+
return this._payload;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
a as View
|
|
28
|
+
};
|
package/package.json
CHANGED
|
@@ -1,78 +1,154 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/pictor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "A simple template for a custom React component library",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"dev": "npm run storybook:dev",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
8
|
+
"test": "jest --passWithNoTests",
|
|
9
|
+
"build": "npm run clear && vite build",
|
|
10
|
+
"clear": "concurrently \"rimraf ./dist\" \"rimraf ./storybook-static\"",
|
|
9
11
|
"rollup": "rollup -c",
|
|
10
12
|
"storybook:dev": "storybook dev -p 6006",
|
|
11
13
|
"storybook:build": "storybook build",
|
|
12
|
-
"storybook:test": "
|
|
13
|
-
"storybook:test:all": "test-storybook --browsers chromium firefox webkit",
|
|
14
|
+
"storybook:test": "vitest --project=storybook",
|
|
14
15
|
"storybook:test:update": "npm run storybook:test:all -- -u",
|
|
15
16
|
"docs:preview": "npm run --prefix ../telescopium project:preview pictor"
|
|
16
17
|
},
|
|
17
|
-
"author": "
|
|
18
|
+
"author": "CodeZero",
|
|
18
19
|
"devDependencies": {
|
|
19
|
-
"@
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
23
|
-
"@
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
20
|
+
"@ariakit/react": "^0.4.22",
|
|
21
|
+
"@babel/plugin-proposal-decorators": "^7.29.0",
|
|
22
|
+
"@babel/plugin-transform-class-properties": "^7.28.6",
|
|
23
|
+
"@code0-tech/sagittarius-graphql-types": "0.0.0-experimental-2342308809-931efb40b4bf3245999c53abbdd9164cea82e82d",
|
|
24
|
+
"@codemirror/autocomplete": "^6.20.1",
|
|
25
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
26
|
+
"@codemirror/language": "^6.12.2",
|
|
27
|
+
"@codemirror/lint": "^6.9.5",
|
|
28
|
+
"@codemirror/state": "^6.5.4",
|
|
29
|
+
"@codemirror/view": "^6.39.16",
|
|
30
|
+
"@dagrejs/dagre": "^2.0.4",
|
|
31
|
+
"@lezer/common": "^1.5.1",
|
|
32
|
+
"@mdx-js/react": "^3.1.1",
|
|
33
|
+
"@monaco-editor/react": "^4.7.0",
|
|
34
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
35
|
+
"@radix-ui/react-context-menu": "^2.2.16",
|
|
36
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
37
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
38
|
+
"@radix-ui/react-hover-card": "^1.1.15",
|
|
39
|
+
"@radix-ui/react-one-time-password-field": "^0.1.8",
|
|
40
|
+
"@radix-ui/react-radio-group": "^1.3.8",
|
|
41
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
42
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
43
|
+
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
44
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
45
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
46
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
47
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
48
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
49
|
+
"@storybook/addon-a11y": "^10.2.17",
|
|
50
|
+
"@storybook/addon-docs": "^10.2.17",
|
|
51
|
+
"@storybook/addon-links": "^10.2.17",
|
|
52
|
+
"@storybook/addon-onboarding": "^10.2.17",
|
|
53
|
+
"@storybook/addon-vitest": "^10.2.17",
|
|
54
|
+
"@storybook/builder-vite": "^10.2.17",
|
|
55
|
+
"@storybook/cli": "^10.2.17",
|
|
56
|
+
"@storybook/react-vite": "^10.2.17",
|
|
57
|
+
"@tabler/icons-react": "3.40.0",
|
|
58
|
+
"@types/jest-image-snapshot": "^6.4.1",
|
|
59
|
+
"@types/react": "^19.2.14",
|
|
60
|
+
"@types/react-dom": "^19.2.3",
|
|
61
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
62
|
+
"@uiw/codemirror-themes": "^4.25.8",
|
|
63
|
+
"@uiw/react-codemirror": "^4.25.8",
|
|
64
|
+
"@vitejs/plugin-react": "^5.1.4",
|
|
65
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
66
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
67
|
+
"@xyflow/react": "^12.10.1",
|
|
68
|
+
"axe-playwright": "^2.2.2",
|
|
69
|
+
"babel-loader": "^10.0.0",
|
|
70
|
+
"babel-plugin-react-compiler": "^19.1.0-rc.3",
|
|
71
|
+
"cmdk": "^1.1.1",
|
|
72
|
+
"concurrently": "^9.2.1",
|
|
73
|
+
"css-loader": "^7.1.4",
|
|
74
|
+
"html-webpack-plugin": "^5.6.6",
|
|
43
75
|
"identity-obj-proxy": "^3.0.0",
|
|
44
|
-
"jest-image-snapshot": "^6.
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
76
|
+
"jest-image-snapshot": "^6.5.1",
|
|
77
|
+
"js-md5": "^0.8.3",
|
|
78
|
+
"ldrs": "^1.1.9",
|
|
79
|
+
"merge-props": "^6.0.0",
|
|
80
|
+
"overlap-area": "^1.1.0",
|
|
81
|
+
"playwright": "1.58.1",
|
|
82
|
+
"react": "^19.2.4",
|
|
83
|
+
"react-contenteditable": "^3.3.7",
|
|
84
|
+
"react-dom": "^19.2.4",
|
|
85
|
+
"react-resizable-panels": "^4.7.1",
|
|
86
|
+
"react-syntax-highlighter": "^16.1.1",
|
|
87
|
+
"react-zoom-pan-pinch": "^3.7.0",
|
|
88
|
+
"rimraf": "^6.1.3",
|
|
89
|
+
"sass": "^1.97.3",
|
|
90
|
+
"sass-loader": "^16.0.7",
|
|
91
|
+
"sonner": "^2.0.7",
|
|
92
|
+
"storybook": "^10.2.17",
|
|
93
|
+
"style-loader": "^4.0.0",
|
|
94
|
+
"ts-jest": "^29.4.6",
|
|
95
|
+
"ts-node": "^10.9.2",
|
|
96
|
+
"typescript": "^5.9.3",
|
|
97
|
+
"vite": "^7.3.1",
|
|
98
|
+
"vite-plugin-dts": "^4.5.4",
|
|
99
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
100
|
+
"vitest": "^4.0.18",
|
|
101
|
+
"avvvatars-react": "^0.4.2"
|
|
102
|
+
},
|
|
103
|
+
"main": "dist/index.js",
|
|
104
|
+
"repository": {
|
|
105
|
+
"type": "git",
|
|
106
|
+
"url": "https://github.com/code0-tech/pictor"
|
|
58
107
|
},
|
|
59
|
-
"main": "dist/cjs/index.js",
|
|
60
|
-
"module": "dist/esm/index.js",
|
|
61
108
|
"files": [
|
|
62
109
|
"dist"
|
|
63
110
|
],
|
|
64
111
|
"types": "dist/index.d.ts",
|
|
65
112
|
"peerDependencies": {
|
|
66
|
-
"react": "
|
|
67
|
-
"
|
|
113
|
+
"@ariakit/react": "^0.4.17",
|
|
114
|
+
"@code0-tech/sagittarius-graphql-types": "0.0.0-experimental-2342308809-931efb40b4bf3245999c53abbdd9164cea82e82d",
|
|
115
|
+
"@codemirror/autocomplete": "^6.20.0",
|
|
116
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
117
|
+
"@codemirror/language": "^6.12.1",
|
|
118
|
+
"@codemirror/lint": "^6.9.4",
|
|
119
|
+
"@codemirror/state": "^6.5.4",
|
|
120
|
+
"@codemirror/view": "^6.39.13",
|
|
121
|
+
"@monaco-editor/react": "^4.7.0",
|
|
122
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
123
|
+
"@radix-ui/react-context-menu": "^2.2.16",
|
|
124
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
125
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
126
|
+
"@radix-ui/react-hover-card": "^1.1.15",
|
|
127
|
+
"@radix-ui/react-one-time-password-field": "^0.1.8",
|
|
128
|
+
"@radix-ui/react-radio-group": "^1.3.8",
|
|
129
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
130
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
131
|
+
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
132
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
133
|
+
"@tabler/icons-react": "3.40.0",
|
|
134
|
+
"@uiw/codemirror-themes": "^4.25.4",
|
|
135
|
+
"@uiw/react-codemirror": "^4.25.4",
|
|
136
|
+
"@xyflow/react": "^12.10.0",
|
|
137
|
+
"cmdk": "^1.1.1",
|
|
138
|
+
"js-md5": "^0.8.3",
|
|
139
|
+
"ldrs": "^1.1.9",
|
|
140
|
+
"merge-props": "^6.0.0",
|
|
141
|
+
"overlap-area": "^1.1.0",
|
|
142
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
143
|
+
"react-contenteditable": "^3.3.7",
|
|
144
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
145
|
+
"react-resizable-panels": "^4.3.1",
|
|
146
|
+
"react-syntax-highlighter": "^16.1.0",
|
|
147
|
+
"react-zoom-pan-pinch": "^3.7.0",
|
|
148
|
+
"sonner": "^2.0.7",
|
|
149
|
+
"avvvatars-react": "^0.4.2"
|
|
68
150
|
},
|
|
69
151
|
"publishConfig": {
|
|
70
152
|
"access": "public"
|
|
71
|
-
},
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"merge-props": "^6.0.0",
|
|
74
|
-
"react-aria": "^3.31.1",
|
|
75
|
-
"react-stately": "^3.29.1",
|
|
76
|
-
"rollup-plugin-visualizer": "^5.11.0"
|
|
77
153
|
}
|
|
78
154
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Code0Component, Code0Sizes } from "../../utils/types";
|
|
3
|
-
import "./Text.style.scss";
|
|
4
|
-
export interface FontType extends Omit<Omit<Code0Component<HTMLSpanElement>, "children">, "size"> {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
size: Code0Sizes;
|
|
7
|
-
hierarchy?: "primary" | "secondary" | "tertiary";
|
|
8
|
-
}
|
|
9
|
-
declare const Text: React.FC<FontType>;
|
|
10
|
-
export default Text;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import "./Alert.style.scss";
|
|
3
|
-
import { Code0Component, Color } from "../../utils/types";
|
|
4
|
-
export interface AlertType extends Omit<Code0Component<HTMLDivElement>, "title"> {
|
|
5
|
-
children?: ReactNode | ReactNode[];
|
|
6
|
-
title: ReactNode;
|
|
7
|
-
color?: Color;
|
|
8
|
-
icon?: boolean;
|
|
9
|
-
dismissible?: boolean;
|
|
10
|
-
onClose?: (event: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const Alert: React.FC<AlertType>;
|
|
13
|
-
export interface AlertIconType {
|
|
14
|
-
color: Color;
|
|
15
|
-
}
|
|
16
|
-
export default Alert;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./Badge.style.scss";
|
|
3
|
-
import { Code0Component, Color } from "../../utils/types";
|
|
4
|
-
export interface BadgeType extends Code0Component<HTMLSpanElement> {
|
|
5
|
-
children: string;
|
|
6
|
-
color?: Color;
|
|
7
|
-
}
|
|
8
|
-
declare const Badge: React.FC<BadgeType>;
|
|
9
|
-
export default Badge;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "./Button.style.scss";
|
|
2
|
-
import React, { ReactNode } from "react";
|
|
3
|
-
import { Code0Component, Color } from "../../utils/types";
|
|
4
|
-
export interface ButtonType extends Code0Component<HTMLAnchorElement> {
|
|
5
|
-
children: ReactNode | ReactNode[];
|
|
6
|
-
color?: Color;
|
|
7
|
-
variant?: "none" | "normal" | "outlined" | "filled";
|
|
8
|
-
active?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface ButtonIconType extends Code0Component<HTMLSpanElement> {
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
}
|
|
14
|
-
declare const _default: React.FC<ButtonType> & {
|
|
15
|
-
Icon: React.FC<ButtonIconType>;
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
|
-
import { ButtonType } from "../button/Button";
|
|
3
|
-
import "./ButtonGroup.style.scss";
|
|
4
|
-
import { Code0Component } from "../../utils/types";
|
|
5
|
-
export interface ButtonGroupType extends Code0Component<HTMLDivElement> {
|
|
6
|
-
children: ReactElement<ButtonType>[];
|
|
7
|
-
}
|
|
8
|
-
declare const ButtonGroup: React.FC<ButtonGroupType>;
|
|
9
|
-
export default ButtonGroup;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import "./Card.style.scss";
|
|
3
|
-
import { Code0Component, Color } from "../../utils/types";
|
|
4
|
-
export interface CardType extends Code0Component<HTMLDivElement> {
|
|
5
|
-
children: ReactNode | ReactNode[];
|
|
6
|
-
color?: Color;
|
|
7
|
-
variant?: "none" | "normal" | "outlined" | "filled";
|
|
8
|
-
gradient?: boolean;
|
|
9
|
-
gradientPosition?: "top-left" | "top-right" | "bottom-right" | "bottom-left";
|
|
10
|
-
outline?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface SectionType extends Code0Component<HTMLDivElement> {
|
|
13
|
-
children: ReactNode | ReactNode[];
|
|
14
|
-
image?: boolean;
|
|
15
|
-
border?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare const _default: React.FC<CardType> & {
|
|
18
|
-
Section: React.FC<SectionType>;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import "./Col.style.scss";
|
|
3
|
-
import { Code0Component } from "../../utils/types";
|
|
4
|
-
export type ColBreakPointRange = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
5
|
-
export interface ColType extends Code0Component<HTMLDivElement> {
|
|
6
|
-
children: ReactNode | ReactNode[];
|
|
7
|
-
xs?: ColBreakPointRange;
|
|
8
|
-
sm?: ColBreakPointRange;
|
|
9
|
-
md?: ColBreakPointRange;
|
|
10
|
-
lg?: ColBreakPointRange;
|
|
11
|
-
xl?: ColBreakPointRange;
|
|
12
|
-
xxl?: ColBreakPointRange;
|
|
13
|
-
}
|
|
14
|
-
declare const Col: React.FC<ColType>;
|
|
15
|
-
export default Col;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import "./Container.style.scss";
|
|
3
|
-
import { Code0Component } from "../../utils/types";
|
|
4
|
-
export interface ContainerType extends Code0Component<HTMLDivElement> {
|
|
5
|
-
children: ReactNode | ReactNode[];
|
|
6
|
-
}
|
|
7
|
-
declare const Container: React.FC<ContainerType>;
|
|
8
|
-
export default Container;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement, ReactNode } from "react";
|
|
2
|
-
import "./Dropdown.style.scss";
|
|
3
|
-
export interface DropdownType {
|
|
4
|
-
children: ReactElement<DropdownTriggerType & DropdownMenuType>[];
|
|
5
|
-
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
6
|
-
align?: 'start' | 'center' | 'end';
|
|
7
|
-
maxWidthFactor?: number;
|
|
8
|
-
}
|
|
9
|
-
export interface DropdownTriggerType {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export interface DropdownMenuType {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
declare const _default: React.FC<DropdownType> & {
|
|
16
|
-
Trigger: React.FC<DropdownTriggerType>;
|
|
17
|
-
Menu: React.FC<DropdownMenuType>;
|
|
18
|
-
Header: React.FC<import("./DropdownHeader").DropdownHeaderType>;
|
|
19
|
-
Footer: React.FC<import("./DropdownFooter").DropdownFooterType>;
|
|
20
|
-
Group: React.FC<import("./DropdownItemGroup").DropdownItemGroupType> & {
|
|
21
|
-
Item: React.FC<import("./DropdownItem").DropdownItemType>;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import "./Dropdown.style.scss";
|
|
3
|
-
export interface DropdownFooterType {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Component creates a separate footer with border top
|
|
8
|
-
* for further separation
|
|
9
|
-
*
|
|
10
|
-
* @author Nico Sammito
|
|
11
|
-
* @since 0.1.0
|
|
12
|
-
*/
|
|
13
|
-
export declare const DropdownFooter: React.FC<DropdownFooterType>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import "./Dropdown.style.scss";
|
|
3
|
-
export interface DropdownHeaderType {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Component creates a separate header with border bottom
|
|
8
|
-
* for further separation
|
|
9
|
-
*
|
|
10
|
-
* @author Nico Sammito
|
|
11
|
-
* @since 0.1.0
|
|
12
|
-
*/
|
|
13
|
-
export declare const DropdownHeader: React.FC<DropdownHeaderType>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import "./Dropdown.style.scss";
|
|
3
|
-
export interface DropdownItemType {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Component creates an item with over effect
|
|
8
|
-
*
|
|
9
|
-
* @author Nico Sammito
|
|
10
|
-
* @since 0.1.0
|
|
11
|
-
*/
|
|
12
|
-
export declare const DropdownItem: React.FC<DropdownItemType>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import "./Dropdown.style.scss";
|
|
3
|
-
export interface DropdownItemGroupType {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Component creates an item with over effect
|
|
8
|
-
*
|
|
9
|
-
* @author Nico Sammito
|
|
10
|
-
* @since 0.1.0
|
|
11
|
-
*/
|
|
12
|
-
export declare const DropdownItemGroup: React.FC<DropdownItemGroupType>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Code0Component } from "../../utils/types";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import "./Flex.style.scss";
|
|
4
|
-
interface FlexType extends Code0Component<HTMLDivElement> {
|
|
5
|
-
children: React.ReactNode | React.ReactNode[];
|
|
6
|
-
}
|
|
7
|
-
declare const Flex: React.FC<FlexType>;
|
|
8
|
-
export default Flex;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React, { DetailedHTMLProps, InputHTMLAttributes, ReactElement } from "react";
|
|
2
|
-
import "./Input.style.scss";
|
|
3
|
-
import { TablerIconsProps } from "@tabler/icons-react";
|
|
4
|
-
export type InputChildType = InputControlType | InputDescType | InputLabelType;
|
|
5
|
-
export interface InputType {
|
|
6
|
-
children: ReactElement<InputControlType> | ReactElement<InputChildType>[];
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
valid?: boolean | undefined;
|
|
9
|
-
}
|
|
10
|
-
export type InputControlTypesType = "email" | "date" | "datetime-local" | "hidden" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week";
|
|
11
|
-
export interface InputControlType extends DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
12
|
-
placeholder: string;
|
|
13
|
-
children?: ReactElement<InputControlMessageType | InputControlIconType>[] | ReactElement<InputControlMessageType | InputControlIconType>;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
type?: InputControlTypesType;
|
|
16
|
-
}
|
|
17
|
-
export type InputControlMessageType = {
|
|
18
|
-
children: string;
|
|
19
|
-
};
|
|
20
|
-
export type InputControlIconType = {
|
|
21
|
-
children: ReactElement<TablerIconsProps>;
|
|
22
|
-
};
|
|
23
|
-
export type InputLabelType = {
|
|
24
|
-
children: string;
|
|
25
|
-
};
|
|
26
|
-
export type InputDescType = {
|
|
27
|
-
children: string;
|
|
28
|
-
};
|
|
29
|
-
declare const _default: React.FC<InputType> & {
|
|
30
|
-
Desc: React.FC<InputDescType>;
|
|
31
|
-
Label: React.FC<InputLabelType>;
|
|
32
|
-
Control: React.ForwardRefExoticComponent<Omit<InputControlType, "ref"> & React.RefAttributes<HTMLInputElement>> & {
|
|
33
|
-
Message: React.FC<InputControlMessageType>;
|
|
34
|
-
Icon: React.FC<InputControlIconType>;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export default _default;
|