tuix-webcomponents 0.62.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/addon-visual-tests-assets/visual-test-illustration.mp4 +0 -0
- package/dist/assets/Color-AVL7NMMY-IH_JbDEF.js +1 -0
- package/dist/assets/DocsRenderer-PQXLIZUC-C0ZKNA9m.js +1286 -0
- package/dist/{src/tuix-icon/TuixIcon.icons.js → assets/TuixIconButton-eQtxZNXh.js} +203 -126
- package/dist/assets/TuixModal-BZFIHTi_.js +78 -0
- package/dist/assets/TuixToast-BhxwZIGo.js +62 -0
- package/dist/assets/_commonjsHelpers-CqkleIqs.js +1 -0
- package/dist/assets/axe-C59a3kt3.js +30 -0
- package/dist/assets/iframe-ClsPaEIM.js +1057 -0
- package/dist/assets/index-DBzYXxxs.js +1554 -0
- package/dist/assets/index-TjhCmV-u.js +1 -0
- package/dist/assets/matchers-7Z3WT2CE-CcSi9QFY.js +14 -0
- package/dist/assets/screenSizes.enum-C1IhC_dy.js +13 -0
- package/dist/assets/state-CLjydI9z.js +13 -0
- package/dist/assets/tuix-button.stories-Dm_yifox.js +30 -0
- package/dist/assets/tuix-checkbox.stories-DmzoygjC.js +44 -0
- package/dist/assets/tuix-dropdown-object-list.stories-Neeajtj-.js +56 -0
- package/dist/assets/tuix-dropdown.stories-B7ea8QAz.js +28 -0
- package/dist/assets/tuix-icon-button.stories-CgbOSRO4.js +21 -0
- package/dist/assets/tuix-icon.enums-DYTtwLZl.js +1 -0
- package/dist/assets/tuix-icon.stories-CjN2XsKx.js +19 -0
- package/dist/assets/tuix-input.stories-CD7onvw2.js +33 -0
- package/dist/assets/tuix-link.stories-CT7pzGlx.js +35 -0
- package/dist/assets/tuix-modal.stories-B6v3cOPq.js +39 -0
- package/dist/assets/tuix-paper.enum-DhmlUJB7.js +1 -0
- package/dist/assets/tuix-paper.stories-CLnRPHNK.js +31 -0
- package/dist/assets/tuix-radio-button.stories-BwkKC3a9.js +35 -0
- package/dist/assets/tuix-table.stories-Bn-aZa0J.js +65 -0
- package/dist/assets/tuix-text.enums-Ck8cVqZZ.js +1 -0
- package/dist/assets/tuix-text.stories-BNIqPsGD.js +29 -0
- package/dist/assets/tuix-toast.stories-CRYiLiHK.js +21 -0
- package/dist/assets/tuix-toggle-button.stories-CY6wlDnA.js +40 -0
- package/dist/favicon-wrapper.svg +46 -0
- package/dist/favicon.svg +1 -0
- package/dist/iframe.html +685 -0
- package/dist/index.html +160 -0
- package/dist/index.json +1 -0
- package/dist/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/nunito-sans-bold.woff2 +0 -0
- package/dist/nunito-sans-italic.woff2 +0 -0
- package/dist/nunito-sans-regular.woff2 +0 -0
- package/dist/project.json +1 -0
- package/dist/sb-addons/a11y-3/manager-bundle.js +5 -0
- package/dist/sb-addons/a11y-3/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-addons/chromatic-com-storybook-1/manager-bundle.js +356 -0
- package/dist/sb-addons/chromatic-com-storybook-1/manager-bundle.js.LEGAL.txt +40 -0
- package/dist/sb-addons/docs-2/manager-bundle.js +151 -0
- package/dist/sb-addons/docs-2/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +971 -0
- package/dist/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-addons/vitest-4/manager-bundle.js +3 -0
- package/dist/sb-addons/vitest-4/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-common-assets/favicon-wrapper.svg +46 -0
- package/dist/sb-common-assets/favicon.svg +1 -0
- package/dist/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/dist/sb-manager/globals-module-info.js +797 -0
- package/dist/sb-manager/globals-runtime.js +69679 -0
- package/dist/sb-manager/globals.js +34 -0
- package/dist/sb-manager/runtime.js +13195 -0
- package/package.json +77 -53
- package/dist/assets/tuix-styles.css +0 -58
- package/dist/src/index.d.ts +0 -36
- package/dist/src/index.js +0 -43
- package/dist/src/index.js.map +0 -1
- package/dist/src/tuix-button/TuixBaseButton.d.ts +0 -17
- package/dist/src/tuix-button/TuixBaseButton.js +0 -62
- package/dist/src/tuix-button/TuixBaseButton.js.map +0 -1
- package/dist/src/tuix-button/TuixButton.d.ts +0 -11
- package/dist/src/tuix-button/TuixButton.js +0 -85
- package/dist/src/tuix-button/TuixButton.js.map +0 -1
- package/dist/src/tuix-button/TuixButton.styles.d.ts +0 -3
- package/dist/src/tuix-button/TuixButton.styles.js +0 -108
- package/dist/src/tuix-button/TuixButton.styles.js.map +0 -1
- package/dist/src/tuix-button/enums/tuix-button.enums.d.ts +0 -2
- package/dist/src/tuix-button/enums/tuix-button.enums.js +0 -7
- package/dist/src/tuix-button/enums/tuix-button.enums.js.map +0 -1
- package/dist/src/tuix-button/interfaces/tuix-button.interface.d.ts +0 -1
- package/dist/src/tuix-button/interfaces/tuix-button.interface.js +0 -2
- package/dist/src/tuix-button/interfaces/tuix-button.interface.js.map +0 -1
- package/dist/src/tuix-checkbox/TuixCheckbox.d.ts +0 -15
- package/dist/src/tuix-checkbox/TuixCheckbox.js +0 -107
- package/dist/src/tuix-checkbox/TuixCheckbox.js.map +0 -1
- package/dist/src/tuix-checkbox/TuixCheckbox.styles.d.ts +0 -4
- package/dist/src/tuix-checkbox/TuixCheckbox.styles.js +0 -133
- package/dist/src/tuix-checkbox/TuixCheckbox.styles.js.map +0 -1
- package/dist/src/tuix-checkbox/enums/tuix-checkbox.enums.d.ts +0 -21
- package/dist/src/tuix-checkbox/enums/tuix-checkbox.enums.js +0 -24
- package/dist/src/tuix-checkbox/enums/tuix-checkbox.enums.js.map +0 -1
- package/dist/src/tuix-checkbox/interfaces/tuix-checkbox.interface.d.ts +0 -5
- package/dist/src/tuix-checkbox/interfaces/tuix-checkbox.interface.js +0 -2
- package/dist/src/tuix-checkbox/interfaces/tuix-checkbox.interface.js.map +0 -1
- package/dist/src/tuix-dropdown/TuixDropdown.d.ts +0 -55
- package/dist/src/tuix-dropdown/TuixDropdown.js +0 -368
- package/dist/src/tuix-dropdown/TuixDropdown.js.map +0 -1
- package/dist/src/tuix-dropdown/TuixDropdown.styles.d.ts +0 -3
- package/dist/src/tuix-dropdown/TuixDropdown.styles.js +0 -126
- package/dist/src/tuix-dropdown/TuixDropdown.styles.js.map +0 -1
- package/dist/src/tuix-dropdown/enums/tuix-dropdown.enums.d.ts +0 -4
- package/dist/src/tuix-dropdown/enums/tuix-dropdown.enums.js +0 -6
- package/dist/src/tuix-dropdown/enums/tuix-dropdown.enums.js.map +0 -1
- package/dist/src/tuix-dropdown/interfaces/tuix-dropdown.interface.d.ts +0 -15
- package/dist/src/tuix-dropdown/interfaces/tuix-dropdown.interface.js +0 -2
- package/dist/src/tuix-dropdown/interfaces/tuix-dropdown.interface.js.map +0 -1
- package/dist/src/tuix-icon/TuixIcon.d.ts +0 -15
- package/dist/src/tuix-icon/TuixIcon.icons.d.ts +0 -6
- package/dist/src/tuix-icon/TuixIcon.icons.js.map +0 -1
- package/dist/src/tuix-icon/TuixIcon.js +0 -81
- package/dist/src/tuix-icon/TuixIcon.js.map +0 -1
- package/dist/src/tuix-icon/enums/tuix-icon.enums.d.ts +0 -62
- package/dist/src/tuix-icon/enums/tuix-icon.enums.js +0 -70
- package/dist/src/tuix-icon/enums/tuix-icon.enums.js.map +0 -1
- package/dist/src/tuix-icon-button/TuixIconButton.d.ts +0 -9
- package/dist/src/tuix-icon-button/TuixIconButton.js +0 -52
- package/dist/src/tuix-icon-button/TuixIconButton.js.map +0 -1
- package/dist/src/tuix-input/TuixInput.d.ts +0 -52
- package/dist/src/tuix-input/TuixInput.js +0 -374
- package/dist/src/tuix-input/TuixInput.js.map +0 -1
- package/dist/src/tuix-input/TuixInput.styles.d.ts +0 -8
- package/dist/src/tuix-input/TuixInput.styles.js +0 -296
- package/dist/src/tuix-input/TuixInput.styles.js.map +0 -1
- package/dist/src/tuix-input/enums/tuix-input.enums.d.ts +0 -38
- package/dist/src/tuix-input/enums/tuix-input.enums.js +0 -42
- package/dist/src/tuix-input/enums/tuix-input.enums.js.map +0 -1
- package/dist/src/tuix-input/interfaces/tuix-input.interface.d.ts +0 -17
- package/dist/src/tuix-input/interfaces/tuix-input.interface.js +0 -7
- package/dist/src/tuix-input/interfaces/tuix-input.interface.js.map +0 -1
- package/dist/src/tuix-link/TuixLink.d.ts +0 -15
- package/dist/src/tuix-link/TuixLink.js +0 -72
- package/dist/src/tuix-link/TuixLink.js.map +0 -1
- package/dist/src/tuix-link/TuixLink.styles.d.ts +0 -2
- package/dist/src/tuix-link/TuixLink.styles.js +0 -56
- package/dist/src/tuix-link/TuixLink.styles.js.map +0 -1
- package/dist/src/tuix-link/enums/linkTarget.enum.d.ts +0 -6
- package/dist/src/tuix-link/enums/linkTarget.enum.js +0 -8
- package/dist/src/tuix-link/enums/linkTarget.enum.js.map +0 -1
- package/dist/src/tuix-modal/TuixModal.d.ts +0 -9
- package/dist/src/tuix-modal/TuixModal.js +0 -64
- package/dist/src/tuix-modal/TuixModal.js.map +0 -1
- package/dist/src/tuix-modal/TuixModal.styles.d.ts +0 -2
- package/dist/src/tuix-modal/TuixModal.styles.js +0 -56
- package/dist/src/tuix-modal/TuixModal.styles.js.map +0 -1
- package/dist/src/tuix-paper/TuixPaper.d.ts +0 -10
- package/dist/src/tuix-paper/TuixPaper.js +0 -47
- package/dist/src/tuix-paper/TuixPaper.js.map +0 -1
- package/dist/src/tuix-paper/TuixPaper.styles.d.ts +0 -1
- package/dist/src/tuix-paper/TuixPaper.styles.js +0 -31
- package/dist/src/tuix-paper/TuixPaper.styles.js.map +0 -1
- package/dist/src/tuix-paper/enums/tuix-paper.enum.d.ts +0 -13
- package/dist/src/tuix-paper/enums/tuix-paper.enum.js +0 -16
- package/dist/src/tuix-paper/enums/tuix-paper.enum.js.map +0 -1
- package/dist/src/tuix-radio-button/TuixRadioButton.d.ts +0 -16
- package/dist/src/tuix-radio-button/TuixRadioButton.js +0 -96
- package/dist/src/tuix-radio-button/TuixRadioButton.js.map +0 -1
- package/dist/src/tuix-radio-button/TuixRadioButton.styles.d.ts +0 -5
- package/dist/src/tuix-radio-button/TuixRadioButton.styles.js +0 -136
- package/dist/src/tuix-radio-button/TuixRadioButton.styles.js.map +0 -1
- package/dist/src/tuix-radio-button/interfaces/tuix-radio-button.interface.d.ts +0 -3
- package/dist/src/tuix-radio-button/interfaces/tuix-radio-button.interface.js +0 -2
- package/dist/src/tuix-radio-button/interfaces/tuix-radio-button.interface.js.map +0 -1
- package/dist/src/tuix-table/TuixTable.d.ts +0 -46
- package/dist/src/tuix-table/TuixTable.js +0 -373
- package/dist/src/tuix-table/TuixTable.js.map +0 -1
- package/dist/src/tuix-table/TuixTable.styles.d.ts +0 -2
- package/dist/src/tuix-table/TuixTable.styles.js +0 -198
- package/dist/src/tuix-table/TuixTable.styles.js.map +0 -1
- package/dist/src/tuix-table/interfaces/tuix-table.interface.d.ts +0 -45
- package/dist/src/tuix-table/interfaces/tuix-table.interface.js +0 -2
- package/dist/src/tuix-table/interfaces/tuix-table.interface.js.map +0 -1
- package/dist/src/tuix-text/TuixText.d.ts +0 -12
- package/dist/src/tuix-text/TuixText.js +0 -67
- package/dist/src/tuix-text/TuixText.js.map +0 -1
- package/dist/src/tuix-text/TuixText.styles.d.ts +0 -2
- package/dist/src/tuix-text/TuixText.styles.js +0 -159
- package/dist/src/tuix-text/TuixText.styles.js.map +0 -1
- package/dist/src/tuix-text/enums/tuix-text.enums.d.ts +0 -31
- package/dist/src/tuix-text/enums/tuix-text.enums.js +0 -64
- package/dist/src/tuix-text/enums/tuix-text.enums.js.map +0 -1
- package/dist/src/tuix-toast/TuixToast.d.ts +0 -15
- package/dist/src/tuix-toast/TuixToast.js +0 -101
- package/dist/src/tuix-toast/TuixToast.js.map +0 -1
- package/dist/src/tuix-toast/TuixToast.styles.d.ts +0 -3
- package/dist/src/tuix-toast/TuixToast.styles.js +0 -44
- package/dist/src/tuix-toast/TuixToast.styles.js.map +0 -1
- package/dist/src/tuix-toast/enums/tuix-toast.enums.d.ts +0 -20
- package/dist/src/tuix-toast/enums/tuix-toast.enums.js +0 -60
- package/dist/src/tuix-toast/enums/tuix-toast.enums.js.map +0 -1
- package/dist/src/tuix-toggle-button/TuixToggleButton.d.ts +0 -13
- package/dist/src/tuix-toggle-button/TuixToggleButton.js +0 -86
- package/dist/src/tuix-toggle-button/TuixToggleButton.js.map +0 -1
- package/dist/src/tuix-toggle-button/TuixToggleButton.styles.d.ts +0 -5
- package/dist/src/tuix-toggle-button/TuixToggleButton.styles.js +0 -135
- package/dist/src/tuix-toggle-button/TuixToggleButton.styles.js.map +0 -1
- package/dist/src/tuix-toggle-button/interfaces/tuix-toggle.interface.d.ts +0 -2
- package/dist/src/tuix-toggle-button/interfaces/tuix-toggle.interface.js +0 -2
- package/dist/src/tuix-toggle-button/interfaces/tuix-toggle.interface.js.map +0 -1
- package/dist/src/utils/colors.d.ts +0 -29
- package/dist/src/utils/colors.js +0 -31
- package/dist/src/utils/colors.js.map +0 -1
- package/dist/src/utils/darkColors.d.ts +0 -31
- package/dist/src/utils/darkColors.js +0 -33
- package/dist/src/utils/darkColors.js.map +0 -1
- package/dist/src/utils/hex-rgb.d.ts +0 -5
- package/dist/src/utils/hex-rgb.js +0 -16
- package/dist/src/utils/hex-rgb.js.map +0 -1
- package/dist/src/utils/interfaces/detail-value.interface.d.ts +0 -3
- package/dist/src/utils/interfaces/detail-value.interface.js +0 -2
- package/dist/src/utils/interfaces/detail-value.interface.js.map +0 -1
- package/dist/src/utils/mainVariant.enum.d.ts +0 -4
- package/dist/src/utils/mainVariant.enum.js +0 -6
- package/dist/src/utils/mainVariant.enum.js.map +0 -1
- package/dist/src/utils/screenSizes.enum.d.ts +0 -4
- package/dist/src/utils/screenSizes.enum.js +0 -6
- package/dist/src/utils/screenSizes.enum.js.map +0 -1
- package/dist/src/utils/slottedClassName.d.ts +0 -2
- package/dist/src/utils/slottedClassName.js +0 -2
- package/dist/src/utils/slottedClassName.js.map +0 -1
- package/dist/tsconfig.publish.tsbuildinfo +0 -1
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { html, LitElement } from 'lit';
|
|
3
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
4
|
-
import { BorderRadiusPaper, PaperElevation, } from '../tuix-paper/enums/tuix-paper.enum.js';
|
|
5
|
-
import { commonModalStyles, mobileModalStyles } from './TuixModal.styles.js';
|
|
6
|
-
import { TextVariant } from '../tuix-text/enums/tuix-text.enums.js';
|
|
7
|
-
import { IconName, IconSizeVariant, } from '../tuix-icon/enums/tuix-icon.enums.js';
|
|
8
|
-
let TuixModal = class TuixModal extends LitElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.visible = false;
|
|
12
|
-
this.dark = false;
|
|
13
|
-
this.scrollable = false;
|
|
14
|
-
}
|
|
15
|
-
_onClose() {
|
|
16
|
-
this.visible = false;
|
|
17
|
-
this.dispatchEvent(new CustomEvent('on-close', { bubbles: true }));
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
return html `
|
|
21
|
-
<tuix-paper
|
|
22
|
-
class="modal-container"
|
|
23
|
-
elevation=${PaperElevation.VARIANT_4}
|
|
24
|
-
border-radius=${BorderRadiusPaper.SOFT}
|
|
25
|
-
?dark=${this.dark}
|
|
26
|
-
>
|
|
27
|
-
<div class="content">
|
|
28
|
-
<header>
|
|
29
|
-
<slot name="title"></slot>
|
|
30
|
-
<tuix-icon
|
|
31
|
-
@click=${this._onClose}
|
|
32
|
-
class="close-icon"
|
|
33
|
-
size="${IconSizeVariant.MEDIUM}"
|
|
34
|
-
name="${IconName.X}"
|
|
35
|
-
color="${TextVariant.MAIN}"
|
|
36
|
-
?dark=${this.dark}
|
|
37
|
-
></tuix-icon>
|
|
38
|
-
</header>
|
|
39
|
-
<div class="body" ?scrollable=${this.scrollable}>
|
|
40
|
-
<slot name="body"></slot>
|
|
41
|
-
</div>
|
|
42
|
-
<div class="action-buttons">
|
|
43
|
-
<slot name="actions"></slot>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</tuix-paper>
|
|
47
|
-
`;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
TuixModal.styles = [commonModalStyles, mobileModalStyles];
|
|
51
|
-
__decorate([
|
|
52
|
-
property({ type: Boolean, reflect: true })
|
|
53
|
-
], TuixModal.prototype, "visible", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
property({ type: Boolean, reflect: true })
|
|
56
|
-
], TuixModal.prototype, "dark", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
property({ type: Boolean, reflect: true })
|
|
59
|
-
], TuixModal.prototype, "scrollable", void 0);
|
|
60
|
-
TuixModal = __decorate([
|
|
61
|
-
customElement('tuix-modal')
|
|
62
|
-
], TuixModal);
|
|
63
|
-
export { TuixModal };
|
|
64
|
-
//# sourceMappingURL=TuixModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TuixModal.js","sourceRoot":"","sources":["../../../src/tuix-modal/TuixModal.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EACL,iBAAiB,EACjB,cAAc,GACf,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EACL,QAAQ,EACR,eAAe,GAChB,MAAM,uCAAuC,CAAC;AAG/C,IAAa,SAAS,GAAtB,MAAa,SAAU,SAAQ,UAAU;IAAzC;;QAIE,YAAO,GAAG,KAAK,CAAC;QAGhB,SAAI,GAAG,KAAK,CAAC;QAGb,eAAU,GAAG,KAAK,CAAC;IAqCrB,CAAC;IAnCW,QAAQ;QAChB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;;;oBAGK,cAAc,CAAC,SAAS;wBACpB,iBAAiB,CAAC,IAAI;gBAC9B,IAAI,CAAC,IAAI;;;;;;uBAMF,IAAI,CAAC,QAAQ;;sBAEd,eAAe,CAAC,MAAM;sBACtB,QAAQ,CAAC,CAAC;uBACT,WAAW,CAAC,IAAI;sBACjB,IAAI,CAAC,IAAI;;;0CAGW,IAAI,CAAC,UAAU;;;;;;;;KAQpD,CAAC;IACJ,CAAC;;AA7CM,gBAAM,GAAG,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,AAAzC,CAA0C;AAGvD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAC3B;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAC9B;AAGb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CACxB;AAVR,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CA+CrB;SA/CY,SAAS","sourcesContent":["import { html, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport {\n BorderRadiusPaper,\n PaperElevation,\n} from '../tuix-paper/enums/tuix-paper.enum.js';\nimport { commonModalStyles, mobileModalStyles } from './TuixModal.styles.js';\nimport { TextVariant } from '../tuix-text/enums/tuix-text.enums.js';\nimport {\n IconName,\n IconSizeVariant,\n} from '../tuix-icon/enums/tuix-icon.enums.js';\n\n@customElement('tuix-modal')\nexport class TuixModal extends LitElement {\n static styles = [commonModalStyles, mobileModalStyles];\n\n @property({ type: Boolean, reflect: true })\n visible = false;\n\n @property({ type: Boolean, reflect: true })\n dark = false;\n\n @property({ type: Boolean, reflect: true })\n scrollable = false;\n\n protected _onClose() {\n this.visible = false;\n this.dispatchEvent(new CustomEvent('on-close', { bubbles: true }));\n }\n\n render() {\n return html`\n <tuix-paper\n class=\"modal-container\"\n elevation=${PaperElevation.VARIANT_4}\n border-radius=${BorderRadiusPaper.SOFT}\n ?dark=${this.dark}\n >\n <div class=\"content\">\n <header>\n <slot name=\"title\"></slot>\n <tuix-icon\n @click=${this._onClose}\n class=\"close-icon\"\n size=\"${IconSizeVariant.MEDIUM}\"\n name=\"${IconName.X}\"\n color=\"${TextVariant.MAIN}\"\n ?dark=${this.dark}\n ></tuix-icon>\n </header>\n <div class=\"body\" ?scrollable=${this.scrollable}>\n <slot name=\"body\"></slot>\n </div>\n <div class=\"action-buttons\">\n <slot name=\"actions\"></slot>\n </div>\n </div>\n </tuix-paper>\n `;\n }\n}\n"]}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { css, unsafeCSS } from 'lit';
|
|
2
|
-
import { ScreenSizes } from '../utils/screenSizes.enum.js';
|
|
3
|
-
import { Palette } from '../utils/colors.js';
|
|
4
|
-
export const commonModalStyles = css `
|
|
5
|
-
:host {
|
|
6
|
-
display: none;
|
|
7
|
-
position: fixed;
|
|
8
|
-
width: 100%;
|
|
9
|
-
height: 100vh;
|
|
10
|
-
align-items: center;
|
|
11
|
-
top: 0;
|
|
12
|
-
left: 0;
|
|
13
|
-
background-color: ${unsafeCSS(Palette.BLACK + '80')};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:host([visible]) {
|
|
17
|
-
display: flex;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.modal-container {
|
|
21
|
-
margin: auto;
|
|
22
|
-
max-width: 96%;
|
|
23
|
-
max-height: 96vh;
|
|
24
|
-
|
|
25
|
-
.content {
|
|
26
|
-
border-radius: 4px;
|
|
27
|
-
|
|
28
|
-
header {
|
|
29
|
-
display: flex;
|
|
30
|
-
justify-content: space-between;
|
|
31
|
-
padding: 16px 16px 8px;
|
|
32
|
-
|
|
33
|
-
.close-icon {
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
div.body {
|
|
39
|
-
padding: 8px 16px 32px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
div.action-buttons {
|
|
43
|
-
padding: 8px 16px 16px 16px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
48
|
-
export const mobileModalStyles = css `
|
|
49
|
-
@media only screen and (max-width: ${ScreenSizes.MOBILE}px) {
|
|
50
|
-
.modal-container {
|
|
51
|
-
min-width: 100%;
|
|
52
|
-
max-height: 100%;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
`;
|
|
56
|
-
//# sourceMappingURL=TuixModal.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TuixModal.styles.js","sourceRoot":"","sources":["../../../src/tuix-modal/TuixModal.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;wBASZ,SAAS,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCtD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;uCACG,WAAW,CAAC,MAAM;;;;;;CAMxD,CAAC","sourcesContent":["import { css, unsafeCSS } from 'lit';\nimport { ScreenSizes } from '../utils/screenSizes.enum';\nimport { Palette } from '../utils/colors';\n\nexport const commonModalStyles = css`\n :host {\n display: none;\n position: fixed;\n width: 100%;\n height: 100vh;\n align-items: center;\n top: 0;\n left: 0;\n background-color: ${unsafeCSS(Palette.BLACK + '80')};\n }\n\n :host([visible]) {\n display: flex;\n }\n\n .modal-container {\n margin: auto;\n max-width: 96%;\n max-height: 96vh;\n\n .content {\n border-radius: 4px;\n\n header {\n display: flex;\n justify-content: space-between;\n padding: 16px 16px 8px;\n\n .close-icon {\n cursor: pointer;\n }\n }\n\n div.body {\n padding: 8px 16px 32px;\n }\n\n div.action-buttons {\n padding: 8px 16px 16px 16px;\n }\n }\n }\n`;\n\nexport const mobileModalStyles = css`\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .modal-container {\n min-width: 100%;\n max-height: 100%;\n }\n }\n`;\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
-
import { BorderRadiusPaper, PaperElevation } from './enums/tuix-paper.enum.js';
|
|
3
|
-
export declare class TuixPaper extends LitElement {
|
|
4
|
-
static styles: import("lit").CSSResult[];
|
|
5
|
-
elevation: PaperElevation;
|
|
6
|
-
borderRadius: BorderRadiusPaper;
|
|
7
|
-
dark: boolean;
|
|
8
|
-
private _getOptionalClasses;
|
|
9
|
-
render(): TemplateResult;
|
|
10
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { LitElement, html } from 'lit';
|
|
3
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
4
|
-
import { BorderRadiusPaper, PaperElevation } from './enums/tuix-paper.enum.js';
|
|
5
|
-
import { classMap } from 'lit/directives/class-map.js';
|
|
6
|
-
import { styleMap } from 'lit/directives/style-map.js';
|
|
7
|
-
import { paperStyles } from './TuixPaper.styles.js';
|
|
8
|
-
let TuixPaper = class TuixPaper extends LitElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.elevation = PaperElevation.VARIANT_1;
|
|
12
|
-
this.borderRadius = BorderRadiusPaper.NONE;
|
|
13
|
-
this.dark = false;
|
|
14
|
-
}
|
|
15
|
-
_getOptionalClasses() {
|
|
16
|
-
const variantClass = `variant_${this.elevation}`;
|
|
17
|
-
const darkClass = `dark_${this.elevation}`;
|
|
18
|
-
return {
|
|
19
|
-
elevation: true,
|
|
20
|
-
[variantClass]: !this.dark,
|
|
21
|
-
[darkClass]: this.dark,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
return html ` <div
|
|
26
|
-
class="${classMap(this._getOptionalClasses())}"
|
|
27
|
-
style="${styleMap({ borderRadius: this.borderRadius })}"
|
|
28
|
-
>
|
|
29
|
-
<slot></slot>
|
|
30
|
-
</div>`;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
TuixPaper.styles = [paperStyles];
|
|
34
|
-
__decorate([
|
|
35
|
-
property({ type: PaperElevation })
|
|
36
|
-
], TuixPaper.prototype, "elevation", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
property({ type: String, attribute: 'border-radius' })
|
|
39
|
-
], TuixPaper.prototype, "borderRadius", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
property({ type: Boolean, reflect: true })
|
|
42
|
-
], TuixPaper.prototype, "dark", void 0);
|
|
43
|
-
TuixPaper = __decorate([
|
|
44
|
-
customElement('tuix-paper')
|
|
45
|
-
], TuixPaper);
|
|
46
|
-
export { TuixPaper };
|
|
47
|
-
//# sourceMappingURL=TuixPaper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TuixPaper.js","sourceRoot":"","sources":["../../../src/tuix-paper/TuixPaper.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAkB,IAAI,EAAE,MAAM,KAAK,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAa,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,IAAa,SAAS,GAAtB,MAAa,SAAU,SAAQ,UAAU;IAAzC;;QAIE,cAAS,GAAG,cAAc,CAAC,SAAS,CAAC;QAGrC,iBAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC;QAGtC,SAAI,GAAG,KAAK,CAAC;IAoBf,CAAC;IAlBS,mBAAmB;QACzB,MAAM,YAAY,GAAG,WAAW,IAAI,CAAC,SAAS,EAAE,CAAC;QACjD,MAAM,SAAS,GAAG,QAAQ,IAAI,CAAC,SAAS,EAAE,CAAC;QAC3C,OAAO;YACL,SAAS,EAAE,IAAI;YACf,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI;YAC1B,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,IAAI;SACvB,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;eACA,QAAQ,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC;eACpC,QAAQ,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC;;;WAGjD,CAAC;IACV,CAAC;;AA5BM,gBAAM,GAAG,CAAC,WAAW,CAAC,AAAhB,CAAiB;AAG9B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;4CACE;AAGrC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;+CACjB;AAGtC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAC9B;AAVF,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CA8BrB;SA9BY,SAAS","sourcesContent":["import { LitElement, TemplateResult, html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { BorderRadiusPaper, PaperElevation } from './enums/tuix-paper.enum';\nimport { ClassInfo, classMap } from 'lit/directives/class-map.js';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport { paperStyles } from './TuixPaper.styles';\n\n@customElement('tuix-paper')\nexport class TuixPaper extends LitElement {\n static styles = [paperStyles];\n\n @property({ type: PaperElevation })\n elevation = PaperElevation.VARIANT_1;\n\n @property({ type: String, attribute: 'border-radius' })\n borderRadius = BorderRadiusPaper.NONE;\n\n @property({ type: Boolean, reflect: true })\n dark = false;\n\n private _getOptionalClasses(): ClassInfo {\n const variantClass = `variant_${this.elevation}`;\n const darkClass = `dark_${this.elevation}`;\n return {\n elevation: true,\n [variantClass]: !this.dark,\n [darkClass]: this.dark,\n };\n }\n\n render(): TemplateResult {\n return html` <div\n class=\"${classMap(this._getOptionalClasses())}\"\n style=\"${styleMap({ borderRadius: this.borderRadius })}\"\n >\n <slot></slot>\n </div>`;\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const paperStyles: import("lit").CSSResult;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { css, unsafeCSS } from 'lit';
|
|
2
|
-
import { PaperElevation } from './enums/tuix-paper.enum.js';
|
|
3
|
-
import { Palette } from '../utils/colors.js';
|
|
4
|
-
const calculatedStyles = Object.values(PaperElevation)
|
|
5
|
-
.slice(1, -1)
|
|
6
|
-
.map((variant, index) => `
|
|
7
|
-
.elevation.variant_${variant} {
|
|
8
|
-
box-shadow: 0px ${2 ** index}px ${2 ** (index + 2)}px ${Palette.SHADOW};
|
|
9
|
-
}
|
|
10
|
-
.elevation.dark_${variant} {
|
|
11
|
-
background-color:rgb(${23 + 3 * index},${23 + 3 * index},${26 + 5 * index});
|
|
12
|
-
}`)
|
|
13
|
-
.join('\n');
|
|
14
|
-
export const paperStyles = css `
|
|
15
|
-
${unsafeCSS(`
|
|
16
|
-
.elevation {
|
|
17
|
-
background-color: ${Palette.WHITE};
|
|
18
|
-
}
|
|
19
|
-
.elevation.dark_${PaperElevation.VARIANT_0} {
|
|
20
|
-
background-color: ${Palette.BLACK};
|
|
21
|
-
}
|
|
22
|
-
${calculatedStyles}
|
|
23
|
-
.elevation.variant_${PaperElevation.VARIANT_4} {
|
|
24
|
-
box-shadow: 0px 7px 24px ${Palette.SHADOW};
|
|
25
|
-
}
|
|
26
|
-
.elevation.dark_${PaperElevation.VARIANT_4} {
|
|
27
|
-
background-color: rgb(33, 33, 40);
|
|
28
|
-
}
|
|
29
|
-
`)}
|
|
30
|
-
`;
|
|
31
|
-
//# sourceMappingURL=TuixPaper.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TuixPaper.styles.js","sourceRoot":"","sources":["../../../src/tuix-paper/TuixPaper.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC;KACnD,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACZ,GAAG,CACF,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC;uBACD,OAAO;sBACR,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,MAAM,OAAO,CAAC,MAAM;;oBAEtD,OAAO;2BACA,EAAE,GAAG,CAAC,GAAG,KAAK,IAAI,EAAE,GAAG,CAAC,GAAG,KAAK,IAAI,EAAE,GAAG,CAAC,GAAG,KAAK;IACzE,CACD;KACA,IAAI,CAAC,IAAI,CAAC,CAAC;AAEd,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;IAC1B,SAAS,CAAC;;wBAEU,OAAO,CAAC,KAAK;;oBAEjB,cAAc,CAAC,SAAS;wBACpB,OAAO,CAAC,KAAK;;IAEjC,gBAAgB;uBACG,cAAc,CAAC,SAAS;+BAChB,OAAO,CAAC,MAAM;;oBAEzB,cAAc,CAAC,SAAS;;;CAG3C,CAAC;CACD,CAAC","sourcesContent":["import { css, unsafeCSS } from 'lit';\nimport { PaperElevation } from './enums/tuix-paper.enum';\nimport { Palette } from '../utils/colors';\n\nconst calculatedStyles = Object.values(PaperElevation)\n .slice(1, -1)\n .map(\n (variant, index) => `\n .elevation.variant_${variant} {\n box-shadow: 0px ${2 ** index}px ${2 ** (index + 2)}px ${Palette.SHADOW};\n }\n .elevation.dark_${variant} {\n background-color:rgb(${23 + 3 * index},${23 + 3 * index},${26 + 5 * index});\n }`\n )\n .join('\\n');\n\nexport const paperStyles = css`\n ${unsafeCSS(`\n .elevation {\n background-color: ${Palette.WHITE};\n }\n .elevation.dark_${PaperElevation.VARIANT_0} {\n background-color: ${Palette.BLACK};\n }\n ${calculatedStyles}\n .elevation.variant_${PaperElevation.VARIANT_4} {\n box-shadow: 0px 7px 24px ${Palette.SHADOW};\n }\n .elevation.dark_${PaperElevation.VARIANT_4} {\n background-color: rgb(33, 33, 40);\n }\n`)}\n`;\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export var PaperElevation;
|
|
2
|
-
(function (PaperElevation) {
|
|
3
|
-
PaperElevation["VARIANT_0"] = "0";
|
|
4
|
-
PaperElevation["VARIANT_1"] = "1";
|
|
5
|
-
PaperElevation["VARIANT_2"] = "2";
|
|
6
|
-
PaperElevation["VARIANT_3"] = "3";
|
|
7
|
-
PaperElevation["VARIANT_4"] = "4";
|
|
8
|
-
})(PaperElevation || (PaperElevation = {}));
|
|
9
|
-
export var BorderRadiusPaper;
|
|
10
|
-
(function (BorderRadiusPaper) {
|
|
11
|
-
BorderRadiusPaper["NONE"] = "0px";
|
|
12
|
-
BorderRadiusPaper["SOFT"] = "4px";
|
|
13
|
-
BorderRadiusPaper["MEDIUM"] = "10px";
|
|
14
|
-
BorderRadiusPaper["STRONG"] = "20px";
|
|
15
|
-
})(BorderRadiusPaper || (BorderRadiusPaper = {}));
|
|
16
|
-
//# sourceMappingURL=tuix-paper.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tuix-paper.enum.js","sourceRoot":"","sources":["../../../../src/tuix-paper/enums/tuix-paper.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,iCAAe,CAAA;AACjB,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AAED,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,iCAAY,CAAA;IACZ,iCAAY,CAAA;IACZ,oCAAe,CAAA;IACf,oCAAe,CAAA;AACjB,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,QAK5B","sourcesContent":["export enum PaperElevation {\n VARIANT_0 = '0',\n VARIANT_1 = '1',\n VARIANT_2 = '2',\n VARIANT_3 = '3',\n VARIANT_4 = '4',\n}\n\nexport enum BorderRadiusPaper {\n NONE = '0px',\n SOFT = '4px',\n MEDIUM = '10px',\n STRONG = '20px',\n}\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { CheckboxLabelSide } from '../tuix-checkbox/enums/tuix-checkbox.enums.js';
|
|
3
|
-
import { TuixRadioButtonOption } from './interfaces/tuix-radio-button.interface.js';
|
|
4
|
-
export declare class TuixRadioButton extends LitElement {
|
|
5
|
-
static styles: import("lit").CSSResult[];
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
dark: boolean;
|
|
8
|
-
error: boolean;
|
|
9
|
-
options: TuixRadioButtonOption[];
|
|
10
|
-
labelSide: CheckboxLabelSide;
|
|
11
|
-
selectedOption: TuixRadioButtonOption | null;
|
|
12
|
-
private _onRadioButtonChange;
|
|
13
|
-
private _getFullContainerClasses;
|
|
14
|
-
private _formatTemplate;
|
|
15
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
16
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { LitElement, html } from 'lit';
|
|
3
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
4
|
-
import { classMap } from 'lit/directives/class-map.js';
|
|
5
|
-
import { CheckboxLabelSide } from '../tuix-checkbox/enums/tuix-checkbox.enums.js';
|
|
6
|
-
import { TextSize, TextVariant } from '../tuix-text/enums/tuix-text.enums.js';
|
|
7
|
-
import { radioButtonContainerStyles, radioButtonInnerStyles, radioButtonLabelStyles, radioButtonStyles, radioHostStyles, } from './TuixRadioButton.styles.js';
|
|
8
|
-
let TuixRadioButton = class TuixRadioButton extends LitElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.disabled = false;
|
|
12
|
-
this.dark = false;
|
|
13
|
-
this.error = false;
|
|
14
|
-
this.options = [];
|
|
15
|
-
this.labelSide = CheckboxLabelSide.RIGHT;
|
|
16
|
-
this.selectedOption = null;
|
|
17
|
-
}
|
|
18
|
-
_onRadioButtonChange(event) {
|
|
19
|
-
this.dispatchEvent(new CustomEvent('change', {
|
|
20
|
-
detail: {
|
|
21
|
-
value: event.target.value,
|
|
22
|
-
},
|
|
23
|
-
bubbles: true,
|
|
24
|
-
}));
|
|
25
|
-
}
|
|
26
|
-
_getFullContainerClasses() {
|
|
27
|
-
return {
|
|
28
|
-
't-radio-button-full-container': true,
|
|
29
|
-
't-with-error': this.error && !this.disabled,
|
|
30
|
-
't-with-label-left': this.labelSide === CheckboxLabelSide.LEFT,
|
|
31
|
-
't-multiple-options': this.options.length > 1,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
_formatTemplate(option, index) {
|
|
35
|
-
return html `<label class="${classMap(this._getFullContainerClasses())}">
|
|
36
|
-
<div class="t-radio-button-container">
|
|
37
|
-
<input
|
|
38
|
-
type="radio"
|
|
39
|
-
class="t-radio-button"
|
|
40
|
-
?disabled="${this.disabled}"
|
|
41
|
-
.value="${option}"
|
|
42
|
-
name="tuix-radio-button"
|
|
43
|
-
?checked="${this.selectedOption === option}"
|
|
44
|
-
@change="${this._onRadioButtonChange}"
|
|
45
|
-
/>
|
|
46
|
-
<div class="t-radio-button-checkmark">
|
|
47
|
-
<div class="t-radio-button-inner"></div>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
<div class="t-radio-button-label">
|
|
51
|
-
<slot name="label-${index}">
|
|
52
|
-
<tuix-text
|
|
53
|
-
size="${TextSize.Field1}"
|
|
54
|
-
color="${TextVariant.PRIMARY}"
|
|
55
|
-
?dark="${this.dark}"
|
|
56
|
-
>
|
|
57
|
-
${option}
|
|
58
|
-
</tuix-text>
|
|
59
|
-
</slot>
|
|
60
|
-
</div>
|
|
61
|
-
</label>`;
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
return html `${this.options.map((option, index) => this._formatTemplate(option, index))}`;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
TuixRadioButton.styles = [
|
|
68
|
-
radioHostStyles,
|
|
69
|
-
radioButtonContainerStyles,
|
|
70
|
-
radioButtonStyles,
|
|
71
|
-
radioButtonInnerStyles,
|
|
72
|
-
radioButtonLabelStyles,
|
|
73
|
-
];
|
|
74
|
-
__decorate([
|
|
75
|
-
property({ type: Boolean, reflect: true })
|
|
76
|
-
], TuixRadioButton.prototype, "disabled", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
property({ type: Boolean, reflect: true })
|
|
79
|
-
], TuixRadioButton.prototype, "dark", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
property({ type: Boolean, reflect: true })
|
|
82
|
-
], TuixRadioButton.prototype, "error", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
property({ type: Array })
|
|
85
|
-
], TuixRadioButton.prototype, "options", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
property({ type: String })
|
|
88
|
-
], TuixRadioButton.prototype, "labelSide", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
property({ type: String })
|
|
91
|
-
], TuixRadioButton.prototype, "selectedOption", void 0);
|
|
92
|
-
TuixRadioButton = __decorate([
|
|
93
|
-
customElement('tuix-radio-button')
|
|
94
|
-
], TuixRadioButton);
|
|
95
|
-
export { TuixRadioButton };
|
|
96
|
-
//# sourceMappingURL=TuixRadioButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TuixRadioButton.js","sourceRoot":"","sources":["../../../src/tuix-radio-button/TuixRadioButton.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAa,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAIlC,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,UAAU;IAA/C;;QAUE,aAAQ,GAAG,KAAK,CAAC;QAGjB,SAAI,GAAG,KAAK,CAAC;QAGb,UAAK,GAAG,KAAK,CAAC;QAGd,YAAO,GAA4B,EAAE,CAAC;QAGtC,cAAS,GAAG,iBAAiB,CAAC,KAAK,CAAC;QAGpC,mBAAc,GAAiC,IAAI,CAAC;IAyDtD,CAAC;IAvDS,oBAAoB,CAAC,KAAiB;QAC5C,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,QAAQ,EAAE;YACxB,MAAM,EAAE;gBACN,KAAK,EAAG,KAAK,CAAC,MAA2B,CAAC,KAAK;aAChD;YACD,OAAO,EAAE,IAAI;SACd,CAAC,CACH,CAAC;IACJ,CAAC;IAEO,wBAAwB;QAC9B,OAAO;YACL,+BAA+B,EAAE,IAAI;YACrC,cAAc,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,QAAQ;YAC5C,mBAAmB,EAAE,IAAI,CAAC,SAAS,KAAK,iBAAiB,CAAC,IAAI;YAC9D,oBAAoB,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;SAC9C,CAAC;IACJ,CAAC;IAEO,eAAe,CAAC,MAA6B,EAAE,KAAa;QAClE,OAAO,IAAI,CAAA,iBAAiB,QAAQ,CAAC,IAAI,CAAC,wBAAwB,EAAE,CAAC;;;;;uBAKlD,IAAI,CAAC,QAAQ;oBAChB,MAAM;;sBAEJ,IAAI,CAAC,cAAc,KAAK,MAAM;qBAC/B,IAAI,CAAC,oBAAoB;;;;;;;4BAOlB,KAAK;;oBAEb,QAAQ,CAAC,MAAM;qBACd,WAAW,CAAC,OAAO;qBACnB,IAAI,CAAC,IAAI;;cAEhB,MAAM;;;;aAIP,CAAC;IACZ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAC/C,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,CACpC,EAAE,CAAC;IACN,CAAC;;AAhFM,sBAAM,GAAG;IACd,eAAe;IACf,0BAA0B;IAC1B,iBAAiB;IACjB,sBAAsB;IACtB,sBAAsB;CACvB,AANY,CAMX;AAGF;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAC9B;AAGb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC7B;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;gDACY;AAGtC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDACS;AAGpC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uDACyB;AAzBzC,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAkF3B;SAlFY,eAAe","sourcesContent":["import { LitElement, html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { ClassInfo, classMap } from 'lit/directives/class-map.js';\nimport { CheckboxLabelSide } from '../tuix-checkbox/enums/tuix-checkbox.enums';\nimport { TextSize, TextVariant } from '../tuix-text/enums/tuix-text.enums';\nimport {\n radioButtonContainerStyles,\n radioButtonInnerStyles,\n radioButtonLabelStyles,\n radioButtonStyles,\n radioHostStyles,\n} from './TuixRadioButton.styles';\nimport { TuixRadioButtonOption } from './interfaces/tuix-radio-button.interface';\n\n@customElement('tuix-radio-button')\nexport class TuixRadioButton extends LitElement {\n static styles = [\n radioHostStyles,\n radioButtonContainerStyles,\n radioButtonStyles,\n radioButtonInnerStyles,\n radioButtonLabelStyles,\n ];\n\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n @property({ type: Boolean, reflect: true })\n dark = false;\n\n @property({ type: Boolean, reflect: true })\n error = false;\n\n @property({ type: Array })\n options: TuixRadioButtonOption[] = [];\n\n @property({ type: String })\n labelSide = CheckboxLabelSide.RIGHT;\n\n @property({ type: String })\n selectedOption: TuixRadioButtonOption | null = null;\n\n private _onRadioButtonChange(event: InputEvent) {\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: {\n value: (event.target as HTMLInputElement).value,\n },\n bubbles: true,\n })\n );\n }\n\n private _getFullContainerClasses(): ClassInfo {\n return {\n 't-radio-button-full-container': true,\n 't-with-error': this.error && !this.disabled,\n 't-with-label-left': this.labelSide === CheckboxLabelSide.LEFT,\n 't-multiple-options': this.options.length > 1,\n };\n }\n\n private _formatTemplate(option: TuixRadioButtonOption, index: number) {\n return html`<label class=\"${classMap(this._getFullContainerClasses())}\">\n <div class=\"t-radio-button-container\">\n <input\n type=\"radio\"\n class=\"t-radio-button\"\n ?disabled=\"${this.disabled}\"\n .value=\"${option}\"\n name=\"tuix-radio-button\"\n ?checked=\"${this.selectedOption === option}\"\n @change=\"${this._onRadioButtonChange}\"\n />\n <div class=\"t-radio-button-checkmark\">\n <div class=\"t-radio-button-inner\"></div>\n </div>\n </div>\n <div class=\"t-radio-button-label\">\n <slot name=\"label-${index}\">\n <tuix-text\n size=\"${TextSize.Field1}\"\n color=\"${TextVariant.PRIMARY}\"\n ?dark=\"${this.dark}\"\n >\n ${option}\n </tuix-text>\n </slot>\n </div>\n </label>`;\n }\n\n render() {\n return html`${this.options.map((option, index) =>\n this._formatTemplate(option, index)\n )}`;\n }\n}\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const radioHostStyles: import("lit").CSSResult;
|
|
2
|
-
export declare const radioButtonContainerStyles: import("lit").CSSResult;
|
|
3
|
-
export declare const radioButtonStyles: import("lit").CSSResult;
|
|
4
|
-
export declare const radioButtonInnerStyles: import("lit").CSSResult;
|
|
5
|
-
export declare const radioButtonLabelStyles: import("lit").CSSResult;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { css, unsafeCSS } from 'lit';
|
|
2
|
-
import { hostStyles } from '../tuix-checkbox/TuixCheckbox.styles.js';
|
|
3
|
-
import { Palette } from '../utils/colors.js';
|
|
4
|
-
import { ScreenSizes } from '../utils/screenSizes.enum.js';
|
|
5
|
-
export const radioHostStyles = css `
|
|
6
|
-
${hostStyles}
|
|
7
|
-
:host {
|
|
8
|
-
--t-margin-between-radio-buttons: 1rem;
|
|
9
|
-
--t-radio-button-inner-color-disabled: ${unsafeCSS(Palette.PRIMARY_300)};
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
12
|
-
export const radioButtonContainerStyles = css `
|
|
13
|
-
.t-radio-button-full-container {
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: var(--t-label-right-default-justify, flex-start);
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
-webkit-user-select: none;
|
|
18
|
-
-moz-user-select: none;
|
|
19
|
-
-ms-user-select: none;
|
|
20
|
-
user-select: none;
|
|
21
|
-
}
|
|
22
|
-
:host([disabled]) .t-radio-button-full-container {
|
|
23
|
-
cursor: not-allowed;
|
|
24
|
-
}
|
|
25
|
-
.t-radio-button-container {
|
|
26
|
-
--t-radio-button-size-box: 1.5rem;
|
|
27
|
-
--t-radio-button-shadow-width: 2px;
|
|
28
|
-
display: block;
|
|
29
|
-
position: relative;
|
|
30
|
-
height: var(--t-radio-button-size-box);
|
|
31
|
-
width: var(--t-radio-button-size-box);
|
|
32
|
-
min-width: var(--t-radio-button-size-box);
|
|
33
|
-
}
|
|
34
|
-
.t-radio-button-container .t-radio-button {
|
|
35
|
-
position: absolute;
|
|
36
|
-
opacity: 0;
|
|
37
|
-
height: 0;
|
|
38
|
-
width: 0;
|
|
39
|
-
}
|
|
40
|
-
@media only screen and (max-width: ${ScreenSizes.MOBILE}px) {
|
|
41
|
-
.t-radio-button-container {
|
|
42
|
-
--t-radio-button-size-box: 1rem;
|
|
43
|
-
--t-radio-button-shadow-width: 1px;
|
|
44
|
-
margin-top: 1px;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
48
|
-
export const radioButtonStyles = css `
|
|
49
|
-
.t-radio-button-full-container.t-multiple-options {
|
|
50
|
-
margin-bottom: var(--t-margin-between-radio-buttons);
|
|
51
|
-
}
|
|
52
|
-
.t-radio-button-container .t-radio-button-checkmark {
|
|
53
|
-
position: absolute;
|
|
54
|
-
top: 0;
|
|
55
|
-
left: 0;
|
|
56
|
-
display: flex;
|
|
57
|
-
height: var(--t-radio-button-size-box);
|
|
58
|
-
width: var(--t-radio-button-size-box);
|
|
59
|
-
background-color: var(--t-bg-color-primary);
|
|
60
|
-
border: 1px solid var(--t-stroke-color-grey);
|
|
61
|
-
box-sizing: border-box;
|
|
62
|
-
border-radius: 50%;
|
|
63
|
-
}
|
|
64
|
-
.t-radio-button-container
|
|
65
|
-
.t-radio-button:checked
|
|
66
|
-
~ .t-radio-button-checkmark {
|
|
67
|
-
border: 1px solid var(--t-main-color-tuix);
|
|
68
|
-
}
|
|
69
|
-
.t-radio-button-container .t-radio-button:focus ~ .t-radio-button-checkmark {
|
|
70
|
-
box-shadow: 0 0 0px var(--t-radio-button-shadow-width)
|
|
71
|
-
var(--t-stroke-color-focus);
|
|
72
|
-
}
|
|
73
|
-
.t-radio-button-full-container:hover
|
|
74
|
-
.t-radio-button-container
|
|
75
|
-
.t-radio-button-checkmark {
|
|
76
|
-
border: 1px solid var(--t-main-color-tuix);
|
|
77
|
-
}
|
|
78
|
-
.t-radio-button-full-container.t-with-error
|
|
79
|
-
.t-radio-button-container
|
|
80
|
-
.t-radio-button-checkmark {
|
|
81
|
-
border: 1px solid var(--t-text-color-error);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.t-radio-button-container
|
|
85
|
-
.t-radio-button:disabled
|
|
86
|
-
~ .t-radio-button-checkmark {
|
|
87
|
-
background-color: var(--t-bg-color-disabled);
|
|
88
|
-
border: none;
|
|
89
|
-
box-shadow: none;
|
|
90
|
-
}
|
|
91
|
-
`;
|
|
92
|
-
export const radioButtonInnerStyles = css `
|
|
93
|
-
.t-radio-button-container .t-radio-button-checkmark .t-radio-button-inner {
|
|
94
|
-
background-color: var(--t-main-color-tuix);
|
|
95
|
-
margin: auto;
|
|
96
|
-
height: calc(var(--t-radio-button-size-box) / 2 - 2px);
|
|
97
|
-
width: calc(var(--t-radio-button-size-box) / 2 - 2px);
|
|
98
|
-
border-radius: 50%;
|
|
99
|
-
display: none;
|
|
100
|
-
}
|
|
101
|
-
.t-radio-button-container
|
|
102
|
-
.t-radio-button:checked
|
|
103
|
-
~ .t-radio-button-checkmark
|
|
104
|
-
.t-radio-button-inner {
|
|
105
|
-
display: block;
|
|
106
|
-
}
|
|
107
|
-
:host([error])
|
|
108
|
-
.t-radio-button-container
|
|
109
|
-
.t-radio-button-checkmark
|
|
110
|
-
.t-radio-button-inner {
|
|
111
|
-
background-color: var(--t-text-color-error);
|
|
112
|
-
}
|
|
113
|
-
:host([disabled])
|
|
114
|
-
.t-radio-button-container
|
|
115
|
-
.t-radio-button-checkmark
|
|
116
|
-
.t-radio-button-inner {
|
|
117
|
-
background-color: var(--t-radio-button-inner-color-disabled);
|
|
118
|
-
cursor: not-allowed;
|
|
119
|
-
}
|
|
120
|
-
`;
|
|
121
|
-
export const radioButtonLabelStyles = css `
|
|
122
|
-
.t-radio-button-label {
|
|
123
|
-
display: block;
|
|
124
|
-
color: var(--t-text-color-label);
|
|
125
|
-
margin-left: 0.625rem;
|
|
126
|
-
}
|
|
127
|
-
.t-radio-button-full-container.t-with-label-left {
|
|
128
|
-
flex-direction: row-reverse;
|
|
129
|
-
justify-content: var(--t-label-left-default-justify, space-between);
|
|
130
|
-
}
|
|
131
|
-
.t-radio-button-full-container.t-with-label-left .t-radio-button-label {
|
|
132
|
-
margin-right: 0.625rem;
|
|
133
|
-
margin-left: 0;
|
|
134
|
-
}
|
|
135
|
-
`;
|
|
136
|
-
//# sourceMappingURL=TuixRadioButton.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TuixRadioButton.styles.js","sourceRoot":"","sources":["../../../src/tuix-radio-button/TuixRadioButton.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;IAC9B,UAAU;;;6CAG+B,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC;;CAE1E,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA4BN,WAAW,CAAC,MAAM;;;;;;;CAOxD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CnC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BxC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAcxC,CAAC","sourcesContent":["import { css, unsafeCSS } from 'lit';\nimport { hostStyles } from '../tuix-checkbox/TuixCheckbox.styles';\nimport { Palette } from '../utils/colors';\nimport { ScreenSizes } from '../utils/screenSizes.enum';\n\nexport const radioHostStyles = css`\n ${hostStyles}\n :host {\n --t-margin-between-radio-buttons: 1rem;\n --t-radio-button-inner-color-disabled: ${unsafeCSS(Palette.PRIMARY_300)};\n }\n`;\n\nexport const radioButtonContainerStyles = css`\n .t-radio-button-full-container {\n display: flex;\n justify-content: var(--t-label-right-default-justify, flex-start);\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n :host([disabled]) .t-radio-button-full-container {\n cursor: not-allowed;\n }\n .t-radio-button-container {\n --t-radio-button-size-box: 1.5rem;\n --t-radio-button-shadow-width: 2px;\n display: block;\n position: relative;\n height: var(--t-radio-button-size-box);\n width: var(--t-radio-button-size-box);\n min-width: var(--t-radio-button-size-box);\n }\n .t-radio-button-container .t-radio-button {\n position: absolute;\n opacity: 0;\n height: 0;\n width: 0;\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .t-radio-button-container {\n --t-radio-button-size-box: 1rem;\n --t-radio-button-shadow-width: 1px;\n margin-top: 1px;\n }\n }\n`;\n\nexport const radioButtonStyles = css`\n .t-radio-button-full-container.t-multiple-options {\n margin-bottom: var(--t-margin-between-radio-buttons);\n }\n .t-radio-button-container .t-radio-button-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n height: var(--t-radio-button-size-box);\n width: var(--t-radio-button-size-box);\n background-color: var(--t-bg-color-primary);\n border: 1px solid var(--t-stroke-color-grey);\n box-sizing: border-box;\n border-radius: 50%;\n }\n .t-radio-button-container\n .t-radio-button:checked\n ~ .t-radio-button-checkmark {\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-radio-button-container .t-radio-button:focus ~ .t-radio-button-checkmark {\n box-shadow: 0 0 0px var(--t-radio-button-shadow-width)\n var(--t-stroke-color-focus);\n }\n .t-radio-button-full-container:hover\n .t-radio-button-container\n .t-radio-button-checkmark {\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-radio-button-full-container.t-with-error\n .t-radio-button-container\n .t-radio-button-checkmark {\n border: 1px solid var(--t-text-color-error);\n }\n\n .t-radio-button-container\n .t-radio-button:disabled\n ~ .t-radio-button-checkmark {\n background-color: var(--t-bg-color-disabled);\n border: none;\n box-shadow: none;\n }\n`;\n\nexport const radioButtonInnerStyles = css`\n .t-radio-button-container .t-radio-button-checkmark .t-radio-button-inner {\n background-color: var(--t-main-color-tuix);\n margin: auto;\n height: calc(var(--t-radio-button-size-box) / 2 - 2px);\n width: calc(var(--t-radio-button-size-box) / 2 - 2px);\n border-radius: 50%;\n display: none;\n }\n .t-radio-button-container\n .t-radio-button:checked\n ~ .t-radio-button-checkmark\n .t-radio-button-inner {\n display: block;\n }\n :host([error])\n .t-radio-button-container\n .t-radio-button-checkmark\n .t-radio-button-inner {\n background-color: var(--t-text-color-error);\n }\n :host([disabled])\n .t-radio-button-container\n .t-radio-button-checkmark\n .t-radio-button-inner {\n background-color: var(--t-radio-button-inner-color-disabled);\n cursor: not-allowed;\n }\n`;\n\nexport const radioButtonLabelStyles = css`\n .t-radio-button-label {\n display: block;\n color: var(--t-text-color-label);\n margin-left: 0.625rem;\n }\n .t-radio-button-full-container.t-with-label-left {\n flex-direction: row-reverse;\n justify-content: var(--t-label-left-default-justify, space-between);\n }\n .t-radio-button-full-container.t-with-label-left .t-radio-button-label {\n margin-right: 0.625rem;\n margin-left: 0;\n }\n`;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tuix-radio-button.interface.js","sourceRoot":"","sources":["../../../../src/tuix-radio-button/interfaces/tuix-radio-button.interface.ts"],"names":[],"mappings":"","sourcesContent":["import { DetailValue } from '../../utils/interfaces/detail-value.interface';\n\nexport type TuixRadioButtonOption = string | number;\n\nexport type CustomEventTuixRadioButton<\n T extends TuixRadioButtonOption = TuixRadioButtonOption\n> = CustomEvent<DetailValue<T>>;\n"]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import type { IDataTableHeader, ThreeDotsLoaderConfig } from './interfaces/tuix-table.interface.js';
|
|
3
|
-
export declare class TuixTable extends LitElement {
|
|
4
|
-
static styles: import("lit").CSSResult[];
|
|
5
|
-
paginated: boolean;
|
|
6
|
-
disableMobileTable: boolean;
|
|
7
|
-
showMobileTableInTablet: boolean;
|
|
8
|
-
loader?: ThreeDotsLoaderConfig;
|
|
9
|
-
data: Record<string, any>[];
|
|
10
|
-
headers: IDataTableHeader<any>[];
|
|
11
|
-
pageSizeOptions: number[];
|
|
12
|
-
totalItems?: number;
|
|
13
|
-
currentPage?: number;
|
|
14
|
-
currentSize?: number;
|
|
15
|
-
isLoadingData: boolean;
|
|
16
|
-
private _isTabletView;
|
|
17
|
-
private _isMobileView;
|
|
18
|
-
private _headerPercents;
|
|
19
|
-
private _mqTablet?;
|
|
20
|
-
private _mqMobile?;
|
|
21
|
-
private _onScreenSizeChange;
|
|
22
|
-
connectedCallback(): void;
|
|
23
|
-
disconnectedCallback(): void;
|
|
24
|
-
updated(changedProps: Map<string, any>): void;
|
|
25
|
-
private get _effectiveTotalItems();
|
|
26
|
-
private get _effectiveCurrentPage();
|
|
27
|
-
private get _effectivePageSize();
|
|
28
|
-
private get totalPages();
|
|
29
|
-
private get _paginationProps();
|
|
30
|
-
private _nextPage;
|
|
31
|
-
private _prevPage;
|
|
32
|
-
private _setPageSize;
|
|
33
|
-
private _computeHeaderPercents;
|
|
34
|
-
private _cellStyleString;
|
|
35
|
-
private _textVariantColor;
|
|
36
|
-
private _renderHeaderCells;
|
|
37
|
-
private _renderCell;
|
|
38
|
-
private _renderRows;
|
|
39
|
-
private _onPageSizeChange;
|
|
40
|
-
private _renderPageSizeOptions;
|
|
41
|
-
private _renderSpinner;
|
|
42
|
-
private _renderPagination;
|
|
43
|
-
private _renderTable;
|
|
44
|
-
private _renderCards;
|
|
45
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
46
|
-
}
|