fictoan-react 1.5.0 → 1.6.0
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/README.md +0 -9
- package/dist/UseClickOutside-Cy7gG1w2.js +23 -0
- package/dist/components/Accordion/Accordion.js +60 -31
- package/dist/components/Accordion/index.js +1 -3
- package/dist/components/Badge/Badge.js +63 -34
- package/dist/components/Badge/index.js +1 -3
- package/dist/components/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js +53 -30
- package/dist/components/Breadcrumbs/Breadcrumbs/Breadcrumbs.js +50 -30
- package/dist/components/Breadcrumbs/index.js +1 -2
- package/dist/components/Button/Button.js +65 -30
- package/dist/components/Button/index.js +1 -2
- package/dist/components/Callout/Callout.js +49 -30
- package/dist/components/Callout/index.js +1 -2
- package/dist/components/Card/Card.js +53 -30
- package/dist/components/Card/index.js +1 -2
- package/dist/components/CodeBlock/CodeBlock.js +2330 -716
- package/dist/components/CodeBlock/index.js +1 -6
- package/dist/components/CodeBlock/prism.js +2 -1
- package/dist/components/ContentWrapper/ContentWrapper.js +26 -17
- package/dist/components/ContentWrapper/index.js +1 -2
- package/dist/components/Divider/Divider.js +57 -30
- package/dist/components/Divider/index.js +1 -2
- package/dist/components/Drawer/Drawer.js +131 -86
- package/dist/components/Drawer/index.js +1 -4
- package/dist/components/Element/Element.js +63 -41
- package/dist/components/Element/Tags.js +42 -24
- package/dist/components/Element/constants.d.ts +10 -7
- package/dist/components/Element/constants.js +33 -0
- package/dist/components/Element/index.js +1 -1
- package/dist/components/Form/BaseInputComponent/BaseInputComponent.js +72 -33
- package/dist/components/Form/Checkbox/Checkbox.js +30 -21
- package/dist/components/Form/Checkbox/Switch.js +53 -34
- package/dist/components/Form/Form/Form.js +60 -46
- package/dist/components/Form/Form/FormGenerator.js +90 -50
- package/dist/components/Form/FormItem/FormItem.js +26 -17
- package/dist/components/Form/FormItemGroup/FormItemGroup.js +56 -30
- package/dist/components/Form/InputField/FileUpload.js +25 -22
- package/dist/components/Form/InputField/InputField.js +27 -21
- package/dist/components/Form/InputLabel/InputLabel.js +47 -30
- package/dist/components/Form/ListBox/ListBox.js +341 -165
- package/dist/components/Form/ListBox/listBoxUtils.js +84 -42
- package/dist/components/Form/PinInputField/PinInputField.js +329 -217
- package/dist/components/Form/PinInputField/index.js +1 -7
- package/dist/components/Form/RadioButton/RadioButton.js +53 -34
- package/dist/components/Form/RadioButton/RadioGroup.js +60 -40
- package/dist/components/Form/RadioButton/RadioTabGroup.js +72 -40
- package/dist/components/Form/Range/Range.js +63 -35
- package/dist/components/Form/Range/index.js +1 -7
- package/dist/components/Form/Select/Select.js +76 -39
- package/dist/components/Form/TextArea/TextArea.js +23 -17
- package/dist/components/Form/index.d.ts +2 -2
- package/dist/components/Form/index.js +2 -12
- package/dist/components/Meter/Meter.js +67 -31
- package/dist/components/Meter/index.js +1 -3
- package/dist/components/Modal/Modal.js +84 -45
- package/dist/components/Modal/index.js +1 -3
- package/dist/components/Notification/NotificationItem/NotificationItem.js +114 -85
- package/dist/components/Notification/NotificationsWrapper/NotificationsWrapper.js +63 -30
- package/dist/components/Notification/index.js +1 -2
- package/dist/components/OptionCard/OptionCard.d.ts +2 -0
- package/dist/components/OptionCard/OptionCard.js +209 -102
- package/dist/components/OptionCard/index.js +1 -3
- package/dist/components/Portion/Portion.js +69 -30
- package/dist/components/Portion/index.js +1 -2
- package/dist/components/ProgressBar/ProgressBar.js +57 -31
- package/dist/components/ProgressBar/index.js +1 -3
- package/dist/components/Row/Row.js +69 -30
- package/dist/components/Row/index.js +1 -2
- package/dist/components/Sidebar/SidebarFooter/SidebarFooter.js +22 -13
- package/dist/components/Sidebar/SidebarHeader/SidebarHeader.js +53 -30
- package/dist/components/Sidebar/SidebarItem/SidebarItem.js +53 -30
- package/dist/components/Sidebar/SidebarItemIcon/SidebarItemIcon.js +53 -30
- package/dist/components/Sidebar/SidebarItemText/SidebarItemText.js +56 -30
- package/dist/components/Sidebar/SidebarWrapper/SidebarWrapper.js +65 -36
- package/dist/components/Sidebar/index.js +1 -3
- package/dist/components/Skeleton/Skeleton.d.ts +23 -0
- package/dist/components/Skeleton/Skeleton.js +182 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Skeleton/index.js +7 -0
- package/dist/components/Spinner/Spinner.js +53 -30
- package/dist/components/Spinner/index.js +1 -2
- package/dist/components/Table/Table.js +63 -30
- package/dist/components/Table/TablePagination/TablePagination.js +89 -42
- package/dist/components/Table/index.js +1 -6
- package/dist/components/Tabs/Tabs.js +130 -92
- package/dist/components/Tabs/index.js +1 -5
- package/dist/components/ThemeProvider/ThemeProvider.js +127 -93
- package/dist/components/ThemeProvider/index.js +1 -2
- package/dist/components/Toast/ToastItem/ToastItem.js +99 -83
- package/dist/components/Toast/ToastsWrapper/ToastsWrapper.js +53 -30
- package/dist/components/Toast/index.js +1 -2
- package/dist/components/Typography/Heading.js +98 -47
- package/dist/components/Typography/Text.js +64 -30
- package/dist/components/Typography/index.js +1 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +5 -7
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9 -7
- package/dist/prism-CZcmwQhR.js +2388 -0
- package/package.json +21 -22
- package/dist/UseClickOutside-AZnVEg3i.js +0 -16
- package/dist/UseClickOutside-ILhCRGTV.cjs +0 -2
- package/dist/components/Accordion/Accordion.cjs +0 -2
- package/dist/components/Accordion/Accordion.stories.d.ts +0 -6
- package/dist/components/Accordion/index.cjs +0 -2
- package/dist/components/Badge/Badge.cjs +0 -2
- package/dist/components/Badge/Badge.stories.d.ts +0 -6
- package/dist/components/Badge/index.cjs +0 -2
- package/dist/components/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.cjs +0 -2
- package/dist/components/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.stories.d.ts +0 -6
- package/dist/components/Breadcrumbs/Breadcrumbs/Breadcrumbs.cjs +0 -2
- package/dist/components/Breadcrumbs/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -6
- package/dist/components/Breadcrumbs/index.cjs +0 -2
- package/dist/components/Button/Button.cjs +0 -2
- package/dist/components/Button/Button.stories.d.ts +0 -9
- package/dist/components/Button/index.cjs +0 -2
- package/dist/components/Callout/Callout.cjs +0 -2
- package/dist/components/Callout/Callout.stories.d.ts +0 -9
- package/dist/components/Callout/index.cjs +0 -2
- package/dist/components/Card/Card.cjs +0 -2
- package/dist/components/Card/Card.stories.d.ts +0 -6
- package/dist/components/Card/index.cjs +0 -2
- package/dist/components/CodeBlock/CodeBlock.cjs +0 -2
- package/dist/components/CodeBlock/CodeBlock.stories.d.ts +0 -16
- package/dist/components/CodeBlock/index.cjs +0 -2
- package/dist/components/CodeBlock/prism.cjs +0 -2
- package/dist/components/ContentWrapper/ContentWrapper.cjs +0 -2
- package/dist/components/ContentWrapper/ContentWrapper.stories.d.ts +0 -6
- package/dist/components/ContentWrapper/index.cjs +0 -2
- package/dist/components/Divider/Divider.cjs +0 -2
- package/dist/components/Divider/Divider.stories.d.ts +0 -8
- package/dist/components/Divider/index.cjs +0 -2
- package/dist/components/Drawer/Drawer.cjs +0 -2
- package/dist/components/Drawer/Drawer.stories.d.ts +0 -6
- package/dist/components/Drawer/index.cjs +0 -2
- package/dist/components/Element/Element.cjs +0 -2
- package/dist/components/Element/Element.stories.d.ts +0 -6
- package/dist/components/Element/Tags.cjs +0 -2
- package/dist/components/Element/constants.cjs +0 -2
- package/dist/components/Element/index.cjs +0 -2
- package/dist/components/Form/BaseInputComponent/BaseInputComponent.cjs +0 -2
- package/dist/components/Form/BaseInputComponent/constants.cjs +0 -2
- package/dist/components/Form/Checkbox/Checkbox.cjs +0 -2
- package/dist/components/Form/Checkbox/Checkbox.stories.d.ts +0 -6
- package/dist/components/Form/Checkbox/Switch.cjs +0 -2
- package/dist/components/Form/Checkbox/Switch.stories.d.ts +0 -6
- package/dist/components/Form/Form/Form.cjs +0 -2
- package/dist/components/Form/Form/Form.stories.d.ts +0 -7
- package/dist/components/Form/Form/FormGenerator.cjs +0 -2
- package/dist/components/Form/FormItem/FormItem.cjs +0 -2
- package/dist/components/Form/FormItem/FormItem.stories.d.ts +0 -6
- package/dist/components/Form/FormItemGroup/FormItemGroup.cjs +0 -2
- package/dist/components/Form/FormItemGroup/FormItemGroup.stories.d.ts +0 -6
- package/dist/components/Form/InputField/FileUpload.cjs +0 -2
- package/dist/components/Form/InputField/FileUpload.stories.d.ts +0 -6
- package/dist/components/Form/InputField/InputField.cjs +0 -2
- package/dist/components/Form/InputField/InputField.stories.d.ts +0 -9
- package/dist/components/Form/InputLabel/InputLabel.cjs +0 -2
- package/dist/components/Form/InputLabel/InputLabel.stories.d.ts +0 -6
- package/dist/components/Form/ListBox/ListBox.cjs +0 -2
- package/dist/components/Form/ListBox/constants.cjs +0 -2
- package/dist/components/Form/ListBox/listBoxUtils.cjs +0 -2
- package/dist/components/Form/PinInputField/PinInputField.cjs +0 -2
- package/dist/components/Form/PinInputField/PinInputField.stories.d.ts +0 -6
- package/dist/components/Form/PinInputField/index.cjs +0 -2
- package/dist/components/Form/RadioButton/RadioButton.cjs +0 -2
- package/dist/components/Form/RadioButton/RadioButton.stories.d.ts +0 -6
- package/dist/components/Form/RadioButton/RadioGroup.cjs +0 -2
- package/dist/components/Form/RadioButton/RadioGroup.stories.d.ts +0 -6
- package/dist/components/Form/RadioButton/RadioTabGroup.cjs +0 -2
- package/dist/components/Form/RadioButton/RadioTabGroup.stories.d.ts +0 -6
- package/dist/components/Form/RadioButton/constants.cjs +0 -2
- package/dist/components/Form/Range/Range.cjs +0 -2
- package/dist/components/Form/Range/Range.stories.d.ts +0 -6
- package/dist/components/Form/Range/index.cjs +0 -2
- package/dist/components/Form/Select/Select.cjs +0 -2
- package/dist/components/Form/Select/Select.stories.d.ts +0 -6
- package/dist/components/Form/Select/constants.cjs +0 -2
- package/dist/components/Form/TextArea/TextArea.cjs +0 -2
- package/dist/components/Form/TextArea/TextArea.stories.d.ts +0 -6
- package/dist/components/Form/index.cjs +0 -2
- package/dist/components/Meter/Meter.cjs +0 -2
- package/dist/components/Meter/Meter.stories.d.ts +0 -6
- package/dist/components/Meter/index.cjs +0 -2
- package/dist/components/Modal/Modal.cjs +0 -2
- package/dist/components/Modal/Modal.stories.d.ts +0 -6
- package/dist/components/Modal/index.cjs +0 -2
- package/dist/components/Notification/NotificationItem/NotificationItem.cjs +0 -2
- package/dist/components/Notification/NotificationItem/NotificationItem.stories.d.ts +0 -6
- package/dist/components/Notification/NotificationsWrapper/NotificationsWrapper.cjs +0 -2
- package/dist/components/Notification/NotificationsWrapper/NotificationsWrapper.stories.d.ts +0 -6
- package/dist/components/Notification/index.cjs +0 -2
- package/dist/components/OptionCard/OptionCard.cjs +0 -2
- package/dist/components/OptionCard/OptionCard.stories.d.ts +0 -7
- package/dist/components/OptionCard/index.cjs +0 -2
- package/dist/components/Portion/Portion.cjs +0 -2
- package/dist/components/Portion/Portion.stories.d.ts +0 -6
- package/dist/components/Portion/index.cjs +0 -2
- package/dist/components/Portion/types.cjs +0 -2
- package/dist/components/ProgressBar/ProgressBar.cjs +0 -2
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +0 -7
- package/dist/components/ProgressBar/index.cjs +0 -2
- package/dist/components/Row/Row.cjs +0 -2
- package/dist/components/Row/Row.stories.d.ts +0 -6
- package/dist/components/Row/index.cjs +0 -2
- package/dist/components/Sidebar/SidebarFooter/SidebarFooter.cjs +0 -2
- package/dist/components/Sidebar/SidebarFooter/SidebarFooter.stories.d.ts +0 -6
- package/dist/components/Sidebar/SidebarHeader/SidebarHeader.cjs +0 -2
- package/dist/components/Sidebar/SidebarHeader/SidebarHeader.stories.d.ts +0 -6
- package/dist/components/Sidebar/SidebarItem/SidebarItem.cjs +0 -2
- package/dist/components/Sidebar/SidebarItem/SidebarItem.stories.d.ts +0 -6
- package/dist/components/Sidebar/SidebarItemIcon/SidebarItemIcon.cjs +0 -2
- package/dist/components/Sidebar/SidebarItemIcon/SidebarItemIcon.stories.d.ts +0 -6
- package/dist/components/Sidebar/SidebarItemText/SidebarItemText.cjs +0 -2
- package/dist/components/Sidebar/SidebarItemText/SidebarItemText.stories.d.ts +0 -6
- package/dist/components/Sidebar/SidebarWrapper/SidebarWrapper.cjs +0 -2
- package/dist/components/Sidebar/SidebarWrapper/SidebarWrapper.stories.d.ts +0 -6
- package/dist/components/Sidebar/index.cjs +0 -2
- package/dist/components/Spinner/Spinner.cjs +0 -2
- package/dist/components/Spinner/Spinner.stories.d.ts +0 -6
- package/dist/components/Spinner/index.cjs +0 -2
- package/dist/components/Table/Table.cjs +0 -2
- package/dist/components/Table/Table.stories.d.ts +0 -6
- package/dist/components/Table/TablePagination/TablePagination.cjs +0 -2
- package/dist/components/Table/TablePagination/TablePagination.stories.d.ts +0 -6
- package/dist/components/Table/index.cjs +0 -2
- package/dist/components/Tabs/Tabs.cjs +0 -2
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -6
- package/dist/components/Tabs/index.cjs +0 -2
- package/dist/components/ThemeProvider/ThemeProvider.cjs +0 -2
- package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts +0 -6
- package/dist/components/ThemeProvider/index.cjs +0 -2
- package/dist/components/ThemeProvider/types.cjs +0 -2
- package/dist/components/Toast/ToastItem/ToastItem.cjs +0 -2
- package/dist/components/Toast/ToastItem/ToastItem.stories.d.ts +0 -6
- package/dist/components/Toast/ToastsWrapper/ToastsWrapper.cjs +0 -2
- package/dist/components/Toast/ToastsWrapper/ToastsWrapper.stories.d.ts +0 -6
- package/dist/components/Toast/index.cjs +0 -2
- package/dist/components/Typography/Heading.cjs +0 -2
- package/dist/components/Typography/Heading.stories.d.ts +0 -11
- package/dist/components/Typography/Text.cjs +0 -2
- package/dist/components/Typography/Text.stories.d.ts +0 -8
- package/dist/components/Typography/index.cjs +0 -2
- package/dist/components/index.cjs +0 -2
- package/dist/index.cjs +0 -2
- package/dist/prism-ZqvU-712.cjs +0 -2
- package/dist/prism-v88HWbgZ.js +0 -1272
package/README.md
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client;";
|
|
3
|
+
import { useCallback, useEffect } from "react";
|
|
4
|
+
var useClickOutside = function useClickOutside2(ref, handler) {
|
|
5
|
+
var memoizedHandler = useCallback(handler, []);
|
|
6
|
+
useEffect(function() {
|
|
7
|
+
var listener = function listener2(event) {
|
|
8
|
+
if (!ref.current || ref.current.contains(event.target)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
memoizedHandler(event);
|
|
12
|
+
};
|
|
13
|
+
document.addEventListener("mousedown", listener);
|
|
14
|
+
document.addEventListener("touchstart", listener);
|
|
15
|
+
return function() {
|
|
16
|
+
document.removeEventListener("mousedown", listener);
|
|
17
|
+
document.removeEventListener("touchstart", listener);
|
|
18
|
+
};
|
|
19
|
+
}, [ref, memoizedHandler]);
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
useClickOutside as u
|
|
23
|
+
};
|
|
@@ -1,40 +1,69 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"use client;";
|
|
3
|
+
import React__default from "react";
|
|
4
|
+
import { Element } from "../Element/Element.js";
|
|
5
|
+
import { Text } from "../Typography/Text.js";
|
|
6
|
+
var _excluded = ["summary", "children", "open"];
|
|
7
|
+
function _extends() {
|
|
8
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
9
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
10
|
+
var source = arguments[i];
|
|
11
|
+
for (var key in source) {
|
|
12
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
13
|
+
target[key] = source[key];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
12
16
|
}
|
|
13
|
-
return
|
|
14
|
-
}
|
|
17
|
+
return target;
|
|
18
|
+
};
|
|
19
|
+
return _extends.apply(this, arguments);
|
|
15
20
|
}
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
if (null == e3)
|
|
21
|
-
return {};
|
|
22
|
-
var t3, n3, o3 = {}, a3 = Object.keys(e3);
|
|
23
|
-
for (n3 = 0; n3 < a3.length; n3++)
|
|
24
|
-
t3 = a3[n3], r3.indexOf(t3) >= 0 || (o3[t3] = e3[t3]);
|
|
25
|
-
return o3;
|
|
26
|
-
}(e2, r2);
|
|
21
|
+
function _objectWithoutProperties(source, excluded) {
|
|
22
|
+
if (source == null) return {};
|
|
23
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
24
|
+
var key, i;
|
|
27
25
|
if (Object.getOwnPropertySymbols) {
|
|
28
|
-
var
|
|
29
|
-
for (
|
|
30
|
-
|
|
26
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
27
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
28
|
+
key = sourceSymbolKeys[i];
|
|
29
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
30
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
31
|
+
target[key] = source[key];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
}
|
|
36
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
37
|
+
if (source == null) return {};
|
|
38
|
+
var target = {};
|
|
39
|
+
var sourceKeys = Object.keys(source);
|
|
40
|
+
var key, i;
|
|
41
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
42
|
+
key = sourceKeys[i];
|
|
43
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
44
|
+
target[key] = source[key];
|
|
31
45
|
}
|
|
32
|
-
return
|
|
46
|
+
return target;
|
|
33
47
|
}
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
return
|
|
48
|
+
var Accordion = /* @__PURE__ */ React__default.forwardRef(function(_ref, ref) {
|
|
49
|
+
var summary = _ref.summary, children = _ref.children, _ref$open = _ref.open, open = _ref$open === void 0 ? false : _ref$open, props = _objectWithoutProperties(_ref, _excluded);
|
|
50
|
+
return /* @__PURE__ */ React__default.createElement(Element, _extends({
|
|
51
|
+
as: "details",
|
|
52
|
+
"data-expandable-content": true,
|
|
53
|
+
ref
|
|
54
|
+
}, props, {
|
|
55
|
+
open,
|
|
56
|
+
role: "region",
|
|
57
|
+
"aria-labelledby": "accordion-summary"
|
|
58
|
+
}), /* @__PURE__ */ React__default.createElement("summary", {
|
|
59
|
+
role: "button",
|
|
60
|
+
tabIndex: 0,
|
|
61
|
+
"aria-controls": "accordion-content",
|
|
62
|
+
"aria-expanded": open
|
|
63
|
+
}, typeof summary === "string" ? /* @__PURE__ */ React__default.createElement(Text, {
|
|
64
|
+
margin: "none"
|
|
65
|
+
}, summary) : summary), children);
|
|
37
66
|
});
|
|
38
67
|
export {
|
|
39
|
-
|
|
68
|
+
Accordion
|
|
40
69
|
};
|
|
@@ -1,43 +1,72 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"use client;";
|
|
3
|
+
import React__default from "react";
|
|
4
|
+
import { Element } from "../Element/Element.js";
|
|
5
|
+
import { Text } from "../Typography/Text.js";
|
|
6
|
+
var _excluded = ["children", "size", "shape", "withDelete", "onDelete"];
|
|
7
|
+
function _extends() {
|
|
8
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
9
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
10
|
+
var source = arguments[i];
|
|
11
|
+
for (var key in source) {
|
|
12
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
13
|
+
target[key] = source[key];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
12
16
|
}
|
|
13
|
-
return
|
|
14
|
-
}
|
|
17
|
+
return target;
|
|
18
|
+
};
|
|
19
|
+
return _extends.apply(this, arguments);
|
|
15
20
|
}
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
if (null == e3)
|
|
21
|
-
return {};
|
|
22
|
-
var r3, n3, o3 = {}, a3 = Object.keys(e3);
|
|
23
|
-
for (n3 = 0; n3 < a3.length; n3++)
|
|
24
|
-
r3 = a3[n3], t3.indexOf(r3) >= 0 || (o3[r3] = e3[r3]);
|
|
25
|
-
return o3;
|
|
26
|
-
}(e2, t2);
|
|
21
|
+
function _objectWithoutProperties(source, excluded) {
|
|
22
|
+
if (source == null) return {};
|
|
23
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
24
|
+
var key, i;
|
|
27
25
|
if (Object.getOwnPropertySymbols) {
|
|
28
|
-
var
|
|
29
|
-
for (
|
|
30
|
-
|
|
26
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
27
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
28
|
+
key = sourceSymbolKeys[i];
|
|
29
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
30
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
31
|
+
target[key] = source[key];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
}
|
|
36
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
37
|
+
if (source == null) return {};
|
|
38
|
+
var target = {};
|
|
39
|
+
var sourceKeys = Object.keys(source);
|
|
40
|
+
var key, i;
|
|
41
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
42
|
+
key = sourceKeys[i];
|
|
43
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
44
|
+
target[key] = source[key];
|
|
31
45
|
}
|
|
32
|
-
return
|
|
46
|
+
return target;
|
|
33
47
|
}
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
48
|
+
var Badge = /* @__PURE__ */ React__default.forwardRef(function(_ref, ref) {
|
|
49
|
+
var children = _ref.children, _ref$size = _ref.size, size = _ref$size === void 0 ? "medium" : _ref$size, shape = _ref.shape, withDelete = _ref.withDelete, onDelete = _ref.onDelete, props = _objectWithoutProperties(_ref, _excluded);
|
|
50
|
+
var classNames = [];
|
|
51
|
+
if (size) {
|
|
52
|
+
classNames.push("size-".concat(size));
|
|
53
|
+
}
|
|
54
|
+
if (shape) {
|
|
55
|
+
classNames.push("shape-".concat(shape));
|
|
56
|
+
}
|
|
57
|
+
var handleDelete = function handleDelete2(e) {
|
|
58
|
+
e.stopPropagation();
|
|
59
|
+
onDelete === null || onDelete === void 0 || onDelete(e);
|
|
60
|
+
};
|
|
61
|
+
return /* @__PURE__ */ React__default.createElement(Element, _extends({
|
|
62
|
+
"data-badge": true,
|
|
63
|
+
ref,
|
|
64
|
+
classNames
|
|
65
|
+
}, props), /* @__PURE__ */ React__default.createElement(Text, null, children), withDelete && /* @__PURE__ */ React__default.createElement(Text, {
|
|
66
|
+
className: "dismiss-button",
|
|
67
|
+
onClick: handleDelete
|
|
68
|
+
}, "×"));
|
|
40
69
|
});
|
|
41
70
|
export {
|
|
42
|
-
|
|
71
|
+
Badge
|
|
43
72
|
};
|
|
@@ -1,39 +1,62 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"use client;";
|
|
3
|
+
import React__default from "react";
|
|
4
|
+
import { Element } from "../../Element/Element.js";
|
|
5
|
+
var _excluded = ["children", "current"];
|
|
6
|
+
function _extends() {
|
|
7
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
8
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
9
|
+
var source = arguments[i];
|
|
10
|
+
for (var key in source) {
|
|
11
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12
|
+
target[key] = source[key];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
|
-
return
|
|
13
|
-
}
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
return _extends.apply(this, arguments);
|
|
14
19
|
}
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
if (null == r3)
|
|
20
|
-
return {};
|
|
21
|
-
var t3, n3, a3 = {}, o3 = Object.keys(r3);
|
|
22
|
-
for (n3 = 0; n3 < o3.length; n3++)
|
|
23
|
-
t3 = o3[n3], e3.indexOf(t3) >= 0 || (a3[t3] = r3[t3]);
|
|
24
|
-
return a3;
|
|
25
|
-
}(r2, e2);
|
|
20
|
+
function _objectWithoutProperties(source, excluded) {
|
|
21
|
+
if (source == null) return {};
|
|
22
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
23
|
+
var key, i;
|
|
26
24
|
if (Object.getOwnPropertySymbols) {
|
|
27
|
-
var
|
|
28
|
-
for (
|
|
29
|
-
|
|
25
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
26
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
27
|
+
key = sourceSymbolKeys[i];
|
|
28
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
29
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
30
|
+
target[key] = source[key];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
}
|
|
35
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
36
|
+
if (source == null) return {};
|
|
37
|
+
var target = {};
|
|
38
|
+
var sourceKeys = Object.keys(source);
|
|
39
|
+
var key, i;
|
|
40
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
41
|
+
key = sourceKeys[i];
|
|
42
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
43
|
+
target[key] = source[key];
|
|
30
44
|
}
|
|
31
|
-
return
|
|
45
|
+
return target;
|
|
32
46
|
}
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
return
|
|
47
|
+
var BreadcrumbItem = /* @__PURE__ */ React__default.forwardRef(function(_ref, ref) {
|
|
48
|
+
var children = _ref.children, current = _ref.current, props = _objectWithoutProperties(_ref, _excluded);
|
|
49
|
+
return /* @__PURE__ */ React__default.createElement(Element, _extends({
|
|
50
|
+
as: "li",
|
|
51
|
+
"data-breadcrumb-item": true,
|
|
52
|
+
ref
|
|
53
|
+
}, props, {
|
|
54
|
+
"aria-current": current ? "page" : void 0,
|
|
55
|
+
className: current ? "current" : void 0,
|
|
56
|
+
role: "navigation",
|
|
57
|
+
"aria-label": "List of breadcrumbs"
|
|
58
|
+
}), children);
|
|
36
59
|
});
|
|
37
60
|
export {
|
|
38
|
-
|
|
61
|
+
BreadcrumbItem
|
|
39
62
|
};
|
|
@@ -1,39 +1,59 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"use client;";
|
|
3
|
+
import React__default from "react";
|
|
4
|
+
import { Element } from "../../Element/Element.js";
|
|
5
|
+
var _excluded = ["children"];
|
|
6
|
+
function _extends() {
|
|
7
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
8
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
9
|
+
var source = arguments[i];
|
|
10
|
+
for (var key in source) {
|
|
11
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12
|
+
target[key] = source[key];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
|
-
return
|
|
13
|
-
}
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
return _extends.apply(this, arguments);
|
|
14
19
|
}
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
if (null == r3)
|
|
20
|
-
return {};
|
|
21
|
-
var t3, n3, a3 = {}, o3 = Object.keys(r3);
|
|
22
|
-
for (n3 = 0; n3 < o3.length; n3++)
|
|
23
|
-
t3 = o3[n3], e3.indexOf(t3) >= 0 || (a3[t3] = r3[t3]);
|
|
24
|
-
return a3;
|
|
25
|
-
}(r2, e2);
|
|
20
|
+
function _objectWithoutProperties(source, excluded) {
|
|
21
|
+
if (source == null) return {};
|
|
22
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
23
|
+
var key, i;
|
|
26
24
|
if (Object.getOwnPropertySymbols) {
|
|
27
|
-
var
|
|
28
|
-
for (
|
|
29
|
-
|
|
25
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
26
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
27
|
+
key = sourceSymbolKeys[i];
|
|
28
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
29
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
30
|
+
target[key] = source[key];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
}
|
|
35
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
36
|
+
if (source == null) return {};
|
|
37
|
+
var target = {};
|
|
38
|
+
var sourceKeys = Object.keys(source);
|
|
39
|
+
var key, i;
|
|
40
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
41
|
+
key = sourceKeys[i];
|
|
42
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
43
|
+
target[key] = source[key];
|
|
30
44
|
}
|
|
31
|
-
return
|
|
45
|
+
return target;
|
|
32
46
|
}
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
return
|
|
47
|
+
var Breadcrumbs = /* @__PURE__ */ React__default.forwardRef(function(_ref, ref) {
|
|
48
|
+
var children = _ref.children, props = _objectWithoutProperties(_ref, _excluded);
|
|
49
|
+
return /* @__PURE__ */ React__default.createElement("nav", _extends({
|
|
50
|
+
"aria-label": "Breadcrumb",
|
|
51
|
+
ref
|
|
52
|
+
}, props), /* @__PURE__ */ React__default.createElement(Element, {
|
|
53
|
+
as: "ul",
|
|
54
|
+
"data-breadcrumbs-wrapper": true
|
|
55
|
+
}, children));
|
|
36
56
|
});
|
|
37
57
|
export {
|
|
38
|
-
|
|
58
|
+
Breadcrumbs
|
|
39
59
|
};
|
|
@@ -1,39 +1,74 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"use client;";
|
|
3
|
+
import React__default from "react";
|
|
4
|
+
import { Element } from "../Element/Element.js";
|
|
5
|
+
var _excluded = ["size", "shape", "kind", "isLoading", "hasDelete"];
|
|
6
|
+
function _extends() {
|
|
7
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
8
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
9
|
+
var source = arguments[i];
|
|
10
|
+
for (var key in source) {
|
|
11
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12
|
+
target[key] = source[key];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
|
-
return
|
|
13
|
-
}
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
return _extends.apply(this, arguments);
|
|
14
19
|
}
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
if (null == e3)
|
|
20
|
-
return {};
|
|
21
|
-
var r3, n3, a3 = {}, o3 = Object.keys(e3);
|
|
22
|
-
for (n3 = 0; n3 < o3.length; n3++)
|
|
23
|
-
r3 = o3[n3], t3.indexOf(r3) >= 0 || (a3[r3] = e3[r3]);
|
|
24
|
-
return a3;
|
|
25
|
-
}(e2, t2);
|
|
20
|
+
function _objectWithoutProperties(source, excluded) {
|
|
21
|
+
if (source == null) return {};
|
|
22
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
23
|
+
var key, i;
|
|
26
24
|
if (Object.getOwnPropertySymbols) {
|
|
27
|
-
var
|
|
28
|
-
for (
|
|
29
|
-
|
|
25
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
26
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
27
|
+
key = sourceSymbolKeys[i];
|
|
28
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
29
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
30
|
+
target[key] = source[key];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
}
|
|
35
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
36
|
+
if (source == null) return {};
|
|
37
|
+
var target = {};
|
|
38
|
+
var sourceKeys = Object.keys(source);
|
|
39
|
+
var key, i;
|
|
40
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
41
|
+
key = sourceKeys[i];
|
|
42
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
43
|
+
target[key] = source[key];
|
|
30
44
|
}
|
|
31
|
-
return
|
|
45
|
+
return target;
|
|
32
46
|
}
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
|
|
47
|
+
var Button = /* @__PURE__ */ React__default.forwardRef(function(_ref, ref) {
|
|
48
|
+
var _ref$size = _ref.size, size = _ref$size === void 0 ? "medium" : _ref$size, shape = _ref.shape, kind = _ref.kind, isLoading = _ref.isLoading, hasDelete = _ref.hasDelete, props = _objectWithoutProperties(_ref, _excluded);
|
|
49
|
+
var classNames = [];
|
|
50
|
+
if (kind) {
|
|
51
|
+
classNames.push(kind);
|
|
52
|
+
}
|
|
53
|
+
if (size) {
|
|
54
|
+
classNames.push("size-".concat(size));
|
|
55
|
+
}
|
|
56
|
+
if (shape) {
|
|
57
|
+
classNames.push("shape-".concat(shape));
|
|
58
|
+
}
|
|
59
|
+
if (isLoading) {
|
|
60
|
+
classNames.push("is-loading");
|
|
61
|
+
}
|
|
62
|
+
if (hasDelete) {
|
|
63
|
+
classNames.push("has-delete");
|
|
64
|
+
}
|
|
65
|
+
return /* @__PURE__ */ React__default.createElement(Element, _extends({
|
|
66
|
+
as: "button",
|
|
67
|
+
"data-button": true,
|
|
68
|
+
ref,
|
|
69
|
+
classNames
|
|
70
|
+
}, props));
|
|
36
71
|
});
|
|
37
72
|
export {
|
|
38
|
-
|
|
73
|
+
Button
|
|
39
74
|
};
|