@mapples/ui 1.0.6 → 1.0.8
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/README.md +32 -0
- package/dist/components/inputs/Pressable/Pressable.d.ts +4 -3
- package/dist/components/inputs/Pressable/Pressable.d.ts.map +1 -1
- package/dist/components/media/QRCode/QRCode.d.ts.map +1 -1
- package/dist/components/media/QRCode/QRCode.js +2 -8
- package/dist/components/media/QRCode/QRCode.js.map +1 -1
- package/dist/components/media/Svg/Svg.d.ts +44 -0
- package/dist/components/media/Svg/Svg.d.ts.map +1 -0
- package/dist/components/media/Svg/Svg.js +41 -0
- package/dist/components/media/Svg/Svg.js.map +1 -0
- package/dist/components/media/Svg/index.d.ts +4 -0
- package/dist/components/media/Svg/index.d.ts.map +1 -0
- package/dist/components/media/Svg/index.js +3 -0
- package/dist/components/media/Svg/index.js.map +1 -0
- package/dist/components/media/Svg/schematics.d.ts +3 -0
- package/dist/components/media/Svg/schematics.d.ts.map +1 -0
- package/dist/components/media/Svg/schematics.js +6 -0
- package/dist/components/media/Svg/schematics.js.map +1 -0
- package/dist/components/media/index.d.ts +2 -0
- package/dist/components/media/index.d.ts.map +1 -1
- package/dist/components/media/index.js +2 -0
- package/dist/components/media/index.js.map +1 -1
- package/dist/components/media/schematics.d.ts.map +1 -1
- package/dist/components/media/schematics.js +2 -0
- package/dist/components/media/schematics.js.map +1 -1
- package/dist/schematics.d.ts +1 -1
- package/dist/schematics.d.ts.map +1 -1
- package/dist/schematics.js +1 -1
- package/dist/schematics.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,6 +51,14 @@ Interactive input components:
|
|
|
51
51
|
- **IconButton**: Button with icon support
|
|
52
52
|
- **Pressable**: Enhanced pressable component with styling
|
|
53
53
|
|
|
54
|
+
### Form
|
|
55
|
+
|
|
56
|
+
Form building blocks that work with `@mapples/form`:
|
|
57
|
+
|
|
58
|
+
- **FormView**: Container that provides form context to children
|
|
59
|
+
- **TextField**: Text input bound to a form field
|
|
60
|
+
- **SubmitButton**: Button that triggers form submit and shows submitting state
|
|
61
|
+
|
|
54
62
|
### Media
|
|
55
63
|
|
|
56
64
|
Media display components:
|
|
@@ -172,6 +180,30 @@ function MyInput() {
|
|
|
172
180
|
}
|
|
173
181
|
```
|
|
174
182
|
|
|
183
|
+
### Form with FormView, TextField, SubmitButton
|
|
184
|
+
|
|
185
|
+
`FormView` wraps `Form` from `@mapples/form` and provides a styled container. Use `fieldName` on `TextField` to bind to form values; `SubmitButton` triggers submit and shows submitting state.
|
|
186
|
+
|
|
187
|
+
```tsx
|
|
188
|
+
import { FormView, TextField, SubmitButton } from '@mapples/ui';
|
|
189
|
+
|
|
190
|
+
function MyForm() {
|
|
191
|
+
return (
|
|
192
|
+
<FormView
|
|
193
|
+
initialValues={{ name: '', email: '' }}
|
|
194
|
+
onSubmit={(values) => console.log(values)}
|
|
195
|
+
styled={{ style: { padding: 16 } }}
|
|
196
|
+
>
|
|
197
|
+
<TextField fieldName="name" placeholder="Name" />
|
|
198
|
+
<TextField fieldName="email" placeholder="Email" />
|
|
199
|
+
<SubmitButton label="Submit" />
|
|
200
|
+
</FormView>
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
For Yup validation, use `Form` from `@mapples/form` as the outer wrapper and pass `validationSchema`; use `FormView` inside for layout and styling.
|
|
206
|
+
|
|
175
207
|
## Visual Editor Integration
|
|
176
208
|
|
|
177
209
|
The UI package includes comprehensive schematics for visual editor integration:
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { WithStyledProps } from '@mapples/style';
|
|
2
2
|
import { PressableProps as RNPressableProps, View } from 'react-native';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export type PressableProps = WithStyledProps<RNPressableProps>;
|
|
4
|
+
declare const Pressable: import("react").ForwardRefExoticComponent<{
|
|
5
|
+
styled?: import("@mapples/style").StyledProps<Partial<RNPressableProps>> | undefined;
|
|
6
|
+
} & RNPressableProps & {
|
|
6
7
|
children?: import("react").ReactNode | undefined;
|
|
7
8
|
} & import("react").RefAttributes<View>>;
|
|
8
9
|
export default Pressable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/Pressable/Pressable.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,cAAc,IAAI,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAExE,MAAM,
|
|
1
|
+
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/Pressable/Pressable.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,cAAc,IAAI,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAExE,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC;AAE/D,QAAA,MAAM,SAAS;;;;wCAQd,CAAC;AAGF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QRCode.d.ts","sourceRoot":"","sources":["../../../../src/components/media/QRCode/QRCode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,
|
|
1
|
+
{"version":3,"file":"QRCode.d.ts","sourceRoot":"","sources":["../../../../src/components/media/QRCode/QRCode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EACL,UAAU,EACV,WAAW,EAEX,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C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 @@
|
|
|
1
|
-
import { forwardRef
|
|
2
|
-
import { StyledView,
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { StyledView, } from '@mapples/style';
|
|
3
3
|
import QRCodeSvg from 'react-native-qrcode-svg';
|
|
4
4
|
/**
|
|
5
5
|
* A customizable QR code component with built-in styling support.
|
|
@@ -27,12 +27,6 @@ import QRCodeSvg from 'react-native-qrcode-svg';
|
|
|
27
27
|
*/
|
|
28
28
|
const QRCode = forwardRef(({ styled, value = '', size = 200, backgroundColor = '#FFFFFF', color = '#000000', ecl = 'M', logo, logoSize, quietZone, ...props }, ref) => {
|
|
29
29
|
const { styleSvg, ...styledProps } = styled || {};
|
|
30
|
-
const svgStyle = useMemo(() => {
|
|
31
|
-
const flattened = styleSvg ? Styler.flatten(styleSvg) : {};
|
|
32
|
-
return {
|
|
33
|
-
...flattened,
|
|
34
|
-
};
|
|
35
|
-
}, [styleSvg]);
|
|
36
30
|
return (<StyledView ref={ref} styled={styledProps} {...props}>
|
|
37
31
|
{value && (<QRCodeSvg value={value} size={size} color={color} backgroundColor={backgroundColor} ecl={ecl} logo={logo ? { uri: logo } : undefined} logoSize={logoSize} quietZone={quietZone}/>)}
|
|
38
32
|
</StyledView>);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QRCode.js","sourceRoot":"","sources":["../../../../src/components/media/QRCode/QRCode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,
|
|
1
|
+
{"version":3,"file":"QRCode.js","sourceRoot":"","sources":["../../../../src/components/media/QRCode/QRCode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,MAAM,OAAO,CAAC;AAEtD,OAAO,EAGL,UAAU,GAEX,MAAM,gBAAgB,CAAC;AAExB,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAkChD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,GAAG,UAAU,CACvB,CACE,EACE,MAAM,EACN,KAAK,GAAG,EAAE,EACV,IAAI,GAAG,GAAG,EACV,eAAe,GAAG,SAAS,EAC3B,KAAK,GAAG,SAAS,EACjB,GAAG,GAAG,GAAG,EACT,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;IAElD,OAAO,CACL,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,CACnD;QAAA,CAAC,KAAK,IAAI,CACR,CAAC,SAAS,CACR,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,eAAe,CAAC,CAAC,eAAe,CAAC,CACjC,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CACvC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,SAAS,CAAC,CAAC,SAAS,CAAC,EACrB,CACH,CACH;MAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AACF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE9B,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { StyledProp, StyledProps, WithStyledProps } from '@mapples/style';
|
|
2
|
+
import { View, ViewProps } from 'react-native';
|
|
3
|
+
import { SvgProps as RnsSvgProps } from 'react-native-svg';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the Svg component.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export type SvgProps = WithStyledProps<ViewProps> & {
|
|
10
|
+
/** Styling configuration for the container and SVG */
|
|
11
|
+
styled?: StyledProps<ViewProps> & {
|
|
12
|
+
/** SVG-specific styling (width, height, color) */
|
|
13
|
+
styleSvg?: StyledProp<RnsSvgProps>;
|
|
14
|
+
};
|
|
15
|
+
/** SVG markup string (e.g. from Figma vector group conversion) */
|
|
16
|
+
content?: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Renders inline SVG from a string (e.g. from @mapplesorg/figmafile GROUP→Svg conversion).
|
|
20
|
+
* Uses a data URI so react-native-svg's SvgUri can display it.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <Svg
|
|
25
|
+
* content='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="#333"/></svg>'
|
|
26
|
+
* styled={{ style: { width: 100, height: 100 }, styleSvg: { width: 100, height: 100 } }}
|
|
27
|
+
* />
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
declare const Svg: import("react").ForwardRefExoticComponent<{
|
|
33
|
+
styled?: StyledProps<Partial<ViewProps>> | undefined;
|
|
34
|
+
} & ViewProps & {
|
|
35
|
+
/** Styling configuration for the container and SVG */
|
|
36
|
+
styled?: StyledProps<ViewProps> & {
|
|
37
|
+
/** SVG-specific styling (width, height, color) */
|
|
38
|
+
styleSvg?: StyledProp<RnsSvgProps>;
|
|
39
|
+
};
|
|
40
|
+
/** SVG markup string (e.g. from Figma vector group conversion) */
|
|
41
|
+
content?: string;
|
|
42
|
+
} & import("react").RefAttributes<View>>;
|
|
43
|
+
export default Svg;
|
|
44
|
+
//# sourceMappingURL=Svg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Svg.d.ts","sourceRoot":"","sources":["../../../../src/components/media/Svg/Svg.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,UAAU,EACV,WAAW,EAGX,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,QAAQ,IAAI,WAAW,EAAU,MAAM,kBAAkB,CAAC;AAInE;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,SAAS,CAAC,GAAG;IAClD,sDAAsD;IACtD,MAAM,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,GAAG;QAChC,kDAAkD;QAClD,QAAQ,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;KACpC,CAAC;IACF,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,GAAG;;;IAvBP,sDAAsD;aAC7C,WAAW,CAAC,SAAS,CAAC,GAAG;QAChC,kDAAkD;QAClD,QAAQ,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;KACpC;IACD,kEAAkE;cACxD,MAAM;wCAuChB,CAAC;AAcH,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { styled, StyledView, Styler, } from '@mapples/style';
|
|
3
|
+
import { SvgUri } from 'react-native-svg';
|
|
4
|
+
const StyledSvgUri = styled(SvgUri);
|
|
5
|
+
/**
|
|
6
|
+
* Renders inline SVG from a string (e.g. from @mapplesorg/figmafile GROUP→Svg conversion).
|
|
7
|
+
* Uses a data URI so react-native-svg's SvgUri can display it.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Svg
|
|
12
|
+
* content='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="#333"/></svg>'
|
|
13
|
+
* styled={{ style: { width: 100, height: 100 }, styleSvg: { width: 100, height: 100 } }}
|
|
14
|
+
* />
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
const Svg = forwardRef(({ styled, content, ...props }, ref) => {
|
|
20
|
+
const { styleSvg, style, ...styledProps } = styled || {};
|
|
21
|
+
const uri = content && content.trim().length > 0
|
|
22
|
+
? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(content.trim())}`
|
|
23
|
+
: undefined;
|
|
24
|
+
const svgStyle = styleSvg ?? style;
|
|
25
|
+
return (<StyledView ref={ref} styled={{ style, ...styledProps }} {...props}>
|
|
26
|
+
{uri ? (<StyledSvgUri uri={uri} styled={{ style: svgStyle }}/>) : (<StyledView styled={{ style: styler.placeholder }}/>)}
|
|
27
|
+
</StyledView>);
|
|
28
|
+
});
|
|
29
|
+
Svg.displayName = 'Svg';
|
|
30
|
+
const styler = Styler.create({
|
|
31
|
+
placeholder: {
|
|
32
|
+
width: '100%',
|
|
33
|
+
height: '100%',
|
|
34
|
+
minHeight: 48,
|
|
35
|
+
backgroundColor: '#f0f0f0',
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
justifyContent: 'center',
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
export default Svg;
|
|
41
|
+
//# sourceMappingURL=Svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Svg.js","sourceRoot":"","sources":["../../../../src/components/media/Svg/Svg.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EACL,MAAM,EAGN,UAAU,EACV,MAAM,GAEP,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAA2B,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEnE,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAiBpC;;;;;;;;;;;;;GAaG;AACH,MAAM,GAAG,GAAG,UAAU,CAAiB,CAAC,EAAE,MAAM,EAAE,OAAO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3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/media/Svg/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/media/Svg/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGhC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../../src/components/media/Svg/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD,eAAO,MAAM,YAAY,EAAE,mBAG1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../../src/components/media/Svg/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,MAAM,CAAC,MAAM,YAAY,GAAwB;IAC/C,IAAI,EAAE,KAAK;IACX,SAAS,EAAE,GAAG;CACf,CAAC"}
|
|
@@ -8,5 +8,7 @@ export { default as BarCode } from './BarCode';
|
|
|
8
8
|
export * from './BarCode';
|
|
9
9
|
export { default as QRCode } from './QRCode';
|
|
10
10
|
export * from './QRCode';
|
|
11
|
+
export { default as Svg } from './Svg';
|
|
12
|
+
export * from './Svg';
|
|
11
13
|
export * from './schematics';
|
|
12
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,cAAc,WAAW,CAAC;AAE1B,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,UAAU,CAAC;AAEzB,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,cAAc,WAAW,CAAC;AAE1B,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AACvC,cAAc,OAAO,CAAC;AAEtB,cAAc,cAAc,CAAC"}
|
|
@@ -8,5 +8,7 @@ export { default as BarCode } from './BarCode';
|
|
|
8
8
|
export * from './BarCode';
|
|
9
9
|
export { default as QRCode } from './QRCode';
|
|
10
10
|
export * from './QRCode';
|
|
11
|
+
export { default as Svg } from './Svg';
|
|
12
|
+
export * from './Svg';
|
|
11
13
|
export * from './schematics';
|
|
12
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/media/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,cAAc,WAAW,CAAC;AAE1B,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,UAAU,CAAC;AAEzB,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/media/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,cAAc,WAAW,CAAC;AAE1B,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AACvC,cAAc,OAAO,CAAC;AAEtB,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../src/components/media/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../src/components/media/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAStD,eAAO,MAAM,eAAe,EAAE,oBAO7B,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { BarCodeSchematic } from './BarCode';
|
|
|
2
2
|
import { IconSchematics } from './Icon';
|
|
3
3
|
import { ImageSchematic } from './Image';
|
|
4
4
|
import { QRCodeSchematic } from './QRCode';
|
|
5
|
+
import { SvgSchematic } from './Svg';
|
|
5
6
|
import { VideoSchematic } from './Video';
|
|
6
7
|
export const MediaSchematics = {
|
|
7
8
|
[VideoSchematic.type]: VideoSchematic,
|
|
@@ -9,5 +10,6 @@ export const MediaSchematics = {
|
|
|
9
10
|
[IconSchematics.type]: IconSchematics,
|
|
10
11
|
[BarCodeSchematic.type]: BarCodeSchematic,
|
|
11
12
|
[QRCodeSchematic.type]: QRCodeSchematic,
|
|
13
|
+
[SvgSchematic.type]: SvgSchematic,
|
|
12
14
|
};
|
|
13
15
|
//# sourceMappingURL=schematics.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../src/components/media/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,CAAC,MAAM,eAAe,GAAyB;IACnD,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,cAAc;IACrC,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,cAAc;IACrC,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,cAAc;IACrC,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,gBAAgB;IACzC,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../src/components/media/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,CAAC,MAAM,eAAe,GAAyB;IACnD,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,cAAc;IACrC,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,cAAc;IACrC,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,cAAc;IACrC,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,gBAAgB;IACzC,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,eAAe;IACvC,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,YAAY;CAClC,CAAC"}
|
package/dist/schematics.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const UIComponents: {
|
|
18
18
|
readonly [x: string]: import("@mapples/types").RegisteredComponent<object> | import("@mapples/types").RegisteredComponent<object>;
|
|
19
19
|
};
|
|
20
20
|
//# sourceMappingURL=schematics.d.ts.map
|
package/dist/schematics.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../src/schematics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH;;;;;;;GAOG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../src/schematics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;CAKf,CAAC"}
|
package/dist/schematics.js
CHANGED
package/dist/schematics.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../src/schematics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../src/schematics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,GAAG,eAAe;IAClB,GAAG,oBAAoB;IACvB,GAAG,gBAAgB;IACnB,GAAG,eAAe;CACV,CAAC"}
|