@cognitap/radiant 0.0.88 → 0.0.89
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/CHANGELOG.md
CHANGED
|
@@ -14,7 +14,7 @@ export function Indicator({ label, statusText, children, count, maxCount = 99, p
|
|
|
14
14
|
const dot = count === undefined;
|
|
15
15
|
const end = position.endsWith('end');
|
|
16
16
|
const top = position.startsWith('top');
|
|
17
|
-
return (_jsxs("span", { ...props, "data-slot": joinIds('indicator', props['data-slot']), "data-position": position, className: cn('relative inline-flex min-w-0 max-w-full align-middle', className), children: [children({ 'aria-label': `${label}, ${statusText}` }), _jsx(Badge, { decorative: true, "data-slot": "indicator-marker", "data-kind": dot ? 'dot' : 'count', tone: tone, className: cn('pointer-events-none absolute z-10 max-w-none justify-center', top
|
|
17
|
+
return (_jsxs("span", { ...props, "data-slot": joinIds('indicator', props['data-slot']), "data-position": position, className: cn('relative inline-flex w-fit min-w-0 max-w-full align-middle', className), children: [children({ 'aria-label': `${label}, ${statusText}` }), _jsx(Badge, { decorative: true, "data-slot": "indicator-marker", "data-kind": dot ? 'dot' : 'count', tone: tone, className: cn('pointer-events-none absolute z-10 max-w-none justify-center', top
|
|
18
18
|
? '[inset-block-start:var(--_rad-indicator-inset)] -translate-y-1/2'
|
|
19
19
|
: '[inset-block-end:var(--_rad-indicator-inset)] translate-y-1/2', end
|
|
20
20
|
? '[inset-inline-end:var(--_rad-indicator-inset)] translate-x-1/2 [&:dir(rtl)]:-translate-x-1/2'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Indicator.js","sourceRoot":"","sources":["../../../../src/components/Indicator/Indicator.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,IAAI,CAAA;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAyBzC,MAAM,UAAU,SAA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AC,KAAK,IACJ,UAAU,qBACA,kBAAkB,eACjB,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAChC,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,EAAE,CACX,6DAA6D,EAC7D,GAAG;oBACD,CAAC,CAAC,kEAAkE;oBACpE,CAAC,CAAC,+DAA+D,EACnE,GAAG;oBACD,CAAC,CAAC,8FAA8F;oBAChG,CAAC,CAAC,gGAAgG,EACpG,GAAG;oBACD,CAAC,CAAC,qEAAqE;oBACvE,CAAC,CAAC,0DAA0D,EAC9D,KAAK,EAAE,MAAM,EAAE,SAAS,CACzB,EACD,KAAK,EAAE,EAAE,wBAAwB,EAAE,GAAG,CAAC,MAAM,IAAI,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,YAE3E,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAC5B,cAAK,GAAG,EAAC,KAAK,YAAE,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,GAAG,CAAC,CAAC,CAAC,KAAK,GAAO,CACjE,GACK,IACH,CACR,CAAA;AACH,CAAC"}
|
package/docs/architecture.md
CHANGED
|
@@ -71,7 +71,7 @@ Custom controls submit through a native form element:
|
|
|
71
71
|
|
|
72
72
|
Resolve the locale in the app and use the same value for `<html {...getLocaleAttributes(locale)}>` and `<LocaleProvider locale={locale} scope="document">` inside the body. The helper runs on the server. Document scope renders no wrapper. The default subtree scope renders a `div` that sets native `lang` and script-derived `dir` for an explicit locale.
|
|
73
73
|
|
|
74
|
-
Omitting the locale inherits the closest provider
|
|
74
|
+
Omitting the locale inherits formatting and matching from the closest provider. Native markup still supplies language and direction. Formatting and matching fall back to `en-US` when there is no configured locale or no supported locale match. A component's explicit `locale` overrides its formatting. Popups carry their anchor's language and direction across a portal, with explicit content attributes taking precedence.
|
|
75
75
|
|
|
76
76
|
`NumberField` localizes its display and parsing. `NumberFormatter` preserves server text when browser locale data differs during hydration. Select and Menu use locale-aware prefix search. Combobox, Autocomplete and their composed families use locale-aware substring search. Built-in matching ignores case and distinguishes accents. Caller filters and text props still apply.
|
|
77
77
|
|
package/package.json
CHANGED
|
@@ -56,7 +56,7 @@ export function Indicator({
|
|
|
56
56
|
{...props}
|
|
57
57
|
data-slot={joinIds('indicator', props['data-slot'])}
|
|
58
58
|
data-position={position}
|
|
59
|
-
className={cn('relative inline-flex min-w-0 max-w-full align-middle', className)}
|
|
59
|
+
className={cn('relative inline-flex w-fit min-w-0 max-w-full align-middle', className)}
|
|
60
60
|
>
|
|
61
61
|
{children({ 'aria-label': `${label}, ${statusText}` })}
|
|
62
62
|
<Badge
|