@pisell/private-materials 6.12.310 → 6.12.311

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.
@@ -74,7 +74,6 @@ const localeTexts = {
74
74
  "pisell2.hdl-kiosk.eyebrow": "Freshly prepared · Weighed for you",
75
75
  "pisell2.hdl-kiosk.entry-title": "How would you like to start?",
76
76
  "pisell2.hdl-kiosk.entry-supporting": "Tap once, scan below, or simply place your bowl on the scale.",
77
- "pisell2.hdl-kiosk.technical-support": "Powered by Pisell",
78
77
  "pisell2.hdl-kiosk.entry-assistance": "This service is temporarily unavailable. Please contact our staff for assistance.",
79
78
  "pisell2.hdl-kiosk.entry-data-preparing": "Getting ready",
80
79
  "pisell2.hdl-kiosk.entry-language-label": "Choose homepage language",
@@ -323,7 +322,6 @@ const localeTexts = {
323
322
  "pisell2.hdl-kiosk.eyebrow": "新鲜现做 · 按重计价",
324
323
  "pisell2.hdl-kiosk.entry-title": "请选择开始方式",
325
324
  "pisell2.hdl-kiosk.entry-supporting": "点击快速下单,或在下方扫码、将餐碗放上称台。",
326
- "pisell2.hdl-kiosk.technical-support": "Pisell 技术支持",
327
325
  "pisell2.hdl-kiosk.entry-assistance": "服务暂时无法使用,请联系工作人员。",
328
326
  "pisell2.hdl-kiosk.entry-data-preparing": "正在准备",
329
327
  "pisell2.hdl-kiosk.entry-language-label": "选择首页语言",
@@ -572,7 +570,6 @@ const localeTexts = {
572
570
  "pisell2.hdl-kiosk.eyebrow": "新鮮現做 · 按重計價",
573
571
  "pisell2.hdl-kiosk.entry-title": "請選擇開始方式",
574
572
  "pisell2.hdl-kiosk.entry-supporting": "點擊快速下單,或在下方掃碼、將餐碗放上秤台。",
575
- "pisell2.hdl-kiosk.technical-support": "Pisell 技術支援",
576
573
  "pisell2.hdl-kiosk.entry-assistance": "服務暫時無法使用,請聯絡工作人員。",
577
574
  "pisell2.hdl-kiosk.entry-data-preparing": "正在準備",
578
575
  "pisell2.hdl-kiosk.entry-language-label": "選擇首頁語言",
@@ -821,7 +818,6 @@ const localeTexts = {
821
818
  "pisell2.hdl-kiosk.eyebrow": "できたて · 重量販売",
822
819
  "pisell2.hdl-kiosk.entry-title": "開始方法を選んでください",
823
820
  "pisell2.hdl-kiosk.entry-supporting": "クイック注文をタップするか、下でバーコードを読み取るか、器をはかりに置いてください。",
824
- "pisell2.hdl-kiosk.technical-support": "Pisell テクニカルサポート",
825
821
  "pisell2.hdl-kiosk.entry-assistance": "現在このサービスを利用できません。スタッフにお声がけください。",
826
822
  "pisell2.hdl-kiosk.entry-data-preparing": "準備中",
827
823
  "pisell2.hdl-kiosk.entry-language-label": "ホーム画面の言語を選択",
@@ -1070,7 +1066,6 @@ const localeTexts = {
1070
1066
  "pisell2.hdl-kiosk.eyebrow": "Preparado na hora · Cobrado por peso",
1071
1067
  "pisell2.hdl-kiosk.entry-title": "Como deseja começar?",
1072
1068
  "pisell2.hdl-kiosk.entry-supporting": "Toque para fazer um pedido rápido, leia o código abaixo ou coloque a sua tigela na balança.",
1073
- "pisell2.hdl-kiosk.technical-support": "Suporte técnico Pisell",
1074
1069
  "pisell2.hdl-kiosk.entry-assistance": "Este serviço está temporariamente indisponível. Peça ajuda a um funcionário.",
1075
1070
  "pisell2.hdl-kiosk.entry-data-preparing": "A preparar",
1076
1071
  "pisell2.hdl-kiosk.entry-language-label": "Escolher o idioma do ecrã inicial",
@@ -1,6 +1,7 @@
1
1
  import { useEntryScreenLayout } from "./useEntryScreenLayout.js";
2
2
  import React, { useCallback, useEffect, useRef, useState } from "react";
3
3
  import { locales } from "@pisell/utils";
4
+ import { PisellBrand } from "@pisell/materials";
4
5
  import { Palette } from "@pisell/icon";
5
6
  //#region src/components/HDLKiosk/ui/entry/Screen/index.tsx
6
7
  const ACTIVATION_COOLDOWN_MS = 650;
@@ -147,11 +148,12 @@ function EntryScreen({ locale, model, theme, onThemeChange, isActive = true, onL
147
148
  src: "https://static.pisellcdn.com/hero-centered.png",
148
149
  alt: "",
149
150
  hidden: theme !== "cream"
150
- })), /* @__PURE__ */ React.createElement("button", {
151
- className: "hdl-entry-technical-support",
152
- type: "button",
151
+ })), /* @__PURE__ */ React.createElement(PisellBrand, {
152
+ className: "hdl-entry-pisell-brand",
153
+ theme: theme === "black-gold" ? "dark" : "light",
154
+ locale: entryLocale,
153
155
  onClick: onTechnicalSupportClick
154
- }, locales.getText("pisell2.hdl-kiosk.technical-support")), /* @__PURE__ */ React.createElement("header", { className: "hdl-entry-screen__header" }, /* @__PURE__ */ React.createElement("button", {
156
+ }), /* @__PURE__ */ React.createElement("header", { className: "hdl-entry-screen__header" }, /* @__PURE__ */ React.createElement("button", {
155
157
  type: "button",
156
158
  className: "hdl-entry-theme-toggle",
157
159
  "aria-label": themeLabel,
@@ -12,7 +12,6 @@
12
12
  --hdl-entry-touch-border: #f2ce8e;
13
13
  --hdl-entry-touch-background: #ffd07a1a;
14
14
  --hdl-entry-control-background: rgba(17, 16, 14, 0.76);
15
- --hdl-entry-support-background: rgba(17, 16, 14, 0.4);
16
15
  --hdl-entry-loading-background: rgba(17, 16, 14, 0.72);
17
16
  color-scheme: dark;
18
17
 
@@ -27,7 +26,6 @@
27
26
  --hdl-entry-touch-border: #b7442a;
28
27
  --hdl-entry-touch-background: #ffdfb61a;
29
28
  --hdl-entry-control-background: rgba(255, 248, 236, 0.8);
30
- --hdl-entry-support-background: rgba(244, 236, 220, 0.6);
31
29
  --hdl-entry-loading-background: rgba(244, 236, 220, 0.72);
32
30
  color-scheme: light;
33
31
  }
@@ -270,26 +268,21 @@
270
268
  animation: hdl-entry-touch-response 600ms ease-out;
271
269
  }
272
270
 
273
- .hdl-entry-technical-support {
274
- position: absolute;
275
- z-index: 5;
276
- top: 0;
277
- left: 0;
278
- width: 100%;
279
- margin: 0;
280
- border: 0;
281
- padding: 6px 0;
282
- background: var(--hdl-entry-support-background);
283
- color: var(--hdl-entry-copy);
284
- font-size: 16px;
285
- line-height: normal;
286
- text-align: center;
287
- cursor: pointer;
271
+ .hdl-entry-pisell-brand {
272
+ --pisell-brand-z-index: 5;
273
+ --pisell-brand-focus: var(--hdl-entry-focus);
274
+ // Kiosk 按有效画布宽度缩放,并保留小屏下限、大屏上限和安全区。
275
+ --pisell-brand-inset: clamp(18px, calc(var(--hdl-entry-canvas-width) * 48 / 1080), 64px);
276
+ --pisell-brand-font-size: clamp(12px, calc(var(--hdl-entry-canvas-width) * 22 / 1080), 28px);
277
+ --pisell-brand-top-height: clamp(50px, calc(var(--hdl-entry-canvas-width) * 112 / 1080), 148px);
278
+ --pisell-brand-top-gap: clamp(14px, calc(var(--hdl-entry-canvas-width) * 26 / 1080), 34px);
279
+ --pisell-brand-top-logo-width: clamp(76px, calc(var(--hdl-entry-canvas-width) * 180 / 1080), 240px);
280
+ --pisell-brand-top-padding: max(10px, env(safe-area-inset-top, 0px));
288
281
  }
289
282
 
290
283
  .hdl-entry-screen__header {
291
284
  position: absolute;
292
- top: 45px;
285
+ top: ~"calc(clamp(50px, var(--hdl-entry-canvas-width) * 112 / 1080, 148px) + 16px)";
293
286
  right: 5%;
294
287
  left: 5%;
295
288
  z-index: 4;
@@ -389,7 +382,6 @@
389
382
 
390
383
  .hdl-entry-language:focus-within,
391
384
  .hdl-entry-theme-toggle:focus-visible,
392
- .hdl-entry-technical-support:focus-visible,
393
385
  .hdl-entry-screen__notices button:focus-visible {
394
386
  outline: 3px solid var(--hdl-entry-focus);
395
387
  outline-offset: 5px;
@@ -397,7 +389,6 @@
397
389
 
398
390
  .hdl-entry-screen[data-compact='true'] {
399
391
  .hdl-entry-screen__header {
400
- top: 40px;
401
392
  right: 20px;
402
393
  left: 20px;
403
394
  gap: 12px;
@@ -74,7 +74,6 @@ const localeTexts = {
74
74
  "pisell2.hdl-kiosk.eyebrow": "Freshly prepared · Weighed for you",
75
75
  "pisell2.hdl-kiosk.entry-title": "How would you like to start?",
76
76
  "pisell2.hdl-kiosk.entry-supporting": "Tap once, scan below, or simply place your bowl on the scale.",
77
- "pisell2.hdl-kiosk.technical-support": "Powered by Pisell",
78
77
  "pisell2.hdl-kiosk.entry-assistance": "This service is temporarily unavailable. Please contact our staff for assistance.",
79
78
  "pisell2.hdl-kiosk.entry-data-preparing": "Getting ready",
80
79
  "pisell2.hdl-kiosk.entry-language-label": "Choose homepage language",
@@ -323,7 +322,6 @@ const localeTexts = {
323
322
  "pisell2.hdl-kiosk.eyebrow": "新鲜现做 · 按重计价",
324
323
  "pisell2.hdl-kiosk.entry-title": "请选择开始方式",
325
324
  "pisell2.hdl-kiosk.entry-supporting": "点击快速下单,或在下方扫码、将餐碗放上称台。",
326
- "pisell2.hdl-kiosk.technical-support": "Pisell 技术支持",
327
325
  "pisell2.hdl-kiosk.entry-assistance": "服务暂时无法使用,请联系工作人员。",
328
326
  "pisell2.hdl-kiosk.entry-data-preparing": "正在准备",
329
327
  "pisell2.hdl-kiosk.entry-language-label": "选择首页语言",
@@ -572,7 +570,6 @@ const localeTexts = {
572
570
  "pisell2.hdl-kiosk.eyebrow": "新鮮現做 · 按重計價",
573
571
  "pisell2.hdl-kiosk.entry-title": "請選擇開始方式",
574
572
  "pisell2.hdl-kiosk.entry-supporting": "點擊快速下單,或在下方掃碼、將餐碗放上秤台。",
575
- "pisell2.hdl-kiosk.technical-support": "Pisell 技術支援",
576
573
  "pisell2.hdl-kiosk.entry-assistance": "服務暫時無法使用,請聯絡工作人員。",
577
574
  "pisell2.hdl-kiosk.entry-data-preparing": "正在準備",
578
575
  "pisell2.hdl-kiosk.entry-language-label": "選擇首頁語言",
@@ -821,7 +818,6 @@ const localeTexts = {
821
818
  "pisell2.hdl-kiosk.eyebrow": "できたて · 重量販売",
822
819
  "pisell2.hdl-kiosk.entry-title": "開始方法を選んでください",
823
820
  "pisell2.hdl-kiosk.entry-supporting": "クイック注文をタップするか、下でバーコードを読み取るか、器をはかりに置いてください。",
824
- "pisell2.hdl-kiosk.technical-support": "Pisell テクニカルサポート",
825
821
  "pisell2.hdl-kiosk.entry-assistance": "現在このサービスを利用できません。スタッフにお声がけください。",
826
822
  "pisell2.hdl-kiosk.entry-data-preparing": "準備中",
827
823
  "pisell2.hdl-kiosk.entry-language-label": "ホーム画面の言語を選択",
@@ -1070,7 +1066,6 @@ const localeTexts = {
1070
1066
  "pisell2.hdl-kiosk.eyebrow": "Preparado na hora · Cobrado por peso",
1071
1067
  "pisell2.hdl-kiosk.entry-title": "Como deseja começar?",
1072
1068
  "pisell2.hdl-kiosk.entry-supporting": "Toque para fazer um pedido rápido, leia o código abaixo ou coloque a sua tigela na balança.",
1073
- "pisell2.hdl-kiosk.technical-support": "Suporte técnico Pisell",
1074
1069
  "pisell2.hdl-kiosk.entry-assistance": "Este serviço está temporariamente indisponível. Peça ajuda a um funcionário.",
1075
1070
  "pisell2.hdl-kiosk.entry-data-preparing": "A preparar",
1076
1071
  "pisell2.hdl-kiosk.entry-language-label": "Escolher o idioma do ecrã inicial",
@@ -3,6 +3,7 @@ const require_useEntryScreenLayout = require("./useEntryScreenLayout.js");
3
3
  let react = require("react");
4
4
  react = require_runtime.__toESM(react);
5
5
  let _pisell_utils = require("@pisell/utils");
6
+ let _pisell_materials = require("@pisell/materials");
6
7
  let _pisell_icon = require("@pisell/icon");
7
8
  //#region src/components/HDLKiosk/ui/entry/Screen/index.tsx
8
9
  const ACTIVATION_COOLDOWN_MS = 650;
@@ -149,11 +150,12 @@ function EntryScreen({ locale, model, theme, onThemeChange, isActive = true, onL
149
150
  src: "https://static.pisellcdn.com/hero-centered.png",
150
151
  alt: "",
151
152
  hidden: theme !== "cream"
152
- })), /* @__PURE__ */ react.default.createElement("button", {
153
- className: "hdl-entry-technical-support",
154
- type: "button",
153
+ })), /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellBrand, {
154
+ className: "hdl-entry-pisell-brand",
155
+ theme: theme === "black-gold" ? "dark" : "light",
156
+ locale: entryLocale,
155
157
  onClick: onTechnicalSupportClick
156
- }, _pisell_utils.locales.getText("pisell2.hdl-kiosk.technical-support")), /* @__PURE__ */ react.default.createElement("header", { className: "hdl-entry-screen__header" }, /* @__PURE__ */ react.default.createElement("button", {
158
+ }), /* @__PURE__ */ react.default.createElement("header", { className: "hdl-entry-screen__header" }, /* @__PURE__ */ react.default.createElement("button", {
157
159
  type: "button",
158
160
  className: "hdl-entry-theme-toggle",
159
161
  "aria-label": themeLabel,
@@ -12,7 +12,6 @@
12
12
  --hdl-entry-touch-border: #f2ce8e;
13
13
  --hdl-entry-touch-background: #ffd07a1a;
14
14
  --hdl-entry-control-background: rgba(17, 16, 14, 0.76);
15
- --hdl-entry-support-background: rgba(17, 16, 14, 0.4);
16
15
  --hdl-entry-loading-background: rgba(17, 16, 14, 0.72);
17
16
  color-scheme: dark;
18
17
 
@@ -27,7 +26,6 @@
27
26
  --hdl-entry-touch-border: #b7442a;
28
27
  --hdl-entry-touch-background: #ffdfb61a;
29
28
  --hdl-entry-control-background: rgba(255, 248, 236, 0.8);
30
- --hdl-entry-support-background: rgba(244, 236, 220, 0.6);
31
29
  --hdl-entry-loading-background: rgba(244, 236, 220, 0.72);
32
30
  color-scheme: light;
33
31
  }
@@ -270,26 +268,21 @@
270
268
  animation: hdl-entry-touch-response 600ms ease-out;
271
269
  }
272
270
 
273
- .hdl-entry-technical-support {
274
- position: absolute;
275
- z-index: 5;
276
- top: 0;
277
- left: 0;
278
- width: 100%;
279
- margin: 0;
280
- border: 0;
281
- padding: 6px 0;
282
- background: var(--hdl-entry-support-background);
283
- color: var(--hdl-entry-copy);
284
- font-size: 16px;
285
- line-height: normal;
286
- text-align: center;
287
- cursor: pointer;
271
+ .hdl-entry-pisell-brand {
272
+ --pisell-brand-z-index: 5;
273
+ --pisell-brand-focus: var(--hdl-entry-focus);
274
+ // Kiosk 按有效画布宽度缩放,并保留小屏下限、大屏上限和安全区。
275
+ --pisell-brand-inset: clamp(18px, calc(var(--hdl-entry-canvas-width) * 48 / 1080), 64px);
276
+ --pisell-brand-font-size: clamp(12px, calc(var(--hdl-entry-canvas-width) * 22 / 1080), 28px);
277
+ --pisell-brand-top-height: clamp(50px, calc(var(--hdl-entry-canvas-width) * 112 / 1080), 148px);
278
+ --pisell-brand-top-gap: clamp(14px, calc(var(--hdl-entry-canvas-width) * 26 / 1080), 34px);
279
+ --pisell-brand-top-logo-width: clamp(76px, calc(var(--hdl-entry-canvas-width) * 180 / 1080), 240px);
280
+ --pisell-brand-top-padding: max(10px, env(safe-area-inset-top, 0px));
288
281
  }
289
282
 
290
283
  .hdl-entry-screen__header {
291
284
  position: absolute;
292
- top: 45px;
285
+ top: ~"calc(clamp(50px, var(--hdl-entry-canvas-width) * 112 / 1080, 148px) + 16px)";
293
286
  right: 5%;
294
287
  left: 5%;
295
288
  z-index: 4;
@@ -389,7 +382,6 @@
389
382
 
390
383
  .hdl-entry-language:focus-within,
391
384
  .hdl-entry-theme-toggle:focus-visible,
392
- .hdl-entry-technical-support:focus-visible,
393
385
  .hdl-entry-screen__notices button:focus-visible {
394
386
  outline: 3px solid var(--hdl-entry-focus);
395
387
  outline-offset: 5px;
@@ -397,7 +389,6 @@
397
389
 
398
390
  .hdl-entry-screen[data-compact='true'] {
399
391
  .hdl-entry-screen__header {
400
- top: 40px;
401
392
  right: 20px;
402
393
  left: 20px;
403
394
  gap: 12px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.12.310",
3
+ "version": "6.12.311",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -73,7 +73,7 @@
73
73
  "use-sync-external-store": "^1.6.0",
74
74
  "@pisell/pi-payment-sdk": "0.0.3",
75
75
  "@pisell/utils": "3.0.7",
76
- "@pisell/materials": "6.12.78",
76
+ "@pisell/materials": "6.12.79",
77
77
  "@pisell/date-picker": "3.0.12",
78
78
  "@pisell/icon": "0.0.11"
79
79
  },