@abcagency/hc-ui-components 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rollupPluginBabelHelpers.js +516 -516
- package/dist/apis/hcApi.js +189 -189
- package/dist/apis/hcApi.js.map +1 -1
- package/dist/clientToken.js +10 -10
- package/dist/clientToken.js.map +1 -1
- package/dist/components/HireControlMap.js +135 -135
- package/dist/components/HireControlMap.js.map +1 -1
- package/dist/components/modules/accordions/MapAccordionItem.js +76 -76
- package/dist/components/modules/accordions/MapAccordionItem.js.map +1 -1
- package/dist/components/modules/accordions/default.js +108 -108
- package/dist/components/modules/accordions/default.js.map +1 -1
- package/dist/components/modules/accordions/filterItem.js +50 -50
- package/dist/components/modules/accordions/filterItem.js.map +1 -1
- package/dist/components/modules/accordions/filters.js +46 -46
- package/dist/components/modules/accordions/filters.js.map +1 -1
- package/dist/components/modules/buttons/button-group-apply.js +87 -87
- package/dist/components/modules/buttons/button-group-apply.js.map +1 -1
- package/dist/components/modules/buttons/commute-pill.js +18 -18
- package/dist/components/modules/buttons/commute-pill.js.map +1 -1
- package/dist/components/modules/buttons/default.js +145 -145
- package/dist/components/modules/buttons/default.js.map +1 -1
- package/dist/components/modules/buttons/items-pill.js +23 -23
- package/dist/components/modules/buttons/items-pill.js.map +1 -1
- package/dist/components/modules/buttons/pill-wrapper.js +20 -20
- package/dist/components/modules/buttons/pill-wrapper.js.map +1 -1
- package/dist/components/modules/buttons/show-all-button.js +39 -39
- package/dist/components/modules/buttons/show-all-button.js.map +1 -1
- package/dist/components/modules/cards/default.js +102 -102
- package/dist/components/modules/cards/default.js.map +1 -1
- package/dist/components/modules/cards/filter.js +38 -38
- package/dist/components/modules/cards/filter.js.map +1 -1
- package/dist/components/modules/dialogs/apply-dialog.js +46 -46
- package/dist/components/modules/dialogs/apply-dialog.js.map +1 -1
- package/dist/components/modules/filter/commute.js +184 -184
- package/dist/components/modules/filter/commute.js.map +1 -1
- package/dist/components/modules/filter/index.js +79 -79
- package/dist/components/modules/filter/index.js.map +1 -1
- package/dist/components/modules/filter/item.js +71 -71
- package/dist/components/modules/filter/item.js.map +1 -1
- package/dist/components/modules/filter/location.js +68 -68
- package/dist/components/modules/filter/location.js.map +1 -1
- package/dist/components/modules/filter/points-of-interest.js +38 -38
- package/dist/components/modules/filter/points-of-interest.js.map +1 -1
- package/dist/components/modules/filter/radio-item.js +46 -46
- package/dist/components/modules/filter/radio-item.js.map +1 -1
- package/dist/components/modules/filter/search.js +83 -83
- package/dist/components/modules/filter/search.js.map +1 -1
- package/dist/components/modules/filter/sort.js +93 -93
- package/dist/components/modules/filter/sort.js.map +1 -1
- package/dist/components/modules/grid.js +39 -39
- package/dist/components/modules/grid.js.map +1 -1
- package/dist/components/modules/icon.js +23 -23
- package/dist/components/modules/icon.js.map +1 -1
- package/dist/components/modules/jobListing/listing-details.js +71 -71
- package/dist/components/modules/jobListing/listing-details.js.map +1 -1
- package/dist/components/modules/maps/info-window-card.js +14 -14
- package/dist/components/modules/maps/info-window-card.js.map +1 -1
- package/dist/components/modules/maps/info-window-content.js +49 -39
- package/dist/components/modules/maps/info-window-content.js.map +1 -1
- package/dist/components/modules/maps/list/field-mapper.js +88 -88
- package/dist/components/modules/maps/list/field-mapper.js.map +1 -1
- package/dist/components/modules/maps/list/header-item.js +59 -59
- package/dist/components/modules/maps/list/header-item.js.map +1 -1
- package/dist/components/modules/maps/list/header.js +37 -37
- package/dist/components/modules/maps/list/header.js.map +1 -1
- package/dist/components/modules/maps/list/index.js +93 -93
- package/dist/components/modules/maps/list/index.js.map +1 -1
- package/dist/components/modules/maps/list/item-expand-card/index.js +16 -16
- package/dist/components/modules/maps/list/item-expand-card/index.js.map +1 -1
- package/dist/components/modules/maps/list/item-expand-card/recruiter-contact-nav.js +38 -38
- package/dist/components/modules/maps/list/item-expand-card/recruiter-contact-nav.js.map +1 -1
- package/dist/components/modules/maps/list/item-expand-card/recruiter-details.js +40 -40
- package/dist/components/modules/maps/list/item-expand-card/recruiter-details.js.map +1 -1
- package/dist/components/modules/maps/list/item-expand-card/recruiter-headshot.js +20 -20
- package/dist/components/modules/maps/list/item-expand-card/recruiter-headshot.js.map +1 -1
- package/dist/components/modules/maps/list/list-item/index.js +98 -98
- package/dist/components/modules/maps/list/list-item/index.js.map +1 -1
- package/dist/components/modules/maps/map-list.js +57 -57
- package/dist/components/modules/maps/map-list.js.map +1 -1
- package/dist/components/modules/maps/map-marker.js +85 -85
- package/dist/components/modules/maps/map-marker.js.map +1 -1
- package/dist/components/modules/maps/map.js +201 -201
- package/dist/components/modules/maps/map.js.map +1 -1
- package/dist/components/modules/maps/place-marker.js +37 -37
- package/dist/components/modules/maps/place-marker.js.map +1 -1
- package/dist/components/modules/maps/tabs.js +84 -84
- package/dist/components/modules/maps/tabs.js.map +1 -1
- package/dist/constants/placeTypes.js +11 -11
- package/dist/constants/placeTypes.js.map +1 -1
- package/dist/contexts/mapContext.js +133 -133
- package/dist/contexts/mapContext.js.map +1 -1
- package/dist/contexts/mapListContext.js +280 -280
- package/dist/contexts/mapListContext.js.map +1 -1
- package/dist/contexts/placesContext.js +152 -152
- package/dist/contexts/placesContext.js.map +1 -1
- package/dist/hooks/useList.js +119 -119
- package/dist/hooks/useList.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/services/_virtual/_rollupPluginBabelHelpers.js +372 -372
- package/dist/services/apis/hcApi.js +189 -189
- package/dist/services/apis/hcApi.js.map +1 -1
- package/dist/services/clientToken.js +7 -7
- package/dist/services/clientToken.js.map +1 -1
- package/dist/services/configService.js +33 -33
- package/dist/services/configService.js.map +1 -1
- package/dist/services/googlePlacesNearbyService.js +61 -61
- package/dist/services/googlePlacesNearbyService.js.map +1 -1
- package/dist/services/listingAggregatorService.js +56 -56
- package/dist/services/listingAggregatorService.js.map +1 -1
- package/dist/services/listingEntityService.js +36 -36
- package/dist/services/listingEntityService.js.map +1 -1
- package/dist/services/listingService.js +64 -64
- package/dist/services/listingService.js.map +1 -1
- package/dist/services/recruiterService.js +36 -36
- package/dist/services/recruiterService.js.map +1 -1
- package/dist/services/styles/index.css +2 -2
- package/dist/styles/index.css +2 -2
- package/dist/util/filterUtil.js +213 -213
- package/dist/util/filterUtil.js.map +1 -1
- package/dist/util/loading.js +16 -16
- package/dist/util/loading.js.map +1 -1
- package/dist/util/localStorageUtil.js +32 -32
- package/dist/util/localStorageUtil.js.map +1 -1
- package/dist/util/mapIconUtil.js +73 -73
- package/dist/util/mapIconUtil.js.map +1 -1
- package/dist/util/mapUtil.js +76 -76
- package/dist/util/mapUtil.js.map +1 -1
- package/dist/util/sortUtil.js +33 -33
- package/dist/util/sortUtil.js.map +1 -1
- package/dist/util/stringUtils.js +9 -9
- package/dist/util/stringUtils.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React, { forwardRef } from 'react';
|
|
3
|
-
import Button from './default.js';
|
|
4
|
-
|
|
5
|
-
var _excluded = ["className", "activeItemsCount"];
|
|
6
|
-
var ButtonItemsPill = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7
|
-
_ref.className;
|
|
8
|
-
var activeItemsCount = _ref.activeItemsCount,
|
|
9
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
-
return /*#__PURE__*/React.createElement(Button.Btn, _extends({
|
|
11
|
-
ref: ref,
|
|
12
|
-
size: "none",
|
|
13
|
-
variant: "none",
|
|
14
|
-
className: "hc-relative hc-z-[2] hc-group hc-inline-flex hc-items-center hc-gap-px hc-ml-auto hc-mr-1.5 hc-pl-1.5 hc-pr-1 hc-py-0.5 hc-rounded hc-bg-primary/10 hc-text-xs hc-font-bold hc-text-primary hc-ring-1 hc-ring-inset hc-ring-primary/20"
|
|
15
|
-
}, props), activeItemsCount > 9 ? '9+' : activeItemsCount, /*#__PURE__*/React.createElement(Button.Icon, {
|
|
16
|
-
icon: "uil:times",
|
|
17
|
-
size: "hc-size-3.5"
|
|
18
|
-
}));
|
|
19
|
-
});
|
|
20
|
-
ButtonItemsPill.displayName = 'ButtonItemsPill';
|
|
21
|
-
|
|
22
|
-
export { ButtonItemsPill, ButtonItemsPill as default };
|
|
23
|
-
//# sourceMappingURL=items-pill.js.map
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import Button from './default.js';
|
|
4
|
+
|
|
5
|
+
var _excluded = ["className", "activeItemsCount"];
|
|
6
|
+
var ButtonItemsPill = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7
|
+
_ref.className;
|
|
8
|
+
var activeItemsCount = _ref.activeItemsCount,
|
|
9
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
+
return /*#__PURE__*/React.createElement(Button.Btn, _extends({
|
|
11
|
+
ref: ref,
|
|
12
|
+
size: "none",
|
|
13
|
+
variant: "none",
|
|
14
|
+
className: "hc-relative hc-z-[2] hc-group hc-inline-flex hc-items-center hc-gap-px hc-ml-auto hc-mr-1.5 hc-pl-1.5 hc-pr-1 hc-py-0.5 hc-rounded hc-bg-primary/10 hc-text-xs hc-font-bold hc-text-primary hc-ring-1 hc-ring-inset hc-ring-primary/20"
|
|
15
|
+
}, props), activeItemsCount > 9 ? '9+' : activeItemsCount, /*#__PURE__*/React.createElement(Button.Icon, {
|
|
16
|
+
icon: "uil:times",
|
|
17
|
+
size: "hc-size-3.5"
|
|
18
|
+
}));
|
|
19
|
+
});
|
|
20
|
+
ButtonItemsPill.displayName = 'ButtonItemsPill';
|
|
21
|
+
|
|
22
|
+
export { ButtonItemsPill, ButtonItemsPill as default };
|
|
23
|
+
//# sourceMappingURL=items-pill.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items-pill.js","sources":["../../../../src/components/modules/buttons/items-pill.js"],"sourcesContent":["import React from 'react'\nimport { forwardRef } from 'react';\n\nimport Button from '~/components/modules/buttons/default';\n\nexport const ButtonItemsPill = forwardRef((\n\t{\n\t\tclassName,\n\t\tactiveItemsCount,\n\t\t...props\n\t},\n\tref\n) => {\n\treturn (\n\t\t<Button.Btn\n\t\t\tref={ref}\n\t\t\tsize=\"none\"\n\t\t\tvariant=\"none\"\n\t\t\tclassName=\"hc-relative hc-z-[2] hc-group hc-inline-flex hc-items-center hc-gap-px hc-ml-auto hc-mr-1.5 hc-pl-1.5 hc-pr-1 hc-py-0.5 hc-rounded hc-bg-primary/10 hc-text-xs hc-font-bold hc-text-primary hc-ring-1 hc-ring-inset hc-ring-primary/20\"\n\t\t\t{...props}\n\t\t>\n\t\t\t{activeItemsCount > 9 ? '9+' : activeItemsCount}\n\t\t\t<Button.Icon\n\t\t\t\ticon=\"uil:times\"\n\t\t\t\tsize=\"hc-size-3.5\"\n\t\t\t/>\n\t\t</Button.Btn>\n\t);\n});\n\nButtonItemsPill.displayName = 'ButtonItemsPill';\nexport default ButtonItemsPill;\n"],"names":["ButtonItemsPill","forwardRef","_ref","ref","className","activeItemsCount","props","_objectWithoutProperties","_excluded","React","createElement","Button","Btn","_extends","size","variant","Icon","icon","displayName"],"mappings":";;;;;AAKO,IAAMA,eAAe,gBAAGC,UAAU,CAAC,UAAAC,IAAA,EAMzCC,GAAG,EACC;AAAA,EALMD,IAAA,CAATE,SAAS,CAAA;QACTC,gBAAgB,GAAAH,IAAA,CAAhBG,gBAAgB,CAAA;AACbC,IAAAA,KAAK,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA,EAAA;EAIT,oBACCC,KAAA,CAAAC,aAAA,CAACC,MAAM,CAACC,GAAG,EAAAC,QAAA,CAAA;AACVV,IAAAA,GAAG,EAAEA,GAAI;AACTW,IAAAA,IAAI,EAAC,MAAM;AACXC,IAAAA,OAAO,EAAC,MAAM;AACdX,IAAAA,SAAS,EAAC,wOAAA;AAAwO,GAAA,EAC9OE,KAAK,CAERD,EAAAA,gBAAgB,GAAG,CAAC,GAAG,IAAI,GAAGA,gBAAgB,eAC/CI,KAAA,CAAAC,aAAA,CAACC,MAAM,CAACK,IAAI,EAAA;AACXC,IAAAA,IAAI,EAAC,WAAW;AAChBH,IAAAA,IAAI,EAAC,aAAA;AAAa,GAClB,CACU,CAAC,CAAA;AAEf,CAAC,EAAC;AAEFd,eAAe,CAACkB,WAAW,GAAG,iBAAiB;;;;"}
|
|
1
|
+
{"version":3,"file":"items-pill.js","sources":["../../../../src/components/modules/buttons/items-pill.js"],"sourcesContent":["import React from 'react'\r\nimport { forwardRef } from 'react';\r\n\r\nimport Button from '~/components/modules/buttons/default';\r\n\r\nexport const ButtonItemsPill = forwardRef((\r\n\t{\r\n\t\tclassName,\r\n\t\tactiveItemsCount,\r\n\t\t...props\r\n\t},\r\n\tref\r\n) => {\r\n\treturn (\r\n\t\t<Button.Btn\r\n\t\t\tref={ref}\r\n\t\t\tsize=\"none\"\r\n\t\t\tvariant=\"none\"\r\n\t\t\tclassName=\"hc-relative hc-z-[2] hc-group hc-inline-flex hc-items-center hc-gap-px hc-ml-auto hc-mr-1.5 hc-pl-1.5 hc-pr-1 hc-py-0.5 hc-rounded hc-bg-primary/10 hc-text-xs hc-font-bold hc-text-primary hc-ring-1 hc-ring-inset hc-ring-primary/20\"\r\n\t\t\t{...props}\r\n\t\t>\r\n\t\t\t{activeItemsCount > 9 ? '9+' : activeItemsCount}\r\n\t\t\t<Button.Icon\r\n\t\t\t\ticon=\"uil:times\"\r\n\t\t\t\tsize=\"hc-size-3.5\"\r\n\t\t\t/>\r\n\t\t</Button.Btn>\r\n\t);\r\n});\r\n\r\nButtonItemsPill.displayName = 'ButtonItemsPill';\r\nexport default ButtonItemsPill;\r\n"],"names":["ButtonItemsPill","forwardRef","_ref","ref","className","activeItemsCount","props","_objectWithoutProperties","_excluded","React","createElement","Button","Btn","_extends","size","variant","Icon","icon","displayName"],"mappings":";;;;;AAKO,IAAMA,eAAe,gBAAGC,UAAU,CAAC,UAAAC,IAAA,EAMzCC,GAAG,EACC;AAAA,EALMD,IAAA,CAATE,SAAS,CAAA;QACTC,gBAAgB,GAAAH,IAAA,CAAhBG,gBAAgB,CAAA;AACbC,IAAAA,KAAK,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA,EAAA;EAIT,oBACCC,KAAA,CAAAC,aAAA,CAACC,MAAM,CAACC,GAAG,EAAAC,QAAA,CAAA;AACVV,IAAAA,GAAG,EAAEA,GAAI;AACTW,IAAAA,IAAI,EAAC,MAAM;AACXC,IAAAA,OAAO,EAAC,MAAM;AACdX,IAAAA,SAAS,EAAC,wOAAA;AAAwO,GAAA,EAC9OE,KAAK,CAERD,EAAAA,gBAAgB,GAAG,CAAC,GAAG,IAAI,GAAGA,gBAAgB,eAC/CI,KAAA,CAAAC,aAAA,CAACC,MAAM,CAACK,IAAI,EAAA;AACXC,IAAAA,IAAI,EAAC,WAAW;AAChBH,IAAAA,IAAI,EAAC,aAAA;AAAa,GAClB,CACU,CAAC,CAAA;AAEf,CAAC,EAAC;AAEFd,eAAe,CAACkB,WAAW,GAAG,iBAAiB;;;;"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React, { forwardRef } from 'react';
|
|
3
|
-
import Button from './default.js';
|
|
4
|
-
|
|
5
|
-
var _excluded = ["className", "children"];
|
|
6
|
-
var PillWrapper = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7
|
-
var className = _ref.className,
|
|
8
|
-
children = _ref.children,
|
|
9
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
-
return /*#__PURE__*/React.createElement(Button.Btn, _extends({
|
|
11
|
-
ref: ref,
|
|
12
|
-
size: "none",
|
|
13
|
-
variant: "none",
|
|
14
|
-
className: "hc-relative hc-group hc-inline-flex hc-items-center hc-gap-px hc-ml-auto hc-mr-1.5 hc-pl-1.5 hc-pr-1 hc-py-0.5 hc-rounded hc-bg-primary/10 hc-text-xs hc-font-bold hc-text-primary hc-ring-1 hc-ring-inset hc-ring-primary/20 ".concat(className)
|
|
15
|
-
}, props), children);
|
|
16
|
-
});
|
|
17
|
-
PillWrapper.displayName = 'PillWrapper';
|
|
18
|
-
|
|
19
|
-
export { PillWrapper, PillWrapper as default };
|
|
20
|
-
//# sourceMappingURL=pill-wrapper.js.map
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import Button from './default.js';
|
|
4
|
+
|
|
5
|
+
var _excluded = ["className", "children"];
|
|
6
|
+
var PillWrapper = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7
|
+
var className = _ref.className,
|
|
8
|
+
children = _ref.children,
|
|
9
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
+
return /*#__PURE__*/React.createElement(Button.Btn, _extends({
|
|
11
|
+
ref: ref,
|
|
12
|
+
size: "none",
|
|
13
|
+
variant: "none",
|
|
14
|
+
className: "hc-relative hc-group hc-inline-flex hc-items-center hc-gap-px hc-ml-auto hc-mr-1.5 hc-pl-1.5 hc-pr-1 hc-py-0.5 hc-rounded hc-bg-primary/10 hc-text-xs hc-font-bold hc-text-primary hc-ring-1 hc-ring-inset hc-ring-primary/20 ".concat(className)
|
|
15
|
+
}, props), children);
|
|
16
|
+
});
|
|
17
|
+
PillWrapper.displayName = 'PillWrapper';
|
|
18
|
+
|
|
19
|
+
export { PillWrapper, PillWrapper as default };
|
|
20
|
+
//# sourceMappingURL=pill-wrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pill-wrapper.js","sources":["../../../../src/components/modules/buttons/pill-wrapper.js"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport Button from '~/components/modules/buttons/default';\n\nexport const PillWrapper = forwardRef((\n\t{\n\t\tclassName,\n\t\tchildren,\n\t\t...props\n\t},\n\tref\n) => {\n\treturn (\n\t\t<Button.Btn\n\t\t\tref={ref}\n\t\t\tsize=\"none\"\n\t\t\tvariant=\"none\"\n\t\t\tclassName={`hc-relative hc-group hc-inline-flex hc-items-center hc-gap-px hc-ml-auto hc-mr-1.5 hc-pl-1.5 hc-pr-1 hc-py-0.5 hc-rounded hc-bg-primary/10 hc-text-xs hc-font-bold hc-text-primary hc-ring-1 hc-ring-inset hc-ring-primary/20 ${className}`}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</Button.Btn>\n\t);\n});\n\nPillWrapper.displayName = 'PillWrapper';\nexport default PillWrapper;\n"],"names":["PillWrapper","forwardRef","_ref","ref","className","children","props","_objectWithoutProperties","_excluded","React","createElement","Button","Btn","_extends","size","variant","concat","displayName"],"mappings":";;;;;AAIO,IAAMA,WAAW,gBAAGC,UAAU,CAAC,UAAAC,IAAA,EAMrCC,GAAG,EACC;AAAA,EAAA,IALHC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;AACLC,IAAAA,KAAK,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA,CAAA,CAAA;EAIT,oBACCC,KAAA,CAAAC,aAAA,CAACC,MAAM,CAACC,GAAG,EAAAC,QAAA,CAAA;AACVV,IAAAA,GAAG,EAAEA,GAAI;AACTW,IAAAA,IAAI,EAAC,MAAM;AACXC,IAAAA,OAAO,EAAC,MAAM;IACdX,SAAS,EAAA,gOAAA,CAAAY,MAAA,CAAmOZ,SAAS,CAAA;GACjPE,EAAAA,KAAK,CAERD,EAAAA,QACU,CAAC,CAAA;AAEf,CAAC,EAAC;AAEFL,WAAW,CAACiB,WAAW,GAAG,aAAa;;;;"}
|
|
1
|
+
{"version":3,"file":"pill-wrapper.js","sources":["../../../../src/components/modules/buttons/pill-wrapper.js"],"sourcesContent":["import React, { forwardRef } from 'react';\r\n\r\nimport Button from '~/components/modules/buttons/default';\r\n\r\nexport const PillWrapper = forwardRef((\r\n\t{\r\n\t\tclassName,\r\n\t\tchildren,\r\n\t\t...props\r\n\t},\r\n\tref\r\n) => {\r\n\treturn (\r\n\t\t<Button.Btn\r\n\t\t\tref={ref}\r\n\t\t\tsize=\"none\"\r\n\t\t\tvariant=\"none\"\r\n\t\t\tclassName={`hc-relative hc-group hc-inline-flex hc-items-center hc-gap-px hc-ml-auto hc-mr-1.5 hc-pl-1.5 hc-pr-1 hc-py-0.5 hc-rounded hc-bg-primary/10 hc-text-xs hc-font-bold hc-text-primary hc-ring-1 hc-ring-inset hc-ring-primary/20 ${className}`}\r\n\t\t\t{...props}\r\n\t\t>\r\n\t\t\t{children}\r\n\t\t</Button.Btn>\r\n\t);\r\n});\r\n\r\nPillWrapper.displayName = 'PillWrapper';\r\nexport default PillWrapper;\r\n"],"names":["PillWrapper","forwardRef","_ref","ref","className","children","props","_objectWithoutProperties","_excluded","React","createElement","Button","Btn","_extends","size","variant","concat","displayName"],"mappings":";;;;;AAIO,IAAMA,WAAW,gBAAGC,UAAU,CAAC,UAAAC,IAAA,EAMrCC,GAAG,EACC;AAAA,EAAA,IALHC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;AACLC,IAAAA,KAAK,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA,CAAA,CAAA;EAIT,oBACCC,KAAA,CAAAC,aAAA,CAACC,MAAM,CAACC,GAAG,EAAAC,QAAA,CAAA;AACVV,IAAAA,GAAG,EAAEA,GAAI;AACTW,IAAAA,IAAI,EAAC,MAAM;AACXC,IAAAA,OAAO,EAAC,MAAM;IACdX,SAAS,EAAA,gOAAA,CAAAY,MAAA,CAAmOZ,SAAS,CAAA;GACjPE,EAAAA,KAAK,CAERD,EAAAA,QACU,CAAC,CAAA;AAEf,CAAC,EAAC;AAEFL,WAAW,CAACiB,WAAW,GAAG,aAAa;;;;"}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
var ShowAllButton = function ShowAllButton(_ref) {
|
|
4
|
-
var mapInteracted = _ref.mapInteracted,
|
|
5
|
-
markerConfigs = _ref.markerConfigs,
|
|
6
|
-
setMapInteracted = _ref.setMapInteracted,
|
|
7
|
-
fitBounds = _ref.fitBounds,
|
|
8
|
-
mapRef = _ref.mapRef,
|
|
9
|
-
pinIconUrl = _ref.pinIconUrl,
|
|
10
|
-
setSelectedFilters = _ref.setSelectedFilters,
|
|
11
|
-
setQuery = _ref.setQuery,
|
|
12
|
-
listingCount = _ref.listingCount;
|
|
13
|
-
if (!mapInteracted || !markerConfigs) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
return /*#__PURE__*/React.createElement("button", {
|
|
17
|
-
style: {
|
|
18
|
-
fontFamily: 'Roboto, Arial, sans-serif',
|
|
19
|
-
fontSize: '14px',
|
|
20
|
-
fontWeight: '500'
|
|
21
|
-
},
|
|
22
|
-
className: "hc-absolute hc-bottom-10 hc-left-2.5 hc-z-10 hc-flex hc-items-center hc-justify-center hc-pl-2 hc-pb-1 hc-pt-1.5 hc-pr-3 hc-bg-white hc-text-black hc-border-none hc-rounded-full hc-shadow hc-cursor-pointer hc-text-sm hc-font-medium",
|
|
23
|
-
onClick: function onClick() {
|
|
24
|
-
setMapInteracted(false);
|
|
25
|
-
fitBounds(mapRef.current, true);
|
|
26
|
-
if (listingCount < 2) {
|
|
27
|
-
setSelectedFilters({});
|
|
28
|
-
setQuery(null);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
32
|
-
src: pinIconUrl,
|
|
33
|
-
alt: "Pin Icon",
|
|
34
|
-
className: "hc-size-5"
|
|
35
|
-
}), "Show All");
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export { ShowAllButton as default };
|
|
39
|
-
//# sourceMappingURL=show-all-button.js.map
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
var ShowAllButton = function ShowAllButton(_ref) {
|
|
4
|
+
var mapInteracted = _ref.mapInteracted,
|
|
5
|
+
markerConfigs = _ref.markerConfigs,
|
|
6
|
+
setMapInteracted = _ref.setMapInteracted,
|
|
7
|
+
fitBounds = _ref.fitBounds,
|
|
8
|
+
mapRef = _ref.mapRef,
|
|
9
|
+
pinIconUrl = _ref.pinIconUrl,
|
|
10
|
+
setSelectedFilters = _ref.setSelectedFilters,
|
|
11
|
+
setQuery = _ref.setQuery,
|
|
12
|
+
listingCount = _ref.listingCount;
|
|
13
|
+
if (!mapInteracted || !markerConfigs) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
17
|
+
style: {
|
|
18
|
+
fontFamily: 'Roboto, Arial, sans-serif',
|
|
19
|
+
fontSize: '14px',
|
|
20
|
+
fontWeight: '500'
|
|
21
|
+
},
|
|
22
|
+
className: "hc-absolute hc-bottom-10 hc-left-2.5 hc-z-10 hc-flex hc-items-center hc-justify-center hc-pl-2 hc-pb-1 hc-pt-1.5 hc-pr-3 hc-bg-white hc-text-black hc-border-none hc-rounded-full hc-shadow hc-cursor-pointer hc-text-sm hc-font-medium",
|
|
23
|
+
onClick: function onClick() {
|
|
24
|
+
setMapInteracted(false);
|
|
25
|
+
fitBounds(mapRef.current, true);
|
|
26
|
+
if (listingCount < 2) {
|
|
27
|
+
setSelectedFilters({});
|
|
28
|
+
setQuery(null);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
32
|
+
src: pinIconUrl,
|
|
33
|
+
alt: "Pin Icon",
|
|
34
|
+
className: "hc-size-5"
|
|
35
|
+
}), "Show All");
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export { ShowAllButton as default };
|
|
39
|
+
//# sourceMappingURL=show-all-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"show-all-button.js","sources":["../../../../src/components/modules/buttons/show-all-button.js"],"sourcesContent":["import React from 'react';\n\nconst ShowAllButton = ({ mapInteracted, markerConfigs, setMapInteracted, fitBounds, mapRef, pinIconUrl, setSelectedFilters, setQuery, listingCount }) => {\n\tif (!mapInteracted || !markerConfigs) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<button\n\t\t\tstyle={{ fontFamily: 'Roboto, Arial, sans-serif', fontSize: '14px', fontWeight: '500' }}\n\t\t\tclassName=\"hc-absolute hc-bottom-10 hc-left-2.5 hc-z-10 hc-flex hc-items-center hc-justify-center hc-pl-2 hc-pb-1 hc-pt-1.5 hc-pr-3 hc-bg-white hc-text-black hc-border-none hc-rounded-full hc-shadow hc-cursor-pointer hc-text-sm hc-font-medium\"\n\t\t\tonClick={() => { setMapInteracted(false); fitBounds(mapRef.current, true); if (listingCount < 2) { setSelectedFilters({}); setQuery(null); }; }}\n\t\t>\n\t\t\t<img src={pinIconUrl} alt=\"Pin Icon\" className=\"hc-size-5\" />\n\t\t\tShow All\n\t\t</button>\n\t);\n};\n\nexport default ShowAllButton;\n"],"names":["ShowAllButton","_ref","mapInteracted","markerConfigs","setMapInteracted","fitBounds","mapRef","pinIconUrl","setSelectedFilters","setQuery","listingCount","React","createElement","style","fontFamily","fontSize","fontWeight","className","onClick","current","src","alt"],"mappings":";;AAEA,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAAsI;AAAA,EAAA,IAAhIC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IAAEC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IAAEC,gBAAgB,GAAAH,IAAA,CAAhBG,gBAAgB;IAAEC,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAEC,MAAM,GAAAL,IAAA,CAANK,MAAM;IAAEC,UAAU,GAAAN,IAAA,CAAVM,UAAU;IAAEC,kBAAkB,GAAAP,IAAA,CAAlBO,kBAAkB;IAAEC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ;IAAEC,YAAY,GAAAT,IAAA,CAAZS,YAAY,CAAA;AACjJ,EAAA,IAAI,CAACR,aAAa,IAAI,CAACC,aAAa,EAAE;AACrC,IAAA,OAAO,IAAI,CAAA;AACZ,GAAA;EAEA,oBACCQ,KAAA,CAAAC,aAAA,CAAA,QAAA,EAAA;AACCC,IAAAA,KAAK,EAAE;AAAEC,MAAAA,UAAU,EAAE,2BAA2B;AAAEC,MAAAA,QAAQ,EAAE,MAAM;AAAEC,MAAAA,UAAU,EAAE,KAAA;KAAQ;AACxFC,IAAAA,SAAS,EAAC,yOAAyO;IACnPC,OAAO,EAAE,SAAAA,OAAAA,GAAM;MAAEd,gBAAgB,CAAC,KAAK,CAAC,CAAA;AAAEC,MAAAA,SAAS,CAACC,MAAM,CAACa,OAAO,EAAE,IAAI,CAAC,CAAA;MAAE,IAAIT,YAAY,GAAG,CAAC,EAAE;QAAEF,kBAAkB,CAAC,EAAE,CAAC,CAAA;QAAEC,QAAQ,CAAC,IAAI,CAAC,CAAA;AAAE,OAAA;AAAG,KAAA;GAE9IE,eAAAA,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKQ,IAAAA,GAAG,EAAEb,UAAW;AAACc,IAAAA,GAAG,EAAC,UAAU;AAACJ,IAAAA,SAAS,EAAC,WAAA;GAAa,CAAC,YAEtD,CAAC,CAAA;AAEX;;;;"}
|
|
1
|
+
{"version":3,"file":"show-all-button.js","sources":["../../../../src/components/modules/buttons/show-all-button.js"],"sourcesContent":["import React from 'react';\r\n\r\nconst ShowAllButton = ({ mapInteracted, markerConfigs, setMapInteracted, fitBounds, mapRef, pinIconUrl, setSelectedFilters, setQuery, listingCount }) => {\r\n\tif (!mapInteracted || !markerConfigs) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\treturn (\r\n\t\t<button\r\n\t\t\tstyle={{ fontFamily: 'Roboto, Arial, sans-serif', fontSize: '14px', fontWeight: '500' }}\r\n\t\t\tclassName=\"hc-absolute hc-bottom-10 hc-left-2.5 hc-z-10 hc-flex hc-items-center hc-justify-center hc-pl-2 hc-pb-1 hc-pt-1.5 hc-pr-3 hc-bg-white hc-text-black hc-border-none hc-rounded-full hc-shadow hc-cursor-pointer hc-text-sm hc-font-medium\"\r\n\t\t\tonClick={() => { setMapInteracted(false); fitBounds(mapRef.current, true); if (listingCount < 2) { setSelectedFilters({}); setQuery(null); }; }}\r\n\t\t>\r\n\t\t\t<img src={pinIconUrl} alt=\"Pin Icon\" className=\"hc-size-5\" />\r\n\t\t\tShow All\r\n\t\t</button>\r\n\t);\r\n};\r\n\r\nexport default ShowAllButton;\r\n"],"names":["ShowAllButton","_ref","mapInteracted","markerConfigs","setMapInteracted","fitBounds","mapRef","pinIconUrl","setSelectedFilters","setQuery","listingCount","React","createElement","style","fontFamily","fontSize","fontWeight","className","onClick","current","src","alt"],"mappings":";;AAEA,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAAsI;AAAA,EAAA,IAAhIC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IAAEC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IAAEC,gBAAgB,GAAAH,IAAA,CAAhBG,gBAAgB;IAAEC,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAEC,MAAM,GAAAL,IAAA,CAANK,MAAM;IAAEC,UAAU,GAAAN,IAAA,CAAVM,UAAU;IAAEC,kBAAkB,GAAAP,IAAA,CAAlBO,kBAAkB;IAAEC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ;IAAEC,YAAY,GAAAT,IAAA,CAAZS,YAAY,CAAA;AACjJ,EAAA,IAAI,CAACR,aAAa,IAAI,CAACC,aAAa,EAAE;AACrC,IAAA,OAAO,IAAI,CAAA;AACZ,GAAA;EAEA,oBACCQ,KAAA,CAAAC,aAAA,CAAA,QAAA,EAAA;AACCC,IAAAA,KAAK,EAAE;AAAEC,MAAAA,UAAU,EAAE,2BAA2B;AAAEC,MAAAA,QAAQ,EAAE,MAAM;AAAEC,MAAAA,UAAU,EAAE,KAAA;KAAQ;AACxFC,IAAAA,SAAS,EAAC,yOAAyO;IACnPC,OAAO,EAAE,SAAAA,OAAAA,GAAM;MAAEd,gBAAgB,CAAC,KAAK,CAAC,CAAA;AAAEC,MAAAA,SAAS,CAACC,MAAM,CAACa,OAAO,EAAE,IAAI,CAAC,CAAA;MAAE,IAAIT,YAAY,GAAG,CAAC,EAAE;QAAEF,kBAAkB,CAAC,EAAE,CAAC,CAAA;QAAEC,QAAQ,CAAC,IAAI,CAAC,CAAA;AAAE,OAAA;AAAG,KAAA;GAE9IE,eAAAA,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKQ,IAAAA,GAAG,EAAEb,UAAW;AAACc,IAAAA,GAAG,EAAC,UAAU;AAACJ,IAAAA,SAAS,EAAC,WAAA;GAAa,CAAC,YAEtD,CAAC,CAAA;AAEX;;;;"}
|
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React, { forwardRef } from 'react';
|
|
3
|
-
import { Link } from 'react-router-dom';
|
|
4
|
-
import { twMerge } from 'tailwind-merge';
|
|
5
|
-
|
|
6
|
-
var _excluded = ["as", "className", "hasShadow", "image", "body", "children", "footer"],
|
|
7
|
-
_excluded2 = ["as", "href", "className", "hasShadow", "image", "body", "children", "footer"],
|
|
8
|
-
_excluded3 = ["image", "alt", "className", "imageClassName"],
|
|
9
|
-
_excluded4 = ["as", "children", "className"];
|
|
10
|
-
var cardClasses = function cardClasses(className, hasShadow) {
|
|
11
|
-
return twMerge('hc-relative hc-flex hc-flex-wrap hc-flex-col hc-bg-clip-border hc-break-words hc-bg-white hc-border hc-border-gray-100', hasShadow ? 'hc-shadow-lg' : '', className !== null && className !== void 0 ? className : '');
|
|
12
|
-
};
|
|
13
|
-
var Card = function Card(_ref) {
|
|
14
|
-
var children = _ref.children;
|
|
15
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
16
|
-
};
|
|
17
|
-
var CardDefault = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
18
|
-
var _ref2$as = _ref2.as,
|
|
19
|
-
as = _ref2$as === void 0 ? 'div' : _ref2$as,
|
|
20
|
-
className = _ref2.className,
|
|
21
|
-
_ref2$hasShadow = _ref2.hasShadow,
|
|
22
|
-
hasShadow = _ref2$hasShadow === void 0 ? false : _ref2$hasShadow,
|
|
23
|
-
image = _ref2.image,
|
|
24
|
-
body = _ref2.body,
|
|
25
|
-
children = _ref2.children,
|
|
26
|
-
footer = _ref2.footer,
|
|
27
|
-
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
28
|
-
var Container = as;
|
|
29
|
-
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
30
|
-
ref: ref,
|
|
31
|
-
className: cardClasses(className, hasShadow)
|
|
32
|
-
}, rest), image, children, body, footer);
|
|
33
|
-
});
|
|
34
|
-
var CardLink = function CardLink(_ref3) {
|
|
35
|
-
var _ref3$as = _ref3.as,
|
|
36
|
-
as = _ref3$as === void 0 ? 'link' : _ref3$as,
|
|
37
|
-
href = _ref3.href,
|
|
38
|
-
className = _ref3.className,
|
|
39
|
-
_ref3$hasShadow = _ref3.hasShadow,
|
|
40
|
-
hasShadow = _ref3$hasShadow === void 0 ? false : _ref3$hasShadow,
|
|
41
|
-
image = _ref3.image,
|
|
42
|
-
body = _ref3.body,
|
|
43
|
-
children = _ref3.children,
|
|
44
|
-
footer = _ref3.footer,
|
|
45
|
-
rest = _objectWithoutProperties(_ref3, _excluded2);
|
|
46
|
-
var Container = as === 'link' ? Link : as;
|
|
47
|
-
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
48
|
-
to: href,
|
|
49
|
-
className: twMerge(cardClasses(className, hasShadow), 'hc-group hc-transition hover:hc-shadow-xl hover:hc-border-indigo-300 focus:hc-shadow-xl focus:hc-border-indigo-300')
|
|
50
|
-
}, rest), image && image, children, body && body, footer && footer);
|
|
51
|
-
};
|
|
52
|
-
var CardImage = function CardImage(_ref4) {
|
|
53
|
-
var image = _ref4.image,
|
|
54
|
-
alt = _ref4.alt,
|
|
55
|
-
className = _ref4.className,
|
|
56
|
-
imageClassName = _ref4.imageClassName,
|
|
57
|
-
rest = _objectWithoutProperties(_ref4, _excluded3);
|
|
58
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: twMerge('hc-w-full', className !== null && className !== void 0 ? className : '')
|
|
60
|
-
}, /*#__PURE__*/React.createElement("img", _extends({
|
|
61
|
-
src: typeof image === 'string' ? image : image.src,
|
|
62
|
-
width: image.width ? image.width : null,
|
|
63
|
-
height: image.height ? image.height : null,
|
|
64
|
-
alt: alt !== null && alt !== void 0 ? alt : '',
|
|
65
|
-
className: twMerge('hc-w-full hc-h-auto', imageClassName !== null && imageClassName !== void 0 ? imageClassName : '')
|
|
66
|
-
}, rest)));
|
|
67
|
-
};
|
|
68
|
-
var CardBody = function CardBody(_ref5) {
|
|
69
|
-
var children = _ref5.children,
|
|
70
|
-
className = _ref5.className;
|
|
71
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
72
|
-
className: twMerge('hc-flex-auto hc-p-4 md:hc-px-6 lg:hc-px-8', className !== null && className !== void 0 ? className : '')
|
|
73
|
-
}, children);
|
|
74
|
-
};
|
|
75
|
-
var CardTitle = function CardTitle(_ref6) {
|
|
76
|
-
var _ref6$as = _ref6.as,
|
|
77
|
-
as = _ref6$as === void 0 ? 'h3' : _ref6$as,
|
|
78
|
-
children = _ref6.children,
|
|
79
|
-
className = _ref6.className,
|
|
80
|
-
rest = _objectWithoutProperties(_ref6, _excluded4);
|
|
81
|
-
var Title = as;
|
|
82
|
-
return /*#__PURE__*/React.createElement(Title, _extends({
|
|
83
|
-
className: twMerge('hc-text-2xl hc-font-bold', className !== null && className !== void 0 ? className : '')
|
|
84
|
-
}, rest), children);
|
|
85
|
-
};
|
|
86
|
-
var CardFooter = function CardFooter(_ref7) {
|
|
87
|
-
var children = _ref7.children,
|
|
88
|
-
className = _ref7.className;
|
|
89
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
90
|
-
className: twMerge('hc-py-2 hc-px-4 md:hc-px-6 lg:hc-px-8 hc-bg-gray-100', className !== null && className !== void 0 ? className : '')
|
|
91
|
-
}, children);
|
|
92
|
-
};
|
|
93
|
-
Card.Default = CardDefault;
|
|
94
|
-
Card.Link = CardLink;
|
|
95
|
-
Card.Image = CardImage;
|
|
96
|
-
Card.Body = CardBody;
|
|
97
|
-
Card.Title = CardTitle;
|
|
98
|
-
Card.Footer = CardFooter;
|
|
99
|
-
CardDefault.displayName = 'Card:Default';
|
|
100
|
-
|
|
101
|
-
export { CardBody, CardDefault, CardFooter, CardImage, CardTitle, Card as default };
|
|
102
|
-
//# sourceMappingURL=default.js.map
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import { Link } from 'react-router-dom';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
|
+
|
|
6
|
+
var _excluded = ["as", "className", "hasShadow", "image", "body", "children", "footer"],
|
|
7
|
+
_excluded2 = ["as", "href", "className", "hasShadow", "image", "body", "children", "footer"],
|
|
8
|
+
_excluded3 = ["image", "alt", "className", "imageClassName"],
|
|
9
|
+
_excluded4 = ["as", "children", "className"];
|
|
10
|
+
var cardClasses = function cardClasses(className, hasShadow) {
|
|
11
|
+
return twMerge('hc-relative hc-flex hc-flex-wrap hc-flex-col hc-bg-clip-border hc-break-words hc-bg-white hc-border hc-border-gray-100', hasShadow ? 'hc-shadow-lg' : '', className !== null && className !== void 0 ? className : '');
|
|
12
|
+
};
|
|
13
|
+
var Card = function Card(_ref) {
|
|
14
|
+
var children = _ref.children;
|
|
15
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
16
|
+
};
|
|
17
|
+
var CardDefault = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
18
|
+
var _ref2$as = _ref2.as,
|
|
19
|
+
as = _ref2$as === void 0 ? 'div' : _ref2$as,
|
|
20
|
+
className = _ref2.className,
|
|
21
|
+
_ref2$hasShadow = _ref2.hasShadow,
|
|
22
|
+
hasShadow = _ref2$hasShadow === void 0 ? false : _ref2$hasShadow,
|
|
23
|
+
image = _ref2.image,
|
|
24
|
+
body = _ref2.body,
|
|
25
|
+
children = _ref2.children,
|
|
26
|
+
footer = _ref2.footer,
|
|
27
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
28
|
+
var Container = as;
|
|
29
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
30
|
+
ref: ref,
|
|
31
|
+
className: cardClasses(className, hasShadow)
|
|
32
|
+
}, rest), image, children, body, footer);
|
|
33
|
+
});
|
|
34
|
+
var CardLink = function CardLink(_ref3) {
|
|
35
|
+
var _ref3$as = _ref3.as,
|
|
36
|
+
as = _ref3$as === void 0 ? 'link' : _ref3$as,
|
|
37
|
+
href = _ref3.href,
|
|
38
|
+
className = _ref3.className,
|
|
39
|
+
_ref3$hasShadow = _ref3.hasShadow,
|
|
40
|
+
hasShadow = _ref3$hasShadow === void 0 ? false : _ref3$hasShadow,
|
|
41
|
+
image = _ref3.image,
|
|
42
|
+
body = _ref3.body,
|
|
43
|
+
children = _ref3.children,
|
|
44
|
+
footer = _ref3.footer,
|
|
45
|
+
rest = _objectWithoutProperties(_ref3, _excluded2);
|
|
46
|
+
var Container = as === 'link' ? Link : as;
|
|
47
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
48
|
+
to: href,
|
|
49
|
+
className: twMerge(cardClasses(className, hasShadow), 'hc-group hc-transition hover:hc-shadow-xl hover:hc-border-indigo-300 focus:hc-shadow-xl focus:hc-border-indigo-300')
|
|
50
|
+
}, rest), image && image, children, body && body, footer && footer);
|
|
51
|
+
};
|
|
52
|
+
var CardImage = function CardImage(_ref4) {
|
|
53
|
+
var image = _ref4.image,
|
|
54
|
+
alt = _ref4.alt,
|
|
55
|
+
className = _ref4.className,
|
|
56
|
+
imageClassName = _ref4.imageClassName,
|
|
57
|
+
rest = _objectWithoutProperties(_ref4, _excluded3);
|
|
58
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
className: twMerge('hc-w-full', className !== null && className !== void 0 ? className : '')
|
|
60
|
+
}, /*#__PURE__*/React.createElement("img", _extends({
|
|
61
|
+
src: typeof image === 'string' ? image : image.src,
|
|
62
|
+
width: image.width ? image.width : null,
|
|
63
|
+
height: image.height ? image.height : null,
|
|
64
|
+
alt: alt !== null && alt !== void 0 ? alt : '',
|
|
65
|
+
className: twMerge('hc-w-full hc-h-auto', imageClassName !== null && imageClassName !== void 0 ? imageClassName : '')
|
|
66
|
+
}, rest)));
|
|
67
|
+
};
|
|
68
|
+
var CardBody = function CardBody(_ref5) {
|
|
69
|
+
var children = _ref5.children,
|
|
70
|
+
className = _ref5.className;
|
|
71
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
className: twMerge('hc-flex-auto hc-p-4 md:hc-px-6 lg:hc-px-8', className !== null && className !== void 0 ? className : '')
|
|
73
|
+
}, children);
|
|
74
|
+
};
|
|
75
|
+
var CardTitle = function CardTitle(_ref6) {
|
|
76
|
+
var _ref6$as = _ref6.as,
|
|
77
|
+
as = _ref6$as === void 0 ? 'h3' : _ref6$as,
|
|
78
|
+
children = _ref6.children,
|
|
79
|
+
className = _ref6.className,
|
|
80
|
+
rest = _objectWithoutProperties(_ref6, _excluded4);
|
|
81
|
+
var Title = as;
|
|
82
|
+
return /*#__PURE__*/React.createElement(Title, _extends({
|
|
83
|
+
className: twMerge('hc-text-2xl hc-font-bold', className !== null && className !== void 0 ? className : '')
|
|
84
|
+
}, rest), children);
|
|
85
|
+
};
|
|
86
|
+
var CardFooter = function CardFooter(_ref7) {
|
|
87
|
+
var children = _ref7.children,
|
|
88
|
+
className = _ref7.className;
|
|
89
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
90
|
+
className: twMerge('hc-py-2 hc-px-4 md:hc-px-6 lg:hc-px-8 hc-bg-gray-100', className !== null && className !== void 0 ? className : '')
|
|
91
|
+
}, children);
|
|
92
|
+
};
|
|
93
|
+
Card.Default = CardDefault;
|
|
94
|
+
Card.Link = CardLink;
|
|
95
|
+
Card.Image = CardImage;
|
|
96
|
+
Card.Body = CardBody;
|
|
97
|
+
Card.Title = CardTitle;
|
|
98
|
+
Card.Footer = CardFooter;
|
|
99
|
+
CardDefault.displayName = 'Card:Default';
|
|
100
|
+
|
|
101
|
+
export { CardBody, CardDefault, CardFooter, CardImage, CardTitle, Card as default };
|
|
102
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.js","sources":["../../../../src/components/modules/cards/default.js"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { Link } from 'react-router-dom';\nimport { twMerge } from 'tailwind-merge';\n\nconst cardClasses = (className, hasShadow) => twMerge(\n\t'hc-relative hc-flex hc-flex-wrap hc-flex-col hc-bg-clip-border hc-break-words hc-bg-white hc-border hc-border-gray-100',\n\thasShadow ? 'hc-shadow-lg' : '',\n\tclassName ?? ''\n);\n\nconst Card = ({ children }) => {\n\treturn (\n\t\t<>{children}</>\n\t);\n};\n\nexport const CardDefault = forwardRef((\n\t{\n\t\tas = 'div',\n\t\tclassName,\n\t\thasShadow = false,\n\t\timage,\n\t\tbody,\n\t\tchildren,\n\t\tfooter,\n\t\t...rest\n\t},\n\tref\n) => {\n\tconst Container = as;\n\n\treturn (\n\t\t<Container\n\t\t\tref={ref}\n\t\t\tclassName={cardClasses(className, hasShadow)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{image}\n\t\t\t{children}\n\t\t\t{body}\n\t\t\t{footer}\n\t\t</Container>\n\t);\n});\n\nconst CardLink = ({\n\tas = 'link',\n\thref,\n\tclassName,\n\thasShadow = false,\n\timage,\n\tbody,\n\tchildren,\n\tfooter,\n\t...rest\n}) => {\n\tconst Container = as === 'link' ? Link : as;\n\n\treturn (\n\t\t<Container\n\t\t\tto={href}\n\t\t\tclassName={twMerge(\n\t\t\t\tcardClasses(className, hasShadow),\n\t\t\t\t'hc-group hc-transition hover:hc-shadow-xl hover:hc-border-indigo-300 focus:hc-shadow-xl focus:hc-border-indigo-300'\n\t\t\t)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{image && image}\n\t\t\t{children}\n\t\t\t{body && body}\n\t\t\t{footer && footer}\n\t\t</Container>\n\t);\n};\n\nexport const CardImage = ({\n\timage,\n\talt,\n\tclassName,\n\timageClassName,\n\t...rest\n}) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={twMerge(\n\t\t\t\t'hc-w-full',\n\t\t\t\tclassName ?? ''\n\t\t\t)}\n\t\t>\n\t\t\t<img\n\t\t\t\tsrc={typeof image === 'string' ? image : image.src}\n\t\t\t\twidth={image.width ? image.width : null}\n\t\t\t\theight={image.height ? image.height : null}\n\t\t\t\talt={alt ?? ''}\n\t\t\t\tclassName={twMerge(\n\t\t\t\t\t'hc-w-full hc-h-auto',\n\t\t\t\t\timageClassName ?? ''\n\t\t\t\t)}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport const CardBody = ({\n\tchildren,\n\tclassName\n}) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={twMerge(\n\t\t\t\t'hc-flex-auto hc-p-4 md:hc-px-6 lg:hc-px-8',\n\t\t\t\tclassName ?? ''\n\t\t\t)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport const CardTitle = ({\n\tas = 'h3',\n\tchildren,\n\tclassName,\n\t...rest\n}) => {\n\tconst Title = as;\n\n\treturn (\n\t\t<Title\n\t\t\tclassName={twMerge(\n\t\t\t\t'hc-text-2xl hc-font-bold',\n\t\t\t\tclassName ?? ''\n\t\t\t)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</Title>\n\t);\n};\n\nexport const CardFooter = ({\n\tchildren,\n\tclassName\n}) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={twMerge(\n\t\t\t\t'hc-py-2 hc-px-4 md:hc-px-6 lg:hc-px-8 hc-bg-gray-100',\n\t\t\t\tclassName ?? ''\n\t\t\t)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nCard.Default = CardDefault;\nCard.Link = CardLink;\nCard.Image = CardImage;\nCard.Body = CardBody;\nCard.Title = CardTitle;\nCard.Footer = CardFooter;\n\nCardDefault.displayName = 'Card:Default';\n\nexport default Card;\n"],"names":["cardClasses","className","hasShadow","twMerge","Card","_ref","children","React","createElement","Fragment","CardDefault","forwardRef","_ref2","ref","_ref2$as","as","_ref2$hasShadow","image","body","footer","rest","_objectWithoutProperties","_excluded","Container","_extends","CardLink","_ref3","_ref3$as","href","_ref3$hasShadow","_excluded2","Link","to","CardImage","_ref4","alt","imageClassName","_excluded3","src","width","height","CardBody","_ref5","CardTitle","_ref6","_ref6$as","_excluded4","Title","CardFooter","_ref7","Default","Image","Body","Footer","displayName"],"mappings":";;;;;;;;;AAIA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,SAAS,EAAEC,SAAS,EAAA;AAAA,EAAA,OAAKC,OAAO,CACpD,wHAAwH,EACxHD,SAAS,GAAG,cAAc,GAAG,EAAE,EAC/BD,SAAS,KAATA,IAAAA,IAAAA,SAAS,cAATA,SAAS,GAAI,EACd,CAAC,CAAA;AAAA,CAAA,CAAA;AAED,IAAMG,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAqB;AAAA,EAAA,IAAfC,QAAQ,GAAAD,IAAA,CAARC,QAAQ,CAAA;EACvB,oBACCC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAGH,IAAAA,EAAAA,QAAW,CAAC,CAAA;A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,wBAAA,CAAAuB,KAAA,EAAAE,UAAA,CAAA,CAAA;EAEP,IAAMC,KAAK,GAAGhC,EAAE,CAAA;AAEhB,EAAA,oBACCR,KAAA,CAAAC,aAAA,CAACuC,KAAK,EAAAvB,QAAA,CAAA;IACLvB,SAAS,EAAEE,OAAO,CACjB,0BAA0B,EAC1BF,SAAS,KAAA,IAAA,IAATA,SAAS,KAAA,KAAA,CAAA,GAATA,SAAS,GAAI,EACd,CAAA;GACImB,EAAAA,IAAI,CAEPd,EAAAA,QACK,CAAC,CAAA;AAEV,EAAC;IAEY0C,UAAU,GAAG,SAAbA,UAAUA,CAAAC,KAAA,EAGjB;AAAA,EAAA,IAFL3C,QAAQ,GAAA2C,KAAA,CAAR3C,QAAQ;IACRL,SAAS,GAAAgD,KAAA,CAAThD,SAAS,CAAA;EAET,oBACCM,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IACCP,SAAS,EAAEE,OAAO,CACjB,sDAAsD,EACtDF,SAAS,KAAA,IAAA,IAATA,SAAS,KAAA,KAAA,CAAA,GAATA,SAAS,GAAI,EACd,CAAA;AAAE,GAAA,EAEDK,QACG,CAAC,CAAA;AAER,EAAC;AAEDF,IAAI,CAAC8C,OAAO,GAAGxC,WAAW,CAAA;AAC1BN,IAAI,CAAC2B,IAAI,GAAGN,QAAQ,CAAA;AACpBrB,IAAI,CAAC+C,KAAK,GAAGlB,SAAS,CAAA;AACtB7B,IAAI,CAACgD,IAAI,GAAGX,QAAQ,CAAA;AACpBrC,IAAI,CAAC2C,KAAK,GAAGJ,SAAS,CAAA;AACtBvC,IAAI,CAACiD,MAAM,GAAGL,UAAU,CAAA;AAExBtC,WAAW,CAAC4C,WAAW,GAAG,cAAc;;;;"}
|
|
1
|
+
{"version":3,"file":"default.js","sources":["../../../../src/components/modules/cards/default.js"],"sourcesContent":["import React, { forwardRef } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { twMerge } from 'tailwind-merge';\r\n\r\nconst cardClasses = (className, hasShadow) => twMerge(\r\n\t'hc-relative hc-flex hc-flex-wrap hc-flex-col hc-bg-clip-border hc-break-words hc-bg-white hc-border hc-border-gray-100',\r\n\thasShadow ? 'hc-shadow-lg' : '',\r\n\tclassName ?? ''\r\n);\r\n\r\nconst Card = ({ children }) => {\r\n\treturn (\r\n\t\t<>{children}</>\r\n\t);\r\n};\r\n\r\nexport const CardDefault = forwardRef((\r\n\t{\r\n\t\tas = 'div',\r\n\t\tclassName,\r\n\t\thasShadow = false,\r\n\t\timage,\r\n\t\tbody,\r\n\t\tchildren,\r\n\t\tfooter,\r\n\t\t...rest\r\n\t},\r\n\tref\r\n) => {\r\n\tconst Container = as;\r\n\r\n\treturn (\r\n\t\t<Container\r\n\t\t\tref={ref}\r\n\t\t\tclassName={cardClasses(className, hasShadow)}\r\n\t\t\t{...rest}\r\n\t\t>\r\n\t\t\t{image}\r\n\t\t\t{children}\r\n\t\t\t{body}\r\n\t\t\t{footer}\r\n\t\t</Container>\r\n\t);\r\n});\r\n\r\nconst CardLink = ({\r\n\tas = 'link',\r\n\thref,\r\n\tclassName,\r\n\thasShadow = false,\r\n\timage,\r\n\tbody,\r\n\tchildren,\r\n\tfooter,\r\n\t...rest\r\n}) => {\r\n\tconst Container = as === 'link' ? Link : as;\r\n\r\n\treturn (\r\n\t\t<Container\r\n\t\t\tto={href}\r\n\t\t\tclassName={twMerge(\r\n\t\t\t\tcardClasses(className, hasShadow),\r\n\t\t\t\t'hc-group hc-transition hover:hc-shadow-xl hover:hc-border-indigo-300 focus:hc-shadow-xl focus:hc-border-indigo-300'\r\n\t\t\t)}\r\n\t\t\t{...rest}\r\n\t\t>\r\n\t\t\t{image && image}\r\n\t\t\t{children}\r\n\t\t\t{body && body}\r\n\t\t\t{footer && footer}\r\n\t\t</Container>\r\n\t);\r\n};\r\n\r\nexport const CardImage = ({\r\n\timage,\r\n\talt,\r\n\tclassName,\r\n\timageClassName,\r\n\t...rest\r\n}) => {\r\n\treturn (\r\n\t\t<div\r\n\t\t\tclassName={twMerge(\r\n\t\t\t\t'hc-w-full',\r\n\t\t\t\tclassName ?? ''\r\n\t\t\t)}\r\n\t\t>\r\n\t\t\t<img\r\n\t\t\t\tsrc={typeof image === 'string' ? image : image.src}\r\n\t\t\t\twidth={image.width ? image.width : null}\r\n\t\t\t\theight={image.height ? image.height : null}\r\n\t\t\t\talt={alt ?? ''}\r\n\t\t\t\tclassName={twMerge(\r\n\t\t\t\t\t'hc-w-full hc-h-auto',\r\n\t\t\t\t\timageClassName ?? ''\r\n\t\t\t\t)}\r\n\t\t\t\t{...rest}\r\n\t\t\t/>\r\n\t\t</div>\r\n\t);\r\n};\r\n\r\nexport const CardBody = ({\r\n\tchildren,\r\n\tclassName\r\n}) => {\r\n\treturn (\r\n\t\t<div\r\n\t\t\tclassName={twMerge(\r\n\t\t\t\t'hc-flex-auto hc-p-4 md:hc-px-6 lg:hc-px-8',\r\n\t\t\t\tclassName ?? ''\r\n\t\t\t)}\r\n\t\t>\r\n\t\t\t{children}\r\n\t\t</div>\r\n\t);\r\n};\r\n\r\nexport const CardTitle = ({\r\n\tas = 'h3',\r\n\tchildren,\r\n\tclassName,\r\n\t...rest\r\n}) => {\r\n\tconst Title = as;\r\n\r\n\treturn (\r\n\t\t<Title\r\n\t\t\tclassName={twMerge(\r\n\t\t\t\t'hc-text-2xl hc-font-bold',\r\n\t\t\t\tclassName ?? ''\r\n\t\t\t)}\r\n\t\t\t{...rest}\r\n\t\t>\r\n\t\t\t{children}\r\n\t\t</Title>\r\n\t);\r\n};\r\n\r\nexport const CardFooter = ({\r\n\tchildren,\r\n\tclassName\r\n}) => {\r\n\treturn (\r\n\t\t<div\r\n\t\t\tclassName={twMerge(\r\n\t\t\t\t'hc-py-2 hc-px-4 md:hc-px-6 lg:hc-px-8 hc-bg-gray-100',\r\n\t\t\t\tclassName ?? ''\r\n\t\t\t)}\r\n\t\t>\r\n\t\t\t{children}\r\n\t\t</div>\r\n\t);\r\n};\r\n\r\nCard.Default = CardDefault;\r\nCard.Link = CardLink;\r\nCard.Image = CardImage;\r\nCard.Body = CardBody;\r\nCard.Title = CardTitle;\r\nCard.Footer = CardFooter;\r\n\r\nCardDefault.displayName = 'Card:Default';\r\n\r\nexport default Card;\r\n"],"names":["cardClasses","className","hasShadow","twMerge","Card","_ref","children","React","createElement","Fragment","CardDefault","forwardRef","_ref2","ref","_ref2$as","as","_ref2$hasShadow","image","body","footer","rest","_objectWithoutProperties","_excluded","Container","_extends","CardLink","_ref3","_ref3$as","href","_ref3$hasShadow","_excluded2","Link","to","CardImage","_ref4","alt","imageClassName","_excluded3","src","width","height","CardBody","_ref5","CardTitle","_ref6","_ref6$as","_excluded4","Title","CardFooter","_ref7","Default","Image","Body","Footer","displayName"],"mappings":";;;;;;;;;AAIA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,SAAS,EAAEC,SAAS,EAAA;AAAA,EAAA,OAAKC,OAAO,CACpD,wHAAwH,EACxHD,SAAS,GAAG,cAAc,GAAG,EAAE,EAC/BD,SAAS,KAATA,IAAAA,IAAAA,SAAS,cAATA,SAAS,GAAI,EACd,CAAC,CAAA;AAAA,CAAA,CAAA;AAED,IAAMG,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAqB;AAAA,EAAA,IAAfC,QAAQ,GAAAD,IAAA,CAARC,QAAQ,CAAA;EACvB,oBACCC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAGH,IAAAA,EAAAA,QAAW,CAAC,CAAA;AAEjB,EAAC;AAEM,IAAMI,WAAW,gBAAGC,UAAU,CAAC,UAAAC,KAAA,EAWrCC,GAAG,EACC;AAAA,EAAA,IAAAC,QAAA,GAAAF,KAAA,CAVHG,EAAE;AAAFA,IAAAA,EAAE,GAAAD,QAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,QAAA;IACVb,SAAS,GAAAW,KAAA,CAATX,SAAS;IAAAe,eAAA,GAAAJ,KAAA,CACTV,SAAS;AAATA,IAAA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IAAI,CAEPd,EAAAA,QACK,CAAC,CAAA;AAEV,EAAC;IAEY0C,UAAU,GAAG,SAAbA,UAAUA,CAAAC,KAAA,EAGjB;AAAA,EAAA,IAFL3C,QAAQ,GAAA2C,KAAA,CAAR3C,QAAQ;IACRL,SAAS,GAAAgD,KAAA,CAAThD,SAAS,CAAA;EAET,oBACCM,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IACCP,SAAS,EAAEE,OAAO,CACjB,sDAAsD,EACtDF,SAAS,KAAA,IAAA,IAATA,SAAS,KAAA,KAAA,CAAA,GAATA,SAAS,GAAI,EACd,CAAA;AAAE,GAAA,EAEDK,QACG,CAAC,CAAA;AAER,EAAC;AAEDF,IAAI,CAAC8C,OAAO,GAAGxC,WAAW,CAAA;AAC1BN,IAAI,CAAC2B,IAAI,GAAGN,QAAQ,CAAA;AACpBrB,IAAI,CAAC+C,KAAK,GAAGlB,SAAS,CAAA;AACtB7B,IAAI,CAACgD,IAAI,GAAGX,QAAQ,CAAA;AACpBrC,IAAI,CAAC2C,KAAK,GAAGJ,SAAS,CAAA;AACtBvC,IAAI,CAACiD,MAAM,GAAGL,UAAU,CAAA;AAExBtC,WAAW,CAAC4C,WAAW,GAAG,cAAc;;;;"}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Card from './default.js';
|
|
4
|
-
import IconContained from '../icon.js';
|
|
5
|
-
|
|
6
|
-
var _excluded = ["as", "className", "children"],
|
|
7
|
-
_excluded2 = ["as", "children", "icon", "className"];
|
|
8
|
-
var CardFilter = function CardFilter(_ref) {
|
|
9
|
-
var as = _ref.as,
|
|
10
|
-
className = _ref.className,
|
|
11
|
-
children = _ref.children,
|
|
12
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
-
return /*#__PURE__*/React.createElement(Card.Default, _extends({
|
|
14
|
-
as: as,
|
|
15
|
-
className: "\n\t\t\thc-bg-uiAccent/5 hc-border hc-border-uiAccent/20 hc-rounded\n\t\t\t\t".concat(className !== null && className !== void 0 ? className : '', "\n\t\t\t")
|
|
16
|
-
}, rest), /*#__PURE__*/React.createElement(Card.Body, {
|
|
17
|
-
className: "!hc-p-3"
|
|
18
|
-
}, children));
|
|
19
|
-
};
|
|
20
|
-
var CardTitle = function CardTitle(_ref2) {
|
|
21
|
-
var as = _ref2.as,
|
|
22
|
-
children = _ref2.children,
|
|
23
|
-
icon = _ref2.icon,
|
|
24
|
-
className = _ref2.className,
|
|
25
|
-
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
26
|
-
return /*#__PURE__*/React.createElement(Card.Title, _extends({
|
|
27
|
-
as: as,
|
|
28
|
-
className: "\n\t\t\thc-flex hc-items-center hc-gap-2 hc-mb-2 hc-text-xs hc-uppercase hc-font-bold hc-text-uiText\n\t\t\t\t".concat(className !== null && className !== void 0 ? className : '', "\n\t\t\t")
|
|
29
|
-
}, rest), /*#__PURE__*/React.createElement(IconContained, {
|
|
30
|
-
icon: icon,
|
|
31
|
-
size: "hc-size-5",
|
|
32
|
-
className: "hc-text-uiAccent/30"
|
|
33
|
-
}), children);
|
|
34
|
-
};
|
|
35
|
-
CardFilter.Title = CardTitle;
|
|
36
|
-
|
|
37
|
-
export { CardTitle, CardFilter as default };
|
|
38
|
-
//# sourceMappingURL=filter.js.map
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Card from './default.js';
|
|
4
|
+
import IconContained from '../icon.js';
|
|
5
|
+
|
|
6
|
+
var _excluded = ["as", "className", "children"],
|
|
7
|
+
_excluded2 = ["as", "children", "icon", "className"];
|
|
8
|
+
var CardFilter = function CardFilter(_ref) {
|
|
9
|
+
var as = _ref.as,
|
|
10
|
+
className = _ref.className,
|
|
11
|
+
children = _ref.children,
|
|
12
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
return /*#__PURE__*/React.createElement(Card.Default, _extends({
|
|
14
|
+
as: as,
|
|
15
|
+
className: "\n\t\t\thc-bg-uiAccent/5 hc-border hc-border-uiAccent/20 hc-rounded\n\t\t\t\t".concat(className !== null && className !== void 0 ? className : '', "\n\t\t\t")
|
|
16
|
+
}, rest), /*#__PURE__*/React.createElement(Card.Body, {
|
|
17
|
+
className: "!hc-p-3"
|
|
18
|
+
}, children));
|
|
19
|
+
};
|
|
20
|
+
var CardTitle = function CardTitle(_ref2) {
|
|
21
|
+
var as = _ref2.as,
|
|
22
|
+
children = _ref2.children,
|
|
23
|
+
icon = _ref2.icon,
|
|
24
|
+
className = _ref2.className,
|
|
25
|
+
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
26
|
+
return /*#__PURE__*/React.createElement(Card.Title, _extends({
|
|
27
|
+
as: as,
|
|
28
|
+
className: "\n\t\t\thc-flex hc-items-center hc-gap-2 hc-mb-2 hc-text-xs hc-uppercase hc-font-bold hc-text-uiText\n\t\t\t\t".concat(className !== null && className !== void 0 ? className : '', "\n\t\t\t")
|
|
29
|
+
}, rest), /*#__PURE__*/React.createElement(IconContained, {
|
|
30
|
+
icon: icon,
|
|
31
|
+
size: "hc-size-5",
|
|
32
|
+
className: "hc-text-uiAccent/30"
|
|
33
|
+
}), children);
|
|
34
|
+
};
|
|
35
|
+
CardFilter.Title = CardTitle;
|
|
36
|
+
|
|
37
|
+
export { CardTitle, CardFilter as default };
|
|
38
|
+
//# sourceMappingURL=filter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.js","sources":["../../../../src/components/modules/cards/filter.js"],"sourcesContent":["import React from 'react'\n\nimport Card from '~/components/modules/cards/default';\nimport Icon from '~/components/modules/icon';\n\nconst CardFilter = ({\n\tas,\n\tclassName,\n\tchildren,\n\t...rest\n}) => {\n\treturn (\n\t\t<Card.Default\n\t\t\tas={as}\n\t\t\tclassName={`\n\t\t\thc-bg-uiAccent/5 hc-border hc-border-uiAccent/20 hc-rounded\n\t\t\t\t${className ?? ''}\n\t\t\t`}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<Card.Body className=\"!hc-p-3\">\n\t\t\t\t{children}\n\t\t\t</Card.Body>\n\t\t</Card.Default>\n\t);\n};\n\nexport const CardTitle = ({\n\tas,\n\tchildren,\n\ticon,\n\tclassName,\n\t...rest\n}) => {\n\treturn (\n\t\t<Card.Title\n\t\t\tas={as}\n\t\t\tclassName={`\n\t\t\thc-flex hc-items-center hc-gap-2 hc-mb-2 hc-text-xs hc-uppercase hc-font-bold hc-text-uiText\n\t\t\t\t${className ?? ''}\n\t\t\t`}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<Icon\n\t\t\t\ticon={icon}\n\t\t\t\tsize=\"hc-size-5\"\n\t\t\t\tclassName=\"hc-text-uiAccent/30\"\n\t\t\t/>\n\t\t\t{children}\n\t\t</Card.Title>\n\t);\n};\n\nCardFilter.Title = CardTitle;\n\nexport default CardFilter;\n"],"names":["CardFilter","_ref","as","className","children","rest","_objectWithoutProperties","_excluded","React","createElement","Card","Default","_extends","concat","Body","CardTitle","_ref2","icon","_excluded2","Title","Icon","size"],"mappings":";;;;;;;AAKA,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EAKV;AAAA,EAAA,IAJLC,EAAE,GAAAD,IAAA,CAAFC,EAAE;IACFC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;AACLC,IAAAA,IAAI,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA,CAAA,CAAA;EAEP,oBACCC,KAAA,CAAAC,aAAA,CAACC,IAAI,CAACC,OAAO,EAAAC,QAAA,CAAA;AACZV,IAAAA,EAAE,EAAEA,EAAG;IACPC,SAAS,EAAA,+EAAA,CAAAU,MAAA,CAENV,SAAS,aAATA,SAAS,KAAA,KAAA,CAAA,GAATA,SAAS,GAAI,EAAE,EAAA,UAAA,CAAA;GAEdE,EAAAA,IAAI,gBAERG,KAAA,CAAAC,aAAA,CAACC,IAAI,CAACI,IAAI,EAAA;AAACX,IAAAA,SAAS,EAAC,SAAA;GACnBC,EAAAA,QACS,CACE,CAAC,CAAA;AAEjB,EAAC;IAEYW,SAAS,GAAG,SAAZA,SAASA,CAAAC,KAAA,EAMhB;AAAA,EAAA,IALLd,EAAE,GAAAc,KAAA,CAAFd,EAAE;IACFE,QAAQ,GAAAY,KAAA,CAARZ,QAAQ;IACRa,IAAI,GAAAD,KAAA,CAAJC,IAAI;IACJd,SAAS,GAAAa,KAAA,CAATb,SAAS;AACNE,IAAAA,IAAI,GAAAC,wBAAA,CAAAU,KAAA,EAAAE,UAAA,CAAA,CAAA;EAEP,oBACCV,KAAA,CAAAC,aAAA,CAACC,IAAI,CAACS,KAAK,EAAAP,QAAA,CAAA;AACVV,IAAAA,EAAE,EAAEA,EAAG;IACPC,SAAS,EAAA,gHAAA,CAAAU,MAAA,CAENV,SAAS,aAATA,SAAS,KAAA,KAAA,CAAA,GAATA,SAAS,GAAI,EAAE,EAAA,UAAA,CAAA;AAChB,GAAA,EACEE,IAAI,CAERG,eAAAA,KAAA,CAAAC,aAAA,CAACW,aAAI,EAAA;AACJH,IAAAA,IAAI,EAAEA,IAAK;AACXI,IAAAA,IAAI,EAAC,WAAW;AAChBlB,IAAAA,SAAS,EAAC,qBAAA;GACV,CAAC,EACDC,QACU,CAAC,CAAA;AAEf,EAAC;AAEDJ,UAAU,CAACmB,KAAK,GAAGJ,SAAS;;;;"}
|
|
1
|
+
{"version":3,"file":"filter.js","sources":["../../../../src/components/modules/cards/filter.js"],"sourcesContent":["import React from 'react'\r\n\r\nimport Card from '~/components/modules/cards/default';\r\nimport Icon from '~/components/modules/icon';\r\n\r\nconst CardFilter = ({\r\n\tas,\r\n\tclassName,\r\n\tchildren,\r\n\t...rest\r\n}) => {\r\n\treturn (\r\n\t\t<Card.Default\r\n\t\t\tas={as}\r\n\t\t\tclassName={`\r\n\t\t\thc-bg-uiAccent/5 hc-border hc-border-uiAccent/20 hc-rounded\r\n\t\t\t\t${className ?? ''}\r\n\t\t\t`}\r\n\t\t\t{...rest}\r\n\t\t>\r\n\t\t\t<Card.Body className=\"!hc-p-3\">\r\n\t\t\t\t{children}\r\n\t\t\t</Card.Body>\r\n\t\t</Card.Default>\r\n\t);\r\n};\r\n\r\nexport const CardTitle = ({\r\n\tas,\r\n\tchildren,\r\n\ticon,\r\n\tclassName,\r\n\t...rest\r\n}) => {\r\n\treturn (\r\n\t\t<Card.Title\r\n\t\t\tas={as}\r\n\t\t\tclassName={`\r\n\t\t\thc-flex hc-items-center hc-gap-2 hc-mb-2 hc-text-xs hc-uppercase hc-font-bold hc-text-uiText\r\n\t\t\t\t${className ?? ''}\r\n\t\t\t`}\r\n\t\t\t{...rest}\r\n\t\t>\r\n\t\t\t<Icon\r\n\t\t\t\ticon={icon}\r\n\t\t\t\tsize=\"hc-size-5\"\r\n\t\t\t\tclassName=\"hc-text-uiAccent/30\"\r\n\t\t\t/>\r\n\t\t\t{children}\r\n\t\t</Card.Title>\r\n\t);\r\n};\r\n\r\nCardFilter.Title = CardTitle;\r\n\r\nexport default CardFilter;\r\n"],"names":["CardFilter","_ref","as","className","children","rest","_objectWithoutProperties","_excluded","React","createElement","Card","Default","_extends","concat","Body","CardTitle","_ref2","icon","_excluded2","Title","Icon","size"],"mappings":";;;;;;;AAKA,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EAKV;AAAA,EAAA,IAJLC,EAAE,GAAAD,IAAA,CAAFC,EAAE;IACFC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;AACLC,IAAAA,IAAI,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA,CAAA,CAAA;EAEP,oBACCC,KAAA,CAAAC,aAAA,CAACC,IAAI,CAACC,OAA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