@instructure/ui-alerts 11.6.0 → 11.6.1-snapshot-129

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +36 -295
  2. package/es/Alert/{index.js → v1/index.js} +3 -3
  3. package/es/Alert/v2/index.js +263 -0
  4. package/es/Alert/v2/props.js +26 -0
  5. package/es/Alert/v2/styles.js +134 -0
  6. package/es/{index.js → exports/a.js} +1 -1
  7. package/{src/index.ts → es/exports/b.js} +1 -2
  8. package/lib/Alert/{index.js → v1/index.js} +9 -9
  9. package/lib/Alert/v2/index.js +270 -0
  10. package/lib/Alert/v2/props.js +31 -0
  11. package/lib/Alert/v2/styles.js +140 -0
  12. package/lib/{index.js → exports/a.js} +2 -2
  13. package/lib/exports/b.js +12 -0
  14. package/package.json +44 -22
  15. package/src/Alert/{index.tsx → v1/index.tsx} +4 -4
  16. package/src/Alert/v2/README.md +249 -0
  17. package/src/Alert/v2/index.tsx +349 -0
  18. package/src/Alert/v2/props.ts +148 -0
  19. package/src/Alert/v2/styles.ts +137 -0
  20. package/src/exports/a.ts +25 -0
  21. package/src/exports/b.ts +25 -0
  22. package/tsconfig.build.tsbuildinfo +1 -1
  23. package/types/Alert/{index.d.ts → v1/index.d.ts} +1 -1
  24. package/types/Alert/v1/index.d.ts.map +1 -0
  25. package/types/Alert/v1/props.d.ts.map +1 -0
  26. package/types/Alert/v1/styles.d.ts.map +1 -0
  27. package/types/Alert/v1/theme.d.ts.map +1 -0
  28. package/types/Alert/v2/index.d.ts +73 -0
  29. package/types/Alert/v2/index.d.ts.map +1 -0
  30. package/types/Alert/v2/props.d.ts +92 -0
  31. package/types/Alert/v2/props.d.ts.map +1 -0
  32. package/types/Alert/v2/styles.d.ts +15 -0
  33. package/types/Alert/v2/styles.d.ts.map +1 -0
  34. package/types/exports/a.d.ts +3 -0
  35. package/types/exports/a.d.ts.map +1 -0
  36. package/types/exports/b.d.ts +3 -0
  37. package/types/exports/b.d.ts.map +1 -0
  38. package/types/Alert/index.d.ts.map +0 -1
  39. package/types/Alert/props.d.ts.map +0 -1
  40. package/types/Alert/styles.d.ts.map +0 -1
  41. package/types/Alert/theme.d.ts.map +0 -1
  42. package/types/index.d.ts +0 -3
  43. package/types/index.d.ts.map +0 -1
  44. /package/es/Alert/{props.js → v1/props.js} +0 -0
  45. /package/es/Alert/{styles.js → v1/styles.js} +0 -0
  46. /package/es/Alert/{theme.js → v1/theme.js} +0 -0
  47. /package/lib/Alert/{props.js → v1/props.js} +0 -0
  48. /package/lib/Alert/{styles.js → v1/styles.js} +0 -0
  49. /package/lib/Alert/{theme.js → v1/theme.js} +0 -0
  50. /package/src/Alert/{README.md → v1/README.md} +0 -0
  51. /package/src/Alert/{props.ts → v1/props.ts} +0 -0
  52. /package/src/Alert/{styles.ts → v1/styles.ts} +0 -0
  53. /package/src/Alert/{theme.ts → v1/theme.ts} +0 -0
  54. /package/types/Alert/{props.d.ts → v1/props.d.ts} +0 -0
  55. /package/types/Alert/{styles.d.ts → v1/styles.d.ts} +0 -0
  56. /package/types/Alert/{theme.d.ts → v1/theme.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'react';
2
- import type { ViewOwnProps } from '@instructure/ui-view';
2
+ import type { ViewOwnProps } from '@instructure/ui-view/v11_6';
3
3
  import { IconCheckMarkSolid, IconInfoBorderlessSolid, IconWarningBorderlessSolid, IconNoSolid } from '@instructure/ui-icons';
4
4
  import type { AlertProps, AlertState } from './props';
5
5
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Alert/v1/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAW3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAE9D,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACZ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AAU,GAAG,aAAa,GAC7B,cAAc,CAAC,UAAU,EAAE,UAAU,CAAC,GACtC,wBAAwB,CAAA;AAE1B,KAAK,UAAU,GAAG,cAAc,CAC9B,OAAO,GAAG,MAAM,GAAG,aAAa,GAAG,SAAS,GAAG,0BAA0B,CAC1E,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAenB,CAAA;AAED,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AAED,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Alert/v1/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAErD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,GACjB,gBAAgB,UAAU,EAC1B,OAAO,UAAU,KAChB,UAwFF,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/Alert/v1/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;AAEvE;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,GAAI,OAAO,KAAK,KAAG,UAuD9C,CAAA;AAED,eAAe,sBAAsB,CAAA"}
@@ -0,0 +1,73 @@
1
+ import { Component } from 'react';
2
+ import type { ViewOwnProps } from '@instructure/ui-view/latest';
3
+ import type { AlertProps, AlertState } from './props';
4
+ /**
5
+ ---
6
+ category: components
7
+ ---
8
+ **/
9
+ declare class Alert extends Component<AlertProps, AlertState> {
10
+ static readonly componentId = "Alert";
11
+ static allowedProps: readonly (keyof {
12
+ children?: import("react").ReactNode;
13
+ variant?: "info" | "success" | "warning" | "error";
14
+ variantScreenReaderLabel?: string;
15
+ liveRegion?: Element | null | (() => Element | null | undefined);
16
+ liveRegionPoliteness?: "polite" | "assertive";
17
+ isLiveRegionAtomic?: boolean;
18
+ screenReaderOnly?: boolean;
19
+ timeout?: number;
20
+ margin?: import("@instructure/emotion").Spacing;
21
+ renderCloseButtonLabel?: import("@instructure/shared-types").Renderable;
22
+ onDismiss?: () => void;
23
+ transition?: "none" | "fade";
24
+ open?: boolean;
25
+ hasShadow: boolean;
26
+ renderCustomIcon?: import("@instructure/shared-types").Renderable;
27
+ })[];
28
+ static defaultProps: {
29
+ variant: string;
30
+ margin: string;
31
+ timeout: number;
32
+ transition: string;
33
+ open: boolean;
34
+ screenReaderOnly: boolean;
35
+ liveRegionPoliteness: string;
36
+ isLiveRegionAtomic: boolean;
37
+ children: null;
38
+ hasShadow: boolean;
39
+ };
40
+ constructor(props: AlertProps);
41
+ _timeouts: ReturnType<typeof setTimeout>[];
42
+ srid: string;
43
+ variantUI: {
44
+ error: import("react").ComponentType<import("@instructure/ui-icons").InstUIIconProps>;
45
+ info: import("react").ComponentType<import("@instructure/ui-icons").InstUIIconProps>;
46
+ success: import("react").ComponentType<import("@instructure/ui-icons").InstUIIconProps>;
47
+ warning: import("react").ComponentType<import("@instructure/ui-icons").InstUIIconProps>;
48
+ };
49
+ ref: Element | null;
50
+ handleRef: (el: Element | null) => void;
51
+ handleTimeout: () => void;
52
+ clearTimeouts(): void;
53
+ onExitTransition: () => void;
54
+ close: () => void;
55
+ isDOMNode(n: Element | null | undefined): boolean | null | undefined;
56
+ getLiveRegion(): Element | null | undefined;
57
+ initLiveRegion(liveRegion: Element): void;
58
+ createScreenreaderContentNode(): import("@emotion/react/jsx-runtime").JSX.Element;
59
+ createScreenreaderAlert(): void;
60
+ removeScreenreaderAlert(): void;
61
+ handleKeyUp: (event: React.KeyboardEvent<ViewOwnProps>) => void;
62
+ componentDidMount(): void;
63
+ componentWillUnmount(): void;
64
+ componentDidUpdate(prevProps: AlertProps): void;
65
+ renderIcon(): import("@emotion/react/jsx-runtime").JSX.Element;
66
+ renderCloseButton(): import("@emotion/react/jsx-runtime").JSX.Element | null;
67
+ renderAlert(): import("@emotion/react/jsx-runtime").JSX.Element;
68
+ createScreenReaderPortal(liveRegion: Element): import("react").ReactPortal | null;
69
+ render(): import("@emotion/react/jsx-runtime").JSX.Element | null;
70
+ }
71
+ export default Alert;
72
+ export { Alert };
73
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Alert/v2/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAW3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAe/D,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAErD;;;;GAIG;AACH,cAEM,KAAM,SAAQ,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IACnD,MAAM,CAAC,QAAQ,CAAC,WAAW,WAAU;IAErC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;MAWlB;gBAEW,KAAK,EAAE,UAAU;IAS7B,SAAS,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,EAAE,CAAK;IAC/C,IAAI,EAAE,MAAM,CAAA;IAEZ,SAAS;;;;;MAKR;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAE9B;IAED,aAAa,aAQZ;IAED,aAAa;IAKb,gBAAgB,aAIf;IAED,KAAK,aAWJ;IAGD,SAAS,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS;IAIvC,aAAa;IASb,cAAc,CAAC,UAAU,EAAE,OAAO;IAmBlC,6BAA6B;IAQ7B,uBAAuB;IAUvB,uBAAuB;IAkBvB,WAAW,GAAI,OAAO,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,UAOtD;IAED,iBAAiB;IAUjB,oBAAoB;IAIpB,kBAAkB,CAAC,SAAS,EAAE,UAAU;IASxC,UAAU;IAUV,iBAAiB;IAgBjB,WAAW;IAkCX,wBAAwB,CAAC,UAAU,EAAE,OAAO;IAW5C,MAAM;CAsCP;AAED,eAAe,KAAK,CAAA;AACpB,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -0,0 +1,92 @@
1
+ import { ReactNode } from 'react';
2
+ import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
3
+ import type { AlertTheme, Renderable } from '@instructure/shared-types';
4
+ import type { WithDeterministicIdProps } from '@instructure/ui-react-utils';
5
+ type AlertOwnProps = {
6
+ /**
7
+ * content to be rendered within Alert
8
+ */
9
+ children?: ReactNode;
10
+ /**
11
+ * Determines color and icon
12
+ */
13
+ variant?: 'info' | 'success' | 'warning' | 'error';
14
+ /**
15
+ * How the screen reader should announce the alert variant. While the `variant` prop sets the color and icon for the alert component, this label should be a textual representation of that information. So e.g. if the variant is `info`, this label could be "Information," or "Information alert,". Note the `,` at the end of the label which helps the screenreader to be more natural sounding.
16
+ */
17
+ variantScreenReaderLabel?: string;
18
+ /**
19
+ * A DOM element or function that returns an element where screenreader alerts will be placed.
20
+ */
21
+ liveRegion?: Element | null | (() => Element | null | undefined);
22
+ /**
23
+ * Choose the politeness level of screenreader alerts, sets the value of
24
+ * `aria-live`.
25
+ *
26
+ * When regions are specified as `polite`, assistive technologies will notify
27
+ * users of updates but generally do not interrupt the current task,
28
+ * and updates take low priority.
29
+ *
30
+ * When regions are specified as `assertive`, assistive technologies will
31
+ * immediately notify the user, and could potentially clear the speech queue
32
+ * of previous updates.
33
+ */
34
+ liveRegionPoliteness?: 'polite' | 'assertive';
35
+ /**
36
+ * Value for the `aria-atomic` attribute.
37
+ * `aria-atomic` controls how much is read when a change happens. Should only
38
+ * the specific thing that changed be read or should the entire element be
39
+ * read.
40
+ */
41
+ isLiveRegionAtomic?: boolean;
42
+ /**
43
+ * If the alert should only be visible to screen readers
44
+ */
45
+ screenReaderOnly?: boolean;
46
+ /**
47
+ * Milliseconds until the Alert is dismissed automatically
48
+ */
49
+ timeout?: number;
50
+ /**
51
+ * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
52
+ * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
53
+ * familiar CSS-like shorthand. For example: `margin="small auto large"`.
54
+ */
55
+ margin?: Spacing;
56
+ /**
57
+ * Close button label. Can be a React component
58
+ */
59
+ renderCloseButtonLabel?: Renderable;
60
+ /**
61
+ * Callback after the alert is closed
62
+ */
63
+ onDismiss?: () => void;
64
+ /**
65
+ * Transition used to make the alert appear and disappear
66
+ */
67
+ transition?: 'none' | 'fade';
68
+ /**
69
+ * if open transitions from truthy to falsey, it's a signal to close and unmount the alert.
70
+ * This is necessary to close the alert from the outside and still run the transition.
71
+ */
72
+ open?: boolean;
73
+ /**
74
+ * If the alert should have a shadow.
75
+ */
76
+ hasShadow: boolean;
77
+ /**
78
+ * An icon, or function that returns an icon. Setting it will override the variant's icon.
79
+ */
80
+ renderCustomIcon?: Renderable;
81
+ };
82
+ type PropKeys = keyof AlertOwnProps;
83
+ type AllowedPropKeys = Readonly<Array<PropKeys>>;
84
+ type AlertProps = AlertOwnProps & WithStyleProps<AlertTheme, AlertStyle> & WithDeterministicIdProps;
85
+ type AlertStyle = ComponentStyle<'alert' | 'icon' | 'closeButton' | 'content' | 'variantScreenReaderLabel'>;
86
+ declare const allowedProps: AllowedPropKeys;
87
+ type AlertState = {
88
+ open: boolean;
89
+ };
90
+ export type { AlertProps, AlertStyle, AlertState };
91
+ export { allowedProps };
92
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
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AAU,CAAA;CAC9B,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,aAAa,CAAA;AAEnC,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,UAAU,GAAG,aAAa,GAC7B,cAAc,CAAC,UAAU,EAAE,UAAU,CAAC,GACtC,wBAAwB,CAAA;AAE1B,KAAK,UAAU,GAAG,cAAc,CAC9B,OAAO,GAAG,MAAM,GAAG,aAAa,GAAG,SAAS,GAAG,0BAA0B,CAC1E,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAenB,CAAA;AAED,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AAED,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { NewComponentTypes, SharedTokens } from '@instructure/ui-themes';
2
+ import type { AlertProps, AlertStyle } from './props';
3
+ /**
4
+ * ---
5
+ * private: true
6
+ * ---
7
+ * Generates the style object from the theme and provided additional information
8
+ * @param {Object} componentTheme The theme variable object.
9
+ * @param {Object} props the props of the component, the style is applied to
10
+ * @param {Object} state the state of the component, the style is applied to
11
+ * @return {Object} The final style object, which will be used in the component
12
+ */
13
+ declare const generateStyle: (componentTheme: NewComponentTypes["Alert"], props: AlertProps, sharedTokens: SharedTokens) => AlertStyle;
14
+ export default generateStyle;
15
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Alert/v2/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAE7E,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAErD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,GACjB,gBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAC1C,OAAO,UAAU,EACjB,cAAc,YAAY,KACzB,UA4FF,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { Alert } from '../Alert/v1';
2
+ export type { AlertProps } from '../Alert/v1/props';
3
+ //# sourceMappingURL=a.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../../src/exports/a.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { Alert } from '../Alert/v2';
2
+ export type { AlertProps } from '../Alert/v2/props';
3
+ //# sourceMappingURL=b.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../../src/exports/b.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Alert/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAW3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAS9B,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAErD;;;;GAIG;AACH,cAEM,KAAM,SAAQ,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IACnD,MAAM,CAAC,QAAQ,CAAC,WAAW,WAAU;IAErC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;SAA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AAI,EAAE,OAAO,CAAA;CACd,CAAA;AAED,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Alert/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAErD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,GACjB,gBAAgB,UAAU,EAC1B,OAAO,UAAU,KAChB,UAwFF,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/Alert/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;AAEvE;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,GAAI,OAAO,KAAK,KAAG,UAuD9C,CAAA;AAED,eAAe,sBAAsB,CAAA"}
package/types/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { Alert } from './Alert';
2
- export type { AlertProps } from './Alert/props';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes