design-system-silkhaus 0.0.6 → 0.0.8-3.beta.1

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
@@ -1,32 +1,96 @@
1
1
  import { ClassProp } from 'class-variance-authority/types';
2
- import { default as React_2 } from 'react';
3
- import * as React_3 from 'react';
2
+ import { default as default_2 } from 'react';
3
+ import { HTMLAttributes } from 'react';
4
+ import * as React_2 from 'react';
5
+ import { ReactNode } from 'react';
4
6
  import { VariantProps } from 'class-variance-authority';
5
7
 
6
- export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
8
+ export declare const Accordion: default_2.ForwardRefExoticComponent<AccordionProps & default_2.RefAttributes<HTMLDivElement>>;
9
+
10
+ export declare interface AccordionProps {
11
+ title: string | ReactNode;
12
+ content: ReactNode;
13
+ expandIcon?: string | ReactNode;
14
+ collapseIcon?: string | ReactNode;
15
+ accordionClass?: string | undefined;
16
+ accordionHeaderClass?: string | undefined;
17
+ accordionTitleClass?: string | undefined;
18
+ accordionContentClass?: string | undefined;
19
+ isEnabled?: boolean;
20
+ isExpanded?: boolean;
21
+ }
22
+
23
+ export declare const AlertDialog: default_2.ForwardRefExoticComponent<AlertDialogProps & default_2.RefAttributes<HTMLDivElement>>;
24
+
25
+ export declare interface AlertDialogProps {
26
+ outerDivClassName?: string;
27
+ banner?: string;
28
+ title: string;
29
+ description?: string;
30
+ disablePrimaryBtn: boolean;
31
+ showPrimaryBtn: boolean;
32
+ disableSecondaryBtn: boolean;
33
+ showSecondaryBtn: boolean;
34
+ primaryBtnText?: string | ReactNode;
35
+ secondaryBtnText?: string | ReactNode;
36
+ onPrimaryBtnClick?: () => void;
37
+ onSecondaryBtnClick?: () => void;
38
+ }
39
+
40
+ export declare const AnimatedModal: default_2.ForwardRefExoticComponent<AnimatedModalProps & default_2.RefAttributes<HTMLDivElement>>;
41
+
42
+ export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElement> {
43
+ show: boolean;
44
+ handleClose?: () => void;
45
+ staticBackdrop?: boolean;
46
+ animation?: 'slideDown' | 'fadeIn' | 'none';
47
+ closeAnimation?: 'slideUp' | 'fadeOut' | 'none';
48
+ }
49
+
50
+ export declare const Asterisk: default_2.ForwardRefExoticComponent<AsteriskProps & default_2.RefAttributes<HTMLSpanElement>>;
51
+
52
+ declare interface AsteriskProps {
53
+ className?: string;
54
+ }
55
+
56
+ export declare const BookingQuoteCard: default_2.ForwardRefExoticComponent<BookingQuoteCardProps & default_2.RefAttributes<HTMLDivElement>>;
57
+
58
+ export declare interface BookingQuoteCardProps extends default_2.HTMLAttributes<HTMLDivElement> {
59
+ items: BookingQuoteLineItemType[];
60
+ isExpandedInMobile?: boolean;
61
+ }
62
+
63
+ export declare interface BookingQuoteLineItemType {
64
+ key_name: string;
65
+ display_name: string;
66
+ currency_converted_amount: string;
67
+ type: string;
68
+ }
7
69
 
8
- export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
70
+ export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
71
+
72
+ export declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
9
73
  color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
10
74
  size?: 'small' | 'large';
11
75
  disabled?: true | false;
12
76
  }
13
77
 
14
- export declare const Card: React_3.ForwardRefExoticComponent<CardProps & React_3.RefAttributes<HTMLDivElement>>;
78
+ export declare const Card: React_2.ForwardRefExoticComponent<CardProps & React_2.RefAttributes<HTMLDivElement>>;
15
79
 
16
- export declare const CardContent: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
80
+ export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
17
81
 
18
- export declare const CardDescription: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
82
+ export declare const CardDescription: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
19
83
 
20
- export declare const CardFooter: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
84
+ export declare const CardFooter: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
21
85
 
22
- export declare const CardHeader: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
86
+ export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
23
87
 
24
- declare interface CardProps extends React_3.HTMLAttributes<HTMLDivElement>, CardVariantProps {
88
+ declare interface CardProps extends React_2.HTMLAttributes<HTMLDivElement>, CardVariantProps {
25
89
  asChild?: boolean;
26
90
  as?: string;
27
91
  }
28
92
 
29
- export declare const CardTitle: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
93
+ export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
30
94
 
31
95
  export declare type CardVariantProps = VariantProps<typeof cardVariants>;
32
96
 
@@ -34,9 +98,15 @@ declare const cardVariants: (props?: ({
34
98
  cardType?: "default" | "shadowCard" | null | undefined;
35
99
  } & ClassProp) | undefined) => string;
36
100
 
37
- export declare const Grid: React_3.ForwardRefExoticComponent<GridProps & React_3.RefAttributes<HTMLDivElement>>;
101
+ export declare const Dialog: default_2.ForwardRefExoticComponent<DialogProps & default_2.RefAttributes<HTMLDivElement>>;
102
+
103
+ export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
104
+ open: boolean;
105
+ }
38
106
 
39
- export declare interface GridProps extends React_3.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
107
+ export declare const Grid: React_2.ForwardRefExoticComponent<GridProps & React_2.RefAttributes<HTMLDivElement>>;
108
+
109
+ export declare interface GridProps extends React_2.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
40
110
  asChild?: boolean;
41
111
  }
42
112
 
@@ -44,9 +114,9 @@ export declare type GridVariantProps = VariantProps<typeof gridVariants>;
44
114
 
45
115
  declare const gridVariants: (props?: ({
46
116
  display?: "grid" | "inlineGrid" | null | undefined;
47
- gap?: "gap100" | "gap150" | "gap200" | "gap300" | "gap400" | "gap600" | "gap800" | "gap1000" | "gap1200" | "gap1600" | "gap2000" | null | undefined;
48
- gapX?: "gap100" | "gap150" | "gap200" | "gap300" | "gap400" | "gap600" | "gap800" | "gap1000" | "gap1200" | "gap1600" | "gap2000" | null | undefined;
49
- gapY?: "gap100" | "gap150" | "gap200" | "gap300" | "gap400" | "gap600" | "gap800" | "gap1000" | "gap1200" | "gap1600" | "gap2000" | null | undefined;
117
+ gap?: "gap0" | "gap100" | "gap150" | "gap200" | "gap300" | "gap400" | "gap600" | "gap800" | "gap1000" | "gap1200" | "gap1600" | "gap2000" | null | undefined;
118
+ gapX?: "gap0" | "gap100" | "gap150" | "gap200" | "gap300" | "gap400" | "gap600" | "gap800" | "gap1000" | "gap1200" | "gap1600" | "gap2000" | null | undefined;
119
+ gapY?: "gap0" | "gap100" | "gap150" | "gap200" | "gap300" | "gap400" | "gap600" | "gap800" | "gap1000" | "gap1200" | "gap1600" | "gap2000" | null | undefined;
50
120
  justifyContent?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch" | null | undefined;
51
121
  justifyItems?: "start" | "end" | "center" | "stretch" | null | undefined;
52
122
  alignContent?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch" | "baseline" | null | undefined;
@@ -55,13 +125,100 @@ declare const gridVariants: (props?: ({
55
125
  placeItems?: "start" | "end" | "center" | "stretch" | "baseline" | null | undefined;
56
126
  } & ClassProp) | undefined) => string;
57
127
 
58
- export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
128
+ export declare const ImageCarousel: default_2.ForwardRefExoticComponent<ImageCarouselProps & default_2.RefAttributes<HTMLDivElement>>;
129
+
130
+ export declare interface ImageCarouselProps extends default_2.HTMLAttributes<HTMLDivElement> {
131
+ images: string[];
132
+ }
59
133
 
60
- export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
134
+ export declare const Input: default_2.ForwardRefExoticComponent<InputProps & default_2.RefAttributes<HTMLInputElement>>;
135
+
136
+ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
61
137
  textarea?: true | false | undefined;
62
138
  label?: string | undefined;
63
139
  caption?: string | undefined;
64
- color: 'primary' | 'success' | 'error';
140
+ color: 'primary' | 'success' | 'error' | 'primaryRounded' | 'errorRounded' | 'disabled';
141
+ required?: boolean;
142
+ labelClass?: string | undefined;
143
+ InputDivClass?: string | undefined;
144
+ captionClass?: string | undefined;
145
+ }
146
+
147
+ export declare const RoundedProgressBar: default_2.ForwardRefExoticComponent<RoundedProgressBarProps & default_2.RefAttributes<HTMLDivElement>>;
148
+
149
+ export declare interface RoundedProgressBarProps {
150
+ progress: number;
151
+ text?: string;
152
+ progressColor?: string;
153
+ borderColor?: string;
154
+ size?: string | number;
155
+ strokeWidth?: number;
156
+ textClass?: string;
157
+ }
158
+
159
+ export declare interface Step {
160
+ number: number;
161
+ title: string;
162
+ status: 'active' | 'completed' | 'pending';
163
+ mobileTitle: string;
164
+ mobileNextTitle: string;
165
+ }
166
+
167
+ export declare const Stepper: default_2.ForwardRefExoticComponent<StepperProps & default_2.RefAttributes<HTMLDivElement>>;
168
+
169
+ export declare interface StepperProps {
170
+ steps: Step[];
171
+ outerDivClass?: string;
172
+ outerMobileDivClass?: string;
173
+ }
174
+
175
+ export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps & default_2.RefAttributes<HTMLInputElement>>;
176
+
177
+ export declare interface SwitchProps {
178
+ checked: boolean;
179
+ onChange: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
180
+ disabled?: boolean;
181
+ htmlId?: string;
182
+ }
183
+
184
+ export declare const Timer: default_2.ForwardRefExoticComponent<TimerProps & default_2.RefAttributes<HTMLDivElement>>;
185
+
186
+ export declare interface TimerProps {
187
+ time: number;
188
+ text?: string;
189
+ outerDivClass?: string;
190
+ }
191
+
192
+ export declare const TopNavBar: default_2.ForwardRefExoticComponent<TopNavBarProps & default_2.RefAttributes<HTMLDivElement>>;
193
+
194
+ export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
195
+ text?: string | ReactNode;
196
+ onNavBarClick?: () => void;
197
+ isMarquee?: boolean;
198
+ direction?: 'marquee--left' | 'marquee--right' | 'marquee--up' | 'marquee--down';
199
+ }
200
+
201
+ export declare const TopNavContainerMobile: default_2.ForwardRefExoticComponent<TopNavContainerMobileProps & default_2.RefAttributes<HTMLDivElement>>;
202
+
203
+ export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLDivElement> {
204
+ img: string;
205
+ handleDialogButtonClick?: () => void;
206
+ handleCloseButtonClick?: () => void;
207
+ dialogHeader: string;
208
+ dialogDescription: string;
209
+ buttonIcon?: string;
210
+ buttonText: string;
211
+ }
212
+
213
+ export declare const TwoColumnDialog: default_2.ForwardRefExoticComponent<TwoColumnDialogProps & default_2.RefAttributes<HTMLDivElement>>;
214
+
215
+ export declare interface TwoColumnDialogProps extends HTMLAttributes<HTMLDivElement> {
216
+ img: string;
217
+ handleDialogButtonClick?: () => void;
218
+ dialogHeader: string;
219
+ dialogDescription: string;
220
+ buttonIcon?: string;
221
+ buttonText: string;
65
222
  }
66
223
 
67
224
  export { }