@driveflux/beam 2.1.2-next.4 → 2.1.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/accordion/Accordion.stories.js +1 -1
- package/dist/accordion/Accordion.stories.js.map +1 -1
- package/dist/alert/Alert.d.ts +1 -1
- package/dist/alert/Alert.d.ts.map +1 -1
- package/dist/alert/Alert.js.map +1 -1
- package/dist/alert/Alert.stories.d.ts +1 -1
- package/dist/badge/Badge.d.ts +1 -1
- package/dist/badge/Badge.d.ts.map +1 -1
- package/dist/badge/Badge.js.map +1 -1
- package/dist/base-styles.css +24 -25
- package/dist/button/Button.d.ts.map +1 -1
- package/dist/button/Button.js +12 -124
- package/dist/button/Button.js.map +1 -1
- package/dist/carousel/Carousel.d.ts.map +1 -1
- package/dist/carousel/Carousel.js.map +1 -1
- package/dist/carousel/CarouselButton.d.ts.map +1 -1
- package/dist/carousel/CarouselButton.js.map +1 -1
- package/dist/chip/Chip.stories.d.ts.map +1 -1
- package/dist/chip/Chip.stories.js.map +1 -1
- package/dist/command/command.d.ts +7 -7
- package/dist/datepicker/DatePicker.d.ts +3 -2
- package/dist/datepicker/DatePicker.d.ts.map +1 -1
- package/dist/datepicker/DatePicker.js +3 -3
- package/dist/datepicker/DatePicker.js.map +1 -1
- package/dist/datepicker/DatePicker.stories.js +1 -1
- package/dist/datepicker/DatePicker.stories.js.map +1 -1
- package/dist/datepicker/DatePickerPopover.d.ts.map +1 -1
- package/dist/datepicker/DatePickerPopover.js +36 -208
- package/dist/datepicker/DatePickerPopover.js.map +1 -1
- package/dist/datepicker/calendar.css +3 -3
- package/dist/datepicker/utils.d.ts +1 -1
- package/dist/datepicker/utils.d.ts.map +1 -1
- package/dist/datepicker/utils.js +1 -1
- package/dist/datepicker/utils.js.map +1 -1
- package/dist/dialog/index.js +1 -1
- package/dist/dialog/index.js.map +1 -1
- package/dist/icons/IconHome.d.ts.map +1 -1
- package/dist/icons/IconHome.js.map +1 -1
- package/dist/input-select/InputSelect.js +4 -4
- package/dist/input-select/InputSelect.js.map +1 -1
- package/dist/input-select/InputSelect.stories.d.ts.map +1 -1
- package/dist/search-input-select/SearchInputSelect.js +2 -2
- package/dist/search-input-select/SearchInputSelect.js.map +1 -1
- package/dist/select/Select.js +1 -1
- package/dist/select/Select.js.map +1 -1
- package/dist/select/Select.stories.d.ts.map +1 -1
- package/dist/skeleton/Skeleton.js +3 -62
- package/dist/slider/Slider.stories.d.ts.map +1 -1
- package/dist/slider/Slider.stories.js.map +1 -1
- package/dist/styles.css +13 -12
- package/dist/tabs/Tabs.d.ts +1 -1
- package/dist/tabs/Tabs.d.ts.map +1 -1
- package/dist/tabs/Tabs.js.map +1 -1
- package/dist/toast/Toast.stories.js.map +1 -1
- package/dist/toast/ToastBox.js +24 -71
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/index.js.map +1 -1
- package/dist/tooltip/Tooltip.js +12 -151
- package/package.json +53 -49
|
@@ -1,66 +1,7 @@
|
|
|
1
|
-
function _define_property(obj, key, value) {
|
|
2
|
-
if (key in obj) {
|
|
3
|
-
Object.defineProperty(obj, key, {
|
|
4
|
-
value: value,
|
|
5
|
-
enumerable: true,
|
|
6
|
-
configurable: true,
|
|
7
|
-
writable: true
|
|
8
|
-
});
|
|
9
|
-
} else {
|
|
10
|
-
obj[key] = value;
|
|
11
|
-
}
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
|
-
function _object_spread(target) {
|
|
15
|
-
for(var i = 1; i < arguments.length; i++){
|
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
-
var ownKeys = Object.keys(source);
|
|
18
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
-
}));
|
|
22
|
-
}
|
|
23
|
-
ownKeys.forEach(function(key) {
|
|
24
|
-
_define_property(target, key, source[key]);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
}
|
|
29
|
-
function _object_without_properties(source, excluded) {
|
|
30
|
-
if (source == null) return {};
|
|
31
|
-
var target = _object_without_properties_loose(source, excluded);
|
|
32
|
-
var key, i;
|
|
33
|
-
if (Object.getOwnPropertySymbols) {
|
|
34
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
35
|
-
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
36
|
-
key = sourceSymbolKeys[i];
|
|
37
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
38
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
|
-
target[key] = source[key];
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return target;
|
|
43
|
-
}
|
|
44
|
-
function _object_without_properties_loose(source, excluded) {
|
|
45
|
-
if (source == null) return {};
|
|
46
|
-
var target = {};
|
|
47
|
-
var sourceKeys = Object.keys(source);
|
|
48
|
-
var key, i;
|
|
49
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
50
|
-
key = sourceKeys[i];
|
|
51
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
52
|
-
target[key] = source[key];
|
|
53
|
-
}
|
|
54
|
-
return target;
|
|
55
|
-
}
|
|
56
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
57
2
|
import { cn } from '../utils';
|
|
58
|
-
function Skeleton(
|
|
59
|
-
|
|
60
|
-
"className"
|
|
61
|
-
]);
|
|
62
|
-
return /*#__PURE__*/ _jsx("div", _object_spread({
|
|
63
|
-
className: cn('animate-pulse bg-primary1 rounded-lg md:rounded-xl dark:bg-zinc-800', className)
|
|
64
|
-
}, props));
|
|
3
|
+
function Skeleton({ className, ...props }) {
|
|
4
|
+
return (_jsx("div", { className: cn('animate-pulse bg-primary1 rounded-lg md:rounded-xl dark:bg-zinc-800', className), ...props }));
|
|
65
5
|
}
|
|
66
6
|
export default Skeleton;
|
|
7
|
+
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.stories.d.ts","sourceRoot":"","sources":["../../src/slider/Slider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"Slider.stories.d.ts","sourceRoot":"","sources":["../../src/slider/Slider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEtD,QAAA,MAAM,IAAI;;;;;;;CAKqB,CAAA;AAE/B,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,UAAU,EAAE,KAYxB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.stories.js","sourceRoot":"","sources":["../../src/slider/Slider.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"Slider.stories.js","sourceRoot":"","sources":["../../src/slider/Slider.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,MAAM,IAAI,GAAG;IACZ,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE;QACL,EAAE,EAAE,MAAM;KACV;CAC6B,CAAA;AAE/B,eAAe,IAAI,CAAA;AAGnB,MAAM,CAAC,MAAM,UAAU,GAAU;IAChC,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;QAClB,OAAO,CACN,KAAC,MAAM;QACN,sBAAsB;;YAAtB,sBAAsB;YACtB,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,CAAC,GAEN,CACF,CAAA;IACF,CAAC;CACD,CAAA"}
|
package/dist/styles.css
CHANGED
|
@@ -2537,7 +2537,7 @@
|
|
|
2537
2537
|
.react-calendar__navigation {
|
|
2538
2538
|
margin-bottom: 16px;
|
|
2539
2539
|
padding-bottom: 16px;
|
|
2540
|
-
border-bottom: 1px solid var(--primary1);
|
|
2540
|
+
border-bottom: 1px solid var(--primary1) !important;
|
|
2541
2541
|
}
|
|
2542
2542
|
.react-calendar__navigation button {
|
|
2543
2543
|
display: flex;
|
|
@@ -2581,8 +2581,8 @@
|
|
|
2581
2581
|
letter-spacing: 1px;
|
|
2582
2582
|
font-size: 12px;
|
|
2583
2583
|
text-transform: uppercase;
|
|
2584
|
-
border-right: 1px solid var(--primary1);
|
|
2585
|
-
border-bottom: 1px solid var(--primary1);
|
|
2584
|
+
border-right: 1px solid var(--primary1) !important;
|
|
2585
|
+
border-bottom: 1px solid var(--primary1) !important;
|
|
2586
2586
|
}
|
|
2587
2587
|
.react-calendar__tile:enabled:hover {
|
|
2588
2588
|
background: var(--primary1);
|
|
@@ -2619,14 +2619,14 @@
|
|
|
2619
2619
|
}
|
|
2620
2620
|
@font-face {
|
|
2621
2621
|
font-family: "Gotham-Black";
|
|
2622
|
-
src: url("https://driveflux.com/static/fonts/Gotham-Black.woff2")
|
|
2622
|
+
src: url("https://driveflux.com/static/fonts/Gotham-Black.woff2") format("woff2"), url("https://driveflux.com/static/fonts/Gotham-Black.woff") format("woff"), url("https://driveflux.com/static/fonts/gotham-black.otf") format("otf");
|
|
2623
2623
|
font-weight: 500;
|
|
2624
2624
|
font-style: normal;
|
|
2625
2625
|
font-display: swap;
|
|
2626
2626
|
}
|
|
2627
2627
|
@font-face {
|
|
2628
2628
|
font-family: "Gotham-Light";
|
|
2629
|
-
src: url("https://driveflux.com/static/fonts/Gotham-Light.woff2")
|
|
2629
|
+
src: url("https://driveflux.com/static/fonts/Gotham-Light.woff2") format("woff2"), url("https://driveflux.com/static/fonts/Gotham-Light.woff") format("woff"), url("https://driveflux.com/static/fonts/gotham-light.otf") format("otf");
|
|
2630
2630
|
font-weight: 300;
|
|
2631
2631
|
font-style: normal;
|
|
2632
2632
|
font-display: swap;
|
|
@@ -2640,14 +2640,14 @@
|
|
|
2640
2640
|
}
|
|
2641
2641
|
@font-face {
|
|
2642
2642
|
font-family: "Gotham-Bold";
|
|
2643
|
-
src: url("https://driveflux.com/static/fonts/Gotham-Bold.woff2")
|
|
2643
|
+
src: url("https://driveflux.com/static/fonts/Gotham-Bold.woff2") format("woff2"), url("https://driveflux.com/static/fonts/Gotham-Bold.woff") format("woff"), url("https://driveflux.com/static/fonts/gotham-bold.otf") format("otf");
|
|
2644
2644
|
font-weight: bold;
|
|
2645
2645
|
font-style: normal;
|
|
2646
2646
|
font-display: swap;
|
|
2647
2647
|
}
|
|
2648
2648
|
@font-face {
|
|
2649
2649
|
font-family: "Gotham-Book";
|
|
2650
|
-
src: url("https://driveflux.com/static/fonts/Gotham-Book.woff2")
|
|
2650
|
+
src: url("https://driveflux.com/static/fonts/Gotham-Book.woff2") format("woff2"), url("https://driveflux.com/static/fonts/Gotham-Book.woff") format("woff"), url("https://driveflux.com/static/fonts/gotham-book.otf") format("otf");
|
|
2651
2651
|
font-weight: normal;
|
|
2652
2652
|
font-style: normal;
|
|
2653
2653
|
font-display: swap;
|
|
@@ -2665,6 +2665,7 @@
|
|
|
2665
2665
|
text-decoration: none;
|
|
2666
2666
|
}
|
|
2667
2667
|
html {
|
|
2668
|
+
line-height: 1.15;
|
|
2668
2669
|
-webkit-text-size-adjust: 100%;
|
|
2669
2670
|
height: 100%;
|
|
2670
2671
|
box-sizing: border-box;
|
|
@@ -2677,7 +2678,7 @@
|
|
|
2677
2678
|
position: relative;
|
|
2678
2679
|
min-height: 100%;
|
|
2679
2680
|
margin: 0;
|
|
2680
|
-
font-family: var(--font-normal), -apple-system, BlinkMacSystemFont,
|
|
2681
|
+
font-family: var(--font-normal), -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
2681
2682
|
font-weight: 400;
|
|
2682
2683
|
min-width: 320px;
|
|
2683
2684
|
direction: ltr;
|
|
@@ -2719,10 +2720,10 @@
|
|
|
2719
2720
|
height: 100%;
|
|
2720
2721
|
}
|
|
2721
2722
|
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, textarea:-webkit-autofill:hover, textarea:-webkit-autofill:focus, select:-webkit-autofill, select:-webkit-autofill:hover, select:-webkit-autofill:focus {
|
|
2722
|
-
background-color: var(--white);
|
|
2723
|
-
-webkit-box-shadow: 0 0 0px 1000px var(--white) inset;
|
|
2724
|
-
color: #000;
|
|
2725
|
-
font-size: 14px;
|
|
2723
|
+
background-color: var(--white) !important;
|
|
2724
|
+
-webkit-box-shadow: 0 0 0px 1000px var(--white) inset !important;
|
|
2725
|
+
color: #000 !important;
|
|
2726
|
+
font-size: 14px !important;
|
|
2726
2727
|
}
|
|
2727
2728
|
li::marker {
|
|
2728
2729
|
font-size: 15px;
|
package/dist/tabs/Tabs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TabsProps as PrimitiveTabsProps } from '@radix-ui/react-tabs';
|
|
2
1
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
2
|
+
import type { TabsProps as PrimitiveTabsProps } from '@radix-ui/react-tabs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
export interface TabsProps extends PrimitiveTabsProps {
|
|
5
5
|
defaultValue?: string;
|
package/dist/tabs/Tabs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/tabs/Tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/tabs/Tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACpD,YAAY,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,UAAU,QACT,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC;IACpE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACtB;AAED,QAAA,MAAM,IAAI,GAAI,4BAA4B,SAAS,4CAclD,CAAA;AAED,QAAA,MAAM,QAAQ,uJAYZ,CAAA;AAIF,QAAA,MAAM,GAAG,oFAmBP,CAAA;AAIF,QAAA,MAAM,WAAW,0JAYf,CAAA;AAGF,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAA"}
|
package/dist/tabs/Tabs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../src/tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../src/tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAA;AAErD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,MAAM,MAAM,kBAAkB,CAAA;AACrC,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAA;AAW7B,MAAM,IAAI,GAAG,CAAC,EAAE,YAAY,EAAE,GAAG,KAAK,EAAa,EAAE,EAAE;IACtD,MAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CA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UAAU,CAGlC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACnC,KAAC,aAAa,CAAC,OAAO,IACrB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACZ,6LAA6L,EAC7L,SAAS,CACT,KACG,KAAK,GACR,CACF,CAAC,CAAA;AACF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC,OAAO,CAAC,WAAW,CAAA;AAE3D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.stories.js","sourceRoot":"","sources":["../../src/toast/Toast.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,GAAG,MAAM,eAAe,CAAA;AAC/B,OAAO,MAA4B,MAAM,qBAAqB,CAAA;AAC9D,OAAO,MAAM,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"Toast.stories.js","sourceRoot":"","sources":["../../src/toast/Toast.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,GAAG,MAAM,eAAe,CAAA;AAC/B,OAAO,MAA4B,MAAM,qBAAqB,CAAA;AAC9D,OAAO,MAAM,MAAM,qBAAqB,CAAA;AAExC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,IAAI,GAAG;IACZ,SAAS,EAAE,OAAO;CACa,CAAA;AAEhC,eAAe,IAAI,CAAA;AAGnB,MAAM,CAAC,MAAM,UAAU,GAAU;IAChC,MAAM,EAAE,GAAG,EAAE;QACZ,OAAO,CACN,KAAC,KAAK,cACL,MAAC,MAAM,eACN,KAAC,WAAW,IACX,KAAK,EAAC,qBAAqB,EAC3B,WAAW,EAAC,wCAAwC,EACpD,MAAM,EAAC,OAAO,EACd,WAAW,EAAE,QAAQ,GACpB,EACF,KAAC,WAAW,IACX,KAAK,EAAC,uBAAuB,EAC7B,W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package/dist/toast/ToastBox.js
CHANGED
|
@@ -8,106 +8,59 @@ import IconClose from '../icons/IconClose';
|
|
|
8
8
|
import IconInfo from '../icons/IconInfo';
|
|
9
9
|
import IconTriangleExclamation from '../icons/IconTriangleExclamation';
|
|
10
10
|
import Text from '../text/Text';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/*#__PURE__*/ _jsxs(HStack, {
|
|
20
|
-
className: 'space-y-1 w-full',
|
|
21
|
-
children: [
|
|
22
|
-
/*#__PURE__*/ _jsx(Box, {
|
|
23
|
-
className: titleColor,
|
|
24
|
-
children: icon
|
|
25
|
-
}),
|
|
26
|
-
/*#__PURE__*/ _jsxs(Box, {
|
|
27
|
-
className: "w-full",
|
|
28
|
-
children: [
|
|
29
|
-
title && /*#__PURE__*/ _jsx(Text, {
|
|
30
|
-
className: "font-bold text-base",
|
|
31
|
-
children: title
|
|
32
|
-
}),
|
|
33
|
-
description && /*#__PURE__*/ _jsx(Box, {
|
|
34
|
-
className: "".concat(textColor, " text-base"),
|
|
35
|
-
children: typeof description === 'string' ? splitText(description, isNumbered) : description
|
|
36
|
-
})
|
|
37
|
-
]
|
|
38
|
-
})
|
|
39
|
-
]
|
|
40
|
-
}),
|
|
41
|
-
(options === null || options === void 0 ? void 0 : options.isClosable) && /*#__PURE__*/ _jsx(Box, {
|
|
42
|
-
as: "button",
|
|
43
|
-
onClick: function() {
|
|
11
|
+
const ToastBox = (options) => {
|
|
12
|
+
const title = options?.title;
|
|
13
|
+
const description = options?.description;
|
|
14
|
+
const isNumbered = options?.isNumbered;
|
|
15
|
+
const { icon, titleColor, borderColor, textColor, bgColor } = getStyles(options?.status);
|
|
16
|
+
return (_jsxs(HStack, { className: `flex w-full items-start ${textColor} ${bgColor} border-l-8 ${borderColor} p-3 space-y-3 rounded-lg`, children: [_jsxs(HStack, { className: 'space-y-1 w-full', children: [_jsx(Box, { className: titleColor, children: icon }), _jsxs(Box, { className: "w-full", children: [title && _jsx(Text, { className: "font-bold text-base", children: title }), description && (_jsx(Box, { className: `${textColor} text-base`, children: typeof description === 'string'
|
|
17
|
+
? splitText(description, isNumbered)
|
|
18
|
+
: description }))] })] }), options?.isClosable && (_jsx(Box, { as: "button", onClick: () => {
|
|
44
19
|
toast.dismiss(options.id);
|
|
45
|
-
},
|
|
46
|
-
children: /*#__PURE__*/ _jsx(IconClose, {
|
|
47
|
-
size: '24px'
|
|
48
|
-
})
|
|
49
|
-
})
|
|
50
|
-
]
|
|
51
|
-
});
|
|
20
|
+
}, children: _jsx(IconClose, { size: '24px' }) }))] }));
|
|
52
21
|
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return /*#__PURE__*/ _jsx("li", {
|
|
56
|
-
children: line
|
|
57
|
-
}, line);
|
|
58
|
-
});
|
|
22
|
+
const splitText = (text, isNumbered) => {
|
|
23
|
+
const listItems = text.split('\n').map((line) => _jsx("li", { children: line }, line));
|
|
59
24
|
if (isNumbered) {
|
|
60
|
-
return
|
|
61
|
-
children: listItems
|
|
62
|
-
});
|
|
25
|
+
return _jsx("ol", { children: listItems });
|
|
63
26
|
}
|
|
64
|
-
return
|
|
65
|
-
children: listItems
|
|
66
|
-
});
|
|
27
|
+
return _jsx("ul", { children: listItems });
|
|
67
28
|
};
|
|
68
|
-
|
|
69
|
-
switch(status){
|
|
29
|
+
const getStyles = (status) => {
|
|
30
|
+
switch (status) {
|
|
70
31
|
case 'error':
|
|
71
32
|
return {
|
|
72
|
-
icon:
|
|
73
|
-
size: '24px'
|
|
74
|
-
}),
|
|
33
|
+
icon: _jsx(IconTriangleExclamation, { size: '24px' }),
|
|
75
34
|
bgColor: 'bg-accent-50',
|
|
76
35
|
titleColor: 'text-accent-300',
|
|
77
36
|
textColor: 'text-accent-600',
|
|
78
|
-
borderColor: 'border-accent-300'
|
|
37
|
+
borderColor: 'border-accent-300',
|
|
79
38
|
};
|
|
80
39
|
case 'success':
|
|
81
40
|
return {
|
|
82
|
-
icon:
|
|
83
|
-
variant: "on",
|
|
84
|
-
size: '24px'
|
|
85
|
-
}),
|
|
41
|
+
icon: _jsx(IconCircleMark, { variant: "on", size: '24px' }),
|
|
86
42
|
bgColor: 'bg-success-50',
|
|
87
43
|
titleColor: 'text-success-300',
|
|
88
44
|
textColor: 'text-success-600',
|
|
89
|
-
borderColor: 'border-success-300'
|
|
45
|
+
borderColor: 'border-success-300',
|
|
90
46
|
};
|
|
91
47
|
case 'warning':
|
|
92
48
|
return {
|
|
93
|
-
icon:
|
|
94
|
-
size: '24px'
|
|
95
|
-
}),
|
|
49
|
+
icon: _jsx(IconCircleExclamation, { size: '24px' }),
|
|
96
50
|
bgColor: 'bg-warning-50',
|
|
97
51
|
titleColor: 'text-warning-300',
|
|
98
52
|
textColor: 'text-warning-600',
|
|
99
|
-
borderColor: 'border-warning-300'
|
|
53
|
+
borderColor: 'border-warning-300',
|
|
100
54
|
};
|
|
101
55
|
default:
|
|
102
56
|
return {
|
|
103
|
-
icon:
|
|
104
|
-
size: '24px'
|
|
105
|
-
}),
|
|
57
|
+
icon: _jsx(IconInfo, { size: '24px' }),
|
|
106
58
|
bgColor: 'bg-info-50',
|
|
107
59
|
titleColor: 'text-info-300',
|
|
108
60
|
textColor: 'text-info-600',
|
|
109
|
-
borderColor: 'border-info-300'
|
|
61
|
+
borderColor: 'border-info-300',
|
|
110
62
|
};
|
|
111
63
|
}
|
|
112
64
|
};
|
|
113
65
|
export default ToastBox;
|
|
66
|
+
//# sourceMappingURL=ToastBox.js.map
|
package/dist/toast/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Toaster, type ToastOptions
|
|
1
|
+
export { Toaster, toast, type ToastOptions } from './sonner';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/toast/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAqB,MAAM,UAAU,CAAA"}
|
package/dist/tooltip/Tooltip.js
CHANGED
|
@@ -1,105 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
function _array_like_to_array(arr, len) {
|
|
3
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
4
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5
|
-
return arr2;
|
|
6
|
-
}
|
|
7
|
-
function _array_with_holes(arr) {
|
|
8
|
-
if (Array.isArray(arr)) return arr;
|
|
9
|
-
}
|
|
10
|
-
function _define_property(obj, key, value) {
|
|
11
|
-
if (key in obj) {
|
|
12
|
-
Object.defineProperty(obj, key, {
|
|
13
|
-
value: value,
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true
|
|
17
|
-
});
|
|
18
|
-
} else {
|
|
19
|
-
obj[key] = value;
|
|
20
|
-
}
|
|
21
|
-
return obj;
|
|
22
|
-
}
|
|
23
|
-
function _iterable_to_array_limit(arr, i) {
|
|
24
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
25
|
-
if (_i == null) return;
|
|
26
|
-
var _arr = [];
|
|
27
|
-
var _n = true;
|
|
28
|
-
var _d = false;
|
|
29
|
-
var _s, _e;
|
|
30
|
-
try {
|
|
31
|
-
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
32
|
-
_arr.push(_s.value);
|
|
33
|
-
if (i && _arr.length === i) break;
|
|
34
|
-
}
|
|
35
|
-
} catch (err) {
|
|
36
|
-
_d = true;
|
|
37
|
-
_e = err;
|
|
38
|
-
} finally{
|
|
39
|
-
try {
|
|
40
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
41
|
-
} finally{
|
|
42
|
-
if (_d) throw _e;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return _arr;
|
|
46
|
-
}
|
|
47
|
-
function _non_iterable_rest() {
|
|
48
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
49
|
-
}
|
|
50
|
-
function _object_spread(target) {
|
|
51
|
-
for(var i = 1; i < arguments.length; i++){
|
|
52
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
53
|
-
var ownKeys = Object.keys(source);
|
|
54
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
55
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
56
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
57
|
-
}));
|
|
58
|
-
}
|
|
59
|
-
ownKeys.forEach(function(key) {
|
|
60
|
-
_define_property(target, key, source[key]);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
return target;
|
|
64
|
-
}
|
|
65
|
-
function _object_without_properties(source, excluded) {
|
|
66
|
-
if (source == null) return {};
|
|
67
|
-
var target = _object_without_properties_loose(source, excluded);
|
|
68
|
-
var key, i;
|
|
69
|
-
if (Object.getOwnPropertySymbols) {
|
|
70
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
71
|
-
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
72
|
-
key = sourceSymbolKeys[i];
|
|
73
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
74
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
75
|
-
target[key] = source[key];
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return target;
|
|
79
|
-
}
|
|
80
|
-
function _object_without_properties_loose(source, excluded) {
|
|
81
|
-
if (source == null) return {};
|
|
82
|
-
var target = {};
|
|
83
|
-
var sourceKeys = Object.keys(source);
|
|
84
|
-
var key, i;
|
|
85
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
86
|
-
key = sourceKeys[i];
|
|
87
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
88
|
-
target[key] = source[key];
|
|
89
|
-
}
|
|
90
|
-
return target;
|
|
91
|
-
}
|
|
92
|
-
function _sliced_to_array(arr, i) {
|
|
93
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
94
|
-
}
|
|
95
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
96
|
-
if (!o) return;
|
|
97
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
98
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
99
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
100
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
101
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
102
|
-
}
|
|
103
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
104
3
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
105
4
|
import * as React from 'react';
|
|
@@ -107,58 +6,20 @@ import Box from '../box/Box.js';
|
|
|
107
6
|
import IconTooltip from '../icons/IconTooltip.js';
|
|
108
7
|
import Text from '../text/Text.js';
|
|
109
8
|
import { cn } from '../utils.js';
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
var className = _param.className, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 4 : _param_sideOffset, props = _object_without_properties(_param, [
|
|
115
|
-
"className",
|
|
116
|
-
"sideOffset"
|
|
117
|
-
]);
|
|
118
|
-
return /*#__PURE__*/ _jsx(TooltipPrimitive.Content, _object_spread({
|
|
119
|
-
ref: ref,
|
|
120
|
-
sideOffset: sideOffset,
|
|
121
|
-
className: cn('z-50 overflow-hidden rounded-md border border-black bg-white px-3 py-1.5 text-sm text-gray-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50', className)
|
|
122
|
-
}, props));
|
|
123
|
-
});
|
|
9
|
+
const TooltipProvider = TooltipPrimitive.Provider;
|
|
10
|
+
const TooltipRoot = TooltipPrimitive.Root;
|
|
11
|
+
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
12
|
+
const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (_jsx(TooltipPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: cn('z-50 overflow-hidden rounded-md border border-black bg-white px-3 py-1.5 text-sm text-gray-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50', className), ...props })));
|
|
124
13
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
return /*#__PURE__*/ _jsx(TooltipProvider, {
|
|
129
|
-
children: /*#__PURE__*/ _jsxs(TooltipRoot, {
|
|
130
|
-
open: open,
|
|
131
|
-
children: [
|
|
132
|
-
/*#__PURE__*/ _jsx(TooltipTrigger, {
|
|
133
|
-
asChild: true,
|
|
134
|
-
onClick: function() {
|
|
14
|
+
const Tooltip = ({ text, children, tooltipSize, onOpenChange, }) => {
|
|
15
|
+
const [open, setOpen] = React.useState(false);
|
|
16
|
+
return (_jsx(TooltipProvider, { children: _jsxs(TooltipRoot, { open: open, children: [_jsx(TooltipTrigger, { asChild: true, onClick: () => {
|
|
135
17
|
setOpen(true);
|
|
136
|
-
onOpenChange
|
|
137
|
-
},
|
|
138
|
-
onBlur: function() {
|
|
18
|
+
onOpenChange?.(true);
|
|
19
|
+
}, onBlur: () => {
|
|
139
20
|
setOpen(false);
|
|
140
|
-
onOpenChange
|
|
141
|
-
},
|
|
142
|
-
children: /*#__PURE__*/ _jsx(Box, {
|
|
143
|
-
role: "tooltip",
|
|
144
|
-
as: 'button',
|
|
145
|
-
className: "cursor-pointer",
|
|
146
|
-
children: children || /*#__PURE__*/ _jsx(IconTooltip, {
|
|
147
|
-
title: "Tooltip",
|
|
148
|
-
size: tooltipSize,
|
|
149
|
-
className: "text-primary3"
|
|
150
|
-
})
|
|
151
|
-
})
|
|
152
|
-
}),
|
|
153
|
-
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
154
|
-
className: cn('bg-black/80 p-2.5 rounded-sm whitespace-pre-wrap break-words w-72'),
|
|
155
|
-
children: /*#__PURE__*/ _jsx(Text, {
|
|
156
|
-
className: cn('text-white text-xs tracking-wide whitespace-pre-wrap'),
|
|
157
|
-
children: text
|
|
158
|
-
})
|
|
159
|
-
})
|
|
160
|
-
]
|
|
161
|
-
})
|
|
162
|
-
});
|
|
21
|
+
onOpenChange?.(false);
|
|
22
|
+
}, children: _jsx(Box, { role: "tooltip", as: 'button', className: "cursor-pointer", children: children || (_jsx(IconTooltip, { title: "Tooltip", size: tooltipSize, className: "text-primary3" })) }) }), _jsx(TooltipContent, { className: cn('bg-black/80 p-2.5 rounded-sm whitespace-pre-wrap break-words w-72'), children: _jsx(Text, { className: cn('text-white text-xs tracking-wide whitespace-pre-wrap'), children: text }) })] }) }));
|
|
163
23
|
};
|
|
164
24
|
export default Tooltip;
|
|
25
|
+
//# sourceMappingURL=Tooltip.js.map
|