ksk-design-system 1.51.0 → 1.51.2
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/AGENTS.md +4 -24
- package/CLAUDE.md +4 -24
- package/contracts/components.json +1 -1
- package/contracts/token-hex-cache.json +1 -1
- package/dist/native/ui.js +247 -240
- package/dist/types/native/components/Chip.d.ts +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -185,30 +185,10 @@ Brand色を差し替え(10行)→ Primitive Layer → Semantic Layer → Bri
|
|
|
185
185
|
|
|
186
186
|
## AIモデルの使い分け方針
|
|
187
187
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
| モデル | 用途 |
|
|
193
|
-
|--------|------|
|
|
194
|
-
| `claude-fable-5` | 最難関の設計・長時間エージェント作業のみ(高コストのため温存) |
|
|
195
|
-
| `claude-opus-4-8` | 通常のUI実装・レビュー・リファクタの既定 |
|
|
196
|
-
|
|
197
|
-
**検証ループ:** 実装 = Fable 5 / 検証 = Opus 4.8
|
|
198
|
-
|
|
199
|
-
**Fable 5 使用時の注意:**
|
|
200
|
-
- thinking は常時オン(パラメータ省略でデフォルトに任せる)
|
|
201
|
-
- refusal 時は `fallbacks` で Opus 4.8 に自動フォールバック
|
|
202
|
-
- 30日データ保持が必須
|
|
203
|
-
|
|
204
|
-
### Fable 5 が使えないとき(アクセス終了・休止期間)
|
|
205
|
-
|
|
206
|
-
| モデル | 用途 |
|
|
207
|
-
|--------|------|
|
|
208
|
-
| `claude-opus-4-8` | 設計・UI実装・レビュー・リファクタの既定 |
|
|
209
|
-
| `claude-sonnet-5` | 機械的な一括修正・定型作業(トークン節約) |
|
|
210
|
-
|
|
211
|
-
**検証ループ:** 実装 = Opus 4.8 / 検証 = Sonnet 5
|
|
188
|
+
正本は `~/.claude/playbooks/agent-contracts.md`(モデル割当・委譲・報告・自己改善の契約)。
|
|
189
|
+
サブエージェントを起動する前に読む。要点: 親(Fable 5)は監督専任 / 委譲時の `model:` は
|
|
190
|
+
省略禁止(実装=sonnet 既定・設計判断を含む実装=opus・検証=実装と別モデル・下書き=haiku)/
|
|
191
|
+
同一モデルで実装と検証を兼ねない。
|
|
212
192
|
|
|
213
193
|
---
|
|
214
194
|
|
package/CLAUDE.md
CHANGED
|
@@ -185,30 +185,10 @@ Brand色を差し替え(10行)→ Primitive Layer → Semantic Layer → Bri
|
|
|
185
185
|
|
|
186
186
|
## AIモデルの使い分け方針
|
|
187
187
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
| モデル | 用途 |
|
|
193
|
-
|--------|------|
|
|
194
|
-
| `claude-fable-5` | 最難関の設計・長時間エージェント作業のみ(高コストのため温存) |
|
|
195
|
-
| `claude-opus-4-8` | 通常のUI実装・レビュー・リファクタの既定 |
|
|
196
|
-
|
|
197
|
-
**検証ループ:** 実装 = Fable 5 / 検証 = Opus 4.8
|
|
198
|
-
|
|
199
|
-
**Fable 5 使用時の注意:**
|
|
200
|
-
- thinking は常時オン(パラメータ省略でデフォルトに任せる)
|
|
201
|
-
- refusal 時は `fallbacks` で Opus 4.8 に自動フォールバック
|
|
202
|
-
- 30日データ保持が必須
|
|
203
|
-
|
|
204
|
-
### Fable 5 が使えないとき(アクセス終了・休止期間)
|
|
205
|
-
|
|
206
|
-
| モデル | 用途 |
|
|
207
|
-
|--------|------|
|
|
208
|
-
| `claude-opus-4-8` | 設計・UI実装・レビュー・リファクタの既定 |
|
|
209
|
-
| `claude-sonnet-5` | 機械的な一括修正・定型作業(トークン節約) |
|
|
210
|
-
|
|
211
|
-
**検証ループ:** 実装 = Opus 4.8 / 検証 = Sonnet 5
|
|
188
|
+
正本は `~/.claude/playbooks/agent-contracts.md`(モデル割当・委譲・報告・自己改善の契約)。
|
|
189
|
+
サブエージェントを起動する前に読む。要点: 親(Fable 5)は監督専任 / 委譲時の `model:` は
|
|
190
|
+
省略禁止(実装=sonnet 既定・設計判断を含む実装=opus・検証=実装と別モデル・下書き=haiku)/
|
|
191
|
+
同一モデルで実装と検証を兼ねない。
|
|
212
192
|
|
|
213
193
|
---
|
|
214
194
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"name": "KSK Design System — Semantic Token Hex Cache",
|
|
4
|
-
"version": "1.51.
|
|
4
|
+
"version": "1.51.2",
|
|
5
5
|
"description": "semantic / semanticDark トークン(var(--Primitive-*) 参照)を実 hex に解決したサイドカー生成物。hex はデフォルト(Blue)テーマでの解決値であり、Brand 系(meta.themeDependentKeys に列挙)はテーマ差し替え(orange/green/violet 等)で実色が変わる。テーマ別の完全解決値は `ksk-design-system/native` エクスポート(バンドル済み native トークンモジュール)の themes を参照。tokens.json 本体のスキーマは変更せず、AI がこのファイルだけで実色を把握できるようにし、primitive 値の変更による semantic 実色のドリフトを --check で機械検出する。",
|
|
6
6
|
"generatedBy": "scripts/generate-token-hex-cache.mjs",
|
|
7
7
|
"theme": "default",
|
package/dist/native/ui.js
CHANGED
|
@@ -701,24 +701,24 @@ var Ve = {
|
|
|
701
701
|
md: 12,
|
|
702
702
|
lg: 16
|
|
703
703
|
};
|
|
704
|
-
function Ue({ variant: e = "filled", size: t = "md", shape: n = "pill", selected: r = !1, disabled: i = !1, count: a, removable: o = !1, onRemove: s, children: c,
|
|
705
|
-
let { theme:
|
|
704
|
+
function Ue({ variant: e = "filled", size: t = "md", shape: n = "pill", selected: r = !1, disabled: i = !1, count: a, removable: o = !1, onRemove: s, children: c, accessibilityRole: l, accessibilityState: u, ...d }) {
|
|
705
|
+
let { theme: f, scales: p } = K(), m = {
|
|
706
706
|
filled: {
|
|
707
|
-
bg:
|
|
708
|
-
fg:
|
|
707
|
+
bg: f.surface.secondary,
|
|
708
|
+
fg: f.text["high-emphasis"],
|
|
709
709
|
border: "transparent"
|
|
710
710
|
},
|
|
711
711
|
accent: {
|
|
712
|
-
bg:
|
|
713
|
-
fg:
|
|
712
|
+
bg: f.surface["accent-primary-light"],
|
|
713
|
+
fg: f.text["accent-primary"],
|
|
714
714
|
border: "transparent"
|
|
715
715
|
},
|
|
716
716
|
outline: {
|
|
717
717
|
bg: "transparent",
|
|
718
|
-
fg:
|
|
719
|
-
border:
|
|
718
|
+
fg: f.text["high-emphasis"],
|
|
719
|
+
border: f.border["medium-emphasis"]
|
|
720
720
|
}
|
|
721
|
-
}[e],
|
|
721
|
+
}[e], h = typeof c == "string" || typeof c == "number" ? `削除: ${c}` : "削除", g = r ? f.brand.primary : m.bg, _ = r ? f.text["on-inverse"] : i ? f.text.disable : m.fg, v = r ? f.brand.primary : m.border;
|
|
722
722
|
return /* @__PURE__ */ D(W, {
|
|
723
723
|
style: {
|
|
724
724
|
flexDirection: "row",
|
|
@@ -726,59 +726,68 @@ function Ue({ variant: e = "filled", size: t = "md", shape: n = "pill", selected
|
|
|
726
726
|
},
|
|
727
727
|
children: [/* @__PURE__ */ D(z, {
|
|
728
728
|
disabled: i,
|
|
729
|
+
accessibilityRole: l ?? "button",
|
|
730
|
+
accessibilityState: {
|
|
731
|
+
selected: r,
|
|
732
|
+
disabled: i,
|
|
733
|
+
...u
|
|
734
|
+
},
|
|
729
735
|
style: ({ pressed: a }) => [{
|
|
730
736
|
height: Ve[t],
|
|
731
737
|
paddingHorizontal: He[t],
|
|
732
738
|
flexDirection: "row",
|
|
733
739
|
alignItems: "center",
|
|
734
740
|
justifyContent: "center",
|
|
735
|
-
gap:
|
|
736
|
-
borderRadius: n === "pill" ?
|
|
741
|
+
gap: p.spacing.scale[1],
|
|
742
|
+
borderRadius: n === "pill" ? p.borderRadius.full : p.borderRadius.sm,
|
|
737
743
|
borderWidth: e === "outline" || r ? 1 : 0,
|
|
738
|
-
borderColor:
|
|
739
|
-
backgroundColor: a && !i ?
|
|
744
|
+
borderColor: v,
|
|
745
|
+
backgroundColor: a && !i ? f.active["secondary-button"] : g,
|
|
740
746
|
opacity: i ? .6 : 1
|
|
741
747
|
}, o && {
|
|
742
748
|
borderTopRightRadius: 0,
|
|
743
749
|
borderBottomRightRadius: 0
|
|
744
750
|
}],
|
|
745
|
-
...
|
|
751
|
+
...d,
|
|
746
752
|
children: [/* @__PURE__ */ E(H, {
|
|
747
|
-
style: [q("label.sm"), { color:
|
|
753
|
+
style: [q("label.sm"), { color: _ }],
|
|
748
754
|
children: c
|
|
749
755
|
}), a !== void 0 && /* @__PURE__ */ E(W, {
|
|
750
756
|
style: {
|
|
751
757
|
minWidth: 20,
|
|
752
758
|
paddingHorizontal: 6,
|
|
753
|
-
borderRadius:
|
|
754
|
-
backgroundColor: r ?
|
|
759
|
+
borderRadius: p.borderRadius.full,
|
|
760
|
+
backgroundColor: r ? f.surface.primary : f.surface.tertiary,
|
|
755
761
|
alignItems: "center",
|
|
756
762
|
justifyContent: "center"
|
|
757
763
|
},
|
|
758
764
|
children: /* @__PURE__ */ E(H, {
|
|
759
|
-
style: [q("label.xs"), { color: r ?
|
|
765
|
+
style: [q("label.xs"), { color: r ? f.text["accent-primary"] : f.text["medium-emphasis"] }],
|
|
760
766
|
children: a
|
|
761
767
|
})
|
|
762
768
|
})]
|
|
763
769
|
}), o && /* @__PURE__ */ E(z, {
|
|
764
770
|
onPress: s,
|
|
765
771
|
disabled: i,
|
|
772
|
+
accessibilityRole: "button",
|
|
773
|
+
accessibilityLabel: h,
|
|
774
|
+
accessibilityState: { disabled: i },
|
|
766
775
|
style: ({ pressed: a }) => ({
|
|
767
776
|
height: Ve[t],
|
|
768
777
|
paddingHorizontal: 10,
|
|
769
778
|
alignItems: "center",
|
|
770
779
|
justifyContent: "center",
|
|
771
|
-
backgroundColor: a ?
|
|
772
|
-
borderTopRightRadius: n === "pill" ?
|
|
773
|
-
borderBottomRightRadius: n === "pill" ?
|
|
780
|
+
backgroundColor: a ? f.active["tertiary-button"] : g,
|
|
781
|
+
borderTopRightRadius: n === "pill" ? p.borderRadius.full : p.borderRadius.sm,
|
|
782
|
+
borderBottomRightRadius: n === "pill" ? p.borderRadius.full : p.borderRadius.sm,
|
|
774
783
|
borderWidth: e === "outline" || r ? 1 : 0,
|
|
775
784
|
borderLeftWidth: 0,
|
|
776
|
-
borderColor:
|
|
785
|
+
borderColor: v,
|
|
777
786
|
opacity: i ? .6 : 1
|
|
778
787
|
}),
|
|
779
788
|
children: /* @__PURE__ */ E(H, {
|
|
780
789
|
style: [q("label.md"), {
|
|
781
|
-
color:
|
|
790
|
+
color: _,
|
|
782
791
|
lineHeight: 14
|
|
783
792
|
}],
|
|
784
793
|
children: "×"
|
|
@@ -4233,8 +4242,95 @@ function rr({ value: e, children: t }) {
|
|
|
4233
4242
|
return $n().value === e ? /* @__PURE__ */ E(W, { children: t }) : null;
|
|
4234
4243
|
}
|
|
4235
4244
|
//#endregion
|
|
4245
|
+
//#region src/native/icon-button-metrics.ts
|
|
4246
|
+
var ir = {
|
|
4247
|
+
sm: {
|
|
4248
|
+
box: 36,
|
|
4249
|
+
icon: 18
|
|
4250
|
+
},
|
|
4251
|
+
md: {
|
|
4252
|
+
box: 44,
|
|
4253
|
+
icon: 20
|
|
4254
|
+
},
|
|
4255
|
+
lg: {
|
|
4256
|
+
box: 48,
|
|
4257
|
+
icon: 24
|
|
4258
|
+
}
|
|
4259
|
+
};
|
|
4260
|
+
function ar(e, t) {
|
|
4261
|
+
let { box: n, icon: r } = ir[e];
|
|
4262
|
+
return {
|
|
4263
|
+
box: n,
|
|
4264
|
+
icon: r,
|
|
4265
|
+
hitSlop: Math.max(0, Math.ceil((t - n) / 2))
|
|
4266
|
+
};
|
|
4267
|
+
}
|
|
4268
|
+
//#endregion
|
|
4269
|
+
//#region src/native/components/IconButton.tsx
|
|
4270
|
+
function or({ accessibilityLabel: e, icon: t, variant: n = "ghost", tone: r = "neutral", size: i = "md", shape: a = "circle", loading: o = !1, containerStyle: s, pressedContainerStyle: c, disabled: l, accessibilityRole: u, accessibilityState: d, hitSlop: f, ...p }) {
|
|
4271
|
+
let { theme: m, scales: h } = K(), g = l || o, { box: _, icon: v, hitSlop: y } = ar(i, h.touchTargets.iconButton.min), b = r === "accent" ? m.text["accent-primary"] : r === "caution" ? m.text.caution : m.text["medium-emphasis"], x = n === "primary" ? {
|
|
4272
|
+
backgroundColor: m.brand.primary,
|
|
4273
|
+
pressedBackgroundColor: m.active["primary-button"],
|
|
4274
|
+
borderColor: m.brand.primary,
|
|
4275
|
+
borderWidth: 1,
|
|
4276
|
+
foreground: m.text["on-inverse"]
|
|
4277
|
+
} : n === "tertiary" ? {
|
|
4278
|
+
backgroundColor: m.surface.secondary,
|
|
4279
|
+
pressedBackgroundColor: m.active["tertiary-button"],
|
|
4280
|
+
borderColor: "transparent",
|
|
4281
|
+
borderWidth: 0,
|
|
4282
|
+
foreground: b
|
|
4283
|
+
} : n === "outline" ? {
|
|
4284
|
+
backgroundColor: m.surface.primary,
|
|
4285
|
+
pressedBackgroundColor: m.surface.secondary,
|
|
4286
|
+
borderColor: r === "accent" ? m.border["accent-primary"] : r === "caution" ? m.border.caution : m.border["low-emphasis"],
|
|
4287
|
+
borderWidth: 1,
|
|
4288
|
+
foreground: b
|
|
4289
|
+
} : {
|
|
4290
|
+
backgroundColor: "transparent",
|
|
4291
|
+
pressedBackgroundColor: m.surface.secondary,
|
|
4292
|
+
borderColor: "transparent",
|
|
4293
|
+
borderWidth: 0,
|
|
4294
|
+
foreground: b
|
|
4295
|
+
};
|
|
4296
|
+
return /* @__PURE__ */ E(z, {
|
|
4297
|
+
disabled: g,
|
|
4298
|
+
accessibilityRole: u ?? "button",
|
|
4299
|
+
accessibilityLabel: e,
|
|
4300
|
+
accessibilityState: {
|
|
4301
|
+
disabled: !!g,
|
|
4302
|
+
busy: o || void 0,
|
|
4303
|
+
...d
|
|
4304
|
+
},
|
|
4305
|
+
hitSlop: f ?? y,
|
|
4306
|
+
style: ({ pressed: e }) => [
|
|
4307
|
+
{
|
|
4308
|
+
width: _,
|
|
4309
|
+
height: _,
|
|
4310
|
+
alignItems: "center",
|
|
4311
|
+
justifyContent: "center",
|
|
4312
|
+
borderRadius: a === "circle" ? _ / 2 : h.borderRadius.lg,
|
|
4313
|
+
borderWidth: x.borderWidth,
|
|
4314
|
+
borderColor: x.borderColor,
|
|
4315
|
+
backgroundColor: e && !g ? x.pressedBackgroundColor : x.backgroundColor,
|
|
4316
|
+
opacity: g ? .56 : 1
|
|
4317
|
+
},
|
|
4318
|
+
s,
|
|
4319
|
+
e && !g && c
|
|
4320
|
+
],
|
|
4321
|
+
...p,
|
|
4322
|
+
children: o ? /* @__PURE__ */ E(k, {
|
|
4323
|
+
size: "small",
|
|
4324
|
+
color: x.foreground
|
|
4325
|
+
}) : typeof t == "function" ? t({
|
|
4326
|
+
color: x.foreground,
|
|
4327
|
+
size: v
|
|
4328
|
+
}) : t
|
|
4329
|
+
});
|
|
4330
|
+
}
|
|
4331
|
+
//#endregion
|
|
4236
4332
|
//#region src/native/calendar-cells.ts
|
|
4237
|
-
var
|
|
4333
|
+
var sr = [
|
|
4238
4334
|
"日",
|
|
4239
4335
|
"月",
|
|
4240
4336
|
"火",
|
|
@@ -4242,7 +4338,7 @@ var ir = [
|
|
|
4242
4338
|
"木",
|
|
4243
4339
|
"金",
|
|
4244
4340
|
"土"
|
|
4245
|
-
],
|
|
4341
|
+
], cr = [
|
|
4246
4342
|
"S",
|
|
4247
4343
|
"M",
|
|
4248
4344
|
"T",
|
|
@@ -4250,7 +4346,7 @@ var ir = [
|
|
|
4250
4346
|
"T",
|
|
4251
4347
|
"F",
|
|
4252
4348
|
"S"
|
|
4253
|
-
],
|
|
4349
|
+
], lr = [
|
|
4254
4350
|
"日曜日",
|
|
4255
4351
|
"月曜日",
|
|
4256
4352
|
"火曜日",
|
|
@@ -4258,7 +4354,7 @@ var ir = [
|
|
|
4258
4354
|
"木曜日",
|
|
4259
4355
|
"金曜日",
|
|
4260
4356
|
"土曜日"
|
|
4261
|
-
],
|
|
4357
|
+
], ur = [
|
|
4262
4358
|
"1月",
|
|
4263
4359
|
"2月",
|
|
4264
4360
|
"3月",
|
|
@@ -4272,58 +4368,58 @@ var ir = [
|
|
|
4272
4368
|
"11月",
|
|
4273
4369
|
"12月"
|
|
4274
4370
|
];
|
|
4275
|
-
function
|
|
4371
|
+
function dr(e) {
|
|
4276
4372
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
4277
4373
|
}
|
|
4278
|
-
function
|
|
4374
|
+
function fr(e) {
|
|
4279
4375
|
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
4280
4376
|
}
|
|
4281
|
-
function
|
|
4377
|
+
function pr(e) {
|
|
4282
4378
|
return new Date(e.getFullYear(), e.getMonth() + 1, 0);
|
|
4283
4379
|
}
|
|
4284
|
-
function
|
|
4380
|
+
function mr(e, t) {
|
|
4285
4381
|
return new Date(e.getFullYear(), e.getMonth() + t, 1);
|
|
4286
4382
|
}
|
|
4287
|
-
function
|
|
4288
|
-
return
|
|
4383
|
+
function hr(e) {
|
|
4384
|
+
return pr(e).getDate();
|
|
4289
4385
|
}
|
|
4290
|
-
function
|
|
4386
|
+
function gr(e, t) {
|
|
4291
4387
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
4292
4388
|
}
|
|
4293
|
-
function
|
|
4294
|
-
let t =
|
|
4389
|
+
function _r(e) {
|
|
4390
|
+
let t = fr(e).getDay(), n = hr(e), r = [];
|
|
4295
4391
|
for (let e = 0; e < t; e += 1) r.push(null);
|
|
4296
4392
|
for (let t = 1; t <= n; t += 1) r.push(new Date(e.getFullYear(), e.getMonth(), t));
|
|
4297
4393
|
for (; r.length % 7 != 0;) r.push(null);
|
|
4298
4394
|
return r;
|
|
4299
4395
|
}
|
|
4300
|
-
function
|
|
4396
|
+
function vr(e) {
|
|
4301
4397
|
return e === 0 ? "sunday" : e === 6 ? "saturday" : "weekday";
|
|
4302
4398
|
}
|
|
4303
|
-
function
|
|
4304
|
-
let { minDate: n, maxDate: r, disablePast: i, today: a = /* @__PURE__ */ new Date() } = t, o =
|
|
4305
|
-
return !!(n && o <
|
|
4399
|
+
function yr(e, t = {}) {
|
|
4400
|
+
let { minDate: n, maxDate: r, disablePast: i, today: a = /* @__PURE__ */ new Date() } = t, o = dr(e);
|
|
4401
|
+
return !!(n && o < dr(n) || r && o > dr(r) || i && o < dr(a));
|
|
4306
4402
|
}
|
|
4307
|
-
function
|
|
4308
|
-
let { minDate: r, maxDate: i, disablePast: a, today: o = /* @__PURE__ */ new Date() } = n, s =
|
|
4309
|
-
r && c.push(
|
|
4403
|
+
function br(e, t, n = {}) {
|
|
4404
|
+
let { minDate: r, maxDate: i, disablePast: a, today: o = /* @__PURE__ */ new Date() } = n, s = mr(e, t), c = [];
|
|
4405
|
+
r && c.push(dr(r)), a && c.push(dr(o));
|
|
4310
4406
|
let l = c.length ? new Date(Math.max(...c.map((e) => e.getTime()))) : void 0;
|
|
4311
|
-
return !(l &&
|
|
4407
|
+
return !(l && dr(pr(s)) < l || i && fr(s) > dr(i));
|
|
4312
4408
|
}
|
|
4313
|
-
function
|
|
4409
|
+
function xr(e, t = "ja") {
|
|
4314
4410
|
let { date: n, weekday: r, today: i, selected: a } = e;
|
|
4315
4411
|
if (t !== "ja") return [
|
|
4316
4412
|
`${n.getFullYear()}-${String(n.getMonth() + 1).padStart(2, "0")}-${String(n.getDate()).padStart(2, "0")}`,
|
|
4317
4413
|
i ? "today" : null,
|
|
4318
4414
|
a ? "selected" : null
|
|
4319
4415
|
].filter(Boolean).join(", ");
|
|
4320
|
-
let o = `${n.getFullYear()}年${n.getMonth() + 1}月${n.getDate()}日 ${
|
|
4416
|
+
let o = `${n.getFullYear()}年${n.getMonth() + 1}月${n.getDate()}日 ${lr[r]}`, s = [i ? "今日" : null, a ? "選択中" : null].filter(Boolean).join(" ");
|
|
4321
4417
|
return s ? `${o} ${s}` : o;
|
|
4322
4418
|
}
|
|
4323
|
-
function
|
|
4324
|
-
return t === "ja" ? `${e.getFullYear()}年 ${
|
|
4419
|
+
function Sr(e, t = "ja") {
|
|
4420
|
+
return t === "ja" ? `${e.getFullYear()}年 ${ur[e.getMonth()]}` : `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}`;
|
|
4325
4421
|
}
|
|
4326
|
-
function
|
|
4422
|
+
function Cr(e, t, n = {}, r = !1) {
|
|
4327
4423
|
let i = n.today ?? t.today;
|
|
4328
4424
|
return e.selected ? {
|
|
4329
4425
|
background: n.selected ?? t.selected,
|
|
@@ -4331,24 +4427,24 @@ function br(e, t, n = {}, r = !1) {
|
|
|
4331
4427
|
accent: i
|
|
4332
4428
|
} : {
|
|
4333
4429
|
background: "transparent",
|
|
4334
|
-
text:
|
|
4430
|
+
text: wr(e.tone, t, n, r),
|
|
4335
4431
|
accent: i
|
|
4336
4432
|
};
|
|
4337
4433
|
}
|
|
4338
|
-
function
|
|
4434
|
+
function wr(e, t, n = {}, r = !1, i) {
|
|
4339
4435
|
let a = i ?? "";
|
|
4340
4436
|
return r ? e === "sunday" ? n.sunday ?? t.sunday : e === "saturday" ? n.saturday ?? t.saturday : a : a;
|
|
4341
4437
|
}
|
|
4342
4438
|
//#endregion
|
|
4343
4439
|
//#region src/native/components/Calendar.tsx
|
|
4344
|
-
function
|
|
4345
|
-
let { theme: v, scales: y } = K(), b = c ?? /* @__PURE__ */ new Date(), [x, C] = w(() =>
|
|
4440
|
+
function Tr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", weekendTone: a = !1, todayEmphasis: o = "ring", disablePast: s = !1, today: c, defaultMonth: l, onMonthChange: u, colors: d, dayStyle: f, renderDay: p, dayAccessibilityLabel: m, previousMonthLabel: h, nextMonthLabel: g, style: _ }) {
|
|
4441
|
+
let { theme: v, scales: y } = K(), b = c ?? /* @__PURE__ */ new Date(), [x, C] = w(() => fr(l ?? e ?? b)), O = i === "ja" ? sr : cr, k = {
|
|
4346
4442
|
minDate: n,
|
|
4347
4443
|
maxDate: r,
|
|
4348
4444
|
disablePast: s,
|
|
4349
4445
|
today: b
|
|
4350
|
-
}, A = S(() =>
|
|
4351
|
-
let t =
|
|
4446
|
+
}, A = S(() => _r(x), [x]), j = Sr(x, i), M = br(x, -1, k), N = br(x, 1, k), P = (e) => {
|
|
4447
|
+
let t = mr(x, e);
|
|
4352
4448
|
C(t), u?.(t);
|
|
4353
4449
|
}, F = {
|
|
4354
4450
|
selected: v.brand.primary,
|
|
@@ -4357,7 +4453,7 @@ function Sr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4357
4453
|
sunday: v.text.caution,
|
|
4358
4454
|
saturday: v.text["accent-primary"],
|
|
4359
4455
|
weekdayText: v.text["high-emphasis"]
|
|
4360
|
-
}, I = (e, t) =>
|
|
4456
|
+
}, I = (e, t) => wr(e, F, d, a, t);
|
|
4361
4457
|
return /* @__PURE__ */ D(W, {
|
|
4362
4458
|
style: [{
|
|
4363
4459
|
backgroundColor: v.surface.primary,
|
|
@@ -4375,15 +4471,14 @@ function Sr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4375
4471
|
alignItems: "center"
|
|
4376
4472
|
},
|
|
4377
4473
|
children: [
|
|
4378
|
-
/* @__PURE__ */ E(
|
|
4474
|
+
/* @__PURE__ */ E(or, {
|
|
4475
|
+
accessibilityLabel: h ?? (i === "ja" ? "前の月" : "Previous month"),
|
|
4379
4476
|
onPress: () => P(-1),
|
|
4380
4477
|
disabled: !M,
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
children: /* @__PURE__ */ E(H, {
|
|
4386
|
-
style: [q("label.lg"), { color: M ? v.text["medium-emphasis"] : v.text["low-emphasis"] }],
|
|
4478
|
+
variant: "tertiary",
|
|
4479
|
+
size: "sm",
|
|
4480
|
+
icon: ({ color: e }) => /* @__PURE__ */ E(H, {
|
|
4481
|
+
style: [q("label.lg"), { color: e }],
|
|
4387
4482
|
children: "‹"
|
|
4388
4483
|
})
|
|
4389
4484
|
}),
|
|
@@ -4391,15 +4486,14 @@ function Sr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4391
4486
|
style: [q("label.md"), { color: v.text["high-emphasis"] }],
|
|
4392
4487
|
children: j
|
|
4393
4488
|
}),
|
|
4394
|
-
/* @__PURE__ */ E(
|
|
4489
|
+
/* @__PURE__ */ E(or, {
|
|
4490
|
+
accessibilityLabel: g ?? (i === "ja" ? "次の月" : "Next month"),
|
|
4395
4491
|
onPress: () => P(1),
|
|
4396
4492
|
disabled: !N,
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
children: /* @__PURE__ */ E(H, {
|
|
4402
|
-
style: [q("label.lg"), { color: N ? v.text["medium-emphasis"] : v.text["low-emphasis"] }],
|
|
4493
|
+
variant: "tertiary",
|
|
4494
|
+
size: "sm",
|
|
4495
|
+
icon: ({ color: e }) => /* @__PURE__ */ E(H, {
|
|
4496
|
+
style: [q("label.lg"), { color: e }],
|
|
4403
4497
|
children: "›"
|
|
4404
4498
|
})
|
|
4405
4499
|
})
|
|
@@ -4413,7 +4507,7 @@ function Sr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4413
4507
|
alignItems: "center"
|
|
4414
4508
|
},
|
|
4415
4509
|
children: /* @__PURE__ */ E(H, {
|
|
4416
|
-
style: [q("label.xs"), { color: I(
|
|
4510
|
+
style: [q("label.xs"), { color: I(vr(t), v.text["low-emphasis"]) }],
|
|
4417
4511
|
children: e
|
|
4418
4512
|
})
|
|
4419
4513
|
}, t))
|
|
@@ -4431,11 +4525,11 @@ function Sr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4431
4525
|
let s = n.getDay(), c = {
|
|
4432
4526
|
date: n,
|
|
4433
4527
|
weekday: s,
|
|
4434
|
-
selected: !!(e &&
|
|
4435
|
-
today:
|
|
4436
|
-
disabled:
|
|
4437
|
-
tone:
|
|
4438
|
-
}, l = c.today && !c.selected && o === "ring", u = c.today && !c.selected && o === "dot", h =
|
|
4528
|
+
selected: !!(e && gr(n, e)),
|
|
4529
|
+
today: gr(n, b),
|
|
4530
|
+
disabled: yr(n, k),
|
|
4531
|
+
tone: vr(s)
|
|
4532
|
+
}, l = c.today && !c.selected && o === "ring", u = c.today && !c.selected && o === "dot", h = Cr(c, F, d, a);
|
|
4439
4533
|
return /* @__PURE__ */ E(W, {
|
|
4440
4534
|
style: {
|
|
4441
4535
|
width: `${100 / 7}%`,
|
|
@@ -4446,7 +4540,7 @@ function Sr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4446
4540
|
onPress: () => !c.disabled && t?.(n),
|
|
4447
4541
|
disabled: c.disabled,
|
|
4448
4542
|
accessibilityRole: "button",
|
|
4449
|
-
accessibilityLabel: m?.(c) ??
|
|
4543
|
+
accessibilityLabel: m?.(c) ?? xr(c, i),
|
|
4450
4544
|
accessibilityState: {
|
|
4451
4545
|
disabled: c.disabled,
|
|
4452
4546
|
selected: c.selected
|
|
@@ -4483,10 +4577,10 @@ function Sr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4483
4577
|
}
|
|
4484
4578
|
//#endregion
|
|
4485
4579
|
//#region src/native/components/DatePicker.tsx
|
|
4486
|
-
function
|
|
4580
|
+
function Er(e) {
|
|
4487
4581
|
return `${e.getFullYear()}/${String(e.getMonth() + 1).padStart(2, "0")}/${String(e.getDate()).padStart(2, "0")}`;
|
|
4488
4582
|
}
|
|
4489
|
-
function
|
|
4583
|
+
function Dr({ value: e, onChange: t, placeholder: n = "日付を選択", minDate: r, maxDate: i, disabled: a = !1, formatter: o = Er }) {
|
|
4490
4584
|
let { theme: s, scales: c } = K(), [l, u] = w(!1), [d, f] = w(e);
|
|
4491
4585
|
return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D(z, {
|
|
4492
4586
|
onPress: () => {
|
|
@@ -4517,7 +4611,7 @@ function wr({ value: e, onChange: t, placeholder: n = "日付を選択", minDate
|
|
|
4517
4611
|
onClose: () => u(!1),
|
|
4518
4612
|
side: "bottom",
|
|
4519
4613
|
title: "日付を選択",
|
|
4520
|
-
children: [/* @__PURE__ */ E(
|
|
4614
|
+
children: [/* @__PURE__ */ E(Tr, {
|
|
4521
4615
|
value: d,
|
|
4522
4616
|
onChange: f,
|
|
4523
4617
|
minDate: r,
|
|
@@ -4551,20 +4645,20 @@ function wr({ value: e, onChange: t, placeholder: n = "日付を選択", minDate
|
|
|
4551
4645
|
}
|
|
4552
4646
|
//#endregion
|
|
4553
4647
|
//#region src/native/components/DateField.tsx
|
|
4554
|
-
function
|
|
4648
|
+
function Or(e) {
|
|
4555
4649
|
if (!e) return;
|
|
4556
4650
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
4557
4651
|
if (!t) return;
|
|
4558
4652
|
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]), a = new Date(n, r - 1, i);
|
|
4559
4653
|
if (!(a.getFullYear() !== n || a.getMonth() !== r - 1 || a.getDate() !== i)) return a;
|
|
4560
4654
|
}
|
|
4561
|
-
function
|
|
4655
|
+
function kr(e) {
|
|
4562
4656
|
return !e || isNaN(e.getTime()) ? "" : `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
4563
4657
|
}
|
|
4564
|
-
function
|
|
4565
|
-
return /* @__PURE__ */ E(
|
|
4566
|
-
value:
|
|
4567
|
-
onChange: (e) => t(
|
|
4658
|
+
function Ar({ value: e, onChange: t, placeholder: n, disabled: r, formatter: i }) {
|
|
4659
|
+
return /* @__PURE__ */ E(Dr, {
|
|
4660
|
+
value: Or(e),
|
|
4661
|
+
onChange: (e) => t(kr(e)),
|
|
4568
4662
|
placeholder: n,
|
|
4569
4663
|
disabled: r,
|
|
4570
4664
|
formatter: i
|
|
@@ -4572,10 +4666,10 @@ function Dr({ value: e, onChange: t, placeholder: n, disabled: r, formatter: i }
|
|
|
4572
4666
|
}
|
|
4573
4667
|
//#endregion
|
|
4574
4668
|
//#region src/native/components/TimePicker.tsx
|
|
4575
|
-
function
|
|
4669
|
+
function jr(e) {
|
|
4576
4670
|
return e.toString().padStart(2, "0");
|
|
4577
4671
|
}
|
|
4578
|
-
function
|
|
4672
|
+
function Mr({ value: e, onChange: t, placeholder: n = "時刻を選択", minuteStep: r = 5, disabled: i = !1 }) {
|
|
4579
4673
|
let { theme: a, scales: o } = K(), [s, c] = w(!1), [l, u] = w(e?.hour ?? 9), [d, f] = w(e?.minute ?? 0), p = Array.from({ length: 24 }, (e, t) => t), m = Array.from({ length: 60 / r }, (e, t) => t * r);
|
|
4580
4674
|
return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D(z, {
|
|
4581
4675
|
onPress: () => {
|
|
@@ -4596,7 +4690,7 @@ function kr({ value: e, onChange: t, placeholder: n = "時刻を選択", minuteS
|
|
|
4596
4690
|
},
|
|
4597
4691
|
children: [/* @__PURE__ */ E(H, {
|
|
4598
4692
|
style: [q("body.md"), { color: e ? a.text["high-emphasis"] : a.text["low-emphasis"] }],
|
|
4599
|
-
children: e ? `${
|
|
4693
|
+
children: e ? `${jr(e.hour)}:${jr(e.minute)}` : n
|
|
4600
4694
|
}), /* @__PURE__ */ E(H, {
|
|
4601
4695
|
style: [q("label.sm"), { color: a.text["low-emphasis"] }],
|
|
4602
4696
|
children: "🕐"
|
|
@@ -4628,7 +4722,7 @@ function kr({ value: e, onChange: t, placeholder: n = "時刻を選択", minuteS
|
|
|
4628
4722
|
color: l === e ? a.text["accent-primary"] : a.text["high-emphasis"],
|
|
4629
4723
|
fontWeight: l === e ? "700" : "400"
|
|
4630
4724
|
}],
|
|
4631
|
-
children:
|
|
4725
|
+
children: jr(e)
|
|
4632
4726
|
})
|
|
4633
4727
|
}, e))
|
|
4634
4728
|
}), /* @__PURE__ */ E(B, {
|
|
@@ -4647,7 +4741,7 @@ function kr({ value: e, onChange: t, placeholder: n = "時刻を選択", minuteS
|
|
|
4647
4741
|
color: d === e ? a.text["accent-primary"] : a.text["high-emphasis"],
|
|
4648
4742
|
fontWeight: d === e ? "700" : "400"
|
|
4649
4743
|
}],
|
|
4650
|
-
children:
|
|
4744
|
+
children: jr(e)
|
|
4651
4745
|
})
|
|
4652
4746
|
}, e))
|
|
4653
4747
|
})]
|
|
@@ -4682,21 +4776,21 @@ function kr({ value: e, onChange: t, placeholder: n = "時刻を選択", minuteS
|
|
|
4682
4776
|
}
|
|
4683
4777
|
//#endregion
|
|
4684
4778
|
//#region src/native/components/DateTimePicker.tsx
|
|
4685
|
-
function
|
|
4779
|
+
function Nr(e, t, n) {
|
|
4686
4780
|
return t && e < t ? new Date(t) : n && e > n ? new Date(n) : e;
|
|
4687
4781
|
}
|
|
4688
|
-
function
|
|
4782
|
+
function Pr({ value: e, onChange: t, minuteStep: n = 5, minDate: r, maxDate: i, disabled: a = !1, style: o }) {
|
|
4689
4783
|
let { scales: s } = K(), c = e ? {
|
|
4690
4784
|
hour: e.getHours(),
|
|
4691
4785
|
minute: e.getMinutes()
|
|
4692
4786
|
} : void 0;
|
|
4693
4787
|
return /* @__PURE__ */ D(W, {
|
|
4694
4788
|
style: [{ gap: s.spacing.scale[2] }, o],
|
|
4695
|
-
children: [/* @__PURE__ */ E(
|
|
4789
|
+
children: [/* @__PURE__ */ E(Dr, {
|
|
4696
4790
|
value: e,
|
|
4697
4791
|
onChange: (n) => {
|
|
4698
4792
|
let a = new Date(n);
|
|
4699
|
-
a.setHours(e?.getHours() ?? 0, e?.getMinutes() ?? 0, e?.getSeconds() ?? 0, e?.getMilliseconds() ?? 0), t?.(
|
|
4793
|
+
a.setHours(e?.getHours() ?? 0, e?.getMinutes() ?? 0, e?.getSeconds() ?? 0, e?.getMilliseconds() ?? 0), t?.(Nr(a, r, i));
|
|
4700
4794
|
},
|
|
4701
4795
|
minDate: r,
|
|
4702
4796
|
maxDate: i,
|
|
@@ -4710,12 +4804,12 @@ function jr({ value: e, onChange: t, minuteStep: n = 5, minDate: r, maxDate: i,
|
|
|
4710
4804
|
"土"
|
|
4711
4805
|
][e.getDay()]})`,
|
|
4712
4806
|
disabled: a
|
|
4713
|
-
}), /* @__PURE__ */ E(
|
|
4807
|
+
}), /* @__PURE__ */ E(Mr, {
|
|
4714
4808
|
value: c,
|
|
4715
4809
|
onChange: (n) => {
|
|
4716
4810
|
if (!e) return;
|
|
4717
4811
|
let a = new Date(e);
|
|
4718
|
-
a.setHours(n.hour, n.minute, e.getSeconds(), e.getMilliseconds()), t?.(
|
|
4812
|
+
a.setHours(n.hour, n.minute, e.getSeconds(), e.getMilliseconds()), t?.(Nr(a, r, i));
|
|
4719
4813
|
},
|
|
4720
4814
|
minuteStep: n,
|
|
4721
4815
|
disabled: a || !e
|
|
@@ -4724,25 +4818,25 @@ function jr({ value: e, onChange: t, minuteStep: n = 5, minDate: r, maxDate: i,
|
|
|
4724
4818
|
}
|
|
4725
4819
|
//#endregion
|
|
4726
4820
|
//#region src/native/disclosure-state.ts
|
|
4727
|
-
function
|
|
4821
|
+
function Fr(e, t) {
|
|
4728
4822
|
return e === void 0 ? t : e;
|
|
4729
4823
|
}
|
|
4730
|
-
function
|
|
4824
|
+
function Ir(e) {
|
|
4731
4825
|
return e !== void 0;
|
|
4732
4826
|
}
|
|
4733
|
-
function
|
|
4827
|
+
function Lr(e, t, n) {
|
|
4734
4828
|
let r = e.includes(t);
|
|
4735
4829
|
return n === "single" ? r ? [] : [t] : r ? e.filter((e) => e !== t) : [...e, t];
|
|
4736
4830
|
}
|
|
4737
|
-
function
|
|
4831
|
+
function Rr(e, t) {
|
|
4738
4832
|
let n = [...new Set(e)];
|
|
4739
4833
|
return t === "single" ? n.slice(0, 1) : n;
|
|
4740
4834
|
}
|
|
4741
4835
|
//#endregion
|
|
4742
4836
|
//#region src/native/components/Accordion.tsx
|
|
4743
|
-
function
|
|
4744
|
-
let { theme: o, scales: s } = K(), [c, l] = w(() =>
|
|
4745
|
-
let n =
|
|
4837
|
+
function zr({ items: e, type: t = "single", defaultOpenKeys: n = [], openKeys: r, onOpenChange: i, style: a }) {
|
|
4838
|
+
let { theme: o, scales: s } = K(), [c, l] = w(() => Rr(n, t)), u = r !== void 0, d = u ? Rr(r, t) : c, f = v((e) => {
|
|
4839
|
+
let n = Lr(d, e, t);
|
|
4746
4840
|
u || l(n), i?.(n);
|
|
4747
4841
|
}, [
|
|
4748
4842
|
u,
|
|
@@ -4808,10 +4902,10 @@ function Ir({ items: e, type: t = "single", defaultOpenKeys: n = [], openKeys: r
|
|
|
4808
4902
|
}
|
|
4809
4903
|
//#endregion
|
|
4810
4904
|
//#region src/native/components/Collapsible.tsx
|
|
4811
|
-
function
|
|
4812
|
-
let { theme: d, scales: f } = K(), [p, m] = w(t), h =
|
|
4905
|
+
function Br({ title: e, defaultOpen: t = !1, open: n, onOpenChange: r, trailing: i, style: a, children: o, accessibilityRole: s, accessibilityLabel: c, accessibilityState: l, ...u }) {
|
|
4906
|
+
let { theme: d, scales: f } = K(), [p, m] = w(t), h = Fr(n, p), g = v(() => {
|
|
4813
4907
|
let e = !h;
|
|
4814
|
-
|
|
4908
|
+
Ir(n) || m(e), r?.(e);
|
|
4815
4909
|
}, [
|
|
4816
4910
|
n,
|
|
4817
4911
|
r,
|
|
@@ -4865,7 +4959,7 @@ function Lr({ title: e, defaultOpen: t = !1, open: n, onOpenChange: r, trailing:
|
|
|
4865
4959
|
}
|
|
4866
4960
|
//#endregion
|
|
4867
4961
|
//#region src/native/components/ScrollArea.tsx
|
|
4868
|
-
function
|
|
4962
|
+
function Vr({ maxHeight: e, bordered: t, children: n, ...r }) {
|
|
4869
4963
|
let { theme: i, scales: a } = K();
|
|
4870
4964
|
return /* @__PURE__ */ E(W, {
|
|
4871
4965
|
style: {
|
|
@@ -4883,15 +4977,15 @@ function Rr({ maxHeight: e, bordered: t, children: n, ...r }) {
|
|
|
4883
4977
|
}
|
|
4884
4978
|
//#endregion
|
|
4885
4979
|
//#region src/native/components/Pagination.tsx
|
|
4886
|
-
function
|
|
4980
|
+
function Hr(e, t) {
|
|
4887
4981
|
let n = [];
|
|
4888
4982
|
for (let r = e; r <= t; r++) n.push(r);
|
|
4889
4983
|
return n;
|
|
4890
4984
|
}
|
|
4891
|
-
function
|
|
4985
|
+
function Ur({ page: e, total: t, onChange: n, windowSize: r = 5 }) {
|
|
4892
4986
|
let { theme: i, scales: a } = K(), o = Math.floor(r / 2), s = Math.max(1, e - o), c = Math.min(t, s + r - 1);
|
|
4893
4987
|
c - s + 1 < r && (s = Math.max(1, c - r + 1));
|
|
4894
|
-
let l =
|
|
4988
|
+
let l = Hr(s, c), u = (e, t, r = !1, o = !1) => /* @__PURE__ */ E(z, {
|
|
4895
4989
|
onPress: () => t && !r && n?.(t),
|
|
4896
4990
|
disabled: r || !t,
|
|
4897
4991
|
style: ({ pressed: e }) => ({
|
|
@@ -4930,7 +5024,7 @@ function Br({ page: e, total: t, onChange: n, windowSize: r = 5 }) {
|
|
|
4930
5024
|
}
|
|
4931
5025
|
//#endregion
|
|
4932
5026
|
//#region src/native/components/SimplePagination.tsx
|
|
4933
|
-
function
|
|
5027
|
+
function Wr({ page: e, total: t, onChange: n }) {
|
|
4934
5028
|
let { theme: r, scales: i } = K(), a = (e, t, a) => /* @__PURE__ */ E(z, {
|
|
4935
5029
|
onPress: () => !a && n?.(t),
|
|
4936
5030
|
disabled: a,
|
|
@@ -4971,7 +5065,7 @@ function Vr({ page: e, total: t, onChange: n }) {
|
|
|
4971
5065
|
}
|
|
4972
5066
|
//#endregion
|
|
4973
5067
|
//#region src/native/components/NavigationBar.tsx
|
|
4974
|
-
function
|
|
5068
|
+
function Gr({ items: e, value: t, onChange: n }) {
|
|
4975
5069
|
let { theme: r, scales: i } = K();
|
|
4976
5070
|
return /* @__PURE__ */ E(W, {
|
|
4977
5071
|
style: {
|
|
@@ -5026,7 +5120,7 @@ function Hr({ items: e, value: t, onChange: n }) {
|
|
|
5026
5120
|
}
|
|
5027
5121
|
//#endregion
|
|
5028
5122
|
//#region src/native/components/SubNav.tsx
|
|
5029
|
-
function
|
|
5123
|
+
function Kr({ items: e, value: t, onChange: n }) {
|
|
5030
5124
|
let { theme: r, scales: i } = K();
|
|
5031
5125
|
return /* @__PURE__ */ E(B, {
|
|
5032
5126
|
horizontal: !0,
|
|
@@ -5077,7 +5171,7 @@ function Ur({ items: e, value: t, onChange: n }) {
|
|
|
5077
5171
|
}
|
|
5078
5172
|
//#endregion
|
|
5079
5173
|
//#region src/native/components/Breadcrumb.tsx
|
|
5080
|
-
function
|
|
5174
|
+
function qr({ title: e, onBack: t, backLabel: n = "戻る", rightSlot: r }) {
|
|
5081
5175
|
let { theme: i, scales: a } = K();
|
|
5082
5176
|
return /* @__PURE__ */ D(W, {
|
|
5083
5177
|
style: {
|
|
@@ -5129,7 +5223,7 @@ function Wr({ title: e, onBack: t, backLabel: n = "戻る", rightSlot: r }) {
|
|
|
5129
5223
|
}
|
|
5130
5224
|
//#endregion
|
|
5131
5225
|
//#region src/native/components/AppHeader.tsx
|
|
5132
|
-
function
|
|
5226
|
+
function Jr({ title: e, subtitle: t, leading: n, trailing: r, onBack: i, centered: a = !0 }) {
|
|
5133
5227
|
let { theme: o, scales: s } = K(), c = n ?? (i ? /* @__PURE__ */ E(z, {
|
|
5134
5228
|
onPress: i,
|
|
5135
5229
|
hitSlop: 8,
|
|
@@ -5190,7 +5284,7 @@ function Gr({ title: e, subtitle: t, leading: n, trailing: r, onBack: i, centere
|
|
|
5190
5284
|
}
|
|
5191
5285
|
//#endregion
|
|
5192
5286
|
//#region src/native/components/MobileAppHeader.tsx
|
|
5193
|
-
function
|
|
5287
|
+
function Yr({ brand: e, leading: t, status: n, compactStatus: r, actions: i, children: a, bordered: o = !0, style: s }) {
|
|
5194
5288
|
let { theme: c, scales: l } = K();
|
|
5195
5289
|
return /* @__PURE__ */ D(W, {
|
|
5196
5290
|
style: [{
|
|
@@ -5233,7 +5327,7 @@ function Kr({ brand: e, leading: t, status: n, compactStatus: r, actions: i, chi
|
|
|
5233
5327
|
}
|
|
5234
5328
|
//#endregion
|
|
5235
5329
|
//#region src/native/components/MobileAppShell.tsx
|
|
5236
|
-
function
|
|
5330
|
+
function Xr({ header: e, bottomNav: t, fab: n, desktopSidebar: r, scrollable: i = !0, bottomPadding: a = n ? "bottom-nav-fab" : t ? "bottom-nav" : "none", children: o, style: s, contentStyle: c }) {
|
|
5237
5331
|
let { theme: l, scales: u } = K(), d = a === "bottom-nav-fab" ? u.spacing.scale[15] : a === "bottom-nav" ? u.spacing.scale[12] : 0, f = [{
|
|
5238
5332
|
flex: 1,
|
|
5239
5333
|
backgroundColor: l.surface.secondary,
|
|
@@ -5265,13 +5359,13 @@ function qr({ header: e, bottomNav: t, fab: n, desktopSidebar: r, scrollable: i
|
|
|
5265
5359
|
}
|
|
5266
5360
|
//#endregion
|
|
5267
5361
|
//#region src/native/glass-accent-fill.ts
|
|
5268
|
-
var
|
|
5362
|
+
var Zr = .95, Qr = .88, $r = {
|
|
5269
5363
|
r: 20,
|
|
5270
5364
|
g: 20,
|
|
5271
5365
|
b: 30,
|
|
5272
5366
|
a: .6
|
|
5273
5367
|
};
|
|
5274
|
-
function
|
|
5368
|
+
function ei(e) {
|
|
5275
5369
|
let t = e.trim().replace(/^#/, "");
|
|
5276
5370
|
if (!/^[0-9a-fA-F]+$/.test(t)) return null;
|
|
5277
5371
|
let n = (e) => e.split("").map((e) => e + e).join(""), r;
|
|
@@ -5286,13 +5380,13 @@ function Zr(e) {
|
|
|
5286
5380
|
a: r.length === 8 ? i(6) / 255 : 1
|
|
5287
5381
|
};
|
|
5288
5382
|
}
|
|
5289
|
-
function
|
|
5383
|
+
function ti(e) {
|
|
5290
5384
|
return String(Math.round(Math.min(Math.max(e, 0), 1) * 1e3) / 1e3);
|
|
5291
5385
|
}
|
|
5292
|
-
function
|
|
5293
|
-
return `rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)}, ${
|
|
5386
|
+
function ni({ r: e, g: t, b: n, a: r }) {
|
|
5387
|
+
return `rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)}, ${ti(r)})`;
|
|
5294
5388
|
}
|
|
5295
|
-
function
|
|
5389
|
+
function ri(e, t, n) {
|
|
5296
5390
|
let r = Math.min(Math.max(n, 0), 1), i = e.a * r + t.a * (1 - r);
|
|
5297
5391
|
if (i === 0) return {
|
|
5298
5392
|
r: 0,
|
|
@@ -5308,24 +5402,24 @@ function ei(e, t, n) {
|
|
|
5308
5402
|
a: i
|
|
5309
5403
|
};
|
|
5310
5404
|
}
|
|
5311
|
-
function
|
|
5312
|
-
let n =
|
|
5313
|
-
return n ?
|
|
5405
|
+
function ii({ brandPrimary: e, mode: t }) {
|
|
5406
|
+
let n = ei(e);
|
|
5407
|
+
return n ? ni(t === "light" ? ri(n, {
|
|
5314
5408
|
r: 0,
|
|
5315
5409
|
g: 0,
|
|
5316
5410
|
b: 0,
|
|
5317
5411
|
a: 0
|
|
5318
|
-
},
|
|
5412
|
+
}, Zr) : ri(n, $r, Qr)) : e;
|
|
5319
5413
|
}
|
|
5320
|
-
function
|
|
5414
|
+
function ai(e) {
|
|
5321
5415
|
return e === "light" ? "rgba(255, 255, 255, 0.4)" : "rgba(255, 255, 255, 0.25)";
|
|
5322
5416
|
}
|
|
5323
|
-
function
|
|
5417
|
+
function oi(e) {
|
|
5324
5418
|
return e === "light" ? "rgba(255, 255, 255, 0.9)" : "rgba(255, 255, 255, 0.25)";
|
|
5325
5419
|
}
|
|
5326
5420
|
//#endregion
|
|
5327
5421
|
//#region src/native/components/MobileFloatingActionButton.tsx
|
|
5328
|
-
function
|
|
5422
|
+
function si({ label: e, icon: t, showLabel: n = !1, placement: r = "end", bottomOffset: i = "bottom-nav", keyboardBehavior: a = "hide", variant: o = "default", style: s, ...c }) {
|
|
5329
5423
|
let { theme: l, scales: u, mode: d } = K(), [f, p] = w(!1);
|
|
5330
5424
|
if (b(() => {
|
|
5331
5425
|
let e = I.addListener("keyboardDidShow", () => p(!0)), t = I.addListener("keyboardDidHide", () => p(!1));
|
|
@@ -5354,7 +5448,7 @@ function ii({ label: e, icon: t, showLabel: n = !1, placement: r = "end", bottom
|
|
|
5354
5448
|
children: e
|
|
5355
5449
|
})] });
|
|
5356
5450
|
if (o === "glass") {
|
|
5357
|
-
let t =
|
|
5451
|
+
let t = ii({
|
|
5358
5452
|
brandPrimary: l.brand.primary,
|
|
5359
5453
|
mode: d
|
|
5360
5454
|
}), n = !Ce();
|
|
@@ -5375,8 +5469,8 @@ function ii({ label: e, icon: t, showLabel: n = !1, placement: r = "end", bottom
|
|
|
5375
5469
|
borderRadius: _,
|
|
5376
5470
|
backgroundFill: t,
|
|
5377
5471
|
tintColor: l.brand.primary,
|
|
5378
|
-
rimColor:
|
|
5379
|
-
highlightColor:
|
|
5472
|
+
rimColor: ai(d),
|
|
5473
|
+
highlightColor: oi(d),
|
|
5380
5474
|
style: [v, n && { backgroundColor: t }],
|
|
5381
5475
|
children: y
|
|
5382
5476
|
})
|
|
@@ -5400,7 +5494,7 @@ function ii({ label: e, icon: t, showLabel: n = !1, placement: r = "end", bottom
|
|
|
5400
5494
|
}
|
|
5401
5495
|
//#endregion
|
|
5402
5496
|
//#region src/native/components/StatusActionBadge.tsx
|
|
5403
|
-
function
|
|
5497
|
+
function ci({ state: e = "idle", label: t, count: n, compact: r = !1, loading: i = !1, icon: a, asStatus: o = !1, style: s, onPress: c, ...l }) {
|
|
5404
5498
|
let { theme: u, scales: d } = K(), f = {
|
|
5405
5499
|
idle: {
|
|
5406
5500
|
bg: u.surface.secondary,
|
|
@@ -5486,10 +5580,10 @@ function ai({ state: e = "idle", label: t, count: n, compact: r = !1, loading: i
|
|
|
5486
5580
|
children: p
|
|
5487
5581
|
});
|
|
5488
5582
|
}
|
|
5489
|
-
var
|
|
5583
|
+
var li = ci;
|
|
5490
5584
|
//#endregion
|
|
5491
5585
|
//#region src/native/components/Banner.tsx
|
|
5492
|
-
function
|
|
5586
|
+
function ui({ title: e, description: t, image: n, onPress: r, tone: i = "neutral", height: a = 140 }) {
|
|
5493
5587
|
let { theme: o, scales: s } = K(), c = {
|
|
5494
5588
|
neutral: {
|
|
5495
5589
|
bg: o.surface.secondary,
|
|
@@ -5551,7 +5645,7 @@ function si({ title: e, description: t, image: n, onPress: r, tone: i = "neutral
|
|
|
5551
5645
|
}
|
|
5552
5646
|
//#endregion
|
|
5553
5647
|
//#region src/native/components/BannerCarousel.tsx
|
|
5554
|
-
function
|
|
5648
|
+
function di({ banners: e, itemWidth: t, height: n = 160, showIndicator: r = !0 }) {
|
|
5555
5649
|
let { theme: i, scales: a } = K(), [o, s] = w(0), c = t ?? j.get("window").width - 32, l = C(null);
|
|
5556
5650
|
return /* @__PURE__ */ D(W, {
|
|
5557
5651
|
style: { gap: a.spacing.scale[2] },
|
|
@@ -5577,7 +5671,7 @@ function ci({ banners: e, itemWidth: t, height: n = 160, showIndicator: r = !0 }
|
|
|
5577
5671
|
width: c,
|
|
5578
5672
|
height: n
|
|
5579
5673
|
},
|
|
5580
|
-
children: /* @__PURE__ */ E(
|
|
5674
|
+
children: /* @__PURE__ */ E(ui, {
|
|
5581
5675
|
...e,
|
|
5582
5676
|
height: n
|
|
5583
5677
|
})
|
|
@@ -5599,7 +5693,7 @@ function ci({ banners: e, itemWidth: t, height: n = 160, showIndicator: r = !0 }
|
|
|
5599
5693
|
}
|
|
5600
5694
|
//#endregion
|
|
5601
5695
|
//#region src/native/components/SearchBar.tsx
|
|
5602
|
-
function
|
|
5696
|
+
function fi({ value: e, onChange: t, placeholder: n = "検索", onSubmit: r, onClear: i, autoFocus: a }) {
|
|
5603
5697
|
let { theme: o, scales: s } = K();
|
|
5604
5698
|
return /* @__PURE__ */ D(W, {
|
|
5605
5699
|
style: {
|
|
@@ -5655,7 +5749,7 @@ function li({ value: e, onChange: t, placeholder: n = "検索", onSubmit: r, onC
|
|
|
5655
5749
|
}
|
|
5656
5750
|
//#endregion
|
|
5657
5751
|
//#region src/native/components/ListItem.tsx
|
|
5658
|
-
function
|
|
5752
|
+
function pi({ leading: e, title: t, description: n, trailing: r, showChevron: i, onPress: a, disabled: o, accessibilityLabel: s, accessibilityHint: c, accessibilityRole: l, accessibilityState: u, ...d }) {
|
|
5659
5753
|
let { theme: f, scales: p } = K(), m = (a = !1) => /* @__PURE__ */ D(W, {
|
|
5660
5754
|
style: {
|
|
5661
5755
|
flexDirection: "row",
|
|
@@ -5712,7 +5806,7 @@ function ui({ leading: e, title: t, description: n, trailing: r, showChevron: i,
|
|
|
5712
5806
|
}
|
|
5713
5807
|
//#endregion
|
|
5714
5808
|
//#region src/native/components/SettingsSection.tsx
|
|
5715
|
-
function
|
|
5809
|
+
function mi({ title: e, description: t, action: n, variant: r = "group", children: i, style: a, contentStyle: o }) {
|
|
5716
5810
|
let { theme: s, scales: c } = K(), l = r === "card" || r === "danger";
|
|
5717
5811
|
return /* @__PURE__ */ D(W, {
|
|
5718
5812
|
style: [{ gap: c.spacing.scale[3] }, a],
|
|
@@ -5752,7 +5846,7 @@ function di({ title: e, description: t, action: n, variant: r = "group", childre
|
|
|
5752
5846
|
})]
|
|
5753
5847
|
});
|
|
5754
5848
|
}
|
|
5755
|
-
function
|
|
5849
|
+
function hi({ title: e, description: t, leading: n, rightSlot: r, children: i, onPress: a, disabled: o = !1, destructive: s = !1, style: c }) {
|
|
5756
5850
|
let { theme: l, scales: u } = K(), d = (a = !1) => /* @__PURE__ */ D(W, {
|
|
5757
5851
|
style: [{
|
|
5758
5852
|
minHeight: 56,
|
|
@@ -5810,7 +5904,7 @@ function fi({ title: e, description: t, leading: n, rightSlot: r, children: i, o
|
|
|
5810
5904
|
}
|
|
5811
5905
|
//#endregion
|
|
5812
5906
|
//#region src/native/components/EmptyState.tsx
|
|
5813
|
-
function
|
|
5907
|
+
function gi({ title: e, description: t, icon: n, action: r, accessibilityLabel: i, accessibilityHint: a, ...o }) {
|
|
5814
5908
|
let { theme: s, scales: c } = K(), l = i !== void 0 || a !== void 0;
|
|
5815
5909
|
return /* @__PURE__ */ D(W, {
|
|
5816
5910
|
style: {
|
|
@@ -5866,7 +5960,7 @@ function pi({ title: e, description: t, icon: n, action: r, accessibilityLabel:
|
|
|
5866
5960
|
}
|
|
5867
5961
|
//#endregion
|
|
5868
5962
|
//#region src/native/components/ErrorState.tsx
|
|
5869
|
-
function
|
|
5963
|
+
function _i({ title: e = "エラーが発生しました", description: t = "時間をおいて再度お試しください。", icon: n, action: r, accessibilityLabel: i, accessibilityHint: a, ...o }) {
|
|
5870
5964
|
let { theme: s, scales: c } = K(), l = i !== void 0 || a !== void 0;
|
|
5871
5965
|
return /* @__PURE__ */ D(W, {
|
|
5872
5966
|
style: {
|
|
@@ -5922,7 +6016,7 @@ function mi({ title: e = "エラーが発生しました", description: t = "時
|
|
|
5922
6016
|
}
|
|
5923
6017
|
//#endregion
|
|
5924
6018
|
//#region src/native/components/IconBadge.tsx
|
|
5925
|
-
var
|
|
6019
|
+
var vi = {
|
|
5926
6020
|
md: {
|
|
5927
6021
|
color: "",
|
|
5928
6022
|
size: 20
|
|
@@ -5935,14 +6029,14 @@ var hi = {
|
|
|
5935
6029
|
color: "",
|
|
5936
6030
|
size: 38
|
|
5937
6031
|
}
|
|
5938
|
-
},
|
|
6032
|
+
}, yi = {
|
|
5939
6033
|
md: 44,
|
|
5940
6034
|
ml: 48,
|
|
5941
6035
|
lg: 72
|
|
5942
6036
|
};
|
|
5943
|
-
function
|
|
5944
|
-
let { theme: a } = K(), o =
|
|
5945
|
-
...
|
|
6037
|
+
function bi({ size: e = "md", children: t, style: n, accessibilityLabel: r, ...i }) {
|
|
6038
|
+
let { theme: a } = K(), o = yi[e], s = {
|
|
6039
|
+
...vi[e],
|
|
5946
6040
|
color: a.object["accent-primary"]
|
|
5947
6041
|
};
|
|
5948
6042
|
return /* @__PURE__ */ E(W, {
|
|
@@ -5963,93 +6057,6 @@ function _i({ size: e = "md", children: t, style: n, accessibilityLabel: r, ...i
|
|
|
5963
6057
|
});
|
|
5964
6058
|
}
|
|
5965
6059
|
//#endregion
|
|
5966
|
-
//#region src/native/icon-button-metrics.ts
|
|
5967
|
-
var vi = {
|
|
5968
|
-
sm: {
|
|
5969
|
-
box: 36,
|
|
5970
|
-
icon: 18
|
|
5971
|
-
},
|
|
5972
|
-
md: {
|
|
5973
|
-
box: 44,
|
|
5974
|
-
icon: 20
|
|
5975
|
-
},
|
|
5976
|
-
lg: {
|
|
5977
|
-
box: 48,
|
|
5978
|
-
icon: 24
|
|
5979
|
-
}
|
|
5980
|
-
};
|
|
5981
|
-
function yi(e, t) {
|
|
5982
|
-
let { box: n, icon: r } = vi[e];
|
|
5983
|
-
return {
|
|
5984
|
-
box: n,
|
|
5985
|
-
icon: r,
|
|
5986
|
-
hitSlop: Math.max(0, Math.ceil((t - n) / 2))
|
|
5987
|
-
};
|
|
5988
|
-
}
|
|
5989
|
-
//#endregion
|
|
5990
|
-
//#region src/native/components/IconButton.tsx
|
|
5991
|
-
function bi({ accessibilityLabel: e, icon: t, variant: n = "ghost", tone: r = "neutral", size: i = "md", shape: a = "circle", loading: o = !1, containerStyle: s, pressedContainerStyle: c, disabled: l, accessibilityRole: u, accessibilityState: d, hitSlop: f, ...p }) {
|
|
5992
|
-
let { theme: m, scales: h } = K(), g = l || o, { box: _, icon: v, hitSlop: y } = yi(i, h.touchTargets.iconButton.min), b = r === "accent" ? m.text["accent-primary"] : r === "caution" ? m.text.caution : m.text["medium-emphasis"], x = n === "primary" ? {
|
|
5993
|
-
backgroundColor: m.brand.primary,
|
|
5994
|
-
pressedBackgroundColor: m.active["primary-button"],
|
|
5995
|
-
borderColor: m.brand.primary,
|
|
5996
|
-
borderWidth: 1,
|
|
5997
|
-
foreground: m.text["on-inverse"]
|
|
5998
|
-
} : n === "tertiary" ? {
|
|
5999
|
-
backgroundColor: m.surface.secondary,
|
|
6000
|
-
pressedBackgroundColor: m.active["tertiary-button"],
|
|
6001
|
-
borderColor: "transparent",
|
|
6002
|
-
borderWidth: 0,
|
|
6003
|
-
foreground: b
|
|
6004
|
-
} : n === "outline" ? {
|
|
6005
|
-
backgroundColor: m.surface.primary,
|
|
6006
|
-
pressedBackgroundColor: m.surface.secondary,
|
|
6007
|
-
borderColor: r === "accent" ? m.border["accent-primary"] : r === "caution" ? m.border.caution : m.border["low-emphasis"],
|
|
6008
|
-
borderWidth: 1,
|
|
6009
|
-
foreground: b
|
|
6010
|
-
} : {
|
|
6011
|
-
backgroundColor: "transparent",
|
|
6012
|
-
pressedBackgroundColor: m.surface.secondary,
|
|
6013
|
-
borderColor: "transparent",
|
|
6014
|
-
borderWidth: 0,
|
|
6015
|
-
foreground: b
|
|
6016
|
-
};
|
|
6017
|
-
return /* @__PURE__ */ E(z, {
|
|
6018
|
-
disabled: g,
|
|
6019
|
-
accessibilityRole: u ?? "button",
|
|
6020
|
-
accessibilityLabel: e,
|
|
6021
|
-
accessibilityState: {
|
|
6022
|
-
disabled: !!g,
|
|
6023
|
-
busy: o || void 0,
|
|
6024
|
-
...d
|
|
6025
|
-
},
|
|
6026
|
-
hitSlop: f ?? y,
|
|
6027
|
-
style: ({ pressed: e }) => [
|
|
6028
|
-
{
|
|
6029
|
-
width: _,
|
|
6030
|
-
height: _,
|
|
6031
|
-
alignItems: "center",
|
|
6032
|
-
justifyContent: "center",
|
|
6033
|
-
borderRadius: a === "circle" ? _ / 2 : h.borderRadius.lg,
|
|
6034
|
-
borderWidth: x.borderWidth,
|
|
6035
|
-
borderColor: x.borderColor,
|
|
6036
|
-
backgroundColor: e && !g ? x.pressedBackgroundColor : x.backgroundColor,
|
|
6037
|
-
opacity: g ? .56 : 1
|
|
6038
|
-
},
|
|
6039
|
-
s,
|
|
6040
|
-
e && !g && c
|
|
6041
|
-
],
|
|
6042
|
-
...p,
|
|
6043
|
-
children: o ? /* @__PURE__ */ E(k, {
|
|
6044
|
-
size: "small",
|
|
6045
|
-
color: x.foreground
|
|
6046
|
-
}) : typeof t == "function" ? t({
|
|
6047
|
-
color: x.foreground,
|
|
6048
|
-
size: v
|
|
6049
|
-
}) : t
|
|
6050
|
-
});
|
|
6051
|
-
}
|
|
6052
|
-
//#endregion
|
|
6053
6060
|
//#region src/native/components/SectionHeader.tsx
|
|
6054
6061
|
function xi({ title: e, description: t, action: n, variant: r = "default" }) {
|
|
6055
6062
|
let { theme: i, scales: a } = K();
|
|
@@ -6307,7 +6314,7 @@ function Oi({ sections: e }) {
|
|
|
6307
6314
|
function ki({ title: e, lastUpdated: t, onBack: n, children: r }) {
|
|
6308
6315
|
let { theme: i, scales: a } = K();
|
|
6309
6316
|
return /* @__PURE__ */ D(Di, {
|
|
6310
|
-
header: n ? /* @__PURE__ */ E(
|
|
6317
|
+
header: n ? /* @__PURE__ */ E(Jr, {
|
|
6311
6318
|
onBack: n,
|
|
6312
6319
|
centered: !1
|
|
6313
6320
|
}) : void 0,
|
|
@@ -7604,7 +7611,7 @@ function _a({ keyboardBehavior: e = "stay", keyboardLiftOffset: t = 160, ...n })
|
|
|
7604
7611
|
let r = ga();
|
|
7605
7612
|
return e === "hide" && r ? null : /* @__PURE__ */ E(W, {
|
|
7606
7613
|
style: e === "lift" && r ? { transform: [{ translateY: -t }] } : void 0,
|
|
7607
|
-
children: /* @__PURE__ */ E(
|
|
7614
|
+
children: /* @__PURE__ */ E(Gr, { ...n })
|
|
7608
7615
|
});
|
|
7609
7616
|
}
|
|
7610
7617
|
function va({ state: e, descriptors: t, navigation: n, insets: r, keyboardBehavior: i = "hide", keyboardLiftOffset: a = 160, hiddenRouteNames: o = [], floating: s = !0, glass: c = !0, glassIntensity: l = "regular", glassTint: u = "system", showLabels: d = !0, iconSize: f = 24, style: p, contentStyle: m, itemStyle: h, labelStyle: g }) {
|
|
@@ -8301,4 +8308,4 @@ function Fa({ header: e, footer: t, cta: n, children: r }) {
|
|
|
8301
8308
|
});
|
|
8302
8309
|
}
|
|
8303
8310
|
//#endregion
|
|
8304
|
-
export { c as AUTO_PROMPT_SUPPRESSION_EVENT,
|
|
8311
|
+
export { c as AUTO_PROMPT_SUPPRESSION_EVENT, zr as Accordion, Ki as ActionTile, on as Alert, cn as AlertDialog, Jr as AppHeader, Pa as AppShell, Bt as AutoGrowTextarea, i as AutoPrompt, Be as Avatar, Ae as Badge, ui as Banner, di as BannerCarousel, Hn as BottomSheetForm, Un as BottomSheetFrame, _a as BottomTabBar, qr as Breadcrumb, X as Button, Tr as Calendar, Oe as Card, ke as CardHeader, ea as CategoryNav, ta as CategoryScroll, wt as Celebration, kt as CelebrationDialog, Jt as Checkbox, Xt as CheckboxCard, Yt as CheckboxField, Zt as CheckboxGroup, Ue as Chip, $i as ChipFilterBar, Ji as ChipSelector, Gn as CoachMark, Kn as CoachMarkOverlay, Br as Collapsible, Zi as CollapsibleChipField, Jn as Combobox, Kt as CommitAutoGrowTextarea, Wt as CommitInput, Gt as CommitTextarea, Ui as CompactFilePicker, Vn as ConfirmDialog, Nt as CountdownHero, ot as CountdownTimer, Ar as DateField, Dr as DatePicker, Pr as DateTimePicker, Sn as DetailSheetBody, xn as DetailSheetHeader, bn as DetailSheetScaffold, sn as Dialog, ki as DocumentScreen, Xn as DropdownFilter, En as DropdownMenu, gi as EmptyState, Rn as ErrorBoundary, _i as ErrorState, Ti as FileUpload, Sa as FilterBar, aa as FilterChip, Re as FloatingTabBar, wi as Footer, an as FormActions, tn as FormField, nn as FormRoot, rn as FormSection, fe as GlassView, Fe as GradientSurface, ha as GridSkeleton, bi as IconBadge, or as IconButton, Wi as ImageAttachmentPicker, Ca as ImageCarousel, ca as ImageGallery, It as Input, Cn as KeyboardAwareSheetFooter, Pt as Label, va as LiquidBottomTabBar, pi as ListItem, ma as ListSkeleton, pa as ListSkeletons, Fa as MarketingShell, Vi as MediaActionCluster, Bn as MenuDrawer, Yr as MobileAppHeader, Xr as MobileAppShell, si as MobileFloatingActionButton, Yn as MultiSelect, Gr as NavigationBar, nt as NotificationBadge, en as NumberInput, ja as OrderSummary, Ur as Pagination, Li as PhotoHero, Zn as PillToggle, Tn as Popover, sa as PresenceIndicator, Ta as PriceDisplay, Oa as ProductCard, ka as ProductCarousel, $e as Progress, et as ProgressRing, na as ProgressSteps, o as PromptCoordinatorProvider, Oi as Prose, Ea as QuantitySelector, qi as QuickActionGrid, Qt as RadioGroup, Da as RatingDisplay, wn as ResponsiveDialog, Ma as ReviewCard, Wn as ReviewOverlay, Na as ReviewSummary, Di as Screen, Vr as ScrollArea, fi as SearchBar, xi as SectionHeader, qn as Select, Ke as Separator, hi as SettingsListRow, mi as SettingsSection, ia as ShareButtons, $ as Sheet, Wr as SimplePagination, Z as Skeleton, qe as SkeletonText, $t as Slider, fa as SocialIcon, ua as SocialLoginButton, Ge as Spinner, je as Stack, tt as StarRating, rt as StatCard, ci as StatusActionBadge, Si as StickyActionBar, Kr as SubNav, Ci as SwipeRow, qt as Switch, it as SyncStatusBadge, li as SyncStatusButton, er as Tabs, rr as TabsContent, tr as TabsList, nr as TabsTrigger, We as Tag, ra as TagInput, J as Text, Rt as Textarea, ne as ThemeProvider, Mr as TimePicker, Fn as ToastProvider, ya as createExpoRouterTabBar, m as getTheme, n as isAutoPromptSuppressed, Ce as isNativeLiquidGlassAvailable, p as primitives, q as resolveTypo, d as scales, e as suppressAutoPrompts, f as themeNames, u as themes, Pn as toast, a as usePromptCoordinator, s as usePromptSlot, K as useTheme, On as useToast };
|
|
@@ -14,4 +14,4 @@ export interface ChipProps extends Omit<PressableProps, "children" | "style"> {
|
|
|
14
14
|
onRemove?: () => void;
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
}
|
|
17
|
-
export declare function Chip({ variant, size, shape, selected, disabled, count, removable, onRemove, children, ...rest }: ChipProps): React.JSX.Element;
|
|
17
|
+
export declare function Chip({ variant, size, shape, selected, disabled, count, removable, onRemove, children, accessibilityRole, accessibilityState, ...rest }: ChipProps): React.JSX.Element;
|