xmlui 0.9.63 → 0.9.64

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 (44) hide show
  1. package/dist/lib/{apiInterceptorWorker-DYPN1T0q.mjs → apiInterceptorWorker--1siIib9.mjs} +1 -1
  2. package/dist/lib/{index-BcEgj7aN.mjs → index-DQYBJR26.mjs} +27228 -16681
  3. package/dist/lib/index.css +1 -1
  4. package/dist/lib/language-server-web-worker.mjs +1 -1
  5. package/dist/lib/language-server.mjs +1 -1
  6. package/dist/lib/{metadata-utils-DJM8orNd.mjs → metadata-utils-Bes0jMw3.mjs} +1 -1
  7. package/dist/lib/{server-common-D0VA8gIv.mjs → server-common-CfdMYx46.mjs} +2 -2
  8. package/dist/lib/{transform-BdB0APqE.mjs → transform-C_5kSXBN.mjs} +58 -58
  9. package/dist/lib/xmlui-parser.d.ts +0 -1
  10. package/dist/lib/xmlui-parser.mjs +2 -2
  11. package/dist/lib/{xmlui-serializer-COAfRndx.mjs → xmlui-serializer-jEIItW8v.mjs} +11 -3
  12. package/dist/lib/xmlui.d.ts +2 -2
  13. package/dist/lib/xmlui.mjs +2 -2
  14. package/dist/metadata/{apiInterceptorWorker-PHZNbofw.mjs → apiInterceptorWorker-C1cI935F.mjs} +1 -1
  15. package/dist/metadata/{collectedComponentMetadata-BGIWhaXW.mjs → collectedComponentMetadata-CEyXwr66.mjs} +25799 -16508
  16. package/dist/metadata/style.css +1 -1
  17. package/dist/metadata/xmlui-metadata.mjs +1 -1
  18. package/dist/metadata/xmlui-metadata.umd.js +146 -117
  19. package/dist/scripts/package.json +6 -1
  20. package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +6 -1
  21. package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +6 -1
  22. package/dist/scripts/src/components/CodeBlock/highlight-code.js +34 -13
  23. package/dist/scripts/src/components/ComponentProvider.js +4 -0
  24. package/dist/scripts/src/components/FormItem/FormItem.js +1 -0
  25. package/dist/scripts/src/components/FormSection/FormSection.js +42 -2
  26. package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +7 -0
  27. package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +7 -0
  28. package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +7 -0
  29. package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +7 -0
  30. package/dist/scripts/src/components/IconProvider.js +11 -0
  31. package/dist/scripts/src/components/Markdown/MarkdownNative.js +3 -3
  32. package/dist/scripts/src/components/Markdown/utils.js +13 -8
  33. package/dist/scripts/src/components/NavPanel/NavPanelNative.js +4 -0
  34. package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +3 -3
  35. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +15 -12
  36. package/dist/scripts/src/components/NestedApp/defaultProps.js +1 -0
  37. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +4 -6
  38. package/dist/scripts/src/components/TableEditor/TableEditor.js +183 -0
  39. package/dist/scripts/src/components/TableEditor/TableEditorNative.js +8 -0
  40. package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -3
  41. package/dist/standalone/xmlui-standalone.es.d.ts +2 -2
  42. package/dist/standalone/xmlui-standalone.umd.js +269 -237
  43. package/package.json +6 -1
  44. package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmlui",
3
- "version": "0.9.63",
3
+ "version": "0.9.64",
4
4
  "sideEffects": false,
5
5
  "scripts": {
6
6
  "start-test-bed": "cd src/testing/infrastructure && xmlui start",
@@ -48,6 +48,8 @@
48
48
  "@tanstack/react-query-devtools": "^4.36.1",
49
49
  "@tanstack/react-table": "8.17.3",
50
50
  "@tanstack/react-virtual": "3.10.8",
51
+ "@tiptap/react": "^2.23.0",
52
+ "@tiptap/starter-kit": "^2.23.0",
51
53
  "@types/chroma-js": "^3.1.1",
52
54
  "@types/color": "3.0.6",
53
55
  "@vitejs/plugin-react": "4.3.0",
@@ -66,6 +68,7 @@
66
68
  "file-saver": "^2.0.5",
67
69
  "glob": "7.2.0",
68
70
  "immer": "9.0.16",
71
+ "js-yaml": "^4.1.0",
69
72
  "lodash-es": "4.17.21",
70
73
  "memoize-one": "6.0.0",
71
74
  "msw": "2.8.4",
@@ -99,6 +102,7 @@
99
102
  "scroll-into-view-if-needed": "^3.1.0",
100
103
  "shiki": "^1.14.1",
101
104
  "ts-node": "10.9.1",
105
+ "turndown": "^7.2.0",
102
106
  "unist-util-visit": "^5.0.0",
103
107
  "use-context-selector": "1.4.1",
104
108
  "virtua": "0.40.0",
@@ -116,6 +120,7 @@
116
120
  "@rollup/pluginutils": "5.1.0",
117
121
  "@types/adm-zip": "0.5.4",
118
122
  "@types/glob": "7.2.0",
123
+ "@types/js-yaml": "^4.0.9",
119
124
  "@types/lodash-es": "4.17.6",
120
125
  "@types/node": "18.11.5",
121
126
  "@types/react": "18.2.23",
@@ -104,5 +104,10 @@ function BarChart({ data = [], layout = exports.defaultProps.layout, nameKey, st
104
104
  }));
105
105
  }, [colorValues, dataKeys]);
106
106
  const chartContextValue = (0, ChartProvider_1.useChartContextValue)({ dataKeys, nameKey });
107
- return ((0, jsx_runtime_1.jsxs)(ChartProvider_1.default, { value: chartContextValue, children: [children, (0, jsx_runtime_1.jsx)(recharts_1.ResponsiveContainer, { style: style, width: "100%", height: "100%", children: (0, jsx_runtime_1.jsxs)(recharts_1.BarChart, { accessibilityLayer: true, data: data, layout: layout, margin: { left: 10, top: 0, bottom: 0, right: 10 }, children: [(0, jsx_runtime_1.jsx)(recharts_1.CartesianGrid, { vertical: true, strokeDasharray: "3 3" }), layout === "vertical" ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(recharts_1.XAxis, { type: "number", axisLine: false, hide: hideX, tick: { fill: "currentColor" } }), (0, jsx_runtime_1.jsx)(recharts_1.YAxis, { hide: hideY, dataKey: nameKey, type: "category", interval: "equidistantPreserveStart", tickLine: false, tickFormatter: tickFormatter, tick: { fill: "currentColor" } })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(recharts_1.XAxis, { dataKey: nameKey, type: "category", interval: "equidistantPreserveStart", tickLine: false, tickFormatter: tickFormatter, height: hideX ? 0 : 30, hide: hideX, tick: !hideTickX && { fill: "currentColor" } }), (0, jsx_runtime_1.jsx)(recharts_1.YAxis, { type: "number", axisLine: false, tick: !hideTickY && { fill: "currentColor" }, hide: hideY, width: hideY ? 0 : 60 })] })), (0, jsx_runtime_1.jsx)(recharts_1.Tooltip, { content: (0, jsx_runtime_1.jsx)(TooltipContent_1.TooltipContent, {}) }), Object.keys(config).map((key, index) => ((0, jsx_runtime_1.jsx)(recharts_1.Bar, { dataKey: key, fill: config[key].color, radius: stacked ? 0 : 8, stackId: stacked ? "stacked" : undefined }, index))), chartContextValue.legend ? chartContextValue.legend : showLegend && (0, jsx_runtime_1.jsx)(recharts_1.Legend, {})] }) })] }));
107
+ return ((0, jsx_runtime_1.jsxs)(ChartProvider_1.default, { value: chartContextValue, children: [children, (0, jsx_runtime_1.jsx)("div", { style: {
108
+ flexGrow: 1,
109
+ minHeight: 0,
110
+ width: style.width || "100%",
111
+ height: style.height || "100%",
112
+ }, children: (0, jsx_runtime_1.jsx)(recharts_1.ResponsiveContainer, { style: style, width: "100%", height: "100%", children: (0, jsx_runtime_1.jsxs)(recharts_1.BarChart, { accessibilityLayer: true, data: data, layout: layout, margin: { left: 10, top: 0, bottom: 0, right: 10 }, children: [(0, jsx_runtime_1.jsx)(recharts_1.CartesianGrid, { vertical: true, strokeDasharray: "3 3" }), layout === "vertical" ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(recharts_1.XAxis, { type: "number", axisLine: false, hide: hideX, tick: { fill: "currentColor" } }), (0, jsx_runtime_1.jsx)(recharts_1.YAxis, { hide: hideY, dataKey: nameKey, type: "category", interval: "equidistantPreserveStart", tickLine: false, tickFormatter: tickFormatter, tick: { fill: "currentColor" } })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(recharts_1.XAxis, { dataKey: nameKey, type: "category", interval: "equidistantPreserveStart", tickLine: false, tickFormatter: tickFormatter, height: hideX ? 0 : 30, hide: hideX, tick: !hideTickX && { fill: "currentColor" } }), (0, jsx_runtime_1.jsx)(recharts_1.YAxis, { type: "number", axisLine: false, tick: !hideTickY && { fill: "currentColor" }, hide: hideY, width: hideY ? 0 : 60 })] })), (0, jsx_runtime_1.jsx)(recharts_1.Tooltip, { content: (0, jsx_runtime_1.jsx)(TooltipContent_1.TooltipContent, {}) }), Object.keys(config).map((key, index) => ((0, jsx_runtime_1.jsx)(recharts_1.Bar, { dataKey: key, fill: config[key].color, radius: stacked ? 0 : 8, stackId: stacked ? "stacked" : undefined }, index))), chartContextValue.legend ? chartContextValue.legend : showLegend && (0, jsx_runtime_1.jsx)(recharts_1.Legend, {})] }) }) })] }));
108
113
  }
@@ -99,5 +99,10 @@ function LineChart({ data, dataKeys = [], nameKey, style, hideX = false, hideToo
99
99
  }));
100
100
  }, [colorValues, dataKeys]);
101
101
  const chartContextValue = (0, ChartProvider_1.useChartContextValue)({ nameKey, dataKeys });
102
- return ((0, jsx_runtime_1.jsxs)(ChartProvider_1.default, { value: chartContextValue, children: [children, (0, jsx_runtime_1.jsx)(recharts_1.ResponsiveContainer, { style: style, width: "100%", height: "100%", children: (0, jsx_runtime_1.jsxs)(recharts_1.LineChart, { accessibilityLayer: true, data: data, margin: { top: marginTop, right: marginRight, bottom: marginBottom, left: marginLeft }, children: [(0, jsx_runtime_1.jsx)(recharts_1.XAxis, { interval: "preserveEnd", dataKey: nameKey, tickLine: false, hide: hideX, axisLine: false, tick: { fill: "currentColor" }, tickFormatter: tickFormatter, minTickGap: 5 }), !hideTooltip && (0, jsx_runtime_1.jsx)(recharts_1.Tooltip, { content: (0, jsx_runtime_1.jsx)(TooltipContent_1.TooltipContent, {}) }), Object.keys(config).map((key, index) => ((0, jsx_runtime_1.jsx)(recharts_1.Line, { dataKey: key, type: "monotone", stroke: config[key].color, dot: false }, index))), chartContextValue.legend ? chartContextValue.legend : showLegend && (0, jsx_runtime_1.jsx)(recharts_1.Legend, {})] }) })] }));
102
+ return ((0, jsx_runtime_1.jsxs)(ChartProvider_1.default, { value: chartContextValue, children: [children, (0, jsx_runtime_1.jsx)("div", { style: {
103
+ flexGrow: 1,
104
+ minHeight: 0,
105
+ width: style.width || "100%",
106
+ height: style.height || "100%",
107
+ }, children: (0, jsx_runtime_1.jsx)(recharts_1.ResponsiveContainer, { style: style, width: "100%", height: "100%", children: (0, jsx_runtime_1.jsxs)(recharts_1.LineChart, { accessibilityLayer: true, data: data, margin: { top: marginTop, right: marginRight, bottom: marginBottom, left: marginLeft }, children: [(0, jsx_runtime_1.jsx)(recharts_1.XAxis, { interval: "preserveEnd", dataKey: nameKey, tickLine: false, hide: hideX, axisLine: false, tick: { fill: "currentColor" }, tickFormatter: tickFormatter, minTickGap: 5 }), !hideTooltip && (0, jsx_runtime_1.jsx)(recharts_1.Tooltip, { content: (0, jsx_runtime_1.jsx)(TooltipContent_1.TooltipContent, {}) }), Object.keys(config).map((key, index) => ((0, jsx_runtime_1.jsx)(recharts_1.Line, { dataKey: key, type: "monotone", stroke: config[key].color, dot: false }, index))), chartContextValue.legend ? chartContextValue.legend : showLegend && (0, jsx_runtime_1.jsx)(recharts_1.Legend, {})] }) }) })] }));
103
108
  }
@@ -131,7 +131,7 @@ function extractMetaFromChildren(node, keys, code = "") {
131
131
  /* [CodeHighlighterMetaKeys.rowNumbers.prop]: parseBoolean(
132
132
  meta[CodeHighlighterMetaKeys.rowNumbers.data],
133
133
  ), */
134
- [exports.CodeHighlighterMetaKeys.highlightRows.prop]: parseRowHighlights(code.split("\n").length, meta[exports.CodeHighlighterMetaKeys.highlightRows.data]),
134
+ [exports.CodeHighlighterMetaKeys.highlightRows.prop]: parseRowHighlights(code, meta[exports.CodeHighlighterMetaKeys.highlightRows.data]),
135
135
  [exports.CodeHighlighterMetaKeys.highlightSubstrings.prop]: parseSubstringHighlights(code, meta[exports.CodeHighlighterMetaKeys.highlightSubstrings.data]),
136
136
  [exports.CodeHighlighterMetaKeys.highlightSubstringsEmphasized.prop]: parseSubstringHighlights(code, meta[exports.CodeHighlighterMetaKeys.highlightSubstringsEmphasized.data], true),
137
137
  };
@@ -145,11 +145,12 @@ function parseBoolean(str) {
145
145
  return false;
146
146
  return false;
147
147
  }
148
- function parseRowHighlights(codeLines, str) {
148
+ function parseRowHighlights(code, str) {
149
149
  if (!str)
150
150
  return [];
151
151
  if (str === "")
152
152
  return [];
153
+ const codeLines = code.split("\n");
153
154
  return str
154
155
  .split(",")
155
156
  .map((item) => {
@@ -159,33 +160,53 @@ function parseRowHighlights(codeLines, str) {
159
160
  let end = 0;
160
161
  if (split.length === 0)
161
162
  return { start, end, properties: { class: highlightRowsClass } };
162
- const val = parseAndRemoveIfInvalid(split[0]);
163
- start = val - 1;
164
- if (split.length === 1) {
165
- end = val;
163
+ // Start Index
164
+ const startIdx = parseAndValidate(split[0]) - 1;
165
+ if (startIdx > 0) {
166
+ start = getLineStartIndex(startIdx);
166
167
  }
167
- else {
168
- end = parseAndRemoveIfInvalid(split[1]);
168
+ // End Index
169
+ const endIdx = split.length === 1 ? startIdx : parseAndValidate(split[1]) - 1;
170
+ let endLineLength = 0;
171
+ if (endIdx >= 0 && codeLines[endIdx] !== undefined) {
172
+ endLineLength = codeLines[endIdx].length;
169
173
  }
174
+ end = getLineStartIndex(endIdx) + endLineLength;
170
175
  return { start, end, properties: { class: highlightRowsClass } };
171
176
  })
172
177
  .filter((item) => {
173
- if (item.start === -1 || item.end === -1)
178
+ if (item.start <= -1 || item.end <= -1)
174
179
  return false;
175
- if (item.start > codeLines || item.end > codeLines)
180
+ if (item.start > code.length || item.end > code.length)
176
181
  return false;
177
182
  return true;
178
183
  });
179
- function parseAndRemoveIfInvalid(value) {
184
+ function parseAndValidate(value) {
180
185
  const parsed = parseInt(value, 10);
181
186
  if (Number.isNaN(parsed))
182
187
  return -1;
183
- if (parsed < 0)
188
+ if (parsed <= 0)
184
189
  return -1;
185
- if (parsed > codeLines)
190
+ if (parsed > codeLines.length)
186
191
  return -1;
187
192
  return parsed;
188
193
  }
194
+ function getLineStartIndex(lineNumber) {
195
+ if (lineNumber < 0)
196
+ return -1;
197
+ if (lineNumber === 0)
198
+ return 0;
199
+ let count = 0;
200
+ let index = 0;
201
+ while (count < lineNumber && index !== -1) {
202
+ index = code.indexOf('\n', index);
203
+ if (index !== -1) {
204
+ index++; // Move past the '\n'
205
+ count++;
206
+ }
207
+ }
208
+ return (index !== -1) ? index : -1;
209
+ }
189
210
  }
190
211
  function parseSubstringHighlights(code, str, emphasized = false) {
191
212
  if (!str)
@@ -110,6 +110,7 @@ const LabelList_1 = require("./Charts/LabelList/LabelList");
110
110
  const Legend_1 = require("./Charts/Legend/Legend");
111
111
  const LineChart_1 = require("./Charts/LineChart/LineChart");
112
112
  const PieChart_1 = require("./Charts/PieChart/PieChart");
113
+ const TableEditor_1 = require("./TableEditor/TableEditor");
113
114
  /**
114
115
  * The framework has a specialized component concept, the "property holder
115
116
  * component." These components only hold property values but do not render
@@ -260,6 +261,9 @@ class ComponentRegistry {
260
261
  if (process.env.VITE_USED_COMPONENTS_HelloWorld !== "false") {
261
262
  this.registerCoreComponent(HelloWorld_1.helloWorldComponentRenderer);
262
263
  }
264
+ if (process.env.VITE_USED_COMPONENTS_TableEditor !== "false") {
265
+ this.registerCoreComponent(TableEditor_1.editorComponentRenderer);
266
+ }
263
267
  if (process.env.VITE_USED_COMPONENTS_Checkbox !== "false") {
264
268
  this.registerCoreComponent(Checkbox_1.checkboxComponentRenderer);
265
269
  }
@@ -29,6 +29,7 @@ const COMP = "FormItem";
29
29
  const filteredValidationSeverityValues = FormContext_1.validationSeverityValues.filter((value) => value !== "none");
30
30
  exports.FormItemMd = (0, metadata_helpers_1.createMetadata)({
31
31
  status: "stable",
32
+ allowArbitraryProps: true,
32
33
  description: "`FormItem` wraps individual input controls within a `Form`, providing data " +
33
34
  "binding, validation, labeling, and layout functionality. It connects form " +
34
35
  "controls to the parent form's data model and handles validation feedback " +
@@ -10,11 +10,51 @@ exports.FormSectionMd = (0, metadata_helpers_1.createMetadata)({
10
10
  status: "experimental",
11
11
  description: "`FormSection` groups elements within a `Form`. Child components are placed in " +
12
12
  "a [FlowLayout](/components/FlowLayout).",
13
+ props: {
14
+ heading: {
15
+ description: "The heading text to be displayed at the top of the form section.",
16
+ type: "string",
17
+ },
18
+ headingLevel: {
19
+ description: "The semantic and visual level of the heading.",
20
+ availableValues: ["h1", "h2", "h3", "h4", "h5", "h6"],
21
+ defaultValue: "h3",
22
+ },
23
+ headingWeight: {
24
+ description: "The font weight of the heading.",
25
+ type: "string",
26
+ defaultValue: "bold",
27
+ },
28
+ info: {
29
+ description: "Informational text displayed below the heading.",
30
+ type: "string",
31
+ },
32
+ infoFontSize: {
33
+ description: "The font size of the informational text.",
34
+ type: "string",
35
+ defaultValue: "0.8rem",
36
+ },
37
+ paddingTop: {
38
+ description: "The top padding of the FlowLayout where the section's children are placed.",
39
+ type: "string",
40
+ defaultValue: "$space-normal",
41
+ },
42
+ columnGap: {
43
+ description: "The gap between columns of items within the section.",
44
+ type: "string",
45
+ defaultValue: "3rem",
46
+ },
47
+ rowGap: {
48
+ description: "The gap between rows of items within the section.",
49
+ type: "string",
50
+ defaultValue: "$space-normal",
51
+ },
52
+ },
13
53
  });
14
54
  const componentSource = `
15
55
  <Component name="FormSection">
16
56
  <VStack paddingBottom="{$props.paddingBottom ?? '1rem'}" gap="0" width="100%">
17
- <Heading
57
+ <Heading
18
58
  when="{!!$props.heading}"
19
59
  marginBottom="$space-tight"
20
60
  level="{$props.headingLevel ?? 'h3'}"
@@ -25,7 +65,7 @@ const componentSource = `
25
65
  fontSize="{$props.infoFontSize ?? '0.8rem'}"
26
66
  paddingBottom="$space-normal"
27
67
  value="{$props.info}" />
28
- <FlowLayout
68
+ <FlowLayout
29
69
  width="100%"
30
70
  paddingTop="{$props.paddingTop ?? '$space-normal'}"
31
71
  columnGap="{$props.columnGap ?? '3rem'}"
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = TableDeleteColumnIcon;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ function TableDeleteColumnIcon(props) {
6
+ return ((0, jsx_runtime_1.jsxs)("svg", Object.assign({ viewBox: "0 0 24 16", stroke: "currentColor", fill: "none", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "24", height: "16" }, props, { children: [(0, jsx_runtime_1.jsx)("rect", { x: "1.5", y: "1.5", width: "13", height: "11", rx: "1" }), (0, jsx_runtime_1.jsx)("line", { x1: "5.5", y1: "3.5", x2: "5.5", y2: "11.5" }), (0, jsx_runtime_1.jsx)("line", { x1: "9", y1: "3.5", x2: "9", y2: "11.5" }), (0, jsx_runtime_1.jsx)("line", { x1: "17", y1: "8", x2: "21", y2: "8" })] })));
7
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = TableDeleteRowIcon;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ function TableDeleteRowIcon(props) {
6
+ return ((0, jsx_runtime_1.jsxs)("svg", Object.assign({ viewBox: "0 0 24 16", stroke: "currentColor", fill: "none", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, props, { children: [(0, jsx_runtime_1.jsx)("rect", { x: "1.5", y: "1.5", width: "13", height: "11", rx: "1" }), (0, jsx_runtime_1.jsx)("line", { x1: "1.5", y1: "5.5", x2: "14.5", y2: "5.5" }), (0, jsx_runtime_1.jsx)("line", { x1: "1.5", y1: "9.5", x2: "14.5", y2: "9.5" }), (0, jsx_runtime_1.jsx)("line", { x1: "17", y1: "8", x2: "21", y2: "8" })] })));
7
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = TableInsertColumnIcon;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ function TableInsertColumnIcon(props) {
6
+ return ((0, jsx_runtime_1.jsxs)("svg", Object.assign({ viewBox: "0 0 24 16", stroke: "currentColor", fill: "none", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "24", height: "16" }, props, { children: [(0, jsx_runtime_1.jsx)("rect", { x: "1.5", y: "1.5", width: "13", height: "11", rx: "1" }), (0, jsx_runtime_1.jsx)("line", { x1: "5.5", y1: "3.5", x2: "5.5", y2: "11.5" }), (0, jsx_runtime_1.jsx)("line", { x1: "9", y1: "3.5", x2: "9", y2: "11.5" }), (0, jsx_runtime_1.jsx)("line", { x1: "19", y1: "6.5", x2: "19", y2: "9.5" }), (0, jsx_runtime_1.jsx)("line", { x1: "17.5", y1: "8", x2: "20.5", y2: "8" })] })));
7
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = TableInsertRowIcon;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ function TableInsertRowIcon(props) {
6
+ return ((0, jsx_runtime_1.jsxs)("svg", Object.assign({ viewBox: "0 0 24 16", stroke: "currentColor", fill: "none", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, props, { children: [(0, jsx_runtime_1.jsx)("rect", { x: "1.5", y: "1.5", width: "13", height: "11", rx: "1" }), (0, jsx_runtime_1.jsx)("line", { x1: "1.5", y1: "5.5", x2: "14.5", y2: "5.5" }), (0, jsx_runtime_1.jsx)("line", { x1: "1.5", y1: "9.5", x2: "14.5", y2: "9.5" }), (0, jsx_runtime_1.jsx)("line", { x1: "19", y1: "6", x2: "19", y2: "10" }), (0, jsx_runtime_1.jsx)("line", { x1: "17", y1: "8", x2: "21", y2: "8" })] })));
7
+ }
@@ -8,6 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.IconProvider = IconProvider;
13
16
  const jsx_runtime_1 = require("react/jsx-runtime");
@@ -88,6 +91,10 @@ const AdmonitionWarning_1 = require("./Icon/AdmonitionWarning");
88
91
  const AdmonitionDanger_1 = require("./Icon/AdmonitionDanger");
89
92
  const AdmonitionNote_1 = require("./Icon/AdmonitionNote");
90
93
  const AdmonitionTip_1 = require("./Icon/AdmonitionTip");
94
+ const TableInsertRowIcon_1 = __importDefault(require("./Icon/TableInsertRowIcon"));
95
+ const TableDeleteRowIcon_1 = __importDefault(require("./Icon/TableDeleteRowIcon"));
96
+ const TableInsertColumnIcon_1 = __importDefault(require("./Icon/TableInsertColumnIcon"));
97
+ const TableDeleteColumnIcon_1 = __importDefault(require("./Icon/TableDeleteColumnIcon"));
91
98
  const pool = new Map();
92
99
  function registerIconRenderer(name, renderer) {
93
100
  if (typeof name === "object") {
@@ -227,6 +234,10 @@ registerIconRenderer("arrowdown", (props) => (0, jsx_runtime_1.jsx)(bs_1.BsArrow
227
234
  registerIconRenderer("square", (props) => (0, jsx_runtime_1.jsx)(bs_1.BsSquare, Object.assign({}, props)));
228
235
  registerIconRenderer("squarehalf", (props) => (0, jsx_runtime_1.jsx)(bs_1.BsSquareHalf, Object.assign({}, props)));
229
236
  registerIconRenderer("squarefill", (props) => (0, jsx_runtime_1.jsx)(bs_1.BsSquareFill, Object.assign({}, props)));
237
+ registerIconRenderer("table-insert-row", (props) => (0, jsx_runtime_1.jsx)(TableInsertRowIcon_1.default, Object.assign({}, props)));
238
+ registerIconRenderer("table-delete-row", (props) => (0, jsx_runtime_1.jsx)(TableDeleteRowIcon_1.default, Object.assign({}, props)));
239
+ registerIconRenderer("table-insert-column", (props) => (0, jsx_runtime_1.jsx)(TableInsertColumnIcon_1.default, Object.assign({}, props)));
240
+ registerIconRenderer("table-delete-column", (props) => (0, jsx_runtime_1.jsx)(TableDeleteColumnIcon_1.default, Object.assign({}, props)));
230
241
  function IconProvider({ children }) {
231
242
  const getRegisteredIconNames = (0, react_1.useCallback)(() => {
232
243
  return Array.from(pool.keys());
@@ -97,11 +97,11 @@ function PreTagComponent({ id, children, codeHighlighter }) {
97
97
  return ((0, jsx_runtime_1.jsx)(CodeBlockNative_1.CodeBlock, { meta: highlighterResult.meta, textToCopy: highlighterResult.codeStr, children: (0, jsx_runtime_1.jsx)(TextNative_1.Text, { uid: id, variant: "codefence", syntaxHighlightClasses: highlighterResult.classNames, dangerouslySetInnerHTML: { __html: highlighterResult.cleanedHtmlStr } }) }));
98
98
  }
99
99
  exports.Markdown = (0, react_1.memo)(function Markdown({ removeIndents = exports.defaultProps.removeIndents, children, style, codeHighlighter, showHeadingAnchors, }) {
100
+ const imageInfo = (0, react_1.useRef)(new Map());
100
101
  if (typeof children !== "string") {
101
102
  return null;
102
103
  }
103
104
  children = removeIndents ? removeTextIndents(children) : children;
104
- const imageInfo = (0, react_1.useRef)(new Map());
105
105
  const getImageKey = (node) => { var _a, _b, _c, _d; return `${(_b = (_a = node === null || node === void 0 ? void 0 : node.position) === null || _a === void 0 ? void 0 : _a.start) === null || _b === void 0 ? void 0 : _b.offset}|${(_d = (_c = node === null || node === void 0 ? void 0 : node.position) === null || _c === void 0 ? void 0 : _c.end) === null || _d === void 0 ? void 0 : _d.offset}`; };
106
106
  const markdownImgParser = () => {
107
107
  imageInfo.current.clear();
@@ -231,14 +231,14 @@ exports.Markdown = (0, react_1.memo)(function Markdown({ removeIndents = exports
231
231
  return (0, jsx_runtime_1.jsx)("tfoot", { className: HtmlTags_module_scss_1.default.htmlTfoot, children: children });
232
232
  },
233
233
  samp(_a) {
234
- var _b, _c;
234
+ var _b, _c, _d;
235
235
  var props = __rest(_a, []);
236
236
  const markdownContentBase64 = props === null || props === void 0 ? void 0 : props["data-pg-markdown"];
237
237
  const markdownContent = markdownContentBase64 ? atob(markdownContentBase64) : "";
238
238
  const dataContentBase64 = props === null || props === void 0 ? void 0 : props["data-pg-content"];
239
239
  const jsonContent = atob(dataContentBase64);
240
240
  const appProps = JSON.parse(jsonContent);
241
- return ((0, jsx_runtime_1.jsx)(AppWithCodeViewNative_1.default, { markdown: markdownContent, app: appProps.app, config: appProps.config, components: appProps.components, api: appProps.api, activeTheme: appProps.activeTheme, activeTone: appProps.activeTone, title: appProps.name, height: appProps.height, allowPlaygroundPopup: !appProps.noPopup, withFrame: appProps.noFrame ? false : true, splitView: (_b = appProps.splitView) !== null && _b !== void 0 ? _b : false, initiallyShowCode: (_c = appProps.initiallyShowCode) !== null && _c !== void 0 ? _c : false, popOutUrl: appProps.popOutUrl }));
241
+ return ((0, jsx_runtime_1.jsx)(AppWithCodeViewNative_1.default, { markdown: markdownContent, app: appProps.app, config: appProps.config, components: appProps.components, api: appProps.api, activeTheme: appProps.activeTheme, activeTone: appProps.activeTone, title: appProps.name, height: appProps.height, allowPlaygroundPopup: !appProps.noPopup, withFrame: appProps.noFrame ? false : true, noHeader: (_b = appProps.noHeader) !== null && _b !== void 0 ? _b : false, splitView: (_c = appProps.splitView) !== null && _c !== void 0 ? _c : false, initiallyShowCode: (_d = appProps.initiallyShowCode) !== null && _d !== void 0 ? _d : false, popOutUrl: appProps.popOutUrl }));
242
242
  },
243
243
  section(_a) {
244
244
  var { children } = _a, props = __rest(_a, ["children"]);
@@ -54,6 +54,10 @@ function parseSegmentProps(input) {
54
54
  if (/\bnoFrame\b/.test(input)) {
55
55
  segment.noFrame = true;
56
56
  }
57
+ // --- Match the "noHeader" flag
58
+ if (/\bnoHeader\b/.test(input)) {
59
+ segment.noHeader = true;
60
+ }
57
61
  // --- Match the "splitView" flag
58
62
  if (/\bsplitView\b/.test(input)) {
59
63
  segment.splitView = true;
@@ -196,7 +200,7 @@ function parsePlaygroundPattern(content) {
196
200
  }
197
201
  }
198
202
  function convertPlaygroundPatternToMarkdown(content) {
199
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
203
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
200
204
  const pattern = parsePlaygroundPattern(content);
201
205
  // --- Determine max order for segments
202
206
  let maxOrder = 0;
@@ -228,9 +232,10 @@ function convertPlaygroundPatternToMarkdown(content) {
228
232
  const pgContent = {
229
233
  noPopup: (_d = pattern.default) === null || _d === void 0 ? void 0 : _d.noPopup,
230
234
  noFrame: (_e = pattern.default) === null || _e === void 0 ? void 0 : _e.noFrame,
231
- splitView: (_f = pattern.default) === null || _f === void 0 ? void 0 : _f.splitView,
232
- initiallyShowCode: (_g = pattern.default) === null || _g === void 0 ? void 0 : _g.initiallyShowCode,
233
- popOutUrl: (_h = pattern.default) === null || _h === void 0 ? void 0 : _h.popOutUrl,
235
+ noHeader: (_f = pattern.default) === null || _f === void 0 ? void 0 : _f.noHeader,
236
+ splitView: (_g = pattern.default) === null || _g === void 0 ? void 0 : _g.splitView,
237
+ initiallyShowCode: (_h = pattern.default) === null || _h === void 0 ? void 0 : _h.initiallyShowCode,
238
+ popOutUrl: (_j = pattern.default) === null || _j === void 0 ? void 0 : _j.popOutUrl,
234
239
  };
235
240
  // --- Extract optional playground attributes
236
241
  if (pattern.default.height) {
@@ -246,15 +251,15 @@ function convertPlaygroundPatternToMarkdown(content) {
246
251
  for (let i = 0; i <= maxOrder; i++) {
247
252
  let segment;
248
253
  let type = "";
249
- if (((_j = pattern.app) === null || _j === void 0 ? void 0 : _j.order) === i) {
254
+ if (((_k = pattern.app) === null || _k === void 0 ? void 0 : _k.order) === i) {
250
255
  segment = pattern.app;
251
256
  type = "app";
252
257
  }
253
- else if (((_k = pattern.config) === null || _k === void 0 ? void 0 : _k.order) === i) {
258
+ else if (((_l = pattern.config) === null || _l === void 0 ? void 0 : _l.order) === i) {
254
259
  segment = pattern.config;
255
260
  type = "config";
256
261
  }
257
- else if (((_l = pattern.api) === null || _l === void 0 ? void 0 : _l.order) === i) {
262
+ else if (((_m = pattern.api) === null || _m === void 0 ? void 0 : _m.order) === i) {
258
263
  segment = pattern.api;
259
264
  type = "api";
260
265
  }
@@ -315,7 +320,7 @@ function convertPlaygroundPatternToMarkdown(content) {
315
320
  if (segment.display) {
316
321
  markdownContent += "```xmlui " + segmentAttrs + "\n" + segment.content + "```\n\n";
317
322
  }
318
- (_m = pgContent.components) !== null && _m !== void 0 ? _m : (pgContent.components = []);
323
+ (_o = pgContent.components) !== null && _o !== void 0 ? _o : (pgContent.components = []);
319
324
  pgContent.components.push(segment.content);
320
325
  break;
321
326
  case "desc":
@@ -98,6 +98,7 @@ function buildNavHierarchy(children, extractValue, parent, pathSegments = []) {
98
98
  }
99
99
  }
100
100
  else if (child.children && child.children.length > 0) {
101
+ //console.log("CN", child.children);
101
102
  // Process any children that might contain NavGroup and NavLink components recursively
102
103
  const nestedNodes = buildNavHierarchy(child.children, extractValue, parent, pathSegments);
103
104
  if (nestedNodes.length > 0) {
@@ -197,6 +198,9 @@ exports.NavPanel = (0, react_1.forwardRef)(function NavPanel({ children, style,
197
198
  appLayoutContext.registerLinkMap(linkMap);
198
199
  }
199
200
  }, [navLinks, appLayoutContext === null || appLayoutContext === void 0 ? void 0 : appLayoutContext.registerLinkMap]);
201
+ if (appLayoutContext && !(appLayoutContext === null || appLayoutContext === void 0 ? void 0 : appLayoutContext.isNested)) {
202
+ //console.log(navLinks);
203
+ }
200
204
  if (inDrawer) {
201
205
  return ((0, jsx_runtime_1.jsx)(DrawerNavPanel, { style: style, logoContent: safeLogoContent, className: className, navLinks: navLinks, children: children }));
202
206
  }
@@ -29,7 +29,7 @@ const logo_svg_react_1 = __importDefault(require("./logo.svg?react"));
29
29
  /**
30
30
  * A component that displays markdown content on the left and a NestedApp on the right
31
31
  */
32
- function AppWithCodeViewNative({ markdown, splitView, initiallyShowCode = false, popOutUrl, app, api, components = [], config, activeTone, activeTheme, title, height, allowPlaygroundPopup, }) {
32
+ function AppWithCodeViewNative({ markdown, splitView, withFrame = true, noHeader = false, initiallyShowCode = false, popOutUrl, app, api, components = [], config, activeTone, activeTheme, title, height, allowPlaygroundPopup, }) {
33
33
  const [showCode, setShowCode] = (0, react_1.useState)(initiallyShowCode);
34
34
  const { appGlobals } = (0, AppContext_1.useAppContext)();
35
35
  const [refreshVersion, setRefreshVersion] = (0, react_1.useState)(0);
@@ -71,9 +71,9 @@ function AppWithCodeViewNative({ markdown, splitView, initiallyShowCode = false,
71
71
  }, children: (0, jsx_runtime_1.jsx)(rx_1.RxOpenInNewWindow, {}) }), label: "View and edit in new full-width window" })), (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { trigger: (0, jsx_runtime_1.jsx)("button", { className: NestedApp_module_scss_1.default.headerButton, onClick: () => {
72
72
  setShowCode(false);
73
73
  setRefreshVersion(refreshVersion + 1);
74
- }, children: (0, jsx_runtime_1.jsx)(lia_1.LiaUndoAltSolid, {}) }), label: "Reset the app" })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: NestedApp_module_scss_1.default.contentContainer, children: [showCode && (0, jsx_runtime_1.jsx)(Markdown_1.Markdown, { style: { height: "100%" }, children: markdown }), !showCode && ((0, jsx_runtime_1.jsx)(NestedAppNative_1.IndexAwareNestedApp, { height: "100%", refVersion: refreshVersion, app: app, api: api, components: components, config: config, activeTone: activeTone, activeTheme: activeTheme, title: title, allowPlaygroundPopup: allowPlaygroundPopup, withFrame: false, popOutUrl: popOutUrl }))] })] }));
74
+ }, children: (0, jsx_runtime_1.jsx)(lia_1.LiaUndoAltSolid, {}) }), label: "Reset the app" })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: NestedApp_module_scss_1.default.contentContainer, children: [showCode && (0, jsx_runtime_1.jsx)(Markdown_1.Markdown, { style: { height: "100%" }, children: markdown }), !showCode && ((0, jsx_runtime_1.jsx)(NestedAppNative_1.IndexAwareNestedApp, { height: "100%", refVersion: refreshVersion, app: app, api: api, components: components, config: config, activeTone: activeTone, activeTheme: activeTheme, title: title, allowPlaygroundPopup: allowPlaygroundPopup, withFrame: false, noHeader: false, popOutUrl: popOutUrl }))] })] }));
75
75
  }
76
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Markdown_1.Markdown, { children: markdown }) }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(NestedAppNative_1.IndexAwareNestedApp, { app: app, api: api, components: components, config: config, activeTone: activeTone, activeTheme: activeTheme, title: title, height: height, allowPlaygroundPopup: allowPlaygroundPopup, withFrame: true, popOutUrl: popOutUrl }) })] }));
76
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Markdown_1.Markdown, { children: markdown }) }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(NestedAppNative_1.IndexAwareNestedApp, { app: app, api: api, components: components, config: config, activeTone: activeTone, activeTheme: activeTheme, title: title, height: height, allowPlaygroundPopup: allowPlaygroundPopup, withFrame: withFrame, noHeader: noHeader, popOutUrl: popOutUrl }) })] }));
77
77
  }
78
78
  /**
79
79
  * Export a named default for easier imports
@@ -53,7 +53,7 @@ function IndexAwareNestedApp(props) {
53
53
  }
54
54
  return (0, jsx_runtime_1.jsx)(LazyNestedApp, Object.assign({}, props));
55
55
  }
56
- function NestedApp({ api, app, components = constants_1.EMPTY_ARRAY, config, activeTheme, activeTone, title, height, allowPlaygroundPopup = defaultProps_1.defaultProps.allowPlaygroundPopup, popOutUrl, withFrame = defaultProps_1.defaultProps.withFrame, style, refVersion = 0, }) {
56
+ function NestedApp({ api, app, components = constants_1.EMPTY_ARRAY, config, activeTheme, activeTone, title, height, allowPlaygroundPopup = defaultProps_1.defaultProps.allowPlaygroundPopup, popOutUrl, withFrame = defaultProps_1.defaultProps.withFrame, noHeader = defaultProps_1.defaultProps.noHeader, style, refVersion = 0, }) {
57
57
  const rootRef = (0, react_1.useRef)(null);
58
58
  const shadowRef = (0, react_1.useRef)(null);
59
59
  const contentRootRef = (0, react_1.useRef)(null);
@@ -119,15 +119,17 @@ function NestedApp({ api, app, components = constants_1.EMPTY_ARRAY, config, act
119
119
  (0, react_1.useEffect)(() => {
120
120
  var _a;
121
121
  if (!shadowRef.current && rootRef.current) {
122
- // Clone existing style and link tags
123
- shadowRef.current = rootRef.current.attachShadow({ mode: "open" });
124
- const styleSheets = document.querySelectorAll('style, link[rel="stylesheet"]');
125
- styleSheets.forEach((el) => {
126
- if (el.hasAttribute("data-theme-root")) {
127
- return;
128
- }
129
- shadowRef.current.appendChild(el.cloneNode(true));
130
- });
122
+ // TEMP: Disable Shadow DOM for debugging theming issues
123
+ // shadowRef.current = rootRef.current.attachShadow({ mode: "open" });
124
+ shadowRef.current = rootRef.current; // Use the normal DOM instead of shadow root
125
+ // Optionally, skip cloning styles since they're already in the main document
126
+ // const styleSheets = document.querySelectorAll('style, link[rel="stylesheet"]');
127
+ // styleSheets.forEach((el) => {
128
+ // if (el.hasAttribute("data-theme-root")) {
129
+ // return;
130
+ // }
131
+ // shadowRef.current.appendChild(el.cloneNode(true));
132
+ // });
131
133
  }
132
134
  if (!contentRootRef.current && shadowRef.current) {
133
135
  contentRootRef.current = client_1.default.createRoot(shadowRef.current);
@@ -157,11 +159,11 @@ function NestedApp({ api, app, components = constants_1.EMPTY_ARRAY, config, act
157
159
  compoundComponents,
158
160
  themes: config === null || config === void 0 ? void 0 : config.themes,
159
161
  }, resources: config === null || config === void 0 ? void 0 : config.resources, extensionManager: componentRegistry.getExtensionManager() }, `app-${nestedAppId}-${refreshVersion}`) }) }));
160
- (_a = contentRootRef.current) === null || _a === void 0 ? void 0 : _a.render((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { node: component, children: withFrame ? ((0, jsx_runtime_1.jsxs)("div", { className: NestedApp_module_scss_1.default.nestedAppContainer, children: [(0, jsx_runtime_1.jsxs)("div", { className: NestedApp_module_scss_1.default.header, children: [(0, jsx_runtime_1.jsx)("span", { className: NestedApp_module_scss_1.default.headerText, children: title }), (0, jsx_runtime_1.jsx)("div", { className: NestedApp_module_scss_1.default.spacer }), allowPlaygroundPopup && ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { trigger: (0, jsx_runtime_1.jsx)("button", { className: NestedApp_module_scss_1.default.headerButton, onClick: () => {
162
+ (_a = contentRootRef.current) === null || _a === void 0 ? void 0 : _a.render((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { node: component, children: withFrame ? ((0, jsx_runtime_1.jsxs)("div", { className: NestedApp_module_scss_1.default.nestedAppContainer, children: [!noHeader && ((0, jsx_runtime_1.jsxs)("div", { className: NestedApp_module_scss_1.default.header, children: [(0, jsx_runtime_1.jsx)("span", { className: NestedApp_module_scss_1.default.headerText, children: title }), (0, jsx_runtime_1.jsx)("div", { className: NestedApp_module_scss_1.default.spacer }), allowPlaygroundPopup && ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { trigger: (0, jsx_runtime_1.jsx)("button", { className: NestedApp_module_scss_1.default.headerButton, onClick: () => {
161
163
  openPlayground();
162
164
  }, children: (0, jsx_runtime_1.jsx)(rx_1.RxOpenInNewWindow, {}) }), label: "View and edit in new full-width window" })), (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { trigger: (0, jsx_runtime_1.jsx)("button", { className: NestedApp_module_scss_1.default.headerButton, onClick: () => {
163
165
  setRefreshVersion(refreshVersion + 1);
164
- }, children: (0, jsx_runtime_1.jsx)(lia_1.LiaUndoAltSolid, {}) }), label: "Reset the app" })] }), nestedAppRoot] })) : (nestedAppRoot) }));
166
+ }, children: (0, jsx_runtime_1.jsx)(lia_1.LiaUndoAltSolid, {}) }), label: "Reset the app" })] })), nestedAppRoot] })) : (nestedAppRoot) }));
165
167
  }, [
166
168
  activeTheme,
167
169
  allowPlaygroundPopup,
@@ -183,6 +185,7 @@ function NestedApp({ api, app, components = constants_1.EMPTY_ARRAY, config, act
183
185
  title,
184
186
  toneToApply,
185
187
  withFrame,
188
+ noHeader,
186
189
  apiUrl,
187
190
  ]);
188
191
  const mountedRef = (0, react_1.useRef)(false);
@@ -6,5 +6,6 @@ const constants_1 = require("../../components-core/constants");
6
6
  exports.defaultProps = {
7
7
  allowPlaygroundPopup: true,
8
8
  withFrame: true,
9
+ noHeader: false,
9
10
  components: constants_1.EMPTY_ARRAY
10
11
  };
@@ -45,14 +45,12 @@ exports.RadioGroupMd = (0, metadata_helpers_1.createMetadata)({
45
45
  [`borderColor-checked-${RGOption}`]: "$color-primary-500",
46
46
  [`borderColor-${RGOption}-default--hover`]: "$color-surface-700",
47
47
  [`borderColor-${RGOption}-default--active`]: "$color-primary-500",
48
+ [`borderColor-${RGOption}-error`]: `$borderColor-Input-default--error`,
49
+ [`borderColor-${RGOption}-warning`]: `$borderColor-Input-default--warning`,
50
+ [`borderColor-${RGOption}-success`]: `$borderColor-Input-default--success`,
48
51
  [`backgroundColor-${RGOption}--disabled`]: "$backgroundColor--disabled",
49
52
  [`backgroundColor-checked-${RGOption}`]: "$color-primary-500",
50
- [`backgroundColor-${RGOption}-checked--disabled`]: `$textColor--disabled`,
51
- [`backgroundColor-checked-indicator-${RGOption}`]: `transparent`,
52
- [`backgroundColor-${RGOption}-checked-indicator--disabled`]: `transparent`,
53
- [`backgroundColor-checked-${RGOption}-error`]: `$borderColor-error`,
54
- [`backgroundColor-checked-${RGOption}-warning`]: `$borderColor-warning`,
55
- [`backgroundColor-checked-${RGOption}-success`]: `$borderColor-success`,
53
+ [`backgroundColor-checked-${RGOption}--disabled`]: `$textColor--disabled`,
56
54
  [`fontSize-${RGOption}`]: "$fontSize-small",
57
55
  [`fontWeight-${RGOption}`]: "$fontWeight-bold",
58
56
  },