@plusscommunities/pluss-feature-builder-web 1.1.0-beta.1 → 1.1.0-beta.3
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/index.js +32 -33
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { withRouter } from 'react-router';
|
|
|
4
4
|
import { Button as Button$5, HubSidebar as HubSidebar$1, Text as Text$c, GenericInput as GenericInput$1, Popup as Popup$4, Header, ImageInput as ImageInput$1, FileInput, OverlayPage, OverlayPageContents, OverlayPageSection, OverlayPageBottomButtons } from '@plusscommunities/pluss-core-web/components';
|
|
5
5
|
import * as PlussCore from '@plusscommunities/pluss-core-web';
|
|
6
6
|
import { PERMISSION_CATEGORIES, IMPORTANCE_LEVELS, fileActions, Text as Text$b, ImageInput } from '@plusscommunities/pluss-core-web';
|
|
7
|
-
import { Icon as Icon$
|
|
7
|
+
import { Icon as Icon$1 } from '@plusscommunities/pluss-icons';
|
|
8
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
9
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
10
10
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -517,7 +517,7 @@ var DeleteConfirmationPopup = _ref => {
|
|
|
517
517
|
maxWidth: 500,
|
|
518
518
|
children: isDeleting && /*#__PURE__*/jsxs("div", {
|
|
519
519
|
className: modules_6216c0c0.deleteConfirmationPopup__spinnerContainer,
|
|
520
|
-
children: [/*#__PURE__*/jsx(Icon$
|
|
520
|
+
children: [/*#__PURE__*/jsx(Icon$1, {
|
|
521
521
|
icon: "fa-spinner",
|
|
522
522
|
spin: true
|
|
523
523
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -723,7 +723,7 @@ function LoadingState(_ref) {
|
|
|
723
723
|
} = _ref;
|
|
724
724
|
return /*#__PURE__*/jsxs("div", {
|
|
725
725
|
className: modules_9562ac81.loadingState,
|
|
726
|
-
children: [/*#__PURE__*/jsx(Icon$
|
|
726
|
+
children: [/*#__PURE__*/jsx(Icon$1, {
|
|
727
727
|
style: {
|
|
728
728
|
fontSize: size,
|
|
729
729
|
color: "var(--colour-branding-main, #4a57b7)"
|
|
@@ -11649,7 +11649,7 @@ var IconLoader = _ref => {
|
|
|
11649
11649
|
className: modules_0e548f29.iconLoader__image
|
|
11650
11650
|
}) : /*#__PURE__*/jsx("div", {
|
|
11651
11651
|
className: modules_0e548f29.iconLoader__iconContainer,
|
|
11652
|
-
children: iconComponent ? /*#__PURE__*/jsx(Icon$
|
|
11652
|
+
children: iconComponent ? /*#__PURE__*/jsx(Icon$1, {
|
|
11653
11653
|
icon: iconComponent,
|
|
11654
11654
|
className: "".concat(modules_0e548f29.iconLoader__icon, " ").concat(modules_0e548f29.iconLoader__iconLarge)
|
|
11655
11655
|
}) : /*#__PURE__*/jsx("div", {
|
|
@@ -11853,7 +11853,7 @@ var {
|
|
|
11853
11853
|
Components: Components$6
|
|
11854
11854
|
} = PlussCore;
|
|
11855
11855
|
var {
|
|
11856
|
-
Icon
|
|
11856
|
+
Icon
|
|
11857
11857
|
} = Components$6;
|
|
11858
11858
|
var ErrorMessage = _ref => {
|
|
11859
11859
|
var {
|
|
@@ -11892,7 +11892,7 @@ var ErrorMessage = _ref => {
|
|
|
11892
11892
|
className: modules_086caee6.content,
|
|
11893
11893
|
children: [showIcon && /*#__PURE__*/jsx("span", {
|
|
11894
11894
|
className: modules_086caee6.icon,
|
|
11895
|
-
children: /*#__PURE__*/jsx(Icon
|
|
11895
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
11896
11896
|
icon: getIcon()
|
|
11897
11897
|
})
|
|
11898
11898
|
}), /*#__PURE__*/jsx("span", {
|
|
@@ -11904,7 +11904,7 @@ var ErrorMessage = _ref => {
|
|
|
11904
11904
|
className: modules_086caee6.close,
|
|
11905
11905
|
onClick: onClose,
|
|
11906
11906
|
"aria-label": "Dismiss error",
|
|
11907
|
-
children: /*#__PURE__*/jsx(Icon
|
|
11907
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
11908
11908
|
icon: "xmark"
|
|
11909
11909
|
})
|
|
11910
11910
|
})]
|
|
@@ -12300,13 +12300,13 @@ var ToastContainer = _ref => {
|
|
|
12300
12300
|
"aria-atomic": "true",
|
|
12301
12301
|
children: [/*#__PURE__*/jsxs("span", {
|
|
12302
12302
|
className: modules_604fa0d2.toastIcon,
|
|
12303
|
-
children: [toast.type === "success" && /*#__PURE__*/jsx(Icon$
|
|
12303
|
+
children: [toast.type === "success" && /*#__PURE__*/jsx(Icon$1, {
|
|
12304
12304
|
icon: "fa-circle-check",
|
|
12305
12305
|
className: modules_604fa0d2.successIcon
|
|
12306
|
-
}), toast.type === "error" && /*#__PURE__*/jsx(Icon$
|
|
12306
|
+
}), toast.type === "error" && /*#__PURE__*/jsx(Icon$1, {
|
|
12307
12307
|
icon: "fa-circle-xmark",
|
|
12308
12308
|
className: modules_604fa0d2.errorIcon
|
|
12309
|
-
}), toast.type === "warning" && /*#__PURE__*/jsx(Icon$
|
|
12309
|
+
}), toast.type === "warning" && /*#__PURE__*/jsx(Icon$1, {
|
|
12310
12310
|
icon: "fa-triangle-exclamation",
|
|
12311
12311
|
className: modules_604fa0d2.warningIcon
|
|
12312
12312
|
})]
|
|
@@ -12317,7 +12317,7 @@ var ToastContainer = _ref => {
|
|
|
12317
12317
|
className: modules_604fa0d2.toastDismiss,
|
|
12318
12318
|
onClick: () => onDismiss(toast.id),
|
|
12319
12319
|
"aria-label": "Dismiss notification",
|
|
12320
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
12320
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
12321
12321
|
icon: "fa-xmark"
|
|
12322
12322
|
})
|
|
12323
12323
|
})]
|
|
@@ -12442,7 +12442,7 @@ var ListingGalleryInput = _ref => {
|
|
|
12442
12442
|
className: modules_2b7292f7.listingField__header,
|
|
12443
12443
|
children: [/*#__PURE__*/jsx("div", {
|
|
12444
12444
|
className: modules_2b7292f7.listingField__icon,
|
|
12445
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
12445
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
12446
12446
|
icon: "image"
|
|
12447
12447
|
})
|
|
12448
12448
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -12508,7 +12508,7 @@ var ListingGalleryInput = _ref => {
|
|
|
12508
12508
|
type: "button",
|
|
12509
12509
|
onClick: () => removeImage(index),
|
|
12510
12510
|
className: modules_2a7847a1.removeImageButton,
|
|
12511
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
12511
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
12512
12512
|
icon: "circle-minus"
|
|
12513
12513
|
})
|
|
12514
12514
|
})]
|
|
@@ -13440,8 +13440,7 @@ var modules_0813ced7 = {"iconSelector":"IconSelector_module_iconSelector__df9656
|
|
|
13440
13440
|
n(css$b,{});
|
|
13441
13441
|
|
|
13442
13442
|
var {
|
|
13443
|
-
Text: Text$7
|
|
13444
|
-
Icon
|
|
13443
|
+
Text: Text$7
|
|
13445
13444
|
} = PlussCore.Components;
|
|
13446
13445
|
var IconSelector = _ref => {
|
|
13447
13446
|
var {
|
|
@@ -13485,7 +13484,7 @@ var IconSelector = _ref => {
|
|
|
13485
13484
|
})]
|
|
13486
13485
|
}), /*#__PURE__*/jsx("div", {
|
|
13487
13486
|
className: modules_0813ced7.currentSelectionDisplay,
|
|
13488
|
-
children: /*#__PURE__*/jsx(Icon, {
|
|
13487
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
13489
13488
|
iconName: currentIcon,
|
|
13490
13489
|
className: modules_0813ced7.selectedIcon
|
|
13491
13490
|
})
|
|
@@ -13505,7 +13504,7 @@ var IconSelector = _ref => {
|
|
|
13505
13504
|
"aria-pressed": isSelected,
|
|
13506
13505
|
"aria-label": "Select ".concat(icon, " icon").concat(isSelected ? ", currently selected" : ""),
|
|
13507
13506
|
"aria-describedby": showError && stepErrors && stepErrors.icon ? "icon-error" : undefined,
|
|
13508
|
-
children: /*#__PURE__*/jsx(Icon, {
|
|
13507
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
13509
13508
|
iconName: icon,
|
|
13510
13509
|
size: "lg"
|
|
13511
13510
|
})
|
|
@@ -13557,7 +13556,7 @@ var ActivityCardExample = _ref => {
|
|
|
13557
13556
|
className: modules_940cdd05.activityCard,
|
|
13558
13557
|
children: [/*#__PURE__*/jsx("div", {
|
|
13559
13558
|
className: modules_940cdd05.profilePic,
|
|
13560
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
13559
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
13561
13560
|
icon: "circle-user",
|
|
13562
13561
|
className: modules_940cdd05.avatarIcon
|
|
13563
13562
|
})
|
|
@@ -13577,7 +13576,7 @@ var ActivityCardExample = _ref => {
|
|
|
13577
13576
|
})]
|
|
13578
13577
|
}), /*#__PURE__*/jsxs("div", {
|
|
13579
13578
|
className: modules_940cdd05.activityTime,
|
|
13580
|
-
children: [/*#__PURE__*/jsx(Icon$
|
|
13579
|
+
children: [/*#__PURE__*/jsx(Icon$1, {
|
|
13581
13580
|
icon: "clock",
|
|
13582
13581
|
className: modules_940cdd05.timeIcon
|
|
13583
13582
|
}), " 2 minutes ago"]
|
|
@@ -13945,7 +13944,7 @@ var Field = props => {
|
|
|
13945
13944
|
className: modules_eca69fd0.changeTypeButton,
|
|
13946
13945
|
onClick: () => props.onReplaceField && props.onReplaceField(),
|
|
13947
13946
|
label: "Change Type",
|
|
13948
|
-
children: [/*#__PURE__*/jsx(Icon$
|
|
13947
|
+
children: [/*#__PURE__*/jsx(Icon$1, {
|
|
13949
13948
|
icon: "repeat"
|
|
13950
13949
|
}), /*#__PURE__*/jsx("span", {
|
|
13951
13950
|
className: modules_eca69fd0.buttonLabel,
|
|
@@ -13959,7 +13958,7 @@ var Field = props => {
|
|
|
13959
13958
|
className: modules_eca69fd0.deleteButton,
|
|
13960
13959
|
onClick: props.handleDelete,
|
|
13961
13960
|
label: "Remove Field",
|
|
13962
|
-
children: [/*#__PURE__*/jsx(Icon$
|
|
13961
|
+
children: [/*#__PURE__*/jsx(Icon$1, {
|
|
13963
13962
|
icon: "trash"
|
|
13964
13963
|
}), /*#__PURE__*/jsx("span", {
|
|
13965
13964
|
className: modules_eca69fd0.buttonLabel,
|
|
@@ -13998,7 +13997,7 @@ var PadlockIcon = () => {
|
|
|
13998
13997
|
var icon = "fa-lock";
|
|
13999
13998
|
return /*#__PURE__*/jsx("span", {
|
|
14000
13999
|
className: modules_eca69fd0.padlockIcon,
|
|
14001
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
14000
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
14002
14001
|
icon: icon
|
|
14003
14002
|
})
|
|
14004
14003
|
});
|
|
@@ -14784,7 +14783,7 @@ var FormFieldsStepInner = props => {
|
|
|
14784
14783
|
children: /*#__PURE__*/jsxs(Text$c, {
|
|
14785
14784
|
type: "formTitleSmall",
|
|
14786
14785
|
className: modules_cd65a764.helpText,
|
|
14787
|
-
children: [/*#__PURE__*/jsx(Icon$
|
|
14786
|
+
children: [/*#__PURE__*/jsx(Icon$1, {
|
|
14788
14787
|
icon: "circle-info"
|
|
14789
14788
|
}), " Add fields to the template.", /*#__PURE__*/jsx("br", {}), "These fields determine layout for every", " ", formDisplayName || "Feature", " visible to residents."]
|
|
14790
14789
|
})
|
|
@@ -14845,7 +14844,7 @@ var FieldTypeIcon = _ref => {
|
|
|
14845
14844
|
} = _ref;
|
|
14846
14845
|
return /*#__PURE__*/jsx("span", {
|
|
14847
14846
|
className: modules_cd65a764.fieldTypeCardIcon,
|
|
14848
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
14847
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
14849
14848
|
icon: iconName
|
|
14850
14849
|
})
|
|
14851
14850
|
});
|
|
@@ -16617,14 +16616,14 @@ var ListingScreen = props => {
|
|
|
16617
16616
|
onClick: () => handleEditClick(listing),
|
|
16618
16617
|
className: modules_4803e8a0.actionIcon,
|
|
16619
16618
|
title: "Edit",
|
|
16620
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
16619
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
16621
16620
|
icon: "pen"
|
|
16622
16621
|
})
|
|
16623
16622
|
}), !isDeleted && /*#__PURE__*/jsx("span", {
|
|
16624
16623
|
onClick: () => handleDeleteClick(listing),
|
|
16625
16624
|
className: modules_4803e8a0.actionIcon,
|
|
16626
16625
|
title: "Delete",
|
|
16627
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
16626
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
16628
16627
|
icon: "trash"
|
|
16629
16628
|
})
|
|
16630
16629
|
}), isDeleted && /*#__PURE__*/jsx(Button$3, {
|
|
@@ -16856,7 +16855,7 @@ var ListingTextInput = _ref => {
|
|
|
16856
16855
|
className: modules_2b7292f7.listingField__header,
|
|
16857
16856
|
children: [/*#__PURE__*/jsx("div", {
|
|
16858
16857
|
className: modules_2b7292f7.listingField__icon,
|
|
16859
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
16858
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
16860
16859
|
icon: "fa-pen"
|
|
16861
16860
|
})
|
|
16862
16861
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -16926,7 +16925,7 @@ var ListingDescriptionInput = _ref => {
|
|
|
16926
16925
|
className: modules_2b7292f7.listingField__header,
|
|
16927
16926
|
children: [/*#__PURE__*/jsx("div", {
|
|
16928
16927
|
className: modules_2b7292f7.listingField__icon,
|
|
16929
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
16928
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
16930
16929
|
icon: "align-left"
|
|
16931
16930
|
})
|
|
16932
16931
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -17025,7 +17024,7 @@ var ListingImageInput = _ref => {
|
|
|
17025
17024
|
className: modules_2b7292f7.listingField__header,
|
|
17026
17025
|
children: [/*#__PURE__*/jsx("div", {
|
|
17027
17026
|
className: modules_2b7292f7.listingField__icon,
|
|
17028
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
17027
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
17029
17028
|
icon: "image"
|
|
17030
17029
|
})
|
|
17031
17030
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -17146,7 +17145,7 @@ var ListingCTAInput = _ref => {
|
|
|
17146
17145
|
className: modules_2b7292f7.listingField__header,
|
|
17147
17146
|
children: [/*#__PURE__*/jsx("div", {
|
|
17148
17147
|
className: modules_2b7292f7.listingField__icon,
|
|
17149
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
17148
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
17150
17149
|
icon: "fa-link"
|
|
17151
17150
|
})
|
|
17152
17151
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -17236,7 +17235,7 @@ var FileListItem = _ref => {
|
|
|
17236
17235
|
className: modules_4fb4144d.fileListItem,
|
|
17237
17236
|
children: [/*#__PURE__*/jsx("div", {
|
|
17238
17237
|
className: modules_4fb4144d.fileListItem__icon,
|
|
17239
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
17238
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
17240
17239
|
icon: getFileIcon(file.originalName)
|
|
17241
17240
|
})
|
|
17242
17241
|
}), /*#__PURE__*/jsx("div", {
|
|
@@ -17261,7 +17260,7 @@ var FileListItem = _ref => {
|
|
|
17261
17260
|
onClick: handleRemove,
|
|
17262
17261
|
disabled: disabled,
|
|
17263
17262
|
className: modules_4fb4144d.fileListItem__removeButton,
|
|
17264
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
17263
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
17265
17264
|
icon: "circle-minus"
|
|
17266
17265
|
})
|
|
17267
17266
|
})
|
|
@@ -17452,7 +17451,7 @@ var ListingFileInput = _ref => {
|
|
|
17452
17451
|
className: modules_2b7292f7.listingField__header,
|
|
17453
17452
|
children: [/*#__PURE__*/jsx("div", {
|
|
17454
17453
|
className: modules_2b7292f7.listingField__icon,
|
|
17455
|
-
children: /*#__PURE__*/jsx(Icon$
|
|
17454
|
+
children: /*#__PURE__*/jsx(Icon$1, {
|
|
17456
17455
|
icon: "fa-file-text"
|
|
17457
17456
|
})
|
|
17458
17457
|
}), /*#__PURE__*/jsxs("div", {
|