@medusajs/ui 4.0.6-snapshot-20250221164338 → 4.0.6
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 +1 @@
|
|
1
|
-
{"version":3,"file":"inline-tip.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-tip/inline-tip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,UAAU,cAAe,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACpE;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;CACnD;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,
|
1
|
+
{"version":3,"file":"inline-tip.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-tip/inline-tip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,UAAU,cAAe,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACpE;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;CACnD;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,uFAiCrB,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"inline-tip.js","sourceRoot":"","sources":["../../../../src/components/inline-tip/inline-tip.tsx"],"names":[],"mappings":";;;;AAAA,qCAAiC;AACjC,qDAA8B;AAc9B;;GAEG;AACU,QAAA,SAAS,GAAG,KAAK,CAAC,UAAU,CACvC,
|
1
|
+
{"version":3,"file":"inline-tip.js","sourceRoot":"","sources":["../../../../src/components/inline-tip/inline-tip.tsx"],"names":[],"mappings":";;;;AAAA,qCAAiC;AACjC,qDAA8B;AAc9B;;GAEG;AACU,QAAA,SAAS,GAAG,KAAK,CAAC,UAAU,CACvC,CACE,EACE,OAAO,GAAG,MAAM,EAChB,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACO,EAAE,GAAG,EAAE,EAAE;IAC1B,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,SAAG,EACZ,iHAAiH,EACjH,SAAS,CACV,KACG,KAAK;QAET,6BACE,IAAI,EAAC,cAAc,EACnB,SAAS,EAAE,IAAA,SAAG,EAAC,gDAAgD,EAAE;gBAC/D,uBAAuB,EAAE,OAAO,KAAK,SAAS;gBAC9C,oBAAoB,EAAE,OAAO,KAAK,OAAO;gBACzC,sBAAsB,EAAE,OAAO,KAAK,SAAS;aAC9C,CAAC,GACF;QACF,6BAAK,SAAS,EAAC,aAAa;YAC1B,gCAAQ,SAAS,EAAC,gCAAgC;gBAAE,KAAK;oBAAW;YAAC,GAAG;YACvE,QAAQ,CACL,CACF,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,iBAAS,CAAC,WAAW,GAAG,WAAW,CAAA","sourcesContent":["import { clx } from \"@/utils/clx\"\nimport * as React from \"react\"\n\ninterface InlineTipProps extends React.ComponentPropsWithoutRef<\"div\"> {\n /**\n * The label to display in the tip.\n */\n label: string\n /**\n * The variant of the tip.\n * @default \"info\"\n */\n variant?: \"info\" | \"warning\" | \"error\" | \"success\"\n}\n\n/**\n * This component is based on the `div` element and supports all of its props.\n */\nexport const InlineTip = React.forwardRef<HTMLDivElement, InlineTipProps>(\n (\n { \n variant = \"info\", \n label, \n className, \n children, \n ...props\n }: InlineTipProps, ref) => {\n return (\n <div\n ref={ref}\n className={clx(\n \"bg-ui-bg-component txt-small text-ui-fg-subtle grid grid-cols-[4px_1fr] items-start gap-3 rounded-lg border p-3\",\n className\n )}\n {...props}\n >\n <div\n role=\"presentation\"\n className={clx(\"bg-ui-tag-neutral-icon h-full w-1 rounded-full\", {\n \"bg-ui-tag-orange-icon\": variant === \"warning\",\n \"bg-ui-tag-red-icon\": variant === \"error\",\n \"bg-ui-tag-green-icon\": variant === \"success\",\n })}\n />\n <div className=\"text-pretty\">\n <strong className=\"txt-small-plus text-ui-fg-base\">{label}:</strong>{\" \"}\n {children}\n </div>\n </div>\n )\n }\n)\n\nInlineTip.displayName = \"InlineTip\"\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"inline-tip.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-tip/inline-tip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,UAAU,cAAe,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACpE;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;CACnD;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,
|
1
|
+
{"version":3,"file":"inline-tip.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-tip/inline-tip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,UAAU,cAAe,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACpE;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;CACnD;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,uFAiCrB,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"inline-tip.js","sourceRoot":"","sources":["../../../../src/components/inline-tip/inline-tip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAc9B;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CACvC,
|
1
|
+
{"version":3,"file":"inline-tip.js","sourceRoot":"","sources":["../../../../src/components/inline-tip/inline-tip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAc9B;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CACvC,CACE,EACE,OAAO,GAAG,MAAM,EAChB,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACO,EAAE,GAAG,EAAE,EAAE;IAC1B,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,GAAG,CACZ,iHAAiH,EACjH,SAAS,CACV,KACG,KAAK;QAET,6BACE,IAAI,EAAC,cAAc,EACnB,SAAS,EAAE,GAAG,CAAC,gDAAgD,EAAE;gBAC/D,uBAAuB,EAAE,OAAO,KAAK,SAAS;gBAC9C,oBAAoB,EAAE,OAAO,KAAK,OAAO;gBACzC,sBAAsB,EAAE,OAAO,KAAK,SAAS;aAC9C,CAAC,GACF;QACF,6BAAK,SAAS,EAAC,aAAa;YAC1B,gCAAQ,SAAS,EAAC,gCAAgC;gBAAE,KAAK;oBAAW;YAAC,GAAG;YACvE,QAAQ,CACL,CACF,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,SAAS,CAAC,WAAW,GAAG,WAAW,CAAA","sourcesContent":["import { clx } from \"@/utils/clx\"\nimport * as React from \"react\"\n\ninterface InlineTipProps extends React.ComponentPropsWithoutRef<\"div\"> {\n /**\n * The label to display in the tip.\n */\n label: string\n /**\n * The variant of the tip.\n * @default \"info\"\n */\n variant?: \"info\" | \"warning\" | \"error\" | \"success\"\n}\n\n/**\n * This component is based on the `div` element and supports all of its props.\n */\nexport const InlineTip = React.forwardRef<HTMLDivElement, InlineTipProps>(\n (\n { \n variant = \"info\", \n label, \n className, \n children, \n ...props\n }: InlineTipProps, ref) => {\n return (\n <div\n ref={ref}\n className={clx(\n \"bg-ui-bg-component txt-small text-ui-fg-subtle grid grid-cols-[4px_1fr] items-start gap-3 rounded-lg border p-3\",\n className\n )}\n {...props}\n >\n <div\n role=\"presentation\"\n className={clx(\"bg-ui-tag-neutral-icon h-full w-1 rounded-full\", {\n \"bg-ui-tag-orange-icon\": variant === \"warning\",\n \"bg-ui-tag-red-icon\": variant === \"error\",\n \"bg-ui-tag-green-icon\": variant === \"success\",\n })}\n />\n <div className=\"text-pretty\">\n <strong className=\"txt-small-plus text-ui-fg-base\">{label}:</strong>{\" \"}\n {children}\n </div>\n </div>\n )\n }\n)\n\nInlineTip.displayName = \"InlineTip\"\n"]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/ui",
|
3
|
-
"version": "4.0.6
|
3
|
+
"version": "4.0.6",
|
4
4
|
"author": "Kasper Kristensen <kasper@medusajs.com>",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -43,7 +43,7 @@
|
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
45
|
"@faker-js/faker": "^9.2.0",
|
46
|
-
"@medusajs/ui-preset": "2.
|
46
|
+
"@medusajs/ui-preset": "^2.5.1",
|
47
47
|
"@storybook/addon-essentials": "^8.3.5",
|
48
48
|
"@storybook/addon-interactions": "^8.3.5",
|
49
49
|
"@storybook/addon-links": "^8.3.5",
|
@@ -81,7 +81,7 @@
|
|
81
81
|
"vitest": "^3.0.5"
|
82
82
|
},
|
83
83
|
"dependencies": {
|
84
|
-
"@medusajs/icons": "2.
|
84
|
+
"@medusajs/icons": "^2.5.1",
|
85
85
|
"@tanstack/react-table": "8.20.5",
|
86
86
|
"clsx": "^1.2.1",
|
87
87
|
"copy-to-clipboard": "^3.3.3",
|