@janbox/storefront-ui 1.0.1 → 1.0.3
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/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/use-controllable-state.js +2 -2
- package/dist/hooks/use-countdown-timer.js +1 -1
- package/dist/hooks/use-first-mount-state/index.d.ts +2 -0
- package/dist/hooks/use-first-mount-state/index.d.ts.map +1 -0
- package/dist/hooks/use-first-mount-state/index.js +12 -0
- package/dist/hooks/use-update-effect/index.d.ts +3 -0
- package/dist/hooks/use-update-effect/index.d.ts.map +1 -0
- package/dist/hooks/use-update-effect/index.js +13 -0
- package/dist/lib/accordion/accordion/accordion.d.ts +2 -1
- package/dist/lib/accordion/accordion/accordion.d.ts.map +1 -1
- package/dist/lib/accordion/accordion/accordion.js +15 -6
- package/dist/lib/accordion/accordion/types.d.ts +2 -2
- package/dist/lib/accordion/accordion/types.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/react-use@17.6.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-use/esm/misc/isDeepEqual.js +5 -0
- package/dist/node_modules/.pnpm/react-use@17.6.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-use/esm/useCustomCompareEffect.js +25 -0
- package/dist/node_modules/.pnpm/react-use@17.6.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-use/esm/useDeepCompareEffect.js +19 -0
- package/dist/node_modules/.pnpm/react-use@17.6.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-use/esm/useFirstMountState.js +12 -0
- package/dist/node_modules/.pnpm/react-use@17.6.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-use/esm/useUpdateEffect.js +13 -0
- package/package.json +19 -50
- package/dist/HOCs/index.cjs +0 -4
- package/dist/HOCs/with-query-fallback.cjs +0 -16
- package/dist/assets/json/countries.json.cjs +0 -1159
- package/dist/assets/svg/arrow-down.svg.cjs +0 -3
- package/dist/assets/svg/arrow-forward.svg.cjs +0 -3
- package/dist/assets/svg/arrow-left.svg.cjs +0 -3
- package/dist/assets/svg/arrow-right.svg.cjs +0 -3
- package/dist/assets/svg/calendar.svg.cjs +0 -3
- package/dist/assets/svg/check.svg.cjs +0 -3
- package/dist/assets/svg/clock-time.svg.cjs +0 -3
- package/dist/assets/svg/done-check.svg.cjs +0 -3
- package/dist/assets/svg/earth-home-world.svg.cjs +0 -3
- package/dist/assets/svg/eye-hidden.svg.cjs +0 -3
- package/dist/assets/svg/eye-show-visible.svg.cjs +0 -3
- package/dist/assets/svg/image-placeholder.svg.cjs +0 -3
- package/dist/assets/svg/loading-waiting.svg.cjs +0 -3
- package/dist/assets/svg/long-arrow-right.svg.cjs +0 -3
- package/dist/assets/svg/minus.svg.cjs +0 -3
- package/dist/assets/svg/plus.svg.cjs +0 -3
- package/dist/assets/svg/search-add-plus-middle.svg.cjs +0 -3
- package/dist/assets/svg/search-minus.svg.cjs +0 -3
- package/dist/assets/svg/times-close-delete.svg.cjs +0 -3
- package/dist/components/index.cjs +0 -8
- package/dist/components/scroll-view.cjs +0 -19
- package/dist/components/svg-loader.cjs +0 -14
- package/dist/components/virtualized-list.cjs +0 -43
- package/dist/constants/index.cjs +0 -32
- package/dist/hooks/index.cjs +0 -14
- package/dist/hooks/use-controllable-state.cjs +0 -39
- package/dist/hooks/use-countdown-timer.cjs +0 -85
- package/dist/hooks/use-hover-line-effect/index.cjs +0 -24
- package/dist/hooks/use-hover-line-effect/use-hover-line-effect.module.scss.cjs +0 -8
- package/dist/hooks/use-query-params.cjs +0 -53
- package/dist/hooks/use-ripple-effect/index.cjs +0 -69
- package/dist/hooks/use-ripple-effect/use-ripple-effect.module.scss.cjs +0 -11
- package/dist/hooks/use-window-screen/index.cjs +0 -52
- package/dist/index.cjs +0 -305
- package/dist/lib/accordion/accordion/accordion.cjs +0 -109
- package/dist/lib/accordion/accordion/helpers.cjs +0 -21
- package/dist/lib/accordion/accordion/types.cjs +0 -7
- package/dist/lib/accordion/accordion-content/accordion-content.cjs +0 -41
- package/dist/lib/accordion/accordion-content/helpers.cjs +0 -8
- package/dist/lib/accordion/accordion-group/accordion-group.cjs +0 -56
- package/dist/lib/accordion/accordion-group/helpers.cjs +0 -20
- package/dist/lib/accordion/accordion-group/types.cjs +0 -7
- package/dist/lib/accordion/accordion-summary/accordion-summary.cjs +0 -64
- package/dist/lib/accordion/accordion-summary/helpers.cjs +0 -15
- package/dist/lib/accordion/accordion-summary/types.cjs +0 -8
- package/dist/lib/badge/badge.cjs +0 -42
- package/dist/lib/badge/helpers.cjs +0 -8
- package/dist/lib/box/box.cjs +0 -55
- package/dist/lib/box/helpers.cjs +0 -8
- package/dist/lib/breadcrumbs/breadcrumb-item/breadcrumb-item.cjs +0 -28
- package/dist/lib/breadcrumbs/breadcrumbs/breadcrumbs.cjs +0 -44
- package/dist/lib/button/button.cjs +0 -235
- package/dist/lib/button/helpers.cjs +0 -74
- package/dist/lib/cascader/cascader.cjs +0 -497
- package/dist/lib/cascader/helpers.cjs +0 -28
- package/dist/lib/checkbox/checkbox.cjs +0 -52
- package/dist/lib/checkbox/checkbox.module.scss.cjs +0 -23
- package/dist/lib/chip/chip.cjs +0 -60
- package/dist/lib/chip/helpers.cjs +0 -14
- package/dist/lib/collapse/collapse.cjs +0 -50
- package/dist/lib/container/container.cjs +0 -101
- package/dist/lib/container/helpers.cjs +0 -12
- package/dist/lib/count-up/count-up.cjs +0 -38
- package/dist/lib/countdown-timer/countdown-timer.cjs +0 -9
- package/dist/lib/date-picker/date-picker.cjs +0 -168
- package/dist/lib/date-picker/helpers.cjs +0 -12
- package/dist/lib/dialog/dialog/dialog.cjs +0 -93
- package/dist/lib/dialog/dialog/helpers.cjs +0 -27
- package/dist/lib/dialog/dialog-body/dialog-body.cjs +0 -32
- package/dist/lib/dialog/dialog-close/dialog-close.cjs +0 -5
- package/dist/lib/dialog/dialog-footer/dialog-footer.cjs +0 -31
- package/dist/lib/dialog/dialog-header/dialog-header.cjs +0 -73
- package/dist/lib/drawer/drawer/drawer.cjs +0 -100
- package/dist/lib/drawer/drawer/helpers.cjs +0 -7
- package/dist/lib/drawer/drawer-close/drawer-close.cjs +0 -5
- package/dist/lib/filter-panel/checkbox-filter-panel.cjs +0 -107
- package/dist/lib/filter-panel/filter-panel.cjs +0 -37
- package/dist/lib/filter-panel/input-range-filter-panel.cjs +0 -78
- package/dist/lib/filter-panel/input-text-filter-panel.cjs +0 -57
- package/dist/lib/filter-panel/radio-filter-panel.cjs +0 -95
- package/dist/lib/flag/flag.cjs +0 -20
- package/dist/lib/flag/helpers.cjs +0 -16
- package/dist/lib/flexbox/flex-item/flex-item.cjs +0 -22
- package/dist/lib/flexbox/flex-item/helpers.cjs +0 -10
- package/dist/lib/flexbox/flexbox/flexbox.cjs +0 -46
- package/dist/lib/flexbox/flexbox/helpers.cjs +0 -16
- package/dist/lib/floating/floating/floating.cjs +0 -97
- package/dist/lib/floating/floating/helpers.cjs +0 -9
- package/dist/lib/floating/floating-close/floating-close.cjs +0 -32
- package/dist/lib/floating/floating-content/floating-content.cjs +0 -57
- package/dist/lib/floating/floating-trigger/floating-trigger.cjs +0 -35
- package/dist/lib/form-helper-text/form-helper-text.cjs +0 -35
- package/dist/lib/form-label/form-label.cjs +0 -28
- package/dist/lib/generic-element/generic-element.cjs +0 -15
- package/dist/lib/grid/cell/cell.cjs +0 -28
- package/dist/lib/grid/cell/helpers.cjs +0 -8
- package/dist/lib/grid/grid/grid.cjs +0 -53
- package/dist/lib/grid/grid/helpers.cjs +0 -12
- package/dist/lib/highlight-words/highlight-words.cjs +0 -18
- package/dist/lib/icon/helpers.cjs +0 -12
- package/dist/lib/icon/icon.cjs +0 -38
- package/dist/lib/icon-button/helpers.cjs +0 -42
- package/dist/lib/icon-button/icon-button.cjs +0 -146
- package/dist/lib/image/helpers.cjs +0 -15
- package/dist/lib/image/image.cjs +0 -36
- package/dist/lib/input/helpers.cjs +0 -38
- package/dist/lib/input/input.cjs +0 -205
- package/dist/lib/input/input.module.scss.cjs +0 -17
- package/dist/lib/input-mask/helpers.cjs +0 -12
- package/dist/lib/input-mask/input-mask.cjs +0 -120
- package/dist/lib/input-number/input-number.cjs +0 -132
- package/dist/lib/input-number/input-number.module.scss.cjs +0 -8
- package/dist/lib/input-range/helpers.cjs +0 -12
- package/dist/lib/input-range/input-range.cjs +0 -179
- package/dist/lib/input-range/input-range.module.scss.cjs +0 -8
- package/dist/lib/lightbox/lightbox.cjs +0 -199
- package/dist/lib/linear-progress/helpers.cjs +0 -13
- package/dist/lib/linear-progress/linear-progress.cjs +0 -75
- package/dist/lib/link/helpers.cjs +0 -8
- package/dist/lib/link/link.cjs +0 -63
- package/dist/lib/loading/block-skeleton/block-skeleton.cjs +0 -21
- package/dist/lib/loading/image-skeleton/image-skeleton.cjs +0 -43
- package/dist/lib/loading/loading-overlay/loading-overlay.cjs +0 -60
- package/dist/lib/loading/text-skeleton/text-skeleton.cjs +0 -16
- package/dist/lib/marquee/marquee/helpers.cjs +0 -15
- package/dist/lib/marquee/marquee/marquee.cjs +0 -99
- package/dist/lib/marquee/marquee/types.cjs +0 -7
- package/dist/lib/marquee/marquee-item/marquee-item.cjs +0 -16
- package/dist/lib/menu/menu/menu.cjs +0 -38
- package/dist/lib/menu/menu-item/helpers.cjs +0 -16
- package/dist/lib/menu/menu-item/menu-item.cjs +0 -34
- package/dist/lib/menu/menu-list/menu-list.cjs +0 -34
- package/dist/lib/menu/menu-list/types.cjs +0 -7
- package/dist/lib/menu/menu-trigger/menu-trigger.cjs +0 -8
- package/dist/lib/multiple-select/helpers.cjs +0 -12
- package/dist/lib/multiple-select/multiple-select.cjs +0 -348
- package/dist/lib/nav-link/nav-link.cjs +0 -40
- package/dist/lib/notifications/helpers.cjs +0 -39
- package/dist/lib/notifications/notifications.cjs +0 -167
- package/dist/lib/otp-input/otp-input.cjs +0 -132
- package/dist/lib/pagination/helpers.cjs +0 -57
- package/dist/lib/pagination/pagination.cjs +0 -163
- package/dist/lib/phone-input/phone-input.cjs +0 -182
- package/dist/lib/popover/popover/helpers.cjs +0 -7
- package/dist/lib/popover/popover/popover.cjs +0 -31
- package/dist/lib/popover/popover-close/popover-close.cjs +0 -5
- package/dist/lib/popover/popover-content/popover-content.cjs +0 -29
- package/dist/lib/popover/popover-trigger/popover-trigger.cjs +0 -8
- package/dist/lib/primitive/primitive.cjs +0 -30
- package/dist/lib/progress/progress.cjs +0 -50
- package/dist/lib/radio-button/helpers.cjs +0 -8
- package/dist/lib/radio-button/radio-button.cjs +0 -33
- package/dist/lib/radio-button/radio-button.module.scss.cjs +0 -17
- package/dist/lib/select/helpers.cjs +0 -12
- package/dist/lib/select/select.cjs +0 -317
- package/dist/lib/star-rating/star-rating.cjs +0 -39
- package/dist/lib/stepper/step.cjs +0 -69
- package/dist/lib/stepper/stepper.cjs +0 -86
- package/dist/lib/stepper/types.cjs +0 -8
- package/dist/lib/swiper/swiper/helpers.cjs +0 -16
- package/dist/lib/swiper/swiper/swiper.cjs +0 -113
- package/dist/lib/swiper/swiper-dots-paging/swiper-dots-paging.cjs +0 -77
- package/dist/lib/swiper/swiper-slide/swiper-slide.cjs +0 -31
- package/dist/lib/switch/switch.cjs +0 -19
- package/dist/lib/switch/switch.module.scss.cjs +0 -14
- package/dist/lib/table/table/table.cjs +0 -26
- package/dist/lib/table/table-body/table-body.cjs +0 -34
- package/dist/lib/table/table-cell/table-cell.cjs +0 -12
- package/dist/lib/table/table-footer/table-footer.cjs +0 -7
- package/dist/lib/table/table-head/table-head.cjs +0 -33
- package/dist/lib/table/table-row/table-row.cjs +0 -7
- package/dist/lib/tabs/tab/helpers.cjs +0 -9
- package/dist/lib/tabs/tab/tab.cjs +0 -26
- package/dist/lib/tabs/tab-content/tab-content.cjs +0 -22
- package/dist/lib/tabs/tab-indicator/tab-indicator.cjs +0 -92
- package/dist/lib/tabs/tab-list/helpers.cjs +0 -8
- package/dist/lib/tabs/tab-list/tab-list.cjs +0 -40
- package/dist/lib/tabs/tab-panel/helpers.cjs +0 -8
- package/dist/lib/tabs/tab-panel/tab-panel.cjs +0 -21
- package/dist/lib/tabs/tabs/helpers.cjs +0 -36
- package/dist/lib/tabs/tabs/tabs.cjs +0 -62
- package/dist/lib/text/helpers.cjs +0 -140
- package/dist/lib/text/text.cjs +0 -41
- package/dist/lib/textarea/helpers.cjs +0 -12
- package/dist/lib/textarea/textarea.cjs +0 -122
- package/dist/lib/textarea/textarea.module.scss.cjs +0 -14
- package/dist/lib/time-picker/time-picker.cjs +0 -305
- package/dist/lib/tooltip/tooltip.cjs +0 -124
- package/dist/lib/trans-html/trans-html.cjs +0 -26
- package/dist/lib/unordered-list/list-item/helpers.cjs +0 -14
- package/dist/lib/unordered-list/list-item/list-item.cjs +0 -36
- package/dist/lib/unordered-list/unordered-list/helpers.cjs +0 -14
- package/dist/lib/unordered-list/unordered-list/unordered-list.cjs +0 -27
- package/dist/lib/video/helpers.cjs +0 -10
- package/dist/lib/video/video.cjs +0 -24
- package/dist/theme/index.cjs +0 -22
- package/dist/theme/palette.cjs +0 -287
- package/dist/theme/provider.cjs +0 -303
- package/dist/theme/screens.cjs +0 -24
- package/dist/theme/typography.cjs +0 -29
- package/dist/types/index.cjs +0 -1
- package/dist/utils/common.cjs +0 -139
- package/dist/utils/emotion-helpers.cjs +0 -145
- package/dist/utils/index.cjs +0 -233
- package/dist/utils/query-params.cjs +0 -130
- package/dist/utils/stylesheet.cjs +0 -5
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
4
|
-
const react = require("react");
|
|
5
|
-
const react$1 = require("@floating-ui/react");
|
|
6
|
-
const helpers = require("./helpers.cjs");
|
|
7
|
-
const index = require("../../hooks/use-ripple-effect/index.cjs");
|
|
8
|
-
const utils_index = require("../../utils/index.cjs");
|
|
9
|
-
const loadingWaiting = require("../../assets/svg/loading-waiting.svg.cjs");
|
|
10
|
-
const theme_screens = require("../../theme/screens.cjs");
|
|
11
|
-
const theme_palette = require("../../theme/palette.cjs");
|
|
12
|
-
const common = require("../../utils/common.cjs");
|
|
13
|
-
const icon = require("../icon/icon.cjs");
|
|
14
|
-
const emotionHelpers = require("../../utils/emotion-helpers.cjs");
|
|
15
|
-
const stylesheet = require("../../utils/stylesheet.cjs");
|
|
16
|
-
const IconButton = react.forwardRef((_props, ref) => {
|
|
17
|
-
var _a, _b, _c, _d;
|
|
18
|
-
const { color, variant, children, icon: icon$1, isLoading, ...rest } = helpers.getIconButtonProps(_props);
|
|
19
|
-
const {
|
|
20
|
-
dark,
|
|
21
|
-
light,
|
|
22
|
-
main,
|
|
23
|
-
contrastText,
|
|
24
|
-
placeholder: placeholderColor,
|
|
25
|
-
ariaDisabledSurface,
|
|
26
|
-
ariaDisabledText
|
|
27
|
-
} = utils_index.getColorShadesByVariant(color);
|
|
28
|
-
const buttonRef = react.useRef(null);
|
|
29
|
-
const { className } = index.useRippleEffect(buttonRef);
|
|
30
|
-
const mergedRef = react$1.useMergeRefs([ref, buttonRef]);
|
|
31
|
-
const createStyle = (screen) => {
|
|
32
|
-
const { css: css2 } = rest[screen] ?? {};
|
|
33
|
-
return [css2];
|
|
34
|
-
};
|
|
35
|
-
const css = [
|
|
36
|
-
{
|
|
37
|
-
display: "flex",
|
|
38
|
-
width: "fit-content",
|
|
39
|
-
height: "fit-content",
|
|
40
|
-
position: "relative",
|
|
41
|
-
justifyContent: "center",
|
|
42
|
-
alignItems: "center",
|
|
43
|
-
pointerEvents: common.ensureBoolean(rest["aria-disabled"]) ? "none" : void 0,
|
|
44
|
-
":disabled": {
|
|
45
|
-
pointerEvents: "none"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
isLoading && {
|
|
49
|
-
pointerEvents: "none",
|
|
50
|
-
"& > *:not([data-loading])": {
|
|
51
|
-
visibility: "hidden"
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
variant === "contained" && {
|
|
55
|
-
backgroundColor: isLoading ? placeholderColor : main,
|
|
56
|
-
color: contrastText,
|
|
57
|
-
":hover": {
|
|
58
|
-
backgroundColor: dark
|
|
59
|
-
},
|
|
60
|
-
"&[aria-disabled=true]": {
|
|
61
|
-
backgroundColor: ariaDisabledSurface,
|
|
62
|
-
pointerEvents: "none"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
variant === "outlined" && {
|
|
66
|
-
backgroundColor: "transparent",
|
|
67
|
-
color: isLoading ? placeholderColor : main,
|
|
68
|
-
borderWidth: 1,
|
|
69
|
-
borderStyle: "solid",
|
|
70
|
-
borderColor: isLoading ? placeholderColor : main,
|
|
71
|
-
":hover": {
|
|
72
|
-
backgroundColor: light
|
|
73
|
-
},
|
|
74
|
-
"&[aria-disabled=true]": {
|
|
75
|
-
color: ariaDisabledText,
|
|
76
|
-
pointerEvents: "none",
|
|
77
|
-
borderColor: "currentcolor"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
variant === "text" && {
|
|
81
|
-
backgroundColor: "transparent",
|
|
82
|
-
color: isLoading ? placeholderColor : main,
|
|
83
|
-
":hover": {
|
|
84
|
-
backgroundColor: light
|
|
85
|
-
},
|
|
86
|
-
"&[aria-disabled=true]": {
|
|
87
|
-
color: ariaDisabledText
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
":disabled": {
|
|
92
|
-
color: theme_palette.getColorVar("neutral.500"),
|
|
93
|
-
backgroundColor: theme_palette.getColorVar("neutral.300")
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
rest["aria-disabled"] && {
|
|
97
|
-
pointerEvents: "none"
|
|
98
|
-
},
|
|
99
|
-
createStyle("xs"),
|
|
100
|
-
{
|
|
101
|
-
[theme_screens.mediaQuery("sm")]: createStyle("sm"),
|
|
102
|
-
[theme_screens.mediaQuery("md")]: createStyle("md")
|
|
103
|
-
}
|
|
104
|
-
];
|
|
105
|
-
const onClick = (e) => {
|
|
106
|
-
var _a2;
|
|
107
|
-
(_a2 = rest.onClick) == null ? void 0 : _a2.call(rest, e);
|
|
108
|
-
};
|
|
109
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
110
|
-
"button",
|
|
111
|
-
{
|
|
112
|
-
css,
|
|
113
|
-
...utils_index.omitResponsiveProps(rest),
|
|
114
|
-
className: stylesheet.cn(rest.className, className),
|
|
115
|
-
onClick,
|
|
116
|
-
ref: mergedRef,
|
|
117
|
-
children: [
|
|
118
|
-
!!icon$1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
119
|
-
icon.Icon,
|
|
120
|
-
{
|
|
121
|
-
...icon$1,
|
|
122
|
-
xs: {
|
|
123
|
-
size: utils_index.getSizeVariantState((_a = rest.xs) == null ? void 0 : _a.size).iconSize,
|
|
124
|
-
...icon$1.xs
|
|
125
|
-
},
|
|
126
|
-
sm: {
|
|
127
|
-
size: utils_index.getSizeVariantState((_b = rest.sm) == null ? void 0 : _b.size).iconSize,
|
|
128
|
-
...icon$1.sm
|
|
129
|
-
},
|
|
130
|
-
md: {
|
|
131
|
-
size: utils_index.getSizeVariantState((_c = rest.md) == null ? void 0 : _c.size).iconSize,
|
|
132
|
-
...icon$1.md
|
|
133
|
-
},
|
|
134
|
-
lg: {
|
|
135
|
-
size: utils_index.getSizeVariantState((_d = rest.lg) == null ? void 0 : _d.size).iconSize,
|
|
136
|
-
...icon$1.lg
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
),
|
|
140
|
-
children,
|
|
141
|
-
isLoading && /* @__PURE__ */ jsxRuntime.jsx("span", { "data-loading": true, css: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ jsxRuntime.jsx(icon.Icon, { css: emotionHelpers.animateSpin, source: loadingWaiting }) })
|
|
142
|
-
]
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
});
|
|
146
|
-
exports.IconButton = IconButton;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils_index = require("../../utils/index.cjs");
|
|
4
|
-
const defaultProps = {
|
|
5
|
-
loading: "lazy",
|
|
6
|
-
xs: {
|
|
7
|
-
css: {
|
|
8
|
-
objectFit: "cover"
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
const getImageProps = (extended) => {
|
|
13
|
-
return utils_index.mergeComponentProps(defaultProps, extended);
|
|
14
|
-
};
|
|
15
|
-
exports.getImageProps = getImageProps;
|
package/dist/lib/image/image.cjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
4
|
-
const react = require("react");
|
|
5
|
-
const lodashEs = require("lodash-es");
|
|
6
|
-
const helpers = require("./helpers.cjs");
|
|
7
|
-
const imagePlaceholder = require("../../assets/svg/image-placeholder.svg.cjs");
|
|
8
|
-
const theme_screens = require("../../theme/screens.cjs");
|
|
9
|
-
require("../../theme/palette.cjs");
|
|
10
|
-
const Image = react.forwardRef((_props, ref) => {
|
|
11
|
-
const { xs, sm, md, lg, fallback = true, src, ...rest } = helpers.getImageProps(_props);
|
|
12
|
-
const fallbackSrc = react.useMemo(() => {
|
|
13
|
-
if (lodashEs.isString(fallback)) return fallback;
|
|
14
|
-
return fallback ? imagePlaceholder : void 0;
|
|
15
|
-
}, [fallback]);
|
|
16
|
-
const css = [
|
|
17
|
-
{
|
|
18
|
-
maxHeight: "100%"
|
|
19
|
-
},
|
|
20
|
-
xs == null ? void 0 : xs.css,
|
|
21
|
-
{
|
|
22
|
-
[theme_screens.mediaQuery("sm")]: sm == null ? void 0 : sm.css,
|
|
23
|
-
[theme_screens.mediaQuery("md")]: md == null ? void 0 : md.css,
|
|
24
|
-
[theme_screens.mediaQuery("lg")]: lg == null ? void 0 : lg.css
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
const onError = (e) => {
|
|
28
|
-
var _a;
|
|
29
|
-
if (fallbackSrc) {
|
|
30
|
-
e.currentTarget.src = fallbackSrc;
|
|
31
|
-
}
|
|
32
|
-
(_a = rest.onError) == null ? void 0 : _a.call(rest, e);
|
|
33
|
-
};
|
|
34
|
-
return /* @__PURE__ */ jsxRuntime.jsx("img", { src: src || fallbackSrc, alt: "", css, ...rest, ref, onError });
|
|
35
|
-
});
|
|
36
|
-
exports.Image = Image;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const theme_screens = require("../../theme/screens.cjs");
|
|
4
|
-
require("../../theme/palette.cjs");
|
|
5
|
-
const theme_typography = require("../../theme/typography.cjs");
|
|
6
|
-
const utils_index = require("../../utils/index.cjs");
|
|
7
|
-
const defaultProps = {
|
|
8
|
-
xs: {
|
|
9
|
-
size: "md"
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
const getInputCssBySize = (size) => {
|
|
13
|
-
const { inputPaddingX, inputSize, textVariant } = utils_index.getSizeVariantState(size);
|
|
14
|
-
return {
|
|
15
|
-
paddingLeft: inputPaddingX,
|
|
16
|
-
paddingRight: inputPaddingX,
|
|
17
|
-
height: inputSize,
|
|
18
|
-
fontSize: textVariant ? theme_typography.getTypographyVar(textVariant).fontSize : void 0,
|
|
19
|
-
lineHeight: textVariant ? theme_typography.getTypographyVar(textVariant).lineHeight : void 0
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
const getInputProps = (extended) => {
|
|
23
|
-
return utils_index.mergeComponentProps(
|
|
24
|
-
defaultProps,
|
|
25
|
-
extended,
|
|
26
|
-
...theme_screens.screens.map((screen) => {
|
|
27
|
-
return (current) => {
|
|
28
|
-
var _a;
|
|
29
|
-
return {
|
|
30
|
-
[screen]: {
|
|
31
|
-
css: getInputCssBySize((_a = current[screen]) == null ? void 0 : _a.size)
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
})
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
exports.getInputProps = getInputProps;
|
package/dist/lib/input/input.cjs
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
4
|
-
const react = require("react");
|
|
5
|
-
const react$1 = require("@floating-ui/react");
|
|
6
|
-
const lodashEs = require("lodash-es");
|
|
7
|
-
const helpers = require("./helpers.cjs");
|
|
8
|
-
const input_module = require("./input.module.scss.cjs");
|
|
9
|
-
const utils_index = require("../../utils/index.cjs");
|
|
10
|
-
const eyeHidden = require("../../assets/svg/eye-hidden.svg.cjs");
|
|
11
|
-
const eyeShowVisible = require("../../assets/svg/eye-show-visible.svg.cjs");
|
|
12
|
-
const theme_screens = require("../../theme/screens.cjs");
|
|
13
|
-
require("../../theme/palette.cjs");
|
|
14
|
-
const formHelperText = require("../form-helper-text/form-helper-text.cjs");
|
|
15
|
-
const icon = require("../icon/icon.cjs");
|
|
16
|
-
const stylesheet = require("../../utils/stylesheet.cjs");
|
|
17
|
-
const Input = react.forwardRef((_props, ref) => {
|
|
18
|
-
const {
|
|
19
|
-
type,
|
|
20
|
-
xs,
|
|
21
|
-
sm,
|
|
22
|
-
md,
|
|
23
|
-
lg,
|
|
24
|
-
prefix,
|
|
25
|
-
suffix,
|
|
26
|
-
containerProps,
|
|
27
|
-
mainProps,
|
|
28
|
-
className,
|
|
29
|
-
helperText,
|
|
30
|
-
error,
|
|
31
|
-
startIcon,
|
|
32
|
-
endIcon,
|
|
33
|
-
onChange: onChangeProp,
|
|
34
|
-
transform,
|
|
35
|
-
debounce = 0,
|
|
36
|
-
mode = "onChange",
|
|
37
|
-
value,
|
|
38
|
-
...rest
|
|
39
|
-
} = helpers.getInputProps(_props);
|
|
40
|
-
const inputRef = react.useRef(null);
|
|
41
|
-
const [showPassword, setShowPassword] = react.useState(false);
|
|
42
|
-
const [typingValue, setTypingValue] = react.useState();
|
|
43
|
-
const timeoutFn = react.useRef(null);
|
|
44
|
-
const beforeChangeValue = react.useRef("");
|
|
45
|
-
const mergedRefs = react$1.useMergeRefs([ref, inputRef]);
|
|
46
|
-
const onChange = (e, force = false) => {
|
|
47
|
-
e.target.value = transform ? transform(e.target.value) : e.target.value;
|
|
48
|
-
if (timeoutFn.current) {
|
|
49
|
-
clearTimeout(timeoutFn.current);
|
|
50
|
-
}
|
|
51
|
-
const isFocused = document.activeElement === e.target;
|
|
52
|
-
if (force || !isFocused) {
|
|
53
|
-
onChangeProp == null ? void 0 : onChangeProp(e);
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
if (mode === "onBlur") {
|
|
57
|
-
if (lodashEs.isString(value)) {
|
|
58
|
-
setTypingValue(e.target.value);
|
|
59
|
-
}
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (debounce > 0) {
|
|
63
|
-
if (lodashEs.isString(value)) {
|
|
64
|
-
setTypingValue(e.target.value);
|
|
65
|
-
}
|
|
66
|
-
timeoutFn.current = setTimeout(() => {
|
|
67
|
-
onChangeProp == null ? void 0 : onChangeProp(e);
|
|
68
|
-
}, debounce);
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
onChangeProp == null ? void 0 : onChangeProp(e);
|
|
72
|
-
};
|
|
73
|
-
const onFocus = (e) => {
|
|
74
|
-
var _a;
|
|
75
|
-
beforeChangeValue.current = e.target.value;
|
|
76
|
-
(_a = rest.onFocus) == null ? void 0 : _a.call(rest, e);
|
|
77
|
-
};
|
|
78
|
-
const onBlur = (e) => {
|
|
79
|
-
var _a;
|
|
80
|
-
if (beforeChangeValue.current !== e.target.value) {
|
|
81
|
-
if (mode === "onBlur" || debounce > 0) {
|
|
82
|
-
onChange(e, true);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
(_a = rest.onBlur) == null ? void 0 : _a.call(rest, e);
|
|
86
|
-
setTimeout(() => {
|
|
87
|
-
setTypingValue(void 0);
|
|
88
|
-
}, debounce);
|
|
89
|
-
};
|
|
90
|
-
const css = [
|
|
91
|
-
createStyle(xs),
|
|
92
|
-
{
|
|
93
|
-
[theme_screens.mediaQuery("sm")]: createStyle(sm),
|
|
94
|
-
[theme_screens.mediaQuery("md")]: createStyle(md),
|
|
95
|
-
[theme_screens.mediaQuery("lg")]: createStyle(lg)
|
|
96
|
-
}
|
|
97
|
-
];
|
|
98
|
-
const toggleShowPassword = (e) => {
|
|
99
|
-
e.stopPropagation();
|
|
100
|
-
setShowPassword((prev) => !prev);
|
|
101
|
-
};
|
|
102
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ...containerProps, className: stylesheet.cn(input_module.default.input__container, containerProps == null ? void 0 : containerProps.className), children: [
|
|
103
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
104
|
-
"div",
|
|
105
|
-
{
|
|
106
|
-
css,
|
|
107
|
-
...mainProps,
|
|
108
|
-
className: stylesheet.cn(
|
|
109
|
-
input_module.default.input__main,
|
|
110
|
-
{
|
|
111
|
-
[input_module.default.input__main_error]: error
|
|
112
|
-
},
|
|
113
|
-
mainProps == null ? void 0 : mainProps.className
|
|
114
|
-
),
|
|
115
|
-
children: [
|
|
116
|
-
prefix,
|
|
117
|
-
!!startIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
118
|
-
icon.Icon,
|
|
119
|
-
{
|
|
120
|
-
...startIcon,
|
|
121
|
-
xs: {
|
|
122
|
-
size: utils_index.getSizeVariantState(xs == null ? void 0 : xs.size).iconSize,
|
|
123
|
-
...startIcon.xs
|
|
124
|
-
},
|
|
125
|
-
sm: {
|
|
126
|
-
size: utils_index.getSizeVariantState(sm == null ? void 0 : sm.size).iconSize,
|
|
127
|
-
...startIcon.sm
|
|
128
|
-
},
|
|
129
|
-
md: {
|
|
130
|
-
size: utils_index.getSizeVariantState(md == null ? void 0 : md.size).iconSize,
|
|
131
|
-
...startIcon.md
|
|
132
|
-
},
|
|
133
|
-
lg: {
|
|
134
|
-
size: utils_index.getSizeVariantState(lg == null ? void 0 : lg.size).iconSize,
|
|
135
|
-
...startIcon.lg
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
),
|
|
139
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
140
|
-
"input",
|
|
141
|
-
{
|
|
142
|
-
"data-error": error,
|
|
143
|
-
type: type === "password" && showPassword ? "text" : type,
|
|
144
|
-
className: stylesheet.cn(input_module.default.input__control, className),
|
|
145
|
-
...rest,
|
|
146
|
-
value: typingValue ?? value,
|
|
147
|
-
ref: mergedRefs,
|
|
148
|
-
onChange,
|
|
149
|
-
onBlur,
|
|
150
|
-
onFocus
|
|
151
|
-
}
|
|
152
|
-
),
|
|
153
|
-
!!endIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
154
|
-
icon.Icon,
|
|
155
|
-
{
|
|
156
|
-
...endIcon,
|
|
157
|
-
xs: {
|
|
158
|
-
size: utils_index.getSizeVariantState(xs == null ? void 0 : xs.size).iconSize,
|
|
159
|
-
...endIcon.xs
|
|
160
|
-
},
|
|
161
|
-
sm: {
|
|
162
|
-
size: utils_index.getSizeVariantState(sm == null ? void 0 : sm.size).iconSize,
|
|
163
|
-
...endIcon.sm
|
|
164
|
-
},
|
|
165
|
-
md: {
|
|
166
|
-
size: utils_index.getSizeVariantState(md == null ? void 0 : md.size).iconSize,
|
|
167
|
-
...endIcon.md
|
|
168
|
-
},
|
|
169
|
-
lg: {
|
|
170
|
-
size: utils_index.getSizeVariantState(lg == null ? void 0 : lg.size).iconSize,
|
|
171
|
-
...endIcon.lg
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
),
|
|
175
|
-
suffix,
|
|
176
|
-
type === "password" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
177
|
-
icon.Icon,
|
|
178
|
-
{
|
|
179
|
-
onClick: toggleShowPassword,
|
|
180
|
-
css: { cursor: "pointer" },
|
|
181
|
-
xs: {
|
|
182
|
-
size: utils_index.getSizeVariantState(xs == null ? void 0 : xs.size).iconSize
|
|
183
|
-
},
|
|
184
|
-
sm: {
|
|
185
|
-
size: utils_index.getSizeVariantState(sm == null ? void 0 : sm.size).iconSize
|
|
186
|
-
},
|
|
187
|
-
md: {
|
|
188
|
-
size: utils_index.getSizeVariantState(md == null ? void 0 : md.size).iconSize
|
|
189
|
-
},
|
|
190
|
-
lg: {
|
|
191
|
-
size: utils_index.getSizeVariantState(lg == null ? void 0 : lg.size).iconSize
|
|
192
|
-
},
|
|
193
|
-
source: showPassword ? eyeShowVisible : eyeHidden
|
|
194
|
-
}
|
|
195
|
-
)
|
|
196
|
-
]
|
|
197
|
-
}
|
|
198
|
-
),
|
|
199
|
-
/* @__PURE__ */ jsxRuntime.jsx(formHelperText.FormHelperText, { error, children: helperText })
|
|
200
|
-
] });
|
|
201
|
-
});
|
|
202
|
-
const createStyle = ({ css } = {}) => {
|
|
203
|
-
return [css];
|
|
204
|
-
};
|
|
205
|
-
exports.Input = Input;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const input__container = "_input__container_1129f_1";
|
|
4
|
-
const input__main = "_input__main_1129f_8";
|
|
5
|
-
const input__main_error = "_input__main_error_1129f_36";
|
|
6
|
-
const input__control = "_input__control_1129f_40";
|
|
7
|
-
const classes = {
|
|
8
|
-
input__container,
|
|
9
|
-
input__main,
|
|
10
|
-
input__main_error,
|
|
11
|
-
input__control
|
|
12
|
-
};
|
|
13
|
-
exports.default = classes;
|
|
14
|
-
exports.input__container = input__container;
|
|
15
|
-
exports.input__control = input__control;
|
|
16
|
-
exports.input__main = input__main;
|
|
17
|
-
exports.input__main_error = input__main_error;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils_index = require("../../utils/index.cjs");
|
|
4
|
-
const defaultProps = {
|
|
5
|
-
xs: {
|
|
6
|
-
size: "md"
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
const getInputMaskProps = (extended) => {
|
|
10
|
-
return utils_index.mergeComponentProps(defaultProps, extended);
|
|
11
|
-
};
|
|
12
|
-
exports.getInputMaskProps = getInputMaskProps;
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
4
|
-
const react = require("react");
|
|
5
|
-
const helpers = require("./helpers.cjs");
|
|
6
|
-
const utils_index = require("../../utils/index.cjs");
|
|
7
|
-
const theme_screens = require("../../theme/screens.cjs");
|
|
8
|
-
const theme_palette = require("../../theme/palette.cjs");
|
|
9
|
-
const genericElement = require("../generic-element/generic-element.cjs");
|
|
10
|
-
const icon = require("../icon/icon.cjs");
|
|
11
|
-
const stylesheet = require("../../utils/stylesheet.cjs");
|
|
12
|
-
const InputMask = (_props, ref) => {
|
|
13
|
-
const { prefix, suffix, children, xs, sm, md, startIcon, endIcon, lg, className, error, ...props } = helpers.getInputMaskProps(_props);
|
|
14
|
-
const css = [
|
|
15
|
-
{
|
|
16
|
-
display: "flex",
|
|
17
|
-
paddingTop: 2,
|
|
18
|
-
paddingBottom: 2,
|
|
19
|
-
alignItems: "center",
|
|
20
|
-
gap: 8,
|
|
21
|
-
overflow: "hidden",
|
|
22
|
-
width: "100%",
|
|
23
|
-
position: "relative",
|
|
24
|
-
borderRadius: 8,
|
|
25
|
-
":after": {
|
|
26
|
-
content: '""',
|
|
27
|
-
position: "absolute",
|
|
28
|
-
inset: 0,
|
|
29
|
-
pointerEvents: "none",
|
|
30
|
-
borderRadius: 8,
|
|
31
|
-
borderWidth: 1,
|
|
32
|
-
borderStyle: "solid",
|
|
33
|
-
borderColor: error ? theme_palette.getColorVar("red.600") : void 0
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
createStyle(xs),
|
|
37
|
-
{
|
|
38
|
-
[theme_screens.mediaQuery("sm")]: createStyle(sm),
|
|
39
|
-
[theme_screens.mediaQuery("md")]: createStyle(md),
|
|
40
|
-
[theme_screens.mediaQuery("lg")]: createStyle(lg)
|
|
41
|
-
}
|
|
42
|
-
];
|
|
43
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
44
|
-
genericElement.GenericElement,
|
|
45
|
-
{
|
|
46
|
-
className: stylesheet.cn(className),
|
|
47
|
-
css,
|
|
48
|
-
...props,
|
|
49
|
-
ref,
|
|
50
|
-
children: [
|
|
51
|
-
prefix,
|
|
52
|
-
!!startIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
-
icon.Icon,
|
|
54
|
-
{
|
|
55
|
-
...startIcon,
|
|
56
|
-
xs: {
|
|
57
|
-
size: utils_index.getSizeVariantState(xs == null ? void 0 : xs.size).iconSize,
|
|
58
|
-
...startIcon.xs
|
|
59
|
-
},
|
|
60
|
-
sm: {
|
|
61
|
-
size: utils_index.getSizeVariantState(sm == null ? void 0 : sm.size).iconSize,
|
|
62
|
-
...startIcon.sm
|
|
63
|
-
},
|
|
64
|
-
md: {
|
|
65
|
-
size: utils_index.getSizeVariantState(md == null ? void 0 : md.size).iconSize,
|
|
66
|
-
...startIcon.md
|
|
67
|
-
},
|
|
68
|
-
lg: {
|
|
69
|
-
size: utils_index.getSizeVariantState(lg == null ? void 0 : lg.size).iconSize,
|
|
70
|
-
...startIcon.lg
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Fragment, { children }),
|
|
75
|
-
!!endIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
76
|
-
icon.Icon,
|
|
77
|
-
{
|
|
78
|
-
...endIcon,
|
|
79
|
-
xs: {
|
|
80
|
-
size: utils_index.getSizeVariantState(xs == null ? void 0 : xs.size).iconSize,
|
|
81
|
-
...endIcon.xs
|
|
82
|
-
},
|
|
83
|
-
sm: {
|
|
84
|
-
size: utils_index.getSizeVariantState(sm == null ? void 0 : sm.size).iconSize,
|
|
85
|
-
...endIcon.sm
|
|
86
|
-
},
|
|
87
|
-
md: {
|
|
88
|
-
size: utils_index.getSizeVariantState(md == null ? void 0 : md.size).iconSize,
|
|
89
|
-
...endIcon.md
|
|
90
|
-
},
|
|
91
|
-
lg: {
|
|
92
|
-
size: utils_index.getSizeVariantState(lg == null ? void 0 : lg.size).iconSize,
|
|
93
|
-
...endIcon.lg
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
),
|
|
97
|
-
suffix
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
};
|
|
102
|
-
const ForwardRefInputMask = react.forwardRef(InputMask);
|
|
103
|
-
const createStyle = ({ size, css, outline } = {}) => {
|
|
104
|
-
const { inputSize, inputPaddingX } = utils_index.getSizeVariantState(size);
|
|
105
|
-
return [
|
|
106
|
-
{
|
|
107
|
-
minHeight: inputSize,
|
|
108
|
-
paddingLeft: inputPaddingX,
|
|
109
|
-
paddingRight: inputPaddingX,
|
|
110
|
-
":after": {
|
|
111
|
-
borderTopWidth: outline == null ? void 0 : outline.top,
|
|
112
|
-
borderRightWidth: outline == null ? void 0 : outline.right,
|
|
113
|
-
borderBottomWidth: outline == null ? void 0 : outline.bottom,
|
|
114
|
-
borderLeftWidth: outline == null ? void 0 : outline.left
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
css
|
|
118
|
-
];
|
|
119
|
-
};
|
|
120
|
-
exports.InputMask = ForwardRefInputMask;
|