@sofya-ds/react 1.3.8 → 1.3.9
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/index.cjs +2 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2077,6 +2077,7 @@ function Dropdown({
|
|
|
2077
2077
|
defaultValue,
|
|
2078
2078
|
disabled = false,
|
|
2079
2079
|
iconTrigger,
|
|
2080
|
+
iconTriggerSize,
|
|
2080
2081
|
items,
|
|
2081
2082
|
itemClassName,
|
|
2082
2083
|
modal,
|
|
@@ -2156,7 +2157,7 @@ function Dropdown({
|
|
|
2156
2157
|
selectedTriggerToneClassName,
|
|
2157
2158
|
triggerClassName
|
|
2158
2159
|
),
|
|
2159
|
-
leftIcon: isActionVariant ? iconTrigger : void 0,
|
|
2160
|
+
leftIcon: isActionVariant ? iconTriggerSize !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { style: { fontSize: iconTriggerSize }, children: iconTrigger }) : iconTrigger : void 0,
|
|
2160
2161
|
rightIcon: resolvedTriggerIcon,
|
|
2161
2162
|
children: isLanguageVariant || isActionVariant ? null : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "min-w-0 truncate", children: renderTextContent(triggerLabel, {
|
|
2162
2163
|
as: "span",
|
package/dist/index.d.cts
CHANGED
|
@@ -172,6 +172,7 @@ interface DropdownProps extends Pick<React.ComponentPropsWithoutRef<typeof Dropd
|
|
|
172
172
|
defaultValue?: string;
|
|
173
173
|
disabled?: boolean;
|
|
174
174
|
iconTrigger?: React.ReactNode;
|
|
175
|
+
iconTriggerSize?: number;
|
|
175
176
|
items?: readonly DropdownItem[];
|
|
176
177
|
itemClassName?: string;
|
|
177
178
|
onValueChange?: (value: string) => void;
|
|
@@ -183,7 +184,7 @@ interface DropdownProps extends Pick<React.ComponentPropsWithoutRef<typeof Dropd
|
|
|
183
184
|
value?: string;
|
|
184
185
|
variant?: DropdownVariant;
|
|
185
186
|
}
|
|
186
|
-
declare function Dropdown({ align, appearance, contentClassName, defaultOpen, defaultValue, disabled, iconTrigger, items, itemClassName, modal, onOpenChange, onValueChange, open, placeholder, sideOffset, triggerClassName, triggerIcon, triggerSize, value, variant, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
187
|
+
declare function Dropdown({ align, appearance, contentClassName, defaultOpen, defaultValue, disabled, iconTrigger, iconTriggerSize, items, itemClassName, modal, onOpenChange, onValueChange, open, placeholder, sideOffset, triggerClassName, triggerIcon, triggerSize, value, variant, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
187
188
|
|
|
188
189
|
type DropdownSearchOption = {
|
|
189
190
|
value: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -172,6 +172,7 @@ interface DropdownProps extends Pick<React.ComponentPropsWithoutRef<typeof Dropd
|
|
|
172
172
|
defaultValue?: string;
|
|
173
173
|
disabled?: boolean;
|
|
174
174
|
iconTrigger?: React.ReactNode;
|
|
175
|
+
iconTriggerSize?: number;
|
|
175
176
|
items?: readonly DropdownItem[];
|
|
176
177
|
itemClassName?: string;
|
|
177
178
|
onValueChange?: (value: string) => void;
|
|
@@ -183,7 +184,7 @@ interface DropdownProps extends Pick<React.ComponentPropsWithoutRef<typeof Dropd
|
|
|
183
184
|
value?: string;
|
|
184
185
|
variant?: DropdownVariant;
|
|
185
186
|
}
|
|
186
|
-
declare function Dropdown({ align, appearance, contentClassName, defaultOpen, defaultValue, disabled, iconTrigger, items, itemClassName, modal, onOpenChange, onValueChange, open, placeholder, sideOffset, triggerClassName, triggerIcon, triggerSize, value, variant, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
187
|
+
declare function Dropdown({ align, appearance, contentClassName, defaultOpen, defaultValue, disabled, iconTrigger, iconTriggerSize, items, itemClassName, modal, onOpenChange, onValueChange, open, placeholder, sideOffset, triggerClassName, triggerIcon, triggerSize, value, variant, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
187
188
|
|
|
188
189
|
type DropdownSearchOption = {
|
|
189
190
|
value: string;
|
package/dist/index.js
CHANGED
|
@@ -1915,6 +1915,7 @@ function Dropdown({
|
|
|
1915
1915
|
defaultValue,
|
|
1916
1916
|
disabled = false,
|
|
1917
1917
|
iconTrigger,
|
|
1918
|
+
iconTriggerSize,
|
|
1918
1919
|
items,
|
|
1919
1920
|
itemClassName,
|
|
1920
1921
|
modal,
|
|
@@ -1994,7 +1995,7 @@ function Dropdown({
|
|
|
1994
1995
|
selectedTriggerToneClassName,
|
|
1995
1996
|
triggerClassName
|
|
1996
1997
|
),
|
|
1997
|
-
leftIcon: isActionVariant ? iconTrigger : void 0,
|
|
1998
|
+
leftIcon: isActionVariant ? iconTriggerSize !== void 0 ? /* @__PURE__ */ jsx12("span", { style: { fontSize: iconTriggerSize }, children: iconTrigger }) : iconTrigger : void 0,
|
|
1998
1999
|
rightIcon: resolvedTriggerIcon,
|
|
1999
2000
|
children: isLanguageVariant || isActionVariant ? null : /* @__PURE__ */ jsx12("span", { className: "min-w-0 truncate", children: renderTextContent(triggerLabel, {
|
|
2000
2001
|
as: "span",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sofya-ds/react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"description": "Sofya React design system with official brand tokens, provider and UI components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"motion": "^12.38.0",
|
|
60
60
|
"sonner": "^2.0.7",
|
|
61
61
|
"tailwind-merge": "^3.5.0",
|
|
62
|
-
"@sofya-ds/tokens": "1.3.
|
|
62
|
+
"@sofya-ds/tokens": "1.3.9"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@testing-library/jest-dom": "^6.9.1",
|