@handijitcom/ui 3.6.1 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +194 -36
- package/build/chat.cjs +3 -3
- package/build/chat.cjs.map +1 -1
- package/build/chat.css +1 -1
- package/build/chat.js +168 -160
- package/build/chat.js.map +1 -1
- package/build/components/Alert/index.cjs +1 -1
- package/build/components/Alert/index.cjs.map +1 -1
- package/build/components/Alert/index.d.cts +7 -0
- package/build/components/Alert/index.d.ts +7 -0
- package/build/components/Alert/index.js +32 -19
- package/build/components/Alert/index.js.map +1 -1
- package/build/components/Alert/style.css +1 -1
- package/build/components/AppShell/style.css +1 -1
- package/build/components/AppliedFilters/style.css +1 -1
- package/build/components/CommandPalette/style.css +1 -1
- package/build/components/Directory/style.css +1 -1
- package/build/components/EmptyState/style.css +1 -1
- package/build/components/FacetSection/index.cjs +1 -1
- package/build/components/FacetSection/index.cjs.map +1 -1
- package/build/components/FacetSection/index.js +145 -138
- package/build/components/FacetSection/index.js.map +1 -1
- package/build/components/FacetSection/style.css +1 -1
- package/build/components/FacetSidebar/index.cjs +1 -1
- package/build/components/FacetSidebar/index.cjs.map +1 -1
- package/build/components/FacetSidebar/index.js +22 -29
- package/build/components/FacetSidebar/index.js.map +1 -1
- package/build/components/Heading/index.cjs +2 -0
- package/build/components/Heading/index.cjs.map +1 -0
- package/build/components/Heading/index.d.cts +34 -0
- package/build/components/Heading/index.d.ts +34 -0
- package/build/components/Heading/index.js +44 -0
- package/build/components/Heading/index.js.map +1 -0
- package/build/components/Heading/style.css +1 -0
- package/build/components/MegaMenu/index.cjs +1 -1
- package/build/components/MegaMenu/index.cjs.map +1 -1
- package/build/components/MegaMenu/index.d.cts +5 -1
- package/build/components/MegaMenu/index.d.ts +5 -1
- package/build/components/MegaMenu/index.js +131 -111
- package/build/components/MegaMenu/index.js.map +1 -1
- package/build/components/MegaMenu/style.css +1 -1
- package/build/components/Modal/style.css +1 -1
- package/build/components/NotificationCenter/style.css +1 -1
- package/build/components/PageHeader/style.css +1 -1
- package/build/components/Price/index.cjs +1 -1
- package/build/components/Price/index.cjs.map +1 -1
- package/build/components/Price/index.d.cts +5 -1
- package/build/components/Price/index.d.ts +5 -1
- package/build/components/Price/index.js +31 -32
- package/build/components/Price/index.js.map +1 -1
- package/build/components/Price/style.css +1 -1
- package/build/components/Radio/style.css +1 -1
- package/build/components/SectionHeader/style.css +1 -1
- package/build/components/Stat/index.cjs +1 -1
- package/build/components/Stat/index.cjs.map +1 -1
- package/build/components/Stat/index.d.cts +7 -3
- package/build/components/Stat/index.d.ts +7 -3
- package/build/components/Stat/index.js +61 -66
- package/build/components/Stat/index.js.map +1 -1
- package/build/components/StatCard/StatDelta.cjs +2 -0
- package/build/components/StatCard/StatDelta.cjs.map +1 -0
- package/build/components/StatCard/StatDelta.d.cts +17 -0
- package/build/components/StatCard/StatDelta.d.ts +17 -0
- package/build/components/StatCard/StatDelta.js +45 -0
- package/build/components/StatCard/StatDelta.js.map +1 -0
- package/build/components/StatCard/index.cjs +2 -0
- package/build/components/StatCard/index.cjs.map +1 -0
- package/build/components/StatCard/index.d.cts +36 -0
- package/build/components/StatCard/index.d.ts +36 -0
- package/build/components/StatCard/index.js +60 -0
- package/build/components/StatCard/index.js.map +1 -0
- package/build/components/StatCard/style.css +1 -0
- package/build/components/Table/style.css +1 -1
- package/build/components/Tabs/index.cjs +1 -1
- package/build/components/Tabs/index.cjs.map +1 -1
- package/build/components/Tabs/index.d.cts +26 -1
- package/build/components/Tabs/index.d.ts +26 -1
- package/build/components/Tabs/index.js +140 -112
- package/build/components/Tabs/index.js.map +1 -1
- package/build/components/Tabs/style.css +1 -1
- package/build/components/Text/index.cjs +2 -0
- package/build/components/Text/index.cjs.map +1 -0
- package/build/components/Text/index.d.cts +49 -0
- package/build/components/Text/index.d.ts +49 -0
- package/build/components/Text/index.js +47 -0
- package/build/components/Text/index.js.map +1 -0
- package/build/components/Text/style.css +1 -0
- package/build/design/index.cjs +12 -2
- package/build/design/index.cjs.map +1 -1
- package/build/design/index.d.cts +1 -5
- package/build/design/index.d.mts +1 -5
- package/build/design/index.mjs +12 -2
- package/build/design/index.mjs.map +1 -1
- package/build/design/index.umd.cjs +1 -1
- package/build/design/index.umd.cjs.map +1 -1
- package/build/design/tokens.css +29 -4
- package/build/design/tokens.json +42 -2
- package/build/design/tokens.scss +55 -0
- package/build/helpers/text.helper.cjs +1 -1
- package/build/helpers/text.helper.cjs.map +1 -1
- package/build/helpers/text.helper.d.cts +5 -0
- package/build/helpers/text.helper.d.ts +5 -0
- package/build/helpers/text.helper.js +3 -2
- package/build/helpers/text.helper.js.map +1 -1
- package/build/index.cjs +1 -1
- package/build/index.d.cts +5 -2
- package/build/index.d.ts +5 -2
- package/build/index.js +169 -163
- package/build/index.js.map +1 -1
- package/build/scss/_mixins.scss +101 -13
- package/build/scss/_variables.scss +5 -1
- package/build/styles.css +23 -17
- package/build/types/chat/DescriptionList/index.d.cts +6 -0
- package/build/types/chat/DescriptionList/index.d.ts +6 -0
- package/build/types/stat.type.d.cts +2 -0
- package/build/types/stat.type.d.ts +2 -0
- package/package.json +31 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.cjs","sources":["../../src/design/helpers/srgb.helper.ts","../../src/design/modules/css-var-name.ts","../../src/design/helpers/oklch.helper.ts","../../src/design/tokens/css-variable-prefix.ts","../../src/design/tokens/theme-attribute.ts","../../src/design/tokens/theme-storage-key.ts","../../src/design/tokens/brand-surface.ts","../../src/design/tokens/breakpoints.ts","../../src/design/modules/contrast.ts","../../src/design/modules/css-var.ts","../../src/design/modules/delta-e.ts","../../src/design/tokens/font-weights.ts","../../src/design/tokens/fonts.ts","../../src/design/modules/hex-to-oklch.ts","../../src/design/tokens/hues.ts","../../src/design/tokens/layers.ts","../../src/design/tokens/logos.ts","../../src/design/modules/max-chroma.ts","../../src/design/tokens/motion.ts","../../src/design/modules/oklch-to-hex.ts","../../src/design/tokens/radii.ts","../../src/design/tokens/spacing.ts","../../src/design/tokens/typography.ts"],"sourcesContent":["/** sRGB channels in the 0–1 range (gamma-encoded unless a function says linear). */\ntype Rgb = { r: number; g: number; b: number };\n\nconst HEX_PATTERN = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;\n\n/** sRGB gamma → linear light. */\nconst toLinear = (channel: number): number =>\n channel <= 0.04045 ? channel / 12.92 : ((channel + 0.055) / 1.055) ** 2.4;\n\n/** Linear light → sRGB gamma. */\nconst toGamma = (channel: number): number =>\n channel <= 0.0031308 ? channel * 12.92 : 1.055 * channel ** (1 / 2.4) - 0.055;\n\nconst describe = (value: unknown): string =>\n typeof value === 'string' ? `\"${value}\"` : typeof value;\n\n/** `#rgb` / `#rrggbb` → gamma-encoded channels; anything else is a caller error. */\nconst parseHex = (value: unknown, caller: string): Rgb => {\n if (typeof value !== 'string' || !HEX_PATTERN.test(value)) {\n throw new TypeError(\n `${caller}: expected a hex colour like \"#2661fa\", received ${describe(value)}`,\n );\n }\n\n const digits = value.slice(1);\n const full = digits.length === 3 ? digits.replace(/./g, digit => digit + digit) : digits;\n const channel = (start: number): number => parseInt(full.slice(start, start + 2), 16) / 255;\n\n return { r: channel(0), g: channel(2), b: channel(4) };\n};\n\nconst toByte = (channel: number): string =>\n Math.round(Math.min(1, Math.max(0, channel)) * 255)\n .toString(16)\n .padStart(2, '0');\n\n/** Gamma-encoded channels → lowercase `#rrggbb`; out-of-range channels clip. */\nconst formatHex = ({ r, g, b }: Rgb): string => `#${toByte(r)}${toByte(g)}${toByte(b)}`;\n\n/** WCAG 2 relative luminance of gamma-encoded channels. */\nconst relativeLuminance = ({ r, g, b }: Rgb): number =>\n 0.2126 * toLinear(r) + 0.7152 * toLinear(g) + 0.0722 * toLinear(b);\n\nexport type { Rgb };\nexport { formatHex, parseHex, relativeLuminance, toGamma, toLinear };\n","import CSS_VARIABLE_PREFIX from '../tokens/css-variable-prefix';\nimport type { TokenName } from '../types';\n\n/** The custom property name of a token: `cssVarName(\"bg-page\")` → `--hd-bg-page`. */\nconst cssVarName = <Name extends TokenName>(\n name: Name,\n): `--${typeof CSS_VARIABLE_PREFIX}-${Name}` => `--${CSS_VARIABLE_PREFIX}-${name}`;\n\nexport default cssVarName;\n","import type { Oklch } from '../types';\nimport type { Rgb } from './srgb.helper';\nimport { toGamma, toLinear } from './srgb.helper';\n\ntype Oklab = { l: number; a: number; b: number };\n\n// Rounding noise at the gamut edge must not count as \"out of gamut\".\nconst GAMUT_EPSILON = 0.0001;\n\n// 24 halvings of the widest chroma interval land far below one 8-bit step.\nconst BISECTION_STEPS = 24;\n\n/** OKLCH → gamma-encoded sRGB, without any gamut handling. */\nconst oklchToSrgb = ({ l, c, h }: Oklch): Rgb => {\n const radians = (h * Math.PI) / 180;\n const greenRed = c * Math.cos(radians);\n const blueYellow = c * Math.sin(radians);\n\n const long = (l + 0.3963377774 * greenRed + 0.2158037573 * blueYellow) ** 3;\n const medium = (l - 0.1055613458 * greenRed - 0.0638541728 * blueYellow) ** 3;\n const short = (l - 0.0894841775 * greenRed - 1.291485548 * blueYellow) ** 3;\n\n return {\n r: toGamma(4.0767416621 * long - 3.3077115913 * medium + 0.2309699292 * short),\n g: toGamma(-1.2684380046 * long + 2.6097574011 * medium - 0.3413193965 * short),\n b: toGamma(-0.0041960863 * long - 0.7034186147 * medium + 1.707614701 * short),\n };\n};\n\nconst isChannelInGamut = (channel: number): boolean =>\n channel >= -GAMUT_EPSILON && channel <= 1 + GAMUT_EPSILON;\n\nconst isInGamut = ({ r, g, b }: Rgb): boolean =>\n isChannelInGamut(r) && isChannelInGamut(g) && isChannelInGamut(b);\n\n/** The highest chroma up to `ceiling` that still fits sRGB at this lightness and hue. */\nconst fitChroma = (l: number, h: number, ceiling: number): number => {\n let low = 0;\n let high = ceiling;\n\n for (let step = 0; step < BISECTION_STEPS; step += 1) {\n const middle = (low + high) / 2;\n if (isInGamut(oklchToSrgb({ l, c: middle, h }))) low = middle;\n else high = middle;\n }\n\n return low;\n};\n\n/** Gamma-encoded sRGB → OKLab. */\nconst srgbToOklab = (rgb: Rgb): Oklab => {\n const r = toLinear(rgb.r);\n const g = toLinear(rgb.g);\n const b = toLinear(rgb.b);\n\n const long = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);\n const medium = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);\n const short = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);\n\n return {\n l: 0.2104542553 * long + 0.793617785 * medium - 0.0040720468 * short,\n a: 1.9779984951 * long - 2.428592205 * medium + 0.4505937099 * short,\n b: 0.0259040371 * long + 0.7827717662 * medium - 0.808675766 * short,\n };\n};\n\n/** Rejects `NaN`, `±Infinity` and non-numbers: no colour can be computed from them. */\nconst assertFinite = (value: unknown, name: string, caller: string): void => {\n if (typeof value !== 'number' || !Number.isFinite(value)) {\n throw new TypeError(`${caller}: ${name} must be a finite number, received ${String(value)}`);\n }\n};\n\nexport type { Oklab };\nexport { assertFinite, fitChroma, isInGamut, oklchToSrgb, srgbToOklab };\n","/** Every custom property and Sass variable of the package starts with this. */\nconst CSS_VARIABLE_PREFIX = 'hd' as const;\n\nexport default CSS_VARIABLE_PREFIX;\n","/** The attribute that selects a theme: `<html data-theme=\"dark\">`. */\nconst THEME_ATTRIBUTE = 'data-theme' as const;\n\nexport default THEME_ATTRIBUTE;\n","/**\n * The `localStorage` key holding the user's choice: `\"light\"`, `\"dark\"`, or anything else\n * (including no entry) for \"follow the system\".\n */\nconst THEME_STORAGE_KEY = 'hd-theme' as const;\n\nexport default THEME_STORAGE_KEY;\n","import type { BrandSurfaceRecipe } from '../types';\n\n/**\n * The brand surface's recipe: the numbers its imagery is drawn with, the same in every theme.\n * The colours are the theme's roles (`primary`, `brand-surface-deep`, `on-primary`, `accent`);\n * `effectValues` and `effects` pair the two. A component that draws the surface reads its\n * geometry here, because an SVG attribute (a pattern's cell, a gradient stop's offset) cannot\n * read a custom property.\n */\nconst brandSurface: BrandSurfaceRecipe = {\n gradientHold: 0.55,\n lineAlpha: 0.24,\n // White text on `primary` is 5.03:1; over a glow's centre at 6% it is still 4.58:1 (gated).\n // At 8% it would fall to 4.40:1, which is why the glow is a sheen and not a light.\n glowAlpha: 0.06,\n dotCell: 22,\n dotRadius: 1.6,\n dotAlpha: 0.22,\n blueprintHold: 0.7,\n blueprintFillAlpha: 0.16,\n blueprintStrokeAlpha: 0.4,\n accentGlow: { x: 0, y: 8, blur: 24, spread: -10, alpha: 0.45 },\n};\n\nexport default brandSurface;\n","import type { Breakpoints } from '../types';\n\n/** Viewport breakpoints in CSS pixels; each is the lower bound of its range. */\nconst breakpoints: Breakpoints = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n};\n\nexport default breakpoints;\n","import { parseHex, relativeLuminance } from '../helpers/srgb.helper';\n\n/** WCAG 2 contrast ratio of two opaque hex colours, from 1 to 21. Order does not matter. */\nconst contrast = (first: string, second: string): number => {\n const one = relativeLuminance(parseHex(first, 'contrast'));\n const other = relativeLuminance(parseHex(second, 'contrast'));\n return (Math.max(one, other) + 0.05) / (Math.min(one, other) + 0.05);\n};\n\nexport default contrast;\n","import type { TokenName } from '../types';\nimport cssVarName from './css-var-name';\n\n/**\n * A `var()` reference to a token: `cssVar(\"bg-page\")` → `var(--hd-bg-page)`.\n * The optional fallback is emitted verbatim: `var(--hd-bg-page, #fff)`.\n */\nconst cssVar = (name: TokenName, fallback?: string): string =>\n fallback === undefined ? `var(${cssVarName(name)})` : `var(${cssVarName(name)}, ${fallback})`;\n\nexport default cssVar;\n","import { srgbToOklab } from '../helpers/oklch.helper';\nimport { parseHex } from '../helpers/srgb.helper';\n\n/**\n * Perceptual distance between two hex colours: Euclidean OKLab distance × 100.\n * Around 2 is a just-noticeable difference; the palette keeps chart colours 10 apart.\n */\nconst deltaE = (first: string, second: string): number => {\n const from = srgbToOklab(parseHex(first, 'deltaE'));\n const to = srgbToOklab(parseHex(second, 'deltaE'));\n return Math.hypot(from.l - to.l, from.a - to.a, from.b - to.b) * 100;\n};\n\nexport default deltaE;\n","import type { FontWeights } from '../types';\n\n/** Named font weights. IBM Plex Mono ships only `regular` and `medium`. */\nconst fontWeights: FontWeights = {\n regular: 400,\n medium: 500,\n semibold: 600,\n bold: 700,\n};\n\nexport default fontWeights;\n","import type { Fonts } from '../types';\n\n/**\n * Font family stacks. The first family of each stack ships in `fonts.css`; the rest are\n * system fonts that hold the layout while the web font loads or when it is missing.\n */\nconst fonts: Fonts = {\n display: 'Archivo, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, sans-serif',\n body: 'Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif',\n mono: '\"IBM Plex Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n};\n\nexport default fonts;\n","import { srgbToOklab } from '../helpers/oklch.helper';\nimport { parseHex } from '../helpers/srgb.helper';\nimport type { Oklch } from '../types';\n\n// Below this chroma the hue angle is rounding noise, not information.\nconst ACHROMATIC_CHROMA = 0.0001;\n\n/** Converts `#rgb` / `#rrggbb` to OKLCH. Greys report chroma 0 and hue 0. */\nconst hexToOklch = (hex: string): Oklch => {\n const { l, a, b } = srgbToOklab(parseHex(hex, 'hexToOklch'));\n const c = Math.hypot(a, b);\n if (c < ACHROMATIC_CHROMA) return { l, c: 0, h: 0 };\n\n return { l, c, h: ((Math.atan2(b, a) * 180) / Math.PI + 360) % 360 };\n};\n\nexport default hexToOklch;\n","import type { HueName } from '../types';\n\n/**\n * OKLCH hue angle of every chromatic family: the brand's cobalt and coral, and red for danger,\n * the one status colour. The neutrals (`ink`) lean to the cobalt angle, which is ink's own.\n */\nconst hues: Readonly<Record<HueName, number>> = {\n cobalt: 264,\n coral: 33,\n danger: 14,\n};\n\nexport default hues;\n","import type { Layers } from '../types';\n\n/** `z-index` layers, lowest to highest. The gaps leave room for local stacking. */\nconst layers: Layers = {\n base: 0,\n raised: 1,\n sticky: 100,\n dropdown: 1000,\n overlay: 1100,\n modal: 1200,\n popover: 1300,\n toast: 1400,\n tooltip: 1500,\n};\n\nexport default layers;\n","import type { Logos } from '../types';\n\n/**\n * The Han Dijit logos as path data, so React and Electron code can draw them inline.\n * `body` takes `currentColor`; `dot` is the square dot of the mark and takes the accent.\n */\n// prettier-ignore\nconst logos: Logos = {\n mark: {\n viewBox: \"0 0 618.034 1000\",\n width: 618.034,\n height: 1000,\n body: \"M40.325 1000 L130.495 1000 L170.82 959.675 L170.82 554.175 L447.214 554.175 L447.214 959.675 L487.539 1000 L577.709 1000 L618.034 959.675 L618.034 439.083 L577.709 398.758 L170.82 398.758 L170.82 40.325 L130.495 0 L40.325 0 L0 40.325 L0 959.675 Z\",\n dot: \"M487.539 0 L577.709 0 L618.034 40.325 L618.034 130.495 L577.709 170.82 L487.539 170.82 L447.214 130.495 L447.214 40.325 Z\",\n },\n horizontal: {\n viewBox: \"0 0 6004.732 1109.971\",\n width: 6004.732,\n height: 1109.971,\n body: \"M44.76 1109.971 L144.846 1109.971 L189.605 1065.212 L189.605 615.118 L496.395 615.118 L496.395 1065.212 L541.154 1109.971 L641.24 1109.971 L686 1065.212 L686 487.37 L641.24 442.61 L189.605 442.61 L189.605 44.76 L144.846 0 L44.76 0 L0 44.76 L0 1065.212 Z M949.732 1109.971 1216.732 423.971H1380.732L1648.732 1109.971H1507.732L1452.732 963.971H1138.732L1083.732 1109.971ZM1179.732 853.971H1410.732L1341.732 667.971Q1337.732 657.971 1332.232 642.471Q1326.732 626.971 1320.732 608.471Q1314.732 589.971 1308.732 570.971Q1302.732 551.971 1297.732 536.971H1292.732Q1286.732 556.971 1278.232 582.971Q1269.732 608.971 1261.732 631.971Q1253.732 654.971 1248.732 667.971Z M1859.732 1109.971V423.971H1983.732L2276.732 828.971Q2281.732 834.971 2288.732 845.471Q2295.732 855.971 2301.732 865.971Q2307.732 875.971 2309.732 881.971H2314.732Q2314.732 867.971 2314.732 854.971Q2314.732 841.971 2314.732 828.971V423.971H2439.732V1109.971H2316.732L2022.732 701.971Q2014.732 689.971 2004.232 672.471Q1993.732 654.971 1989.732 647.971H1984.732Q1984.732 660.971 1984.732 674.471Q1984.732 687.971 1984.732 701.971V1109.971Z M3125.732 1109.971V423.971H3390.732Q3496.732 423.971 3571.732 460.471Q3646.732 496.971 3687.232 572.471Q3727.732 647.971 3727.732 766.971Q3727.732 884.971 3687.232 960.971Q3646.732 1036.971 3571.732 1073.471Q3496.732 1109.971 3390.732 1109.971ZM3237.732 1013.971H3389.732Q3442.732 1013.971 3484.232 999.971Q3525.732 985.971 3554.232 956.971Q3582.732 927.971 3597.232 883.471Q3611.732 838.971 3611.732 777.971V756.971Q3611.732 694.971 3597.232 650.471Q3582.732 605.971 3554.232 576.971Q3525.732 547.971 3484.232 533.971Q3442.732 519.971 3389.732 519.971H3237.732Z M3986.732 1109.971V423.971H4098.732V1109.971Z M4013.172 231.971 H4072.292 L4098.732 258.411 V317.532 L4072.292 343.971 H4013.172 L3986.732 317.532 V258.411 Z M4573.732 1121.971Q4500.732 1121.971 4449.732 1098.971Q4398.732 1075.971 4371.732 1031.971Q4344.732 987.971 4344.732 921.971V888.971H4455.732V924.971Q4455.732 973.971 4485.732 1000.471Q4515.732 1026.971 4573.732 1026.971Q4630.732 1026.971 4660.732 988.971Q4690.732 950.971 4690.732 879.971V423.971H4802.732V877.971Q4802.732 958.971 4775.732 1013.471Q4748.732 1067.971 4697.732 1094.971Q4646.732 1121.971 4573.732 1121.971Z M5091.732 1109.971V423.971H5203.732V1109.971Z M5118.172 231.971 H5177.292 L5203.732 258.411 V317.532 L5177.292 343.971 H5118.172 L5091.732 317.532 V258.411 Z M5663.732 1109.971V519.971H5436.732V423.971H6004.732V519.971H5775.732V1109.971Z\",\n dot: \"M541.154 0 L641.24 0 L686 44.76 L686 144.846 L641.24 189.605 L541.154 189.605 L496.395 144.846 L496.395 44.76 Z\",\n },\n};\n\nexport default logos;\n","import { assertFinite, fitChroma } from '../helpers/oklch.helper';\n\n// No sRGB colour reaches this chroma, so the search always starts outside the gamut.\nconst CHROMA_CEILING = 0.4;\n\n/** The highest chroma sRGB can show at the given OKLCH lightness and hue. */\nconst maxChroma = (l: number, h: number): number => {\n assertFinite(l, 'l', 'maxChroma');\n assertFinite(h, 'h', 'maxChroma');\n return fitChroma(l, h, CHROMA_CEILING);\n};\n\nexport default maxChroma;\n","import type { Motion } from '../types';\n\n/**\n * Durations (ms) and easings. `tokens.css` collapses the durations under\n * `prefers-reduced-motion: reduce`; code that animates from JavaScript has to check the\n * media query itself.\n */\nconst motion: Motion = {\n duration: { fast: 120, base: 200, slow: 320 },\n easing: {\n standard: 'cubic-bezier(0.2, 0, 0, 1)',\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(0.3, 0, 1, 1)',\n },\n};\n\nexport default motion;\n","import { assertFinite, fitChroma, isInGamut, oklchToSrgb } from '../helpers/oklch.helper';\nimport { formatHex } from '../helpers/srgb.helper';\nimport type { Oklch } from '../types';\n\n/**\n * Converts an OKLCH colour to `#rrggbb`. A colour outside sRGB keeps its lightness and hue\n * and gives up chroma until it fits; channels are never clipped individually.\n */\nconst oklchToHex = (color: Oklch): string => {\n // Destructuring a missing argument would throw an unhelpful engine error instead.\n const { l, c, h } = (color ?? {}) as Partial<Oklch>;\n assertFinite(l, 'l', 'oklchToHex');\n assertFinite(c, 'c', 'oklchToHex');\n assertFinite(h, 'h', 'oklchToHex');\n\n // Negative chroma is the same colour mirrored through grey; read it as \"no chroma\".\n const chroma = Math.max(0, c as number);\n const requested = { l: l as number, c: chroma, h: h as number };\n const direct = oklchToSrgb(requested);\n if (isInGamut(direct)) return formatHex(direct);\n\n return formatHex(\n oklchToSrgb({\n ...requested,\n c: fitChroma(requested.l, requested.h, chroma),\n }),\n );\n};\n\nexport default oklchToHex;\n","import type { Radii } from '../types';\n\n/** Corner radii in CSS pixels. `pill` is large enough to round any control fully. */\nconst radii: Radii = {\n xs: 6,\n sm: 10,\n md: 14,\n lg: 20,\n pill: 999,\n};\n\nexport default radii;\n","import type { Spacing } from '../types';\n\n/** The spacing scale in CSS pixels: every step is its name × 4px. */\nconst spacing: Spacing = {\n 0: 0,\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n 10: 40,\n 12: 48,\n 16: 64,\n 20: 80,\n 24: 96,\n};\n\nexport default spacing;\n","import type { Typography } from '../types';\n\n/**\n * The type scale. Sizes are CSS pixels at a 16px root (body is 15px); headings are set in\n * the display family, slightly wide (`stretch` above 100) and tight.\n */\nconst typography: Typography = {\n display: {\n font: 'display',\n size: 56,\n lineHeight: 1.05,\n weight: 700,\n letterSpacing: -0.03,\n stretch: 112,\n },\n h1: {\n font: 'display',\n size: 40,\n lineHeight: 1.1,\n weight: 700,\n letterSpacing: -0.025,\n stretch: 110,\n },\n h2: {\n font: 'display',\n size: 30,\n lineHeight: 1.15,\n weight: 700,\n letterSpacing: -0.02,\n stretch: 110,\n },\n h3: {\n font: 'display',\n size: 22,\n lineHeight: 1.2,\n weight: 650,\n letterSpacing: -0.015,\n stretch: 108,\n },\n h4: {\n font: 'display',\n size: 18,\n lineHeight: 1.3,\n weight: 650,\n letterSpacing: -0.01,\n stretch: 108,\n },\n lead: {\n font: 'body',\n size: 17,\n lineHeight: 1.55,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n body: {\n font: 'body',\n size: 15,\n lineHeight: 1.55,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n small: {\n font: 'body',\n size: 13,\n lineHeight: 1.5,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n caption: {\n font: 'body',\n size: 12,\n lineHeight: 1.4,\n weight: 500,\n letterSpacing: 0.01,\n stretch: 100,\n },\n code: {\n font: 'mono',\n size: 13,\n lineHeight: 1.5,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n};\n\nexport default typography;\n"],"names":["HEX_PATTERN","toLinear","channel","toGamma","parseHex","value","caller","test","TypeError","describe","digits","slice","full","length","replace","digit","start","parseInt","r","g","b","toByte","Math","round","min","max","toString","padStart","formatHex","relativeLuminance","cssVarName","name","oklchToSrgb","l","c","h","radians","PI","greenRed","cos","blueYellow","sin","long","medium","short","isChannelInGamut","isInGamut","fitChroma","ceiling","low","high","step","middle","srgbToOklab","rgb","cbrt","a","assertFinite","Number","isFinite","String","gradientHold","lineAlpha","glowAlpha","dotCell","dotRadius","dotAlpha","blueprintHold","blueprintFillAlpha","blueprintStrokeAlpha","accentGlow","x","y","blur","spread","alpha","sm","md","lg","xl","first","second","one","other","fallback","undefined","from","to","hypot","regular","semibold","bold","display","body","mono","hex","atan2","cobalt","coral","danger","base","raised","sticky","dropdown","overlay","modal","popover","toast","tooltip","mark","viewBox","width","height","dot","horizontal","duration","fast","slow","easing","standard","enter","exit","color","chroma","requested","direct","xs","pill","font","size","lineHeight","weight","letterSpacing","stretch","h1","h2","h3","h4","lead","small","caption","code"],"mappings":"qPAGA,MAAMA,EAAc,kCAGdC,EAAYC,GAChBA,GAAW,OAAUA,EAAU,QAAUA,EAAU,MAAS,QAAU,IAGlEC,EAAWD,GACfA,GAAW,SAAsB,MAAVA,EAAkB,MAAQA,IAAY,EAAI,KAAO,KAMpEE,EAAW,CAACC,EAAgBC,KAChC,GAAqB,iBAAVD,IAAuBL,EAAYO,KAAKF,GACjD,MAAM,IAAIG,UACR,GAAGF,qDAPQ,CAACD,GACC,iBAAVA,EAAqB,IAAIA,YAAkBA,EAMeI,CAASJ,MAI1E,MAAMK,EAASL,EAAMM,MAAM,GACrBC,EAAyB,IAAlBF,EAAOG,OAAeH,EAAOI,QAAQ,KAAMC,GAASA,EAAQA,GAASL,EAC5ER,EAAWc,GAA0BC,SAASL,EAAKD,MAAMK,EAAOA,EAAQ,GAAI,IAAM,IAExF,MAAO,CAAEE,EAAGhB,EAAQ,GAAIiB,EAAGjB,EAAQ,GAAIkB,EAAGlB,EAA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AAS,KAEXO,QAAS,CACPZ,KAAM,OACNC,KAAM,GACNC,WAAY,IACZC,OAAQ,IACRC,cAAe,IACfC,QAAS,KAEXQ,KAAM,CACJb,KAAM,OACNC,KAAM,GACNC,WAAY,IACZC,OAAQ,IACRC,cAAe,EACfC,QAAS"}
|
|
1
|
+
{"version":3,"file":"index.umd.cjs","sources":["../../src/design/helpers/srgb.helper.ts","../../src/design/modules/css-var-name.ts","../../src/design/helpers/oklch.helper.ts","../../src/design/tokens/typography.ts","../../src/design/tokens/css-variable-prefix.ts","../../src/design/tokens/theme-attribute.ts","../../src/design/tokens/theme-storage-key.ts","../../src/design/tokens/brand-surface.ts","../../src/design/tokens/breakpoints.ts","../../src/design/modules/contrast.ts","../../src/design/modules/css-var.ts","../../src/design/modules/delta-e.ts","../../src/design/tokens/font-weights.ts","../../src/design/tokens/fonts.ts","../../src/design/modules/hex-to-oklch.ts","../../src/design/tokens/hues.ts","../../src/design/tokens/layers.ts","../../src/design/tokens/logos.ts","../../src/design/modules/max-chroma.ts","../../src/design/tokens/motion.ts","../../src/design/modules/oklch-to-hex.ts","../../src/design/tokens/radii.ts","../../src/design/tokens/spacing.ts"],"sourcesContent":["/** sRGB channels in the 0–1 range (gamma-encoded unless a function says linear). */\ntype Rgb = { r: number; g: number; b: number };\n\nconst HEX_PATTERN = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;\n\n/** sRGB gamma → linear light. */\nconst toLinear = (channel: number): number =>\n channel <= 0.04045 ? channel / 12.92 : ((channel + 0.055) / 1.055) ** 2.4;\n\n/** Linear light → sRGB gamma. */\nconst toGamma = (channel: number): number =>\n channel <= 0.0031308 ? channel * 12.92 : 1.055 * channel ** (1 / 2.4) - 0.055;\n\nconst describe = (value: unknown): string =>\n typeof value === 'string' ? `\"${value}\"` : typeof value;\n\n/** `#rgb` / `#rrggbb` → gamma-encoded channels; anything else is a caller error. */\nconst parseHex = (value: unknown, caller: string): Rgb => {\n if (typeof value !== 'string' || !HEX_PATTERN.test(value)) {\n throw new TypeError(\n `${caller}: expected a hex colour like \"#2661fa\", received ${describe(value)}`,\n );\n }\n\n const digits = value.slice(1);\n const full = digits.length === 3 ? digits.replace(/./g, digit => digit + digit) : digits;\n const channel = (start: number): number => parseInt(full.slice(start, start + 2), 16) / 255;\n\n return { r: channel(0), g: channel(2), b: channel(4) };\n};\n\nconst toByte = (channel: number): string =>\n Math.round(Math.min(1, Math.max(0, channel)) * 255)\n .toString(16)\n .padStart(2, '0');\n\n/** Gamma-encoded channels → lowercase `#rrggbb`; out-of-range channels clip. */\nconst formatHex = ({ r, g, b }: Rgb): string => `#${toByte(r)}${toByte(g)}${toByte(b)}`;\n\n/** WCAG 2 relative luminance of gamma-encoded channels. */\nconst relativeLuminance = ({ r, g, b }: Rgb): number =>\n 0.2126 * toLinear(r) + 0.7152 * toLinear(g) + 0.0722 * toLinear(b);\n\nexport type { Rgb };\nexport { formatHex, parseHex, relativeLuminance, toGamma, toLinear };\n","import CSS_VARIABLE_PREFIX from '../tokens/css-variable-prefix';\nimport type { TokenName } from '../types';\n\n/** The custom property name of a token: `cssVarName(\"bg-page\")` → `--hd-bg-page`. */\nconst cssVarName = <Name extends TokenName>(\n name: Name,\n): `--${typeof CSS_VARIABLE_PREFIX}-${Name}` => `--${CSS_VARIABLE_PREFIX}-${name}`;\n\nexport default cssVarName;\n","import type { Oklch } from '../types';\nimport type { Rgb } from './srgb.helper';\nimport { toGamma, toLinear } from './srgb.helper';\n\ntype Oklab = { l: number; a: number; b: number };\n\n// Rounding noise at the gamut edge must not count as \"out of gamut\".\nconst GAMUT_EPSILON = 0.0001;\n\n// 24 halvings of the widest chroma interval land far below one 8-bit step.\nconst BISECTION_STEPS = 24;\n\n/** OKLCH → gamma-encoded sRGB, without any gamut handling. */\nconst oklchToSrgb = ({ l, c, h }: Oklch): Rgb => {\n const radians = (h * Math.PI) / 180;\n const greenRed = c * Math.cos(radians);\n const blueYellow = c * Math.sin(radians);\n\n const long = (l + 0.3963377774 * greenRed + 0.2158037573 * blueYellow) ** 3;\n const medium = (l - 0.1055613458 * greenRed - 0.0638541728 * blueYellow) ** 3;\n const short = (l - 0.0894841775 * greenRed - 1.291485548 * blueYellow) ** 3;\n\n return {\n r: toGamma(4.0767416621 * long - 3.3077115913 * medium + 0.2309699292 * short),\n g: toGamma(-1.2684380046 * long + 2.6097574011 * medium - 0.3413193965 * short),\n b: toGamma(-0.0041960863 * long - 0.7034186147 * medium + 1.707614701 * short),\n };\n};\n\nconst isChannelInGamut = (channel: number): boolean =>\n channel >= -GAMUT_EPSILON && channel <= 1 + GAMUT_EPSILON;\n\nconst isInGamut = ({ r, g, b }: Rgb): boolean =>\n isChannelInGamut(r) && isChannelInGamut(g) && isChannelInGamut(b);\n\n/** The highest chroma up to `ceiling` that still fits sRGB at this lightness and hue. */\nconst fitChroma = (l: number, h: number, ceiling: number): number => {\n let low = 0;\n let high = ceiling;\n\n for (let step = 0; step < BISECTION_STEPS; step += 1) {\n const middle = (low + high) / 2;\n if (isInGamut(oklchToSrgb({ l, c: middle, h }))) low = middle;\n else high = middle;\n }\n\n return low;\n};\n\n/** Gamma-encoded sRGB → OKLab. */\nconst srgbToOklab = (rgb: Rgb): Oklab => {\n const r = toLinear(rgb.r);\n const g = toLinear(rgb.g);\n const b = toLinear(rgb.b);\n\n const long = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);\n const medium = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);\n const short = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);\n\n return {\n l: 0.2104542553 * long + 0.793617785 * medium - 0.0040720468 * short,\n a: 1.9779984951 * long - 2.428592205 * medium + 0.4505937099 * short,\n b: 0.0259040371 * long + 0.7827717662 * medium - 0.808675766 * short,\n };\n};\n\n/** Rejects `NaN`, `±Infinity` and non-numbers: no colour can be computed from them. */\nconst assertFinite = (value: unknown, name: string, caller: string): void => {\n if (typeof value !== 'number' || !Number.isFinite(value)) {\n throw new TypeError(`${caller}: ${name} must be a finite number, received ${String(value)}`);\n }\n};\n\nexport type { Oklab };\nexport { assertFinite, fitChroma, isInGamut, oklchToSrgb, srgbToOklab };\n","import type { Typography } from '../types';\n\n/**\n * The type scale. Sizes are CSS pixels at a 16px root (body is 15px); headings are set in\n * the display family, slightly wide (`stretch` above 100) and tight.\n *\n * `title-1` … `title-5` (3.7) are the headings of an interface — a portal, a panel, a product\n * page: the display family at its normal width and one weight, 600, from 32 down to 15px. The\n * wide 650–700 roles above read as a poster next to 13–15px data and stay for marketing pages.\n */\nconst title = (size: number, lineHeight: number, letterSpacing: number) =>\n ({ font: 'display', size, lineHeight, weight: 600, letterSpacing, stretch: 100 }) as const;\n\nconst typography: Typography = {\n display: {\n font: 'display',\n size: 56,\n lineHeight: 1.05,\n weight: 700,\n letterSpacing: -0.03,\n stretch: 112,\n },\n h1: {\n font: 'display',\n size: 40,\n lineHeight: 1.1,\n weight: 700,\n letterSpacing: -0.025,\n stretch: 110,\n },\n h2: {\n font: 'display',\n size: 30,\n lineHeight: 1.15,\n weight: 700,\n letterSpacing: -0.02,\n stretch: 110,\n },\n h3: {\n font: 'display',\n size: 22,\n lineHeight: 1.2,\n weight: 650,\n letterSpacing: -0.015,\n stretch: 108,\n },\n h4: {\n font: 'display',\n size: 18,\n lineHeight: 1.3,\n weight: 650,\n letterSpacing: -0.01,\n stretch: 108,\n },\n 'title-1': title(32, 1.2, -0.015),\n 'title-2': title(28, 1.25, -0.012),\n 'title-3': title(22, 1.3, -0.008),\n 'title-4': title(18, 1.35, -0.004),\n 'title-5': title(15, 1.4, 0),\n lead: {\n font: 'body',\n size: 17,\n lineHeight: 1.55,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n body: {\n font: 'body',\n size: 15,\n lineHeight: 1.55,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n small: {\n font: 'body',\n size: 13,\n lineHeight: 1.5,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n caption: {\n font: 'body',\n size: 12,\n lineHeight: 1.4,\n weight: 500,\n letterSpacing: 0.01,\n stretch: 100,\n },\n code: {\n font: 'mono',\n size: 13,\n lineHeight: 1.5,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n};\n\nexport default typography;\n","/** Every custom property and Sass variable of the package starts with this. */\nconst CSS_VARIABLE_PREFIX = 'hd' as const;\n\nexport default CSS_VARIABLE_PREFIX;\n","/** The attribute that selects a theme: `<html data-theme=\"dark\">`. */\nconst THEME_ATTRIBUTE = 'data-theme' as const;\n\nexport default THEME_ATTRIBUTE;\n","/**\n * The `localStorage` key holding the user's choice: `\"light\"`, `\"dark\"`, or anything else\n * (including no entry) for \"follow the system\".\n */\nconst THEME_STORAGE_KEY = 'hd-theme' as const;\n\nexport default THEME_STORAGE_KEY;\n","import type { BrandSurfaceRecipe } from '../types';\n\n/**\n * The brand surface's recipe: the numbers its imagery is drawn with, the same in every theme.\n * The colours are the theme's roles (`primary`, `brand-surface-deep`, `on-primary`, `accent`);\n * `effectValues` and `effects` pair the two. A component that draws the surface reads its\n * geometry here, because an SVG attribute (a pattern's cell, a gradient stop's offset) cannot\n * read a custom property.\n */\nconst brandSurface: BrandSurfaceRecipe = {\n gradientHold: 0.55,\n lineAlpha: 0.24,\n // White text on `primary` is 5.03:1; over a glow's centre at 6% it is still 4.58:1 (gated).\n // At 8% it would fall to 4.40:1, which is why the glow is a sheen and not a light.\n glowAlpha: 0.06,\n dotCell: 22,\n dotRadius: 1.6,\n dotAlpha: 0.22,\n blueprintHold: 0.7,\n blueprintFillAlpha: 0.16,\n blueprintStrokeAlpha: 0.4,\n accentGlow: { x: 0, y: 8, blur: 24, spread: -10, alpha: 0.45 },\n};\n\nexport default brandSurface;\n","import type { Breakpoints } from '../types';\n\n/** Viewport breakpoints in CSS pixels; each is the lower bound of its range. */\nconst breakpoints: Breakpoints = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n};\n\nexport default breakpoints;\n","import { parseHex, relativeLuminance } from '../helpers/srgb.helper';\n\n/** WCAG 2 contrast ratio of two opaque hex colours, from 1 to 21. Order does not matter. */\nconst contrast = (first: string, second: string): number => {\n const one = relativeLuminance(parseHex(first, 'contrast'));\n const other = relativeLuminance(parseHex(second, 'contrast'));\n return (Math.max(one, other) + 0.05) / (Math.min(one, other) + 0.05);\n};\n\nexport default contrast;\n","import type { TokenName } from '../types';\nimport cssVarName from './css-var-name';\n\n/**\n * A `var()` reference to a token: `cssVar(\"bg-page\")` → `var(--hd-bg-page)`.\n * The optional fallback is emitted verbatim: `var(--hd-bg-page, #fff)`.\n */\nconst cssVar = (name: TokenName, fallback?: string): string =>\n fallback === undefined ? `var(${cssVarName(name)})` : `var(${cssVarName(name)}, ${fallback})`;\n\nexport default cssVar;\n","import { srgbToOklab } from '../helpers/oklch.helper';\nimport { parseHex } from '../helpers/srgb.helper';\n\n/**\n * Perceptual distance between two hex colours: Euclidean OKLab distance × 100.\n * Around 2 is a just-noticeable difference; the palette keeps chart colours 10 apart.\n */\nconst deltaE = (first: string, second: string): number => {\n const from = srgbToOklab(parseHex(first, 'deltaE'));\n const to = srgbToOklab(parseHex(second, 'deltaE'));\n return Math.hypot(from.l - to.l, from.a - to.a, from.b - to.b) * 100;\n};\n\nexport default deltaE;\n","import type { FontWeights } from '../types';\n\n/** Named font weights. IBM Plex Mono ships only `regular` and `medium`. */\nconst fontWeights: FontWeights = {\n regular: 400,\n medium: 500,\n semibold: 600,\n bold: 700,\n};\n\nexport default fontWeights;\n","import type { Fonts } from '../types';\n\n/**\n * Font family stacks. The first family of each stack ships in `fonts.css`; the rest are\n * system fonts that hold the layout while the web font loads or when it is missing.\n */\nconst fonts: Fonts = {\n display: 'Archivo, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, sans-serif',\n body: 'Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif',\n mono: '\"IBM Plex Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n};\n\nexport default fonts;\n","import { srgbToOklab } from '../helpers/oklch.helper';\nimport { parseHex } from '../helpers/srgb.helper';\nimport type { Oklch } from '../types';\n\n// Below this chroma the hue angle is rounding noise, not information.\nconst ACHROMATIC_CHROMA = 0.0001;\n\n/** Converts `#rgb` / `#rrggbb` to OKLCH. Greys report chroma 0 and hue 0. */\nconst hexToOklch = (hex: string): Oklch => {\n const { l, a, b } = srgbToOklab(parseHex(hex, 'hexToOklch'));\n const c = Math.hypot(a, b);\n if (c < ACHROMATIC_CHROMA) return { l, c: 0, h: 0 };\n\n return { l, c, h: ((Math.atan2(b, a) * 180) / Math.PI + 360) % 360 };\n};\n\nexport default hexToOklch;\n","import type { HueName } from '../types';\n\n/**\n * OKLCH hue angle of every chromatic family: the brand's cobalt and coral, and red for danger,\n * the one status colour. The neutrals (`ink`) lean to the cobalt angle, which is ink's own.\n */\nconst hues: Readonly<Record<HueName, number>> = {\n cobalt: 264,\n coral: 33,\n danger: 14,\n};\n\nexport default hues;\n","import type { Layers } from '../types';\n\n/** `z-index` layers, lowest to highest. The gaps leave room for local stacking. */\nconst layers: Layers = {\n base: 0,\n raised: 1,\n sticky: 100,\n dropdown: 1000,\n overlay: 1100,\n modal: 1200,\n popover: 1300,\n toast: 1400,\n tooltip: 1500,\n};\n\nexport default layers;\n","import type { Logos } from '../types';\n\n/**\n * The Han Dijit logos as path data, so React and Electron code can draw them inline.\n * `body` takes `currentColor`; `dot` is the square dot of the mark and takes the accent.\n */\n// prettier-ignore\nconst logos: Logos = {\n mark: {\n viewBox: \"0 0 618.034 1000\",\n width: 618.034,\n height: 1000,\n body: \"M40.325 1000 L130.495 1000 L170.82 959.675 L170.82 554.175 L447.214 554.175 L447.214 959.675 L487.539 1000 L577.709 1000 L618.034 959.675 L618.034 439.083 L577.709 398.758 L170.82 398.758 L170.82 40.325 L130.495 0 L40.325 0 L0 40.325 L0 959.675 Z\",\n dot: \"M487.539 0 L577.709 0 L618.034 40.325 L618.034 130.495 L577.709 170.82 L487.539 170.82 L447.214 130.495 L447.214 40.325 Z\",\n },\n horizontal: {\n viewBox: \"0 0 6004.732 1109.971\",\n width: 6004.732,\n height: 1109.971,\n body: \"M44.76 1109.971 L144.846 1109.971 L189.605 1065.212 L189.605 615.118 L496.395 615.118 L496.395 1065.212 L541.154 1109.971 L641.24 1109.971 L686 1065.212 L686 487.37 L641.24 442.61 L189.605 442.61 L189.605 44.76 L144.846 0 L44.76 0 L0 44.76 L0 1065.212 Z M949.732 1109.971 1216.732 423.971H1380.732L1648.732 1109.971H1507.732L1452.732 963.971H1138.732L1083.732 1109.971ZM1179.732 853.971H1410.732L1341.732 667.971Q1337.732 657.971 1332.232 642.471Q1326.732 626.971 1320.732 608.471Q1314.732 589.971 1308.732 570.971Q1302.732 551.971 1297.732 536.971H1292.732Q1286.732 556.971 1278.232 582.971Q1269.732 608.971 1261.732 631.971Q1253.732 654.971 1248.732 667.971Z M1859.732 1109.971V423.971H1983.732L2276.732 828.971Q2281.732 834.971 2288.732 845.471Q2295.732 855.971 2301.732 865.971Q2307.732 875.971 2309.732 881.971H2314.732Q2314.732 867.971 2314.732 854.971Q2314.732 841.971 2314.732 828.971V423.971H2439.732V1109.971H2316.732L2022.732 701.971Q2014.732 689.971 2004.232 672.471Q1993.732 654.971 1989.732 647.971H1984.732Q1984.732 660.971 1984.732 674.471Q1984.732 687.971 1984.732 701.971V1109.971Z M3125.732 1109.971V423.971H3390.732Q3496.732 423.971 3571.732 460.471Q3646.732 496.971 3687.232 572.471Q3727.732 647.971 3727.732 766.971Q3727.732 884.971 3687.232 960.971Q3646.732 1036.971 3571.732 1073.471Q3496.732 1109.971 3390.732 1109.971ZM3237.732 1013.971H3389.732Q3442.732 1013.971 3484.232 999.971Q3525.732 985.971 3554.232 956.971Q3582.732 927.971 3597.232 883.471Q3611.732 838.971 3611.732 777.971V756.971Q3611.732 694.971 3597.232 650.471Q3582.732 605.971 3554.232 576.971Q3525.732 547.971 3484.232 533.971Q3442.732 519.971 3389.732 519.971H3237.732Z M3986.732 1109.971V423.971H4098.732V1109.971Z M4013.172 231.971 H4072.292 L4098.732 258.411 V317.532 L4072.292 343.971 H4013.172 L3986.732 317.532 V258.411 Z M4573.732 1121.971Q4500.732 1121.971 4449.732 1098.971Q4398.732 1075.971 4371.732 1031.971Q4344.732 987.971 4344.732 921.971V888.971H4455.732V924.971Q4455.732 973.971 4485.732 1000.471Q4515.732 1026.971 4573.732 1026.971Q4630.732 1026.971 4660.732 988.971Q4690.732 950.971 4690.732 879.971V423.971H4802.732V877.971Q4802.732 958.971 4775.732 1013.471Q4748.732 1067.971 4697.732 1094.971Q4646.732 1121.971 4573.732 1121.971Z M5091.732 1109.971V423.971H5203.732V1109.971Z M5118.172 231.971 H5177.292 L5203.732 258.411 V317.532 L5177.292 343.971 H5118.172 L5091.732 317.532 V258.411 Z M5663.732 1109.971V519.971H5436.732V423.971H6004.732V519.971H5775.732V1109.971Z\",\n dot: \"M541.154 0 L641.24 0 L686 44.76 L686 144.846 L641.24 189.605 L541.154 189.605 L496.395 144.846 L496.395 44.76 Z\",\n },\n};\n\nexport default logos;\n","import { assertFinite, fitChroma } from '../helpers/oklch.helper';\n\n// No sRGB colour reaches this chroma, so the search always starts outside the gamut.\nconst CHROMA_CEILING = 0.4;\n\n/** The highest chroma sRGB can show at the given OKLCH lightness and hue. */\nconst maxChroma = (l: number, h: number): number => {\n assertFinite(l, 'l', 'maxChroma');\n assertFinite(h, 'h', 'maxChroma');\n return fitChroma(l, h, CHROMA_CEILING);\n};\n\nexport default maxChroma;\n","import type { Motion } from '../types';\n\n/**\n * Durations (ms) and easings. `tokens.css` collapses the durations under\n * `prefers-reduced-motion: reduce`; code that animates from JavaScript has to check the\n * media query itself.\n */\nconst motion: Motion = {\n duration: { fast: 120, base: 200, slow: 320 },\n easing: {\n standard: 'cubic-bezier(0.2, 0, 0, 1)',\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(0.3, 0, 1, 1)',\n },\n};\n\nexport default motion;\n","import { assertFinite, fitChroma, isInGamut, oklchToSrgb } from '../helpers/oklch.helper';\nimport { formatHex } from '../helpers/srgb.helper';\nimport type { Oklch } from '../types';\n\n/**\n * Converts an OKLCH colour to `#rrggbb`. A colour outside sRGB keeps its lightness and hue\n * and gives up chroma until it fits; channels are never clipped individually.\n */\nconst oklchToHex = (color: Oklch): string => {\n // Destructuring a missing argument would throw an unhelpful engine error instead.\n const { l, c, h } = (color ?? {}) as Partial<Oklch>;\n assertFinite(l, 'l', 'oklchToHex');\n assertFinite(c, 'c', 'oklchToHex');\n assertFinite(h, 'h', 'oklchToHex');\n\n // Negative chroma is the same colour mirrored through grey; read it as \"no chroma\".\n const chroma = Math.max(0, c as number);\n const requested = { l: l as number, c: chroma, h: h as number };\n const direct = oklchToSrgb(requested);\n if (isInGamut(direct)) return formatHex(direct);\n\n return formatHex(\n oklchToSrgb({\n ...requested,\n c: fitChroma(requested.l, requested.h, chroma),\n }),\n );\n};\n\nexport default oklchToHex;\n","import type { Radii } from '../types';\n\n/** Corner radii in CSS pixels. `pill` is large enough to round any control fully. */\nconst radii: Radii = {\n xs: 6,\n sm: 10,\n md: 14,\n lg: 20,\n pill: 999,\n};\n\nexport default radii;\n","import type { Spacing } from '../types';\n\n/** The spacing scale in CSS pixels: every step is its name × 4px. */\nconst spacing: Spacing = {\n 0: 0,\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n 10: 40,\n 12: 48,\n 16: 64,\n 20: 80,\n 24: 96,\n};\n\nexport default spacing;\n"],"names":["HEX_PATTERN","toLinear","channel","toGamma","parseHex","value","caller","test","TypeError","describe","digits","slice","full","length","replace","digit","start","parseInt","r","g","b","toByte","Math","round","min","max","toString","padStart","formatHex","relativeLuminance","cssVarName","name","oklchToSrgb","l","c","h","radians","PI","greenRed","cos","blueYellow","sin","long","medium","short","isChannelInGamut","isInGamut","fitChroma","ceiling","low","high","step","middle","srgbToOklab","rgb","cbrt","a","assertFinite","Number","isFinite","String","title","size","lineHeight","letterSpacing","font","weight","stretch","typography","display","h1","h2","h3","h4","lead","body","small","caption","code","gradientHold","lineAlpha","glowAlpha","dotCell","dotRadius","dotAlpha","blueprintHold","blueprintFillAlpha","blueprintStrokeAlpha","accentGlow","x","y","blur","spread","alpha","sm","md","lg","xl","first","second","one","other","fallback","undefined","from","to","hypot","regular","semibold","bold","mono","hex","atan2","cobalt","coral","danger","base","raised","sticky","dropdown","overlay","modal","popover","toast","tooltip","mark","viewBox","width","height","dot","horizontal","duration","fast","slow","easing","standard","enter","exit","color","chroma","requested","direct","xs","pill"],"mappings":"qPAGA,MAAMA,EAAc,kCAGdC,EAAYC,GAChBA,GAAW,OAAUA,EAAU,QAAUA,EAAU,MAAS,QAAU,IAGlEC,EAAWD,GACfA,GAAW,SAAsB,MAAVA,EAAkB,MAAQA,IAAY,EAAI,KAAO,KAMpEE,EAAW,CAACC,EAAgBC,KAChC,GAAqB,iBAAVD,IAAuBL,EAAYO,KAAKF,GACjD,MAAM,IAAIG,UACR,GAAGF,qDAPQ,CAACD,GACC,iBAAVA,EAAqB,IAAIA,YAAkBA,EAMeI,CAASJ,MAI1E,MAAMK,EAASL,EAAMM,MAAM,GACrBC,EAAyB,IAAlBF,EAAOG,OAAeH,EAAOI,QAAQ,KAAMC,GAASA,EAAQA,GAASL,EAC5ER,EAAWc,GAA0BC,SAASL,EAAKD,MAAMK,EAAOA,EAAQ,GAAI,IAAM,IAExF,MAAO,CAAEE,EAAGhB,EAAQ,GAAIiB,EAAGjB,EAAQ,GAAIkB,EAAGlB,EAAQ,KAG9CmB,EAAUnB,GACdoB,KAAKC,MAA0C,IAApCD,KAAKE,IAAI,EAAGF,KAAKG,IAAI,EAAGvB,KAChCwB,SAAS,IACTC,SAAS,EAAG,KAGXC,EAAY,EAAGV,IAAGC,IAAGC,OAAqB,IAAIC,EAAOH,KAAKG,EAAOF,KAA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F,EAAU3G,EAAG2G,EAAUzG,EAAGwG,eCrBxB,CACnBG,GAAI,EACJhD,GAAI,GACJC,GAAI,GACJC,GAAI,GACJ+C,KAAM,urBCLiB,CACvB,EAAG,EACH,EAAG,EACH,EAAG,EACH,EAAG,GACH,EAAG,GACH,EAAG,GACH,EAAG,GACH,EAAG,GACH,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI"}
|
package/build/design/tokens.css
CHANGED
|
@@ -92,6 +92,31 @@
|
|
|
92
92
|
--hd-type-h4-weight: 650;
|
|
93
93
|
--hd-type-h4-letter-spacing: -0.01em;
|
|
94
94
|
--hd-type-h4-stretch: 108%;
|
|
95
|
+
--hd-type-title-1-size: 2rem;
|
|
96
|
+
--hd-type-title-1-line-height: 1.2;
|
|
97
|
+
--hd-type-title-1-weight: 600;
|
|
98
|
+
--hd-type-title-1-letter-spacing: -0.015em;
|
|
99
|
+
--hd-type-title-1-stretch: 100%;
|
|
100
|
+
--hd-type-title-2-size: 1.75rem;
|
|
101
|
+
--hd-type-title-2-line-height: 1.25;
|
|
102
|
+
--hd-type-title-2-weight: 600;
|
|
103
|
+
--hd-type-title-2-letter-spacing: -0.012em;
|
|
104
|
+
--hd-type-title-2-stretch: 100%;
|
|
105
|
+
--hd-type-title-3-size: 1.375rem;
|
|
106
|
+
--hd-type-title-3-line-height: 1.3;
|
|
107
|
+
--hd-type-title-3-weight: 600;
|
|
108
|
+
--hd-type-title-3-letter-spacing: -0.008em;
|
|
109
|
+
--hd-type-title-3-stretch: 100%;
|
|
110
|
+
--hd-type-title-4-size: 1.125rem;
|
|
111
|
+
--hd-type-title-4-line-height: 1.35;
|
|
112
|
+
--hd-type-title-4-weight: 600;
|
|
113
|
+
--hd-type-title-4-letter-spacing: -0.004em;
|
|
114
|
+
--hd-type-title-4-stretch: 100%;
|
|
115
|
+
--hd-type-title-5-size: 0.9375rem;
|
|
116
|
+
--hd-type-title-5-line-height: 1.4;
|
|
117
|
+
--hd-type-title-5-weight: 600;
|
|
118
|
+
--hd-type-title-5-letter-spacing: 0em;
|
|
119
|
+
--hd-type-title-5-stretch: 100%;
|
|
95
120
|
--hd-type-lead-size: 1.0625rem;
|
|
96
121
|
--hd-type-lead-line-height: 1.55;
|
|
97
122
|
--hd-type-lead-weight: 400;
|
|
@@ -165,7 +190,7 @@
|
|
|
165
190
|
color-scheme: light;
|
|
166
191
|
|
|
167
192
|
/* Colours */
|
|
168
|
-
--hd-bg-page: #
|
|
193
|
+
--hd-bg-page: #eef2f9;
|
|
169
194
|
--hd-bg-surface: #ffffff;
|
|
170
195
|
--hd-bg-raised: #f4f6fb;
|
|
171
196
|
--hd-bg-inset: #ecf0f6;
|
|
@@ -176,7 +201,7 @@
|
|
|
176
201
|
--hd-border-control: #80899b;
|
|
177
202
|
--hd-text: #091122;
|
|
178
203
|
--hd-text-2: #515b6e;
|
|
179
|
-
--hd-text-3: #
|
|
204
|
+
--hd-text-3: #626c7f;
|
|
180
205
|
--hd-text-disabled: #a1a9ba;
|
|
181
206
|
--hd-primary: #2661fa;
|
|
182
207
|
--hd-primary-hover: #053dea;
|
|
@@ -390,7 +415,7 @@
|
|
|
390
415
|
color-scheme: light;
|
|
391
416
|
|
|
392
417
|
/* Colours */
|
|
393
|
-
--hd-bg-page: #
|
|
418
|
+
--hd-bg-page: #eef2f9;
|
|
394
419
|
--hd-bg-surface: #ffffff;
|
|
395
420
|
--hd-bg-raised: #f4f6fb;
|
|
396
421
|
--hd-bg-inset: #ecf0f6;
|
|
@@ -401,7 +426,7 @@
|
|
|
401
426
|
--hd-border-control: #80899b;
|
|
402
427
|
--hd-text: #091122;
|
|
403
428
|
--hd-text-2: #515b6e;
|
|
404
|
-
--hd-text-3: #
|
|
429
|
+
--hd-text-3: #626c7f;
|
|
405
430
|
--hd-text-disabled: #a1a9ba;
|
|
406
431
|
--hd-primary: #2661fa;
|
|
407
432
|
--hd-primary-hover: #053dea;
|
package/build/design/tokens.json
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"themes": {
|
|
67
67
|
"light": {
|
|
68
|
-
"bg-page": "#
|
|
68
|
+
"bg-page": "#eef2f9",
|
|
69
69
|
"bg-surface": "#ffffff",
|
|
70
70
|
"bg-raised": "#f4f6fb",
|
|
71
71
|
"bg-inset": "#ecf0f6",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"border-control": "#80899b",
|
|
77
77
|
"text": "#091122",
|
|
78
78
|
"text-2": "#515b6e",
|
|
79
|
-
"text-3": "#
|
|
79
|
+
"text-3": "#626c7f",
|
|
80
80
|
"text-disabled": "#a1a9ba",
|
|
81
81
|
"primary": "#2661fa",
|
|
82
82
|
"primary-hover": "#053dea",
|
|
@@ -453,6 +453,46 @@
|
|
|
453
453
|
"letterSpacing": -0.01,
|
|
454
454
|
"stretch": 108
|
|
455
455
|
},
|
|
456
|
+
"title-1": {
|
|
457
|
+
"font": "display",
|
|
458
|
+
"size": 32,
|
|
459
|
+
"lineHeight": 1.2,
|
|
460
|
+
"weight": 600,
|
|
461
|
+
"letterSpacing": -0.015,
|
|
462
|
+
"stretch": 100
|
|
463
|
+
},
|
|
464
|
+
"title-2": {
|
|
465
|
+
"font": "display",
|
|
466
|
+
"size": 28,
|
|
467
|
+
"lineHeight": 1.25,
|
|
468
|
+
"weight": 600,
|
|
469
|
+
"letterSpacing": -0.012,
|
|
470
|
+
"stretch": 100
|
|
471
|
+
},
|
|
472
|
+
"title-3": {
|
|
473
|
+
"font": "display",
|
|
474
|
+
"size": 22,
|
|
475
|
+
"lineHeight": 1.3,
|
|
476
|
+
"weight": 600,
|
|
477
|
+
"letterSpacing": -0.008,
|
|
478
|
+
"stretch": 100
|
|
479
|
+
},
|
|
480
|
+
"title-4": {
|
|
481
|
+
"font": "display",
|
|
482
|
+
"size": 18,
|
|
483
|
+
"lineHeight": 1.35,
|
|
484
|
+
"weight": 600,
|
|
485
|
+
"letterSpacing": -0.004,
|
|
486
|
+
"stretch": 100
|
|
487
|
+
},
|
|
488
|
+
"title-5": {
|
|
489
|
+
"font": "display",
|
|
490
|
+
"size": 15,
|
|
491
|
+
"lineHeight": 1.4,
|
|
492
|
+
"weight": 600,
|
|
493
|
+
"letterSpacing": 0,
|
|
494
|
+
"stretch": 100
|
|
495
|
+
},
|
|
456
496
|
"lead": {
|
|
457
497
|
"font": "body",
|
|
458
498
|
"size": 17,
|
package/build/design/tokens.scss
CHANGED
|
@@ -80,6 +80,31 @@ $hd-type-h4-line-height: var(--hd-type-h4-line-height);
|
|
|
80
80
|
$hd-type-h4-weight: var(--hd-type-h4-weight);
|
|
81
81
|
$hd-type-h4-letter-spacing: var(--hd-type-h4-letter-spacing);
|
|
82
82
|
$hd-type-h4-stretch: var(--hd-type-h4-stretch);
|
|
83
|
+
$hd-type-title-1-size: var(--hd-type-title-1-size);
|
|
84
|
+
$hd-type-title-1-line-height: var(--hd-type-title-1-line-height);
|
|
85
|
+
$hd-type-title-1-weight: var(--hd-type-title-1-weight);
|
|
86
|
+
$hd-type-title-1-letter-spacing: var(--hd-type-title-1-letter-spacing);
|
|
87
|
+
$hd-type-title-1-stretch: var(--hd-type-title-1-stretch);
|
|
88
|
+
$hd-type-title-2-size: var(--hd-type-title-2-size);
|
|
89
|
+
$hd-type-title-2-line-height: var(--hd-type-title-2-line-height);
|
|
90
|
+
$hd-type-title-2-weight: var(--hd-type-title-2-weight);
|
|
91
|
+
$hd-type-title-2-letter-spacing: var(--hd-type-title-2-letter-spacing);
|
|
92
|
+
$hd-type-title-2-stretch: var(--hd-type-title-2-stretch);
|
|
93
|
+
$hd-type-title-3-size: var(--hd-type-title-3-size);
|
|
94
|
+
$hd-type-title-3-line-height: var(--hd-type-title-3-line-height);
|
|
95
|
+
$hd-type-title-3-weight: var(--hd-type-title-3-weight);
|
|
96
|
+
$hd-type-title-3-letter-spacing: var(--hd-type-title-3-letter-spacing);
|
|
97
|
+
$hd-type-title-3-stretch: var(--hd-type-title-3-stretch);
|
|
98
|
+
$hd-type-title-4-size: var(--hd-type-title-4-size);
|
|
99
|
+
$hd-type-title-4-line-height: var(--hd-type-title-4-line-height);
|
|
100
|
+
$hd-type-title-4-weight: var(--hd-type-title-4-weight);
|
|
101
|
+
$hd-type-title-4-letter-spacing: var(--hd-type-title-4-letter-spacing);
|
|
102
|
+
$hd-type-title-4-stretch: var(--hd-type-title-4-stretch);
|
|
103
|
+
$hd-type-title-5-size: var(--hd-type-title-5-size);
|
|
104
|
+
$hd-type-title-5-line-height: var(--hd-type-title-5-line-height);
|
|
105
|
+
$hd-type-title-5-weight: var(--hd-type-title-5-weight);
|
|
106
|
+
$hd-type-title-5-letter-spacing: var(--hd-type-title-5-letter-spacing);
|
|
107
|
+
$hd-type-title-5-stretch: var(--hd-type-title-5-stretch);
|
|
83
108
|
$hd-type-lead-size: var(--hd-type-lead-size);
|
|
84
109
|
$hd-type-lead-line-height: var(--hd-type-lead-line-height);
|
|
85
110
|
$hd-type-lead-weight: var(--hd-type-lead-weight);
|
|
@@ -280,6 +305,31 @@ $hd-tokens: (
|
|
|
280
305
|
"type-h4-weight": var(--hd-type-h4-weight),
|
|
281
306
|
"type-h4-letter-spacing": var(--hd-type-h4-letter-spacing),
|
|
282
307
|
"type-h4-stretch": var(--hd-type-h4-stretch),
|
|
308
|
+
"type-title-1-size": var(--hd-type-title-1-size),
|
|
309
|
+
"type-title-1-line-height": var(--hd-type-title-1-line-height),
|
|
310
|
+
"type-title-1-weight": var(--hd-type-title-1-weight),
|
|
311
|
+
"type-title-1-letter-spacing": var(--hd-type-title-1-letter-spacing),
|
|
312
|
+
"type-title-1-stretch": var(--hd-type-title-1-stretch),
|
|
313
|
+
"type-title-2-size": var(--hd-type-title-2-size),
|
|
314
|
+
"type-title-2-line-height": var(--hd-type-title-2-line-height),
|
|
315
|
+
"type-title-2-weight": var(--hd-type-title-2-weight),
|
|
316
|
+
"type-title-2-letter-spacing": var(--hd-type-title-2-letter-spacing),
|
|
317
|
+
"type-title-2-stretch": var(--hd-type-title-2-stretch),
|
|
318
|
+
"type-title-3-size": var(--hd-type-title-3-size),
|
|
319
|
+
"type-title-3-line-height": var(--hd-type-title-3-line-height),
|
|
320
|
+
"type-title-3-weight": var(--hd-type-title-3-weight),
|
|
321
|
+
"type-title-3-letter-spacing": var(--hd-type-title-3-letter-spacing),
|
|
322
|
+
"type-title-3-stretch": var(--hd-type-title-3-stretch),
|
|
323
|
+
"type-title-4-size": var(--hd-type-title-4-size),
|
|
324
|
+
"type-title-4-line-height": var(--hd-type-title-4-line-height),
|
|
325
|
+
"type-title-4-weight": var(--hd-type-title-4-weight),
|
|
326
|
+
"type-title-4-letter-spacing": var(--hd-type-title-4-letter-spacing),
|
|
327
|
+
"type-title-4-stretch": var(--hd-type-title-4-stretch),
|
|
328
|
+
"type-title-5-size": var(--hd-type-title-5-size),
|
|
329
|
+
"type-title-5-line-height": var(--hd-type-title-5-line-height),
|
|
330
|
+
"type-title-5-weight": var(--hd-type-title-5-weight),
|
|
331
|
+
"type-title-5-letter-spacing": var(--hd-type-title-5-letter-spacing),
|
|
332
|
+
"type-title-5-stretch": var(--hd-type-title-5-stretch),
|
|
283
333
|
"type-lead-size": var(--hd-type-lead-size),
|
|
284
334
|
"type-lead-line-height": var(--hd-type-lead-line-height),
|
|
285
335
|
"type-lead-weight": var(--hd-type-lead-weight),
|
|
@@ -420,6 +470,11 @@ $hd-type-fonts: (
|
|
|
420
470
|
"h2": "display",
|
|
421
471
|
"h3": "display",
|
|
422
472
|
"h4": "display",
|
|
473
|
+
"title-1": "display",
|
|
474
|
+
"title-2": "display",
|
|
475
|
+
"title-3": "display",
|
|
476
|
+
"title-4": "display",
|
|
477
|
+
"title-5": "display",
|
|
423
478
|
"lead": "body",
|
|
424
479
|
"body": "body",
|
|
425
480
|
"small": "body",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=e=>e.replace(/İ/g,"i").replace(/I/g,"i").replace(/ı/g,"i").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ş/g,"s").replace(/ğ/g,"g").replace(/ç/g,"c").replace(/ø/g,"o").replace(/æ/g,"ae").replace(/ß/g,"ss").replace(/đ/g,"d").replace(/ł/g,"l").replace(/\s+/g," ").trim(),c=(e,r)=>a(e).includes(a(r)),l=(e,r)=>r??(typeof e=="string"||typeof e=="number"?String(e):void 0);exports.clampTitle=l;exports.matchesSearch=c;exports.normalizeSearchTerm=a;
|
|
2
2
|
//# sourceMappingURL=text.helper.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.helper.cjs","sources":["../../src/helpers/text.helper.ts"],"sourcesContent":["/** Metin normalizasyonu — aksan ve büyük/küçük harf duyarsız arama. */\n\n/** Serbest metin arama anahtarı: */\nexport const normalizeSearchTerm = (value: string): string =>\n value\n .replace(/İ/g, 'i')\n .replace(/I/g, 'i')\n .replace(/ı/g, 'i')\n .toLowerCase()\n .normalize('NFD')\n /* Birlestirici aksan isaretleri (U+0300–U+036F). */\n .replace(/[\\u0300-\\u036f]/g, '')\n /* NFD'nin ayristirmadigi harfler: her biri tek kod noktasi. */\n .replace(/ş/g, 's')\n .replace(/ğ/g, 'g')\n .replace(/ç/g, 'c')\n .replace(/ø/g, 'o')\n .replace(/æ/g, 'ae')\n .replace(/ß/g, 'ss')\n .replace(/đ/g, 'd')\n .replace(/ł/g, 'l')\n .replace(/\\s+/g, ' ')\n .trim();\n\n/** Aranan metin, hedefin içinde geçiyor mu? */\nexport const matchesSearch = (haystack: string, needle: string): boolean =>\n normalizeSearchTerm(haystack).includes(normalizeSearchTerm(needle));\n"],"names":["normalizeSearchTerm","value","matchesSearch","haystack","needle"],"mappings":"gFAGO,MAAMA,EAAuBC,GAClCA,EACG,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,GAAG,EACjB,YAAA,EACA,UAAU,KAAK,EAEf,QAAQ,mBAAoB,EAAE,EAE9B,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,IAAI,EAClB,QAAQ,KAAM,IAAI,EAClB,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,GAAG,EACjB,QAAQ,OAAQ,GAAG,EACnB,KAAA,EAGQC,EAAgB,CAACC,EAAkBC,IAC9CJ,EAAoBG,CAAQ,EAAE,SAASH,EAAoBI,CAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"text.helper.cjs","sources":["../../src/helpers/text.helper.ts"],"sourcesContent":["/** Metin normalizasyonu — aksan ve büyük/küçük harf duyarsız arama. */\n\n/** Serbest metin arama anahtarı: */\nexport const normalizeSearchTerm = (value: string): string =>\n value\n .replace(/İ/g, 'i')\n .replace(/I/g, 'i')\n .replace(/ı/g, 'i')\n .toLowerCase()\n .normalize('NFD')\n /* Birlestirici aksan isaretleri (U+0300–U+036F). */\n .replace(/[\\u0300-\\u036f]/g, '')\n /* NFD'nin ayristirmadigi harfler: her biri tek kod noktasi. */\n .replace(/ş/g, 's')\n .replace(/ğ/g, 'g')\n .replace(/ç/g, 'c')\n .replace(/ø/g, 'o')\n .replace(/æ/g, 'ae')\n .replace(/ß/g, 'ss')\n .replace(/đ/g, 'd')\n .replace(/ł/g, 'l')\n .replace(/\\s+/g, ' ')\n .trim();\n\n/** Aranan metin, hedefin içinde geçiyor mu? */\nexport const matchesSearch = (haystack: string, needle: string): boolean =>\n normalizeSearchTerm(haystack).includes(normalizeSearchTerm(needle));\n\n/**\n * The tooltip text of a clamped element (3.7): a string or number child is shown in full in the\n * element's `title` when its line is cut; rich children give none (the caller passes `title`).\n */\nexport const clampTitle = (children: unknown, title?: string): string | undefined =>\n title ??\n (typeof children === 'string' || typeof children === 'number' ? String(children) : undefined);\n"],"names":["normalizeSearchTerm","value","matchesSearch","haystack","needle","clampTitle","children","title"],"mappings":"gFAGO,MAAMA,EAAuBC,GAClCA,EACG,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,GAAG,EACjB,YAAA,EACA,UAAU,KAAK,EAEf,QAAQ,mBAAoB,EAAE,EAE9B,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,IAAI,EAClB,QAAQ,KAAM,IAAI,EAClB,QAAQ,KAAM,GAAG,EACjB,QAAQ,KAAM,GAAG,EACjB,QAAQ,OAAQ,GAAG,EACnB,KAAA,EAGQC,EAAgB,CAACC,EAAkBC,IAC9CJ,EAAoBG,CAAQ,EAAE,SAASH,EAAoBI,CAAM,CAAC,EAMvDC,EAAa,CAACC,EAAmBC,IAC5CA,IACC,OAAOD,GAAa,UAAY,OAAOA,GAAa,SAAW,OAAOA,CAAQ,EAAI"}
|
|
@@ -3,3 +3,8 @@
|
|
|
3
3
|
export declare const normalizeSearchTerm: (value: string) => string;
|
|
4
4
|
/** Aranan metin, hedefin içinde geçiyor mu? */
|
|
5
5
|
export declare const matchesSearch: (haystack: string, needle: string) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The tooltip text of a clamped element (3.7): a string or number child is shown in full in the
|
|
8
|
+
* element's `title` when its line is cut; rich children give none (the caller passes `title`).
|
|
9
|
+
*/
|
|
10
|
+
export declare const clampTitle: (children: unknown, title?: string) => string | undefined;
|
|
@@ -3,3 +3,8 @@
|
|
|
3
3
|
export declare const normalizeSearchTerm: (value: string) => string;
|
|
4
4
|
/** Aranan metin, hedefin içinde geçiyor mu? */
|
|
5
5
|
export declare const matchesSearch: (haystack: string, needle: string) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The tooltip text of a clamped element (3.7): a string or number child is shown in full in the
|
|
8
|
+
* element's `title` when its line is cut; rich children give none (the caller passes `title`).
|
|
9
|
+
*/
|
|
10
|
+
export declare const clampTitle: (children: unknown, title?: string) => string | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a = (e) => e.replace(/İ/g, "i").replace(/I/g, "i").replace(/ı/g, "i").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/ş/g, "s").replace(/ğ/g, "g").replace(/ç/g, "c").replace(/ø/g, "o").replace(/æ/g, "ae").replace(/ß/g, "ss").replace(/đ/g, "d").replace(/ł/g, "l").replace(/\s+/g, " ").trim(), c = (e, r) => a(e).includes(a(r)), l = (e, r) => r ?? (typeof e == "string" || typeof e == "number" ? String(e) : void 0);
|
|
2
2
|
export {
|
|
3
|
+
l as clampTitle,
|
|
3
4
|
c as matchesSearch,
|
|
4
|
-
|
|
5
|
+
a as normalizeSearchTerm
|
|
5
6
|
};
|
|
6
7
|
//# sourceMappingURL=text.helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.helper.js","sources":["../../src/helpers/text.helper.ts"],"sourcesContent":["/** Metin normalizasyonu — aksan ve büyük/küçük harf duyarsız arama. */\n\n/** Serbest metin arama anahtarı: */\nexport const normalizeSearchTerm = (value: string): string =>\n value\n .replace(/İ/g, 'i')\n .replace(/I/g, 'i')\n .replace(/ı/g, 'i')\n .toLowerCase()\n .normalize('NFD')\n /* Birlestirici aksan isaretleri (U+0300–U+036F). */\n .replace(/[\\u0300-\\u036f]/g, '')\n /* NFD'nin ayristirmadigi harfler: her biri tek kod noktasi. */\n .replace(/ş/g, 's')\n .replace(/ğ/g, 'g')\n .replace(/ç/g, 'c')\n .replace(/ø/g, 'o')\n .replace(/æ/g, 'ae')\n .replace(/ß/g, 'ss')\n .replace(/đ/g, 'd')\n .replace(/ł/g, 'l')\n .replace(/\\s+/g, ' ')\n .trim();\n\n/** Aranan metin, hedefin içinde geçiyor mu? */\nexport const matchesSearch = (haystack: string, needle: string): boolean =>\n normalizeSearchTerm(haystack).includes(normalizeSearchTerm(needle));\n"],"names":["normalizeSearchTerm","value","matchesSearch","haystack","needle"],"mappings":"AAGO,MAAMA,IAAsB,CAACC,MAClCA,EACG,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,GAAG,EACjB,YAAA,EACA,UAAU,KAAK,EAEf,QAAQ,oBAAoB,EAAE,EAE9B,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,IAAI,EAClB,QAAQ,MAAM,IAAI,EAClB,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,GAAG,EACjB,QAAQ,QAAQ,GAAG,EACnB,KAAA,GAGQC,IAAgB,CAACC,GAAkBC,MAC9CJ,EAAoBG,CAAQ,EAAE,SAASH,EAAoBI,CAAM,CAAC;"}
|
|
1
|
+
{"version":3,"file":"text.helper.js","sources":["../../src/helpers/text.helper.ts"],"sourcesContent":["/** Metin normalizasyonu — aksan ve büyük/küçük harf duyarsız arama. */\n\n/** Serbest metin arama anahtarı: */\nexport const normalizeSearchTerm = (value: string): string =>\n value\n .replace(/İ/g, 'i')\n .replace(/I/g, 'i')\n .replace(/ı/g, 'i')\n .toLowerCase()\n .normalize('NFD')\n /* Birlestirici aksan isaretleri (U+0300–U+036F). */\n .replace(/[\\u0300-\\u036f]/g, '')\n /* NFD'nin ayristirmadigi harfler: her biri tek kod noktasi. */\n .replace(/ş/g, 's')\n .replace(/ğ/g, 'g')\n .replace(/ç/g, 'c')\n .replace(/ø/g, 'o')\n .replace(/æ/g, 'ae')\n .replace(/ß/g, 'ss')\n .replace(/đ/g, 'd')\n .replace(/ł/g, 'l')\n .replace(/\\s+/g, ' ')\n .trim();\n\n/** Aranan metin, hedefin içinde geçiyor mu? */\nexport const matchesSearch = (haystack: string, needle: string): boolean =>\n normalizeSearchTerm(haystack).includes(normalizeSearchTerm(needle));\n\n/**\n * The tooltip text of a clamped element (3.7): a string or number child is shown in full in the\n * element's `title` when its line is cut; rich children give none (the caller passes `title`).\n */\nexport const clampTitle = (children: unknown, title?: string): string | undefined =>\n title ??\n (typeof children === 'string' || typeof children === 'number' ? String(children) : undefined);\n"],"names":["normalizeSearchTerm","value","matchesSearch","haystack","needle","clampTitle","children","title"],"mappings":"AAGO,MAAMA,IAAsB,CAACC,MAClCA,EACG,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,GAAG,EACjB,YAAA,EACA,UAAU,KAAK,EAEf,QAAQ,oBAAoB,EAAE,EAE9B,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,IAAI,EAClB,QAAQ,MAAM,IAAI,EAClB,QAAQ,MAAM,GAAG,EACjB,QAAQ,MAAM,GAAG,EACjB,QAAQ,QAAQ,GAAG,EACnB,KAAA,GAGQC,IAAgB,CAACC,GAAkBC,MAC9CJ,EAAoBG,CAAQ,EAAE,SAASH,EAAoBI,CAAM,CAAC,GAMvDC,IAAa,CAACC,GAAmBC,MAC5CA,MACC,OAAOD,KAAa,YAAY,OAAOA,KAAa,WAAW,OAAOA,CAAQ,IAAI;"}
|
package/build/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./theme/UiProvider.cjs"),x=require("./theme/UiThemeScript.cjs"),T=require("./theme/context.cjs"),n=require("@handijitcom/ui/design"),S=require("./helpers/focus.helper.cjs"),E=require("./hooks/useAnnounce.cjs"),B=require("./hooks/useUiTheme.cjs"),C=require("./hooks/useUiTokens.cjs"),P=require("./hooks/useStickToBottom.cjs"),A=require("./hooks/useListboxNavigation.cjs"),b=require("./hooks/usePositioning.cjs"),I=require("./hooks/useVirtualList.cjs"),R=require("./enums/ui-variant.enum.cjs"),g=require("./enums/ui-size.enum.cjs"),e=require("./constants/breakpoint.constants.cjs"),a=require("./helpers/text.helper.cjs"),y=require("./components/Button/index.cjs"),M=require("./components/IconButton/index.cjs"),D=require("./components/TextLink/index.cjs"),h=require("./components/Tooltip/index.cjs"),s=require("./components/Menu/index.cjs"),O=require("./components/Popover/index.cjs"),k=require("./components/Chip/index.cjs"),F=require("./components/ChipGroup/index.cjs"),U=require("./components/Combobox/index.cjs"),L=require("./components/SegmentedControl/index.cjs"),v=require("./components/Select/index.cjs"),H=require("./components/Checkbox/index.cjs"),N=require("./components/Switch/index.cjs"),w=require("./components/Radio/index.cjs"),G=require("./components/RadioCard/index.cjs"),K=require("./components/RangeSlider/index.cjs"),Q=require("./components/RatingInput/index.cjs"),V=require("./components/QuantityStepper/index.cjs"),Y=require("./components/TableCheckbox/index.cjs"),j=require("./components/Input/index.cjs"),z=require("./components/PasswordInput/index.cjs"),J=require("./components/ScaledInput/index.cjs"),W=require("./components/MoneyInput/index.cjs"),X=require("./components/QuantityInput/index.cjs"),Z=require("./components/RateInput/index.cjs"),$=require("./components/PercentInput/index.cjs"),ee=require("./components/TagInput/index.cjs"),te=require("./components/Textarea/index.cjs"),c=require("./components/DateField/index.cjs"),ne=require("./components/Field/index.cjs"),oe=require("./components/FileUpload/index.cjs"),re=require("./components/Alert/index.cjs"),ie=require("./components/Avatar/index.cjs"),ue=require("./components/Badge/index.cjs"),ae=require("./components/Breadcrumb/index.cjs"),t=require("./components/Card/index.cjs"),se=require("./components/Carousel/index.cjs"),ce=require("./components/CodeBadge/index.cjs"),de=require("./components/Kbd/index.cjs"),le=require("./components/StatusDot/index.cjs"),_e=require("./components/CopyField/index.cjs"),pe=require("./components/Divider/index.cjs"),o=require("./components/Directory/index.cjs"),me=require("./components/EmptyState/index.cjs"),fe=require("./components/PageHeader/index.cjs"),i=require("./components/Panel/index.cjs"),qe=require("./components/Price/index.cjs"),xe=require("./components/Rating/index.cjs"),Te=require("./components/SectionHeader/index.cjs"),Se=require("./components/ScrollArea/index.cjs"),r=require("./components/Skeleton/index.cjs"),Ee=require("./components/Stat/index.cjs"),Be=require("./components/SummaryCard/index.cjs"),Ce=require("./components/TotalsList/index.cjs"),d=require("./components/Progress/index.cjs"),Pe=require("./components/Spinner/index.cjs"),l=require("./components/Toast/index.cjs"),Ae=require("./components/ToastPortal/index.cjs"),be=require("./components/Accordion/index.cjs"),Ie=require("./components/Disclosure/index.cjs"),Re=require("./components/Steps/index.cjs"),ge=require("./components/Tabs/index.cjs"),ye=require("./components/Tile/index.cjs"),Me=require("./components/Timeline/index.cjs"),_=require("./components/BrandSurface/index.cjs"),De=require("./components/Eyebrow/index.cjs"),he=require("./components/StatStrip/index.cjs"),Oe=require("./components/BottomSheet/index.cjs"),ke=require("./components/Modal/index.cjs"),Fe=require("./components/CommandPalette/index.cjs"),Ue=require("./components/ConfirmDialog/index.cjs"),Le=require("./components/Drawer/index.cjs"),ve=require("./components/PromptDialog/index.cjs"),p=require("./components/Table/index.cjs"),m=require("./components/DataTable/index.cjs"),He=require("./components/DataTableColumnMenu/index.cjs"),Ne=require("./components/Gallery/index.cjs"),we=require("./components/TreeSelect/index.cjs"),Ge=require("./components/NotificationCenter/index.cjs"),Ke=require("./components/BulkPasteInput/index.cjs"),Qe=require("./helpers/bulk-paste.helper.cjs"),Ve=require("./components/AppShell/index.cjs"),Ye=require("./components/UserMenu/index.cjs"),f=require("./components/FilterBar/index.cjs"),je=require("./components/Pagination/index.cjs"),ze=require("./components/FacetSidebar/index.cjs"),Je=require("./components/FacetSection/index.cjs"),We=require("./components/AppliedFilters/index.cjs"),Xe=require("./components/FilterToolbar/index.cjs"),Ze=require("./components/SortableList/index.cjs"),$e=require("./components/CodeText/index.cjs"),et=require("./components/BrandLockup/index.cjs"),tt=require("./components/StickyActionBar/index.cjs"),nt=require("./components/CompareTray/index.cjs"),ot=require("./components/ProductCarousel/index.cjs"),rt=require("./components/MegaMenu/index.cjs"),u=require("./components/AppShell/Nav.cjs");exports.UiProvider=q.default;exports.UiThemeScript=x.default;exports.useUi=T.useUi;Object.defineProperty(exports,"THEME_ATTRIBUTE",{enumerable:!0,get:()=>n.THEME_ATTRIBUTE});Object.defineProperty(exports,"THEME_BOOT_SCRIPT",{enumerable:!0,get:()=>n.THEME_BOOT_SCRIPT});Object.defineProperty(exports,"THEME_BOOT_SCRIPT_HASH",{enumerable:!0,get:()=>n.THEME_BOOT_SCRIPT_HASH});Object.defineProperty(exports,"THEME_STORAGE_KEY",{enumerable:!0,get:()=>n.THEME_STORAGE_KEY});exports.hasOpenSurface=S.hasOpenSurface;exports.useAnnounce=E.default;exports.useUiTheme=B.default;exports.useUiTokens=C.default;exports.useStickToBottom=P.default;exports.useListboxNavigation=A.default;exports.usePositioning=b.default;exports.useVirtualList=I.default;exports.UIVariant=R.default;exports.UISize=g.default;exports.ABOVE_MOBILE_MEDIA_QUERY=e.ABOVE_MOBILE_MEDIA_QUERY;exports.ABOVE_TABLET_MEDIA_QUERY=e.ABOVE_TABLET_MEDIA_QUERY;exports.MOBILE_BREAKPOINT=e.MOBILE_BREAKPOINT;exports.SHEET_MEDIA_QUERY=e.SHEET_MEDIA_QUERY;exports.TABLET_BREAKPOINT=e.TABLET_BREAKPOINT;exports.TABLET_PORTRAIT_BREAKPOINT=e.TABLET_PORTRAIT_BREAKPOINT;exports.matchesSearch=a.matchesSearch;exports.normalizeSearchTerm=a.normalizeSearchTerm;exports.Button=y.default;exports.IconButton=M.default;exports.TextLink=D.default;exports.Tooltip=h.default;exports.ContextMenu=s.ContextMenu;exports.Menu=s.default;exports.Popover=O.default;exports.Chip=k.default;exports.ChipGroup=F.default;exports.Combobox=U.default;exports.SegmentedControl=L.default;exports.Select=v.default;exports.Checkbox=H.default;exports.Switch=N.default;exports.Radio=w.default;exports.RadioCard=G.default;exports.RangeSlider=K.default;exports.RatingInput=Q.default;exports.QuantityStepper=V.default;exports.TableCheckbox=Y.default;exports.Input=j.default;exports.PasswordInput=z.default;exports.ScaledInput=J.default;exports.MoneyInput=W.default;exports.QuantityInput=X.default;exports.RateInput=Z.default;exports.PercentInput=$.default;exports.TagInput=ee.default;exports.Textarea=te.default;exports.DateField=c.default;exports.DateRange=c.DateRange;exports.Field=ne.default;exports.FileUpload=oe.default;exports.Alert=re.default;exports.Avatar=ie.default;exports.Badge=ue.default;exports.Breadcrumb=ae.default;exports.Card=t.default;exports.CardBody=t.CardBody;exports.CardFooter=t.CardFooter;exports.CardMedia=t.CardMedia;exports.CardOverlay=t.CardOverlay;exports.Carousel=se.default;exports.CodeBadge=ce.default;exports.Kbd=de.default;exports.StatusDot=le.default;exports.CopyField=_e.default;exports.Divider=pe.default;exports.Directory=o.default;exports.DirectoryGroup=o.DirectoryGroup;exports.DirectoryJump=o.DirectoryJump;exports.DirectoryRow=o.DirectoryRow;exports.EmptyState=me.default;exports.PageHeader=fe.default;exports.Panel=i.default;exports.PanelForm=i.PanelForm;exports.PanelRow=i.PanelRow;exports.Price=qe.default;exports.Rating=xe.default;exports.SectionHeader=Te.default;exports.ScrollArea=Se.default;exports.Skeleton=r.default;exports.SkeletonCard=r.SkeletonCard;exports.SkeletonRows=r.SkeletonRows;exports.SkeletonTable=r.SkeletonTable;exports.Stat=Ee.default;exports.SummaryCard=Be.default;exports.TotalsList=Ce.default;exports.Progress=d.default;exports.ProgressCircle=d.ProgressCircle;exports.Spinner=Pe.default;exports.ToastHub=l.default;exports.toast=l.toast;exports.ToastPortal=Ae.default;exports.Accordion=be.default;exports.Disclosure=Ie.default;exports.Steps=Re.default;exports.Tabs=ge.default;exports.Tile=ye.default;exports.Timeline=Me.default;exports.BrandBlueprint=_.BrandBlueprint;exports.BrandSurface=_.default;exports.Eyebrow=De.default;exports.StatStrip=he.default;exports.BottomSheet=Oe.default;exports.Modal=ke.default;exports.CommandPalette=Fe.default;exports.ConfirmDialog=Ue.default;exports.Drawer=Le.default;exports.PromptDialog=ve.default;exports.Table=p.default;exports.TableScroller=p.TableScroller;exports.DataTable=m.default;exports.DataTableRow=m.DataTableRow;exports.DataTableColumnMenu=He.default;exports.Gallery=Ne.default;exports.TreeSelect=we.default;exports.NotificationCenter=Ge.default;exports.BulkPasteInput=Ke.default;exports.parseBulkPaste=Qe.parseBulkPaste;exports.AppShell=Ve.default;exports.UserMenu=Ye.default;exports.FilterBar=f.default;exports.FilterBarField=f.FilterBarField;exports.Pagination=je.default;exports.FacetSidebar=ze.default;exports.FacetSection=Je.default;exports.AppliedFilters=We.default;exports.FilterToolbar=Xe.default;exports.SortableList=Ze.default;exports.CodeText=$e.default;exports.BrandLockup=et.default;exports.StickyActionBar=tt.default;exports.CompareTray=nt.default;exports.ProductCarousel=ot.default;exports.MegaMenu=rt.default;exports.AppShellNav=u.AppShellNav;exports.AppShellNavGroup=u.AppShellNavGroup;exports.AppShellNavItem=u.AppShellNavItem;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./theme/UiProvider.cjs"),q=require("./theme/UiThemeScript.cjs"),T=require("./theme/context.cjs"),n=require("@handijitcom/ui/design"),S=require("./helpers/focus.helper.cjs"),E=require("./hooks/useAnnounce.cjs"),B=require("./hooks/useUiTheme.cjs"),C=require("./hooks/useUiTokens.cjs"),P=require("./hooks/useStickToBottom.cjs"),A=require("./hooks/useListboxNavigation.cjs"),b=require("./hooks/usePositioning.cjs"),I=require("./hooks/useVirtualList.cjs"),R=require("./enums/ui-variant.enum.cjs"),g=require("./enums/ui-size.enum.cjs"),e=require("./constants/breakpoint.constants.cjs"),u=require("./helpers/text.helper.cjs"),y=require("./components/Button/index.cjs"),M=require("./components/IconButton/index.cjs"),D=require("./components/TextLink/index.cjs"),h=require("./components/Tooltip/index.cjs"),s=require("./components/Menu/index.cjs"),O=require("./components/Popover/index.cjs"),k=require("./components/Chip/index.cjs"),F=require("./components/ChipGroup/index.cjs"),U=require("./components/Combobox/index.cjs"),L=require("./components/SegmentedControl/index.cjs"),H=require("./components/Select/index.cjs"),v=require("./components/Checkbox/index.cjs"),N=require("./components/Switch/index.cjs"),w=require("./components/Radio/index.cjs"),G=require("./components/RadioCard/index.cjs"),K=require("./components/RangeSlider/index.cjs"),Q=require("./components/RatingInput/index.cjs"),V=require("./components/QuantityStepper/index.cjs"),Y=require("./components/TableCheckbox/index.cjs"),j=require("./components/Input/index.cjs"),z=require("./components/PasswordInput/index.cjs"),J=require("./components/ScaledInput/index.cjs"),W=require("./components/MoneyInput/index.cjs"),X=require("./components/QuantityInput/index.cjs"),Z=require("./components/RateInput/index.cjs"),$=require("./components/PercentInput/index.cjs"),ee=require("./components/TagInput/index.cjs"),te=require("./components/Textarea/index.cjs"),d=require("./components/DateField/index.cjs"),ne=require("./components/Field/index.cjs"),oe=require("./components/FileUpload/index.cjs"),re=require("./components/Heading/index.cjs"),ie=require("./components/Text/index.cjs"),ae=require("./components/Alert/index.cjs"),ue=require("./components/Avatar/index.cjs"),se=require("./components/Badge/index.cjs"),de=require("./components/Breadcrumb/index.cjs"),t=require("./components/Card/index.cjs"),ce=require("./components/Carousel/index.cjs"),le=require("./components/CodeBadge/index.cjs"),_e=require("./components/Kbd/index.cjs"),pe=require("./components/StatusDot/index.cjs"),me=require("./components/CopyField/index.cjs"),fe=require("./components/Divider/index.cjs"),o=require("./components/Directory/index.cjs"),xe=require("./components/EmptyState/index.cjs"),qe=require("./components/PageHeader/index.cjs"),i=require("./components/Panel/index.cjs"),Te=require("./components/Price/index.cjs"),Se=require("./components/Rating/index.cjs"),Ee=require("./components/SectionHeader/index.cjs"),Be=require("./components/ScrollArea/index.cjs"),r=require("./components/Skeleton/index.cjs"),Ce=require("./components/Stat/index.cjs"),Pe=require("./components/StatCard/index.cjs"),Ae=require("./components/SummaryCard/index.cjs"),be=require("./components/TotalsList/index.cjs"),c=require("./components/Progress/index.cjs"),Ie=require("./components/Spinner/index.cjs"),l=require("./components/Toast/index.cjs"),Re=require("./components/ToastPortal/index.cjs"),ge=require("./components/Accordion/index.cjs"),ye=require("./components/Disclosure/index.cjs"),Me=require("./components/Steps/index.cjs"),De=require("./components/Tabs/index.cjs"),he=require("./components/Tile/index.cjs"),Oe=require("./components/Timeline/index.cjs"),_=require("./components/BrandSurface/index.cjs"),ke=require("./components/Eyebrow/index.cjs"),Fe=require("./components/StatStrip/index.cjs"),Ue=require("./components/BottomSheet/index.cjs"),Le=require("./components/Modal/index.cjs"),He=require("./components/CommandPalette/index.cjs"),ve=require("./components/ConfirmDialog/index.cjs"),Ne=require("./components/Drawer/index.cjs"),we=require("./components/PromptDialog/index.cjs"),p=require("./components/Table/index.cjs"),m=require("./components/DataTable/index.cjs"),Ge=require("./components/DataTableColumnMenu/index.cjs"),Ke=require("./components/Gallery/index.cjs"),Qe=require("./components/TreeSelect/index.cjs"),Ve=require("./components/NotificationCenter/index.cjs"),Ye=require("./components/BulkPasteInput/index.cjs"),je=require("./helpers/bulk-paste.helper.cjs"),ze=require("./components/AppShell/index.cjs"),Je=require("./components/UserMenu/index.cjs"),f=require("./components/FilterBar/index.cjs"),We=require("./components/Pagination/index.cjs"),Xe=require("./components/FacetSidebar/index.cjs"),Ze=require("./components/FacetSection/index.cjs"),$e=require("./components/AppliedFilters/index.cjs"),et=require("./components/FilterToolbar/index.cjs"),tt=require("./components/SortableList/index.cjs"),nt=require("./components/CodeText/index.cjs"),ot=require("./components/BrandLockup/index.cjs"),rt=require("./components/StickyActionBar/index.cjs"),it=require("./components/CompareTray/index.cjs"),at=require("./components/ProductCarousel/index.cjs"),ut=require("./components/MegaMenu/index.cjs"),a=require("./components/AppShell/Nav.cjs");exports.UiProvider=x.default;exports.UiThemeScript=q.default;exports.useUi=T.useUi;Object.defineProperty(exports,"THEME_ATTRIBUTE",{enumerable:!0,get:()=>n.THEME_ATTRIBUTE});Object.defineProperty(exports,"THEME_BOOT_SCRIPT",{enumerable:!0,get:()=>n.THEME_BOOT_SCRIPT});Object.defineProperty(exports,"THEME_BOOT_SCRIPT_HASH",{enumerable:!0,get:()=>n.THEME_BOOT_SCRIPT_HASH});Object.defineProperty(exports,"THEME_STORAGE_KEY",{enumerable:!0,get:()=>n.THEME_STORAGE_KEY});exports.hasOpenSurface=S.hasOpenSurface;exports.useAnnounce=E.default;exports.useUiTheme=B.default;exports.useUiTokens=C.default;exports.useStickToBottom=P.default;exports.useListboxNavigation=A.default;exports.usePositioning=b.default;exports.useVirtualList=I.default;exports.UIVariant=R.default;exports.UISize=g.default;exports.ABOVE_MOBILE_MEDIA_QUERY=e.ABOVE_MOBILE_MEDIA_QUERY;exports.ABOVE_TABLET_MEDIA_QUERY=e.ABOVE_TABLET_MEDIA_QUERY;exports.MOBILE_BREAKPOINT=e.MOBILE_BREAKPOINT;exports.SHEET_MEDIA_QUERY=e.SHEET_MEDIA_QUERY;exports.TABLET_BREAKPOINT=e.TABLET_BREAKPOINT;exports.TABLET_PORTRAIT_BREAKPOINT=e.TABLET_PORTRAIT_BREAKPOINT;exports.matchesSearch=u.matchesSearch;exports.normalizeSearchTerm=u.normalizeSearchTerm;exports.Button=y.default;exports.IconButton=M.default;exports.TextLink=D.default;exports.Tooltip=h.default;exports.ContextMenu=s.ContextMenu;exports.Menu=s.default;exports.Popover=O.default;exports.Chip=k.default;exports.ChipGroup=F.default;exports.Combobox=U.default;exports.SegmentedControl=L.default;exports.Select=H.default;exports.Checkbox=v.default;exports.Switch=N.default;exports.Radio=w.default;exports.RadioCard=G.default;exports.RangeSlider=K.default;exports.RatingInput=Q.default;exports.QuantityStepper=V.default;exports.TableCheckbox=Y.default;exports.Input=j.default;exports.PasswordInput=z.default;exports.ScaledInput=J.default;exports.MoneyInput=W.default;exports.QuantityInput=X.default;exports.RateInput=Z.default;exports.PercentInput=$.default;exports.TagInput=ee.default;exports.Textarea=te.default;exports.DateField=d.default;exports.DateRange=d.DateRange;exports.Field=ne.default;exports.FileUpload=oe.default;exports.Heading=re.default;exports.Text=ie.default;exports.Alert=ae.default;exports.Avatar=ue.default;exports.Badge=se.default;exports.Breadcrumb=de.default;exports.Card=t.default;exports.CardBody=t.CardBody;exports.CardFooter=t.CardFooter;exports.CardMedia=t.CardMedia;exports.CardOverlay=t.CardOverlay;exports.Carousel=ce.default;exports.CodeBadge=le.default;exports.Kbd=_e.default;exports.StatusDot=pe.default;exports.CopyField=me.default;exports.Divider=fe.default;exports.Directory=o.default;exports.DirectoryGroup=o.DirectoryGroup;exports.DirectoryJump=o.DirectoryJump;exports.DirectoryRow=o.DirectoryRow;exports.EmptyState=xe.default;exports.PageHeader=qe.default;exports.Panel=i.default;exports.PanelForm=i.PanelForm;exports.PanelRow=i.PanelRow;exports.Price=Te.default;exports.Rating=Se.default;exports.SectionHeader=Ee.default;exports.ScrollArea=Be.default;exports.Skeleton=r.default;exports.SkeletonCard=r.SkeletonCard;exports.SkeletonRows=r.SkeletonRows;exports.SkeletonTable=r.SkeletonTable;exports.Stat=Ce.default;exports.StatCard=Pe.default;exports.SummaryCard=Ae.default;exports.TotalsList=be.default;exports.Progress=c.default;exports.ProgressCircle=c.ProgressCircle;exports.Spinner=Ie.default;exports.ToastHub=l.default;exports.toast=l.toast;exports.ToastPortal=Re.default;exports.Accordion=ge.default;exports.Disclosure=ye.default;exports.Steps=Me.default;exports.Tabs=De.default;exports.Tile=he.default;exports.Timeline=Oe.default;exports.BrandBlueprint=_.BrandBlueprint;exports.BrandSurface=_.default;exports.Eyebrow=ke.default;exports.StatStrip=Fe.default;exports.BottomSheet=Ue.default;exports.Modal=Le.default;exports.CommandPalette=He.default;exports.ConfirmDialog=ve.default;exports.Drawer=Ne.default;exports.PromptDialog=we.default;exports.Table=p.default;exports.TableScroller=p.TableScroller;exports.DataTable=m.default;exports.DataTableRow=m.DataTableRow;exports.DataTableColumnMenu=Ge.default;exports.Gallery=Ke.default;exports.TreeSelect=Qe.default;exports.NotificationCenter=Ve.default;exports.BulkPasteInput=Ye.default;exports.parseBulkPaste=je.parseBulkPaste;exports.AppShell=ze.default;exports.UserMenu=Je.default;exports.FilterBar=f.default;exports.FilterBarField=f.FilterBarField;exports.Pagination=We.default;exports.FacetSidebar=Xe.default;exports.FacetSection=Ze.default;exports.AppliedFilters=$e.default;exports.FilterToolbar=et.default;exports.SortableList=tt.default;exports.CodeText=nt.default;exports.BrandLockup=ot.default;exports.StickyActionBar=rt.default;exports.CompareTray=it.default;exports.ProductCarousel=at.default;exports.MegaMenu=ut.default;exports.AppShellNav=a.AppShellNav;exports.AppShellNavGroup=a.AppShellNavGroup;exports.AppShellNavItem=a.AppShellNavItem;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/build/index.d.cts
CHANGED
|
@@ -51,7 +51,9 @@ export { default as Textarea } from './components/Textarea/index.cjs';
|
|
|
51
51
|
export { default as DateField, DateRange, type DateRangeValue } from './components/DateField/index.cjs';
|
|
52
52
|
export { default as Field, type FieldChildProps } from './components/Field/index.cjs';
|
|
53
53
|
export { default as FileUpload, type UploadFile } from './components/FileUpload/index.cjs';
|
|
54
|
-
export { default as
|
|
54
|
+
export { default as Heading, type HeadingLevel, type HeadingSize } from './components/Heading/index.cjs';
|
|
55
|
+
export { default as Text, type TextTone, type TextVariant, type TextWeight, } from './components/Text/index.cjs';
|
|
56
|
+
export { default as Alert, type AlertTone, type AlertVariant } from './components/Alert/index.cjs';
|
|
55
57
|
export { default as Avatar } from './components/Avatar/index.cjs';
|
|
56
58
|
export { default as Badge, type BadgeTone, type BadgeVariant } from './components/Badge/index.cjs';
|
|
57
59
|
export { default as Breadcrumb, type Crumb } from './components/Breadcrumb/index.cjs';
|
|
@@ -72,6 +74,7 @@ export { default as SectionHeader } from './components/SectionHeader/index.cjs';
|
|
|
72
74
|
export { default as ScrollArea } from './components/ScrollArea/index.cjs';
|
|
73
75
|
export { default as Skeleton, SkeletonCard, SkeletonRows, SkeletonTable, } from './components/Skeleton/index.cjs';
|
|
74
76
|
export { default as Stat, type StatTrend } from './components/Stat/index.cjs';
|
|
77
|
+
export { default as StatCard, type StatCardTone } from './components/StatCard/index.cjs';
|
|
75
78
|
export { default as SummaryCard, type SummaryCardHeadingLevel } from './components/SummaryCard/index.cjs';
|
|
76
79
|
export { default as TotalsList, type TotalsListItem } from './components/TotalsList/index.cjs';
|
|
77
80
|
export { default as Progress, ProgressCircle } from './components/Progress/index.cjs';
|
|
@@ -81,7 +84,7 @@ export { default as ToastPortal } from './components/ToastPortal/index.cjs';
|
|
|
81
84
|
export { default as Accordion, type AccordionItem } from './components/Accordion/index.cjs';
|
|
82
85
|
export { default as Disclosure, type DisclosureVariant } from './components/Disclosure/index.cjs';
|
|
83
86
|
export { default as Steps, type StepItem } from './components/Steps/index.cjs';
|
|
84
|
-
export { default as Tabs, type TabItem } from './components/Tabs/index.cjs';
|
|
87
|
+
export { default as Tabs, type TabItem, type TabsSize, type TabsVariant } from './components/Tabs/index.cjs';
|
|
85
88
|
export { default as Tile } from './components/Tile/index.cjs';
|
|
86
89
|
export { default as Timeline, type TimelineEvent, type TimelineStatus, } from './components/Timeline/index.cjs';
|
|
87
90
|
export { BrandBlueprint, type BrandBlueprintShape, default as BrandSurface, type BrandSurfaceSide, } from './components/BrandSurface/index.cjs';
|
package/build/index.d.ts
CHANGED
|
@@ -51,7 +51,9 @@ export { default as Textarea } from './components/Textarea/index.js';
|
|
|
51
51
|
export { default as DateField, DateRange, type DateRangeValue } from './components/DateField/index.js';
|
|
52
52
|
export { default as Field, type FieldChildProps } from './components/Field/index.js';
|
|
53
53
|
export { default as FileUpload, type UploadFile } from './components/FileUpload/index.js';
|
|
54
|
-
export { default as
|
|
54
|
+
export { default as Heading, type HeadingLevel, type HeadingSize } from './components/Heading/index.js';
|
|
55
|
+
export { default as Text, type TextTone, type TextVariant, type TextWeight, } from './components/Text/index.js';
|
|
56
|
+
export { default as Alert, type AlertTone, type AlertVariant } from './components/Alert/index.js';
|
|
55
57
|
export { default as Avatar } from './components/Avatar/index.js';
|
|
56
58
|
export { default as Badge, type BadgeTone, type BadgeVariant } from './components/Badge/index.js';
|
|
57
59
|
export { default as Breadcrumb, type Crumb } from './components/Breadcrumb/index.js';
|
|
@@ -72,6 +74,7 @@ export { default as SectionHeader } from './components/SectionHeader/index.js';
|
|
|
72
74
|
export { default as ScrollArea } from './components/ScrollArea/index.js';
|
|
73
75
|
export { default as Skeleton, SkeletonCard, SkeletonRows, SkeletonTable, } from './components/Skeleton/index.js';
|
|
74
76
|
export { default as Stat, type StatTrend } from './components/Stat/index.js';
|
|
77
|
+
export { default as StatCard, type StatCardTone } from './components/StatCard/index.js';
|
|
75
78
|
export { default as SummaryCard, type SummaryCardHeadingLevel } from './components/SummaryCard/index.js';
|
|
76
79
|
export { default as TotalsList, type TotalsListItem } from './components/TotalsList/index.js';
|
|
77
80
|
export { default as Progress, ProgressCircle } from './components/Progress/index.js';
|
|
@@ -81,7 +84,7 @@ export { default as ToastPortal } from './components/ToastPortal/index.js';
|
|
|
81
84
|
export { default as Accordion, type AccordionItem } from './components/Accordion/index.js';
|
|
82
85
|
export { default as Disclosure, type DisclosureVariant } from './components/Disclosure/index.js';
|
|
83
86
|
export { default as Steps, type StepItem } from './components/Steps/index.js';
|
|
84
|
-
export { default as Tabs, type TabItem } from './components/Tabs/index.js';
|
|
87
|
+
export { default as Tabs, type TabItem, type TabsSize, type TabsVariant } from './components/Tabs/index.js';
|
|
85
88
|
export { default as Tile } from './components/Tile/index.js';
|
|
86
89
|
export { default as Timeline, type TimelineEvent, type TimelineStatus, } from './components/Timeline/index.js';
|
|
87
90
|
export { BrandBlueprint, type BrandBlueprintShape, default as BrandSurface, type BrandSurfaceSide, } from './components/BrandSurface/index.js';
|