@flamingo-stack/openframe-frontend-core 0.0.789 → 0.0.791
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{case-study-card-FDDS5EG3.cjs → case-study-card-MCAM232N.cjs} +5 -5
- package/dist/{chunk-ZH7SZ46Q.cjs → chunk-2I2AXIBD.cjs} +856 -859
- package/dist/{chunk-IKCMAIJ7.cjs → chunk-3AN35WAO.cjs} +80 -80
- package/dist/{chunk-KO4IF7R2.cjs → chunk-3XSWE5FW.cjs} +3 -3
- package/dist/{chunk-RJIFPWO4.cjs → chunk-5MIGBLDC.cjs} +24 -24
- package/dist/{chunk-QELEIFHA.cjs → chunk-6TPROUHW.cjs} +52 -52
- package/dist/{chunk-N3PYKA3B.cjs → chunk-6ZPHUDTP.cjs} +5 -5
- package/dist/{chunk-G33O32RX.cjs → chunk-72NE4G63.cjs} +4 -4
- package/dist/{chunk-UB3C22AW.cjs → chunk-7EH7KKFW.cjs} +121 -121
- package/dist/{chunk-ORIXQCPX.cjs → chunk-7VXMO4XJ.cjs} +8 -8
- package/dist/{chunk-MFPTTZI5.cjs → chunk-ABZGBMC2.cjs} +40 -40
- package/dist/{chunk-YWPYSQYG.cjs → chunk-AT4C2YMA.cjs} +30 -1
- package/dist/{chunk-7A23WZY7.cjs → chunk-BIYLAAFI.cjs} +15 -15
- package/dist/{chunk-GDOJPPOF.cjs → chunk-C5EPWKM7.cjs} +50 -50
- package/dist/{chunk-3IJDTTOY.cjs → chunk-DRWPSN3A.cjs} +2 -2
- package/dist/{chunk-PPBNMZC5.cjs → chunk-EPWLLLGW.cjs} +13 -13
- package/dist/{chunk-KB7SPZFI.cjs → chunk-FBA6S4ES.cjs} +259 -258
- package/dist/{chunk-FJBE3WIJ.cjs → chunk-HCXNFMLO.cjs} +4 -4
- package/dist/{chunk-WDUHSGRT.cjs → chunk-HMV32LV4.cjs} +4 -4
- package/dist/{chunk-JHFSLLQ6.cjs → chunk-IHLGPIFO.cjs} +2 -2
- package/dist/{chunk-QVF5A6UT.cjs → chunk-LL6PXI6C.cjs} +2 -2
- package/dist/{chunk-HDCAH4AT.cjs → chunk-MIUFSOUN.cjs} +90 -90
- package/dist/{chunk-DNJVLDCH.cjs → chunk-O4TKEWNW.cjs} +31 -31
- package/dist/{chunk-W4RRVQZQ.cjs → chunk-OZIPPOSJ.cjs} +253 -246
- package/dist/{chunk-GMGM3JV3.cjs → chunk-P2JY2XCV.cjs} +54 -54
- package/dist/{chunk-7VEYDE3T.cjs → chunk-PQIWR4Q2.cjs} +23 -23
- package/dist/{chunk-IODLD4VM.cjs → chunk-RFIBRGXG.cjs} +3 -3
- package/dist/{chunk-6TFNJDEQ.cjs → chunk-RPC4P7GY.cjs} +60 -87
- package/dist/{chunk-MMC7H7C6.cjs → chunk-SXEIK7RU.cjs} +9 -9
- package/dist/{chunk-EQNNPLCN.cjs → chunk-TBGVWIF7.cjs} +14 -14
- package/dist/{chunk-F2GRQ2RL.cjs → chunk-UNUJ5YQ5.cjs} +4 -4
- package/dist/{chunk-7NUFHVR6.cjs → chunk-VUQNTCAL.cjs} +19 -19
- package/dist/{chunk-HOYSVWKQ.cjs → chunk-W3Q7ZQLS.cjs} +6 -6
- package/dist/{chunk-OCTDWSTS.cjs → chunk-YPWFYQFE.cjs} +39 -39
- package/dist/{chunk-4ZLLUZQB.cjs → chunk-YWNXZAQ2.cjs} +55 -55
- package/dist/{chunk-SBC7RG7O.cjs → chunk-ZCMXBX4Z.cjs} +14 -14
- package/dist/{chunk-ZKNEKZS5.cjs → chunk-ZW2TS775.cjs} +6 -6
- package/dist/{chunk-XI4KB7EF.cjs → chunk-ZZPGSLMO.cjs} +14 -14
- package/dist/{cloud-tenants-3SFM4VJZ.cjs → cloud-tenants-TTOYIEN3.cjs} +18 -18
- package/dist/components/case-studies/index.cjs +33 -33
- package/dist/components/chat/ask-display.d.ts.map +1 -1
- package/dist/components/chat/ask-display.js +2 -4
- package/dist/components/chat/index.cjs +14 -14
- package/dist/components/contact/index.cjs +19 -19
- package/dist/components/docs/index.cjs +22 -22
- package/dist/components/embeds/index.cjs +19 -19
- package/dist/components/faq/index.cjs +20 -20
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/cards-strip.js +4 -1
- package/dist/components/features/index.cjs +18 -18
- package/dist/components/help-center-pages/index.cjs +120 -120
- package/dist/components/index.cjs +122 -120
- package/dist/components/layout/page-heading.d.ts +7 -3
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +10 -3
- package/dist/components/layout/page-layout.d.ts +2 -2
- package/dist/components/layout/page-layout.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +2 -7
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/layout/title-block.js +6 -31
- package/dist/components/loading/index.d.ts +1 -1
- package/dist/components/loading/index.d.ts.map +1 -1
- package/dist/components/loading/index.js +2 -0
- package/dist/components/loading/unified-skeleton.d.ts +17 -0
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +30 -1
- package/dist/components/meeting-scheduler/index.cjs +104 -104
- package/dist/components/navigation/index.cjs +21 -21
- package/dist/components/onboarding-guides/index.cjs +21 -21
- package/dist/components/product-demo/index.cjs +30 -30
- package/dist/components/related-content/index.cjs +11 -11
- package/dist/components/tickets/index.cjs +25 -25
- package/dist/components/ui/file-manager/index.cjs +13 -13
- package/dist/components/ui/image-gallery-modal.d.ts.map +1 -1
- package/dist/components/ui/image-gallery-modal.js +7 -5
- package/dist/components/ui/index.cjs +18 -18
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.js +9 -12
- package/dist/{devices-PE57CA5O.cjs → devices-SKWJYGUD.cjs} +19 -19
- package/dist/embed-shims/index.cjs +3 -3
- package/dist/embed-shims/next-image.cjs +3 -3
- package/dist/{embeddable-chat-TIUNTOXQ.cjs → embeddable-chat-54X3TTG4.cjs} +81 -81
- package/dist/hooks/index.cjs +4 -4
- package/dist/index.cjs +26 -26
- package/dist/{knowledge-ZFJQMMR2.cjs → knowledge-BPB2TROI.cjs} +19 -19
- package/dist/{logs-4GKGMB7A.cjs → logs-VIHYNQU4.cjs} +26 -26
- package/dist/{policies-TRWFGAEE.cjs → policies-YVNOCNNO.cjs} +22 -22
- package/dist/{remote-session-WMAV72M7.cjs → remote-session-WKLEYACD.cjs} +10 -10
- package/dist/{scripts-2SHRGH3L.cjs → scripts-MK5FCR7L.cjs} +25 -25
- package/dist/{software-update-ROHSE2BE.cjs → software-update-GDV75A2Z.cjs} +22 -22
- package/dist/{tickets-board-37LBIQ65.cjs → tickets-board-URMIIAKD.cjs} +10 -10
- package/package.json +1 -1
- package/src/components/chat/ask-display.tsx +2 -4
- package/src/components/features/cards-strip.tsx +6 -2
- package/src/components/layout/page-heading.tsx +30 -8
- package/src/components/layout/page-layout.tsx +3 -2
- package/src/components/layout/title-block.tsx +7 -29
- package/src/components/loading/index.ts +2 -0
- package/src/components/loading/unified-skeleton.tsx +42 -0
- package/src/components/ui/image-gallery-modal.tsx +10 -7
- package/src/components/ui/index.ts +1 -1
- package/src/components/ui/snap-carousel.tsx +12 -11
|
@@ -15,12 +15,12 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
require('./chunk-
|
|
18
|
+
var _chunk2I2AXIBDcjs = require('./chunk-2I2AXIBD.cjs');
|
|
19
|
+
require('./chunk-PQIWR4Q2.cjs');
|
|
20
20
|
require('./chunk-HJBJHQKE.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkRPC4P7GYcjs = require('./chunk-RPC4P7GY.cjs');
|
|
24
24
|
require('./chunk-HQQE74RO.cjs');
|
|
25
25
|
require('./chunk-DEY6XXGO.cjs');
|
|
26
26
|
require('./chunk-CWA6J7KC.cjs');
|
|
@@ -28,12 +28,12 @@ require('./chunk-VXAKQRV7.cjs');
|
|
|
28
28
|
require('./chunk-24I6RFVU.cjs');
|
|
29
29
|
require('./chunk-A6P6DHEZ.cjs');
|
|
30
30
|
require('./chunk-MZ4KBSH7.cjs');
|
|
31
|
-
require('./chunk-
|
|
32
|
-
require('./chunk-
|
|
33
|
-
require('./chunk-
|
|
34
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-RFIBRGXG.cjs');
|
|
32
|
+
require('./chunk-7EH7KKFW.cjs');
|
|
33
|
+
require('./chunk-FBA6S4ES.cjs');
|
|
34
|
+
require('./chunk-BIYLAAFI.cjs');
|
|
35
35
|
require('./chunk-RKWEFZ6P.cjs');
|
|
36
|
-
require('./chunk-
|
|
36
|
+
require('./chunk-ZCMXBX4Z.cjs');
|
|
37
37
|
require('./chunk-QVKWKY4O.cjs');
|
|
38
38
|
require('./chunk-ZOZR3QI2.cjs');
|
|
39
39
|
require('./chunk-OMV5S5PI.cjs');
|
|
@@ -1831,13 +1831,13 @@ require('./chunk-7DNL734S.cjs');
|
|
|
1831
1831
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1832
1832
|
require('./chunk-SKI6NKOE.cjs');
|
|
1833
1833
|
require('./chunk-EWPR7662.cjs');
|
|
1834
|
-
require('./chunk-
|
|
1835
|
-
require('./chunk-
|
|
1836
|
-
require('./chunk-
|
|
1834
|
+
require('./chunk-ZZPGSLMO.cjs');
|
|
1835
|
+
require('./chunk-OZIPPOSJ.cjs');
|
|
1836
|
+
require('./chunk-C5EPWKM7.cjs');
|
|
1837
1837
|
require('./chunk-QVC5CMC5.cjs');
|
|
1838
1838
|
require('./chunk-JXQNECXM.cjs');
|
|
1839
|
-
require('./chunk-
|
|
1840
|
-
require('./chunk-
|
|
1839
|
+
require('./chunk-72NE4G63.cjs');
|
|
1840
|
+
require('./chunk-7VXMO4XJ.cjs');
|
|
1841
1841
|
require('./chunk-S5C3OZCO.cjs');
|
|
1842
1842
|
require('./chunk-32ASZMTV.cjs');
|
|
1843
1843
|
require('./chunk-OOYBIS7D.cjs');
|
|
@@ -1846,7 +1846,7 @@ require('./chunk-6VOOPMP5.cjs');
|
|
|
1846
1846
|
require('./chunk-ORO54HDF.cjs');
|
|
1847
1847
|
require('./chunk-RUHKTWGB.cjs');
|
|
1848
1848
|
require('./chunk-BLH2SFOO.cjs');
|
|
1849
|
-
require('./chunk-
|
|
1849
|
+
require('./chunk-LL6PXI6C.cjs');
|
|
1850
1850
|
require('./chunk-7PNRXJX2.cjs');
|
|
1851
1851
|
require('./chunk-NTPX5GXI.cjs');
|
|
1852
1852
|
require('./chunk-AQXKXZWB.cjs');
|
|
@@ -1854,15 +1854,15 @@ require('./chunk-V4FXUIMH.cjs');
|
|
|
1854
1854
|
require('./chunk-SZHDXXMK.cjs');
|
|
1855
1855
|
require('./chunk-75PJ2SAZ.cjs');
|
|
1856
1856
|
require('./chunk-5GJM7VRR.cjs');
|
|
1857
|
-
require('./chunk-
|
|
1857
|
+
require('./chunk-DRWPSN3A.cjs');
|
|
1858
1858
|
require('./chunk-UJ7AXHRZ.cjs');
|
|
1859
|
-
require('./chunk-
|
|
1859
|
+
require('./chunk-HCXNFMLO.cjs');
|
|
1860
1860
|
require('./chunk-JRTDBPJT.cjs');
|
|
1861
1861
|
require('./chunk-HYF4LPXF.cjs');
|
|
1862
1862
|
require('./chunk-Z74QE57T.cjs');
|
|
1863
1863
|
require('./chunk-XZJCBIYR.cjs');
|
|
1864
1864
|
require('./chunk-GD6RPLHX.cjs');
|
|
1865
|
-
require('./chunk-
|
|
1865
|
+
require('./chunk-AT4C2YMA.cjs');
|
|
1866
1866
|
require('./chunk-K7I3YYYU.cjs');
|
|
1867
1867
|
require('./chunk-6YZNUHXT.cjs');
|
|
1868
1868
|
require('./chunk-V45KLJQP.cjs');
|
|
@@ -1920,14 +1920,14 @@ var noop = () => {
|
|
|
1920
1920
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
1921
1921
|
function StaticPackageField({ value }) {
|
|
1922
1922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1923
|
-
|
|
1923
|
+
_chunkRPC4P7GYcjs.Autocomplete,
|
|
1924
1924
|
{
|
|
1925
|
-
label:
|
|
1925
|
+
label: _chunk2I2AXIBDcjs.PACKAGE_SEARCH_LABEL,
|
|
1926
1926
|
labelVariant: "large",
|
|
1927
1927
|
options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
|
|
1928
1928
|
value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
|
|
1929
1929
|
onChange: noop,
|
|
1930
|
-
placeholder:
|
|
1930
|
+
placeholder: _chunk2I2AXIBDcjs.PACKAGE_SEARCH_PLACEHOLDER
|
|
1931
1931
|
}
|
|
1932
1932
|
);
|
|
1933
1933
|
}
|
|
@@ -1941,7 +1941,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1941
1941
|
[fixture.devices, fixture.selectedIds]
|
|
1942
1942
|
);
|
|
1943
1943
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1944
|
-
|
|
1944
|
+
_chunk2I2AXIBDcjs.SoftwareActionForm,
|
|
1945
1945
|
{
|
|
1946
1946
|
action: fixture.action,
|
|
1947
1947
|
showHeader: false,
|
|
@@ -1953,7 +1953,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1953
1953
|
initialValues: fixture.initialValues,
|
|
1954
1954
|
renderPackageSearch,
|
|
1955
1955
|
renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1956
|
-
|
|
1956
|
+
_chunk2I2AXIBDcjs.DeviceSelector,
|
|
1957
1957
|
{
|
|
1958
1958
|
devices: selected,
|
|
1959
1959
|
loading: false,
|
|
@@ -10,9 +10,9 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkPQIWR4Q2cjs = require('./chunk-PQIWR4Q2.cjs');
|
|
14
14
|
require('./chunk-VXAKQRV7.cjs');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-BIYLAAFI.cjs');
|
|
16
16
|
require('./chunk-QVKWKY4O.cjs');
|
|
17
17
|
require('./chunk-ZOZR3QI2.cjs');
|
|
18
18
|
require('./chunk-OMV5S5PI.cjs');
|
|
@@ -1806,7 +1806,7 @@ require('./chunk-HBAVHYXO.cjs');
|
|
|
1806
1806
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1807
1807
|
require('./chunk-SKI6NKOE.cjs');
|
|
1808
1808
|
require('./chunk-QVC5CMC5.cjs');
|
|
1809
|
-
require('./chunk-
|
|
1809
|
+
require('./chunk-7VXMO4XJ.cjs');
|
|
1810
1810
|
require('./chunk-S5C3OZCO.cjs');
|
|
1811
1811
|
require('./chunk-32ASZMTV.cjs');
|
|
1812
1812
|
require('./chunk-OOYBIS7D.cjs');
|
|
@@ -1819,11 +1819,11 @@ require('./chunk-V4FXUIMH.cjs');
|
|
|
1819
1819
|
require('./chunk-SZHDXXMK.cjs');
|
|
1820
1820
|
require('./chunk-75PJ2SAZ.cjs');
|
|
1821
1821
|
require('./chunk-5GJM7VRR.cjs');
|
|
1822
|
-
require('./chunk-
|
|
1822
|
+
require('./chunk-DRWPSN3A.cjs');
|
|
1823
1823
|
require('./chunk-HYF4LPXF.cjs');
|
|
1824
1824
|
require('./chunk-Z74QE57T.cjs');
|
|
1825
1825
|
require('./chunk-XZJCBIYR.cjs');
|
|
1826
|
-
require('./chunk-
|
|
1826
|
+
require('./chunk-AT4C2YMA.cjs');
|
|
1827
1827
|
require('./chunk-K7I3YYYU.cjs');
|
|
1828
1828
|
require('./chunk-6YZNUHXT.cjs');
|
|
1829
1829
|
require('./chunk-V45KLJQP.cjs');
|
|
@@ -1840,7 +1840,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1840
1840
|
const dana = assignee(cast.person("dana"));
|
|
1841
1841
|
const alex = assignee(cast.person("alex"));
|
|
1842
1842
|
return [
|
|
1843
|
-
|
|
1843
|
+
_chunkPQIWR4Q2cjs.columnFromTicketStatus.call(void 0, "ACTIVE", [
|
|
1844
1844
|
ticket("tk-1051", "Printer offline at the front desk", "ACTIVE", {
|
|
1845
1845
|
ticketNumber: "1051",
|
|
1846
1846
|
agent: "fae",
|
|
@@ -1858,7 +1858,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1858
1858
|
tags: ["onboarding"]
|
|
1859
1859
|
})
|
|
1860
1860
|
]),
|
|
1861
|
-
|
|
1861
|
+
_chunkPQIWR4Q2cjs.columnFromTicketStatus.call(void 0, "TECH_REQUIRED", [
|
|
1862
1862
|
ticket("tk-1049", "Acrobat Pro for Maya", "TECH_REQUIRED", {
|
|
1863
1863
|
ticketNumber: "1049",
|
|
1864
1864
|
agent: "fae",
|
|
@@ -1882,7 +1882,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1882
1882
|
escalatedByUser: true
|
|
1883
1883
|
})
|
|
1884
1884
|
]),
|
|
1885
|
-
|
|
1885
|
+
_chunkPQIWR4Q2cjs.columnFromTicketStatus.call(void 0, "ON_HOLD", [
|
|
1886
1886
|
ticket("tk-1046", "Replace the conference room display", "ON_HOLD", {
|
|
1887
1887
|
ticketNumber: "1046",
|
|
1888
1888
|
organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.acme.name,
|
|
@@ -1891,7 +1891,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1891
1891
|
activity: { kind: "waiting-external" }
|
|
1892
1892
|
})
|
|
1893
1893
|
]),
|
|
1894
|
-
|
|
1894
|
+
_chunkPQIWR4Q2cjs.columnFromTicketStatus.call(void 0,
|
|
1895
1895
|
"RESOLVED",
|
|
1896
1896
|
[
|
|
1897
1897
|
ticket("tk-1048", "Slow laptop", "RESOLVED", {
|
|
@@ -1927,7 +1927,7 @@ function TicketsBoardScreen({ compact = false }) {
|
|
|
1927
1927
|
const cast = _chunkSTEJZPIOcjs.useProductDemoCast.call(void 0, );
|
|
1928
1928
|
const board = _react.useMemo.call(void 0, () => buildTicketsBoardFixture(cast), [cast]);
|
|
1929
1929
|
const columns = compact ? board.filter((column) => column.id !== "ON_HOLD") : board;
|
|
1930
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1930
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQIWR4Q2cjs.Board, { columns, onChange: noop, initialCollapsed: compact ? void 0 : FOLDED }) });
|
|
1931
1931
|
}
|
|
1932
1932
|
|
|
1933
1933
|
|
package/package.json
CHANGED
|
@@ -73,8 +73,7 @@ const AskDisplay = forwardRef<HTMLDivElement, AskDisplayProps>(({ className, car
|
|
|
73
73
|
size="icon-sm"
|
|
74
74
|
type="button"
|
|
75
75
|
aria-label="Previous question"
|
|
76
|
-
|
|
77
|
-
onClick={() => setIndex(current => Math.max(0, current - 1))}
|
|
76
|
+
onClick={() => setIndex(current => (current > 0 ? current - 1 : cards.length - 1))}
|
|
78
77
|
>
|
|
79
78
|
<Chevron02LeftIcon size={16} />
|
|
80
79
|
</Button>
|
|
@@ -86,8 +85,7 @@ const AskDisplay = forwardRef<HTMLDivElement, AskDisplayProps>(({ className, car
|
|
|
86
85
|
size="icon-sm"
|
|
87
86
|
type="button"
|
|
88
87
|
aria-label="Next question"
|
|
89
|
-
|
|
90
|
-
onClick={() => setIndex(current => Math.min(cards.length - 1, current + 1))}
|
|
88
|
+
onClick={() => setIndex(current => (current < cards.length - 1 ? current + 1 : 0))}
|
|
91
89
|
>
|
|
92
90
|
<Chevron02RightIcon size={16} />
|
|
93
91
|
</Button>
|
|
@@ -726,8 +726,12 @@ export function CardsStrip<T = unknown>(props: CardsStripProps<T>): React.ReactE
|
|
|
726
726
|
// moves right) is a step BACK along the engine's axis.
|
|
727
727
|
glideBy((reverse ? -dir : dir) * step);
|
|
728
728
|
} else {
|
|
729
|
-
// No clones/seam without the marquee — native smooth scroll is safe.
|
|
730
|
-
|
|
729
|
+
// No clones/seam without the marquee — native smooth scroll is safe. The arrows loop like the marquee does:
|
|
730
|
+
// next at the track's end goes back to its start, previous at the start goes to its end.
|
|
731
|
+
const maxScroll = scroller.scrollWidth - scroller.clientWidth;
|
|
732
|
+
if (dir === 1 && scroller.scrollLeft >= maxScroll - 1) scroller.scrollTo({ left: 0, behavior: 'smooth' });
|
|
733
|
+
else if (dir === -1 && scroller.scrollLeft <= 1) scroller.scrollTo({ left: maxScroll, behavior: 'smooth' });
|
|
734
|
+
else scroller.scrollBy({ left: dir * step, behavior: 'smooth' });
|
|
731
735
|
}
|
|
732
736
|
},
|
|
733
737
|
[glideBy, reverse],
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Children, Fragment, cloneElement, isValidElement, type ReactElement, type ReactNode } from 'react';
|
|
2
2
|
import { getPlatformBrandClasses } from '../../utils/platform-identity';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
type TextLinesByBreakpoint,
|
|
5
|
+
TextLineSkeleton,
|
|
6
|
+
TextLinesByBreakpointSkeleton,
|
|
7
|
+
} from '../loading/unified-skeleton';
|
|
4
8
|
|
|
5
9
|
/**
|
|
6
10
|
* THE page-title style — the ODS `text-h1` token (`--font-size-h1-title` =
|
|
@@ -233,10 +237,14 @@ export interface SectionHeadingProps {
|
|
|
233
237
|
/**
|
|
234
238
|
* The title and intro are read data still being read: the heading draws its own loading form (the eyebrow and the
|
|
235
239
|
* action for real, a bar at the heading's type step, `intro` lines at the intro's). `true` draws the title alone;
|
|
236
|
-
* an object also says how many intro lines the loaded heading has and the title bar's width.
|
|
237
|
-
*
|
|
240
|
+
* an object also says how many intro lines the loaded heading has and the title bar's width. A title or an intro
|
|
241
|
+
* that wraps differently with the width gives its typical lines per breakpoint (`titleLines`, `intro` as an
|
|
242
|
+
* object). The heading renders on the server and cannot read a loading scope: a host passes its own switch
|
|
243
|
+
* (`useLoadingScope() || loading`).
|
|
238
244
|
*/
|
|
239
|
-
loading?:
|
|
245
|
+
loading?:
|
|
246
|
+
| boolean
|
|
247
|
+
| { intro?: boolean | 1 | 2 | 3 | TextLinesByBreakpoint; titleWidth?: string; titleLines?: TextLinesByBreakpoint };
|
|
240
248
|
}
|
|
241
249
|
|
|
242
250
|
/**
|
|
@@ -289,6 +297,7 @@ export function SectionHeading({
|
|
|
289
297
|
level={level}
|
|
290
298
|
eyebrow={eyebrow}
|
|
291
299
|
titleWidth={shape.titleWidth}
|
|
300
|
+
titleLines={shape.titleLines}
|
|
292
301
|
intro={shape.intro}
|
|
293
302
|
action={action}
|
|
294
303
|
platform={platform}
|
|
@@ -354,8 +363,10 @@ interface SectionHeadingSkeletonProps {
|
|
|
354
363
|
eyebrow?: ReactNode;
|
|
355
364
|
/** The title bar's width (a width class). Default `w-2/3`. */
|
|
356
365
|
titleWidth?: string;
|
|
357
|
-
/** The
|
|
358
|
-
|
|
366
|
+
/** The title's lines per breakpoint, for a title that wraps. Omitted: one bar of `titleWidth`. */
|
|
367
|
+
titleLines?: TextLinesByBreakpoint;
|
|
368
|
+
/** The intro's lines: `true` is two, or the lines per breakpoint. Omitted: no intro. */
|
|
369
|
+
intro?: boolean | 1 | 2 | 3 | TextLinesByBreakpoint;
|
|
359
370
|
/** Something at the far end of the row, drawn as given. */
|
|
360
371
|
action?: ReactNode;
|
|
361
372
|
platform?: string | null;
|
|
@@ -372,6 +383,7 @@ function SectionHeadingSkeleton({
|
|
|
372
383
|
level = 'section',
|
|
373
384
|
eyebrow,
|
|
374
385
|
titleWidth = 'w-2/3',
|
|
386
|
+
titleLines,
|
|
375
387
|
intro,
|
|
376
388
|
action,
|
|
377
389
|
platform,
|
|
@@ -379,7 +391,8 @@ function SectionHeadingSkeleton({
|
|
|
379
391
|
className,
|
|
380
392
|
}: SectionHeadingSkeletonProps) {
|
|
381
393
|
const layout = SECTION_HEADING_LAYOUT[level];
|
|
382
|
-
const
|
|
394
|
+
const introByBreakpoint = typeof intro === 'object' ? intro : null;
|
|
395
|
+
const introLines = typeof intro === 'number' ? intro : intro === true ? 2 : 0;
|
|
383
396
|
const stack = (
|
|
384
397
|
<div className={layout.stack} aria-hidden>
|
|
385
398
|
{eyebrow ? (
|
|
@@ -388,8 +401,17 @@ function SectionHeadingSkeleton({
|
|
|
388
401
|
</SectionEyebrow>
|
|
389
402
|
) : null}
|
|
390
403
|
<div className={layout.heading}>
|
|
391
|
-
|
|
404
|
+
{titleLines ? (
|
|
405
|
+
<TextLinesByBreakpointSkeleton lines={titleLines} />
|
|
406
|
+
) : (
|
|
407
|
+
<TextLineSkeleton type="inherit" className={titleWidth} />
|
|
408
|
+
)}
|
|
392
409
|
</div>
|
|
410
|
+
{introByBreakpoint ? (
|
|
411
|
+
<div className={layout.intro}>
|
|
412
|
+
<TextLinesByBreakpointSkeleton lines={introByBreakpoint} />
|
|
413
|
+
</div>
|
|
414
|
+
) : null}
|
|
393
415
|
{introLines > 0 ? (
|
|
394
416
|
<div className={layout.intro}>
|
|
395
417
|
{Array.from({ length: introLines }, (_, i) => (
|
|
@@ -46,9 +46,10 @@
|
|
|
46
46
|
|
|
47
47
|
import type React from 'react';
|
|
48
48
|
import { cn } from '../../utils/cn';
|
|
49
|
+
import type { TextLinesByBreakpoint } from '../loading/unified-skeleton';
|
|
49
50
|
import type { ActionsMenuGroup } from '../ui/actions-menu';
|
|
50
51
|
import type { PageActionButton } from '../ui/page-actions';
|
|
51
|
-
import { TitleBlock
|
|
52
|
+
import { TitleBlock } from './title-block';
|
|
52
53
|
|
|
53
54
|
export interface PageLayoutProps {
|
|
54
55
|
children: React.ReactNode;
|
|
@@ -85,7 +86,7 @@ export interface PageLayoutProps {
|
|
|
85
86
|
* data of arbitrary length. Additive + default-preserving. */
|
|
86
87
|
titleWrap?: boolean;
|
|
87
88
|
/** With `titleWrap`, the loading title's lines per breakpoint (forwarded to `TitleBlock`). */
|
|
88
|
-
titleSkeletonLines?:
|
|
89
|
+
titleSkeletonLines?: TextLinesByBreakpoint;
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
/**
|
|
@@ -90,7 +90,11 @@
|
|
|
90
90
|
import type React from 'react';
|
|
91
91
|
import { useIsTruncated } from '../../hooks/ui/use-is-truncated';
|
|
92
92
|
import { cn } from '../../utils/cn';
|
|
93
|
-
import {
|
|
93
|
+
import {
|
|
94
|
+
type TextLinesByBreakpoint,
|
|
95
|
+
TextLinesByBreakpointSkeleton,
|
|
96
|
+
UnifiedSkeleton,
|
|
97
|
+
} from '../loading/unified-skeleton';
|
|
94
98
|
import type { ActionsMenuGroup } from '../ui/actions-menu';
|
|
95
99
|
import { EntityImage } from '../ui/entity-image';
|
|
96
100
|
import { FloatingTooltip } from '../ui/floating-tooltip';
|
|
@@ -168,14 +172,7 @@ export interface TitleBlockProps {
|
|
|
168
172
|
* With `titleWrap`: the lines a typical title of the page takes per breakpoint, drawn by the loading title (a
|
|
169
173
|
* record's title is read; a long one growing past them is a settle). Absent: one bar.
|
|
170
174
|
*/
|
|
171
|
-
titleSkeletonLines?:
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/** Lines a wrapping title's skeleton draws: on a phone, from `content-md`, from `content-lg`. */
|
|
175
|
-
export interface TitleSkeletonLines {
|
|
176
|
-
phone: number;
|
|
177
|
-
md: number;
|
|
178
|
-
lg: number;
|
|
175
|
+
titleSkeletonLines?: TextLinesByBreakpoint;
|
|
179
176
|
}
|
|
180
177
|
|
|
181
178
|
/**
|
|
@@ -251,26 +248,7 @@ export function TitleBlock({
|
|
|
251
248
|
);
|
|
252
249
|
const titleNode =
|
|
253
250
|
titleLoading && titleWrap && titleSkeletonLines ? (
|
|
254
|
-
|
|
255
|
-
<TextLineSkeleton
|
|
256
|
-
type="inherit"
|
|
257
|
-
as="span"
|
|
258
|
-
lines={titleSkeletonLines.phone}
|
|
259
|
-
className="w-full content-md:hidden"
|
|
260
|
-
/>
|
|
261
|
-
<TextLineSkeleton
|
|
262
|
-
type="inherit"
|
|
263
|
-
as="span"
|
|
264
|
-
lines={titleSkeletonLines.md}
|
|
265
|
-
className="hidden w-full content-md:flex content-lg:hidden"
|
|
266
|
-
/>
|
|
267
|
-
<TextLineSkeleton
|
|
268
|
-
type="inherit"
|
|
269
|
-
as="span"
|
|
270
|
-
lines={titleSkeletonLines.lg}
|
|
271
|
-
className="hidden w-full content-lg:flex"
|
|
272
|
-
/>
|
|
273
|
-
</>
|
|
251
|
+
<TextLinesByBreakpointSkeleton as="span" lines={titleSkeletonLines} />
|
|
274
252
|
) : titleLoading ? (
|
|
275
253
|
<UnifiedSkeleton
|
|
276
254
|
as="span"
|
|
@@ -179,6 +179,48 @@ export function TextLineSkeleton({ type, lines = 1, as = 'div', width, className
|
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
+
/** The lines a text run takes per breakpoint: on a phone, from `content-md`, and from `content-lg`. */
|
|
183
|
+
export interface TextLinesByBreakpoint {
|
|
184
|
+
phone: number;
|
|
185
|
+
md: number;
|
|
186
|
+
lg: number;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* A text run whose line count changes with the width (a heading or a paragraph that wraps): `TextLineSkeleton` at
|
|
191
|
+
* the typical lines of each step of the content area. Exactly one of the three bars is shown at any width, so the
|
|
192
|
+
* loaded text takes its place at every breakpoint.
|
|
193
|
+
*/
|
|
194
|
+
export function TextLinesByBreakpointSkeleton({
|
|
195
|
+
lines,
|
|
196
|
+
type = 'inherit',
|
|
197
|
+
as = 'div',
|
|
198
|
+
className,
|
|
199
|
+
}: {
|
|
200
|
+
lines: TextLinesByBreakpoint;
|
|
201
|
+
type?: TextLineType;
|
|
202
|
+
as?: 'div' | 'span';
|
|
203
|
+
className?: string;
|
|
204
|
+
}) {
|
|
205
|
+
return (
|
|
206
|
+
<>
|
|
207
|
+
<TextLineSkeleton type={type} as={as} lines={lines.phone} className={cn('w-full content-md:hidden', className)} />
|
|
208
|
+
<TextLineSkeleton
|
|
209
|
+
type={type}
|
|
210
|
+
as={as}
|
|
211
|
+
lines={lines.md}
|
|
212
|
+
className={cn('hidden w-full content-md:flex content-lg:hidden', className)}
|
|
213
|
+
/>
|
|
214
|
+
<TextLineSkeleton
|
|
215
|
+
type={type}
|
|
216
|
+
as={as}
|
|
217
|
+
lines={lines.lg}
|
|
218
|
+
className={cn('hidden w-full content-lg:flex', className)}
|
|
219
|
+
/>
|
|
220
|
+
</>
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
182
224
|
/**
|
|
183
225
|
* Text skeleton variants at fixed heights. A skeleton that must take exactly
|
|
184
226
|
* the space of the text it stands for (a card whose loaded and loading boxes
|
|
@@ -35,12 +35,13 @@ export function ImageGalleryModal({ images, isOpen, onClose, initialIndex = 0 }:
|
|
|
35
35
|
// the modal opens/closes or the gallery length changes, instead of on every
|
|
36
36
|
// arrow press.
|
|
37
37
|
const imageCount = images.length;
|
|
38
|
+
// The arrows (and the arrow keys) loop: back from the first image is the last, next from the last is the first.
|
|
38
39
|
const goToPreviousImage = useCallback(() => {
|
|
39
|
-
setSelectedImageIndex(i => (i > 0 ? i - 1 :
|
|
40
|
-
}, []);
|
|
40
|
+
setSelectedImageIndex(i => (i > 0 ? i - 1 : imageCount - 1));
|
|
41
|
+
}, [imageCount]);
|
|
41
42
|
|
|
42
43
|
const goToNextImage = useCallback(() => {
|
|
43
|
-
setSelectedImageIndex(i => (i < imageCount - 1 ? i + 1 :
|
|
44
|
+
setSelectedImageIndex(i => (i < imageCount - 1 ? i + 1 : 0));
|
|
44
45
|
}, [imageCount]);
|
|
45
46
|
|
|
46
47
|
// `onClose` is a prop and is almost always written inline; through a ref the
|
|
@@ -86,28 +87,30 @@ export function ImageGalleryModal({ images, isOpen, onClose, initialIndex = 0 }:
|
|
|
86
87
|
{/* Navigation Buttons */}
|
|
87
88
|
{images.length > 1 && (
|
|
88
89
|
<>
|
|
89
|
-
{
|
|
90
|
+
{
|
|
90
91
|
<div className="absolute left-4 top-1/2 z-[10000] -translate-y-1/2">
|
|
91
92
|
<Button
|
|
92
93
|
variant="transparent"
|
|
93
94
|
size="small-legacy"
|
|
95
|
+
aria-label="Previous image"
|
|
94
96
|
onClick={goToPreviousImage}
|
|
95
97
|
className="rounded-full bg-black/50 p-2 text-white hover:bg-black/70"
|
|
96
98
|
leftIcon={<ChevronLeft className="h-6 w-6" />}
|
|
97
99
|
/>
|
|
98
100
|
</div>
|
|
99
|
-
|
|
100
|
-
{
|
|
101
|
+
}
|
|
102
|
+
{
|
|
101
103
|
<div className="absolute right-4 top-1/2 z-[10000] -translate-y-1/2">
|
|
102
104
|
<Button
|
|
103
105
|
variant="transparent"
|
|
104
106
|
size="small-legacy"
|
|
107
|
+
aria-label="Next image"
|
|
105
108
|
onClick={goToNextImage}
|
|
106
109
|
className="rounded-full bg-black/50 p-2 text-white hover:bg-black/70"
|
|
107
110
|
leftIcon={<ChevronRight className="h-6 w-6" />}
|
|
108
111
|
/>
|
|
109
112
|
</div>
|
|
110
|
-
|
|
113
|
+
}
|
|
111
114
|
</>
|
|
112
115
|
)}
|
|
113
116
|
|
|
@@ -234,7 +234,7 @@ export { IconTile } from './icon-tile';
|
|
|
234
234
|
export { PolicyLink } from './policy-link';
|
|
235
235
|
export type { DateRange } from 'react-day-picker';
|
|
236
236
|
export { TitleBlock, TITLE_BLOCK_MIN_HEIGHT } from '../layout/title-block';
|
|
237
|
-
export type { TitleBlockProps
|
|
237
|
+
export type { TitleBlockProps } from '../layout/title-block';
|
|
238
238
|
export type { SortableColumn, SortConfig, SortDirection } from './sort-column-item';
|
|
239
239
|
export {
|
|
240
240
|
ORGANIZATION_CARD_RADIUS_CLASS,
|
|
@@ -118,15 +118,10 @@ export function SnapCarouselControls({
|
|
|
118
118
|
<StepArrowButton
|
|
119
119
|
direction="previous"
|
|
120
120
|
aria-label={prevLabel}
|
|
121
|
-
disabled={loading ||
|
|
121
|
+
disabled={loading || count < 2}
|
|
122
122
|
onClick={onPrevious}
|
|
123
123
|
/>
|
|
124
|
-
<StepArrowButton
|
|
125
|
-
direction="next"
|
|
126
|
-
aria-label={nextLabel}
|
|
127
|
-
disabled={loading || index === count - 1}
|
|
128
|
-
onClick={onNext}
|
|
129
|
-
/>
|
|
124
|
+
<StepArrowButton direction="next" aria-label={nextLabel} disabled={loading || count < 2} onClick={onNext} />
|
|
130
125
|
</div>
|
|
131
126
|
);
|
|
132
127
|
}
|
|
@@ -249,14 +244,20 @@ export function SnapCarousel<T>({
|
|
|
249
244
|
setIndex(atEnd ? count - 1 : Math.min(count - 1, Math.round(track.scrollLeft / step)));
|
|
250
245
|
}, [count, slideStep]);
|
|
251
246
|
|
|
252
|
-
//
|
|
253
|
-
//
|
|
247
|
+
// The arrows loop like auto-advance: back from the first slide is the last, next from the last is the first.
|
|
248
|
+
// Back steps from where the track stands: at the end the index is the last slide, which sits further right than
|
|
249
|
+
// the track can scroll, so stepping back from the index alone would not move it.
|
|
254
250
|
const goBack = useCallback(() => {
|
|
255
251
|
const track = trackRef.current;
|
|
256
252
|
const step = slideStep();
|
|
257
253
|
if (!track || step === 0) return;
|
|
254
|
+
if (index === 0) {
|
|
255
|
+
goTo(count - 1);
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
258
|
goTo(Math.min(index, Math.round(track.scrollLeft / step)) - 1);
|
|
259
|
-
}, [goTo, index, slideStep]);
|
|
259
|
+
}, [count, goTo, index, slideStep]);
|
|
260
|
+
const goNext = useCallback(() => goTo(index >= count - 1 ? 0 : index + 1), [count, goTo, index]);
|
|
260
261
|
|
|
261
262
|
const canAutoAdvance = autoAdvanceMs > 0 && count > 1;
|
|
262
263
|
const playing = auto.playing && canAutoAdvance;
|
|
@@ -311,7 +312,7 @@ export function SnapCarousel<T>({
|
|
|
311
312
|
prevLabel={prevLabel}
|
|
312
313
|
nextLabel={nextLabel}
|
|
313
314
|
onPrevious={goBack}
|
|
314
|
-
onNext={
|
|
315
|
+
onNext={goNext}
|
|
315
316
|
wait={showsWait ? { durationMs: autoAdvanceMs, ranMs, running: playing } : null}
|
|
316
317
|
announce={!playing}
|
|
317
318
|
/>
|