@nypl/design-system-react-components 0.25.9 → 0.25.12
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/CHANGELOG.md +96 -0
- package/README.md +4 -16
- package/dist/components/Breadcrumbs/BreadcrumbsTypes.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/Fieldset/Fieldset.d.ts +1 -3
- package/dist/components/Form/Form.d.ts +13 -12
- package/dist/components/Form/FormTypes.d.ts +2 -2
- package/dist/components/HorizontalRule/HorizontalRule.d.ts +1 -1
- package/dist/components/Icons/IconTypes.d.ts +9 -7
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/Logo/LogoSvgs.d.ts +23 -1
- package/dist/components/Logo/LogoTypes.d.ts +23 -1
- package/dist/components/Notification/Notification.d.ts +2 -0
- package/dist/components/Pagination/Pagination.d.ts +6 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -3
- package/dist/components/SearchBar/SearchBar.d.ts +6 -6
- package/dist/components/Select/Select.d.ts +4 -0
- package/dist/components/Table/Table.d.ts +9 -3
- package/dist/components/Template/Template.d.ts +24 -5
- package/dist/design-system-react-components.cjs.development.js +2063 -548
- package/dist/design-system-react-components.cjs.development.js.map +1 -1
- package/dist/design-system-react-components.cjs.production.min.js +1 -1
- package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
- package/dist/design-system-react-components.esm.js +2056 -554
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/resources.scss +0 -2
- package/dist/styles.css +1 -1
- package/dist/theme/components/breadcrumb.d.ts +4 -1
- package/dist/theme/components/checkbox.d.ts +0 -2
- package/dist/theme/components/customTable.d.ts +12 -3
- package/dist/theme/components/fieldset.d.ts +2 -0
- package/dist/theme/components/global.d.ts +15 -14
- package/dist/theme/components/globalMixins.d.ts +8 -8
- package/dist/theme/components/list.d.ts +6 -0
- package/dist/theme/components/notification.d.ts +16 -4
- package/dist/theme/components/radio.d.ts +3 -2
- package/dist/theme/components/searchBar.d.ts +4 -0
- package/dist/theme/components/select.d.ts +2 -9
- package/dist/theme/components/slider.d.ts +8 -4
- package/dist/theme/components/structuredContent.d.ts +9 -9
- package/dist/theme/components/textInput.d.ts +10 -12
- package/dist/theme/components/toggle.d.ts +6 -2
- package/dist/theme/foundations/global.d.ts +31 -3
- package/dist/utils/utils.d.ts +10 -0
- package/package.json +40 -36
- package/src/components/Accordion/Accordion.stories.mdx +1 -1
- package/src/components/Accordion/Accordion.test.tsx +45 -1
- package/src/components/Accordion/Accordion.tsx +20 -8
- package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +243 -0
- package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +30 -2
- package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +25 -0
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +9 -3
- package/src/components/Breadcrumbs/BreadcrumbsTypes.tsx +1 -0
- package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +104 -5
- package/src/components/Card/Card.stories.mdx +1 -1
- package/src/components/Card/Card.tsx +4 -1
- package/src/components/Card/__snapshots__/Card.test.tsx.snap +1 -1
- package/src/components/Chakra/Flex.stories.mdx +113 -0
- package/src/components/Checkbox/Checkbox.stories.mdx +1 -1
- package/src/components/Checkbox/Checkbox.tsx +1 -0
- package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +6 -6
- package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +1 -1
- package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +18 -18
- package/src/components/DatePicker/DatePicker.stories.mdx +1 -1
- package/src/components/DatePicker/DatePicker.test.tsx +6 -6
- package/src/components/DatePicker/DatePicker.tsx +12 -10
- package/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap +28 -20
- package/src/components/Fieldset/Fieldset.stories.mdx +1 -1
- package/src/components/Fieldset/Fieldset.tsx +2 -4
- package/src/components/Form/Form.stories.mdx +34 -16
- package/src/components/Form/Form.test.tsx +92 -3
- package/src/components/Form/Form.tsx +25 -21
- package/src/components/Form/FormTypes.tsx +2 -2
- package/src/components/Form/__snapshots__/Form.test.tsx.snap +0 -1
- package/src/components/HelperErrorText/HelperErrorText.stories.mdx +1 -1
- package/src/components/Hero/Hero.stories.mdx +1 -1
- package/src/components/HorizontalRule/HorizontalRule.stories.mdx +3 -2
- package/src/components/HorizontalRule/HorizontalRule.tsx +2 -2
- package/src/components/HorizontalRule/__snapshots__/HorizontalRule.test.tsx.snap +4 -4
- package/src/components/Icons/Icon.stories.mdx +1 -1
- package/src/components/Icons/Icon.test.tsx +1 -1
- package/src/components/Icons/Icon.tsx +1 -1
- package/src/components/Icons/IconTypes.tsx +8 -6
- package/src/components/List/List.stories.mdx +24 -5
- package/src/components/List/List.test.tsx +1 -1
- package/src/components/List/List.tsx +2 -2
- package/src/components/List/__snapshots__/List.test.tsx.snap +3 -1
- package/src/components/Logo/Logo.stories.mdx +7 -5
- package/src/components/Logo/LogoSvgs.tsx +45 -1
- package/src/components/Logo/LogoTypes.tsx +22 -0
- package/src/components/Notification/Notification.stories.mdx +73 -1
- package/src/components/Notification/Notification.test.tsx +64 -5
- package/src/components/Notification/Notification.tsx +21 -11
- package/src/components/Notification/__snapshots__/Notification.test.tsx.snap +103 -8
- package/src/components/Pagination/Pagination.stories.mdx +54 -12
- package/src/components/Pagination/Pagination.test.tsx +63 -5
- package/src/components/Pagination/Pagination.tsx +46 -24
- package/src/components/Pagination/__snapshots__/Pagination.test.tsx.snap +3 -3
- package/src/components/Radio/Radio.stories.mdx +1 -1
- package/src/components/Radio/Radio.tsx +1 -0
- package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +5 -5
- package/src/components/RadioGroup/RadioGroup.stories.mdx +1 -1
- package/src/components/RadioGroup/RadioGroup.test.tsx +13 -11
- package/src/components/RadioGroup/RadioGroup.tsx +88 -89
- package/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +18 -18
- package/src/components/SearchBar/SearchBar.Test.tsx +124 -28
- package/src/components/SearchBar/SearchBar.stories.mdx +9 -6
- package/src/components/SearchBar/SearchBar.tsx +24 -23
- package/src/components/Select/Select.stories.mdx +1 -1
- package/src/components/Select/Select.test.tsx +89 -0
- package/src/components/Select/Select.tsx +11 -2
- package/src/components/Select/__snapshots__/Select.test.tsx.snap +545 -0
- package/src/components/Slider/Slider.stories.mdx +1 -1
- package/src/components/Slider/Slider.tsx +4 -1
- package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +7 -0
- package/src/components/StructuredContent/StructuredContent.stories.mdx +1 -1
- package/src/components/StyleGuide/Bidirectionality.stories.mdx +4 -4
- package/src/components/StyleGuide/Colors.stories.mdx +33 -18
- package/src/components/Table/Table.stories.mdx +118 -19
- package/src/components/Table/Table.test.tsx +80 -3
- package/src/components/Table/Table.tsx +26 -16
- package/src/components/Table/__snapshots__/Table.test.tsx.snap +1179 -0
- package/src/components/Tabs/Tabs.stories.mdx +1 -1
- package/src/components/Tabs/Tabs.test.tsx +21 -5
- package/src/components/Tabs/Tabs.tsx +35 -20
- package/src/components/Tabs/__snapshots__/Tabs.test.tsx.snap +195 -0
- package/src/components/Template/Template.stories.mdx +79 -4
- package/src/components/Template/Template.test.tsx +65 -3
- package/src/components/Template/Template.tsx +60 -14
- package/src/components/Template/__snapshots__/Template.test.tsx.snap +94 -1
- package/src/components/TextInput/TextInput.stories.mdx +1 -1
- package/src/components/Toggle/Toggle.stories.mdx +1 -1
- package/src/components/Toggle/Toggle.tsx +2 -1
- package/src/components/Toggle/__snapshots__/Toggle.test.tsx.snap +4 -4
- package/src/docs/Chakra.stories.mdx +1 -1
- package/src/index.ts +8 -2
- package/src/styles/base/_place-holder.scss +2 -0
- package/src/styles.scss +0 -2
- package/src/theme/components/breadcrumb.ts +5 -1
- package/src/theme/components/checkbox.ts +3 -7
- package/src/theme/components/customTable.ts +16 -3
- package/src/theme/components/fieldset.ts +2 -0
- package/src/theme/components/global.ts +19 -16
- package/src/theme/components/globalMixins.ts +8 -8
- package/src/theme/components/list.ts +6 -2
- package/src/theme/components/notification.ts +21 -8
- package/src/theme/components/radio.ts +3 -6
- package/src/theme/components/searchBar.ts +4 -0
- package/src/theme/components/select.ts +3 -3
- package/src/theme/components/slider.ts +12 -9
- package/src/theme/components/structuredContent.ts +26 -6
- package/src/theme/components/textInput.ts +3 -2
- package/src/theme/components/toggle.ts +42 -38
- package/src/theme/foundations/colors.ts +19 -12
- package/src/theme/foundations/global.ts +17 -5
- package/src/theme/foundations/typography.ts +2 -2
- package/src/utils/componentCategories.ts +2 -1
- package/src/utils/utils.ts +28 -0
- package/dist/components/Pagination/Pagination.stories.d.ts +0 -13
- package/src/components/Pagination/Pagination.stories.tsx +0 -54
- package/src/styles/base/_03-base.scss +0 -25
- package/src/styles/base/_04-focus.scss +0 -22
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./styles.scss";
|
|
2
|
-
export { Box, ButtonGroup, Center, Circle, Grid, GridItem, HStack, Square, Stack, VStack, } from "@chakra-ui/react";
|
|
2
|
+
export { Box, ButtonGroup, Center, Circle, Flex, Grid, GridItem, HStack, Spacer, Square, Stack, VStack, } from "@chakra-ui/react";
|
|
3
3
|
export { default as Accordion } from "./components/Accordion/Accordion";
|
|
4
4
|
export { default as Breadcrumbs } from "./components/Breadcrumbs/Breadcrumbs";
|
|
5
5
|
export { ColorVariants } from "./components/Breadcrumbs/BreadcrumbsTypes";
|
|
@@ -10,12 +10,12 @@ export { CardLayouts } from "./components/Card/CardTypes";
|
|
|
10
10
|
export { default as Checkbox } from "./components/Checkbox/Checkbox";
|
|
11
11
|
export { default as CheckboxGroup } from "./components/CheckboxGroup/CheckboxGroup";
|
|
12
12
|
export { CheckboxGroupLayoutTypes } from "./components/CheckboxGroup/CheckboxGroupLayoutTypes";
|
|
13
|
-
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
13
|
+
export { default as DatePicker, FullDateType, } from "./components/DatePicker/DatePicker";
|
|
14
14
|
export { DatePickerTypes } from "./components/DatePicker/DatePickerTypes";
|
|
15
15
|
export { default as DSProvider } from "./theme/provider";
|
|
16
16
|
export { default as Fieldset } from "./components/Fieldset/Fieldset";
|
|
17
17
|
export { default as Form, FormField, FormRow } from "./components/Form/Form";
|
|
18
|
-
export {
|
|
18
|
+
export { FormGaps } from "./components/Form/FormTypes";
|
|
19
19
|
export { GridGaps } from "./components/Grid/GridTypes";
|
|
20
20
|
export { default as Heading } from "./components/Heading/Heading";
|
|
21
21
|
export { HeadingDisplaySizes, HeadingLevels, } from "./components/Heading/HeadingTypes";
|
|
@@ -54,7 +54,7 @@ export { StatusBadgeTypes } from "./components/StatusBadge/StatusBadgeTypes";
|
|
|
54
54
|
export { default as StructuredContent } from "./components/StructuredContent/StructuredContent";
|
|
55
55
|
export { StructuredContentImagePosition } from "./components/StructuredContent/StructuredContentTypes";
|
|
56
56
|
export { Tabs, TabList, Tab, TabPanels, TabPanel, } from "./components/Tabs/Tabs";
|
|
57
|
-
export { TemplateAppContainer, Template, TemplateHeader, TemplateBreakout, TemplateContent, TemplateContentTop, TemplateContentPrimary, TemplateContentSidebar, TemplateFooter, } from "./components/Template/Template";
|
|
57
|
+
export { TemplateAppContainer, Template, TemplateAboveHeader, TemplateHeader, TemplateBreakout, TemplateContent, TemplateContentTop, TemplateContentPrimary, TemplateContentSidebar, TemplateFooter, } from "./components/Template/Template";
|
|
58
58
|
export { default as Text } from "./components/Text/Text";
|
|
59
59
|
export { TextDisplaySizes } from "./components/Text/TextTypes";
|
|
60
60
|
export { default as TextInput, TextInputRefType, } from "./components/TextInput/TextInput";
|
package/dist/resources.scss
CHANGED
package/dist/styles.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */@import "~react-datepicker/dist/react-datepicker.css";html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}
|
|
2
2
|
|
|
3
|
-
/*! system-font.css v2.0.2 | CC0-1.0 License | github.com/jonathantneal/system-font-css */@font-face{font-family:system-ui;font-style:normal;font-weight:300;src:local(".SFNSText-Light"),local(".HelveticaNeueDeskInterface-Light"),local(".LucidaGrandeUI"),local("Segoe UI Light"),local("Ubuntu Light"),local("Roboto-Light"),local("DroidSans"),local("Tahoma")}@font-face{font-family:system-ui;font-style:italic;font-weight:300;src:local(".SFNSText-LightItalic"),local(".HelveticaNeueDeskInterface-Italic"),local(".LucidaGrandeUI"),local("Segoe UI Light Italic"),local("Ubuntu Light Italic"),local("Roboto-LightItalic"),local("DroidSans"),local("Tahoma")}@font-face{font-family:system-ui;font-style:normal;font-weight:400;src:local(".SFNSText-Regular"),local(".HelveticaNeueDeskInterface-Regular"),local(".LucidaGrandeUI"),local("Segoe UI"),local("Ubuntu"),local("Roboto-Regular"),local("DroidSans"),local("Tahoma")}@font-face{font-family:system-ui;font-style:italic;font-weight:400;src:local(".SFNSText-Italic"),local(".HelveticaNeueDeskInterface-Italic"),local(".LucidaGrandeUI"),local("Segoe UI Italic"),local("Ubuntu Italic"),local("Roboto-Italic"),local("DroidSans"),local("Tahoma")}@font-face{font-family:system-ui;font-style:normal;font-weight:500;src:local(".SFNSText-Medium"),local(".HelveticaNeueDeskInterface-MediumP4"),local(".LucidaGrandeUI"),local("Segoe UI Semibold"),local("Ubuntu Medium"),local("Roboto-Medium"),local("DroidSans-Bold"),local("Tahoma Bold")}@font-face{font-family:system-ui;font-style:italic;font-weight:500;src:local(".SFNSText-MediumItalic"),local(".HelveticaNeueDeskInterface-MediumItalicP4"),local(".LucidaGrandeUI"),local("Segoe UI Semibold Italic"),local("Ubuntu Medium Italic"),local("Roboto-MediumItalic"),local("DroidSans-Bold"),local("Tahoma Bold")}@font-face{font-family:system-ui;font-style:normal;font-weight:700;src:local(".SFNSText-Bold"),local(".HelveticaNeueDeskInterface-Bold"),local(".LucidaGrandeUI"),local("Segoe UI Bold"),local("Ubuntu Bold"),local("Roboto-Bold"),local("DroidSans-Bold"),local("Tahoma Bold")}@font-face{font-family:system-ui;font-style:italic;font-weight:700;src:local(".SFNSText-BoldItalic"),local(".HelveticaNeueDeskInterface-BoldItalic"),local(".LucidaGrandeUI"),local("Segoe UI Bold Italic"),local("Ubuntu Bold Italic"),local("Roboto-BoldItalic"),local("DroidSans-Bold"),local("Tahoma Bold")}:root{--nypl-breakpoint-small:320px;--nypl-breakpoint-medium:600px;--nypl-breakpoint-large:960px;--nypl-breakpoint-xl:1280px}.container{padding:var(--nypl-space-s)}.
|
|
3
|
+
/*! system-font.css v2.0.2 | CC0-1.0 License | github.com/jonathantneal/system-font-css */@font-face{font-family:system-ui;font-style:normal;font-weight:300;src:local(".SFNSText-Light"),local(".HelveticaNeueDeskInterface-Light"),local(".LucidaGrandeUI"),local("Segoe UI Light"),local("Ubuntu Light"),local("Roboto-Light"),local("DroidSans"),local("Tahoma")}@font-face{font-family:system-ui;font-style:italic;font-weight:300;src:local(".SFNSText-LightItalic"),local(".HelveticaNeueDeskInterface-Italic"),local(".LucidaGrandeUI"),local("Segoe UI Light Italic"),local("Ubuntu Light Italic"),local("Roboto-LightItalic"),local("DroidSans"),local("Tahoma")}@font-face{font-family:system-ui;font-style:normal;font-weight:400;src:local(".SFNSText-Regular"),local(".HelveticaNeueDeskInterface-Regular"),local(".LucidaGrandeUI"),local("Segoe UI"),local("Ubuntu"),local("Roboto-Regular"),local("DroidSans"),local("Tahoma")}@font-face{font-family:system-ui;font-style:italic;font-weight:400;src:local(".SFNSText-Italic"),local(".HelveticaNeueDeskInterface-Italic"),local(".LucidaGrandeUI"),local("Segoe UI Italic"),local("Ubuntu Italic"),local("Roboto-Italic"),local("DroidSans"),local("Tahoma")}@font-face{font-family:system-ui;font-style:normal;font-weight:500;src:local(".SFNSText-Medium"),local(".HelveticaNeueDeskInterface-MediumP4"),local(".LucidaGrandeUI"),local("Segoe UI Semibold"),local("Ubuntu Medium"),local("Roboto-Medium"),local("DroidSans-Bold"),local("Tahoma Bold")}@font-face{font-family:system-ui;font-style:italic;font-weight:500;src:local(".SFNSText-MediumItalic"),local(".HelveticaNeueDeskInterface-MediumItalicP4"),local(".LucidaGrandeUI"),local("Segoe UI Semibold Italic"),local("Ubuntu Medium Italic"),local("Roboto-MediumItalic"),local("DroidSans-Bold"),local("Tahoma Bold")}@font-face{font-family:system-ui;font-style:normal;font-weight:700;src:local(".SFNSText-Bold"),local(".HelveticaNeueDeskInterface-Bold"),local(".LucidaGrandeUI"),local("Segoe UI Bold"),local("Ubuntu Bold"),local("Roboto-Bold"),local("DroidSans-Bold"),local("Tahoma Bold")}@font-face{font-family:system-ui;font-style:italic;font-weight:700;src:local(".SFNSText-BoldItalic"),local(".HelveticaNeueDeskInterface-BoldItalic"),local(".LucidaGrandeUI"),local("Segoe UI Bold Italic"),local("Ubuntu Bold Italic"),local("Roboto-BoldItalic"),local("DroidSans-Bold"),local("Tahoma Bold")}:root{--nypl-breakpoint-small:320px;--nypl-breakpoint-medium:600px;--nypl-breakpoint-large:960px;--nypl-breakpoint-xl:1280px}.container{padding:var(--nypl-space-s)}.placeholder{--color-place-holder:var(--nypl-colors-ui-gray-dark);align-items:center;border:4px dashed var(--color-place-holder);color:var(--color-place-holder);display:flex;font-size:3rem;justify-content:center;line-height:1.4;margin-bottom:var(--nypl-space-l);padding:4rem 1rem;width:100%}@media (min-width:960px){.placeholder{margin-bottom:var(--nypl-space-xl)}}.placeholder--full{margin-bottom:var(--nypl-space-xxl)}@media (min-width:960px){.placeholder--full{margin-bottom:var(--nypl-space-xxxl)}}.placeholder--short{padding:1rem}.react-autosuggest__container{display:inline;position:relative;width:100%}.react-autosuggest__input--focused{outline:none}.react-autosuggest__input--open{border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.react-autosuggest__suggestions-container{display:none;width:100%}.react-autosuggest__suggestions-container--open{background-color:var(--nypl-colors-ui-white);display:block;font-weight:300;margin-top:1px;outline:1px solid var(--nypl-colors-ui-gray-light-cool);position:relative;width:100%;z-index:2}.react-autosuggest__suggestions-list{list-style-type:none;margin:0;padding:0}.react-autosuggest__suggestion{cursor:pointer;padding:var(--nypl-space-xs)}.react-autosuggest__suggestion--highlighted{background-color:var(--nypl-colors-ui-gray-light-cool)}.auto-suggest-bottom{padding:var(--nypl-space-xs)}.date-picker-calendar .react-datepicker__year-wrapper{max-width:220px}.date-picker-calendar .react-datepicker__day--in-range.react-datepicker__day--in-range,.date-picker-calendar .react-datepicker__month--in-range.react-datepicker__day--in-range,.date-picker-calendar .react-datepicker__year--in-range.react-datepicker__day--in-range{opacity:.5}.date-picker-calendar .react-datepicker__day--in-range,.date-picker-calendar .react-datepicker__day--in-selecting-range,.date-picker-calendar .react-datepicker__day--keyboard-selected,.date-picker-calendar .react-datepicker__day-text--keyboard-selected,.date-picker-calendar .react-datepicker__month--in-range,.date-picker-calendar .react-datepicker__month--in-selecting-range,.date-picker-calendar .react-datepicker__month--keyboard-selected,.date-picker-calendar .react-datepicker__month-text--keyboard-selected,.date-picker-calendar .react-datepicker__year--in-range,.date-picker-calendar .react-datepicker__year--in-selecting-range,.date-picker-calendar .react-datepicker__year--keyboard-selected,.date-picker-calendar .react-datepicker__year-text--keyboard-selected{background-color:var(--nypl-colors-ui-black);border-radius:0;color:var(--nypl-colors-ui-white);opacity:.3}.date-picker-calendar .react-datepicker__day--selected,.date-picker-calendar .react-datepicker__day-text--selected,.date-picker-calendar .react-datepicker__month--selected,.date-picker-calendar .react-datepicker__month-text--selected,.date-picker-calendar .react-datepicker__year--selected,.date-picker-calendar .react-datepicker__year-text--selected{background-color:var(--nypl-colors-ui-black);border-radius:0;color:var(--nypl-colors-ui-white);opacity:1}.date-picker-calendar .react-datepicker__triangle{transform:translate(32px)!important}.no-scroll{overflow:hidden;position:fixed;top:-100vh}.modal{background-color:var(--nypl-colors-ui-gray-x-light-warm);height:100vh;left:0;overflow-y:auto;padding:var(--nypl-space-s);position:fixed;top:0;width:100vw;z-index:999}
|
|
@@ -62,7 +62,7 @@ declare const Breadcrumb: {
|
|
|
62
62
|
marginInlineStart: string;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
|
-
"li:nth-last-
|
|
65
|
+
"li:nth-last-of-type(2)": {
|
|
66
66
|
display: string;
|
|
67
67
|
span: {
|
|
68
68
|
display: {
|
|
@@ -85,6 +85,9 @@ declare const Breadcrumb: {
|
|
|
85
85
|
booksAndMore: {
|
|
86
86
|
bg: string;
|
|
87
87
|
};
|
|
88
|
+
education: {
|
|
89
|
+
bg: string;
|
|
90
|
+
};
|
|
88
91
|
locations: {
|
|
89
92
|
bg: string;
|
|
90
93
|
};
|
|
@@ -4,6 +4,11 @@ declare const CustomTable: {
|
|
|
4
4
|
showRowDividers: any;
|
|
5
5
|
useRowHeaders: any;
|
|
6
6
|
}) => {
|
|
7
|
+
tbody: {
|
|
8
|
+
th: {
|
|
9
|
+
color: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
7
12
|
th: {
|
|
8
13
|
border: string;
|
|
9
14
|
borderBottom: string;
|
|
@@ -36,11 +41,15 @@ declare const CustomTable: {
|
|
|
36
41
|
};
|
|
37
42
|
caption: {
|
|
38
43
|
captionSide: string;
|
|
39
|
-
textAlign: string;
|
|
40
|
-
fontSize: string;
|
|
41
44
|
color: string;
|
|
42
|
-
|
|
45
|
+
fontSize: string;
|
|
43
46
|
fontWeight: string;
|
|
47
|
+
marginBottom: string;
|
|
48
|
+
marginLeft: string;
|
|
49
|
+
marginRight: string;
|
|
50
|
+
marginTop: string;
|
|
51
|
+
padding: string;
|
|
52
|
+
textAlign: string;
|
|
44
53
|
};
|
|
45
54
|
};
|
|
46
55
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/** Export "mixin" styles. */
|
|
2
2
|
export { wrapperStyles } from "./globalMixins";
|
|
3
3
|
/** Reusable component styles. */
|
|
4
|
-
declare const activeFocus: {
|
|
5
|
-
border: string;
|
|
6
|
-
borderColor: string;
|
|
7
|
-
zIndex: string;
|
|
4
|
+
declare const activeFocus: (darkMode?: boolean) => {
|
|
8
5
|
outline: string;
|
|
6
|
+
outlineOffset: string;
|
|
9
7
|
outlineColor: string;
|
|
8
|
+
zIndex: string;
|
|
10
9
|
};
|
|
11
10
|
declare const helperTextMargin: {
|
|
12
11
|
marginTop: string;
|
|
@@ -14,11 +13,9 @@ declare const helperTextMargin: {
|
|
|
14
13
|
};
|
|
15
14
|
declare const checkboxRadioLabelStyles: {
|
|
16
15
|
userSelect: string;
|
|
17
|
-
fontSize: string;
|
|
18
16
|
fontWeight: string;
|
|
19
17
|
marginBottom: string;
|
|
20
18
|
marginLeft: string;
|
|
21
|
-
verticalAlign: string;
|
|
22
19
|
_disabled: {
|
|
23
20
|
color: string;
|
|
24
21
|
opacity: number;
|
|
@@ -40,6 +37,14 @@ declare const checkboxRadioHelperStyle: {
|
|
|
40
37
|
marginTop: string;
|
|
41
38
|
marginBottom: string;
|
|
42
39
|
};
|
|
40
|
+
declare const checkboxRadioGroupStyles: {
|
|
41
|
+
helper: {
|
|
42
|
+
marginTop: string;
|
|
43
|
+
};
|
|
44
|
+
stack: {
|
|
45
|
+
width: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
43
48
|
declare const labelLegendText: {
|
|
44
49
|
alignItems: string;
|
|
45
50
|
width: string;
|
|
@@ -54,12 +59,8 @@ declare const labelLegendText: {
|
|
|
54
59
|
fontWeight: string;
|
|
55
60
|
};
|
|
56
61
|
};
|
|
57
|
-
declare const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
};
|
|
61
|
-
stack: {
|
|
62
|
-
width: string;
|
|
63
|
-
};
|
|
62
|
+
declare const textMargin: {
|
|
63
|
+
margin: string;
|
|
64
|
+
marginBottom: string;
|
|
64
65
|
};
|
|
65
|
-
export { activeFocus, checkboxRadioControlSize, checkboxRadioGroupStyles, checkboxRadioHelperStyle, checkboxRadioLabelStyles, helperTextMargin, labelLegendText, };
|
|
66
|
+
export { activeFocus, checkboxRadioControlSize, checkboxRadioGroupStyles, checkboxRadioHelperStyle, checkboxRadioLabelStyles, helperTextMargin, labelLegendText, textMargin, };
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
* These objects are also SCSS mixins but are now JS objects in the
|
|
3
3
|
* context of css-in-js and the custom NYPL-theme.
|
|
4
4
|
*/
|
|
5
|
+
declare const screenreaderOnly: {
|
|
6
|
+
clip: string;
|
|
7
|
+
height: string;
|
|
8
|
+
overflow: string;
|
|
9
|
+
position: string;
|
|
10
|
+
width: string;
|
|
11
|
+
wordWrap: string;
|
|
12
|
+
};
|
|
5
13
|
declare const wrapperStyles: {
|
|
6
14
|
marginY: string;
|
|
7
15
|
marginX: string;
|
|
@@ -12,12 +20,4 @@ declare const wrapperStyles: {
|
|
|
12
20
|
paddingLeft: string;
|
|
13
21
|
width: string;
|
|
14
22
|
};
|
|
15
|
-
declare const screenreaderOnly: {
|
|
16
|
-
clip: string;
|
|
17
|
-
height: string;
|
|
18
|
-
overflow: string;
|
|
19
|
-
position: string;
|
|
20
|
-
width: string;
|
|
21
|
-
wordWrap: string;
|
|
22
|
-
};
|
|
23
23
|
export { screenreaderOnly, wrapperStyles };
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
Notification: {
|
|
3
3
|
parts: string[];
|
|
4
|
-
baseStyle: ({ centered, noMargin, notificationType }: {
|
|
4
|
+
baseStyle: ({ centered, dismissible, noMargin, notificationType }: {
|
|
5
5
|
centered: any;
|
|
6
|
+
dismissible: any;
|
|
6
7
|
noMargin: any;
|
|
7
8
|
notificationType: any;
|
|
8
9
|
}) => {
|
|
9
10
|
bg: string;
|
|
10
11
|
display: string;
|
|
11
12
|
fontSize: string;
|
|
12
|
-
padding: string;
|
|
13
13
|
position: string;
|
|
14
14
|
textAlign: string;
|
|
15
15
|
borderRadius: string;
|
|
16
16
|
margin: string;
|
|
17
17
|
container: {
|
|
18
18
|
margin: string;
|
|
19
|
-
width: string;
|
|
20
19
|
maxWidth: string;
|
|
20
|
+
padding: string;
|
|
21
|
+
paddingRight: string;
|
|
22
|
+
paddingLeft: string;
|
|
23
|
+
width: string;
|
|
21
24
|
};
|
|
22
25
|
dismissibleButton: {
|
|
23
26
|
border: string;
|
|
24
|
-
alignItems: string;
|
|
25
27
|
bgColor: string;
|
|
28
|
+
alignItems: string;
|
|
26
29
|
color: string;
|
|
27
30
|
display: string;
|
|
28
31
|
height: string;
|
|
@@ -31,6 +34,9 @@ declare const _default: {
|
|
|
31
34
|
position: string;
|
|
32
35
|
right: string;
|
|
33
36
|
top: string;
|
|
37
|
+
svg: {
|
|
38
|
+
marginTop: string;
|
|
39
|
+
};
|
|
34
40
|
_hover: {
|
|
35
41
|
bg: string;
|
|
36
42
|
};
|
|
@@ -55,6 +61,12 @@ declare const _default: {
|
|
|
55
61
|
marginTop: string;
|
|
56
62
|
paddingLeft: string;
|
|
57
63
|
width: string;
|
|
64
|
+
a: {
|
|
65
|
+
color: string;
|
|
66
|
+
_hover: {
|
|
67
|
+
color: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
58
70
|
};
|
|
59
71
|
};
|
|
60
72
|
};
|
|
@@ -57,11 +57,9 @@ declare const Radio: {
|
|
|
57
57
|
};
|
|
58
58
|
label: {
|
|
59
59
|
userSelect: string;
|
|
60
|
-
fontSize: string;
|
|
61
60
|
fontWeight: string;
|
|
62
61
|
marginBottom: string;
|
|
63
62
|
marginLeft: string;
|
|
64
|
-
verticalAlign: string;
|
|
65
63
|
_disabled: {
|
|
66
64
|
color: string;
|
|
67
65
|
opacity: number;
|
|
@@ -86,6 +84,9 @@ declare const Radio: {
|
|
|
86
84
|
h: string;
|
|
87
85
|
w: string;
|
|
88
86
|
};
|
|
87
|
+
label: {
|
|
88
|
+
fontSize: string;
|
|
89
|
+
};
|
|
89
90
|
};
|
|
90
91
|
};
|
|
91
92
|
defaultProps: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const SearchBar: {
|
|
2
|
+
parts: string[];
|
|
2
3
|
baseStyle: {
|
|
3
4
|
display: string;
|
|
4
5
|
marginBottom: {
|
|
@@ -9,6 +10,9 @@ declare const SearchBar: {
|
|
|
9
10
|
base: string;
|
|
10
11
|
md: string;
|
|
11
12
|
};
|
|
13
|
+
select: {
|
|
14
|
+
marginBottom: string;
|
|
15
|
+
};
|
|
12
16
|
};
|
|
13
17
|
};
|
|
14
18
|
export default SearchBar;
|
|
@@ -10,6 +10,7 @@ declare const Select: {
|
|
|
10
10
|
backgroundColor: string;
|
|
11
11
|
borderRadius: string;
|
|
12
12
|
borderColor: string;
|
|
13
|
+
fontSize: string;
|
|
13
14
|
paddingTop: string;
|
|
14
15
|
paddingRight: string;
|
|
15
16
|
paddingBottom: string;
|
|
@@ -18,18 +19,10 @@ declare const Select: {
|
|
|
18
19
|
borderColor: string;
|
|
19
20
|
};
|
|
20
21
|
_active: {
|
|
21
|
-
border: string;
|
|
22
|
-
borderColor: string;
|
|
23
|
-
zIndex: string;
|
|
24
22
|
outline: string;
|
|
23
|
+
outlineOffset: string;
|
|
25
24
|
outlineColor: string;
|
|
26
|
-
};
|
|
27
|
-
_focus: {
|
|
28
|
-
border: string;
|
|
29
|
-
borderColor: string;
|
|
30
25
|
zIndex: string;
|
|
31
|
-
outline: string;
|
|
32
|
-
outlineColor: string;
|
|
33
26
|
};
|
|
34
27
|
_disabled: {
|
|
35
28
|
color: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const CustomSlider: {
|
|
2
2
|
parts: string[];
|
|
3
|
-
baseStyle: ({ isDisabled, isInvalid,
|
|
3
|
+
baseStyle: ({ isDisabled, isInvalid, showBoxes, showValues }: {
|
|
4
4
|
isDisabled: any;
|
|
5
5
|
isInvalid: any;
|
|
6
|
-
isRangeSlider: any;
|
|
7
6
|
showBoxes: any;
|
|
7
|
+
showValues: any;
|
|
8
8
|
}) => {
|
|
9
9
|
container: {
|
|
10
10
|
display: string;
|
|
@@ -14,21 +14,25 @@ declare const CustomSlider: {
|
|
|
14
14
|
marginTop: string;
|
|
15
15
|
};
|
|
16
16
|
leftValue: {
|
|
17
|
-
marginLeft: string;
|
|
18
17
|
marginTop: string;
|
|
19
18
|
marginBottom: string;
|
|
20
19
|
marginRight: string;
|
|
20
|
+
marginLeft: string;
|
|
21
21
|
};
|
|
22
22
|
rightValue: {
|
|
23
|
+
marginLeft: string;
|
|
23
24
|
marginRight: string;
|
|
24
25
|
marginTop: string;
|
|
25
26
|
marginBottom: string;
|
|
26
|
-
marginLeft: string;
|
|
27
27
|
};
|
|
28
28
|
textInput: {
|
|
29
29
|
minWidth: string;
|
|
30
30
|
color: string;
|
|
31
31
|
};
|
|
32
|
+
sliderContainer: {
|
|
33
|
+
marginLeft: string;
|
|
34
|
+
marginRight: string;
|
|
35
|
+
};
|
|
32
36
|
filledTrack: {
|
|
33
37
|
bgColor: string;
|
|
34
38
|
};
|
|
@@ -8,24 +8,24 @@ declare const StructuredContent: {
|
|
|
8
8
|
imageFigure: {
|
|
9
9
|
marginBottom: string;
|
|
10
10
|
maxWidth?: string;
|
|
11
|
-
float: any;
|
|
12
|
-
marginLeft: string;
|
|
13
|
-
marginRight: string;
|
|
11
|
+
float: any[];
|
|
12
|
+
marginLeft: string[];
|
|
13
|
+
marginRight: string[];
|
|
14
14
|
width: string;
|
|
15
15
|
};
|
|
16
16
|
imageWrapper: {
|
|
17
17
|
marginBottom: string;
|
|
18
18
|
maxWidth?: string;
|
|
19
|
-
float: any;
|
|
20
|
-
marginLeft: string;
|
|
21
|
-
marginRight: string;
|
|
19
|
+
float: any[];
|
|
20
|
+
marginLeft: string[];
|
|
21
|
+
marginRight: string[];
|
|
22
22
|
width: string;
|
|
23
23
|
};
|
|
24
24
|
image: {
|
|
25
25
|
maxWidth?: string;
|
|
26
|
-
float: any;
|
|
27
|
-
marginLeft: string;
|
|
28
|
-
marginRight: string;
|
|
26
|
+
float: any[];
|
|
27
|
+
marginLeft: string[];
|
|
28
|
+
marginRight: string[];
|
|
29
29
|
marginBottom: string;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
@@ -10,6 +10,7 @@ declare const TextInput: {
|
|
|
10
10
|
border: string;
|
|
11
11
|
borderColor: string;
|
|
12
12
|
borderRadius: string;
|
|
13
|
+
fontSize: string;
|
|
13
14
|
py: string;
|
|
14
15
|
px: string;
|
|
15
16
|
_hover: {
|
|
@@ -21,18 +22,16 @@ declare const TextInput: {
|
|
|
21
22
|
opacity: string;
|
|
22
23
|
};
|
|
23
24
|
_active: {
|
|
24
|
-
border: string;
|
|
25
|
-
borderColor: string;
|
|
26
|
-
zIndex: string;
|
|
27
25
|
outline: string;
|
|
26
|
+
outlineOffset: string;
|
|
28
27
|
outlineColor: string;
|
|
28
|
+
zIndex: string;
|
|
29
29
|
};
|
|
30
30
|
_focus: {
|
|
31
|
-
border: string;
|
|
32
|
-
borderColor: string;
|
|
33
|
-
zIndex: string;
|
|
34
31
|
outline: string;
|
|
32
|
+
outlineOffset: string;
|
|
35
33
|
outlineColor: string;
|
|
34
|
+
zIndex: string;
|
|
36
35
|
};
|
|
37
36
|
_placeholder: {
|
|
38
37
|
color: string;
|
|
@@ -52,6 +51,7 @@ declare const TextInput: {
|
|
|
52
51
|
border: string;
|
|
53
52
|
borderColor: string;
|
|
54
53
|
borderRadius: string;
|
|
54
|
+
fontSize: string;
|
|
55
55
|
py: string;
|
|
56
56
|
px: string;
|
|
57
57
|
_hover: {
|
|
@@ -63,18 +63,16 @@ declare const TextInput: {
|
|
|
63
63
|
opacity: string;
|
|
64
64
|
};
|
|
65
65
|
_active: {
|
|
66
|
-
border: string;
|
|
67
|
-
borderColor: string;
|
|
68
|
-
zIndex: string;
|
|
69
66
|
outline: string;
|
|
67
|
+
outlineOffset: string;
|
|
70
68
|
outlineColor: string;
|
|
69
|
+
zIndex: string;
|
|
71
70
|
};
|
|
72
71
|
_focus: {
|
|
73
|
-
border: string;
|
|
74
|
-
borderColor: string;
|
|
75
|
-
zIndex: string;
|
|
76
72
|
outline: string;
|
|
73
|
+
outlineOffset: string;
|
|
77
74
|
outlineColor: string;
|
|
75
|
+
zIndex: string;
|
|
78
76
|
};
|
|
79
77
|
_placeholder: {
|
|
80
78
|
color: string;
|
|
@@ -3,8 +3,8 @@ declare const _default: {
|
|
|
3
3
|
parts: string[];
|
|
4
4
|
baseStyle: {
|
|
5
5
|
label: {
|
|
6
|
-
display: string;
|
|
7
6
|
alignItems: string;
|
|
7
|
+
display: string;
|
|
8
8
|
width: string;
|
|
9
9
|
};
|
|
10
10
|
helper: {
|
|
@@ -18,7 +18,10 @@ declare const _default: {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
Switch: {
|
|
21
|
-
baseStyle: {
|
|
21
|
+
baseStyle: ({ size }: {
|
|
22
|
+
size: any;
|
|
23
|
+
}) => {
|
|
24
|
+
alignItems: string;
|
|
22
25
|
opacity: number;
|
|
23
26
|
track: {
|
|
24
27
|
border: string;
|
|
@@ -53,6 +56,7 @@ declare const _default: {
|
|
|
53
56
|
label: {
|
|
54
57
|
fontSize: string;
|
|
55
58
|
marginLeft: string;
|
|
59
|
+
marginTop: string;
|
|
56
60
|
_disabled: {
|
|
57
61
|
fontStyle: string;
|
|
58
62
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* These rules affect all the global elements on the `body` element of the
|
|
3
|
-
* page when the `DSProvider` component is used.
|
|
4
|
-
* `nypl-ds` CSS class name is not used in a consuming application, these
|
|
5
|
-
* rules will still take effect.
|
|
3
|
+
* page when the `DSProvider` component is used.
|
|
6
4
|
*/
|
|
7
5
|
declare const global: {
|
|
8
6
|
body: {
|
|
@@ -21,8 +19,38 @@ declare const global: {
|
|
|
21
19
|
svg: {
|
|
22
20
|
display: string;
|
|
23
21
|
};
|
|
22
|
+
"button, select, input, textarea": {
|
|
23
|
+
"&:not([disabled])": {
|
|
24
|
+
_focus: {
|
|
25
|
+
outline: string;
|
|
26
|
+
outlineOffset: string;
|
|
27
|
+
outlineColor: string;
|
|
28
|
+
zIndex: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
"iframe, [href], [tabindex], [contentEditable='true']": {
|
|
33
|
+
_focus: {
|
|
34
|
+
outline: string;
|
|
35
|
+
outlineOffset: string;
|
|
36
|
+
outlineColor: string;
|
|
37
|
+
zIndex: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
24
40
|
p: {
|
|
25
41
|
margin: string;
|
|
42
|
+
marginBottom: string;
|
|
43
|
+
};
|
|
44
|
+
ul: {
|
|
45
|
+
margin: string;
|
|
46
|
+
marginBottom: string;
|
|
47
|
+
};
|
|
48
|
+
ol: {
|
|
49
|
+
margin: string;
|
|
50
|
+
marginBottom: string;
|
|
51
|
+
};
|
|
52
|
+
"*, *::before, &::after": {
|
|
53
|
+
boxSizing: string;
|
|
26
54
|
};
|
|
27
55
|
};
|
|
28
56
|
export default global;
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -20,3 +20,13 @@ export declare const getStorybookEnumValues: (enumObject: any, name: any) => {
|
|
|
20
20
|
options: string[];
|
|
21
21
|
getValue: (key: any) => any;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Given a pagination's pageCount, this will return (1) a page number,
|
|
25
|
+
* derived from the current URL, and (2) a function that, when passed to
|
|
26
|
+
* Pagination component, makes the URL change and refreshes the page.
|
|
27
|
+
* @NOTE this is only used for Storybook documentation.
|
|
28
|
+
*/
|
|
29
|
+
export declare const getStorybookHrefProps: (pageCount: any) => {
|
|
30
|
+
computedCurrentPage: number;
|
|
31
|
+
getPageHref: (selectedPage: any) => string;
|
|
32
|
+
};
|