dt-design-system
Advanced tools
Comparing version 3.7.0 to 3.7.1
@@ -5,4 +5,4 @@ import * as React from "react"; | ||
type Option = string | { | ||
label: React.ReactNode; | ||
value: string; | ||
label?: React.ReactNode; | ||
value?: string; | ||
kind?: "title" | "separator" | "item"; | ||
@@ -9,0 +9,0 @@ disabled?: boolean; |
@@ -35,2 +35,5 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; | ||
} | ||
if (!value) { | ||
return null; | ||
} | ||
return (_jsx(SelectItem, { value: value, disabled: disabled, children: label }, key)); | ||
@@ -37,0 +40,0 @@ }) }), _jsx(SelectPrimitive.ScrollDownButton, { "data-direction": "down", className: styles.scrollButton, children: _jsx(Icons.ChevronDown, {}) })] }) })] })] }), error && (_jsx("div", { className: styles.errorMessage, role: "alert", children: error }))] })); |
@@ -15,2 +15,3 @@ import * as React from "react"; | ||
export declare function at(props: Props): JSX.Element; | ||
export declare function au(props: Props): JSX.Element; | ||
export declare function aw(props: Props): JSX.Element; | ||
@@ -17,0 +18,0 @@ export declare function ax(props: Props): JSX.Element; |
{ | ||
"name": "dt-design-system", | ||
"version": "3.7.0", | ||
"version": "3.7.1", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "react": "^17.0.0 || ^18.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
781015
7261
51