From f0001d6f88b3310b660b0b561d6667b02bc75824 Mon Sep 17 00:00:00 2001 From: Bikash Date: Fri, 1 Nov 2024 11:20:04 +0545 Subject: [PATCH] cleanup --- Taskfile.yaml | 17 ---- css-plugins/css-plugins/no-scrollbar.js | 19 ---- css-plugins/css-plugins/no-spinner.js | 17 ---- css-plugins/css-plugins/perspective.js | 13 --- css-plugins/css-plugins/scrollbar.js | 27 ----- css-plugins/css-plugins/typography.js | 126 ------------------------ package.json | 3 +- public/package.json | 3 - 8 files changed, 1 insertion(+), 224 deletions(-) delete mode 100644 css-plugins/css-plugins/no-scrollbar.js delete mode 100644 css-plugins/css-plugins/no-spinner.js delete mode 100644 css-plugins/css-plugins/perspective.js delete mode 100644 css-plugins/css-plugins/scrollbar.js delete mode 100644 css-plugins/css-plugins/typography.js delete mode 100644 public/package.json diff --git a/Taskfile.yaml b/Taskfile.yaml index b71651ec4..62d7c18fb 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -4,9 +4,6 @@ tasks: cmds: - rm -rf ./node_modules - rm -rf ./public - - rm -rf ./src/design-system/out - - rm -rf ./src/design-system/node_modules - - rm -rf ./src/design-system/dist - rm -rf ./src/generated/node_modules - rm -rf ./src/generated/plugin/dist - rm -rf ./src/generated/plugin/node_modules @@ -97,11 +94,6 @@ tasks: cd src/generated && pnpm tsgen cd ../.. && pnpm fake - storybook: - cmds: - - | - cd src/design-system && pnpm dev - run: preconditions: @@ -194,15 +186,6 @@ tasks: - docker build --build-arg APP=console . -t {{.IMAGE}}/console:{{.tag}} - docker push {{.IMAGE}}/console:{{.tag}} - docker-build-website: - preconditions: - - sh: '[[ -n "{{.tag}}" ]]' - msg: "var tag must have a value" - silent: false - cmds: - # - cd ./src/design-system && mkdir -p out && pnpm local:release - - docker buildx build . -t {{.tag}} -f Dockerfile.website - container-build-webinar: preconditions: - sh: '[[ -n "{{.tag}}" ]]' diff --git a/css-plugins/css-plugins/no-scrollbar.js b/css-plugins/css-plugins/no-scrollbar.js deleted file mode 100644 index c06b2f0a4..000000000 --- a/css-plugins/css-plugins/no-scrollbar.js +++ /dev/null @@ -1,19 +0,0 @@ -function noScrollbar() { - // @ts-ignore - return ({ addComponents }) => { - addComponents({ - '.no-scrollbar-base::-webkit-scrollbar': { - display: 'none', - }, - '.no-scrollbar-base': { - '-ms-overflow-style': 'none', - 'scrollbar-width': 'none', - }, - '.no-scrollbar': { - '@apply kl-no-scrollbar-base': {}, - }, - }); - }; -} - -export default noScrollbar; diff --git a/css-plugins/css-plugins/no-spinner.js b/css-plugins/css-plugins/no-spinner.js deleted file mode 100644 index a3273580e..000000000 --- a/css-plugins/css-plugins/no-spinner.js +++ /dev/null @@ -1,17 +0,0 @@ -function noScrollbar() { - // @ts-ignore - return ({ addComponents }) => { - addComponents({ - '.no-spinner::-webkit-inner-spin-button, .no-spinner::-webkit-outer-spin-button': - { - '-webkit-appearance': 'none', - margin: '0', - }, - '.no-spinner': { - '-moz-appearance': 'textfield', - }, - }); - }; -} - -export default noScrollbar; diff --git a/css-plugins/css-plugins/perspective.js b/css-plugins/css-plugins/perspective.js deleted file mode 100644 index 425304272..000000000 --- a/css-plugins/css-plugins/perspective.js +++ /dev/null @@ -1,13 +0,0 @@ -function perspective() { - // @ts-ignore - return ({ matchUtilities }) => { - matchUtilities({ - // @ts-ignore - perspective: (value) => ({ - perspective: value, - }), - }); - }; -} - -export default perspective; diff --git a/css-plugins/css-plugins/scrollbar.js b/css-plugins/css-plugins/scrollbar.js deleted file mode 100644 index 309f2d752..000000000 --- a/css-plugins/css-plugins/scrollbar.js +++ /dev/null @@ -1,27 +0,0 @@ -function scrollbar() { - // @ts-ignore - return ({ addBase }) => { - addBase({ - '*': { - '&::-webkit-scrollbar': { - width: '6px', - height: '6px', - }, - '&::-webkit-scrollbar-track': { - '@apply kl-bg-transparent': {}, - }, - '&::-webkit-scrollbar-thumb': { - '@apply kl-bg-surface-basic-hovered kl-rounded kl-cursor-pointer': {}, - }, - '&::-webkit-scrollbar-track-piece': { - '@apply kl-bg-transparent': {}, - }, - '&::-webkit-scrollbar-thumb:hover': { - '@apply kl-bg-surface-basic-pressed': {}, - }, - }, - }); - }; -} - -export default scrollbar; diff --git a/css-plugins/css-plugins/typography.js b/css-plugins/css-plugins/typography.js deleted file mode 100644 index 1010dd001..000000000 --- a/css-plugins/css-plugins/typography.js +++ /dev/null @@ -1,126 +0,0 @@ -function typography() { - // @ts-ignore - return ({ addComponents }) => { - addComponents({ - '.bodyXs': { - '@apply kl-text-xxs kl-leading-xxs kl-font-sans kl-font-normal': {}, - }, - '.bodyMono': { - '@apply kl-text-sm kl-leading-sm kl-font-mono': {}, - }, - '.bodyMono-medium': { - '@apply kl-bodyMono !kl-font-medium': {}, - }, - '.bodySm': { - '@apply kl-text-xs kl-leading-xs kl-font-sans kl-font-normal': {}, - }, - '.bodySm-medium': { - '@apply kl-bodySm !kl-font-medium': {}, - }, - '.bodySm-semibold': { - '@apply kl-bodySm !kl-font-semibold': {}, - }, - '.bodyMd': { - '@apply kl-text-sm kl-leading-sm kl-font-sans': {}, - }, - '.bodyMd-medium': { - '@apply kl-bodyMd !kl-font-medium': {}, - }, - '.bodyMd-semibold': { - '@apply kl-bodyMd !kl-font-semibold': {}, - }, - '.bodyMd-underline': { - '@apply kl-bodyMd kl-underline': {}, - }, - '.bodyLg': { - '@apply kl-text-md kl-leading-md kl-font-sans': {}, - }, - '.bodyLg-medium': { - '@apply kl-bodyLg !kl-font-medium': {}, - }, - '.bodyLg-semibold': { - '@apply kl-bodyLg !kl-font-semibold': {}, - }, - '.bodyLg-underline': { - '@apply kl-bodyLg kl-underline': {}, - }, - '.bodyXl': { - '@apply kl-font-normal kl-font-sans kl-text-lg kl-leading-lg': {}, - }, - '.bodyXXl': { - '@apply kl-font-normal kl-font-sans kl-text-xl kl-leading-bodyXXl-lineHeight': - {}, - }, - '.bodyXl-medium': { - '@apply kl-font-medium kl-font-sans kl-text-lg kl-leading-lg': {}, - }, - '.headingXs': { - '@apply kl-font-semibold kl-text-xs kl-leading-xs kl-font-sans': {}, - }, - '.headingSm': { - '@apply kl-font-semibold kl-text-sm kl-leading-sm kl-font-sans': {}, - }, - '.headingMd': { - '@apply kl-font-semibold kl-text-md kl-leading-md kl-font-sans': {}, - }, - '.headingMd-marketing': { - '@apply kl-headingMd !kl-font-familjen': {}, - }, - '.headingLg': { - '@apply kl-font-semibold kl-text-lg kl-leading-md kl-font-sans': {}, - }, - '.headingLg-marketing': { - '@apply kl-headingLg !kl-font-familjen': {}, - }, - '.headingXl': { - '@apply kl-font-semibold kl-text-xl kl-leading-lg kl-font-sans': {}, - }, - '.headingXl-marketing': { - '@apply kl-headingXl !kl-font-familjen': {}, - }, - '.heading2xl': { - '@apply kl-font-semibold kl-text-2xl kl-leading-xl kl-font-sans': {}, - }, - '.heading2xl-marketing': { - '@apply kl-heading2xl kl-font-familjen': {}, - }, - '.heading3xl': { - '@apply kl-font-semibold kl-text-3xl kl-leading-2xl kl-font-sans': {}, - }, - '.heading3xl-marketing': { - '@apply kl-heading3xl !kl-font-familjen': {}, - }, - '.heading3xl-1-marketing': { - '@apply kl-heading3xl !kl-font-sriracha': {}, - }, - '.heading4xl': { - '@apply kl-font-bold kl-text-4xl kl-leading-3xl kl-font-sans': {}, - }, - '.heading4xl-marketing': { - '@apply kl-heading4xl !kl-font-familjen': {}, - }, - '.heading5xl-marketing': { - '@apply kl-font-bold kl-text-5xl kl-leading-5xl kl-font-familjen': {}, - }, - '.heading5xl-1-marketing': { - '@apply kl-font-normal kl-text-5xl kl-leading-5xl kl-font-sriracha': {}, - }, - '.heading6xl-marketing': { - '@apply kl-font-bold kl-text-6xl kl-leading-6xl kl-font-familjen': {}, - }, - '.sriracha5xl': { - '@apply kl-font-normal kl-text-5xl kl-leading-4xl kl-font-sriracha': {}, - }, - '.sriracha4xl': { - '@apply kl-font-normal kl-text-4xl kl-leading-2xl-1 kl-font-sriracha': - {}, - }, - '.sriracha3xl': { - '@apply kl-font-normal kl-text-3xl kl-leading-xl-1 kl-font-sriracha': - {}, - }, - }); - }; -} - -export default typography; diff --git a/package.json b/package.json index eda7af5c2..5773083ed 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,8 @@ "homepage": "https://kloudlite.github.io", "type": "module", "scripts": { - "design-system:install": "if [ -e src/design-system ]; then cd src/design-system && pnpm i; fi", "generated:install": "if [ -e src/generated ]; then cd src/generated && pnpm i; fi", - "postinstall": "npm run design-system:install && npm run generated:install", + "postinstall": "npm run generated:install", "fake": "esbuild fake-data-generator/gen.ts --format=cjs --outfile=public/dist/fake-data-generator.cjs --platform=node && node public/dist/fake-data-generator.cjs", "dev": "remix dev", "serve": "remix-serve ./public/${APP}/server", diff --git a/public/package.json b/public/package.json deleted file mode 100644 index c9a442261..000000000 --- a/public/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "commonjs" -} \ No newline at end of file