intergalactic 15.63.0 → 15.65.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.
- package/CHANGELOG.md +16 -10
- package/accordion/lib/cjs/Accordion.js +7 -7
- package/accordion/lib/es6/Accordion.js +7 -7
- package/animation/lib/cjs/Animation.js +11 -11
- package/animation/lib/cjs/Collapse.js +28 -28
- package/animation/lib/cjs/FadeInOut.js +28 -28
- package/animation/lib/cjs/Scale.js +28 -28
- package/animation/lib/cjs/Slide.js +28 -28
- package/animation/lib/cjs/Transform.js +28 -28
- package/animation/lib/es6/Animation.js +11 -11
- package/animation/lib/es6/Collapse.js +28 -28
- package/animation/lib/es6/FadeInOut.js +28 -28
- package/animation/lib/es6/Scale.js +28 -28
- package/animation/lib/es6/Slide.js +28 -28
- package/animation/lib/es6/Transform.js +28 -28
- package/badge/lib/cjs/Badge.js +6 -6
- package/badge/lib/es6/Badge.js +6 -6
- package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
- package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
- package/base-trigger/lib/cjs/FilterTrigger.js +22 -14
- package/base-trigger/lib/cjs/FilterTrigger.js.map +1 -1
- package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
- package/base-trigger/lib/es6/BaseTrigger.js +18 -18
- package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
- package/base-trigger/lib/es6/FilterTrigger.js +22 -14
- package/base-trigger/lib/es6/FilterTrigger.js.map +1 -1
- package/base-trigger/lib/es6/LinkTrigger.js +12 -12
- package/breadcrumbs/lib/cjs/Breadcrumbs.js +6 -6
- package/breadcrumbs/lib/es6/Breadcrumbs.js +6 -6
- package/button/lib/cjs/Button.js +26 -26
- package/button/lib/es6/Button.js +26 -26
- package/card/lib/cjs/Card.js +8 -8
- package/card/lib/es6/Card.js +8 -8
- package/carousel/lib/cjs/Carousel.js +18 -18
- package/carousel/lib/es6/Carousel.js +18 -18
- package/checkbox/lib/cjs/Checkbox.js +18 -18
- package/checkbox/lib/es6/Checkbox.js +18 -18
- package/color-picker/lib/cjs/ColorPicker.js +23 -23
- package/color-picker/lib/cjs/PaletteManager.js +23 -23
- package/color-picker/lib/cjs/components/InputColor.js +23 -23
- package/color-picker/lib/es6/ColorPicker.js +23 -23
- package/color-picker/lib/es6/PaletteManager.js +23 -23
- package/color-picker/lib/es6/components/InputColor.js +23 -23
- package/components.json +40 -40
- package/counter/lib/cjs/Counter.js +10 -10
- package/counter/lib/es6/Counter.js +10 -10
- package/d3-chart/lib/cjs/Area.js +11 -11
- package/d3-chart/lib/cjs/Axis.js +14 -14
- package/d3-chart/lib/cjs/Bar.js +10 -10
- package/d3-chart/lib/cjs/Bubble.js +12 -12
- package/d3-chart/lib/cjs/Donut.js +9 -9
- package/d3-chart/lib/cjs/Dots.js +8 -8
- package/d3-chart/lib/cjs/HorizontalBar.js +10 -10
- package/d3-chart/lib/cjs/Hover.js +3 -3
- package/d3-chart/lib/cjs/Line.js +9 -9
- package/d3-chart/lib/cjs/Plot.js +3 -3
- package/d3-chart/lib/cjs/Radar.js +19 -19
- package/d3-chart/lib/cjs/RadialTree.js +11 -11
- package/d3-chart/lib/cjs/ReferenceLine.js +9 -9
- package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
- package/d3-chart/lib/cjs/Tooltip.js +9 -9
- package/d3-chart/lib/cjs/Venn.js +9 -9
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/es6/Area.js +11 -11
- package/d3-chart/lib/es6/Axis.js +14 -14
- package/d3-chart/lib/es6/Bar.js +10 -10
- package/d3-chart/lib/es6/Bubble.js +12 -12
- package/d3-chart/lib/es6/Donut.js +9 -9
- package/d3-chart/lib/es6/Dots.js +8 -8
- package/d3-chart/lib/es6/HorizontalBar.js +10 -10
- package/d3-chart/lib/es6/Hover.js +3 -3
- package/d3-chart/lib/es6/Line.js +9 -9
- package/d3-chart/lib/es6/Plot.js +3 -3
- package/d3-chart/lib/es6/Radar.js +19 -19
- package/d3-chart/lib/es6/RadialTree.js +11 -11
- package/d3-chart/lib/es6/ReferenceLine.js +9 -9
- package/d3-chart/lib/es6/ScatterPlot.js +9 -9
- package/d3-chart/lib/es6/Tooltip.js +9 -9
- package/d3-chart/lib/es6/Venn.js +9 -9
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/data-table/lib/cjs/Body.js +6 -9
- package/data-table/lib/cjs/Body.js.map +1 -1
- package/data-table/lib/cjs/DataTable.js +41 -41
- package/data-table/lib/cjs/Head.js +4 -4
- package/data-table/lib/es6/Body.js +6 -9
- package/data-table/lib/es6/Body.js.map +1 -1
- package/data-table/lib/es6/DataTable.js +41 -41
- package/data-table/lib/es6/Head.js +4 -4
- package/date-picker/index.d.ts +7 -1
- package/date-picker/lib/cjs/DateRangeComparator.js +65 -13
- package/date-picker/lib/cjs/DateRangeComparator.js.map +1 -1
- package/date-picker/lib/cjs/MonthDateRangeComparator.js +65 -13
- package/date-picker/lib/cjs/MonthDateRangeComparator.js.map +1 -1
- package/date-picker/lib/cjs/components/Calendar.js +21 -21
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +26 -26
- package/date-picker/lib/cjs/components/InputTrigger.js +26 -26
- package/date-picker/lib/cjs/components/PickerAbstract.js +26 -26
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +26 -26
- package/date-picker/lib/cjs/index.d.js.map +1 -1
- package/date-picker/lib/es6/DateRangeComparator.js +65 -13
- package/date-picker/lib/es6/DateRangeComparator.js.map +1 -1
- package/date-picker/lib/es6/MonthDateRangeComparator.js +65 -13
- package/date-picker/lib/es6/MonthDateRangeComparator.js.map +1 -1
- package/date-picker/lib/es6/components/Calendar.js +21 -21
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +26 -26
- package/date-picker/lib/es6/components/InputTrigger.js +26 -26
- package/date-picker/lib/es6/components/PickerAbstract.js +26 -26
- package/date-picker/lib/es6/components/RangePickerAbstract.js +26 -26
- package/date-picker/lib/es6/index.d.js.map +1 -1
- package/date-picker/lib/types/index.d.ts +7 -1
- package/divider/lib/cjs/Divider.js +9 -9
- package/divider/lib/es6/Divider.js +9 -9
- package/dot/lib/cjs/Dot.js +10 -10
- package/dot/lib/es6/Dot.js +10 -10
- package/drag-and-drop/lib/cjs/DragAndDrop.js +12 -12
- package/drag-and-drop/lib/es6/DragAndDrop.js +12 -12
- package/dropdown/lib/cjs/Dropdown.js +2 -2
- package/dropdown/lib/es6/Dropdown.js +2 -2
- package/dropdown-menu/lib/cjs/DropdownMenu.js +15 -15
- package/dropdown-menu/lib/cjs/styleScrollArea.js +6 -6
- package/dropdown-menu/lib/es6/DropdownMenu.js +15 -15
- package/dropdown-menu/lib/es6/styleScrollArea.js +6 -6
- package/ellipsis/lib/cjs/Ellipsis.js +10 -10
- package/ellipsis/lib/es6/Ellipsis.js +10 -10
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/feature-popover/lib/cjs/FeaturePopover.js +10 -10
- package/feature-popover/lib/es6/FeaturePopover.js +10 -10
- package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
- package/feedback-form/lib/es6/FeedbackForm.js +7 -7
- package/flags/lib/cjs/Flags.js +3 -3
- package/flags/lib/es6/Flags.js +3 -3
- package/flags/lib/sprites/sprite@1x.css +256 -256
- package/flags/lib/sprites/sprite@2x.css +257 -257
- package/flex-box/lib/cjs/Box/useBox.js +3 -3
- package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
- package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/lib/es6/Box/useBox.js +3 -3
- package/flex-box/lib/es6/Flex/useFlex.js +3 -3
- package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
- package/format-text/lib/cjs/FormatText.js +5 -5
- package/format-text/lib/es6/FormatText.js +5 -5
- package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
- package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
- package/grid/lib/cjs/Grid.js +114 -114
- package/grid/lib/es6/Grid.js +114 -114
- package/icon/color/Confluence/l/index.js +4 -4
- package/icon/color/Confluence/l/index.mjs +4 -4
- package/icon/color/Confluence/m/index.js +4 -4
- package/icon/color/Confluence/m/index.mjs +4 -4
- package/icon/color/MicrosoftOffice/l/index.js +10 -10
- package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
- package/icon/color/MicrosoftOffice/m/index.js +10 -10
- package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
- package/icon/lib/cjs/Icon.js +5 -5
- package/icon/lib/es6/Icon.js +5 -5
- package/icon/pay/Discover/l/index.js +1 -1
- package/icon/pay/Discover/l/index.mjs +1 -1
- package/icon/pay/Discover/m/index.js +1 -1
- package/icon/pay/Discover/m/index.mjs +1 -1
- package/icon/pay/JCB/l/index.js +10 -10
- package/icon/pay/JCB/l/index.mjs +10 -10
- package/icon/pay/JCB/m/index.js +10 -10
- package/icon/pay/JCB/m/index.mjs +10 -10
- package/icon/pay/Visa/l/index.js +2 -2
- package/icon/pay/Visa/l/index.mjs +2 -2
- package/icon/pay/Visa/m/index.js +2 -2
- package/icon/pay/Visa/m/index.mjs +2 -2
- package/illustration/lib/cjs/index.js +1 -1
- package/illustration/lib/es6/index.js +1 -1
- package/inline-edit/lib/cjs/InlineEdit.js +4 -4
- package/inline-edit/lib/es6/InlineEdit.js +4 -4
- package/inline-input/lib/cjs/InlineInput.js +18 -18
- package/inline-input/lib/es6/InlineInput.js +18 -18
- package/input/lib/cjs/Input.js +17 -17
- package/input/lib/es6/Input.js +17 -17
- package/input-mask/lib/cjs/InputMask.js +6 -6
- package/input-mask/lib/es6/InputMask.js +6 -6
- package/input-number/lib/cjs/InputNumber.js +9 -9
- package/input-number/lib/es6/InputNumber.js +9 -9
- package/input-tags/lib/cjs/InputTags.js +12 -12
- package/input-tags/lib/cjs/style/input-tag.shadow.css +2 -2
- package/input-tags/lib/es6/InputTags.js +12 -12
- package/input-tags/lib/es6/style/input-tag.shadow.css +2 -2
- package/link/lib/cjs/Link.js +12 -12
- package/link/lib/es6/Link.js +12 -12
- package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
- package/mini-chart/lib/cjs/component/score/Line.js +17 -17
- package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
- package/mini-chart/lib/es6/component/score/Donut.js +9 -9
- package/mini-chart/lib/es6/component/score/Line.js +17 -17
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/modal/lib/cjs/Modal.js +9 -9
- package/modal/lib/es6/Modal.js +9 -9
- package/notice/lib/cjs/Notice.js +13 -13
- package/notice/lib/es6/Notice.js +13 -13
- package/notice-bubble/lib/cjs/NoticeBubble.js +12 -12
- package/notice-bubble/lib/es6/NoticeBubble.js +12 -12
- package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
- package/notice-global/lib/es6/NoticeGlobal.js +11 -11
- package/package.json +2 -2
- package/pagination/lib/cjs/Pagination.js +10 -10
- package/pagination/lib/es6/Pagination.js +10 -10
- package/pills/lib/cjs/Pills.js +13 -13
- package/pills/lib/es6/Pills.js +13 -13
- package/popper/lib/cjs/Popper.js +6 -6
- package/popper/lib/es6/Popper.js +6 -6
- package/product-head/lib/cjs/Info.js +4 -4
- package/product-head/lib/cjs/ProductHead.js +5 -5
- package/product-head/lib/cjs/Title.js +4 -4
- package/product-head/lib/es6/Info.js +4 -4
- package/product-head/lib/es6/ProductHead.js +5 -5
- package/product-head/lib/es6/Title.js +4 -4
- package/progress-bar/lib/cjs/ProgressBar.js +15 -15
- package/progress-bar/lib/es6/ProgressBar.js +15 -15
- package/radio/lib/cjs/Radio.js +16 -16
- package/radio/lib/es6/Radio.js +16 -16
- package/scroll-area/lib/cjs/ScrollArea.js +9 -9
- package/scroll-area/lib/cjs/ScrollBar.js +5 -5
- package/scroll-area/lib/es6/ScrollArea.js +9 -9
- package/scroll-area/lib/es6/ScrollBar.js +5 -5
- package/select/lib/cjs/InputSearch.js +6 -6
- package/select/lib/cjs/Select.js +9 -9
- package/select/lib/es6/InputSearch.js +6 -6
- package/select/lib/es6/Select.js +9 -9
- package/side-panel/lib/cjs/SidePanel.js +15 -15
- package/side-panel/lib/es6/SidePanel.js +15 -15
- package/skeleton/lib/cjs/Charts/Area.js +9 -9
- package/skeleton/lib/cjs/Charts/Bar.js +9 -9
- package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
- package/skeleton/lib/cjs/Charts/Donut.js +9 -9
- package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
- package/skeleton/lib/cjs/Charts/Line.js +9 -9
- package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
- package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/cjs/Charts/Venn.js +9 -9
- package/skeleton/lib/cjs/Skeleton.js +8 -8
- package/skeleton/lib/es6/Charts/Area.js +9 -9
- package/skeleton/lib/es6/Charts/Bar.js +9 -9
- package/skeleton/lib/es6/Charts/Bubble.js +9 -9
- package/skeleton/lib/es6/Charts/Donut.js +9 -9
- package/skeleton/lib/es6/Charts/Histogram.js +9 -9
- package/skeleton/lib/es6/Charts/Line.js +9 -9
- package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
- package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/es6/Charts/Venn.js +9 -9
- package/skeleton/lib/es6/Skeleton.js +8 -8
- package/slider/lib/cjs/Slider.js +7 -7
- package/slider/lib/es6/Slider.js +7 -7
- package/spin/lib/cjs/Spin.js +13 -13
- package/spin/lib/es6/Spin.js +13 -13
- package/spin-container/lib/cjs/SpinContainer.js +8 -8
- package/spin-container/lib/es6/SpinContainer.js +8 -8
- package/sticky/lib/cjs/Sticky.js +2 -2
- package/sticky/lib/es6/Sticky.js +2 -2
- package/switch/lib/cjs/Switch.js +21 -21
- package/switch/lib/es6/Switch.js +21 -21
- package/tab-line/lib/cjs/TabLine.js +13 -13
- package/tab-line/lib/es6/TabLine.js +13 -13
- package/tab-panel/lib/cjs/TabPanel.js +8 -8
- package/tab-panel/lib/es6/TabPanel.js +8 -8
- package/tag/lib/cjs/Tag.js +20 -20
- package/tag/lib/es6/Tag.js +20 -20
- package/textarea/lib/cjs/Textarea.js +8 -8
- package/textarea/lib/es6/Textarea.js +8 -8
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/tooltip/lib/cjs/Tooltip.js +7 -7
- package/tooltip/lib/es6/Tooltip.js +7 -7
- package/typography/index.d.ts +4 -2
- package/typography/lib/cjs/Blockquote.js +4 -4
- package/typography/lib/cjs/Hint.js +7 -7
- package/typography/lib/cjs/List.js +5 -5
- package/typography/lib/cjs/Text.js +34 -34
- package/typography/lib/cjs/index.d.js.map +1 -1
- package/typography/lib/es6/Blockquote.js +4 -4
- package/typography/lib/es6/Hint.js +7 -7
- package/typography/lib/es6/List.js +5 -5
- package/typography/lib/es6/Text.js +34 -34
- package/typography/lib/es6/index.d.js.map +1 -1
- package/typography/lib/types/index.d.ts +4 -2
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
- package/utils/lib/injectStyle.js +1 -1
- package/utils/lib/injectStyle.mjs +1 -1
- package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
- package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
- package/wizard/lib/cjs/Wizard.js +11 -11
- package/wizard/lib/es6/Wizard.js +11 -11
@@ -33,32 +33,32 @@ import NeighborLocation from 'intergalactic/neighbor-location';
|
|
33
33
|
import includesDate from '../utils/includesDate';
|
34
34
|
import dayjs from 'dayjs';
|
35
35
|
/*__reshadow-styles__:"../style/date-picker.shadow.css"*/
|
36
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
37
|
-
"__SHeader": "
|
38
|
-
"__STitle": "
|
39
|
-
"__SToday": "
|
40
|
-
"__SPeriod": "
|
41
|
-
"__SButton": "
|
42
|
-
"__SInner": "
|
43
|
-
"__SInputMask": "
|
44
|
-
"__SIndicator": "
|
45
|
-
"__SRangeIndicator": "
|
46
|
-
"_range_value": "
|
47
|
-
"_range_compare": "
|
48
|
-
"_disabled": "
|
49
|
-
"__SHumanizedDate": "
|
50
|
-
"__SSingleDateInput": "
|
51
|
-
"__SValue": "
|
52
|
-
"__SDateRange": "
|
53
|
-
"__SMask": "
|
54
|
-
"_noHumanizedDate": "
|
55
|
-
"__SRangeSep": "
|
56
|
-
"_fulfilled": "
|
57
|
-
"__SRangeComparatorHeader": "
|
58
|
-
"__SRangeCalendar": "
|
59
|
-
"__SFooter": "
|
60
|
-
"__SPeriodsList": "
|
61
|
-
"__SPopper": "
|
36
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPopper_1he9z_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_1he9z_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_1he9z_gg_:active,.___SPopper_1he9z_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_1he9z_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_1he9z_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_1he9z_gg_,.___STitle_1he9z_gg_{display:flex;align-items:center}.___STitle_1he9z_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_1he9z_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_1he9z_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_1he9z_gg_ .___SInner_1he9z_gg_{justify-content:flex-start}.___SInputMask_1he9z_gg_{color:var(--intergalactic-text-primary, #191b23);line-height:normal}.___SIndicator_1he9z_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SRangeIndicator_1he9z_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_1he9z_gg_._range_value_1he9z_gg_{background-color:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SRangeIndicator_1he9z_gg_._range_compare_1he9z_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, #8649e1)}.___SRangeIndicator_1he9z_gg_.__disabled_1he9z_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SHumanizedDate_1he9z_gg_{position:absolute;pointer-events:none}.___SDateRange_1he9z_gg_ .___SMask_1he9z_gg_,.___SDateRange_1he9z_gg_ .___SValue_1he9z_gg_,.___SSingleDateInput_1he9z_gg_ .___SMask_1he9z_gg_,.___SSingleDateInput_1he9z_gg_ .___SValue_1he9z_gg_{opacity:0}.___SSingleDateInput_1he9z_gg_:focus-within .___SHumanizedDate_1he9z_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_1he9z_gg_:focus-within .___SMask_1he9z_gg_,.___SSingleDateInput_1he9z_gg_:focus-within .___SValue_1he9z_gg_{opacity:1}.___SDateRange_1he9z_gg_:focus-within .___SHumanizedDate_1he9z_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_1he9z_gg_:focus-within .___SMask_1he9z_gg_,.___SDateRange_1he9z_gg_:focus-within .___SValue_1he9z_gg_{opacity:1}.___SInputMask_1he9z_gg_.__noHumanizedDate_1he9z_gg_ .___SMask_1he9z_gg_,.___SInputMask_1he9z_gg_.__noHumanizedDate_1he9z_gg_ .___SValue_1he9z_gg_{opacity:1}.___SDateRange_1he9z_gg_ .___SInputMask_1he9z_gg_:focus-within .___SMask_1he9z_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_1he9z_gg_:focus-within .___SRangeSep_1he9z_gg_,.___SRangeSep_1he9z_gg_.__fulfilled_1he9z_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SRangeComparatorHeader_1he9z_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SRangeCalendar_1he9z_gg_,.___SRangeComparatorHeader_1he9z_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_1he9z_gg_{border-top:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SFooter_1he9z_gg_,.___SPeriodsList_1he9z_gg_{padding:var(--intergalactic-spacing-4x, 16px)}" /*__inner_css_end__*/, "1he9z_gg_") /*__reshadow_css_end__*/, {
|
37
|
+
"__SHeader": "___SHeader_1he9z_gg_",
|
38
|
+
"__STitle": "___STitle_1he9z_gg_",
|
39
|
+
"__SToday": "___SToday_1he9z_gg_",
|
40
|
+
"__SPeriod": "___SPeriod_1he9z_gg_",
|
41
|
+
"__SButton": "___SButton_1he9z_gg_",
|
42
|
+
"__SInner": "___SInner_1he9z_gg_",
|
43
|
+
"__SInputMask": "___SInputMask_1he9z_gg_",
|
44
|
+
"__SIndicator": "___SIndicator_1he9z_gg_",
|
45
|
+
"__SRangeIndicator": "___SRangeIndicator_1he9z_gg_",
|
46
|
+
"_range_value": "_range_value_1he9z_gg_",
|
47
|
+
"_range_compare": "_range_compare_1he9z_gg_",
|
48
|
+
"_disabled": "__disabled_1he9z_gg_",
|
49
|
+
"__SHumanizedDate": "___SHumanizedDate_1he9z_gg_",
|
50
|
+
"__SSingleDateInput": "___SSingleDateInput_1he9z_gg_",
|
51
|
+
"__SValue": "___SValue_1he9z_gg_",
|
52
|
+
"__SDateRange": "___SDateRange_1he9z_gg_",
|
53
|
+
"__SMask": "___SMask_1he9z_gg_",
|
54
|
+
"_noHumanizedDate": "__noHumanizedDate_1he9z_gg_",
|
55
|
+
"__SRangeSep": "___SRangeSep_1he9z_gg_",
|
56
|
+
"_fulfilled": "__fulfilled_1he9z_gg_",
|
57
|
+
"__SRangeComparatorHeader": "___SRangeComparatorHeader_1he9z_gg_",
|
58
|
+
"__SRangeCalendar": "___SRangeCalendar_1he9z_gg_",
|
59
|
+
"__SFooter": "___SFooter_1he9z_gg_",
|
60
|
+
"__SPeriodsList": "___SPeriodsList_1he9z_gg_",
|
61
|
+
"__SPopper": "___SPopper_1he9z_gg_"
|
62
62
|
});
|
63
63
|
import assignProps from 'intergalactic/utils/lib/assignProps';
|
64
64
|
var defaultAllowedParts = {
|
@@ -13,32 +13,32 @@ import Dropdown from 'intergalactic/dropdown';
|
|
13
13
|
import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
14
14
|
import { localizedMessages } from '../translations/__intergalactic-dynamic-locales';
|
15
15
|
/*__reshadow-styles__:"../style/date-picker.shadow.css"*/
|
16
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
17
|
-
"__SHeader": "
|
18
|
-
"__STitle": "
|
19
|
-
"__SToday": "
|
20
|
-
"__SPeriod": "
|
21
|
-
"__SButton": "
|
22
|
-
"__SInner": "
|
23
|
-
"__SInputMask": "
|
24
|
-
"__SIndicator": "
|
25
|
-
"__SRangeIndicator": "
|
26
|
-
"_range_value": "
|
27
|
-
"_range_compare": "
|
28
|
-
"_disabled": "
|
29
|
-
"__SHumanizedDate": "
|
30
|
-
"__SSingleDateInput": "
|
31
|
-
"__SValue": "
|
32
|
-
"__SDateRange": "
|
33
|
-
"__SMask": "
|
34
|
-
"_noHumanizedDate": "
|
35
|
-
"__SRangeSep": "
|
36
|
-
"_fulfilled": "
|
37
|
-
"__SRangeComparatorHeader": "
|
38
|
-
"__SRangeCalendar": "
|
39
|
-
"__SFooter": "
|
40
|
-
"__SPeriodsList": "
|
41
|
-
"__SPopper": "
|
16
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPopper_1he9z_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_1he9z_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_1he9z_gg_:active,.___SPopper_1he9z_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_1he9z_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_1he9z_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_1he9z_gg_,.___STitle_1he9z_gg_{display:flex;align-items:center}.___STitle_1he9z_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_1he9z_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_1he9z_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_1he9z_gg_ .___SInner_1he9z_gg_{justify-content:flex-start}.___SInputMask_1he9z_gg_{color:var(--intergalactic-text-primary, #191b23);line-height:normal}.___SIndicator_1he9z_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SRangeIndicator_1he9z_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_1he9z_gg_._range_value_1he9z_gg_{background-color:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SRangeIndicator_1he9z_gg_._range_compare_1he9z_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, #8649e1)}.___SRangeIndicator_1he9z_gg_.__disabled_1he9z_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SHumanizedDate_1he9z_gg_{position:absolute;pointer-events:none}.___SDateRange_1he9z_gg_ .___SMask_1he9z_gg_,.___SDateRange_1he9z_gg_ .___SValue_1he9z_gg_,.___SSingleDateInput_1he9z_gg_ .___SMask_1he9z_gg_,.___SSingleDateInput_1he9z_gg_ .___SValue_1he9z_gg_{opacity:0}.___SSingleDateInput_1he9z_gg_:focus-within .___SHumanizedDate_1he9z_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_1he9z_gg_:focus-within .___SMask_1he9z_gg_,.___SSingleDateInput_1he9z_gg_:focus-within .___SValue_1he9z_gg_{opacity:1}.___SDateRange_1he9z_gg_:focus-within .___SHumanizedDate_1he9z_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_1he9z_gg_:focus-within .___SMask_1he9z_gg_,.___SDateRange_1he9z_gg_:focus-within .___SValue_1he9z_gg_{opacity:1}.___SInputMask_1he9z_gg_.__noHumanizedDate_1he9z_gg_ .___SMask_1he9z_gg_,.___SInputMask_1he9z_gg_.__noHumanizedDate_1he9z_gg_ .___SValue_1he9z_gg_{opacity:1}.___SDateRange_1he9z_gg_ .___SInputMask_1he9z_gg_:focus-within .___SMask_1he9z_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_1he9z_gg_:focus-within .___SRangeSep_1he9z_gg_,.___SRangeSep_1he9z_gg_.__fulfilled_1he9z_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SRangeComparatorHeader_1he9z_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SRangeCalendar_1he9z_gg_,.___SRangeComparatorHeader_1he9z_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_1he9z_gg_{border-top:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SFooter_1he9z_gg_,.___SPeriodsList_1he9z_gg_{padding:var(--intergalactic-spacing-4x, 16px)}" /*__inner_css_end__*/, "1he9z_gg_") /*__reshadow_css_end__*/, {
|
17
|
+
"__SHeader": "___SHeader_1he9z_gg_",
|
18
|
+
"__STitle": "___STitle_1he9z_gg_",
|
19
|
+
"__SToday": "___SToday_1he9z_gg_",
|
20
|
+
"__SPeriod": "___SPeriod_1he9z_gg_",
|
21
|
+
"__SButton": "___SButton_1he9z_gg_",
|
22
|
+
"__SInner": "___SInner_1he9z_gg_",
|
23
|
+
"__SInputMask": "___SInputMask_1he9z_gg_",
|
24
|
+
"__SIndicator": "___SIndicator_1he9z_gg_",
|
25
|
+
"__SRangeIndicator": "___SRangeIndicator_1he9z_gg_",
|
26
|
+
"_range_value": "_range_value_1he9z_gg_",
|
27
|
+
"_range_compare": "_range_compare_1he9z_gg_",
|
28
|
+
"_disabled": "__disabled_1he9z_gg_",
|
29
|
+
"__SHumanizedDate": "___SHumanizedDate_1he9z_gg_",
|
30
|
+
"__SSingleDateInput": "___SSingleDateInput_1he9z_gg_",
|
31
|
+
"__SValue": "___SValue_1he9z_gg_",
|
32
|
+
"__SDateRange": "___SDateRange_1he9z_gg_",
|
33
|
+
"__SMask": "___SMask_1he9z_gg_",
|
34
|
+
"_noHumanizedDate": "__noHumanizedDate_1he9z_gg_",
|
35
|
+
"__SRangeSep": "___SRangeSep_1he9z_gg_",
|
36
|
+
"_fulfilled": "__fulfilled_1he9z_gg_",
|
37
|
+
"__SRangeComparatorHeader": "___SRangeComparatorHeader_1he9z_gg_",
|
38
|
+
"__SRangeCalendar": "___SRangeCalendar_1he9z_gg_",
|
39
|
+
"__SFooter": "___SFooter_1he9z_gg_",
|
40
|
+
"__SPeriodsList": "___SPeriodsList_1he9z_gg_",
|
41
|
+
"__SPopper": "___SPopper_1he9z_gg_"
|
42
42
|
});
|
43
43
|
import includesDate from '../utils/includesDate';
|
44
44
|
var INTERACTION_TAGS = ['INPUT'];
|
@@ -20,32 +20,32 @@ import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
|
20
20
|
import { localizedMessages } from '../translations/__intergalactic-dynamic-locales';
|
21
21
|
import includesDate from '../utils/includesDate';
|
22
22
|
/*__reshadow-styles__:"../style/date-picker.shadow.css"*/
|
23
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
24
|
-
"__SHeader": "
|
25
|
-
"__STitle": "
|
26
|
-
"__SToday": "
|
27
|
-
"__SPeriod": "
|
28
|
-
"__SButton": "
|
29
|
-
"__SInner": "
|
30
|
-
"__SInputMask": "
|
31
|
-
"__SIndicator": "
|
32
|
-
"__SRangeIndicator": "
|
33
|
-
"_range_value": "
|
34
|
-
"_range_compare": "
|
35
|
-
"_disabled": "
|
36
|
-
"__SHumanizedDate": "
|
37
|
-
"__SSingleDateInput": "
|
38
|
-
"__SValue": "
|
39
|
-
"__SDateRange": "
|
40
|
-
"__SMask": "
|
41
|
-
"_noHumanizedDate": "
|
42
|
-
"__SRangeSep": "
|
43
|
-
"_fulfilled": "
|
44
|
-
"__SRangeComparatorHeader": "
|
45
|
-
"__SRangeCalendar": "
|
46
|
-
"__SFooter": "
|
47
|
-
"__SPeriodsList": "
|
48
|
-
"__SPopper": "
|
23
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPopper_1he9z_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_1he9z_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_1he9z_gg_:active,.___SPopper_1he9z_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_1he9z_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_1he9z_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_1he9z_gg_,.___STitle_1he9z_gg_{display:flex;align-items:center}.___STitle_1he9z_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_1he9z_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_1he9z_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_1he9z_gg_ .___SInner_1he9z_gg_{justify-content:flex-start}.___SInputMask_1he9z_gg_{color:var(--intergalactic-text-primary, #191b23);line-height:normal}.___SIndicator_1he9z_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SRangeIndicator_1he9z_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_1he9z_gg_._range_value_1he9z_gg_{background-color:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SRangeIndicator_1he9z_gg_._range_compare_1he9z_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, #8649e1)}.___SRangeIndicator_1he9z_gg_.__disabled_1he9z_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SHumanizedDate_1he9z_gg_{position:absolute;pointer-events:none}.___SDateRange_1he9z_gg_ .___SMask_1he9z_gg_,.___SDateRange_1he9z_gg_ .___SValue_1he9z_gg_,.___SSingleDateInput_1he9z_gg_ .___SMask_1he9z_gg_,.___SSingleDateInput_1he9z_gg_ .___SValue_1he9z_gg_{opacity:0}.___SSingleDateInput_1he9z_gg_:focus-within .___SHumanizedDate_1he9z_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_1he9z_gg_:focus-within .___SMask_1he9z_gg_,.___SSingleDateInput_1he9z_gg_:focus-within .___SValue_1he9z_gg_{opacity:1}.___SDateRange_1he9z_gg_:focus-within .___SHumanizedDate_1he9z_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_1he9z_gg_:focus-within .___SMask_1he9z_gg_,.___SDateRange_1he9z_gg_:focus-within .___SValue_1he9z_gg_{opacity:1}.___SInputMask_1he9z_gg_.__noHumanizedDate_1he9z_gg_ .___SMask_1he9z_gg_,.___SInputMask_1he9z_gg_.__noHumanizedDate_1he9z_gg_ .___SValue_1he9z_gg_{opacity:1}.___SDateRange_1he9z_gg_ .___SInputMask_1he9z_gg_:focus-within .___SMask_1he9z_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_1he9z_gg_:focus-within .___SRangeSep_1he9z_gg_,.___SRangeSep_1he9z_gg_.__fulfilled_1he9z_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SRangeComparatorHeader_1he9z_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SRangeCalendar_1he9z_gg_,.___SRangeComparatorHeader_1he9z_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_1he9z_gg_{border-top:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SFooter_1he9z_gg_,.___SPeriodsList_1he9z_gg_{padding:var(--intergalactic-spacing-4x, 16px)}" /*__inner_css_end__*/, "1he9z_gg_") /*__reshadow_css_end__*/, {
|
24
|
+
"__SHeader": "___SHeader_1he9z_gg_",
|
25
|
+
"__STitle": "___STitle_1he9z_gg_",
|
26
|
+
"__SToday": "___SToday_1he9z_gg_",
|
27
|
+
"__SPeriod": "___SPeriod_1he9z_gg_",
|
28
|
+
"__SButton": "___SButton_1he9z_gg_",
|
29
|
+
"__SInner": "___SInner_1he9z_gg_",
|
30
|
+
"__SInputMask": "___SInputMask_1he9z_gg_",
|
31
|
+
"__SIndicator": "___SIndicator_1he9z_gg_",
|
32
|
+
"__SRangeIndicator": "___SRangeIndicator_1he9z_gg_",
|
33
|
+
"_range_value": "_range_value_1he9z_gg_",
|
34
|
+
"_range_compare": "_range_compare_1he9z_gg_",
|
35
|
+
"_disabled": "__disabled_1he9z_gg_",
|
36
|
+
"__SHumanizedDate": "___SHumanizedDate_1he9z_gg_",
|
37
|
+
"__SSingleDateInput": "___SSingleDateInput_1he9z_gg_",
|
38
|
+
"__SValue": "___SValue_1he9z_gg_",
|
39
|
+
"__SDateRange": "___SDateRange_1he9z_gg_",
|
40
|
+
"__SMask": "___SMask_1he9z_gg_",
|
41
|
+
"_noHumanizedDate": "__noHumanizedDate_1he9z_gg_",
|
42
|
+
"__SRangeSep": "___SRangeSep_1he9z_gg_",
|
43
|
+
"_fulfilled": "__fulfilled_1he9z_gg_",
|
44
|
+
"__SRangeComparatorHeader": "___SRangeComparatorHeader_1he9z_gg_",
|
45
|
+
"__SRangeCalendar": "___SRangeCalendar_1he9z_gg_",
|
46
|
+
"__SFooter": "___SFooter_1he9z_gg_",
|
47
|
+
"__SPeriodsList": "___SPeriodsList_1he9z_gg_",
|
48
|
+
"__SPopper": "___SPopper_1he9z_gg_"
|
49
49
|
});
|
50
50
|
var INTERACTION_TAGS = ['INPUT'];
|
51
51
|
var INTERACTION_KEYS = ['ArrowDown', 'Enter', 'Space'];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React, { ChangeEvent, ComponentProps } from 'react';\nimport dayjs from 'dayjs';\nimport { Flex, Box, BoxProps } from '@semcore/flex-box';\nimport { UnknownProperties, Intergalactic, PropGetterFn } from '@semcore/core';\nimport Button, { ButtonProps } from '@semcore/button';\nimport Dropdown, { DropdownProps, DropdownTriggerProps } from '@semcore/dropdown';\nimport { WithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\nimport BaseTrigger, { BaseTriggerProps } from '@semcore/base-trigger';\nimport Input, { InputProps, InputValueProps } from '@semcore/input';\nimport { InputMaskValueProps } from '@semcore/input-mask';\nimport Checkbox from '@semcore/checkbox';\n\nexport type DateConstructorParams = string | number | Date;\n\n/** @deprecated */\nexport interface ICalendarProps extends CalendarProps, UnknownProperties {}\nexport type CalendarProps = BoxProps & {\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /**\n * Array of dates blocked for selection\n * Accepts the date or the range of dates for specifying infinity ([Date | false, Date | false]), crontab(6,7)\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * @ignore\n * */\n highlighted?: DateConstructorParams[];\n /**\n * @ignore\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: Date;\n\n renderOutdated?: boolean;\n};\n\n/** @deprecated */\nexport interface ICalendarDaysContext extends CalendarDaysContext, UnknownProperties {}\nexport type CalendarDaysContext = {\n days: CalendarUnitProps[];\n};\n\n/** @deprecated */\nexport interface ICalendarMonthsContext extends CalendarMonthsContext, UnknownProperties {}\nexport type CalendarMonthsContext = {\n months: CalendarUnitProps[];\n};\n\n/** @deprecated */\nexport interface ICalendarUnitProps extends CalendarUnitProps, UnknownProperties {}\nexport type CalendarUnitProps = BoxProps & {\n selected?: boolean;\n outdated?: boolean;\n disabled?: boolean;\n today?: boolean;\n startSelected?: boolean;\n endSelected?: boolean;\n highlighted?: boolean;\n startHighlighted?: boolean;\n endHighlighted?: boolean;\n date?: Date;\n children?: React.ReactNode;\n};\n\n/** @deprecated */\nexport interface ICalendarContext extends CalendarContext, UnknownProperties {}\nexport type CalendarContext = {\n getUnitProps: PropGetterFn;\n};\n\ndeclare const Calendar: Intergalactic.Component<\n 'div',\n CalendarProps,\n CalendarContext & CalendarDaysContext,\n [handlers: AbstractDatePickerHandlers]\n> & {\n Unit: Intergalactic.Component<'div', CalendarUnitProps>;\n};\n\n/** @deprecated */\nexport interface IDatePickerProps extends DatePickerProps, UnknownProperties {}\nexport type DatePickerProps = Intergalactic.InternalTypings.EfficientOmit<\n DropdownProps,\n 'disabled'\n> &\n WithI18nEnhanceProps & {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams;\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams;\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n };\n\n/** @deprecated */\nexport interface IDateRangePickerProps extends DateRangePickerProps, UnknownProperties {}\nexport type DateRangePickerProps = Intergalactic.InternalTypings.EfficientOmit<\n DropdownProps,\n 'disabled'\n> &\n WithI18nEnhanceProps & {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams[];\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l' | 'xl';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Remove the 'Reset' button\n * */\n unclearable?: boolean;\n /**\n * To be activated upon selecting the date\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Intermediate value between `highlighted` and `value` that user see before explicitly applying it.\n */\n preselectedValue?: DateConstructorParams[];\n /**\n * Normally called when user preselects a date range and when user applies this range.\n */\n onPreselectedValueChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ButtonProps & { value: Date[] })[];\n };\n\n/** @deprecated */\nexport interface IDateRangePickerPeriodProps\n extends DateRangePickerPeriodProps,\n UnknownProperties {}\nexport type DateRangePickerPeriodProps = BoxProps & {\n /**\n * Current selected period\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated by clicking the button for switching the selected period.\n * */\n onChange?: (date: Date[]) => void;\n /**\n * To be activated by hovering a cursor over the button for changing the current displayed month.\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * To be activated by hovering a cursor over the button for selecting the dates.\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ButtonProps & { value: Date[] })[];\n};\n\n/** @deprecated */\nexport interface IDatePickerContext extends DatePickerContext, UnknownProperties {}\nexport type DatePickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getTodayProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IAbstractDatePickerHandlers\n extends AbstractDatePickerHandlers,\n UnknownProperties {}\nexport type AbstractDatePickerHandlers = {\n displayedPeriod: (value: DateConstructorParams) => void;\n visible: (index: boolean) => void;\n highlighted: (list: DateConstructorParams[]) => void;\n value: (index: DateConstructorParams) => void;\n};\n\n/** @deprecated */\nexport interface IDatePickerHandlers extends DatePickerHandlers, UnknownProperties {}\nexport type DatePickerHandlers = {\n visible: (index: boolean) => void;\n};\n\n/** @deprecated */\nexport interface IInputTriggerProps extends InputTriggerProps, UnknownProperties {}\nexport type BaseInputTriggerProps = InputProps & {\n /**\n * Date input placeholder characters\n * @default { year: 'Y'; month: 'M'; day: 'D' }\n */\n placeholders?: { year: string; month: string; day: string };\n locale?: string;\n onDisplayedPeriodChange?: (date: Date) => void;\n};\nexport type InputTriggerProps = BaseInputTriggerProps & {\n value?: Date;\n onChange?: (date: Date, event: ChangeEvent) => void;\n};\n\nexport type RangeInputTriggerProps = BaseInputTriggerProps & {\n value?: Date[];\n onChange?: (date: Date[], event: ChangeEvent) => void;\n};\n\n/** @deprecated */\nexport interface ISingleDateInputProps extends SingleDateInputProps, UnknownProperties {}\nexport type SingleDateInputProps = InputTriggerProps & {};\n\n/** @deprecated */\nexport interface IDateRangeProps extends DateRangeProps, UnknownProperties {}\nexport type DateRangeProps = RangeInputTriggerProps & {};\n\n/** @deprecated */\nexport interface IDatePickerMaskedInputProps\n extends DatePickerMaskedInputProps,\n UnknownProperties {}\nexport type DatePickerMaskedInputProps = {\n date?: Date;\n onDateChange?: (date: Date, event: ChangeEvent) => void;\n onDisplayedPeriodChange?: (date: Date) => void;\n locale?: string;\n parts?: { year: Boolean; month: Boolean; day: Boolean };\n disabledDates?: (Date | (Date | false)[] | string)[];\n};\n\ndeclare const InputTrigger: Intergalactic.Component<\n 'div',\n DropdownTriggerProps & InputTriggerProps\n> & {\n Addon: typeof Input.Addon;\n Value: typeof Input.Value;\n SingleDateInput: Intergalactic.Component<'div', InputProps & SingleDateInputProps> & {\n Indicator: typeof Input.Addon;\n MaskedInput: Intergalactic.Component<'input', InputMaskValueProps & DatePickerMaskedInputProps>;\n };\n};\n\ndeclare const RangeInputTrigger: Intergalactic.Component<\n 'div',\n DropdownTriggerProps & RangeInputTriggerProps\n> & {\n Addon: typeof Input.Addon;\n Value: typeof Input.Value;\n DateRange: Intergalactic.Component<'div', InputValueProps & DateRangeProps> & {\n Indicator: typeof Input.Addon;\n RangeSep: typeof Input.Addon;\n FromMaskedInput: Intergalactic.Component<\n 'input',\n InputMaskValueProps & DatePickerMaskedInputProps\n >;\n ToMaskedInput: Intergalactic.Component<\n 'input',\n InputMaskValueProps & DatePickerMaskedInputProps\n >;\n };\n};\n\ndeclare const DatePicker: Intergalactic.Component<\n 'div',\n DatePickerProps,\n DatePickerContext & CalendarDaysContext\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DatePickerProps, DatePickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Today: typeof Box;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\n/** @deprecated */\nexport interface IDateRangePickerContext extends DateRangePickerContext, UnknownProperties {}\nexport type DateRangePickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n};\n\ndeclare const DateRangePicker: Intergalactic.Component<\n 'div',\n DateRangePickerProps,\n DateRangePickerContext & CalendarDaysContext,\n [handlers: DatePickerHandlers]\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof RangeInputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DateRangePickerProps, DateRangePickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: Intergalactic.Component<'div', DateRangePickerPeriodProps>;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\n/** @deprecated */\nexport interface IMonthPickerContext extends MonthPickerContext, UnknownProperties {}\nexport type MonthPickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n};\n\ndeclare const MonthPicker: Intergalactic.Component<\n 'div',\n DatePickerProps,\n MonthPickerContext & CalendarMonthsContext,\n [handlers: DatePickerHandlers]\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DatePickerProps, MonthPickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\n/** @deprecated */\nexport interface IMonthRangePickerContext extends MonthRangePickerContext, UnknownProperties {}\nexport type MonthRangePickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n};\n\ndeclare const MonthRangePicker: Intergalactic.Component<\n 'div',\n DateRangePickerProps,\n MonthRangePickerContext & CalendarMonthsContext,\n [handlers: DatePickerHandlers]\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof RangeInputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DateRangePickerProps, MonthRangePickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: Intergalactic.Component<'div', DateRangePickerPeriodProps>;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport type DateRangeComparatorProps = DropdownProps &\n WithI18nEnhanceProps & {\n /**\n * Selected date ranges\n * */\n value?: { value?: DateConstructorParams[]; compare?: DateConstructorParams[] };\n /**\n * Default value for selected date ranges\n * */\n defaultValue?: { value?: DateConstructorParams[]; compare?: DateConstructorParams[] };\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n /**\n * Called with selected date when user clicks `Apply` button.\n * */\n onChange?: (ranges: {\n value?: DateConstructorParams[];\n compare?: DateConstructorParams[];\n }) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l' | 'xl';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n compareHighlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onCompareHighlightedChange?: (date: Date[]) => void;\n /**\n * Intermediate value between `highlighted` and `value` that user see before explicitly applying it.\n */\n preselectedValue?: DateConstructorParams[];\n /**\n * Normally called when user preselects a date range and when user applies this range.\n */\n onPreselectedValueChange?: (date: Date[]) => void;\n /**\n * Intermediate value between `compareHighlighted` and `compare` that user see before explicitly applying it.\n */\n preselectedCompare?: DateConstructorParams[];\n /**\n * Normally called when user preselects a compare range and when user applies ranges.\n */\n onPreselectedCompareChange?: (date: Date[]) => void;\n /**\n * Controls that compare range input is enabled.\n */\n compareToggle?: boolean;\n /**\n * Toggles when compare range input enables or disables.\n */\n onCompareToggleChange?: (compareToggle: boolean) => void;\n /**\n * Controls which date range is focused.\n */\n focusedRange?: 'value' | 'compare';\n /**\n * Called when user focuses or is focused on some of the date ranges.\n */\n onFocusedRangeChange?: (focusedRange: 'value' | 'compare') => void;\n /**\n * Remove the 'Reset' button\n * */\n unclearable?: boolean;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ButtonProps & { value: Date[] })[];\n };\n\nexport type DateRangeComparatorContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n};\n\nexport type DateRangeComparatorTriggerProps = DropdownTriggerProps &\n BaseTriggerProps & {\n /**\n * Text between the selected date range and the compared date range when both are selected.\n * @default 'vs.'\n */\n separator?: string;\n /**\n * Trigger text when no ranges are selected.\n */\n placeholder?: string;\n };\n\ndeclare const DateRangeComparator: Intergalactic.Component<\n 'div',\n DateRangeComparatorProps,\n DateRangeComparatorContext & CalendarDaysContext\n> & {\n Popper: typeof Dropdown.Popper;\n Header: typeof Flex;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Apply: typeof Button;\n Reset: typeof Button;\n\n CalendarHeader: typeof Box;\n Title: typeof Box;\n\n Trigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n ValueDateRange: Intergalactic.Component<'div', InputTriggerProps>;\n CompareToggle: typeof Checkbox;\n CompareDateRange: Intergalactic.Component<'div', InputTriggerProps>;\n Body: typeof Flex;\n RangeCalendar: typeof Flex;\n Periods: typeof Flex;\n Footer: typeof Flex;\n};\n\ndeclare const MonthDateRangeComparator: typeof DateRangeComparator;\n\nexport {\n DatePicker,\n DateRangePicker,\n MonthPicker,\n MonthRangePicker,\n DateRangeComparator,\n MonthDateRangeComparator,\n};\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React, { ChangeEvent, ComponentProps } from 'react';\nimport dayjs from 'dayjs';\nimport { Flex, Box, BoxProps } from '@semcore/flex-box';\nimport { UnknownProperties, Intergalactic, PropGetterFn } from '@semcore/core';\nimport Button, { ButtonProps } from '@semcore/button';\nimport Divider from '@semcore/divider';\nimport Dropdown, { DropdownProps, DropdownTriggerProps } from '@semcore/dropdown';\nimport { WithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\nimport BaseTrigger, { BaseTriggerProps } from '@semcore/base-trigger';\nimport Input, { InputProps, InputValueProps } from '@semcore/input';\nimport { InputMaskValueProps } from '@semcore/input-mask';\nimport Checkbox from '@semcore/checkbox';\n\nexport type DateConstructorParams = string | number | Date;\n\n/** @deprecated */\nexport interface ICalendarProps extends CalendarProps, UnknownProperties {}\nexport type CalendarProps = BoxProps & {\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /**\n * Array of dates blocked for selection\n * Accepts the date or the range of dates for specifying infinity ([Date | false, Date | false]), crontab(6,7)\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * @ignore\n * */\n highlighted?: DateConstructorParams[];\n /**\n * @ignore\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: Date;\n\n renderOutdated?: boolean;\n};\n\n/** @deprecated */\nexport interface ICalendarDaysContext extends CalendarDaysContext, UnknownProperties {}\nexport type CalendarDaysContext = {\n days: CalendarUnitProps[];\n};\n\n/** @deprecated */\nexport interface ICalendarMonthsContext extends CalendarMonthsContext, UnknownProperties {}\nexport type CalendarMonthsContext = {\n months: CalendarUnitProps[];\n};\n\n/** @deprecated */\nexport interface ICalendarUnitProps extends CalendarUnitProps, UnknownProperties {}\nexport type CalendarUnitProps = BoxProps & {\n selected?: boolean;\n outdated?: boolean;\n disabled?: boolean;\n today?: boolean;\n startSelected?: boolean;\n endSelected?: boolean;\n highlighted?: boolean;\n startHighlighted?: boolean;\n endHighlighted?: boolean;\n date?: Date;\n children?: React.ReactNode;\n};\n\n/** @deprecated */\nexport interface ICalendarContext extends CalendarContext, UnknownProperties {}\nexport type CalendarContext = {\n getUnitProps: PropGetterFn;\n};\n\ndeclare const Calendar: Intergalactic.Component<\n 'div',\n CalendarProps,\n CalendarContext & CalendarDaysContext,\n [handlers: AbstractDatePickerHandlers]\n> & {\n Unit: Intergalactic.Component<'div', CalendarUnitProps>;\n};\n\n/** @deprecated */\nexport interface IDatePickerProps extends DatePickerProps, UnknownProperties {}\nexport type DatePickerProps = Intergalactic.InternalTypings.EfficientOmit<\n DropdownProps,\n 'disabled'\n> &\n WithI18nEnhanceProps & {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams;\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams;\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n };\n\n/** @deprecated */\nexport interface IDateRangePickerProps extends DateRangePickerProps, UnknownProperties {}\nexport type DateRangePickerProps = Intergalactic.InternalTypings.EfficientOmit<\n DropdownProps,\n 'disabled'\n> &\n WithI18nEnhanceProps & {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams[];\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l' | 'xl';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Remove the 'Reset' button\n * */\n unclearable?: boolean;\n /**\n * To be activated upon selecting the date\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Intermediate value between `highlighted` and `value` that user see before explicitly applying it.\n */\n preselectedValue?: DateConstructorParams[];\n /**\n * Normally called when user preselects a date range and when user applies this range.\n */\n onPreselectedValueChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ButtonProps & { value: Date[] })[];\n };\n\n/** @deprecated */\nexport interface IDateRangePickerPeriodProps\n extends DateRangePickerPeriodProps,\n UnknownProperties {}\nexport type DateRangePickerPeriodProps = BoxProps & {\n /**\n * Current selected period\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated by clicking the button for switching the selected period.\n * */\n onChange?: (date: Date[]) => void;\n /**\n * To be activated by hovering a cursor over the button for changing the current displayed month.\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * To be activated by hovering a cursor over the button for selecting the dates.\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ButtonProps & { value: Date[] })[];\n};\n\n/** @deprecated */\nexport interface IDatePickerContext extends DatePickerContext, UnknownProperties {}\nexport type DatePickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getTodayProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IAbstractDatePickerHandlers\n extends AbstractDatePickerHandlers,\n UnknownProperties {}\nexport type AbstractDatePickerHandlers = {\n displayedPeriod: (value: DateConstructorParams) => void;\n visible: (index: boolean) => void;\n highlighted: (list: DateConstructorParams[]) => void;\n value: (index: DateConstructorParams) => void;\n};\n\n/** @deprecated */\nexport interface IDatePickerHandlers extends DatePickerHandlers, UnknownProperties {}\nexport type DatePickerHandlers = {\n visible: (index: boolean) => void;\n};\n\n/** @deprecated */\nexport interface IInputTriggerProps extends InputTriggerProps, UnknownProperties {}\nexport type BaseInputTriggerProps = InputProps & {\n /**\n * Date input placeholder characters\n * @default { year: 'Y'; month: 'M'; day: 'D' }\n */\n placeholders?: { year: string; month: string; day: string };\n locale?: string;\n onDisplayedPeriodChange?: (date: Date) => void;\n};\nexport type InputTriggerProps = BaseInputTriggerProps & {\n value?: Date;\n onChange?: (date: Date, event: ChangeEvent) => void;\n};\n\nexport type RangeInputTriggerProps = BaseInputTriggerProps & {\n value?: Date[];\n onChange?: (date: Date[], event: ChangeEvent) => void;\n};\n\n/** @deprecated */\nexport interface ISingleDateInputProps extends SingleDateInputProps, UnknownProperties {}\nexport type SingleDateInputProps = InputTriggerProps & {};\n\n/** @deprecated */\nexport interface IDateRangeProps extends DateRangeProps, UnknownProperties {}\nexport type DateRangeProps = RangeInputTriggerProps & {};\n\n/** @deprecated */\nexport interface IDatePickerMaskedInputProps\n extends DatePickerMaskedInputProps,\n UnknownProperties {}\nexport type DatePickerMaskedInputProps = {\n date?: Date;\n onDateChange?: (date: Date, event: ChangeEvent) => void;\n onDisplayedPeriodChange?: (date: Date) => void;\n locale?: string;\n parts?: { year: Boolean; month: Boolean; day: Boolean };\n disabledDates?: (Date | (Date | false)[] | string)[];\n};\n\ndeclare const InputTrigger: Intergalactic.Component<\n 'div',\n DropdownTriggerProps & InputTriggerProps\n> & {\n Addon: typeof Input.Addon;\n Value: typeof Input.Value;\n SingleDateInput: Intergalactic.Component<'div', InputProps & SingleDateInputProps> & {\n Indicator: typeof Input.Addon;\n MaskedInput: Intergalactic.Component<'input', InputMaskValueProps & DatePickerMaskedInputProps>;\n };\n};\n\ndeclare const RangeInputTrigger: Intergalactic.Component<\n 'div',\n DropdownTriggerProps & RangeInputTriggerProps\n> & {\n Addon: typeof Input.Addon;\n Value: typeof Input.Value;\n DateRange: Intergalactic.Component<'div', InputValueProps & DateRangeProps> & {\n Indicator: typeof Input.Addon;\n RangeSep: typeof Input.Addon;\n FromMaskedInput: Intergalactic.Component<\n 'input',\n InputMaskValueProps & DatePickerMaskedInputProps\n >;\n ToMaskedInput: Intergalactic.Component<\n 'input',\n InputMaskValueProps & DatePickerMaskedInputProps\n >;\n };\n};\n\ndeclare const DatePicker: Intergalactic.Component<\n 'div',\n DatePickerProps,\n DatePickerContext & CalendarDaysContext\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DatePickerProps, DatePickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Today: typeof Box;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\n/** @deprecated */\nexport interface IDateRangePickerContext extends DateRangePickerContext, UnknownProperties {}\nexport type DateRangePickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n};\n\ndeclare const DateRangePicker: Intergalactic.Component<\n 'div',\n DateRangePickerProps,\n DateRangePickerContext & CalendarDaysContext,\n [handlers: DatePickerHandlers]\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof RangeInputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DateRangePickerProps, DateRangePickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: Intergalactic.Component<'div', DateRangePickerPeriodProps>;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\n/** @deprecated */\nexport interface IMonthPickerContext extends MonthPickerContext, UnknownProperties {}\nexport type MonthPickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n};\n\ndeclare const MonthPicker: Intergalactic.Component<\n 'div',\n DatePickerProps,\n MonthPickerContext & CalendarMonthsContext,\n [handlers: DatePickerHandlers]\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DatePickerProps, MonthPickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\n/** @deprecated */\nexport interface IMonthRangePickerContext extends MonthRangePickerContext, UnknownProperties {}\nexport type MonthRangePickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n};\n\ndeclare const MonthRangePicker: Intergalactic.Component<\n 'div',\n DateRangePickerProps,\n MonthRangePickerContext & CalendarMonthsContext,\n [handlers: DatePickerHandlers]\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof RangeInputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DateRangePickerProps, MonthRangePickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: Intergalactic.Component<'div', DateRangePickerPeriodProps>;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport type DateRangeComparatorProps = DropdownProps &\n WithI18nEnhanceProps & {\n /**\n * Selected date ranges\n * */\n value?: { value?: DateConstructorParams[]; compare?: DateConstructorParams[] };\n /**\n * Default value for selected date ranges\n * */\n defaultValue?: { value?: DateConstructorParams[]; compare?: DateConstructorParams[] };\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n /**\n * Called with selected date when user clicks `Apply` button.\n * */\n onChange?: (ranges: {\n value?: DateConstructorParams[];\n compare?: DateConstructorParams[];\n }) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l' | 'xl';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n compareHighlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onCompareHighlightedChange?: (date: Date[]) => void;\n /**\n * Intermediate value between `highlighted` and `value` that user see before explicitly applying it.\n */\n preselectedValue?: DateConstructorParams[];\n /**\n * Normally called when user preselects a date range and when user applies this range.\n */\n onPreselectedValueChange?: (date: Date[]) => void;\n /**\n * Intermediate value between `compareHighlighted` and `compare` that user see before explicitly applying it.\n */\n preselectedCompare?: DateConstructorParams[];\n /**\n * Normally called when user preselects a compare range and when user applies ranges.\n */\n onPreselectedCompareChange?: (date: Date[]) => void;\n /**\n * Controls that compare range input is enabled.\n */\n compareToggle?: boolean;\n /**\n * Toggles when compare range input enables or disables.\n */\n onCompareToggleChange?: (compareToggle: boolean) => void;\n /**\n * Controls which date range is focused.\n */\n focusedRange?: 'value' | 'compare';\n /**\n * Called when user focuses or is focused on some of the date ranges.\n */\n onFocusedRangeChange?: (focusedRange: 'value' | 'compare') => void;\n /**\n * Remove the 'Reset' button\n * */\n unclearable?: boolean;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ButtonProps & { value: Date[] })[];\n };\n\nexport type DateRangeComparatorContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n};\n\nexport type DateRangeComparatorTriggerProps = DropdownTriggerProps &\n BaseTriggerProps & {\n /**\n * Text between the selected date range and the compared date range when both are selected.\n * @default 'vs.'\n */\n separator?: string;\n /**\n * Trigger text when no ranges are selected.\n */\n placeholder?: string;\n };\n\ndeclare const DateRangeComparator: Intergalactic.Component<\n 'div',\n DateRangeComparatorProps,\n DateRangeComparatorContext & CalendarDaysContext\n> & {\n Popper: typeof Dropdown.Popper;\n Header: typeof Flex;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Apply: typeof Button;\n Reset: typeof Button;\n\n CalendarHeader: typeof Box;\n Title: typeof Box;\n\n Trigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n ValueDateRange: Intergalactic.Component<'div', InputTriggerProps>;\n CompareToggle: typeof Checkbox;\n CompareDateRange: Intergalactic.Component<'div', InputTriggerProps>;\n Body: typeof Flex;\n RangeCalendar: typeof Flex;\n Periods: typeof Flex & {\n Divider: typeof Divider;\n Column: typeof Flex;\n Options: typeof Flex;\n Controls: typeof Flex;\n };\n Footer: typeof Flex;\n};\n\ndeclare const MonthDateRangeComparator: typeof DateRangeComparator;\n\nexport {\n DatePicker,\n DateRangePicker,\n MonthPicker,\n MonthRangePicker,\n DateRangeComparator,\n MonthDateRangeComparator,\n};\n"],"mappings":""}
|
@@ -3,6 +3,7 @@ import dayjs from 'dayjs';
|
|
3
3
|
import { Flex, Box, BoxProps } from 'intergalactic/flex-box';
|
4
4
|
import { UnknownProperties, Intergalactic, PropGetterFn } from 'intergalactic/core';
|
5
5
|
import Button, { ButtonProps } from 'intergalactic/button';
|
6
|
+
import Divider from 'intergalactic/divider';
|
6
7
|
import Dropdown, { DropdownProps, DropdownTriggerProps } from 'intergalactic/dropdown';
|
7
8
|
import { WithI18nEnhanceProps } from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
8
9
|
import BaseTrigger, { BaseTriggerProps } from 'intergalactic/base-trigger';
|
@@ -634,7 +635,12 @@ declare const DateRangeComparator: Intergalactic.Component<
|
|
634
635
|
CompareDateRange: Intergalactic.Component<'div', InputTriggerProps>;
|
635
636
|
Body: typeof Flex;
|
636
637
|
RangeCalendar: typeof Flex;
|
637
|
-
Periods: typeof Flex
|
638
|
+
Periods: typeof Flex & {
|
639
|
+
Divider: typeof Divider;
|
640
|
+
Column: typeof Flex;
|
641
|
+
Options: typeof Flex;
|
642
|
+
Controls: typeof Flex;
|
643
|
+
};
|
638
644
|
Footer: typeof Flex;
|
639
645
|
};
|
640
646
|
|
@@ -16,15 +16,15 @@ var _core = _interopRequireWildcard(require("intergalactic/core"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
17
17
|
var _flexBox = require("intergalactic/flex-box");
|
18
18
|
/*__reshadow-styles__:"./style/divider.shadow.css"*/
|
19
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
20
|
-
"__SDivider": "
|
21
|
-
"_use_primary": "
|
22
|
-
"--theme": "--
|
23
|
-
"_theme_default": "
|
24
|
-
"_theme_invert": "
|
25
|
-
"_orientation_horizontal": "
|
26
|
-
"_use_secondary": "
|
27
|
-
"_orientation_vertical": "
|
19
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SDivider_ugyd4_gg_{display:block}.___SDivider_ugyd4_gg_._use_primary_ugyd4_gg_{background-color:var(--theme_ugyd4, var(--intergalactic-border-primary, #c4c7cf))}.___SDivider_ugyd4_gg_._use_primary_ugyd4_gg_.___SDivider_ugyd4_gg_._theme_default_ugyd4_gg_{background:var(--intergalactic-border-primary, #c4c7cf)}.___SDivider_ugyd4_gg_._use_primary_ugyd4_gg_.___SDivider_ugyd4_gg_._theme_invert_ugyd4_gg_{background-color:var(--intergalactic-border-primary-invert, #ffffff);opacity:.2}.___SDivider_ugyd4_gg_._orientation_horizontal_ugyd4_gg_.___SDivider_ugyd4_gg_._use_secondary_ugyd4_gg_{background-image:linear-gradient(to right,var(--intergalactic-border-primary, #c4c7cf) 3px,transparent 1px);background-size:5px 1px}.___SDivider_ugyd4_gg_._orientation_horizontal_ugyd4_gg_.___SDivider_ugyd4_gg_._use_secondary_ugyd4_gg_.___SDivider_ugyd4_gg_._theme_default_ugyd4_gg_{background:linear-gradient(to right,var(--intergalactic-border-primary, #c4c7cf) 3px,transparent 1px);background-size:5px 1px}.___SDivider_ugyd4_gg_._orientation_horizontal_ugyd4_gg_.___SDivider_ugyd4_gg_._use_secondary_ugyd4_gg_.___SDivider_ugyd4_gg_._theme_invert_ugyd4_gg_{background-image:linear-gradient(to right,var(--intergalactic-border-primary-invert, #ffffff) 3px,transparent 1px);opacity:.2;background-size:5px 1px}.___SDivider_ugyd4_gg_._orientation_vertical_ugyd4_gg_.___SDivider_ugyd4_gg_._use_secondary_ugyd4_gg_,.___SDivider_ugyd4_gg_._orientation_vertical_ugyd4_gg_.___SDivider_ugyd4_gg_._use_secondary_ugyd4_gg_.___SDivider_ugyd4_gg_._theme_default_ugyd4_gg_{background-image:linear-gradient(to bottom,var(--intergalactic-border-primary, #c4c7cf) 3px,transparent 1px);background-size:1px 5px}.___SDivider_ugyd4_gg_._orientation_vertical_ugyd4_gg_.___SDivider_ugyd4_gg_._use_secondary_ugyd4_gg_.___SDivider_ugyd4_gg_._theme_invert_ugyd4_gg_{background-image:linear-gradient(to bottom,var(--intergalactic-border-primary-invert, #ffffff) 3px,transparent 1px);opacity:.2;background-size:1px 5px}.___SDivider_ugyd4_gg_._orientation_horizontal_ugyd4_gg_{width:100%;height:1px}.___SDivider_ugyd4_gg_._orientation_vertical_ugyd4_gg_{width:1px;height:auto;min-height:100%;align-self:stretch;flex-shrink:0}" /*__inner_css_end__*/, "ugyd4_gg_") /*__reshadow_css_end__*/, {
|
20
|
+
"__SDivider": "___SDivider_ugyd4_gg_",
|
21
|
+
"_use_primary": "_use_primary_ugyd4_gg_",
|
22
|
+
"--theme": "--theme_ugyd4",
|
23
|
+
"_theme_default": "_theme_default_ugyd4_gg_",
|
24
|
+
"_theme_invert": "_theme_invert_ugyd4_gg_",
|
25
|
+
"_orientation_horizontal": "_orientation_horizontal_ugyd4_gg_",
|
26
|
+
"_use_secondary": "_use_secondary_ugyd4_gg_",
|
27
|
+
"_orientation_vertical": "_orientation_vertical_ugyd4_gg_"
|
28
28
|
});
|
29
29
|
var Divider = /*#__PURE__*/function (_Component) {
|
30
30
|
(0, _inherits2["default"])(Divider, _Component);
|
@@ -10,15 +10,15 @@ import React from 'react';
|
|
10
10
|
import createComponent, { Component, Root, sstyled } from 'intergalactic/core';
|
11
11
|
import { Box } from 'intergalactic/flex-box';
|
12
12
|
/*__reshadow-styles__:"./style/divider.shadow.css"*/
|
13
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
14
|
-
"__SDivider": "
|
15
|
-
"_use_primary": "
|
16
|
-
"--theme": "--
|
17
|
-
"_theme_default": "
|
18
|
-
"_theme_invert": "
|
19
|
-
"_orientation_horizontal": "
|
20
|
-
"_use_secondary": "
|
21
|
-
"_orientation_vertical": "
|
13
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDivider_ugyd4_gg_{display:block}.___SDivider_ugyd4_gg_._use_primary_ugyd4_gg_{background-color:var(--theme_ugyd4, var(--intergalactic-border-primary, #c4c7cf))}.___SDivider_ugyd4_gg_._use_primary_ugyd4_gg_.___SDivider_ugyd4_gg_._theme_default_ugyd4_gg_{background:var(--intergalactic-border-primary, #c4c7cf)}.___SDivider_ugyd4_gg_._use_primary_ugyd4_gg_.___SDivider_ugyd4_gg_._theme_invert_ugyd4_gg_{background-color:var(--intergalactic-border-primary-invert, #ffffff);opacity:.2}.___SDivider_ugyd4_gg_._orientation_horizontal_ugyd4_gg_.___SDivider_ugyd4_gg_._use_secondary_ugyd4_gg_{background-image:linear-gradient(to right,var(--intergalactic-border-primary, #c4c7cf) 3px,transparent 1px);background-size:5px 1px}.___SDivider_ugyd4_gg_._orientation_horizontal_ugyd4_gg_.___SDivider_ugyd4_gg_._use_secondary_ugyd4_gg_.___SDivider_ugyd4_gg_._theme_default_ugyd4_gg_{background:linear-gradient(to right,var(--intergalactic-border-primary, #c4c7cf) 3px,transparent 1px);background-size:5px 1px}.___SDivider_ugyd4_gg_._orientation_horizontal_ugyd4_gg_.___SDivider_ugyd4_gg_._use_secondary_ugyd4_gg_.___SDivider_ugyd4_gg_._theme_invert_ugyd4_gg_{background-image:linear-gradient(to right,var(--intergalactic-border-primary-invert, #ffffff) 3px,transparent 1px);opacity:.2;background-size:5px 1px}.___SDivider_ugyd4_gg_._orientation_vertical_ugyd4_gg_.___SDivider_ugyd4_gg_._use_secondary_ugyd4_gg_,.___SDivider_ugyd4_gg_._orientation_vertical_ugyd4_gg_.___SDivider_ugyd4_gg_._use_secondary_ugyd4_gg_.___SDivider_ugyd4_gg_._theme_default_ugyd4_gg_{background-image:linear-gradient(to bottom,var(--intergalactic-border-primary, #c4c7cf) 3px,transparent 1px);background-size:1px 5px}.___SDivider_ugyd4_gg_._orientation_vertical_ugyd4_gg_.___SDivider_ugyd4_gg_._use_secondary_ugyd4_gg_.___SDivider_ugyd4_gg_._theme_invert_ugyd4_gg_{background-image:linear-gradient(to bottom,var(--intergalactic-border-primary-invert, #ffffff) 3px,transparent 1px);opacity:.2;background-size:1px 5px}.___SDivider_ugyd4_gg_._orientation_horizontal_ugyd4_gg_{width:100%;height:1px}.___SDivider_ugyd4_gg_._orientation_vertical_ugyd4_gg_{width:1px;height:auto;min-height:100%;align-self:stretch;flex-shrink:0}" /*__inner_css_end__*/, "ugyd4_gg_") /*__reshadow_css_end__*/, {
|
14
|
+
"__SDivider": "___SDivider_ugyd4_gg_",
|
15
|
+
"_use_primary": "_use_primary_ugyd4_gg_",
|
16
|
+
"--theme": "--theme_ugyd4",
|
17
|
+
"_theme_default": "_theme_default_ugyd4_gg_",
|
18
|
+
"_theme_invert": "_theme_invert_ugyd4_gg_",
|
19
|
+
"_orientation_horizontal": "_orientation_horizontal_ugyd4_gg_",
|
20
|
+
"_use_secondary": "_use_secondary_ugyd4_gg_",
|
21
|
+
"_orientation_vertical": "_orientation_vertical_ugyd4_gg_"
|
22
22
|
});
|
23
23
|
var Divider = /*#__PURE__*/function (_Component) {
|
24
24
|
_inherits(Divider, _Component);
|
package/dot/lib/cjs/Dot.js
CHANGED
@@ -24,17 +24,17 @@ var _getOriginChildren = _interopRequireDefault(require("intergalactic/utils/lib
|
|
24
24
|
var _useCssVariable = require("intergalactic/utils/lib/useCssVariable");
|
25
25
|
var _ThemeProvider = require("intergalactic/utils/lib/ThemeProvider");
|
26
26
|
/*__reshadow-styles__:"./style/dot.shadow.css"*/
|
27
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
28
|
-
"__SDot": "
|
29
|
-
"_size_xl": "
|
30
|
-
"_size_l": "
|
31
|
-
"_size_m": "
|
32
|
-
"_up": "
|
33
|
-
"__SA11yAlert": "
|
27
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SDot_1wtio_gg_{display:inline-flex;align-items:center;justify-content:center;font-size:var(--intergalactic-fs-50, 10px);line-height:normal;background-color:var(--intergalactic-icon-primary-warning, #ff642d);color:var(--intergalactic-text-primary-invert, #ffffff);box-sizing:border-box;z-index:1;border-radius:100%;vertical-align:middle;isolation:isolate}.___SDot_1wtio_gg_._size_xl_1wtio_gg_{height:16px;min-width:16px;padding:3px 4px;border-radius:var(--intergalactic-counter-rounded, 12px)}.___SDot_1wtio_gg_._size_l_1wtio_gg_{height:12px;min-width:12px;border-radius:100%}.___SDot_1wtio_gg_._size_m_1wtio_gg_{height:6px;min-width:6px;border-radius:100%}.___SDot_1wtio_gg_.__up_1wtio_gg_{position:absolute;top:0;right:0;margin-top:-3px;margin-right:-3px}.___SA11yAlert_1wtio_gg_{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}" /*__inner_css_end__*/, "1wtio_gg_") /*__reshadow_css_end__*/, {
|
28
|
+
"__SDot": "___SDot_1wtio_gg_",
|
29
|
+
"_size_xl": "_size_xl_1wtio_gg_",
|
30
|
+
"_size_l": "_size_l_1wtio_gg_",
|
31
|
+
"_size_m": "_size_m_1wtio_gg_",
|
32
|
+
"_up": "__up_1wtio_gg_",
|
33
|
+
"__SA11yAlert": "___SA11yAlert_1wtio_gg_"
|
34
34
|
});
|
35
|
-
var styleDot = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/"@keyframes
|
36
|
-
"@enter": "
|
37
|
-
"@exit": "
|
35
|
+
var styleDot = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/"@keyframes enter_1awon{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes exit_1awon{0%{transform:scale(1)}to{transform:scale(0)}}" /*__inner_css_end__*/, "1awon_gg_") /*__reshadow_css_end__*/, {
|
36
|
+
"@enter": "enter_1awon",
|
37
|
+
"@exit": "exit_1awon"
|
38
38
|
});
|
39
39
|
var Dot = /*#__PURE__*/function (_Component) {
|
40
40
|
(0, _inherits2["default"])(Dot, _Component);
|
package/dot/lib/es6/Dot.js
CHANGED
@@ -18,17 +18,17 @@ import getOriginChildren from 'intergalactic/utils/lib/getOriginChildren';
|
|
18
18
|
import { cssVariableEnhance } from 'intergalactic/utils/lib/useCssVariable';
|
19
19
|
import { contextThemeEnhance } from 'intergalactic/utils/lib/ThemeProvider';
|
20
20
|
/*__reshadow-styles__:"./style/dot.shadow.css"*/
|
21
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
22
|
-
"__SDot": "
|
23
|
-
"_size_xl": "
|
24
|
-
"_size_l": "
|
25
|
-
"_size_m": "
|
26
|
-
"_up": "
|
27
|
-
"__SA11yAlert": "
|
21
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDot_1wtio_gg_{display:inline-flex;align-items:center;justify-content:center;font-size:var(--intergalactic-fs-50, 10px);line-height:normal;background-color:var(--intergalactic-icon-primary-warning, #ff642d);color:var(--intergalactic-text-primary-invert, #ffffff);box-sizing:border-box;z-index:1;border-radius:100%;vertical-align:middle;isolation:isolate}.___SDot_1wtio_gg_._size_xl_1wtio_gg_{height:16px;min-width:16px;padding:3px 4px;border-radius:var(--intergalactic-counter-rounded, 12px)}.___SDot_1wtio_gg_._size_l_1wtio_gg_{height:12px;min-width:12px;border-radius:100%}.___SDot_1wtio_gg_._size_m_1wtio_gg_{height:6px;min-width:6px;border-radius:100%}.___SDot_1wtio_gg_.__up_1wtio_gg_{position:absolute;top:0;right:0;margin-top:-3px;margin-right:-3px}.___SA11yAlert_1wtio_gg_{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}" /*__inner_css_end__*/, "1wtio_gg_") /*__reshadow_css_end__*/, {
|
22
|
+
"__SDot": "___SDot_1wtio_gg_",
|
23
|
+
"_size_xl": "_size_xl_1wtio_gg_",
|
24
|
+
"_size_l": "_size_l_1wtio_gg_",
|
25
|
+
"_size_m": "_size_m_1wtio_gg_",
|
26
|
+
"_up": "__up_1wtio_gg_",
|
27
|
+
"__SA11yAlert": "___SA11yAlert_1wtio_gg_"
|
28
28
|
});
|
29
|
-
var styleDot = ( /*__reshadow_css_start__*/sstyled.insert( /*__inner_css_start__*/"@keyframes
|
30
|
-
"@enter": "
|
31
|
-
"@exit": "
|
29
|
+
var styleDot = ( /*__reshadow_css_start__*/sstyled.insert( /*__inner_css_start__*/"@keyframes enter_1awon{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes exit_1awon{0%{transform:scale(1)}to{transform:scale(0)}}" /*__inner_css_end__*/, "1awon_gg_") /*__reshadow_css_end__*/, {
|
30
|
+
"@enter": "enter_1awon",
|
31
|
+
"@exit": "exit_1awon"
|
32
32
|
});
|
33
33
|
var Dot = /*#__PURE__*/function (_Component) {
|
34
34
|
_inherits(Dot, _Component);
|
@@ -21,18 +21,18 @@ var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynam
|
|
21
21
|
var _i18nEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/i18nEnhance"));
|
22
22
|
var _useEnhancedEffect = _interopRequireDefault(require("intergalactic/utils/lib/use/useEnhancedEffect"));
|
23
23
|
/*__reshadow-styles__:"./style/drag-and-drop.shadow.css"*/
|
24
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
25
|
-
"__SDraggable": "
|
26
|
-
"_placement_top": "
|
27
|
-
"_placement_right": "
|
28
|
-
"_placement_left": "
|
29
|
-
"_placement_bottom": "
|
30
|
-
"__SDropZone": "
|
31
|
-
"_dropPreview": "
|
32
|
-
"_dark": "
|
33
|
-
"__SA11yHint": "
|
34
|
-
"_draggable": "
|
35
|
-
"_hideHoverEffect": "
|
24
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SDraggable_ji65k_gg_.__draggable_ji65k_gg_{position:relative;cursor:grab;-moz-user-select:none;-webkit-user-select:none;user-select:none}.___SDraggable_ji65k_gg_.__draggable_ji65k_gg_::after{content:\"\";position:absolute;display:none;background-image:radial-gradient(circle at center,var(--intergalactic-icon-primary-neutral, #6c6e79) 1px,transparent 0);background-size:6px 6px;background-position:2px 2px;background-repeat:repeat repeat}@media (hover:hover){.___SDraggable_ji65k_gg_.__draggable_ji65k_gg_:hover::after{display:block}}.___SDraggable_ji65k_gg_.__draggable_ji65k_gg_.__hideHoverEffect_ji65k_gg_::after{display:none}.___SDraggable_ji65k_gg_._placement_top_ji65k_gg_{padding-top:var(--intergalactic-spacing-4x, 16px)}.___SDraggable_ji65k_gg_._placement_right_ji65k_gg_{padding-right:var(--intergalactic-spacing-4x, 16px)}.___SDraggable_ji65k_gg_._placement_right_ji65k_gg_::after{right:0}.___SDraggable_ji65k_gg_._placement_bottom_ji65k_gg_{padding-bottom:var(--intergalactic-spacing-4x, 16px)}.___SDraggable_ji65k_gg_._placement_bottom_ji65k_gg_::after{bottom:0}.___SDraggable_ji65k_gg_._placement_left_ji65k_gg_{padding-left:var(--intergalactic-spacing-4x, 16px)}.___SDraggable_ji65k_gg_._placement_left_ji65k_gg_::after{left:0}.___SDraggable_ji65k_gg_._placement_top_ji65k_gg_::after{top:0;left:0;width:100%;height:16px}.___SDraggable_ji65k_gg_._placement_bottom_ji65k_gg_::after{left:0;width:100%;height:16px}.___SDraggable_ji65k_gg_._placement_left_ji65k_gg_::after,.___SDraggable_ji65k_gg_._placement_right_ji65k_gg_::after{top:0;width:16px;height:100%}.___SDropZone_ji65k_gg_{border:1px dashed var(--intergalactic-border-primary, #c4c7cf);border-radius:var(--intergalactic-surface-rounded, 6px)}.___SDraggable_ji65k_gg_.__dropPreview_ji65k_gg_,.___SDropZone_ji65k_gg_.__dropPreview_ji65k_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SDraggable_ji65k_gg_.__dark_ji65k_gg_.__dropPreview_ji65k_gg_,.___SDropZone_ji65k_gg_.__dark_ji65k_gg_.__dropPreview_ji65k_gg_{background-color:var(--intergalactic-bg-primary-invert-active, #484a54)}.___SA11yHint_ji65k_gg_{position:absolute;margin-top:-1px;height:1px;width:1px;clip:rect(0 0 0 0)}" /*__inner_css_end__*/, "ji65k_gg_") /*__reshadow_css_end__*/, {
|
25
|
+
"__SDraggable": "___SDraggable_ji65k_gg_",
|
26
|
+
"_placement_top": "_placement_top_ji65k_gg_",
|
27
|
+
"_placement_right": "_placement_right_ji65k_gg_",
|
28
|
+
"_placement_left": "_placement_left_ji65k_gg_",
|
29
|
+
"_placement_bottom": "_placement_bottom_ji65k_gg_",
|
30
|
+
"__SDropZone": "___SDropZone_ji65k_gg_",
|
31
|
+
"_dropPreview": "__dropPreview_ji65k_gg_",
|
32
|
+
"_dark": "__dark_ji65k_gg_",
|
33
|
+
"__SA11yHint": "___SA11yHint_ji65k_gg_",
|
34
|
+
"_draggable": "__draggable_ji65k_gg_",
|
35
|
+
"_hideHoverEffect": "__hideHoverEffect_ji65k_gg_"
|
36
36
|
});
|
37
37
|
var noop = function noop() {
|
38
38
|
/* do nothing */
|