@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,41 +1,42 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LayoutTypes } from "../../helpers/types";
|
|
3
|
-
export declare
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
*
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LayoutTypes } from "../../helpers/types";
|
|
3
|
+
export declare const skeletonLoaderImageRatiosArray: readonly ["landscape", "portrait", "square"];
|
|
4
|
+
export type SkeletonLoaderImageRatios = typeof skeletonLoaderImageRatiosArray[number];
|
|
5
|
+
export interface SkeletonLoaderProps {
|
|
6
|
+
/** Additional class name for the Skeleton component. */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Optional numeric value to control the number of lines for content
|
|
9
|
+
* placeholder; default value is `3`. */
|
|
10
|
+
contentSize?: number;
|
|
11
|
+
/** Optional numeric value to control the number of lines for heading
|
|
12
|
+
* placeholder; default value is `1`. */
|
|
13
|
+
headingSize?: number;
|
|
14
|
+
/** Optional value to control the aspect ratio of the image placeholder;
|
|
15
|
+
* default value is `"square"`. */
|
|
16
|
+
imageAspectRatio?: SkeletonLoaderImageRatios;
|
|
17
|
+
/** Optional boolean value to control visibility of border around skeleton loader. */
|
|
18
|
+
isBordered?: boolean;
|
|
19
|
+
/** Optional value to control the position of the image placeholder;
|
|
20
|
+
* default value is `"column"`. */
|
|
21
|
+
layout?: LayoutTypes;
|
|
22
|
+
/** Optional boolean value to control visibility of button placeholder. */
|
|
23
|
+
showButton?: boolean;
|
|
24
|
+
/** Optional boolean value to control visibility of content placeholder. */
|
|
25
|
+
showContent?: boolean;
|
|
26
|
+
/** Optional boolean value to control visibility of heading placeholder. */
|
|
27
|
+
showHeading?: boolean;
|
|
28
|
+
/** Optional boolean value to control visibility of image placeholder. */
|
|
29
|
+
showImage?: boolean;
|
|
30
|
+
/** Optional width value. This value should be entered with the same
|
|
31
|
+
* formatting as a CSS width attribute (ex. `50%`, `640px`, `20rem`).
|
|
32
|
+
* If omitted, the skeleton loader will have a default width of 100%. */
|
|
33
|
+
width?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The `SkeletonLoader` component renders a placeholder to be used while
|
|
37
|
+
* dynamic content is loading.
|
|
38
|
+
*/
|
|
39
|
+
export declare const SkeletonLoader: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<SkeletonLoaderProps & {
|
|
40
|
+
children?: React.ReactNode;
|
|
41
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
42
|
+
export default SkeletonLoader;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface SkipNavigationProps {
|
|
3
|
-
/** Additional CSS class name to render in the `nav` element. */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** ID that other components can cross reference for accessibility purposes */
|
|
6
|
-
id?: string;
|
|
7
|
-
/** The anchor target for the main skip link. The default is "#mainContent". */
|
|
8
|
-
target?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* SkipNavigation is a component that is used to provide a navigational list of
|
|
12
|
-
* links. The first link is used to skip to the main content of the page using
|
|
13
|
-
* the `#mainContent` id, and the second link points to accessibility information
|
|
14
|
-
* on NYPL.org. These links are visually hidden but can be read by screenreaders.
|
|
15
|
-
*/
|
|
16
|
-
export declare const SkipNavigation: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<SkipNavigationProps & {
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
19
|
-
export default SkipNavigation;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface SkipNavigationProps {
|
|
3
|
+
/** Additional CSS class name to render in the `nav` element. */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** ID that other components can cross reference for accessibility purposes */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** The anchor target for the main skip link. The default is "#mainContent". */
|
|
8
|
+
target?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* SkipNavigation is a component that is used to provide a navigational list of
|
|
12
|
+
* links. The first link is used to skip to the main content of the page using
|
|
13
|
+
* the `#mainContent` id, and the second link points to accessibility information
|
|
14
|
+
* on NYPL.org. These links are visually hidden but can be read by screenreaders.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SkipNavigation: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<SkipNavigationProps & {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
19
|
+
export default SkipNavigation;
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { HelperErrorTextType } from "../HelperErrorText/HelperErrorText";
|
|
3
|
-
export interface SliderProps {
|
|
4
|
-
/** Additional class name for the Slider component. */
|
|
5
|
-
className?: string;
|
|
6
|
-
/** The initial value for the single `Slider` or an array of two number
|
|
7
|
-
* values for the `isRangeSlider` case. */
|
|
8
|
-
defaultValue?: number | number[];
|
|
9
|
-
/** Optional string to populate the HelperErrorText for standard state */
|
|
10
|
-
helperText?: HelperErrorTextType;
|
|
11
|
-
/** ID that other components can cross reference for accessibility purposes. */
|
|
12
|
-
id: string;
|
|
13
|
-
/** Optional string to populate the `HelperErrorText` for the error state
|
|
14
|
-
* when `isInvalid` is true. */
|
|
15
|
-
invalidText?: HelperErrorTextType;
|
|
16
|
-
/** Adds the 'disabled' state to the slider and text input(s) when true. */
|
|
17
|
-
isDisabled?: boolean;
|
|
18
|
-
/** Adds the 'invalid' state to the slider and text input(s) when true. */
|
|
19
|
-
isInvalid?: boolean;
|
|
20
|
-
/** Offers the ability to render a slider with one value or
|
|
21
|
-
* a range slider with two values. */
|
|
22
|
-
isRangeSlider?: boolean;
|
|
23
|
-
/** Adds the 'required' attribute to the input(s) when true. */
|
|
24
|
-
isRequired?: boolean;
|
|
25
|
-
/** The `Slider`'s label. In the default single slider, this will be linked to
|
|
26
|
-
* the only `TextInput` component. In the range slider, this will be linked to
|
|
27
|
-
* the first `TextInput` component. If `showLabel` is false, then this value
|
|
28
|
-
* will be set in the `Slider`'s `aria-label` attribute. */
|
|
29
|
-
labelText: string;
|
|
30
|
-
/** Maximum value allowed. */
|
|
31
|
-
max?: number;
|
|
32
|
-
/** Minimum value allowed. */
|
|
33
|
-
min?: number;
|
|
34
|
-
/** The name prop indicates into which form this component belongs to. */
|
|
35
|
-
name?: string;
|
|
36
|
-
/** Callback function that gets the value(s) selected. */
|
|
37
|
-
onChange?: (val: number | number[]) => void;
|
|
38
|
-
/** Callback function when the user is done selecting a new value. */
|
|
39
|
-
onChangeEnd?: (val: number | number[]) => void;
|
|
40
|
-
/** Offers the ability to hide the `TextInput` boxes. */
|
|
41
|
-
showBoxes?: boolean;
|
|
42
|
-
/** Offers the ability to hide the helper/invalid text. */
|
|
43
|
-
showHelperInvalidText?: boolean;
|
|
44
|
-
/** Offers the ability to show the label onscreen or hide it. Refer
|
|
45
|
-
* to the `labelText` property for more information. */
|
|
46
|
-
showLabel?: boolean;
|
|
47
|
-
/** Whether or not to display the "(Required)" text in the label text.
|
|
48
|
-
* True by default. */
|
|
49
|
-
showRequiredLabel?: boolean;
|
|
50
|
-
/** Offers the ability to hide the static min/max values. */
|
|
51
|
-
showValues?: boolean;
|
|
52
|
-
/** The amount to increase or decrease when using the slider thumb(s). */
|
|
53
|
-
step?: number;
|
|
54
|
-
/** The value(s) to programmatically update the Slider or RangeSlider. */
|
|
55
|
-
value?: number | number[];
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* The `Slider` component renders a singular value slider or a range slider
|
|
59
|
-
* with a min and max value. The value(s) can be updated through the slider
|
|
60
|
-
* thumb(s) or through the text input(s) elements.
|
|
61
|
-
*/
|
|
62
|
-
export declare const Slider: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<SliderProps & {
|
|
63
|
-
children?: React.ReactNode;
|
|
64
|
-
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
65
|
-
export default Slider;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HelperErrorTextType } from "../HelperErrorText/HelperErrorText";
|
|
3
|
+
export interface SliderProps {
|
|
4
|
+
/** Additional class name for the Slider component. */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** The initial value for the single `Slider` or an array of two number
|
|
7
|
+
* values for the `isRangeSlider` case. */
|
|
8
|
+
defaultValue?: number | number[];
|
|
9
|
+
/** Optional string to populate the HelperErrorText for standard state */
|
|
10
|
+
helperText?: HelperErrorTextType;
|
|
11
|
+
/** ID that other components can cross reference for accessibility purposes. */
|
|
12
|
+
id: string;
|
|
13
|
+
/** Optional string to populate the `HelperErrorText` for the error state
|
|
14
|
+
* when `isInvalid` is true. */
|
|
15
|
+
invalidText?: HelperErrorTextType;
|
|
16
|
+
/** Adds the 'disabled' state to the slider and text input(s) when true. */
|
|
17
|
+
isDisabled?: boolean;
|
|
18
|
+
/** Adds the 'invalid' state to the slider and text input(s) when true. */
|
|
19
|
+
isInvalid?: boolean;
|
|
20
|
+
/** Offers the ability to render a slider with one value or
|
|
21
|
+
* a range slider with two values. */
|
|
22
|
+
isRangeSlider?: boolean;
|
|
23
|
+
/** Adds the 'required' attribute to the input(s) when true. */
|
|
24
|
+
isRequired?: boolean;
|
|
25
|
+
/** The `Slider`'s label. In the default single slider, this will be linked to
|
|
26
|
+
* the only `TextInput` component. In the range slider, this will be linked to
|
|
27
|
+
* the first `TextInput` component. If `showLabel` is false, then this value
|
|
28
|
+
* will be set in the `Slider`'s `aria-label` attribute. */
|
|
29
|
+
labelText: string;
|
|
30
|
+
/** Maximum value allowed. */
|
|
31
|
+
max?: number;
|
|
32
|
+
/** Minimum value allowed. */
|
|
33
|
+
min?: number;
|
|
34
|
+
/** The name prop indicates into which form this component belongs to. */
|
|
35
|
+
name?: string;
|
|
36
|
+
/** Callback function that gets the value(s) selected. */
|
|
37
|
+
onChange?: (val: number | number[]) => void;
|
|
38
|
+
/** Callback function when the user is done selecting a new value. */
|
|
39
|
+
onChangeEnd?: (val: number | number[]) => void;
|
|
40
|
+
/** Offers the ability to hide the `TextInput` boxes. */
|
|
41
|
+
showBoxes?: boolean;
|
|
42
|
+
/** Offers the ability to hide the helper/invalid text. */
|
|
43
|
+
showHelperInvalidText?: boolean;
|
|
44
|
+
/** Offers the ability to show the label onscreen or hide it. Refer
|
|
45
|
+
* to the `labelText` property for more information. */
|
|
46
|
+
showLabel?: boolean;
|
|
47
|
+
/** Whether or not to display the "(Required)" text in the label text.
|
|
48
|
+
* True by default. */
|
|
49
|
+
showRequiredLabel?: boolean;
|
|
50
|
+
/** Offers the ability to hide the static min/max values. */
|
|
51
|
+
showValues?: boolean;
|
|
52
|
+
/** The amount to increase or decrease when using the slider thumb(s). */
|
|
53
|
+
step?: number;
|
|
54
|
+
/** The value(s) to programmatically update the Slider or RangeSlider. */
|
|
55
|
+
value?: number | number[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The `Slider` component renders a singular value slider or a range slider
|
|
59
|
+
* with a min and max value. The value(s) can be updated through the slider
|
|
60
|
+
* thumb(s) or through the text input(s) elements.
|
|
61
|
+
*/
|
|
62
|
+
export declare const Slider: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<SliderProps & {
|
|
63
|
+
children?: React.ReactNode;
|
|
64
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
65
|
+
export default Slider;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const statusBadgeTypeArray: readonly ["low", "medium", "high"];
|
|
3
|
+
export type StatusBadgeTypes = typeof statusBadgeTypeArray[number];
|
|
4
|
+
export interface StatusBadgeProps {
|
|
5
|
+
/** Additional class for the component */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** ID that other components can cross reference for accessibility purposes */
|
|
8
|
+
id?: string;
|
|
9
|
+
/** Level of the status badge. Defaults to `"low"`. */
|
|
10
|
+
level?: StatusBadgeTypes;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The `StatusBadge` component is used to display a visual badge for three
|
|
14
|
+
* different status levels.
|
|
15
|
+
*/
|
|
16
|
+
export declare const StatusBadge: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<StatusBadgeProps & {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
19
|
+
export default StatusBadge;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ComponentImageProps } from "../Image/Image";
|
|
3
|
-
export
|
|
4
|
-
interface StructuredContentImageProps extends ComponentImageProps {
|
|
5
|
-
/** Optional value to control the positioning of the internal `Image` component.
|
|
6
|
-
* Defaults to `"left"`. */
|
|
7
|
-
position?: StructuredContentImagePosition;
|
|
8
|
-
}
|
|
9
|
-
export interface StructuredContentProps {
|
|
10
|
-
/** Optional value to set the text for the callout heading text. */
|
|
11
|
-
calloutText?: string;
|
|
12
|
-
/** Additional class name for the `StructuredContent` component. */
|
|
13
|
-
className?: string;
|
|
14
|
-
/** Optional value to set the text for the main heading text. */
|
|
15
|
-
headingText?: string;
|
|
16
|
-
/** ID that other components can cross reference for accessibility purposes. */
|
|
17
|
-
id?: string;
|
|
18
|
-
/** Object used to create and render the `Image` component. */
|
|
19
|
-
imageProps?: StructuredContentImageProps;
|
|
20
|
-
/** Required value to set the text for the body content. */
|
|
21
|
-
bodyContent: string | JSX.Element;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* The `StructuredContent` component that displays a heading, callout content,
|
|
25
|
-
* an image, and body content. All are optional except for body content.
|
|
26
|
-
*/
|
|
27
|
-
export declare const StructuredContent: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<StructuredContentProps & {
|
|
28
|
-
children?: React.ReactNode;
|
|
29
|
-
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
30
|
-
export default StructuredContent;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ComponentImageProps } from "../Image/Image";
|
|
3
|
+
export type StructuredContentImagePosition = "left" | "right" | "center";
|
|
4
|
+
interface StructuredContentImageProps extends ComponentImageProps {
|
|
5
|
+
/** Optional value to control the positioning of the internal `Image` component.
|
|
6
|
+
* Defaults to `"left"`. */
|
|
7
|
+
position?: StructuredContentImagePosition;
|
|
8
|
+
}
|
|
9
|
+
export interface StructuredContentProps {
|
|
10
|
+
/** Optional value to set the text for the callout heading text. */
|
|
11
|
+
calloutText?: string;
|
|
12
|
+
/** Additional class name for the `StructuredContent` component. */
|
|
13
|
+
className?: string;
|
|
14
|
+
/** Optional value to set the text for the main heading text. */
|
|
15
|
+
headingText?: string;
|
|
16
|
+
/** ID that other components can cross reference for accessibility purposes. */
|
|
17
|
+
id?: string;
|
|
18
|
+
/** Object used to create and render the `Image` component. */
|
|
19
|
+
imageProps?: StructuredContentImageProps;
|
|
20
|
+
/** Required value to set the text for the body content. */
|
|
21
|
+
bodyContent: string | JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The `StructuredContent` component that displays a heading, callout content,
|
|
25
|
+
* an image, and body content. All are optional except for body content.
|
|
26
|
+
*/
|
|
27
|
+
export declare const StructuredContent: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<StructuredContentProps & {
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
30
|
+
export default StructuredContent;
|