@clicoh/orion-library 1.0.19 → 1.1.0-beta.2
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/assets/css/base.css +44 -6
- package/dist/components/00-base/RootLayout/RootLayout.d.ts.map +1 -1
- package/dist/components/00-base/RootLayout/RootLayout.jsx +7 -3
- package/dist/components/00-base/RootLayout/RootLayout.jsx.map +1 -1
- package/dist/components/01-atoms/Badge/Badge.d.ts.map +1 -1
- package/dist/components/01-atoms/Badge/Badge.jsx +7 -7
- package/dist/components/01-atoms/Badge/Badge.jsx.map +1 -1
- package/dist/components/01-atoms/Button/Button.jsx +2 -2
- package/dist/components/01-atoms/Button/Button.jsx.map +1 -1
- package/dist/components/01-atoms/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/01-atoms/Checkbox/Checkbox.jsx +17 -11
- package/dist/components/01-atoms/Checkbox/Checkbox.jsx.map +1 -1
- package/dist/components/01-atoms/FileUpload/FileUpload.d.ts +2 -0
- package/dist/components/01-atoms/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/01-atoms/FileUpload/FileUpload.jsx +21 -15
- package/dist/components/01-atoms/FileUpload/FileUpload.jsx.map +1 -1
- package/dist/components/01-atoms/Input/Input.d.ts +3 -1
- package/dist/components/01-atoms/Input/Input.d.ts.map +1 -1
- package/dist/components/01-atoms/Input/Input.jsx +22 -19
- package/dist/components/01-atoms/Input/Input.jsx.map +1 -1
- package/dist/components/01-atoms/Input/utils/RenderErrorOrHelperText.d.ts +5 -3
- package/dist/components/01-atoms/Input/utils/RenderErrorOrHelperText.d.ts.map +1 -1
- package/dist/components/01-atoms/Input/utils/RenderErrorOrHelperText.jsx +4 -4
- package/dist/components/01-atoms/Input/utils/RenderErrorOrHelperText.jsx.map +1 -1
- package/dist/components/01-atoms/Input/utils/border.d.ts.map +1 -1
- package/dist/components/01-atoms/Input/utils/border.js +4 -2
- package/dist/components/01-atoms/Input/utils/border.js.map +1 -1
- package/dist/components/01-atoms/Logo/Logo.d.ts +1 -1
- package/dist/components/01-atoms/Logo/Logo.d.ts.map +1 -1
- package/dist/components/01-atoms/Logo/Logo.jsx +3 -2
- package/dist/components/01-atoms/Logo/Logo.jsx.map +1 -1
- package/dist/components/01-atoms/MultiSelect/MultiSelect.d.ts +3 -1
- package/dist/components/01-atoms/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/01-atoms/MultiSelect/MultiSelect.jsx +112 -35
- package/dist/components/01-atoms/MultiSelect/MultiSelect.jsx.map +1 -1
- package/dist/components/01-atoms/OtpInput/OtpInput.d.ts +4 -2
- package/dist/components/01-atoms/OtpInput/OtpInput.d.ts.map +1 -1
- package/dist/components/01-atoms/OtpInput/OtpInput.jsx +14 -8
- package/dist/components/01-atoms/OtpInput/OtpInput.jsx.map +1 -1
- package/dist/components/01-atoms/RadialProgressBar/RadialProgressBar.d.ts.map +1 -1
- package/dist/components/01-atoms/RadialProgressBar/RadialProgressBar.jsx +4 -4
- package/dist/components/01-atoms/RadialProgressBar/RadialProgressBar.jsx.map +1 -1
- package/dist/components/01-atoms/Radio/Radio.d.ts.map +1 -1
- package/dist/components/01-atoms/Radio/Radio.jsx +24 -31
- package/dist/components/01-atoms/Radio/Radio.jsx.map +1 -1
- package/dist/components/01-atoms/Select/Select.d.ts.map +1 -1
- package/dist/components/01-atoms/Select/Select.jsx +18 -19
- package/dist/components/01-atoms/Select/Select.jsx.map +1 -1
- package/dist/components/01-atoms/SmallInput/SmallInput.d.ts +11 -0
- package/dist/components/01-atoms/SmallInput/SmallInput.d.ts.map +1 -0
- package/dist/components/01-atoms/SmallInput/SmallInput.jsx +19 -0
- package/dist/components/01-atoms/SmallInput/SmallInput.jsx.map +1 -0
- package/dist/components/01-atoms/SmallInput/index.d.ts +2 -0
- package/dist/components/01-atoms/SmallInput/index.d.ts.map +1 -0
- package/dist/components/01-atoms/SmallInput/index.js +2 -0
- package/dist/components/01-atoms/SmallInput/index.js.map +1 -0
- package/dist/components/01-atoms/Spinner/Spinner.d.ts +6 -1
- package/dist/components/01-atoms/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/01-atoms/Spinner/Spinner.jsx +3 -4
- package/dist/components/01-atoms/Spinner/Spinner.jsx.map +1 -1
- package/dist/components/01-atoms/Switch/Switch.d.ts.map +1 -1
- package/dist/components/01-atoms/Switch/Switch.jsx +6 -5
- package/dist/components/01-atoms/Switch/Switch.jsx.map +1 -1
- package/dist/components/01-atoms/ThemeSwitch/ThemeSwitch.d.ts +8 -0
- package/dist/components/01-atoms/ThemeSwitch/ThemeSwitch.d.ts.map +1 -0
- package/dist/components/01-atoms/ThemeSwitch/ThemeSwitch.jsx +17 -0
- package/dist/components/01-atoms/ThemeSwitch/ThemeSwitch.jsx.map +1 -0
- package/dist/components/01-atoms/ThemeSwitch/index.d.ts +2 -0
- package/dist/components/01-atoms/ThemeSwitch/index.d.ts.map +1 -0
- package/dist/components/01-atoms/ThemeSwitch/index.js +2 -0
- package/dist/components/01-atoms/ThemeSwitch/index.js.map +1 -0
- package/dist/components/01-atoms/Toast/Toast.d.ts.map +1 -1
- package/dist/components/01-atoms/Toast/Toast.jsx +9 -11
- package/dist/components/01-atoms/Toast/Toast.jsx.map +1 -1
- package/dist/components/01-atoms/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/01-atoms/Tooltip/Tooltip.jsx +2 -2
- package/dist/components/01-atoms/Tooltip/Tooltip.jsx.map +1 -1
- package/dist/components/01-atoms/index.d.ts +2 -0
- package/dist/components/01-atoms/index.d.ts.map +1 -1
- package/dist/components/01-atoms/index.js +2 -0
- package/dist/components/01-atoms/index.js.map +1 -1
- package/dist/components/02-molecules/Accordion/AccordionSection.d.ts.map +1 -1
- package/dist/components/02-molecules/Accordion/AccordionSection.jsx +14 -10
- package/dist/components/02-molecules/Accordion/AccordionSection.jsx.map +1 -1
- package/dist/components/02-molecules/Autocomplete/Autocomplete.d.ts +4 -1
- package/dist/components/02-molecules/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/02-molecules/Autocomplete/Autocomplete.jsx +68 -8
- package/dist/components/02-molecules/Autocomplete/Autocomplete.jsx.map +1 -1
- package/dist/components/02-molecules/Avatar/Avatar.d.ts +3 -2
- package/dist/components/02-molecules/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/02-molecules/Avatar/Avatar.jsx +22 -5
- package/dist/components/02-molecules/Avatar/Avatar.jsx.map +1 -1
- package/dist/components/02-molecules/Avatar/AvatarItem.d.ts.map +1 -1
- package/dist/components/02-molecules/Avatar/AvatarItem.jsx +3 -3
- package/dist/components/02-molecules/Avatar/AvatarItem.jsx.map +1 -1
- package/dist/components/02-molecules/BellNotifications/BellNotification.d.ts +4 -1
- package/dist/components/02-molecules/BellNotifications/BellNotification.d.ts.map +1 -1
- package/dist/components/02-molecules/BellNotifications/BellNotification.jsx +24 -6
- package/dist/components/02-molecules/BellNotifications/BellNotification.jsx.map +1 -1
- package/dist/components/02-molecules/BellNotifications/NotificationPanel.d.ts +4 -1
- package/dist/components/02-molecules/BellNotifications/NotificationPanel.d.ts.map +1 -1
- package/dist/components/02-molecules/BellNotifications/NotificationPanel.jsx +48 -41
- package/dist/components/02-molecules/BellNotifications/NotificationPanel.jsx.map +1 -1
- package/dist/components/02-molecules/Breadcrumb/Breadcrumb.d.ts +3 -1
- package/dist/components/02-molecules/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/02-molecules/Breadcrumb/Breadcrumb.jsx +7 -7
- package/dist/components/02-molecules/Breadcrumb/Breadcrumb.jsx.map +1 -1
- package/dist/components/02-molecules/Breadcrumb/BreadcrumbSkeleton.d.ts +6 -2
- package/dist/components/02-molecules/Breadcrumb/BreadcrumbSkeleton.d.ts.map +1 -1
- package/dist/components/02-molecules/Breadcrumb/BreadcrumbSkeleton.jsx +3 -4
- package/dist/components/02-molecules/Breadcrumb/BreadcrumbSkeleton.jsx.map +1 -1
- package/dist/components/02-molecules/ButtonGroup/ButtonGroup.d.ts +1 -0
- package/dist/components/02-molecules/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/components/02-molecules/ButtonGroup/ButtonGroup.jsx +4 -3
- package/dist/components/02-molecules/ButtonGroup/ButtonGroup.jsx.map +1 -1
- package/dist/components/02-molecules/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/02-molecules/Dropdown/Dropdown.jsx +110 -19
- package/dist/components/02-molecules/Dropdown/Dropdown.jsx.map +1 -1
- package/dist/components/02-molecules/Filter/Filter.d.ts +4 -1
- package/dist/components/02-molecules/Filter/Filter.d.ts.map +1 -1
- package/dist/components/02-molecules/Filter/Filter.jsx +11 -8
- package/dist/components/02-molecules/Filter/Filter.jsx.map +1 -1
- package/dist/components/02-molecules/Menu/MenuItem.d.ts +4 -1
- package/dist/components/02-molecules/Menu/MenuItem.d.ts.map +1 -1
- package/dist/components/02-molecules/Menu/MenuItem.jsx +59 -28
- package/dist/components/02-molecules/Menu/MenuItem.jsx.map +1 -1
- package/dist/components/02-molecules/Menu/MenuList.d.ts +5 -2
- package/dist/components/02-molecules/Menu/MenuList.d.ts.map +1 -1
- package/dist/components/02-molecules/Menu/MenuList.jsx +60 -16
- package/dist/components/02-molecules/Menu/MenuList.jsx.map +1 -1
- package/dist/components/02-molecules/Modal/Modal.d.ts +5 -1
- package/dist/components/02-molecules/Modal/Modal.d.ts.map +1 -1
- package/dist/components/02-molecules/Modal/Modal.jsx +25 -10
- package/dist/components/02-molecules/Modal/Modal.jsx.map +1 -1
- package/dist/components/02-molecules/Modal/useDialogFocus.d.ts +10 -0
- package/dist/components/02-molecules/Modal/useDialogFocus.d.ts.map +1 -0
- package/dist/components/02-molecules/Modal/useDialogFocus.js +73 -0
- package/dist/components/02-molecules/Modal/useDialogFocus.js.map +1 -0
- package/dist/components/02-molecules/Pagination/Pagination.d.ts +5 -1
- package/dist/components/02-molecules/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/02-molecules/Pagination/Pagination.jsx +18 -15
- package/dist/components/02-molecules/Pagination/Pagination.jsx.map +1 -1
- package/dist/components/02-molecules/SlideOver/SlideOver.d.ts +6 -2
- package/dist/components/02-molecules/SlideOver/SlideOver.d.ts.map +1 -1
- package/dist/components/02-molecules/SlideOver/SlideOver.jsx +17 -15
- package/dist/components/02-molecules/SlideOver/SlideOver.jsx.map +1 -1
- package/dist/components/02-molecules/Tab/TabItem.d.ts +2 -2
- package/dist/components/02-molecules/Tab/TabItem.d.ts.map +1 -1
- package/dist/components/02-molecules/Tab/TabItem.jsx +4 -5
- package/dist/components/02-molecules/Tab/TabItem.jsx.map +1 -1
- package/dist/components/02-molecules/Tab/TabList.d.ts.map +1 -1
- package/dist/components/02-molecules/Tab/TabList.jsx +42 -13
- package/dist/components/02-molecules/Tab/TabList.jsx.map +1 -1
- package/dist/components/02-molecules/Table/Table.d.ts +5 -1
- package/dist/components/02-molecules/Table/Table.d.ts.map +1 -1
- package/dist/components/02-molecules/Table/Table.jsx +31 -14
- package/dist/components/02-molecules/Table/Table.jsx.map +1 -1
- package/dist/components/02-molecules/Table/TableEmpty.d.ts.map +1 -1
- package/dist/components/02-molecules/Table/TableEmpty.jsx +2 -2
- package/dist/components/02-molecules/Table/TableEmpty.jsx.map +1 -1
- package/dist/components/02-molecules/Table/TableSkeleton.jsx +2 -2
- package/dist/components/02-molecules/Table/TableSkeleton.jsx.map +1 -1
- package/dist/components/02-molecules/TimePicker/TimePicker.d.ts +6 -1
- package/dist/components/02-molecules/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/components/02-molecules/TimePicker/TimePicker.jsx +11 -11
- package/dist/components/02-molecules/TimePicker/TimePicker.jsx.map +1 -1
- package/dist/components/03-organisms/AsideFilters/AsideFilters.jsx +1 -1
- package/dist/components/03-organisms/AsideFilters/AsideFilters.jsx.map +1 -1
- package/dist/components/03-organisms/DataTable/DataTable.d.ts +2 -2
- package/dist/components/03-organisms/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/03-organisms/DataTable/DataTable.jsx +1 -1
- package/dist/components/03-organisms/DataTable/DataTable.jsx.map +1 -1
- package/dist/components/03-organisms/Header/Header.d.ts +3 -1
- package/dist/components/03-organisms/Header/Header.d.ts.map +1 -1
- package/dist/components/03-organisms/Header/Header.jsx +4 -3
- package/dist/components/03-organisms/Header/Header.jsx.map +1 -1
- package/dist/components/03-organisms/ModalMultiple/ModalMultiple.d.ts +9 -5
- package/dist/components/03-organisms/ModalMultiple/ModalMultiple.d.ts.map +1 -1
- package/dist/components/03-organisms/ModalMultiple/ModalMultiple.jsx +25 -12
- package/dist/components/03-organisms/ModalMultiple/ModalMultiple.jsx.map +1 -1
- package/dist/components/04-templates/DashboardTemplate/DashboardTemplate.d.ts +3 -1
- package/dist/components/04-templates/DashboardTemplate/DashboardTemplate.d.ts.map +1 -1
- package/dist/components/04-templates/DashboardTemplate/DashboardTemplate.jsx +5 -5
- package/dist/components/04-templates/DashboardTemplate/DashboardTemplate.jsx.map +1 -1
- package/dist/components/04-templates/DashboardTemplate/HeadingWithTitleSkeleton.d.ts +6 -2
- package/dist/components/04-templates/DashboardTemplate/HeadingWithTitleSkeleton.d.ts.map +1 -1
- package/dist/components/04-templates/DashboardTemplate/HeadingWithTitleSkeleton.jsx +3 -4
- package/dist/components/04-templates/DashboardTemplate/HeadingWithTitleSkeleton.jsx.map +1 -1
- package/dist/components/04-templates/LoginTemplate/LoginForm.d.ts +7 -1
- package/dist/components/04-templates/LoginTemplate/LoginForm.d.ts.map +1 -1
- package/dist/components/04-templates/LoginTemplate/LoginForm.jsx +7 -7
- package/dist/components/04-templates/LoginTemplate/LoginForm.jsx.map +1 -1
- package/dist/components/04-templates/LoginTemplate/LoginTemplate.d.ts +1 -0
- package/dist/components/04-templates/LoginTemplate/LoginTemplate.d.ts.map +1 -1
- package/dist/components/04-templates/LoginTemplate/LoginTemplate.jsx +4 -4
- package/dist/components/04-templates/LoginTemplate/LoginTemplate.jsx.map +1 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepFour.d.ts.map +1 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepFour.jsx +3 -3
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepFour.jsx.map +1 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepOne.d.ts +2 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepOne.d.ts.map +1 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepOne.jsx +5 -5
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepOne.jsx.map +1 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepThree.d.ts +3 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepThree.d.ts.map +1 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepThree.jsx +9 -9
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepThree.jsx.map +1 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepTwo.d.ts +2 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepTwo.d.ts.map +1 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepTwo.jsx +6 -6
- package/dist/components/04-templates/LoginTemplate/SetupMfa/StepTwo.jsx.map +1 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/index.d.ts +11 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/index.d.ts.map +1 -1
- package/dist/components/04-templates/LoginTemplate/SetupMfa/index.jsx +16 -6
- package/dist/components/04-templates/LoginTemplate/SetupMfa/index.jsx.map +1 -1
- package/dist/components/04-templates/SideFilterTemplate/SideFilterTemplate.d.ts.map +1 -1
- package/dist/components/04-templates/SideFilterTemplate/SideFilterTemplate.jsx +5 -3
- package/dist/components/04-templates/SideFilterTemplate/SideFilterTemplate.jsx.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useTheme.d.ts +21 -0
- package/dist/hooks/useTheme.d.ts.map +1 -0
- package/dist/hooks/useTheme.jsx +82 -0
- package/dist/hooks/useTheme.jsx.map +1 -0
- package/package.json +3 -2
|
@@ -15,10 +15,10 @@ import { Each } from '../../00-base';
|
|
|
15
15
|
* @returns {ReactNode} The rendered TableSkeleton component.
|
|
16
16
|
*/
|
|
17
17
|
export function TableSkeleton({ numberOfColumns, numberOfRows, }) {
|
|
18
|
-
return (<Each of={range(numberOfRows)} render={(item) => (<tr key={item}>
|
|
18
|
+
return (<Each of={range(numberOfRows)} render={(item) => (<tr key={item} className="border-gray-5 dark:border-gray-1 border-b">
|
|
19
19
|
<Each of={range(numberOfColumns)} render={(item) => (<td key={item} className="px-4 py-5">
|
|
20
20
|
<div role="status" className="animate-pulse">
|
|
21
|
-
<div className="bg-gray-2 h-2.5 w-16 rounded-full"></div>
|
|
21
|
+
<div className="bg-gray-2 dark:bg-gray-1 h-2.5 w-16 rounded-full"></div>
|
|
22
22
|
</div>
|
|
23
23
|
</td>)}/>
|
|
24
24
|
</tr>)}/>);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSkeleton.jsx","sourceRoot":"","sources":["../../../../src/components/02-molecules/Table/TableSkeleton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOrC;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,aAAa,CAAC,EAC5B,eAAe,EACf,YAAY,GACO;IACnB,OAAO,CACL,CAAC,IAAI,CACH,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CACxB,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAChB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"TableSkeleton.jsx","sourceRoot":"","sources":["../../../../src/components/02-molecules/Table/TableSkeleton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOrC;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,aAAa,CAAC,EAC5B,eAAe,EACf,YAAY,GACO;IACnB,OAAO,CACL,CAAC,IAAI,CACH,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CACxB,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAChB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,2CAA2C,CAClE;UAAA,CAAC,IAAI,CACH,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAC3B,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAChB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,WAAW,CAClC;gBAAA,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,eAAe,CAC1C;kBAAA,CAAC,GAAG,CAAC,SAAS,CAAC,kDAAkD,CAAC,EAAE,GAAG,CACzE;gBAAA,EAAE,GAAG,CACP;cAAA,EAAE,EAAE,CAAC,CACN,CAAC,EAEN;QAAA,EAAE,EAAE,CAAC,CACN,CAAC,EACF,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -4,6 +4,11 @@ type TimePickerProps = {
|
|
|
4
4
|
defaultValue?: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
onTimeChange?: (time: string) => void;
|
|
7
|
+
label?: string;
|
|
8
|
+
incrementHourLabel?: string;
|
|
9
|
+
decrementHourLabel?: string;
|
|
10
|
+
incrementMinuteLabel?: string;
|
|
11
|
+
decrementMinuteLabel?: string;
|
|
7
12
|
} & HTMLAttributes<HTMLDivElement>;
|
|
8
13
|
/**
|
|
9
14
|
* TimePicker component that allows selecting only hour and half-hour slots.
|
|
@@ -25,6 +30,6 @@ type TimePickerProps = {
|
|
|
25
30
|
*
|
|
26
31
|
* @returns {ReactNode} The rendered TimePicker component.
|
|
27
32
|
*/
|
|
28
|
-
export declare function TimePicker({ value, defaultValue, disabled, onTimeChange, ...restProps }: TimePickerProps): ReactNode;
|
|
33
|
+
export declare function TimePicker({ value, defaultValue, disabled, onTimeChange, label, incrementHourLabel, decrementHourLabel, incrementMinuteLabel, decrementMinuteLabel, ...restProps }: TimePickerProps): ReactNode;
|
|
29
34
|
export {};
|
|
30
35
|
//# sourceMappingURL=TimePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/02-molecules/TimePicker/TimePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAUf,KAAK,eAAe,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/02-molecules/TimePicker/TimePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAUf,KAAK,eAAe,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AASnC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,YAAY,EACZ,QAAgB,EAChB,YAAY,EACZ,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,GAAG,SAAS,EACb,EAAE,eAAe,GAAG,SAAS,CA+E7B"}
|
|
@@ -28,7 +28,7 @@ const minuteValues = [0, 30];
|
|
|
28
28
|
*
|
|
29
29
|
* @returns {ReactNode} The rendered TimePicker component.
|
|
30
30
|
*/
|
|
31
|
-
export function TimePicker({ value, defaultValue, disabled = false, onTimeChange, ...restProps }) {
|
|
31
|
+
export function TimePicker({ value, defaultValue, disabled = false, onTimeChange, label, incrementHourLabel, decrementHourLabel, incrementMinuteLabel, decrementMinuteLabel, ...restProps }) {
|
|
32
32
|
const [time, setTime] = useState(() => parseTime(value || defaultValue));
|
|
33
33
|
useEffect(() => {
|
|
34
34
|
if (!value)
|
|
@@ -54,37 +54,37 @@ export function TimePicker({ value, defaultValue, disabled = false, onTimeChange
|
|
|
54
54
|
const nextIndex = (currentIndex + step + minuteValues.length) % minuteValues.length;
|
|
55
55
|
return updateTime({ ...time, minute: minuteValues[nextIndex] });
|
|
56
56
|
};
|
|
57
|
-
return (<div {...restProps} className={clsx('border-info bg-info-2 inline-flex items-center justify-center rounded-xl border px-5 py-3', disabled && 'border-gray-3', restProps.className)}>
|
|
58
|
-
<TimeValue value={padTimeValue(time.hour)} disabled={disabled} onIncrement={() => updateHour(1)} onDecrement={() => updateHour(-1)}/>
|
|
59
|
-
<span className="text-info-dark-3 px-2 text-4xl leading-none font-bold">
|
|
57
|
+
return (<div {...restProps} role="group" aria-label={label ?? restProps['aria-label']} className={clsx('border-info bg-info-2 dark:border-info-dark dark:bg-black-1 inline-flex items-center justify-center rounded-xl border px-5 py-3', disabled && 'border-gray-3 dark:border-gray-1', restProps.className)}>
|
|
58
|
+
<TimeValue value={padTimeValue(time.hour)} disabled={disabled} incrementLabel={incrementHourLabel} decrementLabel={decrementHourLabel} onIncrement={() => updateHour(1)} onDecrement={() => updateHour(-1)}/>
|
|
59
|
+
<span className="text-info-dark-3 dark:text-info-dark-2 px-2 text-4xl leading-none font-bold">
|
|
60
60
|
:
|
|
61
61
|
</span>
|
|
62
|
-
<TimeValue value={padTimeValue(time.minute)} disabled={disabled} onIncrement={() => updateMinute(1)} onDecrement={() => updateMinute(-1)}/>
|
|
62
|
+
<TimeValue value={padTimeValue(time.minute)} disabled={disabled} incrementLabel={incrementMinuteLabel} decrementLabel={decrementMinuteLabel} onIncrement={() => updateMinute(1)} onDecrement={() => updateMinute(-1)}/>
|
|
63
63
|
<div className="ml-2 flex flex-col gap-y-1 overflow-hidden">
|
|
64
64
|
<PeriodButton period="AM" currentPeriod={time.period} disabled={disabled} onClick={() => updateTime({ ...time, period: 'AM' })}/>
|
|
65
65
|
<PeriodButton period="PM" currentPeriod={time.period} disabled={disabled} onClick={() => updateTime({ ...time, period: 'PM' })}/>
|
|
66
66
|
</div>
|
|
67
67
|
</div>);
|
|
68
68
|
}
|
|
69
|
-
function TimeValue({ value, disabled, onIncrement, onDecrement, }) {
|
|
69
|
+
function TimeValue({ value, disabled, incrementLabel, decrementLabel, onIncrement, onDecrement, }) {
|
|
70
70
|
return (<div className="inline-flex items-center">
|
|
71
|
-
<span className={clsx('text-info-dark-3 text-5xl leading-none font-bold tabular-nums', disabled && 'text-gray-3')}>
|
|
71
|
+
<span className={clsx('text-info-dark-3 dark:text-info-dark-2 text-5xl leading-none font-bold tabular-nums', disabled && 'text-gray-3 dark:text-gray-2')}>
|
|
72
72
|
{value}
|
|
73
73
|
</span>
|
|
74
74
|
<div className="ml-1 inline-flex flex-col">
|
|
75
|
-
<button type="button" aria-label={
|
|
75
|
+
<button type="button" aria-label={incrementLabel} onClick={onIncrement} disabled={disabled} className={clsx('inline-flex cursor-pointer items-center justify-center leading-none', 'not-disabled:hover:text-info-dark-3', 'disabled:text-gray-3 dark:disabled:text-gray-2 disabled:cursor-not-allowed dark:text-white')}>
|
|
76
76
|
<MdKeyboardArrowUp size={24}/>
|
|
77
77
|
</button>
|
|
78
|
-
<button type="button" aria-label={
|
|
78
|
+
<button type="button" aria-label={decrementLabel} onClick={onDecrement} disabled={disabled} className={clsx('text-dark inline-flex cursor-pointer items-center justify-center text-sm leading-none transition-colors', 'not-disabled:hover:text-info-dark-3', 'disabled:text-gray-3 dark:disabled:text-gray-2 disabled:cursor-not-allowed dark:text-white')}>
|
|
79
79
|
<MdKeyboardArrowDown size={24}/>
|
|
80
80
|
</button>
|
|
81
81
|
</div>
|
|
82
82
|
</div>);
|
|
83
83
|
}
|
|
84
84
|
function PeriodButton({ period, currentPeriod, disabled, onClick, }) {
|
|
85
|
-
return (<button type="button" onClick={onClick} disabled={disabled} className={clsx('flex h-6 w-8 items-center justify-center rounded-md text-xs font-semibold transition-colors', period === currentPeriod
|
|
85
|
+
return (<button type="button" onClick={onClick} disabled={disabled} aria-pressed={period === currentPeriod} className={clsx('flex h-6 w-8 items-center justify-center rounded-md text-xs font-semibold transition-colors', period === currentPeriod
|
|
86
86
|
? 'bg-info text-white'
|
|
87
|
-
: 'text-gray-1 not-disabled:hover:bg-gray-6 bg-white', disabled && 'text-gray-3 cursor-not-allowed')}>
|
|
87
|
+
: 'text-gray-1 not-disabled:hover:bg-gray-6 dark:bg-black-2 dark:text-gray-3 dark:not-disabled:hover:bg-gray-1 bg-white', disabled && 'text-gray-3 dark:text-gray-2 cursor-not-allowed')}>
|
|
88
88
|
{period}
|
|
89
89
|
</button>);
|
|
90
90
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimePicker.jsx","sourceRoot":"","sources":["../../../../src/components/02-molecules/TimePicker/TimePicker.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAGL,SAAS,EACT,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EACL,UAAU,EACV,YAAY,EACZ,SAAS,GAGV,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"TimePicker.jsx","sourceRoot":"","sources":["../../../../src/components/02-molecules/TimePicker/TimePicker.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAGL,SAAS,EACT,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EACL,UAAU,EACV,YAAY,EACZ,SAAS,GAGV,MAAM,qBAAqB,CAAC;AAc7B,MAAM,UAAU,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,EAAE;CACR,CAAC;AAEF,MAAM,YAAY,GAAgC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,UAAU,CAAC,EACzB,KAAK,EACL,YAAY,EACZ,QAAQ,GAAG,KAAK,EAChB,YAAY,EACZ,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,GAAG,SAAS,EACI;IAChB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAkB,GAAG,EAAE,CACrD,SAAS,CAAC,KAAK,IAAI,YAAY,CAAC,CACjC,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,OAAO,CAAC,SAAS,CA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qC,EACrC,4FAA4F,CAC7F,CAAC,CAEF;UAAA,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAChC;QAAA,EAAE,MAAM,CACV;MAAA,EAAE,GAAG,CACP;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC;AASD,SAAS,YAAY,CAAC,EACpB,MAAM,EACN,aAAa,EACb,QAAQ,EACR,OAAO,GACW;IAClB,OAAO,CACL,CAAC,MAAM,CACL,IAAI,CAAC,QAAQ,CACb,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,YAAY,CAAC,CAAC,MAAM,KAAK,aAAa,CAAC,CACvC,SAAS,CAAC,CAAC,IAAI,CACb,6FAA6F,EAC7F,MAAM,KAAK,aAAa;YACtB,CAAC,CAAC,oBAAoB;YACtB,CAAC,CAAC,sHAAsH,EAC1H,QAAQ,IAAI,iDAAiD,CAC9D,CAAC,CAEF;MAAA,CAAC,MAAM,CACT;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -21,7 +21,7 @@ import { Filter, SlideOver } from '../../02-molecules';
|
|
|
21
21
|
*/
|
|
22
22
|
export function AsideFilters({ title, filter, closeCallback, }) {
|
|
23
23
|
return (<SlideOver side="right" closeCallback={closeCallback}>
|
|
24
|
-
<div className="border-gray-5 border-b px-5 py-4">
|
|
24
|
+
<div className="border-gray-5 dark:border-gray-1 border-b px-5 py-4 dark:text-white">
|
|
25
25
|
<Heading level="h6">{title}</Heading>
|
|
26
26
|
</div>
|
|
27
27
|
<Filter {...filter}/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsideFilters.jsx","sourceRoot":"","sources":["../../../../src/components/03-organisms/AsideFilters/AsideFilters.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAQvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,aAAa,GACK;IAClB,OAAO,CACL,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,CACnD;MAAA,CAAC,GAAG,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"AsideFilters.jsx","sourceRoot":"","sources":["../../../../src/components/03-organisms/AsideFilters/AsideFilters.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAQvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,aAAa,GACK;IAClB,OAAO,CACL,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,CACnD;MAAA,CAAC,GAAG,CAAC,SAAS,CAAC,qEAAqE,CAClF;QAAA,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,CACtC;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,EACrB;IAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentProps, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Pagination, Table } from '../../02-molecules';
|
|
3
3
|
type DataTableProps = {
|
|
4
|
-
table: Pick<ComponentProps<typeof Table>, 'id' | 'headers' | 'data' | 'action' | 'actions' | 'loading' | 'selectable' | 'multiple' | 'currentSelection' | 'setCurrentSelection'>;
|
|
5
|
-
pagination: Pick<ComponentProps<typeof Pagination>, 'currentPage' | 'pageChange' | 'itemsPerPage' | 'totalItems'>;
|
|
4
|
+
table: Pick<ComponentProps<typeof Table>, 'id' | 'headers' | 'data' | 'action' | 'actions' | 'loading' | 'selectable' | 'multiple' | 'currentSelection' | 'setCurrentSelection' | 'tableName' | 'selectAllLabel' | 'getRowSelectionLabel' | 'getRowActionLabel' | 'footer' | 'tableProps'>;
|
|
5
|
+
pagination: Pick<ComponentProps<typeof Pagination>, 'currentPage' | 'pageChange' | 'itemsPerPage' | 'totalItems' | 'navigationLabel' | 'previousPageLabel' | 'nextPageLabel' | 'itemsPerPageLabel'>;
|
|
6
6
|
} & HTMLAttributes<HTMLDivElement>;
|
|
7
7
|
/**
|
|
8
8
|
* DataTable component for rendering a table with pagination.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/components/03-organisms/DataTable/DataTable.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAE5E,OAAO,EACL,UAAU,EACV,KAAK,EAGN,MAAM,oBAAoB,CAAC;AAE5B,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,IAAI,CACT,cAAc,CAAC,OAAO,KAAK,CAAC,EAC1B,IAAI,GACJ,SAAS,GACT,MAAM,GACN,QAAQ,GACR,SAAS,GACT,SAAS,GACT,YAAY,GACZ,UAAU,GACV,kBAAkB,GAClB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/components/03-organisms/DataTable/DataTable.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAE5E,OAAO,EACL,UAAU,EACV,KAAK,EAGN,MAAM,oBAAoB,CAAC;AAE5B,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,IAAI,CACT,cAAc,CAAC,OAAO,KAAK,CAAC,EAC1B,IAAI,GACJ,SAAS,GACT,MAAM,GACN,QAAQ,GACR,SAAS,GACT,SAAS,GACT,YAAY,GACZ,UAAU,GACV,kBAAkB,GAClB,qBAAqB,GACrB,WAAW,GACX,gBAAgB,GAChB,sBAAsB,GACtB,mBAAmB,GACnB,QAAQ,GACR,YAAY,CACf,CAAC;IACF,UAAU,EAAE,IAAI,CACd,cAAc,CAAC,OAAO,UAAU,CAAC,EAC/B,aAAa,GACb,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,iBAAiB,GACjB,mBAAmB,GACnB,eAAe,GACf,mBAAmB,CACtB,CAAC;CACH,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,UAAU,EACV,GAAG,SAAS,EACb,EAAE,cAAc,GAAG,SAAS,CAoE5B"}
|
|
@@ -49,7 +49,7 @@ export function DataTable({ table, pagination, ...restProps }) {
|
|
|
49
49
|
setNumberOfRows(itemsPerPage || 10);
|
|
50
50
|
pagination.pageChange(page, itemsPerPage);
|
|
51
51
|
};
|
|
52
|
-
return (<div {...restProps} className={clsx('border-gray-5 rounded-lg border', restProps.className)}>
|
|
52
|
+
return (<div {...restProps} className={clsx('border-gray-5 dark:border-gray-1 rounded-lg border dark:text-white', restProps.className)}>
|
|
53
53
|
<Show>
|
|
54
54
|
<Show.When isTrue={!table.selectable}>
|
|
55
55
|
<Table {...table} numberOfRows={numberOfRows} selectable={false} multiple={undefined} currentSelection={undefined} setCurrentSelection={undefined}/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.jsx","sourceRoot":"","sources":["../../../../src/components/03-organisms/DataTable/DataTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAA6C,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EACL,UAAU,EACV,KAAK,GAGN,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"DataTable.jsx","sourceRoot":"","sources":["../../../../src/components/03-organisms/DataTable/DataTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAA6C,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EACL,UAAU,EACV,KAAK,GAGN,MAAM,oBAAoB,CAAC;AAmC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,UAAU,SAAS,CAAC,EACxB,KAAK,EACL,UAAU,EACV,GAAG,SAAS,EACG;IACf,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAC9C,UAAU,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CACrC,CAAC;IAEF,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,YAAqB,EAAE,EAAE;QAC/D,eAAe,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;QACpC,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAC5C,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,GAAG,CACF,IAAI,SAAS,CAAC,CACd,SAAS,CAAC,CAAC,IAAI,CACb,oEAAoE,EACpE,SAAS,CAAC,SAAS,CACpB,CAAC,CAEF;MAAA,CAAC,IAAI,CACH;QAAA,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CACnC;UAAA,CAAC,KAAK,CACJ,IAAI,KAAK,CAAC,CACV,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,UAAU,CAAC,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,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CACjC,YAAY,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,YAAY,CAAC,EAEnD;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { ThemeSwitch } from '../../01-atoms';
|
|
2
3
|
import { Menu } from '../../02-molecules';
|
|
3
4
|
import { AvatarProps } from '../../02-molecules/Avatar/Avatar';
|
|
4
5
|
import { BellNotificationProps } from '../../02-molecules/BellNotifications/BellNotification';
|
|
@@ -9,6 +10,7 @@ export type HeaderProps = {
|
|
|
9
10
|
avatar?: Omit<AvatarProps, 'className' | 'position'>;
|
|
10
11
|
bellNotifications?: Omit<BellNotificationProps, 'className' | 'position'>;
|
|
11
12
|
onFavoriteToggle?: ComponentProps<typeof Menu>['onFavoriteToggle'];
|
|
13
|
+
themeSwitch?: ComponentProps<typeof ThemeSwitch>;
|
|
12
14
|
};
|
|
13
15
|
/**
|
|
14
16
|
* Header component for rendering the header section of the application.
|
|
@@ -32,5 +34,5 @@ export type HeaderProps = {
|
|
|
32
34
|
*
|
|
33
35
|
* @returns {ReactNode} The rendered Header component.
|
|
34
36
|
*/
|
|
35
|
-
export declare function Header({ homeHref, primaryMenu, secondMenu, avatar, bellNotifications, onFavoriteToggle, }: HeaderProps): ReactNode;
|
|
37
|
+
export declare function Header({ homeHref, primaryMenu, secondMenu, avatar, bellNotifications, onFavoriteToggle, themeSwitch, }: HeaderProps): ReactNode;
|
|
36
38
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/03-organisms/Header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/03-organisms/Header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAQ,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAqB,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EAEL,qBAAqB,EACtB,MAAM,uDAAuD,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;IAClD,UAAU,CAAC,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;IACjD,MAAM,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;IACrD,iBAAiB,CAAC,EAAE,IAAI,CAAC,qBAAqB,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;IAC1E,gBAAgB,CAAC,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC,kBAAkB,CAAC,CAAC;IACnE,WAAW,CAAC,EAAE,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;CAClD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAc,EACd,WAAW,EACX,UAAU,EACV,MAAM,EACN,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,GACZ,EAAE,WAAW,GAAG,SAAS,CA4BzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Link from 'next/link';
|
|
2
|
-
import { Logo } from '../../01-atoms';
|
|
2
|
+
import { Logo, ThemeSwitch } from '../../01-atoms';
|
|
3
3
|
import { Avatar, Container, Menu } from '../../02-molecules';
|
|
4
4
|
import { SecondMenu } from './SecondMenu';
|
|
5
5
|
import { BellNotification, } from '../../02-molecules/BellNotifications/BellNotification';
|
|
@@ -25,8 +25,8 @@ import { BellNotification, } from '../../02-molecules/BellNotifications/BellNoti
|
|
|
25
25
|
*
|
|
26
26
|
* @returns {ReactNode} The rendered Header component.
|
|
27
27
|
*/
|
|
28
|
-
export function Header({ homeHref = '/', primaryMenu, secondMenu, avatar, bellNotifications, onFavoriteToggle, }) {
|
|
29
|
-
return (<Container as="header" className="relative flex flex-row justify-between py-2">
|
|
28
|
+
export function Header({ homeHref = '/', primaryMenu, secondMenu, avatar, bellNotifications, onFavoriteToggle, themeSwitch, }) {
|
|
29
|
+
return (<Container as="header" className="relative flex flex-row justify-between py-2 dark:text-white">
|
|
30
30
|
<div className="flex items-center gap-4">
|
|
31
31
|
<div>
|
|
32
32
|
<Link href={homeHref}>
|
|
@@ -39,6 +39,7 @@ export function Header({ homeHref = '/', primaryMenu, secondMenu, avatar, bellNo
|
|
|
39
39
|
</div>)}
|
|
40
40
|
</div>
|
|
41
41
|
<div className="flex items-center gap-3">
|
|
42
|
+
{!!themeSwitch && <ThemeSwitch {...themeSwitch}/>}
|
|
42
43
|
{!!bellNotifications && <BellNotification {...bellNotifications}/>}
|
|
43
44
|
{!!avatar && <Avatar {...avatar} position="right"/>}
|
|
44
45
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.jsx","sourceRoot":"","sources":["../../../../src/components/03-organisms/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.jsx","sourceRoot":"","sources":["../../../../src/components/03-organisms/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,gBAAg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AAG,CACnE;QAAA,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAG,CACtD;MAAA,EAAE,GAAG,CACP;IAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { type HTMLAttributes, ReactNode, type RefObject } from 'react';
|
|
2
2
|
import { TButton } from '../../02-molecules/Modal/Modal';
|
|
3
3
|
import { TabListProps } from '../../02-molecules/Tab/TabList';
|
|
4
|
-
|
|
4
|
+
type TButtonModal = TButton & {
|
|
5
5
|
iconL?: ReactNode;
|
|
6
6
|
iconR?: ReactNode;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
export type ModalMultipleProps = {
|
|
9
9
|
title: string;
|
|
10
10
|
tabList: Omit<TabListProps, 'modifier' | 'list'> & {
|
|
@@ -17,7 +17,11 @@ export type ModalMultipleProps = {
|
|
|
17
17
|
handleCloseIcon: TButton['callback'];
|
|
18
18
|
onChangeTab?: (index: number) => void;
|
|
19
19
|
subHeader?: string;
|
|
20
|
-
|
|
20
|
+
closeButtonAriaLabel?: string;
|
|
21
|
+
initialFocusRef?: RefObject<HTMLElement | null>;
|
|
22
|
+
'aria-labelledby'?: string;
|
|
23
|
+
'aria-describedby'?: string;
|
|
24
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, 'title'>;
|
|
21
25
|
/**
|
|
22
26
|
* ModalMultiple component for rendering a modal with multiple tabs.
|
|
23
27
|
*
|
|
@@ -70,6 +74,6 @@ export type ModalMultipleProps = {
|
|
|
70
74
|
*
|
|
71
75
|
* @returns {ReactNode} The rendered ModalMultiple component.
|
|
72
76
|
*/
|
|
73
|
-
export declare function ModalMultiple({ size, title, tabList, handleCloseIcon, onChangeTab, subHeader, ...
|
|
77
|
+
export declare function ModalMultiple({ size, title, tabList, handleCloseIcon, onChangeTab, subHeader, closeButtonAriaLabel, initialFocusRef, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, ...restProps }: ModalMultipleProps): ReactNode;
|
|
74
78
|
export {};
|
|
75
79
|
//# sourceMappingURL=ModalMultiple.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalMultiple.d.ts","sourceRoot":"","sources":["../../../../src/components/03-organisms/ModalMultiple/ModalMultiple.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"ModalMultiple.d.ts","sourceRoot":"","sources":["../../../../src/components/03-organisms/ModalMultiple/ModalMultiple.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,cAAc,EAEnB,SAAS,EACT,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzD,OAAO,EAAW,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEvE,KAAK,YAAY,GAAG,OAAO,GAAG;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,MAAM,CAAC,GAAG;QACjD,IAAI,EAAE,KAAK,CACT,YAAY,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG;YAC7B,aAAa,CAAC,EAAE,YAAY,CAAC;YAC7B,YAAY,CAAC,EAAE,YAAY,CAAC;SAC7B,CACF,CAAC;KACH,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAChD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,CAAC;AAKlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,OAAO,EACP,eAAe,EACf,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EAAE,cAAc,EACjC,kBAAkB,EAAE,eAAe,EACnC,GAAG,SAAS,EACb,EAAE,kBAAkB,GAAG,SAAS,CAmJhC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { useEffect, useState } from 'react';
|
|
3
|
+
import { useCallback, useEffect, useId, useRef, useState, } from 'react';
|
|
4
4
|
import { IoCloseSharp } from 'react-icons/io5';
|
|
5
5
|
import { Button, Heading, Paragraph } from '../../01-atoms';
|
|
6
|
+
import { useDialogFocus } from '../../02-molecules/Modal/useDialogFocus';
|
|
6
7
|
import { TabList } from '../../02-molecules/Tab/TabList';
|
|
7
8
|
const enteringClasses = 'ease-out duration-300 opacity-0';
|
|
8
9
|
const leavingClasses = 'ease-in duration-200 opacity-100';
|
|
@@ -58,16 +59,20 @@ const leavingClasses = 'ease-in duration-200 opacity-100';
|
|
|
58
59
|
*
|
|
59
60
|
* @returns {ReactNode} The rendered ModalMultiple component.
|
|
60
61
|
*/
|
|
61
|
-
export function ModalMultiple({ size, title, tabList, handleCloseIcon, onChangeTab, subHeader, ...
|
|
62
|
+
export function ModalMultiple({ size, title, tabList, handleCloseIcon, onChangeTab, subHeader, closeButtonAriaLabel, initialFocusRef, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, ...restProps }) {
|
|
62
63
|
const [isOpen, setIsOpen] = useState(false);
|
|
63
64
|
const [activeTab, setActiveTab] = useState(0);
|
|
64
65
|
const { confirmButton, cancelButton } = tabList.list[activeTab];
|
|
65
|
-
const
|
|
66
|
+
const dialogRef = useRef(null);
|
|
67
|
+
const generatedId = useId();
|
|
68
|
+
const titleId = `${generatedId}-title`;
|
|
69
|
+
const descriptionId = `${generatedId}-description`;
|
|
70
|
+
const handlerClose = useCallback((callback) => {
|
|
66
71
|
callback((closeAction) => {
|
|
67
72
|
setIsOpen(false);
|
|
68
73
|
setTimeout(closeAction, 200);
|
|
69
74
|
});
|
|
70
|
-
};
|
|
75
|
+
}, []);
|
|
71
76
|
const handlerOverlayClick = (event) => {
|
|
72
77
|
if (event.target === event.currentTarget) {
|
|
73
78
|
handlerClose(handleCloseIcon);
|
|
@@ -76,25 +81,33 @@ export function ModalMultiple({ size, title, tabList, handleCloseIcon, onChangeT
|
|
|
76
81
|
useEffect(() => {
|
|
77
82
|
setIsOpen(true);
|
|
78
83
|
}, []);
|
|
84
|
+
useDialogFocus({
|
|
85
|
+
containerRef: dialogRef,
|
|
86
|
+
initialFocusRef,
|
|
87
|
+
isOpen,
|
|
88
|
+
onEscape: () => handlerClose(handleCloseIcon),
|
|
89
|
+
});
|
|
79
90
|
return (<>
|
|
80
|
-
{<div className=
|
|
81
|
-
<div className={clsx('bg-gray-1/75 pointer-events-none fixed inset-0 transition-opacity', !isOpen ? enteringClasses : leavingClasses)}/>
|
|
91
|
+
{<div {...restProps} className={clsx('relative z-10', restProps.className)}>
|
|
92
|
+
<div className={clsx('bg-gray-1/75 pointer-events-none fixed inset-0 transition-opacity dark:bg-black/75', !isOpen ? enteringClasses : leavingClasses)}/>
|
|
82
93
|
|
|
83
94
|
<div className="fixed inset-0 z-10 w-screen overflow-y-auto">
|
|
84
95
|
<div onClick={handlerOverlayClick} className="flex min-h-full items-end justify-center px-8 py-4 sm:items-center">
|
|
85
|
-
<div className={clsx('relative transform rounded-lg bg-white text-center shadow-xl transition-all sm:my-8 sm:w-full sm:text-left', {
|
|
96
|
+
<div ref={dialogRef} role="dialog" aria-modal="true" aria-labelledby={ariaLabelledBy ?? titleId} aria-describedby={ariaDescribedBy ?? (subHeader ? descriptionId : undefined)} tabIndex={-1} className={clsx('relative transform rounded-lg bg-white text-center text-black shadow-xl transition-all outline-none sm:my-8 sm:w-full sm:text-left dark:bg-black dark:text-white', {
|
|
86
97
|
'sm:max-w-lg': size === 'base',
|
|
87
98
|
'sm:max-w-3xl': size === 'lg',
|
|
88
99
|
'sm:max-w-5xl': size === 'xl',
|
|
89
100
|
}, !isOpen
|
|
90
101
|
? `${enteringClasses} pointer-events-none translate-y-4 sm:translate-y-0 sm:scale-95`
|
|
91
102
|
: `${leavingClasses} translate-y-0 sm:scale-100`)}>
|
|
92
|
-
<div className="bg-gray-6 rounded-t-lg px-4 py-4">
|
|
93
|
-
<Heading level="h7" className="flex justify-between">
|
|
94
|
-
{title}
|
|
95
|
-
<
|
|
103
|
+
<div className="bg-gray-6 dark:bg-black-1 rounded-t-lg px-4 py-4">
|
|
104
|
+
<Heading id={titleId} level="h7" className="flex items-center justify-between">
|
|
105
|
+
<span>{title}</span>
|
|
106
|
+
<button type="button" aria-label={closeButtonAriaLabel} className="hover:text-gray-1 focus-visible:ring-lavender dark:hover:text-gray-3 rounded-sm p-1 transition-colors focus-visible:ring-2 focus-visible:outline-none" onClick={() => handlerClose(handleCloseIcon)}>
|
|
107
|
+
<IoCloseSharp aria-hidden size={20}/>
|
|
108
|
+
</button>
|
|
96
109
|
</Heading>
|
|
97
|
-
{!!subHeader && (<Paragraph className="mt-1" size="body-2">
|
|
110
|
+
{!!subHeader && (<Paragraph id={descriptionId} className="text-gray-1 dark:text-gray-3 mt-1" size="body-2">
|
|
98
111
|
{subHeader}
|
|
99
112
|
</Paragraph>)}
|
|
100
113
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalMultiple.jsx","sourceRoot":"","sources":["../../../../src/components/03-organisms/ModalMultiple/ModalMultiple.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"ModalMultiple.jsx","sourceRoot":"","sources":["../../../../src/components/03-organisms/ModalMultiple/ModalMultiple.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAKL,WAAW,EACX,SAAS,EACT,KAAK,EACL,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAgB,MAAM,gCAAgC,CAAC;AA2BvE,MAAM,eAAe,GAAG,iCAAiC,CAAC;AAC1D,MAAM,cAAc,GAAG,kCAAkC,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAM,UAAU,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,OAAO,EACP,eAAe,EACf,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EAAE,cAAc,EACjC,kBAAkB,EAAE,eAAe,EACnC,GAAG,SAAS,EACO;IACnB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IACrD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC,CAAC;IACtD,MA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AAM,CACL,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CACpD,QAAQ,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,CACjC,KAAK,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAC3B,KAAK,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAE3B;sBAAA,CAAC,aAAa,CAAC,IAAI,CACrB;oBAAA,EAAE,MAAM,CAAC,CACV,CACH;gBAAA,EAAE,GAAG,CACP;cAAA,EAAE,GAAG,CACP;YAAA,EAAE,GAAG,CACP;UAAA,EAAE,GAAG,CACP;QAAA,EAAE,GAAG,CACP,CACF;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -5,6 +5,8 @@ type DashboardTemplateProps = {
|
|
|
5
5
|
readonly pageTitles: Record<string, string>;
|
|
6
6
|
readonly titleChildren?: ReactNode;
|
|
7
7
|
readonly children: ReactNode;
|
|
8
|
+
readonly breadcrumbLoadingLabel?: string;
|
|
9
|
+
readonly headingLoadingLabel?: string;
|
|
8
10
|
};
|
|
9
11
|
/**
|
|
10
12
|
* DashboardTemplate component for rendering the main layout of the dashboard.
|
|
@@ -29,6 +31,6 @@ type DashboardTemplateProps = {
|
|
|
29
31
|
*
|
|
30
32
|
* @returns {ReactNode} The rendered DashboardTemplate component.
|
|
31
33
|
*/
|
|
32
|
-
export declare function DashboardTemplate({ headerProps, pageTitles, titleChildren, children, }: DashboardTemplateProps): ReactNode;
|
|
34
|
+
export declare function DashboardTemplate({ headerProps, pageTitles, titleChildren, children, breadcrumbLoadingLabel, headingLoadingLabel, }: DashboardTemplateProps): ReactNode;
|
|
33
35
|
export {};
|
|
34
36
|
//# sourceMappingURL=DashboardTemplate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/04-templates/DashboardTemplate/DashboardTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAU,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAKvE,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"DashboardTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/04-templates/DashboardTemplate/DashboardTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAU,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAKvE,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IACzC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CACvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,UAAU,EACV,aAAa,EACb,QAAQ,EACR,sBAAsB,EACtB,mBAAmB,GACpB,EAAE,sBAAsB,GAAG,SAAS,CAiCpC"}
|
|
@@ -28,22 +28,22 @@ import { HeadingWithTitleSkeleton } from './HeadingWithTitleSkeleton';
|
|
|
28
28
|
*
|
|
29
29
|
* @returns {ReactNode} The rendered DashboardTemplate component.
|
|
30
30
|
*/
|
|
31
|
-
export function DashboardTemplate({ headerProps, pageTitles, titleChildren, children, }) {
|
|
31
|
+
export function DashboardTemplate({ headerProps, pageTitles, titleChildren, children, breadcrumbLoadingLabel, headingLoadingLabel, }) {
|
|
32
32
|
return (<>
|
|
33
33
|
<Header {...headerProps}/>
|
|
34
|
-
<hr className="border-gray-5"/>
|
|
34
|
+
<hr className="border-gray-5 dark:border-gray-2"/>
|
|
35
35
|
<Container className="grid gap-2 py-4">
|
|
36
|
-
<Suspense fallback={<BreadcrumbSkeleton />}>
|
|
36
|
+
<Suspense fallback={<BreadcrumbSkeleton loadingLabel={breadcrumbLoadingLabel}/>}>
|
|
37
37
|
<BreadcrumbWithPathname homeHref={headerProps.homeHref} pageTitles={pageTitles}/>
|
|
38
38
|
</Suspense>
|
|
39
39
|
<div className="flex justify-between">
|
|
40
|
-
<Suspense fallback={<HeadingWithTitleSkeleton />}>
|
|
40
|
+
<Suspense fallback={<HeadingWithTitleSkeleton loadingLabel={headingLoadingLabel}/>}>
|
|
41
41
|
<HeadingWithTitle pageTitles={pageTitles}/>
|
|
42
42
|
</Suspense>
|
|
43
43
|
{titleChildren}
|
|
44
44
|
</div>
|
|
45
45
|
</Container>
|
|
46
|
-
<hr className="border-gray-5"/>
|
|
46
|
+
<hr className="border-gray-5 dark:border-gray-2"/>
|
|
47
47
|
<Container className="py-6" as="main">
|
|
48
48
|
{children}
|
|
49
49
|
</Container>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardTemplate.jsx","sourceRoot":"","sources":["../../../../src/components/04-templates/DashboardTemplate/DashboardTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,MAAM,EAAe,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"DashboardTemplate.jsx","sourceRoot":"","sources":["../../../../src/components/04-templates/DashboardTemplate/DashboardTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,MAAM,EAAe,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAWtE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAChC,WAAW,EACX,UAAU,EACV,aAAa,EACb,QAAQ,EACR,sBAAsB,EACtB,mBAAmB,GACI;IACvB,OAAO,CACL,EACE;MAAA,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,EACxB;MAAA,CAAC,EAAE,CAAC,SAAS,CAAC,kCAAkC,EAChD;MAAA,CAAC,SAAS,CAAC,SAAS,CAAC,iBAAiB,CACpC;QAAA,CAAC,QAAQ,CACP,QAAQ,CAAC,CACP,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC,sBAAsB,CAAC,EAC3D,CAAC,CAED;UAAA,CAAC,sBAAsB,CACrB,QAAQ,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAC/B,UAAU,CAAC,CAAC,UAAU,CAAC,EAE3B;QAAA,EAAE,QAAQ,CACV;QAAA,CAAC,GAAG,CAAC,SAAS,CAAC,sBAAsB,CACnC;UAAA,CAAC,QAAQ,CACP,QAAQ,CAAC,CACP,CAAC,wBAAwB,CAAC,YAAY,CAAC,CAAC,mBAAmB,CAAC,EAC9D,CAAC,CAED;YAAA,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,EAC3C;UAAA,EAAE,QAAQ,CACV;UAAA,CAAC,aAAa,CAChB;QAAA,EAAE,GAAG,CACP;MAAA,EAAE,SAAS,CACX;MAAA,CAAC,EAAE,CAAC,SAAS,CAAC,kCAAkC,EAChD;MAAA,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CACnC;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,SAAS,CACb;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
type HeadingWithTitleSkeletonProps = {
|
|
3
|
+
loadingLabel?: string;
|
|
4
|
+
};
|
|
2
5
|
/**
|
|
3
6
|
* HeadingWithTitleSkeleton component for rendering a skeleton placeholder for the HeadingWithTitle component.
|
|
4
7
|
*
|
|
@@ -9,5 +12,6 @@ import { ReactNode } from 'react';
|
|
|
9
12
|
*
|
|
10
13
|
* @returns {ReactNode} The rendered skeleton placeholder for the HeadingWithTitle component.
|
|
11
14
|
*/
|
|
12
|
-
export declare function HeadingWithTitleSkeleton(): ReactNode;
|
|
15
|
+
export declare function HeadingWithTitleSkeleton({ loadingLabel, }: HeadingWithTitleSkeletonProps): ReactNode;
|
|
16
|
+
export {};
|
|
13
17
|
//# sourceMappingURL=HeadingWithTitleSkeleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingWithTitleSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/04-templates/DashboardTemplate/HeadingWithTitleSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"HeadingWithTitleSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/04-templates/DashboardTemplate/HeadingWithTitleSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,6BAA6B,GAAG;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,YAAY,GACb,EAAE,6BAA6B,GAAG,SAAS,CAW3C"}
|
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @returns {ReactNode} The rendered skeleton placeholder for the HeadingWithTitle component.
|
|
10
10
|
*/
|
|
11
|
-
export function HeadingWithTitleSkeleton() {
|
|
12
|
-
return (<div role="status" className="animate-pulse">
|
|
13
|
-
<div className="bg-gray-2 mb-2.5 h-8 w-40 rounded-full"></div>
|
|
14
|
-
<span className="sr-only">Loading...</span>
|
|
11
|
+
export function HeadingWithTitleSkeleton({ loadingLabel, }) {
|
|
12
|
+
return (<div role="status" aria-label={loadingLabel} aria-live="polite" className="animate-pulse">
|
|
13
|
+
<div className="bg-gray-2 dark:bg-gray-1 mb-2.5 h-8 w-40 rounded-full"></div>
|
|
15
14
|
</div>);
|
|
16
15
|
}
|
|
17
16
|
//# sourceMappingURL=HeadingWithTitleSkeleton.jsx.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingWithTitleSkeleton.jsx","sourceRoot":"","sources":["../../../../src/components/04-templates/DashboardTemplate/HeadingWithTitleSkeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeadingWithTitleSkeleton.jsx","sourceRoot":"","sources":["../../../../src/components/04-templates/DashboardTemplate/HeadingWithTitleSkeleton.tsx"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,MAAM,UAAU,wBAAwB,CAAC,EACvC,YAAY,GACkB;IAC9B,OAAO,CACL,CAAC,GAAG,CACF,IAAI,CAAC,QAAQ,CACb,UAAU,CAAC,CAAC,YAAY,CAAC,CACzB,SAAS,CAAC,QAAQ,CAClB,SAAS,CAAC,eAAe,CAEzB;MAAA,CAAC,GAAG,CAAC,SAAS,CAAC,uDAAuD,CAAC,EAAE,GAAG,CAC9E;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { type SetupMfaAccessibilityLabels } from './SetupMfa';
|
|
2
3
|
type LoginFormProps = {
|
|
3
4
|
login: (formData: FormData) => Promise<string | undefined>;
|
|
4
5
|
callback?: () => void;
|
|
@@ -6,6 +7,11 @@ type LoginFormProps = {
|
|
|
6
7
|
lengthCode?: number;
|
|
7
8
|
qrImage?: string;
|
|
8
9
|
setupMfa?: (firstCode: string, secondCode: string) => Promise<undefined>;
|
|
10
|
+
showPasswordAriaLabel?: string;
|
|
11
|
+
hidePasswordAriaLabel?: string;
|
|
12
|
+
getOtpDigitAriaLabel?: (digit: number) => string;
|
|
13
|
+
loadingLabel?: string;
|
|
14
|
+
setupMfaAccessibilityLabels?: SetupMfaAccessibilityLabels;
|
|
9
15
|
};
|
|
10
16
|
/**
|
|
11
17
|
* LoginForm component for rendering a login form with email and password inputs.
|
|
@@ -21,6 +27,6 @@ type LoginFormProps = {
|
|
|
21
27
|
*
|
|
22
28
|
* @returns {ReactNode} The rendered LoginForm component.
|
|
23
29
|
*/
|
|
24
|
-
export declare function LoginForm({ login, callback, needCode, lengthCode, setupMfa, }: LoginFormProps): ReactNode;
|
|
30
|
+
export declare function LoginForm({ login, callback, needCode, lengthCode, setupMfa, showPasswordAriaLabel, hidePasswordAriaLabel, getOtpDigitAriaLabel, loadingLabel, setupMfaAccessibilityLabels, }: LoginFormProps): ReactNode;
|
|
25
31
|
export {};
|
|
26
32
|
//# sourceMappingURL=LoginForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../src/components/04-templates/LoginTemplate/LoginForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoB,SAAS,EAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../src/components/04-templates/LoginTemplate/LoginForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoB,SAAS,EAAuB,MAAM,OAAO,CAAC;AAWzE,OAAO,EAAY,KAAK,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAExE,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;IACzE,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B,CAAC,EAAE,2BAA2B,CAAC;CAC3D,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,QAAgB,EAChB,UAAc,EACd,QAAQ,EACR,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,YAAY,EACZ,2BAA2B,GAC5B,EAAE,cAAc,GAAG,SAAS,CAwI5B"}
|