@commercetools/nimbus 0.0.0-canary-20250825141219 → 0.0.0-canary-20250826065101
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.
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),n=require("../chunks/config-Mt8_uyhI.cjs.js"),c=require("../chunks/Dialog-B4OIDU7t.cjs.js"),s=require("../chunks/create-recipe-context-D0_lCuqq.cjs.js"),p=n.defineRecipe({className:"nimbus-popover",base:{bg:"white",borderRadius:"200",boxShadow:"5",padding:"400",zIndex:1}}),{withContext:a}=s.createRecipeContext({recipe:p}),b=a(c.$07b14b47974efb58$export$5b6b19405a83ff9d),e=o=>{const{children:t,...r}=o;return i.jsx(b,{...r,children:t})};e.displayName="Popover";exports.Popover=e;
|
|
2
|
+
//# sourceMappingURL=popover.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.cjs","sources":["../../src/components/popover/popover.recipe.tsx","../../src/components/popover/popover.slots.tsx","../../src/components/popover/popover.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n/**\n * Recipe configuration for the Popover component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const popoverSlotRecipe = defineRecipe({\n // Unique class name prefix for the component\n className: \"nimbus-popover\",\n // Base styles applied to all instances of the component\n base: {\n bg: \"white\",\n borderRadius: \"200\",\n boxShadow: \"5\",\n padding: \"400\",\n zIndex: 1,\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react/styled-system\";\nimport { popoverSlotRecipe } from \"./popover.recipe\";\nimport { Popover as RaPopover } from \"react-aria-components\";\nimport { type PopoverRootSlotProps } from \"./popover.types\";\n\nconst { withContext } = createRecipeContext({\n recipe: popoverSlotRecipe,\n});\n\nexport const PopoverRootSlot = withContext<\n HTMLDivElement,\n PopoverRootSlotProps\n>(RaPopover);\n","import { PopoverRootSlot } from \"./popover.slots\";\nimport type { PopoverRootSlotProps } from \"./popover.types\";\n\n/**\n * # Popover\n *\n * A component that displays floating content in relation to a trigger element.\n *\n * Note this component is only used internally.\n */\nexport const Popover = (props: PopoverRootSlotProps) => {\n const { children, ...rest } = props;\n\n return <PopoverRootSlot {...rest}>{children}</PopoverRootSlot>;\n};\n\nPopover.displayName = \"Popover\";\n"],"names":["popoverSlotRecipe","defineRecipe","withContext","createRecipeContext","PopoverRootSlot","RaPopover","Popover","props","children","rest","jsx"],"mappings":"2MAKaA,EAAoBC,EAAAA,aAAa,CAE5C,UAAW,iBAEX,KAAM,CACJ,GAAI,QACJ,aAAc,MACd,UAAW,IACX,QAAS,MACT,OAAQ,CAAA,CAEZ,CAAC,ECXK,CAAE,YAAAC,CAAA,EAAgBC,sBAAoB,CAC1C,OAAQH,CACV,CAAC,EAEYI,EAAkBF,EAG7BG,2CAAS,ECFEC,EAAWC,GAAgC,CACtD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAA,EAASF,EAE9B,OAAOG,EAAAA,IAACN,EAAA,CAAiB,GAAGK,EAAO,SAAAD,CAAA,CAAS,CAC9C,EAEAF,EAAQ,YAAc"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { d as p } from "../chunks/config-ufbQ08Vi.es.js";
|
|
3
|
+
import { $ as i } from "../chunks/Dialog-DNPIKkGE.es.js";
|
|
4
|
+
import { c as s } from "../chunks/create-recipe-context-i2odau3L.es.js";
|
|
5
|
+
const a = /* @__PURE__ */ p({
|
|
6
|
+
// Unique class name prefix for the component
|
|
7
|
+
className: "nimbus-popover",
|
|
8
|
+
// Base styles applied to all instances of the component
|
|
9
|
+
base: {
|
|
10
|
+
bg: "white",
|
|
11
|
+
borderRadius: "200",
|
|
12
|
+
boxShadow: "5",
|
|
13
|
+
padding: "400",
|
|
14
|
+
zIndex: 1
|
|
15
|
+
}
|
|
16
|
+
}), { withContext: c } = /* @__PURE__ */ s({
|
|
17
|
+
recipe: a
|
|
18
|
+
}), n = /* @__PURE__ */ c(i), d = (o) => {
|
|
19
|
+
const { children: e, ...r } = o;
|
|
20
|
+
return /* @__PURE__ */ t(n, { ...r, children: e });
|
|
21
|
+
};
|
|
22
|
+
d.displayName = "Popover";
|
|
23
|
+
export {
|
|
24
|
+
d as Popover
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=popover.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.es.js","sources":["../../src/components/popover/popover.recipe.tsx","../../src/components/popover/popover.slots.tsx","../../src/components/popover/popover.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n/**\n * Recipe configuration for the Popover component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const popoverSlotRecipe = defineRecipe({\n // Unique class name prefix for the component\n className: \"nimbus-popover\",\n // Base styles applied to all instances of the component\n base: {\n bg: \"white\",\n borderRadius: \"200\",\n boxShadow: \"5\",\n padding: \"400\",\n zIndex: 1,\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react/styled-system\";\nimport { popoverSlotRecipe } from \"./popover.recipe\";\nimport { Popover as RaPopover } from \"react-aria-components\";\nimport { type PopoverRootSlotProps } from \"./popover.types\";\n\nconst { withContext } = createRecipeContext({\n recipe: popoverSlotRecipe,\n});\n\nexport const PopoverRootSlot = withContext<\n HTMLDivElement,\n PopoverRootSlotProps\n>(RaPopover);\n","import { PopoverRootSlot } from \"./popover.slots\";\nimport type { PopoverRootSlotProps } from \"./popover.types\";\n\n/**\n * # Popover\n *\n * A component that displays floating content in relation to a trigger element.\n *\n * Note this component is only used internally.\n */\nexport const Popover = (props: PopoverRootSlotProps) => {\n const { children, ...rest } = props;\n\n return <PopoverRootSlot {...rest}>{children}</PopoverRootSlot>;\n};\n\nPopover.displayName = \"Popover\";\n"],"names":["popoverSlotRecipe","defineRecipe","withContext","createRecipeContext","PopoverRootSlot","RaPopover","Popover","props","children","rest","jsx"],"mappings":";;;;AAKO,MAAMA,IAAoB,gBAAAC,EAAa;AAAA;AAAA,EAE5C,WAAW;AAAA;AAAA,EAEX,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,SAAS;AAAA,IACT,QAAQ;AAAA,EAAA;AAEZ,CAAC,GCXK,EAAE,aAAAC,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,QAAQH;AACV,CAAC,GAEYI,IAAkB,gBAAAF,EAG7BG,CAAS,GCFEC,IAAU,CAACC,MAAgC;AACtD,QAAM,EAAE,UAAAC,GAAU,GAAGC,EAAA,IAASF;AAE9B,SAAO,gBAAAG,EAACN,GAAA,EAAiB,GAAGK,GAAO,UAAAD,EAAA,CAAS;AAC9C;AAEAF,EAAQ,cAAc;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { PopoverProps } from 'react-aria-components';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # Popover
|
|
6
|
+
*
|
|
7
|
+
* A component that displays floating content in relation to a trigger element.
|
|
8
|
+
*
|
|
9
|
+
* Note this component is only used internally.
|
|
10
|
+
*/
|
|
11
|
+
export declare const Popover: {
|
|
12
|
+
(props: PopoverRootSlotProps): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export declare type PopoverRootSlotProps = PopoverProps;
|
|
17
|
+
|
|
18
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools/nimbus",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20250826065101",
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-use": "^17.5.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@chakra-ui/cli": "^3.
|
|
60
|
+
"@chakra-ui/cli": "^3.25.0",
|
|
61
61
|
"@internationalized/date": "^3.8.2",
|
|
62
62
|
"@react-aria/optimize-locales-plugin": "1.1.5",
|
|
63
63
|
"@storybook/addon-a11y": "^9.0.18",
|
|
@@ -84,14 +84,14 @@
|
|
|
84
84
|
"vite-plugin-dts": "^4.5.4",
|
|
85
85
|
"vite-tsconfig-paths": "^5.1.4",
|
|
86
86
|
"vitest": "^3.2.4",
|
|
87
|
-
"@commercetools/nimbus-icons": "^0.0.0-canary-
|
|
88
|
-
"@commercetools/nimbus-tokens": "^0.0.0-canary-
|
|
87
|
+
"@commercetools/nimbus-icons": "^0.0.0-canary-20250826065101",
|
|
88
|
+
"@commercetools/nimbus-tokens": "^0.0.0-canary-20250826065101"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"@chakra-ui/react": "^3.25.0",
|
|
92
92
|
"react": "^19.0.0",
|
|
93
|
-
"@commercetools/nimbus-icons": "^0.0.0-canary-
|
|
94
|
-
"@commercetools/nimbus-tokens": "^0.0.0-canary-
|
|
93
|
+
"@commercetools/nimbus-icons": "^0.0.0-canary-20250826065101",
|
|
94
|
+
"@commercetools/nimbus-tokens": "^0.0.0-canary-20250826065101"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|
|
97
97
|
"build": "pnpm run build-theme-typings && pnpm run build:lib",
|