@tactics/lokaal-loket 0.0.506 → 0.0.507

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.d.cts CHANGED
@@ -362,13 +362,12 @@ declare enum Position {
362
362
  AFTER = "AFTER"
363
363
  }
364
364
 
365
- interface ILink {
365
+ interface ILink extends PropsWithChildren {
366
366
  id?: string;
367
367
  title: string;
368
368
  href: string;
369
369
  onClick?: React__default.MouseEventHandler<HTMLAnchorElement>;
370
370
  ariaLabel: string;
371
- children?: string;
372
371
  context?: LinkContext;
373
372
  withIconBefore?: React__default.ReactElement<IIcon>;
374
373
  withIconAfter?: React__default.ReactElement<IIcon>;
@@ -402,19 +401,17 @@ declare enum ButtonType {
402
401
  }
403
402
 
404
403
  type ClickHandler$1 = (event: React__default.MouseEvent<HTMLAnchorElement | HTMLButtonElement> | React__default.KeyboardEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
405
- interface IButtonMinimal {
404
+ interface IButtonMinimal extends PropsWithChildren {
406
405
  id?: string;
407
406
  title: string;
408
407
  ariaLabel: string;
409
408
  onClick?: ClickHandler$1;
410
- children?: string;
411
409
  }
412
- interface IButton {
410
+ interface IButton extends PropsWithChildren {
413
411
  id?: string;
414
412
  title: string;
415
413
  ariaLabel: string;
416
414
  onClick?: ClickHandler$1;
417
- children?: string;
418
415
  withIconBefore?: React__default.ReactElement<IIcon>;
419
416
  withIconAfter?: React__default.ReactElement<IIcon>;
420
417
  type?: ButtonType;
@@ -504,8 +501,7 @@ declare enum TextAlignment {
504
501
  RIGHT = "RIGHT"
505
502
  }
506
503
 
507
- interface IPlainText {
508
- children?: string;
504
+ interface IPlainText extends PropsWithChildren {
509
505
  size?: TypographyFontKey;
510
506
  font?: TypographyFontsKey;
511
507
  fontWeight?: TypographyFontWeightKey;
@@ -1596,7 +1592,7 @@ interface IFormElement {
1596
1592
  declare const FormElement: ({ label, input, description, required }: IFormElement) => react_jsx_runtime.JSX.Element;
1597
1593
 
1598
1594
  interface IFormMessage {
1599
- messages: string[];
1595
+ messages: React__default.ReactNode[];
1600
1596
  type: string;
1601
1597
  icon?: React__default.ReactElement<IIcon>;
1602
1598
  remove?: React__default.ReactElement<IIcon>;
@@ -2170,15 +2166,23 @@ declare const SearchInputsLabelWithIcon: ({ label, description, icon, prominent
2170
2166
 
2171
2167
  declare const SearchInputs: ({ location, route, name, overlay, onChanged, onInputOpen, activeInput, submit, }: ISearchInputs) => react_jsx_runtime.JSX.Element;
2172
2168
 
2169
+ interface IConfirm {
2170
+ title: React__default.ReactNode;
2171
+ description: React__default.ReactNode;
2172
+ cancel?: React__default.ReactElement<IButton>;
2173
+ confirm: React__default.ReactElement<IButton>;
2174
+ }
2175
+
2173
2176
  interface ICard {
2174
2177
  swipe?: React__default.ReactNode;
2175
2178
  badge: React__default.ReactElement<IBadge>;
2179
+ href: string;
2176
2180
  title: string;
2177
2181
  subtitle?: string;
2178
2182
  info?: React__default.ReactElement<ILabeledIcon>[] | React__default.ReactElement<ILabeledIcon>;
2179
2183
  labels?: React__default.ReactElement<ILabel>[];
2180
2184
  features?: React__default.ReactElement<IFeatures>;
2181
- action?: React__default.ReactElement<IButton>;
2185
+ actions?: React__default.ReactNode;
2182
2186
  favorite?: React__default.ReactElement<ICardFavorite>;
2183
2187
  application?: React__default.ReactElement<ICardApplication | IButton>;
2184
2188
  onMouseEnter?: (event: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
@@ -2194,11 +2198,12 @@ interface ICardApplication {
2194
2198
  remove: React__default.ReactElement<IButton>;
2195
2199
  add: React__default.ReactElement<IButton>;
2196
2200
  inApp: boolean;
2201
+ modal?: React__default.ReactElement<IConfirm>;
2197
2202
  }
2198
2203
 
2199
2204
  declare const CardFavorite: (props: ICardFavorite) => react_jsx_runtime.JSX.Element;
2200
2205
 
2201
- declare const CardApplication: (props: ICardApplication) => react_jsx_runtime.JSX.Element;
2206
+ declare const CardApplication: ({ inApp, add, remove, modal }: ICardApplication) => react_jsx_runtime.JSX.Element;
2202
2207
 
2203
2208
  declare const Card: (props: ICard) => react_jsx_runtime.JSX.Element;
2204
2209
 
@@ -2210,7 +2215,15 @@ interface IMinimalCard {
2210
2215
 
2211
2216
  declare const MinimalCard: (props: IMinimalCard) => react_jsx_runtime.JSX.Element;
2212
2217
 
2213
- interface IListCard {
2218
+ declare enum ListCardContext {
2219
+ STANDARD = "STANDARD",
2220
+ ALTERNATE = "ALTERNATE"
2221
+ }
2222
+
2223
+ interface IListCard extends IListCardBase {
2224
+ context?: ListCardContext;
2225
+ }
2226
+ interface IListCardBase {
2214
2227
  badge: React__default.ReactElement<IBadge>;
2215
2228
  title: string;
2216
2229
  subtitle?: string;
@@ -2218,9 +2231,10 @@ interface IListCard {
2218
2231
  labels?: React__default.ReactElement<ILabel>[];
2219
2232
  features?: React__default.ReactElement<IFeatures>;
2220
2233
  actions?: React__default.ReactElement<IButton>[] | React__default.ReactElement<IButton>;
2234
+ lifted?: boolean;
2221
2235
  }
2222
2236
 
2223
- declare const ListCard: ({ badge, title, subtitle, info, labels, features, actions }: IListCard) => react_jsx_runtime.JSX.Element;
2237
+ declare const ListCard: ({ badge, title, subtitle, info, labels, features, actions, context }: IListCard) => react_jsx_runtime.JSX.Element;
2224
2238
 
2225
2239
  declare const StyleVarsMbp: () => react_jsx_runtime.JSX.Element;
2226
2240
 
@@ -2789,7 +2803,7 @@ declare const Accordeon: {
2789
2803
  };
2790
2804
 
2791
2805
  interface IBackdrop {
2792
- onClick?: () => void;
2806
+ onClick?: (e: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
2793
2807
  }
2794
2808
 
2795
2809
  declare const Backdrop: ({ onClick }: IBackdrop) => React__default.ReactPortal;
@@ -3073,9 +3087,13 @@ interface BackdropContextType {
3073
3087
  }
3074
3088
  declare const BackdropContext: React__default.Context<BackdropContextType>;
3075
3089
  interface IBackdropProvider extends PropsWithChildren {
3076
- onClick?: () => void;
3090
+ onClick?: (e: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
3091
+ }
3092
+ interface BackdropProviderHandle {
3093
+ show: () => void;
3094
+ hide: () => void;
3077
3095
  }
3078
- declare const BackdropProvider: ({ children, onClick }: IBackdropProvider) => react_jsx_runtime.JSX.Element;
3096
+ declare const BackdropProvider: React__default.ForwardRefExoticComponent<IBackdropProvider & React__default.RefAttributes<BackdropProviderHandle>>;
3079
3097
 
3080
3098
  interface BlurContextType {
3081
3099
  isBlurred: boolean;
package/build/index.d.ts CHANGED
@@ -362,13 +362,12 @@ declare enum Position {
362
362
  AFTER = "AFTER"
363
363
  }
364
364
 
365
- interface ILink {
365
+ interface ILink extends PropsWithChildren {
366
366
  id?: string;
367
367
  title: string;
368
368
  href: string;
369
369
  onClick?: React__default.MouseEventHandler<HTMLAnchorElement>;
370
370
  ariaLabel: string;
371
- children?: string;
372
371
  context?: LinkContext;
373
372
  withIconBefore?: React__default.ReactElement<IIcon>;
374
373
  withIconAfter?: React__default.ReactElement<IIcon>;
@@ -402,19 +401,17 @@ declare enum ButtonType {
402
401
  }
403
402
 
404
403
  type ClickHandler$1 = (event: React__default.MouseEvent<HTMLAnchorElement | HTMLButtonElement> | React__default.KeyboardEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
405
- interface IButtonMinimal {
404
+ interface IButtonMinimal extends PropsWithChildren {
406
405
  id?: string;
407
406
  title: string;
408
407
  ariaLabel: string;
409
408
  onClick?: ClickHandler$1;
410
- children?: string;
411
409
  }
412
- interface IButton {
410
+ interface IButton extends PropsWithChildren {
413
411
  id?: string;
414
412
  title: string;
415
413
  ariaLabel: string;
416
414
  onClick?: ClickHandler$1;
417
- children?: string;
418
415
  withIconBefore?: React__default.ReactElement<IIcon>;
419
416
  withIconAfter?: React__default.ReactElement<IIcon>;
420
417
  type?: ButtonType;
@@ -504,8 +501,7 @@ declare enum TextAlignment {
504
501
  RIGHT = "RIGHT"
505
502
  }
506
503
 
507
- interface IPlainText {
508
- children?: string;
504
+ interface IPlainText extends PropsWithChildren {
509
505
  size?: TypographyFontKey;
510
506
  font?: TypographyFontsKey;
511
507
  fontWeight?: TypographyFontWeightKey;
@@ -1596,7 +1592,7 @@ interface IFormElement {
1596
1592
  declare const FormElement: ({ label, input, description, required }: IFormElement) => react_jsx_runtime.JSX.Element;
1597
1593
 
1598
1594
  interface IFormMessage {
1599
- messages: string[];
1595
+ messages: React__default.ReactNode[];
1600
1596
  type: string;
1601
1597
  icon?: React__default.ReactElement<IIcon>;
1602
1598
  remove?: React__default.ReactElement<IIcon>;
@@ -2170,15 +2166,23 @@ declare const SearchInputsLabelWithIcon: ({ label, description, icon, prominent
2170
2166
 
2171
2167
  declare const SearchInputs: ({ location, route, name, overlay, onChanged, onInputOpen, activeInput, submit, }: ISearchInputs) => react_jsx_runtime.JSX.Element;
2172
2168
 
2169
+ interface IConfirm {
2170
+ title: React__default.ReactNode;
2171
+ description: React__default.ReactNode;
2172
+ cancel?: React__default.ReactElement<IButton>;
2173
+ confirm: React__default.ReactElement<IButton>;
2174
+ }
2175
+
2173
2176
  interface ICard {
2174
2177
  swipe?: React__default.ReactNode;
2175
2178
  badge: React__default.ReactElement<IBadge>;
2179
+ href: string;
2176
2180
  title: string;
2177
2181
  subtitle?: string;
2178
2182
  info?: React__default.ReactElement<ILabeledIcon>[] | React__default.ReactElement<ILabeledIcon>;
2179
2183
  labels?: React__default.ReactElement<ILabel>[];
2180
2184
  features?: React__default.ReactElement<IFeatures>;
2181
- action?: React__default.ReactElement<IButton>;
2185
+ actions?: React__default.ReactNode;
2182
2186
  favorite?: React__default.ReactElement<ICardFavorite>;
2183
2187
  application?: React__default.ReactElement<ICardApplication | IButton>;
2184
2188
  onMouseEnter?: (event: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
@@ -2194,11 +2198,12 @@ interface ICardApplication {
2194
2198
  remove: React__default.ReactElement<IButton>;
2195
2199
  add: React__default.ReactElement<IButton>;
2196
2200
  inApp: boolean;
2201
+ modal?: React__default.ReactElement<IConfirm>;
2197
2202
  }
2198
2203
 
2199
2204
  declare const CardFavorite: (props: ICardFavorite) => react_jsx_runtime.JSX.Element;
2200
2205
 
2201
- declare const CardApplication: (props: ICardApplication) => react_jsx_runtime.JSX.Element;
2206
+ declare const CardApplication: ({ inApp, add, remove, modal }: ICardApplication) => react_jsx_runtime.JSX.Element;
2202
2207
 
2203
2208
  declare const Card: (props: ICard) => react_jsx_runtime.JSX.Element;
2204
2209
 
@@ -2210,7 +2215,15 @@ interface IMinimalCard {
2210
2215
 
2211
2216
  declare const MinimalCard: (props: IMinimalCard) => react_jsx_runtime.JSX.Element;
2212
2217
 
2213
- interface IListCard {
2218
+ declare enum ListCardContext {
2219
+ STANDARD = "STANDARD",
2220
+ ALTERNATE = "ALTERNATE"
2221
+ }
2222
+
2223
+ interface IListCard extends IListCardBase {
2224
+ context?: ListCardContext;
2225
+ }
2226
+ interface IListCardBase {
2214
2227
  badge: React__default.ReactElement<IBadge>;
2215
2228
  title: string;
2216
2229
  subtitle?: string;
@@ -2218,9 +2231,10 @@ interface IListCard {
2218
2231
  labels?: React__default.ReactElement<ILabel>[];
2219
2232
  features?: React__default.ReactElement<IFeatures>;
2220
2233
  actions?: React__default.ReactElement<IButton>[] | React__default.ReactElement<IButton>;
2234
+ lifted?: boolean;
2221
2235
  }
2222
2236
 
2223
- declare const ListCard: ({ badge, title, subtitle, info, labels, features, actions }: IListCard) => react_jsx_runtime.JSX.Element;
2237
+ declare const ListCard: ({ badge, title, subtitle, info, labels, features, actions, context }: IListCard) => react_jsx_runtime.JSX.Element;
2224
2238
 
2225
2239
  declare const StyleVarsMbp: () => react_jsx_runtime.JSX.Element;
2226
2240
 
@@ -2789,7 +2803,7 @@ declare const Accordeon: {
2789
2803
  };
2790
2804
 
2791
2805
  interface IBackdrop {
2792
- onClick?: () => void;
2806
+ onClick?: (e: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
2793
2807
  }
2794
2808
 
2795
2809
  declare const Backdrop: ({ onClick }: IBackdrop) => React__default.ReactPortal;
@@ -3073,9 +3087,13 @@ interface BackdropContextType {
3073
3087
  }
3074
3088
  declare const BackdropContext: React__default.Context<BackdropContextType>;
3075
3089
  interface IBackdropProvider extends PropsWithChildren {
3076
- onClick?: () => void;
3090
+ onClick?: (e: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
3091
+ }
3092
+ interface BackdropProviderHandle {
3093
+ show: () => void;
3094
+ hide: () => void;
3077
3095
  }
3078
- declare const BackdropProvider: ({ children, onClick }: IBackdropProvider) => react_jsx_runtime.JSX.Element;
3096
+ declare const BackdropProvider: React__default.ForwardRefExoticComponent<IBackdropProvider & React__default.RefAttributes<BackdropProviderHandle>>;
3079
3097
 
3080
3098
  interface BlurContextType {
3081
3099
  isBlurred: boolean;