@janbox/storefront-ui 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/lib/date-picker/date-picker.d.ts.map +1 -1
- package/dist/lib/date-picker/date-picker.js +1 -2
- package/dist/lib/input-range/index.d.ts +1 -0
- package/dist/lib/input-range/index.d.ts.map +1 -1
- package/dist/lib/input-range/types.d.ts +3 -4
- package/dist/lib/input-range/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/dist/style.css +579 -0
- package/package.json +1 -14
- 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 -169
- 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
package/dist/lib/link/link.cjs
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
4
|
-
const lodashEs = require("lodash-es");
|
|
5
|
-
const reactRouter = require("react-router");
|
|
6
|
-
const helpers = require("./helpers.cjs");
|
|
7
|
-
const index = require("../../hooks/use-hover-line-effect/index.cjs");
|
|
8
|
-
const constants_index = require("../../constants/index.cjs");
|
|
9
|
-
require("react");
|
|
10
|
-
require("clsx");
|
|
11
|
-
const theme_screens = require("../../theme/screens.cjs");
|
|
12
|
-
require("../../theme/palette.cjs");
|
|
13
|
-
const theme_typography = require("../../theme/typography.cjs");
|
|
14
|
-
const stylesheet = require("../../utils/stylesheet.cjs");
|
|
15
|
-
const Link = ({ children, ref, ..._props }) => {
|
|
16
|
-
const { xs, sm, md, lg, dangerouslySetInnerHTML, to, underline = false, className, ...rest } = helpers.getLinkProps(_props);
|
|
17
|
-
const hoverLineEffectProps = index.useHoverLineEffect({ enabled: underline });
|
|
18
|
-
const onClick = (e) => {
|
|
19
|
-
var _a;
|
|
20
|
-
if (e.currentTarget.getAttribute("aria-disabled") === constants_index.Booleanish.True) {
|
|
21
|
-
e.preventDefault();
|
|
22
|
-
}
|
|
23
|
-
if (lodashEs.isNil(to)) {
|
|
24
|
-
e.preventDefault();
|
|
25
|
-
}
|
|
26
|
-
(_a = rest.onClick) == null ? void 0 : _a.call(rest, e);
|
|
27
|
-
};
|
|
28
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
29
|
-
reactRouter.Link,
|
|
30
|
-
{
|
|
31
|
-
to: to ?? "#",
|
|
32
|
-
css: [
|
|
33
|
-
createStyle(xs),
|
|
34
|
-
{
|
|
35
|
-
[theme_screens.mediaQuery("sm")]: createStyle(sm),
|
|
36
|
-
[theme_screens.mediaQuery("md")]: createStyle(md),
|
|
37
|
-
[theme_screens.mediaQuery("lg")]: createStyle(lg)
|
|
38
|
-
},
|
|
39
|
-
rest["aria-disabled"] && { pointerEvents: "none" }
|
|
40
|
-
],
|
|
41
|
-
dangerouslySetInnerHTML: lodashEs.isNil(children) ? dangerouslySetInnerHTML : void 0,
|
|
42
|
-
...hoverLineEffectProps,
|
|
43
|
-
className: stylesheet.cn(
|
|
44
|
-
className,
|
|
45
|
-
hoverLineEffectProps.className
|
|
46
|
-
),
|
|
47
|
-
...rest,
|
|
48
|
-
onClick,
|
|
49
|
-
ref,
|
|
50
|
-
children: lodashEs.isNil(dangerouslySetInnerHTML) ? children : null
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
const createStyle = ({ css, textVariant } = {}) => {
|
|
55
|
-
return [
|
|
56
|
-
textVariant && {
|
|
57
|
-
fontSize: theme_typography.getTypographyVar(textVariant).fontSize,
|
|
58
|
-
lineHeight: theme_typography.getTypographyVar(textVariant).lineHeight
|
|
59
|
-
},
|
|
60
|
-
css
|
|
61
|
-
];
|
|
62
|
-
};
|
|
63
|
-
exports.Link = Link;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
4
|
-
require("react");
|
|
5
|
-
require("clsx");
|
|
6
|
-
require("lodash-es");
|
|
7
|
-
require("../../../theme/palette.cjs");
|
|
8
|
-
const stylesheet = require("../../../utils/stylesheet.cjs");
|
|
9
|
-
const emotionHelpers = require("../../../utils/emotion-helpers.cjs");
|
|
10
|
-
const BlockSkeleton = ({ className, ref, ...props }) => {
|
|
11
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12
|
-
"div",
|
|
13
|
-
{
|
|
14
|
-
css: [emotionHelpers.animatePulse, { borderRadius: "0.25rem", backgroundColor: "var(--color-neutral-200)" }],
|
|
15
|
-
className: stylesheet.cn(className),
|
|
16
|
-
...props,
|
|
17
|
-
ref
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
exports.BlockSkeleton = BlockSkeleton;
|
|
@@ -1,43 +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
|
-
require("clsx");
|
|
6
|
-
require("lodash-es");
|
|
7
|
-
require("../../../theme/palette.cjs");
|
|
8
|
-
const stylesheet = require("../../../utils/stylesheet.cjs");
|
|
9
|
-
const emotionHelpers = require("../../../utils/emotion-helpers.cjs");
|
|
10
|
-
const ImageSkeleton = react.forwardRef(({ className, ...props }, ref) => {
|
|
11
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12
|
-
"div",
|
|
13
|
-
{
|
|
14
|
-
css: [
|
|
15
|
-
emotionHelpers.animatePulse,
|
|
16
|
-
{
|
|
17
|
-
display: "flex",
|
|
18
|
-
alignItems: "center",
|
|
19
|
-
justifyContent: "center",
|
|
20
|
-
width: "100%",
|
|
21
|
-
height: "100%",
|
|
22
|
-
borderRadius: "0.25rem",
|
|
23
|
-
backgroundColor: "var(--color-neutral-200)"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
className: stylesheet.cn(className),
|
|
27
|
-
...props,
|
|
28
|
-
ref,
|
|
29
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30
|
-
"svg",
|
|
31
|
-
{
|
|
32
|
-
css: { width: "25%", height: "25%", color: "var(--color-neutral-400)" },
|
|
33
|
-
"aria-hidden": "true",
|
|
34
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
-
fill: "currentColor",
|
|
36
|
-
viewBox: "0 0 20 18",
|
|
37
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M18 0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm-5.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm4.376 10.481A1 1 0 0 1 16 15H4a1 1 0 0 1-.895-1.447l3.5-7A1 1 0 0 1 7.468 6a.965.965 0 0 1 .9.5l2.775 4.757 1.546-1.887a1 1 0 0 1 1.618.1l2.541 4a1 1 0 0 1 .028 1.011Z" })
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
exports.ImageSkeleton = ImageSkeleton;
|
|
@@ -1,60 +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 svgLoader = require("../../../components/svg-loader.cjs");
|
|
6
|
-
const utils_index = require("../../../utils/index.cjs");
|
|
7
|
-
const emotionHelpers = require("../../../utils/emotion-helpers.cjs");
|
|
8
|
-
const loadingWaiting = require("../../../assets/svg/loading-waiting.svg.cjs");
|
|
9
|
-
const stylesheet = require("../../../utils/stylesheet.cjs");
|
|
10
|
-
const LoadingOverlay = react.forwardRef(
|
|
11
|
-
({ isLoading = false, iconProps, color = "primary", style, size = 32, className, children, ...props }, ref) => {
|
|
12
|
-
const { main } = utils_index.getColorShadesByVariant(color);
|
|
13
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14
|
-
"div",
|
|
15
|
-
{
|
|
16
|
-
ref,
|
|
17
|
-
style: {
|
|
18
|
-
minWidth: size,
|
|
19
|
-
minHeight: size,
|
|
20
|
-
...style
|
|
21
|
-
},
|
|
22
|
-
css: { position: "relative" },
|
|
23
|
-
className: stylesheet.cn(className),
|
|
24
|
-
...props,
|
|
25
|
-
children: [
|
|
26
|
-
children,
|
|
27
|
-
isLoading && /* @__PURE__ */ jsxRuntime.jsx(
|
|
28
|
-
"div",
|
|
29
|
-
{
|
|
30
|
-
...iconProps,
|
|
31
|
-
css: {
|
|
32
|
-
position: "absolute",
|
|
33
|
-
top: 0,
|
|
34
|
-
right: 0,
|
|
35
|
-
bottom: 0,
|
|
36
|
-
left: 0,
|
|
37
|
-
zIndex: 10,
|
|
38
|
-
display: "grid",
|
|
39
|
-
placeItems: "center",
|
|
40
|
-
cursor: "progress"
|
|
41
|
-
},
|
|
42
|
-
className: stylesheet.cn(iconProps == null ? void 0 : iconProps.className),
|
|
43
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
44
|
-
svgLoader.SvgLoader,
|
|
45
|
-
{
|
|
46
|
-
source: loadingWaiting,
|
|
47
|
-
width: size,
|
|
48
|
-
height: size,
|
|
49
|
-
css: emotionHelpers.animateSpin,
|
|
50
|
-
style: { color: main }
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
)
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
exports.LoadingOverlay = LoadingOverlay;
|
|
@@ -1,16 +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
|
-
require("clsx");
|
|
6
|
-
require("lodash-es");
|
|
7
|
-
require("../../../theme/palette.cjs");
|
|
8
|
-
const stylesheet = require("../../../utils/stylesheet.cjs");
|
|
9
|
-
const emotionHelpers = require("../../../utils/emotion-helpers.cjs");
|
|
10
|
-
const TextSkeleton = react.forwardRef(({ className, ...props }, ref) => {
|
|
11
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("span", { css: { width: "100%", overflow: "hidden", display: "inline-flex", alignItems: "center" }, className: stylesheet.cn(className), ...props, ref, children: [
|
|
12
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { css: [emotionHelpers.animatePulse, { flex: "1 1 0%", borderRadius: "0.125rem", lineHeight: 1, backgroundColor: "var(--color-neutral-200)" }], children: " " }),
|
|
13
|
-
" "
|
|
14
|
-
] });
|
|
15
|
-
});
|
|
16
|
-
exports.TextSkeleton = TextSkeleton;
|
|
@@ -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
|
-
autoScrollOptions: {
|
|
6
|
-
playOnInit: true,
|
|
7
|
-
stopOnFocusIn: false,
|
|
8
|
-
stopOnInteraction: false,
|
|
9
|
-
stopOnMouseEnter: false
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
const getMarqueeProps = (extended) => {
|
|
13
|
-
return utils_index.mergeComponentProps(defaultProps, extended);
|
|
14
|
-
};
|
|
15
|
-
exports.getMarqueeProps = getMarqueeProps;
|
|
@@ -1,99 +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 AutoScroll = require("embla-carousel-auto-scroll");
|
|
7
|
-
const useEmblaCarousel = require("embla-carousel-react");
|
|
8
|
-
const helpers = require("./helpers.cjs");
|
|
9
|
-
const types = require("./types.cjs");
|
|
10
|
-
const constants_index = require("../../../constants/index.cjs");
|
|
11
|
-
const theme_screens = require("../../../theme/screens.cjs");
|
|
12
|
-
require("../../../theme/palette.cjs");
|
|
13
|
-
const utils_index = require("../../../utils/index.cjs");
|
|
14
|
-
const icon = require("../../icon/icon.cjs");
|
|
15
|
-
const Marquee = ({ ref, ..._props }) => {
|
|
16
|
-
const { children, xs, sm, md, autoScrollOptions, separatorIcon, ...rest } = helpers.getMarqueeProps(_props);
|
|
17
|
-
const rootEl = react.useRef(null);
|
|
18
|
-
const [emblaRef, emblaApi] = useEmblaCarousel(
|
|
19
|
-
{
|
|
20
|
-
loop: true,
|
|
21
|
-
align: "start",
|
|
22
|
-
slides: `.${constants_index.HTMLClasses.MARQUEE_SLIDE}`
|
|
23
|
-
},
|
|
24
|
-
[AutoScroll(autoScrollOptions)]
|
|
25
|
-
);
|
|
26
|
-
const mergedRefs = react$1.useMergeRefs([emblaRef, ref, rootEl]);
|
|
27
|
-
react.useEffect(() => {
|
|
28
|
-
const mutationObserver = new MutationObserver((records) => {
|
|
29
|
-
var _a;
|
|
30
|
-
const target = (_a = records.at(0)) == null ? void 0 : _a.target;
|
|
31
|
-
if (!target) return;
|
|
32
|
-
const playState = target.getAttribute(types.MarqueeDataAttributes.PlayState);
|
|
33
|
-
const autoScrollPlugin = emblaApi == null ? void 0 : emblaApi.plugins().autoScroll;
|
|
34
|
-
if (playState === "on") {
|
|
35
|
-
autoScrollPlugin == null ? void 0 : autoScrollPlugin.play(0);
|
|
36
|
-
} else {
|
|
37
|
-
autoScrollPlugin == null ? void 0 : autoScrollPlugin.stop();
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
if (rootEl.current) {
|
|
41
|
-
mutationObserver.observe(rootEl.current, {
|
|
42
|
-
attributes: true,
|
|
43
|
-
attributeFilter: [types.MarqueeDataAttributes.PlayState]
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
return () => {
|
|
47
|
-
mutationObserver.disconnect();
|
|
48
|
-
};
|
|
49
|
-
}, [emblaApi]);
|
|
50
|
-
react.useEffect(() => {
|
|
51
|
-
const onAutoScrollPlay = () => {
|
|
52
|
-
var _a;
|
|
53
|
-
(_a = rootEl.current) == null ? void 0 : _a.setAttribute(types.MarqueeDataAttributes.PlayState, "on");
|
|
54
|
-
};
|
|
55
|
-
const onAutoScrollStop = () => {
|
|
56
|
-
var _a;
|
|
57
|
-
(_a = rootEl.current) == null ? void 0 : _a.setAttribute(types.MarqueeDataAttributes.PlayState, "off");
|
|
58
|
-
};
|
|
59
|
-
emblaApi == null ? void 0 : emblaApi.on("autoScroll:play", onAutoScrollPlay);
|
|
60
|
-
emblaApi == null ? void 0 : emblaApi.on("autoScroll:stop", onAutoScrollStop);
|
|
61
|
-
return () => {
|
|
62
|
-
emblaApi == null ? void 0 : emblaApi.off("autoScroll:play", onAutoScrollPlay);
|
|
63
|
-
emblaApi == null ? void 0 : emblaApi.off("autoScroll:stop", onAutoScrollStop);
|
|
64
|
-
};
|
|
65
|
-
}, [emblaApi]);
|
|
66
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
css: [
|
|
70
|
-
{
|
|
71
|
-
overflow: "hidden",
|
|
72
|
-
maxWidth: "100%"
|
|
73
|
-
},
|
|
74
|
-
createStyle(xs),
|
|
75
|
-
{
|
|
76
|
-
[theme_screens.mediaQuery("sm")]: createStyle(sm),
|
|
77
|
-
[theme_screens.mediaQuery("md")]: createStyle(md)
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
...rest,
|
|
81
|
-
ref: mergedRefs,
|
|
82
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { css: { display: "flex", alignItems: "center", "& > *": { flexShrink: 0, flexGrow: 0, overflow: "hidden" } }, children: utils_index.flattenChildren(children).map((child, index) => /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
|
|
83
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: constants_index.HTMLClasses.MARQUEE_SLIDE, children: child }),
|
|
84
|
-
!!separatorIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: constants_index.HTMLClasses.MARQUEE_SLIDE, children: /* @__PURE__ */ jsxRuntime.jsx(icon.Icon, { ...separatorIcon }) })
|
|
85
|
-
] }, `marquee-item-${index}`)) })
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
};
|
|
89
|
-
const createStyle = ({ css: { width, height, ...css } = {} } = {}) => {
|
|
90
|
-
return [
|
|
91
|
-
{
|
|
92
|
-
width,
|
|
93
|
-
height,
|
|
94
|
-
"& > *": css
|
|
95
|
-
},
|
|
96
|
-
css
|
|
97
|
-
];
|
|
98
|
-
};
|
|
99
|
-
exports.Marquee = Marquee;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var MarqueeDataAttributes = /* @__PURE__ */ ((MarqueeDataAttributes2) => {
|
|
4
|
-
MarqueeDataAttributes2["PlayState"] = "data-marquee-play-state";
|
|
5
|
-
return MarqueeDataAttributes2;
|
|
6
|
-
})(MarqueeDataAttributes || {});
|
|
7
|
-
exports.MarqueeDataAttributes = MarqueeDataAttributes;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
4
|
-
const MarqueeItem = ({ ref, ...props }) => {
|
|
5
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6
|
-
"div",
|
|
7
|
-
{
|
|
8
|
-
...props,
|
|
9
|
-
css: {
|
|
10
|
-
display: "contents"
|
|
11
|
-
},
|
|
12
|
-
ref
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
};
|
|
16
|
-
exports.MarqueeItem = MarqueeItem;
|
|
@@ -1,38 +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("@floating-ui/react");
|
|
5
|
-
const useControllableState = require("../../../hooks/use-controllable-state.cjs");
|
|
6
|
-
const floating = require("../../floating/floating/floating.cjs");
|
|
7
|
-
const Menu = ({ hoverProps, dismissProps, clickProps, ...props }) => {
|
|
8
|
-
const [open, setOpen] = useControllableState.useControllableState({
|
|
9
|
-
defaultValue: false,
|
|
10
|
-
value: props.open
|
|
11
|
-
});
|
|
12
|
-
const onOpenChange = (open2, event, reason) => {
|
|
13
|
-
var _a;
|
|
14
|
-
setOpen(open2);
|
|
15
|
-
(_a = props.onOpenChange) == null ? void 0 : _a.call(props, open2, event, reason);
|
|
16
|
-
};
|
|
17
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18
|
-
floating.Floating,
|
|
19
|
-
{
|
|
20
|
-
dismissProps: {
|
|
21
|
-
enabled: true,
|
|
22
|
-
...dismissProps
|
|
23
|
-
},
|
|
24
|
-
clickProps: {
|
|
25
|
-
enabled: true,
|
|
26
|
-
...clickProps
|
|
27
|
-
},
|
|
28
|
-
hoverProps: {
|
|
29
|
-
handleClose: react.safePolygon(),
|
|
30
|
-
...hoverProps
|
|
31
|
-
},
|
|
32
|
-
...props,
|
|
33
|
-
open,
|
|
34
|
-
onOpenChange
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
exports.Menu = Menu;
|
|
@@ -1,16 +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
|
-
variant: "text",
|
|
6
|
-
color: "neutral",
|
|
7
|
-
xs: {
|
|
8
|
-
css: {
|
|
9
|
-
width: "100%"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
const getMenuItemProps = (extended) => {
|
|
14
|
-
return utils_index.mergeComponentProps(defaultProps, extended);
|
|
15
|
-
};
|
|
16
|
-
exports.getMenuItemProps = getMenuItemProps;
|
|
@@ -1,34 +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 constants_index = require("../../../constants/index.cjs");
|
|
7
|
-
const button = require("../../button/button.cjs");
|
|
8
|
-
const helpers$1 = require("../../floating/floating/helpers.cjs");
|
|
9
|
-
const MenuItem = react.forwardRef((_props, ref) => {
|
|
10
|
-
const { children, ...props } = helpers.getMenuItemProps(_props);
|
|
11
|
-
const { context } = helpers$1.useFloatingContext();
|
|
12
|
-
const onClick = (e) => {
|
|
13
|
-
var _a, _b;
|
|
14
|
-
if (((_a = e.currentTarget.parentElement) == null ? void 0 : _a.getAttribute(constants_index.HTMLDatasetAttributes.DATA_MENU_LIST)) === constants_index.Booleanish.True) {
|
|
15
|
-
context == null ? void 0 : context.onOpenChange(false, e.nativeEvent, "click");
|
|
16
|
-
}
|
|
17
|
-
(_b = props.onClick) == null ? void 0 : _b.call(props, e);
|
|
18
|
-
};
|
|
19
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
20
|
-
button.Button,
|
|
21
|
-
{
|
|
22
|
-
...props,
|
|
23
|
-
css: {
|
|
24
|
-
justifyContent: "start",
|
|
25
|
-
textAlign: "left",
|
|
26
|
-
width: "100%"
|
|
27
|
-
},
|
|
28
|
-
onClick,
|
|
29
|
-
ref,
|
|
30
|
-
children
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
});
|
|
34
|
-
exports.MenuItem = MenuItem;
|
|
@@ -1,34 +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
|
-
require("clsx");
|
|
6
|
-
require("lodash-es");
|
|
7
|
-
const theme_palette = require("../../../theme/palette.cjs");
|
|
8
|
-
const stylesheet = require("../../../utils/stylesheet.cjs");
|
|
9
|
-
const constants_index = require("../../../constants/index.cjs");
|
|
10
|
-
const floatingContent = require("../../floating/floating-content/floating-content.cjs");
|
|
11
|
-
const MenuList = react.forwardRef(({ className, children, ...props }, ref) => {
|
|
12
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13
|
-
floatingContent.FloatingContent,
|
|
14
|
-
{
|
|
15
|
-
css: {
|
|
16
|
-
backgroundColor: theme_palette.getColorVar("surface.default"),
|
|
17
|
-
padding: "0.25rem",
|
|
18
|
-
borderRadius: "0.75rem",
|
|
19
|
-
borderWidth: "1px",
|
|
20
|
-
borderStyle: "solid",
|
|
21
|
-
borderColor: theme_palette.getColorVar("neutral.100"),
|
|
22
|
-
boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)",
|
|
23
|
-
display: "flex",
|
|
24
|
-
flexDirection: "column"
|
|
25
|
-
},
|
|
26
|
-
className: stylesheet.cn(className),
|
|
27
|
-
...props,
|
|
28
|
-
...{ [constants_index.HTMLDatasetAttributes.DATA_MENU_LIST]: true },
|
|
29
|
-
ref,
|
|
30
|
-
children
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
});
|
|
34
|
-
exports.MenuList = MenuList;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var MenuListDataAttributes = /* @__PURE__ */ ((MenuListDataAttributes2) => {
|
|
4
|
-
MenuListDataAttributes2["DataMenuList"] = "data-menu-list";
|
|
5
|
-
return MenuListDataAttributes2;
|
|
6
|
-
})(MenuListDataAttributes || {});
|
|
7
|
-
exports.MenuListDataAttributes = MenuListDataAttributes;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
4
|
-
const floatingTrigger = require("../../floating/floating-trigger/floating-trigger.cjs");
|
|
5
|
-
const MenuTrigger = ({ ...props }) => {
|
|
6
|
-
return /* @__PURE__ */ jsxRuntime.jsx(floatingTrigger.FloatingTrigger, { ...props });
|
|
7
|
-
};
|
|
8
|
-
exports.MenuTrigger = MenuTrigger;
|
|
@@ -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 getMultipleSelectProps = (extended) => {
|
|
10
|
-
return utils_index.mergeComponentProps(defaultProps, extended);
|
|
11
|
-
};
|
|
12
|
-
exports.getMultipleSelectProps = getMultipleSelectProps;
|