@drawbridge/components 0.0.39 → 0.0.42
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/advertisement.js +1303 -0
- package/dist/advertisement.mjs +98 -0
- package/dist/card-advertisement.mjs +3 -354
- package/dist/chunk-2ZYGRSSA.mjs +45 -0
- package/dist/chunk-7ZLMDYBR.mjs +113 -0
- package/dist/chunk-BD3TDNJE.mjs +98 -0
- package/dist/chunk-FJXG3REN.mjs +93 -0
- package/dist/chunk-FYA7EAMR.mjs +29 -0
- package/dist/chunk-GFDZ7ER6.mjs +29 -0
- package/dist/chunk-GUSVATKJ.mjs +335 -0
- package/dist/chunk-HH7WF5BT.mjs +29 -0
- package/dist/chunk-Q3UIVGPQ.mjs +29 -0
- package/dist/chunk-T5QQBFM3.mjs +29 -0
- package/dist/chunk-TJNIR4PF.mjs +358 -0
- package/dist/chunk-XWELEL6Z.mjs +208 -0
- package/dist/embla.js +41 -0
- package/dist/embla.mjs +6 -0
- package/dist/icons/arrow-down-tray.js +48 -0
- package/dist/icons/arrow-down-tray.mjs +28 -0
- package/dist/icons/arrow-left.js +48 -0
- package/dist/icons/arrow-left.mjs +28 -0
- package/dist/icons/arrow-right.js +48 -0
- package/dist/icons/arrow-right.mjs +28 -0
- package/dist/icons/arrow-up-tray.js +48 -0
- package/dist/icons/arrow-up-tray.mjs +28 -0
- package/dist/icons/bars-arrow-down.js +48 -0
- package/dist/icons/bars-arrow-down.mjs +28 -0
- package/dist/icons/bars-arrow-up.js +48 -0
- package/dist/icons/bars-arrow-up.mjs +28 -0
- package/dist/icons/bold.js +47 -0
- package/dist/icons/bold.mjs +27 -0
- package/dist/icons/bolt.js +48 -0
- package/dist/icons/bolt.mjs +28 -0
- package/dist/icons/calendar.js +48 -0
- package/dist/icons/calendar.mjs +28 -0
- package/dist/icons/cancel.js +48 -0
- package/dist/icons/cancel.mjs +28 -0
- package/dist/icons/card.js +48 -0
- package/dist/icons/card.mjs +28 -0
- package/dist/icons/chart.js +48 -0
- package/dist/icons/chart.mjs +28 -0
- package/dist/icons/check.js +48 -0
- package/dist/icons/check.mjs +6 -0
- package/dist/icons/chevron-down.js +48 -0
- package/dist/icons/chevron-down.mjs +6 -0
- package/dist/icons/chevron-left.js +48 -0
- package/dist/icons/chevron-left.mjs +28 -0
- package/dist/icons/chevron-right.js +48 -0
- package/dist/icons/chevron-right.mjs +28 -0
- package/dist/icons/chevron-up-down.js +48 -0
- package/dist/icons/chevron-up-down.mjs +28 -0
- package/dist/icons/chevron-up.js +48 -0
- package/dist/icons/chevron-up.mjs +28 -0
- package/dist/icons/clock.js +48 -0
- package/dist/icons/clock.mjs +28 -0
- package/dist/icons/code-bracket.js +48 -0
- package/dist/icons/code-bracket.mjs +28 -0
- package/dist/icons/cog.js +60 -0
- package/dist/icons/cog.mjs +40 -0
- package/dist/icons/copy.js +48 -0
- package/dist/icons/copy.mjs +28 -0
- package/dist/icons/document.js +48 -0
- package/dist/icons/document.mjs +28 -0
- package/dist/icons/download.js +48 -0
- package/dist/icons/download.mjs +28 -0
- package/dist/icons/drag.js +51 -0
- package/dist/icons/drag.mjs +31 -0
- package/dist/icons/ellipsis.js +48 -0
- package/dist/icons/ellipsis.mjs +28 -0
- package/dist/icons/email.js +48 -0
- package/dist/icons/email.mjs +28 -0
- package/dist/icons/external.js +48 -0
- package/dist/icons/external.mjs +28 -0
- package/dist/icons/filter.js +48 -0
- package/dist/icons/filter.mjs +28 -0
- package/dist/icons/flag.js +48 -0
- package/dist/icons/flag.mjs +28 -0
- package/dist/icons/google.js +74 -0
- package/dist/icons/google.mjs +54 -0
- package/dist/icons/home.js +48 -0
- package/dist/icons/home.mjs +28 -0
- package/dist/icons/image.js +48 -0
- package/dist/icons/image.mjs +28 -0
- package/dist/icons/italic.js +48 -0
- package/dist/icons/italic.mjs +28 -0
- package/dist/icons/link.js +48 -0
- package/dist/icons/link.mjs +28 -0
- package/dist/icons/loader.js +64 -0
- package/dist/icons/loader.mjs +6 -0
- package/dist/icons/lock.js +48 -0
- package/dist/icons/lock.mjs +28 -0
- package/dist/icons/logo-mark.js +55 -0
- package/dist/icons/logo-mark.mjs +35 -0
- package/dist/icons/logo-tagline.js +137 -0
- package/dist/icons/logo-tagline.mjs +117 -0
- package/dist/icons/map-pin.js +60 -0
- package/dist/icons/map-pin.mjs +40 -0
- package/dist/icons/menu.js +48 -0
- package/dist/icons/menu.mjs +28 -0
- package/dist/icons/minus.js +48 -0
- package/dist/icons/minus.mjs +6 -0
- package/dist/icons/muted.js +48 -0
- package/dist/icons/muted.mjs +28 -0
- package/dist/icons/pause.js +48 -0
- package/dist/icons/pause.mjs +28 -0
- package/dist/icons/pencil.js +48 -0
- package/dist/icons/pencil.mjs +28 -0
- package/dist/icons/play.js +48 -0
- package/dist/icons/play.mjs +28 -0
- package/dist/icons/plus.js +48 -0
- package/dist/icons/plus.mjs +6 -0
- package/dist/icons/powered-by.js +45 -0
- package/dist/icons/powered-by.mjs +25 -0
- package/dist/icons/qr-code.js +60 -0
- package/dist/icons/qr-code.mjs +40 -0
- package/dist/icons/queue.js +48 -0
- package/dist/icons/queue.mjs +28 -0
- package/dist/icons/refresh.js +48 -0
- package/dist/icons/refresh.mjs +28 -0
- package/dist/icons/refund.js +48 -0
- package/dist/icons/refund.mjs +28 -0
- package/dist/icons/rocket.js +48 -0
- package/dist/icons/rocket.mjs +28 -0
- package/dist/icons/search.js +48 -0
- package/dist/icons/search.mjs +28 -0
- package/dist/icons/share.js +48 -0
- package/dist/icons/share.mjs +28 -0
- package/dist/icons/shop.js +46 -0
- package/dist/icons/shop.mjs +26 -0
- package/dist/icons/sparkles.js +48 -0
- package/dist/icons/sparkles.mjs +28 -0
- package/dist/icons/star.js +48 -0
- package/dist/icons/star.mjs +28 -0
- package/dist/icons/switch.js +48 -0
- package/dist/icons/switch.mjs +28 -0
- package/dist/icons/times.js +48 -0
- package/dist/icons/times.mjs +28 -0
- package/dist/icons/trash.js +48 -0
- package/dist/icons/trash.mjs +28 -0
- package/dist/icons/underline.js +48 -0
- package/dist/icons/underline.mjs +28 -0
- package/dist/icons/upload.js +48 -0
- package/dist/icons/upload.mjs +28 -0
- package/dist/icons/volume.js +48 -0
- package/dist/icons/volume.mjs +28 -0
- package/dist/icons/warning.js +48 -0
- package/dist/icons/warning.mjs +6 -0
- package/dist/input-checkbox.js +130 -0
- package/dist/input-checkbox.mjs +71 -0
- package/dist/input-group.js +156 -0
- package/dist/input-group.mjs +7 -0
- package/dist/input-number.js +211 -0
- package/dist/input-number.mjs +136 -0
- package/dist/input-select.js +150 -0
- package/dist/input-select.mjs +9 -0
- package/dist/input-text.js +65 -0
- package/dist/input-text.mjs +36 -0
- package/dist/input-textarea.js +69 -0
- package/dist/input-textarea.mjs +40 -0
- package/dist/product.js +865 -0
- package/dist/product.mjs +14 -0
- package/dist/provider-font.js +94 -0
- package/dist/provider-font.mjs +74 -0
- package/dist/styles.js +127 -0
- package/dist/styles.mjs +28 -0
- package/dist/video.js +195 -0
- package/dist/video.mjs +125 -0
- package/dist/wrapper-gradient.js +232 -0
- package/dist/wrapper-gradient.mjs +9 -0
- package/package.json +316 -2
- package/types/advertisement.d.ts +36 -0
- package/types/embla.d.ts +2 -0
- package/types/icons/arrow-down-tray.d.ts +5 -0
- package/types/icons/arrow-left.d.ts +5 -0
- package/types/icons/arrow-right.d.ts +5 -0
- package/types/icons/arrow-up-tray.d.ts +5 -0
- package/types/icons/bars-arrow-down.d.ts +5 -0
- package/types/icons/bars-arrow-up.d.ts +5 -0
- package/types/icons/bold.d.ts +5 -0
- package/types/icons/bolt.d.ts +5 -0
- package/types/icons/calendar.d.ts +5 -0
- package/types/icons/cancel.d.ts +5 -0
- package/types/icons/card.d.ts +5 -0
- package/types/icons/chart.d.ts +5 -0
- package/types/icons/check.d.ts +5 -0
- package/types/icons/chevron-down.d.ts +5 -0
- package/types/icons/chevron-left.d.ts +5 -0
- package/types/icons/chevron-right.d.ts +5 -0
- package/types/icons/chevron-up-down.d.ts +5 -0
- package/types/icons/chevron-up.d.ts +5 -0
- package/types/icons/clock.d.ts +5 -0
- package/types/icons/code-bracket.d.ts +5 -0
- package/types/icons/cog.d.ts +5 -0
- package/types/icons/copy.d.ts +5 -0
- package/types/icons/document.d.ts +5 -0
- package/types/icons/download.d.ts +5 -0
- package/types/icons/drag.d.ts +5 -0
- package/types/icons/ellipsis.d.ts +5 -0
- package/types/icons/email.d.ts +5 -0
- package/types/icons/external.d.ts +5 -0
- package/types/icons/filter.d.ts +5 -0
- package/types/icons/flag.d.ts +5 -0
- package/types/icons/google.d.ts +5 -0
- package/types/icons/home.d.ts +5 -0
- package/types/icons/image.d.ts +5 -0
- package/types/icons/italic.d.ts +5 -0
- package/types/icons/link.d.ts +5 -0
- package/types/icons/loader.d.ts +5 -0
- package/types/icons/lock.d.ts +5 -0
- package/types/icons/logo-mark.d.ts +5 -0
- package/types/icons/logo-tagline.d.ts +5 -0
- package/types/icons/map-pin.d.ts +5 -0
- package/types/icons/menu.d.ts +5 -0
- package/types/icons/minus.d.ts +5 -0
- package/types/icons/muted.d.ts +5 -0
- package/types/icons/pause.d.ts +5 -0
- package/types/icons/pencil.d.ts +5 -0
- package/types/icons/play.d.ts +5 -0
- package/types/icons/plus.d.ts +5 -0
- package/types/icons/powered-by.d.ts +5 -0
- package/types/icons/qr-code.d.ts +5 -0
- package/types/icons/queue.d.ts +5 -0
- package/types/icons/refresh.d.ts +5 -0
- package/types/icons/refund.d.ts +5 -0
- package/types/icons/rocket.d.ts +5 -0
- package/types/icons/search.d.ts +5 -0
- package/types/icons/share.d.ts +5 -0
- package/types/icons/shop.d.ts +5 -0
- package/types/icons/sparkles.d.ts +5 -0
- package/types/icons/star.d.ts +5 -0
- package/types/icons/switch.d.ts +5 -0
- package/types/icons/times.d.ts +5 -0
- package/types/icons/trash.d.ts +5 -0
- package/types/icons/underline.d.ts +5 -0
- package/types/icons/upload.d.ts +5 -0
- package/types/icons/volume.d.ts +5 -0
- package/types/icons/warning.d.ts +5 -0
- package/types/input-checkbox.d.ts +14 -0
- package/types/input-group.d.ts +15 -0
- package/types/input-number.d.ts +17 -0
- package/types/input-select.d.ts +19 -0
- package/types/input-text.d.ts +12 -0
- package/types/input-textarea.d.ts +13 -0
- package/types/product.d.ts +21 -0
- package/types/provider-font.d.ts +23 -0
- package/types/styles.d.ts +37 -0
- package/types/video.d.ts +22 -0
- package/types/wrapper-gradient.d.ts +17 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentType, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { BrandStyle } from './styles';
|
|
3
|
+
|
|
4
|
+
export interface InputCheckboxProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'style' | 'value'> {
|
|
5
|
+
label?: ReactNode;
|
|
6
|
+
labelId?: string;
|
|
7
|
+
onChange: ( value: boolean ) => void;
|
|
8
|
+
style?: BrandStyle;
|
|
9
|
+
value?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const InputCheckbox: ComponentType<InputCheckboxProps>;
|
|
13
|
+
|
|
14
|
+
export default InputCheckbox;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { BrandStyle } from './styles';
|
|
3
|
+
|
|
4
|
+
export interface InputGroupProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
error?: ReactNode;
|
|
7
|
+
input?: ReactNode;
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
message?: ReactNode;
|
|
10
|
+
style?: BrandStyle;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const InputGroup: ComponentType<InputGroupProps>;
|
|
14
|
+
|
|
15
|
+
export default InputGroup;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentType, InputHTMLAttributes } from 'react';
|
|
2
|
+
import { BrandStyle } from './styles';
|
|
3
|
+
|
|
4
|
+
export interface InputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'style' | 'value'> {
|
|
5
|
+
inline?: boolean;
|
|
6
|
+
layout?: 'split' | 'after';
|
|
7
|
+
max?: number;
|
|
8
|
+
min?: number;
|
|
9
|
+
onChange: ( value: number ) => void;
|
|
10
|
+
small?: boolean;
|
|
11
|
+
style?: BrandStyle;
|
|
12
|
+
value?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare const InputNumber: ComponentType<InputNumberProps>;
|
|
16
|
+
|
|
17
|
+
export default InputNumber;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComponentType, SelectHTMLAttributes } from 'react';
|
|
2
|
+
import { BrandStyle } from './styles';
|
|
3
|
+
|
|
4
|
+
export interface InputSelectOption {
|
|
5
|
+
label?: string;
|
|
6
|
+
option?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface InputSelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'onChange' | 'style' | 'value'> {
|
|
11
|
+
onChange: ( value: string ) => void;
|
|
12
|
+
options?: InputSelectOption[];
|
|
13
|
+
style?: BrandStyle;
|
|
14
|
+
value?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare const InputSelect: ComponentType<InputSelectProps>;
|
|
18
|
+
|
|
19
|
+
export default InputSelect;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentType, InputHTMLAttributes } from 'react';
|
|
2
|
+
import { BrandStyle } from './styles';
|
|
3
|
+
|
|
4
|
+
export interface InputTextProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'style' | 'value'> {
|
|
5
|
+
onChange: ( value: string ) => void;
|
|
6
|
+
style?: BrandStyle;
|
|
7
|
+
value?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare const InputText: ComponentType<InputTextProps>;
|
|
11
|
+
|
|
12
|
+
export default InputText;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentType, TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import { BrandStyle } from './styles';
|
|
3
|
+
|
|
4
|
+
export interface InputTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'style' | 'value'> {
|
|
5
|
+
onChange: ( value: string ) => void;
|
|
6
|
+
rows?: number;
|
|
7
|
+
style?: BrandStyle;
|
|
8
|
+
value?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const InputTextarea: ComponentType<InputTextareaProps>;
|
|
12
|
+
|
|
13
|
+
export default InputTextarea;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { BrandStyle } from './styles';
|
|
3
|
+
|
|
4
|
+
export interface ProductProps {
|
|
5
|
+
action?: 'add' | 'buy' | null;
|
|
6
|
+
addToCart?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
errors?: { variant?: ReactNode; root?: ReactNode };
|
|
9
|
+
header?: ReactNode;
|
|
10
|
+
ImageComponent?: ComponentType<any>;
|
|
11
|
+
onAdd?: () => void;
|
|
12
|
+
onBuy?: () => void;
|
|
13
|
+
onVariantChange?: ( value: string ) => void;
|
|
14
|
+
product?: any;
|
|
15
|
+
style?: BrandStyle;
|
|
16
|
+
variant?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare const Product: ComponentType<ProductProps>;
|
|
20
|
+
|
|
21
|
+
export default Product;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ProviderFontFamily {
|
|
4
|
+
family?: string;
|
|
5
|
+
transform?: string;
|
|
6
|
+
weight?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface ProviderFontFonts {
|
|
10
|
+
body: Record<string, string | undefined>;
|
|
11
|
+
heading: Record<string, string | undefined>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface ProviderFontProps {
|
|
15
|
+
body?: ProviderFontFamily;
|
|
16
|
+
children: ( fonts: ProviderFontFonts ) => ReactNode;
|
|
17
|
+
heading?: ProviderFontFamily;
|
|
18
|
+
onError?: () => void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const ProviderFont: ComponentType<ProviderFontProps>;
|
|
22
|
+
|
|
23
|
+
export default ProviderFont;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface BrandStyle {
|
|
2
|
+
background?: { color?: { rgb?: string; hex?: string } };
|
|
3
|
+
text?: { color?: { rgb?: string; hex?: string } };
|
|
4
|
+
button?: {
|
|
5
|
+
background?: { color?: { rgb?: string; hex?: string } };
|
|
6
|
+
text?: { color?: { rgb?: string; hex?: string } };
|
|
7
|
+
radius?: number;
|
|
8
|
+
};
|
|
9
|
+
heading?: { family?: string; weight?: string | number; transform?: string };
|
|
10
|
+
input?: { radius?: number };
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type StyleObject = Record<string, string | number | undefined>;
|
|
14
|
+
|
|
15
|
+
export declare const backgroundStyle: ( style?: BrandStyle ) => StyleObject;
|
|
16
|
+
|
|
17
|
+
export declare const borderStyle: ( style?: BrandStyle ) => StyleObject;
|
|
18
|
+
|
|
19
|
+
export declare const buttonStyle: ( style?: BrandStyle ) => StyleObject;
|
|
20
|
+
|
|
21
|
+
export declare const closeStyle: ( style?: BrandStyle ) => StyleObject;
|
|
22
|
+
|
|
23
|
+
export declare const headerStyle: ( style?: BrandStyle ) => StyleObject;
|
|
24
|
+
|
|
25
|
+
export declare const inputStyle: ( style?: BrandStyle ) => StyleObject;
|
|
26
|
+
|
|
27
|
+
export declare const inputCheckboxStyle: ( style?: BrandStyle ) => StyleObject;
|
|
28
|
+
|
|
29
|
+
export declare const inputNameStyle: ( style?: BrandStyle ) => StyleObject;
|
|
30
|
+
|
|
31
|
+
export declare const inputPhoneStyle: ( style?: BrandStyle ) => StyleObject;
|
|
32
|
+
|
|
33
|
+
export declare const menuStyle: ( style?: BrandStyle ) => StyleObject;
|
|
34
|
+
|
|
35
|
+
export declare const selectStyle: ( style?: BrandStyle ) => StyleObject;
|
|
36
|
+
|
|
37
|
+
export declare const textStyle: ( style?: BrandStyle ) => StyleObject;
|
package/types/video.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface VideoProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
controls?: boolean;
|
|
6
|
+
hls?: string;
|
|
7
|
+
loop?: boolean;
|
|
8
|
+
mp4?: string;
|
|
9
|
+
muted?: boolean;
|
|
10
|
+
onDuration?: ( seconds: number ) => void;
|
|
11
|
+
onEnded?: () => void;
|
|
12
|
+
onPlay?: () => void;
|
|
13
|
+
onTime?: ( seconds: number ) => void;
|
|
14
|
+
playing?: boolean;
|
|
15
|
+
poster?: string;
|
|
16
|
+
reset?: boolean;
|
|
17
|
+
style?: { background?: { color?: { hex?: string } } };
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const Video: ComponentType<VideoProps>;
|
|
21
|
+
|
|
22
|
+
export default Video;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface WrapperGradientProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
classNameGradient?: string;
|
|
7
|
+
classNameScroll?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
gradientTopOffset?: number | string;
|
|
10
|
+
horizontal?: boolean | 'both';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export declare const useWrapperGradient: () => { atBottom: boolean; atRight: boolean } | null;
|
|
14
|
+
|
|
15
|
+
declare const WrapperGradient: ComponentType<WrapperGradientProps>;
|
|
16
|
+
|
|
17
|
+
export default WrapperGradient;
|