@digigov/react-experimental 2.0.0-d57821ba → 2.0.0-daaf7bdf
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/index.js +1 -1
- package/libs/ui/src/app/Loader/Loader.stories.d.ts +1 -0
- package/libs/ui/src/app/Loader/__stories__/FullPageLoader.d.ts +2 -0
- package/libs/ui/src/app/Modal/index.d.ts +0 -1
- package/libs/ui/src/app/OutdatedBrowserBanner/index.d.ts +0 -1
- package/libs/ui/src/content/Accordion/auto.d.ts +2 -2
- package/libs/ui/src/content/Accordion/index.d.ts +0 -1
- package/libs/ui/src/content/Markdown/Markdown.stories.d.ts +9 -0
- package/libs/ui/src/content/Markdown/index.d.ts +1 -1
- package/libs/ui/src/content/SafeHTML/SafeHTML.stories.d.ts +9 -0
- package/libs/ui/src/{patterns/FilteredResults → content/SafeHTML}/__stories__/Default.d.ts +1 -0
- package/libs/ui/src/content/StepNav/auto.d.ts +2 -2
- package/libs/ui/src/content/StepNav/index.d.ts +0 -1
- package/libs/ui/src/content/SummaryList/SummaryList.stories.d.ts +15 -9
- package/libs/ui/src/content/SummaryList/__stories__/SummaryListExample.d.ts +14 -0
- package/libs/ui/src/feedback/WarningText/index.d.ts +1 -0
- package/libs/ui/src/form/Checkbox/index.d.ts +1 -0
- package/libs/ui/src/index.d.ts +0 -1
- package/libs/ui/src/navigation/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -0
- package/libs/ui/src/navigation/Breadcrumbs/__stories__/Auto.d.ts +3 -0
- package/libs/ui/src/navigation/Breadcrumbs/__stories__/WithHook.d.ts +3 -0
- package/libs/ui/src/navigation/Breadcrumbs/auto.d.ts +16 -0
- package/libs/ui/src/navigation/Breadcrumbs/hooks.d.ts +26 -0
- package/libs/ui/src/navigation/Breadcrumbs/index.d.ts +1 -0
- package/libs/ui/src/navigation/Breadcrumbs/slug.d.ts +1 -0
- package/libs/ui/src/navigation/Breadcrumbs/utils.d.ts +1 -0
- package/libs/ui/src/navigation/Drawer/index.d.ts +0 -1
- package/libs/ui/src/navigation/Pagination/auto.d.ts +2 -2
- package/libs/ui/src/navigation/Pagination/index.d.ts +0 -1
- package/libs/ui/src/navigation/Tabs/index.d.ts +0 -1
- package/libs/ui/src/registry.d.ts +8 -8
- package/libs/ui/src/typography/CodeBlock/CodeBlock.stories.d.ts +3 -0
- package/libs/ui/src/typography/CodeBlock/__stories__/Highlighted.d.ts +3 -0
- package/libs/ui/src/typography/CodeBlock/__stories__/WithCopyToClipboard.d.ts +3 -0
- package/libs/ui/src/typography/CodeBlock/__stories__/WithPhaseBanner.d.ts +3 -0
- package/libs/ui/src/typography/CodeBlock/index.d.ts +4 -5
- package/libs/ui/src/utils/Base/index.d.ts +1 -0
- package/libs/ui/src/utils/hooks/useDebounce.d.ts +1 -1
- package/libs/ui/src/utils/hooks/useKeypress.d.ts +1 -1
- package/libs-ui/react-core/src/Base/index.d.ts +2 -95
- package/libs-ui/react-core/src/Base/index.web.d.ts +97 -0
- package/libs-ui/react-core/src/Base/utils.d.ts +41 -0
- package/libs-ui/react-core/src/CheckboxItemInput/index.d.ts +2 -0
- package/libs-ui/react-core/src/CheckboxItemInput/index.web.d.ts +10 -0
- package/libs-ui/react-core/src/CodeBlockContainer/index.d.ts +1 -9
- package/libs-ui/react-core/src/CodeBlockContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/CodeBlockHeader/index.d.ts +1 -1
- package/libs-ui/react-core/src/CopyToClipboardContainer/index.d.ts +2 -31
- package/libs-ui/react-core/src/CopyToClipboardContainer/index.web.d.ts +31 -0
- package/libs-ui/react-core/src/CopyToClipboardMessage/index.d.ts +2 -18
- package/libs-ui/react-core/src/CopyToClipboardMessage/index.web.d.ts +18 -0
- package/libs-ui/react-core/src/DateInputItem/index.d.ts +2 -26
- package/libs-ui/react-core/src/DateInputItem/index.web.d.ts +26 -0
- package/libs-ui/react-core/src/Details/index.d.ts +2 -10
- package/libs-ui/react-core/src/Details/index.web.d.ts +10 -0
- package/libs-ui/react-core/src/NavListItemActionContainer/index.d.ts +2 -10
- package/libs-ui/react-core/src/NavListItemActionContainer/index.web.d.ts +10 -0
- package/libs-ui/react-core/src/NotificationBannerLink/index.d.ts +2 -11
- package/libs-ui/react-core/src/NotificationBannerLink/index.web.d.ts +11 -0
- package/libs-ui/react-core/src/PhaseBannerTag/index.d.ts +2 -2
- package/libs-ui/react-core/src/SummaryList/index.d.ts +1 -1
- package/libs-ui/react-core/src/SummaryListItemKey/index.d.ts +14 -0
- package/libs-ui/react-core/src/TextArea/index.d.ts +2 -24
- package/libs-ui/react-core/src/TextArea/index.web.d.ts +24 -0
- package/libs-ui/react-core/src/TextInput/index.d.ts +2 -46
- package/libs-ui/react-core/src/TextInput/index.web.d.ts +46 -0
- package/libs-ui/react-core/src/WarningTextAssistive/index.d.ts +15 -0
- package/package.json +5 -5
- package/libs/form/src/Field/FieldBase.d.ts +0 -3
- package/libs/form/src/Field/FieldBaseContainer.d.ts +0 -4
- package/libs/form/src/Field/FieldConditional.d.ts +0 -4
- package/libs/form/src/Field/index.d.ts +0 -4
- package/libs/form/src/Field/types.d.ts +0 -119
- package/libs/form/src/Field/utils/calculateField.d.ts +0 -2
- package/libs/form/src/Field/utils/evaluateFieldWithConditions.d.ts +0 -2
- package/libs/form/src/Field/utils/index.d.ts +0 -3
- package/libs/form/src/Field/utils/useField.d.ts +0 -2
- package/libs/form/src/FieldArray/index.d.ts +0 -11
- package/libs/form/src/FieldObject/index.d.ts +0 -23
- package/libs/form/src/Fieldset/index.d.ts +0 -8
- package/libs/form/src/Fieldset/types.d.ts +0 -10
- package/libs/form/src/FormBuilder/index.d.ts +0 -3
- package/libs/form/src/FormContext.d.ts +0 -3
- package/libs/form/src/MultiplicityField/add-objects.d.ts +0 -14
- package/libs/form/src/MultiplicityField/index.d.ts +0 -15
- package/libs/form/src/MultiplicityField/types.d.ts +0 -19
- package/libs/form/src/index.d.ts +0 -9
- package/libs/form/src/inputs/AutoCompleteInput/index.d.ts +0 -14
- package/libs/form/src/inputs/Checkboxes/index.d.ts +0 -13
- package/libs/form/src/inputs/DateInput/index.d.ts +0 -14
- package/libs/form/src/inputs/FileInput/index.d.ts +0 -14
- package/libs/form/src/inputs/ImageInput/index.d.ts +0 -25
- package/libs/form/src/inputs/Input/index.d.ts +0 -16
- package/libs/form/src/inputs/Label/index.d.ts +0 -21
- package/libs/form/src/inputs/OtpInput/index.d.ts +0 -16
- package/libs/form/src/inputs/Radio/index.d.ts +0 -13
- package/libs/form/src/inputs/Select/index.d.ts +0 -11
- package/libs/form/src/internal.d.ts +0 -5
- package/libs/form/src/types.d.ts +0 -55
- package/libs/form/src/utils.d.ts +0 -8
- package/libs/form/src/validators/index.d.ts +0 -9
- package/libs/form/src/validators/types.d.ts +0 -2
- package/libs/form/src/validators/utils/afm.d.ts +0 -6
- package/libs/form/src/validators/utils/file.d.ts +0 -3
- package/libs/form/src/validators/utils/iban.d.ts +0 -4
- package/libs/form/src/validators/utils/image.d.ts +0 -3
- package/libs/form/src/validators/utils/index.d.ts +0 -27
- package/libs/form/src/validators/utils/int.d.ts +0 -3
- package/libs/form/src/validators/utils/number.d.ts +0 -3
- package/libs/form/src/validators/utils/otp.d.ts +0 -4
- package/libs/form/src/validators/utils/phone.d.ts +0 -11
- package/libs/form/src/validators/utils/postal_code.d.ts +0 -4
- package/libs/form/src/validators/utils/text_limit.d.ts +0 -4
- package/libs/form/src/validators/utils/uuid4.d.ts +0 -6
- package/libs/ui/src/content/SummaryList/__stories__/RowVariations.d.ts +0 -3
- package/libs/ui/src/content/SummaryList/__stories__/WithActions.d.ts +0 -3
- package/libs/ui/src/content/SummaryList/__stories__/WithKeyAndAction.d.ts +0 -3
- package/libs/ui/src/content/SummaryList/__stories__/WithNoLastBorder.d.ts +0 -3
- package/libs/ui/src/content/SummaryList/__stories__/WithoutActions.d.ts +0 -3
- package/libs/ui/src/content/SummaryList/__stories__/WithoutBorders.d.ts +0 -3
- package/libs/ui/src/patterns/FilteredResults/DataTable.d.ts +0 -5
- package/libs/ui/src/patterns/FilteredResults/FilterChips.d.ts +0 -3
- package/libs/ui/src/patterns/FilteredResults/FilterFields.d.ts +0 -5
- package/libs/ui/src/patterns/FilteredResults/FilteredResults.stories.d.ts +0 -8
- package/libs/ui/src/patterns/FilteredResults/hooks.d.ts +0 -22
- package/libs/ui/src/patterns/FilteredResults/index.d.ts +0 -25
- package/libs/ui/src/patterns/index.d.ts +0 -1
- package/libs-ui/react-core/src/index.d.ts +0 -218
- /package/libs/ui/src/content/{SummaryList → Markdown}/__stories__/Default.d.ts +0 -0
package/index.js
CHANGED
|
@@ -5,4 +5,5 @@ declare namespace _default {
|
|
|
5
5
|
}
|
|
6
6
|
export default _default;
|
|
7
7
|
export { Default } from "@digigov/ui/app/Loader/__stories__/Default";
|
|
8
|
+
export { FullPageLoader } from "@digigov/ui/app/Loader/__stories__/FullPageLoader";
|
|
8
9
|
import CircularProgress from '@digigov/ui/app/Loader';
|
|
@@ -4,7 +4,6 @@ export * from '@digigov/react-core/ModalContent';
|
|
|
4
4
|
export * from '@digigov/react-core/ModalAction';
|
|
5
5
|
export * from '@digigov/ui/app/Modal/hooks';
|
|
6
6
|
export * from '@digigov/ui/app/Modal/hooks';
|
|
7
|
-
export * from '@digigov/ui/app/Modal/auto';
|
|
8
7
|
export * from '@digigov/ui/app/Modal/Modal';
|
|
9
8
|
import Modal from '@digigov/ui/app/Modal/Modal';
|
|
10
9
|
export default Modal;
|
|
@@ -9,8 +9,8 @@ export interface AccordionSectionAutoProps extends AccordionSectionProps {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const AccordionAuto: ({ singleOpen, defaultOpen, children, ...props }: {
|
|
12
|
-
singleOpen?: boolean
|
|
13
|
-
defaultOpen?: AccordionItemId
|
|
12
|
+
singleOpen?: boolean;
|
|
13
|
+
defaultOpen?: AccordionItemId;
|
|
14
14
|
children: React.ReactNode;
|
|
15
15
|
}) => React.JSX.Element;
|
|
16
16
|
export declare const useAccordionContext: () => UseAccordionReturn | null;
|
|
@@ -6,5 +6,4 @@ export * from '@digigov/react-core/AccordionSectionContent';
|
|
|
6
6
|
export * from '@digigov/react-core/AccordionSectionSummary';
|
|
7
7
|
export * from '@digigov/react-core/AccordionSectionSummaryHeading';
|
|
8
8
|
export * from '@digigov/ui/content/Accordion/hooks';
|
|
9
|
-
export * from '@digigov/ui/content/Accordion/auto';
|
|
10
9
|
export default Accordion;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export let description: string;
|
|
4
|
+
export { Markdown as component };
|
|
5
|
+
export let displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default _default;
|
|
8
|
+
export { Default } from "@digigov/ui/content/Markdown/__stories__/Default";
|
|
9
|
+
import Markdown from '@digigov/ui/content/Markdown';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export let description: string;
|
|
4
|
+
export { SafeHTML as component };
|
|
5
|
+
export let displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default _default;
|
|
8
|
+
export { Default } from "@digigov/ui/content/SafeHTML/__stories__/Default";
|
|
9
|
+
import SafeHTML from '@digigov/ui/content/SafeHTML';
|
|
@@ -9,8 +9,8 @@ export interface StepNavAccordionAutoProps extends StepNavAccordionProps {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const StepNavAuto: ({ singleOpen, defaultOpen, children, ...props }: {
|
|
12
|
-
singleOpen?: boolean
|
|
13
|
-
defaultOpen?: StepNavItemId
|
|
12
|
+
singleOpen?: boolean;
|
|
13
|
+
defaultOpen?: StepNavItemId;
|
|
14
14
|
children: React.ReactNode;
|
|
15
15
|
}) => React.JSX.Element;
|
|
16
16
|
export declare const useStepNavContext: () => useStepNavReturn | null;
|
|
@@ -9,7 +9,6 @@ import StepNavControls from '@digigov/react-core/StepNavControls';
|
|
|
9
9
|
import StepNavList from '@digigov/react-core/StepNavList';
|
|
10
10
|
import StepNavListItem from '@digigov/react-core/StepNavListItem';
|
|
11
11
|
export * from '@digigov/ui/content/Accordion/hooks';
|
|
12
|
-
export * from '@digigov/ui/content/StepNav/auto';
|
|
13
12
|
export { useAccordion as useStepNav } from '@digigov/ui/content/Accordion/hooks';
|
|
14
13
|
export * from '@digigov/react-core/StepNavAccordion';
|
|
15
14
|
export { StepNavAccordionContent, StepNavAccordionSummary, StepNavAccordionSummaryHeading, StepNavAccordionHeadingTitle, StepNavAccordionHeadingText, StepNavCircleNumber, StepNav, StepNavControls, StepNavList, StepNavListItem, };
|
|
@@ -2,15 +2,21 @@ declare namespace _default {
|
|
|
2
2
|
export let title: string;
|
|
3
3
|
export let description: string;
|
|
4
4
|
export let link: string;
|
|
5
|
-
export { SummaryList as component };
|
|
6
5
|
export let displayName: string;
|
|
6
|
+
export { SummaryListExample as component };
|
|
7
7
|
}
|
|
8
8
|
export default _default;
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
export namespace Default {
|
|
10
|
+
namespace args {
|
|
11
|
+
let sm: number;
|
|
12
|
+
let md: number;
|
|
13
|
+
let lg: number;
|
|
14
|
+
let border: boolean;
|
|
15
|
+
let noLastBorder: boolean;
|
|
16
|
+
let itemBorder: boolean;
|
|
17
|
+
let showKey: boolean;
|
|
18
|
+
let showValue: boolean;
|
|
19
|
+
let showActions: boolean;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import { SummaryListExample } from '@digigov/ui/content/SummaryList/__stories__/SummaryListExample';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidthValues } from '@digigov/ui/content/SummaryList';
|
|
3
|
+
export declare const SummaryListExample: ({ sm, md, lg, border, noLastBorder, itemBorder, showKey, showValue, showActions, }: {
|
|
4
|
+
sm?: WidthValues;
|
|
5
|
+
md?: WidthValues;
|
|
6
|
+
lg?: WidthValues;
|
|
7
|
+
border?: boolean;
|
|
8
|
+
noLastBorder?: boolean;
|
|
9
|
+
itemBorder?: boolean;
|
|
10
|
+
showKey?: boolean;
|
|
11
|
+
showValue?: boolean;
|
|
12
|
+
showActions?: boolean;
|
|
13
|
+
}) => React.JSX.Element;
|
|
14
|
+
export default SummaryListExample;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from '@digigov/react-core/Checkbox';
|
|
2
2
|
export * from '@digigov/react-core/CheckboxItem';
|
|
3
|
+
export * from '@digigov/react-core/CheckboxItemInput';
|
|
3
4
|
export * from '@digigov/react-core/CheckboxConditional';
|
|
4
5
|
import Checkbox from '@digigov/react-core/Checkbox';
|
|
5
6
|
export default Checkbox;
|
package/libs/ui/src/index.d.ts
CHANGED
|
@@ -7,6 +7,5 @@ export * from '@digigov/ui/i18n';
|
|
|
7
7
|
export * from '@digigov/ui/icons';
|
|
8
8
|
export * from '@digigov/ui/layouts';
|
|
9
9
|
export * from '@digigov/ui/navigation';
|
|
10
|
-
export * from '@digigov/ui/patterns';
|
|
11
10
|
export * from '@digigov/ui/typography';
|
|
12
11
|
export * from '@digigov/ui/utils';
|
|
@@ -8,4 +8,6 @@ declare namespace _default {
|
|
|
8
8
|
export default _default;
|
|
9
9
|
export { Default } from "@digigov/ui/navigation/Breadcrumbs/__stories__/Default";
|
|
10
10
|
export { WithoutCurrentPage } from "@digigov/ui/navigation/Breadcrumbs/__stories__/WithoutCurrentPage";
|
|
11
|
+
export { WithHook } from "@digigov/ui/navigation/Breadcrumbs/__stories__/WithHook";
|
|
12
|
+
export { Auto } from "@digigov/ui/navigation/Breadcrumbs/__stories__/Auto";
|
|
11
13
|
import Breadcrumbs from '@digigov/ui/navigation/Breadcrumbs';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { BreadcrumbsProps } from '@digigov/ui/navigation/Breadcrumbs';
|
|
3
|
+
import { UseBreadcrumbsReturn, ConfigData, ChildrenData } from '@digigov/ui/navigation/Breadcrumbs/hooks';
|
|
4
|
+
export interface BreadcrumbsListAutoProps extends BreadcrumbsProps {
|
|
5
|
+
}
|
|
6
|
+
export interface BreadcrumbsAutoProps extends BreadcrumbsProps {
|
|
7
|
+
}
|
|
8
|
+
export interface BreadcrumbsAutoProps {
|
|
9
|
+
items: ConfigData[];
|
|
10
|
+
hrefGenerator: (value: ChildrenData) => string;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const BreadcrumbsContext: React.Context<UseBreadcrumbsReturn | null>;
|
|
14
|
+
export declare const BreadcrumbsAuto: ({ items, hrefGenerator, children }: BreadcrumbsAutoProps) => React.JSX.Element;
|
|
15
|
+
export declare const useBreadcrumbsContext: () => UseBreadcrumbsReturn;
|
|
16
|
+
export declare const BreadcrumbsListAuto: React.ForwardRefExoticComponent<Omit<BreadcrumbsListAutoProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ChildrenData {
|
|
2
|
+
title: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
pdf?: string;
|
|
5
|
+
children?: ChildrenData[];
|
|
6
|
+
}
|
|
7
|
+
export interface ConfigData {
|
|
8
|
+
title: string;
|
|
9
|
+
children?: ChildrenData[];
|
|
10
|
+
}
|
|
11
|
+
export interface BreadcrumbItem {
|
|
12
|
+
title: string;
|
|
13
|
+
href?: string;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface CurrentItem {
|
|
17
|
+
title: string;
|
|
18
|
+
children: CurrentItem[];
|
|
19
|
+
parents: string[];
|
|
20
|
+
}
|
|
21
|
+
export interface UseBreadcrumbsReturn {
|
|
22
|
+
breadcrumbs: Array<BreadcrumbItem>;
|
|
23
|
+
active: CurrentItem;
|
|
24
|
+
setActive: (item: string) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const useBreadcrumbs: (items: ConfigData[], hrefGenerator: (value: ChildrenData) => string) => UseBreadcrumbsReturn;
|
|
@@ -2,4 +2,5 @@ export * from '@digigov/react-core/Breadcrumbs';
|
|
|
2
2
|
export * from '@digigov/react-core/BreadcrumbsList';
|
|
3
3
|
export * from '@digigov/react-core/BreadcrumbsListItem';
|
|
4
4
|
import Breadcrumbs from '@digigov/react-core/Breadcrumbs';
|
|
5
|
+
export * from '@digigov/ui/navigation/Breadcrumbs/utils';
|
|
5
6
|
export default Breadcrumbs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function slug(text: string, maxWidth?: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const flattenRoutes: (items: any, maxLength?: number, prepend?: string, parents?: string[]) => {};
|
|
@@ -17,8 +17,8 @@ export declare const usePaginationContext: () => usePaginationReturn;
|
|
|
17
17
|
export declare const PaginationContextAuto: ({ total, resultsPerPageOptions, previousLabel, nextLabel, children, ...props }: {
|
|
18
18
|
total: number;
|
|
19
19
|
resultsPerPageOptions: number[];
|
|
20
|
-
previousLabel?: string
|
|
21
|
-
nextLabel?: string
|
|
20
|
+
previousLabel?: string;
|
|
21
|
+
nextLabel?: string;
|
|
22
22
|
children: React.ReactNode;
|
|
23
23
|
}) => React.JSX.Element;
|
|
24
24
|
export declare const PaginationAuto: React.ForwardRefExoticComponent<Omit<PaginationProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
@@ -5,5 +5,4 @@ export * from '@digigov/react-core/Pagination';
|
|
|
5
5
|
export * from '@digigov/react-core/PaginationList';
|
|
6
6
|
export * from '@digigov/react-core/PaginationListItem';
|
|
7
7
|
export * from '@digigov/ui/navigation/Pagination/hooks';
|
|
8
|
-
export * from '@digigov/ui/navigation/Pagination/auto';
|
|
9
8
|
export { PaginationLabelContainer } from '@digigov/react-core/PaginationLabelContainer';
|
|
@@ -5,5 +5,4 @@ export * from '@digigov/react-core/TabsList';
|
|
|
5
5
|
export * from '@digigov/react-core/TabsListItemBase';
|
|
6
6
|
export * from '@digigov/react-core/TabsPanelBase';
|
|
7
7
|
export * from '@digigov/react-core/TabsHeading';
|
|
8
|
-
export * from '@digigov/ui/navigation/Tabs/auto';
|
|
9
8
|
export default Tabs;
|
|
@@ -140,7 +140,11 @@ declare const _default: {
|
|
|
140
140
|
'@digigov/ui/layouts/Stack': {};
|
|
141
141
|
'@digigov/ui/navigation/BackLink': {};
|
|
142
142
|
'@digigov/ui/navigation/BackToTopLink': {};
|
|
143
|
+
'@digigov/ui/navigation/Breadcrumbs/auto': {};
|
|
144
|
+
'@digigov/ui/navigation/Breadcrumbs/hooks': {};
|
|
143
145
|
'@digigov/ui/navigation/Breadcrumbs': {};
|
|
146
|
+
'@digigov/ui/navigation/Breadcrumbs/slug': {};
|
|
147
|
+
'@digigov/ui/navigation/Breadcrumbs/utils': {};
|
|
144
148
|
'@digigov/ui/navigation/Drawer/auto': {};
|
|
145
149
|
'@digigov/ui/navigation/Drawer/hooks': {};
|
|
146
150
|
'@digigov/ui/navigation/Drawer': {};
|
|
@@ -163,12 +167,6 @@ declare const _default: {
|
|
|
163
167
|
'@digigov/ui/navigation/Tabs/auto': {};
|
|
164
168
|
'@digigov/ui/navigation/Tabs/hooks': {};
|
|
165
169
|
'@digigov/ui/navigation/Tabs': {};
|
|
166
|
-
'@digigov/ui/patterns/FilteredResults/DataTable': {};
|
|
167
|
-
'@digigov/ui/patterns/FilteredResults/FilterChips': {};
|
|
168
|
-
'@digigov/ui/patterns/FilteredResults/FilterFields': {};
|
|
169
|
-
'@digigov/ui/patterns/FilteredResults/hooks': {};
|
|
170
|
-
'@digigov/ui/patterns/FilteredResults': {};
|
|
171
|
-
'@digigov/ui/patterns': {};
|
|
172
170
|
'@digigov/ui/typography/Code': {};
|
|
173
171
|
'@digigov/ui/typography/CodeBlock': {};
|
|
174
172
|
'@digigov/ui/typography/Heading': {};
|
|
@@ -212,6 +210,8 @@ export const stories: {
|
|
|
212
210
|
'@digigov/ui/content/Chip/Chip.stories': typeof _digigov_ui_content_Chip_Chip_stories;
|
|
213
211
|
'@digigov/ui/content/Details/Details.stories': typeof _digigov_ui_content_Details_Details_stories;
|
|
214
212
|
'@digigov/ui/content/List/List.stories': typeof _digigov_ui_content_List_List_stories;
|
|
213
|
+
'@digigov/ui/content/Markdown/Markdown.stories': typeof _digigov_ui_content_Markdown_Markdown_stories;
|
|
214
|
+
'@digigov/ui/content/SafeHTML/SafeHTML.stories': typeof _digigov_ui_content_SafeHTML_SafeHTML_stories;
|
|
215
215
|
'@digigov/ui/content/StepNav/StepNav.stories': typeof _digigov_ui_content_StepNav_StepNav_stories;
|
|
216
216
|
'@digigov/ui/content/SummaryList/SummaryList.stories': typeof _digigov_ui_content_SummaryList_SummaryList_stories;
|
|
217
217
|
'@digigov/ui/content/Table/Table.stories': typeof _digigov_ui_content_Table_Table_stories;
|
|
@@ -247,7 +247,6 @@ export const stories: {
|
|
|
247
247
|
'@digigov/ui/navigation/Pagination/Pagination.stories': typeof _digigov_ui_navigation_Pagination_Pagination_stories;
|
|
248
248
|
'@digigov/ui/navigation/SkipLink/SkipLink.stories': typeof _digigov_ui_navigation_SkipLink_SkipLink_stories;
|
|
249
249
|
'@digigov/ui/navigation/Tabs/Tabs.stories': typeof _digigov_ui_navigation_Tabs_Tabs_stories;
|
|
250
|
-
'@digigov/ui/patterns/FilteredResults/FilteredResults.stories': typeof _digigov_ui_patterns_FilteredResults_FilteredResults_stories;
|
|
251
250
|
'@digigov/ui/typography/CodeBlock/CodeBlock.stories': typeof _digigov_ui_typography_CodeBlock_CodeBlock_stories;
|
|
252
251
|
'@digigov/ui/typography/Heading/Heading.stories': typeof _digigov_ui_typography_Heading_Heading_stories;
|
|
253
252
|
'@digigov/ui/typography/HeadingCaption/HeadingCaption.stories': typeof _digigov_ui_typography_HeadingCaption_HeadingCaption_stories;
|
|
@@ -274,6 +273,8 @@ import * as _digigov_ui_content_Card_Card_stories from '@digigov/ui/content/Card
|
|
|
274
273
|
import * as _digigov_ui_content_Chip_Chip_stories from '@digigov/ui/content/Chip/Chip.stories';
|
|
275
274
|
import * as _digigov_ui_content_Details_Details_stories from '@digigov/ui/content/Details/Details.stories';
|
|
276
275
|
import * as _digigov_ui_content_List_List_stories from '@digigov/ui/content/List/List.stories';
|
|
276
|
+
import * as _digigov_ui_content_Markdown_Markdown_stories from '@digigov/ui/content/Markdown/Markdown.stories';
|
|
277
|
+
import * as _digigov_ui_content_SafeHTML_SafeHTML_stories from '@digigov/ui/content/SafeHTML/SafeHTML.stories';
|
|
277
278
|
import * as _digigov_ui_content_StepNav_StepNav_stories from '@digigov/ui/content/StepNav/StepNav.stories';
|
|
278
279
|
import * as _digigov_ui_content_SummaryList_SummaryList_stories from '@digigov/ui/content/SummaryList/SummaryList.stories';
|
|
279
280
|
import * as _digigov_ui_content_Table_Table_stories from '@digigov/ui/content/Table/Table.stories';
|
|
@@ -309,7 +310,6 @@ import * as _digigov_ui_navigation_NavList_NavList_stories from '@digigov/ui/nav
|
|
|
309
310
|
import * as _digigov_ui_navigation_Pagination_Pagination_stories from '@digigov/ui/navigation/Pagination/Pagination.stories';
|
|
310
311
|
import * as _digigov_ui_navigation_SkipLink_SkipLink_stories from '@digigov/ui/navigation/SkipLink/SkipLink.stories';
|
|
311
312
|
import * as _digigov_ui_navigation_Tabs_Tabs_stories from '@digigov/ui/navigation/Tabs/Tabs.stories';
|
|
312
|
-
import * as _digigov_ui_patterns_FilteredResults_FilteredResults_stories from '@digigov/ui/patterns/FilteredResults/FilteredResults.stories';
|
|
313
313
|
import * as _digigov_ui_typography_CodeBlock_CodeBlock_stories from '@digigov/ui/typography/CodeBlock/CodeBlock.stories';
|
|
314
314
|
import * as _digigov_ui_typography_Heading_Heading_stories from '@digigov/ui/typography/Heading/Heading.stories';
|
|
315
315
|
import * as _digigov_ui_typography_HeadingCaption_HeadingCaption_stories from '@digigov/ui/typography/HeadingCaption/HeadingCaption.stories';
|
|
@@ -5,4 +5,7 @@ declare namespace _default {
|
|
|
5
5
|
}
|
|
6
6
|
export default _default;
|
|
7
7
|
export { Default } from "@digigov/ui/typography/CodeBlock/__stories__/Default";
|
|
8
|
+
export { Highlighted } from "@digigov/ui/typography/CodeBlock/__stories__/Highlighted";
|
|
9
|
+
export { WithCopyToClipboard } from "@digigov/ui/typography/CodeBlock/__stories__/WithCopyToClipboard";
|
|
10
|
+
export { WithPhaseBanner } from "@digigov/ui/typography/CodeBlock/__stories__/WithPhaseBanner";
|
|
8
11
|
import CodeBlock from '@digigov/ui/typography/CodeBlock';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface CodeBlockProps extends BaseProps<'div'> {
|
|
4
|
-
language?: '
|
|
5
|
-
copyToClipboard?:
|
|
6
|
-
highlighted?:
|
|
7
|
-
showLineNumbers?:
|
|
8
|
-
shouldWrapLongLines?: true | false;
|
|
4
|
+
language?: 'javascript' | 'bash' | 'xml' | 'python' | 'markdown' | 'json';
|
|
5
|
+
copyToClipboard?: boolean;
|
|
6
|
+
highlighted?: boolean;
|
|
7
|
+
showLineNumbers?: boolean;
|
|
9
8
|
phaseBannerTagName?: string;
|
|
10
9
|
highlightLines?: number[];
|
|
11
10
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const useDebounceCallback: <CallbackArgs extends any[]>(callback: (...args: CallbackArgs) => void, wait?: number, leading?: boolean) => (...args: CallbackArgs) => void;
|
|
2
|
+
export declare const useDebounceCallback: <CallbackArgs extends any[]>(callback: (...args: CallbackArgs) => void, wait?: number, leading?: boolean) => ((...args: CallbackArgs) => void);
|
|
3
3
|
export declare const useDebounce: <State extends unknown>(initialState: State | (() => State), wait?: number, leading?: boolean) => [State, React.Dispatch<React.SetStateAction<State>>];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useKeypress: (key: string, callback?: (
|
|
1
|
+
export declare const useKeypress: (key: string, callback?: (e: KeyboardEvent) => void) => void;
|
|
2
2
|
export default useKeypress;
|
|
@@ -1,95 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
as?: C;
|
|
4
|
-
};
|
|
5
|
-
type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
|
|
6
|
-
type PolymorphicComponentProp<C extends React.ElementType, Props = Record<string, unknown>> = React.PropsWithChildren<Props & AsProp<C>> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
|
|
7
|
-
type PolymorphicComponentPropWithRef<C extends React.ElementType, Props = Record<string, unknown>> = PolymorphicComponentProp<C, Props> & {
|
|
8
|
-
ref?: any;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* This is the updated component props using PolymorphicComponentPropWithRef
|
|
12
|
-
*/
|
|
13
|
-
export type BaseProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, {
|
|
14
|
-
/** margin is optional. It has not a default value. */
|
|
15
|
-
margin?: spacingValues;
|
|
16
|
-
/** marginTop is optional. It has not a default value. */
|
|
17
|
-
marginTop?: spacingValues;
|
|
18
|
-
/** marginBottom is optional. It has not a default value. */
|
|
19
|
-
marginBottom?: spacingValues;
|
|
20
|
-
/** marginLeft is optional. It has not a default value. */
|
|
21
|
-
marginLeft?: spacingValues;
|
|
22
|
-
/** marginRight is optional. It has not a default value. */
|
|
23
|
-
marginRight?: spacingValues;
|
|
24
|
-
/** Alternative for margin. Margin is optional. It has not a default value. */
|
|
25
|
-
m?: spacingValues;
|
|
26
|
-
/** Alternative for marginTop. MarginTop is optional. It has not a default value. */
|
|
27
|
-
mt?: spacingValues;
|
|
28
|
-
/** Alternative for marginBottom. MarginBottom is optional. It has not a default value. */
|
|
29
|
-
mb?: spacingValues;
|
|
30
|
-
/** Alternative for marginLeft. MarginLeft is optional. It has not a default value. */
|
|
31
|
-
ml?: spacingValues;
|
|
32
|
-
/** Alternative for marginRight. MarginRight is optional. It has not a default value. */
|
|
33
|
-
mr?: spacingValues;
|
|
34
|
-
/** Alternative for marginX. MarginX is optional. It has not a default value. */
|
|
35
|
-
mx?: spacingValues;
|
|
36
|
-
/** Alternative for marginY. MarginY is optional. It has not a default value. */
|
|
37
|
-
my?: spacingValues;
|
|
38
|
-
/** padding is optional. It has not a default value. */
|
|
39
|
-
padding?: spacingValues;
|
|
40
|
-
/** paddingTop is optional. It has not a default value. */
|
|
41
|
-
paddingTop?: spacingValues;
|
|
42
|
-
/** paddingBottom is optional. It has not a default value. */
|
|
43
|
-
paddingBottom?: spacingValues;
|
|
44
|
-
/** paddingLeft is optional. It has not a default value. */
|
|
45
|
-
paddingLeft?: spacingValues;
|
|
46
|
-
/** paddingRight is optional. It has not a default value. */
|
|
47
|
-
paddingRight?: spacingValues;
|
|
48
|
-
/** Alternative for padding. Padding is optional. It has not a default value. */
|
|
49
|
-
p?: spacingValues;
|
|
50
|
-
/** Alternative for paddingTop. PaddingTop is optional. It has not a default value. */
|
|
51
|
-
pt?: spacingValues;
|
|
52
|
-
/** Alternative for paddingBottom. PaddingBottom is optional. It has not a default value. */
|
|
53
|
-
pb?: spacingValues;
|
|
54
|
-
/** Alternative for paddingLeft. PaddingLeft is optional. It has not a default value. */
|
|
55
|
-
pl?: spacingValues;
|
|
56
|
-
/** Alternative for paddingRight. PaddingRight is optional. It has not a default value. */
|
|
57
|
-
pr?: spacingValues;
|
|
58
|
-
/** Alternative for paddingX. PaddingX is optional. It has not a default value. */
|
|
59
|
-
px?: spacingValues;
|
|
60
|
-
/** Alternative for paddingY. PaddingY is optional. It has not a default value. */
|
|
61
|
-
py?: spacingValues;
|
|
62
|
-
/** printHidden is optional. Default value is false. When true, the component is hidden at print. */
|
|
63
|
-
printHidden?: boolean;
|
|
64
|
-
/** printVisible is optional. When block, the component is displayed as block. When inline, the component is displayed as inline.*/
|
|
65
|
-
printVisible?: 'block' | 'inline';
|
|
66
|
-
/** Components will be hidden at all screen sizes. */
|
|
67
|
-
hidden?: boolean;
|
|
68
|
-
/** Components will be hidden from 'xs' screen size and up. */
|
|
69
|
-
xsUpHidden?: boolean;
|
|
70
|
-
/** Components will be hidden from 'sm' screen size and up. */
|
|
71
|
-
smUpHidden?: boolean;
|
|
72
|
-
/** Components will be hidden from 'md' screen size and up. */
|
|
73
|
-
mdUpHidden?: boolean;
|
|
74
|
-
/** Components will be hidden from 'lg' screen size and up. */
|
|
75
|
-
lgUpHidden?: boolean;
|
|
76
|
-
/** Components will be hidden from 'xl' screen size and up. */
|
|
77
|
-
xlUpHidden?: boolean;
|
|
78
|
-
/** Components will be hidden between xs and sm screen size. */
|
|
79
|
-
xsHidden?: boolean;
|
|
80
|
-
/** Components will be hidden between sm and md screen size. */
|
|
81
|
-
smHidden?: boolean;
|
|
82
|
-
/** Components will be hidden between md and lg screen size. */
|
|
83
|
-
mdHidden?: boolean;
|
|
84
|
-
/** Components will be hidden between lg and xl screen size. */
|
|
85
|
-
lgHidden?: boolean;
|
|
86
|
-
/** Components will be hidden between xl and 2xl screen size. */
|
|
87
|
-
xlHidden?: boolean;
|
|
88
|
-
}>;
|
|
89
|
-
type spacingValues = 0 | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
|
|
90
|
-
/**
|
|
91
|
-
* This is the type used in the type annotation for the component
|
|
92
|
-
*/
|
|
93
|
-
type BaseComponent = <C extends React.ElementType = 'span'>(props: BaseProps<C>) => React.ReactNode | null;
|
|
94
|
-
export declare const Base: BaseComponent;
|
|
95
|
-
export default Base;
|
|
1
|
+
export * from '@digigov/react-core/Base/index.web';
|
|
2
|
+
export { default as default } from '@digigov/react-core/Base/index.web';
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type AsProp<C extends React.ElementType> = {
|
|
3
|
+
as?: C;
|
|
4
|
+
};
|
|
5
|
+
type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
|
|
6
|
+
type PolymorphicComponentProp<C extends React.ElementType, Props = Record<string, unknown>> = React.PropsWithChildren<Props & AsProp<C>> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
|
|
7
|
+
type PolymorphicComponentPropWithRef<C extends React.ElementType, Props = Record<string, unknown>> = PolymorphicComponentProp<C, Props> & {
|
|
8
|
+
ref?: any;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* This is the updated component props using PolymorphicComponentPropWithRef
|
|
12
|
+
*/
|
|
13
|
+
export type BaseProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, {
|
|
14
|
+
/** margin is optional. It has not a default value. */
|
|
15
|
+
margin?: spacingValues;
|
|
16
|
+
/** marginTop is optional. It has not a default value. */
|
|
17
|
+
marginTop?: spacingValues;
|
|
18
|
+
/** marginBottom is optional. It has not a default value. */
|
|
19
|
+
marginBottom?: spacingValues;
|
|
20
|
+
/** marginLeft is optional. It has not a default value. */
|
|
21
|
+
marginLeft?: spacingValues;
|
|
22
|
+
/** marginRight is optional. It has not a default value. */
|
|
23
|
+
marginRight?: spacingValues;
|
|
24
|
+
/** Alternative for margin. Margin is optional. It has not a default value. */
|
|
25
|
+
m?: spacingValues;
|
|
26
|
+
/** Alternative for marginTop. MarginTop is optional. It has not a default value. */
|
|
27
|
+
mt?: spacingValues;
|
|
28
|
+
/** Alternative for marginBottom. MarginBottom is optional. It has not a default value. */
|
|
29
|
+
mb?: spacingValues;
|
|
30
|
+
/** Alternative for marginLeft. MarginLeft is optional. It has not a default value. */
|
|
31
|
+
ml?: spacingValues;
|
|
32
|
+
/** Alternative for marginRight. MarginRight is optional. It has not a default value. */
|
|
33
|
+
mr?: spacingValues;
|
|
34
|
+
/** Alternative for marginX. MarginX is optional. It has not a default value. */
|
|
35
|
+
mx?: spacingValues;
|
|
36
|
+
/** Alternative for marginY. MarginY is optional. It has not a default value. */
|
|
37
|
+
my?: spacingValues;
|
|
38
|
+
/** padding is optional. It has not a default value. */
|
|
39
|
+
padding?: spacingValues;
|
|
40
|
+
/** paddingTop is optional. It has not a default value. */
|
|
41
|
+
paddingTop?: spacingValues;
|
|
42
|
+
/** paddingBottom is optional. It has not a default value. */
|
|
43
|
+
paddingBottom?: spacingValues;
|
|
44
|
+
/** paddingLeft is optional. It has not a default value. */
|
|
45
|
+
paddingLeft?: spacingValues;
|
|
46
|
+
/** paddingRight is optional. It has not a default value. */
|
|
47
|
+
paddingRight?: spacingValues;
|
|
48
|
+
/** Alternative for padding. Padding is optional. It has not a default value. */
|
|
49
|
+
p?: spacingValues;
|
|
50
|
+
/** Alternative for paddingTop. PaddingTop is optional. It has not a default value. */
|
|
51
|
+
pt?: spacingValues;
|
|
52
|
+
/** Alternative for paddingBottom. PaddingBottom is optional. It has not a default value. */
|
|
53
|
+
pb?: spacingValues;
|
|
54
|
+
/** Alternative for paddingLeft. PaddingLeft is optional. It has not a default value. */
|
|
55
|
+
pl?: spacingValues;
|
|
56
|
+
/** Alternative for paddingRight. PaddingRight is optional. It has not a default value. */
|
|
57
|
+
pr?: spacingValues;
|
|
58
|
+
/** Alternative for paddingX. PaddingX is optional. It has not a default value. */
|
|
59
|
+
px?: spacingValues;
|
|
60
|
+
/** Alternative for paddingY. PaddingY is optional. It has not a default value. */
|
|
61
|
+
py?: spacingValues;
|
|
62
|
+
/** printHidden is optional. Default value is false. When true, the component is hidden at print. */
|
|
63
|
+
printHidden?: boolean;
|
|
64
|
+
/** printVisible is optional. When block, the component is displayed as block. When inline, the component is displayed as inline.*/
|
|
65
|
+
printVisible?: 'block' | 'inline';
|
|
66
|
+
/** Components will be hidden at all screen sizes. */
|
|
67
|
+
hidden?: boolean;
|
|
68
|
+
/** Components will be hidden from 'xs' screen size and up. */
|
|
69
|
+
xsUpHidden?: boolean;
|
|
70
|
+
/** Components will be hidden from 'sm' screen size and up. */
|
|
71
|
+
smUpHidden?: boolean;
|
|
72
|
+
/** Components will be hidden from 'md' screen size and up. */
|
|
73
|
+
mdUpHidden?: boolean;
|
|
74
|
+
/** Components will be hidden from 'lg' screen size and up. */
|
|
75
|
+
lgUpHidden?: boolean;
|
|
76
|
+
/** Components will be hidden from 'xl' screen size and up. */
|
|
77
|
+
xlUpHidden?: boolean;
|
|
78
|
+
/** Components will be hidden between xs and sm screen size. */
|
|
79
|
+
xsHidden?: boolean;
|
|
80
|
+
/** Components will be hidden between sm and md screen size. */
|
|
81
|
+
smHidden?: boolean;
|
|
82
|
+
/** Components will be hidden between md and lg screen size. */
|
|
83
|
+
mdHidden?: boolean;
|
|
84
|
+
/** Components will be hidden between lg and xl screen size. */
|
|
85
|
+
lgHidden?: boolean;
|
|
86
|
+
/** Components will be hidden between xl and 2xl screen size. */
|
|
87
|
+
xlHidden?: boolean;
|
|
88
|
+
/** display is optional. It has not a default value. */
|
|
89
|
+
display?: 'flex' | 'block' | 'none';
|
|
90
|
+
}>;
|
|
91
|
+
type spacingValues = 0 | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
|
|
92
|
+
/**
|
|
93
|
+
* This is the type used in the type annotation for the component
|
|
94
|
+
*/
|
|
95
|
+
type BaseComponent = <C extends React.ElementType = 'span'>(props: BaseProps<C>) => React.ReactNode | null;
|
|
96
|
+
export declare const Base: BaseComponent;
|
|
97
|
+
export default Base;
|