@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.
@@ -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(FormControl.Input, { type: "search", placeholder: t(placeholder), size, noValidationIcon: !0, className: input, onChange, value, disabled, onKeyDown: handleKeyDown, ...restProps }),
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/IconOptions.js";
86
- import { default as default87 } from "./modules/icons/components/IconOrderedList.js";
87
- import { default as default88 } from "./modules/icons/components/IconPaperclip.js";
88
- import { default as default89 } from "./modules/icons/components/IconPause.js";
89
- import { default as default90 } from "./modules/icons/components/IconPinOff.js";
90
- import { default as default91 } from "./modules/icons/components/IconPinOn.js";
91
- import { default as default92 } from "./modules/icons/components/IconPlaceholder.js";
92
- import { default as default93 } from "./modules/icons/components/IconPlayFilled.js";
93
- import { default as default94 } from "./modules/icons/components/IconPlay.js";
94
- import { default as default95 } from "./modules/icons/components/IconPlus.js";
95
- import { default as default96 } from "./modules/icons/components/IconPointerDefault.js";
96
- import { default as default97 } from "./modules/icons/components/IconPointerHand.js";
97
- import { default as default98 } from "./modules/icons/components/IconPrint.js";
98
- import { default as default99 } from "./modules/icons/components/IconQuestionMark.js";
99
- import { default as default100 } from "./modules/icons/components/IconQuestion.js";
100
- import { default as default101 } from "./modules/icons/components/IconRafterDown.js";
101
- import { default as default102 } from "./modules/icons/components/IconRafterLeft.js";
102
- import { default as default103 } from "./modules/icons/components/IconRafterRight.js";
103
- import { default as default104 } from "./modules/icons/components/IconRafterUp.js";
104
- import { default as default105 } from "./modules/icons/components/IconReaction.js";
105
- import { default as default106 } from "./modules/icons/components/IconReadMail.js";
106
- import { default as default107 } from "./modules/icons/components/IconRecordPause.js";
107
- import { default as default108 } from "./modules/icons/components/IconRecordStop.js";
108
- import { default as default109 } from "./modules/icons/components/IconRecordVideo.js";
109
- import { default as default110 } from "./modules/icons/components/IconRecord.js";
110
- import { default as default111 } from "./modules/icons/components/IconRedo.js";
111
- import { default as default112 } from "./modules/icons/components/IconRefresh.js";
112
- import { default as default113 } from "./modules/icons/components/IconReset.js";
113
- import { default as default114 } from "./modules/icons/components/IconRestart.js";
114
- import { default as default115 } from "./modules/icons/components/IconRestore.js";
115
- import { default as default116 } from "./modules/icons/components/IconSave.js";
116
- import { default as default117 } from "./modules/icons/components/IconSearch.js";
117
- import { default as default118 } from "./modules/icons/components/IconSee.js";
118
- import { default as default119 } from "./modules/icons/components/IconSend.js";
119
- import { default as default120 } from "./modules/icons/components/IconSetBackground.js";
120
- import { default as default121 } from "./modules/icons/components/IconSettings.js";
121
- import { default as default122 } from "./modules/icons/components/IconShare.js";
122
- import { default as default123 } from "./modules/icons/components/IconSignature.js";
123
- import { default as default124 } from "./modules/icons/components/IconSmartphone.js";
124
- import { default as default125 } from "./modules/icons/components/IconSmiley.js";
125
- import { default as default126 } from "./modules/icons/components/IconSortAscendingLetters.js";
126
- import { default as default127 } from "./modules/icons/components/IconSortDescendingLetters.js";
127
- import { default as default128 } from "./modules/icons/components/IconSortDescending.js";
128
- import { default as default129 } from "./modules/icons/components/IconSortTime.js";
129
- import { default as default130 } from "./modules/icons/components/IconSpeechToText.js";
130
- import { default as default131 } from "./modules/icons/components/IconSplitCells.js";
131
- import { default as default132 } from "./modules/icons/components/IconSquareRoot.js";
132
- import { default as default133 } from "./modules/icons/components/IconStarFull.js";
133
- import { default as default134 } from "./modules/icons/components/IconStar.js";
134
- import { default as default135 } from "./modules/icons/components/IconSubscript.js";
135
- import { default as default136 } from "./modules/icons/components/IconSuccessFill.js";
136
- import { default as default137 } from "./modules/icons/components/IconSuccessOutline.js";
137
- import { default as default138 } from "./modules/icons/components/IconSuperscript.js";
138
- import { default as default139 } from "./modules/icons/components/IconTable.js";
139
- import { default as default140 } from "./modules/icons/components/IconTextBold.js";
140
- import { default as default141 } from "./modules/icons/components/IconTextColor.js";
141
- import { default as default142 } from "./modules/icons/components/IconTextHighlight.js";
142
- import { default as default143 } from "./modules/icons/components/IconTextItalic.js";
143
- import { default as default144 } from "./modules/icons/components/IconTextPage.js";
144
- import { default as default145 } from "./modules/icons/components/IconTextSize.js";
145
- import { default as default146 } from "./modules/icons/components/IconTextToSpeechOff.js";
146
- import { default as default147 } from "./modules/icons/components/IconTextToSpeech.js";
147
- import { default as default148 } from "./modules/icons/components/IconTextTypo.js";
148
- import { default as default149 } from "./modules/icons/components/IconTextUnderline.js";
149
- import { default as default150 } from "./modules/icons/components/IconTextVanilla.js";
150
- import { default as default151 } from "./modules/icons/components/IconToolCenter.js";
151
- import { default as default152 } from "./modules/icons/components/IconTool.js";
152
- import { default as default153 } from "./modules/icons/components/IconTrendingUp.js";
153
- import { default as default154 } from "./modules/icons/components/IconUndoAll.js";
154
- import { default as default155 } from "./modules/icons/components/IconUndo.js";
155
- import { default as default156 } from "./modules/icons/components/IconUnlink.js";
156
- import { default as default157 } from "./modules/icons/components/IconUnlock.js";
157
- import { default as default158 } from "./modules/icons/components/IconUnreadMail.js";
158
- import { default as default159 } from "./modules/icons/components/IconUpload.js";
159
- import { default as default160 } from "./modules/icons/components/IconUserSearch.js";
160
- import { default as default161 } from "./modules/icons/components/IconUser.js";
161
- import { default as default162 } from "./modules/icons/components/IconUsers.js";
162
- import { default as default163 } from "./modules/icons/components/IconVideo.js";
163
- import { default as default164 } from "./modules/icons/components/IconViewCalendar.js";
164
- import { default as default165 } from "./modules/icons/components/IconViewList.js";
165
- import { default as default166 } from "./modules/icons/components/IconWand.js";
166
- import { default as default167 } from "./modules/icons/components/IconWrite.js";
167
- import { default as default168 } from "./modules/icons/components/IconZoomIn.js";
168
- import { default as default169 } from "./modules/icons/components/IconZoomOut.js";
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 IconOptions,
255
- default87 as IconOrderedList,
256
- default88 as IconPaperclip,
257
- default89 as IconPause,
258
- default90 as IconPinOff,
259
- default91 as IconPinOn,
260
- default92 as IconPlaceholder,
261
- default94 as IconPlay,
262
- default93 as IconPlayFilled,
263
- default95 as IconPlus,
264
- default96 as IconPointerDefault,
265
- default97 as IconPointerHand,
266
- default98 as IconPrint,
267
- default100 as IconQuestion,
268
- default99 as IconQuestionMark,
269
- default101 as IconRafterDown,
270
- default102 as IconRafterLeft,
271
- default103 as IconRafterRight,
272
- default104 as IconRafterUp,
273
- default105 as IconReaction,
274
- default106 as IconReadMail,
275
- default110 as IconRecord,
276
- default107 as IconRecordPause,
277
- default108 as IconRecordStop,
278
- default109 as IconRecordVideo,
279
- default111 as IconRedo,
280
- default112 as IconRefresh,
281
- default113 as IconReset,
282
- default114 as IconRestart,
283
- default115 as IconRestore,
284
- default116 as IconSave,
285
- default117 as IconSearch,
286
- default118 as IconSee,
287
- default119 as IconSend,
288
- default120 as IconSetBackground,
289
- default121 as IconSettings,
290
- default122 as IconShare,
291
- default123 as IconSignature,
292
- default124 as IconSmartphone,
293
- default125 as IconSmiley,
294
- default126 as IconSortAscendingLetters,
295
- default128 as IconSortDescending,
296
- default127 as IconSortDescendingLetters,
297
- default129 as IconSortTime,
298
- default130 as IconSpeechToText,
299
- default131 as IconSplitCells,
300
- default132 as IconSquareRoot,
301
- default134 as IconStar,
302
- default133 as IconStarFull,
303
- default135 as IconSubscript,
304
- default136 as IconSuccessFill,
305
- default137 as IconSuccessOutline,
306
- default138 as IconSuperscript,
307
- default139 as IconTable,
308
- default140 as IconTextBold,
309
- default141 as IconTextColor,
310
- default142 as IconTextHighlight,
311
- default143 as IconTextItalic,
312
- default144 as IconTextPage,
313
- default145 as IconTextSize,
314
- default147 as IconTextToSpeech,
315
- default146 as IconTextToSpeechOff,
316
- default148 as IconTextTypo,
317
- default149 as IconTextUnderline,
318
- default150 as IconTextVanilla,
319
- default152 as IconTool,
320
- default151 as IconToolCenter,
321
- default153 as IconTrendingUp,
322
- default155 as IconUndo,
323
- default154 as IconUndoAll,
324
- default156 as IconUnlink,
325
- default157 as IconUnlock,
326
- default158 as IconUnreadMail,
327
- default159 as IconUpload,
328
- default161 as IconUser,
329
- default160 as IconUserSearch,
330
- default162 as IconUsers,
331
- default163 as IconVideo,
332
- default164 as IconViewCalendar,
333
- default165 as IconViewList,
334
- default166 as IconWand,
335
- default167 as IconWrite,
336
- default168 as IconZoomIn,
337
- default169 as IconZoomOut
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: "none", viewBox: "0 0 500 500", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
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("rect", { width: 500, height: 500, fill: "#120D37", rx: 30 }),
9
- /* @__PURE__ */ jsx("path", { fill: "#066", 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" }),
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
- useEffect(() => {
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
- return isOnboarding ? /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: () => setIsOpen(!1), children: [
38
- /* @__PURE__ */ jsx(Modal.Header, { onModalClose: () => setIsOpen(!1), children: t(currentTitle || "explorer.modal.onboarding.trash.title") }),
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: () => setIsOpen(!1), children: t("explorer.modal.onboarding.trash.later") }),
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: handleSavePreference, children: t(closeText || "explorer.modal.onboarding.trash.close") })
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
  };
@@ -1 +1,2 @@
1
1
  export { default as OnboardingModal } from './OnboardingModal';
2
+ export type { OnboardingModalRef } from './OnboardingModal';
@@ -1,4 +1,4 @@
1
- export declare const useOnboardingModal: (id: string) => {
1
+ export declare const useOnboardingModal: (id: string, defaultOpen: boolean) => {
2
2
  isOpen: boolean;
3
3
  setIsOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
4
4
  isOnboarding: boolean;
@@ -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(!0), [isOnboarding, setIsOnboarding] = useState(!1);
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.20250704181048",
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.20250704181048",
134
- "@edifice.io/tiptap-extensions": "2.2.11-develop-enabling.20250704181048",
135
- "@edifice.io/utilities": "2.2.11-develop-enabling.20250704181048"
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/config": "2.2.11-develop-enabling.20250704181048",
167
- "@edifice.io/client": "2.2.11-develop-enabling.20250704181048"
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",