@maxio-com/react-ui-components 9.35.0 → 9.36.0
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/references/components-card.md +5 -5
- package/dist/skills/maxio-react/references/components-icon.md +21 -1
- package/dist/skills/maxio-react/references/foundations-design-tokens-colors-semantic-colors.md +6 -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/package.json +3 -3
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
|
|
18
18
|
### Variants
|
|
19
19
|
|
|
20
|
-
Choose the surface treatment that matches the card's hierarchy.
|
|
20
|
+
Choose the surface treatment that matches the card's hierarchy. Use `primary` by default. White is always preferred; see [Semantic Colors](foundations-design-tokens-colors-semantic-colors.md).
|
|
21
21
|
|
|
22
|
-
| Variants | Purpose | Usage notes
|
|
23
|
-
| :---------- | :--------------------------- |
|
|
24
|
-
| `primary` | Standard grouped surface. | Use for the main card or focused section within a page area.
|
|
25
|
-
| `secondary` | Lower-emphasis grouped area. |
|
|
22
|
+
| Variants | Purpose | Usage notes |
|
|
23
|
+
| :---------- | :--------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
24
|
+
| `primary` | Standard grouped surface. | Use for the main card or focused section within a page area. |
|
|
25
|
+
| `secondary` | Lower-emphasis grouped area. | Header and footer sit on `bg-subtle` around a white body. With only a body, the whole card is `bg-subtle`. It adds gray, so a designer must approve it. |
|
|
26
26
|
|
|
27
27
|
### Behavior
|
|
28
28
|
|
|
@@ -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
|
package/dist/skills/maxio-react/references/foundations-design-tokens-colors-semantic-colors.md
CHANGED
|
@@ -4,6 +4,12 @@ Semantic colors help align Maxio's UI with user intent and accessibility needs.
|
|
|
4
4
|
|
|
5
5
|
If a suitable semantic color isn't available, you may use [Primitive Colors](foundations-design-tokens-colors-primitive-colors.md) as a fallback.
|
|
6
6
|
|
|
7
|
+
## Backgrounds: white first
|
|
8
|
+
|
|
9
|
+
- **White is the default.** Use `bg-primary` for page backgrounds and card surfaces.
|
|
10
|
+
- **Gray needs a designer.** A gray page or surface background is a design decision. A designer must approve it before it ships.
|
|
11
|
+
- **Approved gray means `bg-subtle`.** When a designer approves a gray background, use `bg-subtle`. Don't use `bg-secondary` or `bg-tertiary` for page or card backgrounds.
|
|
12
|
+
|
|
7
13
|
## Colors
|
|
8
14
|
|
|
9
15
|
<br />
|
|
@@ -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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxio-com/react-ui-components",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.36.0",
|
|
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.5.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": "cc420c3ac31da7e470eb719df4b8323aafcedb03"
|
|
69
69
|
}
|