@j2-health/design-system 0.6.5 → 0.6.8
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/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/index.cjs +10 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +7 -3
- package/dist/index2.js +7 -3
- package/dist/src/AppConfigProvider.cjs +1 -2
- package/dist/src/AppConfigProvider.js +1 -2
- package/dist/src/appTheme.cjs +1 -2
- package/dist/src/appTheme.js +1 -2
- package/dist/src/components/alert/Alert.cjs +1 -2
- package/dist/src/components/alert/Alert.js +1 -2
- package/dist/src/components/alert/Alert.module.css.cjs +1 -2
- package/dist/src/components/alert/Alert.module.css.js +1 -2
- package/dist/src/components/barchart/BarChart.cjs +1 -2
- package/dist/src/components/barchart/BarChart.js +1 -2
- package/dist/src/components/barchart/chart.module.css.cjs +1 -2
- package/dist/src/components/barchart/chart.module.css.js +1 -2
- package/dist/src/components/bareButton/BareButton.cjs +1 -2
- package/dist/src/components/bareButton/BareButton.js +1 -2
- package/dist/src/components/breadcrumb/Breadcrumb.cjs +1 -2
- package/dist/src/components/breadcrumb/Breadcrumb.js +1 -2
- package/dist/src/components/bulkActionBar/BulkActionBar.cjs +1 -2
- package/dist/src/components/bulkActionBar/BulkActionBar.js +1 -2
- package/dist/src/components/button/Button.cjs +1 -2
- package/dist/src/components/button/Button.js +1 -2
- package/dist/src/components/callout/Callout.cjs +35 -0
- package/dist/src/components/callout/Callout.cjs.map +1 -0
- package/dist/src/components/callout/Callout.d.ts +18 -0
- package/dist/src/components/callout/Callout.js +33 -0
- package/dist/src/components/callout/Callout.js.map +1 -0
- package/dist/src/components/callout/index.d.ts +1 -0
- package/dist/src/components/card/Card.cjs +1 -2
- package/dist/src/components/card/Card.js +1 -2
- package/dist/src/components/changeChip/ChangeChip.cjs +1 -2
- package/dist/src/components/changeChip/ChangeChip.js +1 -2
- package/dist/src/components/checkbox/Checkbox.cjs +1 -2
- package/dist/src/components/checkbox/Checkbox.js +1 -2
- package/dist/src/components/checkboxTree/CheckboxTree.cjs +1 -2
- package/dist/src/components/checkboxTree/CheckboxTree.js +1 -2
- package/dist/src/components/checkboxTree/TreeNode.cjs +1 -2
- package/dist/src/components/checkboxTree/TreeNode.js +1 -2
- package/dist/src/components/checkboxTree/utils.cjs +1 -2
- package/dist/src/components/checkboxTree/utils.js +1 -2
- package/dist/src/components/collapse/Collapse.cjs +1 -2
- package/dist/src/components/collapse/Collapse.js +1 -2
- package/dist/src/components/collapse/Collapse.module.css.cjs +1 -2
- package/dist/src/components/collapse/Collapse.module.css.js +1 -2
- package/dist/src/components/drawer/Drawer.cjs +1 -2
- package/dist/src/components/drawer/Drawer.js +1 -2
- package/dist/src/components/dropdown/Dropdown.cjs +1 -2
- package/dist/src/components/dropdown/Dropdown.js +1 -2
- package/dist/src/components/emptyState/EmptyState.cjs +1 -2
- package/dist/src/components/emptyState/EmptyState.js +1 -2
- package/dist/src/components/fileDropzone/FileDropzone.cjs +296 -0
- package/dist/src/components/fileDropzone/FileDropzone.cjs.map +1 -0
- package/dist/src/components/fileDropzone/FileDropzone.d.ts +68 -0
- package/dist/src/components/fileDropzone/FileDropzone.js +293 -0
- package/dist/src/components/fileDropzone/FileDropzone.js.map +1 -0
- package/dist/src/components/fileDropzone/index.d.ts +1 -0
- package/dist/src/components/filterform/FilterGroup.cjs +1 -2
- package/dist/src/components/filterform/FilterGroup.js +1 -2
- package/dist/src/components/filterform/FilterInput.cjs +1 -2
- package/dist/src/components/filterform/FilterInput.js +1 -2
- package/dist/src/components/filterform/FiltersForm.cjs +1 -2
- package/dist/src/components/filterform/FiltersForm.js +1 -2
- package/dist/src/components/filterform/FiltersForm.module.css.cjs +1 -2
- package/dist/src/components/filterform/FiltersForm.module.css.js +1 -2
- package/dist/src/components/filterform/filterHelpers.cjs +1 -2
- package/dist/src/components/filterform/filterHelpers.js +1 -2
- package/dist/src/components/filterform/useFilterField.cjs +1 -2
- package/dist/src/components/filterform/useFilterField.js +1 -2
- package/dist/src/components/filterform/useFiltersForm.cjs +1 -2
- package/dist/src/components/filterform/useFiltersForm.js +1 -2
- package/dist/src/components/form/Form.cjs +1 -2
- package/dist/src/components/form/Form.js +1 -2
- package/dist/src/components/form/FormItem.cjs +1 -2
- package/dist/src/components/form/FormItem.js +1 -2
- package/dist/src/components/form/FormItemFieldContext.cjs +1 -2
- package/dist/src/components/form/FormItemFieldContext.cjs.map +1 -1
- package/dist/src/components/form/FormItemFieldContext.js +1 -2
- package/dist/src/components/form/FormikField.cjs +1 -2
- package/dist/src/components/form/FormikField.js +1 -2
- package/dist/src/components/input/AntdInput.cjs +1 -2
- package/dist/src/components/input/AntdInput.d.ts +1 -1
- package/dist/src/components/input/AntdInput.js +1 -2
- package/dist/src/components/input/AntdSearchInput.cjs +1 -2
- package/dist/src/components/input/AntdSearchInput.d.ts +1 -1
- package/dist/src/components/input/AntdSearchInput.js +1 -2
- package/dist/src/components/input/AntdTextArea.cjs +15 -0
- package/dist/src/components/input/AntdTextArea.cjs.map +1 -0
- package/dist/src/components/input/AntdTextArea.d.ts +347 -0
- package/dist/src/components/input/AntdTextArea.js +15 -0
- package/dist/src/components/input/AntdTextArea.js.map +1 -0
- package/dist/src/components/input/Input.cjs +1 -2
- package/dist/src/components/input/Input.js +1 -2
- package/dist/src/components/input/index.d.ts +1 -0
- package/dist/src/components/inputnumber/InputNumber.cjs +1 -2
- package/dist/src/components/inputnumber/InputNumber.js +1 -2
- package/dist/src/components/inputnumber/InputNumber.module.css.cjs +1 -2
- package/dist/src/components/inputnumber/InputNumber.module.css.js +1 -2
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.cjs +1 -2
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.js +1 -2
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.cjs +1 -2
- package/dist/src/components/legacyNavMenu/LegacyNavMenu.module.css.js +1 -2
- package/dist/src/components/legacyNavMenu/UserProfile.cjs +1 -2
- package/dist/src/components/legacyNavMenu/UserProfile.js +1 -2
- package/dist/src/components/legacyNavMenu/UserProfile.module.css.cjs +1 -2
- package/dist/src/components/legacyNavMenu/UserProfile.module.css.js +1 -2
- package/dist/src/components/listRow/ListRow.cjs +1 -2
- package/dist/src/components/listRow/ListRow.js +1 -2
- package/dist/src/components/listpopover/ListPopover.cjs +1 -2
- package/dist/src/components/listpopover/ListPopover.js +1 -2
- package/dist/src/components/listpopover/ListPopover.module.css.cjs +1 -2
- package/dist/src/components/listpopover/ListPopover.module.css.js +1 -2
- package/dist/src/components/manageColumns/ManageColumnsItem.cjs +1 -2
- package/dist/src/components/manageColumns/ManageColumnsItem.js +1 -2
- package/dist/src/components/manageColumns/ManageColumnsPanel.cjs +1 -2
- package/dist/src/components/manageColumns/ManageColumnsPanel.js +1 -2
- package/dist/src/components/manageColumns/SelectAll.cjs +1 -2
- package/dist/src/components/manageColumns/SelectAll.js +1 -2
- package/dist/src/components/menu/Menu.cjs +1 -2
- package/dist/src/components/menu/Menu.js +1 -2
- package/dist/src/components/menu/Menu.module.css.cjs +1 -2
- package/dist/src/components/menu/Menu.module.css.js +1 -2
- package/dist/src/components/message/Message.module.css.cjs +1 -2
- package/dist/src/components/message/Message.module.css.js +1 -2
- package/dist/src/components/message/useMessage.cjs +1 -2
- package/dist/src/components/message/useMessage.js +1 -2
- package/dist/src/components/modal/Modal.cjs +1 -2
- package/dist/src/components/modal/Modal.js +1 -2
- package/dist/src/components/navMenu/NavMenu.cjs +1 -2
- package/dist/src/components/navMenu/NavMenu.js +1 -2
- package/dist/src/components/navMenu/NavMenu.module.css.cjs +1 -2
- package/dist/src/components/navMenu/NavMenu.module.css.js +1 -2
- package/dist/src/components/notification/Notification.module.css.cjs +1 -2
- package/dist/src/components/notification/Notification.module.css.js +1 -2
- package/dist/src/components/notification/useNotification.cjs +1 -2
- package/dist/src/components/notification/useNotification.js +1 -2
- package/dist/src/components/notificationModal/NotifcationModal.module.css.cjs +1 -2
- package/dist/src/components/notificationModal/NotifcationModal.module.css.js +1 -2
- package/dist/src/components/notificationModal/NotificationModal.cjs +1 -2
- package/dist/src/components/notificationModal/NotificationModal.js +1 -2
- package/dist/src/components/pagination/Pagination.cjs +1 -2
- package/dist/src/components/pagination/Pagination.js +1 -2
- package/dist/src/components/pagination/Pagination.module.css.cjs +1 -2
- package/dist/src/components/pagination/Pagination.module.css.js +1 -2
- package/dist/src/components/popover/Popover.cjs +1 -2
- package/dist/src/components/popover/Popover.js +1 -2
- package/dist/src/components/popover/Popover.module.css.cjs +1 -2
- package/dist/src/components/popover/Popover.module.css.js +1 -2
- package/dist/src/components/progress/Progress.cjs +1 -2
- package/dist/src/components/progress/Progress.js +1 -2
- package/dist/src/components/radio/Radio.cjs +1 -2
- package/dist/src/components/radio/Radio.js +1 -2
- package/dist/src/components/radioCardGroup/RadioCardGroup.cjs +78 -0
- package/dist/src/components/radioCardGroup/RadioCardGroup.cjs.map +1 -0
- package/dist/src/components/radioCardGroup/RadioCardGroup.d.ts +26 -0
- package/dist/src/components/radioCardGroup/RadioCardGroup.js +76 -0
- package/dist/src/components/radioCardGroup/RadioCardGroup.js.map +1 -0
- package/dist/src/components/radioCardGroup/index.d.ts +1 -0
- package/dist/src/components/rate/Rate.cjs +1 -2
- package/dist/src/components/rate/Rate.js +1 -2
- package/dist/src/components/select/AntdSelect.cjs +1 -2
- package/dist/src/components/select/AntdSelect.js +1 -2
- package/dist/src/components/select/Select.cjs +1 -2
- package/dist/src/components/select/Select.js +1 -2
- package/dist/src/components/select/SummarizedSelect.cjs +1 -2
- package/dist/src/components/select/SummarizedSelect.js +1 -2
- package/dist/src/components/select/SummarizedSelect.module.css.cjs +1 -2
- package/dist/src/components/select/SummarizedSelect.module.css.js +1 -2
- package/dist/src/components/skeleton/Skeleton.cjs +1 -2
- package/dist/src/components/skeleton/Skeleton.js +1 -2
- package/dist/src/components/slider/Slider.cjs +1 -2
- package/dist/src/components/slider/Slider.js +1 -2
- package/dist/src/components/spinner/Spinner.cjs +1 -2
- package/dist/src/components/spinner/Spinner.js +1 -2
- package/dist/src/components/statusPill/StatusPill.cjs +1 -2
- package/dist/src/components/statusPill/StatusPill.js +1 -2
- package/dist/src/components/statusPill/StatusPill.module.css.cjs +1 -2
- package/dist/src/components/statusPill/StatusPill.module.css.js +1 -2
- package/dist/src/components/stepDrawer/StepDrawer.cjs +1 -2
- package/dist/src/components/stepDrawer/StepDrawer.js +1 -2
- package/dist/src/components/steps/Steps.cjs +1 -2
- package/dist/src/components/steps/Steps.js +1 -2
- package/dist/src/components/steps/useSteps.cjs +1 -2
- package/dist/src/components/steps/useSteps.js +1 -2
- package/dist/src/components/swatch/Swatch.cjs +1 -2
- package/dist/src/components/swatch/Swatch.js +1 -2
- package/dist/src/components/swatchStrip/SwatchStrip.cjs +1 -2
- package/dist/src/components/swatchStrip/SwatchStrip.js +1 -2
- package/dist/src/components/switch/Switch.cjs +1 -2
- package/dist/src/components/switch/Switch.js +1 -2
- package/dist/src/components/table/Table.cjs +2 -3
- package/dist/src/components/table/Table.js +2 -3
- package/dist/src/components/table/Table.module.css.cjs +1 -2
- package/dist/src/components/table/Table.module.css.js +1 -2
- package/dist/src/components/tabs/Tabs.cjs +1 -2
- package/dist/src/components/tabs/Tabs.js +1 -2
- package/dist/src/components/tabs/Tabs.module.css.cjs +1 -2
- package/dist/src/components/tabs/Tabs.module.css.js +1 -2
- package/dist/src/components/tag/Tag.cjs +23 -9
- package/dist/src/components/tag/Tag.cjs.map +1 -1
- package/dist/src/components/tag/Tag.d.ts +16 -2
- package/dist/src/components/tag/Tag.js +23 -10
- package/dist/src/components/tag/Tag.js.map +1 -1
- package/dist/src/components/thresholdBar/ThresholdBar.cjs +1 -2
- package/dist/src/components/thresholdBar/ThresholdBar.js +1 -2
- package/dist/src/components/thresholdBar/ThresholdBar.module.css.cjs +1 -2
- package/dist/src/components/thresholdBar/ThresholdBar.module.css.js +1 -2
- package/dist/src/components/tooltip/Tooltip.cjs +1 -2
- package/dist/src/components/tooltip/Tooltip.js +1 -2
- package/dist/src/components/vennDiagram/VennDiagram.cjs +1 -2
- package/dist/src/components/vennDiagram/VennDiagram.js +1 -2
- package/dist/src/svgs/ProgressCircle.svg.cjs +1 -2
- package/dist/src/svgs/ProgressCircle.svg.js +1 -2
- package/dist/src/svgs/j2-logo-menu-collapse.svg.cjs +1 -2
- package/dist/src/svgs/j2-logo-menu-collapse.svg.js +1 -2
- package/dist/src/svgs/j2-logo-menu.svg.cjs +1 -2
- package/dist/src/svgs/j2-logo-menu.svg.js +1 -2
- package/dist/src/svgs/menu-sidebar-collapse.svg.cjs +1 -2
- package/dist/src/svgs/menu-sidebar-collapse.svg.js +1 -2
- package/dist/src/svgs/menu-sidebar-expand.svg.cjs +1 -2
- package/dist/src/svgs/menu-sidebar-expand.svg.js +1 -2
- package/dist/src/utils/useRender.cjs +1 -2
- package/dist/src/utils/useRender.js +1 -2
- package/dist/style.css +78 -78
- package/dist/tailwind.cjs +1 -2
- package/dist/tailwind.js +1 -2
- package/package.json +16 -16
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import cx from "classnames";
|
|
3
|
+
// src/components/callout/Callout.tsx
|
|
4
|
+
/**
|
|
5
|
+
* A neutral, bordered box for context that is not a status: an invitation
|
|
6
|
+
* ("Want to …? [Add]") or a short summary beside a form. Use `Alert` when the
|
|
7
|
+
* content is information, success, a warning or an error.
|
|
8
|
+
*/
|
|
9
|
+
var Callout = ({ children, title, extra, footer, className }) => /* @__PURE__ */ jsxs("div", {
|
|
10
|
+
className: cx("rounded-j2 border border-solid border-j2-gray-4 bg-j2-gray-1 px-3 py-2.5 text-sm text-j2-text", className),
|
|
11
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
12
|
+
className: "flex items-center justify-between gap-4",
|
|
13
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
14
|
+
className: "min-w-0 leading-snug",
|
|
15
|
+
children: [title && /* @__PURE__ */ jsx("span", {
|
|
16
|
+
className: "mr-1.5 font-semibold text-j2-text",
|
|
17
|
+
children: title
|
|
18
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
19
|
+
className: title ? "text-j2-text-secondary" : void 0,
|
|
20
|
+
children
|
|
21
|
+
})]
|
|
22
|
+
}), extra && /* @__PURE__ */ jsx("div", {
|
|
23
|
+
className: "flex-shrink-0",
|
|
24
|
+
children: extra
|
|
25
|
+
})]
|
|
26
|
+
}), footer && /* @__PURE__ */ jsx("div", {
|
|
27
|
+
className: "mt-2",
|
|
28
|
+
children: footer
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
export { Callout };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=Callout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Callout.js","names":[],"sources":["../../../../src/components/callout/Callout.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport cx from 'classnames'\n\nexport type CalloutProps = {\n /** The main line. */\n children: ReactNode\n /** A short bold label before the main line. */\n title?: ReactNode\n /** Right-aligned: a button, a link or a count. */\n extra?: ReactNode\n /** Under the main line: tags, a list, a second line. */\n footer?: ReactNode\n className?: string\n}\n\n/**\n * A neutral, bordered box for context that is not a status: an invitation\n * (\"Want to …? [Add]\") or a short summary beside a form. Use `Alert` when the\n * content is information, success, a warning or an error.\n */\nexport const Callout = ({\n children,\n title,\n extra,\n footer,\n className,\n}: CalloutProps) => (\n <div\n className={cx(\n 'rounded-j2 border border-solid border-j2-gray-4 bg-j2-gray-1 px-3 py-2.5 text-sm text-j2-text',\n className\n )}\n >\n <div className=\"flex items-center justify-between gap-4\">\n <div className=\"min-w-0 leading-snug\">\n {title && (\n <span className=\"mr-1.5 font-semibold text-j2-text\">{title}</span>\n )}\n <span className={title ? 'text-j2-text-secondary' : undefined}>\n {children}\n </span>\n </div>\n {extra && <div className=\"flex-shrink-0\">{extra}</div>}\n </div>\n {footer && <div className=\"mt-2\">{footer}</div>}\n </div>\n)\n"],"mappings":";;;;;;;;AAoBA,IAAa,WAAW,EACtB,UACA,OACA,OACA,QACA,gBAEA,qBAAC,OAAD;CACE,WAAW,GACT,iGACA,SACF;CAJF,UAAA,CAME,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACE,qBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACG,SACC,oBAAC,QAAD;IAAM,WAAU;IAAqC,UAAA;GAAY,CAAA,GAEnE,oBAAC,QAAD;IAAM,WAAW,QAAQ,2BAA2B,KAAA;IACjD;GACG,CAAA,CACH;EACJ,CAAA,GAAA,SAAS,oBAAC,OAAD;GAAK,WAAU;GAAiB,UAAA;EAAW,CAAA,CAClD;CACJ,CAAA,GAAA,UAAU,oBAAC,OAAD;EAAK,WAAU;EAAQ,UAAA;CAAY,CAAA,CAC3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Callout, type CalloutProps } from './Callout.js';
|
|
@@ -4,7 +4,7 @@ let antd = require("antd");
|
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
let classnames = require("classnames");
|
|
6
6
|
classnames = require_runtime.__toESM(classnames, 1);
|
|
7
|
-
|
|
7
|
+
// src/components/card/Card.tsx
|
|
8
8
|
var Card = ({ title, children, loading, size = "default", innerVariant = "default", selected, className, ...props }) => {
|
|
9
9
|
const isSelectable = selected !== void 0 && Boolean(props.onClick);
|
|
10
10
|
const isInnerBasic = props.type === "inner" && innerVariant === "basic";
|
|
@@ -30,7 +30,6 @@ var Card = ({ title, children, loading, size = "default", innerVariant = "defaul
|
|
|
30
30
|
children
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
//#endregion
|
|
34
33
|
exports.Card = Card;
|
|
35
34
|
|
|
36
35
|
//# sourceMappingURL=Card.cjs.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Card } from "antd";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
|
|
5
|
+
// src/components/card/Card.tsx
|
|
6
6
|
var Card$1 = ({ title, children, loading, size = "default", innerVariant = "default", selected, className, ...props }) => {
|
|
7
7
|
const isSelectable = selected !== void 0 && Boolean(props.onClick);
|
|
8
8
|
const isInnerBasic = props.type === "inner" && innerVariant === "basic";
|
|
@@ -28,7 +28,6 @@ var Card$1 = ({ title, children, loading, size = "default", innerVariant = "defa
|
|
|
28
28
|
children
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { Card$1 as Card };
|
|
33
32
|
|
|
34
33
|
//# sourceMappingURL=Card.js.map
|
|
@@ -7,7 +7,7 @@ _phosphor_icons_react = require_runtime.__toESM(_phosphor_icons_react, 1);
|
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let classnames = require("classnames");
|
|
9
9
|
classnames = require_runtime.__toESM(classnames, 1);
|
|
10
|
-
|
|
10
|
+
// src/components/changeChip/ChangeChip.tsx
|
|
11
11
|
/**
|
|
12
12
|
* A compact chip for one change: an optional swatch, a label and a delta.
|
|
13
13
|
* It is a button, so it can open a popover with the details; wrap it in a
|
|
@@ -52,7 +52,6 @@ var ChangeChip = (0, react.forwardRef)(({ swatch, label, delta, placeholder, srL
|
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
ChangeChip.displayName = "ChangeChip";
|
|
55
|
-
//#endregion
|
|
56
55
|
exports.ChangeChip = ChangeChip;
|
|
57
56
|
|
|
58
57
|
//# sourceMappingURL=ChangeChip.cjs.map
|
|
@@ -4,7 +4,7 @@ import { forwardRef } from "react";
|
|
|
4
4
|
import { ArrowDownIcon, ArrowUpIcon } from "@phosphor-icons/react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import cx from "classnames";
|
|
7
|
-
|
|
7
|
+
// src/components/changeChip/ChangeChip.tsx
|
|
8
8
|
/**
|
|
9
9
|
* A compact chip for one change: an optional swatch, a label and a delta.
|
|
10
10
|
* It is a button, so it can open a popover with the details; wrap it in a
|
|
@@ -49,7 +49,6 @@ var ChangeChip = forwardRef(({ swatch, label, delta, placeholder, srLabel, class
|
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
51
|
ChangeChip.displayName = "ChangeChip";
|
|
52
|
-
//#endregion
|
|
53
52
|
export { ChangeChip };
|
|
54
53
|
|
|
55
54
|
//# sourceMappingURL=ChangeChip.js.map
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
let antd = require("antd");
|
|
2
2
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
-
|
|
3
|
+
// src/components/checkbox/Checkbox.tsx
|
|
4
4
|
var Checkbox = (props) => {
|
|
5
5
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Checkbox, { ...props });
|
|
6
6
|
};
|
|
7
7
|
Checkbox.Group = antd.Checkbox.Group;
|
|
8
|
-
//#endregion
|
|
9
8
|
exports.Checkbox = Checkbox;
|
|
10
9
|
|
|
11
10
|
//# sourceMappingURL=Checkbox.cjs.map
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Checkbox } from "antd";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/checkbox/Checkbox.tsx
|
|
4
4
|
var Checkbox$1 = (props) => {
|
|
5
5
|
return /* @__PURE__ */ jsx(Checkbox, { ...props });
|
|
6
6
|
};
|
|
7
7
|
Checkbox$1.Group = Checkbox.Group;
|
|
8
|
-
//#endregion
|
|
9
8
|
export { Checkbox$1 as Checkbox };
|
|
10
9
|
|
|
11
10
|
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -4,7 +4,7 @@ const require_TreeNode = require("./TreeNode.cjs");
|
|
|
4
4
|
let react = require("react");
|
|
5
5
|
react = require_runtime.__toESM(react, 1);
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
|
|
7
|
+
// src/components/checkboxTree/CheckboxTree.tsx
|
|
8
8
|
var CheckboxTree = ({ treeData, defaultCheckedKeys = [], checkedKeys: controlledCheckedKeys, onCheck, disabled = false, defaultExpandAll = true, defaultExpandedKeys, expandedKeys: controlledExpandedKeys, onExpand, className, style, lazyChildren = false }) => {
|
|
9
9
|
const allLeafKeys = (0, react.useMemo)(() => require_utils.getAllLeafKeys(treeData), [treeData]);
|
|
10
10
|
const leafKeySet = (0, react.useMemo)(() => new Set(allLeafKeys), [allLeafKeys]);
|
|
@@ -108,7 +108,6 @@ var CheckboxTree = ({ treeData, defaultCheckedKeys = [], checkedKeys: controlled
|
|
|
108
108
|
}, node.key))
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
|
-
//#endregion
|
|
112
111
|
exports.CheckboxTree = CheckboxTree;
|
|
113
112
|
|
|
114
113
|
//# sourceMappingURL=CheckboxTree.cjs.map
|
|
@@ -2,7 +2,7 @@ import { getAllLeafKeys, getAllParentKeys, getLeafKeys } from "./utils.js";
|
|
|
2
2
|
import { TreeNode } from "./TreeNode.js";
|
|
3
3
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/checkboxTree/CheckboxTree.tsx
|
|
6
6
|
var CheckboxTree = ({ treeData, defaultCheckedKeys = [], checkedKeys: controlledCheckedKeys, onCheck, disabled = false, defaultExpandAll = true, defaultExpandedKeys, expandedKeys: controlledExpandedKeys, onExpand, className, style, lazyChildren = false }) => {
|
|
7
7
|
const allLeafKeys = useMemo(() => getAllLeafKeys(treeData), [treeData]);
|
|
8
8
|
const leafKeySet = useMemo(() => new Set(allLeafKeys), [allLeafKeys]);
|
|
@@ -106,7 +106,6 @@ var CheckboxTree = ({ treeData, defaultCheckedKeys = [], checkedKeys: controlled
|
|
|
106
106
|
}, node.key))
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
//#endregion
|
|
110
109
|
export { CheckboxTree };
|
|
111
110
|
|
|
112
111
|
//# sourceMappingURL=CheckboxTree.js.map
|
|
@@ -4,7 +4,7 @@ const require_utils = require("./utils.cjs");
|
|
|
4
4
|
let _phosphor_icons_react = require("@phosphor-icons/react");
|
|
5
5
|
_phosphor_icons_react = require_runtime.__toESM(_phosphor_icons_react, 1);
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
|
|
7
|
+
// src/components/checkboxTree/TreeNode.tsx
|
|
8
8
|
var TreeNode = ({ node, level, leafNodeValues, onCheck, disabled, expandedKeys, onToggleExpand, lazyChildren }) => {
|
|
9
9
|
const { checked: isChecked, indeterminate } = require_utils.getNodeCheckState(node, leafNodeValues);
|
|
10
10
|
const isIndeterminate = lazyChildren && indeterminate;
|
|
@@ -55,7 +55,6 @@ var TreeNode = ({ node, level, leafNodeValues, onCheck, disabled, expandedKeys,
|
|
|
55
55
|
})
|
|
56
56
|
})] });
|
|
57
57
|
};
|
|
58
|
-
//#endregion
|
|
59
58
|
exports.TreeNode = TreeNode;
|
|
60
59
|
|
|
61
60
|
//# sourceMappingURL=TreeNode.cjs.map
|
|
@@ -2,7 +2,7 @@ import { Checkbox } from "../checkbox/Checkbox.js";
|
|
|
2
2
|
import { getNodeCheckState } from "./utils.js";
|
|
3
3
|
import { CaretDownIcon } from "@phosphor-icons/react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/checkboxTree/TreeNode.tsx
|
|
6
6
|
var TreeNode = ({ node, level, leafNodeValues, onCheck, disabled, expandedKeys, onToggleExpand, lazyChildren }) => {
|
|
7
7
|
const { checked: isChecked, indeterminate } = getNodeCheckState(node, leafNodeValues);
|
|
8
8
|
const isIndeterminate = lazyChildren && indeterminate;
|
|
@@ -53,7 +53,6 @@ var TreeNode = ({ node, level, leafNodeValues, onCheck, disabled, expandedKeys,
|
|
|
53
53
|
})
|
|
54
54
|
})] });
|
|
55
55
|
};
|
|
56
|
-
//#endregion
|
|
57
56
|
export { TreeNode };
|
|
58
57
|
|
|
59
58
|
//# sourceMappingURL=TreeNode.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/checkboxTree/utils.ts
|
|
2
2
|
var getLeafKeys = (node) => {
|
|
3
3
|
const keys = [];
|
|
4
4
|
const traverse = (currentNode) => {
|
|
@@ -45,7 +45,6 @@ var getAllParentKeys = (nodes) => {
|
|
|
45
45
|
traverse(nodes);
|
|
46
46
|
return keys;
|
|
47
47
|
};
|
|
48
|
-
//#endregion
|
|
49
48
|
exports.getAllLeafKeys = getAllLeafKeys;
|
|
50
49
|
exports.getAllParentKeys = getAllParentKeys;
|
|
51
50
|
exports.getLeafKeys = getLeafKeys;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/checkboxTree/utils.ts
|
|
2
2
|
var getLeafKeys = (node) => {
|
|
3
3
|
const keys = [];
|
|
4
4
|
const traverse = (currentNode) => {
|
|
@@ -45,7 +45,6 @@ var getAllParentKeys = (nodes) => {
|
|
|
45
45
|
traverse(nodes);
|
|
46
46
|
return keys;
|
|
47
47
|
};
|
|
48
|
-
//#endregion
|
|
49
48
|
export { getAllLeafKeys, getAllParentKeys, getLeafKeys, getNodeCheckState };
|
|
50
49
|
|
|
51
50
|
//# sourceMappingURL=utils.js.map
|
|
@@ -7,7 +7,7 @@ let antd = require("antd");
|
|
|
7
7
|
let _phosphor_icons_react = require("@phosphor-icons/react");
|
|
8
8
|
_phosphor_icons_react = require_runtime.__toESM(_phosphor_icons_react, 1);
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
-
|
|
10
|
+
// src/components/collapse/Collapse.tsx
|
|
11
11
|
var stateConfig = {
|
|
12
12
|
default: {
|
|
13
13
|
className: require_Collapse_module.default.default,
|
|
@@ -59,7 +59,6 @@ var Collapse = ({ state = "default", showIcon = false, variant = "default", clas
|
|
|
59
59
|
})
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
|
-
//#endregion
|
|
63
62
|
exports.Collapse = Collapse;
|
|
64
63
|
|
|
65
64
|
//# sourceMappingURL=Collapse.cjs.map
|
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import { Collapse } from "antd";
|
|
4
4
|
import { CaretDownIcon, InfoIcon, WarningCircleIcon, XCircleIcon } from "@phosphor-icons/react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/collapse/Collapse.tsx
|
|
7
7
|
var stateConfig = {
|
|
8
8
|
default: {
|
|
9
9
|
className: Collapse_module_default.default,
|
|
@@ -55,7 +55,6 @@ var Collapse$1 = ({ state = "default", showIcon = false, variant = "default", cl
|
|
|
55
55
|
})
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
|
-
//#endregion
|
|
59
58
|
export { Collapse$1 as Collapse };
|
|
60
59
|
|
|
61
60
|
//# sourceMappingURL=Collapse.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/collapse/Collapse.module.css
|
|
2
2
|
var warning = "_warning_4jnb6_2";
|
|
3
3
|
var error = "_error_4jnb6_3";
|
|
4
4
|
var section = "_section_4jnb6_51";
|
|
@@ -8,7 +8,6 @@ var Collapse_module_default = {
|
|
|
8
8
|
error,
|
|
9
9
|
section
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
exports.default = Collapse_module_default;
|
|
13
12
|
exports.error = error;
|
|
14
13
|
exports.section = section;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/collapse/Collapse.module.css
|
|
2
2
|
var warning = "_warning_4jnb6_2";
|
|
3
3
|
var error = "_error_4jnb6_3";
|
|
4
4
|
var section = "_section_4jnb6_51";
|
|
@@ -8,7 +8,6 @@ var Collapse_module_default = {
|
|
|
8
8
|
error,
|
|
9
9
|
section
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { Collapse_module_default as default, error, section, warning };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=Collapse.module.css.js.map
|
|
@@ -5,7 +5,7 @@ let antd = require("antd");
|
|
|
5
5
|
let _phosphor_icons_react = require("@phosphor-icons/react");
|
|
6
6
|
_phosphor_icons_react = require_runtime.__toESM(_phosphor_icons_react, 1);
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
-
|
|
8
|
+
// src/components/drawer/Drawer.tsx
|
|
9
9
|
var Drawer = ({ fillPage = false, footer, extraContent, ...props }) => {
|
|
10
10
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Drawer, {
|
|
11
11
|
...props,
|
|
@@ -25,7 +25,6 @@ var Drawer = ({ fillPage = false, footer, extraContent, ...props }) => {
|
|
|
25
25
|
className: "j2-drawer"
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
//#endregion
|
|
29
28
|
exports.Drawer = Drawer;
|
|
30
29
|
|
|
31
30
|
//# sourceMappingURL=Drawer.cjs.map
|
|
@@ -3,7 +3,7 @@ import { Button as Button$1 } from "../button/Button.js";
|
|
|
3
3
|
import { Drawer, Space } from "antd";
|
|
4
4
|
import { XIcon } from "@phosphor-icons/react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/drawer/Drawer.tsx
|
|
7
7
|
var Drawer$1 = ({ fillPage = false, footer, extraContent, ...props }) => {
|
|
8
8
|
return /* @__PURE__ */ jsx(Drawer, {
|
|
9
9
|
...props,
|
|
@@ -23,7 +23,6 @@ var Drawer$1 = ({ fillPage = false, footer, extraContent, ...props }) => {
|
|
|
23
23
|
className: "j2-drawer"
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
//#endregion
|
|
27
26
|
export { Drawer$1 as Drawer };
|
|
28
27
|
|
|
29
28
|
//# sourceMappingURL=Drawer.js.map
|
|
@@ -7,7 +7,7 @@ _phosphor_icons_react = require_runtime.__toESM(_phosphor_icons_react, 1);
|
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let classnames = require("classnames");
|
|
9
9
|
classnames = require_runtime.__toESM(classnames, 1);
|
|
10
|
-
|
|
10
|
+
// src/components/dropdown/Dropdown.tsx
|
|
11
11
|
var { Link } = antd.Typography;
|
|
12
12
|
var LabelWithCaret = ({ label }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
13
13
|
className: "flex items-center gap-2",
|
|
@@ -58,7 +58,6 @@ var Dropdown = ({ label, type, icon, menu, menuType = "default", targetClassName
|
|
|
58
58
|
}) })
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
|
-
//#endregion
|
|
62
61
|
exports.Dropdown = Dropdown;
|
|
63
62
|
|
|
64
63
|
//# sourceMappingURL=Dropdown.cjs.map
|
|
@@ -4,7 +4,7 @@ import { Dropdown, Typography } from "antd";
|
|
|
4
4
|
import { CaretDownIcon } from "@phosphor-icons/react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import cx from "classnames";
|
|
7
|
-
|
|
7
|
+
// src/components/dropdown/Dropdown.tsx
|
|
8
8
|
var { Link } = Typography;
|
|
9
9
|
var LabelWithCaret = ({ label }) => /* @__PURE__ */ jsxs("div", {
|
|
10
10
|
className: "flex items-center gap-2",
|
|
@@ -55,7 +55,6 @@ var Dropdown$1 = ({ label, type, icon, menu, menuType = "default", targetClassNa
|
|
|
55
55
|
}) })
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
|
-
//#endregion
|
|
59
58
|
export { Dropdown$1 as Dropdown };
|
|
60
59
|
|
|
61
60
|
//# sourceMappingURL=Dropdown.js.map
|
|
@@ -2,7 +2,7 @@ const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
|
|
|
2
2
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
3
|
let classnames = require("classnames");
|
|
4
4
|
classnames = require_runtime.__toESM(classnames, 1);
|
|
5
|
-
|
|
5
|
+
// src/components/emptyState/EmptyState.tsx
|
|
6
6
|
/**
|
|
7
7
|
* What a list, table or panel shows when it has nothing to show.
|
|
8
8
|
*/
|
|
@@ -33,7 +33,6 @@ var EmptyState = ({ title, description, icon, action, size = "default", classNam
|
|
|
33
33
|
]
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
-
//#endregion
|
|
37
36
|
exports.EmptyState = EmptyState;
|
|
38
37
|
|
|
39
38
|
//# sourceMappingURL=EmptyState.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
|
|
3
|
+
// src/components/emptyState/EmptyState.tsx
|
|
4
4
|
/**
|
|
5
5
|
* What a list, table or panel shows when it has nothing to show.
|
|
6
6
|
*/
|
|
@@ -31,7 +31,6 @@ var EmptyState = ({ title, description, icon, action, size = "default", classNam
|
|
|
31
31
|
]
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { EmptyState };
|
|
36
35
|
|
|
37
36
|
//# sourceMappingURL=EmptyState.js.map
|