@butternutbox/pawprint-native 0.10.7 → 0.10.9
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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +29 -0
- package/dist/index.cjs +82 -79
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +82 -79
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/DatePicker/DatePicker.tsx +31 -26
- package/src/components/molecules/Drawer/Drawer.stories.tsx +49 -0
- package/src/components/molecules/Drawer/DrawerContent.tsx +20 -38
- package/src/components/molecules/Radio/Radio.tsx +3 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
[34mCJS[39m Build start
|
|
8
8
|
[34mESM[39m Build start
|
|
9
9
|
[34mDTS[39m Build start
|
|
10
|
-
[32mESM[39m [1mdist/index.js [22m[32m1.72 MB[39m
|
|
11
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m2.69 MB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in 11806ms
|
|
13
10
|
[32mCJS[39m [1mdist/index.cjs [22m[32m1.80 MB[39m
|
|
14
11
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m2.70 MB[39m
|
|
15
|
-
[32mCJS[39m ⚡️ Build success in
|
|
16
|
-
[
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 11884ms
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m1.72 MB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m2.70 MB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 11885ms
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 22581ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m91.44 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m91.44 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @butternutbox/pawprint-native
|
|
2
2
|
|
|
3
|
+
## 0.10.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 825e9bb: Drawer: fix the content-driven height re-fit so tall drawers no longer clip or
|
|
8
|
+
lose the ability to scroll (regression in 0.10.8).
|
|
9
|
+
|
|
10
|
+
The 0.10.8 implementation derived the panel height from the body content
|
|
11
|
+
measured _inside_ the height-constrained `ScrollView` and fed it back to size
|
|
12
|
+
the panel. For any drawer whose content height depends on the available height,
|
|
13
|
+
that coupling sized the panel too short and collapsed the scroll region, so tall
|
|
14
|
+
drawers clipped their content and could not scroll to the end.
|
|
15
|
+
|
|
16
|
+
The re-fit is now purely layout-driven: the panel wraps its content and caps at
|
|
17
|
+
90% of the window height, while `DrawerBody` keeps its own `maxHeight` to bound
|
|
18
|
+
scrolling (and prevent the `ScrollView` from collapsing). When the body grows or
|
|
19
|
+
shrinks after open — async loading, expanding sections — the panel re-fits
|
|
20
|
+
itself through normal layout with no measurement feedback loop. Removes the
|
|
21
|
+
`DrawerMeasureContext` plumbing and adds a `DynamicContent` story as a
|
|
22
|
+
regression guard.
|
|
23
|
+
|
|
24
|
+
## 0.10.8
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- 8735f2e: DatePicker: remove extra padding on the weekday header, tighten the month-to-dates gap to 16px, size the month-nav buttons to 44px (md), and default the container to full width so it fills its parent without a wrapper.
|
|
29
|
+
- 478f90b: Drawer: re-fit the panel height when body content changes. Previously the drawer measured its height once on open and stayed pinned to that first measurement, so content that grew or shrank afterwards (async loading, expanding sections) left the panel the wrong size — either clipped/scrolling or with an empty gap. The panel now tracks its content, growing and shrinking to fit and capping into a scroll only when the content exceeds the max height.
|
|
30
|
+
- 4c2fd55: Fix Radio tile trailing asset overflowing the tile when the label/subText wraps to multiple lines. The text content now takes the row's remaining width so long copy wraps within the tile instead of pushing the illustration past its edge.
|
|
31
|
+
|
|
3
32
|
## 0.10.7
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -4774,54 +4774,57 @@ ForwardRef472.category = "core";
|
|
|
4774
4774
|
var PlayArrow = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18a1 1 0 0 0 0-1.69L9.54 5.98A.998.998 0 0 0 8 6.82" }) }));
|
|
4775
4775
|
var ForwardRef482 = React65.forwardRef(PlayArrow);
|
|
4776
4776
|
ForwardRef482.category = "core";
|
|
4777
|
-
var
|
|
4778
|
-
var ForwardRef492 = React65.forwardRef(
|
|
4777
|
+
var Range = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "m5.83 12 2.46-2.46a.996.996 0 1 0-1.41-1.41L3.7 11.3a.996.996 0 0 0 0 1.41l3.18 3.17a.996.996 0 1 0 1.41-1.41zm12.34 0-2.46 2.46a.996.996 0 1 0 1.41 1.41l3.18-3.17a.996.996 0 0 0 0-1.41l-3.17-3.17a.996.996 0 1 0-1.41 1.41z" }) }));
|
|
4778
|
+
var ForwardRef492 = React65.forwardRef(Range);
|
|
4779
4779
|
ForwardRef492.category = "core";
|
|
4780
|
-
var
|
|
4781
|
-
var ForwardRef502 = React65.forwardRef(
|
|
4780
|
+
var Refresh = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "M17.65 6.35a7.95 7.95 0 0 0-6.48-2.31c-3.67.37-6.69 3.35-7.1 7.02C3.52 15.91 7.27 20 12 20a7.98 7.98 0 0 0 7.21-4.56c.32-.67-.16-1.44-.9-1.44-.37 0-.72.2-.88.53a5.994 5.994 0 0 1-6.8 3.31c-2.22-.49-4.01-2.3-4.48-4.52A6.002 6.002 0 0 1 12 6c1.66 0 3.14.69 4.22 1.78l-1.51 1.51c-.63.63-.19 1.71.7 1.71H19c.55 0 1-.45 1-1V6.41c0-.89-1.08-1.34-1.71-.71z" }) }));
|
|
4781
|
+
var ForwardRef502 = React65.forwardRef(Refresh);
|
|
4782
4782
|
ForwardRef502.category = "core";
|
|
4783
|
-
var
|
|
4784
|
-
var
|
|
4785
|
-
var ForwardRef512 = React65.forwardRef(RemoveCircle);
|
|
4783
|
+
var Remove = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1" }) }));
|
|
4784
|
+
var ForwardRef512 = React65.forwardRef(Remove);
|
|
4786
4785
|
ForwardRef512.category = "core";
|
|
4787
|
-
var
|
|
4788
|
-
var
|
|
4789
|
-
var ForwardRef522 = React65.forwardRef(
|
|
4786
|
+
var Remove_default = ForwardRef512;
|
|
4787
|
+
var RemoveCircle = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 11H8c-.55 0-1-.45-1-1s.45-1 1-1h8c.55 0 1 .45 1 1s-.45 1-1 1" }) }));
|
|
4788
|
+
var ForwardRef522 = React65.forwardRef(RemoveCircle);
|
|
4790
4789
|
ForwardRef522.category = "core";
|
|
4791
|
-
var
|
|
4792
|
-
var
|
|
4793
|
-
var ForwardRef532 = React65.forwardRef(
|
|
4790
|
+
var RemoveCircle_default = ForwardRef522;
|
|
4791
|
+
var RemoveCircleOutline = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "M7 12c0 .55.45 1 1 1h8c.55 0 1-.45 1-1s-.45-1-1-1H8c-.55 0-1 .45-1 1m5-10C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8" }) }));
|
|
4792
|
+
var ForwardRef532 = React65.forwardRef(RemoveCircleOutline);
|
|
4794
4793
|
ForwardRef532.category = "core";
|
|
4795
|
-
var
|
|
4796
|
-
var
|
|
4797
|
-
var ForwardRef542 = React65.forwardRef(
|
|
4794
|
+
var RemoveCircleOutline_default = ForwardRef532;
|
|
4795
|
+
var Search = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0s.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14" }) }));
|
|
4796
|
+
var ForwardRef542 = React65.forwardRef(Search);
|
|
4798
4797
|
ForwardRef542.category = "core";
|
|
4799
|
-
var
|
|
4800
|
-
var
|
|
4798
|
+
var Search_default = ForwardRef542;
|
|
4799
|
+
var Settings = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "M19.5 12c0-.23-.01-.45-.03-.68l1.86-1.41c.4-.3.51-.86.26-1.3l-1.87-3.23a.987.987 0 0 0-1.25-.42l-2.15.91c-.37-.26-.76-.49-1.17-.68l-.29-2.31c-.06-.5-.49-.88-.99-.88h-3.73c-.51 0-.94.38-1 .88l-.29 2.31c-.41.19-.8.42-1.17.68l-2.15-.91c-.46-.2-1-.02-1.25.42L2.41 8.62c-.25.44-.14.99.26 1.3l1.86 1.41a7.3 7.3 0 0 0 0 1.35l-1.86 1.41c-.4.3-.51.86-.26 1.3l1.87 3.23c.25.44.79.62 1.25.42l2.15-.91c.37.26.76.49 1.17.68l.29 2.31c.06.5.49.88.99.88h3.73c.5 0 .93-.38.99-.88l.29-2.31c.41-.19.8-.42 1.17-.68l2.15.91c.46.2 1 .02 1.25-.42l1.87-3.23c.25-.44.14-.99-.26-1.3l-1.86-1.41c.03-.23.04-.45.04-.68m-7.46 3.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5" }) }));
|
|
4800
|
+
var ForwardRef552 = React65.forwardRef(Settings);
|
|
4801
4801
|
ForwardRef552.category = "core";
|
|
4802
|
-
var
|
|
4803
|
-
var ForwardRef562 = React65.forwardRef(
|
|
4802
|
+
var StarBorder = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "m19.65 9.04-4.84-.42-1.89-4.45c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5 4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.73 3.67-3.18c.67-.58.32-1.68-.56-1.75M12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z" }) }));
|
|
4803
|
+
var ForwardRef562 = React65.forwardRef(StarBorder);
|
|
4804
4804
|
ForwardRef562.category = "core";
|
|
4805
|
-
var
|
|
4806
|
-
var ForwardRef572 = React65.forwardRef(
|
|
4805
|
+
var StarHalf = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "m19.65 9.04-4.84-.42-1.89-4.45c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5 4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.73 3.67-3.18c.67-.58.32-1.68-.56-1.75M12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z" }) }));
|
|
4806
|
+
var ForwardRef572 = React65.forwardRef(StarHalf);
|
|
4807
4807
|
ForwardRef572.category = "core";
|
|
4808
|
-
var
|
|
4809
|
-
var ForwardRef582 = React65.forwardRef(
|
|
4808
|
+
var StarRate = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "m11.957 17.498 4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0l-1.89 4.45-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08z" }) }));
|
|
4809
|
+
var ForwardRef582 = React65.forwardRef(StarRate);
|
|
4810
4810
|
ForwardRef582.category = "core";
|
|
4811
|
-
var
|
|
4812
|
-
var ForwardRef592 = React65.forwardRef(
|
|
4811
|
+
var User = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "M12 12a4.665 4.665 0 0 0 4.667-4.667A4.665 4.665 0 0 0 12 2.667a4.665 4.665 0 0 0-4.667 4.666A4.665 4.665 0 0 0 12 12m0-7a2.34 2.34 0 0 1 2.333 2.333A2.34 2.34 0 0 1 12 9.667a2.34 2.34 0 0 1-2.333-2.334A2.34 2.34 0 0 1 12 5m0 8.167c-3.115 0-9.333 1.563-9.333 4.666v2.334a1.17 1.17 0 0 0 1.166 1.166h16.334a1.17 1.17 0 0 0 1.166-1.166v-2.334c0-3.103-6.218-4.666-9.333-4.666M19 19H5v-1.155c.233-.84 3.85-2.345 7-2.345s6.767 1.505 7 2.333z" }) }));
|
|
4812
|
+
var ForwardRef592 = React65.forwardRef(User);
|
|
4813
4813
|
ForwardRef592.category = "core";
|
|
4814
|
-
var
|
|
4815
|
-
var
|
|
4816
|
-
var ForwardRef602 = React65.forwardRef(VisibilityOff);
|
|
4814
|
+
var Visibility = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3" }) }));
|
|
4815
|
+
var ForwardRef602 = React65.forwardRef(Visibility);
|
|
4817
4816
|
ForwardRef602.category = "core";
|
|
4818
|
-
var
|
|
4819
|
-
var
|
|
4820
|
-
var ForwardRef612 = React65.forwardRef(
|
|
4817
|
+
var Visibility_default = ForwardRef602;
|
|
4818
|
+
var VisibilityOff = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24M2.71 3.16a.996.996 0 0 0 0 1.41l1.97 1.97A11.9 11.9 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l2.72 2.72a.996.996 0 1 0 1.41-1.41L4.13 3.16c-.39-.39-1.03-.39-1.42 0M12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5m2.97-5.33a2.97 2.97 0 0 0-2.64-2.64z" }) }));
|
|
4819
|
+
var ForwardRef612 = React65.forwardRef(VisibilityOff);
|
|
4821
4820
|
ForwardRef612.category = "core";
|
|
4822
|
-
var
|
|
4823
|
-
var
|
|
4821
|
+
var VisibilityOff_default = ForwardRef612;
|
|
4822
|
+
var VolumeOff = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "M3.63 3.63a.996.996 0 0 0 0 1.41L7.29 8.7 7 9H4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h3l3.29 3.29c.63.63 1.71.18 1.71-.71v-4.17l4.18 4.18c-.49.37-1.02.68-1.6.91-.36.15-.58.53-.58.92 0 .72.73 1.18 1.39.91.8-.33 1.55-.77 2.22-1.31l1.34 1.34a.996.996 0 1 0 1.41-1.41L5.05 3.63c-.39-.39-1.02-.39-1.42 0M19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-3.83-2.4-7.11-5.78-8.4-.59-.23-1.22.23-1.22.86v.19c0 .38.25.71.61.85C17.18 6.54 19 9.06 19 12m-8.71-6.29-.17.17L12 7.76V6.41c0-.89-1.08-1.33-1.71-.7M16.5 12A4.5 4.5 0 0 0 14 7.97v1.79l2.48 2.48c.01-.08.02-.16.02-.24" }) }));
|
|
4823
|
+
var ForwardRef622 = React65.forwardRef(VolumeOff);
|
|
4824
4824
|
ForwardRef622.category = "core";
|
|
4825
|
+
var VolumeUp = (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, { fill: props.color || "currentColor" }), { viewBox: "0 0 24 24", ref }), props), { children: /* @__PURE__ */ jsxRuntime.jsx(Svg.Path, { d: "M3 10v4c0 .55.45 1 1 1h3l3.29 3.29c.63.63 1.71.18 1.71-.71V6.41c0-.89-1.08-1.34-1.71-.71L7 9H4c-.55 0-1 .45-1 1m13.5 2A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 4.45v.2c0 .38.25.71.6.85A7 7 0 0 1 19 12c0 2.94-1.82 5.47-4.4 6.5-.36.14-.6.47-.6.85v.2c0 .63.63 1.07 1.21.85A8.98 8.98 0 0 0 21 12c0-3.84-2.4-7.11-5.79-8.4-.58-.23-1.21.22-1.21.85" }) }));
|
|
4826
|
+
var ForwardRef632 = React65.forwardRef(VolumeUp);
|
|
4827
|
+
ForwardRef632.category = "core";
|
|
4825
4828
|
var parseTokenValue12 = (value) => parseFloat(value);
|
|
4826
4829
|
var StyledInputWrapper = styled50__default.default(reactNative.Animated.View)(({ theme: theme2, isDisabled, containerWidth, containerHeight }) => {
|
|
4827
4830
|
const { spacing, colour, borderRadius, size } = theme2.tokens.components.inputs;
|
|
@@ -8892,12 +8895,17 @@ var StyledPanel2 = styled50__default.default(reactNative.View)(
|
|
|
8892
8895
|
panelShadowColor,
|
|
8893
8896
|
panelShadowOffsetY,
|
|
8894
8897
|
panelShadowBlur,
|
|
8895
|
-
|
|
8896
|
-
}) =>
|
|
8898
|
+
panelMaxHeight
|
|
8899
|
+
}) => ({
|
|
8897
8900
|
width: "100%",
|
|
8898
8901
|
maxWidth: panelMaxWidth,
|
|
8899
|
-
|
|
8900
|
-
|
|
8902
|
+
// The panel wraps its content and caps at maxHeight. It is intentionally
|
|
8903
|
+
// NOT given a fixed height: letting it size to content means it re-fits
|
|
8904
|
+
// automatically whenever the body grows or shrinks (async load, expanding
|
|
8905
|
+
// sections). The body's own maxHeight (see DrawerBody) bounds scrolling and
|
|
8906
|
+
// keeps the ScrollView from collapsing, so no fixed panel height is needed.
|
|
8907
|
+
maxHeight: panelMaxHeight,
|
|
8908
|
+
alignSelf: "center",
|
|
8901
8909
|
borderTopLeftRadius: panelBorderRadius,
|
|
8902
8910
|
borderTopRightRadius: panelBorderRadius,
|
|
8903
8911
|
borderTopWidth: panelBorderWidth,
|
|
@@ -8933,19 +8941,12 @@ var DrawerContent = React65__default.default.forwardRef(
|
|
|
8933
8941
|
const entryRanRef = React65.useRef(false);
|
|
8934
8942
|
const isOpenRef = React65.useRef(isOpen);
|
|
8935
8943
|
const activeAnim = React65.useRef(null);
|
|
8936
|
-
const [panelHeight, setPanelHeight] = React65.useState(0);
|
|
8937
8944
|
React65.useEffect(() => {
|
|
8938
8945
|
const id = translateY.addListener(({ value }) => {
|
|
8939
8946
|
translateYValue.current = value;
|
|
8940
8947
|
});
|
|
8941
8948
|
return () => translateY.removeListener(id);
|
|
8942
8949
|
}, [translateY]);
|
|
8943
|
-
React65.useEffect(() => {
|
|
8944
|
-
if (panelHeightRef.current > 0 && panelHeightRef.current > maxHeight) {
|
|
8945
|
-
setPanelHeight(maxHeight);
|
|
8946
|
-
panelHeightRef.current = maxHeight;
|
|
8947
|
-
}
|
|
8948
|
-
}, [maxHeight]);
|
|
8949
8950
|
const runEntry = React65.useCallback(() => {
|
|
8950
8951
|
var _a3;
|
|
8951
8952
|
if (panelHeightRef.current === 0) return;
|
|
@@ -8996,12 +8997,9 @@ var DrawerContent = React65__default.default.forwardRef(
|
|
|
8996
8997
|
({ nativeEvent }) => {
|
|
8997
8998
|
const h = nativeEvent.layout.height;
|
|
8998
8999
|
const capped = Math.min(h, maxHeight);
|
|
8999
|
-
if (capped
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
}
|
|
9003
|
-
if (isOpenRef.current && !entryRanRef.current && capped > 0) {
|
|
9004
|
-
panelHeightRef.current = capped;
|
|
9000
|
+
if (capped <= 0) return;
|
|
9001
|
+
panelHeightRef.current = capped;
|
|
9002
|
+
if (isOpenRef.current && !entryRanRef.current) {
|
|
9005
9003
|
runEntry();
|
|
9006
9004
|
}
|
|
9007
9005
|
},
|
|
@@ -9077,11 +9075,7 @@ var DrawerContent = React65__default.default.forwardRef(
|
|
|
9077
9075
|
return /* @__PURE__ */ jsxRuntime.jsx(DrawerHeaderContext.Provider, { value: headerContextValue, children: /* @__PURE__ */ jsxRuntime.jsx(DrawerFooterContext.Provider, { value: hasFooter, children: /* @__PURE__ */ jsxRuntime.jsx(DrawerDragContext.Provider, { value: dragContextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9078
9076
|
reactNative.Animated.View,
|
|
9079
9077
|
{
|
|
9080
|
-
style: [
|
|
9081
|
-
styles.animatedWrapper,
|
|
9082
|
-
panelHeight > 0 ? { height: panelHeight } : void 0,
|
|
9083
|
-
{ transform: [{ translateY }] }
|
|
9084
|
-
],
|
|
9078
|
+
style: [styles.animatedWrapper, { transform: [{ translateY }] }],
|
|
9085
9079
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9086
9080
|
StyledPanel2,
|
|
9087
9081
|
__spreadProps(__spreadValues({
|
|
@@ -9090,7 +9084,7 @@ var DrawerContent = React65__default.default.forwardRef(
|
|
|
9090
9084
|
panelBorderRadius: parseTokenValue22(drawer.borderRadius.top),
|
|
9091
9085
|
panelBgColor: colour.background.container.default,
|
|
9092
9086
|
panelMaxWidth: parseTokenValue22(drawer.size.maxWidth),
|
|
9093
|
-
|
|
9087
|
+
panelMaxHeight: maxHeight,
|
|
9094
9088
|
panelBorderWidth: parseTokenValue22(dimensions3.borderWidth.sm),
|
|
9095
9089
|
panelBorderColor: colour.border.default,
|
|
9096
9090
|
panelShadowColor: modal.shadow.color,
|
|
@@ -11041,6 +11035,9 @@ var StyledIndicator2 = styled50__default.default(reactNative.View)(({ indicatorS
|
|
|
11041
11035
|
backgroundColor: indicatorBgColor
|
|
11042
11036
|
}));
|
|
11043
11037
|
var StyledTextContent = styled50__default.default(reactNative.View)(({ textContentGap }) => ({
|
|
11038
|
+
// Take the row's remaining width so long label/subText wraps within the tile
|
|
11039
|
+
// instead of pushing the trailing asset past the tile's edge.
|
|
11040
|
+
flex: 1,
|
|
11044
11041
|
flexDirection: "column",
|
|
11045
11042
|
gap: textContentGap
|
|
11046
11043
|
}));
|
|
@@ -13691,29 +13688,32 @@ function defaultGetDateState(date) {
|
|
|
13691
13688
|
function getDefaultMonthLabel(year, month, locale) {
|
|
13692
13689
|
return dateFns.format(new Date(year, month, 1), "MMMM yyyy", { locale });
|
|
13693
13690
|
}
|
|
13694
|
-
var StyledContainer3 = styled50__default.default(reactNative.View)(({
|
|
13691
|
+
var StyledContainer3 = styled50__default.default(reactNative.View)(({ containerMaxWidth }) => ({
|
|
13695
13692
|
flexDirection: "column",
|
|
13696
|
-
|
|
13693
|
+
// Fill the parent by default (capped by maxWidth) so consumers don't need a
|
|
13694
|
+
// wrapper. Overridable via the `style` prop.
|
|
13695
|
+
width: "100%",
|
|
13697
13696
|
maxWidth: containerMaxWidth
|
|
13698
13697
|
}));
|
|
13699
13698
|
var StyledMonthHeader = styled50__default.default(reactNative.View)(
|
|
13700
|
-
({ headerGap }) => ({
|
|
13699
|
+
({ headerGap, datesGap }) => ({
|
|
13701
13700
|
flexDirection: "row",
|
|
13702
13701
|
alignItems: "center",
|
|
13703
|
-
gap: headerGap
|
|
13702
|
+
gap: headerGap,
|
|
13703
|
+
// Gap between the month header and the dates grid.
|
|
13704
|
+
marginBottom: datesGap
|
|
13704
13705
|
})
|
|
13705
13706
|
);
|
|
13706
|
-
var StyledWeekRow = styled50__default.default(reactNative.View)({
|
|
13707
|
-
flexDirection: "row"
|
|
13707
|
+
var StyledWeekRow = styled50__default.default(reactNative.View)(({ weekGap }) => ({
|
|
13708
|
+
flexDirection: "row",
|
|
13709
|
+
// Gap between the week-day header and the month header.
|
|
13710
|
+
marginBottom: weekGap
|
|
13711
|
+
}));
|
|
13712
|
+
var StyledWeekCell = styled50__default.default(reactNative.View)({
|
|
13713
|
+
flex: 1,
|
|
13714
|
+
alignItems: "center",
|
|
13715
|
+
justifyContent: "center"
|
|
13708
13716
|
});
|
|
13709
|
-
var StyledWeekCell = styled50__default.default(reactNative.View)(
|
|
13710
|
-
({ cellHeight }) => ({
|
|
13711
|
-
flex: 1,
|
|
13712
|
-
alignItems: "center",
|
|
13713
|
-
justifyContent: "center",
|
|
13714
|
-
height: cellHeight
|
|
13715
|
-
})
|
|
13716
|
-
);
|
|
13717
13717
|
var StyledDatesGrid = styled50__default.default(reactNative.View)(({ rowGap }) => ({
|
|
13718
13718
|
flexDirection: "column",
|
|
13719
13719
|
gap: rowGap
|
|
@@ -13795,7 +13795,8 @@ var DatePicker = React65__default.default.forwardRef(
|
|
|
13795
13795
|
const dt = datePicker.dateItem;
|
|
13796
13796
|
const [slideDir, setSlideDir] = React65.useState("forward");
|
|
13797
13797
|
const {
|
|
13798
|
-
|
|
13798
|
+
weekGap,
|
|
13799
|
+
datesGap,
|
|
13799
13800
|
containerMaxWidth,
|
|
13800
13801
|
headerGap,
|
|
13801
13802
|
cellHeight,
|
|
@@ -13806,7 +13807,10 @@ var DatePicker = React65__default.default.forwardRef(
|
|
|
13806
13807
|
rowGap
|
|
13807
13808
|
} = React65.useMemo(
|
|
13808
13809
|
() => ({
|
|
13809
|
-
|
|
13810
|
+
// Gap between the week-day header and the month header.
|
|
13811
|
+
weekGap: parseTokenValue52(datePicker.spacing.gap),
|
|
13812
|
+
// Gap between the month header and the dates grid.
|
|
13813
|
+
datesGap: parseTokenValue52(theme2.tokens.semantics.dimensions.spacing.md),
|
|
13810
13814
|
containerMaxWidth: parseTokenValue52(dt.size.width) * 7,
|
|
13811
13815
|
headerGap: parseTokenValue52(datePicker.month.spacing.gap),
|
|
13812
13816
|
cellHeight: parseTokenValue52(dt.size.height),
|
|
@@ -13816,7 +13820,7 @@ var DatePicker = React65__default.default.forwardRef(
|
|
|
13816
13820
|
disabledOpacity: parseTokenValue52(dt.opacity.disabled),
|
|
13817
13821
|
rowGap: parseTokenValue52(datePicker.dates.spacing.gap)
|
|
13818
13822
|
}),
|
|
13819
|
-
[datePicker, dt]
|
|
13823
|
+
[datePicker, dt, theme2]
|
|
13820
13824
|
);
|
|
13821
13825
|
const resolvedGetDateState = React65.useCallback(
|
|
13822
13826
|
(date) => {
|
|
@@ -13926,11 +13930,10 @@ var DatePicker = React65__default.default.forwardRef(
|
|
|
13926
13930
|
StyledContainer3,
|
|
13927
13931
|
__spreadProps(__spreadValues({
|
|
13928
13932
|
ref,
|
|
13929
|
-
containerGap,
|
|
13930
13933
|
containerMaxWidth
|
|
13931
13934
|
}, rest), {
|
|
13932
13935
|
children: [
|
|
13933
|
-
showWeekHeader && /* @__PURE__ */ jsxRuntime.jsx(StyledWeekRow, { accessibilityElementsHidden: true, children: weekDayLabels.map((label) => /* @__PURE__ */ jsxRuntime.jsx(StyledWeekCell, {
|
|
13936
|
+
showWeekHeader && /* @__PURE__ */ jsxRuntime.jsx(StyledWeekRow, { weekGap, accessibilityElementsHidden: true, children: weekDayLabels.map((label) => /* @__PURE__ */ jsxRuntime.jsx(StyledWeekCell, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13934
13937
|
Typography,
|
|
13935
13938
|
{
|
|
13936
13939
|
token: datePicker.week.typography,
|
|
@@ -13939,13 +13942,13 @@ var DatePicker = React65__default.default.forwardRef(
|
|
|
13939
13942
|
children: label
|
|
13940
13943
|
}
|
|
13941
13944
|
) }, label)) }),
|
|
13942
|
-
/* @__PURE__ */ jsxRuntime.jsxs(StyledMonthHeader, { headerGap, children: [
|
|
13945
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StyledMonthHeader, { headerGap, datesGap, children: [
|
|
13943
13946
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: { opacity: showPrevControl ? 1 : 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13944
13947
|
IconButton,
|
|
13945
13948
|
{
|
|
13946
13949
|
icon: KeyboardArrowLeft_default,
|
|
13947
13950
|
variant: "filled",
|
|
13948
|
-
size: "
|
|
13951
|
+
size: "md",
|
|
13949
13952
|
colour: "primary",
|
|
13950
13953
|
"aria-label": "Previous month",
|
|
13951
13954
|
onPress: showPrevControl ? handlePrevMonth : void 0,
|
|
@@ -13966,7 +13969,7 @@ var DatePicker = React65__default.default.forwardRef(
|
|
|
13966
13969
|
{
|
|
13967
13970
|
icon: KeyboardArrowRight_default,
|
|
13968
13971
|
variant: "filled",
|
|
13969
|
-
size: "
|
|
13972
|
+
size: "md",
|
|
13970
13973
|
colour: "primary",
|
|
13971
13974
|
"aria-label": "Next month",
|
|
13972
13975
|
onPress: showNextControl ? handleNextMonth : void 0,
|