@astryxdesign/native 0.7.5-canary.e9b3f3e → 0.7.5-canary.eb3e539
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/apple/Package.swift +1 -1
- package/apple/README.md +1 -0
- package/apple/Sources/Astryx/Avatar/Avatar.spec.md +43 -34
- package/apple/Sources/Astryx/Avatar/Avatar.swift +96 -19
- package/apple/Sources/Astryx/Avatar/AvatarStatusDot.spec.md +162 -0
- package/apple/Sources/Astryx/Avatar/AvatarStatusDot.swift +181 -0
- package/apple/Sources/Astryx/Icon/Icon.spec.md +14 -11
- package/apple/Sources/Astryx/Icon/Icon.swift +8 -3
- package/apple/Sources/Astryx/Localization/AstryxStrings.swift +36 -0
- package/apple/Sources/Astryx/Resources/af.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/ar.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/ca.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/cs.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/da.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/de.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/el.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/en.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/es.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/fi.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/fr.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/he.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/hu.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/it.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/ja.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/ko.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/nb.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/nl.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/pl.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/pt-BR.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/pt-PT.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/ro.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/ru.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/sr.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/sv.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/tr.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/uk.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/vi.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/zh-Hans.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Resources/zh-Hant.lproj/Localizable.strings +15 -0
- package/apple/Sources/Astryx/Theme/Generated/ButterTheme.swift +38 -0
- package/apple/Sources/Astryx/Theme/Generated/ChocolateTheme.swift +42 -4
- package/apple/Sources/Astryx/Theme/Generated/DefaultTheme.swift +39 -1
- package/apple/Sources/Astryx/Theme/Generated/GothicTheme.swift +38 -0
- package/apple/Sources/Astryx/Theme/Generated/MatchaTheme.swift +42 -4
- package/apple/Sources/Astryx/Theme/Generated/NeutralTheme.swift +44 -6
- package/apple/Sources/Astryx/Theme/Generated/StoneTheme.swift +44 -6
- package/apple/Sources/Astryx/Theme/Generated/Tokens.swift +95 -0
- package/apple/Sources/Astryx/Theme/Generated/Y2kTheme.swift +38 -0
- package/apple/Sources/Astryx/Thumbnail/Thumbnail.spec.md +191 -0
- package/apple/Sources/Astryx/Thumbnail/Thumbnail.swift +357 -0
- package/apple/Sources/Astryx/Tooltip/TooltipPresenter.swift +17 -4
- package/apple/Sources/Astryx/Wire/AstryxNodeView.swift +6 -1
- package/apple/Sources/AstryxNative/Generated/AstryxNode.swift +6 -0
- package/apple/Sources/AstryxNative/Generated/Avatar.swift +2 -0
- package/apple/Sources/AstryxNative/Generated/AvatarStatusDot.swift +78 -0
- package/apple/Sources/AstryxNative/Generated/Icon.swift +1 -0
- package/apple/Sources/AstryxNative/Generated/Thumbnail.swift +123 -0
- package/apple/Tests/AstryxTests/AvatarStatusDotTests.swift +255 -0
- package/apple/Tests/AstryxTests/AvatarTests.swift +35 -35
- package/apple/Tests/AstryxTests/IconTests.swift +4 -3
- package/apple/Tests/AstryxTests/ThumbnailTests.swift +204 -0
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar.js +2 -1
- package/dist/components/AvatarStatusDot.d.ts +10 -0
- package/dist/components/AvatarStatusDot.d.ts.map +1 -0
- package/dist/components/AvatarStatusDot.js +9 -0
- package/dist/components/Thumbnail.d.ts +10 -0
- package/dist/components/Thumbnail.d.ts.map +1 -0
- package/dist/components/Thumbnail.js +10 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -0
- package/dist/types/android.d.ts +29 -5
- package/dist/types/core.d.ts +18 -1
- package/dist/types/ios.d.ts +29 -5
- package/dist/types/macos.d.ts +29 -5
- package/dist/types/shared.d.ts +29 -5
- package/dist/types/windows.d.ts +29 -5
- package/package.json +3 -3
- package/src/components/Avatar.ts +2 -1
- package/src/components/AvatarStatusDot.ts +20 -0
- package/src/components/Thumbnail.ts +21 -0
- package/src/components/index.ts +4 -0
- package/src/contract/contracts.test.ts +44 -2
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
import AstryxNative
|
|
4
|
+
import SwiftUI
|
|
5
|
+
|
|
6
|
+
/// A status dot for an avatar's corner (core `AvatarStatusDot`). Each variant
|
|
7
|
+
/// pairs a color with a shape, so status never rests on color alone: a filled
|
|
8
|
+
/// dot, a ring, or a dot with a minus bar. Inside an `Avatar` it sizes itself
|
|
9
|
+
/// from the avatar and its label joins the avatar's name ("Ada, Online").
|
|
10
|
+
///
|
|
11
|
+
/// ```swift
|
|
12
|
+
/// Avatar("Ada Lovelace", size: .lg) {
|
|
13
|
+
/// AvatarStatusDot(variant: .success, label: "Online")
|
|
14
|
+
/// }
|
|
15
|
+
/// ```
|
|
16
|
+
public struct AvatarStatusDot: View {
|
|
17
|
+
/// The contract the view draws, the same for both initializers.
|
|
18
|
+
public let props: AvatarStatusDotProps
|
|
19
|
+
@Environment(\.astryx) private var astryx
|
|
20
|
+
@Environment(\.astryxAvatarSide) private var avatarSide
|
|
21
|
+
|
|
22
|
+
/// A status dot from its labeled props.
|
|
23
|
+
/// - Parameters:
|
|
24
|
+
/// - variant: `success` (filled), `neutral` (ring), or `error` (minus bar); `nil` is `success` (core `variant`).
|
|
25
|
+
/// - label: What the status means, such as "Online" (core `label`).
|
|
26
|
+
public init(variant: AvatarStatusDotVariant? = nil, label: String? = nil) {
|
|
27
|
+
self.init(AvatarStatusDotProps(variant: variant, label: label))
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/// A status dot from its generated contract, for generated and wire-driven callers.
|
|
31
|
+
public init(_ props: AvatarStatusDotProps) {
|
|
32
|
+
self.props = props
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public var body: some View {
|
|
36
|
+
if props.base.isHidden != true {
|
|
37
|
+
let tier = AvatarStatusDot.tier(forAvatarSide: avatarSide)
|
|
38
|
+
ZStack {
|
|
39
|
+
Circle().fill(plate)
|
|
40
|
+
glyph(tier)
|
|
41
|
+
}
|
|
42
|
+
.frame(width: tier.dot, height: tier.dot)
|
|
43
|
+
.overlay(Circle().strokeBorder(astryx.tokens.color.backgroundSurface, lineWidth: tier.border))
|
|
44
|
+
.modifier(DotName(label: label))
|
|
45
|
+
.modifier(DotIdentifier(id: props.base.id))
|
|
46
|
+
.preference(key: AvatarStatusLabelKey.self, value: label.map { AvatarStatusLabel(text: $0, isDot: true) })
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@ViewBuilder private func glyph(_ tier: Tier) -> some View {
|
|
51
|
+
let field = tier.dot - tier.border * 2
|
|
52
|
+
switch variant {
|
|
53
|
+
case .neutral:
|
|
54
|
+
// The ring's outer edge lands on the inner field.
|
|
55
|
+
Circle()
|
|
56
|
+
.inset(by: tier.stroke / 2)
|
|
57
|
+
.stroke(ink, lineWidth: tier.stroke)
|
|
58
|
+
.frame(width: field, height: field)
|
|
59
|
+
case .error:
|
|
60
|
+
// A round-capped bar across three quarters of the inner field.
|
|
61
|
+
Capsule()
|
|
62
|
+
.fill(ink)
|
|
63
|
+
.frame(width: field * 0.75, height: tier.stroke)
|
|
64
|
+
case .success:
|
|
65
|
+
EmptyView()
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
var variant: AvatarStatusDotVariant { props.variant ?? .success }
|
|
70
|
+
|
|
71
|
+
/// The label, or `nil` when it is absent or blank.
|
|
72
|
+
var label: String? {
|
|
73
|
+
guard let label = props.label, !label.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else { return nil }
|
|
74
|
+
return label
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/// The dot's fill: the variant color, or the surface for the ring.
|
|
78
|
+
var plate: Color {
|
|
79
|
+
switch variant {
|
|
80
|
+
case .success: astryx.tokens.color.success
|
|
81
|
+
case .neutral: astryx.tokens.color.backgroundSurface
|
|
82
|
+
case .error: astryx.tokens.color.error
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/// What the glyph draws in, as core pairs each plate with its ink: on-error
|
|
87
|
+
/// on the error plate, secondary text on the ring, on-success on success.
|
|
88
|
+
var ink: Color {
|
|
89
|
+
switch variant {
|
|
90
|
+
case .success: astryx.tokens.color.onSuccess
|
|
91
|
+
case .neutral: astryx.tokens.color.textSecondary
|
|
92
|
+
case .error: astryx.tokens.color.onError
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/// A labeled dot alone is an image; an unlabeled one is hidden and adds no
|
|
97
|
+
/// traits (Swift accessibility, X1).
|
|
98
|
+
nonisolated static func traits(label: String?) -> AccessibilityTraits {
|
|
99
|
+
label == nil ? [] : .isImage
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/// Core's discrete size tiers: dot, border, and glyph stroke in points.
|
|
103
|
+
struct Tier: Equatable {
|
|
104
|
+
let dot: CGFloat
|
|
105
|
+
let border: CGFloat
|
|
106
|
+
let stroke: CGFloat
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/// The tier for an avatar's side: up to 36 points small, up to 72 medium,
|
|
110
|
+
/// larger large. A dot outside an avatar is small, as for an `md` avatar.
|
|
111
|
+
nonisolated static func tier(forAvatarSide side: CGFloat?) -> Tier {
|
|
112
|
+
switch side ?? 36 {
|
|
113
|
+
case ...36: Tier(dot: 10, border: 1, stroke: 1)
|
|
114
|
+
case ...72: Tier(dot: 20, border: 2, stroke: 1.5)
|
|
115
|
+
default: Tier(dot: 32, border: 4, stroke: 2)
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/// A labeled dot on its own reads as an image with its label; inside an
|
|
121
|
+
/// avatar the avatar reads it as part of its own name.
|
|
122
|
+
private struct DotName: ViewModifier {
|
|
123
|
+
let label: String?
|
|
124
|
+
|
|
125
|
+
func body(content: Content) -> some View {
|
|
126
|
+
if let label {
|
|
127
|
+
content.accessibilityElement(children: .ignore).accessibilityLabel(label)
|
|
128
|
+
.accessibilityAddTraits(AvatarStatusDot.traits(label: label))
|
|
129
|
+
} else {
|
|
130
|
+
content.accessibilityHidden(true)
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/// The base `id` becomes the accessibility identifier (AST-082 FR7).
|
|
136
|
+
private struct DotIdentifier: ViewModifier {
|
|
137
|
+
let id: String?
|
|
138
|
+
|
|
139
|
+
func body(content: Content) -> some View {
|
|
140
|
+
if let id {
|
|
141
|
+
content.accessibilityIdentifier(id)
|
|
142
|
+
} else {
|
|
143
|
+
content
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/// A status label reported to the avatar that holds it: from a dot, or from
|
|
149
|
+
/// other labeled content such as an `Icon`.
|
|
150
|
+
struct AvatarStatusLabel: Equatable, Sendable {
|
|
151
|
+
let text: String
|
|
152
|
+
let isDot: Bool
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/// The label the avatar's status names: a dot's wins over other content's,
|
|
156
|
+
/// wherever each sits, as core's reported dot label wins; else the first.
|
|
157
|
+
struct AvatarStatusLabelKey: PreferenceKey {
|
|
158
|
+
static let defaultValue: AvatarStatusLabel? = nil
|
|
159
|
+
|
|
160
|
+
static func reduce(value: inout AvatarStatusLabel?, nextValue: () -> AvatarStatusLabel?) {
|
|
161
|
+
value = AvatarStatusLabelKey.winner(value, nextValue())
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
nonisolated static func winner(_ first: AvatarStatusLabel?, _ second: AvatarStatusLabel?) -> AvatarStatusLabel? {
|
|
165
|
+
guard let first else { return second }
|
|
166
|
+
guard let second else { return first }
|
|
167
|
+
return !first.isDot && second.isDot ? second : first
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
private struct AstryxAvatarSideKey: EnvironmentKey {
|
|
172
|
+
static let defaultValue: CGFloat? = nil
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
extension EnvironmentValues {
|
|
176
|
+
/// The side of the avatar a status dot sits on; `nil` outside an avatar.
|
|
177
|
+
var astryxAvatarSide: CGFloat? {
|
|
178
|
+
get { self[AstryxAvatarSideKey.self] }
|
|
179
|
+
set { self[AstryxAvatarSideKey.self] = newValue }
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
schema_version:
|
|
3
|
-
template_version:
|
|
2
|
+
schema_version: 3
|
|
3
|
+
template_version: 7
|
|
4
4
|
kind: component
|
|
5
5
|
id: component:swift/Icon
|
|
6
6
|
platform_of: component:Icon
|
|
@@ -83,12 +83,12 @@ Consumer migration instructions belong in consumer docs and release notes.
|
|
|
83
83
|
|
|
84
84
|
## Public concepts
|
|
85
85
|
|
|
86
|
-
| Concept | Closed values or states
|
|
87
|
-
| ------------- |
|
|
88
|
-
| icon name | the built-in names; a `<library>:<name>` the theme maps
|
|
89
|
-
| symbol source | theme mapping; platform default
|
|
90
|
-
| size | `xsm`, `sm`, `md`, `lg`; unset
|
|
91
|
-
| color | `primary`, `secondary`, `tertiary`, `disabled`, `accent`, `success`, `error`, `warning`, `inherit`; unset | core's icon color tokens; `inherit` keeps the surrounding foreground | always | `inherit` | `component:Icon` | experimental | unset is `inherit` |
|
|
86
|
+
| Concept | Closed values or states | Meaning | Availability by variant/orientation/state | Default | Owner | Stability | Invalid-value behavior |
|
|
87
|
+
| ------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ----------------------------------------- | -------------------------- | ---------------------- | ------------ | ----------------------------------------------------------------------- |
|
|
88
|
+
| icon name | the built-in names; a `<library>:<name>` the theme maps | `IconName`, a string on the wire, with each built-in as a static member | always | required | `component:Icon` | experimental | an unmapped name stops a development build and draws nothing in release |
|
|
89
|
+
| symbol source | theme mapping; platform default | `Theme(icons:)` replaces a built-in or registers a library name with an SF Symbol or an app asset | always | platform default | `component:swift/Icon` | experimental | a theme entry wins over the default |
|
|
90
|
+
| size | `xsm`, `sm`, `md`, `lg`; unset | 12, 16, 20, 24 points at the default text size | always | owner's icon size, else md | `component:Icon` | experimental | unset takes the owner's size, then `md` |
|
|
91
|
+
| color | `primary`, `secondary`, `tertiary`, `disabled`, `accent`, `info`, `success`, `error`, `warning`, `inherit`; unset | core's icon color tokens; `inherit` keeps the surrounding foreground | always | `inherit` | `component:Icon` | experimental | unset is `inherit` |
|
|
92
92
|
|
|
93
93
|
## Behavioral and layout contract
|
|
94
94
|
|
|
@@ -97,7 +97,7 @@ Consumer migration instructions belong in consumer docs and release notes.
|
|
|
97
97
|
| FR1 | The view MUST draw the image the theme's `icons` maps the name to, an SF Symbol or an asset the app ships, else the platform default for a built-in name. A name neither maps, or an asset the app does not ship, MUST stop a development build with a message naming it and draw nothing in a release build, never a substitute. | `spec:AST-082` FR17; Swift slots S2 | verify |
|
|
98
98
|
| FR2 | The symbol MUST fit a square box whose side is core's size in points (12, 16, 20, 24 for `xsm`, `sm`, `md`, `lg`), multiplied by the Dynamic Type scale the theme environment reads. | core `Icon` sizes; `spec:AST-093` FR3; theme environment E1 | verify |
|
|
99
99
|
| FR3 | The view MUST use its own `size`, else the size its owning component gives icons in its documented icon slot, else `md`. | `architecture:component-size-cascade`; Swift slots S4 | verify |
|
|
100
|
-
| FR4 | The view MUST draw in core's token for its `color` — primary and secondary icon tokens, the secondary icon token for `tertiary`, the disabled icon token,
|
|
100
|
+
| FR4 | The view MUST draw in core's token for its `color` — primary and secondary icon tokens, the secondary icon token for `tertiary`, the disabled icon token, the accent color, and the `info`, `success`, `error`, and `warning` status icon roles — and, for `inherit` or no color, MUST keep the surrounding foreground style. | core `Icon` color map; `spec:AST-093` FR4 | verify |
|
|
101
101
|
| FR5 | Both initializers MUST build the same `IconProps`; the labeled initializer takes the contract's props with the generated types and defaults, and base props (`id`, `isHidden`) come through `IconProps`. With `isHidden` the view draws nothing; `id` becomes the accessibility identifier. | Swift component API A2, A3, A7; `spec:AST-082` FR7 | verify |
|
|
102
102
|
|
|
103
103
|
### Allowed variation
|
|
@@ -135,6 +135,8 @@ Consumer migration instructions belong in consumer docs and release notes.
|
|
|
135
135
|
view is hidden from VoiceOver. With a label, it is one image element named by
|
|
136
136
|
the label, keeping SwiftUI's image trait and adding none (`spec:AST-082` FR17;
|
|
137
137
|
Swift accessibility X1, X4).
|
|
138
|
+
In an avatar's status slot a labeled icon also names the status, which joins
|
|
139
|
+
the avatar's name (`component:swift/Avatar` AR6).
|
|
138
140
|
- **AR2 — Rendered tree not measured.** Tests assert what the view sets; the
|
|
139
141
|
rendered accessibility tree is not measured until an app-hosted target exists.
|
|
140
142
|
|
|
@@ -152,8 +154,9 @@ FR2). Guideline pages: SF Symbols and Accessibility in the Apple Human
|
|
|
152
154
|
Interface Guidelines.
|
|
153
155
|
|
|
154
156
|
Theme values read: `color.iconPrimary`, `color.iconSecondary`,
|
|
155
|
-
`color.iconDisabled`, `color.accent`, `color.
|
|
156
|
-
`color.
|
|
157
|
+
`color.iconDisabled`, `color.accent`, `color.iconInfo`, `color.iconSuccess`,
|
|
158
|
+
`color.iconError`, `color.iconWarning`, the theme's `icons` map, and the
|
|
159
|
+
Dynamic Type scale.
|
|
157
160
|
|
|
158
161
|
## Family and system relationships
|
|
159
162
|
|
|
@@ -11,6 +11,7 @@ import SwiftUI
|
|
|
11
11
|
/// Icon(.success, color: .success, label: "Completed")
|
|
12
12
|
/// ```
|
|
13
13
|
public struct Icon: View {
|
|
14
|
+
@Environment(\.astryxAvatarSide) private var avatarSide
|
|
14
15
|
/// The contract the view draws, the same for both initializers.
|
|
15
16
|
public let props: IconProps
|
|
16
17
|
@Environment(\.astryx) private var astryx
|
|
@@ -43,6 +44,9 @@ public struct Icon: View {
|
|
|
43
44
|
.modifier(IconTint(color: tint))
|
|
44
45
|
.modifier(IconAccessibility(label: accessibilityLabel))
|
|
45
46
|
.modifier(IconIdentifier(id: props.base.id))
|
|
47
|
+
// In an avatar's status slot a labeled icon names the status, as
|
|
48
|
+
// core reads the `label` of the element passed as `status`.
|
|
49
|
+
.preference(key: AvatarStatusLabelKey.self, value: avatarSide == nil ? nil : accessibilityLabel.map { AvatarStatusLabel(text: $0, isDot: false) })
|
|
46
50
|
} else {
|
|
47
51
|
// AST-082 FR17: a name nothing maps draws nothing, never a substitute.
|
|
48
52
|
let _ = assertionFailure("Astryx has no icon named \"\(props.icon.rawValue)\"")
|
|
@@ -85,9 +89,10 @@ public struct Icon: View {
|
|
|
85
89
|
case .secondary, .tertiary: tokens.color.iconSecondary
|
|
86
90
|
case .disabled: tokens.color.iconDisabled
|
|
87
91
|
case .accent: tokens.color.accent
|
|
88
|
-
case .
|
|
89
|
-
case .
|
|
90
|
-
case .
|
|
92
|
+
case .info: tokens.color.iconInfo
|
|
93
|
+
case .success: tokens.color.iconSuccess
|
|
94
|
+
case .error: tokens.color.iconError
|
|
95
|
+
case .warning: tokens.color.iconWarning
|
|
91
96
|
case .inherit: nil
|
|
92
97
|
}
|
|
93
98
|
}
|
|
@@ -7,6 +7,42 @@ import Foundation
|
|
|
7
7
|
enum AstryxStrings {
|
|
8
8
|
/// What a loading button says to assistive technology.
|
|
9
9
|
static var buttonLoading: String { localized("@astryx.button.loading", "Loading") }
|
|
10
|
+
/// An avatar's name with its status, such as "Ada Lovelace, Online".
|
|
11
|
+
static func avatarNameWithStatus(name: String, status: String) -> String {
|
|
12
|
+
fill(localized("@astryx.avatar.nameWithStatus", "{name}, {status}"), ["name": name, "status": status])
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/// Fills each `{key}` placeholder in a message once, in one pass, as core's
|
|
16
|
+
/// messages do, so a value that itself contains a placeholder stays as it is.
|
|
17
|
+
/// An unknown placeholder stays in place.
|
|
18
|
+
static func fill(_ template: String, _ values: [String: String]) -> String {
|
|
19
|
+
var result = ""
|
|
20
|
+
var rest = template[...]
|
|
21
|
+
while let open = rest.firstIndex(of: "{") {
|
|
22
|
+
result += rest[..<open]
|
|
23
|
+
guard let close = rest[open...].firstIndex(of: "}") else {
|
|
24
|
+
rest = rest[open...]
|
|
25
|
+
break
|
|
26
|
+
}
|
|
27
|
+
let key = String(rest[rest.index(after: open)..<close])
|
|
28
|
+
result += values[key] ?? String(rest[open...close])
|
|
29
|
+
rest = rest[rest.index(after: close)...]
|
|
30
|
+
}
|
|
31
|
+
return result + rest
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/// What a busy view announces when it starts loading.
|
|
35
|
+
static var spinnerLoading: String { localized("@astryx.spinner.loading", "Loading") }
|
|
36
|
+
/// A thumbnail's name when it has no alt or label.
|
|
37
|
+
static var thumbnailFallbackName: String { localized("@astryx.thumbnail.fallbackName", "Thumbnail") }
|
|
38
|
+
/// The name of a thumbnail's open button.
|
|
39
|
+
static func thumbnailOpen(_ accessibleName: String) -> String {
|
|
40
|
+
fill(localized("@astryx.thumbnail.open", "Open {accessibleName}"), ["accessibleName": accessibleName])
|
|
41
|
+
}
|
|
42
|
+
/// The name of a thumbnail's remove button.
|
|
43
|
+
static func thumbnailRemove(_ accessibleName: String) -> String {
|
|
44
|
+
fill(localized("@astryx.thumbnail.remove", "Remove {accessibleName}"), ["accessibleName": accessibleName])
|
|
45
|
+
}
|
|
10
46
|
|
|
11
47
|
static func localized(_ key: String, _ english: String) -> String {
|
|
12
48
|
resourceBundle.localizedString(forKey: key, value: english, table: nil)
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "Laai tans";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "Laai tans";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "Duimnael";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "Maak {accessibleName} oop";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "Verwyder {accessibleName}";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}، {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "جارٍ التحميل";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "جارٍ التحميل";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "صورة مصغّرة";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "فتح {accessibleName}";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "إزالة {accessibleName}";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "S’està carregant";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "S’està carregant";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "Miniatura";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "Obre {accessibleName}";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "Elimina {accessibleName}";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "Načítání";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "Načítání";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "Náhled";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "Otevřít {accessibleName}";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "Odebrat {accessibleName}";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "Indlæser";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "Indlæser";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "Miniature";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "Åbn {accessibleName}";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "Fjern {accessibleName}";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "Wird geladen";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "Wird geladen";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "Miniaturansicht";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "{accessibleName} öffnen";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "{accessibleName} entfernen";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "Φόρτωση";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "Φόρτωση";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "Μικρογραφία";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "Άνοιγμα {accessibleName}";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "Αφαίρεση {accessibleName}";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "Loading";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label; also announced once when a busy input or selector starts loading, in place of its decorative Spinner. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "Loading";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "Thumbnail";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "Open {accessibleName}";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "Remove {accessibleName}";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "Cargando";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "Cargando";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "Miniatura";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "Abrir {accessibleName}";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "Quitar {accessibleName}";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "Ladataan";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "Ladataan";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "Pikkukuva";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "Avaa {accessibleName}";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "Poista {accessibleName}";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "Chargement";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "Chargement";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "Miniature";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "Ouvrir {accessibleName}";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "Supprimer {accessibleName}";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "טוען";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "טוען";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "תמונה ממוזערת";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "פתח את {accessibleName}";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "הסר את {accessibleName}";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "Betöltés";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "Betöltés";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "Bélyegkép";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "{accessibleName} megnyitása";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "{accessibleName} eltávolítása";
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
/* Generated by @astryxdesign/native from core's locale catalogs. Do not edit. */
|
|
2
2
|
|
|
3
|
+
/* Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale. */
|
|
4
|
+
"@astryx.avatar.nameWithStatus" = "{name}, {status}";
|
|
5
|
+
|
|
3
6
|
/* Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge. */
|
|
4
7
|
"@astryx.button.loading" = "Caricamento";
|
|
8
|
+
|
|
9
|
+
/* Screen-reader-only default name for a standalone Spinner's role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge. */
|
|
10
|
+
"@astryx.spinner.loading" = "Caricamento";
|
|
11
|
+
|
|
12
|
+
/* Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`. */
|
|
13
|
+
"@astryx.thumbnail.fallbackName" = "Miniatura";
|
|
14
|
+
|
|
15
|
+
/* "Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`. */
|
|
16
|
+
"@astryx.thumbnail.open" = "Apri {accessibleName}";
|
|
17
|
+
|
|
18
|
+
/* Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail's name — example: `Remove profile.jpg`. */
|
|
19
|
+
"@astryx.thumbnail.remove" = "Rimuovi {accessibleName}";
|