From 34b2523c2b57f7241fbdf1e6d7b2fa1981e3f433 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 15 Jul 2024 20:50:46 +0200 Subject: [PATCH 01/10] refactor(core): move background component to core pkg Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/background/src/types.ts | 42 ------------ .../src/addons/Background}/Background.vue | 47 +++++-------- packages/core/src/addons/Background/index.ts | 2 + .../src/addons/Background}/patterns.ts | 10 +-- packages/core/src/addons/Background/types.ts | 67 +++++++++++++++++++ packages/core/src/index.ts | 2 + 6 files changed, 91 insertions(+), 79 deletions(-) delete mode 100644 packages/background/src/types.ts rename packages/{background/src => core/src/addons/Background}/Background.vue (56%) create mode 100644 packages/core/src/addons/Background/index.ts rename packages/{background/src => core/src/addons/Background}/patterns.ts (79%) create mode 100644 packages/core/src/addons/Background/types.ts diff --git a/packages/background/src/types.ts b/packages/background/src/types.ts deleted file mode 100644 index 01f93dcd2..000000000 --- a/packages/background/src/types.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @deprecated - will be removed in the next major version. You can use simple string values for `variant` prop instead, i.e. `lines` or `dots` - */ -export enum BackgroundVariant { - Lines = 'lines', - Dots = 'dots', -} - -export type BackgroundVariantType = Lowercase - -export interface BackgroundProps { - id?: string - /** The background pattern variant */ - variant?: BackgroundVariant | BackgroundVariantType - /** Background pattern gap */ - gap?: number | number[] - /** Background pattern size */ - size?: number - lineWidth?: number - /** - * @deprecated - will be removed in the next major version. Use `color` instead - * Background pattern color - */ - patternColor?: string - /** Background pattern color */ - color?: string - /** - * @deprecated - will be removed in the next major version. You can assign a bg color to `` directly instead. - * Background color - */ - bgColor?: string - /** @deprecated Background height */ - height?: number - /** @deprecated Background width */ - width?: number - /** Background x-coordinate (offset x) */ - x?: number - /** Background y-coordinate (offset y) */ - y?: number - /** Background offset */ - offset?: number -} diff --git a/packages/background/src/Background.vue b/packages/core/src/addons/Background/Background.vue similarity index 56% rename from packages/background/src/Background.vue rename to packages/core/src/addons/Background/Background.vue index 7dd2375a8..94aa77bb9 100644 --- a/packages/background/src/Background.vue +++ b/packages/core/src/addons/Background/Background.vue @@ -1,39 +1,32 @@