@dronico/droni-kit 1.0.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.
Files changed (140) hide show
  1. package/.github/workflows/release.yml +28 -0
  2. package/.storybook/main.ts +19 -0
  3. package/.storybook/preview.ts +14 -0
  4. package/.storybook/vitest.setup.ts +9 -0
  5. package/.vscode/extensions.json +3 -0
  6. package/CHANGELOG.md +24 -0
  7. package/README.md +5 -0
  8. package/dist/App.vue.d.ts +2 -0
  9. package/dist/components/HelloWorld.vue.d.ts +5 -0
  10. package/dist/droni-kit.css +1 -0
  11. package/dist/droni-kit.js +76 -0
  12. package/dist/droni-kit.umd.cjs +1 -0
  13. package/dist/main.d.ts +0 -0
  14. package/dist/stories/Button.stories.d.ts +42 -0
  15. package/dist/stories/Button.vue.d.ts +26 -0
  16. package/dist/stories/Header.stories.d.ts +59 -0
  17. package/dist/stories/Header.vue.d.ts +15 -0
  18. package/dist/stories/Page.stories.d.ts +19 -0
  19. package/dist/stories/Page.vue.d.ts +2 -0
  20. package/dist/vite.svg +1 -0
  21. package/index.html +13 -0
  22. package/package.json +56 -0
  23. package/public/vite.svg +1 -0
  24. package/release.config.ts +23 -0
  25. package/src/App.vue +30 -0
  26. package/src/assets/vue.svg +1 -0
  27. package/src/components/HelloWorld.vue +41 -0
  28. package/src/main.ts +5 -0
  29. package/src/stories/Button.stories.ts +63 -0
  30. package/src/stories/Button.vue +48 -0
  31. package/src/stories/Configure.mdx +364 -0
  32. package/src/stories/Header.stories.ts +48 -0
  33. package/src/stories/Header.vue +37 -0
  34. package/src/stories/Page.stories.ts +38 -0
  35. package/src/stories/Page.vue +73 -0
  36. package/src/stories/assets/accessibility.png +0 -0
  37. package/src/stories/assets/accessibility.svg +1 -0
  38. package/src/stories/assets/addon-library.png +0 -0
  39. package/src/stories/assets/assets.png +0 -0
  40. package/src/stories/assets/avif-test-image.avif +0 -0
  41. package/src/stories/assets/context.png +0 -0
  42. package/src/stories/assets/discord.svg +1 -0
  43. package/src/stories/assets/docs.png +0 -0
  44. package/src/stories/assets/figma-plugin.png +0 -0
  45. package/src/stories/assets/github.svg +1 -0
  46. package/src/stories/assets/share.png +0 -0
  47. package/src/stories/assets/styling.png +0 -0
  48. package/src/stories/assets/testing.png +0 -0
  49. package/src/stories/assets/theming.png +0 -0
  50. package/src/stories/assets/tutorials.svg +1 -0
  51. package/src/stories/assets/youtube.svg +1 -0
  52. package/src/stories/button.css +30 -0
  53. package/src/stories/header.css +32 -0
  54. package/src/stories/page.css +68 -0
  55. package/src/style.css +79 -0
  56. package/src/vite-env.d.ts +1 -0
  57. package/storybook-static/App.vue.d.ts +2 -0
  58. package/storybook-static/assets/Button-B2efaGtC.css +1 -0
  59. package/storybook-static/assets/Button-CoYrOF_8.js +1 -0
  60. package/storybook-static/assets/Button.stories-X_0VSq8O.js +26 -0
  61. package/storybook-static/assets/Color-YHDXOIA2-DLeC5Hg8.js +1 -0
  62. package/storybook-static/assets/Configure-bVvReBib.js +165 -0
  63. package/storybook-static/assets/DocsRenderer-CFRXHY34-DfQH6b5n.js +26 -0
  64. package/storybook-static/assets/Header-3jNfoSF5.js +1 -0
  65. package/storybook-static/assets/Header-Ck-SSN7O.css +1 -0
  66. package/storybook-static/assets/Header.stories-DKH58MAE.js +11 -0
  67. package/storybook-static/assets/Page-CeeQJVdd.css +1 -0
  68. package/storybook-static/assets/Page.stories-C8t25IEs.js +17 -0
  69. package/storybook-static/assets/accessibility-W_h2acOZ.png +0 -0
  70. package/storybook-static/assets/addon-library-BWUCAmyN.png +0 -0
  71. package/storybook-static/assets/context-C0qIqeS4.png +0 -0
  72. package/storybook-static/assets/docs---vsFbMi.png +0 -0
  73. package/storybook-static/assets/entry-preview-CZIIErml.js +1 -0
  74. package/storybook-static/assets/entry-preview-docs-VgQ3afV1.js +16 -0
  75. package/storybook-static/assets/figma-plugin-CH2hELiO.png +0 -0
  76. package/storybook-static/assets/iframe-Ck6AF3FG.js +211 -0
  77. package/storybook-static/assets/index-BDOojamX.js +240 -0
  78. package/storybook-static/assets/index-Bx-go_-4.js +8 -0
  79. package/storybook-static/assets/index-C8GcTUhO.js +1 -0
  80. package/storybook-static/assets/index-DCUO3UO8.js +599 -0
  81. package/storybook-static/assets/index-DrFu-skq.js +6 -0
  82. package/storybook-static/assets/preview-B8lJiyuQ.js +34 -0
  83. package/storybook-static/assets/preview-BBWR9nbA.js +1 -0
  84. package/storybook-static/assets/preview-BWzBA1C2.js +396 -0
  85. package/storybook-static/assets/preview-Bej7FSAj.js +1 -0
  86. package/storybook-static/assets/preview-CIRcjyVj.js +1 -0
  87. package/storybook-static/assets/preview-CvbIS5ZJ.js +1 -0
  88. package/storybook-static/assets/preview-CyK-uEc4.js +2 -0
  89. package/storybook-static/assets/preview-DD_OYowb.js +1 -0
  90. package/storybook-static/assets/preview-DGUiP6tS.js +7 -0
  91. package/storybook-static/assets/share-DGA-UcQf.png +0 -0
  92. package/storybook-static/assets/styling-Bk6zjRzU.png +0 -0
  93. package/storybook-static/assets/testing-cbzR9l9r.png +0 -0
  94. package/storybook-static/assets/theming-D6WJLNoW.png +0 -0
  95. package/storybook-static/assets/vue.esm-bundler-DJJpJwIm.js +36 -0
  96. package/storybook-static/components/HelloWorld.vue.d.ts +5 -0
  97. package/storybook-static/favicon.svg +1 -0
  98. package/storybook-static/iframe.html +666 -0
  99. package/storybook-static/index.html +181 -0
  100. package/storybook-static/index.json +1 -0
  101. package/storybook-static/main.d.ts +0 -0
  102. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  103. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  104. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  105. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  106. package/storybook-static/project.json +1 -0
  107. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +331 -0
  108. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +51 -0
  109. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
  110. package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +12 -0
  111. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +402 -0
  112. package/storybook-static/sb-addons/essentials-docs-3/manager-bundle.js +242 -0
  113. package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +3 -0
  114. package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +3 -0
  115. package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +3 -0
  116. package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +3 -0
  117. package/storybook-static/sb-addons/onboarding-9/manager-bundle.js +127 -0
  118. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
  119. package/storybook-static/sb-addons/storybook-experimental-addon-test-11/manager-bundle.js +223 -0
  120. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  121. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  122. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  123. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  124. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  125. package/storybook-static/sb-manager/globals-module-info.js +1051 -0
  126. package/storybook-static/sb-manager/globals-runtime.js +41591 -0
  127. package/storybook-static/sb-manager/globals.js +48 -0
  128. package/storybook-static/sb-manager/runtime.js +12048 -0
  129. package/storybook-static/stories/Button.stories.d.ts +42 -0
  130. package/storybook-static/stories/Button.vue.d.ts +26 -0
  131. package/storybook-static/stories/Header.stories.d.ts +59 -0
  132. package/storybook-static/stories/Header.vue.d.ts +15 -0
  133. package/storybook-static/stories/Page.stories.d.ts +19 -0
  134. package/storybook-static/stories/Page.vue.d.ts +2 -0
  135. package/storybook-static/vite.svg +1 -0
  136. package/tsconfig.app.json +14 -0
  137. package/tsconfig.json +7 -0
  138. package/tsconfig.node.json +24 -0
  139. package/vite.config.ts +28 -0
  140. package/vitest.workspace.ts +32 -0
@@ -0,0 +1,42 @@
1
+ import { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('vue').DefineComponent<{
5
+ label: string;
6
+ primary?: boolean;
7
+ size?: "small" | "medium" | "large";
8
+ backgroundColor?: string;
9
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ click: (id: number) => any;
11
+ }, string, import('vue').PublicProps, Readonly<{
12
+ label: string;
13
+ primary?: boolean;
14
+ size?: "small" | "medium" | "large";
15
+ backgroundColor?: string;
16
+ }> & Readonly<{
17
+ onClick?: ((id: number) => any) | undefined;
18
+ }>, {
19
+ primary: boolean;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
21
+ tags: string[];
22
+ argTypes: {
23
+ size: {
24
+ control: "select";
25
+ options: string[];
26
+ };
27
+ backgroundColor: {
28
+ control: "color";
29
+ };
30
+ };
31
+ args: {
32
+ primary: false;
33
+ onClick: import('@vitest/spy').Mock<(...args: any[]) => any>;
34
+ };
35
+ };
36
+ export default meta;
37
+ type Story = StoryObj<typeof meta>;
38
+ export declare const Primary: Story;
39
+ export declare const Secondary: Story;
40
+ export declare const Large: Story;
41
+ export declare const Small: Story;
42
+ export declare const Select: Story;
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ /**
3
+ * The label of the button
4
+ */
5
+ label: string;
6
+ /**
7
+ * primary or secondary button
8
+ */
9
+ primary?: boolean;
10
+ /**
11
+ * size of the button
12
+ */
13
+ size?: 'small' | 'medium' | 'large';
14
+ /**
15
+ * background color of the button
16
+ */
17
+ backgroundColor?: string;
18
+ };
19
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
+ click: (id: number) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onClick?: ((id: number) => any) | undefined;
23
+ }>, {
24
+ primary: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
26
+ export default _default;
@@ -0,0 +1,59 @@
1
+ import { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('vue').DefineComponent<{
5
+ user: {
6
+ name: string;
7
+ } | null;
8
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ createAccount: () => any;
10
+ login: () => any;
11
+ logout: () => any;
12
+ }, string, import('vue').PublicProps, Readonly<{
13
+ user: {
14
+ name: string;
15
+ } | null;
16
+ }> & Readonly<{
17
+ onCreateAccount?: (() => any) | undefined;
18
+ onLogin?: (() => any) | undefined;
19
+ onLogout?: (() => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
21
+ render: (args: any) => {
22
+ components: {
23
+ MyHeader: import('vue').DefineComponent<{
24
+ user: {
25
+ name: string;
26
+ } | null;
27
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
28
+ createAccount: () => any;
29
+ login: () => any;
30
+ logout: () => any;
31
+ }, string, import('vue').PublicProps, Readonly<{
32
+ user: {
33
+ name: string;
34
+ } | null;
35
+ }> & Readonly<{
36
+ onCreateAccount?: (() => any) | undefined;
37
+ onLogin?: (() => any) | undefined;
38
+ onLogout?: (() => any) | undefined;
39
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
40
+ };
41
+ setup(this: void): {
42
+ args: any;
43
+ };
44
+ template: string;
45
+ };
46
+ parameters: {
47
+ layout: string;
48
+ };
49
+ args: {
50
+ onLogin: import('@vitest/spy').Mock<(...args: any[]) => any>;
51
+ onLogout: import('@vitest/spy').Mock<(...args: any[]) => any>;
52
+ onCreateAccount: import('@vitest/spy').Mock<(...args: any[]) => any>;
53
+ };
54
+ tags: string[];
55
+ };
56
+ export default meta;
57
+ type Story = StoryObj<typeof meta>;
58
+ export declare const LoggedIn: Story;
59
+ export declare const LoggedOut: Story;
@@ -0,0 +1,15 @@
1
+ type __VLS_Props = {
2
+ user: {
3
+ name: string;
4
+ } | null;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ createAccount: () => any;
8
+ login: () => any;
9
+ logout: () => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onCreateAccount?: (() => any) | undefined;
12
+ onLogin?: (() => any) | undefined;
13
+ onLogout?: (() => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
15
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
5
+ render: () => {
6
+ components: {
7
+ MyPage: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
8
+ };
9
+ template: string;
10
+ };
11
+ parameters: {
12
+ layout: string;
13
+ };
14
+ tags: string[];
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const LoggedIn: Story;
19
+ export declare const LoggedOut: Story;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "@vue/tsconfig/tsconfig.dom.json",
3
+ "compilerOptions": {
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
5
+
6
+ /* Linting */
7
+ "strict": true,
8
+ "noUnusedLocals": true,
9
+ "noUnusedParameters": true,
10
+ "noFallthroughCasesInSwitch": true,
11
+ "noUncheckedSideEffectImports": true
12
+ },
13
+ "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
14
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ { "path": "./tsconfig.app.json" },
5
+ { "path": "./tsconfig.node.json" }
6
+ ]
7
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
+ "target": "ES2022",
5
+ "lib": ["ES2023"],
6
+ "module": "ESNext",
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
12
+ "isolatedModules": true,
13
+ "moduleDetection": "force",
14
+ "noEmit": true,
15
+
16
+ /* Linting */
17
+ "strict": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "noUncheckedSideEffectImports": true
22
+ },
23
+ "include": ["vite.config.ts"]
24
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,28 @@
1
+ import { defineConfig } from 'vite'
2
+ import vue from '@vitejs/plugin-vue'
3
+ import dts from 'vite-plugin-dts'
4
+
5
+ // https://vite.dev/config/
6
+ export default defineConfig({
7
+ plugins: [
8
+ vue(),
9
+ dts({ tsconfigPath: './tsconfig.app.json' })
10
+ ],
11
+ build: {
12
+ lib: {
13
+ entry: './src/main.ts',
14
+ name: 'droni-kit',
15
+ fileName: 'droni-kit',
16
+ formats: ['es', 'umd']
17
+ },
18
+ rollupOptions: {
19
+ external: ['vue'],
20
+ output: {
21
+ globals: {
22
+ vue: 'Vue'
23
+ },
24
+ dir: 'dist'
25
+ }
26
+ }
27
+ },
28
+ })
@@ -0,0 +1,32 @@
1
+ import path from 'node:path';
2
+ import { fileURLToPath } from 'node:url';
3
+
4
+ import { defineWorkspace } from 'vitest/config';
5
+
6
+ import { storybookTest } from '@storybook/experimental-addon-test/vitest-plugin';
7
+
8
+ const dirname =
9
+ typeof __dirname !== 'undefined' ? __dirname : path.dirname(fileURLToPath(import.meta.url));
10
+
11
+ // More info at: https://storybook.js.org/docs/writing-tests/test-addon
12
+ export default defineWorkspace([
13
+ 'vite.config.ts',
14
+ {
15
+ extends: 'vite.config.ts',
16
+ plugins: [
17
+ // The plugin will run tests for the stories defined in your Storybook config
18
+ // See options at: https://storybook.js.org/docs/writing-tests/test-addon#storybooktest
19
+ storybookTest({ configDir: path.join(dirname, '.storybook') }),
20
+ ],
21
+ test: {
22
+ name: 'storybook',
23
+ browser: {
24
+ enabled: true,
25
+ headless: true,
26
+ name: 'chromium',
27
+ provider: 'playwright'
28
+ },
29
+ setupFiles: ['.storybook/vitest.setup.ts'],
30
+ },
31
+ },
32
+ ]);