@semcore/pills 16.0.0 → 16.0.1-prerelease.2

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,11 +2,17 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [16.0.1] - 2025-05-30
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/flex-box` [16.0.0 ~> 16.0.1], `@semcore/neighbor-location` [16.0.0 ~> 16.0.1], `@semcore/base-components` [16.0.0 ~> 16.0.1]).
10
+
5
11
  ## [16.0.0] - 2025-05-19
6
12
 
7
13
  ### Break
8
14
 
9
- - `keyboardFocusEnhance` to css `:focus-visible` property.
15
+ - replaced `keyboardFocusEnhance` with `:focus-visible` CSS pseudo-class.
10
16
 
11
17
  ## [5.43.4] - 2025-05-13
12
18
 
package/lib/cjs/Pills.js CHANGED
@@ -21,20 +21,20 @@ var _addonTextChildren = _interopRequireDefault(require("@semcore/core/lib/utils
21
21
  var _a11yEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/a11yEnhance"));
22
22
  var _logger = _interopRequireDefault(require("@semcore/core/lib/utils/logger"));
23
23
  /*!__reshadow-styles__:"./style/pills.shadow.css"*/
24
- var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SPill_1642b_gg_,.___SPills_1642b_gg_{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPills_1642b_gg_{isolation:isolate}.___SPill_1642b_gg_{line-height:normal;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;-webkit-text-decoration:none;text-decoration:none;-webkit-tap-highlight-color:transparent;overflow:visible;text-align:center;vertical-align:middle;font-family:inherit;cursor:pointer;background:var(--intergalactic-bg-primary-neutral, #ffffff);border:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SPill_1642b_gg_::-moz-focus-inner{border:0;padding:0}.___SPill_1642b_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPill_1642b_gg_:hover{background:var(--intergalactic-bg-primary-neutral-hover, #f4f5f9)}}.___SPill_1642b_gg_.__selected_1642b_gg_{background:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));border-color:var(--intergalactic-border-info-active, #006dca);z-index:2}.___SPill_1642b_gg_:active,.___SPill_1642b_gg_:focus-visible{z-index:1}@media (hover:hover){.___SPill_1642b_gg_:hover{z-index:1}}.___SPill_1642b_gg_.__disabled_1642b_gg_{cursor:default;pointer-events:none}.___SPill_1642b_gg_.__disabled_1642b_gg_>*{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SText_1642b_gg_{color:var(--intergalactic-text-primary, #191b23);display:inline-flex}.___SAddon_1642b_gg_{color:var(--intergalactic-text-secondary, #6c6e79);display:inline-flex;align-items:center;justify-content:center}.___SPill_1642b_gg_._size_m_1642b_gg_{height:var(--intergalactic-form-control-m, 28px);min-width:var(--intergalactic-form-control-m, 28px);font-size:var(--intergalactic-fs-200, 14px)}.___SPill_1642b_gg_._size_l_1642b_gg_ .___SText_1642b_gg_,.___SPill_1642b_gg_._size_m_1642b_gg_ .___SText_1642b_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_1642b_gg_._size_m_1642b_gg_ .___SAddon_1642b_gg_:not(:only-child):first-child{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SPill_1642b_gg_._size_m_1642b_gg_ .___SAddon_1642b_gg_:not(:only-child):last-child{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_1642b_gg_._size_m_1642b_gg_ .___SAddon_1642b_gg_:only-child{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_1642b_gg_._size_l_1642b_gg_{height:var(--intergalactic-form-control-l, 40px);min-width:var(--intergalactic-form-control-l, 40px);font-size:var(--intergalactic-fs-300, 16px)}.___SPill_1642b_gg_._size_l_1642b_gg_ .___SAddon_1642b_gg_:only-child,.___SPill_1642b_gg_._size_l_1642b_gg_ .___SText_1642b_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SPill_1642b_gg_._size_l_1642b_gg_ .___SAddon_1642b_gg_:not(:only-child):first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SPill_1642b_gg_._size_l_1642b_gg_ .___SAddon_1642b_gg_:not(:only-child):last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SPill_1642b_gg_._neighborLocation_right_1642b_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SPill_1642b_gg_._neighborLocation_both_1642b_gg_{border-radius:0;margin-left:-1px}.___SPill_1642b_gg_._neighborLocation_left_1642b_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}", /*__inner_css_end__*/"1642b_gg_"),
24
+ var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SPill_b8y4k_gg_,.___SPills_b8y4k_gg_{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPills_b8y4k_gg_{isolation:isolate}.___SPill_b8y4k_gg_{line-height:normal;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;-webkit-text-decoration:none;text-decoration:none;-webkit-tap-highlight-color:transparent;overflow:visible;text-align:center;vertical-align:middle;font-family:inherit;cursor:pointer;background:var(--intergalactic-bg-primary-neutral, #ffffff);border:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SPill_b8y4k_gg_::-moz-focus-inner{border:0;padding:0}.___SPill_b8y4k_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPill_b8y4k_gg_:hover{background:var(--intergalactic-bg-primary-neutral-hover, #f4f5f9)}}.___SPill_b8y4k_gg_.__selected_b8y4k_gg_{background:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));border-color:var(--intergalactic-border-info-active, #006dca);z-index:2}.___SPill_b8y4k_gg_:active,.___SPill_b8y4k_gg_:focus-visible{z-index:1}@media (hover:hover){.___SPill_b8y4k_gg_:hover{z-index:1}}.___SPill_b8y4k_gg_.__disabled_b8y4k_gg_{cursor:default;pointer-events:none}.___SPill_b8y4k_gg_.__disabled_b8y4k_gg_>*{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SText_b8y4k_gg_{color:var(--intergalactic-text-primary, #191b23);display:inline-flex}.___SAddon_b8y4k_gg_{color:var(--intergalactic-text-secondary, #6c6e79);display:inline-flex;align-items:center;justify-content:center}.___SPill_b8y4k_gg_._size_m_b8y4k_gg_{height:var(--intergalactic-form-control-m, 28px);min-width:var(--intergalactic-form-control-m, 28px);font-size:var(--intergalactic-fs-200, 14px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SText_b8y4k_gg_,.___SPill_b8y4k_gg_._size_m_b8y4k_gg_ .___SText_b8y4k_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_b8y4k_gg_._size_m_b8y4k_gg_ .___SAddon_b8y4k_gg_:not(:only-child):first-child{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SPill_b8y4k_gg_._size_m_b8y4k_gg_ .___SAddon_b8y4k_gg_:not(:only-child):last-child{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_b8y4k_gg_._size_m_b8y4k_gg_ .___SAddon_b8y4k_gg_:only-child{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_{height:var(--intergalactic-form-control-l, 40px);min-width:var(--intergalactic-form-control-l, 40px);font-size:var(--intergalactic-fs-300, 16px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SAddon_b8y4k_gg_:only-child,.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SText_b8y4k_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SAddon_b8y4k_gg_:not(:only-child):first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SAddon_b8y4k_gg_:not(:only-child):last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SPill_b8y4k_gg_._neighborLocation_right_b8y4k_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SPill_b8y4k_gg_._neighborLocation_both_b8y4k_gg_{border-radius:0;margin-left:-1px}.___SPill_b8y4k_gg_._neighborLocation_left_b8y4k_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}", /*__inner_css_end__*/"b8y4k_gg_"),
25
25
  /*__reshadow_css_end__*/
26
26
  {
27
- "__SPills": "___SPills_1642b_gg_",
28
- "__SPill": "___SPill_1642b_gg_",
29
- "_selected": "__selected_1642b_gg_",
30
- "__SText": "___SText_1642b_gg_",
31
- "__SAddon": "___SAddon_1642b_gg_",
32
- "_neighborLocation_right": "_neighborLocation_right_1642b_gg_",
33
- "_neighborLocation_both": "_neighborLocation_both_1642b_gg_",
34
- "_neighborLocation_left": "_neighborLocation_left_1642b_gg_",
35
- "_disabled": "__disabled_1642b_gg_",
36
- "_size_m": "_size_m_1642b_gg_",
37
- "_size_l": "_size_l_1642b_gg_"
27
+ "__SPills": "___SPills_b8y4k_gg_",
28
+ "__SPill": "___SPill_b8y4k_gg_",
29
+ "_selected": "__selected_b8y4k_gg_",
30
+ "__SText": "___SText_b8y4k_gg_",
31
+ "__SAddon": "___SAddon_b8y4k_gg_",
32
+ "_neighborLocation_right": "_neighborLocation_right_b8y4k_gg_",
33
+ "_neighborLocation_both": "_neighborLocation_both_b8y4k_gg_",
34
+ "_neighborLocation_left": "_neighborLocation_left_b8y4k_gg_",
35
+ "_disabled": "__disabled_b8y4k_gg_",
36
+ "_size_m": "_size_m_b8y4k_gg_",
37
+ "_size_l": "_size_l_b8y4k_gg_"
38
38
  });
39
39
  var optionsA11yEnhance = {
40
40
  onNeighborChange: function onNeighborChange(neighborElement, props) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport { NeighborItemProps, NeighborLocationProps } from '@semcore/neighbor-location';\nimport { KeyboardFocusProps } from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';\n\nexport type PillsValue = string | number | boolean | null;\n\n/** @deprecated */\nexport interface IPillsProps<T extends PillsValue = PillsValue>\n extends PillsProps<T>,\n UnknownProperties {}\nexport type PillsProps<T extends PillsValue = PillsValue> = NeighborLocationProps &\n KeyboardFocusProps &\n BoxProps & {\n /** Pills size */\n size?: 'l' | 'm';\n /** Disabled state */\n disabled?: boolean;\n /** Called when the selection is changed */\n onChange?:\n | ((value: T, e?: React.SyntheticEvent<HTMLSpanElement>) => void)\n | React.Dispatch<React.SetStateAction<T>>;\n /** Value for the selected pill */\n value?: T;\n /** Default value for the selected pill */\n defaultValue?: T;\n /** Sets semantic role for corresponding behavior,\n * when set to `auto` pressing left and right arrows\n * selects corresponding sibling pill.\n *\n * It's recommended to use `auto` behavior in forms\n * while `manual` behavior for navigation and layout.\n * @default tabs\n */\n behavior?: /** @deprecated use `manual` */\n | 'tabs'\n /** @deprecated use `auto` */\n | 'radio'\n | 'auto'\n | 'manual';\n };\n\n/** @deprecated */\nexport interface IPillProps extends PillProps, UnknownProperties {}\nexport type PillProps = BoxProps &\n NeighborItemProps &\n KeyboardFocusProps & {\n /** Pill value */\n value?: PillsValue;\n /** Disabled state */\n disabled?: boolean;\n /** Selected state */\n selected?: boolean;\n /** Left addon text */\n addonLeft?: React.ElementType;\n /** Right addon tag */\n addonRight?: React.ElementType;\n };\n\n/** @deprecated */\nexport interface IPillsContext extends PillsContext, UnknownProperties {}\nexport type PillsContext = {\n getItemProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IPillsHandlers extends PillsHandlers, UnknownProperties {}\nexport type PillsHandlers = {\n value: (value: PillsValue) => void;\n};\n\ntype IntergalacticPillsComponent<PropsExtending = {}> = (<\n Value extends PillsValue,\n Tag extends Intergalactic.Tag = 'div',\n>(\n props: Intergalactic.InternalTypings.ComponentProps<\n Tag,\n 'div',\n PillsProps<Value>,\n PillsContext,\n [handlers: PillsHandlers]\n > &\n PropsExtending,\n) => Intergalactic.InternalTypings.ComponentRenderingResults) &\n Intergalactic.InternalTypings.ComponentAdditive<'div', 'div', PillsProps>;\n\ndeclare const Pills: IntergalacticPillsComponent & {\n Item: Intergalactic.Component<'button', PillProps, [handlers: PillsHandlers]> & {\n Text: typeof Box;\n Addon: typeof Box;\n };\n};\n\ndeclare const wrapPills: <PropsExtending extends {}>(\n wrapper: (\n props: Intergalactic.InternalTypings.UntypeRefAndTag<\n Intergalactic.InternalTypings.ComponentPropsNesting<IntergalacticPillsComponent>\n > &\n PropsExtending,\n ) => React.ReactNode,\n) => IntergalacticPillsComponent<PropsExtending>;\nexport { wrapPills };\n\nexport default Pills;\n"],"mappings":""}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport { NeighborItemProps, NeighborLocationProps } from '@semcore/neighbor-location';\n\nexport type PillsValue = string | number | boolean | null;\n\n/** @deprecated */\nexport interface IPillsProps<T extends PillsValue = PillsValue>\n extends PillsProps<T>,\n UnknownProperties {}\nexport type PillsProps<T extends PillsValue = PillsValue> = NeighborLocationProps &\n BoxProps & {\n /** Pills size */\n size?: 'l' | 'm';\n /** Disabled state */\n disabled?: boolean;\n /** Called when the selection is changed */\n onChange?:\n | ((value: T, e?: React.SyntheticEvent<HTMLSpanElement>) => void)\n | React.Dispatch<React.SetStateAction<T>>;\n /** Value for the selected pill */\n value?: T;\n /** Default value for the selected pill */\n defaultValue?: T;\n /** Sets semantic role for corresponding behavior,\n * when set to `auto` pressing left and right arrows\n * selects corresponding sibling pill.\n *\n * It's recommended to use `auto` behavior in forms\n * while `manual` behavior for navigation and layout.\n * @default tabs\n */\n behavior?: /** @deprecated use `manual` */\n | 'tabs'\n /** @deprecated use `auto` */\n | 'radio'\n | 'auto'\n | 'manual';\n };\n\n/** @deprecated */\nexport interface IPillProps extends PillProps, UnknownProperties {}\nexport type PillProps = BoxProps &\n NeighborItemProps & {\n /** Pill value */\n value?: PillsValue;\n /** Disabled state */\n disabled?: boolean;\n /** Selected state */\n selected?: boolean;\n /** Left addon text */\n addonLeft?: React.ElementType;\n /** Right addon tag */\n addonRight?: React.ElementType;\n };\n\n/** @deprecated */\nexport interface IPillsContext extends PillsContext, UnknownProperties {}\nexport type PillsContext = {\n getItemProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IPillsHandlers extends PillsHandlers, UnknownProperties {}\nexport type PillsHandlers = {\n value: (value: PillsValue) => void;\n};\n\ntype IntergalacticPillsComponent<PropsExtending = {}> = (<\n Value extends PillsValue,\n Tag extends Intergalactic.Tag = 'div',\n>(\n props: Intergalactic.InternalTypings.ComponentProps<\n Tag,\n 'div',\n PillsProps<Value>,\n PillsContext,\n [handlers: PillsHandlers]\n > &\n PropsExtending,\n) => Intergalactic.InternalTypings.ComponentRenderingResults) &\n Intergalactic.InternalTypings.ComponentAdditive<'div', 'div', PillsProps>;\n\ndeclare const Pills: IntergalacticPillsComponent & {\n Item: Intergalactic.Component<'button', PillProps, [handlers: PillsHandlers]> & {\n Text: typeof Box;\n Addon: typeof Box;\n };\n};\n\ndeclare const wrapPills: <PropsExtending extends {}>(\n wrapper: (\n props: Intergalactic.InternalTypings.UntypeRefAndTag<\n Intergalactic.InternalTypings.ComponentPropsNesting<IntergalacticPillsComponent>\n > &\n PropsExtending,\n ) => React.ReactNode,\n) => IntergalacticPillsComponent<PropsExtending>;\nexport { wrapPills };\n\nexport default Pills;\n"],"mappings":""}
package/lib/es6/Pills.js CHANGED
@@ -18,20 +18,20 @@ import addonTextChildren from '@semcore/core/lib/utils/addonTextChildren';
18
18
  import a11yEnhance from '@semcore/core/lib/utils/enhances/a11yEnhance';
19
19
  import log from '@semcore/core/lib/utils/logger';
20
20
  /*!__reshadow-styles__:"./style/pills.shadow.css"*/
21
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPill_1642b_gg_,.___SPills_1642b_gg_{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPills_1642b_gg_{isolation:isolate}.___SPill_1642b_gg_{line-height:normal;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;-webkit-text-decoration:none;text-decoration:none;-webkit-tap-highlight-color:transparent;overflow:visible;text-align:center;vertical-align:middle;font-family:inherit;cursor:pointer;background:var(--intergalactic-bg-primary-neutral, #ffffff);border:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SPill_1642b_gg_::-moz-focus-inner{border:0;padding:0}.___SPill_1642b_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPill_1642b_gg_:hover{background:var(--intergalactic-bg-primary-neutral-hover, #f4f5f9)}}.___SPill_1642b_gg_.__selected_1642b_gg_{background:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));border-color:var(--intergalactic-border-info-active, #006dca);z-index:2}.___SPill_1642b_gg_:active,.___SPill_1642b_gg_:focus-visible{z-index:1}@media (hover:hover){.___SPill_1642b_gg_:hover{z-index:1}}.___SPill_1642b_gg_.__disabled_1642b_gg_{cursor:default;pointer-events:none}.___SPill_1642b_gg_.__disabled_1642b_gg_>*{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SText_1642b_gg_{color:var(--intergalactic-text-primary, #191b23);display:inline-flex}.___SAddon_1642b_gg_{color:var(--intergalactic-text-secondary, #6c6e79);display:inline-flex;align-items:center;justify-content:center}.___SPill_1642b_gg_._size_m_1642b_gg_{height:var(--intergalactic-form-control-m, 28px);min-width:var(--intergalactic-form-control-m, 28px);font-size:var(--intergalactic-fs-200, 14px)}.___SPill_1642b_gg_._size_l_1642b_gg_ .___SText_1642b_gg_,.___SPill_1642b_gg_._size_m_1642b_gg_ .___SText_1642b_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_1642b_gg_._size_m_1642b_gg_ .___SAddon_1642b_gg_:not(:only-child):first-child{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SPill_1642b_gg_._size_m_1642b_gg_ .___SAddon_1642b_gg_:not(:only-child):last-child{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_1642b_gg_._size_m_1642b_gg_ .___SAddon_1642b_gg_:only-child{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_1642b_gg_._size_l_1642b_gg_{height:var(--intergalactic-form-control-l, 40px);min-width:var(--intergalactic-form-control-l, 40px);font-size:var(--intergalactic-fs-300, 16px)}.___SPill_1642b_gg_._size_l_1642b_gg_ .___SAddon_1642b_gg_:only-child,.___SPill_1642b_gg_._size_l_1642b_gg_ .___SText_1642b_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SPill_1642b_gg_._size_l_1642b_gg_ .___SAddon_1642b_gg_:not(:only-child):first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SPill_1642b_gg_._size_l_1642b_gg_ .___SAddon_1642b_gg_:not(:only-child):last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SPill_1642b_gg_._neighborLocation_right_1642b_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SPill_1642b_gg_._neighborLocation_both_1642b_gg_{border-radius:0;margin-left:-1px}.___SPill_1642b_gg_._neighborLocation_left_1642b_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}", /*__inner_css_end__*/"1642b_gg_"),
21
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPill_b8y4k_gg_,.___SPills_b8y4k_gg_{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPills_b8y4k_gg_{isolation:isolate}.___SPill_b8y4k_gg_{line-height:normal;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;-webkit-text-decoration:none;text-decoration:none;-webkit-tap-highlight-color:transparent;overflow:visible;text-align:center;vertical-align:middle;font-family:inherit;cursor:pointer;background:var(--intergalactic-bg-primary-neutral, #ffffff);border:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SPill_b8y4k_gg_::-moz-focus-inner{border:0;padding:0}.___SPill_b8y4k_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPill_b8y4k_gg_:hover{background:var(--intergalactic-bg-primary-neutral-hover, #f4f5f9)}}.___SPill_b8y4k_gg_.__selected_b8y4k_gg_{background:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));border-color:var(--intergalactic-border-info-active, #006dca);z-index:2}.___SPill_b8y4k_gg_:active,.___SPill_b8y4k_gg_:focus-visible{z-index:1}@media (hover:hover){.___SPill_b8y4k_gg_:hover{z-index:1}}.___SPill_b8y4k_gg_.__disabled_b8y4k_gg_{cursor:default;pointer-events:none}.___SPill_b8y4k_gg_.__disabled_b8y4k_gg_>*{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SText_b8y4k_gg_{color:var(--intergalactic-text-primary, #191b23);display:inline-flex}.___SAddon_b8y4k_gg_{color:var(--intergalactic-text-secondary, #6c6e79);display:inline-flex;align-items:center;justify-content:center}.___SPill_b8y4k_gg_._size_m_b8y4k_gg_{height:var(--intergalactic-form-control-m, 28px);min-width:var(--intergalactic-form-control-m, 28px);font-size:var(--intergalactic-fs-200, 14px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SText_b8y4k_gg_,.___SPill_b8y4k_gg_._size_m_b8y4k_gg_ .___SText_b8y4k_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_b8y4k_gg_._size_m_b8y4k_gg_ .___SAddon_b8y4k_gg_:not(:only-child):first-child{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SPill_b8y4k_gg_._size_m_b8y4k_gg_ .___SAddon_b8y4k_gg_:not(:only-child):last-child{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_b8y4k_gg_._size_m_b8y4k_gg_ .___SAddon_b8y4k_gg_:only-child{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_{height:var(--intergalactic-form-control-l, 40px);min-width:var(--intergalactic-form-control-l, 40px);font-size:var(--intergalactic-fs-300, 16px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SAddon_b8y4k_gg_:only-child,.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SText_b8y4k_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SAddon_b8y4k_gg_:not(:only-child):first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SAddon_b8y4k_gg_:not(:only-child):last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SPill_b8y4k_gg_._neighborLocation_right_b8y4k_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SPill_b8y4k_gg_._neighborLocation_both_b8y4k_gg_{border-radius:0;margin-left:-1px}.___SPill_b8y4k_gg_._neighborLocation_left_b8y4k_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}", /*__inner_css_end__*/"b8y4k_gg_"),
22
22
  /*__reshadow_css_end__*/
23
23
  {
24
- "__SPills": "___SPills_1642b_gg_",
25
- "__SPill": "___SPill_1642b_gg_",
26
- "_selected": "__selected_1642b_gg_",
27
- "__SText": "___SText_1642b_gg_",
28
- "__SAddon": "___SAddon_1642b_gg_",
29
- "_neighborLocation_right": "_neighborLocation_right_1642b_gg_",
30
- "_neighborLocation_both": "_neighborLocation_both_1642b_gg_",
31
- "_neighborLocation_left": "_neighborLocation_left_1642b_gg_",
32
- "_disabled": "__disabled_1642b_gg_",
33
- "_size_m": "_size_m_1642b_gg_",
34
- "_size_l": "_size_l_1642b_gg_"
24
+ "__SPills": "___SPills_b8y4k_gg_",
25
+ "__SPill": "___SPill_b8y4k_gg_",
26
+ "_selected": "__selected_b8y4k_gg_",
27
+ "__SText": "___SText_b8y4k_gg_",
28
+ "__SAddon": "___SAddon_b8y4k_gg_",
29
+ "_neighborLocation_right": "_neighborLocation_right_b8y4k_gg_",
30
+ "_neighborLocation_both": "_neighborLocation_both_b8y4k_gg_",
31
+ "_neighborLocation_left": "_neighborLocation_left_b8y4k_gg_",
32
+ "_disabled": "__disabled_b8y4k_gg_",
33
+ "_size_m": "_size_m_b8y4k_gg_",
34
+ "_size_l": "_size_l_b8y4k_gg_"
35
35
  });
36
36
  var optionsA11yEnhance = {
37
37
  onNeighborChange: function onNeighborChange(neighborElement, props) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport { NeighborItemProps, NeighborLocationProps } from '@semcore/neighbor-location';\nimport { KeyboardFocusProps } from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';\n\nexport type PillsValue = string | number | boolean | null;\n\n/** @deprecated */\nexport interface IPillsProps<T extends PillsValue = PillsValue>\n extends PillsProps<T>,\n UnknownProperties {}\nexport type PillsProps<T extends PillsValue = PillsValue> = NeighborLocationProps &\n KeyboardFocusProps &\n BoxProps & {\n /** Pills size */\n size?: 'l' | 'm';\n /** Disabled state */\n disabled?: boolean;\n /** Called when the selection is changed */\n onChange?:\n | ((value: T, e?: React.SyntheticEvent<HTMLSpanElement>) => void)\n | React.Dispatch<React.SetStateAction<T>>;\n /** Value for the selected pill */\n value?: T;\n /** Default value for the selected pill */\n defaultValue?: T;\n /** Sets semantic role for corresponding behavior,\n * when set to `auto` pressing left and right arrows\n * selects corresponding sibling pill.\n *\n * It's recommended to use `auto` behavior in forms\n * while `manual` behavior for navigation and layout.\n * @default tabs\n */\n behavior?: /** @deprecated use `manual` */\n | 'tabs'\n /** @deprecated use `auto` */\n | 'radio'\n | 'auto'\n | 'manual';\n };\n\n/** @deprecated */\nexport interface IPillProps extends PillProps, UnknownProperties {}\nexport type PillProps = BoxProps &\n NeighborItemProps &\n KeyboardFocusProps & {\n /** Pill value */\n value?: PillsValue;\n /** Disabled state */\n disabled?: boolean;\n /** Selected state */\n selected?: boolean;\n /** Left addon text */\n addonLeft?: React.ElementType;\n /** Right addon tag */\n addonRight?: React.ElementType;\n };\n\n/** @deprecated */\nexport interface IPillsContext extends PillsContext, UnknownProperties {}\nexport type PillsContext = {\n getItemProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IPillsHandlers extends PillsHandlers, UnknownProperties {}\nexport type PillsHandlers = {\n value: (value: PillsValue) => void;\n};\n\ntype IntergalacticPillsComponent<PropsExtending = {}> = (<\n Value extends PillsValue,\n Tag extends Intergalactic.Tag = 'div',\n>(\n props: Intergalactic.InternalTypings.ComponentProps<\n Tag,\n 'div',\n PillsProps<Value>,\n PillsContext,\n [handlers: PillsHandlers]\n > &\n PropsExtending,\n) => Intergalactic.InternalTypings.ComponentRenderingResults) &\n Intergalactic.InternalTypings.ComponentAdditive<'div', 'div', PillsProps>;\n\ndeclare const Pills: IntergalacticPillsComponent & {\n Item: Intergalactic.Component<'button', PillProps, [handlers: PillsHandlers]> & {\n Text: typeof Box;\n Addon: typeof Box;\n };\n};\n\ndeclare const wrapPills: <PropsExtending extends {}>(\n wrapper: (\n props: Intergalactic.InternalTypings.UntypeRefAndTag<\n Intergalactic.InternalTypings.ComponentPropsNesting<IntergalacticPillsComponent>\n > &\n PropsExtending,\n ) => React.ReactNode,\n) => IntergalacticPillsComponent<PropsExtending>;\nexport { wrapPills };\n\nexport default Pills;\n"],"mappings":""}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport { NeighborItemProps, NeighborLocationProps } from '@semcore/neighbor-location';\n\nexport type PillsValue = string | number | boolean | null;\n\n/** @deprecated */\nexport interface IPillsProps<T extends PillsValue = PillsValue>\n extends PillsProps<T>,\n UnknownProperties {}\nexport type PillsProps<T extends PillsValue = PillsValue> = NeighborLocationProps &\n BoxProps & {\n /** Pills size */\n size?: 'l' | 'm';\n /** Disabled state */\n disabled?: boolean;\n /** Called when the selection is changed */\n onChange?:\n | ((value: T, e?: React.SyntheticEvent<HTMLSpanElement>) => void)\n | React.Dispatch<React.SetStateAction<T>>;\n /** Value for the selected pill */\n value?: T;\n /** Default value for the selected pill */\n defaultValue?: T;\n /** Sets semantic role for corresponding behavior,\n * when set to `auto` pressing left and right arrows\n * selects corresponding sibling pill.\n *\n * It's recommended to use `auto` behavior in forms\n * while `manual` behavior for navigation and layout.\n * @default tabs\n */\n behavior?: /** @deprecated use `manual` */\n | 'tabs'\n /** @deprecated use `auto` */\n | 'radio'\n | 'auto'\n | 'manual';\n };\n\n/** @deprecated */\nexport interface IPillProps extends PillProps, UnknownProperties {}\nexport type PillProps = BoxProps &\n NeighborItemProps & {\n /** Pill value */\n value?: PillsValue;\n /** Disabled state */\n disabled?: boolean;\n /** Selected state */\n selected?: boolean;\n /** Left addon text */\n addonLeft?: React.ElementType;\n /** Right addon tag */\n addonRight?: React.ElementType;\n };\n\n/** @deprecated */\nexport interface IPillsContext extends PillsContext, UnknownProperties {}\nexport type PillsContext = {\n getItemProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IPillsHandlers extends PillsHandlers, UnknownProperties {}\nexport type PillsHandlers = {\n value: (value: PillsValue) => void;\n};\n\ntype IntergalacticPillsComponent<PropsExtending = {}> = (<\n Value extends PillsValue,\n Tag extends Intergalactic.Tag = 'div',\n>(\n props: Intergalactic.InternalTypings.ComponentProps<\n Tag,\n 'div',\n PillsProps<Value>,\n PillsContext,\n [handlers: PillsHandlers]\n > &\n PropsExtending,\n) => Intergalactic.InternalTypings.ComponentRenderingResults) &\n Intergalactic.InternalTypings.ComponentAdditive<'div', 'div', PillsProps>;\n\ndeclare const Pills: IntergalacticPillsComponent & {\n Item: Intergalactic.Component<'button', PillProps, [handlers: PillsHandlers]> & {\n Text: typeof Box;\n Addon: typeof Box;\n };\n};\n\ndeclare const wrapPills: <PropsExtending extends {}>(\n wrapper: (\n props: Intergalactic.InternalTypings.UntypeRefAndTag<\n Intergalactic.InternalTypings.ComponentPropsNesting<IntergalacticPillsComponent>\n > &\n PropsExtending,\n ) => React.ReactNode,\n) => IntergalacticPillsComponent<PropsExtending>;\nexport { wrapPills };\n\nexport default Pills;\n"],"mappings":""}
package/lib/esm/Pills.mjs CHANGED
@@ -17,22 +17,22 @@ var style = (
17
17
  /*__reshadow_css_start__*/
18
18
  (sstyled.insert(
19
19
  /*__inner_css_start__*/
20
- ".___SPill_1642b_gg_,.___SPills_1642b_gg_{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPills_1642b_gg_{isolation:isolate}.___SPill_1642b_gg_{line-height:normal;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;-webkit-text-decoration:none;text-decoration:none;-webkit-tap-highlight-color:transparent;overflow:visible;text-align:center;vertical-align:middle;font-family:inherit;cursor:pointer;background:var(--intergalactic-bg-primary-neutral, #ffffff);border:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SPill_1642b_gg_::-moz-focus-inner{border:0;padding:0}.___SPill_1642b_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPill_1642b_gg_:hover{background:var(--intergalactic-bg-primary-neutral-hover, #f4f5f9)}}.___SPill_1642b_gg_.__selected_1642b_gg_{background:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));border-color:var(--intergalactic-border-info-active, #006dca);z-index:2}.___SPill_1642b_gg_:active,.___SPill_1642b_gg_:focus-visible{z-index:1}@media (hover:hover){.___SPill_1642b_gg_:hover{z-index:1}}.___SPill_1642b_gg_.__disabled_1642b_gg_{cursor:default;pointer-events:none}.___SPill_1642b_gg_.__disabled_1642b_gg_>*{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SText_1642b_gg_{color:var(--intergalactic-text-primary, #191b23);display:inline-flex}.___SAddon_1642b_gg_{color:var(--intergalactic-text-secondary, #6c6e79);display:inline-flex;align-items:center;justify-content:center}.___SPill_1642b_gg_._size_m_1642b_gg_{height:var(--intergalactic-form-control-m, 28px);min-width:var(--intergalactic-form-control-m, 28px);font-size:var(--intergalactic-fs-200, 14px)}.___SPill_1642b_gg_._size_l_1642b_gg_ .___SText_1642b_gg_,.___SPill_1642b_gg_._size_m_1642b_gg_ .___SText_1642b_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_1642b_gg_._size_m_1642b_gg_ .___SAddon_1642b_gg_:not(:only-child):first-child{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SPill_1642b_gg_._size_m_1642b_gg_ .___SAddon_1642b_gg_:not(:only-child):last-child{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_1642b_gg_._size_m_1642b_gg_ .___SAddon_1642b_gg_:only-child{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_1642b_gg_._size_l_1642b_gg_{height:var(--intergalactic-form-control-l, 40px);min-width:var(--intergalactic-form-control-l, 40px);font-size:var(--intergalactic-fs-300, 16px)}.___SPill_1642b_gg_._size_l_1642b_gg_ .___SAddon_1642b_gg_:only-child,.___SPill_1642b_gg_._size_l_1642b_gg_ .___SText_1642b_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SPill_1642b_gg_._size_l_1642b_gg_ .___SAddon_1642b_gg_:not(:only-child):first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SPill_1642b_gg_._size_l_1642b_gg_ .___SAddon_1642b_gg_:not(:only-child):last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SPill_1642b_gg_._neighborLocation_right_1642b_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SPill_1642b_gg_._neighborLocation_both_1642b_gg_{border-radius:0;margin-left:-1px}.___SPill_1642b_gg_._neighborLocation_left_1642b_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}",
20
+ ".___SPill_b8y4k_gg_,.___SPills_b8y4k_gg_{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPills_b8y4k_gg_{isolation:isolate}.___SPill_b8y4k_gg_{line-height:normal;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;-webkit-text-decoration:none;text-decoration:none;-webkit-tap-highlight-color:transparent;overflow:visible;text-align:center;vertical-align:middle;font-family:inherit;cursor:pointer;background:var(--intergalactic-bg-primary-neutral, #ffffff);border:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SPill_b8y4k_gg_::-moz-focus-inner{border:0;padding:0}.___SPill_b8y4k_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPill_b8y4k_gg_:hover{background:var(--intergalactic-bg-primary-neutral-hover, #f4f5f9)}}.___SPill_b8y4k_gg_.__selected_b8y4k_gg_{background:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));border-color:var(--intergalactic-border-info-active, #006dca);z-index:2}.___SPill_b8y4k_gg_:active,.___SPill_b8y4k_gg_:focus-visible{z-index:1}@media (hover:hover){.___SPill_b8y4k_gg_:hover{z-index:1}}.___SPill_b8y4k_gg_.__disabled_b8y4k_gg_{cursor:default;pointer-events:none}.___SPill_b8y4k_gg_.__disabled_b8y4k_gg_>*{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SText_b8y4k_gg_{color:var(--intergalactic-text-primary, #191b23);display:inline-flex}.___SAddon_b8y4k_gg_{color:var(--intergalactic-text-secondary, #6c6e79);display:inline-flex;align-items:center;justify-content:center}.___SPill_b8y4k_gg_._size_m_b8y4k_gg_{height:var(--intergalactic-form-control-m, 28px);min-width:var(--intergalactic-form-control-m, 28px);font-size:var(--intergalactic-fs-200, 14px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SText_b8y4k_gg_,.___SPill_b8y4k_gg_._size_m_b8y4k_gg_ .___SText_b8y4k_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_b8y4k_gg_._size_m_b8y4k_gg_ .___SAddon_b8y4k_gg_:not(:only-child):first-child{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SPill_b8y4k_gg_._size_m_b8y4k_gg_ .___SAddon_b8y4k_gg_:not(:only-child):last-child{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_b8y4k_gg_._size_m_b8y4k_gg_ .___SAddon_b8y4k_gg_:only-child{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_{height:var(--intergalactic-form-control-l, 40px);min-width:var(--intergalactic-form-control-l, 40px);font-size:var(--intergalactic-fs-300, 16px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SAddon_b8y4k_gg_:only-child,.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SText_b8y4k_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SAddon_b8y4k_gg_:not(:only-child):first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SPill_b8y4k_gg_._size_l_b8y4k_gg_ .___SAddon_b8y4k_gg_:not(:only-child):last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SPill_b8y4k_gg_._neighborLocation_right_b8y4k_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SPill_b8y4k_gg_._neighborLocation_both_b8y4k_gg_{border-radius:0;margin-left:-1px}.___SPill_b8y4k_gg_._neighborLocation_left_b8y4k_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}",
21
21
  /*__inner_css_end__*/
22
- "1642b_gg_"
22
+ "b8y4k_gg_"
23
23
  ), /*__reshadow_css_end__*/
24
24
  {
25
- "__SPills": "___SPills_1642b_gg_",
26
- "__SPill": "___SPill_1642b_gg_",
27
- "_selected": "__selected_1642b_gg_",
28
- "__SText": "___SText_1642b_gg_",
29
- "__SAddon": "___SAddon_1642b_gg_",
30
- "_neighborLocation_right": "_neighborLocation_right_1642b_gg_",
31
- "_neighborLocation_both": "_neighborLocation_both_1642b_gg_",
32
- "_neighborLocation_left": "_neighborLocation_left_1642b_gg_",
33
- "_disabled": "__disabled_1642b_gg_",
34
- "_size_m": "_size_m_1642b_gg_",
35
- "_size_l": "_size_l_1642b_gg_"
25
+ "__SPills": "___SPills_b8y4k_gg_",
26
+ "__SPill": "___SPill_b8y4k_gg_",
27
+ "_selected": "__selected_b8y4k_gg_",
28
+ "__SText": "___SText_b8y4k_gg_",
29
+ "__SAddon": "___SAddon_b8y4k_gg_",
30
+ "_neighborLocation_right": "_neighborLocation_right_b8y4k_gg_",
31
+ "_neighborLocation_both": "_neighborLocation_both_b8y4k_gg_",
32
+ "_neighborLocation_left": "_neighborLocation_left_b8y4k_gg_",
33
+ "_disabled": "__disabled_b8y4k_gg_",
34
+ "_size_m": "_size_m_b8y4k_gg_",
35
+ "_size_l": "_size_l_b8y4k_gg_"
36
36
  })
37
37
  );
38
38
  var optionsA11yEnhance = {
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';
3
3
  import { Box, BoxProps } from '@semcore/flex-box';
4
4
  import { NeighborItemProps, NeighborLocationProps } from '@semcore/neighbor-location';
5
- import { KeyboardFocusProps } from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';
6
5
 
7
6
  export type PillsValue = string | number | boolean | null;
8
7
 
@@ -11,7 +10,6 @@ export interface IPillsProps<T extends PillsValue = PillsValue>
11
10
  extends PillsProps<T>,
12
11
  UnknownProperties {}
13
12
  export type PillsProps<T extends PillsValue = PillsValue> = NeighborLocationProps &
14
- KeyboardFocusProps &
15
13
  BoxProps & {
16
14
  /** Pills size */
17
15
  size?: 'l' | 'm';
@@ -44,8 +42,7 @@ export type PillsProps<T extends PillsValue = PillsValue> = NeighborLocationProp
44
42
  /** @deprecated */
45
43
  export interface IPillProps extends PillProps, UnknownProperties {}
46
44
  export type PillProps = BoxProps &
47
- NeighborItemProps &
48
- KeyboardFocusProps & {
45
+ NeighborItemProps & {
49
46
  /** Pill value */
50
47
  value?: PillsValue;
51
48
  /** Disabled state */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/pills",
3
3
  "description": "Semrush Pills Component",
4
- "version": "16.0.0",
4
+ "version": "16.0.1-prerelease.2",
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
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/flex-box": "16.0.0",
18
- "@semcore/neighbor-location": "16.0.0"
17
+ "@semcore/flex-box": "16.0.1-prerelease.2",
18
+ "@semcore/neighbor-location": "16.0.1-prerelease.2"
19
19
  },
20
20
  "peerDependencies": {
21
- "@semcore/base-components": "^16.0.0"
21
+ "@semcore/base-components": "^16.0.1-prerelease.2"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",