@molecule/app-medication-row-react 4.0.0 → 4.0.1

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.
@@ -12,5 +12,5 @@ import { Card } from '@molecule/app-ui-react';
12
12
  export function MedicationRow({ name, dosage, form, color, instructions, prescriber, supplyDays, refills, actions, className, }) {
13
13
  const cm = getClassMap();
14
14
  const { t } = useTranslation();
15
- return (_jsx(Card, { className: className, children: _jsxs("div", { className: cm.flex({ align: 'start', gap: 'md' }), children: [color && (_jsx("span", { "aria-hidden": true, className: cm.cn(cm.shrink0, cm.roundedFull), style: { width: 24, height: 24, background: color } })), _jsxs("div", { className: cm.cn(cm.flex1, cm.stack(1)), children: [_jsxs("header", { className: cm.flex({ align: 'baseline', gap: 'sm', wrap: 'wrap' }), children: [_jsx("h3", { className: cm.cn(cm.textSize('base'), cm.fontWeight('bold')), children: name }), dosage && (_jsx("span", { className: cm.cn(cm.textSize('sm'), cm.fontWeight('medium')), children: dosage })), form && _jsx("span", { className: cm.textSize('xs'), children: form })] }), instructions && _jsx("p", { className: cm.textSize('sm'), children: instructions }), _jsxs("div", { className: cm.flex({ align: 'center', gap: 'sm', wrap: 'wrap' }), children: [prescriber && (_jsxs("span", { className: cm.textSize('xs'), children: [t('medication.prescribedBy', {}, { defaultValue: 'Prescribed by' }), " ", prescriber] })), supplyDays !== undefined && (_jsxs("span", { className: cm.cn(cm.textSize('xs'), cm.fontWeight('semibold')), children: ["\u00B7", ' ', t('medication.supplyDays', { days: supplyDays }, { defaultValue: `${supplyDays} day supply` })] })), refills !== undefined && (_jsxs("span", { className: cm.textSize('xs'), children: ["\u00B7 ", t('medication.refills', { refills }, { defaultValue: `${refills} refills` })] }))] })] }), actions && _jsx("div", { className: cm.shrink0, children: actions })] }) }));
15
+ return (_jsx(Card, { className: className, children: _jsxs("div", { className: cm.flex({ align: 'start', gap: 'md' }), children: [color && (_jsx("span", { "aria-hidden": true, className: cm.cn(cm.shrink0, cm.roundedFull), style: { width: 24, height: 24, background: color } })), _jsxs("div", { className: cm.cn(cm.flex1, cm.stack(1)), children: [_jsxs("header", { className: cm.flex({ align: 'baseline', gap: 'sm', wrap: 'wrap' }), children: [_jsx("h3", { className: cm.cn(cm.textSize('base'), cm.fontWeight('bold')), children: name }), dosage && (_jsx("span", { className: cm.cn(cm.textSize('sm'), cm.fontWeight('medium')), children: dosage })), form && _jsx("span", { className: cm.textSize('xs'), children: form })] }), instructions && _jsx("p", { className: cm.textSize('sm'), children: instructions }), _jsxs("div", { className: cm.flex({ align: 'center', gap: 'sm', wrap: 'wrap' }), children: [prescriber && (_jsxs("span", { className: cm.textSize('xs'), children: [t('medication.prescribedBy', {}, { defaultValue: 'Prescribed by' }), " ", prescriber] })), supplyDays !== undefined && (_jsxs("span", { className: cm.cn(cm.textSize('xs'), cm.fontWeight('semibold')), children: ["\u00B7", ' ', t('medication.supplyDays', { days: supplyDays }, { defaultValue: '{{days}} day supply' })] })), refills !== undefined && (_jsxs("span", { className: cm.textSize('xs'), children: ["\u00B7 ", t('medication.refills', { refills }, { defaultValue: '{{refills}} refills' })] }))] })] }), actions && _jsx("div", { className: cm.shrink0, children: actions })] }) }));
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-medication-row-react",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Medication row — name, dosage, form, instructions, refills remaining, prescriber",
5
5
  "homepage": "https://www.molecule.dev/packages/app-medication-row-react",
6
6
  "type": "module",
@@ -39,9 +39,9 @@
39
39
  "react": "^18.0.0 || ^19.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@molecule/app-react": "4.0.0",
43
- "@molecule/app-ui": "1.3.9",
44
- "@molecule/app-ui-react": "4.0.0",
42
+ "@molecule/app-react": "4.5.0",
43
+ "@molecule/app-ui": "1.3.11",
44
+ "@molecule/app-ui-react": "4.1.2",
45
45
  "@types/node": "26.6.5",
46
46
  "@types/react": "19.3.0",
47
47
  "@types/react-dom": "19.3.0",