@shoplflow/base 0.32.19 → 0.32.21
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/index.cjs +279 -53
- package/dist/index.d.cts +34 -4
- package/dist/index.d.ts +34 -4
- package/dist/index.js +280 -54
- package/dist/styles/global.css +0 -1
- package/dist/styles/reset.css +0 -1
- package/package.json +27 -27
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/styles/global.css.map +0 -1
- package/dist/styles/reset.css.map +0 -1
package/dist/index.js
CHANGED
|
@@ -12,8 +12,8 @@ export { arrow, flip, hide, inline, offset, shift, size } from '@floating-ui/rea
|
|
|
12
12
|
import { useFloating } from '@floating-ui/react-dom';
|
|
13
13
|
import * as ShoplAssets from '@shoplflow/shopl-assets';
|
|
14
14
|
import { DownArrowSolidXsmallIcon, DownArrowIcon, FirstPageIcon, LeftArrowIcon, RightArrowIcon, EndPageIcon } from '@shoplflow/shopl-assets';
|
|
15
|
+
import { shift, flip, offset as offset$1 } from '@floating-ui/core';
|
|
15
16
|
import * as HadaAssets from '@shoplflow/hada-assets';
|
|
16
|
-
import { flip, shift, offset as offset$1 } from '@floating-ui/core';
|
|
17
17
|
import DatePicker2 from 'react-datepicker';
|
|
18
18
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
19
19
|
import SimpleBarReact from 'simplebar-react';
|
|
@@ -75,40 +75,50 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
75
75
|
mod
|
|
76
76
|
));
|
|
77
77
|
|
|
78
|
-
// ../../node_modules/.pnpm/classnames@2.
|
|
78
|
+
// ../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js
|
|
79
79
|
var require_classnames = __commonJS({
|
|
80
|
-
"../../node_modules/.pnpm/classnames@2.
|
|
80
|
+
"../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js"(exports, module) {
|
|
81
81
|
(function() {
|
|
82
82
|
var hasOwn = {}.hasOwnProperty;
|
|
83
83
|
function classNames2() {
|
|
84
|
-
var classes =
|
|
84
|
+
var classes = "";
|
|
85
85
|
for (var i = 0; i < arguments.length; i++) {
|
|
86
86
|
var arg = arguments[i];
|
|
87
|
-
if (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
87
|
+
if (arg) {
|
|
88
|
+
classes = appendClass(classes, parseValue(arg));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return classes;
|
|
92
|
+
}
|
|
93
|
+
function parseValue(arg) {
|
|
94
|
+
if (typeof arg === "string" || typeof arg === "number") {
|
|
95
|
+
return arg;
|
|
96
|
+
}
|
|
97
|
+
if (typeof arg !== "object") {
|
|
98
|
+
return "";
|
|
99
|
+
}
|
|
100
|
+
if (Array.isArray(arg)) {
|
|
101
|
+
return classNames2.apply(null, arg);
|
|
102
|
+
}
|
|
103
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
104
|
+
return arg.toString();
|
|
105
|
+
}
|
|
106
|
+
var classes = "";
|
|
107
|
+
for (var key in arg) {
|
|
108
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
109
|
+
classes = appendClass(classes, key);
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
|
-
return classes
|
|
112
|
+
return classes;
|
|
113
|
+
}
|
|
114
|
+
function appendClass(value, newClass) {
|
|
115
|
+
if (!newClass) {
|
|
116
|
+
return value;
|
|
117
|
+
}
|
|
118
|
+
if (value) {
|
|
119
|
+
return value + " " + newClass;
|
|
120
|
+
}
|
|
121
|
+
return value + newClass;
|
|
112
122
|
}
|
|
113
123
|
if (typeof module !== "undefined" && module.exports) {
|
|
114
124
|
classNames2.default = classNames2;
|
|
@@ -1784,12 +1794,19 @@ var IconButtonStyleVariants = {
|
|
|
1784
1794
|
SOLID: "SOLID",
|
|
1785
1795
|
GHOST: "GHOST"
|
|
1786
1796
|
};
|
|
1797
|
+
var getPopoverContentStyle = () => {
|
|
1798
|
+
return css`
|
|
1799
|
+
min-width: 112px;
|
|
1800
|
+
padding: 4px;
|
|
1801
|
+
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.12);
|
|
1802
|
+
border-radius: 8px;
|
|
1803
|
+
background-color: ${colorTokens.neutral0};
|
|
1804
|
+
`;
|
|
1805
|
+
};
|
|
1806
|
+
|
|
1807
|
+
// src/components/Buttons/DropdownButton/DropdownButton.styled.ts
|
|
1787
1808
|
var StyledPopoverContentWrapper = styled6.div`
|
|
1788
|
-
|
|
1789
|
-
padding: 4px;
|
|
1790
|
-
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.12);
|
|
1791
|
-
border-radius: 8px;
|
|
1792
|
-
background-color: ${colorTokens.neutral0};
|
|
1809
|
+
${getPopoverContentStyle()}
|
|
1793
1810
|
`;
|
|
1794
1811
|
var StyledArrowIcon = styled6(motion.div)`
|
|
1795
1812
|
display: flex;
|
|
@@ -2398,11 +2415,10 @@ var DropdownButton = (_a) => {
|
|
|
2398
2415
|
_styleVar = "SOLID";
|
|
2399
2416
|
color = "coolgray50";
|
|
2400
2417
|
}
|
|
2401
|
-
return /* @__PURE__ */ jsx(DropdownButtonContext.Provider, { value: { isOpen, setIsOpen }, children: /* @__PURE__ */ jsxs(Popper_default, { placement, offset: 4, children: [
|
|
2418
|
+
return /* @__PURE__ */ jsx(DropdownButtonContext.Provider, { value: { isOpen, setIsOpen }, "data-shoplflow": "DropdownButton", children: /* @__PURE__ */ jsxs(Popper_default, { placement, offset: 4, middlewares: [shift({ crossAxis: true, padding: 4 })], children: [
|
|
2402
2419
|
/* @__PURE__ */ jsx(Popper_default.Trigger, { isOpen, className: _className, children: /* @__PURE__ */ jsx(
|
|
2403
2420
|
Button_default,
|
|
2404
2421
|
__spreadProps(__spreadValues({
|
|
2405
|
-
"data-shoplflow": "DropdownButton",
|
|
2406
2422
|
className: _className,
|
|
2407
2423
|
sizeVar,
|
|
2408
2424
|
styleVar: _styleVar,
|
|
@@ -2452,6 +2468,209 @@ var DropdownButtonStyleVariants = {
|
|
|
2452
2468
|
PRIMARY: "PRIMARY",
|
|
2453
2469
|
SECONDARY: "SECONDARY"
|
|
2454
2470
|
};
|
|
2471
|
+
var getStyleByStyleVar3 = (styleVar, color, disabled) => {
|
|
2472
|
+
switch (styleVar) {
|
|
2473
|
+
case "PRIMARY":
|
|
2474
|
+
return css`
|
|
2475
|
+
border: 1px solid ${colorTokens.primary400};
|
|
2476
|
+
background-color: ${colorTokens.primary300};
|
|
2477
|
+
:hover {
|
|
2478
|
+
background-color: ${!disabled && colorTokens.primary400};
|
|
2479
|
+
}
|
|
2480
|
+
`;
|
|
2481
|
+
case "SECONDARY":
|
|
2482
|
+
return css`
|
|
2483
|
+
border: 1px solid ${colorTokens.neutral350};
|
|
2484
|
+
background-color: ${colorTokens.neutral0};
|
|
2485
|
+
:hover {
|
|
2486
|
+
background-color: ${!disabled && colorTokens.neutral100};
|
|
2487
|
+
}
|
|
2488
|
+
`;
|
|
2489
|
+
default:
|
|
2490
|
+
return css`
|
|
2491
|
+
border: 1px solid ${colorTokens.primary400};
|
|
2492
|
+
background-color: ${colorTokens.primary300};
|
|
2493
|
+
`;
|
|
2494
|
+
}
|
|
2495
|
+
};
|
|
2496
|
+
var getStyleBySizeVar3 = (sizeVar) => {
|
|
2497
|
+
switch (sizeVar) {
|
|
2498
|
+
case "M":
|
|
2499
|
+
return css`
|
|
2500
|
+
min-width: 72px;
|
|
2501
|
+
min-height: 40px;
|
|
2502
|
+
`;
|
|
2503
|
+
case "S":
|
|
2504
|
+
return css`
|
|
2505
|
+
min-width: 54px;
|
|
2506
|
+
min-height: 32px;
|
|
2507
|
+
`;
|
|
2508
|
+
default:
|
|
2509
|
+
return css`
|
|
2510
|
+
min-width: 72px;
|
|
2511
|
+
min-height: 40px;
|
|
2512
|
+
`;
|
|
2513
|
+
}
|
|
2514
|
+
};
|
|
2515
|
+
var StyledPopoverContentWrapper2 = styled6.div`
|
|
2516
|
+
${getPopoverContentStyle()}
|
|
2517
|
+
`;
|
|
2518
|
+
var StyledArrowIcon2 = styled6(motion.div)`
|
|
2519
|
+
display: flex;
|
|
2520
|
+
justify-content: center;
|
|
2521
|
+
align-items: center;
|
|
2522
|
+
flex-shrink: 0;
|
|
2523
|
+
`;
|
|
2524
|
+
var SplitButtonDivider = styled6.div`
|
|
2525
|
+
height: ${({ sizeVar }) => sizeVar === "M" ? "38px" : "30px"};
|
|
2526
|
+
width: 1px;
|
|
2527
|
+
background-color: ${({ styleVar }) => styleVar === "PRIMARY" ? colorTokens.shopl400 : colorTokens.neutral350};
|
|
2528
|
+
`;
|
|
2529
|
+
var StyledSplitButton = styled6.button`
|
|
2530
|
+
display: flex;
|
|
2531
|
+
align-items: center;
|
|
2532
|
+
justify-content: center;
|
|
2533
|
+
height: fit-content;
|
|
2534
|
+
width: fit-content;
|
|
2535
|
+
gap: 8px;
|
|
2536
|
+
padding: 0 12px;
|
|
2537
|
+
border-radius: 6px;
|
|
2538
|
+
cursor: pointer;
|
|
2539
|
+
${({ styleVar, color, disabled }) => getStyleByStyleVar3(styleVar, color, disabled)};
|
|
2540
|
+
${({ sizeVar }) => getStyleBySizeVar3(sizeVar)};
|
|
2541
|
+
${({ disabled }) => getDisabledStyle(disabled)}
|
|
2542
|
+
`;
|
|
2543
|
+
var SplitButtonContext = createContext(null);
|
|
2544
|
+
var useSplitButtonContext = () => {
|
|
2545
|
+
const context = useContext(SplitButtonContext);
|
|
2546
|
+
if (!context) {
|
|
2547
|
+
throw new Error("SplitButtonContext must be used within a SplitButton component");
|
|
2548
|
+
}
|
|
2549
|
+
return context;
|
|
2550
|
+
};
|
|
2551
|
+
var SplitButtonMenu = (_a) => {
|
|
2552
|
+
var _b = _a, { onClick, children } = _b, rest = __objRest(_b, ["onClick", "children"]);
|
|
2553
|
+
const { setIsOpen } = useSplitButtonContext();
|
|
2554
|
+
return /* @__PURE__ */ jsx(
|
|
2555
|
+
Menu_default,
|
|
2556
|
+
__spreadProps(__spreadValues({
|
|
2557
|
+
onClick: (event) => {
|
|
2558
|
+
event.stopPropagation();
|
|
2559
|
+
event.preventDefault();
|
|
2560
|
+
onClick == null ? void 0 : onClick(event);
|
|
2561
|
+
setIsOpen(false);
|
|
2562
|
+
}
|
|
2563
|
+
}, rest), {
|
|
2564
|
+
children
|
|
2565
|
+
})
|
|
2566
|
+
);
|
|
2567
|
+
};
|
|
2568
|
+
var SplitButton = (_a) => {
|
|
2569
|
+
var _b = _a, {
|
|
2570
|
+
children,
|
|
2571
|
+
color,
|
|
2572
|
+
onClick,
|
|
2573
|
+
disabled,
|
|
2574
|
+
placement = "bottom-start",
|
|
2575
|
+
floatingZIndex,
|
|
2576
|
+
leftSource,
|
|
2577
|
+
rightSource,
|
|
2578
|
+
styleVar = "PRIMARY",
|
|
2579
|
+
sizeVar = "M",
|
|
2580
|
+
lineClamp = 1,
|
|
2581
|
+
text
|
|
2582
|
+
} = _b, rest = __objRest(_b, [
|
|
2583
|
+
"children",
|
|
2584
|
+
"color",
|
|
2585
|
+
"onClick",
|
|
2586
|
+
"disabled",
|
|
2587
|
+
"placement",
|
|
2588
|
+
"floatingZIndex",
|
|
2589
|
+
"leftSource",
|
|
2590
|
+
"rightSource",
|
|
2591
|
+
"styleVar",
|
|
2592
|
+
"sizeVar",
|
|
2593
|
+
"lineClamp",
|
|
2594
|
+
"text"
|
|
2595
|
+
]);
|
|
2596
|
+
const selector = useRef(`shoplflow-${crypto.randomUUID()}-split-button`).current;
|
|
2597
|
+
const [isOpen, setIsOpen] = useOutsideClick({
|
|
2598
|
+
selector: `.${selector}`,
|
|
2599
|
+
useOutsideScroll: true
|
|
2600
|
+
});
|
|
2601
|
+
return /* @__PURE__ */ jsx(SplitButtonContext.Provider, { value: { isOpen, setIsOpen }, children: /* @__PURE__ */ jsxs(Popper_default, { placement, offset: 4, middlewares: [shift({ crossAxis: true, padding: 4 })], children: [
|
|
2602
|
+
/* @__PURE__ */ jsx(Popper_default.Trigger, { isOpen, className: selector, children: /* @__PURE__ */ jsxs(
|
|
2603
|
+
StyledSplitButton,
|
|
2604
|
+
__spreadProps(__spreadValues({
|
|
2605
|
+
"data-shoplflow": "SplitButton",
|
|
2606
|
+
color,
|
|
2607
|
+
styleVar,
|
|
2608
|
+
sizeVar,
|
|
2609
|
+
disabled
|
|
2610
|
+
}, rest), {
|
|
2611
|
+
onClick: (event) => {
|
|
2612
|
+
event.stopPropagation();
|
|
2613
|
+
event.preventDefault();
|
|
2614
|
+
if (disabled) {
|
|
2615
|
+
return;
|
|
2616
|
+
}
|
|
2617
|
+
onClick == null ? void 0 : onClick(event);
|
|
2618
|
+
setIsOpen((prev) => !prev);
|
|
2619
|
+
},
|
|
2620
|
+
children: [
|
|
2621
|
+
/* @__PURE__ */ jsxs(Stack_default.Horizontal, { spacing: "spacing04", align: "center", children: [
|
|
2622
|
+
leftSource,
|
|
2623
|
+
/* @__PURE__ */ jsx(
|
|
2624
|
+
Text_default,
|
|
2625
|
+
{
|
|
2626
|
+
lineClamp,
|
|
2627
|
+
whiteSpace: "nowrap",
|
|
2628
|
+
wordBreak: "keep-all",
|
|
2629
|
+
color: styleVar === "PRIMARY" ? "neutral0" : "neutral700",
|
|
2630
|
+
typography: sizeVar === "M" ? "body1_400" : "body2_400",
|
|
2631
|
+
children: text
|
|
2632
|
+
}
|
|
2633
|
+
),
|
|
2634
|
+
rightSource
|
|
2635
|
+
] }),
|
|
2636
|
+
/* @__PURE__ */ jsx(SplitButtonDivider, { sizeVar, styleVar }),
|
|
2637
|
+
/* @__PURE__ */ jsx(
|
|
2638
|
+
StyledArrowIcon2,
|
|
2639
|
+
{
|
|
2640
|
+
animate: {
|
|
2641
|
+
rotate: isOpen ? 180 : 0
|
|
2642
|
+
},
|
|
2643
|
+
transition: {
|
|
2644
|
+
duration: 0.2
|
|
2645
|
+
},
|
|
2646
|
+
children: /* @__PURE__ */ jsx(
|
|
2647
|
+
Icon_default,
|
|
2648
|
+
{
|
|
2649
|
+
iconSource: DownArrowSolidXsmallIcon,
|
|
2650
|
+
color: styleVar === "PRIMARY" ? "neutral0" : "neutral600",
|
|
2651
|
+
sizeVar: "XS"
|
|
2652
|
+
}
|
|
2653
|
+
)
|
|
2654
|
+
}
|
|
2655
|
+
)
|
|
2656
|
+
]
|
|
2657
|
+
})
|
|
2658
|
+
) }),
|
|
2659
|
+
/* @__PURE__ */ jsx(Popper_default.Portal, { zIndex: floatingZIndex, children: /* @__PURE__ */ jsx(StyledPopoverContentWrapper2, { children }) })
|
|
2660
|
+
] }) });
|
|
2661
|
+
};
|
|
2662
|
+
SplitButton.Menu = SplitButtonMenu;
|
|
2663
|
+
var SplitButton_default = SplitButton;
|
|
2664
|
+
|
|
2665
|
+
// src/components/Buttons/SplitButton/SplitButton.types.ts
|
|
2666
|
+
var SplitButtonSizeVariants = {
|
|
2667
|
+
S: "S",
|
|
2668
|
+
M: "M"
|
|
2669
|
+
};
|
|
2670
|
+
var SplitButtonStyleVariants = {
|
|
2671
|
+
PRIMARY: "PRIMARY",
|
|
2672
|
+
SECONDARY: "SECONDARY"
|
|
2673
|
+
};
|
|
2455
2674
|
var informationStyle = css`
|
|
2456
2675
|
background: ${colorTokens.neutral100};
|
|
2457
2676
|
& > span {
|
|
@@ -3812,22 +4031,32 @@ var Tooltip = (_a) => {
|
|
|
3812
4031
|
}
|
|
3813
4032
|
onOpenChange == null ? void 0 : onOpenChange(false);
|
|
3814
4033
|
}, [open, onOpenChange]);
|
|
3815
|
-
return /* @__PURE__ */ jsxs(
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
4034
|
+
return /* @__PURE__ */ jsxs(
|
|
4035
|
+
Popper_default,
|
|
4036
|
+
__spreadProps(__spreadValues({
|
|
4037
|
+
offset: offset4,
|
|
4038
|
+
placement,
|
|
4039
|
+
middlewares: [flip(), shift({ padding: 5 })],
|
|
4040
|
+
"data-shoplflow": "Tooltip"
|
|
4041
|
+
}, popperProps), {
|
|
4042
|
+
children: [
|
|
4043
|
+
/* @__PURE__ */ jsx(
|
|
4044
|
+
Popper_default.Trigger,
|
|
4045
|
+
{
|
|
4046
|
+
ref: triggerRef,
|
|
4047
|
+
isOpen: isOpen || open,
|
|
4048
|
+
onMouseOver: showHandler,
|
|
4049
|
+
onMouseLeave: hideHandler,
|
|
4050
|
+
onFocus: showHandler,
|
|
4051
|
+
onBlur: hideHandler,
|
|
4052
|
+
style: { display: "flex", alignItems: "center", justifyContent: "center" },
|
|
4053
|
+
children: trigger
|
|
4054
|
+
}
|
|
4055
|
+
),
|
|
4056
|
+
/* @__PURE__ */ jsx(Popper_default.Portal, { ref: portalRef, children: popper })
|
|
4057
|
+
]
|
|
4058
|
+
})
|
|
4059
|
+
);
|
|
3831
4060
|
};
|
|
3832
4061
|
Tooltip.Content = TooltipContent;
|
|
3833
4062
|
var Tooltip_default = Tooltip;
|
|
@@ -4969,7 +5198,6 @@ var YearSelect = ({ optionList, className, parentClassName, activeValue, maxHeig
|
|
|
4969
5198
|
maxHeight,
|
|
4970
5199
|
height
|
|
4971
5200
|
},
|
|
4972
|
-
placeholder: void 0,
|
|
4973
5201
|
className,
|
|
4974
5202
|
children: optionList == null ? void 0 : optionList.map((option, index) => /* @__PURE__ */ jsx(
|
|
4975
5203
|
OptionListItem,
|
|
@@ -6141,6 +6369,4 @@ classnames/index.js:
|
|
|
6141
6369
|
*)
|
|
6142
6370
|
*/
|
|
6143
6371
|
|
|
6144
|
-
export { AnnualDatepicker_default as AnnualDatepicker, Avatar_default as Avatar, AvatarSizeVariants, Button_default as Button, ButtonSizeVariants, ButtonStyleVariants, CHECKBOX_SYMBOL_KEY, Callout_default as Callout, CalloutTypes, Checkbox_default as Checkbox, CheckboxStyleVariants, ChipButton_default as ChipButton, ChipButtonSizeVariants, ChipButtonStyleVariants, ChipToggle_default as ChipToggle, ChipToggleSizeVariants, ChipToggleStyleVariants, DayDatepicker_default as DayDatepicker, DayDatepickerSizeVariants, Dropdown_default as Dropdown, DropdownButton_default as DropdownButton, DropdownButtonContext, DropdownButtonSizeVariants, DropdownButtonStyleVariants, Icon_default as Icon, IconButton_default as IconButton, IconButtonSizeVariants, IconButtonStyleVariants, IconSizeVariants, Input_default as Input, InputButton_default as InputButton, InputSizeVariants, List_default as List, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, Menu_default as Menu, MenuSizeVariants, MinusButton_default as MinusButton, Modal, ModalContext, ModalHandlerContext, ModalPortal_default as ModalProvider, ModalSize, MonthDatepicker_default as MonthDatepicker, MotionStack, MotionStackContainer, NumberCombobox_default as NumberCombobox, NumberComboboxSizeVariants, Pagination_default as Pagination, Popper_default as Popper, PopperPortal, PopperTrigger, RADIO_SYMBOL_KEY, Radio_default as Radio, ScrollArea_default as ScrollArea, SelectInputButton_default as SelectInputButton, ShoplflowProvider_default as ShoplflowProvider, Stack_default as Stack, StackContainer_default as StackContainer, StyledIcon, StyledStack, StyledStackContainer, Switch_default as Switch, TREE_SYMBOL_KEY, TabSizeVariants, TabStyleVariants, Tabs_default as Tabs, TabsContext, Tag_default as Tag, TagSizeVariants, TagStyleVariants, Text_default as Text, Text2Rows, TextArea_default as TextArea, ToggleButton_default as ToggleButton, ToggleButtonSizeVariants, Tooltip_default as Tooltip, Tree_default as Tree, TreeItem, WeekDatepicker_default as WeekDatepicker, borderRadiusTokens, boxShadowTokens, colorTokens, fontWeightTokens, getDomain, spacingTokens, typographyTokens, useDomain, useDropdownButtonContext, useHandleModal, useModalValue, useTabs };
|
|
6145
|
-
//# sourceMappingURL=out.js.map
|
|
6146
|
-
//# sourceMappingURL=index.js.map
|
|
6372
|
+
export { AnnualDatepicker_default as AnnualDatepicker, Avatar_default as Avatar, AvatarSizeVariants, Button_default as Button, ButtonSizeVariants, ButtonStyleVariants, CHECKBOX_SYMBOL_KEY, Callout_default as Callout, CalloutTypes, Checkbox_default as Checkbox, CheckboxStyleVariants, ChipButton_default as ChipButton, ChipButtonSizeVariants, ChipButtonStyleVariants, ChipToggle_default as ChipToggle, ChipToggleSizeVariants, ChipToggleStyleVariants, DayDatepicker_default as DayDatepicker, DayDatepickerSizeVariants, Dropdown_default as Dropdown, DropdownButton_default as DropdownButton, DropdownButtonContext, DropdownButtonSizeVariants, DropdownButtonStyleVariants, Icon_default as Icon, IconButton_default as IconButton, IconButtonSizeVariants, IconButtonStyleVariants, IconSizeVariants, Input_default as Input, InputButton_default as InputButton, InputSizeVariants, List_default as List, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, Menu_default as Menu, MenuSizeVariants, MinusButton_default as MinusButton, Modal, ModalContext, ModalHandlerContext, ModalPortal_default as ModalProvider, ModalSize, MonthDatepicker_default as MonthDatepicker, MotionStack, MotionStackContainer, NumberCombobox_default as NumberCombobox, NumberComboboxSizeVariants, Pagination_default as Pagination, Popper_default as Popper, PopperPortal, PopperTrigger, RADIO_SYMBOL_KEY, Radio_default as Radio, ScrollArea_default as ScrollArea, SelectInputButton_default as SelectInputButton, ShoplflowProvider_default as ShoplflowProvider, SplitButton_default as SplitButton, SplitButtonContext, SplitButtonSizeVariants, SplitButtonStyleVariants, Stack_default as Stack, StackContainer_default as StackContainer, StyledIcon, StyledStack, StyledStackContainer, Switch_default as Switch, TREE_SYMBOL_KEY, TabSizeVariants, TabStyleVariants, Tabs_default as Tabs, TabsContext, Tag_default as Tag, TagSizeVariants, TagStyleVariants, Text_default as Text, Text2Rows, TextArea_default as TextArea, ToggleButton_default as ToggleButton, ToggleButtonSizeVariants, Tooltip_default as Tooltip, Tree_default as Tree, TreeItem, WeekDatepicker_default as WeekDatepicker, borderRadiusTokens, boxShadowTokens, colorTokens, fontWeightTokens, getDomain, spacingTokens, typographyTokens, useDomain, useDropdownButtonContext, useHandleModal, useModalValue, useSplitButtonContext, useTabs };
|
package/dist/styles/global.css
CHANGED
package/dist/styles/reset.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplflow/base",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -42,32 +42,32 @@
|
|
|
42
42
|
"@emotion/styled": "11.10.8",
|
|
43
43
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
44
44
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
45
|
-
"@storybook/addon-a11y": "^
|
|
46
|
-
"@storybook/addon-actions": "^
|
|
47
|
-
"@storybook/addon-backgrounds": "^
|
|
48
|
-
"@storybook/addon-controls": "^
|
|
49
|
-
"@storybook/addon-docs": "^
|
|
50
|
-
"@storybook/addon-essentials": "^
|
|
51
|
-
"@storybook/addon-interactions": "^
|
|
52
|
-
"@storybook/addon-links": "^
|
|
53
|
-
"@storybook/addon-mdx-gfm": "^
|
|
54
|
-
"@storybook/addon-measure": "^
|
|
55
|
-
"@storybook/addon-outline": "^
|
|
56
|
-
"@storybook/addon-toolbars": "^
|
|
57
|
-
"@storybook/addon-viewport": "^
|
|
58
|
-
"@storybook/
|
|
59
|
-
"@storybook/
|
|
60
|
-
"@storybook/
|
|
61
|
-
"@storybook/react
|
|
62
|
-
"@storybook/
|
|
63
|
-
"@storybook/
|
|
45
|
+
"@storybook/addon-a11y": "^8.4.7",
|
|
46
|
+
"@storybook/addon-actions": "^8.4.7",
|
|
47
|
+
"@storybook/addon-backgrounds": "^8.4.7",
|
|
48
|
+
"@storybook/addon-controls": "^8.4.7",
|
|
49
|
+
"@storybook/addon-docs": "^8.4.7",
|
|
50
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
51
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
52
|
+
"@storybook/addon-links": "^8.4.7",
|
|
53
|
+
"@storybook/addon-mdx-gfm": "^8.4.7",
|
|
54
|
+
"@storybook/addon-measure": "^8.4.7",
|
|
55
|
+
"@storybook/addon-outline": "^8.4.7",
|
|
56
|
+
"@storybook/addon-toolbars": "^8.4.7",
|
|
57
|
+
"@storybook/addon-viewport": "^8.4.7",
|
|
58
|
+
"@storybook/blocks": "^8.4.7",
|
|
59
|
+
"@storybook/manager-api": "^8.4.7",
|
|
60
|
+
"@storybook/preview-api": "^8.4.7",
|
|
61
|
+
"@storybook/react": "^8.4.7",
|
|
62
|
+
"@storybook/react-vite": "^8.4.7",
|
|
63
|
+
"@storybook/test": "^8.4.7",
|
|
64
|
+
"@storybook/theming": "^8.4.7",
|
|
64
65
|
"@types/node": "20.4.9",
|
|
65
66
|
"@types/react": "^18.2.0",
|
|
66
67
|
"@types/react-dom": "^18.2.1",
|
|
67
68
|
"classnames": "^2.3.2",
|
|
68
69
|
"eslint-plugin-storybook": "^0.6.13",
|
|
69
|
-
"storybook": "^
|
|
70
|
-
"storybook-addon-performance": "^0.17.1",
|
|
70
|
+
"storybook": "^8.4.7",
|
|
71
71
|
"ts-node": "^10.9.1",
|
|
72
72
|
"tslib": "^2.6.2",
|
|
73
73
|
"tsup": "7.2.0",
|
|
@@ -84,14 +84,14 @@
|
|
|
84
84
|
"@floating-ui/react-dom": "^2.0.3",
|
|
85
85
|
"date-fns": "^3.6.0",
|
|
86
86
|
"framer-motion": "10.12.6",
|
|
87
|
+
"react": "^18.2.0",
|
|
87
88
|
"react-custom-scrollbars-2": "^4.5.0",
|
|
88
89
|
"react-datepicker": "^7.3.0",
|
|
89
|
-
"simplebar-react": "^3.2.6",
|
|
90
|
-
"react": "^18.2.0",
|
|
91
90
|
"react-dom": "^18.2.0",
|
|
92
|
-
"
|
|
93
|
-
"@shoplflow/
|
|
94
|
-
"@shoplflow/
|
|
91
|
+
"simplebar-react": "^3.2.6",
|
|
92
|
+
"@shoplflow/hada-assets": "^0.1.3",
|
|
93
|
+
"@shoplflow/shopl-assets": "^0.10.4",
|
|
94
|
+
"@shoplflow/utils": "^0.6.5"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|
|
97
97
|
"type-check": "tsc --noEmit",
|