@g9tm/lynxcontrols-foundation 2.5.3 → 2.5.5
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/catalog/catalog.json +4 -4
- package/catalog/index.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/theme/__tests__/sine-gamut.vectors.js +6 -0
- package/dist/theme/oklch.d.ts +10 -3
- package/dist/theme/oklch.d.ts.map +1 -1
- package/dist/theme/oklch.js +5 -2
- package/dist/theme/oklch.js.map +1 -1
- package/dist/tokens/shape.d.ts +8 -0
- package/dist/tokens/shape.d.ts.map +1 -1
- package/dist/tokens/shape.js +4 -1
- package/dist/tokens/shape.js.map +1 -1
- package/docs/api.md +1 -1
- package/package.json +1 -1
package/catalog/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"catalogVersion": 1,
|
|
3
3
|
"package": "@g9tm/lynxcontrols-foundation",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.5",
|
|
5
5
|
"generatedBy": "node scripts/check-docs.mjs --write",
|
|
6
6
|
"components": [],
|
|
7
7
|
"exports": [
|
|
@@ -3554,8 +3554,8 @@
|
|
|
3554
3554
|
"export": "oklchToHex",
|
|
3555
3555
|
"from": "@g9tm/lynxcontrols-foundation/theme",
|
|
3556
3556
|
"kind": "function",
|
|
3557
|
-
"signature": "(x: G9Oklch): string",
|
|
3558
|
-
"summary": "OKLCH → `#RRGGBB` (or `#RRGGBBAA` with alpha < 1)."
|
|
3557
|
+
"signature": "(x: G9Oklch, options?: { readonly gamut?: \"search\" | \"steps\"; } | undefined): string",
|
|
3558
|
+
"summary": "OKLCH → `#RRGGBB` (or `#RRGGBBAA` with alpha < 1). `gamut: 'steps'` maps an out-of-sRGB colour by cutting chroma 10 % at a time (ShopManager's `@g9/tokens`, to the hex; opaque) instead of the default binary search."
|
|
3559
3559
|
},
|
|
3560
3560
|
{
|
|
3561
3561
|
"id": "foundation.theme.overriddenTokens",
|
|
@@ -4186,7 +4186,7 @@
|
|
|
4186
4186
|
"export": "toOklch",
|
|
4187
4187
|
"from": "@g9tm/lynxcontrols-foundation/theme",
|
|
4188
4188
|
"kind": "function",
|
|
4189
|
-
"signature": "(color: G9ColorInput): G9Oklch",
|
|
4189
|
+
"signature": "(color: G9ColorInput, options?: { readonly curve?: \"even\" | \"sine\"; } | undefined): G9Oklch",
|
|
4190
4190
|
"summary": "A colour in OKLCH (lightness, chroma, hue): the perceptual space the brand palettes and tonal scales are built in. Cached per string."
|
|
4191
4191
|
},
|
|
4192
4192
|
{
|
package/catalog/index.md
CHANGED
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../src/collections.ts","../src/errors.ts","../src/culture/bidi.ts","../../../node_modules/@internationalized/date/dist/types/src/calendardate.d.ts","../../../node_modules/@internationalized/date/dist/types/src/types.d.ts","../../../node_modules/@internationalized/date/dist/types/src/queries.d.ts","../../../node_modules/@internationalized/date/dist/types/src/utils.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/gregoriancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/japanesecalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/buddhistcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/taiwancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/persiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/indiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/islamiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/hebrewcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/ethiopiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/createcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/conversion.d.ts","../../../node_modules/@internationalized/date/dist/types/src/string.d.ts","../../../node_modules/@internationalized/date/dist/types/src/dateformatter.d.ts","../../../node_modules/@internationalized/date/dist/types/src/index.d.ts","../src/culture/digits.ts","../src/culture/culture.ts","../src/culture/calendar.ts","../src/culture/numbers.ts","../src/culture/text.ts","../src/culture/coordinates.ts","../src/culture/date-format.ts","../src/culture/duration.ts","../src/culture/natural-date.ts","../src/culture/strings.ts","../src/culture/relative-time.ts","../src/culture/index.ts","../src/enums/index.ts","../src/exec/diagnostics.ts","../src/services/abort.ts","../src/exec/options.ts","../src/services/clock.ts","../src/exec/trace.ts","../src/exec/safe-executor.ts","../src/exec/index.ts","../src/icons/generated/glyph-svg.ts","../src/icons/glyph.ts","../src/icons/icon.ts","../src/icons/glyph-slots.ts","../src/icons/icon-fonts.ts","../src/icons/packs.ts","../src/theme/color.ts","../src/icons/svg.ts","../src/icons/index.ts","../src/layout/index.ts","../src/route/address.ts","../src/route/catalogue.ts","../src/route/journey.ts","../src/route/sink.ts","../src/route/resolve.ts","../src/route/view.ts","../src/route/index.ts","../src/services/feedback.ts","../src/services/preferences.ts","../src/services/contracts.ts","../src/services/keys.ts","../src/services/motion.ts","../src/services/index.ts","../src/tokens/generated/metrics.ts","../src/tokens/generated/palettes.ts","../src/tokens/layout-metrics.ts","../src/tokens/css-vars.ts","../src/theme/aliases.ts","../src/tokens/shape.ts","../src/theme/oklch.ts","../src/theme/theme.ts","../src/theme/brand.ts","../src/theme/recipe.ts","../src/theme/appearance.ts","../src/theme/contrast.ts","../src/theme/control-colors.ts","../src/theme/css-color.ts","../src/theme/design.ts","../src/tokens/derived.ts","../src/theme/variants.ts","../src/theme/index.ts","../src/tokens/root.ts","../src/tokens/index.ts","../src/index.ts"],"fileIdsList":[[102],[101,102,105],[101,102,104],[101,102],[101,102,104,105],[101,102,103,105,106,107,108,109,110,111,112,113,114,115,116,117],[101],[40,95,96],[41,85,86,87],[52],[41,77,86,87,88,89,91,92,93],[41,85,86,87,89,90],[85,87],[41,85],[48,77],[42],[43],[50,54],[46],[40,50,54,55,56,57,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79],[46,50,54,77],[46,50,54],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79,80,81,82],[57,58],[46,50,54,58],[46,60,63],[45],[47,51,52,94],[43,46,47,48,50,52,53,54,83,84],[43,46],[51,85,94],[44,85],[45,46,54],[44,45,49,50],[48,85],[37,38,39],[40],[97],[97,99,118,120],[97,119,122,123],[97,99,119],[97,99,119,120,121],[97,99],[97,100,119,120,121,122,123,124,125,126,127,128,129],[97,121,123],[97,99,121,125,128],[97,99,120,122],[97,119,122],[97,132,134,136,137],[97,99,133],[97,99,128,132,133,134,135,136],[97,132,135],[97,99,141],[97,99,140,141],[97,99,140],[97,139,140,141,142,143,144,146],[97,99,139,140,145],[97,98,99,130,131,138,147,148,155,161,179,181],[97,99,149],[97,149,150,151,152,153,154],[97,149,150],[97,149,150,152],[97,149],[97,99,133,135,152,156,157],[97,133,135,156,157,158,159,160],[97,163,165],[97,99,145,163,167,169,170,171],[97,145,163,168,169],[97,145,163],[97,145,169],[97,145,168],[97,145,163,167,169,175],[97,145,166,168,169,170,171,172,173,174,175,176,178],[97,145],[97,99,163,167,168,169,170],[97,99,145,163],[97,131,145,163,165,177],[97,162,163,164],[97,145,163,165],[97,162,163,164,165,167,177,180],[97,163,165,167,177],[97,165]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"42204f4543c2a8d92bdee756d5e3f09e2612497ad26b5c36a285d99d34efa377","signature":"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f"},{"version":"18609e84384328c186664b8c5b407e379ee197a4bc40d0e985b5c8050ce29df7","signature":"ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26"},{"version":"714560fb0e2ff57d67dcb3337a40ed0d9acddd7bcfad0e80ca3f0da9537dadaf","signature":"577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851"},{"version":"217c6f6adcf5111e57a516f20bb0f3624f4a0c8c95b4dfd757b2c191439d3aa4","impliedFormat":1},{"version":"302d0816f71d30d6615895a696aab24cf074ac8e9d5b90021c9a4a29f4121d27","impliedFormat":1},{"version":"a68e0e4868a1f61702c5b91cc2b0437168acc49e318896a891368f52e0420781","impliedFormat":1},{"version":"eb57169d1ef4957f9322372942255786231714bfd3475dec56980d4075a99bb8","impliedFormat":1},{"version":"d13b4c54324181a93a23ce284b3a7a1a2148a35aecc95c562353e28a799cbeab","impliedFormat":1},{"version":"3ec9cc2c9621174a735593a03b48415ce4e0e4002a1fd5e56fffa029739561c5","impliedFormat":1},{"version":"a9b763da625de15e560fa1d58de51694c5cc45ac84f942bf85bd022b03806d9b","impliedFormat":1},{"version":"801d799959670d8a15b3dfc95d4b11dc2a0dbdb288c1de56404022ee45206302","impliedFormat":1},{"version":"dc1897f61ef7cd55f6e7572332ff23225661fa8814f9f2137655a724445dfcc9","impliedFormat":1},{"version":"af4a925b523e9c391ee4d4451cf658849e9d92e2c6fb63ac39024b6264916751","impliedFormat":1},{"version":"d0139e18847aa6b6e33b8b8fa43ca8c6fc24baa26cfc6b845078500d5810e392","impliedFormat":1},{"version":"4d22f9e46854d0e44f827c33ed9b7da2d407a4ef6dc962a53345b1f9d0c75b13","impliedFormat":1},{"version":"6c60775bbec04bff8661a7601d0fe26e696dbd1d5287ffd7cba68e8978b4cf4c","impliedFormat":1},{"version":"1185a5e4d82d7b64bd5438019fcd6eec765a64f0cc36c3af738c5ae317c7b957","impliedFormat":1},{"version":"bf4a94dcf6335c0bb4ab927fb56a646ea9ac57123b2677c2eb9841302dc3f1da","impliedFormat":1},{"version":"10175cdd19d960f50473c229d98659a5b2534a48bd86acf647e8f2878aa25d29","impliedFormat":1},{"version":"7721b07afcc035f4aff3af52d1a982d7fbd2525a9ab82b197b67d8eefc915de6","impliedFormat":1},{"version":"e943098dc1cc3574e0d903a7ac2d90d6863d243dea9295b4a8fd34223a8277e1","impliedFormat":1},{"version":"a142f5afe12787e110a2e7ff7ee4a02647c022ff0839e7c7ae0f4a41278ae1f1","signature":"44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef"},{"version":"7db764083fb927c05340e42cae128a68b53ce9d4bddfc7845e4f7c4d22772a9f","signature":"d5621f942ab05c1c3594b5b59070c2f44d411f01ba97eae6bd60cd99ab6be102"},{"version":"bdfd4a2c14afeeb21b587929fcf19c8f90ef4b3b659415724b1fcb4375b537b9","signature":"69af30b9df408f844bd30e26ade1ba783c7624bd505ecef61a7e178624ece0eb"},{"version":"2c0754ee9b1637e850da1e2fa4e7b98e7eb30fc2b10a84c42fe33d9302383038","signature":"2064567cac7c44696477d8faeb79ec714624c341bee71ea7237ea2ef2e26e8a4"},{"version":"06578cddad0e8f04a1e9e2c5b050a9368e7d1b5effe29fca0fe3ae03b6a38d61","signature":"8af9ba23355c079b2d1b8d0abf6f171dcc51fb5040fbce39e41cc1fd008cb3c6"},{"version":"3ac0b6ea92d871267625ea34f72a3090a7638a1d01c466c0ba7666e63c54c586","signature":"9d4e2786d2e8c5c304e5f5f282f38deff75dddf26d89e53c1c4872a7f9a7ecbc"},{"version":"521f08c786cd4cdaab2da57ce3dd6454f47a8edc501f8ba36c9b6ce4e223b6a6","signature":"3dd51a4b01e4a63709253bf28547f961d6bc64df7b7ced76bc0771800446ecd4"},{"version":"6c8dfe4a5ac25365b0c5c0817051732acead3f788f3567815ec775029b1661d2","signature":"28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a"},{"version":"24f4573a7b128e7a5f50de724a02ab69b27df707cdcfe044e6df2cccd3afe7c9","signature":"36f2fc7f6b07a9966273bda82f2b0b450b42d3320a9edaf91730c333ad86e257"},{"version":"b67192c27290fe55623013054f6c0ff6a63311e1266467c2f675dc4d7aab93b8","signature":"07477fef265592fa976f17bca69f4d03c112e321357c49d17232b5b5e493caf5"},{"version":"7bb7ff36e4fae5f3f2eeb2d1e70b46fac0412da4e4b65efd28fc95e5ba622995","signature":"ddb01c2474a47c2411bde75e969c547fd52dd0de9d39837970a6ec5effea934f"},{"version":"6ae5951518734cdb23962dd5f23d745ba729d6d5026b2b41194d0c8bc95f739b","signature":"1018d59d45ae46221f677d09749ba2a98fc0adc11871eac85aacb4564fa3da1d"},{"version":"e983009f8ace928b08216908294b679b05ba261050e72803bfda43726b2219aa","signature":"5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7"},{"version":"16307e253df4bb417223e5814bcc5742d1b7d9b893bd72418b8cfe8e6f7ab474","signature":"abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018"},{"version":"cc74809c9fbebdf300941acce9a07ea6ff52bf91840e738014d4dc2645f153bb","signature":"f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c"},{"version":"38ccbb46155bf41c02e47d4bd2167b1a0f6b5429be49596da7e6b203cd7176eb","signature":"db505b070be7771c50bb80800e4a16333bea91619030d33e9d1b1d6d245fde72"},{"version":"3c106b0a8bab93d06df0fb9fb79a4814e9d333aca28138f2e8f053f9260cea38","signature":"d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93"},{"version":"23f824bd861a6cf696a4571ffeca7cd5130ff1b4d30ade235d6fed7fbc6fc78f","signature":"cefcb1f078d33a40c707d4a239ee518a595d7553b4205a4a23c1bf84a743a94e"},{"version":"5ab239682bfcdf7c0d429cfed2f0bd83489103ffab0e2be6b6f3014af19dc316","signature":"4f83143f730ad8fd66ec8f779b2f43399ed4b84aec6f5df5fdc4a2436739e934"},{"version":"4719b38ecf1f698d62ba291298047877c04dbc1848a27307a4edeaeee1bc66c7","signature":"830e8c15e2893c5864835fe97bad3fdc5d46bb9b72a66851365b8411347dda10"},{"version":"f2175ae864cb2550da788b15fc4a39aa398df0665466213d25371c5d7b685c21","signature":"b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9"},{"version":"26c1a7b48b53476c1dc0e107d0b0fe71b6148f4e320f660a0bfb7d20e67c1835","signature":"068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf"},{"version":"3b014f41d56107748e41921e610181827f86ee0be4950bb2bea562681b46a072","signature":"831a6d491136030d2bc354358087a756bb67ae7118310122dd7c2c2fcbfd6bc0"},{"version":"03b57a8957f6cf8905df145665b4e64b8368c98e8b6802f8cff765ffc25e27c8","signature":"2b8a3fa14f4b24cbb3c2c783ae0805bc1a857cdf7d35308956f3660ef0229c3c"},{"version":"dccbd3d8cd4cf4972fe4918565ce6376160aeae979ca07a49fd7809c858f5c64","signature":"62412b4c4aa6d31b2179073bbfa02be1029f66b852d0a1d21bcb936b263d496c"},{"version":"f1172c2e3d40c9560d42e228cc14af529d8353de8df93caea82ce03fdffe4464","signature":"7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db"},{"version":"4e86b93241304e96d9fdc6554c7bf88dac95b8ea2484327a899a677a25d5e5ca","signature":"c15fea45b893c73bcad76ae565d59a0472ae0f74713ead9a9e7eb37085260c09"},{"version":"c71d509a443c45af8cd7bd84ea979bd5410677deaaf1983921949cb4cd952a05","signature":"344f7de9b0f6fa5ff42d99bac404c169596a2272a8b3d225beec056e4106bcb9"},{"version":"4815ef09b602fc55d4316ff4f04a7ead013f3827fcdd2436c3179a90ad9a45b9","signature":"ee2cc74d84f07861cccd51753c16296dfa24d6a19443262b4ec957bd451c46eb"},{"version":"9633cfd1413933ac2b54fc9959dc1591dc7b3d3b502b1fa3b3165407adb99002","signature":"cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e"},{"version":"52ba4ecb0b6a0c7250b7a10edf12ed75bafeb7ce812ae78255e3a149658dfe41","signature":"0fe3cc2e808353835af39798e6e169bbc1ce0cf473122316a019376a1d6d98cb"},{"version":"6069d1262128233eb04fb50264af01eb16258a8ba9a5bef9ebbaa8133459ec91","signature":"67b7d490a2cf3547f783c6f8e3019a6864f12cc657d17cf378146e7073cceb0c"},{"version":"b5f6738fc61eefd5acebabba48278250c0de84074f5c04a4c60414554d8f672b","signature":"6365c6701ad1cf8d99205387000a0324a573890107b2f475fd6a82174f0389c3"},{"version":"11fd46a411f0b66dd99a50a2274a73929d973614a5fa81bb9fb51aa6ee0cce92","signature":"d89fd83960c2343d5af55b3c174b5997272cd89af982d41bc21af8b8332cf149"},{"version":"79e9f560eae83744faa3e53154ee9bdb9f3941506eadd8d3a87935b2f90ccf4a","signature":"86a386c8741a08a24b2491c0d160bc2ee271b728c1f152d6705ffd69024679ee"},{"version":"10cf6b1e023bbb169c90ad7ff1c792552bdb73baf9f277ee1ca3e213b9b37452","signature":"49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3"},{"version":"1238f61c8db8e5ab8beaf5a9dbe5cad66661666e4e944fe92c38694c6a20cc1c","signature":"6f8692b9b0416b85506884f641a30a8f75b0b035c9948020a7117ca2faa6a840"},{"version":"b278c7dbac38a0c57ebcde6b848e7cd017a59f9ca770d9aaa4c83d6c09cf86ef","signature":"cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757"},{"version":"cb8bba022b800c1acb8ef8bfe465bfef7e43d22d06f20a8d6e7503aca0f4d570","signature":"ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669"},{"version":"69c39cdb2e91af538c7e6f54dd653864e0bc3eb765ba4f394d80f945eb1bfdcf","signature":"fd74286e0037339f88fdc437ede3c31139164faf238651e54abb805732d4b541"},{"version":"5e195c4349be7791fad891f93616246479ef54474df0bd53523ff6986535d859","signature":"ced97526e899f0222df6d805e008cd5bc63fee326838a9002919453f9a2a8c9b"},{"version":"db8a43eda6f42311a421d8839efe110a9436be9bc55eb5cd9ccd53c687b52537","signature":"216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d"},{"version":"94b5279df6c3abe97e185b85128e29c68da26025d99317deb539810f628a36ce","signature":"f50eafec22168e69b6138149fbee4eacb5dbd53fbc15f9daa37558705d1a6bc7"},{"version":"028144708663445c29ad9ca6be95694108a6d4decaff0709a9245977fef98e8e","signature":"ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3"},{"version":"21c4b66fbb8ad882f52c2825c45cb59ced1017b9bfc531fb8a0ef60d1240b882","signature":"faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7"},{"version":"fe66054b645111cf483c589411e2bd9e2c0ccbde0ba365e029c6c20653f02112","signature":"298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33"},{"version":"d615cba0a460f5568ce3473a1434f6ccf4511042824ce281682e499a95a676c8","signature":"1862daa6bc69b267a2b595149c5bced13ce2440d0d6625d291a5450d9d3118ae"},{"version":"4c3cbd29af3564f4aca3daaf5ca047f485b217af41f529815002a98933dab476","signature":"ed24498d7fe499efeb2a3f2df83a29cd3b8b83a982d01e7d73f4cc0166e3982b"},{"version":"ca7e86da5394329c6a2d33847f4e65efc42edc011e395f5f7f325bdce19b2475","signature":"9fd1be875b124dd6088df9902ca09371bd3fd00c4d886ca6bea470124ee6b72e"},{"version":"8086b1a9fc69d3c614b3900bf9134423188d2b7105b4b702baa534c9a7e44be1","signature":"fbda41e4bb0d9df3db1451d1574af4a27e342049a93c383a3d9f09b6d8d432af"},{"version":"c1f8dfc8ca7b781a63c32852485dac48c28124504f2b2b13f9879b215344af8e","signature":"aa5c12e20e1116d51fa9999fd29a0ab06b5afa02f0bd9d15a494df7c67020722"},{"version":"183c11473cd567bc10ae010c8db5e4205a91754bc0a3cb6db7dcdcd644d137b6","signature":"b1dff8567dd02ba98547471feb38597022193ca26b6ce853d28d2092b36669f6"},{"version":"3ad9bfae4f00f00883a39ee4d13f786bc4af5cee49875b7034d6ed666bf40371","signature":"264dc4b816ffdeabcb52d9698df80b809d3d616e1d394b9891f8163acdc69140"},{"version":"733533de34b481f9c135cdf2183f039d1da5f70f45149ada7bb904418a3b07d2","signature":"371e086669f0f6b46e65758fe11cfb12a945c1b5f662ca60a70fadab6252aa6e"},{"version":"312605bae92cef4d14e1c11bd9d624a907302f2360c43764ccb63437b8eabce0","signature":"e6c6e5af757c1a353c031cbd0e917586fe9ee9767a80937c7763718431cefb17"},{"version":"8c1ccf55df4d01257496b438fa372bea784e018d9b7327bd1fbeb90ad1f0aaf9","signature":"edc33c8870895bd9b0255d99fc8213efeddc0acf0031b7fa6cd8cc372f446c46"},{"version":"89921042d23f5b525d2b269e3754f7fdccd12dccd4491363248c5e79bb88e02e","signature":"718f81461dec01a5272f4ccf5efb006306f28ccd8f70b3c49e0221b9db21fdbe"},{"version":"05874ba226e10081ca4c853d185e1f88701abdc601bd661f00338a730805824b","signature":"29ffac17044f96c464965f99ecb812783d5b524d6187cc9cc55b784abdf95fb2"},{"version":"59d217109d70b75a91c57fee208242e56bb535687f2092c373885aae511fc42e","signature":"c742b17e5e316108f45f793bdfe9e074092b12cb6e8d8a1683f6c62af6b0465c"},{"version":"aff24855ea3fba97546860cda5e8d435e40a5d2f02b93342dcc7d8b694131c05","signature":"ec73711a5e3798a36346e15ad1c2c3521a5e3e1515436835fd37986c8cd3c7fe"},{"version":"0bdea1bda3f515107bb8bd049c8d887b0f8768604f59df068ef670be132af0e2","signature":"86560e74fe9e020d1b9575c10e9771da96b9b88d626ea3d493ddd666c34e433e"},{"version":"54b5773a19df91be0ec460673dc738ab26adf9e65a6218b18299766ab0b5e6b9","signature":"0916730db0217705796fd963b8b7bdcb1110875b041c011f4eecf98a5a65c4b3"},{"version":"78994048e6aea66f70193aa782a4f21274e4fb0cbf8df2c95a44fdf5965e5f7c","signature":"230b92109899c877560d7171556a90e262d04c1fc30e3fb4f10f066bd9f06e38"},"40b6395de64bf52ad2043d18ae16bcca9b437a874dcb4c1c6829448b260a69ad"],"root":[[98,100],[119,182]],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[101,1],[107,2],[113,3],[105,3],[112,3],[110,2],[111,4],[106,5],[109,4],[108,5],[115,4],[114,1],[118,6],[103,4],[116,4],[102,7],[97,8],[88,9],[90,10],[94,11],[91,12],[92,13],[87,14],[89,15],[43,16],[82,17],[73,18],[58,19],[55,18],[80,20],[56,18],[78,21],[57,22],[83,23],[59,24],[66,22],[61,18],[60,25],[75,22],[81,26],[79,22],[62,18],[70,22],[71,22],[63,25],[69,22],[64,25],[67,22],[68,18],[76,22],[65,18],[72,22],[74,22],[46,27],[53,28],[85,29],[54,30],[95,31],[44,27],[45,32],[50,33],[51,34],[49,35],[40,36],[96,37],[98,38],[100,38],[121,39],[124,40],[120,41],[125,42],[119,43],[126,43],[130,44],[127,45],[122,41],[129,46],[128,47],[123,48],[131,38],[99,38],[132,38],[138,49],[134,50],[137,51],[136,52],[139,38],[142,53],[140,43],[143,54],[141,55],[147,56],[144,38],[146,57],[182,58],[148,38],[149,43],[150,59],[155,60],[151,61],[153,62],[152,63],[154,63],[133,38],[135,38],[158,64],[156,38],[161,65],[159,38],[160,38],[157,43],[166,66],[172,67],[170,68],[145,43],[173,69],[174,70],[175,71],[176,72],[179,73],[168,74],[171,75],[169,76],[178,77],[165,78],[177,79],[162,38],[163,38],[181,80],[164,43],[180,81],[167,82]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../src/collections.ts","../src/errors.ts","../src/culture/bidi.ts","../../../node_modules/@internationalized/date/dist/types/src/calendardate.d.ts","../../../node_modules/@internationalized/date/dist/types/src/types.d.ts","../../../node_modules/@internationalized/date/dist/types/src/queries.d.ts","../../../node_modules/@internationalized/date/dist/types/src/utils.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/gregoriancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/japanesecalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/buddhistcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/taiwancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/persiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/indiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/islamiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/hebrewcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/ethiopiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/createcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/conversion.d.ts","../../../node_modules/@internationalized/date/dist/types/src/string.d.ts","../../../node_modules/@internationalized/date/dist/types/src/dateformatter.d.ts","../../../node_modules/@internationalized/date/dist/types/src/index.d.ts","../src/culture/digits.ts","../src/culture/culture.ts","../src/culture/calendar.ts","../src/culture/numbers.ts","../src/culture/text.ts","../src/culture/coordinates.ts","../src/culture/date-format.ts","../src/culture/duration.ts","../src/culture/natural-date.ts","../src/culture/strings.ts","../src/culture/relative-time.ts","../src/culture/index.ts","../src/enums/index.ts","../src/exec/diagnostics.ts","../src/services/abort.ts","../src/exec/options.ts","../src/services/clock.ts","../src/exec/trace.ts","../src/exec/safe-executor.ts","../src/exec/index.ts","../src/icons/generated/glyph-svg.ts","../src/icons/glyph.ts","../src/icons/icon.ts","../src/icons/glyph-slots.ts","../src/icons/icon-fonts.ts","../src/icons/packs.ts","../src/theme/color.ts","../src/icons/svg.ts","../src/icons/index.ts","../src/layout/index.ts","../src/route/address.ts","../src/route/catalogue.ts","../src/route/journey.ts","../src/route/sink.ts","../src/route/resolve.ts","../src/route/view.ts","../src/route/index.ts","../src/services/feedback.ts","../src/services/preferences.ts","../src/services/contracts.ts","../src/services/keys.ts","../src/services/motion.ts","../src/services/index.ts","../src/tokens/generated/metrics.ts","../src/tokens/generated/palettes.ts","../src/tokens/layout-metrics.ts","../src/tokens/css-vars.ts","../src/theme/aliases.ts","../src/tokens/shape.ts","../src/theme/oklch.ts","../src/theme/theme.ts","../src/theme/brand.ts","../src/theme/recipe.ts","../src/theme/appearance.ts","../src/theme/contrast.ts","../src/theme/control-colors.ts","../src/theme/css-color.ts","../src/theme/design.ts","../src/tokens/derived.ts","../src/theme/variants.ts","../src/theme/index.ts","../src/tokens/root.ts","../src/tokens/index.ts","../src/index.ts"],"fileIdsList":[[102],[101,102,105],[101,102,104],[101,102],[101,102,104,105],[101,102,103,105,106,107,108,109,110,111,112,113,114,115,116,117],[101],[40,95,96],[41,85,86,87],[52],[41,77,86,87,88,89,91,92,93],[41,85,86,87,89,90],[85,87],[41,85],[48,77],[42],[43],[50,54],[46],[40,50,54,55,56,57,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79],[46,50,54,77],[46,50,54],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79,80,81,82],[57,58],[46,50,54,58],[46,60,63],[45],[47,51,52,94],[43,46,47,48,50,52,53,54,83,84],[43,46],[51,85,94],[44,85],[45,46,54],[44,45,49,50],[48,85],[37,38,39],[40],[97],[97,99,118,120],[97,119,122,123],[97,99,119],[97,99,119,120,121],[97,99],[97,100,119,120,121,122,123,124,125,126,127,128,129],[97,121,123],[97,99,121,125,128],[97,99,120,122],[97,119,122],[97,132,134,136,137],[97,99,133],[97,99,128,132,133,134,135,136],[97,132,135],[97,99,141],[97,99,140,141],[97,99,140],[97,139,140,141,142,143,144,146],[97,99,139,140,145],[97,98,99,130,131,138,147,148,155,161,179,181],[97,99,149],[97,149,150,151,152,153,154],[97,149,150],[97,149,150,152],[97,149],[97,99,133,135,152,156,157],[97,133,135,156,157,158,159,160],[97,163,165],[97,99,145,163,167,169,170,171],[97,145,163,168,169],[97,145,163],[97,145,169],[97,145,168],[97,145,163,167,169,175],[97,145,166,168,169,170,171,172,173,174,175,176,178],[97,145],[97,99,163,167,168,169,170],[97,99,145,163],[97,131,145,163,165,177],[97,162,163,164],[97,145,163,165],[97,162,163,164,165,167,177,180],[97,163,165,167,177],[97,165]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"42204f4543c2a8d92bdee756d5e3f09e2612497ad26b5c36a285d99d34efa377","signature":"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f"},{"version":"18609e84384328c186664b8c5b407e379ee197a4bc40d0e985b5c8050ce29df7","signature":"ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26"},{"version":"714560fb0e2ff57d67dcb3337a40ed0d9acddd7bcfad0e80ca3f0da9537dadaf","signature":"577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851"},{"version":"217c6f6adcf5111e57a516f20bb0f3624f4a0c8c95b4dfd757b2c191439d3aa4","impliedFormat":1},{"version":"302d0816f71d30d6615895a696aab24cf074ac8e9d5b90021c9a4a29f4121d27","impliedFormat":1},{"version":"a68e0e4868a1f61702c5b91cc2b0437168acc49e318896a891368f52e0420781","impliedFormat":1},{"version":"eb57169d1ef4957f9322372942255786231714bfd3475dec56980d4075a99bb8","impliedFormat":1},{"version":"d13b4c54324181a93a23ce284b3a7a1a2148a35aecc95c562353e28a799cbeab","impliedFormat":1},{"version":"3ec9cc2c9621174a735593a03b48415ce4e0e4002a1fd5e56fffa029739561c5","impliedFormat":1},{"version":"a9b763da625de15e560fa1d58de51694c5cc45ac84f942bf85bd022b03806d9b","impliedFormat":1},{"version":"801d799959670d8a15b3dfc95d4b11dc2a0dbdb288c1de56404022ee45206302","impliedFormat":1},{"version":"dc1897f61ef7cd55f6e7572332ff23225661fa8814f9f2137655a724445dfcc9","impliedFormat":1},{"version":"af4a925b523e9c391ee4d4451cf658849e9d92e2c6fb63ac39024b6264916751","impliedFormat":1},{"version":"d0139e18847aa6b6e33b8b8fa43ca8c6fc24baa26cfc6b845078500d5810e392","impliedFormat":1},{"version":"4d22f9e46854d0e44f827c33ed9b7da2d407a4ef6dc962a53345b1f9d0c75b13","impliedFormat":1},{"version":"6c60775bbec04bff8661a7601d0fe26e696dbd1d5287ffd7cba68e8978b4cf4c","impliedFormat":1},{"version":"1185a5e4d82d7b64bd5438019fcd6eec765a64f0cc36c3af738c5ae317c7b957","impliedFormat":1},{"version":"bf4a94dcf6335c0bb4ab927fb56a646ea9ac57123b2677c2eb9841302dc3f1da","impliedFormat":1},{"version":"10175cdd19d960f50473c229d98659a5b2534a48bd86acf647e8f2878aa25d29","impliedFormat":1},{"version":"7721b07afcc035f4aff3af52d1a982d7fbd2525a9ab82b197b67d8eefc915de6","impliedFormat":1},{"version":"e943098dc1cc3574e0d903a7ac2d90d6863d243dea9295b4a8fd34223a8277e1","impliedFormat":1},{"version":"a142f5afe12787e110a2e7ff7ee4a02647c022ff0839e7c7ae0f4a41278ae1f1","signature":"44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef"},{"version":"7db764083fb927c05340e42cae128a68b53ce9d4bddfc7845e4f7c4d22772a9f","signature":"d5621f942ab05c1c3594b5b59070c2f44d411f01ba97eae6bd60cd99ab6be102"},{"version":"bdfd4a2c14afeeb21b587929fcf19c8f90ef4b3b659415724b1fcb4375b537b9","signature":"69af30b9df408f844bd30e26ade1ba783c7624bd505ecef61a7e178624ece0eb"},{"version":"2c0754ee9b1637e850da1e2fa4e7b98e7eb30fc2b10a84c42fe33d9302383038","signature":"2064567cac7c44696477d8faeb79ec714624c341bee71ea7237ea2ef2e26e8a4"},{"version":"06578cddad0e8f04a1e9e2c5b050a9368e7d1b5effe29fca0fe3ae03b6a38d61","signature":"8af9ba23355c079b2d1b8d0abf6f171dcc51fb5040fbce39e41cc1fd008cb3c6"},{"version":"3ac0b6ea92d871267625ea34f72a3090a7638a1d01c466c0ba7666e63c54c586","signature":"9d4e2786d2e8c5c304e5f5f282f38deff75dddf26d89e53c1c4872a7f9a7ecbc"},{"version":"521f08c786cd4cdaab2da57ce3dd6454f47a8edc501f8ba36c9b6ce4e223b6a6","signature":"3dd51a4b01e4a63709253bf28547f961d6bc64df7b7ced76bc0771800446ecd4"},{"version":"6c8dfe4a5ac25365b0c5c0817051732acead3f788f3567815ec775029b1661d2","signature":"28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a"},{"version":"24f4573a7b128e7a5f50de724a02ab69b27df707cdcfe044e6df2cccd3afe7c9","signature":"36f2fc7f6b07a9966273bda82f2b0b450b42d3320a9edaf91730c333ad86e257"},{"version":"b67192c27290fe55623013054f6c0ff6a63311e1266467c2f675dc4d7aab93b8","signature":"07477fef265592fa976f17bca69f4d03c112e321357c49d17232b5b5e493caf5"},{"version":"7bb7ff36e4fae5f3f2eeb2d1e70b46fac0412da4e4b65efd28fc95e5ba622995","signature":"ddb01c2474a47c2411bde75e969c547fd52dd0de9d39837970a6ec5effea934f"},{"version":"6ae5951518734cdb23962dd5f23d745ba729d6d5026b2b41194d0c8bc95f739b","signature":"1018d59d45ae46221f677d09749ba2a98fc0adc11871eac85aacb4564fa3da1d"},{"version":"e983009f8ace928b08216908294b679b05ba261050e72803bfda43726b2219aa","signature":"5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7"},{"version":"16307e253df4bb417223e5814bcc5742d1b7d9b893bd72418b8cfe8e6f7ab474","signature":"abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018"},{"version":"cc74809c9fbebdf300941acce9a07ea6ff52bf91840e738014d4dc2645f153bb","signature":"f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c"},{"version":"38ccbb46155bf41c02e47d4bd2167b1a0f6b5429be49596da7e6b203cd7176eb","signature":"db505b070be7771c50bb80800e4a16333bea91619030d33e9d1b1d6d245fde72"},{"version":"3c106b0a8bab93d06df0fb9fb79a4814e9d333aca28138f2e8f053f9260cea38","signature":"d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93"},{"version":"23f824bd861a6cf696a4571ffeca7cd5130ff1b4d30ade235d6fed7fbc6fc78f","signature":"cefcb1f078d33a40c707d4a239ee518a595d7553b4205a4a23c1bf84a743a94e"},{"version":"5ab239682bfcdf7c0d429cfed2f0bd83489103ffab0e2be6b6f3014af19dc316","signature":"4f83143f730ad8fd66ec8f779b2f43399ed4b84aec6f5df5fdc4a2436739e934"},{"version":"4719b38ecf1f698d62ba291298047877c04dbc1848a27307a4edeaeee1bc66c7","signature":"830e8c15e2893c5864835fe97bad3fdc5d46bb9b72a66851365b8411347dda10"},{"version":"f2175ae864cb2550da788b15fc4a39aa398df0665466213d25371c5d7b685c21","signature":"b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9"},{"version":"26c1a7b48b53476c1dc0e107d0b0fe71b6148f4e320f660a0bfb7d20e67c1835","signature":"068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf"},{"version":"3b014f41d56107748e41921e610181827f86ee0be4950bb2bea562681b46a072","signature":"831a6d491136030d2bc354358087a756bb67ae7118310122dd7c2c2fcbfd6bc0"},{"version":"03b57a8957f6cf8905df145665b4e64b8368c98e8b6802f8cff765ffc25e27c8","signature":"2b8a3fa14f4b24cbb3c2c783ae0805bc1a857cdf7d35308956f3660ef0229c3c"},{"version":"dccbd3d8cd4cf4972fe4918565ce6376160aeae979ca07a49fd7809c858f5c64","signature":"62412b4c4aa6d31b2179073bbfa02be1029f66b852d0a1d21bcb936b263d496c"},{"version":"f1172c2e3d40c9560d42e228cc14af529d8353de8df93caea82ce03fdffe4464","signature":"7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db"},{"version":"4e86b93241304e96d9fdc6554c7bf88dac95b8ea2484327a899a677a25d5e5ca","signature":"c15fea45b893c73bcad76ae565d59a0472ae0f74713ead9a9e7eb37085260c09"},{"version":"c71d509a443c45af8cd7bd84ea979bd5410677deaaf1983921949cb4cd952a05","signature":"344f7de9b0f6fa5ff42d99bac404c169596a2272a8b3d225beec056e4106bcb9"},{"version":"4815ef09b602fc55d4316ff4f04a7ead013f3827fcdd2436c3179a90ad9a45b9","signature":"ee2cc74d84f07861cccd51753c16296dfa24d6a19443262b4ec957bd451c46eb"},{"version":"9633cfd1413933ac2b54fc9959dc1591dc7b3d3b502b1fa3b3165407adb99002","signature":"cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e"},{"version":"52ba4ecb0b6a0c7250b7a10edf12ed75bafeb7ce812ae78255e3a149658dfe41","signature":"0fe3cc2e808353835af39798e6e169bbc1ce0cf473122316a019376a1d6d98cb"},{"version":"6069d1262128233eb04fb50264af01eb16258a8ba9a5bef9ebbaa8133459ec91","signature":"67b7d490a2cf3547f783c6f8e3019a6864f12cc657d17cf378146e7073cceb0c"},{"version":"b5f6738fc61eefd5acebabba48278250c0de84074f5c04a4c60414554d8f672b","signature":"6365c6701ad1cf8d99205387000a0324a573890107b2f475fd6a82174f0389c3"},{"version":"11fd46a411f0b66dd99a50a2274a73929d973614a5fa81bb9fb51aa6ee0cce92","signature":"d89fd83960c2343d5af55b3c174b5997272cd89af982d41bc21af8b8332cf149"},{"version":"79e9f560eae83744faa3e53154ee9bdb9f3941506eadd8d3a87935b2f90ccf4a","signature":"86a386c8741a08a24b2491c0d160bc2ee271b728c1f152d6705ffd69024679ee"},{"version":"10cf6b1e023bbb169c90ad7ff1c792552bdb73baf9f277ee1ca3e213b9b37452","signature":"49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3"},{"version":"1238f61c8db8e5ab8beaf5a9dbe5cad66661666e4e944fe92c38694c6a20cc1c","signature":"6f8692b9b0416b85506884f641a30a8f75b0b035c9948020a7117ca2faa6a840"},{"version":"b278c7dbac38a0c57ebcde6b848e7cd017a59f9ca770d9aaa4c83d6c09cf86ef","signature":"cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757"},{"version":"cb8bba022b800c1acb8ef8bfe465bfef7e43d22d06f20a8d6e7503aca0f4d570","signature":"ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669"},{"version":"69c39cdb2e91af538c7e6f54dd653864e0bc3eb765ba4f394d80f945eb1bfdcf","signature":"fd74286e0037339f88fdc437ede3c31139164faf238651e54abb805732d4b541"},{"version":"5e195c4349be7791fad891f93616246479ef54474df0bd53523ff6986535d859","signature":"ced97526e899f0222df6d805e008cd5bc63fee326838a9002919453f9a2a8c9b"},{"version":"db8a43eda6f42311a421d8839efe110a9436be9bc55eb5cd9ccd53c687b52537","signature":"216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d"},{"version":"94b5279df6c3abe97e185b85128e29c68da26025d99317deb539810f628a36ce","signature":"f50eafec22168e69b6138149fbee4eacb5dbd53fbc15f9daa37558705d1a6bc7"},{"version":"028144708663445c29ad9ca6be95694108a6d4decaff0709a9245977fef98e8e","signature":"ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3"},{"version":"21c4b66fbb8ad882f52c2825c45cb59ced1017b9bfc531fb8a0ef60d1240b882","signature":"faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7"},{"version":"fe66054b645111cf483c589411e2bd9e2c0ccbde0ba365e029c6c20653f02112","signature":"298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33"},{"version":"d615cba0a460f5568ce3473a1434f6ccf4511042824ce281682e499a95a676c8","signature":"1862daa6bc69b267a2b595149c5bced13ce2440d0d6625d291a5450d9d3118ae"},{"version":"4c3cbd29af3564f4aca3daaf5ca047f485b217af41f529815002a98933dab476","signature":"ed24498d7fe499efeb2a3f2df83a29cd3b8b83a982d01e7d73f4cc0166e3982b"},{"version":"4cad49c0abb6ef01a06892e461a9c03f61207fcb1cd90aed9ffd1953aebe582a","signature":"15d3a796bb9e54d4712a6a461964c8ecfd7182b09714f3bd7d0b9d954fe3393b"},{"version":"3cfad95bc4e3a7cae2da5cb4b5747145754f734c50aed196f681c08081f4e61a","signature":"93d15026bf4213d204b0ed4bd102a82945c519a716d51c245dca01d6ca7d0222"},{"version":"c1f8dfc8ca7b781a63c32852485dac48c28124504f2b2b13f9879b215344af8e","signature":"aa5c12e20e1116d51fa9999fd29a0ab06b5afa02f0bd9d15a494df7c67020722"},{"version":"183c11473cd567bc10ae010c8db5e4205a91754bc0a3cb6db7dcdcd644d137b6","signature":"b1dff8567dd02ba98547471feb38597022193ca26b6ce853d28d2092b36669f6"},{"version":"3ad9bfae4f00f00883a39ee4d13f786bc4af5cee49875b7034d6ed666bf40371","signature":"264dc4b816ffdeabcb52d9698df80b809d3d616e1d394b9891f8163acdc69140"},{"version":"733533de34b481f9c135cdf2183f039d1da5f70f45149ada7bb904418a3b07d2","signature":"371e086669f0f6b46e65758fe11cfb12a945c1b5f662ca60a70fadab6252aa6e"},{"version":"312605bae92cef4d14e1c11bd9d624a907302f2360c43764ccb63437b8eabce0","signature":"e6c6e5af757c1a353c031cbd0e917586fe9ee9767a80937c7763718431cefb17"},{"version":"8c1ccf55df4d01257496b438fa372bea784e018d9b7327bd1fbeb90ad1f0aaf9","signature":"edc33c8870895bd9b0255d99fc8213efeddc0acf0031b7fa6cd8cc372f446c46"},{"version":"89921042d23f5b525d2b269e3754f7fdccd12dccd4491363248c5e79bb88e02e","signature":"718f81461dec01a5272f4ccf5efb006306f28ccd8f70b3c49e0221b9db21fdbe"},{"version":"05874ba226e10081ca4c853d185e1f88701abdc601bd661f00338a730805824b","signature":"29ffac17044f96c464965f99ecb812783d5b524d6187cc9cc55b784abdf95fb2"},{"version":"59d217109d70b75a91c57fee208242e56bb535687f2092c373885aae511fc42e","signature":"c742b17e5e316108f45f793bdfe9e074092b12cb6e8d8a1683f6c62af6b0465c"},{"version":"aff24855ea3fba97546860cda5e8d435e40a5d2f02b93342dcc7d8b694131c05","signature":"ec73711a5e3798a36346e15ad1c2c3521a5e3e1515436835fd37986c8cd3c7fe"},{"version":"0bdea1bda3f515107bb8bd049c8d887b0f8768604f59df068ef670be132af0e2","signature":"86560e74fe9e020d1b9575c10e9771da96b9b88d626ea3d493ddd666c34e433e"},{"version":"54b5773a19df91be0ec460673dc738ab26adf9e65a6218b18299766ab0b5e6b9","signature":"0916730db0217705796fd963b8b7bdcb1110875b041c011f4eecf98a5a65c4b3"},{"version":"78994048e6aea66f70193aa782a4f21274e4fb0cbf8df2c95a44fdf5965e5f7c","signature":"230b92109899c877560d7171556a90e262d04c1fc30e3fb4f10f066bd9f06e38"},"40b6395de64bf52ad2043d18ae16bcca9b437a874dcb4c1c6829448b260a69ad"],"root":[[98,100],[119,182]],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[101,1],[107,2],[113,3],[105,3],[112,3],[110,2],[111,4],[106,5],[109,4],[108,5],[115,4],[114,1],[118,6],[103,4],[116,4],[102,7],[97,8],[88,9],[90,10],[94,11],[91,12],[92,13],[87,14],[89,15],[43,16],[82,17],[73,18],[58,19],[55,18],[80,20],[56,18],[78,21],[57,22],[83,23],[59,24],[66,22],[61,18],[60,25],[75,22],[81,26],[79,22],[62,18],[70,22],[71,22],[63,25],[69,22],[64,25],[67,22],[68,18],[76,22],[65,18],[72,22],[74,22],[46,27],[53,28],[85,29],[54,30],[95,31],[44,27],[45,32],[50,33],[51,34],[49,35],[40,36],[96,37],[98,38],[100,38],[121,39],[124,40],[120,41],[125,42],[119,43],[126,43],[130,44],[127,45],[122,41],[129,46],[128,47],[123,48],[131,38],[99,38],[132,38],[138,49],[134,50],[137,51],[136,52],[139,38],[142,53],[140,43],[143,54],[141,55],[147,56],[144,38],[146,57],[182,58],[148,38],[149,43],[150,59],[155,60],[151,61],[153,62],[152,63],[154,63],[133,38],[135,38],[158,64],[156,38],[161,65],[159,38],[160,38],[157,43],[166,66],[172,67],[170,68],[145,43],[173,69],[174,70],[175,71],[176,72],[179,73],[168,74],[171,75],[169,76],[178,77],[165,78],[177,79],[162,38],[163,38],[181,80],[164,43],[180,81],[167,82]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var sine_gamut_vectors_namespaceObject = /*#__PURE__*/ JSON.parse('{"out":[{"x":{"l":0.6372620362788439,"c":0.15264554023742677,"h":299.9372720718384},"hex":"#9a73d9"},{"x":{"l":0.33747111558914183,"c":0.1554579257965088,"h":245.27565479278564},"hex":"#043a5f"},{"x":{"l":0.7779958367347718,"c":0.28149189949035647,"h":28.456521034240723},"hex":"#fb988a"},{"x":{"l":0.6023746877908708,"c":0.3241539001464844,"h":124.06997680664062},"hex":"#708e1b"},{"x":{"l":0.782316017150879,"c":0.0371917724609375,"h":269.29619908332825},"hex":"#aeb8d1"},{"x":{"l":0.6225244879722596,"c":5.872297286987305e-3,"h":341.4284370839596},"hex":"#898588"},{"x":{"l":0.44668701887130735,"c":0.36359801292419436,"h":282.2019910812378},"hex":"#4f02de"},{"x":{"l":0.5687549948692322,"c":0.11471095085144044,"h":209.7112798690796},"hex":"#188695"},{"x":{"l":0.6099824786186219,"c":0.21712927818298342,"h":189.69333171844482},"hex":"#0b9791"},{"x":{"l":0.3153699278831482,"c":0.08160433769226075,"h":271.3861334323883},"hex":"#232d5b"},{"x":{"l":0.46061680316925047,"c":0.06686105728149415,"h":6.254407167434692},"hex":"#784852"},{"x":{"l":0.1942587997764349,"c":0.3460905194282532,"h":305.14350414276123},"hex":"#200137"},{"x":{"l":0.28564933538436893,"c":3.1455183029174806e-2,"h":6.265779733657837},"hex":"#382428"},{"x":{"l":0.6947638299316169,"c":0.20183625221252444,"h":99.16916370391846},"hex":"#b19d27"},{"x":{"l":0.30294185876846313,"c":0.02206273078918457,"h":154.97851967811584},"hex":"#26322a"},{"x":{"l":0.3308384418487549,"c":0.02762317657470703,"h":58.96655201911926},"hex":"#413227"},{"x":{"l":0.5954642713069916,"c":0.12892732620239258,"h":325.28740882873535},"hex":"#a561a8"},{"x":{"l":0.672647786140442,"c":0.3428811073303223,"h":325.3447437286377},"hex":"#ec12f9"},{"x":{"l":0.5129297494888306,"c":1.1093616485595703e-2,"h":102.63643249869347},"hex":"#686760"},{"x":{"l":0.13680937290191653,"c":0.04718219041824341,"h":17.124145030975342},"hex":"#180103"},{"x":{"l":0.3981858938932419,"c":4.6733331680297856e-2,"h":322.96720147132874},"hex":"#543f56"},{"x":{"l":0.3964993476867676,"c":0.20218162536621095,"h":225.4452896118164},"hex":"#0c4e63"},{"x":{"l":0.3502039909362793,"c":3.5694122314453127e-3,"h":11.782502979040146},"hex":"#3c3a3a"},{"x":{"l":0.5040769711136818,"c":0.05661230087280274,"h":240.90023159980774},"hex":"#466982"},{"x":{"l":0.08605157136917115,"c":0.3609293580055237,"h":114.44440841674805},"hex":"#020200"},{"x":{"l":0.33222460746765137,"c":0.24653301239013672,"h":331.46284103393555},"hex":"#5c0457"},{"x":{"l":0.32990374565124514,"c":0.33722515106201173,"h":354.92414474487305},"hex":"#630539"},{"x":{"l":0.711390256881714,"c":0.38375225067138674,"h":107.04511642456055},"hex":"#ada713"},{"x":{"l":0.6432612895965577,"c":0.06140727996826172,"h":359.0660011768341},"hex":"#ad7e8c"},{"x":{"l":0.5995661735534669,"c":0.29003181457519533,"h":106.8691635131836},"hex":"#89840e"},{"x":{"l":0.6429947853088379,"c":0.30835990905761723,"h":172.70679473876953},"hex":"#17a486"},{"x":{"l":0.623300075531006,"c":0.2702762603759766,"h":77.83367156982422},"hex":"#b17b03"},{"x":{"l":0.8290654450654984,"c":0.3922189235687256,"h":302.02274322509766},"hex":"#d3b8fd"},{"x":{"l":0.06404447555541992,"c":0.17041817754507066,"h":131.49398803710938},"hex":"#000100"},{"x":{"l":0.8119997024536133,"c":0.108013916015625,"h":175.85472106933594},"hex":"#6cd9bf"},{"x":{"l":0.5630924224853516,"c":0.18069839477539062,"h":163.50677490234375},"hex":"#0a8b62"},{"x":{"l":0.6638044357299805,"c":0.34518280029296877,"h":31.575393676757812},"hex":"#f7533a"},{"x":{"l":0.6729522973299027,"c":0.22725577354431153,"h":198.3759641647339},"hex":"#20aaaf"},{"x":{"l":0.29339898824691774,"c":0.33246874809265137,"h":5.676970481872559},"hex":"#560124"},{"x":{"l":0.8304085846990348,"c":0.0641171932220459,"h":168.42655777931213},"hex":"#9fd5c0"},{"x":{"l":0.18086583614349366,"c":0.1928988575935364,"h":87.79831409454346},"hex":"#181100"},{"x":{"l":0.17157284021377564,"c":0.20171362161636353,"h":160.03887176513672},"hex":"#01150a"},{"x":{"l":0.41357622146606443,"c":0.18102378845214845,"h":238.14273834228516},"hex":"#0c5175"},{"x":{"l":0.46689939498901367,"c":0.08962593078613282,"h":152.8332245349884},"hex":"#2c6841"},{"x":{"l":0.8921744704246521,"c":0.07262682914733887,"h":324.09098267555237},"hex":"#f4ccf7"},{"x":{"l":0.5237624406814575,"c":0.22240076065063477,"h":249.81648445129395},"hex":"#046cba"},{"x":{"l":0.3607759714126587,"c":0.3260258674621582,"h":187.95899391174316},"hex":"#054743"},{"x":{"l":0.6911820650100708,"c":2.6310825347900392e-2,"h":71.94852948188782},"hex":"#a6998a"},{"x":{"l":0.39649307131767275,"c":0.3493018865585327,"h":112.14337348937988},"hex":"#484b0d"},{"x":{"l":0.6281540155410767,"c":0.2700222969055176,"h":292.64153480529785},"hex":"#9164fe"},{"x":{"l":0.09461586475372315,"c":0.09982081651687623,"h":355.25068759918213},"hex":"#0b0003"},{"x":{"l":0.15607986450195313,"c":0.16241990327835085,"h":143.1791067123413},"hex":"#001101"},{"x":{"l":0.3063813090324402,"c":0.2001595973968506,"h":324.4403028488159},"hex":"#4d0953"},{"x":{"l":0.6652183890342713,"c":0.2682952404022217,"h":310.3144598007202},"hex":"#c159ff"},{"x":{"l":0.6850911974906922,"c":0.22057318687438965,"h":318.71264934539795},"hex":"#d162ef"},{"x":{"l":0.16746991872787476,"c":0.15338932275772096,"h":75.0355052947998},"hex":"#180c00"},{"x":{"l":0.4727296859025955,"c":0.18114705085754396,"h":187.28312015533447},"hex":"#116963"},{"x":{"l":0.3064510464668274,"c":0.20993447303771973,"h":223.3507204055786},"hex":"#063543"},{"x":{"l":0.2232266068458557,"c":0.2640125870704651,"h":273.7353515625},"hex":"#10015a"},{"x":{"l":0.11163845062255859,"c":0.10674592256546021,"h":83.319411277771},"hex":"#080400"},{"x":{"l":0.2236182361841202,"c":0.15075218677520752,"h":291.1780571937561},"hex":"#20024e"},{"x":{"l":0.6569845438003541,"c":2.8029346466064455e-2,"h":299.42216992378235},"hex":"#938ea0"},{"x":{"l":0.3546908974647522,"c":0.38448491096496584,"h":290.0787591934204},"hex":"#421292"},{"x":{"l":0.40156346559524536,"c":0.2086184024810791,"h":292.8770112991333},"hex":"#5313ab"},{"x":{"l":0.8465822815895081,"c":0.23596005439758302,"h":34.887986183166504},"hex":"#fdbaa9"},{"x":{"l":0.20118917524814606,"c":0.2512493371963501,"h":263.0881404876709},"hex":"#010f41"},{"x":{"l":0.6671215772628785,"c":5.6905269622802734e-2,"h":134.64046597480774},"hex":"#869d79"},{"x":{"l":0.9427654385566712,"c":0.11395664215087892,"h":254.25607681274414},"hex":"#e1edfe"},{"x":{"l":0.19189057350158695,"c":0.08035527467727661,"h":200.28554677963257},"hex":"#01181a"},{"x":{"l":0.31121819019317626,"c":0.06643762588500977,"h":185.1454746723175},"hex":"#023934"},{"x":{"l":0.5591644883155823,"c":0.07505536079406738,"h":49.70786690711975},"hex":"#98674c"},{"x":{"l":0.7710992872714997,"c":0.3834397315979004,"h":141.29422187805176},"hex":"#34d910"},{"x":{"l":0.8321117639541626,"c":7.6733589172363285e-3,"h":130.97635254263878},"hex":"#c6c9c4"},{"x":{"l":0.36324617862701414,"c":0.06795930862426758,"h":275.8873951435089},"hex":"#343a61"},{"x":{"l":0.5605077385902405,"c":1.1026811599731446e-2,"h":273.6439083516598},"hex":"#72747b"},{"x":{"l":0.3686036229133606,"c":0.3542799472808838,"h":20.028462409973145},"hex":"#770d1f"},{"x":{"l":0.8582921892404557,"c":0.3294546127319336,"h":76.73589706420898},"hex":"#fbc676"},{"x":{"l":0.572768571972847,"c":0.3017428874969483,"h":20.884108543395996},"hex":"#dc193b"},{"x":{"l":0.2396857410669327,"c":0.32288353443145756,"h":184.13824081420898},"hex":"#032521"},{"x":{"l":0.36490721702575685,"c":0.3770895004272461,"h":45.812129974365234},"hex":"#662a08"},{"x":{"l":0.9315889149904252,"c":0.09553260803222657,"h":142.35638737678528},"hex":"#c4f9be"},{"x":{"l":0.18352540731430056,"c":0.11829792261123658,"h":227.99883842468262},"hex":"#01151e"},{"x":{"l":0.8598277807235718,"c":0.24577054977416993,"h":43.04709434509277},"hex":"#fdc1a9"},{"x":{"l":0.6069130927324295,"c":0.16459546089172364,"h":316.6385507583618},"hex":"#a85ec3"},{"x":{"l":0.9414015889167786,"c":0.39417476654052735,"h":64.61111068725586},"hex":"#ffe7d1"},{"x":{"l":0.8494283467531205,"c":0.367653226852417,"h":274.57902431488037},"hex":"#c0cbfb"},{"x":{"l":0.17174557447433472,"c":0.3305406212806702,"h":247.49390602111816},"hex":"#001122"},{"x":{"l":0.8972581148147584,"c":0.0658005714416504,"h":104.01762127876282},"hex":"#e4e0ae"},{"x":{"l":0.82438303232193,"c":0.1495922565460205,"h":29.238266944885254},"hex":"#ffada1"},{"x":{"l":0.12765630781650544,"c":0.1093029260635376,"h":30.801479816436768},"hex":"#170000"},{"x":{"l":0.9149996131658554,"c":0.3767241477966309,"h":227.89584159851074},"hex":"#c1eafe"},{"x":{"l":0.6401595830917359,"c":0.3220355033874512,"h":197.3734188079834},"hex":"#249fa2"},{"x":{"l":0.7809536695480347,"c":0.19331274032592774,"h":2.1508312225341797},"hex":"#fa94b1"},{"x":{"l":0.25872631035745147,"c":0.36091299057006837,"h":11.352567672729492},"hex":"#490117"},{"x":{"l":0.19188309013843535,"c":0.25576789379119874,"h":342.117862701416},"hex":"#2a011e"},{"x":{"l":0.6445787906646729,"c":0.0676156997680664,"h":265.86588978767395},"hex":"#7a8db7"},{"x":{"l":0.5154751658439637,"c":0.16787657737731934,"h":12.866663932800293},"hex":"#b32f4c"},{"x":{"l":0.8553471237421036,"c":0.16280794143676758,"h":164.28826332092285},"hex":"#46f0b3"},{"x":{"l":0.8230368852615357,"c":0.2815224647521973,"h":57.624406814575195},"hex":"#fbb37d"},{"x":{"l":0.8599192172288895,"c":0.19135613441467286,"h":315.7766389846802},"hex":"#ebbdff"},{"x":{"l":0.4861448884010315,"c":0.21305203437805176,"h":283.0018472671509},"hex":"#573ed1"},{"x":{"l":0.8061616063117981,"c":0.3327833652496338,"h":31.838765144348145},"hex":"#fca695"},{"x":{"l":0.5469121843576431,"c":0.2510732650756836,"h":20.650691986083984},"hex":"#cc2039"},{"x":{"l":0.7161126881837846,"c":0.17721896171569826,"h":320.711989402771},"hex":"#d47ae6"},{"x":{"l":0.45059574842453004,"c":0.34162611961364747,"h":255.47019481658936},"hex":"#0653a4"},{"x":{"l":0.5080709815025329,"c":0.12451701164245606,"h":188.3655309677124},"hex":"#18746e"},{"x":{"l":0.8884807467460633,"c":0.38812003135681156,"h":262.9096555709839},"hex":"#c8dbfe"},{"x":{"l":0.3007048964500427,"c":0.3238994121551514,"h":323.77511501312256},"hex":"#4d0254"},{"x":{"l":0.07152794599533081,"c":0.17750640958547592,"h":236.5101957321167},"hex":"#000104"},{"x":{"l":0.7208169341087342,"c":0.1302905559539795,"h":337.2697591781616},"hex":"#d884c2"},{"x":{"l":0.37645519971847535,"c":0.17727217674255372,"h":314.7702741622925},"hex":"#620a80"},{"x":{"l":0.1773035407066345,"c":0.04989086389541626,"h":85.33280611038208},"hex":"#180f00"},{"x":{"l":0.8535946220159532,"c":0.353165340423584,"h":326.7377758026123},"hex":"#feaefe"},{"x":{"l":0.7389421224594117,"c":0.0696101188659668,"h":157.37289547920227},"hex":"#86b899"},{"x":{"l":0.627733337879181,"c":0.39751877784729006,"h":295.42957305908203},"hex":"#9663f7"},{"x":{"l":0.7863509178161622,"c":0.3910587310791016,"h":212.53154754638672},"hex":"#0acfed"},{"x":{"l":0.8522053718566895,"c":0.11766929626464845,"h":266.81705474853516},"hex":"#bacefd"},{"x":{"l":0.6025256156921387,"c":0.29746284484863283,"h":100.38448333740234},"hex":"#91821e"},{"x":{"l":0.06068506240844727,"c":0.29400139898061756,"h":203.7970733642578},"hex":"#000102"},{"x":{"l":0.4096099853515625,"c":3.9858245849609376e-2,"h":300.6038010120392},"hex":"#4e455d"},{"x":{"l":0.8543342947959901,"c":0.1705352306365967,"h":15.370001792907715},"hex":"#fcbcbf"},{"x":{"l":0.7853826671838761,"c":0.2871882438659668,"h":81.78694725036621},"hex":"#eaae27"},{"x":{"l":0.38198004066944125,"c":0.36197934150695804,"h":115.192551612854},"hex":"#424806"},{"x":{"l":0.6880894780158997,"c":0.16206345558166504,"h":262.57500171661377},"hex":"#6397fe"},{"x":{"l":0.1254663109779358,"c":0.2880303025245667,"h":232.04120635986328},"hex":"#00080f"},{"x":{"l":0.6657553672790528,"c":0.3035617828369141,"h":323.92467498779297},"hex":"#e61af9"},{"x":{"l":0.2517544746398926,"c":0.2275966763496399,"h":56.84476375579834},"hex":"#361902"},{"x":{"l":0.35737248957157136,"c":0.10481672286987305,"h":16.062612533569336},"hex":"#681f29"},{"x":{"l":0.4633097678422928,"c":0.2761715412139893,"h":328.30671787261963},"hex":"#8f128f"},{"x":{"l":0.47087947130203245,"c":0.1730391025543213,"h":44.832844734191895},"hex":"#923e0f"},{"x":{"l":0.252251997590065,"c":0.16548674106597902,"h":10.50990343093872},"hex":"#450217"},{"x":{"l":0.49880188070237635,"c":0.32877721786499026,"h":110.43482780456543},"hex":"#666810"},{"x":{"l":0.2032247304916382,"c":3.7974476814270023e-3,"h":187.69220933318138},"hex":"#151717"},{"x":{"l":0.567247486114502,"c":0.20679283142089844,"h":26.710853576660156},"hex":"#d5292a"},{"x":{"l":0.07202332317829133,"c":0.12124955505132676,"h":43.74730110168457},"hex":"#050000"},{"x":{"l":0.48329072296619413,"c":0.09345421791076661,"h":156.6767656803131},"hex":"#286e48"},{"x":{"l":0.9138009071350098,"c":0.3414745330810547,"h":210.78266143798828},"hex":"#abf0fd"},{"x":{"l":0.14623937606811524,"c":0.20464822053909304,"h":24.312186241149902},"hex":"#1d0001"},{"x":{"l":0.7409755855798722,"c":0.13786497116088867,"h":204.77545738220215},"hex":"#14c1d0"},{"x":{"l":0.6077748060226441,"c":0.09907140731811524,"h":287.23231315612793},"hex":"#7f79bb"},{"x":{"l":0.11100823879241944,"c":0.34579573869705205,"h":97.41203784942627},"hex":"#070400"},{"x":{"l":0.08340240716934205,"c":0.14714285135269164,"h":54.41974639892578},"hex":"#050100"},{"x":{"l":0.8006263047456742,"c":0.1266099452972412,"h":3.7116193771362305},"hex":"#fc9eb6"},{"x":{"l":0.5657732602208854,"c":0.3187129497528076,"h":28.030028343200684},"hex":"#d62723"},{"x":{"l":0.9362652927637101,"c":0.0796210289001465,"h":12.509576082229614},"hex":"#fee2e4"},{"x":{"l":0.3380745589733124,"c":0.09942529201507569,"h":249.493567943573},"hex":"#053963"},{"x":{"l":0.8379454612731935,"c":0.37490272521972656,"h":244.81487274169922},"hex":"#9ad0ff"},{"x":{"l":0.3330052375793457,"c":0.03718223571777344,"h":321.9739258289337},"hex":"#3f3042"},{"x":{"l":0.5618241667747498,"c":0.220161771774292,"h":287.22978115081787},"hex":"#7452ec"},{"x":{"l":0.6448580622673036,"c":0.36583724021911623,"h":153.47175121307373},"hex":"#1ba85e"},{"x":{"l":0.6011904120445252,"c":3.9542341232299806e-2,"h":335.55349946022034},"hex":"#90788a"},{"x":{"l":0.868636155128479,"c":0.21887407302856446,"h":290.0398349761963},"hex":"#d2cdff"},{"x":{"l":0.23379719257354736,"c":0.1302735447883606,"h":264.7336435317993},"hex":"#02105a"},{"x":{"l":0.3043456196784973,"c":0.2729773044586182,"h":188.18451404571533},"hex":"#043734"},{"x":{"l":0.15591388940811157,"c":0.2751556992530823,"h":66.9723129272461},"hex":"#160900"},{"x":{"l":0.6203217774629594,"c":0.34927916526794434,"h":30.648036003112793},"hex":"#f13019"},{"x":{"l":0.5468647629022598,"c":0.3404263496398926,"h":204.59160804748535},"hex":"#1b7f88"},{"x":{"l":0.5486670732498169,"c":4.9204349517822266e-2,"h":191.90481305122375},"hex":"#4e7b78"},{"x":{"l":0.5272560715675354,"c":0.15270733833312988,"h":246.58560276031494},"hex":"#006fb5"},{"x":{"l":0.6588091969490052,"c":0.19086213111877443,"h":164.48288440704346},"hex":"#02ac7b"},{"x":{"l":0.7618682503700257,"c":0.27324681282043456,"h":355.5119562149048},"hex":"#f988b5"},{"x":{"l":0.10730485916137696,"c":0.0876278042793274,"h":277.3046851158142},"hex":"#03001a"},{"x":{"l":0.08806912899017334,"c":0.35757018327713014,"h":3.383488655090332},"hex":"#090002"},{"x":{"l":0.8304469939321281,"c":0.31934704780578616,"h":89.48797702789307},"hex":"#f3c000"},{"x":{"l":0.8862296223640442,"c":0.08858704566955566,"h":185.28138756752014},"hex":"#93ede1"},{"x":{"l":0.1387849807739258,"c":0.13825074434280396,"h":13.395552635192871},"hex":"#1a0004"},{"x":{"l":0.12034331858158112,"c":0.01718742847442627,"h":129.49090361595154},"hex":"#040702"},{"x":{"l":0.8225755453109742,"c":0.3399348258972168,"h":255.6016445159912},"hex":"#a0c8fd"},{"x":{"l":0.8761725187301637,"c":0.14168386459350588,"h":134.50655937194824},"hex":"#aeeb89"},{"x":{"l":0.3986114263534546,"c":0.16099424362182618,"h":174.5383358001709},"hex":"#0f5345"},{"x":{"l":0.3310497999191284,"c":0.05109472274780274,"h":262.12581753730774},"hex":"#273550"},{"x":{"l":0.7512737393379212,"c":0.21224770545959473,"h":261.8413209915161},"hex":"#82aefe"},{"x":{"l":0.7626965165138245,"c":1.3957643508911134e-2,"h":356.7249262332916},"hex":"#baaeb2"},{"x":{"l":0.4748494625091553,"c":3.961753845214844e-3,"h":148.62082466483116},"hex":"#5b5d5b"},{"x":{"l":0.8052881717681886,"c":0.09527988433837892,"h":98.3161461353302},"hex":"#cfc177"},{"x":{"l":0.3749668955802917,"c":0.39696898460388186,"h":272.3006057739258},"hex":"#280ab9"},{"x":{"l":0.885660457611084,"c":0.14111671447753907,"h":135.25096893310547},"hex":"#b0ee8e"},{"x":{"l":0.9467633247375489,"c":0.26878929138183594,"h":299.3448257446289},"hex":"#f0e9ff"},{"x":{"l":0.6526713371276857,"c":0.1533069610595703,"h":264.4735336303711},"hex":"#608bed"},{"x":{"l":0.20034189224243165,"c":0.06741143465042114,"h":201.65694952011108},"hex":"#011a1c"},{"x":{"l":0.6891002416610719,"c":2.4969768524169923e-2,"h":207.49046444892883},"hex":"#8aa0a3"},{"x":{"l":0.42881385087966917,"c":0.11683411598205568,"h":110.06897449493408},"hex":"#525310"},{"x":{"l":0.641694986820221,"c":0.15386357307434084,"h":123.93801212310791},"hex":"#7a9b13"},{"x":{"l":0.7821161389350891,"c":0.3224062442779541,"h":39.5267915725708},"hex":"#fc9b7a"},{"x":{"l":0.665678682923317,"c":0.3677362442016602,"h":14.019412994384766},"hex":"#fc456a"},{"x":{"l":0.7631418973207474,"c":0.37407755851745605,"h":212.7551794052124},"hex":"#18c7e3"},{"x":{"l":0.16590994596481323,"c":0.00857902765274048,"h":181.87018498778343},"hex":"#0b100f"},{"x":{"l":0.21247802972793578,"c":0.30326467752456665,"h":106.53339385986328},"hex":"#1c1a00"},{"x":{"l":0.21487646102905272,"c":0.26098366975784304,"h":246.4447546005249},"hex":"#011b30"},{"x":{"l":0.9299129366874695,"c":0.09215450286865234,"h":9.860755205154419},"hex":"#ffdfe2"},{"x":{"l":0.39025768302381036,"c":0.153403377532959,"h":127.9017162322998},"hex":"#354e02"},{"x":{"l":0.7600221395492555,"c":0.1689448356628418,"h":106.17110252380371},"hex":"#beb627"},{"x":{"l":0.28369357585906985,"c":0.18624563217163087,"h":14.453458786010742},"hex":"#530318"},{"x":{"l":0.133360293507576,"c":0.05035102367401123,"h":203.0666434764862},"hex":"#000a0c"},{"x":{"l":0.9182109951972962,"c":0.21193032264709474,"h":286.9560670852661},"hex":"#e2e1fe"},{"x":{"l":0.4345898270606995,"c":0.2815113544464111,"h":64.99395847320557},"hex":"#724511"},{"x":{"l":0.8702033430337907,"c":0.23900337219238282,"h":18.635215759277344},"hex":"#fec3c3"},{"x":{"l":0.860572174191475,"c":0.13026366233825684,"h":53.82094860076904},"hex":"#fec39c"},{"x":{"l":0.8532803207635881,"c":0.12049531936645508,"h":244.8262882232666},"hex":"#a8d5fb"},{"x":{"l":0.4278517961502075,"c":1.0628700256347656e-3,"h":69.06942369416356},"hex":"#4f4f4e"},{"x":{"l":0.47468944191932677,"c":0.11045525074005128,"h":253.75175714492798},"hex":"#2a5d98"},{"x":{"l":0.88741934299469,"c":2.3346424102783203e-2,"h":102.29311108589172},"hex":"#dcdbc9"},{"x":{"l":0.1044051766395569,"c":0.05718847513198853,"h":131.80952310562134},"hex":"#020500"},{"x":{"l":0.8080873787403108,"c":0.16978969573974612,"h":83.45129013061523},"hex":"#efb631"},{"x":{"l":0.1351350575685501,"c":4.9267935752868655e-2,"h":173.6760699748993},"hex":"#000b07"},{"x":{"l":0.522475516796112,"c":0.03278594017028809,"h":359.6157896518707},"hex":"#7a6269"},{"x":{"l":0.30888659954071046,"c":0.18639516830444336,"h":196.466703414917},"hex":"#003839"},{"x":{"l":0.833141303062439,"c":0.3193652153015137,"h":187.13690757751465},"hex":"#30e5d7"},{"x":{"l":0.8848637342453004,"c":0.19436559677124024,"h":306.52979850769043},"hex":"#e4cefd"},{"x":{"l":0.3000417470932007,"c":0.3127940177917481,"h":340.19774436950684},"hex":"#510740"},{"x":{"l":0.3159144163131714,"c":0.2963850975036621,"h":257.49438285827637},"hex":"#002f6a"},{"x":{"l":0.8149417638778688,"c":0.12285490036010743,"h":243.30313682556152},"hex":"#89cafe"},{"x":{"l":0.7583252668380738,"c":0.077561092376709,"h":230.89855313301086},"hex":"#7cbad9"},{"x":{"l":0.7268051266670228,"c":0.07609810829162598,"h":193.9252245426178},"hex":"#6ab6b5"},{"x":{"l":0.5320723533630372,"c":0.23517494201660158,"h":141.58184051513672},"hex":"#1c830c"},{"x":{"l":0.10903520584106446,"c":0.3277034878730774,"h":276.8542242050171},"hex":"#03001c"},{"x":{"l":0.1822160601615906,"c":9.847795963287354e-3,"h":157.62541875243187},"hex":"#0f1310"},{"x":{"l":0.332048761844635,"c":0.14619297981262208,"h":301.68718814849854},"hex":"#451773"},{"x":{"l":0.3076337933540344,"c":0.2637163639068604,"h":294.4714021682739},"hex":"#390c74"},{"x":{"l":0.3230459809303284,"c":0.06337857246398926,"h":108.31649422645569},"hex":"#373608"},{"x":{"l":0.6096259593963623,"c":0.12961864471435547,"h":70.67899703979492},"hex":"#b37308"},{"x":{"l":0.08681409657001496,"c":0.17596395015716554,"h":331.96913480758667},"hex":"#070006"},{"x":{"l":0.7740852832794191,"c":0.16843891143798828,"h":200.72450637817383},"hex":"#30cdd5"},{"x":{"l":0.9335415363311769,"c":1.4302253723144531e-2,"h":199.215270280838},"hex":"#dfeced"},{"x":{"l":0.22925556898117067,"c":0.09861160516738893,"h":32.52305030822754},"hex":"#3a0802"},{"x":{"l":0.6225827723741532,"c":0.06188797950744629,"h":61.845184564590454},"hex":"#a37f60"},{"x":{"l":0.8421658098697663,"c":0.29291715621948244,"h":189.22293663024902},"hex":"#29e8de"},{"x":{"l":0.7378769636154175,"c":1.5079402923583986e-2,"h":190.50731778144836},"hex":"#a0adac"},{"x":{"l":0.18972474336624146,"c":4.8162329196929934e-2,"h":93.17077875137329},"hex":"#1a1300"},{"x":{"l":0.2016613781452179,"c":0.3382057547569275,"h":288.9027500152588},"hex":"#190342"},{"x":{"l":0.7606602907180787,"c":0.18823862075805664,"h":93.86212348937988},"hex":"#d1ae14"},{"x":{"l":0.14651339054107665,"c":0.13720980882644654,"h":183.16942691802979},"hex":"#000e0b"},{"x":{"l":0.6049032330513001,"c":3.1956720352172854e-2,"h":79.94413018226624},"hex":"#8c806c"},{"x":{"l":0.16099372506141663,"c":0.2687186598777771,"h":171.98925018310547},"hex":"#01110c"},{"x":{"l":0.8329449653625489,"c":0.25492210388183595,"h":288.9737319946289},"hex":"#c6c0fa"},{"x":{"l":0.30154829025268554,"c":0.24334602355957033,"h":7.305564880371094},"hex":"#590424"},{"x":{"l":0.09707043133676052,"c":0.07504273056983948,"h":9.222925901412964},"hex":"#0c0002"},{"x":{"l":0.3892916049808264,"c":0.39860665798187256,"h":217.34965324401855},"hex":"#084d5c"},{"x":{"l":0.27560060024261473,"c":0.0217249870300293,"h":346.5602123737335},"hex":"#30242a"},{"x":{"l":0.5121365666389466,"c":0.11468491554260254,"h":245.52147388458252},"hex":"#1f6ca4"},{"x":{"l":0.06627060174942018,"c":0.07813955396413803,"h":213.23591709136963},"hex":"#000102"},{"x":{"l":0.07971125841140747,"c":0.13561235666275026,"h":168.95204544067383},"hex":"#000201"},{"x":{"l":0.09429593086242677,"c":0.13251515626907348,"h":302.8339719772339},"hex":"#05000f"},{"x":{"l":0.8019561171531678,"c":0.24423632621765137,"h":147.57638454437256},"hex":"#31e263"},{"x":{"l":0.5167488932609559,"c":0.13348784446716308,"h":172.53509044647217},"hex":"#0a7a62"},{"x":{"l":0.06284488439559936,"c":2.2582970559597015e-2,"h":260.913410782814},"hex":"#000104"},{"x":{"l":0.9094618439674378,"c":0.3172817707061768,"h":121.37648105621338},"hex":"#cdf52e"},{"x":{"l":0.12496806383132936,"c":0.3671156525611878,"h":71.45662307739258},"hex":"#0d0500"},{"x":{"l":0.7553089886903763,"c":0.3801635265350342,"h":291.93707942962646},"hex":"#b29ffc"},{"x":{"l":0.7784269213676454,"c":0.26560797691345217,"h":105.8443021774292},"hex":"#c5bc25"},{"x":{"l":0.5729546904563905,"c":0.33906130790710454,"h":238.61802577972412},"hex":"#1e81b6"},{"x":{"l":0.5993265986442566,"c":0.08352828025817871,"h":228.18153977394104},"hex":"#448aa7"},{"x":{"l":0.07029960155487061,"c":0.34810248464345933,"h":203.7942409515381},"hex":"#000203"},{"x":{"l":0.183069109916687,"c":0.10295554399490357,"h":320.08190631866455},"hex":"#210128"},{"x":{"l":0.1282755494117737,"c":0.3051769852638245,"h":55.59562683105469},"hex":"#100400"},{"x":{"l":0.7585048943758012,"c":0.22258505821228028,"h":221.81941509246826},"hex":"#2bc3ec"},{"x":{"l":0.22880967855453493,"c":0.1948817849159241,"h":204.78198051452637},"hex":"#032125"},{"x":{"l":0.14768712520599364,"c":0.13557463884353638,"h":359.29245471954346},"hex":"#1c000a"},{"x":{"l":0.24122605323791507,"c":0.30632268190383916,"h":153.1569242477417},"hex":"#042712"},{"x":{"l":0.21173795461654665,"c":0.3619922280311585,"h":183.51176261901855},"hex":"#021e1a"},{"x":{"l":0.16727540493011475,"c":0.22397109270095827,"h":31.336140632629395},"hex":"#240200"},{"x":{"l":0.5189313799142837,"c":0.1752462387084961,"h":39.363155364990234},"hex":"#b03e0e"},{"x":{"l":0.3414308339357376,"c":4.9402189254760746e-2,"h":161.1053717136383},"hex":"#1f4030"},{"x":{"l":0.19348423480987548,"c":1.3272202014923096e-2,"h":52.370688915252686},"hex":"#1a130f"},{"x":{"l":0.6728398054838182,"c":0.06410355567932129,"h":135.75570702552795},"hex":"#85a078"},{"x":{"l":0.7960643768310548,"c":0.21533279418945314,"h":302.860107421875},"hex":"#cbaaf9"},{"x":{"l":0.3559469223022461,"c":0.09838409423828126,"h":231.71607971191406},"hex":"#01425b"},{"x":{"l":0.43433609008789065,"c":0.2736381530761719,"h":299.8814392089844},"hex":"#6810b5"},{"x":{"l":0.6991426467895508,"c":0.27196655273437503,"h":245.23338317871094},"hex":"#2da5fa"},{"x":{"l":0.7515903472900392,"c":0.16862564086914064,"h":177.29461669921875},"hex":"#14caad"},{"x":{"l":0.610053825378418,"c":0.3225143432617188,"h":108.42475891113281},"hex":"#8a8817"},{"x":{"l":0.5347167968750001,"c":0.3818382263183594,"h":239.46487426757812},"hex":"#0675ab"},{"x":{"l":0.34070682525634766,"c":0.30930480957031253,"h":281.3976287841797},"hex":"#33019b"},{"x":{"l":0.6254878997802735,"c":0.14247512817382812,"h":335.8355712890625},"hex":"#bc63a8"},{"x":{"l":0.37691707611083985,"c":1.7396545410156252e-2,"h":243.40005040168762},"hex":"#3a434a"},{"x":{"l":0.8800817847251893,"c":1.8248701095581056e-2,"h":234.38177704811096},"hex":"#ccdae2"},{"x":{"l":0.1569589853286743,"c":0.04441272020339966,"h":194.73599195480347},"hex":"#001010"},{"x":{"l":0.23081264495849613,"c":0.31132355928421024,"h":178.010573387146},"hex":"#00231d"},{"x":{"l":0.10977238416671753,"c":0.3368775963783264,"h":92.19803810119629},"hex":"#070400"},{"x":{"l":0.6594075441360474,"c":0.29873056411743165,"h":45.93426704406738},"hex":"#e56719"},{"x":{"l":0.22757878601551057,"c":0.24742839336395264,"h":110.68279266357422},"hex":"#1d1e02"},{"x":{"l":0.8085759162902832,"c":7.189559936523438e-3,"h":175.3174303472042},"hex":"#bcc2c0"},{"x":{"l":0.5059188842773438,"c":0.21486434936523438,"h":298.3900451660156},"hex":"#7837cc"},{"x":{"l":0.5423471450805665,"c":0.36828308105468754,"h":17.478561401367188},"hex":"#c72443"},{"x":{"l":0.06769831478595734,"c":0.07871911376714708,"h":103.44461560249329},"hex":"#010100"},{"x":{"l":0.07629562616348268,"c":0.33254629224538806,"h":324.91194248199463},"hex":"#040005"},{"x":{"l":0.17861567735671996,"c":0.27073198556900024,"h":166.06264114379883},"hex":"#00160d"},{"x":{"l":0.8678707599639893,"c":2.6667976379394533e-2,"h":79.16766285896301},"hex":"#ddd2c0"},{"x":{"l":0.23972010016441347,"c":0.18416107892990113,"h":121.31682872772217},"hex":"#1b2300"},{"x":{"l":0.5902435660362244,"c":0.05961909294128418,"h":318.4031546115875},"hex":"#8d7294"},{"x":{"l":0.6749523401260377,"c":0.05667238235473633,"h":269.0305531024933},"hex":"#8896bb"},{"x":{"l":0.6484635949134827,"c":0.2509056568145752,"h":136.4617395401001},"hex":"#54a61d"},{"x":{"l":0.5043045163154602,"c":0.278429651260376,"h":23.27457904815674},"hex":"#bd0225"},{"x":{"l":0.551501551270485,"c":0.05250415802001954,"h":0.8845818042755127},"hex":"#8d6570"},{"x":{"l":0.4161742598284036,"c":0.06543982028961182,"h":107.68432974815369},"hex":"#504f21"},{"x":{"l":0.16174168586730958,"c":0.15848103761672974,"h":228.133807182312},"hex":"#011018"},{"x":{"l":0.3639346480369568,"c":0.32999835014343265,"h":187.31530666351318},"hex":"#054844"},{"x":{"l":0.26259735822677616,"c":0.11110168695449829,"h":89.55788612365723},"hex":"#2f2300"},{"x":{"l":0.6685794115066529,"c":0.24032220840454102,"h":257.83238410949707},"hex":"#4993fe"},{"x":{"l":0.8488195657730103,"c":0.19324541091918945,"h":158.0555820465088},"hex":"#21f29b"}],"reads":[{"h":"#c53030","o":{"l":0.544070755048354,"c":0.1859108944336646,"h":25.950308848426793}},{"h":"#316b3c","o":{"l":0.47584797209642726,"c":0.09651946238372994,"h":148.0262541646863}},{"h":"#808080","o":{"l":0.5998708272851266,"c":0,"h":0}},{"h":"#000000","o":{"l":0,"c":0,"h":0}},{"h":"#ffffff","o":{"l":0.9999999934735462,"c":0,"h":0}},{"h":"#123456","o":{"l":0.3191684244309808,"c":0.07245452220880014,"h":251.16845020805394}},{"h":"#fefefe","o":{"l":0.9970251853321407,"c":0,"h":0}}],"accent":"#33bda2"}');
|
|
2
|
+
var accent = sine_gamut_vectors_namespaceObject.accent;
|
|
3
|
+
var out = sine_gamut_vectors_namespaceObject.out;
|
|
4
|
+
var reads = sine_gamut_vectors_namespaceObject.reads;
|
|
5
|
+
export default sine_gamut_vectors_namespaceObject;
|
|
6
|
+
export { accent, out, reads };
|
package/dist/theme/oklch.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ export interface G9Oklch {
|
|
|
7
7
|
readonly alpha?: number;
|
|
8
8
|
}
|
|
9
9
|
/** A colour in OKLCH (lightness, chroma, hue): the perceptual space the brand palettes and tonal scales are built in. Cached per string. */
|
|
10
|
-
export declare function toOklch(color: G9ColorInput
|
|
10
|
+
export declare function toOklch(color: G9ColorInput, options?: {
|
|
11
|
+
readonly curve?: 'even' | 'sine';
|
|
12
|
+
}): G9Oklch;
|
|
11
13
|
/** True when the OKLCH colour is inside sRGB. */
|
|
12
14
|
export declare const isInSrgbGamut: (x: G9Oklch) => boolean;
|
|
13
15
|
/**
|
|
@@ -15,8 +17,13 @@ export declare const isInSrgbGamut: (x: G9Oklch) => boolean;
|
|
|
15
17
|
* search, 18 steps ≈ 1e-6 chroma), so a vivid brand never shifts hue when it is darkened or lightened.
|
|
16
18
|
*/
|
|
17
19
|
export declare function fromOklch(x: G9Oklch): G9Rgba;
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
+
/**
|
|
21
|
+
* OKLCH → `#RRGGBB` (or `#RRGGBBAA` with alpha < 1). `gamut: 'steps'` maps an out-of-sRGB colour by cutting chroma 10 %
|
|
22
|
+
* at a time (ShopManager's `@g9/tokens`, to the hex; opaque) instead of the default binary search.
|
|
23
|
+
*/
|
|
24
|
+
export declare function oklchToHex(x: G9Oklch, options?: {
|
|
25
|
+
readonly gamut?: 'search' | 'steps';
|
|
26
|
+
}): string;
|
|
20
27
|
/** Steps of a tonal scale (Tailwind-like names: 50 lightest … 950 darkest). */
|
|
21
28
|
export declare const g9TonalSteps: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
22
29
|
/** A step of a tonal scale: 50, 100, 200 … 900, 950. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oklch.d.ts","sourceRoot":"","sources":["../../src/theme/oklch.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,YAAY,EAAE,KAAK,MAAM,EAAgD,MAAM,SAAS,CAAC;AAEpH,mDAAmD;AACnD,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAuCD,4IAA4I;AAC5I,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"oklch.d.ts","sourceRoot":"","sources":["../../src/theme/oklch.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,YAAY,EAAE,KAAK,MAAM,EAAgD,MAAM,SAAS,CAAC;AAEpH,mDAAmD;AACnD,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QA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wBAAgB,cAAc,CAC5B,EAAE,EAAE,YAAY,EAChB,EAAE,EAAE,YAAY,EAChB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,uBAAuB,GAChC,MAAM,CAiCR;AAED,sGAAsG;AACtG,wBAAgB,UAAU,CAAC,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,YAAY,GAAG,MAAM,CAKxE;AAED,iEAAiE;AACjE,wBAAgB,QAAQ,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAmB5E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAMlF;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,SAAI,GAAG,MAAM,EAAE,CAa7F;AAID,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC;AAED,yCAAyC;AACzC,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CACtC;AAgFD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,YAAY,CAI3E"}
|
package/dist/theme/oklch.js
CHANGED
|
@@ -22,7 +22,8 @@ function oklabToLinear(L, a, b) {
|
|
|
22
22
|
];
|
|
23
23
|
}
|
|
24
24
|
const OKLCH_CACHE = new Map();
|
|
25
|
-
function toOklch(color) {
|
|
25
|
+
function toOklch(color, options) {
|
|
26
|
+
if ((null == options ? void 0 : options.curve) === 'sine') return sineOklch(color);
|
|
26
27
|
if ('string' == typeof color) {
|
|
27
28
|
const hit = OKLCH_CACHE.get(color);
|
|
28
29
|
if (hit) return hit;
|
|
@@ -83,7 +84,9 @@ function fromOklch(x) {
|
|
|
83
84
|
const ch = (v)=>fromLinear(Math.min(1, Math.max(0, v)));
|
|
84
85
|
return rgba(ch(r), ch(g), ch(b), null != (_x_alpha = x.alpha) ? _x_alpha : 1);
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
+
function oklchToHex(x, options) {
|
|
88
|
+
return (null == options ? void 0 : options.gamut) === 'steps' ? sineHex(x) : formatColor(fromOklch(x));
|
|
89
|
+
}
|
|
87
90
|
const opaque = (color)=>formatColor({
|
|
88
91
|
...toRgba(color),
|
|
89
92
|
a: 1
|
package/dist/theme/oklch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme/oklch.js","sources":["../../src/theme/oklch.ts"],"sourcesContent":["// OKLCH colour science for themes: perceptual lightness (L 0..1), chroma (C ≥ 0) and hue (H degrees). Brand palettes,\n// tonal scales, chart palettes and contrast repair all work here, because equal steps of L look equal to a person and\n// keeping H keeps a brand recognisable — something HSL lightening never did (a darkened yellow turns olive in HSL).\n// Björn Ottosson's OKLab (2020) matrices; gamut mapping by reducing chroma at constant L and H (CSS Color 4's idea).\nimport { formatColor, type G9ColorInput, type G9Rgba, getContrastRatio, getLuminance, rgba, toRgba } from './color';\n\n/** A colour in OKLCH. `alpha` 0..1 (default 1). */\nexport interface G9Oklch {\n readonly l: number;\n readonly c: number;\n readonly h: number;\n readonly alpha?: number;\n}\n\n// Channels are 0..1 (the library's G9Rgba).\nconst toLinear = (x: number): number => {\n return x <= 0.04045 ? x / 12.92 : ((x + 0.055) / 1.055) ** 2.4;\n};\nconst fromLinear = (v: number): number => {\n return v <= 0.0031308 ? 12.92 * v : 1.055 * v ** (1 / 2.4) - 0.055;\n};\n\n/** Linear sRGB (0..1 each) → OKLab. */\nfunction linearToOklab(r: number, g: number, b: number): [number, number, number] {\n const l = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);\n const m = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);\n const s = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s,\n ];\n}\n\n/** OKLab → linear sRGB (may fall outside 0..1: out of gamut). */\nfunction oklabToLinear(L: number, a: number, b: number): [number, number, number] {\n const l = (L + 0.3963377774 * a + 0.2158037573 * b) ** 3;\n const m = (L - 0.1055613458 * a - 0.0638541728 * b) ** 3;\n const s = (L - 0.0894841775 * a - 1.291485548 * b) ** 3;\n return [\n 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,\n -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s,\n -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s,\n ];\n}\n\n/** Any colour → OKLCH. */\n// Palette generation converts the same few strings hundreds of times (a brand, its scale, white, black): on PrimJS (no\n// JIT, Galaxy A21s) one brand palette cost ~60 ms before these caches (2026-11-18).\nconst OKLCH_CACHE = new Map<string, G9Oklch>();\n\n/** A colour in OKLCH (lightness, chroma, hue): the perceptual space the brand palettes and tonal scales are built in. Cached per string. */\nexport function toOklch(color: G9ColorInput): G9Oklch {\n if (typeof color === 'string') {\n const hit = OKLCH_CACHE.get(color);\n if (hit) return hit;\n const x = Object.freeze(toOklchUncached(color));\n if (OKLCH_CACHE.size > 512) OKLCH_CACHE.clear();\n OKLCH_CACHE.set(color, x);\n return x;\n }\n return toOklchUncached(color);\n}\n\nfunction toOklchUncached(color: G9ColorInput): G9Oklch {\n const { r, g, b, a } = toRgba(color);\n const [L, A, B] = linearToOklab(toLinear(r), toLinear(g), toLinear(b));\n const c = Math.hypot(A, B);\n let h = (Math.atan2(B, A) * 180) / Math.PI;\n if (h < 0) h += 360;\n // A grey has no hue: keep 0 so equality checks and interpolation stay stable.\n return { l: L, c: c < 1e-4 ? 0 : c, h: c < 1e-4 ? 0 : h, alpha: a };\n}\n\nconst EPS = 1e-6;\nconst inGamut = (rgb: readonly number[]): boolean => rgb.every((v) => v >= -EPS && v <= 1 + EPS);\n\nfunction linearOf(x: G9Oklch): [number, number, number] {\n const rad = (x.h * Math.PI) / 180;\n return oklabToLinear(x.l, x.c * Math.cos(rad), x.c * Math.sin(rad));\n}\n\n/** True when the OKLCH colour is inside sRGB. */\nexport const isInSrgbGamut = (x: G9Oklch): boolean => inGamut(linearOf(x));\n\n/**\n * OKLCH → sRGB (`G9Rgba`, channels 0..1). Out-of-gamut colours keep L and H and lose chroma until they fit (binary\n * search, 18 steps ≈ 1e-6 chroma), so a vivid brand never shifts hue when it is darkened or lightened.\n */\nexport function fromOklch(x: G9Oklch): G9Rgba {\n const l = Math.min(1, Math.max(0, x.l));\n let probe: G9Oklch = { l, c: Math.max(0, x.c), h: x.h };\n if (!isInSrgbGamut(probe)) {\n let lo = 0;\n let hi = probe.c;\n // 12 halvings: chroma to ~1e-4, finer than one step of a hex channel\n for (let i = 0; i < 12; i++) {\n const mid = (lo + hi) / 2;\n if (isInSrgbGamut({ l, c: mid, h: x.h })) lo = mid;\n else hi = mid;\n }\n probe = { l, c: lo, h: x.h };\n }\n const [r, g, b] = linearOf(probe);\n const ch = (v: number) => fromLinear(Math.min(1, Math.max(0, v)));\n return rgba(ch(r), ch(g), ch(b), x.alpha ?? 1);\n}\n\n/** OKLCH → `#RRGGBB` (or `#RRGGBBAA` with alpha < 1). */\nexport const oklchToHex = (x: G9Oklch): string => formatColor(fromOklch(x));\n\n/** A colour as opaque `#RRGGBB` (rounded), whatever its input form. */\nconst opaque = (color: G9ColorInput): string => formatColor({ ...toRgba(color), a: 1 });\n\n/** Steps of a tonal scale (Tailwind-like names: 50 lightest … 950 darkest). */\nexport const g9TonalSteps = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950] as const;\n/** A step of a tonal scale: 50, 100, 200 … 900, 950. */\nexport type G9TonalStep = (typeof g9TonalSteps)[number];\n/** A colour's tonal scale: one hex colour per step (50 lightest … 950 darkest). */\nexport type G9TonalScale = { readonly [K in G9TonalStep]: string };\n\n/** Target lightness of each step (perceptually even, darker at the end like the projects' scales). */\nconst STEP_L: Record<G9TonalStep, number> = {\n 50: 0.975,\n 100: 0.945,\n 200: 0.89,\n 300: 0.815,\n 400: 0.72,\n 500: 0.63,\n 600: 0.55,\n 700: 0.47,\n 800: 0.39,\n 900: 0.3,\n 950: 0.22,\n};\n/** Chroma kept at each step relative to the source (pale and deep tones carry less colour). */\nconst STEP_C: Record<G9TonalStep, number> = {\n 50: 0.14,\n 100: 0.28,\n 200: 0.5,\n 300: 0.72,\n 400: 0.9,\n 500: 1,\n 600: 1,\n 700: 0.92,\n 800: 0.8,\n 900: 0.66,\n 950: 0.52,\n};\n\n/** The step whose lightness is nearest to `color`'s. */\nexport function nearestTonalStep(color: G9ColorInput): G9TonalStep {\n const { l } = toOklch(color);\n let best: G9TonalStep = 500;\n for (const step of g9TonalSteps) if (Math.abs(STEP_L[step] - l) < Math.abs(STEP_L[best] - l)) best = step;\n return best;\n}\n\n/**\n * A tonal scale from one colour: same hue, lightness from the step table, chroma scaled from the source's. The source\n * itself is placed exactly at its nearest step, so the brand colour always appears in its own scale unchanged.\n */\nexport function tonalScale(color: G9ColorInput, options?: G9ScaleOptions): G9TonalScale {\n if (options?.curve === 'sine') return sineTonalScale(color);\n const src = toOklch(color);\n const exact = nearestTonalStep(color);\n const peak = src.c / STEP_C[exact];\n const out = {} as Record<G9TonalStep, string>;\n for (const step of g9TonalSteps) {\n out[step] = step === exact ? opaque(color) : oklchToHex({ l: STEP_L[step], c: peak * STEP_C[step], h: src.h });\n }\n return out;\n}\n\n/**\n * A neutral scale tinted by `color`: the brand's hue at a whisper of chroma (`tint` 0 = pure grey, 1 = 0.02 C, the\n * strongest tint that still reads as grey), so surfaces and text belong to the brand without looking coloured.\n */\nexport function neutralScale(color: G9ColorInput, tint = 0.5, options?: G9ScaleOptions): G9TonalScale {\n if (options?.curve === 'sine') return sineNeutralScale(color, tint);\n const { h } = toOklch(color);\n const c = 0.02 * Math.min(1, Math.max(0, tint));\n const out = {} as Record<G9TonalStep, string>;\n for (const step of g9TonalSteps) out[step] = oklchToHex({ l: STEP_L[step], c, h });\n return out;\n}\n\n/** Perceptual distance (ΔE in OKLab, ×100: about 2 is just noticeable). */\nexport function colorDistance(a: G9ColorInput, b: G9ColorInput): number {\n const x = toOklch(a);\n const y = toOklch(b);\n const ra = (x.h * Math.PI) / 180;\n const rb = (y.h * Math.PI) / 180;\n return Math.hypot(x.l - y.l, x.c * Math.cos(ra) - y.c * Math.cos(rb), x.c * Math.sin(ra) - y.c * Math.sin(rb)) * 100;\n}\n\n/**\n * `fg` moved in lightness (hue and chroma kept) until its WCAG contrast with `bg` is at least `min`. Goes darker on a\n * light background and lighter on a dark one; returns `fg` unchanged when it already passes. If no lightness of this hue\n * reaches `min`, returns black or white, whichever contrasts more.\n */\nexport function ensureContrast(\n fg: G9ColorInput,\n bg: G9ColorInput,\n min: number,\n options?: G9EnsureContrastOptions,\n): string {\n if (options?.method === 'steps') return stepContrast(fg, bg, min);\n if (getContrastRatio(fg, bg) >= min) return opaque(fg);\n const src = toOklch(fg);\n const bgL = getLuminance(bg);\n const ratio = (c: G9Rgba) => {\n const l = getLuminance(c);\n return (Math.max(l, bgL) + 0.05) / (Math.min(l, bgL) + 0.05);\n };\n const darker = toOklch(bg).l > 0.6;\n let lo = darker ? 0 : src.l;\n let hi = darker ? src.l : 1;\n let found: number | null = null;\n // 14 halvings: lightness to ~6e-5, below one step of a hex channel; compared in numbers, formatted once\n for (let i = 0; i < 14; i++) {\n const mid = (lo + hi) / 2;\n if (ratio(fromOklch({ l: mid, c: src.c, h: src.h })) >= min) {\n found = mid;\n // keep as close to the original lightness as passing allows\n if (darker) lo = mid;\n else hi = mid;\n } else if (darker) hi = mid;\n else lo = mid;\n }\n if (found !== null) {\n // the hex rounds: step on toward the safe side until the written colour itself passes\n for (let k = 0; k < 8; k++) {\n const hex = oklchToHex({ l: found, c: src.c, h: src.h });\n if (getContrastRatio(hex, bg) >= min) return hex;\n found = Math.min(1, Math.max(0, found + (darker ? -0.002 : 0.002)));\n }\n }\n return getContrastRatio('#000000', bg) >= getContrastRatio('#FFFFFF', bg) ? '#000000' : '#FFFFFF';\n}\n\n/** Black or white text, whichever contrasts more with `bg`, nudged toward `tint`'s hue when given. */\nexport function readableOn(bg: G9ColorInput, tint?: G9ColorInput): string {\n const dark = getContrastRatio('#000000', bg) >= getContrastRatio('#FFFFFF', bg);\n if (!tint) return dark ? '#000000' : '#FFFFFF';\n const { h, c } = toOklch(tint);\n return ensureContrast(oklchToHex({ l: dark ? 0.2 : 0.98, c: Math.min(c, 0.04), h }), bg, 4.5);\n}\n\n/** Linear interpolation in OKLCH (shorter hue arc). `t` 0..1. */\nexport function mixOklch(a: G9ColorInput, b: G9ColorInput, t: number): string {\n const x = toOklch(a);\n const y = toOklch(b);\n // A grey end has no hue: it takes the other end's, so grey → blue never sweeps through red. Otherwise the shorter arc.\n let h: number;\n if (x.c === 0) h = y.h;\n else if (y.c === 0) h = x.h;\n else {\n let dh = y.h - x.h;\n if (dh > 180) dh -= 360;\n if (dh < -180) dh += 360;\n h = (x.h + dh * t + 360) % 360;\n }\n return oklchToHex({\n l: x.l + (y.l - x.l) * t,\n c: x.c + (y.c - x.c) * t,\n h,\n alpha: (x.alpha ?? 1) + ((y.alpha ?? 1) - (x.alpha ?? 1)) * t,\n });\n}\n\n/**\n * A colour at `t` (0..1) along several stops, mixed in OKLCH — e.g. Riskara's risk spectrum\n * (`interpolateStops([calm, lime, amber, coral], score / 100)`).\n */\nexport function interpolateStops(stops: readonly G9ColorInput[], t: number): string {\n if (stops.length === 0) throw new RangeError('interpolateStops needs at least one stop.');\n if (stops.length === 1) return formatColor(stops[0] as G9ColorInput);\n const x = Math.min(1, Math.max(0, t)) * (stops.length - 1);\n const i = Math.min(stops.length - 2, Math.floor(x));\n return mixOklch(stops[i] as G9ColorInput, stops[i + 1] as G9ColorInput, x - i);\n}\n\n/**\n * `n` chart colours that start at `primary` and step around the hue circle by the golden angle (137.5°), each at a\n * lightness that reads on `background` (contrast ≥ 3, WCAG for graphics) and a chroma the scheme can carry. Neighbours\n * stay distinguishable for n ≤ 10; the same inputs always give the same palette.\n */\nexport function chartPalette(primary: G9ColorInput, background: G9ColorInput, n = 8): string[] {\n const p = toOklch(primary);\n const dark = toOklch(background).l < 0.5;\n const l = dark ? 0.74 : 0.58;\n const c = Math.max(0.09, Math.min(0.17, p.c || 0.12));\n const out: string[] = [];\n for (let i = 0; i < n; i++) {\n const h = (p.h + i * 137.508) % 360;\n // alternate the lightness a little so neighbours in a stacked chart separate\n const li = l + (i % 2 === 0 ? 0 : dark ? -0.06 : 0.07);\n out.push(ensureContrast(i === 0 ? opaque(primary) : oklchToHex({ l: li, c, h }), background, 3));\n }\n return out;\n}\n\n// ------------------------------------------------------------------------------- the sine curve (ShopManager's)\n\n/** Options of {@link tonalScale} and {@link neutralScale}. */\nexport interface G9ScaleOptions {\n /**\n * `'even'` (default): the library's step table, chroma scaled per step from the source. `'sine'`: a lighter, cleaner\n * table whose chroma falls off along a sine towards white and black (ShopManager's `@g9/tokens` curve, reproduced to\n * the hex), with gamut mapping by 10 % chroma steps, as that design system measured its recipes against it.\n */\n readonly curve?: 'even' | 'sine';\n}\n\n/** Options of {@link ensureContrast}. */\nexport interface G9EnsureContrastOptions {\n /**\n * `'search'` (default): the closest passing lightness (a binary search), else black or white. `'steps'`: lightness\n * moved in 0.02 steps (darker on a background whose luminance is over 0.18), the first passing step, else the 40th\n * (ShopManager's `@g9/tokens` contrast repair, reproduced to the hex).\n */\n readonly method?: 'search' | 'steps';\n}\n\n/** The sine curve's lightness per step. */\nconst SINE_L: Record<G9TonalStep, number> = {\n 50: 0.975,\n 100: 0.945,\n 200: 0.89,\n 300: 0.81,\n 400: 0.715,\n 500: 0.625,\n 600: 0.54,\n 700: 0.455,\n 800: 0.375,\n 900: 0.295,\n 950: 0.225,\n};\n\n/** The sine curve's colour → OKLCH: a hue below 1e-5 chroma reads as 0, as in the curve's source. */\nfunction sineOklch(color: G9ColorInput): G9Oklch {\n const { r, g, b } = toRgba(color);\n const [L, A, B] = linearToOklab(toLinear(r), toLinear(g), toLinear(b));\n const c = Math.sqrt(A * A + B * B);\n return { l: L, c, h: c < 1e-5 ? 0 : ((Math.atan2(B, A) * 180) / Math.PI + 360) % 360 };\n}\n\n/** The sine curve's OKLCH → `#RRGGBB`: chroma cut by 10 % at a time (at most 24) until inside sRGB (±1e-4). */\nfunction sineHex(x: G9Oklch): string {\n const fits = (lin: readonly number[]) => lin.every((v) => v >= -1e-4 && v <= 1 + 1e-4);\n let c = x.c;\n let lin = linearOf({ l: x.l, c, h: x.h });\n for (let i = 0; i < 24 && !fits(lin); i++) {\n c *= 0.9;\n lin = linearOf({ l: x.l, c, h: x.h });\n }\n const ch = (v: number) => fromLinear(Math.min(1, Math.max(0, v)));\n return formatColor(rgba(ch(lin[0]), ch(lin[1]), ch(lin[2]), 1));\n}\n\n/** A colour that does not parse gives the curve's default brand (a violet), as its source did. */\nfunction sineBase(color: G9ColorInput): G9Oklch {\n try {\n return sineOklch(color);\n } catch {\n return { l: 0.55, c: 0.15, h: 280 };\n }\n}\n\nfunction sineStep(l: number): G9TonalStep {\n let best: G9TonalStep = 500;\n let distance = Number.POSITIVE_INFINITY;\n for (const step of g9TonalSteps) {\n const d = Math.abs(SINE_L[step] - l);\n if (d < distance) {\n distance = d;\n best = step;\n }\n }\n return best;\n}\n\nfunction sineTonalScale(color: G9ColorInput): G9TonalScale {\n const base = sineBase(color);\n const out = {} as Record<G9TonalStep, string>;\n for (const step of g9TonalSteps) {\n const l = SINE_L[step];\n const curve = Math.sin(Math.PI * Math.min(1, Math.max(0, (l - 0.12) / 0.9)));\n out[step] = sineHex({ l, c: base.c * (0.25 + 0.75 * curve), h: base.h });\n }\n out[sineStep(base.l)] = sineHex(base);\n return out;\n}\n\nfunction sineNeutralScale(color: G9ColorInput, tint: number): G9TonalScale {\n const base = sineBase(color);\n const c = Math.min(0.03, base.c * 0.2) * Math.min(1, Math.max(0, tint));\n const out = {} as Record<G9TonalStep, string>;\n for (const step of g9TonalSteps) out[step] = sineHex({ l: SINE_L[step], c, h: base.h });\n return out;\n}\n\n/**\n * Neutrals of a fixed hue and chroma, whatever the brand (warm paper, cool steel), on the sine curve's lightness\n * steps (ShopManager's `fixedNeutralScale`).\n */\nexport function fixedNeutralScale(hue: number, chroma: number): G9TonalScale {\n const out = {} as Record<G9TonalStep, string>;\n for (const step of g9TonalSteps) out[step] = sineHex({ l: SINE_L[step], c: chroma, h: hue });\n return out;\n}\n\nfunction stepContrast(fg: G9ColorInput, bg: G9ColorInput, min: number): string {\n if (getContrastRatio(fg, bg) >= min) return opaque(fg);\n let base: G9Oklch;\n try {\n base = sineOklch(fg);\n } catch {\n return typeof fg === 'string' ? fg : opaque(fg);\n }\n const darker = getLuminance(bg) > 0.18;\n let best = opaque(fg);\n for (let i = 1; i <= 40; i++) {\n const l = Math.min(1, Math.max(0, base.l + (darker ? -1 : 1) * i * 0.02));\n best = sineHex({ l, c: base.c, h: base.h });\n if (getContrastRatio(best, bg) >= min) return best;\n }\n return best;\n}\n"],"names":["toLinear","x","fromLinear","v","linearToOklab","r","g","b","l","Math","m","s","oklabToLinear","L","a","OKLCH_CACHE","Map","toOklch","color","hit","Object","toOklchUncached","toRgba","A","B","c","h","EPS","inGamut","rgb","linearOf","rad","isInSrgbGamut","fromOklch","_x_alpha","probe","lo","hi","i","mid","ch","rgba","oklchToHex","formatColor","opaque","g9TonalSteps","STEP_L","STEP_C","nearestTonalStep","best","step","tonalScale","options","sineTonalScale","src","exact","peak","out","neutralScale","tint","sineNeutralScale","colorDistance","y","ra","rb","ensureContrast","fg","bg","min","stepContrast","getContrastRatio","bgL","getLuminance","ratio","darker","found","k","hex","readableOn","dark","mixOklch","t","_y_alpha","_x_alpha1","dh","interpolateStops","stops","RangeError","chartPalette","primary","background","n","p","li","SINE_L","sineOklch","sineHex","fits","lin","sineBase","sineStep","distance","Number","d","base","curve","fixedNeutralScale","hue","chroma"],"mappings":";AAeA,MAAMA,WAAW,CAACC,IACTA,KAAK,UAAUA,IAAI,QAAS,AAACA,CAAAA,CAAAA,IAAI,KAAI,IAAK,KAAI,KAAM;AAE7D,MAAMC,aAAa,CAACC,IACXA,KAAK,YAAY,QAAQA,IAAI,QAAQA,KAAM,KAAI,GAAE,IAAK;AAI/D,SAASC,cAAcC,CAAS,EAAEC,CAAS,EAAEC,CAAS;IACpD,MAAMC,IAAIC,KAAK,IAAI,CAAC,eAAeJ,IAAI,eAAeC,IAAI,eAAeC;IACzE,MAAMG,IAAID,KAAK,IAAI,CAAC,eAAeJ,IAAI,eAAeC,IAAI,eAAeC;IACzE,MAAMI,IAAIF,KAAK,IAAI,CAAC,eAAeJ,IAAI,eAAeC,IAAI,eAAeC;IACzE,OAAO;QACL,eAAeC,IAAI,cAAcE,IAAI,eAAeC;QACpD,eAAeH,IAAI,cAAcE,IAAI,eAAeC;QACpD,eAAeH,IAAI,eAAeE,IAAI,cAAcC;KACrD;AACH;AAGA,SAASC,cAAcC,CAAS,EAAEC,CAAS,EAAEP,CAAS;IACpD,MAAMC,IAAKK,AAAAA,CAAAA,IAAI,eAAeC,IAAI,eAAeP,CAAAA,KAAM;IACvD,MAAMG,IAAKG,AAAAA,CAAAA,IAAI,eAAeC,IAAI,eAAeP,CAAAA,KAAM;IACvD,MAAMI,IAAKE,AAAAA,CAAAA,IAAI,eAAeC,IAAI,cAAcP,CAAAA,KAAM;IACtD,OAAO;QACL,eAAeC,IAAI,eAAeE,IAAI,eAAeC;QACrD,gBAAgBH,IAAI,eAAeE,IAAI,eAAeC;QACtD,gBAAgBH,IAAI,eAAeE,IAAI,cAAcC;KACtD;AACH;AAKA,MAAMI,cAAc,IAAIC;AAGjB,SAAS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AAOC,KAAK,OAAOxB,OAAOsB;IACnD,IAAIsC;IACJ,IAAI;QACFA,OAAOT,UAAU7B;IACnB,EAAE,OAAM;QACN,OAAO,AAAc,YAAd,OAAOA,KAAkBA,KAAKtB,OAAOsB;IAC9C;IACA,MAAMQ,SAASF,aAAaL,MAAM;IAClC,IAAIlB,OAAOL,OAAOsB;IAClB,IAAK,IAAI5B,IAAI,GAAGA,KAAK,IAAIA,IAAK;QAC5B,MAAM9B,IAAIC,KAAK,GAAG,CAAC,GAAGA,KAAK,GAAG,CAAC,GAAG+F,KAAK,CAAC,GAAI9B,AAAAA,CAAAA,SAAS,KAAK,KAAKpC,IAAI;QACnEW,OAAO+C,QAAQ;YAAExF;YAAG,GAAGgG,KAAK,CAAC;YAAE,GAAGA,KAAK,CAAC;QAAC;QACzC,IAAIlC,iBAAiBrB,MAAMkB,OAAOC,KAAK;IACzC;IACA,OAAOnB;AACT"}
|
|
1
|
+
{"version":3,"file":"theme/oklch.js","sources":["../../src/theme/oklch.ts"],"sourcesContent":["// OKLCH colour science for themes: perceptual lightness (L 0..1), chroma (C ≥ 0) and hue (H degrees). Brand palettes,\n// tonal scales, chart palettes and contrast repair all work here, because equal steps of L look equal to a person and\n// keeping H keeps a brand recognisable — something HSL lightening never did (a darkened yellow turns olive in HSL).\n// Björn Ottosson's OKLab (2020) matrices; gamut mapping by reducing chroma at constant L and H (CSS Color 4's idea).\nimport { formatColor, type G9ColorInput, type G9Rgba, getContrastRatio, getLuminance, rgba, toRgba } from './color';\n\n/** A colour in OKLCH. `alpha` 0..1 (default 1). */\nexport interface G9Oklch {\n readonly l: number;\n readonly c: number;\n readonly h: number;\n readonly alpha?: number;\n}\n\n// Channels are 0..1 (the library's G9Rgba).\nconst toLinear = (x: number): number => {\n return x <= 0.04045 ? x / 12.92 : ((x + 0.055) / 1.055) ** 2.4;\n};\nconst fromLinear = (v: number): number => {\n return v <= 0.0031308 ? 12.92 * v : 1.055 * v ** (1 / 2.4) - 0.055;\n};\n\n/** Linear sRGB (0..1 each) → OKLab. */\nfunction linearToOklab(r: number, g: number, b: number): [number, number, number] {\n const l = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);\n const m = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);\n const s = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s,\n ];\n}\n\n/** OKLab → linear sRGB (may fall outside 0..1: out of gamut). */\nfunction oklabToLinear(L: number, a: number, b: number): [number, number, number] {\n const l = (L + 0.3963377774 * a + 0.2158037573 * b) ** 3;\n const m = (L - 0.1055613458 * a - 0.0638541728 * b) ** 3;\n const s = (L - 0.0894841775 * a - 1.291485548 * b) ** 3;\n return [\n 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,\n -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s,\n -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s,\n ];\n}\n\n/** Any colour → OKLCH. */\n// Palette generation converts the same few strings hundreds of times (a brand, its scale, white, black): on PrimJS (no\n// JIT, Galaxy A21s) one brand palette cost ~60 ms before these caches (2026-11-18).\nconst OKLCH_CACHE = new Map<string, G9Oklch>();\n\n/** A colour in OKLCH (lightness, chroma, hue): the perceptual space the brand palettes and tonal scales are built in. Cached per string. */\nexport function toOklch(color: G9ColorInput, options?: { readonly curve?: 'even' | 'sine' }): G9Oklch {\n // the sine curve's reading (ShopManager's): the hue reads 0 only below 1e-5 chroma, and chroma is kept as measured\n if (options?.curve === 'sine') return sineOklch(color);\n if (typeof color === 'string') {\n const hit = OKLCH_CACHE.get(color);\n if (hit) return hit;\n const x = Object.freeze(toOklchUncached(color));\n if (OKLCH_CACHE.size > 512) OKLCH_CACHE.clear();\n OKLCH_CACHE.set(color, x);\n return x;\n }\n return toOklchUncached(color);\n}\n\nfunction toOklchUncached(color: G9ColorInput): G9Oklch {\n const { r, g, b, a } = toRgba(color);\n const [L, A, B] = linearToOklab(toLinear(r), toLinear(g), toLinear(b));\n const c = Math.hypot(A, B);\n let h = (Math.atan2(B, A) * 180) / Math.PI;\n if (h < 0) h += 360;\n // A grey has no hue: keep 0 so equality checks and interpolation stay stable.\n return { l: L, c: c < 1e-4 ? 0 : c, h: c < 1e-4 ? 0 : h, alpha: a };\n}\n\nconst EPS = 1e-6;\nconst inGamut = (rgb: readonly number[]): boolean => rgb.every((v) => v >= -EPS && v <= 1 + EPS);\n\nfunction linearOf(x: G9Oklch): [number, number, number] {\n const rad = (x.h * Math.PI) / 180;\n return oklabToLinear(x.l, x.c * Math.cos(rad), x.c * Math.sin(rad));\n}\n\n/** True when the OKLCH colour is inside sRGB. */\nexport const isInSrgbGamut = (x: G9Oklch): boolean => inGamut(linearOf(x));\n\n/**\n * OKLCH → sRGB (`G9Rgba`, channels 0..1). Out-of-gamut colours keep L and H and lose chroma until they fit (binary\n * search, 18 steps ≈ 1e-6 chroma), so a vivid brand never shifts hue when it is darkened or lightened.\n */\nexport function fromOklch(x: G9Oklch): G9Rgba {\n const l = Math.min(1, Math.max(0, x.l));\n let probe: G9Oklch = { l, c: Math.max(0, x.c), h: x.h };\n if (!isInSrgbGamut(probe)) {\n let lo = 0;\n let hi = probe.c;\n // 12 halvings: chroma to ~1e-4, finer than one step of a hex channel\n for (let i = 0; i < 12; i++) {\n const mid = (lo + hi) / 2;\n if (isInSrgbGamut({ l, c: mid, h: x.h })) lo = mid;\n else hi = mid;\n }\n probe = { l, c: lo, h: x.h };\n }\n const [r, g, b] = linearOf(probe);\n const ch = (v: number) => fromLinear(Math.min(1, Math.max(0, v)));\n return rgba(ch(r), ch(g), ch(b), x.alpha ?? 1);\n}\n\n/**\n * OKLCH → `#RRGGBB` (or `#RRGGBBAA` with alpha < 1). `gamut: 'steps'` maps an out-of-sRGB colour by cutting chroma 10 %\n * at a time (ShopManager's `@g9/tokens`, to the hex; opaque) instead of the default binary search.\n */\nexport function oklchToHex(x: G9Oklch, options?: { readonly gamut?: 'search' | 'steps' }): string {\n return options?.gamut === 'steps' ? sineHex(x) : formatColor(fromOklch(x));\n}\n\n/** A colour as opaque `#RRGGBB` (rounded), whatever its input form. */\nconst opaque = (color: G9ColorInput): string => formatColor({ ...toRgba(color), a: 1 });\n\n/** Steps of a tonal scale (Tailwind-like names: 50 lightest … 950 darkest). */\nexport const g9TonalSteps = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950] as const;\n/** A step of a tonal scale: 50, 100, 200 … 900, 950. */\nexport type G9TonalStep = (typeof g9TonalSteps)[number];\n/** A colour's tonal scale: one hex colour per step (50 lightest … 950 darkest). */\nexport type G9TonalScale = { readonly [K in G9TonalStep]: string };\n\n/** Target lightness of each step (perceptually even, darker at the end like the projects' scales). */\nconst STEP_L: Record<G9TonalStep, number> = {\n 50: 0.975,\n 100: 0.945,\n 200: 0.89,\n 300: 0.815,\n 400: 0.72,\n 500: 0.63,\n 600: 0.55,\n 700: 0.47,\n 800: 0.39,\n 900: 0.3,\n 950: 0.22,\n};\n/** Chroma kept at each step relative to the source (pale and deep tones carry less colour). */\nconst STEP_C: Record<G9TonalStep, number> = {\n 50: 0.14,\n 100: 0.28,\n 200: 0.5,\n 300: 0.72,\n 400: 0.9,\n 500: 1,\n 600: 1,\n 700: 0.92,\n 800: 0.8,\n 900: 0.66,\n 950: 0.52,\n};\n\n/** The step whose lightness is nearest to `color`'s. */\nexport function nearestTonalStep(color: G9ColorInput): G9TonalStep {\n const { l } = toOklch(color);\n let best: G9TonalStep = 500;\n for (const step of g9TonalSteps) if (Math.abs(STEP_L[step] - l) < Math.abs(STEP_L[best] - l)) best = step;\n return best;\n}\n\n/**\n * A tonal scale from one colour: same hue, lightness from the step table, chroma scaled from the source's. The source\n * itself is placed exactly at its nearest step, so the brand colour always appears in its own scale unchanged.\n */\nexport function tonalScale(color: G9ColorInput, options?: G9ScaleOptions): G9TonalScale {\n if (options?.curve === 'sine') return sineTonalScale(color);\n const src = toOklch(color);\n const exact = nearestTonalStep(color);\n const peak = src.c / STEP_C[exact];\n const out = {} as Record<G9TonalStep, string>;\n for (const step of g9TonalSteps) {\n out[step] = step === exact ? opaque(color) : oklchToHex({ l: STEP_L[step], c: peak * STEP_C[step], h: src.h });\n }\n return out;\n}\n\n/**\n * A neutral scale tinted by `color`: the brand's hue at a whisper of chroma (`tint` 0 = pure grey, 1 = 0.02 C, the\n * strongest tint that still reads as grey), so surfaces and text belong to the brand without looking coloured.\n */\nexport function neutralScale(color: G9ColorInput, tint = 0.5, options?: G9ScaleOptions): G9TonalScale {\n if (options?.curve === 'sine') return sineNeutralScale(color, tint);\n const { h } = toOklch(color);\n const c = 0.02 * Math.min(1, Math.max(0, tint));\n const out = {} as Record<G9TonalStep, string>;\n for (const step of g9TonalSteps) out[step] = oklchToHex({ l: STEP_L[step], c, h });\n return out;\n}\n\n/** Perceptual distance (ΔE in OKLab, ×100: about 2 is just noticeable). */\nexport function colorDistance(a: G9ColorInput, b: G9ColorInput): number {\n const x = toOklch(a);\n const y = toOklch(b);\n const ra = (x.h * Math.PI) / 180;\n const rb = (y.h * Math.PI) / 180;\n return Math.hypot(x.l - y.l, x.c * Math.cos(ra) - y.c * Math.cos(rb), x.c * Math.sin(ra) - y.c * Math.sin(rb)) * 100;\n}\n\n/**\n * `fg` moved in lightness (hue and chroma kept) until its WCAG contrast with `bg` is at least `min`. Goes darker on a\n * light background and lighter on a dark one; returns `fg` unchanged when it already passes. If no lightness of this hue\n * reaches `min`, returns black or white, whichever contrasts more.\n */\nexport function ensureContrast(\n fg: G9ColorInput,\n bg: G9ColorInput,\n min: number,\n options?: G9EnsureContrastOptions,\n): string {\n if (options?.method === 'steps') return stepContrast(fg, bg, min);\n if (getContrastRatio(fg, bg) >= min) return opaque(fg);\n const src = toOklch(fg);\n const bgL = getLuminance(bg);\n const ratio = (c: G9Rgba) => {\n const l = getLuminance(c);\n return (Math.max(l, bgL) + 0.05) / (Math.min(l, bgL) + 0.05);\n };\n const darker = toOklch(bg).l > 0.6;\n let lo = darker ? 0 : src.l;\n let hi = darker ? src.l : 1;\n let found: number | null = null;\n // 14 halvings: lightness to ~6e-5, below one step of a hex channel; compared in numbers, formatted once\n for (let i = 0; i < 14; i++) {\n const mid = (lo + hi) / 2;\n if (ratio(fromOklch({ l: mid, c: src.c, h: src.h })) >= min) {\n found = mid;\n // keep as close to the original lightness as passing allows\n if (darker) lo = mid;\n else hi = mid;\n } else if (darker) hi = mid;\n else lo = mid;\n }\n if (found !== null) {\n // the hex rounds: step on toward the safe side until the written colour itself passes\n for (let k = 0; k < 8; k++) {\n const hex = oklchToHex({ l: found, c: src.c, h: src.h });\n if (getContrastRatio(hex, bg) >= min) return hex;\n found = Math.min(1, Math.max(0, found + (darker ? -0.002 : 0.002)));\n }\n }\n return getContrastRatio('#000000', bg) >= getContrastRatio('#FFFFFF', bg) ? '#000000' : '#FFFFFF';\n}\n\n/** Black or white text, whichever contrasts more with `bg`, nudged toward `tint`'s hue when given. */\nexport function readableOn(bg: G9ColorInput, tint?: G9ColorInput): string {\n const dark = getContrastRatio('#000000', bg) >= getContrastRatio('#FFFFFF', bg);\n if (!tint) return dark ? '#000000' : '#FFFFFF';\n const { h, c } = toOklch(tint);\n return ensureContrast(oklchToHex({ l: dark ? 0.2 : 0.98, c: Math.min(c, 0.04), h }), bg, 4.5);\n}\n\n/** Linear interpolation in OKLCH (shorter hue arc). `t` 0..1. */\nexport function mixOklch(a: G9ColorInput, b: G9ColorInput, t: number): string {\n const x = toOklch(a);\n const y = toOklch(b);\n // A grey end has no hue: it takes the other end's, so grey → blue never sweeps through red. Otherwise the shorter arc.\n let h: number;\n if (x.c === 0) h = y.h;\n else if (y.c === 0) h = x.h;\n else {\n let dh = y.h - x.h;\n if (dh > 180) dh -= 360;\n if (dh < -180) dh += 360;\n h = (x.h + dh * t + 360) % 360;\n }\n return oklchToHex({\n l: x.l + (y.l - x.l) * t,\n c: x.c + (y.c - x.c) * t,\n h,\n alpha: (x.alpha ?? 1) + ((y.alpha ?? 1) - (x.alpha ?? 1)) * t,\n });\n}\n\n/**\n * A colour at `t` (0..1) along several stops, mixed in OKLCH — e.g. Riskara's risk spectrum\n * (`interpolateStops([calm, lime, amber, coral], score / 100)`).\n */\nexport function interpolateStops(stops: readonly G9ColorInput[], t: number): string {\n if (stops.length === 0) throw new RangeError('interpolateStops needs at least one stop.');\n if (stops.length === 1) return formatColor(stops[0] as G9ColorInput);\n const x = Math.min(1, Math.max(0, t)) * (stops.length - 1);\n const i = Math.min(stops.length - 2, Math.floor(x));\n return mixOklch(stops[i] as G9ColorInput, stops[i + 1] as G9ColorInput, x - i);\n}\n\n/**\n * `n` chart colours that start at `primary` and step around the hue circle by the golden angle (137.5°), each at a\n * lightness that reads on `background` (contrast ≥ 3, WCAG for graphics) and a chroma the scheme can carry. Neighbours\n * stay distinguishable for n ≤ 10; the same inputs always give the same palette.\n */\nexport function chartPalette(primary: G9ColorInput, background: G9ColorInput, n = 8): string[] {\n const p = toOklch(primary);\n const dark = toOklch(background).l < 0.5;\n const l = dark ? 0.74 : 0.58;\n const c = Math.max(0.09, Math.min(0.17, p.c || 0.12));\n const out: string[] = [];\n for (let i = 0; i < n; i++) {\n const h = (p.h + i * 137.508) % 360;\n // alternate the lightness a little so neighbours in a stacked chart separate\n const li = l + (i % 2 === 0 ? 0 : dark ? -0.06 : 0.07);\n out.push(ensureContrast(i === 0 ? opaque(primary) : oklchToHex({ l: li, c, h }), background, 3));\n }\n return out;\n}\n\n// ------------------------------------------------------------------------------- the sine curve (ShopManager's)\n\n/** Options of {@link tonalScale} and {@link neutralScale}. */\nexport interface G9ScaleOptions {\n /**\n * `'even'` (default): the library's step table, chroma scaled per step from the source. `'sine'`: a lighter, cleaner\n * table whose chroma falls off along a sine towards white and black (ShopManager's `@g9/tokens` curve, reproduced to\n * the hex), with gamut mapping by 10 % chroma steps, as that design system measured its recipes against it.\n */\n readonly curve?: 'even' | 'sine';\n}\n\n/** Options of {@link ensureContrast}. */\nexport interface G9EnsureContrastOptions {\n /**\n * `'search'` (default): the closest passing lightness (a binary search), else black or white. `'steps'`: lightness\n * moved in 0.02 steps (darker on a background whose luminance is over 0.18), the first passing step, else the 40th\n * (ShopManager's `@g9/tokens` contrast repair, reproduced to the hex).\n */\n readonly method?: 'search' | 'steps';\n}\n\n/** The sine curve's lightness per step. */\nconst SINE_L: Record<G9TonalStep, number> = {\n 50: 0.975,\n 100: 0.945,\n 200: 0.89,\n 300: 0.81,\n 400: 0.715,\n 500: 0.625,\n 600: 0.54,\n 700: 0.455,\n 800: 0.375,\n 900: 0.295,\n 950: 0.225,\n};\n\n/** The sine curve's colour → OKLCH: a hue below 1e-5 chroma reads as 0, as in the curve's source. */\nfunction sineOklch(color: G9ColorInput): G9Oklch {\n const { r, g, b } = toRgba(color);\n const [L, A, B] = linearToOklab(toLinear(r), toLinear(g), toLinear(b));\n const c = Math.sqrt(A * A + B * B);\n return { l: L, c, h: c < 1e-5 ? 0 : ((Math.atan2(B, A) * 180) / Math.PI + 360) % 360 };\n}\n\n/** The sine curve's OKLCH → `#RRGGBB`: chroma cut by 10 % at a time (at most 24) until inside sRGB (±1e-4). */\nfunction sineHex(x: G9Oklch): string {\n const fits = (lin: readonly number[]) => lin.every((v) => v >= -1e-4 && v <= 1 + 1e-4);\n let c = x.c;\n let lin = linearOf({ l: x.l, c, h: x.h });\n for (let i = 0; i < 24 && !fits(lin); i++) {\n c *= 0.9;\n lin = linearOf({ l: x.l, c, h: x.h });\n }\n const ch = (v: number) => fromLinear(Math.min(1, Math.max(0, v)));\n return formatColor(rgba(ch(lin[0]), ch(lin[1]), ch(lin[2]), 1));\n}\n\n/** A colour that does not parse gives the curve's default brand (a violet), as its source did. */\nfunction sineBase(color: G9ColorInput): G9Oklch {\n try {\n return sineOklch(color);\n } catch {\n return { l: 0.55, c: 0.15, h: 280 };\n }\n}\n\nfunction sineStep(l: number): G9TonalStep {\n let best: G9TonalStep = 500;\n let distance = Number.POSITIVE_INFINITY;\n for (const step of g9TonalSteps) {\n const d = Math.abs(SINE_L[step] - l);\n if (d < distance) {\n distance = d;\n best = step;\n }\n }\n return best;\n}\n\nfunction sineTonalScale(color: G9ColorInput): G9TonalScale {\n const base = sineBase(color);\n const out = {} as Record<G9TonalStep, string>;\n for (const step of g9TonalSteps) {\n const l = SINE_L[step];\n const curve = Math.sin(Math.PI * Math.min(1, Math.max(0, (l - 0.12) / 0.9)));\n out[step] = sineHex({ l, c: base.c * (0.25 + 0.75 * curve), h: base.h });\n }\n out[sineStep(base.l)] = sineHex(base);\n return out;\n}\n\nfunction sineNeutralScale(color: G9ColorInput, tint: number): G9TonalScale {\n const base = sineBase(color);\n const c = Math.min(0.03, base.c * 0.2) * Math.min(1, Math.max(0, tint));\n const out = {} as Record<G9TonalStep, string>;\n for (const step of g9TonalSteps) out[step] = sineHex({ l: SINE_L[step], c, h: base.h });\n return out;\n}\n\n/**\n * Neutrals of a fixed hue and chroma, whatever the brand (warm paper, cool steel), on the sine curve's lightness\n * steps (ShopManager's `fixedNeutralScale`).\n */\nexport function fixedNeutralScale(hue: number, chroma: number): G9TonalScale {\n const out = {} as Record<G9TonalStep, string>;\n for (const step of g9TonalSteps) out[step] = sineHex({ l: SINE_L[step], c: chroma, h: hue });\n return out;\n}\n\nfunction stepContrast(fg: G9ColorInput, bg: G9ColorInput, min: number): string {\n if (getContrastRatio(fg, bg) >= min) return opaque(fg);\n let base: G9Oklch;\n try {\n base = sineOklch(fg);\n } catch {\n return typeof fg === 'string' ? fg : opaque(fg);\n }\n const darker = getLuminance(bg) > 0.18;\n let best = opaque(fg);\n for (let i = 1; i <= 40; i++) {\n const l = Math.min(1, Math.max(0, base.l + (darker ? -1 : 1) * i * 0.02));\n best = sineHex({ l, c: base.c, h: base.h });\n if (getContrastRatio(best, bg) >= min) return best;\n }\n return best;\n}\n"],"names":["toLinear","x","fromLinear","v","linearToOklab","r","g","b","l","Math","m","s","oklabToLinear","L","a","OKLCH_CACHE","Map","toOklch","color","options","sineOklch","hit","Object","toOklchUncached","toRgba","A","B","c","h","EPS","inGamut","rgb","linearOf","rad","isInSrgbGamut","fromOklch","_x_alpha","probe","lo","hi","i","mid","ch","rgba","oklchToHex","sineHex","formatColor","opaque","g9TonalSteps","STEP_L","STEP_C","nearestTonalStep","best","step","tonalScale","sineTonalScale","src","exact","peak","out","neutralScale","tint","sineNeutralScale","colorDistance","y","ra","rb","ensureContrast","fg","bg","min","stepContrast","getContrastRatio","bgL","getLuminance","ratio","darker","found","k","hex","readableOn","dark","mixOklch","t","_y_alpha","_x_alpha1","dh","interpolateStops","stops","RangeError","chartPalette","primary","background","n","p","li","SINE_L","fits","lin","sineBase","sineStep","distance","Number","d","base","curve","fixedNeutralScale","hue","chroma"],"mappings":";AAeA,MAAMA,WAAW,CAACC,IACTA,KAAK,UAAUA,IAAI,QAAS,AAACA,CAAAA,CAAAA,IAAI,KAAI,IAAK,KAAI,KAAM;AAE7D,MAAMC,aAAa,CAACC,IACXA,KAAK,YAAY,QAAQA,IAAI,QAAQA,KAAM,KAAI,GAAE,IAAK;AAI/D,SAASC,cAAcC,CAAS,EAAEC,CAAS,EAAEC,CAAS;IACpD,MAAMC,IAAIC,KAAK,IAAI,CAAC,eAAeJ,IAAI,eAAeC,IAAI,eAAeC;IACzE,MAAMG,IAAID,KAAK,IAAI,CAAC,eAAeJ,IAAI,eAAeC,IAAI,eAAeC;IACzE,MAAMI,IAAIF,KAAK,IAAI,CAAC,eAAeJ,IAAI,eAAeC,IAAI,eAAeC;IACzE,OAAO;QACL,eAAeC,IAAI,cAAcE,IAAI,eAAeC;QACpD,eAAeH,IAAI,cAAcE,IAAI,eAAeC;QACpD,eAAeH,IAAI,eAAeE,IAAI,cAAcC;KACrD;AACH;AAGA,SAASC,cAAcC,CAAS,EAAEC,CAAS,EAAEP,CAAS;IACpD,MAAMC,IAAKK,AAAAA,CAAAA,IAAI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 export interface G9ShapeSet {
|
|
|
79
79
|
readonly [K in G9TypeRoleName]: G9TypeRole;
|
|
80
80
|
};
|
|
81
81
|
readonly heights: G9ControlHeights;
|
|
82
|
+
/**
|
|
83
|
+
* `'shared'`: the controls take their sizes from {@link G9ShapeSet.heights} (a design system that sizes every control
|
|
84
|
+
* from three heights: ShopManager's 40/48/56 and, for gloves, 44/56/64). G9Button small/medium/large = sm/md/lg (its
|
|
85
|
+
* label at `type.label`'s size, small 2 smaller); G9IconButton sm/md/lg = sm/md/lg; G9TextEntry = md; G9Chip = sm
|
|
86
|
+
* (lg: md); G9Segmented = sm items in a 4 dp tray; G9Stepper = an md tray (lg: lg) with sm buttons. Default `'own'`:
|
|
87
|
+
* each control keeps its own table (the stock look).
|
|
88
|
+
*/
|
|
89
|
+
readonly sizing?: 'own' | 'shared';
|
|
82
90
|
/** Minimum touch target (oracles flag smaller interactive elements). Default 44, never under {@link g9MinTouchTarget}. */
|
|
83
91
|
readonly touchTarget: number;
|
|
84
92
|
/** Font families per script; unset: the platform's own. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../../src/tokens/shape.ts"],"names":[],"mappings":"AAMA,mCAAmC;AACnC,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,+CAA+C;IAC/C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,iEAAiE;AACjE,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM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,MAAM,CAAC;IAC7B,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAC9B,gEAAgE;IAChE,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;CAC9B;AAED,wHAAwH;AACxH,eAAO,MAAM,cAAc,EAAE,UAcb,CAAC;AAEjB;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,SAAS,EAAE,IAAI,GAAE,UAA2B,GAAG,UAAU,CAiBjH;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAiClH"}
|
package/dist/tokens/shape.js
CHANGED
|
@@ -92,7 +92,7 @@ const g9DefaultShape = Object.freeze({
|
|
|
92
92
|
touchTarget: 44
|
|
93
93
|
});
|
|
94
94
|
function resolveShape(over, base = g9DefaultShape) {
|
|
95
|
-
var _over_density, _base_density, _over_touchTarget;
|
|
95
|
+
var _over_density, _base_density, _over_touchTarget, _over_sizing, _over_sizing1;
|
|
96
96
|
if (!over) return base;
|
|
97
97
|
const density = null != (_over_density = over.density) ? _over_density : base.density;
|
|
98
98
|
const shift = g9DensitySteps[null != density ? density : 'regular'] - g9DensitySteps[null != (_base_density = base.density) ? _base_density : 'regular'];
|
|
@@ -124,6 +124,9 @@ function resolveShape(over, base = g9DefaultShape) {
|
|
|
124
124
|
} : {},
|
|
125
125
|
...density ? {
|
|
126
126
|
density
|
|
127
|
+
} : {},
|
|
128
|
+
...(null != (_over_sizing = over.sizing) ? _over_sizing : base.sizing) ? {
|
|
129
|
+
sizing: null != (_over_sizing1 = over.sizing) ? _over_sizing1 : base.sizing
|
|
127
130
|
} : {}
|
|
128
131
|
});
|
|
129
132
|
}
|
package/dist/tokens/shape.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens/shape.js","sources":["../../src/tokens/shape.ts"],"sourcesContent":["// The shape of a theme: corner radii, the type roles and the three control heights. With the palette this is the whole\n// look of a template (ShopManager's ShapeSet + CONTROL_HEIGHTS, SAC's radii, G9Hub's rounded-* scale): a recipe or an\n// app swaps shapes, every control reads them through CSS variables (`var(--g9-radius-card)`), so a shape change repaints\n// without a React render.\nimport { toKebabCase } from './css-vars';\n\n/** Corner radii by role, in dp. */\nexport interface G9ShapeRadii {\n readonly control: number;\n readonly field: number;\n readonly chip: number;\n readonly card: number;\n readonly sheet: number;\n readonly dialog: number;\n readonly toast: number;\n /** A pill: half the height (a large value). */\n readonly pill: number;\n}\n\n/** A type role: size and line height in dp, a weight 400…800. */\nexport interface G9TypeRole {\n readonly size: number;\n readonly lineHeight: number;\n readonly weight: 400 | 500 | 600 | 700 | 800;\n}\n\n/** A role of the type scale (display, title, section, body, label, caption, price, mono). */\nexport type G9TypeRoleName = 'display' | 'title' | 'section' | 'body' | 'label' | 'caption' | 'price' | 'mono';\n\n/** The three heights every control family shares (button, field, segmented, stepper, chip in its large size). */\nexport interface G9ControlHeights {\n readonly sm: number;\n readonly md: number;\n readonly lg: number;\n}\n\n/**\n * Font families of a theme, per script (LC-07). Unset: the platform's own (the stock look). Every G9 text reads\n * `var(--g9-font-text)`, which a right-to-left root takes from `arabic` and a left-to-right one from `latin`; no letter\n * spacing is ever added to Arabic script (`.g9-dir-rtl` sets it to 0).\n */\nexport interface G9ThemeFonts {\n /** Latin and the other left-to-right scripts. */\n readonly latin?: string;\n /** Arabic script (Persian, Arabic, Urdu): the font of a right-to-left culture. */\n readonly arabic?: string;\n /** Numbers and code (`--g9-font-mono`, for the app's own styles). */\n readonly mono?: string;\n /**\n * One family per weight for `latin` (`{ 500: 'InterMedium', 700: 'InterBold' }`): Lynx on Android ignores an\n * `@font-face` weight, so a family that has only its regular file draws 600 and 700 as a synthesised bold. Each G9 text\n * of weight 500, 600, 700 or 800 then reads `--g9-font-text-<weight>`. A weight left out takes the nearest heavier one\n * given, else the nearest lighter, else `latin` itself.\n */\n readonly latinByWeight?: G9FontWeights;\n /** As {@link G9ThemeFonts.latinByWeight}, for `arabic` (Riskara: `{ 500: 'RkSansMd', 700: 'RkSansBd' }`). */\n readonly arabicByWeight?: G9FontWeights;\n /** As {@link G9ThemeFonts.latinByWeight}, for `mono` (`--g9-font-mono-<weight>`). */\n readonly monoByWeight?: G9FontWeights;\n}\n\n/** The weights a theme can give a family of its own (400 is the script's base family). */\nexport type G9FontWeight = 500 | 600 | 700 | 800;\n\n/** A family per weight (see {@link G9ThemeFonts.latinByWeight}). */\nexport type G9FontWeights = { readonly [W in G9FontWeight]?: string };\n\n/** The weights every G9 text style can ask a family for. */\nexport const g9FontWeights: readonly G9FontWeight[] = [500, 600, 700, 800];\n\n/** The variable each weight's family is written to, spelled out (the stylesheets read these names). */\nconst FONT_TEXT_VAR: Readonly<Record<G9FontWeight, string>> = {\n 500: '--g9-font-text-500',\n 600: '--g9-font-text-600',\n 700: '--g9-font-text-700',\n 800: '--g9-font-text-800',\n};\n\n/**\n * The family for `weight` from a base family and its per-weight families: the exact one, else the nearest heavier\n * given, else the nearest lighter, else the base. Undefined when there is no family at all (the platform's font).\n */\nexport function familyForWeight(\n weight: 400 | G9FontWeight,\n base: string | undefined,\n byWeight: G9FontWeights | undefined,\n): string | undefined {\n if (weight === 400 || !byWeight) return base || undefined;\n const given = g9FontWeights.filter((w) => typeof byWeight[w] === 'string' && byWeight[w]);\n const pick =\n given.find((w) => w === weight) ?? given.find((w) => w > weight) ?? [...given].reverse().find((w) => w < weight);\n return (pick ? byWeight[pick] : base) || undefined;\n}\n\n/**\n * The `font-family` value for a G9 text of `weight` in a style written in code (an inline style): the provider's\n * per-weight variable (`var(--g9-font-text-700)`), or the base one for 400 and lighter.\n */\nexport function g9FontFamilyFor(weight: number | 'bold' | 'normal'): string {\n const w = weight === 'bold' ? 700 : weight === 'normal' ? 400 : weight;\n if (w < 500) return 'var(--g9-font-text)';\n return `var(${FONT_TEXT_VAR[w >= 800 ? 800 : w >= 700 ? 700 : w >= 600 ? 600 : 500]})`;\n}\n\n/** A named density step (LC-07): the three control heights move together. */\nexport type G9Density = 'compact' | 'regular' | 'comfortable';\n\n/** What each density step adds to every control height, in dp (`regular` is the stock look). */\nexport const g9DensitySteps: Readonly<Record<G9Density, number>> = Object.freeze({\n compact: -4,\n regular: 0,\n comfortable: 8,\n});\n\n/** The platform's minimum touch target in dp: no density or override takes `touchTarget` under it. */\nexport const g9MinTouchTarget = 44;\n\n/** A theme's shape: corner radii per role, the type scale and the three control heights. */\nexport interface G9ShapeSet {\n readonly radii: G9ShapeRadii;\n readonly type: { readonly [K in G9TypeRoleName]: G9TypeRole };\n readonly heights: G9ControlHeights;\n /** Minimum touch target (oracles flag smaller interactive elements). Default 44, never under {@link g9MinTouchTarget}. */\n readonly touchTarget: number;\n /** Font families per script; unset: the platform's own. */\n readonly fonts?: G9ThemeFonts;\n /** The density step the heights stand at. Default `regular`. */\n readonly density?: G9Density;\n}\n\n/** The default shape: 12 px controls and fields, 16 px cards, 24 px sheets, the type scale and heights 36 / 44 / 52. */\nexport const g9DefaultShape: G9ShapeSet = Object.freeze({\n radii: Object.freeze({ control: 12, field: 12, chip: 999, card: 16, sheet: 24, dialog: 20, toast: 14, pill: 999 }),\n type: Object.freeze({\n display: { size: 28, lineHeight: 40, weight: 800 },\n title: { size: 20, lineHeight: 30, weight: 700 },\n section: { size: 16, lineHeight: 26, weight: 700 },\n body: { size: 14, lineHeight: 24, weight: 400 },\n label: { size: 14, lineHeight: 20, weight: 600 },\n caption: { size: 12, lineHeight: 18, weight: 400 },\n price: { size: 16, lineHeight: 24, weight: 700 },\n mono: { size: 13, lineHeight: 20, weight: 500 },\n }),\n heights: Object.freeze({ sm: 40, md: 44, lg: 52 }),\n touchTarget: 44,\n}) as G9ShapeSet;\n\n/**\n * A shape with some parts replaced (deep for radii, type roles, heights and fonts). A `density` moves the base's three\n * heights together by the step's difference from the base's own step (explicit `heights` still win, part by part);\n * `touchTarget` never goes under {@link g9MinTouchTarget}.\n */\nexport function resolveShape(over: Partial<G9ShapeSet> | undefined, base: G9ShapeSet = g9DefaultShape): G9ShapeSet {\n if (!over) return base;\n const density = over.density ?? base.density;\n const shift = g9DensitySteps[density ?? 'regular'] - g9DensitySteps[base.density ?? 'regular'];\n const moved = shift\n ? { sm: base.heights.sm + shift, md: base.heights.md + shift, lg: base.heights.lg + shift }\n : base.heights;\n const fonts = over.fonts || base.fonts ? Object.freeze({ ...base.fonts, ...over.fonts }) : undefined;\n return Object.freeze({\n radii: Object.freeze({ ...base.radii, ...over.radii }),\n type: Object.freeze({ ...base.type, ...over.type }),\n heights: Object.freeze({ ...moved, ...over.heights }),\n touchTarget: Math.max(g9MinTouchTarget, over.touchTarget ?? base.touchTarget),\n ...(fonts ? { fonts } : {}),\n ...(density ? { density } : {}),\n });\n}\n\n/**\n * CSS variables of a shape: `--g9-radius-<role>`, `--g9-type-<role>-size|line|weight`, `--g9-height-sm|md|lg`,\n * `--g9-touch-target` (all px), and `--g9-font-latin|arabic|mono` (plus `-500|600|700|800`) for the families a theme\n * names. With a `direction`, also `--g9-font-text` and `--g9-font-text-500|600|700|800`: the families of that direction's\n * script (what every G9 text style reads, by its weight).\n */\nexport function toShapeCssVariables(shape: G9ShapeSet, direction?: 'ltr' | 'rtl'): Readonly<Record<string, string>> {\n const out: Record<string, string> = {};\n for (const [k, v] of Object.entries(shape.radii)) out[`--g9-radius-${toKebabCase(k)}`] = `${v}px`;\n for (const [k, v] of Object.entries(shape.type)) {\n out[`--g9-type-${k}-size`] = `${v.size}px`;\n out[`--g9-type-${k}-line`] = `${v.lineHeight}px`;\n out[`--g9-type-${k}-weight`] = String(v.weight);\n }\n for (const [k, v] of Object.entries(shape.heights)) out[`--g9-height-${k}`] = `${v}px`;\n out['--g9-touch-target'] = `${shape.touchTarget}px`;\n // only the families a theme names: unset, a text keeps the platform's font (the stock look is untouched)\n const fonts = shape.fonts ?? {};\n for (const script of ['latin', 'arabic', 'mono'] as const) {\n const family = fonts[script];\n if (typeof family === 'string' && family) out[`--g9-font-${script}`] = family;\n for (const w of g9FontWeights) {\n const f = familyForWeight(w, family, fonts[`${script}ByWeight`]);\n if (f) out[`--g9-font-${script}-${w}`] = f;\n }\n }\n // the font every G9 text reads, as a literal: native Lynx does not resolve a variable a stylesheet rule defines from\n // another one (`--a: var(--b)` stayed unresolved on the A21s), so the provider writes it for its root's direction\n const script = direction === 'rtl' ? 'arabic' : direction === 'ltr' ? 'latin' : undefined;\n if (script) {\n const text = fonts[script];\n if (text) out['--g9-font-text'] = text;\n // one literal per weight as well (a G9 text of weight 500 to 800 reads its own; see G9ThemeFonts.latinByWeight)\n for (const w of g9FontWeights) {\n const f = familyForWeight(w, text, fonts[`${script}ByWeight`]);\n if (f) out[FONT_TEXT_VAR[w]] = f;\n }\n }\n return out;\n}\n"],"names":["g9FontWeights","FONT_TEXT_VAR","familyForWeight","weight","base","byWeight","_ref","undefined","given","w","pick","g9FontFamilyFor","g9DensitySteps","Object","g9MinTouchTarget","g9DefaultShape","resolveShape","over","_over_density","_base_density","_over_touchTarget","density","shift","moved","fonts","Math","toShapeCssVariables","shape","direction","_shape_fonts","out","k","v","toKebabCase","String","script","family","f","text"],"mappings":";AAoEO,MAAMA,gBAAyC;IAAC;IAAK;IAAK;IAAK;CAAI;AAG1E,MAAMC,gBAAwD;IAC5D,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;AACP;AAMO,SAASC,gBACdC,MAA0B,EAC1BC,IAAwB,EACxBC,QAAmC;QAKjCC,MAAAA;IAHF,IAAIH,AAAW,QAAXA,UAAkB,CAACE,UAAU,OAAOD,QAAQG;IAChD,MAAMC,QAAQR,cAAc,MAAM,CAAC,CAACS,IAAM,AAAuB,YAAvB,OAAOJ,QAAQ,CAACI,EAAE,IAAiBJ,QAAQ,CAACI,EAAE;IACxF,MAAMC,OAAAA,QACJJ,CAA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N,GAAG,CAAC,CAAC,UAAU,EAAEK,QAAQ,CAAC,GAAGC;QACvE,KAAK,MAAM3B,KAAKT,cAAe;YAC7B,MAAMqC,IAAInC,gBAAgBO,GAAG2B,QAAQZ,KAAK,CAAC,GAAGW,OAAO,QAAQ,CAAC,CAAC;YAC/D,IAAIE,GAAGP,GAAG,CAAC,CAAC,UAAU,EAAEK,OAAO,CAAC,EAAE1B,GAAG,CAAC,GAAG4B;QAC3C;IACF;IAGA,MAAMF,SAASP,AAAc,UAAdA,YAAsB,WAAWA,AAAc,UAAdA,YAAsB,UAAUrB;IAChF,IAAI4B,QAAQ;QACV,MAAMG,OAAOd,KAAK,CAACW,OAAO;QAC1B,IAAIG,MAAMR,GAAG,CAAC,iBAAiB,GAAGQ;QAElC,KAAK,MAAM7B,KAAKT,cAAe;YAC7B,MAAMqC,IAAInC,gBAAgBO,GAAG6B,MAAMd,KAAK,CAAC,GAAGW,OAAO,QAAQ,CAAC,CAAC;YAC7D,IAAIE,GAAGP,GAAG,CAAC7B,aAAa,CAACQ,EAAE,CAAC,GAAG4B;QACjC;IACF;IACA,OAAOP;AACT"}
|
|
1
|
+
{"version":3,"file":"tokens/shape.js","sources":["../../src/tokens/shape.ts"],"sourcesContent":["// The shape of a theme: corner radii, the type roles and the three control heights. With the palette this is the whole\n// look of a template (ShopManager's ShapeSet + CONTROL_HEIGHTS, SAC's radii, G9Hub's rounded-* scale): a recipe or an\n// app swaps shapes, every control reads them through CSS variables (`var(--g9-radius-card)`), so a shape change repaints\n// without a React render.\nimport { toKebabCase } from './css-vars';\n\n/** Corner radii by role, in dp. */\nexport interface G9ShapeRadii {\n readonly control: number;\n readonly field: number;\n readonly chip: number;\n readonly card: number;\n readonly sheet: number;\n readonly dialog: number;\n readonly toast: number;\n /** A pill: half the height (a large value). */\n readonly pill: number;\n}\n\n/** A type role: size and line height in dp, a weight 400…800. */\nexport interface G9TypeRole {\n readonly size: number;\n readonly lineHeight: number;\n readonly weight: 400 | 500 | 600 | 700 | 800;\n}\n\n/** A role of the type scale (display, title, section, body, label, caption, price, mono). */\nexport type G9TypeRoleName = 'display' | 'title' | 'section' | 'body' | 'label' | 'caption' | 'price' | 'mono';\n\n/** The three heights every control family shares (button, field, segmented, stepper, chip in its large size). */\nexport interface G9ControlHeights {\n readonly sm: number;\n readonly md: number;\n readonly lg: number;\n}\n\n/**\n * Font families of a theme, per script (LC-07). Unset: the platform's own (the stock look). Every G9 text reads\n * `var(--g9-font-text)`, which a right-to-left root takes from `arabic` and a left-to-right one from `latin`; no letter\n * spacing is ever added to Arabic script (`.g9-dir-rtl` sets it to 0).\n */\nexport interface G9ThemeFonts {\n /** Latin and the other left-to-right scripts. */\n readonly latin?: string;\n /** Arabic script (Persian, Arabic, Urdu): the font of a right-to-left culture. */\n readonly arabic?: string;\n /** Numbers and code (`--g9-font-mono`, for the app's own styles). */\n readonly mono?: string;\n /**\n * One family per weight for `latin` (`{ 500: 'InterMedium', 700: 'InterBold' }`): Lynx on Android ignores an\n * `@font-face` weight, so a family that has only its regular file draws 600 and 700 as a synthesised bold. Each G9 text\n * of weight 500, 600, 700 or 800 then reads `--g9-font-text-<weight>`. A weight left out takes the nearest heavier one\n * given, else the nearest lighter, else `latin` itself.\n */\n readonly latinByWeight?: G9FontWeights;\n /** As {@link G9ThemeFonts.latinByWeight}, for `arabic` (Riskara: `{ 500: 'RkSansMd', 700: 'RkSansBd' }`). */\n readonly arabicByWeight?: G9FontWeights;\n /** As {@link G9ThemeFonts.latinByWeight}, for `mono` (`--g9-font-mono-<weight>`). */\n readonly monoByWeight?: G9FontWeights;\n}\n\n/** The weights a theme can give a family of its own (400 is the script's base family). */\nexport type G9FontWeight = 500 | 600 | 700 | 800;\n\n/** A family per weight (see {@link G9ThemeFonts.latinByWeight}). */\nexport type G9FontWeights = { readonly [W in G9FontWeight]?: string };\n\n/** The weights every G9 text style can ask a family for. */\nexport const g9FontWeights: readonly G9FontWeight[] = [500, 600, 700, 800];\n\n/** The variable each weight's family is written to, spelled out (the stylesheets read these names). */\nconst FONT_TEXT_VAR: Readonly<Record<G9FontWeight, string>> = {\n 500: '--g9-font-text-500',\n 600: '--g9-font-text-600',\n 700: '--g9-font-text-700',\n 800: '--g9-font-text-800',\n};\n\n/**\n * The family for `weight` from a base family and its per-weight families: the exact one, else the nearest heavier\n * given, else the nearest lighter, else the base. Undefined when there is no family at all (the platform's font).\n */\nexport function familyForWeight(\n weight: 400 | G9FontWeight,\n base: string | undefined,\n byWeight: G9FontWeights | undefined,\n): string | undefined {\n if (weight === 400 || !byWeight) return base || undefined;\n const given = g9FontWeights.filter((w) => typeof byWeight[w] === 'string' && byWeight[w]);\n const pick =\n given.find((w) => w === weight) ?? given.find((w) => w > weight) ?? [...given].reverse().find((w) => w < weight);\n return (pick ? byWeight[pick] : base) || undefined;\n}\n\n/**\n * The `font-family` value for a G9 text of `weight` in a style written in code (an inline style): the provider's\n * per-weight variable (`var(--g9-font-text-700)`), or the base one for 400 and lighter.\n */\nexport function g9FontFamilyFor(weight: number | 'bold' | 'normal'): string {\n const w = weight === 'bold' ? 700 : weight === 'normal' ? 400 : weight;\n if (w < 500) return 'var(--g9-font-text)';\n return `var(${FONT_TEXT_VAR[w >= 800 ? 800 : w >= 700 ? 700 : w >= 600 ? 600 : 500]})`;\n}\n\n/** A named density step (LC-07): the three control heights move together. */\nexport type G9Density = 'compact' | 'regular' | 'comfortable';\n\n/** What each density step adds to every control height, in dp (`regular` is the stock look). */\nexport const g9DensitySteps: Readonly<Record<G9Density, number>> = Object.freeze({\n compact: -4,\n regular: 0,\n comfortable: 8,\n});\n\n/** The platform's minimum touch target in dp: no density or override takes `touchTarget` under it. */\nexport const g9MinTouchTarget = 44;\n\n/** A theme's shape: corner radii per role, the type scale and the three control heights. */\nexport interface G9ShapeSet {\n readonly radii: G9ShapeRadii;\n readonly type: { readonly [K in G9TypeRoleName]: G9TypeRole };\n readonly heights: G9ControlHeights;\n /**\n * `'shared'`: the controls take their sizes from {@link G9ShapeSet.heights} (a design system that sizes every control\n * from three heights: ShopManager's 40/48/56 and, for gloves, 44/56/64). G9Button small/medium/large = sm/md/lg (its\n * label at `type.label`'s size, small 2 smaller); G9IconButton sm/md/lg = sm/md/lg; G9TextEntry = md; G9Chip = sm\n * (lg: md); G9Segmented = sm items in a 4 dp tray; G9Stepper = an md tray (lg: lg) with sm buttons. Default `'own'`:\n * each control keeps its own table (the stock look).\n */\n readonly sizing?: 'own' | 'shared';\n /** Minimum touch target (oracles flag smaller interactive elements). Default 44, never under {@link g9MinTouchTarget}. */\n readonly touchTarget: number;\n /** Font families per script; unset: the platform's own. */\n readonly fonts?: G9ThemeFonts;\n /** The density step the heights stand at. Default `regular`. */\n readonly density?: G9Density;\n}\n\n/** The default shape: 12 px controls and fields, 16 px cards, 24 px sheets, the type scale and heights 36 / 44 / 52. */\nexport const g9DefaultShape: G9ShapeSet = Object.freeze({\n radii: Object.freeze({ control: 12, field: 12, chip: 999, card: 16, sheet: 24, dialog: 20, toast: 14, pill: 999 }),\n type: Object.freeze({\n display: { size: 28, lineHeight: 40, weight: 800 },\n title: { size: 20, lineHeight: 30, weight: 700 },\n section: { size: 16, lineHeight: 26, weight: 700 },\n body: { size: 14, lineHeight: 24, weight: 400 },\n label: { size: 14, lineHeight: 20, weight: 600 },\n caption: { size: 12, lineHeight: 18, weight: 400 },\n price: { size: 16, lineHeight: 24, weight: 700 },\n mono: { size: 13, lineHeight: 20, weight: 500 },\n }),\n heights: Object.freeze({ sm: 40, md: 44, lg: 52 }),\n touchTarget: 44,\n}) as G9ShapeSet;\n\n/**\n * A shape with some parts replaced (deep for radii, type roles, heights and fonts). A `density` moves the base's three\n * heights together by the step's difference from the base's own step (explicit `heights` still win, part by part);\n * `touchTarget` never goes under {@link g9MinTouchTarget}.\n */\nexport function resolveShape(over: Partial<G9ShapeSet> | undefined, base: G9ShapeSet = g9DefaultShape): G9ShapeSet {\n if (!over) return base;\n const density = over.density ?? base.density;\n const shift = g9DensitySteps[density ?? 'regular'] - g9DensitySteps[base.density ?? 'regular'];\n const moved = shift\n ? { sm: base.heights.sm + shift, md: base.heights.md + shift, lg: base.heights.lg + shift }\n : base.heights;\n const fonts = over.fonts || base.fonts ? Object.freeze({ ...base.fonts, ...over.fonts }) : undefined;\n return Object.freeze({\n radii: Object.freeze({ ...base.radii, ...over.radii }),\n type: Object.freeze({ ...base.type, ...over.type }),\n heights: Object.freeze({ ...moved, ...over.heights }),\n touchTarget: Math.max(g9MinTouchTarget, over.touchTarget ?? base.touchTarget),\n ...(fonts ? { fonts } : {}),\n ...(density ? { density } : {}),\n ...((over.sizing ?? base.sizing) ? { sizing: over.sizing ?? base.sizing } : {}),\n });\n}\n\n/**\n * CSS variables of a shape: `--g9-radius-<role>`, `--g9-type-<role>-size|line|weight`, `--g9-height-sm|md|lg`,\n * `--g9-touch-target` (all px), and `--g9-font-latin|arabic|mono` (plus `-500|600|700|800`) for the families a theme\n * names. With a `direction`, also `--g9-font-text` and `--g9-font-text-500|600|700|800`: the families of that direction's\n * script (what every G9 text style reads, by its weight).\n */\nexport function toShapeCssVariables(shape: G9ShapeSet, direction?: 'ltr' | 'rtl'): Readonly<Record<string, string>> {\n const out: Record<string, string> = {};\n for (const [k, v] of Object.entries(shape.radii)) out[`--g9-radius-${toKebabCase(k)}`] = `${v}px`;\n for (const [k, v] of Object.entries(shape.type)) {\n out[`--g9-type-${k}-size`] = `${v.size}px`;\n out[`--g9-type-${k}-line`] = `${v.lineHeight}px`;\n out[`--g9-type-${k}-weight`] = String(v.weight);\n }\n for (const [k, v] of Object.entries(shape.heights)) out[`--g9-height-${k}`] = `${v}px`;\n out['--g9-touch-target'] = `${shape.touchTarget}px`;\n // only the families a theme names: unset, a text keeps the platform's font (the stock look is untouched)\n const fonts = shape.fonts ?? {};\n for (const script of ['latin', 'arabic', 'mono'] as const) {\n const family = fonts[script];\n if (typeof family === 'string' && family) out[`--g9-font-${script}`] = family;\n for (const w of g9FontWeights) {\n const f = familyForWeight(w, family, fonts[`${script}ByWeight`]);\n if (f) out[`--g9-font-${script}-${w}`] = f;\n }\n }\n // the font every G9 text reads, as a literal: native Lynx does not resolve a variable a stylesheet rule defines from\n // another one (`--a: var(--b)` stayed unresolved on the A21s), so the provider writes it for its root's direction\n const script = direction === 'rtl' ? 'arabic' : direction === 'ltr' ? 'latin' : undefined;\n if (script) {\n const text = fonts[script];\n if (text) out['--g9-font-text'] = text;\n // one literal per weight as well (a G9 text of weight 500 to 800 reads its own; see G9ThemeFonts.latinByWeight)\n for (const w of g9FontWeights) {\n const f = familyForWeight(w, text, fonts[`${script}ByWeight`]);\n if (f) out[FONT_TEXT_VAR[w]] = f;\n }\n }\n return out;\n}\n"],"names":["g9FontWeights","FONT_TEXT_VAR","familyForWeight","weight","base","byWeight","_ref","undefined","given","w","pick","g9FontFamilyFor","g9DensitySteps","Object","g9MinTouchTarget","g9DefaultShape","resolveShape","over","_over_density","_base_density","_over_touchTarget","_over_sizing","_over_sizing1","density","shift","moved","fonts","Math","toShapeCssVariables","shape","direction","_shape_fonts","out","k","v","toKebabCase","String","script","family","f","text"],"mappings":";AAoEO,MAAMA,gBAAyC;IAAC;IAAK;IAAK;IAAK;CAAI;AAG1E,MAAMC,gBAAwD;IAC5D,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;AACP;AAMO,SAASC,gBACdC,MAA0B,EAC1BC,IAAwB,EACxBC,QAAmC;QAKjCC,MAAAA;IAHF,IAAIH,AAAW,QAAXA,UAAkB,CAACE,UAAU,OAAOD,QAAQG;IAChD,MAAMC,QAAQR,cAAc,MAAM,CAAC,CAACS,IAAM,AAAuB,YAAvB,OAAOJ,QAAQ,CAACI,EAAE,IAAiBJ,QAAQ,CAACI,EAAE;IACxF,MAAMC,OAAAA,QACJJ,CAAAA,OAAAA,QAAAA,CAAAA,cAAAA,MAAM,IAAI,CAAC,CAACG,IAAMA,MAAMN,OAAM,IAA9BG,cAAmCE,MAAM,IAAI,CAAC,CAACC,IAAMA,IAAIN,OAAM,IAA/DG,OAAoE;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MC,SAASZ,KAAK,CAACW,OAAO;QAC5B,IAAI,AAAkB,YAAlB,OAAOC,UAAuBA,QAAQN,GAAG,CAAC,CAAC,UAAU,EAAEK,QAAQ,CAAC,GAAGC;QACvE,KAAK,MAAM7B,KAAKT,cAAe;YAC7B,MAAMuC,IAAIrC,gBAAgBO,GAAG6B,QAAQZ,KAAK,CAAC,GAAGW,OAAO,QAAQ,CAAC,CAAC;YAC/D,IAAIE,GAAGP,GAAG,CAAC,CAAC,UAAU,EAAEK,OAAO,CAAC,EAAE5B,GAAG,CAAC,GAAG8B;QAC3C;IACF;IAGA,MAAMF,SAASP,AAAc,UAAdA,YAAsB,WAAWA,AAAc,UAAdA,YAAsB,UAAUvB;IAChF,IAAI8B,QAAQ;QACV,MAAMG,OAAOd,KAAK,CAACW,OAAO;QAC1B,IAAIG,MAAMR,GAAG,CAAC,iBAAiB,GAAGQ;QAElC,KAAK,MAAM/B,KAAKT,cAAe;YAC7B,MAAMuC,IAAIrC,gBAAgBO,GAAG+B,MAAMd,KAAK,CAAC,GAAGW,OAAO,QAAQ,CAAC,CAAC;YAC7D,IAAIE,GAAGP,GAAG,CAAC/B,aAAa,CAACQ,EAAE,CAAC,GAAG8B;QACjC;IACF;IACA,OAAOP;AACT"}
|
package/docs/api.md
CHANGED
|
@@ -125,7 +125,7 @@ folder) explain how the pieces fit; the migration tables map every MAUI member.
|
|
|
125
125
|
| `mixOklch` | function | Linear interpolation in OKLCH (shorter hue arc). `t` 0..1. |
|
|
126
126
|
| `nearestTonalStep` | function | The step whose lightness is nearest to `color`'s. |
|
|
127
127
|
| `neutralScale` | function | A neutral scale tinted by `color`: the brand's hue at a whisper of chroma (`tint` 0 = pure grey, 1 = 0.02 C, the strongest tint that still reads as grey), so surfaces and text belong to the brand without looking coloured. |
|
|
128
|
-
| `oklchToHex` | function | OKLCH → `#RRGGBB` (or `#RRGGBBAA` with alpha < 1). |
|
|
128
|
+
| `oklchToHex` | function | OKLCH → `#RRGGBB` (or `#RRGGBBAA` with alpha < 1). `gamut: 'steps'` maps an out-of-sRGB colour by cutting chroma 10 % at a time (ShopManager's `@g9/tokens`, to the hex; opaque) instead of the default binary search. |
|
|
129
129
|
| `overriddenTokens` | function | Tokens a theme overrides (for a "what is changed" list in a theme editor). |
|
|
130
130
|
| `parseColor` | function | Parses a CSS colour: `#rgb`, `#rgba`, `#rrggbb`, `#rrggbbaa` (CSS order, alpha last), `rgb(r, g, b)`, `rgba(r, g, b, a)` (channels 0–255 or percentages, alpha 0–1 or a percentage) and `transparent`. Named colours other than `transparent` are not accepted: the palette tokens are the names. |
|
|
131
131
|
| `parseCssColor` | function | Parses any colour Lynx might be handed by a design tool or a web theme: hex, rgb/rgba, hsl/hsla, oklch, oklab, color-mix (in srgb, oklch or oklab, with percentages), a few named colours. Returns channels, or `undefined`. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/lynxcontrols-foundation",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.5",
|
|
4
4
|
"description": "Pure TypeScript core: design tokens, theme model, culture (strings, digits, calendars, relative time, durations), icon model, safe execution, diagnostics, preference and capability contracts. No React, no UI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|