@maxio-com/react-ui-components 9.34.3 → 9.35.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/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/skills/maxio-react/SKILL.md +1 -0
- package/dist/skills/maxio-react/references/components-environment-bar.md +83 -0
- package/dist/skills/maxio-react/references/components-icon.md +21 -1
- package/dist/temporary-typings/src/components/EnvironmentBar/EnvironmentBar.d.ts +5 -0
- package/dist/temporary-typings/src/components/EnvironmentBar/EnvironmentBar.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/EnvironmentBar/EnvironmentBar.types.d.ts +8 -0
- package/dist/temporary-typings/src/components/EnvironmentBar/EnvironmentBar.types.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/EnvironmentBar/index.d.ts +3 -0
- package/dist/temporary-typings/src/components/EnvironmentBar/index.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/Icon/Icon.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Icon/constants.d.ts +2 -1
- package/dist/temporary-typings/src/components/Icon/constants.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/index.d.ts +3 -1
- package/dist/temporary-typings/src/components/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/typings/index.d.ts +10 -2
|
@@ -38,6 +38,7 @@ Use this skill to build React components using `@maxio-com/react-ui-components`.
|
|
|
38
38
|
- [Components / Dialog](references/components-dialog.md)
|
|
39
39
|
- [Components / Drawer](references/components-drawer.md)
|
|
40
40
|
- [Components / Empty State](references/components-empty-state.md)
|
|
41
|
+
- [Components / Environment Bar](references/components-environment-bar.md)
|
|
41
42
|
- [Components / Flex](references/components-flex.md)
|
|
42
43
|
- [Components / Forms / Checkbox](references/components-forms-checkbox.md)
|
|
43
44
|
- [Components / Forms / ComboBox](references/components-forms-combobox.md)
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# EnvironmentBar
|
|
2
|
+
|
|
3
|
+
## Usage Guidelines
|
|
4
|
+
|
|
5
|
+
### Overview
|
|
6
|
+
|
|
7
|
+
EnvironmentBar is a thin, persistent strip across the top of the window that tells
|
|
8
|
+
users which environment they are in, so a sandbox is never mistaken for live.
|
|
9
|
+
|
|
10
|
+
#### When to Use
|
|
11
|
+
|
|
12
|
+
- Use it to show persistent environment context, such as a sandbox instance, on every page of that environment.
|
|
13
|
+
- Place one bar per screen, across the full width of the window at the very top, above the side nav and the product's top bar. The icon and text sit on the right. The default right padding (14px) lines the text up with the Maxio top bar's last icon; to line it up with a different top bar, set the padding with a utility class, such as `pr-4`.
|
|
14
|
+
|
|
15
|
+
#### When Not to Use
|
|
16
|
+
|
|
17
|
+
- Do not use it for messages, alerts, or anything that changes or can be dismissed. Use [Banner](components-notifications-banner.md) or [Alert](components-notifications-alert.md) instead.
|
|
18
|
+
- Do not show it in live environments.
|
|
19
|
+
|
|
20
|
+
### Accessibility
|
|
21
|
+
|
|
22
|
+
- The bar is static text, not a live region: screen readers read it in document order, so it is not announced on every page load.
|
|
23
|
+
- The bar is a region labeled "Environment", so screen-reader users can reach it from the landmarks list.
|
|
24
|
+
- Screen-reader users who jump straight to the main content or move by headings never pass through the bar. Also name the environment where they do land, such as a "Sandbox · " prefix in the document title, which is read on every page load and in the tab list.
|
|
25
|
+
- The icon is decorative and hidden from assistive technology; the text names the environment.
|
|
26
|
+
- Text and icon use `text-info` on `bg-info`: about 9.5:1 in light mode and 10.6:1 in dark mode.
|
|
27
|
+
- A label that does not fit keeps its start, the environment name, visible and truncates at the end.
|
|
28
|
+
- In forced-colors mode (Windows High Contrast), the background and shadow are dropped, so the bar shows a bottom border instead.
|
|
29
|
+
|
|
30
|
+
### Content
|
|
31
|
+
|
|
32
|
+
- Use a short noun phrase that names the environment, such as "Sandbox Environment".
|
|
33
|
+
- Do not end with a period, and do not add instructions or links.
|
|
34
|
+
|
|
35
|
+
### Related
|
|
36
|
+
|
|
37
|
+
- **[Banner](components-notifications-banner.md)**: Use for important page-level messages the user must notice.
|
|
38
|
+
- **[Alert](components-notifications-alert.md)**: Use for contextual notices inside a smaller surface.
|
|
39
|
+
|
|
40
|
+
## React
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
import { EnvironmentBar } from '@maxio-com/react-ui-components';
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Imports
|
|
47
|
+
|
|
48
|
+
```tsx
|
|
49
|
+
import { EnvironmentBar } from "@maxio-com/react-ui-components";
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Prop Types
|
|
53
|
+
|
|
54
|
+
### EnvironmentBar
|
|
55
|
+
|
|
56
|
+
| Prop | Type | Required | Default | Description | Source |
|
|
57
|
+
| --- | --- | --- | --- | --- | --- |
|
|
58
|
+
| `children` | `string` | yes | - | The text in the bar, e.g. "Sandbox Environment" | TypeLiteral |
|
|
59
|
+
| `className` | `string` | no | - | Additional CSS class name to be applied to the bar | TypeLiteral |
|
|
60
|
+
| `data-testid` | `string` | no | - | Test ID set on the component's root element. Components with internal parts derive their IDs from it (e.g. `<id>.row.<rowId>`). | TypeLiteral |
|
|
61
|
+
| `icon` | `string \| null` | no | `cube` | Design-system icon before the text. Defaults to `cube`; `null` hides it | TypeLiteral |
|
|
62
|
+
|
|
63
|
+
## Stories
|
|
64
|
+
|
|
65
|
+
### Default
|
|
66
|
+
|
|
67
|
+
Use one bar per screen, across the full width of the window at the very top,
|
|
68
|
+
above the side nav and the top bar, for sandbox instances. The cube and text sit
|
|
69
|
+
on the right, ending where the top bar's last icon ends. The cube matches the
|
|
70
|
+
sandbox marker in the instance picker.
|
|
71
|
+
|
|
72
|
+
```tsx
|
|
73
|
+
const Default = () => <EnvironmentBar>Sandbox Environment</EnvironmentBar>;
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Without Icon
|
|
77
|
+
|
|
78
|
+
Hide the icon only when the surrounding layout already shows an environment
|
|
79
|
+
marker next to the bar.
|
|
80
|
+
|
|
81
|
+
```tsx
|
|
82
|
+
const WithoutIcon = () => <EnvironmentBar icon={null}>Sandbox Environment</EnvironmentBar>;
|
|
83
|
+
```
|
|
@@ -20,6 +20,7 @@ alongside text; use IconButton when the icon itself performs an action.
|
|
|
20
20
|
- Do not use Icon as the only label for an action. Use IconButton for icon-only controls so the accessible name is explicit.
|
|
21
21
|
- Do not use Icon for illustration, empty states, logos, or larger brand marks. Use the appropriate image or logo treatment instead.
|
|
22
22
|
- Do not override brand or duotone brand colors.
|
|
23
|
+
- Do not recolor, fade, filter, stretch or redraw image brand icons such as QuickBooks, and do not render them below 16px.
|
|
23
24
|
- Do not rely on icon shape or color alone to communicate status, severity, or required action.
|
|
24
25
|
|
|
25
26
|
### Variants
|
|
@@ -31,6 +32,7 @@ Choose the icon source before choosing size or color.
|
|
|
31
32
|
| Maxio kit | Product UI symbols maintained by Maxio. | Use first for common interface actions, statuses, and navigation. |
|
|
32
33
|
| Brand | Approved single-color brand icons. | Use only for the represented brand or integration. Brand colors are built in. |
|
|
33
34
|
| Duotone brand | Approved two-tone brand icons. | Use only for represented brands that need duotone treatment. Do not override colors. |
|
|
35
|
+
| Image brand | The brand owner's own file, unaltered. | Use for brands that require their own artwork, such as QuickBooks. At least 16px. |
|
|
34
36
|
| Font Awesome | Supported fallback icons outside the kit. | Use only when no Maxio kit icon fits. Confirm the icon is available in the loaded kit. |
|
|
35
37
|
| Semantic color | Maxio icon color modifiers. | Use for status or emphasis on non-brand icons, and pair meaning with text. |
|
|
36
38
|
| `xs`, `md`, `lg` | Font Awesome size utilities exposed by Icon. | Match surrounding component density and avoid oversized standalone icons. |
|
|
@@ -40,7 +42,7 @@ Choose the icon source before choosing size or color.
|
|
|
40
42
|
- Icon is static visual content and does not add interaction by itself.
|
|
41
43
|
- Pair Icon with Button, IconButton, Link, or another interactive component when the surrounding pattern is interactive.
|
|
42
44
|
- The `color` prop adds a Maxio semantic color modifier to Maxio kit and Font Awesome fallback icons, but not to brand icons.
|
|
43
|
-
- The `variant` prop determines the Font Awesome class family: kit, duotone kit, or sharp regular fallback.
|
|
45
|
+
- The `variant` prop determines the Font Awesome class family: kit, duotone kit, or sharp regular fallback. Image brand icons render the `maxio-brand-icon` class instead.
|
|
44
46
|
|
|
45
47
|
### Accessibility
|
|
46
48
|
|
|
@@ -89,6 +91,14 @@ Duotone brand icons render with the `fa-kit-duotone` family and approved two-col
|
|
|
89
91
|
<Icon variant="avalara" />
|
|
90
92
|
```
|
|
91
93
|
|
|
94
|
+
### Image Brand Icons
|
|
95
|
+
|
|
96
|
+
Some brand owners require their own artwork, unaltered. Image brand icons render the owner's file through the `maxio-brand-icon` class instead of a Font Awesome glyph. They ignore `color`, stay square and never render below 16px. Do not recolor, fade, filter or redraw them.
|
|
97
|
+
|
|
98
|
+
```tsx
|
|
99
|
+
<Icon variant="quickbooks" />
|
|
100
|
+
```
|
|
101
|
+
|
|
92
102
|
### Font Awesome Fallback Icons
|
|
93
103
|
|
|
94
104
|
If the Maxio kit does not include an appropriate icon, use a supported Font Awesome fallback icon. Fallback icons render with `fa-sharp`, `fa-regular`, and `fa-<icon-name>` classes.
|
|
@@ -154,6 +164,16 @@ Keep the generated `fa-kit-duotone` class so Font Awesome renders both tones.
|
|
|
154
164
|
const DuotoneBrandIcon = () => <Icon variant={BRAND_ICONS_DUOTONE[0]} size="md" />;
|
|
155
165
|
```
|
|
156
166
|
|
|
167
|
+
### Image Brand Icon
|
|
168
|
+
|
|
169
|
+
Some brand owners require their own artwork, unaltered. These icons render
|
|
170
|
+
the owner's file from the design system stylesheet instead of a Font Awesome
|
|
171
|
+
glyph, at least 16px and always square. QuickBooks uses Intuit's round mark.
|
|
172
|
+
|
|
173
|
+
```tsx
|
|
174
|
+
const ImageBrandIcon = () => <Icon variant={BRAND_ICONS_IMAGE[0]} size="md" />;
|
|
175
|
+
```
|
|
176
|
+
|
|
157
177
|
### Font Awesome Icon
|
|
158
178
|
|
|
159
179
|
Use a supported Font Awesome fallback icon only when the Maxio kit does not
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EnvironmentBarProps } from './EnvironmentBar.types';
|
|
3
|
+
declare const EnvironmentBar: ({ children, icon, className, "data-testid": testId, }: EnvironmentBarProps) => React.JSX.Element;
|
|
4
|
+
export default EnvironmentBar;
|
|
5
|
+
//# sourceMappingURL=EnvironmentBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/EnvironmentBar/EnvironmentBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAO7D,QAAA,MAAM,cAAc,GAAI,uDAKrB,mBAAmB,sBAcrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TestIdProps } from '../../utils/testId';
|
|
2
|
+
import type { IconVariant } from '../Icon';
|
|
3
|
+
export type EnvironmentBarProps = TestIdProps & {
|
|
4
|
+
children: string;
|
|
5
|
+
icon?: IconVariant | null;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=EnvironmentBar.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentBar.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/EnvironmentBar/EnvironmentBar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAI9C,QAAQ,EAAE,MAAM,CAAC;IAIjB,IAAI,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAI1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/EnvironmentBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,SAAS,EAAe,MAAM,cAAc,CAAC;AAEtD,QAAA,MAAM,IAAI,GAAI,6DAMX,SAAS,sBAsCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const ICONS: readonly ["address-card", "arrow-down", "arrow-down-left", "arrow-down-left-long", "arrow-down-long", "arrow-down-right", "arrow-down-right-long", "arrow-down-up", "arrow-left", "arrow-left-long", "arrow-left-right", "arrow-right", "arrow-right-long", "arrow-turn-down-right", "arrow-up", "arrow-up-left", "arrow-up-left-long", "arrow-up-long", "arrow-up-right", "arrow-up-right-long", "bank", "bar-chart", "briefcase", "building", "business-intelligence", "calendar", "caret-down", "caret-left", "caret-right", "caret-up", "chat", "check", "check-box", "check-box-checked", "check-box-checked-fill", "check-box-indeterminate-fill", "check-circle", "check-circle-fill", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevron-up-down", "circle", "circle-half-stroke-small", "circle-small-dash", "circle-small-fill", "circle-small-stroke", "clipboard", "cog", "copy-file", "credit-card", "cross", "cross-circle", "cross-circle-fill", "dashboard", "diamond-small-fill", "document", "document-blank", "dollar", "dot-circle-fill", "dot-fill", "error", "error-fill", "error-small-fill", "graph", "home", "info-circle", "info-circle-fill", "line-vertical", "list", "login", "logout", "megaphone", "menu", "menu-chevron-left", "menu-chevron-right", "notification", "notification-unread", "pen", "plus", "plus-circle", "plus-circle-fill", "question-circle", "question-circle-fill", "recently-viewed", "search", "square-small-fill", "trash", "triangle-small-fill", "user", "warning-circle", "warning-circle-fill"];
|
|
2
2
|
export declare const NON_KIT_ICONS_LIST: string[];
|
|
3
3
|
export declare const BRAND_ICONS: readonly ["anrok", "dropbox", "hubspot", "numeral", "oracle", "quotapath", "sage", "sphere", "taxjar"];
|
|
4
|
-
export declare const BRAND_ICONS_DUOTONE: readonly ["avalara", "pipedrive", "
|
|
4
|
+
export declare const BRAND_ICONS_DUOTONE: readonly ["avalara", "pipedrive", "salesforce", "xero"];
|
|
5
|
+
export declare const BRAND_ICONS_IMAGE: readonly ["quickbooks"];
|
|
5
6
|
export declare const ICON_COLORS: string[];
|
|
6
7
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icon/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,k/CA8FR,CAAC;AAEX,eAAO,MAAM,kBAAkB,UAA6C,CAAC;AAE7E,eAAO,MAAM,WAAW,wGAUd,CAAC;AAEX,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icon/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,k/CA8FR,CAAC;AAEX,eAAO,MAAM,kBAAkB,UAA6C,CAAC;AAE7E,eAAO,MAAM,WAAW,wGAUd,CAAC;AAEX,eAAO,MAAM,mBAAmB,yDAKtB,CAAC;AASX,eAAO,MAAM,iBAAiB,yBAA0B,CAAC;AAEzD,eAAO,MAAM,WAAW,UAYvB,CAAC"}
|
|
@@ -10,6 +10,7 @@ import DataTable, { createColumnHelper } from './DataTable';
|
|
|
10
10
|
import { Dialog } from './Dialog';
|
|
11
11
|
import { Drawer } from './Drawer';
|
|
12
12
|
import { EmptyState } from './EmptyState';
|
|
13
|
+
import { EnvironmentBar } from './EnvironmentBar';
|
|
13
14
|
import Icon from './Icon';
|
|
14
15
|
import Link from './Link';
|
|
15
16
|
import LoadingSpinner from './LoadingSpinner';
|
|
@@ -36,13 +37,14 @@ import { Chip } from './Chip';
|
|
|
36
37
|
import { Flex } from './Flex';
|
|
37
38
|
import { Grid } from './Grid';
|
|
38
39
|
import { ListBox } from './ListBox';
|
|
39
|
-
export { ActionList, Dialog, Drawer, Alert, Avatar, Banner, Body, Card, Breadcrumbs, BreadcrumbsItem, Button, Checkbox, CheckboxGroup, Code, ComboBox, CopyToClipboard, createColumnHelper, DataTable, Display, EmptyState, FormErrorMessage, FormHelperText, Heading, Icon, IconButton, Label, Link, LoadingSpinner, Logo, Menu, MenuButton, MenuList, Modal, NumberField, OverlayTrigger, Pagination, Popover, DialogTrigger, Pressable, ProgressBar, Radio, RadioGroup, SearchField, Select, SegmentedControl, SideNav, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, TextArea, TextField, TextInput, Tile, ToastProvider, GlobalToastProvider, useToast, ToastQueue, Toggle, Tooltip, TooltipTrigger, TopBar, Chip, Flex, Grid, ListBox, };
|
|
40
|
+
export { ActionList, Dialog, Drawer, Alert, Avatar, Banner, Body, Card, Breadcrumbs, BreadcrumbsItem, Button, Checkbox, CheckboxGroup, Code, ComboBox, CopyToClipboard, createColumnHelper, DataTable, Display, EmptyState, EnvironmentBar, FormErrorMessage, FormHelperText, Heading, Icon, IconButton, Label, Link, LoadingSpinner, Logo, Menu, MenuButton, MenuList, Modal, NumberField, OverlayTrigger, Pagination, Popover, DialogTrigger, Pressable, ProgressBar, Radio, RadioGroup, SearchField, Select, SegmentedControl, SideNav, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, TextArea, TextField, TextInput, Tile, ToastProvider, GlobalToastProvider, useToast, ToastQueue, Toggle, Tooltip, TooltipTrigger, TopBar, Chip, Flex, Grid, ListBox, };
|
|
40
41
|
export type { PopoverProps } from './Popover/types';
|
|
41
42
|
export type { DrawerProps } from './Drawer/types';
|
|
42
43
|
export type { DialogProps } from './Dialog/types';
|
|
43
44
|
export type { ModalProps, ModalSize } from './Modal/types';
|
|
44
45
|
export type { CopyToClipboardProps, CopyToClipboardSize, CopyToClipboardVariant, } from './CopyToClipboard';
|
|
45
46
|
export type { EmptyStateHeadingLevel, EmptyStateProps } from './EmptyState';
|
|
47
|
+
export type { EnvironmentBarProps } from './EnvironmentBar';
|
|
46
48
|
export type { ComboBoxProps, NumberFieldProps, SearchFieldProps, TextAreaProps, TextFieldProps, TextInputProps, } from './forms';
|
|
47
49
|
export type { SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, } from './SegmentedControl';
|
|
48
50
|
export { Calendar } from './Calendar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,SAAS,EAAE,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAA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B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,YAAY,EACV,oBAAoB,EACpB,eAAe,GAChB,MAAM,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxio-com/react-ui-components",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.35.1",
|
|
4
4
|
"description": "React UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@floating-ui/react-dom": "^2.1.9",
|
|
50
50
|
"@floating-ui/react-dom-interactions": "^0.13.3",
|
|
51
51
|
"@internationalized/date": "^3.12.3",
|
|
52
|
-
"@maxio-com/design-tokens": "^4.
|
|
52
|
+
"@maxio-com/design-tokens": "^4.4.0",
|
|
53
53
|
"@react-aria/toast": "3.1.1",
|
|
54
54
|
"@react-aria/utils": "^3.34.1",
|
|
55
55
|
"@react-stately/checkbox": "^3.8.1",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "e86362178902a257cf305699c29264d62aaf61f3"
|
|
69
69
|
}
|
package/typings/index.d.ts
CHANGED
|
@@ -286,6 +286,14 @@ type EmptyStateProps = {
|
|
|
286
286
|
|
|
287
287
|
declare const EmptyState: ({ hasActiveFilters, title, headingLevel, description, actions, className, ...rest }: EmptyStateProps) => React$1.JSX.Element;
|
|
288
288
|
|
|
289
|
+
type EnvironmentBarProps = TestIdProps & {
|
|
290
|
+
children: string;
|
|
291
|
+
icon?: IconVariant | null;
|
|
292
|
+
className?: string;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
declare const EnvironmentBar: ({ children, icon, className, "data-testid": testId, }: EnvironmentBarProps) => React$1.JSX.Element;
|
|
296
|
+
|
|
289
297
|
type Variant = 'primary' | 'secondary' | 'tertiary' | 'high-contrast' | 'inverse';
|
|
290
298
|
type Size = 'xs' | 'sm' | 'md' | 'lg';
|
|
291
299
|
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
@@ -1037,5 +1045,5 @@ type AuthLayoutProps = {
|
|
|
1037
1045
|
|
|
1038
1046
|
declare const AuthLayout: ({ children, heading, description, sentiment, leadingElement, alert, topAddon, footer, }: AuthLayoutProps) => React$1.JSX.Element;
|
|
1039
1047
|
|
|
1040
|
-
export { ActionList, Alert, AuthLayout, Avatar, Banner, Body, Breadcrumbs, BreadcrumbsItem, Button, Calendar, Card, Checkbox, CheckboxGroup, Chip, Code, ComboBox, CopyToClipboard, DataTable, DateField, DatePicker, DateRangePicker, Dialog, Display, Drawer, EmptyState, Flex, FormErrorMessage, FormHelperText, GlobalToastProvider, Grid, Heading, Icon, IconButton, Label, Link, ListBox, LoadingSpinner, Logo, Menu, MenuButton, MenuList, Modal, NumberField, OverlayTrigger, Pagination, Popover, ProgressBar, Radio, RadioGroup, RangeCalendar, SearchField, SegmentedControl, Select, SideNavWrapper as SideNav, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, TextArea, TextField, TextInput, Tile, ToastProvider, ToastQueue, Toggle, Tooltip, TooltipTrigger, TopBar, useElementResizeObserver, useHover, useOverlayTrigger, useToast, useWindowSize };
|
|
1041
|
-
export type { CalendarNavigation, CalendarProps, ComboBoxProps, CopyToClipboardProps, CopyToClipboardSize, CopyToClipboardVariant, DateFieldProps, DatePickerProps, DatePreset, DateRangePickerProps, DateRangePreset, DialogProps, DrawerProps, EmptyStateHeadingLevel, EmptyStateProps, Interactions, ModalProps, ModalSize, NumberFieldProps, OverlayAriaRole, Placement, PopoverProps, RangeCalendarProps, SearchFieldProps, SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, TextAreaProps, TextFieldProps, TextInputProps };
|
|
1048
|
+
export { ActionList, Alert, AuthLayout, Avatar, Banner, Body, Breadcrumbs, BreadcrumbsItem, Button, Calendar, Card, Checkbox, CheckboxGroup, Chip, Code, ComboBox, CopyToClipboard, DataTable, DateField, DatePicker, DateRangePicker, Dialog, Display, Drawer, EmptyState, EnvironmentBar, Flex, FormErrorMessage, FormHelperText, GlobalToastProvider, Grid, Heading, Icon, IconButton, Label, Link, ListBox, LoadingSpinner, Logo, Menu, MenuButton, MenuList, Modal, NumberField, OverlayTrigger, Pagination, Popover, ProgressBar, Radio, RadioGroup, RangeCalendar, SearchField, SegmentedControl, Select, SideNavWrapper as SideNav, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, TextArea, TextField, TextInput, Tile, ToastProvider, ToastQueue, Toggle, Tooltip, TooltipTrigger, TopBar, useElementResizeObserver, useHover, useOverlayTrigger, useToast, useWindowSize };
|
|
1049
|
+
export type { CalendarNavigation, CalendarProps, ComboBoxProps, CopyToClipboardProps, CopyToClipboardSize, CopyToClipboardVariant, DateFieldProps, DatePickerProps, DatePreset, DateRangePickerProps, DateRangePreset, DialogProps, DrawerProps, EmptyStateHeadingLevel, EmptyStateProps, EnvironmentBarProps, Interactions, ModalProps, ModalSize, NumberFieldProps, OverlayAriaRole, Placement, PopoverProps, RangeCalendarProps, SearchFieldProps, SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, TextAreaProps, TextFieldProps, TextInputProps };
|