neatkit 0.4.2 → 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.
- package/dist/Card-Ba5AcR4o.cjs +1 -0
- package/dist/Card-Cumb1Hon.js +74 -0
- package/dist/Code-CDHkXHVo.cjs +6 -0
- package/dist/Code-D4qqPnTN.js +7445 -0
- package/dist/Table-B5izJmMG.cjs +1 -0
- package/dist/Table-Gs5LkYRc.js +2187 -0
- package/dist/code.cjs +1 -0
- package/dist/code.js +5 -0
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Code/Code.d.ts +47 -0
- package/dist/components/Code/index.d.ts +2 -0
- package/dist/components/Code/utils/highlight.d.ts +17 -0
- package/dist/components/Content/Content.d.ts +3 -3
- package/dist/components/Content/index.d.ts +1 -1
- package/dist/components/Markdown/Markdown.d.ts +66 -0
- package/dist/components/Markdown/index.d.ts +3 -0
- package/dist/components/Markdown/utils/language.d.ts +9 -0
- package/dist/components/Markdown/utils/renderers.d.ts +15 -0
- package/dist/components/Markdown/utils/security.d.ts +66 -0
- package/dist/components/Table/Table.d.ts +7 -11
- package/dist/entries/code.d.ts +1 -0
- package/dist/entries/index.d.ts +29 -0
- package/dist/entries/markdown.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1524 -3746
- package/dist/markdown.cjs +31 -0
- package/dist/markdown.js +18409 -0
- package/dist/style.css +1 -1
- package/dist/tokens.d.ts +1 -1
- package/package.json +32 -4
- package/dist/index.d.ts +0 -29
package/dist/tokens.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const SPACE_SIZES: readonly [2, 4, 8, 12, 16, 24, 32, 48];
|
|
|
6
6
|
export type SpaceSize = (typeof SPACE_SIZES)[number];
|
|
7
7
|
/** The canonical Neatkit responsive breakpoints in CSS pixels. */
|
|
8
8
|
export declare const BREAKPOINTS: {
|
|
9
|
-
readonly sm:
|
|
9
|
+
readonly sm: 720;
|
|
10
10
|
readonly md: 960;
|
|
11
11
|
readonly lg: 1440;
|
|
12
12
|
readonly xl: 1920;
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neatkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "A modern, composable UI library for the web.",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"library",
|
|
7
|
+
"react",
|
|
8
|
+
"typescript",
|
|
9
|
+
"ui"
|
|
10
|
+
],
|
|
6
11
|
"type": "module",
|
|
7
12
|
"license": "MPL-2.0",
|
|
8
13
|
"engines": {
|
|
@@ -11,7 +16,7 @@
|
|
|
11
16
|
},
|
|
12
17
|
"main": "./dist/index.cjs",
|
|
13
18
|
"module": "./dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
19
|
+
"types": "./dist/entries/index.d.ts",
|
|
15
20
|
"files": [
|
|
16
21
|
"dist"
|
|
17
22
|
],
|
|
@@ -20,10 +25,20 @@
|
|
|
20
25
|
],
|
|
21
26
|
"exports": {
|
|
22
27
|
".": {
|
|
23
|
-
"types": "./dist/index.d.ts",
|
|
28
|
+
"types": "./dist/entries/index.d.ts",
|
|
24
29
|
"import": "./dist/index.js",
|
|
25
30
|
"require": "./dist/index.cjs"
|
|
26
31
|
},
|
|
32
|
+
"./code": {
|
|
33
|
+
"types": "./dist/entries/code.d.ts",
|
|
34
|
+
"import": "./dist/code.js",
|
|
35
|
+
"require": "./dist/code.cjs"
|
|
36
|
+
},
|
|
37
|
+
"./markdown": {
|
|
38
|
+
"types": "./dist/entries/markdown.d.ts",
|
|
39
|
+
"import": "./dist/markdown.js",
|
|
40
|
+
"require": "./dist/markdown.cjs"
|
|
41
|
+
},
|
|
27
42
|
"./style.css": "./dist/style.css"
|
|
28
43
|
},
|
|
29
44
|
"scripts": {
|
|
@@ -31,6 +46,7 @@
|
|
|
31
46
|
"test": "vitest run",
|
|
32
47
|
"test:coverage": "vitest run --coverage",
|
|
33
48
|
"test:watch": "vitest",
|
|
49
|
+
"test:imports": "tsx test/imports.ts",
|
|
34
50
|
"typecheck": "tsc --noEmit"
|
|
35
51
|
},
|
|
36
52
|
"peerDependencies": {
|
|
@@ -42,6 +58,7 @@
|
|
|
42
58
|
"@testing-library/jest-dom": "^7.0.0",
|
|
43
59
|
"@testing-library/react": "^16.3.2",
|
|
44
60
|
"@testing-library/user-event": "^14.6.3",
|
|
61
|
+
"@types/node": "^22.20.1",
|
|
45
62
|
"@types/react": "^18.3.3",
|
|
46
63
|
"@types/react-dom": "^18.3.0",
|
|
47
64
|
"@vitejs/plugin-react": "^4.7.0",
|
|
@@ -50,8 +67,19 @@
|
|
|
50
67
|
"jsdom": "^30.0.1",
|
|
51
68
|
"react": "^18.3.1",
|
|
52
69
|
"react-dom": "^18.3.1",
|
|
70
|
+
"tsx": "^4.23.12",
|
|
53
71
|
"typescript": "^5.5.4",
|
|
54
72
|
"vite": "^6.4.3",
|
|
55
73
|
"vitest": "^4.1.10"
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"highlight.js": "~11.11.0",
|
|
77
|
+
"lowlight": "^3.3.0",
|
|
78
|
+
"react-markdown": "^10.1.0",
|
|
79
|
+
"rehype-raw": "^7.0.0",
|
|
80
|
+
"rehype-sanitize": "^6.0.0",
|
|
81
|
+
"rehype-slug": "^6.0.0",
|
|
82
|
+
"remark-gfm": "^4.0.1",
|
|
83
|
+
"unified": "^11.0.5"
|
|
56
84
|
}
|
|
57
85
|
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import "./style.css";
|
|
2
|
-
export { breakpoint, cell, px, space, } from "./utils/units";
|
|
3
|
-
export { tokens } from "./tokens";
|
|
4
|
-
export type { BreakpointName, SpaceSize } from "./tokens";
|
|
5
|
-
export { Alert, type AlertProps, type AlertTone, } from "./components/Alert";
|
|
6
|
-
export { Avatar, type AvatarProps } from "./components/Avatar";
|
|
7
|
-
export { Badge, type BadgeProps, type BadgeTone, type BadgeVariant, } from "./components/Badge";
|
|
8
|
-
export { Button, type ButtonIconAlignment, type ButtonProps, type ButtonShape, type ButtonTextAlignment, type ButtonTone, type ButtonVariant, } from "./components/Button";
|
|
9
|
-
export { Card, type CardHeader, type CardProps, type CardSpacing, } from "./components/Card";
|
|
10
|
-
export { Checkbox, type CheckboxProps } from "./components/Checkbox";
|
|
11
|
-
export { CheckboxGroup, type CheckboxGroupOrientation, type CheckboxGroupProps, } from "./components/CheckboxGroup";
|
|
12
|
-
export { Content, type ContentFill, type ContentMode, type ContentProps, type ContentSpacing, type ContentTheme, } from "./components/Content";
|
|
13
|
-
export { Divider, type DividerOrientation, type DividerProps, } from "./components/Divider";
|
|
14
|
-
export { Field, type FieldOrientation, type FieldProps, } from "./components/Field";
|
|
15
|
-
export { Icon, type IconProps, type IconType } from "./components/Icon";
|
|
16
|
-
export { Input, type InputProps, type InputType, } from "./components/Input";
|
|
17
|
-
export { Modal, type ModalCloseReason, type ModalProps, } from "./components/Modal";
|
|
18
|
-
export { Popover, type PopoverOpenChangeReason, type PopoverPlacement, type PopoverProps, } from "./components/Popover";
|
|
19
|
-
export { PinInput, type PinInputMode, type PinInputProps, } from "./components/PinInput";
|
|
20
|
-
export { Radio, type RadioProps } from "./components/Radio";
|
|
21
|
-
export { RadioGroup, type RadioGroupOrientation, type RadioGroupProps, } from "./components/RadioGroup";
|
|
22
|
-
export { Select, type CustomSelectProps, type NativeSelectProps, type SelectDisplayOverride, type SelectOption, type SelectProps, } from "./components/Select";
|
|
23
|
-
export { Skeleton, type SkeletonProps, type SkeletonShape, } from "./components/Skeleton";
|
|
24
|
-
export { Spinner, type SpinnerProps } from "./components/Spinner";
|
|
25
|
-
export { Switch, type SwitchProps } from "./components/Switch";
|
|
26
|
-
export { Table, type TableActionCellProps, type TableActionHeaderCellProps, type TableActionProps, type TableBodyProps, type TableCellAlignment, type TableCellProps, type TableCellValue, type TableFootProps, type TableHeaderCellProps, type TableHeadProps, type TableProps, type TableRowProps, } from "./components/Table";
|
|
27
|
-
export { Text, type TextAlignment, type TextProps, type TextSize, type TextTone, type TextWeight, } from "./components/Text";
|
|
28
|
-
export { TextArea, type TextAreaProps, type TextAreaResize, } from "./components/TextArea";
|
|
29
|
-
export { Tooltip, type TooltipPlacement, type TooltipProps, TooltipProvider, type TooltipProviderProps, } from "./components/Tooltip";
|