@yuno-payments/dashboard-design-system 2.9.3 → 2.9.5
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/components/molecules/select/search-select.js +152 -132
- package/dist/components/organisms/dialog/dialog.js +31 -30
- package/dist/components/organisms/sheet/sheet.js +17 -16
- package/dist/dashboard-design-system.css +1 -1
- package/dist/hooks/use-overlay-presence.d.ts +9 -0
- package/dist/hooks/use-overlay-presence.js +18 -0
- package/dist/index.css +1 -1
- package/dist/index.esm.min.js +5886 -5853
- package/dist/index.umd.min.js +14 -14
- package/dist/vendor/shadcn/date-picker.js +6 -6
- package/package.json +1 -1
- package/registry/components-registry.json +4 -4
|
@@ -6,9 +6,9 @@ import { Calendar as B } from "./calendar.js";
|
|
|
6
6
|
import { Popover as S, PopoverTrigger as D, PopoverContent as L } from "./popover.js";
|
|
7
7
|
import { Field as R, FieldDescription as T, FieldError as z } from "./field.js";
|
|
8
8
|
import A from "../../node_modules/lucide-react/dist/esm/icons/calendar.js";
|
|
9
|
-
import
|
|
10
|
-
import H from "../../
|
|
11
|
-
import {
|
|
9
|
+
import G from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
10
|
+
import { Label as H } from "../../components/atoms/label/label.js";
|
|
11
|
+
import { format as J } from "../../node_modules/date-fns/format.js";
|
|
12
12
|
function ee({
|
|
13
13
|
date: s,
|
|
14
14
|
onChange: j,
|
|
@@ -52,9 +52,9 @@ function ee({
|
|
|
52
52
|
children: [
|
|
53
53
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
54
54
|
$ && /* @__PURE__ */ e.jsx(A, { className: "h-4 w-4" }),
|
|
55
|
-
s ?
|
|
55
|
+
s ? J(s, w) : /* @__PURE__ */ e.jsx("span", { children: v })
|
|
56
56
|
] }),
|
|
57
|
-
x && /* @__PURE__ */ e.jsx(
|
|
57
|
+
x && /* @__PURE__ */ e.jsx(G, { className: "h-4 w-4 opacity-50" })
|
|
58
58
|
]
|
|
59
59
|
}
|
|
60
60
|
) }),
|
|
@@ -87,7 +87,7 @@ function ee({
|
|
|
87
87
|
className: u("w-full", f),
|
|
88
88
|
children: [
|
|
89
89
|
(l || n || d) && /* @__PURE__ */ e.jsx(
|
|
90
|
-
|
|
90
|
+
H,
|
|
91
91
|
{
|
|
92
92
|
htmlFor: r,
|
|
93
93
|
info: n,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.9.
|
|
3
|
-
"generatedAt": "2026-06-
|
|
2
|
+
"version": "2.9.5",
|
|
3
|
+
"generatedAt": "2026-06-16T23:42:11.905Z",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"name": "AccessDeniedAlert",
|
|
@@ -3752,7 +3752,7 @@
|
|
|
3752
3752
|
"name": "SearchSelect",
|
|
3753
3753
|
"category": "molecules",
|
|
3754
3754
|
"importPath": "@yuno-payments/dashboard-design-system",
|
|
3755
|
-
"description": "A customizable select dropdown component with built-in search functionality, supporting labels, descriptions, error states, grouped options, and icons.",
|
|
3755
|
+
"description": "A customizable select dropdown component with built-in search functionality, supporting labels, descriptions, error states, grouped options, and icons. When opened, no option is pre-highlighted unless a value is already selected — in which case the selected option is highlighted and the list auto-scrolls to bring it into view.",
|
|
3756
3756
|
"whenToUse": [],
|
|
3757
3757
|
"whenNotToUse": [],
|
|
3758
3758
|
"props": [
|
|
@@ -3808,7 +3808,7 @@
|
|
|
3808
3808
|
"examples": [
|
|
3809
3809
|
{
|
|
3810
3810
|
"name": "Default",
|
|
3811
|
-
"code": "<SearchSelect label=\"Country\" placeholder=\"Select a country\" searchPlaceholder=\"Search countries...\" id=\"default-search-select\" options={[{\"value\":\"
|
|
3811
|
+
"code": "<SearchSelect label=\"Country\" placeholder=\"Select a country\" searchPlaceholder=\"Search countries...\" id=\"default-search-select\" defaultValue=\"uy\" options={[{\"value\":\"ar\",\"label\":\"Argentina\"},{\"value\":\"au\",\"label\":\"Australia\"},{\"value\":\"at\",\"label\":\"Austria\"},{\"value\":\"be\",\"label\":\"Belgium\"},{\"value\":\"br\",\"label\":\"Brazil\"},{\"value\":\"ca\",\"label\":\"Canada\"},{\"value\":\"cl\",\"label\":\"Chile\"},{\"value\":\"cn\",\"label\":\"China\"},{\"value\":\"co\",\"label\":\"Colombia\"},{\"value\":\"dk\",\"label\":\"Denmark\"},{\"value\":\"fi\",\"label\":\"Finland\"},{\"value\":\"fr\",\"label\":\"France\"},{\"value\":\"de\",\"label\":\"Germany\"},{\"value\":\"gr\",\"label\":\"Greece\"},{\"value\":\"in\",\"label\":\"India\"},{\"value\":\"id\",\"label\":\"Indonesia\"},{\"value\":\"ie\",\"label\":\"Ireland\"},{\"value\":\"it\",\"label\":\"Italy\"},{\"value\":\"jp\",\"label\":\"Japan\"},{\"value\":\"mx\",\"label\":\"Mexico\"},{\"value\":\"nl\",\"label\":\"Netherlands\"},{\"value\":\"nz\",\"label\":\"New Zealand\"},{\"value\":\"no\",\"label\":\"Norway\"},{\"value\":\"pe\",\"label\":\"Peru\"},{\"value\":\"pl\",\"label\":\"Poland\"},{\"value\":\"pt\",\"label\":\"Portugal\"},{\"value\":\"es\",\"label\":\"Spain\"},{\"value\":\"se\",\"label\":\"Sweden\"},{\"value\":\"ch\",\"label\":\"Switzerland\"},{\"value\":\"uk\",\"label\":\"United Kingdom\"},{\"value\":\"us\",\"label\":\"United States\"},{\"value\":\"uy\",\"label\":\"Uruguay\"},{\"value\":\"ve\",\"label\":\"Venezuela\"}]} />"
|
|
3812
3812
|
},
|
|
3813
3813
|
{
|
|
3814
3814
|
"name": "Disabled",
|