fds-vue-core 3.0.1 → 4.0.0
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/fds-vue-core.cjs.js +26 -16
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js +26 -16
- package/dist/fds-vue-core.es.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Blocks/FdsBlockAlert/FdsBlockAlert.vue +1 -1
- package/src/components/Blocks/FdsBlockExpander/FdsBlockExpander.vue +1 -1
- package/src/components/Blocks/FdsBlockLink/FdsBlockLink.vue +1 -0
- package/src/components/Buttons/FdsButtonPrimary/FdsButtonPrimary.vue +2 -2
- package/src/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue +2 -2
- package/src/components/Form/FdsCheckbox/FdsCheckbox.vue +4 -2
- package/src/components/Form/FdsCheckbox/types.ts +1 -0
- package/src/components/Form/FdsInput/FdsInput.vue +2 -0
- package/src/components/Form/FdsInput/types.ts +1 -0
- package/src/components/Form/FdsRadio/FdsRadio.vue +2 -0
- package/src/components/Form/FdsRadio/types.ts +7 -2
- package/src/components/Form/FdsSelect/FdsSelect.vue +4 -2
- package/src/components/Form/FdsSelect/types.ts +1 -0
- package/src/components/Form/FdsTextarea/FdsTextarea.vue +2 -0
- package/src/components/Form/FdsTextarea/types.ts +1 -0
- package/src/.DS_Store +0 -0
package/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -659,7 +659,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
659
659
|
closeable: { type: Boolean, default: false },
|
|
660
660
|
collapsable: { type: Boolean, default: false },
|
|
661
661
|
expanded: { type: Boolean, default: false },
|
|
662
|
-
heading: { default:
|
|
662
|
+
heading: { default: void 0 },
|
|
663
663
|
locale: { default: "sv" },
|
|
664
664
|
icon: {},
|
|
665
665
|
dataTestid: { default: void 0 }
|
|
@@ -883,7 +883,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
883
883
|
__name: "FdsBlockExpander",
|
|
884
884
|
props: {
|
|
885
885
|
disabled: { type: Boolean, default: false },
|
|
886
|
-
heading: { default:
|
|
886
|
+
heading: { default: void 0 },
|
|
887
887
|
open: { type: Boolean, default: false },
|
|
888
888
|
preIcon: { default: void 0 },
|
|
889
889
|
stickerColor: { default: void 0 },
|
|
@@ -1113,7 +1113,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
1113
1113
|
},
|
|
1114
1114
|
__name: "FdsBlockLink",
|
|
1115
1115
|
props: {
|
|
1116
|
-
heading: {},
|
|
1116
|
+
heading: { default: void 0 },
|
|
1117
1117
|
arrow: { type: Boolean, default: false },
|
|
1118
1118
|
download: {},
|
|
1119
1119
|
href: {},
|
|
@@ -4246,7 +4246,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
4246
4246
|
});
|
|
4247
4247
|
const _hoisted_1$f = ["aria-disabled"];
|
|
4248
4248
|
const _hoisted_2$d = { key: 2 };
|
|
4249
|
-
const elBase$1 = "box-border appearance-none inline-flex items-center justify-center 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";
|
|
4249
|
+
const elBase$1 = "fds-button-primary box-border appearance-none inline-flex items-center justify-center 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";
|
|
4250
4250
|
const variantClasses$1 = "bg-red-600 border border-red-700 text-white hover:bg-red-700 active:bg-red-800 active:border-red-800";
|
|
4251
4251
|
const iconFillClass$1 = "fill-white";
|
|
4252
4252
|
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -4281,7 +4281,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
4281
4281
|
const externalClass = vue.computed(() => attrs.class);
|
|
4282
4282
|
const sizeClasses = {
|
|
4283
4283
|
sm: "text-sm h-7 px-3",
|
|
4284
|
-
md: "text-base h-12 px-4
|
|
4284
|
+
md: "text-base h-12 px-4",
|
|
4285
4285
|
lg: "text-lg h-[68px] px-6"
|
|
4286
4286
|
};
|
|
4287
4287
|
const blockElClasses = vue.computed(() => props.block && "w-full justify-center");
|
|
@@ -4352,7 +4352,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
4352
4352
|
});
|
|
4353
4353
|
const _hoisted_1$e = ["aria-disabled"];
|
|
4354
4354
|
const _hoisted_2$c = { key: 2 };
|
|
4355
|
-
const elBase = "box-border appearance-none inline-flex items-center justify-center 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";
|
|
4355
|
+
const elBase = "fds-button-secondary box-border appearance-none inline-flex items-center justify-center 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";
|
|
4356
4356
|
const variantClasses = "bg-white border-2 border-blue-500 text-blue-600 hover:bg-blue_t-100 hover:border-blue-500 hover:text-blue-600 active:bg-blue_t-200 active:border-blue-500 active:text-blue-600";
|
|
4357
4357
|
const iconFillClass = "fill-blue-500";
|
|
4358
4358
|
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -4387,7 +4387,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
4387
4387
|
const externalClass = vue.computed(() => attrs.class);
|
|
4388
4388
|
const sizeClasses = {
|
|
4389
4389
|
sm: "text-sm h-7 px-3",
|
|
4390
|
-
md: "text-base h-12 px-4
|
|
4390
|
+
md: "text-base h-12 px-4",
|
|
4391
4391
|
lg: "text-lg h-[68px] px-6"
|
|
4392
4392
|
};
|
|
4393
4393
|
const blockElClasses = vue.computed(() => props.block && "w-full justify-center");
|
|
@@ -8651,6 +8651,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
8651
8651
|
ariaLabel: { default: void 0 },
|
|
8652
8652
|
pattern: { default: void 0 },
|
|
8653
8653
|
searchIcon: { type: Boolean },
|
|
8654
|
+
inputClass: { default: void 0 },
|
|
8654
8655
|
onClearInput: {},
|
|
8655
8656
|
maskOptions: { default: void 0 },
|
|
8656
8657
|
modelModifiers: { default: () => ({}) },
|
|
@@ -8737,7 +8738,8 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
8737
8738
|
inputPaddingRight.value,
|
|
8738
8739
|
"focus:outline-2 focus:outline-blue-500 -outline-offset-2 focus:border-transparent",
|
|
8739
8740
|
props.disabled ? "text-gray-600 outline-dashed outline-2 outline-gray-400 cursor-not-allowed border-transparent" : "bg-white",
|
|
8740
|
-
isInvalid.value && "outline-2 outline-red-600"
|
|
8741
|
+
isInvalid.value && "outline-2 outline-red-600",
|
|
8742
|
+
props.inputClass
|
|
8741
8743
|
]);
|
|
8742
8744
|
const inputStyle = vue.computed(() => {
|
|
8743
8745
|
if (maxlength.value) {
|
|
@@ -10106,6 +10108,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
10106
10108
|
id: {},
|
|
10107
10109
|
name: {},
|
|
10108
10110
|
dataTestid: { default: void 0 },
|
|
10111
|
+
inputClass: { default: void 0 },
|
|
10109
10112
|
onInput: {},
|
|
10110
10113
|
onChange: {},
|
|
10111
10114
|
onFocus: {},
|
|
@@ -10160,10 +10163,11 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
10160
10163
|
"[&:has(:focus-visible)]:outline-2 [&:has(:focus-visible)]:outline-dashed [&:has(:focus-visible)]:-outline-offset-2 [&:has(:focus-visible)]:outline-blue-500",
|
|
10161
10164
|
props.disabled && "hover:bg-transparent active:bg-transparent"
|
|
10162
10165
|
]);
|
|
10163
|
-
const
|
|
10166
|
+
const inputClasses = vue.computed(() => [
|
|
10164
10167
|
"rounded-md transition-colors duration-200 accent-blue-500 m-[3px]",
|
|
10165
10168
|
"peer z-2 bg-white min-w-[18px] min-h-[18px] focus-visible:outline-none",
|
|
10166
|
-
props.disabled && "cursor-not-allowed"
|
|
10169
|
+
props.disabled && "cursor-not-allowed",
|
|
10170
|
+
props.inputClass
|
|
10167
10171
|
]);
|
|
10168
10172
|
const internalChecked = vue.computed({
|
|
10169
10173
|
get: () => {
|
|
@@ -10241,7 +10245,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
10241
10245
|
disabled: props.disabled,
|
|
10242
10246
|
required: props.required,
|
|
10243
10247
|
type: "checkbox",
|
|
10244
|
-
class:
|
|
10248
|
+
class: inputClasses.value
|
|
10245
10249
|
}, inputAttrs.value), null, 16, _hoisted_2$6), [
|
|
10246
10250
|
[vue.vModelCheckbox, internalChecked.value]
|
|
10247
10251
|
]),
|
|
@@ -10279,6 +10283,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
10279
10283
|
style: {},
|
|
10280
10284
|
tabindex: {},
|
|
10281
10285
|
autofocus: { type: Boolean },
|
|
10286
|
+
inputClass: { default: void 0 },
|
|
10282
10287
|
onInput: {},
|
|
10283
10288
|
onChange: {},
|
|
10284
10289
|
onFocus: {},
|
|
@@ -10360,7 +10365,8 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
10360
10365
|
]);
|
|
10361
10366
|
const inputClasses = vue.computed(() => [
|
|
10362
10367
|
"peer z-2 bg-white min-w-[20px] min-h-[20px] focus-visible:outline-none rounded-full accent-blue-500",
|
|
10363
|
-
props.disabled && "cursor-not-allowed"
|
|
10368
|
+
props.disabled && "cursor-not-allowed",
|
|
10369
|
+
props.inputClass
|
|
10364
10370
|
]);
|
|
10365
10371
|
return (_ctx, _cache) => {
|
|
10366
10372
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -11077,6 +11083,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11077
11083
|
options: { default: void 0 },
|
|
11078
11084
|
modelValue: {},
|
|
11079
11085
|
dataTestid: { default: void 0 },
|
|
11086
|
+
inputClass: { default: void 0 },
|
|
11080
11087
|
value: { default: void 0 }
|
|
11081
11088
|
}, {
|
|
11082
11089
|
"modelValue": { default: void 0, required: false },
|
|
@@ -11122,12 +11129,13 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11122
11129
|
() => props.valid === false && !props.optional && props.invalidMessage && !disabled.value
|
|
11123
11130
|
);
|
|
11124
11131
|
const isInvalid = vue.computed(() => props.valid === false && !props.optional && !disabled.value);
|
|
11125
|
-
const
|
|
11132
|
+
const inputClasses = vue.computed(() => [
|
|
11126
11133
|
"block w-full rounded-md border border-gray-500 px-3 py-2 pr-10 h-12",
|
|
11127
11134
|
"focus:outline-2 focus:outline-blue-500 focus:border-transparent",
|
|
11128
11135
|
"appearance-none",
|
|
11129
11136
|
disabled.value ? "outline-dashed text-gray-600 outline-2 -outline-offset-2 outline-gray-400 cursor-not-allowed border-transparent" : "bg-white cursor-pointer",
|
|
11130
|
-
isInvalid.value && !disabled.value && "outline-2 -outline-offset-2 outline-red-600 text-red-600"
|
|
11137
|
+
isInvalid.value && !disabled.value && "outline-2 -outline-offset-2 outline-red-600 text-red-600",
|
|
11138
|
+
props.inputClass
|
|
11131
11139
|
]);
|
|
11132
11140
|
const internalValue = vue.computed({
|
|
11133
11141
|
get: () => modelValue.value !== void 0 ? modelValue.value : props.value ?? "",
|
|
@@ -11155,7 +11163,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11155
11163
|
vue.createElementVNode("div", _hoisted_3$2, [
|
|
11156
11164
|
vue.withDirectives(vue.createElementVNode("select", vue.mergeProps({
|
|
11157
11165
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => internalValue.value = $event),
|
|
11158
|
-
class:
|
|
11166
|
+
class: inputClasses.value
|
|
11159
11167
|
}, selectAttrs.value, {
|
|
11160
11168
|
onChange: handleChange,
|
|
11161
11169
|
onInput: _cache[1] || (_cache[1] = (e) => emit("input", e))
|
|
@@ -11213,6 +11221,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11213
11221
|
modelValue: {},
|
|
11214
11222
|
modelModifiers: { default: () => ({}) },
|
|
11215
11223
|
dataTestid: { default: void 0 },
|
|
11224
|
+
inputClass: { default: void 0 },
|
|
11216
11225
|
value: { default: void 0 }
|
|
11217
11226
|
}, {
|
|
11218
11227
|
"modelValue": { default: void 0, required: false },
|
|
@@ -11260,7 +11269,8 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11260
11269
|
"block w-full rounded-md border border-gray-500 px-3 py-2",
|
|
11261
11270
|
"focus:outline-2 focus:outline-blue-500 focus:border-transparent",
|
|
11262
11271
|
disabled.value ? "text-gray-600 outline-dashed outline-2 -outline-offset-2 outline-gray-400 cursor-not-allowed border-transparent bg-gray-50" : "bg-white",
|
|
11263
|
-
isInvalid.value && "outline-2 -outline-offset-2 outline-red-600"
|
|
11272
|
+
isInvalid.value && "outline-2 -outline-offset-2 outline-red-600",
|
|
11273
|
+
props.inputClass
|
|
11264
11274
|
]);
|
|
11265
11275
|
const validationIconClasses = vue.computed(() => ["absolute right-3 top-3 flex items-center gap-2 pointer-events-none"]);
|
|
11266
11276
|
const internalValue = vue.computed({
|