intergalactic 15.60.0 → 15.60.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/accordion/lib/cjs/Accordion.js +7 -7
  3. package/accordion/lib/es6/Accordion.js +7 -7
  4. package/base-trigger/lib/cjs/FilterTrigger.js +2 -0
  5. package/base-trigger/lib/cjs/FilterTrigger.js.map +1 -1
  6. package/base-trigger/lib/es6/FilterTrigger.js +2 -0
  7. package/base-trigger/lib/es6/FilterTrigger.js.map +1 -1
  8. package/components.json +10 -10
  9. package/d3-chart/Area.d.ts +3 -0
  10. package/d3-chart/Bar.d.ts +3 -0
  11. package/d3-chart/Bubble.d.ts +3 -0
  12. package/d3-chart/Donut.d.ts +3 -0
  13. package/d3-chart/GroupBar.d.ts +1 -1
  14. package/d3-chart/HorizontalBar.d.ts +3 -0
  15. package/d3-chart/Line.d.ts +3 -0
  16. package/d3-chart/Plot.d.ts +1 -1
  17. package/d3-chart/Radar.d.ts +3 -0
  18. package/d3-chart/ReferenceLine.d.ts +2 -3
  19. package/d3-chart/ScatterPlot.d.ts +3 -0
  20. package/d3-chart/StackBar.d.ts +4 -0
  21. package/d3-chart/StackedArea.d.ts +4 -0
  22. package/d3-chart/Venn.d.ts +3 -0
  23. package/d3-chart/lib/cjs/ReferenceLine.js +9 -6
  24. package/d3-chart/lib/cjs/ReferenceLine.js.map +1 -1
  25. package/d3-chart/lib/cjs/types/Area.d.js.map +1 -1
  26. package/d3-chart/lib/cjs/types/Bar.d.js.map +1 -1
  27. package/d3-chart/lib/cjs/types/Bubble.d.js.map +1 -1
  28. package/d3-chart/lib/cjs/types/Donut.d.js.map +1 -1
  29. package/d3-chart/lib/cjs/types/GroupBar.d.js.map +1 -1
  30. package/d3-chart/lib/cjs/types/HorizontalBar.d.js.map +1 -1
  31. package/d3-chart/lib/cjs/types/Line.d.js.map +1 -1
  32. package/d3-chart/lib/cjs/types/Plot.d.js.map +1 -1
  33. package/d3-chart/lib/cjs/types/Radar.d.js.map +1 -1
  34. package/d3-chart/lib/cjs/types/ReferenceLine.d.js.map +1 -1
  35. package/d3-chart/lib/cjs/types/ScatterPlot.d.js.map +1 -1
  36. package/d3-chart/lib/cjs/types/StackBar.d.js.map +1 -1
  37. package/d3-chart/lib/cjs/types/StackedArea.d.js.map +1 -1
  38. package/d3-chart/lib/cjs/types/Venn.d.js.map +1 -1
  39. package/d3-chart/lib/es6/ReferenceLine.js +9 -6
  40. package/d3-chart/lib/es6/ReferenceLine.js.map +1 -1
  41. package/d3-chart/lib/es6/types/Area.d.js.map +1 -1
  42. package/d3-chart/lib/es6/types/Bar.d.js.map +1 -1
  43. package/d3-chart/lib/es6/types/Bubble.d.js.map +1 -1
  44. package/d3-chart/lib/es6/types/Donut.d.js.map +1 -1
  45. package/d3-chart/lib/es6/types/GroupBar.d.js.map +1 -1
  46. package/d3-chart/lib/es6/types/HorizontalBar.d.js.map +1 -1
  47. package/d3-chart/lib/es6/types/Line.d.js.map +1 -1
  48. package/d3-chart/lib/es6/types/Plot.d.js.map +1 -1
  49. package/d3-chart/lib/es6/types/Radar.d.js.map +1 -1
  50. package/d3-chart/lib/es6/types/ReferenceLine.d.js.map +1 -1
  51. package/d3-chart/lib/es6/types/ScatterPlot.d.js.map +1 -1
  52. package/d3-chart/lib/es6/types/StackBar.d.js.map +1 -1
  53. package/d3-chart/lib/es6/types/StackedArea.d.js.map +1 -1
  54. package/d3-chart/lib/es6/types/Venn.d.js.map +1 -1
  55. package/d3-chart/lib/types/Area.d.ts +3 -0
  56. package/d3-chart/lib/types/Bar.d.ts +3 -0
  57. package/d3-chart/lib/types/Bubble.d.ts +3 -0
  58. package/d3-chart/lib/types/Donut.d.ts +3 -0
  59. package/d3-chart/lib/types/GroupBar.d.ts +1 -1
  60. package/d3-chart/lib/types/HorizontalBar.d.ts +3 -0
  61. package/d3-chart/lib/types/Line.d.ts +3 -0
  62. package/d3-chart/lib/types/Plot.d.ts +1 -1
  63. package/d3-chart/lib/types/Radar.d.ts +3 -0
  64. package/d3-chart/lib/types/ReferenceLine.d.ts +2 -3
  65. package/d3-chart/lib/types/ScatterPlot.d.ts +3 -0
  66. package/d3-chart/lib/types/StackBar.d.ts +4 -0
  67. package/d3-chart/lib/types/StackedArea.d.ts +4 -0
  68. package/d3-chart/lib/types/Venn.d.ts +3 -0
  69. package/package.json +3 -3
  70. package/popper/lib/cjs/Popper.js +1 -1
  71. package/popper/lib/cjs/Popper.js.map +1 -1
  72. package/popper/lib/es6/Popper.js +1 -1
  73. package/popper/lib/es6/Popper.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StackBar.d.js","names":[],"sources":["../../../src/types/StackBar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { BarContext, BarProps } from './Bar';\nimport { HorizontalBarProps } from './HorizontalBar';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IStackBarProps extends StackBarProps, UnknownProperties {}\nexport type StackBarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Stack generators\n * @default d3.stack() */\n /** @deprecated */\n stack?: any;\n /**\n * The maximum width of each Bar\n */\n maxBarSize?: number;\n};\n\n/** @deprecated */\nexport interface IStackBarContext extends StackBarContext, UnknownProperties {}\nexport type StackBarContext = {\n /** Series is an array of points, where each point corresponds to the element in the input data. */\n /** @deprecated */\n series: any[];\n};\n\ndeclare const StackBar: IntergalacticD3Component<'g', StackBarProps, StackBarContext> & {\n Bar: IntergalacticD3Component<'path', BarProps, BarContext>;\n HorizontalBar: IntergalacticD3Component<'path', HorizontalBarProps, BarContext>;\n};\n\nexport default StackBar;\n"],"mappings":""}
1
+ {"version":3,"file":"StackBar.d.js","names":[],"sources":["../../../src/types/StackBar.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { BarContext, BarProps } from './Bar';\nimport { HorizontalBarProps } from './HorizontalBar';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IStackBarProps extends StackBarProps, UnknownProperties {}\nexport type StackBarProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Stack generators\n * @default d3.stack() */\n /** @deprecated */\n stack?: any;\n /**\n * The maximum width of each Bar\n */\n maxBarSize?: number;\n\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IStackBarContext extends StackBarContext, UnknownProperties {}\nexport type StackBarContext = {\n /** Series is an array of points, where each point corresponds to the element in the input data. */\n /** @deprecated */\n series: any[];\n};\n\ndeclare const StackBar: IntergalacticD3Component<'g', StackBarProps, StackBarContext> & {\n Bar: IntergalacticD3Component<'path', BarProps, BarContext>;\n HorizontalBar: IntergalacticD3Component<'path', HorizontalBarProps, BarContext>;\n};\n\nexport default StackBar;\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"StackedArea.d.js","names":[],"sources":["../../../src/types/StackedArea.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport Area from './Area';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IStackedAreaProps extends StackedAreaProps, UnknownProperties {}\nexport type StackedAreaProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Stack generators\n * @default d3.stack() */\n /** @deprecated */\n stack?: any;\n};\n\n/** @deprecated */\nexport interface IStackedAreaContext extends StackedAreaContext, UnknownProperties {}\nexport type StackedAreaContext = {\n /** Series is an array of points, where each point corresponds to the element in the input data. */\n /** @deprecated */\n series: any[];\n};\n\ndeclare const StackedArea: IntergalacticD3Component<'g', StackedAreaProps, StackedAreaContext> & {\n Area: typeof Area;\n};\n\nexport default StackedArea;\n"],"mappings":""}
1
+ {"version":3,"file":"StackedArea.d.js","names":[],"sources":["../../../src/types/StackedArea.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport Area from './Area';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IStackedAreaProps extends StackedAreaProps, UnknownProperties {}\nexport type StackedAreaProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Stack generators\n * @default d3.stack() */\n /** @deprecated */\n stack?: any;\n\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IStackedAreaContext extends StackedAreaContext, UnknownProperties {}\nexport type StackedAreaContext = {\n /** Series is an array of points, where each point corresponds to the element in the input data. */\n /** @deprecated */\n series: any[];\n};\n\ndeclare const StackedArea: IntergalacticD3Component<'g', StackedAreaProps, StackedAreaContext> & {\n Area: typeof Area;\n};\n\nexport default StackedArea;\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Venn.d.js","names":[],"sources":["../../../src/types/Venn.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated */\nexport interface IVennProps extends VennProps, UnknownProperties {}\nexport type VennProps = Context &\n FadeInOutProps & {\n /**\n * Rotate sets in the chart\n * @default Math.PI / 2\n */\n orientation?: number;\n /**\n * The function for sorting sets inside the chart\n * @default (circle1, circle2) => circle2.radius - circle1.radius\n */\n orientationOrder?: (c1: number, c2: number) => number;\n };\n\n/** @deprecated */\nexport interface ICircleProps extends CircleProps, UnknownProperties {}\nexport type CircleProps = Context & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the circle\n * */\n name: string;\n /** Color circle\n @default #3AB011\n **/\n color?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IIntersectionProps extends IntersectionProps, UnknownProperties {}\nexport type IntersectionProps = Context &\n FadeInOutProps & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the intersection\n * */\n name: string;\n /** Enables element transparency */\n transparent?: boolean;\n };\n\ndeclare const Venn: IntergalacticD3Component<'g', VennProps, Context> & {\n Circle: IntergalacticD3Component<'circle', CircleProps, Context>;\n Intersection: IntergalacticD3Component<'path', IntersectionProps, Context>;\n Tooltip: TooltipType<CircleProps>;\n};\n\nexport default Venn;\n"],"mappings":""}
1
+ {"version":3,"file":"Venn.d.js","names":[],"sources":["../../../src/types/Venn.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IVennProps extends VennProps, UnknownProperties {}\nexport type VennProps = Context &\n FadeInOutProps & {\n /**\n * Rotate sets in the chart\n * @default Math.PI / 2\n */\n orientation?: number;\n /**\n * The function for sorting sets inside the chart\n * @default (circle1, circle2) => circle2.radius - circle1.radius\n */\n orientationOrder?: (c1: number, c2: number) => number;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n };\n\n/** @deprecated */\nexport interface ICircleProps extends CircleProps, UnknownProperties {}\nexport type CircleProps = Context & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the circle\n * */\n name: string;\n /** Color circle\n @default #3AB011\n **/\n color?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IIntersectionProps extends IntersectionProps, UnknownProperties {}\nexport type IntersectionProps = Context &\n FadeInOutProps & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the intersection\n * */\n name: string;\n /** Enables element transparency */\n transparent?: boolean;\n };\n\ndeclare const Venn: IntergalacticD3Component<'g', VennProps, Context> & {\n Circle: IntergalacticD3Component<'circle', CircleProps, Context>;\n Intersection: IntergalacticD3Component<'path', IntersectionProps, Context>;\n Tooltip: TooltipType<CircleProps>;\n};\n\nexport default Venn;\n"],"mappings":""}
@@ -2,6 +2,7 @@ import { UnknownProperties } from 'intergalactic/core';
2
2
  import { Context } from './context';
3
3
  import { CurveFactory } from 'd3-shape';
4
4
  import { IntergalacticD3Component } from './Plot';
5
+ import { PatternsConfig } from './Pattern';
5
6
 
6
7
  /** @deprecated */
7
8
  export interface IAreaProps extends AreaProps, UnknownProperties {}
@@ -22,6 +23,8 @@ export type AreaProps = Context & {
22
23
  duration?: number;
23
24
  /** Enables element transparency */
24
25
  transparent?: boolean;
26
+ /** Enables charts patterns that enhances charts accessability */
27
+ patterns?: PatternsConfig;
25
28
  };
26
29
 
27
30
  /** @deprecated */
@@ -2,6 +2,7 @@ import { UnknownProperties } from 'intergalactic/core';
2
2
  import { Context } from './context';
3
3
  import { IntergalacticD3Component } from './Plot';
4
4
  import { ScaleBand, ScaleLinear } from 'd3-scale';
5
+ import { PatternsConfig } from './Pattern';
5
6
 
6
7
  /** @deprecated */
7
8
  export interface IBarProps extends BarProps, UnknownProperties {}
@@ -36,6 +37,8 @@ export type BarProps = Context & {
36
37
  * The maximum width of each Bar
37
38
  */
38
39
  maxBarSize?: number;
40
+ /** Enables charts patterns that enhances charts accessability */
41
+ patterns?: PatternsConfig;
39
42
  };
40
43
 
41
44
  /** @deprecated */
@@ -2,6 +2,7 @@ import { Intergalactic, UnknownProperties } from 'intergalactic/core';
2
2
  import { Context } from './context';
3
3
  import { TooltipType } from './Tooltip';
4
4
  import { IntergalacticD3Component } from './Plot';
5
+ import { PatternsConfig } from './Pattern';
5
6
 
6
7
  /** @deprecated */
7
8
  export interface IBubbleProps extends BubbleProps, UnknownProperties {}
@@ -26,6 +27,8 @@ export type BubbleProps = Context & {
26
27
  duration?: number;
27
28
  /** Enables element transparency */
28
29
  transparent?: boolean;
30
+ /** Enables charts patterns that enhances charts accessability */
31
+ patterns?: PatternsConfig;
29
32
  };
30
33
 
31
34
  /** @deprecated */
@@ -2,6 +2,7 @@ import { UnknownProperties } from 'intergalactic/core';
2
2
  import { Context } from './context';
3
3
  import { TooltipType } from './Tooltip';
4
4
  import { IntergalacticD3Component } from './Plot';
5
+ import { PatternsConfig } from './Pattern';
5
6
 
6
7
  /** @deprecated */
7
8
  export interface IDonutProps extends DonutProps, UnknownProperties {}
@@ -24,6 +25,8 @@ export type DonutProps = Context & {
24
25
  * @default 0
25
26
  */
26
27
  paddingAngle?: number;
28
+ /** Enables charts patterns that enhances charts accessability */
29
+ patterns?: PatternsConfig;
27
30
  };
28
31
 
29
32
  /** @deprecated */
@@ -3,6 +3,7 @@ import { BarContext, BarProps } from './Bar';
3
3
  import { HorizontalBarProps } from './HorizontalBar';
4
4
  import { Context } from './context';
5
5
  import { IntergalacticD3Component } from './Plot';
6
+ import { PatternsConfig } from './Pattern';
6
7
 
7
8
  /** @deprecated */
8
9
  export interface IGroupBarProps extends GroupBarProps, UnknownProperties {}
@@ -14,7 +15,6 @@ export type GroupBarProps = Context & {
14
15
  /** Scale for group bars */
15
16
  /** @deprecated */
16
17
  scaleGroup?: any;
17
-
18
18
  /**
19
19
  * The maximum width of each Bar
20
20
  */
@@ -2,6 +2,7 @@ import { UnknownProperties } from 'intergalactic/core';
2
2
  import { Context } from './context';
3
3
  import { BarContext, BackgroundProps } from './Bar';
4
4
  import { IntergalacticD3Component } from './Plot';
5
+ import { PatternsConfig } from './Pattern';
5
6
 
6
7
  /** @deprecated */
7
8
  export interface IHorizontalBarProps extends HorizontalBarProps, UnknownProperties {}
@@ -26,6 +27,8 @@ export type HorizontalBarProps = Context & {
26
27
  * The maximum width of each Bar
27
28
  */
28
29
  maxBarSize?: number;
30
+ /** Enables charts patterns that enhances charts accessability */
31
+ patterns?: PatternsConfig;
29
32
  };
30
33
 
31
34
  declare const HorizontalBar: IntergalacticD3Component<'path', HorizontalBarProps, BarContext> & {
@@ -3,6 +3,7 @@ import { Context } from './context';
3
3
  import { curveCardinal, CurveFactory } from 'd3-shape';
4
4
  import { FadeInOutProps } from 'intergalactic/animation';
5
5
  import { IntergalacticD3Component } from './Plot';
6
+ import { PatternsConfig } from './Pattern';
6
7
 
7
8
  /** @deprecated */
8
9
  export interface ILineProps extends LineProps, UnknownProperties {}
@@ -23,6 +24,8 @@ export type LineProps = Context & {
23
24
  duration?: number;
24
25
  /** Enables element transparency */
25
26
  transparent?: boolean;
27
+ /** Enables charts patterns that enhances charts accessability */
28
+ patterns?: PatternsConfig;
26
29
  };
27
30
 
28
31
  /** @deprecated */
@@ -2,7 +2,7 @@ import { BoxProps } from 'intergalactic/flex-box';
2
2
  import { UnknownProperties, Intergalactic } from 'intergalactic/core';
3
3
  import { Context } from './context';
4
4
  import { DataStructureHints } from './a11y/hints';
5
- import { PatternsConfig } from '../Pattern';
5
+ import { PatternsConfig } from './Pattern';
6
6
 
7
7
  /** @deprecated */
8
8
  export interface IPlotProps extends PlotProps, UnknownProperties {}
@@ -4,6 +4,7 @@ import { CurveFactory } from 'd3-shape';
4
4
  import { TooltipType } from './Tooltip';
5
5
  import { IntergalacticD3Component } from './Plot';
6
6
  import { BoxProps } from 'intergalactic/flex-box';
7
+ import { PatternsConfig } from './Pattern';
7
8
 
8
9
  /** @deprecated */
9
10
  export interface IRadarProps extends RadarProps, UnknownProperties {}
@@ -35,6 +36,8 @@ export type RadarProps = Context & {
35
36
  * @example Math.PI/3
36
37
  * */
37
38
  angleOffset?: number;
39
+ /** Enables charts patterns that enhances charts accessability */
40
+ patterns?: PatternsConfig;
38
41
  };
39
42
 
40
43
  /** @deprecated */
@@ -9,7 +9,6 @@ export type ReferenceLineProps = Context & {
9
9
  * @default 'left' */
10
10
  position?: 'top' | 'right' | 'bottom' | 'left';
11
11
  /** Value element of data */
12
- /** @deprecated */
13
12
  value?: any;
14
13
 
15
14
  title?: string;
@@ -21,7 +20,6 @@ export type ReferenceLineTitleProps = Context & {
21
20
  /** The position of the axis relative reference line */
22
21
  position?: 'top' | 'right' | 'bottom' | 'left';
23
22
  /** Value element of data */
24
- /** @deprecated */
25
23
  value: any;
26
24
  };
27
25
 
@@ -33,8 +31,9 @@ export type ReferenceLineBackgroundProps = Context & {
33
31
  /** The position of the axis relative reference line */
34
32
  position?: 'top' | 'right' | 'bottom' | 'left';
35
33
  /** Value element of data */
36
- /** @deprecated */
37
34
  value?: any;
35
+ /** Value of the background end */
36
+ endValue?: number | string;
38
37
  };
39
38
 
40
39
  declare const ReferenceLine: IntergalacticD3Component<'line', ReferenceLineProps, Context> & {
@@ -2,6 +2,7 @@ import { UnknownProperties } from 'intergalactic/core';
2
2
  import { Context } from './context';
3
3
  import { TooltipType } from './Tooltip';
4
4
  import { IntergalacticD3Component } from './Plot';
5
+ import { PatternsConfig } from './Pattern';
5
6
 
6
7
  /** @deprecated */
7
8
  export interface IScatterPlotProps extends ScatterPlotProps, UnknownProperties {}
@@ -26,6 +27,8 @@ export type ScatterPlotProps = Context & {
26
27
  r?: number;
27
28
  /** Enables element transparency */
28
29
  transparent?: boolean;
30
+ /** Enables charts patterns that enhances charts accessability */
31
+ patterns?: PatternsConfig;
29
32
  };
30
33
 
31
34
  declare const ScatterPlot: IntergalacticD3Component<'g', ScatterPlotProps, Context> & {
@@ -3,6 +3,7 @@ import { Context } from './context';
3
3
  import { BarContext, BarProps } from './Bar';
4
4
  import { HorizontalBarProps } from './HorizontalBar';
5
5
  import { IntergalacticD3Component } from './Plot';
6
+ import { PatternsConfig } from './Pattern';
6
7
 
7
8
  /** @deprecated */
8
9
  export interface IStackBarProps extends StackBarProps, UnknownProperties {}
@@ -19,6 +20,9 @@ export type StackBarProps = Context & {
19
20
  * The maximum width of each Bar
20
21
  */
21
22
  maxBarSize?: number;
23
+
24
+ /** Enables charts patterns that enhances charts accessability */
25
+ patterns?: PatternsConfig;
22
26
  };
23
27
 
24
28
  /** @deprecated */
@@ -2,6 +2,7 @@ import { UnknownProperties } from 'intergalactic/core';
2
2
  import { Context } from './context';
3
3
  import Area from './Area';
4
4
  import { IntergalacticD3Component } from './Plot';
5
+ import { PatternsConfig } from './Pattern';
5
6
 
6
7
  /** @deprecated */
7
8
  export interface IStackedAreaProps extends StackedAreaProps, UnknownProperties {}
@@ -14,6 +15,9 @@ export type StackedAreaProps = Context & {
14
15
  * @default d3.stack() */
15
16
  /** @deprecated */
16
17
  stack?: any;
18
+
19
+ /** Enables charts patterns that enhances charts accessability */
20
+ patterns?: PatternsConfig;
17
21
  };
18
22
 
19
23
  /** @deprecated */
@@ -3,6 +3,7 @@ import { Context } from './context';
3
3
  import { FadeInOutProps } from 'intergalactic/animation';
4
4
  import { TooltipType } from './Tooltip';
5
5
  import { IntergalacticD3Component } from './Plot';
6
+ import { PatternsConfig } from './Pattern';
6
7
 
7
8
  /** @deprecated */
8
9
  export interface IVennProps extends VennProps, UnknownProperties {}
@@ -18,6 +19,8 @@ export type VennProps = Context &
18
19
  * @default (circle1, circle2) => circle2.radius - circle1.radius
19
20
  */
20
21
  orientationOrder?: (c1: number, c2: number) => number;
22
+ /** Enables charts patterns that enhances charts accessability */
23
+ patterns?: PatternsConfig;
21
24
  };
22
25
 
23
26
  /** @deprecated */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intergalactic",
3
- "version": "15.60.0",
3
+ "version": "15.60.1",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "intergalactic-migrate": "0.0.0",
@@ -26,8 +26,8 @@
26
26
  "@babel/runtime": "^7.17.9",
27
27
  "text-mask-core": "5.1.2",
28
28
  "@popperjs/core": "2.11.5",
29
- "@phytonmk/nano-css": "5.3.7",
30
- "unplugin": "1.2.0"
29
+ "unplugin": "1.2.0",
30
+ "@phytonmk/nano-css": "5.3.7"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": "16.8 - 18",
@@ -190,7 +190,7 @@ var Popper = /*#__PURE__*/function (_Component) {
190
190
  }, 0);
191
191
  });
192
192
  var ignoringDuration = 2000;
193
- if (!visible) {
193
+ if (!visible && ['onClick', 'onBlur'].includes(action)) {
194
194
  _this.setState({
195
195
  ignoreTriggerFocusUntil: now + ignoringDuration
196
196
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Popper.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_canUseDOM","_flexBox","_outsideClick","_portal","_neighborLocation","_ref5","_useFocusLock","_assignProps3","_pick","_uniqueID","_animation","_useCssVariable","_ThemeProvider","_ScreenReaderOnly","_keyboardFocusEnhance","_hasParent","_createPopper2","_excluded","_excluded2","_excluded3","style","sstyled","insert","isObject","obj","_typeof2","Array","isArray","someArray","arr1","arr2","filter","i","indexOf","useUpdatePopperEveryFrame","popperRef","nextAnimationFrameRef","React","useRef","handleAnimationFrame","useCallback","until","_popperRef$current","Date","now","current","update","requestAnimationFrame","useEffect","cancelAnimationFrame","MODIFIERS_OPTIONS","Popper","_Component","_inherits2","_super","_createSuper2","props","_this","_classCallCheck2","call","_defineProperty2","_assertThisInitialized2","click","trigger","popper","hover","focus","none","createRef","ignoreTriggerFocusUntil","ref","triggerRef","setRef","createPopper","_this$asProps","asProps","placement","modifiers","strategy","onFirstUpdate","other","_objectWithoutProperties2","optionsModifiers","pick","modifiersFallback","offset","modifiersOptions","name","undefined","map","options","push","gpuAcceleration","modifiersMerge","concat","_toConsumableArray2","callAllEventHandlers","_this$observer","_this$observer2","observer","observe","e","visible","key","stopPropagation","bindHandlerChangeVisibleWithTimer","onKeyDown","handlerKeyDown","component","action","focusAction","includes","state","currentTarget","handlerChangeVisibleWithTimer","clearTimeout","timerMultiTrigger","setTimeout","elements","reference","setOptions","ignoringDuration","setState","cb","_this$asProps2","timeout","disabled","handlers","timeoutConfig","latency","timer","event","focusLoop","hasParent","target","canUseDOM","ResizeObserver","_this$popper$current","_createClass2","value","uncontrolledProps","__disablePopper","getPopperOptions","componentDidUpdate","prevProps","_this2","popperProps","some","propName","destroyPopper","_this$observer3","disconnect","destroy","handlersFromInteraction","interaction","_this3","eventInteraction","eventsInteractionMap","_eventInteraction$com","_slicedToArray2","_eventInteraction$com2","showEvents","_eventInteraction$com3","hideEvents","crossEvents","forEach","getTriggerProps","_this$asProps3","disableEnforceFocus","_this$handlersFromInt","interactionProps","_objectSpread2","createTriggerRef","active","bindHandlerKeyDown","onBlur","handleTriggerBlur","getPopperProps","_this$asProps4","disablePortal","duration","animationsDisabled","_this$handlersFromInt2","createPopperRef","handleFocusOut","handlePopperFocusOut","setContext","setTrigger","setPopper","componentWillUnmount","render","_this$asProps5","Children","root","onOutsideClick","excludeRefs","createElement","Fragment","Component","defaultVisible","arrow","padding","uniqueIDEnhancement","cssVariableEnhance","variable","fallback","Number","parseInt","prop","Trigger","_ref","arguments[0]","STrigger","Box","SFocusHint","focusHint","onKeyboardFocus","highlighted","focusSourceRef","useFocusSource","handleFocus","activeRef","isFocusInside","document","activeElement","body","setFocus","assignProps","ScreenReaderOnly","PopperPopper","_ref2","_ref3","SPopper","Scale","styles","ignorePortalsStacking","autoFocus","controlsLength","_props$focusMaster","focusMaster","useFocusLock","useContextTheme","updatePopperEveryFrame","handleAnimationStart","Math","min","handleAnimationEnd","_popper$current","animationCtx","useContext","animationContext","unsubscribeAnimationStart","onAnimationStart","unsubscribeAnimationEnd","onAnimationEnd","cn","PortalProvider","enhance","keyboardFocusEnhance","_default","createComponent","exports"],"sources":["../../src/Popper.jsx"],"sourcesContent":["import React from 'react';\n\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport OutsideClick from '@semcore/outside-click';\nimport Portal, { PortalProvider } from '@semcore/portal';\nimport NeighborLocation from '@semcore/neighbor-location';\nimport { setRef } from '@semcore/utils/lib/ref';\nimport { useFocusLock, isFocusInside, setFocus } from '@semcore/utils/lib/use/useFocusLock';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport pick from '@semcore/utils/lib/pick';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport { Scale, animationContext } from '@semcore/animation';\nimport { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';\nimport { useContextTheme } from '@semcore/utils/lib/ThemeProvider';\nimport { ScreenReaderOnly } from '@semcore/utils/lib/ScreenReaderOnly';\nimport keyboardFocusEnhance, {\n useFocusSource,\n} from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { hasParent } from '@semcore/utils/lib/hasParent';\n\nimport createPopper from './createPopper';\n\nimport style from './style/popper.shadow.css';\n\nfunction isObject(obj) {\n return typeof obj === 'object' && !Array.isArray(obj);\n}\n\nfunction someArray(arr1, arr2) {\n return arr1.filter(function (i) {\n return arr2.indexOf(i) !== -1;\n });\n}\n\nconst useUpdatePopperEveryFrame = (popperRef) => {\n const nextAnimationFrameRef = React.useRef(-1);\n const handleAnimationFrame = React.useCallback((until) => {\n if (until < Date.now()) return;\n popperRef.current?.update();\n nextAnimationFrameRef.current = requestAnimationFrame(() => handleAnimationFrame(until));\n }, []);\n React.useEffect(() => () => cancelAnimationFrame(nextAnimationFrameRef.current), []);\n return handleAnimationFrame;\n};\n\nconst MODIFIERS_OPTIONS = [\n 'offset',\n 'preventOverflow',\n 'arrow',\n 'flip',\n 'computeStyles',\n 'eventListeners',\n];\n\nclass Popper extends Component {\n static displayName = 'Popper';\n\n static style = style;\n\n static defaultProps = {\n defaultVisible: false,\n placement: 'auto',\n modifiers: [],\n arrow: {\n padding: 6,\n },\n strategy: 'absolute',\n interaction: 'click',\n timeout: 0,\n excludeRefs: [],\n focusLoop: true,\n };\n\n static enhance = [\n uniqueIDEnhancement(),\n cssVariableEnhance({\n variable: '--intergalactic-duration-popper',\n fallback: '200',\n map: Number.parseInt,\n prop: 'duration',\n }),\n ];\n\n eventsInteractionMap = {\n click: {\n trigger: [['onClick'], ['onClick']],\n popper: [],\n },\n hover: {\n trigger: [\n ['onMouseEnter', 'onKeyboardFocus'],\n ['onMouseLeave', 'onBlur'],\n ],\n popper: [['onMouseEnter', 'onFocusCapture'], ['onMouseLeave']],\n },\n focus: {\n trigger: [['onFocus'], ['onBlur']],\n // to intercept faster than onBlur on the trigger\n popper: [['onFocusCapture'], ['onBlur']],\n },\n none: {\n trigger: [],\n popper: [],\n },\n };\n\n // timer: ReturnType<typeof setTimeout>;\n // observer: ResizeObserver;\n triggerRef = React.createRef();\n popperRef = React.createRef();\n popper = React.createRef();\n\n constructor(props) {\n super(props);\n if (canUseDOM()) {\n this.observer = new ResizeObserver(() => {\n requestAnimationFrame(() => {\n this.popper.current?.update();\n });\n });\n }\n }\n\n uncontrolledProps() {\n return {\n visible: null,\n };\n }\n\n state = { ignoreTriggerFocusUntil: 0 };\n\n createTriggerRef = (ref) => {\n if (ref && this.triggerRef.current !== ref) {\n setRef(this.triggerRef, ref);\n this.createPopper();\n }\n };\n\n createPopperRef = (ref) => {\n if (ref && this.popperRef.current !== ref) {\n setRef(this.popperRef, ref);\n this.createPopper();\n }\n };\n\n getPopperOptions = () => {\n const { placement, modifiers, strategy, onFirstUpdate, ...other } = this.asProps;\n const optionsModifiers = pick(other, MODIFIERS_OPTIONS);\n const modifiersFallback = [];\n\n if (typeof optionsModifiers.offset === 'number') {\n optionsModifiers.offset = [0, optionsModifiers.offset];\n }\n const modifiersOptions = MODIFIERS_OPTIONS.filter(\n (name) => optionsModifiers[name] !== undefined,\n ).map((name) => ({\n name,\n options: isObject(optionsModifiers[name])\n ? optionsModifiers[name]\n : { [name]: optionsModifiers[name] },\n }));\n\n modifiersOptions.push({\n name: 'computeStyles',\n options: { gpuAcceleration: false },\n });\n\n const modifiersMerge = [...modifiersFallback, ...modifiersOptions].concat(modifiers);\n\n return {\n placement,\n strategy,\n onFirstUpdate: callAllEventHandlers(onFirstUpdate, () => {\n this.observer?.observe(this.triggerRef.current);\n this.observer?.observe(this.popperRef.current);\n }),\n modifiers: modifiersMerge,\n };\n };\n\n createPopper() {\n if (!this.triggerRef.current || !this.popperRef.current) return;\n if (this.asProps.__disablePopper) return;\n\n this.popper.current = createPopper(\n this.triggerRef.current,\n this.popperRef.current,\n this.getPopperOptions(),\n );\n }\n\n componentDidUpdate(prevProps) {\n const popperProps = [\n 'strategy',\n 'placement',\n 'offset',\n 'preventOverflow',\n 'arrow',\n 'flip',\n 'computeStyles',\n 'eventListeners',\n 'onFirstUpdate',\n ];\n if (\n this.popper.current &&\n popperProps.some((propName) => prevProps[propName] !== this.asProps[propName])\n ) {\n this.popper.current.setOptions(this.getPopperOptions());\n }\n }\n\n destroyPopper() {\n clearTimeout(this.timer);\n clearTimeout(this.timerMultiTrigger);\n\n this.observer?.disconnect();\n\n if (this.popper.current) {\n this.popper.current.destroy();\n this.popper.current = null;\n }\n }\n\n handlersFromInteraction(interaction, component, visible) {\n const eventInteraction =\n typeof interaction === 'string' ? this.eventsInteractionMap[interaction] : interaction;\n\n const [showEvents = [], hideEvents = []] = eventInteraction[component];\n const crossEvents = someArray(showEvents, hideEvents);\n const handlers = {};\n\n showEvents.forEach((action) => {\n handlers[action] = this.bindHandlerChangeVisibleWithTimer(true, component, action);\n });\n hideEvents.forEach((action) => {\n handlers[action] = this.bindHandlerChangeVisibleWithTimer(false, component, action);\n });\n crossEvents.forEach((action) => {\n handlers[action] = visible\n ? this.bindHandlerChangeVisibleWithTimer(false, component, action)\n : this.bindHandlerChangeVisibleWithTimer(true, component, action);\n });\n return handlers;\n }\n\n handlerKeyDown = (e) => {\n const { visible } = this.asProps;\n if (visible && e.key === 'Escape') {\n e.stopPropagation();\n\n this.bindHandlerChangeVisibleWithTimer(false)(e);\n }\n };\n bindHandlerKeyDown = (onKeyDown) => callAllEventHandlers(onKeyDown, this.handlerKeyDown);\n\n bindHandlerChangeVisibleWithTimer = (visible, component, action) => (e) => {\n const now = Date.now();\n const focusAction = ['onFocus', 'onKeyboardFocus', 'onFocusCapture'].includes(action);\n if (\n now < this.state.ignoreTriggerFocusUntil &&\n visible &&\n component === 'trigger' &&\n focusAction\n ) {\n return;\n }\n const currentTarget = e?.currentTarget;\n this.handlerChangeVisibleWithTimer(visible, e, () => {\n clearTimeout(this.timerMultiTrigger);\n // instance popper is not here yet because the popperRef did not have time to come\n this.timerMultiTrigger = setTimeout(() => {\n if (visible && component === 'trigger' && this.popper.current && currentTarget) {\n if (this.popper.current.state.elements.reference !== currentTarget) {\n this.popper.current.state.elements.reference = currentTarget;\n // for update\n this.popper.current.setOptions({});\n }\n }\n }, 0);\n });\n const ignoringDuration = 2000;\n if (!visible) {\n this.setState({\n ignoreTriggerFocusUntil: now + ignoringDuration,\n });\n } else if (now < this.state.ignoreTriggerFocusUntil + ignoringDuration) {\n this.setState({\n ignoreTriggerFocusUntil: 0,\n });\n }\n };\n\n handlerChangeVisibleWithTimer = (visible, e, cb) => {\n const { timeout, disabled } = this.asProps;\n if (typeof disabled === 'boolean' && disabled && visible) return;\n const handlers = this.handlers;\n\n const timeoutConfig = typeof timeout === 'number' ? [timeout, timeout] : timeout;\n const latency = visible ? timeoutConfig[0] : timeoutConfig[1];\n clearTimeout(this.timer);\n this.timer = setTimeout(() => {\n handlers.visible(visible, e);\n cb();\n }, latency);\n };\n\n getTriggerProps() {\n const { visible, interaction, disableEnforceFocus } = this.asProps;\n // @ts-ignore\n const { onKeyDown, ...interactionProps } = this.handlersFromInteraction(\n interaction,\n 'trigger',\n visible,\n );\n return {\n ref: this.createTriggerRef,\n active: visible,\n interaction,\n ...interactionProps,\n onKeyDown: this.bindHandlerKeyDown(onKeyDown),\n disableEnforceFocus,\n popperRef: this.popperRef,\n onBlur: callAllEventHandlers(this.handleTriggerBlur, interactionProps.onBlur),\n };\n }\n\n handleTriggerBlur = () => {\n setTimeout(() => {\n this.setState({ ignoreTriggerFocusUntil: 0 });\n }, 0);\n };\n\n getPopperProps() {\n const {\n visible,\n disablePortal,\n interaction,\n placement,\n duration,\n animationsDisabled,\n disableEnforceFocus,\n } = this.asProps;\n // @ts-ignore\n const { onKeyDown, ...interactionProps } = this.handlersFromInteraction(\n interaction,\n 'popper',\n visible,\n );\n\n return {\n ref: this.createPopperRef,\n triggerRef: this.triggerRef,\n visible,\n interaction,\n disablePortal,\n ...interactionProps,\n onKeyDown: this.bindHandlerKeyDown(onKeyDown),\n placement,\n duration,\n animationsDisabled,\n popper: this.popper,\n disableEnforceFocus,\n handleFocusOut: this.handlePopperFocusOut,\n };\n }\n\n handlePopperFocusOut = (event) => {\n if (this.asProps.focusLoop) return;\n if (hasParent(event.target, this.triggerRef.current)) return;\n\n this.bindHandlerChangeVisibleWithTimer(false, 'popper', 'onBlur')(event);\n };\n\n setContext() {\n return {\n popper: this.popper,\n setTrigger: this.createTriggerRef,\n setPopper: this.createPopperRef,\n };\n }\n\n componentWillUnmount() {\n this.destroyPopper();\n }\n\n render() {\n const { Children, visible, root, onOutsideClick, excludeRefs } = this.asProps;\n return (\n <>\n {visible ? (\n <OutsideClick\n root={root}\n excludeRefs={[this.triggerRef, this.popperRef, ...excludeRefs]}\n onOutsideClick={callAllEventHandlers(\n onOutsideClick,\n this.bindHandlerChangeVisibleWithTimer(false),\n )}\n />\n ) : null}\n <Children />\n </>\n );\n }\n}\n\nfunction Trigger(props) {\n const STrigger = Root;\n const SFocusHint = 'span';\n const { Children, focusHint, onKeyboardFocus, highlighted, active, popperRef } = props;\n\n const triggerRef = React.useRef();\n\n React.useEffect(() => {\n if (highlighted === true) {\n onKeyboardFocus({ currentTarget: triggerRef.current });\n }\n }, [highlighted]);\n\n const focusSourceRef = useFocusSource();\n const handleFocus = React.useCallback(() => {\n if (focusSourceRef.current !== 'keyboard') return;\n onKeyboardFocus?.();\n }, [onKeyboardFocus]);\n\n const activeRef = React.useRef(active);\n activeRef.current = active;\n React.useEffect(() => {\n if (!active) return;\n if (!popperRef.current) return;\n return () => {\n setTimeout(() => {\n if (activeRef.current) return;\n if (!isFocusInside(popperRef.current) && document.activeElement !== document.body) return;\n\n setFocus(triggerRef.current);\n }, 1);\n };\n }, [active]);\n\n return (\n <>\n <STrigger\n render={Box}\n inline\n role='button'\n aria-haspopup={true}\n ref={triggerRef}\n onFocus={handleFocus}\n onBlur={props.onBlur}\n >\n <Children />\n </STrigger>\n {focusHint && false && (\n <SFocusHint aria-live='polite'>\n <ScreenReaderOnly>{focusHint}</ScreenReaderOnly>\n </SFocusHint>\n )}\n </>\n );\n}\n\nfunction PopperPopper(props) {\n const SPopper = Root;\n const {\n Children,\n styles,\n visible,\n disablePortal,\n ignorePortalsStacking,\n disableEnforceFocus,\n triggerRef,\n autoFocus,\n controlsLength,\n duration,\n animationsDisabled,\n popper,\n focusMaster = false,\n handleFocusOut,\n } = props;\n const ref = React.useRef(null);\n\n // https://github.com/facebook/react/issues/11387\n const stopPropagation = React.useCallback((event) => event.stopPropagation(), []);\n\n useFocusLock(\n ref,\n autoFocus,\n triggerRef,\n !visible || disableEnforceFocus,\n focusMaster,\n handleFocusOut,\n );\n\n useContextTheme(ref, visible);\n\n const updatePopperEveryFrame = useUpdatePopperEveryFrame(popper);\n const handleAnimationStart = React.useCallback(\n (duration) => {\n if (duration > 0) {\n updatePopperEveryFrame(Date.now() + Math.min(duration, 2000));\n }\n },\n [updatePopperEveryFrame],\n );\n const handleAnimationEnd = React.useCallback(() => {\n popper.current?.update();\n }, []);\n const animationCtx = React.useContext(animationContext);\n React.useEffect(() => {\n if (!ignorePortalsStacking) return;\n if (!animationCtx) return;\n const unsubscribeAnimationStart = animationCtx.onAnimationStart(handleAnimationStart);\n const unsubscribeAnimationEnd = animationCtx.onAnimationEnd(handleAnimationEnd);\n return () => {\n unsubscribeAnimationStart();\n unsubscribeAnimationEnd();\n };\n }, [animationCtx, ignorePortalsStacking]);\n\n return sstyled(styles)(\n <Portal disablePortal={disablePortal} ignorePortalsStacking={ignorePortalsStacking}>\n <NeighborLocation controlsLength={controlsLength}>\n <SPopper\n render={Scale}\n animationsDisabled={animationsDisabled}\n visible={visible}\n duration={[duration, duration / 2]}\n ref={ref}\n onClick={stopPropagation}\n onContextMenu={stopPropagation}\n onDoubleClick={stopPropagation}\n onDrag={stopPropagation}\n onDragEnd={stopPropagation}\n onDragEnter={stopPropagation}\n onDragExit={stopPropagation}\n onDragLeave={stopPropagation}\n onDragOver={stopPropagation}\n onDragStart={stopPropagation}\n onDrop={stopPropagation}\n onMouseDown={stopPropagation}\n onMouseMove={stopPropagation}\n onMouseOver={stopPropagation}\n onMouseOut={stopPropagation}\n onMouseUp={stopPropagation}\n onKeyDown={stopPropagation}\n onKeyPress={stopPropagation}\n onKeyUp={stopPropagation}\n onFocus={stopPropagation}\n onBlur={stopPropagation}\n onChange={stopPropagation}\n onInput={stopPropagation}\n onInvalid={stopPropagation}\n onReset={stopPropagation}\n onSubmit={stopPropagation}\n >\n <PortalProvider value={ref}>\n <Children />\n </PortalProvider>\n </SPopper>\n </NeighborLocation>\n </Portal>,\n );\n}\n\nPopperPopper.enhance = [keyboardFocusEnhance()];\n\nexport default createComponent(Popper, {\n Trigger,\n Popper: PopperPopper,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAGA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAHA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,OAAA,GAAAP,uBAAA,CAAAC,OAAA;AACA,IAAAO,iBAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;AACA,IAAAW,KAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAA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AAAwB,EAAA,gBAAApF,cAAA,qBAAAhL,KAAA,CAAAwO,WAAA;IAAA,sBAEc9C,kBAAkB;IAAA,WAC7B/E,OAAO;IAAA,YACN,CAAC8E,QAAQ,EAAEA,QAAQ,GAAG,CAAC,CAAC;IAAA,OAC7B9G,GAAG;IAAA,WACCkC,eAAe;IAAA,iBACTA,eAAe;IAAA,iBACfA,eAAe;IAAA,UACtBA,eAAe;IAAA,aACZA,eAAe;IAAA,eACbA,eAAe;IAAA,cAChBA,eAAe;IAAA,eACdA,eAAe;IAAA,cAChBA,eAAe;IAAA,eACdA,eAAe;IAAA,UACpBA,eAAe;IAAA,eACVA,eAAe;IAAA,eACfA,eAAe;IAAA,eACfA,eAAe;IAAA,cAChBA,eAAe;IAAA,aAChBA,eAAe;IAAA,aACfA,eAAe;IAAA,cACdA,eAAe;IAAA,WAClBA,eAAe;IAAA,WACfA,eAAe;IAAA,UAChBA,eAAe;IAAA,YACbA,eAAe;IAAA,WAChBA,eAAe;IAAA,aACbA,eAAe;IAAA,WACjBA,eAAe;IAAA,YACdA;EAAe,GAAA8H,KAAA,kBAEzBxO,MAAA,YAAAsM,aAAA,CAACjM,OAAA,CAAA6P,cAAc,EAAAzB,KAAA,CAAAwB,EAAA;IAAA,SAAQzL;EAAG,iBACxBxE,MAAA,YAAAsM,aAAA,CAACJ,QAAQ,EAAAuC,KAAA,CAAAwB,EAAA,iBAAG,CACG,CACT,CACO,CACZ;AAEb;AAEA1B,YAAY,CAAC4B,OAAO,GAAG,CAAC,IAAAC,gCAAoB,GAAE,CAAC;AAAC,IAAAC,QAAA,GAEjC,IAAAC,gBAAe,EAACjN,MAAM,EAAE;EACrC8J,OAAO,EAAPA,OAAO;EACP9J,MAAM,EAAEkL;AACV,CAAC,CAAC;AAAAgC,OAAA,cAAAF,QAAA"}
1
+ {"version":3,"file":"Popper.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_canUseDOM","_flexBox","_outsideClick","_portal","_neighborLocation","_ref5","_useFocusLock","_assignProps3","_pick","_uniqueID","_animation","_useCssVariable","_ThemeProvider","_ScreenReaderOnly","_keyboardFocusEnhance","_hasParent","_createPopper2","_excluded","_excluded2","_excluded3","style","sstyled","insert","isObject","obj","_typeof2","Array","isArray","someArray","arr1","arr2","filter","i","indexOf","useUpdatePopperEveryFrame","popperRef","nextAnimationFrameRef","React","useRef","handleAnimationFrame","useCallback","until","_popperRef$current","Date","now","current","update","requestAnimationFrame","useEffect","cancelAnimationFrame","MODIFIERS_OPTIONS","Popper","_Component","_inherits2","_super","_createSuper2","props","_this","_classCallCheck2","call","_defineProperty2","_assertThisInitialized2","click","trigger","popper","hover","focus","none","createRef","ignoreTriggerFocusUntil","ref","triggerRef","setRef","createPopper","_this$asProps","asProps","placement","modifiers","strategy","onFirstUpdate","other","_objectWithoutProperties2","optionsModifiers","pick","modifiersFallback","offset","modifiersOptions","name","undefined","map","options","push","gpuAcceleration","modifiersMerge","concat","_toConsumableArray2","callAllEventHandlers","_this$observer","_this$observer2","observer","observe","e","visible","key","stopPropagation","bindHandlerChangeVisibleWithTimer","onKeyDown","handlerKeyDown","component","action","focusAction","includes","state","currentTarget","handlerChangeVisibleWithTimer","clearTimeout","timerMultiTrigger","setTimeout","elements","reference","setOptions","ignoringDuration","setState","cb","_this$asProps2","timeout","disabled","handlers","timeoutConfig","latency","timer","event","focusLoop","hasParent","target","canUseDOM","ResizeObserver","_this$popper$current","_createClass2","value","uncontrolledProps","__disablePopper","getPopperOptions","componentDidUpdate","prevProps","_this2","popperProps","some","propName","destroyPopper","_this$observer3","disconnect","destroy","handlersFromInteraction","interaction","_this3","eventInteraction","eventsInteractionMap","_eventInteraction$com","_slicedToArray2","_eventInteraction$com2","showEvents","_eventInteraction$com3","hideEvents","crossEvents","forEach","getTriggerProps","_this$asProps3","disableEnforceFocus","_this$handlersFromInt","interactionProps","_objectSpread2","createTriggerRef","active","bindHandlerKeyDown","onBlur","handleTriggerBlur","getPopperProps","_this$asProps4","disablePortal","duration","animationsDisabled","_this$handlersFromInt2","createPopperRef","handleFocusOut","handlePopperFocusOut","setContext","setTrigger","setPopper","componentWillUnmount","render","_this$asProps5","Children","root","onOutsideClick","excludeRefs","createElement","Fragment","Component","defaultVisible","arrow","padding","uniqueIDEnhancement","cssVariableEnhance","variable","fallback","Number","parseInt","prop","Trigger","_ref","arguments[0]","STrigger","Box","SFocusHint","focusHint","onKeyboardFocus","highlighted","focusSourceRef","useFocusSource","handleFocus","activeRef","isFocusInside","document","activeElement","body","setFocus","assignProps","ScreenReaderOnly","PopperPopper","_ref2","_ref3","SPopper","Scale","styles","ignorePortalsStacking","autoFocus","controlsLength","_props$focusMaster","focusMaster","useFocusLock","useContextTheme","updatePopperEveryFrame","handleAnimationStart","Math","min","handleAnimationEnd","_popper$current","animationCtx","useContext","animationContext","unsubscribeAnimationStart","onAnimationStart","unsubscribeAnimationEnd","onAnimationEnd","cn","PortalProvider","enhance","keyboardFocusEnhance","_default","createComponent","exports"],"sources":["../../src/Popper.jsx"],"sourcesContent":["import React from 'react';\n\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport OutsideClick from '@semcore/outside-click';\nimport Portal, { PortalProvider } from '@semcore/portal';\nimport NeighborLocation from '@semcore/neighbor-location';\nimport { setRef } from '@semcore/utils/lib/ref';\nimport { useFocusLock, isFocusInside, setFocus } from '@semcore/utils/lib/use/useFocusLock';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport pick from '@semcore/utils/lib/pick';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport { Scale, animationContext } from '@semcore/animation';\nimport { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';\nimport { useContextTheme } from '@semcore/utils/lib/ThemeProvider';\nimport { ScreenReaderOnly } from '@semcore/utils/lib/ScreenReaderOnly';\nimport keyboardFocusEnhance, {\n useFocusSource,\n} from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { hasParent } from '@semcore/utils/lib/hasParent';\n\nimport createPopper from './createPopper';\n\nimport style from './style/popper.shadow.css';\n\nfunction isObject(obj) {\n return typeof obj === 'object' && !Array.isArray(obj);\n}\n\nfunction someArray(arr1, arr2) {\n return arr1.filter(function (i) {\n return arr2.indexOf(i) !== -1;\n });\n}\n\nconst useUpdatePopperEveryFrame = (popperRef) => {\n const nextAnimationFrameRef = React.useRef(-1);\n const handleAnimationFrame = React.useCallback((until) => {\n if (until < Date.now()) return;\n popperRef.current?.update();\n nextAnimationFrameRef.current = requestAnimationFrame(() => handleAnimationFrame(until));\n }, []);\n React.useEffect(() => () => cancelAnimationFrame(nextAnimationFrameRef.current), []);\n return handleAnimationFrame;\n};\n\nconst MODIFIERS_OPTIONS = [\n 'offset',\n 'preventOverflow',\n 'arrow',\n 'flip',\n 'computeStyles',\n 'eventListeners',\n];\n\nclass Popper extends Component {\n static displayName = 'Popper';\n\n static style = style;\n\n static defaultProps = {\n defaultVisible: false,\n placement: 'auto',\n modifiers: [],\n arrow: {\n padding: 6,\n },\n strategy: 'absolute',\n interaction: 'click',\n timeout: 0,\n excludeRefs: [],\n focusLoop: true,\n };\n\n static enhance = [\n uniqueIDEnhancement(),\n cssVariableEnhance({\n variable: '--intergalactic-duration-popper',\n fallback: '200',\n map: Number.parseInt,\n prop: 'duration',\n }),\n ];\n\n eventsInteractionMap = {\n click: {\n trigger: [['onClick'], ['onClick']],\n popper: [],\n },\n hover: {\n trigger: [\n ['onMouseEnter', 'onKeyboardFocus'],\n ['onMouseLeave', 'onBlur'],\n ],\n popper: [['onMouseEnter', 'onFocusCapture'], ['onMouseLeave']],\n },\n focus: {\n trigger: [['onFocus'], ['onBlur']],\n // to intercept faster than onBlur on the trigger\n popper: [['onFocusCapture'], ['onBlur']],\n },\n none: {\n trigger: [],\n popper: [],\n },\n };\n\n // timer: ReturnType<typeof setTimeout>;\n // observer: ResizeObserver;\n triggerRef = React.createRef();\n popperRef = React.createRef();\n popper = React.createRef();\n\n constructor(props) {\n super(props);\n if (canUseDOM()) {\n this.observer = new ResizeObserver(() => {\n requestAnimationFrame(() => {\n this.popper.current?.update();\n });\n });\n }\n }\n\n uncontrolledProps() {\n return {\n visible: null,\n };\n }\n\n state = { ignoreTriggerFocusUntil: 0 };\n\n createTriggerRef = (ref) => {\n if (ref && this.triggerRef.current !== ref) {\n setRef(this.triggerRef, ref);\n this.createPopper();\n }\n };\n\n createPopperRef = (ref) => {\n if (ref && this.popperRef.current !== ref) {\n setRef(this.popperRef, ref);\n this.createPopper();\n }\n };\n\n getPopperOptions = () => {\n const { placement, modifiers, strategy, onFirstUpdate, ...other } = this.asProps;\n const optionsModifiers = pick(other, MODIFIERS_OPTIONS);\n const modifiersFallback = [];\n\n if (typeof optionsModifiers.offset === 'number') {\n optionsModifiers.offset = [0, optionsModifiers.offset];\n }\n const modifiersOptions = MODIFIERS_OPTIONS.filter(\n (name) => optionsModifiers[name] !== undefined,\n ).map((name) => ({\n name,\n options: isObject(optionsModifiers[name])\n ? optionsModifiers[name]\n : { [name]: optionsModifiers[name] },\n }));\n\n modifiersOptions.push({\n name: 'computeStyles',\n options: { gpuAcceleration: false },\n });\n\n const modifiersMerge = [...modifiersFallback, ...modifiersOptions].concat(modifiers);\n\n return {\n placement,\n strategy,\n onFirstUpdate: callAllEventHandlers(onFirstUpdate, () => {\n this.observer?.observe(this.triggerRef.current);\n this.observer?.observe(this.popperRef.current);\n }),\n modifiers: modifiersMerge,\n };\n };\n\n createPopper() {\n if (!this.triggerRef.current || !this.popperRef.current) return;\n if (this.asProps.__disablePopper) return;\n\n this.popper.current = createPopper(\n this.triggerRef.current,\n this.popperRef.current,\n this.getPopperOptions(),\n );\n }\n\n componentDidUpdate(prevProps) {\n const popperProps = [\n 'strategy',\n 'placement',\n 'offset',\n 'preventOverflow',\n 'arrow',\n 'flip',\n 'computeStyles',\n 'eventListeners',\n 'onFirstUpdate',\n ];\n if (\n this.popper.current &&\n popperProps.some((propName) => prevProps[propName] !== this.asProps[propName])\n ) {\n this.popper.current.setOptions(this.getPopperOptions());\n }\n }\n\n destroyPopper() {\n clearTimeout(this.timer);\n clearTimeout(this.timerMultiTrigger);\n\n this.observer?.disconnect();\n\n if (this.popper.current) {\n this.popper.current.destroy();\n this.popper.current = null;\n }\n }\n\n handlersFromInteraction(interaction, component, visible) {\n const eventInteraction =\n typeof interaction === 'string' ? this.eventsInteractionMap[interaction] : interaction;\n\n const [showEvents = [], hideEvents = []] = eventInteraction[component];\n const crossEvents = someArray(showEvents, hideEvents);\n const handlers = {};\n\n showEvents.forEach((action) => {\n handlers[action] = this.bindHandlerChangeVisibleWithTimer(true, component, action);\n });\n hideEvents.forEach((action) => {\n handlers[action] = this.bindHandlerChangeVisibleWithTimer(false, component, action);\n });\n crossEvents.forEach((action) => {\n handlers[action] = visible\n ? this.bindHandlerChangeVisibleWithTimer(false, component, action)\n : this.bindHandlerChangeVisibleWithTimer(true, component, action);\n });\n return handlers;\n }\n\n handlerKeyDown = (e) => {\n const { visible } = this.asProps;\n if (visible && e.key === 'Escape') {\n e.stopPropagation();\n\n this.bindHandlerChangeVisibleWithTimer(false)(e);\n }\n };\n bindHandlerKeyDown = (onKeyDown) => callAllEventHandlers(onKeyDown, this.handlerKeyDown);\n\n bindHandlerChangeVisibleWithTimer = (visible, component, action) => (e) => {\n const now = Date.now();\n const focusAction = ['onFocus', 'onKeyboardFocus', 'onFocusCapture'].includes(action);\n if (\n now < this.state.ignoreTriggerFocusUntil &&\n visible &&\n component === 'trigger' &&\n focusAction\n ) {\n return;\n }\n const currentTarget = e?.currentTarget;\n this.handlerChangeVisibleWithTimer(visible, e, () => {\n clearTimeout(this.timerMultiTrigger);\n // instance popper is not here yet because the popperRef did not have time to come\n this.timerMultiTrigger = setTimeout(() => {\n if (visible && component === 'trigger' && this.popper.current && currentTarget) {\n if (this.popper.current.state.elements.reference !== currentTarget) {\n this.popper.current.state.elements.reference = currentTarget;\n // for update\n this.popper.current.setOptions({});\n }\n }\n }, 0);\n });\n const ignoringDuration = 2000;\n if (!visible && ['onClick', 'onBlur'].includes(action)) {\n this.setState({\n ignoreTriggerFocusUntil: now + ignoringDuration,\n });\n } else if (now < this.state.ignoreTriggerFocusUntil + ignoringDuration) {\n this.setState({\n ignoreTriggerFocusUntil: 0,\n });\n }\n };\n\n handlerChangeVisibleWithTimer = (visible, e, cb) => {\n const { timeout, disabled } = this.asProps;\n if (typeof disabled === 'boolean' && disabled && visible) return;\n const handlers = this.handlers;\n\n const timeoutConfig = typeof timeout === 'number' ? [timeout, timeout] : timeout;\n const latency = visible ? timeoutConfig[0] : timeoutConfig[1];\n clearTimeout(this.timer);\n this.timer = setTimeout(() => {\n handlers.visible(visible, e);\n cb();\n }, latency);\n };\n\n getTriggerProps() {\n const { visible, interaction, disableEnforceFocus } = this.asProps;\n // @ts-ignore\n const { onKeyDown, ...interactionProps } = this.handlersFromInteraction(\n interaction,\n 'trigger',\n visible,\n );\n return {\n ref: this.createTriggerRef,\n active: visible,\n interaction,\n ...interactionProps,\n onKeyDown: this.bindHandlerKeyDown(onKeyDown),\n disableEnforceFocus,\n popperRef: this.popperRef,\n onBlur: callAllEventHandlers(this.handleTriggerBlur, interactionProps.onBlur),\n };\n }\n\n handleTriggerBlur = () => {\n setTimeout(() => {\n this.setState({ ignoreTriggerFocusUntil: 0 });\n }, 0);\n };\n\n getPopperProps() {\n const {\n visible,\n disablePortal,\n interaction,\n placement,\n duration,\n animationsDisabled,\n disableEnforceFocus,\n } = this.asProps;\n // @ts-ignore\n const { onKeyDown, ...interactionProps } = this.handlersFromInteraction(\n interaction,\n 'popper',\n visible,\n );\n\n return {\n ref: this.createPopperRef,\n triggerRef: this.triggerRef,\n visible,\n interaction,\n disablePortal,\n ...interactionProps,\n onKeyDown: this.bindHandlerKeyDown(onKeyDown),\n placement,\n duration,\n animationsDisabled,\n popper: this.popper,\n disableEnforceFocus,\n handleFocusOut: this.handlePopperFocusOut,\n };\n }\n\n handlePopperFocusOut = (event) => {\n if (this.asProps.focusLoop) return;\n if (hasParent(event.target, this.triggerRef.current)) return;\n\n this.bindHandlerChangeVisibleWithTimer(false, 'popper', 'onBlur')(event);\n };\n\n setContext() {\n return {\n popper: this.popper,\n setTrigger: this.createTriggerRef,\n setPopper: this.createPopperRef,\n };\n }\n\n componentWillUnmount() {\n this.destroyPopper();\n }\n\n render() {\n const { Children, visible, root, onOutsideClick, excludeRefs } = this.asProps;\n return (\n <>\n {visible ? (\n <OutsideClick\n root={root}\n excludeRefs={[this.triggerRef, this.popperRef, ...excludeRefs]}\n onOutsideClick={callAllEventHandlers(\n onOutsideClick,\n this.bindHandlerChangeVisibleWithTimer(false),\n )}\n />\n ) : null}\n <Children />\n </>\n );\n }\n}\n\nfunction Trigger(props) {\n const STrigger = Root;\n const SFocusHint = 'span';\n const { Children, focusHint, onKeyboardFocus, highlighted, active, popperRef } = props;\n\n const triggerRef = React.useRef();\n\n React.useEffect(() => {\n if (highlighted === true) {\n onKeyboardFocus({ currentTarget: triggerRef.current });\n }\n }, [highlighted]);\n\n const focusSourceRef = useFocusSource();\n const handleFocus = React.useCallback(() => {\n if (focusSourceRef.current !== 'keyboard') return;\n onKeyboardFocus?.();\n }, [onKeyboardFocus]);\n\n const activeRef = React.useRef(active);\n activeRef.current = active;\n React.useEffect(() => {\n if (!active) return;\n if (!popperRef.current) return;\n return () => {\n setTimeout(() => {\n if (activeRef.current) return;\n if (!isFocusInside(popperRef.current) && document.activeElement !== document.body) return;\n\n setFocus(triggerRef.current);\n }, 1);\n };\n }, [active]);\n\n return (\n <>\n <STrigger\n render={Box}\n inline\n role='button'\n aria-haspopup={true}\n ref={triggerRef}\n onFocus={handleFocus}\n onBlur={props.onBlur}\n >\n <Children />\n </STrigger>\n {focusHint && false && (\n <SFocusHint aria-live='polite'>\n <ScreenReaderOnly>{focusHint}</ScreenReaderOnly>\n </SFocusHint>\n )}\n </>\n );\n}\n\nfunction PopperPopper(props) {\n const SPopper = Root;\n const {\n Children,\n styles,\n visible,\n disablePortal,\n ignorePortalsStacking,\n disableEnforceFocus,\n triggerRef,\n autoFocus,\n controlsLength,\n duration,\n animationsDisabled,\n popper,\n focusMaster = false,\n handleFocusOut,\n } = props;\n const ref = React.useRef(null);\n\n // https://github.com/facebook/react/issues/11387\n const stopPropagation = React.useCallback((event) => event.stopPropagation(), []);\n\n useFocusLock(\n ref,\n autoFocus,\n triggerRef,\n !visible || disableEnforceFocus,\n focusMaster,\n handleFocusOut,\n );\n\n useContextTheme(ref, visible);\n\n const updatePopperEveryFrame = useUpdatePopperEveryFrame(popper);\n const handleAnimationStart = React.useCallback(\n (duration) => {\n if (duration > 0) {\n updatePopperEveryFrame(Date.now() + Math.min(duration, 2000));\n }\n },\n [updatePopperEveryFrame],\n );\n const handleAnimationEnd = React.useCallback(() => {\n popper.current?.update();\n }, []);\n const animationCtx = React.useContext(animationContext);\n React.useEffect(() => {\n if (!ignorePortalsStacking) return;\n if (!animationCtx) return;\n const unsubscribeAnimationStart = animationCtx.onAnimationStart(handleAnimationStart);\n const unsubscribeAnimationEnd = animationCtx.onAnimationEnd(handleAnimationEnd);\n return () => {\n unsubscribeAnimationStart();\n unsubscribeAnimationEnd();\n };\n }, [animationCtx, ignorePortalsStacking]);\n\n return sstyled(styles)(\n <Portal disablePortal={disablePortal} ignorePortalsStacking={ignorePortalsStacking}>\n <NeighborLocation controlsLength={controlsLength}>\n <SPopper\n render={Scale}\n animationsDisabled={animationsDisabled}\n visible={visible}\n duration={[duration, duration / 2]}\n ref={ref}\n onClick={stopPropagation}\n onContextMenu={stopPropagation}\n onDoubleClick={stopPropagation}\n onDrag={stopPropagation}\n onDragEnd={stopPropagation}\n onDragEnter={stopPropagation}\n onDragExit={stopPropagation}\n onDragLeave={stopPropagation}\n onDragOver={stopPropagation}\n onDragStart={stopPropagation}\n onDrop={stopPropagation}\n onMouseDown={stopPropagation}\n onMouseMove={stopPropagation}\n onMouseOver={stopPropagation}\n onMouseOut={stopPropagation}\n onMouseUp={stopPropagation}\n onKeyDown={stopPropagation}\n onKeyPress={stopPropagation}\n onKeyUp={stopPropagation}\n onFocus={stopPropagation}\n onBlur={stopPropagation}\n onChange={stopPropagation}\n onInput={stopPropagation}\n onInvalid={stopPropagation}\n onReset={stopPropagation}\n onSubmit={stopPropagation}\n >\n <PortalProvider value={ref}>\n <Children />\n </PortalProvider>\n </SPopper>\n </NeighborLocation>\n </Portal>,\n );\n}\n\nPopperPopper.enhance = [keyboardFocusEnhance()];\n\nexport default createComponent(Popper, {\n Trigger,\n Popper: PopperPopper,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAGA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAHA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,OAAA,GAAAP,uBAAA,CAAAC,OAAA;AACA,IAAAO,iBAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;AACA,IAAAW,KAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAAY,SAAA,GAAAV,sBAAA,CAAAF,OAAA;AACA,IAAAa,UAAA,GAAAb,OAAA;AACA,IAAAc,eAAA,GAAAd,OAAA;AACA,IAAAe,cAAA,GAAAf,OAAA;AACA,IAAAgB,iBAAA,GAAAhB,OAAA;AACA,IAAAiB,qBAAA,GAAAlB,uBAAA,CAAAC,OAAA;AAGA,IAAAkB,UAAA,GAAAlB,OAAA;AAEA,IAAAmB,cAAA,GAAAjB,sBAAA,CAAAF,OAAA;AAA0C,IAAAoB,SAAA;EAAAC,UAAA;EAAAC,UAAA;AAAA;AAAA,IAAAC,KAAA,+BAAAzB,KAAA,C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A,eACdA,eAAe;IAAA,cAChBA,eAAe;IAAA,eACdA,eAAe;IAAA,UACpBA,eAAe;IAAA,eACVA,eAAe;IAAA,eACfA,eAAe;IAAA,eACfA,eAAe;IAAA,cAChBA,eAAe;IAAA,aAChBA,eAAe;IAAA,aACfA,eAAe;IAAA,cACdA,eAAe;IAAA,WAClBA,eAAe;IAAA,WACfA,eAAe;IAAA,UAChBA,eAAe;IAAA,YACbA,eAAe;IAAA,WAChBA,eAAe;IAAA,aACbA,eAAe;IAAA,WACjBA,eAAe;IAAA,YACdA;EAAe,GAAA8H,KAAA,kBAEzBxO,MAAA,YAAAsM,aAAA,CAACjM,OAAA,CAAA6P,cAAc,EAAAzB,KAAA,CAAAwB,EAAA;IAAA,SAAQzL;EAAG,iBACxBxE,MAAA,YAAAsM,aAAA,CAACJ,QAAQ,EAAAuC,KAAA,CAAAwB,EAAA,iBAAG,CACG,CACT,CACO,CACZ;AAEb;AAEA1B,YAAY,CAAC4B,OAAO,GAAG,CAAC,IAAAC,gCAAoB,GAAE,CAAC;AAAC,IAAAC,QAAA,GAEjC,IAAAC,gBAAe,EAACjN,MAAM,EAAE;EACrC8J,OAAO,EAAPA,OAAO;EACP9J,MAAM,EAAEkL;AACV,CAAC,CAAC;AAAAgC,OAAA,cAAAF,QAAA"}
@@ -185,7 +185,7 @@ var Popper = /*#__PURE__*/function (_Component) {
185
185
  }, 0);
186
186
  });
187
187
  var ignoringDuration = 2000;
188
- if (!visible) {
188
+ if (!visible && ['onClick', 'onBlur'].includes(action)) {
189
189
  _this.setState({
190
190
  ignoreTriggerFocusUntil: now + ignoringDuration
191
191
  });