@code0-tech/pictor 0.8.0 → 0.9.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.
Files changed (31) hide show
  1. package/dist/assets/components/progress/Progress.style.css +1 -0
  2. package/dist/components/breadcrumb/Breadcrumb.js +7 -7
  3. package/dist/components/button/Button.js +11 -11
  4. package/dist/components/data-table/DataTable.js +15 -15
  5. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +15 -15
  6. package/dist/components/editor/Editor.js +13 -13
  7. package/dist/components/form/CheckboxInput.js +4 -4
  8. package/dist/components/form/EmailInput.js +9 -9
  9. package/dist/components/form/InputContentEditable.hook.js +11 -11
  10. package/dist/components/form/InputWrapper.js +15 -15
  11. package/dist/components/form/NumberInput.js +9 -9
  12. package/dist/components/form/PasswordInput.js +4 -4
  13. package/dist/components/form/SwitchInput.js +7 -7
  14. package/dist/components/form/TextAreaInput.js +6 -6
  15. package/dist/components/form/TextInput.js +6 -6
  16. package/dist/components/form/useForm.js +2 -2
  17. package/dist/components/fullscreen/FullScreen.js +2 -2
  18. package/dist/components/gantt/GanttGroup.js +17 -17
  19. package/dist/components/progress/Progress.d.ts +8 -0
  20. package/dist/components/progress/Progress.js +42 -0
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.js +67 -65
  23. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +25 -0
  24. package/dist/node_modules/@radix-ui/react-progress/dist/index.js +81 -0
  25. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.js +55 -0
  26. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  27. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-slot/dist/index.js +58 -0
  28. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  29. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  30. package/dist/utils/reactiveArrayService.js +4 -4
  31. package/package.json +10 -7
@@ -7,8 +7,8 @@ import { withAlpha as Q, hashToColor as U } from "../../utils/color.js";
7
7
  import { GanttFooter as st } from "./GanttFooter.js";
8
8
  import { GanttItem as at } from "./GanttItem.js";
9
9
  import { GanttHeader as lt } from "./GanttHeader.js";
10
- const _ = (e, t, n, R, l, S) => {
11
- const C = Math.max(0, e - n), H = Math.min(l, t - n), V = C / l * S, f = (H - C) / l * S;
10
+ const I = (e, t, n, R, l, S) => {
11
+ const _ = Math.max(0, e - n), H = Math.min(l, t - n), V = _ / l * S, f = (H - _) / l * S;
12
12
  return {
13
13
  left: V,
14
14
  width: f
@@ -19,11 +19,11 @@ const _ = (e, t, n, R, l, S) => {
19
19
  stepWidth: R,
20
20
  rowHeight: l,
21
21
  step: S,
22
- start: C,
22
+ start: _,
23
23
  end: H,
24
24
  hideScaling: V,
25
25
  children: f
26
- } = e, u = R === void 0 ? "50px" : R, E = l === void 0 ? "50px" : l, r = S === void 0 ? 1 : S, i = C === void 0 ? 1 : C, o = H === void 0 ? 999999999 : H, s = V === void 0 ? !1 : V, K = J.useRef(null), [X, Y] = J.useState(0), g = parseInt(u), a = o - i, O = Math.ceil(a / r), d = O * g, F = n?.filter(dt) ?? [], G = F.length === 0 ? r : F.reduce(ct, 0) / F.length;
26
+ } = e, u = R === void 0 ? "50px" : R, C = l === void 0 ? "50px" : l, r = S === void 0 ? 1 : S, i = _ === void 0 ? 1 : _, o = H === void 0 ? 999999999 : H, s = V === void 0 ? !1 : V, K = J.useRef(null), [X, Y] = J.useState(0), g = parseInt(u), a = o - i, O = Math.ceil(a / r), d = O * g, F = n?.filter(dt) ?? [], E = F.length === 0 ? r : F.reduce(ct, 0) / F.length;
27
27
  let k;
28
28
  t[0] !== n || t[1] !== i ? (k = n && n.length > 0 ? Math.min(...n.map(pt)) : i, t[0] = n, t[1] = i, t[2] = k) : k = t[2];
29
29
  const h = k;
@@ -32,14 +32,14 @@ const _ = (e, t, n, R, l, S) => {
32
32
  const c = z, Z = n && n.length > 0 ? Math.ceil((c - i) / r) : O, tt = Math.ceil(X / g), p = Math.max(tt, Z + 2);
33
33
  let L, N;
34
34
  t[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = () => {
35
- const I = () => {
35
+ const G = () => {
36
36
  Y(K.current?.offsetWidth ?? 0);
37
37
  };
38
- return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
38
+ return G(), window.addEventListener("resize", G), () => window.removeEventListener("resize", G);
39
39
  }, N = [], t[6] = L, t[7] = N) : (L = t[6], N = t[7]), J.useEffect(L, N);
40
40
  let w, x, v, $, m, b;
41
- if (t[8] !== G || t[9] !== f || t[10] !== p || t[11] !== o || t[12] !== s || t[13] !== c || t[14] !== h || t[15] !== n || t[16] !== e.id || t[17] !== E || t[18] !== i || t[19] !== r || t[20] !== u || t[21] !== g || t[22] !== a || t[23] !== d) {
42
- const I = n?.length ? n.sort(mt).reduce(ft, []) : [], D = `repeat(${p}, ${u})`;
41
+ if (t[8] !== E || t[9] !== f || t[10] !== p || t[11] !== o || t[12] !== s || t[13] !== c || t[14] !== h || t[15] !== n || t[16] !== e.id || t[17] !== C || t[18] !== i || t[19] !== r || t[20] !== u || t[21] !== g || t[22] !== a || t[23] !== d) {
42
+ const G = n?.length ? n.sort(mt).reduce(ft, []) : [], D = `repeat(${p}, ${u})`;
43
43
  let T;
44
44
  t[30] !== D ? (T = {
45
45
  display: "grid",
@@ -48,11 +48,11 @@ const _ = (e, t, n, R, l, S) => {
48
48
  minHeight: "100%"
49
49
  }, t[30] = D, t[31] = T) : T = t[31];
50
50
  const et = T;
51
- w = e.id, x = e.id, v = K, $ = et, t[32] !== G || t[33] !== p || t[34] !== s || t[35] !== i || t[36] !== r || t[37] !== u ? (m = !s && /* @__PURE__ */ W(lt, { columnCount: p, start: i, step: r, avgDuration: G, stepWidth: u }), t[32] = G, t[33] = p, t[34] = s, t[35] = i, t[36] = r, t[37] = u, t[38] = m) : m = t[38];
51
+ w = e.id, x = e.id, v = K, $ = et, t[32] !== E || t[33] !== p || t[34] !== s || t[35] !== i || t[36] !== r || t[37] !== u ? (m = !s && /* @__PURE__ */ W(lt, { columnCount: p, start: i, step: r, avgDuration: E, stepWidth: u }), t[32] = E, t[33] = p, t[34] = s, t[35] = i, t[36] = r, t[37] = u, t[38] = m) : m = t[38];
52
52
  let j;
53
- t[39] !== f || t[40] !== p || t[41] !== o || t[42] !== s || t[43] !== c || t[44] !== h || t[45] !== e.id || t[46] !== E || t[47] !== i || t[48] !== r || t[49] !== g || t[50] !== a || t[51] !== d ? (j = (nt, it) => /* @__PURE__ */ B("div", { style: {
53
+ t[39] !== f || t[40] !== p || t[41] !== o || t[42] !== s || t[43] !== c || t[44] !== h || t[45] !== e.id || t[46] !== C || t[47] !== i || t[48] !== r || t[49] !== g || t[50] !== a || t[51] !== d ? (j = (nt, it) => /* @__PURE__ */ B("div", { style: {
54
54
  gridColumn: "1 / -1",
55
- height: E,
55
+ height: C,
56
56
  position: "relative",
57
57
  backgroundColor: "transparent"
58
58
  }, children: [
@@ -77,8 +77,8 @@ const _ = (e, t, n, R, l, S) => {
77
77
  ${Q(U(e.id.replace("target", "source")), 0.5)} 4px
78
78
  )
79
79
  `,
80
- left: `${_(h, h + r, i, o, a, d).left}px`,
81
- width: `${_(h, h + r, i, o, a, d).width}px`
80
+ left: `${I(h, h + r, i, o, a, d).left}px`,
81
+ width: `${I(h, h + r, i, o, a, d).width}px`
82
82
  } }),
83
83
  /* @__PURE__ */ W("div", { className: "gantt__group-wrapper", style: {
84
84
  backgroundImage: `
@@ -90,15 +90,15 @@ const _ = (e, t, n, R, l, S) => {
90
90
  ${Q(U(e.id.replace("target", "source")), 0.5)} 4px
91
91
  )
92
92
  `,
93
- left: `${_(c - r, c, i, o, a, d).left}px`,
94
- width: `${_(c - r, c, i, o, a, d).width}px`
93
+ left: `${I(c - r, c, i, o, a, d).left}px`,
94
+ width: `${I(c - r, c, i, o, a, d).width}px`
95
95
  } })
96
96
  ] }),
97
97
  nt.map((M, A) => {
98
- const q = _(M.start, M.end, i, o, a, d);
98
+ const q = I(M.start, M.end, i, o, a, d);
99
99
  return q.width > 0 && /* @__PURE__ */ W(at, { id: M.id, w: `${q.width}px`, left: `${q.left}px`, children: f?.(M, A) }, M.id);
100
100
  })
101
- ] }, `row-${it}`), t[39] = f, t[40] = p, t[41] = o, t[42] = s, t[43] = c, t[44] = h, t[45] = e.id, t[46] = E, t[47] = i, t[48] = r, t[49] = g, t[50] = a, t[51] = d, t[52] = j) : j = t[52], b = I.map(j), t[8] = G, t[9] = f, t[10] = p, t[11] = o, t[12] = s, t[13] = c, t[14] = h, t[15] = n, t[16] = e.id, t[17] = E, t[18] = i, t[19] = r, t[20] = u, t[21] = g, t[22] = a, t[23] = d, t[24] = w, t[25] = x, t[26] = v, t[27] = $, t[28] = m, t[29] = b;
101
+ ] }, `row-${it}`), t[39] = f, t[40] = p, t[41] = o, t[42] = s, t[43] = c, t[44] = h, t[45] = e.id, t[46] = C, t[47] = i, t[48] = r, t[49] = g, t[50] = a, t[51] = d, t[52] = j) : j = t[52], b = G.map(j), t[8] = E, t[9] = f, t[10] = p, t[11] = o, t[12] = s, t[13] = c, t[14] = h, t[15] = n, t[16] = e.id, t[17] = C, t[18] = i, t[19] = r, t[20] = u, t[21] = g, t[22] = a, t[23] = d, t[24] = w, t[25] = x, t[26] = v, t[27] = $, t[28] = m, t[29] = b;
102
102
  } else
103
103
  w = t[24], x = t[25], v = t[26], $ = t[27], m = t[28], b = t[29];
104
104
  let y;
@@ -0,0 +1,8 @@
1
+ import { ComponentProps } from '../../utils';
2
+ import { default as React, CSSProperties } from 'react';
3
+ import * as Radix from "@radix-ui/react-progress";
4
+ export type ProgressProps = ComponentProps & Radix.ProgressProps & {
5
+ color?: CSSProperties['background'];
6
+ predictionValue?: number | null;
7
+ };
8
+ export declare const Progress: React.FC<ProgressProps>;
@@ -0,0 +1,42 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import "../../utils/contextStore.js";
3
+ import "react";
4
+ import { mergeComponentProps as l } from "../../utils/component.js";
5
+ import "js-md5";
6
+ import { Progress as d, ProgressIndicator as n } from "../../node_modules/@radix-ui/react-progress/dist/index.js";
7
+ import '../../assets/components/progress/Progress.style.css';/* empty css */
8
+ const y = (r) => {
9
+ const {
10
+ color: a = "white",
11
+ predictionValue: g,
12
+ ...o
13
+ } = r, t = Math.min(r.value ?? 0, r.max ?? 100) / (r.max ?? 100) * 100, m = `translateX(-${100 - t}%)`, s = Math.min(r.predictionValue ?? 0, r.max ?? 100) / (r.max ?? 100) * 100, c = `translateX(-${100 - s}%)`;
14
+ return /* @__PURE__ */ i(d, { ...l("progress", {
15
+ ...o,
16
+ style: {
17
+ ...o.style,
18
+ "--progress": t,
19
+ "--progressPrediction": s,
20
+ "--color": a
21
+ }
22
+ }), children: [
23
+ /* @__PURE__ */ e("div", { className: "progress__dot" }),
24
+ /* @__PURE__ */ i("div", { style: {
25
+ width: "100%",
26
+ height: "100%",
27
+ overflow: "hidden",
28
+ borderRadius: "inherit",
29
+ position: "relative"
30
+ }, children: [
31
+ /* @__PURE__ */ e(n, { className: "progress__indicator", style: {
32
+ transform: m
33
+ } }),
34
+ typeof r.predictionValue == "number" && /* @__PURE__ */ e(n, { className: "progress__indicator progress__indicator--prediction", style: {
35
+ transform: c
36
+ } })
37
+ ] })
38
+ ] });
39
+ };
40
+ export {
41
+ y as Progress
42
+ };
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from './components/fullscreen/FullScreen';
21
21
  export * from './components/gantt/Gantt';
22
22
  export * from './components/layout/Layout';
23
23
  export * from './components/menu/Menu';
24
+ export * from './components/progress/Progress';
24
25
  export * from './components/quote/Quote';
25
26
  export * from './components/resizable/Resizable';
26
27
  export * from './components/row/Row';
package/dist/index.js CHANGED
@@ -4,10 +4,10 @@ import { Avatar as a } from "./components/avatar/Avatar.js";
4
4
  import { Badge as u } from "./components/badge/Badge.js";
5
5
  import { Breadcrumb as i } from "./components/breadcrumb/Breadcrumb.js";
6
6
  import { Button as f } from "./components/button/Button.js";
7
- import { ButtonGroup as g } from "./components/button-group/ButtonGroup.js";
7
+ import { ButtonGroup as I } from "./components/button-group/ButtonGroup.js";
8
8
  import { Card as S } from "./components/card/Card.js";
9
9
  import { Col as d } from "./components/col/Col.js";
10
- import { Command as b, CommandDialog as c, CommandEmpty as M, CommandGroup as F, CommandInput as D, CommandItem as A, CommandList as P, CommandSeparator as v, CommandShortcut as w } from "./components/command/Command.js";
10
+ import { Command as b, CommandDialog as c, CommandEmpty as M, CommandGroup as F, CommandInput as D, CommandItem as P, CommandList as A, CommandSeparator as v, CommandShortcut as w } from "./components/command/Command.js";
11
11
  import { Container as R } from "./components/container/Container.js";
12
12
  import { ContextMenu as L, ContextMenuArrow as y, ContextMenuContent as z, ContextMenuGroup as V, ContextMenuItem as B, ContextMenuLabel as E, ContextMenuPortal as H, ContextMenuSeparator as k, ContextMenuSub as N, ContextMenuSubContent as O, ContextMenuSubTrigger as Q, ContextMenuTrigger as Z } from "./components/context-menu/ContextMenu.js";
13
13
  import { DataTable as q } from "./components/data-table/DataTable.js";
@@ -16,12 +16,12 @@ import { DataTableFilterInput as W, createFilterQueryLanguage as X } from "./com
16
16
  import { DataTableFilterSuggestionMenu as _ } from "./components/data-table/DataTableFilterSuggestionMenu.js";
17
17
  import { Dialog as ee, DialogClose as oe, DialogContent as te, DialogDescription as re, DialogFooter as ne, DialogHeader as pe, DialogOverlay as ae, DialogPortal as me, DialogTitle as ue, DialogTrigger as le } from "./components/dialog/Dialog.js";
18
18
  import { Editor as xe } from "./components/editor/Editor.js";
19
- import { FileTabsService as Ie } from "./components/file-tabs/FileTabs.service.js";
19
+ import { FileTabsService as ge } from "./components/file-tabs/FileTabs.service.js";
20
20
  import { FileTabs as Ce, FileTabsContent as Se, FileTabsList as Te, FileTabsTrigger as de } from "./components/file-tabs/FileTabs.js";
21
21
  import { Flex as be } from "./components/flex/Flex.js";
22
22
  import { CheckboxInput as Me } from "./components/form/CheckboxInput.js";
23
23
  import { EditorInput as De } from "./components/form/EditorInput.js";
24
- import { EmailInput as Pe, emailValidation as ve } from "./components/form/EmailInput.js";
24
+ import { EmailInput as Ae, emailValidation as ve } from "./components/form/EmailInput.js";
25
25
  import { FileInput as he, FileInputContext as Re, FileInputDropzone as Ge, FileInputHiddenInput as Le, FileInputItem as ye, FileInputItemDeleteTrigger as ze, FileInputItemGroup as Ve, FileInputItemName as Be, FileInputItemPreview as Ee, FileInputItemPreviewImage as He, FileInputItemSizeText as ke, FileInputTrigger as Ne } from "./components/form/FileInput.js";
26
26
  import { Input as Qe } from "./components/form/Input.js";
27
27
  import { InputDescription as je } from "./components/form/InputDescription.js";
@@ -33,31 +33,32 @@ import { PasswordInput as oo, passwordValidation as to } from "./components/form
33
33
  import { PinInput as no, PinInputField as po, PinInputHiddenField as ao } from "./components/form/PinInput.js";
34
34
  import { RadioGroup as uo } from "./components/form/RadioGroup.js";
35
35
  import { RadioInput as io } from "./components/form/RadioInput.js";
36
- import { SelectContent as fo, SelectInput as Io, SelectItem as go, SelectItemText as Co, SelectPortal as So, SelectTrigger as To, SelectValue as so, SelectViewport as bo } from "./components/form/SelectInput.js";
36
+ import { SelectContent as fo, SelectInput as go, SelectItem as Io, SelectItemText as Co, SelectPortal as So, SelectTrigger as To, SelectValue as so, SelectViewport as bo } from "./components/form/SelectInput.js";
37
37
  import { SwitchInput as Mo } from "./components/form/SwitchInput.js";
38
38
  import { TextAreaInput as Do } from "./components/form/TextAreaInput.js";
39
- import { TextInput as Po } from "./components/form/TextInput.js";
39
+ import { TextInput as Ao } from "./components/form/TextInput.js";
40
40
  import { useForm as wo } from "./components/form/useForm.js";
41
41
  import { buildDefaultSyntax as Ro } from "./components/form/Input.syntax.hook.js";
42
42
  import { FullScreen as Lo } from "./components/fullscreen/FullScreen.js";
43
43
  import { Gantt as zo, getRelativeValue as Vo } from "./components/gantt/Gantt.js";
44
44
  import { Layout as Eo } from "./components/layout/Layout.js";
45
45
  import { Menu as ko, MenuArrow as No, MenuCheckboxItem as Oo, MenuContent as Qo, MenuGroup as Zo, MenuItem as jo, MenuItemIndicator as qo, MenuLabel as Jo, MenuPortal as Ko, MenuSeparator as Uo, MenuSub as Wo, MenuSubContent as Xo, MenuSubTrigger as Yo, MenuTrigger as _o } from "./components/menu/Menu.js";
46
- import { Quote as et } from "./components/quote/Quote.js";
47
- import { ResizableHandle as tt, ResizablePanel as rt, ResizablePanelGroup as nt } from "./components/resizable/Resizable.js";
48
- import { Row as at } from "./components/row/Row.js";
49
- import { ScrollArea as ut, ScrollAreaCorner as lt, ScrollAreaScrollbar as it, ScrollAreaThumb as xt, ScrollAreaViewport as ft } from "./components/scroll-area/ScrollArea.js";
50
- import { SegmentedControl as gt, SegmentedControlItem as Ct } from "./components/segmented-control/SegmentedControl.js";
51
- import { Spacing as Tt } from "./components/spacing/Spacing.js";
52
- import { Tab as st, TabContent as bt, TabList as ct, TabTrigger as Mt } from "./components/tab/Tab.js";
53
- import { Text as Dt } from "./components/text/Text.js";
54
- import { Toast as Pt, toast as vt } from "./components/toast/Toast.js";
55
- import { Tooltip as ht, TooltipArrow as Rt, TooltipContent as Gt, TooltipPortal as Lt, TooltipTrigger as yt } from "./components/tooltip/Tooltip.js";
56
- import { ContextStore as Vt, ContextStoreProvider as Bt, useService as Et, useStore as Ht } from "./utils/contextStore.js";
57
- import { ReactiveArrayService as Nt, useReactiveArrayService as Ot } from "./utils/reactiveArrayService.js";
58
- import { mergeComponentProps as Zt } from "./utils/component.js";
59
- import { Colors as qt, hashToColor as Jt, withAlpha as Kt } from "./utils/color.js";
60
- import { getDOMSizeFromCodeZeroSize as Wt } from "./utils/size.js";
46
+ import { Progress as et } from "./components/progress/Progress.js";
47
+ import { Quote as tt } from "./components/quote/Quote.js";
48
+ import { ResizableHandle as nt, ResizablePanel as pt, ResizablePanelGroup as at } from "./components/resizable/Resizable.js";
49
+ import { Row as ut } from "./components/row/Row.js";
50
+ import { ScrollArea as it, ScrollAreaCorner as xt, ScrollAreaScrollbar as ft, ScrollAreaThumb as gt, ScrollAreaViewport as It } from "./components/scroll-area/ScrollArea.js";
51
+ import { SegmentedControl as St, SegmentedControlItem as Tt } from "./components/segmented-control/SegmentedControl.js";
52
+ import { Spacing as st } from "./components/spacing/Spacing.js";
53
+ import { Tab as ct, TabContent as Mt, TabList as Ft, TabTrigger as Dt } from "./components/tab/Tab.js";
54
+ import { Text as At } from "./components/text/Text.js";
55
+ import { Toast as wt, toast as ht } from "./components/toast/Toast.js";
56
+ import { Tooltip as Gt, TooltipArrow as Lt, TooltipContent as yt, TooltipPortal as zt, TooltipTrigger as Vt } from "./components/tooltip/Tooltip.js";
57
+ import { ContextStore as Et, ContextStoreProvider as Ht, useService as kt, useStore as Nt } from "./utils/contextStore.js";
58
+ import { ReactiveArrayService as Qt, useReactiveArrayService as Zt } from "./utils/reactiveArrayService.js";
59
+ import { mergeComponentProps as qt } from "./utils/component.js";
60
+ import { Colors as Kt, hashToColor as Ut, withAlpha as Wt } from "./utils/color.js";
61
+ import { getDOMSizeFromCodeZeroSize as Yt } from "./utils/size.js";
61
62
  export {
62
63
  t as Alert,
63
64
  n as AuroraBackground,
@@ -65,18 +66,18 @@ export {
65
66
  u as Badge,
66
67
  i as Breadcrumb,
67
68
  f as Button,
68
- g as ButtonGroup,
69
+ I as ButtonGroup,
69
70
  S as Card,
70
71
  Me as CheckboxInput,
71
72
  d as Col,
72
- qt as Colors,
73
+ Kt as Colors,
73
74
  b as Command,
74
75
  c as CommandDialog,
75
76
  M as CommandEmpty,
76
77
  F as CommandGroup,
77
78
  D as CommandInput,
78
- A as CommandItem,
79
- P as CommandList,
79
+ P as CommandItem,
80
+ A as CommandList,
80
81
  v as CommandSeparator,
81
82
  w as CommandShortcut,
82
83
  R as Container,
@@ -92,8 +93,8 @@ export {
92
93
  O as ContextMenuSubContent,
93
94
  Q as ContextMenuSubTrigger,
94
95
  Z as ContextMenuTrigger,
95
- Vt as ContextStore,
96
- Bt as ContextStoreProvider,
96
+ Et as ContextStore,
97
+ Ht as ContextStoreProvider,
97
98
  q as DataTable,
98
99
  K as DataTableColumn,
99
100
  W as DataTableFilterInput,
@@ -110,7 +111,7 @@ export {
110
111
  le as DialogTrigger,
111
112
  xe as Editor,
112
113
  De as EditorInput,
113
- Pe as EmailInput,
114
+ Ae as EmailInput,
114
115
  he as FileInput,
115
116
  Re as FileInputContext,
116
117
  Ge as FileInputDropzone,
@@ -126,7 +127,7 @@ export {
126
127
  Ce as FileTabs,
127
128
  Se as FileTabsContent,
128
129
  Te as FileTabsList,
129
- Ie as FileTabsService,
130
+ ge as FileTabsService,
130
131
  de as FileTabsTrigger,
131
132
  be as Flex,
132
133
  Lo as FullScreen,
@@ -157,56 +158,57 @@ export {
157
158
  no as PinInput,
158
159
  po as PinInputField,
159
160
  ao as PinInputHiddenField,
160
- et as Quote,
161
+ et as Progress,
162
+ tt as Quote,
161
163
  uo as RadioGroup,
162
164
  io as RadioInput,
163
- Nt as ReactiveArrayService,
164
- tt as ResizableHandle,
165
- rt as ResizablePanel,
166
- nt as ResizablePanelGroup,
167
- at as Row,
168
- ut as ScrollArea,
169
- lt as ScrollAreaCorner,
170
- it as ScrollAreaScrollbar,
171
- xt as ScrollAreaThumb,
172
- ft as ScrollAreaViewport,
173
- gt as SegmentedControl,
174
- Ct as SegmentedControlItem,
165
+ Qt as ReactiveArrayService,
166
+ nt as ResizableHandle,
167
+ pt as ResizablePanel,
168
+ at as ResizablePanelGroup,
169
+ ut as Row,
170
+ it as ScrollArea,
171
+ xt as ScrollAreaCorner,
172
+ ft as ScrollAreaScrollbar,
173
+ gt as ScrollAreaThumb,
174
+ It as ScrollAreaViewport,
175
+ St as SegmentedControl,
176
+ Tt as SegmentedControlItem,
175
177
  fo as SelectContent,
176
- Io as SelectInput,
177
- go as SelectItem,
178
+ go as SelectInput,
179
+ Io as SelectItem,
178
180
  Co as SelectItemText,
179
181
  So as SelectPortal,
180
182
  To as SelectTrigger,
181
183
  so as SelectValue,
182
184
  bo as SelectViewport,
183
- Tt as Spacing,
185
+ st as Spacing,
184
186
  Mo as SwitchInput,
185
- st as Tab,
186
- bt as TabContent,
187
- ct as TabList,
188
- Mt as TabTrigger,
189
- Dt as Text,
187
+ ct as Tab,
188
+ Mt as TabContent,
189
+ Ft as TabList,
190
+ Dt as TabTrigger,
191
+ At as Text,
190
192
  Do as TextAreaInput,
191
- Po as TextInput,
192
- Pt as Toast,
193
- ht as Tooltip,
194
- Rt as TooltipArrow,
195
- Gt as TooltipContent,
196
- Lt as TooltipPortal,
197
- yt as TooltipTrigger,
193
+ Ao as TextInput,
194
+ wt as Toast,
195
+ Gt as Tooltip,
196
+ Lt as TooltipArrow,
197
+ yt as TooltipContent,
198
+ zt as TooltipPortal,
199
+ Vt as TooltipTrigger,
198
200
  Ro as buildDefaultSyntax,
199
201
  X as createFilterQueryLanguage,
200
202
  ve as emailValidation,
201
- Wt as getDOMSizeFromCodeZeroSize,
203
+ Yt as getDOMSizeFromCodeZeroSize,
202
204
  Vo as getRelativeValue,
203
- Jt as hashToColor,
204
- Zt as mergeComponentProps,
205
+ Ut as hashToColor,
206
+ qt as mergeComponentProps,
205
207
  to as passwordValidation,
206
- vt as toast,
208
+ ht as toast,
207
209
  wo as useForm,
208
- Ot as useReactiveArrayService,
209
- Et as useService,
210
- Ht as useStore,
211
- Kt as withAlpha
210
+ Zt as useReactiveArrayService,
211
+ kt as useService,
212
+ Nt as useStore,
213
+ Wt as withAlpha
212
214
  };
@@ -0,0 +1,25 @@
1
+ import "react";
2
+ function i(n, o) {
3
+ if (typeof n == "function")
4
+ return n(o);
5
+ n != null && (n.current = o);
6
+ }
7
+ function f(...n) {
8
+ return (o) => {
9
+ let u = !1;
10
+ const c = n.map((t) => {
11
+ const e = i(t, o);
12
+ return !u && typeof e == "function" && (u = !0), e;
13
+ });
14
+ if (u)
15
+ return () => {
16
+ for (let t = 0; t < c.length; t++) {
17
+ const e = c[t];
18
+ typeof e == "function" ? e() : i(n[t], null);
19
+ }
20
+ };
21
+ };
22
+ }
23
+ export {
24
+ f as composeRefs
25
+ };
@@ -0,0 +1,81 @@
1
+ import * as m from "react";
2
+ import { createContextScope as b } from "../node_modules/@radix-ui/react-context/dist/index.js";
3
+ import { Primitive as c } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
4
+ import { jsx as l } from "react/jsx-runtime";
5
+ var u = "Progress", d = 100, [$] = b(u), [I, h] = $(u), _ = m.forwardRef(
6
+ (r, e) => {
7
+ const {
8
+ __scopeProgress: i,
9
+ value: o = null,
10
+ max: a,
11
+ getValueLabel: x = M,
12
+ ...P
13
+ } = r;
14
+ (a || a === 0) && !v(a) && console.error(R(`${a}`, "Progress"));
15
+ const t = v(a) ? a : d;
16
+ o !== null && !p(o, t) && console.error(V(`${o}`, "Progress"));
17
+ const n = p(o, t) ? o : null, N = s(n) ? x(n, t) : void 0;
18
+ return /* @__PURE__ */ l(I, { scope: i, value: n, max: t, children: /* @__PURE__ */ l(
19
+ c.div,
20
+ {
21
+ "aria-valuemax": t,
22
+ "aria-valuemin": 0,
23
+ "aria-valuenow": s(n) ? n : void 0,
24
+ "aria-valuetext": N,
25
+ role: "progressbar",
26
+ "data-state": g(n, t),
27
+ "data-value": n ?? void 0,
28
+ "data-max": t,
29
+ ...P,
30
+ ref: e
31
+ }
32
+ ) });
33
+ }
34
+ );
35
+ _.displayName = u;
36
+ var f = "ProgressIndicator", E = m.forwardRef(
37
+ (r, e) => {
38
+ const { __scopeProgress: i, ...o } = r, a = h(f, i);
39
+ return /* @__PURE__ */ l(
40
+ c.div,
41
+ {
42
+ "data-state": g(a.value, a.max),
43
+ "data-value": a.value ?? void 0,
44
+ "data-max": a.max,
45
+ ...o,
46
+ ref: e
47
+ }
48
+ );
49
+ }
50
+ );
51
+ E.displayName = f;
52
+ function M(r, e) {
53
+ return `${Math.round(r / e * 100)}%`;
54
+ }
55
+ function g(r, e) {
56
+ return r == null ? "indeterminate" : r === e ? "complete" : "loading";
57
+ }
58
+ function s(r) {
59
+ return typeof r == "number";
60
+ }
61
+ function v(r) {
62
+ return s(r) && !isNaN(r) && r > 0;
63
+ }
64
+ function p(r, e) {
65
+ return s(r) && !isNaN(r) && r <= e && r >= 0;
66
+ }
67
+ function R(r, e) {
68
+ return `Invalid prop \`max\` of value \`${r}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${d}\`.`;
69
+ }
70
+ function V(r, e) {
71
+ return `Invalid prop \`value\` of value \`${r}\` supplied to \`${e}\`. The \`value\` prop must be:
72
+ - a positive number
73
+ - less than the value passed to \`max\` (or ${d} if no \`max\` prop is set)
74
+ - \`null\` or \`undefined\` if the progress is indeterminate.
75
+
76
+ Defaulting to \`null\`.`;
77
+ }
78
+ export {
79
+ _ as Progress,
80
+ E as ProgressIndicator
81
+ };
@@ -0,0 +1,55 @@
1
+ import * as u from "react";
2
+ import { jsx as v } from "react/jsx-runtime";
3
+ function P(e, p = []) {
4
+ let n = [];
5
+ function m(c, t) {
6
+ const o = u.createContext(t);
7
+ o.displayName = c + "Context";
8
+ const r = n.length;
9
+ n = [...n, t];
10
+ const a = (i) => {
11
+ const { scope: d, children: f, ...x } = i, S = d?.[e]?.[r] || o, l = u.useMemo(() => x, Object.values(x));
12
+ return /* @__PURE__ */ v(S.Provider, { value: l, children: f });
13
+ };
14
+ a.displayName = c + "Provider";
15
+ function C(i, d) {
16
+ const f = d?.[e]?.[r] || o, x = u.useContext(f);
17
+ if (x) return x;
18
+ if (t !== void 0) return t;
19
+ throw new Error(`\`${i}\` must be used within \`${c}\``);
20
+ }
21
+ return [a, C];
22
+ }
23
+ const s = () => {
24
+ const c = n.map((t) => u.createContext(t));
25
+ return function(o) {
26
+ const r = o?.[e] || c;
27
+ return u.useMemo(
28
+ () => ({ [`__scope${e}`]: { ...o, [e]: r } }),
29
+ [o, r]
30
+ );
31
+ };
32
+ };
33
+ return s.scopeName = e, [m, _(s, ...p)];
34
+ }
35
+ function _(...e) {
36
+ const p = e[0];
37
+ if (e.length === 1) return p;
38
+ const n = () => {
39
+ const m = e.map((s) => ({
40
+ useScope: s(),
41
+ scopeName: s.scopeName
42
+ }));
43
+ return function(c) {
44
+ const t = m.reduce((o, { useScope: r, scopeName: a }) => {
45
+ const i = r(c)[`__scope${a}`];
46
+ return { ...o, ...i };
47
+ }, {});
48
+ return u.useMemo(() => ({ [`__scope${p.scopeName}`]: t }), [t]);
49
+ };
50
+ };
51
+ return n.scopeName = p.scopeName, n;
52
+ }
53
+ export {
54
+ P as createContextScope
55
+ };
@@ -0,0 +1,32 @@
1
+ import * as f from "react";
2
+ import "react-dom";
3
+ import { createSlot as l } from "../../react-slot/dist/index.js";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ var u = [
6
+ "a",
7
+ "button",
8
+ "div",
9
+ "form",
10
+ "h2",
11
+ "h3",
12
+ "img",
13
+ "input",
14
+ "label",
15
+ "li",
16
+ "nav",
17
+ "ol",
18
+ "p",
19
+ "select",
20
+ "span",
21
+ "svg",
22
+ "ul"
23
+ ], w = u.reduce((t, i) => {
24
+ const o = l(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
+ const { asChild: a, ...p } = e, s = a ? o : i;
26
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
27
+ });
28
+ return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
+ }, {});
30
+ export {
31
+ w as Primitive
32
+ };
@@ -0,0 +1,58 @@
1
+ import * as e from "react";
2
+ import { composeRefs as E } from "../../../../../react-compose-refs/dist/index.js";
3
+ import { jsx as y } from "react/jsx-runtime";
4
+ var g = /* @__PURE__ */ Symbol.for("react.lazy"), p = e[" use ".trim().toString()];
5
+ function C(r) {
6
+ return typeof r == "object" && r !== null && "then" in r;
7
+ }
8
+ function d(r) {
9
+ return r != null && typeof r == "object" && "$$typeof" in r && r.$$typeof === g && "_payload" in r && C(r._payload);
10
+ }
11
+ // @__NO_SIDE_EFFECTS__
12
+ function A(r) {
13
+ const n = /* @__PURE__ */ S(r), o = e.forwardRef((i, t) => {
14
+ let { children: l, ...a } = i;
15
+ d(l) && typeof p == "function" && (l = p(l._payload));
16
+ const s = e.Children.toArray(l), f = s.find(R);
17
+ if (f) {
18
+ const c = f.props.children, m = s.map((u) => u === f ? e.Children.count(c) > 1 ? e.Children.only(null) : e.isValidElement(c) ? c.props.children : null : u);
19
+ return /* @__PURE__ */ y(n, { ...a, ref: t, children: e.isValidElement(c) ? e.cloneElement(c, void 0, m) : null });
20
+ }
21
+ return /* @__PURE__ */ y(n, { ...a, ref: t, children: l });
22
+ });
23
+ return o.displayName = `${r}.Slot`, o;
24
+ }
25
+ // @__NO_SIDE_EFFECTS__
26
+ function S(r) {
27
+ const n = e.forwardRef((o, i) => {
28
+ let { children: t, ...l } = o;
29
+ if (d(t) && typeof p == "function" && (t = p(t._payload)), e.isValidElement(t)) {
30
+ const a = h(t), s = b(l, t.props);
31
+ return t.type !== e.Fragment && (s.ref = i ? E(i, a) : a), e.cloneElement(t, s);
32
+ }
33
+ return e.Children.count(t) > 1 ? e.Children.only(null) : null;
34
+ });
35
+ return n.displayName = `${r}.SlotClone`, n;
36
+ }
37
+ var _ = /* @__PURE__ */ Symbol("radix.slottable");
38
+ function R(r) {
39
+ return e.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === _;
40
+ }
41
+ function b(r, n) {
42
+ const o = { ...n };
43
+ for (const i in n) {
44
+ const t = r[i], l = n[i];
45
+ /^on[A-Z]/.test(i) ? t && l ? o[i] = (...s) => {
46
+ const f = l(...s);
47
+ return t(...s), f;
48
+ } : t && (o[i] = t) : i === "style" ? o[i] = { ...t, ...l } : i === "className" && (o[i] = [t, l].filter(Boolean).join(" "));
49
+ }
50
+ return { ...r, ...o };
51
+ }
52
+ function h(r) {
53
+ let n = Object.getOwnPropertyDescriptor(r.props, "ref")?.get, o = n && "isReactWarning" in n && n.isReactWarning;
54
+ return o ? r.ref : (n = Object.getOwnPropertyDescriptor(r, "ref")?.get, o = n && "isReactWarning" in n && n.isReactWarning, o ? r.props.ref : r.props.ref || r.ref);
55
+ }
56
+ export {
57
+ A as createSlot
58
+ };
@@ -1,7 +1,7 @@
1
1
  import { __exports as e } from "../../../_virtual/react-compiler-runtime.development.js";
2
2
  import a from "react";
3
3
  var n;
4
- function s() {
4
+ function l() {
5
5
  return n ? e : (n = 1, process.env.NODE_ENV !== "production" && (function() {
6
6
  var t = a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
7
7
  e.c = function(r) {
@@ -17,5 +17,5 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
17
17
  })(), e);
18
18
  }
19
19
  export {
20
- s as __require
20
+ l as __require
21
21
  };