@flipdish/ui-library 0.58.1 → 0.59.0
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/dist/components/atoms/Badge/index.cjs +15 -59
- package/dist/components/atoms/Badge/index.cjs.map +1 -1
- package/dist/components/atoms/Badge/index.d.ts +22 -98
- package/dist/components/atoms/Badge/index.d.ts.map +1 -1
- package/dist/components/atoms/Badge/index.js +15 -59
- package/dist/components/atoms/Badge/index.js.map +1 -1
- package/dist/components/atoms/Badges/Badge/Badge.cjs +71 -0
- package/dist/components/atoms/Badges/Badge/Badge.cjs.map +1 -0
- package/dist/components/atoms/Badges/Badge/Badge.d.ts +99 -0
- package/dist/components/atoms/Badges/Badge/Badge.d.ts.map +1 -0
- package/dist/components/atoms/Badges/Badge/Badge.js +63 -0
- package/dist/components/atoms/Badges/Badge/Badge.js.map +1 -0
- package/dist/components/atoms/{Badge → Badges/Badge}/Badge.styles.cjs +1 -1
- package/dist/components/atoms/Badges/Badge/Badge.styles.cjs.map +1 -0
- package/dist/components/atoms/{Badge → Badges/Badge}/Badge.styles.d.ts +1 -1
- package/dist/components/atoms/Badges/Badge/Badge.styles.d.ts.map +1 -0
- package/dist/components/atoms/{Badge → Badges/Badge}/Badge.styles.js +1 -1
- package/dist/components/atoms/Badges/Badge/Badge.styles.js.map +1 -0
- package/dist/components/atoms/Badges/Badge/badge.types.cjs.map +1 -0
- package/dist/components/atoms/Badges/Badge/badge.types.d.ts.map +1 -0
- package/dist/components/atoms/Badges/Badge/badge.types.js.map +1 -0
- package/dist/components/atoms/{Badge → Badges/Badge/utilities}/badge.utils.d.ts +2 -2
- package/dist/components/atoms/Badges/Badge/utilities/badge.utils.d.ts.map +1 -0
- package/dist/components/atoms/Badges/BadgeGroup/BadgeGroup.cjs +116 -0
- package/dist/components/atoms/Badges/BadgeGroup/BadgeGroup.cjs.map +1 -0
- package/dist/components/atoms/Badges/BadgeGroup/BadgeGroup.d.ts +38 -0
- package/dist/components/atoms/Badges/BadgeGroup/BadgeGroup.d.ts.map +1 -0
- package/dist/components/atoms/Badges/BadgeGroup/BadgeGroup.js +114 -0
- package/dist/components/atoms/Badges/BadgeGroup/BadgeGroup.js.map +1 -0
- package/dist/components/atoms/Badges/index.cjs +16 -0
- package/dist/components/atoms/Badges/index.cjs.map +1 -0
- package/dist/components/atoms/Badges/index.d.ts +16 -0
- package/dist/components/atoms/Badges/index.d.ts.map +1 -0
- package/dist/components/atoms/Badges/index.js +3 -0
- package/dist/components/atoms/Badges/index.js.map +1 -0
- package/dist/components/forms/fields/FormRadioCardGroup/index.cjs +3 -3
- package/dist/components/forms/fields/FormRadioCardGroup/index.cjs.map +1 -1
- package/dist/components/forms/fields/FormRadioCardGroup/index.d.ts +3 -3
- package/dist/components/forms/fields/FormRadioCardGroup/index.d.ts.map +1 -1
- package/dist/components/forms/fields/FormRadioCardGroup/index.js +3 -3
- package/dist/components/layouts/PageHubLayout/components/PageHubLayoutSectionNav.cjs +2 -2
- package/dist/components/layouts/PageHubLayout/components/PageHubLayoutSectionNav.cjs.map +1 -1
- package/dist/components/layouts/PageHubLayout/components/PageHubLayoutSectionNav.js +1 -1
- package/dist/components/molecules/ActivityFeed/index.cjs +2 -2
- package/dist/components/molecules/ActivityFeed/index.cjs.map +1 -1
- package/dist/components/molecules/ActivityFeed/index.d.ts +1 -1
- package/dist/components/molecules/ActivityFeed/index.d.ts.map +1 -1
- package/dist/components/molecules/ActivityFeed/index.js +1 -1
- package/dist/components/molecules/BadgeGroup/index.cjs +3 -110
- package/dist/components/molecules/BadgeGroup/index.cjs.map +1 -1
- package/dist/components/molecules/BadgeGroup/index.d.ts +5 -37
- package/dist/components/molecules/BadgeGroup/index.d.ts.map +1 -1
- package/dist/components/molecules/BadgeGroup/index.js +3 -110
- package/dist/components/molecules/BadgeGroup/index.js.map +1 -1
- package/dist/components/molecules/RadioCards/RadioCardAvatar/RadioCardAvatar.cjs +37 -0
- package/dist/components/molecules/RadioCards/RadioCardAvatar/RadioCardAvatar.cjs.map +1 -0
- package/dist/components/molecules/RadioCards/RadioCardAvatar/RadioCardAvatar.d.ts +33 -0
- package/dist/components/molecules/RadioCards/RadioCardAvatar/RadioCardAvatar.d.ts.map +1 -0
- package/dist/components/molecules/RadioCards/RadioCardAvatar/RadioCardAvatar.js +35 -0
- package/dist/components/molecules/RadioCards/RadioCardAvatar/RadioCardAvatar.js.map +1 -0
- package/dist/components/molecules/{RadioGroup → RadioCards/RadioCardAvatar}/hooks/useCommitOnPress.cjs +1 -1
- package/dist/components/molecules/RadioCards/RadioCardAvatar/hooks/useCommitOnPress.cjs.map +1 -0
- package/dist/components/molecules/{RadioGroup → RadioCards/RadioCardAvatar}/hooks/useCommitOnPress.d.ts +6 -6
- package/dist/components/molecules/RadioCards/RadioCardAvatar/hooks/useCommitOnPress.d.ts.map +1 -0
- package/dist/components/molecules/{RadioGroup → RadioCards/RadioCardAvatar}/hooks/useCommitOnPress.js +1 -1
- package/dist/components/molecules/RadioCards/RadioCardAvatar/hooks/useCommitOnPress.js.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupRadioButton.cjs → RadioCards/RadioCardBullet/RadioCardBullet.cjs} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardBullet/RadioCardBullet.cjs.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupRadioButton.d.ts → RadioCards/RadioCardBullet/RadioCardBullet.d.ts} +5 -5
- package/dist/components/molecules/RadioCards/RadioCardBullet/RadioCardBullet.d.ts.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupRadioButton.js → RadioCards/RadioCardBullet/RadioCardBullet.js} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardBullet/RadioCardBullet.js.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupCheckbox.cjs → RadioCards/RadioCardCheck/RadioCardCheck.cjs} +4 -4
- package/dist/components/molecules/RadioCards/RadioCardCheck/RadioCardCheck.cjs.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupCheckbox.d.ts → RadioCards/RadioCardCheck/RadioCardCheck.d.ts} +6 -7
- package/dist/components/molecules/RadioCards/RadioCardCheck/RadioCardCheck.d.ts.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupCheckbox.js → RadioCards/RadioCardCheck/RadioCardCheck.js} +4 -4
- package/dist/components/molecules/RadioCards/RadioCardCheck/RadioCardCheck.js.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupIconSimple.cjs → RadioCards/RadioCardIcon/RadioCardIcon.cjs} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardIcon/RadioCardIcon.cjs.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupIconSimple.d.ts → RadioCards/RadioCardIcon/RadioCardIcon.d.ts} +5 -6
- package/dist/components/molecules/RadioCards/RadioCardIcon/RadioCardIcon.d.ts.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupIconSimple.js → RadioCards/RadioCardIcon/RadioCardIcon.js} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardIcon/RadioCardIcon.js.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupIconCard.cjs → RadioCards/RadioCardIconFeatured/RadioCardIconFeatured.cjs} +5 -5
- package/dist/components/molecules/RadioCards/RadioCardIconFeatured/RadioCardIconFeatured.cjs.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupIconCard.d.ts → RadioCards/RadioCardIconFeatured/RadioCardIconFeatured.d.ts} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardIconFeatured/RadioCardIconFeatured.d.ts.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupIconCard.js → RadioCards/RadioCardIconFeatured/RadioCardIconFeatured.js} +4 -4
- package/dist/components/molecules/RadioCards/RadioCardIconFeatured/RadioCardIconFeatured.js.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupPaymentIcon.cjs → RadioCards/RadioCardPayment/RadioCardPayment.cjs} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardPayment/RadioCardPayment.cjs.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupPaymentIcon.d.ts → RadioCards/RadioCardPayment/RadioCardPayment.d.ts} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardPayment/RadioCardPayment.d.ts.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupPaymentIcon.js → RadioCards/RadioCardPayment/RadioCardPayment.js} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardPayment/RadioCardPayment.js.map +1 -0
- package/dist/components/molecules/{RadioGroup → RadioCards}/hooks/useOptionIds.cjs.map +1 -1
- package/dist/components/molecules/{RadioGroup → RadioCards}/hooks/useOptionIds.d.ts.map +1 -1
- package/dist/components/molecules/{RadioGroup → RadioCards}/hooks/useOptionIds.js.map +1 -1
- package/dist/components/molecules/RadioCards/index.cjs +18 -0
- package/dist/components/molecules/RadioCards/index.cjs.map +1 -0
- package/dist/components/molecules/RadioCards/index.d.ts +23 -0
- package/dist/components/molecules/RadioCards/index.d.ts.map +1 -0
- package/dist/components/molecules/RadioCards/index.js +7 -0
- package/dist/components/molecules/RadioCards/index.js.map +1 -0
- package/dist/components/molecules/{RadioGroup/radioGroup.types.d.ts → RadioCards/radioCards.types.d.ts} +12 -10
- package/dist/components/molecules/RadioCards/radioCards.types.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.cjs +2 -7
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.cjs.map +1 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.d.ts +2 -7
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.d.ts.map +1 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.js +2 -7
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.js.map +1 -1
- package/dist/components/molecules/RadioGroup/index.cjs +26 -14
- package/dist/components/molecules/RadioGroup/index.cjs.map +1 -1
- package/dist/components/molecules/RadioGroup/index.d.ts +25 -8
- package/dist/components/molecules/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/molecules/RadioGroup/index.js +23 -7
- package/dist/components/molecules/RadioGroup/index.js.map +1 -1
- package/dist/components/molecules/Tabs/index.cjs +2 -2
- package/dist/components/molecules/Tabs/index.cjs.map +1 -1
- package/dist/components/molecules/Tabs/index.js +1 -1
- package/dist/components/organisms/Calendar/components/CalendarHeader.cjs +2 -2
- package/dist/components/organisms/Calendar/components/CalendarHeader.cjs.map +1 -1
- package/dist/components/organisms/Calendar/components/CalendarHeader.js +1 -1
- package/dist/components/organisms/HeaderNavigation/components/NavItem.cjs +2 -2
- package/dist/components/organisms/HeaderNavigation/components/NavItem.cjs.map +1 -1
- package/dist/components/organisms/HeaderNavigation/components/NavItem.js +1 -1
- package/dist/components/organisms/PageHeader/components/PageHeaderTabNav.cjs +2 -2
- package/dist/components/organisms/PageHeader/components/PageHeaderTabNav.cjs.map +1 -1
- package/dist/components/organisms/PageHeader/components/PageHeaderTabNav.js +1 -1
- package/dist/components/organisms/SidebarNavigation/components/NavItem.cjs +2 -2
- package/dist/components/organisms/SidebarNavigation/components/NavItem.cjs.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/NavItem.js +1 -1
- package/dist/components/organisms/Table/index.cjs +2 -2
- package/dist/components/organisms/Table/index.cjs.map +1 -1
- package/dist/components/organisms/Table/index.js +1 -1
- package/dist/native/components/atoms/Badge/index.d.ts +20 -97
- package/dist/native/components/atoms/Badge/index.d.ts.map +1 -1
- package/dist/native/components/atoms/Badge/index.js +17 -62
- package/dist/native/components/atoms/Badge/index.js.map +1 -1
- package/dist/native/components/atoms/Badges/Badge/Badge.d.ts +98 -0
- package/dist/native/components/atoms/Badges/Badge/Badge.d.ts.map +1 -0
- package/dist/native/components/atoms/Badges/Badge/Badge.js +66 -0
- package/dist/native/components/atoms/Badges/Badge/Badge.js.map +1 -0
- package/dist/native/components/atoms/{Badge → Badges/Badge}/Badge.styles.d.ts +1 -1
- package/dist/native/components/atoms/Badges/Badge/Badge.styles.d.ts.map +1 -0
- package/dist/native/components/atoms/{Badge → Badges/Badge}/Badge.styles.js +1 -1
- package/dist/native/components/atoms/Badges/Badge/Badge.styles.js.map +1 -0
- package/dist/native/components/atoms/Badges/Badge/badge.types.d.ts.map +1 -0
- package/dist/native/components/atoms/Badges/Badge/badge.types.js.map +1 -0
- package/dist/native/components/atoms/{Badge → Badges/Badge/utilities}/badge.utils.d.ts +2 -2
- package/dist/native/components/atoms/Badges/Badge/utilities/badge.utils.d.ts.map +1 -0
- package/dist/native/components/atoms/{Badge → Badges/Badge/utilities}/badge.utils.js +1 -1
- package/dist/native/components/atoms/Badges/Badge/utilities/badge.utils.js.map +1 -0
- package/dist/native/components/atoms/Badges/index.d.ts +5 -0
- package/dist/native/components/atoms/Badges/index.d.ts.map +1 -0
- package/dist/native/components/atoms/Badges/index.js +2 -0
- package/dist/native/components/atoms/Badges/index.js.map +1 -0
- package/dist/native/components/molecules/RadioCards/index.d.ts +12 -0
- package/package.json +1 -1
- package/dist/components/atoms/Badge/Badge.styles.cjs.map +0 -1
- package/dist/components/atoms/Badge/Badge.styles.d.ts.map +0 -1
- package/dist/components/atoms/Badge/Badge.styles.js.map +0 -1
- package/dist/components/atoms/Badge/badge.types.cjs.map +0 -1
- package/dist/components/atoms/Badge/badge.types.d.ts.map +0 -1
- package/dist/components/atoms/Badge/badge.types.js.map +0 -1
- package/dist/components/atoms/Badge/badge.utils.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatarCard.cjs +0 -39
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatarCard.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatarCard.d.ts +0 -32
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatarCard.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatarCard.js +0 -37
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatarCard.js.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupCheckbox.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupCheckbox.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupCheckbox.js.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupIconCard.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupIconCard.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupIconCard.js.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupIconSimple.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupIconSimple.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupIconSimple.js.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupPaymentIcon.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupPaymentIcon.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupPaymentIcon.js.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupRadioButton.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupRadioButton.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupRadioButton.js.map +0 -1
- package/dist/components/molecules/RadioGroup/hooks/useCommitOnPress.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/hooks/useCommitOnPress.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/hooks/useCommitOnPress.js.map +0 -1
- package/dist/components/molecules/RadioGroup/radioGroup.types.d.ts.map +0 -1
- package/dist/native/components/atoms/Badge/Badge.styles.d.ts.map +0 -1
- package/dist/native/components/atoms/Badge/Badge.styles.js.map +0 -1
- package/dist/native/components/atoms/Badge/badge.types.d.ts.map +0 -1
- package/dist/native/components/atoms/Badge/badge.types.js.map +0 -1
- package/dist/native/components/atoms/Badge/badge.utils.d.ts.map +0 -1
- package/dist/native/components/atoms/Badge/badge.utils.js.map +0 -1
- /package/dist/components/atoms/{Badge → Badges/Badge}/badge.types.cjs +0 -0
- /package/dist/components/atoms/{Badge → Badges/Badge}/badge.types.d.ts +0 -0
- /package/dist/components/atoms/{Badge → Badges/Badge}/badge.types.js +0 -0
- /package/dist/components/molecules/{RadioGroup → RadioCards}/hooks/useOptionIds.cjs +0 -0
- /package/dist/components/molecules/{RadioGroup → RadioCards}/hooks/useOptionIds.d.ts +0 -0
- /package/dist/components/molecules/{RadioGroup → RadioCards}/hooks/useOptionIds.js +0 -0
- /package/dist/native/components/atoms/{Badge → Badges/Badge}/badge.types.d.ts +0 -0
- /package/dist/native/components/atoms/{Badge → Badges/Badge}/badge.types.js +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var uiIcons = require('@flipdish/ui-icons');
|
|
5
|
-
var
|
|
5
|
+
var Badges = require('@flipdish/ui-library/components/atoms/Badges');
|
|
6
6
|
var Checkboxes = require('@flipdish/ui-library/components/atoms/Checkboxes');
|
|
7
7
|
var Tooltip = require('@flipdish/ui-library/components/atoms/Tooltip');
|
|
8
8
|
var Dropdown = require('@flipdish/ui-library/components/molecules/Dropdown');
|
|
@@ -29,7 +29,7 @@ const TableCardHeader = ({ title, badge, description, contentTrailing, className
|
|
|
29
29
|
return null;
|
|
30
30
|
if (React.isValidElement(badge))
|
|
31
31
|
return badge;
|
|
32
|
-
return (jsxRuntime.jsx(
|
|
32
|
+
return (jsxRuntime.jsx(Badges.Badge, { color: "gray", size: "sm", type: "modern", children: badge }));
|
|
33
33
|
};
|
|
34
34
|
return (jsxRuntime.jsxs("div", { className: cx.cx('relative flex flex-col items-start gap-4 border-b border-secondary bg-primary px-4 md:flex-row', size === 'sm' ? 'py-4 md:px-5' : 'py-5 md:px-6', className), children: [jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col gap-0.5", children: [jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [jsxRuntime.jsx("h2", { className: "text-md font-semibold text-primary", children: title }), renderBadge()] }), description && jsxRuntime.jsx("p", { className: "text-sm text-tertiary", children: description })] }), contentTrailing] }));
|
|
35
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../src/components/organisms/Table/index.tsx"],"sourcesContent":[null],"names":["_jsxs","Dropdown","_jsx","Edit01","Copy01","Trash01","createContext","cx","useContext","isValidElement","Badge","useResolvedTestId","useSelectableRowRegistry","reportSelectionChange","AriaTable","selectionOfKey","hasSelectionListener","useTableOptions","AriaTableHeader","AriaColumn","Checkbox","AriaCollection","joinTestId","slugifyTestId","AriaGroup","Tooltip","TooltipTrigger","HelpCircle","TableSortIcon","useRegisterSelectableRow","AriaRow","AriaCell","AriaTableBody"],"mappings":";;;;;;;;;;;;;;;;AAmCA;AACO,MAAM,uBAAuB,GAAG,OACrCA,eAAA,CAACC,iBAAQ,CAAC,IAAI,eACZC,cAAA,CAACD,iBAAQ,CAAC,UAAU,EAAA,EAAC,KAAK,EAAC,UAAU,EAAA,CAAG,EAExCC,eAACD,iBAAQ,CAAC,OAAO,EAAA,EAAC,SAAS,EAAC,OAAO,EAAA,QAAA,EACjCD,gBAACC,iBAAQ,CAAC,IAAI,EAAA,EAAA,QAAA,EAAA,CACZC,cAAA,CAACD,iBAAQ,CAAC,IAAI,IAAC,IAAI,EAAEE,cAAM,EAAA,QAAA,EACzBD,yBAAM,SAAS,EAAC,MAAM,EAAA,QAAA,EAAA,MAAA,EAAA,CAAY,EAAA,CACpB,EAChBA,cAAA,CAACD,iBAAQ,CAAC,IAAI,EAAA,EAAC,IAAI,EAAEG,cAAM,YACzBF,cAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,MAAM,EAAA,QAAA,EAAA,WAAA,EAAA,CAAiB,EAAA,CACzB,EAChBA,eAACD,iBAAQ,CAAC,IAAI,EAAA,EAAC,IAAI,EAAEI,eAAO,EAAA,QAAA,EAC1BH,yBAAM,SAAS,EAAC,MAAM,EAAA,QAAA,EAAA,QAAA,EAAA,CAAc,EAAA,CACtB,IACF,EAAA,CACC,CAAA,EAAA,CACL;AAWlB,MAAM,YAAY,GAAGI,mBAAa,CAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAErE;AACA,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,KAAK,EAA2D,KAAI;AAChI,IAAA,QACEJ,cAAA,CAAC,YAAY,CAAC,QAAQ,EAAA,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAA,QAAA,EACpCA,cAAA,CAAA,KAAA,EAAA,EAAA,GAAS,KAAK,EAAE,SAAS,EAAEK,KAAE,CAAC,uEAAuE,EAAE,SAAS,CAAC,EAAA,QAAA,EAC9G,QAAQ,EAAA,CACL,EAAA,CACgB;AAE5B,CAAC;AAeD;AACA,MAAM,eAAe,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAwB,KAAI;IAC1G,MAAM,EAAE,IAAI,EAAE,GAAGC,gBAAU,CAAC,YAAY,CAAC;IAEzC,MAAM,WAAW,GAAG,MAAK;AACvB,QAAA,IAAI,CAAC,KAAK;AAAE,YAAA,OAAO,IAAI;QACvB,IAAIC,oBAAc,CAAC,KAAK,CAAC;AAAE,YAAA,OAAO,KAAK;AACvC,QAAA,QACEP,cAAA,CAACQ,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/organisms/Table/index.tsx"],"sourcesContent":[null],"names":["_jsxs","Dropdown","_jsx","Edit01","Copy01","Trash01","createContext","cx","useContext","isValidElement","Badge","useResolvedTestId","useSelectableRowRegistry","reportSelectionChange","AriaTable","selectionOfKey","hasSelectionListener","useTableOptions","AriaTableHeader","AriaColumn","Checkbox","AriaCollection","joinTestId","slugifyTestId","Aria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+1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { Edit01, Copy01, Trash01, HelpCircle } from '@flipdish/ui-icons';
|
|
3
|
-
import { Badge } from '@flipdish/ui-library/components/atoms/
|
|
3
|
+
import { Badge } from '@flipdish/ui-library/components/atoms/Badges';
|
|
4
4
|
import { Checkbox } from '@flipdish/ui-library/components/atoms/Checkboxes';
|
|
5
5
|
import { Tooltip, TooltipTrigger } from '@flipdish/ui-library/components/atoms/Tooltip';
|
|
6
6
|
import { Dropdown } from '@flipdish/ui-library/components/molecules/Dropdown';
|
|
@@ -1,98 +1,21 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
/** Layout classes merged onto the root `View`, such as margins. Colour goes through `color`. */
|
|
23
|
-
className?: string;
|
|
24
|
-
/** Overrides the generated `testID` (defaults to `fd-badge`). */
|
|
25
|
-
'data-testid'?: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* React Native `Badge` — a compact label for statuses, categories, counts and tags, drawn as a
|
|
29
|
-
* `View` holding a `Text`. All variants and sizes match web.
|
|
30
|
-
*
|
|
31
|
-
* - The ring becomes a `border` on every variant, since `ring-inset` is unverified under `react-native-css`.
|
|
32
|
-
* - Label and icon colours are light-mode hex values, not tokens: `Text` ignores `className` under the
|
|
33
|
-
* current `react-native-css` preview and an icon has no `currentColor` to inherit (see `Badge.styles.ts`).
|
|
34
|
-
* - `BadgeWithFlag` is not available yet because `Flag` has no React Native implementation.
|
|
35
|
-
* - `className` accepts layout classes only; transitions have no equivalent.
|
|
36
|
-
*
|
|
37
|
-
* @summary compact status, category, or count label (React Native)
|
|
38
|
-
*/
|
|
39
|
-
export declare const Badge: <T extends BadgeTypes>({ type, size, color, children, className, "data-testid": dataTestId, }: BadgeProps<T>) => import("react").JSX.Element;
|
|
40
|
-
interface BadgeWithDotProps<T extends BadgeTypes> {
|
|
41
|
-
type?: T;
|
|
42
|
-
size?: Sizes;
|
|
43
|
-
color?: BadgeTypeToColorMap<typeof styles.types.addon>[T];
|
|
44
|
-
className?: string;
|
|
45
|
-
children: ReactNode;
|
|
46
|
-
/** Overrides the generated `testID` (defaults to `fd-badge`); the `Dot` derives `--dot` from it. */
|
|
47
|
-
'data-testid'?: string;
|
|
48
|
-
}
|
|
49
|
-
/** `Badge` variant with a coloured status dot before the label. */
|
|
50
|
-
export declare const BadgeWithDot: <T extends BadgeTypes>({ size, color, type, className, children, "data-testid": dataTestId, }: BadgeWithDotProps<T>) => import("react").JSX.Element;
|
|
51
|
-
interface BadgeWithIconProps<T extends BadgeTypes> {
|
|
52
|
-
type?: T;
|
|
53
|
-
size?: Sizes;
|
|
54
|
-
color?: BadgeTypeToColorMap<typeof styles.types.addon>[T];
|
|
55
|
-
iconLeading?: IconComponent;
|
|
56
|
-
iconTrailing?: IconComponent;
|
|
57
|
-
children: ReactNode;
|
|
58
|
-
className?: string;
|
|
59
|
-
/** Overrides the generated `testID` (defaults to `fd-badge`); the leading/trailing icon derives `--icon` from it. */
|
|
60
|
-
'data-testid'?: string;
|
|
61
|
-
}
|
|
62
|
-
/** `Badge` variant with a leading or trailing icon beside the label. */
|
|
63
|
-
export declare const BadgeWithIcon: <T extends BadgeTypes>({ size, color, type, iconLeading: IconLeading, iconTrailing: IconTrailing, children, className, "data-testid": dataTestId, }: BadgeWithIconProps<T>) => import("react").JSX.Element;
|
|
64
|
-
interface BadgeWithImageProps<T extends BadgeTypes> {
|
|
65
|
-
type?: T;
|
|
66
|
-
size?: Sizes;
|
|
67
|
-
/** URL of the image shown before the label. */
|
|
68
|
-
imgSrc: string;
|
|
69
|
-
color?: BadgeColor<T>;
|
|
70
|
-
children: ReactNode;
|
|
71
|
-
}
|
|
72
|
-
/** `Badge` variant with a small round image before the label. */
|
|
73
|
-
export declare const BadgeWithImage: <T extends BadgeTypes>({ size, color, type, imgSrc, children, }: BadgeWithImageProps<T>) => import("react").JSX.Element;
|
|
74
|
-
interface BadgeWithButtonProps<T extends BadgeTypes> {
|
|
75
|
-
type?: T;
|
|
76
|
-
size?: Sizes;
|
|
77
|
-
/** Icon shown in the trailing button; defaults to a close `X`. */
|
|
78
|
-
icon?: IconComponent;
|
|
79
|
-
color?: BadgeColor<T>;
|
|
80
|
-
children: ReactNode;
|
|
81
|
-
/** The accessible name of the button. */
|
|
82
|
-
buttonLabel?: string;
|
|
83
|
-
/** Called when the trailing button is pressed. */
|
|
84
|
-
onButtonClick?: PressableProps['onPress'];
|
|
85
|
-
/** Overrides the generated `testID` (defaults to `fd-badge`); the dismiss button derives `--close-button` from it. */
|
|
86
|
-
'data-testid'?: string;
|
|
87
|
-
}
|
|
88
|
-
/** `Badge` variant with a trailing icon button, typically to dismiss or remove the tag. */
|
|
89
|
-
export declare const BadgeWithButton: <T extends BadgeTypes>({ size, color, type, icon: Icon, buttonLabel, onButtonClick, children, "data-testid": dataTestId, }: BadgeWithButtonProps<T>) => import("react").JSX.Element;
|
|
90
|
-
interface BadgeIconProps<T extends BadgeTypes> {
|
|
91
|
-
type?: T;
|
|
92
|
-
size?: Sizes;
|
|
93
|
-
icon: IconComponent;
|
|
94
|
-
color?: BadgeColor<T>;
|
|
95
|
-
}
|
|
96
|
-
/** Icon-only `Badge` with no label text. */
|
|
97
|
-
export declare const BadgeIcon: <T extends BadgeTypes>({ size, color, type, icon: Icon, }: BadgeIconProps<T>) => import("react").JSX.Element;
|
|
1
|
+
import { type BadgeColor as BadgeColorNext, type BadgeColors as BadgeColorsNext, BadgeIcon as BadgeIconNext, Badge as BadgeNext, type BadgeProps as BadgePropsNext, BadgeWithButton as BadgeWithButtonNext, BadgeWithDot as BadgeWithDotNext, BadgeWithIcon as BadgeWithIconNext, BadgeWithImage as BadgeWithImageNext } from '@flipdish/ui-library/components/atoms/Badges';
|
|
2
|
+
import type { BadgeTypes } from '../Badges/Badge/badge.types';
|
|
3
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
4
|
+
export declare const Badge: typeof BadgeNext;
|
|
5
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
6
|
+
export declare const BadgeWithDot: typeof BadgeWithDotNext;
|
|
7
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
8
|
+
export declare const BadgeWithIcon: typeof BadgeWithIconNext;
|
|
9
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
10
|
+
export declare const BadgeWithImage: typeof BadgeWithImageNext;
|
|
11
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
12
|
+
export declare const BadgeWithButton: typeof BadgeWithButtonNext;
|
|
13
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
14
|
+
export declare const BadgeIcon: typeof BadgeIconNext;
|
|
15
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
16
|
+
export type BadgeColors = BadgeColorsNext;
|
|
17
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
18
|
+
export type BadgeColor<T extends BadgeTypes> = BadgeColorNext<T>;
|
|
19
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
20
|
+
export type BadgeProps<T extends BadgeTypes> = BadgePropsNext<T>;
|
|
98
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Badge/index.native.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Badge/index.native.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,UAAU,IAAI,cAAc,EACjC,KAAK,WAAW,IAAI,eAAe,EACnC,SAAS,IAAI,aAAa,EAC1B,KAAK,IAAI,SAAS,EAClB,KAAK,UAAU,IAAI,cAAc,EACjC,eAAe,IAAI,mBAAmB,EACtC,YAAY,IAAI,gBAAgB,EAChC,aAAa,IAAI,iBAAiB,EAClC,cAAc,IAAI,kBAAkB,EACrC,MAAM,8CAA8C,CAAC;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,yGAAyG;AACzG,eAAO,MAAM,KAAK,EAAE,OAAO,SAAqB,CAAC;AACjD,yGAAyG;AACzG,eAAO,MAAM,YAAY,EAAE,OAAO,gBAAmC,CAAC;AACtE,yGAAyG;AACzG,eAAO,MAAM,aAAa,EAAE,OAAO,iBAAqC,CAAC;AACzE,yGAAyG;AACzG,eAAO,MAAM,cAAc,EAAE,OAAO,kBAAuC,CAAC;AAC5E,yGAAyG;AACzG,eAAO,MAAM,eAAe,EAAE,OAAO,mBAAyC,CAAC;AAC/E,yGAAyG;AACzG,eAAO,MAAM,SAAS,EAAE,OAAO,aAA6B,CAAC;AAC7D,yGAAyG;AACzG,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;AAC1C,yGAAyG;AACzG,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,UAAU,IAAI,cAAc,CAAC,CAAC,CAAC,CAAC;AACjE,yGAAyG;AACzG,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,UAAU,IAAI,cAAc,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,66 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { X } from '@flipdish/ui-icons';
|
|
3
|
-
import { Dot } from '../Dot/index.js';
|
|
4
|
-
import { cx } from '../../../utilities/cx/index.js';
|
|
5
|
-
import { useResolvedTestId, joinTestId } from '../../../utilities/testIdUtils/index.js';
|
|
6
|
-
import { useState } from 'react';
|
|
7
|
-
import { View, Pressable, Image, Text } from 'react-native';
|
|
8
|
-
import { styles } from './Badge.styles.js';
|
|
9
|
-
import { layoutClasses, resolveNativeTone } from './badge.utils.js';
|
|
1
|
+
import { Badge as Badge$1, BadgeIcon as BadgeIcon$1, BadgeWithButton as BadgeWithButton$1, BadgeWithDot as BadgeWithDot$1, BadgeWithIcon as BadgeWithIcon$1, BadgeWithImage as BadgeWithImage$1 } from '../Badges/Badge/Badge.js';
|
|
10
2
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
*/
|
|
26
|
-
const
|
|
27
|
-
const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
|
|
28
|
-
const tone = resolveNativeTone('standard', type, color);
|
|
29
|
-
return (jsx(View, { testID: badgeTestId, className: rootClass(type, styles.sizes.label[type][size], tone, className), children: jsx(Label, { size: size, color: tone.text, children: children }) }));
|
|
30
|
-
};
|
|
31
|
-
/** `Badge` variant with a coloured status dot before the label. */
|
|
32
|
-
const BadgeWithDot = ({ size = 'md', color = 'gray', type = 'pill-color', className, children, 'data-testid': dataTestId, }) => {
|
|
33
|
-
const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
|
|
34
|
-
const tone = resolveNativeTone('addon', type, color);
|
|
35
|
-
const dotColor = styles.types.addon[type].styles[color].dotColor;
|
|
36
|
-
return (jsxs(View, { testID: badgeTestId, className: rootClass(type, styles.sizes.dot[type][size], tone, className), children: [jsx(Dot, { color: dotColor, size: "sm", "data-testid": joinTestId(badgeTestId, 'dot') }), jsx(Label, { size: size, color: tone.text, children: children })] }));
|
|
37
|
-
};
|
|
38
|
-
/** `Badge` variant with a leading or trailing icon beside the label. */
|
|
39
|
-
const BadgeWithIcon = ({ size = 'md', color = 'gray', type = 'pill-color', iconLeading: IconLeading, iconTrailing: IconTrailing, children, className, 'data-testid': dataTestId, }) => {
|
|
40
|
-
const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
|
|
41
|
-
const tone = resolveNativeTone('addon', type, color);
|
|
42
|
-
const placement = IconLeading ? 'leading' : 'trailing';
|
|
43
|
-
const iconProps = { size: styles.native.iconSize, color: tone.addon, strokeWidth: styles.native.iconStrokeWidth };
|
|
44
|
-
return (jsxs(View, { testID: badgeTestId, className: rootClass(type, styles.sizes.icon[type][size][placement], tone, className), children: [IconLeading && (jsx(View, { testID: joinTestId(badgeTestId, 'icon'), children: jsx(IconLeading, { ...iconProps }) })), jsx(Label, { size: size, color: tone.text, children: children }), IconTrailing && (jsx(View, { testID: joinTestId(badgeTestId, 'icon'), children: jsx(IconTrailing, { ...iconProps }) }))] }));
|
|
45
|
-
};
|
|
46
|
-
/** `Badge` variant with a small round image before the label. */
|
|
47
|
-
const BadgeWithImage = ({ size = 'md', color = 'gray', type = 'pill-color', imgSrc, children, }) => {
|
|
48
|
-
const tone = resolveNativeTone('standard', type, color);
|
|
49
|
-
const { imageSize } = styles.native;
|
|
50
|
-
return (jsxs(View, { className: rootClass(type, styles.sizes.media[type][size], tone), children: [jsx(Image, { source: { uri: imgSrc }, accessibilityLabel: "Badge image", style: { width: imageSize, height: imageSize, borderRadius: imageSize / 2 } }), jsx(Label, { size: size, color: tone.text, children: children })] }));
|
|
51
|
-
};
|
|
52
|
-
/** `Badge` variant with a trailing icon button, typically to dismiss or remove the tag. */
|
|
53
|
-
const BadgeWithButton = ({ size = 'md', color = 'gray', type = 'pill-color', icon: Icon = X, buttonLabel, onButtonClick, children, 'data-testid': dataTestId, }) => {
|
|
54
|
-
const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
|
|
55
|
-
const [pressed, setPressed] = useState(false);
|
|
56
|
-
const tone = resolveNativeTone('standard', type, color);
|
|
57
|
-
return (jsxs(View, { testID: badgeTestId, className: rootClass(type, styles.sizes.button[type][size], tone), children: [jsx(Label, { size: size, color: tone.text, children: children }), jsx(Pressable, { testID: joinTestId(badgeTestId, 'close-button'), accessibilityRole: "button", accessibilityLabel: buttonLabel, onPress: onButtonClick, onPressIn: () => setPressed(true), onPressOut: () => setPressed(false), className: cx('items-center justify-center p-0.5', type === 'pill-color' ? 'rounded-full' : 'rounded-[3px]', pressed && tone.buttonPressedBg), children: jsx(Icon, { size: styles.native.iconSize, color: pressed ? tone.buttonPressed : tone.button, strokeWidth: styles.native.iconStrokeWidth }) })] }));
|
|
58
|
-
};
|
|
59
|
-
/** Icon-only `Badge` with no label text. */
|
|
60
|
-
const BadgeIcon = ({ size = 'md', color = 'gray', type = 'pill-color', icon: Icon, }) => {
|
|
61
|
-
const tone = resolveNativeTone('standard', type, color);
|
|
62
|
-
return (jsx(View, { className: cx(styles.native.common[type], 'border', tone.bg, tone.border, layoutClasses(styles.sizes.iconOnly[type][size])), children: jsx(Icon, { size: styles.native.iconSize, color: tone.addon, strokeWidth: styles.native.iconStrokeWidth }) }));
|
|
63
|
-
};
|
|
3
|
+
// Deprecated path, kept so existing imports keep working until the next major: `Badge` and its variants now live in
|
|
4
|
+
// `atoms/Badges`. A re-export file is banned elsewhere; this one is a temporary deprecation path, and without it this
|
|
5
|
+
// path would resolve to the "not available on React Native" stub.
|
|
6
|
+
// `typeof` keeps the declarations pointing at the new module: the variants' props are private, so an inferred type cannot name them.
|
|
7
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
8
|
+
const Badge = Badge$1;
|
|
9
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
10
|
+
const BadgeWithDot = BadgeWithDot$1;
|
|
11
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
12
|
+
const BadgeWithIcon = BadgeWithIcon$1;
|
|
13
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
14
|
+
const BadgeWithImage = BadgeWithImage$1;
|
|
15
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
16
|
+
const BadgeWithButton = BadgeWithButton$1;
|
|
17
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Badges`. Removed in the next major. */
|
|
18
|
+
const BadgeIcon = BadgeIcon$1;
|
|
64
19
|
|
|
65
20
|
export { Badge, BadgeIcon, BadgeWithButton, BadgeWithDot, BadgeWithIcon, BadgeWithImage };
|
|
66
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../src/components/atoms/Badge/index.native.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../src/components/atoms/Badge/index.native.tsx"],"sourcesContent":[null],"names":["BadgeNext","BadgeWithDotNext","BadgeWithIconNext","BadgeWithImageNext","BadgeWithButtonNext","BadgeIconNext"],"mappings":";;AAAA;AACA;AACA;AACA;AAeA;AACO,MAAM,KAAK,GAAqBA;AACvC;AACO,MAAM,YAAY,GAA4BC;AACrD;AACO,MAAM,aAAa,GAA6BC;AACvD;AACO,MAAM,cAAc,GAA8BC;AACzD;AACO,MAAM,eAAe,GAA+BC;AAC3D;AACO,MAAM,SAAS,GAAyBC;;"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
import { type PressableProps } from 'react-native';
|
|
3
|
+
import { styles } from './Badge.styles';
|
|
4
|
+
import type { BadgeTypes, BadgeTypeToColorMap, Sizes } from './badge.types';
|
|
5
|
+
type IconComponent = FC<{
|
|
6
|
+
size?: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
strokeWidth?: number;
|
|
9
|
+
}>;
|
|
10
|
+
/** The colours a badge accepts for a given `type`; `modern` is neutral, so it only takes `gray`. */
|
|
11
|
+
export type BadgeColor<T extends BadgeTypes> = BadgeTypeToColorMap<typeof styles.types.standard>[T];
|
|
12
|
+
export interface BadgeProps<T extends BadgeTypes> {
|
|
13
|
+
/** Selects the shape: a fully rounded `pill-color`, a square-cornered `color`, or a neutral `modern`. */
|
|
14
|
+
type?: T;
|
|
15
|
+
/** Sets the padding and text size. */
|
|
16
|
+
size?: Sizes;
|
|
17
|
+
/** Sets the fill, text and border colours; the options available depend on `type`. */
|
|
18
|
+
color?: BadgeColor<T>;
|
|
19
|
+
/** Label shown inside the badge. */
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
/** Layout classes merged onto the root `View`, such as margins. Colour goes through `color`. */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** Overrides the generated `testID` (defaults to `fd-badge`). */
|
|
24
|
+
'data-testid'?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* React Native `Badge` — a compact label for statuses, categories, counts and tags, drawn as a
|
|
28
|
+
* `View` holding a `Text`. All variants and sizes match web.
|
|
29
|
+
*
|
|
30
|
+
* - The ring becomes a `border` on every variant, since `ring-inset` is unverified under `react-native-css`.
|
|
31
|
+
* - Label and icon colours are light-mode hex values, not tokens: `Text` ignores `className` under the
|
|
32
|
+
* current `react-native-css` preview and an icon has no `currentColor` to inherit (see `Badge.styles.ts`).
|
|
33
|
+
* - `BadgeWithFlag` is not available yet because `Flag` has no React Native implementation.
|
|
34
|
+
* - `className` accepts layout classes only; transitions have no equivalent.
|
|
35
|
+
*
|
|
36
|
+
* @summary compact status, category, or count label (React Native)
|
|
37
|
+
*/
|
|
38
|
+
export declare const Badge: <T extends BadgeTypes>({ type, size, color, children, className, "data-testid": dataTestId, }: BadgeProps<T>) => import("react").JSX.Element;
|
|
39
|
+
interface BadgeWithDotProps<T extends BadgeTypes> {
|
|
40
|
+
type?: T;
|
|
41
|
+
size?: Sizes;
|
|
42
|
+
color?: BadgeTypeToColorMap<typeof styles.types.addon>[T];
|
|
43
|
+
className?: string;
|
|
44
|
+
children: ReactNode;
|
|
45
|
+
/** Overrides the generated `testID` (defaults to `fd-badge`); the `Dot` derives `--dot` from it. */
|
|
46
|
+
'data-testid'?: string;
|
|
47
|
+
}
|
|
48
|
+
/** `Badge` variant with a coloured status dot before the label. */
|
|
49
|
+
export declare const BadgeWithDot: <T extends BadgeTypes>({ size, color, type, className, children, "data-testid": dataTestId, }: BadgeWithDotProps<T>) => import("react").JSX.Element;
|
|
50
|
+
interface BadgeWithIconProps<T extends BadgeTypes> {
|
|
51
|
+
type?: T;
|
|
52
|
+
size?: Sizes;
|
|
53
|
+
color?: BadgeTypeToColorMap<typeof styles.types.addon>[T];
|
|
54
|
+
iconLeading?: IconComponent;
|
|
55
|
+
iconTrailing?: IconComponent;
|
|
56
|
+
children: ReactNode;
|
|
57
|
+
className?: string;
|
|
58
|
+
/** Overrides the generated `testID` (defaults to `fd-badge`); the leading/trailing icon derives `--icon` from it. */
|
|
59
|
+
'data-testid'?: string;
|
|
60
|
+
}
|
|
61
|
+
/** `Badge` variant with a leading or trailing icon beside the label. */
|
|
62
|
+
export declare const BadgeWithIcon: <T extends BadgeTypes>({ size, color, type, iconLeading: IconLeading, iconTrailing: IconTrailing, children, className, "data-testid": dataTestId, }: BadgeWithIconProps<T>) => import("react").JSX.Element;
|
|
63
|
+
interface BadgeWithImageProps<T extends BadgeTypes> {
|
|
64
|
+
type?: T;
|
|
65
|
+
size?: Sizes;
|
|
66
|
+
/** URL of the image shown before the label. */
|
|
67
|
+
imgSrc: string;
|
|
68
|
+
color?: BadgeColor<T>;
|
|
69
|
+
children: ReactNode;
|
|
70
|
+
}
|
|
71
|
+
/** `Badge` variant with a small round image before the label. */
|
|
72
|
+
export declare const BadgeWithImage: <T extends BadgeTypes>({ size, color, type, imgSrc, children, }: BadgeWithImageProps<T>) => import("react").JSX.Element;
|
|
73
|
+
interface BadgeWithButtonProps<T extends BadgeTypes> {
|
|
74
|
+
type?: T;
|
|
75
|
+
size?: Sizes;
|
|
76
|
+
/** Icon shown in the trailing button; defaults to a close `X`. */
|
|
77
|
+
icon?: IconComponent;
|
|
78
|
+
color?: BadgeColor<T>;
|
|
79
|
+
children: ReactNode;
|
|
80
|
+
/** The accessible name of the button. */
|
|
81
|
+
buttonLabel?: string;
|
|
82
|
+
/** Called when the trailing button is pressed. */
|
|
83
|
+
onButtonClick?: PressableProps['onPress'];
|
|
84
|
+
/** Overrides the generated `testID` (defaults to `fd-badge`); the dismiss button derives `--close-button` from it. */
|
|
85
|
+
'data-testid'?: string;
|
|
86
|
+
}
|
|
87
|
+
/** `Badge` variant with a trailing icon button, typically to dismiss or remove the tag. */
|
|
88
|
+
export declare const BadgeWithButton: <T extends BadgeTypes>({ size, color, type, icon: Icon, buttonLabel, onButtonClick, children, "data-testid": dataTestId, }: BadgeWithButtonProps<T>) => import("react").JSX.Element;
|
|
89
|
+
interface BadgeIconProps<T extends BadgeTypes> {
|
|
90
|
+
type?: T;
|
|
91
|
+
size?: Sizes;
|
|
92
|
+
icon: IconComponent;
|
|
93
|
+
color?: BadgeColor<T>;
|
|
94
|
+
}
|
|
95
|
+
/** Icon-only `Badge` with no label text. */
|
|
96
|
+
export declare const BadgeIcon: <T extends BadgeTypes>({ size, color, type, icon: Icon, }: BadgeIconProps<T>) => import("react").JSX.Element;
|
|
97
|
+
export {};
|
|
98
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/Badges/Badge/Badge.native.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAY,MAAM,OA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AC,EAAE,KAAK,CAAC;IACb,kEAAkE;IAClE,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,aAAa,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IAC1C,sHAAsH;IACtH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,2FAA2F;AAC3F,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,UAAU,EAAE,qGASnD,oBAAoB,CAAC,CAAC,CAAC,gCAuBzB,CAAC;AAEF,UAAU,cAAc,CAAC,CAAC,SAAS,UAAU;IAC3C,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;CACvB;AAED,4CAA4C;AAC5C,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,UAAU,EAAE,oCAK7C,cAAc,CAAC,CAAC,CAAC,gCAQnB,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { X } from '@flipdish/ui-icons';
|
|
3
|
+
import { Dot } from '../../Dot/index.js';
|
|
4
|
+
import { cx } from '../../../../utilities/cx/index.js';
|
|
5
|
+
import { useResolvedTestId, joinTestId } from '../../../../utilities/testIdUtils/index.js';
|
|
6
|
+
import { useState } from 'react';
|
|
7
|
+
import { View, Pressable, Image, Text } from 'react-native';
|
|
8
|
+
import { styles } from './Badge.styles.js';
|
|
9
|
+
import { layoutClasses, resolveNativeTone } from './utilities/badge.utils.js';
|
|
10
|
+
|
|
11
|
+
/** Root classes shared by every labelled variant: shape, fill, border and the layout half of the size. */
|
|
12
|
+
const rootClass = (type, sizeClasses, tone, className) => cx(styles.native.common[type], 'border', tone.bg, tone.border, layoutClasses(sizeClasses), className);
|
|
13
|
+
const Label = ({ size, color, children }) => (jsx(Text, { style: { color, fontWeight: '500', ...styles.native.text[size] }, children: children }));
|
|
14
|
+
/**
|
|
15
|
+
* React Native `Badge` — a compact label for statuses, categories, counts and tags, drawn as a
|
|
16
|
+
* `View` holding a `Text`. All variants and sizes match web.
|
|
17
|
+
*
|
|
18
|
+
* - The ring becomes a `border` on every variant, since `ring-inset` is unverified under `react-native-css`.
|
|
19
|
+
* - Label and icon colours are light-mode hex values, not tokens: `Text` ignores `className` under the
|
|
20
|
+
* current `react-native-css` preview and an icon has no `currentColor` to inherit (see `Badge.styles.ts`).
|
|
21
|
+
* - `BadgeWithFlag` is not available yet because `Flag` has no React Native implementation.
|
|
22
|
+
* - `className` accepts layout classes only; transitions have no equivalent.
|
|
23
|
+
*
|
|
24
|
+
* @summary compact status, category, or count label (React Native)
|
|
25
|
+
*/
|
|
26
|
+
const Badge = ({ type = 'pill-color', size = 'md', color = 'gray', children, className, 'data-testid': dataTestId, }) => {
|
|
27
|
+
const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
|
|
28
|
+
const tone = resolveNativeTone('standard', type, color);
|
|
29
|
+
return (jsx(View, { testID: badgeTestId, className: rootClass(type, styles.sizes.label[type][size], tone, className), children: jsx(Label, { size: size, color: tone.text, children: children }) }));
|
|
30
|
+
};
|
|
31
|
+
/** `Badge` variant with a coloured status dot before the label. */
|
|
32
|
+
const BadgeWithDot = ({ size = 'md', color = 'gray', type = 'pill-color', className, children, 'data-testid': dataTestId, }) => {
|
|
33
|
+
const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
|
|
34
|
+
const tone = resolveNativeTone('addon', type, color);
|
|
35
|
+
const dotColor = styles.types.addon[type].styles[color].dotColor;
|
|
36
|
+
return (jsxs(View, { testID: badgeTestId, className: rootClass(type, styles.sizes.dot[type][size], tone, className), children: [jsx(Dot, { color: dotColor, size: "sm", "data-testid": joinTestId(badgeTestId, 'dot') }), jsx(Label, { size: size, color: tone.text, children: children })] }));
|
|
37
|
+
};
|
|
38
|
+
/** `Badge` variant with a leading or trailing icon beside the label. */
|
|
39
|
+
const BadgeWithIcon = ({ size = 'md', color = 'gray', type = 'pill-color', iconLeading: IconLeading, iconTrailing: IconTrailing, children, className, 'data-testid': dataTestId, }) => {
|
|
40
|
+
const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
|
|
41
|
+
const tone = resolveNativeTone('addon', type, color);
|
|
42
|
+
const placement = IconLeading ? 'leading' : 'trailing';
|
|
43
|
+
const iconProps = { size: styles.native.iconSize, color: tone.addon, strokeWidth: styles.native.iconStrokeWidth };
|
|
44
|
+
return (jsxs(View, { testID: badgeTestId, className: rootClass(type, styles.sizes.icon[type][size][placement], tone, className), children: [IconLeading && (jsx(View, { testID: joinTestId(badgeTestId, 'icon'), children: jsx(IconLeading, { ...iconProps }) })), jsx(Label, { size: size, color: tone.text, children: children }), IconTrailing && (jsx(View, { testID: joinTestId(badgeTestId, 'icon'), children: jsx(IconTrailing, { ...iconProps }) }))] }));
|
|
45
|
+
};
|
|
46
|
+
/** `Badge` variant with a small round image before the label. */
|
|
47
|
+
const BadgeWithImage = ({ size = 'md', color = 'gray', type = 'pill-color', imgSrc, children, }) => {
|
|
48
|
+
const tone = resolveNativeTone('standard', type, color);
|
|
49
|
+
const { imageSize } = styles.native;
|
|
50
|
+
return (jsxs(View, { className: rootClass(type, styles.sizes.media[type][size], tone), children: [jsx(Image, { source: { uri: imgSrc }, accessibilityLabel: "Badge image", style: { width: imageSize, height: imageSize, borderRadius: imageSize / 2 } }), jsx(Label, { size: size, color: tone.text, children: children })] }));
|
|
51
|
+
};
|
|
52
|
+
/** `Badge` variant with a trailing icon button, typically to dismiss or remove the tag. */
|
|
53
|
+
const BadgeWithButton = ({ size = 'md', color = 'gray', type = 'pill-color', icon: Icon = X, buttonLabel, onButtonClick, children, 'data-testid': dataTestId, }) => {
|
|
54
|
+
const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
|
|
55
|
+
const [pressed, setPressed] = useState(false);
|
|
56
|
+
const tone = resolveNativeTone('standard', type, color);
|
|
57
|
+
return (jsxs(View, { testID: badgeTestId, className: rootClass(type, styles.sizes.button[type][size], tone), children: [jsx(Label, { size: size, color: tone.text, children: children }), jsx(Pressable, { testID: joinTestId(badgeTestId, 'close-button'), accessibilityRole: "button", accessibilityLabel: buttonLabel, onPress: onButtonClick, onPressIn: () => setPressed(true), onPressOut: () => setPressed(false), className: cx('items-center justify-center p-0.5', type === 'pill-color' ? 'rounded-full' : 'rounded-[3px]', pressed && tone.buttonPressedBg), children: jsx(Icon, { size: styles.native.iconSize, color: pressed ? tone.buttonPressed : tone.button, strokeWidth: styles.native.iconStrokeWidth }) })] }));
|
|
58
|
+
};
|
|
59
|
+
/** Icon-only `Badge` with no label text. */
|
|
60
|
+
const BadgeIcon = ({ size = 'md', color = 'gray', type = 'pill-color', icon: Icon, }) => {
|
|
61
|
+
const tone = resolveNativeTone('standard', type, color);
|
|
62
|
+
return (jsx(View, { className: cx(styles.native.common[type], 'border', tone.bg, tone.border, layoutClasses(styles.sizes.iconOnly[type][size])), children: jsx(Icon, { size: styles.native.iconSize, color: tone.addon, strokeWidth: styles.native.iconStrokeWidth }) }));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export { Badge, BadgeIcon, BadgeWithButton, BadgeWithDot, BadgeWithIcon, BadgeWithImage };
|
|
66
|
+
//# sourceMappingURL=Badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.js","sources":["../../../../../../../src/components/atoms/Badges/Badge/Badge.native.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs","CloseX"],"mappings":";;;;;;;;;;AA8BA;AACA,MAAM,SAAS,GAAG,CAAC,I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AAM,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAA,QAAA,EAC/HA,GAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,EAAA,CAAI,EAAA,CAChG;AAEX;;"}
|
|
@@ -17,7 +17,7 @@ export type BadgeColorStyles = {
|
|
|
17
17
|
addonButton: string;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
|
-
* Shared `Badge` style config, read by `
|
|
20
|
+
* Shared `Badge` style config, read by both `Badge.tsx` and `Badge.native.tsx`.
|
|
21
21
|
*
|
|
22
22
|
* `types.standard` serves `Badge`, `BadgeWithFlag`, `BadgeWithImage`, `BadgeWithButton` and `BadgeIcon`:
|
|
23
23
|
* its `modern` type only offers `gray`, with the fill in `root`. `types.addon` serves `BadgeWithDot`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/Badges/Badge/Badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGpE,8GAA8G;AAC9G,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC;AAuGxG;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAuEf,kGAAkG;;;;;IA2BpG;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiID,4FAA4F;;;;;;;;;;QAW5F,8EAA8E;;QAE9E,gFAAgF;;QAEhF,kEAAkE;;QAElE,0EAA0E;;;;;;;;;;;;;;;;CAO7E,CAAC"}
|
|
@@ -87,7 +87,7 @@ const bySize = (pill, badge) => ({
|
|
|
87
87
|
[badgeTypes.badgeModern]: badge,
|
|
88
88
|
});
|
|
89
89
|
/**
|
|
90
|
-
* Shared `Badge` style config, read by `
|
|
90
|
+
* Shared `Badge` style config, read by both `Badge.tsx` and `Badge.native.tsx`.
|
|
91
91
|
*
|
|
92
92
|
* `types.standard` serves `Badge`, `BadgeWithFlag`, `BadgeWithImage`, `BadgeWithButton` and `BadgeIcon`:
|
|
93
93
|
* its `modern` type only offers `gray`, with the fill in `root`. `types.addon` serves `BadgeWithDot`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.styles.js","sources":["../../../../../../../src/components/atoms/Badges/Badge/Badge.styles.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAiBA,MAAM,YAAY,GAA0C;AAC1D,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,yEAAyE;AAC/E,QAAA,KAAK,EAAE,0BAA0B;AACjC,Q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AAC,CAAC,CAAC;CACnD,CAAC;AACF,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAE9D,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.types.js","sources":["../../../../../../../src/components/atoms/Badges/Badge/badge.types.ts"],"sourcesContent":[null],"names":[],"mappings":"AAaO,MAAM,UAAU,GAAG;AACxB,IAAA,SAAS,EAAE,YAAY;AACvB,IAAA,UAAU,EAAE,OAAO;AACnB,IAAA,WAAW,EAAE,QAAQ;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type NativeTone } from '
|
|
2
|
-
import type { BadgeColors, BadgeTypes } from '
|
|
1
|
+
import { type NativeTone } from '../Badge.styles';
|
|
2
|
+
import type { BadgeColors, BadgeTypes } from '../badge.types';
|
|
3
3
|
/**
|
|
4
4
|
* Drops the typography utilities from a shared size string, leaving the padding, gap and radius a
|
|
5
5
|
* React Native `View` can resolve. The label's size and weight reach `Text` through `style` instead.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/atoms/Badges/Badge/utilities/badge.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAU,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,aAAa,MAAM,WAInC,CAAC;AAEf;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,UAAU,GAAG,OAAO,EAAE,MAAM,UAAU,EAAE,OAAO,WAAW,KAAG,UAIpG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.utils.js","sources":["../../../../../../../../src/components/atoms/Badges/Badge/utilities/badge.utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA;;;;;;AAMG;MACU,aAAa,GAAG,CAAC,WAAmB,KAC/C;KACG,KAAK,CAAC,GAAG;KACT,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC;KAC1E,IAAI,CAAC,GAAG;AAEb;;;;;;;;AAQG;AACI,MAAM,iBAAiB,GAAG,CAAC,IAA0B,EAAE,IAAgB,EAAE,KAAkB,KAAgB;IAChH,IAAI,IAAI,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACzD,IAAI,IAAI,KAAK,UAAU;AAAE,QAAA,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM;IACpD,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE;AAC9E;;"}
|