intergalactic 15.116.0 → 15.117.0

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.
Files changed (136) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/button/lib/cjs/component/Button/Button.js +27 -27
  3. package/button/lib/cjs/component/ButtonLink/ButtonLink.js +20 -20
  4. package/button/lib/es6/component/Button/Button.js +27 -27
  5. package/button/lib/es6/component/ButtonLink/ButtonLink.js +20 -20
  6. package/button/package.json +1 -1
  7. package/card/lib/cjs/Card.js +6 -6
  8. package/card/lib/es6/Card.js +6 -6
  9. package/card/package.json +1 -1
  10. package/carousel/lib/cjs/Carousel.js +21 -21
  11. package/carousel/lib/es6/Carousel.js +21 -21
  12. package/carousel/package.json +1 -1
  13. package/color-picker/index.d.ts +2 -2
  14. package/color-picker/lib/cjs/ColorPicker.js +24 -24
  15. package/color-picker/lib/cjs/PaletteManager.js +24 -24
  16. package/color-picker/lib/cjs/components/InputColor.js +24 -24
  17. package/color-picker/lib/cjs/index.d.js.map +1 -1
  18. package/color-picker/lib/es6/ColorPicker.js +24 -24
  19. package/color-picker/lib/es6/PaletteManager.js +24 -24
  20. package/color-picker/lib/es6/components/InputColor.js +24 -24
  21. package/color-picker/lib/es6/index.d.js.map +1 -1
  22. package/color-picker/lib/types/index.d.ts +2 -2
  23. package/color-picker/package.json +1 -1
  24. package/components.json +21 -21
  25. package/date-picker/lib/cjs/components/Calendar.js +21 -21
  26. package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
  27. package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
  28. package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
  29. package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
  30. package/date-picker/lib/cjs/translations/de.json +1 -0
  31. package/date-picker/lib/cjs/translations/en.json +1 -1
  32. package/date-picker/lib/cjs/translations/es.json +1 -0
  33. package/date-picker/lib/cjs/translations/fr.json +1 -0
  34. package/date-picker/lib/cjs/translations/it.json +1 -0
  35. package/date-picker/lib/cjs/translations/ja.json +1 -0
  36. package/date-picker/lib/cjs/translations/ko.json +1 -0
  37. package/date-picker/lib/cjs/translations/nl.json +1 -0
  38. package/date-picker/lib/cjs/translations/pl.json +1 -0
  39. package/date-picker/lib/cjs/translations/pt.json +1 -0
  40. package/date-picker/lib/cjs/translations/sv.json +1 -0
  41. package/date-picker/lib/cjs/translations/tr.json +1 -0
  42. package/date-picker/lib/cjs/translations/vi.json +1 -0
  43. package/date-picker/lib/cjs/translations/zh.json +1 -0
  44. package/date-picker/lib/es6/components/Calendar.js +21 -21
  45. package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
  46. package/date-picker/lib/es6/components/InputTrigger.js +29 -29
  47. package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
  48. package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
  49. package/date-picker/lib/es6/translations/de.json +1 -0
  50. package/date-picker/lib/es6/translations/en.json +1 -1
  51. package/date-picker/lib/es6/translations/es.json +1 -0
  52. package/date-picker/lib/es6/translations/fr.json +1 -0
  53. package/date-picker/lib/es6/translations/it.json +1 -0
  54. package/date-picker/lib/es6/translations/ja.json +1 -0
  55. package/date-picker/lib/es6/translations/ko.json +1 -0
  56. package/date-picker/lib/es6/translations/nl.json +1 -0
  57. package/date-picker/lib/es6/translations/pl.json +1 -0
  58. package/date-picker/lib/es6/translations/pt.json +1 -0
  59. package/date-picker/lib/es6/translations/sv.json +1 -0
  60. package/date-picker/lib/es6/translations/tr.json +1 -0
  61. package/date-picker/lib/es6/translations/vi.json +1 -0
  62. package/date-picker/lib/es6/translations/zh.json +1 -0
  63. package/date-picker/package.json +1 -1
  64. package/drag-and-drop/lib/cjs/DragAndDrop.js +16 -16
  65. package/drag-and-drop/lib/es6/DragAndDrop.js +16 -16
  66. package/drag-and-drop/package.json +1 -1
  67. package/ellipsis/lib/cjs/Ellipsis.js +14 -13
  68. package/ellipsis/lib/cjs/Ellipsis.js.map +1 -1
  69. package/ellipsis/lib/es6/Ellipsis.js +14 -13
  70. package/ellipsis/lib/es6/Ellipsis.js.map +1 -1
  71. package/ellipsis/package.json +1 -1
  72. package/errors/lib/cjs/Error.js +9 -9
  73. package/errors/lib/es6/Error.js +9 -9
  74. package/errors/package.json +1 -1
  75. package/feature-popover/lib/cjs/FeaturePopover.js +13 -11
  76. package/feature-popover/lib/cjs/FeaturePopover.js.map +1 -1
  77. package/feature-popover/lib/es6/FeaturePopover.js +13 -11
  78. package/feature-popover/lib/es6/FeaturePopover.js.map +1 -1
  79. package/feature-popover/package.json +1 -1
  80. package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
  81. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
  82. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +2 -2
  83. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +6 -6
  84. package/feedback-form/lib/es6/FeedbackForm.js +7 -7
  85. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
  86. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +2 -2
  87. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +6 -6
  88. package/feedback-form/package.json +1 -1
  89. package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
  90. package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
  91. package/fullscreen-modal/package.json +1 -1
  92. package/inline-input/lib/cjs/InlineInput.js +14 -14
  93. package/inline-input/lib/es6/InlineInput.js +14 -14
  94. package/inline-input/package.json +1 -1
  95. package/input-number/lib/cjs/InputNumber.js +9 -11
  96. package/input-number/lib/cjs/InputNumber.js.map +1 -1
  97. package/input-number/lib/es6/InputNumber.js +9 -11
  98. package/input-number/lib/es6/InputNumber.js.map +1 -1
  99. package/input-number/package.json +1 -1
  100. package/input-tags/lib/cjs/InputTags.js +13 -13
  101. package/input-tags/lib/cjs/InputTags.js.map +1 -1
  102. package/input-tags/lib/es6/InputTags.js +13 -13
  103. package/input-tags/lib/es6/InputTags.js.map +1 -1
  104. package/input-tags/package.json +1 -1
  105. package/link/lib/cjs/Link.js +12 -12
  106. package/link/lib/es6/Link.js +12 -12
  107. package/link/package.json +1 -1
  108. package/notice/lib/cjs/Notice.js +14 -14
  109. package/notice/lib/es6/Notice.js +14 -14
  110. package/notice/package.json +1 -1
  111. package/package.json +1 -1
  112. package/pagination/lib/cjs/Pagination.js +56 -57
  113. package/pagination/lib/cjs/Pagination.js.map +1 -1
  114. package/pagination/lib/es6/Pagination.js +56 -57
  115. package/pagination/lib/es6/Pagination.js.map +1 -1
  116. package/pagination/package.json +1 -1
  117. package/select/lib/cjs/InputSearch.js +6 -6
  118. package/select/lib/cjs/Select.js +8 -8
  119. package/select/lib/es6/InputSearch.js +6 -6
  120. package/select/lib/es6/Select.js +8 -8
  121. package/select/package.json +1 -1
  122. package/tag/lib/cjs/Tag.js +24 -24
  123. package/tag/lib/cjs/Tag.js.map +1 -1
  124. package/tag/lib/cjs/style/tag.shadow.css +6 -2
  125. package/tag/lib/es6/Tag.js +24 -24
  126. package/tag/lib/es6/Tag.js.map +1 -1
  127. package/tag/lib/es6/style/tag.shadow.css +6 -2
  128. package/tag/package.json +1 -1
  129. package/time-picker/lib/cjs/TimePicker.js +12 -12
  130. package/time-picker/lib/es6/TimePicker.js +12 -12
  131. package/time-picker/package.json +1 -1
  132. package/tooltip/lib/cjs/Tooltip.js +9 -9
  133. package/tooltip/lib/cjs/style/tooltip.shadow.css +3 -1
  134. package/tooltip/lib/es6/Tooltip.js +9 -9
  135. package/tooltip/lib/es6/style/tooltip.shadow.css +3 -1
  136. package/tooltip/package.json +1 -1
@@ -29,27 +29,27 @@ import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
29
29
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
30
30
  import logger from 'intergalactic/utils/lib/logger';
31
31
  /*__reshadow-styles__:"./style/carousel.shadow.css"*/
32
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCarousel_13a5s_gg_{overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SContainer_13a5s_gg_{display:flex;transition:transform var(--duration_13a5s) ease-in-out}.___SContentBox_13a5s_gg_,.___SModalBox_13a5s_gg_{position:relative;overflow:hidden;border-radius:var(--intergalactic-surface-rounded, 6px)}.___SContentBox_13a5s_gg_:has(.___SItem_13a5s_gg_.__keyboardFocused_13a5s_gg_):after,.___SModalBox_13a5s_gg_:has(.___SItem_13a5s_gg_.__keyboardFocused_13a5s_gg_):after{content:\"\";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px*2);top:3px;left:3px}.___SModalContainer_13a5s_gg_{display:flex;transition:transform var(--duration_13a5s) ease-in-out}.___SItem_13a5s_gg_{flex:0 0 100%;max-width:100%;box-sizing:border-box;transform:var(--transform_13a5s);border-radius:var(--intergalactic-surface-rounded, 6px);overflow:hidden;outline:0}.___SItem_13a5s_gg_.__zoomIn_13a5s_gg_{cursor:zoom-in}.___SItem_13a5s_gg_.__zoomOut_13a5s_gg_{cursor:zoom-out}.___SIndicators_13a5s_gg_{display:flex;justify-content:center;margin-top:var(--intergalactic-spacing-4x, 16px);outline:0;position:relative}.___SIndicators_13a5s_gg_.__keyboardFocused_13a5s_gg_:after{content:\"\";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px);top:0;left:3px}.___SIndicator_13a5s_gg_{margin:0 calc(.5*var(--intergalactic-spacing-3x, 12px));cursor:pointer;display:block;width:12px;height:12px;border-radius:var(--intergalactic-control-rounded, 6px);background-color:var(--intergalactic-icon-secondary-neutral, #a9abb6);opacity:var(--intergalactic-disabled-opacity, 0.3);-o-object-fit:cover;object-fit:cover;transition:ease-in-out opacity .1s}@media (hover:hover){.___SIndicator_13a5s_gg_:hover{opacity:calc(2*var(--intergalactic-disabled-opacity, 0.3))}}.___SIndicator_13a5s_gg_.__active_13a5s_gg_{opacity:1}.___SIndicator_13a5s_gg_.__inverted_13a5s_gg_{background-color:var(--intergalactic-icon-primary-invert, #ffffff)}.___SNext_13a5s_gg_,.___SPrev_13a5s_gg_{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SNext_13a5s_gg_ .___SNextButton_13a5s_gg_ span:has(>svg:only-child),.___SNext_13a5s_gg_ .___SPrevButton_13a5s_gg_ span:has(>svg:only-child),.___SPrev_13a5s_gg_ .___SNextButton_13a5s_gg_ span:has(>svg:only-child),.___SPrev_13a5s_gg_ .___SPrevButton_13a5s_gg_ span:has(>svg:only-child){margin-left:calc(2*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(2*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SNextButton_13a5s_gg_:focus-visible,.___SPrevButton_13a5s_gg_:focus-visible{box-shadow:none}.___SNextButton_13a5s_gg_:focus-visible:after,.___SPrevButton_13a5s_gg_:focus-visible:after{content:\"\";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px*2);top:3px;left:3px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPrev_13a5s_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNext_13a5s_gg_{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SNext_13a5s_gg_.__disabled_13a5s_gg_,.___SPrev_13a5s_gg_.__disabled_13a5s_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SContainer_13a5s_gg_{transition:none}}" /*__inner_css_end__*/, "13a5s_gg_") /*__reshadow_css_end__*/, {
33
- "__SCarousel": "___SCarousel_13a5s_gg_",
34
- "__SContainer": "___SContainer_13a5s_gg_",
35
- "--duration": "--duration_13a5s",
36
- "__SModalContainer": "___SModalContainer_13a5s_gg_",
37
- "__SItem": "___SItem_13a5s_gg_",
38
- "--transform": "--transform_13a5s",
39
- "_zoomIn": "__zoomIn_13a5s_gg_",
40
- "_zoomOut": "__zoomOut_13a5s_gg_",
41
- "__SIndicators": "___SIndicators_13a5s_gg_",
42
- "_keyboardFocused": "__keyboardFocused_13a5s_gg_",
43
- "__SIndicator": "___SIndicator_13a5s_gg_",
44
- "_active": "__active_13a5s_gg_",
45
- "_inverted": "__inverted_13a5s_gg_",
46
- "__SPrev": "___SPrev_13a5s_gg_",
47
- "__SNext": "___SNext_13a5s_gg_",
48
- "_disabled": "__disabled_13a5s_gg_",
49
- "__SContentBox": "___SContentBox_13a5s_gg_",
50
- "__SModalBox": "___SModalBox_13a5s_gg_",
51
- "__SPrevButton": "___SPrevButton_13a5s_gg_",
52
- "__SNextButton": "___SNextButton_13a5s_gg_"
32
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCarousel_elqsz_gg_{overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SContainer_elqsz_gg_{display:flex;transition:transform var(--duration_elqsz) ease-in-out}.___SContentBox_elqsz_gg_,.___SModalBox_elqsz_gg_{position:relative;overflow:hidden;border-radius:var(--intergalactic-surface-rounded, 6px)}.___SContentBox_elqsz_gg_:has(.___SItem_elqsz_gg_.__keyboardFocused_elqsz_gg_):after,.___SModalBox_elqsz_gg_:has(.___SItem_elqsz_gg_.__keyboardFocused_elqsz_gg_):after{content:\"\";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px*2);top:3px;left:3px}.___SModalContainer_elqsz_gg_{display:flex;transition:transform var(--duration_elqsz) ease-in-out}.___SItem_elqsz_gg_{flex:0 0 100%;max-width:100%;box-sizing:border-box;transform:var(--transform_elqsz);border-radius:var(--intergalactic-surface-rounded, 6px);overflow:hidden;outline:0}.___SItem_elqsz_gg_.__zoomIn_elqsz_gg_{cursor:zoom-in}.___SItem_elqsz_gg_.__zoomOut_elqsz_gg_{cursor:zoom-out}.___SIndicators_elqsz_gg_{display:flex;justify-content:center;margin-top:var(--intergalactic-spacing-4x, 16px);outline:0;position:relative}.___SIndicators_elqsz_gg_.__keyboardFocused_elqsz_gg_:after{content:\"\";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px);top:0;left:3px}.___SIndicator_elqsz_gg_{margin:0 calc(.5*var(--intergalactic-spacing-3x, 12px));cursor:pointer;display:block;width:12px;height:12px;border-radius:var(--intergalactic-control-rounded, 6px);background-color:var(--intergalactic-icon-secondary-neutral, #a9abb6);opacity:var(--intergalactic-disabled-opacity, 0.3);-o-object-fit:cover;object-fit:cover;transition:ease-in-out opacity .1s}@media (hover:hover){.___SIndicator_elqsz_gg_:hover{opacity:calc(2*var(--intergalactic-disabled-opacity, 0.3))}}.___SIndicator_elqsz_gg_.__active_elqsz_gg_{opacity:1}.___SIndicator_elqsz_gg_.__inverted_elqsz_gg_{background-color:var(--intergalactic-icon-primary-invert, #ffffff)}.___SNext_elqsz_gg_,.___SPrev_elqsz_gg_{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SNext_elqsz_gg_ .___SNextButton_elqsz_gg_ span:has(>svg:only-child),.___SNext_elqsz_gg_ .___SPrevButton_elqsz_gg_ span:has(>svg:only-child),.___SPrev_elqsz_gg_ .___SNextButton_elqsz_gg_ span:has(>svg:only-child),.___SPrev_elqsz_gg_ .___SPrevButton_elqsz_gg_ span:has(>svg:only-child){margin-left:calc(2*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(2*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SNextButton_elqsz_gg_:focus-visible,.___SPrevButton_elqsz_gg_:focus-visible{box-shadow:none}.___SNextButton_elqsz_gg_:focus-visible:after,.___SPrevButton_elqsz_gg_:focus-visible:after{content:\"\";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px*2);top:3px;left:3px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPrev_elqsz_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNext_elqsz_gg_{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SNext_elqsz_gg_.__disabled_elqsz_gg_,.___SPrev_elqsz_gg_.__disabled_elqsz_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SContainer_elqsz_gg_{transition:none}}" /*__inner_css_end__*/, "elqsz_gg_") /*__reshadow_css_end__*/, {
33
+ "__SCarousel": "___SCarousel_elqsz_gg_",
34
+ "__SContainer": "___SContainer_elqsz_gg_",
35
+ "--duration": "--duration_elqsz",
36
+ "__SModalContainer": "___SModalContainer_elqsz_gg_",
37
+ "__SItem": "___SItem_elqsz_gg_",
38
+ "--transform": "--transform_elqsz",
39
+ "_zoomIn": "__zoomIn_elqsz_gg_",
40
+ "_zoomOut": "__zoomOut_elqsz_gg_",
41
+ "__SIndicators": "___SIndicators_elqsz_gg_",
42
+ "_keyboardFocused": "__keyboardFocused_elqsz_gg_",
43
+ "__SIndicator": "___SIndicator_elqsz_gg_",
44
+ "_active": "__active_elqsz_gg_",
45
+ "_inverted": "__inverted_elqsz_gg_",
46
+ "__SPrev": "___SPrev_elqsz_gg_",
47
+ "__SNext": "___SNext_elqsz_gg_",
48
+ "_disabled": "__disabled_elqsz_gg_",
49
+ "__SContentBox": "___SContentBox_elqsz_gg_",
50
+ "__SModalBox": "___SModalBox_elqsz_gg_",
51
+ "__SPrevButton": "___SPrevButton_elqsz_gg_",
52
+ "__SNextButton": "___SNextButton_elqsz_gg_"
53
53
  });
54
54
  import { findAllComponents } from 'intergalactic/utils/lib/findComponent';
55
55
  import { createBreakpoints } from 'intergalactic/breakpoints';
@@ -1 +1 @@
1
- {"name":"intergalactic/carousel","description":"Semrush Carousel Component","version":"3.44.2","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js,ts"},"dependencies":{"@semcore/flex-box":"5.38.1","@semcore/icon":"4.52.1","@semcore/utils":"4.43.2","@semcore/button":"5.39.2","@semcore/modal":"4.49.2","@semcore/breakpoints":"1.38.1"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/carousel"},"devDependencies":{"@semcore/flex-box":"*","@semcore/testing-utils":"1.0.0","@types/react":"18.0.21"}}
1
+ {"name":"intergalactic/carousel","description":"Semrush Carousel Component","version":"3.44.3","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js,ts"},"dependencies":{"@semcore/flex-box":"5.38.1","@semcore/icon":"4.52.1","@semcore/utils":"4.43.2","@semcore/button":"5.39.3","@semcore/modal":"4.49.2","@semcore/breakpoints":"1.38.1"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/carousel"},"devDependencies":{"@semcore/flex-box":"*","@semcore/testing-utils":"1.0.0","@types/react":"18.0.21"}}
@@ -10,7 +10,7 @@ export type ItemProps = BoxProps & {
10
10
  /**
11
11
  * Color item in hexadecimal format.
12
12
  */
13
- value?: string;
13
+ value?: string | null;
14
14
  /**
15
15
  * Shows label `A` as text color icon inside all color items
16
16
  */
@@ -35,7 +35,7 @@ export type ColorsProps = BoxProps & {
35
35
  /**
36
36
  * Array of color items
37
37
  */
38
- colors?: string[];
38
+ colors?: Array<string | null>;
39
39
  };
40
40
 
41
41
  /** @deprecated */
@@ -28,30 +28,30 @@ var _components = require("./components");
28
28
  var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
29
29
  var _i18nEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/i18nEnhance"));
30
30
  /*__reshadow-styles__:"./style/color-picker.shadow.css"*/
31
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SColorPickerPopper_1i1dd_gg_{max-width:calc(var(--intergalactic-spacing-4x, 16px)*2 + 28px*6 + 4px*6);padding:var(--intergalactic-spacing-4x, 16px)}.___SItemContainer_1i1dd_gg_{position:relative;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid transparent;outline:0;cursor:pointer}@media (hover:hover){.___SItemContainer_1i1dd_gg_:hover{border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}}.___SItemContainer_1i1dd_gg_::after{content:\"\";position:absolute;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 1px var(--intergalactic-border-secondary, #e0e1e9);background:var(--value_1i1dd)}@media (hover:hover){.___SItemContainer_1i1dd_gg_:hover>.___SCloseIcon_1i1dd_gg_{opacity:1}}.___SItemContainer_1i1dd_gg_.__keyboardFocused_1i1dd_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SItemContainer_1i1dd_gg_.__selected_1i1dd_gg_{border:1px solid var(--intergalactic-border-info-active, #006dca)}.___SItemContainer_1i1dd_gg_.__displayLabel_1i1dd_gg_::after{background:var(--value_1i1dd);opacity:.15}.___SItemContainer_1i1dd_gg_:not(.__value_1i1dd_gg_)::after{border:.9px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColorsContainer_1i1dd_gg_,.___SColors_1i1dd_gg_{display:flex;flex-wrap:wrap;align-items:center;gap:var(--intergalactic-spacing-1x, 4px)}.___SPaletteManager_1i1dd_gg_{justify-content:space-between;margin-top:var(--intergalactic-spacing-3x, 12px);margin-left:calc(var(--intergalactic-spacing-1x, 4px) - 1px)}.___SInputContainer_1i1dd_gg_,.___SPaletteManager_1i1dd_gg_,.___SPlusButton_1i1dd_gg_{display:flex;align-items:center}.___SPlusButton_1i1dd_gg_{justify-content:center;width:28px;height:28px;border-radius:50%;cursor:pointer}@media (hover:hover){.___SPlusButton_1i1dd_gg_:hover{background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SDefaultTrigger_1i1dd_gg_{display:inline-flex;align-items:center;outline:0;cursor:pointer;border:0;background:0 0;padding:0}.___SDefaultTrigger_1i1dd_gg_.__keyboardFocused_1i1dd_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STriggerCircle_1i1dd_gg_{position:relative;width:16px;height:16px;margin-right:calc(var(--intergalactic-spacing-1x, 4px) + 1px);border-radius:50%;background-color:var(--data-value_1i1dd);border:1px solid transparent}.___STriggerCircle_1i1dd_gg_:not([data-value]){border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___STriggerCircleLine_1i1dd_gg_{position:absolute;top:1px;left:1px}.___SCloseIcon_1i1dd_gg_{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);opacity:0;z-index:1}.___SLine_1i1dd_gg_{position:absolute}.___SLabel_1i1dd_gg_{z-index:1;color:var(--data-value_1i1dd);font-size:calc(var(--intergalactic-fs-100, 12px) + 1px);font-weight:var(--intergalactic-bold, 700)}.___SItemColor_1i1dd_gg_{width:20px;height:20px;border-radius:50%;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);background:var(--data-value_1i1dd)}.___SClearConfirm_1i1dd_gg_.__hidden_1i1dd_gg_,.___SConfirmColor_1i1dd_gg_.__hidden_1i1dd_gg_{display:none}" /*__inner_css_end__*/, "1i1dd_gg_") /*__reshadow_css_end__*/, {
32
- "__SColorPickerPopper": "___SColorPickerPopper_1i1dd_gg_",
33
- "__SItemContainer": "___SItemContainer_1i1dd_gg_",
34
- "__SCloseIcon": "___SCloseIcon_1i1dd_gg_",
35
- "_keyboardFocused": "__keyboardFocused_1i1dd_gg_",
36
- "_selected": "__selected_1i1dd_gg_",
37
- "__SColorsContainer": "___SColorsContainer_1i1dd_gg_",
38
- "__SColors": "___SColors_1i1dd_gg_",
39
- "__SPaletteManager": "___SPaletteManager_1i1dd_gg_",
40
- "__SInputContainer": "___SInputContainer_1i1dd_gg_",
41
- "__SDefaultTrigger": "___SDefaultTrigger_1i1dd_gg_",
42
- "__STriggerCircle": "___STriggerCircle_1i1dd_gg_",
43
- "--data-value": "--data-value_1i1dd",
44
- "__STriggerCircleLine": "___STriggerCircleLine_1i1dd_gg_",
45
- "__SLine": "___SLine_1i1dd_gg_",
46
- "__SLabel": "___SLabel_1i1dd_gg_",
47
- "__SItemColor": "___SItemColor_1i1dd_gg_",
48
- "__SConfirmColor": "___SConfirmColor_1i1dd_gg_",
49
- "_hidden": "__hidden_1i1dd_gg_",
50
- "__SClearConfirm": "___SClearConfirm_1i1dd_gg_",
51
- "--value": "--value_1i1dd",
52
- "_displayLabel": "__displayLabel_1i1dd_gg_",
53
- "_value": "__value_1i1dd_gg_",
54
- "__SPlusButton": "___SPlusButton_1i1dd_gg_"
31
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SColorPickerPopper_1dnu7_gg_{max-width:calc(var(--intergalactic-spacing-4x, 16px)*2 + 28px*6 + 4px*6);padding:var(--intergalactic-spacing-4x, 16px)}.___SItemContainer_1dnu7_gg_{position:relative;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid transparent;outline:0;cursor:pointer}@media (hover:hover){.___SItemContainer_1dnu7_gg_:hover{border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}}.___SItemContainer_1dnu7_gg_::after{content:\"\";position:absolute;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 1px var(--intergalactic-border-secondary, #e0e1e9);background:var(--value_1dnu7)}@media (hover:hover){.___SItemContainer_1dnu7_gg_:hover>.___SCloseIcon_1dnu7_gg_{opacity:1}}.___SItemContainer_1dnu7_gg_.__keyboardFocused_1dnu7_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SItemContainer_1dnu7_gg_.__selected_1dnu7_gg_{border:1px solid var(--intergalactic-border-info-active, #006dca)}.___SItemContainer_1dnu7_gg_.__displayLabel_1dnu7_gg_::after{background:var(--value_1dnu7);opacity:.15}.___SItemContainer_1dnu7_gg_:not(.__value_1dnu7_gg_)::after{border:.9px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColorsContainer_1dnu7_gg_,.___SColors_1dnu7_gg_{display:flex;flex-wrap:wrap;align-items:center;gap:var(--intergalactic-spacing-1x, 4px)}.___SPaletteManager_1dnu7_gg_{justify-content:space-between;margin-top:var(--intergalactic-spacing-3x, 12px);margin-left:calc(var(--intergalactic-spacing-1x, 4px) - 1px)}.___SInputContainer_1dnu7_gg_,.___SPaletteManager_1dnu7_gg_,.___SPlusButton_1dnu7_gg_{display:flex;align-items:center}.___SPlusButton_1dnu7_gg_{justify-content:center;width:28px;height:28px;border-radius:50%;cursor:pointer}@media (hover:hover){.___SPlusButton_1dnu7_gg_:hover{background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SDefaultTrigger_1dnu7_gg_{display:inline-flex;align-items:center;outline:0;cursor:pointer;border:0;background:0 0;padding:0}.___SDefaultTrigger_1dnu7_gg_.__keyboardFocused_1dnu7_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STriggerCircle_1dnu7_gg_{position:relative;width:16px;height:16px;margin-right:calc(var(--intergalactic-spacing-1x, 4px) + 1px);border-radius:50%;background-color:var(--data-value_1dnu7);border:1px solid transparent}.___STriggerCircle_1dnu7_gg_:not([data-value]){border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___STriggerCircleLine_1dnu7_gg_{position:absolute;top:1px;left:1px}.___SCloseIcon_1dnu7_gg_{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);opacity:0;z-index:1}.___SLine_1dnu7_gg_{position:absolute}.___SLabel_1dnu7_gg_{z-index:1;color:var(--data-value_1dnu7);font-size:calc(var(--intergalactic-fs-100, 12px) + 1px);font-weight:var(--intergalactic-bold, 700)}.___SItemColor_1dnu7_gg_{width:20px;height:20px;border-radius:50%;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);background:var(--data-value_1dnu7)}.___SClearConfirm_1dnu7_gg_.__hidden_1dnu7_gg_,.___SConfirmColor_1dnu7_gg_.__hidden_1dnu7_gg_{display:none}" /*__inner_css_end__*/, "1dnu7_gg_") /*__reshadow_css_end__*/, {
32
+ "__SColorPickerPopper": "___SColorPickerPopper_1dnu7_gg_",
33
+ "__SItemContainer": "___SItemContainer_1dnu7_gg_",
34
+ "__SCloseIcon": "___SCloseIcon_1dnu7_gg_",
35
+ "_keyboardFocused": "__keyboardFocused_1dnu7_gg_",
36
+ "_selected": "__selected_1dnu7_gg_",
37
+ "__SColorsContainer": "___SColorsContainer_1dnu7_gg_",
38
+ "__SColors": "___SColors_1dnu7_gg_",
39
+ "__SPaletteManager": "___SPaletteManager_1dnu7_gg_",
40
+ "__SInputContainer": "___SInputContainer_1dnu7_gg_",
41
+ "__SDefaultTrigger": "___SDefaultTrigger_1dnu7_gg_",
42
+ "__STriggerCircle": "___STriggerCircle_1dnu7_gg_",
43
+ "--data-value": "--data-value_1dnu7",
44
+ "__STriggerCircleLine": "___STriggerCircleLine_1dnu7_gg_",
45
+ "__SLine": "___SLine_1dnu7_gg_",
46
+ "__SLabel": "___SLabel_1dnu7_gg_",
47
+ "__SItemColor": "___SItemColor_1dnu7_gg_",
48
+ "__SConfirmColor": "___SConfirmColor_1dnu7_gg_",
49
+ "_hidden": "__hidden_1dnu7_gg_",
50
+ "__SClearConfirm": "___SClearConfirm_1dnu7_gg_",
51
+ "--value": "--value_1dnu7",
52
+ "_displayLabel": "__displayLabel_1dnu7_gg_",
53
+ "_value": "__value_1dnu7_gg_",
54
+ "__SPlusButton": "___SPlusButton_1dnu7_gg_"
55
55
  });
56
56
  var defaultColors = [null, '#2BB3FF', '#8649E1', '#C695FF', '#F67CF2', '#FFA9FA', '#FF8786', '#FF8C43', '#FDC23C', '#66C030', '#9BD85D', '#C7EE96'];
57
57
  exports.defaultColors = defaultColors;
@@ -19,30 +19,30 @@ var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynam
19
19
  var _i18nEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/i18nEnhance"));
20
20
  var _uniqueID = _interopRequireDefault(require("intergalactic/utils/lib/uniqueID"));
21
21
  /*__reshadow-styles__:"./style/color-picker.shadow.css"*/
22
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SColorPickerPopper_1i1dd_gg_{max-width:calc(var(--intergalactic-spacing-4x, 16px)*2 + 28px*6 + 4px*6);padding:var(--intergalactic-spacing-4x, 16px)}.___SItemContainer_1i1dd_gg_{position:relative;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid transparent;outline:0;cursor:pointer}@media (hover:hover){.___SItemContainer_1i1dd_gg_:hover{border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}}.___SItemContainer_1i1dd_gg_::after{content:\"\";position:absolute;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 1px var(--intergalactic-border-secondary, #e0e1e9);background:var(--value_1i1dd)}@media (hover:hover){.___SItemContainer_1i1dd_gg_:hover>.___SCloseIcon_1i1dd_gg_{opacity:1}}.___SItemContainer_1i1dd_gg_.__keyboardFocused_1i1dd_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SItemContainer_1i1dd_gg_.__selected_1i1dd_gg_{border:1px solid var(--intergalactic-border-info-active, #006dca)}.___SItemContainer_1i1dd_gg_.__displayLabel_1i1dd_gg_::after{background:var(--value_1i1dd);opacity:.15}.___SItemContainer_1i1dd_gg_:not(.__value_1i1dd_gg_)::after{border:.9px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColorsContainer_1i1dd_gg_,.___SColors_1i1dd_gg_{display:flex;flex-wrap:wrap;align-items:center;gap:var(--intergalactic-spacing-1x, 4px)}.___SPaletteManager_1i1dd_gg_{justify-content:space-between;margin-top:var(--intergalactic-spacing-3x, 12px);margin-left:calc(var(--intergalactic-spacing-1x, 4px) - 1px)}.___SInputContainer_1i1dd_gg_,.___SPaletteManager_1i1dd_gg_,.___SPlusButton_1i1dd_gg_{display:flex;align-items:center}.___SPlusButton_1i1dd_gg_{justify-content:center;width:28px;height:28px;border-radius:50%;cursor:pointer}@media (hover:hover){.___SPlusButton_1i1dd_gg_:hover{background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SDefaultTrigger_1i1dd_gg_{display:inline-flex;align-items:center;outline:0;cursor:pointer;border:0;background:0 0;padding:0}.___SDefaultTrigger_1i1dd_gg_.__keyboardFocused_1i1dd_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STriggerCircle_1i1dd_gg_{position:relative;width:16px;height:16px;margin-right:calc(var(--intergalactic-spacing-1x, 4px) + 1px);border-radius:50%;background-color:var(--data-value_1i1dd);border:1px solid transparent}.___STriggerCircle_1i1dd_gg_:not([data-value]){border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___STriggerCircleLine_1i1dd_gg_{position:absolute;top:1px;left:1px}.___SCloseIcon_1i1dd_gg_{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);opacity:0;z-index:1}.___SLine_1i1dd_gg_{position:absolute}.___SLabel_1i1dd_gg_{z-index:1;color:var(--data-value_1i1dd);font-size:calc(var(--intergalactic-fs-100, 12px) + 1px);font-weight:var(--intergalactic-bold, 700)}.___SItemColor_1i1dd_gg_{width:20px;height:20px;border-radius:50%;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);background:var(--data-value_1i1dd)}.___SClearConfirm_1i1dd_gg_.__hidden_1i1dd_gg_,.___SConfirmColor_1i1dd_gg_.__hidden_1i1dd_gg_{display:none}" /*__inner_css_end__*/, "1i1dd_gg_") /*__reshadow_css_end__*/, {
23
- "__SColorPickerPopper": "___SColorPickerPopper_1i1dd_gg_",
24
- "__SItemContainer": "___SItemContainer_1i1dd_gg_",
25
- "__SCloseIcon": "___SCloseIcon_1i1dd_gg_",
26
- "_keyboardFocused": "__keyboardFocused_1i1dd_gg_",
27
- "_selected": "__selected_1i1dd_gg_",
28
- "__SColorsContainer": "___SColorsContainer_1i1dd_gg_",
29
- "__SColors": "___SColors_1i1dd_gg_",
30
- "__SPaletteManager": "___SPaletteManager_1i1dd_gg_",
31
- "__SInputContainer": "___SInputContainer_1i1dd_gg_",
32
- "__SDefaultTrigger": "___SDefaultTrigger_1i1dd_gg_",
33
- "__STriggerCircle": "___STriggerCircle_1i1dd_gg_",
34
- "--data-value": "--data-value_1i1dd",
35
- "__STriggerCircleLine": "___STriggerCircleLine_1i1dd_gg_",
36
- "__SLine": "___SLine_1i1dd_gg_",
37
- "__SLabel": "___SLabel_1i1dd_gg_",
38
- "__SItemColor": "___SItemColor_1i1dd_gg_",
39
- "__SConfirmColor": "___SConfirmColor_1i1dd_gg_",
40
- "_hidden": "__hidden_1i1dd_gg_",
41
- "__SClearConfirm": "___SClearConfirm_1i1dd_gg_",
42
- "--value": "--value_1i1dd",
43
- "_displayLabel": "__displayLabel_1i1dd_gg_",
44
- "_value": "__value_1i1dd_gg_",
45
- "__SPlusButton": "___SPlusButton_1i1dd_gg_"
22
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SColorPickerPopper_1dnu7_gg_{max-width:calc(var(--intergalactic-spacing-4x, 16px)*2 + 28px*6 + 4px*6);padding:var(--intergalactic-spacing-4x, 16px)}.___SItemContainer_1dnu7_gg_{position:relative;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid transparent;outline:0;cursor:pointer}@media (hover:hover){.___SItemContainer_1dnu7_gg_:hover{border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}}.___SItemContainer_1dnu7_gg_::after{content:\"\";position:absolute;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 1px var(--intergalactic-border-secondary, #e0e1e9);background:var(--value_1dnu7)}@media (hover:hover){.___SItemContainer_1dnu7_gg_:hover>.___SCloseIcon_1dnu7_gg_{opacity:1}}.___SItemContainer_1dnu7_gg_.__keyboardFocused_1dnu7_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SItemContainer_1dnu7_gg_.__selected_1dnu7_gg_{border:1px solid var(--intergalactic-border-info-active, #006dca)}.___SItemContainer_1dnu7_gg_.__displayLabel_1dnu7_gg_::after{background:var(--value_1dnu7);opacity:.15}.___SItemContainer_1dnu7_gg_:not(.__value_1dnu7_gg_)::after{border:.9px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColorsContainer_1dnu7_gg_,.___SColors_1dnu7_gg_{display:flex;flex-wrap:wrap;align-items:center;gap:var(--intergalactic-spacing-1x, 4px)}.___SPaletteManager_1dnu7_gg_{justify-content:space-between;margin-top:var(--intergalactic-spacing-3x, 12px);margin-left:calc(var(--intergalactic-spacing-1x, 4px) - 1px)}.___SInputContainer_1dnu7_gg_,.___SPaletteManager_1dnu7_gg_,.___SPlusButton_1dnu7_gg_{display:flex;align-items:center}.___SPlusButton_1dnu7_gg_{justify-content:center;width:28px;height:28px;border-radius:50%;cursor:pointer}@media (hover:hover){.___SPlusButton_1dnu7_gg_:hover{background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SDefaultTrigger_1dnu7_gg_{display:inline-flex;align-items:center;outline:0;cursor:pointer;border:0;background:0 0;padding:0}.___SDefaultTrigger_1dnu7_gg_.__keyboardFocused_1dnu7_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STriggerCircle_1dnu7_gg_{position:relative;width:16px;height:16px;margin-right:calc(var(--intergalactic-spacing-1x, 4px) + 1px);border-radius:50%;background-color:var(--data-value_1dnu7);border:1px solid transparent}.___STriggerCircle_1dnu7_gg_:not([data-value]){border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___STriggerCircleLine_1dnu7_gg_{position:absolute;top:1px;left:1px}.___SCloseIcon_1dnu7_gg_{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);opacity:0;z-index:1}.___SLine_1dnu7_gg_{position:absolute}.___SLabel_1dnu7_gg_{z-index:1;color:var(--data-value_1dnu7);font-size:calc(var(--intergalactic-fs-100, 12px) + 1px);font-weight:var(--intergalactic-bold, 700)}.___SItemColor_1dnu7_gg_{width:20px;height:20px;border-radius:50%;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);background:var(--data-value_1dnu7)}.___SClearConfirm_1dnu7_gg_.__hidden_1dnu7_gg_,.___SConfirmColor_1dnu7_gg_.__hidden_1dnu7_gg_{display:none}" /*__inner_css_end__*/, "1dnu7_gg_") /*__reshadow_css_end__*/, {
23
+ "__SColorPickerPopper": "___SColorPickerPopper_1dnu7_gg_",
24
+ "__SItemContainer": "___SItemContainer_1dnu7_gg_",
25
+ "__SCloseIcon": "___SCloseIcon_1dnu7_gg_",
26
+ "_keyboardFocused": "__keyboardFocused_1dnu7_gg_",
27
+ "_selected": "__selected_1dnu7_gg_",
28
+ "__SColorsContainer": "___SColorsContainer_1dnu7_gg_",
29
+ "__SColors": "___SColors_1dnu7_gg_",
30
+ "__SPaletteManager": "___SPaletteManager_1dnu7_gg_",
31
+ "__SInputContainer": "___SInputContainer_1dnu7_gg_",
32
+ "__SDefaultTrigger": "___SDefaultTrigger_1dnu7_gg_",
33
+ "__STriggerCircle": "___STriggerCircle_1dnu7_gg_",
34
+ "--data-value": "--data-value_1dnu7",
35
+ "__STriggerCircleLine": "___STriggerCircleLine_1dnu7_gg_",
36
+ "__SLine": "___SLine_1dnu7_gg_",
37
+ "__SLabel": "___SLabel_1dnu7_gg_",
38
+ "__SItemColor": "___SItemColor_1dnu7_gg_",
39
+ "__SConfirmColor": "___SConfirmColor_1dnu7_gg_",
40
+ "_hidden": "__hidden_1dnu7_gg_",
41
+ "__SClearConfirm": "___SClearConfirm_1dnu7_gg_",
42
+ "--value": "--value_1dnu7",
43
+ "_displayLabel": "__displayLabel_1dnu7_gg_",
44
+ "_value": "__value_1dnu7_gg_",
45
+ "__SPlusButton": "___SPlusButton_1dnu7_gg_"
46
46
  });
47
47
  var enhance = [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages), (0, _uniqueID["default"])()];
48
48
  var PaletteManagerRoot = /*#__PURE__*/function (_Component) {
@@ -21,30 +21,30 @@ var _input = _interopRequireDefault(require("intergalactic/input"));
21
21
  var _m = _interopRequireDefault(require("intergalactic/icon/Check/m"));
22
22
  var _m2 = _interopRequireDefault(require("intergalactic/icon/Close/m"));
23
23
  /*__reshadow-styles__:"../style/color-picker.shadow.css"*/
24
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SColorPickerPopper_1i1dd_gg_{max-width:calc(var(--intergalactic-spacing-4x, 16px)*2 + 28px*6 + 4px*6);padding:var(--intergalactic-spacing-4x, 16px)}.___SItemContainer_1i1dd_gg_{position:relative;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid transparent;outline:0;cursor:pointer}@media (hover:hover){.___SItemContainer_1i1dd_gg_:hover{border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}}.___SItemContainer_1i1dd_gg_::after{content:\"\";position:absolute;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 1px var(--intergalactic-border-secondary, #e0e1e9);background:var(--value_1i1dd)}@media (hover:hover){.___SItemContainer_1i1dd_gg_:hover>.___SCloseIcon_1i1dd_gg_{opacity:1}}.___SItemContainer_1i1dd_gg_.__keyboardFocused_1i1dd_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SItemContainer_1i1dd_gg_.__selected_1i1dd_gg_{border:1px solid var(--intergalactic-border-info-active, #006dca)}.___SItemContainer_1i1dd_gg_.__displayLabel_1i1dd_gg_::after{background:var(--value_1i1dd);opacity:.15}.___SItemContainer_1i1dd_gg_:not(.__value_1i1dd_gg_)::after{border:.9px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColorsContainer_1i1dd_gg_,.___SColors_1i1dd_gg_{display:flex;flex-wrap:wrap;align-items:center;gap:var(--intergalactic-spacing-1x, 4px)}.___SPaletteManager_1i1dd_gg_{justify-content:space-between;margin-top:var(--intergalactic-spacing-3x, 12px);margin-left:calc(var(--intergalactic-spacing-1x, 4px) - 1px)}.___SInputContainer_1i1dd_gg_,.___SPaletteManager_1i1dd_gg_,.___SPlusButton_1i1dd_gg_{display:flex;align-items:center}.___SPlusButton_1i1dd_gg_{justify-content:center;width:28px;height:28px;border-radius:50%;cursor:pointer}@media (hover:hover){.___SPlusButton_1i1dd_gg_:hover{background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SDefaultTrigger_1i1dd_gg_{display:inline-flex;align-items:center;outline:0;cursor:pointer;border:0;background:0 0;padding:0}.___SDefaultTrigger_1i1dd_gg_.__keyboardFocused_1i1dd_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STriggerCircle_1i1dd_gg_{position:relative;width:16px;height:16px;margin-right:calc(var(--intergalactic-spacing-1x, 4px) + 1px);border-radius:50%;background-color:var(--data-value_1i1dd);border:1px solid transparent}.___STriggerCircle_1i1dd_gg_:not([data-value]){border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___STriggerCircleLine_1i1dd_gg_{position:absolute;top:1px;left:1px}.___SCloseIcon_1i1dd_gg_{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);opacity:0;z-index:1}.___SLine_1i1dd_gg_{position:absolute}.___SLabel_1i1dd_gg_{z-index:1;color:var(--data-value_1i1dd);font-size:calc(var(--intergalactic-fs-100, 12px) + 1px);font-weight:var(--intergalactic-bold, 700)}.___SItemColor_1i1dd_gg_{width:20px;height:20px;border-radius:50%;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);background:var(--data-value_1i1dd)}.___SClearConfirm_1i1dd_gg_.__hidden_1i1dd_gg_,.___SConfirmColor_1i1dd_gg_.__hidden_1i1dd_gg_{display:none}" /*__inner_css_end__*/, "1i1dd_gg_") /*__reshadow_css_end__*/, {
25
- "__SColorPickerPopper": "___SColorPickerPopper_1i1dd_gg_",
26
- "__SItemContainer": "___SItemContainer_1i1dd_gg_",
27
- "__SCloseIcon": "___SCloseIcon_1i1dd_gg_",
28
- "_keyboardFocused": "__keyboardFocused_1i1dd_gg_",
29
- "_selected": "__selected_1i1dd_gg_",
30
- "__SColorsContainer": "___SColorsContainer_1i1dd_gg_",
31
- "__SColors": "___SColors_1i1dd_gg_",
32
- "__SPaletteManager": "___SPaletteManager_1i1dd_gg_",
33
- "__SInputContainer": "___SInputContainer_1i1dd_gg_",
34
- "__SDefaultTrigger": "___SDefaultTrigger_1i1dd_gg_",
35
- "__STriggerCircle": "___STriggerCircle_1i1dd_gg_",
36
- "--data-value": "--data-value_1i1dd",
37
- "__STriggerCircleLine": "___STriggerCircleLine_1i1dd_gg_",
38
- "__SLine": "___SLine_1i1dd_gg_",
39
- "__SLabel": "___SLabel_1i1dd_gg_",
40
- "__SItemColor": "___SItemColor_1i1dd_gg_",
41
- "__SConfirmColor": "___SConfirmColor_1i1dd_gg_",
42
- "_hidden": "__hidden_1i1dd_gg_",
43
- "__SClearConfirm": "___SClearConfirm_1i1dd_gg_",
44
- "--value": "--value_1i1dd",
45
- "_displayLabel": "__displayLabel_1i1dd_gg_",
46
- "_value": "__value_1i1dd_gg_",
47
- "__SPlusButton": "___SPlusButton_1i1dd_gg_"
24
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SColorPickerPopper_1dnu7_gg_{max-width:calc(var(--intergalactic-spacing-4x, 16px)*2 + 28px*6 + 4px*6);padding:var(--intergalactic-spacing-4x, 16px)}.___SItemContainer_1dnu7_gg_{position:relative;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid transparent;outline:0;cursor:pointer}@media (hover:hover){.___SItemContainer_1dnu7_gg_:hover{border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}}.___SItemContainer_1dnu7_gg_::after{content:\"\";position:absolute;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 1px var(--intergalactic-border-secondary, #e0e1e9);background:var(--value_1dnu7)}@media (hover:hover){.___SItemContainer_1dnu7_gg_:hover>.___SCloseIcon_1dnu7_gg_{opacity:1}}.___SItemContainer_1dnu7_gg_.__keyboardFocused_1dnu7_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SItemContainer_1dnu7_gg_.__selected_1dnu7_gg_{border:1px solid var(--intergalactic-border-info-active, #006dca)}.___SItemContainer_1dnu7_gg_.__displayLabel_1dnu7_gg_::after{background:var(--value_1dnu7);opacity:.15}.___SItemContainer_1dnu7_gg_:not(.__value_1dnu7_gg_)::after{border:.9px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColorsContainer_1dnu7_gg_,.___SColors_1dnu7_gg_{display:flex;flex-wrap:wrap;align-items:center;gap:var(--intergalactic-spacing-1x, 4px)}.___SPaletteManager_1dnu7_gg_{justify-content:space-between;margin-top:var(--intergalactic-spacing-3x, 12px);margin-left:calc(var(--intergalactic-spacing-1x, 4px) - 1px)}.___SInputContainer_1dnu7_gg_,.___SPaletteManager_1dnu7_gg_,.___SPlusButton_1dnu7_gg_{display:flex;align-items:center}.___SPlusButton_1dnu7_gg_{justify-content:center;width:28px;height:28px;border-radius:50%;cursor:pointer}@media (hover:hover){.___SPlusButton_1dnu7_gg_:hover{background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SDefaultTrigger_1dnu7_gg_{display:inline-flex;align-items:center;outline:0;cursor:pointer;border:0;background:0 0;padding:0}.___SDefaultTrigger_1dnu7_gg_.__keyboardFocused_1dnu7_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STriggerCircle_1dnu7_gg_{position:relative;width:16px;height:16px;margin-right:calc(var(--intergalactic-spacing-1x, 4px) + 1px);border-radius:50%;background-color:var(--data-value_1dnu7);border:1px solid transparent}.___STriggerCircle_1dnu7_gg_:not([data-value]){border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___STriggerCircleLine_1dnu7_gg_{position:absolute;top:1px;left:1px}.___SCloseIcon_1dnu7_gg_{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);opacity:0;z-index:1}.___SLine_1dnu7_gg_{position:absolute}.___SLabel_1dnu7_gg_{z-index:1;color:var(--data-value_1dnu7);font-size:calc(var(--intergalactic-fs-100, 12px) + 1px);font-weight:var(--intergalactic-bold, 700)}.___SItemColor_1dnu7_gg_{width:20px;height:20px;border-radius:50%;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);background:var(--data-value_1dnu7)}.___SClearConfirm_1dnu7_gg_.__hidden_1dnu7_gg_,.___SConfirmColor_1dnu7_gg_.__hidden_1dnu7_gg_{display:none}" /*__inner_css_end__*/, "1dnu7_gg_") /*__reshadow_css_end__*/, {
25
+ "__SColorPickerPopper": "___SColorPickerPopper_1dnu7_gg_",
26
+ "__SItemContainer": "___SItemContainer_1dnu7_gg_",
27
+ "__SCloseIcon": "___SCloseIcon_1dnu7_gg_",
28
+ "_keyboardFocused": "__keyboardFocused_1dnu7_gg_",
29
+ "_selected": "__selected_1dnu7_gg_",
30
+ "__SColorsContainer": "___SColorsContainer_1dnu7_gg_",
31
+ "__SColors": "___SColors_1dnu7_gg_",
32
+ "__SPaletteManager": "___SPaletteManager_1dnu7_gg_",
33
+ "__SInputContainer": "___SInputContainer_1dnu7_gg_",
34
+ "__SDefaultTrigger": "___SDefaultTrigger_1dnu7_gg_",
35
+ "__STriggerCircle": "___STriggerCircle_1dnu7_gg_",
36
+ "--data-value": "--data-value_1dnu7",
37
+ "__STriggerCircleLine": "___STriggerCircleLine_1dnu7_gg_",
38
+ "__SLine": "___SLine_1dnu7_gg_",
39
+ "__SLabel": "___SLabel_1dnu7_gg_",
40
+ "__SItemColor": "___SItemColor_1dnu7_gg_",
41
+ "__SConfirmColor": "___SConfirmColor_1dnu7_gg_",
42
+ "_hidden": "__hidden_1dnu7_gg_",
43
+ "__SClearConfirm": "___SClearConfirm_1dnu7_gg_",
44
+ "--value": "--value_1dnu7",
45
+ "_displayLabel": "__displayLabel_1dnu7_gg_",
46
+ "_value": "__value_1dnu7_gg_",
47
+ "__SPlusButton": "___SPlusButton_1dnu7_gg_"
48
48
  });
49
49
  function isValidHex(hex) {
50
50
  if (hex[0] !== '#' && hex.length === 7) return false;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { BoxProps } from '@semcore/flex-box';\nimport Dropdown, { DropdownProps, DropdownHandlers } from '@semcore/dropdown';\nimport Popper from '@semcore/popper';\nimport { InputProps } from '@semcore/input';\n\n/** @deprecated */\nexport interface IItemProps extends ItemProps, UnknownProperties {}\nexport type ItemProps = BoxProps & {\n /**\n * Color item in hexadecimal format.\n */\n value?: string;\n /**\n * Shows label `A` as text color icon inside all color items\n */\n displayLabel?: boolean;\n /**\n * Property enabling the ability to remove a color item on click\n */\n editable?: boolean;\n /**\n * Shows if color item is selected\n */\n selected?: boolean;\n /**\n * Fired with color item when user clicks on the close icon\n */\n onRemove?: React.MouseEventHandler;\n};\n\n/** @deprecated */\nexport interface IColorsProps extends ColorsProps, UnknownProperties {}\nexport type ColorsProps = BoxProps & {\n /**\n * Array of color items\n */\n colors?: string[];\n};\n\n/** @deprecated */\nexport interface IColorsCustomProps extends ColorsCustomProps, UnknownProperties {}\nexport type ColorsCustomProps = ColorsProps &\n BoxProps & {\n /**\n * Fired when user clicks on the plus icon in Palette Manager - focuses the input component\n */\n onPlusButtonClick?: React.MouseEventHandler;\n };\n\n/** @deprecated */\nexport interface IInputColorProps extends InputColorProps, UnknownProperties {}\nexport type InputColorProps = InputProps & {\n /**\n * Text value of input\n */\n value?: string;\n /**\n * Default value if `value` property is not provided\n * @default null\n */\n defaultValue?: string | null;\n /**\n * Uncontrolled visual state of input\n * @default normal\n */\n state?: 'normal' | 'valid' | 'invalid';\n /**\n * Array of color items\n */\n colors?: string[];\n /**\n * Fired with entered value when user clicks on the check icon or hits `Enter` or `Space`\n */\n onAdd?: (value: string, event: React.MouseEvent | React.KeyboardEvent) => void;\n};\n\n/** @deprecated */\nexport interface IColorPickerProps extends ColorPickerProps, UnknownProperties {}\nexport type ColorPickerProps = DropdownProps & {\n /**\n * Selected color item. Should be used with `onChange` property together\n */\n value?: string | null;\n /**\n * Fired when user selects color item. Should be used with `value` property together\n */\n onChange?: (value: string, event: React.ChangeEvent) => void;\n /**\n * Default value if `value` property is not provided\n * @default null\n */\n defaultValue?: string | null;\n /**\n * Array of color items. Should be used with `onColorsChange` property together\n * @default defaultColors\n */\n colors?: string[];\n /**\n * Fired when user changes color items. Should be used with `colors` property together\n */\n onColorsChange?: (value: string[], event: React.ChangeEvent) => void;\n /**\n * Shows label `A` as text color icon inside all color items\n * @default false\n */\n displayLabel?: boolean;\n};\n\n/** @deprecated */\nexport interface IPaletteManagerProps extends PaletteManagerProps, UnknownProperties {}\nexport type PaletteManagerProps = BoxProps & {\n /**\n * Array of color items. Should be used with `onColorsChange` property together\n * @default []\n */\n colors?: string[];\n /**\n * Default value if `colors` property is not provided\n * @default []\n */\n defaultColors?: string[];\n /**\n * Fired when user adds or removes color items. Should be used with `colors` property together\n */\n onColorsChange?: (value: string[], event: React.ChangeEvent) => void;\n};\n\n/** @deprecated */\nexport interface IColorPickerHandlers extends ColorPickerHandlers, UnknownProperties {}\nexport type ColorPickerHandlers = DropdownHandlers & {};\n\n/** @deprecated */\nexport interface IPaletteManagerHandlers extends PaletteManagerHandlers, UnknownProperties {}\nexport type PaletteManagerHandlers = DropdownHandlers & {};\n\ntype ColorPickerContext = {\n getTriggerProps: PropGetterFn;\n getColorsProps: PropGetterFn;\n getItemProps: PropGetterFn;\n};\n\ntype PaletteManagerContext = {\n getInputColorProps: PropGetterFn;\n getColorsProps: PropGetterFn;\n getItemProps: PropGetterFn;\n};\n\ndeclare const defaultColors: string[];\n\ndeclare const PaletteManager: Intergalactic.Component<\n 'div',\n PaletteManagerProps,\n PaletteManagerContext,\n [handlers: PaletteManagerHandlers]\n> & {\n Item: Intergalactic.Component<'div', ItemProps>;\n Colors: Intergalactic.Component<'div', ColorsCustomProps>;\n InputColor: Intergalactic.Component<'div', InputColorProps>;\n};\n\ndeclare const ColorPicker: Intergalactic.Component<\n 'div',\n ColorPickerProps,\n ColorPickerContext,\n [handlers: ColorPickerHandlers]\n> & {\n Trigger: typeof Dropdown.Trigger;\n Popper: typeof Popper.Popper;\n Item: Intergalactic.Component<'div', ItemProps>;\n Colors: Intergalactic.Component<'div', ColorsProps>;\n};\n\nexport { PaletteManager, defaultColors };\nexport default ColorPicker;\n"],"mappings":""}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { BoxProps } from '@semcore/flex-box';\nimport Dropdown, { DropdownProps, DropdownHandlers } from '@semcore/dropdown';\nimport Popper from '@semcore/popper';\nimport { InputProps } from '@semcore/input';\n\n/** @deprecated */\nexport interface IItemProps extends ItemProps, UnknownProperties {}\nexport type ItemProps = BoxProps & {\n /**\n * Color item in hexadecimal format.\n */\n value?: string | null;\n /**\n * Shows label `A` as text color icon inside all color items\n */\n displayLabel?: boolean;\n /**\n * Property enabling the ability to remove a color item on click\n */\n editable?: boolean;\n /**\n * Shows if color item is selected\n */\n selected?: boolean;\n /**\n * Fired with color item when user clicks on the close icon\n */\n onRemove?: React.MouseEventHandler;\n};\n\n/** @deprecated */\nexport interface IColorsProps extends ColorsProps, UnknownProperties {}\nexport type ColorsProps = BoxProps & {\n /**\n * Array of color items\n */\n colors?: Array<string | null>;\n};\n\n/** @deprecated */\nexport interface IColorsCustomProps extends ColorsCustomProps, UnknownProperties {}\nexport type ColorsCustomProps = ColorsProps &\n BoxProps & {\n /**\n * Fired when user clicks on the plus icon in Palette Manager - focuses the input component\n */\n onPlusButtonClick?: React.MouseEventHandler;\n };\n\n/** @deprecated */\nexport interface IInputColorProps extends InputColorProps, UnknownProperties {}\nexport type InputColorProps = InputProps & {\n /**\n * Text value of input\n */\n value?: string;\n /**\n * Default value if `value` property is not provided\n * @default null\n */\n defaultValue?: string | null;\n /**\n * Uncontrolled visual state of input\n * @default normal\n */\n state?: 'normal' | 'valid' | 'invalid';\n /**\n * Array of color items\n */\n colors?: string[];\n /**\n * Fired with entered value when user clicks on the check icon or hits `Enter` or `Space`\n */\n onAdd?: (value: string, event: React.MouseEvent | React.KeyboardEvent) => void;\n};\n\n/** @deprecated */\nexport interface IColorPickerProps extends ColorPickerProps, UnknownProperties {}\nexport type ColorPickerProps = DropdownProps & {\n /**\n * Selected color item. Should be used with `onChange` property together\n */\n value?: string | null;\n /**\n * Fired when user selects color item. Should be used with `value` property together\n */\n onChange?: (value: string, event: React.ChangeEvent) => void;\n /**\n * Default value if `value` property is not provided\n * @default null\n */\n defaultValue?: string | null;\n /**\n * Array of color items. Should be used with `onColorsChange` property together\n * @default defaultColors\n */\n colors?: string[];\n /**\n * Fired when user changes color items. Should be used with `colors` property together\n */\n onColorsChange?: (value: string[], event: React.ChangeEvent) => void;\n /**\n * Shows label `A` as text color icon inside all color items\n * @default false\n */\n displayLabel?: boolean;\n};\n\n/** @deprecated */\nexport interface IPaletteManagerProps extends PaletteManagerProps, UnknownProperties {}\nexport type PaletteManagerProps = BoxProps & {\n /**\n * Array of color items. Should be used with `onColorsChange` property together\n * @default []\n */\n colors?: string[];\n /**\n * Default value if `colors` property is not provided\n * @default []\n */\n defaultColors?: string[];\n /**\n * Fired when user adds or removes color items. Should be used with `colors` property together\n */\n onColorsChange?: (value: string[], event: React.ChangeEvent) => void;\n};\n\n/** @deprecated */\nexport interface IColorPickerHandlers extends ColorPickerHandlers, UnknownProperties {}\nexport type ColorPickerHandlers = DropdownHandlers & {};\n\n/** @deprecated */\nexport interface IPaletteManagerHandlers extends PaletteManagerHandlers, UnknownProperties {}\nexport type PaletteManagerHandlers = DropdownHandlers & {};\n\ntype ColorPickerContext = {\n getTriggerProps: PropGetterFn;\n getColorsProps: PropGetterFn;\n getItemProps: PropGetterFn;\n};\n\ntype PaletteManagerContext = {\n getInputColorProps: PropGetterFn;\n getColorsProps: PropGetterFn;\n getItemProps: PropGetterFn;\n};\n\ndeclare const defaultColors: string[];\n\ndeclare const PaletteManager: Intergalactic.Component<\n 'div',\n PaletteManagerProps,\n PaletteManagerContext,\n [handlers: PaletteManagerHandlers]\n> & {\n Item: Intergalactic.Component<'div', ItemProps>;\n Colors: Intergalactic.Component<'div', ColorsCustomProps>;\n InputColor: Intergalactic.Component<'div', InputColorProps>;\n};\n\ndeclare const ColorPicker: Intergalactic.Component<\n 'div',\n ColorPickerProps,\n ColorPickerContext,\n [handlers: ColorPickerHandlers]\n> & {\n Trigger: typeof Dropdown.Trigger;\n Popper: typeof Popper.Popper;\n Item: Intergalactic.Component<'div', ItemProps>;\n Colors: Intergalactic.Component<'div', ColorsProps>;\n};\n\nexport { PaletteManager, defaultColors };\nexport default ColorPicker;\n"],"mappings":""}
@@ -21,30 +21,30 @@ import { Item, Colors, ColorsCustom, InputColor } from './components';
21
21
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
22
22
  import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
23
23
  /*__reshadow-styles__:"./style/color-picker.shadow.css"*/
24
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SColorPickerPopper_1i1dd_gg_{max-width:calc(var(--intergalactic-spacing-4x, 16px)*2 + 28px*6 + 4px*6);padding:var(--intergalactic-spacing-4x, 16px)}.___SItemContainer_1i1dd_gg_{position:relative;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid transparent;outline:0;cursor:pointer}@media (hover:hover){.___SItemContainer_1i1dd_gg_:hover{border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}}.___SItemContainer_1i1dd_gg_::after{content:\"\";position:absolute;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 1px var(--intergalactic-border-secondary, #e0e1e9);background:var(--value_1i1dd)}@media (hover:hover){.___SItemContainer_1i1dd_gg_:hover>.___SCloseIcon_1i1dd_gg_{opacity:1}}.___SItemContainer_1i1dd_gg_.__keyboardFocused_1i1dd_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SItemContainer_1i1dd_gg_.__selected_1i1dd_gg_{border:1px solid var(--intergalactic-border-info-active, #006dca)}.___SItemContainer_1i1dd_gg_.__displayLabel_1i1dd_gg_::after{background:var(--value_1i1dd);opacity:.15}.___SItemContainer_1i1dd_gg_:not(.__value_1i1dd_gg_)::after{border:.9px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColorsContainer_1i1dd_gg_,.___SColors_1i1dd_gg_{display:flex;flex-wrap:wrap;align-items:center;gap:var(--intergalactic-spacing-1x, 4px)}.___SPaletteManager_1i1dd_gg_{justify-content:space-between;margin-top:var(--intergalactic-spacing-3x, 12px);margin-left:calc(var(--intergalactic-spacing-1x, 4px) - 1px)}.___SInputContainer_1i1dd_gg_,.___SPaletteManager_1i1dd_gg_,.___SPlusButton_1i1dd_gg_{display:flex;align-items:center}.___SPlusButton_1i1dd_gg_{justify-content:center;width:28px;height:28px;border-radius:50%;cursor:pointer}@media (hover:hover){.___SPlusButton_1i1dd_gg_:hover{background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SDefaultTrigger_1i1dd_gg_{display:inline-flex;align-items:center;outline:0;cursor:pointer;border:0;background:0 0;padding:0}.___SDefaultTrigger_1i1dd_gg_.__keyboardFocused_1i1dd_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STriggerCircle_1i1dd_gg_{position:relative;width:16px;height:16px;margin-right:calc(var(--intergalactic-spacing-1x, 4px) + 1px);border-radius:50%;background-color:var(--data-value_1i1dd);border:1px solid transparent}.___STriggerCircle_1i1dd_gg_:not([data-value]){border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___STriggerCircleLine_1i1dd_gg_{position:absolute;top:1px;left:1px}.___SCloseIcon_1i1dd_gg_{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);opacity:0;z-index:1}.___SLine_1i1dd_gg_{position:absolute}.___SLabel_1i1dd_gg_{z-index:1;color:var(--data-value_1i1dd);font-size:calc(var(--intergalactic-fs-100, 12px) + 1px);font-weight:var(--intergalactic-bold, 700)}.___SItemColor_1i1dd_gg_{width:20px;height:20px;border-radius:50%;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);background:var(--data-value_1i1dd)}.___SClearConfirm_1i1dd_gg_.__hidden_1i1dd_gg_,.___SConfirmColor_1i1dd_gg_.__hidden_1i1dd_gg_{display:none}" /*__inner_css_end__*/, "1i1dd_gg_") /*__reshadow_css_end__*/, {
25
- "__SColorPickerPopper": "___SColorPickerPopper_1i1dd_gg_",
26
- "__SItemContainer": "___SItemContainer_1i1dd_gg_",
27
- "__SCloseIcon": "___SCloseIcon_1i1dd_gg_",
28
- "_keyboardFocused": "__keyboardFocused_1i1dd_gg_",
29
- "_selected": "__selected_1i1dd_gg_",
30
- "__SColorsContainer": "___SColorsContainer_1i1dd_gg_",
31
- "__SColors": "___SColors_1i1dd_gg_",
32
- "__SPaletteManager": "___SPaletteManager_1i1dd_gg_",
33
- "__SInputContainer": "___SInputContainer_1i1dd_gg_",
34
- "__SDefaultTrigger": "___SDefaultTrigger_1i1dd_gg_",
35
- "__STriggerCircle": "___STriggerCircle_1i1dd_gg_",
36
- "--data-value": "--data-value_1i1dd",
37
- "__STriggerCircleLine": "___STriggerCircleLine_1i1dd_gg_",
38
- "__SLine": "___SLine_1i1dd_gg_",
39
- "__SLabel": "___SLabel_1i1dd_gg_",
40
- "__SItemColor": "___SItemColor_1i1dd_gg_",
41
- "__SConfirmColor": "___SConfirmColor_1i1dd_gg_",
42
- "_hidden": "__hidden_1i1dd_gg_",
43
- "__SClearConfirm": "___SClearConfirm_1i1dd_gg_",
44
- "--value": "--value_1i1dd",
45
- "_displayLabel": "__displayLabel_1i1dd_gg_",
46
- "_value": "__value_1i1dd_gg_",
47
- "__SPlusButton": "___SPlusButton_1i1dd_gg_"
24
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SColorPickerPopper_1dnu7_gg_{max-width:calc(var(--intergalactic-spacing-4x, 16px)*2 + 28px*6 + 4px*6);padding:var(--intergalactic-spacing-4x, 16px)}.___SItemContainer_1dnu7_gg_{position:relative;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid transparent;outline:0;cursor:pointer}@media (hover:hover){.___SItemContainer_1dnu7_gg_:hover{border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}}.___SItemContainer_1dnu7_gg_::after{content:\"\";position:absolute;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 1px var(--intergalactic-border-secondary, #e0e1e9);background:var(--value_1dnu7)}@media (hover:hover){.___SItemContainer_1dnu7_gg_:hover>.___SCloseIcon_1dnu7_gg_{opacity:1}}.___SItemContainer_1dnu7_gg_.__keyboardFocused_1dnu7_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SItemContainer_1dnu7_gg_.__selected_1dnu7_gg_{border:1px solid var(--intergalactic-border-info-active, #006dca)}.___SItemContainer_1dnu7_gg_.__displayLabel_1dnu7_gg_::after{background:var(--value_1dnu7);opacity:.15}.___SItemContainer_1dnu7_gg_:not(.__value_1dnu7_gg_)::after{border:.9px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColorsContainer_1dnu7_gg_,.___SColors_1dnu7_gg_{display:flex;flex-wrap:wrap;align-items:center;gap:var(--intergalactic-spacing-1x, 4px)}.___SPaletteManager_1dnu7_gg_{justify-content:space-between;margin-top:var(--intergalactic-spacing-3x, 12px);margin-left:calc(var(--intergalactic-spacing-1x, 4px) - 1px)}.___SInputContainer_1dnu7_gg_,.___SPaletteManager_1dnu7_gg_,.___SPlusButton_1dnu7_gg_{display:flex;align-items:center}.___SPlusButton_1dnu7_gg_{justify-content:center;width:28px;height:28px;border-radius:50%;cursor:pointer}@media (hover:hover){.___SPlusButton_1dnu7_gg_:hover{background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SDefaultTrigger_1dnu7_gg_{display:inline-flex;align-items:center;outline:0;cursor:pointer;border:0;background:0 0;padding:0}.___SDefaultTrigger_1dnu7_gg_.__keyboardFocused_1dnu7_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STriggerCircle_1dnu7_gg_{position:relative;width:16px;height:16px;margin-right:calc(var(--intergalactic-spacing-1x, 4px) + 1px);border-radius:50%;background-color:var(--data-value_1dnu7);border:1px solid transparent}.___STriggerCircle_1dnu7_gg_:not([data-value]){border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___STriggerCircleLine_1dnu7_gg_{position:absolute;top:1px;left:1px}.___SCloseIcon_1dnu7_gg_{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);opacity:0;z-index:1}.___SLine_1dnu7_gg_{position:absolute}.___SLabel_1dnu7_gg_{z-index:1;color:var(--data-value_1dnu7);font-size:calc(var(--intergalactic-fs-100, 12px) + 1px);font-weight:var(--intergalactic-bold, 700)}.___SItemColor_1dnu7_gg_{width:20px;height:20px;border-radius:50%;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);background:var(--data-value_1dnu7)}.___SClearConfirm_1dnu7_gg_.__hidden_1dnu7_gg_,.___SConfirmColor_1dnu7_gg_.__hidden_1dnu7_gg_{display:none}" /*__inner_css_end__*/, "1dnu7_gg_") /*__reshadow_css_end__*/, {
25
+ "__SColorPickerPopper": "___SColorPickerPopper_1dnu7_gg_",
26
+ "__SItemContainer": "___SItemContainer_1dnu7_gg_",
27
+ "__SCloseIcon": "___SCloseIcon_1dnu7_gg_",
28
+ "_keyboardFocused": "__keyboardFocused_1dnu7_gg_",
29
+ "_selected": "__selected_1dnu7_gg_",
30
+ "__SColorsContainer": "___SColorsContainer_1dnu7_gg_",
31
+ "__SColors": "___SColors_1dnu7_gg_",
32
+ "__SPaletteManager": "___SPaletteManager_1dnu7_gg_",
33
+ "__SInputContainer": "___SInputContainer_1dnu7_gg_",
34
+ "__SDefaultTrigger": "___SDefaultTrigger_1dnu7_gg_",
35
+ "__STriggerCircle": "___STriggerCircle_1dnu7_gg_",
36
+ "--data-value": "--data-value_1dnu7",
37
+ "__STriggerCircleLine": "___STriggerCircleLine_1dnu7_gg_",
38
+ "__SLine": "___SLine_1dnu7_gg_",
39
+ "__SLabel": "___SLabel_1dnu7_gg_",
40
+ "__SItemColor": "___SItemColor_1dnu7_gg_",
41
+ "__SConfirmColor": "___SConfirmColor_1dnu7_gg_",
42
+ "_hidden": "__hidden_1dnu7_gg_",
43
+ "__SClearConfirm": "___SClearConfirm_1dnu7_gg_",
44
+ "--value": "--value_1dnu7",
45
+ "_displayLabel": "__displayLabel_1dnu7_gg_",
46
+ "_value": "__value_1dnu7_gg_",
47
+ "__SPlusButton": "___SPlusButton_1dnu7_gg_"
48
48
  });
49
49
  var defaultColors = [null, '#2BB3FF', '#8649E1', '#C695FF', '#F67CF2', '#FFA9FA', '#FF8786', '#FF8C43', '#FDC23C', '#66C030', '#9BD85D', '#C7EE96'];
50
50
  var ColorPickerRoot = /*#__PURE__*/function (_Component) {
@@ -11,30 +11,30 @@ import Divider from 'intergalactic/divider';
11
11
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
12
12
  import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
13
13
  /*__reshadow-styles__:"./style/color-picker.shadow.css"*/
14
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SColorPickerPopper_1i1dd_gg_{max-width:calc(var(--intergalactic-spacing-4x, 16px)*2 + 28px*6 + 4px*6);padding:var(--intergalactic-spacing-4x, 16px)}.___SItemContainer_1i1dd_gg_{position:relative;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid transparent;outline:0;cursor:pointer}@media (hover:hover){.___SItemContainer_1i1dd_gg_:hover{border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}}.___SItemContainer_1i1dd_gg_::after{content:\"\";position:absolute;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 1px var(--intergalactic-border-secondary, #e0e1e9);background:var(--value_1i1dd)}@media (hover:hover){.___SItemContainer_1i1dd_gg_:hover>.___SCloseIcon_1i1dd_gg_{opacity:1}}.___SItemContainer_1i1dd_gg_.__keyboardFocused_1i1dd_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SItemContainer_1i1dd_gg_.__selected_1i1dd_gg_{border:1px solid var(--intergalactic-border-info-active, #006dca)}.___SItemContainer_1i1dd_gg_.__displayLabel_1i1dd_gg_::after{background:var(--value_1i1dd);opacity:.15}.___SItemContainer_1i1dd_gg_:not(.__value_1i1dd_gg_)::after{border:.9px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColorsContainer_1i1dd_gg_,.___SColors_1i1dd_gg_{display:flex;flex-wrap:wrap;align-items:center;gap:var(--intergalactic-spacing-1x, 4px)}.___SPaletteManager_1i1dd_gg_{justify-content:space-between;margin-top:var(--intergalactic-spacing-3x, 12px);margin-left:calc(var(--intergalactic-spacing-1x, 4px) - 1px)}.___SInputContainer_1i1dd_gg_,.___SPaletteManager_1i1dd_gg_,.___SPlusButton_1i1dd_gg_{display:flex;align-items:center}.___SPlusButton_1i1dd_gg_{justify-content:center;width:28px;height:28px;border-radius:50%;cursor:pointer}@media (hover:hover){.___SPlusButton_1i1dd_gg_:hover{background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SDefaultTrigger_1i1dd_gg_{display:inline-flex;align-items:center;outline:0;cursor:pointer;border:0;background:0 0;padding:0}.___SDefaultTrigger_1i1dd_gg_.__keyboardFocused_1i1dd_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STriggerCircle_1i1dd_gg_{position:relative;width:16px;height:16px;margin-right:calc(var(--intergalactic-spacing-1x, 4px) + 1px);border-radius:50%;background-color:var(--data-value_1i1dd);border:1px solid transparent}.___STriggerCircle_1i1dd_gg_:not([data-value]){border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___STriggerCircleLine_1i1dd_gg_{position:absolute;top:1px;left:1px}.___SCloseIcon_1i1dd_gg_{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);opacity:0;z-index:1}.___SLine_1i1dd_gg_{position:absolute}.___SLabel_1i1dd_gg_{z-index:1;color:var(--data-value_1i1dd);font-size:calc(var(--intergalactic-fs-100, 12px) + 1px);font-weight:var(--intergalactic-bold, 700)}.___SItemColor_1i1dd_gg_{width:20px;height:20px;border-radius:50%;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);background:var(--data-value_1i1dd)}.___SClearConfirm_1i1dd_gg_.__hidden_1i1dd_gg_,.___SConfirmColor_1i1dd_gg_.__hidden_1i1dd_gg_{display:none}" /*__inner_css_end__*/, "1i1dd_gg_") /*__reshadow_css_end__*/, {
15
- "__SColorPickerPopper": "___SColorPickerPopper_1i1dd_gg_",
16
- "__SItemContainer": "___SItemContainer_1i1dd_gg_",
17
- "__SCloseIcon": "___SCloseIcon_1i1dd_gg_",
18
- "_keyboardFocused": "__keyboardFocused_1i1dd_gg_",
19
- "_selected": "__selected_1i1dd_gg_",
20
- "__SColorsContainer": "___SColorsContainer_1i1dd_gg_",
21
- "__SColors": "___SColors_1i1dd_gg_",
22
- "__SPaletteManager": "___SPaletteManager_1i1dd_gg_",
23
- "__SInputContainer": "___SInputContainer_1i1dd_gg_",
24
- "__SDefaultTrigger": "___SDefaultTrigger_1i1dd_gg_",
25
- "__STriggerCircle": "___STriggerCircle_1i1dd_gg_",
26
- "--data-value": "--data-value_1i1dd",
27
- "__STriggerCircleLine": "___STriggerCircleLine_1i1dd_gg_",
28
- "__SLine": "___SLine_1i1dd_gg_",
29
- "__SLabel": "___SLabel_1i1dd_gg_",
30
- "__SItemColor": "___SItemColor_1i1dd_gg_",
31
- "__SConfirmColor": "___SConfirmColor_1i1dd_gg_",
32
- "_hidden": "__hidden_1i1dd_gg_",
33
- "__SClearConfirm": "___SClearConfirm_1i1dd_gg_",
34
- "--value": "--value_1i1dd",
35
- "_displayLabel": "__displayLabel_1i1dd_gg_",
36
- "_value": "__value_1i1dd_gg_",
37
- "__SPlusButton": "___SPlusButton_1i1dd_gg_"
14
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SColorPickerPopper_1dnu7_gg_{max-width:calc(var(--intergalactic-spacing-4x, 16px)*2 + 28px*6 + 4px*6);padding:var(--intergalactic-spacing-4x, 16px)}.___SItemContainer_1dnu7_gg_{position:relative;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid transparent;outline:0;cursor:pointer}@media (hover:hover){.___SItemContainer_1dnu7_gg_:hover{border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}}.___SItemContainer_1dnu7_gg_::after{content:\"\";position:absolute;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 1px var(--intergalactic-border-secondary, #e0e1e9);background:var(--value_1dnu7)}@media (hover:hover){.___SItemContainer_1dnu7_gg_:hover>.___SCloseIcon_1dnu7_gg_{opacity:1}}.___SItemContainer_1dnu7_gg_.__keyboardFocused_1dnu7_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SItemContainer_1dnu7_gg_.__selected_1dnu7_gg_{border:1px solid var(--intergalactic-border-info-active, #006dca)}.___SItemContainer_1dnu7_gg_.__displayLabel_1dnu7_gg_::after{background:var(--value_1dnu7);opacity:.15}.___SItemContainer_1dnu7_gg_:not(.__value_1dnu7_gg_)::after{border:.9px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColorsContainer_1dnu7_gg_,.___SColors_1dnu7_gg_{display:flex;flex-wrap:wrap;align-items:center;gap:var(--intergalactic-spacing-1x, 4px)}.___SPaletteManager_1dnu7_gg_{justify-content:space-between;margin-top:var(--intergalactic-spacing-3x, 12px);margin-left:calc(var(--intergalactic-spacing-1x, 4px) - 1px)}.___SInputContainer_1dnu7_gg_,.___SPaletteManager_1dnu7_gg_,.___SPlusButton_1dnu7_gg_{display:flex;align-items:center}.___SPlusButton_1dnu7_gg_{justify-content:center;width:28px;height:28px;border-radius:50%;cursor:pointer}@media (hover:hover){.___SPlusButton_1dnu7_gg_:hover{background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SDefaultTrigger_1dnu7_gg_{display:inline-flex;align-items:center;outline:0;cursor:pointer;border:0;background:0 0;padding:0}.___SDefaultTrigger_1dnu7_gg_.__keyboardFocused_1dnu7_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STriggerCircle_1dnu7_gg_{position:relative;width:16px;height:16px;margin-right:calc(var(--intergalactic-spacing-1x, 4px) + 1px);border-radius:50%;background-color:var(--data-value_1dnu7);border:1px solid transparent}.___STriggerCircle_1dnu7_gg_:not([data-value]){border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___STriggerCircleLine_1dnu7_gg_{position:absolute;top:1px;left:1px}.___SCloseIcon_1dnu7_gg_{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);opacity:0;z-index:1}.___SLine_1dnu7_gg_{position:absolute}.___SLabel_1dnu7_gg_{z-index:1;color:var(--data-value_1dnu7);font-size:calc(var(--intergalactic-fs-100, 12px) + 1px);font-weight:var(--intergalactic-bold, 700)}.___SItemColor_1dnu7_gg_{width:20px;height:20px;border-radius:50%;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);background:var(--data-value_1dnu7)}.___SClearConfirm_1dnu7_gg_.__hidden_1dnu7_gg_,.___SConfirmColor_1dnu7_gg_.__hidden_1dnu7_gg_{display:none}" /*__inner_css_end__*/, "1dnu7_gg_") /*__reshadow_css_end__*/, {
15
+ "__SColorPickerPopper": "___SColorPickerPopper_1dnu7_gg_",
16
+ "__SItemContainer": "___SItemContainer_1dnu7_gg_",
17
+ "__SCloseIcon": "___SCloseIcon_1dnu7_gg_",
18
+ "_keyboardFocused": "__keyboardFocused_1dnu7_gg_",
19
+ "_selected": "__selected_1dnu7_gg_",
20
+ "__SColorsContainer": "___SColorsContainer_1dnu7_gg_",
21
+ "__SColors": "___SColors_1dnu7_gg_",
22
+ "__SPaletteManager": "___SPaletteManager_1dnu7_gg_",
23
+ "__SInputContainer": "___SInputContainer_1dnu7_gg_",
24
+ "__SDefaultTrigger": "___SDefaultTrigger_1dnu7_gg_",
25
+ "__STriggerCircle": "___STriggerCircle_1dnu7_gg_",
26
+ "--data-value": "--data-value_1dnu7",
27
+ "__STriggerCircleLine": "___STriggerCircleLine_1dnu7_gg_",
28
+ "__SLine": "___SLine_1dnu7_gg_",
29
+ "__SLabel": "___SLabel_1dnu7_gg_",
30
+ "__SItemColor": "___SItemColor_1dnu7_gg_",
31
+ "__SConfirmColor": "___SConfirmColor_1dnu7_gg_",
32
+ "_hidden": "__hidden_1dnu7_gg_",
33
+ "__SClearConfirm": "___SClearConfirm_1dnu7_gg_",
34
+ "--value": "--value_1dnu7",
35
+ "_displayLabel": "__displayLabel_1dnu7_gg_",
36
+ "_value": "__value_1dnu7_gg_",
37
+ "__SPlusButton": "___SPlusButton_1dnu7_gg_"
38
38
  });
39
39
  import uniqueIdEnhance from 'intergalactic/utils/lib/uniqueID';
40
40
  var enhance = [i18nEnhance(localizedMessages), uniqueIdEnhance()];
@@ -14,30 +14,30 @@ import Input from 'intergalactic/input';
14
14
  import CheckM from 'intergalactic/icon/Check/m';
15
15
  import CloseM from 'intergalactic/icon/Close/m';
16
16
  /*__reshadow-styles__:"../style/color-picker.shadow.css"*/
17
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SColorPickerPopper_1i1dd_gg_{max-width:calc(var(--intergalactic-spacing-4x, 16px)*2 + 28px*6 + 4px*6);padding:var(--intergalactic-spacing-4x, 16px)}.___SItemContainer_1i1dd_gg_{position:relative;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid transparent;outline:0;cursor:pointer}@media (hover:hover){.___SItemContainer_1i1dd_gg_:hover{border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}}.___SItemContainer_1i1dd_gg_::after{content:\"\";position:absolute;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 1px var(--intergalactic-border-secondary, #e0e1e9);background:var(--value_1i1dd)}@media (hover:hover){.___SItemContainer_1i1dd_gg_:hover>.___SCloseIcon_1i1dd_gg_{opacity:1}}.___SItemContainer_1i1dd_gg_.__keyboardFocused_1i1dd_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SItemContainer_1i1dd_gg_.__selected_1i1dd_gg_{border:1px solid var(--intergalactic-border-info-active, #006dca)}.___SItemContainer_1i1dd_gg_.__displayLabel_1i1dd_gg_::after{background:var(--value_1i1dd);opacity:.15}.___SItemContainer_1i1dd_gg_:not(.__value_1i1dd_gg_)::after{border:.9px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColorsContainer_1i1dd_gg_,.___SColors_1i1dd_gg_{display:flex;flex-wrap:wrap;align-items:center;gap:var(--intergalactic-spacing-1x, 4px)}.___SPaletteManager_1i1dd_gg_{justify-content:space-between;margin-top:var(--intergalactic-spacing-3x, 12px);margin-left:calc(var(--intergalactic-spacing-1x, 4px) - 1px)}.___SInputContainer_1i1dd_gg_,.___SPaletteManager_1i1dd_gg_,.___SPlusButton_1i1dd_gg_{display:flex;align-items:center}.___SPlusButton_1i1dd_gg_{justify-content:center;width:28px;height:28px;border-radius:50%;cursor:pointer}@media (hover:hover){.___SPlusButton_1i1dd_gg_:hover{background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SDefaultTrigger_1i1dd_gg_{display:inline-flex;align-items:center;outline:0;cursor:pointer;border:0;background:0 0;padding:0}.___SDefaultTrigger_1i1dd_gg_.__keyboardFocused_1i1dd_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STriggerCircle_1i1dd_gg_{position:relative;width:16px;height:16px;margin-right:calc(var(--intergalactic-spacing-1x, 4px) + 1px);border-radius:50%;background-color:var(--data-value_1i1dd);border:1px solid transparent}.___STriggerCircle_1i1dd_gg_:not([data-value]){border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___STriggerCircleLine_1i1dd_gg_{position:absolute;top:1px;left:1px}.___SCloseIcon_1i1dd_gg_{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);opacity:0;z-index:1}.___SLine_1i1dd_gg_{position:absolute}.___SLabel_1i1dd_gg_{z-index:1;color:var(--data-value_1i1dd);font-size:calc(var(--intergalactic-fs-100, 12px) + 1px);font-weight:var(--intergalactic-bold, 700)}.___SItemColor_1i1dd_gg_{width:20px;height:20px;border-radius:50%;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);background:var(--data-value_1i1dd)}.___SClearConfirm_1i1dd_gg_.__hidden_1i1dd_gg_,.___SConfirmColor_1i1dd_gg_.__hidden_1i1dd_gg_{display:none}" /*__inner_css_end__*/, "1i1dd_gg_") /*__reshadow_css_end__*/, {
18
- "__SColorPickerPopper": "___SColorPickerPopper_1i1dd_gg_",
19
- "__SItemContainer": "___SItemContainer_1i1dd_gg_",
20
- "__SCloseIcon": "___SCloseIcon_1i1dd_gg_",
21
- "_keyboardFocused": "__keyboardFocused_1i1dd_gg_",
22
- "_selected": "__selected_1i1dd_gg_",
23
- "__SColorsContainer": "___SColorsContainer_1i1dd_gg_",
24
- "__SColors": "___SColors_1i1dd_gg_",
25
- "__SPaletteManager": "___SPaletteManager_1i1dd_gg_",
26
- "__SInputContainer": "___SInputContainer_1i1dd_gg_",
27
- "__SDefaultTrigger": "___SDefaultTrigger_1i1dd_gg_",
28
- "__STriggerCircle": "___STriggerCircle_1i1dd_gg_",
29
- "--data-value": "--data-value_1i1dd",
30
- "__STriggerCircleLine": "___STriggerCircleLine_1i1dd_gg_",
31
- "__SLine": "___SLine_1i1dd_gg_",
32
- "__SLabel": "___SLabel_1i1dd_gg_",
33
- "__SItemColor": "___SItemColor_1i1dd_gg_",
34
- "__SConfirmColor": "___SConfirmColor_1i1dd_gg_",
35
- "_hidden": "__hidden_1i1dd_gg_",
36
- "__SClearConfirm": "___SClearConfirm_1i1dd_gg_",
37
- "--value": "--value_1i1dd",
38
- "_displayLabel": "__displayLabel_1i1dd_gg_",
39
- "_value": "__value_1i1dd_gg_",
40
- "__SPlusButton": "___SPlusButton_1i1dd_gg_"
17
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SColorPickerPopper_1dnu7_gg_{max-width:calc(var(--intergalactic-spacing-4x, 16px)*2 + 28px*6 + 4px*6);padding:var(--intergalactic-spacing-4x, 16px)}.___SItemContainer_1dnu7_gg_{position:relative;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid transparent;outline:0;cursor:pointer}@media (hover:hover){.___SItemContainer_1dnu7_gg_:hover{border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}}.___SItemContainer_1dnu7_gg_::after{content:\"\";position:absolute;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 1px var(--intergalactic-border-secondary, #e0e1e9);background:var(--value_1dnu7)}@media (hover:hover){.___SItemContainer_1dnu7_gg_:hover>.___SCloseIcon_1dnu7_gg_{opacity:1}}.___SItemContainer_1dnu7_gg_.__keyboardFocused_1dnu7_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SItemContainer_1dnu7_gg_.__selected_1dnu7_gg_{border:1px solid var(--intergalactic-border-info-active, #006dca)}.___SItemContainer_1dnu7_gg_.__displayLabel_1dnu7_gg_::after{background:var(--value_1dnu7);opacity:.15}.___SItemContainer_1dnu7_gg_:not(.__value_1dnu7_gg_)::after{border:.9px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SColorsContainer_1dnu7_gg_,.___SColors_1dnu7_gg_{display:flex;flex-wrap:wrap;align-items:center;gap:var(--intergalactic-spacing-1x, 4px)}.___SPaletteManager_1dnu7_gg_{justify-content:space-between;margin-top:var(--intergalactic-spacing-3x, 12px);margin-left:calc(var(--intergalactic-spacing-1x, 4px) - 1px)}.___SInputContainer_1dnu7_gg_,.___SPaletteManager_1dnu7_gg_,.___SPlusButton_1dnu7_gg_{display:flex;align-items:center}.___SPlusButton_1dnu7_gg_{justify-content:center;width:28px;height:28px;border-radius:50%;cursor:pointer}@media (hover:hover){.___SPlusButton_1dnu7_gg_:hover{background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SDefaultTrigger_1dnu7_gg_{display:inline-flex;align-items:center;outline:0;cursor:pointer;border:0;background:0 0;padding:0}.___SDefaultTrigger_1dnu7_gg_.__keyboardFocused_1dnu7_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STriggerCircle_1dnu7_gg_{position:relative;width:16px;height:16px;margin-right:calc(var(--intergalactic-spacing-1x, 4px) + 1px);border-radius:50%;background-color:var(--data-value_1dnu7);border:1px solid transparent}.___STriggerCircle_1dnu7_gg_:not([data-value]){border:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___STriggerCircleLine_1dnu7_gg_{position:absolute;top:1px;left:1px}.___SCloseIcon_1dnu7_gg_{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);opacity:0;z-index:1}.___SLine_1dnu7_gg_{position:absolute}.___SLabel_1dnu7_gg_{z-index:1;color:var(--data-value_1dnu7);font-size:calc(var(--intergalactic-fs-100, 12px) + 1px);font-weight:var(--intergalactic-bold, 700)}.___SItemColor_1dnu7_gg_{width:20px;height:20px;border-radius:50%;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);background:var(--data-value_1dnu7)}.___SClearConfirm_1dnu7_gg_.__hidden_1dnu7_gg_,.___SConfirmColor_1dnu7_gg_.__hidden_1dnu7_gg_{display:none}" /*__inner_css_end__*/, "1dnu7_gg_") /*__reshadow_css_end__*/, {
18
+ "__SColorPickerPopper": "___SColorPickerPopper_1dnu7_gg_",
19
+ "__SItemContainer": "___SItemContainer_1dnu7_gg_",
20
+ "__SCloseIcon": "___SCloseIcon_1dnu7_gg_",
21
+ "_keyboardFocused": "__keyboardFocused_1dnu7_gg_",
22
+ "_selected": "__selected_1dnu7_gg_",
23
+ "__SColorsContainer": "___SColorsContainer_1dnu7_gg_",
24
+ "__SColors": "___SColors_1dnu7_gg_",
25
+ "__SPaletteManager": "___SPaletteManager_1dnu7_gg_",
26
+ "__SInputContainer": "___SInputContainer_1dnu7_gg_",
27
+ "__SDefaultTrigger": "___SDefaultTrigger_1dnu7_gg_",
28
+ "__STriggerCircle": "___STriggerCircle_1dnu7_gg_",
29
+ "--data-value": "--data-value_1dnu7",
30
+ "__STriggerCircleLine": "___STriggerCircleLine_1dnu7_gg_",
31
+ "__SLine": "___SLine_1dnu7_gg_",
32
+ "__SLabel": "___SLabel_1dnu7_gg_",
33
+ "__SItemColor": "___SItemColor_1dnu7_gg_",
34
+ "__SConfirmColor": "___SConfirmColor_1dnu7_gg_",
35
+ "_hidden": "__hidden_1dnu7_gg_",
36
+ "__SClearConfirm": "___SClearConfirm_1dnu7_gg_",
37
+ "--value": "--value_1dnu7",
38
+ "_displayLabel": "__displayLabel_1dnu7_gg_",
39
+ "_value": "__value_1dnu7_gg_",
40
+ "__SPlusButton": "___SPlusButton_1dnu7_gg_"
41
41
  });
42
42
  function isValidHex(hex) {
43
43
  if (hex[0] !== '#' && hex.length === 7) return false;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { BoxProps } from '@semcore/flex-box';\nimport Dropdown, { DropdownProps, DropdownHandlers } from '@semcore/dropdown';\nimport Popper from '@semcore/popper';\nimport { InputProps } from '@semcore/input';\n\n/** @deprecated */\nexport interface IItemProps extends ItemProps, UnknownProperties {}\nexport type ItemProps = BoxProps & {\n /**\n * Color item in hexadecimal format.\n */\n value?: string;\n /**\n * Shows label `A` as text color icon inside all color items\n */\n displayLabel?: boolean;\n /**\n * Property enabling the ability to remove a color item on click\n */\n editable?: boolean;\n /**\n * Shows if color item is selected\n */\n selected?: boolean;\n /**\n * Fired with color item when user clicks on the close icon\n */\n onRemove?: React.MouseEventHandler;\n};\n\n/** @deprecated */\nexport interface IColorsProps extends ColorsProps, UnknownProperties {}\nexport type ColorsProps = BoxProps & {\n /**\n * Array of color items\n */\n colors?: string[];\n};\n\n/** @deprecated */\nexport interface IColorsCustomProps extends ColorsCustomProps, UnknownProperties {}\nexport type ColorsCustomProps = ColorsProps &\n BoxProps & {\n /**\n * Fired when user clicks on the plus icon in Palette Manager - focuses the input component\n */\n onPlusButtonClick?: React.MouseEventHandler;\n };\n\n/** @deprecated */\nexport interface IInputColorProps extends InputColorProps, UnknownProperties {}\nexport type InputColorProps = InputProps & {\n /**\n * Text value of input\n */\n value?: string;\n /**\n * Default value if `value` property is not provided\n * @default null\n */\n defaultValue?: string | null;\n /**\n * Uncontrolled visual state of input\n * @default normal\n */\n state?: 'normal' | 'valid' | 'invalid';\n /**\n * Array of color items\n */\n colors?: string[];\n /**\n * Fired with entered value when user clicks on the check icon or hits `Enter` or `Space`\n */\n onAdd?: (value: string, event: React.MouseEvent | React.KeyboardEvent) => void;\n};\n\n/** @deprecated */\nexport interface IColorPickerProps extends ColorPickerProps, UnknownProperties {}\nexport type ColorPickerProps = DropdownProps & {\n /**\n * Selected color item. Should be used with `onChange` property together\n */\n value?: string | null;\n /**\n * Fired when user selects color item. Should be used with `value` property together\n */\n onChange?: (value: string, event: React.ChangeEvent) => void;\n /**\n * Default value if `value` property is not provided\n * @default null\n */\n defaultValue?: string | null;\n /**\n * Array of color items. Should be used with `onColorsChange` property together\n * @default defaultColors\n */\n colors?: string[];\n /**\n * Fired when user changes color items. Should be used with `colors` property together\n */\n onColorsChange?: (value: string[], event: React.ChangeEvent) => void;\n /**\n * Shows label `A` as text color icon inside all color items\n * @default false\n */\n displayLabel?: boolean;\n};\n\n/** @deprecated */\nexport interface IPaletteManagerProps extends PaletteManagerProps, UnknownProperties {}\nexport type PaletteManagerProps = BoxProps & {\n /**\n * Array of color items. Should be used with `onColorsChange` property together\n * @default []\n */\n colors?: string[];\n /**\n * Default value if `colors` property is not provided\n * @default []\n */\n defaultColors?: string[];\n /**\n * Fired when user adds or removes color items. Should be used with `colors` property together\n */\n onColorsChange?: (value: string[], event: React.ChangeEvent) => void;\n};\n\n/** @deprecated */\nexport interface IColorPickerHandlers extends ColorPickerHandlers, UnknownProperties {}\nexport type ColorPickerHandlers = DropdownHandlers & {};\n\n/** @deprecated */\nexport interface IPaletteManagerHandlers extends PaletteManagerHandlers, UnknownProperties {}\nexport type PaletteManagerHandlers = DropdownHandlers & {};\n\ntype ColorPickerContext = {\n getTriggerProps: PropGetterFn;\n getColorsProps: PropGetterFn;\n getItemProps: PropGetterFn;\n};\n\ntype PaletteManagerContext = {\n getInputColorProps: PropGetterFn;\n getColorsProps: PropGetterFn;\n getItemProps: PropGetterFn;\n};\n\ndeclare const defaultColors: string[];\n\ndeclare const PaletteManager: Intergalactic.Component<\n 'div',\n PaletteManagerProps,\n PaletteManagerContext,\n [handlers: PaletteManagerHandlers]\n> & {\n Item: Intergalactic.Component<'div', ItemProps>;\n Colors: Intergalactic.Component<'div', ColorsCustomProps>;\n InputColor: Intergalactic.Component<'div', InputColorProps>;\n};\n\ndeclare const ColorPicker: Intergalactic.Component<\n 'div',\n ColorPickerProps,\n ColorPickerContext,\n [handlers: ColorPickerHandlers]\n> & {\n Trigger: typeof Dropdown.Trigger;\n Popper: typeof Popper.Popper;\n Item: Intergalactic.Component<'div', ItemProps>;\n Colors: Intergalactic.Component<'div', ColorsProps>;\n};\n\nexport { PaletteManager, defaultColors };\nexport default ColorPicker;\n"],"mappings":""}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { BoxProps } from '@semcore/flex-box';\nimport Dropdown, { DropdownProps, DropdownHandlers } from '@semcore/dropdown';\nimport Popper from '@semcore/popper';\nimport { InputProps } from '@semcore/input';\n\n/** @deprecated */\nexport interface IItemProps extends ItemProps, UnknownProperties {}\nexport type ItemProps = BoxProps & {\n /**\n * Color item in hexadecimal format.\n */\n value?: string | null;\n /**\n * Shows label `A` as text color icon inside all color items\n */\n displayLabel?: boolean;\n /**\n * Property enabling the ability to remove a color item on click\n */\n editable?: boolean;\n /**\n * Shows if color item is selected\n */\n selected?: boolean;\n /**\n * Fired with color item when user clicks on the close icon\n */\n onRemove?: React.MouseEventHandler;\n};\n\n/** @deprecated */\nexport interface IColorsProps extends ColorsProps, UnknownProperties {}\nexport type ColorsProps = BoxProps & {\n /**\n * Array of color items\n */\n colors?: Array<string | null>;\n};\n\n/** @deprecated */\nexport interface IColorsCustomProps extends ColorsCustomProps, UnknownProperties {}\nexport type ColorsCustomProps = ColorsProps &\n BoxProps & {\n /**\n * Fired when user clicks on the plus icon in Palette Manager - focuses the input component\n */\n onPlusButtonClick?: React.MouseEventHandler;\n };\n\n/** @deprecated */\nexport interface IInputColorProps extends InputColorProps, UnknownProperties {}\nexport type InputColorProps = InputProps & {\n /**\n * Text value of input\n */\n value?: string;\n /**\n * Default value if `value` property is not provided\n * @default null\n */\n defaultValue?: string | null;\n /**\n * Uncontrolled visual state of input\n * @default normal\n */\n state?: 'normal' | 'valid' | 'invalid';\n /**\n * Array of color items\n */\n colors?: string[];\n /**\n * Fired with entered value when user clicks on the check icon or hits `Enter` or `Space`\n */\n onAdd?: (value: string, event: React.MouseEvent | React.KeyboardEvent) => void;\n};\n\n/** @deprecated */\nexport interface IColorPickerProps extends ColorPickerProps, UnknownProperties {}\nexport type ColorPickerProps = DropdownProps & {\n /**\n * Selected color item. Should be used with `onChange` property together\n */\n value?: string | null;\n /**\n * Fired when user selects color item. Should be used with `value` property together\n */\n onChange?: (value: string, event: React.ChangeEvent) => void;\n /**\n * Default value if `value` property is not provided\n * @default null\n */\n defaultValue?: string | null;\n /**\n * Array of color items. Should be used with `onColorsChange` property together\n * @default defaultColors\n */\n colors?: string[];\n /**\n * Fired when user changes color items. Should be used with `colors` property together\n */\n onColorsChange?: (value: string[], event: React.ChangeEvent) => void;\n /**\n * Shows label `A` as text color icon inside all color items\n * @default false\n */\n displayLabel?: boolean;\n};\n\n/** @deprecated */\nexport interface IPaletteManagerProps extends PaletteManagerProps, UnknownProperties {}\nexport type PaletteManagerProps = BoxProps & {\n /**\n * Array of color items. Should be used with `onColorsChange` property together\n * @default []\n */\n colors?: string[];\n /**\n * Default value if `colors` property is not provided\n * @default []\n */\n defaultColors?: string[];\n /**\n * Fired when user adds or removes color items. Should be used with `colors` property together\n */\n onColorsChange?: (value: string[], event: React.ChangeEvent) => void;\n};\n\n/** @deprecated */\nexport interface IColorPickerHandlers extends ColorPickerHandlers, UnknownProperties {}\nexport type ColorPickerHandlers = DropdownHandlers & {};\n\n/** @deprecated */\nexport interface IPaletteManagerHandlers extends PaletteManagerHandlers, UnknownProperties {}\nexport type PaletteManagerHandlers = DropdownHandlers & {};\n\ntype ColorPickerContext = {\n getTriggerProps: PropGetterFn;\n getColorsProps: PropGetterFn;\n getItemProps: PropGetterFn;\n};\n\ntype PaletteManagerContext = {\n getInputColorProps: PropGetterFn;\n getColorsProps: PropGetterFn;\n getItemProps: PropGetterFn;\n};\n\ndeclare const defaultColors: string[];\n\ndeclare const PaletteManager: Intergalactic.Component<\n 'div',\n PaletteManagerProps,\n PaletteManagerContext,\n [handlers: PaletteManagerHandlers]\n> & {\n Item: Intergalactic.Component<'div', ItemProps>;\n Colors: Intergalactic.Component<'div', ColorsCustomProps>;\n InputColor: Intergalactic.Component<'div', InputColorProps>;\n};\n\ndeclare const ColorPicker: Intergalactic.Component<\n 'div',\n ColorPickerProps,\n ColorPickerContext,\n [handlers: ColorPickerHandlers]\n> & {\n Trigger: typeof Dropdown.Trigger;\n Popper: typeof Popper.Popper;\n Item: Intergalactic.Component<'div', ItemProps>;\n Colors: Intergalactic.Component<'div', ColorsProps>;\n};\n\nexport { PaletteManager, defaultColors };\nexport default ColorPicker;\n"],"mappings":""}