@moduk/frontend 1.7.4 → 1.8.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.
@@ -0,0 +1,17 @@
1
+ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ export interface InsetTextProps extends ComponentPropsWithoutRef<'div'> {
3
+ /**
4
+ * Inset text content.
5
+ */
6
+ children: ReactNode;
7
+ }
8
+ /**
9
+ * Inset text.
10
+ *
11
+ * @experimental React components are in alpha and subject to change.
12
+ *
13
+ * @example
14
+ * <InsetText>You’ll get confirmation that we have received your report within 5 working days.</InsetText>
15
+ */
16
+ export declare const InsetText: import("react").ForwardRefExoticComponent<InsetTextProps & import("react").RefAttributes<HTMLDivElement>>;
17
+ //# sourceMappingURL=InsetText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InsetText.d.ts","sourceRoot":"","sources":["../../../src/react/inset-text/InsetText.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,wBAAwB,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjF,MAAM,WAAW,cAAe,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACrE;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,2GAMrB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './InsetText';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/inset-text/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ export interface WarningTextProps extends ComponentPropsWithoutRef<'div'> {
3
+ /**
4
+ * Warning text content.
5
+ */
6
+ children: ReactNode;
7
+ /**
8
+ * The fallback text for the icon. Defaults to ‘Warning’
9
+ */
10
+ iconFallbackText?: string;
11
+ }
12
+ /**
13
+ * Warning text.
14
+ *
15
+ * @experimental React components are in alpha and subject to change.
16
+ *
17
+ * @example
18
+ * <WarningText>Completed</WarningText>
19
+ */
20
+ export declare const WarningText: import("react").ForwardRefExoticComponent<WarningTextProps & import("react").RefAttributes<HTMLDivElement>>;
21
+ //# sourceMappingURL=WarningText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningText.d.ts","sourceRoot":"","sources":["../../../src/react/warning-text/WarningText.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,wBAAwB,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjF,MAAM,WAAW,gBAAiB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACvE;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,6GAUvB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { WarningText } from './WarningText';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/warning-text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { InsetText } from '@moduk/frontend/react'
2
+
3
+ export const Example = () => (
4
+ <InsetText>You’ll get confirmation that we have received your report within 5 working days.</InsetText>
5
+ )
@@ -0,0 +1,5 @@
1
+ import { WarningText } from '@moduk/frontend/react'
2
+
3
+ export const Example = () => (
4
+ <WarningText iconFallbackText='Warning'>You must appeal within 1 year of getting your decision letter.</WarningText>
5
+ )