@bouku/core 0.2.0 → 0.2.1

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.
@@ -6,7 +6,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.ItemHeader = ItemHeader;
8
8
  const jsx_runtime_1 = require("react/jsx-runtime");
9
- const chevron_up_svg_1 = __importDefault(require("../../assets/icons/chevron-up.svg"));
9
+ const chevron_up_svg_1 = __importDefault(require("../../../assets/icons/chevron-up.svg"));
10
10
  const tailwind_variants_1 = require("tailwind-variants");
11
11
  function ItemHeader({ isActive, label }) {
12
12
  const s = getStyles({ isActive });
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.default = Pagination;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const chevron_left_svg_1 = __importDefault(require("../../assets/icons/chevron-left.svg"));
9
- const chevron_right_svg_1 = __importDefault(require("../../assets/icons/chevron-right.svg"));
8
+ const chevron_left_svg_1 = __importDefault(require("../../../assets/icons/chevron-left.svg"));
9
+ const chevron_right_svg_1 = __importDefault(require("../../../assets/icons/chevron-right.svg"));
10
10
  const flex_1 = require("../../container/flex");
11
11
  const normal_1 = require("../../button/normal");
12
12
  const style_1 = require("../../../utils/functions/style");
@@ -8,8 +8,8 @@ exports.Header = void 0;
8
8
  const jsx_runtime_1 = require("react/jsx-runtime");
9
9
  const react_1 = require("react");
10
10
  const flex_1 = require("../../container/flex");
11
- const arrow_up_svg_1 = __importDefault(require("../../assets/icons/arrow-up.svg"));
12
- const arrow_down_svg_1 = __importDefault(require("../../assets/icons/arrow-down.svg"));
11
+ const arrow_up_svg_1 = __importDefault(require("../../../assets/icons/arrow-up.svg"));
12
+ const arrow_down_svg_1 = __importDefault(require("../../../assets/icons/arrow-down.svg"));
13
13
  const Header = ({ columnLabels, sortColumn, sortDirection, sortBy, toggleSortDirection }) => ((0, jsx_runtime_1.jsx)(flex_1.RowBox, { style: s.container, children: Object.entries(columnLabels).map(([col, label], i) => ((0, jsx_runtime_1.jsxs)(flex_1.RowBox, { style: s.column, children: [(0, jsx_runtime_1.jsx)("span", { className: s.label, onClick: () => sortBy(col), children: label }), col === sortColumn && ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [sortDirection === "desc" && (0, jsx_runtime_1.jsx)(arrow_down_svg_1.default, { className: s.sorter, onClick: () => toggleSortDirection() }), sortDirection === "asc" && (0, jsx_runtime_1.jsx)(arrow_up_svg_1.default, { className: s.sorter, onClick: () => toggleSortDirection() })] }))] }, i))) }));
14
14
  exports.Header = Header;
15
15
  const s = {
@@ -8,8 +8,8 @@ exports.TableRow = TableRow;
8
8
  const jsx_runtime_1 = require("react/jsx-runtime");
9
9
  const flex_1 = require("../../container/flex");
10
10
  const _1 = require("../../button/_");
11
- const check_circle_svg_1 = __importDefault(require("../../assets/icons/check-circle.svg"));
12
- const x_circle_svg_1 = __importDefault(require("../../assets/icons/x-circle.svg"));
11
+ const check_circle_svg_1 = __importDefault(require("../../../assets/icons/check-circle.svg"));
12
+ const x_circle_svg_1 = __importDefault(require("../../../assets/icons/x-circle.svg"));
13
13
  const ts_helper_kit_1 = require("ts-helper-kit");
14
14
  const isDateLike = (val) => !isNaN(Date.parse(val)) && isNaN(Number(val));
15
15
  exports.isDateLike = isDateLike;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bouku/core",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",