@semcore/date-picker 16.1.6 → 16.1.7-prerelease.1

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.
@@ -25,39 +25,39 @@ var style = (
25
25
  /*__reshadow_css_start__*/
26
26
  (sstyled.insert(
27
27
  /*__inner_css_start__*/
28
- ".___SPopper_9jcps_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_9jcps_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_9jcps_gg_:active,.___SPopper_9jcps_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_9jcps_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_9jcps_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_9jcps_gg_,.___STitle_9jcps_gg_{display:flex;align-items:center}.___STitle_9jcps_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_9jcps_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_9jcps_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_9jcps_gg_ .___SInner_9jcps_gg_{justify-content:flex-start}.___SInputMask_9jcps_gg_{color:var(--intergalactic-text-primary, #191b23);line-height:normal;padding-right:var(--intergalactic-spacing-2x, 8px);transition:width calc(var(--intergalactic-duration-medium, 300)*1ms) ease,min-width calc(var(--intergalactic-duration-medium, 300)*1ms) ease}.___SInputMask_9jcps_gg_.__animationsDisabled_9jcps_gg_{transition:none}.___SInputMask_9jcps_gg_ .___SValue_9jcps_gg_{letter-spacing:0}.___SIndicator_9jcps_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SRangeIndicator_9jcps_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_9jcps_gg_._range_value_9jcps_gg_{background-color:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SRangeIndicator_9jcps_gg_._range_compare_9jcps_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, #8649e1)}.___SRangeIndicator_9jcps_gg_.__disabled_9jcps_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SHumanizedDate_9jcps_gg_{position:absolute;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.___SMask_9jcps_gg_{letter-spacing:0;white-space:nowrap;overflow:hidden}.___SDateRange_9jcps_gg_ .___SMask_9jcps_gg_,.___SDateRange_9jcps_gg_ .___SValue_9jcps_gg_,.___SSingleDateInput_9jcps_gg_ .___SMask_9jcps_gg_,.___SSingleDateInput_9jcps_gg_ .___SValue_9jcps_gg_{opacity:0}.___SSingleDateInput_9jcps_gg_:focus-within .___SHumanizedDate_9jcps_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_9jcps_gg_:focus-within .___SMask_9jcps_gg_,.___SSingleDateInput_9jcps_gg_:focus-within .___SValue_9jcps_gg_{opacity:1}.___SDateRange_9jcps_gg_:focus-within .___SHumanizedDate_9jcps_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_9jcps_gg_:focus-within .___SMask_9jcps_gg_,.___SDateRange_9jcps_gg_:focus-within .___SValue_9jcps_gg_{opacity:1}.___SInputMask_9jcps_gg_.__noHumanizedDate_9jcps_gg_ .___SMask_9jcps_gg_,.___SInputMask_9jcps_gg_.__noHumanizedDate_9jcps_gg_ .___SValue_9jcps_gg_{opacity:1}.___SDateRange_9jcps_gg_ .___SInputMask_9jcps_gg_:focus-within .___SMask_9jcps_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_9jcps_gg_:focus-within .___SRangeSep_9jcps_gg_,.___SRangeSep_9jcps_gg_.__fulfilled_9jcps_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SRangeComparatorHeader_9jcps_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SRangeCalendar_9jcps_gg_,.___SRangeComparatorHeader_9jcps_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_9jcps_gg_{border-top:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SFooter_9jcps_gg_,.___SPeriodsList_9jcps_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___STooltip_9jcps_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SCompareToggle_9jcps_gg_{white-space:nowrap}@media (prefers-reduced-motion){.___SInputMask_9jcps_gg_{transition:none}}",
28
+ ".___SPopper_hdapw_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_hdapw_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_hdapw_gg_:active,.___SPopper_hdapw_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_hdapw_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_hdapw_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_hdapw_gg_,.___STitle_hdapw_gg_{display:flex;align-items:center}.___STitle_hdapw_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_hdapw_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_hdapw_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_hdapw_gg_ .___SInner_hdapw_gg_{justify-content:flex-start}.___SInputMask_hdapw_gg_{color:var(--intergalactic-text-primary, #191b23);line-height:normal;padding-right:var(--intergalactic-spacing-2x, 8px);transition:width calc(var(--intergalactic-duration-medium, 300)*1ms) ease,min-width calc(var(--intergalactic-duration-medium, 300)*1ms) ease}.___SInputMask_hdapw_gg_.__animationsDisabled_hdapw_gg_{transition:none}.___SInputMask_hdapw_gg_ .___SValue_hdapw_gg_{letter-spacing:0}.___SIndicator_hdapw_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SRangeIndicator_hdapw_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_hdapw_gg_._range_value_hdapw_gg_{background-color:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SRangeIndicator_hdapw_gg_._range_compare_hdapw_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, #8649e1)}.___SRangeIndicator_hdapw_gg_.__disabled_hdapw_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SHumanizedDate_hdapw_gg_{position:absolute;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.___SMask_hdapw_gg_{letter-spacing:0;white-space:nowrap;overflow:hidden}.___SDateRange_hdapw_gg_ .___SMask_hdapw_gg_,.___SDateRange_hdapw_gg_ .___SValue_hdapw_gg_,.___SSingleDateInput_hdapw_gg_ .___SMask_hdapw_gg_,.___SSingleDateInput_hdapw_gg_ .___SValue_hdapw_gg_{opacity:0}.___SSingleDateInput_hdapw_gg_:focus-within .___SHumanizedDate_hdapw_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdapw_gg_:focus-within .___SMask_hdapw_gg_,.___SSingleDateInput_hdapw_gg_:focus-within .___SValue_hdapw_gg_{opacity:1}.___SDateRange_hdapw_gg_:focus-within .___SHumanizedDate_hdapw_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdapw_gg_:focus-within .___SMask_hdapw_gg_,.___SDateRange_hdapw_gg_:focus-within .___SValue_hdapw_gg_{opacity:1}.___SInputMask_hdapw_gg_.__noHumanizedDate_hdapw_gg_ .___SMask_hdapw_gg_,.___SInputMask_hdapw_gg_.__noHumanizedDate_hdapw_gg_ .___SValue_hdapw_gg_{opacity:1}.___SDateRange_hdapw_gg_ .___SInputMask_hdapw_gg_:focus-within .___SMask_hdapw_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdapw_gg_:focus-within .___SRangeSep_hdapw_gg_,.___SRangeSep_hdapw_gg_.__fulfilled_hdapw_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SRangeComparatorHeader_hdapw_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SRangeCalendar_hdapw_gg_,.___SRangeComparatorHeader_hdapw_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_hdapw_gg_{border-top:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SFooter_hdapw_gg_,.___SPeriodsList_hdapw_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___STooltip_hdapw_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SCompareToggle_hdapw_gg_{white-space:nowrap}@media (prefers-reduced-motion){.___SInputMask_hdapw_gg_{transition:none}}",
29
29
  /*__inner_css_end__*/
30
- "9jcps_gg_"
30
+ "hdapw_gg_"
31
31
  ), /*__reshadow_css_end__*/
32
32
  {
33
- "__SHeader": "___SHeader_9jcps_gg_",
34
- "__STitle": "___STitle_9jcps_gg_",
35
- "__SToday": "___SToday_9jcps_gg_",
36
- "__SPeriod": "___SPeriod_9jcps_gg_",
37
- "__SButton": "___SButton_9jcps_gg_",
38
- "__SInner": "___SInner_9jcps_gg_",
39
- "__SInputMask": "___SInputMask_9jcps_gg_",
40
- "_animationsDisabled": "__animationsDisabled_9jcps_gg_",
41
- "__SValue": "___SValue_9jcps_gg_",
42
- "__SIndicator": "___SIndicator_9jcps_gg_",
43
- "__SRangeIndicator": "___SRangeIndicator_9jcps_gg_",
44
- "_range_value": "_range_value_9jcps_gg_",
45
- "_range_compare": "_range_compare_9jcps_gg_",
46
- "_disabled": "__disabled_9jcps_gg_",
47
- "__SHumanizedDate": "___SHumanizedDate_9jcps_gg_",
48
- "__SMask": "___SMask_9jcps_gg_",
49
- "__SSingleDateInput": "___SSingleDateInput_9jcps_gg_",
50
- "__SDateRange": "___SDateRange_9jcps_gg_",
51
- "_noHumanizedDate": "__noHumanizedDate_9jcps_gg_",
52
- "__SRangeSep": "___SRangeSep_9jcps_gg_",
53
- "_fulfilled": "__fulfilled_9jcps_gg_",
54
- "__SRangeComparatorHeader": "___SRangeComparatorHeader_9jcps_gg_",
55
- "__SRangeCalendar": "___SRangeCalendar_9jcps_gg_",
56
- "__SFooter": "___SFooter_9jcps_gg_",
57
- "__SPeriodsList": "___SPeriodsList_9jcps_gg_",
58
- "__STooltip": "___STooltip_9jcps_gg_",
59
- "__SCompareToggle": "___SCompareToggle_9jcps_gg_",
60
- "__SPopper": "___SPopper_9jcps_gg_"
33
+ "__SHeader": "___SHeader_hdapw_gg_",
34
+ "__STitle": "___STitle_hdapw_gg_",
35
+ "__SToday": "___SToday_hdapw_gg_",
36
+ "__SPeriod": "___SPeriod_hdapw_gg_",
37
+ "__SButton": "___SButton_hdapw_gg_",
38
+ "__SInner": "___SInner_hdapw_gg_",
39
+ "__SInputMask": "___SInputMask_hdapw_gg_",
40
+ "_animationsDisabled": "__animationsDisabled_hdapw_gg_",
41
+ "__SValue": "___SValue_hdapw_gg_",
42
+ "__SIndicator": "___SIndicator_hdapw_gg_",
43
+ "__SRangeIndicator": "___SRangeIndicator_hdapw_gg_",
44
+ "_range_value": "_range_value_hdapw_gg_",
45
+ "_range_compare": "_range_compare_hdapw_gg_",
46
+ "_disabled": "__disabled_hdapw_gg_",
47
+ "__SHumanizedDate": "___SHumanizedDate_hdapw_gg_",
48
+ "__SMask": "___SMask_hdapw_gg_",
49
+ "__SSingleDateInput": "___SSingleDateInput_hdapw_gg_",
50
+ "__SDateRange": "___SDateRange_hdapw_gg_",
51
+ "_noHumanizedDate": "__noHumanizedDate_hdapw_gg_",
52
+ "__SRangeSep": "___SRangeSep_hdapw_gg_",
53
+ "_fulfilled": "__fulfilled_hdapw_gg_",
54
+ "__SRangeComparatorHeader": "___SRangeComparatorHeader_hdapw_gg_",
55
+ "__SRangeCalendar": "___SRangeCalendar_hdapw_gg_",
56
+ "__SFooter": "___SFooter_hdapw_gg_",
57
+ "__SPeriodsList": "___SPeriodsList_hdapw_gg_",
58
+ "__STooltip": "___STooltip_hdapw_gg_",
59
+ "__SCompareToggle": "___SCompareToggle_hdapw_gg_",
60
+ "__SPopper": "___SPopper_hdapw_gg_"
61
61
  })
62
62
  );
63
63
  var INTERACTION_TAGS = ["INPUT"];
@@ -37,13 +37,9 @@ export type CalendarProps = BoxProps & {
37
37
  * Array of dates blocked for selection
38
38
  */
39
39
  disabled?: DisabledDates;
40
- /**
41
- * @ignore
42
- * */
40
+ /** Internal */
43
41
  highlighted?: DateConstructorParams[];
44
- /**
45
- * @ignore
46
- * */
42
+ /** Internal */
47
43
  onHighlightedChange?: (date: Date[]) => void;
48
44
  /**
49
45
  * The selected date, accepts everything which is accepted by `new Date()`
@@ -58,7 +54,7 @@ export type CalendarProps = BoxProps & {
58
54
  * @default new Date()
59
55
  * */
60
56
  displayedPeriod?: Date;
61
-
57
+ /** Controls whether to render dates from previous/next months */
62
58
  renderOutdated?: boolean;
63
59
  };
64
60
 
@@ -77,16 +73,27 @@ export type CalendarMonthsContext = {
77
73
  /** @deprecated */
78
74
  export interface ICalendarUnitProps extends CalendarUnitProps, UnknownProperties {}
79
75
  export type CalendarUnitProps = BoxProps & {
76
+ /** Indicates if the calendar unit is part of a selected date range */
80
77
  selected?: boolean;
78
+ /** Marks units from previous/next months that appear in the current month view */
81
79
  outdated?: boolean;
80
+ /** Prevents interaction with the unit */
82
81
  disabled?: boolean;
82
+ /** Highlights the current date */
83
83
  today?: boolean;
84
+ /** Marks the beginning of a selected date range */
84
85
  startSelected?: boolean;
86
+ /** Marks the end of a selected date range */
85
87
  endSelected?: boolean;
88
+ /** Shows preview highlighting during range selection */
86
89
  highlighted?: boolean;
90
+ /** Marks the start of a highlighted range */
87
91
  startHighlighted?: boolean;
92
+ /** Marks the end of a highlighted range */
88
93
  endHighlighted?: boolean;
94
+ /** The actual Date object this unit represents */
89
95
  date?: Date;
96
+ /** Content to display within the unit (typically the day number) */
90
97
  children?: React.ReactNode;
91
98
  };
92
99
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/date-picker",
3
3
  "description": "Semrush DatePicker Component",
4
- "version": "16.1.6",
4
+ "version": "16.1.7-prerelease.1",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,23 +14,23 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/base-trigger": "16.3.0",
18
- "@semcore/button": "16.0.6",
19
- "@semcore/divider": "16.0.6",
20
- "@semcore/popper": "16.0.6",
21
- "@semcore/dropdown": "16.0.6",
22
- "@semcore/icon": "16.5.0",
23
- "@semcore/input": "16.0.6",
24
- "@semcore/input-mask": "16.0.6",
25
- "@semcore/typography": "16.2.0",
26
- "@semcore/checkbox": "16.1.0",
27
- "@semcore/tooltip": "16.0.6",
28
- "@semcore/flex-box": "16.0.6",
29
- "@semcore/neighbor-location": "16.0.6",
17
+ "@semcore/base-trigger": "16.3.1-prerelease.1",
18
+ "@semcore/button": "16.0.7-prerelease.1",
19
+ "@semcore/divider": "16.0.7-prerelease.1",
20
+ "@semcore/popper": "16.0.7-prerelease.1",
21
+ "@semcore/dropdown": "16.0.7-prerelease.1",
22
+ "@semcore/icon": "16.5.1-prerelease.1",
23
+ "@semcore/input": "16.0.7-prerelease.1",
24
+ "@semcore/input-mask": "16.0.7-prerelease.1",
25
+ "@semcore/typography": "16.2.1-prerelease.1",
26
+ "@semcore/checkbox": "16.1.1-prerelease.1",
27
+ "@semcore/tooltip": "16.0.7-prerelease.1",
28
+ "@semcore/flex-box": "16.0.7-prerelease.1",
29
+ "@semcore/neighbor-location": "16.0.7-prerelease.1",
30
30
  "dayjs": "1.8.36"
31
31
  },
32
32
  "peerDependencies": {
33
- "@semcore/base-components": "^16.0.0"
33
+ "@semcore/base-components": "^16.2.1-prerelease.1"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@semcore/testing-utils": "1.0.0",
42
- "@semcore/core": "16.0.4"
42
+ "@semcore/core": "16.1.0-prerelease.1"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "pnpm semcore-builder --source=js && pnpm vite build"