@homecode/ui 5.18.4 → 5.18.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,7 +1,7 @@
1
1
  import { jsx, Fragment } from 'react/jsx-runtime';
2
- import cn from 'classnames';
3
2
  import React__default, { useMemo } from 'react';
4
3
  import S from './TextShimmer.styl.js';
4
+ import cn from 'classnames';
5
5
 
6
6
  function TextShimmerComponent({ children, as: Component = 'p', className, duration = 1, spread = 3, inverted = false, active = true, }) {
7
7
  const { backgroundGradient } = useMemo(() => {
@@ -9,8 +9,8 @@ function TextShimmerComponent({ children, as: Component = 'p', className, durati
9
9
  // Wide blend stops “vertical knife” artefacts when the ramp only spans few pixels inside the glyph mask.
10
10
  const ridgeHalf = Math.min(49, Math.max(36, raw + 17));
11
11
  // Resolve on the gradient so ancestor --txt-sh-* inherit. --decent-color is the surface.
12
- const fill = 'var(--txt-sh-fill, var(--text-shimmer-decent-tone, var(--accent-color)))';
13
- const highlight = 'var(--txt-sh-highlight, var(--text-shimmer-accent-tone, var(--active-color)))';
12
+ const fill = 'var(--txt-sh-fill, var(--text-shimmer-decent-tone, var(--accent-color-alpha-300)))';
13
+ const highlight = 'var(--txt-sh-highlight, var(--text-shimmer-accent-tone, var(--accent-color)))';
14
14
  const baseColor = inverted ? highlight : fill;
15
15
  const bandColor = inverted ? fill : highlight;
16
16
  const backgroundGradient = `linear-gradient(90deg, ${baseColor} calc(50% - ${ridgeHalf}%), ${bandColor} 50%, ${baseColor} calc(50% + ${ridgeHalf}%))`;
@@ -1,6 +1,6 @@
1
1
  import styleInject from '../../../node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "@property --promptGlowAngle{syntax:\"<angle>\";inherits:true;initial-value:0deg}.ThinkingOutline_root__rvvBG{animation:ThinkingOutline_orbitGlow__3bK-F 3.5s linear infinite;animation-play-state:paused;border-radius:inherit;inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .5s ease-out}.ThinkingOutline_root__rvvBG.ThinkingOutline_interactive__3jMCg{pointer-events:auto}.ThinkingOutline_root__rvvBG.ThinkingOutline_active__-66iV,.ThinkingOutline_root__rvvBG:hover{animation-play-state:running;opacity:1}.ThinkingOutline_root__rvvBG:before{background:conic-gradient(from var(--promptGlowAngle),var(--active-color) 0deg,var(--active-color-alpha-300) 48deg,transparent 80deg,transparent 100deg,var(--active-color-alpha-300) 132deg,var(--active-color) 180deg,var(--active-color-alpha-300) 228deg,transparent 260deg,transparent 280deg,var(--active-color-alpha-300) 312deg,var(--active-color) 1turn);border-radius:inherit;content:\"\";inset:0;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;padding:1.5px;position:absolute}.ThinkingOutline_bloom__XKYD5{border-radius:inherit;filter:blur(20px);inset:0;opacity:.55;position:absolute}.ThinkingOutline_bloom__XKYD5:before{background:conic-gradient(from var(--promptGlowAngle),var(--active-color) 0deg,var(--active-color-alpha-300) 48deg,transparent 80deg,transparent 100deg,var(--active-color-alpha-300) 132deg,var(--active-color) 180deg,var(--active-color-alpha-300) 228deg,transparent 260deg,transparent 280deg,var(--active-color-alpha-300) 312deg,var(--active-color) 1turn);border-radius:inherit;content:\"\";inset:0;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;padding:6px;position:absolute}@media (prefers-reduced-motion:reduce){.ThinkingOutline_root__rvvBG{animation:none}}@keyframes ThinkingOutline_orbitGlow__3bK-F{0%{--promptGlowAngle:-30deg}25%{--promptGlowAngle:30deg}50%{--promptGlowAngle:150deg}75%{--promptGlowAngle:210deg}to{--promptGlowAngle:330deg}}";
3
+ var css_248z = "@property --promptGlowAngle{syntax:\"<angle>\";inherits:true;initial-value:0deg}.ThinkingOutline_root__rvvBG{animation:ThinkingOutline_orbitGlow__3bK-F 3.5s linear infinite;animation-play-state:paused;border-radius:inherit;inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .5s ease-out}.ThinkingOutline_root__rvvBG.ThinkingOutline_interactive__3jMCg{pointer-events:auto}.ThinkingOutline_root__rvvBG.ThinkingOutline_active__-66iV,.ThinkingOutline_root__rvvBG.ThinkingOutline_interactive__3jMCg:hover{animation-play-state:running;opacity:1}.ThinkingOutline_root__rvvBG:before{background:conic-gradient(from var(--promptGlowAngle),var(--active-color) 0deg,var(--active-color-alpha-300) 48deg,transparent 80deg,transparent 100deg,var(--active-color-alpha-300) 132deg,var(--active-color) 180deg,var(--active-color-alpha-300) 228deg,transparent 260deg,transparent 280deg,var(--active-color-alpha-300) 312deg,var(--active-color) 1turn);border-radius:inherit;content:\"\";inset:0;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;padding:1.5px;position:absolute}.ThinkingOutline_bloom__XKYD5{border-radius:inherit;filter:blur(20px);inset:0;opacity:.55;position:absolute}.ThinkingOutline_bloom__XKYD5:before{background:conic-gradient(from var(--promptGlowAngle),var(--active-color) 0deg,var(--active-color-alpha-300) 48deg,transparent 80deg,transparent 100deg,var(--active-color-alpha-300) 132deg,var(--active-color) 180deg,var(--active-color-alpha-300) 228deg,transparent 260deg,transparent 280deg,var(--active-color-alpha-300) 312deg,var(--active-color) 1turn);border-radius:inherit;content:\"\";inset:0;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;padding:6px;position:absolute}@media (prefers-reduced-motion:reduce){.ThinkingOutline_root__rvvBG{animation:none}}@keyframes ThinkingOutline_orbitGlow__3bK-F{0%{--promptGlowAngle:-30deg}25%{--promptGlowAngle:30deg}50%{--promptGlowAngle:150deg}75%{--promptGlowAngle:210deg}to{--promptGlowAngle:330deg}}";
4
4
  var S = {"root":"ThinkingOutline_root__rvvBG","orbitGlow":"ThinkingOutline_orbitGlow__3bK-F","interactive":"ThinkingOutline_interactive__3jMCg","active":"ThinkingOutline_active__-66iV","bloom":"ThinkingOutline_bloom__XKYD5"};
5
5
  styleInject(css_248z);
6
6
 
@@ -1,6 +1,3 @@
1
- export type ThinkingOutlineProps = {
2
- /** When omitted, hover on the outline drives the glow. */
3
- active?: boolean;
4
- className?: string;
5
- };
1
+ import { ThinkingOutlineProps } from './ThinkingOutline.types';
2
+ export type { ThinkingOutlineProps };
6
3
  export declare function ThinkingOutline({ active, className }: ThinkingOutlineProps): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export type ThinkingOutlineProps = {
2
+ active?: boolean;
3
+ className?: string;
4
+ };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@homecode/ui",
3
- "version": "5.18.4",
3
+ "version": "5.18.5",
4
4
  "description": "React UI components library",
5
5
  "scripts": {
6
6
  "tests": "jest",
7
7
  "tests:watch": "jest --watch",
8
8
  "ts": "tsc --noUnusedLocals",
9
- "dev": "NODE_OPTIONS='--loader ts-node/esm' NODE_ENV=development webpack-dev-server --mode=development --config ./src/docs/config/webpack.config.js --progress",
9
+ "dev": "vite --config ./src/docs/config/vite.config.ts",
10
10
  "build": "rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript",
11
11
  "build:compress": "COMPRESS=true yarn build",
12
12
  "release": "standard-version",
@@ -15,7 +15,7 @@
15
15
  "release:major": "yarn release -- --release-as major",
16
16
  "release:as": "yarn release -- --release-as",
17
17
  "docs:types": "node bin/parseTypes.js",
18
- "docs:build": "yarn docs:types && NODE_OPTIONS='--loader ts-node/esm' NODE_ENV=production webpack --mode=production --config ./src/docs/config/webpack.config.js --progress",
18
+ "docs:build": "yarn docs:types && vite build --config ./src/docs/config/vite.config.ts",
19
19
  "docs:deploy": "./bin/deploy",
20
20
  "docs": "yarn docs:build && yarn docs:deploy"
21
21
  },
@@ -43,14 +43,13 @@
43
43
  "type": "module",
44
44
  "exports": {
45
45
  ".": {
46
+ "types": "./dist/esm/types/index.d.ts",
46
47
  "import": "./dist/esm/index.js",
47
- "require": "./dist/esm/index.js",
48
- "default": "./dist/esm/index.js",
49
- "types": "./dist/esm/types/index.d.ts"
48
+ "default": "./dist/esm/index.js"
50
49
  },
51
50
  "./icons": {
52
- "import": "./dist/esm/src/components/Icon/icons/index.js",
53
- "types": "./dist/esm/types/src/components/Icon/icons/index.d.ts"
51
+ "types": "./dist/esm/types/src/components/Icon/icons/index.d.ts",
52
+ "import": "./dist/esm/src/components/Icon/icons/index.js"
54
53
  }
55
54
  },
56
55
  "bugs": {
@@ -61,9 +60,7 @@
61
60
  },
62
61
  "dependencies": {
63
62
  "@homecode/ui": "^4.17.2",
64
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
65
63
  "@rollup/plugin-typescript": "^11.0.0",
66
- "@svgr/webpack": "^8.1.0",
67
64
  "@tiptap/core": "^3.22.1",
68
65
  "@tiptap/extension-mention": "^3.22.1",
69
66
  "@tiptap/extensions": "^3.22.1",
@@ -75,14 +72,12 @@
75
72
  "compareq": "^1.2.2",
76
73
  "fastest-validator": "^1.16.0",
77
74
  "favicons": "^7.1.3",
78
- "favicons-webpack-plugin": "^6.0.0",
79
75
  "justorm": "^3.0.2",
80
76
  "lucide-react": "^1.43.0",
81
77
  "moment": "^2.29.4",
82
78
  "react": "^18.2.0",
83
79
  "react-dom": "^18.2.0",
84
80
  "react-live": "^3.1.2",
85
- "react-refresh": "^0.14.0",
86
81
  "roddeh-i18n": "^1.2.1",
87
82
  "rollup-plugin-postcss": "^4.0.2",
88
83
  "rollup-plugin-uglify": "^6.0.4",
@@ -96,8 +91,6 @@
96
91
  },
97
92
  "devDependencies": {
98
93
  "@babel/core": "^7.20.12",
99
- "@babel/plugin-proposal-optional-chaining": "^7.20.7",
100
- "@babel/preset-typescript": "^7.21.0",
101
94
  "@codesandbox/sandpack-react": "^2.0.6",
102
95
  "@rollup/plugin-commonjs": "^24.0.1",
103
96
  "@rollup/plugin-json": "^6.0.0",
@@ -111,25 +104,14 @@
111
104
  "@types/node": "^18.14.0",
112
105
  "@types/react": "^18.3.20",
113
106
  "@types/react-dom": "^18.3.5",
107
+ "@vitejs/plugin-react-swc": "^3.11.0",
114
108
  "babel-jest": "^29.7.0",
115
- "babel-loader": "8",
116
- "babel-preset-react-app": "^10.0.1",
117
- "clean-webpack-plugin": "^4.0.0",
118
- "copy-webpack-plugin": "^11.0.0",
119
- "css-loader": "^6.7.3",
120
- "css-modules-typescript-loader": "^4.0.1",
121
- "file-loader": "^6.2.0",
122
109
  "fs": "^0.0.2",
123
- "html-webpack-partials-plugin": "^0.8.0",
124
- "html-webpack-plugin": "^5.5.0",
125
110
  "identity-obj-proxy": "^3.0.0",
126
111
  "jest": "^29.7.0",
127
112
  "jest-environment-jsdom": "^29.7.0",
128
- "mini-css-extract-plugin": "^2.7.2",
129
- "postcss-loader": "^7.0.2",
130
113
  "postcss-preset-env": "^8.0.1",
131
114
  "raw-loader": "^4.0.2",
132
- "react-hot-loader": "^4.13.1",
133
115
  "replace": "^1.2.2",
134
116
  "rollup": "^3.17.1",
135
117
  "rollup-plugin-delete": "^2.0.0",
@@ -138,17 +120,12 @@
138
120
  "rollup-plugin-styles": "^4.0.0",
139
121
  "rollup-plugin-typescript2": "^0.34.1",
140
122
  "standard-version": "^9.5.0",
141
- "style-loader": "^3.3.1",
142
123
  "stylus": "^0.59.0",
143
- "stylus-loader": "^7.1.0",
144
124
  "ts-jest": "^29.2.5",
145
- "ts-node": "^10.9.1",
146
125
  "ts-to-json": "^1.22.11",
147
126
  "typescript": "^4.9.5",
148
- "webpack": "^5.75.0",
149
- "webpack-cli": "^5.0.1",
150
- "webpack-dev-server": "^4.11.1",
151
- "webpack-merge": "^5.8.0"
127
+ "vite": "^6.4.3",
128
+ "vite-plugin-svgr": "^4.5.0"
152
129
  },
153
130
  "resolutions": {
154
131
  "@types/react": "^18.3.20"