@medusajs/ui 4.0.6-snapshot-20250223215913 → 4.0.7-snapshot-20250305112631

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,13 +1,6 @@
1
1
  import * as React from "react";
2
2
  interface InlineTipProps extends React.ComponentPropsWithoutRef<"div"> {
3
- /**
4
- * The label to display in the tip.
5
- */
6
3
  label: string;
7
- /**
8
- * The variant of the tip.
9
- * @default "info"
10
- */
11
4
  variant?: "info" | "warning" | "error" | "success";
12
5
  }
13
6
  /**
@@ -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,uFA0BrB,CAAA"}
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,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;CACnD;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,uFAuCrB,CAAA"}
@@ -7,7 +7,15 @@ const React = tslib_1.__importStar(require("react"));
7
7
  /**
8
8
  * This component is based on the `div` element and supports all of its props.
9
9
  */
10
- exports.InlineTip = React.forwardRef(({ variant = "info", label, className, children, ...props }, ref) => {
10
+ exports.InlineTip = React.forwardRef(({
11
+ /**
12
+ * The variant of the tip.
13
+ */
14
+ variant = "info",
15
+ /**
16
+ * The label to display in the tip.
17
+ */
18
+ label, className, children, ...props }, ref) => {
11
19
  return (React.createElement("div", { ref: ref, className: (0, clx_1.clx)("bg-ui-bg-component txt-small text-ui-fg-subtle grid grid-cols-[4px_1fr] items-start gap-3 rounded-lg border p-3", className), ...props },
12
20
  React.createElement("div", { role: "presentation", className: (0, clx_1.clx)("bg-ui-tag-neutral-icon h-full w-1 rounded-full", {
13
21
  "bg-ui-tag-orange-icon": variant === "warning",
@@ -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,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAClE,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 ({ variant = \"info\", label, className, children, ...props }, 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
+ {"version":3,"file":"inline-tip.js","sourceRoot":"","sources":["../../../../src/components/inline-tip/inline-tip.tsx"],"names":[],"mappings":";;;;AAAA,qCAAiC;AACjC,qDAA8B;AAO9B;;GAEG;AACU,QAAA,SAAS,GAAG,KAAK,CAAC,UAAU,CACvC,CACE;AACE;;GAEG;AACH,OAAO,GAAG,MAAM;AAChB;;GAEG;AACH,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 label: string\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 /**\n * The variant of the tip.\n */\n variant = \"info\", \n /**\n * The label to display in the tip.\n */\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,13 +1,6 @@
1
1
  import * as React from "react";
2
2
  interface InlineTipProps extends React.ComponentPropsWithoutRef<"div"> {
3
- /**
4
- * The label to display in the tip.
5
- */
6
3
  label: string;
7
- /**
8
- * The variant of the tip.
9
- * @default "info"
10
- */
11
4
  variant?: "info" | "warning" | "error" | "success";
12
5
  }
13
6
  /**
@@ -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,uFA0BrB,CAAA"}
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,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;CACnD;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,uFAuCrB,CAAA"}
@@ -3,7 +3,15 @@ import * as React from "react";
3
3
  /**
4
4
  * This component is based on the `div` element and supports all of its props.
5
5
  */
6
- export const InlineTip = React.forwardRef(({ variant = "info", label, className, children, ...props }, ref) => {
6
+ export const InlineTip = React.forwardRef(({
7
+ /**
8
+ * The variant of the tip.
9
+ */
10
+ variant = "info",
11
+ /**
12
+ * The label to display in the tip.
13
+ */
14
+ label, className, children, ...props }, ref) => {
7
15
  return (React.createElement("div", { ref: ref, className: clx("bg-ui-bg-component txt-small text-ui-fg-subtle grid grid-cols-[4px_1fr] items-start gap-3 rounded-lg border p-3", className), ...props },
8
16
  React.createElement("div", { role: "presentation", className: clx("bg-ui-tag-neutral-icon h-full w-1 rounded-full", {
9
17
  "bg-ui-tag-orange-icon": variant === "warning",
@@ -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,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAClE,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 ({ variant = \"info\", label, className, children, ...props }, 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
+ {"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;AAO9B;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CACvC,CACE;AACE;;GAEG;AACH,OAAO,GAAG,MAAM;AAChB;;GAEG;AACH,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 label: string\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 /**\n * The variant of the tip.\n */\n variant = \"info\", \n /**\n * The label to display in the tip.\n */\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-snapshot-20250223215913",
3
+ "version": "4.0.7-snapshot-20250305112631",
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.5.1-snapshot-20250223215913",
46
+ "@medusajs/ui-preset": "2.6.1-snapshot-20250305112631",
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.5.1-snapshot-20250223215913",
84
+ "@medusajs/icons": "2.6.1-snapshot-20250305112631",
85
85
  "@tanstack/react-table": "8.20.5",
86
86
  "clsx": "^1.2.1",
87
87
  "copy-to-clipboard": "^3.3.3",