@elcrm/form 0.0.65 → 0.0.67
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/README.md +4 -2
- package/dist/package.js +7 -2
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -12,8 +12,10 @@ npm install @elcrm/form
|
|
|
12
12
|
|
|
13
13
|
## Стили и темы
|
|
14
14
|
|
|
15
|
-
-
|
|
16
|
-
-
|
|
15
|
+
- **Базовые стили полей** (Field / Form / Select) подключаются **сами** при импорте из **корня** пакета: `import { … } from "@elcrm/form"` — отдельный **`import "@elcrm/form/style.css"`** не обязателен.
|
|
16
|
+
- Если используете **только подпути** (`@elcrm/form/fields/Date` и т.д.) без входа с корня — один раз подключите **`@elcrm/form/style.css`** в приложении.
|
|
17
|
+
- **Темы** (светлая / тёмная): **`@elcrm/form/light.css`**, **`@elcrm/form/dark.css`** — атрибут **`data-theme`** на контейнере (подключаются вручную).
|
|
18
|
+
- Склеенный CSS модулей: **`@elcrm/form/style.css`** (дубликат того, что тянет корневой импорт).
|
|
17
19
|
|
|
18
20
|
## Быстрый старт
|
|
19
21
|
|
package/dist/package.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var e = {
|
|
2
2
|
name: "@elcrm/form",
|
|
3
|
-
version: "0.0.
|
|
3
|
+
version: "0.0.67",
|
|
4
4
|
description: "React-компоненты полей формы и хук useForm для elCRM: текст, даты, маски, деньги, селект, связка с формой по имени поля (tree-shakeable ESM).",
|
|
5
5
|
type: "module",
|
|
6
6
|
author: "MaSkal <dev@elcrm.online>",
|
|
@@ -11,6 +11,11 @@ var e = {
|
|
|
11
11
|
"form",
|
|
12
12
|
"react"
|
|
13
13
|
],
|
|
14
|
+
sideEffects: [
|
|
15
|
+
"**/*.css",
|
|
16
|
+
"**/*.scss",
|
|
17
|
+
"**/*.module.scss"
|
|
18
|
+
],
|
|
14
19
|
main: "./dist/index.umd.js",
|
|
15
20
|
module: "./dist/index.js",
|
|
16
21
|
types: "./dist/index.d.ts",
|
|
@@ -67,7 +72,7 @@ var e = {
|
|
|
67
72
|
},
|
|
68
73
|
scripts: {
|
|
69
74
|
dev: "vite --config test/vite.config.ts",
|
|
70
|
-
build: "vite build && node scripts/merge-dist-css.mjs && vite build --config vite.umd.config.ts",
|
|
75
|
+
build: "vite build && node scripts/merge-dist-css.mjs && node scripts/inject-style-import.mjs && vite build --config vite.umd.config.ts",
|
|
71
76
|
test: "vitest run",
|
|
72
77
|
"test:watch": "vitest",
|
|
73
78
|
"test:build": "vite build --config test/vite.config.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elcrm/form",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.67",
|
|
4
4
|
"description": "React-компоненты полей формы и хук useForm для elCRM: текст, даты, маски, деньги, селект, связка с формой по имени поля (tree-shakeable ESM).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "MaSkal <dev@elcrm.online>",
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
"form",
|
|
15
15
|
"react"
|
|
16
16
|
],
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"**/*.css",
|
|
19
|
+
"**/*.scss",
|
|
20
|
+
"**/*.module.scss"
|
|
21
|
+
],
|
|
17
22
|
"main": "./dist/index.umd.js",
|
|
18
23
|
"module": "./dist/index.js",
|
|
19
24
|
"types": "./dist/index.d.ts",
|
|
@@ -70,7 +75,7 @@
|
|
|
70
75
|
},
|
|
71
76
|
"scripts": {
|
|
72
77
|
"dev": "vite --config test/vite.config.ts",
|
|
73
|
-
"build": "vite build && node scripts/merge-dist-css.mjs && vite build --config vite.umd.config.ts",
|
|
78
|
+
"build": "vite build && node scripts/merge-dist-css.mjs && node scripts/inject-style-import.mjs && vite build --config vite.umd.config.ts",
|
|
74
79
|
"test": "vitest run",
|
|
75
80
|
"test:watch": "vitest",
|
|
76
81
|
"test:build": "vite build --config test/vite.config.ts",
|