@siemens/ix-react 2.1.0-beta.3 → 2.1.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -94,9 +94,13 @@ import { defineCustomElement as defineCustomElement$1q } from '@siemens/ix/compo
94
94
  import { defineCustomElement as defineCustomElement$1r } from '@siemens/ix/components/ix-workflow-steps.js';
95
95
  import { registerFrameworkDelegate, showModal as showModal$1, toast } from '@siemens/ix';
96
96
  import ReactDOMClient from 'react-dom/client';
97
+ import { defineCustomElement as defineCustomElement$1t } from '@siemens/ix/components/ix-application-sidebar.js';
97
98
  import { defineCustomElement as defineCustomElement$1s } from '@siemens/ix/components/ix-application-switch-modal.js';
98
- import { defineCustomElement as defineCustomElement$1t } from '@siemens/ix-icons/dist/components/ix-icon';
99
- import { defineCustomElement as defineCustomElement$1u } from '@siemens/ix/components/ix-tree.js';
99
+ import { defineCustomElement as defineCustomElement$1v } from '@siemens/ix/components/ix-burger-menu.js';
100
+ import { defineCustomElement as defineCustomElement$1u } from '@siemens/ix/components/ix-date-time-card.js';
101
+ import { defineCustomElement as defineCustomElement$1w } from '@siemens/ix/components/ix-modal-loading.js';
102
+ import { defineCustomElement as defineCustomElement$1x } from '@siemens/ix-icons/dist/components/ix-icon';
103
+ import { defineCustomElement as defineCustomElement$1y } from '@siemens/ix/components/ix-tree.js';
100
104
 
101
105
  /******************************************************************************
102
106
  Copyright (c) Microsoft Corporation.
@@ -600,9 +604,13 @@ class IxApplicationContext extends React.Component {
600
604
  * LICENSE file in the root directory of this source tree.
601
605
  */
602
606
  defineCustomElement$1s();
607
+ defineCustomElement$1t();
608
+ defineCustomElement$1u();
609
+ defineCustomElement$1v();
610
+ defineCustomElement$1w();
603
611
 
604
612
  // eslint-disable-next-line no-inline-comments
605
- const IxIcon = /*@__PURE__*/ createReactComponent('ix-icon', undefined, undefined, defineCustomElement$1t);
613
+ const IxIcon = /*@__PURE__*/ createReactComponent('ix-icon', undefined, undefined, defineCustomElement$1x);
606
614
 
607
615
  /*
608
616
  * SPDX-FileCopyrightText: 2023 Siemens AG
@@ -666,7 +674,7 @@ async function showToast(config) {
666
674
 
667
675
  /* eslint-disable @typescript-eslint/no-explicit-any */
668
676
  // eslint-disable-next-line no-inline-comments
669
- const InternalIxTree = /*@__PURE__*/ createReactComponent('ix-tree', undefined, undefined, defineCustomElement$1u);
677
+ const InternalIxTree = /*@__PURE__*/ createReactComponent('ix-tree', undefined, undefined, defineCustomElement$1y);
670
678
  const IxTree = (props) => {
671
679
  const cachedRootNodes = useRef(new Map());
672
680
  const renderItem = useCallback((_, data, __, context, update) => {
package/dist/index.js CHANGED
@@ -98,7 +98,11 @@ const ixWorkflowStep_js = require('@siemens/ix/components/ix-workflow-step.js');
98
98
  const ixWorkflowSteps_js = require('@siemens/ix/components/ix-workflow-steps.js');
99
99
  const ix = require('@siemens/ix');
100
100
  const ReactDOMClient = require('react-dom/client');
101
+ const ixApplicationSidebar_js = require('@siemens/ix/components/ix-application-sidebar.js');
101
102
  const ixApplicationSwitchModal_js = require('@siemens/ix/components/ix-application-switch-modal.js');
103
+ const ixBurgerMenu_js = require('@siemens/ix/components/ix-burger-menu.js');
104
+ const ixDateTimeCard_js = require('@siemens/ix/components/ix-date-time-card.js');
105
+ const ixModalLoading_js = require('@siemens/ix/components/ix-modal-loading.js');
102
106
  const ixIcon = require('@siemens/ix-icons/dist/components/ix-icon');
103
107
  const ixTree_js = require('@siemens/ix/components/ix-tree.js');
104
108
 
@@ -610,6 +614,10 @@ class IxApplicationContext extends React__default["default"].Component {
610
614
  * LICENSE file in the root directory of this source tree.
611
615
  */
612
616
  ixApplicationSwitchModal_js.defineCustomElement();
617
+ ixApplicationSidebar_js.defineCustomElement();
618
+ ixDateTimeCard_js.defineCustomElement();
619
+ ixBurgerMenu_js.defineCustomElement();
620
+ ixModalLoading_js.defineCustomElement();
613
621
 
614
622
  // eslint-disable-next-line no-inline-comments
615
623
  const IxIcon = /*@__PURE__*/ createReactComponent('ix-icon', undefined, undefined, ixIcon.defineCustomElement);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ReactFrameworkDelegate } from 'src/delegate';
3
2
  export declare const PORTAL_ID = "ix-portal";
4
3
  export declare const IxOverlay: (props: {
@@ -0,0 +1,2 @@
1
+ declare const Index: () => JSX.Element;
2
+ export default Index;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const Index: () => JSX.Element;
2
+ export default Index;
@@ -0,0 +1,2 @@
1
+ declare const Index: () => JSX.Element;
2
+ export default Index;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/siemens/ix",
8
8
  "directory": "packages/react"
9
9
  },
10
- "version": "2.1.0-beta.3",
10
+ "version": "2.1.1-beta.0",
11
11
  "description": "Siemens iX for React",
12
12
  "main": "dist/index.js",
13
13
  "module": "dist/index.esm.js",
@@ -22,36 +22,46 @@
22
22
  "clean": "rimraf dist && rimraf dist-transpiled",
23
23
  "compile": "rollup -c",
24
24
  "tsc": "tsc -p .",
25
- "lint": "eslint src"
25
+ "lint": "eslint src",
26
+ "test": "vitest run",
27
+ "test:watch": "vitest"
26
28
  },
27
29
  "author": "",
28
30
  "license": "MIT",
29
31
  "devDependencies": {
30
32
  "@rollup/plugin-typescript": "^8.4.0",
31
- "@siemens/ix": "~2.1.0-beta.3",
33
+ "@siemens/ix": "~2.1.1-beta.0",
34
+ "@testing-library/jest-dom": "^5.16.5",
35
+ "@testing-library/react": "^13.4.0",
32
36
  "@types/estree": "~0.0.51",
33
37
  "@types/react": "~18.0.15",
34
38
  "@types/react-dom": "~18.0.6",
35
39
  "@typescript-eslint/eslint-plugin": "^5.45.0",
36
40
  "@typescript-eslint/parser": "^5.45.0",
41
+ "babel-jest": "^29.7.0",
37
42
  "eslint-config-ix": "*",
38
43
  "eslint-plugin-react": "^7.31.11",
44
+ "identity-obj-proxy": "^3.0.0",
45
+ "jest": "^29.1.2",
46
+ "jest-environment-jsdom": "^29.1.2",
39
47
  "react": "^18.2.0",
40
48
  "react-dom": "^18.2.0",
49
+ "react-hook-form": "~7.48.0",
41
50
  "rimraf": "^3.0.2",
42
51
  "rollup": "^2.78.1",
43
52
  "rollup-plugin-dts": "^4.2.0",
44
53
  "rollup-plugin-peer-deps-external": "^2.2.4",
45
54
  "rollup-plugin-sourcemaps": "^0.6.3",
46
55
  "rollup-plugin-terser": "^7.0.2",
47
- "typescript": "^4.5.5"
56
+ "typescript": "^4.5.5",
57
+ "vitest": "^1.3.1"
48
58
  },
49
59
  "peerDependencies": {
60
+ "@siemens/ix-icons": "^2.0.0",
50
61
  "react": ">=17.0.2",
51
- "react-dom": ">=17.0.2",
52
- "@siemens/ix-icons": "^2.0.0"
62
+ "react-dom": ">=17.0.2"
53
63
  },
54
64
  "dependencies": {
55
- "@siemens/ix": "~2.1.0-beta.3"
65
+ "@siemens/ix": "~2.1.1-beta.0"
56
66
  }
57
67
  }