fds-vue-core 7.1.5 → 7.1.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.
Files changed (172) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/assets/icons.d.ts +4 -0
  3. package/dist/assets/logos.d.ts +4 -0
  4. package/dist/components/Blocks/FdsBlockAlert/FdsBlockAlert.stories.d.ts +8 -0
  5. package/dist/components/Blocks/FdsBlockAlert/FdsBlockAlert.vue.d.ts +36 -0
  6. package/dist/components/Blocks/FdsBlockAlert/types.d.ts +11 -0
  7. package/dist/components/Blocks/FdsBlockContent/FdsBlockContent.stories.d.ts +8 -0
  8. package/dist/components/Blocks/FdsBlockContent/FdsBlockContent.vue.d.ts +28 -0
  9. package/dist/components/Blocks/FdsBlockContent/types.d.ts +7 -0
  10. package/dist/components/Blocks/FdsBlockExpander/FdsBlockExpander.stories.d.ts +11 -0
  11. package/dist/components/Blocks/FdsBlockExpander/FdsBlockExpander.vue.d.ts +36 -0
  12. package/dist/components/Blocks/FdsBlockExpander/types.d.ts +13 -0
  13. package/dist/components/Blocks/FdsBlockInfo/FdsBlockInfo.stories.d.ts +8 -0
  14. package/dist/components/Blocks/FdsBlockInfo/FdsBlockInfo.vue.d.ts +30 -0
  15. package/dist/components/Blocks/FdsBlockInfo/types.d.ts +8 -0
  16. package/dist/components/Blocks/FdsBlockLink/FdsBlockLink.stories.d.ts +110 -0
  17. package/dist/components/Blocks/FdsBlockLink/FdsBlockLink.vue.d.ts +35 -0
  18. package/dist/components/Blocks/FdsBlockLink/types.d.ts +16 -0
  19. package/dist/components/Buttons/ButtonBaseProps.d.ts +21 -0
  20. package/dist/components/Buttons/FdsButtonCopy/FdsButtonCopy.stories.d.ts +6 -0
  21. package/dist/components/Buttons/FdsButtonCopy/FdsButtonCopy.vue.d.ts +10 -0
  22. package/dist/components/Buttons/FdsButtonCopy/types.d.ts +10 -0
  23. package/dist/components/Buttons/FdsButtonDownload/FdsButtonDownload.stories.d.ts +9 -0
  24. package/dist/components/Buttons/FdsButtonDownload/FdsButtonDownload.vue.d.ts +15 -0
  25. package/dist/components/Buttons/FdsButtonDownload/types.d.ts +20 -0
  26. package/dist/components/Buttons/FdsButtonIcon/FdsButtonIcon.stories.d.ts +6 -0
  27. package/dist/components/Buttons/FdsButtonIcon/FdsButtonIcon.vue.d.ts +12 -0
  28. package/dist/components/Buttons/FdsButtonIcon/types.d.ts +8 -0
  29. package/dist/components/Buttons/FdsButtonMinor/FdsButtonMinor.stories.d.ts +6 -0
  30. package/dist/components/Buttons/FdsButtonMinor/FdsButtonMinor.vue.d.ts +19 -0
  31. package/dist/components/Buttons/FdsButtonMinor/types.d.ts +4 -0
  32. package/dist/components/Buttons/FdsButtonPrimary/FdsButtonPrimary.stories.d.ts +8 -0
  33. package/dist/components/Buttons/FdsButtonPrimary/FdsButtonPrimary.vue.d.ts +19 -0
  34. package/dist/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.stories.d.ts +6 -0
  35. package/dist/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue.d.ts +19 -0
  36. package/dist/components/FdsDevMode/FdsBreakpointIndicator.vue.d.ts +7 -0
  37. package/dist/components/FdsDevMode/FdsDevMode.stories.d.ts +9 -0
  38. package/dist/components/FdsDevMode/FdsDevMode.vue.d.ts +11 -0
  39. package/dist/components/FdsDevMode/FdsDevModeStorage.vue.d.ts +18 -0
  40. package/dist/components/FdsDevMode/types.d.ts +11 -0
  41. package/dist/components/FdsExitModal/FdsExitModal.vue.d.ts +3 -0
  42. package/dist/components/FdsExitModal/types.d.ts +10 -0
  43. package/dist/components/FdsIcon/FdsIcon.stories.d.ts +7 -0
  44. package/dist/components/FdsIcon/FdsIcon.vue.d.ts +7 -0
  45. package/dist/components/FdsIcon/types.d.ts +9 -0
  46. package/dist/components/FdsModal/FdsModal.stories.d.ts +12 -0
  47. package/dist/components/FdsModal/FdsModal.vue.d.ts +46 -0
  48. package/dist/components/FdsModal/types.d.ts +16 -0
  49. package/dist/components/FdsPagination/FdsPagination.stories.d.ts +10 -0
  50. package/dist/components/FdsPagination/FdsPagination.vue.d.ts +20 -0
  51. package/dist/components/FdsPagination/types.d.ts +18 -0
  52. package/dist/components/FdsPopover/FdsPopover.stories.d.ts +8 -0
  53. package/dist/components/FdsPopover/FdsPopover.vue.d.ts +40 -0
  54. package/dist/components/FdsPopover/types.d.ts +24 -0
  55. package/dist/components/FdsSearchSelect/FdsSearchSelect.stories.d.ts +14 -0
  56. package/dist/components/FdsSearchSelect/FdsSearchSelect.vue.d.ts +142 -0
  57. package/dist/components/FdsSearchSelect/types.d.ts +35 -0
  58. package/dist/components/FdsSearchSelectPro/FdsSearchSelectPro.stories.d.ts +23 -0
  59. package/dist/components/FdsSearchSelectPro/FdsSearchSelectPro.vue.d.ts +163 -0
  60. package/dist/components/FdsSearchSelectPro/types.d.ts +123 -0
  61. package/dist/components/FdsSearchSelectPro/useSearchSelectProItems.d.ts +28 -0
  62. package/dist/components/FdsSpinner/FdsSpinner.stories.d.ts +6 -0
  63. package/dist/components/FdsSpinner/FdsSpinner.vue.d.ts +16 -0
  64. package/dist/components/FdsSpinner/types.d.ts +8 -0
  65. package/dist/components/FdsSticker/FdsSticker.stories.d.ts +14 -0
  66. package/dist/components/FdsSticker/FdsSticker.vue.d.ts +25 -0
  67. package/dist/components/FdsSticker/types.d.ts +6 -0
  68. package/dist/components/FdsTreeView/FdsTreeView.stories.d.ts +6 -0
  69. package/dist/components/FdsTreeView/FdsTreeView.vue.d.ts +31 -0
  70. package/dist/components/FdsTreeView/TreeNode.vue.d.ts +46 -0
  71. package/dist/components/FdsTreeView/types.d.ts +125 -0
  72. package/dist/components/FdsTreeView/useTreeState.d.ts +44 -0
  73. package/dist/components/FdsTreeView/utils.d.ts +3 -0
  74. package/dist/components/FdsTruncatedText/FdsTruncatedText.stories.d.ts +8 -0
  75. package/dist/components/FdsTruncatedText/FdsTruncatedText.vue.d.ts +37 -0
  76. package/dist/components/FdsTruncatedText/types.d.ts +10 -0
  77. package/dist/components/FdsWeekCalendar/FdsWeekCalendar.stories.d.ts +7 -0
  78. package/dist/components/FdsWeekCalendar/FdsWeekCalendar.vue.d.ts +24 -0
  79. package/dist/components/FdsWeekCalendar/WeekDay.vue.d.ts +16 -0
  80. package/dist/components/FdsWeekCalendar/types.d.ts +26 -0
  81. package/dist/components/FdsWeekCalendar/weekCalendar.utils.d.ts +7 -0
  82. package/dist/components/FdsWizard/FdsWizard.vue.d.ts +58 -0
  83. package/dist/components/FdsWizard/types.d.ts +35 -0
  84. package/dist/components/FdsWizard/utils/stepLabelOverlap.d.ts +1 -0
  85. package/dist/components/Form/FdsCheckbox/FdsCheckbox.stories.d.ts +11 -0
  86. package/dist/components/Form/FdsCheckbox/FdsCheckbox.vue.d.ts +47 -0
  87. package/dist/components/Form/FdsCheckbox/types.d.ts +25 -0
  88. package/dist/components/Form/FdsInput/FdsInput.stories.d.ts +18 -0
  89. package/dist/components/Form/FdsInput/FdsInput.vue.d.ts +52 -0
  90. package/dist/components/Form/FdsInput/types.d.ts +48 -0
  91. package/dist/components/Form/FdsRadio/FdsRadio.stories.d.ts +7 -0
  92. package/dist/components/Form/FdsRadio/FdsRadio.vue.d.ts +49 -0
  93. package/dist/components/Form/FdsRadio/types.d.ts +24 -0
  94. package/dist/components/Form/FdsSelect/FdsSelect.stories.d.ts +9 -0
  95. package/dist/components/Form/FdsSelect/FdsSelect.vue.d.ts +50 -0
  96. package/dist/components/Form/FdsSelect/types.d.ts +17 -0
  97. package/dist/components/Form/FdsTextarea/FdsTextarea.stories.d.ts +7 -0
  98. package/dist/components/Form/FdsTextarea/FdsTextarea.vue.d.ts +31 -0
  99. package/dist/components/Form/FdsTextarea/types.d.ts +15 -0
  100. package/dist/components/Table/FdsTable/FdsTable.stories.d.ts +9 -0
  101. package/dist/components/Table/FdsTable/FdsTable.vue.d.ts +24 -0
  102. package/dist/components/Table/FdsTable/types.d.ts +6 -0
  103. package/dist/components/Table/FdsTableHead/FdsTableHead.stories.d.ts +11 -0
  104. package/dist/components/Table/FdsTableHead/FdsTableHead.vue.d.ts +30 -0
  105. package/dist/components/Table/FdsTableHead/types.d.ts +7 -0
  106. package/dist/components/Tabs/FdsTabs/FdsTabs.stories.d.ts +13 -0
  107. package/dist/components/Tabs/FdsTabs/FdsTabs.vue.d.ts +25 -0
  108. package/dist/components/Tabs/FdsTabs/types.d.ts +6 -0
  109. package/dist/components/Tabs/FdsTabsItem/FdsTabsItem.vue.d.ts +34 -0
  110. package/dist/components/Tabs/FdsTabsItem/types.d.ts +18 -0
  111. package/dist/components/Typography/FdsH1/FdsH1.stories.d.ts +7 -0
  112. package/dist/components/Typography/FdsH1/FdsH1.vue.d.ts +6 -0
  113. package/dist/components/Typography/FdsH1/types.d.ts +6 -0
  114. package/dist/components/Typography/FdsH2/FdsH2.stories.d.ts +7 -0
  115. package/dist/components/Typography/FdsH2/FdsH2.vue.d.ts +6 -0
  116. package/dist/components/Typography/FdsH2/types.d.ts +6 -0
  117. package/dist/components/Typography/FdsH3/FdsH3.stories.d.ts +7 -0
  118. package/dist/components/Typography/FdsH3/FdsH3.vue.d.ts +6 -0
  119. package/dist/components/Typography/FdsH3/types.d.ts +6 -0
  120. package/dist/components/Typography/FdsHr/FdsHr.stories.d.ts +6 -0
  121. package/dist/components/Typography/FdsHr/FdsHr.vue.d.ts +5 -0
  122. package/dist/components/Typography/FdsHr/types.d.ts +4 -0
  123. package/dist/components/Typography/FdsLabel/FdsLabel.stories.d.ts +6 -0
  124. package/dist/components/Typography/FdsLabel/FdsLabel.vue.d.ts +23 -0
  125. package/dist/components/Typography/FdsLabel/types.d.ts +4 -0
  126. package/dist/components/Typography/FdsLead/FdsLead.stories.d.ts +6 -0
  127. package/dist/components/Typography/FdsLead/FdsLead.vue.d.ts +23 -0
  128. package/dist/components/Typography/FdsLead/types.d.ts +4 -0
  129. package/dist/components/Typography/FdsListHeading/FdsListHeading.stories.d.ts +10 -0
  130. package/dist/components/Typography/FdsListHeading/FdsListHeading.vue.d.ts +6 -0
  131. package/dist/components/Typography/FdsListHeading/types.d.ts +9 -0
  132. package/dist/components/Typography/FdsMeta/FdsMeta.stories.d.ts +6 -0
  133. package/dist/components/Typography/FdsMeta/FdsMeta.vue.d.ts +23 -0
  134. package/dist/components/Typography/FdsMeta/types.d.ts +4 -0
  135. package/dist/composables/useAttrsWithDefaults.d.ts +21 -0
  136. package/dist/composables/useBoldQuery.d.ts +9 -0
  137. package/dist/composables/useDevMode.d.ts +4 -0
  138. package/dist/composables/useDownload.d.ts +4 -0
  139. package/dist/composables/useElementFinalSize.d.ts +2 -0
  140. package/dist/composables/useExitConfirmationGuard.d.ts +72 -0
  141. package/dist/composables/useHasSlots.d.ts +5 -0
  142. package/dist/composables/useIsPid.d.ts +15 -0
  143. package/dist/composables/useModalDragResize.d.ts +16 -0
  144. package/dist/composables/useRouteScrollPositions.d.ts +18 -0
  145. package/dist/composables/useViewportBreakpoint.d.ts +18 -0
  146. package/dist/fds-vue-core.cjs.js +279 -162
  147. package/dist/fds-vue-core.cjs.js.map +1 -1
  148. package/dist/fds-vue-core.es.js +279 -162
  149. package/dist/fds-vue-core.es.js.map +1 -1
  150. package/dist/helpers/capitalizeFirstLetter.d.ts +1 -0
  151. package/dist/helpers/classValueToString.d.ts +8 -0
  152. package/dist/helpers/fileValidation.d.ts +28 -0
  153. package/dist/index.d.ts +109 -0
  154. package/dist/main.d.ts +0 -0
  155. package/dist/plugin/i18n.d.ts +15 -0
  156. package/dist/plugin/useFdsI18n.d.ts +8 -0
  157. package/dist/tsconfig.build.tsbuildinfo +1 -1
  158. package/package.json +5 -5
  159. package/src/App.vue +3 -1
  160. package/src/components/FdsDevMode/FdsBreakpointIndicator.vue +7 -3
  161. package/src/components/FdsDevMode/FdsDevMode.vue +7 -1
  162. package/src/components/FdsDevMode/FdsDevModeStorage.vue +83 -40
  163. package/src/components/FdsPagination/FdsPagination.vue +2 -1
  164. package/src/components/FdsTreeView/TreeNode.vue +7 -5
  165. package/src/components/FdsWeekCalendar/FdsWeekCalendar.vue +1 -1
  166. package/src/components/FdsWizard/types.ts +1 -1
  167. package/src/components/FdsWizard/utils/stepLabelOverlap.ts +1 -1
  168. package/src/docs/Start/Start.mdx +1 -0
  169. package/src/lang/en.json +32 -0
  170. package/src/lang/sv.json +32 -0
  171. package/src/plugin/i18n.ts +1 -1
  172. package/src/plugin/useFdsI18n.ts +28 -10
@@ -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, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export type IconMap = Record<string, () => string>;
2
+ declare const icons: IconMap;
3
+ export type IconName = keyof IconMap;
4
+ export default icons;
@@ -0,0 +1,4 @@
1
+ import { default as logoFeelgoodColored } from './img/logos/logo-feelgood-colored.svg';
2
+ import { default as logoFeelgoodLight } from './img/logos/logo-feelgood-light.svg';
3
+ import { default as bankid } from './img/logos/bankid.svg';
4
+ export { bankid, logoFeelgoodColored, logoFeelgoodLight };
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as FdsBlockAlert } from './FdsBlockAlert.vue';
3
+ declare const meta: Meta<typeof FdsBlockAlert>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithHeading: Story;
8
+ export declare const Collapsable: Story;
@@ -0,0 +1,36 @@
1
+ import { Slot } from 'vue';
2
+ import { FdsAlertBlockProps } from './types';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: Readonly<{
6
+ default?: Slot;
7
+ }> & {
8
+ default?: Slot;
9
+ };
10
+ refs: {};
11
+ rootEl: any;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<FdsAlertBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ close: () => any;
16
+ toggle: () => any;
17
+ "update:visible": (value: boolean) => any;
18
+ }, string, import('vue').PublicProps, Readonly<FdsAlertBlockProps> & Readonly<{
19
+ onClose?: (() => any) | undefined;
20
+ onToggle?: (() => any) | undefined;
21
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
22
+ }>, {
23
+ dataTestid: string;
24
+ visible: boolean;
25
+ closeable: boolean;
26
+ collapsable: boolean;
27
+ expanded: boolean;
28
+ heading: string;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,11 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { default as icons } from '../../../assets/icons';
3
+ export interface FdsAlertBlockProps extends /* @vue-ignore */ HTMLAttributes {
4
+ visible?: boolean;
5
+ closeable?: boolean;
6
+ collapsable?: boolean;
7
+ expanded?: boolean;
8
+ heading?: string;
9
+ icon?: keyof typeof icons;
10
+ dataTestid?: string;
11
+ }
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as FdsBlockContent } from './FdsBlockContent.vue';
3
+ declare const meta: Meta<typeof FdsBlockContent>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithBorderLeft: Story;
8
+ export declare const Tight: Story;
@@ -0,0 +1,28 @@
1
+ import { Slot } from 'vue';
2
+ import { FdsContentBlockProps } from './types';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: Readonly<{
6
+ default?: Slot;
7
+ headerInfo?: Slot;
8
+ }> & {
9
+ default?: Slot;
10
+ headerInfo?: Slot;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLDivElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<FdsContentBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FdsContentBlockProps> & Readonly<{}>, {
17
+ dataTestid: string;
18
+ heading: string;
19
+ borderLeft: "" | "green" | "yellow" | "red";
20
+ tight: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,7 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ export interface FdsContentBlockProps extends /* @vue-ignore */ HTMLAttributes {
3
+ heading?: string;
4
+ borderLeft?: '' | 'green' | 'yellow' | 'red';
5
+ tight?: boolean;
6
+ dataTestid?: string;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as FdsBlockExpander } from './FdsBlockExpander.vue';
3
+ declare const meta: Meta<typeof FdsBlockExpander>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithIcon: Story;
8
+ export declare const WithSticker: Story;
9
+ export declare const Open: Story;
10
+ export declare const Disabled: Story;
11
+ export declare const MultipleBlocks: Story;
@@ -0,0 +1,36 @@
1
+ import { Slot } from 'vue';
2
+ import { FdsExpanderBlockProps } from './types';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: Readonly<{
6
+ default?: Slot;
7
+ 'extra-row'?: Slot;
8
+ }> & {
9
+ default?: Slot;
10
+ 'extra-row'?: Slot;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<FdsExpanderBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ toggle: () => any;
18
+ }, string, import('vue').PublicProps, Readonly<FdsExpanderBlockProps> & Readonly<{
19
+ onToggle?: (() => any) | undefined;
20
+ }>, {
21
+ disabled: boolean;
22
+ dataTestid: string;
23
+ icon: import('../../..').FdsIconName;
24
+ heading: string;
25
+ open: boolean;
26
+ iconClass: string;
27
+ stickerColor: "green" | "yellow" | "red" | "blue" | "gray" | "t_blue";
28
+ stickerText: string;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { FdsIconName } from '../../FdsIcon/types';
3
+ import { FdsStickerProps } from '../../FdsSticker/types';
4
+ export interface FdsExpanderBlockProps extends /* @vue-ignore */ HTMLAttributes {
5
+ disabled?: boolean;
6
+ heading?: string;
7
+ open?: boolean;
8
+ icon?: FdsIconName;
9
+ iconClass?: string;
10
+ stickerColor?: FdsStickerProps['variant'];
11
+ stickerText?: string;
12
+ dataTestid?: string;
13
+ }
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as FdsBlockInfo } from './FdsBlockInfo.vue';
3
+ declare const meta: Meta<typeof FdsBlockInfo>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithIcon: Story;
8
+ export declare const Secondary: Story;
@@ -0,0 +1,30 @@
1
+ import { Slot } from 'vue';
2
+ import { FdsBlockInfoProps } from './types';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: Readonly<{
6
+ default?: Slot;
7
+ header?: Slot;
8
+ headerInfo?: Slot;
9
+ }> & {
10
+ default?: Slot;
11
+ header?: Slot;
12
+ headerInfo?: Slot;
13
+ };
14
+ refs: {};
15
+ rootEl: HTMLDivElement;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<FdsBlockInfoProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FdsBlockInfoProps> & Readonly<{}>, {
19
+ dataTestid: string;
20
+ icon: import('../../..').FdsIconName;
21
+ iconSize: "large" | "small";
22
+ heading: string;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { FdsIconName } from '../../FdsIcon/types';
3
+ export interface FdsBlockInfoProps extends /* @vue-ignore */ HTMLAttributes {
4
+ heading?: string;
5
+ icon?: FdsIconName;
6
+ iconSize?: 'large' | 'small';
7
+ dataTestid?: string;
8
+ }
@@ -0,0 +1,110 @@
1
+ import { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ title: string;
4
+ component: any;
5
+ tags: string[];
6
+ parameters: {
7
+ docs: {
8
+ source: {
9
+ transform: (_src: string, storyContext: {
10
+ args?: {
11
+ heading?: string;
12
+ icon?: string;
13
+ variant?: "list" | "link";
14
+ disabled?: boolean;
15
+ href?: string;
16
+ interactive?: boolean;
17
+ default?: string;
18
+ as?: "router-link" | "a" | "button";
19
+ target?: string;
20
+ rel?: string;
21
+ download?: string;
22
+ };
23
+ }) => string;
24
+ };
25
+ };
26
+ };
27
+ argTypes: {
28
+ heading: {
29
+ control: {
30
+ type: "text";
31
+ };
32
+ };
33
+ variant: {
34
+ control: {
35
+ type: "select";
36
+ };
37
+ options: string[];
38
+ };
39
+ disabled: {
40
+ control: {
41
+ type: "boolean";
42
+ };
43
+ };
44
+ download: {
45
+ control: {
46
+ type: "text";
47
+ };
48
+ };
49
+ href: {
50
+ control: {
51
+ type: "text";
52
+ };
53
+ };
54
+ target: {
55
+ control: {
56
+ type: "select";
57
+ };
58
+ options: string[];
59
+ };
60
+ rel: {
61
+ control: {
62
+ type: "text";
63
+ };
64
+ };
65
+ icon: {
66
+ control: {
67
+ type: "select";
68
+ };
69
+ options: string[];
70
+ };
71
+ interactive: {
72
+ control: {
73
+ type: "boolean";
74
+ };
75
+ };
76
+ default: {
77
+ control: {
78
+ type: "text";
79
+ };
80
+ };
81
+ as: {
82
+ control: {
83
+ type: "select";
84
+ };
85
+ options: string[];
86
+ };
87
+ };
88
+ args: {
89
+ heading: string;
90
+ variant: string;
91
+ disabled: boolean;
92
+ download: undefined;
93
+ href: string;
94
+ target: undefined;
95
+ rel: undefined;
96
+ icon: undefined;
97
+ interactive: boolean;
98
+ default: string;
99
+ as: string;
100
+ };
101
+ };
102
+ export default meta;
103
+ type Story = StoryObj<any>;
104
+ export declare const Default: Story;
105
+ export declare const WithIcon: Story;
106
+ export declare const WithSticker: Story;
107
+ export declare const Disabled: Story;
108
+ export declare const NonInteractive: Story;
109
+ export declare const ExternalLink: Story;
110
+ export declare const Download: Story;
@@ -0,0 +1,35 @@
1
+ import { Slot } from 'vue';
2
+ import { FdsInteractionBlockProps } from './types';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: Readonly<{
6
+ default?: Slot;
7
+ sticker?: Slot;
8
+ }> & {
9
+ default?: Slot;
10
+ sticker?: Slot;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<FdsInteractionBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ click: (event: Event) => any;
18
+ }, string, import('vue').PublicProps, Readonly<FdsInteractionBlockProps> & Readonly<{
19
+ onClick?: ((event: Event) => any) | undefined;
20
+ }>, {
21
+ disabled: boolean;
22
+ dataTestid: string;
23
+ icon: import('../../..').FdsIconName;
24
+ heading: string;
25
+ variant: "list" | "link";
26
+ interactive: boolean;
27
+ as: "button" | "a" | "router-link";
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
+ export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,16 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { FdsIconName } from '../../FdsIcon/types';
3
+ export interface FdsInteractionBlockProps extends Omit<HTMLAttributes, 'href' | 'target' | 'rel' | 'download'> {
4
+ heading: string;
5
+ arrow?: boolean;
6
+ variant?: 'list' | 'link';
7
+ download?: string;
8
+ href?: string;
9
+ target?: string;
10
+ rel?: string;
11
+ icon?: FdsIconName;
12
+ interactive?: boolean;
13
+ as?: 'button' | 'a' | 'router-link';
14
+ disabled?: boolean;
15
+ dataTestid?: string;
16
+ }
@@ -0,0 +1,21 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { FdsIconName } from '../FdsIcon/types';
3
+ export interface FdsButtonBaseProps extends Omit</* @vue-ignore */ HTMLAttributes, 'type' | 'href' | 'target' | 'rel'> {
4
+ text: string;
5
+ loading?: boolean;
6
+ disabled?: boolean;
7
+ block?: boolean;
8
+ state?: 'hover' | 'focus' | 'active' | undefined;
9
+ icon?: FdsIconName | undefined;
10
+ iconPos?: 'right' | 'left';
11
+ iconSize?: number;
12
+ size?: 'sm' | 'md' | 'lg';
13
+ textSelection?: boolean;
14
+ as?: 'button' | 'a' | 'router-link';
15
+ href?: string | undefined;
16
+ target?: string;
17
+ rel?: string;
18
+ type?: 'button' | 'submit' | 'reset';
19
+ invert?: boolean;
20
+ dataTestid?: string;
21
+ }
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as FdsButtonCopy } from './FdsButtonCopy.vue';
3
+ declare const meta: Meta<typeof FdsButtonCopy>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,10 @@
1
+ import { FdsCopyButtonProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<FdsCopyButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FdsCopyButtonProps> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ value: string;
5
+ dataTestid: string;
6
+ text: string;
7
+ copiedText: string;
8
+ timeoutMs: number;
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ export interface FdsCopyButtonProps extends /* @vue-ignore */ HTMLAttributes {
3
+ value?: string;
4
+ targetId?: string;
5
+ text?: string;
6
+ copiedText?: string;
7
+ timeoutMs?: number;
8
+ disabled?: boolean;
9
+ dataTestid?: string;
10
+ }
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as FdsButtonDownload } from './FdsButtonDownload.vue';
3
+ declare const meta: Meta<typeof FdsButtonDownload>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithText: Story;
8
+ export declare const Loading: Story;
9
+ export declare const Disabled: Story;
@@ -0,0 +1,15 @@
1
+ import { FdsButtonDownloadProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<FdsButtonDownloadProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ click: (ev: MouseEvent) => any;
4
+ }, string, import('vue').PublicProps, Readonly<FdsButtonDownloadProps> & Readonly<{
5
+ onClick?: ((ev: MouseEvent) => any) | undefined;
6
+ }>, {
7
+ disabled: boolean;
8
+ href: string;
9
+ dataTestid: string;
10
+ text: string;
11
+ loading: boolean;
12
+ iconPos: "left" | "right";
13
+ downloadOptions: import('./types').DownloadOptions;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
15
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ type IconPos = 'left' | 'right';
3
+ export interface FdsButtonDownloadProps extends Omit</* @vue-ignore */ HTMLAttributes, 'href'> {
4
+ loading?: boolean;
5
+ iconPos?: IconPos;
6
+ href?: string;
7
+ downloadOptions?: DownloadOptions | undefined;
8
+ text: string;
9
+ disabled?: boolean;
10
+ dataTestid?: string;
11
+ }
12
+ export interface DownloadOptions {
13
+ token: string;
14
+ accept?: string;
15
+ headerAuthKey?: string;
16
+ headerAuthValuePrefix?: string;
17
+ errorHandler?: (error: unknown) => void;
18
+ onFinishCallback?: () => void;
19
+ }
20
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as FdsButtonIcon } from './FdsButtonIcon.vue';
3
+ declare const meta: Meta<typeof FdsButtonIcon>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,12 @@
1
+ import { FdsIconButtonProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<FdsIconButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ click: (ev: MouseEvent) => any;
4
+ }, string, import('vue').PublicProps, Readonly<FdsIconButtonProps> & Readonly<{
5
+ onClick?: ((ev: MouseEvent) => any) | undefined;
6
+ }>, {
7
+ type: "button" | "submit" | "reset";
8
+ size: number;
9
+ dataTestid: string;
10
+ loading: boolean;
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
12
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { ButtonHTMLAttributes } from 'vue';
2
+ import { FdsIconName } from '../../FdsIcon/types';
3
+ export interface FdsIconButtonProps extends /* @vue-ignore */ ButtonHTMLAttributes {
4
+ icon: FdsIconName;
5
+ size?: number;
6
+ loading?: boolean;
7
+ dataTestid?: string;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as FdsButtonMinor } from './FdsButtonMinor.vue';
3
+ declare const meta: Meta<typeof FdsButtonMinor>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,19 @@
1
+ import { FdsButtonMinorProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<FdsButtonMinorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ click: (ev: MouseEvent) => any;
4
+ }, string, import('vue').PublicProps, Readonly<FdsButtonMinorProps> & Readonly<{
5
+ onClick?: ((ev: MouseEvent) => any) | undefined;
6
+ }>, {
7
+ type: "button" | "submit" | "reset";
8
+ dataTestid: string;
9
+ icon: string;
10
+ loading: boolean;
11
+ iconSize: number;
12
+ block: boolean;
13
+ as: "button" | "a" | "router-link";
14
+ state: "hover" | "focus" | "active";
15
+ iconPos: "right" | "left";
16
+ textSelection: boolean;
17
+ invert: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { FdsButtonBaseProps } from '../ButtonBaseProps';
2
+ export interface FdsButtonMinorProps extends FdsButtonBaseProps {
3
+ invert?: boolean;
4
+ }
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as FdsButtonPrimary } from './FdsButtonPrimary.vue';
3
+ declare const meta: Meta<typeof FdsButtonPrimary>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithIcon: Story;
8
+ export declare const Sizes: Story;
@@ -0,0 +1,19 @@
1
+ import { FdsButtonBaseProps } from '../ButtonBaseProps';
2
+ declare const _default: import('vue').DefineComponent<FdsButtonBaseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ click: (ev: MouseEvent) => any;
4
+ }, string, import('vue').PublicProps, Readonly<FdsButtonBaseProps> & Readonly<{
5
+ onClick?: ((ev: MouseEvent) => any) | undefined;
6
+ }>, {
7
+ type: "button" | "submit" | "reset";
8
+ size: "sm" | "md" | "lg";
9
+ dataTestid: string;
10
+ icon: string;
11
+ loading: boolean;
12
+ iconSize: number;
13
+ block: boolean;
14
+ as: "button" | "a" | "router-link";
15
+ state: "hover" | "focus" | "active";
16
+ iconPos: "right" | "left";
17
+ textSelection: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as FdsButtonSecondary } from './FdsButtonSecondary.vue';
3
+ declare const meta: Meta<typeof FdsButtonSecondary>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,19 @@
1
+ import { FdsButtonBaseProps } from '../ButtonBaseProps';
2
+ declare const _default: import('vue').DefineComponent<FdsButtonBaseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ click: (ev: MouseEvent) => any;
4
+ }, string, import('vue').PublicProps, Readonly<FdsButtonBaseProps> & Readonly<{
5
+ onClick?: ((ev: MouseEvent) => any) | undefined;
6
+ }>, {
7
+ type: "button" | "submit" | "reset";
8
+ size: "sm" | "md" | "lg";
9
+ dataTestid: string;
10
+ icon: string;
11
+ loading: boolean;
12
+ iconSize: number;
13
+ block: boolean;
14
+ as: "button" | "a" | "router-link";
15
+ state: "hover" | "focus" | "active";
16
+ iconPos: "right" | "left";
17
+ textSelection: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ popoverClass?: string;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
5
+ containerRef: HTMLDivElement;
6
+ }, HTMLDivElement>;
7
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as FdsDevMode } from './FdsDevMode.vue';
3
+ declare const meta: Meta<typeof FdsDevMode>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Localhost: Story;
7
+ export declare const Development: Story;
8
+ export declare const DevelopmentFeatureBranch: Story;
9
+ export declare const Preprod: Story;