@flamingo-stack/openframe-frontend-core 0.0.220-snapshot.20260602172647 → 0.0.220
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/{chunk-CPIX5AAR.js → chunk-3S5LHIG6.js} +2 -2
- package/dist/{chunk-E2AWBQEU.js → chunk-6XYG4J4R.js} +2 -2
- package/dist/{chunk-JMGSJHFP.cjs → chunk-B4RBJQBJ.cjs} +10 -10
- package/dist/{chunk-JMGSJHFP.cjs.map → chunk-B4RBJQBJ.cjs.map} +1 -1
- package/dist/{chunk-FOOQFRJR.js → chunk-CH5KIJJT.js} +2 -2
- package/dist/{chunk-SRCEVQYA.js → chunk-HIGI5ZPK.js} +2 -2
- package/dist/{chunk-ZAGQXSAP.cjs → chunk-ICJRYD3E.cjs} +14 -6
- package/dist/chunk-ICJRYD3E.cjs.map +1 -0
- package/dist/{chunk-IS4IZC7N.js → chunk-OPTUEWOT.js} +14 -6
- package/dist/chunk-OPTUEWOT.js.map +1 -0
- package/dist/{chunk-4PBV66HQ.cjs → chunk-RBTT2TIG.cjs} +7 -7
- package/dist/{chunk-4PBV66HQ.cjs.map → chunk-RBTT2TIG.cjs.map} +1 -1
- package/dist/{chunk-73YDB6AT.cjs → chunk-SEAFHHDR.cjs} +9 -9
- package/dist/{chunk-73YDB6AT.cjs.map → chunk-SEAFHHDR.cjs.map} +1 -1
- package/dist/{chunk-7TQNW2AM.cjs → chunk-TYR7DCGH.cjs} +24 -24
- package/dist/{chunk-7TQNW2AM.cjs.map → chunk-TYR7DCGH.cjs.map} +1 -1
- package/dist/components/chat/guide-welcome.d.ts +2 -4
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/index.cjs +77 -77
- package/dist/components/index.js +4 -4
- package/dist/components/layout/page-heading.d.ts +6 -7
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +25 -25
- package/dist/components/onboarding-guides/index.js +3 -3
- package/dist/components/tickets/index.cjs +64 -64
- package/dist/components/tickets/index.js +4 -4
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +3 -5
- package/src/components/chat/guide-welcome.tsx +13 -5
- package/src/components/layout/page-heading.tsx +7 -13
- package/src/stories/GuideWelcome.stories.tsx +0 -22
- package/dist/chunk-IS4IZC7N.js.map +0 -1
- package/dist/chunk-ZAGQXSAP.cjs.map +0 -1
- /package/dist/{chunk-CPIX5AAR.js.map → chunk-3S5LHIG6.js.map} +0 -0
- /package/dist/{chunk-E2AWBQEU.js.map → chunk-6XYG4J4R.js.map} +0 -0
- /package/dist/{chunk-FOOQFRJR.js.map → chunk-CH5KIJJT.js.map} +0 -0
- /package/dist/{chunk-SRCEVQYA.js.map → chunk-HIGI5ZPK.js.map} +0 -0
|
@@ -2,15 +2,14 @@ import type { ReactNode } from 'react'
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* THE page-title style — the ODS `text-h1` token (`--font-size-h1-title` =
|
|
5
|
-
* 40 / 48 / 56px, Azeret Mono semibold)
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* 40 / 48 / 56px, Azeret Mono semibold) plus the standard heading tracking.
|
|
6
|
+
* Mirrors the global `h1 { @apply text-h1 }` base, so every page heading is
|
|
7
|
+
* the SAME size across the lib and every consuming app.
|
|
8
8
|
*
|
|
9
|
-
* Single source of truth — do NOT hardcode a px size
|
|
10
|
-
*
|
|
11
|
-
* `PAGE_HEADING_CLASS`).
|
|
9
|
+
* Single source of truth — do NOT hardcode a px size for a page title; render
|
|
10
|
+
* `<PageHeading>` (or, for the rare non-h1 caller, apply `PAGE_HEADING_CLASS`).
|
|
12
11
|
*/
|
|
13
|
-
export const PAGE_HEADING_CLASS = 'text-h1 text-ods-text-primary'
|
|
12
|
+
export const PAGE_HEADING_CLASS = 'text-h1 text-ods-text-primary tracking-[-1.12px]'
|
|
14
13
|
|
|
15
14
|
const DESCRIPTION_CLASS =
|
|
16
15
|
"mt-6 max-w-[640px] font-['DM_Sans'] text-[16px] md:text-[18px] leading-[24px] md:leading-[28px] text-ods-text-secondary"
|
|
@@ -46,15 +45,10 @@ export function PageHeading({
|
|
|
46
45
|
}: PageHeadingProps) {
|
|
47
46
|
const headingClass = className ? `${PAGE_HEADING_CLASS} ${className}` : PAGE_HEADING_CLASS
|
|
48
47
|
const descClass = descriptionClassName ? `${DESCRIPTION_CLASS} ${descriptionClassName}` : DESCRIPTION_CLASS
|
|
49
|
-
// `description` is a ReactNode, so `description={cond && '...'}` can pass a
|
|
50
|
-
// boolean `false` — exclude it (and empty string) so we never render an empty
|
|
51
|
-
// <p> that adds phantom vertical gap beneath the heading.
|
|
52
|
-
const hasDescription =
|
|
53
|
-
description != null && description !== '' && typeof description !== 'boolean'
|
|
54
48
|
return (
|
|
55
49
|
<>
|
|
56
50
|
<Tag className={headingClass}>{children}</Tag>
|
|
57
|
-
{
|
|
51
|
+
{description != null && description !== '' && <p className={descClass}>{description}</p>}
|
|
58
52
|
</>
|
|
59
53
|
)
|
|
60
54
|
}
|
|
@@ -14,18 +14,6 @@ const ACTIONS = [
|
|
|
14
14
|
{ id: 'find', label: 'Find', onClick: () => console.log('find') },
|
|
15
15
|
]
|
|
16
16
|
|
|
17
|
-
// Quick actions are caller-provided (GuideWelcome ships no defaults); these
|
|
18
|
-
// demonstrate the inline chips + the "⋯" overflow menu.
|
|
19
|
-
const SAMPLE_QUICK_ACTIONS = [
|
|
20
|
-
{ id: 'how-to-start', label: 'How to start' },
|
|
21
|
-
{ id: 'connect-device', label: 'Connect device' },
|
|
22
|
-
{ id: 'find-device', label: 'Find device' },
|
|
23
|
-
{ id: 'remote-connection', label: 'Remote connection' },
|
|
24
|
-
{ id: 'run-scripts', label: 'Run scripts' },
|
|
25
|
-
{ id: 'device-software', label: 'Device software' },
|
|
26
|
-
{ id: 'bulk-update', label: 'Bulk update' },
|
|
27
|
-
]
|
|
28
|
-
|
|
29
17
|
const SAMPLE_LIST = (
|
|
30
18
|
<div className="shrink-0 overflow-hidden rounded-md border border-ods-border">
|
|
31
19
|
<MingoOnboardingCard
|
|
@@ -91,7 +79,6 @@ type Story = StoryObj<typeof GuideWelcome>
|
|
|
91
79
|
/** Full guide-mode empty state with the slash-command list and quick actions. */
|
|
92
80
|
export const Default: Story = {
|
|
93
81
|
args: {
|
|
94
|
-
quickActions: SAMPLE_QUICK_ACTIONS,
|
|
95
82
|
onQuickAction: (a) => console.log('quick action', a.id),
|
|
96
83
|
children: SAMPLE_LIST,
|
|
97
84
|
},
|
|
@@ -100,24 +87,15 @@ export const Default: Story = {
|
|
|
100
87
|
/** No slash commands available yet — greeting + quick actions only. */
|
|
101
88
|
export const NoCommands: Story = {
|
|
102
89
|
args: {
|
|
103
|
-
quickActions: SAMPLE_QUICK_ACTIONS,
|
|
104
90
|
onQuickAction: (a) => console.log('quick action', a.id),
|
|
105
91
|
},
|
|
106
92
|
}
|
|
107
93
|
|
|
108
|
-
/** No quick actions supplied (the default) — the chip row is omitted entirely. */
|
|
109
|
-
export const NoQuickActions: Story = {
|
|
110
|
-
args: {
|
|
111
|
-
children: SAMPLE_LIST,
|
|
112
|
-
},
|
|
113
|
-
}
|
|
114
|
-
|
|
115
94
|
/** Custom greeting copy. */
|
|
116
95
|
export const CustomCopy: Story = {
|
|
117
96
|
args: {
|
|
118
97
|
title: 'Ask the Guide',
|
|
119
98
|
subtitle: 'A temporary session for exploring docs and tickets.',
|
|
120
|
-
quickActions: SAMPLE_QUICK_ACTIONS,
|
|
121
99
|
onQuickAction: (a) => console.log('quick action', a.id),
|
|
122
100
|
children: SAMPLE_LIST,
|
|
123
101
|
},
|