@genesislcap/foundation-zero 14.168.0 → 14.169.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.
|
@@ -11827,7 +11827,7 @@
|
|
|
11827
11827
|
"type": {
|
|
11828
11828
|
"text": "StoryObj"
|
|
11829
11829
|
},
|
|
11830
|
-
"default": "{\n args: {\n notifyText:\n 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet',\n dialogMaxWidth: '557px',\n dialogTitle: 'Dialog title',\n dialogInitialText: 'Some text in a Zero Dialog',\n dialogMainText: `Lorem ipsum dolor sit amet consectetur adipisicing elit. Quis similique iste ab sed\n voluptatem ut suscipit tenetur distinctio? Quo est debitis pariatur qui quisquam repudiandae\n at atque et quibusdam rerum, reprehenderit sed laborum officiis distinctio dolorum\n temporibus aperiam dolor consequatur perferendis aspernatur fugit repellendus asperiores,\n voluptas illo? Voluptatum, atque quidem?`,\n dialogCloseButtonText: 'Close this dialog',\n },\n render: ({\n notifyText,\n dialogMaxWidth,\n dialogTitle,\n dialogInitialText,\n dialogMainText,\n dialogCloseButtonText,\n }) => html`\n
|
|
11830
|
+
"default": "{\n argTypes: {\n dialogType: {\n control: 'select',\n options: ['default', 'error', 'success'],\n },\n },\n args: {\n notifyText:\n 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet',\n dialogMaxWidth: '557px',\n dialogTitle: 'Dialog title',\n dialogInitialText: 'Some text in a Zero Dialog',\n dialogMainText: `Lorem ipsum dolor sit amet consectetur adipisicing elit. Quis similique iste ab sed\n voluptatem ut suscipit tenetur distinctio? Quo est debitis pariatur qui quisquam repudiandae\n at atque et quibusdam rerum, reprehenderit sed laborum officiis distinctio dolorum\n temporibus aperiam dolor consequatur perferendis aspernatur fugit repellendus asperiores,\n voluptas illo? Voluptatum, atque quidem?`,\n dialogCloseButtonText: 'Close this dialog',\n dialogType: 'default',\n },\n render: ({\n notifyText,\n dialogMaxWidth,\n dialogTitle,\n dialogInitialText,\n dialogMainText,\n dialogCloseButtonText,\n dialogType,\n }) => {\n document.getElementById(dialogNotifyId)?.remove();\n\n return html`\n <zero-button @click=\"${showDialog}\">Show Zero Dialog</zero-button>\n <zero-button @click=\"${showEmptyDialog}\">Show Empty Dialog</zero-button>\n <zero-button @click=\"${() => showDialogNotify(notifyText, dialogType)}\">\n Show Zero Dialog - Notification Structure ${dialogType}\n </zero-button>\n <div id=\"dialog-container\"></div>\n <zero-dialog style=\"--dialog-max-width: ${dialogMaxWidth};\" type=${dialogType}>\n <h5 slot=\"top\">${dialogTitle}</h5>\n <p>${dialogInitialText}</p>\n <p>${dialogMainText}</p>\n <zero-divider slot=\"bottom\"></zero-divider>\n <zero-button appearance=\"primary-gradient\" slot=\"bottom\" @click=\"${closeDialog}\">\n ${dialogCloseButtonText}\n </zero-button>\n </zero-dialog>\n <zero-dialog id=\"empty-dialog\"></zero-dialog>\n `;\n },\n}"
|
|
11831
11831
|
}
|
|
11832
11832
|
],
|
|
11833
11833
|
"exports": [
|
|
@@ -11856,7 +11856,7 @@
|
|
|
11856
11856
|
{
|
|
11857
11857
|
"kind": "variable",
|
|
11858
11858
|
"name": "zeroDialogStyles",
|
|
11859
|
-
"default": "css`\n ${foundationDialogStyles}\n :host {\n --dialog-background: ${neutralLayer2};\n }\n\n dialog {\n position: fixed;\n top: 0;\n bottom: 0;\n color: rgb(255 255 255 / 30%);\n border-radius: calc(var(--control-corner-radius) * 1px);\n border: 1px solid ${ColorHEX.lightGrey};\n text-align: left;\n line-height: normal;\n box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);\n }\n\n .top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n color: ${ColorHEX.almostWhite};\n margin-bottom: calc(var(--design-unit) * 2px);\n }\n\n .bottom {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n color: ${ColorHEX.almostWhite};\n }\n\n :host slot:first-of-type {\n color: ${neutralForegroundRest};\n }\n\n ::slotted(zero-button) {\n margin-top: calc(var(--design-unit) * 4px - 1px);\n }\n\n .content-wrapper {\n min-width: var(--dialog-min-width);\n min-height: var(--dialog-min-height);\n height: fit-content;\n width: fit-content;\n max-width: var(--dialog-max-width);\n max-height: var(--dialog-max-height);\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n }\n\n .close-icon:hover svg {\n background-color: ${whiteWebRGBA(0.05)};\n }\n\n .close-icon:hover svg g path {\n fill: ${whiteWebRGBA(1)};\n }\n\n .close-icon:active svg {\n background-color: ${defaultDialogActiveBGColor};\n }\n\n .close-icon:active svg g path {\n fill: ${whiteWebRGBA(0.33)};\n }\n`"
|
|
11859
|
+
"default": "css`\n ${foundationDialogStyles}\n :host {\n --color-error: ${ColorHEX.error};\n --color-success: ${ColorHEX.success};\n --dialog-background: ${neutralLayer2};\n }\n\n dialog {\n position: fixed;\n top: 0;\n bottom: 0;\n color: rgb(255 255 255 / 30%);\n border-radius: calc(var(--control-corner-radius) * 1px);\n border: 1px solid ${ColorHEX.lightGrey};\n text-align: left;\n line-height: normal;\n box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);\n }\n\n .top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n color: ${ColorHEX.almostWhite};\n margin-bottom: calc(var(--design-unit) * 2px);\n }\n\n .bottom {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n color: ${ColorHEX.almostWhite};\n }\n\n :host slot:first-of-type {\n color: ${neutralForegroundRest};\n }\n\n ::slotted(zero-button) {\n margin-top: calc(var(--design-unit) * 4px - 1px);\n }\n\n .content-wrapper {\n min-width: var(--dialog-min-width);\n min-height: var(--dialog-min-height);\n height: fit-content;\n width: fit-content;\n max-width: var(--dialog-max-width);\n max-height: var(--dialog-max-height);\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n }\n\n .close-icon:hover svg {\n background-color: ${whiteWebRGBA(0.05)};\n }\n\n .close-icon:hover svg g path {\n fill: ${whiteWebRGBA(1)};\n }\n\n .close-icon:active svg {\n background-color: ${defaultDialogActiveBGColor};\n }\n\n .close-icon:active svg g path {\n fill: ${whiteWebRGBA(0.33)};\n }\n`"
|
|
11860
11860
|
}
|
|
11861
11861
|
],
|
|
11862
11862
|
"exports": [
|
|
@@ -11900,12 +11900,24 @@
|
|
|
11900
11900
|
"tagName": "%%prefix%%-dialog",
|
|
11901
11901
|
"customElement": true,
|
|
11902
11902
|
"attributes": [
|
|
11903
|
+
{
|
|
11904
|
+
"name": "type",
|
|
11905
|
+
"type": {
|
|
11906
|
+
"text": "DialogType"
|
|
11907
|
+
},
|
|
11908
|
+
"default": "'default'",
|
|
11909
|
+
"fieldName": "type",
|
|
11910
|
+
"inheritedFrom": {
|
|
11911
|
+
"name": "DialogElement",
|
|
11912
|
+
"module": "src/dialog/dialog.ts"
|
|
11913
|
+
}
|
|
11914
|
+
},
|
|
11903
11915
|
{
|
|
11904
11916
|
"name": "position",
|
|
11905
11917
|
"type": {
|
|
11906
|
-
"text": "
|
|
11918
|
+
"text": "DialogPosition"
|
|
11907
11919
|
},
|
|
11908
|
-
"default": "'
|
|
11920
|
+
"default": "'center'",
|
|
11909
11921
|
"fieldName": "position",
|
|
11910
11922
|
"inheritedFrom": {
|
|
11911
11923
|
"name": "DialogElement",
|
|
@@ -11972,13 +11984,25 @@
|
|
|
11972
11984
|
"module": "src/dialog/dialog.ts"
|
|
11973
11985
|
}
|
|
11974
11986
|
},
|
|
11987
|
+
{
|
|
11988
|
+
"kind": "field",
|
|
11989
|
+
"name": "type",
|
|
11990
|
+
"type": {
|
|
11991
|
+
"text": "DialogType"
|
|
11992
|
+
},
|
|
11993
|
+
"default": "'default'",
|
|
11994
|
+
"inheritedFrom": {
|
|
11995
|
+
"name": "DialogElement",
|
|
11996
|
+
"module": "src/dialog/dialog.ts"
|
|
11997
|
+
}
|
|
11998
|
+
},
|
|
11975
11999
|
{
|
|
11976
12000
|
"kind": "field",
|
|
11977
12001
|
"name": "position",
|
|
11978
12002
|
"type": {
|
|
11979
|
-
"text": "
|
|
12003
|
+
"text": "DialogPosition"
|
|
11980
12004
|
},
|
|
11981
|
-
"default": "'
|
|
12005
|
+
"default": "'center'",
|
|
11982
12006
|
"inheritedFrom": {
|
|
11983
12007
|
"name": "DialogElement",
|
|
11984
12008
|
"module": "src/dialog/dialog.ts"
|
|
@@ -21429,12 +21453,24 @@
|
|
|
21429
21453
|
"tagName": "%%prefix%%-modal",
|
|
21430
21454
|
"customElement": true,
|
|
21431
21455
|
"attributes": [
|
|
21456
|
+
{
|
|
21457
|
+
"name": "type",
|
|
21458
|
+
"type": {
|
|
21459
|
+
"text": "DialogType"
|
|
21460
|
+
},
|
|
21461
|
+
"default": "'default'",
|
|
21462
|
+
"fieldName": "type",
|
|
21463
|
+
"inheritedFrom": {
|
|
21464
|
+
"name": "DialogElement",
|
|
21465
|
+
"module": "src/dialog/dialog.ts"
|
|
21466
|
+
}
|
|
21467
|
+
},
|
|
21432
21468
|
{
|
|
21433
21469
|
"name": "position",
|
|
21434
21470
|
"type": {
|
|
21435
|
-
"text": "
|
|
21471
|
+
"text": "DialogPosition"
|
|
21436
21472
|
},
|
|
21437
|
-
"default": "'
|
|
21473
|
+
"default": "'center'",
|
|
21438
21474
|
"fieldName": "position",
|
|
21439
21475
|
"inheritedFrom": {
|
|
21440
21476
|
"name": "DialogElement",
|
|
@@ -21501,13 +21537,25 @@
|
|
|
21501
21537
|
"module": "src/dialog/dialog.ts"
|
|
21502
21538
|
}
|
|
21503
21539
|
},
|
|
21540
|
+
{
|
|
21541
|
+
"kind": "field",
|
|
21542
|
+
"name": "type",
|
|
21543
|
+
"type": {
|
|
21544
|
+
"text": "DialogType"
|
|
21545
|
+
},
|
|
21546
|
+
"default": "'default'",
|
|
21547
|
+
"inheritedFrom": {
|
|
21548
|
+
"name": "DialogElement",
|
|
21549
|
+
"module": "src/dialog/dialog.ts"
|
|
21550
|
+
}
|
|
21551
|
+
},
|
|
21504
21552
|
{
|
|
21505
21553
|
"kind": "field",
|
|
21506
21554
|
"name": "position",
|
|
21507
21555
|
"type": {
|
|
21508
|
-
"text": "
|
|
21556
|
+
"text": "DialogPosition"
|
|
21509
21557
|
},
|
|
21510
|
-
"default": "'
|
|
21558
|
+
"default": "'center'",
|
|
21511
21559
|
"inheritedFrom": {
|
|
21512
21560
|
"name": "DialogElement",
|
|
21513
21561
|
"module": "src/dialog/dialog.ts"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.stories.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"dialog.stories.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;AA4CpB,eAAO,MAAM,OAAO,EAAE,QAmDrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.styles.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"dialog.styles.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB,iDAuE5B,CAAC"}
|
|
@@ -16,11 +16,12 @@ const closeDialog = (e) => {
|
|
|
16
16
|
const dialog = document.querySelector('zero-dialog');
|
|
17
17
|
dialog.close();
|
|
18
18
|
};
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
const dialogNotifyId = 'dialogNotify';
|
|
20
|
+
const showDialogNotify = (notifyText, dialogType) => {
|
|
21
|
+
const dialogNotify = document.createElement('zero-dialog');
|
|
22
|
+
dialogNotify.setAttribute('id', dialogNotifyId);
|
|
23
|
+
dialogNotify.type = dialogType;
|
|
24
|
+
dialogNotify.notification = {
|
|
24
25
|
title: 'Notify Title',
|
|
25
26
|
body: `${notifyText} ID - notify - ${Math.random()}`,
|
|
26
27
|
config: {
|
|
@@ -36,9 +37,17 @@ const showDialogNotify = (notifyText) => {
|
|
|
36
37
|
},
|
|
37
38
|
},
|
|
38
39
|
};
|
|
39
|
-
|
|
40
|
+
const container = document.getElementById('dialog-container');
|
|
41
|
+
container.appendChild(dialogNotify);
|
|
42
|
+
dialogNotify.show();
|
|
40
43
|
};
|
|
41
44
|
export const Primary = {
|
|
45
|
+
argTypes: {
|
|
46
|
+
dialogType: {
|
|
47
|
+
control: 'select',
|
|
48
|
+
options: ['default', 'error', 'success'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
42
51
|
args: {
|
|
43
52
|
notifyText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet',
|
|
44
53
|
dialogMaxWidth: '557px',
|
|
@@ -50,23 +59,28 @@ export const Primary = {
|
|
|
50
59
|
temporibus aperiam dolor consequatur perferendis aspernatur fugit repellendus asperiores,
|
|
51
60
|
voluptas illo? Voluptatum, atque quidem?`,
|
|
52
61
|
dialogCloseButtonText: 'Close this dialog',
|
|
62
|
+
dialogType: 'default',
|
|
53
63
|
},
|
|
54
|
-
render: ({ notifyText, dialogMaxWidth, dialogTitle, dialogInitialText, dialogMainText, dialogCloseButtonText, }) =>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Show Zero Dialog
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<h5 slot="top">${dialogTitle}</h5>
|
|
63
|
-
<p>${dialogInitialText}</p>
|
|
64
|
-
<p>${dialogMainText}</p>
|
|
65
|
-
<zero-divider slot="bottom"></zero-divider>
|
|
66
|
-
<zero-button appearance="primary-gradient" slot="bottom" @click="${closeDialog}">
|
|
67
|
-
${dialogCloseButtonText}
|
|
64
|
+
render: ({ notifyText, dialogMaxWidth, dialogTitle, dialogInitialText, dialogMainText, dialogCloseButtonText, dialogType, }) => {
|
|
65
|
+
var _a;
|
|
66
|
+
(_a = document.getElementById(dialogNotifyId)) === null || _a === void 0 ? void 0 : _a.remove();
|
|
67
|
+
return html `
|
|
68
|
+
<zero-button @click="${showDialog}">Show Zero Dialog</zero-button>
|
|
69
|
+
<zero-button @click="${showEmptyDialog}">Show Empty Dialog</zero-button>
|
|
70
|
+
<zero-button @click="${() => showDialogNotify(notifyText, dialogType)}">
|
|
71
|
+
Show Zero Dialog - Notification Structure ${dialogType}
|
|
68
72
|
</zero-button>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
<div id="dialog-container"></div>
|
|
74
|
+
<zero-dialog style="--dialog-max-width: ${dialogMaxWidth};" type=${dialogType}>
|
|
75
|
+
<h5 slot="top">${dialogTitle}</h5>
|
|
76
|
+
<p>${dialogInitialText}</p>
|
|
77
|
+
<p>${dialogMainText}</p>
|
|
78
|
+
<zero-divider slot="bottom"></zero-divider>
|
|
79
|
+
<zero-button appearance="primary-gradient" slot="bottom" @click="${closeDialog}">
|
|
80
|
+
${dialogCloseButtonText}
|
|
81
|
+
</zero-button>
|
|
82
|
+
</zero-dialog>
|
|
83
|
+
<zero-dialog id="empty-dialog"></zero-dialog>
|
|
84
|
+
`;
|
|
85
|
+
},
|
|
72
86
|
};
|
|
@@ -8,6 +8,8 @@ import { defaultDialogActiveBGColor } from './styles/colors';
|
|
|
8
8
|
export const zeroDialogStyles = css `
|
|
9
9
|
${foundationDialogStyles}
|
|
10
10
|
:host {
|
|
11
|
+
--color-error: ${ColorHEX.error};
|
|
12
|
+
--color-success: ${ColorHEX.success};
|
|
11
13
|
--dialog-background: ${neutralLayer2};
|
|
12
14
|
}
|
|
13
15
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-zero",
|
|
3
3
|
"description": "Genesis Foundation Zero Design System",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.169.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^4.0.0",
|
|
70
|
-
"@genesislcap/genx": "14.
|
|
71
|
-
"@genesislcap/rollup-builder": "14.
|
|
72
|
-
"@genesislcap/ts-builder": "14.
|
|
73
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
74
|
-
"@genesislcap/vite-builder": "14.
|
|
75
|
-
"@genesislcap/webpack-builder": "14.
|
|
70
|
+
"@genesislcap/genx": "14.169.0",
|
|
71
|
+
"@genesislcap/rollup-builder": "14.169.0",
|
|
72
|
+
"@genesislcap/ts-builder": "14.169.0",
|
|
73
|
+
"@genesislcap/uvu-playwright-builder": "14.169.0",
|
|
74
|
+
"@genesislcap/vite-builder": "14.169.0",
|
|
75
|
+
"@genesislcap/webpack-builder": "14.169.0",
|
|
76
76
|
"@storybook/addon-coverage": "^1.0.1",
|
|
77
77
|
"@storybook/addon-essentials": "^8.0.0",
|
|
78
78
|
"@storybook/addon-links": "^8.0.0",
|
|
@@ -89,10 +89,10 @@
|
|
|
89
89
|
"storybook": "^8.0.0"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@genesislcap/foundation-comms": "14.
|
|
93
|
-
"@genesislcap/foundation-logger": "14.
|
|
94
|
-
"@genesislcap/foundation-ui": "14.
|
|
95
|
-
"@genesislcap/foundation-utils": "14.
|
|
92
|
+
"@genesislcap/foundation-comms": "14.169.0",
|
|
93
|
+
"@genesislcap/foundation-logger": "14.169.0",
|
|
94
|
+
"@genesislcap/foundation-ui": "14.169.0",
|
|
95
|
+
"@genesislcap/foundation-utils": "14.169.0",
|
|
96
96
|
"@microsoft/fast-colors": "^5.3.1",
|
|
97
97
|
"@microsoft/fast-components": "^2.30.6",
|
|
98
98
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
111
|
"customElements": "dist/custom-elements.json",
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "59695045bb3be9f8f42679be27fc88cd911e5136"
|
|
113
113
|
}
|