@digigov/react-experimental 2.0.0-6c42d5eb → 2.0.0-6e3977bc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/index.js +1 -1
  2. package/libs/ui/src/app/Loader/Loader.stories.d.ts +1 -0
  3. package/libs/ui/src/app/Loader/__stories__/FullPageLoader.d.ts +2 -0
  4. package/libs/ui/src/app/Modal/index.d.ts +0 -1
  5. package/libs/ui/src/app/OutdatedBrowserBanner/index.d.ts +0 -1
  6. package/libs/ui/src/content/Accordion/auto.d.ts +2 -2
  7. package/libs/ui/src/content/Accordion/index.d.ts +0 -1
  8. package/libs/ui/src/content/Markdown/Markdown.stories.d.ts +9 -0
  9. package/libs/ui/src/content/Markdown/index.d.ts +1 -1
  10. package/libs/ui/src/content/SafeHTML/SafeHTML.stories.d.ts +9 -0
  11. package/libs/ui/src/content/SafeHTML/__stories__/Default.d.ts +3 -0
  12. package/libs/ui/src/content/StepNav/auto.d.ts +2 -2
  13. package/libs/ui/src/content/StepNav/index.d.ts +0 -1
  14. package/libs/ui/src/content/SummaryList/SummaryList.stories.d.ts +15 -9
  15. package/libs/ui/src/content/SummaryList/__stories__/SummaryListExample.d.ts +14 -0
  16. package/libs/ui/src/feedback/WarningText/index.d.ts +1 -0
  17. package/libs/ui/src/form/Checkbox/index.d.ts +1 -0
  18. package/libs/ui/src/navigation/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -0
  19. package/libs/ui/src/navigation/Breadcrumbs/__stories__/Auto.d.ts +3 -0
  20. package/libs/ui/src/navigation/Breadcrumbs/__stories__/WithHook.d.ts +3 -0
  21. package/libs/ui/src/navigation/Breadcrumbs/auto.d.ts +16 -0
  22. package/libs/ui/src/navigation/Breadcrumbs/hooks.d.ts +11 -0
  23. package/libs/ui/src/navigation/Breadcrumbs/index.d.ts +1 -0
  24. package/libs/ui/src/navigation/Breadcrumbs/slug.d.ts +1 -0
  25. package/libs/ui/src/navigation/Breadcrumbs/utils.d.ts +1 -0
  26. package/libs/ui/src/navigation/Drawer/index.d.ts +0 -1
  27. package/libs/ui/src/navigation/Pagination/auto.d.ts +2 -2
  28. package/libs/ui/src/navigation/Pagination/index.d.ts +0 -1
  29. package/libs/ui/src/navigation/Tabs/index.d.ts +0 -1
  30. package/libs/ui/src/registry.d.ts +8 -0
  31. package/libs/ui/src/typography/CodeBlock/index.d.ts +3 -3
  32. package/libs/ui/src/utils/Base/index.d.ts +1 -0
  33. package/libs/ui/src/utils/hooks/useDebounce.d.ts +1 -1
  34. package/libs/ui/src/utils/hooks/useKeypress.d.ts +1 -1
  35. package/libs-ui/react-core/src/Base/index.d.ts +2 -95
  36. package/libs-ui/react-core/src/Base/index.web.d.ts +97 -0
  37. package/libs-ui/react-core/src/Base/utils.d.ts +41 -0
  38. package/libs-ui/react-core/src/CheckboxItemInput/index.d.ts +2 -0
  39. package/libs-ui/react-core/src/CheckboxItemInput/index.web.d.ts +10 -0
  40. package/libs-ui/react-core/src/CodeBlockContainer/index.d.ts +1 -1
  41. package/libs-ui/react-core/src/CodeBlockContent/index.d.ts +1 -1
  42. package/libs-ui/react-core/src/CodeBlockHeader/index.d.ts +1 -1
  43. package/libs-ui/react-core/src/CopyToClipboardContainer/index.d.ts +2 -31
  44. package/libs-ui/react-core/src/CopyToClipboardContainer/index.web.d.ts +31 -0
  45. package/libs-ui/react-core/src/CopyToClipboardMessage/index.d.ts +2 -18
  46. package/libs-ui/react-core/src/CopyToClipboardMessage/index.web.d.ts +18 -0
  47. package/libs-ui/react-core/src/DateInputItem/index.d.ts +2 -26
  48. package/libs-ui/react-core/src/DateInputItem/index.web.d.ts +26 -0
  49. package/libs-ui/react-core/src/Details/index.d.ts +2 -10
  50. package/libs-ui/react-core/src/Details/index.web.d.ts +10 -0
  51. package/libs-ui/react-core/src/NavListItemActionContainer/index.d.ts +2 -10
  52. package/libs-ui/react-core/src/NavListItemActionContainer/index.web.d.ts +10 -0
  53. package/libs-ui/react-core/src/NotificationBannerLink/index.d.ts +2 -11
  54. package/libs-ui/react-core/src/NotificationBannerLink/index.web.d.ts +11 -0
  55. package/libs-ui/react-core/src/PhaseBannerTag/index.d.ts +2 -2
  56. package/libs-ui/react-core/src/SummaryList/index.d.ts +1 -1
  57. package/libs-ui/react-core/src/SummaryListItemKey/index.d.ts +14 -0
  58. package/libs-ui/react-core/src/TextArea/index.d.ts +2 -24
  59. package/libs-ui/react-core/src/TextArea/index.web.d.ts +24 -0
  60. package/libs-ui/react-core/src/TextInput/index.d.ts +2 -46
  61. package/libs-ui/react-core/src/TextInput/index.web.d.ts +46 -0
  62. package/libs-ui/react-core/src/WarningTextAssistive/index.d.ts +15 -0
  63. package/package.json +5 -5
  64. package/libs/ui/src/content/SummaryList/__stories__/RowVariations.d.ts +0 -3
  65. package/libs/ui/src/content/SummaryList/__stories__/WithActions.d.ts +0 -3
  66. package/libs/ui/src/content/SummaryList/__stories__/WithKeyAndAction.d.ts +0 -3
  67. package/libs/ui/src/content/SummaryList/__stories__/WithNoLastBorder.d.ts +0 -3
  68. package/libs/ui/src/content/SummaryList/__stories__/WithoutActions.d.ts +0 -3
  69. package/libs/ui/src/content/SummaryList/__stories__/WithoutBorders.d.ts +0 -3
  70. /package/libs/ui/src/content/{SummaryList → Markdown}/__stories__/Default.d.ts +0 -0
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v2.0.0-6c42d5eb
1
+ /** @license Digigov v2.0.0-6e3977bc
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const FullPageLoader: () => React.JSX.Element;
@@ -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;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export default function OutdatedBrowserBanner(): JSX.Element;
3
2
  export * from '@digigov/ui/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck';
@@ -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 | undefined;
13
- defaultOpen?: AccordionItemId | undefined;
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';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare const Markdown: ({ children, content }: {
3
3
  children?: React.ReactNode;
4
- content?: string | undefined;
4
+ content?: string;
5
5
  }) => React.JSX.Element;
6
6
  export default 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';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const Default: () => React.JSX.Element;
3
+ export default Default;
@@ -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 | undefined;
13
- defaultOpen?: StepNavItemId | undefined;
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 { Default } from "@digigov/ui/content/SummaryList/__stories__/Default";
10
- export { WithActions } from "@digigov/ui/content/SummaryList/__stories__/WithActions";
11
- export { WithoutActions } from "@digigov/ui/content/SummaryList/__stories__/WithoutActions";
12
- export { WithNoLastBorder } from "@digigov/ui/content/SummaryList/__stories__/WithNoLastBorder";
13
- export { WithoutBorders } from "@digigov/ui/content/SummaryList/__stories__/WithoutBorders";
14
- export { WithKeyAndAction } from "@digigov/ui/content/SummaryList/__stories__/WithKeyAndAction";
15
- export { RowVariations } from "@digigov/ui/content/SummaryList/__stories__/RowVariations";
16
- import SummaryList from '@digigov/ui/content/SummaryList';
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,3 +1,4 @@
1
1
  export * from '@digigov/react-core/WarningText';
2
2
  import WarningText from '@digigov/react-core/WarningText';
3
+ export { WarningTextAssistive } from '@digigov/react-core/WarningTextAssistive';
3
4
  export default WarningText;
@@ -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;
@@ -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,3 @@
1
+ import React from 'react';
2
+ export declare const Auto: () => React.JSX.Element;
3
+ export default Auto;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const WithHook: () => React.JSX.Element;
3
+ export default WithHook;
@@ -0,0 +1,16 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { BreadcrumbsProps } from '@digigov/ui/navigation/Breadcrumbs';
3
+ import { UseBreadcrumbsReturn, BreadcrumbItem } 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: BreadcrumbItem[];
10
+ initialUrlRoute?: string;
11
+ children: ReactNode;
12
+ }
13
+ export declare const BreadcrumbsContext: React.Context<UseBreadcrumbsReturn | null>;
14
+ export declare const BreadcrumbsAuto: ({ items, initialUrlRoute, 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,11 @@
1
+ export interface BreadcrumbItem {
2
+ title: string;
3
+ href?: string;
4
+ [key: string]: unknown;
5
+ }
6
+ export interface UseBreadcrumbsReturn {
7
+ breadcrumbs: BreadcrumbItem[];
8
+ currentRoute: string;
9
+ setActiveItem: (item: BreadcrumbItem) => void;
10
+ }
11
+ export declare const useBreadcrumbs: (items: BreadcrumbItem[], initialUrlRoute?: 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[]) => {};
@@ -1,5 +1,4 @@
1
1
  export * from '@digigov/react-core/Drawer';
2
2
  export * from '@digigov/react-core/DrawerHeading';
3
- export * from '@digigov/ui/navigation/Drawer/auto';
4
3
  import Drawer from '@digigov/react-core/Drawer';
5
4
  export default Drawer;
@@ -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 | undefined;
21
- nextLabel?: string | undefined;
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': {};
@@ -206,6 +210,8 @@ export const stories: {
206
210
  '@digigov/ui/content/Chip/Chip.stories': typeof _digigov_ui_content_Chip_Chip_stories;
207
211
  '@digigov/ui/content/Details/Details.stories': typeof _digigov_ui_content_Details_Details_stories;
208
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;
209
215
  '@digigov/ui/content/StepNav/StepNav.stories': typeof _digigov_ui_content_StepNav_StepNav_stories;
210
216
  '@digigov/ui/content/SummaryList/SummaryList.stories': typeof _digigov_ui_content_SummaryList_SummaryList_stories;
211
217
  '@digigov/ui/content/Table/Table.stories': typeof _digigov_ui_content_Table_Table_stories;
@@ -267,6 +273,8 @@ import * as _digigov_ui_content_Card_Card_stories from '@digigov/ui/content/Card
267
273
  import * as _digigov_ui_content_Chip_Chip_stories from '@digigov/ui/content/Chip/Chip.stories';
268
274
  import * as _digigov_ui_content_Details_Details_stories from '@digigov/ui/content/Details/Details.stories';
269
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';
270
278
  import * as _digigov_ui_content_StepNav_StepNav_stories from '@digigov/ui/content/StepNav/StepNav.stories';
271
279
  import * as _digigov_ui_content_SummaryList_SummaryList_stories from '@digigov/ui/content/SummaryList/SummaryList.stories';
272
280
  import * as _digigov_ui_content_Table_Table_stories from '@digigov/ui/content/Table/Table.stories';
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  import { BaseProps } from '@digigov/react-core/Base';
3
3
  export interface CodeBlockProps extends BaseProps<'div'> {
4
4
  language?: 'javascript' | 'bash' | 'xml' | 'python' | 'markdown' | 'json';
5
- copyToClipboard?: true | false;
6
- highlighted?: true | false;
7
- showLineNumbers?: true | false;
5
+ copyToClipboard?: boolean;
6
+ highlighted?: boolean;
7
+ showLineNumbers?: boolean;
8
8
  phaseBannerTagName?: string;
9
9
  highlightLines?: number[];
10
10
  }
@@ -1,3 +1,4 @@
1
1
  export * from '@digigov/react-core/Base';
2
2
  import Base from '@digigov/react-core/Base';
3
+ export { basePropGenerator } from '@digigov/react-core/Base/utils';
3
4
  export default Base;
@@ -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?: ((e: KeyboardEvent) => void) | undefined) => void;
1
+ export declare const useKeypress: (key: string, callback?: (e: KeyboardEvent) => void) => void;
2
2
  export default useKeypress;
@@ -1,95 +1,2 @@
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
- }>;
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;
@@ -0,0 +1,41 @@
1
+ export declare const basePropGenerator: ({ display, margin, marginTop, marginBottom, marginLeft, marginRight, m, mt, mb, ml, mr, mx, my, padding, paddingTop, paddingBottom, paddingLeft, paddingRight, p, pt, pb, pr, pl, px, py, printHidden, printVisible, hidden, xsUpHidden, smUpHidden, mdUpHidden, lgUpHidden, xlUpHidden, xsHidden, smHidden, mdHidden, lgHidden, xlHidden, className, }: {
2
+ display: any;
3
+ margin: any;
4
+ marginTop: any;
5
+ marginBottom: any;
6
+ marginLeft: any;
7
+ marginRight: any;
8
+ m: any;
9
+ mt: any;
10
+ mb: any;
11
+ ml: any;
12
+ mr: any;
13
+ mx: any;
14
+ my: any;
15
+ padding: any;
16
+ paddingTop: any;
17
+ paddingBottom: any;
18
+ paddingLeft: any;
19
+ paddingRight: any;
20
+ p: any;
21
+ pt: any;
22
+ pb: any;
23
+ pr: any;
24
+ pl: any;
25
+ px: any;
26
+ py: any;
27
+ printHidden: any;
28
+ printVisible: any;
29
+ hidden: any;
30
+ xsUpHidden: any;
31
+ smUpHidden: any;
32
+ mdUpHidden: any;
33
+ lgUpHidden: any;
34
+ xlUpHidden: any;
35
+ xsHidden: any;
36
+ smHidden: any;
37
+ mdHidden: any;
38
+ lgHidden: any;
39
+ xlHidden: any;
40
+ className: any;
41
+ }) => string;
@@ -0,0 +1,2 @@
1
+ export * from '@digigov/react-core/CheckboxItemInput/index.web';
2
+ export { default as default } from '@digigov/react-core/CheckboxItemInput/index.web';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface CheckboxItemInputProps extends BaseProps<'input'> {
4
+ }
5
+ /**
6
+ * Details for the CheckboxItem.
7
+ * CheckboxItemInput component is the input component for CheckboxItem.
8
+ */
9
+ export declare const CheckboxItemInput: React.ForwardRefExoticComponent<Omit<CheckboxItemInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
10
+ export default CheckboxItemInput;
@@ -3,7 +3,7 @@ import { BaseProps } from '@digigov/react-core/Base';
3
3
  export interface CodeBlockContainerProps extends BaseProps<'div'> {
4
4
  }
5
5
  /**
6
- * CodeBlockContainer can be used as a colored container for text.
6
+ * CodeBlockContainer is a component for displaying code.
7
7
  *
8
8
  */
9
9
  export declare const CodeBlockContainer: React.ForwardRefExoticComponent<Omit<CodeBlockContainerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -3,7 +3,7 @@ import { BaseProps } from '@digigov/react-core/Base';
3
3
  export interface CodeBlockContentProps extends BaseProps<'pre'> {
4
4
  }
5
5
  /**
6
- * CodeBlockContent can be used as content inside the CodeBlockContainer
6
+ * CodeBlockContent can be used as content inside the CodeBlockContainer.
7
7
  *
8
8
  */
9
9
  export declare const CodeBlockContent: React.ForwardRefExoticComponent<Omit<CodeBlockContentProps, "ref"> & React.RefAttributes<HTMLPreElement>>;
@@ -9,7 +9,7 @@ export interface CodeBlockHeaderProps extends BaseProps<'div'> {
9
9
  * @value 'spaceBetween' is recommended for two items in header.
10
10
  * @default 'start'
11
11
  */
12
- justify?: 'start' | 'spaceBetween' | 'end';
12
+ justify?: 'start' | 'space-between' | 'end';
13
13
  }
14
14
  /**
15
15
  * CodeBlockHeader can be used as header inside the CodeBlockContainer.
@@ -1,31 +1,2 @@
1
- import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface CopyToClipboardContainerProps extends BaseProps<'div'> {
4
- /**
5
- * @value 'tooltip' is used when you want to show the message inside a tooltip.
6
- * @value 'banner' is used when you want to show the message inside a banner.
7
- * @default 'tooltip'
8
- */
9
- variant?: 'tooltip' | 'banner';
10
- /**
11
- * tooltipAlign is optional.
12
- * tooltipAlign prop adds tooltip right or left and is used only if variant is tooltip.
13
- * @value 'right'
14
- * @value 'left'
15
- * @default 'right'
16
- */
17
- tooltipAlign?: 'right' | 'left';
18
- /**
19
- * dense is optional.
20
- * affects only the density of the tooltip.
21
- * @value true tooltip will be dense.
22
- * @value false
23
- * @default false
24
- * */
25
- dense?: boolean;
26
- }
27
- /**
28
- * CopyToClipboardContainer is a wrapper component for CopyToClipboardMessage
29
- */
30
- export declare const CopyToClipboardContainer: React.ForwardRefExoticComponent<Omit<CopyToClipboardContainerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
- export default CopyToClipboardContainer;
1
+ export * from '@digigov/react-core/CopyToClipboardContainer/index.web';
2
+ export { default as default } from '@digigov/react-core/CopyToClipboardContainer/index.web';
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface CopyToClipboardContainerProps extends BaseProps<'div'> {
4
+ /**
5
+ * @value 'tooltip' is used when you want to show the message inside a tooltip.
6
+ * @value 'banner' is used when you want to show the message inside a banner.
7
+ * @default 'tooltip'
8
+ */
9
+ variant?: 'tooltip' | 'banner';
10
+ /**
11
+ * tooltipAlign is optional.
12
+ * tooltipAlign prop adds tooltip right or left and is used only if variant is tooltip.
13
+ * @value 'right'
14
+ * @value 'left'
15
+ * @default 'right'
16
+ */
17
+ tooltipAlign?: 'right' | 'left';
18
+ /**
19
+ * dense is optional.
20
+ * affects only the density of the tooltip.
21
+ * @value true tooltip will be dense.
22
+ * @value false
23
+ * @default false
24
+ * */
25
+ dense?: boolean;
26
+ }
27
+ /**
28
+ * CopyToClipboardContainer is a wrapper component for CopyToClipboardMessage
29
+ */
30
+ export declare const CopyToClipboardContainer: React.ForwardRefExoticComponent<Omit<CopyToClipboardContainerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
+ export default CopyToClipboardContainer;
@@ -1,18 +1,2 @@
1
- import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface CopyToClipboardMessageProps extends BaseProps<'div'> {
4
- /**
5
- * enabled is a boolean prop passed from the CopyToClipboard component.
6
- * When it's true it shows the CopyToClipboardMessage component and it activates the animation that hides the component after 3s.
7
- * When it's false it resets the animations of the CopyToClipboardMessage.
8
- * @value true
9
- * @value false
10
- */
11
- enabled?: boolean;
12
- }
13
- /**
14
- * CopyToClipboardMessage is used to show a message that a text is being copied.
15
- * This component is used inside the CopyToClipboard component that lies inside the digigov/ui library
16
- */
17
- export declare const CopyToClipboardMessage: React.ForwardRefExoticComponent<Omit<CopyToClipboardMessageProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
- export default CopyToClipboardMessage;
1
+ export * from '@digigov/react-core/CopyToClipboardMessage/index.web';
2
+ export { default as default } from '@digigov/react-core/CopyToClipboardMessage/index.web';
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface CopyToClipboardMessageProps extends BaseProps<'div'> {
4
+ /**
5
+ * enabled is a boolean prop passed from the CopyToClipboard component.
6
+ * When it's true it shows the CopyToClipboardMessage component and it activates the animation that hides the component after 3s.
7
+ * When it's false it resets the animations of the CopyToClipboardMessage.
8
+ * @value true
9
+ * @value false
10
+ */
11
+ enabled?: boolean;
12
+ }
13
+ /**
14
+ * CopyToClipboardMessage is used to show a message that a text is being copied.
15
+ * This component is used inside the CopyToClipboard component that lies inside the digigov/ui library
16
+ */
17
+ export declare const CopyToClipboardMessage: React.ForwardRefExoticComponent<Omit<CopyToClipboardMessageProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
+ export default CopyToClipboardMessage;
@@ -1,26 +1,2 @@
1
- import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface DateInputItemProps extends BaseProps<'input'> {
4
- /**
5
- * Width property is optional.
6
- * Use this property for year field to grow width.
7
- * @value 2
8
- * @value 4
9
- * @default 2
10
- */
11
- width?: 2 | 4;
12
- /**
13
- * error is optional. The default value is false.
14
- * Use this prop when there is an error at the input.
15
- * @value true
16
- * @value false
17
- */
18
- error?: boolean;
19
- }
20
- /**
21
- * Details for the DateInputItem.
22
- * DateInputItem component is used for displaying date.
23
- * DateInputItem component must be included inside DateInput component as children component
24
- */
25
- export declare const DateInputItem: React.ForwardRefExoticComponent<Omit<DateInputItemProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
26
- export default DateInputItem;
1
+ export * from '@digigov/react-core/DateInputItem/index.web';
2
+ export { default as default } from '@digigov/react-core/DateInputItem/index.web';
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface DateInputItemProps extends BaseProps<'input'> {
4
+ /**
5
+ * Width property is optional.
6
+ * Use this property for year field to grow width.
7
+ * @value 2
8
+ * @value 4
9
+ * @default 2
10
+ */
11
+ width?: 2 | 4;
12
+ /**
13
+ * error is optional. The default value is false.
14
+ * Use this prop when there is an error at the input.
15
+ * @value true
16
+ * @value false
17
+ */
18
+ error?: boolean;
19
+ }
20
+ /**
21
+ * Details for the DateInputItem.
22
+ * DateInputItem component is used for displaying date.
23
+ * DateInputItem component must be included inside DateInput component as children component
24
+ */
25
+ export declare const DateInputItem: React.ForwardRefExoticComponent<Omit<DateInputItemProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
26
+ export default DateInputItem;
@@ -1,10 +1,2 @@
1
- import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface DetailsProps extends BaseProps<'details'> {
4
- }
5
- /**
6
- * Details is used to make a page easier to scan when it contains information that only some users will need.
7
- * Details component wraps DetailsSummary and DetailsContent as children components
8
- */
9
- export declare const Details: React.ForwardRefExoticComponent<Omit<DetailsProps, "ref"> & React.RefAttributes<HTMLDetailsElement>>;
10
- export default Details;
1
+ export * from "@digigov/react-core/Details/index.web";
2
+ export { default as default } from "@digigov/react-core/Details/index.web";
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface DetailsProps extends BaseProps<'details'> {
4
+ }
5
+ /**
6
+ * Details is used to make a page easier to scan when it contains information that only some users will need.
7
+ * Details component wraps DetailsSummary and DetailsContent as children components
8
+ */
9
+ export declare const Details: React.ForwardRefExoticComponent<Omit<DetailsProps, "ref"> & React.RefAttributes<HTMLDetailsElement>>;
10
+ export default Details;
@@ -1,10 +1,2 @@
1
- import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface NavListItemActionContainerProps extends BaseProps<'li'> {
4
- }
5
- /**
6
- * NavListItemActionContainer must be inside the NavList.
7
- * This component has a items of NavListItemLink component inside.
8
- */
9
- export declare const NavListItemActionContainer: React.ForwardRefExoticComponent<Omit<NavListItemActionContainerProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
10
- export default NavListItemActionContainer;
1
+ export * from '@digigov/react-core/NavListItemActionContainer/index.web';
2
+ export { default as default } from '@digigov/react-core/NavListItemActionContainer/index.web';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface NavListItemActionContainerProps extends BaseProps<'li'> {
4
+ }
5
+ /**
6
+ * NavListItemActionContainer must be inside the NavList.
7
+ * This component has a items of NavListItemLink component inside.
8
+ */
9
+ export declare const NavListItemActionContainer: React.ForwardRefExoticComponent<Omit<NavListItemActionContainerProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
10
+ export default NavListItemActionContainer;
@@ -1,11 +1,2 @@
1
- import React from 'react';
2
- import { LinkBaseProps } from '@digigov/react-core/LinkBase';
3
- export interface NotificationBannerLinkProps extends LinkBaseProps {
4
- }
5
- /**
6
- * Details for the NotificationBannerLink.
7
- * NotificationBannerLink allow users to click their way from page to page.
8
- * NotificationBannerLink must be wrapped inside NotificationContent component as children
9
- */
10
- export declare const NotificationBannerLink: React.ForwardRefExoticComponent<Omit<NotificationBannerLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
11
- export default NotificationBannerLink;
1
+ export * from '@digigov/react-core/NotificationBannerLink/index.web';
2
+ export { default as default } from '@digigov/react-core/NotificationBannerLink/index.web';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { LinkBaseProps } from '@digigov/react-core/LinkBase';
3
+ export interface NotificationBannerLinkProps extends LinkBaseProps {
4
+ }
5
+ /**
6
+ * Details for the NotificationBannerLink.
7
+ * NotificationBannerLink allow users to click their way from page to page.
8
+ * NotificationBannerLink must be wrapped inside NotificationContent component as children
9
+ */
10
+ export declare const NotificationBannerLink: React.ForwardRefExoticComponent<Omit<NotificationBannerLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
11
+ export default NotificationBannerLink;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { BaseProps } from '@digigov/react-core/Base';
3
- export interface PhaseBannerTagProps extends BaseProps<'strong'> {
3
+ export interface PhaseBannerTagProps extends BaseProps<'span'> {
4
4
  }
5
5
  /**
6
6
  * PhaseBannerTag is used inside the PhaseBanner component and it requires a text of the phase of the service (ex. Alpha, Beta).
7
7
  */
8
- export declare const PhaseBannerTag: React.ForwardRefExoticComponent<Omit<PhaseBannerTagProps, "ref"> & React.RefAttributes<HTMLElement>>;
8
+ export declare const PhaseBannerTag: React.ForwardRefExoticComponent<Omit<PhaseBannerTagProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
9
9
  export default PhaseBannerTag;
@@ -21,7 +21,7 @@ export interface SummaryListProps extends BaseProps<'dl'> {
21
21
  noLastBorder?: boolean;
22
22
  }
23
23
  /**
24
- * SummaryList used as a table with summary informations.
24
+ * SummaryList used as a table with summary information.
25
25
  * It must contain a list of SummaryListItem components.
26
26
  */
27
27
  export declare const SummaryList: React.ForwardRefExoticComponent<Omit<SummaryListProps, "ref"> & React.RefAttributes<HTMLDListElement>>;
@@ -1,7 +1,21 @@
1
1
  import React from 'react';
2
2
  import { BaseProps } from '@digigov/react-core/Base';
3
3
  export interface SummaryListItemKeyProps extends BaseProps<'dt'> {
4
+ /**
5
+ * sm shows the width of the key column for small screens.
6
+ * @default 3
7
+ */
8
+ sm?: WidthValues;
9
+ /**
10
+ * md shows the width of the key column for medium screens.
11
+ */
12
+ md?: WidthValues;
13
+ /**
14
+ * lg shows the width of the key column for large screens.
15
+ */
16
+ lg?: WidthValues;
4
17
  }
18
+ export type WidthValues = 3 | 4 | 5 | 6 | 7 | 8 | 9;
5
19
  /**
6
20
  * SummaryListItemKey is used within the SummaryListItem component.
7
21
  * In this column we place the key information for the row (ex. "Name", "Address", etc).
@@ -1,24 +1,2 @@
1
- import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface TextAreaProps extends BaseProps<'textarea'> {
4
- /**
5
- * error is optional. The default value is false.
6
- * Use this prop when there is an error at the input.
7
- * @value true
8
- * @value false
9
- */
10
- error?: boolean;
11
- /**
12
- * dense is optional.
13
- * @value true TextArea will be dense.
14
- * @value false
15
- * @default false
16
- */
17
- dense?: boolean;
18
- }
19
- /**
20
- * Textarea component is used when you need to let users enter an
21
- * amount of text that’s longer than a single line.
22
- */
23
- export declare const TextArea: React.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
24
- export default TextArea;
1
+ export * from '@digigov/react-core/TextArea/index.web';
2
+ export { default as default } from '@digigov/react-core/TextArea/index.web';
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface TextAreaProps extends BaseProps<'textarea'> {
4
+ /**
5
+ * error is optional. The default value is false.
6
+ * Use this prop when there is an error at the input.
7
+ * @value true
8
+ * @value false
9
+ */
10
+ error?: boolean;
11
+ /**
12
+ * dense is optional.
13
+ * @value true TextArea will be dense.
14
+ * @value false
15
+ * @default false
16
+ */
17
+ dense?: boolean;
18
+ }
19
+ /**
20
+ * Textarea component is used when you need to let users enter an
21
+ * amount of text that’s longer than a single line.
22
+ */
23
+ export declare const TextArea: React.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
24
+ export default TextArea;
@@ -1,46 +1,2 @@
1
- import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface TextInputProps extends BaseProps<'input'> {
4
- /**
5
- * maxWidth is optional.
6
- * @value '2-char';
7
- * @value '3-char';
8
- * @value '4-char';
9
- * @value '5-char';
10
- * @value '10-char';
11
- * @value '20-char';
12
- */
13
- maxWidth?: '2-char' | '3-char' | '4-char' | '5-char' | '10-char' | '20-char';
14
- /**
15
- * width is optional.
16
- * Use width prop to define a custom width in your component.
17
- * @value '25%';
18
- * @value '33.3%';
19
- * @value '50%';
20
- * @value '66.6%';
21
- * @value '75%';
22
- * @value '100%';
23
- * @value 'full';
24
- */
25
- width?: '25%' | '33.3%' | '50%' | '66.6%' | '75%' | '100%' | 'full';
26
- /**
27
- * error is optional. The default value is false.
28
- * Use this prop when there is an error at the input.
29
- * @value true
30
- * @value false
31
- */
32
- error?: boolean;
33
- /**
34
- * dense is optional.
35
- * @value true TextInput will be dense.
36
- * @value false
37
- * @default false
38
- */
39
- dense?: boolean;
40
- }
41
- /**
42
- * TextInput component when you need to let users enter text that’s no
43
- * longer than a single line, such as their name or phone number.
44
- */
45
- export declare const TextInput: React.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
46
- export default TextInput;
1
+ export * from '@digigov/react-core/TextInput/index.web';
2
+ export { default as default } from '@digigov/react-core/TextInput/index.web';
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface TextInputProps extends BaseProps<'input'> {
4
+ /**
5
+ * maxWidth is optional.
6
+ * @value '2-char';
7
+ * @value '3-char';
8
+ * @value '4-char';
9
+ * @value '5-char';
10
+ * @value '10-char';
11
+ * @value '20-char';
12
+ */
13
+ maxWidth?: '2-char' | '3-char' | '4-char' | '5-char' | '10-char' | '20-char';
14
+ /**
15
+ * width is optional.
16
+ * Use width prop to define a custom width in your component.
17
+ * @value '25%';
18
+ * @value '33.3%';
19
+ * @value '50%';
20
+ * @value '66.6%';
21
+ * @value '75%';
22
+ * @value '100%';
23
+ * @value 'full';
24
+ */
25
+ width?: '25%' | '33.3%' | '50%' | '66.6%' | '75%' | '100%' | 'full';
26
+ /**
27
+ * error is optional. The default value is false.
28
+ * Use this prop when there is an error at the input.
29
+ * @value true
30
+ * @value false
31
+ */
32
+ error?: boolean;
33
+ /**
34
+ * dense is optional.
35
+ * @value true TextInput will be dense.
36
+ * @value false
37
+ * @default false
38
+ */
39
+ dense?: boolean;
40
+ }
41
+ /**
42
+ * TextInput component when you need to let users enter text that’s no
43
+ * longer than a single line, such as their name or phone number.
44
+ */
45
+ export declare const TextInput: React.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
46
+ export default TextInput;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { BaseProps } from "@digigov/react-core/Base";
3
+ export interface WarningTextAssistiveProps extends BaseProps<"span"> {
4
+ /**
5
+ * assistiveText is optional.
6
+ * Default value is "Προσοχή".
7
+ * assistiveText is used to provide a textual warning for assistive technologies like screen readers.
8
+ */
9
+ assistiveText?: string;
10
+ }
11
+ /**
12
+ * Use the WarningTextAssistive component when you need to warn users about something important.
13
+ */
14
+ export declare const WarningTextAssistive: React.ForwardRefExoticComponent<Omit<WarningTextAssistiveProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
15
+ export default WarningTextAssistive;
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@digigov/react-experimental",
3
- "version": "2.0.0-6c42d5eb",
3
+ "version": "2.0.0-6e3977bc",
4
4
  "description": "@digigov react experimental components",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
7
7
  "main": "./cjs/index.js",
8
8
  "module": "./index.js",
9
9
  "peerDependencies": {
10
- "@digigov/css": "2.0.0-6c42d5eb",
11
- "@digigov/react-icons": "2.0.0-6c42d5eb",
12
- "@digigov/ui": "2.0.0-6c42d5eb",
13
- "@digigov/react-core": "2.0.0-6c42d5eb",
10
+ "@digigov/css": "2.0.0-6e3977bc",
11
+ "@digigov/react-icons": "2.0.0-6e3977bc",
12
+ "@digigov/ui": "2.0.0-6e3977bc",
13
+ "@digigov/react-core": "2.0.0-6e3977bc",
14
14
  "clsx": "1.1.1",
15
15
  "react": ">=16.8.0 <19.0.0",
16
16
  "react-dom": ">=16.8.0 <19.0.0"
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const RowVariations: () => React.JSX.Element;
3
- export default RowVariations;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const WithActions: () => React.JSX.Element;
3
- export default WithActions;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const WithKeyAndAction: () => React.JSX.Element;
3
- export default WithKeyAndAction;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const WithNoLastBorder: () => React.JSX.Element;
3
- export default WithNoLastBorder;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const WithoutActions: () => React.JSX.Element;
3
- export default WithoutActions;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const WithoutBorders: () => React.JSX.Element;
3
- export default WithoutBorders;