@digigov/react-experimental 2.0.0-2445d5cb → 2.0.0-36b707c1

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 (119) 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 +2 -3
  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/{patterns/FilteredResults → content/SafeHTML}/__stories__/Default.d.ts +1 -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/index.d.ts +0 -1
  19. package/libs/ui/src/navigation/Drawer/index.d.ts +0 -1
  20. package/libs/ui/src/navigation/Pagination/auto.d.ts +2 -2
  21. package/libs/ui/src/navigation/Pagination/index.d.ts +0 -1
  22. package/libs/ui/src/navigation/Tabs/index.d.ts +0 -1
  23. package/libs/ui/src/registry.d.ts +5 -9
  24. package/libs/ui/src/typography/CodeBlock/index.d.ts +4 -4
  25. package/libs/ui/src/utils/Base/index.d.ts +1 -0
  26. package/libs/ui/src/utils/hooks/useDebounce.d.ts +1 -1
  27. package/libs/ui/src/utils/hooks/useKeypress.d.ts +1 -1
  28. package/libs-ui/react-core/src/Base/index.d.ts +2 -95
  29. package/libs-ui/react-core/src/Base/index.web.d.ts +104 -0
  30. package/libs-ui/react-core/src/Base/utils.d.ts +41 -0
  31. package/libs-ui/react-core/src/CheckboxItemInput/index.d.ts +2 -0
  32. package/libs-ui/react-core/src/CheckboxItemInput/index.web.d.ts +10 -0
  33. package/libs-ui/react-core/src/CodeBlockContainer/index.d.ts +1 -1
  34. package/libs-ui/react-core/src/CodeBlockContent/index.d.ts +1 -1
  35. package/libs-ui/react-core/src/CodeBlockHeader/index.d.ts +1 -1
  36. package/libs-ui/react-core/src/CopyToClipboardContainer/index.d.ts +2 -31
  37. package/libs-ui/react-core/src/CopyToClipboardContainer/index.web.d.ts +31 -0
  38. package/libs-ui/react-core/src/CopyToClipboardMessage/index.d.ts +2 -18
  39. package/libs-ui/react-core/src/CopyToClipboardMessage/index.web.d.ts +18 -0
  40. package/libs-ui/react-core/src/DateInputItem/index.d.ts +2 -26
  41. package/libs-ui/react-core/src/DateInputItem/index.web.d.ts +26 -0
  42. package/libs-ui/react-core/src/Details/index.d.ts +2 -10
  43. package/libs-ui/react-core/src/Details/index.web.d.ts +10 -0
  44. package/libs-ui/react-core/src/NavListItemActionContainer/index.d.ts +2 -10
  45. package/libs-ui/react-core/src/NavListItemActionContainer/index.web.d.ts +10 -0
  46. package/libs-ui/react-core/src/NotificationBannerLink/index.d.ts +2 -11
  47. package/libs-ui/react-core/src/NotificationBannerLink/index.web.d.ts +11 -0
  48. package/libs-ui/react-core/src/PhaseBannerTag/index.d.ts +2 -2
  49. package/libs-ui/react-core/src/Stack/index.d.ts +9 -1
  50. package/libs-ui/react-core/src/SummaryList/index.d.ts +1 -1
  51. package/libs-ui/react-core/src/SummaryListItemKey/index.d.ts +14 -0
  52. package/libs-ui/react-core/src/TextArea/index.d.ts +2 -24
  53. package/libs-ui/react-core/src/TextArea/index.web.d.ts +24 -0
  54. package/libs-ui/react-core/src/TextInput/index.d.ts +2 -46
  55. package/libs-ui/react-core/src/TextInput/index.web.d.ts +46 -0
  56. package/libs-ui/react-core/src/WarningTextAssistive/index.d.ts +15 -0
  57. package/package.json +5 -5
  58. package/libs/form/src/Field/FieldBase.d.ts +0 -3
  59. package/libs/form/src/Field/FieldBaseContainer.d.ts +0 -4
  60. package/libs/form/src/Field/FieldConditional.d.ts +0 -4
  61. package/libs/form/src/Field/index.d.ts +0 -4
  62. package/libs/form/src/Field/types.d.ts +0 -119
  63. package/libs/form/src/Field/utils/calculateField.d.ts +0 -2
  64. package/libs/form/src/Field/utils/evaluateFieldWithConditions.d.ts +0 -2
  65. package/libs/form/src/Field/utils/index.d.ts +0 -3
  66. package/libs/form/src/Field/utils/useField.d.ts +0 -2
  67. package/libs/form/src/FieldArray/index.d.ts +0 -11
  68. package/libs/form/src/FieldObject/index.d.ts +0 -23
  69. package/libs/form/src/Fieldset/index.d.ts +0 -8
  70. package/libs/form/src/Fieldset/types.d.ts +0 -10
  71. package/libs/form/src/FormBuilder/index.d.ts +0 -3
  72. package/libs/form/src/FormContext.d.ts +0 -3
  73. package/libs/form/src/MultiplicityField/add-objects.d.ts +0 -14
  74. package/libs/form/src/MultiplicityField/index.d.ts +0 -15
  75. package/libs/form/src/MultiplicityField/types.d.ts +0 -19
  76. package/libs/form/src/index.d.ts +0 -9
  77. package/libs/form/src/inputs/AutoCompleteInput/index.d.ts +0 -14
  78. package/libs/form/src/inputs/Checkboxes/index.d.ts +0 -13
  79. package/libs/form/src/inputs/DateInput/index.d.ts +0 -14
  80. package/libs/form/src/inputs/FileInput/index.d.ts +0 -14
  81. package/libs/form/src/inputs/ImageInput/index.d.ts +0 -25
  82. package/libs/form/src/inputs/Input/index.d.ts +0 -16
  83. package/libs/form/src/inputs/Label/index.d.ts +0 -21
  84. package/libs/form/src/inputs/OtpInput/index.d.ts +0 -16
  85. package/libs/form/src/inputs/Radio/index.d.ts +0 -13
  86. package/libs/form/src/inputs/Select/index.d.ts +0 -11
  87. package/libs/form/src/internal.d.ts +0 -5
  88. package/libs/form/src/types.d.ts +0 -55
  89. package/libs/form/src/utils.d.ts +0 -8
  90. package/libs/form/src/validators/index.d.ts +0 -9
  91. package/libs/form/src/validators/types.d.ts +0 -2
  92. package/libs/form/src/validators/utils/afm.d.ts +0 -6
  93. package/libs/form/src/validators/utils/file.d.ts +0 -3
  94. package/libs/form/src/validators/utils/iban.d.ts +0 -4
  95. package/libs/form/src/validators/utils/image.d.ts +0 -3
  96. package/libs/form/src/validators/utils/index.d.ts +0 -27
  97. package/libs/form/src/validators/utils/int.d.ts +0 -3
  98. package/libs/form/src/validators/utils/number.d.ts +0 -3
  99. package/libs/form/src/validators/utils/otp.d.ts +0 -4
  100. package/libs/form/src/validators/utils/phone.d.ts +0 -11
  101. package/libs/form/src/validators/utils/postal_code.d.ts +0 -4
  102. package/libs/form/src/validators/utils/text_limit.d.ts +0 -4
  103. package/libs/form/src/validators/utils/uuid4.d.ts +0 -6
  104. package/libs/ui/src/content/SummaryList/__stories__/RowVariations.d.ts +0 -3
  105. package/libs/ui/src/content/SummaryList/__stories__/WithActions.d.ts +0 -3
  106. package/libs/ui/src/content/SummaryList/__stories__/WithKeyAndAction.d.ts +0 -3
  107. package/libs/ui/src/content/SummaryList/__stories__/WithNoLastBorder.d.ts +0 -3
  108. package/libs/ui/src/content/SummaryList/__stories__/WithoutActions.d.ts +0 -3
  109. package/libs/ui/src/content/SummaryList/__stories__/WithoutBorders.d.ts +0 -3
  110. package/libs/ui/src/patterns/FilteredResults/DataTable.d.ts +0 -5
  111. package/libs/ui/src/patterns/FilteredResults/FilterChips.d.ts +0 -3
  112. package/libs/ui/src/patterns/FilteredResults/FilterFields.d.ts +0 -5
  113. package/libs/ui/src/patterns/FilteredResults/FilteredResults.stories.d.ts +0 -8
  114. package/libs/ui/src/patterns/FilteredResults/hooks.d.ts +0 -22
  115. package/libs/ui/src/patterns/FilteredResults/index.d.ts +0 -25
  116. package/libs/ui/src/patterns/index.d.ts +0 -1
  117. package/libs-ui/react-core/src/index.d.ts +0 -218
  118. /package/libs/ui/src/app/Modal/{Modal.d.ts → index.web.d.ts} +0 -0
  119. /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-2445d5cb
1
+ /** @license Digigov v2.0.0-36b707c1
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
- export * from '@digigov/ui/app/Modal/Modal';
9
- import Modal from '@digigov/ui/app/Modal/Modal';
7
+ export * from '@digigov/ui/app/Modal/index.web';
8
+ import Modal from '@digigov/ui/app/Modal/index.web';
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';
@@ -1,2 +1,3 @@
1
1
  import React from 'react';
2
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;
@@ -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';
@@ -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;
@@ -32,7 +32,7 @@ declare const _default: {
32
32
  '@digigov/ui/app/Modal/auto': {};
33
33
  '@digigov/ui/app/Modal/hooks': {};
34
34
  '@digigov/ui/app/Modal': {};
35
- '@digigov/ui/app/Modal/Modal': {};
35
+ '@digigov/ui/app/Modal/index.web': {};
36
36
  '@digigov/ui/app/NotFound': {};
37
37
  '@digigov/ui/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion': {};
38
38
  '@digigov/ui/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck': {};
@@ -163,12 +163,6 @@ declare const _default: {
163
163
  '@digigov/ui/navigation/Tabs/auto': {};
164
164
  '@digigov/ui/navigation/Tabs/hooks': {};
165
165
  '@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
166
  '@digigov/ui/typography/Code': {};
173
167
  '@digigov/ui/typography/CodeBlock': {};
174
168
  '@digigov/ui/typography/Heading': {};
@@ -212,6 +206,8 @@ export const stories: {
212
206
  '@digigov/ui/content/Chip/Chip.stories': typeof _digigov_ui_content_Chip_Chip_stories;
213
207
  '@digigov/ui/content/Details/Details.stories': typeof _digigov_ui_content_Details_Details_stories;
214
208
  '@digigov/ui/content/List/List.stories': typeof _digigov_ui_content_List_List_stories;
209
+ '@digigov/ui/content/Markdown/Markdown.stories': typeof _digigov_ui_content_Markdown_Markdown_stories;
210
+ '@digigov/ui/content/SafeHTML/SafeHTML.stories': typeof _digigov_ui_content_SafeHTML_SafeHTML_stories;
215
211
  '@digigov/ui/content/StepNav/StepNav.stories': typeof _digigov_ui_content_StepNav_StepNav_stories;
216
212
  '@digigov/ui/content/SummaryList/SummaryList.stories': typeof _digigov_ui_content_SummaryList_SummaryList_stories;
217
213
  '@digigov/ui/content/Table/Table.stories': typeof _digigov_ui_content_Table_Table_stories;
@@ -247,7 +243,6 @@ export const stories: {
247
243
  '@digigov/ui/navigation/Pagination/Pagination.stories': typeof _digigov_ui_navigation_Pagination_Pagination_stories;
248
244
  '@digigov/ui/navigation/SkipLink/SkipLink.stories': typeof _digigov_ui_navigation_SkipLink_SkipLink_stories;
249
245
  '@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
246
  '@digigov/ui/typography/CodeBlock/CodeBlock.stories': typeof _digigov_ui_typography_CodeBlock_CodeBlock_stories;
252
247
  '@digigov/ui/typography/Heading/Heading.stories': typeof _digigov_ui_typography_Heading_Heading_stories;
253
248
  '@digigov/ui/typography/HeadingCaption/HeadingCaption.stories': typeof _digigov_ui_typography_HeadingCaption_HeadingCaption_stories;
@@ -274,6 +269,8 @@ import * as _digigov_ui_content_Card_Card_stories from '@digigov/ui/content/Card
274
269
  import * as _digigov_ui_content_Chip_Chip_stories from '@digigov/ui/content/Chip/Chip.stories';
275
270
  import * as _digigov_ui_content_Details_Details_stories from '@digigov/ui/content/Details/Details.stories';
276
271
  import * as _digigov_ui_content_List_List_stories from '@digigov/ui/content/List/List.stories';
272
+ import * as _digigov_ui_content_Markdown_Markdown_stories from '@digigov/ui/content/Markdown/Markdown.stories';
273
+ import * as _digigov_ui_content_SafeHTML_SafeHTML_stories from '@digigov/ui/content/SafeHTML/SafeHTML.stories';
277
274
  import * as _digigov_ui_content_StepNav_StepNav_stories from '@digigov/ui/content/StepNav/StepNav.stories';
278
275
  import * as _digigov_ui_content_SummaryList_SummaryList_stories from '@digigov/ui/content/SummaryList/SummaryList.stories';
279
276
  import * as _digigov_ui_content_Table_Table_stories from '@digigov/ui/content/Table/Table.stories';
@@ -309,7 +306,6 @@ import * as _digigov_ui_navigation_NavList_NavList_stories from '@digigov/ui/nav
309
306
  import * as _digigov_ui_navigation_Pagination_Pagination_stories from '@digigov/ui/navigation/Pagination/Pagination.stories';
310
307
  import * as _digigov_ui_navigation_SkipLink_SkipLink_stories from '@digigov/ui/navigation/SkipLink/SkipLink.stories';
311
308
  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
309
  import * as _digigov_ui_typography_CodeBlock_CodeBlock_stories from '@digigov/ui/typography/CodeBlock/CodeBlock.stories';
314
310
  import * as _digigov_ui_typography_Heading_Heading_stories from '@digigov/ui/typography/Heading/Heading.stories';
315
311
  import * as _digigov_ui_typography_HeadingCaption_HeadingCaption_stories from '@digigov/ui/typography/HeadingCaption/HeadingCaption.stories';
@@ -1,10 +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?: 'javascript' | 'bash' | 'xml' | 'python' | 'markdown';
5
- copyToClipboard?: true | false;
6
- highlighted?: true | false;
7
- showLineNumbers?: true | false;
4
+ language?: 'javascript' | 'bash' | 'xml' | 'python' | 'markdown' | 'json';
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,104 @@
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 | SpacingMediaValues;
16
+ /** marginTop is optional. It has not a default value. */
17
+ marginTop?: SpacingValues | SpacingMediaValues;
18
+ /** marginBottom is optional. It has not a default value. */
19
+ marginBottom?: SpacingValues | SpacingMediaValues;
20
+ /** marginLeft is optional. It has not a default value. */
21
+ marginLeft?: SpacingValues | SpacingMediaValues;
22
+ /** marginRight is optional. It has not a default value. */
23
+ marginRight?: SpacingValues | SpacingMediaValues;
24
+ /** Alternative for margin. Margin is optional. It has not a default value. */
25
+ m?: SpacingValues | SpacingMediaValues;
26
+ /** Alternative for marginTop. MarginTop is optional. It has not a default value. */
27
+ mt?: SpacingValues | SpacingMediaValues;
28
+ /** Alternative for marginBottom. MarginBottom is optional. It has not a default value. */
29
+ mb?: SpacingValues | SpacingMediaValues;
30
+ /** Alternative for marginLeft. MarginLeft is optional. It has not a default value. */
31
+ ml?: SpacingValues | SpacingMediaValues;
32
+ /** Alternative for marginRight. MarginRight is optional. It has not a default value. */
33
+ mr?: SpacingValues | SpacingMediaValues;
34
+ /** Alternative for marginX. MarginX is optional. It has not a default value. */
35
+ mx?: SpacingValues | SpacingMediaValues;
36
+ /** Alternative for marginY. MarginY is optional. It has not a default value. */
37
+ my?: SpacingValues | SpacingMediaValues;
38
+ /** padding is optional. It has not a default value. */
39
+ padding?: SpacingValues | SpacingMediaValues;
40
+ /** paddingTop is optional. It has not a default value. */
41
+ paddingTop?: SpacingValues | SpacingMediaValues;
42
+ /** paddingBottom is optional. It has not a default value. */
43
+ paddingBottom?: SpacingValues | SpacingMediaValues;
44
+ /** paddingLeft is optional. It has not a default value. */
45
+ paddingLeft?: SpacingValues | SpacingMediaValues;
46
+ /** paddingRight is optional. It has not a default value. */
47
+ paddingRight?: SpacingValues | SpacingMediaValues;
48
+ /** Alternative for padding. Padding is optional. It has not a default value. */
49
+ p?: SpacingValues | SpacingMediaValues;
50
+ /** Alternative for paddingTop. PaddingTop is optional. It has not a default value. */
51
+ pt?: SpacingValues | SpacingMediaValues;
52
+ /** Alternative for paddingBottom. PaddingBottom is optional. It has not a default value. */
53
+ pb?: SpacingValues | SpacingMediaValues;
54
+ /** Alternative for paddingLeft. PaddingLeft is optional. It has not a default value. */
55
+ pl?: SpacingValues | SpacingMediaValues;
56
+ /** Alternative for paddingRight. PaddingRight is optional. It has not a default value. */
57
+ pr?: SpacingValues | SpacingMediaValues;
58
+ /** Alternative for paddingX. PaddingX is optional. It has not a default value. */
59
+ px?: SpacingValues | SpacingMediaValues;
60
+ /** Alternative for paddingY. PaddingY is optional. It has not a default value. */
61
+ py?: SpacingValues | SpacingMediaValues;
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
+ export 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
+ export type SpacingMediaValues = {
93
+ xs?: SpacingValues;
94
+ sm?: SpacingValues;
95
+ md?: SpacingValues;
96
+ lg?: SpacingValues;
97
+ xl?: SpacingValues;
98
+ };
99
+ /**
100
+ * This is the type used in the type annotation for the component
101
+ */
102
+ type BaseComponent = <C extends React.ElementType = 'span'>(props: BaseProps<C>) => React.ReactNode | null;
103
+ export declare const Base: BaseComponent;
104
+ 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.