mayak-common-library 0.0.76 → 0.0.78

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.js CHANGED
@@ -377,7 +377,16 @@ var SelectPro = ({
377
377
  btn ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
378
378
  import_material4.Paper,
379
379
  {
380
- className: `select absolute ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}${fullContainerWidth ? "right-0" : "right-auto"}${overButton ? "top-0" : "top-auto"}${freeChildWidth ? "w-fit" : !fullContainerWidth && btn ? `w-[${btn.offsetWidth}]` : "w-[115%]"}`,
380
+ sx: (theme2) => ({
381
+ width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "115%",
382
+ left: fullContainerWidth ? 0 : "initial",
383
+ right: fullContainerWidth ? 0 : "initial",
384
+ top: overButton ? 0 : "initial",
385
+ [theme2.breakpoints.up("sm")]: {
386
+ width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "100%"
387
+ }
388
+ }),
389
+ className: `absolute select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
381
390
  children: [
382
391
  intermediateChild ? intermediateChild : null,
383
392
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { className: `flex flex-col py-3 px-4 gap-2 shadow-sm`, children: [
package/dist/index.mjs CHANGED
@@ -318,7 +318,16 @@ var SelectPro = ({
318
318
  btn ? /* @__PURE__ */ jsxs3(
319
319
  Paper,
320
320
  {
321
- className: `select absolute ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}${fullContainerWidth ? "right-0" : "right-auto"}${overButton ? "top-0" : "top-auto"}${freeChildWidth ? "w-fit" : !fullContainerWidth && btn ? `w-[${btn.offsetWidth}]` : "w-[115%]"}`,
321
+ sx: (theme2) => ({
322
+ width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "115%",
323
+ left: fullContainerWidth ? 0 : "initial",
324
+ right: fullContainerWidth ? 0 : "initial",
325
+ top: overButton ? 0 : "initial",
326
+ [theme2.breakpoints.up("sm")]: {
327
+ width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "100%"
328
+ }
329
+ }),
330
+ className: `absolute select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
322
331
  children: [
323
332
  intermediateChild ? intermediateChild : null,
324
333
  /* @__PURE__ */ jsxs3(Box, { className: `flex flex-col py-3 px-4 gap-2 shadow-sm`, children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.76",
3
+ "version": "0.0.78",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",