@nypl/design-system-react-components 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist/components/Accordion/Accordion.d.ts +14 -14
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +11 -14
- package/dist/components/Breadcrumbs/BreadcrumbsTypes.d.ts +6 -0
- package/dist/components/Button/ButtonTypes.d.ts +2 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/CardTypes.d.ts +2 -2
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +43 -0
- package/dist/components/CheckboxGroup/CheckboxGroupLayoutTypes.d.ts +4 -0
- package/dist/components/DatePicker/DatePicker.d.ts +3 -3
- package/dist/components/Form/Form.d.ts +13 -8
- package/dist/components/Form/FormTypes.d.ts +2 -8
- package/dist/components/Grid/GridTypes.d.ts +9 -0
- package/dist/components/Grid/SimpleGrid.d.ts +14 -0
- package/dist/components/Heading/Heading.d.ts +4 -4
- package/dist/components/Hero/Hero.d.ts +19 -14
- package/dist/components/Hero/HeroTypes.d.ts +10 -5
- package/dist/components/Icons/Icon.d.ts +13 -16
- package/dist/components/Icons/IconTypes.d.ts +78 -64
- package/dist/components/Label/Label.d.ts +5 -17
- package/dist/components/Link/Link.d.ts +8 -12
- package/dist/components/SearchBar/SearchBar.d.ts +45 -27
- package/dist/components/Select/Select.d.ts +32 -35
- package/dist/components/Select/SelectTypes.d.ts +4 -0
- package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +1 -1
- package/dist/components/SkeletonLoader/SkeletonLoaderTypes.d.ts +2 -2
- package/dist/components/StatusBadge/StatusBadge.d.ts +8 -6
- package/dist/components/StatusBadge/StatusBadgeTypes.d.ts +5 -0
- package/dist/components/Template/Template.d.ts +91 -0
- package/dist/components/Text/Text.d.ts +16 -0
- package/dist/components/Text/TextTypes.d.ts +6 -0
- package/dist/components/TextInput/TextInput.d.ts +32 -31
- package/dist/components/TextInput/TextInputTypes.d.ts +5 -0
- package/dist/design-system-react-components.cjs.development.js +2597 -1170
- 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 +2580 -1173
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/styles.css +1 -1
- package/dist/theme/components/accordion.d.ts +25 -0
- package/dist/theme/components/breadcrumb.d.ts +90 -0
- package/dist/theme/components/button.d.ts +17 -7
- package/dist/theme/components/checkbox.d.ts +7 -7
- package/dist/theme/components/customCheckboxGroup.d.ts +18 -0
- package/dist/theme/components/customRadioGroup.d.ts +4 -3
- package/dist/theme/components/global.d.ts +55 -0
- package/dist/theme/components/globalMixins.d.ts +15 -0
- package/dist/theme/components/heading.d.ts +50 -20
- package/dist/theme/components/hero.d.ts +492 -0
- package/dist/theme/components/icon.d.ts +13 -0
- package/dist/theme/components/label.d.ts +16 -0
- package/dist/theme/components/link.d.ts +45 -0
- package/dist/theme/components/radio.d.ts +8 -7
- package/dist/theme/components/searchBar.d.ts +20 -0
- package/dist/theme/components/select.d.ts +58 -0
- package/dist/theme/components/statusBadge.d.ts +25 -0
- package/dist/theme/components/tabs.d.ts +9 -9
- package/dist/theme/components/template.d.ts +105 -0
- package/dist/theme/components/text.d.ts +20 -0
- package/dist/theme/components/textInput.d.ts +105 -0
- package/dist/theme/foundations/global.d.ts +3 -0
- package/dist/theme/foundations/shadows.d.ts +4 -0
- package/dist/utils/utils.d.ts +6 -0
- package/package.json +3 -2
- package/src/components/Accordion/Accordion.stories.mdx +227 -33
- package/src/components/Accordion/Accordion.test.tsx +135 -19
- package/src/components/Accordion/Accordion.tsx +81 -56
- package/src/components/Autosuggest/Autosuggest.stories.mdx +1 -1
- package/src/components/Autosuggest/Autosuggest.stories.tsx +1 -1
- package/src/components/Autosuggest/_Autosuggest.scss +2 -2
- package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +46 -52
- package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +31 -25
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +71 -73
- package/src/components/Breadcrumbs/BreadcrumbsTypes.tsx +6 -0
- package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +100 -0
- package/src/components/Button/Button.stories.mdx +31 -27
- package/src/components/Button/Button.test.tsx +17 -5
- package/src/components/Button/ButtonTypes.tsx +1 -0
- package/src/components/Button/_Button.scss +3 -27
- package/src/components/Button/__snapshots__/Button.test.tsx.snap +11 -0
- package/src/components/Card/Card.stories.mdx +24 -20
- package/src/components/Card/Card.test.tsx +13 -19
- package/src/components/Card/Card.tsx +1 -1
- package/src/components/Card/CardTypes.tsx +2 -2
- package/src/components/Card/_Card.scss +1 -1
- package/src/components/CardEdition/CardEdition.stories.tsx +11 -6
- package/src/components/CardEdition/CardEdition.test.tsx +23 -31
- package/src/components/CardEdition/_CardEdition.scss +2 -2
- package/src/components/Chakra/Center.stories.mdx +31 -14
- package/src/components/Chakra/Grid.stories.mdx +79 -0
- package/src/components/Chakra/Stack.stories.mdx +4 -4
- package/src/components/Checkbox/Checkbox.tsx +9 -12
- package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +2 -5
- package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +249 -0
- package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +345 -0
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +148 -0
- package/src/components/CheckboxGroup/CheckboxGroupLayoutTypes.tsx +4 -0
- package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +1360 -0
- package/src/components/DatePicker/DatePicker.test.tsx +4 -4
- package/src/components/DatePicker/DatePicker.tsx +13 -13
- package/src/components/DatePicker/_DatePicker.scss +1 -0
- package/src/components/Form/Form.stories.mdx +46 -21
- package/src/components/Form/Form.test.tsx +58 -45
- package/src/components/Form/Form.tsx +49 -21
- package/src/components/Form/FormTypes.tsx +3 -8
- package/src/components/Form/__snapshots__/Form.test.tsx.snap +24 -14
- package/src/components/Grid/GridTypes.tsx +9 -0
- package/src/components/Grid/SimpleGrid.stories.mdx +275 -0
- package/src/components/Grid/SimpleGrid.test.tsx +66 -0
- package/src/components/Grid/SimpleGrid.tsx +37 -0
- package/src/components/Grid/__snapshots__/SimpleGrid.test.tsx.snap +8 -0
- package/src/components/Heading/Heading.stories.mdx +1 -0
- package/src/components/Heading/Heading.tsx +12 -6
- package/src/components/HelperErrorText/_HelperErrorText.scss +1 -1
- package/src/components/Hero/Hero.stories.mdx +188 -121
- package/src/components/Hero/Hero.test.tsx +537 -107
- package/src/components/Hero/Hero.tsx +79 -92
- package/src/components/Hero/HeroTypes.tsx +17 -5
- package/src/components/Hero/__snapshots__/Hero.test.tsx.snap +307 -0
- package/src/components/HorizontalRule/_HorizontalRule.scss +1 -1
- package/src/components/Icons/Icon.stories.mdx +83 -74
- package/src/components/Icons/Icon.test.tsx +30 -22
- package/src/components/Icons/Icon.tsx +63 -61
- package/src/components/Icons/IconTypes.tsx +80 -64
- package/src/components/Input/_Input.scss +2 -2
- package/src/components/Label/Label.stories.mdx +28 -7
- package/src/components/Label/Label.test.tsx +43 -12
- package/src/components/Label/Label.tsx +21 -34
- package/src/components/Label/__snapshots__/Label.test.tsx.snap +41 -0
- package/src/components/Link/Link.stories.mdx +41 -41
- package/src/components/Link/Link.test.tsx +33 -44
- package/src/components/Link/Link.tsx +114 -100
- package/src/components/List/List.stories.mdx +0 -2
- package/src/components/List/List.stories.tsx +5 -5
- package/src/components/List/_List.scss +3 -3
- package/src/components/Modal/_Modal.scss +1 -1
- package/src/components/Notification/Notification.stories.mdx +12 -1
- package/src/components/Notification/Notification.test.tsx +3 -16
- package/src/components/Notification/Notification.tsx +9 -10
- package/src/components/Notification/_Notification.scss +4 -4
- package/src/components/Pagination/Pagination.test.tsx +16 -10
- package/src/components/RadioGroup/RadioGroup.stories.mdx +1 -1
- package/src/components/RadioGroup/RadioGroup.tsx +2 -10
- package/src/components/SearchBar/SearchBar.Test.tsx +151 -16
- package/src/components/SearchBar/SearchBar.stories.mdx +189 -219
- package/src/components/SearchBar/SearchBar.tsx +151 -46
- package/src/components/Select/Select.stories.mdx +188 -170
- package/src/components/Select/Select.test.tsx +125 -380
- package/src/components/Select/Select.tsx +118 -165
- package/src/components/Select/SelectTypes.tsx +4 -0
- package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +13 -25
- package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +7 -7
- package/src/components/SkeletonLoader/SkeletonLoader.tsx +4 -2
- package/src/components/SkeletonLoader/SkeletonLoaderTypes.tsx +2 -2
- package/src/components/SkeletonLoader/_SkeletonLoader.scss +3 -3
- package/src/components/StatusBadge/StatusBadge.stories.mdx +91 -0
- package/src/components/StatusBadge/StatusBadge.test.tsx +35 -7
- package/src/components/StatusBadge/StatusBadge.tsx +24 -25
- package/src/components/StatusBadge/StatusBadgeTypes.tsx +5 -0
- package/src/components/StatusBadge/__snapshots__/StatusBadge.test.tsx.snap +28 -0
- package/src/components/StyleGuide/Bidirectionality.stories.mdx +16 -16
- package/src/components/StyleGuide/Buttons.stories.mdx +15 -15
- package/src/components/StyleGuide/Colors.stories.mdx +336 -0
- package/src/components/StyleGuide/Iconography.stories.mdx +88 -90
- package/src/components/StyleGuide/UIDocCard.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +7 -9
- package/src/components/Template/Template.stories.mdx +574 -0
- package/src/components/Template/Template.test.tsx +124 -0
- package/src/components/Template/Template.tsx +226 -0
- package/src/components/Text/Text.stories.mdx +70 -0
- package/src/components/Text/Text.test.tsx +63 -0
- package/src/components/Text/Text.tsx +55 -0
- package/src/components/Text/TextTypes.tsx +6 -0
- package/src/components/Text/__snapshots__/Text.test.tsx.snap +33 -0
- package/src/components/TextInput/TextInput.stories.mdx +89 -90
- package/src/components/TextInput/TextInput.test.tsx +65 -86
- package/src/components/TextInput/TextInput.tsx +101 -95
- package/src/components/TextInput/TextInputTypes.tsx +6 -0
- package/src/components/VideoPlayer/_VideoPlayer.scss +1 -1
- package/src/docs/Chakra.stories.mdx +4 -4
- package/src/docs/Intro.stories.mdx +15 -13
- package/src/index.ts +20 -0
- package/src/styles/01-colors/_colors-brand.scss +6 -0
- package/src/styles/01-colors/_colors-utility.scss +14 -12
- package/src/styles/base/_04-base.scss +2 -1
- package/src/styles/base/_place-holder.scss +1 -1
- package/src/styles.scss +10 -12
- package/src/theme/components/accordion.ts +30 -0
- package/src/theme/components/breadcrumb.ts +77 -0
- package/src/theme/components/button.ts +77 -63
- package/src/theme/components/checkbox.ts +15 -27
- package/src/theme/components/customCheckboxGroup.ts +12 -0
- package/src/theme/components/customRadioGroup.ts +4 -10
- package/src/theme/components/global.ts +71 -0
- package/src/theme/components/globalMixins.ts +16 -0
- package/src/theme/components/heading.ts +15 -8
- package/src/theme/components/hero.ts +239 -0
- package/src/theme/components/icon.ts +79 -0
- package/src/theme/components/label.ts +17 -0
- package/src/theme/components/link.ts +47 -0
- package/src/theme/components/radio.ts +20 -31
- package/src/theme/components/searchBar.ts +21 -0
- package/src/theme/components/select.ts +50 -0
- package/src/theme/components/statusBadge.ts +27 -0
- package/src/theme/components/tabs.ts +72 -69
- package/src/theme/components/template.ts +114 -0
- package/src/theme/components/text.ts +31 -0
- package/src/theme/components/textInput.ts +61 -0
- package/src/theme/foundations/colors.ts +29 -13
- package/src/theme/foundations/global.ts +3 -0
- package/src/theme/foundations/shadows.ts +5 -0
- package/src/theme/index.ts +37 -7
- package/src/utils/componentCategories.ts +8 -2
- package/src/utils/utils.ts +13 -0
- package/dist/components/Accordion/Accordion.stories.d.ts +0 -6
- package/dist/components/StatusBadge/StatusBadge.stories.d.ts +0 -8
- package/dist/components/StyleGuide/Colors.stories.d.ts +0 -25
- package/dist/components/Template/Template.stories.d.ts +0 -30
- package/src/components/Accordion/Accordion.stories.tsx +0 -66
- package/src/components/Accordion/_Accordion.scss +0 -81
- package/src/components/Breadcrumbs/_Breadcrumbs.scss +0 -97
- package/src/components/Form/_Form.scss +0 -67
- package/src/components/Hero/_Hero.scss +0 -256
- package/src/components/Icons/_Icons.scss +0 -116
- package/src/components/Label/_Label.scss +0 -22
- package/src/components/Link/_Link.scss +0 -73
- package/src/components/SearchBar/_SearchBar.scss +0 -16
- package/src/components/Select/_Select.scss +0 -82
- package/src/components/StatusBadge/StatusBadge.stories.tsx +0 -34
- package/src/components/StatusBadge/_StatusBadge.scss +0 -23
- package/src/components/StyleGuide/Colors.stories.tsx +0 -289
- package/src/components/Template/Template.stories.tsx +0 -86
- package/src/components/Template/_Template.scss +0 -63
- package/src/components/TextInput/_TextInput.scss +0 -59
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const Radio: {
|
|
2
|
+
parts: string[];
|
|
2
3
|
baseStyle: {
|
|
3
4
|
control: {
|
|
4
5
|
verticalAlign: string;
|
|
@@ -36,8 +37,8 @@ declare const Radio: {
|
|
|
36
37
|
_before: {
|
|
37
38
|
content: string;
|
|
38
39
|
display: string;
|
|
39
|
-
w:
|
|
40
|
-
h:
|
|
40
|
+
w: string;
|
|
41
|
+
h: string;
|
|
41
42
|
borderRadius: string;
|
|
42
43
|
bg: string;
|
|
43
44
|
};
|
|
@@ -56,10 +57,10 @@ declare const Radio: {
|
|
|
56
57
|
};
|
|
57
58
|
label: {
|
|
58
59
|
userSelect: string;
|
|
59
|
-
fontSize:
|
|
60
|
+
fontSize: string;
|
|
60
61
|
fontWeight: string;
|
|
61
|
-
marginBottom:
|
|
62
|
-
marginLeft:
|
|
62
|
+
marginBottom: string;
|
|
63
|
+
marginLeft: string;
|
|
63
64
|
verticalAlign: string;
|
|
64
65
|
_disabled: {
|
|
65
66
|
color: string;
|
|
@@ -71,12 +72,12 @@ declare const Radio: {
|
|
|
71
72
|
};
|
|
72
73
|
};
|
|
73
74
|
helper: {
|
|
74
|
-
marginTop: number;
|
|
75
|
-
marginBottom: number;
|
|
76
75
|
marginLeft: string;
|
|
77
76
|
_disabled: {
|
|
78
77
|
fontStyle: string;
|
|
79
78
|
};
|
|
79
|
+
marginTop: string;
|
|
80
|
+
marginBottom: string;
|
|
80
81
|
};
|
|
81
82
|
};
|
|
82
83
|
sizes: {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const SearchBar: {
|
|
2
|
+
parts: string[];
|
|
3
|
+
baseStyle: {
|
|
4
|
+
topRow: {
|
|
5
|
+
display: string;
|
|
6
|
+
marginBottom: {
|
|
7
|
+
base: string;
|
|
8
|
+
md: string;
|
|
9
|
+
};
|
|
10
|
+
flexFlow: {
|
|
11
|
+
base: string;
|
|
12
|
+
md: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
button: {
|
|
16
|
+
marginBottom: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default SearchBar;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const Select: {
|
|
2
|
+
parts: string[];
|
|
3
|
+
baseStyle: {
|
|
4
|
+
marginBottom: string;
|
|
5
|
+
helper: {
|
|
6
|
+
marginTop: string;
|
|
7
|
+
marginBottom: string;
|
|
8
|
+
};
|
|
9
|
+
select: {
|
|
10
|
+
borderRadius: string;
|
|
11
|
+
borderColor: string;
|
|
12
|
+
paddingTop: string;
|
|
13
|
+
paddingRight: string;
|
|
14
|
+
paddingBottom: string;
|
|
15
|
+
paddingLeft: string;
|
|
16
|
+
_hover: {
|
|
17
|
+
borderColor: string;
|
|
18
|
+
};
|
|
19
|
+
_active: {
|
|
20
|
+
border: string;
|
|
21
|
+
borderColor: string;
|
|
22
|
+
zIndex: string;
|
|
23
|
+
outline: string;
|
|
24
|
+
outlineColor: string;
|
|
25
|
+
};
|
|
26
|
+
_focus: {
|
|
27
|
+
border: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
zIndex: string;
|
|
30
|
+
outline: string;
|
|
31
|
+
outlineColor: string;
|
|
32
|
+
};
|
|
33
|
+
_disabled: {
|
|
34
|
+
color: string;
|
|
35
|
+
bg: string;
|
|
36
|
+
opacity: string;
|
|
37
|
+
};
|
|
38
|
+
_invalid: {
|
|
39
|
+
border: string;
|
|
40
|
+
borderColor: string;
|
|
41
|
+
boxShadow: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
variants: {
|
|
46
|
+
searchbar: {
|
|
47
|
+
select: {
|
|
48
|
+
flex: string;
|
|
49
|
+
borderRight: string;
|
|
50
|
+
borderRightRadius: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
defaultProps: {
|
|
55
|
+
size: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export default Select;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const StatusBadge: {
|
|
2
|
+
baseStyle: {
|
|
3
|
+
borderRadius: string;
|
|
4
|
+
color: string;
|
|
5
|
+
display: string;
|
|
6
|
+
fontSize: string;
|
|
7
|
+
fontStyle: string;
|
|
8
|
+
py: string;
|
|
9
|
+
px: string;
|
|
10
|
+
textAlign: string;
|
|
11
|
+
width: string;
|
|
12
|
+
};
|
|
13
|
+
variants: {
|
|
14
|
+
low: {
|
|
15
|
+
bg: string;
|
|
16
|
+
};
|
|
17
|
+
medium: {
|
|
18
|
+
bg: string;
|
|
19
|
+
};
|
|
20
|
+
high: {
|
|
21
|
+
bg: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default StatusBadge;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const CustomTabs: {
|
|
2
|
+
parts: string[];
|
|
2
3
|
baseStyle: {
|
|
3
|
-
tablist: {};
|
|
4
4
|
tab: {
|
|
5
5
|
color: string;
|
|
6
|
-
paddingInlineStart:
|
|
7
|
-
paddingLeft:
|
|
6
|
+
paddingInlineStart: string;
|
|
7
|
+
paddingLeft: string;
|
|
8
8
|
background: string;
|
|
9
9
|
border: string;
|
|
10
10
|
borderBottom: string;
|
|
@@ -14,14 +14,14 @@ declare const CustomTabs: {
|
|
|
14
14
|
md: string;
|
|
15
15
|
};
|
|
16
16
|
paddingRight: {
|
|
17
|
-
base:
|
|
18
|
-
md:
|
|
19
|
-
lg:
|
|
17
|
+
base: string;
|
|
18
|
+
md: string;
|
|
19
|
+
lg: string;
|
|
20
20
|
};
|
|
21
21
|
whiteSpace: string;
|
|
22
22
|
_hover: {
|
|
23
23
|
bg: string;
|
|
24
|
-
borderTopRadius:
|
|
24
|
+
borderTopRadius: string;
|
|
25
25
|
borderBottom: string;
|
|
26
26
|
borderBottomColor: string;
|
|
27
27
|
};
|
|
@@ -29,13 +29,13 @@ declare const CustomTabs: {
|
|
|
29
29
|
fontWeight: string;
|
|
30
30
|
bg: string;
|
|
31
31
|
border: string;
|
|
32
|
-
borderTopRadius:
|
|
32
|
+
borderTopRadius: string;
|
|
33
33
|
borderBottom: string;
|
|
34
34
|
borderBottomColor: string;
|
|
35
35
|
paddingBottom: string;
|
|
36
36
|
};
|
|
37
37
|
_focus: {
|
|
38
|
-
boxShadow:
|
|
38
|
+
boxShadow: string;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
buttonArrows: {
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
Template: {
|
|
3
|
+
baseStyle: {
|
|
4
|
+
boxSizing: string;
|
|
5
|
+
color: string;
|
|
6
|
+
overflowX: string;
|
|
7
|
+
"*": {
|
|
8
|
+
boxSizing: string;
|
|
9
|
+
};
|
|
10
|
+
"*::after": {
|
|
11
|
+
boxSizing: string;
|
|
12
|
+
};
|
|
13
|
+
"*::before": {
|
|
14
|
+
boxSizing: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
sizes: {};
|
|
18
|
+
defaultProps: {};
|
|
19
|
+
};
|
|
20
|
+
TemplateHeader: {
|
|
21
|
+
baseStyle: {
|
|
22
|
+
marginBottom: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
TemplateBreakout: {
|
|
26
|
+
baseStyle: {
|
|
27
|
+
width: string;
|
|
28
|
+
marginBottom: number;
|
|
29
|
+
marginLeft: string;
|
|
30
|
+
marginRight: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
TemplateContent: {
|
|
34
|
+
baseStyle: {
|
|
35
|
+
display: string;
|
|
36
|
+
marginBottom: number;
|
|
37
|
+
marginY: number;
|
|
38
|
+
marginX: string;
|
|
39
|
+
maxWidth: string;
|
|
40
|
+
paddingTop: number;
|
|
41
|
+
paddingBottom: number;
|
|
42
|
+
paddingRight: number;
|
|
43
|
+
paddingLeft: number;
|
|
44
|
+
width: string;
|
|
45
|
+
};
|
|
46
|
+
variants: {
|
|
47
|
+
sidebar: {
|
|
48
|
+
display: string;
|
|
49
|
+
flexFlow: {
|
|
50
|
+
base: string;
|
|
51
|
+
md: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
TemplateContentTop: {
|
|
57
|
+
baseStyle: {
|
|
58
|
+
flex: string;
|
|
59
|
+
marginBottom: number;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
TemplateContentPrimary: {
|
|
63
|
+
baseStyle: {
|
|
64
|
+
flex: string;
|
|
65
|
+
marginBottom: number;
|
|
66
|
+
};
|
|
67
|
+
variants: {
|
|
68
|
+
left: {
|
|
69
|
+
display: string;
|
|
70
|
+
flexFlow: string;
|
|
71
|
+
order: string;
|
|
72
|
+
marginRight: {
|
|
73
|
+
md: number;
|
|
74
|
+
};
|
|
75
|
+
minWidth: {
|
|
76
|
+
md: number;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
TemplateContentSidebar: {
|
|
82
|
+
baseStyle: {
|
|
83
|
+
flex: string;
|
|
84
|
+
order: {
|
|
85
|
+
md: string;
|
|
86
|
+
};
|
|
87
|
+
marginBottom: number;
|
|
88
|
+
};
|
|
89
|
+
variants: {
|
|
90
|
+
left: {
|
|
91
|
+
marginRight: {
|
|
92
|
+
base: number;
|
|
93
|
+
md: number;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
right: {
|
|
97
|
+
marginLeft: {
|
|
98
|
+
base: number;
|
|
99
|
+
md: number;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const Text: {
|
|
2
|
+
baseStyle: (props: any) => {
|
|
3
|
+
fontStyle: string;
|
|
4
|
+
fontWeight: string;
|
|
5
|
+
marginBottom: string;
|
|
6
|
+
};
|
|
7
|
+
variants: {
|
|
8
|
+
default: {};
|
|
9
|
+
caption: {
|
|
10
|
+
fontSize: string;
|
|
11
|
+
};
|
|
12
|
+
tag: {
|
|
13
|
+
fontSize: string;
|
|
14
|
+
};
|
|
15
|
+
mini: {
|
|
16
|
+
fontSize: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default Text;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const TextInput: {
|
|
2
|
+
parts: string[];
|
|
3
|
+
baseStyle: {
|
|
4
|
+
marginBottom: string;
|
|
5
|
+
helper: {
|
|
6
|
+
marginTop: string;
|
|
7
|
+
marginBottom: string;
|
|
8
|
+
};
|
|
9
|
+
input: {
|
|
10
|
+
border: string;
|
|
11
|
+
borderColor: string;
|
|
12
|
+
borderRadius: string;
|
|
13
|
+
py: string;
|
|
14
|
+
px: string;
|
|
15
|
+
_hover: {
|
|
16
|
+
borderColor: string;
|
|
17
|
+
};
|
|
18
|
+
_disabled: {
|
|
19
|
+
bgColor: string;
|
|
20
|
+
color: string;
|
|
21
|
+
opacity: string;
|
|
22
|
+
};
|
|
23
|
+
_active: {
|
|
24
|
+
border: string;
|
|
25
|
+
borderColor: string;
|
|
26
|
+
zIndex: string;
|
|
27
|
+
outline: string;
|
|
28
|
+
outlineColor: string;
|
|
29
|
+
};
|
|
30
|
+
_focus: {
|
|
31
|
+
border: string;
|
|
32
|
+
borderColor: string;
|
|
33
|
+
zIndex: string;
|
|
34
|
+
outline: string;
|
|
35
|
+
outlineColor: string;
|
|
36
|
+
};
|
|
37
|
+
_placeholder: {
|
|
38
|
+
color: string;
|
|
39
|
+
fontStyle: string;
|
|
40
|
+
lineHeight: string;
|
|
41
|
+
};
|
|
42
|
+
_invalid: {
|
|
43
|
+
border: string;
|
|
44
|
+
borderColor: string;
|
|
45
|
+
boxShadow: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
textarea: {
|
|
49
|
+
lineheight: string;
|
|
50
|
+
minHeight: string;
|
|
51
|
+
border: string;
|
|
52
|
+
borderColor: string;
|
|
53
|
+
borderRadius: string;
|
|
54
|
+
py: string;
|
|
55
|
+
px: string;
|
|
56
|
+
_hover: {
|
|
57
|
+
borderColor: string;
|
|
58
|
+
};
|
|
59
|
+
_disabled: {
|
|
60
|
+
bgColor: string;
|
|
61
|
+
color: string;
|
|
62
|
+
opacity: string;
|
|
63
|
+
};
|
|
64
|
+
_active: {
|
|
65
|
+
border: string;
|
|
66
|
+
borderColor: string;
|
|
67
|
+
zIndex: string;
|
|
68
|
+
outline: string;
|
|
69
|
+
outlineColor: string;
|
|
70
|
+
};
|
|
71
|
+
_focus: {
|
|
72
|
+
border: string;
|
|
73
|
+
borderColor: string;
|
|
74
|
+
zIndex: string;
|
|
75
|
+
outline: string;
|
|
76
|
+
outlineColor: string;
|
|
77
|
+
};
|
|
78
|
+
_placeholder: {
|
|
79
|
+
color: string;
|
|
80
|
+
fontStyle: string;
|
|
81
|
+
lineHeight: string;
|
|
82
|
+
};
|
|
83
|
+
_invalid: {
|
|
84
|
+
border: string;
|
|
85
|
+
borderColor: string;
|
|
86
|
+
boxShadow: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
variants: {
|
|
91
|
+
searchBar: {
|
|
92
|
+
flex: string;
|
|
93
|
+
input: {
|
|
94
|
+
borderRightRadius: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
searchBarSelect: {
|
|
98
|
+
flex: string;
|
|
99
|
+
input: {
|
|
100
|
+
borderRadius: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export default TextInput;
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -4,3 +4,9 @@
|
|
|
4
4
|
* `step` between values.
|
|
5
5
|
*/
|
|
6
6
|
export declare const range: (start: number, stop: number, step?: number) => number[];
|
|
7
|
+
/**
|
|
8
|
+
* Map an enum value to a component's Chakra theme variant object. If a wrong
|
|
9
|
+
* value is passed (typically in non-Typescript scenarios), then the "fallback"
|
|
10
|
+
* value, if provided, will be used.
|
|
11
|
+
*/
|
|
12
|
+
export declare const getVariant: (variant: any, collection: any, fallback?: any) => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nypl/design-system-react-components",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "Design System React Components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
"stylelint": "stylelint \"**/*.scss\""
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@chakra-ui/react": "
|
|
41
|
+
"@chakra-ui/react": "1.6.8",
|
|
42
|
+
"@chakra-ui/system": "1.7.3",
|
|
42
43
|
"@emotion/react": "^11.4.1",
|
|
43
44
|
"@emotion/styled": "^11.3.0",
|
|
44
45
|
"@mdx-js/react": "^1.6.22",
|