@tactics/lokaal-loket 0.0.11 → 0.0.13

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/build/index.d.cts CHANGED
@@ -5,10 +5,6 @@ export { ThemeI } from '@tactics/tacky/contract';
5
5
  export { StyleProviderAnimation, StyleProviderFontFace, StyleProviderPreFlight, StyleProviderRouter, ThemeBuilder, ThemeCtx, ThemeMode } from '@tactics/tacky';
6
6
  export { BuildProvidersTree } from '@tactics/tacky/tool';
7
7
 
8
- declare enum BadgeContext {
9
- STANDARD = "STANDARD",
10
- SKELETON = "SKELETON"
11
- }
12
8
  declare enum BadgeType {
13
9
  DAYCARE = "DAYCARE",
14
10
  CHILDMINDER = "CHILDMINDER",
@@ -16,19 +12,13 @@ declare enum BadgeType {
16
12
  }
17
13
 
18
14
  interface IBadge {
19
- context?: BadgeContext;
20
15
  type: BadgeType;
21
16
  screenReaderText: string;
22
17
  }
23
18
 
24
- declare const Badge: ({ context, type, screenReaderText }: IBadge) => react_jsx_runtime.JSX.Element;
25
-
26
- declare enum Context$y {
27
- STANDARD = "STANDARD",
28
- SKELETON = "SKELETON"
29
- }
19
+ declare const Badge: ({ type, screenReaderText }: IBadge) => react_jsx_runtime.JSX.Element;
30
20
 
31
- declare enum Context$x {
21
+ declare enum Context$w {
32
22
  STANDARD = "STANDARD",
33
23
  SKELETON = "SKELETON"
34
24
  }
@@ -46,31 +36,27 @@ interface ILogoLoad extends ILogoBase {
46
36
  srcset?: ILogoSrc;
47
37
  }
48
38
  interface ILogo extends ILogoLoad {
49
- context?: Context$x;
39
+ context?: Context$w;
50
40
  }
51
41
 
52
- interface IBrandBase {
42
+ interface IBrand {
53
43
  ariaLabel: string;
54
44
  logo: React$1.ReactElement<ILogo>;
55
45
  name: string;
56
46
  }
57
- interface IBrand extends IBrandBase {
58
- context: Context$y;
59
- }
60
47
 
61
- declare const Brand: ({ logo, name, ariaLabel, context }: IBrand) => react_jsx_runtime.JSX.Element;
48
+ declare const Brand: ({ logo, name, ariaLabel }: IBrand) => react_jsx_runtime.JSX.Element;
62
49
 
63
- declare enum Context$w {
50
+ declare enum ButtonContext {
64
51
  DISABLED = "DISABLED",
65
52
  PRIMARY = "PRIMARY",
66
53
  SUPPORTING = "SUPPORTING",
67
54
  NEUTRAL = "NEUTRAL",
68
55
  OUTLINED = "OUTLINED",
69
56
  GHOST = "GHOST",
70
- UI = "UI",
71
- SKELETON = "SKELETON"
57
+ UI = "UI"
72
58
  }
73
- declare enum Type$5 {
59
+ declare enum ButtonType {
74
60
  BUTTON = "BUTTON",
75
61
  RESET = "RESET",
76
62
  SUBMIT = "SUBMIT",
@@ -132,7 +118,7 @@ interface IIcon extends IIconLoad {
132
118
  context?: Context$v;
133
119
  }
134
120
 
135
- interface IButtonBase {
121
+ interface IButton {
136
122
  id?: string;
137
123
  title: string;
138
124
  ariaLabel: string;
@@ -140,14 +126,22 @@ interface IButtonBase {
140
126
  children?: string;
141
127
  withIconBefore?: React$1.ReactElement<IIcon>;
142
128
  withIconAfter?: React$1.ReactElement<IIcon>;
143
- type: Type$5;
144
- }
145
- interface IButton extends IButtonBase {
146
- context?: Context$w;
129
+ type?: ButtonType;
130
+ context?: ButtonContext;
147
131
  }
148
132
 
149
133
  declare const Button: ({ id, title, ariaLabel, children, onClick, withIconBefore, withIconAfter, type, context, }: IButton) => react_jsx_runtime.JSX.Element;
150
134
 
135
+ interface ILoading {
136
+ children?: React$1.ReactNode;
137
+ }
138
+
139
+ declare const LoadingCtx: React$1.Context<{
140
+ isLoading: boolean;
141
+ setIsLoading: React$1.Dispatch<React$1.SetStateAction<boolean>>;
142
+ }>;
143
+ declare const Loading: ({ children }: ILoading) => react_jsx_runtime.JSX.Element;
144
+
151
145
  declare enum Context$u {
152
146
  STANDARD = "STANDARD",
153
147
  DISABLED = "DISABLED",
@@ -893,4 +887,4 @@ declare const GoogleAPIComponent: ({ children, apiKey, onLoad, }: IGoogleApiComp
893
887
 
894
888
  declare const GoogleApiServiceDirections: ({ children }: PropsWithChildren) => react_jsx_runtime.JSX.Element;
895
889
 
896
- export { Backdrop, BackdropManager, BackdropManagerCtx, Badge, BadgeContext, BadgeType, Blur, BlurCtx, BlurManager, Brand, Button, Checkbox, Choice, Collapsable, Container, Details, Drawer, DrawerManager, DrawerManagerCtx, Faq, Feature, Features, Figure, Frame, GoogleAPIComponent, GoogleApiServiceDirections, Grid, Heading, type IBadge, Icon, Information, Input, Link, List, Logo, Map, Modal, ModalManager, ModalManagerCtx, Notification, Overlay, OverlayManager, OverlayManagerCtx, Pick, Pill, Pin, PlainText, ProfileNavigation, Radio, Record, Records, Status, StatusCompact, StatusList, Term, Terminal, YesNo };
890
+ export { Backdrop, BackdropManager, BackdropManagerCtx, Badge, BadgeType, Blur, BlurCtx, BlurManager, Brand, Button, ButtonContext, ButtonType, Checkbox, Choice, Collapsable, Container, Details, Drawer, DrawerManager, DrawerManagerCtx, Faq, Feature, Features, Figure, Frame, GoogleAPIComponent, GoogleApiServiceDirections, Grid, Heading, type IBadge, type IBrand, type IButton, type ILoading, Icon, Information, Input, Link, List, Loading, LoadingCtx, Logo, Map, Modal, ModalManager, ModalManagerCtx, Notification, Overlay, OverlayManager, OverlayManagerCtx, Pick, Pill, Pin, PlainText, ProfileNavigation, Radio, Record, Records, Status, StatusCompact, StatusList, Term, Terminal, YesNo };
package/build/index.d.ts CHANGED
@@ -5,10 +5,6 @@ export { ThemeI } from '@tactics/tacky/contract';
5
5
  export { StyleProviderAnimation, StyleProviderFontFace, StyleProviderPreFlight, StyleProviderRouter, ThemeBuilder, ThemeCtx, ThemeMode } from '@tactics/tacky';
6
6
  export { BuildProvidersTree } from '@tactics/tacky/tool';
7
7
 
8
- declare enum BadgeContext {
9
- STANDARD = "STANDARD",
10
- SKELETON = "SKELETON"
11
- }
12
8
  declare enum BadgeType {
13
9
  DAYCARE = "DAYCARE",
14
10
  CHILDMINDER = "CHILDMINDER",
@@ -16,19 +12,13 @@ declare enum BadgeType {
16
12
  }
17
13
 
18
14
  interface IBadge {
19
- context?: BadgeContext;
20
15
  type: BadgeType;
21
16
  screenReaderText: string;
22
17
  }
23
18
 
24
- declare const Badge: ({ context, type, screenReaderText }: IBadge) => react_jsx_runtime.JSX.Element;
25
-
26
- declare enum Context$y {
27
- STANDARD = "STANDARD",
28
- SKELETON = "SKELETON"
29
- }
19
+ declare const Badge: ({ type, screenReaderText }: IBadge) => react_jsx_runtime.JSX.Element;
30
20
 
31
- declare enum Context$x {
21
+ declare enum Context$w {
32
22
  STANDARD = "STANDARD",
33
23
  SKELETON = "SKELETON"
34
24
  }
@@ -46,31 +36,27 @@ interface ILogoLoad extends ILogoBase {
46
36
  srcset?: ILogoSrc;
47
37
  }
48
38
  interface ILogo extends ILogoLoad {
49
- context?: Context$x;
39
+ context?: Context$w;
50
40
  }
51
41
 
52
- interface IBrandBase {
42
+ interface IBrand {
53
43
  ariaLabel: string;
54
44
  logo: React$1.ReactElement<ILogo>;
55
45
  name: string;
56
46
  }
57
- interface IBrand extends IBrandBase {
58
- context: Context$y;
59
- }
60
47
 
61
- declare const Brand: ({ logo, name, ariaLabel, context }: IBrand) => react_jsx_runtime.JSX.Element;
48
+ declare const Brand: ({ logo, name, ariaLabel }: IBrand) => react_jsx_runtime.JSX.Element;
62
49
 
63
- declare enum Context$w {
50
+ declare enum ButtonContext {
64
51
  DISABLED = "DISABLED",
65
52
  PRIMARY = "PRIMARY",
66
53
  SUPPORTING = "SUPPORTING",
67
54
  NEUTRAL = "NEUTRAL",
68
55
  OUTLINED = "OUTLINED",
69
56
  GHOST = "GHOST",
70
- UI = "UI",
71
- SKELETON = "SKELETON"
57
+ UI = "UI"
72
58
  }
73
- declare enum Type$5 {
59
+ declare enum ButtonType {
74
60
  BUTTON = "BUTTON",
75
61
  RESET = "RESET",
76
62
  SUBMIT = "SUBMIT",
@@ -132,7 +118,7 @@ interface IIcon extends IIconLoad {
132
118
  context?: Context$v;
133
119
  }
134
120
 
135
- interface IButtonBase {
121
+ interface IButton {
136
122
  id?: string;
137
123
  title: string;
138
124
  ariaLabel: string;
@@ -140,14 +126,22 @@ interface IButtonBase {
140
126
  children?: string;
141
127
  withIconBefore?: React$1.ReactElement<IIcon>;
142
128
  withIconAfter?: React$1.ReactElement<IIcon>;
143
- type: Type$5;
144
- }
145
- interface IButton extends IButtonBase {
146
- context?: Context$w;
129
+ type?: ButtonType;
130
+ context?: ButtonContext;
147
131
  }
148
132
 
149
133
  declare const Button: ({ id, title, ariaLabel, children, onClick, withIconBefore, withIconAfter, type, context, }: IButton) => react_jsx_runtime.JSX.Element;
150
134
 
135
+ interface ILoading {
136
+ children?: React$1.ReactNode;
137
+ }
138
+
139
+ declare const LoadingCtx: React$1.Context<{
140
+ isLoading: boolean;
141
+ setIsLoading: React$1.Dispatch<React$1.SetStateAction<boolean>>;
142
+ }>;
143
+ declare const Loading: ({ children }: ILoading) => react_jsx_runtime.JSX.Element;
144
+
151
145
  declare enum Context$u {
152
146
  STANDARD = "STANDARD",
153
147
  DISABLED = "DISABLED",
@@ -893,4 +887,4 @@ declare const GoogleAPIComponent: ({ children, apiKey, onLoad, }: IGoogleApiComp
893
887
 
894
888
  declare const GoogleApiServiceDirections: ({ children }: PropsWithChildren) => react_jsx_runtime.JSX.Element;
895
889
 
896
- export { Backdrop, BackdropManager, BackdropManagerCtx, Badge, BadgeContext, BadgeType, Blur, BlurCtx, BlurManager, Brand, Button, Checkbox, Choice, Collapsable, Container, Details, Drawer, DrawerManager, DrawerManagerCtx, Faq, Feature, Features, Figure, Frame, GoogleAPIComponent, GoogleApiServiceDirections, Grid, Heading, type IBadge, Icon, Information, Input, Link, List, Logo, Map, Modal, ModalManager, ModalManagerCtx, Notification, Overlay, OverlayManager, OverlayManagerCtx, Pick, Pill, Pin, PlainText, ProfileNavigation, Radio, Record, Records, Status, StatusCompact, StatusList, Term, Terminal, YesNo };
890
+ export { Backdrop, BackdropManager, BackdropManagerCtx, Badge, BadgeType, Blur, BlurCtx, BlurManager, Brand, Button, ButtonContext, ButtonType, Checkbox, Choice, Collapsable, Container, Details, Drawer, DrawerManager, DrawerManagerCtx, Faq, Feature, Features, Figure, Frame, GoogleAPIComponent, GoogleApiServiceDirections, Grid, Heading, type IBadge, type IBrand, type IButton, type ILoading, Icon, Information, Input, Link, List, Loading, LoadingCtx, Logo, Map, Modal, ModalManager, ModalManagerCtx, Notification, Overlay, OverlayManager, OverlayManagerCtx, Pick, Pill, Pin, PlainText, ProfileNavigation, Radio, Record, Records, Status, StatusCompact, StatusList, Term, Terminal, YesNo };