@davincihealthcare/elty-design-system-vue 1.9.4 → 1.10.1

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 CHANGED
@@ -23,8 +23,8 @@ module.exports = {
23
23
  ...
24
24
  content: [..., './node_modules/@davincihealthcare/elty-design-system-vue/**/*.{tsx,js}'],
25
25
  plugins: [
26
- require('@tailwindcss/forms'),
27
- require('@tailwindcss/typography'),
26
+ require('@tailwindcss/forms'), // ⚠️
27
+ require('@tailwindcss/typography'), // ⚠️
28
28
  require('@davincihealthcare/elty-design-system-vue').EltyTailwindPlugin
29
29
  ]
30
30
  ...
@@ -78,3 +78,36 @@ const onClick = () => {
78
78
  };
79
79
  </script>
80
80
  ```
81
+
82
+ ## Tech stuff and instructions 🔥🔥
83
+
84
+ As it has been set the following as `peer dependencies`
85
+
86
+ - @tailwindcss/forms
87
+ - @tailwindcss/typography
88
+ - vee-validate
89
+ - vue
90
+
91
+ **please check for compatibility issues if you experience something strange**
92
+
93
+ ## Style Configuration (style.cjs):
94
+
95
+ This section handles the styling for your Vue component library, leveraging Tailwind CSS for efficiency. Here's a breakdown of the process:
96
+
97
+ 1. Base Styles (src/style.css):
98
+
99
+ This file is where you define the foundational CSS styles that you want to use in conjunction with Tailwind. Focus on including essential styles that are unlikely to change frequently. This helps maintain a clean separation between your core design principles and the dynamic nature of Tailwind classes.
100
+
101
+ 2. Tailwind Processing (yarn build):
102
+ Running yarn build triggers postcss, a CSS preprocessor. It scans src/style.css and replaces Tailwind directives (@apply, etc.) with actual CSS classes based on your Tailwind configuration. The processed output is saved as dist/style.css.
103
+
104
+ 3. CJS Conversion (yarn build-prejss):
105
+ A separate script (potentially yarn build-prejss) is called during yarn build. It takes the processed CSS file (dist/style.css) and generates a CommonJS module (dist/style.cjs). This format is necessary because your src/tailwind.plugin.ts file will import it (explained below).
106
+
107
+ 4. Tailwind Integration (src/tailwind.plugin.ts):
108
+ This file defines the Tailwind plugin used within your library. It imports the generated dist/style.cjs file. When you integrate your library into another project that has Tailwind installed, this import will work seamlessly because the library will include the compiled style.cjs file.
109
+
110
+ Key Points:
111
+
112
+ You don't need to worry about providing dist/style.cjs separately. It's included in the built library package.
113
+ Your library's components can leverage Tailwind classes by referencing them directly.
@@ -1,16 +1,24 @@
1
1
  export declare const elAvatarSizes: readonly ["xxs", "xs", "sm", "md", "lg", "xl"];
2
2
  export type ElAvatarSize = (typeof elAvatarSizes)[number];
3
3
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
- picture: string;
4
+ picture?: string | undefined;
5
5
  size: ElAvatarSize;
6
+ label?: string | undefined;
6
7
  }>, {
8
+ picture: undefined;
7
9
  size: string;
10
+ label: undefined;
8
11
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
- picture: string;
12
+ picture?: string | undefined;
10
13
  size: ElAvatarSize;
14
+ label?: string | undefined;
11
15
  }>, {
16
+ picture: undefined;
12
17
  size: string;
18
+ label: undefined;
13
19
  }>>>, {
20
+ label: string;
21
+ picture: string;
14
22
  size: ElAvatarSize;
15
23
  }, {}>;
16
24
  export default _default;
@@ -15,7 +15,7 @@ export type AutocompleteOptionType = OptionType & {
15
15
  export declare const isAutocompleteOptionType: (o: any) => o is AutocompleteOptionType;
16
16
  export declare const getEnumFromString: <T>(type: any, str: string | null) => T[keyof T] | null;
17
17
  export declare const currencyToReadableString: (n: number) => string;
18
- export declare const cleanArray: <T>(arrayObj: (Error | T | null | undefined)[] | null | undefined) => T[];
18
+ export declare const cleanArray: <T>(arrayObj: (T | Error | null | undefined)[] | null | undefined) => T[];
19
19
  export declare const downloadFileViaUrl: (url: string, filename: string) => void;
20
20
  export declare const getReadableDate: (d: number) => string;
21
21
  export declare const getReadableDateTime: (d: number | string | Date, dateTimeFormatOptions?: Intl.DateTimeFormatOptions) => string;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export { default as EltyVuePlugin } from './vue.plugin';
2
2
  export { default as EltyTailwindPlugin } from './tailwind.plugin';
3
- export * from './routes';
4
3
  export * from './types';
5
4
  export * from './ElAccordion.vue';
6
5
  export { default as ElAccordion } from './ElAccordion.vue';
@@ -20,8 +19,6 @@ export * from './ElDropdown.vue';
20
19
  export { default as ElDropdown } from './ElDropdown.vue';
21
20
  export * from './ElFile.vue';
22
21
  export { default as ElFile } from './ElFile.vue';
23
- export * from './ElFooter.vue';
24
- export { default as ElFooter } from './ElFooter.vue';
25
22
  export * from './ElIcon.vue';
26
23
  export { default as ElIcon } from './ElIcon.vue';
27
24
  export * from './ElIconButton.vue';