@abyss-project/commons-front-core 2.0.7 → 2.0.9
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/CookieConsentSettings.component-DX8UGrQv.js +6770 -0
- package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +3 -9
- package/dist/components/Inputs/DatePeriodPicker/date-period-picker.logic.d.ts +0 -9
- package/dist/components/Inputs/DatePeriodPicker/date-period-presets.spec.d.ts +1 -0
- package/dist/components/Inputs/DatePeriodPicker/date-period-presets.util.d.ts +7 -0
- package/dist/components/Inputs/DatePeriodPicker/index.d.ts +1 -1
- package/dist/components/Inputs/PasswordInput/PasswordInput.component.d.ts +12 -3
- package/dist/components/Support/SupportCategoryChip.component.d.ts +1 -0
- package/dist/components/Utils/WaterParticles/WaterParticles.component.d.ts +4 -1
- package/dist/cookie-consent.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +1615 -11
- package/dist/{index-DACvHD4x.js → index-51K14Eyc.js} +1 -1
- package/dist/{index-B2fR3xdP.js → index-BCA5Vod2.js} +2 -2
- package/dist/{index-CV_3Qx_A.js → index-BRQYDNh_.js} +2 -2
- package/dist/{index-Bqnt_ExQ.js → index-BiQ0ye2m.js} +4 -4
- package/dist/{index-C98eqi39.js → index-BpTqeeVe.js} +2 -2
- package/dist/{index-Dj_vRhwN.js → index-CJ8p6-bx.js} +2 -2
- package/dist/{index-PEU525Qw.js → index-CVuiuPPp.js} +3 -3
- package/dist/{index-BDOfjciD.js → index-C_0jzWjy.js} +2 -2
- package/dist/{index-DYmtoPaB.js → index-CsAh2Ik2.js} +2 -2
- package/dist/{index-BSk9iaXD.js → index-Cu91rx6k.js} +2 -2
- package/dist/{index-6DUSkyBD.js → index-CudQjfps.js} +44624 -48575
- package/dist/{index-BlUKNEsn.js → index-CyNoPuDN.js} +4 -4
- package/dist/{index-3uag_hfE.js → index-DXqgg-Cv.js} +4 -4
- package/dist/{index-CZWM_rt5.js → index-Dj8R-rAN.js} +2 -2
- package/dist/{index-C3lGPmZ4.js → index-DqDs98uV.js} +2 -2
- package/dist/{index-Bc6ygwh4.js → index-DuMysSyV.js} +2 -2
- package/dist/{index-BzlsqZM7.js → index-JGgjUuXU.js} +2 -2
- package/dist/{index-BPHG_XSD.js → index-LEMTpBLd.js} +3 -3
- package/dist/{index-DQUokZMu.js → index-Sp7tyFRo.js} +3 -3
- package/dist/{index-D-_TGtl5.js → index-dAuS9qT4.js} +2 -2
- package/dist/{index-DB7YZGYP.js → index-gauug9Au.js} +2 -2
- package/dist/{index-D91QLhrf.js → index-nWr1HQ7I.js} +3 -3
- package/dist/index.js +179 -179
- package/dist/translations/en.d.ts +16 -8
- package/dist/translations/fr.d.ts +16 -8
- package/dist/utils/color.utils.d.ts +1 -0
- package/package.json +3 -3
- package/dist/CookieConsentSettings.component-BS3tbqB-.js +0 -2942
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { Locale } from 'date-fns';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
export type {
|
|
5
|
-
export type
|
|
6
|
-
label: string;
|
|
7
|
-
getRange: () => [Date, Date];
|
|
8
|
-
};
|
|
9
|
-
export type DeprecatedDatePeriodVariant = 'default' | 'compact' | 'inline' | 'presets-only' | 'presets-bar';
|
|
10
|
-
export type DatePeriodVariant = DeprecatedDatePeriodVariant | 'segmented';
|
|
3
|
+
import { DatePeriodPreset } from './date-period-presets.util';
|
|
4
|
+
export type { DatePeriodPreset } from './date-period-presets.util';
|
|
5
|
+
export type DatePeriodVariant = 'default' | 'compact' | 'inline' | 'presets-only' | 'presets-bar';
|
|
11
6
|
export type DatePeriodPickerProps = {
|
|
12
7
|
startDate: Date | null;
|
|
13
8
|
endDate: Date | null;
|
|
@@ -15,7 +10,6 @@ export type DatePeriodPickerProps = {
|
|
|
15
10
|
onEndDateChange: (date: Date | null) => void;
|
|
16
11
|
onRangeChange?: (start: Date | null, end: Date | null) => void;
|
|
17
12
|
variant?: DatePeriodVariant;
|
|
18
|
-
granularity?: DatePeriodGranularity;
|
|
19
13
|
presets?: DatePeriodPreset[];
|
|
20
14
|
hidePresets?: boolean;
|
|
21
15
|
minDate?: Date;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Locale } from 'date-fns';
|
|
2
2
|
export type EditingBound = 'start' | 'end';
|
|
3
|
-
export type DatePeriodGranularity = 'day' | 'minute';
|
|
4
3
|
export type RangeUpdateInput = {
|
|
5
4
|
editing: EditingBound;
|
|
6
5
|
picked: Date;
|
|
7
6
|
startDate: Date | null;
|
|
8
7
|
endDate: Date | null;
|
|
9
|
-
granularity?: DatePeriodGranularity;
|
|
10
8
|
};
|
|
11
9
|
export type RangeUpdateResult = {
|
|
12
10
|
start: Date | null;
|
|
@@ -14,12 +12,5 @@ export type RangeUpdateResult = {
|
|
|
14
12
|
startChanged: boolean;
|
|
15
13
|
endChanged: boolean;
|
|
16
14
|
};
|
|
17
|
-
export type TimeChangeInput = {
|
|
18
|
-
editing: EditingBound;
|
|
19
|
-
time: Date;
|
|
20
|
-
startDate: Date | null;
|
|
21
|
-
endDate: Date | null;
|
|
22
|
-
};
|
|
23
15
|
export declare const computeRangeUpdate: (input: RangeUpdateInput) => RangeUpdateResult;
|
|
24
|
-
export declare const applyTimeChange: (input: TimeChangeInput) => RangeUpdateResult;
|
|
25
16
|
export declare const resolveDateFnsLocale: (language?: string | null) => Locale;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type DatePeriodPreset = {
|
|
2
|
+
label: string;
|
|
3
|
+
getRange: () => [Date, Date];
|
|
4
|
+
};
|
|
5
|
+
export declare const DEFAULT_PRESET_KEYS: readonly ["inputs.period-picker.labels.presets.7d", "inputs.period-picker.labels.presets.30d", "inputs.period-picker.labels.presets.90d", "inputs.period-picker.labels.presets.month", "inputs.period-picker.labels.presets.year"];
|
|
6
|
+
export type DefaultPresetKey = (typeof DEFAULT_PRESET_KEYS)[number];
|
|
7
|
+
export declare const buildDefaultPresets: (translate: (id: DefaultPresetKey) => string) => DatePeriodPreset[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as DatePeriodPicker } from './DatePeriodPicker.component';
|
|
2
|
-
export type { DatePeriodPickerProps, DatePeriodPreset, DatePeriodVariant
|
|
2
|
+
export type { DatePeriodPickerProps, DatePeriodPreset, DatePeriodVariant } from './DatePeriodPicker.component';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SxProps } from '@mui/material';
|
|
2
|
-
import { FC, ChangeEvent } from 'react';
|
|
2
|
+
import { FC, ChangeEvent, KeyboardEvent, ReactNode } from 'react';
|
|
3
3
|
type Props = {
|
|
4
4
|
name: string;
|
|
5
5
|
label?: string;
|
|
@@ -11,6 +11,15 @@ type Props = {
|
|
|
11
11
|
size?: 'small' | 'medium';
|
|
12
12
|
sx?: SxProps;
|
|
13
13
|
disabled?: boolean;
|
|
14
|
+
autoComplete?: string;
|
|
15
|
+
helperText?: ReactNode;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
autoFocus?: boolean;
|
|
18
|
+
id?: string;
|
|
19
|
+
inputProps?: Record<string, unknown>;
|
|
20
|
+
onKeyDown?: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
21
|
+
onKeyUp?: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
22
|
+
onBlur?: () => void;
|
|
14
23
|
};
|
|
15
|
-
declare const
|
|
16
|
-
export default
|
|
24
|
+
declare const PasswordInput: FC<Props>;
|
|
25
|
+
export default PasswordInput;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { SupportTicketCategory, SupportTicketCategoryGroup } from '@abyss-project/main';
|
|
2
3
|
import { SupportCategoryChipProps } from './types';
|
|
3
4
|
export declare const getCategoryGroup: (category: SupportTicketCategory) => SupportTicketCategoryGroup;
|
|
4
5
|
export declare const getCategoryConfig: (category: SupportTicketCategory) => {
|
package/dist/cookie-consent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, c as a, C as n, a as i, R as C, V as t, d as r, f as k, r as c, e as A, u as l, b, w as d } from "./CookieConsentSettings.component-
|
|
1
|
+
import { A as s, c as a, C as n, a as i, R as C, V as t, d as r, f as k, r as c, e as A, u as l, b, w as d } from "./CookieConsentSettings.component-DX8UGrQv.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AbyssCookieConsentProvider,
|
|
4
4
|
a as COOKIE_NAME,
|