@tempoxyz/ds 0.3.15 → 0.3.16
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/docs/AGENTS.md +6 -4
- package/dist/docs/arsenal.md +44 -0
- package/dist/docs/marketing.md +4 -4
- package/dist/docs/product/components/actions.md +53 -1
- package/dist/docs/product/components/blockchain.md +147 -3
- package/dist/docs/product/components/feedback-and-status.md +137 -7
- package/dist/docs/product/components/navigation.md +1 -1
- package/dist/docs/product/foundations.md +1 -0
- package/dist/docs/product/patterns.md +3 -22
- package/dist/marketing/index.js.zyzz.json +1 -1
- package/dist/marketing/vars.d.ts +618 -758
- package/dist/marketing/vars.d.ts.map +1 -1
- package/dist/marketing/vars.js +8 -5
- package/dist/marketing/vars.js.map +1 -1
- package/dist/marketing/vars.js.zyzz.json +1 -1
- package/dist/marketing/zyzz.config.d.ts +3042 -3757
- package/dist/marketing/zyzz.config.d.ts.map +1 -1
- package/dist/marketing/zyzz.config.js +1 -1
- package/dist/marketing/zyzz.config.js.map +1 -1
- package/dist/marketing/zyzz.config.js.zyzz.json +1 -1
- package/dist/mobile/components/Button.d.ts +115 -15
- package/dist/mobile/components/Button.d.ts.map +1 -1
- package/dist/mobile/components/Button.js +85 -14
- package/dist/mobile/components/Button.js.map +1 -1
- package/dist/mobile/components/IconButton.d.ts +129 -40
- package/dist/mobile/components/IconButton.d.ts.map +1 -1
- package/dist/mobile/components/IconButton.js +97 -28
- package/dist/mobile/components/IconButton.js.map +1 -1
- package/dist/mobile/components/TextInput.d.ts +132 -11
- package/dist/mobile/components/TextInput.d.ts.map +1 -1
- package/dist/mobile/components/TextInput.js +115 -14
- package/dist/mobile/components/TextInput.js.map +1 -1
- package/dist/mobile/index.d.ts +1 -0
- package/dist/mobile/index.d.ts.map +1 -1
- package/dist/mobile/index.js +1 -0
- package/dist/mobile/index.js.map +1 -1
- package/dist/mobile/vars.d.ts +103 -0
- package/dist/mobile/vars.d.ts.map +1 -1
- package/dist/mobile/vars.js +74 -0
- package/dist/mobile/vars.js.map +1 -1
- package/dist/mobile/zyzz.config.d.ts +408 -0
- package/dist/mobile/zyzz.config.d.ts.map +1 -1
- package/dist/web/components/AddressCard.js.zyzz.json +1 -1
- package/dist/web/components/Amount.css +1 -1
- package/dist/web/components/Amount.d.ts +9 -0
- package/dist/web/components/Amount.d.ts.map +1 -1
- package/dist/web/components/Amount.js +8 -5
- package/dist/web/components/Amount.js.map +1 -1
- package/dist/web/components/Amount.js.zyzz.json +1 -1
- package/dist/web/components/CopyButton.d.ts +6 -0
- package/dist/web/components/CopyButton.d.ts.map +1 -1
- package/dist/web/components/CopyButton.js +4 -1
- package/dist/web/components/CopyButton.js.map +1 -1
- package/dist/web/components/CopyButton.js.zyzz.json +1 -1
- package/dist/web/components/Hex.css +1 -1
- package/dist/web/components/Hex.d.ts +84 -3
- package/dist/web/components/Hex.d.ts.map +1 -1
- package/dist/web/components/Hex.js +20 -13
- package/dist/web/components/Hex.js.map +1 -1
- package/dist/web/components/Hex.js.zyzz.json +1 -1
- package/dist/web/components/Progress.css +1 -1
- package/dist/web/components/Progress.d.ts +12 -2
- package/dist/web/components/Progress.d.ts.map +1 -1
- package/dist/web/components/Progress.js +9 -5
- package/dist/web/components/Progress.js.map +1 -1
- package/dist/web/components/Progress.js.zyzz.json +1 -1
- package/dist/web/components/SecretValue.js.zyzz.json +1 -1
- package/dist/web/components/SidebarMenu.d.ts +4 -4
- package/dist/web/components/SidebarMenu.js +6 -6
- package/dist/web/components/SidebarMenu.js.map +1 -1
- package/dist/web/components/Snippet.js.zyzz.json +1 -1
- package/dist/web/index.js.zyzz.json +1 -1
- package/package.json +1 -1
- package/src/marketing/README.md +1 -1
- package/src/marketing/vars.ts +526 -604
- package/src/marketing/zyzz.config.ts +5 -4
- package/src/mobile/README.md +19 -6
- package/src/mobile/components/Button.tsx +94 -17
- package/src/mobile/components/IconButton.tsx +122 -30
- package/src/mobile/components/TextInput.tsx +139 -24
- package/src/mobile/index.ts +1 -0
- package/src/mobile/vars.ts +74 -0
- package/src/web/components/Amount.tsx +37 -3
- package/src/web/components/CopyButton.tsx +8 -0
- package/src/web/components/Hex.tsx +79 -13
- package/src/web/components/Progress.tsx +8 -2
- package/src/web/components/SidebarMenu.tsx +6 -6
|
@@ -11,8 +11,11 @@ import { style, variants } from '../zyzz.config.js'
|
|
|
11
11
|
*
|
|
12
12
|
* - Name the task with `Label`, which labels the bar for assistive technology.
|
|
13
13
|
* - Use the indeterminate state only when the remaining work is unknown.
|
|
14
|
-
* -
|
|
14
|
+
* - Pass `role="meter"` for a measurement against a limit, such as the share of a spending limit
|
|
15
|
+
* used. Use `Gauge` for a measurement in a ring.
|
|
15
16
|
* - Pass `getAriaValueText` for a value with units, such as `3 of 5 files`.
|
|
17
|
+
* - Use the `warning` and `negative` intents for a meter that nears or reaches its limit, and
|
|
18
|
+
* state the reading in text, since color alone does not convey it.
|
|
16
19
|
*
|
|
17
20
|
* @example
|
|
18
21
|
* <Progress.Root value={60}>
|
|
@@ -64,7 +67,8 @@ export namespace Progress {
|
|
|
64
67
|
|
|
65
68
|
/**
|
|
66
69
|
* Owns the value and renders the `progressbar` element. `format` changes both `Value` and
|
|
67
|
-
* `aria-valuetext`.
|
|
70
|
+
* `aria-valuetext`. `role="meter"` replaces the `progressbar` role and keeps the range,
|
|
71
|
+
* value, and label attributes, which a `meter` accepts. A meter requires a number `value`.
|
|
68
72
|
*/
|
|
69
73
|
export function Root(props: Root.Props) {
|
|
70
74
|
const { className, intent, vars, ...attributes } = props
|
|
@@ -181,8 +185,10 @@ namespace styles {
|
|
|
181
185
|
defaultVariants: { intent: 'neutral' },
|
|
182
186
|
variants: {
|
|
183
187
|
intent: {
|
|
188
|
+
negative: { color: 'content.negative' },
|
|
184
189
|
neutral: { color: 'content.primary' },
|
|
185
190
|
positive: { color: 'content.positive' },
|
|
191
|
+
warning: { color: 'content.warning' },
|
|
186
192
|
},
|
|
187
193
|
},
|
|
188
194
|
},
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
useState,
|
|
11
11
|
} from 'react'
|
|
12
12
|
import type * as zyzz from 'zyzz'
|
|
13
|
-
import {
|
|
13
|
+
import { ChevronGrabberVertical } from '../icons/central/icons/C.js'
|
|
14
14
|
import { ChevronRight } from '../icons/ChevronRight.js'
|
|
15
15
|
import { Close } from '../icons/Close.js'
|
|
16
16
|
import { style, variants } from '../zyzz.config.js'
|
|
@@ -78,10 +78,10 @@ export namespace SidebarMenu {
|
|
|
78
78
|
/**
|
|
79
79
|
* Renders the 44px account `<button>` at the bottom of a sidebar: `children`, such as a 32px
|
|
80
80
|
* `Avatar`, then `label` over `description`. A row that opens a popup, through `aria-haspopup`,
|
|
81
|
-
* ends in
|
|
82
|
-
* account. Pass the row to `Menu.Trigger`
|
|
83
|
-
* `
|
|
84
|
-
* row and moves its content 2px inward.
|
|
81
|
+
* ends in an up and down chevron, since the menu can open above or below it. The children are
|
|
82
|
+
* hidden from assistive technology, so `label` names the account. Pass the row to `Menu.Trigger`
|
|
83
|
+
* through `render` to open the account menu, which sets `aria-haspopup` and fills the row while
|
|
84
|
+
* it is open. Keyboard focus draws a 2px ring inside the row and moves its content 2px inward.
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* <Menu.Root>
|
|
@@ -113,7 +113,7 @@ export namespace SidebarMenu {
|
|
|
113
113
|
<span {...styles.accountDescription()}>{description}</span>
|
|
114
114
|
)}
|
|
115
115
|
</span>
|
|
116
|
-
{popup && <
|
|
116
|
+
{popup && <ChevronGrabberVertical {...styles.accountChevron()} />}
|
|
117
117
|
</button>
|
|
118
118
|
)
|
|
119
119
|
}
|