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 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<FdsButtonBaseProps>
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 { FdsButtonBaseProps } from '../ButtonBaseProps';
2
- declare const _default: import('vue').DefineComponent<FdsButtonBaseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
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<FdsButtonBaseProps> & 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" | "lg";
8
+ size: "sm" | "md";
9
9
  dataTestid: string;
10
10
  icon: string;
11
11
  loading: boolean;
@@ -0,0 +1,4 @@
1
+ import { FdsButtonBaseProps } from '../ButtonBaseProps';
2
+ export interface FdsButtonTertiaryProps extends Omit<FdsButtonBaseProps, 'size'> {
3
+ size?: 'sm' | 'md';
4
+ }
@@ -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: "text-sm h-7 px-4",
5614
- md: "text-base h-12 px-6",
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) {