@speckle/ui-components 2.15.0 → 2.15.2-alpha1

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 (35) hide show
  1. package/dist/components/InfiniteLoading.vue.d.ts +14 -16
  2. package/dist/components/SourceAppBadge.vue.d.ts +5 -6
  3. package/dist/components/common/Alert.vue.d.ts +23 -20
  4. package/dist/components/common/Badge.vue.d.ts +28 -34
  5. package/dist/components/common/loading/Bar.vue.d.ts +5 -6
  6. package/dist/components/common/steps/Bullet.vue.d.ts +23 -36
  7. package/dist/components/common/steps/Number.vue.d.ts +21 -32
  8. package/dist/components/common/text/Link.vue.d.ts +21 -11
  9. package/dist/components/form/Button.vue.d.ts +13 -4
  10. package/dist/components/form/CardButton.vue.d.ts +20 -15
  11. package/dist/components/form/Checkbox.vue.d.ts +10 -8
  12. package/dist/components/form/TextArea.vue.d.ts +96 -107
  13. package/dist/components/form/TextInput.vue.d.ts +41 -15
  14. package/dist/components/form/select/Base.vue.d.ts +48 -15
  15. package/dist/components/form/select/SourceApps.vue.d.ts +9 -7
  16. package/dist/components/global/ToastRenderer.vue.d.ts +9 -8
  17. package/dist/components/layout/Dialog.vue.d.ts +24 -21
  18. package/dist/components/layout/Disclosure.vue.d.ts +20 -18
  19. package/dist/components/layout/GridListToggle.vue.d.ts +11 -11
  20. package/dist/components/layout/Menu.vue.d.ts +32 -13
  21. package/dist/components/layout/Panel.vue.d.ts +15 -4
  22. package/dist/components/layout/Tabs.vue.d.ts +14 -6
  23. package/dist/composables/common/async.d.ts +28 -0
  24. package/dist/helpers/common/components.d.ts +2 -0
  25. package/dist/helpers/layout/components.d.ts +1 -0
  26. package/dist/helpers/testing.d.ts +1 -0
  27. package/dist/lib-utils.d.ts +9 -0
  28. package/dist/lib.cjs +1 -1
  29. package/dist/lib.d.ts +3 -2
  30. package/dist/lib.js +1024 -992
  31. package/dist/main.d.ts +0 -0
  32. package/dist/stories/composables/toast.d.ts +23 -0
  33. package/dist/stories/helpers/storybook.d.ts +10 -0
  34. package/package.json +18 -18
  35. package/vite.config.ts +7 -2
package/dist/main.d.ts ADDED
File without changes
@@ -0,0 +1,23 @@
1
+ import { ToastNotification } from '../../helpers/global/toast';
2
+ /**
3
+ * Set up a new global toast manager/renderer (don't use this in multiple components that live at the same time)
4
+ */
5
+ export declare function useGlobalToastManager(): {
6
+ currentNotification: import("vue").ComputedRef<{
7
+ title?: string | undefined;
8
+ description?: string | undefined;
9
+ type: import('../../helpers/global/toast').ToastNotificationType;
10
+ cta?: {
11
+ title: string;
12
+ url?: string | undefined;
13
+ onClick?: ((e: MouseEvent) => void) | undefined;
14
+ } | undefined;
15
+ } | null>;
16
+ dismiss: () => void;
17
+ };
18
+ /**
19
+ * Trigger global toast notifications
20
+ */
21
+ export declare function useGlobalToast(): {
22
+ triggerNotification: (notification: ToastNotification) => void;
23
+ };
@@ -0,0 +1,10 @@
1
+ import type { StoryObj } from '@storybook/vue3';
2
+ import type { Get } from 'type-fest';
3
+ /**
4
+ * Vue Play function type
5
+ */
6
+ export type VuePlayFunction = NonNullable<Get<StoryObj, 'play'>>;
7
+ /**
8
+ * Combine multiple stories by merging them
9
+ */
10
+ export declare function mergeStories<S = StoryObj>(source: S, ...targetsToApply: Partial<S>[]): S;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speckle/ui-components",
3
3
  "description": "Speckle theme UI components built with Vue 3 & Tailwind",
4
- "version": "2.15.0",
4
+ "version": "2.15.2-alpha1",
5
5
  "scripts": {
6
6
  "dev": "vite",
7
7
  "build": "vue-tsc && vite build",
@@ -35,12 +35,12 @@
35
35
  }
36
36
  },
37
37
  "peerDependencies": {
38
- "vue": "^3.0.0"
38
+ "vue": "^3.3.0"
39
39
  },
40
40
  "dependencies": {
41
41
  "@headlessui/vue": "^1.7.13",
42
42
  "@heroicons/vue": "^2.0.12",
43
- "@speckle/shared": "^2.15.0",
43
+ "@speckle/shared": "^2.15.1",
44
44
  "@vueuse/core": "^9.13.0",
45
45
  "lodash": "^4.0.0",
46
46
  "lodash-es": "^4.0.0",
@@ -53,16 +53,16 @@
53
53
  "@babel/preset-env": "^7.21.5",
54
54
  "@babel/preset-react": "^7.18.6",
55
55
  "@rollup/plugin-typescript": "^11.1.0",
56
- "@speckle/tailwind-theme": "^2.15.0",
57
- "@storybook/addon-essentials": "^7.0.10",
58
- "@storybook/addon-interactions": "^7.0.10",
59
- "@storybook/addon-links": "^7.0.10",
60
- "@storybook/blocks": "^7.0.10",
61
- "@storybook/jest": "^0.0.11-next.0",
62
- "@storybook/test-runner": "^0.10.0",
63
- "@storybook/testing-library": "^0.0.14-next.2",
64
- "@storybook/vue3": "^7.0.10",
65
- "@storybook/vue3-vite": "^7.0.10",
56
+ "@speckle/tailwind-theme": "^2.15.1",
57
+ "@storybook/addon-essentials": "^7.3.2",
58
+ "@storybook/addon-interactions": "^7.3.2",
59
+ "@storybook/addon-links": "^7.3.2",
60
+ "@storybook/blocks": "^7.3.2",
61
+ "@storybook/jest": "^0.2.1",
62
+ "@storybook/test-runner": "^0.13.0",
63
+ "@storybook/testing-library": "^0.2.0",
64
+ "@storybook/vue3": "^7.3.2",
65
+ "@storybook/vue3-vite": "^7.3.2",
66
66
  "@types/eslint": "^8.4.5",
67
67
  "@types/lodash": "^4.0.0",
68
68
  "@typescript-eslint/eslint-plugin": "^5.38.1",
@@ -74,7 +74,7 @@
74
74
  "concurrently": "^8.0.1",
75
75
  "eslint": "^8.24.0",
76
76
  "eslint-config-prettier": "^8.5.0",
77
- "eslint-plugin-storybook": "^0.6.6",
77
+ "eslint-plugin-storybook": "^0.6.13",
78
78
  "eslint-plugin-vue": "^9.5.1",
79
79
  "eslint-plugin-vuejs-accessibility": "^1.2.0",
80
80
  "postcss": "^8.4.23",
@@ -83,18 +83,18 @@
83
83
  "react": "^18.2.0",
84
84
  "react-dom": "^18.2.0",
85
85
  "rollup-plugin-node-builtins": "^2.1.2",
86
- "storybook": "^7.0.10",
86
+ "storybook": "^7.3.2",
87
87
  "tailwindcss": "^3.3.2",
88
88
  "type-fest": "^2.13.1",
89
89
  "typescript": "^5.0.4",
90
90
  "unplugin-vue-macros": "^2.1.4",
91
91
  "vite": "^4.3.9",
92
- "vite-plugin-dts": "^2.3.0",
93
- "vue": "^3.0.0",
92
+ "vite-plugin-dts": "^3.5.2",
93
+ "vue": "^3.3.0",
94
94
  "vue-tsc": "^1.4.2",
95
95
  "wait-on": "^6.0.1"
96
96
  },
97
97
  "installConfig": {
98
98
  "hoistingLimits": "workspaces"
99
99
  }
100
- }
100
+ }
package/vite.config.ts CHANGED
@@ -11,7 +11,9 @@ const require = createRequire(import.meta.url)
11
11
  // https://vitejs.dev/config/
12
12
  export default defineConfig({
13
13
  plugins: [
14
- dts(),
14
+ dts({
15
+ exclude: ['**/*.stories.ts', '**/*.test.ts', '**/*.spec.ts', '.storybook/**/*']
16
+ }),
15
17
  vueMacros({
16
18
  plugins: {
17
19
  vue: vue()
@@ -30,7 +32,10 @@ export default defineConfig({
30
32
  ...Object.keys(pkg.dependencies || {}).map((d) => new RegExp(`^${d}(\\/.*)?$`)),
31
33
  ...Object.keys(pkg.peerDependencies || {}).map(
32
34
  (d) => new RegExp(`^${d}(\\/.*)?$`)
33
- )
35
+ ),
36
+ // Don't build stories
37
+ /\.stories\.ts$/i,
38
+ /\.storybook/i
34
39
  ]
35
40
  }
36
41
  },