xmlui 0.10.7 → 0.10.10

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 (61) hide show
  1. package/dist/lib/{index-CTri_fRG.mjs → index-C71PAj7E.mjs} +16456 -16219
  2. package/dist/lib/index.css +1 -1
  3. package/dist/{metadata/initMock-DzaOI8sC.mjs → lib/initMock-Bvbl2Pa3.mjs} +119 -113
  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-DrEexTX9.mjs → metadata-utils-gIOZMGG7.mjs} +51 -46
  7. package/dist/lib/{server-common-ddmPKhK6.mjs → server-common-BfCSNpXG.mjs} +4467 -4437
  8. package/dist/lib/xmlui-parser.d.ts +3 -3
  9. package/dist/lib/xmlui.d.ts +14 -10
  10. package/dist/lib/xmlui.mjs +26 -26
  11. package/dist/metadata/{collectedComponentMetadata-Oj8WR8B1.mjs → collectedComponentMetadata-Dn91__HO.mjs} +18722 -18481
  12. package/dist/{lib/initMock-abcNyaP8.mjs → metadata/initMock-ghNfStAu.mjs} +119 -113
  13. package/dist/metadata/style.css +1 -1
  14. package/dist/metadata/xmlui-metadata.mjs +1 -1
  15. package/dist/metadata/xmlui-metadata.umd.js +99 -99
  16. package/dist/scripts/package.json +1 -1
  17. package/dist/scripts/src/components/Accordion/AccordionItemNative.js +2 -2
  18. package/dist/scripts/src/components/App/AppNative.js +6 -7
  19. package/dist/scripts/src/components/Breakout/BreakoutNative.js +2 -2
  20. package/dist/scripts/src/components/Button/ButtonNative.js +4 -0
  21. package/dist/scripts/src/components/Carousel/Carousel.js +13 -20
  22. package/dist/scripts/src/components/Carousel/CarouselContext.js +11 -2
  23. package/dist/scripts/src/components/Carousel/CarouselItemNative.js +2 -2
  24. package/dist/scripts/src/components/Carousel/CarouselNative.js +2 -2
  25. package/dist/scripts/src/components/Charts/BarChart/BarChart.js +4 -4
  26. package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +5 -1
  27. package/dist/scripts/src/components/Charts/LineChart/LineChart.js +3 -3
  28. package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +5 -1
  29. package/dist/scripts/src/components/ComponentProvider.js +2 -0
  30. package/dist/scripts/src/components/DateInput/DateInput.js +7 -9
  31. package/dist/scripts/src/components/DateInput/DateInputNative.js +101 -38
  32. package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +18 -12
  33. package/dist/scripts/src/components/FormItem/ItemWithLabel.js +3 -3
  34. package/dist/scripts/src/components/Input/PartialInput.js +28 -3
  35. package/dist/scripts/src/components/List/ListNative.js +6 -5
  36. package/dist/scripts/src/components/NavPanel/NavPanelNative.js +3 -8
  37. package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +2 -2
  38. package/dist/scripts/src/components/Pagination/Pagination.js +2 -1
  39. package/dist/scripts/src/components/Slider/Slider.js +10 -8
  40. package/dist/scripts/src/components/Slider/SliderNative.js +24 -21
  41. package/dist/scripts/src/components/Table/Table.js +9 -6
  42. package/dist/scripts/src/components/Table/TableNative.js +18 -13
  43. package/dist/scripts/src/components/TextArea/TextAreaNative.js +3 -3
  44. package/dist/scripts/src/components/TextBox/TextBoxNative.js +2 -2
  45. package/dist/scripts/src/components/TimeInput/TimeInput.js +10 -10
  46. package/dist/scripts/src/components/TimeInput/TimeInputNative.js +87 -38
  47. package/dist/scripts/src/components/Timer/Timer.js +62 -0
  48. package/dist/scripts/src/components/Timer/TimerNative.js +179 -0
  49. package/dist/scripts/src/components/Toggle/Toggle.js +1 -1
  50. package/dist/scripts/src/components/Tooltip/Tooltip.js +9 -9
  51. package/dist/scripts/src/components/Tooltip/TooltipNative.js +4 -4
  52. package/dist/scripts/src/components/abstractions.js +6 -3
  53. package/dist/scripts/src/components-core/ComponentDecorator.js +3 -2
  54. package/dist/scripts/src/components-core/interception/ApiInterceptor.js +4 -1
  55. package/dist/scripts/src/components-core/interception/Backend.js +14 -1
  56. package/dist/scripts/src/components-core/parts.js +0 -4
  57. package/dist/standalone/xmlui-standalone.es.d.ts +20 -14
  58. package/dist/standalone/xmlui-standalone.umd.js +265 -265
  59. package/package.json +1 -1
  60. package/dist/scripts/src/components-core/ScrollContext.js +0 -11
  61. package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmlui",
3
- "version": "0.10.7",
3
+ "version": "0.10.10",
4
4
  "sideEffects": false,
5
5
  "scripts": {
6
6
  "start-test-bed": "cd src/testing/infrastructure && xmlui start",
@@ -86,10 +86,10 @@ exports.AccordionItemComponent = (0, react_1.forwardRef)(function AccordionItemC
86
86
  unRegister(triggerId);
87
87
  };
88
88
  }, [triggerId, unRegister]);
89
- return ((0, jsx_runtime_1.jsxs)(RAccordion.Item, { value: itemId, className: (0, classnames_1.default)(Accordion_module_scss_1.default.item, className), ref: forwardedRef, style: style, children: [(0, jsx_runtime_1.jsx)(RAccordion.Header, { className: Accordion_module_scss_1.default.header, children: (0, jsx_runtime_1.jsxs)(RAccordion.Trigger, Object.assign({}, rest, { id: `trigger_${itemId}`, className: (0, classnames_1.default)(Accordion_module_scss_1.default.trigger, {
89
+ return ((0, jsx_runtime_1.jsxs)(RAccordion.Item, { id: itemId, value: itemId, className: (0, classnames_1.default)(Accordion_module_scss_1.default.item, className), ref: forwardedRef, style: style, children: [(0, jsx_runtime_1.jsx)(RAccordion.Header, { className: Accordion_module_scss_1.default.header, children: (0, jsx_runtime_1.jsxs)(RAccordion.Trigger, Object.assign({}, rest, { id: triggerId, className: (0, classnames_1.default)(Accordion_module_scss_1.default.trigger, {
90
90
  [Accordion_module_scss_1.default.triggerStart]: triggerPosition === "start",
91
91
  }), children: [headerRenderer(header), !hideIcon && ((0, jsx_runtime_1.jsx)("span", { style: {
92
92
  transform: expanded && !expandedIcon ? `rotate(${rotateExpanded})` : "rotate(0deg)",
93
93
  transition: "transform 300ms cubic-bezier(0.87, 0, 0.13, 1)",
94
- }, children: (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: !expanded ? collapsedIcon : expandedIcon || collapsedIcon, className: Accordion_module_scss_1.default.chevron }) }))] })) }), (0, jsx_runtime_1.jsx)(RAccordion.Content, { className: Accordion_module_scss_1.default.contentWrapper, children: (0, jsx_runtime_1.jsx)("div", { className: Accordion_module_scss_1.default.content, children: content }) })] }, itemId));
94
+ }, children: (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: !expanded ? collapsedIcon : expandedIcon || collapsedIcon, className: Accordion_module_scss_1.default.chevron, "aria-hidden": "true" }) }))] })) }), (0, jsx_runtime_1.jsx)(RAccordion.Content, { className: Accordion_module_scss_1.default.contentWrapper, children: (0, jsx_runtime_1.jsx)("div", { className: Accordion_module_scss_1.default.content, children: content }) })] }, itemId));
95
95
  });
@@ -25,7 +25,6 @@ const lodash_es_1 = require("lodash-es");
25
25
  const classnames_1 = __importDefault(require("classnames"));
26
26
  const App_module_scss_1 = __importDefault(require("./App.module.scss"));
27
27
  const AppContext_1 = require("../../components-core/AppContext");
28
- const ScrollContext_1 = require("../../components-core/ScrollContext");
29
28
  const hooks_1 = require("../../components-core/utils/hooks");
30
29
  const ThemeContext_1 = require("../../components-core/theming/ThemeContext");
31
30
  const css_utils_1 = require("../../components-core/utils/css-utils");
@@ -229,13 +228,13 @@ function App(_a) {
229
228
  });
230
229
  switch (safeLayout) {
231
230
  case "vertical":
232
- content = ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: (0, classnames_1.default)(wrapperBaseClasses, App_module_scss_1.default.vertical), style: styleWithHelpers, children: [navPanelVisible && (0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(App_module_scss_1.default.navPanelWrapper), children: navPanel }), (0, jsx_runtime_1.jsxs)("div", { className: App_module_scss_1.default.contentWrapper, ref: scrollPageContainerRef, children: [(0, jsx_runtime_1.jsx)("header", { ref: headerRefCallback, className: (0, classnames_1.default)(App_module_scss_1.default.headerWrapper), children: header }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.PagesWrapper, ref: noScrollPageContainerRef, children: (0, jsx_runtime_1.jsx)(ScrollContext_1.ScrollContext.Provider, { value: scrollContainerRef, children: (0, jsx_runtime_1.jsx)("div", { className: pagesWrapperClasses, children: children }) }) }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.footerWrapper, ref: footerRefCallback, children: footer })] })] })));
231
+ content = ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: (0, classnames_1.default)(wrapperBaseClasses, App_module_scss_1.default.vertical), style: styleWithHelpers, children: [navPanelVisible && (0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(App_module_scss_1.default.navPanelWrapper), children: navPanel }), (0, jsx_runtime_1.jsxs)("div", { className: App_module_scss_1.default.contentWrapper, ref: scrollPageContainerRef, children: [(0, jsx_runtime_1.jsx)("header", { ref: headerRefCallback, className: (0, classnames_1.default)(App_module_scss_1.default.headerWrapper), children: header }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.PagesWrapper, ref: noScrollPageContainerRef, children: (0, jsx_runtime_1.jsx)("div", { className: pagesWrapperClasses, children: children }) }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.footerWrapper, ref: footerRefCallback, children: footer })] })] })));
233
232
  break;
234
233
  case "vertical-sticky":
235
- content = ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: (0, classnames_1.default)(wrapperBaseClasses, App_module_scss_1.default.vertical, App_module_scss_1.default.sticky), style: styleWithHelpers, children: [navPanelVisible && (0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(App_module_scss_1.default.navPanelWrapper), children: navPanel }), (0, jsx_runtime_1.jsxs)("div", { className: App_module_scss_1.default.contentWrapper, ref: scrollPageContainerRef, children: [(0, jsx_runtime_1.jsx)("header", { ref: headerRefCallback, className: (0, classnames_1.default)(App_module_scss_1.default.headerWrapper, App_module_scss_1.default.sticky), children: header }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.PagesWrapper, ref: noScrollPageContainerRef, children: (0, jsx_runtime_1.jsx)(ScrollContext_1.ScrollContext.Provider, { value: scrollContainerRef, children: (0, jsx_runtime_1.jsx)("div", { className: pagesWrapperClasses, children: children }) }) }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.footerWrapper, ref: footerRefCallback, children: footer })] })] })));
234
+ content = ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: (0, classnames_1.default)(wrapperBaseClasses, App_module_scss_1.default.vertical, App_module_scss_1.default.sticky), style: styleWithHelpers, children: [navPanelVisible && (0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(App_module_scss_1.default.navPanelWrapper), children: navPanel }), (0, jsx_runtime_1.jsxs)("div", { className: App_module_scss_1.default.contentWrapper, ref: scrollPageContainerRef, children: [(0, jsx_runtime_1.jsx)("header", { ref: headerRefCallback, className: (0, classnames_1.default)(App_module_scss_1.default.headerWrapper, App_module_scss_1.default.sticky), children: header }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.PagesWrapper, ref: noScrollPageContainerRef, children: (0, jsx_runtime_1.jsx)("div", { className: pagesWrapperClasses, children: children }) }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.footerWrapper, ref: footerRefCallback, children: footer })] })] })));
236
235
  break;
237
236
  case "vertical-full-header":
238
- content = ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: (0, classnames_1.default)(wrapperBaseClasses, App_module_scss_1.default.verticalFullHeader), style: styleWithHelpers, ref: scrollPageContainerRef, children: [(0, jsx_runtime_1.jsx)("header", { className: (0, classnames_1.default)(App_module_scss_1.default.headerWrapper, App_module_scss_1.default.sticky), ref: headerRefCallback, children: header }), (0, jsx_runtime_1.jsxs)("div", { className: App_module_scss_1.default.content, children: [navPanelVisible && (0, jsx_runtime_1.jsx)("aside", { className: App_module_scss_1.default.navPanelWrapper, children: navPanel }), (0, jsx_runtime_1.jsx)("main", { className: App_module_scss_1.default.contentWrapper, children: (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.PagesWrapper, ref: noScrollPageContainerRef, children: (0, jsx_runtime_1.jsx)(ScrollContext_1.ScrollContext.Provider, { value: scrollContainerRef, children: (0, jsx_runtime_1.jsx)("div", { className: pagesWrapperClasses, children: children }) }) }) })] }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.footerWrapper, ref: footerRefCallback, children: footer })] })));
237
+ content = ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: (0, classnames_1.default)(wrapperBaseClasses, App_module_scss_1.default.verticalFullHeader), style: styleWithHelpers, ref: scrollPageContainerRef, children: [(0, jsx_runtime_1.jsx)("header", { className: (0, classnames_1.default)(App_module_scss_1.default.headerWrapper, App_module_scss_1.default.sticky), ref: headerRefCallback, children: header }), (0, jsx_runtime_1.jsxs)("div", { className: App_module_scss_1.default.content, children: [navPanelVisible && (0, jsx_runtime_1.jsx)("aside", { className: App_module_scss_1.default.navPanelWrapper, children: navPanel }), (0, jsx_runtime_1.jsx)("main", { className: App_module_scss_1.default.contentWrapper, children: (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.PagesWrapper, ref: noScrollPageContainerRef, children: (0, jsx_runtime_1.jsx)("div", { className: pagesWrapperClasses, children: children }) }) })] }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.footerWrapper, ref: footerRefCallback, children: footer })] })));
239
238
  break;
240
239
  case "condensed":
241
240
  case "condensed-sticky":
@@ -243,14 +242,14 @@ function App(_a) {
243
242
  [App_module_scss_1.default.sticky]: safeLayout === "condensed-sticky",
244
243
  }), style: styleWithHelpers, ref: scrollPageContainerRef, children: [(0, jsx_runtime_1.jsxs)("header", { className: (0, classnames_1.default)("app-layout-condensed", App_module_scss_1.default.headerWrapper, {
245
244
  [App_module_scss_1.default.sticky]: safeLayout === "condensed-sticky",
246
- }), ref: headerRefCallback, children: [!hasRegisteredHeader && hasRegisteredNavPanel && ((0, jsx_runtime_1.jsx)(AppHeaderNative_1.AppContextAwareAppHeader, { renderChild: renderChild })), header] }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.PagesWrapper, ref: noScrollPageContainerRef, children: (0, jsx_runtime_1.jsx)(ScrollContext_1.ScrollContext.Provider, { value: scrollContainerRef, children: (0, jsx_runtime_1.jsx)("div", { className: pagesWrapperClasses, children: children }) }) }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.footerWrapper, ref: footerRefCallback, children: footer })] })));
245
+ }), ref: headerRefCallback, children: [!hasRegisteredHeader && hasRegisteredNavPanel && ((0, jsx_runtime_1.jsx)(AppHeaderNative_1.AppContextAwareAppHeader, { renderChild: renderChild })), header] }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.PagesWrapper, ref: noScrollPageContainerRef, children: (0, jsx_runtime_1.jsx)("div", { className: pagesWrapperClasses, children: children }) }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.footerWrapper, ref: footerRefCallback, children: footer })] })));
247
246
  break;
248
247
  case "horizontal": {
249
- content = ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: (0, classnames_1.default)(wrapperBaseClasses, App_module_scss_1.default.horizontal), style: styleWithHelpers, ref: scrollPageContainerRef, children: [(0, jsx_runtime_1.jsxs)("header", { className: (0, classnames_1.default)(App_module_scss_1.default.headerWrapper), ref: headerRefCallback, children: [header, navPanelVisible && (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.navPanelWrapper, children: navPanel })] }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.PagesWrapper, ref: noScrollPageContainerRef, children: (0, jsx_runtime_1.jsx)(ScrollContext_1.ScrollContext.Provider, { value: scrollContainerRef, children: (0, jsx_runtime_1.jsx)("div", { className: pagesWrapperClasses, children: children }) }) }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.footerWrapper, ref: footerRefCallback, children: footer })] })));
248
+ content = ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: (0, classnames_1.default)(wrapperBaseClasses, App_module_scss_1.default.horizontal), style: styleWithHelpers, ref: scrollPageContainerRef, children: [(0, jsx_runtime_1.jsxs)("header", { className: (0, classnames_1.default)(App_module_scss_1.default.headerWrapper), ref: headerRefCallback, children: [header, navPanelVisible && (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.navPanelWrapper, children: navPanel })] }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.PagesWrapper, ref: noScrollPageContainerRef, children: (0, jsx_runtime_1.jsx)("div", { className: pagesWrapperClasses, children: children }) }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.footerWrapper, ref: footerRefCallback, children: footer })] })));
250
249
  break;
251
250
  }
252
251
  case "horizontal-sticky":
253
- content = ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: (0, classnames_1.default)(wrapperBaseClasses, App_module_scss_1.default.horizontal, App_module_scss_1.default.sticky), style: styleWithHelpers, ref: scrollPageContainerRef, children: [(0, jsx_runtime_1.jsxs)("header", { className: (0, classnames_1.default)(App_module_scss_1.default.headerWrapper, App_module_scss_1.default.sticky), ref: headerRefCallback, children: [header, navPanelVisible && (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.navPanelWrapper, children: navPanel })] }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.PagesWrapper, ref: noScrollPageContainerRef, children: (0, jsx_runtime_1.jsx)(ScrollContext_1.ScrollContext.Provider, { value: scrollContainerRef, children: (0, jsx_runtime_1.jsx)("div", { className: pagesWrapperClasses, children: children }) }) }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.footerWrapper, ref: footerRefCallback, children: footer })] })));
252
+ content = ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: (0, classnames_1.default)(wrapperBaseClasses, App_module_scss_1.default.horizontal, App_module_scss_1.default.sticky), style: styleWithHelpers, ref: scrollPageContainerRef, children: [(0, jsx_runtime_1.jsxs)("header", { className: (0, classnames_1.default)(App_module_scss_1.default.headerWrapper, App_module_scss_1.default.sticky), ref: headerRefCallback, children: [header, navPanelVisible && (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.navPanelWrapper, children: navPanel })] }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.PagesWrapper, ref: noScrollPageContainerRef, children: (0, jsx_runtime_1.jsx)("div", { className: pagesWrapperClasses, children: children }) }), (0, jsx_runtime_1.jsx)("div", { className: App_module_scss_1.default.footerWrapper, ref: footerRefCallback, children: footer })] })));
254
253
  break;
255
254
  default:
256
255
  throw new Error("layout type not supported: " + safeLayout);
@@ -18,7 +18,7 @@ exports.Breakout = void 0;
18
18
  const jsx_runtime_1 = require("react/jsx-runtime");
19
19
  const Breakout_module_scss_1 = __importDefault(require("./Breakout.module.scss"));
20
20
  const Breakout = (_a) => {
21
- var { children } = _a, rest = __rest(_a, ["children"]);
22
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({}, rest, { className: Breakout_module_scss_1.default.breakout, children: children })));
21
+ var { children, style } = _a, rest = __rest(_a, ["children", "style"]);
22
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({}, rest, { style: style, className: Breakout_module_scss_1.default.breakout, children: children })));
23
23
  };
24
24
  exports.Breakout = Breakout;
@@ -52,6 +52,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
52
52
  const react_1 = __importStar(require("react"));
53
53
  const classnames_1 = __importDefault(require("classnames"));
54
54
  const Button_module_scss_1 = __importDefault(require("./Button.module.scss"));
55
+ const abstractions_1 = require("../abstractions");
55
56
  const react_compose_refs_1 = require("@radix-ui/react-compose-refs");
56
57
  const VisuallyHidden_1 = require("../VisuallyHidden");
57
58
  exports.defaultProps = {
@@ -77,6 +78,9 @@ exports.Button = react_1.default.forwardRef(function Button(_a, ref) {
77
78
  }
78
79
  }, [autoFocus]);
79
80
  const iconToLeft = iconPosition === "start";
81
+ if (!(0, abstractions_1.isSizeType)(size)) {
82
+ size = exports.defaultProps.size;
83
+ }
80
84
  return ((0, jsx_runtime_1.jsxs)("button", Object.assign({}, rest, { id: id, type: type, ref: composedRef, className: (0, classnames_1.default)(Button_module_scss_1.default.button, {
81
85
  [Button_module_scss_1.default.buttonHorizontal]: orientation === "horizontal",
82
86
  [Button_module_scss_1.default.buttonVertical]: orientation === "vertical",
@@ -13,7 +13,7 @@ const CarouselNative_1 = require("./CarouselNative");
13
13
  const abstractions_1 = require("../abstractions");
14
14
  const COMP = "Carousel";
15
15
  exports.CarouselMd = (0, metadata_helpers_1.createMetadata)({
16
- status: "in progress",
16
+ status: "stable",
17
17
  description: `This component displays a slideshow by cycling through elements (images, text, or ` +
18
18
  `custom slides) like a carousel.`,
19
19
  props: {
@@ -26,57 +26,53 @@ exports.CarouselMd = (0, metadata_helpers_1.createMetadata)({
26
26
  defaultValue: CarouselNative_1.defaultProps.orientation,
27
27
  },
28
28
  indicators: {
29
- description: "This property indicates whether the carousel displays the indicators.",
29
+ description: "Display the individual slides as buttons (`true`) or not (`false`).",
30
30
  valueType: "boolean",
31
31
  defaultValue: CarouselNative_1.defaultProps.indicators,
32
32
  },
33
33
  controls: {
34
- description: "This property indicates whether the carousel displays the controls.",
34
+ description: "Display the previous/next controls (`true`) or not (`false`).",
35
35
  valueType: "boolean",
36
36
  defaultValue: CarouselNative_1.defaultProps.controls,
37
37
  },
38
38
  autoplay: {
39
- description: "This property indicates whether the carousel automatically scrolls.",
39
+ description: "Start scrolling the carousel automatically (`true`) or not (`false`).",
40
40
  valueType: "boolean",
41
41
  defaultValue: CarouselNative_1.defaultProps.autoplay,
42
42
  },
43
43
  loop: {
44
- description: "This property indicates whether the carousel loops.",
44
+ description: "Sets whether the carousel should loop back to the start/end when it reaches the last/first slide.",
45
45
  valueType: "boolean",
46
46
  defaultValue: CarouselNative_1.defaultProps.loop,
47
47
  },
48
48
  startIndex: {
49
- description: "This property indicates the index of the first slide to display.",
49
+ description: "The index of the first slide to display.",
50
50
  valueType: "number",
51
51
  defaultValue: CarouselNative_1.defaultProps.startIndex,
52
52
  },
53
53
  transitionDuration: {
54
- description: "This property indicates the duration of the transition between slides.",
54
+ description: "The duration of the transition between slides.",
55
55
  valueType: "number",
56
56
  defaultValue: CarouselNative_1.defaultProps.transitionDuration,
57
57
  },
58
58
  autoplayInterval: {
59
- description: "This property specifies the interval between autoplay transitions.",
59
+ description: "Specifies the interval between autoplay transitions.",
60
60
  valueType: "number",
61
61
  defaultValue: CarouselNative_1.defaultProps.autoplayInterval,
62
62
  },
63
63
  stopAutoplayOnInteraction: {
64
- description: "This property indicates whether autoplay stops on interaction.",
64
+ description: "This property indicates whether autoplay stops on user interaction.",
65
65
  valueType: "boolean",
66
66
  defaultValue: CarouselNative_1.defaultProps.stopAutoplayOnInteraction,
67
67
  },
68
68
  prevIcon: {
69
- description: "This property specifies the icon to display for the previous control.",
69
+ description: "The icon to display for the previous control.",
70
70
  valueType: "string",
71
71
  },
72
72
  nextIcon: {
73
- description: "This property specifies the icon to display for the next control.",
73
+ description: "The icon to display for the next control.",
74
74
  valueType: "string",
75
75
  },
76
- keyboard: {
77
- description: "This property indicates whether the carousel responds to keyboard events.",
78
- valueType: "boolean",
79
- },
80
76
  },
81
77
  events: {
82
78
  displayDidChange: (0, metadata_helpers_1.dDidChange)(COMP),
@@ -107,9 +103,6 @@ exports.CarouselMd = (0, metadata_helpers_1.createMetadata)({
107
103
  },
108
104
  },
109
105
  themeVars: (0, themeVars_1.parseScssVar)(Carousel_module_scss_1.default.themeVars),
110
- themeVarDescriptions: {
111
- [`width-indicator-${COMP}`]: "Sets the width of the indicator.",
112
- },
113
106
  defaultThemeVars: {
114
107
  [`backgroundColor-control-${COMP}`]: "$color-primary",
115
108
  [`textColor-control-${COMP}`]: "$textColor",
@@ -135,6 +128,6 @@ exports.CarouselMd = (0, metadata_helpers_1.createMetadata)({
135
128
  },
136
129
  });
137
130
  exports.carouselComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.CarouselMd, ({ node, renderChild, className, extractValue, lookupEventHandler, registerComponentApi }) => {
138
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
139
- return ((0, jsx_runtime_1.jsx)(CarouselNative_1.CarouselComponent, { className: className, stopAutoplayOnInteraction: extractValue.asOptionalBoolean((_a = node.props) === null || _a === void 0 ? void 0 : _a.stopAutoplayOnInteraction), autoplayInterval: extractValue.asOptionalNumber((_b = node.props) === null || _b === void 0 ? void 0 : _b.autoplayInterval), transitionDuration: extractValue.asOptionalNumber((_c = node.props) === null || _c === void 0 ? void 0 : _c.transitionDuration), indicators: extractValue.asOptionalBoolean((_d = node.props) === null || _d === void 0 ? void 0 : _d.indicators), controls: extractValue.asOptionalBoolean((_e = node.props) === null || _e === void 0 ? void 0 : _e.controls), orientation: extractValue((_f = node.props) === null || _f === void 0 ? void 0 : _f.orientation), onDisplayDidChange: lookupEventHandler("displayDidChange"), autoplay: extractValue.asOptionalBoolean((_g = node.props) === null || _g === void 0 ? void 0 : _g.autoplay), registerComponentApi: registerComponentApi, loop: extractValue.asOptionalBoolean((_h = node.props) === null || _h === void 0 ? void 0 : _h.loop), startIndex: extractValue.asOptionalNumber((_j = node.props) === null || _j === void 0 ? void 0 : _j.startIndex), prevIcon: extractValue((_k = node.props) === null || _k === void 0 ? void 0 : _k.prevIcon), nextIcon: extractValue((_l = node.props) === null || _l === void 0 ? void 0 : _l.nextIcon), keyboard: extractValue.asOptionalBoolean((_m = node.props) === null || _m === void 0 ? void 0 : _m.keyboard), children: renderChild(node.children) }));
131
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
132
+ return ((0, jsx_runtime_1.jsx)(CarouselNative_1.CarouselComponent, { className: className, stopAutoplayOnInteraction: extractValue.asOptionalBoolean((_a = node.props) === null || _a === void 0 ? void 0 : _a.stopAutoplayOnInteraction), autoplayInterval: extractValue.asOptionalNumber((_b = node.props) === null || _b === void 0 ? void 0 : _b.autoplayInterval), transitionDuration: extractValue.asOptionalNumber((_c = node.props) === null || _c === void 0 ? void 0 : _c.transitionDuration), indicators: extractValue.asOptionalBoolean((_d = node.props) === null || _d === void 0 ? void 0 : _d.indicators), controls: extractValue.asOptionalBoolean((_e = node.props) === null || _e === void 0 ? void 0 : _e.controls), orientation: extractValue((_f = node.props) === null || _f === void 0 ? void 0 : _f.orientation), onDisplayDidChange: lookupEventHandler("displayDidChange"), autoplay: extractValue.asOptionalBoolean((_g = node.props) === null || _g === void 0 ? void 0 : _g.autoplay), registerComponentApi: registerComponentApi, loop: extractValue.asOptionalBoolean((_h = node.props) === null || _h === void 0 ? void 0 : _h.loop), startIndex: extractValue.asOptionalNumber((_j = node.props) === null || _j === void 0 ? void 0 : _j.startIndex), prevIcon: extractValue((_k = node.props) === null || _k === void 0 ? void 0 : _k.prevIcon), nextIcon: extractValue((_l = node.props) === null || _l === void 0 ? void 0 : _l.nextIcon), children: renderChild(node.children) }));
140
133
  });
@@ -10,6 +10,7 @@ const immer_1 = __importDefault(require("immer"));
10
10
  exports.CarouselContext = (0, react_1.createContext)({
11
11
  register: (column) => { },
12
12
  unRegister: (id) => { },
13
+ itemProps: {},
13
14
  });
14
15
  const useCarousel = () => {
15
16
  const context = (0, react_1.useContext)(exports.CarouselContext);
@@ -19,7 +20,7 @@ const useCarousel = () => {
19
20
  return context;
20
21
  };
21
22
  exports.useCarousel = useCarousel;
22
- function useCarouselContextValue() {
23
+ function useCarouselContextValue(isTabbed) {
23
24
  const [carouselItems, setCarouselItems] = (0, react_1.useState)([]);
24
25
  const carouselContextValue = (0, react_1.useMemo)(() => {
25
26
  return {
@@ -39,8 +40,16 @@ function useCarouselContextValue() {
39
40
  return draft.filter((col) => col.id !== id);
40
41
  }));
41
42
  },
43
+ itemProps: isTabbed
44
+ ? {
45
+ role: "group tabpanel",
46
+ }
47
+ : {
48
+ role: "group",
49
+ "aria-roledescription": "slide",
50
+ },
42
51
  };
43
- }, [setCarouselItems]);
52
+ }, [setCarouselItems, isTabbed]);
44
53
  return {
45
54
  carouselItems,
46
55
  carouselContextValue,
@@ -24,7 +24,7 @@ const CarouselContext_1 = require("./CarouselContext");
24
24
  exports.CarouselItemComponent = (0, react_2.forwardRef)(function CarouselItemComponent(_a, forwardedRef) {
25
25
  var { children, style } = _a, rest = __rest(_a, ["children", "style"]);
26
26
  const id = (0, react_2.useId)();
27
- const { register, unRegister } = (0, CarouselContext_1.useCarousel)();
27
+ const { register, unRegister, itemProps } = (0, CarouselContext_1.useCarousel)();
28
28
  (0, react_2.useEffect)(() => {
29
29
  register({
30
30
  id,
@@ -35,6 +35,6 @@ exports.CarouselItemComponent = (0, react_2.forwardRef)(function CarouselItemCom
35
35
  unRegister(id);
36
36
  };
37
37
  }, [id, unRegister]);
38
- return ((0, react_1.createElement)("div", Object.assign({}, rest, { key: id, role: "group", "aria-roledescription": "slide", className: (0, classnames_1.default)(Carousel_module_scss_1.default.carouselItem) }),
38
+ return ((0, react_1.createElement)("div", Object.assign({}, rest, { key: id }, itemProps, { className: (0, classnames_1.default)(Carousel_module_scss_1.default.carouselItem) }),
39
39
  (0, jsx_runtime_1.jsx)("div", { className: Carousel_module_scss_1.default.innerWrapper, ref: forwardedRef, style: style, children: children })));
40
40
  });
@@ -76,7 +76,7 @@ exports.CarouselComponent = (0, react_1.forwardRef)(function CarouselComponent(_
76
76
  const [activeSlide, setActiveSlide] = (0, react_1.useState)(0);
77
77
  const [plugins, setPlugins] = (0, react_1.useState)([]);
78
78
  const [isPlaying, setIsPlaying] = (0, react_1.useState)(false);
79
- const { carouselContextValue, carouselItems } = (0, CarouselContext_1.useCarouselContextValue)();
79
+ const { carouselContextValue, carouselItems } = (0, CarouselContext_1.useCarouselContextValue)(indicators);
80
80
  const ref = forwardedRef ? (0, react_compose_refs_1.composeRefs)(referenceElement, forwardedRef) : referenceElement;
81
81
  const [carouselRef, api] = (0, embla_carousel_react_1.default)({
82
82
  axis: orientation === "horizontal" ? "x" : "y",
@@ -189,7 +189,7 @@ exports.CarouselComponent = (0, react_1.forwardRef)(function CarouselComponent(_
189
189
  return ((0, jsx_runtime_1.jsx)(CarouselContext_1.CarouselContext.Provider, { value: carouselContextValue, children: (0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { style: style, ref: ref, className: (0, classnames_1.default)(Carousel_module_scss_1.default.carousel, className), role: "region", tabIndex: -1, "aria-roledescription": "carousel", children: [(0, jsx_runtime_1.jsx)("div", { ref: carouselRef, className: Carousel_module_scss_1.default.carouselContentWrapper, children: (0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(Carousel_module_scss_1.default.carouselContent, {
190
190
  [Carousel_module_scss_1.default.horizontal]: orientation === "horizontal",
191
191
  [Carousel_module_scss_1.default.vertical]: orientation === "vertical",
192
- }), children: children }) }), controls && ((0, jsx_runtime_1.jsxs)("div", { className: Carousel_module_scss_1.default.controls, children: [autoplay && ((0, jsx_runtime_1.jsx)("button", { className: Carousel_module_scss_1.default.controlButton, onClick: toggleAutoplay, children: isPlaying ? (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: "pause" }) : (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: "play" }) })), (0, jsx_runtime_1.jsx)("button", { className: Carousel_module_scss_1.default.controlButton, disabled: !canScrollPrev, onClick: scrollPrev, children: (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: prevIconName }) }), (0, jsx_runtime_1.jsx)("button", { className: Carousel_module_scss_1.default.controlButton, onClick: scrollNext, disabled: !canScrollNext, children: (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: nextIconName }) })] })), indicators && ((0, jsx_runtime_1.jsx)("div", { className: Carousel_module_scss_1.default.indicators, children: carouselItems.map((_, index) => ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: () => scrollTo(index), className: (0, classnames_1.default)(Carousel_module_scss_1.default.indicator, {
192
+ }), children: children }) }), controls && ((0, jsx_runtime_1.jsxs)("div", { className: Carousel_module_scss_1.default.controls, children: [autoplay && ((0, jsx_runtime_1.jsx)("button", { className: Carousel_module_scss_1.default.controlButton, onClick: toggleAutoplay, "aria-label": isPlaying ? "Pause Autoplay" : "Start Autoplay", children: isPlaying ? (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: "pause" }) : (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: "play" }) })), (0, jsx_runtime_1.jsx)("button", { className: Carousel_module_scss_1.default.controlButton, disabled: !canScrollPrev, onClick: scrollPrev, "aria-label": "Previous Slide", children: (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: prevIconName }) }), (0, jsx_runtime_1.jsx)("button", { className: Carousel_module_scss_1.default.controlButton, onClick: scrollNext, disabled: !canScrollNext, "aria-label": "Next Slide", children: (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: nextIconName }) })] })), indicators && ((0, jsx_runtime_1.jsx)("div", { className: Carousel_module_scss_1.default.indicators, role: "tablist", "aria-label": "Select slide", children: carouselItems.map((_, index) => ((0, jsx_runtime_1.jsx)("button", { type: "button", role: "tab", "aria-label": `Go to slide ${index + 1}`, "aria-controls": "carousel", tabIndex: index === activeSlide ? 0 : -1, onClick: () => scrollTo(index), className: (0, classnames_1.default)(Carousel_module_scss_1.default.indicator, {
193
193
  [Carousel_module_scss_1.default.active]: index === activeSlide,
194
194
  }), "aria-current": index === activeSlide }, index))) }))] })) }));
195
195
  });
@@ -18,7 +18,7 @@ exports.BarChartMd = (0, metadata_helpers_1.createMetadata)({
18
18
  description: `This property is used to provide the component with data to display.` +
19
19
  `The data needs to be an array of objects.`,
20
20
  },
21
- dataKeys: {
21
+ xKeys: {
22
22
  description: "This property specifies the keys in the data objects that should be used for rendering the bars." +
23
23
  `E.g. 'id' or 'key'.`,
24
24
  valueType: "string",
@@ -29,7 +29,7 @@ exports.BarChartMd = (0, metadata_helpers_1.createMetadata)({
29
29
  valueType: "boolean",
30
30
  defaultValue: BarChartNative_1.defaultProps.stacked,
31
31
  },
32
- layout: {
32
+ orientation: {
33
33
  description: `This property determines the orientation of the bar chart. The \`vertical\` variant ` +
34
34
  `specifies the horizontal axis as the primary and lays out the bars from left to right. ` +
35
35
  `The \`horizontal\` variant specifies the vertical axis as the primary and has the bars ` +
@@ -38,7 +38,7 @@ exports.BarChartMd = (0, metadata_helpers_1.createMetadata)({
38
38
  availableValues: ["horizontal", "vertical"],
39
39
  defaultValue: BarChartNative_1.defaultProps.layout,
40
40
  },
41
- nameKey: {
41
+ yKey: {
42
42
  description: "Specifies the key in the data objects that will be used to label the different data series.",
43
43
  valueType: "string",
44
44
  },
@@ -87,7 +87,7 @@ exports.BarChartMd = (0, metadata_helpers_1.createMetadata)({
87
87
  });
88
88
  exports.barChartComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.BarChartMd, ({ extractValue, node, className, lookupSyncCallback, renderChild }) => {
89
89
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
90
- return ((0, jsx_runtime_1.jsx)(BarChartNative_1.BarChart, { className: className, tickFormatterX: lookupSyncCallback((_a = node.props) === null || _a === void 0 ? void 0 : _a.tickFormatterX), tickFormatterY: lookupSyncCallback((_b = node.props) === null || _b === void 0 ? void 0 : _b.tickFormatterY), data: extractValue((_c = node.props) === null || _c === void 0 ? void 0 : _c.data), layout: extractValue((_d = node.props) === null || _d === void 0 ? void 0 : _d.layout), nameKey: extractValue((_e = node.props) === null || _e === void 0 ? void 0 : _e.nameKey), dataKeys: extractValue((_f = node.props) === null || _f === void 0 ? void 0 : _f.dataKeys), stacked: extractValue.asOptionalBoolean((_g = node.props) === null || _g === void 0 ? void 0 : _g.stacked), hideX: extractValue.asOptionalBoolean((_h = node.props) === null || _h === void 0 ? void 0 : _h.hideX), hideY: extractValue.asOptionalBoolean((_j = node.props) === null || _j === void 0 ? void 0 : _j.hideY), hideTickX: extractValue.asOptionalBoolean((_k = node.props) === null || _k === void 0 ? void 0 : _k.hideTickX), hideTickY: extractValue.asOptionalBoolean((_l = node.props) === null || _l === void 0 ? void 0 : _l.hideTickY), hideTooltip: extractValue.asOptionalBoolean((_m = node.props) === null || _m === void 0 ? void 0 : _m.hideTooltip), showLegend: extractValue.asOptionalBoolean((_o = node.props) === null || _o === void 0 ? void 0 : _o.showLegend), tooltipRenderer: node.props.tooltipTemplate
90
+ return ((0, jsx_runtime_1.jsx)(BarChartNative_1.BarChart, { className: className, tickFormatterX: lookupSyncCallback((_a = node.props) === null || _a === void 0 ? void 0 : _a.tickFormatterX), tickFormatterY: lookupSyncCallback((_b = node.props) === null || _b === void 0 ? void 0 : _b.tickFormatterY), data: extractValue((_c = node.props) === null || _c === void 0 ? void 0 : _c.data), layout: extractValue((_d = node.props) === null || _d === void 0 ? void 0 : _d.orientation), nameKey: extractValue((_e = node.props) === null || _e === void 0 ? void 0 : _e.yKey), dataKeys: extractValue((_f = node.props) === null || _f === void 0 ? void 0 : _f.xKeys), stacked: extractValue.asOptionalBoolean((_g = node.props) === null || _g === void 0 ? void 0 : _g.stacked), hideX: extractValue.asOptionalBoolean((_h = node.props) === null || _h === void 0 ? void 0 : _h.hideX), hideY: extractValue.asOptionalBoolean((_j = node.props) === null || _j === void 0 ? void 0 : _j.hideY), hideTickX: extractValue.asOptionalBoolean((_k = node.props) === null || _k === void 0 ? void 0 : _k.hideTickX), hideTickY: extractValue.asOptionalBoolean((_l = node.props) === null || _l === void 0 ? void 0 : _l.hideTickY), hideTooltip: extractValue.asOptionalBoolean((_m = node.props) === null || _m === void 0 ? void 0 : _m.hideTooltip), showLegend: extractValue.asOptionalBoolean((_o = node.props) === null || _o === void 0 ? void 0 : _o.showLegend), tooltipRenderer: node.props.tooltipTemplate
91
91
  ? (tooltipData) => {
92
92
  return ((0, jsx_runtime_1.jsx)(container_helpers_1.MemoizedItem, { node: node.props.tooltipTemplate, item: tooltipData, contextVars: {
93
93
  $tooltip: tooltipData,
@@ -70,10 +70,14 @@ function BarChart({ data = [], layout = exports.defaultProps.layout, nameKey, st
70
70
  const safeTooltipRenderer = (0, react_1.useCallback)((props) => {
71
71
  if (!tooltipRenderer)
72
72
  return (0, jsx_runtime_1.jsx)(TooltipContent_1.TooltipContent, Object.assign({}, props));
73
+ const payloadObject = {};
74
+ if (props.payload && props.payload.length > 0 && props.payload[0].payload) {
75
+ Object.assign(payloadObject, props.payload[0].payload);
76
+ }
73
77
  // Extract tooltip data from Recharts props
74
78
  const tooltipData = {
75
79
  label: props.label,
76
- payload: props.payload,
80
+ payload: payloadObject,
77
81
  active: props.active,
78
82
  };
79
83
  return tooltipRenderer(tooltipData);
@@ -24,11 +24,11 @@ exports.LineChartMd = (0, metadata_helpers_1.createMetadata)({
24
24
  description: "The data to be displayed in the line chart." +
25
25
  "It needs to be an array of objects, where each object represents a data point.",
26
26
  },
27
- dataKeys: {
27
+ xKeys: {
28
28
  description: "This property specifies the keys in the data objects that should be used for rendering the lines.",
29
29
  valueType: "string",
30
30
  },
31
- nameKey: {
31
+ yKey: {
32
32
  description: "The key in the data objects used for labeling different data series.",
33
33
  valueType: "string",
34
34
  },
@@ -84,7 +84,7 @@ exports.LineChartMd = (0, metadata_helpers_1.createMetadata)({
84
84
  });
85
85
  exports.lineChartComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.LineChartMd, ({ extractValue, node, className, lookupSyncCallback, renderChild }) => {
86
86
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
87
- return ((0, jsx_runtime_1.jsx)(LineChartNative_1.LineChart, { tickFormatterX: lookupSyncCallback((_a = node.props) === null || _a === void 0 ? void 0 : _a.tickFormatterX), tickFormatterY: lookupSyncCallback((_b = node.props) === null || _b === void 0 ? void 0 : _b.tickFormatterY), hideTickX: extractValue((_c = node.props) === null || _c === void 0 ? void 0 : _c.hideTickX), hideTickY: extractValue((_d = node.props) === null || _d === void 0 ? void 0 : _d.hideTickY), data: extractValue((_e = node.props) === null || _e === void 0 ? void 0 : _e.data), className: className, dataKeys: extractValue((_f = node.props) === null || _f === void 0 ? void 0 : _f.dataKeys), nameKey: extractValue((_g = node.props) === null || _g === void 0 ? void 0 : _g.nameKey), hideX: extractValue((_h = node.props) === null || _h === void 0 ? void 0 : _h.hideX), hideY: extractValue((_j = node.props) === null || _j === void 0 ? void 0 : _j.hideY), hideTooltip: extractValue((_k = node.props) === null || _k === void 0 ? void 0 : _k.hideTooltip), showLegend: extractValue.asOptionalBoolean((_l = node.props) === null || _l === void 0 ? void 0 : _l.showLegend), marginTop: extractValue.asOptionalNumber((_m = node.props) === null || _m === void 0 ? void 0 : _m.marginTop), marginRight: extractValue.asOptionalNumber((_o = node.props) === null || _o === void 0 ? void 0 : _o.marginRight), marginBottom: extractValue.asOptionalNumber((_p = node.props) === null || _p === void 0 ? void 0 : _p.marginBottom), marginLeft: extractValue.asOptionalNumber((_q = node.props) === null || _q === void 0 ? void 0 : _q.marginLeft), tooltipRenderer: node.props.tooltipTemplate
87
+ return ((0, jsx_runtime_1.jsx)(LineChartNative_1.LineChart, { tickFormatterX: lookupSyncCallback((_a = node.props) === null || _a === void 0 ? void 0 : _a.tickFormatterX), tickFormatterY: lookupSyncCallback((_b = node.props) === null || _b === void 0 ? void 0 : _b.tickFormatterY), hideTickX: extractValue((_c = node.props) === null || _c === void 0 ? void 0 : _c.hideTickX), hideTickY: extractValue((_d = node.props) === null || _d === void 0 ? void 0 : _d.hideTickY), data: extractValue((_e = node.props) === null || _e === void 0 ? void 0 : _e.data), className: className, dataKeys: extractValue((_f = node.props) === null || _f === void 0 ? void 0 : _f.xKeys), nameKey: extractValue((_g = node.props) === null || _g === void 0 ? void 0 : _g.yKey), hideX: extractValue((_h = node.props) === null || _h === void 0 ? void 0 : _h.hideX), hideY: extractValue((_j = node.props) === null || _j === void 0 ? void 0 : _j.hideY), hideTooltip: extractValue((_k = node.props) === null || _k === void 0 ? void 0 : _k.hideTooltip), showLegend: extractValue.asOptionalBoolean((_l = node.props) === null || _l === void 0 ? void 0 : _l.showLegend), marginTop: extractValue.asOptionalNumber((_m = node.props) === null || _m === void 0 ? void 0 : _m.marginTop), marginRight: extractValue.asOptionalNumber((_o = node.props) === null || _o === void 0 ? void 0 : _o.marginRight), marginBottom: extractValue.asOptionalNumber((_p = node.props) === null || _p === void 0 ? void 0 : _p.marginBottom), marginLeft: extractValue.asOptionalNumber((_q = node.props) === null || _q === void 0 ? void 0 : _q.marginLeft), tooltipRenderer: node.props.tooltipTemplate
88
88
  ? (tooltipData) => {
89
89
  return ((0, jsx_runtime_1.jsx)(container_helpers_1.MemoizedItem, { node: node.props.tooltipTemplate, item: tooltipData, contextVars: {
90
90
  $tooltip: tooltipData,
@@ -114,10 +114,14 @@ exports.LineChart = (0, react_1.forwardRef)(function LineChart({ data, dataKeys
114
114
  const safeTooltipRenderer = (0, react_1.useCallback)((props) => {
115
115
  if (!tooltipRenderer)
116
116
  return (0, jsx_runtime_1.jsx)(TooltipContent_1.TooltipContent, Object.assign({}, props));
117
+ const payloadObject = {};
118
+ if (props.payload && props.payload.length > 0 && props.payload[0].payload) {
119
+ Object.assign(payloadObject, props.payload[0].payload);
120
+ }
117
121
  // Extract tooltip data from Recharts props
118
122
  const tooltipData = {
119
123
  label: props.label,
120
- payload: props.payload,
124
+ payload: payloadObject,
121
125
  active: props.active,
122
126
  };
123
127
  return tooltipRenderer(tooltipData);
@@ -81,6 +81,7 @@ const DataLoader_1 = require("../components-core/loader/DataLoader");
81
81
  const DatePicker_1 = require("./DatePicker/DatePicker");
82
82
  const DateInput_1 = require("./DateInput/DateInput");
83
83
  const TimeInput_1 = require("./TimeInput/TimeInput");
84
+ const Timer_1 = require("./Timer/Timer");
84
85
  const Redirect_1 = require("./Redirect/Redirect");
85
86
  const Tabs_1 = require("./Tabs/Tabs");
86
87
  const Bookmark_1 = require("./Bookmark/Bookmark");
@@ -390,6 +391,7 @@ class ComponentRegistry {
390
391
  this.registerCoreComponent(DatePicker_1.datePickerComponentRenderer);
391
392
  this.registerCoreComponent(DateInput_1.dateInputComponentRenderer);
392
393
  this.registerCoreComponent(TimeInput_1.timeInputComponentRenderer);
394
+ this.registerCoreComponent(Timer_1.timerComponentRenderer);
393
395
  }
394
396
  if (process.env.VITE_INCLUDE_REST_COMPONENTS !== "false") {
395
397
  //TODO, if it proves to be a working solution, make these components skippable, too
@@ -143,19 +143,11 @@ exports.DateInputMd = (0, metadata_helpers_1.createMetadata)({
143
143
  startIcon: (0, metadata_helpers_1.dStartIcon)(),
144
144
  endText: (0, metadata_helpers_1.dEndText)(),
145
145
  endIcon: (0, metadata_helpers_1.dEndIcon)(),
146
- mute: {
147
- description: "Whether to mute the beep sound while still firing the beep event",
148
- valueType: "boolean",
149
- defaultValue: DateInputNative_1.defaultProps.mute,
150
- },
151
146
  },
152
147
  events: {
153
148
  didChange: (0, metadata_helpers_1.dDidChange)(COMP),
154
149
  gotFocus: (0, metadata_helpers_1.dGotFocus)(COMP),
155
150
  lostFocus: (0, metadata_helpers_1.dLostFocus)(COMP),
156
- beep: {
157
- description: "Event triggered when a beep should occur due to invalid input auto-tab prevention",
158
- },
159
151
  },
160
152
  apis: {
161
153
  focus: {
@@ -173,10 +165,16 @@ exports.DateInputMd = (0, metadata_helpers_1.createMetadata)({
173
165
  value: "The new value to set for the date input.",
174
166
  },
175
167
  },
168
+ isoValue: {
169
+ description: `Get the current date value formatted in ISO standard (YYYY-MM-DD) format, suitable for JSON serialization.`,
170
+ signature: "isoValue(): string | null",
171
+ },
176
172
  },
177
173
  themeVars: (0, themeVars_1.parseScssVar)(DateInput_module_scss_1.default.themeVars),
178
174
  defaultThemeVars: {
179
175
  // DateInput specific theme variables (matching TimeInput structure)
176
+ [`paddingHorizontal-${COMP}`]: "$space-2",
177
+ [`paddingVertical-${COMP}`]: "$space-2",
180
178
  [`color-divider-${COMP}`]: "$textColor-secondary",
181
179
  [`spacing-divider-${COMP}`]: "1px 0",
182
180
  [`width-input-${COMP}`]: "1.8em",
@@ -199,5 +197,5 @@ exports.DateInputMd = (0, metadata_helpers_1.createMetadata)({
199
197
  });
200
198
  exports.dateInputComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.DateInputMd, ({ node, state, updateState, extractValue, className, lookupEventHandler, registerComponentApi, }) => {
201
199
  var _a;
202
- return ((0, jsx_runtime_1.jsx)(DateInputNative_1.DateInput, { id: node.uid, className: className, mode: extractValue((_a = node.props) === null || _a === void 0 ? void 0 : _a.mode), value: state === null || state === void 0 ? void 0 : state.value, initialValue: extractValue(node.props.initialValue), enabled: extractValue.asOptionalBoolean(node.props.enabled), validationStatus: extractValue(node.props.validationStatus), updateState: updateState, onDidChange: lookupEventHandler("didChange"), onFocus: lookupEventHandler("gotFocus"), onBlur: lookupEventHandler("lostFocus"), onBeep: lookupEventHandler("beep"), registerComponentApi: registerComponentApi, dateFormat: extractValue(node.props.dateFormat), showWeekNumber: extractValue.asOptionalBoolean(node.props.showWeekNumber), weekStartsOn: extractValue.asOptionalNumber(node.props.weekStartsOn), minValue: extractValue.asOptionalString(node.props.minValue), maxValue: extractValue.asOptionalString(node.props.maxValue), disabledDates: extractValue(node.props.disabledDates), inline: extractValue.asOptionalBoolean(node.props.inline, DateInputNative_1.defaultProps.inline), startText: extractValue.asOptionalString(node.props.startText), startIcon: extractValue.asOptionalString(node.props.startIcon), endText: extractValue.asOptionalString(node.props.endText), endIcon: extractValue.asOptionalString(node.props.endIcon), label: extractValue.asOptionalString(node.props.label), labelPosition: extractValue.asOptionalString(node.props.labelPosition), labelWidth: extractValue.asOptionalString(node.props.labelWidth), labelBreak: extractValue.asOptionalBoolean(node.props.labelBreak), readOnly: extractValue.asOptionalBoolean(node.props.readOnly), autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus), required: extractValue.asOptionalBoolean(node.props.required), clearable: extractValue.asOptionalBoolean(node.props.clearable, DateInputNative_1.defaultProps.clearable), clearIcon: extractValue.asOptionalString(node.props.clearIcon), clearToInitialValue: extractValue.asOptionalBoolean(node.props.clearToInitialValue, DateInputNative_1.defaultProps.clearToInitialValue), gap: extractValue.asOptionalString(node.props.gap), mute: extractValue.asOptionalBoolean(node.props.mute, DateInputNative_1.defaultProps.mute), emptyCharacter: extractValue.asOptionalString(node.props.emptyCharacter) }));
200
+ return ((0, jsx_runtime_1.jsx)(DateInputNative_1.DateInput, { id: node.uid, className: className, mode: extractValue((_a = node.props) === null || _a === void 0 ? void 0 : _a.mode), value: state === null || state === void 0 ? void 0 : state.value, initialValue: extractValue(node.props.initialValue), enabled: extractValue.asOptionalBoolean(node.props.enabled), validationStatus: extractValue(node.props.validationStatus), updateState: updateState, onDidChange: lookupEventHandler("didChange"), onFocus: lookupEventHandler("gotFocus"), onBlur: lookupEventHandler("lostFocus"), registerComponentApi: registerComponentApi, dateFormat: extractValue(node.props.dateFormat), showWeekNumber: extractValue.asOptionalBoolean(node.props.showWeekNumber), weekStartsOn: extractValue.asOptionalNumber(node.props.weekStartsOn), minValue: extractValue.asOptionalString(node.props.minValue), maxValue: extractValue.asOptionalString(node.props.maxValue), disabledDates: extractValue(node.props.disabledDates), inline: extractValue.asOptionalBoolean(node.props.inline, DateInputNative_1.defaultProps.inline), startText: extractValue.asOptionalString(node.props.startText), startIcon: extractValue.asOptionalString(node.props.startIcon), endText: extractValue.asOptionalString(node.props.endText), endIcon: extractValue.asOptionalString(node.props.endIcon), label: extractValue.asOptionalString(node.props.label), labelPosition: extractValue.asOptionalString(node.props.labelPosition), labelWidth: extractValue.asOptionalString(node.props.labelWidth), labelBreak: extractValue.asOptionalBoolean(node.props.labelBreak), readOnly: extractValue.asOptionalBoolean(node.props.readOnly), autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus), required: extractValue.asOptionalBoolean(node.props.required), clearable: extractValue.asOptionalBoolean(node.props.clearable, DateInputNative_1.defaultProps.clearable), clearIcon: extractValue.asOptionalString(node.props.clearIcon), clearToInitialValue: extractValue.asOptionalBoolean(node.props.clearToInitialValue, DateInputNative_1.defaultProps.clearToInitialValue), gap: extractValue.asOptionalString(node.props.gap), emptyCharacter: extractValue.asOptionalString(node.props.emptyCharacter) }));
203
201
  });