@pyck/react 0.0.1
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/checkmark-CW-yHMvN.js +18 -0
- package/dist/chunk-BYypO7fO.js +18 -0
- package/dist/close-button-BM7ikbYh.js +52 -0
- package/dist/components/absolute-center/index.d.ts +11 -0
- package/dist/components/absolute-center/index.js +9 -0
- package/dist/components/action-bar/index.d.ts +21 -0
- package/dist/components/action-bar/index.js +35 -0
- package/dist/components/avatar/index.d.ts +22 -0
- package/dist/components/avatar/index.js +53 -0
- package/dist/components/badge/index.d.ts +11 -0
- package/dist/components/badge/index.js +9 -0
- package/dist/components/breadcrumb/index.d.ts +19 -0
- package/dist/components/breadcrumb/index.js +31 -0
- package/dist/components/button/index.d.ts +47 -0
- package/dist/components/button/index.js +3 -0
- package/dist/components/card/index.d.ts +19 -0
- package/dist/components/card/index.js +24 -0
- package/dist/components/carousel/index.d.ts +25 -0
- package/dist/components/carousel/index.js +65 -0
- package/dist/components/checkbox/index.d.ts +35 -0
- package/dist/components/checkbox/index.js +67 -0
- package/dist/components/checkmark/index.d.ts +26 -0
- package/dist/components/checkmark/index.js +3 -0
- package/dist/components/clipboard/index.d.ts +21 -0
- package/dist/components/clipboard/index.js +36 -0
- package/dist/components/collapsible/index.d.ts +18 -0
- package/dist/components/collapsible/index.js +23 -0
- package/dist/components/combobox/index.d.ts +32 -0
- package/dist/components/combobox/index.js +62 -0
- package/dist/components/data-list/index.d.ts +26 -0
- package/dist/components/data-list/index.js +39 -0
- package/dist/components/date-picker/index.d.ts +38 -0
- package/dist/components/date-picker/index.js +81 -0
- package/dist/components/dialog/index.d.ts +107 -0
- package/dist/components/dialog/index.js +295 -0
- package/dist/components/display-date-value/index.d.ts +3 -0
- package/dist/components/display-date-value/index.js +4 -0
- package/dist/components/display-value/index.d.ts +2 -0
- package/dist/components/display-value/index.js +3 -0
- package/dist/components/drawer/index.d.ts +28 -0
- package/dist/components/drawer/index.js +50 -0
- package/dist/components/drilldown-menu/index.d.ts +16 -0
- package/dist/components/drilldown-menu/index.js +123 -0
- package/dist/components/field/index.d.ts +21 -0
- package/dist/components/field/index.js +49 -0
- package/dist/components/fieldset/index.d.ts +23 -0
- package/dist/components/fieldset/index.js +32 -0
- package/dist/components/floating-panel/index.d.ts +23 -0
- package/dist/components/floating-panel/index.js +86 -0
- package/dist/components/for/index.d.ts +20 -0
- package/dist/components/for/index.js +9 -0
- package/dist/components/form/index.d.ts +41 -0
- package/dist/components/form/index.js +46 -0
- package/dist/components/format/index.d.ts +2 -0
- package/dist/components/format/index.js +3 -0
- package/dist/components/group/index.d.ts +11 -0
- package/dist/components/group/index.js +9 -0
- package/dist/components/heading/index.d.ts +12 -0
- package/dist/components/heading/index.js +8 -0
- package/dist/components/highlight/index.d.ts +17 -0
- package/dist/components/highlight/index.js +27 -0
- package/dist/components/icon/index.d.ts +19 -0
- package/dist/components/icon/index.js +3 -0
- package/dist/components/image/index.d.ts +22 -0
- package/dist/components/image/index.js +12 -0
- package/dist/components/input/index.d.ts +23 -0
- package/dist/components/input/index.js +21 -0
- package/dist/components/input-addon/index.d.ts +11 -0
- package/dist/components/input-addon/index.js +9 -0
- package/dist/components/input-group/index.d.ts +16 -0
- package/dist/components/input-group/index.js +29 -0
- package/dist/components/json-form-builder/index.d.ts +135 -0
- package/dist/components/json-form-builder/index.js +347 -0
- package/dist/components/kbd/index.d.ts +11 -0
- package/dist/components/kbd/index.js +9 -0
- package/dist/components/link/index.d.ts +11 -0
- package/dist/components/link/index.js +9 -0
- package/dist/components/listbox/index.d.ts +2 -0
- package/dist/components/listbox/index.js +3 -0
- package/dist/components/loader/index.d.ts +28 -0
- package/dist/components/loader/index.js +28 -0
- package/dist/components/locale/index.d.ts +2 -0
- package/dist/components/locale/index.js +3 -0
- package/dist/components/logo/index.d.ts +8 -0
- package/dist/components/logo/index.js +25 -0
- package/dist/components/mark/index.d.ts +11 -0
- package/dist/components/mark/index.js +9 -0
- package/dist/components/menu/index.d.ts +34 -0
- package/dist/components/menu/index.js +69 -0
- package/dist/components/number-input/index.d.ts +34 -0
- package/dist/components/number-input/index.js +51 -0
- package/dist/components/page-header/index.d.ts +18 -0
- package/dist/components/page-header/index.js +22 -0
- package/dist/components/pagination/index.d.ts +29 -0
- package/dist/components/pagination/index.js +45 -0
- package/dist/components/picker/index.d.ts +19 -0
- package/dist/components/picker/index.js +57 -0
- package/dist/components/popover/index.d.ts +30 -0
- package/dist/components/popover/index.js +50 -0
- package/dist/components/portal/index.d.ts +2 -0
- package/dist/components/portal/index.js +3 -0
- package/dist/components/progress/index.d.ts +19 -0
- package/dist/components/progress/index.js +47 -0
- package/dist/components/progress-circle/index.d.ts +19 -0
- package/dist/components/progress-circle/index.js +54 -0
- package/dist/components/radio-card-group/index.d.ts +21 -0
- package/dist/components/radio-card-group/index.js +29 -0
- package/dist/components/radio-group/index.d.ts +22 -0
- package/dist/components/radio-group/index.js +41 -0
- package/dist/components/scroll-area/index.d.ts +23 -0
- package/dist/components/scroll-area/index.js +41 -0
- package/dist/components/segment-group/index.d.ts +32 -0
- package/dist/components/segment-group/index.js +46 -0
- package/dist/components/select/index.d.ts +54 -0
- package/dist/components/select/index.js +93 -0
- package/dist/components/show/index.d.ts +11 -0
- package/dist/components/show/index.js +3 -0
- package/dist/components/skeleton/index.d.ts +23 -0
- package/dist/components/skeleton/index.js +17 -0
- package/dist/components/slider/index.d.ts +31 -0
- package/dist/components/slider/index.js +93 -0
- package/dist/components/span/index.d.ts +8 -0
- package/dist/components/span/index.js +3 -0
- package/dist/components/spinner/index.d.ts +11 -0
- package/dist/components/spinner/index.js +9 -0
- package/dist/components/spotlight/index.d.ts +28 -0
- package/dist/components/spotlight/index.js +165 -0
- package/dist/components/stat/index.d.ts +16 -0
- package/dist/components/stat/index.js +18 -0
- package/dist/components/steps/index.d.ts +36 -0
- package/dist/components/steps/index.js +61 -0
- package/dist/components/switch/index.d.ts +41 -0
- package/dist/components/switch/index.js +80 -0
- package/dist/components/table/index.d.ts +85 -0
- package/dist/components/table/index.js +144 -0
- package/dist/components/tabs/index.d.ts +18 -0
- package/dist/components/tabs/index.js +22 -0
- package/dist/components/tags-input/index.d.ts +29 -0
- package/dist/components/tags-input/index.js +48 -0
- package/dist/components/text/index.d.ts +12 -0
- package/dist/components/text/index.js +8 -0
- package/dist/components/textarea/index.d.ts +24 -0
- package/dist/components/textarea/index.js +22 -0
- package/dist/components/toast/index.d.ts +25 -0
- package/dist/components/toast/index.js +76 -0
- package/dist/components/toggle-group/index.d.ts +16 -0
- package/dist/components/toggle-group/index.js +19 -0
- package/dist/components/tooltip/index.d.ts +26 -0
- package/dist/components/tooltip/index.js +50 -0
- package/dist/components/tree-view/index.d.ts +37 -0
- package/dist/components/tree-view/index.js +63 -0
- package/dist/components/wrap/index.d.ts +15 -0
- package/dist/components/wrap/index.js +5 -0
- package/dist/display-date-value-CdfgVuB7.d.ts +15 -0
- package/dist/display-date-value-gTlidtNz.js +21 -0
- package/dist/display-value-BNKxQ99u.js +37 -0
- package/dist/display-value-IyQT1429.d.ts +11 -0
- package/dist/featured-icon-DPysOpSf.js +35 -0
- package/dist/function-DOGwA2sm.js +7 -0
- package/dist/show-IaI-36v9.js +12 -0
- package/dist/span-DWZSA3mH.js +7 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.js +0 -0
- package/dist/utils/index.d.ts +206 -0
- package/dist/utils/index.js +377 -0
- package/package.json +89 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react from "react";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
|
|
4
|
+
import * as _ark_ui_react0 from "@ark-ui/react";
|
|
5
|
+
import * as _pyck_styled_system_types0 from "@pyck/styled-system/types";
|
|
6
|
+
|
|
7
|
+
//#region src/components/checkmark/checkmark.d.ts
|
|
8
|
+
type StyledCheckmarkProps = ComponentProps<typeof StyledCheckmark>;
|
|
9
|
+
declare const StyledCheckmark: _pyck_styled_system_types0.StyledComponent<react.ForwardRefExoticComponent<react.SVGProps<SVGSVGElement> & _ark_ui_react0.PolymorphicProps>, _pyck_styled_system_recipes0.CheckmarkVariantProps>;
|
|
10
|
+
interface CheckmarkProps extends StyledCheckmarkProps {
|
|
11
|
+
/**
|
|
12
|
+
* Whether the checkmark is checked
|
|
13
|
+
*/
|
|
14
|
+
checked?: boolean | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the checkmark is indeterminate
|
|
17
|
+
*/
|
|
18
|
+
indeterminate?: boolean | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the checkmark is disabled
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean | undefined;
|
|
23
|
+
}
|
|
24
|
+
declare const Checkmark: react.ForwardRefExoticComponent<Omit<CheckmarkProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { Checkmark, type CheckmarkProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react from "react";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
|
|
4
|
+
import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
|
|
5
|
+
import { Clipboard, ClipboardContext as Context } from "@ark-ui/react/clipboard";
|
|
6
|
+
|
|
7
|
+
//#region src/components/clipboard/clipboard.d.ts
|
|
8
|
+
declare namespace clipboard_d_exports {
|
|
9
|
+
export { Context, Control, CopyText, Indicator, Input, Label, Root, RootProps, RootProvider, Trigger };
|
|
10
|
+
}
|
|
11
|
+
type RootProps = ComponentProps<typeof Root>;
|
|
12
|
+
declare const Root: _pyck_styled_system_jsx0.StyleContextProvider<react.ForwardRefExoticComponent<Clipboard.RootProps & react.RefAttributes<HTMLDivElement>>, _pyck_styled_system_recipes0.ClipboardRecipe>;
|
|
13
|
+
declare const RootProvider: _pyck_styled_system_jsx0.StyleContextProvider<react.ForwardRefExoticComponent<Clipboard.RootProviderProps & react.RefAttributes<HTMLDivElement>>, _pyck_styled_system_recipes0.ClipboardRecipe>;
|
|
14
|
+
declare const Control: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Clipboard.ControlProps & react.RefAttributes<HTMLDivElement>>>;
|
|
15
|
+
declare const Input: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Clipboard.InputProps & react.RefAttributes<HTMLInputElement>>>;
|
|
16
|
+
declare const Label: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Clipboard.LabelProps & react.RefAttributes<HTMLLabelElement>>>;
|
|
17
|
+
declare const Trigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Clipboard.TriggerProps & react.RefAttributes<HTMLButtonElement>>>;
|
|
18
|
+
declare const Indicator: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Clipboard.IndicatorProps & react.RefAttributes<HTMLDivElement>>>;
|
|
19
|
+
declare const CopyText: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Clipboard.IndicatorProps & react.RefAttributes<HTMLDivElement>>>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { clipboard_d_exports as Clipboard };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../chunk-BYypO7fO.js";
|
|
2
|
+
import { createStyleContext } from "@pyck/styled-system/jsx";
|
|
3
|
+
import { clipboard } from "@pyck/styled-system/recipes";
|
|
4
|
+
import { CheckIcon, CopyIcon } from "lucide-react";
|
|
5
|
+
import { Clipboard, ClipboardContext as Context } from "@ark-ui/react/clipboard";
|
|
6
|
+
|
|
7
|
+
//#region src/components/clipboard/clipboard.tsx
|
|
8
|
+
var clipboard_exports = /* @__PURE__ */ __exportAll({
|
|
9
|
+
Context: () => Context,
|
|
10
|
+
Control: () => Control,
|
|
11
|
+
CopyText: () => CopyText,
|
|
12
|
+
Indicator: () => Indicator,
|
|
13
|
+
Input: () => Input,
|
|
14
|
+
Label: () => Label,
|
|
15
|
+
Root: () => Root,
|
|
16
|
+
RootProvider: () => RootProvider,
|
|
17
|
+
Trigger: () => Trigger
|
|
18
|
+
});
|
|
19
|
+
const { withProvider, withContext } = createStyleContext(clipboard);
|
|
20
|
+
const Root = withProvider(Clipboard.Root, "root");
|
|
21
|
+
const RootProvider = withProvider(Clipboard.RootProvider, "root");
|
|
22
|
+
const Control = withContext(Clipboard.Control, "control");
|
|
23
|
+
const Input = withContext(Clipboard.Input, "input");
|
|
24
|
+
const Label = withContext(Clipboard.Label, "label");
|
|
25
|
+
const Trigger = withContext(Clipboard.Trigger, "trigger");
|
|
26
|
+
const Indicator = withContext(Clipboard.Indicator, "indicator", { defaultProps: {
|
|
27
|
+
copied: <CheckIcon />,
|
|
28
|
+
children: <CopyIcon />
|
|
29
|
+
} });
|
|
30
|
+
const CopyText = withContext(Clipboard.Indicator, "indicator", { defaultProps: {
|
|
31
|
+
copied: "Copied",
|
|
32
|
+
children: "Copy"
|
|
33
|
+
} });
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { clipboard_exports as Clipboard };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react from "react";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
|
|
4
|
+
import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
|
|
5
|
+
import { Collapsible, CollapsibleContext as Context } from "@ark-ui/react/collapsible";
|
|
6
|
+
|
|
7
|
+
//#region src/components/collapsible/collapsible.d.ts
|
|
8
|
+
declare namespace collapsible_d_exports {
|
|
9
|
+
export { Content, Context, Indicator, Root, RootProps, RootProvider, Trigger };
|
|
10
|
+
}
|
|
11
|
+
type RootProps = ComponentProps<typeof Root>;
|
|
12
|
+
declare const Root: _pyck_styled_system_jsx0.StyleContextProvider<react.ForwardRefExoticComponent<Collapsible.RootProps & react.RefAttributes<HTMLDivElement>>, _pyck_styled_system_recipes0.CollapsibleRecipe>;
|
|
13
|
+
declare const RootProvider: _pyck_styled_system_jsx0.StyleContextProvider<react.ForwardRefExoticComponent<Collapsible.RootProviderProps & react.RefAttributes<HTMLDivElement>>, _pyck_styled_system_recipes0.CollapsibleRecipe>;
|
|
14
|
+
declare const Content: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Collapsible.ContentProps & react.RefAttributes<HTMLDivElement>>>;
|
|
15
|
+
declare const Indicator: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Collapsible.IndicatorProps & react.RefAttributes<HTMLDivElement>>>;
|
|
16
|
+
declare const Trigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Collapsible.TriggerProps & react.RefAttributes<HTMLButtonElement>>>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { collapsible_d_exports as Collapsible };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../chunk-BYypO7fO.js";
|
|
2
|
+
import { createStyleContext } from "@pyck/styled-system/jsx";
|
|
3
|
+
import { collapsible } from "@pyck/styled-system/recipes";
|
|
4
|
+
import { Collapsible, CollapsibleContext as Context } from "@ark-ui/react/collapsible";
|
|
5
|
+
|
|
6
|
+
//#region src/components/collapsible/collapsible.tsx
|
|
7
|
+
var collapsible_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
Content: () => Content,
|
|
9
|
+
Context: () => Context,
|
|
10
|
+
Indicator: () => Indicator,
|
|
11
|
+
Root: () => Root,
|
|
12
|
+
RootProvider: () => RootProvider,
|
|
13
|
+
Trigger: () => Trigger
|
|
14
|
+
});
|
|
15
|
+
const { withProvider, withContext } = createStyleContext(collapsible);
|
|
16
|
+
const Root = withProvider(Collapsible.Root, "root");
|
|
17
|
+
const RootProvider = withProvider(Collapsible.RootProvider, "root");
|
|
18
|
+
const Content = withContext(Collapsible.Content, "content");
|
|
19
|
+
const Indicator = withContext(Collapsible.Indicator, "indicator");
|
|
20
|
+
const Trigger = withContext(Collapsible.Trigger, "trigger");
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { collapsible_exports as Collapsible };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react from "react";
|
|
2
|
+
import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
|
|
3
|
+
import { HTMLStyledProps } from "@pyck/styled-system/jsx";
|
|
4
|
+
import { ComboboxVariantProps } from "@pyck/styled-system/recipes";
|
|
5
|
+
import { Combobox, ComboboxContext as Context, useListCollection } from "@ark-ui/react/combobox";
|
|
6
|
+
import { useFilter } from "@ark-ui/react/locale";
|
|
7
|
+
import * as _ark_ui_react0 from "@ark-ui/react";
|
|
8
|
+
|
|
9
|
+
//#region src/components/combobox/combobox.d.ts
|
|
10
|
+
declare namespace combobox_d_exports {
|
|
11
|
+
export { ClearTrigger, Content, Context, Control, Empty, IndicatorGroup, Input, Item, ItemGroup, ItemGroupLabel, ItemIndicator, ItemText, Label, List, Positioner, Root, RootProps, RootProvider, Trigger };
|
|
12
|
+
}
|
|
13
|
+
type RootProps = HTMLStyledProps<'div'> & ComboboxVariantProps;
|
|
14
|
+
declare const Root: Combobox.RootComponent<RootProps>;
|
|
15
|
+
declare const RootProvider: Combobox.RootProviderComponent<RootProps>;
|
|
16
|
+
declare const ClearTrigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.ClearTriggerProps & react.RefAttributes<HTMLButtonElement>>>;
|
|
17
|
+
declare const Content: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.ContentProps & react.RefAttributes<HTMLDivElement>>>;
|
|
18
|
+
declare const Control: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.ControlProps & react.RefAttributes<HTMLDivElement>>>;
|
|
19
|
+
declare const Empty: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.EmptyProps & react.RefAttributes<HTMLDivElement>>>;
|
|
20
|
+
declare const IndicatorGroup: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & _ark_ui_react0.PolymorphicProps>>;
|
|
21
|
+
declare const Input: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.InputProps & react.RefAttributes<HTMLInputElement>>>;
|
|
22
|
+
declare const Item: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.ItemProps & react.RefAttributes<HTMLDivElement>>>;
|
|
23
|
+
declare const ItemGroup: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.ItemGroupProps & react.RefAttributes<HTMLDivElement>>>;
|
|
24
|
+
declare const ItemGroupLabel: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.ItemGroupLabelProps & react.RefAttributes<HTMLDivElement>>>;
|
|
25
|
+
declare const ItemIndicator: react.ForwardRefExoticComponent<Omit<HTMLStyledProps<"div">, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
declare const ItemText: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.ItemTextProps & react.RefAttributes<HTMLDivElement>>>;
|
|
27
|
+
declare const Label: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.LabelProps & react.RefAttributes<HTMLLabelElement>>>;
|
|
28
|
+
declare const List: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.ListProps & react.RefAttributes<HTMLDivElement>>>;
|
|
29
|
+
declare const Positioner: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.PositionerProps & react.RefAttributes<HTMLDivElement>>>;
|
|
30
|
+
declare const Trigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Combobox.TriggerProps & react.RefAttributes<HTMLButtonElement>>>;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { combobox_d_exports as Combobox, useFilter, useListCollection };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../chunk-BYypO7fO.js";
|
|
2
|
+
import { t as Checkmark } from "../../checkmark-CW-yHMvN.js";
|
|
3
|
+
import "../checkmark/index.js";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { ark } from "@ark-ui/react/factory";
|
|
6
|
+
import { createStyleContext } from "@pyck/styled-system/jsx";
|
|
7
|
+
import { combobox } from "@pyck/styled-system/recipes";
|
|
8
|
+
import { ChevronsUpDownIcon, XIcon } from "lucide-react";
|
|
9
|
+
import { Combobox, ComboboxContext as Context, useComboboxItemContext, useListCollection } from "@ark-ui/react/combobox";
|
|
10
|
+
import { useFilter } from "@ark-ui/react/locale";
|
|
11
|
+
import { Show } from "@pyck/react/show";
|
|
12
|
+
|
|
13
|
+
//#region src/components/combobox/combobox.tsx
|
|
14
|
+
var combobox_exports = /* @__PURE__ */ __exportAll({
|
|
15
|
+
ClearTrigger: () => ClearTrigger,
|
|
16
|
+
Content: () => Content,
|
|
17
|
+
Context: () => Context,
|
|
18
|
+
Control: () => Control,
|
|
19
|
+
Empty: () => Empty,
|
|
20
|
+
IndicatorGroup: () => IndicatorGroup,
|
|
21
|
+
Input: () => Input,
|
|
22
|
+
Item: () => Item,
|
|
23
|
+
ItemGroup: () => ItemGroup,
|
|
24
|
+
ItemGroupLabel: () => ItemGroupLabel,
|
|
25
|
+
ItemIndicator: () => ItemIndicator,
|
|
26
|
+
ItemText: () => ItemText,
|
|
27
|
+
Label: () => Label,
|
|
28
|
+
List: () => List,
|
|
29
|
+
Positioner: () => Positioner,
|
|
30
|
+
Root: () => Root,
|
|
31
|
+
RootProvider: () => RootProvider,
|
|
32
|
+
Trigger: () => Trigger
|
|
33
|
+
});
|
|
34
|
+
const { withProvider, withContext } = createStyleContext(combobox);
|
|
35
|
+
const Root = withProvider(Combobox.Root, "root", { defaultProps: { positioning: { sameWidth: false } } });
|
|
36
|
+
const RootProvider = withProvider(Combobox.RootProvider, "root");
|
|
37
|
+
const ClearTrigger = withContext(Combobox.ClearTrigger, "clearTrigger", { defaultProps: { children: <XIcon /> } });
|
|
38
|
+
const Content = withContext(Combobox.Content, "content");
|
|
39
|
+
const Control = withContext(Combobox.Control, "control");
|
|
40
|
+
const Empty = withContext(Combobox.Empty, "empty");
|
|
41
|
+
const IndicatorGroup = withContext(ark.div, "indicatorGroup");
|
|
42
|
+
const Input = withContext(Combobox.Input, "input");
|
|
43
|
+
const Item = withContext(Combobox.Item, "item");
|
|
44
|
+
const ItemGroup = withContext(Combobox.ItemGroup, "itemGroup");
|
|
45
|
+
const ItemGroupLabel = withContext(Combobox.ItemGroupLabel, "itemGroupLabel");
|
|
46
|
+
const StyledItemIndicator = withContext(Combobox.ItemIndicator, "itemIndicator");
|
|
47
|
+
const ItemIndicator = forwardRef(function ItemIndicator(props, ref) {
|
|
48
|
+
const item = useComboboxItemContext();
|
|
49
|
+
return <Show when={item.selected} fallback={<Checkmark size="sm" />}>
|
|
50
|
+
<StyledItemIndicator ref={ref} asChild {...props}>
|
|
51
|
+
<Checkmark size="sm" checked={item.selected} />
|
|
52
|
+
</StyledItemIndicator>
|
|
53
|
+
</Show>;
|
|
54
|
+
});
|
|
55
|
+
const ItemText = withContext(Combobox.ItemText, "itemText");
|
|
56
|
+
const Label = withContext(Combobox.Label, "label");
|
|
57
|
+
const List = withContext(Combobox.List, "list");
|
|
58
|
+
const Positioner = withContext(Combobox.Positioner, "positioner");
|
|
59
|
+
const Trigger = withContext(Combobox.Trigger, "trigger", { defaultProps: { children: <ChevronsUpDownIcon /> } });
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { combobox_exports as Combobox, useFilter, useListCollection };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as DisplayDateValueProps } from "../../display-date-value-CdfgVuB7.js";
|
|
2
|
+
import "../display-date-value/index.js";
|
|
3
|
+
import { n as DisplayValueProps } from "../../display-value-IyQT1429.js";
|
|
4
|
+
import * as react from "react";
|
|
5
|
+
import { ComponentProps } from "react";
|
|
6
|
+
import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
|
|
7
|
+
import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
|
|
8
|
+
import * as _ark_ui_react0 from "@ark-ui/react";
|
|
9
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
10
|
+
|
|
11
|
+
//#region src/components/data-list/data-list.d.ts
|
|
12
|
+
declare namespace data_list_d_exports {
|
|
13
|
+
export { DateValue, DateValueProps, Item, Label, List, Root, RootProps, Term, Value, ValueProps };
|
|
14
|
+
}
|
|
15
|
+
type RootProps = ComponentProps<typeof Root>;
|
|
16
|
+
declare const Root: _pyck_styled_system_jsx0.StyleContextProvider<react.ForwardRefExoticComponent<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & _ark_ui_react0.PolymorphicProps>, _pyck_styled_system_recipes0.DataListRecipe>;
|
|
17
|
+
declare const Label: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & _ark_ui_react0.PolymorphicProps>>;
|
|
18
|
+
declare const List: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<react.ClassAttributes<HTMLDListElement> & react.HTMLAttributes<HTMLDListElement> & _ark_ui_react0.PolymorphicProps>>;
|
|
19
|
+
declare const Item: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & _ark_ui_react0.PolymorphicProps>>;
|
|
20
|
+
declare const Term: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement> & _ark_ui_react0.PolymorphicProps>>;
|
|
21
|
+
interface ValueProps<T> extends DisplayValueProps<T> {}
|
|
22
|
+
declare const Value: <T>(props: ValueProps<T>) => react_jsx_runtime0.JSX.Element;
|
|
23
|
+
interface DateValueProps extends DisplayDateValueProps {}
|
|
24
|
+
declare const DateValue: (props: DateValueProps) => react_jsx_runtime0.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { data_list_d_exports as DataList };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../chunk-BYypO7fO.js";
|
|
2
|
+
import { t as DisplayValue } from "../../display-value-BNKxQ99u.js";
|
|
3
|
+
import { t as DisplayDateValue } from "../../display-date-value-gTlidtNz.js";
|
|
4
|
+
import "../display-date-value/index.js";
|
|
5
|
+
import "../display-value/index.js";
|
|
6
|
+
import { ark } from "@ark-ui/react/factory";
|
|
7
|
+
import { createStyleContext } from "@pyck/styled-system/jsx";
|
|
8
|
+
import { dataList } from "@pyck/styled-system/recipes";
|
|
9
|
+
|
|
10
|
+
//#region src/components/data-list/data-list.tsx
|
|
11
|
+
var data_list_exports = /* @__PURE__ */ __exportAll({
|
|
12
|
+
DateValue: () => DateValue,
|
|
13
|
+
Item: () => Item,
|
|
14
|
+
Label: () => Label,
|
|
15
|
+
List: () => List,
|
|
16
|
+
Root: () => Root,
|
|
17
|
+
Term: () => Term,
|
|
18
|
+
Value: () => Value
|
|
19
|
+
});
|
|
20
|
+
const { withProvider, withContext } = createStyleContext(dataList);
|
|
21
|
+
const Root = withProvider(ark.div, "root");
|
|
22
|
+
const Label = withContext(ark.div, "label");
|
|
23
|
+
const List = withContext(ark.dl, "list");
|
|
24
|
+
const Item = withContext(ark.div, "item");
|
|
25
|
+
const Term = withContext(ark.dt, "term");
|
|
26
|
+
const StyledValue = withContext(ark.dd, "value");
|
|
27
|
+
const Value = (props) => {
|
|
28
|
+
return <StyledValue>
|
|
29
|
+
<DisplayValue copyable {...props} />
|
|
30
|
+
</StyledValue>;
|
|
31
|
+
};
|
|
32
|
+
const DateValue = (props) => {
|
|
33
|
+
return <StyledValue>
|
|
34
|
+
<DisplayDateValue {...props} />
|
|
35
|
+
</StyledValue>;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { data_list_exports as DataList };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DatePicker, DatePickerContext as Context } from "@ark-ui/react/date-picker";
|
|
2
|
+
import * as react from "react";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
|
|
5
|
+
import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
|
|
6
|
+
|
|
7
|
+
//#region src/components/date-picker/date-picker.d.ts
|
|
8
|
+
declare namespace date_picker_d_exports {
|
|
9
|
+
export { ClearTrigger, Content, Context, Control, Input, Label, MonthSelect, NextTrigger, Positioner, PresetTrigger, PrevTrigger, RangeText, Root, RootProps, RootProvider, Table, TableBody, TableCell, TableCellTrigger, TableHead, TableHeader, TableRow, Trigger, View, ViewControl, ViewTrigger, YearSelect };
|
|
10
|
+
}
|
|
11
|
+
type RootProps = ComponentProps<typeof Root>;
|
|
12
|
+
declare const Root: _pyck_styled_system_jsx0.StyleContextProvider<react.ForwardRefExoticComponent<DatePicker.RootProps & react.RefAttributes<HTMLDivElement>>, _pyck_styled_system_recipes0.DatePickerRecipe>;
|
|
13
|
+
declare const RootProvider: _pyck_styled_system_jsx0.StyleContextProvider<react.ForwardRefExoticComponent<DatePicker.RootProviderProps & react.RefAttributes<HTMLDivElement>>, _pyck_styled_system_recipes0.DatePickerRecipe>;
|
|
14
|
+
declare const ClearTrigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.ClearTriggerProps & react.RefAttributes<HTMLButtonElement>>>;
|
|
15
|
+
declare const Content: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.ContentProps & react.RefAttributes<HTMLDivElement>>>;
|
|
16
|
+
declare const Control: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.ControlProps & react.RefAttributes<HTMLDivElement>>>;
|
|
17
|
+
declare const Input: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.InputProps & react.RefAttributes<HTMLInputElement>>>;
|
|
18
|
+
declare const Label: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.LabelProps & react.RefAttributes<HTMLLabelElement>>>;
|
|
19
|
+
declare const MonthSelect: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.MonthSelectProps & react.RefAttributes<HTMLSelectElement>>>;
|
|
20
|
+
declare const NextTrigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.NextTriggerProps & react.RefAttributes<HTMLButtonElement>>>;
|
|
21
|
+
declare const Positioner: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.PositionerProps & react.RefAttributes<HTMLDivElement>>>;
|
|
22
|
+
declare const PresetTrigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.PresetTriggerProps & react.RefAttributes<HTMLButtonElement>>>;
|
|
23
|
+
declare const PrevTrigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.PrevTriggerProps & react.RefAttributes<HTMLButtonElement>>>;
|
|
24
|
+
declare const RangeText: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.RangeTextProps & react.RefAttributes<HTMLDivElement>>>;
|
|
25
|
+
declare const Table: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.TableProps & react.RefAttributes<HTMLTableElement>>>;
|
|
26
|
+
declare const TableBody: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.TableBodyProps & react.RefAttributes<HTMLTableSectionElement>>>;
|
|
27
|
+
declare const TableCell: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.TableCellProps & react.RefAttributes<HTMLTableCellElement>>>;
|
|
28
|
+
declare const TableCellTrigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.TableCellTriggerProps & react.RefAttributes<HTMLDivElement>>>;
|
|
29
|
+
declare const TableHead: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.TableHeadProps & react.RefAttributes<HTMLTableSectionElement>>>;
|
|
30
|
+
declare const TableHeader: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.TableHeaderProps & react.RefAttributes<HTMLTableCellElement>>>;
|
|
31
|
+
declare const TableRow: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.TableRowProps & react.RefAttributes<HTMLTableRowElement>>>;
|
|
32
|
+
declare const Trigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.TriggerProps & react.RefAttributes<HTMLButtonElement>>>;
|
|
33
|
+
declare const View: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.ViewProps & react.RefAttributes<HTMLDivElement>>>;
|
|
34
|
+
declare const ViewControl: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.ViewControlProps & react.RefAttributes<HTMLDivElement>>>;
|
|
35
|
+
declare const ViewTrigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.ViewTriggerProps & react.RefAttributes<HTMLButtonElement>>>;
|
|
36
|
+
declare const YearSelect: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<DatePicker.YearSelectProps & react.RefAttributes<HTMLSelectElement>>>;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { date_picker_d_exports as DatePicker };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../chunk-BYypO7fO.js";
|
|
2
|
+
import { n as IconButton, r as Button } from "../../close-button-BM7ikbYh.js";
|
|
3
|
+
import "../button/index.js";
|
|
4
|
+
import { DatePicker, DatePickerContext as Context } from "@ark-ui/react/date-picker";
|
|
5
|
+
import { createStyleContext } from "@pyck/styled-system/jsx";
|
|
6
|
+
import { datePicker } from "@pyck/styled-system/recipes";
|
|
7
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
8
|
+
|
|
9
|
+
//#region src/components/date-picker/date-picker.tsx
|
|
10
|
+
var date_picker_exports = /* @__PURE__ */ __exportAll({
|
|
11
|
+
ClearTrigger: () => ClearTrigger,
|
|
12
|
+
Content: () => Content,
|
|
13
|
+
Context: () => Context,
|
|
14
|
+
Control: () => Control,
|
|
15
|
+
Input: () => Input,
|
|
16
|
+
Label: () => Label,
|
|
17
|
+
MonthSelect: () => MonthSelect,
|
|
18
|
+
NextTrigger: () => NextTrigger,
|
|
19
|
+
Positioner: () => Positioner,
|
|
20
|
+
PresetTrigger: () => PresetTrigger,
|
|
21
|
+
PrevTrigger: () => PrevTrigger,
|
|
22
|
+
RangeText: () => RangeText,
|
|
23
|
+
Root: () => Root,
|
|
24
|
+
RootProvider: () => RootProvider,
|
|
25
|
+
Table: () => Table,
|
|
26
|
+
TableBody: () => TableBody,
|
|
27
|
+
TableCell: () => TableCell,
|
|
28
|
+
TableCellTrigger: () => TableCellTrigger,
|
|
29
|
+
TableHead: () => TableHead,
|
|
30
|
+
TableHeader: () => TableHeader,
|
|
31
|
+
TableRow: () => TableRow,
|
|
32
|
+
Trigger: () => Trigger,
|
|
33
|
+
View: () => View,
|
|
34
|
+
ViewControl: () => ViewControl,
|
|
35
|
+
ViewTrigger: () => ViewTrigger,
|
|
36
|
+
YearSelect: () => YearSelect
|
|
37
|
+
});
|
|
38
|
+
const { withProvider, withContext } = createStyleContext(datePicker);
|
|
39
|
+
const Root = withProvider(DatePicker.Root, "root");
|
|
40
|
+
const RootProvider = withProvider(DatePicker.RootProvider, "root");
|
|
41
|
+
const ClearTrigger = withContext(DatePicker.ClearTrigger, "clearTrigger");
|
|
42
|
+
const Content = withContext(DatePicker.Content, "content");
|
|
43
|
+
const Control = withContext(DatePicker.Control, "control");
|
|
44
|
+
const Input = withContext(DatePicker.Input, "input");
|
|
45
|
+
const Label = withContext(DatePicker.Label, "label");
|
|
46
|
+
const MonthSelect = withContext(DatePicker.MonthSelect, "monthSelect");
|
|
47
|
+
const NextTrigger = withContext(DatePicker.NextTrigger, "nextTrigger", { defaultProps: {
|
|
48
|
+
asChild: true,
|
|
49
|
+
children: <IconButton size="sm" variant="plain">
|
|
50
|
+
<ChevronRightIcon />
|
|
51
|
+
</IconButton>
|
|
52
|
+
} });
|
|
53
|
+
const Positioner = withContext(DatePicker.Positioner, "positioner");
|
|
54
|
+
const PresetTrigger = withContext(DatePicker.PresetTrigger, "presetTrigger");
|
|
55
|
+
const PrevTrigger = withContext(DatePicker.PrevTrigger, "prevTrigger", { defaultProps: {
|
|
56
|
+
asChild: true,
|
|
57
|
+
children: <IconButton size="sm" variant="plain">
|
|
58
|
+
<ChevronLeftIcon />
|
|
59
|
+
</IconButton>
|
|
60
|
+
} });
|
|
61
|
+
const RangeText = withContext(DatePicker.RangeText, "rangeText");
|
|
62
|
+
const Table = withContext(DatePicker.Table, "table");
|
|
63
|
+
const TableBody = withContext(DatePicker.TableBody, "tableBody");
|
|
64
|
+
const TableCell = withContext(DatePicker.TableCell, "tableCell");
|
|
65
|
+
const TableCellTrigger = withContext(DatePicker.TableCellTrigger, "tableCellTrigger");
|
|
66
|
+
const TableHead = withContext(DatePicker.TableHead, "tableHead");
|
|
67
|
+
const TableHeader = withContext(DatePicker.TableHeader, "tableHeader");
|
|
68
|
+
const TableRow = withContext(DatePicker.TableRow, "tableRow");
|
|
69
|
+
const Trigger = withContext(DatePicker.Trigger, "trigger");
|
|
70
|
+
const View = withContext(DatePicker.View, "view");
|
|
71
|
+
const ViewControl = withContext(DatePicker.ViewControl, "viewControl");
|
|
72
|
+
const ViewTrigger = withContext(DatePicker.ViewTrigger, "viewTrigger", { defaultProps: {
|
|
73
|
+
asChild: true,
|
|
74
|
+
children: <Button variant="plain" size="sm">
|
|
75
|
+
<RangeText />
|
|
76
|
+
</Button>
|
|
77
|
+
} });
|
|
78
|
+
const YearSelect = withContext(DatePicker.YearSelect, "yearSelect");
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
export { date_picker_exports as DatePicker };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { ZodType, z } from "zod";
|
|
2
|
+
import * as react from "react";
|
|
3
|
+
import { ComponentProps, ElementType, ReactNode } from "react";
|
|
4
|
+
import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
|
|
5
|
+
import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
|
|
6
|
+
import { DefaultValues, FieldValues } from "react-hook-form";
|
|
7
|
+
import { Dialog, DialogContext as Context } from "@ark-ui/react/dialog";
|
|
8
|
+
import * as _ark_ui_react0 from "@ark-ui/react";
|
|
9
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
10
|
+
|
|
11
|
+
//#region src/components/dialog/create-overlay.d.ts
|
|
12
|
+
interface CreateOverlayProps {
|
|
13
|
+
/** Whether the overlay is currently open */
|
|
14
|
+
open?: boolean;
|
|
15
|
+
/** Callback fired when the overlay's open state changes */
|
|
16
|
+
onOpenChange?: (e: {
|
|
17
|
+
open: boolean;
|
|
18
|
+
}) => void;
|
|
19
|
+
/** Callback fired when the overlay's exit animation completes */
|
|
20
|
+
onExitComplete?: () => void;
|
|
21
|
+
/** Internal callback used to set the return value when the overlay closes */
|
|
22
|
+
setReturnValue?: ((value: unknown) => void) | undefined;
|
|
23
|
+
/** Internal callback used to signal when the exit animation is complete */
|
|
24
|
+
setExitComplete?: (() => void) | undefined;
|
|
25
|
+
}
|
|
26
|
+
interface CreateOverlayReturn<T extends CreateOverlayProps, R = unknown> {
|
|
27
|
+
/** The root component for the overlay */
|
|
28
|
+
Viewport: ElementType;
|
|
29
|
+
/** Opens a new overlay with the given id and props */
|
|
30
|
+
open: (id: string, props: T) => Promise<R>;
|
|
31
|
+
/** Closes the overlay with the given id and returns the value */
|
|
32
|
+
close: (id: string, value?: R) => Promise<void>;
|
|
33
|
+
/** Updates the props of the overlay with the given id */
|
|
34
|
+
update: (id: string, props: T) => void;
|
|
35
|
+
/** Removes the overlay with the given id */
|
|
36
|
+
remove: (id: string) => void;
|
|
37
|
+
/** Removes all overlays */
|
|
38
|
+
removeAll: () => void;
|
|
39
|
+
/** Gets the props of the overlay with the given id */
|
|
40
|
+
get: (id: string) => T | undefined;
|
|
41
|
+
/** Gets the current snapshot of the overlays */
|
|
42
|
+
getSnapshot: () => Array<T & {
|
|
43
|
+
_id: string;
|
|
44
|
+
}>;
|
|
45
|
+
/** Waits for the exit animation to complete for the overlay with the given id */
|
|
46
|
+
waitForExit: (id: string) => Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
declare namespace dialog_d_exports {
|
|
49
|
+
export { ActionTrigger, Backdrop, Body, CloseTrigger, Content, Context, Description, Footer, Header, Positioner, Root, RootProps, RootProvider, Title, Trigger };
|
|
50
|
+
}
|
|
51
|
+
type RootProps = ComponentProps<typeof Root>;
|
|
52
|
+
declare const Root: _pyck_styled_system_jsx0.StyleContextRootProvider<(props: Dialog.RootProps) => react_jsx_runtime0.JSX.Element, _pyck_styled_system_recipes0.DialogRecipe>;
|
|
53
|
+
declare const RootProvider: _pyck_styled_system_jsx0.StyleContextRootProvider<(props: Dialog.RootProviderProps) => react_jsx_runtime0.JSX.Element, _pyck_styled_system_recipes0.DialogRecipe>;
|
|
54
|
+
declare const Backdrop: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Dialog.BackdropProps & react.RefAttributes<HTMLDivElement>>>;
|
|
55
|
+
declare const CloseTrigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>>;
|
|
56
|
+
declare const Content: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Dialog.ContentProps & react.RefAttributes<HTMLDivElement>>>;
|
|
57
|
+
declare const Description: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Dialog.DescriptionProps & react.RefAttributes<HTMLDivElement>>>;
|
|
58
|
+
declare const Positioner: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Dialog.PositionerProps & react.RefAttributes<HTMLDivElement>>>;
|
|
59
|
+
declare const Title: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Dialog.TitleProps & react.RefAttributes<HTMLHeadingElement>>>;
|
|
60
|
+
declare const Trigger: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<Dialog.TriggerProps & react.RefAttributes<HTMLButtonElement>>>;
|
|
61
|
+
declare const Body: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & _ark_ui_react0.PolymorphicProps>>;
|
|
62
|
+
declare const Header: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & _ark_ui_react0.PolymorphicProps>>;
|
|
63
|
+
declare const Footer: _pyck_styled_system_jsx0.StyleContextConsumer<react.ForwardRefExoticComponent<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & _ark_ui_react0.PolymorphicProps>>;
|
|
64
|
+
declare const ActionTrigger: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & _ark_ui_react0.PolymorphicProps & react.RefAttributes<HTMLButtonElement>>;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/dialog/confirm-dialog.d.ts
|
|
67
|
+
interface ConfirmDialogProps extends RootProps {
|
|
68
|
+
title?: ReactNode;
|
|
69
|
+
description?: ReactNode;
|
|
70
|
+
onConfirm: () => void;
|
|
71
|
+
/**
|
|
72
|
+
* @default 'default'
|
|
73
|
+
*/
|
|
74
|
+
intent?: 'default' | 'destructive';
|
|
75
|
+
}
|
|
76
|
+
declare const ConfirmDialog: CreateOverlayReturn<ConfirmDialogProps, unknown>;
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/components/dialog/form-dialog.d.ts
|
|
79
|
+
type FormSchema = ZodType<FieldValues, FieldValues>;
|
|
80
|
+
interface Props<T extends FormSchema = FormSchema> extends RootProps {
|
|
81
|
+
content: ReactNode;
|
|
82
|
+
defaultValues?: DefaultValues<z.infer<T>>;
|
|
83
|
+
description: ReactNode;
|
|
84
|
+
icon?: ReactNode;
|
|
85
|
+
onSubmit: (data: z.infer<T>) => void;
|
|
86
|
+
schema: T;
|
|
87
|
+
submitLabel?: string;
|
|
88
|
+
title: ReactNode;
|
|
89
|
+
}
|
|
90
|
+
declare const FormDialog: {
|
|
91
|
+
open: <T extends FormSchema>(id: string, props: Props<T>) => Promise<z.infer<T> | undefined>;
|
|
92
|
+
Viewport: react.ElementType;
|
|
93
|
+
close: (id: string, value?: unknown) => Promise<void>;
|
|
94
|
+
update: (id: string, props: Props<FormSchema>) => void;
|
|
95
|
+
remove: (id: string) => void;
|
|
96
|
+
removeAll: () => void;
|
|
97
|
+
get: (id: string) => Props<FormSchema> | undefined;
|
|
98
|
+
getSnapshot: () => (Props<FormSchema> & {
|
|
99
|
+
_id: string;
|
|
100
|
+
})[];
|
|
101
|
+
waitForExit: (id: string) => Promise<void>;
|
|
102
|
+
};
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/components/dialog/overlay-manager.d.ts
|
|
105
|
+
declare const OverlayManager: () => react_jsx_runtime0.JSX.Element;
|
|
106
|
+
//#endregion
|
|
107
|
+
export { ConfirmDialog, dialog_d_exports as Dialog, FormDialog, OverlayManager };
|