@mage-ui/components 1.0.183 → 1.0.185
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":"DescriptionList.d.mts","names":[],"sources":["../../../../src/components/data-display/description-list/DescriptionList.tsx"],"mappings":";;;KAWY,yBAAA;EACV,eAAA;EACA,IAAA;EACA,OAAA;EACA,IAAA;EACA,WAAA;AAAA;AAAA,KAGU,oBAAA;EACV,QAAA,EAAU,SAAA;EACV,WAAA;EACA,OAAA;EACA,UAAA,GAAa,yBAAA;AAAA;AAAA,KAGH,wBAAA;EACV,IAAA,EAAM,SAAA;EACN,WAAA,GAAc,SAAA;EACd,QAAA,GAAW,SAAA;EACX,UAAA,GAAa,yBAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"DescriptionList.d.mts","names":[],"sources":["../../../../src/components/data-display/description-list/DescriptionList.tsx"],"mappings":";;;KAWY,yBAAA;EACV,eAAA;EACA,IAAA;EACA,OAAA;EACA,IAAA;EACA,WAAA;AAAA;AAAA,KAGU,oBAAA;EACV,QAAA,EAAU,SAAA;EACV,WAAA;EACA,OAAA;EACA,UAAA,GAAa,yBAAA;AAAA;AAAA,KAGH,wBAAA;EACV,IAAA,EAAM,SAAA;EACN,WAAA,GAAc,SAAA;EACd,QAAA,GAAW,SAAA;EACX,UAAA,GAAa,yBAAA;AAAA;AAAA,cA+CF,eAAA;EAAe,QAAA;EAAA,WAAA;EAAA,OAAA;EAAA;AAAA,GAvCzB,oBAAA,KAAuB,SAAA;;;;;;KAqBvB,wBAAA,KAA2B,SAAA;AAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{cx as e}from"@mage-ui/styled-system/css";import{descriptionList as t,descriptionListDescription as n,descriptionListRoot as r,descriptionListTerm as i,descriptionListWrapper as a}from"@mage-ui/styled-system/recipes";import{jsx as o,jsxs as s}from"react/jsx-runtime";const c=Object.assign(({children:n,orientation:i=`vertical`,display:a=`block`,classNames:s})=>o(`dl`,{"data-orientation":i,"data-display":a,className:e(s?.descriptionList??t(),s?.root??r(),`group`),children:n}),{Item:({term:t,description:r,children:c,classNames:l})=>{let u=r??c;return s(`div`,{className:e(l?.wrapper??a()),children:[o(`dt`,{className:l?.term??i(),children:t}),u&&o(`dd`,{className:l?.description??n(),children:u})]})}});export{c as DescriptionList};
|
|
1
|
+
import{cx as e}from"@mage-ui/styled-system/css";import{descriptionList as t,descriptionListDescription as n,descriptionListRoot as r,descriptionListTerm as i,descriptionListWrapper as a}from"@mage-ui/styled-system/recipes";import{jsx as o,jsxs as s}from"react/jsx-runtime";const c=Object.assign(({children:n,orientation:i=`vertical`,display:a=`block`,classNames:s})=>o(`dl`,{"data-orientation":i,"data-display":a,className:e(s?.descriptionList??t(),s?.root??r(),`group`),children:n}),{Item:({term:t,description:r,children:c,classNames:l})=>{let u=r??c;return s(`div`,{className:e(l?.wrapper??a(),`group`),children:[o(`dt`,{className:l?.term??i(),children:t}),u&&o(`dd`,{className:l?.description??n(),children:u})]})}});export{c as DescriptionList};
|
|
2
2
|
//# sourceMappingURL=DescriptionList.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionList.mjs","names":[],"sources":["../../../../src/components/data-display/description-list/DescriptionList.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport {\n descriptionList,\n descriptionListDescription,\n descriptionListRoot,\n descriptionListTerm,\n descriptionListWrapper,\n} from '@mage-ui/styled-system/recipes';\n\nexport type DescriptionListClassNames = {\n descriptionList?: string;\n root?: string;\n wrapper?: string;\n term?: string;\n description?: string;\n};\n\nexport type DescriptionListProps = {\n children: ReactNode;\n orientation?: 'horizontal' | 'vertical';\n display?: 'block' | 'inline';\n classNames?: DescriptionListClassNames;\n};\n\nexport type DescriptionListItemProps = {\n term: ReactNode;\n description?: ReactNode;\n children?: ReactNode;\n classNames?: DescriptionListClassNames;\n};\n\nconst Root = ({\n children,\n orientation = 'vertical',\n display = 'block',\n classNames,\n}: DescriptionListProps): ReactNode => {\n return (\n <dl\n data-orientation={orientation}\n data-display={display}\n className={cx(\n classNames?.descriptionList ?? descriptionList(),\n classNames?.root ?? descriptionListRoot(),\n 'group',\n )}\n >\n {children}\n </dl>\n );\n};\n\nconst Item = ({\n term,\n description,\n children,\n classNames,\n}: DescriptionListItemProps): ReactNode => {\n const content = description ?? children;\n\n return (\n <div
|
|
1
|
+
{"version":3,"file":"DescriptionList.mjs","names":[],"sources":["../../../../src/components/data-display/description-list/DescriptionList.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport {\n descriptionList,\n descriptionListDescription,\n descriptionListRoot,\n descriptionListTerm,\n descriptionListWrapper,\n} from '@mage-ui/styled-system/recipes';\n\nexport type DescriptionListClassNames = {\n descriptionList?: string;\n root?: string;\n wrapper?: string;\n term?: string;\n description?: string;\n};\n\nexport type DescriptionListProps = {\n children: ReactNode;\n orientation?: 'horizontal' | 'vertical';\n display?: 'block' | 'inline';\n classNames?: DescriptionListClassNames;\n};\n\nexport type DescriptionListItemProps = {\n term: ReactNode;\n description?: ReactNode;\n children?: ReactNode;\n classNames?: DescriptionListClassNames;\n};\n\nconst Root = ({\n children,\n orientation = 'vertical',\n display = 'block',\n classNames,\n}: DescriptionListProps): ReactNode => {\n return (\n <dl\n data-orientation={orientation}\n data-display={display}\n className={cx(\n classNames?.descriptionList ?? descriptionList(),\n classNames?.root ?? descriptionListRoot(),\n 'group',\n )}\n >\n {children}\n </dl>\n );\n};\n\nconst Item = ({\n term,\n description,\n children,\n classNames,\n}: DescriptionListItemProps): ReactNode => {\n const content = description ?? children;\n\n return (\n <div\n className={cx(classNames?.wrapper ?? descriptionListWrapper(), 'group')}\n >\n <dt className={classNames?.term ?? descriptionListTerm()}>{term}</dt>\n\n {content && (\n <dd className={classNames?.description ?? descriptionListDescription()}>\n {content}\n </dd>\n )}\n </div>\n );\n};\n\nexport const DescriptionList = Object.assign(Root, {\n Item,\n});\n"],"mappings":"iRA6EA,MAAa,EAAkB,OAAO,QA5CxB,CACZ,WACA,cAAc,WACd,UAAU,QACV,gBAGE,EAAC,KAAD,CACE,mBAAkB,EAClB,eAAc,EACd,UAAW,EACT,GAAY,iBAAmB,GAAiB,CAChD,GAAY,MAAQ,GAAqB,CACzC,QACD,CAEA,WACE,CAAA,CA2B0C,CACjD,MAxBY,CACZ,OACA,cACA,WACA,gBACyC,CACzC,IAAM,EAAU,GAAe,EAE/B,OACE,EAAC,MAAD,CACE,UAAW,EAAG,GAAY,SAAW,GAAwB,CAAE,QAAQ,UADzE,CAGE,EAAC,KAAD,CAAI,UAAW,GAAY,MAAQ,GAAqB,UAAG,EAAU,CAAA,CAEpE,GACC,EAAC,KAAD,CAAI,UAAW,GAAY,aAAe,GAA4B,UACnE,EACE,CAAA,CAEH,IAMT,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mage-ui/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.185",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"rimraf": "^6.1.3",
|
|
26
26
|
"tsdown": "^0.21.4",
|
|
27
27
|
"typescript": "^5.9.3",
|
|
28
|
-
"@mage-ui/
|
|
29
|
-
"@mage-ui/
|
|
28
|
+
"@mage-ui/styled-system": "1.0.8",
|
|
29
|
+
"@mage-ui/preset": "1.0.185"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@dnd-kit/core": "^6.3.1",
|