@nypl/design-system-react-components 1.5.4 → 1.6.0-vite-rc-2
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 +24 -40
- package/dist/design-system-react-components.cjs +304 -0
- package/dist/design-system-react-components.js +42142 -0
- package/dist/{components → src/components}/Accordion/Accordion.d.ts +29 -29
- package/dist/{components → src/components}/AlphabetFilter/AlphabetFilter.d.ts +23 -23
- package/dist/{components → src/components}/AudioPlayer/AudioPlayer.d.ts +43 -43
- package/dist/{components → src/components}/Breadcrumbs/Breadcrumbs.d.ts +24 -18
- package/dist/{components → src/components}/Button/Button.d.ts +33 -30
- package/dist/{components → src/components}/ButtonGroup/ButtonGroup.d.ts +25 -24
- package/dist/{components → src/components}/Card/Card.d.ts +55 -55
- package/dist/{components → src/components}/Checkbox/Checkbox.d.ts +47 -47
- package/dist/{components → src/components}/CheckboxGroup/CheckboxGroup.d.ts +51 -51
- package/dist/{components → src/components}/ComponentWrapper/ComponentWrapper.d.ts +31 -31
- package/dist/{components → src/components}/DatePicker/DatePicker.d.ts +82 -81
- package/dist/{components → src/components}/FeedbackBox/FeedbackBox.d.ts +64 -63
- package/dist/{components → src/components}/FeedbackBox/useFeedbackBoxReducer.d.ts +19 -19
- package/dist/{components → src/components}/Fieldset/Fieldset.d.ts +24 -24
- package/dist/{components → src/components}/FilterBar/FilterBar.d.ts +61 -111
- package/dist/{components → src/components}/Footer/Footer.d.ts +14 -14
- package/dist/{components → src/components}/Footer/footerLinks.d.ts +12 -12
- package/dist/{components → src/components}/Form/Form.d.ts +31 -31
- package/dist/{components → src/components}/Grid/SimpleGrid.d.ts +20 -19
- package/dist/{components → src/components}/Header/Header.d.ts +21 -22
- package/dist/{components → src/components}/Header/components/HeaderLogin.d.ts +12 -12
- package/dist/{components → src/components}/Header/components/HeaderLoginButton.d.ts +10 -11
- package/dist/{components → src/components}/Header/components/HeaderLowerNav.d.ts +6 -7
- package/dist/{components → src/components}/Header/components/HeaderMobileIconNav.d.ts +6 -7
- package/dist/{components → src/components}/Header/components/HeaderMobileNav.d.ts +6 -7
- package/dist/{components → src/components}/Header/components/HeaderMobileNavButton.d.ts +6 -7
- package/dist/{components → src/components}/Header/components/HeaderSearchButton.d.ts +9 -10
- package/dist/{components → src/components}/Header/components/HeaderSearchForm.d.ts +10 -11
- package/dist/{components → src/components}/Header/components/HeaderSitewideAlerts.d.ts +7 -8
- package/dist/{components → src/components}/Header/components/HeaderUpperNav.d.ts +7 -8
- package/dist/{components → src/components}/Header/context/headerContext.d.ts +13 -13
- package/dist/{components → src/components}/Header/utils/googleAnalyticsUtils.d.ts +16 -16
- package/dist/{components → src/components}/Header/utils/headerUtils.d.ts +94 -94
- package/dist/{components → src/components}/Heading/Heading.d.ts +37 -35
- package/dist/{components → src/components}/HelperErrorText/HelperErrorText.d.ts +34 -34
- package/dist/{components → src/components}/Hero/Hero.d.ts +43 -42
- package/dist/{components → src/components}/HorizontalRule/HorizontalRule.d.ts +11 -11
- package/dist/{components → src/components}/Icons/Icon.d.ts +40 -41
- package/dist/src/components/Icons/IconSvgs.d.ts +163 -0
- package/dist/src/components/Icons/iconVariables.d.ts +6 -0
- package/dist/{components → src/components}/Image/Image.d.ts +68 -65
- package/dist/{components → src/components}/Label/Label.d.ts +25 -25
- package/dist/{components → src/components}/Link/Link.d.ts +22 -21
- package/dist/{components → src/components}/List/List.d.ts +42 -42
- package/dist/{components → src/components}/Logo/Logo.d.ts +28 -28
- package/dist/src/components/Logo/LogoSvgs.d.ts +157 -0
- package/dist/{components → src/components}/Modal/Modal.d.ts +35 -35
- package/dist/{components → src/components}/MultiSelect/MultiSelect.d.ts +61 -78
- package/dist/{components → src/components}/MultiSelect/MultiSelectDialog.d.ts +8 -8
- package/dist/{components → src/components}/MultiSelect/MultiSelectListbox.d.ts +9 -9
- package/dist/{components → src/components}/MultiSelect/MultiSelectMenuButton.d.ts +27 -27
- package/dist/{components → src/components}/MultiSelectGroup/MultiSelectGroup.d.ts +28 -26
- package/dist/{components → src/components}/Notification/Notification.d.ts +52 -51
- package/dist/{components → src/components}/Pagination/Pagination.d.ts +27 -27
- package/dist/{components → src/components}/ProgressIndicator/ProgressIndicator.d.ts +32 -30
- package/dist/{components → src/components}/Radio/Radio.d.ts +43 -43
- package/dist/{components → src/components}/RadioGroup/RadioGroup.d.ts +51 -51
- package/dist/{components → src/components}/SearchBar/SearchBar.d.ts +58 -58
- package/dist/{components → src/components}/Select/Select.d.ts +59 -57
- package/dist/{components → src/components}/SkeletonLoader/SkeletonLoader.d.ts +42 -41
- package/dist/{components → src/components}/SkipNavigation/SkipNavigation.d.ts +19 -19
- package/dist/{components → src/components}/Slider/Slider.d.ts +65 -65
- package/dist/{components → src/components}/StatusBadge/StatusBadge.d.ts +19 -18
- package/dist/{components → src/components}/StructuredContent/StructuredContent.d.ts +30 -30
- package/dist/src/components/StyleGuide/ColorCard.d.ts +342 -0
- package/dist/{components → src/components}/StyledList/StyledList.d.ts +25 -25
- package/dist/{components → src/components}/Table/Table.d.ts +32 -32
- package/dist/{components → src/components}/Tabs/Tabs.d.ts +28 -28
- package/dist/{components → src/components}/TagSet/TagSet.d.ts +24 -32
- package/dist/{components → src/components}/TagSet/TagSetExplore.d.ts +28 -27
- package/dist/{components → src/components}/TagSet/TagSetFilter.d.ts +25 -26
- package/dist/src/components/TagSet/TooltipWrapper.d.ts +9 -0
- package/dist/{components → src/components}/Template/Template.d.ts +140 -140
- package/dist/{components → src/components}/Text/Text.d.ts +25 -24
- package/dist/{components → src/components}/TextInput/TextInput.d.ts +89 -88
- package/dist/{components → src/components}/Toggle/Toggle.d.ts +43 -42
- package/dist/{components → src/components}/Tooltip/Tooltip.d.ts +17 -17
- package/dist/{components → src/components}/VideoPlayer/VideoPlayer.d.ts +42 -40
- package/dist/src/helpers/types.d.ts +2 -0
- package/dist/{hooks → src/hooks}/useCarouselStyles.d.ts +17 -17
- package/dist/{hooks → src/hooks}/useCloseDropDown.d.ts +7 -7
- package/dist/{hooks → src/hooks}/useFilterBar.d.ts +21 -21
- package/dist/{hooks → src/hooks}/useMultiSelect.d.ts +15 -15
- package/dist/{hooks → src/hooks}/useNYPLBreakpoints.d.ts +13 -13
- package/dist/{hooks → src/hooks}/useNYPLTheme.d.ts +67 -67
- package/dist/{hooks → src/hooks}/useStateWithDependencies.d.ts +5 -5
- package/dist/{hooks → src/hooks}/useWindowSize.d.ts +10 -10
- package/dist/src/index.d.ts +91 -0
- package/dist/{theme → src/theme}/components/accordion.d.ts +34 -34
- package/dist/{theme → src/theme}/components/alphabetFilter.d.ts +33 -33
- package/dist/{theme → src/theme}/components/audioPlayer.d.ts +16 -16
- package/dist/{theme → src/theme}/components/breadcrumb.d.ts +138 -151
- package/dist/{theme → src/theme}/components/button.d.ts +113 -113
- package/dist/{theme → src/theme}/components/buttonGroup.d.ts +11 -11
- package/dist/{theme → src/theme}/components/card.d.ts +421 -421
- package/dist/{theme → src/theme}/components/checkbox.d.ts +178 -178
- package/dist/{theme → src/theme}/components/checkboxGroup.d.ts +14 -14
- package/dist/{theme → src/theme}/components/componentWrapper.d.ts +12 -12
- package/dist/{theme → src/theme}/components/customTable.d.ts +733 -733
- package/dist/{theme → src/theme}/components/datePicker.d.ts +17 -17
- package/dist/{theme → src/theme}/components/feedbackBox.d.ts +92 -92
- package/dist/{theme → src/theme}/components/fieldset.d.ts +23 -23
- package/dist/{theme → src/theme}/components/filterBar.d.ts +46 -46
- package/dist/{theme → src/theme}/components/footer.d.ts +244 -244
- package/dist/{theme → src/theme}/components/global.d.ts +140 -140
- package/dist/{theme → src/theme}/components/globalMixins.d.ts +40 -40
- package/dist/{theme → src/theme}/components/header/header.d.ts +72 -72
- package/dist/{theme → src/theme}/components/header/headerLogin.d.ts +327 -327
- package/dist/{theme → src/theme}/components/header/headerLoginButton.d.ts +69 -69
- package/dist/{theme → src/theme}/components/header/headerLowerNav.d.ts +70 -70
- package/dist/{theme → src/theme}/components/header/headerMobileIconNav.d.ts +28 -28
- package/dist/{theme → src/theme}/components/header/headerMobileNav.d.ts +86 -86
- package/dist/{theme → src/theme}/components/header/headerMobileNavButton.d.ts +34 -34
- package/dist/{theme → src/theme}/components/header/headerSearchButton.d.ts +83 -83
- package/dist/{theme → src/theme}/components/header/headerSearchForm.d.ts +183 -183
- package/dist/{theme → src/theme}/components/header/headerSitewideAlerts.d.ts +42 -42
- package/dist/{theme → src/theme}/components/header/headerUpperNav.d.ts +72 -72
- package/dist/{theme → src/theme}/components/heading.d.ts +173 -173
- package/dist/{theme → src/theme}/components/helperErrorText.d.ts +15 -15
- package/dist/{theme → src/theme}/components/hero.d.ts +628 -628
- package/dist/{theme → src/theme}/components/horizontalRule.d.ts +18 -18
- package/dist/{theme → src/theme}/components/icon.d.ts +62251 -62251
- package/dist/{theme → src/theme}/components/image.d.ts +662 -662
- package/dist/{theme → src/theme}/components/label.d.ts +21 -21
- package/dist/{theme → src/theme}/components/link.d.ts +106 -106
- package/dist/{theme → src/theme}/components/list.d.ts +228 -228
- package/dist/{theme → src/theme}/components/logo.d.ts +477 -477
- package/dist/{theme → src/theme}/components/modal.d.ts +21 -21
- package/dist/{theme → src/theme}/components/multiSelect.d.ts +29 -29
- package/dist/{theme → src/theme}/components/multiSelectMenuButton.d.ts +95 -95
- package/dist/{theme → src/theme}/components/notification.d.ts +136 -136
- package/dist/{theme → src/theme}/components/pagination.d.ts +16 -16
- package/dist/{theme → src/theme}/components/progressIndicator.d.ts +68 -68
- package/dist/{theme → src/theme}/components/radio.d.ts +202 -202
- package/dist/{theme → src/theme}/components/radioGroup.d.ts +14 -14
- package/dist/{theme → src/theme}/components/searchBar.d.ts +34 -34
- package/dist/{theme → src/theme}/components/select.d.ts +125 -126
- package/dist/{theme → src/theme}/components/skeletonLoader.d.ts +105 -105
- package/dist/{theme → src/theme}/components/skipNavigation.d.ts +28 -28
- package/dist/{theme → src/theme}/components/slider.d.ts +78 -78
- package/dist/{theme → src/theme}/components/statusBadge.d.ts +37 -37
- package/dist/{theme → src/theme}/components/structuredContent.d.ts +385 -385
- package/dist/{theme → src/theme}/components/styledList.d.ts +51 -51
- package/dist/{theme → src/theme}/components/tabs.d.ts +172 -172
- package/dist/{theme → src/theme}/components/tagSet.d.ts +154 -154
- package/dist/{theme → src/theme}/components/template.d.ts +86 -86
- package/dist/{theme → src/theme}/components/text.d.ts +30 -30
- package/dist/{theme → src/theme}/components/textInput.d.ts +349 -355
- package/dist/{theme → src/theme}/components/toggle.d.ts +129 -129
- package/dist/{theme → src/theme}/components/tooltip.d.ts +19 -19
- package/dist/{theme → src/theme}/components/videoPlayer.d.ts +47 -47
- package/dist/{theme → src/theme}/foundations/breakpoints.d.ts +23 -23
- package/dist/{theme → src/theme}/foundations/colors.d.ts +3 -3
- package/dist/{theme → src/theme}/foundations/global.d.ts +68 -68
- package/dist/{theme → src/theme}/foundations/radii.d.ts +11 -11
- package/dist/{theme → src/theme}/foundations/shadows.d.ts +4 -4
- package/dist/{theme → src/theme}/foundations/spacing.d.ts +96 -96
- package/dist/{theme → src/theme}/foundations/typography.d.ts +8 -8
- package/dist/{theme → src/theme}/index.d.ts +20 -20
- package/dist/{theme → src/theme}/provider.d.ts +4 -4
- package/dist/src/theme/types.d.ts +1 -0
- package/dist/src/utils/colorUtils.d.ts +5 -0
- package/dist/{utils → src/utils}/interfaces.d.ts +5 -5
- package/dist/{utils → src/utils}/utils.d.ts +39 -39
- package/dist/styles.css +1 -4
- package/package.json +62 -69
- package/dist/__tests__/fileMock.d.ts +0 -4
- package/dist/__tests__/mediaMatchMock.d.ts +0 -79
- package/dist/__tests__/setup.d.ts +0 -2
- package/dist/__tests__/utils/utils.test.d.ts +0 -1
- package/dist/components/Autosuggest/Autosuggest.stories.d.ts +0 -4
- package/dist/components/FilterBar/FilterBar.stories.d.ts +0 -7
- package/dist/components/Header/utils/authApiMockResponse.d.ts +0 -49
- package/dist/components/Header/utils/encoreCatalogLogOutTimer.d.ts +0 -4
- package/dist/components/Header/utils/encoreCatalogLogOutTimer.test.d.ts +0 -1
- package/dist/components/Header/utils/googleAnalyticsUtils.test.d.ts +0 -1
- package/dist/components/Header/utils/headerUtils.test.d.ts +0 -1
- package/dist/components/Header/utils/sitewideAlertsMocks.d.ts +0 -98
- package/dist/components/Icons/IconColors.d.ts +0 -3
- package/dist/components/Icons/IconNames.d.ts +0 -3
- package/dist/components/Icons/IconSvgs.d.ts +0 -58
- package/dist/components/Logo/LogoSvgs.d.ts +0 -54
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +0 -4
- package/dist/components/MultiSelectGroup/MultiSelectGroup.stories.d.ts +0 -4
- package/dist/components/Placeholder/Placeholder.d.ts +0 -10
- package/dist/components/StyleGuide/ColorCard.d.ts +0 -46
- package/dist/design-system-react-components.cjs.development.js +0 -18076
- package/dist/design-system-react-components.cjs.development.js.map +0 -1
- package/dist/design-system-react-components.cjs.production.min.js +0 -2
- package/dist/design-system-react-components.cjs.production.min.js.map +0 -1
- package/dist/design-system-react-components.esm.js +0 -17874
- package/dist/design-system-react-components.esm.js.map +0 -1
- package/dist/helpers/types.d.ts +0 -1
- package/dist/hooks/__tests__/useCarouselStyles.test.d.ts +0 -1
- package/dist/hooks/__tests__/useFilterBar.test.d.ts +0 -1
- package/dist/hooks/__tests__/useMultiSelect.test.d.ts +0 -1
- package/dist/hooks/__tests__/useNYPLBreakpoints.test.d.ts +0 -1
- package/dist/index.d.ts +0 -66
- package/dist/index.js +0 -8
- package/dist/resources.scss +0 -382
- package/dist/theme/types.d.ts +0 -1
- package/dist/utils/componentCategories.d.ts +0 -1
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
/** Export "mixin" styles. */
|
|
2
|
-
export { screenreaderOnly, wrapperStyles } from "./globalMixins";
|
|
3
|
-
/** Reusable component styles. */
|
|
4
|
-
declare const activeFocus: (darkMode?: boolean) => {
|
|
5
|
-
boxShadow: string;
|
|
6
|
-
outline: string;
|
|
7
|
-
outlineOffset: string;
|
|
8
|
-
outlineColor: string;
|
|
9
|
-
zIndex: string;
|
|
10
|
-
_dark: {
|
|
11
|
-
outlineColor: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
declare const checkboxRadioLabelStyles: {
|
|
15
|
-
userSelect: string;
|
|
16
|
-
fontWeight: string;
|
|
17
|
-
marginBottom: string;
|
|
18
|
-
marginStart: string;
|
|
19
|
-
width: string;
|
|
20
|
-
_disabled: {
|
|
21
|
-
color: string;
|
|
22
|
-
opacity: number;
|
|
23
|
-
fontStyle: string;
|
|
24
|
-
};
|
|
25
|
-
_invalid: {
|
|
26
|
-
color: string;
|
|
27
|
-
};
|
|
28
|
-
_dark: {
|
|
29
|
-
_disabled: {
|
|
30
|
-
color: string;
|
|
31
|
-
};
|
|
32
|
-
_invalid: {
|
|
33
|
-
color: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
declare const checkboxRadioControlSize: {
|
|
38
|
-
h: string;
|
|
39
|
-
w: string;
|
|
40
|
-
};
|
|
41
|
-
declare const checkboxRadioHelperErrorTextStyle: {
|
|
42
|
-
marginStart: string;
|
|
43
|
-
_disabled: {
|
|
44
|
-
color: string;
|
|
45
|
-
fontStyle: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
declare const checkboxRadioHoverStyles: {
|
|
49
|
-
_hover: {
|
|
50
|
-
span: {
|
|
51
|
-
_first: {
|
|
52
|
-
borderColor: string;
|
|
53
|
-
};
|
|
54
|
-
_checked: {
|
|
55
|
-
borderColor: string;
|
|
56
|
-
};
|
|
57
|
-
_disabled: {
|
|
58
|
-
borderColor: string;
|
|
59
|
-
};
|
|
60
|
-
_invalid: {
|
|
61
|
-
borderColor: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
_dark: {
|
|
65
|
-
span: {
|
|
66
|
-
_first: {
|
|
67
|
-
borderColor: string;
|
|
68
|
-
};
|
|
69
|
-
_checked: {
|
|
70
|
-
borderColor: string;
|
|
71
|
-
};
|
|
72
|
-
_disabled: {
|
|
73
|
-
borderColor: string;
|
|
74
|
-
};
|
|
75
|
-
_invalid: {
|
|
76
|
-
borderColor: string;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
declare const checkboxRadioGroupStyles: (isFullWidth?: boolean) => {
|
|
83
|
-
helperErrorText: {
|
|
84
|
-
marginTop: string;
|
|
85
|
-
};
|
|
86
|
-
label: {
|
|
87
|
-
width: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
declare const defaultElementSizes: {
|
|
91
|
-
mobileFieldHeight: string;
|
|
92
|
-
};
|
|
93
|
-
declare const labelLegendText: {
|
|
94
|
-
display: string;
|
|
95
|
-
fontSize: string;
|
|
96
|
-
fontWeight: string;
|
|
97
|
-
marginBottom: string;
|
|
98
|
-
width: string;
|
|
99
|
-
span: {
|
|
100
|
-
fontWeight: string;
|
|
101
|
-
};
|
|
102
|
-
_dark: {
|
|
103
|
-
color: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
declare const selectTextInputDisabledStyles: {
|
|
107
|
-
bg: string;
|
|
108
|
-
borderColor: string;
|
|
109
|
-
color: string;
|
|
110
|
-
opacity: string;
|
|
111
|
-
_dark: {
|
|
112
|
-
bg: string;
|
|
113
|
-
borderColor: string;
|
|
114
|
-
color: string;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
declare const selectTextInputFocusStyles: {
|
|
118
|
-
borderColor: string;
|
|
119
|
-
_dark: {
|
|
120
|
-
borderColor: string;
|
|
121
|
-
boxShadow: string;
|
|
122
|
-
outline: string;
|
|
123
|
-
outlineOffset: string;
|
|
124
|
-
outlineColor: string;
|
|
125
|
-
zIndex: string;
|
|
126
|
-
_dark: {
|
|
127
|
-
outlineColor: string;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
boxShadow: string;
|
|
131
|
-
outline: string;
|
|
132
|
-
outlineOffset: string;
|
|
133
|
-
outlineColor: string;
|
|
134
|
-
zIndex: string;
|
|
135
|
-
};
|
|
136
|
-
declare const textMargin: {
|
|
137
|
-
margin: string;
|
|
138
|
-
marginBottom: string;
|
|
139
|
-
};
|
|
140
|
-
export { activeFocus, checkboxRadioControlSize, checkboxRadioGroupStyles, checkboxRadioHelperErrorTextStyle, checkboxRadioHoverStyles, checkboxRadioLabelStyles, defaultElementSizes, labelLegendText, selectTextInputDisabledStyles, selectTextInputFocusStyles, textMargin, };
|
|
1
|
+
/** Export "mixin" styles. */
|
|
2
|
+
export { screenreaderOnly, wrapperStyles } from "./globalMixins";
|
|
3
|
+
/** Reusable component styles. */
|
|
4
|
+
declare const activeFocus: (darkMode?: boolean) => {
|
|
5
|
+
boxShadow: string;
|
|
6
|
+
outline: string;
|
|
7
|
+
outlineOffset: string;
|
|
8
|
+
outlineColor: string;
|
|
9
|
+
zIndex: string;
|
|
10
|
+
_dark: {
|
|
11
|
+
outlineColor: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
declare const checkboxRadioLabelStyles: {
|
|
15
|
+
userSelect: string;
|
|
16
|
+
fontWeight: string;
|
|
17
|
+
marginBottom: string;
|
|
18
|
+
marginStart: string;
|
|
19
|
+
width: string;
|
|
20
|
+
_disabled: {
|
|
21
|
+
color: string;
|
|
22
|
+
opacity: number;
|
|
23
|
+
fontStyle: string;
|
|
24
|
+
};
|
|
25
|
+
_invalid: {
|
|
26
|
+
color: string;
|
|
27
|
+
};
|
|
28
|
+
_dark: {
|
|
29
|
+
_disabled: {
|
|
30
|
+
color: string;
|
|
31
|
+
};
|
|
32
|
+
_invalid: {
|
|
33
|
+
color: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
declare const checkboxRadioControlSize: {
|
|
38
|
+
h: string;
|
|
39
|
+
w: string;
|
|
40
|
+
};
|
|
41
|
+
declare const checkboxRadioHelperErrorTextStyle: {
|
|
42
|
+
marginStart: string;
|
|
43
|
+
_disabled: {
|
|
44
|
+
color: string;
|
|
45
|
+
fontStyle: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
declare const checkboxRadioHoverStyles: {
|
|
49
|
+
_hover: {
|
|
50
|
+
span: {
|
|
51
|
+
_first: {
|
|
52
|
+
borderColor: string;
|
|
53
|
+
};
|
|
54
|
+
_checked: {
|
|
55
|
+
borderColor: string;
|
|
56
|
+
};
|
|
57
|
+
_disabled: {
|
|
58
|
+
borderColor: string;
|
|
59
|
+
};
|
|
60
|
+
_invalid: {
|
|
61
|
+
borderColor: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
_dark: {
|
|
65
|
+
span: {
|
|
66
|
+
_first: {
|
|
67
|
+
borderColor: string;
|
|
68
|
+
};
|
|
69
|
+
_checked: {
|
|
70
|
+
borderColor: string;
|
|
71
|
+
};
|
|
72
|
+
_disabled: {
|
|
73
|
+
borderColor: string;
|
|
74
|
+
};
|
|
75
|
+
_invalid: {
|
|
76
|
+
borderColor: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
declare const checkboxRadioGroupStyles: (isFullWidth?: boolean) => {
|
|
83
|
+
helperErrorText: {
|
|
84
|
+
marginTop: string;
|
|
85
|
+
};
|
|
86
|
+
label: {
|
|
87
|
+
width: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
declare const defaultElementSizes: {
|
|
91
|
+
mobileFieldHeight: string;
|
|
92
|
+
};
|
|
93
|
+
declare const labelLegendText: {
|
|
94
|
+
display: string;
|
|
95
|
+
fontSize: string;
|
|
96
|
+
fontWeight: string;
|
|
97
|
+
marginBottom: string;
|
|
98
|
+
width: string;
|
|
99
|
+
span: {
|
|
100
|
+
fontWeight: string;
|
|
101
|
+
};
|
|
102
|
+
_dark: {
|
|
103
|
+
color: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
declare const selectTextInputDisabledStyles: {
|
|
107
|
+
bg: string;
|
|
108
|
+
borderColor: string;
|
|
109
|
+
color: string;
|
|
110
|
+
opacity: string;
|
|
111
|
+
_dark: {
|
|
112
|
+
bg: string;
|
|
113
|
+
borderColor: string;
|
|
114
|
+
color: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
declare const selectTextInputFocusStyles: {
|
|
118
|
+
borderColor: string;
|
|
119
|
+
_dark: {
|
|
120
|
+
borderColor: string;
|
|
121
|
+
boxShadow: string;
|
|
122
|
+
outline: string;
|
|
123
|
+
outlineOffset: string;
|
|
124
|
+
outlineColor: string;
|
|
125
|
+
zIndex: string;
|
|
126
|
+
_dark: {
|
|
127
|
+
outlineColor: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
boxShadow: string;
|
|
131
|
+
outline: string;
|
|
132
|
+
outlineOffset: string;
|
|
133
|
+
outlineColor: string;
|
|
134
|
+
zIndex: string;
|
|
135
|
+
};
|
|
136
|
+
declare const textMargin: {
|
|
137
|
+
margin: string;
|
|
138
|
+
marginBottom: string;
|
|
139
|
+
};
|
|
140
|
+
export { activeFocus, checkboxRadioControlSize, checkboxRadioGroupStyles, checkboxRadioHelperErrorTextStyle, checkboxRadioHoverStyles, checkboxRadioLabelStyles, defaultElementSizes, labelLegendText, selectTextInputDisabledStyles, selectTextInputFocusStyles, textMargin, };
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* These objects are also SCSS mixins but are now JS objects in the
|
|
3
|
-
* context of css-in-js and the custom NYPL-theme.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* If the element that should be visually hidden should only be hidden on
|
|
7
|
-
* small screens, then pass in true for the `isMobileOnly` argument. Otherwise,
|
|
8
|
-
* this will set an element to always be visually hidden regardless of the
|
|
9
|
-
* screen size.
|
|
10
|
-
*/
|
|
11
|
-
declare const screenreaderOnly: (isMobileOnly?: boolean) => {
|
|
12
|
-
clip: string;
|
|
13
|
-
height: {
|
|
14
|
-
base: string;
|
|
15
|
-
md: string;
|
|
16
|
-
};
|
|
17
|
-
overflow: string;
|
|
18
|
-
position: {
|
|
19
|
-
base: string;
|
|
20
|
-
md: string;
|
|
21
|
-
};
|
|
22
|
-
width: {
|
|
23
|
-
base: string;
|
|
24
|
-
md: string;
|
|
25
|
-
};
|
|
26
|
-
wordWrap: string;
|
|
27
|
-
};
|
|
28
|
-
declare const displayScreenreaderOnly: {
|
|
29
|
-
position: string;
|
|
30
|
-
height: string;
|
|
31
|
-
width: string;
|
|
32
|
-
};
|
|
33
|
-
declare const wrapperStyles: {
|
|
34
|
-
marginY: string;
|
|
35
|
-
marginX: string;
|
|
36
|
-
maxWidth: string;
|
|
37
|
-
padding: string;
|
|
38
|
-
width: string;
|
|
39
|
-
};
|
|
40
|
-
export { displayScreenreaderOnly, screenreaderOnly, wrapperStyles };
|
|
1
|
+
/**
|
|
2
|
+
* These objects are also SCSS mixins but are now JS objects in the
|
|
3
|
+
* context of css-in-js and the custom NYPL-theme.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* If the element that should be visually hidden should only be hidden on
|
|
7
|
+
* small screens, then pass in true for the `isMobileOnly` argument. Otherwise,
|
|
8
|
+
* this will set an element to always be visually hidden regardless of the
|
|
9
|
+
* screen size.
|
|
10
|
+
*/
|
|
11
|
+
declare const screenreaderOnly: (isMobileOnly?: boolean) => {
|
|
12
|
+
clip: string;
|
|
13
|
+
height: {
|
|
14
|
+
base: string;
|
|
15
|
+
md: string;
|
|
16
|
+
};
|
|
17
|
+
overflow: string;
|
|
18
|
+
position: {
|
|
19
|
+
base: string;
|
|
20
|
+
md: string;
|
|
21
|
+
};
|
|
22
|
+
width: {
|
|
23
|
+
base: string;
|
|
24
|
+
md: string;
|
|
25
|
+
};
|
|
26
|
+
wordWrap: string;
|
|
27
|
+
};
|
|
28
|
+
declare const displayScreenreaderOnly: {
|
|
29
|
+
position: string;
|
|
30
|
+
height: string;
|
|
31
|
+
width: string;
|
|
32
|
+
};
|
|
33
|
+
declare const wrapperStyles: {
|
|
34
|
+
marginY: string;
|
|
35
|
+
marginX: string;
|
|
36
|
+
maxWidth: string;
|
|
37
|
+
padding: string;
|
|
38
|
+
width: string;
|
|
39
|
+
};
|
|
40
|
+
export { displayScreenreaderOnly, screenreaderOnly, wrapperStyles };
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
export declare const headerBlack = "#2b2b2b";
|
|
2
|
-
export declare const headerBlue = "#1B7FA7";
|
|
3
|
-
export declare const headerDarkBlue = "#135772";
|
|
4
|
-
export declare const headerFocusColor = "#0F465C";
|
|
5
|
-
export declare const headerLightBlue = "#78CCED";
|
|
6
|
-
export declare const headerLightBlueIcon = "#1DA1D4";
|
|
7
|
-
export declare const headerRed = "#ED1C24";
|
|
8
|
-
export declare const headerRedDarkMode = "dark.ui.error.primary";
|
|
9
|
-
export declare const headerRedDonate = "#E32B31";
|
|
10
|
-
export declare const headerYellow = "#FEE34A";
|
|
11
|
-
export declare const headerYellowDark = "#403B2D";
|
|
12
|
-
export declare const headerFocus: {
|
|
13
|
-
borderRadius: string;
|
|
14
|
-
outlineColor: string;
|
|
15
|
-
outlineOffset: string;
|
|
16
|
-
outlineStyle: string;
|
|
17
|
-
outlineWidth: string;
|
|
18
|
-
};
|
|
19
|
-
declare const Header: {
|
|
20
|
-
parts: string[];
|
|
21
|
-
baseStyle: {
|
|
22
|
-
fontFamily: string;
|
|
23
|
-
container: {
|
|
24
|
-
marginX: {
|
|
25
|
-
md: string;
|
|
26
|
-
xl: string;
|
|
27
|
-
};
|
|
28
|
-
maxWidth: string;
|
|
29
|
-
minHeight: {
|
|
30
|
-
base: string;
|
|
31
|
-
md: string;
|
|
32
|
-
lg: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
horizontalRule: {
|
|
36
|
-
bg: string;
|
|
37
|
-
marginTop: string;
|
|
38
|
-
marginBottom: string;
|
|
39
|
-
_dark: {
|
|
40
|
-
backgroundColor: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
logo: {
|
|
44
|
-
padding: {
|
|
45
|
-
base: string;
|
|
46
|
-
md: string;
|
|
47
|
-
};
|
|
48
|
-
svg: {
|
|
49
|
-
height: {
|
|
50
|
-
base: string;
|
|
51
|
-
md: string;
|
|
52
|
-
};
|
|
53
|
-
width: {
|
|
54
|
-
md: string;
|
|
55
|
-
lg: string;
|
|
56
|
-
};
|
|
57
|
-
marginTop: {
|
|
58
|
-
base: string;
|
|
59
|
-
md: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
_focus: {
|
|
63
|
-
borderRadius: string;
|
|
64
|
-
outlineColor: string;
|
|
65
|
-
outlineOffset: string;
|
|
66
|
-
outlineStyle: string;
|
|
67
|
-
outlineWidth: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
export default Header;
|
|
1
|
+
export declare const headerBlack = "#2b2b2b";
|
|
2
|
+
export declare const headerBlue = "#1B7FA7";
|
|
3
|
+
export declare const headerDarkBlue = "#135772";
|
|
4
|
+
export declare const headerFocusColor = "#0F465C";
|
|
5
|
+
export declare const headerLightBlue = "#78CCED";
|
|
6
|
+
export declare const headerLightBlueIcon = "#1DA1D4";
|
|
7
|
+
export declare const headerRed = "#ED1C24";
|
|
8
|
+
export declare const headerRedDarkMode = "dark.ui.error.primary";
|
|
9
|
+
export declare const headerRedDonate = "#E32B31";
|
|
10
|
+
export declare const headerYellow = "#FEE34A";
|
|
11
|
+
export declare const headerYellowDark = "#403B2D";
|
|
12
|
+
export declare const headerFocus: {
|
|
13
|
+
borderRadius: string;
|
|
14
|
+
outlineColor: string;
|
|
15
|
+
outlineOffset: string;
|
|
16
|
+
outlineStyle: string;
|
|
17
|
+
outlineWidth: string;
|
|
18
|
+
};
|
|
19
|
+
declare const Header: {
|
|
20
|
+
parts: string[];
|
|
21
|
+
baseStyle: {
|
|
22
|
+
fontFamily: string;
|
|
23
|
+
container: {
|
|
24
|
+
marginX: {
|
|
25
|
+
md: string;
|
|
26
|
+
xl: string;
|
|
27
|
+
};
|
|
28
|
+
maxWidth: string;
|
|
29
|
+
minHeight: {
|
|
30
|
+
base: string;
|
|
31
|
+
md: string;
|
|
32
|
+
lg: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
horizontalRule: {
|
|
36
|
+
bg: string;
|
|
37
|
+
marginTop: string;
|
|
38
|
+
marginBottom: string;
|
|
39
|
+
_dark: {
|
|
40
|
+
backgroundColor: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
logo: {
|
|
44
|
+
padding: {
|
|
45
|
+
base: string;
|
|
46
|
+
md: string;
|
|
47
|
+
};
|
|
48
|
+
svg: {
|
|
49
|
+
height: {
|
|
50
|
+
base: string;
|
|
51
|
+
md: string;
|
|
52
|
+
};
|
|
53
|
+
width: {
|
|
54
|
+
md: string;
|
|
55
|
+
lg: string;
|
|
56
|
+
};
|
|
57
|
+
marginTop: {
|
|
58
|
+
base: string;
|
|
59
|
+
md: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
_focus: {
|
|
63
|
+
borderRadius: string;
|
|
64
|
+
outlineColor: string;
|
|
65
|
+
outlineOffset: string;
|
|
66
|
+
outlineStyle: string;
|
|
67
|
+
outlineWidth: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export default Header;
|