@redvars/peacock 3.9.0 → 3.9.1
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/code-highlighter.js +1 -4
- package/dist/code-highlighter.js.map +1 -1
- package/dist/custom-elements-jsdocs.json +39 -223
- package/dist/custom-elements.json +391 -2205
- package/dist/elevation.js +55 -2
- package/dist/elevation.js.map +1 -1
- package/dist/flow.js +762 -0
- package/dist/flow.js.map +1 -0
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/loader.js +2 -9
- package/dist/loader.js.map +1 -1
- package/dist/menu-item.js +144 -63
- package/dist/menu-item.js.map +1 -1
- package/dist/menu.js +161 -73
- package/dist/menu.js.map +1 -1
- package/dist/src/flow/flow.d.ts +102 -0
- package/dist/src/flow/index.d.ts +2 -0
- package/dist/src/index.d.ts +2 -4
- package/dist/src/menu/menu/menu.d.ts +10 -9
- package/dist/src/menu/menu-item/menu-item.d.ts +1 -3
- package/dist/src/timeline/timeline.d.ts +0 -1
- package/dist/sub-menu.js +28 -1
- package/dist/sub-menu.js.map +1 -1
- package/dist/timeline-item.js +22 -34
- package/dist/timeline-item.js.map +1 -1
- package/dist/timeline.js +1 -18
- package/dist/timeline.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/readme.md +2 -2
- package/src/code-highlighter/code-highlighter.scss +1 -7
- package/src/elevation/demo/index.html +52 -0
- package/src/elevation/elevation.scss +52 -5
- package/src/elevation/elevation.ts +8 -1
- package/src/flow/flow.scss +195 -0
- package/src/flow/flow.ts +683 -0
- package/src/flow/index.ts +2 -0
- package/src/index.ts +2 -16
- package/src/loader.ts +2 -9
- package/src/menu/menu/copy-component-files.mjs +47 -0
- package/src/menu/menu/menu.scss +55 -17
- package/src/menu/menu/menu.ts +155 -84
- package/src/menu/menu-item/menu-item-colors.scss +3 -3
- package/src/menu/menu-item/menu-item.scss +118 -24
- package/src/menu/menu-item/menu-item.ts +61 -55
- package/src/menu/sub-menu/sub-menu.scss +30 -1
- package/src/timeline/timeline-item.scss +21 -31
- package/src/timeline/timeline-item.ts +2 -1
- package/src/timeline/timeline.scss +0 -10
- package/src/timeline/timeline.ts +0 -2
- package/dist/canvas.js +0 -385
- package/dist/canvas.js.map +0 -1
- package/dist/flow-designer-node-CGSm6cUH.js +0 -553
- package/dist/flow-designer-node-CGSm6cUH.js.map +0 -1
- package/dist/flow-designer-node.js +0 -4
- package/dist/flow-designer-node.js.map +0 -1
- package/dist/flow-designer.js +0 -1417
- package/dist/flow-designer.js.map +0 -1
- package/dist/src/canvas/canvas.d.ts +0 -92
- package/dist/src/canvas/index.d.ts +0 -2
- package/dist/src/flow-designer/commands.d.ts +0 -66
- package/dist/src/flow-designer/flow-designer-node.d.ts +0 -46
- package/dist/src/flow-designer/flow-designer.d.ts +0 -133
- package/dist/src/flow-designer/index.d.ts +0 -7
- package/dist/src/flow-designer/layout.d.ts +0 -30
- package/dist/src/flow-designer/types.d.ts +0 -142
- package/dist/src/flow-designer/validation.d.ts +0 -43
- package/dist/src/flow-designer/workflow-utils.d.ts +0 -40
- package/src/canvas/canvas.scss +0 -72
- package/src/canvas/canvas.ts +0 -413
- package/src/canvas/index.ts +0 -2
- package/src/flow-designer/DEMO.md +0 -239
- package/src/flow-designer/commands.ts +0 -278
- package/src/flow-designer/flow-designer-node.ts +0 -172
- package/src/flow-designer/flow-designer.scss +0 -457
- package/src/flow-designer/flow-designer.ts +0 -611
- package/src/flow-designer/index.ts +0 -41
- package/src/flow-designer/layout.ts +0 -357
- package/src/flow-designer/types.ts +0 -166
- package/src/flow-designer/validation.ts +0 -284
- package/src/flow-designer/workflow-utils.ts +0 -282
- /package/dist/test/{flow-designer.test.d.ts → elevation.test.d.ts} +0 -0
package/dist/elevation.js
CHANGED
|
@@ -39,13 +39,61 @@ var css_248z = i`* {
|
|
|
39
39
|
transition-property: box-shadow, opacity;
|
|
40
40
|
--elevation-level: 0;
|
|
41
41
|
--elevation-color: var(--elevation-color-default, black);
|
|
42
|
+
/* Fallback values for side-specific levels, falling back to --elevation-level */
|
|
43
|
+
--_level-top: var(--elevation-level-block-start, var(--elevation-level, 0));
|
|
44
|
+
--_level-bottom: var(--elevation-level-block-end, var(--elevation-level, 0));
|
|
45
|
+
--_level-left: var(--elevation-level-inline-start, var(--elevation-level, 0));
|
|
46
|
+
--_level-right: var(--elevation-level-inline-end, var(--elevation-level, 0));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host-context([dir=rtl]) {
|
|
50
|
+
--_level-left: var(--elevation-level-inline-end, var(--elevation-level, 0));
|
|
51
|
+
--_level-right: var(--elevation-level-inline-start, var(--elevation-level, 0));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([dir=rtl]) {
|
|
55
|
+
--_level-left: var(--elevation-level-inline-end, var(--elevation-level, 0));
|
|
56
|
+
--_level-right: var(--elevation-level-inline-start, var(--elevation-level, 0));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.shadow {
|
|
60
|
+
/* Set the default private level property */
|
|
61
|
+
--_level: var(--elevation-level, 0);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.shadow.block-start {
|
|
65
|
+
--_level: var(--_level-top);
|
|
66
|
+
clip-path: polygon(50% 50%, -950% -950%, 1050% -950%);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.shadow.block-end {
|
|
70
|
+
--_level: var(--_level-bottom);
|
|
71
|
+
clip-path: polygon(50% 50%, 1050% 1050%, -950% 1050%);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.shadow.inline-start {
|
|
75
|
+
--_level: var(--_level-left);
|
|
76
|
+
clip-path: polygon(50% 50%, -950% 1050%, -950% -950%);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.shadow.inline-end {
|
|
80
|
+
--_level: var(--_level-right);
|
|
81
|
+
clip-path: polygon(50% 50%, 1050% -950%, 1050% 1050%);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:host-context([dir=rtl]) .shadow.inline-start,
|
|
85
|
+
:host([dir=rtl]) .shadow.inline-start {
|
|
86
|
+
clip-path: polygon(50% 50%, 1050% -950%, 1050% 1050%);
|
|
87
|
+
}
|
|
88
|
+
:host-context([dir=rtl]) .shadow.inline-end,
|
|
89
|
+
:host([dir=rtl]) .shadow.inline-end {
|
|
90
|
+
clip-path: polygon(50% 50%, -950% 1050%, -950% -950%);
|
|
42
91
|
}
|
|
43
92
|
|
|
44
93
|
.shadow::before,
|
|
45
94
|
.shadow::after {
|
|
46
95
|
content: "";
|
|
47
96
|
transition-property: box-shadow, opacity;
|
|
48
|
-
--_level: var(--elevation-level);
|
|
49
97
|
--_shadow-color: var(--elevation-color);
|
|
50
98
|
}
|
|
51
99
|
|
|
@@ -83,7 +131,12 @@ var css_248z = i`* {
|
|
|
83
131
|
*/
|
|
84
132
|
let Elevation = class Elevation extends i$1 {
|
|
85
133
|
render() {
|
|
86
|
-
return b
|
|
134
|
+
return b `
|
|
135
|
+
<span class="shadow block-start"></span>
|
|
136
|
+
<span class="shadow block-end"></span>
|
|
137
|
+
<span class="shadow inline-start"></span>
|
|
138
|
+
<span class="shadow inline-end"></span>
|
|
139
|
+
`;
|
|
87
140
|
}
|
|
88
141
|
};
|
|
89
142
|
Elevation.styles = [css_248z];
|
package/dist/elevation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elevation.js","sources":["../../src/elevation/elevation.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport styles from './elevation.scss';\nimport IndividualComponent from '@/IndividualComponent.js';\n\n/**\n * @label Elevation\n * @tag wc-elevation\n * @rawTag elevation\n *\n * @summary Adds elevation to an element.\n * @overview\n * - Elevation adds a shadow effect to an element to give it depth.\n * - It can be used to create a sense of hierarchy or to draw attention to a particular element.\n *\n * @cssprop --elevation-level - Controls the elevation level of the shadow.\n * @cssprop --elevation-color - Controls the color of the shadow.\n *\n * @example\n * ```html\n * <div style=\"position: relative; padding: var(--spacing-200);\">\n * <wc-elevation style='--elevation-level: 2; --elevation-container-shape: var(--shape-corner-extra-small);'></wc-elevation>\n * Level 2\n * </div>\n * ```\n * @tags display\n */\n@IndividualComponent\nexport class Elevation extends LitElement {\n static styles = [styles];\n\n render() {\n return html
|
|
1
|
+
{"version":3,"file":"elevation.js","sources":["../../src/elevation/elevation.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport styles from './elevation.scss';\nimport IndividualComponent from '@/IndividualComponent.js';\n\n/**\n * @label Elevation\n * @tag wc-elevation\n * @rawTag elevation\n *\n * @summary Adds elevation to an element.\n * @overview\n * - Elevation adds a shadow effect to an element to give it depth.\n * - It can be used to create a sense of hierarchy or to draw attention to a particular element.\n *\n * @cssprop --elevation-level - Controls the elevation level of the shadow.\n * @cssprop --elevation-color - Controls the color of the shadow.\n *\n * @example\n * ```html\n * <div style=\"position: relative; padding: var(--spacing-200);\">\n * <wc-elevation style='--elevation-level: 2; --elevation-container-shape: var(--shape-corner-extra-small);'></wc-elevation>\n * Level 2\n * </div>\n * ```\n * @tags display\n */\n@IndividualComponent\nexport class Elevation extends LitElement {\n static styles = [styles];\n\n render() {\n return html`\n <span class=\"shadow block-start\"></span>\n <span class=\"shadow block-end\"></span>\n <span class=\"shadow inline-start\"></span>\n <span class=\"shadow inline-end\"></span>\n `;\n }\n}\n\n\n"],"names":["LitElement","html","styles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;;;;;;;;;;;;;;;;;;;;AAqBG;AAEI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQA,GAAU,CAAA;IAGvC,MAAM,GAAA;AACJ,QAAA,OAAOC,CAAI,CAAA;;;;;KAKV;IACH;;AATO,SAAA,CAAA,MAAM,GAAG,CAACC,QAAM,CAAC;AADb,SAAS,GAAA,UAAA,CAAA;IADrB;AACY,CAAA,EAAA,SAAS,CAWrB;;;;"}
|