@modul/mbui 0.0.24 → 0.0.25-beta-pv-53369-bac51231

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.
@@ -8,7 +8,7 @@ const farvoriteLinkClasses = `
8
8
  px-[20px]
9
9
  py-[8px]
10
10
  hover:bg-[--payments-list-item-hover]
11
- focus:bg-[--payments-list-item-focus]
11
+ focus-visible:bg-[--payments-list-item-focus]
12
12
  active:bg-[--payments-list-item-active]
13
13
  `;
14
14
  exports.farvoriteLinkClasses = farvoriteLinkClasses;
@@ -32,6 +32,7 @@ const Swipe2Show = ({ children, contentToShowRight }) => {
32
32
  return (react_1.default.createElement("div", { style: { position: "relative" }, ref: wrapperRef },
33
33
  (0, react_1.cloneElement)(children, {
34
34
  style: {
35
+ position: 'relative',
35
36
  transform: showRight && `translateX(-${translateX}px)`,
36
37
  transition: "transform .15s ease-in-out",
37
38
  width: "100%",
@@ -1 +1 @@
1
- {"version":3,"file":"Swipe2Show.js","sourceRoot":"","sources":["../../src/Swipe2Show/Swipe2Show.tsx"],"names":[],"mappings":";;;;AAAA,4DAAyF;AACzF,qDAA8C;AAM9C,MAAM,UAAU,GAAe,CAAC,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,EAAE;IACnE,MAAM,UAAU,GAAG,IAAA,cAAM,EAAiB,IAAI,CAAC,CAAC;IAC7C,MAAM,SAAS,GAAG,IAAA,cAAM,EAAiB,IAAI,CAAC,CAAA;IAC9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IACjD,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,EAAE,WAAW,CAAA;IAEjD,MAAM,QAAQ,GAAG,IAAA,8BAAY,EAAC;QAC1B,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;QACtC,aAAa,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC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AY,EAAE,iBAAiB,CAAC,CAAA;QAE1D,OAAO,GAAG,EAAE;YACR,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAA;YAC5D,QAAQ,CAAC,mBAAmB,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAA;QACjE,CAAC,CAAA;IACL,CAAC,CAAC,CAAA;IAEF,OAAO,CACH,uCAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,UAAU;QAChD,IAAA,oBAAY,EAAC,QAAmC,EAAE;YAC/C,KAAK,EAAE;gBAClB,QAAQ,EAAE,UAAU;gBACL,SAAS,EAAE,SAAS,IAAI,eAAe,UAAU,KAAK;gBACtD,UAAU,EAAE,4BAA4B;gBACxC,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,GAAG;gBAC1B,WAAW,EAAE,OAAO;aACR;YACD,GAAG,QAAQ;SACd,CAAC;QACF,uCACI,GAAG,EAAE,SAAS,EACd,KAAK,EAAE;gBACH,QAAQ,EAAE,UAAU;gBACpB,GAAG,EAAE,MAAM;gBACX,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,MAAM;gBAC7B,OAAO,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,CAAA,CAAC,CAAC,GAAG,EAAE;gBAClC,UAAU,EAAE,0BAA0B;aAC1B,IAEA,kBAAkB,CACjB,CACJ,CACT,CAAA;AACL,CAAC,CAAA;AAEQ,gCAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modul/mbui",
3
- "version": "0.0.24",
3
+ "version": "0.0.25-beta-pv-53369-bac51231",
4
4
  "packageManager": "yarn@3.5.1",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -51,10 +51,12 @@ export default {
51
51
  dropShadow: {
52
52
  sm: 'var(--shadow-sm)',
53
53
  md: 'var(--shadow-md)',
54
+ lg: 'var(--shadow-lg)',
54
55
  },
55
56
  boxShadow: {
56
57
  sm: 'var(--shadow-sm)',
57
58
  md: 'var(--shadow-md)',
59
+ lg: 'var(--shadow-lg)',
58
60
  },
59
61
  borderColor: {
60
62
  input: {
@@ -5,7 +5,7 @@ const farvoriteLinkClasses: string = `
5
5
  px-[20px]
6
6
  py-[8px]
7
7
  hover:bg-[--payments-list-item-hover]
8
- focus:bg-[--payments-list-item-focus]
8
+ focus-visible:bg-[--payments-list-item-focus]
9
9
  active:bg-[--payments-list-item-active]
10
10
  `
11
11
 
@@ -39,6 +39,7 @@ const Swipe2Show: FC<IProps> = ({ children, contentToShowRight }) => {
39
39
  <div style={{ position: "relative" }} ref={wrapperRef}>
40
40
  {cloneElement(children as React.ReactElement<any>, {
41
41
  style: {
42
+ position: 'relative',
42
43
  transform: showRight && `translateX(-${translateX}px)`,
43
44
  transition: "transform .15s ease-in-out",
44
45
  width: "100%",
@@ -159,6 +159,7 @@
159
159
  /* =========================================== */
160
160
  --shadow-sm: 0px 4px 14px rgba(36, 48, 54, 0.08);
161
161
  --shadow-md: 0 2px 10px rgba(36, 48, 54, 0.12);
162
+ --shadow-lg: 0px 8px 16px rgba(36, 48, 54, 0.24);
162
163
  /* =========================================== */
163
164
  /* SHADOWS */
164
165
 
@@ -190,9 +191,9 @@
190
191
 
191
192
  /* DRAWER */
192
193
  /* =========================================== */
193
- --payments-list-item-hover: var(--cl-graphite-5);
194
- --payments-list-item-focus: var(--cl-graphite-5);
195
- --payments-list-item-active: var(--cl-graphite-7);
194
+ --payments-list-item-hover: var(--cl-graphite-7);
195
+ --payments-list-item-focus: var(--cl-graphite-7);
196
+ --payments-list-item-active: var(--cl-graphite-6);
196
197
 
197
198
  /* =========================================== */
198
199
  /* DRAWER */