@dataesr/dsfr-plus 0.0.22 → 0.0.24
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/components/Autocomplete/spinner/index.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +3 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -0
- package/dist/components/Toast/index.d.ts +3 -0
- package/dist/components/Toast/index.d.ts.map +1 -0
- package/dist/components/Toast/types.d.ts +15 -0
- package/dist/components/Toast/types.d.ts.map +1 -0
- package/dist/components/Toast/usePausableTimer.d.ts +6 -0
- package/dist/components/Toast/usePausableTimer.d.ts.map +1 -0
- package/dist/components/Toast/useToast.d.ts +12 -0
- package/dist/components/Toast/useToast.d.ts.map +1 -0
- package/dist/components/Typography/Text.d.ts +2 -2
- package/dist/components/Typography/Text.d.ts.map +1 -1
- package/dist/components/index.d.ts +20 -19
- package/dist/components/index.d.ts.map +1 -1
- package/dist/dsfr-plus.js +2291 -2205
- package/dist/index.d.ts +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Autocomplete/spinner/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Autocomplete/spinner/index.tsx"],"names":[],"mappings":"AAIA,wBAAgB,OAAO,CAAC,EAAE,IAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,2CAYvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,eAAe,CAAC;AAEvB,eAAO,MAAM,KAAK,+DAA0G,eAAe,4CAyDzI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type BaseToastType = {
|
|
2
|
+
autoDismissAfter?: number;
|
|
3
|
+
description?: string;
|
|
4
|
+
remove?(id: string): any;
|
|
5
|
+
title?: string;
|
|
6
|
+
type?: 'error' | 'info' | 'success' | 'warning';
|
|
7
|
+
};
|
|
8
|
+
export type ToastType = BaseToastType & {
|
|
9
|
+
id?: string;
|
|
10
|
+
};
|
|
11
|
+
export type ToastTypeWithId = BaseToastType & {
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/types.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,CAAC,EAAE,EAAE,MAAM,GAAG,GAAG,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;CAAE,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePausableTimer.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/usePausableTimer.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,KAAK,EAAE,MAAM;;;;EA2B3E"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { ToastType, ToastTypeWithId } from './types';
|
|
3
|
+
type ToastContextObject = {
|
|
4
|
+
remove?: (id: string) => void;
|
|
5
|
+
toast?: (toastObject: ToastType) => string;
|
|
6
|
+
toasts?: ToastTypeWithId[];
|
|
7
|
+
};
|
|
8
|
+
type ToastProps = PropsWithChildren<ToastContextObject>;
|
|
9
|
+
export declare const ToastContextProvider: ({ children }: ToastProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const useToast: () => ToastContextObject;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=useToast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useToast.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/useToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAErD,KAAK,kBAAkB,GAAG;IACxB,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,KAAK,CAAC,EAAE,CAAC,WAAW,EAAE,SAAS,KAAK,MAAM,CAAC;IAC3C,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;CAC5B,CAAC;AAEF,KAAK,UAAU,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;AAUxD,eAAO,MAAM,oBAAoB,iBAE9B,UAAU,4CAuCZ,CAAA;AAID,eAAO,MAAM,QAAQ,0BAAiC,CAAC"}
|
|
@@ -3,10 +3,10 @@ import { OnlyAs, PolymorphicComponent } from 'react-polymorphed';
|
|
|
3
3
|
type TextTags = 'p' | 'span';
|
|
4
4
|
type TextSizes = 'xs' | 'sm' | 'md' | 'lg' | 'lead';
|
|
5
5
|
type TextProps = React.PropsWithChildren<{
|
|
6
|
-
className?: Argument;
|
|
7
|
-
size?: TextSizes;
|
|
8
6
|
alt?: boolean;
|
|
9
7
|
bold?: boolean;
|
|
8
|
+
className?: Argument;
|
|
9
|
+
size?: TextSizes;
|
|
10
10
|
}>;
|
|
11
11
|
export declare const Text: PolymorphicComponent<"p", TextProps, OnlyAs<TextTags>>;
|
|
12
12
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/Text.tsx"],"names":[],"mappings":"AAAA,OAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,KAAK,QAAQ,GAAG,GAAG,GAAG,MAAM,CAAC;AAC7B,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAEpD,KAAK,SAAS,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACvC,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/Text.tsx"],"names":[],"mappings":"AAAA,OAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,KAAK,QAAQ,GAAG,GAAG,GAAG,MAAM,CAAC;AAC7B,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAEpD,KAAK,SAAS,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACvC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC,CAAA;AAEF,eAAO,MAAM,IAAI,EAAE,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,CAgBvE,CAAC"}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
+
export * from './Accordion';
|
|
2
|
+
export * from './Alert';
|
|
3
|
+
export * from './Autocomplete';
|
|
1
4
|
export * from './Badge';
|
|
5
|
+
export * from './Breadcrumb';
|
|
2
6
|
export * from './Button';
|
|
7
|
+
export * from './Checkbox';
|
|
8
|
+
export * from './Fieldset';
|
|
9
|
+
export * from './FileUpload';
|
|
3
10
|
export * from './Grid';
|
|
4
11
|
export * from './Header';
|
|
12
|
+
export * from './Input';
|
|
13
|
+
export * from './Link';
|
|
14
|
+
export * from './Listbox';
|
|
5
15
|
export * from './Logo';
|
|
16
|
+
export * from './Menu';
|
|
17
|
+
export * from './Modal';
|
|
6
18
|
export * from './Navigation';
|
|
7
|
-
export * from './SearchBar';
|
|
8
|
-
export * from './Tag';
|
|
9
|
-
export * from './Link';
|
|
10
|
-
export * from './Accordion';
|
|
11
|
-
export * from './Alert';
|
|
12
19
|
export * from './Notice';
|
|
13
|
-
export * from './
|
|
20
|
+
export * from './Pagination';
|
|
21
|
+
export * from './Radio';
|
|
22
|
+
export * from './SearchBar';
|
|
23
|
+
export * from './Select';
|
|
14
24
|
export * from './SideMenu';
|
|
15
|
-
export * from './Input';
|
|
16
25
|
export * from './Spinner';
|
|
17
|
-
export * from './Fieldset';
|
|
18
|
-
export * from './Radio';
|
|
19
|
-
export * from './Checkbox';
|
|
20
26
|
export * from './Stepper';
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './Modal';
|
|
27
|
+
export * from './Tabs';
|
|
28
|
+
export * from './Tag';
|
|
29
|
+
export * from './Toast';
|
|
25
30
|
export * from './Toggle';
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './Autocomplete';
|
|
28
|
-
export * from './Select';
|
|
29
|
-
export * from './Listbox';
|
|
30
|
-
export * from './Menu';
|
|
31
|
+
export * from './Typography';
|
|
31
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|