@dev-blinq/ui-systems 1.0.75 → 1.0.76
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.
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
interface MenuProps {
|
|
2
2
|
items: {
|
|
3
3
|
title: React.ReactNode | string;
|
|
4
|
+
value: any;
|
|
4
5
|
disabled?: boolean;
|
|
5
6
|
divider?: boolean;
|
|
7
|
+
onClickItem?: (e: React.MouseEvent<HTMLLIElement, MouseEvent>, value: any) => void;
|
|
6
8
|
}[];
|
|
7
9
|
handleClose: () => void;
|
|
8
|
-
onClick
|
|
10
|
+
onClick?: (e: React.MouseEvent<HTMLLIElement, MouseEvent>, value: any) => void;
|
|
9
11
|
anchorEl: HTMLElement | null;
|
|
10
12
|
}
|
|
11
13
|
export declare function CustomMenu({ items, anchorEl, handleClose, onClick, }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -127,6 +127,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
127
127
|
font-size: 12px;
|
|
128
128
|
font-weight: 600;
|
|
129
129
|
gap: 8px;
|
|
130
|
+
min-height: auto;
|
|
130
131
|
align-self: stretch;
|
|
131
132
|
border-radius: 8px;
|
|
132
133
|
:not(:last-child) {
|
|
@@ -136,7 +137,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
136
137
|
width: 14px;
|
|
137
138
|
height: 14px;
|
|
138
139
|
}
|
|
139
|
-
`;function Ro({items:e,anchorEl:n,handleClose:t,onClick:r}){return y.jsx(xo,{anchorEl:n,keepMounted:!0,open:!!n,onClose:t,children:e.map(({title:a,
|
|
140
|
+
`;function Ro({items:e,anchorEl:n,handleClose:t,onClick:r}){return y.jsx(xo,{anchorEl:n,keepMounted:!0,open:!!n,onClose:t,children:e.map(({title:a,value:i,disabled:c,divider:o,onClickItem:f},d)=>y.jsxs(y.Fragment,{children:[y.jsx(To,{className:"menu-item",onClick:p=>f?f(p,i):r==null?void 0:r(p,i),disabled:c,children:a},d),o&&y.jsx(ee.Divider,{})]}))})}function Ve(e,...n){const t=new URL(`https://mui.com/production-error/?code=${e}`);return n.forEach(r=>t.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${t} for the full message.`}const wo="$$material",Po=e=>{const n=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return n.sort((t,r)=>t.val-r.val),n.reduce((t,r)=>({...t,[r.key]:r.val}),{})};function Oo(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:r=5,...a}=e,i=Po(n),c=Object.keys(i);function o(m){return`@media (min-width:${typeof n[m]=="number"?n[m]:m}${t})`}function f(m){return`@media (max-width:${(typeof n[m]=="number"?n[m]:m)-r/100}${t})`}function d(m,E){const v=c.indexOf(E);return`@media (min-width:${typeof n[m]=="number"?n[m]:m}${t}) and (max-width:${(v!==-1&&typeof n[c[v]]=="number"?n[c[v]]:E)-r/100}${t})`}function p(m){return c.indexOf(m)+1<c.length?d(m,c[c.indexOf(m)+1]):o(m)}function g(m){const E=c.indexOf(m);return E===0?o(c[1]):E===c.length-1?f(c[E]):d(m,c[c.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:c,values:i,up:o,down:f,between:d,only:p,not:g,unit:t,...a}}var Tt={exports:{}},ne={};/**
|
|
140
141
|
* @license React
|
|
141
142
|
* react-is.production.js
|
|
142
143
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -2802,6 +2802,7 @@ const Fo = Ne(Za)`
|
|
|
2802
2802
|
font-size: 12px;
|
|
2803
2803
|
font-weight: 600;
|
|
2804
2804
|
gap: 8px;
|
|
2805
|
+
min-height: auto;
|
|
2805
2806
|
align-self: stretch;
|
|
2806
2807
|
border-radius: 8px;
|
|
2807
2808
|
:not(:last-child) {
|
|
@@ -2825,18 +2826,18 @@ function wu({
|
|
|
2825
2826
|
keepMounted: !0,
|
|
2826
2827
|
open: !!n,
|
|
2827
2828
|
onClose: t,
|
|
2828
|
-
children: e.map(({ title: a,
|
|
2829
|
+
children: e.map(({ title: a, value: i, disabled: c, divider: o, onClickItem: f }, d) => /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
2829
2830
|
/* @__PURE__ */ y.jsx(
|
|
2830
2831
|
$o,
|
|
2831
2832
|
{
|
|
2832
2833
|
className: "menu-item",
|
|
2833
|
-
onClick: (
|
|
2834
|
-
disabled:
|
|
2834
|
+
onClick: (p) => f ? f(p, i) : r == null ? void 0 : r(p, i),
|
|
2835
|
+
disabled: c,
|
|
2835
2836
|
children: a
|
|
2836
2837
|
},
|
|
2837
|
-
|
|
2838
|
+
d
|
|
2838
2839
|
),
|
|
2839
|
-
|
|
2840
|
+
o && /* @__PURE__ */ y.jsx(qa, {})
|
|
2840
2841
|
] }))
|
|
2841
2842
|
}
|
|
2842
2843
|
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-blinq/ui-systems",
|
|
3
3
|
"description": "this package contains all ui components like button, input, checkbox, colors that blinq.io needs",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.76",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|