fds-vue-core 8.5.0 → 8.5.2
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 +2 -1
- package/dist/components/Buttons/FdsButtonTertiary/FdsButtonTertiary.vue.d.ts +4 -4
- package/dist/components/Buttons/FdsButtonTertiary/types.d.ts +4 -0
- package/dist/fds-vue-core.cjs.js +4 -5
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.css +1 -1
- package/dist/fds-vue-core.es.js +4 -5
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/components/Buttons/FdsButtonTertiary/FdsButtonTertiary.stories.ts +2 -2
- package/src/components/Buttons/FdsButtonTertiary/FdsButtonTertiary.vue +5 -6
- package/src/components/Buttons/FdsButtonTertiary/types.ts +5 -0
- package/src/index.ts +2 -2
package/components.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import type { FdsExpanderBlockProps } from './dist/components/Blocks/FdsBlockExp
|
|
|
12
12
|
import type { FdsBlockInfoProps } from './dist/components/Blocks/FdsBlockInfo/types'
|
|
13
13
|
import type { FdsInteractionBlockProps } from './dist/components/Blocks/FdsBlockLink/types'
|
|
14
14
|
import type { FdsButtonBaseProps } from './dist/components/Buttons/ButtonBaseProps'
|
|
15
|
+
import type { FdsButtonTertiaryProps } from './dist/components/Buttons/FdsButtonTertiary/types'
|
|
15
16
|
import type { FdsCopyButtonProps } from './dist/components/Buttons/FdsButtonCopy/types'
|
|
16
17
|
import type { FdsButtonDownloadProps } from './dist/components/Buttons/FdsButtonDownload/types'
|
|
17
18
|
import type { FdsIconButtonProps } from './dist/components/Buttons/FdsButtonIcon/types'
|
|
@@ -54,7 +55,7 @@ declare module 'vue' {
|
|
|
54
55
|
FdsTreeView: DefineComponent<WrapperProps>
|
|
55
56
|
FdsButtonPrimary: DefineComponent<FdsButtonBaseProps>
|
|
56
57
|
FdsButtonSecondary: DefineComponent<FdsButtonBaseProps>
|
|
57
|
-
FdsButtonTertiary: DefineComponent<
|
|
58
|
+
FdsButtonTertiary: DefineComponent<FdsButtonTertiaryProps>
|
|
58
59
|
FdsButtonMinor: DefineComponent<FdsButtonBaseProps>
|
|
59
60
|
FdsButtonIcon: DefineComponent<FdsIconButtonProps>
|
|
60
61
|
FdsButtonCopy: DefineComponent<FdsCopyButtonProps>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: import('vue').DefineComponent<
|
|
1
|
+
import { FdsButtonTertiaryProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<FdsButtonTertiaryProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
3
|
click: (ev: MouseEvent) => any;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<FdsButtonTertiaryProps> & Readonly<{
|
|
5
5
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
7
|
type: "button" | "submit" | "reset";
|
|
8
|
-
size: "sm" | "md"
|
|
8
|
+
size: "sm" | "md";
|
|
9
9
|
dataTestid: string;
|
|
10
10
|
icon: string;
|
|
11
11
|
loading: boolean;
|
package/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -5584,6 +5584,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
5584
5584
|
},
|
|
5585
5585
|
__name: "FdsButtonTertiary",
|
|
5586
5586
|
props: {
|
|
5587
|
+
size: { default: "md" },
|
|
5587
5588
|
text: {},
|
|
5588
5589
|
loading: { type: Boolean, default: false },
|
|
5589
5590
|
disabled: { type: Boolean },
|
|
@@ -5592,7 +5593,6 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
5592
5593
|
icon: { default: void 0 },
|
|
5593
5594
|
iconPos: { default: "left" },
|
|
5594
5595
|
iconSize: { default: 24 },
|
|
5595
|
-
size: { default: "md" },
|
|
5596
5596
|
textSelection: { type: Boolean, default: false },
|
|
5597
5597
|
as: { default: "button" },
|
|
5598
5598
|
href: {},
|
|
@@ -5610,9 +5610,8 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
5610
5610
|
const rootClasses = vue.computed(() => ["inline-block transition-opacity duration-200", props.block && "block w-full"]);
|
|
5611
5611
|
const externalClass = vue.computed(() => attrs.class);
|
|
5612
5612
|
const sizeClasses = {
|
|
5613
|
-
sm: "
|
|
5614
|
-
md: "text-base
|
|
5615
|
-
lg: "text-lg h-[68px] px-8"
|
|
5613
|
+
sm: "py-1 px-3",
|
|
5614
|
+
md: "text-base py-1 px-4 leading-6"
|
|
5616
5615
|
};
|
|
5617
5616
|
const blockElClasses = vue.computed(() => props.block && "w-full justify-center");
|
|
5618
5617
|
const iconOrderClasses = vue.computed(() => props.icon && props.iconPos === "right" ? "order-2" : "");
|
|
@@ -5624,7 +5623,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
5624
5623
|
props.textSelection && "select-text",
|
|
5625
5624
|
(props.icon || props.text) && "gap-2",
|
|
5626
5625
|
props.loading && "bg-blue_t-200!",
|
|
5627
|
-
disabled.value ? "cursor-not-allowed" : "cursor-pointer"
|
|
5626
|
+
disabled.value ? "cursor-not-allowed opacity-50" : "cursor-pointer"
|
|
5628
5627
|
]);
|
|
5629
5628
|
const onClick = (ev) => {
|
|
5630
5629
|
if (disabled.value || props.loading) {
|