fds-vue-core 2.0.38 → 2.0.41

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.
Files changed (26) hide show
  1. package/dist/components/Blocks/FdsBlockAlert/FdsBlockAlert.stories.d.ts.map +1 -1
  2. package/dist/components/Blocks/FdsBlockAlert/FdsBlockAlert.vue.d.ts +1 -1
  3. package/dist/components/Blocks/FdsBlockAlert/FdsBlockAlert.vue.d.ts.map +1 -1
  4. package/dist/components/Blocks/FdsBlockAlert/types.d.ts +1 -1
  5. package/dist/components/Blocks/FdsBlockAlert/types.d.ts.map +1 -1
  6. package/dist/components/Blocks/FdsBlockContent/FdsBlockContent.vue.d.ts.map +1 -1
  7. package/dist/components/Blocks/FdsBlockInfo/FdsBlockInfo.vue.d.ts.map +1 -1
  8. package/dist/components/Blocks/FdsBlockLink/FdsBlockLink.vue.d.ts.map +1 -1
  9. package/dist/components/FdsModal/FdsModal.vue.d.ts.map +1 -1
  10. package/dist/components/FdsTruncatedText/FdsTruncatedText.vue.d.ts.map +1 -1
  11. package/dist/components/Form/FdsCheckbox/FdsCheckbox.vue.d.ts.map +1 -1
  12. package/dist/components/Form/FdsInput/FdsInput.vue.d.ts.map +1 -1
  13. package/dist/components/Form/FdsRadio/FdsRadio.vue.d.ts.map +1 -1
  14. package/dist/components/Table/FdsTable/FdsTable.vue.d.ts.map +1 -1
  15. package/dist/components/Table/FdsTableHead/FdsTableHead.vue.d.ts.map +1 -1
  16. package/dist/composables/useHasSlots.d.ts +6 -0
  17. package/dist/composables/useHasSlots.d.ts.map +1 -0
  18. package/dist/fds-vue-core.cjs.js +67 -58
  19. package/dist/fds-vue-core.cjs.js.map +1 -1
  20. package/dist/fds-vue-core.css +1 -1
  21. package/dist/fds-vue-core.es.js +68 -59
  22. package/dist/fds-vue-core.es.js.map +1 -1
  23. package/dist/{FdsTable.css → slot-styles.css} +24 -37
  24. package/dist/tokens.css +5 -0
  25. package/package.json +3 -2
  26. package/dist/FdsInput.css +0 -8
@@ -1 +1 @@
1
- {"version":3,"file":"FdsBlockAlert.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockAlert/FdsBlockAlert.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAoBpC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AA6BlC,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KASvB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAUzB,CAAA"}
1
+ {"version":3,"file":"FdsBlockAlert.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockAlert/FdsBlockAlert.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAoBpC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AA8BlC,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KASvB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAUzB,CAAA"}
@@ -19,7 +19,7 @@ declare const __VLS_component: import("vue").DefineComponent<FdsAlertBlockProps,
19
19
  closeable: boolean;
20
20
  collapsable: boolean;
21
21
  expanded: boolean;
22
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
23
23
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
24
  export default _default;
25
25
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"FdsBlockAlert.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockAlert/FdsBlockAlert.vue"],"names":[],"mappings":"AAoGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAkNjD,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA6BhD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;6EAInB,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":"FdsBlockAlert.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockAlert/FdsBlockAlert.vue"],"names":[],"mappings":"AA2GA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAuNjD,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA6BhD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;4EAInB,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"}
@@ -3,7 +3,7 @@ import type icons from '../../../assets/icons';
3
3
  export type IconName = keyof typeof icons;
4
4
  export interface FdsAlertBlockProps {
5
5
  id?: string;
6
- visible: boolean;
6
+ visible?: boolean;
7
7
  closeable?: boolean;
8
8
  collapsable?: boolean;
9
9
  expanded?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockAlert/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAE9C,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,KAAK,CAAA;AAEzC,MAAM,WAAW,kBAAkB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,IAAI,CAAC,EAAE,QAAQ,CAAA;CAChB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockAlert/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAE9C,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,KAAK,CAAA;AAEzC,MAAM,WAAW,kBAAkB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,IAAI,CAAC,EAAE,QAAQ,CAAA;CAChB"}
@@ -1 +1 @@
1
- {"version":3,"file":"FdsBlockContent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockContent/FdsBlockContent.vue"],"names":[],"mappings":"AAqDA,OAAO,EAAY,KAAK,IAAI,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AA+BnD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,UAAU,CAAC,EAAE,IAAI,CAAA;CAClB,CAAC;AA6EF,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":"FdsBlockContent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockContent/FdsBlockContent.vue"],"names":[],"mappings":"AAuDA,OAAO,EAAY,KAAK,IAAI,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AA+BnD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,UAAU,CAAC,EAAE,IAAI,CAAA;CAClB,CAAC;AAiFF,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":"FdsBlockInfo.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockInfo/FdsBlockInfo.vue"],"names":[],"mappings":"AA8EA,OAAO,EAAsB,KAAK,IAAI,EAAE,MAAM,KAAK,CAAA;AAEnD,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;AA6KF,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;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 +1 @@
1
- {"version":3,"file":"FdsBlockLink.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockLink/FdsBlockLink.vue"],"names":[],"mappings":"AAwIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAkRvD,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA8BhD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;6EAInB,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":"FdsBlockLink.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Blocks/FdsBlockLink/FdsBlockLink.vue"],"names":[],"mappings":"AA2IA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAmRvD,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA8BhD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;6EAInB,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":"FdsModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FdsModal/FdsModal.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AA+U5C,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA+BvD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;4EAInB,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":"FdsModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FdsModal/FdsModal.vue"],"names":[],"mappings":"AAwOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAuU5C,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA+BvD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;4EAInB,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":"FdsTruncatedText.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FdsTruncatedText/FdsTruncatedText.vue"],"names":[],"mappings":"AAyFA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAqIpD,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;;cAzJgB,OAAO;;;;cAAP,OAAO;;;;;;6EA6J1C,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":"FdsTruncatedText.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FdsTruncatedText/FdsTruncatedText.vue"],"names":[],"mappings":"AA0FA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAoIpD,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;;cAxJgB,OAAO;;;;cAAP,OAAO;;;;;;6EA4J1C,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":"FdsCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsCheckbox/FdsCheckbox.vue"],"names":[],"mappings":"AAyJA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAS/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AA2HpC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CAC7C,CAAC;AAiEF,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;AAyB/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;4EAInB,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":"FdsCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsCheckbox/FdsCheckbox.vue"],"names":[],"mappings":"AA0JA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAS/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AA0HpC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CAC7C,CAAC;AAiEF,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;AAyB/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;4EAInB,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":"FdsInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsInput/FdsInput.vue"],"names":[],"mappings":"AAmJA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAmGjC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmNF,wBAIG"}
1
+ {"version":3,"file":"FdsInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsInput/FdsInput.vue"],"names":[],"mappings":"AA+IA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAmGjC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgNF,wBAIG"}
@@ -1 +1 @@
1
- {"version":3,"file":"FdsRadio.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsRadio/FdsRadio.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAwDjC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B,CAAC;AAmEF,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;;;;;;;;;;;;4EAOnB,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":"FdsRadio.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsRadio/FdsRadio.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAuDjC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B,CAAC;AAmEF,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;;;;;;;;;;;;4EAOnB,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":"FdsTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/FdsTable/FdsTable.vue"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAc5C,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA2CF,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":"FdsTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/FdsTable/FdsTable.vue"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAc5C,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAwCF,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":"FdsTableHead.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/FdsTableHead/FdsTableHead.vue"],"names":[],"mappings":"AAgDA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAmHhD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB/C,QAAA,MAAM,eAAe;;;;;;;;4EAInB,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":"FdsTableHead.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/FdsTableHead/FdsTableHead.vue"],"names":[],"mappings":"AAgDA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAiHhD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB/C,QAAA,MAAM,eAAe;;;;;;;;4EAInB,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"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Check if a slot has any real content (ignores comment nodes)
3
+ * @param name Slot name, default is "default"
4
+ */
5
+ export declare function useHasSlot(name?: string): import("vue").ComputedRef<boolean>;
6
+ //# sourceMappingURL=useHasSlots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHasSlots.d.ts","sourceRoot":"","sources":["../../src/composables/useHasSlots.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,GAAE,MAAkB,sCAUlD"}
@@ -405,6 +405,15 @@ const useTreeState = (options = {}) => {
405
405
  isEmptySearchResult
406
406
  };
407
407
  };
408
+ function useHasSlot(name = "default") {
409
+ const slots = vue.useSlots();
410
+ return vue.computed(() => {
411
+ const slotFn = slots[name];
412
+ if (!slotFn) return false;
413
+ const vnodes = slotFn();
414
+ return vnodes.some((vnode) => vnode.type !== vue.Comment);
415
+ });
416
+ }
408
417
  const _hoisted_1$q = ["for"];
409
418
  const _hoisted_2$g = ["id", "name", "value", "disabled", "required"];
410
419
  const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
@@ -444,8 +453,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
444
453
  ]);
445
454
  const autoId = `fds-checkbox-${Math.random().toString(36).slice(2, 9)}`;
446
455
  const inputId = vue.computed(() => props.id ?? autoId);
447
- const slots = vue.useSlots();
448
- const hasLabelSlot = vue.computed(() => !!slots.default);
456
+ const hasLabelSlot = useHasSlot();
449
457
  const internalChecked = vue.computed({
450
458
  get: () => {
451
459
  if (modelValue.value === void 0) {
@@ -522,11 +530,11 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
522
530
  }, null, 10, _hoisted_2$g), [
523
531
  [vue.vModelCheckbox, internalChecked.value]
524
532
  ]),
525
- hasLabelSlot.value || _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", {
533
+ vue.unref(hasLabelSlot) || _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", {
526
534
  key: 0,
527
535
  class: vue.normalizeClass(["relative inline-block leading-6 pl-2 select-none", { "cursor-not-allowed": _ctx.disabled }])
528
536
  }, [
529
- hasLabelSlot.value ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.label ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
537
+ vue.unref(hasLabelSlot) ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.label ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
530
538
  vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
531
539
  ], 64)) : vue.createCommentVNode("", true)
532
540
  ], 2)) : vue.createCommentVNode("", true)
@@ -1156,8 +1164,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
1156
1164
  const emit = __emit;
1157
1165
  const autoId = `fds-radio-${Math.random().toString(36).slice(2, 9)}`;
1158
1166
  const inputId = vue.computed(() => props.id ?? autoId);
1159
- const slots = vue.useSlots();
1160
- const hasLabelSlot = vue.computed(() => !!slots.default);
1167
+ const hasLabelSlot = useHasSlot();
1161
1168
  const radioModel = vue.computed({
1162
1169
  get() {
1163
1170
  return modelValue.value;
@@ -1197,11 +1204,11 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
1197
1204
  }, null, 10, _hoisted_2$f), [
1198
1205
  [vue.vModelRadio, radioModel.value]
1199
1206
  ]),
1200
- hasLabelSlot.value || _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", {
1207
+ vue.unref(hasLabelSlot) || _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", {
1201
1208
  key: 0,
1202
1209
  class: vue.normalizeClass(["relative inline-block leading-6 pl-2 select-none", { "cursor-not-allowed": _ctx.disabled }])
1203
1210
  }, [
1204
- hasLabelSlot.value ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.label ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
1211
+ vue.unref(hasLabelSlot) ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.label ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
1205
1212
  vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
1206
1213
  ], 64)) : vue.createCommentVNode("", true)
1207
1214
  ], 2)) : vue.createCommentVNode("", true)
@@ -1215,7 +1222,7 @@ const _hoisted_2$e = { class: "flex-1 flex" };
1215
1222
  const _hoisted_3$a = ["innerHTML"];
1216
1223
  const _hoisted_4$9 = { key: 1 };
1217
1224
  const _hoisted_5$6 = { key: 0 };
1218
- const _hoisted_6$3 = {
1225
+ const _hoisted_6$4 = {
1219
1226
  key: 2,
1220
1227
  class: "items-center max-h-[28px]"
1221
1228
  };
@@ -1456,7 +1463,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
1456
1463
  _: 1
1457
1464
  }, 8, ["id", "checked", "indeterminate"])
1458
1465
  ]),
1459
- vue.unref(treeState)?.isParentOrChildrenSelected(props.nodeId) && !(vue.unref(treeState)?.isNodeIndeterminateById(props.nodeId) ?? false) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$3, [
1466
+ vue.unref(treeState)?.isParentOrChildrenSelected(props.nodeId) && !(vue.unref(treeState)?.isNodeIndeterminateById(props.nodeId) ?? false) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$4, [
1460
1467
  vue.createVNode(_sfc_main$t, {
1461
1468
  ref_key: "triggerRef",
1462
1469
  ref: triggerRef,
@@ -1894,19 +1901,12 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
1894
1901
  };
1895
1902
  }
1896
1903
  });
1897
- const _export_sfc = (sfc, props) => {
1898
- const target = sfc.__vccOpts || sfc;
1899
- for (const [key, val] of props) {
1900
- target[key] = val;
1901
- }
1902
- return target;
1903
- };
1904
- const FdsInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-4e9b56d8"]]);
1905
1904
  const _hoisted_1$i = ["id"];
1906
1905
  const _hoisted_2$c = { class: "flex items-start justify-between gap-4" };
1907
1906
  const _hoisted_3$8 = { class: "flex items-center gap-3" };
1908
1907
  const _hoisted_4$7 = { class: "mt-0 mb-4 text-lg font-bold tracking-wide" };
1909
1908
  const _hoisted_5$5 = { class: "flex items-start gap-3" };
1909
+ const _hoisted_6$3 = { class: "mb-0-last-child" };
1910
1910
  const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
1911
1911
  __name: "FdsBlockContent",
1912
1912
  props: {
@@ -1948,7 +1948,9 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
1948
1948
  vue.renderSlot(_ctx.$slots, "headerInfo")
1949
1949
  ])
1950
1950
  ]),
1951
- vue.renderSlot(_ctx.$slots, "default")
1951
+ vue.createElementVNode("div", _hoisted_6$3, [
1952
+ vue.renderSlot(_ctx.$slots, "default")
1953
+ ])
1952
1954
  ], 14, _hoisted_1$i);
1953
1955
  };
1954
1956
  }
@@ -2069,7 +2071,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
2069
2071
  ref: searchContainerRef,
2070
2072
  class: "pb-4"
2071
2073
  }, [
2072
- vue.createVNode(FdsInput, {
2074
+ vue.createVNode(_sfc_main$o, {
2073
2075
  value: vue.unref(treeState)?.searchTerm?.value ?? "",
2074
2076
  onInput: _cache[0] || (_cache[0] = ($event) => vue.unref(treeState)?.setSearchTerm($event.target.value)),
2075
2077
  class: "w-full",
@@ -2794,12 +2796,11 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
2794
2796
  return vue.openBlock(), vue.createElementBlock("div", {
2795
2797
  class: vue.normalizeClass(wrapperClasses.value)
2796
2798
  }, [
2797
- vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
2799
+ vue.renderSlot(_ctx.$slots, "default")
2798
2800
  ], 2);
2799
2801
  };
2800
2802
  }
2801
2803
  });
2802
- const FdsTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-2549d82e"]]);
2803
2804
  const _hoisted_1$a = { class: "fds-table-head" };
2804
2805
  const _hoisted_2$7 = { key: 0 };
2805
2806
  const _hoisted_3$4 = { key: 1 };
@@ -2814,15 +2815,14 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
2814
2815
  },
2815
2816
  emits: ["sort"],
2816
2817
  setup(__props) {
2817
- const slots = vue.useSlots();
2818
2818
  const props = __props;
2819
+ const hasSlot = vue.computed(() => useHasSlot());
2819
2820
  const headerClasses = vue.computed(() => [
2820
2821
  "appearance-none p-4 bg-transparent flex items-center border-none text-left w-full bg-transparent text-gray-800 whitespace-nowrap text-base font-bold leading-5 tracking-normal",
2821
2822
  props.align === "center" && "text-center justify-center",
2822
2823
  props.align === "right" && "text-right justify-end",
2823
2824
  iconName.value && "text-blue-600! hover:bg-blue_t-200 cursor-pointer focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-blue-500 active:bg-blue_t-300"
2824
2825
  ]);
2825
- const hasSlot = vue.computed(() => !!slots.default);
2826
2826
  const iconName = vue.computed(() => props.icon);
2827
2827
  return (_ctx, _cache) => {
2828
2828
  return vue.openBlock(), vue.createElementBlock("th", _hoisted_1$a, [
@@ -2866,6 +2866,7 @@ const _hoisted_9 = { class: "flex items-start justify-between gap-4" };
2866
2866
  const _hoisted_10 = { class: "flex items-center gap-3" };
2867
2867
  const _hoisted_11 = { class: "m-0 text-base font-main font-bold tracking-wide" };
2868
2868
  const _hoisted_12 = { class: "flex items-start gap-3" };
2869
+ const _hoisted_13 = { class: "no-margin-last-child" };
2869
2870
  const smallIconSize = 24;
2870
2871
  const largeIconSize = 48;
2871
2872
  const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
@@ -2878,12 +2879,12 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
2878
2879
  },
2879
2880
  setup(__props) {
2880
2881
  const props = __props;
2881
- const hasDefaultSlot = vue.computed(() => !!vue.useSlots().default);
2882
+ const hasSlot = useHasSlot();
2882
2883
  const contentClasses = vue.computed(() => [
2883
2884
  "rounded-md bg-blue_t-100 mb-4",
2884
- !hasDefaultSlot.value && "mb-0!",
2885
+ !hasSlot.value && "mb-0!",
2885
2886
  props.size === "small" && "p-4",
2886
- props.size === "small" && hasDefaultSlot.value && "pb-6",
2887
+ props.size === "small" && hasSlot.value && "pb-6",
2887
2888
  props.size === "large" && props.icon && "p-6"
2888
2889
  ]);
2889
2890
  const autoId = `fds-content-block-${Math.random().toString(36).slice(2, 9)}`;
@@ -2908,11 +2909,11 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
2908
2909
  ])
2909
2910
  ])
2910
2911
  ]),
2911
- hasDefaultSlot.value ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : vue.createCommentVNode("", true)
2912
+ vue.unref(hasSlot) ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : vue.createCommentVNode("", true)
2912
2913
  ])
2913
2914
  ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
2914
2915
  vue.createElementVNode("div", {
2915
- class: vue.normalizeClass({ "mb-4": hasDefaultSlot.value })
2916
+ class: vue.normalizeClass({ "mb-4": vue.unref(hasSlot) })
2916
2917
  }, [
2917
2918
  vue.createElementVNode("header", _hoisted_9, [
2918
2919
  vue.createElementVNode("div", _hoisted_10, [
@@ -2929,7 +2930,9 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
2929
2930
  ])
2930
2931
  ])
2931
2932
  ], 2),
2932
- vue.renderSlot(_ctx.$slots, "default")
2933
+ vue.createElementVNode("div", _hoisted_13, [
2934
+ vue.renderSlot(_ctx.$slots, "default")
2935
+ ])
2933
2936
  ]))
2934
2937
  ], 10, _hoisted_1$9);
2935
2938
  };
@@ -2940,7 +2943,7 @@ const _hoisted_2$5 = { class: "flex items-center gap-2" };
2940
2943
  const _hoisted_3$2 = { class: "relative" };
2941
2944
  const _hoisted_4$2 = {
2942
2945
  key: 1,
2943
- class: "alert-content"
2946
+ class: "fds-block-alert-slot"
2944
2947
  };
2945
2948
  const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
2946
2949
  __name: "FdsBlockAlert",
@@ -2963,13 +2966,17 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
2963
2966
  const expandLabel = vue.computed(() => props.locale === "sv" ? "Visa mer" : "Show more");
2964
2967
  const collapseLabel = vue.computed(() => props.locale === "sv" ? "Visa mindre" : "Show less");
2965
2968
  const closeLabel = vue.computed(() => props.locale === "sv" ? "Stäng" : "Close");
2969
+ const hasSlot = useHasSlot();
2966
2970
  vue.watch(
2967
2971
  () => props.visible,
2968
2972
  (v) => {
2969
2973
  isVisible.value = v;
2970
2974
  }
2971
2975
  );
2972
- const alertClasses = vue.computed(() => ["bg-yellow-200 border-yellow-300 border-1 rounded-md p-4 pb-6 mb-4"]);
2976
+ const alertClasses = vue.computed(() => [
2977
+ "bg-yellow-200 border-yellow-300 border-1 rounded-md p-4 mb-4",
2978
+ props.collapsable && !isExpanded.value || !hasSlot.value ? "pb-4" : "pb-6"
2979
+ ]);
2973
2980
  const autoId = `fds-alert-${Math.random().toString(36).slice(2, 9)}`;
2974
2981
  const alertId = vue.computed(() => props.id ?? autoId);
2975
2982
  function handleClose() {
@@ -3104,7 +3111,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
3104
3111
  ], 2),
3105
3112
  vue.withDirectives(vue.createElementVNode("div", {
3106
3113
  "aria-hidden": !isOpen.value,
3107
- class: "fds-expander__content block px-4 pb-6 rounded-b-2xl bg-white"
3114
+ class: "mb-0-last-child block px-4 pb-6 rounded-b-2xl bg-white"
3108
3115
  }, [
3109
3116
  vue.renderSlot(_ctx.$slots, "default")
3110
3117
  ], 8, _hoisted_4$1), [
@@ -3133,6 +3140,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
3133
3140
  emits: ["click"],
3134
3141
  setup(__props, { emit: __emit }) {
3135
3142
  const props = __props;
3143
+ const hasSlot = useHasSlot();
3136
3144
  const emit = __emit;
3137
3145
  const innerClasses = vue.computed(() => [
3138
3146
  props.disabled ? "cursor-not-allowed shadow-none hover:border-transparent active:bg-transparent" : "cursor-pointer",
@@ -3140,7 +3148,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
3140
3148
  ]);
3141
3149
  const headerClasses = vue.computed(() => [
3142
3150
  !props.arrow && !props.icon && "mb-2",
3143
- !hasDefaultSlot.value && "mb-0!",
3151
+ !hasSlot.value && "mb-0!",
3144
3152
  props.icon && "flex-1"
3145
3153
  ]);
3146
3154
  const contentClasses = vue.computed(() => [props.icon ? "items-start gap-3" : "flex-col"]);
@@ -3148,7 +3156,6 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
3148
3156
  const iconClasses = vue.computed(() => [props.disabled && "text-gray-700"]);
3149
3157
  const arrowClasses = vue.computed(() => [props.disabled && "hidden"]);
3150
3158
  const headerTextClasses = vue.computed(() => [props.disabled ? "text-gray-700" : "text-blue-600"]);
3151
- const hasDefaultSlot = vue.computed(() => !!vue.useSlots().default);
3152
3159
  function handleClick(event) {
3153
3160
  if (props.disabled || !props.interactive) {
3154
3161
  event.preventDefault();
@@ -3225,7 +3232,14 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
3225
3232
  };
3226
3233
  }
3227
3234
  });
3228
- const FdsBlockLink = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-8037b5bf"]]);
3235
+ const _export_sfc = (sfc, props) => {
3236
+ const target = sfc.__vccOpts || sfc;
3237
+ for (const [key, val] of props) {
3238
+ target[key] = val;
3239
+ }
3240
+ return target;
3241
+ };
3242
+ const FdsBlockLink = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-4fcf4dc9"]]);
3229
3243
  const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
3230
3244
  __name: "FdsSticker",
3231
3245
  props: {
@@ -3419,7 +3433,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
3419
3433
  }
3420
3434
  });
3421
3435
  const _hoisted_1$4 = { class: "flex justify-between mb-4" };
3422
- const _hoisted_2$2 = { class: "fds-modal__inner__content" };
3436
+ const _hoisted_2$2 = { class: "mb-0-last-child" };
3423
3437
  const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
3424
3438
  __name: "FdsModal",
3425
3439
  props: {
@@ -3438,24 +3452,21 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
3438
3452
  setup(__props, { emit: __emit }) {
3439
3453
  const props = __props;
3440
3454
  const emit = __emit;
3441
- const slots = vue.useSlots();
3442
3455
  const isOpen = vue.ref(props.open);
3443
3456
  let cleanupFocusTrap = null;
3444
- const hasFooter = vue.computed(() => !!slots["modal-footer"]);
3445
- const modalOuterClasses = vue.computed(() => [
3446
- "fixed top-0 left-0 w-full h-full overflow-auto z-100"
3447
- ]);
3457
+ const hasFooterSlot = useHasSlot("modal-footer");
3458
+ const modalOuterClasses = vue.computed(() => ["fixed top-0 left-0 w-full h-full overflow-auto z-100"]);
3448
3459
  const modalInnerClasses = vue.computed(() => [
3449
3460
  "relative min-w-[288px] w-[calc(100%-5rem)] bg-white rounded-lg overflow-auto z-[99999] shadow-lg p-6 left-1/2",
3450
3461
  "top-1/2 translate-x-[-50%]",
3451
3462
  props.alignTop ? "max-h-[60%] top-[10rem]" : "max-h-[80%] translate-y-[-50%]",
3452
- hasFooter.value ? "pb-0" : "",
3463
+ hasFooterSlot.value ? "pb-0" : "",
3453
3464
  {
3454
3465
  "max-w-[480px]": props.size === "sm",
3455
3466
  "max-w-[588px]": props.size === "md",
3456
3467
  "max-w-[768px]": props.size === "lg",
3457
3468
  "max-w-[1200px]": props.size === "xl",
3458
- "pb-0": hasFooter.value
3469
+ "pb-0": hasFooterSlot.value
3459
3470
  }
3460
3471
  ]);
3461
3472
  const headerTitleClasses = vue.computed(() => ["m-0"]);
@@ -3605,13 +3616,13 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
3605
3616
  }, null, 8, ["ariaLabel"])) : vue.createCommentVNode("", true)
3606
3617
  ]),
3607
3618
  vue.createElementVNode("div", _hoisted_2$2, [
3608
- vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
3619
+ vue.renderSlot(_ctx.$slots, "default")
3609
3620
  ]),
3610
- hasFooter.value ? (vue.openBlock(), vue.createElementBlock("div", {
3621
+ vue.unref(hasFooterSlot) ? (vue.openBlock(), vue.createElementBlock("div", {
3611
3622
  key: 0,
3612
3623
  class: vue.normalizeClass(footerClasses.value)
3613
3624
  }, [
3614
- vue.renderSlot(_ctx.$slots, "modal-footer", {}, void 0, true)
3625
+ vue.renderSlot(_ctx.$slots, "modal-footer")
3615
3626
  ], 2)) : vue.createCommentVNode("", true)
3616
3627
  ], 2)
3617
3628
  ], 2)) : vue.createCommentVNode("", true)
@@ -3619,7 +3630,6 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
3619
3630
  };
3620
3631
  }
3621
3632
  });
3622
- const FdsModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-9a84f324"]]);
3623
3633
  const _hoisted_1$3 = ["id"];
3624
3634
  const _hoisted_2$1 = { class: "flex items-center justify-start gap-1 w-[100px]" };
3625
3635
  const _hoisted_3 = { class: "flex items-center justify-center w-auto gap-2 order-0 sm:order-0" };
@@ -3743,7 +3753,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3743
3753
  label: "Laddar",
3744
3754
  "label-position": "right"
3745
3755
  })) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
3746
- vue.createVNode(FdsInput, {
3756
+ vue.createVNode(_sfc_main$o, {
3747
3757
  value: inputValue.value,
3748
3758
  type: "text",
3749
3759
  size: _ctx.max.toString().length,
@@ -3799,10 +3809,9 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
3799
3809
  setup(__props, { emit: __emit }) {
3800
3810
  const props = __props;
3801
3811
  const emit = __emit;
3802
- const slots = vue.useSlots();
3803
3812
  const isOpen = vue.ref(props.open);
3804
3813
  const contentRef = vue.ref(null);
3805
- const hasSlotContent = vue.computed(() => !!slots.default);
3814
+ const hasSlotContent = useHasSlot();
3806
3815
  const containerWidth = vue.ref(0);
3807
3816
  const truncated = vue.ref(false);
3808
3817
  const slotContentRef = vue.ref(null);
@@ -3838,7 +3847,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
3838
3847
  });
3839
3848
  return (_ctx, _cache) => {
3840
3849
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
3841
- hasSlotContent.value ? (vue.openBlock(), vue.createElementBlock("div", {
3850
+ vue.unref(hasSlotContent) ? (vue.openBlock(), vue.createElementBlock("div", {
3842
3851
  key: 0,
3843
3852
  ref_key: "slotContentRef",
3844
3853
  ref: slotContentRef,
@@ -3989,9 +3998,9 @@ const FdsVueCorePlugin = {
3989
3998
  app.component("FdsCheckbox", _sfc_main$v);
3990
3999
  app.component("FdsTextarea", _sfc_main$g);
3991
4000
  app.component("FdsSelect", _sfc_main$f);
3992
- app.component("FdsTable", FdsTable);
4001
+ app.component("FdsTable", _sfc_main$e);
3993
4002
  app.component("FdsTableHead", _sfc_main$d);
3994
- app.component("FdsInput", FdsInput);
4003
+ app.component("FdsInput", _sfc_main$o);
3995
4004
  app.component("FdsBlockContent", _sfc_main$n);
3996
4005
  app.component("FdsBlockInfo", _sfc_main$c);
3997
4006
  app.component("FdsBlockAlert", _sfc_main$b);
@@ -4000,7 +4009,7 @@ const FdsVueCorePlugin = {
4000
4009
  app.component("FdsSticker", _sfc_main$8);
4001
4010
  app.component("FdsTabs", _sfc_main$7);
4002
4011
  app.component("FdsTabsItem", _sfc_main$6);
4003
- app.component("FdsModal", FdsModal);
4012
+ app.component("FdsModal", _sfc_main$5);
4004
4013
  app.component("FdsPagination", _sfc_main$4);
4005
4014
  app.component("FdsTruncatedText", _sfc_main$3);
4006
4015
  app.component("FdsHeading", _sfc_main$2);
@@ -4023,16 +4032,16 @@ exports.FdsButtonSecondary = _sfc_main$j;
4023
4032
  exports.FdsCheckbox = _sfc_main$v;
4024
4033
  exports.FdsHeading = _sfc_main$2;
4025
4034
  exports.FdsIcon = _sfc_main$u;
4026
- exports.FdsInput = FdsInput;
4035
+ exports.FdsInput = _sfc_main$o;
4027
4036
  exports.FdsListHeading = _sfc_main;
4028
- exports.FdsModal = FdsModal;
4037
+ exports.FdsModal = _sfc_main$5;
4029
4038
  exports.FdsPagination = _sfc_main$4;
4030
4039
  exports.FdsRadio = _sfc_main$s;
4031
4040
  exports.FdsSelect = _sfc_main$f;
4032
4041
  exports.FdsSeparator = FdsSeparator;
4033
4042
  exports.FdsSpinner = _sfc_main$q;
4034
4043
  exports.FdsSticker = _sfc_main$8;
4035
- exports.FdsTable = FdsTable;
4044
+ exports.FdsTable = _sfc_main$e;
4036
4045
  exports.FdsTableHead = _sfc_main$d;
4037
4046
  exports.FdsTabs = _sfc_main$7;
4038
4047
  exports.FdsTabsItem = _sfc_main$6;