@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,78 @@
|
|
|
1
|
+
import { useState as v, useRef as w, useEffect as S, useCallback as m, useMemo as F } from "react";
|
|
2
|
+
function c(r, t, e) {
|
|
3
|
+
return (t = _(t)) in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
4
|
+
}
|
|
5
|
+
function _(r) {
|
|
6
|
+
var t = j(r, "string");
|
|
7
|
+
return typeof t == "symbol" ? t : t + "";
|
|
8
|
+
}
|
|
9
|
+
function j(r, t) {
|
|
10
|
+
if (typeof r != "object" || !r) return r;
|
|
11
|
+
var e = r[Symbol.toPrimitive];
|
|
12
|
+
if (e !== void 0) {
|
|
13
|
+
var i = e.call(r, t);
|
|
14
|
+
if (typeof i != "object") return i;
|
|
15
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
16
|
+
}
|
|
17
|
+
return (t === "string" ? String : Number)(r);
|
|
18
|
+
}
|
|
19
|
+
class g {
|
|
20
|
+
constructor(t, e, i, n = !0) {
|
|
21
|
+
c(this, "changeValue", void 0), c(this, "currentValues", void 0), c(this, "currentValidations", void 0), c(this, "shouldValidate", void 0), this.changeValue = t, this.currentValues = e, this.currentValidations = i, this.shouldValidate = n;
|
|
22
|
+
}
|
|
23
|
+
isValid() {
|
|
24
|
+
if (!this.currentValidations) return !0;
|
|
25
|
+
for (const t in this.currentValidations) {
|
|
26
|
+
const e = this.currentValidations[t];
|
|
27
|
+
if (e && e(this.currentValues[t], this.currentValues) !== null)
|
|
28
|
+
return !1;
|
|
29
|
+
}
|
|
30
|
+
return !0;
|
|
31
|
+
}
|
|
32
|
+
getInputProps(t) {
|
|
33
|
+
const e = this.currentValues[t], i = e ?? null, n = t, u = this.currentValidations && this.currentValidations[t] ? this.currentValidations[t] : (s) => null, a = this.shouldValidate ? u(e, this.currentValues) : null;
|
|
34
|
+
return {
|
|
35
|
+
// @ts-ignore – z.B. wenn dein Input `defaultValue` kennt
|
|
36
|
+
defaultValue: i,
|
|
37
|
+
initialValue: i ?? void 0,
|
|
38
|
+
formValidation: {
|
|
39
|
+
setValue: (s) => {
|
|
40
|
+
this.changeValue(n, s);
|
|
41
|
+
},
|
|
42
|
+
notValidMessage: a,
|
|
43
|
+
valid: a === null
|
|
44
|
+
},
|
|
45
|
+
...this.currentValidations && this.currentValidations[t] ? {
|
|
46
|
+
required: !0
|
|
47
|
+
} : {}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const E = (r) => {
|
|
52
|
+
const {
|
|
53
|
+
initialValues: t,
|
|
54
|
+
validate: e = {},
|
|
55
|
+
truthyValidationBeforeSubmit: i = !0,
|
|
56
|
+
useInitialValidation: n = !0,
|
|
57
|
+
onSubmit: u
|
|
58
|
+
} = r, [a, s] = v(t), [V, h] = v(!1), o = w(t);
|
|
59
|
+
S(() => {
|
|
60
|
+
s(t), h(!1), o.current = t;
|
|
61
|
+
}, [t]);
|
|
62
|
+
const l = m((d, y) => {
|
|
63
|
+
h(!0), s((P) => {
|
|
64
|
+
const f = {
|
|
65
|
+
...P,
|
|
66
|
+
[d]: y
|
|
67
|
+
};
|
|
68
|
+
return o.current = f, f;
|
|
69
|
+
});
|
|
70
|
+
}, []), b = F(() => new g(l, a, e, n || V), [l, a, e, n, V]), p = m(() => {
|
|
71
|
+
const d = new g(l, o.current, e, !0);
|
|
72
|
+
u && (!i || d.isValid()) && u(o.current);
|
|
73
|
+
}, [l, e, u, i]);
|
|
74
|
+
return [b, p];
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
E as useForm
|
|
78
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Code0Component } from '../../utils/types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface FullScreenProps extends Code0Component<HTMLDivElement> {
|
|
4
|
+
children: React.ReactNode | React.ReactNode[];
|
|
5
|
+
}
|
|
6
|
+
export declare const FullScreen: React.FC<FullScreenProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { c as f } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import l from "react";
|
|
4
|
+
import { mergeCode0Props as m } from "../../utils/utils.js";
|
|
5
|
+
import '../../assets/components/fullscreen/FullScreen.style.css';/* empty css */
|
|
6
|
+
const y = (i) => {
|
|
7
|
+
const e = f.c(7), t = l.useRef(null);
|
|
8
|
+
let r, o;
|
|
9
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = () => {
|
|
10
|
+
if (!t.current)
|
|
11
|
+
return;
|
|
12
|
+
window.addEventListener("resize", () => {
|
|
13
|
+
const c = Math.round(window.visualViewport?.width ?? window.innerWidth), s = Math.round(window.visualViewport?.height ?? window.innerHeight);
|
|
14
|
+
t.current.style.height = s + "px", t.current.style.width = c + "px";
|
|
15
|
+
});
|
|
16
|
+
const w = Math.round(window.visualViewport?.width ?? window.innerWidth), h = Math.round(window.visualViewport?.height ?? window.innerHeight);
|
|
17
|
+
t.current.style.height = h + "px", t.current.style.width = w + "px";
|
|
18
|
+
}, o = [t], e[0] = r, e[1] = o) : (r = e[0], o = e[1]), l.useEffect(r, o);
|
|
19
|
+
let n;
|
|
20
|
+
e[2] !== i ? (n = m("d-full-screen", i), e[2] = i, e[3] = n) : n = e[3];
|
|
21
|
+
let d;
|
|
22
|
+
return e[4] !== i.children || e[5] !== n ? (d = /* @__PURE__ */ u("div", { ...n, ref: t, children: i.children }), e[4] = i.children, e[5] = n, e[6] = d) : d = e[6], d;
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
y as FullScreen
|
|
26
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
|
+
import { Code0Component, Code0Sizes } from '../../utils/types';
|
|
3
|
+
export interface LayoutProps extends Code0Component<HTMLDivElement> {
|
|
4
|
+
children: React.ReactElement;
|
|
5
|
+
topContent?: React.ReactElement;
|
|
6
|
+
bottomContent?: React.ReactElement;
|
|
7
|
+
leftContent?: React.ReactElement;
|
|
8
|
+
rightContent?: React.ReactElement;
|
|
9
|
+
layoutGap?: Code0Sizes | CSSProperties['gap'];
|
|
10
|
+
showLayoutSplitter?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Layout: React.FC<LayoutProps>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx as s, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { c as $ } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { mergeCode0Props as k, getDOMSizeFromCodeZeroSize as F } from "../../utils/utils.js";
|
|
4
|
+
import { Flex as G } from "../flex/Flex.js";
|
|
5
|
+
import '../../assets/components/layout/Layout.style.css';/* empty css */
|
|
6
|
+
const J = (L) => {
|
|
7
|
+
const t = $.c(56);
|
|
8
|
+
let l, n, r, i, o, e, d, a;
|
|
9
|
+
if (t[0] !== L) {
|
|
10
|
+
const {
|
|
11
|
+
children: E,
|
|
12
|
+
topContent: M,
|
|
13
|
+
bottomContent: O,
|
|
14
|
+
leftContent: P,
|
|
15
|
+
rightContent: R,
|
|
16
|
+
showLayoutSplitter: j,
|
|
17
|
+
layoutGap: w,
|
|
18
|
+
...Z
|
|
19
|
+
} = L;
|
|
20
|
+
n = E, a = M, l = O, i = P, o = R, e = j === void 0 ? !0 : j, r = w === void 0 ? "xl" : w, d = k("d-layout", Z), t[0] = L, t[1] = l, t[2] = n, t[3] = r, t[4] = i, t[5] = o, t[6] = e, t[7] = d, t[8] = a;
|
|
21
|
+
} else
|
|
22
|
+
l = t[1], n = t[2], r = t[3], i = t[4], o = t[5], e = t[6], d = t[7], a = t[8];
|
|
23
|
+
let c;
|
|
24
|
+
t[9] !== r ? (c = F(r), t[9] = r, t[10] = c) : c = t[10];
|
|
25
|
+
let m;
|
|
26
|
+
t[11] !== c ? (m = {
|
|
27
|
+
flexDirection: "column",
|
|
28
|
+
gap: c
|
|
29
|
+
}, t[11] = c, t[12] = m) : m = t[12];
|
|
30
|
+
let f;
|
|
31
|
+
t[13] !== a ? (f = a && /* @__PURE__ */ s("div", { className: "d-layout__top", children: a }), t[13] = a, t[14] = f) : f = t[14];
|
|
32
|
+
let _;
|
|
33
|
+
t[15] !== e || t[16] !== a ? (_ = a && e && /* @__PURE__ */ s("div", { className: "d-layout__splitter", "aria-orientation": "horizontal" }), t[15] = e, t[16] = a, t[17] = _) : _ = t[17];
|
|
34
|
+
let u;
|
|
35
|
+
t[18] !== r ? (u = F(r), t[18] = r, t[19] = u) : u = t[19];
|
|
36
|
+
let y;
|
|
37
|
+
t[20] !== u ? (y = {
|
|
38
|
+
gap: u
|
|
39
|
+
}, t[20] = u, t[21] = y) : y = t[21];
|
|
40
|
+
let p;
|
|
41
|
+
t[22] !== i ? (p = i && /* @__PURE__ */ s("div", { className: "d-layout__left", children: i }), t[22] = i, t[23] = p) : p = t[23];
|
|
42
|
+
let h;
|
|
43
|
+
t[24] !== i || t[25] !== e ? (h = i && e && /* @__PURE__ */ s("div", { className: "d-layout__splitter", "aria-orientation": "vertical" }), t[24] = i, t[25] = e, t[26] = h) : h = t[26];
|
|
44
|
+
let v;
|
|
45
|
+
t[27] !== n ? (v = /* @__PURE__ */ s("div", { className: "d-layout__content", children: n }), t[27] = n, t[28] = v) : v = t[28];
|
|
46
|
+
let N;
|
|
47
|
+
t[29] !== o || t[30] !== e ? (N = o && e && /* @__PURE__ */ s("div", { className: "d-layout__splitter", "aria-orientation": "vertical" }), t[29] = o, t[30] = e, t[31] = N) : N = t[31];
|
|
48
|
+
let C;
|
|
49
|
+
t[32] !== o ? (C = o && /* @__PURE__ */ s("div", { className: "d-layout__right", children: o }), t[32] = o, t[33] = C) : C = t[33];
|
|
50
|
+
let g;
|
|
51
|
+
t[34] !== N || t[35] !== C || t[36] !== y || t[37] !== p || t[38] !== h || t[39] !== v ? (g = /* @__PURE__ */ D(G, { className: "d-layout__middle", style: y, children: [
|
|
52
|
+
p,
|
|
53
|
+
h,
|
|
54
|
+
v,
|
|
55
|
+
N,
|
|
56
|
+
C
|
|
57
|
+
] }), t[34] = N, t[35] = C, t[36] = y, t[37] = p, t[38] = h, t[39] = v, t[40] = g) : g = t[40];
|
|
58
|
+
let x;
|
|
59
|
+
t[41] !== l || t[42] !== e ? (x = l && e && /* @__PURE__ */ s("div", { className: "d-layout__splitter", "aria-orientation": "horizontal" }), t[41] = l, t[42] = e, t[43] = x) : x = t[43];
|
|
60
|
+
let z;
|
|
61
|
+
t[44] !== l ? (z = l && /* @__PURE__ */ s("div", { className: "d-layout__bottom", children: l }), t[44] = l, t[45] = z) : z = t[45];
|
|
62
|
+
let S;
|
|
63
|
+
t[46] !== g || t[47] !== x || t[48] !== z || t[49] !== m || t[50] !== f || t[51] !== _ ? (S = /* @__PURE__ */ D(G, { className: "d-layout__inner", style: m, children: [
|
|
64
|
+
f,
|
|
65
|
+
_,
|
|
66
|
+
g,
|
|
67
|
+
x,
|
|
68
|
+
z
|
|
69
|
+
] }), t[46] = g, t[47] = x, t[48] = z, t[49] = m, t[50] = f, t[51] = _, t[52] = S) : S = t[52];
|
|
70
|
+
let b;
|
|
71
|
+
return t[53] !== d || t[54] !== S ? (b = /* @__PURE__ */ s("div", { ...d, children: S }), t[53] = d, t[54] = S, t[55] = b) : b = t[55], b;
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
J as Layout
|
|
75
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Code0ComponentProps, Color } from '../../utils/types';
|
|
3
|
+
import { DropdownMenuArrowProps, DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuGroupProps, DropdownMenuItemIndicatorProps, DropdownMenuItemProps, DropdownMenuLabelProps, DropdownMenuPortalProps, DropdownMenuProps, DropdownMenuSeparatorProps, DropdownMenuSubContentProps, DropdownMenuSubProps, DropdownMenuSubTriggerProps, DropdownMenuTriggerProps } from '@radix-ui/react-dropdown-menu';
|
|
4
|
+
export type MenuProps = Code0ComponentProps & DropdownMenuProps;
|
|
5
|
+
export type MenuTriggerProps = Code0ComponentProps & DropdownMenuTriggerProps;
|
|
6
|
+
export type MenuPortalProps = Code0ComponentProps & DropdownMenuPortalProps;
|
|
7
|
+
export type MenuContentProps = Code0ComponentProps & DropdownMenuContentProps & {
|
|
8
|
+
color?: Color;
|
|
9
|
+
};
|
|
10
|
+
export type MenuLabelProps = Code0ComponentProps & DropdownMenuLabelProps;
|
|
11
|
+
export type MenuItemProps = Code0ComponentProps & DropdownMenuItemProps;
|
|
12
|
+
export type MenuCheckboxItemProps = Code0ComponentProps & DropdownMenuCheckboxItemProps;
|
|
13
|
+
export type MenuItemIndicatorProps = Code0ComponentProps & DropdownMenuItemIndicatorProps;
|
|
14
|
+
export type MenuGroupProps = Code0ComponentProps & DropdownMenuGroupProps;
|
|
15
|
+
export type MenuSubProps = Code0ComponentProps & DropdownMenuSubProps;
|
|
16
|
+
export type MenuSubTriggerProps = Code0ComponentProps & DropdownMenuSubTriggerProps;
|
|
17
|
+
export type MenuSubContentProps = Code0ComponentProps & DropdownMenuSubContentProps & {
|
|
18
|
+
color?: Color;
|
|
19
|
+
};
|
|
20
|
+
export type MenuSeparatorProps = Code0ComponentProps & DropdownMenuSeparatorProps;
|
|
21
|
+
export type MenuArrowProps = Code0ComponentProps & DropdownMenuArrowProps;
|
|
22
|
+
export declare const Menu: React.FC<MenuProps>;
|
|
23
|
+
export declare const MenuTrigger: React.FC<MenuTriggerProps>;
|
|
24
|
+
export declare const MenuPortal: React.FC<MenuPortalProps>;
|
|
25
|
+
export declare const MenuContent: React.FC<MenuContentProps>;
|
|
26
|
+
export declare const MenuLabel: React.FC<MenuLabelProps>;
|
|
27
|
+
export declare const MenuItem: React.FC<MenuItemProps>;
|
|
28
|
+
export declare const MenuGroup: React.FC<MenuGroupProps>;
|
|
29
|
+
export declare const MenuSub: React.FC<MenuSubProps>;
|
|
30
|
+
export declare const MenuSubTrigger: React.FC<MenuSubTriggerProps>;
|
|
31
|
+
export declare const MenuSubContent: React.FC<MenuSubContentProps>;
|
|
32
|
+
export declare const MenuSeparator: React.FC<MenuSeparatorProps>;
|
|
33
|
+
export declare const MenuCheckboxItem: React.FC<MenuCheckboxItemProps>;
|
|
34
|
+
export declare const MenuItemIndicator: React.FC<MenuItemIndicatorProps>;
|
|
35
|
+
export declare const MenuArrow: React.FC<MenuArrowProps>;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
4
|
+
import { mergeCode0Props as r } from "../../utils/utils.js";
|
|
5
|
+
import { DropdownMenuItem as m, DropdownMenuContent as f, DropdownMenuLabel as _, DropdownMenu as M, DropdownMenuTrigger as a, DropdownMenuPortal as d, DropdownMenuArrow as g, DropdownMenuCheckboxItem as w, DropdownMenuGroup as b, DropdownMenuItemIndicator as $, DropdownMenuSeparator as D, DropdownMenuSub as I, DropdownMenuSubContent as S, DropdownMenuSubTrigger as C } from "@radix-ui/react-dropdown-menu";
|
|
6
|
+
const y = (o) => {
|
|
7
|
+
const e = l.c(4);
|
|
8
|
+
let n;
|
|
9
|
+
e[0] !== o ? (n = r("menu", o), e[0] = o, e[1] = n) : n = e[1];
|
|
10
|
+
const c = n;
|
|
11
|
+
let t;
|
|
12
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(M, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
13
|
+
}, A = (o) => {
|
|
14
|
+
const e = l.c(4);
|
|
15
|
+
let n;
|
|
16
|
+
e[0] !== o ? (n = r("menu__trigger", o), e[0] = o, e[1] = n) : n = e[1];
|
|
17
|
+
const c = n;
|
|
18
|
+
let t;
|
|
19
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(a, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
20
|
+
}, G = (o) => {
|
|
21
|
+
const e = l.c(4);
|
|
22
|
+
let n;
|
|
23
|
+
e[0] !== o ? (n = r("menu__portal", o), e[0] = o, e[1] = n) : n = e[1];
|
|
24
|
+
const c = n;
|
|
25
|
+
let t;
|
|
26
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(d, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
27
|
+
}, L = (o) => {
|
|
28
|
+
const e = l.c(6), n = o.align, c = `menu__content menu__content--${o.color ?? "primary"}`;
|
|
29
|
+
let t;
|
|
30
|
+
e[0] !== o || e[1] !== c ? (t = r(c, o), e[0] = o, e[1] = c, e[2] = t) : t = e[2];
|
|
31
|
+
const i = t;
|
|
32
|
+
let s;
|
|
33
|
+
return e[3] !== o.align || e[4] !== i ? (s = /* @__PURE__ */ u(f, { align: n, ...i }), e[3] = o.align, e[4] = i, e[5] = s) : s = e[5], s;
|
|
34
|
+
}, j = (o) => {
|
|
35
|
+
const e = l.c(4);
|
|
36
|
+
let n;
|
|
37
|
+
e[0] !== o ? (n = r("menu__label", o), e[0] = o, e[1] = n) : n = e[1];
|
|
38
|
+
const c = n;
|
|
39
|
+
let t;
|
|
40
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(_, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
41
|
+
}, E = (o) => {
|
|
42
|
+
const e = l.c(4);
|
|
43
|
+
let n;
|
|
44
|
+
e[0] !== o ? (n = r("menu__item", o), e[0] = o, e[1] = n) : n = e[1];
|
|
45
|
+
const c = n;
|
|
46
|
+
let t;
|
|
47
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(m, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
48
|
+
}, R = (o) => {
|
|
49
|
+
const e = l.c(4);
|
|
50
|
+
let n;
|
|
51
|
+
e[0] !== o ? (n = r("menu__group", o), e[0] = o, e[1] = n) : n = e[1];
|
|
52
|
+
const c = n;
|
|
53
|
+
let t;
|
|
54
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(b, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
55
|
+
}, q = (o) => {
|
|
56
|
+
const e = l.c(4);
|
|
57
|
+
let n;
|
|
58
|
+
e[0] !== o ? (n = r("menu__sub", o), e[0] = o, e[1] = n) : n = e[1];
|
|
59
|
+
const c = n;
|
|
60
|
+
let t;
|
|
61
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(I, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
62
|
+
}, v = (o) => {
|
|
63
|
+
const e = l.c(4);
|
|
64
|
+
let n;
|
|
65
|
+
e[0] !== o ? (n = r("menu__sub-trigger", o), e[0] = o, e[1] = n) : n = e[1];
|
|
66
|
+
const c = n;
|
|
67
|
+
let t;
|
|
68
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(C, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
69
|
+
}, z = (o) => {
|
|
70
|
+
const e = l.c(5), n = `menu__sub-content menu__sub-content--${o.color ?? "primary"}`;
|
|
71
|
+
let c;
|
|
72
|
+
e[0] !== o || e[1] !== n ? (c = r(n, o), e[0] = o, e[1] = n, e[2] = c) : c = e[2];
|
|
73
|
+
const t = c;
|
|
74
|
+
let i;
|
|
75
|
+
return e[3] !== t ? (i = /* @__PURE__ */ u(S, { ...t }), e[3] = t, e[4] = i) : i = e[4], i;
|
|
76
|
+
}, B = (o) => {
|
|
77
|
+
const e = l.c(4);
|
|
78
|
+
let n;
|
|
79
|
+
e[0] !== o ? (n = r("menu__separator", o), e[0] = o, e[1] = n) : n = e[1];
|
|
80
|
+
const c = n;
|
|
81
|
+
let t;
|
|
82
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(D, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
83
|
+
}, F = (o) => {
|
|
84
|
+
const e = l.c(4);
|
|
85
|
+
let n;
|
|
86
|
+
e[0] !== o ? (n = r("menu__checkbox-item", o), e[0] = o, e[1] = n) : n = e[1];
|
|
87
|
+
const c = n;
|
|
88
|
+
let t;
|
|
89
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(w, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
90
|
+
}, H = (o) => {
|
|
91
|
+
const e = l.c(4);
|
|
92
|
+
let n;
|
|
93
|
+
e[0] !== o ? (n = r("menu__item-indicator", o), e[0] = o, e[1] = n) : n = e[1];
|
|
94
|
+
const c = n;
|
|
95
|
+
let t;
|
|
96
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u($, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
97
|
+
}, J = (o) => {
|
|
98
|
+
const e = l.c(4);
|
|
99
|
+
let n;
|
|
100
|
+
e[0] !== o ? (n = r("menu__arrow", o), e[0] = o, e[1] = n) : n = e[1];
|
|
101
|
+
const c = n;
|
|
102
|
+
let t;
|
|
103
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(g, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
104
|
+
};
|
|
105
|
+
export {
|
|
106
|
+
y as Menu,
|
|
107
|
+
J as MenuArrow,
|
|
108
|
+
F as MenuCheckboxItem,
|
|
109
|
+
L as MenuContent,
|
|
110
|
+
R as MenuGroup,
|
|
111
|
+
E as MenuItem,
|
|
112
|
+
H as MenuItemIndicator,
|
|
113
|
+
j as MenuLabel,
|
|
114
|
+
G as MenuPortal,
|
|
115
|
+
B as MenuSeparator,
|
|
116
|
+
q as MenuSub,
|
|
117
|
+
z as MenuSubContent,
|
|
118
|
+
v as MenuSubTrigger,
|
|
119
|
+
A as MenuTrigger
|
|
120
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Card as CardProps } from '../card/Card';
|
|
3
|
+
export interface QuoteType extends Omit<CardProps, "children"> {
|
|
4
|
+
children: string;
|
|
5
|
+
logo?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
position: string;
|
|
8
|
+
inlineBorder?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Quote: React.FC<QuoteType>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsxs as x, jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { c as q } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { Card as N } from "../card/Card.js";
|
|
4
|
+
import '../../assets/components/quote/Quote.style.css';/* empty css */
|
|
5
|
+
import { Text as _ } from "../text/Text.js";
|
|
6
|
+
import g from "../card/CardSection.js";
|
|
7
|
+
const B = (h) => {
|
|
8
|
+
const e = q.c(25);
|
|
9
|
+
let l, r, t, i, o, p;
|
|
10
|
+
e[0] !== h ? ({
|
|
11
|
+
logo: t,
|
|
12
|
+
name: i,
|
|
13
|
+
position: o,
|
|
14
|
+
inlineBorder: p,
|
|
15
|
+
children: r,
|
|
16
|
+
...l
|
|
17
|
+
} = h, e[0] = h, e[1] = l, e[2] = r, e[3] = t, e[4] = i, e[5] = o, e[6] = p) : (l = e[1], r = e[2], t = e[3], i = e[4], o = e[5], p = e[6]);
|
|
18
|
+
let s;
|
|
19
|
+
e[7] !== r ? (s = /* @__PURE__ */ f(g, { border: !0, children: /* @__PURE__ */ f("div", { className: "quote__text", children: r }) }), e[7] = r, e[8] = s) : s = e[8];
|
|
20
|
+
let m;
|
|
21
|
+
e[9] !== t ? (m = t ? /* @__PURE__ */ f("div", { children: /* @__PURE__ */ f("img", { className: "quote__img", src: t, alt: "logo of quote" }) }) : null, e[9] = t, e[10] = m) : m = e[10];
|
|
22
|
+
let c;
|
|
23
|
+
e[11] !== i ? (c = /* @__PURE__ */ f(_, { size: "md", hierarchy: "primary", m: 0, children: i }), e[11] = i, e[12] = c) : c = e[12];
|
|
24
|
+
let n;
|
|
25
|
+
e[13] !== o ? (n = /* @__PURE__ */ f(_, { size: "sm", children: o }), e[13] = o, e[14] = n) : n = e[14];
|
|
26
|
+
let d;
|
|
27
|
+
e[15] !== c || e[16] !== n ? (d = /* @__PURE__ */ x("div", { children: [
|
|
28
|
+
c,
|
|
29
|
+
n
|
|
30
|
+
] }), e[15] = c, e[16] = n, e[17] = d) : d = e[17];
|
|
31
|
+
let a;
|
|
32
|
+
e[18] !== m || e[19] !== d ? (a = /* @__PURE__ */ x(g, { border: !0, className: "quote__footer", children: [
|
|
33
|
+
m,
|
|
34
|
+
d
|
|
35
|
+
] }), e[18] = m, e[19] = d, e[20] = a) : a = e[20];
|
|
36
|
+
let u;
|
|
37
|
+
return e[21] !== l || e[22] !== s || e[23] !== a ? (u = /* @__PURE__ */ x(N, { ...l, className: "quote", children: [
|
|
38
|
+
s,
|
|
39
|
+
a
|
|
40
|
+
] }), e[21] = l, e[22] = s, e[23] = a, e[24] = u) : u = e[24], u;
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
B as Quote
|
|
44
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Code0ComponentProps, Color } from '../../utils';
|
|
2
|
+
import { GroupProps, PanelProps, SeparatorProps } from 'react-resizable-panels';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
type ResizablePanelGroupProps = Code0ComponentProps & GroupProps;
|
|
5
|
+
type ResizablePanelProps = Code0ComponentProps & PanelProps & {
|
|
6
|
+
color?: Color;
|
|
7
|
+
};
|
|
8
|
+
type ResizableHandleProps = Code0ComponentProps & SeparatorProps;
|
|
9
|
+
export declare const ResizablePanelGroup: React.FC<ResizablePanelGroupProps>;
|
|
10
|
+
export declare const ResizablePanel: React.FC<ResizablePanelProps>;
|
|
11
|
+
export declare const ResizableHandle: React.FC<ResizableHandleProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import "../../utils/contextStore.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { mergeCode0Props as s } from "../../utils/utils.js";
|
|
6
|
+
import { Separator as n, Panel as c, Group as m } from "react-resizable-panels";
|
|
7
|
+
import '../../assets/components/resizable/Resizable.style.css';/* empty css */
|
|
8
|
+
const $ = (r) => {
|
|
9
|
+
const e = o.c(4);
|
|
10
|
+
let l;
|
|
11
|
+
e[0] !== r ? (l = s("d-resizable", r), e[0] = r, e[1] = l) : l = e[1];
|
|
12
|
+
const t = l;
|
|
13
|
+
let a;
|
|
14
|
+
return e[2] !== t ? (a = /* @__PURE__ */ i(m, { "data-slot": "resizable-panel-group", ...t }), e[2] = t, e[3] = a) : a = e[3], a;
|
|
15
|
+
}, p = (r) => {
|
|
16
|
+
const e = o.c(5), l = `d-resizable__panel ${r.color ? `d-resizable__panel--${r.color ?? "primary"}` : ""}`;
|
|
17
|
+
let t;
|
|
18
|
+
e[0] !== r || e[1] !== l ? (t = s(l, r), e[0] = r, e[1] = l, e[2] = t) : t = e[2];
|
|
19
|
+
let a;
|
|
20
|
+
return e[3] !== t ? (a = /* @__PURE__ */ i(c, { "data-slot": "resizable-panel", ...t }), e[3] = t, e[4] = a) : a = e[4], a;
|
|
21
|
+
}, P = (r) => {
|
|
22
|
+
const e = o.c(5);
|
|
23
|
+
let l;
|
|
24
|
+
e[0] !== r ? (l = s("d-resizable__handle", r), e[0] = r, e[1] = l) : l = e[1];
|
|
25
|
+
let t;
|
|
26
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ i("div", { className: "d-resizable__handle-bar" }), e[2] = t) : t = e[2];
|
|
27
|
+
let a;
|
|
28
|
+
return e[3] !== l ? (a = /* @__PURE__ */ i(n, { "data-slot": "resizable-handle", ...l, children: t }), e[3] = l, e[4] = a) : a = e[4], a;
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
P as ResizableHandle,
|
|
32
|
+
p as ResizablePanel,
|
|
33
|
+
$ as ResizablePanelGroup
|
|
34
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import '../../assets/components/row/Row.style.css';/* empty css */
|
|
4
|
+
import { mergeCode0Props as n } from "../../utils/utils.js";
|
|
5
|
+
const a = (i) => {
|
|
6
|
+
const t = s.c(6);
|
|
7
|
+
let e, r;
|
|
8
|
+
if (t[0] !== i) {
|
|
9
|
+
const {
|
|
10
|
+
children: m,
|
|
11
|
+
...c
|
|
12
|
+
} = i;
|
|
13
|
+
e = m, r = n("row", c), t[0] = i, t[1] = e, t[2] = r;
|
|
14
|
+
} else
|
|
15
|
+
e = t[1], r = t[2];
|
|
16
|
+
let o;
|
|
17
|
+
return t[3] !== e || t[4] !== r ? (o = /* @__PURE__ */ l("div", { ...r, children: e }), t[3] = e, t[4] = r, t[5] = o) : o = t[5], o;
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
a as Row
|
|
21
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Code0ComponentProps } from '../../utils/types';
|
|
3
|
+
import * as RadixScrollArea from "@radix-ui/react-scroll-area";
|
|
4
|
+
export type ScrollAreaProps = Code0ComponentProps & RadixScrollArea.ScrollAreaProps;
|
|
5
|
+
export type ScrollAreaViewportProps = Code0ComponentProps & RadixScrollArea.ScrollAreaViewportProps;
|
|
6
|
+
export type ScrollAreaScrollbarProps = Code0ComponentProps & RadixScrollArea.ScrollAreaScrollbarProps;
|
|
7
|
+
export type ScrollAreaThumbProps = Code0ComponentProps & RadixScrollArea.ScrollAreaThumbProps;
|
|
8
|
+
export type ScrollAreaCornerProps = Code0ComponentProps & RadixScrollArea.ScrollAreaCornerProps;
|
|
9
|
+
export declare const ScrollArea: React.FC<ScrollAreaProps>;
|
|
10
|
+
export declare const ScrollAreaViewport: React.FC<ScrollAreaViewportProps>;
|
|
11
|
+
export declare const ScrollAreaScrollbar: React.FC<ScrollAreaScrollbarProps>;
|
|
12
|
+
export declare const ScrollAreaThumb: React.FC<ScrollAreaThumbProps>;
|
|
13
|
+
export declare const ScrollAreaCorner: React.FC<ScrollAreaCornerProps>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import * as a from "@radix-ui/react-scroll-area";
|
|
4
|
+
import { mergeCode0Props as i } from "../../utils/utils.js";
|
|
5
|
+
import '../../assets/components/scroll-area/ScrollArea.style.css';/* empty css */
|
|
6
|
+
const S = (t) => {
|
|
7
|
+
const e = c.c(4);
|
|
8
|
+
let r;
|
|
9
|
+
e[0] !== t ? (r = i("scroll-area", t), e[0] = t, e[1] = r) : r = e[1];
|
|
10
|
+
let l;
|
|
11
|
+
return e[2] !== r ? (l = /* @__PURE__ */ o(a.ScrollArea, { ...r }), e[2] = r, e[3] = l) : l = e[3], l;
|
|
12
|
+
}, A = (t) => {
|
|
13
|
+
const e = c.c(4);
|
|
14
|
+
let r;
|
|
15
|
+
e[0] !== t ? (r = i("scroll-area__viewport", t), e[0] = t, e[1] = r) : r = e[1];
|
|
16
|
+
let l;
|
|
17
|
+
return e[2] !== r ? (l = /* @__PURE__ */ o(a.ScrollAreaViewport, { ...r }), e[2] = r, e[3] = l) : l = e[3], l;
|
|
18
|
+
}, u = (t) => {
|
|
19
|
+
const e = c.c(4);
|
|
20
|
+
let r;
|
|
21
|
+
e[0] !== t ? (r = i("scroll-area__scrollbar", t), e[0] = t, e[1] = r) : r = e[1];
|
|
22
|
+
let l;
|
|
23
|
+
return e[2] !== r ? (l = /* @__PURE__ */ o(a.ScrollAreaScrollbar, { ...r }), e[2] = r, e[3] = l) : l = e[3], l;
|
|
24
|
+
}, _ = (t) => {
|
|
25
|
+
const e = c.c(4);
|
|
26
|
+
let r;
|
|
27
|
+
e[0] !== t ? (r = i("scroll-area__thumb", t), e[0] = t, e[1] = r) : r = e[1];
|
|
28
|
+
let l;
|
|
29
|
+
return e[2] !== r ? (l = /* @__PURE__ */ o(a.ScrollAreaThumb, { ...r }), e[2] = r, e[3] = l) : l = e[3], l;
|
|
30
|
+
}, b = (t) => {
|
|
31
|
+
const e = c.c(4);
|
|
32
|
+
let r;
|
|
33
|
+
e[0] !== t ? (r = i("scroll-area__corner", t), e[0] = t, e[1] = r) : r = e[1];
|
|
34
|
+
let l;
|
|
35
|
+
return e[2] !== r ? (l = /* @__PURE__ */ o(a.ScrollAreaCorner, { ...r }), e[2] = r, e[3] = l) : l = e[3], l;
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
S as ScrollArea,
|
|
39
|
+
b as ScrollAreaCorner,
|
|
40
|
+
u as ScrollAreaScrollbar,
|
|
41
|
+
_ as ScrollAreaThumb,
|
|
42
|
+
A as ScrollAreaViewport
|
|
43
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Code0ComponentProps, Color } from '../../utils';
|
|
3
|
+
import { ToggleGroupSingleProps, ToggleGroupItemProps } from '@radix-ui/react-toggle-group';
|
|
4
|
+
type SegmentedControlProps = Code0ComponentProps & ToggleGroupSingleProps & {
|
|
5
|
+
color?: Color;
|
|
6
|
+
};
|
|
7
|
+
type SegmentedControlItemProps = Code0ComponentProps & ToggleGroupItemProps;
|
|
8
|
+
export declare const SegmentedControl: React.FC<SegmentedControlProps>;
|
|
9
|
+
export declare const SegmentedControlItem: React.FC<SegmentedControlItemProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { Root as s, Item as f } from "@radix-ui/react-toggle-group";
|
|
4
|
+
import "../../utils/contextStore.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { mergeCode0Props as i } from "../../utils/utils.js";
|
|
7
|
+
import '../../assets/components/segmented-control/SegmentedControl.style.css';/* empty css */
|
|
8
|
+
const I = (e) => {
|
|
9
|
+
const t = l.c(5), o = `segmented-control segmented-control--${e.color ?? "secondary"}`;
|
|
10
|
+
let m;
|
|
11
|
+
t[0] !== e || t[1] !== o ? (m = i(o, e), t[0] = e, t[1] = o, t[2] = m) : m = t[2];
|
|
12
|
+
const r = m;
|
|
13
|
+
let n;
|
|
14
|
+
return t[3] !== r ? (n = /* @__PURE__ */ c(s, { ...r }), t[3] = r, t[4] = n) : n = t[4], n;
|
|
15
|
+
}, R = (e) => {
|
|
16
|
+
const t = l.c(4);
|
|
17
|
+
let o;
|
|
18
|
+
t[0] !== e ? (o = i("segmented-control__item", e), t[0] = e, t[1] = o) : o = t[1];
|
|
19
|
+
const m = o;
|
|
20
|
+
let r;
|
|
21
|
+
return t[2] !== m ? (r = /* @__PURE__ */ c(f, { ...m }), t[2] = m, t[3] = r) : r = t[3], r;
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
I as SegmentedControl,
|
|
25
|
+
R as SegmentedControlItem
|
|
26
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import "../../utils/contextStore.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { mergeCode0Props as p } from "../../utils/utils.js";
|
|
6
|
+
import '../../assets/components/spacing/Spacing.style.css';/* empty css */
|
|
7
|
+
const d = (r) => {
|
|
8
|
+
const t = c.c(4);
|
|
9
|
+
let i;
|
|
10
|
+
if (t[0] !== r) {
|
|
11
|
+
const {
|
|
12
|
+
spacing: e,
|
|
13
|
+
...m
|
|
14
|
+
} = r;
|
|
15
|
+
i = p(`spacing spacing--${e}`, m), t[0] = r, t[1] = i;
|
|
16
|
+
} else
|
|
17
|
+
i = t[1];
|
|
18
|
+
let o;
|
|
19
|
+
return t[2] !== i ? (o = /* @__PURE__ */ s("div", { ...i }), t[2] = i, t[3] = o) : o = t[3], o;
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
d as Spacing
|
|
23
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Code0ComponentProps } from '../../utils';
|
|
3
|
+
import { TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps } from '@radix-ui/react-tabs';
|
|
4
|
+
export type TabProps = Code0ComponentProps & TabsProps;
|
|
5
|
+
export type TabListProps = Code0ComponentProps & TabsListProps;
|
|
6
|
+
export type TabTriggerProps = Code0ComponentProps & TabsTriggerProps;
|
|
7
|
+
export type TabContentProps = Code0ComponentProps & TabsContentProps;
|
|
8
|
+
export declare const Tab: React.FC<TabProps>;
|
|
9
|
+
export declare const TabList: React.FC<TabListProps>;
|
|
10
|
+
export declare const TabTrigger: React.FC<TabTriggerProps>;
|
|
11
|
+
export declare const TabContent: React.FC<TabContentProps>;
|