@vectara/vectara-ui 0.0.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/.github/workflows/deploy-pages-site.yml +26 -0
- package/.github/workflows/deploy-pr-preview.yml +25 -0
- package/CHANGELOG.md +13 -0
- package/NO_LICENSE +3 -0
- package/lib/components/accordion/Accordion.d.ts +8 -0
- package/lib/components/accordion/Accordion.js +27 -0
- package/lib/components/accordion/_index.scss +23 -0
- package/lib/components/accountMenu/AccountMenu.d.ts +13 -0
- package/lib/components/accountMenu/AccountMenu.js +7 -0
- package/lib/components/accountMenu/_index.scss +20 -0
- package/lib/components/app/AppContent.d.ts +9 -0
- package/lib/components/app/AppContent.js +28 -0
- package/lib/components/app/AppHeader.d.ts +7 -0
- package/lib/components/app/AppHeader.js +18 -0
- package/lib/components/app/AppLayout.d.ts +9 -0
- package/lib/components/app/AppLayout.js +10 -0
- package/lib/components/app/_index.scss +4 -0
- package/lib/components/app/appContent.scss +26 -0
- package/lib/components/app/appHeader.scss +15 -0
- package/lib/components/app/appLayout.scss +23 -0
- package/lib/components/app/appSideNav/AppSideNav.d.ts +7 -0
- package/lib/components/app/appSideNav/AppSideNav.js +46 -0
- package/lib/components/app/appSideNav/AppSideNavLink.d.ts +4 -0
- package/lib/components/app/appSideNav/AppSideNavLink.js +26 -0
- package/lib/components/app/appSideNav/AppSideNavSections.d.ts +2 -0
- package/lib/components/app/appSideNav/AppSideNavSections.js +11 -0
- package/lib/components/app/appSideNav/AppSideNavTree.d.ts +2 -0
- package/lib/components/app/appSideNav/AppSideNavTree.js +38 -0
- package/lib/components/app/appSideNav/_index.scss +17 -0
- package/lib/components/app/appSideNav/appSideNav.scss +75 -0
- package/lib/components/app/appSideNav/appSideNavSections.scss +33 -0
- package/lib/components/app/appSideNav/appSideNavTree.scss +25 -0
- package/lib/components/app/types.d.ts +21 -0
- package/lib/components/app/types.js +1 -0
- package/lib/components/badge/Badge.d.ts +14 -0
- package/lib/components/badge/Badge.js +33 -0
- package/lib/components/badge/_index.scss +64 -0
- package/lib/components/button/BaseButton.d.ts +28 -0
- package/lib/components/button/BaseButton.js +65 -0
- package/lib/components/button/ButtonPrimary.d.ts +8 -0
- package/lib/components/button/ButtonPrimary.js +42 -0
- package/lib/components/button/ButtonSecondary.d.ts +10 -0
- package/lib/components/button/ButtonSecondary.js +43 -0
- package/lib/components/button/ButtonTertiary.d.ts +10 -0
- package/lib/components/button/ButtonTertiary.js +43 -0
- package/lib/components/button/IconButton.d.ts +16 -0
- package/lib/components/button/IconButton.js +29 -0
- package/lib/components/button/_index.scss +5 -0
- package/lib/components/button/baseButton.scss +94 -0
- package/lib/components/button/buttonPrimary.scss +51 -0
- package/lib/components/button/buttonSecondary.scss +54 -0
- package/lib/components/button/buttonTertiary.scss +56 -0
- package/lib/components/button/createButtonIcon.d.ts +3 -0
- package/lib/components/button/createButtonIcon.js +24 -0
- package/lib/components/button/iconButton.scss +44 -0
- package/lib/components/button/types.d.ts +3 -0
- package/lib/components/button/types.js +2 -0
- package/lib/components/callout/Callout.d.ts +13 -0
- package/lib/components/callout/Callout.js +40 -0
- package/lib/components/callout/_index.scss +49 -0
- package/lib/components/callout/types.d.ts +3 -0
- package/lib/components/callout/types.js +2 -0
- package/lib/components/card/Card.d.ts +14 -0
- package/lib/components/card/Card.js +29 -0
- package/lib/components/card/_index.scss +114 -0
- package/lib/components/chat/Chat.d.ts +17 -0
- package/lib/components/chat/Chat.js +130 -0
- package/lib/components/chat/ChatInspector.d.ts +7 -0
- package/lib/components/chat/ChatInspector.js +12 -0
- package/lib/components/chat/ChatPanel.d.ts +7 -0
- package/lib/components/chat/ChatPanel.js +11 -0
- package/lib/components/chat/ChatSearchResult.d.ts +16 -0
- package/lib/components/chat/ChatSearchResult.js +26 -0
- package/lib/components/chat/ChatTurn.d.ts +9 -0
- package/lib/components/chat/ChatTurn.js +19 -0
- package/lib/components/chat/_index.scss +150 -0
- package/lib/components/chat/chatTurn.scss +38 -0
- package/lib/components/chat/types.d.ts +17 -0
- package/lib/components/chat/types.js +19 -0
- package/lib/components/code/Code.d.ts +17 -0
- package/lib/components/code/Code.js +44 -0
- package/lib/components/code/_index.scss +33 -0
- package/lib/components/code/types.d.ts +1 -0
- package/lib/components/code/types.js +1 -0
- package/lib/components/context/Context.d.ts +18 -0
- package/lib/components/context/Context.js +34 -0
- package/lib/components/context/Context.test.util.d.ts +2 -0
- package/lib/components/context/Context.test.util.js +22 -0
- package/lib/components/copyButton/CopyButton.d.ts +10 -0
- package/lib/components/copyButton/CopyButton.js +50 -0
- package/lib/components/drawer/Drawer.d.ts +13 -0
- package/lib/components/drawer/Drawer.js +53 -0
- package/lib/components/drawer/_index.scss +73 -0
- package/lib/components/flex/FlexContainer.d.ts +36 -0
- package/lib/components/flex/FlexContainer.js +53 -0
- package/lib/components/flex/FlexItem.d.ts +22 -0
- package/lib/components/flex/FlexItem.js +36 -0
- package/lib/components/flex/_flexContainer.scss +79 -0
- package/lib/components/flex/_flexItem.scss +64 -0
- package/lib/components/flex/_index.scss +2 -0
- package/lib/components/flex/types.d.ts +2 -0
- package/lib/components/flex/types.js +1 -0
- package/lib/components/form/_index.scss +7 -0
- package/lib/components/form/checkbox/Checkbox.d.ts +8 -0
- package/lib/components/form/checkbox/Checkbox.js +24 -0
- package/lib/components/form/checkbox/_index.scss +3 -0
- package/lib/components/form/index.d.ts +10 -0
- package/lib/components/form/index.js +9 -0
- package/lib/components/form/input/BasicInput.d.ts +15 -0
- package/lib/components/form/input/BasicInput.js +30 -0
- package/lib/components/form/input/NumberInput.d.ts +8 -0
- package/lib/components/form/input/NumberInput.js +61 -0
- package/lib/components/form/input/PasswordInput.d.ts +7 -0
- package/lib/components/form/input/PasswordInput.js +21 -0
- package/lib/components/form/input/TextInput.d.ts +6 -0
- package/lib/components/form/input/TextInput.js +21 -0
- package/lib/components/form/input/_index.scss +24 -0
- package/lib/components/form/label/Label.d.ts +7 -0
- package/lib/components/form/label/Label.js +18 -0
- package/lib/components/form/label/_index.scss +5 -0
- package/lib/components/form/radioButton/RadioButton.d.ts +9 -0
- package/lib/components/form/radioButton/RadioButton.js +24 -0
- package/lib/components/form/radioButton/_index.scss +3 -0
- package/lib/components/form/select/Select.d.ts +17 -0
- package/lib/components/form/select/Select.js +34 -0
- package/lib/components/form/select/_index.scss +56 -0
- package/lib/components/form/superRadioGroup/SuperRadioButton.d.ts +7 -0
- package/lib/components/form/superRadioGroup/SuperRadioButton.js +22 -0
- package/lib/components/form/superRadioGroup/SuperRadioGroup.d.ts +8 -0
- package/lib/components/form/superRadioGroup/SuperRadioGroup.js +6 -0
- package/lib/components/form/superRadioGroup/_index.scss +31 -0
- package/lib/components/form/superRadioGroup/types.d.ts +8 -0
- package/lib/components/form/superRadioGroup/types.js +1 -0
- package/lib/components/form/textArea/TextArea.d.ts +12 -0
- package/lib/components/form/textArea/TextArea.js +21 -0
- package/lib/components/form/textArea/_index.scss +14 -0
- package/lib/components/formGroup/FormGroup.d.ts +10 -0
- package/lib/components/formGroup/FormGroup.js +27 -0
- package/lib/components/grid/Grid.d.ts +12 -0
- package/lib/components/grid/Grid.js +20 -0
- package/lib/components/grid/_index.scss +51 -0
- package/lib/components/horizontalRule/HorizontalRule.d.ts +6 -0
- package/lib/components/horizontalRule/HorizontalRule.js +4 -0
- package/lib/components/horizontalRule/_index.scss +40 -0
- package/lib/components/icon/Icon.d.ts +11 -0
- package/lib/components/icon/Icon.js +37 -0
- package/lib/components/icon/_index.scss +25 -0
- package/lib/components/icon/types.d.ts +2 -0
- package/lib/components/icon/types.js +12 -0
- package/lib/components/index.d.ts +75 -0
- package/lib/components/index.js +67 -0
- package/lib/components/infoTable/InfoTable.d.ts +24 -0
- package/lib/components/infoTable/InfoTable.js +24 -0
- package/lib/components/infoTable/_index.scss +53 -0
- package/lib/components/link/Link.d.ts +3 -0
- package/lib/components/link/Link.js +36 -0
- package/lib/components/link/Link.test.d.ts +1 -0
- package/lib/components/link/Link.test.js +40 -0
- package/lib/components/link/_index.scss +17 -0
- package/lib/components/link/types.d.ts +15 -0
- package/lib/components/link/types.js +1 -0
- package/lib/components/list/List.d.ts +12 -0
- package/lib/components/list/List.js +15 -0
- package/lib/components/list/_index.scss +29 -0
- package/lib/components/menu/Menu.d.ts +7 -0
- package/lib/components/menu/Menu.js +6 -0
- package/lib/components/menu/MenuItem.d.ts +10 -0
- package/lib/components/menu/MenuItem.js +31 -0
- package/lib/components/menu/_index.scss +75 -0
- package/lib/components/modal/Modal.d.ts +13 -0
- package/lib/components/modal/Modal.js +53 -0
- package/lib/components/modal/_index.scss +85 -0
- package/lib/components/notification/Notification.d.ts +12 -0
- package/lib/components/notification/Notification.js +23 -0
- package/lib/components/notification/Notifications.d.ts +10 -0
- package/lib/components/notification/Notifications.js +35 -0
- package/lib/components/notification/_index.scss +99 -0
- package/lib/components/optionsButton/OptionsButton.d.ts +7 -0
- package/lib/components/optionsButton/OptionsButton.js +25 -0
- package/lib/components/optionsButton/_index.scss +42 -0
- package/lib/components/optionsList/OptionsList.d.ts +13 -0
- package/lib/components/optionsList/OptionsList.js +31 -0
- package/lib/components/optionsList/OptionsListItem.d.ts +10 -0
- package/lib/components/optionsList/OptionsListItem.js +41 -0
- package/lib/components/optionsList/_index.scss +84 -0
- package/lib/components/optionsList/types.d.ts +13 -0
- package/lib/components/optionsList/types.js +1 -0
- package/lib/components/popover/Popover.d.ts +11 -0
- package/lib/components/popover/Popover.js +91 -0
- package/lib/components/popover/_index.scss +29 -0
- package/lib/components/portal/Portal.d.ts +6 -0
- package/lib/components/portal/Portal.js +16 -0
- package/lib/components/progressBar/ProgressBar.d.ts +9 -0
- package/lib/components/progressBar/ProgressBar.js +26 -0
- package/lib/components/progressBar/_index.scss +63 -0
- package/lib/components/prompt/Prompt.d.ts +20 -0
- package/lib/components/prompt/Prompt.js +19 -0
- package/lib/components/prompt/_index.scss +70 -0
- package/lib/components/screenBlock/ScreenBlock.d.ts +6 -0
- package/lib/components/screenBlock/ScreenBlock.js +4 -0
- package/lib/components/screenBlock/_index.scss +17 -0
- package/lib/components/searchInput/SearchInput.d.ts +13 -0
- package/lib/components/searchInput/SearchInput.js +19 -0
- package/lib/components/searchInput/_index.scss +49 -0
- package/lib/components/searchResult/SearchResult.d.ts +21 -0
- package/lib/components/searchResult/SearchResult.js +33 -0
- package/lib/components/searchResult/SearchResult.test.d.ts +1 -0
- package/lib/components/searchResult/SearchResult.test.js +280 -0
- package/lib/components/searchResult/_index.scss +29 -0
- package/lib/components/searchSelect/SearchSelect.d.ts +11 -0
- package/lib/components/searchSelect/SearchSelect.js +78 -0
- package/lib/components/searchSelect/_index.scss +13 -0
- package/lib/components/setting/Setting.d.ts +12 -0
- package/lib/components/setting/Setting.js +24 -0
- package/lib/components/spacer/Spacer.d.ts +6 -0
- package/lib/components/spacer/Spacer.js +6 -0
- package/lib/components/spacer/_index.scss +20 -0
- package/lib/components/spacer/types.d.ts +1 -0
- package/lib/components/spacer/types.js +1 -0
- package/lib/components/spinner/Spinner.d.ts +7 -0
- package/lib/components/spinner/Spinner.js +15 -0
- package/lib/components/spinner/_index.scss +52 -0
- package/lib/components/spinner/types.d.ts +3 -0
- package/lib/components/spinner/types.js +2 -0
- package/lib/components/statList/StatList.d.ts +9 -0
- package/lib/components/statList/StatList.js +15 -0
- package/lib/components/statList/_index.scss +3 -0
- package/lib/components/status/Status.d.ts +6 -0
- package/lib/components/status/Status.js +24 -0
- package/lib/components/summary/Summary.d.ts +7 -0
- package/lib/components/summary/Summary.js +43 -0
- package/lib/components/summary/Summary.test.d.ts +1 -0
- package/lib/components/summary/Summary.test.js +544 -0
- package/lib/components/summary/SummaryCitation.d.ts +8 -0
- package/lib/components/summary/SummaryCitation.js +20 -0
- package/lib/components/summary/_index.scss +29 -0
- package/lib/components/table/Table.d.ts +44 -0
- package/lib/components/table/Table.js +117 -0
- package/lib/components/table/TableBulkActions.d.ts +7 -0
- package/lib/components/table/TableBulkActions.js +34 -0
- package/lib/components/table/TableCell.d.ts +5 -0
- package/lib/components/table/TableCell.js +4 -0
- package/lib/components/table/TableContent.d.ts +6 -0
- package/lib/components/table/TableContent.js +6 -0
- package/lib/components/table/TableHeaderCell.d.ts +9 -0
- package/lib/components/table/TableHeaderCell.js +8 -0
- package/lib/components/table/TablePager.d.ts +9 -0
- package/lib/components/table/TablePager.js +9 -0
- package/lib/components/table/TablePagination.d.ts +10 -0
- package/lib/components/table/TablePagination.js +18 -0
- package/lib/components/table/TableRowActions.d.ts +15 -0
- package/lib/components/table/TableRowActions.js +29 -0
- package/lib/components/table/_index.scss +70 -0
- package/lib/components/table/createPagination.d.ts +4 -0
- package/lib/components/table/createPagination.js +44 -0
- package/lib/components/table/createPagination.test.d.ts +1 -0
- package/lib/components/table/createPagination.test.js +32 -0
- package/lib/components/table/types.d.ts +1 -0
- package/lib/components/table/types.js +1 -0
- package/lib/components/tabs/Tab.d.ts +9 -0
- package/lib/components/tabs/Tab.js +27 -0
- package/lib/components/tabs/TabbedRoutes.d.ts +15 -0
- package/lib/components/tabs/TabbedRoutes.js +15 -0
- package/lib/components/tabs/Tabs.d.ts +10 -0
- package/lib/components/tabs/Tabs.js +8 -0
- package/lib/components/tabs/_index.scss +103 -0
- package/lib/components/tabs/types.d.ts +2 -0
- package/lib/components/tabs/types.js +1 -0
- package/lib/components/toggle/Toggle.d.ts +8 -0
- package/lib/components/toggle/Toggle.js +25 -0
- package/lib/components/toggle/_index.scss +55 -0
- package/lib/components/topicButton/TopicButton.d.ts +10 -0
- package/lib/components/topicButton/TopicButton.js +30 -0
- package/lib/components/topicButton/_index.scss +21 -0
- package/lib/components/typography/Text.d.ts +13 -0
- package/lib/components/typography/Text.js +24 -0
- package/lib/components/typography/TextColor.d.ts +9 -0
- package/lib/components/typography/TextColor.js +6 -0
- package/lib/components/typography/Title.d.ts +11 -0
- package/lib/components/typography/Title.js +20 -0
- package/lib/components/typography/_index.scss +3 -0
- package/lib/components/typography/_text.scss +150 -0
- package/lib/components/typography/_textColor.scss +15 -0
- package/lib/components/typography/_title.scss +68 -0
- package/lib/components/typography/types.d.ts +4 -0
- package/lib/components/typography/types.js +3 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/sassUtils/_animation.scss +1 -0
- package/lib/sassUtils/_app.scss +1 -0
- package/lib/sassUtils/_borders.scss +2 -0
- package/lib/sassUtils/_colors.scss +24 -0
- package/lib/sassUtils/_depth.scss +8 -0
- package/lib/sassUtils/_mixins.scss +11 -0
- package/lib/sassUtils/_shadows.scss +5 -0
- package/lib/sassUtils/_sizes.scss +10 -0
- package/lib/sassUtils/_typography.scss +20 -0
- package/lib/sassUtils/index.scss +10 -0
- package/lib/styles/index.css +3229 -0
- package/lib/utils/citations/applyCitationOrder.d.ts +1 -0
- package/lib/utils/citations/applyCitationOrder.js +19 -0
- package/lib/utils/citations/applyCitationOrder.test.d.ts +1 -0
- package/lib/utils/citations/applyCitationOrder.test.js +65 -0
- package/lib/utils/citations/extractCitations.d.ts +4 -0
- package/lib/utils/citations/extractCitations.js +26 -0
- package/lib/utils/citations/extractCitations.test.d.ts +1 -0
- package/lib/utils/citations/extractCitations.test.js +40 -0
- package/lib/utils/citations/index.d.ts +5 -0
- package/lib/utils/citations/index.js +5 -0
- package/lib/utils/citations/removeCitations.d.ts +1 -0
- package/lib/utils/citations/removeCitations.js +2 -0
- package/lib/utils/citations/removeCitations.test.d.ts +1 -0
- package/lib/utils/citations/removeCitations.test.js +11 -0
- package/lib/utils/citations/reorderCitations.d.ts +1 -0
- package/lib/utils/citations/reorderCitations.js +9 -0
- package/lib/utils/citations/reorderCitations.test.d.ts +1 -0
- package/lib/utils/citations/reorderCitations.test.js +6 -0
- package/lib/utils/citations/sanitizeCitations.d.ts +1 -0
- package/lib/utils/citations/sanitizeCitations.js +30 -0
- package/lib/utils/citations/sanitizeCitations.test.d.ts +1 -0
- package/lib/utils/citations/sanitizeCitations.test.js +11 -0
- package/lib/utils/createId.d.ts +1 -0
- package/lib/utils/createId.js +10 -0
- package/lib/utils/getTrackingProps.d.ts +7 -0
- package/lib/utils/getTrackingProps.js +18 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/truncateString.d.ts +2 -0
- package/lib/utils/truncateString.js +20 -0
- package/lib/utils/truncateString.test.d.ts +1 -0
- package/lib/utils/truncateString.test.js +59 -0
- package/licenses.txt +9035 -0
- package/package.json +100 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
.vuiTabs {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
border-bottom: 1px solid $borderColorLight;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
column-gap: $sizeXxs;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.vuiTabs--fullWidth {
|
|
10
|
+
.vuiTabs__tabs {
|
|
11
|
+
flex-grow: 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.vuiTab {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex: 1 1 0;
|
|
17
|
+
justify-content: stretch;
|
|
18
|
+
|
|
19
|
+
.vuiTab__inner {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex: 1 1 0;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.vuiTab__inner {
|
|
28
|
+
border-radius: $sizeXxs;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
text-overflow: ellipsis;
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.vuiTabs--s {
|
|
35
|
+
.vuiTab {
|
|
36
|
+
.vuiTab__inner {
|
|
37
|
+
padding: $sizeXs $sizeS;
|
|
38
|
+
font-size: $fontSizeStandard;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.vuiTabs--m {
|
|
44
|
+
.vuiTab {
|
|
45
|
+
.vuiTab__inner {
|
|
46
|
+
padding: $sizeXs $sizeS;
|
|
47
|
+
font-size: $fontSizeMedium;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.vuiTabs__tabs {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.vuiTabs__appendedContent {
|
|
58
|
+
flex-basis: auto;
|
|
59
|
+
flex-grow: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.vuiTab {
|
|
63
|
+
padding: $sizeXxs;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
text-overflow: ellipsis;
|
|
66
|
+
white-space: nowrap;
|
|
67
|
+
flex-grow: 0;
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
color: $colorSubdued;
|
|
70
|
+
text-decoration: none;
|
|
71
|
+
box-shadow: transparent 0px 1px 0px, transparent 0px -1px 0px inset;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
|
|
74
|
+
&:first-child {
|
|
75
|
+
padding-left: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:last-child {
|
|
79
|
+
padding-right: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:hover {
|
|
83
|
+
.vuiTab__inner {
|
|
84
|
+
color: $colorPrimary;
|
|
85
|
+
background-color: $colorPrimaryLighterShade;
|
|
86
|
+
text-decoration: underline;
|
|
87
|
+
|
|
88
|
+
.vuiIcon__inner {
|
|
89
|
+
color: $colorPrimary !important;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.vuiTab-isActive {
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
color: $colorFullShade;
|
|
97
|
+
box-shadow: $borderColor 0px 1px 0px;
|
|
98
|
+
|
|
99
|
+
.vuiTab__inner {
|
|
100
|
+
background-color: $colorMediumLightShade;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const TAB_SIZE = ["s", "m"];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const VuiToggle: ({ id, checked, onChange, label, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { createId } from "../../utils/createId";
|
|
14
|
+
import { VuiFlexContainer } from "../flex/FlexContainer";
|
|
15
|
+
import { VuiFlexItem } from "../flex/FlexItem";
|
|
16
|
+
export const VuiToggle = (_a) => {
|
|
17
|
+
var { id, checked, onChange, label } = _a, rest = __rest(_a, ["id", "checked", "onChange", "label"]);
|
|
18
|
+
let labelId;
|
|
19
|
+
const inputProps = {};
|
|
20
|
+
if (label) {
|
|
21
|
+
labelId = createId();
|
|
22
|
+
inputProps["aria-labelledby"] = labelId;
|
|
23
|
+
}
|
|
24
|
+
return (_jsxs(VuiFlexContainer, Object.assign({ alignItems: "center", spacing: "s" }, { children: [_jsx(VuiFlexItem, Object.assign({ grow: false }, { children: _jsxs("label", Object.assign({ className: "vuiToggle" }, { children: [_jsx("input", Object.assign({ className: "vuiToggle__input", type: "checkbox", checked: checked, onChange: onChange, id: id }, inputProps, rest)), _jsx("span", { className: "vuiToggle__button" })] })) })), label && (_jsx(VuiFlexItem, Object.assign({ grow: false }, { children: _jsx("div", Object.assign({ id: labelId }, { children: label })) })))] })));
|
|
25
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
$toggleWidth: $sizeL * 1.5;
|
|
2
|
+
$toggleHeight: $sizeM * 1.25;
|
|
3
|
+
$buttonOffset: 2px;
|
|
4
|
+
$buttonSize: $toggleHeight - ($buttonOffset * 2);
|
|
5
|
+
|
|
6
|
+
.vuiToggle {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: inline-block;
|
|
9
|
+
width: $toggleWidth;
|
|
10
|
+
height: $toggleHeight;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.vuiToggle__input {
|
|
14
|
+
opacity: 0;
|
|
15
|
+
width: 0;
|
|
16
|
+
height: 0;
|
|
17
|
+
|
|
18
|
+
&:checked + .vuiToggle__button {
|
|
19
|
+
background-color: $colorPrimary;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:focus-visible + .vuiToggle__button {
|
|
23
|
+
outline: 2px solid transparentize($colorPrimary, 0.25);
|
|
24
|
+
outline-offset: 2px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:checked + .vuiToggle__button:before {
|
|
28
|
+
transform: translateX($toggleWidth - $buttonSize - ($buttonOffset * 2));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.vuiToggle__button {
|
|
33
|
+
position: absolute;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
top: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
right: 0;
|
|
38
|
+
bottom: 0;
|
|
39
|
+
background-color: $colorMediumShade;
|
|
40
|
+
transition: $transitionSpeed;
|
|
41
|
+
border-radius: $buttonSize;
|
|
42
|
+
box-shadow: inset rgba(0, 0, 0, 0.1) 0px 2px 2px;
|
|
43
|
+
|
|
44
|
+
&:before {
|
|
45
|
+
position: absolute;
|
|
46
|
+
content: "";
|
|
47
|
+
height: $buttonSize;
|
|
48
|
+
width: $buttonSize;
|
|
49
|
+
left: $buttonOffset;
|
|
50
|
+
bottom: $buttonOffset;
|
|
51
|
+
background-color: $colorEmptyShade;
|
|
52
|
+
transition: $transitionSpeed;
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
children?: React.ReactNode;
|
|
3
|
+
className?: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
fullWidth?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const VuiTopicButton: ({ children, className, href, onClick, title, fullWidth, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import classNames from "classnames";
|
|
14
|
+
import { VuiSpacer } from "../spacer/Spacer";
|
|
15
|
+
import { VuiTextColor } from "../typography/TextColor";
|
|
16
|
+
import { VuiTitle } from "../typography/Title";
|
|
17
|
+
import { useVuiContext } from "../context/Context";
|
|
18
|
+
export const VuiTopicButton = (_a) => {
|
|
19
|
+
var { children, className, href, onClick, title, fullWidth } = _a, rest = __rest(_a, ["children", "className", "href", "onClick", "title", "fullWidth"]);
|
|
20
|
+
const { createLink } = useVuiContext();
|
|
21
|
+
const classes = classNames("vuiTopicButton", className, {
|
|
22
|
+
"vuiTopicButton--fullWidth": fullWidth
|
|
23
|
+
});
|
|
24
|
+
const content = (_jsxs(_Fragment, { children: [title && (_jsxs(_Fragment, { children: [_jsx(VuiTitle, Object.assign({ size: "s" }, { children: _jsx("p", { children: _jsx(VuiTextColor, Object.assign({ color: "primary" }, { children: title })) }) })), children && _jsx(VuiSpacer, { size: "xxs" })] })), children] }));
|
|
25
|
+
if (href) {
|
|
26
|
+
return createLink(Object.assign({ className: classes, href,
|
|
27
|
+
onClick, children: content }, rest));
|
|
28
|
+
}
|
|
29
|
+
return (_jsx("button", Object.assign({ className: classes, onClick: onClick }, rest, { children: content })));
|
|
30
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.vuiTopicButton {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
text-decoration: none;
|
|
4
|
+
background-color: $colorEmptyShade;
|
|
5
|
+
border-radius: $sizeXs;
|
|
6
|
+
box-shadow: $shadowLargeStart;
|
|
7
|
+
transition: box-shadow $transitionSpeed, border-color $transitionSpeed;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
padding: $sizeM $sizeL;
|
|
10
|
+
text-align: left;
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
text-decoration: none;
|
|
14
|
+
box-shadow: $shadowLargeEnd, $colorPrimary 0 0 1px 1px;
|
|
15
|
+
z-index: 1;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.vuiTopicButton--fullWidth {
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { TEXT_SIZE } from "./types";
|
|
3
|
+
declare const TEXT_ALIGN: readonly ["left", "center", "right"];
|
|
4
|
+
type Props = {
|
|
5
|
+
className?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
size?: (typeof TEXT_SIZE)[number];
|
|
9
|
+
align?: (typeof TEXT_ALIGN)[number];
|
|
10
|
+
truncate?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const VuiText: ({ children, className, id, truncate, size, align, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import classNames from "classnames";
|
|
14
|
+
const TEXT_ALIGN = ["left", "center", "right"];
|
|
15
|
+
export const VuiText = (_a) => {
|
|
16
|
+
var { children, className, id, truncate, size = "s", align } = _a, rest = __rest(_a, ["children", "className", "id", "truncate", "size", "align"]);
|
|
17
|
+
const classes = classNames("vuiText", `vuiText--${size}`, {
|
|
18
|
+
// Don't default to left alignment, so that the component inherits
|
|
19
|
+
// whatever has been defined by an ancestor.
|
|
20
|
+
[`vuiText--${align}`]: align,
|
|
21
|
+
"vuiText--truncate": truncate
|
|
22
|
+
}, className);
|
|
23
|
+
return (_jsx("div", Object.assign({ className: classes, id: id }, rest, { children: children })));
|
|
24
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { TextColor } from "./types";
|
|
3
|
+
type Props = {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
color: TextColor;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const VuiTextColor: ({ children, color, className }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
export const VuiTextColor = ({ children, color, className }) => {
|
|
4
|
+
const classes = classNames(className, "vuiTextColor", `vuiTextColor--${color}`);
|
|
5
|
+
return _jsx("span", Object.assign({ className: classes }, { children: children }));
|
|
6
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { TITLE_SIZE } from "./types";
|
|
3
|
+
declare const TEXT_ALIGN: readonly ["left", "center", "right"];
|
|
4
|
+
interface Props {
|
|
5
|
+
children: ReactElement<any>;
|
|
6
|
+
className?: string;
|
|
7
|
+
size: (typeof TITLE_SIZE)[number];
|
|
8
|
+
align?: (typeof TEXT_ALIGN)[number];
|
|
9
|
+
}
|
|
10
|
+
export declare const VuiTitle: ({ children, className, size, align, ...rest }: Props) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import classNames from "classnames";
|
|
13
|
+
import { cloneElement } from "react";
|
|
14
|
+
const TEXT_ALIGN = ["left", "center", "right"];
|
|
15
|
+
export const VuiTitle = (_a) => {
|
|
16
|
+
var { children, className, size, align } = _a, rest = __rest(_a, ["children", "className", "size", "align"]);
|
|
17
|
+
return cloneElement(children, Object.assign({ className: classNames("vuiTitle", `vuiTitle--${size}`, {
|
|
18
|
+
[`vuiTitle--${align}`]: align
|
|
19
|
+
}, className, children.props.className) }, rest));
|
|
20
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
.vuiText {
|
|
4
|
+
overflow-wrap: break-word;
|
|
5
|
+
word-break: break-word;
|
|
6
|
+
|
|
7
|
+
a {
|
|
8
|
+
color: $colorPrimary !important;
|
|
9
|
+
text-decoration: none;
|
|
10
|
+
|
|
11
|
+
&:hover {
|
|
12
|
+
text-decoration: underline;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
ul {
|
|
17
|
+
list-style: disc;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
ol {
|
|
21
|
+
list-style: auto;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
ul,
|
|
25
|
+
ol {
|
|
26
|
+
margin-left: $sizeM;
|
|
27
|
+
margin-bottom: $sizeXs;
|
|
28
|
+
|
|
29
|
+
&:last-child {
|
|
30
|
+
margin-bottom: 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
code {
|
|
35
|
+
border: 1px solid $borderColorLight;
|
|
36
|
+
padding: $sizeXxxs $sizeXs;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
table {
|
|
40
|
+
width: 100%;
|
|
41
|
+
table-layout: fixed;
|
|
42
|
+
border: 1px solid $borderColorLight;
|
|
43
|
+
|
|
44
|
+
thead {
|
|
45
|
+
background-color: $colorLightShade;
|
|
46
|
+
border-bottom: 1px solid $borderColorLight;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
tbody tr {
|
|
50
|
+
border-bottom: 1px solid $borderColorLight;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
th {
|
|
54
|
+
font-size: $fontSizeSmall;
|
|
55
|
+
font-weight: $fontWeightBold;
|
|
56
|
+
padding: $sizeXs $sizeS;
|
|
57
|
+
text-align: left;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
td {
|
|
61
|
+
font-size: $fontSizeStandard;
|
|
62
|
+
vertical-align: middle;
|
|
63
|
+
padding: $sizeS $sizeS;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.vuiText--truncate {
|
|
69
|
+
@include truncateText;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@mixin defineTextStyles($fontSize, $fontWeight) {
|
|
73
|
+
color: $colorText;
|
|
74
|
+
font-size: $fontSize;
|
|
75
|
+
line-height: 1.4;
|
|
76
|
+
|
|
77
|
+
p,
|
|
78
|
+
ul,
|
|
79
|
+
ol {
|
|
80
|
+
font-size: $fontSize;
|
|
81
|
+
line-height: 1.4;
|
|
82
|
+
margin-bottom: $sizeXs;
|
|
83
|
+
font-weight: $fontWeight;
|
|
84
|
+
|
|
85
|
+
&:last-child {
|
|
86
|
+
margin-bottom: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
h1 {
|
|
91
|
+
font-size: $fontSize * 2;
|
|
92
|
+
line-height: 1.4;
|
|
93
|
+
font-weight: $fontWeightBold;
|
|
94
|
+
margin-bottom: $sizeXs;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
h2 {
|
|
98
|
+
font-size: $fontSize * 1.5;
|
|
99
|
+
line-height: 1.4;
|
|
100
|
+
margin-bottom: $sizeXs;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
h3 {
|
|
104
|
+
font-size: $fontSize * 1.25;
|
|
105
|
+
line-height: 1.4;
|
|
106
|
+
font-weight: $fontWeightBold;
|
|
107
|
+
margin-bottom: $sizeXs;
|
|
108
|
+
color: $colorSubdued;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
h4 {
|
|
112
|
+
font-size: $fontSize;
|
|
113
|
+
line-height: 1.4;
|
|
114
|
+
font-weight: $fontWeightBold;
|
|
115
|
+
margin-bottom: $sizeXs;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
$size: (
|
|
120
|
+
xs: (
|
|
121
|
+
size: $fontSizeSmall,
|
|
122
|
+
weight: $fontWeightStrong
|
|
123
|
+
),
|
|
124
|
+
s: (
|
|
125
|
+
size: $fontSizeStandard,
|
|
126
|
+
weight: $fontWeightNormal
|
|
127
|
+
),
|
|
128
|
+
m: (
|
|
129
|
+
size: $fontSizeMedium,
|
|
130
|
+
weight: $fontWeightNormal
|
|
131
|
+
),
|
|
132
|
+
l: (
|
|
133
|
+
size: $fontSizeLarge,
|
|
134
|
+
weight: $fontWeightNormal
|
|
135
|
+
)
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
@each $sizeName, $sizeValue in $size {
|
|
139
|
+
.vuiText--#{$sizeName} {
|
|
140
|
+
@include defineTextStyles(map.get($sizeValue, "size"), map.get($sizeValue, "weight"));
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
$align: left, center, right;
|
|
145
|
+
|
|
146
|
+
@each $alignValue in $align {
|
|
147
|
+
.vuiText--#{$alignValue} {
|
|
148
|
+
text-align: #{$alignValue};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
$color: (
|
|
2
|
+
accent: $colorAccent,
|
|
3
|
+
primary: $colorPrimary,
|
|
4
|
+
success: $colorSuccess,
|
|
5
|
+
warning: $colorWarning,
|
|
6
|
+
danger: $colorDanger,
|
|
7
|
+
subdued: $colorSubdued,
|
|
8
|
+
neutral: $colorText
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
@each $colorName, $colorValue in $color {
|
|
12
|
+
.vuiTextColor--#{$colorName} {
|
|
13
|
+
color: $colorValue !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
.vuiTitle {
|
|
4
|
+
color: $colorText;
|
|
5
|
+
margin-bottom: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
$size: (
|
|
9
|
+
xxs: (
|
|
10
|
+
size: $fontSizeSmall,
|
|
11
|
+
line-height: 1.4,
|
|
12
|
+
weight: $fontWeightStrong,
|
|
13
|
+
color: $colorText
|
|
14
|
+
),
|
|
15
|
+
xs: (
|
|
16
|
+
size: $labelFontSize,
|
|
17
|
+
line-height: 1.4,
|
|
18
|
+
weight: $labelFontWeight,
|
|
19
|
+
color: $labelColor
|
|
20
|
+
),
|
|
21
|
+
s: (
|
|
22
|
+
size: $fontSizeLarge,
|
|
23
|
+
line-height: 1.3,
|
|
24
|
+
weight: $fontWeightBold,
|
|
25
|
+
color: $colorSubdued
|
|
26
|
+
),
|
|
27
|
+
m: (
|
|
28
|
+
size: $fontSizeXLarge,
|
|
29
|
+
weight: $fontWeightBold,
|
|
30
|
+
line-height: 1.2,
|
|
31
|
+
color: $colorText
|
|
32
|
+
),
|
|
33
|
+
l: (
|
|
34
|
+
size: $fontSizeXxLarge,
|
|
35
|
+
weight: $fontWeightNormal,
|
|
36
|
+
line-height: 1.1,
|
|
37
|
+
color: $colorText
|
|
38
|
+
),
|
|
39
|
+
xl: (
|
|
40
|
+
size: $fontSizeXxxLarge,
|
|
41
|
+
weight: $fontWeightNormal,
|
|
42
|
+
line-height: 1,
|
|
43
|
+
color: $colorText
|
|
44
|
+
),
|
|
45
|
+
xxl: (
|
|
46
|
+
size: $fontSizeXxxLarge,
|
|
47
|
+
line-height: 1,
|
|
48
|
+
weight: $fontWeightBold,
|
|
49
|
+
color: $colorText
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
@each $sizeName, $sizeValue in $size {
|
|
54
|
+
.vuiTitle--#{$sizeName} {
|
|
55
|
+
font-size: #{map.get($sizeValue, "size")};
|
|
56
|
+
line-height: #{map.get($sizeValue, "line-height")};
|
|
57
|
+
font-weight: #{map.get($sizeValue, "weight")};
|
|
58
|
+
color: #{map.get($sizeValue, "color")};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
$align: left, center, right;
|
|
63
|
+
|
|
64
|
+
@each $alignValue in $align {
|
|
65
|
+
.vuiTitle--#{$alignValue} {
|
|
66
|
+
text-align: #{$alignValue};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const TITLE_SIZE: readonly ["xxs", "xs", "s", "m", "l", "xl", "xxl"];
|
|
2
|
+
export declare const TEXT_COLOR: readonly ["accent", "primary", "success", "warning", "danger", "subdued", "neutral"];
|
|
3
|
+
export type TextColor = (typeof TEXT_COLOR)[number];
|
|
4
|
+
export declare const TEXT_SIZE: readonly ["xs", "s", "m", "l"];
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$transitionSpeed: 0.2s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$appHeaderHeight: 46px;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Semantic colors
|
|
2
|
+
$colorAccent: #551edf !default;
|
|
3
|
+
$colorPrimary: #264cd6 !default;
|
|
4
|
+
$colorSuccess: #04821f !default;
|
|
5
|
+
$colorWarning: #965a15 !default;
|
|
6
|
+
$colorDanger: #c41535 !default;
|
|
7
|
+
|
|
8
|
+
// Semantic shades
|
|
9
|
+
$colorAccentLightShade: #eadfff !default;
|
|
10
|
+
$colorPrimaryLightShade: #d9e2ff !default;
|
|
11
|
+
$colorPrimaryLighterShade: #edf5ff !default;
|
|
12
|
+
$colorSuccessLightShade: #e9f2e9 !default;
|
|
13
|
+
$colorWarningLightShade: #f4eee8 !default;
|
|
14
|
+
$colorDangerLightShade: #fae9eb !default;
|
|
15
|
+
$colorDangerLighterShade: #fdeff0 !default;
|
|
16
|
+
|
|
17
|
+
// Neutral colors
|
|
18
|
+
$colorEmptyShade: #ffffff !default;
|
|
19
|
+
$colorLightShade: #f3f7fb !default;
|
|
20
|
+
$colorMediumLightShade: #e8eff5 !default;
|
|
21
|
+
$colorMediumShade: #cbcdde !default;
|
|
22
|
+
$colorDarkShade: #69707d !default;
|
|
23
|
+
$colorDarkerShade: #2c313a !default;
|
|
24
|
+
$colorFullShade: #000 !default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
$shadowSmallStart: rgba(60, 64, 67, 0.3) 0px 0px 0px 0px, rgba(60, 64, 67, 0.15) 0px 0px 0px 0px;
|
|
2
|
+
$shadowSmallEnd: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
|
|
3
|
+
|
|
4
|
+
$shadowLargeStart: rgba(50, 50, 93, 0.25) 0px 0 0 0, rgba(0, 0, 0, 0.16) 0px 1px 4px;
|
|
5
|
+
$shadowLargeEnd: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
|