@patterninc/pattern-ui 0.0.0-main.202610232008.a9b8b82bd7a4 → 0.0.0-main.202610232103.2cb6e31ce186
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/dist/play-cdn-claude.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const NPM_CDN = "https://cdn.jsdelivr.net/npm/";
|
|
3
3
|
const SHARED = /^(@patterninc\/pattern-ui\/|(react|react-dom|@lingui\/core|@lingui\/react|sucrase)(\/|$))/;
|
|
4
4
|
const scriptUrl = document.currentScript instanceof HTMLScriptElement ? document.currentScript.src : "";
|
|
5
|
-
const packageUrl = new URL("../", scriptUrl || location.href).href.replace(/\/@patterninc\/pattern-ui(@[^/]*)?\//, `/@patterninc/pattern-ui@0.0.0-main.
|
|
5
|
+
const packageUrl = new URL("../", scriptUrl || location.href).href.replace(/\/@patterninc\/pattern-ui(@[^/]*)?\//, `/@patterninc/pattern-ui@0.0.0-main.202610232103.2cb6e31ce186/`);
|
|
6
6
|
const browserUrl = `${packageUrl}dist/browser/`;
|
|
7
7
|
globalThis.patternPlayCdnUrl = (specifier) => {
|
|
8
8
|
if (specifier.endsWith(".css")) return `${browserUrl}${specifier}`;
|
package/examples/README.md
CHANGED
|
@@ -9,6 +9,10 @@ To do so, copy [`static-artifact.html`](static-artifact.html). Put whatever code
|
|
|
9
9
|
care of converting the TypeScript to JavaScript, the JSX transform, and generating the Tailwind CSS
|
|
10
10
|
you need.
|
|
11
11
|
|
|
12
|
+
Refer to the
|
|
13
|
+
[`pattern-ui-decisions`](https://github.com/patterninc/skills/blob/main/plugins/frontend/skills/pattern-ui-decisions/SKILL.md)
|
|
14
|
+
skill for guidance on which `@patterninc/pattern-ui` components to use and how to use them.
|
|
15
|
+
|
|
12
16
|
Building a Claude artifact? Use `play-cdn-claude.js` instead. See
|
|
13
17
|
[Claude artifacts](#claude-artifacts).
|
|
14
18
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from 'cn'
|
|
2
|
-
import {
|
|
2
|
+
import { type MotionValue, motion, motionValue, useTransform } from 'motion/react'
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
|
|
5
5
|
import { NumberFlow } from '../../lib/utils/NumberFlow'
|
|
@@ -4,7 +4,7 @@ import * as React from 'react'
|
|
|
4
4
|
import type { RestrictedIconProps } from '../../lib/utils/icon-helpers'
|
|
5
5
|
import { Tooltip, TooltipContent, TooltipTrigger } from '../Tooltip/Tooltip'
|
|
6
6
|
import { Radio, type RadioProps } from './Radio'
|
|
7
|
-
import {
|
|
7
|
+
import { type RadioFieldSize, useRadioFieldContext } from './radio-field-context'
|
|
8
8
|
|
|
9
9
|
export type RadioControlSize = RadioFieldSize
|
|
10
10
|
|