@edifice.io/react 2.2.11-develop-enabling.20250704181048 → 2.2.11-develop-enabling.20250707100621
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/components/Button/Button.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.js +14 -1
- package/dist/icons.js +170 -168
- package/dist/modules/icons/components/IconNotification.d.ts +7 -0
- package/dist/modules/icons/components/IconNotification.js +12 -0
- package/dist/modules/icons/components/IconStarFavorite.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconNabook.js +3 -4
- package/dist/modules/icons/components/index.d.ts +1 -0
- package/dist/modules/modals/OnboardingModal/OnboardingModal.d.ts +7 -4
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +25 -12
- package/dist/modules/modals/OnboardingModal/index.d.ts +1 -0
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.d.ts +1 -1
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.js +2 -2
- package/package.json +6 -6
|
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { LoadingIcon, LoadingPosition } from '../Loading';
|
|
3
3
|
export type ButtonRef = HTMLButtonElement;
|
|
4
4
|
export type ButtonTypes = 'button' | 'submit' | 'reset';
|
|
5
|
-
export type ButtonColors = 'primary' | 'secondary' | 'tertiary' | 'danger';
|
|
5
|
+
export type ButtonColors = 'primary' | 'secondary' | 'tertiary' | 'danger' | 'black';
|
|
6
6
|
export type ButtonVariants = 'filled' | 'outline' | 'ghost';
|
|
7
7
|
export type ButtonSizes = 'sm' | 'md' | 'lg';
|
|
8
8
|
export interface ButtonProps extends React.ComponentPropsWithRef<'button'> {
|
|
@@ -39,7 +39,20 @@ const SearchBar = ({
|
|
|
39
39
|
};
|
|
40
40
|
return /* @__PURE__ */ jsxs(FormControl, { id: "search-bar", className: searchbar, children: [
|
|
41
41
|
isVariant && /* @__PURE__ */ jsx("div", { className: "position-absolute z-1 top-50 start-0 translate-middle-y border-0 ps-12 bg-transparent", children: /* @__PURE__ */ jsx(SvgIconSearch, {}) }),
|
|
42
|
-
/* @__PURE__ */ jsx(
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
|
+
FormControl.Input,
|
|
44
|
+
{
|
|
45
|
+
type: "search",
|
|
46
|
+
placeholder: t(placeholder),
|
|
47
|
+
size,
|
|
48
|
+
noValidationIcon: !0,
|
|
49
|
+
className: input,
|
|
50
|
+
onChange,
|
|
51
|
+
value,
|
|
52
|
+
disabled,
|
|
53
|
+
...restProps
|
|
54
|
+
}
|
|
55
|
+
),
|
|
43
56
|
isVariant && clearable && value && onChange && /* @__PURE__ */ jsx("button", { type: "button", onClick: handleClear, className: "position-absolute end-0 top-50 translate-middle-y pe-12 bg-transparent border-0", "aria-label": t("clear"), children: /* @__PURE__ */ jsx(SvgIconClose, { className: "color-gray", style: {
|
|
44
57
|
width: 12,
|
|
45
58
|
height: 12
|
package/dist/icons.js
CHANGED
|
@@ -82,90 +82,91 @@ import { default as default82 } from "./modules/icons/components/IconMic.js";
|
|
|
82
82
|
import { default as default83 } from "./modules/icons/components/IconMinus.js";
|
|
83
83
|
import { default as default84 } from "./modules/icons/components/IconMove.js";
|
|
84
84
|
import { default as default85 } from "./modules/icons/components/IconNoColors.js";
|
|
85
|
-
import { default as default86 } from "./modules/icons/components/
|
|
86
|
-
import { default as default87 } from "./modules/icons/components/
|
|
87
|
-
import { default as default88 } from "./modules/icons/components/
|
|
88
|
-
import { default as default89 } from "./modules/icons/components/
|
|
89
|
-
import { default as default90 } from "./modules/icons/components/
|
|
90
|
-
import { default as default91 } from "./modules/icons/components/
|
|
91
|
-
import { default as default92 } from "./modules/icons/components/
|
|
92
|
-
import { default as default93 } from "./modules/icons/components/
|
|
93
|
-
import { default as default94 } from "./modules/icons/components/
|
|
94
|
-
import { default as default95 } from "./modules/icons/components/
|
|
95
|
-
import { default as default96 } from "./modules/icons/components/
|
|
96
|
-
import { default as default97 } from "./modules/icons/components/
|
|
97
|
-
import { default as default98 } from "./modules/icons/components/
|
|
98
|
-
import { default as default99 } from "./modules/icons/components/
|
|
99
|
-
import { default as default100 } from "./modules/icons/components/
|
|
100
|
-
import { default as default101 } from "./modules/icons/components/
|
|
101
|
-
import { default as default102 } from "./modules/icons/components/
|
|
102
|
-
import { default as default103 } from "./modules/icons/components/
|
|
103
|
-
import { default as default104 } from "./modules/icons/components/
|
|
104
|
-
import { default as default105 } from "./modules/icons/components/
|
|
105
|
-
import { default as default106 } from "./modules/icons/components/
|
|
106
|
-
import { default as default107 } from "./modules/icons/components/
|
|
107
|
-
import { default as default108 } from "./modules/icons/components/
|
|
108
|
-
import { default as default109 } from "./modules/icons/components/
|
|
109
|
-
import { default as default110 } from "./modules/icons/components/
|
|
110
|
-
import { default as default111 } from "./modules/icons/components/
|
|
111
|
-
import { default as default112 } from "./modules/icons/components/
|
|
112
|
-
import { default as default113 } from "./modules/icons/components/
|
|
113
|
-
import { default as default114 } from "./modules/icons/components/
|
|
114
|
-
import { default as default115 } from "./modules/icons/components/
|
|
115
|
-
import { default as default116 } from "./modules/icons/components/
|
|
116
|
-
import { default as default117 } from "./modules/icons/components/
|
|
117
|
-
import { default as default118 } from "./modules/icons/components/
|
|
118
|
-
import { default as default119 } from "./modules/icons/components/
|
|
119
|
-
import { default as default120 } from "./modules/icons/components/
|
|
120
|
-
import { default as default121 } from "./modules/icons/components/
|
|
121
|
-
import { default as default122 } from "./modules/icons/components/
|
|
122
|
-
import { default as default123 } from "./modules/icons/components/
|
|
123
|
-
import { default as default124 } from "./modules/icons/components/
|
|
124
|
-
import { default as default125 } from "./modules/icons/components/
|
|
125
|
-
import { default as default126 } from "./modules/icons/components/
|
|
126
|
-
import { default as default127 } from "./modules/icons/components/
|
|
127
|
-
import { default as default128 } from "./modules/icons/components/
|
|
128
|
-
import { default as default129 } from "./modules/icons/components/
|
|
129
|
-
import { default as default130 } from "./modules/icons/components/
|
|
130
|
-
import { default as default131 } from "./modules/icons/components/
|
|
131
|
-
import { default as default132 } from "./modules/icons/components/
|
|
132
|
-
import { default as default133 } from "./modules/icons/components/
|
|
133
|
-
import { default as default134 } from "./modules/icons/components/
|
|
134
|
-
import { default as default135 } from "./modules/icons/components/
|
|
135
|
-
import { default as default136 } from "./modules/icons/components/
|
|
136
|
-
import { default as default137 } from "./modules/icons/components/
|
|
137
|
-
import { default as default138 } from "./modules/icons/components/
|
|
138
|
-
import { default as default139 } from "./modules/icons/components/
|
|
139
|
-
import { default as default140 } from "./modules/icons/components/
|
|
140
|
-
import { default as default141 } from "./modules/icons/components/
|
|
141
|
-
import { default as default142 } from "./modules/icons/components/
|
|
142
|
-
import { default as default143 } from "./modules/icons/components/
|
|
143
|
-
import { default as default144 } from "./modules/icons/components/
|
|
144
|
-
import { default as default145 } from "./modules/icons/components/
|
|
145
|
-
import { default as default146 } from "./modules/icons/components/
|
|
146
|
-
import { default as default147 } from "./modules/icons/components/
|
|
147
|
-
import { default as default148 } from "./modules/icons/components/
|
|
148
|
-
import { default as default149 } from "./modules/icons/components/
|
|
149
|
-
import { default as default150 } from "./modules/icons/components/
|
|
150
|
-
import { default as default151 } from "./modules/icons/components/
|
|
151
|
-
import { default as default152 } from "./modules/icons/components/
|
|
152
|
-
import { default as default153 } from "./modules/icons/components/
|
|
153
|
-
import { default as default154 } from "./modules/icons/components/
|
|
154
|
-
import { default as default155 } from "./modules/icons/components/
|
|
155
|
-
import { default as default156 } from "./modules/icons/components/
|
|
156
|
-
import { default as default157 } from "./modules/icons/components/
|
|
157
|
-
import { default as default158 } from "./modules/icons/components/
|
|
158
|
-
import { default as default159 } from "./modules/icons/components/
|
|
159
|
-
import { default as default160 } from "./modules/icons/components/
|
|
160
|
-
import { default as default161 } from "./modules/icons/components/
|
|
161
|
-
import { default as default162 } from "./modules/icons/components/
|
|
162
|
-
import { default as default163 } from "./modules/icons/components/
|
|
163
|
-
import { default as default164 } from "./modules/icons/components/
|
|
164
|
-
import { default as default165 } from "./modules/icons/components/
|
|
165
|
-
import { default as default166 } from "./modules/icons/components/
|
|
166
|
-
import { default as default167 } from "./modules/icons/components/
|
|
167
|
-
import { default as default168 } from "./modules/icons/components/
|
|
168
|
-
import { default as default169 } from "./modules/icons/components/
|
|
85
|
+
import { default as default86 } from "./modules/icons/components/IconNotification.js";
|
|
86
|
+
import { default as default87 } from "./modules/icons/components/IconOptions.js";
|
|
87
|
+
import { default as default88 } from "./modules/icons/components/IconOrderedList.js";
|
|
88
|
+
import { default as default89 } from "./modules/icons/components/IconPaperclip.js";
|
|
89
|
+
import { default as default90 } from "./modules/icons/components/IconPause.js";
|
|
90
|
+
import { default as default91 } from "./modules/icons/components/IconPinOff.js";
|
|
91
|
+
import { default as default92 } from "./modules/icons/components/IconPinOn.js";
|
|
92
|
+
import { default as default93 } from "./modules/icons/components/IconPlaceholder.js";
|
|
93
|
+
import { default as default94 } from "./modules/icons/components/IconPlayFilled.js";
|
|
94
|
+
import { default as default95 } from "./modules/icons/components/IconPlay.js";
|
|
95
|
+
import { default as default96 } from "./modules/icons/components/IconPlus.js";
|
|
96
|
+
import { default as default97 } from "./modules/icons/components/IconPointerDefault.js";
|
|
97
|
+
import { default as default98 } from "./modules/icons/components/IconPointerHand.js";
|
|
98
|
+
import { default as default99 } from "./modules/icons/components/IconPrint.js";
|
|
99
|
+
import { default as default100 } from "./modules/icons/components/IconQuestionMark.js";
|
|
100
|
+
import { default as default101 } from "./modules/icons/components/IconQuestion.js";
|
|
101
|
+
import { default as default102 } from "./modules/icons/components/IconRafterDown.js";
|
|
102
|
+
import { default as default103 } from "./modules/icons/components/IconRafterLeft.js";
|
|
103
|
+
import { default as default104 } from "./modules/icons/components/IconRafterRight.js";
|
|
104
|
+
import { default as default105 } from "./modules/icons/components/IconRafterUp.js";
|
|
105
|
+
import { default as default106 } from "./modules/icons/components/IconReaction.js";
|
|
106
|
+
import { default as default107 } from "./modules/icons/components/IconReadMail.js";
|
|
107
|
+
import { default as default108 } from "./modules/icons/components/IconRecordPause.js";
|
|
108
|
+
import { default as default109 } from "./modules/icons/components/IconRecordStop.js";
|
|
109
|
+
import { default as default110 } from "./modules/icons/components/IconRecordVideo.js";
|
|
110
|
+
import { default as default111 } from "./modules/icons/components/IconRecord.js";
|
|
111
|
+
import { default as default112 } from "./modules/icons/components/IconRedo.js";
|
|
112
|
+
import { default as default113 } from "./modules/icons/components/IconRefresh.js";
|
|
113
|
+
import { default as default114 } from "./modules/icons/components/IconReset.js";
|
|
114
|
+
import { default as default115 } from "./modules/icons/components/IconRestart.js";
|
|
115
|
+
import { default as default116 } from "./modules/icons/components/IconRestore.js";
|
|
116
|
+
import { default as default117 } from "./modules/icons/components/IconSave.js";
|
|
117
|
+
import { default as default118 } from "./modules/icons/components/IconSearch.js";
|
|
118
|
+
import { default as default119 } from "./modules/icons/components/IconSee.js";
|
|
119
|
+
import { default as default120 } from "./modules/icons/components/IconSend.js";
|
|
120
|
+
import { default as default121 } from "./modules/icons/components/IconSetBackground.js";
|
|
121
|
+
import { default as default122 } from "./modules/icons/components/IconSettings.js";
|
|
122
|
+
import { default as default123 } from "./modules/icons/components/IconShare.js";
|
|
123
|
+
import { default as default124 } from "./modules/icons/components/IconSignature.js";
|
|
124
|
+
import { default as default125 } from "./modules/icons/components/IconSmartphone.js";
|
|
125
|
+
import { default as default126 } from "./modules/icons/components/IconSmiley.js";
|
|
126
|
+
import { default as default127 } from "./modules/icons/components/IconSortAscendingLetters.js";
|
|
127
|
+
import { default as default128 } from "./modules/icons/components/IconSortDescendingLetters.js";
|
|
128
|
+
import { default as default129 } from "./modules/icons/components/IconSortDescending.js";
|
|
129
|
+
import { default as default130 } from "./modules/icons/components/IconSortTime.js";
|
|
130
|
+
import { default as default131 } from "./modules/icons/components/IconSpeechToText.js";
|
|
131
|
+
import { default as default132 } from "./modules/icons/components/IconSplitCells.js";
|
|
132
|
+
import { default as default133 } from "./modules/icons/components/IconSquareRoot.js";
|
|
133
|
+
import { default as default134 } from "./modules/icons/components/IconStarFull.js";
|
|
134
|
+
import { default as default135 } from "./modules/icons/components/IconStar.js";
|
|
135
|
+
import { default as default136 } from "./modules/icons/components/IconSubscript.js";
|
|
136
|
+
import { default as default137 } from "./modules/icons/components/IconSuccessFill.js";
|
|
137
|
+
import { default as default138 } from "./modules/icons/components/IconSuccessOutline.js";
|
|
138
|
+
import { default as default139 } from "./modules/icons/components/IconSuperscript.js";
|
|
139
|
+
import { default as default140 } from "./modules/icons/components/IconTable.js";
|
|
140
|
+
import { default as default141 } from "./modules/icons/components/IconTextBold.js";
|
|
141
|
+
import { default as default142 } from "./modules/icons/components/IconTextColor.js";
|
|
142
|
+
import { default as default143 } from "./modules/icons/components/IconTextHighlight.js";
|
|
143
|
+
import { default as default144 } from "./modules/icons/components/IconTextItalic.js";
|
|
144
|
+
import { default as default145 } from "./modules/icons/components/IconTextPage.js";
|
|
145
|
+
import { default as default146 } from "./modules/icons/components/IconTextSize.js";
|
|
146
|
+
import { default as default147 } from "./modules/icons/components/IconTextToSpeechOff.js";
|
|
147
|
+
import { default as default148 } from "./modules/icons/components/IconTextToSpeech.js";
|
|
148
|
+
import { default as default149 } from "./modules/icons/components/IconTextTypo.js";
|
|
149
|
+
import { default as default150 } from "./modules/icons/components/IconTextUnderline.js";
|
|
150
|
+
import { default as default151 } from "./modules/icons/components/IconTextVanilla.js";
|
|
151
|
+
import { default as default152 } from "./modules/icons/components/IconToolCenter.js";
|
|
152
|
+
import { default as default153 } from "./modules/icons/components/IconTool.js";
|
|
153
|
+
import { default as default154 } from "./modules/icons/components/IconTrendingUp.js";
|
|
154
|
+
import { default as default155 } from "./modules/icons/components/IconUndoAll.js";
|
|
155
|
+
import { default as default156 } from "./modules/icons/components/IconUndo.js";
|
|
156
|
+
import { default as default157 } from "./modules/icons/components/IconUnlink.js";
|
|
157
|
+
import { default as default158 } from "./modules/icons/components/IconUnlock.js";
|
|
158
|
+
import { default as default159 } from "./modules/icons/components/IconUnreadMail.js";
|
|
159
|
+
import { default as default160 } from "./modules/icons/components/IconUpload.js";
|
|
160
|
+
import { default as default161 } from "./modules/icons/components/IconUserSearch.js";
|
|
161
|
+
import { default as default162 } from "./modules/icons/components/IconUser.js";
|
|
162
|
+
import { default as default163 } from "./modules/icons/components/IconUsers.js";
|
|
163
|
+
import { default as default164 } from "./modules/icons/components/IconVideo.js";
|
|
164
|
+
import { default as default165 } from "./modules/icons/components/IconViewCalendar.js";
|
|
165
|
+
import { default as default166 } from "./modules/icons/components/IconViewList.js";
|
|
166
|
+
import { default as default167 } from "./modules/icons/components/IconWand.js";
|
|
167
|
+
import { default as default168 } from "./modules/icons/components/IconWrite.js";
|
|
168
|
+
import { default as default169 } from "./modules/icons/components/IconZoomIn.js";
|
|
169
|
+
import { default as default170 } from "./modules/icons/components/IconZoomOut.js";
|
|
169
170
|
export {
|
|
170
171
|
default3 as IconAdd,
|
|
171
172
|
default2 as IconAddUser,
|
|
@@ -251,88 +252,89 @@ export {
|
|
|
251
252
|
default83 as IconMinus,
|
|
252
253
|
default84 as IconMove,
|
|
253
254
|
default85 as IconNoColors,
|
|
254
|
-
default86 as
|
|
255
|
-
default87 as
|
|
256
|
-
default88 as
|
|
257
|
-
default89 as
|
|
258
|
-
default90 as
|
|
259
|
-
default91 as
|
|
260
|
-
default92 as
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
default96 as
|
|
265
|
-
default97 as
|
|
266
|
-
default98 as
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
default102 as
|
|
271
|
-
default103 as
|
|
272
|
-
default104 as
|
|
273
|
-
default105 as
|
|
274
|
-
default106 as
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
default108 as
|
|
278
|
-
default109 as
|
|
279
|
-
|
|
280
|
-
default112 as
|
|
281
|
-
default113 as
|
|
282
|
-
default114 as
|
|
283
|
-
default115 as
|
|
284
|
-
default116 as
|
|
285
|
-
default117 as
|
|
286
|
-
default118 as
|
|
287
|
-
default119 as
|
|
288
|
-
default120 as
|
|
289
|
-
default121 as
|
|
290
|
-
default122 as
|
|
291
|
-
default123 as
|
|
292
|
-
default124 as
|
|
293
|
-
default125 as
|
|
294
|
-
default126 as
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
default130 as
|
|
299
|
-
default131 as
|
|
300
|
-
default132 as
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
default136 as
|
|
305
|
-
default137 as
|
|
306
|
-
default138 as
|
|
307
|
-
default139 as
|
|
308
|
-
default140 as
|
|
309
|
-
default141 as
|
|
310
|
-
default142 as
|
|
311
|
-
default143 as
|
|
312
|
-
default144 as
|
|
313
|
-
default145 as
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
default149 as
|
|
318
|
-
default150 as
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
default157 as
|
|
326
|
-
default158 as
|
|
327
|
-
default159 as
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
default163 as
|
|
332
|
-
default164 as
|
|
333
|
-
default165 as
|
|
334
|
-
default166 as
|
|
335
|
-
default167 as
|
|
336
|
-
default168 as
|
|
337
|
-
default169 as
|
|
255
|
+
default86 as IconNotification,
|
|
256
|
+
default87 as IconOptions,
|
|
257
|
+
default88 as IconOrderedList,
|
|
258
|
+
default89 as IconPaperclip,
|
|
259
|
+
default90 as IconPause,
|
|
260
|
+
default91 as IconPinOff,
|
|
261
|
+
default92 as IconPinOn,
|
|
262
|
+
default93 as IconPlaceholder,
|
|
263
|
+
default95 as IconPlay,
|
|
264
|
+
default94 as IconPlayFilled,
|
|
265
|
+
default96 as IconPlus,
|
|
266
|
+
default97 as IconPointerDefault,
|
|
267
|
+
default98 as IconPointerHand,
|
|
268
|
+
default99 as IconPrint,
|
|
269
|
+
default101 as IconQuestion,
|
|
270
|
+
default100 as IconQuestionMark,
|
|
271
|
+
default102 as IconRafterDown,
|
|
272
|
+
default103 as IconRafterLeft,
|
|
273
|
+
default104 as IconRafterRight,
|
|
274
|
+
default105 as IconRafterUp,
|
|
275
|
+
default106 as IconReaction,
|
|
276
|
+
default107 as IconReadMail,
|
|
277
|
+
default111 as IconRecord,
|
|
278
|
+
default108 as IconRecordPause,
|
|
279
|
+
default109 as IconRecordStop,
|
|
280
|
+
default110 as IconRecordVideo,
|
|
281
|
+
default112 as IconRedo,
|
|
282
|
+
default113 as IconRefresh,
|
|
283
|
+
default114 as IconReset,
|
|
284
|
+
default115 as IconRestart,
|
|
285
|
+
default116 as IconRestore,
|
|
286
|
+
default117 as IconSave,
|
|
287
|
+
default118 as IconSearch,
|
|
288
|
+
default119 as IconSee,
|
|
289
|
+
default120 as IconSend,
|
|
290
|
+
default121 as IconSetBackground,
|
|
291
|
+
default122 as IconSettings,
|
|
292
|
+
default123 as IconShare,
|
|
293
|
+
default124 as IconSignature,
|
|
294
|
+
default125 as IconSmartphone,
|
|
295
|
+
default126 as IconSmiley,
|
|
296
|
+
default127 as IconSortAscendingLetters,
|
|
297
|
+
default129 as IconSortDescending,
|
|
298
|
+
default128 as IconSortDescendingLetters,
|
|
299
|
+
default130 as IconSortTime,
|
|
300
|
+
default131 as IconSpeechToText,
|
|
301
|
+
default132 as IconSplitCells,
|
|
302
|
+
default133 as IconSquareRoot,
|
|
303
|
+
default135 as IconStar,
|
|
304
|
+
default134 as IconStarFull,
|
|
305
|
+
default136 as IconSubscript,
|
|
306
|
+
default137 as IconSuccessFill,
|
|
307
|
+
default138 as IconSuccessOutline,
|
|
308
|
+
default139 as IconSuperscript,
|
|
309
|
+
default140 as IconTable,
|
|
310
|
+
default141 as IconTextBold,
|
|
311
|
+
default142 as IconTextColor,
|
|
312
|
+
default143 as IconTextHighlight,
|
|
313
|
+
default144 as IconTextItalic,
|
|
314
|
+
default145 as IconTextPage,
|
|
315
|
+
default146 as IconTextSize,
|
|
316
|
+
default148 as IconTextToSpeech,
|
|
317
|
+
default147 as IconTextToSpeechOff,
|
|
318
|
+
default149 as IconTextTypo,
|
|
319
|
+
default150 as IconTextUnderline,
|
|
320
|
+
default151 as IconTextVanilla,
|
|
321
|
+
default153 as IconTool,
|
|
322
|
+
default152 as IconToolCenter,
|
|
323
|
+
default154 as IconTrendingUp,
|
|
324
|
+
default156 as IconUndo,
|
|
325
|
+
default155 as IconUndoAll,
|
|
326
|
+
default157 as IconUnlink,
|
|
327
|
+
default158 as IconUnlock,
|
|
328
|
+
default159 as IconUnreadMail,
|
|
329
|
+
default160 as IconUpload,
|
|
330
|
+
default162 as IconUser,
|
|
331
|
+
default161 as IconUserSearch,
|
|
332
|
+
default163 as IconUsers,
|
|
333
|
+
default164 as IconVideo,
|
|
334
|
+
default165 as IconViewCalendar,
|
|
335
|
+
default166 as IconViewList,
|
|
336
|
+
default167 as IconWand,
|
|
337
|
+
default168 as IconWrite,
|
|
338
|
+
default169 as IconZoomIn,
|
|
339
|
+
default170 as IconZoomOut
|
|
338
340
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconNotification: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconNotification;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconNotification = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 64 64", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { d: "M32 10c-2.338 0-3.693 1.605-4.361 3.086-3.608.724-9.901 3.87-10.68 11.656-.293 4.592-.84 13.142-3.896 14.559a2 2 0 0 0-.573.398C12.235 39.954 10 42.294 10 46a2 2 0 0 0 2 2h13.258c.394 3.373 3.265 6 6.742 6s6.348-2.627 6.742-6H52a2 2 0 0 0 2-2c0-3.706-2.235-6.046-2.49-6.3a2 2 0 0 0-.572-.401c-3.056-1.417-3.605-9.965-3.905-14.63-.775-7.723-7.067-10.862-10.674-11.585C35.692 11.604 34.338 10 32 10m0 4c.603 0 .767.62.887 1.256.177.935.997 1.658 1.97 1.658.074 0 7.455.736 8.192 8.084.509 7.934 1.34 15.253 5.789 17.719.187.24.496.684.748 1.283H14.414a5.8 5.8 0 0 1 .744-1.281c4.451-2.464 5.284-9.784 5.787-17.649.743-7.42 8.124-8.156 8.198-8.156.957 0 1.791-.758 1.966-1.639.123-.615.287-1.275.891-1.275m-2.664 34h5.328A2.79 2.79 0 0 1 32 50a2.79 2.79 0 0 1-2.664-2" })
|
|
9
|
+
] });
|
|
10
|
+
export {
|
|
11
|
+
SvgIconNotification as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconStarFavorite: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconStarFavorite;
|
|
@@ -3,11 +3,10 @@ const SvgIconNabook = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "currentColor", viewBox: "0 0 500 500", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("
|
|
9
|
-
/* @__PURE__ */ jsx("path", {
|
|
10
|
-
/* @__PURE__ */ jsx("path", { fill: "#0FC", d: "m362.279 87.72 18.318 264.583-100.438 21.777-71.561-134.075 9.084 144.501-87.235 10.711-26.773-275.745 96.357-16.554 84.212 131.341-13.084-132.203z" })
|
|
8
|
+
/* @__PURE__ */ jsx("path", { d: "m363.4 100.712 18.319 264.583-100.438 21.778-71.561-134.076 9.084 144.502-87.235 10.711-26.773-275.746 96.357-16.554 84.212 131.341-13.084-132.203z" }),
|
|
9
|
+
/* @__PURE__ */ jsx("path", { d: "m362.279 87.72 18.318 264.583-100.438 21.777-71.561-134.075 9.084 144.501-87.235 10.711-26.773-275.745 96.357-16.554 84.212 131.341-13.084-132.203z" })
|
|
11
10
|
] });
|
|
12
11
|
export {
|
|
13
12
|
SvgIconNabook as default
|
|
@@ -82,6 +82,7 @@ export { default as IconMic } from './IconMic';
|
|
|
82
82
|
export { default as IconMinus } from './IconMinus';
|
|
83
83
|
export { default as IconMove } from './IconMove';
|
|
84
84
|
export { default as IconNoColors } from './IconNoColors';
|
|
85
|
+
export { default as IconNotification } from './IconNotification';
|
|
85
86
|
export { default as IconOptions } from './IconOptions';
|
|
86
87
|
export { default as IconOrderedList } from './IconOrderedList';
|
|
87
88
|
export { default as IconPaperclip } from './IconPaperclip';
|
|
@@ -34,13 +34,16 @@ interface ModalOptionsProps {
|
|
|
34
34
|
*/
|
|
35
35
|
closeText?: string;
|
|
36
36
|
}
|
|
37
|
+
export interface OnboardingModalRef {
|
|
38
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
39
|
+
handleSavePreference: () => void;
|
|
40
|
+
}
|
|
37
41
|
interface OnboardingProps {
|
|
38
42
|
id: string;
|
|
39
43
|
items: ModalItemsProps[];
|
|
40
44
|
modalOptions?: ModalOptionsProps;
|
|
45
|
+
defaultOpen?: boolean;
|
|
46
|
+
isOnboardingChange?: (isOnboarding: boolean) => void;
|
|
41
47
|
}
|
|
42
|
-
declare const OnboardingModal:
|
|
43
|
-
({ id, items, modalOptions }: OnboardingProps): import('react').ReactPortal | null;
|
|
44
|
-
displayName: string;
|
|
45
|
-
};
|
|
48
|
+
declare const OnboardingModal: import('react').ForwardRefExoticComponent<OnboardingProps & import('react').RefAttributes<OnboardingModalRef>>;
|
|
46
49
|
export default OnboardingModal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useEffect } from "react";
|
|
2
|
+
import { forwardRef, useState, useImperativeHandle, useEffect } from "react";
|
|
3
3
|
import { createPortal } from "react-dom";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import { Pagination } from "swiper/modules";
|
|
@@ -8,19 +8,26 @@ import { useOnboardingModal } from "./useOnboardingModal.js";
|
|
|
8
8
|
import Modal from "../../../components/Modal/Modal.js";
|
|
9
9
|
import Image from "../../../components/Image/Image.js";
|
|
10
10
|
import Button from "../../../components/Button/Button.js";
|
|
11
|
-
const OnboardingModal = ({
|
|
11
|
+
const OnboardingModal = /* @__PURE__ */ forwardRef(({
|
|
12
12
|
id,
|
|
13
13
|
items,
|
|
14
|
-
modalOptions = {}
|
|
15
|
-
|
|
14
|
+
modalOptions = {},
|
|
15
|
+
defaultOpen = !0,
|
|
16
|
+
isOnboardingChange
|
|
17
|
+
}, ref) => {
|
|
16
18
|
var _a;
|
|
17
19
|
const [swiperInstance, setSwiperInstance] = useState(), [swiperProgress, setSwiperprogress] = useState(0), {
|
|
18
20
|
isOpen,
|
|
19
21
|
isOnboarding,
|
|
20
22
|
setIsOpen,
|
|
21
23
|
handleSavePreference
|
|
22
|
-
} = useOnboardingModal(id);
|
|
23
|
-
|
|
24
|
+
} = useOnboardingModal(id, defaultOpen);
|
|
25
|
+
useImperativeHandle(ref, () => ({
|
|
26
|
+
setIsOpen,
|
|
27
|
+
handleSavePreference
|
|
28
|
+
})), useEffect(() => {
|
|
29
|
+
isOnboardingChange && isOnboardingChange(isOnboarding);
|
|
30
|
+
}, [isOnboarding, isOnboardingChange]), useEffect(() => {
|
|
24
31
|
const link = document.createElement("link");
|
|
25
32
|
return link.href = "https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css", link.rel = "stylesheet", link.type = "text/css", document.head.appendChild(link), () => {
|
|
26
33
|
document.head.removeChild(link);
|
|
@@ -33,9 +40,13 @@ const OnboardingModal = ({
|
|
|
33
40
|
prevText,
|
|
34
41
|
closeText,
|
|
35
42
|
nextText
|
|
36
|
-
} = modalOptions, currentTitle = (swiperInstance == null ? void 0 : swiperInstance.activeIndex) != null && ((_a = items[swiperInstance == null ? void 0 : swiperInstance.activeIndex]) != null && _a.title) ? items[swiperInstance.activeIndex].title : title
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
} = modalOptions, currentTitle = (swiperInstance == null ? void 0 : swiperInstance.activeIndex) != null && ((_a = items[swiperInstance == null ? void 0 : swiperInstance.activeIndex]) != null && _a.title) ? items[swiperInstance.activeIndex].title : title, handleCloseWithPreference = () => {
|
|
44
|
+
handleSavePreference(), setSwiperprogress(0);
|
|
45
|
+
}, handleCloseWithoutPreference = () => {
|
|
46
|
+
setIsOpen(!1), setSwiperprogress(0);
|
|
47
|
+
};
|
|
48
|
+
return isOnboarding || !defaultOpen ? /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: handleCloseWithoutPreference, children: [
|
|
49
|
+
/* @__PURE__ */ jsx(Modal.Header, { onModalClose: handleCloseWithoutPreference, children: t(currentTitle || "explorer.modal.onboarding.trash.title") }),
|
|
39
50
|
/* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsx(Swiper, { modules: [Pagination], onSwiper: (swiper) => {
|
|
40
51
|
setSwiperInstance(swiper);
|
|
41
52
|
}, onSlideChange: (swiper) => {
|
|
@@ -47,13 +58,15 @@ const OnboardingModal = ({
|
|
|
47
58
|
/* @__PURE__ */ jsx("p", { className: "text-center", children: t(item.text) })
|
|
48
59
|
] }, index)) }) }),
|
|
49
60
|
/* @__PURE__ */ jsxs(Modal.Footer, { children: [
|
|
50
|
-
/* @__PURE__ */ jsx(Button, { type: "button", color: "tertiary", variant: "ghost", onClick:
|
|
61
|
+
/* @__PURE__ */ jsx(Button, { type: "button", color: "tertiary", variant: "ghost", onClick: handleCloseWithoutPreference, children: t("explorer.modal.onboarding.trash.later") }),
|
|
51
62
|
swiperProgress > 0 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "outline", onClick: () => swiperInstance.slidePrev(), children: t(prevText || "explorer.modal.onboarding.trash.prev") }),
|
|
52
63
|
swiperProgress < 1 && /* @__PURE__ */ jsx(Button, { id: "nextButtonId", type: "button", color: "primary", variant: "filled", onClick: () => swiperInstance.slideNext(), children: t(nextText || "explorer.modal.onboarding.trash.next") }),
|
|
53
|
-
swiperProgress === 1 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "filled", onClick:
|
|
64
|
+
swiperProgress === 1 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "filled", onClick: () => {
|
|
65
|
+
isOnboarding ? handleCloseWithPreference() : handleCloseWithoutPreference();
|
|
66
|
+
}, children: t(closeText || "explorer.modal.onboarding.trash.close") })
|
|
54
67
|
] })
|
|
55
68
|
] }), document.getElementById("portal")) : null;
|
|
56
|
-
};
|
|
69
|
+
});
|
|
57
70
|
export {
|
|
58
71
|
OnboardingModal as default
|
|
59
72
|
};
|
|
@@ -2,8 +2,8 @@ import { useState, useEffect } from "react";
|
|
|
2
2
|
import { odeServices } from "@edifice.io/client";
|
|
3
3
|
const getOnboardingTrash = async (key) => await odeServices.conf().getPreference(key), saveOnboardingTrash = async (key) => await odeServices.conf().savePreference(key, JSON.stringify({
|
|
4
4
|
key: !1
|
|
5
|
-
})), useOnboardingModal = (id) => {
|
|
6
|
-
const [isOpen, setIsOpen] = useState(
|
|
5
|
+
})), useOnboardingModal = (id, defaultOpen) => {
|
|
6
|
+
const [isOpen, setIsOpen] = useState(defaultOpen), [isOnboarding, setIsOnboarding] = useState(!1);
|
|
7
7
|
return useEffect(() => {
|
|
8
8
|
(async () => {
|
|
9
9
|
const response = await getOnboardingTrash(id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.2.11-develop-enabling.
|
|
3
|
+
"version": "2.2.11-develop-enabling.20250707100621",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -130,9 +130,9 @@
|
|
|
130
130
|
"react-slugify": "^3.0.3",
|
|
131
131
|
"swiper": "^10.1.0",
|
|
132
132
|
"ua-parser-js": "^1.0.36",
|
|
133
|
-
"@edifice.io/bootstrap": "2.2.11-develop-enabling.
|
|
134
|
-
"@edifice.io/tiptap-extensions": "2.2.11-develop-enabling.
|
|
135
|
-
"@edifice.io/utilities": "2.2.11-develop-enabling.
|
|
133
|
+
"@edifice.io/bootstrap": "2.2.11-develop-enabling.20250707100621",
|
|
134
|
+
"@edifice.io/tiptap-extensions": "2.2.11-develop-enabling.20250707100621",
|
|
135
|
+
"@edifice.io/utilities": "2.2.11-develop-enabling.20250707100621"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
138
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -163,8 +163,8 @@
|
|
|
163
163
|
"vite": "^5.4.11",
|
|
164
164
|
"vite-plugin-dts": "^4.1.0",
|
|
165
165
|
"vite-tsconfig-paths": "^5.0.1",
|
|
166
|
-
"@edifice.io/
|
|
167
|
-
"@edifice.io/
|
|
166
|
+
"@edifice.io/client": "2.2.11-develop-enabling.20250707100621",
|
|
167
|
+
"@edifice.io/config": "2.2.11-develop-enabling.20250707100621"
|
|
168
168
|
},
|
|
169
169
|
"peerDependencies": {
|
|
170
170
|
"@react-spring/web": "^9.7.5",
|