@frollo/frollo-web-ui 8.0.4 → 8.1.1

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/cjs/index.js CHANGED
@@ -6974,6 +6974,10 @@ function uniqueId(prefix) {
6974
6974
  required: {
6975
6975
  type: Boolean,
6976
6976
  "default": false
6977
+ },
6978
+ centerAlignInput: {
6979
+ type: Boolean,
6980
+ "default": false
6977
6981
  }
6978
6982
  },
6979
6983
  setup: function setup(props, ctx) {
@@ -7022,11 +7026,11 @@ var _hoisted_10$5 = {
7022
7026
  key: 0,
7023
7027
  "class": "text-left text-sm font-medium mt-2 min-h-[21px]"
7024
7028
  };
7025
- var _hoisted_11$2 = {
7029
+ var _hoisted_11$3 = {
7026
7030
  key: 0,
7027
7031
  "class": "text-error"
7028
7032
  };
7029
- var _hoisted_12$2 = {
7033
+ var _hoisted_12$3 = {
7030
7034
  key: 1
7031
7035
  };
7032
7036
  function render$17(_ctx, _cache, $props, $setup, $data, $options) {
@@ -7066,7 +7070,9 @@ function render$17(_ctx, _cache, $props, $setup, $data, $options) {
7066
7070
  "class": ["border-blue-500", [{
7067
7071
  'pl-10': !!_ctx.$slots.prefix,
7068
7072
  'pr-20': !!_ctx.$slots.suffix
7069
- }, (errorMessage || errors[0]) && meta.touched ? 'border-error text-error' : 'border-grey-40', _ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded']]
7073
+ }, (errorMessage || errors[0]) && meta.touched ? 'border-error text-error' : 'border-grey-40', _ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded', {
7074
+ 'text-center': _ctx.centerAlignInput
7075
+ }]]
7070
7076
  }), null, 16, _hoisted_8$9), _ctx.$slots.suffix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$8, [vue.renderSlot(_ctx.$slots, "suffix", {
7071
7077
  "class": "h-full"
7072
7078
  })])) : vue.createCommentVNode("", true)]), _ctx.enableErrors ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$5, [vue.createVNode(vue.Transition, {
@@ -7074,7 +7080,7 @@ function render$17(_ctx, _cache, $props, $setup, $data, $options) {
7074
7080
  mode: "out-in"
7075
7081
  }, {
7076
7082
  "default": vue.withCtx(function () {
7077
- return [(errorMessage || errors[0]) && meta.touched ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_11$2, vue.toDisplayString(errorMessage || errors[0]), 1)) : _ctx.hint ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_12$2, vue.toDisplayString(_ctx.hint), 1)) : vue.createCommentVNode("", true)];
7083
+ return [(errorMessage || errors[0]) && meta.touched ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_11$3, vue.toDisplayString(errorMessage || errors[0]), 1)) : _ctx.hint ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_12$3, vue.toDisplayString(_ctx.hint), 1)) : vue.createCommentVNode("", true)];
7078
7084
  }),
7079
7085
  _: 2
7080
7086
  }, 1024)])) : vue.createCommentVNode("", true)])];
@@ -8130,8 +8136,8 @@ var _hoisted_9$6 = {
8130
8136
  var _hoisted_10$4 = {
8131
8137
  "class": ""
8132
8138
  };
8133
- var _hoisted_11$1 = ["aria-labelledby"];
8134
- var _hoisted_12$1 = ["onClick"];
8139
+ var _hoisted_11$2 = ["aria-labelledby"];
8140
+ var _hoisted_12$2 = ["onClick"];
8135
8141
  var _hoisted_13$1 = {
8136
8142
  "class": "flex items-center gap-x-2"
8137
8143
  };
@@ -8198,8 +8204,8 @@ function render$p(_ctx, _cache, $props, $setup, $data, $options) {
8198
8204
  key: 0,
8199
8205
  src: option.image_url,
8200
8206
  "class": "w-[20px] h-[20px]"
8201
- }, null, 8, ["src"])) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_14$1, [vue.createElementVNode("span", null, vue.toDisplayString(option.label), 1), option.description ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_15$1, vue.toDisplayString(option.description), 1)) : vue.createCommentVNode("", true)])])], 10, _hoisted_12$1);
8202
- }), 128))], 10, _hoisted_11$1), [[vue.vShow, _ctx.isOpen]])];
8207
+ }, null, 8, ["src"])) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_14$1, [vue.createElementVNode("span", null, vue.toDisplayString(option.label), 1), option.description ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_15$1, vue.toDisplayString(option.description), 1)) : vue.createCommentVNode("", true)])])], 10, _hoisted_12$2);
8208
+ }), 128))], 10, _hoisted_11$2), [[vue.vShow, _ctx.isOpen]])];
8203
8209
  }),
8204
8210
  _: 1
8205
8211
  }), _ctx.enableErrors ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$1, [vue.createVNode(vue.Transition, {
@@ -9322,11 +9328,15 @@ styleInject(css_248z$b);__default__$7.render = render$g;var __default__$6 = vue.
9322
9328
  components: {
9323
9329
  ArrowSortSvg: render$B,
9324
9330
  ArrowDownSvg: render$A,
9325
- FwLoadingBar: script$k
9331
+ ChevronLeftSvg: render$O,
9332
+ ChevronRightSvg: render$P,
9333
+ FwLoadingBar: script$k,
9334
+ FwButton: script$f
9326
9335
  },
9327
9336
  emits: [/** Fired when a row is clicked with row data */
9328
9337
  'rowClicked', /** Fired when a column is sorted */
9329
- 'columnSorted'],
9338
+ 'columnSorted', /** Fired when a page number or arrow is clicked */
9339
+ 'pageChanged'],
9330
9340
  props: {
9331
9341
  items: {
9332
9342
  type: Array,
@@ -9350,6 +9360,16 @@ styleInject(css_248z$b);__default__$7.render = render$g;var __default__$6 = vue.
9350
9360
  },
9351
9361
  autoSortColumn: {
9352
9362
  type: Number
9363
+ },
9364
+ enablePagination: {
9365
+ type: Boolean,
9366
+ "default": false
9367
+ },
9368
+ totalAmount: {
9369
+ type: Number
9370
+ },
9371
+ pageSize: {
9372
+ type: Number
9353
9373
  }
9354
9374
  },
9355
9375
  setup: function setup(props, ctx) {
@@ -9359,10 +9379,15 @@ styleInject(css_248z$b);__default__$7.render = render$g;var __default__$6 = vue.
9359
9379
  var sortBy = vue.ref('');
9360
9380
  var sortDirection = vue.ref('asc');
9361
9381
  var currentSortedColumn = vue.ref('');
9382
+ var currentPage = vue.ref(1);
9383
+ var maxPageAmount = vue.ref();
9362
9384
  vue.onMounted(function () {
9363
9385
  if (Number(props.autoSortColumn) >= 0) {
9364
9386
  sortColumn(columns.value[Number(props.autoSortColumn)], false);
9365
9387
  }
9388
+ if (props.totalAmount && props.pageSize) {
9389
+ maxPageAmount.value = Math.ceil(props.totalAmount / props.pageSize);
9390
+ }
9366
9391
  });
9367
9392
  var _useColours = useColours(),
9368
9393
  bgHoverColor = _useColours.primaryFade5;
@@ -9432,6 +9457,10 @@ styleInject(css_248z$b);__default__$7.render = render$g;var __default__$6 = vue.
9432
9457
  var rowClicked = function rowClicked(row) {
9433
9458
  if (props.clickableRows) ctx.emit('rowClicked', row);
9434
9459
  };
9460
+ var pageArrowClick = function pageArrowClick(next) {
9461
+ currentPage.value = currentPage.value + (next ? 1 : -1);
9462
+ ctx.emit('pageChanged', next);
9463
+ };
9435
9464
  return {
9436
9465
  columns: columns,
9437
9466
  sortBy: sortBy,
@@ -9444,14 +9473,17 @@ styleInject(css_248z$b);__default__$7.render = render$g;var __default__$6 = vue.
9444
9473
  isColumnSortable: isColumnSortable,
9445
9474
  isDisabled: isDisabled,
9446
9475
  rowClicked: rowClicked,
9447
- bgHoverColor: bgHoverColor
9476
+ bgHoverColor: bgHoverColor,
9477
+ currentPage: currentPage,
9478
+ maxPageAmount: maxPageAmount,
9479
+ pageArrowClick: pageArrowClick
9448
9480
  };
9449
9481
  }
9450
9482
  });
9451
9483
  var __injectCSSVars__$5 = function __injectCSSVars__() {
9452
9484
  vue.useCssVars(function (_ctx) {
9453
9485
  return {
9454
- "d606643a": _ctx.bgHoverColor
9486
+ "11c7ec1c": _ctx.bgHoverColor
9455
9487
  };
9456
9488
  });
9457
9489
  };
@@ -9460,42 +9492,52 @@ __default__$6.setup = __setup__$5 ? function (props, ctx) {
9460
9492
  __injectCSSVars__$5();
9461
9493
  return __setup__$5(props, ctx);
9462
9494
  } : __injectCSSVars__$5;var _withScopeId$4 = function _withScopeId(n) {
9463
- return vue.pushScopeId("data-v-46577d1a"), n = n(), vue.popScopeId(), n;
9495
+ return vue.pushScopeId("data-v-b7ffd9d4"), n = n(), vue.popScopeId(), n;
9496
+ };
9497
+ var _hoisted_1$p = {
9498
+ "class": "flex flex-col"
9464
9499
  };
9465
- var _hoisted_1$p = ["aria-busy"];
9466
- var _hoisted_2$n = {
9500
+ var _hoisted_2$n = ["aria-busy"];
9501
+ var _hoisted_3$j = {
9467
9502
  "class": "text-p2 border-b border-grey-40"
9468
9503
  };
9469
- var _hoisted_3$j = ["tabindex", "onKeydown", "onClick"];
9470
- var _hoisted_4$a = {
9504
+ var _hoisted_4$a = ["tabindex", "onKeydown", "onClick"];
9505
+ var _hoisted_5$8 = {
9471
9506
  "class": "flex flex-row items-center"
9472
9507
  };
9473
- var _hoisted_5$8 = {
9508
+ var _hoisted_6$6 = {
9474
9509
  key: 0,
9475
9510
  "class": "ml-1 flex items-center justify-center w-5"
9476
9511
  };
9477
- var _hoisted_6$6 = {
9512
+ var _hoisted_7$5 = {
9478
9513
  "class": "text-p2 bg-white font-light"
9479
9514
  };
9480
- var _hoisted_7$5 = {
9515
+ var _hoisted_8$4 = {
9481
9516
  key: 0,
9482
9517
  "class": "py-4 pl-5 pr-3 text-left"
9483
9518
  };
9484
- var _hoisted_8$4 = {
9519
+ var _hoisted_9$3 = {
9485
9520
  key: 0,
9486
9521
  "class": "py-4 pl-5 pr-3 text-left"
9487
9522
  };
9488
- var _hoisted_9$3 = ["onClick", "tabindex", "onKeydown"];
9489
- var _hoisted_10$1 = ["innerHTML"];
9523
+ var _hoisted_10$1 = ["onClick", "tabindex", "onKeydown"];
9524
+ var _hoisted_11$1 = ["innerHTML"];
9525
+ var _hoisted_12$1 = {
9526
+ key: 0,
9527
+ "class": "flex flex-row justify-center h-[44px] mt-8 space-x-2 mb-[40px]"
9528
+ };
9490
9529
  function render$f(_ctx, _cache, $props, $setup, $data, $options) {
9491
9530
  var _component_ArrowSortSvg = vue.resolveComponent("ArrowSortSvg");
9492
9531
  var _component_ArrowDownSvg = vue.resolveComponent("ArrowDownSvg");
9493
9532
  var _component_FwLoadingBar = vue.resolveComponent("FwLoadingBar");
9494
- return vue.openBlock(), vue.createElementBlock("table", {
9495
- "class": vue.normalizeClass(["fw-table table-auto table-responsive rounded-md shadow-card", _ctx.loading ? 'cursor-wait' : '']),
9533
+ var _component_ChevronLeftSvg = vue.resolveComponent("ChevronLeftSvg");
9534
+ var _component_FwButton = vue.resolveComponent("FwButton");
9535
+ var _component_ChevronRightSvg = vue.resolveComponent("ChevronRightSvg");
9536
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [vue.createElementVNode("table", {
9537
+ "class": vue.normalizeClass(["fw-table table-auto table-responsive rounded-md shadow-card flex-1", _ctx.loading ? 'cursor-wait' : '']),
9496
9538
  "aria-live": "polite",
9497
9539
  "aria-busy": _ctx.loading
9498
- }, [vue.createElementVNode("thead", _hoisted_2$n, [vue.createElementVNode("tr", null, [_ctx.$slots.preHead ? vue.renderSlot(_ctx.$slots, "preHead", {
9540
+ }, [vue.createElementVNode("thead", _hoisted_3$j, [vue.createElementVNode("tr", null, [_ctx.$slots.preHead ? vue.renderSlot(_ctx.$slots, "preHead", {
9499
9541
  key: 0
9500
9542
  }) : vue.createCommentVNode("", true), (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columns, function (column, thKey) {
9501
9543
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
@@ -9510,9 +9552,9 @@ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
9510
9552
  onClick: function onClick($event) {
9511
9553
  return _ctx.sortColumn(column);
9512
9554
  }
9513
- }, [vue.createElementVNode("div", _hoisted_4$a, [vue.createElementVNode("span", {
9555
+ }, [vue.createElementVNode("div", _hoisted_5$8, [vue.createElementVNode("span", {
9514
9556
  "class": vue.normalizeClass(_ctx.sortedIcon('asc', column) || _ctx.sortedIcon('desc', column) ? 'text-primary' : '')
9515
- }, vue.toDisplayString(column), 3), _ctx.isColumnSortable(column) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$8, [!_ctx.sortedIcon('asc', column) && !_ctx.sortedIcon('desc', column) ? (vue.openBlock(), vue.createBlock(_component_ArrowSortSvg, {
9557
+ }, vue.toDisplayString(column), 3), _ctx.isColumnSortable(column) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$6, [!_ctx.sortedIcon('asc', column) && !_ctx.sortedIcon('desc', column) ? (vue.openBlock(), vue.createBlock(_component_ArrowSortSvg, {
9516
9558
  key: 0,
9517
9559
  "class": "inline-block w-full text-grey-base"
9518
9560
  })) : vue.createCommentVNode("", true), _ctx.sortedIcon('asc', column) ? (vue.openBlock(), vue.createBlock(_component_ArrowDownSvg, {
@@ -9521,10 +9563,10 @@ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
9521
9563
  })) : vue.createCommentVNode("", true), _ctx.sortedIcon('desc', column) ? (vue.openBlock(), vue.createBlock(_component_ArrowDownSvg, {
9522
9564
  key: 2,
9523
9565
  "class": "inline-block w-4 text-primary"
9524
- })) : vue.createCommentVNode("", true)])) : vue.createCommentVNode("", true)])], 42, _hoisted_3$j)) : vue.createCommentVNode("", true)], 64);
9566
+ })) : vue.createCommentVNode("", true)])) : vue.createCommentVNode("", true)])], 42, _hoisted_4$a)) : vue.createCommentVNode("", true)], 64);
9525
9567
  }), 128)), _ctx.$slots.head ? vue.renderSlot(_ctx.$slots, "head", {
9526
9568
  key: 1
9527
- }) : vue.createCommentVNode("", true)])]), vue.createElementVNode("tbody", _hoisted_6$6, [_ctx.loading ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
9569
+ }) : vue.createCommentVNode("", true)])]), vue.createElementVNode("tbody", _hoisted_7$5, [_ctx.loading ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
9528
9570
  key: 0
9529
9571
  }, vue.renderList(_ctx.sortedData, function (row, trKey) {
9530
9572
  return vue.openBlock(), vue.createElementBlock("tr", {
@@ -9532,10 +9574,10 @@ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
9532
9574
  }, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columns, function (column, colKey) {
9533
9575
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
9534
9576
  key: colKey
9535
- }, [!_ctx.isDisabled(column) ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_7$5, [vue.createVNode(_component_FwLoadingBar, {
9577
+ }, [!_ctx.isDisabled(column) ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_8$4, [vue.createVNode(_component_FwLoadingBar, {
9536
9578
  "class": "w-full h-7"
9537
9579
  })])) : vue.createCommentVNode("", true)], 64);
9538
- }), 128)), _ctx.$slots.row ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_8$4, [vue.createVNode(_component_FwLoadingBar, {
9580
+ }), 128)), _ctx.$slots.row ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_9$3, [vue.createVNode(_component_FwLoadingBar, {
9539
9581
  "class": "w-full h-7"
9540
9582
  })])) : vue.createCommentVNode("", true)]);
9541
9583
  }), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
@@ -9561,16 +9603,47 @@ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
9561
9603
  key: 0,
9562
9604
  "class": "py-2 pl-5 pr-3 text-left",
9563
9605
  innerHTML: _ctx.formattedText(row, column)
9564
- }, null, 8, _hoisted_10$1)) : vue.createCommentVNode("", true)], 64);
9606
+ }, null, 8, _hoisted_11$1)) : vue.createCommentVNode("", true)], 64);
9565
9607
  }), 128)), _ctx.$slots.row ? vue.renderSlot(_ctx.$slots, "row", {
9566
9608
  key: 1,
9567
9609
  row: row
9568
- }) : vue.createCommentVNode("", true)], 42, _hoisted_9$3);
9569
- }), 128))])], 10, _hoisted_1$p);
9570
- }var css_248z$a = ".fw-table-head--sortable[data-v-46577d1a]:hover{background-color:var(--d606643a)}.fw-table-row[data-v-46577d1a]:hover{background-color:var(--d606643a)}";
9571
- var stylesheet$a = ".fw-table-head--sortable[data-v-46577d1a]:hover{background-color:var(--d606643a)}.fw-table-row[data-v-46577d1a]:hover{background-color:var(--d606643a)}";
9610
+ }) : vue.createCommentVNode("", true)], 42, _hoisted_10$1);
9611
+ }), 128))])], 10, _hoisted_2$n), _ctx.enablePagination ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$1, [vue.createVNode(_component_FwButton, {
9612
+ variant: 'tertiary',
9613
+ disabled: _ctx.currentPage === 1,
9614
+ size: "sm",
9615
+ "class": "border-grey-40",
9616
+ onClick: _cache[0] || (_cache[0] = function ($event) {
9617
+ return _ctx.pageArrowClick(false);
9618
+ })
9619
+ }, {
9620
+ "default": vue.withCtx(function () {
9621
+ return [vue.createVNode(_component_ChevronLeftSvg, {
9622
+ "class": "h-4 w-4",
9623
+ "stroke-width": "3"
9624
+ })];
9625
+ }),
9626
+ _: 1
9627
+ }, 8, ["disabled"]), vue.renderSlot(_ctx.$slots, "page"), vue.createVNode(_component_FwButton, {
9628
+ variant: 'tertiary',
9629
+ disabled: _ctx.currentPage === _ctx.maxPageAmount,
9630
+ size: "sm",
9631
+ "class": "border-grey-40",
9632
+ onClick: _cache[1] || (_cache[1] = function ($event) {
9633
+ return _ctx.pageArrowClick(true);
9634
+ })
9635
+ }, {
9636
+ "default": vue.withCtx(function () {
9637
+ return [vue.createVNode(_component_ChevronRightSvg, {
9638
+ "class": "h-4 w-4"
9639
+ })];
9640
+ }),
9641
+ _: 1
9642
+ }, 8, ["disabled"])])) : vue.createCommentVNode("", true)]);
9643
+ }var css_248z$a = ".fw-table-head--sortable[data-v-b7ffd9d4]:hover{background-color:var(--11c7ec1c)}.fw-table-row[data-v-b7ffd9d4]:hover{background-color:var(--11c7ec1c)}";
9644
+ var stylesheet$a = ".fw-table-head--sortable[data-v-b7ffd9d4]:hover{background-color:var(--11c7ec1c)}.fw-table-row[data-v-b7ffd9d4]:hover{background-color:var(--11c7ec1c)}";
9572
9645
  styleInject(css_248z$a);__default__$6.render = render$f;
9573
- __default__$6.__scopeId = "data-v-46577d1a";var script$9 = vue.defineComponent({
9646
+ __default__$6.__scopeId = "data-v-b7ffd9d4";var script$9 = vue.defineComponent({
9574
9647
  name: 'FwTableHead'
9575
9648
  });var _hoisted_1$o = {
9576
9649
  "class": "py-6 px-5 text-left font-medium"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, watch, useCssVars, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, toDisplayString, renderSlot, createVNode, Transition, withCtx, withDirectives, vShow } from 'vue';
2
2
  import { u as useColours } from './get-root-colours-DYEoJPEb.js';
3
- import { r as render$1 } from './index-B-9TSbb0.js';
3
+ import { r as render$1 } from './index-svDiDkSU.js';
4
4
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
5
5
  import './check--YD4Ts6g.js';
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, useCssVars, pushScopeId, popScopeId, createElementVNode, openBlock, createElementBlock, createStaticVNode } from 'vue';
2
2
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
3
- export { s as FwLoadingSpinner } from './fw-loading-spinner-AsWqai_A.js';
4
- import './index-B-9TSbb0.js';
3
+ export { s as FwLoadingSpinner } from './fw-loading-spinner-BEzZf1xe.js';
4
+ import './index-svDiDkSU.js';
5
5
  import './check--YD4Ts6g.js';
6
6
 
7
7
  var __default__$1 = defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementBlock, createElementVNode, Fragment, createTextVNode, toDisplayString, renderSlot, createCommentVNode, createVNode } from 'vue';
2
- import { s as script$1 } from './fw-loading-spinner-AsWqai_A.js';
2
+ import { s as script$1 } from './fw-loading-spinner-BEzZf1xe.js';
3
3
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
4
4
 
5
5
  var script = defineComponent({
package/esm/fw-button.js CHANGED
@@ -1,6 +1,6 @@
1
- export { s as FwButton } from './fw-button-D8GUq_wg.js';
1
+ export { s as FwButton } from './fw-button-DdxvSBFa.js';
2
2
  import 'vue';
3
- import './fw-loading-spinner-AsWqai_A.js';
4
- import './index-B-9TSbb0.js';
3
+ import './fw-loading-spinner-BEzZf1xe.js';
4
+ import './index-svDiDkSU.js';
5
5
  import './check--YD4Ts6g.js';
6
6
  import './style-inject.es-tgCJW-Cu.js';
@@ -1,5 +1,5 @@
1
1
  import { reactive, computed, ref, watch, onUnmounted, provide, inject, onMounted, watchEffect, defineComponent, nextTick, toRefs, openBlock, createElementBlock, normalizeClass, createVNode, Transition, withCtx, mergeProps, renderSlot, createTextVNode, toDisplayString, createElementVNode, createCommentVNode, unref, createBlock, resolveDynamicComponent, normalizeProps, Fragment, renderList, normalizeStyle, withKeys, withDirectives, toRef, resolveComponent, resolveDirective, toHandlers, withModifiers, isRef, guardReactiveProps, useCssVars } from 'vue';
2
- import { a as render$1 } from './index-B-9TSbb0.js';
2
+ import { a as render$1 } from './index-svDiDkSU.js';
3
3
  import { u as uniqueId } from './uniqueId-DK6xzFd8.js';
4
4
  import { c as createPopper } from './index-BVcOAKar.js';
5
5
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
package/esm/fw-drawer.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, createElementBlock, renderSlot, createCommentVNode, createVNode, createTextVNode, toDisplayString, vShow } from 'vue';
2
- import { s as script$1 } from './fw-button-D8GUq_wg.js';
2
+ import { s as script$1 } from './fw-button-DdxvSBFa.js';
3
3
  import { u as uniqueId } from './uniqueId-DK6xzFd8.js';
4
- import { b as render$1 } from './index-B-9TSbb0.js';
4
+ import { b as render$1 } from './index-svDiDkSU.js';
5
5
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
6
- import './fw-loading-spinner-AsWqai_A.js';
6
+ import './fw-loading-spinner-BEzZf1xe.js';
7
7
  import './check--YD4Ts6g.js';
8
8
 
9
9
  var script = defineComponent({
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, toRef, ref, computed, watch, onMounted, onBeforeUnmount, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeClass, createBlock, renderSlot, createVNode, Transition, withCtx, withDirectives, Fragment, renderList, vShow } from 'vue';
2
2
  import { u as useField } from './vee-validate.esm-3ptvCDR1.js';
3
- import { r as render$1 } from './index-B-9TSbb0.js';
4
- import { s as script$1 } from './fw-image-DAUZLkf4.js';
3
+ import { r as render$1 } from './index-svDiDkSU.js';
4
+ import { s as script$1 } from './fw-image-DedhILQL.js';
5
5
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
6
6
 
7
7
  var script = defineComponent({
@@ -1,8 +1,8 @@
1
- export { s as FwDropdown } from './fw-dropdown-YXj5yyty.js';
1
+ export { s as FwDropdown } from './fw-dropdown-BcnKbaW1.js';
2
2
  import 'vue';
3
3
  import './vee-validate.esm-3ptvCDR1.js';
4
- import './index-B-9TSbb0.js';
4
+ import './index-svDiDkSU.js';
5
5
  import './check--YD4Ts6g.js';
6
- import './fw-image-DAUZLkf4.js';
6
+ import './fw-image-DedhILQL.js';
7
7
  import './fw-loading-bar-DThRjdw1.js';
8
8
  import './style-inject.es-tgCJW-Cu.js';
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, ref, resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, withKeys, createElementVNode, createVNode, createBlock, createCommentVNode, renderSlot } from 'vue';
2
2
  import { s as script$1 } from './fw-loading-bar-DThRjdw1.js';
3
- import { k as render$1 } from './index-B-9TSbb0.js';
3
+ import { l as render$1 } from './index-svDiDkSU.js';
4
4
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
5
5
 
6
6
  var handleIntersect = function handleIntersect(entries, observer) {
package/esm/fw-image.js CHANGED
@@ -1,6 +1,6 @@
1
- export { s as FwImage } from './fw-image-DAUZLkf4.js';
1
+ export { s as FwImage } from './fw-image-DedhILQL.js';
2
2
  import 'vue';
3
3
  import './fw-loading-bar-DThRjdw1.js';
4
4
  import './style-inject.es-tgCJW-Cu.js';
5
- import './index-B-9TSbb0.js';
5
+ import './index-svDiDkSU.js';
6
6
  import './check--YD4Ts6g.js';
@@ -108,6 +108,10 @@ var script = defineComponent({
108
108
  required: {
109
109
  type: Boolean,
110
110
  "default": false
111
+ },
112
+ centerAlignInput: {
113
+ type: Boolean,
114
+ "default": false
111
115
  }
112
116
  },
113
117
  setup: function setup(props, ctx) {
@@ -202,7 +206,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
202
206
  "class": ["border-blue-500", [{
203
207
  'pl-10': !!_ctx.$slots.prefix,
204
208
  'pr-20': !!_ctx.$slots.suffix
205
- }, (errorMessage || errors[0]) && meta.touched ? 'border-error text-error' : 'border-grey-40', _ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded']]
209
+ }, (errorMessage || errors[0]) && meta.touched ? 'border-error text-error' : 'border-grey-40', _ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded', {
210
+ 'text-center': _ctx.centerAlignInput
211
+ }]]
206
212
  }), null, 16, _hoisted_8), _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_9, [renderSlot(_ctx.$slots, "suffix", {
207
213
  "class": "h-full"
208
214
  })])) : createCommentVNode("", true)]), _ctx.enableErrors ? (openBlock(), createElementBlock("div", _hoisted_10, [createVNode(Transition, {
package/esm/fw-input.js CHANGED
@@ -1,4 +1,4 @@
1
- export { s as FwInput } from './fw-input-CPU_C8IU.js';
1
+ export { s as FwInput } from './fw-input-BPFFMpc2.js';
2
2
  import 'vue';
3
3
  import './vee-validate.esm-3ptvCDR1.js';
4
4
  import './uniqueId-DK6xzFd8.js';
@@ -1,4 +1,4 @@
1
- import { i as render$1 } from './index-B-9TSbb0.js';
1
+ import { j as render$1 } from './index-svDiDkSU.js';
2
2
  import { defineComponent, resolveComponent, openBlock, createBlock } from 'vue';
3
3
 
4
4
  var script = defineComponent({
package/esm/fw-modal.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, createCommentVNode, createElementBlock, renderSlot, createTextVNode, toDisplayString, vShow } from 'vue';
2
- import { s as script$1 } from './fw-button-D8GUq_wg.js';
2
+ import { s as script$1 } from './fw-button-DdxvSBFa.js';
3
3
  import { u as uniqueId } from './uniqueId-DK6xzFd8.js';
4
- import { b as render$1 } from './index-B-9TSbb0.js';
4
+ import { b as render$1 } from './index-svDiDkSU.js';
5
5
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
6
- import './fw-loading-spinner-AsWqai_A.js';
6
+ import './fw-loading-spinner-BEzZf1xe.js';
7
7
  import './check--YD4Ts6g.js';
8
8
 
9
9
  var script = defineComponent({
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, createElementVNode, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createVNode, Transition } from 'vue';
2
- import { s as script$1 } from './fw-button-D8GUq_wg.js';
2
+ import { s as script$1 } from './fw-button-DdxvSBFa.js';
3
3
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
4
- import './fw-loading-spinner-AsWqai_A.js';
5
- import './index-B-9TSbb0.js';
4
+ import './fw-loading-spinner-BEzZf1xe.js';
5
+ import './index-svDiDkSU.js';
6
6
  import './check--YD4Ts6g.js';
7
7
 
8
8
  var script = defineComponent({
@@ -1,19 +1,19 @@
1
1
  import { e as _defineProperty } from './_rollupPluginBabelHelpers-DpC_oIQV.js';
2
2
  import { defineComponent, ref, computed, createElementVNode, resolveComponent, openBlock, createElementBlock, toDisplayString, createVNode, withCtx, createBlock, createCommentVNode, createTextVNode } from 'vue';
3
- import { _ as __default__, s as script$4, a as script$5 } from './fw-table-row-7vke3KXB.js';
4
- import { s as script$1 } from './fw-input-CPU_C8IU.js';
5
- import { _ as __default__$1 } from './fw-tag-BVEv8PMh.js';
6
- import { s as script$3 } from './fw-button-D8GUq_wg.js';
7
- import { s as script$2 } from './fw-dropdown-YXj5yyty.js';
8
- import { c as render$1, d as render$2, e as render$3 } from './index-B-9TSbb0.js';
3
+ import { _ as __default__, s as script$4, a as script$5 } from './fw-table-row-Cianlk0N.js';
4
+ import { s as script$1 } from './fw-input-BPFFMpc2.js';
5
+ import { _ as __default__$1 } from './fw-tag-508OLlZR.js';
6
+ import { s as script$3 } from './fw-button-DdxvSBFa.js';
7
+ import { s as script$2 } from './fw-dropdown-BcnKbaW1.js';
8
+ import { c as render$1, d as render$2, e as render$3 } from './index-svDiDkSU.js';
9
9
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
10
10
  import './get-root-colours-DYEoJPEb.js';
11
11
  import './fw-loading-bar-DThRjdw1.js';
12
12
  import './vee-validate.esm-3ptvCDR1.js';
13
13
  import './uniqueId-DK6xzFd8.js';
14
14
  import './fw-button.js';
15
- import './fw-loading-spinner-AsWqai_A.js';
16
- import './fw-image-DAUZLkf4.js';
15
+ import './fw-loading-spinner-BEzZf1xe.js';
16
+ import './fw-image-DedhILQL.js';
17
17
  import './check--YD4Ts6g.js';
18
18
 
19
19
  var script = defineComponent({
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Transition, withDirectives, createElementVNode, renderSlot, createCommentVNode, Fragment, renderList, createBlock, createTextVNode, toDisplayString, vShow } from 'vue';
2
- import { s as script$1 } from './fw-button-D8GUq_wg.js';
3
- import { f as render$1 } from './index-B-9TSbb0.js';
2
+ import { s as script$1 } from './fw-button-DdxvSBFa.js';
3
+ import { f as render$1 } from './index-svDiDkSU.js';
4
4
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
5
- import './fw-loading-spinner-AsWqai_A.js';
5
+ import './fw-loading-spinner-BEzZf1xe.js';
6
6
  import './check--YD4Ts6g.js';
7
7
 
8
8
  var script = defineComponent({