@nypl/design-system-react-components 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +466 -17
- package/dist/design-system-react-components.cjs +528 -0
- package/dist/design-system-react-components.js +37569 -0
- package/dist/src/components/Accordion/Accordion.d.ts +29 -0
- package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +23 -0
- package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +43 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +24 -0
- package/dist/src/components/Button/Button.d.ts +35 -0
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +25 -0
- package/dist/src/components/Card/Card.d.ts +55 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +47 -0
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +51 -0
- package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +31 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +82 -0
- package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +64 -0
- package/dist/src/components/FeedbackBox/useFeedbackBoxReducer.d.ts +19 -0
- package/dist/src/components/Fieldset/Fieldset.d.ts +24 -0
- package/dist/src/components/Form/Form.d.ts +31 -0
- package/dist/src/components/Grid/SimpleGrid.d.ts +20 -0
- package/dist/src/components/Heading/Heading.d.ts +42 -0
- package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +34 -0
- package/dist/src/components/Hero/Hero.d.ts +49 -0
- package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +11 -0
- package/dist/src/components/Icons/Icon.d.ts +41 -0
- package/dist/src/components/Icons/IconSvgs.d.ts +196 -0
- package/dist/src/components/Icons/iconVariables.d.ts +6 -0
- package/dist/src/components/Image/Image.d.ts +68 -0
- package/dist/src/components/Label/Label.d.ts +25 -0
- package/dist/src/components/Link/Link.d.ts +32 -0
- package/dist/src/components/List/List.d.ts +43 -0
- package/dist/src/components/Logo/Logo.d.ts +29 -0
- package/dist/src/components/Logo/LogoSvgs.d.ts +166 -0
- package/dist/src/components/Logo/logoVariables.d.ts +2 -0
- package/dist/src/components/Modal/Modal.d.ts +35 -0
- package/dist/src/components/Notification/Notification.d.ts +52 -0
- package/dist/src/components/Pagination/Pagination.d.ts +27 -0
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +32 -0
- package/dist/src/components/Radio/Radio.d.ts +43 -0
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +51 -0
- package/dist/src/components/SearchBar/SearchBar.d.ts +58 -0
- package/dist/src/components/Select/Select.d.ts +59 -0
- package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +42 -0
- package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +19 -0
- package/dist/src/components/Slider/Slider.d.ts +65 -0
- package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +42 -0
- package/dist/src/components/SocialMediaLinks/SocialMediaLinksUtils.d.ts +7 -0
- package/dist/src/components/StatusBadge/StatusBadge.d.ts +19 -0
- package/dist/src/components/StructuredContent/StructuredContent.d.ts +30 -0
- package/dist/src/components/StyleGuide/ColorCard.d.ts +348 -0
- package/dist/src/components/StyledList/StyledList.d.ts +26 -0
- package/dist/src/components/Table/Table.d.ts +32 -0
- package/dist/src/components/Tabs/Tabs.d.ts +28 -0
- package/dist/src/components/TagSet/TagSet.d.ts +24 -0
- package/dist/src/components/TagSet/TagSetExplore.d.ts +28 -0
- package/dist/src/components/TagSet/TagSetFilter.d.ts +25 -0
- package/dist/src/components/TagSet/TooltipWrapper.d.ts +9 -0
- package/dist/src/components/Template/Template.d.ts +140 -0
- package/dist/src/components/Text/Text.d.ts +27 -0
- package/dist/src/components/TextInput/TextInput.d.ts +89 -0
- package/dist/src/components/Toggle/Toggle.d.ts +43 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +17 -0
- package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +42 -0
- package/dist/src/helpers/types.d.ts +2 -0
- package/dist/src/hooks/useCarouselStyles.d.ts +17 -0
- package/dist/src/hooks/useCloseDropDown.d.ts +7 -0
- package/dist/src/hooks/useNYPLBreakpoints.d.ts +13 -0
- package/dist/src/hooks/useNYPLTheme.d.ts +75 -0
- package/dist/src/hooks/useStateWithDependencies.d.ts +5 -0
- package/dist/src/hooks/useWindowSize.d.ts +10 -0
- package/dist/src/index.d.ts +83 -0
- package/dist/src/theme/components/accordion.d.ts +34 -0
- package/dist/src/theme/components/alphabetFilter.d.ts +40 -0
- package/dist/src/theme/components/audioPlayer.d.ts +16 -0
- package/dist/src/theme/components/breadcrumb.d.ts +158 -0
- package/dist/src/theme/components/button.d.ts +152 -0
- package/dist/src/theme/components/buttonGroup.d.ts +11 -0
- package/dist/src/theme/components/card.d.ts +485 -0
- package/dist/src/theme/components/checkbox.d.ts +178 -0
- package/dist/src/theme/components/checkboxGroup.d.ts +14 -0
- package/dist/src/theme/components/componentWrapper.d.ts +12 -0
- package/dist/src/theme/components/customTable.d.ts +739 -0
- package/dist/src/theme/components/datePicker.d.ts +17 -0
- package/dist/src/theme/components/feedbackBox.d.ts +100 -0
- package/dist/src/theme/components/fieldset.d.ts +24 -0
- package/dist/src/theme/components/filterBar.d.ts +46 -0
- package/dist/src/theme/components/global.d.ts +141 -0
- package/dist/src/theme/components/globalMixins.d.ts +40 -0
- package/dist/src/theme/components/heading.d.ts +372 -0
- package/dist/src/theme/components/helperErrorText.d.ts +18 -0
- package/dist/src/theme/components/hero.d.ts +639 -0
- package/dist/src/theme/components/horizontalRule.d.ts +18 -0
- package/dist/src/theme/components/icon.d.ts +62251 -0
- package/dist/src/theme/components/image.d.ts +754 -0
- package/dist/src/theme/components/label.d.ts +22 -0
- package/dist/src/theme/components/link.d.ts +152 -0
- package/dist/src/theme/components/list.d.ts +230 -0
- package/dist/src/theme/components/logo.d.ts +477 -0
- package/dist/src/theme/components/modal.d.ts +27 -0
- package/dist/src/theme/components/multiSelect.d.ts +29 -0
- package/dist/src/theme/components/multiSelectMenuButton.d.ts +99 -0
- package/dist/src/theme/components/notification.d.ts +137 -0
- package/dist/src/theme/components/pagination.d.ts +19 -0
- package/dist/src/theme/components/progressIndicator.d.ts +69 -0
- package/dist/src/theme/components/radio.d.ts +202 -0
- package/dist/src/theme/components/radioGroup.d.ts +14 -0
- package/dist/src/theme/components/searchBar.d.ts +34 -0
- package/dist/src/theme/components/select.d.ts +126 -0
- package/dist/src/theme/components/skeletonLoader.d.ts +105 -0
- package/dist/src/theme/components/skipNavigation.d.ts +28 -0
- package/dist/src/theme/components/slider.d.ts +78 -0
- package/dist/src/theme/components/socialmedialinks.d.ts +192 -0
- package/dist/src/theme/components/statusBadge.d.ts +37 -0
- package/dist/src/theme/components/structuredContent.d.ts +454 -0
- package/dist/src/theme/components/styledList.d.ts +51 -0
- package/dist/src/theme/components/tabs.d.ts +172 -0
- package/dist/src/theme/components/tagSet.d.ts +154 -0
- package/dist/src/theme/components/template.d.ts +98 -0
- package/dist/src/theme/components/text.d.ts +59 -0
- package/dist/src/theme/components/textInput.d.ts +360 -0
- package/dist/src/theme/components/toggle.d.ts +129 -0
- package/dist/src/theme/components/tooltip.d.ts +21 -0
- package/dist/src/theme/components/videoPlayer.d.ts +47 -0
- package/dist/src/theme/foundations/breakpoints.d.ts +23 -0
- package/dist/src/theme/foundations/colors.d.ts +3 -0
- package/dist/src/theme/foundations/global.d.ts +68 -0
- package/dist/src/theme/foundations/radii.d.ts +11 -0
- package/dist/src/theme/foundations/shadows.d.ts +4 -0
- package/dist/src/theme/foundations/spacing.d.ts +96 -0
- package/dist/src/theme/foundations/typography.d.ts +8 -0
- package/dist/src/theme/index.d.ts +20 -0
- package/dist/src/theme/internalChakraProvider.d.ts +67 -0
- package/dist/src/theme/provider.d.ts +4 -0
- package/dist/src/theme/types.d.ts +1 -0
- package/dist/src/utils/colorUtils.d.ts +5 -0
- package/dist/src/utils/interfaces.d.ts +5 -0
- package/dist/src/utils/utils.d.ts +41 -0
- package/dist/styles.css +1 -0
- package/package.json +129 -24
- package/CHANGELOG.md +0 -139
- package/dist/design-system-react-components.min.js +0 -23
- package/dist/design-system-react-components.min.js.map +0 -1
- package/lib/components/00-base/Container/Container.d.ts +0 -6
- package/lib/components/00-base/Container/Container.js +0 -19
- package/lib/components/00-base/Container/Modal.d.ts +0 -12
- package/lib/components/00-base/Container/Modal.js +0 -29
- package/lib/components/00-base/Container/Modal.stories.d.ts +0 -7
- package/lib/components/00-base/Container/Modal.stories.js +0 -20
- package/lib/components/00-base/Placeholder.d.ts +0 -10
- package/lib/components/00-base/Placeholder.js +0 -23
- package/lib/components/00-base/SectionName.d.ts +0 -4
- package/lib/components/00-base/SectionName.js +0 -16
- package/lib/components/01-atoms/Button/Button.d.ts +0 -52
- package/lib/components/01-atoms/Button/Button.js +0 -76
- package/lib/components/01-atoms/Button/Button.stories.d.ts +0 -14
- package/lib/components/01-atoms/Button/Button.stories.js +0 -33
- package/lib/components/01-atoms/Button/ButtonTypes.d.ts +0 -10
- package/lib/components/01-atoms/Button/ButtonTypes.js +0 -14
- package/lib/components/01-atoms/Forms/Checkbox.d.ts +0 -21
- package/lib/components/01-atoms/Forms/Checkbox.js +0 -27
- package/lib/components/01-atoms/Forms/Checkbox.stories.d.ts +0 -7
- package/lib/components/01-atoms/Forms/Checkbox.stories.js +0 -23
- package/lib/components/01-atoms/Forms/DateRangeForm.d.ts +0 -31
- package/lib/components/01-atoms/Forms/DateRangeForm.js +0 -27
- package/lib/components/01-atoms/Forms/DateRangeForm.stories.d.ts +0 -9
- package/lib/components/01-atoms/Forms/DateRangeForm.stories.js +0 -23
- package/lib/components/01-atoms/Forms/FormDropdown.d.ts +0 -22
- package/lib/components/01-atoms/Forms/FormDropdown.js +0 -64
- package/lib/components/01-atoms/Forms/FormDropdown.stories.d.ts +0 -8
- package/lib/components/01-atoms/Forms/FormDropdown.stories.js +0 -22
- package/lib/components/01-atoms/Forms/HelperErrorText.d.ts +0 -26
- package/lib/components/01-atoms/Forms/HelperErrorText.js +0 -29
- package/lib/components/01-atoms/Forms/HelperErrorText.stories.d.ts +0 -9
- package/lib/components/01-atoms/Forms/HelperErrorText.stories.js +0 -23
- package/lib/components/01-atoms/Forms/Input.d.ts +0 -47
- package/lib/components/01-atoms/Forms/Input.js +0 -39
- package/lib/components/01-atoms/Forms/Input.stories.d.ts +0 -10
- package/lib/components/01-atoms/Forms/Input.stories.js +0 -22
- package/lib/components/01-atoms/Forms/Label.d.ts +0 -19
- package/lib/components/01-atoms/Forms/Label.js +0 -22
- package/lib/components/01-atoms/Forms/Label.stories.d.ts +0 -7
- package/lib/components/01-atoms/Forms/Label.stories.js +0 -20
- package/lib/components/01-atoms/Forms/TextField.d.ts +0 -26
- package/lib/components/01-atoms/Forms/TextField.js +0 -36
- package/lib/components/01-atoms/Forms/TextField.stories.d.ts +0 -7
- package/lib/components/01-atoms/Forms/TextField.stories.js +0 -20
- package/lib/components/01-atoms/Images/Icons/Icon.d.ts +0 -14
- package/lib/components/01-atoms/Images/Icons/Icon.js +0 -38
- package/lib/components/01-atoms/Images/Image/Image.d.ts +0 -8
- package/lib/components/01-atoms/Images/Image/Image.js +0 -32
- package/lib/components/01-atoms/Images/Image/Image.stories.d.ts +0 -8
- package/lib/components/01-atoms/Images/Image/Image.stories.js +0 -24
- package/lib/components/01-atoms/Links/BasicLink.d.ts +0 -15
- package/lib/components/01-atoms/Links/BasicLink.js +0 -50
- package/lib/components/01-atoms/Links/BasicLink.stories.d.ts +0 -8
- package/lib/components/01-atoms/Links/BasicLink.stories.js +0 -21
- package/lib/components/01-atoms/Links/IconLink.d.ts +0 -13
- package/lib/components/01-atoms/Links/IconLink.js +0 -44
- package/lib/components/01-atoms/Links/IconLink.stories.d.ts +0 -10
- package/lib/components/01-atoms/Links/IconLink.stories.js +0 -24
- package/lib/components/01-atoms/Links/Link.d.ts +0 -13
- package/lib/components/01-atoms/Links/Link.js +0 -51
- package/lib/components/01-atoms/Links/UnderlineLink.d.ts +0 -11
- package/lib/components/01-atoms/Links/UnderlineLink.js +0 -29
- package/lib/components/01-atoms/Links/UnderlineLink.stories.d.ts +0 -8
- package/lib/components/01-atoms/Links/UnderlineLink.stories.js +0 -21
- package/lib/components/01-atoms/Text/Headings/Heading.d.ts +0 -16
- package/lib/components/01-atoms/Text/Headings/Heading.js +0 -40
- package/lib/components/01-atoms/Text/Headings/Heading.stories.d.ts +0 -12
- package/lib/components/01-atoms/Text/Headings/Heading.stories.js +0 -35
- package/lib/components/01-atoms/Text/Headings/RNSectionTitle.d.ts +0 -2
- package/lib/components/01-atoms/Text/Headings/RNSectionTitle.js +0 -18
- package/lib/components/01-atoms/Text/Headings/RNSectionTitle.stories.d.ts +0 -7
- package/lib/components/01-atoms/Text/Headings/RNSectionTitle.stories.js +0 -24
- package/lib/components/01-atoms/Text/Text/BodyText.d.ts +0 -12
- package/lib/components/01-atoms/Text/Text/BodyText.js +0 -73
- package/lib/components/01-atoms/Text/Text/BodyText.stories.d.ts +0 -14
- package/lib/components/01-atoms/Text/Text/BodyText.stories.js +0 -54
- package/lib/components/02-molecules/Cards/EditionCard.d.ts +0 -31
- package/lib/components/02-molecules/Cards/EditionCard.js +0 -51
- package/lib/components/02-molecules/Cards/EditionCard.stories.d.ts +0 -13
- package/lib/components/02-molecules/Cards/EditionCard.stories.js +0 -26
- package/lib/components/02-molecules/Cards/SearchResultItem.d.ts +0 -17
- package/lib/components/02-molecules/Cards/SearchResultItem.js +0 -40
- package/lib/components/02-molecules/Cards/SearchResultItem.stories.d.ts +0 -8
- package/lib/components/02-molecules/Cards/SearchResultItem.stories.js +0 -31
- package/lib/components/02-molecules/Dropdown/Dropdown.d.ts +0 -21
- package/lib/components/02-molecules/Dropdown/Dropdown.js +0 -55
- package/lib/components/02-molecules/Dropdown/Dropdown.stories.d.ts +0 -14
- package/lib/components/02-molecules/Dropdown/Dropdown.stories.js +0 -33
- package/lib/components/02-molecules/Headings/SectionTitle.d.ts +0 -17
- package/lib/components/02-molecules/Headings/SectionTitle.js +0 -42
- package/lib/components/02-molecules/Headings/SectionTitle.stories.d.ts +0 -8
- package/lib/components/02-molecules/Headings/SectionTitle.stories.js +0 -20
- package/lib/components/02-molecules/Menus/Breadcrumbs/Breadcrumbs.d.ts +0 -14
- package/lib/components/02-molecules/Menus/Breadcrumbs/Breadcrumbs.js +0 -51
- package/lib/components/02-molecules/Menus/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -8
- package/lib/components/02-molecules/Menus/Breadcrumbs/Breadcrumbs.stories.js +0 -30
- package/lib/components/02-molecules/Menus/Pagination/Pagination.d.ts +0 -11
- package/lib/components/02-molecules/Menus/Pagination/Pagination.js +0 -57
- package/lib/components/02-molecules/Menus/Pagination/Pagination.stories.d.ts +0 -7
- package/lib/components/02-molecules/Menus/Pagination/Pagination.stories.js +0 -20
- package/lib/components/02-molecules/SearchBar/SearchBar.d.ts +0 -26
- package/lib/components/02-molecules/SearchBar/SearchBar.js +0 -69
- package/lib/components/02-molecules/SearchBar/SearchBar.stories.d.ts +0 -11
- package/lib/components/02-molecules/SearchBar/SearchBar.stories.js +0 -24
- package/lib/components/03-organisms/Accordion/Accordion.d.ts +0 -19
- package/lib/components/03-organisms/Accordion/Accordion.js +0 -41
- package/lib/components/03-organisms/Accordion/Accordion.stories.d.ts +0 -7
- package/lib/components/03-organisms/Accordion/Accordion.stories.js +0 -30
- package/lib/components/03-organisms/Headers/HeaderImgRight.d.ts +0 -12
- package/lib/components/03-organisms/Headers/HeaderImgRight.js +0 -32
- package/lib/components/03-organisms/Headers/HeaderImgRight.stories.d.ts +0 -7
- package/lib/components/03-organisms/Headers/HeaderImgRight.stories.js +0 -19
- package/lib/components/03-organisms/Headers/RNHeaderWithSearch.d.ts +0 -19
- package/lib/components/03-organisms/Headers/RNHeaderWithSearch.js +0 -27
- package/lib/components/03-organisms/Headers/RNHeaderWithSearch.stories.d.ts +0 -7
- package/lib/components/03-organisms/Headers/RNHeaderWithSearch.stories.js +0 -26
- package/lib/components/03-organisms/Hero/Hero.d.ts +0 -31
- package/lib/components/03-organisms/Hero/Hero.js +0 -62
- package/lib/components/03-organisms/Hero/Hero.stories.d.ts +0 -11
- package/lib/components/03-organisms/Hero/Hero.stories.js +0 -35
- package/lib/components/03-organisms/Hero/HeroTypes.d.ts +0 -6
- package/lib/components/03-organisms/Hero/HeroTypes.js +0 -9
- package/lib/components/03-organisms/List/UnorderedList.d.ts +0 -18
- package/lib/components/03-organisms/List/UnorderedList.js +0 -28
- package/lib/components/03-organisms/List/UnorderedList.stories.d.ts +0 -11
- package/lib/components/03-organisms/List/UnorderedList.stories.js +0 -73
- package/lib/components/03-organisms/SearchPromo/SearchPromo.d.ts +0 -22
- package/lib/components/03-organisms/SearchPromo/SearchPromo.js +0 -30
- package/lib/components/03-organisms/SearchPromo/SearchPromo.stories.d.ts +0 -8
- package/lib/components/03-organisms/SearchPromo/SearchPromo.stories.js +0 -28
- package/lib/helpers/hoc/WithOneChild.d.ts +0 -8
- package/lib/helpers/hoc/WithOneChild.js +0 -63
- package/lib/index.d.ts +0 -24
- package/lib/index.js +0 -51
- package/lib/utils/bem.d.ts +0 -1
- package/lib/utils/bem.js +0 -35
- package/tsd.d.ts +0 -4
- package/webpack.prod.js +0 -38
package/package.json
CHANGED
|
@@ -1,36 +1,141 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nypl/design-system-react-components",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "Design System React Components",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "NYPL Reservoir Design System React Components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/NYPL/nypl-design-system/
|
|
7
|
+
"url": "https://github.com/NYPL/nypl-design-system/"
|
|
8
|
+
},
|
|
9
|
+
"main": "dist/design-system-react-components.cjs",
|
|
10
|
+
"types": "dist/src/index.d.ts",
|
|
11
|
+
"module": "dist/design-system-react-components.js",
|
|
12
|
+
"type": "module",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": "./dist/design-system-react-components.js",
|
|
19
|
+
"require": "./dist/design-system-react-components.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./dist/styles.css": "./dist/styles.css"
|
|
22
|
+
},
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=14 <=16"
|
|
8
25
|
},
|
|
9
|
-
"main": "dist/design-system-react-components.min.js",
|
|
10
|
-
"types": "lib/index.d.ts",
|
|
11
26
|
"author": "NYPL",
|
|
12
27
|
"license": "Apache-2.0",
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
13
31
|
"scripts": {
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
32
|
+
"start": "vite build --watch",
|
|
33
|
+
"build": "tsc --noEmit && vite build --mode=production",
|
|
34
|
+
"test": "jest --config=jest.config.js",
|
|
35
|
+
"test:watch": "jest --watch --config=jest.config.js",
|
|
36
|
+
"test:generate-output": "jest --config=jest.config.js --json --outputFile=.jest-test-results.json || true",
|
|
37
|
+
"test:ci": "jest --ci --config=jest.config.js --maxWorkers=2",
|
|
38
|
+
"lint": "eslint src --ext=ts,tsx --cache",
|
|
39
|
+
"prepare": "npm run build && husky install",
|
|
40
|
+
"storybook": "storybook dev -p 6006",
|
|
41
|
+
"build-storybook:v2": "storybook build -c .storybook -o ./reservoir/v2",
|
|
42
|
+
"prebuild:storybook": "npm run test:generate-output",
|
|
43
|
+
"build-storybook": "storybook build"
|
|
25
44
|
},
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"webpack": "^4.41.5",
|
|
30
|
-
"webpack-cli": "^3.3.10"
|
|
45
|
+
"lint-staged": {
|
|
46
|
+
"*.{jsx,ts,tsx}": "eslint src --ext=jsx,ts,tsx --cache --fix",
|
|
47
|
+
"*.{js,jsx,ts,tsx,css}": "prettier --write"
|
|
31
48
|
},
|
|
32
|
-
"
|
|
33
|
-
"
|
|
49
|
+
"prettier": {
|
|
50
|
+
"printWidth": 80,
|
|
51
|
+
"semi": true,
|
|
52
|
+
"singleQuote": false,
|
|
53
|
+
"trailingComma": "es5"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@chakra-ui/focus-lock": ">=1.2.6 <2.0.0",
|
|
57
|
+
"@chakra-ui/react": ">=1.8.5 <=1.8.8",
|
|
58
|
+
"@chakra-ui/system": ">=1.11.0 <=1.12.1",
|
|
59
|
+
"@charlietango/use-native-lazy-loading": "1.10.0",
|
|
60
|
+
"@emotion/react": "11.4.1",
|
|
61
|
+
"@emotion/styled": "11.3.0",
|
|
62
|
+
"downshift": "6.1.7",
|
|
63
|
+
"framer-motion": "4.1.17",
|
|
64
|
+
"react-datepicker": "4.14.1",
|
|
65
|
+
"react-intersection-observer": "9.2.2",
|
|
66
|
+
"system-font-css": "2.0.2",
|
|
67
|
+
"tough-cookie": "4.0.0",
|
|
68
|
+
"typescript": "4.9.5",
|
|
69
|
+
"vite-plugin-svgr": "2.4.0"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"@chakra-ui/focus-lock": ">=1.2.6 <2.0.0",
|
|
73
|
+
"@chakra-ui/react": ">=1.8.5 <=1.8.8",
|
|
74
|
+
"@chakra-ui/system": ">=1.11.0 <=1.12.1",
|
|
75
|
+
"@emotion/react": "11.4.1",
|
|
76
|
+
"@emotion/styled": "11.3.0",
|
|
77
|
+
"framer-motion": "4.1.17",
|
|
78
|
+
"react": ">=16.13.0",
|
|
79
|
+
"react-dom": ">=16.13.0",
|
|
80
|
+
"typescript": "4.9.5"
|
|
34
81
|
},
|
|
35
|
-
"
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@babel/core": "7.14.6",
|
|
84
|
+
"@jest/core": "27.3.1",
|
|
85
|
+
"@rollup/plugin-commonjs": "24.0.1",
|
|
86
|
+
"@rollup/plugin-typescript": "11.0.0",
|
|
87
|
+
"@storybook/addon-a11y": "7.0.18",
|
|
88
|
+
"@storybook/addon-essentials": "7.0.18",
|
|
89
|
+
"@storybook/addon-interactions": "7.0.18",
|
|
90
|
+
"@storybook/addon-jest": "7.0.18",
|
|
91
|
+
"@storybook/addon-links": "7.0.18",
|
|
92
|
+
"@storybook/blocks": "7.0.18",
|
|
93
|
+
"@storybook/react": "7.0.18",
|
|
94
|
+
"@storybook/react-vite": "7.0.18",
|
|
95
|
+
"@storybook/testing-library": "0.1.0",
|
|
96
|
+
"@svgr/webpack": "5.5.0",
|
|
97
|
+
"@testing-library/dom": "9.2.0",
|
|
98
|
+
"@testing-library/jest-dom": "5.14.1",
|
|
99
|
+
"@testing-library/react": "12.0.0",
|
|
100
|
+
"@testing-library/react-hooks": "7.0.2",
|
|
101
|
+
"@testing-library/user-event": "13.2.1",
|
|
102
|
+
"@types/jest": "29.4.0",
|
|
103
|
+
"@types/jest-axe": "3.5.3",
|
|
104
|
+
"@types/node": "18.13.0",
|
|
105
|
+
"@types/react": "16.9.41",
|
|
106
|
+
"@types/testing-library__jest-dom": "^5.14.1",
|
|
107
|
+
"@typescript-eslint/eslint-plugin": "5.57.0",
|
|
108
|
+
"@typescript-eslint/parser": "5.57.0",
|
|
109
|
+
"@vitejs/plugin-react": "3.1.0",
|
|
110
|
+
"css-loader": "5.2.7",
|
|
111
|
+
"eslint": "7.31.0",
|
|
112
|
+
"eslint-config-prettier": "8.8.0",
|
|
113
|
+
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
114
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
115
|
+
"eslint-plugin-react": "7.32.2",
|
|
116
|
+
"eslint-plugin-react-hooks": "4.2.0",
|
|
117
|
+
"husky": "7.0.4",
|
|
118
|
+
"jest": "29.4.3",
|
|
119
|
+
"jest-axe": "5.0.1",
|
|
120
|
+
"jest-environment-jsdom": "29.5.0",
|
|
121
|
+
"lint-staged": "10.5.4",
|
|
122
|
+
"normalize.css": "8.0.1",
|
|
123
|
+
"prettier": "2.4.1",
|
|
124
|
+
"prop-types": "15.8.1",
|
|
125
|
+
"react": "17.0.2",
|
|
126
|
+
"react-autosuggest": "10.0.2",
|
|
127
|
+
"react-docgen-typescript-loader": "3.7.2",
|
|
128
|
+
"react-dom": "17.0.2",
|
|
129
|
+
"react-test-renderer": "17.0.2",
|
|
130
|
+
"remark-gfm": "3.0.1",
|
|
131
|
+
"sass": "1.60.0",
|
|
132
|
+
"sass-loader": "10.0.0",
|
|
133
|
+
"storybook": "7.0.18",
|
|
134
|
+
"storybook-addon-designs": "7.0.0-beta.2",
|
|
135
|
+
"style-loader": "2.0.0",
|
|
136
|
+
"ts-jest": "29.0.5",
|
|
137
|
+
"tslib": "2.3.0",
|
|
138
|
+
"vite": "4.3.9",
|
|
139
|
+
"vite-plugin-dts": "2.1.0"
|
|
140
|
+
}
|
|
36
141
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
All notable changes to this project will be documented in this file.
|
|
3
|
-
|
|
4
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
5
|
-
Currently, this repo is in Prerelease. When it is released, this project will adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
|
|
6
|
-
|
|
7
|
-
## [0.2.0] - 2020-04-13
|
|
8
|
-
### Changed
|
|
9
|
-
- Reworks `HeaderWithImageRight` into `Hero`, which accepts values from an enum to display different kinds of heros based on [this documentation page](https://www.figma.com/file/qShodlfNCJHb8n03IFyApM/Master?node-id=10968%3A5314)
|
|
10
|
-
========
|
|
11
|
-
|
|
12
|
-
## [0.1.1]
|
|
13
|
-
### Changed
|
|
14
|
-
- `Textfield` id is no longer duplicated
|
|
15
|
-
- `Dropdown` now applies `bem` `blockName`
|
|
16
|
-
- `Pagination` now passes in `blockName` into `Dropdown`
|
|
17
|
-
|
|
18
|
-
## [0.1.0]
|
|
19
|
-
### Breaking Changes
|
|
20
|
-
- Large classes now have `Opts` inteface that allows for the component to be built over multiple steps. This affects:
|
|
21
|
-
- `HelperErrorText`
|
|
22
|
-
- `Label`
|
|
23
|
-
- `TextField`
|
|
24
|
-
- `Button`
|
|
25
|
-
- Deprecated `SearchResultsList`, `IconLinkList` and `EditionsList` in favor of `UnorderedList`
|
|
26
|
-
- `type` in `Button` now corresponds to html button types. `buttonType` in button corresponds to the visual categories of buttons (eg: `filled`, `outline`)
|
|
27
|
-
- `subtitle` in `SearchResultsItem` changed to `subtitleContent` to take a JSX
|
|
28
|
-
- `Label` and `Button` only accept children when called directly
|
|
29
|
-
|
|
30
|
-
### Added:
|
|
31
|
-
- `Checkbox`
|
|
32
|
-
- `DateRangeForm`
|
|
33
|
-
- `Input`
|
|
34
|
-
- `Accordion`
|
|
35
|
-
- `UnorderedList`
|
|
36
|
-
- `Modal`
|
|
37
|
-
========
|
|
38
|
-
|
|
39
|
-
## [0.0.17] - 2020-03-17
|
|
40
|
-
- Changelog update
|
|
41
|
-
|
|
42
|
-
## [0.0.16]
|
|
43
|
-
- `HeaderImgRight` accepts elements
|
|
44
|
-
|
|
45
|
-
## [0.0.15] - 2020-03-3
|
|
46
|
-
### Changed
|
|
47
|
-
- `Button` component accepts content to render from its `content` prop or its `children` prop.
|
|
48
|
-
|
|
49
|
-
## [0.0.14] - 2020-02-18
|
|
50
|
-
### Changed
|
|
51
|
-
- `EditionCard` `EditionInfo` fields accept elements
|
|
52
|
-
- `EditionCard` `ReadOnline` and `Download` fields accept elements
|
|
53
|
-
|
|
54
|
-
### [0.0.14] - 2020-02-18
|
|
55
|
-
- added `noLinkElement` to `EditionCard` to receive an element
|
|
56
|
-
|
|
57
|
-
## [0.0.11] — 2020-01-23
|
|
58
|
-
### Added
|
|
59
|
-
- `EditionsList`
|
|
60
|
-
|
|
61
|
-
## [0.0.10] - 2020-01-14
|
|
62
|
-
### Added
|
|
63
|
-
- `Dropdown` which controls `FormDropdown` and its corresponding `Label`
|
|
64
|
-
- `Label`
|
|
65
|
-
- `HelperErrorText`
|
|
66
|
-
- `Pagination`
|
|
67
|
-
- `EditionCard` component
|
|
68
|
-
- `SearchResultItem` component that uses `EditionCard`
|
|
69
|
-
- `RN Header With Search`
|
|
70
|
-
- a story for `RN Section Title`, which is just a collection of styles
|
|
71
|
-
- `SearchResultsList` component
|
|
72
|
-
|
|
73
|
-
### Changed
|
|
74
|
-
- added `iconModifiers` to `Button`
|
|
75
|
-
- `buttonId` in `Button` is now required
|
|
76
|
-
- refactored `FormDropdown` to not include its own `label`
|
|
77
|
-
- `RN Header With Search`
|
|
78
|
-
- a story for `RN Section Title`, which is just a collection of styles
|
|
79
|
-
- `Link` -> `BasicLink` for clarity
|
|
80
|
-
- Bugfixes in `UnderlineLink` and `IconLink`
|
|
81
|
-
- Added stories for `BasicLink`
|
|
82
|
-
- `Link` missing URL error message
|
|
83
|
-
- Consolidated `Heading` and `PageTitle`
|
|
84
|
-
- `Heading` now only takes a single span
|
|
85
|
-
- Added ResearchNow specific `SearchBar` error state
|
|
86
|
-
- A11Y changes for `SearchBar` and `HeaderWithSearch`
|
|
87
|
-
- Added stories for AT-79, AT-264 and AT-3
|
|
88
|
-
- `selectedOption` added to `FormDropdown` stores selected state
|
|
89
|
-
|
|
90
|
-
## [0.0.7] - 2020-01-03
|
|
91
|
-
### Added
|
|
92
|
-
- A webpack file in order to build and distribute a compiled version of the react components. Does not replace the /lib folder usage, but the main file is now pointing to `/dist/design-system-react-components.min.js`.
|
|
93
|
-
|
|
94
|
-
## [0.0.6] - 2019-12-31
|
|
95
|
-
### Added
|
|
96
|
-
- `Image` for 2:1 ratio
|
|
97
|
-
- `PageTitle`
|
|
98
|
-
- `Header with Image Right`
|
|
99
|
-
- `FormDropdown`
|
|
100
|
-
- `SearchPromo`
|
|
101
|
-
|
|
102
|
-
### Changed
|
|
103
|
-
- Moved heading-related atoms from `01-atoms/Text` into `01-atoms/Text/Heading`
|
|
104
|
-
- Updated `Searchbar` component to include Parameters
|
|
105
|
-
- Changed `Breadcrumb` export from `Breadcrumbs`
|
|
106
|
-
|
|
107
|
-
## [0.0.5] - 2019-12-06
|
|
108
|
-
### Changed
|
|
109
|
-
- `Icon` import
|
|
110
|
-
|
|
111
|
-
## [0.0.4] - 2019-12-06
|
|
112
|
-
### Added
|
|
113
|
-
- `Body text` component for plain-text elements
|
|
114
|
-
- `UnderlineLink` and `IconLink` for links
|
|
115
|
-
- `Icon` component that uses the `design-system-icons` package.
|
|
116
|
-
- `SectionTitle` and `Heading` for heading components
|
|
117
|
-
- `IconLink-List`for the list of subject links
|
|
118
|
-
- `Button` and `TextField` for the searchbar
|
|
119
|
-
- `SearchBar` component
|
|
120
|
-
|
|
121
|
-
### Changed
|
|
122
|
-
- `Breadcrumb` now shows icon in mobile view
|
|
123
|
-
|
|
124
|
-
## [0.0.3] - 2019-11-15
|
|
125
|
-
### Changed
|
|
126
|
-
- Changed `Breadcrumb` to `Breadcrumbs` to match Twig
|
|
127
|
-
- Changed the Breadcrumbs props to accept components
|
|
128
|
-
|
|
129
|
-
## [0.0.2] - 2019-11-13
|
|
130
|
-
### Added
|
|
131
|
-
- Started a change log
|
|
132
|
-
- Added the Breadcrumb React Component
|
|
133
|
-
|
|
134
|
-
### Changed
|
|
135
|
-
- Changed folder structure to match Twig
|
|
136
|
-
|
|
137
|
-
## [0.0.1] - 2019-11-13
|
|
138
|
-
- Published as a test
|
|
139
|
-
|