@aglyn/shared-ui-jsx 1.0.0-beta.181 → 1.0.0-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aglyn/shared-ui-jsx",
3
- "version": "1.0.0-beta.181",
3
+ "version": "1.0.0-beta.183",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://aglyn.com",
6
6
  "repository": {
@@ -25,10 +25,10 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@aglyn/shared-data-mdi": "1.0.0-beta.181",
29
- "@aglyn/shared-ui-theme": "1.0.0-beta.181",
30
- "@aglyn/shared-util-tools": "1.0.0-beta.181",
31
- "@aglyn/shared-util-vendor": "1.0.0-beta.181",
28
+ "@aglyn/shared-data-mdi": "1.0.0-beta.183",
29
+ "@aglyn/shared-ui-theme": "1.0.0-beta.183",
30
+ "@aglyn/shared-util-tools": "1.0.0-beta.183",
31
+ "@aglyn/shared-util-vendor": "1.0.0-beta.183",
32
32
  "@mdi/js": "^7.4.47",
33
33
  "@swc/helpers": "0.5.23",
34
34
  "change-case": "^5.4.4",
@@ -41,8 +41,21 @@ const Card = styled(MuiCard)(({ theme })=>{
41
41
  paddingBottom: 'initial'
42
42
  }
43
43
  },
44
- '.MuiCardHeader-root': {
45
- fontWeight: theme.typography.fontWeightBold
44
+ /*
45
+ * A header action wider than the room beside the title wraps onto its own
46
+ * line under it, instead of pushing past the card's edge where the card's
47
+ * `overflow: hidden` clips it (AGL-3311). The title keeps a floor so a
48
+ * short action still sits beside it, top right.
49
+ */ '.MuiCardHeader-root': {
50
+ fontWeight: theme.typography.fontWeightBold,
51
+ flexWrap: 'wrap',
52
+ rowGap: theme.spacing(1)
53
+ },
54
+ '.MuiCardHeader-content': {
55
+ flex: `1 1 ${theme.spacing(24)}`
56
+ },
57
+ '.MuiCardHeader-action': {
58
+ maxWidth: '100%'
46
59
  },
47
60
  [`&.${classKeys.contentGutterX}`]: {
48
61
  '.MuiCardContent-root': {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx/src/lib/components/card-display.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ErrorBoundaryComponent } from './error-boundary.component'\nimport { HelpTip, type HelpTipContent } from './help-tip.component'\nimport { generateComponentClassKeys, styled } from '@aglyn/shared-ui-theme'\nimport {\n Box,\n Card as MuiCard,\n CardActions as MuiCardActions,\n type CardActionsProps,\n CardContent as MuiCardContent,\n type CardContentProps,\n CardHeader as MuiCardHeader,\n type CardHeaderProps,\n type CardProps,\n} from '@mui/material'\nimport clsx from 'clsx'\nimport { forwardRef } from 'react'\n\nconst classKeys = generateComponentClassKeys('CardDisplay', [\n 'contentGutterX',\n 'contentGutterY',\n 'headerCentered',\n 'headerBordered',\n 'actionsBordered',\n])\n\nconst Card = styled(MuiCard)(({ theme }) => {\n const tv = (theme as any).vars || theme\n return {\n '.MuiCardContent-root': {\n padding: 0,\n borderWidth: 0,\n borderStyle: 'solid',\n borderColor: tv.palette.divider,\n ':last-of-type': {\n paddingBottom: 'initial',\n },\n },\n '.MuiCardHeader-root': {\n fontWeight: theme.typography.fontWeightBold,\n },\n [`&.${classKeys.contentGutterX}`]: {\n '.MuiCardContent-root': {\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('md')]: {\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n },\n },\n },\n [`&.${classKeys.contentGutterY}`]: {\n '.MuiCardContent-root': {\n paddingTop: theme.spacing(2),\n paddingBottom: theme.spacing(2),\n },\n },\n [`&.${classKeys.headerCentered}`]: {\n '.MuiCardHeader-root': {\n marginBottom: theme.spacing(-1),\n alignSelf: 'center',\n },\n },\n [`&.${classKeys.headerBordered}`]: {\n '.MuiCardContent-root': {\n borderTopWidth: 1,\n },\n },\n [`&.${classKeys.actionsBordered}`]: {\n '.MuiCardContent-root': {\n borderBottomWidth: 1,\n },\n },\n }\n})\n\nexport interface CardDisplayProps extends CardProps {\n contentGutterX?: boolean\n contentGutterY?: boolean\n contentBordered?: 'all' | 'top' | 'bottom' | undefined\n headerCentered?: boolean\n header?: JSX.Children\n subheader?: JSX.Children\n actions?: JSX.Children\n disableContentWrapper?: boolean\n /** Contextual help affordance rendered beside the header title (AGL-601). */\n help?: HelpTipContent\n HeaderProps?: CardHeaderProps\n ContentProps?: CardContentProps\n ActionProps?: CardActionsProps\n}\n\nconst CardDisplay = forwardRef<any, CardDisplayProps>((props, ref) => {\n const {\n actions,\n classes,\n children,\n className,\n header,\n subheader,\n disableContentWrapper,\n help,\n ActionProps,\n HeaderProps,\n ContentProps,\n contentGutterX,\n contentGutterY,\n headerCentered,\n contentBordered,\n ...rest\n } = props\n\n const headerTitle =\n help && header != null ? (\n <Box\n component=\"span\"\n sx={{ display: 'inline-flex', alignItems: 'center', gap: 0.5 }}\n >\n {header}\n <HelpTip\n {...help}\n title={help.title ?? (typeof header === 'string' ? header : undefined)}\n sx={{ fontSize: '0.8em', my: -0.5 }}\n />\n </Box>\n ) : (\n header\n )\n\n const allBordered = contentBordered === 'all'\n const headerBordered = contentBordered === 'top'\n const actionsBordered = contentBordered === 'bottom'\n\n const cardClassName = clsx(\n {\n [classKeys.contentGutterX]: Boolean(contentGutterX),\n [classKeys.contentGutterY]: Boolean(contentGutterY),\n [classKeys.headerBordered]: Boolean(allBordered || headerBordered),\n [classKeys.actionsBordered]: Boolean(allBordered || actionsBordered),\n [classKeys.headerCentered]: Boolean(headerCentered),\n },\n className,\n )\n\n return (\n <Card ref={ref} className={cardClassName} {...rest}>\n <ErrorBoundaryComponent>\n {header || HeaderProps || subheader ? (\n <MuiCardHeader\n title={headerTitle}\n subheader={subheader}\n slotProps={{ title: { variant: 'h6', component: 'div' } }}\n {...HeaderProps}\n />\n ) : null}\n {disableContentWrapper ? (\n children\n ) : children || ContentProps ? (\n <MuiCardContent {...ContentProps}>\n {ContentProps?.children || children}\n </MuiCardContent>\n ) : null}\n {actions || ActionProps ? (\n <MuiCardActions {...ActionProps}>\n {ActionProps?.children || actions}\n </MuiCardActions>\n ) : null}\n </ErrorBoundaryComponent>\n </Card>\n )\n})\n\nCardDisplay.displayName = 'CardDisplayComponent'\n\nexport { CardDisplay }\nexport default CardDisplay\n"],"names":["ErrorBoundaryComponent","HelpTip","generateComponentClassKeys","styled","Box","Card","MuiCard","CardActions","MuiCardActions","CardContent","MuiCardContent","CardHeader","MuiCardHeader","clsx","forwardRef","classKeys","theme","tv","vars","padding","borderWidth","borderStyle","borderColor","palette","divider","paddingBottom","fontWeight","typography","fontWeightBold","contentGutterX","paddingLeft","spacing","paddingRight","breakpoints","up","contentGutterY","paddingTop","headerCentered","marginBottom","alignSelf","headerBordered","borderTopWidth","actionsBordered","borderBottomWidth","CardDisplay","props","ref","help","actions","classes","children","className","header","subheader","disableContentWrapper","ActionProps","HeaderProps","ContentProps","contentBordered","rest","headerTitle","component","sx","display","alignItems","gap","title","undefined","fontSize","my","allBordered","cardClassName","Boolean","slotProps","variant","displayName"],"mappings":";;;AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAASA,sBAAsB,QAAQ,gCAA4B;AACnE,SAASC,OAAO,QAA6B,0BAAsB;AACnE,SAASC,0BAA0B,EAAEC,MAAM,QAAQ,yBAAwB;AAC3E,SACEC,GAAG,EACHC,QAAQC,OAAO,EACfC,eAAeC,cAAc,EAE7BC,eAAeC,cAAc,EAE7BC,cAAcC,aAAa,QAGt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EQ,SAAS;4BAAMb,WAAW;wBAAM;oBAAE;mBACpDL,gBAEJ;gBACHF,wBACCJ,WACEA,YAAYO,6BACd,KAAC/C,6BAAmB+C;8BACjBA,CAAAA,gCAAAA,aAAcP,QAAQ,KAAIA;sBAE3B;gBACHF,WAAWO,4BACV,KAAC/C,6BAAmB+C;8BACjBA,CAAAA,+BAAAA,YAAaL,QAAQ,KAAIF;sBAE1B;;;;AAIZ;AAEAJ,YAAY+B,WAAW,GAAG;AAE1B,SAAS/B,WAAW,GAAE;AACtB,eAAeA,YAAW"}
1
+ {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx/src/lib/components/card-display.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ErrorBoundaryComponent } from './error-boundary.component'\nimport { HelpTip, type HelpTipContent } from './help-tip.component'\nimport { generateComponentClassKeys, styled } from '@aglyn/shared-ui-theme'\nimport {\n Box,\n Card as MuiCard,\n CardActions as MuiCardActions,\n type CardActionsProps,\n CardContent as MuiCardContent,\n type CardContentProps,\n CardHeader as MuiCardHeader,\n type CardHeaderProps,\n type CardProps,\n} from '@mui/material'\nimport clsx from 'clsx'\nimport { forwardRef } from 'react'\n\nconst classKeys = generateComponentClassKeys('CardDisplay', [\n 'contentGutterX',\n 'contentGutterY',\n 'headerCentered',\n 'headerBordered',\n 'actionsBordered',\n])\n\nconst Card = styled(MuiCard)(({ theme }) => {\n const tv = (theme as any).vars || theme\n return {\n '.MuiCardContent-root': {\n padding: 0,\n borderWidth: 0,\n borderStyle: 'solid',\n borderColor: tv.palette.divider,\n ':last-of-type': {\n paddingBottom: 'initial',\n },\n },\n /*\n * A header action wider than the room beside the title wraps onto its own\n * line under it, instead of pushing past the card's edge where the card's\n * `overflow: hidden` clips it (AGL-3311). The title keeps a floor so a\n * short action still sits beside it, top right.\n */\n '.MuiCardHeader-root': {\n fontWeight: theme.typography.fontWeightBold,\n flexWrap: 'wrap',\n rowGap: theme.spacing(1),\n },\n '.MuiCardHeader-content': {\n flex: `1 1 ${theme.spacing(24)}`,\n },\n '.MuiCardHeader-action': {\n maxWidth: '100%',\n },\n [`&.${classKeys.contentGutterX}`]: {\n '.MuiCardContent-root': {\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('md')]: {\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n },\n },\n },\n [`&.${classKeys.contentGutterY}`]: {\n '.MuiCardContent-root': {\n paddingTop: theme.spacing(2),\n paddingBottom: theme.spacing(2),\n },\n },\n [`&.${classKeys.headerCentered}`]: {\n '.MuiCardHeader-root': {\n marginBottom: theme.spacing(-1),\n alignSelf: 'center',\n },\n },\n [`&.${classKeys.headerBordered}`]: {\n '.MuiCardContent-root': {\n borderTopWidth: 1,\n },\n },\n [`&.${classKeys.actionsBordered}`]: {\n '.MuiCardContent-root': {\n borderBottomWidth: 1,\n },\n },\n }\n})\n\nexport interface CardDisplayProps extends CardProps {\n contentGutterX?: boolean\n contentGutterY?: boolean\n contentBordered?: 'all' | 'top' | 'bottom' | undefined\n headerCentered?: boolean\n header?: JSX.Children\n subheader?: JSX.Children\n actions?: JSX.Children\n disableContentWrapper?: boolean\n /** Contextual help affordance rendered beside the header title (AGL-601). */\n help?: HelpTipContent\n HeaderProps?: CardHeaderProps\n ContentProps?: CardContentProps\n ActionProps?: CardActionsProps\n}\n\nconst CardDisplay = forwardRef<any, CardDisplayProps>((props, ref) => {\n const {\n actions,\n classes,\n children,\n className,\n header,\n subheader,\n disableContentWrapper,\n help,\n ActionProps,\n HeaderProps,\n ContentProps,\n contentGutterX,\n contentGutterY,\n headerCentered,\n contentBordered,\n ...rest\n } = props\n\n const headerTitle =\n help && header != null ? (\n <Box\n component=\"span\"\n sx={{ display: 'inline-flex', alignItems: 'center', gap: 0.5 }}\n >\n {header}\n <HelpTip\n {...help}\n title={help.title ?? (typeof header === 'string' ? header : undefined)}\n sx={{ fontSize: '0.8em', my: -0.5 }}\n />\n </Box>\n ) : (\n header\n )\n\n const allBordered = contentBordered === 'all'\n const headerBordered = contentBordered === 'top'\n const actionsBordered = contentBordered === 'bottom'\n\n const cardClassName = clsx(\n {\n [classKeys.contentGutterX]: Boolean(contentGutterX),\n [classKeys.contentGutterY]: Boolean(contentGutterY),\n [classKeys.headerBordered]: Boolean(allBordered || headerBordered),\n [classKeys.actionsBordered]: Boolean(allBordered || actionsBordered),\n [classKeys.headerCentered]: Boolean(headerCentered),\n },\n className,\n )\n\n return (\n <Card ref={ref} className={cardClassName} {...rest}>\n <ErrorBoundaryComponent>\n {header || HeaderProps || subheader ? (\n <MuiCardHeader\n title={headerTitle}\n subheader={subheader}\n slotProps={{ title: { variant: 'h6', component: 'div' } }}\n {...HeaderProps}\n />\n ) : null}\n {disableContentWrapper ? (\n children\n ) : children || ContentProps ? (\n <MuiCardContent {...ContentProps}>\n {ContentProps?.children || children}\n </MuiCardContent>\n ) : null}\n {actions || ActionProps ? (\n <MuiCardActions {...ActionProps}>\n {ActionProps?.children || actions}\n </MuiCardActions>\n ) : null}\n </ErrorBoundaryComponent>\n </Card>\n )\n})\n\nCardDisplay.displayName = 'CardDisplayComponent'\n\nexport { CardDisplay }\nexport default CardDisplay\n"],"names":["ErrorBoundaryComponent","HelpTip","generateComponentClassKeys","styled","Box","Card","MuiCard","CardActions","MuiCardActions","CardContent","MuiCardContent","CardHeader","MuiCardHeader","clsx","forwardRef","classKeys","theme","tv","vars","padding","borderWidth","borderStyle","borderColor","palette","divider","paddingBottom","fontWeight","typography","fontWeightBold","flexWrap","rowGap","spacing","flex","maxWidth","contentGutterX","paddingLeft","paddingRight","breakpoints","up","contentGutterY","paddingTop","headerCentered","marginBottom","alignSelf","headerBordered","borderTopWidth","actionsBordered","borderBottomWidth","CardDisplay","props","ref","help","actions","classes","children","className","header","subheader","disableContentWrapper","ActionProps","HeaderProps","ContentProps","contentBordered","rest","headerTitle","component","sx","display","alignItems","gap","title","undefined","fontSize","my","allBordered","cardClassName","Boolean","slotProps","variant","displayName"],"mappings":";;;AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAASA,sBAAsB,QAAQ,gCAA4B;AACnE,SAASC,OAAO,QAA6B,0BAAsB;AACnE,SAASC,0BAA0B,EAAEC,MAAM,QAAQ,yBAAwB;AAC3E,SACEC,GAAG,EACHC,QAAQC,OAAO,EACfC,eAAeC,cAAc,EAE7BC,eAAeC,cAAc,EAE7BC,cAAcC,aAAa,QAGtB,gBAAe;AACtB,OAAOC,UAAU,OAAM;AACvB,SAASC,UAAU,QAAQ,QAAO;AAElC,MAAMC,YAAYb,2BAA2B,eAAe;IAC1D;IACA;IACA;IACA;IACA;CACD;AAED,MAAMG,OAAOF,OAAOG,SAAS,CAAC,EAAEU,KAAK,EAAE;IACrC,MAAMC,KAAK,AAACD,MAAcE,IAAI,IAAIF;IAClC,OAAO;QACL,wBAAwB;YACtBG,SAAS;YACTC,aAAa;YACbC,aAAa;YACbC,aAAaL,GAAGM,OAAO,CAACC,OAAO;YAC/B,iBAAiB;gBACfC,eAAe;YACjB;QACF;QACA;;;;;KAKC,GACD,uBAAuB;YACrBC,YAAYV,MAAMW,UAAU,CAACC,cAAc;YAC3CC,UAAU;YACVC,QAAQd,MAAMe,OAAO,CAAC;QACxB;QACA,0BAA0B;YACxBC,MAAM,CAAC,IAAI,EAAEhB,MAAMe,OAAO,CAAC,KAAK;QAClC;QACA,yBAAyB;YACvBE,UAAU;QACZ;QACA,CAAC,CAAC,EAAE,EAAElB,UAAUmB,cAAc,EAAE,CAAC,EAAE;YACjC,wBAAwB;gBACtBC,aAAan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