globuswebcomponents 0.6.4 → 0.6.5
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/cjs/gb-avatar_34.cjs.entry.js +46 -45
- package/dist/cjs/gb-avatar_34.cjs.entry.js.map +1 -1
- package/dist/cjs/gb-button-close_2.cjs.entry.js +1 -1
- package/dist/cjs/gb-megainput-field.cjs.entry.js +2 -2
- package/dist/cjs/gb-progress-circle.cjs.entry.js +1 -1
- package/dist/cjs/gb-rich-text.cjs.entry.js +1 -1
- package/dist/cjs/gb-scrollbar.cjs.entry.js +1 -1
- package/dist/cjs/gb-slider-control-handle.cjs.entry.js +1 -1
- package/dist/cjs/gb-slider.cjs.entry.js +1 -1
- package/dist/cjs/gb-toast-button.cjs.entry.js +1 -1
- package/dist/cjs/gb-toast.cjs.entry.js +1 -1
- package/dist/cjs/gb-toggle.cjs.entry.js +1 -1
- package/dist/cjs/gb-token-field.cjs.entry.js +1 -1
- package/dist/cjs/gb-verification-code-field.cjs.entry.js +2 -2
- package/dist/collection/components/gb-checkbox/gb-checkbox.css +2 -2
- package/dist/collection/components/gb-checkbox/gb-checkbox.js +19 -1
- package/dist/collection/components/gb-checkbox/gb-checkbox.js.map +1 -1
- package/dist/collection/components/gb-help-tooltip/gb-help-tooltip.css +4 -1
- package/dist/collection/components/gb-help-tooltip/gb-help-tooltip.js +3 -3
- package/dist/collection/components/gb-help-tooltip/gb-help-tooltip.js.map +1 -1
- package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.js +1 -1
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +4 -4
- package/dist/collection/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.js +2 -2
- package/dist/collection/components/gb-input-field/gb-input-field.js +8 -8
- package/dist/collection/components/gb-megainput-field-base/gb-megainput-field.js +2 -2
- package/dist/collection/components/gb-notification-content/gb-notification-content.js +1 -1
- package/dist/collection/components/gb-notification-pane/gb-notification-pane.css +1 -0
- package/dist/collection/components/gb-notification-pane/gb-notification-pane.js +4 -4
- package/dist/collection/components/gb-pagination/gb-pagination.js +1 -1
- package/dist/collection/components/gb-pagination-button-group-base/gb-pagination-button-group-base.js +1 -1
- package/dist/collection/components/gb-pagination-dot-indicator/gb-pagination-dot-indicator.js +1 -1
- package/dist/collection/components/gb-pagination-number-base/gb-pagination-number-base.js +1 -1
- package/dist/collection/components/gb-password-button/gb-password-button.js +1 -1
- package/dist/collection/components/gb-progress-bar/gb-progress-bar.js +1 -1
- package/dist/collection/components/gb-progress-circle/gb-progress-circle.js +1 -1
- package/dist/collection/components/gb-rich-text/gb-rich-text.js +1 -1
- package/dist/collection/components/gb-scrollbar/gb-scrollbar.js +1 -1
- package/dist/collection/components/gb-side-bar-item/gb-side-bar-item.js +1 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.js +1 -1
- package/dist/collection/components/gb-slider/gb-slider.js +1 -1
- package/dist/collection/components/gb-slider-control-handle/slider-control-handle.js +1 -1
- package/dist/collection/components/gb-status-indicator/gb-status-indicator.js +1 -1
- package/dist/collection/components/gb-tab-button-base/gb-tab-button-base.js +3 -3
- package/dist/collection/components/gb-tag/gb-tag.js +1 -1
- package/dist/collection/components/gb-tag-checkbox/gb-tag-checkbox.js +1 -1
- package/dist/collection/components/gb-tag-close/gb-tag-close.js +1 -1
- package/dist/collection/components/gb-tag-count/gb-tag-count.js +1 -1
- package/dist/collection/components/gb-toast/gb-toast.js +1 -1
- package/dist/collection/components/gb-toast-button/gb-toast-button.js +1 -1
- package/dist/collection/components/gb-toggle/gb-toggle.js +1 -1
- package/dist/collection/components/gb-toggle-base/gb-toggle-base.js +2 -2
- package/dist/collection/components/gb-token-field/gb-token-field.js +1 -1
- package/dist/collection/components/gb-tooltip/gb-tooltip.css +4 -0
- package/dist/collection/components/gb-tooltip/gb-tooltip.js +1 -1
- package/dist/collection/components/gb-verification-code-field/gb-verification-code-field.js +2 -2
- package/dist/components/gb-avatar-add-button.js +1 -1
- package/dist/components/gb-avatar-dropdown.js +5 -5
- package/dist/components/gb-avatar-group.js +4 -4
- package/dist/components/gb-avatar-label-group.js +1 -1
- package/dist/components/gb-avatar-profile-photo.js +2 -2
- package/dist/components/gb-avatar.js +1 -1
- package/dist/components/gb-badge.js +1 -1
- package/dist/components/gb-checkbox-group-item.js +1 -1
- package/dist/components/gb-checkbox-group.js +4 -4
- package/dist/components/gb-checkbox.js +1 -1
- package/dist/components/gb-collapse-button.js +1 -1
- package/dist/components/gb-dropdown-items-with-shortcut.js +1 -1
- package/dist/components/gb-file-upload-item-base.js +1 -1
- package/dist/components/gb-file-upload.js +3 -3
- package/dist/components/gb-header.js +2 -2
- package/dist/components/gb-help-dropdown.js +2 -2
- package/dist/components/gb-help-tooltip.js +1 -1
- package/dist/components/gb-horizontal-tabs.js +5 -5
- package/dist/components/gb-input-dropdown-menu-item.js +1 -1
- package/dist/components/gb-input-dropdown.js +1 -1
- package/dist/components/gb-input-field.js +11 -11
- package/dist/components/gb-megainput-field.js +1 -1
- package/dist/components/gb-notification-content.js +1 -1
- package/dist/components/gb-notification-pane.js +6 -6
- package/dist/components/gb-notification-pane.js.map +1 -1
- package/dist/components/gb-pagination-button-group-base.js +1 -1
- package/dist/components/gb-pagination-dot-indicator.js +1 -1
- package/dist/components/gb-pagination-number-base.js +1 -1
- package/dist/components/gb-pagination.js +1 -1
- package/dist/components/gb-password-button.js +1 -1
- package/dist/components/gb-progress-bar.js +1 -1
- package/dist/components/gb-progress-circle.js +1 -1
- package/dist/components/gb-rich-text.js +13 -13
- package/dist/components/gb-scrollbar.js +1 -1
- package/dist/components/gb-side-bar-item.js +1 -1
- package/dist/components/gb-sidebar.js +7 -7
- package/dist/components/gb-slider-control-handle.js +1 -1
- package/dist/components/gb-slider.js +3 -3
- package/dist/components/gb-status-indicator.js +1 -1
- package/dist/components/gb-tab-button-base.js +1 -1
- package/dist/components/gb-tag-checkbox.js +1 -1
- package/dist/components/gb-tag-close.js +1 -1
- package/dist/components/gb-tag-count.js +1 -1
- package/dist/components/gb-tag.js +1 -1
- package/dist/components/gb-toast-button.js +1 -1
- package/dist/components/gb-toast.js +2 -2
- package/dist/components/gb-toggle-base.js +1 -1
- package/dist/components/gb-toggle.js +2 -2
- package/dist/components/gb-token-field.js +2 -2
- package/dist/components/gb-tooltip.js +1 -1
- package/dist/components/gb-verification-code-field.js +3 -3
- package/dist/components/gb-wysiwyg-toolbar.js +1 -1
- package/dist/components/{p-69eb05e6.js → p-0456af7b.js} +2 -2
- package/dist/components/{p-69eb05e6.js.map → p-0456af7b.js.map} +1 -1
- package/dist/components/{p-02b6abc5.js → p-0bc41dab.js} +5 -4
- package/dist/components/p-0bc41dab.js.map +1 -0
- package/dist/components/{p-9002f572.js → p-1fe4daf8.js} +3 -3
- package/dist/components/{p-9002f572.js.map → p-1fe4daf8.js.map} +1 -1
- package/dist/components/{p-e5e4535f.js → p-3a4d6142.js} +2 -2
- package/dist/components/{p-e5e4535f.js.map → p-3a4d6142.js.map} +1 -1
- package/dist/components/{p-4586ba04.js → p-3ea194b5.js} +7 -7
- package/dist/components/{p-4586ba04.js.map → p-3ea194b5.js.map} +1 -1
- package/dist/components/{p-bea0b305.js → p-4812928e.js} +15 -15
- package/dist/components/{p-bea0b305.js.map → p-4812928e.js.map} +1 -1
- package/dist/components/{p-93f34aac.js → p-4faa2686.js} +2 -2
- package/dist/components/{p-93f34aac.js.map → p-4faa2686.js.map} +1 -1
- package/dist/components/{p-33ef73e5.js → p-56013fc8.js} +3 -3
- package/dist/components/{p-33ef73e5.js.map → p-56013fc8.js.map} +1 -1
- package/dist/components/{p-ee813bff.js → p-70cc61c1.js} +3 -3
- package/dist/components/{p-ee813bff.js.map → p-70cc61c1.js.map} +1 -1
- package/dist/components/{p-3926487a.js → p-72927863.js} +3 -3
- package/dist/components/{p-3926487a.js.map → p-72927863.js.map} +1 -1
- package/dist/components/{p-27c7572c.js → p-8b0c130f.js} +7 -7
- package/dist/components/{p-27c7572c.js.map → p-8b0c130f.js.map} +1 -1
- package/dist/components/{p-cff1083f.js → p-8f55e62a.js} +4 -4
- package/dist/components/{p-cff1083f.js.map → p-8f55e62a.js.map} +1 -1
- package/dist/components/{p-07a41a89.js → p-9177026d.js} +6 -6
- package/dist/components/p-9177026d.js.map +1 -0
- package/dist/components/{p-aafa633a.js → p-93839d6c.js} +3 -3
- package/dist/components/{p-aafa633a.js.map → p-93839d6c.js.map} +1 -1
- package/dist/components/{p-88985c81.js → p-9497e965.js} +3 -3
- package/dist/components/p-9497e965.js.map +1 -0
- package/dist/components/{p-269fc593.js → p-b60e6bf3.js} +2 -2
- package/dist/components/{p-269fc593.js.map → p-b60e6bf3.js.map} +1 -1
- package/dist/components/{p-45e9db9f.js → p-cdd1242d.js} +2 -2
- package/dist/components/{p-45e9db9f.js.map → p-cdd1242d.js.map} +1 -1
- package/dist/components/{p-e52f2d0e.js → p-d13fec4e.js} +2 -2
- package/dist/components/{p-e52f2d0e.js.map → p-d13fec4e.js.map} +1 -1
- package/dist/components/{p-982a08fb.js → p-d49c9891.js} +6 -6
- package/dist/components/{p-982a08fb.js.map → p-d49c9891.js.map} +1 -1
- package/dist/components/{p-8c11bf30.js → p-d91ecf50.js} +3 -3
- package/dist/components/{p-8c11bf30.js.map → p-d91ecf50.js.map} +1 -1
- package/dist/components/{p-2593d460.js → p-d9261ac4.js} +2 -2
- package/dist/components/{p-2593d460.js.map → p-d9261ac4.js.map} +1 -1
- package/dist/components/{p-96e978a1.js → p-e3df7633.js} +6 -6
- package/dist/components/{p-96e978a1.js.map → p-e3df7633.js.map} +1 -1
- package/dist/components/{p-529d167d.js → p-e9176120.js} +2 -2
- package/dist/components/{p-529d167d.js.map → p-e9176120.js.map} +1 -1
- package/dist/components/{p-51845b4a.js → p-ed457e85.js} +2 -2
- package/dist/components/{p-51845b4a.js.map → p-ed457e85.js.map} +1 -1
- package/dist/components/{p-4e1f9e69.js → p-ee117fed.js} +2 -2
- package/dist/components/{p-4e1f9e69.js.map → p-ee117fed.js.map} +1 -1
- package/dist/components/{p-30dc7ace.js → p-f1e2b919.js} +12 -12
- package/dist/components/{p-30dc7ace.js.map → p-f1e2b919.js.map} +1 -1
- package/dist/components/{p-e756f170.js → p-f7dac30e.js} +2 -2
- package/dist/components/{p-e756f170.js.map → p-f7dac30e.js.map} +1 -1
- package/dist/components/{p-0a66bea5.js → p-f9aea40e.js} +3 -3
- package/dist/components/{p-0a66bea5.js.map → p-f9aea40e.js.map} +1 -1
- package/dist/esm/gb-avatar_34.entry.js +46 -45
- package/dist/esm/gb-avatar_34.entry.js.map +1 -1
- package/dist/esm/gb-button-close_2.entry.js +1 -1
- package/dist/esm/gb-megainput-field.entry.js +2 -2
- package/dist/esm/gb-progress-circle.entry.js +1 -1
- package/dist/esm/gb-rich-text.entry.js +1 -1
- package/dist/esm/gb-scrollbar.entry.js +1 -1
- package/dist/esm/gb-slider-control-handle.entry.js +1 -1
- package/dist/esm/gb-slider.entry.js +1 -1
- package/dist/esm/gb-toast-button.entry.js +1 -1
- package/dist/esm/gb-toast.entry.js +1 -1
- package/dist/esm/gb-toggle.entry.js +1 -1
- package/dist/esm/gb-token-field.entry.js +1 -1
- package/dist/esm/gb-verification-code-field.entry.js +2 -2
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/{p-cab01c3b.entry.js → p-213333d1.entry.js} +2 -2
- package/dist/globuscomponents/p-213333d1.entry.js.map +1 -0
- package/dist/globuscomponents/{p-42f1db13.entry.js → p-35eef8c6.entry.js} +2 -2
- package/dist/globuscomponents/{p-0869d175.entry.js → p-3ced3015.entry.js} +2 -2
- package/dist/globuscomponents/{p-d808b613.entry.js → p-615a7e4e.entry.js} +2 -2
- package/dist/globuscomponents/{p-19885058.entry.js → p-89485a6d.entry.js} +2 -2
- package/dist/globuscomponents/{p-4a27e1e0.entry.js → p-8f6a956b.entry.js} +2 -2
- package/dist/globuscomponents/p-a09b2304.entry.js +2 -0
- package/dist/globuscomponents/{p-56845361.entry.js → p-a66137f5.entry.js} +2 -2
- package/dist/globuscomponents/{p-5f10aee0.entry.js → p-bd87639a.entry.js} +2 -2
- package/dist/globuscomponents/{p-0cb1a784.entry.js → p-c86f4d04.entry.js} +2 -2
- package/dist/globuscomponents/{p-8a1d870a.entry.js → p-dbaf2b13.entry.js} +2 -2
- package/dist/globuscomponents/{p-781b650f.entry.js → p-e84fddfb.entry.js} +2 -2
- package/dist/globuscomponents/{p-202a3c9c.entry.js → p-eee24fd4.entry.js} +2 -2
- package/dist/types/components/gb-checkbox/gb-checkbox.d.ts +2 -0
- package/dist/types/components.d.ts +16 -0
- package/package.json +1 -1
- package/dist/components/p-02b6abc5.js.map +0 -1
- package/dist/components/p-07a41a89.js.map +0 -1
- package/dist/components/p-88985c81.js.map +0 -1
- package/dist/globuscomponents/p-cab01c3b.entry.js.map +0 -1
- package/dist/globuscomponents/p-d01d820f.entry.js +0 -2
- /package/dist/globuscomponents/{p-42f1db13.entry.js.map → p-35eef8c6.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-0869d175.entry.js.map → p-3ced3015.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-d808b613.entry.js.map → p-615a7e4e.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-19885058.entry.js.map → p-89485a6d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-4a27e1e0.entry.js.map → p-8f6a956b.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-d01d820f.entry.js.map → p-a09b2304.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-56845361.entry.js.map → p-a66137f5.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-5f10aee0.entry.js.map → p-bd87639a.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-0cb1a784.entry.js.map → p-c86f4d04.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-8a1d870a.entry.js.map → p-dbaf2b13.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-781b650f.entry.js.map → p-e84fddfb.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-202a3c9c.entry.js.map → p-eee24fd4.entry.js.map} +0 -0
|
@@ -32,7 +32,7 @@ const GbProgressBar = class {
|
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
34
|
const progressValue = Math.min(Math.max(this.progress, 0), 100);
|
|
35
|
-
return (index.h("div", { key: '
|
|
35
|
+
return (index.h("div", { key: '76a1e2a4ff1153b704b2e48704b5ac02ad0a1b8d', class: `progress_bar_container ${this.labelPosition}` }, index.h("div", { key: '11616345c68cfc3e5feb5f9a891515e2dbd4ec7c', class: "progress_bar" }, index.h("div", { key: '696034c072a435dd2ccac0ab67ea33234f0c0abf', class: "progress_fill", style: { width: `${progressValue}%` } })), index.h(index.Fragment, null, this.showLabel && (index.h("div", { key: 'b5c4201817456f6a179a81e6eb3b9056806da55f', class: `label ${this.labelPosition}` }, this.labelPosition === 'right' && index.h("span", { key: '2e453a483626395e8a92389cd8aa318fbce5634b', class: `text-sm-medium` }, progressValue, "%"), this.labelPosition === 'bottom' && index.h("span", { key: 'b90b2a8483e68e4a9d43b3f6af8c32b08c4eac7b', class: `text-sm-medium` }, progressValue, "%"), this.labelPosition === 'top_floating' && (index.h("gb-tooltip", { key: '86691537f27ce5967aa0f1f90d1beb2f1a2c5d1c', class: `top_tooltip`, arrow: "none", style: { marginLeft: `${(progressValue - 6.5).toString()}%` } }, index.h("p", { key: '4a87277511b3b155e83ecba705c1a2c6af438e15', slot: "main_text", class: "text-xs-semi-bold" }, progressValue, "%"))), this.labelPosition === 'bottom_floating' && (index.h("gb-tooltip", { key: '6ff93f6de552e7e63b816720a5b4c447002dc95c', class: `bottom_tooltip`, arrow: "none", style: { marginLeft: `${(progressValue - 59.5).toString()}%` } }, index.h("p", { key: '074494fae4c1dd65b66656e9c177a2022e1ed323', slot: "main_text", class: "text-xs-semi-bold" }, progressValue, "%"))))))));
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
GbProgressBar.style = GbProgressBarStyle0;
|
|
@@ -25,10 +25,10 @@ const GbMegaInputField = class {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (index.h("div", { key: '
|
|
28
|
+
return (index.h("div", { key: 'c99c7070a6753a01a8f4423898f01ee91df4f260', class: {
|
|
29
29
|
[this.size]: true,
|
|
30
30
|
disabled: this.state === 'disabled'
|
|
31
|
-
} }, index.h("input", { key: '
|
|
31
|
+
} }, index.h("input", { key: '6fe3f44656d8ed1a254384b64f85c793273837a0', class: {
|
|
32
32
|
[this.size]: true,
|
|
33
33
|
disabled: this.state === 'disabled'
|
|
34
34
|
}, type: "number", min: "0", max: "1", placeholder: "0", value: this.inputValue, onInput: (event) => this.handleInput(event) })));
|
|
@@ -16,7 +16,7 @@ const GbProgressCircle = class {
|
|
|
16
16
|
this.progress = 0;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (index.h("div", { key: '
|
|
19
|
+
return (index.h("div", { key: 'c115f80e94f454dd4db5558252eec6e06a073970', class: "progress" }, index.h("svg", { key: '2e91f7c8b7939a16a480f328a9a4d387fc676308', class: "progress-circle", width: "200px", height: "200px", xmlns: "http://www.w3.org/2000/svg" }, index.h("circle", { key: 'cb3f107b0339e28ad8df4feca99e370b6e14526f', class: "progress-circle-back", cx: "80", cy: "80", r: "74" }), index.h("circle", { key: '759cf5c48d80fca667b12425cf07b70f5b28f8a1', class: "progress-circle-prog", cx: "80", cy: "80", r: "74" })), index.h("div", { key: '3b4b1e6073b5cde1cc77f6ebc0b79856fddb138d', class: "progress-text", "data-progress": "0" }, "50%")));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
GbProgressCircle.style = GbProgressCircleStyle0;
|
|
@@ -24,7 +24,7 @@ const GbRichText = class {
|
|
|
24
24
|
destructive: this.destructive,
|
|
25
25
|
disabled: this.state === 'disabled'
|
|
26
26
|
};
|
|
27
|
-
return (index.h("div", { key: '
|
|
27
|
+
return (index.h("div", { key: '5568e9945fad4c75710abd269ca5b1e36285c910', class: classes }, index.h("div", { key: '3c0700cef81c940a06bed6be626792aae3698b4d', class: "input-with-label" }, index.h("label", { key: 'e7bbf2e879cb6b585bd23e08622925870cc2ebcd' }, this.label), index.h("div", { key: 'a7648cf02650fae784ae59cb0b974f9f6c5c12a6', class: "input-container" }, index.h("div", { key: '15c35f4dd3a749f1ea8b73610d4c6e374c567a87', class: "toolbar-container" }, index.h("gb-wysiwyg-toolbar", { key: '37c77f0b7606059602b62cb712cae8014e630733', breakpoint: "desktop", bold: true, italic: true, h1: true, h2: true, quote: true, link: true, image: true, bulletList: true, numberList: true })), this.destructive && (index.h("span", { key: '60c4611e3e182932bc66d6fe17438a015981c4da', class: "error-icon" }, index.h("svg", { key: 'a638cd9177a8c642fd19075e24eab9e868cad239', xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, index.h("path", { key: '17841a86131ea319df5dc3f6d63c316fc42160a8', d: "M7.99483 10H8.00081M8.00016 8V5.33333M14.6668 8C14.6668 11.6819 11.6821 14.6667 8.00016 14.6667C4.31826 14.6667 1.3335 11.6819 1.3335 8C1.3335 4.3181 4.31826 1.33333 8.00016 1.33333C11.6821 1.33333 14.6668 4.3181 14.6668 8Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))), index.h("div", { key: 'fb6c5bc96ddc557ff8b9d6a47430824cf99a1bfc', class: "text-container" }, index.h("textarea", { key: 'a24682a41354ee4a5dc74b5dc18434249bbc8644' }, this.showPlaceholder && (index.h("div", { key: '1155f430e00c9c2c78d16e93b9cdf2f28c8ca792' }, this.placeholder)))))), this.showHintText && (index.h("div", { key: 'a8317c29d3a0a060d7dc25b295aef67bdbef22ea', class: "hint-text" }, this.hintText))));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
GbRichText.style = GbRichTextStyle0;
|
|
@@ -13,7 +13,7 @@ const GbScrollbar = class {
|
|
|
13
13
|
this.length = '25%';
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (index.h("div", { key: '
|
|
16
|
+
return (index.h("div", { key: '0b4592dc199669e17dfa5228d48d10fc21ad39a9', class: "scrollbar-container" }, index.h("div", { key: '47b86b7f98cf49307a62874530d6a0c7e94d2005', class: "scrollbar", style: { height: this.length } }, index.h("slot", { key: 'e5ba42888a4c54e0d20c4c1de0f5e3f67ce31a78' }))));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
GbScrollbar.style = GbScrollbarStyle0;
|
|
@@ -28,7 +28,7 @@ const SliderControlHandle = class {
|
|
|
28
28
|
this.isFocused = false;
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (index.h("div", { key: '
|
|
31
|
+
return (index.h("div", { key: '48f8b646b800a00c08ea47de36e1d50ff6a86b11', class: `thumb-container ${this.type} ${this.isHovered ? 'hover' : ''} ${this.isFocused ? 'focused' : ''}`, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur(), tabindex: "0" }, this.type === 'tooltip' && (index.h("div", { key: 'f977845d438d2c8cec6f29834ab6cf28fb75bf4e', class: "tooltip-container" }, index.h("gb-tooltip", { key: 'ccf31a2a891b8d363c71ae3753401b4695ed0fa5', arrow: 'none' }, index.h("p", { key: 'a59d5d3f42e59cb73ee768fa7b9e56f9ca9d7da1', class: "text-xs-semi-bold", slot: "main_text" }, this.value, "%")))), this.type === 'text' && (index.h("div", { key: '23712c08e53d685648fbd991dc861e134b0434ba', class: "thumb-label" }, this.value, "%"))));
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
SliderControlHandle.style = GbSliderControlHandleStyle0;
|
|
@@ -66,7 +66,7 @@ const GbSlider = class {
|
|
|
66
66
|
this.trackEl.style.width = `${rightPos - leftPos}%`;
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return (index.h("div", { key: '
|
|
69
|
+
return (index.h("div", { key: '3794bcc7560517969d19351db2cc46a06066013c', class: "slider-container", ref: (el) => this.containerEl = el }, index.h("div", { key: '8ce511e1b1d75d79c884024544ebda83dc5668b3', class: "track", ref: (el) => this.trackEl = el }), index.h("gb-slider-control-handle", { key: '87c579d8155e86eb604466be086ebb614f37119c', class: "left", value: this.leftValue, type: this.thumbType, style: { left: `${this.leftValue}%` }, onMouseDown: (e) => this.handleMouseDown(e, 'left') }), index.h("gb-slider-control-handle", { key: 'f8b6d416ead8ca395cce0ac822c21469844cd310', class: "right", value: this.rightValue, type: this.thumbType, style: { left: `${this.rightValue}%` }, onMouseDown: (e) => this.handleMouseDown(e, 'right') })));
|
|
70
70
|
}
|
|
71
71
|
get el() { return index.getElement(this); }
|
|
72
72
|
};
|
|
@@ -18,7 +18,7 @@ const GbToastButton = class {
|
|
|
18
18
|
slottedContent.classList.add('text-sm-semi-bold');
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (index.h("div", { key: '
|
|
21
|
+
return (index.h("div", { key: '79ba948be3ff744bf4efbf0a90c2bf575dd06752', class: `toast_button ${this.state} ${this.color}` }, index.h("slot", { key: '4eb2136abac313e535626dace325ccb6ad196fa2' })));
|
|
22
22
|
}
|
|
23
23
|
get el() { return index.getElement(this); }
|
|
24
24
|
};
|
|
@@ -46,7 +46,7 @@ const GbToast = class {
|
|
|
46
46
|
slottedSupportingText.classList.add(this.getSupportingColorClasses());
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (index.h("div", { key: '
|
|
49
|
+
return (index.h("div", { key: '22331c949a13e1205d971eb9c33878cbdaa22333', class: `toast_div ${this.color} ${this.size} ${this.breakpoint}` }, this.size === 'floating' && (index.h(index.Fragment, null, index.h("div", { key: '1e93bacbb692dc3dfca592f1a4cbfbc1bed133c1', class: `icon_container` }, index.h("svg", { key: '4990c5d2dfb273ac69c9d24eb7cfcf4207c3a11d', xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", viewBox: "0 0 28 28", fill: "none", class: `svg_icon ${this.color}` }, index.h("path", { key: '03d103aca407ec514c88365cd8dd3924c80c0304', opacity: "0.4", d: "M14.0667 2.04163C16.6225 2.04161 18.63 2.0416 20.1973 2.25232C21.8034 2.46825 23.0777 2.91979 24.079 3.92102C25.0802 4.92226 25.5317 6.19655 25.7477 7.80265C25.9584 9.36996 25.9584 11.3774 25.9584 13.9332V13.9333V14.0667V14.0667C25.9584 16.6225 25.9584 18.63 25.7477 20.1973C25.5317 21.8034 25.0802 23.0777 24.079 24.0789C23.0777 25.0801 21.8034 25.5317 20.1973 25.7476C18.63 25.9583 16.6226 25.9583 14.0668 25.9583H14.0667H13.9333H13.9333C11.3775 25.9583 9.37003 25.9583 7.80271 25.7476C6.19661 25.5317 4.92232 25.0801 3.92109 24.0789C2.91985 23.0777 2.46831 21.8034 2.25238 20.1973C2.04166 18.6299 2.04167 16.6225 2.04169 14.0667V13.9333C2.04167 11.3774 2.04166 9.36997 2.25238 7.80265C2.46831 6.19655 2.91985 4.92226 3.92109 3.92102C4.92232 2.91979 6.19661 2.46825 7.80271 2.25232C9.37003 2.0416 11.3775 2.04161 13.9333 2.04163H14.0667Z", fill: "#4B5565" }), index.h("path", { key: 'ce660e7fb6b773672403d7b9a9d44bb36dc267fa', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.6289 12.2818C13.9171 12.3206 14.3158 12.4243 14.6541 12.7626C14.9924 13.101 15.0962 13.4997 15.1349 13.7879C15.167 14.0266 15.1669 14.3043 15.1667 14.5375C15.1667 14.553 15.1667 14.5683 15.1667 14.5834V19.2501C15.1667 19.8944 14.6444 20.4167 14 20.4167C13.3557 20.4167 12.8334 19.8944 12.8334 19.2501V14.5834C12.189 14.5834 11.6667 14.0611 11.6667 13.4167C11.6667 12.7724 12.189 12.2501 12.8334 12.2501C12.8485 12.2501 12.8638 12.2501 12.8793 12.2501C13.1125 12.2499 13.3901 12.2497 13.6289 12.2818Z", fill: "#4B5565" }), index.h("path", { key: '451969d18e6954745ea927ef5a740f09c741f02d', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.8333 8.75004C12.8333 8.10571 13.3533 7.58337 13.9947 7.58337H14.0051C14.6466 7.58337 15.1666 8.10571 15.1666 8.75004C15.1666 9.39437 14.6466 9.91671 14.0051 9.91671H13.9947C13.3533 9.91671 12.8333 9.39437 12.8333 8.75004Z", fill: "#4B5565" }))), index.h("div", { key: '44bd63ad5d2bbb28dc13270582d4125aff21ed9c', class: `content ${this.size} ${this.actions ? ' actions' : ''}` }, index.h("div", { key: 'ccc26a652c8e2f04990b4128a871ba68209b320b', class: `text ${this.size}` }, index.h("slot", { key: 'd4b04da0b54b640f938554c9d87508e7a59326b4', name: "main_text" }), this.showSupportingText && index.h("slot", { key: '1d3d09e55f58f372628ec721dc383d0791eac8d0', name: "supporting_text" })), this.actions && (index.h("div", { key: '26b8482acb1479d847845d10eb5750874b0dd376', class: `actions ${this.size} ${!this.showSupportingText ? 'only_actions' : ''}` }, this.color === 'default' ? (index.h(index.Fragment, null, index.h("gb-button", { size: "sm", icon: "default", state: "default", hierarchy: "link_gray" }, index.h("p", null, "Dismiss")), index.h("gb-button", { size: "sm", icon: "default", state: "default", hierarchy: "link_color" }, index.h("p", null, "View changes")))) : (index.h(index.Fragment, null, index.h("gb-toast-button", { state: reusableModels.StateEnum.Default, color: this.color }, index.h("p", null, "Dismiss")), index.h("gb-toast-button", { state: reusableModels.StateEnum.Default, color: this.color }, index.h("p", null, "View changes"))))))), index.h("gb-button-close", { key: '644daefdf656f41696d9b1013cc8ed1de6a6b4c3', size: "sm", color: this.color === 'default' ? 'gray' : this.color === 'gray' ? 'gray' : this.color, class: `close_button ${this.size}` }))), this.size === 'full_width' && (index.h("div", { key: '51cb39d7d283008605a5ff250ac8f970b1bd4da1', class: `container ${this.breakpoint}` }, index.h("div", { key: '82fa8e940cdef16a7e4855433a8205f12920c6cd', class: `full_width_content ${this.breakpoint}` }, index.h("div", { key: '446eea2cba0174f93910f2fd634068457559dc82', class: `inner_content ${this.breakpoint}` }, index.h("div", { key: '98340e43bd3792e50bbfedd1bf13b4c0827fc279', class: `icon_container` }, index.h("svg", { key: '6af6aeb113bca7a62de476d6de9f17126a4a946d', xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", viewBox: "0 0 28 28", fill: "none", class: `svg_icon ${this.color}` }, index.h("path", { key: '3379033280dcbc79ee4fdf1f31b5430d96e9790d', opacity: "0.4", d: "M14.0667 2.04163C16.6225 2.04161 18.63 2.0416 20.1973 2.25232C21.8034 2.46825 23.0777 2.91979 24.079 3.92102C25.0802 4.92226 25.5317 6.19655 25.7477 7.80265C25.9584 9.36996 25.9584 11.3774 25.9584 13.9332V13.9333V14.0667V14.0667C25.9584 16.6225 25.9584 18.63 25.7477 20.1973C25.5317 21.8034 25.0802 23.0777 24.079 24.0789C23.0777 25.0801 21.8034 25.5317 20.1973 25.7476C18.63 25.9583 16.6226 25.9583 14.0668 25.9583H14.0667H13.9333H13.9333C11.3775 25.9583 9.37003 25.9583 7.80271 25.7476C6.19661 25.5317 4.92232 25.0801 3.92109 24.0789C2.91985 23.0777 2.46831 21.8034 2.25238 20.1973C2.04166 18.6299 2.04167 16.6225 2.04169 14.0667V13.9333C2.04167 11.3774 2.04166 9.36997 2.25238 7.80265C2.46831 6.19655 2.91985 4.92226 3.92109 3.92102C4.92232 2.91979 6.19661 2.46825 7.80271 2.25232C9.37003 2.0416 11.3775 2.04161 13.9333 2.04163H14.0667Z", fill: "#4B5565" }), index.h("path", { key: 'dbe374154a7392357ebbf8883b0530217b36b1d4', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.6289 12.2818C13.9171 12.3206 14.3158 12.4243 14.6541 12.7626C14.9924 13.101 15.0962 13.4997 15.1349 13.7879C15.167 14.0266 15.1669 14.3043 15.1667 14.5375C15.1667 14.553 15.1667 14.5683 15.1667 14.5834V19.2501C15.1667 19.8944 14.6444 20.4167 14 20.4167C13.3557 20.4167 12.8334 19.8944 12.8334 19.2501V14.5834C12.189 14.5834 11.6667 14.0611 11.6667 13.4167C11.6667 12.7724 12.189 12.2501 12.8334 12.2501C12.8485 12.2501 12.8638 12.2501 12.8793 12.2501C13.1125 12.2499 13.3901 12.2497 13.6289 12.2818Z", fill: "#4B5565" }), index.h("path", { key: 'c329dbc1c8a1783c7c8a80ead3d862dc4c1fbf39', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.8333 8.75004C12.8333 8.10571 13.3533 7.58337 13.9947 7.58337H14.0051C14.6466 7.58337 15.1666 8.10571 15.1666 8.75004C15.1666 9.39437 14.6466 9.91671 14.0051 9.91671H13.9947C13.3533 9.91671 12.8333 9.39437 12.8333 8.75004Z", fill: "#4B5565" }))), index.h("div", { key: '7ed31eff7fd843c2691266ae02234fded165e709', class: `text ${this.size} ${this.breakpoint}` }, index.h("slot", { key: '9a2860fd9aa9e5a26cd5992c149b16b473d8c81f', name: "main_text" }), this.showSupportingText && index.h("slot", { key: 'd7b3546787d91034d5e6a6ef2c9e9775dbb80502', name: "supporting_text" }))), this.actions && (index.h("div", { key: '9494c6e6a37c527c3c42126b1743637ed4702e3d', class: `actions ${this.size} ${this.breakpoint} ${!this.showSupportingText ? 'only_actions' : ''}` }, this.color === 'default' ? (index.h(index.Fragment, null, index.h("gb-button", { size: "sm", icon: "default", state: "default", hierarchy: "link_gray" }, index.h("p", null, "Dismiss")), index.h("gb-button", { size: "sm", icon: "default", state: "default", hierarchy: "link_color" }, index.h("p", null, "View changes")))) : (index.h(index.Fragment, null, index.h("gb-toast-button", { state: reusableModels.StateEnum.Default, color: this.color }, index.h("p", null, "Dismiss")), index.h("gb-toast-button", { state: reusableModels.StateEnum.Default, color: this.color }, index.h("p", null, "View changes")))))), index.h("gb-button-close", { key: 'e7ffdadcc320d20083583d8e52330dc5b17109ad', size: "sm", color: this.color === 'default' ? 'gray' : this.color === 'gray' ? 'gray' : this.color, class: `close_button ${this.breakpoint}` }))))));
|
|
50
50
|
}
|
|
51
51
|
get el() { return index.getElement(this); }
|
|
52
52
|
};
|
|
@@ -42,7 +42,7 @@ const GbToggle = class {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (index.h("div", { key: '
|
|
45
|
+
return (index.h("div", { key: 'ad2f98ccbe4f6fb8b60936b2dc9c8348af5cedd4', class: `toggle_div ${this.size}` }, index.h("div", { key: 'b3cbdec537f87263a3f3b72fdb15a601ddf0af90', class: "toggle_base" }, index.h("gb-toggle-base", { key: 'e562e5ffbd3865a37674484660aa7d194febc72a', size: this.size, state: this.state, pressed: this.pressed })), index.h("div", { key: '9da0356335de91ee3cee1e6b9ea8f6a500e431a2', class: "text" }, index.h("slot", { key: '80fb479b6849004dc4326255375321d1dbf36ea8', name: "main_text" }), this.supportingText && (index.h("slot", { key: 'd3e9463a92db87100672a244397984d9fb7c8a28', name: "supporting_text" })))));
|
|
46
46
|
}
|
|
47
47
|
get el() { return index.getElement(this); }
|
|
48
48
|
};
|
|
@@ -18,7 +18,7 @@ const GbTokenField = class {
|
|
|
18
18
|
this.supportingText = '';
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (index.h("div", { key: '
|
|
21
|
+
return (index.h("div", { key: '40cfea11fb71c7a4ab7aee327eeb7f803ce1cffe', class: this.size }, index.h("div", { key: '14338c33695797b4316f06165d38ac49f78ab2ba', class: "input-with-label" }, this.showLabel && (index.h("label", { key: 'ddcbbfe2fb7eba8102275a25a59a4ece27bda4eb' }, this.label)), this.digits === 4 && (index.h("div", { key: 'aa93ad78f1ca78abde44229cd252322f2c50e9da', class: "input-wrapper" }, index.h("gb-megainput-field", { key: '413cc19eb3095c1ebb3eb57bad1923f5ef258dd0', size: this.size }), index.h("gb-megainput-field", { key: '2673771dcb5b387214554eca541c5e8b6ced0aab', size: this.size }), index.h("gb-megainput-field", { key: 'ce30d5ab01f1c119d31a36b6a77c1e136db63157', size: this.size }), index.h("gb-megainput-field", { key: '023af397e95480afb29128e2ebf9a4af8140607b', size: this.size }))), this.digits === 6 && (index.h("div", { key: '0df739aab47ed746cbe3c166d79d2eee31d9f51a', class: "input-wrapper" }, index.h("div", { key: 'cef947415a900cd44cb934814e48bc44b5e36ee9', class: "first=section" }, index.h("gb-megainput-field", { key: 'f2422f7514c732b89c03f49816de2093019e2f40', size: this.size }), index.h("gb-megainput-field", { key: '1110d186cfea016c05edf41bf016fc605c107f62', size: this.size }), index.h("gb-megainput-field", { key: '1311ae17ed531a6d425bd2b29c3aeb239e556385', size: this.size })), index.h("div", { key: 'b2b3cfe0c2dd393a3a9f796b32459ae4ac7157d4', class: "second=section" }, index.h("gb-megainput-field", { key: '75359353032d8125e8a283868ef6c7a8dbe77ae1', size: this.size }), index.h("gb-megainput-field", { key: 'd86a02c105fa228fdd36d06820e52bafcb5543b1', size: this.size }), index.h("gb-megainput-field", { key: '01781637dbb375cfc7864e8a0aa4ab1d64c986d9', size: this.size })))), this.digits === 8 && (index.h("div", { key: '235e0eab3b705a694e6a14f469790c2d85e6a5ca', class: "input-wrapper" }, index.h("div", { key: '5f05f66613961f52c7d05b287a1bcd4954542477', class: "first=section" }, index.h("gb-megainput-field", { key: '7afa7e6594d0468d8f91f90865960f34eb421486', size: this.size }), index.h("gb-megainput-field", { key: 'f3403d030ede478f01f42f8a0c35f682d7438574', size: this.size }), index.h("gb-megainput-field", { key: '7cde18ca05b04d5033ceb19596b13a3f4bff0455', size: this.size }), index.h("gb-megainput-field", { key: 'c318458948f47030b0e31bd89d37c7484f17defb', size: this.size })), index.h("div", { key: '4e790af03ad681155ee7a4c1717cc46cff939d2f', class: "second=section" }, index.h("gb-megainput-field", { key: '15769aeb646ac7df31b4d155682d8c007481e425', size: this.size }), index.h("gb-megainput-field", { key: 'c23fe88dab35544f5234d69552a9aed2677148a3', size: this.size }), index.h("gb-megainput-field", { key: '590009fed1419307d3471e0686cba17a45ef13fa', size: this.size }), index.h("gb-megainput-field", { key: 'f3dfe6337498895fadfe1362180ddba5a85b6d0e', size: this.size }))))), index.h("p", { key: '214dd88e3bff59bcbeeba0fb47c5013b57577534' }, this.supportingText)));
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
GbTokenField.style = GbTokenFieldStyle0;
|
|
@@ -18,11 +18,11 @@ const GbVerificationCodeField = class {
|
|
|
18
18
|
this.hintText = '';
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (index.h("div", { key: '
|
|
21
|
+
return (index.h("div", { key: 'bafb57932cd09efb3b46799c124db4fb6c6b4598', class: {
|
|
22
22
|
container: true,
|
|
23
23
|
[this.size]: true,
|
|
24
24
|
[this.digits]: true,
|
|
25
|
-
} }, index.h("div", { key: '
|
|
25
|
+
} }, index.h("div", { key: '49ae01eca246ba5c6b91e619c50796ca8b7fde94', class: "input-with-label" }, this.showLabel && (index.h("label", { key: 'ed900016eea9fc9467b65b7ef59e159d572f2d79', class: "text-sm-medium", style: { color: 'var(--color-text, #4B5565)' } }, this.label)), this.digits === 4 && (index.h("div", { key: '7bdd7f8f667b4cde092409e2e9ae55658943a258', class: "input-wrapper" }, index.h("gb-megainput-field", { key: 'f1f6c20045413f5fec3facfe0ee8367c5ee404a5', size: this.size }), index.h("gb-megainput-field", { key: '29dafe71659aa8180174cb3f8167cf4fab5f3e6d', size: this.size }), index.h("gb-megainput-field", { key: 'd45bc3eb3f722e3706debde101bcc07caeb2057e', size: this.size }), index.h("gb-megainput-field", { key: 'ef94f896f7591c5490d700385b976b76aec2a234', size: this.size }))), this.digits === 6 && (index.h("div", { key: '830628d0c85b4298b6499aa3bae3781dea198e60', class: "input-wrapper" }, index.h("gb-megainput-field", { key: 'cc72cd1dd8d6840a9ba02ecd7849293de11019a5', size: this.size }), index.h("gb-megainput-field", { key: '7fd2e3de4c433ba4b219665c9521cbb085870921', size: this.size }), index.h("gb-megainput-field", { key: '3c68f5e433605ac065ddd521674f4b33076f8c7a', size: this.size }), index.h("p", { key: '912121ded0b1d45e8191a4dcf30f46ae1a6940c4', class: "line display-sm-bold" }, "-"), index.h("gb-megainput-field", { key: '8f95a17dbaa371559264bd66353aa4100d370a93', size: this.size }), index.h("gb-megainput-field", { key: '25b13b5a7d60226080864c2cc749f00051aaa082', size: this.size }), index.h("gb-megainput-field", { key: '2a82e9bf45dd363da83352d4594c3b0fc27472e1', size: this.size }))), this.digits === 8 && (index.h("div", { key: 'a1be1adaed79400d61e595e671f0a7f34e2cd7e3', class: "input-wrapper" }, index.h("gb-megainput-field", { key: 'c2594296da7677b835c48bbca5f1b3cc9a539344', size: this.size }), index.h("gb-megainput-field", { key: '6d166bae6aec162cf4d3c4f71813c3422e95b2e1', size: this.size }), index.h("gb-megainput-field", { key: 'def39c0e927816f9646d76e3983d5411f77ae425', size: this.size }), index.h("gb-megainput-field", { key: 'cb17e53b2d953acfe9c4d183ad323563ce8e6a3b', size: this.size }), index.h("p", { key: '0e78e744ba783f158578957b4b7983fe3d092727', class: "line display-sm-bold" }, "-"), index.h("gb-megainput-field", { key: '5b828e3c9475c7ae1646178ce90def4bf4f4c6b7', size: this.size }), index.h("gb-megainput-field", { key: '9724232a8b0df400313e0ca4b9faf63ebfbe4e42', size: this.size }), index.h("gb-megainput-field", { key: '193c09e6f1fe0392f58db01803bc10cccf32ed76', size: this.size }), index.h("gb-megainput-field", { key: '625277733d623baf73123e9a964d46ff5b12e241', size: this.size })))), this.showHintText && (index.h("div", { key: '38df3de26761dd8272317f9cab7961c74508feb8', class: "text-sm-regular", style: { color: 'var(--color-text-subtle, #697586)' } }, this.hintText))));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
GbVerificationCodeField.style = GbVerificationCodeFieldStyle0;
|
|
@@ -2669,11 +2669,11 @@
|
|
|
2669
2669
|
gap: var(--spacing-none);
|
|
2670
2670
|
}
|
|
2671
2671
|
|
|
2672
|
-
.checkbox_div.
|
|
2672
|
+
.checkbox_div.text_class.sm{
|
|
2673
2673
|
gap: var(--spacing-2);
|
|
2674
2674
|
}
|
|
2675
2675
|
|
|
2676
|
-
.checkbox_div.
|
|
2676
|
+
.checkbox_div.text_class.md{
|
|
2677
2677
|
gap: var(--spacing-3);
|
|
2678
2678
|
}
|
|
2679
2679
|
|
|
@@ -36,7 +36,7 @@ export class GbCheckbox {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h("div", { key: '
|
|
39
|
+
return (h("div", { key: 'c4282242daef9a50d46c93911a91befec67e6d97', class: `checkbox_div ${this.size} ${this.text ? 'text_class' : ''}` }, h("div", { key: '80781acbb05a09ec6a7f7f9051210eb419563ce8', class: "checkbox_base" }, h("gb-checkbox-base", { key: '1a49d813c2c7ff479828df509e03371f9e5e7bde', size: this.size, type: this.type, checked: this.checked, state: this.state, indeterminate: this.indeterminate })), this.text && (h("div", { key: '4eafa6a300ca619b82f50a3880618302e756f635', class: "text" }, h("slot", { key: '6ee4f7e87fe9df6bbe5201f5a945252101658f03', name: "label" }), this.supportingText && h("slot", { key: '33c770405ccaadc4293e190b3d26cf3583030902', name: "supporting_text" })))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "gb-checkbox"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -195,6 +195,24 @@ export class GbCheckbox {
|
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
|
+
static get events() {
|
|
199
|
+
return [{
|
|
200
|
+
"method": "checkboxClicked",
|
|
201
|
+
"name": "checkboxClicked",
|
|
202
|
+
"bubbles": true,
|
|
203
|
+
"cancelable": true,
|
|
204
|
+
"composed": true,
|
|
205
|
+
"docs": {
|
|
206
|
+
"tags": [],
|
|
207
|
+
"text": ""
|
|
208
|
+
},
|
|
209
|
+
"complexType": {
|
|
210
|
+
"original": "boolean",
|
|
211
|
+
"resolved": "boolean",
|
|
212
|
+
"references": {}
|
|
213
|
+
}
|
|
214
|
+
}];
|
|
215
|
+
}
|
|
198
216
|
static get elementRef() { return "el"; }
|
|
199
217
|
}
|
|
200
218
|
//# sourceMappingURL=gb-checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-checkbox.js","sourceRoot":"","sources":["../../../src/components/gb-checkbox/gb-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"gb-checkbox.js","sourceRoot":"","sources":["../../../src/components/gb-checkbox/gb-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AASjF,MAAM,OAAO,UAAU;;uBACS,KAAK;6BACA,KAAK;;;;oBAId,KAAK;8BACK,KAAK;;IAIvC,gBAAgB;QACZ,QAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACf,KAAK,IAAK,CAAC,CAAC,OAAO,gBAAgB,CAAC;YACpC,KAAK,IAAK,CAAC,CAAC,OAAO,gBAAgB,CAAC;QACxC,CAAC;IACL,CAAC;IAED,sBAAsB;QAClB,QAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACf,KAAK,IAAK,CAAC,CAAC,OAAO,iBAAiB,CAAC;YACrC,KAAK,IAAK,CAAC,CAAC,OAAO,iBAAiB,CAAC;QACzC,CAAC;IACL,CAAC;IAED,gBAAgB;QACZ,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;QAC7D,MAAM,kBAAkB,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC;QAC7E,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAE/C,IAAG,YAAY,EAAC,CAAC;YACb,YAAY,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;QACxD,CAAC;QAED,IAAG,kBAAkB,EAAE,CAAC;YACpB,kBAAkB,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,EAAE,CAAC,CAAC;QACpE,CAAC;QAED,IAAG,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;YACtB,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAC1C,CAAC;IACL,CAAC;IAED,MAAM;QACF,OAAO,CACL,4DAAK,KAAK,EAAE,gBAAgB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE;YACtE,4DAAK,KAAK,EAAC,eAAe;gBACxB,yEAAkB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,CAAC,aAAa,GAAqB,CAChJ;YACL,IAAI,CAAC,IAAI,IAAI,CACZ,4DAAK,KAAK,EAAC,MAAM;gBACf,6DAAM,IAAI,EAAC,OAAO,GAAQ;gBACzB,IAAI,CAAC,cAAc,IAAI,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CACxD,CACP,CACG,CACP,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Prop } from \"@stencil/core\";\r\nimport { CheckBoxVariants, GeneralSizes, StateEnum } from \"../../models/reusableModels\";\r\n\r\n@Component({\r\n tag:'gb-checkbox',\r\n styleUrl: 'gb-checkbox.css',\r\n shadow: true\r\n})\r\n\r\nexport class GbCheckbox {\r\n @Prop() checked: boolean = false;\r\n @Prop() indeterminate: boolean = false;\r\n @Prop() size: GeneralSizes;\r\n @Prop() type: CheckBoxVariants;\r\n @Prop() state: StateEnum;\r\n @Prop() text: boolean = false;\r\n @Prop() supportingText: boolean = false;\r\n @Element() el: HTMLElement;\r\n @Event() checkboxClicked: EventEmitter<boolean>;\r\n\r\n getMainTextClass() {\r\n switch(this.size) {\r\n case 'sm' : return `text-sm-medium`;\r\n case 'md' : return `text-md-medium`;\r\n }\r\n }\r\n\r\n getSupportingTextClass() {\r\n switch(this.size) {\r\n case 'sm' : return 'text-xs-regular';\r\n case 'md' : return 'text-sm-regular';\r\n }\r\n }\r\n\r\n componentDidLoad() {\r\n const mainTextSlot = this.el.querySelector('[slot=\"label\"]');\r\n const supportingTextSlot = this.el.querySelector('[slot=\"supporting_text\"]');\r\n const mainDiv = this.el.querySelector('.text');\r\n\r\n if(mainTextSlot){\r\n mainTextSlot.classList.add(this.getMainTextClass());\r\n }\r\n\r\n if(supportingTextSlot) {\r\n supportingTextSlot.classList.add(this.getSupportingTextClass());\r\n }\r\n\r\n if(!this.supportingText) {\r\n mainDiv.classList.add('div_centered');\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`checkbox_div ${this.size} ${this.text ? 'text_class' : ''}`}>\r\n <div class=\"checkbox_base\">\r\n <gb-checkbox-base size={this.size} type={this.type} checked={this.checked} state={this.state} indeterminate={this.indeterminate}></gb-checkbox-base>\r\n </div>\r\n {this.text && (\r\n <div class=\"text\">\r\n <slot name=\"label\"></slot>\r\n {this.supportingText && <slot name=\"supporting_text\"></slot>}\r\n </div>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class GbHelpTooltip {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.showHelpTooltip =
|
|
4
|
+
this.showHelpTooltip = true;
|
|
5
5
|
this.showArrow = false;
|
|
6
6
|
this.showSupportingText = false;
|
|
7
7
|
}
|
|
@@ -16,7 +16,7 @@ export class GbHelpTooltip {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(
|
|
19
|
+
return (h("div", { key: '57e92f5de8865aa017a5054c7fdf1d3400beb264', class: `help_tooltip` }, h("svg", { key: '491dae813aa7602940f5f242b8a6db3407215824', xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", onMouseEnter: () => (this.showHelpTooltip = true), onMouseLeave: () => (this.showHelpTooltip = false), class: "help_circle" }, h("path", { key: '5accbe118a9d82b47f893f583acb12b7b61ea741', d: "M6.66659 6C6.66659 5.26362 7.26354 4.66666 7.99992 4.66666C8.7363 4.66666 9.33325 5.26362 9.33325 6C9.33325 6.26543 9.25569 6.51275 9.12199 6.72052C8.72352 7.33978 7.99992 7.93028 7.99992 8.66666V9M7.99458 11.3333H8.00057M14.6666 8C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8C1.33325 4.3181 4.31802 1.33333 7.99992 1.33333C11.6818 1.33333 14.6666 4.3181 14.6666 8Z", stroke: "#697586", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), this.showHelpTooltip && (h("gb-tooltip", { key: '291bbfa4e9ef49e1afb5c9d8ee70a5458ded3396', "show-arrow": true, arrow: "bottom_right", "show-supporting-text": this.showSupportingText, class: "tooltip" }, h("slot", { key: '17e66664576fe80bc122a03655990209ec8885b0', name: "label", slot: "label" }), h("slot", { key: 'b40c4d34d3a5e01e40913f70dbd2f6bd40995d36', name: "supporting_text", slot: "supporting_text" })))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "gb-help-tooltip"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-help-tooltip.js","sourceRoot":"","sources":["../../../src/components/gb-help-tooltip/gb-help-tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"gb-help-tooltip.js","sourceRoot":"","sources":["../../../src/components/gb-help-tooltip/gb-help-tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAOnE,MAAM,OAAO,aAAa;;+BACY,IAAI;yBACX,KAAK;kCACI,KAAK;;IAG3C,gBAAgB;QACd,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;QAC7D,MAAM,kBAAkB,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC;QAE7E,IAAI,YAAY,EAAE,CAAC;YACjB,YAAY,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,kBAAkB,EAAE,CAAC;YACvB,kBAAkB,CAAC,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,4DAAK,KAAK,EAAE,cAAc;YACxB,4DACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,EACjD,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,EAClD,KAAK,EAAC,aAAa;gBAEnB,6DACE,CAAC,EAAC,4ZAA4Z,EAC9Z,MAAM,EAAC,SAAS,kBACH,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE;YACL,IAAI,CAAC,eAAe,IAAI,CACvB,iFAAwB,IAAI,EAAE,KAAK,EAAC,cAAc,0BAAuB,IAAI,CAAC,kBAAkB,EAAE,KAAK,EAAC,SAAS;gBAC/G,6DAAM,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,GAAQ;gBACvC,6DAAM,IAAI,EAAC,iBAAiB,EAAC,IAAI,EAAC,iBAAiB,GAAQ,CAChD,CACd,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, State, Element } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: 'gb-help-tooltip',\r\n styleUrl: 'gb-help-tooltip.css',\r\n shadow: true,\r\n})\r\nexport class GbHelpTooltip {\r\n @State() showHelpTooltip: boolean = true;\r\n @Prop() showArrow: boolean = false;\r\n @Prop() showSupportingText: boolean = false;\r\n @Element() el: HTMLElement;\r\n\r\n componentDidLoad() {\r\n const mainTextSlot = this.el.querySelector('[slot=\"label\"]');\r\n const supportingTextSlot = this.el.querySelector('[slot=\"supporting_text\"]');\r\n\r\n if (mainTextSlot) {\r\n mainTextSlot.classList.add('text-xs-semi-bold');\r\n }\r\n\r\n if (supportingTextSlot) {\r\n supportingTextSlot.classList.add('text-xs-regular');\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`help_tooltip`}>\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"16\"\r\n height=\"16\"\r\n viewBox=\"0 0 16 16\"\r\n fill=\"none\"\r\n onMouseEnter={() => (this.showHelpTooltip = true)}\r\n onMouseLeave={() => (this.showHelpTooltip = false)}\r\n class=\"help_circle\"\r\n >\r\n <path\r\n d=\"M6.66659 6C6.66659 5.26362 7.26354 4.66666 7.99992 4.66666C8.7363 4.66666 9.33325 5.26362 9.33325 6C9.33325 6.26543 9.25569 6.51275 9.12199 6.72052C8.72352 7.33978 7.99992 7.93028 7.99992 8.66666V9M7.99458 11.3333H8.00057M14.6666 8C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8C1.33325 4.3181 4.31802 1.33333 7.99992 1.33333C11.6818 1.33333 14.6666 4.3181 14.6666 8Z\"\r\n stroke=\"#697586\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n {this.showHelpTooltip && (\r\n <gb-tooltip show-arrow={true} arrow=\"bottom_right\" show-supporting-text={this.showSupportingText} class=\"tooltip\">\r\n <slot name=\"label\" slot=\"label\"></slot>\r\n <slot name=\"supporting_text\" slot=\"supporting_text\"></slot>\r\n </gb-tooltip>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"]}
|
|
@@ -38,7 +38,7 @@ export class GbHorizontalTabs {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h("div", { key: '
|
|
41
|
+
return (h("div", { key: '978a5affa22f166c49f173741ab2d3b534e16226', class: `horizontal_tab_div ${this.type} ${this.fullWidth ? 'full_width' : ''}` }, h("gb-tab-button-base", { key: '99863aab78fa37d31169c1fe034a564448c57c32', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(0), current: this.activeIndex === 0, "tab-name": this.firstTabName }), h("gb-tab-button-base", { key: 'aeec8fc7a359cec280e81ecfc9be1381eeb40e46', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(1), current: this.activeIndex === 1, "tab-name": this.secondTabName }), this.thirdTabName && (h("gb-tab-button-base", { key: '36b187fbbe78a2a4a3e4f09dd113583c56e05580', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(2), current: this.activeIndex === 2, "tab-name": this.thirdTabName })), this.fourthTabName && (h("gb-tab-button-base", { key: 'a422a3e1a661311d889f4adabe1157a5a73d7ac7', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(3), current: this.activeIndex === 3, "tab-name": this.fourthTabName })), this.fifthTabName && (h("gb-tab-button-base", { key: '7b1143e1e26bac0cb91c7dd2536ece4afdcb614d', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(4), current: this.activeIndex === 4, "tab-name": this.fifthTabName })), this.sixthTabName && (h("gb-tab-button-base", { key: '8b978c0df68a49f0e47ac32394955447d5dac80f', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(5), current: this.activeIndex === 5, "tab-name": this.sixthTabName })), this.seventhTabName && (h("gb-tab-button-base", { key: '66bbba3f4c2ab07f1be48b28162f78b17e6edf70', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(6), current: this.activeIndex === 6, "tab-name": this.seventhTabName })), this.eighthTabName && (h("gb-tab-button-base", { key: '1a5b380c0070fb5726c8f02a2107e7df6ffa290a', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(7), current: this.activeIndex === 7, "tab-name": this.eighthTabName })), this.ninthTabName && (h("gb-tab-button-base", { key: 'e16d5d12aec9452540018c07d29f8dd02192aa4a', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(8), current: this.activeIndex === 8, "tab-name": this.ninthTabName })), this.tenthTabName && (h("gb-tab-button-base", { key: 'fd8e6df95a12bae77c51af15aea2c4c30808fb37', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(9), current: this.activeIndex === 9, "tab-name": this.tenthTabName })), this.eleventhTabName && (h("gb-tab-button-base", { key: 'ce345883ed0f19b36fe2470cffbe24017141ae79', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(10), current: this.activeIndex === 10, "tab-name": this.tenthTabName })), this.twelfthTabName && (h("gb-tab-button-base", { key: 'fa0b8981ddf403a4bf37b92ad9a0ef688c2f8a1a', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(11), current: this.activeIndex === 11, "tab-name": this.tenthTabName })), this.thirteenthTabName && (h("gb-tab-button-base", { key: '15163b6de450e7775f9c7f3aa863d93535d6458a', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(12), current: this.activeIndex === 12, "tab-name": this.tenthTabName })), this.fourteenthTabName && (h("gb-tab-button-base", { key: 'd522722b3204d3a81324ba72eca4d27a9474cace', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(13), current: this.activeIndex === 13, "tab-name": this.tenthTabName })), this.fifteenthTabName && (h("gb-tab-button-base", { key: 'ed28e3e25fc86cb2f9cd994840d53bb7ffb3bc71', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(14), current: this.activeIndex === 14, "tab-name": this.tenthTabName })), this.sixteenthTabName && (h("gb-tab-button-base", { key: 'd440c0c8c292915bba946de17916d516f245153d', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(15), current: this.activeIndex === 15, "tab-name": this.tenthTabName })), this.seventeenthTabName && (h("gb-tab-button-base", { key: '89c2bd93e8cbdcda64e75a19797a7df0fb3dcf04', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(16), current: this.activeIndex === 16, "tab-name": this.tenthTabName })), this.eighteenthTabName && (h("gb-tab-button-base", { key: '27d64952c377b46e4c0eec8b7d7c8db88c743cee', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(17), current: this.activeIndex === 17, "tab-name": this.tenthTabName })), this.nineteenthTabName && (h("gb-tab-button-base", { key: 'be0a01c207b5c678c36b5f20ef134c7705e82df3', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(18), current: this.activeIndex === 18, "tab-name": this.tenthTabName })), this.twentiethTabName && (h("gb-tab-button-base", { key: 'cd703845eb64c2d77ec77b3c0511ec2af8af2760', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(19), current: this.activeIndex === 19, "tab-name": this.tenthTabName }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "gb-horizontal-tabs"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -137,12 +137,12 @@ export class GbInputDropdown {
|
|
|
137
137
|
},
|
|
138
138
|
];
|
|
139
139
|
return [
|
|
140
|
-
h("div", { key: '
|
|
140
|
+
h("div", { key: '9736678afae0690de4ae02ae9013617646c30edd', class: `input_dropdown_container ${this.type === 'tags' ? 'tag' : ''}`, onClick: () => this.toggleDropdown() }, this.showLabel && (h("p", { key: '676beed8252fbd596ae35becb5d895563cb28b45', class: "text-sm-regular", style: { color: '#4B5565' } }, this.label)), h("div", { key: 'a94ef49c0e3276ba4ee982231f137c86d7f5d02f', class: `input_dropdown_div ${this.size} ${this.state} ${this.type === 'tags' ? 'tag' : ''}` }, this.type === 'icon_leading' && (h("svg", { key: 'c1c377f9f71444d0078611049a637ea6e71ec170', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'c3605aaa4f85323484f2800f3a0bbe846681f67d', d: "M5.48131 12.9013C4.30234 13.6033 1.21114 15.0368 3.09388 16.8305C4.01359 17.7067 5.03791 18.3333 6.32572 18.3333H13.6743C14.9621 18.3333 15.9864 17.7067 16.9061 16.8305C18.7889 15.0368 15.6977 13.6033 14.5187 12.9013C11.754 11.2551 8.24599 11.2551 5.48131 12.9013Z", stroke: "#697586", "stroke-width": "1.66667" }), h("path", { key: '0afe87caa69389299c3c5601e084c864af29f1fb', d: "M13.75 5.41667C13.75 7.48774 12.0711 9.16667 10 9.16667C7.92893 9.16667 6.25 7.48774 6.25 5.41667C6.25 3.3456 7.92893 1.66667 10 1.66667C12.0711 1.66667 13.75 3.3456 13.75 5.41667Z", stroke: "#697586", "stroke-width": "1.66667" }))), this.type === 'avatar_leading' && (h("gb-avatar", { key: '242ac68289485798c5a53d527e7f1cd732a5a8c7', size: "xs", text: this.text, color: "blue" }, !this.text ? h("slot", { slot: "image", name: "image" }) : h("slot", { slot: "initials", name: "initials" }))), this.showLeadingIcon && h(Fragment, null, this.type === 'search' || this.type === 'tags' ? h("div", { class: `icon`, innerHTML: this.leadingIconSvg }) : null), this.type === 'dot_leading' && (h("svg", { key: '4d172e8e2f085631d1deedb940f7d367cfd96de5', xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", class: `dot ${this.size}` }, h("circle", { key: '049554571ddc80999df9575b268fdc44bc17e548', cx: "5", cy: "5", r: "4", fill: "#079455" }))), h("div", { key: 'dae8b2c4bdf0833f56205c45976eb36029f59b4a', class: "placeholder" }, h(Fragment, null, this.state === 'default' && (h(Fragment, null, this.placeholder && (h("p", { key: '34ea90e622ed4a94d6f8fe09df24935ef784c6da', class: "text-md-regular", style: { color: '#CDD5DF' } }, this.placeholder)))), this.state === 'filled' && (h(Fragment, null, h("div", { key: '87d129c81649624907bb05be565f5a04a21b5660', class: `content` }, h("div", { key: 'e4650f1c78ef07d4bcef518bcda168ddec92c3fa', class: `text text-md-regular ${this.type === 'tags' ? 'tag' : ''}`, style: { color: '#4B5565' } }, this.type === 'tags'
|
|
141
141
|
? this.selectedItems.map((item, index) => (h("div", { class: "added_tag" }, h("gb-tag", { size: "sm", icon: "avatar", action: "X_close", key: index, onClick: () => this.handleTagRemove(item) }, h("p", { class: "text-xs-medium" }, item.name.split(' ')[0]), h("h1", { slot: "initials", class: "text-xxs-semi-bold" }, item.name.split(' ').map(part => part.charAt(0).toUpperCase()))))))
|
|
142
|
-
: this.selectedItem.name), this.supportingText && (h("div", { key: '
|
|
142
|
+
: this.selectedItem.name), this.supportingText && (h("div", { key: 'dfde0b3a8b6dbdd89ef130ca7e69fbb18e6a9bbb', class: "supporting_text text-sm-regular", style: { color: '#697586' } }, this.type === 'tags'
|
|
143
143
|
? this.selectedItems.map(item => item.username).join(', ') // For multiple selections
|
|
144
|
-
: this.selectedItem.username))))))), this.showHelpIcon && (h("div", { key: '
|
|
145
|
-
h(Fragment, null, this.dropdownOpen && (h("div", { key: '
|
|
144
|
+
: this.selectedItem.username))))))), this.showHelpIcon && (h("div", { key: '64b3cd6959b2944d5f7b676f91407c862a9eb6d8', class: `help_icon` }, h("gb-help-tooltip", { key: 'd0b4e9f595f9a862de3603ba048a04c78cb40ac1', "show-supporting-text": true }, h("slot", { key: '941abc3fa8c10e7404578fff07fccc795d93e4f9', name: "tooltip_label", slot: "label" }), h("slot", { key: '167452f219293d965b1c21cd4ca2f085bbfee448', name: "tooltip_supporting_text", slot: "supporting_text" })))), this.type !== 'search' && (h("div", { key: '4e4771cbd57d54eaa0c794bd4da69f00a8b620d5', class: `dropdown_icon ${this.dropdownOpen ? 'opened' : ''}` }, h("svg", { key: '8a44141b9d150cccb728642bee1c1f3512fbb584', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: `${this.state}` }, h("path", { key: '6d68087a6f796f8707ed644221e0b76701edfbcd', d: "M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5", stroke: "#697586", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), this.showHintText && (h("p", { key: '7c30e49a0516b79a3fd9a435dc342ee58c54507f', class: "text-sm-regular", style: { color: '#697586' } }, this.hintText))),
|
|
145
|
+
h(Fragment, null, this.dropdownOpen && (h("div", { key: 'c585f6146c6c5a2505900fffd013a60173546aeb', class: "dropdown_menu", ref: el => (this.dropdownRef = el) }, items.map(item => (h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: StateEnum.Default, "supporting-text": this.supportingText, selected: this.isItemSelected(item), onClick: () => this.handleItemSelect(item) }, h("p", { slot: "name" }, item.name), h("p", { slot: "supporting_text" }, "@", item.username))))))),
|
|
146
146
|
];
|
|
147
147
|
}
|
|
148
148
|
static get is() { return "gb-input-dropdown"; }
|
package/dist/collection/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.js
CHANGED
|
@@ -17,12 +17,12 @@ export class GbInputDropdownMenuItem {
|
|
|
17
17
|
render() {
|
|
18
18
|
return (
|
|
19
19
|
// <div class="dropdown-container" onClick={() => (this.selected = !this.selected)}>
|
|
20
|
-
h("div", { key: '
|
|
20
|
+
h("div", { key: 'e5749299a94d1d366c92f0a19ca99b3c2e2a1c7f', class: "dropdown-container" }, h("div", { key: 'e223504e0108d01aa3a63e58794de7fd5a867537', class: {
|
|
21
21
|
'dropdown-item': true,
|
|
22
22
|
'dropdown-item--selected': this.selected,
|
|
23
23
|
'dropdown-item--disabled': this.state === 'disabled',
|
|
24
24
|
[this.type]: true,
|
|
25
|
-
}, role: "option", "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.state === 'disabled' ? 'true' : 'false' }, h("div", { key: '
|
|
25
|
+
}, role: "option", "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.state === 'disabled' ? 'true' : 'false' }, h("div", { key: '6c39293ce2cbbff1a34dac306cf04049c5ba4e79', class: "content" }, this.type === 'icon_leading' && (h("svg", { key: '702039dace5fbf5d7ef53d05d8d4876a85865a59', id: "icon", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '5cfcd05a991f42f37db29c0d9d163954ee45bc45', d: "M5.48131 12.9013C4.30234 13.6034 1.21114 15.0368 3.09388 16.8305C4.01359 17.7067 5.03791 18.3334 6.32572 18.3334H13.6743C14.9621 18.3334 15.9864 17.7067 16.9061 16.8305C18.7889 15.0368 15.6977 13.6034 14.5187 12.9013C11.754 11.2551 8.24599 11.2551 5.48131 12.9013Z", stroke: "#4B5565", "stroke-width": "1.5" }), h("path", { key: '4e93333e15e773db69dd0c5d7734724aad11785e', d: "M13.75 5.41669C13.75 7.48776 12.0711 9.16669 10 9.16669C7.92893 9.16669 6.25 7.48776 6.25 5.41669C6.25 3.34562 7.92893 1.66669 10 1.66669C12.0711 1.66669 13.75 3.34562 13.75 5.41669Z", stroke: "#4B5565", "stroke-width": "1.5" }))), this.type === 'avatar_leading' && (h("gb-avatar", { key: '405cce88c937fa5ad8d6441111b20bd9b35ce527', class: "avatar-icon", size: "xs", "status-icon": "false" }, h("slot", { key: 'acd1d89ced10bbca56962a4e7b5a9c4c3e7100f3', name: "image", slot: "image" }))), this.type === 'dot_leading' && (h("svg", { key: '0d847a5acdf925109804992db4ffd03345d24a95', id: "icon", xmlns: "http://www.w3.org/2000/svg", width: "10px", height: "10px", viewBox: "0 0 10 10", fill: "none" }, h("circle", { key: 'd9b621cd0c1a3cc8c3bd04bb37b870241519e317', cx: "5", cy: "5", r: "4", fill: "#17B26A" }))), this.type === 'checkbox' && h("gb-checkbox", { key: 'c5723340a4c4431f314c7003342c9c011a080e22', class: "checkbox", size: "md", type: "checkbox", state: this.state, checked: this.selected }), h("slot", { key: '46cd6f6af088d7868e6f9d6d9f0ebf61001343af', name: "name" }), this.supportingText && (h("span", { key: '7d225e9ae5d3f1055a61e6f8898b06debf177900' }, h("slot", { key: '87949302586c4bb7cf4c2fc35f3ff12acd42491c', name: "supporting_text" })))), this.selected && this.type !== 'checkbox' && (h("div", { key: 'dd6825f001e54bfa43437082cd58dadcb5093828', class: `tick` }, h("svg", { key: '0b07350c37ddcf7711569c51fb666460d61c1df1', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '05fcf6c24b08efbbfe8703ff9f850dd65cfc565e', d: "M4.16669 12.0834C4.16669 12.0834 5.41669 12.0834 7.08335 15C7.08335 15 11.7157 7.36115 15.8334 5.83337", stroke: "#075DB2", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" })))))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "gb-input-dropdown-menu-item"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|