qstd 0.3.73 → 0.3.74

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 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/block/drawer.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAia9B,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,2CAMxD;AAID,wBAAgB,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,mBAAmB,2CAYrD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,mBAAmB,uDAkDrD"}
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/block/drawer.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAma9B,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,2CAMxD;AAID,wBAAgB,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,mBAAmB,2CAYrD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,mBAAmB,uDAkDrD"}
@@ -2805,7 +2805,7 @@ function DrawerComponent(props) {
2805
2805
  Backdrop,
2806
2806
  {
2807
2807
  onClick: () => onBackdropClick(),
2808
- children: /* @__PURE__ */ jsxRuntime.jsx(
2808
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
2809
2809
  MotionDiv4,
2810
2810
  {
2811
2811
  grid: true,
@@ -2854,17 +2854,6 @@ function DrawerComponent(props) {
2854
2854
  borderTopLeftRadius: 12,
2855
2855
  borderTopRightRadius: 12,
2856
2856
  overflow: "hidden",
2857
- // Extend background below viewport to cover spring overshoot bounce
2858
- _after: {
2859
- content: '""',
2860
- position: "absolute",
2861
- left: 0,
2862
- right: 0,
2863
- bottom: 0,
2864
- height: 100,
2865
- transform: "translateY(100%)",
2866
- bg: "inherit"
2867
- },
2868
2857
  // Note: Can't use framer-motion's `y` prop because it conflicts
2869
2858
  // with the drag motion value. Use CSS transform instead.
2870
2859
  variants: {
@@ -2919,31 +2908,46 @@ function DrawerComponent(props) {
2919
2908
  color: "text-primary",
2920
2909
  ref,
2921
2910
  ...rest,
2922
- children: /* @__PURE__ */ jsxRuntime.jsxs(
2923
- MotionDiv4,
2924
- {
2925
- grid: true,
2926
- ...isDesktop ? { position: "relative" } : { rows: "max-content 1fr" },
2927
- children: [
2928
- !isDesktop && props.hideHandle !== false && /* @__PURE__ */ jsxRuntime.jsx(
2929
- MotionDiv4,
2930
- {
2931
- grid: true,
2932
- justifySelf: "center",
2933
- h: 6,
2934
- w: 34,
2935
- mt: "16px",
2936
- mb: 4,
2937
- br: 20,
2938
- bg: { base: "neutral.400", _dark: "neutral.600" },
2939
- cursor: props.drag ? "row-resize" : "default",
2940
- ref: dragHandleRef
2941
- }
2942
- ),
2943
- props.children
2944
- ]
2945
- }
2946
- )
2911
+ children: [
2912
+ /* @__PURE__ */ jsxRuntime.jsxs(
2913
+ MotionDiv4,
2914
+ {
2915
+ grid: true,
2916
+ ...isDesktop ? { position: "relative" } : { rows: "max-content 1fr" },
2917
+ children: [
2918
+ !isDesktop && props.hideHandle !== false && /* @__PURE__ */ jsxRuntime.jsx(
2919
+ MotionDiv4,
2920
+ {
2921
+ grid: true,
2922
+ justifySelf: "center",
2923
+ h: 6,
2924
+ w: 34,
2925
+ mt: "16px",
2926
+ mb: 4,
2927
+ br: 20,
2928
+ bg: { base: "neutral.400", _dark: "neutral.600" },
2929
+ cursor: props.drag ? "row-resize" : "default",
2930
+ ref: dragHandleRef
2931
+ }
2932
+ ),
2933
+ props.children
2934
+ ]
2935
+ }
2936
+ ),
2937
+ !isDesktop && /* @__PURE__ */ jsxRuntime.jsx(
2938
+ MotionDiv4,
2939
+ {
2940
+ position: "absolute",
2941
+ left: 0,
2942
+ right: 0,
2943
+ bottom: 0,
2944
+ h: 100,
2945
+ transform: "translateY(100%)",
2946
+ bg: { base: "neutral.100", _dark: "neutral.900" },
2947
+ pointerEvents: "none"
2948
+ }
2949
+ )
2950
+ ]
2947
2951
  },
2948
2952
  "drawer"
2949
2953
  )
@@ -1020,18 +1020,24 @@
1020
1020
  .justify-self_center {
1021
1021
  justify-self: center;
1022
1022
  }
1023
+ .pos_absolute {
1024
+ position: absolute;
1025
+ }
1026
+ .trf_translateY\(100\%\) {
1027
+ transform: translateY(100%);
1028
+ }
1029
+ .pointer-events_none {
1030
+ pointer-events: none;
1031
+ }
1023
1032
  .rg_14 {
1024
1033
  row-gap: 14px;
1025
1034
  }
1026
- .place-i_true {
1035
+ .place-i_true,
1036
+ .center_true {
1027
1037
  place-items: center;
1028
1038
  }
1029
- .pos_absolute {
1030
- position: absolute;
1031
- }
1032
1039
  .center_true {
1033
1040
  place-content: center;
1034
- place-items: center;
1035
1041
  }
1036
1042
  .fs_16 {
1037
1043
  font-size: 16px;
@@ -1109,9 +1115,6 @@
1109
1115
  .grid-af_column {
1110
1116
  grid-auto-flow: column;
1111
1117
  }
1112
- .pointer-events_none {
1113
- pointer-events: none;
1114
- }
1115
1118
  .trf-o_top_left {
1116
1119
  transform-origin: top left;
1117
1120
  }
@@ -1275,6 +1278,9 @@
1275
1278
  .mb_4 {
1276
1279
  margin-bottom: var(--spacing-4);
1277
1280
  }
1281
+ .h_100 {
1282
+ height: 100px;
1283
+ }
1278
1284
  .top_0 {
1279
1285
  top: var(--spacing-0);
1280
1286
  }
@@ -1380,9 +1386,6 @@
1380
1386
  [data-theme=dark] .dark\:bg_neutral\.900 {
1381
1387
  background: var(--colors-neutral-900);
1382
1388
  }
1383
- .after\:bg_inherit::after {
1384
- background: inherit;
1385
- }
1386
1389
  [data-theme=dark] .dark\:bg_neutral\.600 {
1387
1390
  background: var(--colors-neutral-600);
1388
1391
  }
@@ -1422,9 +1425,6 @@
1422
1425
  .after\:pos_absolute::after {
1423
1426
  position: absolute;
1424
1427
  }
1425
- .after\:trf_translateY\(100\%\)::after {
1426
- transform: translateY(100%);
1427
- }
1428
1428
  .after\:scale_0::after {
1429
1429
  scale: 0;
1430
1430
  }
@@ -1466,18 +1466,6 @@
1466
1466
  .\[\&\:\:-webkit-scrollbar-thumb\]\:bg-c_neutral\.300::-webkit-scrollbar-thumb {
1467
1467
  background-color: var(--colors-neutral-300);
1468
1468
  }
1469
- .after\:left_0::after {
1470
- left: var(--spacing-0);
1471
- }
1472
- .after\:right_0::after {
1473
- right: var(--spacing-0);
1474
- }
1475
- .after\:bottom_0::after {
1476
- bottom: var(--spacing-0);
1477
- }
1478
- .after\:h_100::after {
1479
- height: 100px;
1480
- }
1481
1469
  .\[\&\:\:-webkit-scrollbar\]\:h_6::-webkit-scrollbar {
1482
1470
  height: 6px;
1483
1471
  }
@@ -2782,7 +2782,7 @@ function DrawerComponent(props) {
2782
2782
  Backdrop,
2783
2783
  {
2784
2784
  onClick: () => onBackdropClick(),
2785
- children: /* @__PURE__ */ jsx(
2785
+ children: /* @__PURE__ */ jsxs(
2786
2786
  MotionDiv4,
2787
2787
  {
2788
2788
  grid: true,
@@ -2831,17 +2831,6 @@ function DrawerComponent(props) {
2831
2831
  borderTopLeftRadius: 12,
2832
2832
  borderTopRightRadius: 12,
2833
2833
  overflow: "hidden",
2834
- // Extend background below viewport to cover spring overshoot bounce
2835
- _after: {
2836
- content: '""',
2837
- position: "absolute",
2838
- left: 0,
2839
- right: 0,
2840
- bottom: 0,
2841
- height: 100,
2842
- transform: "translateY(100%)",
2843
- bg: "inherit"
2844
- },
2845
2834
  // Note: Can't use framer-motion's `y` prop because it conflicts
2846
2835
  // with the drag motion value. Use CSS transform instead.
2847
2836
  variants: {
@@ -2896,31 +2885,46 @@ function DrawerComponent(props) {
2896
2885
  color: "text-primary",
2897
2886
  ref,
2898
2887
  ...rest,
2899
- children: /* @__PURE__ */ jsxs(
2900
- MotionDiv4,
2901
- {
2902
- grid: true,
2903
- ...isDesktop ? { position: "relative" } : { rows: "max-content 1fr" },
2904
- children: [
2905
- !isDesktop && props.hideHandle !== false && /* @__PURE__ */ jsx(
2906
- MotionDiv4,
2907
- {
2908
- grid: true,
2909
- justifySelf: "center",
2910
- h: 6,
2911
- w: 34,
2912
- mt: "16px",
2913
- mb: 4,
2914
- br: 20,
2915
- bg: { base: "neutral.400", _dark: "neutral.600" },
2916
- cursor: props.drag ? "row-resize" : "default",
2917
- ref: dragHandleRef
2918
- }
2919
- ),
2920
- props.children
2921
- ]
2922
- }
2923
- )
2888
+ children: [
2889
+ /* @__PURE__ */ jsxs(
2890
+ MotionDiv4,
2891
+ {
2892
+ grid: true,
2893
+ ...isDesktop ? { position: "relative" } : { rows: "max-content 1fr" },
2894
+ children: [
2895
+ !isDesktop && props.hideHandle !== false && /* @__PURE__ */ jsx(
2896
+ MotionDiv4,
2897
+ {
2898
+ grid: true,
2899
+ justifySelf: "center",
2900
+ h: 6,
2901
+ w: 34,
2902
+ mt: "16px",
2903
+ mb: 4,
2904
+ br: 20,
2905
+ bg: { base: "neutral.400", _dark: "neutral.600" },
2906
+ cursor: props.drag ? "row-resize" : "default",
2907
+ ref: dragHandleRef
2908
+ }
2909
+ ),
2910
+ props.children
2911
+ ]
2912
+ }
2913
+ ),
2914
+ !isDesktop && /* @__PURE__ */ jsx(
2915
+ MotionDiv4,
2916
+ {
2917
+ position: "absolute",
2918
+ left: 0,
2919
+ right: 0,
2920
+ bottom: 0,
2921
+ h: 100,
2922
+ transform: "translateY(100%)",
2923
+ bg: { base: "neutral.100", _dark: "neutral.900" },
2924
+ pointerEvents: "none"
2925
+ }
2926
+ )
2927
+ ]
2924
2928
  },
2925
2929
  "drawer"
2926
2930
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qstd",
3
- "version": "0.3.73",
3
+ "version": "0.3.74",
4
4
  "description": "Standard Block component and utilities library with Panda CSS",
5
5
  "author": "malin1",
6
6
  "license": "MIT",
@@ -1049,21 +1049,28 @@
1049
1049
  justify-self: center;
1050
1050
  }
1051
1051
 
1052
+ .pos_absolute {
1053
+ position: absolute;
1054
+ }
1055
+
1056
+ .trf_translateY\(100\%\) {
1057
+ transform: translateY(100%);
1058
+ }
1059
+
1060
+ .pointer-events_none {
1061
+ pointer-events: none;
1062
+ }
1063
+
1052
1064
  .rg_14 {
1053
1065
  row-gap: 14px;
1054
1066
  }
1055
1067
 
1056
- .place-i_true {
1068
+ .place-i_true,.center_true {
1057
1069
  place-items: center;
1058
1070
  }
1059
1071
 
1060
- .pos_absolute {
1061
- position: absolute;
1062
- }
1063
-
1064
1072
  .center_true {
1065
1073
  place-content: center;
1066
- place-items: center;
1067
1074
  }
1068
1075
 
1069
1076
  .fs_16 {
@@ -1159,10 +1166,6 @@
1159
1166
  grid-auto-flow: column;
1160
1167
  }
1161
1168
 
1162
- .pointer-events_none {
1163
- pointer-events: none;
1164
- }
1165
-
1166
1169
  .trf-o_top_left {
1167
1170
  transform-origin: top left;
1168
1171
  }
@@ -1379,6 +1382,10 @@
1379
1382
  margin-bottom: var(--spacing-4);
1380
1383
  }
1381
1384
 
1385
+ .h_100 {
1386
+ height: 100px;
1387
+ }
1388
+
1382
1389
  .top_0 {
1383
1390
  top: var(--spacing-0);
1384
1391
  }
@@ -1519,10 +1526,6 @@
1519
1526
  background: var(--colors-neutral-900);
1520
1527
  }
1521
1528
 
1522
- .after\:bg_inherit::after {
1523
- background: inherit;
1524
- }
1525
-
1526
1529
  [data-theme=dark] .dark\:bg_neutral\.600 {
1527
1530
  background: var(--colors-neutral-600);
1528
1531
  }
@@ -1575,10 +1578,6 @@
1575
1578
  position: absolute;
1576
1579
  }
1577
1580
 
1578
- .after\:trf_translateY\(100\%\)::after {
1579
- transform: translateY(100%);
1580
- }
1581
-
1582
1581
  .after\:scale_0::after {
1583
1582
  scale: 0;
1584
1583
  }
@@ -1623,22 +1622,6 @@
1623
1622
  background-color: var(--colors-neutral-300);
1624
1623
  }
1625
1624
 
1626
- .after\:left_0::after {
1627
- left: var(--spacing-0);
1628
- }
1629
-
1630
- .after\:right_0::after {
1631
- right: var(--spacing-0);
1632
- }
1633
-
1634
- .after\:bottom_0::after {
1635
- bottom: var(--spacing-0);
1636
- }
1637
-
1638
- .after\:h_100::after {
1639
- height: 100px;
1640
- }
1641
-
1642
1625
  .\[\&\:\:-webkit-scrollbar\]\:h_6::-webkit-scrollbar {
1643
1626
  height: 6px;
1644
1627
  }