lucent-ui 0.41.0 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{LucentProvider-DluNb5H9.cjs → LucentProvider-CIiTlQ5E.cjs} +6 -6
- package/dist/{LucentProvider-lGSitrJV.js → LucentProvider-tSCR4lQw.js} +609 -597
- package/dist/devtools.cjs +1 -1
- package/dist/devtools.js +27 -27
- package/dist/index.cjs +26 -26
- package/dist/index.d.ts +14 -0
- package/dist/index.js +1757 -1706
- package/dist-cli/cli/entry.js +0 -0
- package/dist-cli/cli/index.js +0 -0
- package/dist-server/server/http.js +0 -0
- package/dist-server/server/index.js +0 -0
- package/package.json +19 -13
package/dist/index.d.ts
CHANGED
|
@@ -698,6 +698,8 @@ export declare interface DataTableColumn<T> {
|
|
|
698
698
|
headerFilter?: ReactNode;
|
|
699
699
|
width?: string;
|
|
700
700
|
align?: 'left' | 'center' | 'right';
|
|
701
|
+
/** Pin this column so it stays visible when the table scrolls horizontally */
|
|
702
|
+
sticky?: boolean;
|
|
701
703
|
}
|
|
702
704
|
|
|
703
705
|
export declare interface DataTableProps<T extends object> {
|
|
@@ -1187,6 +1189,9 @@ export declare interface LucentTokens extends SemanticColorTokens, TypographyTok
|
|
|
1187
1189
|
* Generates a CSS string of custom properties from a token set.
|
|
1188
1190
|
* Inject the result into a <style> tag or a CSS-in-JS solution.
|
|
1189
1191
|
*
|
|
1192
|
+
* Token values are sanitized to prevent CSS injection — characters that
|
|
1193
|
+
* could break out of a property value context (`{};<>@\`) are stripped.
|
|
1194
|
+
*
|
|
1190
1195
|
* @example
|
|
1191
1196
|
* const css = makeLibraryCSS(lightTokens);
|
|
1192
1197
|
* document.getElementById('lucent-tokens').textContent = css;
|
|
@@ -1628,6 +1633,15 @@ export declare interface RowProps {
|
|
|
1628
1633
|
'aria-labelledby'?: string;
|
|
1629
1634
|
}
|
|
1630
1635
|
|
|
1636
|
+
/**
|
|
1637
|
+
* Returns the href unchanged if it uses a safe protocol (http, https, mailto, tel,
|
|
1638
|
+
* or relative path), otherwise returns `undefined` to prevent navigation.
|
|
1639
|
+
*
|
|
1640
|
+
* Blocks `javascript:`, `data:`, `vbscript:`, and any other executable protocol
|
|
1641
|
+
* that could be used for XSS via href injection.
|
|
1642
|
+
*/
|
|
1643
|
+
export declare function sanitizeHref(href: string | undefined): string | undefined;
|
|
1644
|
+
|
|
1631
1645
|
export declare function SearchInput({ value, onChange, mode, placeholder, size, label, helperText, errorText, results, onResultSelect, isLoading, disabled, id, style, }: SearchInputProps): JSX_2.Element;
|
|
1632
1646
|
|
|
1633
1647
|
export declare const SearchInputManifest: ComponentManifest;
|