fds-vue-core 2.0.53 → 2.0.55
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/dist/components/Buttons/FdsButtonIcon/FdsButtonIcon.stories.d.ts.map +1 -1
- package/dist/components/Buttons/FdsButtonIcon/FdsButtonIcon.vue.d.ts +1 -1
- package/dist/components/Buttons/FdsButtonIcon/FdsButtonIcon.vue.d.ts.map +1 -1
- package/dist/components/Buttons/FdsButtonIcon/types.d.ts +1 -1
- package/dist/fds-vue-core.cjs.js +18 -17
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js +18 -17
- package/dist/fds-vue-core.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FdsButtonIcon.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/FdsButtonIcon/FdsButtonIcon.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAG/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,
|
|
1
|
+
{"version":3,"file":"FdsButtonIcon.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/FdsButtonIcon/FdsButtonIcon.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAG/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAuCpC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA"}
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<FdsIconButtonProps, {}, {}
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<FdsIconButtonProps> & Readonly<{
|
|
5
5
|
onClick?: (ev: MouseEvent) => any;
|
|
6
6
|
}>, {
|
|
7
|
-
size:
|
|
7
|
+
size: number;
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
type: "button" | "submit" | "reset";
|
|
10
10
|
loading: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FdsButtonIcon.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/FdsButtonIcon/FdsButtonIcon.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FdsButtonIcon.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/FdsButtonIcon/FdsButtonIcon.vue"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;;;AAkHjD,wBAIG"}
|
package/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -1091,7 +1091,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
1091
1091
|
__name: "FdsButtonIcon",
|
|
1092
1092
|
props: {
|
|
1093
1093
|
icon: {},
|
|
1094
|
-
size: { default:
|
|
1094
|
+
size: { default: 24 },
|
|
1095
1095
|
disabled: { type: Boolean, default: false },
|
|
1096
1096
|
loading: { type: Boolean, default: false },
|
|
1097
1097
|
type: { default: "button" },
|
|
@@ -1102,6 +1102,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
1102
1102
|
emits: ["click"],
|
|
1103
1103
|
setup(__props, { emit: __emit }) {
|
|
1104
1104
|
const props = __props;
|
|
1105
|
+
const iconSize = vue.computed(() => props.size - 4);
|
|
1105
1106
|
const emit = __emit;
|
|
1106
1107
|
const buttonClasses = vue.computed(() => [
|
|
1107
1108
|
"inline-flex items-center justify-center rounded-md p-[2px] max-w-[48px] max-h-[48px] transition-colors duration-200 fill-blue-500 hover:bg-blue_t-100 active:bg-blue_t-200 focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500",
|
|
@@ -1126,11 +1127,11 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
1126
1127
|
}, [
|
|
1127
1128
|
!_ctx.loading ? (vue.openBlock(), vue.createBlock(_sfc_main$u, {
|
|
1128
1129
|
key: 0,
|
|
1129
|
-
size:
|
|
1130
|
+
size: iconSize.value,
|
|
1130
1131
|
name: _ctx.icon
|
|
1131
1132
|
}, null, 8, ["size", "name"])) : (vue.openBlock(), vue.createBlock(_sfc_main$u, {
|
|
1132
1133
|
key: 1,
|
|
1133
|
-
size:
|
|
1134
|
+
size: iconSize.value,
|
|
1134
1135
|
name: "spinner",
|
|
1135
1136
|
class: "animate-spin"
|
|
1136
1137
|
}, null, 8, ["size"]))
|
|
@@ -1441,7 +1442,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
1441
1442
|
onClick: _cache[0] || (_cache[0] = ($event) => vue.unref(treeState)?.toggleExpandNode(props.nodeId)),
|
|
1442
1443
|
ariaLabel: childrenToggleAriaLabel(props.title),
|
|
1443
1444
|
icon: vue.unref(treeState)?.getNodeIcon(props.nodeId, props.nodeExpandIcon, props.nodeCollapseIcon) ?? props.nodeExpandIcon,
|
|
1444
|
-
size:
|
|
1445
|
+
size: 24,
|
|
1445
1446
|
class: "fill-blue-500 mr-3 items-center"
|
|
1446
1447
|
}, null, 8, ["ariaLabel", "icon"])) : vue.createCommentVNode("", true),
|
|
1447
1448
|
!hasChildrenNodes.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -1472,7 +1473,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
1472
1473
|
ref_key: "triggerRef",
|
|
1473
1474
|
ref: triggerRef,
|
|
1474
1475
|
icon: "more",
|
|
1475
|
-
size:
|
|
1476
|
+
size: 24,
|
|
1476
1477
|
onClick: togglePopover,
|
|
1477
1478
|
ariaLabel: `Fler val för ${_ctx.title}`,
|
|
1478
1479
|
class: "items-center"
|
|
@@ -1533,7 +1534,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
1533
1534
|
vue.createVNode(_sfc_main$t, {
|
|
1534
1535
|
icon: "cross",
|
|
1535
1536
|
id: "tree-popover-close-button",
|
|
1536
|
-
size:
|
|
1537
|
+
size: 24,
|
|
1537
1538
|
onClick: _cache[3] || (_cache[3] = ($event) => closePopover()),
|
|
1538
1539
|
class: "fill-blue-500",
|
|
1539
1540
|
ariaLabel: "Stäng"
|
|
@@ -1671,7 +1672,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
1671
1672
|
}
|
|
1672
1673
|
});
|
|
1673
1674
|
const _hoisted_1$k = ["aria-disabled"];
|
|
1674
|
-
const elBase$2 = "box-border appearance-none inline-flex items-center justify-center cursor-pointer shadow-none p-1 text-base h-7 select-none m-0 rounded-md textcenter align-middle whitespace-nowrap no-underline transition-[box-shadow,border-color,background-color] duration-200 font-main font-bold text-base leading-5 tracking-normal focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500";
|
|
1675
|
+
const elBase$2 = "box-border appearance-none inline-flex items-center justify-center w-full cursor-pointer shadow-none p-1 text-base h-7 select-none m-0 rounded-md textcenter align-middle whitespace-nowrap no-underline transition-[box-shadow,border-color,background-color] duration-200 font-main font-bold text-base leading-5 tracking-normal focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500";
|
|
1675
1676
|
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
1676
1677
|
__name: "FdsButtonMinor",
|
|
1677
1678
|
props: {
|
|
@@ -2154,7 +2155,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
2154
2155
|
}
|
|
2155
2156
|
});
|
|
2156
2157
|
const _hoisted_1$g = ["aria-disabled"];
|
|
2157
|
-
const elBase$1 = "box-border appearance-none inline-flex items-center justify-center cursor-pointer select-none min-h-0 min-w-12 m-0 rounded-lg text-center align-middle whitespace-nowrap no-underline shadow-[0_2px_4px_rgba(12,72,153,0.12)] transition-[box-shadow,border-color,background-color] duration-200 font-main font-bold text-base leading-5 tracking-normal focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500";
|
|
2158
|
+
const elBase$1 = "box-border appearance-none inline-flex items-center justify-center cursor-pointer select-none w-full min-h-0 min-w-12 m-0 rounded-lg text-center align-middle whitespace-nowrap no-underline shadow-[0_2px_4px_rgba(12,72,153,0.12)] transition-[box-shadow,border-color,background-color] duration-200 font-main font-bold text-base leading-5 tracking-normal focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500";
|
|
2158
2159
|
const variantClasses$1 = "bg-red-600 border border-red-700 text-white hover:bg-red-700 active:bg-red-800 active:border-red-800";
|
|
2159
2160
|
const iconFillClass$1 = "fill-white";
|
|
2160
2161
|
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -2247,7 +2248,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
2247
2248
|
}
|
|
2248
2249
|
});
|
|
2249
2250
|
const _hoisted_1$f = ["aria-disabled"];
|
|
2250
|
-
const elBase = "box-border appearance-none inline-flex items-center justify-center cursor-pointer select-none min-h-0 min-w-12 m-0 rounded-lg text-center align-middle whitespace-nowrap no-underline shadow-[0_2px_4px_rgba(12,72,153,0.12)] transition-[box-shadow,border-color,background-color] duration-200 font-main font-bold text-base leading-5 tracking-normal focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500";
|
|
2251
|
+
const elBase = "box-border appearance-none inline-flex items-center justify-center cursor-pointer select-none w-full min-h-0 min-w-12 m-0 rounded-lg text-center align-middle whitespace-nowrap no-underline shadow-[0_2px_4px_rgba(12,72,153,0.12)] transition-[box-shadow,border-color,background-color] duration-200 font-main font-bold text-base leading-5 tracking-normal focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500";
|
|
2251
2252
|
const variantClasses = "bg-white border-2 border-blue-500 text-blue-600 hover:border-blue-600 active:bg-blue-600 active:border-blue-600 active:text-white";
|
|
2252
2253
|
const iconFillClass = "fill-blue-500";
|
|
2253
2254
|
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -2449,7 +2450,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
2449
2450
|
props.disabled && "opacity-20 pointer-events-none"
|
|
2450
2451
|
]);
|
|
2451
2452
|
const elBase2 = vue.computed(() => [
|
|
2452
|
-
"box-border appearance-none inline-flex items-center justify-center shadow-none p-1 text-base h-7",
|
|
2453
|
+
"box-border appearance-none w-full inline-flex items-center justify-center shadow-none p-1 text-base h-7",
|
|
2453
2454
|
"select-none m-0 rounded-md align-middle whitespace-nowrap no-underline",
|
|
2454
2455
|
"transition-[box-shadow,border-color,background-color] duration-200 font-main text-base",
|
|
2455
2456
|
"leading-5 tracking-normal"
|
|
@@ -3028,7 +3029,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
3028
3029
|
_ctx.closeable ? (vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
3029
3030
|
key: 0,
|
|
3030
3031
|
icon: "cross",
|
|
3031
|
-
size:
|
|
3032
|
+
size: 24,
|
|
3032
3033
|
onClick: handleClose,
|
|
3033
3034
|
ariaLabel: closeLabel.value,
|
|
3034
3035
|
class: vue.normalizeClass(["fill-gray-900! hover:bg-gray-100 active:bg-gray-200"])
|
|
@@ -3036,7 +3037,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
3036
3037
|
_ctx.collapsable ? (vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
3037
3038
|
key: 1,
|
|
3038
3039
|
icon: "arrowDown",
|
|
3039
|
-
size:
|
|
3040
|
+
size: 24,
|
|
3040
3041
|
onClick: handleToggle,
|
|
3041
3042
|
ariaLabel: isExpanded.value ? collapseLabel.value : expandLabel.value,
|
|
3042
3043
|
class: vue.normalizeClass([
|
|
@@ -3640,7 +3641,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3640
3641
|
!_ctx.strict ? (vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
3641
3642
|
key: 0,
|
|
3642
3643
|
icon: "cross",
|
|
3643
|
-
size:
|
|
3644
|
+
size: 24,
|
|
3644
3645
|
onClick: _cache[0] || (_cache[0] = ($event) => handleClose("icon")),
|
|
3645
3646
|
ariaLabel: closeLabel.value,
|
|
3646
3647
|
class: "ml-4"
|
|
@@ -3756,7 +3757,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3756
3757
|
})) : (vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
3757
3758
|
key: 1,
|
|
3758
3759
|
icon: "first",
|
|
3759
|
-
size:
|
|
3760
|
+
size: 24,
|
|
3760
3761
|
disabled: _ctx.current === 1,
|
|
3761
3762
|
ariaDisabled: _ctx.current === 1,
|
|
3762
3763
|
class: vue.normalizeClass([{ "hidden!": _ctx.current === 1 }, "w-8 h-8 sm:w-12 sm:h-12"]),
|
|
@@ -3769,7 +3770,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3769
3770
|
})) : (vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
3770
3771
|
key: 3,
|
|
3771
3772
|
icon: "arrowLeft",
|
|
3772
|
-
size:
|
|
3773
|
+
size: 24,
|
|
3773
3774
|
disabled: _ctx.current === 1,
|
|
3774
3775
|
ariaDisabled: _ctx.current === 1,
|
|
3775
3776
|
class: vue.normalizeClass([{ "hidden!": _ctx.current === 1 }, "w-8 h-8 sm:w-12 sm:h-12"]),
|
|
@@ -3803,7 +3804,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3803
3804
|
})) : (vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
3804
3805
|
key: 1,
|
|
3805
3806
|
icon: "arrowRight",
|
|
3806
|
-
size:
|
|
3807
|
+
size: 24,
|
|
3807
3808
|
disabled: _ctx.current === _ctx.max,
|
|
3808
3809
|
ariaDisabled: _ctx.current === _ctx.max,
|
|
3809
3810
|
class: vue.normalizeClass([{ "hidden!": _ctx.current === _ctx.max }, "w-8 h-8 sm:w-12 sm:h-12"]),
|
|
@@ -3816,7 +3817,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3816
3817
|
})) : (vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
3817
3818
|
key: 3,
|
|
3818
3819
|
icon: "last",
|
|
3819
|
-
size:
|
|
3820
|
+
size: 24,
|
|
3820
3821
|
disabled: _ctx.current === _ctx.max,
|
|
3821
3822
|
ariaDisabled: _ctx.current === _ctx.max,
|
|
3822
3823
|
class: vue.normalizeClass([{ "hidden!": _ctx.current === _ctx.max }, "w-8 h-8 sm:w-12 sm:h-12"]),
|