@passui/react 0.1.44 → 0.1.46
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/README.md +57 -46
- package/dist/types/src/components/accordion/accordion.d.ts +1 -1
- package/dist/types/src/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/types/src/components/inline-disclosure/inline-disclosure.d.ts +1 -1
- package/dist/types/src/components/popover/anchored-surface.d.ts +5 -1
- package/dist/types/src/components/popover/index.d.ts +41 -0
- package/dist/types/src/components/popover/popover-content.d.ts +32 -0
- package/dist/types/src/components/popover/popover-root.d.ts +22 -0
- package/dist/types/src/components/popover/popover-trigger.d.ts +23 -0
- package/dist/types/src/components/stepper/rolling-digit.d.ts +1 -1
- package/dist/types/src/components/table/table.d.ts +1 -1
- package/dist/types/src/components/view-controller/view-controller.d.ts +2 -2
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/machines/popover.machine.d.ts +30 -0
- package/package.json +307 -307
- package/src/appearance/index.ts +2 -2
- package/src/appearance/platform.tsx +76 -60
- package/src/appearance/theme.tsx +409 -377
- package/src/components/accordion/accordion.tsx +58 -49
- package/src/components/ambient/ambient.tsx +25 -25
- package/src/components/ambient/index.ts +1 -1
- package/src/components/aspect-ratio/aspect-ratio.tsx +21 -16
- package/src/components/breadcrumb/breadcrumb.tsx +63 -57
- package/src/components/button/button-styles.ts +39 -32
- package/src/components/button/button.tsx +91 -84
- package/src/components/button/icon-button.tsx +27 -25
- package/src/components/button/pending-spinner.tsx +8 -8
- package/src/components/button/use-pending-indicator.ts +11 -11
- package/src/components/chip/chip.tsx +35 -30
- package/src/components/code-block/code-block.tsx +40 -39
- package/src/components/combo-box/combo-box.tsx +5 -5
- package/src/components/command/command.tsx +124 -94
- package/src/components/compact-date-picker/calendar-month.ts +75 -53
- package/src/components/compact-date-picker/compact-date-picker.tsx +308 -289
- package/src/components/compact-time-picker/compact-time-picker.tsx +288 -281
- package/src/components/compact-time-picker/time-value.ts +32 -29
- package/src/components/content-unavailable-view/content-unavailable-view.tsx +64 -48
- package/src/components/content-view/content-view.tsx +168 -159
- package/src/components/content-view/index.ts +1 -1
- package/src/components/context-menu/conceal-menu-source.ts +25 -25
- package/src/components/context-menu/context-menu-host.tsx +439 -398
- package/src/components/context-menu/context-menu-store.ts +125 -123
- package/src/components/context-menu/menu-navigation.ts +25 -18
- package/src/components/context-menu/menu-position.ts +33 -29
- package/src/components/context-menu/menu-reveal.ts +32 -32
- package/src/components/context-menu/use-context-menu.ts +63 -56
- package/src/components/conversation/conversation.tsx +265 -263
- package/src/components/conversation/index.ts +1 -1
- package/src/components/date-picker/date-picker.tsx +95 -94
- package/src/components/date-picker/date-value.ts +20 -10
- package/src/components/dialog/dialog-host.tsx +105 -103
- package/src/components/dialog/dialog-store.ts +37 -36
- package/src/components/dialog/dialog.tsx +192 -179
- package/src/components/dialog/index.ts +1 -1
- package/src/components/disclosure-group/disclosure-group.tsx +93 -86
- package/src/components/divider/divider.tsx +24 -22
- package/src/components/inline-disclosure/inline-disclosure.tsx +40 -36
- package/src/components/keyboard-shortcut/keyboard-shortcut.tsx +23 -19
- package/src/components/labeled-content/labeled-content.tsx +68 -68
- package/src/components/locale-switcher/index.ts +1 -1
- package/src/components/locale-switcher/locale-switcher.tsx +279 -251
- package/src/components/menu/menu.tsx +75 -58
- package/src/components/morph/index.ts +2 -2
- package/src/components/morph/morph.tsx +227 -201
- package/src/components/morph/use-morph-disclosure.ts +19 -19
- package/src/components/one-time-code/one-time-code.tsx +216 -200
- package/src/components/picker/picker-trigger.ts +16 -13
- package/src/components/picker/picker.tsx +371 -345
- package/src/components/popover/anchored-surface.tsx +253 -229
- package/src/components/popover/index.ts +50 -0
- package/src/components/popover/popover-content.tsx +334 -0
- package/src/components/popover/popover-fit.ts +58 -53
- package/src/components/popover/popover-root.tsx +97 -0
- package/src/components/popover/popover-trigger.tsx +71 -0
- package/src/components/profile-image/profile-image.tsx +80 -64
- package/src/components/progress-view/progress-view.tsx +61 -59
- package/src/components/progress-view/use-liquid-progress.ts +38 -38
- package/src/components/radio-group/radio-group.tsx +71 -68
- package/src/components/search-field/expanding-search-field.tsx +191 -177
- package/src/components/search-field/search-field.tsx +59 -50
- package/src/components/search-list/search-list.tsx +246 -236
- package/src/components/section/section.tsx +58 -58
- package/src/components/secure-field/secure-field.tsx +3 -3
- package/src/components/segmented-control/segmented-control.tsx +136 -136
- package/src/components/sheet/modal-environment.ts +71 -64
- package/src/components/sheet/sheet-portal.tsx +58 -53
- package/src/components/sheet/sheet.tsx +146 -141
- package/src/components/sheet/use-sheet-focus.ts +97 -82
- package/src/components/sidebar/sidebar.tsx +78 -78
- package/src/components/skeleton/skeleton.tsx +30 -21
- package/src/components/slider/slider.tsx +113 -104
- package/src/components/slosh-slider/liquid-step.ts +32 -31
- package/src/components/slosh-slider/slosh-slider.tsx +265 -228
- package/src/components/stat-tile/index.ts +1 -1
- package/src/components/stat-tile/stat-tile.tsx +79 -68
- package/src/components/status-indicator/status-indicator.tsx +40 -37
- package/src/components/stepper/rolling-digit.tsx +82 -68
- package/src/components/stepper/stepper.tsx +122 -113
- package/src/components/swatch-picker/swatch-picker.tsx +120 -120
- package/src/components/tab-bar/tab-bar.tsx +149 -148
- package/src/components/tab-view/tab-view.tsx +140 -137
- package/src/components/table/table.tsx +117 -98
- package/src/components/text-editor/text-editor.tsx +34 -29
- package/src/components/text-field/text-field.tsx +182 -180
- package/src/components/toast/toast-store.ts +127 -115
- package/src/components/toast/toaster.tsx +361 -347
- package/src/components/toggle/toggle.tsx +297 -282
- package/src/components/tooltip/tooltip-host.tsx +157 -150
- package/src/components/view-controller/index.ts +1 -1
- package/src/components/view-controller/view-controller.tsx +64 -53
- package/src/components/wake-slider/wake-slider.tsx +220 -205
- package/src/hooks/scroll/minimize-decision.ts +11 -7
- package/src/hooks/use-anchored-disclosure.ts +19 -19
- package/src/hooks/use-anchored-placement.ts +29 -25
- package/src/hooks/use-dismiss.ts +33 -29
- package/src/hooks/use-floating-dismiss.ts +24 -22
- package/src/hooks/use-media-query.ts +67 -60
- package/src/hooks/use-minimize-on-scroll.ts +69 -60
- package/src/hooks/use-visual-viewport.ts +63 -63
- package/src/hooks/viewport/types.ts +16 -16
- package/src/hooks/viewport/viewport-metrics.ts +16 -10
- package/src/icons/icons.tsx +440 -328
- package/src/index.ts +91 -91
- package/src/lib/anchored-placement.ts +70 -65
- package/src/lib/class-names.ts +14 -13
- package/src/lib/clipboard.ts +8 -7
- package/src/lib/date.ts +61 -60
- package/src/lib/floating-layers.ts +39 -24
- package/src/lib/haptics.ts +10 -10
- package/src/lib/language.ts +9 -9
- package/src/lib/range-value.ts +27 -21
- package/src/lib/screen-edges.ts +33 -30
- package/src/lib/shapes.ts +38 -34
- package/src/machines/popover.machine.ts +51 -0
- package/src/motion/transitions.ts +46 -43
- package/src/styles/code-block.css +69 -43
- package/src/styles/motion-controls.css +393 -191
- package/src/tokens.ts +1 -1
- package/dist/types/src/components/popover/popover.d.ts +0 -21
- package/src/components/popover/popover.tsx +0 -322
|
@@ -1,79 +1,90 @@
|
|
|
1
|
-
import type { ReactNode } from "react"
|
|
2
|
-
import { cn } from "../../lib/class-names"
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { cn } from "../../lib/class-names";
|
|
3
3
|
|
|
4
|
-
export type StatTileTone = "critical"
|
|
5
|
-
export type StatTileSize = "sm" | "md" | "lg"
|
|
4
|
+
export type StatTileTone = "critical";
|
|
5
|
+
export type StatTileSize = "sm" | "md" | "lg";
|
|
6
6
|
|
|
7
|
-
const tileSizes: Record<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
7
|
+
const tileSizes: Record<
|
|
8
|
+
StatTileSize,
|
|
9
|
+
{ padding: string; valueText: string; labelText: string }
|
|
10
|
+
> = {
|
|
11
|
+
sm: { padding: "p-3", valueText: "text-title3", labelText: "text-caption" },
|
|
12
|
+
md: { padding: "p-4", valueText: "text-title1", labelText: "text-footnote" },
|
|
13
|
+
lg: {
|
|
14
|
+
padding: "p-5",
|
|
15
|
+
valueText: "text-title",
|
|
16
|
+
labelText: "text-subheadline",
|
|
17
|
+
},
|
|
18
|
+
};
|
|
12
19
|
|
|
13
20
|
export interface StatTileProps {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
label: string;
|
|
22
|
+
value: number;
|
|
23
|
+
/** A quiet line under the number, like "3 signed in now". */
|
|
24
|
+
caption?: ReactNode;
|
|
25
|
+
/** Turns the number red once it's above zero. */
|
|
26
|
+
tone?: StatTileTone;
|
|
27
|
+
/** Makes the tile a toggle, e.g. a filter. */
|
|
28
|
+
onClick?: () => void;
|
|
29
|
+
active?: boolean;
|
|
30
|
+
/** Custom classes for the tile container. */
|
|
31
|
+
className?: string;
|
|
32
|
+
/** Tile padding and number scale. @default "md" */
|
|
33
|
+
size?: StatTileSize;
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
/** One number with its label, optionally a toggle. */
|
|
30
37
|
export function StatTile({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
label,
|
|
39
|
+
value,
|
|
40
|
+
caption,
|
|
41
|
+
tone,
|
|
42
|
+
onClick,
|
|
43
|
+
active = false,
|
|
44
|
+
className,
|
|
45
|
+
size = "md",
|
|
39
46
|
}: StatTileProps) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
47
|
+
const dims = tileSizes[size];
|
|
48
|
+
const body = (
|
|
49
|
+
<>
|
|
50
|
+
<span className={cn(dims.labelText, "text-label-secondary")}>
|
|
51
|
+
{label}
|
|
52
|
+
</span>
|
|
53
|
+
<span
|
|
54
|
+
className={cn(
|
|
55
|
+
"font-semibold tabular-nums",
|
|
56
|
+
dims.valueText,
|
|
57
|
+
tone === "critical" && value > 0 && "text-danger",
|
|
58
|
+
)}
|
|
59
|
+
>
|
|
60
|
+
{value.toLocaleString("en-US")}
|
|
61
|
+
</span>
|
|
62
|
+
{caption && (
|
|
63
|
+
<span className={cn(dims.labelText, "text-label-tertiary")}>
|
|
64
|
+
{caption}
|
|
65
|
+
</span>
|
|
66
|
+
)}
|
|
67
|
+
</>
|
|
68
|
+
);
|
|
69
|
+
const tileClass = cn(
|
|
70
|
+
"border-separator/35 bg-elevated flex min-w-0 flex-col gap-2 rounded-2xl border text-left shadow-xs",
|
|
71
|
+
dims.padding,
|
|
72
|
+
className,
|
|
73
|
+
);
|
|
63
74
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
if (!onClick) return <div className={tileClass}>{body}</div>;
|
|
76
|
+
return (
|
|
77
|
+
<button
|
|
78
|
+
type="button"
|
|
79
|
+
aria-pressed={active}
|
|
80
|
+
onClick={onClick}
|
|
81
|
+
className={cn(
|
|
82
|
+
tileClass,
|
|
83
|
+
"hover:bg-fill/60 ring-1 ring-transparent transition-colors",
|
|
84
|
+
active && "bg-fill/70 ring-label/15",
|
|
85
|
+
)}
|
|
86
|
+
>
|
|
87
|
+
{body}
|
|
88
|
+
</button>
|
|
89
|
+
);
|
|
79
90
|
}
|
|
@@ -1,51 +1,54 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from "react"
|
|
2
|
-
import { cn } from "../../lib/class-names"
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import { cn } from "../../lib/class-names";
|
|
3
3
|
|
|
4
4
|
const dots = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} as const
|
|
5
|
+
saved: "bg-success",
|
|
6
|
+
syncing: "bg-warning animate-pulse",
|
|
7
|
+
offline: "bg-label-tertiary",
|
|
8
|
+
} as const;
|
|
9
9
|
|
|
10
|
-
export type StatusIndicatorState = keyof typeof dots
|
|
11
|
-
export type StatusIndicatorSize = "sm" | "md"
|
|
10
|
+
export type StatusIndicatorState = keyof typeof dots;
|
|
11
|
+
export type StatusIndicatorSize = "sm" | "md";
|
|
12
12
|
|
|
13
13
|
const dotSizes: Record<StatusIndicatorSize, string> = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
14
|
+
sm: "size-[6px]",
|
|
15
|
+
md: "size-[7px]",
|
|
16
|
+
};
|
|
17
17
|
|
|
18
18
|
const textSizes: Record<StatusIndicatorSize, string> = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
19
|
+
sm: "text-caption",
|
|
20
|
+
md: "text-footnote",
|
|
21
|
+
};
|
|
22
22
|
|
|
23
23
|
export interface StatusIndicatorProps extends HTMLAttributes<HTMLSpanElement> {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
/** Visual treatment of the status dot. */
|
|
25
|
+
state: StatusIndicatorState;
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
/** Dot diameter and text scale. @default "md" */
|
|
28
|
+
size?: StatusIndicatorSize;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export function StatusIndicator({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
state,
|
|
33
|
+
children,
|
|
34
|
+
size = "md",
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
37
|
}: StatusIndicatorProps) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
return (
|
|
39
|
+
<span
|
|
40
|
+
className={cn(
|
|
41
|
+
"text-label-tertiary flex items-center gap-1.5",
|
|
42
|
+
textSizes[size],
|
|
43
|
+
className,
|
|
44
|
+
)}
|
|
45
|
+
{...props}
|
|
46
|
+
>
|
|
47
|
+
<span
|
|
48
|
+
aria-hidden="true"
|
|
49
|
+
className={cn(dotSizes[size], "rounded-full", dots[state])}
|
|
50
|
+
/>
|
|
51
|
+
{children}
|
|
52
|
+
</span>
|
|
53
|
+
);
|
|
51
54
|
}
|
|
@@ -1,77 +1,91 @@
|
|
|
1
|
-
import { useEffect, useRef } from "react"
|
|
2
|
-
import { useMediaQuery } from "../../hooks/use-media-query"
|
|
1
|
+
import { useEffect, useRef } from "react";
|
|
2
|
+
import { useMediaQuery } from "../../hooks/use-media-query";
|
|
3
3
|
|
|
4
4
|
/** Counts at a place retain carries: the tens column of 1284 targets 128. */
|
|
5
5
|
export function digitAt(count: number) {
|
|
6
|
-
|
|
6
|
+
return ((Math.floor(count) % 10) + 10) % 10;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export function advanceDigit(
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
export function advanceDigit(
|
|
10
|
+
position: number,
|
|
11
|
+
velocity: number,
|
|
12
|
+
target: number,
|
|
13
|
+
frames: number,
|
|
14
|
+
) {
|
|
15
|
+
const nextVelocity =
|
|
16
|
+
(velocity + (target - position) * 0.16 * frames) * 0.7 ** frames;
|
|
17
|
+
return { position: position + nextVelocity * frames, velocity: nextVelocity };
|
|
12
18
|
}
|
|
13
19
|
|
|
14
20
|
/** Three recycled cells keep the strip continuous through either side of zero. */
|
|
15
|
-
export function RollingDigit({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
21
|
+
export function RollingDigit({
|
|
22
|
+
count,
|
|
23
|
+
place,
|
|
24
|
+
}: {
|
|
25
|
+
count: number;
|
|
26
|
+
place: number;
|
|
27
|
+
}) {
|
|
28
|
+
const strip = useRef<HTMLSpanElement>(null);
|
|
29
|
+
const state = useRef({ position: count, velocity: 0 });
|
|
30
|
+
const reduced = useMediaQuery("(prefers-reduced-motion: reduce)");
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
let frame = 0;
|
|
33
|
+
let previous = 0;
|
|
34
|
+
let due = 0;
|
|
35
|
+
const paint = (position: number, velocity: number) => {
|
|
36
|
+
const node = strip.current;
|
|
37
|
+
if (!node) return;
|
|
38
|
+
const base = Math.floor(position);
|
|
39
|
+
for (let index = 0; index < node.children.length; index++) {
|
|
40
|
+
(node.children[index] as HTMLElement).textContent = String(
|
|
41
|
+
digitAt(base + index - 1),
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
node.style.transform = `translateY(${(-(position - base + 1) * 100) / 3}%)`;
|
|
45
|
+
node.style.filter = `blur(${Math.min(2, Math.abs(velocity) * 1.4)}px)`;
|
|
46
|
+
};
|
|
47
|
+
if (reduced) {
|
|
48
|
+
state.current = { position: count, velocity: 0 };
|
|
49
|
+
paint(count, 0);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const tick = (now: number) => {
|
|
53
|
+
if (!due) due = now + place * 28;
|
|
54
|
+
const frames = previous ? Math.min((now - previous) / (1000 / 60), 2) : 1;
|
|
55
|
+
previous = now;
|
|
56
|
+
if (now >= due) {
|
|
57
|
+
state.current = advanceDigit(
|
|
58
|
+
state.current.position,
|
|
59
|
+
state.current.velocity,
|
|
60
|
+
count,
|
|
61
|
+
frames,
|
|
62
|
+
);
|
|
63
|
+
if (
|
|
64
|
+
Math.abs(count - state.current.position) < 0.002 &&
|
|
65
|
+
Math.abs(state.current.velocity) < 0.002
|
|
66
|
+
) {
|
|
67
|
+
state.current = { position: count, velocity: 0 };
|
|
68
|
+
paint(count, 0);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
paint(state.current.position, state.current.velocity);
|
|
72
|
+
}
|
|
73
|
+
frame = requestAnimationFrame(tick);
|
|
74
|
+
};
|
|
75
|
+
frame = requestAnimationFrame(tick);
|
|
76
|
+
return () => cancelAnimationFrame(frame);
|
|
77
|
+
}, [count, place, reduced]);
|
|
78
|
+
return (
|
|
79
|
+
<span className="relative inline-block h-[1.5em] w-[1ch] overflow-hidden align-middle">
|
|
80
|
+
<span
|
|
81
|
+
ref={strip}
|
|
82
|
+
className="absolute inset-x-0 top-0 flex flex-col leading-[1.5em]"
|
|
83
|
+
style={{ transform: "translateY(-33.333333%)" }}
|
|
84
|
+
>
|
|
85
|
+
<span>{digitAt(count - 1)}</span>
|
|
86
|
+
<span>{digitAt(count)}</span>
|
|
87
|
+
<span>{digitAt(count + 1)}</span>
|
|
88
|
+
</span>
|
|
89
|
+
</span>
|
|
90
|
+
);
|
|
77
91
|
}
|