@akinon/ui-divider 0.4.0 → 0.5.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,49 @@
1
+ import { DO_NOT_USE_OR_YOU_WILL_BE_FIRED_INTERNAL_STYLE } from '@akinon/ui-theme';
2
+
3
+ export type DividerProps = {
4
+ /**
5
+ * Select the type of divider.
6
+ * @default 'horizontal'
7
+ */
8
+ type?: 'horizontal' | 'vertical';
9
+ /**
10
+ * Select the orientation of divider.
11
+ * @default 'left'
12
+ */
13
+ orientation?: 'left' | 'right' | 'center';
14
+ /**
15
+ * The margin of divider relative to orientation.
16
+ */
17
+ orientationMargin?: string | number;
18
+ /**
19
+ * Whether the divider is plain.
20
+ * @default false
21
+ */
22
+ plain?: boolean;
23
+ /**
24
+ * Whether the divider is dashed.
25
+ * @default false
26
+ */
27
+ dashed?: boolean;
28
+ /**
29
+ * The negative offset of plain divider.
30
+ * Use this prop to set the negative inline margin of plain divider.
31
+ */
32
+ plainOffset?: number;
33
+ /**
34
+ * The class name of the divider.
35
+ */
36
+ className?: string;
37
+ /**
38
+ * The root class name of the divider.
39
+ */
40
+ rootClassName?: string;
41
+ /**
42
+ * The children of the divider.
43
+ */
44
+ children?: React.ReactNode;
45
+ /**
46
+ * @ignore
47
+ */
48
+ style?: DO_NOT_USE_OR_YOU_WILL_BE_FIRED_INTERNAL_STYLE;
49
+ };
@@ -0,0 +1,49 @@
1
+ import { DO_NOT_USE_OR_YOU_WILL_BE_FIRED_INTERNAL_STYLE } from '@akinon/ui-theme';
2
+
3
+ export type DividerProps = {
4
+ /**
5
+ * Select the type of divider.
6
+ * @default 'horizontal'
7
+ */
8
+ type?: 'horizontal' | 'vertical';
9
+ /**
10
+ * Select the orientation of divider.
11
+ * @default 'left'
12
+ */
13
+ orientation?: 'left' | 'right' | 'center';
14
+ /**
15
+ * The margin of divider relative to orientation.
16
+ */
17
+ orientationMargin?: string | number;
18
+ /**
19
+ * Whether the divider is plain.
20
+ * @default false
21
+ */
22
+ plain?: boolean;
23
+ /**
24
+ * Whether the divider is dashed.
25
+ * @default false
26
+ */
27
+ dashed?: boolean;
28
+ /**
29
+ * The negative offset of plain divider.
30
+ * Use this prop to set the negative inline margin of plain divider.
31
+ */
32
+ plainOffset?: number;
33
+ /**
34
+ * The class name of the divider.
35
+ */
36
+ className?: string;
37
+ /**
38
+ * The root class name of the divider.
39
+ */
40
+ rootClassName?: string;
41
+ /**
42
+ * The children of the divider.
43
+ */
44
+ children?: React.ReactNode;
45
+ /**
46
+ * @ignore
47
+ */
48
+ style?: DO_NOT_USE_OR_YOU_WILL_BE_FIRED_INTERNAL_STYLE;
49
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/ui-divider",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",
@@ -16,8 +16,8 @@
16
16
  "copyfiles": "^2.4.1",
17
17
  "rimraf": "^5.0.5",
18
18
  "typescript": "^5.2.2",
19
- "@akinon/ui-theme": "0.6.0",
20
- "@akinon/typescript-config": "0.3.0"
19
+ "@akinon/ui-theme": "0.7.0",
20
+ "@akinon/typescript-config": "0.4.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": ">=18",
@@ -37,7 +37,7 @@
37
37
  "build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files",
38
38
  "build:esm": "tsc --outDir dist/esm",
39
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",
40
+ "copy:files": "copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/esm && copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/cjs",
41
41
  "clean": "rimraf dist/",
42
42
  "typecheck": "tsc --noEmit"
43
43
  }