@podoba/react 0.0.43 → 0.0.44
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/package.json +3 -3
- package/src/components/asset-selection-surface.tsx +1 -1
- package/src/components/button.tsx +1 -1
- package/src/components/collapsible-card.tsx +1 -1
- package/src/components/combobox.tsx +1 -1
- package/src/components/compact-settings-dialog.tsx +2 -2
- package/src/components/date-picker.tsx +4 -4
- package/src/components/date-selection-calendar.tsx +2 -2
- package/src/components/delivery/send-to-print-modal.tsx +1 -1
- package/src/components/dialog.tsx +1 -1
- package/src/components/focus-field.tsx +1 -1
- package/src/components/multiselect.tsx +1 -1
- package/src/components/number-field.tsx +2 -2
- package/src/components/rich-text-editor.tsx +1 -1
- package/src/components/search-field.tsx +1 -1
- package/src/components/select.tsx +1 -1
- package/src/components/side-panel.tsx +1 -1
- package/src/components/table.tsx +1 -1
- package/src/components/tag-group.tsx +1 -1
- package/src/components/tile.tsx +2 -2
- package/src/components/toast.tsx +1 -1
- package/src/editor/block-editor.tsx +1 -1
- package/src/layout/app-shell.tsx +1 -1
- package/src/layout/topbar.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podoba/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.44",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "podoba React components — React Aria Components + Tailwind primitives + layout, built with uic.",
|
|
6
6
|
"repository": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"typecheck": "tsc --build"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@podoba/tokens": "^0.0.
|
|
32
|
-
"@podoba/tailwind": "^0.0.
|
|
31
|
+
"@podoba/tokens": "^0.0.44",
|
|
32
|
+
"@podoba/tailwind": "^0.0.44",
|
|
33
33
|
"react-aria-components": "1.18.0",
|
|
34
34
|
"class-variance-authority": "0.7.1",
|
|
35
35
|
"clsx": "2.1.1",
|
|
@@ -89,7 +89,7 @@ export function AssetLibraryPreview({ label, selected, aspectRatio, tags, onPres
|
|
|
89
89
|
}) {
|
|
90
90
|
return <AriaButton aria-label={label} aria-pressed={selected} onPress={onPress}
|
|
91
91
|
style={{ aspectRatio }}
|
|
92
|
-
className={`group relative block min-h-[150px] max-h-[800px] w-full overflow-hidden rounded-none border p-0 transition-transform duration-200 ease-[ease] hover:-translate-y-0.5 hover:shadow-xs hover:border-[#aba89c] active:translate-y-0 focus-visible:ring-2 focus-visible:ring-accent-blue focus-visible:ring-offset-2 motion-reduce:transition-none ${selected ? 'border-accent-blue bg-accent-blue/10' : 'border-border bg-surface-card'}`}>
|
|
92
|
+
className={`group relative block min-h-[150px] max-h-[800px] w-full cursor-pointer overflow-hidden rounded-none border p-0 transition-transform duration-200 ease-[ease] hover:-translate-y-0.5 hover:shadow-xs hover:border-[#aba89c] active:translate-y-0 focus-visible:ring-2 focus-visible:ring-accent-blue focus-visible:ring-offset-2 motion-reduce:transition-none ${selected ? 'border-accent-blue bg-accent-blue/10' : 'border-border bg-surface-card'}`}>
|
|
93
93
|
{children}
|
|
94
94
|
{tags.length ? <span data-testid="asset-card-overlay" className="pointer-events-none absolute inset-x-0 bottom-0 flex flex-wrap items-center gap-1 bg-gradient-to-t from-black/70 to-transparent p-3 opacity-0 transition-opacity duration-250 ease-[ease] group-hover:opacity-100 group-focus-visible:opacity-100 motion-reduce:transition-none">
|
|
95
95
|
{tags.slice(0, 3).map(tag => <span key={tag} className="ms-3 inline-flex h-6 items-center rounded-full bg-surface-muted px-2.5 text-label font-medium leading-5 text-(--color-neutral-600)">{tag}</span>)}
|
|
@@ -13,7 +13,7 @@ export const Button = uic(RACButton, {
|
|
|
13
13
|
// on every size — size variants change PADDING ONLY, never the text scale. The
|
|
14
14
|
// source eases background-color, color, box-shadow and border-color over 120ms `ease`.
|
|
15
15
|
baseClass:
|
|
16
|
-
'inline-flex items-center justify-center gap-2 rounded-full text-compact leading-4 ' +
|
|
16
|
+
'inline-flex cursor-pointer items-center justify-center gap-2 rounded-full text-compact leading-4 ' +
|
|
17
17
|
'transition-[background-color,color,box-shadow,border-color] duration-120 ease-[ease] motion-reduce:transition-none ' +
|
|
18
18
|
'outline-none data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring data-[focus-visible]:ring-offset-2 ' +
|
|
19
19
|
// Inactive states (disabled / pending) soften the LABEL ONLY and leave every
|
|
@@ -102,7 +102,7 @@ export function CollapsibleCard({
|
|
|
102
102
|
<RACButton
|
|
103
103
|
slot="trigger"
|
|
104
104
|
className={
|
|
105
|
-
'flex w-full items-center justify-between gap-4 rounded-lg p-6 text-left outline-none ' +
|
|
105
|
+
'flex w-full cursor-pointer items-center justify-between gap-4 rounded-lg p-6 text-left outline-none ' +
|
|
106
106
|
'data-[disabled]:cursor-not-allowed data-[disabled]:opacity-60 ' +
|
|
107
107
|
'data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring data-[focus-visible]:ring-inset'
|
|
108
108
|
}
|
|
@@ -135,7 +135,7 @@ export const ComboBox = <T extends object>({
|
|
|
135
135
|
<div className="relative">
|
|
136
136
|
<ComboBoxInput placeholder={placeholder} fieldSize={size} />
|
|
137
137
|
{/* RAC uses this Button to toggle the listbox open/closed. */}
|
|
138
|
-
<RACButton className="absolute inset-y-0 right-0 flex w-11 items-center justify-center rounded-r-lg outline-none data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring">
|
|
138
|
+
<RACButton className="absolute inset-y-0 right-0 flex w-11 cursor-pointer data-[disabled]:cursor-not-allowed items-center justify-center rounded-r-lg outline-none data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring">
|
|
139
139
|
<Chevron />
|
|
140
140
|
</RACButton>
|
|
141
141
|
</div>
|
|
@@ -9,11 +9,11 @@ export const MemberSelectionGrid = uic('ul', { displayName: 'MemberSelectionGrid
|
|
|
9
9
|
export const TeamSelectionGrid = uic('ul', { displayName: 'TeamSelectionGrid', baseClass: 'm-0 mt-8 grid list-none grid-cols-[repeat(auto-fill,minmax(200px,1fr))] gap-4 p-0' })
|
|
10
10
|
export const MemberSelectionCard = uic(AriaButton, {
|
|
11
11
|
displayName: 'MemberSelectionCard',
|
|
12
|
-
baseClass: 'flex w-full items-center gap-3 rounded-lg border border-border bg-surface-card p-4 text-start text-fg outline-none transition-all duration-200 data-[hovered]:-translate-y-0.5 data-[hovered]:border-brand-primary data-[hovered]:shadow-[0_4px_12px_rgba(0,0,0,0.1)] aria-pressed:border-brand-primary aria-pressed:bg-surface-muted data-[disabled]:cursor-default data-[disabled]:opacity-60 data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring',
|
|
12
|
+
baseClass: 'flex w-full cursor-pointer items-center gap-3 rounded-lg border border-border bg-surface-card p-4 text-start text-fg outline-none transition-all duration-200 data-[hovered]:-translate-y-0.5 data-[hovered]:border-brand-primary data-[hovered]:shadow-[0_4px_12px_rgba(0,0,0,0.1)] aria-pressed:border-brand-primary aria-pressed:bg-surface-muted data-[disabled]:cursor-default data-[disabled]:opacity-60 data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring',
|
|
13
13
|
})
|
|
14
14
|
export const TeamSelectionCard = uic(AriaButton, {
|
|
15
15
|
displayName: 'TeamSelectionCard',
|
|
16
|
-
baseClass: 'block w-full rounded-md border-2 border-border bg-transparent p-4 text-start text-fg outline-none transition-all duration-200 data-[hovered]:border-brand-primary aria-pressed:border-brand-primary aria-pressed:bg-surface-muted data-[disabled]:cursor-default data-[disabled]:opacity-60 data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring',
|
|
16
|
+
baseClass: 'block w-full cursor-pointer rounded-md border-2 border-border bg-transparent p-4 text-start text-fg outline-none transition-all duration-200 data-[hovered]:border-brand-primary aria-pressed:border-brand-primary aria-pressed:bg-surface-muted data-[disabled]:cursor-default data-[disabled]:opacity-60 data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring',
|
|
17
17
|
})
|
|
18
18
|
export const MemberSelectionInfo = uic('span', { displayName: 'MemberSelectionInfo', baseClass: 'min-w-0 flex-1' })
|
|
19
19
|
export const MemberSelectionName = uic('span', { displayName: 'MemberSelectionName', baseClass: 'mb-1 block text-heading5 font-medium text-fg' })
|
|
@@ -38,8 +38,8 @@ import {
|
|
|
38
38
|
* to `"minute"` for a datetime picker (adds time segments to the field).
|
|
39
39
|
*/
|
|
40
40
|
const navButton =
|
|
41
|
-
'flex h-8 w-8 items-center justify-center rounded-md text-fg-muted outline-none transition-colors ' +
|
|
42
|
-
'hover:bg-surface-muted hover:text-fg data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring data-[disabled]:opacity-40'
|
|
41
|
+
'flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-fg-muted outline-none transition-colors ' +
|
|
42
|
+
'hover:bg-surface-muted hover:text-fg data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring data-[disabled]:cursor-not-allowed data-[disabled]:opacity-40'
|
|
43
43
|
|
|
44
44
|
const Chevron = ({ dir }: { dir: 'left' | 'right' }) => (
|
|
45
45
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
|
|
@@ -48,7 +48,7 @@ const Chevron = ({ dir }: { dir: 'left' | 'right' }) => (
|
|
|
48
48
|
)
|
|
49
49
|
|
|
50
50
|
const calendarCellClass =
|
|
51
|
-
'flex h-9 w-9 cursor-pointer items-center justify-center rounded-md text-small text-fg outline-none transition-colors ' +
|
|
51
|
+
'flex h-9 w-9 cursor-pointer items-center justify-center rounded-md text-small text-fg outline-none transition-colors data-[disabled]:cursor-not-allowed data-[unavailable]:cursor-not-allowed ' +
|
|
52
52
|
// #25: out-of-month and unavailable days stay de-emphasised, but they are dates a
|
|
53
53
|
// user reads and (outside-month) can click — `fg-muted`, not the 2.10:1 decorative grey.
|
|
54
54
|
'data-[outside-month]:text-fg-muted data-[hovered]:bg-surface-muted ' +
|
|
@@ -105,7 +105,7 @@ export const DatePicker = <T extends DateValue>({ label, description, errorMessa
|
|
|
105
105
|
{inFocus ? null : (
|
|
106
106
|
<RACButton
|
|
107
107
|
aria-label="Open calendar"
|
|
108
|
-
className="flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-fg-muted outline-none transition-colors hover:bg-surface-muted hover:text-fg data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring"
|
|
108
|
+
className="flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg-muted outline-none data-[disabled]:cursor-not-allowed transition-colors hover:bg-surface-muted hover:text-fg data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring"
|
|
109
109
|
>
|
|
110
110
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
|
|
111
111
|
<rect x="3" y="4" width="18" height="18" rx="2" />
|
|
@@ -5,11 +5,11 @@ export const CalendarDialogContent = uic('div', { displayName: 'CalendarDialogCo
|
|
|
5
5
|
export const CalendarDateHint = uic('p', { displayName: 'CalendarDateHint', baseClass: 'm-0 min-h-9 text-small font-normal text-fg-workflow-muted', style: { maxWidth: '48ch' } })
|
|
6
6
|
const Frame = uic('div', { displayName: 'DateSelectionCalendar', baseClass: 'mt-6 overflow-hidden border border-border bg-surface' })
|
|
7
7
|
const Header = uic('div', { displayName: 'DateSelectionCalendarHeader', baseClass: 'flex min-h-15 items-center border-b border-border px-5' })
|
|
8
|
-
const Navigation = uic(AriaButton, { displayName: 'DateSelectionCalendarNavigation', baseClass: 'mx-1.5 inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-sm bg-transparent text-2xl font-normal leading-none text-fg outline-none data-[hovered]:bg-surface-card data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring' })
|
|
8
|
+
const Navigation = uic(AriaButton, { displayName: 'DateSelectionCalendarNavigation', baseClass: 'mx-1.5 inline-flex h-9 w-9 shrink-0 cursor-pointer items-center justify-center rounded-sm bg-transparent text-2xl font-normal leading-none text-fg outline-none data-[hovered]:bg-surface-card data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring' })
|
|
9
9
|
const Month = uic('div', { displayName: 'DateSelectionCalendarMonth', baseClass: 'flex-1 text-center text-small font-normal text-fg' })
|
|
10
10
|
const Week = uic('div', { displayName: 'DateSelectionCalendarWeek', baseClass: 'grid grid-cols-7 border-b border-border last:border-b-0' })
|
|
11
11
|
const Weekday = uic('div', { displayName: 'DateSelectionCalendarWeekday', baseClass: 'border-e border-border px-3 pb-2 pt-4 text-center font-mono text-small font-normal tracking-normal text-fg-workflow-muted last:border-e-0' })
|
|
12
|
-
const Day = uic(AriaButton, { displayName: 'DateSelectionCalendarDay', baseClass: 'inline-flex min-h-16 w-full items-center justify-center rounded-none border-e border-border bg-transparent text-small font-normal text-fg outline-none last:border-e-0 data-[hovered]:bg-surface-card data-[focus-visible]:ring-2 data-[focus-visible]:ring-inset data-[focus-visible]:ring-ring data-[disabled]:cursor-not-allowed' })
|
|
12
|
+
const Day = uic(AriaButton, { displayName: 'DateSelectionCalendarDay', baseClass: 'inline-flex min-h-16 w-full cursor-pointer items-center justify-center rounded-none border-e border-border bg-transparent text-small font-normal text-fg outline-none last:border-e-0 data-[hovered]:bg-surface-card data-[focus-visible]:ring-2 data-[focus-visible]:ring-inset data-[focus-visible]:ring-ring data-[disabled]:cursor-not-allowed' })
|
|
13
13
|
const Placeholder = uic('div', { displayName: 'DateSelectionCalendarPlaceholder', baseClass: 'min-h-16 border-e border-border last:border-e-0' })
|
|
14
14
|
|
|
15
15
|
export interface DateSelectionCell {
|
|
@@ -284,7 +284,7 @@ export function SendToPrintModal({
|
|
|
284
284
|
type="button"
|
|
285
285
|
onClick={close}
|
|
286
286
|
aria-label={labels.closeLabel ?? 'Close'}
|
|
287
|
-
className="-mr-1 -mt-1 inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-fg-subtle outline-none transition-colors hover:bg-surface-muted hover:text-fg focus-visible:ring-2 focus-visible:ring-ring"
|
|
287
|
+
className="-mr-1 -mt-1 inline-flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg-subtle outline-none transition-colors hover:bg-surface-muted hover:text-fg focus-visible:ring-2 focus-visible:ring-ring"
|
|
288
288
|
>
|
|
289
289
|
<svg
|
|
290
290
|
width="18"
|
|
@@ -199,7 +199,7 @@ export const Dialog = ({
|
|
|
199
199
|
// gs close: 32px square (`h-8 w-8`), medium radius (`rounded-md`),
|
|
200
200
|
// tertiary icon color (`text-fg-subtle`) → primary (`text-fg`) +
|
|
201
201
|
// subtle hover bg on hover. Smooth color transition.
|
|
202
|
-
className={`${isCompact ? 'absolute top-[calc(var(--spacing)*3.375)] end-4 max-md:end-3' : '-mr-1 -mt-1'} inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-fg-subtle outline-none transition-colors hover:bg-surface-muted hover:text-fg focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none`}
|
|
202
|
+
className={`${isCompact ? 'absolute top-[calc(var(--spacing)*3.375)] end-4 max-md:end-3' : '-mr-1 -mt-1'} inline-flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg-subtle outline-none transition-colors hover:bg-surface-muted hover:text-fg focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none`}
|
|
203
203
|
>
|
|
204
204
|
<svg
|
|
205
205
|
width={isCompact ? 15 : 18}
|
|
@@ -182,7 +182,7 @@ export function FocusField({
|
|
|
182
182
|
type="button"
|
|
183
183
|
onClick={ctx.close}
|
|
184
184
|
aria-label="Close"
|
|
185
|
-
className="absolute right-3 top-3 inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-fg-subtle outline-none transition-colors hover:bg-surface-muted hover:text-fg focus-visible:ring-2 focus-visible:ring-ring"
|
|
185
|
+
className="absolute right-3 top-3 inline-flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg-subtle outline-none transition-colors hover:bg-surface-muted hover:text-fg focus-visible:ring-2 focus-visible:ring-ring"
|
|
186
186
|
>
|
|
187
187
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" aria-hidden="true">
|
|
188
188
|
<path d="M6 6l12 12M18 6 6 18" />
|
|
@@ -179,7 +179,7 @@ export const MultiSelect = ({
|
|
|
179
179
|
isDisabled={isDisabled}
|
|
180
180
|
onPress={() => setOpen(true)}
|
|
181
181
|
className={clsx(
|
|
182
|
-
'flex w-full items-center justify-between gap-2.5 rounded-lg px-4',
|
|
182
|
+
'flex w-full cursor-pointer items-center justify-between gap-2.5 rounded-lg px-4',
|
|
183
183
|
fieldSizeClasses[size],
|
|
184
184
|
outlinedFieldClasses({ invalid: 'group' }),
|
|
185
185
|
)}
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
* Components `NumberField`; styled to match the other form fields.
|
|
26
26
|
*/
|
|
27
27
|
const stepper =
|
|
28
|
-
'flex h-full w-9 shrink-0 items-center justify-center text-body text-fg-muted outline-none transition-colors ' +
|
|
29
|
-
'hover:bg-surface-muted hover:text-fg data-[pressed]:bg-surface-muted data-[disabled]:opacity-40'
|
|
28
|
+
'flex h-full w-9 shrink-0 cursor-pointer items-center justify-center text-body text-fg-muted outline-none transition-colors ' +
|
|
29
|
+
'hover:bg-surface-muted hover:text-fg data-[pressed]:bg-surface-muted data-[disabled]:cursor-not-allowed data-[disabled]:opacity-40'
|
|
30
30
|
|
|
31
31
|
export type NumberFieldProps = RACNumberFieldProps & {
|
|
32
32
|
/** Visible label (required for accessibility). */
|
|
@@ -138,7 +138,7 @@ export function RichTextEditor({
|
|
|
138
138
|
title={t.title}
|
|
139
139
|
onMouseDown={(e) => e.preventDefault()}
|
|
140
140
|
onClick={() => t.run(exec)}
|
|
141
|
-
className="rounded border-0 bg-transparent px-2.5 py-0.5 text-label text-fg-muted transition-colors hover:bg-surface hover:text-fg"
|
|
141
|
+
className="cursor-pointer rounded border-0 bg-transparent px-2.5 py-0.5 text-label text-fg-muted transition-colors hover:bg-surface hover:text-fg"
|
|
142
142
|
>
|
|
143
143
|
{t.label}
|
|
144
144
|
</button>
|
|
@@ -59,7 +59,7 @@ export const SearchField = ({ label, description, placeholder, size = 'md', ...p
|
|
|
59
59
|
}
|
|
60
60
|
/>
|
|
61
61
|
{/* RAC hides this automatically when the field is empty. */}
|
|
62
|
-
<RACButton className="absolute right-2 flex h-7 w-7 items-center justify-center rounded-md text-fg-subtle outline-none transition-colors hover:bg-surface-muted hover:text-fg group-data-[empty]:hidden data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring">
|
|
62
|
+
<RACButton className="absolute right-2 flex h-7 w-7 cursor-pointer data-[disabled]:cursor-not-allowed items-center justify-center rounded-md text-fg-subtle outline-none transition-colors hover:bg-surface-muted hover:text-fg group-data-[empty]:hidden data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring">
|
|
63
63
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" aria-hidden="true">
|
|
64
64
|
<path d="M6 6l12 12M18 6 6 18" />
|
|
65
65
|
</svg>
|
|
@@ -48,7 +48,7 @@ const SelectTrigger = uic(RACButton, {
|
|
|
48
48
|
// Filled follows the Manager's borderless control. Outlined is the shared
|
|
49
49
|
// outlined skin; its height comes from `fieldSize`.
|
|
50
50
|
baseClass:
|
|
51
|
-
'flex w-full items-center justify-between gap-2.5 rounded-lg text-small text-fg outline-none transition-colors',
|
|
51
|
+
'flex w-full cursor-pointer items-center justify-between gap-2.5 rounded-lg text-small text-fg outline-none transition-colors',
|
|
52
52
|
variants: {
|
|
53
53
|
appearance: {
|
|
54
54
|
filled: 'min-h-control-tall border-0 bg-surface-card px-5 py-5 font-normal leading-4.5 duration-200 motion-reduce:transition-none ' +
|
|
@@ -61,7 +61,7 @@ const SidePanelSurface = uic(RACModal, {
|
|
|
61
61
|
const SidePanelClose = uic(RACButton, {
|
|
62
62
|
displayName: 'SidePanel.Close',
|
|
63
63
|
baseClass:
|
|
64
|
-
'inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-full text-fg-subtle outline-none ' +
|
|
64
|
+
'inline-flex h-11 w-11 shrink-0 cursor-pointer items-center justify-center rounded-full text-fg-subtle outline-none ' +
|
|
65
65
|
'transition-colors hover:bg-surface-muted hover:text-fg ' +
|
|
66
66
|
'data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring data-[focus-visible]:ring-offset-2',
|
|
67
67
|
})
|
package/src/components/table.tsx
CHANGED
|
@@ -137,7 +137,7 @@ export function Table<Row>({
|
|
|
137
137
|
<button
|
|
138
138
|
type="button"
|
|
139
139
|
onClick={() => toggleSort(column.key)}
|
|
140
|
-
className={`inline-flex items-center gap-1 outline-none transition-colors hover:text-fg focus-visible:text-fg ${
|
|
140
|
+
className={`inline-flex cursor-pointer items-center gap-1 outline-none transition-colors hover:text-fg focus-visible:text-fg ${
|
|
141
141
|
align === 'right' ? 'flex-row-reverse' : ''
|
|
142
142
|
} ${active ? 'text-fg' : ''}`}
|
|
143
143
|
>
|
|
@@ -54,7 +54,7 @@ export const Tag = ({ children, textValue, ...props }: RACTagProps) => (
|
|
|
54
54
|
{allowsRemoving ? (
|
|
55
55
|
<RACButton
|
|
56
56
|
slot="remove"
|
|
57
|
-
className="-mr-1 flex h-4 w-4 items-center justify-center rounded-full text-fg-subtle outline-none transition-colors hover:bg-surface-muted hover:text-fg data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring"
|
|
57
|
+
className="-mr-1 flex h-4 w-4 cursor-pointer data-[disabled]:cursor-not-allowed items-center justify-center rounded-full text-fg-subtle outline-none transition-colors hover:bg-surface-muted hover:text-fg data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring"
|
|
58
58
|
>
|
|
59
59
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="3" strokeLinecap="round" aria-hidden="true">
|
|
60
60
|
<path d="M6 6l12 12M18 6 6 18" />
|
package/src/components/tile.tsx
CHANGED
|
@@ -45,7 +45,7 @@ const THEME: Record<TileTheme, string> = {
|
|
|
45
45
|
const baseSurface = 'flex h-full min-h-[200px] flex-col gap-6 overflow-hidden rounded-lg p-4'
|
|
46
46
|
|
|
47
47
|
/** Focus treatment for interactive tiles; generic tiles do not lift or cast a shadow. */
|
|
48
|
-
const interactive = 'no-underline outline-none focus-visible:ring-2 focus-visible:ring-ring'
|
|
48
|
+
const interactive = 'cursor-pointer no-underline outline-none focus-visible:ring-2 focus-visible:ring-ring'
|
|
49
49
|
|
|
50
50
|
export type TileProps = {
|
|
51
51
|
/** Surface theme (gs's Figma palette). */
|
|
@@ -233,7 +233,7 @@ function MediaHero({
|
|
|
233
233
|
type="button"
|
|
234
234
|
aria-label={closeLabel}
|
|
235
235
|
onClick={() => setPlaying(false)}
|
|
236
|
-
className="absolute right-4 top-4 z-20 flex h-8 w-8 items-center justify-center rounded-full bg-black/60 text-white outline-none transition-colors hover:bg-black/80 focus-visible:ring-2 focus-visible:ring-white/70"
|
|
236
|
+
className="absolute right-4 top-4 z-20 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-black/60 text-white outline-none transition-colors hover:bg-black/80 focus-visible:ring-2 focus-visible:ring-white/70"
|
|
237
237
|
>
|
|
238
238
|
<CloseIcon className="h-4 w-4" />
|
|
239
239
|
</button>
|
package/src/components/toast.tsx
CHANGED
|
@@ -159,7 +159,7 @@ export const ToastRegion = ({
|
|
|
159
159
|
<RACButton
|
|
160
160
|
slot="close"
|
|
161
161
|
aria-label={closeLabel}
|
|
162
|
-
className="inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-fg-subtle outline-none transition-colors hover:bg-surface-muted hover:text-fg data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring"
|
|
162
|
+
className="inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg-subtle outline-none transition-colors hover:bg-surface-muted hover:text-fg data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring"
|
|
163
163
|
>
|
|
164
164
|
<CloseIcon />
|
|
165
165
|
</RACButton>
|
|
@@ -135,7 +135,7 @@ export function canOpenSlash(state: EditorState, from: number): boolean {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
const btn =
|
|
138
|
-
'inline-flex h-8 min-w-8 items-center justify-center rounded-md px-2 text-small text-fg-muted transition-colors hover:bg-surface-muted hover:text-fg data-[active=true]:bg-surface-muted data-[active=true]:text-fg'
|
|
138
|
+
'inline-flex h-8 min-w-8 cursor-pointer items-center justify-center rounded-md px-2 text-small text-fg-muted transition-colors hover:bg-surface-muted hover:text-fg data-[active=true]:bg-surface-muted data-[active=true]:text-fg'
|
|
139
139
|
|
|
140
140
|
/** Marks the bubble toolbar toggles. `active` keys read off the useEditorState
|
|
141
141
|
* snapshot below — Tiptap 3 does NOT re-render on transactions, so a plain
|
package/src/layout/app-shell.tsx
CHANGED
|
@@ -170,7 +170,7 @@ export const AppShell = ({
|
|
|
170
170
|
aria-controls={drawerOpen ? drawerId : undefined}
|
|
171
171
|
onPress={() => setDrawerOpen((open) => !open)}
|
|
172
172
|
className={
|
|
173
|
-
'ms-6 flex h-9 w-9 shrink-0 items-center justify-center rounded-md text-fg outline-none ' +
|
|
173
|
+
'ms-6 flex h-9 w-9 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg outline-none ' +
|
|
174
174
|
'transition-colors hover:bg-surface-muted md:hidden ' +
|
|
175
175
|
'data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring'
|
|
176
176
|
}
|
package/src/layout/topbar.tsx
CHANGED
|
@@ -194,7 +194,7 @@ export const UserMenu = ({ trigger, triggerLabel, onAction, children }: UserMenu
|
|
|
194
194
|
<RACButton
|
|
195
195
|
aria-label={triggerLabel}
|
|
196
196
|
className={
|
|
197
|
-
'flex h-9 items-center gap-2 rounded-md px-2 text-small font-medium text-fg outline-none ' +
|
|
197
|
+
'flex h-9 cursor-pointer items-center gap-2 rounded-md px-2 text-small font-medium text-fg outline-none ' +
|
|
198
198
|
'transition-colors hover:bg-surface-muted ' +
|
|
199
199
|
'data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring'
|
|
200
200
|
}
|