@rockshin/tao-ui 0.0.4 → 0.0.5

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,5 @@
1
1
  [data-tao-input] {
2
+ width: 100%;
2
3
  font-family: var(--tao-font-family);
3
4
  align-items: center;
4
5
  display: flex;
@@ -8,10 +8,11 @@
8
8
  }
9
9
 
10
10
  [data-tao-textarea][data-tao-size="small"] textarea {
11
- padding: var(--tao-padding-xs) var(--tao-padding-xs);
11
+ padding-inline: var(--tao-padding-xs);
12
+ padding-block: calc((var(--tao-control-height-sm) - var(--tao-font-size-sm) * var(--tao-line-height-sm)) / 2 - 1px);
12
13
  font-size: var(--tao-font-size-sm);
13
14
  line-height: var(--tao-line-height-sm);
14
- min-height: calc(1lh + 2 * var(--tao-padding-xs));
15
+ min-height: var(--tao-control-height-sm);
15
16
  }
16
17
 
17
18
  [data-tao-textarea][data-tao-size="medium"] {
@@ -19,10 +20,11 @@
19
20
  }
20
21
 
21
22
  [data-tao-textarea][data-tao-size="medium"] textarea {
22
- padding: var(--tao-padding-xs) var(--tao-padding-sm);
23
+ padding-inline: var(--tao-padding-sm);
24
+ padding-block: calc((var(--tao-control-height) - var(--tao-font-size-base) * var(--tao-line-height)) / 2 - 1px);
23
25
  font-size: var(--tao-font-size-base);
24
26
  line-height: var(--tao-line-height);
25
- min-height: calc(3lh + 2 * var(--tao-padding-xs));
27
+ min-height: var(--tao-control-height);
26
28
  }
27
29
 
28
30
  [data-tao-textarea][data-tao-size="large"] {
@@ -30,10 +32,11 @@
30
32
  }
31
33
 
32
34
  [data-tao-textarea][data-tao-size="large"] textarea {
33
- padding: var(--tao-padding-sm) var(--tao-padding-sm);
35
+ padding-inline: var(--tao-padding-sm);
36
+ padding-block: calc((var(--tao-control-height-lg) - var(--tao-font-size-lg) * var(--tao-line-height-lg)) / 2 - 1px);
34
37
  font-size: var(--tao-font-size-lg);
35
38
  line-height: var(--tao-line-height-lg);
36
- min-height: calc(3lh + 2 * var(--tao-padding-sm));
39
+ min-height: var(--tao-control-height-lg);
37
40
  }
38
41
 
39
42
  [data-tao-textarea][data-tao-variant="borderless"] {
package/llms.txt CHANGED
@@ -9,7 +9,7 @@ npm install @rockshin/tao-ui
9
9
  ```
10
10
 
11
11
  Peer dependencies: `react >=19`, `react-dom >=19`, `dayjs >=1.11` (only needed for `DatePicker`/`RangePicker`).
12
- Module format: ESM only. Types and CSS ship alongside the JS; component CSS is imported as a side effect, so keep tree-shaking aware of CSS (`sideEffects` is declared in package.json).
12
+ Module format: ESM only. Types and CSS ship alongside the JS. **No manual CSS import required** — the package entry (`dist/index.js`) imports design tokens (`--tao-*`) and shared control states on load. This is preserved end-to-end via a `sideEffects` whitelist (`["**/*.css", "./dist/index.js", "./src/index.tsx"]`) so tree-shakers keep the CSS side effects while still eliminating unused component exports at the export granularity.
13
13
 
14
14
  ## Core concepts
15
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rockshin/tao-ui",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "description": "A modern React 19 component library with semantic DOM customization and OKLCH-based theming.",
6
6
  "keywords": [
@@ -21,7 +21,9 @@
21
21
  "homepage": "https://github.com/rickyshin93/tao-ui#readme",
22
22
  "bugs": "https://github.com/rickyshin93/tao-ui/issues",
23
23
  "sideEffects": [
24
- "**/*.css"
24
+ "**/*.css",
25
+ "./dist/index.js",
26
+ "./src/index.tsx"
25
27
  ],
26
28
  "exports": {
27
29
  ".": {
@@ -52,7 +54,7 @@
52
54
  "@rsbuild/core": "^2.0.11",
53
55
  "@rsbuild/plugin-babel": "^1.2.1",
54
56
  "@rsbuild/plugin-react": "^2.0.1",
55
- "@rslib/core": "^0.22.0",
57
+ "@rslib/core": "^0.23.1",
56
58
  "@rspress/core": "^2.0.13",
57
59
  "@rspress/plugin-api-docgen": "^2.0.13",
58
60
  "@rspress/plugin-preview": "^2.0.13",