@mage-ui/components 1.0.181 → 1.0.183

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.
@@ -11,6 +11,7 @@ type DescriptionListClassNames = {
11
11
  type DescriptionListProps = {
12
12
  children: ReactNode;
13
13
  orientation?: 'horizontal' | 'vertical';
14
+ display?: 'block' | 'inline';
14
15
  classNames?: DescriptionListClassNames;
15
16
  };
16
17
  type DescriptionListItemProps = {
@@ -22,6 +23,7 @@ type DescriptionListItemProps = {
22
23
  declare const DescriptionList: (({
23
24
  children,
24
25
  orientation,
26
+ display,
25
27
  classNames
26
28
  }: DescriptionListProps) => ReactNode) & {
27
29
  Item: ({
@@ -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,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,cA0CF,eAAA;EAAe,QAAA;EAAA,WAAA;EAAA;AAAA,GAnCzB,oBAAA,KAAuB,SAAA;;;;;;KAmBvB,wBAAA,KAA2B,SAAA;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,cA6CF,eAAA;EAAe,QAAA;EAAA,WAAA;EAAA,OAAA;EAAA;AAAA,GArCzB,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`,classNames:a})=>o(`dl`,{"data-orientation":i,className:e(a?.descriptionList??t(),a?.root??r()),children:n}),{Item:({term:e,description:t,children:r,classNames:c})=>{let l=t??r;return s(`div`,{className:c?.wrapper??a(),children:[o(`dt`,{className:c?.term??i(),children:e}),l&&o(`dd`,{className:c?.description??n(),children:l})]})}});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()),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 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 classNames,\n}: DescriptionListProps): ReactNode => {\n return (\n <dl\n data-orientation={orientation}\n className={cx(\n classNames?.descriptionList ?? descriptionList(),\n classNames?.root ?? descriptionListRoot(),\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 className={classNames?.wrapper ?? descriptionListWrapper()}>\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":"iRAuEA,MAAa,EAAkB,OAAO,QAvCxB,CACZ,WACA,cAAc,WACd,gBAGE,EAAC,KAAD,CACE,mBAAkB,EAClB,UAAW,EACT,GAAY,iBAAmB,GAAiB,CAChD,GAAY,MAAQ,GAAqB,CAC1C,CAEA,WACE,CAAA,CAyB0C,CACjD,MAtBY,CACZ,OACA,cACA,WACA,gBACyC,CACzC,IAAM,EAAU,GAAe,EAE/B,OACE,EAAC,MAAD,CAAK,UAAW,GAAY,SAAW,GAAwB,UAA/D,CACE,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"}
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 className={cx(classNames?.wrapper ?? descriptionListWrapper())}>\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":"iRA2EA,MAAa,EAAkB,OAAO,QA1CxB,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,CAyB0C,CACjD,MAtBY,CACZ,OACA,cACA,WACA,gBACyC,CACzC,IAAM,EAAU,GAAe,EAE/B,OACE,EAAC,MAAD,CAAK,UAAW,EAAG,GAAY,SAAW,GAAwB,CAAC,UAAnE,CACE,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.181",
3
+ "version": "1.0.183",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -25,7 +25,7 @@
25
25
  "rimraf": "^6.1.3",
26
26
  "tsdown": "^0.21.4",
27
27
  "typescript": "^5.9.3",
28
- "@mage-ui/preset": "1.0.181",
28
+ "@mage-ui/preset": "1.0.183",
29
29
  "@mage-ui/styled-system": "1.0.8"
30
30
  },
31
31
  "peerDependencies": {