@kanso-labs/kanso-ui 0.46.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chip/label.js +1 -0
- package/dist/chip/label.js.map +1 -1
- package/dist/chip/styles.js +1 -0
- package/dist/chip/styles.js.map +1 -1
- package/dist/components/breadcrumbs/index.js +1 -1
- package/dist/components/breadcrumbs/index.js.map +1 -1
- package/dist/components/code/index.js +32 -26
- package/dist/components/code/index.js.map +1 -1
- package/dist/components/color-swatch/index.js +1 -1
- package/dist/components/color-swatch/index.js.map +1 -1
- package/dist/components/icon-button/index.js +3 -3
- package/dist/components/icon-button/index.js.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/link/index.js +2 -2
- package/dist/components/link/index.js.map +1 -1
- package/dist/components/menu/index.js +4 -1
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/navigation-bar/index.js.map +1 -1
- package/dist/components/progress-indicator/index.js +258 -172
- package/dist/components/progress-indicator/index.js.map +1 -1
- package/dist/components/search-view/index.js +1 -1
- package/dist/components/search-view/index.js.map +1 -1
- package/dist/components/table/index.d.ts +26 -5
- package/dist/components/table/index.js +93 -75
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/tag/index.js +1 -0
- package/dist/components/tag/index.js.map +1 -1
- package/dist/components/time-picker/index.js +35 -5
- package/dist/components/time-picker/index.js.map +1 -1
- package/dist/components/toolbar/index.d.ts +4 -3
- package/dist/components/toolbar/index.js +107 -38
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/navigation/styles.js +1 -1
- package/dist/navigation/styles.js.map +1 -1
- package/dist/segments/index.js +2 -6
- package/dist/segments/index.js.map +1 -1
- package/dist/segments/literal.js +66 -0
- package/dist/segments/literal.js.map +1 -0
- package/dist/segments/styles.js +4 -0
- package/dist/segments/styles.js.map +1 -1
- package/dist/styles.css +351 -34
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_c","stylex","ProgressBar","indicatorStyles","mergeStatefulStyles","CIRCULAR_SIZE","CIRCULAR_SIZE_PX","THICKNESS","GAP","RADIUS","CIRCUMFERENCE","Math","PI","round","WAVE_AMPLITUDE","WAVE_WAVELENGTH","INDETERMINATE_WAVELENGTH","WAVE_HEIGHT","WAVE_REACH","WAVE_FROM","WAVE_UNTIL","WAVY_SIZE","WAVY_SIZE_PX","RING_AMPLITUDE","RING_WAVELENGTH","WAVY_RADIUS","WAVY_CIRCUMFERENCE","RING_WAVES","DETERMINATE_WAVE","linearWave","INDETERMINATE_WAVE","RING_WAVE","ringWave","_temp","kZKoxP","kzqmXN","_temp2","_temp3","k5rJSQ","styles","activeFade","k1ekBW","$$css","activeUnderWave","kSiTet","arcActive","kjVXCG","arcFade","arcIndeterminate","kkDQuc","k44tkh","ko0y90","kKVMdj","kyAemX","arcMotion","k6CgDc","kIyJzY","kAMwcw","arcTrack","circular","kB7OPa","k1xSpc","k3aq6I","circularIndeterminate","circularSize","size","val","undefined","flatUnderWave","indeterminateBarInner","kWkggS","kaIpWk","kpwlN0","kVAEAm","indeterminateTrack","kjBf7l","kInvED","k3XXqK","kMeerF","primaryBarInner","primaryWave","rootCircular","kXLuUW","secondaryBarInner","secondaryWave","trackBuffered","kmuXW","trackBufferedAt","share","waveAt","percentage","waveFlat","waveMotion","buffer","className","diameter","label","shape","showValue","tone","variant","arcsFor","circumference","active","room","min","track","max","strokeDasharray","strokeDashoffset","strokeLinecap","capFor","bufferShare","minValue","maxValue","value","range","buffered","remaining","length","CircularTrack","t0","$","isIndeterminate","inherit","wavy","radius","t1","arcs","t2","isWaving","waving","t3","t4","props","t5","inheritTrack","t6","t7","t8","t9","t10","t11","t12","inheritActive","t13","t14","t15","indicatorContent","state","valueText","LinearTrack","Symbol","for","0","1","bars","path","extent","t16","t17","t18","t19","line","wavelength","half","inset","lift","halves","ceil","index","ProgressIndicator","T0","root","points","centre","angle","sin","cos"],"sources":["../../../src/components/progress-indicator/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { ProgressBarRenderProps, ProgressBarProps as RACProgressBarProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { ProgressBar } from 'react-aria-components';\nimport type { IndicatorTone } from '../../indicator/styles';\nimport { IndicatorLabels, IndicatorLine } from '../../indicator';\nimport { indicatorStyles } from '../../indicator/styles';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, motion, radii } from '../../tokens/design.tokens.stylex';\n\n// The progress indicators page's indicator, as a line or a ring, in either\n// of the page's two shapes, flat and wavy. Both carry the three parts the\n// page's anatomy names — the active indicator in primary, the track in\n// secondary container, and, on the line, the stop indicator in primary at\n// the end — at the page's 4dp thickness, with the 4dp gap its measurements\n// give either side of the track. The flat ring is the page's default 40dp of\n// the four sizes it draws, and the wavy ring the 48dp its wave needs room\n// for.\n//\n// The determinate line is a row of those parts: the active indicator takes\n// the value's share of what the stop and the gap before it leave, and the\n// track takes the rest — see `activeAt` in src/indicator/styles.ts. The\n// determinate ring is two arcs of one circle, cut by the dash pattern: the\n// active arc runs from the top for its share of the circumference, and the\n// track picks up past it and stops short of coming back round, leaving the\n// line's 4dp between the arcs' round ends — see `arcsFor`.\n//\n// The animations are Material's own rather than something assembled from\n// the motion tokens: an indeterminate indicator is a piece of choreography,\n// and one written from scratch reads as a different component beside a\n// Material app. Material Web and Angular Material both descend from the\n// same implementation and agree on every number, so the numbers here are\n// theirs — the line's two bars and their four keyframe sets, the buffer's\n// scrolling dots, the ring's 1333ms arc, its four-arc cycle and its 1568ms\n// rotation, and the 250ms and 500ms a determinate value moves over.\n//\n// Two things are decided differently, both after reading the two of them.\n//\n// The ring is one dashed arc rather than two halves. Material Web draws it\n// as a pair of bordered half-circles, Angular as a pair of clipped SVG\n// circles with a patch over the seam between them; both constructions exist\n// to work around that split, and a single arc whose dash pattern is\n// animated needs neither and shares its geometry with the determinate ring.\n// The three effects it composes are still theirs: the arc grows and shrinks\n// over the arc's duration, its start travels the circle over four of those,\n// and the whole thing turns over the rotation's.\n//\n// Under `prefers-reduced-motion` the motion slows rather than stopping,\n// which is Angular's answer and the better one: an indicator that freezes\n// stops saying the work is going on, and a frozen arc caught at its short\n// end reads as broken. The multipliers are Angular's — two for the line,\n// and a quarter more for the ring. The buffer's dots are the exception and\n// stop: they are drawn on a determinate line, whose value is what says the\n// work is going on, so their movement tells a reader nothing and is only\n// movement.\n//\n// The wavy shape draws the active indicator as a wave and leaves the track\n// and the stop flat, as the page does. Its numbers are Material's own, from\n// its Compose and Android components: on the line a 3dp amplitude, a 40dp\n// wavelength and a 10dp row, with a 20dp wavelength while indeterminate; on\n// the ring a 1.6dp amplitude and a 15dp wavelength, rounded to a whole\n// number of waves so the wave closes on itself. A determinate wave lies flat\n// up to a tenth of the way and from 95% on, which is Material's rule too: a\n// wave too short to hold a crest reads as a wobble, and one about to finish\n// settles into the line it ends as.\n//\n// The wave is drawn over the flat drawing rather than in place of it, and\n// the two are crossfaded as the value crosses those bounds. The flat drawing\n// is also what a reader who has asked for reduced motion sees, since a wave\n// is motion even standing still, and what a line wider than `WAVE_REACH` is\n// drawn as. The line's wave is a path of that fixed length, cut to the value\n// by a dash written against the row's own width in container query units,\n// `100cqi`, so nothing has to measure the row before the wave can be drawn.\n//\n// React Aria's `ProgressBar` is the root: it carries the role, the value and\n// its text, and reports the percentage and whether it is indeterminate as\n// render state, which is what everything here is drawn from.\n\n// The circle the arcs are cut from. The radius is the diameter less the\n// stroke, halved, so the stroke sits inside the 40dp box rather than\n// straddling its edge.\n//\n// The thickness and the gap are the same 4dp the shared line is drawn at,\n// written again rather than imported from `src/indicator/styles`: StyleX\n// evaluates the values inside `stylex.create` and `stylex.keyframes` as it\n// compiles, and will not follow an import to a module that is not a theme\n// to reach one — an imported constant fails the transform outright.\nconst CIRCULAR_SIZE = 40;\n// The same value as a length, hoisted rather than built at the parameter.\n// The compiler has no safe reordering for a template literal, so one written\n// as a default parameter skips the whole component around it — which the\n// panic threshold this lands beside turns into a build failure.\nconst CIRCULAR_SIZE_PX = `${CIRCULAR_SIZE}px`;\nconst THICKNESS = 4;\nconst GAP = 4;\nconst RADIUS = (CIRCULAR_SIZE - THICKNESS) / 2;\nconst CIRCUMFERENCE = 2 * Math.PI * RADIUS;\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// The ring's timings. The arc is 1333ms; a full cycle is four of them; and\n// the rotation is the arc scaled by 360/306, which is the arc's start\n// rotation plus the circle less the arc's size.\nconst ARC_MS = 1333;\nconst CYCLE_MS = ARC_MS * 4;\nconst ROTATE_MS = Math.round(ARC_MS * 360 / 306);\nconst RING_EASING = 'cubic-bezier(0.4, 0, 0.2, 1)';\n\n// The line's own: 2s for an indeterminate pass, and the 250ms the buffer's\n// dots take to scroll one pitch. What a determinate value moves over is the\n// shared line's, since a meter moves the same way.\nconst INDETERMINATE_MS = 2000;\nconst BUFFER_MS = 250;\n\n// What `prefers-reduced-motion` slows each indeterminate shape by.\nconst LINE_SLOWDOWN = 2;\nconst RING_SLOWDOWN = 1.25;\n\n// The wavy line: the wave's amplitude either side of the middle, its two\n// wavelengths, and the row it is drawn in, which is the amplitude either side\n// plus the stroke. `WAVE_REACH` is how far the wave runs, and a row wider\n// than that draws flat. The easing is the shared line's, written again for\n// the reason the thickness is.\nconst WAVE_AMPLITUDE = 3;\nconst WAVE_WAVELENGTH = 40;\nconst INDETERMINATE_WAVELENGTH = 20;\nconst WAVE_HEIGHT = WAVE_AMPLITUDE * 2 + THICKNESS;\nconst WAVE_REACH = 2048;\nconst DETERMINATE_EASING = 'cubic-bezier(0.4, 0, 0.6, 1)';\n\n// Where a determinate wave stands up and where it lies down again, as\n// percentages of the way.\nconst WAVE_FROM = 10;\nconst WAVE_UNTIL = 95;\n\n// The wavy ring: the 48dp box, the amplitude, and the circle the wave runs\n// round, pulled in by the amplitude so its crests stay inside the box. The\n// wave count is the wavelength's share of that circle, rounded — nine.\nconst WAVY_SIZE = 48;\nconst WAVY_SIZE_PX = `${WAVY_SIZE}px`;\nconst RING_AMPLITUDE = 1.6;\nconst RING_WAVELENGTH = 15;\nconst WAVY_RADIUS = (WAVY_SIZE - THICKNESS) / 2 - RING_AMPLITUDE;\nconst WAVY_CIRCUMFERENCE = 2 * Math.PI * WAVY_RADIUS;\nconst RING_WAVES = Math.round(WAVY_CIRCUMFERENCE / RING_WAVELENGTH);\nconst REDUCED_MOTION = '@media (prefers-reduced-motion: reduce)';\nconst TOO_WIDE = `@container (inline-size > ${WAVE_REACH}px)`;\n\n// The paths the waves are drawn along, built once.\nconst DETERMINATE_WAVE = linearWave(WAVE_WAVELENGTH);\nconst INDETERMINATE_WAVE = linearWave(INDETERMINATE_WAVELENGTH);\nconst RING_WAVE = ringWave();\n\n// The two bars of the indeterminate line, translated and scaled at once.\nconst primaryTranslate = \"x1pch1fy-B\";\nconst primaryScale = \"xxyp5q1-B\";\nconst secondaryTranslate = \"xzo9tdn-B\";\nconst secondaryScale = \"x1w7bnrt-B\";\n\n// The buffer's dots scroll by one pitch of the pattern and start again.\nconst buffering = \"x19sykc1-B\";\n\n// The arc's own length, written against a path the circle normalises to 100\n// with `pathLength`, so these are percentages of the circumference rather\n// than lengths StyleX would have to work out.\n//\n// Material contracts to 10 degrees of turn and grows to 270. The 270 is 75\n// of the circumference and is written as it is; the 10 is not, because the\n// page's rounded ends change what a short dash draws. A round cap adds half\n// the stroke at each end, so a 10-degree dash on the 40dp ring is 3px of\n// path inside a 7px capsule of 4px stroke — a dot rather than the sliver\n// Material's square-cut ends give at the same angle. 8 is the shortest the\n// cap still draws as an arc, and it is the floor for that reason rather\n// than because the page names it.\n//\n// Each pattern's dash and gap sum to the circle's 100, at every step of the\n// interpolation between them, so the pattern repeats exactly once round\n// the ring. A dash does not wrap past the start of a closed path, so with a\n// longer period — the dash and a gap of 100 — an arc that had travelled late\n// round the ring was cut off at the path's end, down to a dot, and grew back\n// from somewhere else. And the 100 is what makes `travelArc`'s last offset,\n// -300, the same position as its first, so the loop has no seam.\nconst expandArc = \"x17j028-B\";\n\n// Where the arc starts. Material turns it in eight increments of 135 degrees\n// rather than at a constant rate, each eased with the same curve the arc's\n// growth uses, so it settles at each position and springs to the next; three\n// full turns over the cycle, under the rotation's own single turn. The\n// numbers here are those angles along a path of 100: 135 degrees is 37.5 of\n// it, and 1080 degrees is 300.\nconst travelArc = \"x26nhu8-B\";\nconst spin = \"x1fy8ia8-B\";\n\n// The indeterminate line's two bars, as dashes along the wave. A bar's\n// translation is where its dash starts, so it moves the dash's offset, and\n// its scale is how long the dash is, so it moves the dash's length; both are\n// the bar keyframes above, at their times and on their curves, turned from\n// shares of the row into lengths of it. The offset is the bar's distance\n// before the row's start, which is where its keyframes put it: the primary\n// bar sits 145.167% back and travels 200.611% of the row, the secondary\n// 54.8889% back and travels 160.278%. The gap after the dash is four rows\n// long, so the dash after it never reaches the row.\nconst primaryWaveOffset = \"x1kfhhp5-B\";\nconst primaryWaveLength = \"x1yi1oyw-B\";\nconst secondaryWaveOffset = \"x18qdip-B\";\nconst secondaryWaveLength = \"x1b9nlqo-B\";\nconst _temp = {\n kZKoxP: \"xyq6l7l\",\n kzqmXN: \"x1uyokj7\",\n \"$$css\": true\n};\nconst _temp2 = {\n kzqmXN: \"x1uyokj7\",\n \"$$css\": true\n};\nconst _temp3 = {\n k5rJSQ: \"xqmdeo6\",\n \"$$css\": true\n};\nconst styles = {\n activeFade: {\n k1ekBW: \"x7x1mir\",\n $$css: true\n },\n activeUnderWave: {\n kSiTet: \"xg01cxk x19xn7b2 x16dpw5u\",\n k1ekBW: \"x7x1mir\",\n $$css: true\n },\n arcActive: {\n kjVXCG: \"x1i9vjva xbabvq0\",\n $$css: true\n },\n arcFade: {\n k1ekBW: \"x1t9qjwo\",\n $$css: true\n },\n arcIndeterminate: {\n kkDQuc: \"x12dwrod\",\n k44tkh: \"xxx5gdc\",\n ko0y90: \"x77zgwx\",\n kKVMdj: \"xz09zy6\",\n kyAemX: \"x1582zw4\",\n kjVXCG: \"x1i9vjva xbabvq0\",\n k1ekBW: \"x13b0p5u\",\n $$css: true\n },\n arcMotion: {\n k6CgDc: \"x12w9bfk\",\n kIyJzY: \"xd6oih7\",\n k1ekBW: \"xg0bdzq\",\n kAMwcw: \"x4ognrn\",\n $$css: true\n },\n arcTrack: {\n kjVXCG: \"xynoiew x8jos32\",\n $$css: true\n },\n circular: {\n kB7OPa: \"x9f619\",\n k1xSpc: \"x1lliihq\",\n k3aq6I: \"x9tu13d\",\n $$css: true\n },\n circularIndeterminate: {\n kkDQuc: \"x7hzzi\",\n k44tkh: \"x11c9iw4\",\n ko0y90: \"xa4qsjk\",\n kKVMdj: \"xpedhrg\",\n kyAemX: \"x1esw782\",\n k3aq6I: \"x1c071of\",\n $$css: true\n },\n circularSize: (size: string) => [_temp, {\n \"--x-blockSize\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(size),\n \"--x-inlineSize\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(size)\n }],\n flatUnderWave: {\n kSiTet: \"xg01cxk x16dpw5u\",\n $$css: true\n },\n indeterminateBarInner: {\n kWkggS: \"xnety89 x1jzqe4\",\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n kpwlN0: \"x10a8y8t\",\n kVAEAm: \"x10l6tqk\",\n $$css: true\n },\n indeterminateTrack: {\n kWkggS: \"x15dekr4\",\n kaIpWk: \"x1dkaolv\",\n kpwlN0: \"x10a8y8t\",\n kjBf7l: \"x3teovq\",\n kInvED: \"xvr1dqx\",\n k3XXqK: \"x815t2r\",\n kMeerF: \"xcthrzx\",\n kVAEAm: \"x10l6tqk\",\n $$css: true\n },\n primaryBarInner: {\n kkDQuc: \"xy02sl2\",\n k44tkh: \"x1c74tu6\",\n ko0y90: \"xa4qsjk\",\n kKVMdj: \"xkj56kq\",\n kyAemX: \"x1esw782\",\n $$css: true\n },\n primaryWave: {\n k44tkh: \"xy7unhy\",\n ko0y90: \"x77zgwx\",\n kKVMdj: \"x15en9ga\",\n kyAemX: \"xlges3w\",\n kjVXCG: \"x1i9vjva xbabvq0\",\n $$css: true\n },\n ringWave: {\n k1xSpc: \"xkio4u3\",\n $$css: true\n },\n rootCircular: {\n k1xSpc: \"x3nfvp2\",\n kzqmXN: \"x14atkfc\",\n kXLuUW: \"xxymvpz\",\n $$css: true\n },\n secondaryBarInner: {\n kkDQuc: \"xy02sl2\",\n k44tkh: \"x1c74tu6\",\n ko0y90: \"xa4qsjk\",\n kKVMdj: \"xnb0dd2\",\n kyAemX: \"x1esw782\",\n $$css: true\n },\n secondaryWave: {\n k44tkh: \"xy7unhy\",\n ko0y90: \"x77zgwx\",\n kKVMdj: \"x1sz9pa8\",\n kyAemX: \"xlges3w\",\n kjVXCG: \"x1i9vjva xbabvq0\",\n $$css: true\n },\n trackBuffered: {\n kWkggS: \"x15dekr4\",\n kZKoxP: \"x5yr21d\",\n kB7OPa: \"x9f619\",\n kmuXW: \"x2lah0s\",\n $$css: true\n },\n trackBufferedAt: (share: number) => [_temp2, {\n \"--x-inlineSize\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(`${share}%`)\n }],\n waveAt: (percentage: number) => [_temp3, {\n \"--x-strokeDasharray\": `max(0px, (100cqi - ${GAP + THICKNESS}px) * ${percentage / 100} - ${THICKNESS}px) ${WAVE_REACH * 2}px` != null ? `max(0px, (100cqi - ${GAP + THICKNESS}px) * ${percentage / 100} - ${THICKNESS}px) ${WAVE_REACH * 2}px` : undefined\n }],\n waveFlat: {\n kSiTet: \"xg01cxk\",\n $$css: true\n },\n waveMotion: {\n k6CgDc: \"x12w9bfk\",\n kjVXCG: \"x1i9vjva xbabvq0\",\n kIyJzY: \"xioksi3\",\n k1ekBW: \"xvfbvx2\",\n kAMwcw: \"x16pyfke\",\n $$css: true\n }\n};\ntype ProgressIndicatorProps = {\n /**\n * How far the work is loaded ahead of the value — a video's buffered\n * seconds, a queue's fetched pages. Read on the same scale as `value`: the\n * track is solid up to it and dotted beyond. Ignored while the indicator\n * is indeterminate, and by the ring, which draws no buffer; left out for\n * work with nothing to buffer.\n */\n buffer?: number;\n /** A function may compute the class from the indicator's render state. */\n className?: RACProgressBarProps['className'];\n /**\n * How wide the ring is drawn, as a CSS length: 40px unless given, or 48px\n * for the wavy ring. Everything inside scales with it, so `1em` gives a\n * ring the size of the type around it. Ignored by the line, which fills\n * the width it is given.\n *\n * A length rather than a step of the size scale: a ring sized to the type\n * around it is what the prop is for, and no fixed scale gives that.\n * @default '40px'\n */\n diameter?: string;\n /**\n * What the work is, shown above the indicator. A screen reader reads it as\n * the indicator's name; an indicator whose surroundings name it takes\n * `aria-label` instead and leaves this out.\n */\n label?: ReactNode;\n /**\n * The page's two shapes. `wavy` draws the active indicator as a wave,\n * which lies flat near either end of a determinate value, and leaves the\n * track and the stop flat; the wavy ring is 48dp across rather than 40.\n * Under `prefers-reduced-motion` a wavy indicator is drawn flat.\n * @default 'flat'\n */\n shape?: ProgressIndicatorShape;\n /**\n * Whether the value is shown at the end of the label's row. Ignored while\n * the indicator is indeterminate, which has no value to show. On a ring\n * the row sits above it, and the indicator is as wide as the wider of the\n * two.\n * @default false\n */\n showValue?: boolean;\n /** A function may compute the style from the indicator's render state. */\n style?: RACProgressBarProps['style'];\n /**\n * Which colours it is drawn in. `primary` is the page's own pair — the\n * active indicator in primary over a secondary container track — and\n * `inherit` takes the colour around it, for an indicator inside something\n * that already has one, such as a button, where primary would be the fill.\n * @default 'primary'\n */\n tone?: ProgressIndicatorTone;\n /**\n * The line the page draws, or the ring: `linear` fills the width it is\n * given, `circular` is 40dp across, or 48dp for the wavy ring.\n * @default 'linear'\n */\n variant?: ProgressIndicatorVariant;\n} & Omit<RACProgressBarProps, 'children' | 'className' | 'style'>;\ntype ProgressIndicatorShape = 'flat' | 'wavy';\n\n// The two of the shared line's four tones an indicator draws. The other two\n// say how a measurement reads, which is a meter's business rather than a\n// running task's.\ntype ProgressIndicatorTone = Extract<IndicatorTone, 'inherit' | 'primary'>;\ntype ProgressIndicatorVariant = 'circular' | 'linear';\n\n// The dashes that cut the two arcs out of one circle. The active arc runs\n// from the top for its share of the circumference; the track picks up after\n// it and stops before it comes back round.\n//\n// Every arc ends in a round cap, which reaches half the stroke past the end\n// of its dash, so two dashes 4dp apart touch. The room between them is the\n// page's gap and a cap either side of it, which is how the gap is measured:\n// between what is drawn, as the line's is between its parts. Compose's ring\n// adds the stroke to its gap for a round cap in the same way.\n//\n// That room is never longer than the active arc, Compose's rule too, so an\n// empty ring is the whole track rather than a track with a dot wedged\n// between its ends. A dash of no length draws its caps all the same, as a\n// dot, so an arc with nothing to draw takes flat caps and draws nothing.\nfunction arcsFor(percentage: number | undefined, circumference: number) {\n const active = (percentage ?? 0) / 100 * circumference;\n const room = Math.min(active, GAP + THICKNESS);\n const track = Math.max(0, circumference - active - 2 * room);\n return {\n active: {\n strokeDasharray: `${active} ${circumference}`,\n strokeDashoffset: 0,\n strokeLinecap: capFor(active)\n },\n track: {\n strokeDasharray: `${track} ${circumference}`,\n strokeDashoffset: -(active + room),\n strokeLinecap: capFor(track)\n }\n };\n}\n\n// How much of the track the buffer covers. The buffer is read on the value's\n// scale, and the track holds what the value has not taken, so the solid part\n// is the buffer's share of that remainder.\nfunction bufferShare(buffer: number | undefined, percentage: number | undefined, minValue: number, maxValue: number) {\n if (buffer === undefined) {\n return undefined;\n }\n const value = percentage ?? 0;\n const range = maxValue - minValue;\n const buffered = range === 0 ? 0 : (buffer - minValue) / range * 100;\n const remaining = 100 - value;\n if (remaining <= 0) {\n return 0;\n }\n return Math.min(100, Math.max(0, (buffered - value) / remaining * 100));\n}\n\n// An arc's caps: round, as the page draws every end, unless the arc has no\n// length to draw — see `arcsFor`.\nfunction capFor(length: number) {\n return length > 0 ? 'round' as const : 'butt' as const;\n}\nfunction CircularTrack({\n diameter,\n isIndeterminate,\n percentage,\n shape,\n tone\n}: {\n diameter: string;\n isIndeterminate: boolean;\n percentage: number | undefined;\n shape: ProgressIndicatorShape;\n tone: ProgressIndicatorTone;\n}) {\n const inherit = tone === 'inherit';\n const wavy = shape === 'wavy';\n const size = wavy ? WAVY_SIZE : CIRCULAR_SIZE;\n const radius = wavy ? WAVY_RADIUS : RADIUS;\n const circumference = wavy ? WAVY_CIRCUMFERENCE : CIRCUMFERENCE;\n const arcs = arcsFor(percentage, circumference);\n const waving = wavy && (isIndeterminate || isWaving(percentage));\n return <svg aria-hidden=\"true\" viewBox={`0 0 ${size} ${size}`} {...stylex.props(styles.circular, styles.circularSize(diameter), isIndeterminate && styles.circularIndeterminate)}>\n {isIndeterminate ? null : <circle cx={size / 2} cy={size / 2} fill=\"none\" r={radius} strokeDasharray={arcs.track.strokeDasharray} strokeDashoffset={arcs.track.strokeDashoffset} strokeLinecap={arcs.track.strokeLinecap} strokeWidth={THICKNESS} {...stylex.props(styles.arcMotion, styles.arcTrack, inherit && indicatorStyles.inheritTrack)} />}\n <circle cx={size / 2} cy={size / 2} fill=\"none\" pathLength={isIndeterminate ? 100 : undefined} r={radius} strokeDasharray={isIndeterminate ? undefined : arcs.active.strokeDasharray} strokeDashoffset={isIndeterminate ? undefined : arcs.active.strokeDashoffset} strokeLinecap={isIndeterminate ? 'round' : arcs.active.strokeLinecap} strokeWidth={THICKNESS} {...stylex.props(isIndeterminate ? styles.arcIndeterminate : styles.arcMotion, isIndeterminate ? null : styles.arcActive, inherit && indicatorStyles.inheritActive, wavy && !isIndeterminate && styles.arcFade, waving && styles.flatUnderWave)} />\n {wavy ?\n // The wave, over the flat arc and cut by the same dashes. Measured\n // as the circle it runs round, so a length along it is a share of\n // the way round.\n <path d={RING_WAVE} fill=\"none\" pathLength={isIndeterminate ? 100 : circumference} strokeDasharray={isIndeterminate ? undefined : arcs.active.strokeDasharray} strokeLinecap={isIndeterminate ? 'round' : arcs.active.strokeLinecap} strokeWidth={THICKNESS} {...stylex.props(isIndeterminate ? styles.arcIndeterminate : styles.arcMotion, isIndeterminate ? null : [styles.arcActive, styles.arcFade], inherit && indicatorStyles.inheritActive, styles.ringWave, !waving && styles.waveFlat)} /> : null}\n </svg>;\n}\n\n// What the indicator draws, from React Aria's render state. Built by a call\n// rather than written inline at the prop, which is what react-perf's\n// no-new-function-as-prop is after; the React Compiler memoises the result\n// on its inputs.\nfunction indicatorContent(label: ReactNode, showValue: boolean, variant: ProgressIndicatorVariant, buffer: number | undefined, minValue: number, maxValue: number, diameter: string, shape: ProgressIndicatorShape, tone: ProgressIndicatorTone) {\n return (state: ProgressBarRenderProps) => <>\n <IndicatorLabels label={label} value={showValue && !state.isIndeterminate ? state.valueText : undefined} />\n {variant === 'circular' ? <CircularTrack diameter={diameter} isIndeterminate={state.isIndeterminate} percentage={state.percentage} shape={shape} tone={tone} /> : <LinearTrack buffer={bufferShare(buffer, state.percentage, minValue, maxValue)} isIndeterminate={state.isIndeterminate} percentage={state.percentage} shape={shape} tone={tone} />}\n </>;\n}\n\n// Whether a determinate wave stands at this value — see `WAVE_FROM`.\nfunction isWaving(percentage: number | undefined) {\n const value = percentage ?? 0;\n return value > WAVE_FROM && value < WAVE_UNTIL;\n}\nfunction LinearTrack({\n buffer,\n isIndeterminate,\n percentage,\n shape,\n tone\n}: {\n buffer: number | undefined;\n isIndeterminate: boolean;\n percentage: number | undefined;\n shape: ProgressIndicatorShape;\n tone: ProgressIndicatorTone;\n}) {\n const inherit = tone === 'inherit';\n const wavy = shape === 'wavy';\n if (isIndeterminate) {\n const bars = <div className=\"xqu0tyb x1dkaolv x9f619 xh8yej3 xb3r6kr x1n2onr6 x19axjrm x1c071of\">\n <span {...stylex.props(styles.indeterminateTrack, inherit && indicatorStyles.inheritTrack)} />\n <span {...{\n 0: {\n className: \"xqu0tyb x9f619 xh8yej3 x13vifvy x10l6tqk x1nf803f xy02sl2 x1c74tu6 xa4qsjk x4hg7df x1esw782 xoia761\"\n },\n 1: {\n className: \"xqu0tyb x9f619 xh8yej3 x13vifvy x10l6tqk x1nf803f xy02sl2 x1c74tu6 xa4qsjk x4hg7df x1esw782 xoia761 xg01cxk x19xn7b2 x16dpw5u\"\n }\n }[!!wavy << 0]}>\n <span {...stylex.props(styles.indeterminateBarInner, styles.primaryBarInner, inherit && indicatorStyles.inheritActive)} />\n </span>\n <span {...{\n 0: {\n className: \"xqu0tyb x9f619 xh8yej3 x13vifvy x10l6tqk x1nf803f xy02sl2 x1c74tu6 xa4qsjk x1pdi2bj x1esw782 xnsac6p\"\n },\n 1: {\n className: \"xqu0tyb x9f619 xh8yej3 x13vifvy x10l6tqk x1nf803f xy02sl2 x1c74tu6 xa4qsjk x1pdi2bj x1esw782 xnsac6p xg01cxk x19xn7b2 x16dpw5u\"\n }\n }[!!wavy << 0]}>\n <span {...stylex.props(styles.indeterminateBarInner, styles.secondaryBarInner, inherit && indicatorStyles.inheritActive)} />\n </span>\n </div>;\n if (!wavy) {\n return bars;\n }\n return <div className=\"x6s0dn4 x170jfvy x9f619 x12h1iku x78zum5 xh8yej3 x1n2onr6\">\n {bars}\n <svg aria-hidden=\"true\" className=\"x5yr21d x9f619 x1lliihq x1r7bp8 xkio4u3 xh8yej3 x13vifvy xu96u03 xb3r6kr x47corl x10l6tqk x19axjrm x1c071of\">\n <path d={INDETERMINATE_WAVE.path} fill=\"none\" pathLength={INDETERMINATE_WAVE.extent} strokeLinecap=\"round\" strokeWidth={THICKNESS} {...stylex.props(styles.primaryWave, inherit && indicatorStyles.inheritActive)} />\n <path d={INDETERMINATE_WAVE.path} fill=\"none\" pathLength={INDETERMINATE_WAVE.extent} strokeLinecap=\"round\" strokeWidth={THICKNESS} {...stylex.props(styles.secondaryWave, inherit && indicatorStyles.inheritActive)} />\n </svg>\n </div>;\n }\n const waving = wavy && isWaving(percentage);\n const line = <IndicatorLine activeStyle={waving ? styles.activeUnderWave : wavy ? styles.activeFade : null} percentage={percentage ?? 0} tone={tone}>\n {buffer === undefined ? undefined : <>\n <span {...stylex.props(styles.trackBuffered, styles.trackBufferedAt(buffer), inherit && indicatorStyles.inheritTrack)} />\n <span {...{\n 0: {\n className: \"xs4xyr0 xa4qsjk xwx18z9 x1aquc0h x1esw782 x1d6qlk4 x1w3jsh0 xwj9l49 x5yr21d x9f619 x1iyjqo2 xeuugli\"\n },\n 1: {\n className: \"xs4xyr0 xa4qsjk xwx18z9 x1aquc0h x1esw782 x1w3jsh0 xwj9l49 x5yr21d x9f619 x1iyjqo2 xeuugli x1larodg\"\n }\n }[!!inherit << 0]} />\n </>}\n </IndicatorLine>;\n if (!wavy) {\n return line;\n }\n return <div className=\"x6s0dn4 x170jfvy x9f619 x12h1iku x78zum5 xh8yej3 x1n2onr6\">\n {line}\n <svg aria-hidden=\"true\" className=\"x5yr21d x9f619 x1lliihq x1r7bp8 xkio4u3 xh8yej3 x13vifvy xu96u03 xb3r6kr x47corl x10l6tqk x19axjrm x1c071of\">\n <path d={DETERMINATE_WAVE.path} fill=\"none\" pathLength={DETERMINATE_WAVE.extent} strokeLinecap=\"round\" strokeWidth={THICKNESS} {...stylex.props(styles.waveMotion, styles.waveAt(percentage ?? 0), !waving && styles.waveFlat, inherit && indicatorStyles.inheritActive)} />\n </svg>\n </div>;\n}\n\n// A wave along the line, `wavelength` apart and `WAVE_AMPLITUDE` either side\n// of the middle of its row, from the half stroke a round cap needs at the\n// start to past `WAVE_REACH`. Each half wave is one cubic whose control\n// points sit 4/(3π) of the way in from either end at 4/3 of the amplitude,\n// which crests at the amplitude and leaves the middle at a sine's own slope;\n// `s` mirrors the last control point, so every half wave after the first is\n// the same short command with its sign flipped. `extent` is how far it runs\n// across, which the path is measured in.\nfunction linearWave(wavelength: number) {\n const half = wavelength / 2;\n const inset = round(4 / (3 * Math.PI) * half);\n const lift = round(4 / 3 * WAVE_AMPLITUDE);\n const halves = Math.ceil(WAVE_REACH / half) + 1;\n let path = `M${THICKNESS / 2} ${WAVE_HEIGHT / 2}c${inset} ${-lift} ${round(half - inset)} ${-lift} ${half} 0`;\n for (let index = 1; index < halves; index++) {\n path += `s${round(half - inset)} ${index % 2 === 0 ? -lift : lift} ${half} 0`;\n }\n return {\n extent: halves * half,\n path\n };\n}\n\n/**\n * Progress through a task, as a line or a ring. Its value is React Aria's:\n * pass `value` between `minValue` and `maxValue`, or leave `value` out and\n * set `isIndeterminate` for work whose length is not known. `formatOptions`\n * says how the value reads, in the locale the page is in, and `buffer` marks\n * how far the work is loaded ahead of it.\n *\n * ```tsx\n * <ProgressIndicator label=\"Label\" showValue value={40} />\n * ```\n *\n * The call site's `className` and `style` land on the indicator as a whole,\n * which is the element a layout positions.\n */\nfunction ProgressIndicator({\n buffer,\n diameter,\n label,\n maxValue = 100,\n minValue = 0,\n shape = 'flat',\n showValue = false,\n tone = 'primary',\n variant = 'linear',\n ...props\n}: ProgressIndicatorProps & RefAttributes<HTMLDivElement>) {\n return <ProgressBar maxValue={maxValue} minValue={minValue} {...props} {...mergeStatefulStyles(stylex.props(indicatorStyles.root, variant === 'circular' && styles.rootCircular), props)}>\n {indicatorContent(label, showValue, variant, buffer, minValue, maxValue, diameter ?? (shape === 'wavy' ? WAVY_SIZE_PX : CIRCULAR_SIZE_PX), shape, tone)}\n </ProgressBar>;\n}\n\n// The wavy ring's path: `RING_WAVES` crests round the circle the wave runs\n// round, as 20 points to a wave, starting at three o'clock and running\n// clockwise as the circle's own dashes do.\nfunction ringWave() {\n const points = RING_WAVES * 20;\n const centre = WAVY_SIZE / 2;\n let path = '';\n for (let index = 0; index < points; index++) {\n const angle = index / points * 2 * Math.PI;\n const radius = WAVY_RADIUS + RING_AMPLITUDE * Math.sin(RING_WAVES * angle);\n path += `${index === 0 ? 'M' : 'L'}${round(centre + radius * Math.cos(angle))} ${round(centre + radius * Math.sin(angle))}`;\n }\n return `${path}Z`;\n}\n\n// Three decimal places, which keeps the paths short without moving a point\n// by anything a screen could show.\nfunction round(value: number) {\n return Math.round(value * 1000) / 1000;\n}\nexport type { ProgressIndicatorProps, ProgressIndicatorShape, ProgressIndicatorTone, ProgressIndicatorVariant };\nexport default ProgressIndicator;"],"mappings":";;;;;;;;;AA0FA,MAAMK,gBAAgB;AAKtB,MAAMC,mBAAmB,GAAGD,cAAa;AACzC,MAAME,YAAY;AAElB,MAAME,SAAS;AACf,MAAMC,gBAAgB,IAAIC,KAAKC,KAAKH;AA+BpC,MAAMK,iBAAiB;AACvB,MAAMC,kBAAkB;AACxB,MAAMC,2BAA2B;AACjC,MAAMC,cAAcH;AACpB,MAAMI,aAAa;AAKnB,MAAMC,YAAY;AAClB,MAAMC,aAAa;AAKnB,MAAMC,YAAY;AAClB,MAAMC,eAAe,GAAGD,UAAS;AACjC,MAAME,iBAAiB;AACvB,MAAMC,kBAAkB;AACxB,MAAMC,cAAc;AACpB,MAAMC,qBAAqB,IAAIf,KAAKC,KAAKa;AACzC,MAAME,aAAahB,KAAKE,MAAMa,qBAAqBF,eAAe;AAKlE,MAAMI,mBAAmBC,WAAWd,eAAe;AACnD,MAAMe,qBAAqBD,WAAWb,wBAAwB;AAC9D,MAAMe,YAAYC,SAAS;AAuD3B,MAAMC,QAAQ;CACZC,QAAQ;CACRC,QAAQ;CACR,SAAS;AACX;AACA,MAAMC,SAAS;CACbD,QAAQ;CACR,SAAS;AACX;AACA,MAAME,SAAS;CACbC,QAAQ;CACR,SAAS;AACX;AACA,MAAMC,SAAS;CACbC,YAAY;EACVC,QAAQ;EACRC,OAAO;CACT;CACAC,iBAAiB;EACfC,QAAQ;EACRH,QAAQ;EACRC,OAAO;CACT;CACAG,WAAW;EACTC,QAAQ;EACRJ,OAAO;CACT;CACAK,SAAS;EACPN,QAAQ;EACRC,OAAO;CACT;CACAM,kBAAkB;EAChBC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRP,QAAQ;EACRL,QAAQ;EACRC,OAAO;C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,SAAS1J,YAAY;CAC3B,IAAIwI,OAAO;CACX,KAAK,IAAIa,QAAQ,GAAGA,QAAQI,QAAQJ,SAAS;EAC3C,MAAMM,QAAQN,QAAQI,SAAS,IAAInK,KAAKC;EACxC,MAAMkH,SAASrG,cAAcF,iBAAiBZ,KAAKsK,IAAItJ,aAAaqJ,KAAK;EACzEnB,QAAQ,GAAGa,UAAU,IAAI,MAAM,MAAM7J,MAAMkK,SAASjD,SAASnH,KAAKuK,IAAIF,KAAK,CAAC,EAAC,GAAInK,MAAMkK,SAASjD,SAASnH,KAAKsK,IAAID,KAAK,CAAC;CAC1H;CACA,OAAO,GAAGnB,KAAI;AAChB;AAIA,SAAShJ,MAAMsG,OAAe;CAC5B,OAAOxG,KAAKE,MAAMsG,QAAQ,GAAI,IAAI;AACpC"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","stylex","ProgressBar","indicatorStyles","mergeStatefulStyles","CIRCULAR_SIZE","CIRCULAR_SIZE_PX","THICKNESS","GAP","RADIUS","CIRCUMFERENCE","Math","PI","round","WAVE_AMPLITUDE","WAVE_WAVELENGTH","INDETERMINATE_WAVELENGTH","WAVE_HEIGHT","WAVE_REACH","WAVE_FROM","WAVE_UNTIL","WAVY_SIZE","WAVY_SIZE_PX","RING_AMPLITUDE","RING_WAVELENGTH","WAVY_RADIUS","WAVY_CIRCUMFERENCE","RING_WAVES","DETERMINATE_WAVE","linearWave","INDETERMINATE_WAVE","RING_WAVE","ringWave","_temp","kZKoxP","kzqmXN","_temp2","_temp3","k5rJSQ","styles","activeFade","k1ekBW","$$css","activeUnderWave","kSiTet","arcActive","kjVXCG","arcFade","arcIndeterminate","kkDQuc","k44tkh","ko0y90","kKVMdj","kyAemX","arcMotion","k6CgDc","kIyJzY","kAMwcw","arcTrack","circular","kB7OPa","k1xSpc","k3aq6I","circularIndeterminate","circularSize","size","val","undefined","flatUnderWave","indeterminateBarInner","kWkggS","kaIpWk","kpwlN0","kVAEAm","primaryBarInner","primaryWave","k9U7XP","rootCircular","kXLuUW","secondaryBarInner","secondaryWave","trackAfterPrimary","kbCHJM","trackAfterSecondary","trackBeforePrimary","trackBuffered","kmuXW","trackBufferedAt","share","trackFill","trackMotion","k87sOh","trackPiece","kjBf7l","kInvED","k3XXqK","kMeerF","waveAt","percentage","waveFlat","waveMotion","buffer","className","diameter","label","shape","showValue","tone","variant","arcsFor","circumference","active","room","min","track","max","strokeDasharray","strokeDashoffset","strokeLinecap","capFor","bufferShare","minValue","maxValue","value","range","buffered","remaining","length","CircularTrack","t0","$","isIndeterminate","inherit","wavy","radius","t1","arcs","t2","isWaving","waving","t3","t4","props","t5","inheritTrack","t6","t7","t8","t9","t10","t11","t12","inheritActive","t13","t14","t15","indicatorContent","state","valueText","LinearTrack","fill","Symbol","for","0","1","t16","t17","t18","t19","bars","t20","t21","path","extent","t22","t23","t24","t25","line","wavelength","half","inset","lift","halves","ceil","index","ProgressIndicator","T0","root","points","centre","angle","sin","cos"],"sources":["../../../src/components/progress-indicator/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { ProgressBarRenderProps, ProgressBarProps as RACProgressBarProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { ProgressBar } from 'react-aria-components';\nimport type { IndicatorTone } from '../../indicator/styles';\nimport { IndicatorLabels, IndicatorLine } from '../../indicator';\nimport { indicatorStyles } from '../../indicator/styles';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, motion, radii } from '../../tokens/design.tokens.stylex';\n\n// The progress indicators page's indicator, as a line or a ring, in either\n// of the page's two shapes, flat and wavy. Both carry the three parts the\n// page's anatomy names — the active indicator in primary, the track in\n// secondary container, and, on the line, the stop indicator in primary at\n// the end — at the page's 4dp thickness, with the 4dp gap its measurements\n// give either side of the track. The flat ring is the page's default 40dp of\n// the four sizes it draws, and the wavy ring the 48dp its wave needs room\n// for.\n//\n// The determinate line is a row of those parts: the active indicator takes\n// the value's share of what the stop and the gap before it leave, and the\n// track takes the rest — see `activeAt` in src/indicator/styles.ts. The\n// determinate ring is two arcs of one circle, cut by the dash pattern: the\n// active arc runs from the top for its share of the circumference, and the\n// track picks up past it and stops short of coming back round, leaving the\n// line's 4dp between the arcs' round ends — see `arcsFor`.\n//\n// The indeterminate line keeps the same 4dp, as Compose's does: its track is\n// the pieces the two bars leave before, between and after them, each the gap\n// clear of the bar beside it and following it as it moves — see\n// `primaryTravel` and `trackAfterPrimary`. The wavy line draws the same\n// pieces under its wave, whose dashes are drawn where the flat bars are — see\n// `primaryWaveOffset`.\n//\n// The animations are Material's own rather than something assembled from\n// the motion tokens: an indeterminate indicator is a piece of choreography,\n// and one written from scratch reads as a different component beside a\n// Material app. Material Web and Angular Material both descend from the\n// same implementation and agree on every number, so the numbers here are\n// theirs — the line's two bars and their four keyframe sets, the buffer's\n// scrolling dots, the ring's 1333ms arc, its four-arc cycle and its 1568ms\n// rotation, and the 250ms and 500ms a determinate value moves over.\n//\n// Two things are decided differently, both after reading the two of them.\n//\n// The ring is one dashed arc rather than two halves. Material Web draws it\n// as a pair of bordered half-circles, Angular as a pair of clipped SVG\n// circles with a patch over the seam between them; both constructions exist\n// to work around that split, and a single arc whose dash pattern is\n// animated needs neither and shares its geometry with the determinate ring.\n// The three effects it composes are still theirs: the arc grows and shrinks\n// over the arc's duration, its start travels the circle over four of those,\n// and the whole thing turns over the rotation's.\n//\n// Under `prefers-reduced-motion` the motion slows rather than stopping,\n// which is Angular's answer and the better one: an indicator that freezes\n// stops saying the work is going on, and a frozen arc caught at its short\n// end reads as broken. The multipliers are Angular's — two for the line,\n// and a quarter more for the ring. The buffer's dots are the exception and\n// stop: they are drawn on a determinate line, whose value is what says the\n// work is going on, so their movement tells a reader nothing and is only\n// movement.\n//\n// The wavy shape draws the active indicator as a wave and leaves the track\n// and the stop flat, as the page does. Its numbers are Material's own, from\n// its Compose and Android components: on the line a 3dp amplitude, a 40dp\n// wavelength and a 10dp row, with a 20dp wavelength while indeterminate; on\n// the ring a 1.6dp amplitude and a 15dp wavelength, rounded to a whole\n// number of waves so the wave closes on itself. A determinate wave lies flat\n// up to a tenth of the way and from 95% on, which is Material's rule too: a\n// wave too short to hold a crest reads as a wobble, and one about to finish\n// settles into the line it ends as.\n//\n// The wave is drawn over the flat drawing rather than in place of it, and\n// the two are crossfaded as the value crosses those bounds. The flat drawing\n// is also what a reader who has asked for reduced motion sees, since a wave\n// is motion even standing still, and what a line wider than `WAVE_REACH` is\n// drawn as. The line's wave is a path of that fixed length, cut to the value\n// by a dash written against the row's own width in container query units,\n// `100cqi`, so nothing has to measure the row before the wave can be drawn.\n//\n// React Aria's `ProgressBar` is the root: it carries the role, the value and\n// its text, and reports the percentage and whether it is indeterminate as\n// render state, which is what everything here is drawn from.\n\n// The circle the arcs are cut from. The radius is the diameter less the\n// stroke, halved, so the stroke sits inside the 40dp box rather than\n// straddling its edge.\n//\n// The thickness and the gap are the same 4dp the shared line is drawn at,\n// written again rather than imported from `src/indicator/styles`: StyleX\n// evaluates the values inside `stylex.create` and `stylex.keyframes` as it\n// compiles, and will not follow an import to a module that is not a theme\n// to reach one — an imported constant fails the transform outright.\nconst CIRCULAR_SIZE = 40;\n// The same value as a length, hoisted rather than built at the parameter.\n// The compiler has no safe reordering for a template literal, so one written\n// as a default parameter skips the whole component around it — which the\n// panic threshold this lands beside turns into a build failure.\nconst CIRCULAR_SIZE_PX = `${CIRCULAR_SIZE}px`;\nconst THICKNESS = 4;\nconst GAP = 4;\nconst RADIUS = (CIRCULAR_SIZE - THICKNESS) / 2;\nconst CIRCUMFERENCE = 2 * Math.PI * RADIUS;\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// The ring's timings. The arc is 1333ms; a full cycle is four of them; and\n// the rotation is the arc scaled by 360/306, which is the arc's start\n// rotation plus the circle less the arc's size.\nconst ARC_MS = 1333;\nconst CYCLE_MS = ARC_MS * 4;\nconst ROTATE_MS = Math.round(ARC_MS * 360 / 306);\nconst RING_EASING = 'cubic-bezier(0.4, 0, 0.2, 1)';\n\n// The line's own: 2s for an indeterminate pass, and the 250ms the buffer's\n// dots take to scroll one pitch. What a determinate value moves over is the\n// shared line's, since a meter moves the same way.\nconst INDETERMINATE_MS = 2000;\nconst BUFFER_MS = 250;\n\n// The middles of the indeterminate line's two bars before they move, as\n// shares of the row: each bar is a row wide, so its middle is half a row past\n// where it starts — see `primaryBar` and `secondaryBar`. And how far a piece\n// of the track reaches from the bar end it follows, which is the two rows the\n// furthest a bar travels, so a piece always reaches the row's far end.\nconst PRIMARY_MIDDLE = -95.167;\nconst SECONDARY_MIDDLE = -4.8889;\nconst TRACK_REACH = 200;\n\n// What `prefers-reduced-motion` slows each indeterminate shape by.\nconst LINE_SLOWDOWN = 2;\nconst RING_SLOWDOWN = 1.25;\n\n// The wavy line: the wave's amplitude either side of the middle, its two\n// wavelengths, and the row it is drawn in, which is the amplitude either side\n// plus the stroke. `WAVE_REACH` is how far the wave runs, and a row wider\n// than that draws flat. The easing is the shared line's, written again for\n// the reason the thickness is.\nconst WAVE_AMPLITUDE = 3;\nconst WAVE_WAVELENGTH = 40;\nconst INDETERMINATE_WAVELENGTH = 20;\nconst WAVE_HEIGHT = WAVE_AMPLITUDE * 2 + THICKNESS;\nconst WAVE_REACH = 2048;\nconst DETERMINATE_EASING = 'cubic-bezier(0.4, 0, 0.6, 1)';\n\n// Where a determinate wave stands up and where it lies down again, as\n// percentages of the way.\nconst WAVE_FROM = 10;\nconst WAVE_UNTIL = 95;\n\n// The wavy ring: the 48dp box, the amplitude, and the circle the wave runs\n// round, pulled in by the amplitude so its crests stay inside the box. The\n// wave count is the wavelength's share of that circle, rounded — nine.\nconst WAVY_SIZE = 48;\nconst WAVY_SIZE_PX = `${WAVY_SIZE}px`;\nconst RING_AMPLITUDE = 1.6;\nconst RING_WAVELENGTH = 15;\nconst WAVY_RADIUS = (WAVY_SIZE - THICKNESS) / 2 - RING_AMPLITUDE;\nconst WAVY_CIRCUMFERENCE = 2 * Math.PI * WAVY_RADIUS;\nconst RING_WAVES = Math.round(WAVY_CIRCUMFERENCE / RING_WAVELENGTH);\nconst REDUCED_MOTION = '@media (prefers-reduced-motion: reduce)';\nconst TOO_WIDE = `@container (inline-size > ${WAVE_REACH}px)`;\n\n// The paths the waves are drawn along, built once.\nconst DETERMINATE_WAVE = linearWave(WAVE_WAVELENGTH);\nconst INDETERMINATE_WAVE = linearWave(INDETERMINATE_WAVELENGTH);\nconst RING_WAVE = ringWave();\n\n// The two bars of the indeterminate line, translated and scaled at once.\nconst primaryTranslate = \"x1pch1fy-B\";\nconst primaryScale = \"xxyp5q1-B\";\nconst secondaryTranslate = \"xzo9tdn-B\";\nconst secondaryScale = \"x1w7bnrt-B\";\n\n// The indeterminate track's pieces, which follow the bars rather than being\n// drawn by them. Each bar is two moves at once — its translation, and its\n// scale about its own middle — and a piece takes the two as two moves of its\n// own: the translation as `translate`, and the end of the scaled bar it sits\n// beside as a `transform`, half the scale's share of the row either side of\n// the middle. The two properties compose by adding, and each runs on its\n// bar's own keyframes, at the same times and on the same curves, so a piece\n// is exactly where its bar's end is at every moment. They are written in\n// `cqi`, shares of the row, since a piece is wider than the row and a\n// percentage would be a share of the piece.\n//\n// `Return` and the shift the other way are what a clip uses to hand its\n// contents back to the row's own frame — see `trackBeforeSecondary`.\nconst primaryTravel = \"x153zi7v-B\";\nconst primaryReturn = \"x123ockg-B\";\n\n// Where the primary bar starts and ends either side of its middle: half its\n// scale, 0.08, 0.661479 and back, as a share of the row.\nconst primaryStartShift = \"x751jad-B\";\nconst primaryEndShift = \"x1obcmq9-B\";\nconst secondaryTravel = \"x10ugwgx-B\";\nconst secondaryReturn = \"x19cr58w-B\";\n\n// Half the secondary bar's scale: 0.08, 0.457104, 0.72796 and back.\nconst secondaryStartShift = \"x1gp01x6-B\";\nconst secondaryEndShift = \"x16q5klx-B\";\n\n// The buffer's dots scroll by one pitch of the pattern and start again.\nconst buffering = \"x19sykc1-B\";\n\n// The arc's own length, written against a path the circle normalises to 100\n// with `pathLength`, so these are percentages of the circumference rather\n// than lengths StyleX would have to work out.\n//\n// Material contracts to 10 degrees of turn and grows to 270. The 270 is 75\n// of the circumference and is written as it is; the 10 is not, because the\n// page's rounded ends change what a short dash draws. A round cap adds half\n// the stroke at each end, so a 10-degree dash on the 40dp ring is 3px of\n// path inside a 7px capsule of 4px stroke — a dot rather than the sliver\n// Material's square-cut ends give at the same angle. 8 is the shortest the\n// cap still draws as an arc, and it is the floor for that reason rather\n// than because the page names it.\n//\n// Each pattern's dash and gap sum to the circle's 100, at every step of the\n// interpolation between them, so the pattern repeats exactly once round\n// the ring. A dash does not wrap past the start of a closed path, so with a\n// longer period — the dash and a gap of 100 — an arc that had travelled late\n// round the ring was cut off at the path's end, down to a dot, and grew back\n// from somewhere else. And the 100 is what makes `travelArc`'s last offset,\n// -300, the same position as its first, so the loop has no seam.\nconst expandArc = \"x17j028-B\";\n\n// Where the arc starts. Material turns it in eight increments of 135 degrees\n// rather than at a constant rate, each eased with the same curve the arc's\n// growth uses, so it settles at each position and springs to the next; three\n// full turns over the cycle, under the rotation's own single turn. The\n// numbers here are those angles along a path of 100: 135 degrees is 37.5 of\n// it, and 1080 degrees is 300.\nconst travelArc = \"x26nhu8-B\";\nconst spin = \"x1fy8ia8-B\";\n\n// The indeterminate line's two bars, as dashes along the wave, drawn where\n// the flat bars are. A flat bar is its translation and its scale about its\n// own middle, so it starts half its scale's share of the row before that\n// middle; its dash starts there too, which takes the dash's offset from both\n// moves at once. The offset is the two added together — the middle on the\n// translation's keyframes, and the half scale before it on the scale's,\n// composed onto it with `add` — and the length is the scale, on its\n// keyframes too; every one at the bar keyframes' times and on their curves,\n// turned from shares of the row into lengths of it. The middles start where\n// `PRIMARY_MIDDLE` and `SECONDARY_MIDDLE` put them, and travel the 200.611%\n// and 160.278% of the row the bars do.\n//\n// The path starts the half stroke a round cap reaches into the row, so a\n// dash's cap begins where its bar does, and the length is the bar's less\n// that cap at each end, which ends the second cap where the bar ends. The\n// gap after the dash is four rows long, so the dash after it never reaches\n// the row.\nconst primaryWaveOffset = \"xs5hcgj-B\";\n\n// Half the primary bar's scale, which is how far before its middle the bar\n// starts — the same numbers as `primaryEndShift`.\nconst primaryWaveStart = \"x174o559-B\";\nconst primaryWaveLength = \"xsfwumn-B\";\nconst secondaryWaveOffset = \"xrx8cko-B\";\n\n// Half the secondary bar's scale — the same numbers as `secondaryEndShift`.\nconst secondaryWaveStart = \"x9oy8xm-B\";\nconst secondaryWaveLength = \"x1vm3y27-B\";\nconst _temp = {\n kZKoxP: \"xyq6l7l\",\n kzqmXN: \"x1uyokj7\",\n \"$$css\": true\n};\nconst _temp2 = {\n kzqmXN: \"x1uyokj7\",\n \"$$css\": true\n};\nconst _temp3 = {\n k5rJSQ: \"xqmdeo6\",\n \"$$css\": true\n};\nconst styles = {\n activeFade: {\n k1ekBW: \"x7x1mir\",\n $$css: true\n },\n activeUnderWave: {\n kSiTet: \"xg01cxk x19xn7b2 x16dpw5u\",\n k1ekBW: \"x7x1mir\",\n $$css: true\n },\n arcActive: {\n kjVXCG: \"x1i9vjva xbabvq0\",\n $$css: true\n },\n arcFade: {\n k1ekBW: \"x1t9qjwo\",\n $$css: true\n },\n arcIndeterminate: {\n kkDQuc: \"x12dwrod\",\n k44tkh: \"xxx5gdc\",\n ko0y90: \"x77zgwx\",\n kKVMdj: \"xz09zy6\",\n kyAemX: \"x1582zw4\",\n kjVXCG: \"x1i9vjva xbabvq0\",\n k1ekBW: \"x13b0p5u\",\n $$css: true\n },\n arcMotion: {\n k6CgDc: \"x12w9bfk\",\n kIyJzY: \"xd6oih7\",\n k1ekBW: \"xg0bdzq\",\n kAMwcw: \"x4ognrn\",\n $$css: true\n },\n arcTrack: {\n kjVXCG: \"xynoiew x8jos32\",\n $$css: true\n },\n circular: {\n kB7OPa: \"x9f619\",\n k1xSpc: \"x1lliihq\",\n k3aq6I: \"x9tu13d\",\n $$css: true\n },\n circularIndeterminate: {\n kkDQuc: \"x7hzzi\",\n k44tkh: \"x11c9iw4\",\n ko0y90: \"xa4qsjk\",\n kKVMdj: \"xpedhrg\",\n kyAemX: \"x1esw782\",\n k3aq6I: \"x1c071of\",\n $$css: true\n },\n circularSize: (size: string) => [_temp, {\n \"--x-blockSize\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(size),\n \"--x-inlineSize\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(size)\n }],\n flatUnderWave: {\n kSiTet: \"xg01cxk x16dpw5u\",\n $$css: true\n },\n indeterminateBarInner: {\n kWkggS: \"xnety89 x1jzqe4\",\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n kpwlN0: \"x10a8y8t\",\n kVAEAm: \"x10l6tqk\",\n $$css: true\n },\n primaryBarInner: {\n kkDQuc: \"xy02sl2\",\n k44tkh: \"x1c74tu6\",\n ko0y90: \"xa4qsjk\",\n kKVMdj: \"xkj56kq\",\n kyAemX: \"x1esw782\",\n $$css: true\n },\n primaryWave: {\n k9U7XP: \"xtenzir\",\n k44tkh: \"x1x5wwbr\",\n ko0y90: \"x1mpfy0f\",\n kKVMdj: \"x1mdhd2x\",\n kyAemX: \"x45ndd1\",\n kjVXCG: \"x1i9vjva xbabvq0\",\n $$css: true\n },\n ringWave: {\n k1xSpc: \"xkio4u3\",\n $$css: true\n },\n rootCircular: {\n k1xSpc: \"x3nfvp2\",\n kzqmXN: \"x14atkfc\",\n kXLuUW: \"xxymvpz\",\n $$css: true\n },\n secondaryBarInner: {\n kkDQuc: \"xy02sl2\",\n k44tkh: \"x1c74tu6\",\n ko0y90: \"xa4qsjk\",\n kKVMdj: \"xnb0dd2\",\n kyAemX: \"x1esw782\",\n $$css: true\n },\n secondaryWave: {\n k9U7XP: \"xtenzir\",\n k44tkh: \"x1x5wwbr\",\n ko0y90: \"x1mpfy0f\",\n kKVMdj: \"x1fcx66\",\n kyAemX: \"x45ndd1\",\n kjVXCG: \"x1i9vjva xbabvq0\",\n $$css: true\n },\n trackAfterPrimary: {\n kKVMdj: \"x1qpgtt9\",\n kbCHJM: \"x1k6ykhd\",\n $$css: true\n },\n trackAfterSecondary: {\n kKVMdj: \"x3tuckc\",\n kbCHJM: \"x16jdi0i\",\n $$css: true\n },\n trackBeforePrimary: {\n kKVMdj: \"x14yrndi\",\n kbCHJM: \"xlaxkv3\",\n $$css: true\n },\n trackBuffered: {\n kWkggS: \"x15dekr4\",\n kZKoxP: \"x5yr21d\",\n kB7OPa: \"x9f619\",\n kmuXW: \"x2lah0s\",\n $$css: true\n },\n trackBufferedAt: (share: number) => [_temp2, {\n \"--x-inlineSize\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(`${share}%`)\n }],\n trackFill: {\n kWkggS: \"x15dekr4\",\n $$css: true\n },\n trackMotion: {\n k44tkh: \"xy7unhy xjnt9mn\",\n ko0y90: \"x77zgwx\",\n kyAemX: \"xlges3w\",\n kZKoxP: \"x5yr21d\",\n kB7OPa: \"x9f619\",\n k87sOh: \"x13vifvy\",\n kVAEAm: \"x10l6tqk\",\n $$css: true\n },\n trackPiece: {\n kaIpWk: \"x1dkaolv\",\n kzqmXN: \"x116zw76\",\n kjBf7l: \"x3teovq\",\n kInvED: \"xvr1dqx\",\n k3XXqK: \"x815t2r\",\n kMeerF: \"xcthrzx\",\n $$css: true\n },\n waveAt: (percentage: number) => [_temp3, {\n \"--x-strokeDasharray\": `max(0px, (100cqi - ${GAP + THICKNESS}px) * ${percentage / 100} - ${THICKNESS}px) ${WAVE_REACH * 2}px` != null ? `max(0px, (100cqi - ${GAP + THICKNESS}px) * ${percentage / 100} - ${THICKNESS}px) ${WAVE_REACH * 2}px` : undefined\n }],\n waveFlat: {\n kSiTet: \"xg01cxk\",\n $$css: true\n },\n waveMotion: {\n k6CgDc: \"x12w9bfk\",\n kjVXCG: \"x1i9vjva xbabvq0\",\n kIyJzY: \"xioksi3\",\n k1ekBW: \"xvfbvx2\",\n kAMwcw: \"x16pyfke\",\n $$css: true\n }\n};\ntype ProgressIndicatorProps = {\n /**\n * How far the work is loaded ahead of the value — a video's buffered\n * seconds, a queue's fetched pages. Read on the same scale as `value`: the\n * track is solid up to it and dotted beyond. Ignored while the indicator\n * is indeterminate, and by the ring, which draws no buffer; left out for\n * work with nothing to buffer.\n */\n buffer?: number;\n /** A function may compute the class from the indicator's render state. */\n className?: RACProgressBarProps['className'];\n /**\n * How wide the ring is drawn, as a CSS length: 40px unless given, or 48px\n * for the wavy ring. Everything inside scales with it, so `1em` gives a\n * ring the size of the type around it. Ignored by the line, which fills\n * the width it is given.\n *\n * A length rather than a step of the size scale: a ring sized to the type\n * around it is what the prop is for, and no fixed scale gives that.\n * @default '40px'\n */\n diameter?: string;\n /**\n * What the work is, shown above the indicator. A screen reader reads it as\n * the indicator's name; an indicator whose surroundings name it takes\n * `aria-label` instead and leaves this out.\n */\n label?: ReactNode;\n /**\n * The page's two shapes. `wavy` draws the active indicator as a wave,\n * which lies flat near either end of a determinate value, and leaves the\n * track and the stop flat; the wavy ring is 48dp across rather than 40.\n * Under `prefers-reduced-motion` a wavy indicator is drawn flat.\n * @default 'flat'\n */\n shape?: ProgressIndicatorShape;\n /**\n * Whether the value is shown at the end of the label's row. Ignored while\n * the indicator is indeterminate, which has no value to show. On a ring\n * the row sits above it, and the indicator is as wide as the wider of the\n * two.\n * @default false\n */\n showValue?: boolean;\n /** A function may compute the style from the indicator's render state. */\n style?: RACProgressBarProps['style'];\n /**\n * Which colours it is drawn in. `primary` is the page's own pair — the\n * active indicator in primary over a secondary container track — and\n * `inherit` takes the colour around it, for an indicator inside something\n * that already has one, such as a button, where primary would be the fill.\n * @default 'primary'\n */\n tone?: ProgressIndicatorTone;\n /**\n * The line the page draws, or the ring: `linear` fills the width it is\n * given, `circular` is 40dp across, or 48dp for the wavy ring.\n * @default 'linear'\n */\n variant?: ProgressIndicatorVariant;\n} & Omit<RACProgressBarProps, 'children' | 'className' | 'style'>;\ntype ProgressIndicatorShape = 'flat' | 'wavy';\n\n// The two of the shared line's four tones an indicator draws. The other two\n// say how a measurement reads, which is a meter's business rather than a\n// running task's.\ntype ProgressIndicatorTone = Extract<IndicatorTone, 'inherit' | 'primary'>;\ntype ProgressIndicatorVariant = 'circular' | 'linear';\n\n// The dashes that cut the two arcs out of one circle. The active arc runs\n// from the top for its share of the circumference; the track picks up after\n// it and stops before it comes back round.\n//\n// Every arc ends in a round cap, which reaches half the stroke past the end\n// of its dash, so two dashes 4dp apart touch. The room between them is the\n// page's gap and a cap either side of it, which is how the gap is measured:\n// between what is drawn, as the line's is between its parts. Compose's ring\n// adds the stroke to its gap for a round cap in the same way.\n//\n// That room is never longer than the active arc, Compose's rule too, so an\n// empty ring is the whole track rather than a track with a dot wedged\n// between its ends. A dash of no length draws its caps all the same, as a\n// dot, so an arc with nothing to draw takes flat caps and draws nothing.\nfunction arcsFor(percentage: number | undefined, circumference: number) {\n const active = (percentage ?? 0) / 100 * circumference;\n const room = Math.min(active, GAP + THICKNESS);\n const track = Math.max(0, circumference - active - 2 * room);\n return {\n active: {\n strokeDasharray: `${active} ${circumference}`,\n strokeDashoffset: 0,\n strokeLinecap: capFor(active)\n },\n track: {\n strokeDasharray: `${track} ${circumference}`,\n strokeDashoffset: -(active + room),\n strokeLinecap: capFor(track)\n }\n };\n}\n\n// How much of the track the buffer covers. The buffer is read on the value's\n// scale, and the track holds what the value has not taken, so the solid part\n// is the buffer's share of that remainder.\nfunction bufferShare(buffer: number | undefined, percentage: number | undefined, minValue: number, maxValue: number) {\n if (buffer === undefined) {\n return undefined;\n }\n const value = percentage ?? 0;\n const range = maxValue - minValue;\n const buffered = range === 0 ? 0 : (buffer - minValue) / range * 100;\n const remaining = 100 - value;\n if (remaining <= 0) {\n return 0;\n }\n return Math.min(100, Math.max(0, (buffered - value) / remaining * 100));\n}\n\n// An arc's caps: round, as the page draws every end, unless the arc has no\n// length to draw — see `arcsFor`.\nfunction capFor(length: number) {\n return length > 0 ? 'round' as const : 'butt' as const;\n}\nfunction CircularTrack({\n diameter,\n isIndeterminate,\n percentage,\n shape,\n tone\n}: {\n diameter: string;\n isIndeterminate: boolean;\n percentage: number | undefined;\n shape: ProgressIndicatorShape;\n tone: ProgressIndicatorTone;\n}) {\n const inherit = tone === 'inherit';\n const wavy = shape === 'wavy';\n const size = wavy ? WAVY_SIZE : CIRCULAR_SIZE;\n const radius = wavy ? WAVY_RADIUS : RADIUS;\n const circumference = wavy ? WAVY_CIRCUMFERENCE : CIRCUMFERENCE;\n const arcs = arcsFor(percentage, circumference);\n const waving = wavy && (isIndeterminate || isWaving(percentage));\n return <svg aria-hidden=\"true\" viewBox={`0 0 ${size} ${size}`} {...stylex.props(styles.circular, styles.circularSize(diameter), isIndeterminate && styles.circularIndeterminate)}>\n {isIndeterminate ? null : <circle cx={size / 2} cy={size / 2} fill=\"none\" r={radius} strokeDasharray={arcs.track.strokeDasharray} strokeDashoffset={arcs.track.strokeDashoffset} strokeLinecap={arcs.track.strokeLinecap} strokeWidth={THICKNESS} {...stylex.props(styles.arcMotion, styles.arcTrack, inherit && indicatorStyles.inheritTrack)} />}\n <circle cx={size / 2} cy={size / 2} fill=\"none\" pathLength={isIndeterminate ? 100 : undefined} r={radius} strokeDasharray={isIndeterminate ? undefined : arcs.active.strokeDasharray} strokeDashoffset={isIndeterminate ? undefined : arcs.active.strokeDashoffset} strokeLinecap={isIndeterminate ? 'round' : arcs.active.strokeLinecap} strokeWidth={THICKNESS} {...stylex.props(isIndeterminate ? styles.arcIndeterminate : styles.arcMotion, isIndeterminate ? null : styles.arcActive, inherit && indicatorStyles.inheritActive, wavy && !isIndeterminate && styles.arcFade, waving && styles.flatUnderWave)} />\n {wavy ?\n // The wave, over the flat arc and cut by the same dashes. Measured\n // as the circle it runs round, so a length along it is a share of\n // the way round.\n <path d={RING_WAVE} fill=\"none\" pathLength={isIndeterminate ? 100 : circumference} strokeDasharray={isIndeterminate ? undefined : arcs.active.strokeDasharray} strokeLinecap={isIndeterminate ? 'round' : arcs.active.strokeLinecap} strokeWidth={THICKNESS} {...stylex.props(isIndeterminate ? styles.arcIndeterminate : styles.arcMotion, isIndeterminate ? null : [styles.arcActive, styles.arcFade], inherit && indicatorStyles.inheritActive, styles.ringWave, !waving && styles.waveFlat)} /> : null}\n </svg>;\n}\n\n// What the indicator draws, from React Aria's render state. Built by a call\n// rather than written inline at the prop, which is what react-perf's\n// no-new-function-as-prop is after; the React Compiler memoises the result\n// on its inputs.\nfunction indicatorContent(label: ReactNode, showValue: boolean, variant: ProgressIndicatorVariant, buffer: number | undefined, minValue: number, maxValue: number, diameter: string, shape: ProgressIndicatorShape, tone: ProgressIndicatorTone) {\n return (state: ProgressBarRenderProps) => <>\n <IndicatorLabels label={label} value={showValue && !state.isIndeterminate ? state.valueText : undefined} />\n {variant === 'circular' ? <CircularTrack diameter={diameter} isIndeterminate={state.isIndeterminate} percentage={state.percentage} shape={shape} tone={tone} /> : <LinearTrack buffer={bufferShare(buffer, state.percentage, minValue, maxValue)} isIndeterminate={state.isIndeterminate} percentage={state.percentage} shape={shape} tone={tone} />}\n </>;\n}\n\n// Whether a determinate wave stands at this value — see `WAVE_FROM`.\nfunction isWaving(percentage: number | undefined) {\n const value = percentage ?? 0;\n return value > WAVE_FROM && value < WAVE_UNTIL;\n}\nfunction LinearTrack({\n buffer,\n isIndeterminate,\n percentage,\n shape,\n tone\n}: {\n buffer: number | undefined;\n isIndeterminate: boolean;\n percentage: number | undefined;\n shape: ProgressIndicatorShape;\n tone: ProgressIndicatorTone;\n}) {\n const inherit = tone === 'inherit';\n const wavy = shape === 'wavy';\n if (isIndeterminate) {\n // The track's pieces are the same under the wave as beside the flat\n // bars, since the wave's dashes are drawn where those bars are.\n const fill = [styles.trackFill, inherit && indicatorStyles.inheritTrack];\n const bars = <div className=\"xqu0tyb x1dkaolv x9f619 x12h1iku xh8yej3 xb3r6kr x1n2onr6 x19axjrm x1c071of\">\n <span className=\"x9f619 x10a8y8t x10l6tqk\">\n <span className=\"xy7unhy xjnt9mn x77zgwx xlges3w x5yr21d x9f619 x13vifvy x10l6tqk x1dkaolv x116zw76 xb3r6kr x1hvq1xl x31prf8\">\n <span className=\"xy7unhy xjnt9mn x77zgwx xlges3w x5yr21d x9f619 x13vifvy x10l6tqk xzfn7dr x11dyq8p x1wjniki\">\n <span {...stylex.props(styles.trackMotion, styles.trackPiece, fill, styles.trackBeforePrimary)} />\n <span {...stylex.props(styles.trackMotion, styles.trackPiece, fill, styles.trackAfterPrimary)} />\n </span>\n </span>\n <span className=\"xy7unhy xjnt9mn x77zgwx xlges3w x5yr21d x9f619 x13vifvy x10l6tqk x1dkaolv x116zw76 xb3r6kr x1qpgtt9 x1k6ykhd x1s85apg x1ok2lsy\">\n <span className=\"xy7unhy xjnt9mn x77zgwx xlges3w x5yr21d x9f619 x13vifvy x10l6tqk xzfn7dr x1srsktc x10wpliu\">\n <span className=\"xy7unhy xjnt9mn x77zgwx xlges3w x5yr21d x9f619 x13vifvy x10l6tqk x1dkaolv x116zw76 x3teovq xvr1dqx x815t2r xcthrzx x1hvq1xl x31prf8\" />\n </span>\n </span>\n <span {...stylex.props(styles.trackMotion, styles.trackPiece, fill, styles.trackAfterSecondary)} />\n </span>\n <span {...{\n 0: {\n className: \"xqu0tyb x9f619 xh8yej3 x13vifvy x10l6tqk x1nf803f xy02sl2 x1c74tu6 xa4qsjk x4hg7df x1esw782 xoia761\"\n },\n 1: {\n className: \"xqu0tyb x9f619 xh8yej3 x13vifvy x10l6tqk x1nf803f xy02sl2 x1c74tu6 xa4qsjk x4hg7df x1esw782 xoia761 xg01cxk x19xn7b2 x16dpw5u\"\n }\n }[!!wavy << 0]}>\n <span {...stylex.props(styles.indeterminateBarInner, styles.primaryBarInner, inherit && indicatorStyles.inheritActive)} />\n </span>\n <span {...{\n 0: {\n className: \"xqu0tyb x9f619 xh8yej3 x13vifvy x10l6tqk x1nf803f xy02sl2 x1c74tu6 xa4qsjk x1pdi2bj x1esw782 xnsac6p\"\n },\n 1: {\n className: \"xqu0tyb x9f619 xh8yej3 x13vifvy x10l6tqk x1nf803f xy02sl2 x1c74tu6 xa4qsjk x1pdi2bj x1esw782 xnsac6p xg01cxk x19xn7b2 x16dpw5u\"\n }\n }[!!wavy << 0]}>\n <span {...stylex.props(styles.indeterminateBarInner, styles.secondaryBarInner, inherit && indicatorStyles.inheritActive)} />\n </span>\n </div>;\n if (!wavy) {\n return bars;\n }\n return <div className=\"x6s0dn4 x170jfvy x9f619 x12h1iku x78zum5 xh8yej3 x1n2onr6\">\n {bars}\n <svg aria-hidden=\"true\" className=\"x5yr21d x9f619 x1lliihq x1r7bp8 xkio4u3 xh8yej3 x13vifvy xu96u03 xb3r6kr x47corl x10l6tqk x19axjrm x1c071of\">\n <path d={INDETERMINATE_WAVE.path} fill=\"none\" pathLength={INDETERMINATE_WAVE.extent} strokeLinecap=\"round\" strokeWidth={THICKNESS} {...stylex.props(styles.primaryWave, inherit && indicatorStyles.inheritActive)} />\n <path d={INDETERMINATE_WAVE.path} fill=\"none\" pathLength={INDETERMINATE_WAVE.extent} strokeLinecap=\"round\" strokeWidth={THICKNESS} {...stylex.props(styles.secondaryWave, inherit && indicatorStyles.inheritActive)} />\n </svg>\n </div>;\n }\n const waving = wavy && isWaving(percentage);\n const line = <IndicatorLine activeStyle={waving ? styles.activeUnderWave : wavy ? styles.activeFade : null} percentage={percentage ?? 0} tone={tone}>\n {buffer === undefined ? undefined : <>\n <span {...stylex.props(styles.trackBuffered, styles.trackBufferedAt(buffer), inherit && indicatorStyles.inheritTrack)} />\n <span {...{\n 0: {\n className: \"xs4xyr0 xa4qsjk xwx18z9 x1aquc0h x1esw782 x1d6qlk4 x1w3jsh0 xwj9l49 x5yr21d x9f619 x1iyjqo2 xeuugli\"\n },\n 1: {\n className: \"xs4xyr0 xa4qsjk xwx18z9 x1aquc0h x1esw782 x1w3jsh0 xwj9l49 x5yr21d x9f619 x1iyjqo2 xeuugli x1larodg\"\n }\n }[!!inherit << 0]} />\n </>}\n </IndicatorLine>;\n if (!wavy) {\n return line;\n }\n return <div className=\"x6s0dn4 x170jfvy x9f619 x12h1iku x78zum5 xh8yej3 x1n2onr6\">\n {line}\n <svg aria-hidden=\"true\" className=\"x5yr21d x9f619 x1lliihq x1r7bp8 xkio4u3 xh8yej3 x13vifvy xu96u03 xb3r6kr x47corl x10l6tqk x19axjrm x1c071of\">\n <path d={DETERMINATE_WAVE.path} fill=\"none\" pathLength={DETERMINATE_WAVE.extent} strokeLinecap=\"round\" strokeWidth={THICKNESS} {...stylex.props(styles.waveMotion, styles.waveAt(percentage ?? 0), !waving && styles.waveFlat, inherit && indicatorStyles.inheritActive)} />\n </svg>\n </div>;\n}\n\n// A wave along the line, `wavelength` apart and `WAVE_AMPLITUDE` either side\n// of the middle of its row, from the half stroke a round cap needs at the\n// start to past `WAVE_REACH`. Each half wave is one cubic whose control\n// points sit 4/(3π) of the way in from either end at 4/3 of the amplitude,\n// which crests at the amplitude and leaves the middle at a sine's own slope;\n// `s` mirrors the last control point, so every half wave after the first is\n// the same short command with its sign flipped. `extent` is how far it runs\n// across, which the path is measured in.\nfunction linearWave(wavelength: number) {\n const half = wavelength / 2;\n const inset = round(4 / (3 * Math.PI) * half);\n const lift = round(4 / 3 * WAVE_AMPLITUDE);\n const halves = Math.ceil(WAVE_REACH / half) + 1;\n let path = `M${THICKNESS / 2} ${WAVE_HEIGHT / 2}c${inset} ${-lift} ${round(half - inset)} ${-lift} ${half} 0`;\n for (let index = 1; index < halves; index++) {\n path += `s${round(half - inset)} ${index % 2 === 0 ? -lift : lift} ${half} 0`;\n }\n return {\n extent: halves * half,\n path\n };\n}\n\n/**\n * Progress through a task, as a line or a ring. Its value is React Aria's:\n * pass `value` between `minValue` and `maxValue`, or leave `value` out and\n * set `isIndeterminate` for work whose length is not known. `formatOptions`\n * says how the value reads, in the locale the page is in, and `buffer` marks\n * how far the work is loaded ahead of it.\n *\n * ```tsx\n * <ProgressIndicator label=\"Label\" showValue value={40} />\n * ```\n *\n * The call site's `className` and `style` land on the indicator as a whole,\n * which is the element a layout positions.\n */\nfunction ProgressIndicator({\n buffer,\n diameter,\n label,\n maxValue = 100,\n minValue = 0,\n shape = 'flat',\n showValue = false,\n tone = 'primary',\n variant = 'linear',\n ...props\n}: ProgressIndicatorProps & RefAttributes<HTMLDivElement>) {\n return <ProgressBar maxValue={maxValue} minValue={minValue} {...props} {...mergeStatefulStyles(stylex.props(indicatorStyles.root, variant === 'circular' && styles.rootCircular), props)}>\n {indicatorContent(label, showValue, variant, buffer, minValue, maxValue, diameter ?? (shape === 'wavy' ? WAVY_SIZE_PX : CIRCULAR_SIZE_PX), shape, tone)}\n </ProgressBar>;\n}\n\n// The wavy ring's path: `RING_WAVES` crests round the circle the wave runs\n// round, as 20 points to a wave, starting at three o'clock and running\n// clockwise as the circle's own dashes do.\nfunction ringWave() {\n const points = RING_WAVES * 20;\n const centre = WAVY_SIZE / 2;\n let path = '';\n for (let index = 0; index < points; index++) {\n const angle = index / points * 2 * Math.PI;\n const radius = WAVY_RADIUS + RING_AMPLITUDE * Math.sin(RING_WAVES * angle);\n path += `${index === 0 ? 'M' : 'L'}${round(centre + radius * Math.cos(angle))} ${round(centre + radius * Math.sin(angle))}`;\n }\n return `${path}Z`;\n}\n\n// Three decimal places, which keeps the paths short without moving a point\n// by anything a screen could show.\nfunction round(value: number) {\n return Math.round(value * 1000) / 1000;\n}\nexport type { ProgressIndicatorProps, ProgressIndicatorShape, ProgressIndicatorTone, ProgressIndicatorVariant };\nexport default ProgressIndicator;"],"mappings":";;;;;;;;;AAiGA,MAAMK,gBAAgB;AAKtB,MAAMC,mBAAmB,GAAGD,cAAa;AACzC,MAAME,YAAY;AAElB,MAAME,SAAS;AACf,MAAMC,gBAAgB,IAAIC,KAAKC,KAAKH;AAwCpC,MAAMK,iBAAiB;AACvB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,GAAMqB;GAAK,GAAMD;GACtEI,UAAAA;EADc,CAAA;EAEHf,EAAA,MAAAyD;EAAAzD,EAAA,MAAAK;EAAAL,EAAA,MAAAO;EAAAP,EAAA,MAAAU;EAAAV,EAAA,MAAAW;EAAAX,EAAA,MAAAe;EAAAf,EAAA,MAAAgB;CAAA,OAAAA,KAAAhB,EAAA;CAAA,OAFTgB;AAES;AAMlB,SAASlH,WAAW;CAClB,MAAM6J,SAASlK,aAAa;CAC5B,MAAMmK,SAASzK,YAAY;CAC3B,IAAIuJ,OAAO;CACX,KAAK,IAAIa,QAAQ,GAAGA,QAAQI,QAAQJ,SAAS;EAC3C,MAAMM,QAAQN,QAAQI,SAAS,IAAIlL,KAAKC;EACxC,MAAM0H,SAAS7G,cAAcF,iBAAiBZ,KAAKqL,IAAIrK,aAAaoK,KAAK;EACzEnB,QAAQ,GAAGa,UAAU,IAAI,MAAM,MAAM5K,MAAMiL,SAASxD,SAAS3H,KAAKsL,IAAIF,KAAK,CAAC,EAAC,GAAIlL,MAAMiL,SAASxD,SAAS3H,KAAKqL,IAAID,KAAK,CAAC;CAC1H;CACA,OAAO,GAAGnB,KAAI;AAChB;AAIA,SAAS/J,MAAM8G,OAAe;CAC5B,OAAOhH,KAAKE,MAAM8G,QAAQ,GAAI,IAAI;AACpC"}
|
|
@@ -192,7 +192,7 @@ function SearchViewContent(t0) {
|
|
|
192
192
|
} else t7 = $[25];
|
|
193
193
|
let t8;
|
|
194
194
|
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
195
|
-
t8 = /* @__PURE__ */ jsx("hr", { className: "xp2scj5 xjm9jq1 xc342km x9f619 x2lah0s x1ghz6dp" });
|
|
195
|
+
t8 = /* @__PURE__ */ jsx("hr", { className: "xp2scj5 xjm9jq1 x19dwuzr x4z998w x1lym3mf xc342km x9f619 x2lah0s x1ghz6dp" });
|
|
196
196
|
$[26] = t8;
|
|
197
197
|
} else t8 = $[26];
|
|
198
198
|
let t9;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_c","stylex","useMessages","mergeStatefulStyles","overlay","SIDE_OFFSET","styles","view","kWkggS","kZKoxP","kaIpWk","kGVxlE","k1xSpc","kXwgrk","kzqmXN","krVfgx","k87sOh","kt4wiu","kLqNvP","kskxy","ks0D6T","kVQacm","kVAEAm","$$css","backLabel","children","className","clearLabel","container","label","placeholder","style","fieldContent","state","isEmpty","SearchView","t0","$","props","t1","SearchViewContent","ref","messages","popup","t2","back","t3","Symbol","for","t4","t5","t6","t7","t8","t9","t10","t11","t12","Content","RACSearchField","Autocomplete","RACPopover"],"sources":["../../../src/components/search-view/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { ClassNameOrFunction, DialogTriggerProps, PopoverRenderProps, SearchFieldRenderProps, StyleOrFunction } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { Dialog, DialogTrigger, Label, Popover as RACPopover, SearchField as RACSearchField, VisuallyHidden } from 'react-aria-components';\nimport type { AutocompleteProps } from '../autocomplete';\nimport { FieldInput } from '../../field';\nimport { ArrowBackGlyph, CloseGlyph } from '../../glyphs';\nimport { useMessages } from '../../i18n';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport { overlay } from '../../styles/overlay';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, media, radii, shadows, sizing, spacing } from '../../tokens/design.tokens.stylex';\nimport Autocomplete from '../autocomplete';\nimport IconButton from '../icon-button';\n\n// The search page's search view: what a search opens into. A header holds a\n// back button, the input and a clear button, over a 1dp divider in the\n// outline role, and the results run under it. Both of the page's forms are\n// surface container high, with the input in body-large on surface over a\n// supporting text in on surface variant, the back icon in on surface and the\n// clear icon in on surface variant.\n//\n// **Which form is the window's.** Below the medium breakpoint it is the\n// page's full-screen view: the whole window, square, with a 72dp header.\n// Above it, the docked view: dropped under what opened it, as wide as that\n// and held between the page's 360dp and 720dp, with a 28dp corner, a 56dp\n// header, results at least 240dp tall and the whole view no taller than two\n// thirds of the window, at elevation 3 — Compose's measurements for its\n// docked search bar, which the page draws without numbers. The swap is the\n// date pickers' — see `src/styles/picker.ts`: React Aria places the surface\n// with inline styles, which a class outranks only with `!important`, so the\n// full-screen form takes it on the edges, the position and the size, and\n// above the breakpoint this says nothing about any of them.\n//\n// **It is Autocomplete in an overlay.** The header's input and the results\n// are Autocomplete's two halves, so typing narrows the results as it does\n// anywhere else, and the results are the call site's ListBox or Menu.\n// Autocomplete still renders nothing of its own; this is the element around\n// it.\n//\n// **The header lines up with the search bar's.** The back button sits where\n// the bar's magnifier does, its icon 28dp in, and the text starts at 68dp,\n// as the bar's does; the clear button's icon ends 28dp from the end. So a\n// view opened from a bar puts its input where the bar's was.\n//\n// Composed as Popover is: `SearchView` holds the open state, a Button or\n// IconButton placed directly inside it opens the view, and\n// `SearchView.Content` is the view. The back button closes it, as Escape and\n// a press outside the docked view do.\n\n// The gap between what opened the view and the docked view, Popover's.\nconst SIDE_OFFSET = 8;\nconst styles = {\n view: {\n kWkggS: \"xvkjz1l\",\n kZKoxP: \"x16m7gpl\",\n kaIpWk: \"x19pkqky xxl0i3l\",\n kGVxlE: \"x1udv5rz xzvmenf\",\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kzqmXN: \"xd4ksm1 x14gilbs\",\n krVfgx: \"xudx362\",\n k87sOh: \"xbvrusa\",\n kt4wiu: \"x1v0tev1\",\n kLqNvP: \"x12sfaok\",\n kskxy: \"x10iheve\",\n ks0D6T: \"x16xn7b0 x6iovhr\",\n kVQacm: \"xb3r6kr\",\n kVAEAm: \"x1mesnot\",\n $$css: true\n }\n};\ntype SearchViewContentProps<T extends object = object> = {\n /**\n * What the back button is called, for a screen reader. Left out, the\n * library names it in the reader's locale — \"Back\" in English.\n */\n backLabel?: string;\n /** The results: a ListBox or a Menu, which typing narrows. */\n children?: ReactNode;\n /** A function may compute the class from the view's render state. */\n className?: ClassNameOrFunction<PopoverRenderProps>;\n /**\n * What the clear button is called, for a screen reader. Left out, React\n * Aria names it in the reader's locale — \"Clear search\" in English.\n */\n clearLabel?: string;\n /**\n * Where to portal the view. Defaults to the container of the `ThemeScope`\n * around it, which keeps the view on that scope's tokens, or to the end of\n * `<body>` where there is none. A subtree themed through the `themeScope`\n * class has no container of its own, so point this inside it, or the view\n * renders outside and keeps the page's tokens.\n */\n container?: Element;\n /**\n * What is searched, for a screen reader. It names both the view and its\n * input, and is read rather than shown; `placeholder` is what is seen.\n * Write it so it contains the placeholder's words, as SearchField's\n * `label` explains.\n */\n label: string;\n /** The supporting text in the empty input, which is what a person reads. */\n placeholder?: string;\n /** A function may compute the style from the view's render state. */\n style?: StyleOrFunction<PopoverRenderProps>;\n} & Omit<AutocompleteProps<T>, 'children'>;\ntype SearchViewProps = Omit<DialogTriggerProps, 'children'> & {\n /**\n * The Button or IconButton that opens the view, and `SearchView.Content`.\n */\n children?: ReactNode;\n};\n\n// What the field draws, from its render state: the clear button only while\n// it holds something. Built by a call rather than written inline at the\n// prop, which is what react-perf's no-new-function-as-prop is after.\nfunction fieldContent(label: string, placeholder: string | undefined, clearLabel: string | undefined) {\n return (state: SearchFieldRenderProps) => <>\n <VisuallyHidden>\n <Label>{label}</Label>\n </VisuallyHidden>\n <FieldInput\n // oxlint-disable-next-line jsx-a11y/no-autofocus -- a search view opens to be typed into, so the input takes focus rather than the back button the dialog would otherwise start on\n autoFocus placeholder={placeholder} className=\"x1hcrkkg xzwh6sb xjyslct x1iyjqo2 xeuugli\" />\n {state.isEmpty ? null : <IconButton aria-label={clearLabel} className=\"x15ir4sr\">\n <CloseGlyph className=\"xlzyvqe x1lliihq x15vhz18\" />\n </IconButton>}\n </>;\n}\n\n/**\n * The view a search opens into: full screen on a compact window, docked\n * under what opened it on a wider one. Open state is React Aria's: pass\n * `isOpen` with `onOpenChange` to control it, or `defaultOpen` to let it keep\n * its own.\n *\n * ```tsx\n * <SearchView>\n * <IconButton aria-label=\"Search\"><SearchIcon /></IconButton>\n * <SearchView.Content label=\"Search\" placeholder=\"Search\">\n * <ListBox aria-label=\"Results\">…</ListBox>\n * </SearchView.Content>\n * </SearchView>\n * ```\n *\n * A Button or IconButton placed directly inside opens the view;\n * `SearchView.Content` is the view itself.\n */\nfunction SearchView({\n children,\n ...props\n}: SearchViewProps) {\n return <DialogTrigger {...props}>{children}</DialogTrigger>;\n}\n\n/**\n * The view: the header with its back button, input and clear button, and\n * the results under it, inside React Aria's Autocomplete, so typing narrows\n * them. Its value is Autocomplete's: pass `inputValue` with `onInputChange`\n * to control what has been typed, or `defaultInputValue` to let it keep its\n * own.\n *\n * The call site's `className` and `style` land on the view's surface, and\n * its `ref` too.\n */\nfunction SearchViewContent<T extends object = object>({\n backLabel,\n children,\n className,\n clearLabel,\n container,\n label,\n placeholder,\n ref,\n style,\n ...props\n}: RefAttributes<HTMLElement> & SearchViewContentProps<T>) {\n const messages = useMessages();\n return <RACPopover offset={SIDE_OFFSET} placement=\"bottom start\" ref={ref}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container} {...mergeStatefulStyles(stylex.props(overlay.popup, styles.view), {\n className,\n style\n })}>\n <Dialog aria-label={label} className=\"x9f619 x78zum5 xdt5ytf x1iyjqo2 x2lwn1j x1t137rt\">\n <Autocomplete<T> {...props}>\n <div className=\"x6s0dn4 xs1ryiz xzcdm5u x9f619 x78zum5 x2lah0s x126z3so x790zyz\">\n <IconButton aria-label={backLabel ?? messages.back} slot=\"close\" className=\"x6aqprb\">\n <ArrowBackGlyph className=\"xlzyvqe x139gbkf x1lliihq x15vhz18 x19axjrm x1c071of\" />\n </IconButton>\n <RACSearchField className=\"x6s0dn4 x9f619 x78zum5 x1iyjqo2 x126z3so xeuugli\">\n {fieldContent(label, placeholder, clearLabel)}\n </RACSearchField>\n </div>\n <hr className=\"xp2scj5 xjm9jq1 xc342km x9f619 x2lah0s x1ghz6dp\" />\n <div className=\"x9f619 x1iyjqo2 xfwfbzp xrsa6q8 x1ficeh5 x1iob9gu x1odjw0f xish69e\">{children}</div>\n </Autocomplete>\n </Dialog>\n </RACPopover>;\n}\nSearchView.Content = SearchViewContent;\nexport type { SearchViewContentProps, SearchViewProps };\nexport { SearchViewContent };\nexport default SearchView;"],"mappings":";;;;;;;;;;;;;AAqDA,MAAMK,cAAc;AACpB,MAAMC,SAAS,EACbC,MAAM;CACJC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,OAAO;CACPC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,OAAO;AACT,EACF;AA8CA,SAASS,aAAaH,OAAeC,aAAiCH,YAAgC;CACpG,QAAQM,UAAkC,qBAAA,UAAA,EAAA,UAAA;EACtC,oBAAC,gBAAD,EAAA,UACE,oBAAC,OAAD,EAAA,UAAQJ,MAAa,CAAA,EACP,CAAA;EAChB,oBAAC,YAAD;GAEF,WAAA;GAAuBC;GAAa,WAAU;EAA2C,CAAA;EACtFG,MAAMC,UAAU,OAAO,oBAAC,YAAD;GAAY,cAAYP;GAAY,WAAU;GAClE,UAAA,oBAAC,YAAD,EAAY,WAAU,4BAA2B,CAAA;EACvC,CAAA;CAChB,EAAA,CAAA;AACJ;;;;;;;;;;;;;;;;;;;AAoBA,SAAAQ,WAAAC,IAAA;CAAA,MAAAC,IAAArC,EAAA,CAAA;CAAA,IAAAyB;CAAA,IAAAa;CAAA,IAAAD,EAAA,OAAAD,IAAA;EAAoB,CAAA,CAAAX,UAAA,GAAAa,SAAAF;EAGFC,EAAA,KAAAD;EAAAC,EAAA,KAAAZ;EAAAY,EAAA,KAAAC;CAAA,OAAA;EAAAb,WAAAY,EAAA;EAAAC,QAAAD,EAAA;CAAA;CAAA,IAAAE;CAAA,IAAAF,EAAA,OAAAZ,YAAAY,EAAA,OAAA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_OFFSET","styles","view","kWkggS","kZKoxP","kaIpWk","kGVxlE","k1xSpc","kXwgrk","kzqmXN","krVfgx","k87sOh","kt4wiu","kLqNvP","kskxy","ks0D6T","kVQacm","kVAEAm","$$css","backLabel","children","className","clearLabel","container","label","placeholder","style","fieldContent","state","isEmpty","SearchView","t0","$","props","t1","SearchViewContent","ref","messages","popup","t2","back","t3","Symbol","for","t4","t5","t6","t7","t8","t9","t10","t11","t12","Content","RACSearchField","Autocomplete","RACPopover"],"sources":["../../../src/components/search-view/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { ClassNameOrFunction, DialogTriggerProps, PopoverRenderProps, SearchFieldRenderProps, StyleOrFunction } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { Dialog, DialogTrigger, Label, Popover as RACPopover, SearchField as RACSearchField, VisuallyHidden } from 'react-aria-components';\nimport type { AutocompleteProps } from '../autocomplete';\nimport { FieldInput } from '../../field';\nimport { ArrowBackGlyph, CloseGlyph } from '../../glyphs';\nimport { useMessages } from '../../i18n';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport { overlay } from '../../styles/overlay';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, media, radii, shadows, sizing, spacing } from '../../tokens/design.tokens.stylex';\nimport Autocomplete from '../autocomplete';\nimport IconButton from '../icon-button';\n\n// The search page's search view: what a search opens into. A header holds a\n// back button, the input and a clear button, over a 1dp divider in the\n// outline role, and the results run under it. Both of the page's forms are\n// surface container high, with the input in body-large on surface over a\n// supporting text in on surface variant, the back icon in on surface and the\n// clear icon in on surface variant.\n//\n// **Which form is the window's.** Below the medium breakpoint it is the\n// page's full-screen view: the whole window, square, with a 72dp header.\n// Above it, the docked view: dropped under what opened it, as wide as that\n// and held between the page's 360dp and 720dp, with a 28dp corner, a 56dp\n// header, results at least 240dp tall and the whole view no taller than two\n// thirds of the window, at elevation 3 — Compose's measurements for its\n// docked search bar, which the page draws without numbers. The swap is the\n// date pickers' — see `src/styles/picker.ts`: React Aria places the surface\n// with inline styles, which a class outranks only with `!important`, so the\n// full-screen form takes it on the edges, the position and the size, and\n// above the breakpoint this says nothing about any of them.\n//\n// **It is Autocomplete in an overlay.** The header's input and the results\n// are Autocomplete's two halves, so typing narrows the results as it does\n// anywhere else, and the results are the call site's ListBox or Menu.\n// Autocomplete still renders nothing of its own; this is the element around\n// it.\n//\n// **The header lines up with the search bar's.** The back button sits where\n// the bar's magnifier does, its icon 28dp in, and the text starts at 68dp,\n// as the bar's does; the clear button's icon ends 28dp from the end. So a\n// view opened from a bar puts its input where the bar's was.\n//\n// Composed as Popover is: `SearchView` holds the open state, a Button or\n// IconButton placed directly inside it opens the view, and\n// `SearchView.Content` is the view. The back button closes it, as Escape and\n// a press outside the docked view do.\n\n// Windows High Contrast and the rest of the forced-colours modes, spelled\n// here rather than imported, as Separator spells it: the StyleX compiler\n// resolves a constant across files only out of a `.stylex.ts` module.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// The gap between what opened the view and the docked view, Popover's.\nconst SIDE_OFFSET = 8;\nconst styles = {\n view: {\n kWkggS: \"xvkjz1l\",\n kZKoxP: \"x16m7gpl\",\n kaIpWk: \"x19pkqky xxl0i3l\",\n kGVxlE: \"x1udv5rz xzvmenf\",\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kzqmXN: \"xd4ksm1 x14gilbs\",\n krVfgx: \"xudx362\",\n k87sOh: \"xbvrusa\",\n kt4wiu: \"x1v0tev1\",\n kLqNvP: \"x12sfaok\",\n kskxy: \"x10iheve\",\n ks0D6T: \"x16xn7b0 x6iovhr\",\n kVQacm: \"xb3r6kr\",\n kVAEAm: \"x1mesnot\",\n $$css: true\n }\n};\ntype SearchViewContentProps<T extends object = object> = {\n /**\n * What the back button is called, for a screen reader. Left out, the\n * library names it in the reader's locale — \"Back\" in English.\n */\n backLabel?: string;\n /** The results: a ListBox or a Menu, which typing narrows. */\n children?: ReactNode;\n /** A function may compute the class from the view's render state. */\n className?: ClassNameOrFunction<PopoverRenderProps>;\n /**\n * What the clear button is called, for a screen reader. Left out, React\n * Aria names it in the reader's locale — \"Clear search\" in English.\n */\n clearLabel?: string;\n /**\n * Where to portal the view. Defaults to the container of the `ThemeScope`\n * around it, which keeps the view on that scope's tokens, or to the end of\n * `<body>` where there is none. A subtree themed through the `themeScope`\n * class has no container of its own, so point this inside it, or the view\n * renders outside and keeps the page's tokens.\n */\n container?: Element;\n /**\n * What is searched, for a screen reader. It names both the view and its\n * input, and is read rather than shown; `placeholder` is what is seen.\n * Write it so it contains the placeholder's words, as SearchField's\n * `label` explains.\n */\n label: string;\n /** The supporting text in the empty input, which is what a person reads. */\n placeholder?: string;\n /** A function may compute the style from the view's render state. */\n style?: StyleOrFunction<PopoverRenderProps>;\n} & Omit<AutocompleteProps<T>, 'children'>;\ntype SearchViewProps = Omit<DialogTriggerProps, 'children'> & {\n /**\n * The Button or IconButton that opens the view, and `SearchView.Content`.\n */\n children?: ReactNode;\n};\n\n// What the field draws, from its render state: the clear button only while\n// it holds something. Built by a call rather than written inline at the\n// prop, which is what react-perf's no-new-function-as-prop is after.\nfunction fieldContent(label: string, placeholder: string | undefined, clearLabel: string | undefined) {\n return (state: SearchFieldRenderProps) => <>\n <VisuallyHidden>\n <Label>{label}</Label>\n </VisuallyHidden>\n <FieldInput\n // oxlint-disable-next-line jsx-a11y/no-autofocus -- a search view opens to be typed into, so the input takes focus rather than the back button the dialog would otherwise start on\n autoFocus placeholder={placeholder} className=\"x1hcrkkg xzwh6sb xjyslct x1iyjqo2 xeuugli\" />\n {state.isEmpty ? null : <IconButton aria-label={clearLabel} className=\"x15ir4sr\">\n <CloseGlyph className=\"xlzyvqe x1lliihq x15vhz18\" />\n </IconButton>}\n </>;\n}\n\n/**\n * The view a search opens into: full screen on a compact window, docked\n * under what opened it on a wider one. Open state is React Aria's: pass\n * `isOpen` with `onOpenChange` to control it, or `defaultOpen` to let it keep\n * its own.\n *\n * ```tsx\n * <SearchView>\n * <IconButton aria-label=\"Search\"><SearchIcon /></IconButton>\n * <SearchView.Content label=\"Search\" placeholder=\"Search\">\n * <ListBox aria-label=\"Results\">…</ListBox>\n * </SearchView.Content>\n * </SearchView>\n * ```\n *\n * A Button or IconButton placed directly inside opens the view;\n * `SearchView.Content` is the view itself.\n */\nfunction SearchView({\n children,\n ...props\n}: SearchViewProps) {\n return <DialogTrigger {...props}>{children}</DialogTrigger>;\n}\n\n/**\n * The view: the header with its back button, input and clear button, and\n * the results under it, inside React Aria's Autocomplete, so typing narrows\n * them. Its value is Autocomplete's: pass `inputValue` with `onInputChange`\n * to control what has been typed, or `defaultInputValue` to let it keep its\n * own.\n *\n * The call site's `className` and `style` land on the view's surface, and\n * its `ref` too.\n */\nfunction SearchViewContent<T extends object = object>({\n backLabel,\n children,\n className,\n clearLabel,\n container,\n label,\n placeholder,\n ref,\n style,\n ...props\n}: RefAttributes<HTMLElement> & SearchViewContentProps<T>) {\n const messages = useMessages();\n return <RACPopover offset={SIDE_OFFSET} placement=\"bottom start\" ref={ref}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container} {...mergeStatefulStyles(stylex.props(overlay.popup, styles.view), {\n className,\n style\n })}>\n <Dialog aria-label={label} className=\"x9f619 x78zum5 xdt5ytf x1iyjqo2 x2lwn1j x1t137rt\">\n <Autocomplete<T> {...props}>\n <div className=\"x6s0dn4 xs1ryiz xzcdm5u x9f619 x78zum5 x2lah0s x126z3so x790zyz\">\n <IconButton aria-label={backLabel ?? messages.back} slot=\"close\" className=\"x6aqprb\">\n <ArrowBackGlyph className=\"xlzyvqe x139gbkf x1lliihq x15vhz18 x19axjrm x1c071of\" />\n </IconButton>\n <RACSearchField className=\"x6s0dn4 x9f619 x78zum5 x1iyjqo2 x126z3so xeuugli\">\n {fieldContent(label, placeholder, clearLabel)}\n </RACSearchField>\n </div>\n <hr className=\"xp2scj5 xjm9jq1 x19dwuzr x4z998w x1lym3mf xc342km x9f619 x2lah0s x1ghz6dp\" />\n <div className=\"x9f619 x1iyjqo2 xfwfbzp xrsa6q8 x1ficeh5 x1iob9gu x1odjw0f xish69e\">{children}</div>\n </Autocomplete>\n </Dialog>\n </RACPopover>;\n}\nSearchView.Content = SearchViewContent;\nexport type { SearchViewContentProps, SearchViewProps };\nexport { SearchViewContent };\nexport default SearchView;"],"mappings":";;;;;;;;;;;;;AA0DA,MAAMK,cAAc;AACpB,MAAMC,SAAS,EACbC,MAAM;CACJC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,OAAO;CACPC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,OAAO;AACT,EACF;AA8CA,SAASS,aAAaH,OAAeC,aAAiCH,YAAgC;CACpG,QAAQM,UAAkC,qBAAA,UAAA,EAAA,UAAA;EACtC,oBAAC,gBAAD,EAAA,UACE,oBAAC,OAAD,EAAA,UAAQJ,MAAa,CAAA,EACP,CAAA;EAChB,oBAAC,YAAD;GAEF,WAAA;GAAuBC;GAAa,WAAU;EAA2C,CAAA;EACtFG,MAAMC,UAAU,OAAO,oBAAC,YAAD;GAAY,cAAYP;GAAY,WAAU;GAClE,UAAA,oBAAC,YAAD,EAAY,WAAU,4BAA2B,CAAA;EACvC,CAAA;CAChB,EAAA,CAAA;AACJ;;;;;;;;;;;;;;;;;;;AAoBA,SAAAQ,WAAAC,IAAA;CAAA,MAAAC,IAAArC,EAAA,CAAA;CAAA,IAAAyB;CAAA,IAAAa;CAAA,IAAAD,EAAA,OAAAD,IAAA;EAAoB,CAAA,CAAAX,UAAA,GAAAa,SAAAF;EAGFC,EAAA,KAAAD;EAAAC,EAAA,KAAAZ;EAAAY,EAAA,KAAAC;CAAA,OAAA;EAAAb,WAAAY,EAAA;EAAAC,QAAA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B"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ReactNode, RefAttributes } from "react";
|
|
2
2
|
import { CellProps, ColumnProps, ResizableTableContainerProps, RowProps, TableBodyProps as TableBodyProps$1, TableFooterProps as TableFooterProps$1, TableHeaderProps as TableHeaderProps$1, TableLoadMoreItemProps, TableProps as TableProps$1 } from "react-aria-components";
|
|
3
|
+
/**
|
|
4
|
+
* Which end of its cells a column's text sits at: `start` for words, `end`
|
|
5
|
+
* for numbers, so the digits stack by place. Both follow the writing
|
|
6
|
+
* direction.
|
|
7
|
+
*/
|
|
8
|
+
type TableAlign = 'end' | 'start';
|
|
3
9
|
type TableBodyProps<T extends object = object> = Omit<TableBodyProps$1<T>, 'className' | 'renderEmptyState' | 'style'> & {
|
|
4
10
|
/** A function may compute the class from the body's render state. */
|
|
5
11
|
className?: TableBodyProps$1<T>['className'];
|
|
@@ -13,7 +19,14 @@ type TableBodyProps<T extends object = object> = Omit<TableBodyProps$1<T>, 'clas
|
|
|
13
19
|
/** A function may compute the style from the body's render state. */
|
|
14
20
|
style?: TableBodyProps$1<T>['style'];
|
|
15
21
|
};
|
|
16
|
-
type TableCellProps =
|
|
22
|
+
type TableCellProps = {
|
|
23
|
+
/**
|
|
24
|
+
* Which end of the cell its text sits at. Give it the value its column was
|
|
25
|
+
* given — React Aria hands a cell nothing of its column's, so a cell does
|
|
26
|
+
* not follow the header on its own.
|
|
27
|
+
* @default 'start'
|
|
28
|
+
*/
|
|
29
|
+
align?: TableAlign;
|
|
17
30
|
/** What the cell holds. */
|
|
18
31
|
children?: ReactNode;
|
|
19
32
|
/** A function may compute the class from the cell's render state. */
|
|
@@ -26,8 +39,16 @@ type TableCellProps = Omit<CellProps, 'children' | 'className' | 'style'> & {
|
|
|
26
39
|
selection?: boolean;
|
|
27
40
|
/** A function may compute the style from the cell's render state. */
|
|
28
41
|
style?: CellProps['style'];
|
|
29
|
-
}
|
|
42
|
+
} & Omit<CellProps, 'children' | 'className' | 'style'>;
|
|
30
43
|
type TableColumnProps = {
|
|
44
|
+
/**
|
|
45
|
+
* Which end of the header cell the name sits at. `end` is for a column of
|
|
46
|
+
* numbers: the name goes against the end padding, over the digits, with
|
|
47
|
+
* the sort arrow before it rather than after. Give the column's cells the
|
|
48
|
+
* same `align`.
|
|
49
|
+
* @default 'start'
|
|
50
|
+
*/
|
|
51
|
+
align?: TableAlign;
|
|
31
52
|
/** The column's name. */
|
|
32
53
|
children?: ReactNode;
|
|
33
54
|
/** A function may compute the class from the column's render state. */
|
|
@@ -161,7 +182,7 @@ declare function TableBody<T extends object = object>({ renderEmptyState, ...pro
|
|
|
161
182
|
* the cell would hold. On a disabled row the cell fades as a whole, so what
|
|
162
183
|
* it holds fades with its text.
|
|
163
184
|
*/
|
|
164
|
-
declare function TableCell({ children, selection, ...props }: RefAttributes<HTMLTableCellElement> & TableCellProps): import("react").JSX.Element;
|
|
185
|
+
declare function TableCell({ align, children, selection, ...props }: RefAttributes<HTMLTableCellElement> & TableCellProps): import("react").JSX.Element;
|
|
165
186
|
/**
|
|
166
187
|
* One column. `allowsSorting` is React Aria's and makes the header cell
|
|
167
188
|
* itself the control that sorts; the arrow appears on the column the
|
|
@@ -172,7 +193,7 @@ declare function TableCell({ children, selection, ...props }: RefAttributes<HTML
|
|
|
172
193
|
* that cannot collide — a column and a row with one id between them leaves
|
|
173
194
|
* the table with no columns at all.
|
|
174
195
|
*/
|
|
175
|
-
declare function TableColumn({ children, resizable, selection, ...props }: RefAttributes<HTMLTableCellElement> & TableColumnProps): import("react").JSX.Element;
|
|
196
|
+
declare function TableColumn({ align, children, resizable, selection, ...props }: RefAttributes<HTMLTableCellElement> & TableColumnProps): import("react").JSX.Element;
|
|
176
197
|
/**
|
|
177
198
|
* A row under the body, for totals and the like. It is not part of the
|
|
178
199
|
* selection or the keyboard navigation — React Aria keeps it out of both.
|
|
@@ -196,4 +217,4 @@ declare function TableLoadMore({ label, ref, ...props }: RefAttributes<HTMLTable
|
|
|
196
217
|
* row is pressed.
|
|
197
218
|
*/
|
|
198
219
|
declare function TableRow<T extends object = object>(props: RefAttributes<HTMLTableRowElement> & TableRowProps<T>): import("react").JSX.Element;
|
|
199
|
-
export { TableBody, type TableBodyProps, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableFooter, type TableFooterProps, TableHeader, type TableHeaderProps, TableLoadMore, type TableLoadMoreProps, type TableProps, TableRow, type TableRowProps, Table as default };
|
|
220
|
+
export { type TableAlign, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableFooter, type TableFooterProps, TableHeader, type TableHeaderProps, TableLoadMore, type TableLoadMoreProps, type TableProps, TableRow, type TableRowProps, Table as default };
|