@plastic-js/tsumiki 0.1.72 → 0.1.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.
@@ -35,6 +35,11 @@ var formatDateLabel = (date) => {
35
35
  if (!date) return "";
36
36
  return `${MONTH_NAMES_SHORT[date.getMonth()]} ${date.getDate()}, ${date.getFullYear()}`;
37
37
  };
38
+ var toISO = (date) => {
39
+ const m = String(date.getMonth() + 1).padStart(2, "0");
40
+ const d = String(date.getDate()).padStart(2, "0");
41
+ return `${date.getFullYear()}-${m}-${d}`;
42
+ };
38
43
  var parseDate = (v) => {
39
44
  if (!v) return null;
40
45
  if (v instanceof Date) return isNaN(v.getTime()) ? null : v;
@@ -331,7 +336,7 @@ var DatePicker = (props = {}) => {
331
336
  const confirm = () => {
332
337
  const date = toDate(tempYear(), tempMonth(), tempDay());
333
338
  selectedValue(date);
334
- local.onValueChange?.(date);
339
+ local.onValueChange?.(toISO(date));
335
340
  closeSheet();
336
341
  };
337
342
  const cancel = () => {
@@ -130,7 +130,7 @@ var footerClass = css({
130
130
  padding: "var(--tsu-container-padding-lg)",
131
131
  flexShrink: 0
132
132
  });
133
- var footerSheetClass = css({ paddingBottom: "calc(var(--tsu-container-padding-lg) + env(safe-area-inset-bottom, 0px))" });
133
+ var footerSheetClass = css({ paddingBottom: "max(var(--tsu-container-padding-lg), env(safe-area-inset-bottom, 0px))" });
134
134
  var footerBtnClass = css({
135
135
  display: "flex",
136
136
  gap: "20px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plastic-js/tsumiki",
3
- "version": "0.1.72",
3
+ "version": "0.1.74",
4
4
  "description": "A UI component library for Plastic JS.",
5
5
  "license": "MIT",
6
6
  "author": "tigre",