xmlui 0.9.50 → 0.9.52

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 (170) hide show
  1. package/dist/lib/{apiInterceptorWorker-B6XqwxPF.mjs → apiInterceptorWorker-OagsYDXz.mjs} +3 -3
  2. package/dist/lib/{index-BpQ3DEFQ.mjs → index-BnpxPPve.mjs} +14387 -13003
  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-QekhOD-W.mjs → metadata-utils-4EQ6kQIM.mjs} +7 -7
  7. package/dist/lib/{server-common-D4BcRpEl.mjs → server-common-C0cF2UTg.mjs} +4542 -4326
  8. package/dist/lib/{transform-DXcw0gGl.mjs → transform-CgRMkbb0.mjs} +1472 -1440
  9. package/dist/lib/xmlui-parser.d.ts +84 -62
  10. package/dist/lib/xmlui-parser.mjs +41 -49
  11. package/dist/lib/{xmlui-serializer-CAZCkpXP.mjs → xmlui-serializer-EDw51UFN.mjs} +10 -10
  12. package/dist/lib/xmlui.d.ts +17 -7
  13. package/dist/lib/xmlui.mjs +19 -18
  14. package/dist/metadata/apiInterceptorWorker-BOuioN57.mjs +15414 -0
  15. package/dist/metadata/collectedComponentMetadata-DbptBvJk.mjs +41019 -0
  16. package/dist/metadata/core-D3puiNN6.mjs +5771 -0
  17. package/dist/metadata/style.css +1 -1
  18. package/dist/metadata/wasm-DQxwEHae.mjs +7 -0
  19. package/dist/metadata/xmlui-metadata.mjs +3 -18371
  20. package/dist/metadata/xmlui-metadata.umd.js +547 -10
  21. package/dist/scripts/package.json +5 -7
  22. package/dist/scripts/src/components/APICall/APICall.js +13 -12
  23. package/dist/scripts/src/components/APICall/APICallNative.js +5 -0
  24. package/dist/scripts/src/components/Accordion/Accordion.js +4 -2
  25. package/dist/scripts/src/components/Accordion/AccordionItem.js +2 -2
  26. package/dist/scripts/src/components/Accordion/AccordionItemNative.js +6 -2
  27. package/dist/scripts/src/components/App/App.js +25 -10
  28. package/dist/scripts/src/components/App/AppNative.js +9 -1
  29. package/dist/scripts/src/components/AppHeader/AppHeader.js +2 -2
  30. package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +5 -2
  31. package/dist/scripts/src/components/AppState/AppState.js +2 -2
  32. package/dist/scripts/src/components/AppState/AppStateNative.js +5 -1
  33. package/dist/scripts/src/components/AutoComplete/AutoComplete.js +8 -8
  34. package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +16 -2
  35. package/dist/scripts/src/components/Avatar/Avatar.js +4 -2
  36. package/dist/scripts/src/components/Backdrop/Backdrop.js +2 -2
  37. package/dist/scripts/src/components/Badge/Badge.js +7 -5
  38. package/dist/scripts/src/components/Bookmark/Bookmark.js +5 -4
  39. package/dist/scripts/src/components/Card/Card.js +6 -4
  40. package/dist/scripts/src/components/ChangeListener/ChangeListener.js +2 -1
  41. package/dist/scripts/src/components/Charts/BarChart/BarChart.js +76 -0
  42. package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +108 -0
  43. package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +59 -0
  44. package/dist/scripts/src/components/Charts/LabelList/LabelList.js +38 -0
  45. package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +24 -0
  46. package/dist/scripts/src/components/Charts/Legend/Legend.js +30 -0
  47. package/dist/scripts/src/components/Charts/Legend/LegendNative.js +64 -0
  48. package/dist/scripts/src/components/Charts/LineChart/LineChart.js +53 -0
  49. package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +103 -0
  50. package/dist/scripts/src/components/Charts/PieChart/PieChart.js +58 -0
  51. package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +127 -0
  52. package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.js +27 -0
  53. package/dist/scripts/src/components/Charts/utils/ChartProvider.js +65 -0
  54. package/dist/scripts/src/components/Charts/utils/abstractions.js +26 -0
  55. package/dist/scripts/src/components/CodeBlock/CodeBlock.js +4 -4
  56. package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +5 -1
  57. package/dist/scripts/src/components/Column/Column.js +15 -9
  58. package/dist/scripts/src/components/Column/ColumnNative.js +5 -0
  59. package/dist/scripts/src/components/ComponentProvider.js +12 -6
  60. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +4 -3
  61. package/dist/scripts/src/components/DatePicker/DatePicker.js +5 -3
  62. package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +1 -1
  63. package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +7 -2
  64. package/dist/scripts/src/components/FileInput/FileInput.js +8 -9
  65. package/dist/scripts/src/components/FileInput/FileInputNative.js +14 -2
  66. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +2 -2
  67. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +9 -2
  68. package/dist/scripts/src/components/Footer/Footer.js +1 -0
  69. package/dist/scripts/src/components/Footer/FooterNative.js +4 -1
  70. package/dist/scripts/src/components/Form/Form.js +9 -5
  71. package/dist/scripts/src/components/Form/FormNative.js +2 -1
  72. package/dist/scripts/src/components/FormItem/FormItem.js +25 -15
  73. package/dist/scripts/src/components/FormItem/FormItemNative.js +1 -0
  74. package/dist/scripts/src/components/FormItem/Validations.js +49 -33
  75. package/dist/scripts/src/components/Heading/Heading.js +5 -4
  76. package/dist/scripts/src/components/Heading/HeadingNative.js +1 -0
  77. package/dist/scripts/src/components/Icon/Icon.js +7 -5
  78. package/dist/scripts/src/components/Image/Image.js +19 -9
  79. package/dist/scripts/src/components/Image/ImageNative.js +7 -2
  80. package/dist/scripts/src/components/Items/Items.js +2 -0
  81. package/dist/scripts/src/components/Items/ItemsNative.js +5 -1
  82. package/dist/scripts/src/components/Link/Link.js +3 -4
  83. package/dist/scripts/src/components/Link/LinkNative.js +6 -2
  84. package/dist/scripts/src/components/List/List.js +12 -11
  85. package/dist/scripts/src/components/List/ListNative.js +10 -2
  86. package/dist/scripts/src/components/Logo/Logo.js +7 -0
  87. package/dist/scripts/src/components/Logo/LogoNative.js +6 -2
  88. package/dist/scripts/src/components/Markdown/Markdown.js +5 -3
  89. package/dist/scripts/src/components/Markdown/MarkdownNative.js +24 -76
  90. package/dist/scripts/src/components/Markdown/utils.js +23 -1
  91. package/dist/scripts/src/components/ModalDialog/ModalDialog.js +2 -2
  92. package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +7 -2
  93. package/dist/scripts/src/components/NavGroup/NavGroup.js +2 -1
  94. package/dist/scripts/src/components/NavLink/NavLink.js +5 -7
  95. package/dist/scripts/src/components/NavLink/NavLinkNative.js +7 -2
  96. package/dist/scripts/src/components/NavPanel/NavPanel.js +7 -0
  97. package/dist/scripts/src/components/NavPanel/NavPanelNative.js +6 -3
  98. package/dist/scripts/src/components/NestedApp/NestedApp.js +16 -4
  99. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +37 -34
  100. package/dist/scripts/src/components/NestedApp/defaultProps.js +10 -0
  101. package/dist/scripts/src/components/NoResult/NoResult.js +6 -2
  102. package/dist/scripts/src/components/NoResult/NoResultNative.js +8 -3
  103. package/dist/scripts/src/components/NumberBox/NumberBox.js +8 -6
  104. package/dist/scripts/src/components/NumberBox/NumberBox2.js +6 -6
  105. package/dist/scripts/src/components/NumberBox/NumberBox2Native.js +15 -2
  106. package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +16 -2
  107. package/dist/scripts/src/components/Option/Option.js +10 -15
  108. package/dist/scripts/src/components/Option/OptionNative.js +18 -0
  109. package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +6 -2
  110. package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +4 -1
  111. package/dist/scripts/src/components/Pages/Pages.js +7 -3
  112. package/dist/scripts/src/components/Pages/PagesNative.js +5 -0
  113. package/dist/scripts/src/components/ProgressBar/ProgressBar.js +1 -1
  114. package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +5 -2
  115. package/dist/scripts/src/components/Queue/Queue.js +11 -6
  116. package/dist/scripts/src/components/Queue/QueueNative.js +7 -1
  117. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +5 -5
  118. package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +9 -2
  119. package/dist/scripts/src/components/RadioGroup/RadioItem.js +8 -2
  120. package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +6 -2
  121. package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +4 -1
  122. package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +4 -0
  123. package/dist/scripts/src/components/Redirect/Redirect.js +8 -2
  124. package/dist/scripts/src/components/Select/Select.js +21 -12
  125. package/dist/scripts/src/components/Select/SelectNative.js +15 -2
  126. package/dist/scripts/src/components/SelectionStore/SelectionStore.js +6 -3
  127. package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +6 -2
  128. package/dist/scripts/src/components/Slider/Slider.js +28 -9
  129. package/dist/scripts/src/components/Slider/SliderNative.js +14 -3
  130. package/dist/scripts/src/components/Spinner/Spinner.js +2 -2
  131. package/dist/scripts/src/components/Spinner/SpinnerNative.js +6 -2
  132. package/dist/scripts/src/components/Splitter/Splitter.js +6 -6
  133. package/dist/scripts/src/components/Splitter/SplitterNative.js +10 -2
  134. package/dist/scripts/src/components/Stack/Stack.js +4 -4
  135. package/dist/scripts/src/components/Stack/StackNative.js +8 -2
  136. package/dist/scripts/src/components/StickyBox/StickyBox.js +1 -1
  137. package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +7 -1
  138. package/dist/scripts/src/components/Table/Table.js +15 -14
  139. package/dist/scripts/src/components/Table/TableNative.js +25 -9
  140. package/dist/scripts/src/components/TableOfContents/TableOfContents.js +12 -3
  141. package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +6 -2
  142. package/dist/scripts/src/components/Tabs/Tabs.js +2 -2
  143. package/dist/scripts/src/components/Tabs/TabsNative.js +7 -2
  144. package/dist/scripts/src/components/Text/Text.js +14 -12
  145. package/dist/scripts/src/components/Text/TextNative.js +7 -2
  146. package/dist/scripts/src/components/TextArea/TextArea.js +8 -5
  147. package/dist/scripts/src/components/TextArea/TextAreaNative.js +19 -2
  148. package/dist/scripts/src/components/TextBox/TextBox.js +5 -4
  149. package/dist/scripts/src/components/TextBox/TextBoxNative.js +14 -2
  150. package/dist/scripts/src/components/Theme/Theme.js +1 -1
  151. package/dist/scripts/src/components/Theme/ThemeNative.js +10 -14
  152. package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +18 -8
  153. package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +1 -1
  154. package/dist/scripts/src/components/TreeDisplay/TreeDisplayNative.js +2 -1
  155. package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +3 -57
  156. package/dist/scripts/src/components/ValidationSummary/ValidationSummaryNative.js +64 -0
  157. package/dist/scripts/src/components/metadata-helpers.js +11 -8
  158. package/dist/scripts/src/components-core/InspectorContext.js +0 -4
  159. package/dist/scripts/src/components-core/interception/ApiInterceptor.js +1 -1
  160. package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +6 -2
  161. package/dist/scripts/src/components-core/loader/DataLoader.js +1 -1
  162. package/dist/scripts/src/components-core/loader/Loader.js +7 -3
  163. package/dist/scripts/src/components-core/theming/themes/palette.js +5 -4
  164. package/dist/scripts/src/components-core/theming/themes/root.js +5 -4
  165. package/dist/scripts/src/components-core/theming/transformThemeVars.js +1 -17
  166. package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +92 -48
  167. package/dist/scripts/src/parsers/xmlui-parser/parser.js +179 -189
  168. package/dist/standalone/xmlui-standalone.es.d.ts +0 -2580
  169. package/dist/standalone/xmlui-standalone.umd.js +275 -305
  170. package/package.json +5 -7
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmlui",
3
- "version": "0.9.50",
3
+ "version": "0.9.52",
4
4
  "sideEffects": false,
5
5
  "scripts": {
6
6
  "start-test-bed": "cd src/testing/infrastructure && xmlui start",
@@ -51,7 +51,7 @@
51
51
  "@types/color": "3.0.6",
52
52
  "@vitejs/plugin-react": "4.3.0",
53
53
  "adm-zip": "0.5.10",
54
- "axios": "1.7.7",
54
+ "axios": "1.8.2",
55
55
  "chroma-js": "^3.1.2",
56
56
  "classnames": "2.5.1",
57
57
  "cmdk": "^1.0.4",
@@ -105,15 +105,13 @@
105
105
  "vite-plugin-svgr": "4.2.0",
106
106
  "vscode-languageserver": "^9.0.1",
107
107
  "vscode-languageserver-textdocument": "^1.0.11",
108
- "xml-formatter": "^3.6.6",
109
- "yargs": "17.7.2",
110
- "xmlui-charts": "*"
108
+ "yargs": "17.7.2"
111
109
  },
112
110
  "devDependencies": {
113
111
  "@babel/core": "7.19.6",
114
112
  "@babel/preset-env": "7.19.4",
115
113
  "@babel/preset-typescript": "7.18.6",
116
- "@playwright/test": "1.52.0",
114
+ "@playwright/test": "1.53.0",
117
115
  "@rollup/pluginutils": "5.1.0",
118
116
  "@types/adm-zip": "0.5.4",
119
117
  "@types/glob": "7.2.0",
@@ -141,7 +139,7 @@
141
139
  "rollup-plugin-visualizer": "5.8.3",
142
140
  "serve": "14.2.0",
143
141
  "typescript": "5.7.3",
144
- "vite": "5.4.9",
142
+ "vite": "5.4.19",
145
143
  "vite-plugin-dts": "4.5.0",
146
144
  "vitest": "^3.0.3"
147
145
  },
@@ -16,35 +16,35 @@ exports.APICallMd = (0, ComponentDefs_1.createMetadata)({
16
16
  description: "The method of data manipulation can be done via setting this property.",
17
17
  valueType: "string",
18
18
  availableValues: abstractions_1.httpMethodNames,
19
- defaultValue: "get",
19
+ defaultValue: APICallNative_1.defaultProps.method,
20
20
  },
21
21
  url: {
22
- description: "Use this property to set the URL to send data to.",
22
+ description: "Use this property to set the URL to which data will be sent. If not provided, an empty URL is used.",
23
23
  isRequired: true,
24
24
  valueType: "string",
25
25
  },
26
26
  rawBody: {
27
- description: "This property sets the request body to the value provided here without any conversion. " +
27
+ description: "This optional property sets the request body to the value provided here without any conversion. " +
28
28
  "Use the * \`body\` property if you want the object sent in JSON. When you define " +
29
29
  "\`body\` and \`rawBody\`, the latest one prevails.",
30
30
  valueType: "string",
31
31
  },
32
32
  body: {
33
- description: "This property sets the request body. The object you pass here will be serialized to " +
33
+ description: "This optional property sets the request body. The object you pass here will be serialized to " +
34
34
  "JSON when sending the request. Use the \`rawBody\` property to send another request " +
35
35
  "body using its native format. When you define \`body\` and \`rawBody\`, the latest " +
36
36
  "one prevails.",
37
37
  valueType: "string",
38
38
  },
39
39
  queryParams: {
40
- description: "This property sets the query parameters for the request. The object you pass here will " +
40
+ description: "This optional property sets the query parameters for the request. The object you pass here will " +
41
41
  "be serialized to a query string and appended to the request URL. You can specify key " +
42
42
  "and value pairs where the key is the name of a particular query parameter and the value " +
43
43
  "is that parameter's value.",
44
44
  },
45
45
  headers: {
46
- description: "You can define request header values as key and value pairs, where the key is the ID of " +
47
- "the particular header and the value is that header's value.",
46
+ description: "You can optionally define request header values as key-value pairs, where the key is the ID " +
47
+ "of the particular header and the value is that header's corresponding value.",
48
48
  },
49
49
  confirmTitle: {
50
50
  description: "This optional string sets the title in the confirmation dialog that is displayed before " +
@@ -62,18 +62,19 @@ exports.APICallMd = (0, ComponentDefs_1.createMetadata)({
62
62
  valueType: "string",
63
63
  },
64
64
  inProgressNotificationMessage: {
65
- description: "This property customizes the message that is displayed in a toast while the API operation " +
66
- "is in progress.",
65
+ description: "This property customizes the message that is displayed in a toast while the API " +
66
+ "operation is in progress. If not defined, no progress message is displayed.",
67
67
  valueType: "string",
68
68
  },
69
69
  errorNotificationMessage: {
70
- description: "This property defines the message to display automatically when the operation results " +
71
- "in an error.",
70
+ description: "This property defines the message to display automatically when the operation " +
71
+ "results in an error. You can use the `$error` context value in an expression to " +
72
+ "refer to the original error message.",
72
73
  valueType: "string",
73
74
  },
74
75
  completedNotificationMessage: {
75
76
  description: "This property defines the message to display automatically when the operation has " +
76
- "been completed.",
77
+ "been completed. When this property is not defined, the completion does not display any message.",
77
78
  valueType: "string",
78
79
  },
79
80
  payloadType: (0, metadata_helpers_1.dInternal)(),
@@ -9,11 +9,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.defaultProps = void 0;
12
13
  exports.APICallNative = APICallNative;
13
14
  const react_1 = require("react");
14
15
  const misc_1 = require("../../components-core/utils/misc");
15
16
  const APICall_1 = require("../../components-core/action/APICall");
17
+ exports.defaultProps = {
18
+ method: "get",
19
+ };
16
20
  function APICallNative({ registerComponentApi, node, uid }) {
21
+ // TODO pause until the apiInterceptorContext is initialized (to make sure the API calls are intercepted)
17
22
  const execute = (0, misc_1.useEvent)((executionContext, ...eventArgs) => __awaiter(this, void 0, void 0, function* () {
18
23
  var _a, _b, _c, _d;
19
24
  const options = eventArgs[1];
@@ -30,12 +30,14 @@ exports.AccordionMd = (0, ComponentDefs_1.createMetadata)({
30
30
  availableValues: abstractions_1.triggerPositionNames,
31
31
  },
32
32
  collapsedIcon: {
33
- description: `This property is the name of the icon that is displayed when the accordion is collapsed.`,
33
+ description: "This property is the name of the icon that is displayed when the accordion is " +
34
+ "collapsed. This property is the name of the icon that is displayed when the accordion is expanded. If not provided, a chevron-down icon is used.",
34
35
  valueType: "string",
35
36
  defaultValue: AccordionNative_1.defaultProps.collapsedIcon,
36
37
  },
37
38
  expandedIcon: {
38
- description: `This property is the name of the icon that is displayed when the accordion is expanded.`,
39
+ description: "This property is the name of the icon that is displayed when the accordion is " +
40
+ "expanded. If not provided, a chevron-up icon is used.",
39
41
  valueType: "string",
40
42
  },
41
43
  hideIcon: {
@@ -12,9 +12,9 @@ exports.AccordionItemMd = (0, ComponentDefs_1.createMetadata)({
12
12
  description: `\`${COMP}\` is a non-visual component describing a tab. Tabs component may use nested ` +
13
13
  `${COMP} instances from which the user can select.`,
14
14
  props: {
15
- header: (0, ComponentDefs_1.d)("This property declares the text used in the component's header."),
15
+ header: (0, ComponentDefs_1.d)("This property declares the text used in the component's header. If not provided, the header will be empty.", null, "string"),
16
16
  headerTemplate: (0, metadata_helpers_1.dComponent)("This property describes the template to use as the component's header."),
17
- initiallyExpanded: (0, ComponentDefs_1.d)(`This property indicates if the ${COMP} is expanded (\`true\`) or collapsed (\`false\`).`, null, "boolean", false),
17
+ initiallyExpanded: (0, ComponentDefs_1.d)(`This property indicates if the ${COMP} is expanded (\`true\`) or collapsed (\`false\`).`, null, "boolean", AccordionItemNative_1.defaultProps.initiallyExpanded),
18
18
  },
19
19
  });
20
20
  exports.accordionItemComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.AccordionItemMd, (rendererContext) => {
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.AccordionItemComponent = void 0;
39
+ exports.AccordionItemComponent = exports.defaultProps = void 0;
40
40
  const jsx_runtime_1 = require("react/jsx-runtime");
41
41
  const react_1 = require("react");
42
42
  const RAccordion = __importStar(require("@radix-ui/react-accordion"));
@@ -47,7 +47,11 @@ const IconNative_1 = __importDefault(require("../../components/Icon/IconNative")
47
47
  function defaultRenderer(header) {
48
48
  return (0, jsx_runtime_1.jsx)("div", { children: header });
49
49
  }
50
- exports.AccordionItemComponent = (0, react_1.forwardRef)(function AccordionItemComponent({ id, header, headerRenderer = defaultRenderer, content, initiallyExpanded, style }, forwardedRef) {
50
+ exports.defaultProps = {
51
+ initiallyExpanded: false,
52
+ headerRenderer: defaultRenderer,
53
+ };
54
+ exports.AccordionItemComponent = (0, react_1.forwardRef)(function AccordionItemComponent({ id, header, headerRenderer = exports.defaultProps.headerRenderer, content, initiallyExpanded = exports.defaultProps.initiallyExpanded, style }, forwardedRef) {
51
55
  const generatedId = (0, react_1.useId)();
52
56
  const itemId = (0, react_1.useMemo)(() => (id ? `${id}` : generatedId), [id, generatedId]);
53
57
  const triggerId = (0, react_1.useMemo)(() => `trigger_${itemId}`, [itemId]);
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.appRenderer = exports.AppMd = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const App_module_scss_1 = __importDefault(require("./App.module.scss"));
9
+ const Sheet_module_scss_1 = __importDefault(require("./Sheet.module.scss"));
9
10
  const ComponentDefs_1 = require("../../abstractions/ComponentDefs");
10
11
  const renderers_1 = require("../../components-core/renderers");
11
12
  const themeVars_1 = require("../../components-core/theming/themeVars");
@@ -31,7 +32,8 @@ exports.AppMd = (0, ComponentDefs_1.createMetadata)({
31
32
  availableValues: AppLayoutContext_1.appLayoutMd,
32
33
  },
33
34
  loggedInUser: {
34
- description: `Stores information about the currently logged in user.`,
35
+ description: "Stores information about the currently logged-in user. By not defining this property, " +
36
+ "you can indicate that no user is logged in.",
35
37
  valueType: "string",
36
38
  },
37
39
  logoTemplate: (0, metadata_helpers_1.dComponent)("Optional template of the app logo"),
@@ -48,36 +50,38 @@ exports.AppMd = (0, ComponentDefs_1.createMetadata)({
48
50
  valueType: "string",
49
51
  },
50
52
  name: {
51
- description: "Optional application name (visible in the browser tab)",
53
+ description: "Optional application name (visible in the browser tab). When you do not define " +
54
+ "this property, the tab name falls back to the one defined in the app\'s configuration. " +
55
+ 'If the name is not configured, "XMLUI App" is displayed in the tab.',
52
56
  valueType: "string",
53
57
  },
54
58
  scrollWholePage: {
55
59
  description: `This boolean property specifies whether the whole page should scroll (\`true\`) or just ` +
56
60
  `the content area (\`false\`). The default value is \`true\`.`,
57
61
  valueType: "boolean",
58
- defaultValue: true,
62
+ defaultValue: AppNative_1.defaultProps.scrollWholePage,
59
63
  },
60
64
  noScrollbarGutters: {
61
65
  description: "This boolean property specifies whether the scrollbar gutters should be hidden.",
62
66
  valueType: "boolean",
63
- defaultValue: false,
67
+ defaultValue: AppNative_1.defaultProps.noScrollbarGutters,
64
68
  },
65
69
  defaultTone: {
66
70
  description: 'This property sets the app\'s default tone ("light" or "dark").',
67
71
  valueType: "string",
68
- defaultValue: "light",
72
+ defaultValue: AppNative_1.defaultProps.defaultTone,
69
73
  availableValues: ["light", "dark"],
70
74
  },
71
75
  defaultTheme: {
72
76
  description: "This property sets the app's default theme.",
73
77
  valueType: "string",
74
- defaultValue: "xmlui",
78
+ defaultValue: AppNative_1.defaultProps.defaultTheme,
75
79
  },
76
80
  },
77
81
  events: {
78
82
  ready: (0, ComponentDefs_1.d)(`This event fires when the \`${COMP}\` component finishes rendering on the page.`),
79
83
  },
80
- themeVars: (0, themeVars_1.parseScssVar)(App_module_scss_1.default.themeVars),
84
+ themeVars: Object.assign(Object.assign({}, (0, themeVars_1.parseScssVar)(App_module_scss_1.default.themeVars)), (0, themeVars_1.parseScssVar)(Sheet_module_scss_1.default.themeVars)),
81
85
  limitThemeVarsToComponent: true,
82
86
  themeVarDescriptions: {
83
87
  "maxWidth-content-App": "This theme variable defines the maximum width of the main content. If the main " +
@@ -89,10 +93,11 @@ exports.AppMd = (0, ComponentDefs_1.createMetadata)({
89
93
  "with one of the vertical layouts.",
90
94
  },
91
95
  defaultThemeVars: {
96
+ "maxWidth-Drawer": "20rem",
92
97
  [`width-navPanel-${COMP}`]: "$space-64",
93
98
  [`backgroundColor-navPanel-${COMP}`]: "$backgroundColor",
94
99
  [`maxWidth-content-${COMP}`]: "$maxWidth-content",
95
- [`boxShadow-header-${COMP}`]: "$boxShadow-spread",
100
+ [`boxShadow-header-${COMP}`]: "none",
96
101
  [`boxShadow-navPanel-${COMP}`]: "$boxShadow-spread",
97
102
  [`scroll-padding-block-Pages`]: "$space-4",
98
103
  [`backgroundColor-content-App`]: "$backgroundColor",
@@ -394,7 +399,9 @@ function PageIndexer({ Page, renderChild, onIndexed, }) {
394
399
  const elementsToRemove = clone.querySelectorAll("style, script");
395
400
  elementsToRemove.forEach((el) => el.remove());
396
401
  const titleElement = clone.querySelector("h1");
397
- const title = titleElement ? titleElement.innerText : (navLabel || pageUrl.split("/").pop() || pageUrl);
402
+ const title = titleElement
403
+ ? titleElement.innerText
404
+ : navLabel || pageUrl.split("/").pop() || pageUrl;
398
405
  titleElement === null || titleElement === void 0 ? void 0 : titleElement.remove(); // Remove title element from clone to avoid duplication
399
406
  const textContent = (clone.textContent || "").trim().replace(/\s+/g, " ");
400
407
  const entry = {
@@ -408,7 +415,15 @@ function PageIndexer({ Page, renderChild, onIndexed, }) {
408
415
  setIsCollected(true); // Mark as collected
409
416
  });
410
417
  }
411
- }, [isContentRendered, pageUrl, searchContextUpdater, onIndexed, isCollected, isProcessing, navLabel]); // Ensure all dependencies are listed
418
+ }, [
419
+ isContentRendered,
420
+ pageUrl,
421
+ searchContextUpdater,
422
+ onIndexed,
423
+ isCollected,
424
+ isProcessing,
425
+ navLabel,
426
+ ]); // Ensure all dependencies are listed
412
427
  // If this PageIndexer instance's work is done, or content not yet rendered, render nothing.
413
428
  // The parent (SearchIndexCollector) will unmount this and mount the next one.
414
429
  if (isCollected || !isContentRendered) {
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.defaultProps = void 0;
17
18
  exports.App = App;
18
19
  exports.getAppLayoutOrientation = getAppLayoutOrientation;
19
20
  const jsx_runtime_1 = require("react/jsx-runtime");
@@ -32,7 +33,14 @@ const Sheet_1 = require("../../components/App/Sheet");
32
33
  const AppHeaderNative_1 = require("../../components/AppHeader/AppHeaderNative");
33
34
  const AppLayoutContext_1 = require("./AppLayoutContext");
34
35
  const SearchContext_1 = require("./SearchContext");
35
- function App({ children, style, layout, loggedInUser, scrollWholePage, noScrollbarGutters = false, onReady = lodash_es_1.noop, header, navPanel, footer, navPanelDef, logoContentDef, logo, logoDark, logoLight, defaultTone, defaultTheme, renderChild, name, }) {
36
+ exports.defaultProps = {
37
+ scrollWholePage: true,
38
+ noScrollbarGutters: false,
39
+ defaultTone: "light",
40
+ defaultTheme: "xmlui",
41
+ onReady: lodash_es_1.noop,
42
+ };
43
+ function App({ children, style, layout, loggedInUser, scrollWholePage = exports.defaultProps.scrollWholePage, noScrollbarGutters = exports.defaultProps.noScrollbarGutters, onReady = exports.defaultProps.onReady, header, navPanel, footer, navPanelDef, logoContentDef, logo, logoDark, logoLight, defaultTone, defaultTheme, renderChild, name, }) {
36
44
  const { getThemeVar } = (0, ThemeContext_1.useTheme)();
37
45
  const { setActiveThemeTone, setActiveThemeId, themes } = (0, ThemeContext_1.useThemes)();
38
46
  const mounted = (0, react_1.useRef)(false);
@@ -30,7 +30,7 @@ exports.AppHeaderMd = (0, ComponentDefs_1.createMetadata)({
30
30
  showLogo: {
31
31
  description: "Show the logo in the header",
32
32
  valueType: "boolean",
33
- defaultValue: true,
33
+ defaultValue: AppHeaderNative_1.defaultProps.showLogo,
34
34
  },
35
35
  },
36
36
  themeVars: (0, themeVars_1.parseScssVar)(AppHeader_module_scss_1.default.themeVars),
@@ -46,7 +46,7 @@ exports.appHeaderComponentRenderer = (0, renderers_1.createComponentRenderer)(CO
46
46
  // --- Convert the plain (text) logo template into component definition
47
47
  const logoTemplate = node.props.logoTemplate || ((_a = node.slots) === null || _a === void 0 ? void 0 : _a.logoSlot);
48
48
  const titleTemplate = node.props.titleTemplate || ((_b = node.slots) === null || _b === void 0 ? void 0 : _b.titleSlot);
49
- return ((0, jsx_runtime_1.jsx)(AppHeaderNative_1.AppContextAwareAppHeader, { profileMenu: renderChild(extractValue(node.props.profileMenuTemplate, true)), title: extractValue(node.props.title), showLogo: extractValue.asOptionalBoolean(node.props.showLogo, true), titleContent: titleTemplate && ((0, jsx_runtime_1.jsx)(SlotItem_1.SlotItem, { node: titleTemplate, renderChild: renderChild, slotProps: { title: extractValue(node.props.title) } })), logoContent: renderChild(logoTemplate, {
49
+ return ((0, jsx_runtime_1.jsx)(AppHeaderNative_1.AppContextAwareAppHeader, { profileMenu: renderChild(extractValue(node.props.profileMenuTemplate, true)), title: extractValue(node.props.title), showLogo: extractValue.asOptionalBoolean(node.props.showLogo), titleContent: titleTemplate && ((0, jsx_runtime_1.jsx)(SlotItem_1.SlotItem, { node: titleTemplate, renderChild: renderChild, slotProps: { title: extractValue(node.props.title) } })), logoContent: renderChild(logoTemplate, {
50
50
  type: "Stack",
51
51
  orientation: "horizontal",
52
52
  }), style: layoutCss, className: layoutContext === null || layoutContext === void 0 ? void 0 : layoutContext.themeClassName, renderChild: renderChild, children: renderChild(node.children, {
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AppHeader = void 0;
6
+ exports.AppHeader = exports.defaultProps = void 0;
7
7
  exports.useLogoUrl = useLogoUrl;
8
8
  exports.AppContextAwareAppHeader = AppContextAwareAppHeader;
9
9
  const jsx_runtime_1 = require("react/jsx-runtime");
@@ -19,6 +19,9 @@ const AppLayoutContext_1 = require("../../components/App/AppLayoutContext");
19
19
  const ButtonNative_1 = require("../../components/Button/ButtonNative");
20
20
  const NavLinkNative_1 = require("../../components/NavLink/NavLinkNative");
21
21
  const hooks_1 = require("../../components-core/utils/hooks");
22
+ exports.defaultProps = {
23
+ showLogo: true,
24
+ };
22
25
  function tryLoadImage(url, onLoaded, onError) {
23
26
  const img = new Image();
24
27
  img.src = url;
@@ -40,7 +43,7 @@ function useLogoUrl() {
40
43
  const toneLogoUrl = (0, ThemeContext_1.useResourceUrl)(`resource:logo-${activeThemeTone}`) || logoUrlByTone[activeThemeTone];
41
44
  return toneLogoUrl || baseLogoUrl;
42
45
  }
43
- const AppHeader = ({ children, profileMenu, style = constants_1.EMPTY_OBJECT, logoContent, className, canRestrictContentWidth, navPanelVisible = true, toggleDrawer, showLogo, hasRegisteredNavPanel, title, titleContent, registerSubNavPanelSlot, }) => {
46
+ const AppHeader = ({ children, profileMenu, style = constants_1.EMPTY_OBJECT, logoContent, className, canRestrictContentWidth, navPanelVisible = true, toggleDrawer, showLogo = exports.defaultProps.showLogo, hasRegisteredNavPanel, title, titleContent, registerSubNavPanelSlot, }) => {
44
47
  const { mediaSize } = (0, AppContext_1.useAppContext)();
45
48
  const logoUrl = useLogoUrl();
46
49
  const subNavPanelSlot = (0, react_1.useRef)(null);
@@ -15,14 +15,14 @@ exports.AppStateMd = (0, ComponentDefs_1.createMetadata)({
15
15
  `Multiple \`${COMP}\` instances with the same bucket will share the same state object: any ` +
16
16
  `of them updating the state will cause the other instances to view the new, updated state.`,
17
17
  valueType: "string",
18
- defaultValue: "default",
18
+ defaultValue: AppStateNative_1.defaultProps.bucket,
19
19
  },
20
20
  initialValue: {
21
21
  description: `This property contains the initial state value. Though you can use multiple \`${COMP}\`` +
22
22
  `component instances for the same bucket with their \`initialValue\` set, it may result ` +
23
23
  `in faulty app logic. When xmlui instantiates an \`${COMP}\` with an explicit initial ` +
24
24
  `value, that value is immediately set. Multiple initial values may result in ` +
25
- `undesired initialization.`,
25
+ `undesired initialization. By default, the bucked's initial state is undefined.`,
26
26
  },
27
27
  },
28
28
  apis: {
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultProps = void 0;
3
4
  exports.AppState = AppState;
4
5
  const hooks_1 = require("../../components-core/utils/hooks");
5
6
  const AppStateContext_1 = require("../../components/App/AppStateContext");
6
- function AppState({ bucket = "default", updateState, initialValue, registerComponentApi, }) {
7
+ exports.defaultProps = {
8
+ bucket: "default",
9
+ };
10
+ function AppState({ bucket = exports.defaultProps.bucket, updateState, initialValue, registerComponentApi, }) {
7
11
  const registerAppState = (0, AppStateContext_1.useAppStateContextPart)((value) => value.registerAppState);
8
12
  const update = (0, AppStateContext_1.useAppStateContextPart)((value) => value.update);
9
13
  (0, hooks_1.useIsomorphicLayoutEffect)(() => {
@@ -21,18 +21,18 @@ exports.AutoCompleteMd = (0, ComponentDefs_1.createMetadata)({
21
21
  placeholder: (0, metadata_helpers_1.dPlaceholder)(),
22
22
  initialValue: (0, metadata_helpers_1.dInitialValue)(),
23
23
  maxLength: (0, metadata_helpers_1.dMaxLength)(),
24
- autoFocus: (0, metadata_helpers_1.dAutoFocus)(),
25
- required: (0, metadata_helpers_1.dRequired)(),
26
- readOnly: (0, metadata_helpers_1.dReadonly)(),
27
- enabled: (0, metadata_helpers_1.dEnabled)(),
28
- creatable: (0, ComponentDefs_1.d)(`This property allows the user to create new items that are not present in the list of options.`),
29
- validationStatus: (0, metadata_helpers_1.dValidationStatus)(),
24
+ autoFocus: Object.assign(Object.assign({}, (0, metadata_helpers_1.dAutoFocus)()), { defaultValue: AutoCompleteNative_1.defaultProps.autoFocus }),
25
+ required: Object.assign(Object.assign({}, (0, metadata_helpers_1.dRequired)()), { defaultValue: AutoCompleteNative_1.defaultProps.required }),
26
+ readOnly: Object.assign(Object.assign({}, (0, metadata_helpers_1.dReadonly)()), { defaultValue: AutoCompleteNative_1.defaultProps.readOnly }),
27
+ enabled: Object.assign(Object.assign({}, (0, metadata_helpers_1.dEnabled)()), { defaultValue: AutoCompleteNative_1.defaultProps.enabled }),
28
+ creatable: (0, ComponentDefs_1.d)(`This property allows the user to create new items that are not present in the list of options.`, null, "boolean", AutoCompleteNative_1.defaultProps.creatable),
29
+ validationStatus: Object.assign(Object.assign({}, (0, metadata_helpers_1.dValidationStatus)()), { defaultValue: AutoCompleteNative_1.defaultProps.validationStatus }),
30
30
  label: (0, metadata_helpers_1.dLabel)(),
31
- labelPosition: (0, metadata_helpers_1.dLabelPosition)("top"),
31
+ labelPosition: Object.assign(Object.assign({}, (0, metadata_helpers_1.dLabelPosition)()), { defaultValue: AutoCompleteNative_1.defaultProps.labelPosition }),
32
32
  labelWidth: (0, metadata_helpers_1.dLabelWidth)(COMP),
33
33
  labelBreak: (0, metadata_helpers_1.dLabelBreak)(COMP),
34
34
  dropdownHeight: (0, ComponentDefs_1.d)("This property sets the height of the dropdown list."),
35
- multi: (0, metadata_helpers_1.dMulti)(),
35
+ multi: Object.assign(Object.assign({}, (0, metadata_helpers_1.dMulti)()), { defaultValue: AutoCompleteNative_1.defaultProps.multi }),
36
36
  optionTemplate: (0, metadata_helpers_1.dComponent)(`This property enables the customization of list items. To access the attributes of ` +
37
37
  `a list item use the \`$item\` context variable.`),
38
38
  emptyListTemplate: (0, ComponentDefs_1.d)("This property defines the template to display when the list of options is empty."),
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AutoComplete = void 0;
6
+ exports.AutoComplete = exports.defaultProps = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const react_1 = require("react");
9
9
  const classnames_1 = __importDefault(require("classnames"));
@@ -25,7 +25,21 @@ function defaultRenderer(item) {
25
25
  function isOptionsExist(options, newOptions) {
26
26
  return newOptions.some((option) => Array.from(options).some((o) => o.value === option.value || o.label === option.label));
27
27
  }
28
- exports.AutoComplete = (0, react_1.forwardRef)(function AutoComplete({ id, initialValue, value, enabled = true, placeholder, updateState = constants_1.noop, validationStatus = "none", onDidChange = constants_1.noop, onFocus = constants_1.noop, onBlur = constants_1.noop, registerComponentApi, optionRenderer = defaultRenderer, emptyListTemplate, style, children, readOnly = false, autoFocus = false, dropdownHeight, multi = false, label, labelPosition, labelWidth, labelBreak, required = false, creatable = false, }, forwardedRef) {
28
+ exports.defaultProps = {
29
+ enabled: true,
30
+ readOnly: false,
31
+ autoFocus: false,
32
+ multi: false,
33
+ required: false,
34
+ validationStatus: "none",
35
+ creatable: false,
36
+ optionRenderer: defaultRenderer,
37
+ updateState: constants_1.noop,
38
+ onDidChange: constants_1.noop,
39
+ onFocus: constants_1.noop,
40
+ onBlur: constants_1.noop,
41
+ };
42
+ exports.AutoComplete = (0, react_1.forwardRef)(function AutoComplete({ id, initialValue, value, enabled = exports.defaultProps.enabled, placeholder, updateState = exports.defaultProps.updateState, validationStatus = exports.defaultProps.validationStatus, onDidChange = exports.defaultProps.onDidChange, onFocus = exports.defaultProps.onFocus, onBlur = exports.defaultProps.onBlur, registerComponentApi, optionRenderer = exports.defaultProps.optionRenderer, emptyListTemplate, style, children, readOnly = exports.defaultProps.readOnly, autoFocus = exports.defaultProps.autoFocus, dropdownHeight, multi = exports.defaultProps.multi, label, labelPosition, labelWidth, labelBreak, required = exports.defaultProps.required, creatable = exports.defaultProps.creatable, }, forwardedRef) {
29
43
  const [referenceElement, setReferenceElement] = (0, react_1.useState)(null);
30
44
  const inputRef = (0, react_1.useRef)(null);
31
45
  const [open, setOpen] = (0, react_1.useState)(false);
@@ -22,11 +22,13 @@ exports.AvatarMd = (0, ComponentDefs_1.createMetadata)({
22
22
  defaultValue: AvatarNative_1.defaultProps.size,
23
23
  },
24
24
  name: {
25
- description: `This property sets the name value the ${COMP} uses to display initials.`,
25
+ description: `This property sets the name value the ${COMP} uses to display initials. If neither ` +
26
+ "this property nor \`url\` is defined, an empty avatar is displayed.",
26
27
  valueType: "string",
27
28
  },
28
29
  url: {
29
- description: `This property specifies the URL of the image to display in the ${COMP}.`,
30
+ description: `This property specifies the URL of the image to display in the ${COMP}. ` +
31
+ "If neither this property nor \`name\` is defined, an empty avatar is displayed.",
30
32
  valueType: "string",
31
33
  },
32
34
  },
@@ -27,8 +27,8 @@ exports.BackdropMd = (0, ComponentDefs_1.createMetadata)({
27
27
  },
28
28
  opacity: {
29
29
  description: "The opacity of the backdrop.",
30
- valueType: "number",
31
- defaultValue: 0.1,
30
+ valueType: "string",
31
+ defaultValue: BackdropNative_1.defaultProps.opacity,
32
32
  },
33
33
  },
34
34
  themeVars: (0, themeVars_1.parseScssVar)(Backdrop_module_scss_1.default.themeVars),
@@ -18,7 +18,9 @@ exports.BadgeMd = (0, ComponentDefs_1.createMetadata)({
18
18
  description: `The \`${COMP}\` is a text label that accepts a color map to define its background color and, optionally, its label color.`,
19
19
  props: {
20
20
  value: {
21
- description: "The text that the component displays",
21
+ description: "The text that the component displays. If this is not defined, the component renders " +
22
+ "its children as the content of the badge. If neither text nor any child is defined, " +
23
+ "the component renders a single frame for the badge with a non-breakable space.",
22
24
  type: "string",
23
25
  isRequired: true,
24
26
  },
@@ -27,11 +29,11 @@ exports.BadgeMd = (0, ComponentDefs_1.createMetadata)({
27
29
  "with fully rounded corners.",
28
30
  type: "string",
29
31
  availableValues: BadgeNative_1.badgeVariantValues,
30
- defaultValue: "badge",
32
+ defaultValue: BadgeNative_1.defaultProps.variant,
31
33
  },
32
34
  colorMap: {
33
35
  description: `The \`${COMP}\` component supports the mapping of a list of colors using the \`value\` prop as the ` +
34
- `key. Provide the component with a list or key-value pairs in two ways:`,
36
+ `key. If this property is not set, no color mapping is used.`,
35
37
  },
36
38
  themeColor: (0, metadata_helpers_1.dInternal)(`(**NOT IMPLEMENTED YET**) The theme color of the component.`),
37
39
  indicatorText: (0, metadata_helpers_1.dInternal)(`(**NOT IMPLEMENTED YET**) This property defines the text to display in the indicator. If it is not ` +
@@ -50,7 +52,7 @@ exports.BadgeMd = (0, ComponentDefs_1.createMetadata)({
50
52
  [`borderRadius-${COMP}`]: "4px",
51
53
  [`fontSize-${COMP}`]: "0.8em",
52
54
  [`fontSize-${COMP}-pill`]: "0.8em",
53
- [`backgroundColor-${COMP}`]: "rgba($color-secondary-500-rgb, .6)",
55
+ [`backgroundColor-${COMP}`]: "rgb(from $color-secondary-500 r g b / 0.6)",
54
56
  [`textColor-${COMP}`]: "$const-color-surface-0",
55
57
  },
56
58
  });
@@ -71,7 +73,7 @@ exports.badgeComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP,
71
73
  };
72
74
  }
73
75
  }
74
- return ((0, jsx_runtime_1.jsx)(BadgeNative_1.Badge, { variant: extractValue(node.props.variant), color: colorValue, style: layoutCss, children: value || renderChild(node.children) }));
76
+ return ((0, jsx_runtime_1.jsx)(BadgeNative_1.Badge, { variant: extractValue(node.props.variant), color: colorValue, style: layoutCss, children: value || (node.children && renderChild(node.children)) || String.fromCharCode(0xa0) }));
75
77
  });
76
78
  function resolveColor(value) {
77
79
  return value.startsWith("$") ? (0, StyleParser_1.toCssVar)(value) : value;
@@ -12,15 +12,16 @@ exports.BookmarkMd = (0, ComponentDefs_1.createMetadata)({
12
12
  opaque: true,
13
13
  props: {
14
14
  uid: {
15
- description: "The unique identifier of the bookmark. You can use this identifier in links to navigate " +
16
- "to this component's location.",
15
+ description: "The unique identifier of the bookmark. You can use this identifier in links " +
16
+ "to navigate to this component's location. If this identifier is not set, you cannot " +
17
+ "programmatically visit this bookmark.",
17
18
  valueType: "string",
18
19
  },
19
20
  level: {
20
21
  description: "The level of the bookmark. The level is used to determine the bookmark's " +
21
22
  "position in the table of contents.",
22
23
  valueType: "number",
23
- defaultValue: 1,
24
+ defaultValue: BookmarkNative_1.defaultProps.level,
24
25
  },
25
26
  title: {
26
27
  description: "Defines the text to display the bookmark in the table of contents. If this property is " +
@@ -30,7 +31,7 @@ exports.BookmarkMd = (0, ComponentDefs_1.createMetadata)({
30
31
  omitFromToc: {
31
32
  description: "If true, this bookmark will be excluded from the table of contents.",
32
33
  valueType: "boolean",
33
- defaultValue: false,
34
+ defaultValue: BookmarkNative_1.defaultProps.omitFromToc,
34
35
  },
35
36
  },
36
37
  });
@@ -32,15 +32,17 @@ exports.CardMd = (0, ComponentDefs_1.createMetadata)({
32
32
  valueType: "string",
33
33
  },
34
34
  title: {
35
- description: `This prop sets the prestyled title.`,
35
+ description: "This prop sets the pre-styled title. If the property is not set, no title " +
36
+ "is displayed in the Card.",
36
37
  valueType: "string",
37
38
  },
38
39
  subtitle: {
39
- description: `This prop sets the prestyled subtitle.`,
40
+ description: "This prop sets the pre-styled subtitle. If the property is not set, no subtitle " +
41
+ "is displayed in the Card.",
40
42
  valueType: "string",
41
43
  },
42
44
  linkTo: {
43
- description: `This property wraps the title in a \`Link\` component that is clickable to navigate.`,
45
+ description: "This optional property wraps the title in a \`Link\` component that is clickable to navigate.",
44
46
  valueType: "string",
45
47
  },
46
48
  orientation: {
@@ -74,7 +76,7 @@ exports.CardMd = (0, ComponentDefs_1.createMetadata)({
74
76
  [`gap-avatar-${COMP}`]: "The gap between the avatar and the title panel",
75
77
  [`horizontalAlignment-title-${COMP}`]: "The horizontal alignment of panel with the title and subtitle",
76
78
  [`verticalAlignment-title-${COMP}`]: "The vertical alignment of the title and subtitle to the avatar",
77
- }
79
+ },
78
80
  });
79
81
  exports.cardComponentRenderer = (0, renderers_1.createComponentRenderer)("Card", exports.CardMd, ({ node, extractValue, renderChild, layoutCss }) => {
80
82
  return ((0, jsx_runtime_1.jsx)(CardNative_1.Card, { style: layoutCss, title: extractValue.asOptionalString(node.props.title), linkTo: extractValue.asOptionalString(node.props.linkTo), subtitle: extractValue.asOptionalString(node.props.subtitle), avatarUrl: extractValue.asOptionalString(node.props.avatarUrl), showAvatar: extractValue.asOptionalBoolean(node.props.showAvatar), avatarSize: extractValue.asOptionalString(node.props.avatarSize), orientation: extractValue.asOptionalString(node.props.orientation), children: renderChild(node.children, {
@@ -12,7 +12,8 @@ exports.ChangeListenerMd = (0, ComponentDefs_1.createMetadata)({
12
12
  `particular value (component property, state, etc.) changes.`,
13
13
  props: {
14
14
  listenTo: {
15
- description: `Value to the changes of which this component listens.`,
15
+ description: "Value to the changes of which this component listens. If this property is not set, " +
16
+ "the `ChangeListener` is inactive.",
16
17
  valueType: "any",
17
18
  },
18
19
  throttleWaitInMs: {