@fairmint/ui 0.2.16 → 0.2.18
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/components/generic/ClickableCard/ClickableCard.d.ts +21 -0
- package/dist/components/generic/ClickableCard/ClickableCard.d.ts.map +1 -0
- package/dist/components/generic/ColorDot/ColorDot.d.ts +9 -0
- package/dist/components/generic/ColorDot/ColorDot.d.ts.map +1 -0
- package/dist/components/generic/Currency/Currency.d.ts +1 -1
- package/dist/components/generic/Currency/Currency.d.ts.map +1 -1
- package/dist/components/generic/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/generic/ListRow/ListRow.d.ts.map +1 -1
- package/dist/fairmint-ui.cjs +81 -28
- package/dist/fairmint-ui.cjs.map +1 -1
- package/dist/fairmint-ui.js +81 -28
- package/dist/fairmint-ui.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useIsTablet.d.ts +7 -0
- package/dist/hooks/useIsTablet.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/styles.css +43 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ClickableCardProps {
|
|
3
|
+
/** Click handler. */
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
/** Accessible label for screen readers. */
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
/** Entrance animation delay in seconds. Omit to skip animation. */
|
|
8
|
+
animationDelay?: number;
|
|
9
|
+
/** Card background. Passed to Card `bg` prop. */
|
|
10
|
+
bg?: string;
|
|
11
|
+
/** Card padding. Passed to Card `padding` prop. @default "md" */
|
|
12
|
+
padding?: string;
|
|
13
|
+
/** Card radius. Passed to Card `radius` prop. @default "md" */
|
|
14
|
+
radius?: string;
|
|
15
|
+
/** Show card border. @default true */
|
|
16
|
+
withBorder?: boolean;
|
|
17
|
+
/** Children rendered inside the card. */
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare function ClickableCard({ onClick, ariaLabel, animationDelay, bg, padding, radius, withBorder, children, }: ClickableCardProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=ClickableCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClickableCard.d.ts","sourceRoot":"","sources":["../../../../src/components/generic/ClickableCard/ClickableCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtD,MAAM,WAAW,kBAAkB;IACjC,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iDAAiD;IACjD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yCAAyC;IACzC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,EACT,cAAc,EACd,EAAE,EACF,OAAc,EACd,MAAa,EACb,UAAiB,EACjB,QAAQ,GACT,EAAE,kBAAkB,2CA8CpB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BoxProps } from '../../primitives/layout';
|
|
2
|
+
export interface ColorDotProps extends Omit<BoxProps, "children"> {
|
|
3
|
+
/** Dot color — any valid CSS color string. */
|
|
4
|
+
color: string;
|
|
5
|
+
/** Dot diameter in pixels. @default 8 */
|
|
6
|
+
size?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function ColorDot({ color, size, style, ...rest }: ColorDotProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=ColorDot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorDot.d.ts","sourceRoot":"","sources":["../../../../src/components/generic/ColorDot/ColorDot.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC/D,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,IAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,2CAU1E"}
|
|
@@ -7,5 +7,5 @@ export interface CurrencyProps extends Omit<TextProps, "children"> {
|
|
|
7
7
|
/** Currency code for non-USD display (e.g., "EUR"). Implies precise=true. */
|
|
8
8
|
currency?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function Currency({ value, precise, currency, ...rest }: CurrencyProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function Currency({ value, precise, currency, style, ...rest }: CurrencyProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
//# sourceMappingURL=Currency.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/components/generic/Currency/Currency.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/components/generic/Currency/Currency.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAChE,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,OAAe,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,2CAc3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/components/generic/DataTable/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/components/generic/DataTable/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAM1D,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAChE,sDAAsD;IACtD,GAAG,EAAE,MAAM,CAAC;IACZ,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,SAAS,CAAC;IAC/B,sDAAsD;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/D,0BAA0B;IAC1B,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,iBAAiB;IACjB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+BAA+B;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wBAAwB;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,yBAAyB;IACzB,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,oEAAoE;IACpE,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,GAAG,MAAM,KAAK,IAAI,CAAC;CACjE;AAwBD,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAC3D,OAAO,EACP,IAAI,EACJ,MAAa,EACb,OAAe,EACf,WAAe,EACf,UAAsB,EACtB,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,YAAY,GACb,EAAE,cAAc,CAAC,CAAC,CAAC,2CAkFnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListRow.d.ts","sourceRoot":"","sources":["../../../../src/components/generic/ListRow/ListRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,qEAAqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkBD,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,cAAc,EACd,WAA4B,EAC5B,KAAK,EACL,QAAQ,EACR,KAAK,EACL,aAAa,EACb,YAAY,EACZ,WAAW,EACX,WAAW,EACX,OAAO,EACP,cAAc,EACd,UAAkB,EAClB,SAAS,GACV,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"ListRow.d.ts","sourceRoot":"","sources":["../../../../src/components/generic/ListRow/ListRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,qEAAqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkBD,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,cAAc,EACd,WAA4B,EAC5B,KAAK,EACL,QAAQ,EACR,KAAK,EACL,aAAa,EACb,YAAY,EACZ,WAAW,EACX,WAAW,EACX,OAAO,EACP,cAAc,EACd,UAAkB,EAClB,SAAS,GACV,EAAE,YAAY,2CAqFd"}
|
package/dist/fairmint-ui.cjs
CHANGED
|
@@ -26993,7 +26993,8 @@ const theme = createTheme({
|
|
|
26993
26993
|
const fairmintCssVariables = () => ({
|
|
26994
26994
|
variables: {
|
|
26995
26995
|
"--fairmint-font-headings": typography.headingFontFamily,
|
|
26996
|
-
"--fairmint-font-body": typography.fontFamily
|
|
26996
|
+
"--fairmint-font-body": typography.fontFamily,
|
|
26997
|
+
"--fairmint-interactive-focus-ring": indigo[5]
|
|
26997
26998
|
},
|
|
26998
26999
|
light: {
|
|
26999
27000
|
/** Large decorative background text on error/empty pages. */
|
|
@@ -27003,13 +27004,17 @@ const fairmintCssVariables = () => ({
|
|
|
27003
27004
|
/** Faint metadata text (timestamps, tertiary labels). Replaces neutral.4 */
|
|
27004
27005
|
"--fairmint-color-text-tertiary": neutral[4],
|
|
27005
27006
|
/** Background tint for selected / active rows. Replaces primary.0 */
|
|
27006
|
-
"--fairmint-color-surface-selected": indigo[0]
|
|
27007
|
+
"--fairmint-color-surface-selected": indigo[0],
|
|
27008
|
+
"--fairmint-interactive-hover-shadow": `0 2px 6px ${neutral[9]}0F`,
|
|
27009
|
+
"--fairmint-interactive-hover-bg": neutral[0]
|
|
27007
27010
|
},
|
|
27008
27011
|
dark: {
|
|
27009
27012
|
"--fairmint-watermark-color": neutral[7],
|
|
27010
27013
|
"--fairmint-color-text-secondary": neutral[4],
|
|
27011
27014
|
"--fairmint-color-text-tertiary": neutral[5],
|
|
27012
|
-
"--fairmint-color-surface-selected": indigo[9]
|
|
27015
|
+
"--fairmint-color-surface-selected": indigo[9],
|
|
27016
|
+
"--fairmint-interactive-hover-shadow": `0 2px 6px ${neutral[0]}1A`,
|
|
27017
|
+
"--fairmint-interactive-hover-bg": neutral[8]
|
|
27013
27018
|
}
|
|
27014
27019
|
});
|
|
27015
27020
|
const fairmintVars = {
|
|
@@ -28493,6 +28498,64 @@ function AnimateIn({
|
|
|
28493
28498
|
};
|
|
28494
28499
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { style, className, children });
|
|
28495
28500
|
}
|
|
28501
|
+
function ClickableCard({
|
|
28502
|
+
onClick,
|
|
28503
|
+
ariaLabel,
|
|
28504
|
+
animationDelay,
|
|
28505
|
+
bg,
|
|
28506
|
+
padding = "md",
|
|
28507
|
+
radius = "md",
|
|
28508
|
+
withBorder = true,
|
|
28509
|
+
children
|
|
28510
|
+
}) {
|
|
28511
|
+
const handleKeyDown = (e) => {
|
|
28512
|
+
if (e.key === " ") {
|
|
28513
|
+
e.preventDefault();
|
|
28514
|
+
}
|
|
28515
|
+
};
|
|
28516
|
+
const animate = animationDelay !== void 0;
|
|
28517
|
+
const animationStyle = animate ? {
|
|
28518
|
+
opacity: 0,
|
|
28519
|
+
animation: `rowSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) ${animationDelay}s forwards`
|
|
28520
|
+
} : void 0;
|
|
28521
|
+
const card = /* @__PURE__ */ jsxRuntime.jsx(
|
|
28522
|
+
Card,
|
|
28523
|
+
{
|
|
28524
|
+
bg,
|
|
28525
|
+
padding,
|
|
28526
|
+
radius,
|
|
28527
|
+
withBorder,
|
|
28528
|
+
style: { overflow: "hidden" },
|
|
28529
|
+
children
|
|
28530
|
+
}
|
|
28531
|
+
);
|
|
28532
|
+
if (!onClick) {
|
|
28533
|
+
return animate ? /* @__PURE__ */ jsxRuntime.jsx("div", { style: animationStyle, children: card }) : card;
|
|
28534
|
+
}
|
|
28535
|
+
const button = /* @__PURE__ */ jsxRuntime.jsx(
|
|
28536
|
+
UnstyledButton,
|
|
28537
|
+
{
|
|
28538
|
+
onClick,
|
|
28539
|
+
onKeyDown: handleKeyDown,
|
|
28540
|
+
"aria-label": ariaLabel,
|
|
28541
|
+
className: "fairmint-clickable-card",
|
|
28542
|
+
w: "100%",
|
|
28543
|
+
style: { borderRadius: radii[radius] ?? radius },
|
|
28544
|
+
children: card
|
|
28545
|
+
}
|
|
28546
|
+
);
|
|
28547
|
+
return animate ? /* @__PURE__ */ jsxRuntime.jsx("div", { style: animationStyle, children: button }) : button;
|
|
28548
|
+
}
|
|
28549
|
+
function ColorDot({ color, size: size2 = 8, style, ...rest }) {
|
|
28550
|
+
const baseStyle = {
|
|
28551
|
+
width: size2,
|
|
28552
|
+
height: size2,
|
|
28553
|
+
borderRadius: "50%",
|
|
28554
|
+
backgroundColor: color,
|
|
28555
|
+
flexShrink: 0
|
|
28556
|
+
};
|
|
28557
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-testid": "color-dot", style: [baseStyle, style], ...rest });
|
|
28558
|
+
}
|
|
28496
28559
|
function ConfirmDialog({
|
|
28497
28560
|
title,
|
|
28498
28561
|
message,
|
|
@@ -28562,7 +28625,8 @@ function formatDate(dateString) {
|
|
|
28562
28625
|
function formatPercent(n, decimals = 2) {
|
|
28563
28626
|
return `${n.toFixed(decimals)}%`;
|
|
28564
28627
|
}
|
|
28565
|
-
|
|
28628
|
+
const TABULAR_NUMS = { fontVariantNumeric: "tabular-nums" };
|
|
28629
|
+
function Currency({ value, precise = false, currency, style, ...rest }) {
|
|
28566
28630
|
let formatted;
|
|
28567
28631
|
if (currency) {
|
|
28568
28632
|
formatted = formatPreciseWithCurrency(value, currency);
|
|
@@ -28571,7 +28635,7 @@ function Currency({ value, precise = false, currency, ...rest }) {
|
|
|
28571
28635
|
} else {
|
|
28572
28636
|
formatted = formatCurrency(value);
|
|
28573
28637
|
}
|
|
28574
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Text, { component: "span", ...rest, children: formatted });
|
|
28638
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Text, { component: "span", style: [TABULAR_NUMS, style], ...rest, children: formatted });
|
|
28575
28639
|
}
|
|
28576
28640
|
function EmptyState({
|
|
28577
28641
|
icon,
|
|
@@ -28660,17 +28724,7 @@ function DataTable({
|
|
|
28660
28724
|
Table.Tr,
|
|
28661
28725
|
{
|
|
28662
28726
|
onClick: onRowClick ? () => onRowClick(row) : void 0,
|
|
28663
|
-
|
|
28664
|
-
cursor: "pointer",
|
|
28665
|
-
transition: "background-color 0.15s ease"
|
|
28666
|
-
} : void 0,
|
|
28667
|
-
styles: onRowClick ? {
|
|
28668
|
-
tr: {
|
|
28669
|
-
"&:hover": {
|
|
28670
|
-
backgroundColor: neutralColors[50]
|
|
28671
|
-
}
|
|
28672
|
-
}
|
|
28673
|
-
} : void 0,
|
|
28727
|
+
className: onRowClick ? "fairmint-table-row-clickable" : void 0,
|
|
28674
28728
|
children: columns.map((col) => /* @__PURE__ */ jsxRuntime.jsx(Table.Td, { children: col.render ? col.render(row) : String(row[col.key] ?? "") }, col.key))
|
|
28675
28729
|
},
|
|
28676
28730
|
key
|
|
@@ -28946,21 +29000,10 @@ function ListRow({
|
|
|
28946
29000
|
{
|
|
28947
29001
|
bg: isSelected ? fairmintVars.colorSurfaceSelected : void 0,
|
|
28948
29002
|
onClick,
|
|
29003
|
+
className: "fairmint-list-row",
|
|
28949
29004
|
w: "100%",
|
|
28950
29005
|
py: "sm",
|
|
28951
29006
|
px: "md",
|
|
28952
|
-
styles: {
|
|
28953
|
-
root: {
|
|
28954
|
-
transition: "background-color 0.15s ease",
|
|
28955
|
-
"&:hover": {
|
|
28956
|
-
backgroundColor: neutralColors[50]
|
|
28957
|
-
},
|
|
28958
|
-
"&:focus-visible": {
|
|
28959
|
-
outline: `2px solid ${brandColors.indigo}`,
|
|
28960
|
-
outlineOffset: "-2px"
|
|
28961
|
-
}
|
|
28962
|
-
}
|
|
28963
|
-
},
|
|
28964
29007
|
style: animationStyle,
|
|
28965
29008
|
"aria-label": ariaLabel ?? title,
|
|
28966
29009
|
children: content
|
|
@@ -31142,6 +31185,12 @@ function useIsMobile() {
|
|
|
31142
31185
|
getInitialValueInEffect: false
|
|
31143
31186
|
}) ?? false;
|
|
31144
31187
|
}
|
|
31188
|
+
const TABLET_BREAKPOINT = "(max-width: 68em)";
|
|
31189
|
+
function useIsTablet() {
|
|
31190
|
+
return useMediaQuery(TABLET_BREAKPOINT, false, {
|
|
31191
|
+
getInitialValueInEffect: false
|
|
31192
|
+
}) ?? false;
|
|
31193
|
+
}
|
|
31145
31194
|
const notify = {
|
|
31146
31195
|
success: ({ title, message, autoClose = 4e3 }) => notifications.show({ title, message, color: colors.success, autoClose }),
|
|
31147
31196
|
error: ({ title, message, autoClose = 6e3 }) => notifications.show({ title, message, color: colors.error, autoClose }),
|
|
@@ -31163,7 +31212,9 @@ exports.Button = Button;
|
|
|
31163
31212
|
exports.Card = Card;
|
|
31164
31213
|
exports.Center = Center;
|
|
31165
31214
|
exports.Checkbox = Checkbox;
|
|
31215
|
+
exports.ClickableCard = ClickableCard;
|
|
31166
31216
|
exports.Collapse = Collapse;
|
|
31217
|
+
exports.ColorDot = ColorDot;
|
|
31167
31218
|
exports.ConfirmDialog = ConfirmDialog;
|
|
31168
31219
|
exports.Container = Container;
|
|
31169
31220
|
exports.Currency = Currency;
|
|
@@ -31222,6 +31273,7 @@ exports.Stack = Stack;
|
|
|
31222
31273
|
exports.StatCard = StatCard;
|
|
31223
31274
|
exports.StatusBadge = StatusBadge;
|
|
31224
31275
|
exports.Switch = Switch;
|
|
31276
|
+
exports.TABLET_BREAKPOINT = TABLET_BREAKPOINT;
|
|
31225
31277
|
exports.Table = Table;
|
|
31226
31278
|
exports.Tabs = Tabs;
|
|
31227
31279
|
exports.Text = Text;
|
|
@@ -31280,6 +31332,7 @@ exports.useHotkeys = useHotkeys;
|
|
|
31280
31332
|
exports.useId = useId$1;
|
|
31281
31333
|
exports.useIntersection = useIntersection;
|
|
31282
31334
|
exports.useIsMobile = useIsMobile;
|
|
31335
|
+
exports.useIsTablet = useIsTablet;
|
|
31283
31336
|
exports.useMediaQuery = useMediaQuery;
|
|
31284
31337
|
exports.useScrollIntoView = useScrollIntoView;
|
|
31285
31338
|
exports.useViewportSize = useViewportSize;
|