@pepperi-addons/ngx-composite-lib-react 0.5.26 → 0.5.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pepperi-addons/ngx-composite-lib-react",
3
- "version": "0.5.26",
3
+ "version": "0.5.28",
4
4
  "description": "Thin React wrappers for Pepperi Angular Elements (Web Components) to improve DX in React.",
5
5
  "license": "MIT",
6
6
  "author": "Pepperi",
@@ -27,13 +27,18 @@
27
27
  "*.d.ts",
28
28
  "README.md",
29
29
  "elements/*",
30
- "i18n/*"
30
+ "i18n/*",
31
+ "styles/**"
31
32
  ],
32
33
  "exports": {
33
34
  ".": {
34
35
  "types": "./index.d.ts",
35
36
  "default": "./index.js"
36
37
  },
38
+ "./styles/*": "./styles/*",
39
+ "./styles/*/*": "./styles/*/*",
40
+ "./styles/*/*/*": "./styles/*/*/*",
41
+ "./styles/*/*/*/*": "./styles/*/*/*/*",
37
42
  "./elements/styles.css": "./elements/styles.css",
38
43
  "./elements/main.js": "./elements/main.js",
39
44
  "./elements/runtime.js": "./elements/runtime.js",
@@ -426,6 +426,7 @@ export class PepLayoutBuilder2 extends React.Component {
426
426
  return existing;
427
427
  }
428
428
  const container = document.createElement('div');
429
+ container.style.display = 'contents';
429
430
  host.replaceChildren(container);
430
431
  const root = this.getLegacyRoot(container);
431
432
  const entry = { container, root };
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,65 @@
1
+ @use '@pepperi-addons/ngx-lib/src/core/style/abstracts/variables' as ngx-variables;
2
+ @use '@pepperi-addons/ngx-lib/src/core/style/abstracts/functions' as ngx-functions;
3
+ @use '@pepperi-addons/ngx-lib/src/core/style/abstracts/mixins' as ngx-mixins;
4
+
5
+ /* You can add global styles to this file, and also import other style files */
6
+ html {
7
+ body.inheritCursors * {
8
+ cursor: inherit !important;
9
+ }
10
+ }
11
+
12
+ @mixin mapped-field-item-container() {
13
+ max-width: 600px;
14
+ // height: 6rem;
15
+ display: flex;
16
+ justify-content: center;
17
+ align-items: center;
18
+ border-radius: ngx-variables.$border-radius-md;
19
+
20
+ &:not(.separator-container) {
21
+ padding-inline: ngx-variables.$spacing-lg;
22
+ }
23
+ }
24
+
25
+ @mixin mapped-field-container() {
26
+ @include mapped-field-item-container();
27
+
28
+ &:not(.separator-container) {
29
+ gap: ngx-variables.$double-content-margin;
30
+ @include ngx-mixins.state-regular-default(true);
31
+ // border-color: ngx-functions.get-pep-color(color-system-primary, color-tran-50);
32
+ }
33
+
34
+ .fields-wrapper {
35
+ display: grid;
36
+ width: 100%;
37
+ grid-template-columns: 1fr 1fr auto;
38
+ gap: 0.5rem;
39
+ padding-top: 0.5rem;
40
+
41
+ // To align with the other fields.
42
+ .center-button {
43
+ margin-top: ngx-variables.$form-field-title-height;
44
+ }
45
+ }
46
+
47
+ .separator-wrapper {
48
+ display: grid;
49
+ width: 100%;
50
+ grid-template-columns: 1fr auto;
51
+ padding-bottom: ngx-variables.$spacing-xs;
52
+ border-bottom: 1px solid ngx-functions.get-pep-color(color-regular, color-flat-r-20);
53
+
54
+ .list-actions {
55
+ display: flex;
56
+ gap: ngx-variables.$spacing-xs
57
+ }
58
+ }
59
+ }
60
+
61
+ .cdk-drag-preview {
62
+ &.mapped-field-container {
63
+ @include mapped-field-container();
64
+ }
65
+ }
File without changes