@akinon/ui-dropdown 0.0.2 → 0.2.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.
@@ -0,0 +1,3 @@
1
+ .akinon-dropdown-menu-item-selected {
2
+ font-weight: bold !important;
3
+ }
@@ -1,3 +1,4 @@
1
+ import './index.css';
1
2
  import type { DropDownProps as AntDropdownProps } from 'antd';
2
3
  import * as React from 'react';
3
4
  type DropdownProps = AntDropdownProps;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAE9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,aAAa,GAAG,gBAAgB,CAAC;AAEtC,eAAO,MAAM,QAAQ,uCAAwC,aAAa,sBAMzE,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Dropdown = void 0;
15
+ require("./index.css");
16
+ const antd_1 = require("antd");
17
+ const React = require("react");
18
+ const Dropdown = (_a) => {
19
+ var { children } = _a, restDropdownProps = __rest(_a, ["children"]);
20
+ return (React.createElement(antd_1.Dropdown, Object.assign({}, restDropdownProps), children));
21
+ };
22
+ exports.Dropdown = Dropdown;
@@ -0,0 +1,3 @@
1
+ .akinon-dropdown-menu-item-selected {
2
+ font-weight: bold !important;
3
+ }
@@ -0,0 +1,7 @@
1
+ import './index.css';
2
+ import type { DropDownProps as AntDropdownProps } from 'antd';
3
+ import * as React from 'react';
4
+ type DropdownProps = AntDropdownProps;
5
+ export declare const Dropdown: ({ children, ...restDropdownProps }: DropdownProps) => React.JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAE9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,aAAa,GAAG,gBAAgB,CAAC;AAEtC,eAAO,MAAM,QAAQ,uCAAwC,aAAa,sBAMzE,CAAC"}
@@ -0,0 +1,18 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import './index.css';
13
+ import { Dropdown as AntDropdown } from 'antd';
14
+ import * as React from 'react';
15
+ export const Dropdown = (_a) => {
16
+ var { children } = _a, restDropdownProps = __rest(_a, ["children"]);
17
+ return (React.createElement(AntDropdown, Object.assign({}, restDropdownProps), children));
18
+ };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@akinon/ui-dropdown",
3
- "version": "0.0.2",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
- "main": "dist/index.js",
6
- "module": "dist/index.js",
5
+ "main": "dist/esm/index.js",
6
+ "module": "dist/esm/index.js",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
@@ -12,26 +12,33 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "clean-package": "2.2.0",
15
- "@akinon/vite-config": "^0.1.1",
16
- "eslint-config-custom": "0.1.0",
17
- "tsconfig": "0.0.0"
15
+ "copyfiles": "^2.4.1",
16
+ "rimraf": "^5.0.5",
17
+ "typescript": "^5.2.2",
18
+ "@akinon/vite-config": "0.3.0",
19
+ "@akinon/eslint-config": "0.1.0",
20
+ "@akinon/typescript-config": "0.1.0"
18
21
  },
19
22
  "peerDependencies": {
20
23
  "react": ">=18",
21
24
  "react-dom": ">=18"
22
25
  },
23
26
  "clean-package": "../../../clean-package.config.json",
24
- "types": "dist/index.d.ts",
27
+ "types": "dist/esm/index.d.ts",
25
28
  "exports": {
26
29
  ".": {
27
- "types": "./dist/index.d.ts",
28
- "import": "./dist/index.js",
29
- "require": "./dist/index.cjs"
30
+ "types": "./dist/esm/index.d.ts",
31
+ "import": "./dist/esm/index.js",
32
+ "require": "./dist/cjs/index.js"
30
33
  },
31
34
  "./package.json": "./package.json"
32
35
  },
33
36
  "scripts": {
34
- "build": "vite build",
37
+ "build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files",
38
+ "build:esm": "tsc --outDir dist/esm",
39
+ "build:commonjs": "tsc --module commonjs --outDir dist/cjs",
40
+ "copy:files": "copyfiles -u 1 src/**/*.css dist/esm && copyfiles -u 1 src/**/*.css dist/cjs",
41
+ "clean": "rimraf dist/",
35
42
  "lint": "eslint *.ts*",
36
43
  "test": "vitest run",
37
44
  "test:ui": "vitest --ui",