@assure-one/design-system 1.35.0 → 1.36.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 +52 -0
- package/codemods/README.md +102 -12
- package/codemods/lib/registry.mjs +3 -0
- package/codemods/transforms/cm-07-input-size.mjs +104 -0
- package/codemods/transforms/cm-08-search-select-to-combobox.mjs +236 -0
- package/codemods/transforms/cm-10-date-picker-value-change.mjs +416 -0
- package/codemods/transforms/cm-14-hidden-mirrors.mjs +2 -2
- package/dist/css/components.css +1 -1
- package/dist/design-system-provider-cPUklDJv.d.ts +220 -0
- package/dist/icons/index.d.ts +2 -2
- package/dist/{index-B3OiMlQv.d.ts → index-CQwzTm0v.d.ts} +1 -1
- package/dist/index.d.ts +2011 -399
- package/dist/index.js +8859 -5262
- package/dist/index.js.map +1 -1
- package/dist/next/index.d.ts +20 -0
- package/dist/next/index.js +16 -0
- package/dist/next/index.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/{system-lyhOUTpa.d.ts → system-BDU18fVg.d.ts} +1 -1
- package/dist/testing/index.cjs +133 -11
- package/dist/testing/index.d.cts +98 -2
- package/dist/testing/index.d.ts +98 -2
- package/dist/testing/index.js +132 -12
- package/dist/tokens/index.d.ts +1 -1
- package/docs/components.md +601 -0
- package/docs/components.registry.json +1586 -0
- package/docs/for-ai-agents.md +153 -0
- package/package.json +15 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { D as DesignSystemProviderProps } from '../design-system-provider-cPUklDJv.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Props of `NextDesignSystemProvider`: everything `DesignSystemProvider`
|
|
7
|
+
* accepts except the two adapters it fills in.
|
|
8
|
+
*
|
|
9
|
+
* @experimental
|
|
10
|
+
*/
|
|
11
|
+
type NextDesignSystemProviderProps = Omit<DesignSystemProviderProps, "linkComponent" | "imageComponent">;
|
|
12
|
+
/**
|
|
13
|
+
* `DesignSystemProvider` preconfigured for Next.js (W5-21): `next/link` renders
|
|
14
|
+
* `LinkButton` and the `Logo` lockup, `next/image` the `Logo` wordmark.
|
|
15
|
+
*
|
|
16
|
+
* @experimental
|
|
17
|
+
*/
|
|
18
|
+
declare function NextDesignSystemProvider(props: NextDesignSystemProviderProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
export { NextDesignSystemProvider, type NextDesignSystemProviderProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import NextImage from 'next/image';
|
|
3
|
+
import NextLink from 'next/link';
|
|
4
|
+
import { DesignSystemProvider } from '@assure-one/design-system';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
// src/next/provider.tsx
|
|
8
|
+
var nextLink = NextLink;
|
|
9
|
+
var nextImage = NextImage;
|
|
10
|
+
function NextDesignSystemProvider(props) {
|
|
11
|
+
return /* @__PURE__ */ jsx(DesignSystemProvider, { ...props, linkComponent: nextLink, imageComponent: nextImage });
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { NextDesignSystemProvider };
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/next/provider.tsx"],"names":[],"mappings":";;;;;;AAwBA,IAAM,QAAA,GAAW,QAAA;AACjB,IAAM,SAAA,GAAY,SAAA;AAQX,SAAS,yBAAyB,KAAA,EAAsC;AAC7E,EAAA,2BAAQ,oBAAA,EAAA,EAAsB,GAAG,OAAO,aAAA,EAAe,QAAA,EAAU,gBAAgB,SAAA,EAAW,CAAA;AAC9F","file":"index.js","sourcesContent":["\"use client\";\n\nimport NextImage from \"next/image\";\nimport NextLink from \"next/link\";\n\nimport {\n DesignSystemProvider,\n type DesignSystemProviderProps,\n} from \"../foundation/provider/design-system-provider\";\nimport type { ImageComponent, LinkComponent } from \"../foundation/provider/link\";\n\n/**\n * Props of `NextDesignSystemProvider`: everything `DesignSystemProvider`\n * accepts except the two adapters it fills in.\n *\n * @experimental\n */\nexport type NextDesignSystemProviderProps = Omit<\n DesignSystemProviderProps,\n \"linkComponent\" | \"imageComponent\"\n>;\n\n// `next/link` accepts `href: string | UrlObject` and `next/image` a wider\n// `src`; both are supersets of the adapter contracts, so the casts only narrow.\nconst nextLink = NextLink as unknown as LinkComponent;\nconst nextImage = NextImage as unknown as ImageComponent;\n\n/**\n * `DesignSystemProvider` preconfigured for Next.js (W5-21): `next/link` renders\n * `LinkButton` and the `Logo` lockup, `next/image` the `Logo` wordmark.\n *\n * @experimental\n */\nexport function NextDesignSystemProvider(props: NextDesignSystemProviderProps) {\n return <DesignSystemProvider {...props} linkComponent={nextLink} imageComponent={nextImage} />;\n}\n"]}
|