fds-vue-core 2.1.6 → 2.1.7
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/components.d.ts +72 -4
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +9 -13
- package/dist/global-components.d.ts +0 -75
- package/src/global-components.ts +0 -75
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fds-vue-core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"description": "FDS Vue Core Component Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/fds-vue-core.cjs.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"serve": "vite",
|
|
50
|
-
"build": "vite build && npm run build:types && cp ./src/tokens.css ./dist/tokens.css && cp ./src/slot-styles.css ./dist/slot-styles.css && cp ./src/apply.css ./dist/apply.css && cp ./src/fonts.css ./dist/fonts.css && cp
|
|
50
|
+
"build": "vite build && npm run build:types && cp ./src/tokens.css ./dist/tokens.css && cp ./src/slot-styles.css ./dist/slot-styles.css && cp ./src/apply.css ./dist/apply.css && cp ./src/fonts.css ./dist/fonts.css && cp -r ./public/assets ./dist/assets",
|
|
51
51
|
"build:types": "vue-tsc --project tsconfig.build.json",
|
|
52
52
|
"preview": "vite preview",
|
|
53
53
|
"lint": "eslint . --fix",
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
// App type imported inline below to avoid TS plugin issues in some environments
|
|
2
|
-
|
|
3
1
|
// Import styles
|
|
4
|
-
import './global-components'
|
|
5
2
|
import './style.css'
|
|
3
|
+
import type { App, Plugin } from 'vue'
|
|
6
4
|
|
|
7
5
|
// Import all components
|
|
8
6
|
import FdsButtonCopy from '@/components/Buttons/FdsButtonCopy/FdsButtonCopy.vue'
|
|
@@ -21,7 +19,6 @@ import FdsSelect from '@/components/Form/FdsSelect/FdsSelect.vue'
|
|
|
21
19
|
import FdsTextarea from '@/components/Form/FdsTextarea/FdsTextarea.vue'
|
|
22
20
|
import FdsTable from '@/components/Table/FdsTable/FdsTable.vue'
|
|
23
21
|
import FdsTableHead from '@/components/Table/FdsTableHead/FdsTableHead.vue'
|
|
24
|
-
// Block components
|
|
25
22
|
import FdsBlockAlert from '@/components/Blocks/FdsBlockAlert/FdsBlockAlert.vue'
|
|
26
23
|
import FdsBlockContent from '@/components/Blocks/FdsBlockContent/FdsBlockContent.vue'
|
|
27
24
|
import FdsBlockExpander from '@/components/Blocks/FdsBlockExpander/FdsBlockExpander.vue'
|
|
@@ -84,10 +81,8 @@ export {
|
|
|
84
81
|
export { isPidString, useBoldQuery, useIsPid, useTreeState }
|
|
85
82
|
|
|
86
83
|
// Export component library plugin
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const FdsVueCorePlugin = {
|
|
90
|
-
install(app: AppLike) {
|
|
84
|
+
const FdsVueCorePlugin: Plugin = {
|
|
85
|
+
install(app: App) {
|
|
91
86
|
// Register all components globally
|
|
92
87
|
app.component('FdsTreeView', FdsTreeView)
|
|
93
88
|
// Register button variants with direct names
|
|
@@ -155,11 +150,12 @@ export type { FdsTableProps } from '@/components/Table/FdsTable/types'
|
|
|
155
150
|
export type { FdsTableHeadProps } from '@/components/Table/FdsTableHead/types'
|
|
156
151
|
|
|
157
152
|
// Block component types
|
|
158
|
-
|
|
159
|
-
export type {
|
|
160
|
-
export type {
|
|
161
|
-
export type {
|
|
162
|
-
export type {
|
|
153
|
+
// Use relative paths so the generated declarations are resolvable from the published package
|
|
154
|
+
export type { FdsAlertBlockProps } from './components/Blocks/FdsBlockAlert/types'
|
|
155
|
+
export type { FdsContentBlockProps } from './components/Blocks/FdsBlockContent/types'
|
|
156
|
+
export type { FdsExpanderBlockProps } from './components/Blocks/FdsBlockExpander/types'
|
|
157
|
+
export type { FdsBlockInfoProps } from './components/Blocks/FdsBlockInfo/types'
|
|
158
|
+
export type { FdsInteractionBlockProps } from './components/Blocks/FdsBlockLink/types'
|
|
163
159
|
|
|
164
160
|
// Tab component types
|
|
165
161
|
export type { FdsTabsProps } from '@/components/Tabs/FdsTabs/types'
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent } from 'vue'
|
|
2
|
-
// Import prop types directly from their source modules to avoid circular deps with index.ts
|
|
3
|
-
import type { FdsTreeViewProps } from './components/FdsTreeView/types'
|
|
4
|
-
import type { FdsButtonBaseProps } from './components/Buttons/ButtonBaseProps'
|
|
5
|
-
import type { FdsCopyButtonProps } from './components/Buttons/FdsButtonCopy/types'
|
|
6
|
-
import type { FdsIconButtonProps } from './components/Buttons/FdsButtonIcon/types'
|
|
7
|
-
import type { FdsIconProps } from './components/FdsIcon/types'
|
|
8
|
-
import type { FdsSpinnerProps } from './components/FdsSpinner/types'
|
|
9
|
-
import type { FdsRadioProps } from './components/Form/FdsRadio/types'
|
|
10
|
-
import type { FdsInputProps } from './components/Form/FdsInput/types'
|
|
11
|
-
import type { FdsCheckboxProps } from './components/Form/FdsCheckbox/types'
|
|
12
|
-
import type { FdsTextareaProps } from './components/Form/FdsTextarea/types'
|
|
13
|
-
import type { FdsSelectProps } from './components/Form/FdsSelect/types'
|
|
14
|
-
import type { FdsTableProps } from './components/Table/FdsTable/types'
|
|
15
|
-
import type { FdsTableHeadProps } from './components/Table/FdsTableHead/types'
|
|
16
|
-
import type { FdsContentBlockProps } from './components/Blocks/FdsBlockContent/types'
|
|
17
|
-
import type { FdsBlockInfoProps } from './components/Blocks/FdsBlockInfo/types'
|
|
18
|
-
import type { FdsAlertBlockProps } from './components/Blocks/FdsBlockAlert/types'
|
|
19
|
-
import type { FdsExpanderBlockProps } from './components/Blocks/FdsBlockExpander/types'
|
|
20
|
-
import type { FdsInteractionBlockProps } from './components/Blocks/FdsBlockLink/types'
|
|
21
|
-
import type { FdsStickerProps } from './components/FdsSticker/types'
|
|
22
|
-
import type { FdsTabsProps } from './components/Tabs/FdsTabs/types'
|
|
23
|
-
import type { FdsTabsItemProps } from './components/Tabs/FdsTabsItem/types'
|
|
24
|
-
import type { FdsModalProps } from './components/FdsModal/types'
|
|
25
|
-
import type { FdsPaginationProps } from './components/FdsPagination/types'
|
|
26
|
-
import type { FdsSearchSelectProps } from './components/FdsSearchSelect/types'
|
|
27
|
-
import type { FdsTruncatedTextProps } from './components/FdsTruncatedText/types'
|
|
28
|
-
import type { FdsHeadingProps } from './components/Typography/FdsHeading/types'
|
|
29
|
-
import type { FdsTextProps } from './components/Typography/FdsText/types'
|
|
30
|
-
import type { FdsListHeadingProps } from './components/Typography/FdsListHeading/types'
|
|
31
|
-
|
|
32
|
-
// Derive button prop types from base props
|
|
33
|
-
type FdsButtonPrimaryProps = FdsButtonBaseProps
|
|
34
|
-
type FdsButtonSecondaryProps = FdsButtonBaseProps
|
|
35
|
-
type FdsButtonMinorProps = FdsButtonBaseProps
|
|
36
|
-
type FdsButtonDownloadProps = FdsButtonBaseProps
|
|
37
|
-
|
|
38
|
-
declare module '@vue/runtime-core' {
|
|
39
|
-
export interface GlobalComponents {
|
|
40
|
-
FdsTreeView: DefineComponent<FdsTreeViewProps>
|
|
41
|
-
FdsButtonPrimary: DefineComponent<FdsButtonPrimaryProps>
|
|
42
|
-
FdsButtonSecondary: DefineComponent<FdsButtonSecondaryProps>
|
|
43
|
-
FdsButtonMinor: DefineComponent<FdsButtonMinorProps>
|
|
44
|
-
FdsButtonIcon: DefineComponent<FdsIconButtonProps>
|
|
45
|
-
FdsButtonCopy: DefineComponent<FdsCopyButtonProps>
|
|
46
|
-
FdsButtonDownload: DefineComponent<FdsButtonDownloadProps>
|
|
47
|
-
FdsIcon: DefineComponent<FdsIconProps>
|
|
48
|
-
FdsSpinner: DefineComponent<FdsSpinnerProps>
|
|
49
|
-
FdsRadio: DefineComponent<FdsRadioProps>
|
|
50
|
-
FdsInput: DefineComponent<FdsInputProps>
|
|
51
|
-
FdsCheckbox: DefineComponent<FdsCheckboxProps>
|
|
52
|
-
FdsTextarea: DefineComponent<FdsTextareaProps>
|
|
53
|
-
FdsSelect: DefineComponent<FdsSelectProps>
|
|
54
|
-
FdsTable: DefineComponent<FdsTableProps>
|
|
55
|
-
FdsTableHead: DefineComponent<FdsTableHeadProps>
|
|
56
|
-
FdsBlockContent: DefineComponent<FdsContentBlockProps>
|
|
57
|
-
FdsBlockInfo: DefineComponent<FdsBlockInfoProps>
|
|
58
|
-
FdsBlockAlert: DefineComponent<FdsAlertBlockProps>
|
|
59
|
-
FdsBlockExpander: DefineComponent<FdsExpanderBlockProps>
|
|
60
|
-
FdsBlockLink: DefineComponent<FdsInteractionBlockProps>
|
|
61
|
-
FdsSticker: DefineComponent<FdsStickerProps>
|
|
62
|
-
FdsTabs: DefineComponent<FdsTabsProps>
|
|
63
|
-
FdsTabsItem: DefineComponent<FdsTabsItemProps>
|
|
64
|
-
FdsModal: DefineComponent<FdsModalProps>
|
|
65
|
-
FdsPagination: DefineComponent<FdsPaginationProps>
|
|
66
|
-
FdsSearchSelect: DefineComponent<FdsSearchSelectProps>
|
|
67
|
-
FdsTruncatedText: DefineComponent<FdsTruncatedTextProps>
|
|
68
|
-
FdsHeading: DefineComponent<FdsHeadingProps>
|
|
69
|
-
FdsSeparator: DefineComponent<Record<string, never>>
|
|
70
|
-
FdsText: DefineComponent<FdsTextProps>
|
|
71
|
-
FdsListHeading: DefineComponent<FdsListHeadingProps>
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export {}
|
package/src/global-components.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent } from 'vue'
|
|
2
|
-
// Import prop types directly from their source modules to avoid circular deps with index.ts
|
|
3
|
-
import type { FdsTreeViewProps } from './components/FdsTreeView/types'
|
|
4
|
-
import type { FdsButtonBaseProps } from './components/Buttons/ButtonBaseProps'
|
|
5
|
-
import type { FdsCopyButtonProps } from './components/Buttons/FdsButtonCopy/types'
|
|
6
|
-
import type { FdsIconButtonProps } from './components/Buttons/FdsButtonIcon/types'
|
|
7
|
-
import type { FdsIconProps } from './components/FdsIcon/types'
|
|
8
|
-
import type { FdsSpinnerProps } from './components/FdsSpinner/types'
|
|
9
|
-
import type { FdsRadioProps } from './components/Form/FdsRadio/types'
|
|
10
|
-
import type { FdsInputProps } from './components/Form/FdsInput/types'
|
|
11
|
-
import type { FdsCheckboxProps } from './components/Form/FdsCheckbox/types'
|
|
12
|
-
import type { FdsTextareaProps } from './components/Form/FdsTextarea/types'
|
|
13
|
-
import type { FdsSelectProps } from './components/Form/FdsSelect/types'
|
|
14
|
-
import type { FdsTableProps } from './components/Table/FdsTable/types'
|
|
15
|
-
import type { FdsTableHeadProps } from './components/Table/FdsTableHead/types'
|
|
16
|
-
import type { FdsContentBlockProps } from './components/Blocks/FdsBlockContent/types'
|
|
17
|
-
import type { FdsBlockInfoProps } from './components/Blocks/FdsBlockInfo/types'
|
|
18
|
-
import type { FdsAlertBlockProps } from './components/Blocks/FdsBlockAlert/types'
|
|
19
|
-
import type { FdsExpanderBlockProps } from './components/Blocks/FdsBlockExpander/types'
|
|
20
|
-
import type { FdsInteractionBlockProps } from './components/Blocks/FdsBlockLink/types'
|
|
21
|
-
import type { FdsStickerProps } from './components/FdsSticker/types'
|
|
22
|
-
import type { FdsTabsProps } from './components/Tabs/FdsTabs/types'
|
|
23
|
-
import type { FdsTabsItemProps } from './components/Tabs/FdsTabsItem/types'
|
|
24
|
-
import type { FdsModalProps } from './components/FdsModal/types'
|
|
25
|
-
import type { FdsPaginationProps } from './components/FdsPagination/types'
|
|
26
|
-
import type { FdsSearchSelectProps } from './components/FdsSearchSelect/types'
|
|
27
|
-
import type { FdsTruncatedTextProps } from './components/FdsTruncatedText/types'
|
|
28
|
-
import type { FdsHeadingProps } from './components/Typography/FdsHeading/types'
|
|
29
|
-
import type { FdsTextProps } from './components/Typography/FdsText/types'
|
|
30
|
-
import type { FdsListHeadingProps } from './components/Typography/FdsListHeading/types'
|
|
31
|
-
|
|
32
|
-
// Derive button prop types from base props
|
|
33
|
-
type FdsButtonPrimaryProps = FdsButtonBaseProps
|
|
34
|
-
type FdsButtonSecondaryProps = FdsButtonBaseProps
|
|
35
|
-
type FdsButtonMinorProps = FdsButtonBaseProps
|
|
36
|
-
type FdsButtonDownloadProps = FdsButtonBaseProps
|
|
37
|
-
|
|
38
|
-
declare module '@vue/runtime-core' {
|
|
39
|
-
export interface GlobalComponents {
|
|
40
|
-
FdsTreeView: DefineComponent<FdsTreeViewProps>
|
|
41
|
-
FdsButtonPrimary: DefineComponent<FdsButtonPrimaryProps>
|
|
42
|
-
FdsButtonSecondary: DefineComponent<FdsButtonSecondaryProps>
|
|
43
|
-
FdsButtonMinor: DefineComponent<FdsButtonMinorProps>
|
|
44
|
-
FdsButtonIcon: DefineComponent<FdsIconButtonProps>
|
|
45
|
-
FdsButtonCopy: DefineComponent<FdsCopyButtonProps>
|
|
46
|
-
FdsButtonDownload: DefineComponent<FdsButtonDownloadProps>
|
|
47
|
-
FdsIcon: DefineComponent<FdsIconProps>
|
|
48
|
-
FdsSpinner: DefineComponent<FdsSpinnerProps>
|
|
49
|
-
FdsRadio: DefineComponent<FdsRadioProps>
|
|
50
|
-
FdsInput: DefineComponent<FdsInputProps>
|
|
51
|
-
FdsCheckbox: DefineComponent<FdsCheckboxProps>
|
|
52
|
-
FdsTextarea: DefineComponent<FdsTextareaProps>
|
|
53
|
-
FdsSelect: DefineComponent<FdsSelectProps>
|
|
54
|
-
FdsTable: DefineComponent<FdsTableProps>
|
|
55
|
-
FdsTableHead: DefineComponent<FdsTableHeadProps>
|
|
56
|
-
FdsBlockContent: DefineComponent<FdsContentBlockProps>
|
|
57
|
-
FdsBlockInfo: DefineComponent<FdsBlockInfoProps>
|
|
58
|
-
FdsBlockAlert: DefineComponent<FdsAlertBlockProps>
|
|
59
|
-
FdsBlockExpander: DefineComponent<FdsExpanderBlockProps>
|
|
60
|
-
FdsBlockLink: DefineComponent<FdsInteractionBlockProps>
|
|
61
|
-
FdsSticker: DefineComponent<FdsStickerProps>
|
|
62
|
-
FdsTabs: DefineComponent<FdsTabsProps>
|
|
63
|
-
FdsTabsItem: DefineComponent<FdsTabsItemProps>
|
|
64
|
-
FdsModal: DefineComponent<FdsModalProps>
|
|
65
|
-
FdsPagination: DefineComponent<FdsPaginationProps>
|
|
66
|
-
FdsSearchSelect: DefineComponent<FdsSearchSelectProps>
|
|
67
|
-
FdsTruncatedText: DefineComponent<FdsTruncatedTextProps>
|
|
68
|
-
FdsHeading: DefineComponent<FdsHeadingProps>
|
|
69
|
-
FdsSeparator: DefineComponent<Record<string, never>>
|
|
70
|
-
FdsText: DefineComponent<FdsTextProps>
|
|
71
|
-
FdsListHeading: DefineComponent<FdsListHeadingProps>
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export {}
|