@commercelayer/app-elements 4.7.0 → 5.0.0

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.
Files changed (85) hide show
  1. package/dist/{CodeEditorComponent-CupeGuoz.js → CodeEditorComponent-rFiiCHiH.js} +2 -2
  2. package/dist/InputDateComponent-BvT9oDC3.js +5018 -0
  3. package/dist/main-CQtvdM89.js +37045 -0
  4. package/dist/main.js +66 -66
  5. package/dist/providers/CoreSdkProvider/CoreSdkProvider.d.ts +1 -1
  6. package/dist/providers/TokenProvider/MockTokenProvider.d.ts +1 -0
  7. package/dist/providers/createApp.d.ts +2 -2
  8. package/dist/ui/atoms/Avatar.d.ts +1 -0
  9. package/dist/ui/atoms/AvatarLetter/AvatarLetter.d.ts +1 -0
  10. package/dist/ui/atoms/Button.d.ts +1 -0
  11. package/dist/ui/atoms/ButtonFilter.d.ts +1 -0
  12. package/dist/ui/atoms/ButtonImageSelect.d.ts +1 -0
  13. package/dist/ui/atoms/Card.d.ts +26 -2
  14. package/dist/ui/atoms/EmptyState.d.ts +1 -1
  15. package/dist/ui/atoms/Grid.d.ts +1 -1
  16. package/dist/ui/atoms/Hint.d.ts +1 -1
  17. package/dist/ui/atoms/Pagination.d.ts +1 -0
  18. package/dist/ui/atoms/RadialProgress.d.ts +1 -1
  19. package/dist/ui/atoms/RemoveButton.d.ts +1 -0
  20. package/dist/ui/atoms/Skeleton.d.ts +1 -1
  21. package/dist/ui/atoms/SkeletonTemplate.d.ts +3 -3
  22. package/dist/ui/atoms/Spacer.d.ts +1 -1
  23. package/dist/ui/atoms/Stack.d.ts +1 -1
  24. package/dist/ui/atoms/StatusDot.d.ts +1 -0
  25. package/dist/ui/atoms/Table/Td.d.ts +1 -1
  26. package/dist/ui/atoms/Table/Th.d.ts +1 -0
  27. package/dist/ui/atoms/Table/Tr.d.ts +1 -0
  28. package/dist/ui/atoms/Tabs.d.ts +1 -1
  29. package/dist/ui/atoms/Tag.d.ts +1 -1
  30. package/dist/ui/atoms/Text.d.ts +1 -1
  31. package/dist/ui/composite/CardDialog.d.ts +1 -0
  32. package/dist/ui/composite/Dropdown/DropdownItem.d.ts +26 -2
  33. package/dist/ui/composite/HomePageLayout.d.ts +1 -1
  34. package/dist/ui/composite/List.d.ts +1 -1
  35. package/dist/ui/composite/ListDetails.d.ts +1 -1
  36. package/dist/ui/composite/ListDetailsItem.d.ts +1 -1
  37. package/dist/ui/composite/ListItem.d.ts +1 -1
  38. package/dist/ui/composite/PageError.d.ts +1 -0
  39. package/dist/ui/composite/PageLayout.d.ts +1 -1
  40. package/dist/ui/composite/PageSkeleton.d.ts +1 -0
  41. package/dist/ui/composite/Report.d.ts +1 -1
  42. package/dist/ui/composite/Routes/Routes.d.ts +1 -0
  43. package/dist/ui/composite/TableData.d.ts +1 -0
  44. package/dist/ui/forms/CodeEditor/HookedCodeEditor.d.ts +1 -0
  45. package/dist/ui/forms/Form/HookedForm.d.ts +1 -0
  46. package/dist/ui/forms/Input/HookedInput.d.ts +1 -0
  47. package/dist/ui/forms/InputCheckbox/HookedInputCheckbox.d.ts +1 -0
  48. package/dist/ui/forms/InputCheckbox/InputCheckbox.d.ts +1 -0
  49. package/dist/ui/forms/InputCheckboxGroup/InputCheckboxGroupItem.d.ts +1 -1
  50. package/dist/ui/forms/InputCurrency/HookedInputCurrency.d.ts +1 -0
  51. package/dist/ui/forms/InputCurrencyRange.d.ts +1 -0
  52. package/dist/ui/forms/InputDate/HookedInputDate.d.ts +1 -0
  53. package/dist/ui/forms/InputDateRange/HookedInputDateRange.d.ts +1 -0
  54. package/dist/ui/forms/InputFeedback.d.ts +1 -0
  55. package/dist/ui/forms/InputJson.d.ts +1 -0
  56. package/dist/ui/forms/InputRadioGroup/InputRadioGroup.d.ts +1 -1
  57. package/dist/ui/forms/InputResourceGroup/FullList.d.ts +1 -0
  58. package/dist/ui/forms/InputSelect/overrides.d.ts +1 -0
  59. package/dist/ui/forms/InputSimpleSelect/HookedInputSimpleSelect.d.ts +1 -0
  60. package/dist/ui/forms/InputSpinner/HookedInputSpinner.d.ts +1 -0
  61. package/dist/ui/forms/InputSwitch/HookedInputSwitch.d.ts +1 -0
  62. package/dist/ui/forms/InputTextArea/HookedInputTextArea.d.ts +1 -0
  63. package/dist/ui/forms/InputToggleButton/HookedInputToggleButton.d.ts +1 -0
  64. package/dist/ui/forms/InputToggleButton/InputToggleButton.d.ts +1 -0
  65. package/dist/ui/forms/Label.d.ts +1 -0
  66. package/dist/ui/forms/Legend.d.ts +1 -0
  67. package/dist/ui/forms/ReactHookForm/HookedValidationApiError.d.ts +1 -0
  68. package/dist/ui/forms/ReactHookForm/HookedValidationError.d.ts +1 -0
  69. package/dist/ui/internals/FlexRow.d.ts +1 -1
  70. package/dist/ui/resources/ResourceListItem/types.d.ts +1 -0
  71. package/dist/ui/resources/useResourceFilters/FieldCurrencyRange.d.ts +1 -0
  72. package/dist/ui/resources/useResourceFilters/FieldOptions.d.ts +1 -0
  73. package/dist/ui/resources/useResourceFilters/FieldTextSearch.d.ts +1 -0
  74. package/dist/ui/resources/useResourceFilters/FieldTimeRange.d.ts +1 -0
  75. package/dist/ui/resources/useResourceFilters/FiltersForm.d.ts +1 -0
  76. package/dist/ui/resources/useResourceFilters/FiltersNav.d.ts +1 -0
  77. package/dist/ui/resources/useResourceFilters/FiltersSearchBar.d.ts +1 -0
  78. package/dist/ui/resources/useResourceFilters/useResourceFilters.d.ts +1 -0
  79. package/dist/ui/resources/useResourceList/VisibilityTrigger.d.ts +1 -1
  80. package/dist/ui/resources/useResourceList/useResourceList.d.ts +1 -1
  81. package/dist/utils/children.d.ts +1 -1
  82. package/dist/utils/htmltags.d.ts +1 -0
  83. package/package.json +16 -16
  84. package/dist/InputDateComponent-BbAvvqrH.js +0 -6346
  85. package/dist/main-BqLNx3jG.js +0 -42731
package/dist/main.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { ab as s, aR as t, aS as o, ac as r, ad as n, ae as u, af as c, ag as i, ah as d, ai as l, aj as p, aT as b, ak as g, be as m, al as S, am as I, Y as k, aU as T, aV as D, aW as R, aX as y, an as h, a0 as C, a1 as A, b7 as P, ao as H, ap as F, aY as v, bf as f, bg as B, bh as L, bj as O, bl as E, bo as N, br as G, bt as M, by as w, bA as x, bF as V, bK as W, bM as J, bO as U, bQ as q, bS as Y, bW as j, bX as z, bY as K, aq as Q, a4 as X, ar as Z, bi as _, bk as $, bm as aa, bp as ea, bq as sa, bs as ta, bu as oa, bv as ra, bw as na, bx as ua, bz as ca, bB as ia, bG as da, bL as la, bN as pa, bP as ba, bR as ga, bT as ma, bU as Sa, bV as Ia, aZ as ka, a_ as Ta, a$ as Da, b0 as Ra, b8 as ya, a9 as ha, b1 as Ca, as as Aa, b2 as Pa, b3 as Ha, at as Fa, au as va, av as fa, aw as Ba, b4 as La, c0 as Oa, c1 as Ea, c3 as Na, c4 as Ga, c5 as Ma, c6 as wa, c7 as xa, c8 as Va, ca as Wa, cb as Ja, cc as Ua, b9 as qa, ax as Ya, ba as ja, ay as za, az as Ka, aA as Qa, aB as Xa, aD as Za, aE as _a, aF as $a, aG as ae, aH as ee, aM as se, aI as te, bb as oe, aN as re, aO as ne, aJ as ue, aP as ce, aK as ie, bc as de, aa as le, bd as pe, aQ as be, aL as ge, a6 as me, B as Se, $ as Ie, b5 as ke, b6 as Te, h as De, k as Re, A as ye, a8 as he, bD as Ce, bn as Ae, l as Pe, m as He, p as Fe, C as ve, D as fe, F as Be, cf as Le, cg as Oe, bE as Ee, q as Ne, s as Ge, t as Me, ch as we, ci as xe, cj as Ve, ck as We, cl as Je, G as Ue, H as qe, c9 as Ye, cm as je, b$ as ze, E as Ke, cn as Qe, co as Xe, cp as Ze, J as _e, K as $e, cq as as, cr as es, cs as ss, N as ts, O as os, e as rs, L as ns, M as us, a3 as cs, i as is, bH as ds, bI as ls, bJ as ps, v as bs, n as gs, r as ms, x as Ss, bZ as Is, y as ks, a5 as Ts, z as Ds, P as Rs, Q as ys, Z as hs, _ as Cs, S as As, T as Ps, U as Hs, bC as Fs, V as vs, W as fs, X as Bs, c2 as Ls, cd as Os, ce as Es, a2 as Ns, u as Gs, a7 as Ms, b_ as ws, aC as xs } from "./main-BqLNx3jG.js";
2
+ import { aI as s, bm as t, bn as o, aJ as r, aK as c, aL as n, aM as u, aN as i, aO as d, aP as l, aQ as p, bo as b, aR as g, bL as m, aS as S, aT as I, at as k, bp as T, bq as R, br as D, bs as y, aU as h, ax as C, ay as A, bE as P, aV as H, aW as F, bt as v, bM as f, bN as B, bO as L, bQ as O, bS as E, bV as N, bY as G, b_ as w, c3 as M, c5 as V, ca as x, cf as W, ch as U, cj as J, cl as Y, cn as X, cr as Z, cs as j, ct as q, aX as z, aB as K, aY as Q, bP as _, bR as $, bT as aa, bW as ea, bX as sa, bZ as ta, b$ as oa, c0 as ra, c1 as ca, c2 as na, c4 as ua, c6 as ia, cb as da, cg as la, ci as pa, ck as ba, cm as ga, co as ma, cp as Sa, cq as Ia, bu as ka, bv as Ta, bw as Ra, bx as Da, bF as ya, aG as ha, by as Ca, aZ as Aa, bz as Pa, bA as Ha, a_ as Fa, a$ as va, b0 as fa, b1 as Ba, bB as La, cx as Oa, cy as Ea, cA as Na, cB as Ga, cC as wa, cD as Ma, cE as Va, cF as xa, cH as Wa, cI as Ua, cJ as Ja, bG as Ya, b2 as Xa, bH as Za, b3 as ja, b4 as qa, b5 as za, b6 as Ka, b8 as Qa, b9 as _a, ba as $a, bb as ae, bc as ee, bh as se, bd as te, bI as oe, bi as re, bj as ce, be as ne, bk as ue, bf as ie, bJ as de, aH as le, bK as pe, bl as be, bg as ge, aD as me, a8 as Se, aw as Ie, bC as ke, bD as Te, X as Re, Y as De, a7 as ye, aF as he, c8 as Ce, bU as Ae, Z as Pe, _ as He, $ as Fe, a9 as ve, aa as fe, ac as Be, cM as Le, cN as Oe, c9 as Ee, a0 as Ne, a1 as Ge, a2 as we, cO as Me, cP as Ve, cQ as xe, cR as We, cS as Ue, ad as Je, ae as Ye, cG as Xe, cT as Ze, cw as je, ab as qe, cU as ze, cV as Ke, cW as Qe, af as _e, ag as $e, cX as as, cY as es, cZ as ss, aj as ts, ak as os, T as rs, ah as cs, ai as ns, aA as us, V as is, cc as ds, cd as ls, ce as ps, a3 as bs, U as gs, W as ms, a4 as Ss, cu as Is, a5 as ks, aC as Ts, a6 as Rs, al as Ds, am as ys, au as hs, av as Cs, an as As, ao as Ps, ap as Hs, c7 as Fs, aq as vs, ar as fs, as as Bs, cz as Ls, cK as Os, cL as Es, az as Ns, u as Gs, aE as ws, cv as Ms, b7 as Vs } from "./main-CQtvdM89.js";
3
3
  export {
4
4
  s as A,
5
5
  t as ActionButtons,
6
6
  o as Address,
7
7
  r as Alert,
8
- n as Avatar,
9
- u as AvatarLetter,
10
- c as Badge,
8
+ c as Avatar,
9
+ n as AvatarLetter,
10
+ u as Badge,
11
11
  i as Button,
12
12
  d as ButtonFilter,
13
13
  l as ButtonImageSelect,
@@ -19,8 +19,8 @@ export {
19
19
  I as CopyToClipboard,
20
20
  k as CoreSdkProvider,
21
21
  T as Dropdown,
22
- D as DropdownDivider,
23
- R as DropdownItem,
22
+ R as DropdownDivider,
23
+ D as DropdownItem,
24
24
  y as DropdownSearch,
25
25
  h as EmptyState,
26
26
  C as ErrorBoundary,
@@ -36,21 +36,21 @@ export {
36
36
  E as HookedInputCheckboxGroup,
37
37
  N as HookedInputCurrency,
38
38
  G as HookedInputDate,
39
- M as HookedInputDateRange,
40
- w as HookedInputRadioGroup,
41
- x as HookedInputResourceGroup,
42
- V as HookedInputSelect,
39
+ w as HookedInputDateRange,
40
+ M as HookedInputRadioGroup,
41
+ V as HookedInputResourceGroup,
42
+ x as HookedInputSelect,
43
43
  W as HookedInputSimpleSelect,
44
- J as HookedInputSpinner,
45
- U as HookedInputSwitch,
46
- q as HookedInputTextArea,
47
- Y as HookedInputToggleButton,
48
- j as HookedMarketWithCurrencySelector,
49
- z as HookedValidationApiError,
50
- K as HookedValidationError,
51
- Q as Hr,
52
- X as I18NProvider,
53
- Z as Icon,
44
+ U as HookedInputSpinner,
45
+ J as HookedInputSwitch,
46
+ Y as HookedInputTextArea,
47
+ X as HookedInputToggleButton,
48
+ Z as HookedMarketWithCurrencySelector,
49
+ j as HookedValidationApiError,
50
+ q as HookedValidationError,
51
+ z as Hr,
52
+ K as I18NProvider,
53
+ Q as Icon,
54
54
  _ as Input,
55
55
  $ as InputCheckbox,
56
56
  aa as InputCheckboxGroup,
@@ -59,9 +59,9 @@ export {
59
59
  ta as InputDate,
60
60
  oa as InputDateRange,
61
61
  ra as InputFeedback,
62
- na as InputFile,
63
- ua as InputJson,
64
- ca as InputRadioGroup,
62
+ ca as InputFile,
63
+ na as InputJson,
64
+ ua as InputRadioGroup,
65
65
  ia as InputResourceGroup,
66
66
  da as InputSelect,
67
67
  la as InputSimpleSelect,
@@ -73,8 +73,8 @@ export {
73
73
  Ia as Legend,
74
74
  ka as List,
75
75
  Ta as ListDetails,
76
- Da as ListDetailsItem,
77
- Ra as ListItem,
76
+ Ra as ListDetailsItem,
77
+ Da as ListItem,
78
78
  ya as LoadingPage,
79
79
  ha as MetaTags,
80
80
  Ca as PageError,
@@ -90,21 +90,21 @@ export {
90
90
  Ea as ResourceAddressFormFields,
91
91
  Na as ResourceAttachments,
92
92
  Ga as ResourceDetails,
93
- Ma as ResourceLineItems,
94
- wa as ResourceListItem,
95
- xa as ResourceMetadata,
96
- Va as ResourceOrderTimeline,
93
+ wa as ResourceLineItems,
94
+ Ma as ResourceListItem,
95
+ Va as ResourceMetadata,
96
+ xa as ResourceOrderTimeline,
97
97
  Wa as ResourcePaymentMethod,
98
- Ja as ResourceShipmentParcels,
99
- Ua as ResourceTags,
100
- qa as Routes,
101
- Ya as ScrollToTop,
102
- ja as SearchBar,
103
- za as Section,
104
- Ka as Skeleton,
105
- Qa as SkeletonItem,
106
- Xa as SkeletonTemplate,
107
- Za as Spacer,
98
+ Ua as ResourceShipmentParcels,
99
+ Ja as ResourceTags,
100
+ Ya as Routes,
101
+ Xa as ScrollToTop,
102
+ Za as SearchBar,
103
+ ja as Section,
104
+ qa as Skeleton,
105
+ za as SkeletonItem,
106
+ Ka as SkeletonTemplate,
107
+ Qa as Spacer,
108
108
  _a as Stack,
109
109
  $a as StatusDot,
110
110
  ae as StatusIcon,
@@ -113,9 +113,9 @@ export {
113
113
  te as Table,
114
114
  oe as TableData,
115
115
  re as Tabs,
116
- ne as Tag,
117
- ue as Td,
118
- ce as Text,
116
+ ce as Tag,
117
+ ne as Td,
118
+ ue as Text,
119
119
  ie as Th,
120
120
  de as Timeline,
121
121
  le as TokenProvider,
@@ -127,8 +127,8 @@ export {
127
127
  Ie as createApp,
128
128
  ke as createRoute,
129
129
  Te as createTypedRoute,
130
- De as currencies,
131
- Re as currencyInputSelectOptions,
130
+ Re as currencies,
131
+ De as currencyInputSelectOptions,
132
132
  ye as downloadJsonAsFile,
133
133
  he as encodeExtras,
134
134
  Ce as flatSelectValues,
@@ -144,21 +144,21 @@ export {
144
144
  Ee as getDefaultValueFromFlatten,
145
145
  Ne as getEventDateInfo,
146
146
  Ge as getIsoDateAtDayEdge,
147
- Me as getIsoDateAtDaysBefore,
148
- we as getOrderDisplayStatus,
149
- xe as getOrderFulfillmentStatusName,
150
- Ve as getOrderPaymentStatusName,
147
+ we as getIsoDateAtDaysBefore,
148
+ Me as getOrderDisplayStatus,
149
+ Ve as getOrderFulfillmentStatusName,
150
+ xe as getOrderPaymentStatusName,
151
151
  We as getOrderStatusName,
152
- Je as getOrderTransactionName,
153
- Ue as getParcelTrackingDetail,
154
- qe as getParcelTrackingDetails,
155
- Ye as getPaymentMethodLogoSrc,
156
- je as getPromotionDisplayStatus,
157
- ze as getResourceAddressFormFieldsSchema,
158
- Ke as getResourceEndpoint,
159
- Qe as getReturnDisplayStatus,
160
- Xe as getReturnStatusName,
161
- Ze as getShipmentDisplayStatus,
152
+ Ue as getOrderTransactionName,
153
+ Je as getParcelTrackingDetail,
154
+ Ye as getParcelTrackingDetails,
155
+ Xe as getPaymentMethodLogoSrc,
156
+ Ze as getPromotionDisplayStatus,
157
+ je as getResourceAddressFormFieldsSchema,
158
+ qe as getResourceEndpoint,
159
+ ze as getReturnDisplayStatus,
160
+ Ke as getReturnStatusName,
161
+ Qe as getShipmentDisplayStatus,
162
162
  _e as getShipmentRate,
163
163
  $e as getShipmentRates,
164
164
  as as getShipmentStatusName,
@@ -167,9 +167,9 @@ export {
167
167
  ts as getUnitOfWeightName,
168
168
  os as getUnitsOfWeightForSelect,
169
169
  rs as goBack,
170
- ns as hasBeenPurchased,
171
- us as hasSingleTracking,
172
- cs as i18nLocales,
170
+ cs as hasBeenPurchased,
171
+ ns as hasSingleTracking,
172
+ us as i18nLocales,
173
173
  is as isAttachmentValidNote,
174
174
  ds as isGroupedSelectValues,
175
175
  ls as isMultiValueSelected,
@@ -181,8 +181,8 @@ export {
181
181
  Is as setApiFormErrors,
182
182
  ks as sortAndGroupByDate,
183
183
  Ts as t,
184
- Ds as timeSeparator,
185
- Rs as useAppLinking,
184
+ Rs as timeSeparator,
185
+ Ds as useAppLinking,
186
186
  ys as useClickAway,
187
187
  hs as useCoreApi,
188
188
  Cs as useCoreSdkProvider,
@@ -198,7 +198,7 @@ export {
198
198
  Es as useResourceList,
199
199
  Ns as useTagManager,
200
200
  Gs as useTokenProvider,
201
- Ms as useTranslation,
202
- ws as useValidationFeedback,
203
- xs as withSkeletonTemplate
201
+ ws as useTranslation,
202
+ Ms as useValidationFeedback,
203
+ Vs as withSkeletonTemplate
204
204
  };
@@ -1,5 +1,5 @@
1
1
  import { CommerceLayerClient } from '@commercelayer/sdk';
2
- import { ReactNode } from 'react';
2
+ import { JSX, ReactNode } from 'react';
3
3
  interface CoreSdkProviderValue {
4
4
  /**
5
5
  * Valid SDK client
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { TokenProviderProps } from './TokenProvider';
2
3
  export declare function MockTokenProvider({ children, isInDashboard, onAppClose }: TokenProviderProps): JSX.Element;
3
4
  export declare namespace MockTokenProvider {
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { Root } from 'react-dom/client';
3
3
  import { TokenProviderAllowedApp } from './TokenProvider';
4
4
  import { TokenProviderProps } from './TokenProvider/TokenProvider';
@@ -31,5 +31,5 @@ export interface ClAppProps extends Partial<Omit<TokenProviderProps, 'appSlug' |
31
31
  * The React application will them be mounted into the provided `node` element, when the `init` method is called.
32
32
  * @param children - The root component of the app.
33
33
  **/
34
- export declare function createApp(children: FC<ClAppProps>, appSlug: TokenProviderAllowedApp): void;
34
+ export declare function createApp(children: (props: ClAppProps) => ReactNode, appSlug: TokenProviderAllowedApp): void;
35
35
  export {};
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { presets } from './Avatar.utils';
2
3
  type SrcPreset = keyof typeof presets;
3
4
  type SrcUrl = `https://${string}` | `data:image/${string}`;
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  export interface AvatarLetterProps {
2
3
  /**
3
4
  * Text to be used to generate initials
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { InteractiveElementProps } from '../internals/InteractiveElement.className';
2
3
  export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & InteractiveElementProps;
3
4
  /**
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { StatusIconProps } from './StatusIcon';
2
3
  export interface ButtonFilterProps extends React.HTMLAttributes<HTMLDivElement> {
3
4
  onClick?: () => void;
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  interface ButtonImage {
2
3
  src: string;
3
4
  alt: string;
@@ -39,7 +39,7 @@ export declare const Card: import('./SkeletonTemplate').SkeletonTemplateComponen
39
39
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
40
40
  autoFocus?: boolean | undefined | undefined;
41
41
  className?: string | undefined | undefined;
42
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
42
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
43
43
  contextMenu?: string | undefined | undefined;
44
44
  dir?: string | undefined | undefined;
45
45
  draggable?: (boolean | "true" | "false") | undefined;
@@ -78,6 +78,10 @@ export declare const Card: import('./SkeletonTemplate').SkeletonTemplateComponen
78
78
  results?: number | undefined | undefined;
79
79
  security?: string | undefined | undefined;
80
80
  unselectable?: "on" | "off" | undefined | undefined;
81
+ popover?: "" | "auto" | "manual" | undefined | undefined;
82
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
83
+ popoverTarget?: string | undefined | undefined;
84
+ inert?: boolean | undefined | undefined;
81
85
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
82
86
  is?: string | undefined | undefined;
83
87
  children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
@@ -309,8 +313,16 @@ export declare const Card: import('./SkeletonTemplate').SkeletonTemplateComponen
309
313
  onAnimationEndCapture?: import('react').AnimationEventHandler<HTMLElement> | undefined;
310
314
  onAnimationIteration?: import('react').AnimationEventHandler<HTMLElement> | undefined;
311
315
  onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLElement> | undefined;
316
+ onToggle?: import('react').ToggleEventHandler<HTMLElement> | undefined;
317
+ onBeforeToggle?: import('react').ToggleEventHandler<HTMLElement> | undefined;
318
+ onTransitionCancel?: import('react').TransitionEventHandler<HTMLElement> | undefined;
319
+ onTransitionCancelCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
312
320
  onTransitionEnd?: import('react').TransitionEventHandler<HTMLElement> | undefined;
313
321
  onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
322
+ onTransitionRun?: import('react').TransitionEventHandler<HTMLElement> | undefined;
323
+ onTransitionRunCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
324
+ onTransitionStart?: import('react').TransitionEventHandler<HTMLElement> | undefined;
325
+ onTransitionStartCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
314
326
  href?: string | undefined | undefined;
315
327
  footer?: import('react').ReactNode;
316
328
  backgroundColor?: "light" | undefined;
@@ -332,7 +344,7 @@ export declare const Card: import('./SkeletonTemplate').SkeletonTemplateComponen
332
344
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
333
345
  autoFocus?: boolean | undefined | undefined;
334
346
  className?: string | undefined | undefined;
335
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
347
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
336
348
  contextMenu?: string | undefined | undefined;
337
349
  dir?: string | undefined | undefined;
338
350
  draggable?: (boolean | "true" | "false") | undefined;
@@ -371,6 +383,10 @@ export declare const Card: import('./SkeletonTemplate').SkeletonTemplateComponen
371
383
  results?: number | undefined | undefined;
372
384
  security?: string | undefined | undefined;
373
385
  unselectable?: "on" | "off" | undefined | undefined;
386
+ popover?: "" | "auto" | "manual" | undefined | undefined;
387
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
388
+ popoverTarget?: string | undefined | undefined;
389
+ inert?: boolean | undefined | undefined;
374
390
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
375
391
  is?: string | undefined | undefined;
376
392
  children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
@@ -602,8 +618,16 @@ export declare const Card: import('./SkeletonTemplate').SkeletonTemplateComponen
602
618
  onAnimationEndCapture?: import('react').AnimationEventHandler<HTMLElement> | undefined;
603
619
  onAnimationIteration?: import('react').AnimationEventHandler<HTMLElement> | undefined;
604
620
  onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLElement> | undefined;
621
+ onToggle?: import('react').ToggleEventHandler<HTMLElement> | undefined;
622
+ onBeforeToggle?: import('react').ToggleEventHandler<HTMLElement> | undefined;
623
+ onTransitionCancel?: import('react').TransitionEventHandler<HTMLElement> | undefined;
624
+ onTransitionCancelCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
605
625
  onTransitionEnd?: import('react').TransitionEventHandler<HTMLElement> | undefined;
606
626
  onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
627
+ onTransitionRun?: import('react').TransitionEventHandler<HTMLElement> | undefined;
628
+ onTransitionRunCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
629
+ onTransitionStart?: import('react').TransitionEventHandler<HTMLElement> | undefined;
630
+ onTransitionStartCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
607
631
  href?: string | undefined | undefined;
608
632
  footer?: import('react').ReactNode;
609
633
  backgroundColor?: "light" | undefined;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { JSX, ReactNode } from 'react';
2
2
  import { StatusIconProps } from './StatusIcon';
3
3
  export interface EmptyStateProps {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { default as React, JSX, ReactNode } from 'react';
2
2
  export interface GridProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
3
3
  /**
4
4
  * Grid items
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { JSX, ReactNode } from 'react';
2
2
  import { IconProps } from './Icon';
3
3
  export interface HintProps {
4
4
  icon?: IconProps['name'];
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  export interface PaginationProps {
2
3
  /**
3
4
  * CSS classes
@@ -1,4 +1,4 @@
1
- import { SVGAttributes } from 'react';
1
+ import { JSX, SVGAttributes } from 'react';
2
2
  import { StatusIconProps } from './StatusIcon';
3
3
  export interface RadialProgressProps extends SVGAttributes<SVGElement> {
4
4
  /**
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  export interface RemoveButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
2
3
  }
3
4
  /** Remove button is simply a button with attached an icon that highlight the functionality. */
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { JSX, ReactNode } from 'react';
2
2
  export interface SkeletonProps {
3
3
  /**
4
4
  * This prevents Skeleton to appear immediately.
@@ -1,6 +1,6 @@
1
- import { FC, FunctionComponent, ReactNode, ReactPortal } from 'react';
1
+ import { FunctionComponent, ReactNode, ReactPortal } from 'react';
2
2
  import { Simplify } from 'type-fest';
3
- type ReactNodeNoPortal = Exclude<ReactNode, ReactPortal>;
3
+ type ReactNodeNoPortal = Exclude<Awaited<ReactNode>, ReactPortal>;
4
4
  export type SkeletonTemplateProps<P = Record<string, unknown>> = Simplify<P & {
5
5
  /**
6
6
  * This prevents `SkeletonTemplate` to appear immediately.
@@ -16,7 +16,7 @@ export type SkeletonTemplateProps<P = Record<string, unknown>> = Simplify<P & {
16
16
  export interface SkeletonTemplateComponent<P = Record<string, unknown>> extends FunctionComponent<P> {
17
17
  isSkeletonTemplate: true;
18
18
  }
19
- export declare function withSkeletonTemplate<P>(Element: FC<SkeletonTemplateProps<P>>): SkeletonTemplateComponent<SkeletonTemplateProps<P>>;
19
+ export declare function withSkeletonTemplate<P>(Element: (props: SkeletonTemplateProps<P>) => ReactNode): SkeletonTemplateComponent<SkeletonTemplateProps<P>>;
20
20
  declare const SkeletonTemplate: SkeletonTemplateComponent<SkeletonTemplateProps<{
21
21
  children: ReactNodeNoPortal;
22
22
  }>>;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { JSX, ReactNode } from 'react';
2
2
  export interface SpacerProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  /**
4
4
  * Value to be applied as `margin-top`
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { JSX, ReactNode } from 'react';
2
2
  export interface StackProps {
3
3
  children: ReactNode;
4
4
  }
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  type DotVariant = 'success' | 'danger' | 'warning';
2
3
  export interface StatusDotProps {
3
4
  variant: DotVariant;
@@ -1,6 +1,6 @@
1
1
  import { SkeletonTemplateProps } from '../SkeletonTemplate';
2
2
  export interface TdProps extends React.TdHTMLAttributes<HTMLElement>, SkeletonTemplateProps {
3
- children?: React.ReactNode;
3
+ children?: Awaited<React.ReactNode>;
4
4
  textEllipsis?: number;
5
5
  }
6
6
  export declare const Td: React.FC<TdProps>;
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  export interface ThProps extends React.ThHTMLAttributes<HTMLElement> {
2
3
  children?: React.ReactNode;
3
4
  }
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  export interface TrProps extends React.HTMLAttributes<HTMLElement> {
2
3
  children?: React.ReactNode;
3
4
  }
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { default as React, JSX, ReactNode } from 'react';
2
2
  export interface TabsProps {
3
3
  /**
4
4
  * Used for accessability
@@ -1,5 +1,5 @@
1
1
  import { FlexRowProps } from '../internals/FlexRow';
2
- import { FC } from 'react';
2
+ import { FC, JSX } from 'react';
3
3
  type Props = Pick<FlexRowProps, 'children'> & {
4
4
  /**
5
5
  * Icon component
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { JSX, ReactNode } from 'react';
2
2
  type TextVariant = 'danger' | 'success' | 'primary' | 'warning' | 'info' | 'plain' | 'disabled';
3
3
  type TextSize = 'small' | 'regular' | 'large' | 'inherit';
4
4
  type TextWeight = 'regular' | 'medium' | 'semibold' | 'bold' | 'inherit';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  export interface CardDialogProps {
2
3
  /**
3
4
  * Card title
@@ -27,7 +27,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
27
27
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
28
28
  autoFocus?: boolean | undefined | undefined;
29
29
  className?: string | undefined | undefined;
30
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
30
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
31
31
  contextMenu?: string | undefined | undefined;
32
32
  dir?: string | undefined | undefined;
33
33
  draggable?: (boolean | "true" | "false") | undefined;
@@ -66,6 +66,10 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
66
66
  results?: number | undefined | undefined;
67
67
  security?: string | undefined | undefined;
68
68
  unselectable?: "on" | "off" | undefined | undefined;
69
+ popover?: "" | "auto" | "manual" | undefined | undefined;
70
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
71
+ popoverTarget?: string | undefined | undefined;
72
+ inert?: boolean | undefined | undefined;
69
73
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
70
74
  is?: string | undefined | undefined;
71
75
  children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
@@ -297,8 +301,16 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
297
301
  onAnimationEndCapture?: import('react').AnimationEventHandler<HTMLElement> | undefined;
298
302
  onAnimationIteration?: import('react').AnimationEventHandler<HTMLElement> | undefined;
299
303
  onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLElement> | undefined;
304
+ onToggle?: import('react').ToggleEventHandler<HTMLElement> | undefined;
305
+ onBeforeToggle?: import('react').ToggleEventHandler<HTMLElement> | undefined;
306
+ onTransitionCancel?: import('react').TransitionEventHandler<HTMLElement> | undefined;
307
+ onTransitionCancelCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
300
308
  onTransitionEnd?: import('react').TransitionEventHandler<HTMLElement> | undefined;
301
309
  onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
310
+ onTransitionRun?: import('react').TransitionEventHandler<HTMLElement> | undefined;
311
+ onTransitionRunCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
312
+ onTransitionStart?: import('react').TransitionEventHandler<HTMLElement> | undefined;
313
+ onTransitionStartCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
302
314
  label: string;
303
315
  info?: string | undefined;
304
316
  icon?: (IconProps["name"] | "keep-space") | undefined;
@@ -315,7 +327,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
315
327
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
316
328
  autoFocus?: boolean | undefined | undefined;
317
329
  className?: string | undefined | undefined;
318
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
330
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
319
331
  contextMenu?: string | undefined | undefined;
320
332
  dir?: string | undefined | undefined;
321
333
  draggable?: (boolean | "true" | "false") | undefined;
@@ -354,6 +366,10 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
354
366
  results?: number | undefined | undefined;
355
367
  security?: string | undefined | undefined;
356
368
  unselectable?: "on" | "off" | undefined | undefined;
369
+ popover?: "" | "auto" | "manual" | undefined | undefined;
370
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
371
+ popoverTarget?: string | undefined | undefined;
372
+ inert?: boolean | undefined | undefined;
357
373
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
358
374
  is?: string | undefined | undefined;
359
375
  children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
@@ -585,8 +601,16 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
585
601
  onAnimationEndCapture?: import('react').AnimationEventHandler<HTMLElement> | undefined;
586
602
  onAnimationIteration?: import('react').AnimationEventHandler<HTMLElement> | undefined;
587
603
  onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLElement> | undefined;
604
+ onToggle?: import('react').ToggleEventHandler<HTMLElement> | undefined;
605
+ onBeforeToggle?: import('react').ToggleEventHandler<HTMLElement> | undefined;
606
+ onTransitionCancel?: import('react').TransitionEventHandler<HTMLElement> | undefined;
607
+ onTransitionCancelCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
588
608
  onTransitionEnd?: import('react').TransitionEventHandler<HTMLElement> | undefined;
589
609
  onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
610
+ onTransitionRun?: import('react').TransitionEventHandler<HTMLElement> | undefined;
611
+ onTransitionRunCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
612
+ onTransitionStart?: import('react').TransitionEventHandler<HTMLElement> | undefined;
613
+ onTransitionStartCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
590
614
  label: string;
591
615
  info?: string | undefined;
592
616
  icon?: (IconProps["name"] | "keep-space") | undefined;
@@ -1,6 +1,6 @@
1
1
  import { PageHeadingProps } from '../atoms/PageHeading';
2
2
  import { PageHeadingToolbarProps } from '../atoms/PageHeading/PageHeadingToolbar';
3
- import { ReactNode } from 'react';
3
+ import { JSX, ReactNode } from 'react';
4
4
  export interface HomePageLayoutProps extends Pick<PageHeadingProps, 'title'> {
5
5
  /**
6
6
  * Page content
@@ -1,5 +1,5 @@
1
1
  import { PaginationProps } from '../atoms/Pagination';
2
- import { ReactNode } from 'react';
2
+ import { JSX, ReactNode } from 'react';
3
3
  type ListPagination = {
4
4
  recordsPerPage: number;
5
5
  recordCount: number;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { JSX, ReactNode } from 'react';
2
2
  export interface ListDetailsProps {
3
3
  /**
4
4
  * Optional title to show on top of the list
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { JSX, ReactNode } from 'react';
2
2
  export interface ListDetailsItemProps {
3
3
  /**
4
4
  * label to show on the left side. In a key/value pair, this is the `key`
@@ -1,5 +1,5 @@
1
1
  import { FlexRowProps } from '../internals/FlexRow';
2
- import { FC } from 'react';
2
+ import { FC, JSX } from 'react';
3
3
  type ListItemVariant = 'list' | 'boxed';
4
4
  export type ListItemProps = React.HTMLAttributes<HTMLElement> & Pick<FlexRowProps, 'alignItems' | 'children'> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href'> & {
5
5
  /**
@@ -1,4 +1,5 @@
1
1
  import { PageHeadingProps } from '../atoms/PageHeading';
2
+ import { JSX } from 'react';
2
3
  export interface PageErrorProps extends Pick<PageHeadingProps, 'navigationButton'> {
3
4
  /**
4
5
  * Main page title wrapped in a h1 element