smoothly 0.1.82 → 0.1.83

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.
@@ -33,12 +33,12 @@ function months(current) {
33
33
  const day = new globalThis.Date(current);
34
34
  const result = [];
35
35
  for (let i = 0; i < 12; i++) {
36
- day.setMonth(i);
36
+ day.setMonth(i, 28);
37
37
  const date = index.dist.Date.create(day);
38
38
  result.push({
39
39
  date,
40
40
  name: day.toLocaleString(undefined, { month: "long" }),
41
- selected: date == current,
41
+ selected: date.substr(0, 7) == current.substr(0, 7),
42
42
  });
43
43
  }
44
44
  return result;
@@ -18754,12 +18754,12 @@ function months(current) {
18754
18754
  const day = new globalThis.Date(current);
18755
18755
  const result = [];
18756
18756
  for (let i = 0; i < 12; i++) {
18757
- day.setMonth(i);
18757
+ day.setMonth(i, 28);
18758
18758
  const date = dist$4.Date.create(day);
18759
18759
  result.push({
18760
18760
  date,
18761
18761
  name: day.toLocaleString(undefined, { month: "long" }),
18762
- selected: date == current,
18762
+ selected: date.substr(0, 7) == current.substr(0, 7),
18763
18763
  });
18764
18764
  }
18765
18765
  return result;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-138c41c2.js');
6
6
  const index$1 = require('./index-fc82954f.js');
7
- const generate = require('./generate-14aca5d2.js');
7
+ const generate = require('./generate-a6821b82.js');
8
8
  require('./_commonjsHelpers-10109b76.js');
9
9
 
10
10
  const styleCss = ".sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{width:calc(100% - 1em);padding:0.5em 0.5em 0 0.5em}th.sc-smoothly-calendar,td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;background-color:rgb(var(--smoothly-default-shade));cursor:pointer;user-select:none}td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:nth-child(6),td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-danger-tint))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-danger-tint), var(--other-month-opacity))}td.sc-smoothly-calendar:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}td.sc-smoothly-calendar:not(.selected,.dateRange).sc-smoothly-calendar:not(:hover).today{background:rgb(var(--smoothly-dark-tint));color:rgb(var(--smoothly-dark-contrast))}td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.disable.sc-smoothly-calendar{cursor:not-allowed;background-color:rgb(var(--smoothly-default-tint), 0.5);color:rgb(var(--smoothly-default-contrast), 0.5)}";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-138c41c2.js');
6
6
  const index$1 = require('./index-fc82954f.js');
7
- const generate = require('./generate-14aca5d2.js');
7
+ const generate = require('./generate-a6821b82.js');
8
8
  require('./_commonjsHelpers-10109b76.js');
9
9
 
10
10
  const styleCss = ".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}smoothly-icon.sc-smoothly-input-month{font-size:smaller}";
@@ -30,12 +30,12 @@ export function months(current) {
30
30
  const day = new globalThis.Date(current);
31
31
  const result = [];
32
32
  for (let i = 0; i < 12; i++) {
33
- day.setMonth(i);
33
+ day.setMonth(i, 28);
34
34
  const date = isoly.Date.create(day);
35
35
  result.push({
36
36
  date,
37
37
  name: day.toLocaleString(undefined, { month: "long" }),
38
- selected: date == current,
38
+ selected: date.substr(0, 7) == current.substr(0, 7),
39
39
  });
40
40
  }
41
41
  return result;
@@ -21267,12 +21267,12 @@ function months(current) {
21267
21267
  const day = new globalThis.Date(current);
21268
21268
  const result = [];
21269
21269
  for (let i = 0; i < 12; i++) {
21270
- day.setMonth(i);
21270
+ day.setMonth(i, 28);
21271
21271
  const date = dist$4.Date.create(day);
21272
21272
  result.push({
21273
21273
  date,
21274
21274
  name: day.toLocaleString(undefined, { month: "long" }),
21275
- selected: date == current,
21275
+ selected: date.substr(0, 7) == current.substr(0, 7),
21276
21276
  });
21277
21277
  }
21278
21278
  return result;
@@ -31,12 +31,12 @@ function months(current) {
31
31
  const day = new globalThis.Date(current);
32
32
  const result = [];
33
33
  for (let i = 0; i < 12; i++) {
34
- day.setMonth(i);
34
+ day.setMonth(i, 28);
35
35
  const date = dist.Date.create(day);
36
36
  result.push({
37
37
  date,
38
38
  name: day.toLocaleString(undefined, { month: "long" }),
39
- selected: date == current,
39
+ selected: date.substr(0, 7) == current.substr(0, 7),
40
40
  });
41
41
  }
42
42
  return result;
@@ -18750,12 +18750,12 @@ function months(current) {
18750
18750
  const day = new globalThis.Date(current);
18751
18751
  const result = [];
18752
18752
  for (let i = 0; i < 12; i++) {
18753
- day.setMonth(i);
18753
+ day.setMonth(i, 28);
18754
18754
  const date = dist$4.Date.create(day);
18755
18755
  result.push({
18756
18756
  date,
18757
18757
  name: day.toLocaleString(undefined, { month: "long" }),
18758
- selected: date == current,
18758
+ selected: date.substr(0, 7) == current.substr(0, 7),
18759
18759
  });
18760
18760
  }
18761
18761
  return result;
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, i as createEvent, h, j as getElement } from './index-02a70ac1.js';
2
2
  import { d as dist } from './index-a28d88cf.js';
3
- import { w as weekdays, m as month } from './generate-be25a8d1.js';
3
+ import { w as weekdays, m as month } from './generate-776b3b0f.js';
4
4
  import './_commonjsHelpers-8fe71198.js';
5
5
 
6
6
  const styleCss = ".sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{width:calc(100% - 1em);padding:0.5em 0.5em 0 0.5em}th.sc-smoothly-calendar,td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;background-color:rgb(var(--smoothly-default-shade));cursor:pointer;user-select:none}td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:nth-child(6),td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-danger-tint))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-danger-tint), var(--other-month-opacity))}td.sc-smoothly-calendar:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}td.sc-smoothly-calendar:not(.selected,.dateRange).sc-smoothly-calendar:not(:hover).today{background:rgb(var(--smoothly-dark-tint));color:rgb(var(--smoothly-dark-contrast))}td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.disable.sc-smoothly-calendar{cursor:not-allowed;background-color:rgb(var(--smoothly-default-tint), 0.5);color:rgb(var(--smoothly-default-contrast), 0.5)}";
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, i as createEvent, h } from './index-02a70ac1.js';
2
2
  import { d as dist } from './index-a28d88cf.js';
3
- import { y as years, a as months } from './generate-be25a8d1.js';
3
+ import { y as years, a as months } from './generate-776b3b0f.js';
4
4
  import './_commonjsHelpers-8fe71198.js';
5
5
 
6
6
  const styleCss = ".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}smoothly-icon.sc-smoothly-input-month{font-size:smaller}";
@@ -31,12 +31,12 @@ function months(current) {
31
31
  const day = new globalThis.Date(current);
32
32
  const result = [];
33
33
  for (let i = 0; i < 12; i++) {
34
- day.setMonth(i);
34
+ day.setMonth(i, 28);
35
35
  const date = dist.Date.create(day);
36
36
  result.push({
37
37
  date,
38
38
  name: day.toLocaleString(undefined, { month: "long" }),
39
- selected: date == current,
39
+ selected: date.substr(0, 7) == current.substr(0, 7),
40
40
  });
41
41
  }
42
42
  return result;