@flamingo-stack/openframe-frontend-core 0.0.796 → 0.0.798

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.
Files changed (116) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/case-study-card-K6HYMHL6.cjs +23 -0
  3. package/dist/{chunk-QVC5CMC5.cjs → chunk-2JCY5KQL.cjs} +4 -4
  4. package/dist/{chunk-7VU4HHUR.cjs → chunk-2M6HS23A.cjs} +51 -51
  5. package/dist/{chunk-IONS6HDF.cjs → chunk-3NGJ7NPT.cjs} +61 -61
  6. package/dist/{chunk-AT4C2YMA.cjs → chunk-4WIJI4AK.cjs} +17 -17
  7. package/dist/{chunk-II4A2RUG.cjs → chunk-5IU64YEA.cjs} +62 -62
  8. package/dist/{chunk-75PJ2SAZ.cjs → chunk-5RGGUQ4Y.cjs} +2 -2
  9. package/dist/{chunk-W4QITOT7.cjs → chunk-6F2UHDCB.cjs} +13 -13
  10. package/dist/{chunk-UCHO4BOS.cjs → chunk-6GCXQIUU.cjs} +5 -5
  11. package/dist/{chunk-GP7NV6BK.cjs → chunk-6UKH22NQ.cjs} +29 -29
  12. package/dist/{chunk-6WXP5IKR.cjs → chunk-6YCUP6JJ.cjs} +42 -42
  13. package/dist/{chunk-6YZNUHXT.cjs → chunk-7JWFMAQB.cjs} +8 -2
  14. package/dist/{chunk-TUD7BV6O.cjs → chunk-7MV23NNT.cjs} +54 -54
  15. package/dist/{chunk-K7I3YYYU.cjs → chunk-AHBTZ7DN.cjs} +44 -44
  16. package/dist/{chunk-N3J4U7ML.cjs → chunk-AVAE5B2A.cjs} +8 -8
  17. package/dist/{chunk-CWA6J7KC.cjs → chunk-BWR5ACK3.cjs} +45 -45
  18. package/dist/{chunk-NAJ24ODA.cjs → chunk-BWTCULUN.cjs} +4 -4
  19. package/dist/{chunk-VUP7ZGZS.cjs → chunk-C2UZWRU5.cjs} +46 -46
  20. package/dist/{chunk-G24OX7AC.cjs → chunk-DTBIIFZG.cjs} +63 -63
  21. package/dist/{chunk-F64GLU75.cjs → chunk-E56LN23H.cjs} +205 -205
  22. package/dist/{chunk-ZMWSN2BD.cjs → chunk-EYE5FLHZ.cjs} +13 -13
  23. package/dist/{chunk-JGURZROB.cjs → chunk-FIKIPO4F.cjs} +334 -321
  24. package/dist/{chunk-6JCTKXHX.cjs → chunk-FO3N6HDS.cjs} +31 -31
  25. package/dist/{chunk-JRTDBPJT.cjs → chunk-GD47ZGOU.cjs} +3 -3
  26. package/dist/{chunk-HBAVHYXO.cjs → chunk-HATRCNXJ.cjs} +2 -2
  27. package/dist/{chunk-QVKWKY4O.cjs → chunk-JTIGKLKJ.cjs} +23 -23
  28. package/dist/{chunk-UYOGZJPE.cjs → chunk-KFDAL6NA.cjs} +37 -37
  29. package/dist/{chunk-DRWPSN3A.cjs → chunk-KUXHXLJQ.cjs} +5 -5
  30. package/dist/{chunk-GD6RPLHX.cjs → chunk-LKQ33CMY.cjs} +3 -3
  31. package/dist/{chunk-Y3IMXLLL.cjs → chunk-ND7ECICK.cjs} +541 -538
  32. package/dist/{chunk-HJBJHQKE.cjs → chunk-NG3RKTQU.cjs} +16 -16
  33. package/dist/{chunk-YFHKBIZT.cjs → chunk-NK2FSEWD.cjs} +6 -6
  34. package/dist/{chunk-HYF4LPXF.cjs → chunk-NL3G642U.cjs} +10 -10
  35. package/dist/{chunk-7SEY3FDF.cjs → chunk-O6KQ64RI.cjs} +19 -19
  36. package/dist/{chunk-JXQNECXM.cjs → chunk-P4B6PVSG.cjs} +7 -7
  37. package/dist/{chunk-QCN46LDL.cjs → chunk-PTQVGWJE.cjs} +110 -110
  38. package/dist/{chunk-OKAHKZP2.cjs → chunk-SDV335EO.cjs} +17 -17
  39. package/dist/{chunk-PALMLL5T.cjs → chunk-T5OCU3EL.cjs} +10 -10
  40. package/dist/{chunk-XVVQJXOA.cjs → chunk-TJQGKIXB.cjs} +171 -171
  41. package/dist/{chunk-HCXNFMLO.cjs → chunk-TTZEDDR5.cjs} +14 -14
  42. package/dist/{chunk-NRAH3M66.cjs → chunk-VUHPWSAE.cjs} +311 -291
  43. package/dist/{chunk-CFXCCQ6T.cjs → chunk-VVLL37EM.cjs} +12 -12
  44. package/dist/{chunk-VYXNGADV.cjs → chunk-W25OB2R6.cjs} +44 -44
  45. package/dist/{chunk-QMDXG3VF.cjs → chunk-W5ZQDEDT.cjs} +2016 -2015
  46. package/dist/{chunk-JC43ULIC.cjs → chunk-WUBTAN27.cjs} +116 -116
  47. package/dist/{chunk-CC7NRWRF.cjs → chunk-XJD7IZR2.cjs} +60 -60
  48. package/dist/{chunk-LL6PXI6C.cjs → chunk-XR323UBY.cjs} +4 -4
  49. package/dist/{chunk-UN6LC5PK.cjs → chunk-YBTORXFY.cjs} +110 -110
  50. package/dist/{chunk-RFIBRGXG.cjs → chunk-YR74H7Z3.cjs} +7 -7
  51. package/dist/{chunk-RKWEFZ6P.cjs → chunk-ZD6SZLO2.cjs} +3 -3
  52. package/dist/{chunk-XFJ7BZDJ.cjs → chunk-ZOK4OWMJ.cjs} +22 -22
  53. package/dist/{chunk-ZRME3A2D.cjs → chunk-ZXRAYCNB.cjs} +3 -3
  54. package/dist/{cloud-tenants-BQUWLMYY.cjs → cloud-tenants-XGL3DYSG.cjs} +32 -32
  55. package/dist/components/calendar.cjs +10 -10
  56. package/dist/components/case-studies/index.cjs +52 -52
  57. package/dist/components/chat/entity-cards/roadmap-card.d.ts +5 -0
  58. package/dist/components/chat/entity-cards/roadmap-card.d.ts.map +1 -1
  59. package/dist/components/chat/entity-cards/roadmap-card.js +16 -1
  60. package/dist/components/chat/index.cjs +26 -26
  61. package/dist/components/chat/types/entities/roadmap-item.d.ts +8 -0
  62. package/dist/components/chat/types/entities/roadmap-item.d.ts.map +1 -1
  63. package/dist/components/contact/index.cjs +33 -33
  64. package/dist/components/docs/index.cjs +36 -36
  65. package/dist/components/embeds/index.cjs +33 -33
  66. package/dist/components/faq/index.cjs +34 -34
  67. package/dist/components/features/index.cjs +32 -32
  68. package/dist/components/help-center-pages/index.cjs +163 -163
  69. package/dist/components/index.cjs +204 -204
  70. package/dist/components/meeting-scheduler/index.cjs +191 -191
  71. package/dist/components/navigation/index.cjs +35 -35
  72. package/dist/components/onboarding-guides/index.cjs +35 -35
  73. package/dist/components/product-demo/index.cjs +45 -45
  74. package/dist/components/related-content/index.cjs +17 -17
  75. package/dist/components/tickets/index.cjs +39 -39
  76. package/dist/components/ui/button/button-styles.d.ts +6 -0
  77. package/dist/components/ui/button/button-styles.d.ts.map +1 -1
  78. package/dist/components/ui/button/button-styles.js +7 -1
  79. package/dist/components/ui/feature-card.d.ts +1 -1
  80. package/dist/components/ui/feature-card.d.ts.map +1 -1
  81. package/dist/components/ui/feature-card.js +1 -0
  82. package/dist/components/ui/file-manager/index.cjs +55 -55
  83. package/dist/components/ui/index.cjs +32 -32
  84. package/dist/components/ui/tabs.d.ts.map +1 -1
  85. package/dist/components/ui/tabs.js +6 -3
  86. package/dist/{devices-BFQOLI3D.cjs → devices-U2NQYDI7.cjs} +33 -33
  87. package/dist/embed-shims/index.cjs +4 -4
  88. package/dist/embed-shims/next-image.cjs +4 -4
  89. package/dist/{embeddable-chat-INYF23ST.cjs → embeddable-chat-MPJLN4C6.cjs} +115 -115
  90. package/dist/hooks/index.cjs +10 -10
  91. package/dist/index.cjs +50 -48
  92. package/dist/{knowledge-GGYWTYTP.cjs → knowledge-BUY6TSK6.cjs} +33 -33
  93. package/dist/{logs-NO55PTIO.cjs → logs-FUPQ7XYE.cjs} +41 -41
  94. package/dist/{policies-AAFYTVOJ.cjs → policies-NASADYBK.cjs} +36 -36
  95. package/dist/{remote-session-2CNWLF3P.cjs → remote-session-4LYKEZSY.cjs} +17 -17
  96. package/dist/{scripts-H4ECJ65X.cjs → scripts-BGLTDQKV.cjs} +39 -39
  97. package/dist/{software-update-NEEGQBK3.cjs → software-update-QDIZ32KU.cjs} +36 -36
  98. package/dist/{tickets-board-CXYRAMDL.cjs → tickets-board-3FBVYSXR.cjs} +17 -17
  99. package/dist/utils/clickup-drop-down.cjs +22 -0
  100. package/dist/utils/clickup-drop-down.d.ts +26 -0
  101. package/dist/utils/clickup-drop-down.d.ts.map +1 -0
  102. package/dist/utils/clickup-drop-down.js +20 -0
  103. package/dist/utils/index.cjs +20 -0
  104. package/dist/utils/index.d.ts +1 -0
  105. package/dist/utils/index.d.ts.map +1 -1
  106. package/dist/utils/index.js +1 -0
  107. package/dist/{video-file-player-HZPMCCYF.cjs → video-file-player-2FMFCGXE.cjs} +14 -14
  108. package/package.json +7 -1
  109. package/src/components/chat/entity-cards/roadmap-card.tsx +18 -1
  110. package/src/components/chat/types/entities/roadmap-item.ts +8 -0
  111. package/src/components/ui/button/button-styles.ts +11 -1
  112. package/src/components/ui/feature-card.tsx +2 -1
  113. package/src/components/ui/tabs.tsx +5 -2
  114. package/src/utils/clickup-drop-down.ts +41 -0
  115. package/src/utils/index.ts +1 -0
  116. package/dist/case-study-card-KU4ZIONR.cjs +0 -23
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
 
4
4
 
5
- var _chunkRKWEFZ6Pcjs = require('./chunk-RKWEFZ6P.cjs');
5
+ var _chunkZD6SZLO2cjs = require('./chunk-ZD6SZLO2.cjs');
6
6
 
7
7
 
8
8
  var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
@@ -13,7 +13,7 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkJXQNECXMcjs = require('./chunk-JXQNECXM.cjs');
16
+ var _chunkP4B6PVSGcjs = require('./chunk-P4B6PVSG.cjs');
17
17
  require('./chunk-S5C3OZCO.cjs');
18
18
  require('./chunk-4IYNDV3G.cjs');
19
19
  require('./chunk-NTPX5GXI.cjs');
@@ -24,8 +24,8 @@ require('./chunk-5GJM7VRR.cjs');
24
24
  require('./chunk-UJ7AXHRZ.cjs');
25
25
 
26
26
 
27
- var _chunkK7I3YYYUcjs = require('./chunk-K7I3YYYU.cjs');
28
- require('./chunk-6YZNUHXT.cjs');
27
+ var _chunkAHBTZ7DNcjs = require('./chunk-AHBTZ7DN.cjs');
28
+ require('./chunk-7JWFMAQB.cjs');
29
29
  require('./chunk-V45KLJQP.cjs');
30
30
 
31
31
  // src/components/features/video-file-player.tsx
@@ -251,14 +251,14 @@ function useHoverPlayback(mediaRef, sound, { playOnHover, playWhenHovered, muted
251
251
  element.volume = SOUND_VOLUME;
252
252
  });
253
253
  const attempt = (retriesLeft) => {
254
- const played = _chunkJXQNECXMcjs.hasUserInteracted.call(void 0, ) ? playWithSound(element, hostMutedRef.current, wanted) : playMuted(element, wanted);
254
+ const played = _chunkP4B6PVSGcjs.hasUserInteracted.call(void 0, ) ? playWithSound(element, hostMutedRef.current, wanted) : playMuted(element, wanted);
255
255
  void played.then((outcome) => {
256
256
  if (outcome === "interrupted" && hovered && element.paused !== false && retriesLeft > 0)
257
257
  attempt(retriesLeft - 1);
258
258
  });
259
259
  };
260
260
  attempt(INTERRUPTED_PLAY_RETRIES);
261
- if (_chunkJXQNECXMcjs.hasUserInteracted.call(void 0, )) return;
261
+ if (_chunkP4B6PVSGcjs.hasUserInteracted.call(void 0, )) return;
262
262
  const onFirstGesture = () => {
263
263
  if (!hovered) return;
264
264
  onLiveElement(() => {
@@ -267,8 +267,8 @@ function useHoverPlayback(mediaRef, sound, { playOnHover, playWhenHovered, muted
267
267
  });
268
268
  endMutedFallback();
269
269
  };
270
- _chunkJXQNECXMcjs.activationWaiters.add(onFirstGesture);
271
- cleanups.push(() => _chunkJXQNECXMcjs.activationWaiters.delete(onFirstGesture));
270
+ _chunkP4B6PVSGcjs.activationWaiters.add(onFirstGesture);
271
+ cleanups.push(() => _chunkP4B6PVSGcjs.activationWaiters.delete(onFirstGesture));
272
272
  }, [mediaRef, hostMutedRef, playWithSound, playMuted, endMutedFallback]);
273
273
  _react.useEffect.call(void 0, () => () => _optionalChain([endHoverRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42()]), []);
274
274
  const controlled = typeof playWhenHovered === "boolean";
@@ -294,7 +294,7 @@ function usePlaybackHealth(mediaRef, url, monitored) {
294
294
  if (!monitored) return;
295
295
  clearStallTimer();
296
296
  setFailed(true);
297
- _chunkJXQNECXMcjs.reportPlaybackFailure.call(void 0, { kind: "file", src: url, reason });
297
+ _chunkP4B6PVSGcjs.reportPlaybackFailure.call(void 0, { kind: "file", src: url, reason });
298
298
  },
299
299
  [monitored, clearStallTimer, url]
300
300
  );
@@ -304,7 +304,7 @@ function usePlaybackHealth(mediaRef, url, monitored) {
304
304
  stallTimerRef.current = setTimeout(() => {
305
305
  stallTimerRef.current = null;
306
306
  fail("stall");
307
- }, _chunkJXQNECXMcjs.VIDEO_STALL_TIMEOUT_MS);
307
+ }, _chunkP4B6PVSGcjs.VIDEO_STALL_TIMEOUT_MS);
308
308
  }, [mediaRef, monitored, fail]);
309
309
  const alive = _react.useCallback.call(void 0, () => {
310
310
  clearStallTimer();
@@ -425,7 +425,7 @@ function FilePlayer({
425
425
  src: url,
426
426
  poster: poster || void 0,
427
427
  streamType: "on-demand",
428
- preload: _nullishCoalesce(preload, () => ( (_chunkRKWEFZ6Pcjs.saveDataEnabled.call(void 0, ) ? "none" : "metadata"))),
428
+ preload: _nullishCoalesce(preload, () => ( (_chunkZD6SZLO2cjs.saveDataEnabled.call(void 0, ) ? "none" : "metadata"))),
429
429
  playsInline: true,
430
430
  muted,
431
431
  preferCmcd: "header",
@@ -443,7 +443,7 @@ function FilePlayer({
443
443
  const unmute = sound.mutedFallback && !hideMutedBadge ? (
444
444
  // The common Button's bare media glyph: white at rest, the accent while hovered.
445
445
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
446
- _chunkK7I3YYYUcjs.Button,
446
+ _chunkAHBTZ7DNcjs.Button,
447
447
  {
448
448
  type: "button",
449
449
  variant: "glyph",
@@ -452,11 +452,11 @@ function FilePlayer({
452
452
  title: "Unmute",
453
453
  onClick: sound.unmute,
454
454
  className: "absolute inset-0 z-10 m-auto",
455
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJXQNECXMcjs.VideoUnmuteGlyph, {})
455
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP4B6PVSGcjs.VideoUnmuteGlyph, {})
456
456
  }
457
457
  )
458
458
  ) : null;
459
- const failure = health.failed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJXQNECXMcjs.VideoErrorOverlay, { onRetry: health.retry }) : null;
459
+ const failure = health.failed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP4B6PVSGcjs.VideoErrorOverlay, { onRetry: health.retry }) : null;
460
460
  const boxed = Boolean(playOnHover) || hover.controlled || Boolean(autoPlayUnmuted) || Boolean(startMuted) || !chromeless;
461
461
  if (!boxed) return player;
462
462
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-full w-full", ...hover.pointerHandlers, children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.796",
3
+ "version": "0.0.798",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -290,6 +290,12 @@
290
290
  "require": "./dist/utils/csv.cjs",
291
291
  "default": "./dist/utils/csv.js"
292
292
  },
293
+ "./utils/clickup-drop-down": {
294
+ "types": "./dist/utils/clickup-drop-down.d.ts",
295
+ "import": "./dist/utils/clickup-drop-down.js",
296
+ "require": "./dist/utils/clickup-drop-down.cjs",
297
+ "default": "./dist/utils/clickup-drop-down.js"
298
+ },
293
299
  "./utils/common": {
294
300
  "types": "./dist/utils/common.d.ts",
295
301
  "import": "./dist/utils/common.js",
@@ -10,7 +10,7 @@
10
10
  * default branch.
11
11
  */
12
12
 
13
- import { ThumbsUp, ThumbsDown } from 'lucide-react';
13
+ import { Globe, Lock, ThumbsDown, ThumbsUp } from 'lucide-react';
14
14
  import { useState } from 'react';
15
15
  import Image from '../../../embed-shims/next-image';
16
16
  import Link from '../../../embed-shims/next-link';
@@ -24,6 +24,7 @@ import { Button } from '../../ui/button/button';
24
24
  import { ImageGalleryModal } from '../../ui/image-gallery-modal';
25
25
  import { useLoadingScope } from '../../ui/loading-scope';
26
26
  import { StatusBadge, generationTierFromLabel } from '../../ui/status-badge';
27
+ import { Tag } from '../../ui/tag';
27
28
  import { useProxiedImageUrl } from '../hooks/use-proxied-image-url';
28
29
  import type { RoadmapItem } from '../types/entities/roadmap-item';
29
30
  import { getStatusColorScheme } from '../utils/agent-status-message';
@@ -65,6 +66,21 @@ const ROADMAP_CARD_FOOTER = 'flex w-full items-center justify-between';
65
66
  const ROADMAP_CARD_VOTES = 'flex h-[48px] overflow-hidden rounded-[6px]';
66
67
  const ROADMAP_CARD_FOOTER_END = 'flex min-w-0 items-center gap-2';
67
68
 
69
+ /** What a card says about its visibility when its reader states it (`RoadmapItem.isPublic`). */
70
+ export const ROADMAP_VISIBILITY_LABEL = { public: 'Public', internal: 'Team only' } as const;
71
+
72
+ /** Public or team only, when the item states it: a team-only plan is never read as announced. */
73
+ function RoadmapVisibilityTag({ isPublic }: { isPublic: boolean }) {
74
+ return (
75
+ <Tag
76
+ data-loading-optional
77
+ variant="outline"
78
+ icon={isPublic ? <Globe className="h-4 w-4" aria-hidden /> : <Lock className="h-4 w-4" aria-hidden />}
79
+ label={isPublic ? ROADMAP_VISIBILITY_LABEL.public : ROADMAP_VISIBILITY_LABEL.internal}
80
+ />
81
+ );
82
+ }
83
+
68
84
  /**
69
85
  * A roadmap card while it is read. `default`, in the card's own boxes: the 64px icon box, the title as two `text-h3`
70
86
  * lines, the quarter and id as a `text-h5` line, the status badge's box (beside the heading from md, its own row
@@ -385,6 +401,7 @@ function LoadedRoadmapCard({
385
401
  )}
386
402
 
387
403
  <div className={ROADMAP_CARD_FOOTER_END}>
404
+ {typeof item.isPublic === 'boolean' ? <RoadmapVisibilityTag isPublic={item.isPublic} /> : null}
388
405
  {item.assignees && item.assignees.length > 0 ? (
389
406
  <AvatarStack size="xs" people={assigneePeople(item.assignees)} className="shrink-0" />
390
407
  ) : null}
@@ -32,6 +32,14 @@ export interface RoadmapItem {
32
32
  downvotes: number;
33
33
  quarter: string;
34
34
  clickupUrl: string;
35
+ /** The team the item belongs to (the ClickUp `Team` field), when the reader states it. */
36
+ team?: string | null;
37
+ /**
38
+ * Whether the item is on the public roadmap (the ClickUp `Public` checkbox). Stated only by a reader that also
39
+ * serves team-only items (an internal hub); the public roadmap serves public items only and leaves it out. When it
40
+ * is stated, the card says which it is, so a team-only plan is never read as announced.
41
+ */
42
+ isPublic?: boolean;
35
43
  /** ClickUp canonical task-type taxonomy ID (1008=Bug, 1009=Request,
36
44
  * 1010=Feature, …). Drives the type-specific icon rendered in the
37
45
  * chat's compact card for the internal-tasks variant — see
@@ -162,6 +162,16 @@ export type ButtonSizeKey = keyof typeof BUTTON_SIZE_CLASS;
162
162
  const KIND_FOCUS = 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus';
163
163
  const KIND_FOCUS_INSET =
164
164
  'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-focus';
165
+ /**
166
+ * A TAB's keyboard focus: the tab's own hover look (primary text and the accent fade), never a ring. A tab takes focus
167
+ * when it is clicked (Radix focuses the trigger it activates), so a ring showed after every click, and a tab strip
168
+ * that scrolls sideways clipped it to two vertical bars beside the open tab. Every tab, of every strip, reads this.
169
+ */
170
+ export const TAB_FOCUS_CLASS = [
171
+ 'outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0',
172
+ 'focus-visible:text-ods-text-primary focus-visible:bg-gradient-to-b focus-visible:from-transparent',
173
+ 'focus-visible:to-[color-mix(in_srgb,var(--color-accent-primary)_10%,transparent)]',
174
+ ].join(' ');
165
175
 
166
176
  /**
167
177
  * The button KINDS that are not a plain push button: each owns its whole box and look, which no `size` changes, and
@@ -255,7 +265,7 @@ export const BUTTON_KIND_CLASS = {
255
265
  'data-[emphasis=fade]:data-[state=active]:bg-gradient-to-b data-[emphasis=fade]:data-[state=active]:from-transparent data-[emphasis=fade]:data-[state=active]:to-[color-mix(in_srgb,var(--color-accent-primary)_10%,transparent)]',
256
266
  'data-[emphasis=fade]:hover:bg-gradient-to-b data-[emphasis=fade]:hover:from-transparent data-[emphasis=fade]:hover:to-[color-mix(in_srgb,var(--color-accent-primary)_10%,transparent)]',
257
267
  'disabled:cursor-not-allowed disabled:text-ods-text-disabled',
258
- KIND_FOCUS_INSET,
268
+ TAB_FOCUS_CLASS,
259
269
  '[&_svg]:shrink-0',
260
270
  ].join(' '),
261
271
  // A segment of a segmented control (`TabSelector`): the label on the strip, a hover fill, and the selected segment
@@ -39,7 +39,7 @@ export interface FeatureCardItem {
39
39
  export interface FeatureCardGridProps {
40
40
  items: FeatureCardItem[];
41
41
  /** Items per row from the widest breakpoint (4 shows two per row at `md`). */
42
- columns?: 2 | 3 | 4;
42
+ columns?: 1 | 2 | 3 | 4;
43
43
  className?: string;
44
44
  cardClassName?: string;
45
45
  itemClassName?: string;
@@ -86,6 +86,7 @@ export interface FeatureCardGridSkeletonShape {
86
86
  const FEATURE_CARD_GRID_SKELETON_ITEMS = 3;
87
87
 
88
88
  const GRID_COLUMNS = {
89
+ 1: 'grid-cols-1',
89
90
  2: 'grid-cols-1 content-md:grid-cols-2',
90
91
  3: 'grid-cols-1 content-md:grid-cols-3',
91
92
  4: 'grid-cols-1 content-md:grid-cols-2 content-lg:grid-cols-4',
@@ -5,6 +5,7 @@ import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from 'reac
5
5
 
6
6
  import { cn } from '../../utils/cn';
7
7
  import { TextLineSkeleton } from '../loading/unified-skeleton';
8
+ import { TAB_FOCUS_CLASS } from './button/button-styles';
8
9
  import { useLoadingScope } from './loading-scope';
9
10
 
10
11
  /**
@@ -36,10 +37,10 @@ const tabsListVariantClasses: Record<TabsVariant, string> = {
36
37
  };
37
38
 
38
39
  const TABS_TRIGGER_BASE =
39
- 'inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-h6 ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm';
40
+ 'inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-h6 transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm';
40
41
 
41
42
  const tabsTriggerVariantClasses: Record<TabsVariant, string> = {
42
- default: TABS_TRIGGER_BASE,
43
+ default: cn(TABS_TRIGGER_BASE, TAB_FOCUS_CLASS),
43
44
  'admin-rail': cn(
44
45
  TABS_TRIGGER_BASE,
45
46
  'rounded-none border-b-2 border-transparent',
@@ -49,6 +50,8 @@ const tabsTriggerVariantClasses: Record<TabsVariant, string> = {
49
50
  'transition-colors hover:text-ods-text-primary',
50
51
  // Disabled tabs stay visible but inert.
51
52
  'disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:text-ods-text-secondary',
53
+ // Focus is the tab's hover look, never the base's ring (see TAB_FOCUS_CLASS).
54
+ TAB_FOCUS_CLASS,
52
55
  ),
53
56
  };
54
57
 
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Reading a ClickUp drop-down custom field off a task (pure, server-safe).
3
+ *
4
+ * ClickUp sends a task's custom fields with each field's options as they are now: a drop-down's `value` is the chosen
5
+ * option's POSITION (`orderindex`), and newer answers may send the option's id. The option's id is stable; its name
6
+ * changes when the field's owner renames it (the Team field's "Design" became "Product"), so a reader resolves the
7
+ * chosen option's id first and its name from the field's own options.
8
+ */
9
+
10
+ export interface ClickUpDropDownOption {
11
+ id?: string;
12
+ name?: string;
13
+ orderindex?: number | string;
14
+ }
15
+
16
+ export interface ClickUpCustomFieldValue {
17
+ id?: string;
18
+ value?: unknown;
19
+ type_config?: { options?: ClickUpDropDownOption[] };
20
+ }
21
+
22
+ function optionsOf(field: ClickUpCustomFieldValue | undefined): ClickUpDropDownOption[] {
23
+ return Array.isArray(field?.type_config?.options) ? field.type_config.options : [];
24
+ }
25
+
26
+ function fieldOf(fields: unknown, fieldId: string): ClickUpCustomFieldValue | undefined {
27
+ return Array.isArray(fields) ? (fields as ClickUpCustomFieldValue[]).find(f => f?.id === fieldId) : undefined;
28
+ }
29
+
30
+ /** The chosen option of a drop-down field, or null when the task has no value (or one its options do not hold). */
31
+ export function clickUpDropDownOption(fields: unknown, fieldId: string): { id: string; name: string | null } | null {
32
+ const field = fieldOf(fields, fieldId);
33
+ const value = field?.value;
34
+ if (value === null || value === undefined || value === '') return null;
35
+ const options = optionsOf(field);
36
+ const byId = typeof value === 'string' ? options.find(o => o.id === value) : undefined;
37
+ const position = Number(value);
38
+ const option = byId ?? (Number.isFinite(position) ? options.find(o => Number(o.orderindex) === position) : undefined);
39
+ if (!option?.id) return null;
40
+ return { id: option.id, name: option.name?.trim() || null };
41
+ }
@@ -71,6 +71,7 @@ export { SEO_DESCRIPTION_MAX_LENGTH } from './seo-description';
71
71
  // consumers (e.g. company-hub deck) don't ship their own copies of the marks.
72
72
  export * from './brand-marks';
73
73
  export * from './design-doc-readiness';
74
+ export * from './clickup-drop-down';
74
75
  export * from './platform-config';
75
76
  export * from './os-platforms';
76
77
  export * from './access-code-client';
@@ -1,23 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
- "use client";
3
-
4
-
5
- var _chunkUN6LC5PKcjs = require('./chunk-UN6LC5PK.cjs');
6
- require('./chunk-QVC5CMC5.cjs');
7
- require('./chunk-JXQNECXM.cjs');
8
- require('./chunk-S5C3OZCO.cjs');
9
- require('./chunk-4IYNDV3G.cjs');
10
- require('./chunk-LL6PXI6C.cjs');
11
- require('./chunk-7PNRXJX2.cjs');
12
- require('./chunk-NTPX5GXI.cjs');
13
- require('./chunk-75PJ2SAZ.cjs');
14
- require('./chunk-5GJM7VRR.cjs');
15
- require('./chunk-DRWPSN3A.cjs');
16
- require('./chunk-UJ7AXHRZ.cjs');
17
- require('./chunk-AT4C2YMA.cjs');
18
- require('./chunk-K7I3YYYU.cjs');
19
- require('./chunk-6YZNUHXT.cjs');
20
- require('./chunk-V45KLJQP.cjs');
21
-
22
-
23
- exports.CaseStudyCard = _chunkUN6LC5PKcjs.CaseStudyCard;