@rescui/chip-list 0.14.0 → 0.14.1-RUI-296-Build-docs-md-files-for-each-docs-section-b138dd5bf.19

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.
@@ -1,27 +1,27 @@
1
1
  var styles = {
2
- "light": "_light_13vk6i6_8",
3
- "dark": "_dark_13vk6i6_11",
4
- "alignLeft": "_alignLeft_13vk6i6_15",
5
- "alignCenter": "_alignCenter_13vk6i6_18",
6
- "alignRight": "_alignRight_13vk6i6_21",
7
- "sizeXs": "_sizeXs_13vk6i6_25",
8
- "sizeS": "_sizeS_13vk6i6_28",
9
- "sizeM": "_sizeM_13vk6i6_31",
10
- "sizeL": "_sizeL_13vk6i6_34",
11
- "innerOffsetL": "_innerOffsetL_13vk6i6_38",
12
- "innerOffsetM": "_innerOffsetM_13vk6i6_41",
13
- "classic": "_classic_13vk6i6_45",
14
- "rock": "_rock_13vk6i6_48",
15
- "compact": "_compact_13vk6i6_52",
16
- "main": "_main_13vk6i6_56",
17
- "chipsContainer": "_chipsContainer_13vk6i6_62",
18
- "alignIconLeft": "_alignIconLeft_13vk6i6_72",
19
- "alignIconRight": "_alignIconRight_13vk6i6_75",
20
- "chip": "_chip_13vk6i6_62",
21
- "selected": "_selected_13vk6i6_176",
22
- "disabled": "_disabled_13vk6i6_183",
23
- "icon": "_icon_13vk6i6_216",
24
- "hiddenInput": "_hiddenInput_13vk6i6_227",
25
- "withoutText": "_withoutText_13vk6i6_244"
2
+ "light": "_light_mzvq1u_8",
3
+ "dark": "_dark_mzvq1u_11",
4
+ "alignLeft": "_alignLeft_mzvq1u_15",
5
+ "alignCenter": "_alignCenter_mzvq1u_18",
6
+ "alignRight": "_alignRight_mzvq1u_21",
7
+ "sizeXs": "_sizeXs_mzvq1u_25",
8
+ "sizeS": "_sizeS_mzvq1u_28",
9
+ "sizeM": "_sizeM_mzvq1u_31",
10
+ "sizeL": "_sizeL_mzvq1u_34",
11
+ "innerOffsetL": "_innerOffsetL_mzvq1u_38",
12
+ "innerOffsetM": "_innerOffsetM_mzvq1u_41",
13
+ "classic": "_classic_mzvq1u_45",
14
+ "rock": "_rock_mzvq1u_48",
15
+ "compact": "_compact_mzvq1u_52",
16
+ "main": "_main_mzvq1u_56",
17
+ "chipsContainer": "_chipsContainer_mzvq1u_62",
18
+ "alignIconLeft": "_alignIconLeft_mzvq1u_72",
19
+ "alignIconRight": "_alignIconRight_mzvq1u_75",
20
+ "chip": "_chip_mzvq1u_62",
21
+ "selected": "_selected_mzvq1u_176",
22
+ "disabled": "_disabled_mzvq1u_183",
23
+ "icon": "_icon_mzvq1u_216",
24
+ "hiddenInput": "_hiddenInput_mzvq1u_227",
25
+ "withoutText": "_withoutText_mzvq1u_244"
26
26
  };
27
27
  export { styles as default };
@@ -1,36 +1,36 @@
1
- import React from 'react';
2
- import { ChipIconPosition } from './types';
3
- declare type InheritType<Main, Parent> = Main & Omit<Parent, keyof Main>;
4
- export declare type ChipOwnProps = {
5
- className?: string;
6
- /**
7
- * Chip value
8
- * @type ValueType
9
- */
10
- value?: unknown;
11
- /** @ignore */
12
- itemId?: number;
13
- /** @ignore */
14
- onClick?: React.MouseEventHandler<HTMLElement>;
15
- /** @ignore */
16
- onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
17
- /** Identifier for e2e tests */
18
- 'data-e2e'?: string;
19
- /** Href for link-type Chip */
20
- href?: string;
21
- children?: React.ReactNode;
22
- } & ({
23
- /** Additional icon */
24
- icon: React.ReactNode;
25
- /** Additional icon position */
26
- iconPosition?: ChipIconPosition;
27
- } | {
28
- icon?: never;
29
- iconPosition?: never;
30
- });
31
- declare type ChipLabelProps = InheritType<ChipOwnProps, React.LabelHTMLAttributes<HTMLLabelElement>>;
32
- declare type ChipButtonProps = InheritType<ChipOwnProps, React.ButtonHTMLAttributes<HTMLButtonElement>>;
33
- declare type ChipAnchorProps = InheritType<ChipOwnProps, React.AnchorHTMLAttributes<HTMLAnchorElement>>;
34
- export declare type ChipProps = ChipLabelProps | ChipButtonProps | ChipAnchorProps;
35
- declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLLabelElement | HTMLButtonElement | HTMLAnchorElement>>;
36
- export default Chip;
1
+ import React from 'react';
2
+ import { ChipIconPosition } from './types';
3
+ type InheritType<Main, Parent> = Main & Omit<Parent, keyof Main>;
4
+ export type ChipOwnProps = {
5
+ className?: string;
6
+ /**
7
+ * Chip value
8
+ * @type ValueType
9
+ */
10
+ value?: unknown;
11
+ /** @ignore */
12
+ itemId?: number;
13
+ /** @ignore */
14
+ onClick?: React.MouseEventHandler<HTMLElement>;
15
+ /** @ignore */
16
+ onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
17
+ /** Identifier for e2e tests */
18
+ 'data-e2e'?: string;
19
+ /** Href for link-type Chip */
20
+ href?: string;
21
+ children?: React.ReactNode;
22
+ } & ({
23
+ /** Additional icon */
24
+ icon: React.ReactNode;
25
+ /** Additional icon position */
26
+ iconPosition?: ChipIconPosition;
27
+ } | {
28
+ icon?: never;
29
+ iconPosition?: never;
30
+ });
31
+ type ChipLabelProps = InheritType<ChipOwnProps, React.LabelHTMLAttributes<HTMLLabelElement>>;
32
+ type ChipButtonProps = InheritType<ChipOwnProps, React.ButtonHTMLAttributes<HTMLButtonElement>>;
33
+ type ChipAnchorProps = InheritType<ChipOwnProps, React.AnchorHTMLAttributes<HTMLAnchorElement>>;
34
+ export type ChipProps = ChipLabelProps | ChipButtonProps | ChipAnchorProps;
35
+ declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLLabelElement | HTMLButtonElement | HTMLAnchorElement>>;
36
+ export default Chip;
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare function deepMap(children: React.ReactNode, fn: (child: React.ReactNode) => React.ReactNode): React.ReactNode;
1
+ import React from 'react';
2
+ export declare function deepMap(children: React.ReactNode, fn: (child: React.ReactNode) => React.ReactNode): React.ReactNode;
@@ -1,19 +1,19 @@
1
- import type React from 'react';
2
- export declare type ChipListSizeType = 'l' | 'm' | 's' | 'xs';
3
- export declare type ChipListModeType = 'classic' | 'rock';
4
- export declare type ChipListAlignItemsType = 'left' | 'center' | 'right';
5
- export declare type ChipListResolvedPatternType = 'radiogroup' | 'group' | 'navigation' | 'tablist';
6
- export declare type ChipListPatternType = 'radiogroup' | 'navigation' | 'tablist' | 'auto';
7
- export declare type ChipListBasePatternType = ChipListPatternType | 'group';
8
- export declare type ChipIconPosition = 'left' | 'right';
9
- export declare type ChipListContextType<V> = {
10
- onChange: (value: V) => void;
11
- selectedIds?: number[];
12
- disabled?: boolean;
13
- pattern?: ChipListResolvedPatternType;
14
- name?: string;
15
- rovingTabIndex?: {
16
- currentTabStopId: number;
17
- onTabKeyDown: (e: React.KeyboardEvent<HTMLElement>, itemId: number) => void;
18
- };
19
- };
1
+ import type React from 'react';
2
+ export type ChipListSizeType = 'l' | 'm' | 's' | 'xs';
3
+ export type ChipListModeType = 'classic' | 'rock';
4
+ export type ChipListAlignItemsType = 'left' | 'center' | 'right';
5
+ export type ChipListResolvedPatternType = 'radiogroup' | 'group' | 'navigation' | 'tablist';
6
+ export type ChipListPatternType = 'radiogroup' | 'navigation' | 'tablist' | 'auto';
7
+ export type ChipListBasePatternType = ChipListPatternType | 'group';
8
+ export type ChipIconPosition = 'left' | 'right';
9
+ export type ChipListContextType<V> = {
10
+ onChange: (value: V) => void;
11
+ selectedIds?: number[];
12
+ disabled?: boolean;
13
+ pattern?: ChipListResolvedPatternType;
14
+ name?: string;
15
+ rovingTabIndex?: {
16
+ currentTabStopId: number;
17
+ onTabKeyDown: (e: React.KeyboardEvent<HTMLElement>, itemId: number) => void;
18
+ };
19
+ };
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- export declare type UseItemsIdsOpts<V> = {
3
- children: React.ReactNode;
4
- compareValues: (activeValue: V[], value: V) => boolean;
5
- value: V[];
6
- };
7
- export declare const useItemsIds: <V>({ children, compareValues, value }: UseItemsIdsOpts<V>) => {
8
- childrenWithValues: (string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal)[];
9
- selectedIds: number[];
10
- hasHref: boolean;
11
- hasControls: boolean;
12
- allItemsHaveControls: boolean;
13
- tabRefs: React.MutableRefObject<Map<number, HTMLElement>>;
14
- };
1
+ import React from 'react';
2
+ export type UseItemsIdsOpts<V> = {
3
+ children: React.ReactNode;
4
+ compareValues: (activeValue: V[], value: V) => boolean;
5
+ value: V[];
6
+ };
7
+ export declare const useItemsIds: <V>({ children, compareValues, value }: UseItemsIdsOpts<V>) => {
8
+ childrenWithValues: (string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>>)[];
9
+ selectedIds: number[];
10
+ hasHref: boolean;
11
+ hasControls: boolean;
12
+ allItemsHaveControls: boolean;
13
+ tabRefs: React.RefObject<Map<number, HTMLElement>>;
14
+ };
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- export declare const useRovingTabIndex: ({ enabled, selectedId, tabRefs }: {
3
- enabled: boolean;
4
- selectedId?: number;
5
- tabRefs?: React.MutableRefObject<Map<number, HTMLElement>>;
6
- }) => {
7
- currentTabStopId: number;
8
- onTabKeyDown: (e: React.KeyboardEvent<HTMLElement>, itemId: number) => void;
9
- };
1
+ import React from 'react';
2
+ export declare const useRovingTabIndex: ({ enabled, selectedId, tabRefs }: {
3
+ enabled: boolean;
4
+ selectedId?: number;
5
+ tabRefs?: React.MutableRefObject<Map<number, HTMLElement>>;
6
+ }) => {
7
+ currentTabStopId: number;
8
+ onTabKeyDown: (e: React.KeyboardEvent<HTMLElement>, itemId: number) => void;
9
+ };
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare const useSafeId: typeof React.useId;
1
+ import React from 'react';
2
+ export declare const useSafeId: typeof React.useId;