@oliasoft-open-source/react-ui-library 9.5.2-beta-3 → 9.5.2-beta-4

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
@@ -2479,6 +2479,13 @@ export declare const widthOfCharacters: (characterCount: number) => string;
2479
2479
 
2480
2480
  export declare const withChainableErrorBoundary: (options?: ErrorBoundaryOptions) => <P extends object>(Component: ComponentType<P>) => ComponentType<P>;
2481
2481
 
2482
+ export declare function WithErrorBoundary<P extends object>({ Component, options, ...props }: WithErrorBoundaryProps<P>): JSX.Element;
2483
+
2482
2484
  export declare const withErrorBoundary: <T extends ComponentType<any>>(Component: T, options?: ErrorBoundaryOptions) => MemoExoticComponent<(props: ComponentProps<T>) => JSX.Element>;
2483
2485
 
2486
+ declare type WithErrorBoundaryProps<P extends object> = P & {
2487
+ Component: ComponentType<P>;
2488
+ options?: ErrorBoundaryOptions;
2489
+ };
2490
+
2484
2491
  export { }
package/dist/index.js CHANGED
@@ -10156,10 +10156,19 @@ var Wm = (e = {}) => Um({
10156
10156
  }), gh = (e, t = {}) => c((n) => /* @__PURE__ */ S(hh, {
10157
10157
  options: t,
10158
10158
  children: /* @__PURE__ */ S(e, { ...n })
10159
- })), _h = (e = {}) => (t) => gh(t, e), vh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, yh = (e) => {
10159
+ })), _h = (e = {}) => (t) => gh(t, e);
10160
+ function vh({ Component: e, options: t, ...n }) {
10161
+ return /* @__PURE__ */ S(hh, {
10162
+ options: t,
10163
+ children: /* @__PURE__ */ S(e, { ...n })
10164
+ });
10165
+ }
10166
+ //#endregion
10167
+ //#region src/translations/initialize-gui-library.ts
10168
+ var yh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, bh = (e) => {
10160
10169
  jp(Ep.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
10161
- e === Ep.Translations ? jp(e, Op(t)) : jp(e, vh(t) ? t : { ...t });
10170
+ e === Ep.Translations ? jp(e, Op(t)) : jp(e, yh(t) ? t : { ...t });
10162
10171
  });
10163
10172
  };
10164
10173
  //#endregion
10165
- export { Yi as Accordion, _a as AccordionWithDefaultToggle, po as Actions, Di as Align, dh as AuditLog, ro as Badge, _o as Breadcrumb, ho as BreadcrumbLinkType, q as Button, yo as ButtonGroup, Oi as ButtonPosition, xa as ButtonType, xo as Card, pa as CheckBox, Ui as Chevron, Ki as Collapse, Ei as Color, Ho as ColorInput, Vo as ColorInputPopover, qo as Column, is as Dialog, Zp as DiffTable, Vp as DiffViewer, W as DisabledContext, Qo as Divider, ds as Drawer, rp as ElementType, pu as Empty, hh as ErrorBoundary, yd as Field, hd as FileButton, xs as FileInput, bd as Flex, Sd as FormRow, Do as Grid, H as GroupOrder, ts as Heading, fa as HelpIcon, G as Icon, U as IconType, gs as Input, ms as InputGroup, cl as InputGroupAddon, vs as InputReaderMethods, ji as InputType, _d as Label, Fd as List, wd as ListHeading, Ad as ListSubheading, Ld as Loader, mf as Mention, uo as Menu, qa as MenuCarat, Ka as MenuType, Ks as Message, Bs as MessageType, Es as Modal, Qs as NativeSelect, xl as NumberInput, Wd as OptionDropdown, Kd as Page, ll as Pagination, lp as PopConfirm, Co as Popover, qd as Portal, Yd as PrintHeader, ks as ProgressBar, Xd as RadioButton, pf as RichTextInput, gf as Row, nl as Select, Lp as SettingField, xf as SideBar, Cf as Skeleton, jl as Slider, Ps as SmartUploadModal, Ss as Spacer, ba as Spinner, nu as Table, md as TableImportExport, Xf as Tabs, Xo as Text, $f as TextArea, Zf as TextLink, ki as TextTransform, Ai as Theme, ri as Toaster, Qu as Toggle, K as Tooltip, op as TopBar, pp as Tree, Tp as TreeTable, Ti as TriggerType, Uf as UnitInput, qf as UnitSlider, Fp as UnitTable, fh as UsageTracker, Yu as dismissToast, Bf as initializeContext, yh as initializeGuiLibrary, ys as readFile, Ju as toast, $s as useFocus, Cs as useKeyboardEvent, nc as useWindowWidth, _h as withChainableErrorBoundary, gh as withErrorBoundary };
10174
+ export { Yi as Accordion, _a as AccordionWithDefaultToggle, po as Actions, Di as Align, dh as AuditLog, ro as Badge, _o as Breadcrumb, ho as BreadcrumbLinkType, q as Button, yo as ButtonGroup, Oi as ButtonPosition, xa as ButtonType, xo as Card, pa as CheckBox, Ui as Chevron, Ki as Collapse, Ei as Color, Ho as ColorInput, Vo as ColorInputPopover, qo as Column, is as Dialog, Zp as DiffTable, Vp as DiffViewer, W as DisabledContext, Qo as Divider, ds as Drawer, rp as ElementType, pu as Empty, hh as ErrorBoundary, yd as Field, hd as FileButton, xs as FileInput, bd as Flex, Sd as FormRow, Do as Grid, H as GroupOrder, ts as Heading, fa as HelpIcon, G as Icon, U as IconType, gs as Input, ms as InputGroup, cl as InputGroupAddon, vs as InputReaderMethods, ji as InputType, _d as Label, Fd as List, wd as ListHeading, Ad as ListSubheading, Ld as Loader, mf as Mention, uo as Menu, qa as MenuCarat, Ka as MenuType, Ks as Message, Bs as MessageType, Es as Modal, Qs as NativeSelect, xl as NumberInput, Wd as OptionDropdown, Kd as Page, ll as Pagination, lp as PopConfirm, Co as Popover, qd as Portal, Yd as PrintHeader, ks as ProgressBar, Xd as RadioButton, pf as RichTextInput, gf as Row, nl as Select, Lp as SettingField, xf as SideBar, Cf as Skeleton, jl as Slider, Ps as SmartUploadModal, Ss as Spacer, ba as Spinner, nu as Table, md as TableImportExport, Xf as Tabs, Xo as Text, $f as TextArea, Zf as TextLink, ki as TextTransform, Ai as Theme, ri as Toaster, Qu as Toggle, K as Tooltip, op as TopBar, pp as Tree, Tp as TreeTable, Ti as TriggerType, Uf as UnitInput, qf as UnitSlider, Fp as UnitTable, fh as UsageTracker, vh as WithErrorBoundary, Yu as dismissToast, Bf as initializeContext, bh as initializeGuiLibrary, ys as readFile, Ju as toast, $s as useFocus, Cs as useKeyboardEvent, nc as useWindowWidth, _h as withChainableErrorBoundary, gh as withErrorBoundary };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "9.5.2-beta-3",
3
+ "version": "9.5.2-beta-4",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {