@tanishqkancharla/maui 0.0.46 → 0.0.48
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/components/Code.js
CHANGED
|
@@ -8,9 +8,10 @@ const codeClass = style(monospace, radius.sm, spacing.padding({ x: 2, y: 1 }), {
|
|
|
8
8
|
backgroundColor: colors.gray[3],
|
|
9
9
|
color: colors.gray[12],
|
|
10
10
|
display: "inline",
|
|
11
|
-
boxDecorationBreak: "
|
|
11
|
+
boxDecorationBreak: "slice",
|
|
12
12
|
fontSize: "0.875em",
|
|
13
|
-
whiteSpace: "
|
|
13
|
+
whiteSpace: "normal",
|
|
14
|
+
overflowWrap: "anywhere",
|
|
14
15
|
});
|
|
15
16
|
const kbdClass = style(text({ size: "xs", fontWeight: 400, color: "lowContrast" }), radius.sm, {
|
|
16
17
|
backgroundColor: colors.gray[3],
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ Patterns, demo apps, and the gallery `Panel` preview frame are not package compo
|
|
|
6
6
|
|
|
7
7
|
## Composition
|
|
8
8
|
|
|
9
|
+
- Use Maui's `Text` component instead of raw `<span>` elements for inline text. Set typography through its `size`, `fontWeight`, `color`, `monospace`, and `tabular` props; see [Text](components/text.md). Keep semantic elements such as headings, paragraphs, labels, and links for their respective roles.
|
|
9
10
|
- Hover backgrounds have no transitions. Hover fills such as `backgroundColor.elementHover`, quiet-button washes, and list or row highlights snap instantly. Do not animate `background` or `background-color` on hover with `motion.standard(...)` or a CSS `transition`. Other motion, including tooltips and transforms, is allowed.
|
|
10
11
|
- Simple apps default to a prose column: `style(proseContainerStyle, { width: "100%", marginInline: "auto" })`. `sizing.contentWidth` is that same style. Use it for single-column tools, settings, forms, and reading layouts. Multi-pane or full-bleed apps such as inboxes, calendars, and IDEs are exceptions.
|
|
11
12
|
- Design an intentional empty composition for every list, inbox, search result, or collection. Include copy and, when useful, an action. Do not leave a blank panel.
|
package/src/components/Code.tsx
CHANGED
|
@@ -21,9 +21,10 @@ const codeClass = style(
|
|
|
21
21
|
backgroundColor: colors.gray[3],
|
|
22
22
|
color: colors.gray[12],
|
|
23
23
|
display: "inline",
|
|
24
|
-
boxDecorationBreak: "
|
|
24
|
+
boxDecorationBreak: "slice",
|
|
25
25
|
fontSize: "0.875em",
|
|
26
|
-
whiteSpace: "
|
|
26
|
+
whiteSpace: "normal",
|
|
27
|
+
overflowWrap: "anywhere",
|
|
27
28
|
},
|
|
28
29
|
)
|
|
29
30
|
|