@djangocfg/ui-core 2.1.666 → 2.1.668

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 CHANGED
@@ -304,3 +304,22 @@ After any change to components or hooks — update this README and bump the pack
304
304
  ## License
305
305
 
306
306
  MIT — © djangocfg.
307
+
308
+
309
+ ### Narrow component and hook imports
310
+
311
+ The existing root, components and hooks imports remain supported. For live
312
+ ESM development clients (especially remote Storybook), import only the needed
313
+ leaf when available. The leaf exports reference the same source modules as
314
+ the convenience barrels, not a second provider or prebuilt copy:
315
+
316
+ import { Button } from '@djangocfg/ui-core/components/button';
317
+ import { Input } from '@djangocfg/ui-core/components/input';
318
+ import { Label } from '@djangocfg/ui-core/components/label';
319
+ import { TooltipProvider } from '@djangocfg/ui-core/components/tooltip';
320
+ import { syncDisplayModeAttribute } from '@djangocfg/ui-core/hooks/display-mode';
321
+ import { useImageLoader } from '@djangocfg/ui-core/hooks/image-loader';
322
+
323
+ These source entry points are part of this workspace revision; consumers
324
+ of separately published package versions must use the exports of their
325
+ installed version. No package publication is implied by the workspace change.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/ui-core",
3
- "version": "2.1.666",
3
+ "version": "2.1.668",
4
4
  "description": "Pure React UI component library without Next.js dependencies - for Electron, Vite, CRA apps",
5
5
  "keywords": [
6
6
  "ui-components",
@@ -125,7 +125,37 @@
125
125
  "./styles/presets/soft": "./src/styles/css/presets/soft.css",
126
126
  "./styles/presets/dense": "./src/styles/css/presets/dense.css",
127
127
  "./styles/presets/high-contrast": "./src/styles/css/presets/high-contrast.css",
128
- "./styles/presets/notion": "./src/styles/css/presets/notion.css"
128
+ "./styles/presets/notion": "./src/styles/css/presets/notion.css",
129
+ "./components/button": {
130
+ "types": "./src/components/forms/button/index.tsx",
131
+ "import": "./src/components/forms/button/index.tsx",
132
+ "require": "./src/components/forms/button/index.tsx"
133
+ },
134
+ "./components/input": {
135
+ "types": "./src/components/forms/input/index.tsx",
136
+ "import": "./src/components/forms/input/index.tsx",
137
+ "require": "./src/components/forms/input/index.tsx"
138
+ },
139
+ "./components/label": {
140
+ "types": "./src/components/forms/label/index.tsx",
141
+ "import": "./src/components/forms/label/index.tsx",
142
+ "require": "./src/components/forms/label/index.tsx"
143
+ },
144
+ "./components/tooltip": {
145
+ "types": "./src/components/overlay/tooltip/index.tsx",
146
+ "import": "./src/components/overlay/tooltip/index.tsx",
147
+ "require": "./src/components/overlay/tooltip/index.tsx"
148
+ },
149
+ "./hooks/display-mode": {
150
+ "types": "./src/hooks/media/displayMode.ts",
151
+ "import": "./src/hooks/media/displayMode.ts",
152
+ "require": "./src/hooks/media/displayMode.ts"
153
+ },
154
+ "./hooks/image-loader": {
155
+ "types": "./src/hooks/dom/useImageLoader.ts",
156
+ "import": "./src/hooks/dom/useImageLoader.ts",
157
+ "require": "./src/hooks/dom/useImageLoader.ts"
158
+ }
129
159
  },
130
160
  "files": [
131
161
  "dist",
@@ -144,8 +174,8 @@
144
174
  "check:docs": "node scripts/check-docs.mjs"
145
175
  },
146
176
  "peerDependencies": {
147
- "@djangocfg/api": "^2.1.666",
148
- "@djangocfg/i18n": "^2.1.666",
177
+ "@djangocfg/api": "^2.1.668",
178
+ "@djangocfg/i18n": "^2.1.668",
149
179
  "consola": "^3.4.2",
150
180
  "lucide-react": "^1.68.0",
151
181
  "moment": "^2.30.1",
@@ -220,10 +250,10 @@
220
250
  "vaul": "1.1.2"
221
251
  },
222
252
  "devDependencies": {
223
- "@djangocfg/api": "^2.1.666",
224
- "@djangocfg/eslint-config": "^2.1.666",
225
- "@djangocfg/i18n": "^2.1.666",
226
- "@djangocfg/typescript-config": "^2.1.666",
253
+ "@djangocfg/api": "^2.1.668",
254
+ "@djangocfg/eslint-config": "^2.1.668",
255
+ "@djangocfg/i18n": "^2.1.668",
256
+ "@djangocfg/typescript-config": "^2.1.668",
227
257
  "@storybook/react-vite": "^10.6.5",
228
258
  "@types/node": "^24.13.3",
229
259
  "@types/react": "19.3.0",
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
 
3
- import { useStoredValue, type StorageType, type UseStoredValueOptions } from '../../../hooks';
3
+ import { useStoredValue, type StorageType, type UseStoredValueOptions } from '../../../hooks/storage/useStoredValue';
4
4
  import { cn } from '../../../lib/utils';
5
5
  import { fieldSizeClass, type FieldControlSize } from '../control-size';
6
6
 
@@ -11,7 +11,7 @@ import {
11
11
  AlertDialogHeader,
12
12
  AlertDialogTitle,
13
13
  } from '../../../components/overlay/alert-dialog';
14
- import { useHotkey } from '../../../hooks';
14
+ import { useHotkey } from '../../../hooks/hotkey/useHotkey';
15
15
  import { I18N_KEYS } from '../constants';
16
16
  import type { DialogOptions } from '../types';
17
17
 
@@ -13,7 +13,7 @@ import {
13
13
  AlertDialogTitle,
14
14
  } from '../../../components/overlay/alert-dialog';
15
15
  import { buttonVariants } from '../../../components/forms/button';
16
- import { useHotkey } from '../../../hooks';
16
+ import { useHotkey } from '../../../hooks/hotkey/useHotkey';
17
17
  import { cn } from '../../utils';
18
18
  import { I18N_KEYS } from '../constants';
19
19
  import type { DialogOptions } from '../types';
@@ -12,7 +12,7 @@ import {
12
12
  } from '../../../components/overlay/dialog';
13
13
  import { Button } from '../../../components/forms/button';
14
14
  import { Input } from '../../../components/forms/input';
15
- import { useHotkey } from '../../../hooks';
15
+ import { useHotkey } from '../../../hooks/hotkey/useHotkey';
16
16
  import { I18N_KEYS } from '../constants';
17
17
  import type { DialogOptions } from '../types';
18
18
 
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2013-2014 Rico Sta. Cruz
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -3,3 +3,6 @@ the 0.994 cap, fill-then-fade on done) is derived from nprogress 0.2.0.
3
3
 
4
4
  nprogress, Copyright (c) 2013-2014 Rico Sta. Cruz. MIT License.
5
5
  https://github.com/rstacruz/nprogress
6
+
7
+ The full upstream MIT copyright and permission notice for version 0.2.0
8
+ is retained in LICENSE.nprogress.md in this directory.