fds-vue-core 2.0.52 → 2.0.54
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/ButtonBaseProps.d.ts +1 -1
- package/dist/components/Buttons/ButtonBaseProps.d.ts.map +1 -1
- 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/components/Buttons/FdsButtonPrimary/FdsButtonPrimary.vue.d.ts +1 -1
- package/dist/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue.d.ts +1 -1
- package/dist/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue.d.ts.map +1 -1
- package/dist/fds-vue-core.cjs.js +24 -23
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js +24 -23
- package/dist/fds-vue-core.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ export interface FdsButtonBaseProps {
|
|
|
7
7
|
state?: 'hover' | 'focus' | 'active' | undefined;
|
|
8
8
|
icon?: FdsIconName | undefined;
|
|
9
9
|
iconPos?: 'right' | 'left';
|
|
10
|
-
size?: '
|
|
10
|
+
size?: 'sm' | 'md' | 'lg';
|
|
11
11
|
textSelection?: boolean;
|
|
12
12
|
as?: 'button' | 'a' | 'router-link';
|
|
13
13
|
href?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBaseProps.d.ts","sourceRoot":"","sources":["../../../src/components/Buttons/ButtonBaseProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAA;IAChD,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;IAC9B,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC1B,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"ButtonBaseProps.d.ts","sourceRoot":"","sources":["../../../src/components/Buttons/ButtonBaseProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAA;IAChD,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;IAC9B,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC1B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,EAAE,CAAC,EAAE,QAAQ,GAAG,GAAG,GAAG,aAAa,CAAA;IACnC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;CACrC"}
|
|
@@ -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"}
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<FdsButtonBaseProps, {}, {}
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<FdsButtonBaseProps> & Readonly<{
|
|
5
5
|
onClick?: (ev: MouseEvent) => any;
|
|
6
6
|
}>, {
|
|
7
|
-
size: "
|
|
7
|
+
size: "sm" | "md" | "lg";
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
type: "button" | "submit" | "reset";
|
|
10
10
|
icon: import("../../..").FdsIconName | undefined;
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<FdsButtonBaseProps, {}, {}
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<FdsButtonBaseProps> & Readonly<{
|
|
5
5
|
onClick?: (ev: MouseEvent) => any;
|
|
6
6
|
}>, {
|
|
7
|
-
size: "
|
|
7
|
+
size: "sm" | "md" | "lg";
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
type: "button" | "submit" | "reset";
|
|
10
10
|
icon: import("../../..").FdsIconName | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FdsButtonSecondary.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FdsButtonSecondary.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;;;;;;;;;;;;;;;;;;AAmM5D,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"
|
|
@@ -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
|
|
2158
|
+
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
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({
|
|
@@ -2167,7 +2168,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
2167
2168
|
state: { default: void 0 },
|
|
2168
2169
|
icon: { default: void 0 },
|
|
2169
2170
|
iconPos: { default: "left" },
|
|
2170
|
-
size: { default: "
|
|
2171
|
+
size: { default: "md" },
|
|
2171
2172
|
textSelection: { type: Boolean, default: false },
|
|
2172
2173
|
as: { default: "button" },
|
|
2173
2174
|
href: { default: void 0 },
|
|
@@ -2183,9 +2184,9 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
2183
2184
|
props.block && "block w-full"
|
|
2184
2185
|
]);
|
|
2185
2186
|
const sizeClasses = {
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2187
|
+
sm: "text-sm h-7 px-3",
|
|
2188
|
+
md: "text-base h-12 px-4",
|
|
2189
|
+
lg: "text-lg h-[68px] px-6"
|
|
2189
2190
|
};
|
|
2190
2191
|
const blockElClasses = vue.computed(() => props.block && "w-full justify-center");
|
|
2191
2192
|
const iconOrderClasses = vue.computed(
|
|
@@ -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
|
|
2251
|
+
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
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({
|
|
@@ -2260,7 +2261,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
2260
2261
|
state: { default: void 0 },
|
|
2261
2262
|
icon: { default: void 0 },
|
|
2262
2263
|
iconPos: { default: "left" },
|
|
2263
|
-
size: { default: "
|
|
2264
|
+
size: { default: "md" },
|
|
2264
2265
|
textSelection: { type: Boolean, default: false },
|
|
2265
2266
|
as: { default: "button" },
|
|
2266
2267
|
href: { default: void 0 },
|
|
@@ -2276,9 +2277,9 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
2276
2277
|
props.block && "block w-full"
|
|
2277
2278
|
]);
|
|
2278
2279
|
const sizeClasses = {
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2280
|
+
sm: "text-sm h-7 px-3",
|
|
2281
|
+
md: "text-base h-12 px-4",
|
|
2282
|
+
lg: "text-lg h-[68px] px-6"
|
|
2282
2283
|
};
|
|
2283
2284
|
const blockElClasses = vue.computed(() => props.block && "w-full justify-center");
|
|
2284
2285
|
const iconOrderClasses = vue.computed(
|
|
@@ -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"]),
|