@frollo/frollo-web-ui 0.0.10 → 0.0.13
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 +216 -74
- package/esm/{style-inject.es-da8f7768.js → es.array.includes-da6c7cd3.js} +59 -584
- package/esm/es.function.name-b783cd46.js +29 -0
- package/esm/{fw-button-02fc3f47.js → fw-button-41138928.js} +27 -10
- package/esm/fw-button.js +3 -2
- package/esm/fw-checkbox.js +108 -0
- package/esm/fw-input.js +60 -54
- package/esm/fw-navigation-menu.js +3 -2
- package/esm/index.js +9 -4
- package/esm/style-inject.es-f0777dab.js +528 -0
- package/frollo-web-ui.esm.js +231 -80
- package/icons/eye-crossed.svg +3 -0
- package/icons/eye.svg +8 -0
- package/icons/index.ts +7 -1
- package/icons/lock.svg +3 -0
- package/index.d.ts +115 -7
- package/package.json +1 -1
- package/types/components/fw-button/fw-button.vue.d.ts +21 -2
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +60 -0
- package/types/components/fw-checkbox/index.d.ts +2 -0
- package/types/components/fw-input/fw-input.vue.d.ts +29 -0
- package/types/components/index.d.ts +1 -0
- package/types/icons/index.d.ts +4 -1
- package/types/index-types.esm.d.ts +1 -0
package/frollo-web-ui.esm.js
CHANGED
|
@@ -1459,7 +1459,7 @@ $$1({ target: 'Object', stat: true }, {
|
|
|
1459
1459
|
}
|
|
1460
1460
|
});
|
|
1461
1461
|
|
|
1462
|
-
var script$
|
|
1462
|
+
var script$4 = defineComponent({
|
|
1463
1463
|
name: 'FwCard',
|
|
1464
1464
|
props: {
|
|
1465
1465
|
/**
|
|
@@ -1500,22 +1500,22 @@ var script$3 = defineComponent({
|
|
|
1500
1500
|
}
|
|
1501
1501
|
});
|
|
1502
1502
|
|
|
1503
|
-
var _hoisted_1$
|
|
1503
|
+
var _hoisted_1$3 = {
|
|
1504
1504
|
key: 0,
|
|
1505
1505
|
"class": "fw-card--header text-lg px-8 py-4 font-bold bg-grey-lightest rounded-t-lg border-opacity-0"
|
|
1506
1506
|
};
|
|
1507
|
-
var _hoisted_2$
|
|
1507
|
+
var _hoisted_2$3 = {
|
|
1508
1508
|
key: 0,
|
|
1509
1509
|
"class": "fw-card--prefix-title text-primary"
|
|
1510
1510
|
};
|
|
1511
|
-
var _hoisted_3$
|
|
1511
|
+
var _hoisted_3$3 = {
|
|
1512
1512
|
key: 1
|
|
1513
1513
|
};
|
|
1514
|
-
var _hoisted_4$
|
|
1514
|
+
var _hoisted_4$3 = {
|
|
1515
1515
|
key: 1,
|
|
1516
1516
|
"class": "p-8"
|
|
1517
1517
|
};
|
|
1518
|
-
function render$
|
|
1518
|
+
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1519
1519
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.componentName), {
|
|
1520
1520
|
to: _ctx.to ? _ctx.to : null,
|
|
1521
1521
|
href: _ctx.href ? _ctx.href : null,
|
|
@@ -1523,13 +1523,13 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1523
1523
|
"class": normalizeClass(["fw-card shadow-card rounded-lg", _ctx.to || _ctx.href ? 'block cursor-pointer focus:outline-none ring-offset-3 focus:ring focus:ring-primary transform-none transition-transform hover:-translate-y-1' : ''])
|
|
1524
1524
|
}, {
|
|
1525
1525
|
"default": withCtx(function () {
|
|
1526
|
-
return [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_1$
|
|
1526
|
+
return [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_1$3, [_ctx.prefixTitle ? (openBlock(), createElementBlock("span", _hoisted_2$3, toDisplayString(_ctx.prefixTitle), 1)) : createCommentVNode("", true), _ctx.title ? (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots["default"] ? (openBlock(), createElementBlock("div", _hoisted_4$3, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true)];
|
|
1527
1527
|
}),
|
|
1528
1528
|
_: 3
|
|
1529
1529
|
}, 8, ["to", "href", "tabindex", "class"]);
|
|
1530
1530
|
}
|
|
1531
1531
|
|
|
1532
|
-
script$
|
|
1532
|
+
script$4.render = render$4;
|
|
1533
1533
|
|
|
1534
1534
|
var es_array_includes = {};
|
|
1535
1535
|
|
|
@@ -1681,7 +1681,7 @@ $({ target: 'Array', proto: true }, {
|
|
|
1681
1681
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1682
1682
|
addToUnscopables('includes');
|
|
1683
1683
|
|
|
1684
|
-
var script$
|
|
1684
|
+
var script$3 = defineComponent({
|
|
1685
1685
|
name: 'FwButton',
|
|
1686
1686
|
emits: ['click', 'mouseover', 'mouseout', 'focusin', 'focusout'],
|
|
1687
1687
|
props: {
|
|
@@ -1716,7 +1716,18 @@ var script$2 = defineComponent({
|
|
|
1716
1716
|
type: String,
|
|
1717
1717
|
"default": 'primary',
|
|
1718
1718
|
validator: function validator(value) {
|
|
1719
|
-
return ['primary', 'secondary', 'tertiary', 'error', 'success', 'text'].includes(value);
|
|
1719
|
+
return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text'].includes(value);
|
|
1720
|
+
}
|
|
1721
|
+
},
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* The type attribute of the button
|
|
1725
|
+
*/
|
|
1726
|
+
buttonType: {
|
|
1727
|
+
type: String,
|
|
1728
|
+
"default": 'button',
|
|
1729
|
+
validator: function validator(value) {
|
|
1730
|
+
return ['button', 'submit', 'reset'].includes(value);
|
|
1720
1731
|
}
|
|
1721
1732
|
}
|
|
1722
1733
|
},
|
|
@@ -1725,32 +1736,37 @@ var script$2 = defineComponent({
|
|
|
1725
1736
|
primary: {
|
|
1726
1737
|
text: 'text-tertiary hover:text-primary active:text-primary',
|
|
1727
1738
|
background: 'bg-primary hover:bg-tertiary active:bg-tertiary',
|
|
1728
|
-
border: 'border-primary focus:ring-primary'
|
|
1739
|
+
border: 'border-primary focus-visible:ring-primary'
|
|
1729
1740
|
},
|
|
1730
1741
|
secondary: {
|
|
1731
1742
|
text: 'text-primary hover:text-tertiary active:text-tertiary',
|
|
1732
1743
|
background: 'bg-tertiary hover:bg-primary active:bg-primary',
|
|
1733
|
-
border: 'border-primary focus:ring-primary'
|
|
1744
|
+
border: 'border-primary focus-visible:ring-primary'
|
|
1734
1745
|
},
|
|
1735
1746
|
tertiary: {
|
|
1736
1747
|
text: 'text-tertiary hover:text-secondary active:text-secondary',
|
|
1737
1748
|
background: 'bg-secondary hover:bg-tertiary active:bg-tertiary',
|
|
1738
|
-
border: 'border-
|
|
1749
|
+
border: 'border-secondary focus-visible:ring-secondary'
|
|
1739
1750
|
},
|
|
1740
1751
|
success: {
|
|
1741
1752
|
text: 'text-white hover:text-success active:text-success',
|
|
1742
1753
|
background: 'bg-success hover:bg-white active:bg-white',
|
|
1743
|
-
border: 'border-success focus:ring-success'
|
|
1754
|
+
border: 'border-success focus-visible:ring-success'
|
|
1744
1755
|
},
|
|
1745
1756
|
error: {
|
|
1746
1757
|
text: 'text-white hover:text-error active:text-error',
|
|
1747
1758
|
background: 'bg-error hover:bg-white active:bg-white',
|
|
1748
|
-
border: 'border-error focus:ring-error'
|
|
1759
|
+
border: 'border-error focus-visible:ring-error'
|
|
1760
|
+
},
|
|
1761
|
+
link: {
|
|
1762
|
+
text: 'text-primary font-normal underline hover:no-underline active:no-underline focus-visible:no-underline',
|
|
1763
|
+
background: '',
|
|
1764
|
+
border: 'border-none focus-visible:ring-primary'
|
|
1749
1765
|
},
|
|
1750
1766
|
text: {
|
|
1751
1767
|
text: 'text-body font-medium hover:text-white active:text-white',
|
|
1752
1768
|
background: 'bg-white hover:bg-body active:bg-body',
|
|
1753
|
-
border: 'border-transparent focus:ring-body'
|
|
1769
|
+
border: 'border-transparent focus-visible:ring-body'
|
|
1754
1770
|
}
|
|
1755
1771
|
});
|
|
1756
1772
|
var sizes = ref({
|
|
@@ -1832,10 +1848,10 @@ var script$2 = defineComponent({
|
|
|
1832
1848
|
}
|
|
1833
1849
|
});
|
|
1834
1850
|
|
|
1835
|
-
function render$
|
|
1851
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1836
1852
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tagName), {
|
|
1837
|
-
"class": normalizeClass(["fw-button
|
|
1838
|
-
type: _ctx.tagName === 'button' ? _ctx.
|
|
1853
|
+
"class": normalizeClass(["fw-button cursor-pointer whitespace-nowrap border-2 focus:outline-0 focus-visible:outline-0 focus:ring-none ring-offset-2 focus-visible:ring", [_ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass, _ctx.variant === 'link' ? 'pl-0 pr-0 pt-0 pb-0 rounded-none font-normal' : 'font-bold rounded-full']]),
|
|
1854
|
+
type: _ctx.tagName === 'button' ? _ctx.buttonType : null,
|
|
1839
1855
|
to: _ctx.to ? _ctx.to : null,
|
|
1840
1856
|
href: _ctx.href ? _ctx.href : null,
|
|
1841
1857
|
tabindex: _ctx.to ? 0 : null,
|
|
@@ -1879,17 +1895,17 @@ function styleInject(css, ref) {
|
|
|
1879
1895
|
}
|
|
1880
1896
|
}
|
|
1881
1897
|
|
|
1882
|
-
var css_248z$
|
|
1883
|
-
var stylesheet$
|
|
1884
|
-
styleInject(css_248z$
|
|
1898
|
+
var css_248z$3 = ".fw-button{-webkit-transition:all .25s ease-in;-o-transition:all .25s ease-in;transition:all .25s ease-in}";
|
|
1899
|
+
var stylesheet$3 = ".fw-button{-webkit-transition:all .25s ease-in;-o-transition:all .25s ease-in;transition:all .25s ease-in}";
|
|
1900
|
+
styleInject(css_248z$3);
|
|
1885
1901
|
|
|
1886
|
-
script$
|
|
1902
|
+
script$3.render = render$3;
|
|
1887
1903
|
|
|
1888
|
-
var script$
|
|
1904
|
+
var script$2 = defineComponent({
|
|
1889
1905
|
name: 'FwNavigationMenu',
|
|
1890
1906
|
emits: ['action'],
|
|
1891
1907
|
components: {
|
|
1892
|
-
FwButton: script$
|
|
1908
|
+
FwButton: script$3
|
|
1893
1909
|
},
|
|
1894
1910
|
props: {
|
|
1895
1911
|
/**
|
|
@@ -1927,32 +1943,32 @@ var script$1 = defineComponent({
|
|
|
1927
1943
|
}
|
|
1928
1944
|
});
|
|
1929
1945
|
|
|
1930
|
-
var _hoisted_1$
|
|
1946
|
+
var _hoisted_1$2 = {
|
|
1931
1947
|
"class": "fw-nav-menu relative z-50 h-20 shadow-md"
|
|
1932
1948
|
};
|
|
1933
|
-
var _hoisted_2$
|
|
1949
|
+
var _hoisted_2$2 = {
|
|
1934
1950
|
"class": "px-6 flex-1 h-full flex bg-white items-stretch justify-between"
|
|
1935
1951
|
};
|
|
1936
|
-
var _hoisted_3$
|
|
1952
|
+
var _hoisted_3$2 = {
|
|
1937
1953
|
key: 0,
|
|
1938
1954
|
"class": "flex-shrink-0 flex items-center"
|
|
1939
1955
|
};
|
|
1940
|
-
var _hoisted_4$
|
|
1956
|
+
var _hoisted_4$2 = {
|
|
1941
1957
|
key: 1,
|
|
1942
1958
|
"class": "container hidden sm:flex items-center justify-start sm:ml-6"
|
|
1943
1959
|
};
|
|
1944
|
-
var _hoisted_5$
|
|
1960
|
+
var _hoisted_5$2 = {
|
|
1945
1961
|
"class": "flex space-x-2"
|
|
1946
1962
|
};
|
|
1947
|
-
var _hoisted_6$
|
|
1963
|
+
var _hoisted_6$2 = {
|
|
1948
1964
|
key: 2,
|
|
1949
1965
|
"class": "hidden sm:flex items-center justify-start sm:ml-6"
|
|
1950
1966
|
};
|
|
1951
|
-
var _hoisted_7$
|
|
1967
|
+
var _hoisted_7$2 = {
|
|
1952
1968
|
"class": "flex items-center sm:hidden"
|
|
1953
1969
|
};
|
|
1954
1970
|
|
|
1955
|
-
var _hoisted_8$
|
|
1971
|
+
var _hoisted_8$2 = /*#__PURE__*/createElementVNode("span", {
|
|
1956
1972
|
"class": "sr-only"
|
|
1957
1973
|
}, "Open main menu", -1);
|
|
1958
1974
|
|
|
@@ -1969,15 +1985,15 @@ var _hoisted_11$1 = {
|
|
|
1969
1985
|
key: 0,
|
|
1970
1986
|
"class": "fw-nav-menu--mobile min-h-screen top-0 left-0 pt-20 absolute w-full flex flex-col justify-between px-2 bg-white shadow-md pb-3 space-y-1"
|
|
1971
1987
|
};
|
|
1972
|
-
var _hoisted_12 = {
|
|
1988
|
+
var _hoisted_12$1 = {
|
|
1973
1989
|
"class": "w-full flex flex-col"
|
|
1974
1990
|
};
|
|
1975
|
-
function render$
|
|
1991
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1976
1992
|
var _ctx$menuItems;
|
|
1977
1993
|
|
|
1978
1994
|
var _component_FwButton = resolveComponent("FwButton");
|
|
1979
1995
|
|
|
1980
|
-
return openBlock(), createElementBlock("nav", _hoisted_1$
|
|
1996
|
+
return openBlock(), createElementBlock("nav", _hoisted_1$2, [createElementVNode("div", _hoisted_2$2, [_ctx.$slots.logo ? (openBlock(), createElementBlock("div", _hoisted_3$2, [renderSlot(_ctx.$slots, "logo")])) : createCommentVNode("", true), ((_ctx$menuItems = _ctx.menuItems) === null || _ctx$menuItems === void 0 ? void 0 : _ctx$menuItems.length) > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$2, [createElementVNode("div", _hoisted_5$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
1981
1997
|
return openBlock(), createBlock(_component_FwButton, {
|
|
1982
1998
|
key: i,
|
|
1983
1999
|
variant: "text",
|
|
@@ -1991,7 +2007,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1991
2007
|
}),
|
|
1992
2008
|
_: 2
|
|
1993
2009
|
}, 1032, ["href", "to"]);
|
|
1994
|
-
}), 128))])])) : createCommentVNode("", true), _ctx.actionLabel ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
2010
|
+
}), 128))])])) : createCommentVNode("", true), _ctx.actionLabel ? (openBlock(), createElementBlock("div", _hoisted_6$2, [createVNode(_component_FwButton, {
|
|
1995
2011
|
onClick: _ctx.actionClicked,
|
|
1996
2012
|
size: "md",
|
|
1997
2013
|
"aria-label": _ctx.actionLabel
|
|
@@ -2000,13 +2016,13 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2000
2016
|
return [createTextVNode(toDisplayString(_ctx.actionLabel), 1)];
|
|
2001
2017
|
}),
|
|
2002
2018
|
_: 1
|
|
2003
|
-
}, 8, ["onClick", "aria-label"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7$
|
|
2019
|
+
}, 8, ["onClick", "aria-label"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7$2, [createVNode(_component_FwButton, {
|
|
2004
2020
|
variant: "text",
|
|
2005
2021
|
size: "sm",
|
|
2006
2022
|
onClick: _ctx.toggleMobileMenu
|
|
2007
2023
|
}, {
|
|
2008
2024
|
"default": withCtx(function () {
|
|
2009
|
-
return [_hoisted_8$
|
|
2025
|
+
return [_hoisted_8$2, (openBlock(), createElementBlock("svg", _hoisted_9$1, [createElementVNode("path", {
|
|
2010
2026
|
"stroke-linecap": "round",
|
|
2011
2027
|
"stroke-linejoin": "round",
|
|
2012
2028
|
"stroke-width": "2",
|
|
@@ -2020,7 +2036,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2020
2036
|
"default": withCtx(function () {
|
|
2021
2037
|
var _ctx$menuItems2;
|
|
2022
2038
|
|
|
2023
|
-
return [((_ctx$menuItems2 = _ctx.menuItems) === null || _ctx$menuItems2 === void 0 ? void 0 : _ctx$menuItems2.length) > 0 && _ctx.isMobileMenuOpen ? (openBlock(), createElementBlock("div", _hoisted_11$1, [createElementVNode("div", _hoisted_12, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
2039
|
+
return [((_ctx$menuItems2 = _ctx.menuItems) === null || _ctx$menuItems2 === void 0 ? void 0 : _ctx$menuItems2.length) > 0 && _ctx.isMobileMenuOpen ? (openBlock(), createElementBlock("div", _hoisted_11$1, [createElementVNode("div", _hoisted_12$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
2024
2040
|
return openBlock(), createBlock(_component_FwButton, {
|
|
2025
2041
|
key: i,
|
|
2026
2042
|
"class": "w-full rounded-md px-2",
|
|
@@ -2051,11 +2067,11 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2051
2067
|
})]);
|
|
2052
2068
|
}
|
|
2053
2069
|
|
|
2054
|
-
var css_248z$
|
|
2055
|
-
var stylesheet$
|
|
2056
|
-
styleInject(css_248z$
|
|
2070
|
+
var css_248z$2 = ".fw-nav-menu--mobile{z-index:-1}.fw-nav-menu--mobile,.slideInLeft-enter-active{-webkit-transition:left .35s ease-in;-o-transition:left .35s ease-in;transition:left .35s ease-in}.slideInLeft-enter-active{-webkit-animation:slideInLeft .35s;animation:slideInLeft .35s}.slideInLeft-leave-active{animation:slideInLeft .35s reverse;-webkit-transition:left .35s ease-in-out;-o-transition:left .35s ease-in-out;transition:left .35s ease-in-out}@-webkit-keyframes slideInLeft{0%{left:100%}to{left:0}}@keyframes slideInLeft{0%{left:100%}to{left:0}}";
|
|
2071
|
+
var stylesheet$2 = ".fw-nav-menu--mobile{z-index:-1}.fw-nav-menu--mobile,.slideInLeft-enter-active{-webkit-transition:left .35s ease-in;-o-transition:left .35s ease-in;transition:left .35s ease-in}.slideInLeft-enter-active{-webkit-animation:slideInLeft .35s;animation:slideInLeft .35s}.slideInLeft-leave-active{animation:slideInLeft .35s reverse;-webkit-transition:left .35s ease-in-out;-o-transition:left .35s ease-in-out;transition:left .35s ease-in-out}@-webkit-keyframes slideInLeft{0%{left:100%}to{left:0}}@keyframes slideInLeft{0%{left:100%}to{left:0}}";
|
|
2072
|
+
styleInject(css_248z$2);
|
|
2057
2073
|
|
|
2058
|
-
script$
|
|
2074
|
+
script$2.render = render$2;
|
|
2059
2075
|
|
|
2060
2076
|
function getDevtoolsGlobalHook() {
|
|
2061
2077
|
return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -5193,7 +5209,7 @@ function useSubmitForm(cb) {
|
|
|
5193
5209
|
};
|
|
5194
5210
|
}
|
|
5195
5211
|
|
|
5196
|
-
var script = defineComponent({
|
|
5212
|
+
var script$1 = defineComponent({
|
|
5197
5213
|
name: 'FwInput',
|
|
5198
5214
|
emits: ['update:modelValue'],
|
|
5199
5215
|
components: {
|
|
@@ -5247,6 +5263,21 @@ var script = defineComponent({
|
|
|
5247
5263
|
*/
|
|
5248
5264
|
rules: {
|
|
5249
5265
|
type: [String, Object, Function]
|
|
5266
|
+
},
|
|
5267
|
+
|
|
5268
|
+
/**
|
|
5269
|
+
* Converts the input into a readonly disabled field
|
|
5270
|
+
*/
|
|
5271
|
+
readonly: {
|
|
5272
|
+
type: Boolean,
|
|
5273
|
+
"default": false
|
|
5274
|
+
},
|
|
5275
|
+
|
|
5276
|
+
/**
|
|
5277
|
+
* The hint text shown below the input
|
|
5278
|
+
*/
|
|
5279
|
+
hint: {
|
|
5280
|
+
type: String
|
|
5250
5281
|
}
|
|
5251
5282
|
},
|
|
5252
5283
|
setup: function setup(props, ctx) {
|
|
@@ -5292,27 +5323,29 @@ if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
|
|
|
5292
5323
|
});
|
|
5293
5324
|
}
|
|
5294
5325
|
|
|
5295
|
-
var _hoisted_1 = {
|
|
5326
|
+
var _hoisted_1$1 = {
|
|
5296
5327
|
"class": "fw-input w-full"
|
|
5297
5328
|
};
|
|
5298
|
-
var _hoisted_2 = {
|
|
5329
|
+
var _hoisted_2$1 = {
|
|
5299
5330
|
"class": "flex flex-col"
|
|
5300
5331
|
};
|
|
5301
|
-
var _hoisted_3 =
|
|
5302
|
-
|
|
5303
|
-
"class": "relative"
|
|
5332
|
+
var _hoisted_3$1 = {
|
|
5333
|
+
"class": "flex flex-row justify-between"
|
|
5304
5334
|
};
|
|
5305
|
-
var
|
|
5306
|
-
|
|
5307
|
-
|
|
5335
|
+
var _hoisted_4$1 = ["for"];
|
|
5336
|
+
var _hoisted_5$1 = {
|
|
5337
|
+
key: 1
|
|
5308
5338
|
};
|
|
5309
|
-
var _hoisted_6 =
|
|
5310
|
-
|
|
5339
|
+
var _hoisted_6$1 = {
|
|
5340
|
+
"class": "relative"
|
|
5341
|
+
};
|
|
5342
|
+
var _hoisted_7$1 = {
|
|
5311
5343
|
key: 0,
|
|
5312
|
-
"class": "flex text-
|
|
5344
|
+
"class": "flex text-black absolute w-9 h-full inset-y-0 left-0 items-center pl-3 pointer-events-none"
|
|
5313
5345
|
};
|
|
5346
|
+
var _hoisted_8$1 = ["placeholder", "type", "readonly", "disabled"];
|
|
5314
5347
|
|
|
5315
|
-
var
|
|
5348
|
+
var _hoisted_9 = /*#__PURE__*/createElementVNode("svg", {
|
|
5316
5349
|
fill: "currentColor",
|
|
5317
5350
|
"aria-hidden": "true",
|
|
5318
5351
|
focusable: "false",
|
|
@@ -5323,17 +5356,25 @@ var _hoisted_8 = /*#__PURE__*/createElementVNode("svg", {
|
|
|
5323
5356
|
d: "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8\n 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36\n 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4\n 400 256 400z"
|
|
5324
5357
|
})], -1);
|
|
5325
5358
|
|
|
5326
|
-
var
|
|
5327
|
-
var _hoisted_10 = {
|
|
5328
|
-
"class": "text-error italic text-right text-sm font-medium mt-2 min-h-[21px]"
|
|
5329
|
-
};
|
|
5359
|
+
var _hoisted_10 = [_hoisted_9];
|
|
5330
5360
|
var _hoisted_11 = {
|
|
5331
|
-
key:
|
|
5361
|
+
key: 1,
|
|
5362
|
+
"class": "flex text-black absolute w-10 h-full inset-y-0 right-0 items-center pr-3"
|
|
5332
5363
|
};
|
|
5333
|
-
|
|
5364
|
+
var _hoisted_12 = {
|
|
5365
|
+
"class": "italic text-right text-sm font-medium mt-2 min-h-[21px]"
|
|
5366
|
+
};
|
|
5367
|
+
var _hoisted_13 = {
|
|
5368
|
+
key: 0,
|
|
5369
|
+
"class": "text-error"
|
|
5370
|
+
};
|
|
5371
|
+
var _hoisted_14 = {
|
|
5372
|
+
key: 1
|
|
5373
|
+
};
|
|
5374
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5334
5375
|
var _component_InputField = resolveComponent("InputField");
|
|
5335
5376
|
|
|
5336
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_InputField, {
|
|
5377
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [createVNode(_component_InputField, {
|
|
5337
5378
|
modelValue: _ctx.inputValue,
|
|
5338
5379
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
|
|
5339
5380
|
return _ctx.inputValue = $event;
|
|
@@ -5346,28 +5387,35 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5346
5387
|
errors = _ref.errors,
|
|
5347
5388
|
errorMessage = _ref.errorMessage,
|
|
5348
5389
|
meta = _ref.meta;
|
|
5349
|
-
return [createElementVNode("div", _hoisted_2, [_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
5390
|
+
return [createElementVNode("div", _hoisted_2$1, [createElementVNode("div", _hoisted_3$1, [_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
5350
5391
|
key: 0,
|
|
5351
5392
|
"for": _ctx.name,
|
|
5352
5393
|
"class": "block mb-2"
|
|
5353
|
-
}, toDisplayString(_ctx.label), 9,
|
|
5394
|
+
}, toDisplayString(_ctx.label), 9, _hoisted_4$1)) : createCommentVNode("", true), _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$1, [renderSlot(_ctx.$slots, "action")])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_6$1, [_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_7$1, [renderSlot(_ctx.$slots, "prefix")])) : createCommentVNode("", true), createElementVNode("input", mergeProps(field, {
|
|
5354
5395
|
placeholder: _ctx.placeholder,
|
|
5355
5396
|
type: _ctx.type,
|
|
5397
|
+
readonly: _ctx.readonly,
|
|
5398
|
+
disabled: _ctx.readonly,
|
|
5356
5399
|
"class": ["border-2 border-grey-lightest rounded-lg focus:outline-none focus:ring-2 focus:ring-primary block w-full p-2.5", {
|
|
5357
|
-
'pl-10': !!_ctx.$slots.
|
|
5400
|
+
'pl-10': !!_ctx.$slots.prefix,
|
|
5401
|
+
'pr-20': !!_ctx.$slots.suffix
|
|
5358
5402
|
}]
|
|
5359
|
-
}), null, 16,
|
|
5360
|
-
name: "
|
|
5403
|
+
}), null, 16, _hoisted_8$1), createVNode(Transition, {
|
|
5404
|
+
name: "fwFadeIn"
|
|
5361
5405
|
}, {
|
|
5362
5406
|
"default": withCtx(function () {
|
|
5363
|
-
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("div",
|
|
5407
|
+
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("div", {
|
|
5408
|
+
key: 0,
|
|
5409
|
+
"class": normalizeClass(["flex text-error absolute w-9 h-full inset-y-0 right-0 items-center pr-3 pointer-events-none", _ctx.$slots.suffix ? 'mr-8' : ''])
|
|
5410
|
+
}, _hoisted_10, 2)) : createCommentVNode("", true)];
|
|
5364
5411
|
}),
|
|
5365
5412
|
_: 2
|
|
5366
|
-
}, 1024)]), createElementVNode("div",
|
|
5367
|
-
name: "
|
|
5413
|
+
}, 1024), _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_11, [renderSlot(_ctx.$slots, "suffix")])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_12, [createVNode(Transition, {
|
|
5414
|
+
name: "fwFadeIn",
|
|
5415
|
+
mode: "out-in"
|
|
5368
5416
|
}, {
|
|
5369
5417
|
"default": withCtx(function () {
|
|
5370
|
-
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span",
|
|
5418
|
+
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_13, toDisplayString(errorMessage || errors[0]), 1)) : _ctx.hint ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(_ctx.hint), 1)) : createCommentVNode("", true)];
|
|
5371
5419
|
}),
|
|
5372
5420
|
_: 2
|
|
5373
5421
|
}, 1024)])])];
|
|
@@ -5376,19 +5424,122 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5376
5424
|
}, 8, ["modelValue", "name", "rules"])]);
|
|
5377
5425
|
}
|
|
5378
5426
|
|
|
5379
|
-
var css_248z = ".
|
|
5380
|
-
var stylesheet = ".
|
|
5427
|
+
var css_248z$1 = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}";
|
|
5428
|
+
var stylesheet$1 = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}";
|
|
5429
|
+
styleInject(css_248z$1);
|
|
5430
|
+
|
|
5431
|
+
script$1.render = render$1;
|
|
5432
|
+
|
|
5433
|
+
var script = defineComponent({
|
|
5434
|
+
name: 'FwCheckbox',
|
|
5435
|
+
components: {
|
|
5436
|
+
InputField: Field
|
|
5437
|
+
},
|
|
5438
|
+
props: {
|
|
5439
|
+
/**
|
|
5440
|
+
* The name of the input field. Must be unique per form.
|
|
5441
|
+
*/
|
|
5442
|
+
name: {
|
|
5443
|
+
type: String,
|
|
5444
|
+
required: true
|
|
5445
|
+
},
|
|
5446
|
+
|
|
5447
|
+
/**
|
|
5448
|
+
* Label for the input. Also renders to an aria-label attribute
|
|
5449
|
+
*/
|
|
5450
|
+
label: {
|
|
5451
|
+
type: String
|
|
5452
|
+
},
|
|
5453
|
+
|
|
5454
|
+
/**
|
|
5455
|
+
* Validation rules. Accepts a string, object, function or schema.
|
|
5456
|
+
*/
|
|
5457
|
+
rules: {
|
|
5458
|
+
type: [String, Object, Function]
|
|
5459
|
+
},
|
|
5460
|
+
|
|
5461
|
+
/**
|
|
5462
|
+
* The hint text shown below the input
|
|
5463
|
+
*/
|
|
5464
|
+
hint: {
|
|
5465
|
+
type: String
|
|
5466
|
+
}
|
|
5467
|
+
}
|
|
5468
|
+
});
|
|
5469
|
+
|
|
5470
|
+
var _hoisted_1 = {
|
|
5471
|
+
"class": "fw-checkbox w-full"
|
|
5472
|
+
};
|
|
5473
|
+
var _hoisted_2 = {
|
|
5474
|
+
"class": "flex flex-col"
|
|
5475
|
+
};
|
|
5476
|
+
var _hoisted_3 = ["for"];
|
|
5477
|
+
var _hoisted_4 = ["value", "name"];
|
|
5478
|
+
var _hoisted_5 = ["innerHTML"];
|
|
5479
|
+
var _hoisted_6 = {
|
|
5480
|
+
"class": "italic text-sm font-medium min-h-[21px]"
|
|
5481
|
+
};
|
|
5482
|
+
var _hoisted_7 = {
|
|
5483
|
+
key: 0,
|
|
5484
|
+
"class": "text-error"
|
|
5485
|
+
};
|
|
5486
|
+
var _hoisted_8 = {
|
|
5487
|
+
key: 1
|
|
5488
|
+
};
|
|
5489
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5490
|
+
var _component_InputField = resolveComponent("InputField");
|
|
5491
|
+
|
|
5492
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_InputField, {
|
|
5493
|
+
name: _ctx.name,
|
|
5494
|
+
value: _ctx.name,
|
|
5495
|
+
type: "checkbox",
|
|
5496
|
+
rules: _ctx.rules
|
|
5497
|
+
}, {
|
|
5498
|
+
"default": withCtx(function (_ref) {
|
|
5499
|
+
var field = _ref.field,
|
|
5500
|
+
errors = _ref.errors,
|
|
5501
|
+
errorMessage = _ref.errorMessage,
|
|
5502
|
+
meta = _ref.meta;
|
|
5503
|
+
return [createElementVNode("div", _hoisted_2, [_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
5504
|
+
key: 0,
|
|
5505
|
+
"for": _ctx.name,
|
|
5506
|
+
"class": "inline-flex items-center mb-3"
|
|
5507
|
+
}, [createElementVNode("input", mergeProps(field, {
|
|
5508
|
+
value: _ctx.name,
|
|
5509
|
+
name: _ctx.name,
|
|
5510
|
+
type: "checkbox",
|
|
5511
|
+
"class": "text-primary w-6 h-6 cursor-pointer bg-white border-grey-light border rounded"
|
|
5512
|
+
}), null, 16, _hoisted_4), createElementVNode("span", {
|
|
5513
|
+
"class": "ml-2",
|
|
5514
|
+
innerHTML: _ctx.label
|
|
5515
|
+
}, null, 8, _hoisted_5)], 8, _hoisted_3)) : createCommentVNode("", true), createElementVNode("div", _hoisted_6, [createVNode(Transition, {
|
|
5516
|
+
name: "fwFadeIn",
|
|
5517
|
+
mode: "out-in"
|
|
5518
|
+
}, {
|
|
5519
|
+
"default": withCtx(function () {
|
|
5520
|
+
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(errorMessage || errors[0]), 1)) : _ctx.hint ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(_ctx.hint), 1)) : createCommentVNode("", true)];
|
|
5521
|
+
}),
|
|
5522
|
+
_: 2
|
|
5523
|
+
}, 1024)])])];
|
|
5524
|
+
}),
|
|
5525
|
+
_: 1
|
|
5526
|
+
}, 8, ["name", "value", "rules"])]);
|
|
5527
|
+
}
|
|
5528
|
+
|
|
5529
|
+
var css_248z = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}.fw-checkbox input{-webkit-print-color-adjust:exact;-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;color-adjust:exact;display:inline-block;flex-shrink:0;-webkit-transition:background .2s ease-in;-o-transition:background .2s ease-in;transition:background .2s ease-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.fw-checkbox input:checked{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='3 3 10 10' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}";
|
|
5530
|
+
var stylesheet = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}.fw-checkbox input{-webkit-print-color-adjust:exact;-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;color-adjust:exact;display:inline-block;flex-shrink:0;-webkit-transition:background .2s ease-in;-o-transition:background .2s ease-in;transition:background .2s ease-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.fw-checkbox input:checked{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='3 3 10 10' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}";
|
|
5381
5531
|
styleInject(css_248z);
|
|
5382
5532
|
|
|
5383
5533
|
script.render = render;
|
|
5384
5534
|
|
|
5385
5535
|
var components = /*#__PURE__*/Object.freeze({
|
|
5386
5536
|
__proto__: null,
|
|
5387
|
-
FwCard: script$
|
|
5388
|
-
FwButton: script$
|
|
5389
|
-
FwNavigationMenu: script$
|
|
5537
|
+
FwCard: script$4,
|
|
5538
|
+
FwButton: script$3,
|
|
5539
|
+
FwNavigationMenu: script$2,
|
|
5390
5540
|
FwForm: Form,
|
|
5391
|
-
FwInput: script
|
|
5541
|
+
FwInput: script$1,
|
|
5542
|
+
FwCheckbox: script
|
|
5392
5543
|
});
|
|
5393
5544
|
|
|
5394
5545
|
var install = function install(app) {
|
|
@@ -5401,4 +5552,4 @@ var install = function install(app) {
|
|
|
5401
5552
|
});
|
|
5402
5553
|
};
|
|
5403
5554
|
|
|
5404
|
-
export { script$
|
|
5555
|
+
export { script$3 as FwButton, script$4 as FwCard, script as FwCheckbox, Form as FwForm, script$1 as FwInput, script$2 as FwNavigationMenu, install as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 -64 640 640">
|
|
2
|
+
<path d="M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"/>
|
|
3
|
+
</svg>
|
package/icons/eye.svg
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 612 612">
|
|
2
|
+
<g>
|
|
3
|
+
<g>
|
|
4
|
+
<path d="M609.608,315.426c3.19-5.874,3.19-12.979,0-18.853c-58.464-107.643-172.5-180.72-303.607-180.72 S60.857,188.931,2.393,296.573c-3.19,5.874-3.19,12.979,0,18.853C60.858,423.069,174.892,496.147,306,496.147 S551.143,423.069,609.608,315.426z M306,451.855c-80.554,0-145.855-65.302-145.855-145.855S225.446,160.144,306,160.144 S451.856,225.446,451.856,306S386.554,451.855,306,451.855z"/>
|
|
5
|
+
<path d="M306,231.67c-6.136,0-12.095,0.749-17.798,2.15c5.841,6.76,9.383,15.563,9.383,25.198c0,21.3-17.267,38.568-38.568,38.568 c-9.635,0-18.438-3.541-25.198-9.383c-1.401,5.703-2.15,11.662-2.15,17.798c0,41.052,33.279,74.33,74.33,74.33 s74.33-33.279,74.33-74.33S347.052,231.67,306,231.67z"/>
|
|
6
|
+
</g>
|
|
7
|
+
</g>
|
|
8
|
+
</svg>
|
package/icons/index.ts
CHANGED
|
@@ -4,6 +4,9 @@ import ManageSvg from './manage.svg';
|
|
|
4
4
|
import NotFoundSvg from './not-found.svg';
|
|
5
5
|
import EmailFilledSvg from './email-filled.svg';
|
|
6
6
|
import AlertSvg from './alert.svg';
|
|
7
|
+
import LockSvg from './lock.svg';
|
|
8
|
+
import EyeSvg from './eye.svg';
|
|
9
|
+
import EyeCrossedSvg from './eye-crossed.svg';
|
|
7
10
|
|
|
8
11
|
export {
|
|
9
12
|
ViewSvg,
|
|
@@ -11,5 +14,8 @@ export {
|
|
|
11
14
|
ManageSvg,
|
|
12
15
|
NotFoundSvg,
|
|
13
16
|
EmailFilledSvg,
|
|
14
|
-
AlertSvg
|
|
17
|
+
AlertSvg,
|
|
18
|
+
LockSvg,
|
|
19
|
+
EyeSvg,
|
|
20
|
+
EyeCrossedSvg
|
|
15
21
|
};
|
package/icons/lock.svg
ADDED