@speckle/ui-components 2.23.4 → 2.23.6
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 +1 -1
- package/dist/components/form/TextArea.vue.d.ts +14 -0
- package/dist/components/form/TextInput.vue.d.ts +1 -1
- package/dist/components/form/select/Multi.vue.d.ts +191 -0
- package/dist/components/global/ToastRenderer.vue.d.ts +4 -4
- package/dist/components/global/icon/Plus.vue.d.ts +2 -0
- package/dist/components/layout/Dialog.vue.d.ts +2 -0
- package/dist/components/layout/sidebar/menu/group/Group.vue.d.ts +16 -4
- package/dist/components/user/Avatar.vue.d.ts +10 -0
- package/dist/components/user/AvatarEditable.vue.d.ts +36 -17
- package/dist/components/user/AvatarGroup.vue.d.ts +5 -0
- package/dist/helpers/common/validation.d.ts +1 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.d.ts +2 -1
- package/dist/lib.js +2879 -2229
- package/dist/lib.js.map +1 -1
- package/dist/stories/composables/toast.d.ts +3 -4
- package/eslint.config.mjs +8 -0
- package/package.json +5 -4
- package/tailwind.config.cjs +2 -2
- package/utils/tailwind-configure.cjs +6 -8
- package/utils/tailwind-configure.d.ts +1 -1
- package/utils/tailwind-configure.js +6 -6
- package/dist/lib-utils.d.ts +0 -9
- /package/dist/components/{layout/sidebar/menu/group → global/icon}/ArrowFilled.vue.d.ts +0 -0
- /package/dist/components/{layout/sidebar/menu/group/Plus.vue.d.ts → global/icon/Edit.vue.d.ts} +0 -0
|
@@ -3,7 +3,7 @@ import type { ToastNotification } from '../../helpers/global/toast';
|
|
|
3
3
|
* Set up a new global toast manager/renderer (don't use this in multiple components that live at the same time)
|
|
4
4
|
*/
|
|
5
5
|
export declare function useGlobalToastManager(): {
|
|
6
|
-
|
|
6
|
+
currentNotification: import("vue").ComputedRef<{
|
|
7
7
|
title?: string | undefined;
|
|
8
8
|
description?: string | undefined;
|
|
9
9
|
type: import('../../helpers/global/toast').ToastNotificationType;
|
|
@@ -14,9 +14,8 @@ export declare function useGlobalToastManager(): {
|
|
|
14
14
|
} | undefined;
|
|
15
15
|
autoClose?: boolean | undefined;
|
|
16
16
|
id?: string | undefined;
|
|
17
|
-
}
|
|
18
|
-
dismiss: (
|
|
19
|
-
dismissAll: () => void;
|
|
17
|
+
} | null>;
|
|
18
|
+
dismiss: () => void;
|
|
20
19
|
};
|
|
21
20
|
/**
|
|
22
21
|
* Trigger global toast notifications
|
package/eslint.config.mjs
CHANGED
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.23.
|
|
4
|
+
"version": "2.23.6",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev:vite": "vite",
|
|
7
7
|
"dev": "yarn storybook",
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
+
"vee-validate": "^4.7.0",
|
|
48
49
|
"vue": "^3.3.0"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
52
|
"@headlessui/vue": "^1.7.18",
|
|
52
53
|
"@heroicons/vue": "^2.0.12",
|
|
53
|
-
"@speckle/shared": "^2.23.
|
|
54
|
+
"@speckle/shared": "^2.23.6",
|
|
54
55
|
"@storybook/test": "^8.1.10",
|
|
55
56
|
"@vueuse/core": "^9.13.0",
|
|
56
57
|
"lodash": "^4.0.0",
|
|
57
58
|
"lodash-es": "^4.0.0",
|
|
58
59
|
"nanoid": "^3.0.0",
|
|
59
60
|
"v3-infinite-loading": "^1.2.2",
|
|
60
|
-
"vee-validate": "^4.7.0",
|
|
61
61
|
"vue-advanced-cropper": "^2.8.8",
|
|
62
62
|
"vue-tippy": "^6.0.0"
|
|
63
63
|
},
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@babel/preset-env": "^7.21.5",
|
|
66
66
|
"@babel/preset-react": "^7.18.6",
|
|
67
67
|
"@rollup/plugin-typescript": "^11.1.0",
|
|
68
|
-
"@speckle/tailwind-theme": "^2.23.
|
|
68
|
+
"@speckle/tailwind-theme": "^2.23.6",
|
|
69
69
|
"@storybook/addon-essentials": "^8.1.10",
|
|
70
70
|
"@storybook/addon-interactions": "^8.1.10",
|
|
71
71
|
"@storybook/addon-links": "^8.1.10",
|
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
"type-fest": "^2.13.1",
|
|
98
98
|
"typescript": "^5.0.4",
|
|
99
99
|
"unplugin-vue-macros": "^2.7.0",
|
|
100
|
+
"vee-validate": "4.7.0",
|
|
100
101
|
"vite": "^4.5.2",
|
|
101
102
|
"vite-plugin-dts": "^3.6.3",
|
|
102
103
|
"vue": "^3.3.8",
|
package/tailwind.config.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const speckleTheme = require('@speckle/tailwind-theme')
|
|
2
|
-
const {
|
|
2
|
+
const { tailwindContentEntries } = require('@speckle/tailwind-theme/tailwind-configure')
|
|
3
3
|
const formsPlugin = require('@tailwindcss/forms')
|
|
4
4
|
|
|
5
5
|
/** @type {import('tailwindcss').Config} */
|
|
@@ -8,7 +8,7 @@ module.exports = {
|
|
|
8
8
|
content: [
|
|
9
9
|
'./index.html',
|
|
10
10
|
'./src/**/*.{js,ts,jsx,tsx,vue}',
|
|
11
|
-
|
|
11
|
+
...tailwindContentEntries()
|
|
12
12
|
],
|
|
13
13
|
plugins: [speckleTheme.default, formsPlugin]
|
|
14
14
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
const { resolve
|
|
1
|
+
const { resolve } = require('path')
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Use this to generate an entry for the Tailwind 'content' config key that will ensure
|
|
5
5
|
* this library is scanned to prevent unnecessary purging
|
|
6
|
-
* @
|
|
7
|
-
* unavailable in certain environments and might need to be created manually with 'createRequire'
|
|
6
|
+
* @returns {string[]}
|
|
8
7
|
*/
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
return resolve(packageDir, '**/*.{js,cjs,mjs}')
|
|
8
|
+
function tailwindContentEntries() {
|
|
9
|
+
const currentLocation = __dirname
|
|
10
|
+
return [resolve(currentLocation, '../dist', '**/*.{js,cjs,mjs}')]
|
|
13
11
|
}
|
|
14
12
|
|
|
15
|
-
module.exports = {
|
|
13
|
+
module.exports = { tailwindContentEntries }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function tailwindContentEntries(): string[]
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { resolve, dirname } from 'path'
|
|
2
|
+
import { fileURLToPath } from 'url'
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Use this to generate an entry for the Tailwind 'content' config key that will ensure
|
|
5
6
|
* this library is scanned to prevent unnecessary purging
|
|
6
|
-
* @
|
|
7
|
-
* unavailable in certain environments and might need to be created manually with 'createRequire'
|
|
7
|
+
* @returns {string[]}
|
|
8
8
|
*/
|
|
9
|
-
export function
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
return resolve(
|
|
9
|
+
export function tailwindContentEntries() {
|
|
10
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
11
|
+
const __dirname = dirname(__filename)
|
|
12
|
+
return [resolve(__dirname, '../dist', '**/*.{js,cjs,mjs}')]
|
|
13
13
|
}
|
package/dist/lib-utils.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="webpack-env" />
|
|
3
|
-
/**
|
|
4
|
-
* Use this to generate an entry for the Tailwind 'content' config key that will ensure
|
|
5
|
-
* this library is scanned to prevent unnecessary purging
|
|
6
|
-
* @param {NodeRequire} req Feed in the 'require' object. It needs to be fed in because it may be
|
|
7
|
-
* unavailable in certain environments and might need to be created manually with 'createRequire'
|
|
8
|
-
*/
|
|
9
|
-
export declare function tailwindContentEntry(req: NodeRequire): string;
|
|
File without changes
|
/package/dist/components/{layout/sidebar/menu/group/Plus.vue.d.ts → global/icon/Edit.vue.d.ts}
RENAMED
|
File without changes
|