@mechane-ai/elements 0.39.0 → 0.41.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 (110) hide show
  1. package/NOTICE +11 -19
  2. package/README.md +49 -25
  3. package/dist/accessibility-P89UG9-r.js +25 -0
  4. package/dist/agent.js +1 -0
  5. package/dist/ai.js +50 -44
  6. package/dist/{categorical-values-BECG-J6R.js → categorical-values-DnGR_pQx.js} +3 -3
  7. package/dist/{chart-frame-CJFnI39T.js → chart-frame-BsyI1Zc8.js} +58 -57
  8. package/dist/{chart-input-DwAobO8Y.js → chart-input-r4S3-QCT.js} +2 -2
  9. package/dist/chart-navigation-D7OkLdSx.js +119 -0
  10. package/dist/charts/cartesian.js +560 -583
  11. package/dist/charts/distribution.js +218 -218
  12. package/dist/charts/graph.js +86 -85
  13. package/dist/charts/hierarchy.js +4 -4
  14. package/dist/charts/matrix.js +148 -147
  15. package/dist/charts/timeline.js +77 -76
  16. package/dist/charts.js +2 -2
  17. package/dist/code-block-C4K1sM9O.js +255 -0
  18. package/dist/collections.js +828 -607
  19. package/dist/constants.stylex-BILvnwUk.js +84 -0
  20. package/dist/content/code.js +1 -1
  21. package/dist/content/diff.js +3 -3
  22. package/dist/content/link.js +1 -1
  23. package/dist/content/markdown.js +2 -2
  24. package/dist/content/tree.js +184 -77
  25. package/dist/{content-link-B3ObdyZY.js → content-link-CBDqSvgP.js} +1 -1
  26. package/dist/content.js +1 -1
  27. package/dist/control-styles-D3q_Qyxi.js +179 -0
  28. package/dist/csp.js +14 -1
  29. package/dist/feedback.js +1 -1
  30. package/dist/forms/dates.js +359 -245
  31. package/dist/forms-I-WMHTkr.js +139 -0
  32. package/dist/forms.js +3 -3
  33. package/dist/index.js +1 -1
  34. package/dist/layout.js +271 -241
  35. package/dist/navigation/commands.js +87 -76
  36. package/dist/{navigation-D2_sGy3C.js → navigation-CveMIuXI.js} +1 -1
  37. package/dist/navigation.js +2 -2
  38. package/dist/overlays.js +1 -1
  39. package/dist/packages/ai/src/message-action.d.ts +1 -1
  40. package/dist/packages/charts/src/chart-navigation.d.ts +18 -2
  41. package/dist/packages/charts/src/chart-surface.d.ts +23 -0
  42. package/dist/packages/charts/src/distribution/distribution-plot.d.ts +3 -2
  43. package/dist/packages/collections/src/data-table.d.ts +7 -2
  44. package/dist/packages/collections/src/index.d.ts +4 -1
  45. package/dist/packages/collections/src/query-controls.d.ts +18 -0
  46. package/dist/packages/collections/src/table-query.d.ts +64 -0
  47. package/dist/packages/collections/src/use-collection-controls.d.ts +3 -8
  48. package/dist/packages/content/src/pierre-theme.d.ts +0 -1
  49. package/dist/packages/core/src/actions.d.ts +15 -13
  50. package/dist/packages/core/src/copy-value.d.ts +3 -2
  51. package/dist/packages/core/src/disclosure.d.ts +14 -11
  52. package/dist/packages/feedback/src/notifications.d.ts +15 -15
  53. package/dist/packages/feedback/src/toast.d.ts +9 -3
  54. package/dist/packages/forms/src/combobox.d.ts +31 -41
  55. package/dist/packages/forms/src/dates/event-month.d.ts +17 -0
  56. package/dist/packages/forms/src/dates/index.d.ts +2 -0
  57. package/dist/packages/forms/src/field-styles.d.ts +0 -19
  58. package/dist/packages/forms/src/form-controls.d.ts +26 -24
  59. package/dist/packages/forms/src/forms.d.ts +17 -14
  60. package/dist/packages/forms/src/select-control.d.ts +6 -4
  61. package/dist/packages/forms/src/select.d.ts +14 -18
  62. package/dist/packages/forms/src/selection-state.d.ts +11 -0
  63. package/dist/packages/forms/src/selection-styles.d.ts +3 -0
  64. package/dist/packages/forms/src/selection.d.ts +21 -19
  65. package/dist/packages/foundations/src/agent/index.d.ts +2 -0
  66. package/dist/packages/foundations/src/control-state.d.ts +2 -3
  67. package/dist/packages/foundations/src/control-styles.d.ts +19 -0
  68. package/dist/packages/foundations/src/csp/index.d.ts +1 -1
  69. package/dist/packages/foundations/src/csp/provider.d.ts +3 -0
  70. package/dist/packages/foundations/src/style-composition.d.ts +4 -1
  71. package/dist/packages/layout/src/app-shell.d.ts +12 -1
  72. package/dist/packages/layout/src/index.d.ts +1 -1
  73. package/dist/packages/layout/src/navigation-rail.d.ts +15 -2
  74. package/dist/packages/layout/src/resizable.d.ts +2 -2
  75. package/dist/packages/layout/src/sidebar.d.ts +4 -3
  76. package/dist/packages/navigation/src/tab-styles.d.ts +1 -1
  77. package/dist/packages/navigation/src/tabs.d.ts +12 -10
  78. package/dist/packages/overlays/src/alert-dialog.d.ts +19 -13
  79. package/dist/packages/overlays/src/dialog.d.ts +39 -24
  80. package/dist/packages/overlays/src/drawer.d.ts +16 -26
  81. package/dist/packages/overlays/src/menu.d.ts +37 -44
  82. package/dist/packages/overlays/src/overlay-root.d.ts +10 -0
  83. package/dist/packages/overlays/src/popover.d.ts +11 -20
  84. package/dist/packages/overlays/src/preview.d.ts +6 -13
  85. package/dist/packages/overlays/src/tooltip.d.ts +12 -15
  86. package/dist/{pierre-diff-CaPsfQRo.js → pierre-diff-DJ3oOfPX.js} +5 -5
  87. package/dist/{src-DPRmO-JY.js → src-CNV1ewzb.js} +379 -407
  88. package/dist/{src-CSWIG_op.js → src-CQQvXi7a.js} +58 -81
  89. package/dist/{src-DWjAoOyd.js → src-D2OHco8V.js} +42 -41
  90. package/dist/src-DfOAlAd2.js +750 -0
  91. package/dist/src-na2DdkKI.js +561 -0
  92. package/dist/{src-C-Sx37kz.js → src-s3tWwnN4.js} +361 -518
  93. package/dist/styles.js +3 -0
  94. package/dist/{elements.css → styles2.css} +195 -97
  95. package/dist/tokens.js +3 -1
  96. package/dist/{tokens.stylex-CJbIDPB9.js → tokens.stylex-dF5CACEJ.js} +13 -93
  97. package/package.json +8 -9
  98. package/skills/elements-workspace/SKILL.md +12 -0
  99. package/dist/accessibility-C-aIZ1Yx.js +0 -15
  100. package/dist/chart-navigation-CBIeNtJq.js +0 -67
  101. package/dist/code-block-aC0Htt4N.js +0 -184
  102. package/dist/forms-BQQFas9g.js +0 -118
  103. package/dist/foundations.css +0 -7
  104. package/dist/packages/content/src/tree/pierre-tree.d.ts +0 -3
  105. package/dist/pierre-theme-BpNaWn1x.js +0 -126
  106. package/dist/pierre-tree-CYCRjdGG.js +0 -106
  107. package/dist/src-d7EAi61b.js +0 -617
  108. package/dist/src-nkgFDl-g.js +0 -1171
  109. package/dist/style-composition-uYlczSsB.js +0 -9
  110. package/styles.css +0 -2
@@ -0,0 +1,139 @@
1
+ import { a as e, n as t, r as n } from "./control-styles-D3q_Qyxi.js";
2
+ import { n as r } from "./accessibility-P89UG9-r.js";
3
+ import * as i from "@stylexjs/stylex";
4
+ import { jsx as a } from "react/jsx-runtime";
5
+ import { Field as o, FieldControl as s, FieldDescription as c, FieldError as l, FieldLabel as u } from "@ui-sdk/react/field";
6
+ import { Input as d } from "@ui-sdk/react/input";
7
+ import { Textarea as f } from "@ui-sdk/react/textarea";
8
+ // packages/forms/src/field-styles.ts
9
+ var p = {
10
+ error: {
11
+ kMwMTN: "xr5kp14",
12
+ kGuDYH: "xy8obcc",
13
+ kLWn49: "xas2l8k",
14
+ kHjlTd: "xj0a0fe",
15
+ $$css: !0
16
+ },
17
+ compactTextarea: {
18
+ kAzted: "xseoqlg",
19
+ kskxy: "x1y3glee",
20
+ $$css: !0
21
+ },
22
+ growingTextarea: {
23
+ kAzted: "x2lwn1j",
24
+ kskxy: "xp8lc2p",
25
+ kOwNse: "x5f5z56",
26
+ kHenm0: "xtt52l0",
27
+ $$css: !0
28
+ }
29
+ }, m = {
30
+ field: { field: { $$css: !0 } }.field,
31
+ plain: n.plainTextarea
32
+ };
33
+ // packages/forms/src/forms.tsx
34
+ function h({ className: e, style: t, xstyle: s, ...c }) {
35
+ return /* @__PURE__ */ a(o, {
36
+ ...c,
37
+ ...r({
38
+ className: e,
39
+ style: t,
40
+ styles: i.props(n.fieldRoot, s)
41
+ })
42
+ });
43
+ }
44
+ function g({ className: e, style: t, ...o }) {
45
+ return /* @__PURE__ */ a(u, {
46
+ ...o,
47
+ ...r({
48
+ className: e,
49
+ style: t,
50
+ styles: i.props(n.label)
51
+ })
52
+ });
53
+ }
54
+ function _({ className: e, style: t, ...o }) {
55
+ return /* @__PURE__ */ a(c, {
56
+ ...o,
57
+ ...r({
58
+ className: e,
59
+ style: t,
60
+ styles: i.props(n.description)
61
+ })
62
+ });
63
+ }
64
+ function v({ className: e, style: t, ...n }) {
65
+ return /* @__PURE__ */ a(l, {
66
+ ...n,
67
+ ...r({
68
+ className: e,
69
+ style: t,
70
+ styles: i.props(p.error)
71
+ })
72
+ });
73
+ }
74
+ var y = {
75
+ Root: h,
76
+ Label: g,
77
+ Description: _,
78
+ Error: v
79
+ };
80
+ function b(e) {
81
+ return /* @__PURE__ */ a(S, { ...e });
82
+ }
83
+ function x(e) {
84
+ return /(?:^|\s)(?:current-password|new-password|one-time-code|cc-[a-z-]+)(?:\s|$)/i.test(e ?? "");
85
+ }
86
+ function S({ density: o = "standard", isEmbedded: c = !1, isSensitive: l = !1, className: u, style: f, xstyle: p, value: m, defaultValue: h, onValueChange: g, onChange: _, ...v }) {
87
+ let y = r({
88
+ className: u,
89
+ style: f,
90
+ styles: i.props(n.base, n.field, n.singleLineField, n.textFieldState, t[o], e[o], c && n.embedded, p)
91
+ });
92
+ return l || v.type?.toLowerCase() === "password" || x(v.autoComplete) ? /* @__PURE__ */ a(s, {
93
+ ...v,
94
+ ...y,
95
+ "data-agent-hidden": "",
96
+ value: m,
97
+ defaultValue: h,
98
+ onChange: (e) => {
99
+ _?.(e), e.defaultPrevented || g?.(e.currentTarget.value);
100
+ }
101
+ }) : /* @__PURE__ */ a(d, {
102
+ ...v,
103
+ ...y,
104
+ ...m !== void 0 && { value: String(m) },
105
+ ...h !== void 0 && { defaultValue: String(h) },
106
+ ..._ !== void 0 && { onChange: _ },
107
+ ...g !== void 0 && { onValueChange: g }
108
+ });
109
+ }
110
+ function C({ isCompact: e = !1, shouldGrow: t = !1, appearance: o = "field", isSensitive: c = !1, className: l, style: u, xstyle: d, value: h, defaultValue: g, onValueChange: _, onChange: v, ...y }) {
111
+ let b = r({
112
+ className: l,
113
+ style: u,
114
+ styles: i.props(n.base, n.field, n.textFieldState, n.textarea, e && p.compactTextarea, t && p.growingTextarea, m[o], d)
115
+ });
116
+ return c || x(y.autoComplete) ? /* @__PURE__ */ a(s, {
117
+ ...y.id !== void 0 && { id: y.id },
118
+ ...y.name !== void 0 && { name: y.name },
119
+ render: /* @__PURE__ */ a("textarea", {
120
+ ...y,
121
+ "data-agent-hidden": "",
122
+ className: b.className({}),
123
+ style: b.style({}),
124
+ value: h,
125
+ defaultValue: g,
126
+ onChange: (e) => {
127
+ v?.(e), e.defaultPrevented || _?.(e.currentTarget.value);
128
+ }
129
+ })
130
+ }) : /* @__PURE__ */ a(f, {
131
+ ...y,
132
+ ...b,
133
+ ...h !== void 0 && { value: String(h) },
134
+ ...g !== void 0 && { defaultValue: String(g) },
135
+ ...v !== void 0 && { onChange: v },
136
+ ..._ !== void 0 && { onValueChange: _ }
137
+ });
138
+ }
139
+ export { C as i, b as n, S as r, y as t };
package/dist/forms.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as e, r as t, t as n } from "./forms-BQQFas9g.js";
2
- import { a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v } from "./src-DPRmO-JY.js";
3
- export { c as AgentAvatarPicker, h as Checkbox, s as Combobox, n as Field, v as Fieldset, a as FilePicker, u as FormActions, e as Input, o as InputGroup, m as NumberField, l as RadioGroup, i as Select, g as SelectControl, f as SettingsRow, _ as SettingsSection, d as Slider, r as Switch, t as Textarea, p as ToggleGroup };
1
+ import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./src-CNV1ewzb.js";
2
+ import { i as g, n as _, t as v } from "./forms-I-WMHTkr.js";
3
+ export { a as AgentAvatarPicker, f as Checkbox, i as Combobox, v as Field, h as Fieldset, n as FilePicker, s as FormActions, _ as Input, r as InputGroup, d as NumberField, o as RadioGroup, t as Select, p as SelectControl, l as SettingsRow, m as SettingsSection, c as Slider, e as Switch, g as Textarea, u as ToggleGroup };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { g as Accordion, y as AgentAvatar, C as Avatar, t as Badge, w as Button, _ as Collapsible, u as Columns, v as CopyValue, d as Divider, n as Heading, T as IconButton, E as IconLink, r as Identifier, i as Muted, f as Panel, a as Prose, p as Row, l as SectionHeading, m as Stack, o as Status, s as Subheading, h as SurfaceLink, c as Text, D as TextButton, O as TextLink, b as agentAppearance, x as agentAvatarColors, S as agentAvatarShapes } from "./src-C-Sx37kz.js";
1
+ export { g as Accordion, y as AgentAvatar, C as Avatar, t as Badge, w as Button, _ as Collapsible, u as Columns, v as CopyValue, d as Divider, n as Heading, T as IconButton, E as IconLink, r as Identifier, i as Muted, f as Panel, a as Prose, p as Row, l as SectionHeading, m as Stack, o as Status, s as Subheading, h as SurfaceLink, c as Text, D as TextButton, O as TextLink, b as agentAppearance, x as agentAvatarColors, S as agentAvatarShapes } from "./src-s3tWwnN4.js";