@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,17 @@
|
|
|
1
|
+
declare const SIZE: readonly ["m", "l"];
|
|
2
|
+
type Props = {
|
|
3
|
+
className?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
isInvalid?: boolean;
|
|
7
|
+
options: {
|
|
8
|
+
text: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
value: string;
|
|
12
|
+
size?: (typeof SIZE)[number];
|
|
13
|
+
onChange: (event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
14
|
+
fullWidth?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const VuiSelect: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLSelectElement | null>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { createElement as _createElement } from "react";
|
|
14
|
+
import classNames from "classnames";
|
|
15
|
+
import { VuiIcon } from "../../icon/Icon";
|
|
16
|
+
import { BiCaretDown } from "react-icons/bi";
|
|
17
|
+
import { forwardRef } from "react";
|
|
18
|
+
const SIZE = ["m", "l"];
|
|
19
|
+
const sizeToIconSizeMap = {
|
|
20
|
+
m: "m",
|
|
21
|
+
l: "l"
|
|
22
|
+
};
|
|
23
|
+
export const VuiSelect = forwardRef((_a, ref) => {
|
|
24
|
+
var { className, id, name, options, value, size = "m", onChange, isInvalid, fullWidth } = _a, rest = __rest(_a, ["className", "id", "name", "options", "value", "size", "onChange", "isInvalid", "fullWidth"]);
|
|
25
|
+
const classes = classNames("vuiSelect", `vuiSelect--${size}`, {
|
|
26
|
+
"vuiSelect-isInvalid": isInvalid,
|
|
27
|
+
"vuiSelect--fullWidth": fullWidth
|
|
28
|
+
}, className);
|
|
29
|
+
const renderedOptions = options.map((option, index) => {
|
|
30
|
+
const { text } = option, rest = __rest(option, ["text"]);
|
|
31
|
+
return (_createElement("option", Object.assign({}, rest, { key: index }), text));
|
|
32
|
+
});
|
|
33
|
+
return (_jsxs("div", Object.assign({ className: classes }, { children: [_jsx("select", Object.assign({ ref: ref, id: id, name: name, value: value, onChange: onChange }, rest, { children: renderedOptions })), _jsx("div", Object.assign({ className: "vuiSelect__caret" }, { children: _jsx(VuiIcon, Object.assign({ color: "subdued", size: sizeToIconSizeMap[size] }, { children: _jsx(BiCaretDown, {}) })) }))] })));
|
|
34
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.vuiSelect {
|
|
2
|
+
position: relative;
|
|
3
|
+
max-width: $sizeL * 10;
|
|
4
|
+
width: 100%;
|
|
5
|
+
|
|
6
|
+
select {
|
|
7
|
+
background-color: $colorEmptyShade;
|
|
8
|
+
appearance: none;
|
|
9
|
+
border-radius: $sizeXxs;
|
|
10
|
+
border: 1px solid $colorMediumShade;
|
|
11
|
+
color: $colorFullShade;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.vuiSelect__caret {
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
position: absolute;
|
|
19
|
+
bottom: 0;
|
|
20
|
+
left: auto;
|
|
21
|
+
right: 12px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.vuiSelect--m {
|
|
25
|
+
select {
|
|
26
|
+
padding: $sizeXs $sizeM;
|
|
27
|
+
font-size: $fontSizeStandard;
|
|
28
|
+
padding-right: 32px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.vuiSelect__caret {
|
|
32
|
+
top: calc(50% - 10px);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.vuiSelect--l {
|
|
37
|
+
select {
|
|
38
|
+
padding: $sizeS $sizeM;
|
|
39
|
+
font-size: $fontSizeLarge;
|
|
40
|
+
padding-right: 48px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.vuiSelect__caret {
|
|
44
|
+
top: calc(50% - 14px);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.vuiSelect-isInvalid {
|
|
49
|
+
select {
|
|
50
|
+
border-color: $colorDanger;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.vuiSelect--fullWidth {
|
|
55
|
+
max-width: 100%;
|
|
56
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RadioButtonConfig } from "./types";
|
|
2
|
+
type Props<T> = RadioButtonConfig<T> & {
|
|
3
|
+
groupName: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const VuiSuperRadioButton: <T extends string>({ label, description, value, checked, onChange, groupName, ...rest }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { createId } from "../../../utils/createId";
|
|
14
|
+
import { VuiFlexContainer } from "../../flex/FlexContainer";
|
|
15
|
+
import { VuiFlexItem } from "../../flex/FlexItem";
|
|
16
|
+
import { VuiSpacer } from "../../spacer/Spacer";
|
|
17
|
+
import { VuiText } from "../../typography/Text";
|
|
18
|
+
export const VuiSuperRadioButton = (_a) => {
|
|
19
|
+
var { label, description, value, checked, onChange, groupName } = _a, rest = __rest(_a, ["label", "description", "value", "checked", "onChange", "groupName"]);
|
|
20
|
+
const id = createId();
|
|
21
|
+
return (_jsx("label", Object.assign({ className: "vuiSuperRadioButton", htmlFor: id }, { children: _jsxs(VuiFlexContainer, Object.assign({ spacing: "l", alignItems: "center" }, { children: [_jsx(VuiFlexItem, Object.assign({ grow: false, shrink: 1 }, { children: _jsx("input", Object.assign({ id: id, name: groupName, type: "radio", checked: checked, onChange: () => onChange(value) }, rest)) })), _jsxs(VuiFlexItem, Object.assign({ grow: false, shrink: 1 }, { children: [_jsx(VuiText, { children: _jsx("p", Object.assign({ className: "vuiSuperRadioButton__text" }, { children: label })) }), description && (_jsxs(_Fragment, { children: [_jsx(VuiSpacer, { size: "xxs" }), _jsx(VuiText, Object.assign({ size: "xs" }, { children: _jsx("p", Object.assign({ className: "vuiSuperRadioButton__text vuiSuperRadioButton__description" }, { children: description })) }))] }))] }))] })) })));
|
|
22
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RadioButtonConfig } from "./types";
|
|
2
|
+
type Props<T> = {
|
|
3
|
+
groupName?: string;
|
|
4
|
+
group: RadioButtonConfig<T>[];
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const VuiSuperRadioGroup: <T extends string>({ groupName, group, onChange }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createId } from "../../../utils/createId";
|
|
3
|
+
import { VuiSuperRadioButton } from "./SuperRadioButton";
|
|
4
|
+
export const VuiSuperRadioGroup = ({ groupName = createId(), group, onChange }) => {
|
|
5
|
+
return (_jsx("div", Object.assign({ className: "vuiSuperRadioGroup" }, { children: group.map((item) => (_jsx(VuiSuperRadioButton, Object.assign({}, item, { groupName: groupName, onChange: onChange }), item.value))) })));
|
|
6
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.vuiSuperRadioGroup {
|
|
2
|
+
display: grid;
|
|
3
|
+
gap: $sizeXs;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.vuiSuperRadioButton {
|
|
7
|
+
display: block;
|
|
8
|
+
width: 100%;
|
|
9
|
+
border-radius: $sizeXs;
|
|
10
|
+
padding: $sizeS $sizeL;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
transition: all $transitionSpeed;
|
|
14
|
+
text-decoration-color: $colorText;
|
|
15
|
+
text-align: left;
|
|
16
|
+
border: 1px solid $colorPrimaryLightShade;
|
|
17
|
+
|
|
18
|
+
&:hover {
|
|
19
|
+
text-decoration: underline;
|
|
20
|
+
text-decoration-color: $colorPrimary;
|
|
21
|
+
background-color: $colorPrimaryLighterShade;
|
|
22
|
+
|
|
23
|
+
.vuiSuperRadioButton__text {
|
|
24
|
+
color: $colorPrimary !important;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.vuiSuperRadioButton__description {
|
|
30
|
+
color: $colorSubdued;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
className?: string;
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
fullWidth?: boolean;
|
|
7
|
+
onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const VuiTextArea: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLTextAreaElement | null>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { forwardRef } from "react";
|
|
14
|
+
import classNames from "classnames";
|
|
15
|
+
export const VuiTextArea = forwardRef((_a, ref) => {
|
|
16
|
+
var { className, id, placeholder, value, onChange, fullWidth, name } = _a, rest = __rest(_a, ["className", "id", "placeholder", "value", "onChange", "fullWidth", "name"]);
|
|
17
|
+
const classes = classNames("vuiTextArea", {
|
|
18
|
+
"vuiTextArea--fullWidth": fullWidth
|
|
19
|
+
}, className);
|
|
20
|
+
return (_jsx("textarea", Object.assign({ ref: ref, className: classes, id: id, name: name, placeholder: placeholder, value: value, onChange: onChange }, rest)));
|
|
21
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.vuiTextArea {
|
|
2
|
+
appearance: none;
|
|
3
|
+
border-radius: $sizeXxs;
|
|
4
|
+
border: 1px solid $colorMediumShade;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
resize: none;
|
|
7
|
+
min-height: 80px;
|
|
8
|
+
font-size: $fontSizeStandard;
|
|
9
|
+
padding: $sizeS;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.vuiTextArea--fullWidth {
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
labelFor: string;
|
|
3
|
+
label: string;
|
|
4
|
+
children: React.ReactElement;
|
|
5
|
+
helpText?: React.ReactNode;
|
|
6
|
+
errors?: string[];
|
|
7
|
+
isRequired?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const VuiFormGroup: ({ children, labelFor, helpText, label, errors, isRequired }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { cloneElement } from "react";
|
|
3
|
+
import { VuiLabel } from "../form/label/Label";
|
|
4
|
+
import { VuiSpacer } from "../spacer/Spacer";
|
|
5
|
+
import { VuiText } from "../typography/Text";
|
|
6
|
+
import { VuiTextColor } from "../typography/TextColor";
|
|
7
|
+
import { createId } from "../../utils/createId";
|
|
8
|
+
export const VuiFormGroup = ({ children, labelFor, helpText, label, errors, isRequired }) => {
|
|
9
|
+
const ariaProps = {
|
|
10
|
+
"aria-describedby": ""
|
|
11
|
+
};
|
|
12
|
+
const ariaDescribedByLabel = `help-${createId()}`;
|
|
13
|
+
const errorMessageIds = [];
|
|
14
|
+
const errorMessages = errors === null || errors === void 0 ? void 0 : errors.map((error, index) => {
|
|
15
|
+
const id = `error-${createId()}`;
|
|
16
|
+
errorMessageIds.push(id);
|
|
17
|
+
return (_jsxs("div", { children: [index > 0 && _jsx(VuiSpacer, { size: "xs" }), _jsx(VuiText, Object.assign({ size: "xs", id: id }, { children: _jsx("p", { children: _jsx(VuiTextColor, Object.assign({ color: "danger" }, { children: error })) }) }), error)] }));
|
|
18
|
+
});
|
|
19
|
+
if (helpText) {
|
|
20
|
+
ariaProps["aria-describedby"] += ariaDescribedByLabel;
|
|
21
|
+
}
|
|
22
|
+
if (errorMessages === null || errorMessages === void 0 ? void 0 : errorMessages.length) {
|
|
23
|
+
ariaProps["aria-describedby"] += " " + errorMessageIds.join(" ");
|
|
24
|
+
}
|
|
25
|
+
const content = cloneElement(children, Object.assign(Object.assign({}, ariaProps), { isInvalid: errors && errors.length > 0, id: labelFor, required: isRequired }));
|
|
26
|
+
return (_jsxs("div", { children: [_jsxs(VuiLabel, Object.assign({ labelFor: labelFor }, { children: [label, isRequired && " (required)"] })), _jsx(VuiSpacer, { size: "xs" }), helpText && (_jsxs(_Fragment, { children: [_jsx(VuiText, Object.assign({ size: "xs", id: ariaDescribedByLabel }, { children: _jsx("p", { children: _jsx(VuiTextColor, Object.assign({ color: "subdued" }, { children: helpText })) }) })), _jsx(VuiSpacer, { size: "xs" })] })), errorMessages && (_jsxs(_Fragment, { children: [errorMessages, _jsx(VuiSpacer, { size: "xs" })] })), content] }));
|
|
27
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FlexSpacing } from "../flex/types";
|
|
3
|
+
export declare const COLUMNS: readonly [1, 2, 3];
|
|
4
|
+
export type Columns = (typeof COLUMNS)[number];
|
|
5
|
+
type Props = {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
columns?: Columns;
|
|
8
|
+
spacing?: FlexSpacing;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const VuiGrid: ({ children, columns, spacing, className, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
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 { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import classNames from "classnames";
|
|
14
|
+
export const COLUMNS = [1, 2, 3];
|
|
15
|
+
export const VuiGrid = (_a) => {
|
|
16
|
+
var { children, columns = 2, spacing = "m", className } = _a, rest = __rest(_a, ["children", "columns", "spacing", "className"]);
|
|
17
|
+
const classes = classNames("vuiGridContainer", className);
|
|
18
|
+
const contentClasses = classNames("vuiGrid", `vuiGrid--${spacing}`, `vuiGrid--columns${columns}`);
|
|
19
|
+
return (_jsx("div", Object.assign({ className: classes }, rest, { children: _jsx("div", Object.assign({ className: contentClasses }, { children: children })) })));
|
|
20
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.vuiGridContainer {
|
|
2
|
+
container-type: inline-size;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.vuiGrid {
|
|
7
|
+
display: grid;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// spacing
|
|
11
|
+
$spacing: (
|
|
12
|
+
xss: $sizeXxs,
|
|
13
|
+
xs: $sizeXs,
|
|
14
|
+
s: $sizeS,
|
|
15
|
+
m: $sizeM,
|
|
16
|
+
l: $sizeL,
|
|
17
|
+
xl: $sizeXl,
|
|
18
|
+
xxl: $sizeXxl
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
@each $spacingName, $spacingValue in $spacing {
|
|
22
|
+
.vuiGrid--#{$spacingName} {
|
|
23
|
+
column-gap: $spacingValue;
|
|
24
|
+
row-gap: $spacingValue;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.vuiGrid--columns1 {
|
|
29
|
+
grid-template-columns: 1fr;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.vuiGrid--columns2 {
|
|
33
|
+
grid-template-columns: 1fr 1fr;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.vuiGrid--columns3 {
|
|
37
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@container (width < 800px) {
|
|
41
|
+
.vuiGrid--columns3 {
|
|
42
|
+
grid-template-columns: 1fr 1fr;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@container (width < 500px) {
|
|
47
|
+
.vuiGrid--columns2,
|
|
48
|
+
.vuiGrid--columns3 {
|
|
49
|
+
grid-template-columns: 1fr;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
.vuiHorizontalRule {
|
|
4
|
+
border-top: none;
|
|
5
|
+
border-left: none;
|
|
6
|
+
border-right: none;
|
|
7
|
+
border-bottom: 1px solid;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Color
|
|
12
|
+
$color: (
|
|
13
|
+
accent: (
|
|
14
|
+
"border-color": $colorAccent
|
|
15
|
+
),
|
|
16
|
+
primary: (
|
|
17
|
+
"border-color": $colorPrimary
|
|
18
|
+
),
|
|
19
|
+
success: (
|
|
20
|
+
"border-color": $colorSuccess
|
|
21
|
+
),
|
|
22
|
+
danger: (
|
|
23
|
+
"border-color": $colorDanger
|
|
24
|
+
),
|
|
25
|
+
warning: (
|
|
26
|
+
"border-color": $colorWarning
|
|
27
|
+
),
|
|
28
|
+
neutral: (
|
|
29
|
+
"border-color": $borderColor
|
|
30
|
+
),
|
|
31
|
+
subdued: (
|
|
32
|
+
"border-color": $borderColorLight
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
@each $colorName, $colorValue in $color {
|
|
37
|
+
.vuiHorizontalRule--#{$colorName} {
|
|
38
|
+
border-bottom-color: #{map.get($colorValue, "border-color")};
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ICON_COLOR, ICON_SIZE } from "./types";
|
|
3
|
+
type Props = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
color?: (typeof ICON_COLOR)[number];
|
|
6
|
+
className?: string;
|
|
7
|
+
size?: (typeof ICON_SIZE)[number];
|
|
8
|
+
inline?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const VuiIcon: ({ children, size, color, className, inline, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
import { cloneElement } from "react";
|
|
15
|
+
import { IconContext } from "react-icons";
|
|
16
|
+
const sizeToValueMap = {
|
|
17
|
+
xs: "14",
|
|
18
|
+
s: "16",
|
|
19
|
+
m: "20",
|
|
20
|
+
l: "24",
|
|
21
|
+
xl: "28",
|
|
22
|
+
xxl: "46",
|
|
23
|
+
xxxl: "68"
|
|
24
|
+
};
|
|
25
|
+
export const VuiIcon = (_a) => {
|
|
26
|
+
var { children, size = "m", color = "inherit", className, inline } = _a, rest = __rest(_a, ["children", "size", "color", "className", "inline"]);
|
|
27
|
+
const innerClasses = classNames(className, "vuiIcon__inner", {
|
|
28
|
+
[`vuiIcon--${color}`]: color
|
|
29
|
+
});
|
|
30
|
+
const classes = classNames("vuiIcon", {
|
|
31
|
+
"vuiIcon--inline": inline
|
|
32
|
+
});
|
|
33
|
+
const icon = cloneElement(children, {
|
|
34
|
+
size: sizeToValueMap[size]
|
|
35
|
+
});
|
|
36
|
+
return (_jsx(IconContext.Provider, Object.assign({ value: { className: innerClasses } }, { children: _jsx("div", Object.assign({ className: classes }, rest, { children: icon })) })));
|
|
37
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.vuiIcon {
|
|
2
|
+
// Remove extra space at bottom of icon.
|
|
3
|
+
line-height: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.vuiIcon--inline {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
$colors: (
|
|
11
|
+
accent: $colorAccent,
|
|
12
|
+
primary: $colorPrimary,
|
|
13
|
+
success: $colorSuccess,
|
|
14
|
+
warning: $colorWarning,
|
|
15
|
+
danger: $colorDanger,
|
|
16
|
+
subdued: $colorSubdued,
|
|
17
|
+
neutral: $colorText,
|
|
18
|
+
empty: #ffffff
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
@each $colorName, $colorValue in $colors {
|
|
22
|
+
.vuiIcon--#{$colorName} {
|
|
23
|
+
color: $colorValue;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { VuiAccordion } from "./accordion/Accordion";
|
|
2
|
+
import { VuiAccountMenu } from "./accountMenu/AccountMenu";
|
|
3
|
+
import { VuiAppContent } from "./app/AppContent";
|
|
4
|
+
import { VuiAppHeader } from "./app/AppHeader";
|
|
5
|
+
import { VuiAppLayout } from "./app/AppLayout";
|
|
6
|
+
import { VuiAppSideNav } from "./app/appSideNav/AppSideNav";
|
|
7
|
+
import { Sections, SectionItem, Tree, TreeItem } from "./app/types";
|
|
8
|
+
import { AppContentPadding } from "./app/types";
|
|
9
|
+
import { BADGE_COLOR, VuiBadge } from "./badge/Badge";
|
|
10
|
+
import { BUTTON_COLOR, BUTTON_SIZE, ButtonColor } from "./button/types";
|
|
11
|
+
import { VuiButtonPrimary } from "./button/ButtonPrimary";
|
|
12
|
+
import { VuiButtonSecondary } from "./button/ButtonSecondary";
|
|
13
|
+
import { VuiButtonTertiary } from "./button/ButtonTertiary";
|
|
14
|
+
import { VuiIconButton } from "./button/IconButton";
|
|
15
|
+
import { VuiCallout } from "./callout/Callout";
|
|
16
|
+
import { VuiCard } from "./card/Card";
|
|
17
|
+
import { CALLOUT_COLOR, CALLOUT_SIZE, CalloutColor } from "./callout/types";
|
|
18
|
+
import { ChatTurn, ChatStyle, ChatLanguage } from "./chat/types";
|
|
19
|
+
import { VuiChat } from "./chat/Chat";
|
|
20
|
+
import { VuiCode } from "./code/Code";
|
|
21
|
+
import { CodeLanguage } from "./code/types";
|
|
22
|
+
import { VuiContextProvider } from "./context/Context";
|
|
23
|
+
import { VuiCopyButton } from "./copyButton/CopyButton";
|
|
24
|
+
import { VuiDrawer } from "./drawer/Drawer";
|
|
25
|
+
import { VuiFlexContainer } from "./flex/FlexContainer";
|
|
26
|
+
import { VuiFlexItem } from "./flex/FlexItem";
|
|
27
|
+
import { RadioButtonConfig, VuiCheckbox, VuiLabel, VuiNumberInput, VuiRadioButton, VuiSelect, VuiSuperRadioGroup, VuiTextInput, VuiTextArea, VuiPasswordInput } from "./form";
|
|
28
|
+
import { VuiFormGroup } from "./formGroup/FormGroup";
|
|
29
|
+
import { VuiGrid } from "./grid/Grid";
|
|
30
|
+
import { VuiHorizontalRule } from "./horizontalRule/HorizontalRule";
|
|
31
|
+
import { VuiIcon } from "./icon/Icon";
|
|
32
|
+
import { ICON_COLOR, ICON_SIZE } from "./icon/types";
|
|
33
|
+
import { VuiInfoTable, InfoTableColumnAlign, InfoTableRow, InfoTableRowType } from "./infoTable/InfoTable";
|
|
34
|
+
import { VuiLink, VuiLinkInternal } from "./link/Link";
|
|
35
|
+
import { LinkProps } from "./link/types";
|
|
36
|
+
import { VuiList } from "./list/List";
|
|
37
|
+
import { VuiMenu } from "./menu/Menu";
|
|
38
|
+
import { VuiMenuItem, MenuItem } from "./menu/MenuItem";
|
|
39
|
+
import { VuiModal } from "./modal/Modal";
|
|
40
|
+
import { VuiNotifications } from "./notification/Notifications";
|
|
41
|
+
import { Notification } from "./notification/Notification";
|
|
42
|
+
import { VuiOptionsButton } from "./optionsButton/OptionsButton";
|
|
43
|
+
import { VuiOptionsList } from "./optionsList/OptionsList";
|
|
44
|
+
import { VuiOptionsListItem } from "./optionsList/OptionsListItem";
|
|
45
|
+
import { OptionListItem } from "./optionsList/types";
|
|
46
|
+
import { VuiPopover } from "./popover/Popover";
|
|
47
|
+
import { VuiPortal } from "./portal/Portal";
|
|
48
|
+
import { PROGRESS_BAR_COLOR, VuiProgressBar } from "./progressBar/ProgressBar";
|
|
49
|
+
import { VuiPrompt } from "./prompt/Prompt";
|
|
50
|
+
import { VuiScreenBlock } from "./screenBlock/ScreenBlock";
|
|
51
|
+
import { VuiSearchInput } from "./searchInput/SearchInput";
|
|
52
|
+
import { SearchResult, VuiSearchResult } from "./searchResult/SearchResult";
|
|
53
|
+
import { VuiSearchSelect } from "./searchSelect/SearchSelect";
|
|
54
|
+
import { VuiSetting } from "./setting/Setting";
|
|
55
|
+
import { VuiSpacer } from "./spacer/Spacer";
|
|
56
|
+
import { SPACER_SIZE } from "./spacer/types";
|
|
57
|
+
import { VuiSpinner } from "./spinner/Spinner";
|
|
58
|
+
import { SPINNER_COLOR, SPINNER_SIZE } from "./spinner/types";
|
|
59
|
+
import { VuiStatList } from "./statList/StatList";
|
|
60
|
+
import { VuiStatus } from "./status/Status";
|
|
61
|
+
import { VuiSummary } from "./summary/Summary";
|
|
62
|
+
import { VuiSummaryCitation } from "./summary/SummaryCitation";
|
|
63
|
+
import { VuiTable } from "./table/Table";
|
|
64
|
+
import { VuiTab } from "./tabs/Tab";
|
|
65
|
+
import { VuiTabbedRoutes } from "./tabs/TabbedRoutes";
|
|
66
|
+
import { VuiTabs } from "./tabs/Tabs";
|
|
67
|
+
import { TAB_SIZE, TabSize } from "./tabs/types";
|
|
68
|
+
import { VuiText } from "./typography/Text";
|
|
69
|
+
import { VuiTextColor } from "./typography/TextColor";
|
|
70
|
+
import { TEXT_COLOR, TEXT_SIZE, TITLE_SIZE } from "./typography/types";
|
|
71
|
+
import { VuiTitle } from "./typography/Title";
|
|
72
|
+
import { VuiToggle } from "./toggle/Toggle";
|
|
73
|
+
import { VuiTopicButton } from "./topicButton/TopicButton";
|
|
74
|
+
export type { AppContentPadding, ButtonColor, CalloutColor, ChatLanguage, ChatStyle, ChatTurn, CodeLanguage, InfoTableColumnAlign, InfoTableRow, InfoTableRowType, LinkProps, MenuItem, Notification, OptionListItem, RadioButtonConfig, SearchResult, Sections, SectionItem, TabSize, Tree, TreeItem };
|
|
75
|
+
export { BADGE_COLOR, BUTTON_COLOR, BUTTON_SIZE, CALLOUT_COLOR, CALLOUT_SIZE, ICON_COLOR, ICON_SIZE, PROGRESS_BAR_COLOR, SPACER_SIZE, SPINNER_COLOR, SPINNER_SIZE, TAB_SIZE, TEXT_COLOR, TEXT_SIZE, TITLE_SIZE, VuiAccordion, VuiAccountMenu, VuiAppContent, VuiAppHeader, VuiAppLayout, VuiAppSideNav, VuiBadge, VuiButtonPrimary, VuiButtonSecondary, VuiButtonTertiary, VuiIconButton, VuiCallout, VuiCard, VuiChat, VuiCheckbox, VuiCode, VuiContextProvider, VuiCopyButton, VuiDrawer, VuiFlexContainer, VuiFlexItem, VuiFormGroup, VuiGrid, VuiHorizontalRule, VuiIcon, VuiInfoTable, VuiLabel, VuiLink, VuiLinkInternal, VuiList, VuiMenu, VuiMenuItem, VuiModal, VuiNotifications, VuiNumberInput, VuiOptionsButton, VuiOptionsList, VuiOptionsListItem, VuiPasswordInput, VuiPopover, VuiPortal, VuiProgressBar, VuiPrompt, VuiRadioButton, VuiScreenBlock, VuiSearchInput, VuiSearchResult, VuiSearchSelect, VuiSelect, VuiSetting, VuiSpacer, VuiSpinner, VuiStatList, VuiStatus, VuiSummary, VuiSummaryCitation, VuiSuperRadioGroup, VuiTable, VuiTab, VuiTabbedRoutes, VuiTabs, VuiText, VuiTextArea, VuiTextColor, VuiTextInput, VuiTitle, VuiToggle, VuiTopicButton };
|