@useblu/ocean-react 1.115.0 → 1.117.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.117.0](https://github.com/ocean-ds/ocean-web/compare/v1.116.0...v1.117.0) (2025-12-08)
7
+
8
+ ### Features
9
+
10
+ - create list action ([#1204](https://github.com/ocean-ds/ocean-web/issues/1204)) ([e1ccd7e](https://github.com/ocean-ds/ocean-web/commit/e1ccd7ed29bf4da881081db93123d19ec1cc5511))
11
+
12
+ # [1.116.0](https://github.com/ocean-ds/ocean-web/compare/v1.115.0...v1.116.0) (2025-12-08)
13
+
14
+ ### Features
15
+
16
+ - create text list selectable component ([#1199](https://github.com/ocean-ds/ocean-web/issues/1199)) ([b92601d](https://github.com/ocean-ds/ocean-web/commit/b92601d0702cc23c58b9ad749ab5f097c4d4051f))
17
+
6
18
  # [1.115.0](https://github.com/ocean-ds/ocean-web/compare/v1.114.0...v1.115.0) (2025-12-04)
7
19
 
8
20
  ### Features
@@ -1,13 +1,14 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { ContentListProps } from '../_shared/components/ContentList';
3
3
  import { ActionItem } from '../_shared/components/InternalListActions';
4
- export type CardListActionProps = {
4
+ export type ListActionProps = {
5
5
  title: string;
6
6
  description?: string;
7
7
  strikethroughDescription?: string;
8
8
  caption?: string;
9
9
  inverted?: boolean;
10
- type?: ContentListProps['type'];
10
+ type?: 'card' | 'text';
11
+ status?: ContentListProps['type'];
11
12
  disabled?: boolean;
12
13
  loading?: boolean;
13
14
  icon?: ReactNode;
@@ -16,14 +17,16 @@ export type CardListActionProps = {
16
17
  menuActions?: ActionItem[];
17
18
  menuPosition?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
18
19
  onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
20
+ showDivider?: boolean;
19
21
  } & Omit<React.ComponentPropsWithoutRef<'button'>, 'type'>;
20
- declare const CardListAction: React.ForwardRefExoticComponent<{
22
+ declare const ListAction: React.ForwardRefExoticComponent<{
21
23
  title: string;
22
24
  description?: string;
23
25
  strikethroughDescription?: string;
24
26
  caption?: string;
25
27
  inverted?: boolean;
26
- type?: ContentListProps["type"];
28
+ type?: "card" | "text";
29
+ status?: ContentListProps["type"];
27
30
  disabled?: boolean;
28
31
  loading?: boolean;
29
32
  icon?: ReactNode;
@@ -32,6 +35,7 @@ declare const CardListAction: React.ForwardRefExoticComponent<{
32
35
  menuActions?: ActionItem[];
33
36
  menuPosition?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
34
37
  onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
38
+ showDivider?: boolean;
35
39
  } & Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>>, "type"> & React.RefAttributes<HTMLButtonElement>>;
36
- export default CardListAction;
37
- //# sourceMappingURL=CardListAction.d.ts.map
40
+ export default ListAction;
41
+ //# sourceMappingURL=ListAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListAction.d.ts","sourceRoot":"","sources":["../../src/ListAction/ListAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAoB,EAClB,gBAAgB,EACjB,MAAM,mCAAmC,CAAC;AAE3C,OAA4B,EAC1B,UAAU,EACX,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG;IAI5B,KAAK,EAAE,MAAM,CAAC;IAId,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAIlC,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAKnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAKvB,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAKlC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAKnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAIlB,IAAI,CAAC,EAAE,SAAS,CAAC;IAIjB,SAAS,CAAC,EAAE,SAAS,CAAC;IAKtB,UAAU,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAI1C,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAK3B,YAAY,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,CAAC;IAIzE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAK/D,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;AAE3D,QAAA,MAAM,UAAU;WAvEP,MAAM;kBAIC,MAAM;+BAIO,MAAM;cAIvB,MAAM;eAKL,OAAO;WAKX,MAAM,GAAG,MAAM;aAKb,gBAAgB,CAAC,MAAM,CAAC;eAKtB,OAAO;cAKR,OAAO;WAIV,SAAS;gBAIJ,SAAS;iBAKR,SAAS,GAAG,MAAM,GAAG,OAAO;kBAI3B,UAAU,EAAE;mBAKX,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW;cAI9D,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI;kBAKhD,OAAO;wNA+GtB,CAAC;AAIF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default } from './ListAction';
2
+ export type { ListActionProps } from './ListAction';
3
+ export type { ActionItem } from '../_shared/components/InternalListActions';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ListAction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC"}
@@ -0,0 +1,24 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { ContentListProps } from '../_shared/components/ContentList/ContentList';
3
+ import { CheckboxProps } from '../Checkbox/Checkbox';
4
+ import { RadioProps } from '../Radio/Radio';
5
+ interface ListSelectableProps {
6
+ title: string;
7
+ description?: string;
8
+ caption?: string;
9
+ strikethroughDescription?: string;
10
+ inverted?: boolean;
11
+ loading?: boolean;
12
+ disabled?: boolean;
13
+ checkbox?: CheckboxProps;
14
+ radio?: RadioProps;
15
+ className?: string;
16
+ showDivider?: boolean;
17
+ indicator?: ReactNode;
18
+ status?: ContentListProps['type'];
19
+ type?: 'card' | 'text';
20
+ platform?: 'web' | 'app';
21
+ }
22
+ declare const ListSelectable: React.ForwardRefExoticComponent<ListSelectableProps & React.RefAttributes<HTMLDivElement>>;
23
+ export default ListSelectable;
24
+ //# sourceMappingURL=ListSelectable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListSelectable.d.ts","sourceRoot":"","sources":["../../src/ListSelectable/ListSelectable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAElD,OAAoB,EAClB,gBAAgB,EACjB,MAAM,+CAA+C,CAAC;AACvD,OAAiB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGnD,UAAU,mBAAmB;IAE3B,KAAK,EAAE,MAAM,CAAC;IAEd,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,CAAC,EAAE,aAAa,CAAC;IAEzB,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAElC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB,QAAQ,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;CAC1B;AAED,QAAA,MAAM,cAAc,4FAmGnB,CAAC;AAGF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ListSelectable';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ListSelectable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
package/Radio/Radio.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  export type RadioProps = {
3
3
  label?: React.ReactNode;
4
+ error?: boolean;
4
5
  } & React.ComponentPropsWithoutRef<'input'>;
5
6
  declare const Radio: React.ForwardRefExoticComponent<{
6
7
  label?: React.ReactNode;
8
+ error?: boolean;
7
9
  } & Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
8
10
  export default Radio;
9
11
  //# sourceMappingURL=Radio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,UAAU,GAAG;IAIvB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAE5C,QAAA,MAAM,KAAK;YAHD,KAAK,CAAC,SAAS;oMAqBxB,CAAC;AAIF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,UAAU,GAAG;IAIvB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAE5C,QAAA,MAAM,KAAK;YAJD,KAAK,CAAC,SAAS;YACf,OAAO;oMAyBhB,CAAC;AAIF,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsListItem.d.ts","sourceRoot":"","sources":["../../src/SettingsListItem/SettingsListItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAe,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAI3C,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,GAAG,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AS,GAAG,UAAU,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,gBAAgB,GAAI,6IAcvB,oBAAoB,KAAG,YA0CzB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentList.d.ts","sourceRoot":"","sources":["../../../../src/_shared/components/ContentList/ContentList.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EACH,SAAS,GACT,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,GACX,gBAAgB,GAChB,eAAe,CAAC;CACnB,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,4EAOlB,gBAAgB,KAAG,YA4CrB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"ContentList.d.ts","sourceRoot":"","sources":["../../../../src/_shared/components/ContentList/ContentList.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EACD,SAAS,GACT,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,GACX,gBAAgB,GAChB,eAAe,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,4EAOlB,gBAAgB,KAAG,YA4CrB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InternalListActions.d.ts","sourceRoot":"","sources":["../../../../src/_shared/components/InternalListActions/InternalListActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAA4B,UAAU,EAAE,MAAM,SAAS,CAAC;AAK/D,QAAA,MAAM,mBAAmB;;;;;oMAgHxB,CAAC;AAIF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"InternalListActions.d.ts","sourceRoot":"","sources":["../../../../src/_shared/components/InternalListActions/InternalListActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAA4B,UAAU,EAAE,MAAM,SAAS,CAAC;AAK/D,QAAA,MAAM,mBAAmB;;;;;oMAoHxB,CAAC;AAIF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DragHandle.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/components/DragHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAEtC,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;CAC7C;AAKD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8DzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"DragHandle.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/components/DragHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAEtC,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;CAC7C;AAKD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4EzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/components/MenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAGzD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItC,UAAU,aAAa;IACrB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC3C,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,QAAQ,EAAE,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,CAAC;IACpE,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mBAAmB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IACtD,cAAc,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACrC;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA0FrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/components/MenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAGzD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItC,UAAU,aAAa;IACrB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC3C,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,QAAQ,EAAE,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,CAAC;IACpE,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mBAAmB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IACtD,cAAc,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACrC;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA2FrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TriggerButton.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/components/TriggerButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,kBAAkB;IAC1B,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/C,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyC/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"TriggerButton.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/components/TriggerButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,kBAAkB;IAC1B,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/C,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuD/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
package/index.d.ts CHANGED
@@ -34,6 +34,8 @@ export { default as Link } from './Link';
34
34
  export * from './Link';
35
35
  export { default as TextArea } from './TextArea';
36
36
  export * from './TextArea';
37
+ export { default as ListSelectable } from './ListSelectable';
38
+ export * from './ListSelectable';
37
39
  export { default as TextListItem } from './TextListItem';
38
40
  export * from './TextListItem';
39
41
  export { default as Select } from './Select/Select';
@@ -82,6 +84,6 @@ export { default as WebNotification } from './WebNotification';
82
84
  export * from './WebNotification';
83
85
  export { default as SettingsListItem } from './SettingsListItem';
84
86
  export * from './SettingsListItem';
85
- export { default as CardListAction } from './CardListAction';
86
- export * from './CardListAction';
87
+ export { default as ListAction } from './ListAction';
88
+ export * from './ListAction';
87
89
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AACvC,cAAc,OAAO,CAAC;AAEtB,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,cAAc,aAAa,CAAC;AAE5B,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,cAAc,uBAAuB,CAAC;AAEtC,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,q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O,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACxD,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACzD,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,cAAc,cAAc,CAAC"}
package/index.es.js CHANGED
@@ -5344,10 +5344,12 @@ var Checkbox = e.forwardRef(function (_a, ref) {
5344
5344
  Checkbox.displayName = 'Checkbox';
5345
5345
 
5346
5346
  var Radio = e.forwardRef(function (_a, ref) {
5347
- var className = _a.className, label = _a.label, id = _a.id, rest = __rest$1(_a, ["className", "label", "id"]);
5347
+ var className = _a.className, label = _a.label, id = _a.id, error = _a.error, rest = __rest$1(_a, ["className", "label", "id", "error"]);
5348
5348
  return (e.createElement("label", { className: "ods-radio__root", htmlFor: id },
5349
5349
  e.createElement("input", __assign$1({ ref: ref, id: id, className: classNames('ods-radio', className) }, rest, { type: "radio" })),
5350
- e.createElement("span", { className: "ods-radio__checkmark" }),
5350
+ e.createElement("span", { className: classNames('ods-radio__checkmark', {
5351
+ 'ods-radio__checkmark--error': error,
5352
+ }) }),
5351
5353
  label && (e.createElement("span", { className: "ods-typography ods-typography__description ods-radio__label" }, label))));
5352
5354
  });
5353
5355
  Radio.displayName = 'Radio';
@@ -5364,6 +5366,79 @@ var TextArea = e.forwardRef(function (_a, ref) {
5364
5366
  });
5365
5367
  TextArea.displayName = 'TextArea';
5366
5368
 
5369
+ var ContentList = function (_a) {
5370
+ var _b, _c, _d;
5371
+ var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, _e = _a.inverted, inverted = _e === void 0 ? false : _e, _f = _a.type, type = _f === void 0 ? 'default' : _f;
5372
+ return (e.createElement("div", { className: "ods-content-list" },
5373
+ e.createElement("p", { className: classNames('ods-typography', (_b = {
5374
+ 'ods-typography__paragraph': !inverted,
5375
+ 'ods-typography__description': inverted
5376
+ },
5377
+ _b["ods-typography__paragraph--".concat(type)] = type && (!inverted || type === 'inactive'),
5378
+ _b)) },
5379
+ strikethroughDescription && type === 'strikethrough' && !inverted && (e.createElement("span", { className: "ods-typography__paragraph--strikethrough-text" }, strikethroughDescription)),
5380
+ title),
5381
+ description && (e.createElement("p", { className: classNames("ods-typography", (_c = {
5382
+ 'ods-typography__description': !inverted,
5383
+ 'ods-typography__paragraph': inverted
5384
+ },
5385
+ _c["ods-typography__paragraph--".concat(type)] = type && (inverted || type === 'inactive'),
5386
+ _c)) },
5387
+ strikethroughDescription && type === 'strikethrough' && inverted && (e.createElement("span", { className: "ods-typography__paragraph--strikethrough-text" }, strikethroughDescription)),
5388
+ description)),
5389
+ caption && (e.createElement("p", { className: classNames("ods-typography ods-typography__captionbold", (_d = {},
5390
+ _d["ods-typography__paragraph--".concat(type)] = type && type === 'inactive',
5391
+ _d)) }, caption))));
5392
+ };
5393
+
5394
+ var SkeletonBar = function (_a) {
5395
+ var width = _a.width, height = _a.height, props = __rest$1(_a, ["width", "height"]);
5396
+ return (e.createElement("div", __assign$1({ className: "ods-skeleton-bar", style: { width: width, height: height } }, props)));
5397
+ };
5398
+
5399
+ var ListSelectable = e.forwardRef(function (_a, ref) {
5400
+ var _b, _c;
5401
+ var title = _a.title, description = _a.description, caption = _a.caption, strikethroughDescription = _a.strikethroughDescription, inverted = _a.inverted, loading = _a.loading, disabled = _a.disabled, checkbox = _a.checkbox, radio = _a.radio, className = _a.className, showDivider = _a.showDivider, indicator = _a.indicator, _d = _a.status, status = _d === void 0 ? 'default' : _d, _e = _a.type, type = _e === void 0 ? 'card' : _e, _f = _a.platform, platform = _f === void 0 ? 'web' : _f, rest = __rest$1(_a, ["title", "description", "caption", "strikethroughDescription", "inverted", "loading", "disabled", "checkbox", "radio", "className", "showDivider", "indicator", "status", "type", "platform"]);
5402
+ var hasError = useMemo(function () { return (radio === null || radio === void 0 ? void 0 : radio.error) || (checkbox === null || checkbox === void 0 ? void 0 : checkbox.error); }, [radio === null || radio === void 0 ? void 0 : radio.error, checkbox === null || checkbox === void 0 ? void 0 : checkbox.error]);
5403
+ var isInputDisabled = useMemo(function () { return (radio === null || radio === void 0 ? void 0 : radio.disabled) || (checkbox === null || checkbox === void 0 ? void 0 : checkbox.disabled) || disabled; }, [radio === null || radio === void 0 ? void 0 : radio.disabled, checkbox === null || checkbox === void 0 ? void 0 : checkbox.disabled, disabled]);
5404
+ var internalList = useMemo(function () {
5405
+ var _a;
5406
+ return (e.createElement(e.Fragment, null,
5407
+ e.createElement(ContentList, { title: title, description: description, strikethroughDescription: strikethroughDescription, caption: caption, inverted: inverted, type: disabled ? 'inactive' : status }),
5408
+ indicator && (e.createElement("div", { className: classNames('ods-list-selectable__indicator', (_a = {},
5409
+ _a["ods-list-selectable__indicator--".concat(platform)] = platform,
5410
+ _a)) }, indicator))));
5411
+ }, [
5412
+ title,
5413
+ description,
5414
+ caption,
5415
+ strikethroughDescription,
5416
+ inverted,
5417
+ status,
5418
+ indicator,
5419
+ disabled,
5420
+ platform,
5421
+ ]);
5422
+ if (loading) {
5423
+ return (e.createElement("div", { className: "ods-list-selectable--loading" },
5424
+ e.createElement(SkeletonBar, { width: "40%", height: "16px" }),
5425
+ e.createElement(SkeletonBar, { width: "100%", height: "16px" })));
5426
+ }
5427
+ return (e.createElement("div", { className: classNames('ods-list-selectable__root', (_b = {},
5428
+ _b["ods-list-selectable__root--".concat(type)] = type,
5429
+ _b["ods-list-selectable__root--".concat(type, "--error")] = hasError,
5430
+ _b)) },
5431
+ e.createElement("div", __assign$1({ className: classNames('ods-list-selectable', className, (_c = {
5432
+ 'ods-list-selectable--disabled': isInputDisabled
5433
+ },
5434
+ _c["ods-list-selectable--".concat(platform)] = platform,
5435
+ _c)), ref: ref }, rest),
5436
+ checkbox && e.createElement(Checkbox, __assign$1({}, checkbox, { label: internalList })),
5437
+ radio && e.createElement(Radio, __assign$1({}, radio, { label: internalList }))),
5438
+ showDivider && type === 'text' && (e.createElement("div", { className: "ods-list-selectable__root--text--divider" }))));
5439
+ });
5440
+ ListSelectable.displayName = 'ListSelectable';
5441
+
5367
5442
  var TextListItem = e.forwardRef(function (_a, ref) {
5368
5443
  var title = _a.title, description = _a.description, caption = _a.caption, tagLabel = _a.tagLabel, infoText = _a.infoText, _b = _a.infoTextType, infoTextType = _b === void 0 ? 'neutral' : _b, withAction = _a.withAction, onActionClick = _a.onActionClick, checkbox = _a.checkbox, radio = _a.radio, disabled = _a.disabled, className = _a.className, rest = __rest$1(_a, ["title", "description", "caption", "tagLabel", "infoText", "infoTextType", "withAction", "onActionClick", "checkbox", "radio", "disabled", "className"]);
5369
5444
  var buttonElementRef = useRef(null);
@@ -47103,36 +47178,6 @@ var WebNotification = e.forwardRef(function (_a, ref) {
47103
47178
  });
47104
47179
  WebNotification.displayName = 'WebNotification';
47105
47180
 
47106
- var ContentList = function (_a) {
47107
- var _b, _c, _d;
47108
- var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, _e = _a.inverted, inverted = _e === void 0 ? false : _e, _f = _a.type, type = _f === void 0 ? 'default' : _f;
47109
- return (e.createElement("div", { className: "ods-content-list" },
47110
- e.createElement("p", { className: classNames('ods-typography', (_b = {
47111
- 'ods-typography__paragraph': !inverted,
47112
- 'ods-typography__description': inverted
47113
- },
47114
- _b["ods-typography__paragraph--".concat(type)] = type && (!inverted || type === 'inactive'),
47115
- _b)) },
47116
- strikethroughDescription && type === 'strikethrough' && !inverted && (e.createElement("span", { className: "ods-typography__paragraph--strikethrough-text" }, strikethroughDescription)),
47117
- title),
47118
- description && (e.createElement("p", { className: classNames("ods-typography", (_c = {
47119
- 'ods-typography__description': !inverted,
47120
- 'ods-typography__paragraph': inverted
47121
- },
47122
- _c["ods-typography__paragraph--".concat(type)] = type && (inverted || type === 'inactive'),
47123
- _c)) },
47124
- strikethroughDescription && type === 'strikethrough' && inverted && (e.createElement("span", { className: "ods-typography__paragraph--strikethrough-text" }, strikethroughDescription)),
47125
- description)),
47126
- caption && (e.createElement("p", { className: classNames("ods-typography ods-typography__captionbold", (_d = {},
47127
- _d["ods-typography__paragraph--".concat(type)] = type && type === 'inactive',
47128
- _d)) }, caption))));
47129
- };
47130
-
47131
- var SkeletonBar = function (_a) {
47132
- var width = _a.width, height = _a.height, props = __rest$1(_a, ["width", "height"]);
47133
- return (e.createElement("div", __assign$1({ className: "ods-skeleton-bar", style: { width: width, height: height } }, props)));
47134
- };
47135
-
47136
47181
  var SettingsListItem = function (_a) {
47137
47182
  var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, errorMessage = _a.errorMessage, button = _a.button, tag = _a.tag, disabled = _a.disabled, _b = _a.type, type = _b === void 0 ? 'default' : _b, _c = _a.loading, loading = _c === void 0 ? false : _c, _d = _a.showDivider, showDivider = _d === void 0 ? true : _d, _e = _a.blocked, blocked = _e === void 0 ? false : _e, _f = _a.state, state = _f === void 0 ? 'default' : _f;
47138
47183
  return (e.createElement("div", { className: classNames('ods-settings-list-item', {
@@ -47328,7 +47373,7 @@ var MenuList = function (_a) {
47328
47373
  var menuContent = (e.createElement("ul", { ref: menuRef, className: classNames('ods-internal-list-actions__menu', "ods-internal-list-actions__menu--".concat(position), {
47329
47374
  'ods-internal-list-actions__menu--closing': isClosing,
47330
47375
  'ods-internal-list-actions__menu--portal': !isSwipeMode,
47331
- }), style: isSwipeMode ? undefined : menuStyle, role: "menu", "aria-orientation": isSwipeMode ? "horizontal" : "vertical", tabIndex: -1, onClick: handleMenuClick, onKeyDown: handleMenuKeyDown },
47376
+ }), style: isSwipeMode ? undefined : menuStyle, role: "menu", "aria-orientation": isSwipeMode ? 'horizontal' : 'vertical', tabIndex: -1, onClick: handleMenuClick, onKeyDown: handleMenuKeyDown },
47332
47377
  isSwipeMode && (e.createElement(DragHandle, { onClose: onClose, onKeyDown: onDragHandleKeyDown })),
47333
47378
  actions.map(function (action) { return (e.createElement(MenuItem, { key: action.label, action: action, onClick: onActionClick })); })));
47334
47379
  if (isSwipeMode || typeof document === 'undefined') {
@@ -47383,8 +47428,7 @@ var InternalListActions = forwardRef(function (_a, forwardedRef) {
47383
47428
  forwardedRef(wrapperRef.current);
47384
47429
  }
47385
47430
  else {
47386
- forwardedRef.current =
47387
- wrapperRef.current;
47431
+ forwardedRef.current = wrapperRef.current;
47388
47432
  }
47389
47433
  }
47390
47434
  }, [forwardedRef]);
@@ -47421,11 +47465,12 @@ var InternalListActions = forwardRef(function (_a, forwardedRef) {
47421
47465
  });
47422
47466
  InternalListActions.displayName = 'InternalListActions';
47423
47467
 
47424
- var CardListAction = e.forwardRef(function (_a, ref) {
47425
- var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, _b = _a.inverted, inverted = _b === void 0 ? false : _b, _c = _a.type, type = _c === void 0 ? 'default' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.loading, loading = _e === void 0 ? false : _e, icon = _a.icon, indicator = _a.indicator, _f = _a.actionType, actionType = _f === void 0 ? 'chevron' : _f, menuActions = _a.menuActions, _g = _a.menuPosition, menuPosition = _g === void 0 ? 'bottom-right' : _g, onClick = _a.onClick, className = _a.className, rest = __rest$1(_a, ["title", "description", "strikethroughDescription", "caption", "inverted", "type", "disabled", "loading", "icon", "indicator", "actionType", "menuActions", "menuPosition", "onClick", "className"]);
47468
+ var ListAction = e.forwardRef(function (_a, ref) {
47469
+ var _b;
47470
+ var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, _c = _a.inverted, inverted = _c === void 0 ? false : _c, _d = _a.type, type = _d === void 0 ? 'card' : _d, _e = _a.status, status = _e === void 0 ? 'default' : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.loading, loading = _g === void 0 ? false : _g, icon = _a.icon, indicator = _a.indicator, _h = _a.actionType, actionType = _h === void 0 ? 'chevron' : _h, menuActions = _a.menuActions, _j = _a.menuPosition, menuPosition = _j === void 0 ? 'bottom-right' : _j, onClick = _a.onClick, className = _a.className, _k = _a.showDivider, showDivider = _k === void 0 ? false : _k, rest = __rest$1(_a, ["title", "description", "strikethroughDescription", "caption", "inverted", "type", "status", "disabled", "loading", "icon", "indicator", "actionType", "menuActions", "menuPosition", "onClick", "className", "showDivider"]);
47426
47471
  var renderActionIcon = function () {
47427
47472
  if (actionType === 'chevron') {
47428
- return (e.createElement("div", { className: 'ods-card-list-action__action' },
47473
+ return (e.createElement("div", { className: 'ods-list-action__action' },
47429
47474
  e.createElement(re, { size: 20 })));
47430
47475
  }
47431
47476
  if (actionType === 'menu' || actionType === 'swipe') {
@@ -47433,25 +47478,29 @@ var CardListAction = e.forwardRef(function (_a, ref) {
47433
47478
  }
47434
47479
  return null;
47435
47480
  };
47436
- if (loading) {
47437
- return (e.createElement("button", __assign$1({ ref: ref, type: 'button', "data-testid": 'card-list-action', className: classNames('ods-card-list-action', 'ods-card-list-action--loading', className) }, rest),
47438
- e.createElement("div", { className: 'ods-card-list-action__skeleton' },
47439
- e.createElement(SkeletonBar, { width: '40%', height: '16px' }),
47440
- e.createElement(SkeletonBar, { width: '100%', height: '16px' }))));
47441
- }
47442
- return (e.createElement("button", __assign$1({ ref: ref, type: 'button', "data-testid": 'card-list-action', className: classNames('ods-card-list-action', className, {
47443
- 'ods-card-list-action--disabled': disabled,
47444
- 'ods-card-list-action--swipe-mode': actionType === 'swipe',
47445
- }), onClick: onClick, disabled: disabled }, rest),
47446
- icon && e.createElement("div", { className: classNames('ods-card-list-action__icon', {
47447
- 'ods-card-list-action__icon--inactive': type === 'inactive',
47448
- }) }, icon),
47449
- e.createElement(ContentList, { title: title, description: description, strikethroughDescription: strikethroughDescription, caption: caption, inverted: inverted, type: type }),
47450
- e.createElement("div", { className: 'ods-card-list-action__trailing' },
47451
- indicator && (e.createElement("div", { className: 'ods-card-list-action__indicator' }, indicator)),
47452
- renderActionIcon())));
47481
+ var renderLoadingContent = function () { return (e.createElement("div", { className: 'ods-list-action__skeleton' },
47482
+ e.createElement(SkeletonBar, { width: '40%', height: '16px' }),
47483
+ e.createElement(SkeletonBar, { width: '100%', height: '16px' }))); };
47484
+ var renderContent = function () { return (e.createElement(e.Fragment, null,
47485
+ icon && (e.createElement("div", { className: classNames('ods-list-action__icon', {
47486
+ 'ods-list-action__icon--inactive': status === 'inactive',
47487
+ }) }, icon)),
47488
+ e.createElement(ContentList, { title: title, description: description, strikethroughDescription: strikethroughDescription, caption: caption, inverted: inverted, type: status }),
47489
+ e.createElement("div", { className: 'ods-list-action__trailing' },
47490
+ indicator && (e.createElement("div", { className: 'ods-list-action__indicator' }, indicator)),
47491
+ renderActionIcon()))); };
47492
+ var buttonClassName = classNames('ods-list-action', className, (_b = {
47493
+ 'ods-list-action--loading': loading,
47494
+ 'ods-list-action--disabled': disabled,
47495
+ 'ods-list-action--swipe-mode': actionType === 'swipe'
47496
+ },
47497
+ _b["ods-list-action--".concat(type)] = type,
47498
+ _b));
47499
+ return (e.createElement("div", { className: 'ods-list-action__container' },
47500
+ e.createElement("button", __assign$1({ ref: ref, type: 'button', "data-testid": 'list-action', className: buttonClassName, onClick: loading ? undefined : onClick, disabled: disabled || loading }, rest), loading ? renderLoadingContent() : renderContent()),
47501
+ showDivider && type === 'text' && (e.createElement("div", { className: 'ods-list-action__divider' }))));
47453
47502
  });
47454
- CardListAction.displayName = 'CardListAction';
47503
+ ListAction.displayName = 'ListAction';
47455
47504
 
47456
- export { Accordion, Alert, Badge, Breadcrumb, Button$1 as Button, CardGroup, CardListAction, CardListItem, Carousel, DoughnutChart as Chart, Checkbox, Chips, Col, Container, CrossSellCard, DatePickerSingle as DatePicker, DatePickerRange as DateRange, Divider, DoughnutChart, Drawer, index$1 as Grid, IconButton, Input, Link, List, Modal, Progress, Radio, Row$1 as Row, Search, Select, SelectAutocomplete, SettingsListItem, Shortcut, Snackbar, Stepper, Steps, SubHeader, Switch, Tag, TextArea, TextListItem, TokenInput, TopBar, TransactionListItem, Typography, UnorderedListItem, WebNotification };
47505
+ export { Accordion, Alert, Badge, Breadcrumb, Button$1 as Button, CardGroup, CardListItem, Carousel, DoughnutChart as Chart, Checkbox, Chips, Col, Container, CrossSellCard, DatePickerSingle as DatePicker, DatePickerRange as DateRange, Divider, DoughnutChart, Drawer, index$1 as Grid, IconButton, Input, Link, List, ListAction, ListSelectable, Modal, Progress, Radio, Row$1 as Row, Search, Select, SelectAutocomplete, SettingsListItem, Shortcut, Snackbar, Stepper, Steps, SubHeader, Switch, Tag, TextArea, TextListItem, TokenInput, TopBar, TransactionListItem, Typography, UnorderedListItem, WebNotification };
47457
47506
  //# sourceMappingURL=index.es.js.map