@ds-gn/ui 0.6.2 → 0.8.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/README.md +21 -3
- package/custom-elements.json +202 -31
- package/dist/components/Background/src/Background.js +1 -13
- package/dist/components/Container/src/Container.d.ts +10 -5
- package/dist/components/Container/src/Container.js +85 -67
- package/dist/components/Container/src/Container.props.d.ts +19 -1
- package/dist/components/Container/src/Container.props.js +9 -4
- package/dist/components/Container/src/Container.styles.d.ts +9 -2
- package/dist/components/FeatureTabs/src/FeatureTabs.d.ts +14 -0
- package/dist/components/FeatureTabs/src/FeatureTabs.js +27 -43
- package/dist/components/FeatureTabs/src/FeatureTabs.styles.d.ts +1 -1
- package/dist/components/Footer/src/Footer.d.ts +5 -9
- package/dist/components/Footer/src/Footer.js +10 -12
- package/dist/components/Heading/src/Heading.js +1 -13
- package/dist/components/Hero/src/Hero.d.ts +5 -0
- package/dist/components/Hero/src/Hero.js +31 -5
- package/dist/components/Hero/src/Hero.styles.d.ts +1 -0
- package/dist/components/Modal/src/Modal.d.ts +4 -1
- package/dist/components/Modal/src/Modal.js +49 -264
- package/dist/components/Modal/src/Modal.props.d.ts +3 -0
- package/dist/components/Modal/src/Modal.props.js +9 -0
- package/dist/components/Modal/src/Modal.styles.d.ts +3 -7
- package/dist/components/Nav/src/Nav.js +2 -9
- package/dist/styles/hero-fallback.css +503 -0
- package/dist/styles/layout-fallback.css +168 -0
- package/package.json +11 -7
- package/dist/common/helpers/motion.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ds-gn/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "UI components for the DS-GN Design System",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -283,7 +283,9 @@
|
|
|
283
283
|
"import": "./dist/playground-manifest.js",
|
|
284
284
|
"default": "./dist/playground-manifest.js"
|
|
285
285
|
},
|
|
286
|
-
"./package.json": "./package.json"
|
|
286
|
+
"./package.json": "./package.json",
|
|
287
|
+
"./hero/fallback.css": "./dist/styles/hero-fallback.css",
|
|
288
|
+
"./layout.css": "./dist/styles/layout-fallback.css"
|
|
287
289
|
},
|
|
288
290
|
"files": [
|
|
289
291
|
"dist/**/*",
|
|
@@ -296,7 +298,8 @@
|
|
|
296
298
|
],
|
|
297
299
|
"sideEffects": [
|
|
298
300
|
"components/*/src/*.ts",
|
|
299
|
-
"dist/components/*/src/*.js"
|
|
301
|
+
"dist/components/*/src/*.js",
|
|
302
|
+
"dist/**/*.css"
|
|
300
303
|
],
|
|
301
304
|
"scripts": {
|
|
302
305
|
"generate:icons": "bun build/generate-icons.ts",
|
|
@@ -305,11 +308,11 @@
|
|
|
305
308
|
"generate:playground": "bun build/generate-playground-manifest.ts",
|
|
306
309
|
"check:playground-manifest": "bun build/generate-playground-manifest.ts --check",
|
|
307
310
|
"generate:react": "bun run generate:cem && bun run generate:playground && bun build/generate-react.ts",
|
|
308
|
-
"build": "bun run --cwd ../tokens build && bun build/build-all-components.ts",
|
|
311
|
+
"build": "bun run --cwd ../tokens build && bun run --cwd ../motion build && bun build/build-all-components.ts",
|
|
309
312
|
"build:css": "bun run --cwd ../tokens build && bun build/generate-component-css.ts",
|
|
310
313
|
"test": "bun run build && bun test --conditions=browser",
|
|
311
|
-
"build:dev": "bun run --cwd ../tokens build && cross-env NODE_ENV=development bun build/build-all-components.ts",
|
|
312
|
-
"build:prod": "bun run --cwd ../tokens build && cross-env NODE_ENV=production bun build/build-all-components.ts",
|
|
314
|
+
"build:dev": "bun run --cwd ../tokens build && bun run --cwd ../motion build && cross-env NODE_ENV=development bun build/build-all-components.ts",
|
|
315
|
+
"build:prod": "bun run --cwd ../tokens build && bun run --cwd ../motion build && cross-env NODE_ENV=production bun build/build-all-components.ts",
|
|
313
316
|
"watch": "cross-env NODE_ENV=development bun build/watch.ts",
|
|
314
317
|
"update:hash": "bun build/update-package-hash.ts"
|
|
315
318
|
},
|
|
@@ -343,7 +346,8 @@
|
|
|
343
346
|
"react-dom": "19.2.4"
|
|
344
347
|
},
|
|
345
348
|
"dependencies": {
|
|
346
|
-
"@ds-gn/
|
|
349
|
+
"@ds-gn/motion": "0.8.0",
|
|
350
|
+
"@ds-gn/tokens": "0.8.0",
|
|
347
351
|
"@lit-labs/observers": "^2.0.5",
|
|
348
352
|
"@lit/react": "^1.0.7",
|
|
349
353
|
"clsx": "^2.1.1"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Whether the user has requested reduced motion via the OS/browser setting.
|
|
3
|
-
*
|
|
4
|
-
* Used as a gate for auto-animating controllers (e.g. AutoRotateController,
|
|
5
|
-
* WordCycleController) so motion respects `prefers-reduced-motion: reduce`.
|
|
6
|
-
* Guarded for environments without `matchMedia` (SSR, test DOMs), where it
|
|
7
|
-
* reports `false` (motion allowed) rather than throwing.
|
|
8
|
-
*/
|
|
9
|
-
export declare function prefersReducedMotion(): boolean;
|