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
package/package.json
CHANGED
|
@@ -1,50 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "tuix-webcomponents",
|
|
3
|
-
"description": "Webcomponent tuix-webcomponents following open-wc recommendations",
|
|
4
|
-
"license": "MIT",
|
|
5
2
|
"author": "tuix-webcomponents",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"exports": {
|
|
11
|
-
".": "./dist/src/index.js",
|
|
12
|
-
"./tuix-webcomponents.js": "./dist/src/index.js",
|
|
13
|
-
"./dist/assets/tuix-styles.css": "./dist/assets/tuix-styles.css"
|
|
3
|
+
"commitlint": {
|
|
4
|
+
"extends": [
|
|
5
|
+
"@commitlint/config-conventional"
|
|
6
|
+
]
|
|
14
7
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"prepare": "husky install",
|
|
20
|
-
"analyze": "cem analyze --litelement",
|
|
21
|
-
"start": "rm -rf build && tsc --outDir build && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
|
|
22
|
-
"build": "rm -rf dist && tsc -p tsconfig.publish.json && npm run analyze -- --exclude dist && npm run build:css && tsc-esm-fix dist",
|
|
23
|
-
"build:css": "mkdir -p dist/assets && npm run compileStylesJss --silent > dist/assets/tuix-styles.css",
|
|
24
|
-
"compileStylesJss": "ts-node --project tsconfig.scripts.json ./scripts/build-styles.ts",
|
|
25
|
-
"createWebbundle": "ts-node --project tsconfig.scripts.json ./scripts/build-webbundle.ts",
|
|
26
|
-
"prepublish": "rm -rf dist && tsc -p tsconfig.publish.json && npm run analyze -- --exclude dist",
|
|
27
|
-
"publish:local": "./scripts/publish-local-npm.sh",
|
|
28
|
-
"calculateNextVersion": "ts-node --project tsconfig.scripts.json ./scripts/detect-changes.ts",
|
|
29
|
-
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
|
|
30
|
-
"format": "prettier --write './**/*.{mjs,js,ts,tsx,vue}'",
|
|
31
|
-
"format:check": "prettier --check \"**/**/*.ts\" ",
|
|
32
|
-
"storybook": "rm -rf build && tsc --outDir build && npm run analyze -- --exclude dist && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds -c .storybook/server.mjs\"",
|
|
33
|
-
"storybook:build": "rm -rf build && tsc --outDir build && npm run analyze -- --exclude dist && build-storybook"
|
|
8
|
+
"customElements": "custom-elements.json",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"countries-list": "^3.0.6",
|
|
11
|
+
"lit": "^2.7.2"
|
|
34
12
|
},
|
|
13
|
+
"description": "Webcomponent tuix-webcomponents following open-wc recommendations",
|
|
35
14
|
"devDependencies": {
|
|
15
|
+
"@chromatic-com/storybook": "^4.1.1",
|
|
36
16
|
"@commitlint/cli": "^17.6.1",
|
|
37
17
|
"@commitlint/config-conventional": "^17.6.1",
|
|
38
18
|
"@custom-elements-manifest/analyzer": "^0.8.0",
|
|
39
|
-
"@
|
|
19
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
20
|
+
"@eslint/js": "^9.37.0",
|
|
21
|
+
"@storybook/addon-a11y": "^9.1.10",
|
|
22
|
+
"@storybook/addon-docs": "^9.1.10",
|
|
23
|
+
"@storybook/addon-vitest": "^9.1.10",
|
|
24
|
+
"@storybook/web-components-vite": "^9.1.10",
|
|
25
|
+
"@types/debug": "^4.1.12",
|
|
40
26
|
"@types/semver": "^7.5.0",
|
|
41
27
|
"@types/uuid": "^10.0.0",
|
|
42
28
|
"@typescript-eslint/eslint-plugin": "^5.59.1",
|
|
43
29
|
"@typescript-eslint/parser": "^5.59.1",
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
30
|
+
"@vitest/browser": "^3.2.4",
|
|
31
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
46
32
|
"commitlint": "^17.6.1",
|
|
47
|
-
"concurrently": "^8.0.1",
|
|
48
33
|
"esbuild": "0.19.6",
|
|
49
34
|
"eslint": "^8.39.0",
|
|
50
35
|
"eslint-config-prettier": "^8.8.0",
|
|
@@ -53,64 +38,103 @@
|
|
|
53
38
|
"eslint-plugin-n": "^15.7.0",
|
|
54
39
|
"eslint-plugin-prettier": "^4.2.1",
|
|
55
40
|
"eslint-plugin-promise": "^6.1.1",
|
|
41
|
+
"eslint-plugin-storybook": "^9.1.10",
|
|
56
42
|
"husky": "^8.0.3",
|
|
57
43
|
"jss": "^10.10.0",
|
|
58
44
|
"jss-plugin-global": "^10.10.0",
|
|
59
45
|
"lint-staged": "^13.2.1",
|
|
46
|
+
"playwright": "^1.55.1",
|
|
60
47
|
"prettier": "^2.8.8",
|
|
61
48
|
"semver": "^7.5.4",
|
|
62
|
-
"
|
|
49
|
+
"storybook": "^9.1.10",
|
|
50
|
+
"stylelint": "^16.25.0",
|
|
51
|
+
"stylelint-config-standard-scss": "^16.0.0",
|
|
63
52
|
"tslib": "^2.5.0",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
53
|
+
"tsx": "^4.20.6",
|
|
54
|
+
"typescript": "~5.9.3",
|
|
55
|
+
"uuid": "^10.0.0",
|
|
56
|
+
"vite": "^7.1.7",
|
|
57
|
+
"vitest": "^3.2.4"
|
|
66
58
|
},
|
|
67
|
-
"customElements": "custom-elements.json",
|
|
68
59
|
"eslintConfig": {
|
|
69
|
-
"parser": "@typescript-eslint/parser",
|
|
70
60
|
"extends": [
|
|
71
61
|
"@open-wc",
|
|
72
62
|
"prettier"
|
|
73
63
|
],
|
|
64
|
+
"parser": "@typescript-eslint/parser",
|
|
74
65
|
"plugins": [
|
|
75
66
|
"@typescript-eslint"
|
|
76
67
|
],
|
|
77
68
|
"rules": {
|
|
78
|
-
"no-unused-vars": "off",
|
|
79
69
|
"@typescript-eslint/no-unused-vars": [
|
|
80
70
|
"error"
|
|
81
71
|
],
|
|
82
|
-
"import/no-unresolved": "off",
|
|
83
72
|
"import/extensions": [
|
|
84
73
|
"error",
|
|
85
74
|
"always",
|
|
86
75
|
{
|
|
87
76
|
"ignorePackages": true
|
|
88
77
|
}
|
|
89
|
-
]
|
|
78
|
+
],
|
|
79
|
+
"import/no-unresolved": "off",
|
|
80
|
+
"no-unused-vars": "off"
|
|
90
81
|
}
|
|
91
82
|
},
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
83
|
+
"exports": {
|
|
84
|
+
".": "./dist/src/index.js",
|
|
85
|
+
"./dist/assets/tuix-styles.css": "./dist/assets/tuix-styles.css",
|
|
86
|
+
"./tuix-webcomponents.js": "./dist/src/index.js"
|
|
95
87
|
},
|
|
88
|
+
"files": [
|
|
89
|
+
"dist"
|
|
90
|
+
],
|
|
96
91
|
"husky": {
|
|
97
92
|
"hooks": {
|
|
98
93
|
"pre-commit": "lint-staged"
|
|
99
94
|
}
|
|
100
95
|
},
|
|
96
|
+
"license": "MIT",
|
|
101
97
|
"lint-staged": {
|
|
98
|
+
"*.scss": [
|
|
99
|
+
"stylelint --fix",
|
|
100
|
+
"prettier --write"
|
|
101
|
+
],
|
|
102
|
+
"*.{gql,graphql,mjs,js,jsx,ts,tsx,json}": [
|
|
103
|
+
"eslint --quiet --fix"
|
|
104
|
+
],
|
|
105
|
+
"*.{tf,tfvars,tftest.hcl}": [
|
|
106
|
+
"terraform fmt -recursive"
|
|
107
|
+
],
|
|
102
108
|
"*.{ts,tsx}": [
|
|
103
109
|
"npm run format",
|
|
104
110
|
"npm run lint"
|
|
105
111
|
]
|
|
106
112
|
},
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
113
|
+
"main": "dist/src/index.js",
|
|
114
|
+
"module": "dist/src/index.js",
|
|
115
|
+
"name": "tuix-webcomponents",
|
|
116
|
+
"prettier": {
|
|
117
|
+
"arrowParens": "avoid",
|
|
118
|
+
"singleQuote": true
|
|
111
119
|
},
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
|
|
120
|
+
"scripts": {
|
|
121
|
+
"analyze": "cem analyze --litelement",
|
|
122
|
+
"build": "rm -rf dist && tsc -p tsconfig.publish.json && npm run analyze -- --exclude dist && npm run build:css",
|
|
123
|
+
"build:css": "mkdir -p dist/assets && npm run compileStylesJss --silent -- dist/assets/tuix-styles.css",
|
|
124
|
+
"calculateNextVersion": "tsx ./scripts/detect-changes.ts",
|
|
125
|
+
"compileStylesJss": "tsx ./scripts/build-styles.ts",
|
|
126
|
+
"createWebbundle": "tsx ./scripts/build-webbundle.ts",
|
|
127
|
+
"format": "prettier --write './**/*.{mjs,js,ts,tsx,vue}'",
|
|
128
|
+
"format:check": "prettier --check \"**/**/*.ts\" ",
|
|
129
|
+
"lint": "eslint './src/**/*.{ts,tsx}' --fix",
|
|
130
|
+
"prepare": "husky install",
|
|
131
|
+
"prepublish": "rm -rf dist && tsc -p tsconfig.publish.json && npm run analyze -- --exclude dist",
|
|
132
|
+
"publish:local": "./scripts/publish-local-npm.sh",
|
|
133
|
+
"start": "rm -rf build && tsc --outDir build && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
|
|
134
|
+
"storybook": "rm -rf build && npm run analyze -- --exclude dist && storybook dev -p 6006",
|
|
135
|
+
"storybook:build": "rm -rf dist && npm run analyze -- --exclude dist && storybook build -o dist",
|
|
136
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
137
|
+
},
|
|
138
|
+
"type": "module",
|
|
139
|
+
"version": "0.64.0"
|
|
116
140
|
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--tuix-light-color-primary-50: #F5F5FA;
|
|
3
|
-
--tuix-light-color-primary-100: #EBEAF4;
|
|
4
|
-
--tuix-light-color-primary-200: #D1D1E6;
|
|
5
|
-
--tuix-light-color-primary-300: #A8A9D1;
|
|
6
|
-
--tuix-light-color-primary-400: #7A7CB6;
|
|
7
|
-
--tuix-light-color-main: #585A9D;
|
|
8
|
-
--tuix-light-color-dark-main: #33355B;
|
|
9
|
-
--tuix-light-color-primary-600: #454584;
|
|
10
|
-
--tuix-light-color-primary-700: #3A396B;
|
|
11
|
-
--tuix-light-color-primary-800: #32325A;
|
|
12
|
-
--tuix-light-color-primary-900: #2E2D4D;
|
|
13
|
-
--tuix-light-color-primary-950: #1F1E33;
|
|
14
|
-
--tuix-light-color-secondary: #BBADFF;
|
|
15
|
-
--tuix-light-color-white: #FFFFFF;
|
|
16
|
-
--tuix-light-color-black: #121212;
|
|
17
|
-
--tuix-light-color-neutral-200: #C9C8D3;
|
|
18
|
-
--tuix-light-color-neutral-600: #8A8894;
|
|
19
|
-
--tuix-light-color-success: #439F6E;
|
|
20
|
-
--tuix-light-color-success-50: #F1F9F5;
|
|
21
|
-
--tuix-light-color-validation: #FFB82E;
|
|
22
|
-
--tuix-light-color-validation-50: #FFFBF4;
|
|
23
|
-
--tuix-light-color-validation-200: #FFEAC1;
|
|
24
|
-
--tuix-light-color-error: #F93232;
|
|
25
|
-
--tuix-light-color-error-50: #FFF5F5;
|
|
26
|
-
--tuix-light-color-error-200: #FFD8D8;
|
|
27
|
-
--tuix-light-color-section-bg: #FAFAFA;
|
|
28
|
-
--tuix-light-color-shadow: rgba(66, 79, 101, 0.16);
|
|
29
|
-
--tuix-dark-color-primary-50: #F5F5FA;
|
|
30
|
-
--tuix-dark-color-primary-100: #EBEAF4;
|
|
31
|
-
--tuix-dark-color-primary-200: #D1D1E6;
|
|
32
|
-
--tuix-dark-color-primary-300: #A8A9D1;
|
|
33
|
-
--tuix-dark-color-main: #7A7CB6;
|
|
34
|
-
--tuix-dark-color-dark-main: #33355B;
|
|
35
|
-
--tuix-dark-color-primary-600: #454584;
|
|
36
|
-
--tuix-dark-color-primary-700: #3A396B;
|
|
37
|
-
--tuix-dark-color-primary-800: #32325A;
|
|
38
|
-
--tuix-dark-color-primary-900: #2E2D4D;
|
|
39
|
-
--tuix-dark-color-primary-950: #1F1E33;
|
|
40
|
-
--tuix-dark-color-secondary: #BBADFF;
|
|
41
|
-
--tuix-dark-color-white: rgba(255, 255, 255, 0.87);
|
|
42
|
-
--tuix-dark-color-black: #121212;
|
|
43
|
-
--tuix-dark-color-neutral-200: #C9C8D3;
|
|
44
|
-
--tuix-dark-color-neutral-600: rgba(255, 255, 255, 0.60);
|
|
45
|
-
--tuix-dark-color-success: #82C5A9;
|
|
46
|
-
--tuix-dark-color-success-50: rgba(241, 249, 245, 0.30);
|
|
47
|
-
--tuix-dark-color-validation: #FFD489;
|
|
48
|
-
--tuix-dark-color-validation-50: rgba(255, 212, 137, 0.20);
|
|
49
|
-
--tuix-dark-color-validation-200: #FFEAC1;
|
|
50
|
-
--tuix-dark-color-error: #FF8486;
|
|
51
|
-
--tuix-dark-color-error-50: rgba(255, 132, 134, 0.20);
|
|
52
|
-
--tuix-dark-color-error-200: #FFD8D8;
|
|
53
|
-
--tuix-dark-color-section-bg: #0E0E0E;
|
|
54
|
-
--tuix-dark-color-elevation-1: #17171A;
|
|
55
|
-
--tuix-dark-color-elevation-2: #1A1A1F;
|
|
56
|
-
--tuix-dark-color-elevation-3: #1D1E24;
|
|
57
|
-
--tuix-dark-color-elevation-4: #212128;
|
|
58
|
-
}
|
package/dist/src/index.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export { CustomEventTuixButton } from './tuix-button/interfaces/tuix-button.interface.js';
|
|
2
|
-
export { CustomEventTuixCheckbox, DetailValueCheckbox, } from './tuix-checkbox/interfaces/tuix-checkbox.interface.js';
|
|
3
|
-
export { CustomEventTuixDropdownInput, CustomEventTuixDropdownSelect, TuixDropdownOption, TuixDropdownObjectOption, TuixDropdownPlainOption, } from './tuix-dropdown/interfaces/tuix-dropdown.interface.js';
|
|
4
|
-
export { CustomEventTuixInput } from './tuix-input/interfaces/tuix-input.interface.js';
|
|
5
|
-
export { CustomEventTuixRadioButton } from './tuix-radio-button/interfaces/tuix-radio-button.interface.js';
|
|
6
|
-
export { CustomEventTuixToggle } from './tuix-toggle-button/interfaces/tuix-toggle.interface.js';
|
|
7
|
-
export { DetailValue } from './utils/interfaces/detail-value.interface.js';
|
|
8
|
-
export { TuixText } from './tuix-text/TuixText.js';
|
|
9
|
-
export { TuixIcon } from './tuix-icon/TuixIcon.js';
|
|
10
|
-
export { TuixButton } from './tuix-button/TuixButton.js';
|
|
11
|
-
export { TuixPaper } from './tuix-paper/TuixPaper.js';
|
|
12
|
-
export { TuixIconButton } from './tuix-icon-button/TuixIconButton.js';
|
|
13
|
-
export { TuixLink } from './tuix-link/TuixLink.js';
|
|
14
|
-
export { TuixInput } from './tuix-input/TuixInput.js';
|
|
15
|
-
export { TuixDropdown } from './tuix-dropdown/TuixDropdown.js';
|
|
16
|
-
export { TuixCheckbox } from './tuix-checkbox/TuixCheckbox.js';
|
|
17
|
-
export { TuixRadioButton } from './tuix-radio-button/TuixRadioButton.js';
|
|
18
|
-
export { TuixToggleButton } from './tuix-toggle-button/TuixToggleButton.js';
|
|
19
|
-
export { TuixTable } from './tuix-table/TuixTable.js';
|
|
20
|
-
export { IDataTableHeader, TuixTableElement, } from './tuix-table/interfaces/tuix-table.interface.js';
|
|
21
|
-
export { TuixToast } from './tuix-toast/TuixToast.js';
|
|
22
|
-
export { TuixModal } from './tuix-modal/TuixModal.js';
|
|
23
|
-
export { ToastType } from './tuix-toast/enums/tuix-toast.enums.js';
|
|
24
|
-
export { TextSize, TextVariant } from './tuix-text/enums/tuix-text.enums.js';
|
|
25
|
-
export { MainVariant } from './utils/mainVariant.enum.js';
|
|
26
|
-
export { CheckboxLabelSide } from './tuix-checkbox/enums/tuix-checkbox.enums.js';
|
|
27
|
-
export { PaperElevation } from './tuix-paper/enums/tuix-paper.enum.js';
|
|
28
|
-
export { LinkTarget } from './tuix-link/enums/linkTarget.enum.js';
|
|
29
|
-
export { IconName, IconSizeVariant, } from './tuix-icon/enums/tuix-icon.enums.js';
|
|
30
|
-
export { DescriptionType, InputType, } from './tuix-input/enums/tuix-input.enums.js';
|
|
31
|
-
export { Palette } from './utils/colors.js';
|
|
32
|
-
export { DarkPalette } from './utils/darkColors.js';
|
|
33
|
-
export { DropdownType } from './tuix-dropdown/enums/tuix-dropdown.enums.js';
|
|
34
|
-
export { BorderRadiusPaper } from './tuix-paper/enums/tuix-paper.enum.js';
|
|
35
|
-
export { ScreenSizes } from './utils/screenSizes.enum.js';
|
|
36
|
-
export declare function loadFonts(): void;
|
package/dist/src/index.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export { TuixText } from './tuix-text/TuixText.js';
|
|
2
|
-
export { TuixIcon } from './tuix-icon/TuixIcon.js';
|
|
3
|
-
export { TuixButton } from './tuix-button/TuixButton.js';
|
|
4
|
-
export { TuixPaper } from './tuix-paper/TuixPaper.js';
|
|
5
|
-
export { TuixIconButton } from './tuix-icon-button/TuixIconButton.js';
|
|
6
|
-
export { TuixLink } from './tuix-link/TuixLink.js';
|
|
7
|
-
export { TuixInput } from './tuix-input/TuixInput.js';
|
|
8
|
-
export { TuixDropdown } from './tuix-dropdown/TuixDropdown.js';
|
|
9
|
-
export { TuixCheckbox } from './tuix-checkbox/TuixCheckbox.js';
|
|
10
|
-
export { TuixRadioButton } from './tuix-radio-button/TuixRadioButton.js';
|
|
11
|
-
export { TuixToggleButton } from './tuix-toggle-button/TuixToggleButton.js';
|
|
12
|
-
export { TuixTable } from './tuix-table/TuixTable.js';
|
|
13
|
-
export { TuixToast } from './tuix-toast/TuixToast.js';
|
|
14
|
-
export { TuixModal } from './tuix-modal/TuixModal.js';
|
|
15
|
-
export { ToastType } from './tuix-toast/enums/tuix-toast.enums.js';
|
|
16
|
-
export { TextSize, TextVariant } from './tuix-text/enums/tuix-text.enums.js';
|
|
17
|
-
export { MainVariant } from './utils/mainVariant.enum.js';
|
|
18
|
-
export { CheckboxLabelSide } from './tuix-checkbox/enums/tuix-checkbox.enums.js';
|
|
19
|
-
export { PaperElevation } from './tuix-paper/enums/tuix-paper.enum.js';
|
|
20
|
-
export { LinkTarget } from './tuix-link/enums/linkTarget.enum.js';
|
|
21
|
-
export { IconName, IconSizeVariant, } from './tuix-icon/enums/tuix-icon.enums.js';
|
|
22
|
-
export { DescriptionType, InputType, } from './tuix-input/enums/tuix-input.enums.js';
|
|
23
|
-
export { Palette } from './utils/colors.js';
|
|
24
|
-
export { DarkPalette } from './utils/darkColors.js';
|
|
25
|
-
export { DropdownType } from './tuix-dropdown/enums/tuix-dropdown.enums.js';
|
|
26
|
-
export { BorderRadiusPaper } from './tuix-paper/enums/tuix-paper.enum.js';
|
|
27
|
-
export { ScreenSizes } from './utils/screenSizes.enum.js';
|
|
28
|
-
export function loadFonts() {
|
|
29
|
-
const link1 = document.createElement('link');
|
|
30
|
-
link1.rel = 'preconnect';
|
|
31
|
-
link1.href = 'https://fonts.googleapis.com';
|
|
32
|
-
const link2 = document.createElement('link');
|
|
33
|
-
link2.rel = 'preconnect';
|
|
34
|
-
link2.href = 'https://fonts.gstatic.com';
|
|
35
|
-
const link3 = document.createElement('link');
|
|
36
|
-
link3.rel = 'stylesheet';
|
|
37
|
-
link3.href =
|
|
38
|
-
'https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap';
|
|
39
|
-
document.head.appendChild(link1);
|
|
40
|
-
document.head.appendChild(link2);
|
|
41
|
-
document.head.appendChild(link3);
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAKtD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,EACL,QAAQ,EACR,eAAe,GAChB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,eAAe,EACf,SAAS,GACV,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,UAAU,SAAS;IACvB,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,KAAK,CAAC,GAAG,GAAG,YAAY,CAAC;IACzB,KAAK,CAAC,IAAI,GAAG,8BAA8B,CAAC;IAC5C,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,KAAK,CAAC,GAAG,GAAG,YAAY,CAAC;IACzB,KAAK,CAAC,IAAI,GAAG,2BAA2B,CAAC;IACzC,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,KAAK,CAAC,GAAG,GAAG,YAAY,CAAC;IACzB,KAAK,CAAC,IAAI;QACR,2JAA2J,CAAC;IAC9J,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACjC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACjC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACnC,CAAC","sourcesContent":["export { CustomEventTuixButton } from './tuix-button/interfaces/tuix-button.interface.js';\nexport {\n CustomEventTuixCheckbox,\n DetailValueCheckbox,\n} from './tuix-checkbox/interfaces/tuix-checkbox.interface.js';\nexport {\n CustomEventTuixDropdownInput,\n CustomEventTuixDropdownSelect,\n TuixDropdownOption,\n TuixDropdownObjectOption,\n TuixDropdownPlainOption,\n} from './tuix-dropdown/interfaces/tuix-dropdown.interface.js';\nexport { CustomEventTuixInput } from './tuix-input/interfaces/tuix-input.interface.js';\nexport { CustomEventTuixRadioButton } from './tuix-radio-button/interfaces/tuix-radio-button.interface.js';\nexport { CustomEventTuixToggle } from './tuix-toggle-button/interfaces/tuix-toggle.interface.js';\nexport { DetailValue } from './utils/interfaces/detail-value.interface.js';\nexport { TuixText } from './tuix-text/TuixText.js';\nexport { TuixIcon } from './tuix-icon/TuixIcon.js';\nexport { TuixButton } from './tuix-button/TuixButton.js';\nexport { TuixPaper } from './tuix-paper/TuixPaper.js';\nexport { TuixIconButton } from './tuix-icon-button/TuixIconButton.js';\nexport { TuixLink } from './tuix-link/TuixLink.js';\nexport { TuixInput } from './tuix-input/TuixInput.js';\nexport { TuixDropdown } from './tuix-dropdown/TuixDropdown.js';\nexport { TuixCheckbox } from './tuix-checkbox/TuixCheckbox.js';\nexport { TuixRadioButton } from './tuix-radio-button/TuixRadioButton.js';\nexport { TuixToggleButton } from './tuix-toggle-button/TuixToggleButton.js';\nexport { TuixTable } from './tuix-table/TuixTable.js';\nexport {\n IDataTableHeader,\n TuixTableElement,\n} from './tuix-table/interfaces/tuix-table.interface.js';\nexport { TuixToast } from './tuix-toast/TuixToast.js';\nexport { TuixModal } from './tuix-modal/TuixModal.js';\nexport { ToastType } from './tuix-toast/enums/tuix-toast.enums.js';\nexport { TextSize, TextVariant } from './tuix-text/enums/tuix-text.enums.js';\nexport { MainVariant } from './utils/mainVariant.enum.js';\nexport { CheckboxLabelSide } from './tuix-checkbox/enums/tuix-checkbox.enums.js';\nexport { PaperElevation } from './tuix-paper/enums/tuix-paper.enum.js';\nexport { LinkTarget } from './tuix-link/enums/linkTarget.enum.js';\nexport {\n IconName,\n IconSizeVariant,\n} from './tuix-icon/enums/tuix-icon.enums.js';\nexport {\n DescriptionType,\n InputType,\n} from './tuix-input/enums/tuix-input.enums.js';\nexport { Palette } from './utils/colors.js';\nexport { DarkPalette } from './utils/darkColors.js';\nexport { DropdownType } from './tuix-dropdown/enums/tuix-dropdown.enums.js';\nexport { BorderRadiusPaper } from './tuix-paper/enums/tuix-paper.enum.js';\nexport { ScreenSizes } from './utils/screenSizes.enum.js';\n\nexport function loadFonts() {\n const link1 = document.createElement('link');\n link1.rel = 'preconnect';\n link1.href = 'https://fonts.googleapis.com';\n const link2 = document.createElement('link');\n link2.rel = 'preconnect';\n link2.href = 'https://fonts.gstatic.com';\n const link3 = document.createElement('link');\n link3.rel = 'stylesheet';\n link3.href =\n 'https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap';\n document.head.appendChild(link1);\n document.head.appendChild(link2);\n document.head.appendChild(link3);\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
-
import { MainVariant } from '../utils/mainVariant.enum.js';
|
|
3
|
-
import { IconName, IconSizeVariant } from '../tuix-icon/enums/tuix-icon.enums.js';
|
|
4
|
-
import '../tuix-icon/TuixIcon.js';
|
|
5
|
-
export declare abstract class TuixBaseButton extends LitElement {
|
|
6
|
-
variant: MainVariant;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
dark: boolean;
|
|
9
|
-
protected iconColor: string;
|
|
10
|
-
updated(): void;
|
|
11
|
-
protected _getTextColor(): string;
|
|
12
|
-
protected abstract _updateIconColor(): void;
|
|
13
|
-
protected _handleClick(): void;
|
|
14
|
-
protected _iconTemplate(iconName: IconName, iconSize: IconSizeVariant): TemplateResult;
|
|
15
|
-
protected abstract _buttonContent(): TemplateResult;
|
|
16
|
-
protected render(): TemplateResult;
|
|
17
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { LitElement, html } from 'lit';
|
|
3
|
-
import { MainVariant } from '../utils/mainVariant.enum.js';
|
|
4
|
-
import { property, state } from 'lit/decorators.js';
|
|
5
|
-
import { buttonTextColor } from './enums/tuix-button.enums.js';
|
|
6
|
-
import '../tuix-icon/TuixIcon.js';
|
|
7
|
-
export class TuixBaseButton extends LitElement {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.variant = MainVariant.PRIMARY;
|
|
11
|
-
this.disabled = false;
|
|
12
|
-
this.dark = false;
|
|
13
|
-
this.iconColor = '';
|
|
14
|
-
}
|
|
15
|
-
updated() {
|
|
16
|
-
this._updateIconColor();
|
|
17
|
-
}
|
|
18
|
-
_getTextColor() {
|
|
19
|
-
var _a;
|
|
20
|
-
const element = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.button');
|
|
21
|
-
if (!element)
|
|
22
|
-
return buttonTextColor[this.variant];
|
|
23
|
-
const computedStyle = getComputedStyle(element);
|
|
24
|
-
return computedStyle.color;
|
|
25
|
-
}
|
|
26
|
-
_handleClick() {
|
|
27
|
-
this.dispatchEvent(new CustomEvent('customClick', { bubbles: true }));
|
|
28
|
-
}
|
|
29
|
-
_iconTemplate(iconName, iconSize) {
|
|
30
|
-
this._updateIconColor();
|
|
31
|
-
return html `<tuix-icon
|
|
32
|
-
size="${iconSize}"
|
|
33
|
-
name="${iconName}"
|
|
34
|
-
color="${this.iconColor}"
|
|
35
|
-
></tuix-icon>`;
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
return html `<button
|
|
39
|
-
@click=${this._handleClick}
|
|
40
|
-
@mouseenter=${this._updateIconColor}
|
|
41
|
-
@mouseleave=${this._updateIconColor}
|
|
42
|
-
@blur=${this._updateIconColor}
|
|
43
|
-
?disabled="${this.disabled}"
|
|
44
|
-
class="button"
|
|
45
|
-
>
|
|
46
|
-
${this._buttonContent()}
|
|
47
|
-
</button>`;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
__decorate([
|
|
51
|
-
property({ type: MainVariant, reflect: true })
|
|
52
|
-
], TuixBaseButton.prototype, "variant", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
property({ type: Boolean, reflect: true })
|
|
55
|
-
], TuixBaseButton.prototype, "disabled", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
property({ type: Boolean, reflect: true })
|
|
58
|
-
], TuixBaseButton.prototype, "dark", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
state()
|
|
61
|
-
], TuixBaseButton.prototype, "iconColor", void 0);
|
|
62
|
-
//# sourceMappingURL=TuixBaseButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TuixBaseButton.js","sourceRoot":"","sources":["../../../src/tuix-button/TuixBaseButton.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAkB,IAAI,EAAE,MAAM,KAAK,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,0BAA0B,CAAC;AAElC,MAAM,OAAgB,cAAe,SAAQ,UAAU;IAAvD;;QAEE,YAAO,GAAG,WAAW,CAAC,OAAO,CAAC;QAG9B,aAAQ,GAAG,KAAK,CAAC;QAGjB,SAAI,GAAG,KAAK,CAAC;QAGH,cAAS,GAAG,EAAE,CAAC;IA6C3B,CAAC;IA3CC,OAAO;QACL,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAES,aAAa;;QACrB,MAAM,OAAO,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QAC1D,IAAI,CAAC,OAAO;YAAE,OAAO,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnD,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAChD,OAAO,aAAa,CAAC,KAAK,CAAC;IAC7B,CAAC;IAIS,YAAY;QACpB,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACxE,CAAC;IAES,aAAa,CACrB,QAAkB,EAClB,QAAyB;QAEzB,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACxB,OAAO,IAAI,CAAA;cACD,QAAQ;cACR,QAAQ;eACP,IAAI,CAAC,SAAS;kBACX,CAAC;IACjB,CAAC;IAIS,MAAM;QACd,OAAO,IAAI,CAAA;eACA,IAAI,CAAC,YAAY;oBACZ,IAAI,CAAC,gBAAgB;oBACrB,IAAI,CAAC,gBAAgB;cAC3B,IAAI,CAAC,gBAAgB;mBAChB,IAAI,CAAC,QAAQ;;;QAGxB,IAAI,CAAC,cAAc,EAAE;cACf,CAAC;IACb,CAAC;CACF;AAtDC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CACjB;AAG9B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC9B;AAGH;IADT,KAAK,EAAE;iDACiB","sourcesContent":["import { LitElement, TemplateResult, html } from 'lit';\nimport { MainVariant } from '../utils/mainVariant.enum';\nimport { property, state } from 'lit/decorators.js';\nimport { buttonTextColor } from './enums/tuix-button.enums';\nimport { IconName, IconSizeVariant } from '../tuix-icon/enums/tuix-icon.enums';\nimport '../tuix-icon/TuixIcon.js';\n\nexport abstract class TuixBaseButton extends LitElement {\n @property({ type: MainVariant, reflect: true })\n variant = MainVariant.PRIMARY;\n\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n @property({ type: Boolean, reflect: true })\n dark = false;\n\n @state()\n protected iconColor = '';\n\n updated() {\n this._updateIconColor();\n }\n\n protected _getTextColor() {\n const element = this.shadowRoot?.querySelector('.button');\n if (!element) return buttonTextColor[this.variant];\n const computedStyle = getComputedStyle(element);\n return computedStyle.color;\n }\n\n protected abstract _updateIconColor(): void;\n\n protected _handleClick() {\n this.dispatchEvent(new CustomEvent('customClick', { bubbles: true }));\n }\n\n protected _iconTemplate(\n iconName: IconName,\n iconSize: IconSizeVariant\n ): TemplateResult {\n this._updateIconColor();\n return html`<tuix-icon\n size=\"${iconSize}\"\n name=\"${iconName}\"\n color=\"${this.iconColor}\"\n ></tuix-icon>`;\n }\n\n protected abstract _buttonContent(): TemplateResult;\n\n protected render(): TemplateResult {\n return html`<button\n @click=${this._handleClick}\n @mouseenter=${this._updateIconColor}\n @mouseleave=${this._updateIconColor}\n @blur=${this._updateIconColor}\n ?disabled=\"${this.disabled}\"\n class=\"button\"\n >\n ${this._buttonContent()}\n </button>`;\n }\n}\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TemplateResult } from 'lit';
|
|
2
|
-
import { IconName } from '../tuix-icon/enums/tuix-icon.enums.js';
|
|
3
|
-
import { TuixBaseButton } from './TuixBaseButton.js';
|
|
4
|
-
export declare class TuixButton extends TuixBaseButton {
|
|
5
|
-
static styles: import("lit").CSSResult[];
|
|
6
|
-
full: boolean;
|
|
7
|
-
iconRight?: IconName;
|
|
8
|
-
iconLeft?: IconName;
|
|
9
|
-
protected _updateIconColor(): void;
|
|
10
|
-
protected _buttonContent(): TemplateResult;
|
|
11
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { css, html, nothing } from 'lit';
|
|
3
|
-
import { IconName, IconSizeVariant } from '../tuix-icon/enums/tuix-icon.enums.js';
|
|
4
|
-
import { buttonSizeStyles, buttonColorStyles, hostButtonStyles, } from './TuixButton.styles.js';
|
|
5
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
6
|
-
import { ScreenSizes } from '../utils/screenSizes.enum.js';
|
|
7
|
-
import { TuixBaseButton } from './TuixBaseButton.js';
|
|
8
|
-
let TuixButton = class TuixButton extends TuixBaseButton {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.full = false;
|
|
12
|
-
}
|
|
13
|
-
_updateIconColor() {
|
|
14
|
-
if (!this.iconLeft && !this.iconRight)
|
|
15
|
-
return;
|
|
16
|
-
this.iconColor = this._getTextColor();
|
|
17
|
-
}
|
|
18
|
-
_buttonContent() {
|
|
19
|
-
let iconSize = IconSizeVariant.MEDIUM;
|
|
20
|
-
if (screen.width <= ScreenSizes.TABLET) {
|
|
21
|
-
iconSize = IconSizeVariant.SMALL;
|
|
22
|
-
}
|
|
23
|
-
return html ` <div class="container">
|
|
24
|
-
${this.iconLeft ? this._iconTemplate(this.iconLeft, iconSize) : nothing}
|
|
25
|
-
<slot></slot>
|
|
26
|
-
${this.iconRight ? this._iconTemplate(this.iconRight, iconSize) : nothing}
|
|
27
|
-
</div>`;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
TuixButton.styles = [
|
|
31
|
-
css `
|
|
32
|
-
:host([full]) .button {
|
|
33
|
-
width: 100%;
|
|
34
|
-
}
|
|
35
|
-
.button {
|
|
36
|
-
padding: 16px 32px;
|
|
37
|
-
border-radius: 4px;
|
|
38
|
-
border: none;
|
|
39
|
-
font-family: 'Rubik', sans-serif;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@media only screen and (max-width: ${ScreenSizes.TABLET}px) {
|
|
43
|
-
.button {
|
|
44
|
-
padding: 14px 32px;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@media only screen and (max-width: ${ScreenSizes.MOBILE}px) {
|
|
49
|
-
.button {
|
|
50
|
-
padding: 12px 24px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.container {
|
|
55
|
-
display: flex;
|
|
56
|
-
flex-direction: row;
|
|
57
|
-
justify-content: center;
|
|
58
|
-
align-items: center;
|
|
59
|
-
gap: 8px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@media only screen and (max-width: ${ScreenSizes.MOBILE}px) {
|
|
63
|
-
.container {
|
|
64
|
-
gap: 6px;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
`,
|
|
68
|
-
hostButtonStyles,
|
|
69
|
-
buttonColorStyles,
|
|
70
|
-
buttonSizeStyles,
|
|
71
|
-
];
|
|
72
|
-
__decorate([
|
|
73
|
-
property({ type: Boolean, reflect: true })
|
|
74
|
-
], TuixButton.prototype, "full", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
property({ type: IconName })
|
|
77
|
-
], TuixButton.prototype, "iconRight", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
property({ type: IconName })
|
|
80
|
-
], TuixButton.prototype, "iconLeft", void 0);
|
|
81
|
-
TuixButton = __decorate([
|
|
82
|
-
customElement('tuix-button')
|
|
83
|
-
], TuixButton);
|
|
84
|
-
export { TuixButton };
|
|
85
|
-
//# sourceMappingURL=TuixButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TuixButton.js","sourceRoot":"","sources":["../../../src/tuix-button/TuixButton.ts"],"names":[],"mappings":";AAAA,OAAO,EAAkB,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,IAAa,UAAU,GAAvB,MAAa,UAAW,SAAQ,cAAc;IAA9C;;QA6CE,SAAI,GAAG,KAAK,CAAC;IAyBf,CAAC;IAjBoB,gBAAgB;QACjC,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,SAAS;YAAE,OAAO;QAC9C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;IACxC,CAAC;IAEkB,cAAc;QAC/B,IAAI,QAAQ,GAAG,eAAe,CAAC,MAAM,CAAC;QAEtC,IAAI,MAAM,CAAC,KAAK,IAAI,WAAW,CAAC,MAAM,EAAE;YACtC,QAAQ,GAAG,eAAe,CAAC,KAAK,CAAC;SAClC;QACD,OAAO,IAAI,CAAA;QACP,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO;;QAErE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO;WACpE,CAAC;IACV,CAAC;;AApEM,iBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;2CAWoC,WAAW,CAAC,MAAM;;;;;;2CAMlB,WAAW,CAAC,MAAM;;;;;;;;;;;;;;2CAclB,WAAW,CAAC,MAAM;;;;;KAKxD;IACD,gBAAgB;IAChB,iBAAiB;IACjB,gBAAgB;CACjB,AAzCY,CAyCX;AAGF;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCAC9B;AAGb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;6CACR;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;4CACT;AAnDT,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CAsEtB;SAtEY,UAAU","sourcesContent":["import { TemplateResult, css, html, nothing } from 'lit';\nimport { IconName, IconSizeVariant } from '../tuix-icon/enums/tuix-icon.enums';\nimport {\n buttonSizeStyles,\n buttonColorStyles,\n hostButtonStyles,\n} from './TuixButton.styles';\nimport { customElement, property } from 'lit/decorators.js';\nimport { ScreenSizes } from '../utils/screenSizes.enum';\nimport { TuixBaseButton } from './TuixBaseButton';\n\n@customElement('tuix-button')\nexport class TuixButton extends TuixBaseButton {\n static styles = [\n css`\n :host([full]) .button {\n width: 100%;\n }\n .button {\n padding: 16px 32px;\n border-radius: 4px;\n border: none;\n font-family: 'Rubik', sans-serif;\n }\n\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n .button {\n padding: 14px 32px;\n }\n }\n\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .button {\n padding: 12px 24px;\n }\n }\n\n .container {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n gap: 8px;\n }\n\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .container {\n gap: 6px;\n }\n }\n `,\n hostButtonStyles,\n buttonColorStyles,\n buttonSizeStyles,\n ];\n\n @property({ type: Boolean, reflect: true })\n full = false;\n\n @property({ type: IconName })\n iconRight?: IconName;\n\n @property({ type: IconName })\n iconLeft?: IconName;\n\n protected override _updateIconColor() {\n if (!this.iconLeft && !this.iconRight) return;\n this.iconColor = this._getTextColor();\n }\n\n protected override _buttonContent(): TemplateResult {\n let iconSize = IconSizeVariant.MEDIUM;\n\n if (screen.width <= ScreenSizes.TABLET) {\n iconSize = IconSizeVariant.SMALL;\n }\n return html` <div class=\"container\">\n ${this.iconLeft ? this._iconTemplate(this.iconLeft, iconSize) : nothing}\n <slot></slot>\n ${this.iconRight ? this._iconTemplate(this.iconRight, iconSize) : nothing}\n </div>`;\n }\n}\n"]}
|