@semcore/feature-popover 17.2.2 → 18.0.0-prerelease.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [18.0.0] - 2026-09-28
6
+
7
+ ### BREAK
8
+
9
+ - New theme applied.
10
+
5
11
  ## [17.2.2] - 2026-07-24
6
12
 
7
13
  ### Changed
@@ -15,24 +15,24 @@ var _m = _interopRequireDefault(require("@semcore/icon/Close/m"));
15
15
  var _react = _interopRequireDefault(require("react"));
16
16
  var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
17
17
  /*!__reshadow-styles__:"./style/feature-popover.shadow.css"*/
18
- const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SFeaturePopover_149e5_gg_{padding:var(--intergalactic-spacing-4x,16px) var(--intergalactic-spacing-10x,40px) var(--intergalactic-spacing-4x,16px) var(--intergalactic-spacing-4x,16px);border-radius:var(--intergalactic-popper-rounded,6px);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 #00151012);position:relative}@media (color-gamut:p3){.___SFeaturePopover_149e5_gg_{box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 oklch(.176 .033 175.7/.07))}}.___SFeaturePopover_149e5_gg_._theme_accent_149e5_gg_{background-color:var(--intergalactic-feature-popover-bg,#e1cdff);color:var(--intergalactic-text-primary,oklch(.1 .03 137/.899))}@media (color-gamut:p3){.___SFeaturePopover_149e5_gg_._theme_accent_149e5_gg_{background-color:var(--intergalactic-feature-popover-bg,oklch(.88 .078 303))}}.___SFeaturePopover_149e5_gg_._theme_neutral_149e5_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral,oklch(.23 .01 140));color:var(--intergalactic-text-primary-invert,oklch(.999 .001 180/.949))}.___STrigger_149e5_gg_{position:relative}.___SClose_149e5_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x,8px);top:var(--intergalactic-spacing-2x,8px)}.___SClose_149e5_gg_ .___SAddon_149e5_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}@keyframes showTrigger_149e5{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_149e5{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SSpot_149e5_gg_{position:absolute;bottom:calc(var(--intergalactic-spacing-1x, 4px)*-1);right:calc(var(--intergalactic-spacing-1x, 4px)*-1);animation-name:showTrigger_149e5;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_149e5_gg_:before{transform-origin:50%;animation-name:scaleSizeAndHide_149e5;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_149e5_gg_:after,.___SSpot_149e5_gg_:before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_149e5_gg_._theme_accent_149e5_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border,#e1cdff)}@media (color-gamut:p3){.___SSpot_149e5_gg_._theme_accent_149e5_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border,oklch(.88 .078 303))}}.___SSpot_149e5_gg_._theme_accent_149e5_gg_:after{background-color:var(--intergalactic-feature-popover-bg,#e1cdff)}@media (color-gamut:p3){.___SSpot_149e5_gg_._theme_accent_149e5_gg_:after{background-color:var(--intergalactic-feature-popover-bg,oklch(.88 .078 303))}}.___SSpot_149e5_gg_._theme_neutral_149e5_gg_:before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border,#e1cdff)}@media (color-gamut:p3){.___SSpot_149e5_gg_._theme_neutral_149e5_gg_:before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border,oklch(.88 .078 303))}}.___SSpot_149e5_gg_._theme_neutral_149e5_gg_:after{background-color:var(--intergalactic-feature-popover-dot-neutral,#e1cdff)}@media (color-gamut:p3){.___SSpot_149e5_gg_._theme_neutral_149e5_gg_:after{background-color:var(--intergalactic-feature-popover-dot-neutral,oklch(.88 .078 303))}}@media (prefers-reduced-motion){.___SSpot_149e5_gg_,.___SSpot_149e5_gg_:before{animation-name:none}}", /*__inner_css_end__*/"149e5_gg_"),
18
+ const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SFeaturePopover_1iigo_gg_{padding:var(--intergalactic-spacing-content-padding-large,16px) var(--intergalactic-spacing-content-padding-xxlarge,40px) var(--intergalactic-spacing-content-padding-large,16px) var(--intergalactic-spacing-content-padding-large,16px);border-radius:var(--intergalactic-popper-rounded,6px);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 #00151012);position:relative}@media (color-gamut:p3){.___SFeaturePopover_1iigo_gg_{box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 oklch(.176 .033 175.7/.07))}}.___SFeaturePopover_1iigo_gg_._theme_accent_1iigo_gg_{background-color:var(--intergalactic-feature-popover-bg-accent,#ebdeff);color:var(--intergalactic-feature-popover-text,oklch(.1 .03 137/.899))}@media (color-gamut:rec2020){.___SFeaturePopover_1iigo_gg_._theme_accent_1iigo_gg_{background-color:var(--intergalactic-feature-popover-bg-accent,oklch(.92 .052 303.1))}}.___SFeaturePopover_1iigo_gg_._theme_neutral_1iigo_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral,oklch(.23 .01 140));color:var(--intergalactic-feature-popover-text-invert,oklch(.999 .001 180/.949))}.___STrigger_1iigo_gg_{position:relative}.___SClose_1iigo_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x,8px);top:var(--intergalactic-spacing-2x,8px)}.___SClose_1iigo_gg_ .___SAddon_1iigo_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}@keyframes showTrigger_1iigo{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1iigo{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SSpot_1iigo_gg_{position:absolute;bottom:calc(var(--intergalactic-spacing-1x, 4px)*-1);right:calc(var(--intergalactic-spacing-1x, 4px)*-1);animation-name:showTrigger_1iigo;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1iigo_gg_:before{transform-origin:50%;animation-name:scaleSizeAndHide_1iigo;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_1iigo_gg_:after,.___SSpot_1iigo_gg_:before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1iigo_gg_._theme_accent_1iigo_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border-accent,#ebdeff)}@media (color-gamut:rec2020){.___SSpot_1iigo_gg_._theme_accent_1iigo_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border-accent,oklch(.92 .052 303.1))}}.___SSpot_1iigo_gg_._theme_accent_1iigo_gg_:after{background-color:var(--intergalactic-feature-popover-dot-accent,#c08eff)}@media (color-gamut:p3){.___SSpot_1iigo_gg_._theme_accent_1iigo_gg_:after{background-color:var(--intergalactic-feature-popover-dot-accent,oklch(.74 .17 303))}}.___SSpot_1iigo_gg_._theme_neutral_1iigo_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border-neutral,#c08eff)}@media (color-gamut:p3){.___SSpot_1iigo_gg_._theme_neutral_1iigo_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border-neutral,oklch(.74 .17 303))}}.___SSpot_1iigo_gg_._theme_neutral_1iigo_gg_:after{background-color:var(--intergalactic-feature-popover-dot-neutral,#c08eff)}@media (color-gamut:p3){.___SSpot_1iigo_gg_._theme_neutral_1iigo_gg_:after{background-color:var(--intergalactic-feature-popover-dot-neutral,oklch(.74 .17 303))}}@media (prefers-reduced-motion){.___SSpot_1iigo_gg_,.___SSpot_1iigo_gg_:before{animation-name:none}}", /*__inner_css_end__*/"1iigo_gg_"),
19
19
  /*__reshadow_css_end__*/
20
20
  {
21
- "__STrigger": "___STrigger_149e5_gg_",
22
- "@showTrigger": "showTrigger_149e5",
23
- "@scaleSizeAndHide": "scaleSizeAndHide_149e5",
24
- "__SFeaturePopover": "___SFeaturePopover_149e5_gg_",
25
- "_theme_accent": "_theme_accent_149e5_gg_",
26
- "_theme_neutral": "_theme_neutral_149e5_gg_",
27
- "__SClose": "___SClose_149e5_gg_",
28
- "__SAddon": "___SAddon_149e5_gg_",
29
- "__SSpot": "___SSpot_149e5_gg_"
21
+ "__STrigger": "___STrigger_1iigo_gg_",
22
+ "@showTrigger": "showTrigger_1iigo",
23
+ "@scaleSizeAndHide": "scaleSizeAndHide_1iigo",
24
+ "__SFeaturePopover": "___SFeaturePopover_1iigo_gg_",
25
+ "_theme_accent": "_theme_accent_1iigo_gg_",
26
+ "_theme_neutral": "_theme_neutral_1iigo_gg_",
27
+ "__SClose": "___SClose_1iigo_gg_",
28
+ "__SAddon": "___SAddon_1iigo_gg_",
29
+ "__SSpot": "___SSpot_1iigo_gg_"
30
30
  });
31
- const stylePopper = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes enter_d2rlz{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_d2rlz{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}", /*__inner_css_end__*/"d2rlz_gg_"),
31
+ const stylePopper = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes enter_1e3pw{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1e3pw{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}", /*__inner_css_end__*/"1e3pw_gg_"),
32
32
  /*__reshadow_css_end__*/
33
33
  {
34
- "@enter": "enter_d2rlz",
35
- "@exit": "exit_d2rlz"
34
+ "@enter": "enter_1e3pw",
35
+ "@exit": "exit_1e3pw"
36
36
  });
37
37
  class FeaturePopover extends _core.Component {
38
38
  constructor(...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"FeaturePopover.type.js","names":[],"sources":["../../src/FeaturePopover.type.ts"],"sourcesContent":["import type { Options as OptionsArrow } from '@popperjs/core/lib/modifiers/arrow';\nimport type { Options as OptionsComputeStyles } from '@popperjs/core/lib/modifiers/computeStyles';\nimport type { Options as OptionsEventListeners } from '@popperjs/core/lib/modifiers/eventListeners';\nimport type { Options as OptionsFlip } from '@popperjs/core/lib/modifiers/flip';\nimport type { Options as OptionsOffset } from '@popperjs/core/lib/modifiers/offset';\nimport type { Options as OptionsPreventOverflow } from '@popperjs/core/lib/modifiers/preventOverflow';\nimport type { Modifier, Options, PositioningStrategy } from '@popperjs/core/lib/types';\nimport type {\n AnimationProps,\n BoxProps,\n OutsideClickProps,\n PortalProps,\n Box,\n PopperProps,\n PopperContext,\n PopperPopperProps,\n Placement,\n Popper,\n} from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { UniqueIDProps } from '@semcore/core/lib/utils/uniqueID';\n\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSFeaturePopover {\n type Props = FPPopperProps & {\n /** Popper visibility value */\n visible?: boolean;\n /** Function called when visibility changes */\n onVisibleChange?: (visible: boolean, e?: Event) => boolean | void;\n /**\n * The position of the popper relative to the trigger that called it.\n * @default auto\n */\n placement?: Placement;\n /**\n * The theme of FeaturePopover\n * @default accent\n */\n theme?: 'accent' | 'neutral';\n };\n type DefaultProps = {\n offset: NSFeaturePopover.Props['offset'];\n placement: 'bottom-start';\n defaultVisible: false;\n onOutsideClick: () => void;\n interaction: 'none';\n i18n: LocalizedMessages;\n locale: 'en';\n theme: 'accent';\n };\n type InternalProps = WithI18nEnhanceProps & {\n interaction?: PopperProps['interaction'];\n };\n type Handlers = {\n visible: null;\n };\n type Ctx = PopperContext & {\n getSpotProps: PropGetterFn;\n };\n\n namespace Trigger {\n type Props = BoxProps & {\n theme?: NSFeaturePopover.Props['theme'];\n };\n\n type Component = Intergalactic.Component<typeof Popper.Trigger, Props>;\n }\n\n namespace Popper {\n type Props = PopperPopperProps &\n /**\n * Popper must have an accessible names (aria-group-name).\n */\n Intergalactic.RequireAtLeastOne<{\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n 'title'?: string;\n }> & {\n /**\n * The property responsible for the visibility of the closing icon\n * @default false\n */\n closeIcon?: boolean;\n /** Animation display duration in `ms`\n * @default 200\n */\n duration?: number;\n /** Specifies the locale for i18n support */\n locale?: string;\n /**\n * Disable animation\n * @deprecated\n */\n animationsDisabled?: boolean;\n };\n\n type Component = Intergalactic.Component<'div', Props>;\n }\n\n namespace Spot {\n type Props = {\n visible?: boolean;\n theme?: NSFeaturePopover.Props['theme'];\n };\n\n type Component = Intergalactic.Component<typeof Box, Props>;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Trigger: Trigger.Component;\n Popper: Popper.Component;\n Spot: Spot.Component;\n };\n}\n\n// Re-think it since looks like those props aren't needed for the Root component.\n/** @deprecated It will be removed in v18. */\nexport type FPPopperProps = OutsideClickProps &\n PortalProps &\n UniqueIDProps &\n AnimationProps & {\n /**\n * Popper can have different positioning options\n * @default absolute\n */\n strategy?: PositioningStrategy;\n /**\n * Modifiers for popper.js\n */\n modifiers?: Array<Partial<Modifier<any, any>>>;\n /** Timer to show and hide the popper */\n timeout?: number | [number, number];\n /** PopperJS modifier settings for popper indent */\n offset?: Partial<OptionsOffset> | number | [number, number];\n /** PopperJS modifier settings for finding borders */\n preventOverflow?: Partial<OptionsPreventOverflow>;\n /** PopperJS modifier settings responsible for the arrow */\n arrow?: Partial<OptionsArrow>;\n /** PopperJS modifier settings responsible for turning the popper when there is not enough space */\n flip?: Partial<OptionsFlip>;\n /** PopperJS modifier settings for applying styles */\n computeStyles?: Partial<OptionsComputeStyles>;\n /** PopperJS modifier settings responsible for subscribing to global events */\n eventListeners?: Partial<OptionsEventListeners>;\n /** @ignore */\n onFirstUpdate?: Options['onFirstUpdate'];\n /**\n * Flag for disable Popover (if true, it will close Popper and it will not respond to handlers)\n * @default false\n */\n disabled?: boolean;\n /**\n * If enabled, you will need to use setTrigger function from children rendering function to set popper trigger.\n */\n explicitTriggerSet?: boolean;\n\n popperMargin?: number;\n };\n\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverPopperProps = NSFeaturePopover.Popper.Props;\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverContext = NSFeaturePopover.Ctx;\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverProps = NSFeaturePopover.Props;\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverDefaultProps = NSFeaturePopover.DefaultProps;\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverTriggerProps = NSFeaturePopover.Trigger.Props;\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverSpotProps = NSFeaturePopover.Spot.Props;\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverComponent = NSFeaturePopover.Component;\n\nexport type { NSFeaturePopover };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"FeaturePopover.type.js","names":[],"sources":["../../src/FeaturePopover.type.ts"],"sourcesContent":["import type { Options as OptionsArrow } from '@popperjs/core/lib/modifiers/arrow';\nimport type { Options as OptionsComputeStyles } from '@popperjs/core/lib/modifiers/computeStyles';\nimport type { Options as OptionsEventListeners } from '@popperjs/core/lib/modifiers/eventListeners';\nimport type { Options as OptionsFlip } from '@popperjs/core/lib/modifiers/flip';\nimport type { Options as OptionsOffset } from '@popperjs/core/lib/modifiers/offset';\nimport type { Options as OptionsPreventOverflow } from '@popperjs/core/lib/modifiers/preventOverflow';\nimport type { Modifier, Options, PositioningStrategy } from '@popperjs/core/lib/types';\nimport type { NSAnimation, NSBox, NSOutsideClick, NSPortal, NSPopper } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { UniqueIDProps } from '@semcore/core/lib/utils/uniqueID';\n\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSFeaturePopover {\n type Props = FPPopperProps & {\n /** Popper visibility value */\n visible?: boolean;\n /** Function called when visibility changes */\n onVisibleChange?: (visible: boolean, e?: Event) => boolean | void;\n /**\n * The position of the popper relative to the trigger that called it.\n * @default auto\n */\n placement?: NSPopper.Placement;\n /**\n * The theme of FeaturePopover\n * @default accent\n */\n theme?: 'accent' | 'neutral';\n };\n type DefaultProps = {\n offset: NSFeaturePopover.Props['offset'];\n placement: 'bottom-start';\n defaultVisible: false;\n onOutsideClick: () => void;\n interaction: 'none';\n i18n: LocalizedMessages;\n locale: 'en';\n theme: 'accent';\n };\n type InternalProps = WithI18nEnhanceProps & {\n interaction?: NSPopper.Props['interaction'];\n };\n type Handlers = {\n visible: null;\n };\n type Ctx = NSPopper.Ctx & {\n getSpotProps: PropGetterFn;\n };\n\n namespace Trigger {\n type Props = NSBox.Props & {\n theme?: NSFeaturePopover.Props['theme'];\n };\n\n type Component = Intergalactic.Component<NSPopper.Trigger.Component, Props>;\n }\n\n namespace Popper {\n type Props = NSPopper.Popper.Props &\n /**\n * Popper must have an accessible names (aria-group-name).\n */\n Intergalactic.RequireAtLeastOne<{\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n 'title'?: string;\n }> & {\n /**\n * The property responsible for the visibility of the closing icon\n * @default false\n */\n closeIcon?: boolean;\n /** Animation display duration in `ms`\n * @default 200\n */\n duration?: number;\n /** Specifies the locale for i18n support */\n locale?: string;\n /**\n * Disable animation\n * @deprecated\n */\n animationsDisabled?: boolean;\n };\n\n type Component = Intergalactic.Component<'div', Props>;\n }\n\n namespace Spot {\n type Props = {\n visible?: boolean;\n theme?: NSFeaturePopover.Props['theme'];\n };\n\n type Component = Intergalactic.Component<NSBox.Component, Props>;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Trigger: Trigger.Component;\n Popper: Popper.Component;\n Spot: Spot.Component;\n };\n}\n\n// Re-think it since looks like those props aren't needed for the Root component.\n/** @deprecated It will be removed in v19. */\nexport type FPPopperProps = NSOutsideClick.Props &\n NSPortal.Props &\n UniqueIDProps &\n NSAnimation.Props & {\n /**\n * Popper can have different positioning options\n * @default absolute\n */\n strategy?: PositioningStrategy;\n /**\n * Modifiers for popper.js\n */\n modifiers?: Array<Partial<Modifier<any, any>>>;\n /** Timer to show and hide the popper */\n timeout?: number | [number, number];\n /** PopperJS modifier settings for popper indent */\n offset?: Partial<OptionsOffset> | number | [number, number];\n /** PopperJS modifier settings for finding borders */\n preventOverflow?: Partial<OptionsPreventOverflow>;\n /** PopperJS modifier settings responsible for the arrow */\n arrow?: Partial<OptionsArrow>;\n /** PopperJS modifier settings responsible for turning the popper when there is not enough space */\n flip?: Partial<OptionsFlip>;\n /** PopperJS modifier settings for applying styles */\n computeStyles?: Partial<OptionsComputeStyles>;\n /** PopperJS modifier settings responsible for subscribing to global events */\n eventListeners?: Partial<OptionsEventListeners>;\n /** @ignore */\n onFirstUpdate?: Options['onFirstUpdate'];\n /**\n * Flag for disable Popover (if true, it will close Popper and it will not respond to handlers)\n * @default false\n */\n disabled?: boolean;\n /**\n * If enabled, you will need to use setTrigger function from children rendering function to set popper trigger.\n */\n explicitTriggerSet?: boolean;\n\n popperMargin?: number;\n };\n\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverPopperProps = NSFeaturePopover.Popper.Props;\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverContext = NSFeaturePopover.Ctx;\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverProps = NSFeaturePopover.Props;\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverDefaultProps = NSFeaturePopover.DefaultProps;\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverTriggerProps = NSFeaturePopover.Trigger.Props;\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverSpotProps = NSFeaturePopover.Spot.Props;\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverComponent = NSFeaturePopover.Component;\n\nexport type { NSFeaturePopover };\n"],"mappings":"","ignoreList":[]}
@@ -1,20 +1,20 @@
1
1
  SFeaturePopover {
2
- padding-top: var(--intergalactic-spacing-4x, 16px);
3
- padding-right: var(--intergalactic-spacing-10x, 40px);
4
- padding-bottom: var(--intergalactic-spacing-4x, 16px);
5
- padding-left: var(--intergalactic-spacing-4x, 16px);
2
+ padding-top: var(--intergalactic-spacing-content-padding-large, 16px);
3
+ padding-right: var(--intergalactic-spacing-content-padding-xxlarge, 40px);
4
+ padding-bottom: var(--intergalactic-spacing-content-padding-large, 16px);
5
+ padding-left: var(--intergalactic-spacing-content-padding-large, 16px);
6
6
  border-radius: var(--intergalactic-popper-rounded, 6px);
7
7
  box-sizing: border-box;
8
8
  box-shadow: var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px oklch(0.176 0.033 175.7 / 0.07));
9
9
  position: relative;
10
10
 
11
11
  &[theme='accent'] {
12
- background-color: var(--intergalactic-feature-popover-bg, oklch(0.88 0.078 303));
13
- color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
12
+ background-color: var(--intergalactic-feature-popover-bg-accent, oklch(0.92 0.052 303.1));
13
+ color: var(--intergalactic-feature-popover-text, oklch(0.1 0.03 137 / 0.899));
14
14
  }
15
15
  &[theme='neutral'] {
16
16
  background-color: var(--intergalactic-feature-popover-bg-neutral, oklch(0.23 0.01 140));
17
- color: var(--intergalactic-text-primary-invert, oklch(0.999 0.001 180 / 0.949));
17
+ color: var(--intergalactic-feature-popover-text-invert, oklch(0.999 0.001 180 / 0.949));
18
18
  }
19
19
  }
20
20
 
@@ -94,18 +94,18 @@ SSpot {
94
94
 
95
95
  &[theme='accent'] {
96
96
  &::before {
97
- background-color: var(--intergalactic-feature-popover-dot-outer-border, oklch(0.88 0.078 303));
97
+ background-color: var(--intergalactic-feature-popover-dot-outer-border-accent, oklch(0.92 0.052 303.1));
98
98
  }
99
99
  &::after {
100
- background-color: var(--intergalactic-feature-popover-bg, oklch(0.88 0.078 303));
100
+ background-color: var(--intergalactic-feature-popover-dot-accent, oklch(0.74 0.17 303));
101
101
  }
102
102
  }
103
103
  &[theme='neutral'] {
104
104
  &::before {
105
- background-color: var(--intergalactic-feature-popover-dot-neutral-outer-border, oklch(0.88 0.078 303));
105
+ background-color: var(--intergalactic-feature-popover-dot-outer-border-neutral, oklch(0.74 0.17 303));
106
106
  }
107
107
  &::after {
108
- background-color: var(--intergalactic-feature-popover-dot-neutral, oklch(0.88 0.078 303));
108
+ background-color: var(--intergalactic-feature-popover-dot-neutral, oklch(0.74 0.17 303));
109
109
  }
110
110
  }
111
111
  }
@@ -11,25 +11,25 @@ import i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';
11
11
  import CloseIcon from '@semcore/icon/Close/m';
12
12
  import React from 'react';
13
13
  /*!__reshadow-styles__:"./style/feature-popover.shadow.css"*/
14
- const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SFeaturePopover_149e5_gg_{padding:var(--intergalactic-spacing-4x,16px) var(--intergalactic-spacing-10x,40px) var(--intergalactic-spacing-4x,16px) var(--intergalactic-spacing-4x,16px);border-radius:var(--intergalactic-popper-rounded,6px);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 #00151012);position:relative}@media (color-gamut:p3){.___SFeaturePopover_149e5_gg_{box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 oklch(.176 .033 175.7/.07))}}.___SFeaturePopover_149e5_gg_._theme_accent_149e5_gg_{background-color:var(--intergalactic-feature-popover-bg,#e1cdff);color:var(--intergalactic-text-primary,oklch(.1 .03 137/.899))}@media (color-gamut:p3){.___SFeaturePopover_149e5_gg_._theme_accent_149e5_gg_{background-color:var(--intergalactic-feature-popover-bg,oklch(.88 .078 303))}}.___SFeaturePopover_149e5_gg_._theme_neutral_149e5_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral,oklch(.23 .01 140));color:var(--intergalactic-text-primary-invert,oklch(.999 .001 180/.949))}.___STrigger_149e5_gg_{position:relative}.___SClose_149e5_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x,8px);top:var(--intergalactic-spacing-2x,8px)}.___SClose_149e5_gg_ .___SAddon_149e5_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}@keyframes showTrigger_149e5{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_149e5{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SSpot_149e5_gg_{position:absolute;bottom:calc(var(--intergalactic-spacing-1x, 4px)*-1);right:calc(var(--intergalactic-spacing-1x, 4px)*-1);animation-name:showTrigger_149e5;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_149e5_gg_:before{transform-origin:50%;animation-name:scaleSizeAndHide_149e5;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_149e5_gg_:after,.___SSpot_149e5_gg_:before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_149e5_gg_._theme_accent_149e5_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border,#e1cdff)}@media (color-gamut:p3){.___SSpot_149e5_gg_._theme_accent_149e5_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border,oklch(.88 .078 303))}}.___SSpot_149e5_gg_._theme_accent_149e5_gg_:after{background-color:var(--intergalactic-feature-popover-bg,#e1cdff)}@media (color-gamut:p3){.___SSpot_149e5_gg_._theme_accent_149e5_gg_:after{background-color:var(--intergalactic-feature-popover-bg,oklch(.88 .078 303))}}.___SSpot_149e5_gg_._theme_neutral_149e5_gg_:before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border,#e1cdff)}@media (color-gamut:p3){.___SSpot_149e5_gg_._theme_neutral_149e5_gg_:before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border,oklch(.88 .078 303))}}.___SSpot_149e5_gg_._theme_neutral_149e5_gg_:after{background-color:var(--intergalactic-feature-popover-dot-neutral,#e1cdff)}@media (color-gamut:p3){.___SSpot_149e5_gg_._theme_neutral_149e5_gg_:after{background-color:var(--intergalactic-feature-popover-dot-neutral,oklch(.88 .078 303))}}@media (prefers-reduced-motion){.___SSpot_149e5_gg_,.___SSpot_149e5_gg_:before{animation-name:none}}", /*__inner_css_end__*/"149e5_gg_"),
14
+ const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SFeaturePopover_1iigo_gg_{padding:var(--intergalactic-spacing-content-padding-large,16px) var(--intergalactic-spacing-content-padding-xxlarge,40px) var(--intergalactic-spacing-content-padding-large,16px) var(--intergalactic-spacing-content-padding-large,16px);border-radius:var(--intergalactic-popper-rounded,6px);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 #00151012);position:relative}@media (color-gamut:p3){.___SFeaturePopover_1iigo_gg_{box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 oklch(.176 .033 175.7/.07))}}.___SFeaturePopover_1iigo_gg_._theme_accent_1iigo_gg_{background-color:var(--intergalactic-feature-popover-bg-accent,#ebdeff);color:var(--intergalactic-feature-popover-text,oklch(.1 .03 137/.899))}@media (color-gamut:rec2020){.___SFeaturePopover_1iigo_gg_._theme_accent_1iigo_gg_{background-color:var(--intergalactic-feature-popover-bg-accent,oklch(.92 .052 303.1))}}.___SFeaturePopover_1iigo_gg_._theme_neutral_1iigo_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral,oklch(.23 .01 140));color:var(--intergalactic-feature-popover-text-invert,oklch(.999 .001 180/.949))}.___STrigger_1iigo_gg_{position:relative}.___SClose_1iigo_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x,8px);top:var(--intergalactic-spacing-2x,8px)}.___SClose_1iigo_gg_ .___SAddon_1iigo_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}@keyframes showTrigger_1iigo{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1iigo{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SSpot_1iigo_gg_{position:absolute;bottom:calc(var(--intergalactic-spacing-1x, 4px)*-1);right:calc(var(--intergalactic-spacing-1x, 4px)*-1);animation-name:showTrigger_1iigo;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1iigo_gg_:before{transform-origin:50%;animation-name:scaleSizeAndHide_1iigo;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_1iigo_gg_:after,.___SSpot_1iigo_gg_:before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1iigo_gg_._theme_accent_1iigo_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border-accent,#ebdeff)}@media (color-gamut:rec2020){.___SSpot_1iigo_gg_._theme_accent_1iigo_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border-accent,oklch(.92 .052 303.1))}}.___SSpot_1iigo_gg_._theme_accent_1iigo_gg_:after{background-color:var(--intergalactic-feature-popover-dot-accent,#c08eff)}@media (color-gamut:p3){.___SSpot_1iigo_gg_._theme_accent_1iigo_gg_:after{background-color:var(--intergalactic-feature-popover-dot-accent,oklch(.74 .17 303))}}.___SSpot_1iigo_gg_._theme_neutral_1iigo_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border-neutral,#c08eff)}@media (color-gamut:p3){.___SSpot_1iigo_gg_._theme_neutral_1iigo_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border-neutral,oklch(.74 .17 303))}}.___SSpot_1iigo_gg_._theme_neutral_1iigo_gg_:after{background-color:var(--intergalactic-feature-popover-dot-neutral,#c08eff)}@media (color-gamut:p3){.___SSpot_1iigo_gg_._theme_neutral_1iigo_gg_:after{background-color:var(--intergalactic-feature-popover-dot-neutral,oklch(.74 .17 303))}}@media (prefers-reduced-motion){.___SSpot_1iigo_gg_,.___SSpot_1iigo_gg_:before{animation-name:none}}", /*__inner_css_end__*/"1iigo_gg_"),
15
15
  /*__reshadow_css_end__*/
16
16
  {
17
- "__STrigger": "___STrigger_149e5_gg_",
18
- "@showTrigger": "showTrigger_149e5",
19
- "@scaleSizeAndHide": "scaleSizeAndHide_149e5",
20
- "__SFeaturePopover": "___SFeaturePopover_149e5_gg_",
21
- "_theme_accent": "_theme_accent_149e5_gg_",
22
- "_theme_neutral": "_theme_neutral_149e5_gg_",
23
- "__SClose": "___SClose_149e5_gg_",
24
- "__SAddon": "___SAddon_149e5_gg_",
25
- "__SSpot": "___SSpot_149e5_gg_"
17
+ "__STrigger": "___STrigger_1iigo_gg_",
18
+ "@showTrigger": "showTrigger_1iigo",
19
+ "@scaleSizeAndHide": "scaleSizeAndHide_1iigo",
20
+ "__SFeaturePopover": "___SFeaturePopover_1iigo_gg_",
21
+ "_theme_accent": "_theme_accent_1iigo_gg_",
22
+ "_theme_neutral": "_theme_neutral_1iigo_gg_",
23
+ "__SClose": "___SClose_1iigo_gg_",
24
+ "__SAddon": "___SAddon_1iigo_gg_",
25
+ "__SSpot": "___SSpot_1iigo_gg_"
26
26
  });
27
27
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
28
- const stylePopper = (/*__reshadow_css_start__*/sstyled.insert(/*__inner_css_start__*/"@keyframes enter_d2rlz{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_d2rlz{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}", /*__inner_css_end__*/"d2rlz_gg_"),
28
+ const stylePopper = (/*__reshadow_css_start__*/sstyled.insert(/*__inner_css_start__*/"@keyframes enter_1e3pw{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1e3pw{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}", /*__inner_css_end__*/"1e3pw_gg_"),
29
29
  /*__reshadow_css_end__*/
30
30
  {
31
- "@enter": "enter_d2rlz",
32
- "@exit": "exit_d2rlz"
31
+ "@enter": "enter_1e3pw",
32
+ "@exit": "exit_1e3pw"
33
33
  });
34
34
  class FeaturePopover extends Component {
35
35
  constructor(...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"FeaturePopover.type.js","names":[],"sources":["../../src/FeaturePopover.type.ts"],"sourcesContent":["import type { Options as OptionsArrow } from '@popperjs/core/lib/modifiers/arrow';\nimport type { Options as OptionsComputeStyles } from '@popperjs/core/lib/modifiers/computeStyles';\nimport type { Options as OptionsEventListeners } from '@popperjs/core/lib/modifiers/eventListeners';\nimport type { Options as OptionsFlip } from '@popperjs/core/lib/modifiers/flip';\nimport type { Options as OptionsOffset } from '@popperjs/core/lib/modifiers/offset';\nimport type { Options as OptionsPreventOverflow } from '@popperjs/core/lib/modifiers/preventOverflow';\nimport type { Modifier, Options, PositioningStrategy } from '@popperjs/core/lib/types';\nimport type {\n AnimationProps,\n BoxProps,\n OutsideClickProps,\n PortalProps,\n Box,\n PopperProps,\n PopperContext,\n PopperPopperProps,\n Placement,\n Popper,\n} from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { UniqueIDProps } from '@semcore/core/lib/utils/uniqueID';\n\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSFeaturePopover {\n type Props = FPPopperProps & {\n /** Popper visibility value */\n visible?: boolean;\n /** Function called when visibility changes */\n onVisibleChange?: (visible: boolean, e?: Event) => boolean | void;\n /**\n * The position of the popper relative to the trigger that called it.\n * @default auto\n */\n placement?: Placement;\n /**\n * The theme of FeaturePopover\n * @default accent\n */\n theme?: 'accent' | 'neutral';\n };\n type DefaultProps = {\n offset: NSFeaturePopover.Props['offset'];\n placement: 'bottom-start';\n defaultVisible: false;\n onOutsideClick: () => void;\n interaction: 'none';\n i18n: LocalizedMessages;\n locale: 'en';\n theme: 'accent';\n };\n type InternalProps = WithI18nEnhanceProps & {\n interaction?: PopperProps['interaction'];\n };\n type Handlers = {\n visible: null;\n };\n type Ctx = PopperContext & {\n getSpotProps: PropGetterFn;\n };\n\n namespace Trigger {\n type Props = BoxProps & {\n theme?: NSFeaturePopover.Props['theme'];\n };\n\n type Component = Intergalactic.Component<typeof Popper.Trigger, Props>;\n }\n\n namespace Popper {\n type Props = PopperPopperProps &\n /**\n * Popper must have an accessible names (aria-group-name).\n */\n Intergalactic.RequireAtLeastOne<{\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n 'title'?: string;\n }> & {\n /**\n * The property responsible for the visibility of the closing icon\n * @default false\n */\n closeIcon?: boolean;\n /** Animation display duration in `ms`\n * @default 200\n */\n duration?: number;\n /** Specifies the locale for i18n support */\n locale?: string;\n /**\n * Disable animation\n * @deprecated\n */\n animationsDisabled?: boolean;\n };\n\n type Component = Intergalactic.Component<'div', Props>;\n }\n\n namespace Spot {\n type Props = {\n visible?: boolean;\n theme?: NSFeaturePopover.Props['theme'];\n };\n\n type Component = Intergalactic.Component<typeof Box, Props>;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Trigger: Trigger.Component;\n Popper: Popper.Component;\n Spot: Spot.Component;\n };\n}\n\n// Re-think it since looks like those props aren't needed for the Root component.\n/** @deprecated It will be removed in v18. */\nexport type FPPopperProps = OutsideClickProps &\n PortalProps &\n UniqueIDProps &\n AnimationProps & {\n /**\n * Popper can have different positioning options\n * @default absolute\n */\n strategy?: PositioningStrategy;\n /**\n * Modifiers for popper.js\n */\n modifiers?: Array<Partial<Modifier<any, any>>>;\n /** Timer to show and hide the popper */\n timeout?: number | [number, number];\n /** PopperJS modifier settings for popper indent */\n offset?: Partial<OptionsOffset> | number | [number, number];\n /** PopperJS modifier settings for finding borders */\n preventOverflow?: Partial<OptionsPreventOverflow>;\n /** PopperJS modifier settings responsible for the arrow */\n arrow?: Partial<OptionsArrow>;\n /** PopperJS modifier settings responsible for turning the popper when there is not enough space */\n flip?: Partial<OptionsFlip>;\n /** PopperJS modifier settings for applying styles */\n computeStyles?: Partial<OptionsComputeStyles>;\n /** PopperJS modifier settings responsible for subscribing to global events */\n eventListeners?: Partial<OptionsEventListeners>;\n /** @ignore */\n onFirstUpdate?: Options['onFirstUpdate'];\n /**\n * Flag for disable Popover (if true, it will close Popper and it will not respond to handlers)\n * @default false\n */\n disabled?: boolean;\n /**\n * If enabled, you will need to use setTrigger function from children rendering function to set popper trigger.\n */\n explicitTriggerSet?: boolean;\n\n popperMargin?: number;\n };\n\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverPopperProps = NSFeaturePopover.Popper.Props;\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverContext = NSFeaturePopover.Ctx;\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverProps = NSFeaturePopover.Props;\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverDefaultProps = NSFeaturePopover.DefaultProps;\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverTriggerProps = NSFeaturePopover.Trigger.Props;\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverSpotProps = NSFeaturePopover.Spot.Props;\n/** @deprecated It will be removed in v18. */\nexport type FeaturePopoverComponent = NSFeaturePopover.Component;\n\nexport type { NSFeaturePopover };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"FeaturePopover.type.js","names":[],"sources":["../../src/FeaturePopover.type.ts"],"sourcesContent":["import type { Options as OptionsArrow } from '@popperjs/core/lib/modifiers/arrow';\nimport type { Options as OptionsComputeStyles } from '@popperjs/core/lib/modifiers/computeStyles';\nimport type { Options as OptionsEventListeners } from '@popperjs/core/lib/modifiers/eventListeners';\nimport type { Options as OptionsFlip } from '@popperjs/core/lib/modifiers/flip';\nimport type { Options as OptionsOffset } from '@popperjs/core/lib/modifiers/offset';\nimport type { Options as OptionsPreventOverflow } from '@popperjs/core/lib/modifiers/preventOverflow';\nimport type { Modifier, Options, PositioningStrategy } from '@popperjs/core/lib/types';\nimport type { NSAnimation, NSBox, NSOutsideClick, NSPortal, NSPopper } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { UniqueIDProps } from '@semcore/core/lib/utils/uniqueID';\n\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSFeaturePopover {\n type Props = FPPopperProps & {\n /** Popper visibility value */\n visible?: boolean;\n /** Function called when visibility changes */\n onVisibleChange?: (visible: boolean, e?: Event) => boolean | void;\n /**\n * The position of the popper relative to the trigger that called it.\n * @default auto\n */\n placement?: NSPopper.Placement;\n /**\n * The theme of FeaturePopover\n * @default accent\n */\n theme?: 'accent' | 'neutral';\n };\n type DefaultProps = {\n offset: NSFeaturePopover.Props['offset'];\n placement: 'bottom-start';\n defaultVisible: false;\n onOutsideClick: () => void;\n interaction: 'none';\n i18n: LocalizedMessages;\n locale: 'en';\n theme: 'accent';\n };\n type InternalProps = WithI18nEnhanceProps & {\n interaction?: NSPopper.Props['interaction'];\n };\n type Handlers = {\n visible: null;\n };\n type Ctx = NSPopper.Ctx & {\n getSpotProps: PropGetterFn;\n };\n\n namespace Trigger {\n type Props = NSBox.Props & {\n theme?: NSFeaturePopover.Props['theme'];\n };\n\n type Component = Intergalactic.Component<NSPopper.Trigger.Component, Props>;\n }\n\n namespace Popper {\n type Props = NSPopper.Popper.Props &\n /**\n * Popper must have an accessible names (aria-group-name).\n */\n Intergalactic.RequireAtLeastOne<{\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n 'title'?: string;\n }> & {\n /**\n * The property responsible for the visibility of the closing icon\n * @default false\n */\n closeIcon?: boolean;\n /** Animation display duration in `ms`\n * @default 200\n */\n duration?: number;\n /** Specifies the locale for i18n support */\n locale?: string;\n /**\n * Disable animation\n * @deprecated\n */\n animationsDisabled?: boolean;\n };\n\n type Component = Intergalactic.Component<'div', Props>;\n }\n\n namespace Spot {\n type Props = {\n visible?: boolean;\n theme?: NSFeaturePopover.Props['theme'];\n };\n\n type Component = Intergalactic.Component<NSBox.Component, Props>;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Trigger: Trigger.Component;\n Popper: Popper.Component;\n Spot: Spot.Component;\n };\n}\n\n// Re-think it since looks like those props aren't needed for the Root component.\n/** @deprecated It will be removed in v19. */\nexport type FPPopperProps = NSOutsideClick.Props &\n NSPortal.Props &\n UniqueIDProps &\n NSAnimation.Props & {\n /**\n * Popper can have different positioning options\n * @default absolute\n */\n strategy?: PositioningStrategy;\n /**\n * Modifiers for popper.js\n */\n modifiers?: Array<Partial<Modifier<any, any>>>;\n /** Timer to show and hide the popper */\n timeout?: number | [number, number];\n /** PopperJS modifier settings for popper indent */\n offset?: Partial<OptionsOffset> | number | [number, number];\n /** PopperJS modifier settings for finding borders */\n preventOverflow?: Partial<OptionsPreventOverflow>;\n /** PopperJS modifier settings responsible for the arrow */\n arrow?: Partial<OptionsArrow>;\n /** PopperJS modifier settings responsible for turning the popper when there is not enough space */\n flip?: Partial<OptionsFlip>;\n /** PopperJS modifier settings for applying styles */\n computeStyles?: Partial<OptionsComputeStyles>;\n /** PopperJS modifier settings responsible for subscribing to global events */\n eventListeners?: Partial<OptionsEventListeners>;\n /** @ignore */\n onFirstUpdate?: Options['onFirstUpdate'];\n /**\n * Flag for disable Popover (if true, it will close Popper and it will not respond to handlers)\n * @default false\n */\n disabled?: boolean;\n /**\n * If enabled, you will need to use setTrigger function from children rendering function to set popper trigger.\n */\n explicitTriggerSet?: boolean;\n\n popperMargin?: number;\n };\n\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverPopperProps = NSFeaturePopover.Popper.Props;\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverContext = NSFeaturePopover.Ctx;\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverProps = NSFeaturePopover.Props;\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverDefaultProps = NSFeaturePopover.DefaultProps;\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverTriggerProps = NSFeaturePopover.Trigger.Props;\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverSpotProps = NSFeaturePopover.Spot.Props;\n/** @deprecated It will be removed in v19. */\nexport type FeaturePopoverComponent = NSFeaturePopover.Component;\n\nexport type { NSFeaturePopover };\n"],"mappings":"","ignoreList":[]}
@@ -1,20 +1,20 @@
1
1
  SFeaturePopover {
2
- padding-top: var(--intergalactic-spacing-4x, 16px);
3
- padding-right: var(--intergalactic-spacing-10x, 40px);
4
- padding-bottom: var(--intergalactic-spacing-4x, 16px);
5
- padding-left: var(--intergalactic-spacing-4x, 16px);
2
+ padding-top: var(--intergalactic-spacing-content-padding-large, 16px);
3
+ padding-right: var(--intergalactic-spacing-content-padding-xxlarge, 40px);
4
+ padding-bottom: var(--intergalactic-spacing-content-padding-large, 16px);
5
+ padding-left: var(--intergalactic-spacing-content-padding-large, 16px);
6
6
  border-radius: var(--intergalactic-popper-rounded, 6px);
7
7
  box-sizing: border-box;
8
8
  box-shadow: var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px oklch(0.176 0.033 175.7 / 0.07));
9
9
  position: relative;
10
10
 
11
11
  &[theme='accent'] {
12
- background-color: var(--intergalactic-feature-popover-bg, oklch(0.88 0.078 303));
13
- color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
12
+ background-color: var(--intergalactic-feature-popover-bg-accent, oklch(0.92 0.052 303.1));
13
+ color: var(--intergalactic-feature-popover-text, oklch(0.1 0.03 137 / 0.899));
14
14
  }
15
15
  &[theme='neutral'] {
16
16
  background-color: var(--intergalactic-feature-popover-bg-neutral, oklch(0.23 0.01 140));
17
- color: var(--intergalactic-text-primary-invert, oklch(0.999 0.001 180 / 0.949));
17
+ color: var(--intergalactic-feature-popover-text-invert, oklch(0.999 0.001 180 / 0.949));
18
18
  }
19
19
  }
20
20
 
@@ -94,18 +94,18 @@ SSpot {
94
94
 
95
95
  &[theme='accent'] {
96
96
  &::before {
97
- background-color: var(--intergalactic-feature-popover-dot-outer-border, oklch(0.88 0.078 303));
97
+ background-color: var(--intergalactic-feature-popover-dot-outer-border-accent, oklch(0.92 0.052 303.1));
98
98
  }
99
99
  &::after {
100
- background-color: var(--intergalactic-feature-popover-bg, oklch(0.88 0.078 303));
100
+ background-color: var(--intergalactic-feature-popover-dot-accent, oklch(0.74 0.17 303));
101
101
  }
102
102
  }
103
103
  &[theme='neutral'] {
104
104
  &::before {
105
- background-color: var(--intergalactic-feature-popover-dot-neutral-outer-border, oklch(0.88 0.078 303));
105
+ background-color: var(--intergalactic-feature-popover-dot-outer-border-neutral, oklch(0.74 0.17 303));
106
106
  }
107
107
  &::after {
108
- background-color: var(--intergalactic-feature-popover-dot-neutral, oklch(0.88 0.078 303));
108
+ background-color: var(--intergalactic-feature-popover-dot-neutral, oklch(0.74 0.17 303));
109
109
  }
110
110
  }
111
111
  }
@@ -12,33 +12,33 @@ const style = (
12
12
  /*__reshadow_css_start__*/
13
13
  (sstyled.insert(
14
14
  /*__inner_css_start__*/
15
- '.___SFeaturePopover_149e5_gg_{padding:var(--intergalactic-spacing-4x,16px) var(--intergalactic-spacing-10x,40px) var(--intergalactic-spacing-4x,16px) var(--intergalactic-spacing-4x,16px);border-radius:var(--intergalactic-popper-rounded,6px);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 #00151012);position:relative}@media (color-gamut:p3){.___SFeaturePopover_149e5_gg_{box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 oklch(.176 .033 175.7/.07))}}.___SFeaturePopover_149e5_gg_._theme_accent_149e5_gg_{background-color:var(--intergalactic-feature-popover-bg,#e1cdff);color:var(--intergalactic-text-primary,oklch(.1 .03 137/.899))}@media (color-gamut:p3){.___SFeaturePopover_149e5_gg_._theme_accent_149e5_gg_{background-color:var(--intergalactic-feature-popover-bg,oklch(.88 .078 303))}}.___SFeaturePopover_149e5_gg_._theme_neutral_149e5_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral,oklch(.23 .01 140));color:var(--intergalactic-text-primary-invert,oklch(.999 .001 180/.949))}.___STrigger_149e5_gg_{position:relative}.___SClose_149e5_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x,8px);top:var(--intergalactic-spacing-2x,8px)}.___SClose_149e5_gg_ .___SAddon_149e5_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}@keyframes showTrigger_149e5{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_149e5{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SSpot_149e5_gg_{position:absolute;bottom:calc(var(--intergalactic-spacing-1x, 4px)*-1);right:calc(var(--intergalactic-spacing-1x, 4px)*-1);animation-name:showTrigger_149e5;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_149e5_gg_:before{transform-origin:50%;animation-name:scaleSizeAndHide_149e5;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_149e5_gg_:after,.___SSpot_149e5_gg_:before{content:"";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_149e5_gg_._theme_accent_149e5_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border,#e1cdff)}@media (color-gamut:p3){.___SSpot_149e5_gg_._theme_accent_149e5_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border,oklch(.88 .078 303))}}.___SSpot_149e5_gg_._theme_accent_149e5_gg_:after{background-color:var(--intergalactic-feature-popover-bg,#e1cdff)}@media (color-gamut:p3){.___SSpot_149e5_gg_._theme_accent_149e5_gg_:after{background-color:var(--intergalactic-feature-popover-bg,oklch(.88 .078 303))}}.___SSpot_149e5_gg_._theme_neutral_149e5_gg_:before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border,#e1cdff)}@media (color-gamut:p3){.___SSpot_149e5_gg_._theme_neutral_149e5_gg_:before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border,oklch(.88 .078 303))}}.___SSpot_149e5_gg_._theme_neutral_149e5_gg_:after{background-color:var(--intergalactic-feature-popover-dot-neutral,#e1cdff)}@media (color-gamut:p3){.___SSpot_149e5_gg_._theme_neutral_149e5_gg_:after{background-color:var(--intergalactic-feature-popover-dot-neutral,oklch(.88 .078 303))}}@media (prefers-reduced-motion){.___SSpot_149e5_gg_,.___SSpot_149e5_gg_:before{animation-name:none}}',
15
+ '.___SFeaturePopover_1iigo_gg_{padding:var(--intergalactic-spacing-content-padding-large,16px) var(--intergalactic-spacing-content-padding-xxlarge,40px) var(--intergalactic-spacing-content-padding-large,16px) var(--intergalactic-spacing-content-padding-large,16px);border-radius:var(--intergalactic-popper-rounded,6px);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 #00151012);position:relative}@media (color-gamut:p3){.___SFeaturePopover_1iigo_gg_{box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 oklch(.176 .033 175.7/.07))}}.___SFeaturePopover_1iigo_gg_._theme_accent_1iigo_gg_{background-color:var(--intergalactic-feature-popover-bg-accent,#ebdeff);color:var(--intergalactic-feature-popover-text,oklch(.1 .03 137/.899))}@media (color-gamut:rec2020){.___SFeaturePopover_1iigo_gg_._theme_accent_1iigo_gg_{background-color:var(--intergalactic-feature-popover-bg-accent,oklch(.92 .052 303.1))}}.___SFeaturePopover_1iigo_gg_._theme_neutral_1iigo_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral,oklch(.23 .01 140));color:var(--intergalactic-feature-popover-text-invert,oklch(.999 .001 180/.949))}.___STrigger_1iigo_gg_{position:relative}.___SClose_1iigo_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x,8px);top:var(--intergalactic-spacing-2x,8px)}.___SClose_1iigo_gg_ .___SAddon_1iigo_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}@keyframes showTrigger_1iigo{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1iigo{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SSpot_1iigo_gg_{position:absolute;bottom:calc(var(--intergalactic-spacing-1x, 4px)*-1);right:calc(var(--intergalactic-spacing-1x, 4px)*-1);animation-name:showTrigger_1iigo;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1iigo_gg_:before{transform-origin:50%;animation-name:scaleSizeAndHide_1iigo;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_1iigo_gg_:after,.___SSpot_1iigo_gg_:before{content:"";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1iigo_gg_._theme_accent_1iigo_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border-accent,#ebdeff)}@media (color-gamut:rec2020){.___SSpot_1iigo_gg_._theme_accent_1iigo_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border-accent,oklch(.92 .052 303.1))}}.___SSpot_1iigo_gg_._theme_accent_1iigo_gg_:after{background-color:var(--intergalactic-feature-popover-dot-accent,#c08eff)}@media (color-gamut:p3){.___SSpot_1iigo_gg_._theme_accent_1iigo_gg_:after{background-color:var(--intergalactic-feature-popover-dot-accent,oklch(.74 .17 303))}}.___SSpot_1iigo_gg_._theme_neutral_1iigo_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border-neutral,#c08eff)}@media (color-gamut:p3){.___SSpot_1iigo_gg_._theme_neutral_1iigo_gg_:before{background-color:var(--intergalactic-feature-popover-dot-outer-border-neutral,oklch(.74 .17 303))}}.___SSpot_1iigo_gg_._theme_neutral_1iigo_gg_:after{background-color:var(--intergalactic-feature-popover-dot-neutral,#c08eff)}@media (color-gamut:p3){.___SSpot_1iigo_gg_._theme_neutral_1iigo_gg_:after{background-color:var(--intergalactic-feature-popover-dot-neutral,oklch(.74 .17 303))}}@media (prefers-reduced-motion){.___SSpot_1iigo_gg_,.___SSpot_1iigo_gg_:before{animation-name:none}}',
16
16
  /*__inner_css_end__*/
17
- "149e5_gg_"
17
+ "1iigo_gg_"
18
18
  ), /*__reshadow_css_end__*/
19
19
  {
20
- "__STrigger": "___STrigger_149e5_gg_",
21
- "@showTrigger": "showTrigger_149e5",
22
- "@scaleSizeAndHide": "scaleSizeAndHide_149e5",
23
- "__SFeaturePopover": "___SFeaturePopover_149e5_gg_",
24
- "_theme_accent": "_theme_accent_149e5_gg_",
25
- "_theme_neutral": "_theme_neutral_149e5_gg_",
26
- "__SClose": "___SClose_149e5_gg_",
27
- "__SAddon": "___SAddon_149e5_gg_",
28
- "__SSpot": "___SSpot_149e5_gg_"
20
+ "__STrigger": "___STrigger_1iigo_gg_",
21
+ "@showTrigger": "showTrigger_1iigo",
22
+ "@scaleSizeAndHide": "scaleSizeAndHide_1iigo",
23
+ "__SFeaturePopover": "___SFeaturePopover_1iigo_gg_",
24
+ "_theme_accent": "_theme_accent_1iigo_gg_",
25
+ "_theme_neutral": "_theme_neutral_1iigo_gg_",
26
+ "__SClose": "___SClose_1iigo_gg_",
27
+ "__SAddon": "___SAddon_1iigo_gg_",
28
+ "__SSpot": "___SSpot_1iigo_gg_"
29
29
  })
30
30
  );
31
31
  const stylePopper = (
32
32
  /*__reshadow_css_start__*/
33
33
  (sstyled.insert(
34
34
  /*__inner_css_start__*/
35
- "@keyframes enter_d2rlz{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_d2rlz{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}",
35
+ "@keyframes enter_1e3pw{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1e3pw{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}",
36
36
  /*__inner_css_end__*/
37
- "d2rlz_gg_"
37
+ "1e3pw_gg_"
38
38
  ), /*__reshadow_css_end__*/
39
39
  {
40
- "@enter": "enter_d2rlz",
41
- "@exit": "exit_d2rlz"
40
+ "@enter": "enter_1e3pw",
41
+ "@exit": "exit_1e3pw"
42
42
  })
43
43
  );
44
44
  class FeaturePopover extends Component {
@@ -1,20 +1,20 @@
1
1
  SFeaturePopover {
2
- padding-top: var(--intergalactic-spacing-4x, 16px);
3
- padding-right: var(--intergalactic-spacing-10x, 40px);
4
- padding-bottom: var(--intergalactic-spacing-4x, 16px);
5
- padding-left: var(--intergalactic-spacing-4x, 16px);
2
+ padding-top: var(--intergalactic-spacing-content-padding-large, 16px);
3
+ padding-right: var(--intergalactic-spacing-content-padding-xxlarge, 40px);
4
+ padding-bottom: var(--intergalactic-spacing-content-padding-large, 16px);
5
+ padding-left: var(--intergalactic-spacing-content-padding-large, 16px);
6
6
  border-radius: var(--intergalactic-popper-rounded, 6px);
7
7
  box-sizing: border-box;
8
8
  box-shadow: var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px oklch(0.176 0.033 175.7 / 0.07));
9
9
  position: relative;
10
10
 
11
11
  &[theme='accent'] {
12
- background-color: var(--intergalactic-feature-popover-bg, oklch(0.88 0.078 303));
13
- color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
12
+ background-color: var(--intergalactic-feature-popover-bg-accent, oklch(0.92 0.052 303.1));
13
+ color: var(--intergalactic-feature-popover-text, oklch(0.1 0.03 137 / 0.899));
14
14
  }
15
15
  &[theme='neutral'] {
16
16
  background-color: var(--intergalactic-feature-popover-bg-neutral, oklch(0.23 0.01 140));
17
- color: var(--intergalactic-text-primary-invert, oklch(0.999 0.001 180 / 0.949));
17
+ color: var(--intergalactic-feature-popover-text-invert, oklch(0.999 0.001 180 / 0.949));
18
18
  }
19
19
  }
20
20
 
@@ -94,18 +94,18 @@ SSpot {
94
94
 
95
95
  &[theme='accent'] {
96
96
  &::before {
97
- background-color: var(--intergalactic-feature-popover-dot-outer-border, oklch(0.88 0.078 303));
97
+ background-color: var(--intergalactic-feature-popover-dot-outer-border-accent, oklch(0.92 0.052 303.1));
98
98
  }
99
99
  &::after {
100
- background-color: var(--intergalactic-feature-popover-bg, oklch(0.88 0.078 303));
100
+ background-color: var(--intergalactic-feature-popover-dot-accent, oklch(0.74 0.17 303));
101
101
  }
102
102
  }
103
103
  &[theme='neutral'] {
104
104
  &::before {
105
- background-color: var(--intergalactic-feature-popover-dot-neutral-outer-border, oklch(0.88 0.078 303));
105
+ background-color: var(--intergalactic-feature-popover-dot-outer-border-neutral, oklch(0.74 0.17 303));
106
106
  }
107
107
  &::after {
108
- background-color: var(--intergalactic-feature-popover-dot-neutral, oklch(0.88 0.078 303));
108
+ background-color: var(--intergalactic-feature-popover-dot-neutral, oklch(0.74 0.17 303));
109
109
  }
110
110
  }
111
111
  }
@@ -6,3 +6,4 @@ import type { NSFeaturePopover } from './FeaturePopover.type';
6
6
  */
7
7
  declare const _default: NSFeaturePopover.Component;
8
8
  export default _default;
9
+ //# sourceMappingURL=FeaturePopover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeaturePopover.d.ts","sourceRoot":"","sources":["../../src/FeaturePopover.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAwM9D;;;;GAIG;;AACH,wBAYE"}
@@ -5,7 +5,7 @@ import type { Options as OptionsFlip } from '@popperjs/core/lib/modifiers/flip';
5
5
  import type { Options as OptionsOffset } from '@popperjs/core/lib/modifiers/offset';
6
6
  import type { Options as OptionsPreventOverflow } from '@popperjs/core/lib/modifiers/preventOverflow';
7
7
  import type { Modifier, Options, PositioningStrategy } from '@popperjs/core/lib/types';
8
- import type { AnimationProps, BoxProps, OutsideClickProps, PortalProps, Box, PopperProps, PopperContext, PopperPopperProps, Placement, Popper } from '@semcore/base-components';
8
+ import type { NSAnimation, NSBox, NSOutsideClick, NSPortal, NSPopper } from '@semcore/base-components';
9
9
  import type { Intergalactic, PropGetterFn } from '@semcore/core';
10
10
  import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
11
11
  import type { UniqueIDProps } from '@semcore/core/lib/utils/uniqueID';
@@ -20,7 +20,7 @@ declare namespace NSFeaturePopover {
20
20
  * The position of the popper relative to the trigger that called it.
21
21
  * @default auto
22
22
  */
23
- placement?: Placement;
23
+ placement?: NSPopper.Placement;
24
24
  /**
25
25
  * The theme of FeaturePopover
26
26
  * @default accent
@@ -38,22 +38,22 @@ declare namespace NSFeaturePopover {
38
38
  theme: 'accent';
39
39
  };
40
40
  type InternalProps = WithI18nEnhanceProps & {
41
- interaction?: PopperProps['interaction'];
41
+ interaction?: NSPopper.Props['interaction'];
42
42
  };
43
43
  type Handlers = {
44
44
  visible: null;
45
45
  };
46
- type Ctx = PopperContext & {
46
+ type Ctx = NSPopper.Ctx & {
47
47
  getSpotProps: PropGetterFn;
48
48
  };
49
49
  namespace Trigger {
50
- type Props = BoxProps & {
50
+ type Props = NSBox.Props & {
51
51
  theme?: NSFeaturePopover.Props['theme'];
52
52
  };
53
- type Component = Intergalactic.Component<typeof Popper.Trigger, Props>;
53
+ type Component = Intergalactic.Component<NSPopper.Trigger.Component, Props>;
54
54
  }
55
55
  namespace Popper {
56
- type Props = PopperPopperProps &
56
+ type Props = NSPopper.Popper.Props &
57
57
  /**
58
58
  * Popper must have an accessible names (aria-group-name).
59
59
  */
@@ -86,7 +86,7 @@ declare namespace NSFeaturePopover {
86
86
  visible?: boolean;
87
87
  theme?: NSFeaturePopover.Props['theme'];
88
88
  };
89
- type Component = Intergalactic.Component<typeof Box, Props>;
89
+ type Component = Intergalactic.Component<NSBox.Component, Props>;
90
90
  }
91
91
  type Component = Intergalactic.Component<'div', Props, Ctx> & {
92
92
  Trigger: Trigger.Component;
@@ -94,8 +94,8 @@ declare namespace NSFeaturePopover {
94
94
  Spot: Spot.Component;
95
95
  };
96
96
  }
97
- /** @deprecated It will be removed in v18. */
98
- export type FPPopperProps = OutsideClickProps & PortalProps & UniqueIDProps & AnimationProps & {
97
+ /** @deprecated It will be removed in v19. */
98
+ export type FPPopperProps = NSOutsideClick.Props & NSPortal.Props & UniqueIDProps & NSAnimation.Props & {
99
99
  /**
100
100
  * Popper can have different positioning options
101
101
  * @default absolute
@@ -132,18 +132,19 @@ export type FPPopperProps = OutsideClickProps & PortalProps & UniqueIDProps & An
132
132
  explicitTriggerSet?: boolean;
133
133
  popperMargin?: number;
134
134
  };
135
- /** @deprecated It will be removed in v18. */
135
+ /** @deprecated It will be removed in v19. */
136
136
  export type FeaturePopoverPopperProps = NSFeaturePopover.Popper.Props;
137
- /** @deprecated It will be removed in v18. */
137
+ /** @deprecated It will be removed in v19. */
138
138
  export type FeaturePopoverContext = NSFeaturePopover.Ctx;
139
- /** @deprecated It will be removed in v18. */
139
+ /** @deprecated It will be removed in v19. */
140
140
  export type FeaturePopoverProps = NSFeaturePopover.Props;
141
- /** @deprecated It will be removed in v18. */
141
+ /** @deprecated It will be removed in v19. */
142
142
  export type FeaturePopoverDefaultProps = NSFeaturePopover.DefaultProps;
143
- /** @deprecated It will be removed in v18. */
143
+ /** @deprecated It will be removed in v19. */
144
144
  export type FeaturePopoverTriggerProps = NSFeaturePopover.Trigger.Props;
145
- /** @deprecated It will be removed in v18. */
145
+ /** @deprecated It will be removed in v19. */
146
146
  export type FeaturePopoverSpotProps = NSFeaturePopover.Spot.Props;
147
- /** @deprecated It will be removed in v18. */
147
+ /** @deprecated It will be removed in v19. */
148
148
  export type FeaturePopoverComponent = NSFeaturePopover.Component;
149
149
  export type { NSFeaturePopover };
150
+ //# sourceMappingURL=FeaturePopover.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeaturePopover.type.d.ts","sourceRoot":"","sources":["../../src/FeaturePopover.type.ts"],"names":[],"mappings":"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"}
@@ -1,3 +1,4 @@
1
1
  import type { FeaturePopoverProps, FeaturePopoverPopperProps, NSFeaturePopover } from './FeaturePopover.type';
2
2
  export { default } from './FeaturePopover';
3
3
  export type { FeaturePopoverProps, FeaturePopoverPopperProps, NSFeaturePopover, };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9G,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,YAAY,EACV,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,GACjB,CAAC"}
@@ -43,3 +43,4 @@ export declare const localizedMessages: {
43
43
  };
44
44
  };
45
45
  export type LocalizedMessages = typeof localizedMessages;
46
+ //# sourceMappingURL=__intergalactic-dynamic-locales.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.d.ts","sourceRoot":"","sources":["../../../src/translations/__intergalactic-dynamic-locales.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe7B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/feature-popover",
3
3
  "description": "Semrush FeaturePopover Component",
4
- "version": "17.2.2",
4
+ "version": "18.0.0-prerelease.0",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,11 +14,11 @@
14
14
  "require": "./lib/cjs/index.js"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/button": "^17.2.1"
17
+ "@semcore/button": "^18.0.0-prerelease.0"
18
18
  },
19
19
  "peerDependencies": {
20
- "@semcore/base-components": "^17.2.1",
21
- "@semcore/icon": "^17.2.0"
20
+ "@semcore/base-components": "^18.0.0-prerelease.0",
21
+ "@semcore/icon": "^18.0.0-prerelease.0"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
@@ -27,13 +27,13 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@popperjs/core": "2.11.5",
30
- "@semcore/core": "17.2.1",
31
- "@semcore/base-components": "17.2.1",
32
- "@semcore/button": "17.2.1",
33
- "@semcore/dropdown-menu": "17.3.1",
34
- "@semcore/typography": "17.2.1",
35
- "@semcore/icon": "17.2.0",
36
- "@semcore/testing-utils": "1.0.0"
30
+ "@semcore/core": "18.0.0-prerelease.0",
31
+ "@semcore/base-components": "18.0.0-prerelease.0",
32
+ "@semcore/button": "18.0.0-prerelease.0",
33
+ "@semcore/dropdown-menu": "18.0.0-prerelease.0",
34
+ "@semcore/testing-utils": "1.0.0",
35
+ "@semcore/typography": "18.0.0-prerelease.0",
36
+ "@semcore/icon": "18.0.0-prerelease.0"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "pnpm semcore-builder && pnpm vite build"