frst-components 0.22.78 → 0.22.80

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.d.ts CHANGED
@@ -8,6 +8,7 @@ export { default as CalendarCard } from './src/components/calendar';
8
8
  export { default as BannerProblem } from './src/components/cardLT/BannerProblem';
9
9
  export { default as MessageBox } from './src/components/cardLT/MessageBox';
10
10
  export { Toast } from './src/components/DS/toast';
11
+ export { HypothesisComponent } from './src/components/hypothesisComponent';
11
12
  export { default as Button } from './src/components/buttons';
12
13
  export { default as ButtonGroup } from './src/components/EBR/buttons-group';
13
14
  export { default as TextField } from './src/components/form-elements/textfield';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,eAAe,EACf,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,WAAW,EACX,WAAW,EACX,OAAO,EACP,OAAO,EACP,OAAO,EACP,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,KAAK,EACL,OAAO,EACP,SAAS,EACT,WAAW,EACX,aAAa,EACb,MAAM,EACN,SAAS,EACT,YAAY,EACZ,eAAe,EACf,WAAW,EACX,QAAQ,EACR,IAAI,EACL,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,WAA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4B,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gCAAgC,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kCAAkC,CAAA;AACzE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,sCAAsC,CAAA;AAEvE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAE7E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yCAAyC,CAAA;AACtF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAC1F,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,0CAA0C,CAAA"}
package/dist/index.js CHANGED
@@ -1540,7 +1540,7 @@ styled__default["default"](MenuItem__default["default"]) `
1540
1540
  }
1541
1541
  `;
1542
1542
 
1543
- const Container$l = styled__default["default"](Card__default["default"]) `
1543
+ const Container$m = styled__default["default"](Card__default["default"]) `
1544
1544
  height: 100%;
1545
1545
  box-shadow: none !important;
1546
1546
  border: 1px solid #c4c4c4 !important;
@@ -1548,7 +1548,7 @@ const Container$l = styled__default["default"](Card__default["default"]) `
1548
1548
  border-radius: 8px !important;
1549
1549
  padding: 24px !important;
1550
1550
  `;
1551
- const Title$6 = styled__default["default"].span `
1551
+ const Title$7 = styled__default["default"].span `
1552
1552
  font-size: 20px !important;
1553
1553
  color: #ff4d0d !important;
1554
1554
  `;
@@ -1746,9 +1746,9 @@ function CalendarCard(props) {
1746
1746
  }
1747
1747
  }, [props.trails]);
1748
1748
  return (jsxRuntime.jsx("div", { style: { height: '100%' }, children: props.loading ?
1749
- jsxRuntime.jsx(Container$l, { className: 'shimmer' })
1749
+ jsxRuntime.jsx(Container$m, { className: 'shimmer' })
1750
1750
  :
1751
- jsxRuntime.jsx(Container$l, { children: jsxRuntime.jsxs(material.CardContent, { style: { padding: '0px' }, children: [jsxRuntime.jsx(Title$6, { children: t('calendar.title') }), moduleSelector &&
1751
+ jsxRuntime.jsx(Container$m, { children: jsxRuntime.jsxs(material.CardContent, { style: { padding: '0px' }, children: [jsxRuntime.jsx(Title$7, { children: t('calendar.title') }), moduleSelector &&
1752
1752
  jsxRuntime.jsxs(ContainerDescription, { children: [jsxRuntime.jsx(TextDescription$1, { children: t('calendar.card.description') }), jsxRuntime.jsx(FormControlSelect, { fullWidth: true, children: jsxRuntime.jsx(DropDownList$2, { id: "module-id", value: module, onChange: handleChange, children: props.trails?.map((item, index) => {
1753
1753
  return jsxRuntime.jsxs(material.MenuItem, { value: index, children: [item.name, " - ", item.moduleID] }, index);
1754
1754
  }) }) })] }), moduleEvents?.length === 0 &&
@@ -2979,6 +2979,14 @@ const CircledAlert = ({ fill = '#F18624', width = '22', height = '22' }) => {
2979
2979
  return (jsxRuntime.jsxs("svg", { width: width, height: height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsxRuntime.jsx("rect", { width: width, height: height, rx: "11", fill: fill }), jsxRuntime.jsx("path", { d: "M9.952 9H11.772V16H9.952V9ZM9.686 7.026C9.686 6.75533 9.784 6.52667 9.98 6.34C10.1853 6.144 10.4653 6.046 10.82 6.046C11.1747 6.046 11.4593 6.144 11.674 6.34C11.898 6.52667 12.01 6.75533 12.01 7.026C12.01 7.29667 11.898 7.52533 11.674 7.712C11.4593 7.88933 11.1747 7.978 10.82 7.978C10.4653 7.978 10.1853 7.88933 9.98 7.712C9.784 7.52533 9.686 7.29667 9.686 7.026Z", fill: "#F8FAFC" })] }));
2980
2980
  };
2981
2981
 
2982
+ const VoteIcon = ({ style, width = '16', height = '17', stroke = '#444444' }) => {
2983
+ return (jsxRuntime.jsxs("svg", { style: style, width: width, height: height, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsxRuntime.jsxs("g", { clipPath: "url(#clip0_2067_11382)", children: [jsxRuntime.jsx("path", { d: "M7.9987 14.9192C11.6806 14.9192 14.6654 11.9345 14.6654 8.25257C14.6654 4.57068 11.6806 1.58591 7.9987 1.58591C4.3168 1.58591 1.33203 4.57068 1.33203 8.25257C1.33203 11.9345 4.3168 14.9192 7.9987 14.9192Z", stroke: stroke, strokeWidth: "1.2", strokeLinecap: "round", strokeLinejoin: "round" }), jsxRuntime.jsx("path", { d: "M11 8.25256L8 5.25256L5 8.25256", stroke: stroke, strokeWidth: "1.2", strokeLinecap: "round", strokeLinejoin: "round" }), jsxRuntime.jsx("path", { d: "M8 11.2526V5.25256", stroke: stroke, strokeWidth: "1.2", strokeLinecap: "round", strokeLinejoin: "round" })] }), jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", { id: "clip0_2067_11382", children: jsxRuntime.jsx("rect", { width: "16", height: "16", fill: "white", transform: "translate(0 0.252563)" }) }) })] }));
2984
+ };
2985
+
2986
+ const ExcludeVoteIcon = ({ style, width = '16', height = '17', stroke = '#444444', onMouseOver }) => {
2987
+ return (jsxRuntime.jsxs("svg", { onMouseOver: onMouseOver, style: style, width: width, height: height, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsxRuntime.jsx("path", { d: "M8.00065 14.9381C11.6825 14.9381 14.6673 11.9533 14.6673 8.2714C14.6673 4.5895 11.6825 1.60474 8.00065 1.60474C4.31875 1.60474 1.33398 4.5895 1.33398 8.2714C1.33398 11.9533 4.31875 14.9381 8.00065 14.9381Z", stroke: stroke, "stroke-width": "1.2", "stroke-linecap": "round", "stroke-linejoin": "round" }), jsxRuntime.jsx("path", { d: "M10.6673 5.60474L5.33398 10.9381", stroke: stroke, "stroke-width": "1.2", "stroke-linecap": "round", "stroke-linejoin": "round" }), jsxRuntime.jsx("path", { d: "M5.33398 5.60474L10.6673 10.9381", stroke: stroke, "stroke-width": "1.2", "stroke-linecap": "round", "stroke-linejoin": "round" })] }));
2988
+ };
2989
+
2982
2990
  const fadeInRight = styled.keyframes `
2983
2991
  0% {
2984
2992
  opacity: 0;
@@ -3069,6 +3077,240 @@ const Toast = ({ type = 'success', message, onClose, showBySeconds = 5, styles }
3069
3077
  return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(ToastWrapper, { visible: isToastOpen, style: { ...styles }, children: [jsxRuntime.jsx(Icon, { children: iconComponent }), jsxRuntime.jsx(Text$3, { children: message }), jsxRuntime.jsx(CloseButton$1, { onClick: onClose, children: jsxRuntime.jsx(CloseIcon, { width: '14', height: '14' }) })] }) }));
3070
3078
  };
3071
3079
 
3080
+ const MainContainer = styled__default["default"].div `
3081
+ display: flex;
3082
+ align-items: center;
3083
+ justify-content: space-between;
3084
+ width:100%;
3085
+ `;
3086
+ const Container$l = styled__default["default"].div `
3087
+ width: 100%;
3088
+ display: flex;
3089
+ align-items: center;
3090
+ justify-content: space-between;
3091
+ font-family: PT Sans;
3092
+ font-size:14px;
3093
+ border-radius:8px;
3094
+ padding: 0 0 0 16px;
3095
+ height: 100%;
3096
+ min-height: 52px;
3097
+
3098
+ ${({ type }) => type === 'prioritize' && styled.css `
3099
+ background: #FDAE15;
3100
+ `}
3101
+ ${({ type }) => type === 'raised' && styled.css `
3102
+ background: #F8D784;
3103
+
3104
+ `}
3105
+ ${({ type }) => type === 'suggested' && styled.css `
3106
+ background: #CDDAEF;
3107
+ `}
3108
+ `;
3109
+ const Title$6 = styled__default["default"].span `
3110
+ font-weight:700;
3111
+ white-space: nowrap;
3112
+ `;
3113
+ styled__default["default"].span `
3114
+ font-weight:700;
3115
+ `;
3116
+ const Separator = styled__default["default"].div `
3117
+ font-weight:bold;
3118
+ margin: 0 8px;
3119
+ `;
3120
+ const Description$3 = styled__default["default"].span `
3121
+ font-weight:400;
3122
+ padding: 8px 0 8px;
3123
+
3124
+ `;
3125
+ const SplitContainer = styled__default["default"].div `
3126
+ display:flex;
3127
+ justify-content: flex-start;
3128
+ align-items:center;
3129
+ height: ${({ height }) => height ? `${height}px` : '100%'};
3130
+ `;
3131
+ const VoteMainContainer = styled__default["default"].div `
3132
+ display: flex;
3133
+ align-items: center;
3134
+ justify-content: flex-start;
3135
+ cursor: pointer;
3136
+ height: ${({ height }) => height ? `${height}px` : '100%'};
3137
+ width: 100%;
3138
+ `;
3139
+ styled__default["default"].div `
3140
+ display: flex;
3141
+ align-items: center;
3142
+ justify-content: flex-start;
3143
+ position: relative;
3144
+ `;
3145
+ styled__default["default"].div `
3146
+ position: absolute;
3147
+ `;
3148
+ const VoteButtonContainer = styled__default["default"].span `
3149
+ display: flex;
3150
+ align-items: center;
3151
+ justify-content: flex-end;
3152
+ width: 100%;
3153
+ background: #F9CD5E;
3154
+
3155
+ ${({ type }) => type === 'prioritize' && styled.css `
3156
+ background: #DC9100;
3157
+ `}
3158
+ ${({ type }) => type === 'raised' && styled.css `
3159
+ background: #F9CD5E;
3160
+
3161
+ `}
3162
+ ${({ type }) => type === 'suggested' && styled.css `
3163
+ background: #A5C3F2;
3164
+ `}
3165
+ border-radius:0 8px 8px 0;
3166
+ padding: 0 16px 0 16px;
3167
+ height: 100%;
3168
+ min-height: 52px;
3169
+ margin-left: 4px;
3170
+
3171
+ `;
3172
+ const VoteCount = styled__default["default"].span `
3173
+ display: flex;
3174
+ align-items: center;
3175
+ height: 100%;
3176
+ gap: 4px;
3177
+ white-space: nowrap;
3178
+ width: auto;
3179
+ `;
3180
+ const VoteButton = styled__default["default"].p `
3181
+ display: flex;
3182
+ align-items: center;
3183
+ cursor: pointer;
3184
+ height:100%;
3185
+ width: 100%;
3186
+ font-family: PT Sans;
3187
+ font-size: 14px;
3188
+ font-weight: 700;
3189
+ line-height: 18.12px;
3190
+ text-align: left;
3191
+ color: #444444;
3192
+ white-space: nowrap;
3193
+ width: auto;
3194
+ `;
3195
+ const VoteContent = styled__default["default"].div `
3196
+ display: flex;
3197
+ div{
3198
+ flex-direction: row-reverse;
3199
+ display: flex;
3200
+ :nth-child(1n){
3201
+ margin-left: -8px;
3202
+ }
3203
+ }
3204
+ `;
3205
+ const ImageContent$1 = styled__default["default"].div `
3206
+ display: flex;
3207
+ align-items: center;
3208
+ justify-content: center;
3209
+ width:32px;
3210
+ height: 32px;
3211
+ border-radius: 50%;
3212
+ overflow: hidden;
3213
+ border: solid 2.5px #fff;
3214
+ color: #FFFFFF;
3215
+ img{
3216
+ width: 100%;
3217
+ height: 100%;
3218
+ object-fit: cover;
3219
+ }
3220
+ `;
3221
+ const VoteListContainer = styled__default["default"].div `
3222
+ position: absolute;
3223
+ top: calc(100% + 1px);
3224
+ right: 0;
3225
+ width: 225px;
3226
+ max-height: 300px;
3227
+ overflow-y: auto;
3228
+ padding: 5px 0px;
3229
+ background-color: #fff;
3230
+ border: 1px solid #ccc;
3231
+ border-radius: 8px;
3232
+ z-index: 1999;
3233
+ display: ${({ showVotes }) => showVotes ? 'block' : 'none'};
3234
+ &::-webkit-scrollbar {
3235
+ display: none;
3236
+ }
3237
+ box-shadow: 0px 15px 20px 0px #22222226;
3238
+ `;
3239
+ const VoteListItem = styled__default["default"].div `
3240
+ cursor: pointer;
3241
+ height: 36px;
3242
+ display: flex;
3243
+ align-items: center;
3244
+ gap: 10px;
3245
+ ${({ lastVote }) => lastVote === false && "border-bottom: solid 1px #ccc;"}
3246
+ `;
3247
+
3248
+ const HypothesisComponent = ({ description, type, id, title, votes = [], onVote, canVote = false, canViewVote = false, userLoggedId, deleteVote, canViewListVotes, votesSingularText, votesPluralText, voteText, deleteVoteText, handleViewProfile }) => {
3249
+ const [isHover, seIsHover] = React.useState(false);
3250
+ const [hasVote, setHasVote] = React.useState(votes?.some((vote) => vote?.user_uuid === userLoggedId));
3251
+ const [hypothesisVotes, setHypothesisVotes] = React.useState(votes);
3252
+ const [showVotesList, setShowVotesList] = React.useState(false);
3253
+ const toggleVotes = () => {
3254
+ setShowVotesList(!showVotesList);
3255
+ };
3256
+ const viewVotesRef = React.useRef(null);
3257
+ const handleClickOutsideVote = (event) => {
3258
+ if (viewVotesRef?.current && !viewVotesRef?.current?.contains(event?.target)) {
3259
+ setShowVotesList(false);
3260
+ }
3261
+ };
3262
+ React.useEffect(() => {
3263
+ document.addEventListener('mousedown', handleClickOutsideVote);
3264
+ return () => {
3265
+ document.removeEventListener('mousedown', handleClickOutsideVote);
3266
+ };
3267
+ }, [setShowVotesList]);
3268
+ const handleVote = async (hyphoteseId) => {
3269
+ const vote = await onVote(hyphoteseId);
3270
+ if (vote?.status === 201) {
3271
+ let updateVotes = hypothesisVotes;
3272
+ if (!updateVotes.some((vot) => vot?.id === vote?.data?.id)) {
3273
+ updateVotes.push(vote.data);
3274
+ setHypothesisVotes(updateVotes);
3275
+ }
3276
+ setHasVote(true);
3277
+ }
3278
+ if (vote?.status !== 201)
3279
+ setHasVote(false);
3280
+ };
3281
+ const handleDeleteVote = async (voteId) => {
3282
+ const vote = await deleteVote(voteId);
3283
+ if (vote?.status === 204) {
3284
+ let updateVotes = hypothesisVotes;
3285
+ if (updateVotes.some((vot) => vot?.id === voteId)) {
3286
+ const newArrayVotes = updateVotes.filter((vot) => vot.id !== voteId);
3287
+ setHypothesisVotes(newArrayVotes);
3288
+ }
3289
+ setHasVote(false);
3290
+ }
3291
+ };
3292
+ return (jsxRuntime.jsx(MainContainer, { children: jsxRuntime.jsxs(Container$l, { type: type, id: id, children: [jsxRuntime.jsxs(SplitContainer, { children: [jsxRuntime.jsx(Title$6, { children: title }), jsxRuntime.jsx(Separator, { children: "|" }), jsxRuntime.jsx(Description$3, { children: description })] }), !canVote && canViewVote && hypothesisVotes.length > 0 && (jsxRuntime.jsxs("div", { style: { position: 'relative' }, children: [jsxRuntime.jsx(SplitContainer, { children: jsxRuntime.jsx(VoteMainContainer, { children: jsxRuntime.jsx(VoteButtonContainer, { ref: viewVotesRef, style: { cursor: canViewListVotes ? 'pointer' : 'default' }, type: type, onClick: canViewListVotes ? toggleVotes : null, children: jsxRuntime.jsxs(VoteCount, { children: [jsxRuntime.jsxs(VoteContent, { children: [hypothesisVotes?.slice(0, 3)?.map((vote, index) => {
3293
+ return (jsxRuntime.jsx(ImageContent$1, { style: { zIndex: 14 - index }, children: jsxRuntime.jsx("img", { src: vote?.user?.avatar || 'https://cdn-images.frstfalconi.cloud/path582.svg' }) }, vote?.id));
3294
+ }), hypothesisVotes.length > 3 && (jsxRuntime.jsx(ImageContent$1, { style: { background: '#444444' }, children: jsxRuntime.jsxs("p", { style: {
3295
+ fontSize: hypothesisVotes?.length > 9 ? 10 : hypothesisVotes?.length > 99 ? 8 : 14
3296
+ }, children: ["+", hypothesisVotes?.length - 3] }) }))] }), hypothesisVotes?.length, " ", hypothesisVotes?.length > 1 ? votesPluralText : votesSingularText] }) }) }) }), jsxRuntime.jsx(VoteList, { hypothesisVotes: votes, showVotes: showVotesList, viewProfile: handleViewProfile })] })), canVote && (jsxRuntime.jsx(SplitContainer, { children: jsxRuntime.jsx(VoteMainContainer, { children: jsxRuntime.jsx(VoteButtonContainer, { role: "button", type: type, onMouseOver: () => seIsHover(true), onMouseOut: () => seIsHover(false), children: hasVote ? (isHover ? (jsxRuntime.jsxs("div", { style: {
3297
+ display: 'flex',
3298
+ alignItems: 'center',
3299
+ gap: '4px'
3300
+ }, onClick: () => handleDeleteVote(hypothesisVotes.find((vote) => vote.user_uuid === userLoggedId).id), children: [jsxRuntime.jsx(ExcludeVoteIcon, { width: "24", height: "24" }), jsxRuntime.jsx(VoteButton, { children: deleteVoteText })] })) : (jsxRuntime.jsxs(VoteCount, { children: [jsxRuntime.jsxs(VoteContent, { children: [hypothesisVotes?.slice(0, 3)?.map((vote, index) => {
3301
+ return (jsxRuntime.jsx(ImageContent$1, { style: { zIndex: 1000 - index }, children: jsxRuntime.jsx("img", { src: vote?.user?.avatar || 'https://cdn-images.frstfalconi.cloud/path582.svg' }) }, vote?.id));
3302
+ }), hypothesisVotes.length > 3 && (jsxRuntime.jsx(ImageContent$1, { style: { background: '#444444' }, children: jsxRuntime.jsxs("p", { children: ["+", hypothesisVotes?.length - 3] }) }))] }), hypothesisVotes?.length, " ", hypothesisVotes?.length > 1 ? votesPluralText : votesSingularText] }))) : (jsxRuntime.jsxs("div", { style: {
3303
+ display: 'flex',
3304
+ alignItems: 'center',
3305
+ justifyContent: 'space-around',
3306
+ paddingLeft: '4px',
3307
+ height: '100%'
3308
+ }, onClick: () => handleVote(id), children: [jsxRuntime.jsx(VoteIcon, { width: "24", height: "24", style: { marginLeft: '4px', marginRight: '4px' } }), jsxRuntime.jsx(VoteButton, { children: voteText })] })) }) }) }))] }) }));
3309
+ };
3310
+ const VoteList = ({ hypothesisVotes, showVotes, viewProfile }) => {
3311
+ return (jsxRuntime.jsx(VoteListContainer, { showVotes: showVotes, children: hypothesisVotes?.map((vote, index) => (jsxRuntime.jsxs(VoteListItem, { lastVote: hypothesisVotes?.length === index + 1, onClick: () => viewProfile(vote?.user?.uuid), children: [jsxRuntime.jsx(Avatar, { src: vote?.user?.avatar, size: '24px', alt: vote?.user?.name, style: { marginLeft: '6px', cursor: 'pointer' } }), jsxRuntime.jsx("p", { children: vote?.user?.name })] }, vote?.id))) }));
3312
+ };
3313
+
3072
3314
  const ButtonGroupWrapper = styled__default["default"].div `
3073
3315
  display: flex;
3074
3316
  flex-direction: row;
@@ -20336,6 +20578,7 @@ exports.HeaderImprovementIdea = HeaderImprovementIdea;
20336
20578
  exports.HeaderUser = HeaderUser;
20337
20579
  exports.HomeFilledIcon = HomeFilledIcon;
20338
20580
  exports.HomeLineIcon = HomeLineIcon;
20581
+ exports.HypothesisComponent = HypothesisComponent;
20339
20582
  exports.IconContent = IconContent;
20340
20583
  exports.IconNotification = IconNotification;
20341
20584
  exports.IcrementarIdeia = IcrementarIdeia;
@@ -0,0 +1,9 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare const ExcludeVoteIcon: ({ style, width, height, stroke, onMouseOver }: {
3
+ style?: CSSProperties | undefined;
4
+ width?: string;
5
+ height?: string;
6
+ stroke?: string;
7
+ onMouseOver?: () => void;
8
+ }) => JSX.Element;
9
+ //# sourceMappingURL=ExcludeVoteIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExcludeVoteIcon.d.ts","sourceRoot":"","sources":["../../../public/customIcons/ExcludeVoteIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,eAAO,MAAM,eAAe;YAOlB,aAAa,GAAG,SAAS;YACzB,MAAM;aACL,MAAM;aACN,MAAM;kBACD,MAAM,IAAI;iBAmCzB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare const VoteIcon: ({ style, width, height, stroke }: {
3
+ style?: CSSProperties | undefined;
4
+ width?: string;
5
+ height?: string;
6
+ stroke?: string;
7
+ }) => JSX.Element;
8
+ //# sourceMappingURL=VoteIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoteIcon.d.ts","sourceRoot":"","sources":["../../../public/customIcons/VoteIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,eAAO,MAAM,QAAQ;YAMX,aAAa,GAAG,SAAS;YACzB,MAAM;aACL,MAAM;aACN,MAAM;iBA4BhB,CAAA"}
@@ -2,4 +2,6 @@ export { SmallTrash } from './SmallTrash';
2
2
  export { TagAlert } from './TagAlert';
3
3
  export { CircledCheck } from './CircledCheck';
4
4
  export { CircledAlert } from './CircledAlert';
5
+ export { VoteIcon } from './VoteIcon';
6
+ export { ExcludeVoteIcon } from './ExcludeVoteIcon';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../public/customIcons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../public/customIcons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,30 @@
1
+ export declare const MainContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const Container: import("styled-components").StyledComponent<"div", any, {
3
+ type: string;
4
+ }, never>;
5
+ export declare const Title: import("styled-components").StyledComponent<"span", any, {}, never>;
6
+ export declare const Index: import("styled-components").StyledComponent<"span", any, {}, never>;
7
+ export declare const Separator: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const Description: import("styled-components").StyledComponent<"span", any, {}, never>;
9
+ export declare const SplitContainer: import("styled-components").StyledComponent<"div", any, {
10
+ height?: number;
11
+ }, never>;
12
+ export declare const VoteMainContainer: import("styled-components").StyledComponent<"div", any, {
13
+ height?: number;
14
+ }, never>;
15
+ export declare const VoteAvatarsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
16
+ export declare const VoteAvatar: import("styled-components").StyledComponent<"div", any, {}, never>;
17
+ export declare const VoteButtonContainer: import("styled-components").StyledComponent<"span", any, {
18
+ type?: string;
19
+ }, never>;
20
+ export declare const VoteCount: import("styled-components").StyledComponent<"span", any, {}, never>;
21
+ export declare const VoteButton: import("styled-components").StyledComponent<"p", any, {}, never>;
22
+ export declare const VoteContent: import("styled-components").StyledComponent<"div", any, {}, never>;
23
+ export declare const ImageContent: import("styled-components").StyledComponent<"div", any, {}, never>;
24
+ export declare const VoteListContainer: import("styled-components").StyledComponent<"div", any, {
25
+ showVotes?: boolean;
26
+ }, never>;
27
+ export declare const VoteListItem: import("styled-components").StyledComponent<"div", any, {
28
+ lastVote?: boolean;
29
+ }, never>;
30
+ //# sourceMappingURL=hypothesisComponent.style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hypothesisComponent.style.d.ts","sourceRoot":"","sources":["../../../../src/components/hypothesisComponent/hypothesisComponent.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,oEAKzB,CAAA;AACD,eAAO,MAAM,SAAS;UAAsB,MAAM;SAsBjD,CAAC;AAEF,eAAO,MAAM,KAAK,qEAGjB,CAAC;AAEF,eAAO,MAAM,KAAK,qEAEjB,CAAC;AAEF,eAAO,MAAM,SAAS,oEAGrB,CAAC;AAEF,eAAO,MAAM,WAAW,qEAIvB,CAAC;AACF,eAAO,MAAM,cAAc;aAAyB,MAAM;SAKzD,CAAA;AACD,eAAO,MAAM,iBAAiB;aAAyB,MAAM;SAO5D,CAAA;AACD,eAAO,MAAM,oBAAoB,oEAKhC,CAAA;AAED,eAAO,MAAM,UAAU,oEAEtB,CAAA;AAED,eAAO,MAAM,mBAAmB;WAAwB,MAAM;SAuB7D,CAAA;AACD,eAAO,MAAM,SAAS,qEAOrB,CAAA;AACD,eAAO,MAAM,UAAU,kEActB,CAAA;AACD,eAAO,MAAM,WAAW,oEASvB,CAAA;AACD,eAAO,MAAM,YAAY,oEAexB,CAAA;AAED,eAAO,MAAM,iBAAiB;gBAA4B,OAAO;SAiBhE,CAAA;AAED,eAAO,MAAM,YAAY;eAA2B,OAAO;SAO1D,CAAA"}
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { Vote } from './types';
3
+ export declare const HypothesisComponent: ({ description, type, id, title, votes, onVote, canVote, canViewVote, userLoggedId, deleteVote, canViewListVotes, votesSingularText, votesPluralText, voteText, deleteVoteText, handleViewProfile }: {
4
+ description: string;
5
+ type: string;
6
+ id: string;
7
+ title: string;
8
+ votes: Vote[];
9
+ userLoggedId: string;
10
+ onVote?: (hypothesiId: string) => any;
11
+ deleteVote?: (voteId: number) => any;
12
+ handleViewProfile?: (userId: string) => any;
13
+ canVote?: boolean;
14
+ canViewListVotes?: boolean;
15
+ canViewVote?: boolean;
16
+ votesSingularText?: string;
17
+ votesPluralText?: string;
18
+ voteText?: string;
19
+ deleteVoteText?: string;
20
+ }) => JSX.Element;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/hypothesisComponent/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAI9B,eAAO,MAAM,mBAAmB;iBAkBjB,MAAM;UACb,MAAM;QACR,MAAM;WACH,MAAM;WACN,IAAI,EAAE;kBACC,MAAM;2BACG,MAAM,KAAK,GAAG;0BACf,MAAM,KAAK,GAAG;iCACP,MAAM,KAAK,GAAG;cACjC,OAAO;uBACE,OAAO;kBACZ,OAAO;wBACD,MAAM;sBACR,MAAM;eACb,MAAM;qBACA,MAAM;iBAmKxB,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frst-components",
3
3
  "homepage": "http://FRST-Falconi.github.io/storybook.frstfalconi.com",
4
- "version": "0.22.78",
4
+ "version": "0.22.80",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -0,0 +1,50 @@
1
+ import React from 'react'
2
+ import { CSSProperties } from 'react'
3
+
4
+ export const ExcludeVoteIcon = ({
5
+ style,
6
+ width = '16',
7
+ height = '17',
8
+ stroke = '#444444',
9
+ onMouseOver
10
+ }: {
11
+ style?: CSSProperties | undefined
12
+ width?: string
13
+ height?: string
14
+ stroke?: string
15
+ onMouseOver?: () => void
16
+ }) => {
17
+ return (
18
+ <svg
19
+ onMouseOver={onMouseOver}
20
+ style={style}
21
+ width={width}
22
+ height={height}
23
+ viewBox="0 0 16 17"
24
+ fill="none"
25
+ xmlns="http://www.w3.org/2000/svg"
26
+ >
27
+ <path
28
+ d="M8.00065 14.9381C11.6825 14.9381 14.6673 11.9533 14.6673 8.2714C14.6673 4.5895 11.6825 1.60474 8.00065 1.60474C4.31875 1.60474 1.33398 4.5895 1.33398 8.2714C1.33398 11.9533 4.31875 14.9381 8.00065 14.9381Z"
29
+ stroke={stroke}
30
+ stroke-width="1.2"
31
+ stroke-linecap="round"
32
+ stroke-linejoin="round"
33
+ />
34
+ <path
35
+ d="M10.6673 5.60474L5.33398 10.9381"
36
+ stroke={stroke}
37
+ stroke-width="1.2"
38
+ stroke-linecap="round"
39
+ stroke-linejoin="round"
40
+ />
41
+ <path
42
+ d="M5.33398 5.60474L10.6673 10.9381"
43
+ stroke={stroke}
44
+ stroke-width="1.2"
45
+ stroke-linecap="round"
46
+ stroke-linejoin="round"
47
+ />
48
+ </svg>
49
+ )
50
+ }
@@ -0,0 +1,41 @@
1
+ import React from 'react'
2
+ import { CSSProperties } from 'react'
3
+
4
+ export const VoteIcon = ({
5
+ style,
6
+ width = '16',
7
+ height = '17',
8
+ stroke = '#444444'
9
+ }: {
10
+ style?: CSSProperties | undefined
11
+ width?: string
12
+ height?: string
13
+ stroke?: string
14
+ }) => {
15
+ return (
16
+ <svg style={style} width={width} height={height} viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
17
+ <g clipPath="url(#clip0_2067_11382)">
18
+ <path
19
+ d="M7.9987 14.9192C11.6806 14.9192 14.6654 11.9345 14.6654 8.25257C14.6654 4.57068 11.6806 1.58591 7.9987 1.58591C4.3168 1.58591 1.33203 4.57068 1.33203 8.25257C1.33203 11.9345 4.3168 14.9192 7.9987 14.9192Z"
20
+ stroke={stroke}
21
+ strokeWidth="1.2"
22
+ strokeLinecap="round"
23
+ strokeLinejoin="round"
24
+ />
25
+ <path
26
+ d="M11 8.25256L8 5.25256L5 8.25256"
27
+ stroke={stroke}
28
+ strokeWidth="1.2"
29
+ strokeLinecap="round"
30
+ strokeLinejoin="round"
31
+ />
32
+ <path d="M8 11.2526V5.25256" stroke={stroke} strokeWidth="1.2" strokeLinecap="round" strokeLinejoin="round" />
33
+ </g>
34
+ <defs>
35
+ <clipPath id="clip0_2067_11382">
36
+ <rect width="16" height="16" fill="white" transform="translate(0 0.252563)" />
37
+ </clipPath>
38
+ </defs>
39
+ </svg>
40
+ )
41
+ }
@@ -2,3 +2,5 @@ export { SmallTrash } from './SmallTrash';
2
2
  export { TagAlert } from './TagAlert';
3
3
  export { CircledCheck } from './CircledCheck';
4
4
  export { CircledAlert } from './CircledAlert'
5
+ export { VoteIcon } from './VoteIcon';
6
+ export { ExcludeVoteIcon } from './ExcludeVoteIcon';