@bouku/core 0.0.4 → 0.0.6

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.
@@ -1,4 +1,4 @@
1
- export declare function Accordion({ items }: {
1
+ export default function Accordion({ items }: {
2
2
  items: {
3
3
  label: string;
4
4
  content: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Accordion = Accordion;
4
+ exports.default = Accordion;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_1 = require("react");
7
7
  const flex_1 = require("../layout/flex");
@@ -1,4 +1,4 @@
1
- export * from "./accordion";
1
+ export { default as Accordion } from "./accordion";
2
2
  export { default as Separator } from "./layout/separator";
3
3
  export { default as FadeBox } from "./layout/fade";
4
4
  export { default as AbsoluteBox } from "./layout/absolute";
@@ -17,8 +17,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.Dropdown = exports.Section = exports.Pagination = exports.AbsoluteBox = exports.FadeBox = exports.Separator = void 0;
21
- __exportStar(require("./accordion"), exports);
20
+ exports.Dropdown = exports.Section = exports.Pagination = exports.AbsoluteBox = exports.FadeBox = exports.Separator = exports.Accordion = void 0;
21
+ var accordion_1 = require("./accordion");
22
+ Object.defineProperty(exports, "Accordion", { enumerable: true, get: function () { return __importDefault(accordion_1).default; } });
22
23
  var separator_1 = require("./layout/separator");
23
24
  Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return __importDefault(separator_1).default; } });
24
25
  var fade_1 = require("./layout/fade");
@@ -1,2 +1,3 @@
1
1
  import type { ReactNode } from "react";
2
2
  export declare function formatText(text: string): ReactNode;
3
+ export declare const linkify: (label: string, link: string) => string;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.linkify = void 0;
3
4
  exports.formatText = formatText;
4
5
  const jsx_runtime_1 = require("react/jsx-runtime");
5
6
  const ts_1 = require("@bouko/ts");
@@ -34,3 +35,5 @@ function formatText(text) {
34
35
  return ((0, jsx_runtime_1.jsx)("span", { className: delimiter.style, children: content }, index));
35
36
  }) });
36
37
  }
38
+ const linkify = (label, link) => `[${label}](${link})`;
39
+ exports.linkify = linkify;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bouku/core",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",