fds-vue-core 2.1.7 → 2.1.9
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 +15 -17
- package/dist/fds-vue-core.cjs.js +3484 -3484
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js +3485 -3485
- package/dist/fds-vue-core.es.js.map +1 -1
- package/package.json +1 -1
- package/src/App.vue +2 -2
- package/src/components/Blocks/FdsBlockAlert/FdsBlockAlert.vue +6 -17
- package/src/components/Blocks/FdsBlockAlert/types.ts +1 -1
- package/src/components/Blocks/FdsBlockContent/FdsBlockContent.vue +3 -10
- package/src/components/Blocks/FdsBlockExpander/FdsBlockExpander.stories.ts +1 -1
- package/src/components/Blocks/FdsBlockExpander/FdsBlockExpander.vue +8 -26
- package/src/components/Blocks/FdsBlockExpander/types.ts +1 -1
- package/src/components/Blocks/FdsBlockInfo/FdsBlockInfo.stories.ts +1 -1
- package/src/components/Blocks/FdsBlockInfo/FdsBlockInfo.vue +2 -2
- package/src/components/Blocks/FdsBlockInfo/types.ts +1 -1
- package/src/components/Blocks/FdsBlockLink/FdsBlockLink.stories.ts +2 -2
- package/src/components/Blocks/FdsBlockLink/FdsBlockLink.vue +7 -25
- package/src/components/Blocks/FdsBlockLink/types.ts +1 -1
- package/src/components/Buttons/ButtonBaseProps.ts +1 -1
- package/src/components/Buttons/FdsButtonCopy/FdsButtonCopy.vue +4 -7
- package/src/components/Buttons/FdsButtonDownload/FdsButtonDownload.vue +5 -15
- package/src/components/Buttons/FdsButtonIcon/FdsButtonIcon.stories.ts +1 -1
- package/src/components/Buttons/FdsButtonIcon/FdsButtonIcon.vue +3 -12
- package/src/components/Buttons/FdsButtonIcon/types.ts +1 -1
- package/src/components/Buttons/FdsButtonMinor/FdsButtonMinor.stories.ts +1 -1
- package/src/components/Buttons/FdsButtonMinor/FdsButtonMinor.vue +7 -21
- package/src/components/Buttons/FdsButtonPrimary/FdsButtonPrimary.stories.ts +1 -1
- package/src/components/Buttons/FdsButtonPrimary/FdsButtonPrimary.vue +7 -20
- package/src/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.stories.ts +1 -1
- package/src/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue +7 -20
- package/src/components/FdsIcon/FdsIcon.stories.ts +1 -1
- package/src/components/FdsIcon/FdsIcon.vue +1 -1
- package/src/components/FdsIcon/types.ts +1 -1
- package/src/components/FdsModal/FdsModal.stories.ts +2 -2
- package/src/components/FdsModal/FdsModal.vue +8 -29
- package/src/components/FdsPagination/FdsPagination.vue +8 -27
- package/src/components/FdsSearchSelect/FdsSearchSelect.vue +6 -6
- package/src/components/FdsTreeView/FdsTreeView.vue +4 -4
- package/src/components/FdsTreeView/TreeNode.vue +3 -3
- package/src/components/FdsTreeView/types.ts +1 -1
- package/src/components/FdsTreeView/useTreeState.ts +1 -1
- package/src/components/FdsTruncatedText/FdsTruncatedText.vue +2 -2
- package/src/components/Form/FdsCheckbox/FdsCheckbox.vue +1 -1
- package/src/components/Form/FdsInput/FdsInput.vue +3 -3
- package/src/components/Form/FdsRadio/FdsRadio.vue +1 -1
- package/src/components/Form/FdsSelect/FdsSelect.vue +7 -21
- package/src/components/Form/FdsTextarea/FdsTextarea.vue +8 -25
- package/src/components/Table/FdsTable/FdsTable.stories.ts +1 -1
- package/src/components/Table/FdsTableHead/FdsTableHead.vue +2 -2
- package/src/components/Tabs/FdsTabs/FdsTabs.stories.ts +2 -2
- package/src/components/Typography/FdsListHeading/FdsListHeading.vue +1 -1
- package/src/index.ts +62 -62
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import FdsButtonIcon from '@/components/Buttons/FdsButtonIcon/FdsButtonIcon.vue'
|
|
3
|
-
import FdsIcon from '@/components/FdsIcon/FdsIcon.vue'
|
|
4
|
-
import { useHasSlot } from '@/composables/useHasSlots'
|
|
5
2
|
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
|
3
|
+
import { useHasSlot } from '../../composables/useHasSlots'
|
|
4
|
+
import FdsButtonIcon from '../Buttons/FdsButtonIcon/FdsButtonIcon.vue'
|
|
5
|
+
import FdsIcon from '../FdsIcon/FdsIcon.vue'
|
|
6
6
|
import type { FdsModalProps } from './types'
|
|
7
7
|
|
|
8
8
|
const props = withDefaults(defineProps<FdsModalProps>(), {
|
|
@@ -211,34 +211,16 @@ onBeforeUnmount(() => {
|
|
|
211
211
|
|
|
212
212
|
<template>
|
|
213
213
|
<Teleport to="body">
|
|
214
|
-
<div
|
|
215
|
-
v-if="isOpen"
|
|
216
|
-
@click="handleBackdropClick"
|
|
217
|
-
:class="modalOuterClasses"
|
|
218
|
-
>
|
|
214
|
+
<div v-if="isOpen" @click="handleBackdropClick" :class="modalOuterClasses">
|
|
219
215
|
<!-- Backdrop -->
|
|
220
216
|
<div class="fixed top-0 left-0 w-full h-full bg-black/34 z-99"></div>
|
|
221
217
|
|
|
222
218
|
<!-- Modal Inner -->
|
|
223
|
-
<div
|
|
224
|
-
class="fds-modal-inner"
|
|
225
|
-
:class="modalInnerClasses"
|
|
226
|
-
role="alertdialog"
|
|
227
|
-
aria-modal="true"
|
|
228
|
-
@click.stop
|
|
229
|
-
>
|
|
219
|
+
<div class="fds-modal-inner" :class="modalInnerClasses" role="alertdialog" aria-modal="true" @click.stop>
|
|
230
220
|
<!-- Header -->
|
|
231
221
|
<div class="flex justify-between mb-4">
|
|
232
|
-
<h3
|
|
233
|
-
|
|
234
|
-
:class="headerTitleClasses"
|
|
235
|
-
>
|
|
236
|
-
<FdsIcon
|
|
237
|
-
v-if="iconName"
|
|
238
|
-
:name="iconName"
|
|
239
|
-
:size="24"
|
|
240
|
-
:class="iconClasses"
|
|
241
|
-
/>
|
|
222
|
+
<h3 tabindex="-1" :class="headerTitleClasses">
|
|
223
|
+
<FdsIcon v-if="iconName" :name="iconName" :size="24" :class="iconClasses" />
|
|
242
224
|
{{ heading }}
|
|
243
225
|
</h3>
|
|
244
226
|
<FdsButtonIcon
|
|
@@ -257,10 +239,7 @@ onBeforeUnmount(() => {
|
|
|
257
239
|
</div>
|
|
258
240
|
|
|
259
241
|
<!-- Footer -->
|
|
260
|
-
<div
|
|
261
|
-
v-if="hasFooterSlot"
|
|
262
|
-
:class="footerClasses"
|
|
263
|
-
>
|
|
242
|
+
<div v-if="hasFooterSlot" :class="footerClasses">
|
|
264
243
|
<slot name="modal-footer" />
|
|
265
244
|
</div>
|
|
266
245
|
</div>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, ref, watch } from 'vue'
|
|
3
|
-
import FdsButtonIcon from '
|
|
4
|
-
import FdsSpinner from '
|
|
5
|
-
import FdsInput from '
|
|
3
|
+
import FdsButtonIcon from '../Buttons/FdsButtonIcon/FdsButtonIcon.vue'
|
|
4
|
+
import FdsSpinner from '../FdsSpinner/FdsSpinner.vue'
|
|
5
|
+
import FdsInput from '../Form/FdsInput/FdsInput.vue'
|
|
6
6
|
import type { FdsPaginationProps } from './types'
|
|
7
7
|
|
|
8
8
|
const props = withDefaults(defineProps<FdsPaginationProps>(), {
|
|
@@ -94,17 +94,10 @@ const handlePagination = (action: 'start' | 'prev' | 'next' | 'end') => {
|
|
|
94
94
|
</script>
|
|
95
95
|
|
|
96
96
|
<template>
|
|
97
|
-
<div
|
|
98
|
-
class="my-6 flex items-between justify-between gap-2"
|
|
99
|
-
:id="inputId"
|
|
100
|
-
>
|
|
97
|
+
<div class="my-6 flex items-between justify-between gap-2" :id="inputId">
|
|
101
98
|
<!-- Prev -->
|
|
102
99
|
<div class="flex items-center justify-start gap-1 w-[100px]">
|
|
103
|
-
<FdsSpinner
|
|
104
|
-
v-if="loading && loadingIndicator === 'start'"
|
|
105
|
-
size="32px"
|
|
106
|
-
color="blue"
|
|
107
|
-
/>
|
|
100
|
+
<FdsSpinner v-if="loading && loadingIndicator === 'start'" size="32px" color="blue" />
|
|
108
101
|
<FdsButtonIcon
|
|
109
102
|
v-else
|
|
110
103
|
icon="first"
|
|
@@ -116,11 +109,7 @@ const handlePagination = (action: 'start' | 'prev' | 'next' | 'end') => {
|
|
|
116
109
|
@click="handlePagination('start')"
|
|
117
110
|
/>
|
|
118
111
|
|
|
119
|
-
<FdsSpinner
|
|
120
|
-
v-if="loading && loadingIndicator === 'prev'"
|
|
121
|
-
size="24px"
|
|
122
|
-
color="blue"
|
|
123
|
-
/>
|
|
112
|
+
<FdsSpinner v-if="loading && loadingIndicator === 'prev'" size="24px" color="blue" />
|
|
124
113
|
<FdsButtonIcon
|
|
125
114
|
v-else
|
|
126
115
|
icon="arrowLeft"
|
|
@@ -157,11 +146,7 @@ const handlePagination = (action: 'start' | 'prev' | 'next' | 'end') => {
|
|
|
157
146
|
|
|
158
147
|
<!-- Next -->
|
|
159
148
|
<div class="flex items-center justify-end gap-1 order-2 sm:order-0 w-[100px]">
|
|
160
|
-
<FdsSpinner
|
|
161
|
-
v-if="loading && loadingIndicator === 'next'"
|
|
162
|
-
size="24px"
|
|
163
|
-
color="blue"
|
|
164
|
-
/>
|
|
149
|
+
<FdsSpinner v-if="loading && loadingIndicator === 'next'" size="24px" color="blue" />
|
|
165
150
|
<FdsButtonIcon
|
|
166
151
|
v-else
|
|
167
152
|
icon="arrowRight"
|
|
@@ -173,11 +158,7 @@ const handlePagination = (action: 'start' | 'prev' | 'next' | 'end') => {
|
|
|
173
158
|
@click="handlePagination('next')"
|
|
174
159
|
/>
|
|
175
160
|
|
|
176
|
-
<FdsSpinner
|
|
177
|
-
v-if="loading && loadingIndicator === 'end'"
|
|
178
|
-
size="24px"
|
|
179
|
-
color="blue"
|
|
180
|
-
/>
|
|
161
|
+
<FdsSpinner v-if="loading && loadingIndicator === 'end'" size="24px" color="blue" />
|
|
181
162
|
<FdsButtonIcon
|
|
182
163
|
v-else
|
|
183
164
|
icon="last"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
|
3
|
-
import { useBoldQuery } from '
|
|
4
|
-
import { isPidString, useIsPid } from '
|
|
5
|
-
import FdsIcon from '
|
|
6
|
-
import FdsPagination from '
|
|
7
|
-
import FdsSpinner from '
|
|
8
|
-
import FdsInput from '
|
|
3
|
+
import { useBoldQuery } from '../../composables/useBoldQuery'
|
|
4
|
+
import { isPidString, useIsPid } from '../../composables/useIsPid'
|
|
5
|
+
import FdsIcon from '../FdsIcon/FdsIcon.vue'
|
|
6
|
+
import FdsPagination from '../FdsPagination/FdsPagination.vue'
|
|
7
|
+
import FdsSpinner from '../FdsSpinner/FdsSpinner.vue'
|
|
8
|
+
import FdsInput from '../Form/FdsInput/FdsInput.vue'
|
|
9
9
|
import type { FdsSearchSelectProps } from './types'
|
|
10
10
|
|
|
11
11
|
const props = withDefaults(defineProps<FdsSearchSelectProps>(), {
|
|
@@ -4,10 +4,10 @@ import useTreeState from './useTreeState'
|
|
|
4
4
|
import TreeNode from './TreeNode.vue'
|
|
5
5
|
import { getTitleFromProperties } from './utils'
|
|
6
6
|
import type { FdsTreeNode as TreeNodeType, FdsNodeShape, WrapperProps } from './types'
|
|
7
|
-
import { useElementFinalSize } from '
|
|
8
|
-
import FdsInput from '
|
|
9
|
-
import FdsBlockContent from '
|
|
10
|
-
import FdsText from '
|
|
7
|
+
import { useElementFinalSize } from '../../composables/useElementFinalSize'
|
|
8
|
+
import FdsInput from '../Form/FdsInput/FdsInput.vue'
|
|
9
|
+
import FdsBlockContent from '../Blocks/FdsBlockContent/FdsBlockContent.vue'
|
|
10
|
+
import FdsText from '../Typography/FdsText/FdsText.vue'
|
|
11
11
|
|
|
12
12
|
const props = withDefaults(defineProps<WrapperProps<Record<string, unknown>>>(), {
|
|
13
13
|
indentation: 36,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, inject, nextTick, reactive, ref, watch } from 'vue'
|
|
3
|
-
import FdsButtonIcon from '
|
|
4
|
-
import FdsCheckbox from '
|
|
5
|
-
import FdsRadio from '
|
|
3
|
+
import FdsButtonIcon from '../Buttons/FdsButtonIcon/FdsButtonIcon.vue'
|
|
4
|
+
import FdsCheckbox from '../Form/FdsCheckbox/FdsCheckbox.vue'
|
|
5
|
+
import FdsRadio from '../Form/FdsRadio/FdsRadio.vue'
|
|
6
6
|
import type { FdsTreeViewProps } from './types'
|
|
7
7
|
import useTreeState from './useTreeState'
|
|
8
8
|
import { getTitleFromProperties } from './utils'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, reactive, ref, watch } from 'vue'
|
|
2
|
+
import type { FdsIconName } from '../FdsIcon/types'
|
|
2
3
|
import type { FdsTreeNode, FdsTreeNodeArray, FdsTreeNodeItem } from './types'
|
|
3
|
-
import type { FdsIconName } from '@/components/FdsIcon/types'
|
|
4
4
|
import { getTitleFromProperties } from './utils'
|
|
5
5
|
|
|
6
6
|
interface TreeStateOptions {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { useHasSlot } from '
|
|
2
|
+
import { useHasSlot } from '../../composables/useHasSlots'
|
|
3
3
|
import { computed, onMounted, ref, watch } from 'vue'
|
|
4
|
-
import FdsButtonMinor from '
|
|
4
|
+
import FdsButtonMinor from '../Buttons/FdsButtonMinor/FdsButtonMinor.vue'
|
|
5
5
|
import type { FdsTruncatedTextProps } from './types'
|
|
6
6
|
|
|
7
7
|
const props = withDefaults(defineProps<FdsTruncatedTextProps>(), {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
|
3
3
|
// @ts-ignore - IMask types may not be resolved in build
|
|
4
4
|
import IMask from 'imask'
|
|
5
|
-
import FdsButtonIcon from '
|
|
6
|
-
import FdsButtonMinor from '
|
|
7
|
-
import FdsIcon from '
|
|
5
|
+
import FdsButtonIcon from '../../Buttons/FdsButtonIcon/FdsButtonIcon.vue'
|
|
6
|
+
import FdsButtonMinor from '../../Buttons/FdsButtonMinor/FdsButtonMinor.vue'
|
|
7
|
+
import FdsIcon from '../../FdsIcon/FdsIcon.vue'
|
|
8
8
|
import type { FdsInputProps } from './types'
|
|
9
9
|
|
|
10
10
|
// Support both v-model (modelValue) and :value prop for backward compatibility
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, useSlots } from 'vue'
|
|
3
|
-
import FdsIcon from '
|
|
3
|
+
import FdsIcon from '../../FdsIcon/FdsIcon.vue'
|
|
4
4
|
import type { FdsSelectProps } from './types'
|
|
5
5
|
|
|
6
6
|
// Support both v-model (modelValue) and :value prop for backward compatibility
|
|
@@ -73,12 +73,10 @@ function handleChange(ev: Event) {
|
|
|
73
73
|
:for="selectId"
|
|
74
74
|
class="block font-bold text-gray-900 cursor-pointer"
|
|
75
75
|
:class="{ 'mb-0': meta, 'mb-1': !meta }"
|
|
76
|
-
>{{ label }}</label
|
|
77
|
-
>
|
|
78
|
-
<div
|
|
79
|
-
v-if="meta"
|
|
80
|
-
class="font-thin mb-1"
|
|
81
76
|
>
|
|
77
|
+
{{ label }}
|
|
78
|
+
</label>
|
|
79
|
+
<div v-if="meta" class="font-thin mb-1">
|
|
82
80
|
{{ meta }}
|
|
83
81
|
</div>
|
|
84
82
|
<div class="relative">
|
|
@@ -93,21 +91,12 @@ function handleChange(ev: Event) {
|
|
|
93
91
|
@change="handleChange"
|
|
94
92
|
@input="(e) => emit('input', e)"
|
|
95
93
|
>
|
|
96
|
-
<option
|
|
97
|
-
v-if="placeholder && !hasDefaultSlot"
|
|
98
|
-
value=""
|
|
99
|
-
disabled
|
|
100
|
-
>
|
|
94
|
+
<option v-if="placeholder && !hasDefaultSlot" value="" disabled>
|
|
101
95
|
{{ placeholder }}
|
|
102
96
|
</option>
|
|
103
97
|
<!-- Render options from prop if no slot is provided -->
|
|
104
98
|
<template v-if="!hasDefaultSlot && options">
|
|
105
|
-
<option
|
|
106
|
-
v-for="option in options"
|
|
107
|
-
:key="option.value"
|
|
108
|
-
:value="option.value"
|
|
109
|
-
:disabled="option.disabled"
|
|
110
|
-
>
|
|
99
|
+
<option v-for="option in options" :key="option.value" :value="option.value" :disabled="option.disabled">
|
|
111
100
|
{{ option.label }}
|
|
112
101
|
</option>
|
|
113
102
|
</template>
|
|
@@ -126,10 +115,7 @@ function handleChange(ev: Event) {
|
|
|
126
115
|
/>
|
|
127
116
|
</div>
|
|
128
117
|
</div>
|
|
129
|
-
<div
|
|
130
|
-
v-if="showInvalidMessage"
|
|
131
|
-
class="text-red-600 font-bold mt-1"
|
|
132
|
-
>
|
|
118
|
+
<div v-if="showInvalidMessage" class="text-red-600 font-bold mt-1">
|
|
133
119
|
{{ invalidMessage }}
|
|
134
120
|
</div>
|
|
135
121
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
|
-
import FdsIcon from '
|
|
3
|
+
import FdsIcon from '../../FdsIcon/FdsIcon.vue'
|
|
4
4
|
import type { FdsTextareaProps } from './types'
|
|
5
5
|
|
|
6
6
|
// Support both v-model (modelValue) and :value prop for backward compatibility
|
|
@@ -62,12 +62,10 @@ const internalValue = computed({
|
|
|
62
62
|
:for="textareaId"
|
|
63
63
|
class="block font-bold text-gray-900 cursor-pointer"
|
|
64
64
|
:class="{ 'mb-0': meta, 'mb-1': !meta }"
|
|
65
|
-
>{{ label }}</label
|
|
66
|
-
>
|
|
67
|
-
<div
|
|
68
|
-
v-if="meta"
|
|
69
|
-
class="font-thin mb-1"
|
|
70
65
|
>
|
|
66
|
+
{{ label }}
|
|
67
|
+
</label>
|
|
68
|
+
<div v-if="meta" class="font-thin mb-1">
|
|
71
69
|
{{ meta }}
|
|
72
70
|
</div>
|
|
73
71
|
<div class="relative">
|
|
@@ -83,28 +81,13 @@ const internalValue = computed({
|
|
|
83
81
|
@input="(e) => emit('input', e)"
|
|
84
82
|
/>
|
|
85
83
|
<div :class="validationIconClasses">
|
|
86
|
-
<FdsIcon
|
|
87
|
-
|
|
88
|
-
name="alert"
|
|
89
|
-
class="fill-red-600"
|
|
90
|
-
/>
|
|
91
|
-
<FdsIcon
|
|
92
|
-
v-if="isValid"
|
|
93
|
-
name="bigSuccess"
|
|
94
|
-
/>
|
|
84
|
+
<FdsIcon v-if="isInvalid" name="alert" class="fill-red-600" />
|
|
85
|
+
<FdsIcon v-if="isValid" name="bigSuccess" />
|
|
95
86
|
</div>
|
|
96
87
|
</div>
|
|
97
|
-
<div
|
|
98
|
-
v-if="showInvalidMessage"
|
|
99
|
-
class="text-red-600 font-bold mt-1"
|
|
100
|
-
>
|
|
88
|
+
<div v-if="showInvalidMessage" class="text-red-600 font-bold mt-1">
|
|
101
89
|
{{ invalidMessage }}
|
|
102
90
|
</div>
|
|
103
91
|
</div>
|
|
104
|
-
<div
|
|
105
|
-
v-if="isValid"
|
|
106
|
-
class="sr-only"
|
|
107
|
-
>
|
|
108
|
-
OK
|
|
109
|
-
</div>
|
|
92
|
+
<div v-if="isValid" class="sr-only">OK</div>
|
|
110
93
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import FdsTableHead from '
|
|
2
|
+
import FdsTableHead from '../FdsTableHead/FdsTableHead.vue'
|
|
3
3
|
import FdsTable from './FdsTable.vue'
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof FdsTable> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { useHasSlot } from '
|
|
2
|
+
import { useHasSlot } from '../../../composables/useHasSlots'
|
|
3
3
|
import { computed } from 'vue'
|
|
4
|
-
import FdsIcon from '
|
|
4
|
+
import FdsIcon from '../../FdsIcon/FdsIcon.vue'
|
|
5
5
|
import type { FdsTableHeadProps } from './types'
|
|
6
6
|
|
|
7
7
|
const props = withDefaults(defineProps<FdsTableHeadProps>(), {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import FdsTabs from '
|
|
3
|
-
import FdsTabsItem from '
|
|
2
|
+
import FdsTabs from './FdsTabs.vue'
|
|
3
|
+
import FdsTabsItem from '../FdsTabsItem/FdsTabsItem.vue'
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof FdsTabs> = {
|
|
6
6
|
title: 'FDS/FdsTabs',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
|
-
import FdsSpinner from '
|
|
3
|
+
import FdsSpinner from '../../FdsSpinner/FdsSpinner.vue'
|
|
4
4
|
import type { FdsListHeadingProps } from './types'
|
|
5
5
|
|
|
6
6
|
const props = withDefaults(defineProps<FdsListHeadingProps>(), {
|
package/src/index.ts
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
// Import styles
|
|
2
|
-
import './style.css'
|
|
3
2
|
import type { App, Plugin } from 'vue'
|
|
3
|
+
import './style.css'
|
|
4
4
|
|
|
5
|
-
// Import all components
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import FdsTabs from '
|
|
33
|
-
import FdsTabsItem from '
|
|
34
|
-
import FdsHeading from '
|
|
35
|
-
import FdsListHeading from '
|
|
36
|
-
import FdsSeparator from '
|
|
37
|
-
import FdsText from '
|
|
5
|
+
// Import all components (use relative paths so consumers don't need our TS alias)
|
|
6
|
+
import FdsBlockAlert from './components/Blocks/FdsBlockAlert/FdsBlockAlert.vue'
|
|
7
|
+
import FdsBlockContent from './components/Blocks/FdsBlockContent/FdsBlockContent.vue'
|
|
8
|
+
import FdsBlockExpander from './components/Blocks/FdsBlockExpander/FdsBlockExpander.vue'
|
|
9
|
+
import FdsBlockInfo from './components/Blocks/FdsBlockInfo/FdsBlockInfo.vue'
|
|
10
|
+
import FdsBlockLink from './components/Blocks/FdsBlockLink/FdsBlockLink.vue'
|
|
11
|
+
import FdsButtonCopy from './components/Buttons/FdsButtonCopy/FdsButtonCopy.vue'
|
|
12
|
+
import FdsButtonDownload from './components/Buttons/FdsButtonDownload/FdsButtonDownload.vue'
|
|
13
|
+
import FdsButtonIcon from './components/Buttons/FdsButtonIcon/FdsButtonIcon.vue'
|
|
14
|
+
import FdsButtonMinor from './components/Buttons/FdsButtonMinor/FdsButtonMinor.vue'
|
|
15
|
+
import FdsButtonPrimary from './components/Buttons/FdsButtonPrimary/FdsButtonPrimary.vue'
|
|
16
|
+
import FdsButtonSecondary from './components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue'
|
|
17
|
+
import FdsIcon from './components/FdsIcon/FdsIcon.vue'
|
|
18
|
+
import FdsModal from './components/FdsModal/FdsModal.vue'
|
|
19
|
+
import FdsPagination from './components/FdsPagination/FdsPagination.vue'
|
|
20
|
+
import FdsSearchSelect from './components/FdsSearchSelect/FdsSearchSelect.vue'
|
|
21
|
+
import FdsSpinner from './components/FdsSpinner/FdsSpinner.vue'
|
|
22
|
+
import FdsSticker from './components/FdsSticker/FdsSticker.vue'
|
|
23
|
+
import FdsTreeView from './components/FdsTreeView/FdsTreeView.vue'
|
|
24
|
+
import FdsTruncatedText from './components/FdsTruncatedText/FdsTruncatedText.vue'
|
|
25
|
+
import FdsCheckbox from './components/Form/FdsCheckbox/FdsCheckbox.vue'
|
|
26
|
+
import FdsInput from './components/Form/FdsInput/FdsInput.vue'
|
|
27
|
+
import FdsRadio from './components/Form/FdsRadio/FdsRadio.vue'
|
|
28
|
+
import FdsSelect from './components/Form/FdsSelect/FdsSelect.vue'
|
|
29
|
+
import FdsTextarea from './components/Form/FdsTextarea/FdsTextarea.vue'
|
|
30
|
+
import FdsTable from './components/Table/FdsTable/FdsTable.vue'
|
|
31
|
+
import FdsTableHead from './components/Table/FdsTableHead/FdsTableHead.vue'
|
|
32
|
+
import FdsTabs from './components/Tabs/FdsTabs/FdsTabs.vue'
|
|
33
|
+
import FdsTabsItem from './components/Tabs/FdsTabsItem/FdsTabsItem.vue'
|
|
34
|
+
import FdsHeading from './components/Typography/FdsHeading/FdsHeading.vue'
|
|
35
|
+
import FdsListHeading from './components/Typography/FdsListHeading/FdsListHeading.vue'
|
|
36
|
+
import FdsSeparator from './components/Typography/FdsSeparator/FdsSeparator.vue'
|
|
37
|
+
import FdsText from './components/Typography/FdsText/FdsText.vue'
|
|
38
38
|
|
|
39
|
-
// Import composables
|
|
40
|
-
import useTreeState from '
|
|
41
|
-
import { useBoldQuery } from '
|
|
42
|
-
import { isPidString, useIsPid } from '
|
|
39
|
+
// Import composables (relative paths)
|
|
40
|
+
import useTreeState from './components/FdsTreeView/useTreeState'
|
|
41
|
+
import { useBoldQuery } from './composables/useBoldQuery'
|
|
42
|
+
import { isPidString, useIsPid } from './composables/useIsPid'
|
|
43
43
|
|
|
44
44
|
// Export individual components
|
|
45
45
|
export {
|
|
@@ -124,30 +124,30 @@ export default FdsVueCorePlugin
|
|
|
124
124
|
|
|
125
125
|
// Export all component types
|
|
126
126
|
// TreeView types (only consumer-facing types)
|
|
127
|
-
export type { FdsNodeShape, FdsTreeNode, FdsTreeViewProps, FdsTreeViewStyles } from '
|
|
127
|
+
export type { FdsNodeShape, FdsTreeNode, FdsTreeViewProps, FdsTreeViewStyles } from './components/FdsTreeView/types'
|
|
128
128
|
|
|
129
129
|
// Button component types
|
|
130
|
-
export type { FdsButtonBaseProps } from '
|
|
131
|
-
export type { FdsCopyButtonProps } from '
|
|
132
|
-
export type { FdsIconButtonProps } from '
|
|
130
|
+
export type { FdsButtonBaseProps } from './components/Buttons/ButtonBaseProps'
|
|
131
|
+
export type { FdsCopyButtonProps } from './components/Buttons/FdsButtonCopy/types'
|
|
132
|
+
export type { FdsIconButtonProps } from './components/Buttons/FdsButtonIcon/types'
|
|
133
133
|
|
|
134
134
|
// Button components that use FdsButtonBaseProps
|
|
135
|
-
import type { FdsButtonBaseProps } from '
|
|
135
|
+
import type { FdsButtonBaseProps } from './components/Buttons/ButtonBaseProps'
|
|
136
136
|
export type FdsButtonPrimaryProps = FdsButtonBaseProps
|
|
137
137
|
export type FdsButtonSecondaryProps = FdsButtonBaseProps
|
|
138
138
|
export type FdsButtonMinorProps = FdsButtonBaseProps
|
|
139
139
|
export type FdsButtonDownloadProps = FdsButtonBaseProps
|
|
140
140
|
|
|
141
141
|
// Form component types
|
|
142
|
-
export type { FdsCheckboxProps } from '
|
|
143
|
-
export type { FdsInputProps } from '
|
|
144
|
-
export type { FdsRadioProps } from '
|
|
145
|
-
export type { FdsSelectProps } from '
|
|
146
|
-
export type { FdsTextareaProps } from '
|
|
142
|
+
export type { FdsCheckboxProps } from './components/Form/FdsCheckbox/types'
|
|
143
|
+
export type { FdsInputProps } from './components/Form/FdsInput/types'
|
|
144
|
+
export type { FdsRadioProps } from './components/Form/FdsRadio/types'
|
|
145
|
+
export type { FdsSelectProps } from './components/Form/FdsSelect/types'
|
|
146
|
+
export type { FdsTextareaProps } from './components/Form/FdsTextarea/types'
|
|
147
147
|
|
|
148
148
|
// Table component types
|
|
149
|
-
export type { FdsTableProps } from '
|
|
150
|
-
export type { FdsTableHeadProps } from '
|
|
149
|
+
export type { FdsTableProps } from './components/Table/FdsTable/types'
|
|
150
|
+
export type { FdsTableHeadProps } from './components/Table/FdsTableHead/types'
|
|
151
151
|
|
|
152
152
|
// Block component types
|
|
153
153
|
// Use relative paths so the generated declarations are resolvable from the published package
|
|
@@ -158,19 +158,19 @@ export type { FdsBlockInfoProps } from './components/Blocks/FdsBlockInfo/types'
|
|
|
158
158
|
export type { FdsInteractionBlockProps } from './components/Blocks/FdsBlockLink/types'
|
|
159
159
|
|
|
160
160
|
// Tab component types
|
|
161
|
-
export type { FdsTabsProps } from '
|
|
162
|
-
export type { FdsTabsItemProps } from '
|
|
161
|
+
export type { FdsTabsProps } from './components/Tabs/FdsTabs/types'
|
|
162
|
+
export type { FdsTabsItemProps } from './components/Tabs/FdsTabsItem/types'
|
|
163
163
|
|
|
164
164
|
// Typography component types
|
|
165
|
-
export type { FdsHeadingProps } from '
|
|
166
|
-
export type { FdsListHeadingProps } from '
|
|
167
|
-
export type { FdsTextProps } from '
|
|
165
|
+
export type { FdsHeadingProps } from './components/Typography/FdsHeading/types'
|
|
166
|
+
export type { FdsListHeadingProps } from './components/Typography/FdsListHeading/types'
|
|
167
|
+
export type { FdsTextProps } from './components/Typography/FdsText/types'
|
|
168
168
|
|
|
169
169
|
// Other component types
|
|
170
|
-
export type { FdsIconName, FdsIconProps } from '
|
|
171
|
-
export type { FdsModalProps } from '
|
|
172
|
-
export type { FdsPaginationProps } from '
|
|
173
|
-
export type { FdsSearchSelectProps } from '
|
|
174
|
-
export type { FdsSpinnerProps } from '
|
|
175
|
-
export type { FdsStickerProps } from '
|
|
176
|
-
export type { FdsTruncatedTextProps } from '
|
|
170
|
+
export type { FdsIconName, FdsIconProps } from './components/FdsIcon/types'
|
|
171
|
+
export type { FdsModalProps } from './components/FdsModal/types'
|
|
172
|
+
export type { FdsPaginationProps } from './components/FdsPagination/types'
|
|
173
|
+
export type { FdsSearchSelectProps } from './components/FdsSearchSelect/types'
|
|
174
|
+
export type { FdsSpinnerProps } from './components/FdsSpinner/types'
|
|
175
|
+
export type { FdsStickerProps } from './components/FdsSticker/types'
|
|
176
|
+
export type { FdsTruncatedTextProps } from './components/FdsTruncatedText/types'
|