@simplix-react-ui-kits/site-core 0.1.0 → 0.1.1
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/README.md +4 -3
- package/dist/account/index.d.ts +1 -1
- package/dist/account/index.js +3 -3
- package/dist/action/index.d.ts +59 -3
- package/dist/action/index.js +82 -0
- package/dist/action/index.js.map +1 -1
- package/dist/checkout/index.d.ts +1 -1
- package/dist/checkout/index.js +1 -1
- package/dist/{chunk-BJUU2WTX.js → chunk-EELJOGWB.js} +12 -5
- package/dist/chunk-EELJOGWB.js.map +1 -0
- package/dist/{chunk-7K476KMZ.js → chunk-EOTYGKKM.js} +3 -3
- package/dist/{chunk-7K476KMZ.js.map → chunk-EOTYGKKM.js.map} +1 -1
- package/dist/{chunk-FKC262N4.js → chunk-EWBTUSZY.js} +9 -3
- package/dist/chunk-EWBTUSZY.js.map +1 -0
- package/dist/{chunk-5TFLOQT6.js → chunk-HRRP6HMF.js} +10 -5
- package/dist/chunk-HRRP6HMF.js.map +1 -0
- package/dist/{chunk-4KFQ26JW.js → chunk-HZGBIIGN.js} +27 -6
- package/dist/chunk-HZGBIIGN.js.map +1 -0
- package/dist/{chunk-JJQJFRBI.js → chunk-OWQVRM4W.js} +3 -3
- package/dist/{chunk-JJQJFRBI.js.map → chunk-OWQVRM4W.js.map} +1 -1
- package/dist/{chunk-6S23FFBB.js → chunk-TGG4ZKPG.js} +3 -3
- package/dist/{chunk-6S23FFBB.js.map → chunk-TGG4ZKPG.js.map} +1 -1
- package/dist/{chunk-JVMJF5JJ.js → chunk-UF2MDCWB.js} +5 -5
- package/dist/chunk-UF2MDCWB.js.map +1 -0
- package/dist/{chunk-EG6GE3YS.js → chunk-YXASVWY7.js} +3 -3
- package/dist/{chunk-EG6GE3YS.js.map → chunk-YXASVWY7.js.map} +1 -1
- package/dist/content/index.d.ts +95 -0
- package/dist/content/index.js +85 -0
- package/dist/content/index.js.map +1 -0
- package/dist/form/index.d.ts +229 -8
- package/dist/form/index.js +150 -10
- package/dist/form/index.js.map +1 -1
- package/dist/help/index.d.ts +1 -1
- package/dist/help/index.js +6 -6
- package/dist/install/index.d.ts +1 -1
- package/dist/install/index.js +4 -4
- package/dist/legal/index.d.ts +2 -2
- package/dist/legal/index.js +5 -5
- package/dist/link/index.d.ts +14 -1
- package/dist/link/index.js +8 -1
- package/dist/link/index.js.map +1 -1
- package/dist/marketing/index.d.ts +1 -1
- package/dist/page/index.d.ts +2 -2
- package/dist/page/index.js +4 -4
- package/dist/pricing/index.d.ts +1 -1
- package/dist/pricing/index.js +2 -2
- package/dist/shell/index.d.ts +1 -1
- package/dist/{site-action-B79fuwMb.d.ts → site-action-CPpf8JZl.d.ts} +1 -1
- package/dist/{site-page-Dl0A5T1N.d.ts → site-page-DKcjqh9y.d.ts} +7 -2
- package/package.json +10 -3
- package/src/action/action-tile.style.ts +63 -0
- package/src/action/action-tile.tsx +83 -0
- package/src/action/index.ts +11 -0
- package/src/content/content.style.ts +72 -0
- package/src/content/content.tsx +124 -0
- package/src/content/index.ts +12 -0
- package/src/form/choices.style.ts +16 -0
- package/src/form/choices.tsx +28 -5
- package/src/form/country-field.tsx +61 -0
- package/src/form/date-time.style.ts +26 -0
- package/src/form/date-time.tsx +123 -0
- package/src/form/dialog.style.ts +4 -2
- package/src/form/errors.tsx +16 -4
- package/src/form/form.style.ts +8 -0
- package/src/form/index.ts +11 -1
- package/src/form/phone-field.tsx +98 -0
- package/src/form/select.style.ts +6 -1
- package/src/form/select.tsx +13 -3
- package/src/form/signature.style.ts +20 -0
- package/src/form/signature.tsx +46 -0
- package/src/link/index.ts +1 -0
- package/src/link/mounted-href.ts +16 -0
- package/src/page/site-page.style.ts +13 -4
- package/src/page/site-page.tsx +8 -3
- package/src/styles/designs/base.css +121 -4
- package/templates/app-shell.hbs +5 -4
- package/dist/chunk-4KFQ26JW.js.map +0 -1
- package/dist/chunk-5TFLOQT6.js.map +0 -1
- package/dist/chunk-BJUU2WTX.js.map +0 -1
- package/dist/chunk-FKC262N4.js.map +0 -1
- package/dist/chunk-JVMJF5JJ.js.map +0 -1
- package/src/account/account.test.tsx +0 -186
- package/src/action/site-action.test.tsx +0 -154
- package/src/auth/auth.test.tsx +0 -132
- package/src/checkout/checkout.test.tsx +0 -187
- package/src/form/choices-field.test.tsx +0 -20
- package/src/form/errors.test.tsx +0 -49
- package/src/form/form.test.tsx +0 -275
- package/src/form/question-focus.test.ts +0 -182
- package/src/form/slider.test.tsx +0 -148
- package/src/form/typed-text.test.ts +0 -52
- package/src/help/article.test.tsx +0 -189
- package/src/help/help.test.tsx +0 -215
- package/src/help/screen-sketch.test.tsx +0 -59
- package/src/install/install.test.tsx +0 -177
- package/src/legal/legal.test.tsx +0 -161
- package/src/legal/policy.test.tsx +0 -137
- package/src/legal/refund.test.tsx +0 -148
- package/src/link/routes-in-page.test.ts +0 -26
- package/src/link/site-link.test.ts +0 -10
- package/src/marketing/marketing.test.tsx +0 -221
- package/src/page/site-failure.test.tsx +0 -65
- package/src/page/site-page.test.tsx +0 -109
- package/src/page/site-read.test.tsx +0 -41
- package/src/pricing/pack-card.test.tsx +0 -107
- package/src/pricing/pricing.test.tsx +0 -261
- package/src/shell/refusal-page.test.ts +0 -19
- package/src/shell/site-scheme-param.test.ts +0 -53
- package/src/shell/site-scheme-switch.test.ts +0 -80
- package/src/shell/site-scheme.test.ts +0 -149
- package/src/shell/site-shell.test.tsx +0 -401
- package/src/testing/markup.ts +0 -65
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { radioTabStop, radioKeyTarget } from './chunk-J2R7XPUR.js';
|
|
2
|
-
import { useRef } from 'react';
|
|
2
|
+
import { useId, useRef } from 'react';
|
|
3
3
|
import { Checkbox, Switch } from '@simplix-react/ui';
|
|
4
4
|
import { defineSlotStyle, partAttributes, slotAttributes } from '@simplix-react/ui/design';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -16,6 +16,18 @@ var siteCheckLabelStyle = defineSlotStyle({
|
|
|
16
16
|
variants: {},
|
|
17
17
|
defaultVariants: {}
|
|
18
18
|
});
|
|
19
|
+
var siteCheckGroupStyle = defineSlotStyle({
|
|
20
|
+
slot: "site-checkbox-group",
|
|
21
|
+
base: "flex min-w-0 flex-col items-start gap-0.5",
|
|
22
|
+
variants: {},
|
|
23
|
+
defaultVariants: {}
|
|
24
|
+
});
|
|
25
|
+
var siteCheckNoteStyle = defineSlotStyle({
|
|
26
|
+
slot: "site-checkbox-note",
|
|
27
|
+
base: "block min-w-0 pl-6 text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)",
|
|
28
|
+
variants: {},
|
|
29
|
+
defaultVariants: {}
|
|
30
|
+
});
|
|
19
31
|
var siteCheckBadgeStyle = defineSlotStyle({
|
|
20
32
|
slot: "site-checkbox-badge",
|
|
21
33
|
base: "mr-1 text-(length:--site-fs-label) leading-(--site-lh-label) font-(--site-fw-strong) tracking-(--site-tracking-label) not-italic text-(--site-accent-text)",
|
|
@@ -94,7 +106,10 @@ var siteRadioBodyStyle = defineSlotStyle({
|
|
|
94
106
|
variants: {},
|
|
95
107
|
defaultVariants: {}
|
|
96
108
|
});
|
|
97
|
-
function SiteCheckbox({ checked, onCheckedChange, label, name, disabled = false, describedBy, required = false, badge, field }) {
|
|
109
|
+
function SiteCheckbox({ checked, onCheckedChange, label, name, disabled = false, describedBy, note, required = false, badge, field }) {
|
|
110
|
+
const noteId = useId();
|
|
111
|
+
const noted = label !== void 0 && note !== void 0;
|
|
112
|
+
const described = [describedBy, noted ? noteId : void 0].filter(Boolean).join(" ");
|
|
98
113
|
const posted = field && checked === true ? /* @__PURE__ */ jsx("input", { type: "hidden", name: field.name, value: field.value }) : null;
|
|
99
114
|
const box = /* @__PURE__ */ jsx(
|
|
100
115
|
Checkbox,
|
|
@@ -106,7 +121,7 @@ function SiteCheckbox({ checked, onCheckedChange, label, name, disabled = false,
|
|
|
106
121
|
required,
|
|
107
122
|
"aria-required": required || void 0,
|
|
108
123
|
"aria-label": label === void 0 ? name : void 0,
|
|
109
|
-
"aria-describedby":
|
|
124
|
+
"aria-describedby": described === "" ? void 0 : described
|
|
110
125
|
}
|
|
111
126
|
);
|
|
112
127
|
if (label === void 0)
|
|
@@ -114,7 +129,7 @@ function SiteCheckbox({ checked, onCheckedChange, label, name, disabled = false,
|
|
|
114
129
|
box,
|
|
115
130
|
posted
|
|
116
131
|
] }) : box;
|
|
117
|
-
|
|
132
|
+
const row = /* @__PURE__ */ jsxs("label", { ...slotAttributes(siteCheckStyle, {}), children: [
|
|
118
133
|
box,
|
|
119
134
|
posted,
|
|
120
135
|
/* @__PURE__ */ jsxs("span", { ...slotAttributes(siteCheckLabelStyle, {}), children: [
|
|
@@ -123,6 +138,11 @@ function SiteCheckbox({ checked, onCheckedChange, label, name, disabled = false,
|
|
|
123
138
|
label
|
|
124
139
|
] })
|
|
125
140
|
] });
|
|
141
|
+
if (!noted) return row;
|
|
142
|
+
return /* @__PURE__ */ jsxs("div", { ...slotAttributes(siteCheckGroupStyle, {}), children: [
|
|
143
|
+
row,
|
|
144
|
+
/* @__PURE__ */ jsx("span", { ...slotAttributes(siteCheckNoteStyle, {}), id: noteId, children: note })
|
|
145
|
+
] });
|
|
126
146
|
}
|
|
127
147
|
function SiteSwitch({ checked, onCheckedChange, label, name, disabled = false, describedBy }) {
|
|
128
148
|
const control = /* @__PURE__ */ jsx(
|
|
@@ -161,6 +181,7 @@ function RadioCards({ label, value, options, onValueChange }) {
|
|
|
161
181
|
type: "button",
|
|
162
182
|
role: "radio",
|
|
163
183
|
"aria-checked": checked,
|
|
184
|
+
"aria-label": option.name,
|
|
164
185
|
"data-value": option.value,
|
|
165
186
|
tabIndex: option.value === stop ? 0 : -1,
|
|
166
187
|
disabled: option.disabled === true,
|
|
@@ -182,5 +203,5 @@ function RadioCards({ label, value, options, onValueChange }) {
|
|
|
182
203
|
}
|
|
183
204
|
|
|
184
205
|
export { RadioCards, SiteCheckbox, SiteSwitch };
|
|
185
|
-
//# sourceMappingURL=chunk-
|
|
186
|
-
//# sourceMappingURL=chunk-
|
|
206
|
+
//# sourceMappingURL=chunk-HZGBIIGN.js.map
|
|
207
|
+
//# sourceMappingURL=chunk-HZGBIIGN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/form/choices.style.ts","../src/form/choices.tsx"],"names":[],"mappings":";;;;;;AAGO,IAAM,iBAAiB,eAAA,CAAgB;AAAA,EAC5C,IAAA,EAAM,mBAAA;AAAA,EACN,IAAA,EAAM,+JAAA;AAAA,EACN,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC,CAAA;AAGM,IAAM,sBAAsB,eAAA,CAAgB;AAAA,EACjD,IAAA,EAAM,qBAAA;AAAA,EACN,IAAA,EAAM,SAAA;AAAA,EACN,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC,CAAA;AAGM,IAAM,sBAAsB,eAAA,CAAgB;AAAA,EACjD,IAAA,EAAM,qBAAA;AAAA,EACN,IAAA,EAAM,2CAAA;AAAA,EACN,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC,CAAA;AAGM,IAAM,qBAAqB,eAAA,CAAgB;AAAA,EAChD,IAAA,EAAM,oBAAA;AAAA,EACN,IAAA,EAAM,iIAAA;AAAA,EACN,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC,CAAA;AAGM,IAAM,sBAAsB,eAAA,CAAgB;AAAA,EACjD,IAAA,EAAM,qBAAA;AAAA,EACN,IAAA,EAAM,4JAAA;AAAA,EACN,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC,CAAA;AAOM,IAAM,oBAAoB,eAAA,CAAgB;AAAA,EAC/C,IAAA,EAAM,eAAA;AAAA,EACN,EAAA,EAAI,MAAA;AAAA,EACJ,IAAA,EACE,kyBAAA;AAAA,EACF,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC,CAA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AC7C,QAAA,EAAA;AAAA,cAAA,MAAA,CAAO,KAAA;AAAA,cACP,MAAA,CAAO;AAAA,aAAA,EACV,CAAA;AAAA,YACC,MAAA,CAAO,IAAA,KAAS,MAAA,mBAAY,GAAA,CAAC,MAAA,EAAA,EAAM,GAAG,cAAA,CAAe,kBAAA,EAAoB,EAAE,CAAA,EAAI,QAAA,EAAA,MAAA,CAAO,MAAK,CAAA,GAAU;AAAA,WAAA,EACxG;AAAA;AAAA,OAAA;AAAA,MApBK,MAAA,CAAO;AAAA,KAqBd;AAAA,EAEJ,CAAC,CAAA,EACH,CAAA;AAEJ","file":"chunk-HZGBIIGN.js","sourcesContent":["import { defineSlotStyle } from \"@simplix-react/ui/design\";\n\n/** A checkbox and its words on one line; the whole line presses the box. */\nexport const siteCheckStyle = defineSlotStyle({\n slot: \"site-checkbox-row\",\n base: \"inline-flex min-w-0 cursor-pointer items-center gap-2 text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane) font-(--site-fw-base) text-(--site-ink)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A checkbox's words. */\nexport const siteCheckLabelStyle = defineSlotStyle({\n slot: \"site-checkbox-label\",\n base: \"min-w-0\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A checkbox and the line under its words. */\nexport const siteCheckGroupStyle = defineSlotStyle({\n slot: \"site-checkbox-group\",\n base: \"flex min-w-0 flex-col items-start gap-0.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The line under a checkbox's words, which starts where the words start. */\nexport const siteCheckNoteStyle = defineSlotStyle({\n slot: \"site-checkbox-note\",\n base: \"block min-w-0 pl-6 text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The word before a consent the next step needs (\"Required\"), drawn for the eye only. */\nexport const siteCheckBadgeStyle = defineSlotStyle({\n slot: \"site-checkbox-badge\",\n base: \"mr-1 text-(length:--site-fs-label) leading-(--site-lh-label) font-(--site-fw-strong) tracking-(--site-tracking-label) not-italic text-(--site-accent-text)\",\n variants: {},\n defaultVariants: {},\n});\n\n/**\n * The framework checkbox drawn in the site design: a 16px box on the control line that fills with\n * the accent when checked. A part over the framework's own slot, so every property the framework\n * draws is set here.\n */\nexport const siteCheckboxStyle = defineSlotStyle({\n slot: \"site-checkbox\",\n as: \"part\",\n base:\n \"inline-grid size-4 shrink-0 cursor-pointer place-items-center rounded-(--site-radius-xs) border border-(--site-control-line) bg-(--site-surface) p-0 text-(--site-on-accent) shadow-none outline-none transition-colors duration-(--site-duration-fast) ease-(--site-ease) hover:border-(--site-accent) focus-visible:shadow-[var(--site-focus-ring)] data-[state=checked]:border-(--site-accent) data-[state=checked]:bg-(--site-accent) data-[state=checked]:text-(--site-on-accent) data-[state=indeterminate]:text-(--site-on-accent) data-[state=checked]:hover:border-(--site-accent-strong) data-[state=checked]:hover:bg-(--site-accent-strong) data-[state=indeterminate]:border-(--site-accent) data-[state=indeterminate]:bg-(--site-accent) disabled:cursor-not-allowed disabled:opacity-(--site-dim) [&_svg]:size-3\",\n variants: {},\n defaultVariants: {},\n});\n\n/**\n * The framework switch drawn in the site design: a 30 by 18 track on the control line with a 14px\n * thumb, filled with the accent when on.\n */\nexport const siteToggleStyle = defineSlotStyle({\n slot: \"site-toggle\",\n as: \"part\",\n base:\n \"relative inline-flex h-4.5 w-7.5 shrink-0 cursor-pointer items-center rounded-(--site-radius-full) border border-(--site-control-line) bg-(--site-surface-sunken) p-px shadow-none outline-none transition-colors duration-(--site-duration-fast) ease-(--site-ease) hover:border-(--site-accent) focus-visible:shadow-[var(--site-focus-ring)] data-[state=checked]:border-(--site-accent) data-[state=checked]:bg-(--site-accent) data-[state=checked]:hover:border-(--site-accent-strong) data-[state=checked]:hover:bg-(--site-accent-strong) disabled:cursor-not-allowed disabled:opacity-(--site-dim) [&>[data-slot=switch-thumb]]:block [&>[data-slot=switch-thumb]]:size-3.5 [&>[data-slot=switch-thumb]]:translate-x-0 [&>[data-slot=switch-thumb]]:rounded-(--site-radius-full) [&>[data-slot=switch-thumb]]:bg-(--site-control-line) [&>[data-slot=switch-thumb]]:shadow-none [&>[data-slot=switch-thumb]]:transition-transform [&>[data-slot=switch-thumb]]:duration-(--site-duration-base) data-[state=checked]:[&>[data-slot=switch-thumb]]:translate-x-3 data-[state=checked]:[&>[data-slot=switch-thumb]]:bg-(--site-on-accent)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A switch and its words on one line. */\nexport const siteToggleRowStyle = defineSlotStyle({\n slot: \"site-toggle-row\",\n base: \"inline-flex min-w-0 cursor-pointer items-center gap-2 text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane) text-(--site-ink)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A few choices, each a card with a radio mark, a title and a line of body. */\nexport const siteRadioCardsStyle = defineSlotStyle({\n slot: \"site-radio-cards\",\n base: \"flex min-w-0 flex-col gap-1.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One choice of {@link siteRadioCardsStyle}: the accent outline and soft ground when chosen. */\nexport const siteRadioCardStyle = defineSlotStyle({\n slot: \"site-radio-card\",\n base:\n \"flex min-w-0 cursor-pointer items-start gap-2.5 rounded-(--site-radius-lg) border px-3 py-2.5 text-left font-(family-name:--site-font-sans) text-(--site-ink) outline-none transition-colors duration-(--site-duration-base) ease-(--site-ease) focus-visible:shadow-[var(--site-focus-ring)] disabled:cursor-not-allowed disabled:opacity-(--site-dim)\",\n variants: {\n checked: {\n true: \"border-(--site-accent) bg-(--site-accent-soft)\",\n false: \"border-(--site-line) bg-(--site-surface) hover:border-(--site-control-line)\",\n },\n },\n defaultVariants: { checked: false },\n});\n\n/** The radio mark of a card: a ring, with a dot when chosen. */\nexport const siteRadioMarkStyle = defineSlotStyle({\n slot: \"site-radio-mark\",\n base: \"mt-0.5 grid size-4 shrink-0 place-items-center rounded-(--site-radius-full) border-2\",\n variants: {\n checked: {\n true: \"border-(--site-accent)\",\n false: \"border-(--site-control-line)\",\n },\n },\n defaultVariants: { checked: false },\n});\n\n/** The dot inside a chosen card's radio mark. */\nexport const siteRadioDotStyle = defineSlotStyle({\n slot: \"site-radio-dot\",\n base: \"size-2 rounded-(--site-radius-full) bg-(--site-accent)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A card's title and body, one over the other. */\nexport const siteRadioTextStyle = defineSlotStyle({\n slot: \"site-radio-text\",\n base: \"flex min-w-0 flex-col gap-0.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A card's title, with a badge beside it. */\nexport const siteRadioTitleStyle = defineSlotStyle({\n slot: \"site-radio-title\",\n base: \"flex items-center gap-1.5 text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane) font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A card's body line. */\nexport const siteRadioBodyStyle = defineSlotStyle({\n slot: \"site-radio-body\",\n base: \"text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n","import { useId, useRef, type KeyboardEvent, type ReactNode } from \"react\";\nimport { Checkbox, Switch } from \"@simplix-react/ui\";\nimport { partAttributes, slotAttributes } from \"@simplix-react/ui/design\";\n\nimport { radioKeyTarget, radioTabStop } from \"./radio-keys\";\n\nimport { siteRadioTitleStyle, siteRadioCardsStyle, siteCheckboxStyle, siteCheckGroupStyle, siteCheckNoteStyle, siteCheckLabelStyle, siteRadioDotStyle, siteRadioMarkStyle, siteToggleRowStyle, siteRadioBodyStyle, siteCheckBadgeStyle, siteToggleStyle, siteRadioCardStyle, siteRadioTextStyle, siteCheckStyle } from \"./choices.style\";\n\n/** Props for {@link SiteCheckbox}. */\nexport interface SiteCheckboxProps {\n readonly checked: boolean | \"indeterminate\";\n readonly onCheckedChange: (checked: boolean) => void;\n /** The words beside the box; the whole line presses it. Without them, pass `name`. */\n readonly label?: ReactNode;\n /** The box's accessible name where it has no words beside it. */\n readonly name?: string;\n readonly disabled?: boolean;\n /** The id of the line that says why the box cannot be changed now; give it with `disabled`. */\n readonly describedBy?: string;\n /**\n * A line under the words that says what checking the box does (\"The time you agree is recorded\").\n * It describes the box and is no part of its name; it is drawn only with `label`.\n */\n readonly note?: ReactNode;\n /**\n * The step cannot go ahead without it: the box reports `aria-required`, and `badge` is drawn\n * before the words for the eye only (\"Required\"), so a screen reader never hears it glued to the\n * first word.\n */\n readonly required?: boolean;\n readonly badge?: ReactNode;\n /**\n * What a plain form posts for the box while it is checked, as a native checkbox would\n * (`rememberMe=on`): a page posted without script reads it, and an unchecked box posts nothing.\n */\n readonly field?: { readonly name: string; readonly value: string };\n}\n\n/**\n * A box that is checked, unchecked or mixed, with its words beside it. The box is the framework's\n * checkbox (its keyboard and state), drawn in the site design.\n */\nexport function SiteCheckbox({ checked, onCheckedChange, label, name, disabled = false, describedBy, note, required = false, badge, field }: SiteCheckboxProps) {\n const noteId = useId();\n const noted = label !== undefined && note !== undefined;\n const described = [describedBy, noted ? noteId : undefined].filter(Boolean).join(\" \");\n // The framework box is a button, which a form does not post; the field travels in a hidden input\n // for exactly as long as the box is checked.\n const posted = field && checked === true ? <input type=\"hidden\" name={field.name} value={field.value} /> : null;\n const box = (\n <Checkbox\n {...partAttributes(siteCheckboxStyle, {})}\n checked={checked}\n onCheckedChange={(next) => onCheckedChange(next === true)}\n disabled={disabled}\n required={required}\n aria-required={required || undefined}\n aria-label={label === undefined ? name : undefined}\n aria-describedby={described === \"\" ? undefined : described}\n />\n );\n if (label === undefined)\n return posted ? (\n <>\n {box}\n {posted}\n </>\n ) : (\n box\n );\n const row = (\n <label {...slotAttributes(siteCheckStyle, {})}>\n {box}\n {posted}\n <span {...slotAttributes(siteCheckLabelStyle, {})}>\n {badge !== undefined ? (\n <em {...slotAttributes(siteCheckBadgeStyle, {})} aria-hidden=\"true\">\n {badge}\n </em>\n ) : null}\n {badge !== undefined ? \" \" : null}\n {label}\n </span>\n </label>\n );\n if (!noted) return row;\n return (\n <div {...slotAttributes(siteCheckGroupStyle, {})}>\n {row}\n <span {...slotAttributes(siteCheckNoteStyle, {})} id={noteId}>\n {note}\n </span>\n </div>\n );\n}\n\n/** Props for {@link SiteSwitch}. */\nexport interface SiteSwitchProps {\n readonly checked: boolean;\n readonly onCheckedChange: (checked: boolean) => void;\n /** The words beside the switch; without them, pass `name`. */\n readonly label?: ReactNode;\n readonly name?: string;\n readonly disabled?: boolean;\n /** The id of the line that describes the switch, such as the reason it is disabled. */\n readonly describedBy?: string;\n}\n\n/** On and off for something that takes effect at once (marketing mail). The framework switch in the site design. */\nexport function SiteSwitch({ checked, onCheckedChange, label, name, disabled = false, describedBy }: SiteSwitchProps) {\n const control = (\n <Switch\n {...partAttributes(siteToggleStyle, {})}\n checked={checked}\n onCheckedChange={onCheckedChange}\n disabled={disabled}\n aria-label={label === undefined ? name : undefined}\n aria-describedby={describedBy}\n />\n );\n if (label === undefined) return control;\n return (\n <label {...slotAttributes(siteToggleRowStyle, {})}>\n {control}\n <span {...slotAttributes(siteCheckLabelStyle, {})}>{label}</span>\n </label>\n );\n}\n\n/** One choice of {@link RadioCards}. */\nexport interface RadioCardOption<T extends string> {\n readonly value: T;\n readonly title: ReactNode;\n readonly body?: ReactNode;\n /** Beside the title, such as a `SiteChip` saying it is the default. */\n readonly badge?: ReactNode;\n /**\n * The card's accessible name, where its title is a picture: the picture is drawn alone, and the\n * words that say what it shows are read without being drawn beside it.\n */\n readonly name?: string;\n readonly disabled?: boolean;\n}\n\n/** Props for {@link RadioCards}. */\nexport interface RadioCardsProps<T extends string> {\n /** The group's accessible name. */\n readonly label: string;\n readonly value: T | null;\n readonly options: readonly RadioCardOption<T>[];\n readonly onValueChange: (value: T) => void;\n}\n\n/**\n * One choice among a few, each a card with a radio mark, a title and a line of body. The group is\n * one Tab stop; the arrows move between the cards and choose the one they land on.\n */\nexport function RadioCards<T extends string>({ label, value, options, onValueChange }: RadioCardsProps<T>) {\n const group = useRef<HTMLDivElement>(null);\n const stop = radioTabStop(options, value);\n const onKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n const target = radioKeyTarget(options, value, event.key);\n if (target === null) return;\n event.preventDefault();\n onValueChange(target);\n group.current?.querySelector<HTMLElement>(`[data-value=\"${CSS.escape(target)}\"]`)?.focus();\n };\n return (\n <div {...slotAttributes(siteRadioCardsStyle, {})} ref={group} role=\"radiogroup\" aria-label={label} onKeyDown={onKeyDown}>\n {options.map((option) => {\n const checked = option.value === value;\n return (\n <button\n key={option.value}\n {...slotAttributes(siteRadioCardStyle, { checked })}\n type=\"button\"\n role=\"radio\"\n aria-checked={checked}\n aria-label={option.name}\n data-value={option.value}\n tabIndex={option.value === stop ? 0 : -1}\n disabled={option.disabled === true}\n onClick={() => onValueChange(option.value)}\n >\n <span {...slotAttributes(siteRadioMarkStyle, { checked })} aria-hidden=\"true\">\n {checked ? <span {...slotAttributes(siteRadioDotStyle, {})} /> : null}\n </span>\n <span {...slotAttributes(siteRadioTextStyle, {})}>\n <span {...slotAttributes(siteRadioTitleStyle, {})}>\n {option.title}\n {option.badge}\n </span>\n {option.body !== undefined ? <span {...slotAttributes(siteRadioBodyStyle, {})}>{option.body}</span> : null}\n </span>\n </button>\n );\n })}\n </div>\n );\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SITE_CARD } from './chunk-
|
|
1
|
+
import { SITE_CARD } from './chunk-EELJOGWB.js';
|
|
2
2
|
import { SiteAction } from './chunk-47HQIB4J.js';
|
|
3
3
|
import { useRef, useEffect } from 'react';
|
|
4
4
|
import { defineSlotStyle, slotAttributes } from '@simplix-react/ui/design';
|
|
@@ -361,5 +361,5 @@ function TableActions({ actions, badge }) {
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
export { DaySeries, PanelLine, QuotaMeter, SitePanel, TableActions, TableCard, dayHeight, shareWidth, siteAccountSectionStyle, siteAccountStyle, siteIdentityMarkStyle, siteIdentityMetaStyle, siteIdentityNameStyle, siteIdentityStyle, siteIdentityTextStyle, siteSectionHeadStyle, siteSectionNavItemStyle, siteSectionNavStyle, siteSettingsActionsStyle, siteSettingsBoxStyle, siteSettingsRowActionsStyle, siteSettingsRowMetaStyle, siteSettingsRowStyle, siteSettingsRowTextStyle, siteSettingsRowTitleStyle, siteSettingsRowsStyle, siteSettingsTextStyle };
|
|
364
|
-
//# sourceMappingURL=chunk-
|
|
365
|
-
//# sourceMappingURL=chunk-
|
|
364
|
+
//# sourceMappingURL=chunk-OWQVRM4W.js.map
|
|
365
|
+
//# sourceMappingURL=chunk-OWQVRM4W.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/account/account.style.ts","../src/account/figures.tsx"],"names":[],"mappings":";;;;;;AAKO,IAAM,mBAAmB,eAAA,CAAgB;AAAA,EAC9C,IAAA,EAAM,cAAA;AAAA,EACN,IAAA,EAAM,+HAAA;AAAA,EACN,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC;AAGM,IAAM,sBAAsB,eAAA,CAAgB;AAAA,EACjD,IAAA,EAAM,kBAAA;AAAA,EACN,IAAA,EAAM,kIAAA;AAAA,EACN,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC;AAOM,IAAM,0BAA0B,eAAA,CAAgB;AAAA,EACrD,IAAA,EAAM,uBAAA;AAAA,EACN,IAAA,EACE,4QAAA;AAAA,EACF,QAAA,EAAU;AAAA,IACR,KAAA,EAAO;AAAA,MACL,OAAA,EAAS,2EAAA;AAAA,MACT,KAAA,EAAO,0EAAA;AAAA,MACP,MAAA,EAAQ;AAAA,KACV;AAAA,IACA,OAAA,EAAS;AAAA,MACP,IAAA,EAAM,qCAAA;AAAA,MACN,KAAA,EAAO;AAAA;AACT,GACF;AAAA,EACA,eAAA,EAAiB,EAAE,KAAA,EAAO,OAAA,EAAS,SAAS,KAAA;AAC9C,CAAC;AAGM,IAAM,0BAA0B,eAAA,CAAgB;AAAA,EACrD,IAAA,EAAM,sBAAA;AAAA,EACN,IAAA,EAAM,sCAAA;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EAAA,EAA4B,GAAG,MAAA,EAAQ,IAAA,EAAK,IAAA,EAAA,EAA5B,MAAA,CAAO,EAA0B,CACnD;AAAA,GAAA,EACH,CAAA;AAEJ","file":"chunk-JJQJFRBI.js","sourcesContent":["import { defineSlotStyle } from \"@simplix-react/ui/design\";\n\nimport { SITE_CARD } from \"../page/site-page.style\";\n\n/** My account: the section list beside the section; below the medium tier the list stands over it. */\nexport const siteAccountStyle = defineSlotStyle({\n slot: \"site-account\",\n base: \"flex min-w-0 items-start gap-8 @max-page-medium/page:flex-col @max-page-medium/page:items-stretch @max-page-medium/page:gap-3\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The section list: a column a fifth of the page wide, a wrapping row below the medium tier. */\nexport const siteSectionNavStyle = defineSlotStyle({\n slot: \"site-section-nav\",\n base: \"flex w-1/5 shrink-0 flex-col gap-0.5 @max-page-medium/page:w-full @max-page-medium/page:flex-row @max-page-medium/page:flex-wrap\",\n variants: {},\n defaultVariants: {},\n});\n\n/**\n * One section of the list: the current one on the accent's soft ground; `danger` (deleting the\n * account) in the bad colour while it is not the current one. A section that is not open yet\n * (`pending`) is the same words as plain text: no ground under the pointer and no press.\n */\nexport const siteSectionNavItemStyle = defineSlotStyle({\n slot: \"site-section-nav-item\",\n base:\n \"cursor-pointer rounded-(--site-radius-md) px-3 py-2 text-left text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane) no-underline outline-none transition-colors duration-(--site-duration-fast) ease-(--site-ease) focus-visible:shadow-[var(--site-focus-ring)]\",\n variants: {\n state: {\n current: \"bg-(--site-accent-soft) font-(--site-fw-strong) text-(--site-accent-text)\",\n plain: \"font-(--site-fw-base) text-(--site-ink) hover:bg-(--site-surface-sunken)\",\n danger: \"font-(--site-fw-base) text-(--site-bad) hover:bg-(--site-surface-sunken)\",\n },\n pending: {\n true: \"cursor-default hover:bg-transparent\",\n false: \"\",\n },\n },\n defaultVariants: { state: \"plain\", pending: false },\n});\n\n/** The section beside the list: the standing notice, the heading and the section's parts, one gap apart. */\nexport const siteAccountSectionStyle = defineSlotStyle({\n slot: \"site-account-section\",\n base: \"flex min-w-0 flex-1 flex-col gap-3.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A heading inside My account: the section's title, or a part's title one level down. */\nexport const siteSectionHeadStyle = defineSlotStyle({\n slot: \"site-section-head\",\n base: \"m-0 outline-none font-(family-name:--site-font-display) tracking-(--site-tracking-display) text-(--site-ink)\",\n variants: {\n level: {\n // The level is the heading's place in the outline; the section's title looks the same at 1 and 2.\n \"1\": \"text-(length:--site-fs-headline) leading-(--site-lh-headline) font-(--site-fw-title)\",\n \"2\": \"text-(length:--site-fs-headline) leading-(--site-lh-headline) font-(--site-fw-title)\",\n \"3\": \"mt-1.5 text-(length:--site-fs-heading) leading-(--site-lh-heading) font-(--site-fw-strong)\",\n },\n },\n defaultVariants: { level: \"2\" },\n});\n\n/** Rows of settings on one card, ruled apart. */\nexport const siteSettingsRowsStyle = defineSlotStyle({\n slot: \"site-settings-rows\",\n base: \"flex min-w-0 flex-col divide-y divide-(--site-line) overflow-hidden rounded-(--site-radius-xl) border border-(--site-line) bg-(--site-surface)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One setting: what it is and its state, then its actions; the actions wrap under on a narrow card. */\nexport const siteSettingsRowStyle = defineSlotStyle({\n slot: \"site-settings-row\",\n base: \"flex min-w-0 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-3\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A row's title over its line. */\nexport const siteSettingsRowTextStyle = defineSlotStyle({\n slot: \"site-settings-row-text\",\n base: \"flex min-w-0 flex-1 basis-60 flex-col gap-0.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A row's title, with a chip beside it. */\nexport const siteSettingsRowTitleStyle = defineSlotStyle({\n slot: \"site-settings-row-title\",\n base: \"flex min-w-0 flex-wrap items-center gap-2 font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A row's line: its state, date or amount, muted. */\nexport const siteSettingsRowMetaStyle = defineSlotStyle({\n slot: \"site-settings-row-meta\",\n base: \"text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A row's actions. */\nexport const siteSettingsRowActionsStyle = defineSlotStyle({\n slot: \"site-settings-row-actions\",\n base: \"flex shrink-0 flex-wrap gap-2\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A question or a confirmation inside a section, on a card; `danger` on the bad colour's soft ground. */\nexport const siteSettingsBoxStyle = defineSlotStyle({\n slot: \"site-settings-box\",\n base: \"flex min-w-0 flex-col gap-3 rounded-(--site-radius-xl) border p-4 outline-none\",\n variants: {\n tone: {\n plain: \"border-(--site-line) bg-(--site-surface)\",\n danger: \"border-(--site-bad) bg-(--site-bad-soft)\",\n },\n },\n defaultVariants: { tone: \"plain\" },\n});\n\n/** A sentence inside a section in the reading size: a quote for a change, what cancelling means (muted), or a state in bold. */\nexport const siteSettingsTextStyle = defineSlotStyle({\n slot: \"site-settings-text\",\n base: \"m-0 min-w-0 text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane)\",\n variants: {\n tone: {\n plain: \"\",\n muted: \"text-(--site-ink-muted)\",\n strong: \"font-(--site-fw-strong)\",\n },\n },\n defaultVariants: { tone: \"plain\" },\n});\n\n/** The actions of a question in a section. */\nexport const siteSettingsActionsStyle = defineSlotStyle({\n slot: \"site-settings-actions\",\n base: \"flex min-w-0 flex-wrap gap-2\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Who or what a section is about: the round mark, the name and its line, and a chip. */\nexport const siteIdentityStyle = defineSlotStyle({\n slot: \"site-identity\",\n base: \"flex min-w-0 items-center gap-3\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The round mark: the product's glyph or initial on the tone's soft ground. */\nexport const siteIdentityMarkStyle = defineSlotStyle({\n slot: \"site-identity-mark\",\n base: \"grid size-9.5 shrink-0 place-items-center overflow-clip rounded-(--site-radius-full) text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane) font-(--site-fw-strong) [&_svg]:size-4.5\",\n variants: {\n tone: {\n accent: \"bg-(--site-accent-soft) text-(--site-accent-text)\",\n voice: \"bg-(--site-voice-soft) text-(--site-voice-text)\",\n },\n },\n defaultVariants: { tone: \"accent\" },\n});\n\n/** The name and its line. */\nexport const siteIdentityTextStyle = defineSlotStyle({\n slot: \"site-identity-text\",\n base: \"flex min-w-0 flex-1 flex-col\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The name. */\nexport const siteIdentityNameStyle = defineSlotStyle({\n slot: \"site-identity-name\",\n base: \"text-(length:--site-fs-body) leading-(--site-lh-body) font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The name's line, muted. */\nexport const siteIdentityMetaStyle = defineSlotStyle({\n slot: \"site-identity-meta\",\n base: \"text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A bordered panel inside a section: a meter, a chart, what the free plan gives. */\nexport const sitePanelStyle = defineSlotStyle({\n slot: \"site-panel\",\n base: SITE_CARD,\n variants: {},\n defaultVariants: {},\n});\n\n/** A panel's title. */\nexport const sitePanelTitleStyle = defineSlotStyle({\n slot: \"site-panel-title\",\n base: \"m-0 text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane) font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A line inside a panel: what it says at the start, an action at the end. */\nexport const sitePanelLineStyle = defineSlotStyle({\n slot: \"site-panel-line\",\n base: \"flex min-w-0 flex-wrap items-center justify-between gap-2 text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A share of an allowance: the bar, then what it says at its two ends. */\nexport const siteQuotaMeterStyle = defineSlotStyle({\n slot: \"site-quota-meter\",\n base: \"flex min-w-0 flex-col gap-1.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The meter's track. */\nexport const siteQuotaTrackStyle = defineSlotStyle({\n slot: \"site-quota-track\",\n base: \"relative h-2.5 overflow-hidden rounded-(--site-radius-full) bg-(--site-surface-sunken)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The share filled, in the accent; its width is the share. */\nexport const siteQuotaFillStyle = defineSlotStyle({\n slot: \"site-quota-fill\",\n base: \"absolute inset-y-0 left-0 rounded-(--site-radius-full) bg-(--site-accent) transition-[width] duration-(--site-duration-base) ease-(--site-ease)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** What the meter says at its start and its end, muted; they wrap on a narrow panel. */\nexport const siteQuotaLabelsStyle = defineSlotStyle({\n slot: \"site-quota-labels\",\n base: \"flex min-w-0 flex-wrap justify-between gap-x-3 text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A run of days as bars standing on one line, the tallest reaching the top. */\nexport const siteDaySeriesStyle = defineSlotStyle({\n slot: \"site-day-series\",\n base: \"m-0 flex h-30 list-none items-end gap-1.5 p-0\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One day's column. */\nexport const siteDayStyle = defineSlotStyle({\n slot: \"site-day\",\n base: \"flex h-full min-w-0 flex-1 items-end\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One day's words, for a screen reader only. */\nexport const siteDayLabelStyle = defineSlotStyle({\n slot: \"site-day-label\",\n base: \"sr-only\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One day's bar; its height is the day's share of the tallest. */\nexport const siteDayBarStyle = defineSlotStyle({\n slot: \"site-day-bar\",\n base: \"block w-full rounded-t-(--site-radius-sm) bg-(--site-accent)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The first and the last day under the bars. */\nexport const siteDayAxisStyle = defineSlotStyle({\n slot: \"site-day-axis\",\n base: \"flex justify-between text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/**\n * A table on a card: equal columns, the first bold, the middle muted, the last at the end. Below the\n * narrow page tier the columns take their content's width, so the last column holds its widest\n * action (a receipt's refund request) instead of cutting it at the card's edge.\n */\nexport const siteTableCardStyle = defineSlotStyle({\n slot: \"site-table-card\",\n base: \"w-full min-w-0 table-fixed overflow-hidden rounded-(--site-radius-xl) border border-(--site-line) bg-(--site-surface) text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane) @max-page-narrow/page:table-auto\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The table's head row, on the sunken ground. */\nexport const siteTableCardHeadStyle = defineSlotStyle({\n slot: \"site-table-card-head\",\n base: \"bg-(--site-surface-sunken) text-left text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A column's name; the last column's at the end. */\nexport const siteTableCardThStyle = defineSlotStyle({\n slot: \"site-table-card-th\",\n base: \"px-4 py-2 font-(--site-fw-strong)\",\n variants: {\n end: {\n true: \"text-right\",\n false: \"\",\n },\n },\n defaultVariants: { end: false },\n});\n\n/** The table's rows, ruled apart. */\nexport const siteTableCardBodyStyle = defineSlotStyle({\n slot: \"site-table-card-body\",\n base: \"divide-y divide-(--site-line)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One row. */\nexport const siteTableCardRowStyle = defineSlotStyle({\n slot: \"site-table-card-row\",\n base: \"align-middle outline-none focus-visible:shadow-[var(--site-focus-ring-inset)]\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One cell: the row's subject in bold, a value muted, or the end figure or actions at the end. */\nexport const siteTableCardCellStyle = defineSlotStyle({\n slot: \"site-table-card-cell\",\n base: \"break-words px-4 py-2.5\",\n variants: {\n kind: {\n lead: \"font-(--site-fw-strong)\",\n value: \"text-(--site-ink-muted)\",\n end: \"text-right\",\n },\n },\n defaultVariants: { kind: \"value\" },\n});\n\n/** A row's actions in its end cell. */\nexport const siteTableCardActionsStyle = defineSlotStyle({\n slot: \"site-table-card-actions\",\n base: \"inline-flex flex-wrap justify-end gap-1.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Under a table whose rows grow: the way to show the next rows. */\nexport const siteTableCardMoreStyle = defineSlotStyle({\n slot: \"site-table-card-more\",\n base: \"flex min-w-0 justify-center\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One end of a meter's labels, an axis's labels or a panel line's words. */\nexport const siteFigureLabelStyle = defineSlotStyle({\n slot: \"site-figure-label\",\n base: \"min-w-0\",\n variants: {},\n defaultVariants: {},\n});\n","import { useEffect, useRef, type MouseEvent, type ReactNode } from \"react\";\nimport { slotAttributes } from \"@simplix-react/ui/design\";\n\nimport { SiteAction, type SiteActionSpec } from \"../action/site-action\";\nimport {\n siteDayAxisStyle,\n siteDayBarStyle,\n siteDayLabelStyle,\n siteDaySeriesStyle,\n siteDayStyle,\n siteFigureLabelStyle,\n sitePanelLineStyle,\n sitePanelStyle,\n sitePanelTitleStyle,\n siteQuotaFillStyle,\n siteQuotaLabelsStyle,\n siteQuotaMeterStyle,\n siteQuotaTrackStyle,\n siteTableCardActionsStyle,\n siteTableCardBodyStyle,\n siteTableCardCellStyle,\n siteTableCardHeadStyle,\n siteTableCardMoreStyle,\n siteTableCardRowStyle,\n siteTableCardStyle,\n siteTableCardThStyle,\n} from \"./account.style\";\n\n/** The share of a whole as a width, held between empty and full. */\nexport const shareWidth = (share: number): string => `${Math.max(0, Math.min(1, Number.isFinite(share) ? share : 0)) * 100}%`;\n\n/** Props for {@link SitePanel}. */\nexport interface SitePanelProps {\n /** The panel's title (an `h3`), or none. */\n readonly title?: ReactNode;\n /** The panel's accessible name when it is a region of its own (\"Last 14 days\"). */\n readonly label?: string;\n readonly children: ReactNode;\n}\n\n/** A bordered panel inside a section: a meter, a chart, or what the free plan gives. */\nexport function SitePanel({ title, label, children }: SitePanelProps) {\n return (\n <section {...slotAttributes(sitePanelStyle, {})} aria-label={label}>\n {title !== undefined ? <h3 {...slotAttributes(sitePanelTitleStyle, {})}>{title}</h3> : null}\n {children}\n </section>\n );\n}\n\n/** Props for {@link PanelLine}. */\nexport interface PanelLineProps {\n /** What the line says, muted. */\n readonly children: ReactNode;\n /** At the end, small: the way to more (topping up, the plans). */\n readonly action?: SiteActionSpec;\n}\n\n/** A line inside a panel: what it says at the start and an action at the end. */\nexport function PanelLine({ children, action }: PanelLineProps) {\n return (\n <div {...slotAttributes(sitePanelLineStyle, {})}>\n <span {...slotAttributes(siteFigureLabelStyle, {})}>{children}</span>\n {action !== undefined ? <SiteAction {...action} size=\"sm\" /> : null}\n </div>\n );\n}\n\n/** Props for {@link QuotaMeter}. */\nexport interface QuotaMeterProps {\n /** The share left or used, from 0 to 1. */\n readonly share: number;\n /** The bar's accessible description (\"11,760 of 50,000 characters used\"). */\n readonly label: string;\n /** What it says at the start (the period) and at the end (what is left). */\n readonly start: ReactNode;\n readonly end: ReactNode;\n}\n\n/** A share of an allowance: a bar on the sunken track, with a line at each end under it. */\nexport function QuotaMeter({ share, label, start, end }: QuotaMeterProps) {\n return (\n <div {...slotAttributes(siteQuotaMeterStyle, {})}>\n <div {...slotAttributes(siteQuotaTrackStyle, {})} role=\"img\" aria-label={label}>\n <i {...slotAttributes(siteQuotaFillStyle, {})} style={{ width: shareWidth(share) }} />\n </div>\n <div {...slotAttributes(siteQuotaLabelsStyle, {})}>\n <span {...slotAttributes(siteFigureLabelStyle, {})}>{start}</span>\n <span {...slotAttributes(siteFigureLabelStyle, {})}>{end}</span>\n </div>\n </div>\n );\n}\n\n/** One day of {@link DaySeries}. */\nexport interface SeriesDay {\n readonly key: string;\n readonly value: number;\n /** What the day says to a screen reader and under the pointer (\"Oct 3: 1,240 characters\"). */\n readonly label: string;\n}\n\n/** Props for {@link DaySeries}. */\nexport interface DaySeriesProps {\n readonly days: readonly SeriesDay[];\n /** The first and the last day under the bars. */\n readonly from?: ReactNode;\n readonly to?: ReactNode;\n /** The least height a day's bar keeps, as a share of the tallest, so a day without use still shows. */\n readonly floor?: number;\n}\n\n/** A day's height as a share of the tallest day, never under the floor. */\nexport const dayHeight = (value: number, max: number, floor = 0.02): string => `${Math.max(floor, max > 0 ? value / max : 0) * 100}%`;\n\n/** A run of days as bars on one line, the tallest reaching the top; each day is read out by its label. */\nexport function DaySeries({ days, from, to, floor }: DaySeriesProps) {\n const max = Math.max(1, ...days.map((day) => day.value));\n return (\n <>\n <ol {...slotAttributes(siteDaySeriesStyle, {})}>\n {days.map((day) => (\n <li key={day.key} {...slotAttributes(siteDayStyle, {})} title={day.label}>\n <span {...slotAttributes(siteDayLabelStyle, {})}>{day.label}</span>\n <i {...slotAttributes(siteDayBarStyle, {})} aria-hidden=\"true\" style={{ height: dayHeight(day.value, max, floor) }} />\n </li>\n ))}\n </ol>\n {from !== undefined || to !== undefined ? (\n <div {...slotAttributes(siteDayAxisStyle, {})} aria-hidden=\"true\">\n <span {...slotAttributes(siteFigureLabelStyle, {})}>{from}</span>\n <span {...slotAttributes(siteFigureLabelStyle, {})}>{to}</span>\n </div>\n ) : null}\n </>\n );\n}\n\n/** One column of {@link TableCard}. */\nexport interface TableCardColumn<K extends string> {\n readonly key: K;\n readonly label: ReactNode;\n}\n\n/** Props for {@link TableCard}. */\nexport interface TableCardProps<K extends string> {\n /** The table's accessible name. */\n readonly label: string;\n /** The first column is the row's subject in bold, the last sits at the end (a figure or actions). */\n readonly columns: readonly TableCardColumn<K>[];\n readonly rows: readonly { readonly key: string; readonly cells: Readonly<Record<K, ReactNode>> }[];\n /** For rows that grow: the way to show the next ones, under the table. */\n readonly more?: SiteActionSpec;\n}\n\n/**\n * A table on a card: equal columns, a head row on the sunken ground, the first column bold, the\n * middle ones muted and the last one at the end, so figures line up down it. A set that grows past\n * a page passes `more`.\n *\n * <p>Pressing `more` moves the focus to the first row it added once the rows arrive, so a reader on\n * the keyboard reads on from where the table grew. The control is gone after the last page, and the\n * focus would otherwise fall back to the document.\n */\nexport function TableCard<K extends string>({ label, columns, rows, more }: TableCardProps<K>) {\n const last = columns.length - 1;\n const kindOf = (index: number) => (index === 0 ? \"lead\" : index === last ? \"end\" : \"value\");\n const body = useRef<HTMLTableSectionElement>(null);\n // The row count when `more` was pressed, until the rows it asked for arrive.\n const grownFrom = useRef<number | undefined>(undefined);\n useEffect(() => {\n const from = grownFrom.current;\n if (from === undefined || rows.length <= from) return;\n grownFrom.current = undefined;\n body.current?.rows[from]?.focus();\n }, [rows.length]);\n const pressMore =\n more === undefined\n ? undefined\n : {\n ...more,\n onSelect: (event: MouseEvent<HTMLElement>) => {\n grownFrom.current = rows.length;\n more.onSelect?.(event);\n },\n };\n return (\n <>\n <table {...slotAttributes(siteTableCardStyle, {})} aria-label={label}>\n <thead>\n <tr {...slotAttributes(siteTableCardHeadStyle, {})}>\n {columns.map((column, index) => (\n <th key={column.key} {...slotAttributes(siteTableCardThStyle, { end: index === last && index > 0 })} scope=\"col\">\n {column.label}\n </th>\n ))}\n </tr>\n </thead>\n <tbody ref={body} {...slotAttributes(siteTableCardBodyStyle, {})}>\n {rows.map((row) => (\n // A row takes the focus only from a script (after `more`), never from Tab.\n <tr key={row.key} tabIndex={-1} {...slotAttributes(siteTableCardRowStyle, {})}>\n {columns.map((column, index) => (\n <td key={column.key} {...slotAttributes(siteTableCardCellStyle, { kind: kindOf(index) })}>\n {row.cells[column.key]}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n {more !== undefined ? (\n <div {...slotAttributes(siteTableCardMoreStyle, {})}>\n <SiteAction {...(pressMore ?? more)} tone={more.tone ?? \"quiet\"} size=\"sm\" />\n </div>\n ) : null}\n </>\n );\n}\n\n/** Props for {@link TableActions}. */\nexport interface TableActionsProps {\n readonly actions: readonly SiteActionSpec[];\n /** Where the row stands, a `SiteChip`, drawn before the actions (a refund asked for a payment). */\n readonly badge?: ReactNode;\n}\n\n/** A row's small actions in its end cell, wrapping toward the end, after the row's state when it has one. */\nexport function TableActions({ actions, badge }: TableActionsProps) {\n return (\n <span {...slotAttributes(siteTableCardActionsStyle, {})}>\n {badge}\n {actions.map((action) => (\n <SiteAction key={action.id} {...action} size=\"sm\" />\n ))}\n </span>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/account/account.style.ts","../src/account/figures.tsx"],"names":[],"mappings":";;;;;;AAKO,IAAM,mBAAmB,eAAA,CAAgB;AAAA,EAC9C,IAAA,EAAM,cAAA;AAAA,EACN,IAAA,EAAM,+HAAA;AAAA,EACN,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC;AAGM,IAAM,sBAAsB,eAAA,CAAgB;AAAA,EACjD,IAAA,EAAM,kBAAA;AAAA,EACN,IAAA,EAAM,kIAAA;AAAA,EACN,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC;AAOM,IAAM,0BAA0B,eAAA,CAAgB;AAAA,EACrD,IAAA,EAAM,uBAAA;AAAA,EACN,IAAA,EACE,4QAAA;AAAA,EACF,QAAA,EAAU;AAAA,IACR,KAAA,EAAO;AAAA,MACL,OAAA,EAAS,2EAAA;AAAA,MACT,KAAA,EAAO,0EAAA;AAAA,MACP,MAAA,EAAQ;AAAA,KACV;AAAA,IACA,OAAA,EAAS;AAAA,MACP,IAAA,EAAM,qCAAA;AAAA,MACN,KAAA,EAAO;AAAA;AACT,GACF;AAAA,EACA,eAAA,EAAiB,EAAE,KAAA,EAAO,OAAA,EAAS,SAAS,KAAA;AAC9C,CAAC;AAGM,IAAM,0BAA0B,eAAA,CAAgB;AAAA,EACrD,IAAA,EAAM,sBAAA;AAAA,EACN,IAAA,EAAM,sCAAA;AAAA,EACN,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC;AAGM,IAAM,uBAAuB,eAAA,CAAgB;AAAA,EAClD,IAAA,EAAM,mBAAA;AAAA,EACN,IAAA,EAAM,8GAAA;AAAA,EACN,QAAA,EAAU;AAAA,IACR,KAAA,EAAO;AAAA;AAAA,MAEL,GAAA,EAA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** My account: the section list beside the section; below the medium tier the list stands over it. */\nexport const siteAccountStyle = defineSlotStyle({\n slot: \"site-account\",\n base: \"flex min-w-0 items-start gap-8 @max-page-medium/page:flex-col @max-page-medium/page:items-stretch @max-page-medium/page:gap-3\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The section list: a column a fifth of the page wide, a wrapping row below the medium tier. */\nexport const siteSectionNavStyle = defineSlotStyle({\n slot: \"site-section-nav\",\n base: \"flex w-1/5 shrink-0 flex-col gap-0.5 @max-page-medium/page:w-full @max-page-medium/page:flex-row @max-page-medium/page:flex-wrap\",\n variants: {},\n defaultVariants: {},\n});\n\n/**\n * One section of the list: the current one on the accent's soft ground; `danger` (deleting the\n * account) in the bad colour while it is not the current one. A section that is not open yet\n * (`pending`) is the same words as plain text: no ground under the pointer and no press.\n */\nexport const siteSectionNavItemStyle = defineSlotStyle({\n slot: \"site-section-nav-item\",\n base:\n \"cursor-pointer rounded-(--site-radius-md) px-3 py-2 text-left text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane) no-underline outline-none transition-colors duration-(--site-duration-fast) ease-(--site-ease) focus-visible:shadow-[var(--site-focus-ring)]\",\n variants: {\n state: {\n current: \"bg-(--site-accent-soft) font-(--site-fw-strong) text-(--site-accent-text)\",\n plain: \"font-(--site-fw-base) text-(--site-ink) hover:bg-(--site-surface-sunken)\",\n danger: \"font-(--site-fw-base) text-(--site-bad) hover:bg-(--site-surface-sunken)\",\n },\n pending: {\n true: \"cursor-default hover:bg-transparent\",\n false: \"\",\n },\n },\n defaultVariants: { state: \"plain\", pending: false },\n});\n\n/** The section beside the list: the standing notice, the heading and the section's parts, one gap apart. */\nexport const siteAccountSectionStyle = defineSlotStyle({\n slot: \"site-account-section\",\n base: \"flex min-w-0 flex-1 flex-col gap-3.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A heading inside My account: the section's title, or a part's title one level down. */\nexport const siteSectionHeadStyle = defineSlotStyle({\n slot: \"site-section-head\",\n base: \"m-0 outline-none font-(family-name:--site-font-display) tracking-(--site-tracking-display) text-(--site-ink)\",\n variants: {\n level: {\n // The level is the heading's place in the outline; the section's title looks the same at 1 and 2.\n \"1\": \"text-(length:--site-fs-headline) leading-(--site-lh-headline) font-(--site-fw-title)\",\n \"2\": \"text-(length:--site-fs-headline) leading-(--site-lh-headline) font-(--site-fw-title)\",\n \"3\": \"mt-1.5 text-(length:--site-fs-heading) leading-(--site-lh-heading) font-(--site-fw-strong)\",\n },\n },\n defaultVariants: { level: \"2\" },\n});\n\n/** Rows of settings on one card, ruled apart. */\nexport const siteSettingsRowsStyle = defineSlotStyle({\n slot: \"site-settings-rows\",\n base: \"flex min-w-0 flex-col divide-y divide-(--site-line) overflow-hidden rounded-(--site-radius-xl) border border-(--site-line) bg-(--site-surface)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One setting: what it is and its state, then its actions; the actions wrap under on a narrow card. */\nexport const siteSettingsRowStyle = defineSlotStyle({\n slot: \"site-settings-row\",\n base: \"flex min-w-0 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-3\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A row's title over its line. */\nexport const siteSettingsRowTextStyle = defineSlotStyle({\n slot: \"site-settings-row-text\",\n base: \"flex min-w-0 flex-1 basis-60 flex-col gap-0.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A row's title, with a chip beside it. */\nexport const siteSettingsRowTitleStyle = defineSlotStyle({\n slot: \"site-settings-row-title\",\n base: \"flex min-w-0 flex-wrap items-center gap-2 font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A row's line: its state, date or amount, muted. */\nexport const siteSettingsRowMetaStyle = defineSlotStyle({\n slot: \"site-settings-row-meta\",\n base: \"text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A row's actions. */\nexport const siteSettingsRowActionsStyle = defineSlotStyle({\n slot: \"site-settings-row-actions\",\n base: \"flex shrink-0 flex-wrap gap-2\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A question or a confirmation inside a section, on a card; `danger` on the bad colour's soft ground. */\nexport const siteSettingsBoxStyle = defineSlotStyle({\n slot: \"site-settings-box\",\n base: \"flex min-w-0 flex-col gap-3 rounded-(--site-radius-xl) border p-4 outline-none\",\n variants: {\n tone: {\n plain: \"border-(--site-line) bg-(--site-surface)\",\n danger: \"border-(--site-bad) bg-(--site-bad-soft)\",\n },\n },\n defaultVariants: { tone: \"plain\" },\n});\n\n/** A sentence inside a section in the reading size: a quote for a change, what cancelling means (muted), or a state in bold. */\nexport const siteSettingsTextStyle = defineSlotStyle({\n slot: \"site-settings-text\",\n base: \"m-0 min-w-0 text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane)\",\n variants: {\n tone: {\n plain: \"\",\n muted: \"text-(--site-ink-muted)\",\n strong: \"font-(--site-fw-strong)\",\n },\n },\n defaultVariants: { tone: \"plain\" },\n});\n\n/** The actions of a question in a section. */\nexport const siteSettingsActionsStyle = defineSlotStyle({\n slot: \"site-settings-actions\",\n base: \"flex min-w-0 flex-wrap gap-2\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Who or what a section is about: the round mark, the name and its line, and a chip. */\nexport const siteIdentityStyle = defineSlotStyle({\n slot: \"site-identity\",\n base: \"flex min-w-0 items-center gap-3\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The round mark: the product's glyph or initial on the tone's soft ground. */\nexport const siteIdentityMarkStyle = defineSlotStyle({\n slot: \"site-identity-mark\",\n base: \"grid size-9.5 shrink-0 place-items-center overflow-clip rounded-(--site-radius-full) text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane) font-(--site-fw-strong) [&_svg]:size-4.5\",\n variants: {\n tone: {\n accent: \"bg-(--site-accent-soft) text-(--site-accent-text)\",\n voice: \"bg-(--site-voice-soft) text-(--site-voice-text)\",\n },\n },\n defaultVariants: { tone: \"accent\" },\n});\n\n/** The name and its line. */\nexport const siteIdentityTextStyle = defineSlotStyle({\n slot: \"site-identity-text\",\n base: \"flex min-w-0 flex-1 flex-col\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The name. */\nexport const siteIdentityNameStyle = defineSlotStyle({\n slot: \"site-identity-name\",\n base: \"text-(length:--site-fs-body) leading-(--site-lh-body) font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The name's line, muted. */\nexport const siteIdentityMetaStyle = defineSlotStyle({\n slot: \"site-identity-meta\",\n base: \"text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A bordered panel inside a section: a meter, a chart, what the free plan gives. */\nexport const sitePanelStyle = defineSlotStyle({\n slot: \"site-panel\",\n base: SITE_CARD,\n variants: {},\n defaultVariants: {},\n});\n\n/** A panel's title. */\nexport const sitePanelTitleStyle = defineSlotStyle({\n slot: \"site-panel-title\",\n base: \"m-0 text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane) font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A line inside a panel: what it says at the start, an action at the end. */\nexport const sitePanelLineStyle = defineSlotStyle({\n slot: \"site-panel-line\",\n base: \"flex min-w-0 flex-wrap items-center justify-between gap-2 text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A share of an allowance: the bar, then what it says at its two ends. */\nexport const siteQuotaMeterStyle = defineSlotStyle({\n slot: \"site-quota-meter\",\n base: \"flex min-w-0 flex-col gap-1.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The meter's track. */\nexport const siteQuotaTrackStyle = defineSlotStyle({\n slot: \"site-quota-track\",\n base: \"relative h-2.5 overflow-hidden rounded-(--site-radius-full) bg-(--site-surface-sunken)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The share filled, in the accent; its width is the share. */\nexport const siteQuotaFillStyle = defineSlotStyle({\n slot: \"site-quota-fill\",\n base: \"absolute inset-y-0 left-0 rounded-(--site-radius-full) bg-(--site-accent) transition-[width] duration-(--site-duration-base) ease-(--site-ease)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** What the meter says at its start and its end, muted; they wrap on a narrow panel. */\nexport const siteQuotaLabelsStyle = defineSlotStyle({\n slot: \"site-quota-labels\",\n base: \"flex min-w-0 flex-wrap justify-between gap-x-3 text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A run of days as bars standing on one line, the tallest reaching the top. */\nexport const siteDaySeriesStyle = defineSlotStyle({\n slot: \"site-day-series\",\n base: \"m-0 flex h-30 list-none items-end gap-1.5 p-0\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One day's column. */\nexport const siteDayStyle = defineSlotStyle({\n slot: \"site-day\",\n base: \"flex h-full min-w-0 flex-1 items-end\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One day's words, for a screen reader only. */\nexport const siteDayLabelStyle = defineSlotStyle({\n slot: \"site-day-label\",\n base: \"sr-only\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One day's bar; its height is the day's share of the tallest. */\nexport const siteDayBarStyle = defineSlotStyle({\n slot: \"site-day-bar\",\n base: \"block w-full rounded-t-(--site-radius-sm) bg-(--site-accent)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The first and the last day under the bars. */\nexport const siteDayAxisStyle = defineSlotStyle({\n slot: \"site-day-axis\",\n base: \"flex justify-between text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/**\n * A table on a card: equal columns, the first bold, the middle muted, the last at the end. Below the\n * narrow page tier the columns take their content's width, so the last column holds its widest\n * action (a receipt's refund request) instead of cutting it at the card's edge.\n */\nexport const siteTableCardStyle = defineSlotStyle({\n slot: \"site-table-card\",\n base: \"w-full min-w-0 table-fixed overflow-hidden rounded-(--site-radius-xl) border border-(--site-line) bg-(--site-surface) text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane) @max-page-narrow/page:table-auto\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The table's head row, on the sunken ground. */\nexport const siteTableCardHeadStyle = defineSlotStyle({\n slot: \"site-table-card-head\",\n base: \"bg-(--site-surface-sunken) text-left text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A column's name; the last column's at the end. */\nexport const siteTableCardThStyle = defineSlotStyle({\n slot: \"site-table-card-th\",\n base: \"px-4 py-2 font-(--site-fw-strong)\",\n variants: {\n end: {\n true: \"text-right\",\n false: \"\",\n },\n },\n defaultVariants: { end: false },\n});\n\n/** The table's rows, ruled apart. */\nexport const siteTableCardBodyStyle = defineSlotStyle({\n slot: \"site-table-card-body\",\n base: \"divide-y divide-(--site-line)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One row. */\nexport const siteTableCardRowStyle = defineSlotStyle({\n slot: \"site-table-card-row\",\n base: \"align-middle outline-none focus-visible:shadow-[var(--site-focus-ring-inset)]\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One cell: the row's subject in bold, a value muted, or the end figure or actions at the end. */\nexport const siteTableCardCellStyle = defineSlotStyle({\n slot: \"site-table-card-cell\",\n base: \"break-words px-4 py-2.5\",\n variants: {\n kind: {\n lead: \"font-(--site-fw-strong)\",\n value: \"text-(--site-ink-muted)\",\n end: \"text-right\",\n },\n },\n defaultVariants: { kind: \"value\" },\n});\n\n/** A row's actions in its end cell. */\nexport const siteTableCardActionsStyle = defineSlotStyle({\n slot: \"site-table-card-actions\",\n base: \"inline-flex flex-wrap justify-end gap-1.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Under a table whose rows grow: the way to show the next rows. */\nexport const siteTableCardMoreStyle = defineSlotStyle({\n slot: \"site-table-card-more\",\n base: \"flex min-w-0 justify-center\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One end of a meter's labels, an axis's labels or a panel line's words. */\nexport const siteFigureLabelStyle = defineSlotStyle({\n slot: \"site-figure-label\",\n base: \"min-w-0\",\n variants: {},\n defaultVariants: {},\n});\n","import { useEffect, useRef, type MouseEvent, type ReactNode } from \"react\";\nimport { slotAttributes } from \"@simplix-react/ui/design\";\n\nimport { SiteAction, type SiteActionSpec } from \"../action/site-action\";\nimport {\n siteDayAxisStyle,\n siteDayBarStyle,\n siteDayLabelStyle,\n siteDaySeriesStyle,\n siteDayStyle,\n siteFigureLabelStyle,\n sitePanelLineStyle,\n sitePanelStyle,\n sitePanelTitleStyle,\n siteQuotaFillStyle,\n siteQuotaLabelsStyle,\n siteQuotaMeterStyle,\n siteQuotaTrackStyle,\n siteTableCardActionsStyle,\n siteTableCardBodyStyle,\n siteTableCardCellStyle,\n siteTableCardHeadStyle,\n siteTableCardMoreStyle,\n siteTableCardRowStyle,\n siteTableCardStyle,\n siteTableCardThStyle,\n} from \"./account.style\";\n\n/** The share of a whole as a width, held between empty and full. */\nexport const shareWidth = (share: number): string => `${Math.max(0, Math.min(1, Number.isFinite(share) ? share : 0)) * 100}%`;\n\n/** Props for {@link SitePanel}. */\nexport interface SitePanelProps {\n /** The panel's title (an `h3`), or none. */\n readonly title?: ReactNode;\n /** The panel's accessible name when it is a region of its own (\"Last 14 days\"). */\n readonly label?: string;\n readonly children: ReactNode;\n}\n\n/** A bordered panel inside a section: a meter, a chart, or what the free plan gives. */\nexport function SitePanel({ title, label, children }: SitePanelProps) {\n return (\n <section {...slotAttributes(sitePanelStyle, {})} aria-label={label}>\n {title !== undefined ? <h3 {...slotAttributes(sitePanelTitleStyle, {})}>{title}</h3> : null}\n {children}\n </section>\n );\n}\n\n/** Props for {@link PanelLine}. */\nexport interface PanelLineProps {\n /** What the line says, muted. */\n readonly children: ReactNode;\n /** At the end, small: the way to more (topping up, the plans). */\n readonly action?: SiteActionSpec;\n}\n\n/** A line inside a panel: what it says at the start and an action at the end. */\nexport function PanelLine({ children, action }: PanelLineProps) {\n return (\n <div {...slotAttributes(sitePanelLineStyle, {})}>\n <span {...slotAttributes(siteFigureLabelStyle, {})}>{children}</span>\n {action !== undefined ? <SiteAction {...action} size=\"sm\" /> : null}\n </div>\n );\n}\n\n/** Props for {@link QuotaMeter}. */\nexport interface QuotaMeterProps {\n /** The share left or used, from 0 to 1. */\n readonly share: number;\n /** The bar's accessible description (\"11,760 of 50,000 characters used\"). */\n readonly label: string;\n /** What it says at the start (the period) and at the end (what is left). */\n readonly start: ReactNode;\n readonly end: ReactNode;\n}\n\n/** A share of an allowance: a bar on the sunken track, with a line at each end under it. */\nexport function QuotaMeter({ share, label, start, end }: QuotaMeterProps) {\n return (\n <div {...slotAttributes(siteQuotaMeterStyle, {})}>\n <div {...slotAttributes(siteQuotaTrackStyle, {})} role=\"img\" aria-label={label}>\n <i {...slotAttributes(siteQuotaFillStyle, {})} style={{ width: shareWidth(share) }} />\n </div>\n <div {...slotAttributes(siteQuotaLabelsStyle, {})}>\n <span {...slotAttributes(siteFigureLabelStyle, {})}>{start}</span>\n <span {...slotAttributes(siteFigureLabelStyle, {})}>{end}</span>\n </div>\n </div>\n );\n}\n\n/** One day of {@link DaySeries}. */\nexport interface SeriesDay {\n readonly key: string;\n readonly value: number;\n /** What the day says to a screen reader and under the pointer (\"Oct 3: 1,240 characters\"). */\n readonly label: string;\n}\n\n/** Props for {@link DaySeries}. */\nexport interface DaySeriesProps {\n readonly days: readonly SeriesDay[];\n /** The first and the last day under the bars. */\n readonly from?: ReactNode;\n readonly to?: ReactNode;\n /** The least height a day's bar keeps, as a share of the tallest, so a day without use still shows. */\n readonly floor?: number;\n}\n\n/** A day's height as a share of the tallest day, never under the floor. */\nexport const dayHeight = (value: number, max: number, floor = 0.02): string => `${Math.max(floor, max > 0 ? value / max : 0) * 100}%`;\n\n/** A run of days as bars on one line, the tallest reaching the top; each day is read out by its label. */\nexport function DaySeries({ days, from, to, floor }: DaySeriesProps) {\n const max = Math.max(1, ...days.map((day) => day.value));\n return (\n <>\n <ol {...slotAttributes(siteDaySeriesStyle, {})}>\n {days.map((day) => (\n <li key={day.key} {...slotAttributes(siteDayStyle, {})} title={day.label}>\n <span {...slotAttributes(siteDayLabelStyle, {})}>{day.label}</span>\n <i {...slotAttributes(siteDayBarStyle, {})} aria-hidden=\"true\" style={{ height: dayHeight(day.value, max, floor) }} />\n </li>\n ))}\n </ol>\n {from !== undefined || to !== undefined ? (\n <div {...slotAttributes(siteDayAxisStyle, {})} aria-hidden=\"true\">\n <span {...slotAttributes(siteFigureLabelStyle, {})}>{from}</span>\n <span {...slotAttributes(siteFigureLabelStyle, {})}>{to}</span>\n </div>\n ) : null}\n </>\n );\n}\n\n/** One column of {@link TableCard}. */\nexport interface TableCardColumn<K extends string> {\n readonly key: K;\n readonly label: ReactNode;\n}\n\n/** Props for {@link TableCard}. */\nexport interface TableCardProps<K extends string> {\n /** The table's accessible name. */\n readonly label: string;\n /** The first column is the row's subject in bold, the last sits at the end (a figure or actions). */\n readonly columns: readonly TableCardColumn<K>[];\n readonly rows: readonly { readonly key: string; readonly cells: Readonly<Record<K, ReactNode>> }[];\n /** For rows that grow: the way to show the next ones, under the table. */\n readonly more?: SiteActionSpec;\n}\n\n/**\n * A table on a card: equal columns, a head row on the sunken ground, the first column bold, the\n * middle ones muted and the last one at the end, so figures line up down it. A set that grows past\n * a page passes `more`.\n *\n * <p>Pressing `more` moves the focus to the first row it added once the rows arrive, so a reader on\n * the keyboard reads on from where the table grew. The control is gone after the last page, and the\n * focus would otherwise fall back to the document.\n */\nexport function TableCard<K extends string>({ label, columns, rows, more }: TableCardProps<K>) {\n const last = columns.length - 1;\n const kindOf = (index: number) => (index === 0 ? \"lead\" : index === last ? \"end\" : \"value\");\n const body = useRef<HTMLTableSectionElement>(null);\n // The row count when `more` was pressed, until the rows it asked for arrive.\n const grownFrom = useRef<number | undefined>(undefined);\n useEffect(() => {\n const from = grownFrom.current;\n if (from === undefined || rows.length <= from) return;\n grownFrom.current = undefined;\n body.current?.rows[from]?.focus();\n }, [rows.length]);\n const pressMore =\n more === undefined\n ? undefined\n : {\n ...more,\n onSelect: (event: MouseEvent<HTMLElement>) => {\n grownFrom.current = rows.length;\n more.onSelect?.(event);\n },\n };\n return (\n <>\n <table {...slotAttributes(siteTableCardStyle, {})} aria-label={label}>\n <thead>\n <tr {...slotAttributes(siteTableCardHeadStyle, {})}>\n {columns.map((column, index) => (\n <th key={column.key} {...slotAttributes(siteTableCardThStyle, { end: index === last && index > 0 })} scope=\"col\">\n {column.label}\n </th>\n ))}\n </tr>\n </thead>\n <tbody ref={body} {...slotAttributes(siteTableCardBodyStyle, {})}>\n {rows.map((row) => (\n // A row takes the focus only from a script (after `more`), never from Tab.\n <tr key={row.key} tabIndex={-1} {...slotAttributes(siteTableCardRowStyle, {})}>\n {columns.map((column, index) => (\n <td key={column.key} {...slotAttributes(siteTableCardCellStyle, { kind: kindOf(index) })}>\n {row.cells[column.key]}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n {more !== undefined ? (\n <div {...slotAttributes(siteTableCardMoreStyle, {})}>\n <SiteAction {...(pressMore ?? more)} tone={more.tone ?? \"quiet\"} size=\"sm\" />\n </div>\n ) : null}\n </>\n );\n}\n\n/** Props for {@link TableActions}. */\nexport interface TableActionsProps {\n readonly actions: readonly SiteActionSpec[];\n /** Where the row stands, a `SiteChip`, drawn before the actions (a refund asked for a payment). */\n readonly badge?: ReactNode;\n}\n\n/** A row's small actions in its end cell, wrapping toward the end, after the row's state when it has one. */\nexport function TableActions({ actions, badge }: TableActionsProps) {\n return (\n <span {...slotAttributes(siteTableCardActionsStyle, {})}>\n {badge}\n {actions.map((action) => (\n <SiteAction key={action.id} {...action} size=\"sm\" />\n ))}\n </span>\n );\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SITE_CARD_GROUND, SITE_CARD } from './chunk-
|
|
1
|
+
import { SITE_CARD_GROUND, SITE_CARD } from './chunk-EELJOGWB.js';
|
|
2
2
|
import { defineSlotStyle, slotAttributes } from '@simplix-react/ui/design';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -337,5 +337,5 @@ function VideoCard({ title, caption, played, toggleLabel, onToggle, icon }) {
|
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
export { SiteProgress, VideoCard, siteActionLineStyle, siteCardTextStyle, siteCardTitleStyle, siteCheckStyle, siteCheckTitleStyle, siteCheckVerdictStyle, siteCopyStyle, siteCopyTextStyle, siteDisclosureButtonStyle, siteDisclosureLabelStyle, siteDisclosureLeadStyle, siteDisclosureListStyle, siteDisclosureMarkStyle, siteDisclosurePanelStyle, siteDisclosureStyle, siteDisclosureTextStyle, siteDownloadActionStyle, siteDownloadFileStyle, siteDownloadGridStyle, siteDownloadStyle, siteInstallStepBodyStyle, siteInstallStepHeadStyle, siteInstallStepStyle, siteInstallStepTagStyle, siteInstallStepTextStyle, siteInstallStepTitleStyle, siteInstallStepsStyle, siteNoticeStyle, siteNoticeTitleStyle, siteNumberedItemStyle, siteNumberedListStyle, siteSketchBarStyle, siteSketchFillStyle, siteSketchLabelStyle, siteSketchLineStyle, siteSketchPillStyle, siteSketchStyle, siteSketchTrackStyle, siteStepDiscStyle };
|
|
340
|
-
//# sourceMappingURL=chunk-
|
|
341
|
-
//# sourceMappingURL=chunk-
|
|
340
|
+
//# sourceMappingURL=chunk-TGG4ZKPG.js.map
|
|
341
|
+
//# sourceMappingURL=chunk-TGG4ZKPG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/install/install.style.ts","../src/install/video-card.tsx"],"names":[],"mappings":";;;;AAKO,IAAM,iBAAiB,eAAA,CAAgB;AAAA,EAC5C,IAAA,EAAM,YAAA;AAAA,EACN,IAAA,EAAM,gDAAgD,gBAAgB,CAAA,CAAA;AAAA,EACtE,UAAU,EAAC;AAAA,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A,EAAK,QAAA,EAAS,YAAA,EAAY,aAAa,cAAA,EAAc,MAAA,KAAW,IAAA,EAAM,OAAA,EAAS,UAClI,QAAA,EAAA,IAAA,EACH,CAAA;AAAA,2BACC,KAAA,EAAA,EAAK,GAAG,eAAe,kBAAA,EAAoB,EAAE,CAAA,EAC5C,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,OAAG,GAAG,cAAA,CAAe,qBAAqB,EAAE,GAAI,QAAA,EAAA,KAAA,EAAM,CAAA;AAAA,QACtD,OAAA,KAAY,MAAA,mBAAY,GAAA,CAAC,MAAA,EAAA,EAAM,GAAG,cAAA,CAAe,iBAAA,EAAmB,EAAE,CAAA,EAAI,QAAA,EAAA,OAAA,EAAQ,CAAA,GAAU;AAAA,OAAA,EAC/F;AAAA,KAAA,EACF,CAAA;AAAA,oBACA,GAAA,CAAC,YAAA,EAAA,EAAa,KAAA,EAAO,MAAA,IAAU,CAAA,EAAG;AAAA,GAAA,EACpC,CAAA;AAEJ","file":"chunk-6S23FFBB.js","sourcesContent":["import { defineSlotStyle } from \"@simplix-react/ui/design\";\n\nimport { SITE_CARD, SITE_CARD_GROUND } from \"../page/site-page.style\";\n\n/** The check of this computer: one row that wraps, its words and chips changing as the check runs. */\nexport const siteCheckStyle = defineSlotStyle({\n slot: \"site-check\",\n base: `flex min-w-0 flex-row flex-wrap items-center ${SITE_CARD_GROUND}`,\n variants: {},\n defaultVariants: {},\n});\n\n/** The check's words: the question before it runs, what it is doing, then what it read. */\nexport const siteCheckTitleStyle = defineSlotStyle({\n slot: \"site-check-title\",\n base: \"font-(--site-fw-strong)\",\n variants: {\n grow: {\n true: \"min-w-0 flex-1\",\n false: \"\",\n },\n },\n defaultVariants: { grow: false },\n});\n\n/** What the check concludes, in the colour of the conclusion. */\nexport const siteCheckVerdictStyle = defineSlotStyle({\n slot: \"site-check-verdict\",\n base: \"text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption)\",\n variants: {\n tone: {\n good: \"text-(--site-good)\",\n bad: \"text-(--site-bad)\",\n },\n },\n defaultVariants: { tone: \"good\" },\n});\n\n/** The downloads side by side, one below the narrow tier. */\nexport const siteDownloadGridStyle = defineSlotStyle({\n slot: \"site-download-grid\",\n base: \"grid min-w-0 grid-cols-2 gap-3 @max-page-narrow/page:grid-cols-1\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One download: what it is for, what it needs, its file and its action; the one to take first is outlined in the accent. */\nexport const siteDownloadStyle = defineSlotStyle({\n slot: \"site-download\",\n base: SITE_CARD,\n variants: {\n highlight: {\n true: \"border-(--site-accent)\",\n false: \"\",\n },\n },\n defaultVariants: { highlight: false },\n});\n\n/** A card's title at the subheading size. */\nexport const siteCardTitleStyle = defineSlotStyle({\n slot: \"site-card-title\",\n base: \"text-(length:--site-fs-subheading) leading-(--site-lh-subheading) font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A card's muted words under its title. */\nexport const siteCardTextStyle = defineSlotStyle({\n slot: \"site-card-text\",\n base: \"m-0 text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The file a download gives, in the mono family; a checksum or a long file name has no break points, so it breaks at the card's edge. */\nexport const siteDownloadFileStyle = defineSlotStyle({\n slot: \"site-download-file\",\n base:\n \"font-(family-name:--site-font-mono) text-(length:--site-fs-label) leading-(--site-lh-label) font-(--site-fw-strong) tracking-(--site-tracking-label) text-(--site-ink-muted) break-words\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Where a download's action stands: at the card's start, its own width. */\nexport const siteDownloadActionStyle = defineSlotStyle({\n slot: \"site-download-action\",\n base: \"flex self-start\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A notice standing above a page's parts, outlined in the accent (open this page on the computer). */\nexport const siteNoticeStyle = defineSlotStyle({\n slot: \"site-notice\",\n base: SITE_CARD,\n // The outline is a variant so it is written after the card's hairline and wins over it.\n variants: {\n tone: {\n accent: \"border-(--site-accent)\",\n },\n },\n defaultVariants: { tone: \"accent\" },\n});\n\n/** A notice's title at the text size. */\nexport const siteNoticeTitleStyle = defineSlotStyle({\n slot: \"site-notice-title\",\n base: \"font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Install steps, one card under the other. */\nexport const siteInstallStepsStyle = defineSlotStyle({\n slot: \"site-install-steps\",\n base: \"m-0 flex min-w-0 list-none flex-col gap-3 p-0\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One install step: what to do beside a sketch of what the screen shows; stacked below the narrow tier. */\nexport const siteInstallStepStyle = defineSlotStyle({\n slot: \"site-install-step\",\n base:\n \"grid min-w-0 grid-cols-2 items-center gap-4 rounded-(--site-radius-xl) border border-(--site-line) bg-(--site-surface) p-4 @max-page-narrow/page:grid-cols-1\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The step's number and words. */\nexport const siteInstallStepHeadStyle = defineSlotStyle({\n slot: \"site-install-step-head\",\n base: \"flex min-w-0 gap-3\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The step's number on an accent disc. */\nexport const siteStepDiscStyle = defineSlotStyle({\n slot: \"site-step-disc\",\n base:\n \"grid size-7 shrink-0 place-items-center rounded-(--site-radius-full) bg-(--site-accent) font-(family-name:--site-font-mono) text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-strong) text-(--site-on-accent) [&_svg]:size-3.5\",\n variants: {\n done: {\n true: \"bg-(--site-good)\",\n false: \"\",\n },\n },\n defaultVariants: { done: false },\n});\n\n/** The step's title, tag and what to do, one under the other. */\nexport const siteInstallStepTextStyle = defineSlotStyle({\n slot: \"site-install-step-text\",\n base: \"flex min-w-0 flex-col gap-0.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The step's title at the text size. */\nexport const siteInstallStepTitleStyle = defineSlotStyle({\n slot: \"site-install-step-title\",\n base: \"font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Where a step's tag stands: at the start, its own width. */\nexport const siteInstallStepTagStyle = defineSlotStyle({\n slot: \"site-install-step-tag\",\n base: \"flex self-start\",\n variants: {},\n defaultVariants: {},\n});\n\n/** What the step asks, muted. */\nexport const siteInstallStepBodyStyle = defineSlotStyle({\n slot: \"site-install-step-body\",\n base: \"text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A drawn stand-in for the screen a step shows: a window with a title bar and one thing on it. */\nexport const siteSketchStyle = defineSlotStyle({\n slot: \"site-sketch\",\n base: \"relative h-20 min-w-0 overflow-hidden rounded-(--site-radius-lg) border border-(--site-line) bg-(--site-surface-sunken)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The sketch's title bar: a short bar and a long one. */\nexport const siteSketchBarStyle = defineSlotStyle({\n slot: \"site-sketch-bar\",\n base: \"flex h-4 gap-1 bg-(--site-surface) px-2 py-1\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One bar of the sketch's title bar; `accent` marks the place the step points at. */\nexport const siteSketchLineStyle = defineSlotStyle({\n slot: \"site-sketch-line\",\n base: \"block rounded-(--site-radius-xs)\",\n variants: {\n span: {\n short: \"w-1/4 bg-(--site-line)\",\n long: \"flex-1 bg-(--site-line)\",\n accent: \"flex-1 bg-(--site-accent-soft)\",\n },\n },\n defaultVariants: { span: \"short\" },\n});\n\n/** The words on the sketch; a sketch with a progress bar holds them a step higher. */\nexport const siteSketchLabelStyle = defineSlotStyle({\n slot: \"site-sketch-label\",\n base: \"absolute left-3 text-(length:--site-fs-label) leading-(--site-lh-label) font-(--site-fw-strong) tracking-(--site-tracking-label)\",\n variants: {\n kind: {\n progress: \"top-6\",\n pill: \"top-7\",\n code: \"top-7 font-(family-name:--site-font-mono) text-(length:--site-fs-heading) leading-(--site-lh-heading) tracking-(--site-tracking-code)\",\n },\n },\n defaultVariants: { kind: \"pill\" },\n});\n\n/** The sketch's progress bar along its foot. */\nexport const siteSketchTrackStyle = defineSlotStyle({\n slot: \"site-sketch-track\",\n base: \"absolute right-3 bottom-3.5 left-3 h-2 overflow-hidden rounded-(--site-radius-full) bg-(--site-line)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The share of the sketch's progress bar done. */\nexport const siteSketchFillStyle = defineSlotStyle({\n slot: \"site-sketch-fill\",\n base: \"block h-full rounded-(--site-radius-full) bg-(--site-accent)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The button the sketch points at, on the voice's soft ground. */\nexport const siteSketchPillStyle = defineSlotStyle({\n slot: \"site-sketch-pill\",\n base:\n \"absolute top-6 right-3 rounded-(--site-radius-md) bg-(--site-voice-soft) px-2 py-0.5 text-(length:--site-fs-label) leading-(--site-lh-label) font-(--site-fw-strong) tracking-(--site-tracking-label) text-(--site-voice-text)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A video: the play toggle, its title and what it shows, and how much of it has played. */\nexport const siteVideoStyle = defineSlotStyle({\n slot: \"site-video\",\n base: SITE_CARD,\n variants: {},\n defaultVariants: {},\n});\n\n/** The video's toggle and words. */\nexport const siteVideoRowStyle = defineSlotStyle({\n slot: \"site-video-row\",\n base: \"flex min-w-0 items-center gap-3\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A round play and pause toggle in the accent. */\nexport const siteVideoToggleStyle = defineSlotStyle({\n slot: \"site-video-toggle\",\n base:\n \"grid size-11 shrink-0 cursor-pointer place-items-center rounded-(--site-radius-full) border-0 bg-(--site-accent) p-0 text-(--site-on-accent) outline-none transition-colors duration-(--site-duration-fast) ease-(--site-ease) hover:bg-(--site-accent-strong) focus-visible:shadow-[var(--site-focus-ring)] [&_svg]:size-4\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The video's title and what it shows. */\nexport const siteVideoTextStyle = defineSlotStyle({\n slot: \"site-video-text\",\n base: \"flex min-w-0 flex-1 flex-col\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The video's title. */\nexport const siteVideoTitleStyle = defineSlotStyle({\n slot: \"site-video-title\",\n base: \"font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** How much of something has played or is done: a thin track and its filled share. */\nexport const siteProgressStyle = defineSlotStyle({\n slot: \"site-progress\",\n base: \"relative block h-1.5 overflow-hidden rounded-(--site-radius-full) bg-(--site-surface-sunken)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The filled share of a progress track. */\nexport const siteProgressFillStyle = defineSlotStyle({\n slot: \"site-progress-fill\",\n base: \"absolute inset-y-0 left-0 block bg-(--site-accent) transition-[width] duration-(--site-duration-fast) ease-(--site-ease)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A line of words that ends in an action (not working? see troubleshooting). */\nexport const siteActionLineStyle = defineSlotStyle({\n slot: \"site-action-line\",\n base: \"m-0 flex min-w-0 flex-wrap items-center gap-2 text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Questions that open to their answers, one at a time, ruled apart on one card. */\nexport const siteDisclosureListStyle = defineSlotStyle({\n slot: \"site-disclosure-list\",\n base: \"flex min-w-0 flex-col divide-y divide-(--site-line) overflow-hidden rounded-(--site-radius-xl) border border-(--site-line) bg-(--site-surface)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One question and, when open, its answer. */\nexport const siteDisclosureStyle = defineSlotStyle({\n slot: \"site-disclosure\",\n base: \"min-w-0\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The question, a full-width button that opens and closes its answer. */\nexport const siteDisclosureButtonStyle = defineSlotStyle({\n slot: \"site-disclosure-button\",\n base:\n \"flex w-full cursor-pointer items-center gap-3 border-0 bg-transparent px-4 py-3.5 text-left font-(family-name:--site-font-sans) text-(length:--site-fs-base) leading-(--site-lh-base) font-(--site-fw-strong) text-(--site-ink) outline-none transition-colors duration-(--site-duration-fast) ease-(--site-ease) hover:bg-(--site-surface-sunken) focus-visible:shadow-[var(--site-focus-ring-inset)]\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The question's words. */\nexport const siteDisclosureLabelStyle = defineSlotStyle({\n slot: \"site-disclosure-label\",\n base: \"min-w-0 flex-1\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The chevron that turns over when the answer is open. */\nexport const siteDisclosureMarkStyle = defineSlotStyle({\n slot: \"site-disclosure-mark\",\n base: \"flex shrink-0 transition-transform duration-(--site-duration-fast) ease-(--site-ease) [&_svg]:size-4\",\n variants: {\n open: {\n true: \"rotate-180\",\n false: \"\",\n },\n },\n defaultVariants: { open: false },\n});\n\n/** The answer: what is wrong, what to do, and a message to copy. */\nexport const siteDisclosurePanelStyle = defineSlotStyle({\n slot: \"site-disclosure-panel\",\n base: \"flex min-w-0 flex-col gap-2 px-4 pb-4 text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The answer's words, the cause first in the strong weight. */\nexport const siteDisclosureTextStyle = defineSlotStyle({\n slot: \"site-disclosure-text\",\n base: \"m-0\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The cause at the start of an answer. */\nexport const siteDisclosureLeadStyle = defineSlotStyle({\n slot: \"site-disclosure-lead\",\n base: \"font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Numbered things to do, muted. */\nexport const siteNumberedListStyle = defineSlotStyle({\n slot: \"site-numbered-list\",\n base: \"m-0 flex min-w-0 list-decimal flex-col gap-1 pl-5 text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One thing to do. */\nexport const siteNumberedItemStyle = defineSlotStyle({\n slot: \"site-numbered-item\",\n base: \"min-w-0\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A message to copy as it is (for an IT administrator), and the button that copies it. */\nexport const siteCopyStyle = defineSlotStyle({\n slot: \"site-copy\",\n base: \"flex min-w-0 flex-col items-start gap-2\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The message, kept as written, in the mono family on a sunken ground. */\nexport const siteCopyTextStyle = defineSlotStyle({\n slot: \"site-copy-text\",\n base:\n \"m-0 w-full whitespace-pre-wrap break-words rounded-(--site-radius-lg) border border-(--site-line) bg-(--site-surface-sunken) px-3 py-2.5 font-(family-name:--site-font-mono) text-(length:--site-fs-label) leading-(--site-lh-label) font-(--site-fw-strong) tracking-(--site-tracking-label)\",\n variants: {},\n defaultVariants: {},\n});\n","import type { ReactNode } from \"react\";\nimport { slotAttributes } from \"@simplix-react/ui/design\";\n\nimport { siteCardTextStyle, siteProgressFillStyle, siteProgressStyle, siteVideoRowStyle, siteVideoStyle, siteVideoTextStyle, siteVideoTitleStyle, siteVideoToggleStyle } from \"./install.style\";\n\n/** Props for {@link SiteProgress}. */\nexport interface SiteProgressProps {\n /** 0 to 1. */\n readonly share: number;\n}\n\n/** A thin track filled to a share; it says nothing to a screen reader, the words beside it do. */\nexport function SiteProgress({ share }: SiteProgressProps) {\n return (\n <span {...slotAttributes(siteProgressStyle, {})} aria-hidden=\"true\">\n <i {...slotAttributes(siteProgressFillStyle, {})} style={{ width: `${String(Math.min(1, Math.max(0, share)) * 100)}%` }} />\n </span>\n );\n}\n\n/** Props for {@link VideoCard}. */\nexport interface VideoCardProps {\n /** The video's title and length; the card is named by it. */\n readonly title: string;\n readonly caption?: ReactNode;\n /** 0 to 1 of the video played; `null` while it is not playing. */\n readonly played: number | null;\n /** The toggle's accessible name (\"Play the install video\"). */\n readonly toggleLabel: string;\n readonly onToggle?: () => void;\n /** The glyph on the toggle, a play or a pause mark the product draws. */\n readonly icon?: ReactNode;\n}\n\n/** A video to watch: the play toggle, its title and what it shows, and how much has played. The product plays it. */\nexport function VideoCard({ title, caption, played, toggleLabel, onToggle, icon }: VideoCardProps) {\n return (\n <section {...slotAttributes(siteVideoStyle, {})} aria-label={title}>\n <div {...slotAttributes(siteVideoRowStyle, {})}>\n <button {...slotAttributes(siteVideoToggleStyle, {})} type=\"button\" aria-label={toggleLabel} aria-pressed={played !== null} onClick={onToggle}>\n {icon}\n </button>\n <div {...slotAttributes(siteVideoTextStyle, {})}>\n <b {...slotAttributes(siteVideoTitleStyle, {})}>{title}</b>\n {caption !== undefined ? <span {...slotAttributes(siteCardTextStyle, {})}>{caption}</span> : null}\n </div>\n </div>\n <SiteProgress share={played ?? 0} />\n </section>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/install/install.style.ts","../src/install/video-card.tsx"],"names":[],"mappings":";;;;AAKO,IAAM,iBAAiB,eAAA,CAAgB;AAAA,EAC5C,IAAA,EAAM,YAAA;AAAA,EACN,IAAA,EAAM,gDAAgD,gBAAgB,CAAA,CAAA;AAAA,EACtE,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC;AAGM,IAAM,sBAAsB,eAAA,CAAgB;AAAA,EACjD,IAAA,EAAM,kBAAA;AAAA,EACN,IAAA,EAAM,yBAAA;AAAA,EACN,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM,gBAAA;AAAA,MACN,KAAA,EAAO;AAAA;AACT,GACF;AAAA,EACA,eAAA,EAAiB,EAAE,IAAA,EAAM,KAAA;AAC3B,CAAC;AAGM,IAAM,wBAAwB,eAAA,CAAgB;AAAA,EACnD,IAAA,EAAM,oBAAA;AAAA,EACN,IAAA,EAAM,sFAAA;AAAA,EACN,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM,oBAAA;AAAA,MACN,GAAA,EAAK;AAAA;AACP,GACF;AAAA,EACA,eAAA,EAAiB,EAAE,IAAA,EAAM,MAAA;AAC3B,CAAC;AAGM,IAAM,wBAAwB,eAAA,CAAgB;AAAA,EACnD,IAAA,EAAM,oBAAA;AAAA,EACN,IAAA,EAAM,kEAAA;AAAA,EACN,UAAU,EAAC;AAAA,EACX,iBAAiB;AACnB,CAAC;AAGM,IAAM,oBAAoB,eAAA,CAAgB;AAAA,EAC/C,IAAA,EAAM,eAAA;AAAA,EACN,IAAA,EAAM,SAAA;AAAA,E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CAAA;AAEJ;AAiBO,SAAS,SAAA,CAAU,EAAE,KAAA,EAAO,OAAA,EAAS,QAAQ,WAAA,EAAa,QAAA,EAAU,MAAK,EAAmB;AACjG,EAAA,uBACE,IAAA,CAAC,aAAS,GAAG,cAAA,CAAe,gBAAgB,EAAE,CAAA,EAAG,YAAA,EAAY,KAAA,EAC3D,QAAA,EAAA;AAAA,oBAAA,IAAA,CAAC,SAAK,GAAG,cAAA,CAAe,iBAAA,EAAmB,EAAE,CAAA,EAC3C,QAAA,EAAA;AAAA,sBAAA,GAAA,CAAC,YAAQ,GAAG,cAAA,CAAe,oBAAA,EAAsB,EAAE,CAAA,EAAG,IAAA,EAAK,QAAA,EAAS,YAAA,EAAY,aAAa,cAAA,EAAc,MAAA,KAAW,IAAA,EAAM,OAAA,EAAS,UAClI,QAAA,EAAA,IAAA,EACH,CAAA;AAAA,2BACC,KAAA,EAAA,EAAK,GAAG,eAAe,kBAAA,EAAoB,EAAE,CAAA,EAC5C,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,OAAG,GAAG,cAAA,CAAe,qBAAqB,EAAE,GAAI,QAAA,EAAA,KAAA,EAAM,CAAA;AAAA,QACtD,OAAA,KAAY,MAAA,mBAAY,GAAA,CAAC,MAAA,EAAA,EAAM,GAAG,cAAA,CAAe,iBAAA,EAAmB,EAAE,CAAA,EAAI,QAAA,EAAA,OAAA,EAAQ,CAAA,GAAU;AAAA,OAAA,EAC/F;AAAA,KAAA,EACF,CAAA;AAAA,oBACA,GAAA,CAAC,YAAA,EAAA,EAAa,KAAA,EAAO,MAAA,IAAU,CAAA,EAAG;AAAA,GAAA,EACpC,CAAA;AAEJ","file":"chunk-TGG4ZKPG.js","sourcesContent":["import { defineSlotStyle } from \"@simplix-react/ui/design\";\n\nimport { SITE_CARD, SITE_CARD_GROUND } from \"../page/site-page.style\";\n\n/** The check of this computer: one row that wraps, its words and chips changing as the check runs. */\nexport const siteCheckStyle = defineSlotStyle({\n slot: \"site-check\",\n base: `flex min-w-0 flex-row flex-wrap items-center ${SITE_CARD_GROUND}`,\n variants: {},\n defaultVariants: {},\n});\n\n/** The check's words: the question before it runs, what it is doing, then what it read. */\nexport const siteCheckTitleStyle = defineSlotStyle({\n slot: \"site-check-title\",\n base: \"font-(--site-fw-strong)\",\n variants: {\n grow: {\n true: \"min-w-0 flex-1\",\n false: \"\",\n },\n },\n defaultVariants: { grow: false },\n});\n\n/** What the check concludes, in the colour of the conclusion. */\nexport const siteCheckVerdictStyle = defineSlotStyle({\n slot: \"site-check-verdict\",\n base: \"text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption)\",\n variants: {\n tone: {\n good: \"text-(--site-good)\",\n bad: \"text-(--site-bad)\",\n },\n },\n defaultVariants: { tone: \"good\" },\n});\n\n/** The downloads side by side, one below the narrow tier. */\nexport const siteDownloadGridStyle = defineSlotStyle({\n slot: \"site-download-grid\",\n base: \"grid min-w-0 grid-cols-2 gap-3 @max-page-narrow/page:grid-cols-1\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One download: what it is for, what it needs, its file and its action; the one to take first is outlined in the accent. */\nexport const siteDownloadStyle = defineSlotStyle({\n slot: \"site-download\",\n base: SITE_CARD,\n variants: {\n highlight: {\n true: \"border-(--site-accent)\",\n false: \"\",\n },\n },\n defaultVariants: { highlight: false },\n});\n\n/** A card's title at the subheading size. */\nexport const siteCardTitleStyle = defineSlotStyle({\n slot: \"site-card-title\",\n base: \"text-(length:--site-fs-subheading) leading-(--site-lh-subheading) font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A card's muted words under its title. */\nexport const siteCardTextStyle = defineSlotStyle({\n slot: \"site-card-text\",\n base: \"m-0 text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The file a download gives, in the mono family; a checksum or a long file name has no break points, so it breaks at the card's edge. */\nexport const siteDownloadFileStyle = defineSlotStyle({\n slot: \"site-download-file\",\n base:\n \"font-(family-name:--site-font-mono) text-(length:--site-fs-label) leading-(--site-lh-label) font-(--site-fw-strong) tracking-(--site-tracking-label) text-(--site-ink-muted) break-words\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Where a download's action stands: at the card's start, its own width. */\nexport const siteDownloadActionStyle = defineSlotStyle({\n slot: \"site-download-action\",\n base: \"flex self-start\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A notice standing above a page's parts, outlined in the accent (open this page on the computer). */\nexport const siteNoticeStyle = defineSlotStyle({\n slot: \"site-notice\",\n base: SITE_CARD,\n // The outline is a variant so it is written after the card's hairline and wins over it.\n variants: {\n tone: {\n accent: \"border-(--site-accent)\",\n },\n },\n defaultVariants: { tone: \"accent\" },\n});\n\n/** A notice's title at the text size. */\nexport const siteNoticeTitleStyle = defineSlotStyle({\n slot: \"site-notice-title\",\n base: \"font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Install steps, one card under the other. */\nexport const siteInstallStepsStyle = defineSlotStyle({\n slot: \"site-install-steps\",\n base: \"m-0 flex min-w-0 list-none flex-col gap-3 p-0\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One install step: what to do beside a sketch of what the screen shows; stacked below the narrow tier. */\nexport const siteInstallStepStyle = defineSlotStyle({\n slot: \"site-install-step\",\n base:\n \"grid min-w-0 grid-cols-2 items-center gap-4 rounded-(--site-radius-xl) border border-(--site-line) bg-(--site-surface) p-4 @max-page-narrow/page:grid-cols-1\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The step's number and words. */\nexport const siteInstallStepHeadStyle = defineSlotStyle({\n slot: \"site-install-step-head\",\n base: \"flex min-w-0 gap-3\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The step's number on an accent disc. */\nexport const siteStepDiscStyle = defineSlotStyle({\n slot: \"site-step-disc\",\n base:\n \"grid size-7 shrink-0 place-items-center rounded-(--site-radius-full) bg-(--site-accent) font-(family-name:--site-font-mono) text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-strong) text-(--site-on-accent) [&_svg]:size-3.5\",\n variants: {\n done: {\n true: \"bg-(--site-good)\",\n false: \"\",\n },\n },\n defaultVariants: { done: false },\n});\n\n/** The step's title, tag and what to do, one under the other. */\nexport const siteInstallStepTextStyle = defineSlotStyle({\n slot: \"site-install-step-text\",\n base: \"flex min-w-0 flex-col gap-0.5\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The step's title at the text size. */\nexport const siteInstallStepTitleStyle = defineSlotStyle({\n slot: \"site-install-step-title\",\n base: \"font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Where a step's tag stands: at the start, its own width. */\nexport const siteInstallStepTagStyle = defineSlotStyle({\n slot: \"site-install-step-tag\",\n base: \"flex self-start\",\n variants: {},\n defaultVariants: {},\n});\n\n/** What the step asks, muted. */\nexport const siteInstallStepBodyStyle = defineSlotStyle({\n slot: \"site-install-step-body\",\n base: \"text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A drawn stand-in for the screen a step shows: a window with a title bar and one thing on it. */\nexport const siteSketchStyle = defineSlotStyle({\n slot: \"site-sketch\",\n base: \"relative h-20 min-w-0 overflow-hidden rounded-(--site-radius-lg) border border-(--site-line) bg-(--site-surface-sunken)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The sketch's title bar: a short bar and a long one. */\nexport const siteSketchBarStyle = defineSlotStyle({\n slot: \"site-sketch-bar\",\n base: \"flex h-4 gap-1 bg-(--site-surface) px-2 py-1\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One bar of the sketch's title bar; `accent` marks the place the step points at. */\nexport const siteSketchLineStyle = defineSlotStyle({\n slot: \"site-sketch-line\",\n base: \"block rounded-(--site-radius-xs)\",\n variants: {\n span: {\n short: \"w-1/4 bg-(--site-line)\",\n long: \"flex-1 bg-(--site-line)\",\n accent: \"flex-1 bg-(--site-accent-soft)\",\n },\n },\n defaultVariants: { span: \"short\" },\n});\n\n/** The words on the sketch; a sketch with a progress bar holds them a step higher. */\nexport const siteSketchLabelStyle = defineSlotStyle({\n slot: \"site-sketch-label\",\n base: \"absolute left-3 text-(length:--site-fs-label) leading-(--site-lh-label) font-(--site-fw-strong) tracking-(--site-tracking-label)\",\n variants: {\n kind: {\n progress: \"top-6\",\n pill: \"top-7\",\n code: \"top-7 font-(family-name:--site-font-mono) text-(length:--site-fs-heading) leading-(--site-lh-heading) tracking-(--site-tracking-code)\",\n },\n },\n defaultVariants: { kind: \"pill\" },\n});\n\n/** The sketch's progress bar along its foot. */\nexport const siteSketchTrackStyle = defineSlotStyle({\n slot: \"site-sketch-track\",\n base: \"absolute right-3 bottom-3.5 left-3 h-2 overflow-hidden rounded-(--site-radius-full) bg-(--site-line)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The share of the sketch's progress bar done. */\nexport const siteSketchFillStyle = defineSlotStyle({\n slot: \"site-sketch-fill\",\n base: \"block h-full rounded-(--site-radius-full) bg-(--site-accent)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The button the sketch points at, on the voice's soft ground. */\nexport const siteSketchPillStyle = defineSlotStyle({\n slot: \"site-sketch-pill\",\n base:\n \"absolute top-6 right-3 rounded-(--site-radius-md) bg-(--site-voice-soft) px-2 py-0.5 text-(length:--site-fs-label) leading-(--site-lh-label) font-(--site-fw-strong) tracking-(--site-tracking-label) text-(--site-voice-text)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A video: the play toggle, its title and what it shows, and how much of it has played. */\nexport const siteVideoStyle = defineSlotStyle({\n slot: \"site-video\",\n base: SITE_CARD,\n variants: {},\n defaultVariants: {},\n});\n\n/** The video's toggle and words. */\nexport const siteVideoRowStyle = defineSlotStyle({\n slot: \"site-video-row\",\n base: \"flex min-w-0 items-center gap-3\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A round play and pause toggle in the accent. */\nexport const siteVideoToggleStyle = defineSlotStyle({\n slot: \"site-video-toggle\",\n base:\n \"grid size-11 shrink-0 cursor-pointer place-items-center rounded-(--site-radius-full) border-0 bg-(--site-accent) p-0 text-(--site-on-accent) outline-none transition-colors duration-(--site-duration-fast) ease-(--site-ease) hover:bg-(--site-accent-strong) focus-visible:shadow-[var(--site-focus-ring)] [&_svg]:size-4\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The video's title and what it shows. */\nexport const siteVideoTextStyle = defineSlotStyle({\n slot: \"site-video-text\",\n base: \"flex min-w-0 flex-1 flex-col\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The video's title. */\nexport const siteVideoTitleStyle = defineSlotStyle({\n slot: \"site-video-title\",\n base: \"font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** How much of something has played or is done: a thin track and its filled share. */\nexport const siteProgressStyle = defineSlotStyle({\n slot: \"site-progress\",\n base: \"relative block h-1.5 overflow-hidden rounded-(--site-radius-full) bg-(--site-surface-sunken)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The filled share of a progress track. */\nexport const siteProgressFillStyle = defineSlotStyle({\n slot: \"site-progress-fill\",\n base: \"absolute inset-y-0 left-0 block bg-(--site-accent) transition-[width] duration-(--site-duration-fast) ease-(--site-ease)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A line of words that ends in an action (not working? see troubleshooting). */\nexport const siteActionLineStyle = defineSlotStyle({\n slot: \"site-action-line\",\n base: \"m-0 flex min-w-0 flex-wrap items-center gap-2 text-(length:--site-fs-caption) leading-(--site-lh-caption) font-(--site-fw-caption) text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Questions that open to their answers, one at a time, ruled apart on one card. */\nexport const siteDisclosureListStyle = defineSlotStyle({\n slot: \"site-disclosure-list\",\n base: \"flex min-w-0 flex-col divide-y divide-(--site-line) overflow-hidden rounded-(--site-radius-xl) border border-(--site-line) bg-(--site-surface)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One question and, when open, its answer. */\nexport const siteDisclosureStyle = defineSlotStyle({\n slot: \"site-disclosure\",\n base: \"min-w-0\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The question, a full-width button that opens and closes its answer. */\nexport const siteDisclosureButtonStyle = defineSlotStyle({\n slot: \"site-disclosure-button\",\n base:\n \"flex w-full cursor-pointer items-center gap-3 border-0 bg-transparent px-4 py-3.5 text-left font-(family-name:--site-font-sans) text-(length:--site-fs-base) leading-(--site-lh-base) font-(--site-fw-strong) text-(--site-ink) outline-none transition-colors duration-(--site-duration-fast) ease-(--site-ease) hover:bg-(--site-surface-sunken) focus-visible:shadow-[var(--site-focus-ring-inset)]\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The question's words. */\nexport const siteDisclosureLabelStyle = defineSlotStyle({\n slot: \"site-disclosure-label\",\n base: \"min-w-0 flex-1\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The chevron that turns over when the answer is open. */\nexport const siteDisclosureMarkStyle = defineSlotStyle({\n slot: \"site-disclosure-mark\",\n base: \"flex shrink-0 transition-transform duration-(--site-duration-fast) ease-(--site-ease) [&_svg]:size-4\",\n variants: {\n open: {\n true: \"rotate-180\",\n false: \"\",\n },\n },\n defaultVariants: { open: false },\n});\n\n/** The answer: what is wrong, what to do, and a message to copy. */\nexport const siteDisclosurePanelStyle = defineSlotStyle({\n slot: \"site-disclosure-panel\",\n base: \"flex min-w-0 flex-col gap-2 px-4 pb-4 text-(length:--site-fs-body-pane) leading-(--site-lh-body-pane)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The answer's words, the cause first in the strong weight. */\nexport const siteDisclosureTextStyle = defineSlotStyle({\n slot: \"site-disclosure-text\",\n base: \"m-0\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The cause at the start of an answer. */\nexport const siteDisclosureLeadStyle = defineSlotStyle({\n slot: \"site-disclosure-lead\",\n base: \"font-(--site-fw-strong)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** Numbered things to do, muted. */\nexport const siteNumberedListStyle = defineSlotStyle({\n slot: \"site-numbered-list\",\n base: \"m-0 flex min-w-0 list-decimal flex-col gap-1 pl-5 text-(--site-ink-muted)\",\n variants: {},\n defaultVariants: {},\n});\n\n/** One thing to do. */\nexport const siteNumberedItemStyle = defineSlotStyle({\n slot: \"site-numbered-item\",\n base: \"min-w-0\",\n variants: {},\n defaultVariants: {},\n});\n\n/** A message to copy as it is (for an IT administrator), and the button that copies it. */\nexport const siteCopyStyle = defineSlotStyle({\n slot: \"site-copy\",\n base: \"flex min-w-0 flex-col items-start gap-2\",\n variants: {},\n defaultVariants: {},\n});\n\n/** The message, kept as written, in the mono family on a sunken ground. */\nexport const siteCopyTextStyle = defineSlotStyle({\n slot: \"site-copy-text\",\n base:\n \"m-0 w-full whitespace-pre-wrap break-words rounded-(--site-radius-lg) border border-(--site-line) bg-(--site-surface-sunken) px-3 py-2.5 font-(family-name:--site-font-mono) text-(length:--site-fs-label) leading-(--site-lh-label) font-(--site-fw-strong) tracking-(--site-tracking-label)\",\n variants: {},\n defaultVariants: {},\n});\n","import type { ReactNode } from \"react\";\nimport { slotAttributes } from \"@simplix-react/ui/design\";\n\nimport { siteCardTextStyle, siteProgressFillStyle, siteProgressStyle, siteVideoRowStyle, siteVideoStyle, siteVideoTextStyle, siteVideoTitleStyle, siteVideoToggleStyle } from \"./install.style\";\n\n/** Props for {@link SiteProgress}. */\nexport interface SiteProgressProps {\n /** 0 to 1. */\n readonly share: number;\n}\n\n/** A thin track filled to a share; it says nothing to a screen reader, the words beside it do. */\nexport function SiteProgress({ share }: SiteProgressProps) {\n return (\n <span {...slotAttributes(siteProgressStyle, {})} aria-hidden=\"true\">\n <i {...slotAttributes(siteProgressFillStyle, {})} style={{ width: `${String(Math.min(1, Math.max(0, share)) * 100)}%` }} />\n </span>\n );\n}\n\n/** Props for {@link VideoCard}. */\nexport interface VideoCardProps {\n /** The video's title and length; the card is named by it. */\n readonly title: string;\n readonly caption?: ReactNode;\n /** 0 to 1 of the video played; `null` while it is not playing. */\n readonly played: number | null;\n /** The toggle's accessible name (\"Play the install video\"). */\n readonly toggleLabel: string;\n readonly onToggle?: () => void;\n /** The glyph on the toggle, a play or a pause mark the product draws. */\n readonly icon?: ReactNode;\n}\n\n/** A video to watch: the play toggle, its title and what it shows, and how much has played. The product plays it. */\nexport function VideoCard({ title, caption, played, toggleLabel, onToggle, icon }: VideoCardProps) {\n return (\n <section {...slotAttributes(siteVideoStyle, {})} aria-label={title}>\n <div {...slotAttributes(siteVideoRowStyle, {})}>\n <button {...slotAttributes(siteVideoToggleStyle, {})} type=\"button\" aria-label={toggleLabel} aria-pressed={played !== null} onClick={onToggle}>\n {icon}\n </button>\n <div {...slotAttributes(siteVideoTextStyle, {})}>\n <b {...slotAttributes(siteVideoTitleStyle, {})}>{title}</b>\n {caption !== undefined ? <span {...slotAttributes(siteCardTextStyle, {})}>{caption}</span> : null}\n </div>\n </div>\n <SiteProgress share={played ?? 0} />\n </section>\n );\n}\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { sitePageStyle, sitePageEyebrowStyle, sitePageTitleStyle, sitePageLedeStyle, sitePageHeadStyle, siteSectionHeadingStyle, siteSectionLedeStyle, siteSectionStyle, siteBreadcrumbSeparatorStyle, siteBreadcrumbLinkStyle, siteBreadcrumbItemStyle, siteBreadcrumbListStyle, siteBreadcrumbStyle } from './chunk-
|
|
1
|
+
import { sitePageStyle, sitePageEyebrowStyle, sitePageTitleStyle, sitePageLedeStyle, sitePageHeadStyle, siteSectionHeadingStyle, siteSectionLedeStyle, siteSectionStyle, siteBreadcrumbSeparatorStyle, siteBreadcrumbLinkStyle, siteBreadcrumbItemStyle, siteBreadcrumbListStyle, siteBreadcrumbStyle } from './chunk-EELJOGWB.js';
|
|
2
2
|
import { SiteLink } from './chunk-MR5ZALXA.js';
|
|
3
3
|
import { useId, Fragment } from 'react';
|
|
4
4
|
import { slotAttributes } from '@simplix-react/ui/design';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
function SitePage({ rhythm, children }) {
|
|
8
|
-
return /* @__PURE__ */ jsx("div", { ...slotAttributes(sitePageStyle, { rhythm }), children });
|
|
7
|
+
function SitePage({ rhythm, width, children }) {
|
|
8
|
+
return /* @__PURE__ */ jsx("div", { ...slotAttributes(sitePageStyle, { rhythm, width }), children });
|
|
9
9
|
}
|
|
10
10
|
function SitePageHead({ title, lede, eyebrow }) {
|
|
11
11
|
return /* @__PURE__ */ jsxs("div", { ...slotAttributes(sitePageHeadStyle, {}), children: [
|
|
@@ -33,5 +33,5 @@ function SiteBreadcrumb({ steps, label, separator = "/" }) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export { SiteBreadcrumb, SitePage, SitePageHead, SiteSection };
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
36
|
+
//# sourceMappingURL=chunk-UF2MDCWB.js.map
|
|
37
|
+
//# sourceMappingURL=chunk-UF2MDCWB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/page/site-page.tsx"],"names":[],"mappings":";;;;;;AAqCO,SAAS,QAAA,CAAS,EAAE,MAAA,EAAQ,KAAA,EAAO,UAAS,EAAkB;AACnE,EAAA,uBAAO,GAAA,CAAC,KAAA,EAAA,EAAK,GAAG,cAAA,CAAe,aAAA,EAAe,EAAE,MAAA,EAAQ,KAAA,EAAO,CAAA,EAAI,QAAA,EAAS,CAAA;AAC9E;AAYO,SAAS,YAAA,CAAa,EAAE,KAAA,EAAO,IAAA,EAAM,SAAQ,EAAsB;AACxE,EAAA,4BACG,KAAA,EAAA,EAAK,GAAG,eAAe,iBAAA,EAAmB,EAAE,CAAA,EAC1C,QAAA,EAAA;AAAA,IAAA,OAAA,KAAY,MAAA,mBAAY,GAAA,CAAC,GAAA,EAAA,EAAG,GAAG,cAAA,CAAe,sBAAsB,EAAE,CAAA,EAAI,QAAA,EAAA,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OAAA,GAAU,KAAA,KAAU,KAAA,CAAM,MAAA,GAAS,CAAA;AACzC,IAAA,4BACG,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,MAAA,KAAA,GAAQ,CAAA,mBACP,GAAA,CAAC,IAAA,EAAA,EAAI,GAAG,cAAA,CAAe,4BAAA,EAA8B,EAAE,CAAA,EAAG,aAAA,EAAY,MAAA,EACnE,QAAA,EAAA,SAAA,EACH,CAAA,GACE,IAAA;AAAA,0BACH,IAAA,EAAA,EAAI,GAAG,cAAA,CAAe,uBAAA,EAAyB,EAAE,OAAA,EAAS,CAAA,EAAG,cAAA,EAAc,UAAU,MAAA,GAAS,MAAA,EAC5F,QAAA,EAAA,IAAA,CAAK,IAAA,KAAS,UAAa,CAAC,OAAA,mBAC3B,GAAA,CAAC,QAAA,EAAA,EAAU,GAAG,cAAA,CAAe,uBAAA,EAAyB,EAAE,GAAG,IAAA,EAAM,IAAA,CAAK,IAAA,EAAM,OAAA,EAAS,KAAK,QAAA,EACvF,QAAA,EAAA,IAAA,CAAK,KAAA,EACR,CAAA,GAEA,KAAK,KAAA,EAET;AAAA,KAAA,EAAA,EAda,KAAK,GAepB,CAAA;AAAA,EAEJ,CAAC,GACH,CAAA,EACF,CAAA;AAEJ","file":"chunk-UF2MDCWB.js","sourcesContent":["import { Fragment, useId, type MouseEvent, type ReactNode } from \"react\";\nimport { slotAttributes } from \"@simplix-react/ui/design\";\n\nimport { SiteLink } from \"../link/site-link\";\nimport {\n siteBreadcrumbItemStyle,\n siteBreadcrumbLinkStyle,\n siteBreadcrumbListStyle,\n siteBreadcrumbSeparatorStyle,\n siteBreadcrumbStyle,\n sitePageEyebrowStyle,\n sitePageHeadStyle,\n sitePageLedeStyle,\n sitePageStyle,\n sitePageTitleStyle,\n siteSectionHeadingStyle,\n siteSectionLedeStyle,\n siteSectionStyle,\n} from \"./site-page.style\";\n\n/** Props for {@link SitePage}. */\nexport interface SitePageProps {\n /**\n * `spaced` sets the parts under a band that holds the page's head further apart, `open` a\n * marketing page's sections further still, `steps` a purchase's steps a little closer, and `done`\n * centres a page that says a step is finished; `page` is every other page.\n */\n readonly rhythm?: \"page\" | \"spaced\" | \"open\" | \"steps\" | \"done\";\n /**\n * How wide the column grows: `wide` for a page of sections, `medium` or `narrow` for a page that\n * stays one column of fields or rows on every window (a form, a flow made for a phone).\n */\n readonly width?: \"wide\" | \"medium\" | \"narrow\";\n readonly children: ReactNode;\n}\n\n/** The page column: centred, as wide as its tier at most (the wide tier unless told), its regions one gap apart. */\nexport function SitePage({ rhythm, width, children }: SitePageProps) {\n return <div {...slotAttributes(sitePageStyle, { rhythm, width })}>{children}</div>;\n}\n\n/** Props for {@link SitePageHead}. */\nexport interface SitePageHeadProps {\n readonly title: ReactNode;\n /** The sentence saying what the page is for. */\n readonly lede?: ReactNode;\n /** A short line above the title naming the page's group. */\n readonly eyebrow?: ReactNode;\n}\n\n/** The page's head: the page's one `h1`, with its lede under it. */\nexport function SitePageHead({ title, lede, eyebrow }: SitePageHeadProps) {\n return (\n <div {...slotAttributes(sitePageHeadStyle, {})}>\n {eyebrow !== undefined ? <p {...slotAttributes(sitePageEyebrowStyle, {})}>{eyebrow}</p> : null}\n <h1 {...slotAttributes(sitePageTitleStyle, {})}>{title}</h1>\n {lede !== undefined ? <p {...slotAttributes(sitePageLedeStyle, {})}>{lede}</p> : null}\n </div>\n );\n}\n\n/** Props for {@link SiteSection}. */\nexport interface SiteSectionProps {\n /** The section's heading; the section is named by it. */\n readonly heading: ReactNode;\n readonly lede?: ReactNode;\n /** `lg` opens a part of the page in the display family; `md` is a plain heading. */\n readonly size?: \"md\" | \"lg\";\n readonly children: ReactNode;\n}\n\n/** A section of a page, named by its `h2`. */\nexport function SiteSection({ heading, lede, size, children }: SiteSectionProps) {\n const id = useId();\n return (\n <section {...slotAttributes(siteSectionStyle, {})} aria-labelledby={id}>\n <h2 {...slotAttributes(siteSectionHeadingStyle, { size })} id={id}>\n {heading}\n </h2>\n {lede !== undefined ? <p {...slotAttributes(siteSectionLedeStyle, {})}>{lede}</p> : null}\n {children}\n </section>\n );\n}\n\n/** One step of a breadcrumb trail. */\nexport interface SiteBreadcrumbStep {\n readonly key: string;\n readonly label: ReactNode;\n /** The page the step opens; the last step, the page shown, has none. */\n readonly href?: string;\n readonly onSelect?: (event: MouseEvent<HTMLElement>) => void;\n}\n\n/** Props for {@link SiteBreadcrumb}. */\nexport interface SiteBreadcrumbProps {\n /** From the site's top to the page shown. */\n readonly steps: readonly SiteBreadcrumbStep[];\n /** The trail's landmark name. */\n readonly label: string;\n /** What stands between two steps, a chevron the product draws; a slash otherwise. */\n readonly separator?: ReactNode;\n}\n\n/** The trail from the site's top to the page shown, the last step marked as the current page. */\nexport function SiteBreadcrumb({ steps, label, separator = \"/\" }: SiteBreadcrumbProps) {\n return (\n <nav {...slotAttributes(siteBreadcrumbStyle, {})} aria-label={label}>\n <ol {...slotAttributes(siteBreadcrumbListStyle, {})}>\n {steps.map((step, index) => {\n const current = index === steps.length - 1;\n return (\n <Fragment key={step.key}>\n {index > 0 ? (\n <li {...slotAttributes(siteBreadcrumbSeparatorStyle, {})} aria-hidden=\"true\">\n {separator}\n </li>\n ) : null}\n <li {...slotAttributes(siteBreadcrumbItemStyle, { current })} aria-current={current ? \"page\" : undefined}>\n {step.href !== undefined && !current ? (\n <SiteLink {...slotAttributes(siteBreadcrumbLinkStyle, {})} href={step.href} onClick={step.onSelect}>\n {step.label}\n </SiteLink>\n ) : (\n step.label\n )}\n </li>\n </Fragment>\n );\n })}\n </ol>\n </nav>\n );\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SITE_CARD } from './chunk-
|
|
1
|
+
import { SITE_CARD } from './chunk-EELJOGWB.js';
|
|
2
2
|
import { defineSlotStyle } from '@simplix-react/ui/design';
|
|
3
3
|
|
|
4
4
|
var siteArticleIntroStyle = defineSlotStyle({
|
|
@@ -197,5 +197,5 @@ var siteDocProgressStyle = defineSlotStyle({
|
|
|
197
197
|
});
|
|
198
198
|
|
|
199
199
|
export { siteArticleFactStyle, siteArticleFactsStyle, siteArticleIntroStyle, siteArticleLeadStyle, siteArticleStepBodyStyle, siteArticleStepStyle, siteArticleWhereStyle, siteDocActionStyle, siteDocHeadingStyle, siteDocProgressStyle, siteDocSectionStyle, siteDocTextStyle, siteFeedbackAskStyle, siteFeedbackChoicesStyle, siteFeedbackMoreStyle, siteFeedbackRowStyle, siteFeedbackStyle, siteFeedbackThanksStyle, siteFigureCaptionStyle, siteFigureStyle, siteQuickAskStyle, siteQuickBoxStyle, siteQuickItemStyle, siteQuickListStyle, siteQuickTitleStyle, siteRelatedGridStyle, siteRelatedLinkStyle, siteRelatedStyle, siteTipMarkStyle, siteTipStyle };
|
|
200
|
-
//# sourceMappingURL=chunk-
|
|
201
|
-
//# sourceMappingURL=chunk-
|
|
200
|
+
//# sourceMappingURL=chunk-YXASVWY7.js.map
|
|
201
|
+
//# sourceMappingURL=chunk-YXASVWY7.js.map
|