fds-vue-core 2.0.58 → 2.0.62

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/apply.css ADDED
@@ -0,0 +1,60 @@
1
+ @import './tokens.css';
2
+
3
+ /** Create stencil components for this */
4
+ @layer components {
5
+ h1,
6
+ .h1 {
7
+ @apply font-heading text-2xl sm:text-4xl lg:text-6xl/tight font-extrabold mb-3 mt-0;
8
+ }
9
+ h2,
10
+ .h2 {
11
+ @apply font-heading text-xl sm:text-3xl font-extrabold mt-4 mb-4;
12
+ }
13
+ .h2--small {
14
+ @apply font-heading text-xl font-extrabold mt-4 mb-4;
15
+ }
16
+
17
+ h3,
18
+ .h3 {
19
+ @apply font-heading text-xl font-extrabold mt-4 mb-4;
20
+ }
21
+
22
+ .h3--small {
23
+ @apply font-heading text-lg font-extrabold mt-4 mb-2;
24
+ }
25
+ h1:focus,
26
+ h2:focus,
27
+ h3:focus {
28
+ @apply focus:outline-0;
29
+ }
30
+
31
+ .label {
32
+ @apply font-bold mb-2! tracking-wide;
33
+ }
34
+ p {
35
+ @apply mb-4;
36
+ }
37
+ li:not(:last-child) {
38
+ @apply mb-2;
39
+ }
40
+ .link,
41
+ .html a {
42
+ @apply text-blue-600 hover:text-blue-700 active:text-blue-800 underline focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500;
43
+ }
44
+
45
+ .capitalize-first::first-letter {
46
+ text-transform: uppercase;
47
+ }
48
+ }
49
+
50
+ @layer utilities {
51
+ /** Override browser background color when autocomplete field */
52
+ input:not(input[type='checkbox'], input[type='radio']),
53
+ textarea {
54
+ box-shadow: 0 0 0 1000px #fff inset !important;
55
+ }
56
+ /** Style active router link in main nav */
57
+ .nav-items .router-link-active {
58
+ @apply bg-blue-100 text-blue-700 font-bold;
59
+ }
60
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"FdsBlockInfo.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockInfo/FdsBlockInfo.vue"],"names":[],"mappings":"AAkFA,OAAO,EAAY,KAAK,IAAI,EAAE,MAAM,KAAK,CAAA;AAEzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAyBhD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,MAAM,CAAC,EAAE,IAAI,CAAA;IACb,UAAU,CAAC,EAAE,IAAI,CAAA;CAClB,CAAC;AAiLF,QAAA,MAAM,eAAe;;;;4EAGnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAY1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"FdsBlockInfo.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockInfo/FdsBlockInfo.vue"],"names":[],"mappings":"AAkFA,OAAO,EAAY,KAAK,IAAI,EAAE,MAAM,KAAK,CAAA;AAEzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAyBhD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,MAAM,CAAC,EAAE,IAAI,CAAA;IACb,UAAU,CAAC,EAAE,IAAI,CAAA;CAClB,CAAC;AAyLF,QAAA,MAAM,eAAe;;;;4EAGnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAY1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FdsSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsSelect/FdsSelect.vue"],"names":[],"mappings":"AA6HA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,KAAK,WAAW,GAAG,cAAc,CAAC;AAgFlC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAyIF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;gBAhQrB,CArHqD;;;;;;4EAyXnD,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAY1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"FdsSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsSelect/FdsSelect.vue"],"names":[],"mappings":"AA6HA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,KAAK,WAAW,GAAG,cAAc,CAAC;AAgFlC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AA4IF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;gBAnQrB,CArHqD;;;;;;4EA4XnD,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAY1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FdsTextarea.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsTextarea/FdsTextarea.vue"],"names":[],"mappings":"AAiGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AAuEpC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;;;;;;;;;;AA+IF,wBAIG"}
1
+ {"version":3,"file":"FdsTextarea.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsTextarea/FdsTextarea.vue"],"names":[],"mappings":"AAiGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AAuEpC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;;;;;;;;;;AAgJF,wBAIG"}
@@ -1229,7 +1229,7 @@ const _hoisted_6$3 = {
1229
1229
  };
1230
1230
  const _hoisted_7$3 = { class: "flex flex-col gap-2" };
1231
1231
  const _hoisted_8$2 = ["onClick"];
1232
- const _hoisted_9$1 = { key: 0 };
1232
+ const _hoisted_9$2 = { key: 0 };
1233
1233
  const popoverWidth = 327;
1234
1234
  const popoverHeight = 80;
1235
1235
  const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
@@ -1547,7 +1547,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
1547
1547
  ])) : vue.createCommentVNode("", true)
1548
1548
  ])
1549
1549
  ], 4),
1550
- vue.unref(expandedNodes).has(props.nodeId) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$1, [
1550
+ vue.unref(expandedNodes).has(props.nodeId) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$2, [
1551
1551
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(filteredNodes.value, (child) => {
1552
1552
  return vue.openBlock(), vue.createBlock(_component_TreeNode, {
1553
1553
  key: child.nodeId,
@@ -2573,7 +2573,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
2573
2573
  };
2574
2574
  }
2575
2575
  });
2576
- const _hoisted_1$c = { class: "w-full" };
2576
+ const _hoisted_1$c = { class: "w-full mb-4" };
2577
2577
  const _hoisted_2$9 = ["for"];
2578
2578
  const _hoisted_3$6 = {
2579
2579
  key: 1,
@@ -2680,21 +2680,22 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
2680
2680
  };
2681
2681
  }
2682
2682
  });
2683
- const _hoisted_1$b = ["for"];
2684
- const _hoisted_2$8 = {
2683
+ const _hoisted_1$b = { class: "w-full mb-4" };
2684
+ const _hoisted_2$8 = ["for"];
2685
+ const _hoisted_3$5 = {
2685
2686
  key: 1,
2686
2687
  class: "font-thin mb-1"
2687
2688
  };
2688
- const _hoisted_3$5 = { class: "relative" };
2689
- const _hoisted_4$5 = ["id", "name", "disabled", "aria-invalid"];
2690
- const _hoisted_5$3 = {
2689
+ const _hoisted_4$5 = { class: "relative" };
2690
+ const _hoisted_5$3 = ["id", "name", "disabled", "aria-invalid"];
2691
+ const _hoisted_6$1 = {
2691
2692
  key: 0,
2692
2693
  value: "",
2693
2694
  disabled: ""
2694
2695
  };
2695
- const _hoisted_6$1 = ["value", "disabled"];
2696
- const _hoisted_7$1 = { class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none" };
2697
- const _hoisted_8$1 = {
2696
+ const _hoisted_7$1 = ["value", "disabled"];
2697
+ const _hoisted_8$1 = { class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none" };
2698
+ const _hoisted_9$1 = {
2698
2699
  key: 2,
2699
2700
  class: "text-red-600 font-bold mt-1"
2700
2701
  };
@@ -2750,14 +2751,14 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
2750
2751
  emit("input", ev);
2751
2752
  }
2752
2753
  return (_ctx, _cache) => {
2753
- return vue.openBlock(), vue.createElementBlock("div", null, [
2754
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
2754
2755
  _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", {
2755
2756
  key: 0,
2756
2757
  for: selectId.value,
2757
2758
  class: vue.normalizeClass(["block font-bold text-gray-900 cursor-pointer", { "mb-0": _ctx.meta, "mb-1": !_ctx.meta }])
2758
- }, vue.toDisplayString(_ctx.label), 11, _hoisted_1$b)) : vue.createCommentVNode("", true),
2759
- _ctx.meta ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, vue.toDisplayString(_ctx.meta), 1)) : vue.createCommentVNode("", true),
2760
- vue.createElementVNode("div", _hoisted_3$5, [
2759
+ }, vue.toDisplayString(_ctx.label), 11, _hoisted_2$8)) : vue.createCommentVNode("", true),
2760
+ _ctx.meta ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, vue.toDisplayString(_ctx.meta), 1)) : vue.createCommentVNode("", true),
2761
+ vue.createElementVNode("div", _hoisted_4$5, [
2761
2762
  vue.withDirectives(vue.createElementVNode("select", vue.mergeProps({
2762
2763
  id: selectId.value,
2763
2764
  name: _ctx.name || void 0,
@@ -2769,18 +2770,18 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
2769
2770
  onChange: handleChange,
2770
2771
  onInput: _cache[1] || (_cache[1] = (e) => emit("input", e))
2771
2772
  }), [
2772
- _ctx.placeholder && !hasDefaultSlot.value ? (vue.openBlock(), vue.createElementBlock("option", _hoisted_5$3, vue.toDisplayString(_ctx.placeholder), 1)) : vue.createCommentVNode("", true),
2773
+ _ctx.placeholder && !hasDefaultSlot.value ? (vue.openBlock(), vue.createElementBlock("option", _hoisted_6$1, vue.toDisplayString(_ctx.placeholder), 1)) : vue.createCommentVNode("", true),
2773
2774
  !hasDefaultSlot.value && _ctx.options ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.options, (option) => {
2774
2775
  return vue.openBlock(), vue.createElementBlock("option", {
2775
2776
  key: option.value,
2776
2777
  value: option.value,
2777
2778
  disabled: option.disabled
2778
- }, vue.toDisplayString(option.label), 9, _hoisted_6$1);
2779
+ }, vue.toDisplayString(option.label), 9, _hoisted_7$1);
2779
2780
  }), 128)) : vue.renderSlot(_ctx.$slots, "default", { key: 2 })
2780
- ], 16, _hoisted_4$5), [
2781
+ ], 16, _hoisted_5$3), [
2781
2782
  [vue.vModelSelect, internalValue.value]
2782
2783
  ]),
2783
- vue.createElementVNode("div", _hoisted_7$1, [
2784
+ vue.createElementVNode("div", _hoisted_8$1, [
2784
2785
  vue.createVNode(_sfc_main$u, {
2785
2786
  name: "arrowDown",
2786
2787
  size: 24,
@@ -2792,7 +2793,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
2792
2793
  }, null, 8, ["class"])
2793
2794
  ])
2794
2795
  ]),
2795
- showInvalidMessage.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$1, vue.toDisplayString(_ctx.invalidMessage), 1)) : vue.createCommentVNode("", true)
2796
+ showInvalidMessage.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$1, vue.toDisplayString(_ctx.invalidMessage), 1)) : vue.createCommentVNode("", true)
2796
2797
  ]);
2797
2798
  };
2798
2799
  }
@@ -2875,7 +2876,10 @@ const _hoisted_2$6 = {
2875
2876
  class: "flex items-start gap-4"
2876
2877
  };
2877
2878
  const _hoisted_3$3 = { class: "flex-1" };
2878
- const _hoisted_4$3 = { class: "mb-1" };
2879
+ const _hoisted_4$3 = {
2880
+ key: 0,
2881
+ class: "mb-1"
2882
+ };
2879
2883
  const _hoisted_5$1 = { class: "flex items-start justify-between gap-4" };
2880
2884
  const _hoisted_6 = { class: "m-0 text-base font-main font-bold tracking-wide" };
2881
2885
  const _hoisted_7 = { class: "flex items-start gap-3" };
@@ -2919,18 +2923,19 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
2919
2923
  class: "fill-blue-500"
2920
2924
  }, null, 8, ["name"]),
2921
2925
  vue.createElementVNode("div", _hoisted_3$3, [
2922
- vue.createElementVNode("div", _hoisted_4$3, [
2926
+ _ctx.heading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [
2923
2927
  vue.createElementVNode("header", _hoisted_5$1, [
2924
2928
  vue.createElementVNode("h3", _hoisted_6, vue.toDisplayString(_ctx.heading), 1),
2925
2929
  vue.createElementVNode("div", _hoisted_7, [
2926
2930
  vue.renderSlot(_ctx.$slots, "headerInfo")
2927
2931
  ])
2928
2932
  ])
2929
- ]),
2930
- vue.unref(hasSlot) ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : vue.createCommentVNode("", true)
2933
+ ])) : vue.createCommentVNode("", true),
2934
+ vue.unref(hasSlot) ? vue.renderSlot(_ctx.$slots, "default", { key: 1 }) : vue.createCommentVNode("", true)
2931
2935
  ])
2932
2936
  ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
2933
- vue.createElementVNode("div", {
2937
+ _ctx.heading ? (vue.openBlock(), vue.createElementBlock("div", {
2938
+ key: 0,
2934
2939
  class: vue.normalizeClass({ "mb-4": vue.unref(hasSlot) })
2935
2940
  }, [
2936
2941
  vue.createElementVNode("header", _hoisted_9, [
@@ -2947,7 +2952,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
2947
2952
  vue.renderSlot(_ctx.$slots, "headerInfo")
2948
2953
  ])
2949
2954
  ])
2950
- ], 2),
2955
+ ], 2)) : vue.createCommentVNode("", true),
2951
2956
  vue.createElementVNode("div", _hoisted_13, [
2952
2957
  vue.renderSlot(_ctx.$slots, "default")
2953
2958
  ])
@@ -3368,7 +3373,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
3368
3373
  el.classList.remove("cursor-not-allowed", "pointer-events-none", "opacity-35", "select-none");
3369
3374
  }
3370
3375
  const blockClasses = block ? "flex flex-1 w-full" : "w-full";
3371
- const baseClass = currentVariant === "primary" ? `${blockClasses} block cursor-pointer bg-transparent py-2 px-4 rounded-lg inline-block font-bold text-base leading-6 m-0 border-2 border-transparent select-none no-underline whitespace-nowrap text-inherit` : `${blockClasses} w-full block cursor-pointer text-blue-700 py-1 px-2 rounded inline-block font-bold text-base leading-6 m-0 select-none no-underline whitespace-nowrap tracking-[0.002em] rounded-md border-none text-blue-700`;
3376
+ const baseClass = currentVariant === "primary" ? `${blockClasses} flex justify-center w-full cursor-pointer bg-transparent py-2 px-4 rounded-lg font-bold text-base leading-6 m-0 border-2 border-transparent select-none no-underline whitespace-nowrap text-inherit` : `${blockClasses} flex justify-center w-full cursor-pointer text-blue-700 py-1 px-2 rounded font-bold text-base leading-6 m-0 select-none no-underline whitespace-nowrap tracking-[0.002em] rounded-md border-none text-blue-700`;
3372
3377
  const hoverClass = currentVariant === "primary" ? "hover:bg-white/59 hover:outline-none" : "hover:bg-blue_t-100";
3373
3378
  const focusClass = currentVariant === "primary" ? "focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-blue-500 focus-visible:outline-offset-[-2px]" : "focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-blue-500";
3374
3379
  const activeClass = currentVariant === "primary" ? "active:border-transparent active:bg-white/80" : "active:bg-blue_t-200";