glints-aries 4.0.186 → 4.0.189
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/es/@next/Alert/Alert.d.ts +1 -1
- package/es/@next/Alert/Alert.js +3 -2
- package/es/@next/Alert/AlertWithProvider.d.ts +2 -2
- package/es/@next/Alert/AlertWithProvider.js +5 -3
- package/es/@next/Avatar/Avatar.d.ts +1 -1
- package/es/@next/Avatar/Avatar.js +3 -2
- package/es/@next/Badge/Badge.d.ts +1 -1
- package/es/@next/Badge/Badge.js +3 -2
- package/es/@next/Banner/Banner.d.ts +1 -1
- package/es/@next/Banner/Banner.js +3 -2
- package/es/@next/Button/Button.d.ts +1 -1
- package/es/@next/Button/Button.js +3 -2
- package/es/@next/Button/DesctructiveButtonStyle.d.ts +1 -1
- package/es/@next/Button/OutlineButtonStyle.d.ts +1 -1
- package/es/@next/Button/OutlineMonochromeStyle.d.ts +1 -1
- package/es/@next/Button/PrimaryButtonStyle.d.ts +1 -1
- package/es/@next/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/es/@next/ButtonGroup/ButtonGroup.js +3 -2
- package/es/@next/Checkbox/Checkbox.d.ts +1 -1
- package/es/@next/Checkbox/Checkbox.js +3 -2
- package/es/@next/CurrencyInput/CurrencyInput.d.ts +6 -2
- package/es/@next/CurrencyInput/CurrencyInput.js +3 -2
- package/es/@next/CurrencyInput/CurrencyStyles.d.ts +1 -1
- package/es/@next/Divider/Divider.d.ts +1 -1
- package/es/@next/Divider/Divider.js +5 -5
- package/es/@next/IndexTable/IndexTable.js +3 -2
- package/es/@next/IndexTable/IndexTable.stories.d.ts +0 -1
- package/es/@next/IndexTable/IndexTableStyle.d.ts +1 -0
- package/es/@next/IndexTable/IndexTableStyle.js +2 -0
- package/es/@next/IndexTable/indexTableStoryHelper/ButtonGroupStyle.d.ts +1 -1
- package/es/@next/Input/Input.d.ts +1 -1
- package/es/@next/Input/Input.js +3 -2
- package/es/@next/NumberInput/NumberInput.d.ts +2 -2
- package/es/@next/NumberInput/NumberInput.js +3 -2
- package/es/@next/Pagination/Pagination.d.ts +2 -2
- package/es/@next/Pagination/Pagination.js +5 -3
- package/es/@next/Pagination/PaginationStyle.d.ts +2 -2
- package/es/@next/Pagination/SimplePagination.d.ts +2 -2
- package/es/@next/Pagination/SimplePagination.js +5 -3
- package/es/@next/Popover/Popover.d.ts +3 -3
- package/es/@next/Popover/Popover.js +6 -3
- package/es/@next/RadioButton/RadioButton.d.ts +1 -1
- package/es/@next/RadioButton/RadioButton.js +3 -2
- package/es/@next/Tabs/Tabs.d.ts +1 -1
- package/es/@next/Tabs/Tabs.js +5 -3
- package/es/@next/Tag/Tag.d.ts +2 -1
- package/es/@next/Tag/Tag.js +9 -6
- package/es/@next/TextInput/TextInput.d.ts +4 -2
- package/es/@next/TextInput/TextInput.js +3 -2
- package/lib/@next/Alert/Alert.d.ts +1 -1
- package/lib/@next/Alert/Alert.js +3 -2
- package/lib/@next/Alert/AlertWithProvider.d.ts +2 -2
- package/lib/@next/Alert/AlertWithProvider.js +5 -3
- package/lib/@next/Avatar/Avatar.d.ts +1 -1
- package/lib/@next/Avatar/Avatar.js +3 -2
- package/lib/@next/Badge/Badge.d.ts +1 -1
- package/lib/@next/Badge/Badge.js +3 -2
- package/lib/@next/Banner/Banner.d.ts +1 -1
- package/lib/@next/Banner/Banner.js +3 -2
- package/lib/@next/Button/Button.d.ts +1 -1
- package/lib/@next/Button/Button.js +3 -2
- package/lib/@next/Button/DesctructiveButtonStyle.d.ts +1 -1
- package/lib/@next/Button/OutlineButtonStyle.d.ts +1 -1
- package/lib/@next/Button/OutlineMonochromeStyle.d.ts +1 -1
- package/lib/@next/Button/PrimaryButtonStyle.d.ts +1 -1
- package/lib/@next/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/@next/ButtonGroup/ButtonGroup.js +3 -2
- package/lib/@next/Checkbox/Checkbox.d.ts +1 -1
- package/lib/@next/Checkbox/Checkbox.js +3 -2
- package/lib/@next/CurrencyInput/CurrencyInput.d.ts +6 -2
- package/lib/@next/CurrencyInput/CurrencyInput.js +3 -2
- package/lib/@next/CurrencyInput/CurrencyStyles.d.ts +1 -1
- package/lib/@next/Divider/Divider.d.ts +1 -1
- package/lib/@next/Divider/Divider.js +5 -5
- package/lib/@next/IndexTable/IndexTable.js +3 -2
- package/lib/@next/IndexTable/IndexTable.stories.d.ts +0 -1
- package/lib/@next/IndexTable/IndexTableStyle.d.ts +1 -0
- package/lib/@next/IndexTable/IndexTableStyle.js +7 -0
- package/lib/@next/IndexTable/indexTableStoryHelper/ButtonGroupStyle.d.ts +1 -1
- package/lib/@next/Input/Input.d.ts +1 -1
- package/lib/@next/Input/Input.js +3 -2
- package/lib/@next/NumberInput/NumberInput.d.ts +2 -2
- package/lib/@next/NumberInput/NumberInput.js +3 -2
- package/lib/@next/Pagination/Pagination.d.ts +2 -2
- package/lib/@next/Pagination/Pagination.js +5 -3
- package/lib/@next/Pagination/PaginationStyle.d.ts +2 -2
- package/lib/@next/Pagination/SimplePagination.d.ts +2 -2
- package/lib/@next/Pagination/SimplePagination.js +5 -3
- package/lib/@next/Popover/Popover.d.ts +3 -3
- package/lib/@next/Popover/Popover.js +6 -3
- package/lib/@next/RadioButton/RadioButton.d.ts +1 -1
- package/lib/@next/RadioButton/RadioButton.js +3 -2
- package/lib/@next/Tabs/Tabs.d.ts +1 -1
- package/lib/@next/Tabs/Tabs.js +5 -3
- package/lib/@next/Tag/Tag.d.ts +2 -1
- package/lib/@next/Tag/Tag.js +9 -6
- package/lib/@next/TextInput/TextInput.d.ts +4 -2
- package/lib/@next/TextInput/TextInput.js +3 -2
- package/package.json +1 -1
|
@@ -9,4 +9,4 @@ export declare type AlertProps = {
|
|
|
9
9
|
duration?: number;
|
|
10
10
|
onDismissed?: () => void;
|
|
11
11
|
};
|
|
12
|
-
export declare const Alert:
|
|
12
|
+
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
package/es/@next/Alert/Alert.js
CHANGED
|
@@ -8,7 +8,7 @@ var iconNameStatusMap = {
|
|
|
8
8
|
warning: 'ri-error-warning-fill',
|
|
9
9
|
error: 'ri-error-warning-fill'
|
|
10
10
|
};
|
|
11
|
-
export var Alert = function Alert(_ref) {
|
|
11
|
+
export var Alert = /*#__PURE__*/React.forwardRef(function Alert(_ref, ref) {
|
|
12
12
|
var show = _ref.show,
|
|
13
13
|
title = _ref.title,
|
|
14
14
|
content = _ref.content,
|
|
@@ -38,6 +38,7 @@ export var Alert = function Alert(_ref) {
|
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
40
|
return /*#__PURE__*/React.createElement(StyledAlertContainer, {
|
|
41
|
+
ref: ref,
|
|
41
42
|
role: "alert",
|
|
42
43
|
"data-titled": hasTitle,
|
|
43
44
|
"data-status": status || 'info'
|
|
@@ -60,4 +61,4 @@ export var Alert = function Alert(_ref) {
|
|
|
60
61
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
61
62
|
name: "ri-close"
|
|
62
63
|
})));
|
|
63
|
-
};
|
|
64
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const AlertWithProvider:
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const AlertWithProvider: React.ForwardRefExoticComponent<React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,7 +5,7 @@ var _excluded = ["closeAlert"],
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { Alert } from './Alert';
|
|
7
7
|
import { useAlert } from './useAlert';
|
|
8
|
-
export var AlertWithProvider = function AlertWithProvider() {
|
|
8
|
+
export var AlertWithProvider = /*#__PURE__*/React.forwardRef(function AlertWithProvider(_, alertRef) {
|
|
9
9
|
var _useAlert = useAlert(),
|
|
10
10
|
closeAlert = _useAlert.closeAlert,
|
|
11
11
|
rest = _objectWithoutPropertiesLoose(_useAlert, _excluded);
|
|
@@ -14,10 +14,12 @@ export var AlertWithProvider = function AlertWithProvider() {
|
|
|
14
14
|
if (!show) {
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
|
-
return /*#__PURE__*/React.createElement(Alert, _extends({
|
|
17
|
+
return /*#__PURE__*/React.createElement(Alert, _extends({
|
|
18
|
+
ref: alertRef
|
|
19
|
+
}, alertProps, {
|
|
18
20
|
show: show,
|
|
19
21
|
onDismissed: function onDismissed() {
|
|
20
22
|
return closeAlert();
|
|
21
23
|
}
|
|
22
24
|
}));
|
|
23
|
-
};
|
|
25
|
+
});
|
|
@@ -8,5 +8,5 @@ export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
size?: AvatarSizeVariant;
|
|
9
9
|
initials?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const Avatar:
|
|
11
|
+
export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export {};
|
|
@@ -7,7 +7,7 @@ import { Neutral } from '../utilities/colors';
|
|
|
7
7
|
import { AvatarStyle } from './AvatarStyle';
|
|
8
8
|
var avatarBackgroundColorVariant = ['supplementary', 'warning', 'danger', 'success', 'outstanding'];
|
|
9
9
|
var avatarSizeVariant = ['large', 'medium'];
|
|
10
|
-
export var Avatar = function Avatar(_ref) {
|
|
10
|
+
export var Avatar = /*#__PURE__*/React.forwardRef(function Avatar(_ref, ref) {
|
|
11
11
|
var _ref$variant = _ref.variant,
|
|
12
12
|
variant = _ref$variant === void 0 ? 'supplementary' : _ref$variant,
|
|
13
13
|
_ref$size = _ref.size,
|
|
@@ -15,6 +15,7 @@ export var Avatar = function Avatar(_ref) {
|
|
|
15
15
|
initials = _ref.initials,
|
|
16
16
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
17
17
|
return /*#__PURE__*/React.createElement(AvatarStyle, _extends({
|
|
18
|
+
ref: ref,
|
|
18
19
|
variant: variant,
|
|
19
20
|
size: size
|
|
20
21
|
}, props), /*#__PURE__*/React.createElement(Typography, {
|
|
@@ -22,4 +23,4 @@ export var Avatar = function Avatar(_ref) {
|
|
|
22
23
|
color: Neutral.B18,
|
|
23
24
|
as: 'span'
|
|
24
25
|
}, initials.slice(0, 2)));
|
|
25
|
-
};
|
|
26
|
+
});
|
|
@@ -6,5 +6,5 @@ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
6
6
|
status?: BadgeStatusVariant;
|
|
7
7
|
textColor?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const Badge:
|
|
9
|
+
export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
10
|
export {};
|
package/es/@next/Badge/Badge.js
CHANGED
|
@@ -15,7 +15,7 @@ var renderTextColor = function renderTextColor(textColor, status) {
|
|
|
15
15
|
}
|
|
16
16
|
return Neutral.B18;
|
|
17
17
|
};
|
|
18
|
-
export var Badge = function Badge(_ref) {
|
|
18
|
+
export var Badge = /*#__PURE__*/React.forwardRef(function Badge(_ref, ref) {
|
|
19
19
|
var children = _ref.children,
|
|
20
20
|
status = _ref.status,
|
|
21
21
|
textColor = _ref.textColor,
|
|
@@ -26,6 +26,7 @@ export var Badge = function Badge(_ref) {
|
|
|
26
26
|
as: 'span'
|
|
27
27
|
}, children) : children;
|
|
28
28
|
return /*#__PURE__*/React.createElement(BadgeStyle, _extends({
|
|
29
|
+
ref: ref,
|
|
29
30
|
status: status ? status : 'neutral'
|
|
30
31
|
}, props), /*#__PURE__*/React.createElement("div", null, content));
|
|
31
|
-
};
|
|
32
|
+
});
|
|
@@ -11,4 +11,4 @@ export declare type BannerProps = {
|
|
|
11
11
|
dismissable?: boolean;
|
|
12
12
|
onDismiss?: () => void;
|
|
13
13
|
};
|
|
14
|
-
export declare const Banner:
|
|
14
|
+
export declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -12,7 +12,7 @@ var iconNameStatusMap = {
|
|
|
12
12
|
warning: 'ri-error-warning-fill',
|
|
13
13
|
critical: 'ri-error-warning-fill'
|
|
14
14
|
};
|
|
15
|
-
export var Banner = function Banner(_ref) {
|
|
15
|
+
export var Banner = /*#__PURE__*/React.forwardRef(function Banner(_ref, ref) {
|
|
16
16
|
var title = _ref.title,
|
|
17
17
|
status = _ref.status,
|
|
18
18
|
iconName = _ref.iconName,
|
|
@@ -29,6 +29,7 @@ export var Banner = function Banner(_ref) {
|
|
|
29
29
|
}
|
|
30
30
|
var iconNameValue = iconName ? iconName : iconByStatus || iconNameStatusMap['info'];
|
|
31
31
|
return /*#__PURE__*/React.createElement(StyledBanner, _extends({
|
|
32
|
+
ref: ref,
|
|
32
33
|
"data-titled": !!title,
|
|
33
34
|
"data-status": status
|
|
34
35
|
}, props), /*#__PURE__*/React.createElement(StyledBannerTitleContainer, null, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -47,4 +48,4 @@ export var Banner = function Banner(_ref) {
|
|
|
47
48
|
as: "div",
|
|
48
49
|
variant: "body1"
|
|
49
50
|
}, children)), /*#__PURE__*/React.createElement(StyledBannerContentContainer, null, action || secondaryAction && /*#__PURE__*/React.createElement(ButtonGroup, null, action, secondaryAction)));
|
|
50
|
-
};
|
|
51
|
+
});
|
|
@@ -11,4 +11,4 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
11
11
|
iconPosition?: IconPosition;
|
|
12
12
|
loading?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare const Button:
|
|
14
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { Spinner } from '../Spinner/Spinner';
|
|
6
6
|
import { Typography } from '../Typography';
|
|
7
7
|
import { StyledButton } from './ButtonStyle';
|
|
8
|
-
export var Button = function Button(_ref) {
|
|
8
|
+
export var Button = /*#__PURE__*/React.forwardRef(function Button(_ref, ref) {
|
|
9
9
|
var children = _ref.children,
|
|
10
10
|
icon = _ref.icon,
|
|
11
11
|
_ref$iconPosition = _ref.iconPosition,
|
|
@@ -24,6 +24,7 @@ export var Button = function Button(_ref) {
|
|
|
24
24
|
return null;
|
|
25
25
|
};
|
|
26
26
|
return /*#__PURE__*/React.createElement(StyledButton, _extends({
|
|
27
|
+
ref: ref,
|
|
27
28
|
"data-active": active,
|
|
28
29
|
"data-full-width": fullWidth,
|
|
29
30
|
"data-loading": loading,
|
|
@@ -33,4 +34,4 @@ export var Button = function Button(_ref) {
|
|
|
33
34
|
return e.currentTarget.blur();
|
|
34
35
|
}
|
|
35
36
|
}), loading && /*#__PURE__*/React.createElement(Spinner, null), renderIcon('left'), content, renderIcon('right'));
|
|
36
|
-
};
|
|
37
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const DestructiveButton: import("styled-components").StyledComponent<(
|
|
2
|
+
export declare const DestructiveButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("./Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const OutlineButton: import("styled-components").StyledComponent<(
|
|
2
|
+
export declare const OutlineButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("./Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const OutlineMonochromeButton: import("styled-components").StyledComponent<(
|
|
2
|
+
export declare const OutlineMonochromeButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("./Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const PrimaryButton: import("styled-components").StyledComponent<(
|
|
2
|
+
export declare const PrimaryButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("./Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
@@ -5,4 +5,4 @@ export interface ButtonGroupProps extends React.HtmlHTMLAttributes<HTMLDivElemen
|
|
|
5
5
|
/** Set this true when buttons are wrapped by another element (e.g as an activator for Popover) */
|
|
6
6
|
isButtonWrapped?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const ButtonGroup:
|
|
8
|
+
export declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3,14 +3,15 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutP
|
|
|
3
3
|
var _excluded = ["segmented", "fullWidth", "isButtonWrapped"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { StyledButtonGroup } from './ButtonGroupStyle';
|
|
6
|
-
export var ButtonGroup = function ButtonGroup(_ref) {
|
|
6
|
+
export var ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(_ref, ref) {
|
|
7
7
|
var segmented = _ref.segmented,
|
|
8
8
|
fullWidth = _ref.fullWidth,
|
|
9
9
|
isButtonWrapped = _ref.isButtonWrapped,
|
|
10
10
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
11
11
|
return /*#__PURE__*/React.createElement(StyledButtonGroup, _extends({
|
|
12
|
+
ref: ref,
|
|
12
13
|
"data-segmented": segmented,
|
|
13
14
|
"data-full-width": fullWidth,
|
|
14
15
|
"data-button-wrapped": isButtonWrapped
|
|
15
16
|
}, props));
|
|
16
|
-
};
|
|
17
|
+
});
|
|
@@ -10,4 +10,4 @@ export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputE
|
|
|
10
10
|
onChange?(newChecked: boolean, id: string): void;
|
|
11
11
|
isPadded?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare const Checkbox:
|
|
13
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -7,7 +7,7 @@ import { noop } from 'lodash-es';
|
|
|
7
7
|
import { Icon } from '../Icon';
|
|
8
8
|
import { Typography } from '../Typography';
|
|
9
9
|
import nextId from 'react-id-generator';
|
|
10
|
-
export var Checkbox = function Checkbox(_ref) {
|
|
10
|
+
export var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(_ref, ref) {
|
|
11
11
|
var label = _ref.label,
|
|
12
12
|
id = _ref.id,
|
|
13
13
|
checked = _ref.checked,
|
|
@@ -43,6 +43,7 @@ export var Checkbox = function Checkbox(_ref) {
|
|
|
43
43
|
onChange == null ? void 0 : onChange(checkedValue, checkBoxId);
|
|
44
44
|
};
|
|
45
45
|
return /*#__PURE__*/React.createElement(StyledContainer, {
|
|
46
|
+
ref: ref,
|
|
46
47
|
"aria-disabled": disabled,
|
|
47
48
|
"data-error": hasError,
|
|
48
49
|
"data-spacing": isPadded
|
|
@@ -98,4 +99,4 @@ export var Checkbox = function Checkbox(_ref) {
|
|
|
98
99
|
as: "span",
|
|
99
100
|
variant: "subtitle2"
|
|
100
101
|
}, helpText))));
|
|
101
|
-
};
|
|
102
|
+
});
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { InputProps } from '../Input/Input';
|
|
3
3
|
export declare type CurrencyInputProps = Omit<InputProps, 'type' | 'prefix' | 'onChange' | 'value'> & {
|
|
4
4
|
locale?: string;
|
|
5
5
|
value?: number;
|
|
6
6
|
onChange?: (value: number) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const CurrencyInput:
|
|
8
|
+
export declare const CurrencyInput: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "value" | "prefix" | "onChange"> & {
|
|
9
|
+
locale?: string;
|
|
10
|
+
value?: number;
|
|
11
|
+
onChange?: (value: number) => void;
|
|
12
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutP
|
|
|
3
3
|
var _excluded = ["locale", "value", "onChange"];
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import { StyledCurrency } from './CurrencyStyles';
|
|
6
|
-
export var CurrencyInput = function CurrencyInput(_ref) {
|
|
6
|
+
export var CurrencyInput = /*#__PURE__*/React.forwardRef(function CurrencyInput(_ref, ref) {
|
|
7
7
|
var _ref$locale = _ref.locale,
|
|
8
8
|
locale = _ref$locale === void 0 ? 'en' : _ref$locale,
|
|
9
9
|
_ref$value = _ref.value,
|
|
@@ -37,10 +37,11 @@ export var CurrencyInput = function CurrencyInput(_ref) {
|
|
|
37
37
|
setFormattedValue(formatter.format(rawValue));
|
|
38
38
|
};
|
|
39
39
|
return /*#__PURE__*/React.createElement(StyledCurrency, _extends({
|
|
40
|
+
ref: ref,
|
|
40
41
|
type: "text",
|
|
41
42
|
prefix: /*#__PURE__*/React.createElement("div", null, "$")
|
|
42
43
|
}, props, {
|
|
43
44
|
value: formattedValue === '0' ? '' : formattedValue,
|
|
44
45
|
onChange: handleChange
|
|
45
46
|
}));
|
|
46
|
-
};
|
|
47
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledCurrency: import("styled-components").StyledComponent<(
|
|
2
|
+
export declare const StyledCurrency: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Input/Input").InputProps & import("react").RefAttributes<HTMLInputElement>>, any, {}, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare type DividerProps = React.HTMLAttributes<HTMLDivElement>;
|
|
3
|
-
export declare const Divider:
|
|
3
|
+
export declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
2
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { DividerStyle } from './DividerStyle';
|
|
5
|
-
export var Divider = function Divider(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
4
|
+
export var Divider = /*#__PURE__*/React.forwardRef(function Divider(props, ref) {
|
|
5
|
+
return /*#__PURE__*/React.createElement(DividerStyle, _extends({
|
|
6
|
+
ref: ref
|
|
7
|
+
}, props));
|
|
8
|
+
});
|
|
@@ -6,6 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { Cell, IndexTable as PolarisIndexTable, IndexTableProps } from 'polaris-glints';
|
|
7
7
|
import { Checkbox } from '../Checkbox';
|
|
8
8
|
import { Row } from './components/Row/Row';
|
|
9
|
+
import { StyledIndexTable } from './IndexTableStyle';
|
|
9
10
|
var IndexTable = function IndexTable(_ref) {
|
|
10
11
|
var bulkActions = _ref.bulkActions,
|
|
11
12
|
children = _ref.children,
|
|
@@ -22,12 +23,12 @@ var IndexTable = function IndexTable(_ref) {
|
|
|
22
23
|
isPadded: false
|
|
23
24
|
}, props));
|
|
24
25
|
};
|
|
25
|
-
return /*#__PURE__*/React.createElement(PolarisIndexTable, _extends({
|
|
26
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledIndexTable, null), /*#__PURE__*/React.createElement(PolarisIndexTable, _extends({
|
|
26
27
|
bulkActions: bulkActions,
|
|
27
28
|
checkbox: renderCheckboxHeader,
|
|
28
29
|
itemCount: itemCount,
|
|
29
30
|
selectedItemsCount: selectedItemsCount
|
|
30
|
-
}, props), children);
|
|
31
|
+
}, props), children));
|
|
31
32
|
};
|
|
32
33
|
IndexTable.Cell = Cell;
|
|
33
34
|
IndexTable.Row = Row;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledIndexTable: any;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createGlobalStyle } from 'styled-components';
|
|
2
|
+
export var StyledIndexTable = createGlobalStyle([":root{--p-surface:rgba(255,255,255,1);--p-surface-dark:rgba(32,33,35,1);--p-surface-subdued:rgba(250,251,251,1);--p-surface-disabled:rgba(250,251,251,1);--p-surface-hovered:rgba(246,246,247,1);--p-surface-hovered-dark:rgba(47,49,51,1);--p-surface-pressed:rgba(241,242,243,1);--p-surface-pressed-dark:rgba(62,64,67,1);--p-hint-from-direct-light:rgba(0,0,0,0.15);--p-border:rgba(140,145,150,1);--p-border-on-dark:rgba(80,83,86,1);--p-border-neutral-subdued:rgba(186,191,195,1);--p-border-disabled:rgba(210,213,216,1);--p-border-subdued:rgba(201,204,207,1);--p-border-depressed:rgba(87,89,89,1);--p-border-shadow-subdued:rgba(186,191,196,1);--p-divider:rgba(225,227,229,1);--p-icon:rgba(92,95,98,1);--p-icon-disabled:rgba(186,190,195,1);--p-text:rgba(32,34,35,1);--p-text-on-dark:rgba(227,229,231,1);--p-text-disabled:rgba(140,145,150,1);--p-text-subdued:rgba(109,113,117,1);--p-interactive:rgba(44,110,203,1);--p-interactive-hovered:rgba(31,81,153,1);--p-interactive-pressed:rgba(16,50,98,1);--p-focused:rgba(69,143,255,1);--p-surface-selected:rgba(242,247,254,1);--p-action-secondary-hovered:rgba(246,246,247,1);--p-action-secondary-pressed:rgba(241,242,243,1);--p-action-secondary-depressed:rgba(109,113,117,1);--p-text-on-primary:rgba(255,255,255,1);--p-surface-primary-selected:rgba(241,248,245,1);--p-surface-highlight-subdued:rgba(235,249,252,1);--p-shadow-base:0 0 0 0.0625rem rgba(63,63,68,0.05),0 0.0625rem 0.1875rem 0 rgba(63,63,68,0.15);--p-shadow-deep:0 0 0 0.0625rem rgba(6,44,82,0.1),0 0.125rem 1rem rgba(33,43,54,0.08);--p-shadow-button:0 0.0625rem 0 rgba(0,0,0,0.05);--p-shadow-popover:0 0.1875rem 0.375rem -0.1875rem rgba(23,24,24,0.08),0 0.5rem 1.25rem -0.25rem rgba(23,24,24,0.12);--p-duration-100:100ms;--p-border-radius-1:0.25rem;--p-border-radius-2:0.5rem;--p-border-width-1:0.0625rem;--p-border-divider:var(--p-border-width-1) solid var(--p-divider);--p-space-025:0.0625rem;--p-space-05:0.125rem;--p-space-1:0.25rem;--p-space-2:0.5rem;--p-space-3:0.75rem;--p-space-4:1rem;--p-space-5:1.25rem;}.Polaris-Text--root{margin:0;text-align:inherit;}.Polaris-Text--visuallyHidden{position:absolute !important;top:0;width:0.0625rem !important;height:0.0625rem !important;margin:0 !important;padding:0 !important;overflow:hidden !important;clip-path:inset(50%) !important;border:0 !important;white-space:nowrap !important;}.Polaris-Text--regular{font-weight:400;}.Polaris-Text--bodySm{font-size:0.75rem;line-height:1rem;}.Polaris-Icon{display:block;height:1.25rem;width:1.25rem;max-height:100%;max-width:100%;margin:auto;}.Polaris-Icon__Svg{position:relative;display:block;width:100%;max-width:100%;max-height:100%;}.Polaris-Scrollable{--pc-scrollable-shadow-size:var(--p-space-5);--pc-scrollable-shadow-bottom:inset 0 calc(var(--pc-scrollable-shadow-size) * -1) var(--pc-scrollable-shadow-size) calc(var(--pc-scrollable-shadow-size) * -1) var(--p-hint-from-direct-light);--pc-scrollable-shadow-top:inset 0 var(--pc-scrollable-shadow-size) var(--pc-scrollable-shadow-size) calc(var(--pc-scrollable-shadow-size) * -1) var(--p-hint-from-direct-light);--pc-scrollable-max-height:none;-webkit-overflow-scrolling:touch;position:relative;max-height:var(--pc-scrollable-max-height);overflow-x:hidden;overflow-y:hidden;}.Polaris-Scrollable:focus{outline:0.125rem solid var(--p-focused);outline-offset:var(--p-space-05);}.Polaris-Scrollable--horizontal{overflow-x:auto;}.Polaris-Scrollable--vertical{overflow-y:auto;}.Polaris-Scrollable--hasTopShadow{box-shadow:var(--pc-scrollable-shadow-top);}.Polaris-Scrollable--hasBottomShadow{box-shadow:var(--pc-scrollable-shadow-bottom);}.Polaris-Scrollable--hasTopShadow.Polaris-Scrollable--hasBottomShadow{box-shadow:var(--pc-scrollable-shadow-top),var(--pc-scrollable-shadow-bottom);}.Polaris-Popover{max-width:calc(100vw - 2rem);margin:0.3125rem var(--p-space-2) var(--p-space-4);box-shadow:var(--p-shadow-popover);border-radius:var(--p-border-radius-2);backface-visibility:hidden;will-change:left,top;}.Polaris-Popover__PopoverOverlay{opacity:0;transition:opacity var(--p-duration-100) cubic-bezier(0.25,0.1,0.25,1),transform var(--p-duration-100) cubic-bezier(0.25,0.1,0.25,1);transform:translateY(-0.3125rem);}.Polaris-Popover__PopoverOverlay--entering{opacity:1;transform:translateY(0);}.Polaris-Popover__PopoverOverlay--open{opacity:1;transform:none;}.Polaris-Popover__PopoverOverlay--exiting{opacity:1;transform:translateY(0);transition-duration:0ms;}.Polaris-Popover--measuring:not(.Polaris-Popover__PopoverOverlay--exiting){opacity:0;transform:translateY(-0.3125rem);}.Polaris-Popover--fullWidth{margin:0.3125rem auto 0 auto;}.Polaris-Popover--fullWidth .Polaris-Popover__Content{max-width:none;}.Polaris-Popover--positionedAbove{margin:var(--p-space-4) var(--p-space-2) 0.3125rem;}.Polaris-Popover--positionedAbove.Polaris-Popover--fullWidth{margin:0 auto 0.3125rem auto;}.Polaris-Popover__Wrapper{position:relative;overflow:hidden;background-color:var(--p-surface);border-radius:var(--p-border-radius-2);outline:var(--p-border-width-1) solid transparent;}.Polaris-Popover__Content{position:relative;display:flex;flex-direction:column;border-radius:var(--p-border-radius-1);max-width:25rem;max-height:31.25rem;}.Polaris-Popover__Content:focus{outline:none;}.Polaris-Popover__Content--fullHeight{max-height:none;}.Polaris-Popover__Content--fluidContent{max-height:none;max-width:none;}.Polaris-Popover__Pane{flex:1 1;max-width:100%;}.Polaris-Popover__Pane + .Polaris-Popover__Pane{border-top:var(--p-border-divider);}.Polaris-Popover__Pane:focus{outline:none;}.Polaris-Popover__Pane--fixed{overflow:visible;flex:0 0 auto;}.Polaris-Popover__Pane--captureOverscroll{overscroll-behavior:contain;}.Polaris-Popover__Section{padding:var(--p-space-4);}.Polaris-Popover__Section + .Polaris-Popover__Section{border-top:var(--p-border-divider);}.Polaris-Popover__FocusTracker{position:absolute !important;top:0;width:0.0625rem !important;height:0.0625rem !important;margin:0 !important;padding:0 !important;overflow:hidden !important;clip-path:inset(50%) !important;border:0 !important;white-space:nowrap !important;}@media print{.Polaris-Popover__PopoverOverlay--hideOnPrint{display:none !important;}}.Polaris-PositionedOverlay{position:absolute;z-index:400;}.Polaris-ActionList{outline:none;list-style:none;margin:0;padding:0;}.Polaris-ActionList__Section:not(:first-child){border-top:var(--p-border-divider);}.Polaris-ActionList__Section:not(:first-child) > .Polaris-ActionList__Section--withoutTitle .Polaris-ActionList__Actions{padding-top:var(--p-space-2);}.Polaris-ActionList__Actions{outline:none;list-style:none;margin:0;padding:var(--p-space-2);}.Polaris-ActionList > .Polaris-ActionList__Section--withoutTitle .Polaris-ActionList__Actions,.Polaris-ActionList__Section:first-child > .Polaris-ActionList__Section--withoutTitle .Polaris-ActionList__Actions{border-top:none;padding-top:var(--p-space-2);}.Polaris-ActionList .Polaris-ActionList__Section .Polaris-ActionList__Actions{padding-top:0;}.Polaris-ActionList__Item{--pc-action-list-image-size:1.25rem;--pc-action-list-item-min-height:2.5rem;--pc-action-list-item-vertical-padding:calc( (var(--pc-action-list-item-min-height) - 1.25rem) / 2 );appearance:none;margin:0;background:none;border:none;font-size:inherit;line-height:inherit;color:inherit;cursor:pointer;position:relative;display:block;width:100%;min-height:var(--pc-action-list-item-min-height);text-align:left;text-decoration:none;padding:var(--pc-action-list-item-vertical-padding) var(--p-space-2);border-radius:var(--p-border-radius-1);border-top:var(--p-border-width-1) solid transparent;}.Polaris-ActionList__Item:focus{outline:none;}.Polaris-ActionList__Item::after{content:'';position:absolute;z-index:1;top:-0.0625rem;right:-0.0625rem;bottom:-0.0625rem;left:-0.0625rem;display:block;pointer-events:none;box-shadow:0 0 0 -0.0625rem var(--p-focused);transition:box-shadow var(--p-duration-100) cubic-bezier(0.25,0.1,0.25,1);border-radius:var(--p-border-radius-1);}.Polaris-ActionList__Item:hover{background-color:var(--p-surface-hovered);text-decoration:none;outline:0.1875rem solid transparent;}.Polaris-ActionList__Item:active{background-color:var(--p-surface-pressed);}.Polaris-ActionList__Item:active svg{fill:var(--p-interactive);}.Polaris-ActionList__Item:focus:not(:active){outline:0.1875rem solid transparent;}.Polaris-ActionList__Item:focus:not(:active)::after{box-shadow:0 0 0 0.125rem var(--p-focused);outline:var(--p-border-width-1) solid transparent;}.Polaris-ActionList__Item:visited{color:inherit;}.Polaris-ActionList__Item.Polaris-ActionList--active{background-color:var(--p-surface-selected);}.Polaris-ActionList__Item.Polaris-ActionList--active svg{fill:var(--p-interactive);}.Polaris-ActionList__Item.Polaris-ActionList--active::before{content:'';background-color:var(--p-interactive);position:absolute;top:0;left:calc(var(--p-space-2) * -1);height:100%;display:block;width:0.1875rem;border-top-right-radius:var(--p-border-radius-1);border-bottom-right-radius:var(--p-border-radius-1);}.Polaris-ActionList__Item.Polaris-ActionList--disabled{background-image:none;color:var(--p-text-disabled);}.Polaris-ActionList__Item.Polaris-ActionList--disabled .Polaris-ActionList__Prefix svg,.Polaris-ActionList__Item.Polaris-ActionList--disabled .Polaris-ActionList__Suffix svg{fill:var(--p-icon-disabled);}.Polaris-ActionList__Content{display:flex;align-items:center;}.Polaris-ActionList__Text{min-width:0;max-width:100%;flex:1 1 auto;}.Polaris-Box--listReset{list-style-type:none;margin-block-start:0;margin-block-end:0;outline:none;padding-inline-start:0;}.Polaris-Box{--pc-box-padding-block-end-xs:initial;--pc-box-padding-block-end-sm:initial;--pc-box-padding-block-end-md:initial;--pc-box-padding-block-end-lg:initial;--pc-box-padding-block-end-xl:initial;padding-block-end:var(--pc-box-padding-block-end-xs);--pc-box-padding-block-start-xs:initial;--pc-box-padding-block-start-sm:initial;--pc-box-padding-block-start-md:initial;--pc-box-padding-block-start-lg:initial;--pc-box-padding-block-start-xl:initial;padding-block-start:var(--pc-box-padding-block-start-xs);--pc-box-padding-inline-start-xs:initial;--pc-box-padding-inline-start-sm:initial;--pc-box-padding-inline-start-md:initial;--pc-box-padding-inline-start-lg:initial;--pc-box-padding-inline-start-xl:initial;padding-inline-start:var(--pc-box-padding-inline-start-xs);--pc-box-padding-inline-end-xs:initial;--pc-box-padding-inline-end-sm:initial;--pc-box-padding-inline-end-md:initial;--pc-box-padding-inline-end-lg:initial;--pc-box-padding-inline-end-xl:initial;padding-inline-end:var(--pc-box-padding-inline-end-xs);--pc-box-shadow:initial;--pc-box-background:initial;--pc-box-border-radius:initial;--pc-box-border-radius-end-start:initial;--pc-box-border-radius-end-end:initial;--pc-box-border-radius-start-start:initial;--pc-box-border-radius-start-end:initial;--pc-box-border:initial;--pc-box-border-block-end:initial;--pc-box-border-inline-start:initial;--pc-box-border-inline-end:initial;--pc-box-border-block-start:initial;--pc-box-color:initial;--pc-box-min-height:initial;--pc-box-min-width:initial;--pc-box-max-width:initial;--pc-box-overflow-x:initial;--pc-box-overflow-y:initial;--pc-box-width:initial;--pc-box-border-width:var(--p-border-width-1);--pc-box-inset-block-start:initial;--pc-box-inset-block-end:initial;--pc-box-inset-inline-start:initial;--pc-box-inset-inline-end:initial;inset-block-start:var(--pc-box-inset-block-start);inset-block-end:var(--pc-box-inset-block-end);inset-inline-start:var(--pc-box-inset-inline-start);inset-inline-end:var(--pc-box-inset-inline-end);background-color:var(--pc-box-background);box-shadow:var(--pc-box-shadow);border-radius:var(--pc-box-border-radius);border-end-start-radius:var( --pc-box-border-radius-end-start,var(--pc-box-border-radius) );border-end-end-radius:var( --pc-box-border-radius-end-end,var(--pc-box-border-radius) );border-start-start-radius:var( --pc-box-border-radius-start-start,var(--pc-box-border-radius) );border-start-end-radius:var( --pc-box-border-radius-start-end,var(--pc-box-border-radius) );border-block-end:var(--pc-box-border-block-end,var(--pc-box-border));border-inline-start:var( --pc-box-border-inline-start,var(--pc-box-border) );border-inline-end:var(--pc-box-border-inline-end,var(--pc-box-border));border-block-start:var(--pc-box-border-block-start,var(--pc-box-border));border-block-start-width:var( --pc-box-border-block-start-width,var(--pc-box-border-width) );border-block-end-width:var( --pc-box-border-block-end-width,var(--pc-box-border-width) );border-inline-start-width:var( --pc-box-border-inline-start-width,var(--pc-box-border-width) );border-inline-end-width:var( --pc-box-border-inline-end-width,var(--pc-box-border-width) );color:var(--pc-box-color);min-height:var(--pc-box-min-height);min-width:var(--pc-box-min-width);max-width:var(--pc-box-max-width);overflow-x:var(--pc-box-overflow-x);overflow-y:var(--pc-box-overflow-y);width:var(--pc-box-width);-webkit-overflow-scrolling:touch;}.Polaris-Button{--pc-button-slim-min-height:1.75rem;--pc-button-large-min-height:2.75rem;--pc-button-vertical-padding:calc( (2.25rem - 1.25rem - var(--p-space-05)) / 2 );--pc-button-slim-vertical-padding:calc( ( var(--pc-button-slim-min-height) - 1.25rem - var(--p-space-05) ) / 2 );--pc-button-large-vertical-padding:calc( ( var(--pc-button-large-min-height) - 1.25rem - var(--p-space-05) ) / 2 );--pc-button-spinner-size:1.25rem;--pc-button-segment:10;--pc-button-focused:20;--pc-button-disclosure-icon-offset:-0.375rem;position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:2.25rem;min-width:2.25rem;margin:0;padding:calc( (2.25rem - 1.25rem - var(--p-space-05)) / 2 ) var(--p-space-4);background:var(--p-surface);box-shadow:var(--p-shadow-button);border-radius:var(--p-border-radius-1);color:var(--p-text);border:var(--p-border-width-1) solid var(--p-border-neutral-subdued);border-top-color:var(--p-border-subdued);border-bottom-color:var(--p-border-shadow-subdued);line-height:1;text-align:center;cursor:pointer;user-select:none;text-decoration:none;-webkit-tap-highlight-color:transparent;}.Polaris-Button svg{fill:var(--p-icon);}.Polaris-Button::after{content:'';position:absolute;z-index:1;top:calc(var(--p-border-width-1) * -1 + -0.0625rem);right:calc(var(--p-border-width-1) * -1 + -0.0625rem);bottom:calc(var(--p-border-width-1) * -1 + -0.0625rem);left:calc(var(--p-border-width-1) * -1 + -0.0625rem);display:block;pointer-events:none;box-shadow:0 0 0 calc(var(--p-border-width-1) * -1 + -0.0625rem) var(--p-focused);transition:box-shadow var(--p-duration-100) cubic-bezier(0.25,0.1,0.25,1);border-radius:var(--p-border-radius-1);}.Polaris-Button:hover{background:var(--p-action-secondary-hovered);outline:var(--p-border-width-1) solid transparent;}.Polaris-Button:focus{box-shadow:var(--p-shadow-button);outline:0;}.Polaris-Button:focus::after{box-shadow:0 0 0 0.125rem var(--p-focused);outline:var(--p-border-width-1) solid transparent;}.Polaris-Button:active{background:var(--p-action-secondary-pressed);box-shadow:var(--p-shadow-button);}.Polaris-Button:active::after{border:none;box-shadow:none;}.Polaris-Button.Polaris-Button--pressed{background:var(--p-action-secondary-depressed);box-shadow:inset 0 0.0625rem 0 rgba(0,0,0,0.15);color:var(--p-text-on-primary);border-color:var(--p-border-depressed);}.Polaris-Button.Polaris-Button--pressed svg{fill:currentColor;}@media (-ms-high-contrast:active){.Polaris-Button{border:var(--p-border-width-1) solid windowText;}}.Polaris-Button__Content{font-size:0.875rem;font-weight:500;line-height:1rem;text-transform:initial;letter-spacing:initial;position:relative;display:flex;justify-content:center;align-items:center;min-width:0.0625rem;min-height:0.0625rem;}.Polaris-Button:not(.Polaris-Button--plain) .Polaris-Button__Content{width:100%;}.Polaris-Button__Icon{margin-left:calc((var(--p-space-1)) * -1);}.Polaris-Button__Icon:last-child{margin-right:var(--pc-button-disclosure-icon-offset);margin-left:var(--p-space-1);}.Polaris-Button__Icon + *:not(.Polaris-Button__Icon){margin-left:var(--p-space-1);}.Polaris-Button--sizeSlim{min-height:var(--pc-button-slim-min-height);padding:var(--pc-button-slim-vertical-padding) var(--p-space-3);}[data-buttongroup-segmented='true'] .Polaris-Button,[data-buttongroup-segmented='true'] .Polaris-Button::after{border-radius:0;}[data-buttongroup-segmented='true'] > :first-child .Polaris-Button,[data-buttongroup-segmented='true'] > :first-child .Polaris-Button::after{border-radius:0;border-top-left-radius:var(--p-border-radius-1);border-bottom-left-radius:var(--p-border-radius-1);}[data-buttongroup-segmented='true'] > :last-child .Polaris-Button,[data-buttongroup-segmented='true'] > :last-child .Polaris-Button::after{border-radius:0;border-top-right-radius:var(--p-border-radius-1);border-bottom-right-radius:var(--p-border-radius-1);}[data-buttongroup-segmented='true'] > :last-child:first-child .Polaris-Button,[data-buttongroup-segmented='true'] > :last-child:first-child .Polaris-Button::after{border-radius:var(--p-border-radius-1);}[data-buttongroup-connected-top='true'] > :first-child .Polaris-Button,[data-buttongroup-connected-top='true'] > :first-child .Polaris-Button::after{border-top-left-radius:0;}[data-buttongroup-connected-top='true'] > :last-child .Polaris-Button,[data-buttongroup-connected-top='true'] > :last-child .Polaris-Button::after{border-top-right-radius:0;}[data-buttongroup-full-width='true'] .Polaris-Button{display:flex;width:100%;}.Polaris-Stack{--pc-stack-spacing:var(--p-space-4);display:flex;flex-wrap:wrap;align-items:stretch;margin-top:calc(var(--pc-stack-spacing) * -1);margin-left:calc(var(--pc-stack-spacing) * -1);}.Polaris-Stack > .Polaris-Stack__Item{margin-top:var(--pc-stack-spacing);margin-left:var(--pc-stack-spacing);max-width:100%;}.Polaris-Stack--noWrap{flex-wrap:nowrap;}.Polaris-Stack--spacingNone{--pc-stack-spacing:0;}.Polaris-Stack--alignmentCenter{align-items:center;}.Polaris-Stack__Item{flex:0 0 auto;min-width:0;}.Polaris-Inline{--pc-inline-gap-xs:initial;--pc-inline-gap-sm:initial;--pc-inline-gap-md:initial;--pc-inline-gap-lg:initial;--pc-inline-gap-xl:initial;gap:var(--pc-inline-gap-xs);display:flex;flex-wrap:var(--pc-inline-wrap);align-items:var(--pc-inline-block-align);justify-content:var(--pc-inline-align);}.Polaris-BulkActions__Group{--p-surface:var(--p-surface-dark);--p-text:var(--p-text-on-dark);--p-icon:var(--p-text-on-dark);--p-border-neutral-subdued:var(--p-border-on-dark);--p-border-subdued:var(--p-border-on-dark);--p-border-shadow-subdued:var(--p-border-on-dark);--p-action-secondary-hovered:var(--p-surface-hovered-dark);--p-action-secondary-pressed:var( --p-surface-pressed-dark );font-size:1rem;font-weight:400;line-height:1.5rem;border:none;text-transform:initial;letter-spacing:initial;display:flex;align-items:center;flex-wrap:wrap;opacity:0;width:100%;justify-content:center;transition:var(--p-duration-100) cubic-bezier(0.25,0.1,0.25,1);transition-property:transform,opacity;transform:translateY(7.5rem);padding:0 var(--p-space-4);backface-visibility:hidden;will-change:transform,opacity;}@media (min-width:48em){.Polaris-BulkActions__Group{font-size:0.875rem;}}.Polaris-BulkActions__Group.Polaris-BulkActions--groupNotSticky{transform:none;opacity:1;}.Polaris-BulkActions__Group.Polaris-BulkActions__Group--entering,.Polaris-BulkActions__Group.Polaris-BulkActions__Group--exiting{opacity:0;display:flex;}.Polaris-BulkActions__Group.Polaris-BulkActions__Group--entered{opacity:1;display:flex;transform:translateY(0);}.Polaris-BulkActions__Group.Polaris-BulkActions__Group--exited{opacity:0;display:none;}.Polaris-BulkActions__Group.Polaris-BulkActions__Group--measuring{transition:none;display:flex;opacity:0;}.Polaris-BulkActions__ButtonGroupWrapper{width:auto;justify-content:flex-start;padding:var(--p-space-4);background:var(--p-surface);border-radius:var(--p-border-radius-2);box-shadow:var(--p-shadow-deep),var(--p-shadow-popover);max-width:100%;pointer-events:auto;margin-top:1rem;}.Polaris-BulkActions__Group--measuring .Polaris-BulkActions__ButtonGroupWrapper{position:absolute;width:auto;}.Polaris-BulkActions__BulkActionButton{white-space:nowrap;}.Polaris-BulkActions__BulkActionButton button{display:flex;}.Polaris-BulkActions__BulkActionButton button:hover{background-color:#666666;}.Polaris-BulkActions__BulkActionButton button:active{background-color:#666666 !important;}.Polaris-BulkActions--disabled{transition:none;box-shadow:none;border-color:var(--p-border-disabled);background:var(--p-surface-disabled);color:var(--p-text-disabled);cursor:default;pointer-events:none;}.Polaris-BulkActions--disabled svg{fill:var(--p-icon-disabled);}.Polaris-IndexTable{--pc-index-table-translate-offset:2.1875rem;--pc-index-table-table-header-offset:2.25rem;--pc-index-table-cell:1;--pc-index-table-sticky-cell:31;--pc-index-table-scroll-bar:35;--pc-index-table-bulk-actions:36;--pc-index-table-loading-panel:37;position:relative;border-radius:inherit;}.Polaris-IndexTable__IndexTableWrapper{border-radius:inherit;}.Polaris-IndexTable__IndexTableWrapperWithBulkActions{--pc-index-table-bulk-actions-offset:5.75rem;border-radius:0;}.Polaris-IndexTable__LoadingContainer--enter{opacity:0;transform:translateY(-100%);}.Polaris-IndexTable--loadingContainerEnterActive{opacity:1;transition:opacity var(--p-duration-100) cubic-bezier(0,0,0.58,1),transform var(--p-duration-100) cubic-bezier(0,0,0.58,1);transform:translateY(0);}.Polaris-IndexTable__LoadingContainer--exit{opacity:1;transform:translateY(0);}.Polaris-IndexTable--loadingContainerExitActive{opacity:0;transform:translateY(-100%);transition:opacity var(--p-duration-100) cubic-bezier(0.42,0,1,1),transform var(--p-duration-100) cubic-bezier(0.42,0,1,1);}.Polaris-IndexTable__LoadingPanel{position:absolute;z-index:var(--pc-index-table-loading-panel);top:0;left:0;display:flex;width:100%;justify-content:center;align-items:center;background:var(--p-surface);padding:var(--p-space-2) var(--p-space-4);box-shadow:var(--p-shadow-base);}.Polaris-IndexTable__LoadingPanel .Polaris-IndexTable__LoadingPanelRow{display:flex;flex-wrap:nowrap;width:100%;background:var(--p-surface-highlight-subdued);padding:var(--p-space-2);padding-bottom:var(--p-space-1);border-radius:var(--p-border-radius-1);}.Polaris-IndexTable__LoadingPanelText{margin-left:var(--p-space-3);color:var(--p-text);}.Polaris-IndexTable__Table{width:100%;min-width:100%;border-collapse:collapse;}.Polaris-IndexTable__Table--scrolling .Polaris-IndexTable__TableCell--first,.Polaris-IndexTable__Table--scrolling .Polaris-IndexTable__TableCell--first + .Polaris-IndexTable__TableCell,.Polaris-IndexTable__Table--scrolling .Polaris-IndexTable__TableHeading--first,.Polaris-IndexTable__Table--scrolling .Polaris-IndexTable__TableHeading--second{visibility:visible;background-color:var(--p-surface);}.Polaris-IndexTable__Table--scrolling .Polaris-IndexTable__TableCell--first,.Polaris-IndexTable__Table--scrolling .Polaris-IndexTable__TableHeading--first{filter:drop-shadow(0.0625rem 0 0 var(--p-divider));}@media (min-width:30.625em){.Polaris-IndexTable__Table--scrolling.Polaris-IndexTable__Table--sticky .Polaris-IndexTable__TableCell--first + .Polaris-IndexTable__TableCell,.Polaris-IndexTable__Table--scrolling.Polaris-IndexTable__Table--sticky .Polaris-IndexTable__TableHeading--second{filter:drop-shadow(0.0625rem 0 0 var(--p-divider));}}.Polaris-IndexTable__Table--scrolling.Polaris-IndexTable__Table--sticky.Polaris-IndexTable__Table--unselectable .Polaris-IndexTable__TableHeading--second,.Polaris-IndexTable__Table--scrolling.Polaris-IndexTable__Table--sticky.Polaris-IndexTable__Table--unselectable .Polaris-IndexTable__TableCell:first-child{filter:drop-shadow(0.0625rem 0 0 var(--p-divider));}.Polaris-IndexTable__Table--scrolling.Polaris-IndexTable__Table--unselectable .Polaris-IndexTable__TableHeading--second,.Polaris-IndexTable__Table--scrolling.Polaris-IndexTable__Table--unselectable .Polaris-IndexTable__TableCell:first-child{visibility:visible;}.Polaris-IndexTable__TableRow{background-color:var(--p-surface);cursor:pointer;box-shadow:inset 0 -0.0625rem 0 #d4d5d8;}.Polaris-IndexTable__TableRow.Polaris-IndexTable__TableRow--unclickable{cursor:auto;}.Polaris-IndexTable__TableRow.Polaris-IndexTable--statusSuccess,.Polaris-IndexTable__TableRow.Polaris-IndexTable--statusSuccess .Polaris-IndexTable__TableCell--first,.Polaris-IndexTable__TableRow.Polaris-IndexTable--statusSuccess .Polaris-IndexTable__TableCell--first + .Polaris-IndexTable__TableCell{background-color:var(--p-surface-primary-selected);}.Polaris-IndexTable__TableRow.Polaris-IndexTable--statusSubdued,.Polaris-IndexTable__TableRow.Polaris-IndexTable--statusSubdued .Polaris-IndexTable__TableCell--first,.Polaris-IndexTable__TableRow.Polaris-IndexTable--statusSubdued .Polaris-IndexTable__TableCell--first + .Polaris-IndexTable__TableCell{background-color:var(--p-surface-subdued);}.Polaris-IndexTable__TableRow.Polaris-IndexTable__TableRow--hovered,.Polaris-IndexTable__TableRow.Polaris-IndexTable__TableRow--hovered .Polaris-IndexTable__TableCell--first,.Polaris-IndexTable__TableRow.Polaris-IndexTable__TableRow--hovered .Polaris-IndexTable__TableCell--first + .Polaris-IndexTable__TableCell{background-color:#eaf9ff;}.Polaris-IndexTable__TableRow.Polaris-IndexTable__TableRow--selected,.Polaris-IndexTable__TableRow.Polaris-IndexTable__TableRow--selected .Polaris-IndexTable__TableHeading--first,.Polaris-IndexTable__TableRow.Polaris-IndexTable__TableRow--selected .Polaris-IndexTable__TableHeading--second,.Polaris-IndexTable__TableRow.Polaris-IndexTable__TableRow--selected .Polaris-IndexTable__TableCell--first,.Polaris-IndexTable__TableRow.Polaris-IndexTable__TableRow--selected .Polaris-IndexTable__TableCell--first + .Polaris-IndexTable__TableCell{background-color:#eaf9ff;}.Polaris-IndexTable__TableRow.Polaris-IndexTable__TableRow--hovered.Polaris-IndexTable__TableRow--selected,.Polaris-IndexTable__TableRow.Polaris-IndexTable__TableRow--hovered.Polaris-IndexTable__TableRow--selected .Polaris-IndexTable__TableCell--first,.Polaris-IndexTable__TableRow.Polaris-IndexTable__TableRow--hovered.Polaris-IndexTable__TableRow--selected .Polaris-IndexTable__TableCell--first + .Polaris-IndexTable__TableCell{background-color:#eaf9ff;}.Polaris-IndexTable__TableRow--subdued{color:var(--p-text-subdued);}.Polaris-IndexTable__TableRow--disabled{cursor:default;color:var(--p-text-subdued);}.Polaris-IndexTable__TableHeading{background:#f8fafc;padding:var(--p-space-2) var(--p-space-4);text-align:left;font-weight:600;color:#2d2d2d;font-size:1rem;line-height:1.5rem;letter-spacing:0.01563rem;white-space:nowrap;border:0;box-shadow:inset 0 -0.0625rem 0 #d4d5d8;font-family:'Noto Sans TC','Noto Sans SC','Noto Sans KR','Noto Sans JP','Noto Sans',sans-serif;}.Polaris-IndexTable__TableHeading--sortable{background:var(--p-surface-subdued);}.Polaris-IndexTable__TableHeading--flush{padding:0;}.Polaris-IndexTable__TableHeading--first{--pc-index-table-checkbox-offset-left:1rem;--pc-index-table-checkbox-offset-right:1.125rem;position:sticky;left:0;padding-left:var(--pc-index-table-checkbox-offset-left);padding-right:var(--pc-index-table-checkbox-offset-right);width:var(--p-space-5);}.Polaris-IndexTable__TableHeadingSortButton{position:static;background:none;padding:0;border:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-weight:500;color:var(--p-text-subdued);font-size:0.75rem;}.Polaris-IndexTable__TableHeadingSortButton:hover .Polaris-IndexTable__TableHeadingSortIcon,.Polaris-IndexTable__TableHeadingSortButton:focus .Polaris-IndexTable__TableHeadingSortIcon{opacity:1;}.Polaris-IndexTable__TableHeadingSortIcon{order:1;opacity:0;height:var(--p-space-5);width:var(--p-space-5);transition:opacity 200ms cubic-bezier(0.42,0,1,1) var(--p-duration-100);}.Polaris-IndexTable__TableHeadingSortIcon--visible{opacity:1;}.Polaris-IndexTable__TableHeadingSortSvg{display:block;width:100%;max-width:100%;max-height:100%;}.Polaris-IndexTable__ColumnHeaderCheckboxWrapper{display:flex;}.Polaris-IndexTable__FirstStickyHeaderElement{padding-right:var(--p-space-05);}.Polaris-IndexTable__TableHeading--second:not( .Polaris-IndexTable__TableHeading--unselectable ){padding-left:var(--p-space-4);}.Polaris-IndexTable__TableCell{z-index:var(--pc-index-table-cell);text-align:left;padding:var(--p-space-2) var(--p-space-4);white-space:nowrap;}.Polaris-IndexTable__TableCell--flush{padding:0;}.Polaris-IndexTable__TableCell--first{position:sticky;left:0;z-index:var(--pc-index-table-sticky-cell);padding:var(--p-space-2) 0;vertical-align:middle;}.Polaris-IndexTable__TableCell--first + .Polaris-IndexTable__TableCell{left:var(--pc-checkbox-offset);padding-left:0;}@media (min-width:30.625em){.Polaris-IndexTable__Table--sticky .Polaris-IndexTable__TableCell--first + .Polaris-IndexTable__TableCell{position:sticky;z-index:var(--pc-index-table-sticky-cell);}}@media (min-width:30.625em){.Polaris-IndexTable__Table--sticky .Polaris-IndexTable__TableHeading--second:not( .Polaris-IndexTable__TableHeading--unselectable ){position:sticky;z-index:auto;left:0;}}.Polaris-IndexTable__Table--sticky .Polaris-IndexTable__TableHeading--second.Polaris-IndexTable__TableHeading--unselectable{position:sticky;z-index:auto;left:0;}.Polaris-IndexTable__Table--unselectable.Polaris-IndexTable__Table--sticky .Polaris-IndexTable__TableCell:first-child{left:0;background-color:var(--p-surface);z-index:var(--pc-index-table-sticky-cell);position:sticky;}.Polaris-IndexTable__Table--unselectable .Polaris-IndexTable--statusSuccess .Polaris-IndexTable__TableCell:first-child{background-color:var(--p-surface-primary-selected);}.Polaris-IndexTable__Table--unselectable .Polaris-IndexTable--statusSubdued .Polaris-IndexTable__TableCell:first-child{background-color:var(--p-surface-subdued);}.Polaris-IndexTable__Table--unselectable .Polaris-IndexTable__TableRow--hovered .Polaris-IndexTable__TableCell:first-child{background-color:var(--p-surface-hovered);}@media (min-width:30.625em){.Polaris-IndexTable--tableStickyScrolling .Polaris-IndexTable__TableCell:last-child,.Polaris-IndexTable--tableStickyScrolling .Polaris-IndexTable__TableHeading--last{filter:drop-shadow(-0.0625rem 0 0 var(--p-divider));}}@media (min-width:30.625em){.Polaris-IndexTable--tableStickyLast .Polaris-IndexTable__TableCell:last-child{position:sticky;right:0;background-color:var(--p-surface);z-index:var(--pc-index-table-sticky-cell);}}@media (min-width:30.625em){.Polaris-IndexTable--tableStickyLast .Polaris-IndexTable__TableHeading--last{position:sticky;right:0;background-color:var(--p-surface);z-index:auto;}}.Polaris-IndexTable--tableStickyLast .Polaris-IndexTable--statusSuccess .Polaris-IndexTable__TableCell:last-child{background-color:var(--p-surface-primary-selected);}.Polaris-IndexTable--tableStickyLast .Polaris-IndexTable--statusSubdued .Polaris-IndexTable__TableCell:last-child{background-color:var(--p-surface-subdued);}.Polaris-IndexTable--tableStickyLast .Polaris-IndexTable__TableRow--hovered .Polaris-IndexTable__TableCell:last-child{background-color:var(--p-surface-hovered);}.Polaris-IndexTable--tableStickyLast .Polaris-IndexTable__TableRow--selected .Polaris-IndexTable__TableCell:last-child{background-color:var(--p-surface-selected);}.Polaris-IndexTable__Table--sortable .Polaris-IndexTable__TableHeading{background-color:var(--p-surface-subdued);}.Polaris-IndexTable__StickyTable{position:relative;top:0;left:0;right:0;visibility:hidden;z-index:var(--pc-index-table-loading-panel);}.Polaris-IndexTable__StickyTableHeader{position:absolute;display:flex;width:100%;}.Polaris-IndexTable__StickyTableHeader:not( .Polaris-IndexTable__StickyTableHeader--isSticky ){top:-62.5rem;left:-62.5rem;}.Polaris-IndexTable__StickyTableColumnHeader{flex:0 0 auto;}.Polaris-IndexTable__StickyTableHeadings{overflow:hidden;flex:1 1 auto;display:flex;}.Polaris-IndexTable__StickyTableHeading--second{padding-left:0;}@media (min-width:30.625em){.Polaris-IndexTable__StickyTableHeading--second{display:none;}}.Polaris-IndexTable__StickyTableHeading--second.Polaris-IndexTable--unselectable{display:none;}.Polaris-IndexTable--stickyTableHeadingSecondScrolling{padding:0 var(--p-space-025) 0 var(--p-space-4);display:none;}@media (min-width:30.625em){.Polaris-IndexTable--stickyTableHeadingSecondScrolling{display:block;}}.Polaris-IndexTable__StickyTableHeader--isSticky{visibility:visible;background-color:var(--p-surface);box-shadow:var(--p-shadow-base);}.Polaris-IndexTable:hover .Polaris-IndexTable__ScrollLeft{display:block;}.Polaris-IndexTable:hover .Polaris-IndexTable__ScrollRight{display:block;}.Polaris-IndexTable .Polaris-IndexTable__ScrollRight--onboarding{display:block;}.Polaris-IndexTable__BulkActionsWrapper{visibility:visible;position:absolute;z-index:var(--pc-index-table-bulk-actions);left:0;width:100%;display:flex;align-items:center;justify-content:center;pointer-events:none;}.Polaris-IndexTable__BulkActionsWrapperSticky{position:fixed;top:auto;bottom:calc(2.5rem - var(--p-space-1));}.Polaris-IndexTable__SelectAllActionsWrapper{visibility:visible;position:relative;z-index:var(--pc-index-table-bulk-actions);top:0;left:0;right:0;padding:0 var(--p-space-2) 0 calc(var(--p-space-3) - var(--p-space-025));background:#f8fafc;}.Polaris-IndexTable__SelectAllActionsWrapper.Polaris-IndexTable__StickyTableHeader--condensed{padding-top:calc(var(--p-space-2) + var(--p-space-05));}.Polaris-IndexTable__ScrollBarContainer{position:sticky;z-index:var(--pc-index-table-scroll-bar);bottom:0;padding:var(--p-space-05);background-color:var(--p-surface);border-bottom-right-radius:var(--p-border-radius-2);border-bottom-left-radius:var(--p-border-radius-2);}.Polaris-IndexTable--scrollBarContainerCondensed{visibility:hidden;pointer-events:none;}.Polaris-IndexTable--scrollBarContainerHidden{display:none;}.Polaris-IndexTable__ScrollBar{overflow-x:scroll;width:100%;margin:0;padding:0;}.Polaris-IndexTable__ScrollBar::-webkit-scrollbar-track{border-radius:var(--p-border-radius-1);background-color:transparent;}.Polaris-IndexTable__ScrollBar::-webkit-scrollbar{appearance:none;height:var(--p-space-2);width:var(--p-space-2);background-color:transparent;}.Polaris-IndexTable__ScrollBar::-webkit-scrollbar-thumb{border-radius:var(--p-border-radius-1);background-color:var(--p-border-neutral-subdued);transition:background-color var(--p-duration-100) cubic-bezier(0,0,0.58,1);}.Polaris-IndexTable__ScrollBar:hover::-webkit-scrollbar-thumb{background-color:var(--p-border-depressed);}.Polaris-IndexTable--disableTextSelection{user-select:none;}.Polaris-IndexTable--selectMode{transform:translateY(calc(var(--pc-index-table-table-header-offset) * -1));margin-bottom:calc(var(--pc-index-table-table-header-offset) * -1);}.Polaris-IndexTable__EmptySearchResultWrapper{padding:var(--p-space-4);}.Polaris-IndexTable--condensedRow{width:calc(100% + var(--pc-index-table-translate-offset));transform:translateX(calc(var(--pc-index-table-translate-offset) * -1));transition:transform cubic-bezier(0.25,0.1,0.25,1) 200ms;display:flex;border-top:var(--p-border-divider);filter:none;align-items:center;}[data-selectmode='true'] .Polaris-IndexTable--condensedRow{transform:none;}.Polaris-IndexTable__CondensedList{list-style-type:none;margin:0;padding:0;overflow:hidden;}.Polaris-IndexTable__HeaderWrapper{position:relative;display:flex;align-items:center;width:100%;min-height:3.25rem;padding:var(--p-space-2) var(--p-space-4);background-color:var(--p-surface);}.Polaris-IndexTable__HeaderWrapper.Polaris-IndexTable--unselectable{min-height:auto;padding:0;}.Polaris-IndexTable__StickyTable--condensed{visibility:visible;}.Polaris-IndexTable__StickyTableHeader--condensed{padding:var(--p-space-4) var(--p-space-4) var(--p-space-2);}.Polaris-IndexTable__ScrollBarContent{height:0.0625rem;width:var(--pc-index-table-scroll-bar-content-width);}.Polaris-IndexTable-Checkbox__TableCellContentContainer{display:flex;align-items:center;}.Polaris-IndexTable-Checkbox__Wrapper{display:flex;justify-content:center;align-items:center;}.Polaris-IndexTable-Checkbox--expanded{width:2.25rem;height:1.25rem;padding-left:var(--p-space-4);}.Polaris-IndexTable-Checkbox--condensed{min-width:3.125rem;min-height:2.75rem;margin-right:calc(var(--p-space-4) * -1);}.Polaris-IndexTable-ScrollContainer{overflow-x:auto;overscroll-behavior-x:contain;-ms-overflow-style:none;scrollbar-width:none;border-radius:inherit;}.Polaris-IndexTable-ScrollContainer::-webkit-scrollbar{display:none;}.Polaris-CheckableButton{color:var(--p-text);font-size:0.75rem;font-weight:500;line-height:1rem;text-transform:initial;letter-spacing:initial;display:flex;align-items:center;min-height:2.25rem;min-width:2.25rem;margin:0;padding:calc( (2.375rem - 1.25rem - var(--p-space-05)) / 2 ) var(--p-space-1) calc((2.375rem - 1.25rem - var(--p-space-05)) / 2) var(--p-space-4);cursor:pointer;user-select:none;text-decoration:none;text-align:left;border-radius:0.1875rem;width:auto;}.Polaris-CheckableButton:hover,.Polaris-CheckableButton:active{background:transparent;}.Polaris-CheckableButton:focus{outline:none;}.Polaris-CheckableButton__Checkbox{pointer-events:none;height:1.25rem;width:1.25rem;margin-left:calc( var(--p-space-2) * -1 - 0.125rem - var(--p-border-width-1) );}.Polaris-CheckableButton__Label{flex:1 1;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis;font-size:1rem;font-weight:600;font-family:'Noto Sans TC','Noto Sans SC','Noto Sans KR','Noto Sans JP','Noto Sans',sans-serif;padding:var(--p-space-025) 0;margin-left:calc(var(--p-space-5) - 0.125rem);}.Polaris-SelectAllActions{display:flex;gap:var(--p-space-025);align-items:center;justify-content:flex-start;backface-visibility:hidden;will-change:opacity;}.Polaris-SelectAllActions__SelectAllActions--entering,.Polaris-SelectAllActions__SelectAllActions--exiting{opacity:0;display:flex;}.Polaris-SelectAllActions__SelectAllActions--entered{opacity:1;display:flex;}.Polaris-SelectAllActions__SelectAllActions--exited{opacity:0;display:none;}.Polaris-SelectAllActions__PaginatedSelectAll{font-size:0.75rem;font-weight:600;}.Polaris-SelectAllActions__AllAction{font-size:0.75rem;font-weight:600;border:0;background:none;padding:0;cursor:pointer;color:var(--p-interactive);position:relative;}.Polaris-SelectAllActions__AllAction::after{content:'';position:absolute;z-index:1;top:-0.0625rem;right:-0.0625rem;bottom:-0.0625rem;left:-0.0625rem;display:block;pointer-events:none;box-shadow:0 0 0 -0.0625rem var(--p-focused);transition:box-shadow var(--p-duration-100) cubic-bezier(0.25,0.1,0.25,1);border-radius:var(--p-border-radius-1);}.Polaris-SelectAllActions__AllAction:hover,.Polaris-SelectAllActions__AllAction:focus{color:var(--p-interactive-hovered);}.Polaris-SelectAllActions__AllAction:active{color:var(--p-interactive-pressed);}.Polaris-SelectAllActions__AllAction:focus::after{content:none;}.Polaris-SelectAllActions__AllAction:focus:not(:active)::after{box-shadow:0 0 0 0.125rem var(--p-focused);outline:var(--p-border-width-1) solid transparent;}"]);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledButtonGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const StyledButton: import("styled-components").StyledComponent<(
|
|
3
|
+
export declare const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../..").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
@@ -4,4 +4,4 @@ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
|
|
|
4
4
|
prefix?: React.ReactNode;
|
|
5
5
|
suffix?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const Input:
|
|
7
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
package/es/@next/Input/Input.js
CHANGED
|
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutP
|
|
|
3
3
|
var _excluded = ["error", "disabled", "prefix", "suffix"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { StyledContainer, StyledInput, StyledPrefixContainer, StyledSuffixContainer } from './InputStyle';
|
|
6
|
-
export var Input = function Input(_ref) {
|
|
6
|
+
export var Input = /*#__PURE__*/React.forwardRef(function Input(_ref, ref) {
|
|
7
7
|
var error = _ref.error,
|
|
8
8
|
disabled = _ref.disabled,
|
|
9
9
|
prefix = _ref.prefix,
|
|
@@ -18,10 +18,11 @@ export var Input = function Input(_ref) {
|
|
|
18
18
|
return hasSuffix ? /*#__PURE__*/React.createElement(StyledSuffixContainer, null, suffix) : null;
|
|
19
19
|
};
|
|
20
20
|
return /*#__PURE__*/React.createElement(StyledContainer, {
|
|
21
|
+
ref: ref,
|
|
21
22
|
"data-prefix": hasPrefix,
|
|
22
23
|
"data-error": error,
|
|
23
24
|
"data-disabled": disabled
|
|
24
25
|
}, /*#__PURE__*/React.createElement(Prefix, null), /*#__PURE__*/React.createElement(StyledInput, _extends({
|
|
25
26
|
disabled: disabled
|
|
26
27
|
}, props)), /*#__PURE__*/React.createElement(Suffix, null));
|
|
27
|
-
};
|
|
28
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { InputProps } from '../Input/Input';
|
|
3
3
|
export declare type NumberInputProps = Omit<InputProps, 'type' | 'prefix'>;
|
|
4
|
-
export declare const NumberInput:
|
|
4
|
+
export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -6,8 +6,9 @@ var StyledInput = styled(Input).withConfig({
|
|
|
6
6
|
displayName: "NumberInput__StyledInput",
|
|
7
7
|
componentId: "sc-1f5ws9y-0"
|
|
8
8
|
})(["&[type='number']{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;}&[type='number']::-webkit-inner-spin-button,&[type='number']::-webkit-outer-spin-button{-webkit-appearance:none;}"]);
|
|
9
|
-
export var NumberInput = function NumberInput(props) {
|
|
9
|
+
export var NumberInput = /*#__PURE__*/React.forwardRef(function NumberInput(props, ref) {
|
|
10
10
|
return /*#__PURE__*/React.createElement(StyledInput, _extends({
|
|
11
|
+
ref: ref,
|
|
11
12
|
type: "number"
|
|
12
13
|
}, props));
|
|
13
|
-
};
|
|
14
|
+
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { PaginationProps } from './paginationUtils';
|
|
3
|
-
export declare const Pagination:
|
|
3
|
+
export declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -6,7 +6,7 @@ import { PageButton } from './PageButton';
|
|
|
6
6
|
import { StyledNav } from './PaginationStyle';
|
|
7
7
|
import { defaultBufferSize, defaultPageSize, getAllPages, getBufferSize } from './paginationUtils';
|
|
8
8
|
import { NextStepper, PreviousStepper } from './Stepper';
|
|
9
|
-
export var Pagination = function Pagination(_ref) {
|
|
9
|
+
export var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(_ref, ref) {
|
|
10
10
|
var _ref$totalItems = _ref.totalItems,
|
|
11
11
|
totalItems = _ref$totalItems === void 0 ? 1 : _ref$totalItems,
|
|
12
12
|
_ref$currentPage = _ref.currentPage,
|
|
@@ -118,5 +118,7 @@ export var Pagination = function Pagination(_ref) {
|
|
|
118
118
|
disabled: !hasNext || disabled,
|
|
119
119
|
onClick: handlePagerClick
|
|
120
120
|
}));
|
|
121
|
-
return /*#__PURE__*/React.createElement(StyledNav,
|
|
122
|
-
|
|
121
|
+
return /*#__PURE__*/React.createElement(StyledNav, {
|
|
122
|
+
ref: ref
|
|
123
|
+
}, pageList);
|
|
124
|
+
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { PageButtonProps } from './PageButton';
|
|
3
3
|
export declare const StyledNav: import("styled-components").StyledComponent<"nav", any, {}, never>;
|
|
4
4
|
export declare const SimplePaginationStyledNav: import("styled-components").StyledComponent<"nav", any, {}, never>;
|
|
5
5
|
export declare const StyledPageButton: import("styled-components").StyledComponent<"button", any, PageButtonProps, never>;
|
|
6
6
|
export declare const StyledSimplePaginationButton: import("styled-components").StyledComponent<"button", any, PageButtonProps, never>;
|
|
7
7
|
export declare const StyledActiveSimplePaginationButton: import("styled-components").StyledComponent<(props: PageButtonProps) => JSX.Element, any, {}, never>;
|
|
8
|
-
export declare const StyledSimplePaginationInput: import("styled-components").StyledComponent<
|
|
8
|
+
export declare const StyledSimplePaginationInput: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("../NumberInput").NumberInputProps & React.RefAttributes<HTMLInputElement>>, any, {}, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { PaginationProps } from './paginationUtils';
|
|
3
|
-
export declare const SimplePagination:
|
|
3
|
+
export declare const SimplePagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -3,7 +3,7 @@ import { Typography } from '../Typography';
|
|
|
3
3
|
import { StyledActiveSimplePaginationButton, StyledSimplePaginationInput, StyledSimplePaginationButton, SimplePaginationStyledNav } from './PaginationStyle';
|
|
4
4
|
import { defaultPageSize, getAllPages } from './paginationUtils';
|
|
5
5
|
import { NextStepper, PreviousStepper } from './Stepper';
|
|
6
|
-
export var SimplePagination = function SimplePagination(_ref) {
|
|
6
|
+
export var SimplePagination = /*#__PURE__*/React.forwardRef(function SimplePagination(_ref, ref) {
|
|
7
7
|
var _ref$totalItems = _ref.totalItems,
|
|
8
8
|
totalItems = _ref$totalItems === void 0 ? 1 : _ref$totalItems,
|
|
9
9
|
_ref$currentPage = _ref.currentPage,
|
|
@@ -37,7 +37,9 @@ export var SimplePagination = function SimplePagination(_ref) {
|
|
|
37
37
|
var handleFocus = function handleFocus(e) {
|
|
38
38
|
e.target.select();
|
|
39
39
|
};
|
|
40
|
-
return /*#__PURE__*/React.createElement(SimplePaginationStyledNav,
|
|
40
|
+
return /*#__PURE__*/React.createElement(SimplePaginationStyledNav, {
|
|
41
|
+
ref: ref
|
|
42
|
+
}, /*#__PURE__*/React.createElement(PreviousStepper, {
|
|
41
43
|
value: currentPage - 1,
|
|
42
44
|
disabled: !hasPrevious || disabled,
|
|
43
45
|
onClick: handlePageNumberChange
|
|
@@ -77,4 +79,4 @@ export var SimplePagination = function SimplePagination(_ref) {
|
|
|
77
79
|
disabled: !hasNext || disabled,
|
|
78
80
|
onClick: handlePageNumberChange
|
|
79
81
|
}));
|
|
80
|
-
};
|
|
82
|
+
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import { PopoverProps as PolarisPopoverProps } from 'polaris-glints';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PopoverProps as PolarisPopoverProps, PopoverPublicAPI } from 'polaris-glints';
|
|
3
3
|
export declare type PopoverProps = PolarisPopoverProps;
|
|
4
4
|
/** Using Popover from polaris-glints repository internally
|
|
5
5
|
* Please add `<div id="glints-portal-container"></div>` as a sibling element of where your React app is rendered.
|
|
6
6
|
* This is a temporary workaround, as React Portal need this as the anchor */
|
|
7
|
-
export declare const Popover:
|
|
7
|
+
export declare const Popover: React.ForwardRefExoticComponent<PolarisPopoverProps & React.RefAttributes<PopoverPublicAPI>> & {
|
|
8
8
|
Pane: typeof import("polaris-glints/build/ts/latest/src/components/Popover/components").Pane;
|
|
9
9
|
Section: typeof import("polaris-glints/build/ts/latest/src/components/Popover/components").Section;
|
|
10
10
|
};
|