@ndlib/component-library 0.0.7-9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +101 -0
- package/dist/FontLoader.d.ts +1 -0
- package/dist/FontLoader.js +4 -0
- package/dist/components/composites/Card/Card.stories.d.ts +13 -0
- package/dist/components/composites/Card/Card.stories.js +122 -0
- package/dist/components/composites/Card/Card.test.d.ts +1 -0
- package/dist/components/composites/Card/Card.test.js +37 -0
- package/dist/components/composites/Card/index.d.ts +36 -0
- package/dist/components/composites/Card/index.js +89 -0
- package/dist/components/composites/DragDropList/DragDropList.stories.d.ts +7 -0
- package/dist/components/composites/DragDropList/DragDropList.stories.js +32 -0
- package/dist/components/composites/DragDropList/index.d.ts +25 -0
- package/dist/components/composites/DragDropList/index.js +48 -0
- package/dist/components/composites/DropdownLinks/DropdownLinks.stories.d.ts +8 -0
- package/dist/components/composites/DropdownLinks/DropdownLinks.stories.js +25 -0
- package/dist/components/composites/DropdownLinks/DropdownLinks.test.d.ts +1 -0
- package/dist/components/composites/DropdownLinks/DropdownLinks.test.js +27 -0
- package/dist/components/composites/DropdownLinks/index.d.ts +15 -0
- package/dist/components/composites/DropdownLinks/index.js +28 -0
- package/dist/components/composites/EmptyState/EmptyState.stories.d.ts +10 -0
- package/dist/components/composites/EmptyState/EmptyState.stories.js +31 -0
- package/dist/components/composites/EmptyState/EmptyState.test.d.ts +1 -0
- package/dist/components/composites/EmptyState/EmptyState.test.js +20 -0
- package/dist/components/composites/EmptyState/index.d.ts +15 -0
- package/dist/components/composites/EmptyState/index.js +32 -0
- package/dist/components/composites/Modal/Modal.stories.d.ts +6 -0
- package/dist/components/composites/Modal/Modal.stories.js +40 -0
- package/dist/components/composites/Modal/index.d.ts +21 -0
- package/dist/components/composites/Modal/index.js +64 -0
- package/dist/components/composites/NavMenu/NavMenu.stories.d.ts +6 -0
- package/dist/components/composites/NavMenu/NavMenu.stories.js +12 -0
- package/dist/components/composites/NavMenu/NavMenu.test.d.ts +1 -0
- package/dist/components/composites/NavMenu/NavMenu.test.js +96 -0
- package/dist/components/composites/NavMenu/demo.d.ts +1 -0
- package/dist/components/composites/NavMenu/demo.js +172 -0
- package/dist/components/composites/NavMenu/index.d.ts +5 -0
- package/dist/components/composites/NavMenu/index.js +52 -0
- package/dist/components/composites/Seo/SeoDataDisplay/index.d.ts +2 -0
- package/dist/components/composites/Seo/SeoDataDisplay/index.js +9 -0
- package/dist/components/composites/Seo/index.d.ts +11 -0
- package/dist/components/composites/Seo/index.js +16 -0
- package/dist/components/composites/Seo/seo.stories.d.ts +6 -0
- package/dist/components/composites/Seo/seo.stories.js +12 -0
- package/dist/components/composites/Seo/seo.test.d.ts +1 -0
- package/dist/components/composites/Seo/seo.test.js +56 -0
- package/dist/components/composites/Seo/siteMetadata.d.ts +9 -0
- package/dist/components/composites/Seo/siteMetadata.js +16 -0
- package/dist/components/composites/SnackBar/SnackBar.stories.d.ts +8 -0
- package/dist/components/composites/SnackBar/SnackBar.stories.js +20 -0
- package/dist/components/composites/SnackBar/SnackBar.test.d.ts +1 -0
- package/dist/components/composites/SnackBar/SnackBar.test.js +75 -0
- package/dist/components/composites/SnackBar/examples.d.ts +3 -0
- package/dist/components/composites/SnackBar/examples.js +35 -0
- package/dist/components/composites/SnackBar/index.d.ts +1 -0
- package/dist/components/composites/SnackBar/index.js +45 -0
- package/dist/components/composites/StructuredData/StructuredData.stories.d.ts +6 -0
- package/dist/components/composites/StructuredData/StructuredData.stories.js +12 -0
- package/dist/components/composites/StructuredData/StructuredData.test.d.ts +1 -0
- package/dist/components/composites/StructuredData/StructuredData.test.js +48 -0
- package/dist/components/composites/StructuredData/StructuredDataDisplay/index.d.ts +2 -0
- package/dist/components/composites/StructuredData/StructuredDataDisplay/index.js +37 -0
- package/dist/components/composites/StructuredData/index.d.ts +38 -0
- package/dist/components/composites/StructuredData/index.js +58 -0
- package/dist/components/composites/StructuredData/sdEvent/index.d.ts +13 -0
- package/dist/components/composites/StructuredData/sdEvent/index.js +16 -0
- package/dist/components/composites/StructuredData/sdEvent/makeEventSchema.d.ts +15 -0
- package/dist/components/composites/StructuredData/sdEvent/makeEventSchema.js +16 -0
- package/dist/components/composites/StructuredData/sdNews/index.d.ts +11 -0
- package/dist/components/composites/StructuredData/sdNews/index.js +14 -0
- package/dist/components/composites/StructuredData/sdNews/makeNewsSchema.d.ts +12 -0
- package/dist/components/composites/StructuredData/sdNews/makeNewsSchema.js +11 -0
- package/dist/components/composites/StructuredData/sdWebsite/index.d.ts +8 -0
- package/dist/components/composites/StructuredData/sdWebsite/index.js +11 -0
- package/dist/components/composites/StructuredData/sdWebsite/makeWebPageSchema.d.ts +9 -0
- package/dist/components/composites/StructuredData/sdWebsite/makeWebPageSchema.js +9 -0
- package/dist/components/composites/StructuredData/siteMetadata.d.ts +9 -0
- package/dist/components/composites/StructuredData/siteMetadata.js +12 -0
- package/dist/components/elements/Alerts/Alert.stories.d.ts +9 -0
- package/dist/components/elements/Alerts/Alert.stories.js +41 -0
- package/dist/components/elements/Alerts/Alerts.stories.d.ts +6 -0
- package/dist/components/elements/Alerts/Alerts.stories.js +12 -0
- package/dist/components/elements/Alerts/Alerts.test.d.ts +1 -0
- package/dist/components/elements/Alerts/Alerts.test.js +61 -0
- package/dist/components/elements/Alerts/index.d.ts +14 -0
- package/dist/components/elements/Alerts/index.js +64 -0
- package/dist/components/elements/ArrowLink/ArrowLink.stories.d.ts +6 -0
- package/dist/components/elements/ArrowLink/ArrowLink.stories.js +12 -0
- package/dist/components/elements/ArrowLink/ArrowLink.test.d.ts +1 -0
- package/dist/components/elements/ArrowLink/ArrowLink.test.js +34 -0
- package/dist/components/elements/ArrowLink/index.d.ts +7 -0
- package/dist/components/elements/ArrowLink/index.js +39 -0
- package/dist/components/elements/BrandingBar/BrandingBar.stories.d.ts +6 -0
- package/dist/components/elements/BrandingBar/BrandingBar.stories.js +11 -0
- package/dist/components/elements/BrandingBar/index.d.ts +2 -0
- package/dist/components/elements/BrandingBar/index.js +52 -0
- package/dist/components/elements/Button/Button.stories.d.ts +15 -0
- package/dist/components/elements/Button/Button.stories.js +88 -0
- package/dist/components/elements/Button/Button.test.d.ts +1 -0
- package/dist/components/elements/Button/Button.test.js +39 -0
- package/dist/components/elements/Button/index.d.ts +49 -0
- package/dist/components/elements/Button/index.js +138 -0
- package/dist/components/elements/Dropdown/Dropdown.stories.d.ts +7 -0
- package/dist/components/elements/Dropdown/Dropdown.stories.js +20 -0
- package/dist/components/elements/Dropdown/index.d.ts +24 -0
- package/dist/components/elements/Dropdown/index.js +87 -0
- package/dist/components/elements/Fields/AutoComplete/AutoComplete.stories.d.ts +6 -0
- package/dist/components/elements/Fields/AutoComplete/AutoComplete.stories.js +60 -0
- package/dist/components/elements/Fields/AutoComplete/index.d.ts +11 -0
- package/dist/components/elements/Fields/AutoComplete/index.js +26 -0
- package/dist/components/elements/Fields/Checkbox/Checkbox.stories.d.ts +6 -0
- package/dist/components/elements/Fields/Checkbox/Checkbox.stories.js +17 -0
- package/dist/components/elements/Fields/Checkbox/index.d.ts +8 -0
- package/dist/components/elements/Fields/Checkbox/index.js +22 -0
- package/dist/components/elements/Fields/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -0
- package/dist/components/elements/Fields/CheckboxGroup/CheckboxGroup.stories.js +26 -0
- package/dist/components/elements/Fields/CheckboxGroup/index.d.ts +16 -0
- package/dist/components/elements/Fields/CheckboxGroup/index.js +49 -0
- package/dist/components/elements/Fields/DatePicker/DatePicker.stories.d.ts +8 -0
- package/dist/components/elements/Fields/DatePicker/DatePicker.stories.js +31 -0
- package/dist/components/elements/Fields/DatePicker/index.d.ts +20 -0
- package/dist/components/elements/Fields/DatePicker/index.js +48 -0
- package/dist/components/elements/Fields/MonthPicker/MonthPicker.stories.d.ts +7 -0
- package/dist/components/elements/Fields/MonthPicker/MonthPicker.stories.js +20 -0
- package/dist/components/elements/Fields/MonthPicker/index.d.ts +13 -0
- package/dist/components/elements/Fields/MonthPicker/index.js +24 -0
- package/dist/components/elements/Fields/Radio/Radio.stories.d.ts +6 -0
- package/dist/components/elements/Fields/Radio/Radio.stories.js +17 -0
- package/dist/components/elements/Fields/Radio/index.d.ts +8 -0
- package/dist/components/elements/Fields/Radio/index.js +22 -0
- package/dist/components/elements/Fields/RadioGroup/RadioGroup.stories.d.ts +6 -0
- package/dist/components/elements/Fields/RadioGroup/RadioGroup.stories.js +23 -0
- package/dist/components/elements/Fields/RadioGroup/index.d.ts +14 -0
- package/dist/components/elements/Fields/RadioGroup/index.js +28 -0
- package/dist/components/elements/Fields/Select/Select.stories.d.ts +8 -0
- package/dist/components/elements/Fields/Select/Select.stories.js +39 -0
- package/dist/components/elements/Fields/Select/index.d.ts +18 -0
- package/dist/components/elements/Fields/Select/index.js +178 -0
- package/dist/components/elements/Fields/TextInput/TextInput.stories.d.ts +9 -0
- package/dist/components/elements/Fields/TextInput/TextInput.stories.js +35 -0
- package/dist/components/elements/Fields/TextInput/index.d.ts +45 -0
- package/dist/components/elements/Fields/TextInput/index.js +119 -0
- package/dist/components/elements/Fields/option.d.ts +16 -0
- package/dist/components/elements/Fields/option.js +3 -0
- package/dist/components/elements/Group/index.d.ts +22 -0
- package/dist/components/elements/Group/index.js +69 -0
- package/dist/components/elements/Icon/Icon.stories.d.ts +7 -0
- package/dist/components/elements/Icon/Icon.stories.js +29 -0
- package/dist/components/elements/Icon/Icon.test.d.ts +1 -0
- package/dist/components/elements/Icon/Icon.test.js +26 -0
- package/dist/components/elements/Icon/index.d.ts +10 -0
- package/dist/components/elements/Icon/index.js +34 -0
- package/dist/components/elements/Link/Link.stories.d.ts +6 -0
- package/dist/components/elements/Link/Link.stories.js +21 -0
- package/dist/components/elements/Link/Link.test.d.ts +1 -0
- package/dist/components/elements/Link/Link.test.js +58 -0
- package/dist/components/elements/Link/index.d.ts +14 -0
- package/dist/components/elements/Link/index.js +41 -0
- package/dist/components/elements/List/List.stories.d.ts +10 -0
- package/dist/components/elements/List/List.stories.js +37 -0
- package/dist/components/elements/List/List.test.d.ts +1 -0
- package/dist/components/elements/List/List.test.js +24 -0
- package/dist/components/elements/List/index.d.ts +27 -0
- package/dist/components/elements/List/index.js +103 -0
- package/dist/components/elements/ListBox/Listbox.stories.d.ts +6 -0
- package/dist/components/elements/ListBox/Listbox.stories.js +17 -0
- package/dist/components/elements/ListBox/index.d.ts +33 -0
- package/dist/components/elements/ListBox/index.js +51 -0
- package/dist/components/elements/Markdown/Markdown.stories.d.ts +10 -0
- package/dist/components/elements/Markdown/Markdown.stories.js +97 -0
- package/dist/components/elements/Markdown/Markdown.test.d.ts +1 -0
- package/dist/components/elements/Markdown/Markdown.test.js +91 -0
- package/dist/components/elements/Markdown/index.d.ts +21 -0
- package/dist/components/elements/Markdown/index.js +75 -0
- package/dist/components/elements/Pill/Pill.stories.d.ts +8 -0
- package/dist/components/elements/Pill/Pill.stories.js +40 -0
- package/dist/components/elements/Pill/Pill.test.d.ts +1 -0
- package/dist/components/elements/Pill/Pill.test.js +18 -0
- package/dist/components/elements/Pill/index.d.ts +21 -0
- package/dist/components/elements/Pill/index.js +117 -0
- package/dist/components/elements/Spinner/Spinner.stories.d.ts +7 -0
- package/dist/components/elements/Spinner/Spinner.stories.js +26 -0
- package/dist/components/elements/Spinner/Spinner.test.d.ts +1 -0
- package/dist/components/elements/Spinner/Spinner.test.js +9 -0
- package/dist/components/elements/Spinner/index.d.ts +14 -0
- package/dist/components/elements/Spinner/index.js +49 -0
- package/dist/components/elements/TabList/TabList.stories.d.ts +6 -0
- package/dist/components/elements/TabList/TabList.stories.js +12 -0
- package/dist/components/elements/TabList/TabList.test.d.ts +1 -0
- package/dist/components/elements/TabList/TabList.test.js +19 -0
- package/dist/components/elements/TabList/example.d.ts +7 -0
- package/dist/components/elements/TabList/example.js +36 -0
- package/dist/components/elements/TabList/index.d.ts +10 -0
- package/dist/components/elements/TabList/index.js +30 -0
- package/dist/components/elements/Table/Table.stories.d.ts +10 -0
- package/dist/components/elements/Table/Table.stories.js +96 -0
- package/dist/components/elements/Table/Table.test.d.ts +1 -0
- package/dist/components/elements/Table/Table.test.js +36 -0
- package/dist/components/elements/Table/index.d.ts +30 -0
- package/dist/components/elements/Table/index.js +100 -0
- package/dist/components/elements/layout/Box.d.ts +9 -0
- package/dist/components/elements/layout/Box.js +3 -0
- package/dist/components/elements/layout/Box.stories.d.ts +6 -0
- package/dist/components/elements/layout/Box.stories.js +12 -0
- package/dist/components/elements/layout/Column.d.ts +8 -0
- package/dist/components/elements/layout/Column.js +19 -0
- package/dist/components/elements/layout/Flex.stories.d.ts +10 -0
- package/dist/components/elements/layout/Flex.stories.js +26 -0
- package/dist/components/elements/layout/Flex.test.d.ts +1 -0
- package/dist/components/elements/layout/Flex.test.js +34 -0
- package/dist/components/elements/layout/Row.d.ts +20 -0
- package/dist/components/elements/layout/Row.js +52 -0
- package/dist/components/elements/text/Heading/Heading.stories.d.ts +8 -0
- package/dist/components/elements/text/Heading/Heading.stories.js +35 -0
- package/dist/components/elements/text/Heading/Heading.test.d.ts +1 -0
- package/dist/components/elements/text/Heading/Heading.test.js +51 -0
- package/dist/components/elements/text/Heading/index.d.ts +20 -0
- package/dist/components/elements/text/Heading/index.js +62 -0
- package/dist/components/elements/text/Inline/Inline.stories.d.ts +6 -0
- package/dist/components/elements/text/Inline/Inline.stories.js +12 -0
- package/dist/components/elements/text/Inline/index.d.ts +6 -0
- package/dist/components/elements/text/Inline/index.js +21 -0
- package/dist/components/elements/text/Label/Label.stories.d.ts +6 -0
- package/dist/components/elements/text/Label/Label.stories.js +20 -0
- package/dist/components/elements/text/Label/Label.test.d.ts +1 -0
- package/dist/components/elements/text/Label/Label.test.js +56 -0
- package/dist/components/elements/text/Label/index.d.ts +20 -0
- package/dist/components/elements/text/Label/index.js +38 -0
- package/dist/components/elements/text/Paragraph/Paragraph.stories.d.ts +6 -0
- package/dist/components/elements/text/Paragraph/Paragraph.stories.js +25 -0
- package/dist/components/elements/text/Paragraph/Paragraph.test.d.ts +1 -0
- package/dist/components/elements/text/Paragraph/Paragraph.test.js +9 -0
- package/dist/components/elements/text/Paragraph/index.d.ts +14 -0
- package/dist/components/elements/text/Paragraph/index.js +29 -0
- package/dist/components/elements/text/ReadMore/ReadMore.stories.d.ts +8 -0
- package/dist/components/elements/text/ReadMore/ReadMore.stories.js +26 -0
- package/dist/components/elements/text/ReadMore/index.d.ts +12 -0
- package/dist/components/elements/text/ReadMore/index.js +71 -0
- package/dist/components/providers/alerts.d.ts +41 -0
- package/dist/components/providers/alerts.js +133 -0
- package/dist/components/providers/componentConfig.d.ts +25 -0
- package/dist/components/providers/componentConfig.js +37 -0
- package/dist/components/providers/dialogs.d.ts +9 -0
- package/dist/components/providers/dialogs.js +32 -0
- package/dist/components/providers/env.d.ts +14 -0
- package/dist/components/providers/env.js +25 -0
- package/dist/components/providers/media.d.ts +8 -0
- package/dist/components/providers/media.js +43 -0
- package/dist/components/providers/menu.d.ts +46 -0
- package/dist/components/providers/menu.js +304 -0
- package/dist/components/providers/snackBar.d.ts +23 -0
- package/dist/components/providers/snackBar.js +53 -0
- package/dist/components/providers/ui.d.ts +18 -0
- package/dist/components/providers/ui.js +16 -0
- package/dist/components/providers/uniqueIds.d.ts +3 -0
- package/dist/components/providers/uniqueIds.js +23 -0
- package/dist/components/providers/uniqueIds.test.d.ts +1 -0
- package/dist/components/providers/uniqueIds.test.js +26 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.js +51 -0
- package/dist/theme/Color.stories.d.ts +5 -0
- package/dist/theme/Color.stories.js +63 -0
- package/dist/theme/GlobalStyles.d.ts +1 -0
- package/dist/theme/GlobalStyles.js +167 -0
- package/dist/theme/Typography.stories.d.ts +5 -0
- package/dist/theme/Typography.stories.js +44 -0
- package/dist/theme/colors.d.ts +51 -0
- package/dist/theme/colors.js +97 -0
- package/dist/theme/custom.d.ts +11 -0
- package/dist/theme/custom.js +13 -0
- package/dist/theme/index.d.ts +185 -0
- package/dist/theme/index.js +25 -0
- package/dist/theme/spacing.d.ts +0 -0
- package/dist/theme/spacing.js +1 -0
- package/dist/theme/typography.d.ts +100 -0
- package/dist/theme/typography.js +206 -0
- package/dist/utils/hooks/useCheckMidClick.d.ts +8 -0
- package/dist/utils/hooks/useCheckMidClick.js +17 -0
- package/dist/utils/hooks/useCheckMidKeyPress.d.ts +9 -0
- package/dist/utils/hooks/useCheckMidKeyPress.js +23 -0
- package/dist/utils/hooks/useHover.d.ts +7 -0
- package/dist/utils/hooks/useHover.js +12 -0
- package/dist/utils/hooks/useStorage.d.ts +14 -0
- package/dist/utils/hooks/useStorage.js +37 -0
- package/dist/utils/misc.d.ts +14 -0
- package/dist/utils/misc.js +19 -0
- package/dist/utils/sortByKey.d.ts +12 -0
- package/dist/utils/sortByKey.js +20 -0
- package/dist/utils/test.d.ts +2 -0
- package/dist/utils/test.js +9 -0
- package/package.json +98 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Global, css } from '@emotion/react';
|
|
3
|
+
import { colors } from './colors';
|
|
4
|
+
const globalStyles = css `
|
|
5
|
+
html,
|
|
6
|
+
body,
|
|
7
|
+
div,
|
|
8
|
+
span,
|
|
9
|
+
applet,
|
|
10
|
+
object,
|
|
11
|
+
iframe,
|
|
12
|
+
h1,
|
|
13
|
+
h2,
|
|
14
|
+
h3,
|
|
15
|
+
h4,
|
|
16
|
+
h5,
|
|
17
|
+
h6,
|
|
18
|
+
p,
|
|
19
|
+
blockquote,
|
|
20
|
+
pre,
|
|
21
|
+
a,
|
|
22
|
+
abbr,
|
|
23
|
+
acronym,
|
|
24
|
+
address,
|
|
25
|
+
big,
|
|
26
|
+
cite,
|
|
27
|
+
code,
|
|
28
|
+
del,
|
|
29
|
+
dfn,
|
|
30
|
+
em,
|
|
31
|
+
img,
|
|
32
|
+
ins,
|
|
33
|
+
kbd,
|
|
34
|
+
q,
|
|
35
|
+
s,
|
|
36
|
+
samp,
|
|
37
|
+
small,
|
|
38
|
+
strike,
|
|
39
|
+
strong,
|
|
40
|
+
sub,
|
|
41
|
+
sup,
|
|
42
|
+
tt,
|
|
43
|
+
var,
|
|
44
|
+
b,
|
|
45
|
+
u,
|
|
46
|
+
i,
|
|
47
|
+
center,
|
|
48
|
+
dl,
|
|
49
|
+
dt,
|
|
50
|
+
dd,
|
|
51
|
+
ol,
|
|
52
|
+
ul,
|
|
53
|
+
li,
|
|
54
|
+
fieldset,
|
|
55
|
+
form,
|
|
56
|
+
label,
|
|
57
|
+
legend,
|
|
58
|
+
table,
|
|
59
|
+
caption,
|
|
60
|
+
tbody,
|
|
61
|
+
tfoot,
|
|
62
|
+
thead,
|
|
63
|
+
tr,
|
|
64
|
+
th,
|
|
65
|
+
td,
|
|
66
|
+
article,
|
|
67
|
+
aside,
|
|
68
|
+
canvas,
|
|
69
|
+
details,
|
|
70
|
+
embed,
|
|
71
|
+
figure,
|
|
72
|
+
figcaption,
|
|
73
|
+
footer,
|
|
74
|
+
header,
|
|
75
|
+
hgroup,
|
|
76
|
+
menu,
|
|
77
|
+
nav,
|
|
78
|
+
output,
|
|
79
|
+
ruby,
|
|
80
|
+
section,
|
|
81
|
+
summary,
|
|
82
|
+
time,
|
|
83
|
+
mark,
|
|
84
|
+
audio,
|
|
85
|
+
video {
|
|
86
|
+
margin: 0;
|
|
87
|
+
padding: 0;
|
|
88
|
+
border: 0;
|
|
89
|
+
font-size: 100%;
|
|
90
|
+
font: inherit;
|
|
91
|
+
vertical-align: baseline;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* HTML5 display-role reset for older browsers */
|
|
95
|
+
article,
|
|
96
|
+
aside,
|
|
97
|
+
details,
|
|
98
|
+
figcaption,
|
|
99
|
+
figure,
|
|
100
|
+
footer,
|
|
101
|
+
header,
|
|
102
|
+
hgroup,
|
|
103
|
+
menu,
|
|
104
|
+
nav,
|
|
105
|
+
section {
|
|
106
|
+
display: block;
|
|
107
|
+
}
|
|
108
|
+
body {
|
|
109
|
+
line-height: 1;
|
|
110
|
+
font-size: 16px;
|
|
111
|
+
}
|
|
112
|
+
ol,
|
|
113
|
+
ul {
|
|
114
|
+
list-style: none;
|
|
115
|
+
}
|
|
116
|
+
blockquote,
|
|
117
|
+
q {
|
|
118
|
+
quotes: none;
|
|
119
|
+
}
|
|
120
|
+
blockquote:before,
|
|
121
|
+
blockquote:after,
|
|
122
|
+
q:before,
|
|
123
|
+
q:after {
|
|
124
|
+
content: '';
|
|
125
|
+
content: none;
|
|
126
|
+
}
|
|
127
|
+
table {
|
|
128
|
+
border-collapse: collapse;
|
|
129
|
+
border-spacing: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ndlib-date-picker .react-datepicker__header,
|
|
133
|
+
.ndlib-date-picker .react-datepicker__header * {
|
|
134
|
+
color: white;
|
|
135
|
+
background-color: ${colors.primary};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ndlib-date-picker .react-datepicker__header {
|
|
139
|
+
width: 280px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.ndlib-date-picker .react-datepicker__day-names {
|
|
143
|
+
margin-top: 4px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ndlib-date-picker .react-datepicker__month .react-datepicker__month-text {
|
|
147
|
+
padding: 4px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ndlib-date-picker .ndlib-date-picker-highlight {
|
|
151
|
+
background-color: ${colors.ndTertiary1};
|
|
152
|
+
border-radius: 0.3rem;
|
|
153
|
+
color: ${colors.background};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@font-face {
|
|
157
|
+
font-family: GPCMed;
|
|
158
|
+
font-display: swap;
|
|
159
|
+
url('https://static.nd.edu/fonts/gp-min/gpc-medium.woff2') format('woff2'),
|
|
160
|
+
url('https://static.nd.edu/fonts/gp-min/gpc-medium.woff') format('woff'),
|
|
161
|
+
url('https://static.nd.edu/fonts/gp-min/gpc-medium.ttf')
|
|
162
|
+
format('truetype');
|
|
163
|
+
}
|
|
164
|
+
`;
|
|
165
|
+
export const GlobalStyles = () => {
|
|
166
|
+
return _jsx(Global, { styles: globalStyles });
|
|
167
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
|
|
2
|
+
import { getTypographyStyles, TYPOGRAPHY_TYPE } from './typography';
|
|
3
|
+
import { Group } from '../components/elements/Group';
|
|
4
|
+
import { Box } from '../components/elements/layout/Box';
|
|
5
|
+
import { LABEL_SIZE, Label } from '../components/elements/text/Label';
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Theme/Typography',
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
const types = [
|
|
12
|
+
{ type: TYPOGRAPHY_TYPE.PARAGRAPH_XSMALL, label: 'Paragraph X Small' },
|
|
13
|
+
{ type: TYPOGRAPHY_TYPE.PARAGRAPH_SMALL, label: 'Paragraph Small' },
|
|
14
|
+
{ type: TYPOGRAPHY_TYPE.PARAGRAPH_MEDIUM, label: 'Paragraph Medium' },
|
|
15
|
+
{ type: TYPOGRAPHY_TYPE.PARAGRAPH_LARGE, label: 'Paragraph Large' },
|
|
16
|
+
{ type: TYPOGRAPHY_TYPE.HEADING_SMALL, label: 'Heading Small' },
|
|
17
|
+
{ type: TYPOGRAPHY_TYPE.HEADING_MEDIUM, label: 'Heading Medium' },
|
|
18
|
+
{ type: TYPOGRAPHY_TYPE.HEADING_LARGE, label: 'Heading Large' },
|
|
19
|
+
{ type: TYPOGRAPHY_TYPE.HEADING_XLARGE, label: 'Heading X Large' },
|
|
20
|
+
{ type: TYPOGRAPHY_TYPE.CONTROL_SMALL, label: 'Control Small' },
|
|
21
|
+
{ type: TYPOGRAPHY_TYPE.CONTROL_MEDIUM, label: 'Control Medium' },
|
|
22
|
+
{ type: TYPOGRAPHY_TYPE.CONTROL_LARGE, label: 'Control Large' },
|
|
23
|
+
{ type: TYPOGRAPHY_TYPE.HEADLINE_SMALL, label: 'Headline Small' },
|
|
24
|
+
{ type: TYPOGRAPHY_TYPE.HEADLINE_MEDIUM, label: 'Headline Medium' },
|
|
25
|
+
{ type: TYPOGRAPHY_TYPE.HEADLINE_LARGE, label: 'Headline Large' },
|
|
26
|
+
];
|
|
27
|
+
const pangrams = [
|
|
28
|
+
'The quick brown fox jumps over the lazy dog.',
|
|
29
|
+
'Waltz, bad nymph, for quick jigs vex.',
|
|
30
|
+
'How vexingly quick daft zebras jump!',
|
|
31
|
+
'Pack my box with five dozen liquor jugs.',
|
|
32
|
+
'The five boxing wizards jump quickly.',
|
|
33
|
+
'When zombies arrive, quickly fax Judge Pat.',
|
|
34
|
+
'Amazingly few discotheques provide jukeboxes.',
|
|
35
|
+
];
|
|
36
|
+
const randomElement = (arr) => {
|
|
37
|
+
return arr.length ? arr[Math.floor(Math.random() * arr.length)] : undefined;
|
|
38
|
+
};
|
|
39
|
+
export const Default = {
|
|
40
|
+
render: () => (_jsx(Group, { children: types.map((t) => {
|
|
41
|
+
const style = getTypographyStyles(t.type);
|
|
42
|
+
return (_jsxs(Group, Object.assign({ sx: { mb: '1rem' } }, { children: [_jsx(Label, Object.assign({ size: LABEL_SIZE.SM }, { children: t.label })), _jsx(Box, Object.assign({ sx: { p: 3, boxShadow: '0px 0px 8px 1px #dddddd' } }, { children: _jsx("div", Object.assign({ sx: style }, { children: randomElement(pangrams) })) }))] })));
|
|
43
|
+
}) })),
|
|
44
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare enum COLOR {
|
|
2
|
+
TEXT = "text",
|
|
3
|
+
LIGHT_TEXT = "lightText",
|
|
4
|
+
BACKGROUND = "background",
|
|
5
|
+
TRANSPARENT = "transparent",
|
|
6
|
+
PRIMARY = "primary",
|
|
7
|
+
TEXT_ON_PRIMARY = "textOnPrimary",
|
|
8
|
+
PRIMARY_HIGHLIGHT = "primaryHighlight",
|
|
9
|
+
SECONDARY = "secondary",
|
|
10
|
+
TEXT_ON_SECONDARY = "textOnSecondary",
|
|
11
|
+
SECONDARY_HIGHLIGHT = "secondaryHighlight",
|
|
12
|
+
WHITE = "white",
|
|
13
|
+
BLACK = "black",
|
|
14
|
+
DARK_GRAY = "darkGray",
|
|
15
|
+
GRAY = "gray",
|
|
16
|
+
LIGHT_GRAY = "lightGray",
|
|
17
|
+
EXTRA_LIGHT_GRAY = "extraLightGray",
|
|
18
|
+
EXTRA_EXTRA_LIGHT_GRAY = "extraExtraLightGray",
|
|
19
|
+
ND_BLUE = "ndBlue",
|
|
20
|
+
ND_BLUE_DARK = "ndBlueDark",
|
|
21
|
+
ND_BLUE_LIGHT = "ndBlueLight",
|
|
22
|
+
ND_BLUE_BRIGHT = "ndBlueBright",
|
|
23
|
+
ND_GOLD = "ndGold",
|
|
24
|
+
ND_GOLD_LIGHT = "ndGoldLight",
|
|
25
|
+
ND_GOLD_DARK = "ndGoldDark",
|
|
26
|
+
ND_SKY_BLUE = "ndSkyBlue",
|
|
27
|
+
ND_SKY_BLUE_DARK = "ndSkyBlueDark",
|
|
28
|
+
ND_METALLIC_GOLD = "ndMetallicGold",
|
|
29
|
+
ND_PROVOST_BLUE = "ndProvostBlue",
|
|
30
|
+
ND_SECONDARY_1 = "ndSecondary1",
|
|
31
|
+
ND_SECONDARY_2 = "ndSecondary2",
|
|
32
|
+
ND_SECONDARY_3 = "ndSecondary3",
|
|
33
|
+
ND_SECONDARY_4 = "ndSecondary4",
|
|
34
|
+
ND_SECONDARY_5 = "ndSecondary5",
|
|
35
|
+
ND_SECONDARY_6 = "ndSecondary6",
|
|
36
|
+
ND_TERTIARY_1 = "ndTertiary1",
|
|
37
|
+
ND_TERTIARY_2 = "ndTertiary2",
|
|
38
|
+
ND_TERTIARY_3 = "ndTertiary3",
|
|
39
|
+
ND_TERTIARY_4 = "ndTertiary4",
|
|
40
|
+
ND_TERTIARY_5 = "ndTertiary5",
|
|
41
|
+
ND_TERTIARY_6 = "ndTertiary6",
|
|
42
|
+
ALERT_INFORMATIONAL_BG = "alertInformationalBg",
|
|
43
|
+
ALERT_INFORMATIONAL_BORDER = "alertInformationalBorder",
|
|
44
|
+
ALERT_INFORMATIONAL_YELLOW_BG = "alertInformationalYellowBg",
|
|
45
|
+
ALERT_INFORMATIONAL_YELLOW_BORDER = "alertInformationalYellowBorder",
|
|
46
|
+
ALERT_WARNING_BG = "alertWarningBg",
|
|
47
|
+
ALERT_WARNING_BORDER = "alertWarningBorder"
|
|
48
|
+
}
|
|
49
|
+
export declare const colors: {
|
|
50
|
+
[key in COLOR]: string;
|
|
51
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export var COLOR;
|
|
2
|
+
(function (COLOR) {
|
|
3
|
+
COLOR["TEXT"] = "text";
|
|
4
|
+
COLOR["LIGHT_TEXT"] = "lightText";
|
|
5
|
+
COLOR["BACKGROUND"] = "background";
|
|
6
|
+
COLOR["TRANSPARENT"] = "transparent";
|
|
7
|
+
COLOR["PRIMARY"] = "primary";
|
|
8
|
+
COLOR["TEXT_ON_PRIMARY"] = "textOnPrimary";
|
|
9
|
+
COLOR["PRIMARY_HIGHLIGHT"] = "primaryHighlight";
|
|
10
|
+
COLOR["SECONDARY"] = "secondary";
|
|
11
|
+
COLOR["TEXT_ON_SECONDARY"] = "textOnSecondary";
|
|
12
|
+
COLOR["SECONDARY_HIGHLIGHT"] = "secondaryHighlight";
|
|
13
|
+
COLOR["WHITE"] = "white";
|
|
14
|
+
COLOR["BLACK"] = "black";
|
|
15
|
+
COLOR["DARK_GRAY"] = "darkGray";
|
|
16
|
+
COLOR["GRAY"] = "gray";
|
|
17
|
+
COLOR["LIGHT_GRAY"] = "lightGray";
|
|
18
|
+
COLOR["EXTRA_LIGHT_GRAY"] = "extraLightGray";
|
|
19
|
+
COLOR["EXTRA_EXTRA_LIGHT_GRAY"] = "extraExtraLightGray";
|
|
20
|
+
COLOR["ND_BLUE"] = "ndBlue";
|
|
21
|
+
COLOR["ND_BLUE_DARK"] = "ndBlueDark";
|
|
22
|
+
COLOR["ND_BLUE_LIGHT"] = "ndBlueLight";
|
|
23
|
+
COLOR["ND_BLUE_BRIGHT"] = "ndBlueBright";
|
|
24
|
+
COLOR["ND_GOLD"] = "ndGold";
|
|
25
|
+
COLOR["ND_GOLD_LIGHT"] = "ndGoldLight";
|
|
26
|
+
COLOR["ND_GOLD_DARK"] = "ndGoldDark";
|
|
27
|
+
COLOR["ND_SKY_BLUE"] = "ndSkyBlue";
|
|
28
|
+
COLOR["ND_SKY_BLUE_DARK"] = "ndSkyBlueDark";
|
|
29
|
+
COLOR["ND_METALLIC_GOLD"] = "ndMetallicGold";
|
|
30
|
+
COLOR["ND_PROVOST_BLUE"] = "ndProvostBlue";
|
|
31
|
+
COLOR["ND_SECONDARY_1"] = "ndSecondary1";
|
|
32
|
+
COLOR["ND_SECONDARY_2"] = "ndSecondary2";
|
|
33
|
+
COLOR["ND_SECONDARY_3"] = "ndSecondary3";
|
|
34
|
+
COLOR["ND_SECONDARY_4"] = "ndSecondary4";
|
|
35
|
+
COLOR["ND_SECONDARY_5"] = "ndSecondary5";
|
|
36
|
+
COLOR["ND_SECONDARY_6"] = "ndSecondary6";
|
|
37
|
+
COLOR["ND_TERTIARY_1"] = "ndTertiary1";
|
|
38
|
+
COLOR["ND_TERTIARY_2"] = "ndTertiary2";
|
|
39
|
+
COLOR["ND_TERTIARY_3"] = "ndTertiary3";
|
|
40
|
+
COLOR["ND_TERTIARY_4"] = "ndTertiary4";
|
|
41
|
+
COLOR["ND_TERTIARY_5"] = "ndTertiary5";
|
|
42
|
+
COLOR["ND_TERTIARY_6"] = "ndTertiary6";
|
|
43
|
+
COLOR["ALERT_INFORMATIONAL_BG"] = "alertInformationalBg";
|
|
44
|
+
COLOR["ALERT_INFORMATIONAL_BORDER"] = "alertInformationalBorder";
|
|
45
|
+
COLOR["ALERT_INFORMATIONAL_YELLOW_BG"] = "alertInformationalYellowBg";
|
|
46
|
+
COLOR["ALERT_INFORMATIONAL_YELLOW_BORDER"] = "alertInformationalYellowBorder";
|
|
47
|
+
COLOR["ALERT_WARNING_BG"] = "alertWarningBg";
|
|
48
|
+
COLOR["ALERT_WARNING_BORDER"] = "alertWarningBorder";
|
|
49
|
+
})(COLOR || (COLOR = {}));
|
|
50
|
+
export const colors = {
|
|
51
|
+
[COLOR.TEXT]: '#333333',
|
|
52
|
+
[COLOR.LIGHT_TEXT]: '#767676',
|
|
53
|
+
[COLOR.BACKGROUND]: '#ffffff',
|
|
54
|
+
[COLOR.TRANSPARENT]: 'rgba(0,0,0,0)',
|
|
55
|
+
[COLOR.PRIMARY]: '#0c2340',
|
|
56
|
+
[COLOR.TEXT_ON_PRIMARY]: '#ffffff',
|
|
57
|
+
[COLOR.PRIMARY_HIGHLIGHT]: '#000d1d',
|
|
58
|
+
[COLOR.SECONDARY]: '#d39f10',
|
|
59
|
+
[COLOR.SECONDARY_HIGHLIGHT]: '#ddcc70',
|
|
60
|
+
[COLOR.TEXT_ON_SECONDARY]: '#040401',
|
|
61
|
+
[COLOR.WHITE]: '#ffffff',
|
|
62
|
+
[COLOR.BLACK]: '#000000',
|
|
63
|
+
[COLOR.DARK_GRAY]: '#333333',
|
|
64
|
+
[COLOR.GRAY]: '#767676',
|
|
65
|
+
[COLOR.LIGHT_GRAY]: '#d2d2d2',
|
|
66
|
+
[COLOR.EXTRA_LIGHT_GRAY]: '#e2e2e2',
|
|
67
|
+
[COLOR.EXTRA_EXTRA_LIGHT_GRAY]: '#f2f2f2',
|
|
68
|
+
[COLOR.ND_GOLD]: '#ae9142',
|
|
69
|
+
[COLOR.ND_GOLD_LIGHT]: '#d39f10',
|
|
70
|
+
[COLOR.ND_GOLD_DARK]: '#8c7535',
|
|
71
|
+
[COLOR.ND_BLUE]: '#0c2340',
|
|
72
|
+
[COLOR.ND_BLUE_DARK]: '#081629',
|
|
73
|
+
[COLOR.ND_BLUE_LIGHT]: '#143865',
|
|
74
|
+
[COLOR.ND_BLUE_BRIGHT]: '#1c4f8f',
|
|
75
|
+
[COLOR.ND_SKY_BLUE]: '#e1e8f2',
|
|
76
|
+
[COLOR.ND_SKY_BLUE_DARK]: '#c1cddd',
|
|
77
|
+
[COLOR.ND_METALLIC_GOLD]: '#ae9142',
|
|
78
|
+
[COLOR.ND_PROVOST_BLUE]: '#002a5d',
|
|
79
|
+
[COLOR.ND_SECONDARY_1]: '#5aabbc',
|
|
80
|
+
[COLOR.ND_SECONDARY_2]: '#999623',
|
|
81
|
+
[COLOR.ND_SECONDARY_3]: '#5f1709',
|
|
82
|
+
[COLOR.ND_SECONDARY_4]: '#465510',
|
|
83
|
+
[COLOR.ND_SECONDARY_5]: '#f6e7a1',
|
|
84
|
+
[COLOR.ND_SECONDARY_6]: '#302205',
|
|
85
|
+
[COLOR.ND_TERTIARY_1]: '#00823E',
|
|
86
|
+
[COLOR.ND_TERTIARY_2]: '#4a3651',
|
|
87
|
+
[COLOR.ND_TERTIARY_3]: '#ffcf01',
|
|
88
|
+
[COLOR.ND_TERTIARY_4]: '#aa272f',
|
|
89
|
+
[COLOR.ND_TERTIARY_5]: '#5a412f',
|
|
90
|
+
[COLOR.ND_TERTIARY_6]: '#ba6f2e',
|
|
91
|
+
[COLOR.ALERT_INFORMATIONAL_BG]: '#ffb073',
|
|
92
|
+
[COLOR.ALERT_INFORMATIONAL_BORDER]: '#ad7950',
|
|
93
|
+
[COLOR.ALERT_INFORMATIONAL_YELLOW_BG]: '#f8e999',
|
|
94
|
+
[COLOR.ALERT_INFORMATIONAL_YELLOW_BORDER]: '#b3a871',
|
|
95
|
+
[COLOR.ALERT_WARNING_BG]: '#fc7279',
|
|
96
|
+
[COLOR.ALERT_WARNING_BORDER]: '#ad5458',
|
|
97
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export var BOX_SHADOW;
|
|
2
|
+
(function (BOX_SHADOW) {
|
|
3
|
+
BOX_SHADOW["NORMAL"] = "0 0 8px #dfdfdf";
|
|
4
|
+
BOX_SHADOW["EMPHASIZED"] = "0 0 12px #d3d3d3";
|
|
5
|
+
BOX_SHADOW["INVERTED"] = "0 0 8px #767676";
|
|
6
|
+
})(BOX_SHADOW || (BOX_SHADOW = {}));
|
|
7
|
+
export var Z_INDEX;
|
|
8
|
+
(function (Z_INDEX) {
|
|
9
|
+
Z_INDEX[Z_INDEX["NORMAL"] = 1] = "NORMAL";
|
|
10
|
+
Z_INDEX[Z_INDEX["ELEVATED"] = 2] = "ELEVATED";
|
|
11
|
+
Z_INDEX[Z_INDEX["DIALOG"] = 3] = "DIALOG";
|
|
12
|
+
Z_INDEX[Z_INDEX["MODAL"] = 4] = "MODAL";
|
|
13
|
+
})(Z_INDEX || (Z_INDEX = {}));
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { ThemeUICSSObject } from 'theme-ui';
|
|
3
|
+
import { FONT, FONT_SIZE, FONT_WEIGHT, LINE_HEIGHT } from './typography';
|
|
4
|
+
import { COLOR } from './colors';
|
|
5
|
+
import { BOX_SHADOW, Z_INDEX } from './custom';
|
|
6
|
+
export declare const BREAKPOINTS: string[];
|
|
7
|
+
export declare const SPACING: string[];
|
|
8
|
+
export declare const theme: {
|
|
9
|
+
colors: {
|
|
10
|
+
text: string;
|
|
11
|
+
lightText: string;
|
|
12
|
+
background: string;
|
|
13
|
+
transparent: string;
|
|
14
|
+
primary: string;
|
|
15
|
+
textOnPrimary: string;
|
|
16
|
+
primaryHighlight: string;
|
|
17
|
+
secondary: string;
|
|
18
|
+
textOnSecondary: string;
|
|
19
|
+
secondaryHighlight: string;
|
|
20
|
+
white: string;
|
|
21
|
+
black: string;
|
|
22
|
+
darkGray: string;
|
|
23
|
+
gray: string;
|
|
24
|
+
lightGray: string;
|
|
25
|
+
extraLightGray: string;
|
|
26
|
+
extraExtraLightGray: string;
|
|
27
|
+
ndBlue: string;
|
|
28
|
+
ndBlueDark: string;
|
|
29
|
+
ndBlueLight: string;
|
|
30
|
+
ndBlueBright: string;
|
|
31
|
+
ndGold: string;
|
|
32
|
+
ndGoldLight: string;
|
|
33
|
+
ndGoldDark: string;
|
|
34
|
+
ndSkyBlue: string;
|
|
35
|
+
ndSkyBlueDark: string;
|
|
36
|
+
ndMetallicGold: string;
|
|
37
|
+
ndProvostBlue: string;
|
|
38
|
+
ndSecondary1: string;
|
|
39
|
+
ndSecondary2: string;
|
|
40
|
+
ndSecondary3: string;
|
|
41
|
+
ndSecondary4: string;
|
|
42
|
+
ndSecondary5: string;
|
|
43
|
+
ndSecondary6: string;
|
|
44
|
+
ndTertiary1: string;
|
|
45
|
+
ndTertiary2: string;
|
|
46
|
+
ndTertiary3: string;
|
|
47
|
+
ndTertiary4: string;
|
|
48
|
+
ndTertiary5: string;
|
|
49
|
+
ndTertiary6: string;
|
|
50
|
+
alertInformationalBg: string;
|
|
51
|
+
alertInformationalBorder: string;
|
|
52
|
+
alertInformationalYellowBg: string;
|
|
53
|
+
alertInformationalYellowBorder: string;
|
|
54
|
+
alertWarningBg: string;
|
|
55
|
+
alertWarningBorder: string;
|
|
56
|
+
};
|
|
57
|
+
space: string[];
|
|
58
|
+
boxShadow: typeof BOX_SHADOW;
|
|
59
|
+
breakpoints: string[];
|
|
60
|
+
zIndex: typeof Z_INDEX;
|
|
61
|
+
fonts: {
|
|
62
|
+
branded: string;
|
|
63
|
+
branded2: string;
|
|
64
|
+
serif: string;
|
|
65
|
+
normal: string;
|
|
66
|
+
};
|
|
67
|
+
fontSizes: {
|
|
68
|
+
xxs: string;
|
|
69
|
+
xs: string;
|
|
70
|
+
sm: string;
|
|
71
|
+
ms: string;
|
|
72
|
+
md: string;
|
|
73
|
+
ml: string;
|
|
74
|
+
lg: string;
|
|
75
|
+
xl: string;
|
|
76
|
+
xxl: string;
|
|
77
|
+
};
|
|
78
|
+
lineHeights: {
|
|
79
|
+
normal: number;
|
|
80
|
+
condensed: number;
|
|
81
|
+
};
|
|
82
|
+
fontWeights: {
|
|
83
|
+
normal: number;
|
|
84
|
+
heading: number;
|
|
85
|
+
bold: number;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export type Theme = typeof theme;
|
|
89
|
+
export type StylesProp = ThemeUICSSObject & {
|
|
90
|
+
color?: COLOR;
|
|
91
|
+
bg?: COLOR;
|
|
92
|
+
borderColor?: COLOR;
|
|
93
|
+
fontSize?: FONT_SIZE;
|
|
94
|
+
font?: FONT;
|
|
95
|
+
fontWeight?: FONT_WEIGHT;
|
|
96
|
+
lineHeight?: LINE_HEIGHT | number;
|
|
97
|
+
boxShadow?: BOX_SHADOW;
|
|
98
|
+
};
|
|
99
|
+
export type StyledElementProps<E extends Element, CustomProps = object, Children = React.ReactNode> = {
|
|
100
|
+
sx?: StylesProp;
|
|
101
|
+
children?: Children;
|
|
102
|
+
} & Omit<React.HTMLAttributes<E>, 'children' | 'onChange'> & CustomProps & {
|
|
103
|
+
htmlFor?: string;
|
|
104
|
+
};
|
|
105
|
+
export declare const useTheme: () => {
|
|
106
|
+
colors: {
|
|
107
|
+
text: string;
|
|
108
|
+
lightText: string;
|
|
109
|
+
background: string;
|
|
110
|
+
transparent: string;
|
|
111
|
+
primary: string;
|
|
112
|
+
textOnPrimary: string;
|
|
113
|
+
primaryHighlight: string;
|
|
114
|
+
secondary: string;
|
|
115
|
+
textOnSecondary: string;
|
|
116
|
+
secondaryHighlight: string;
|
|
117
|
+
white: string;
|
|
118
|
+
black: string;
|
|
119
|
+
darkGray: string;
|
|
120
|
+
gray: string;
|
|
121
|
+
lightGray: string;
|
|
122
|
+
extraLightGray: string;
|
|
123
|
+
extraExtraLightGray: string;
|
|
124
|
+
ndBlue: string;
|
|
125
|
+
ndBlueDark: string;
|
|
126
|
+
ndBlueLight: string;
|
|
127
|
+
ndBlueBright: string;
|
|
128
|
+
ndGold: string;
|
|
129
|
+
ndGoldLight: string;
|
|
130
|
+
ndGoldDark: string;
|
|
131
|
+
ndSkyBlue: string;
|
|
132
|
+
ndSkyBlueDark: string;
|
|
133
|
+
ndMetallicGold: string;
|
|
134
|
+
ndProvostBlue: string;
|
|
135
|
+
ndSecondary1: string;
|
|
136
|
+
ndSecondary2: string;
|
|
137
|
+
ndSecondary3: string;
|
|
138
|
+
ndSecondary4: string;
|
|
139
|
+
ndSecondary5: string;
|
|
140
|
+
ndSecondary6: string;
|
|
141
|
+
ndTertiary1: string;
|
|
142
|
+
ndTertiary2: string;
|
|
143
|
+
ndTertiary3: string;
|
|
144
|
+
ndTertiary4: string;
|
|
145
|
+
ndTertiary5: string;
|
|
146
|
+
ndTertiary6: string;
|
|
147
|
+
alertInformationalBg: string;
|
|
148
|
+
alertInformationalBorder: string;
|
|
149
|
+
alertInformationalYellowBg: string;
|
|
150
|
+
alertInformationalYellowBorder: string;
|
|
151
|
+
alertWarningBg: string;
|
|
152
|
+
alertWarningBorder: string;
|
|
153
|
+
};
|
|
154
|
+
space: string[];
|
|
155
|
+
boxShadow: typeof BOX_SHADOW;
|
|
156
|
+
breakpoints: string[];
|
|
157
|
+
zIndex: typeof Z_INDEX;
|
|
158
|
+
fonts: {
|
|
159
|
+
branded: string;
|
|
160
|
+
branded2: string;
|
|
161
|
+
serif: string;
|
|
162
|
+
normal: string;
|
|
163
|
+
};
|
|
164
|
+
fontSizes: {
|
|
165
|
+
xxs: string;
|
|
166
|
+
xs: string;
|
|
167
|
+
sm: string;
|
|
168
|
+
ms: string;
|
|
169
|
+
md: string;
|
|
170
|
+
ml: string;
|
|
171
|
+
lg: string;
|
|
172
|
+
xl: string;
|
|
173
|
+
xxl: string;
|
|
174
|
+
};
|
|
175
|
+
lineHeights: {
|
|
176
|
+
normal: number;
|
|
177
|
+
condensed: number;
|
|
178
|
+
};
|
|
179
|
+
fontWeights: {
|
|
180
|
+
normal: number;
|
|
181
|
+
heading: number;
|
|
182
|
+
bold: number;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
export declare const ThemeProvider: React.FC<PropsWithChildren>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ThemeUIProvider, useThemeUI } from 'theme-ui';
|
|
3
|
+
import { fontStyles, } from './typography';
|
|
4
|
+
import { colors } from './colors';
|
|
5
|
+
import { BOX_SHADOW, Z_INDEX } from './custom';
|
|
6
|
+
export const BREAKPOINTS = ['576px', '768px', '992px', '1200px', '1400px'];
|
|
7
|
+
export const SPACING = [
|
|
8
|
+
'0rem',
|
|
9
|
+
'0.25rem',
|
|
10
|
+
'0.5rem',
|
|
11
|
+
'0.75rem',
|
|
12
|
+
'1rem',
|
|
13
|
+
'1.5rem',
|
|
14
|
+
'2rem',
|
|
15
|
+
'3rem',
|
|
16
|
+
'4rem',
|
|
17
|
+
];
|
|
18
|
+
export const theme = Object.assign(Object.assign({}, fontStyles), { colors, space: SPACING, boxShadow: BOX_SHADOW, breakpoints: BREAKPOINTS, zIndex: Z_INDEX });
|
|
19
|
+
export const useTheme = () => {
|
|
20
|
+
const { theme } = useThemeUI();
|
|
21
|
+
return theme;
|
|
22
|
+
};
|
|
23
|
+
export const ThemeProvider = ({ children }) => {
|
|
24
|
+
return _jsx(ThemeUIProvider, Object.assign({ theme: theme }, { children: children }));
|
|
25
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|