@crisp-ui-kit/crisp 0.33.5 → 0.34.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.
|
@@ -392,7 +392,7 @@ function RecordPage({ record, columns, collection = "Records", labels, onBack, o
|
|
|
392
392
|
return ((0, jsx_runtime_1.jsx)("div", { className: "crisp-recordpage-panel", children: (0, jsx_runtime_1.jsx)(EmptyCard, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.Folder, { size: 22, strokeWidth: 1.5 }), children: t.nothingHereYet }) }));
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, recordpage_recipe_1.recordpageRecipe)({ className }), ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-topbar", children: [(0, jsx_runtime_1.jsxs)("nav", { className: "crisp-recordpage-crumbs", "aria-label": t.breadcrumb, children: [(0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-crumb", onClick: onBack, "aria-label": `Back to ${collection}`, children: collection }), (0, jsx_runtime_1.jsx)("span", { className: "crisp-recordpage-crumb-sep", children: "/" }), (0, jsx_runtime_1.jsx)("span", { className: "crisp-recordpage-crumb-name", children: name })] }), (0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-actions", children: [(0, jsx_runtime_1.jsxs)("button", { type: "button", className: "crisp-recordpage-action crisp-recordpage-action--ghost", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Sparkles, { size: 14, strokeWidth: 1.75, color: "var(--bg-brand-solid)" }), t.askAttio] }), onToggleFull && ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-action crisp-recordpage-action--icon", onClick: onToggleFull, "aria-label": full ? t.exitFullScreen : t.fullScreen, children: full ? ((0, jsx_runtime_1.jsx)(lucide_react_1.Minimize2, { size: 15, strokeWidth: 1.75 })) : ((0, jsx_runtime_1.jsx)(lucide_react_1.Maximize2, { size: 15, strokeWidth: 1.75 })) })), (0, jsx_runtime_1.jsxs)(menu_1.Menu, { align: "end", "aria-label": t.recordActions, trigger: (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-action crisp-recordpage-action--icon", "aria-label": t.recordActions, children: (0, jsx_runtime_1.jsx)(lucide_react_1.MoreHorizontal, { size: 16, strokeWidth: 1.75 }) }), children: [(0, jsx_runtime_1.jsx)(menu_1.MenuItem, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.Copy, { size: 15, strokeWidth: 1.75 }), shortcut: "\u2318C", children: t.copyRecordLink }), (0, jsx_runtime_1.jsx)(menu_1.MenuItem, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.Plus, { size: 15, strokeWidth: 1.75 }), children: t.addToList }), (0, jsx_runtime_1.jsx)(menu_1.MenuItem, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.Star, { size: 15, strokeWidth: 1.75 }), onSelect: () => setFavorite((f) => !f), children: favorite ? t.removeFromFavourites : t.addToFavourites }), (0, jsx_runtime_1.jsx)(menu_1.MenuSeparator, {}), (0, jsx_runtime_1.jsx)(menu_1.MenuItem, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.Trash2, { size: 15, strokeWidth: 1.75 }), danger: true, shortcut: "\u232B", children: t.deleteRecord })] })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-body", children: [(0, jsx_runtime_1.jsxs)("aside", { className: "crisp-recordpage-details", style: { width: detailsW }, children: [(0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-entity", children: [entity?.avatar ? ((0, jsx_runtime_1.jsx)("img", { className: "crisp-recordpage-entity-logo", src: entity.avatar, alt: "" })) : ((0, jsx_runtime_1.jsx)(avatar_1.Avatar, { size: "lg", shape: "rounded", tone: "brand", children: name.charAt(0) })), (0, jsx_runtime_1.jsx)("span", { className: "crisp-recordpage-entity-name", children: name }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-entity-iconbtn", "aria-label": t.editRecord, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Pencil, { size: 15, strokeWidth: 1.75 }) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-entity-iconbtn", "data-active": favorite ? "" : undefined, "aria-pressed": favorite, onClick: () => setFavorite((f) => !f), "aria-label": favorite ? t.removeFromFavourites : t.addToFavourites, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Star, { size: 15, strokeWidth: 1.75 }) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-quickactions", children: [(0, jsx_runtime_1.jsxs)("button", { type: "button", className: "crisp-recordpage-compose", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Mail, { size: 16, strokeWidth: 1.75 }), t.composeEmail] }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.copyRecordLink, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Copy, { size: 15, strokeWidth: 1.75 }) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.logANote, children: (0, jsx_runtime_1.jsx)(lucide_react_1.FileText, { size: 15, strokeWidth: 1.75 }) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.linkRecords, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Share2, { size: 15, strokeWidth: 1.75 }) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.createATask, children: (0, jsx_runtime_1.jsx)(lucide_react_1.SquareCheck, { size: 15, strokeWidth: 1.75 }) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-section", children: [(0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-detailhead", children: [searchOpen ? ((0, jsx_runtime_1.jsx)("input", {
|
|
395
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, recordpage_recipe_1.recordpageRecipe)({ className }), ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-topbar", children: [(0, jsx_runtime_1.jsxs)("nav", { className: "crisp-recordpage-crumbs", "aria-label": t.breadcrumb, children: [(0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-crumb", onClick: onBack, "aria-label": `Back to ${collection}`, children: collection }), (0, jsx_runtime_1.jsx)("span", { className: "crisp-recordpage-crumb-sep", children: "/" }), (0, jsx_runtime_1.jsx)("span", { className: "crisp-recordpage-crumb-name", children: name })] }), (0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-actions", children: [(0, jsx_runtime_1.jsxs)("button", { type: "button", className: "crisp-recordpage-action crisp-recordpage-action--ghost", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Sparkles, { size: 14, strokeWidth: 1.75, color: "var(--crisp-bg-brand-solid)" }), t.askAttio] }), onToggleFull && ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-action crisp-recordpage-action--icon", onClick: onToggleFull, "aria-label": full ? t.exitFullScreen : t.fullScreen, children: full ? ((0, jsx_runtime_1.jsx)(lucide_react_1.Minimize2, { size: 15, strokeWidth: 1.75 })) : ((0, jsx_runtime_1.jsx)(lucide_react_1.Maximize2, { size: 15, strokeWidth: 1.75 })) })), (0, jsx_runtime_1.jsxs)(menu_1.Menu, { align: "end", "aria-label": t.recordActions, trigger: (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-action crisp-recordpage-action--icon", "aria-label": t.recordActions, children: (0, jsx_runtime_1.jsx)(lucide_react_1.MoreHorizontal, { size: 16, strokeWidth: 1.75 }) }), children: [(0, jsx_runtime_1.jsx)(menu_1.MenuItem, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.Copy, { size: 15, strokeWidth: 1.75 }), shortcut: "\u2318C", children: t.copyRecordLink }), (0, jsx_runtime_1.jsx)(menu_1.MenuItem, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.Plus, { size: 15, strokeWidth: 1.75 }), children: t.addToList }), (0, jsx_runtime_1.jsx)(menu_1.MenuItem, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.Star, { size: 15, strokeWidth: 1.75 }), onSelect: () => setFavorite((f) => !f), children: favorite ? t.removeFromFavourites : t.addToFavourites }), (0, jsx_runtime_1.jsx)(menu_1.MenuSeparator, {}), (0, jsx_runtime_1.jsx)(menu_1.MenuItem, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.Trash2, { size: 15, strokeWidth: 1.75 }), danger: true, shortcut: "\u232B", children: t.deleteRecord })] })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-body", children: [(0, jsx_runtime_1.jsxs)("aside", { className: "crisp-recordpage-details", style: { width: detailsW }, children: [(0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-entity", children: [entity?.avatar ? ((0, jsx_runtime_1.jsx)("img", { className: "crisp-recordpage-entity-logo", src: entity.avatar, alt: "" })) : ((0, jsx_runtime_1.jsx)(avatar_1.Avatar, { size: "lg", shape: "rounded", tone: "brand", children: name.charAt(0) })), (0, jsx_runtime_1.jsx)("span", { className: "crisp-recordpage-entity-name", children: name }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-entity-iconbtn", "aria-label": t.editRecord, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Pencil, { size: 15, strokeWidth: 1.75 }) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-entity-iconbtn", "data-active": favorite ? "" : undefined, "aria-pressed": favorite, onClick: () => setFavorite((f) => !f), "aria-label": favorite ? t.removeFromFavourites : t.addToFavourites, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Star, { size: 15, strokeWidth: 1.75 }) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-quickactions", children: [(0, jsx_runtime_1.jsxs)("button", { type: "button", className: "crisp-recordpage-compose", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Mail, { size: 16, strokeWidth: 1.75 }), t.composeEmail] }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.copyRecordLink, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Copy, { size: 15, strokeWidth: 1.75 }) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.logANote, children: (0, jsx_runtime_1.jsx)(lucide_react_1.FileText, { size: 15, strokeWidth: 1.75 }) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.linkRecords, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Share2, { size: 15, strokeWidth: 1.75 }) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.createATask, children: (0, jsx_runtime_1.jsx)(lucide_react_1.SquareCheck, { size: 15, strokeWidth: 1.75 }) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-section", children: [(0, jsx_runtime_1.jsxs)("div", { className: "crisp-recordpage-detailhead", children: [searchOpen ? ((0, jsx_runtime_1.jsx)("input", {
|
|
396
396
|
// biome-ignore lint/a11y/noAutofocus: focusing the just-opened field search is expected
|
|
397
397
|
autoFocus: true, type: "text", className: "crisp-recordpage-fieldsearch", placeholder: t.searchPlaceholder, "aria-label": t.searchFields, value: fieldQuery, onChange: (e) => setFieldQuery(e.target.value), onKeyDown: (e) => {
|
|
398
398
|
if (e.key === "Escape") {
|
|
@@ -355,7 +355,7 @@ export function RecordPage({ record, columns, collection = "Records", labels, on
|
|
|
355
355
|
return (_jsx("div", { className: "crisp-recordpage-panel", children: _jsx(EmptyCard, { icon: _jsx(Folder, { size: 22, strokeWidth: 1.5 }), children: t.nothingHereYet }) }));
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
|
-
return (_jsxs("div", { className: recordpageRecipe({ className }), ...rest, children: [_jsxs("div", { className: "crisp-recordpage-topbar", children: [_jsxs("nav", { className: "crisp-recordpage-crumbs", "aria-label": t.breadcrumb, children: [_jsx("button", { type: "button", className: "crisp-recordpage-crumb", onClick: onBack, "aria-label": `Back to ${collection}`, children: collection }), _jsx("span", { className: "crisp-recordpage-crumb-sep", children: "/" }), _jsx("span", { className: "crisp-recordpage-crumb-name", children: name })] }), _jsxs("div", { className: "crisp-recordpage-actions", children: [_jsxs("button", { type: "button", className: "crisp-recordpage-action crisp-recordpage-action--ghost", children: [_jsx(Sparkles, { size: 14, strokeWidth: 1.75, color: "var(--bg-brand-solid)" }), t.askAttio] }), onToggleFull && (_jsx("button", { type: "button", className: "crisp-recordpage-action crisp-recordpage-action--icon", onClick: onToggleFull, "aria-label": full ? t.exitFullScreen : t.fullScreen, children: full ? (_jsx(Minimize2, { size: 15, strokeWidth: 1.75 })) : (_jsx(Maximize2, { size: 15, strokeWidth: 1.75 })) })), _jsxs(Menu, { align: "end", "aria-label": t.recordActions, trigger: _jsx("button", { type: "button", className: "crisp-recordpage-action crisp-recordpage-action--icon", "aria-label": t.recordActions, children: _jsx(MoreHorizontal, { size: 16, strokeWidth: 1.75 }) }), children: [_jsx(MenuItem, { icon: _jsx(Copy, { size: 15, strokeWidth: 1.75 }), shortcut: "\u2318C", children: t.copyRecordLink }), _jsx(MenuItem, { icon: _jsx(Plus, { size: 15, strokeWidth: 1.75 }), children: t.addToList }), _jsx(MenuItem, { icon: _jsx(Star, { size: 15, strokeWidth: 1.75 }), onSelect: () => setFavorite((f) => !f), children: favorite ? t.removeFromFavourites : t.addToFavourites }), _jsx(MenuSeparator, {}), _jsx(MenuItem, { icon: _jsx(Trash2, { size: 15, strokeWidth: 1.75 }), danger: true, shortcut: "\u232B", children: t.deleteRecord })] })] })] }), _jsxs("div", { className: "crisp-recordpage-body", children: [_jsxs("aside", { className: "crisp-recordpage-details", style: { width: detailsW }, children: [_jsxs("div", { className: "crisp-recordpage-entity", children: [entity?.avatar ? (_jsx("img", { className: "crisp-recordpage-entity-logo", src: entity.avatar, alt: "" })) : (_jsx(Avatar, { size: "lg", shape: "rounded", tone: "brand", children: name.charAt(0) })), _jsx("span", { className: "crisp-recordpage-entity-name", children: name }), _jsx("button", { type: "button", className: "crisp-recordpage-entity-iconbtn", "aria-label": t.editRecord, children: _jsx(Pencil, { size: 15, strokeWidth: 1.75 }) }), _jsx("button", { type: "button", className: "crisp-recordpage-entity-iconbtn", "data-active": favorite ? "" : undefined, "aria-pressed": favorite, onClick: () => setFavorite((f) => !f), "aria-label": favorite ? t.removeFromFavourites : t.addToFavourites, children: _jsx(Star, { size: 15, strokeWidth: 1.75 }) })] }), _jsxs("div", { className: "crisp-recordpage-quickactions", children: [_jsxs("button", { type: "button", className: "crisp-recordpage-compose", children: [_jsx(Mail, { size: 16, strokeWidth: 1.75 }), t.composeEmail] }), _jsx("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.copyRecordLink, children: _jsx(Copy, { size: 15, strokeWidth: 1.75 }) }), _jsx("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.logANote, children: _jsx(FileText, { size: 15, strokeWidth: 1.75 }) }), _jsx("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.linkRecords, children: _jsx(Share2, { size: 15, strokeWidth: 1.75 }) }), _jsx("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.createATask, children: _jsx(SquareCheck, { size: 15, strokeWidth: 1.75 }) })] }), _jsxs("div", { className: "crisp-recordpage-section", children: [_jsxs("div", { className: "crisp-recordpage-detailhead", children: [searchOpen ? (_jsx("input", {
|
|
358
|
+
return (_jsxs("div", { className: recordpageRecipe({ className }), ...rest, children: [_jsxs("div", { className: "crisp-recordpage-topbar", children: [_jsxs("nav", { className: "crisp-recordpage-crumbs", "aria-label": t.breadcrumb, children: [_jsx("button", { type: "button", className: "crisp-recordpage-crumb", onClick: onBack, "aria-label": `Back to ${collection}`, children: collection }), _jsx("span", { className: "crisp-recordpage-crumb-sep", children: "/" }), _jsx("span", { className: "crisp-recordpage-crumb-name", children: name })] }), _jsxs("div", { className: "crisp-recordpage-actions", children: [_jsxs("button", { type: "button", className: "crisp-recordpage-action crisp-recordpage-action--ghost", children: [_jsx(Sparkles, { size: 14, strokeWidth: 1.75, color: "var(--crisp-bg-brand-solid)" }), t.askAttio] }), onToggleFull && (_jsx("button", { type: "button", className: "crisp-recordpage-action crisp-recordpage-action--icon", onClick: onToggleFull, "aria-label": full ? t.exitFullScreen : t.fullScreen, children: full ? (_jsx(Minimize2, { size: 15, strokeWidth: 1.75 })) : (_jsx(Maximize2, { size: 15, strokeWidth: 1.75 })) })), _jsxs(Menu, { align: "end", "aria-label": t.recordActions, trigger: _jsx("button", { type: "button", className: "crisp-recordpage-action crisp-recordpage-action--icon", "aria-label": t.recordActions, children: _jsx(MoreHorizontal, { size: 16, strokeWidth: 1.75 }) }), children: [_jsx(MenuItem, { icon: _jsx(Copy, { size: 15, strokeWidth: 1.75 }), shortcut: "\u2318C", children: t.copyRecordLink }), _jsx(MenuItem, { icon: _jsx(Plus, { size: 15, strokeWidth: 1.75 }), children: t.addToList }), _jsx(MenuItem, { icon: _jsx(Star, { size: 15, strokeWidth: 1.75 }), onSelect: () => setFavorite((f) => !f), children: favorite ? t.removeFromFavourites : t.addToFavourites }), _jsx(MenuSeparator, {}), _jsx(MenuItem, { icon: _jsx(Trash2, { size: 15, strokeWidth: 1.75 }), danger: true, shortcut: "\u232B", children: t.deleteRecord })] })] })] }), _jsxs("div", { className: "crisp-recordpage-body", children: [_jsxs("aside", { className: "crisp-recordpage-details", style: { width: detailsW }, children: [_jsxs("div", { className: "crisp-recordpage-entity", children: [entity?.avatar ? (_jsx("img", { className: "crisp-recordpage-entity-logo", src: entity.avatar, alt: "" })) : (_jsx(Avatar, { size: "lg", shape: "rounded", tone: "brand", children: name.charAt(0) })), _jsx("span", { className: "crisp-recordpage-entity-name", children: name }), _jsx("button", { type: "button", className: "crisp-recordpage-entity-iconbtn", "aria-label": t.editRecord, children: _jsx(Pencil, { size: 15, strokeWidth: 1.75 }) }), _jsx("button", { type: "button", className: "crisp-recordpage-entity-iconbtn", "data-active": favorite ? "" : undefined, "aria-pressed": favorite, onClick: () => setFavorite((f) => !f), "aria-label": favorite ? t.removeFromFavourites : t.addToFavourites, children: _jsx(Star, { size: 15, strokeWidth: 1.75 }) })] }), _jsxs("div", { className: "crisp-recordpage-quickactions", children: [_jsxs("button", { type: "button", className: "crisp-recordpage-compose", children: [_jsx(Mail, { size: 16, strokeWidth: 1.75 }), t.composeEmail] }), _jsx("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.copyRecordLink, children: _jsx(Copy, { size: 15, strokeWidth: 1.75 }) }), _jsx("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.logANote, children: _jsx(FileText, { size: 15, strokeWidth: 1.75 }) }), _jsx("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.linkRecords, children: _jsx(Share2, { size: 15, strokeWidth: 1.75 }) }), _jsx("button", { type: "button", className: "crisp-recordpage-quickbtn", "aria-label": t.createATask, children: _jsx(SquareCheck, { size: 15, strokeWidth: 1.75 }) })] }), _jsxs("div", { className: "crisp-recordpage-section", children: [_jsxs("div", { className: "crisp-recordpage-detailhead", children: [searchOpen ? (_jsx("input", {
|
|
359
359
|
// biome-ignore lint/a11y/noAutofocus: focusing the just-opened field search is expected
|
|
360
360
|
autoFocus: true, type: "text", className: "crisp-recordpage-fieldsearch", placeholder: t.searchPlaceholder, "aria-label": t.searchFields, value: fieldQuery, onChange: (e) => setFieldQuery(e.target.value), onKeyDown: (e) => {
|
|
361
361
|
if (e.key === "Escape") {
|
package/dist/styles.css
CHANGED
|
@@ -122,90 +122,6 @@
|
|
|
122
122
|
--crisp-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
/* -----------------------------------------------------------------
|
|
126
|
-
* Deprecated unprefixed aliases (issue #276) — SCHEDULED FOR REMOVAL in
|
|
127
|
-
* the next major version. Prefer the --crisp-* custom property
|
|
128
|
-
* above; these only forward to it so an existing override keeps working.
|
|
129
|
-
* ----------------------------------------------------------------- */
|
|
130
|
-
:root {
|
|
131
|
-
--bg-brand-solid: var(--crisp-bg-brand-solid);
|
|
132
|
-
--bg-brand-solid-pressed: var(--crisp-bg-brand-solid-pressed);
|
|
133
|
-
--fg-on-brand: var(--crisp-fg-on-brand);
|
|
134
|
-
--fg-on-tone: var(--crisp-fg-on-tone);
|
|
135
|
-
--bg-surface: var(--crisp-bg-surface);
|
|
136
|
-
--bg-raised: var(--crisp-bg-raised);
|
|
137
|
-
--border-default: var(--crisp-border-default);
|
|
138
|
-
--border-subtle: var(--crisp-border-subtle);
|
|
139
|
-
--ring-neutral: var(--crisp-ring-neutral);
|
|
140
|
-
--bg-tile-active: var(--crisp-bg-tile-active);
|
|
141
|
-
--shadow-tile-active: var(--crisp-shadow-tile-active);
|
|
142
|
-
--bg-overlay-frost: var(--crisp-bg-overlay-frost);
|
|
143
|
-
--shadow-overlay1: var(--crisp-shadow-overlay1);
|
|
144
|
-
--shadow-overlay2: var(--crisp-shadow-overlay2);
|
|
145
|
-
--shadow-overlay3: var(--crisp-shadow-overlay3);
|
|
146
|
-
--bg-popover: var(--crisp-bg-popover);
|
|
147
|
-
--ring-popover: var(--crisp-ring-popover);
|
|
148
|
-
--shadow-popover1: var(--crisp-shadow-popover1);
|
|
149
|
-
--shadow-popover2: var(--crisp-shadow-popover2);
|
|
150
|
-
--shadow-popover3: var(--crisp-shadow-popover3);
|
|
151
|
-
--fg-primary: var(--crisp-fg-primary);
|
|
152
|
-
--fg-muted: var(--crisp-fg-muted);
|
|
153
|
-
--bg-danger: var(--crisp-bg-danger);
|
|
154
|
-
--bg-danger-solid: var(--crisp-bg-danger-solid);
|
|
155
|
-
--stroke-field-focus: var(--crisp-stroke-field-focus);
|
|
156
|
-
--fg-disabled: var(--crisp-fg-disabled);
|
|
157
|
-
--bg-neutral-weak: var(--crisp-bg-neutral-weak);
|
|
158
|
-
--bg-neutral-inverted: var(--crisp-bg-neutral-inverted);
|
|
159
|
-
--fg-on-neutral-inverted: var(--crisp-fg-on-neutral-inverted);
|
|
160
|
-
--fg-neutral-subtle: var(--crisp-fg-neutral-subtle);
|
|
161
|
-
--fg-neutral-muted: var(--crisp-fg-neutral-muted);
|
|
162
|
-
--stroke-focus-ring: var(--crisp-stroke-focus-ring);
|
|
163
|
-
--bg-success: var(--crisp-bg-success);
|
|
164
|
-
--bg-warning: var(--crisp-bg-warning);
|
|
165
|
-
--bg-orange: var(--crisp-bg-orange);
|
|
166
|
-
--bg-cyan: var(--crisp-bg-cyan);
|
|
167
|
-
--bg-purple: var(--crisp-bg-purple);
|
|
168
|
-
--bg-sidebar: var(--crisp-bg-sidebar);
|
|
169
|
-
--bg-subtle: var(--crisp-bg-subtle);
|
|
170
|
-
--space-1: var(--crisp-space-1);
|
|
171
|
-
--space-2: var(--crisp-space-2);
|
|
172
|
-
--space-3: var(--crisp-space-3);
|
|
173
|
-
--space-4: var(--crisp-space-4);
|
|
174
|
-
--space-5: var(--crisp-space-5);
|
|
175
|
-
--space-6: var(--crisp-space-6);
|
|
176
|
-
--space-8: var(--crisp-space-8);
|
|
177
|
-
--space-px: var(--crisp-space-px);
|
|
178
|
-
--space-0-5: var(--crisp-space-0-5);
|
|
179
|
-
--space-1-5: var(--crisp-space-1-5);
|
|
180
|
-
--space-2-5: var(--crisp-space-2-5);
|
|
181
|
-
--radius-chip: var(--crisp-radius-chip);
|
|
182
|
-
--radius-sm: var(--crisp-radius-sm);
|
|
183
|
-
--radius-md: var(--crisp-radius-md);
|
|
184
|
-
--radius-lg: var(--crisp-radius-lg);
|
|
185
|
-
--radius-xl: var(--crisp-radius-xl);
|
|
186
|
-
--radius-2xl: var(--crisp-radius-2xl);
|
|
187
|
-
--radius-full: var(--crisp-radius-full);
|
|
188
|
-
--size-icon: var(--crisp-size-icon);
|
|
189
|
-
--size-chip: var(--crisp-size-chip);
|
|
190
|
-
--size-row: var(--crisp-size-row);
|
|
191
|
-
--size-menuRow: var(--crisp-size-menuRow);
|
|
192
|
-
--size-tableRow: var(--crisp-size-tableRow);
|
|
193
|
-
--size-tableHeader: var(--crisp-size-tableHeader);
|
|
194
|
-
--size-header: var(--crisp-size-header);
|
|
195
|
-
--size-calendarCell: var(--crisp-size-calendarCell);
|
|
196
|
-
--size-calendarPill: var(--crisp-size-calendarPill);
|
|
197
|
-
--text-xs: var(--crisp-text-xs);
|
|
198
|
-
--text-sm: var(--crisp-text-sm);
|
|
199
|
-
--text-md: var(--crisp-text-md);
|
|
200
|
-
--text-lg: var(--crisp-text-lg);
|
|
201
|
-
--text-xl: var(--crisp-text-xl);
|
|
202
|
-
--weight-regular: var(--crisp-weight-regular);
|
|
203
|
-
--weight-medium: var(--crisp-weight-medium);
|
|
204
|
-
--weight-semibold: var(--crisp-weight-semibold);
|
|
205
|
-
--weight-bold: var(--crisp-weight-bold);
|
|
206
|
-
--font-sans: var(--crisp-font-sans);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
125
|
.crisp-accordion {
|
|
210
126
|
display: flex; flex-direction: column; font-family: var(--crisp-font-sans);
|
|
211
127
|
& .crisp-accordion-item { border-bottom: 1px solid var(--crisp-border-subtle); }
|
package/dist/styles.layered.css
CHANGED
|
@@ -122,90 +122,6 @@
|
|
|
122
122
|
--crisp-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
/* -----------------------------------------------------------------
|
|
126
|
-
* Deprecated unprefixed aliases (issue #276) — SCHEDULED FOR REMOVAL in
|
|
127
|
-
* the next major version. Prefer the --crisp-* custom property
|
|
128
|
-
* above; these only forward to it so an existing override keeps working.
|
|
129
|
-
* ----------------------------------------------------------------- */
|
|
130
|
-
:root {
|
|
131
|
-
--bg-brand-solid: var(--crisp-bg-brand-solid);
|
|
132
|
-
--bg-brand-solid-pressed: var(--crisp-bg-brand-solid-pressed);
|
|
133
|
-
--fg-on-brand: var(--crisp-fg-on-brand);
|
|
134
|
-
--fg-on-tone: var(--crisp-fg-on-tone);
|
|
135
|
-
--bg-surface: var(--crisp-bg-surface);
|
|
136
|
-
--bg-raised: var(--crisp-bg-raised);
|
|
137
|
-
--border-default: var(--crisp-border-default);
|
|
138
|
-
--border-subtle: var(--crisp-border-subtle);
|
|
139
|
-
--ring-neutral: var(--crisp-ring-neutral);
|
|
140
|
-
--bg-tile-active: var(--crisp-bg-tile-active);
|
|
141
|
-
--shadow-tile-active: var(--crisp-shadow-tile-active);
|
|
142
|
-
--bg-overlay-frost: var(--crisp-bg-overlay-frost);
|
|
143
|
-
--shadow-overlay1: var(--crisp-shadow-overlay1);
|
|
144
|
-
--shadow-overlay2: var(--crisp-shadow-overlay2);
|
|
145
|
-
--shadow-overlay3: var(--crisp-shadow-overlay3);
|
|
146
|
-
--bg-popover: var(--crisp-bg-popover);
|
|
147
|
-
--ring-popover: var(--crisp-ring-popover);
|
|
148
|
-
--shadow-popover1: var(--crisp-shadow-popover1);
|
|
149
|
-
--shadow-popover2: var(--crisp-shadow-popover2);
|
|
150
|
-
--shadow-popover3: var(--crisp-shadow-popover3);
|
|
151
|
-
--fg-primary: var(--crisp-fg-primary);
|
|
152
|
-
--fg-muted: var(--crisp-fg-muted);
|
|
153
|
-
--bg-danger: var(--crisp-bg-danger);
|
|
154
|
-
--bg-danger-solid: var(--crisp-bg-danger-solid);
|
|
155
|
-
--stroke-field-focus: var(--crisp-stroke-field-focus);
|
|
156
|
-
--fg-disabled: var(--crisp-fg-disabled);
|
|
157
|
-
--bg-neutral-weak: var(--crisp-bg-neutral-weak);
|
|
158
|
-
--bg-neutral-inverted: var(--crisp-bg-neutral-inverted);
|
|
159
|
-
--fg-on-neutral-inverted: var(--crisp-fg-on-neutral-inverted);
|
|
160
|
-
--fg-neutral-subtle: var(--crisp-fg-neutral-subtle);
|
|
161
|
-
--fg-neutral-muted: var(--crisp-fg-neutral-muted);
|
|
162
|
-
--stroke-focus-ring: var(--crisp-stroke-focus-ring);
|
|
163
|
-
--bg-success: var(--crisp-bg-success);
|
|
164
|
-
--bg-warning: var(--crisp-bg-warning);
|
|
165
|
-
--bg-orange: var(--crisp-bg-orange);
|
|
166
|
-
--bg-cyan: var(--crisp-bg-cyan);
|
|
167
|
-
--bg-purple: var(--crisp-bg-purple);
|
|
168
|
-
--bg-sidebar: var(--crisp-bg-sidebar);
|
|
169
|
-
--bg-subtle: var(--crisp-bg-subtle);
|
|
170
|
-
--space-1: var(--crisp-space-1);
|
|
171
|
-
--space-2: var(--crisp-space-2);
|
|
172
|
-
--space-3: var(--crisp-space-3);
|
|
173
|
-
--space-4: var(--crisp-space-4);
|
|
174
|
-
--space-5: var(--crisp-space-5);
|
|
175
|
-
--space-6: var(--crisp-space-6);
|
|
176
|
-
--space-8: var(--crisp-space-8);
|
|
177
|
-
--space-px: var(--crisp-space-px);
|
|
178
|
-
--space-0-5: var(--crisp-space-0-5);
|
|
179
|
-
--space-1-5: var(--crisp-space-1-5);
|
|
180
|
-
--space-2-5: var(--crisp-space-2-5);
|
|
181
|
-
--radius-chip: var(--crisp-radius-chip);
|
|
182
|
-
--radius-sm: var(--crisp-radius-sm);
|
|
183
|
-
--radius-md: var(--crisp-radius-md);
|
|
184
|
-
--radius-lg: var(--crisp-radius-lg);
|
|
185
|
-
--radius-xl: var(--crisp-radius-xl);
|
|
186
|
-
--radius-2xl: var(--crisp-radius-2xl);
|
|
187
|
-
--radius-full: var(--crisp-radius-full);
|
|
188
|
-
--size-icon: var(--crisp-size-icon);
|
|
189
|
-
--size-chip: var(--crisp-size-chip);
|
|
190
|
-
--size-row: var(--crisp-size-row);
|
|
191
|
-
--size-menuRow: var(--crisp-size-menuRow);
|
|
192
|
-
--size-tableRow: var(--crisp-size-tableRow);
|
|
193
|
-
--size-tableHeader: var(--crisp-size-tableHeader);
|
|
194
|
-
--size-header: var(--crisp-size-header);
|
|
195
|
-
--size-calendarCell: var(--crisp-size-calendarCell);
|
|
196
|
-
--size-calendarPill: var(--crisp-size-calendarPill);
|
|
197
|
-
--text-xs: var(--crisp-text-xs);
|
|
198
|
-
--text-sm: var(--crisp-text-sm);
|
|
199
|
-
--text-md: var(--crisp-text-md);
|
|
200
|
-
--text-lg: var(--crisp-text-lg);
|
|
201
|
-
--text-xl: var(--crisp-text-xl);
|
|
202
|
-
--weight-regular: var(--crisp-weight-regular);
|
|
203
|
-
--weight-medium: var(--crisp-weight-medium);
|
|
204
|
-
--weight-semibold: var(--crisp-weight-semibold);
|
|
205
|
-
--weight-bold: var(--crisp-weight-bold);
|
|
206
|
-
--font-sans: var(--crisp-font-sans);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
125
|
@layer crisp-components {
|
|
210
126
|
.crisp-accordion {
|
|
211
127
|
display: flex; flex-direction: column; font-family: var(--crisp-font-sans);
|
package/dist/tokens.css
CHANGED
|
@@ -121,87 +121,3 @@
|
|
|
121
121
|
--crisp-weight-bold: 700;
|
|
122
122
|
--crisp-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
/* -----------------------------------------------------------------
|
|
126
|
-
* Deprecated unprefixed aliases (issue #276) — SCHEDULED FOR REMOVAL in
|
|
127
|
-
* the next major version. Prefer the --crisp-* custom property
|
|
128
|
-
* above; these only forward to it so an existing override keeps working.
|
|
129
|
-
* ----------------------------------------------------------------- */
|
|
130
|
-
:root {
|
|
131
|
-
--bg-brand-solid: var(--crisp-bg-brand-solid);
|
|
132
|
-
--bg-brand-solid-pressed: var(--crisp-bg-brand-solid-pressed);
|
|
133
|
-
--fg-on-brand: var(--crisp-fg-on-brand);
|
|
134
|
-
--fg-on-tone: var(--crisp-fg-on-tone);
|
|
135
|
-
--bg-surface: var(--crisp-bg-surface);
|
|
136
|
-
--bg-raised: var(--crisp-bg-raised);
|
|
137
|
-
--border-default: var(--crisp-border-default);
|
|
138
|
-
--border-subtle: var(--crisp-border-subtle);
|
|
139
|
-
--ring-neutral: var(--crisp-ring-neutral);
|
|
140
|
-
--bg-tile-active: var(--crisp-bg-tile-active);
|
|
141
|
-
--shadow-tile-active: var(--crisp-shadow-tile-active);
|
|
142
|
-
--bg-overlay-frost: var(--crisp-bg-overlay-frost);
|
|
143
|
-
--shadow-overlay1: var(--crisp-shadow-overlay1);
|
|
144
|
-
--shadow-overlay2: var(--crisp-shadow-overlay2);
|
|
145
|
-
--shadow-overlay3: var(--crisp-shadow-overlay3);
|
|
146
|
-
--bg-popover: var(--crisp-bg-popover);
|
|
147
|
-
--ring-popover: var(--crisp-ring-popover);
|
|
148
|
-
--shadow-popover1: var(--crisp-shadow-popover1);
|
|
149
|
-
--shadow-popover2: var(--crisp-shadow-popover2);
|
|
150
|
-
--shadow-popover3: var(--crisp-shadow-popover3);
|
|
151
|
-
--fg-primary: var(--crisp-fg-primary);
|
|
152
|
-
--fg-muted: var(--crisp-fg-muted);
|
|
153
|
-
--bg-danger: var(--crisp-bg-danger);
|
|
154
|
-
--bg-danger-solid: var(--crisp-bg-danger-solid);
|
|
155
|
-
--stroke-field-focus: var(--crisp-stroke-field-focus);
|
|
156
|
-
--fg-disabled: var(--crisp-fg-disabled);
|
|
157
|
-
--bg-neutral-weak: var(--crisp-bg-neutral-weak);
|
|
158
|
-
--bg-neutral-inverted: var(--crisp-bg-neutral-inverted);
|
|
159
|
-
--fg-on-neutral-inverted: var(--crisp-fg-on-neutral-inverted);
|
|
160
|
-
--fg-neutral-subtle: var(--crisp-fg-neutral-subtle);
|
|
161
|
-
--fg-neutral-muted: var(--crisp-fg-neutral-muted);
|
|
162
|
-
--stroke-focus-ring: var(--crisp-stroke-focus-ring);
|
|
163
|
-
--bg-success: var(--crisp-bg-success);
|
|
164
|
-
--bg-warning: var(--crisp-bg-warning);
|
|
165
|
-
--bg-orange: var(--crisp-bg-orange);
|
|
166
|
-
--bg-cyan: var(--crisp-bg-cyan);
|
|
167
|
-
--bg-purple: var(--crisp-bg-purple);
|
|
168
|
-
--bg-sidebar: var(--crisp-bg-sidebar);
|
|
169
|
-
--bg-subtle: var(--crisp-bg-subtle);
|
|
170
|
-
--space-1: var(--crisp-space-1);
|
|
171
|
-
--space-2: var(--crisp-space-2);
|
|
172
|
-
--space-3: var(--crisp-space-3);
|
|
173
|
-
--space-4: var(--crisp-space-4);
|
|
174
|
-
--space-5: var(--crisp-space-5);
|
|
175
|
-
--space-6: var(--crisp-space-6);
|
|
176
|
-
--space-8: var(--crisp-space-8);
|
|
177
|
-
--space-px: var(--crisp-space-px);
|
|
178
|
-
--space-0-5: var(--crisp-space-0-5);
|
|
179
|
-
--space-1-5: var(--crisp-space-1-5);
|
|
180
|
-
--space-2-5: var(--crisp-space-2-5);
|
|
181
|
-
--radius-chip: var(--crisp-radius-chip);
|
|
182
|
-
--radius-sm: var(--crisp-radius-sm);
|
|
183
|
-
--radius-md: var(--crisp-radius-md);
|
|
184
|
-
--radius-lg: var(--crisp-radius-lg);
|
|
185
|
-
--radius-xl: var(--crisp-radius-xl);
|
|
186
|
-
--radius-2xl: var(--crisp-radius-2xl);
|
|
187
|
-
--radius-full: var(--crisp-radius-full);
|
|
188
|
-
--size-icon: var(--crisp-size-icon);
|
|
189
|
-
--size-chip: var(--crisp-size-chip);
|
|
190
|
-
--size-row: var(--crisp-size-row);
|
|
191
|
-
--size-menuRow: var(--crisp-size-menuRow);
|
|
192
|
-
--size-tableRow: var(--crisp-size-tableRow);
|
|
193
|
-
--size-tableHeader: var(--crisp-size-tableHeader);
|
|
194
|
-
--size-header: var(--crisp-size-header);
|
|
195
|
-
--size-calendarCell: var(--crisp-size-calendarCell);
|
|
196
|
-
--size-calendarPill: var(--crisp-size-calendarPill);
|
|
197
|
-
--text-xs: var(--crisp-text-xs);
|
|
198
|
-
--text-sm: var(--crisp-text-sm);
|
|
199
|
-
--text-md: var(--crisp-text-md);
|
|
200
|
-
--text-lg: var(--crisp-text-lg);
|
|
201
|
-
--text-xl: var(--crisp-text-xl);
|
|
202
|
-
--weight-regular: var(--crisp-weight-regular);
|
|
203
|
-
--weight-medium: var(--crisp-weight-medium);
|
|
204
|
-
--weight-semibold: var(--crisp-weight-semibold);
|
|
205
|
-
--weight-bold: var(--crisp-weight-bold);
|
|
206
|
-
--font-sans: var(--crisp-font-sans);
|
|
207
|
-
}
|