@motech-development/breeze-ui 3.5.1 → 3.6.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.
@@ -58,6 +58,8 @@ export declare const MenuIcon: ComponentType<IconProps>;
58
58
  export declare const MoreIcon: ComponentType<IconProps>;
59
59
  /** Paperclip icon for file attachments. */
60
60
  export declare const PaperclipIcon: ComponentType<IconProps>;
61
+ /** Clockwise rotation icon for turning content. */
62
+ export declare const RotateIcon: ComponentType<IconProps>;
61
63
  /** Search icon for query interfaces. */
62
64
  export declare const SearchIcon: ComponentType<IconProps>;
63
65
  /** Sign-out icon for ending an authenticated session. */
@@ -74,4 +76,8 @@ export declare const UsersIcon: ComponentType<IconProps>;
74
76
  export declare const WalletIcon: ComponentType<IconProps>;
75
77
  /** Warning icon for cautionary notices. */
76
78
  export declare const WarningIcon: ComponentType<IconProps>;
79
+ /** Magnifying-glass icon for increasing content scale. */
80
+ export declare const ZoomInIcon: ComponentType<IconProps>;
81
+ /** Magnifying-glass icon for decreasing content scale. */
82
+ export declare const ZoomOutIcon: ComponentType<IconProps>;
77
83
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icons/index.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG1D,uDAAuD;AACvD,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC3E,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAsCD;;;;GAIG;AACH,eAAO,MAAM,OAAO,0BAA8B,CAAC;AACnD,sCAAsC;AACtC,eAAO,MAAM,aAAa,0BAAyC,CAAC;AAC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;AACxD,wDAAwD;AACxD,eAAO,MAAM,UAAU,0BAAmC,CAAC;AAC3D,2CAA2C;AAC3C,eAAO,MAAM,WAAW,0BAA2C,CAAC;AACpE,0DAA0D;AAC1D,eAAO,MAAM,UAAU,0BAAmC,CAAC;AAC3D,0DAA0D;AAC1D,eAAO,MAAM,WAAW,0BAAqC,CAAC"}
package/lib/icons.js CHANGED
@@ -1,10 +1,10 @@
1
- import { ArrowLeft as e, ArrowRight as t, Building2 as n, Calendar as r, ChartNoAxesCombined as i, Check as a, ChevronDown as o, ChevronLeft as s, ChevronRight as c, ChevronUp as ee, CircleHelp as l, Download as u, Ellipsis as d, ExternalLink as f, Eye as p, EyeOff as m, FileText as h, Info as g, LogOut as _, Menu as v, Paperclip as y, Pencil as b, Plus as x, Search as S, Settings as C, Trash2 as w, TriangleAlert as T, Upload as E, User as D, Users as O, Wallet as k, X as A } from "lucide-react";
2
- import { createElement as j } from "react";
1
+ import { ArrowLeft as e, ArrowRight as t, Building2 as n, Calendar as r, ChartNoAxesCombined as i, Check as a, ChevronDown as o, ChevronLeft as s, ChevronRight as c, ChevronUp as ee, CircleHelp as l, Download as u, Ellipsis as d, ExternalLink as f, Eye as p, EyeOff as m, FileText as h, Info as g, LogOut as _, Menu as v, Paperclip as y, Pencil as b, Plus as x, RotateCw as S, Search as C, Settings as w, Trash2 as T, TriangleAlert as E, Upload as D, User as O, Users as k, Wallet as A, X as j, ZoomIn as M, ZoomOut as N } from "lucide-react";
2
+ import { createElement as P } from "react";
3
3
  //#region src/icons/index.tsx
4
- function M(e, t) {
4
+ function F(e, t) {
5
5
  function n({ "aria-label": t, className: n, size: r = "1em", strokeWidth: i = 2, style: a, ...o }) {
6
6
  let s = t?.trim() || void 0;
7
- return j(e, {
7
+ return P(e, {
8
8
  ...o,
9
9
  "aria-hidden": s === void 0 || void 0,
10
10
  "aria-label": s,
@@ -22,8 +22,8 @@ function M(e, t) {
22
22
  }
23
23
  return n.displayName = t, n;
24
24
  }
25
- var N = M(x, "AddIcon"), P = M(e, "ArrowLeftIcon"), F = M(t, "ArrowRightIcon"), I = M(n, "BuildingIcon"), te = M(r, "CalendarIcon"), L = M(i, "ChartIcon"), R = M(a, "CheckIcon"), z = M(o, "ChevronDownIcon"), B = M(s, "ChevronLeftIcon"), V = M(c, "ChevronRightIcon"), H = M(ee, "ChevronUpIcon"), U = M(A, "CloseIcon"), W = M(w, "DeleteIcon"), G = M(u, "DownloadIcon"), K = M(b, "EditIcon"), q = M(f, "ExternalLinkIcon"), J = M(p, "EyeIcon"), Y = M(m, "EyeOffIcon"), X = M(h, "FileTextIcon"), Z = M(l, "HelpIcon"), Q = M(g, "InfoIcon"), ne = M(v, "MenuIcon"), re = M(d, "MoreIcon"), ie = M(y, "PaperclipIcon"), ae = M(S, "SearchIcon"), oe = M(_, "SignOutIcon"), $ = M(C, "SettingsIcon"), se = M(E, "UploadIcon"), ce = M(D, "UserIcon"), le = M(O, "UsersIcon"), ue = M(k, "WalletIcon"), de = M(T, "WarningIcon");
25
+ var I = F(x, "AddIcon"), te = F(e, "ArrowLeftIcon"), L = F(t, "ArrowRightIcon"), R = F(n, "BuildingIcon"), z = F(r, "CalendarIcon"), B = F(i, "ChartIcon"), V = F(a, "CheckIcon"), H = F(o, "ChevronDownIcon"), U = F(s, "ChevronLeftIcon"), W = F(c, "ChevronRightIcon"), G = F(ee, "ChevronUpIcon"), K = F(j, "CloseIcon"), q = F(T, "DeleteIcon"), J = F(u, "DownloadIcon"), Y = F(b, "EditIcon"), X = F(f, "ExternalLinkIcon"), Z = F(p, "EyeIcon"), Q = F(m, "EyeOffIcon"), ne = F(h, "FileTextIcon"), re = F(l, "HelpIcon"), ie = F(g, "InfoIcon"), ae = F(v, "MenuIcon"), oe = F(d, "MoreIcon"), se = F(y, "PaperclipIcon"), ce = F(S, "RotateIcon"), le = F(C, "SearchIcon"), ue = F(_, "SignOutIcon"), de = F(w, "SettingsIcon"), fe = F(D, "UploadIcon"), pe = F(O, "UserIcon"), $ = F(k, "UsersIcon"), me = F(A, "WalletIcon"), he = F(E, "WarningIcon"), ge = F(M, "ZoomInIcon"), _e = F(N, "ZoomOutIcon");
26
26
  //#endregion
27
- export { N as AddIcon, P as ArrowLeftIcon, F as ArrowRightIcon, I as BuildingIcon, te as CalendarIcon, L as ChartIcon, R as CheckIcon, z as ChevronDownIcon, B as ChevronLeftIcon, V as ChevronRightIcon, H as ChevronUpIcon, U as CloseIcon, W as DeleteIcon, G as DownloadIcon, K as EditIcon, q as ExternalLinkIcon, J as EyeIcon, Y as EyeOffIcon, X as FileTextIcon, Z as HelpIcon, Q as InfoIcon, ne as MenuIcon, re as MoreIcon, ie as PaperclipIcon, ae as SearchIcon, $ as SettingsIcon, oe as SignOutIcon, se as UploadIcon, ce as UserIcon, le as UsersIcon, ue as WalletIcon, de as WarningIcon };
27
+ export { I as AddIcon, te as ArrowLeftIcon, L as ArrowRightIcon, R as BuildingIcon, z as CalendarIcon, B as ChartIcon, V as CheckIcon, H as ChevronDownIcon, U as ChevronLeftIcon, W as ChevronRightIcon, G as ChevronUpIcon, K as CloseIcon, q as DeleteIcon, J as DownloadIcon, Y as EditIcon, X as ExternalLinkIcon, Z as EyeIcon, Q as EyeOffIcon, ne as FileTextIcon, re as HelpIcon, ie as InfoIcon, ae as MenuIcon, oe as MoreIcon, se as PaperclipIcon, ce as RotateIcon, le as SearchIcon, de as SettingsIcon, ue as SignOutIcon, fe as UploadIcon, pe as UserIcon, $ as UsersIcon, me as WalletIcon, he as WarningIcon, ge as ZoomInIcon, _e as ZoomOutIcon };
28
28
 
29
29
  //# sourceMappingURL=icons.js.map
package/lib/icons.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"icons.js","names":[],"sources":["../src/icons/index.tsx"],"sourcesContent":["import {\n ArrowLeft,\n ArrowRight,\n Building2,\n Calendar,\n ChartNoAxesCombined,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n CircleHelp,\n Download,\n Ellipsis,\n ExternalLink,\n Eye,\n EyeOff,\n FileText,\n Info,\n LogOut,\n type LucideIcon,\n Menu,\n Paperclip,\n Pencil,\n Plus,\n Search,\n Settings,\n Trash2,\n TriangleAlert,\n Upload,\n User,\n Users,\n Wallet,\n X,\n} from 'lucide-react';\nimport type { ComponentType, SVGAttributes } from 'react';\nimport { createElement } from 'react';\n\n/** Breeze-owned props shared by every curated icon. */\nexport interface IconProps\n extends Omit<SVGAttributes<SVGSVGElement>, 'children' | 'height' | 'width'> {\n /** Icon size in CSS pixels or a CSS length. Defaults to `1em`. */\n size?: number | string;\n /** Stroke thickness. Defaults to `2`. */\n strokeWidth?: number;\n}\n\nfunction createIcon(\n Icon: LucideIcon,\n displayName: string,\n): ComponentType<IconProps> {\n function BreezeIcon({\n 'aria-label': ariaLabel,\n className,\n size = '1em',\n strokeWidth = 2,\n style,\n ...props\n }: Readonly<IconProps>) {\n const normalizedAriaLabel = ariaLabel?.trim() || undefined;\n\n return createElement(Icon, {\n ...props,\n 'aria-hidden': normalizedAriaLabel === undefined ? true : undefined,\n 'aria-label': normalizedAriaLabel,\n className: `inline-block shrink-0 align-[-0.125em] ${className ?? ''}`,\n focusable: 'false',\n role: normalizedAriaLabel === undefined ? undefined : 'img',\n size,\n strokeWidth,\n style: {\n ...style,\n height: size,\n width: size,\n },\n });\n }\n\n BreezeIcon.displayName = displayName;\n\n return BreezeIcon;\n}\n\n/**\n * Plus icon for create or add actions.\n *\n * @summary curated create-or-add action glyph\n */\nexport const AddIcon = createIcon(Plus, 'AddIcon');\n/** Left-pointing navigation arrow. */\nexport const ArrowLeftIcon = createIcon(ArrowLeft, 'ArrowLeftIcon');\n/** Right-pointing navigation arrow. */\nexport const ArrowRightIcon = createIcon(ArrowRight, 'ArrowRightIcon');\n/** Building icon for organisations and company details. */\nexport const BuildingIcon = createIcon(Building2, 'BuildingIcon');\n/** Calendar icon for date-related interfaces. */\nexport const CalendarIcon = createIcon(Calendar, 'CalendarIcon');\n/** Chart icon for summaries, dashboards, and analytics. */\nexport const ChartIcon = createIcon(ChartNoAxesCombined, 'ChartIcon');\n/** Check mark for completed or selected states. */\nexport const CheckIcon = createIcon(Check, 'CheckIcon');\n/** Down-pointing disclosure chevron. */\nexport const ChevronDownIcon = createIcon(ChevronDown, 'ChevronDownIcon');\n/** Left-pointing disclosure chevron. */\nexport const ChevronLeftIcon = createIcon(ChevronLeft, 'ChevronLeftIcon');\n/** Right-pointing disclosure chevron. */\nexport const ChevronRightIcon = createIcon(ChevronRight, 'ChevronRightIcon');\n/** Up-pointing disclosure chevron. */\nexport const ChevronUpIcon = createIcon(ChevronUp, 'ChevronUpIcon');\n/** Close or dismiss icon. */\nexport const CloseIcon = createIcon(X, 'CloseIcon');\n/** Delete icon for destructive removal actions. */\nexport const DeleteIcon = createIcon(Trash2, 'DeleteIcon');\n/** Download icon for obtaining a resource. */\nexport const DownloadIcon = createIcon(Download, 'DownloadIcon');\n/** Edit icon for modifying content. */\nexport const EditIcon = createIcon(Pencil, 'EditIcon');\n/** External-link indicator. */\nexport const ExternalLinkIcon = createIcon(ExternalLink, 'ExternalLinkIcon');\n/** Visible-content icon. */\nexport const EyeIcon = createIcon(Eye, 'EyeIcon');\n/** Hidden-content icon. */\nexport const EyeOffIcon = createIcon(EyeOff, 'EyeOffIcon');\n/** Document icon for files, reports, and written records. */\nexport const FileTextIcon = createIcon(FileText, 'FileTextIcon');\n/** Help icon for contextual assistance. */\nexport const HelpIcon = createIcon(CircleHelp, 'HelpIcon');\n/** Information icon for neutral notices. */\nexport const InfoIcon = createIcon(Info, 'InfoIcon');\n/** Menu icon for compact navigation. */\nexport const MenuIcon = createIcon(Menu, 'MenuIcon');\n/** More-actions icon. */\nexport const MoreIcon = createIcon(Ellipsis, 'MoreIcon');\n/** Paperclip icon for file attachments. */\nexport const PaperclipIcon = createIcon(Paperclip, 'PaperclipIcon');\n/** Search icon for query interfaces. */\nexport const SearchIcon = createIcon(Search, 'SearchIcon');\n/** Sign-out icon for ending an authenticated session. */\nexport const SignOutIcon = createIcon(LogOut, 'SignOutIcon');\n/** Settings icon for configuration interfaces. */\nexport const SettingsIcon = createIcon(Settings, 'SettingsIcon');\n/** Upload icon for supplying a resource. */\nexport const UploadIcon = createIcon(Upload, 'UploadIcon');\n/** User icon for account and identity interfaces. */\nexport const UserIcon = createIcon(User, 'UserIcon');\n/** Users icon for groups, teams, and client collections. */\nexport const UsersIcon = createIcon(Users, 'UsersIcon');\n/** Wallet icon for money and transaction interfaces. */\nexport const WalletIcon = createIcon(Wallet, 'WalletIcon');\n/** Warning icon for cautionary notices. */\nexport const WarningIcon = createIcon(TriangleAlert, 'WarningIcon');\n"],"mappings":";;;AA+CA,SAAS,EACP,GACA,GAC0B;CAC1B,SAAS,EAAW,EAClB,cAAc,GACd,cACA,UAAO,OACP,iBAAc,GACd,UACA,GAAG,KACmB;EACtB,IAAM,IAAsB,GAAW,KAAK,KAAK,KAAA;EAEjD,OAAO,EAAc,GAAM;GACzB,GAAG;GACH,eAAe,MAAwB,KAAA,KAAmB,KAAA;GAC1D,cAAc;GACd,WAAW,0CAA0C,KAAa;GAClE,WAAW;GACX,MAAM,MAAwB,KAAA,IAAY,KAAA,IAAY;GACtD;GACA;GACA,OAAO;IACL,GAAG;IACH,QAAQ;IACR,OAAO;GACT;EACF,CAAC;CACH;CAIA,OAFA,EAAW,cAAc,GAElB;AACT;AAOA,IAAa,IAAU,EAAW,GAAM,SAAS,GAEpC,IAAgB,EAAW,GAAW,eAAe,GAErD,IAAiB,EAAW,GAAY,gBAAgB,GAExD,IAAe,EAAW,GAAW,cAAc,GAEnD,KAAe,EAAW,GAAU,cAAc,GAElD,IAAY,EAAW,GAAqB,WAAW,GAEvD,IAAY,EAAW,GAAO,WAAW,GAEzC,IAAkB,EAAW,GAAa,iBAAiB,GAE3D,IAAkB,EAAW,GAAa,iBAAiB,GAE3D,IAAmB,EAAW,GAAc,kBAAkB,GAE9D,IAAgB,EAAW,IAAW,eAAe,GAErD,IAAY,EAAW,GAAG,WAAW,GAErC,IAAa,EAAW,GAAQ,YAAY,GAE5C,IAAe,EAAW,GAAU,cAAc,GAElD,IAAW,EAAW,GAAQ,UAAU,GAExC,IAAmB,EAAW,GAAc,kBAAkB,GAE9D,IAAU,EAAW,GAAK,SAAS,GAEnC,IAAa,EAAW,GAAQ,YAAY,GAE5C,IAAe,EAAW,GAAU,cAAc,GAElD,IAAW,EAAW,GAAY,UAAU,GAE5C,IAAW,EAAW,GAAM,UAAU,GAEtC,KAAW,EAAW,GAAM,UAAU,GAEtC,KAAW,EAAW,GAAU,UAAU,GAE1C,KAAgB,EAAW,GAAW,eAAe,GAErD,KAAa,EAAW,GAAQ,YAAY,GAE5C,KAAc,EAAW,GAAQ,aAAa,GAE9C,IAAe,EAAW,GAAU,cAAc,GAElD,KAAa,EAAW,GAAQ,YAAY,GAE5C,KAAW,EAAW,GAAM,UAAU,GAEtC,KAAY,EAAW,GAAO,WAAW,GAEzC,KAAa,EAAW,GAAQ,YAAY,GAE5C,KAAc,EAAW,GAAe,aAAa"}
1
+ {"version":3,"file":"icons.js","names":[],"sources":["../src/icons/index.tsx"],"sourcesContent":["import {\n ArrowLeft,\n ArrowRight,\n Building2,\n Calendar,\n ChartNoAxesCombined,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n CircleHelp,\n Download,\n Ellipsis,\n ExternalLink,\n Eye,\n EyeOff,\n FileText,\n Info,\n LogOut,\n type LucideIcon,\n Menu,\n Paperclip,\n Pencil,\n Plus,\n RotateCw,\n Search,\n Settings,\n Trash2,\n TriangleAlert,\n Upload,\n User,\n Users,\n Wallet,\n X,\n ZoomIn,\n ZoomOut,\n} from 'lucide-react';\nimport type { ComponentType, SVGAttributes } from 'react';\nimport { createElement } from 'react';\n\n/** Breeze-owned props shared by every curated icon. */\nexport interface IconProps\n extends Omit<SVGAttributes<SVGSVGElement>, 'children' | 'height' | 'width'> {\n /** Icon size in CSS pixels or a CSS length. Defaults to `1em`. */\n size?: number | string;\n /** Stroke thickness. Defaults to `2`. */\n strokeWidth?: number;\n}\n\nfunction createIcon(\n Icon: LucideIcon,\n displayName: string,\n): ComponentType<IconProps> {\n function BreezeIcon({\n 'aria-label': ariaLabel,\n className,\n size = '1em',\n strokeWidth = 2,\n style,\n ...props\n }: Readonly<IconProps>) {\n const normalizedAriaLabel = ariaLabel?.trim() || undefined;\n\n return createElement(Icon, {\n ...props,\n 'aria-hidden': normalizedAriaLabel === undefined ? true : undefined,\n 'aria-label': normalizedAriaLabel,\n className: `inline-block shrink-0 align-[-0.125em] ${className ?? ''}`,\n focusable: 'false',\n role: normalizedAriaLabel === undefined ? undefined : 'img',\n size,\n strokeWidth,\n style: {\n ...style,\n height: size,\n width: size,\n },\n });\n }\n\n BreezeIcon.displayName = displayName;\n\n return BreezeIcon;\n}\n\n/**\n * Plus icon for create or add actions.\n *\n * @summary curated create-or-add action glyph\n */\nexport const AddIcon = createIcon(Plus, 'AddIcon');\n/** Left-pointing navigation arrow. */\nexport const ArrowLeftIcon = createIcon(ArrowLeft, 'ArrowLeftIcon');\n/** Right-pointing navigation arrow. */\nexport const ArrowRightIcon = createIcon(ArrowRight, 'ArrowRightIcon');\n/** Building icon for organisations and company details. */\nexport const BuildingIcon = createIcon(Building2, 'BuildingIcon');\n/** Calendar icon for date-related interfaces. */\nexport const CalendarIcon = createIcon(Calendar, 'CalendarIcon');\n/** Chart icon for summaries, dashboards, and analytics. */\nexport const ChartIcon = createIcon(ChartNoAxesCombined, 'ChartIcon');\n/** Check mark for completed or selected states. */\nexport const CheckIcon = createIcon(Check, 'CheckIcon');\n/** Down-pointing disclosure chevron. */\nexport const ChevronDownIcon = createIcon(ChevronDown, 'ChevronDownIcon');\n/** Left-pointing disclosure chevron. */\nexport const ChevronLeftIcon = createIcon(ChevronLeft, 'ChevronLeftIcon');\n/** Right-pointing disclosure chevron. */\nexport const ChevronRightIcon = createIcon(ChevronRight, 'ChevronRightIcon');\n/** Up-pointing disclosure chevron. */\nexport const ChevronUpIcon = createIcon(ChevronUp, 'ChevronUpIcon');\n/** Close or dismiss icon. */\nexport const CloseIcon = createIcon(X, 'CloseIcon');\n/** Delete icon for destructive removal actions. */\nexport const DeleteIcon = createIcon(Trash2, 'DeleteIcon');\n/** Download icon for obtaining a resource. */\nexport const DownloadIcon = createIcon(Download, 'DownloadIcon');\n/** Edit icon for modifying content. */\nexport const EditIcon = createIcon(Pencil, 'EditIcon');\n/** External-link indicator. */\nexport const ExternalLinkIcon = createIcon(ExternalLink, 'ExternalLinkIcon');\n/** Visible-content icon. */\nexport const EyeIcon = createIcon(Eye, 'EyeIcon');\n/** Hidden-content icon. */\nexport const EyeOffIcon = createIcon(EyeOff, 'EyeOffIcon');\n/** Document icon for files, reports, and written records. */\nexport const FileTextIcon = createIcon(FileText, 'FileTextIcon');\n/** Help icon for contextual assistance. */\nexport const HelpIcon = createIcon(CircleHelp, 'HelpIcon');\n/** Information icon for neutral notices. */\nexport const InfoIcon = createIcon(Info, 'InfoIcon');\n/** Menu icon for compact navigation. */\nexport const MenuIcon = createIcon(Menu, 'MenuIcon');\n/** More-actions icon. */\nexport const MoreIcon = createIcon(Ellipsis, 'MoreIcon');\n/** Paperclip icon for file attachments. */\nexport const PaperclipIcon = createIcon(Paperclip, 'PaperclipIcon');\n/** Clockwise rotation icon for turning content. */\nexport const RotateIcon = createIcon(RotateCw, 'RotateIcon');\n/** Search icon for query interfaces. */\nexport const SearchIcon = createIcon(Search, 'SearchIcon');\n/** Sign-out icon for ending an authenticated session. */\nexport const SignOutIcon = createIcon(LogOut, 'SignOutIcon');\n/** Settings icon for configuration interfaces. */\nexport const SettingsIcon = createIcon(Settings, 'SettingsIcon');\n/** Upload icon for supplying a resource. */\nexport const UploadIcon = createIcon(Upload, 'UploadIcon');\n/** User icon for account and identity interfaces. */\nexport const UserIcon = createIcon(User, 'UserIcon');\n/** Users icon for groups, teams, and client collections. */\nexport const UsersIcon = createIcon(Users, 'UsersIcon');\n/** Wallet icon for money and transaction interfaces. */\nexport const WalletIcon = createIcon(Wallet, 'WalletIcon');\n/** Warning icon for cautionary notices. */\nexport const WarningIcon = createIcon(TriangleAlert, 'WarningIcon');\n/** Magnifying-glass icon for increasing content scale. */\nexport const ZoomInIcon = createIcon(ZoomIn, 'ZoomInIcon');\n/** Magnifying-glass icon for decreasing content scale. */\nexport const ZoomOutIcon = createIcon(ZoomOut, 'ZoomOutIcon');\n"],"mappings":";;;AAkDA,SAAS,EACP,GACA,GAC0B;CAC1B,SAAS,EAAW,EAClB,cAAc,GACd,cACA,UAAO,OACP,iBAAc,GACd,UACA,GAAG,KACmB;EACtB,IAAM,IAAsB,GAAW,KAAK,KAAK,KAAA;EAEjD,OAAO,EAAc,GAAM;GACzB,GAAG;GACH,eAAe,MAAwB,KAAA,KAAmB,KAAA;GAC1D,cAAc;GACd,WAAW,0CAA0C,KAAa;GAClE,WAAW;GACX,MAAM,MAAwB,KAAA,IAAY,KAAA,IAAY;GACtD;GACA;GACA,OAAO;IACL,GAAG;IACH,QAAQ;IACR,OAAO;GACT;EACF,CAAC;CACH;CAIA,OAFA,EAAW,cAAc,GAElB;AACT;AAOA,IAAa,IAAU,EAAW,GAAM,SAAS,GAEpC,KAAgB,EAAW,GAAW,eAAe,GAErD,IAAiB,EAAW,GAAY,gBAAgB,GAExD,IAAe,EAAW,GAAW,cAAc,GAEnD,IAAe,EAAW,GAAU,cAAc,GAElD,IAAY,EAAW,GAAqB,WAAW,GAEvD,IAAY,EAAW,GAAO,WAAW,GAEzC,IAAkB,EAAW,GAAa,iBAAiB,GAE3D,IAAkB,EAAW,GAAa,iBAAiB,GAE3D,IAAmB,EAAW,GAAc,kBAAkB,GAE9D,IAAgB,EAAW,IAAW,eAAe,GAErD,IAAY,EAAW,GAAG,WAAW,GAErC,IAAa,EAAW,GAAQ,YAAY,GAE5C,IAAe,EAAW,GAAU,cAAc,GAElD,IAAW,EAAW,GAAQ,UAAU,GAExC,IAAmB,EAAW,GAAc,kBAAkB,GAE9D,IAAU,EAAW,GAAK,SAAS,GAEnC,IAAa,EAAW,GAAQ,YAAY,GAE5C,KAAe,EAAW,GAAU,cAAc,GAElD,KAAW,EAAW,GAAY,UAAU,GAE5C,KAAW,EAAW,GAAM,UAAU,GAEtC,KAAW,EAAW,GAAM,UAAU,GAEtC,KAAW,EAAW,GAAU,UAAU,GAE1C,KAAgB,EAAW,GAAW,eAAe,GAErD,KAAa,EAAW,GAAU,YAAY,GAE9C,KAAa,EAAW,GAAQ,YAAY,GAE5C,KAAc,EAAW,GAAQ,aAAa,GAE9C,KAAe,EAAW,GAAU,cAAc,GAElD,KAAa,EAAW,GAAQ,YAAY,GAE5C,KAAW,EAAW,GAAM,UAAU,GAEtC,IAAY,EAAW,GAAO,WAAW,GAEzC,KAAa,EAAW,GAAQ,YAAY,GAE5C,KAAc,EAAW,GAAe,aAAa,GAErD,KAAa,EAAW,GAAQ,YAAY,GAE5C,KAAc,EAAW,GAAS,aAAa"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motech-development/breeze-ui",
3
- "version": "3.5.1",
3
+ "version": "3.6.0",
4
4
  "description": "Accessible, domain-neutral UI primitives and patterns for Motech applications",
5
5
  "installConfig": {
6
6
  "hoistingLimits": "workspaces"