@estiva-app/ui 0.25.0 → 0.26.0
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/AttachmentCard.d.ts +48 -6
- package/dist/AttachmentCard.d.ts.map +1 -1
- package/dist/Lightbox.d.ts +30 -0
- package/dist/Lightbox.d.ts.map +1 -0
- package/dist/eslint/index.js +4 -4
- package/dist/eslint/index.js.map +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +594 -464
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/registry.json +94 -4
- package/src/AttachmentCard.mdx +32 -8
- package/src/AttachmentCard.stories.tsx +54 -0
- package/src/AttachmentCard.test.tsx +115 -0
- package/src/AttachmentCard.tsx +212 -37
- package/src/Lightbox.mdx +71 -0
- package/src/Lightbox.stories.tsx +72 -0
- package/src/Lightbox.test.tsx +65 -0
- package/src/Lightbox.tsx +87 -0
- package/src/eslint/no-rebuilt-behaviour.ts +4 -4
- package/src/index.ts +1 -0
- package/src/registry/registry.test.ts +4 -4
- package/tailwind-preset.js +3 -0
- package/tokens.css +4 -0
package/src/index.ts
CHANGED
|
@@ -44,6 +44,7 @@ export {
|
|
|
44
44
|
type InlineChipProps,
|
|
45
45
|
type InlineChipTone,
|
|
46
46
|
} from './InlineChip'
|
|
47
|
+
export { Lightbox, type LightboxProps } from './Lightbox'
|
|
47
48
|
export { Link, type LinkProps, type LinkVariant } from './Link'
|
|
48
49
|
export { IconButton, type IconButtonProps, type IconButtonVariant } from './IconButton'
|
|
49
50
|
export { Kbd, type KbdProps } from './Kbd'
|
|
@@ -45,16 +45,16 @@ describe('the registry builds', () => {
|
|
|
45
45
|
expect(registry.entries.map((one) => one.name).sort()).toEqual(values.map((one) => one.name).sort())
|
|
46
46
|
})
|
|
47
47
|
|
|
48
|
-
it('counts
|
|
48
|
+
it('counts 87 names over 57 files: 80 components, 6 helpers and 1 hook (Lightbox joined in UIG-35)', () => {
|
|
49
49
|
// The reconciliation GATES.md §24 explains. If this changes, that changes.
|
|
50
50
|
const kinds = registry.entries.reduce<Record<string, number>>((all, one) => ({ ...all, [one.kind]: (all[one.kind] ?? 0) + 1 }), {})
|
|
51
|
-
expect(kinds).toEqual({ component:
|
|
52
|
-
expect(new Set(registry.entries.map((one) => one.sourceFile)).size).toBe(
|
|
51
|
+
expect(kinds).toEqual({ component: 80, helper: 6, hook: 1 })
|
|
52
|
+
expect(new Set(registry.entries.map((one) => one.sourceFile)).size).toBe(57)
|
|
53
53
|
})
|
|
54
54
|
|
|
55
55
|
it('gives every entry a purpose, from its own page or from the comment above it', () => {
|
|
56
56
|
expect(registry.entries.filter((one) => one.purpose.trim() === '')).toEqual([])
|
|
57
|
-
expect(registry.entries.filter((one) => one.purposeFrom === 'page').length).toBe(
|
|
57
|
+
expect(registry.entries.filter((one) => one.purposeFrom === 'page').length).toBe(57)
|
|
58
58
|
expect(registry.entries.filter((one) => one.purposeFrom === 'comment').length).toBe(30)
|
|
59
59
|
})
|
|
60
60
|
|
package/tailwind-preset.js
CHANGED
|
@@ -188,6 +188,9 @@ export default {
|
|
|
188
188
|
'accent-wash': 'var(--accent-wash)',
|
|
189
189
|
'success-wash': 'var(--success-wash)',
|
|
190
190
|
'scrim': 'var(--scrim)',
|
|
191
|
+
// A picture viewer dims harder than a dialog does: the page behind is
|
|
192
|
+
// not context there, it is glare beside the thing you opened (UIG-35).
|
|
193
|
+
'scrim-strong': 'var(--scrim-strong)',
|
|
191
194
|
},
|
|
192
195
|
boxShadow: {
|
|
193
196
|
'sm': 'var(--shadow-sm)',
|
package/tokens.css
CHANGED
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
--glow-accent: 0 0 5px rgba(139, 92, 246, 0.6);
|
|
80
80
|
--highlight-inset: inset 0 1px 0 rgba(255, 255, 255, 0.035);
|
|
81
81
|
--scrim: rgba(0, 0, 0, 0.5);
|
|
82
|
+
--scrim-strong: rgba(0, 0, 0, 0.8);
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
/* ─── dark ─── Peek's dark theme (peek/src/index.css .dark, 2026-08-28). */
|
|
@@ -142,6 +143,7 @@
|
|
|
142
143
|
--glow-accent: 0 0 5px rgba(167, 139, 250, 0.6);
|
|
143
144
|
--highlight-inset: inset 0 1px 0 rgba(255, 255, 255, 0.035);
|
|
144
145
|
--scrim: rgba(0, 0, 0, 0.5);
|
|
146
|
+
--scrim-strong: rgba(0, 0, 0, 0.8);
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
|
|
@@ -209,6 +211,7 @@
|
|
|
209
211
|
--glow-accent: 0 0 5px rgba(86, 200, 255, 0.6);
|
|
210
212
|
--highlight-inset: inset 0 1px 0 rgba(255, 255, 255, 0.035);
|
|
211
213
|
--scrim: rgba(0, 0, 0, 0.5);
|
|
214
|
+
--scrim-strong: rgba(0, 0, 0, 0.8);
|
|
212
215
|
}
|
|
213
216
|
|
|
214
217
|
/* ─── ship ─── Ship's palette (Katerina's ruling, 2026-08-28; ship/web/src/index.css). */
|
|
@@ -282,4 +285,5 @@
|
|
|
282
285
|
--glow-accent: 0 0 5px rgba(75, 88, 212, 0.6);
|
|
283
286
|
--highlight-inset: inset 0 1px 0 rgba(255, 255, 255, 0.035);
|
|
284
287
|
--scrim: rgba(0, 0, 0, 0.5);
|
|
288
|
+
--scrim-strong: rgba(0, 0, 0, 0.8);
|
|
285
289
|
}
|