@orianatech/pire 0.3.0 → 0.4.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/README.md +43 -5
- package/dist/components/core/Icon.d.cts +22 -7
- package/dist/components/core/Icon.d.ts +22 -7
- package/dist/components/core/Icon.d.ts.map +1 -1
- package/dist/components/core/icon-data.generated.d.cts +1 -0
- package/dist/components/core/icon-data.generated.d.ts +2 -0
- package/dist/components/core/icon-data.generated.d.ts.map +1 -0
- package/dist/components/core/icon-map.d.cts +13 -0
- package/dist/components/core/icon-map.d.ts +14 -0
- package/dist/components/core/icon-map.d.ts.map +1 -0
- package/dist/components/navigation/ShellBar.d.cts +8 -1
- package/dist/components/navigation/ShellBar.d.ts +8 -1
- package/dist/components/navigation/ShellBar.d.ts.map +1 -1
- package/dist/components/navigation/SideNav.d.cts +56 -4
- package/dist/components/navigation/SideNav.d.ts +56 -4
- package/dist/components/navigation/SideNav.d.ts.map +1 -1
- package/dist/components.css +22 -0
- package/dist/index.cjs +275 -81
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +276 -82
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/dist/index.d.cts
CHANGED
|
@@ -19,7 +19,7 @@ export { NumberField, type NumberFieldProps } from './components/forms/NumberFie
|
|
|
19
19
|
export { DatePicker, type DatePickerProps } from './components/forms/DatePicker.cjs';
|
|
20
20
|
export { ValueHelpField, type ValueHelpFieldProps } from './components/forms/ValueHelpField.cjs';
|
|
21
21
|
export { ShellBar, type ShellBarProps } from './components/navigation/ShellBar.cjs';
|
|
22
|
-
export { SideNav, type SideNavProps, type SideNavItem, type SideNavGroup } from './components/navigation/SideNav.cjs';
|
|
22
|
+
export { SideNav, type SideNavProps, type SideNavItem, type SideNavChildItem, type SideNavGroup } from './components/navigation/SideNav.cjs';
|
|
23
23
|
export { Tabs, type TabsProps, type TabItem } from './components/navigation/Tabs.cjs';
|
|
24
24
|
export { Breadcrumb, type BreadcrumbProps, type BreadcrumbItem } from './components/navigation/Breadcrumb.cjs';
|
|
25
25
|
export { Pagination, type PaginationProps } from './components/navigation/Pagination.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export { NumberField, type NumberFieldProps } from './components/forms/NumberFie
|
|
|
19
19
|
export { DatePicker, type DatePickerProps } from './components/forms/DatePicker.js';
|
|
20
20
|
export { ValueHelpField, type ValueHelpFieldProps } from './components/forms/ValueHelpField.js';
|
|
21
21
|
export { ShellBar, type ShellBarProps } from './components/navigation/ShellBar.js';
|
|
22
|
-
export { SideNav, type SideNavProps, type SideNavItem, type SideNavGroup } from './components/navigation/SideNav.js';
|
|
22
|
+
export { SideNav, type SideNavProps, type SideNavItem, type SideNavChildItem, type SideNavGroup } from './components/navigation/SideNav.js';
|
|
23
23
|
export { Tabs, type TabsProps, type TabItem } from './components/navigation/Tabs.js';
|
|
24
24
|
export { Breadcrumb, type BreadcrumbProps, type BreadcrumbItem } from './components/navigation/Breadcrumb.js';
|
|
25
25
|
export { Pagination, type PaginationProps } from './components/navigation/Pagination.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC9G,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,GAAG,EAAE,K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qCAAqC,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AACnG,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEpF,4FAA4F;AAC5F,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrH,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,71 @@
|
|
|
1
|
-
// src/components/core/
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// src/components/core/icon-data.generated.ts
|
|
2
|
+
var ICON_MARKUP = {
|
|
3
|
+
"add": '<path d="M17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"/>',
|
|
4
|
+
"apps": '<path d="M8,4V8H4V4Zm2-2H2v8h8Zm8,2V8H14V4Zm2-2H12v8h8Zm8,2V8H24V4Zm2-2H22v8h8ZM8,14v4H4V14Zm2-2H2v8h8Zm8,2v4H14V14Zm2-2H12v8h8Zm8,2v4H24V14Zm2-2H22v8h8ZM8,24v4H4V24Zm2-2H2v8h8Zm8,2v4H14V24Zm2-2H12v8h8Zm8,2v4H24V24Zm2-2H22v8h8Z"/>',
|
|
5
|
+
"arrow--down": '<path d="M24.59 16.59 17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z"/>',
|
|
6
|
+
"arrow--right": '<path d="M18 6 16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"/>',
|
|
7
|
+
"arrow--up": '<path d="M16 4 6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z"/>',
|
|
8
|
+
"arrows--vertical": '<path d="M27.6 20.6 24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22z"/><path d="M9 4 3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z"/>',
|
|
9
|
+
"attachment": '<path d="M28.1,18.9L13.1,3.9c-2.5-2.6-6.6-2.6-9.2-0.1S1.3,10.5,3.9,13c0,0,0.1,0.1,0.1,0.1L6.8,16l1.4-1.4l-2.9-2.9 C3.6,10,3.6,7.1,5.3,5.4s4.6-1.8,6.3-0.1c0,0,0,0,0.1,0.1l14.9,14.9c1.8,1.7,1.8,4.6,0.1,6.3c-1.7,1.8-4.6,1.8-6.3,0.1 c0,0,0,0-0.1-0.1l-7.4-7.4c-1-1-0.9-2.6,0-3.5c1-0.9,2.5-0.9,3.5,0l4.1,4.1l1.4-1.4c0,0-4.2-4.2-4.2-4.2c-1.8-1.7-4.6-1.6-6.3,0.2 c-1.6,1.7-1.6,4.4,0,6.2l7.5,7.5c2.5,2.6,6.6,2.6,9.2,0.1S30.7,21.5,28.1,18.9C28.1,19,28.1,18.9,28.1,18.9L28.1,18.9z"/>',
|
|
10
|
+
"box": '<path d="M20,21H12a2,2,0,0,1-2-2V17a2,2,0,0,1,2-2h8a2,2,0,0,1,2,2v2A2,2,0,0,1,20,21Zm-8-4v2h8V17Z"/><path d="M28,4H4A2,2,0,0,0,2,6v4a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V12a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM26,28H6V12H26Zm2-18H4V6H28v4Z"/>',
|
|
11
|
+
"building": '<path d="M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z"/><path d="M18 8H20V10H18z"/><path d="M24 8H26V10H24z"/><path d="M18 14H20V16H18z"/><path d="M24 14H26V16H24z"/><path d="M18 20H20V22H18z"/><path d="M24 20H26V22H24z"/>',
|
|
12
|
+
"building--insights-1": '<path d="M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z"/><path d="M18 8H20V10H18z"/><path d="M24 8H26V10H24z"/><path d="M18 14H20V16H18z"/><path d="M24 14H26V16H24z"/><path d="M18 20H20V22H18z"/><path d="M24 20H26V22H24z"/><path d="M9,12H7a5.0059,5.0059,0,0,1,5-5V9A3.0033,3.0033,0,0,0,9,12Z"/><path d="M4,12H2A10.0114,10.0114,0,0,1,12,2V4A8.0092,8.0092,0,0,0,4,12Z"/>',
|
|
13
|
+
"calculator": '<path d="M26,4V28H6V4H26m0-2H6A2,2,0,0,0,4,4V28a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V4A2,2,0,0,0,26,2Z"/><path d="M9 23H11V25H9z"/><path d="M21 23H23V25H21z"/><path d="M9 18H11V20H9z"/><path d="M21 18H23V20H21z"/><path d="M9 13H11V15H9z"/><path d="M15 23H17V25H15z"/><path d="M15 18H17V20H15z"/><path d="M15 13H17V15H15z"/><path d="M21 13H23V15H21z"/><path d="M9 7H23V10H9z"/>',
|
|
14
|
+
"calendar": '<path d="M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20 V26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z"/>',
|
|
15
|
+
"checkmark": '<path d="M13 24 4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"/>',
|
|
16
|
+
"checkmark--filled": '<path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"/><path fill="none" d="M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z" data-icon-path="inner-path"/>',
|
|
17
|
+
"checkmark--outline": '<path d="M14 21.414 9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"/><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"/>',
|
|
18
|
+
"chevron--down": '<path d="M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"/>',
|
|
19
|
+
"chevron--left": '<path d="M10 16 20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z"/>',
|
|
20
|
+
"chevron--right": '<path d="M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"/>',
|
|
21
|
+
"chevron--sort": '<path d="M16 28 9 21 10.41 19.59 16 25.17 21.59 19.59 23 21 16 28z"/><path d="M16 4 23 11 21.59 12.41 16 6.83 10.41 12.41 9 11 16 4z"/>',
|
|
22
|
+
"circle-dash": '<path d="M7.7,4.7a14.7,14.7,0,0,0-3,3.1L6.3,9A13.26,13.26,0,0,1,8.9,6.3Z"/><path d="M4.6,12.3l-1.9-.6A12.51,12.51,0,0,0,2,16H4A11.48,11.48,0,0,1,4.6,12.3Z"/><path d="M2.7,20.4a14.4,14.4,0,0,0,2,3.9l1.6-1.2a12.89,12.89,0,0,1-1.7-3.3Z"/><path d="M7.8,27.3a14.4,14.4,0,0,0,3.9,2l.6-1.9A12.89,12.89,0,0,1,9,25.7Z"/><path d="M11.7,2.7l.6,1.9A11.48,11.48,0,0,1,16,4V2A12.51,12.51,0,0,0,11.7,2.7Z"/><path d="M24.2,27.3a15.18,15.18,0,0,0,3.1-3.1L25.7,23A11.53,11.53,0,0,1,23,25.7Z"/><path d="M27.4,19.7l1.9.6A15.47,15.47,0,0,0,30,16H28A11.48,11.48,0,0,1,27.4,19.7Z"/><path d="M29.2,11.6a14.4,14.4,0,0,0-2-3.9L25.6,8.9a12.89,12.89,0,0,1,1.7,3.3Z"/><path d="M24.1,4.6a14.4,14.4,0,0,0-3.9-2l-.6,1.9a12.89,12.89,0,0,1,3.3,1.7Z"/><path d="M20.3,29.3l-.6-1.9A11.48,11.48,0,0,1,16,28v2A21.42,21.42,0,0,0,20.3,29.3Z"/>',
|
|
23
|
+
"close": '<path d="M17.4141 16 24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z"/>',
|
|
24
|
+
"color-palette": '<circle cx="10" cy="12" r="2"/><circle cx="16" cy="9" r="2"/><circle cx="22" cy="12" r="2"/><circle cx="23" cy="18" r="2"/><circle cx="19" cy="23" r="2"/><path d="M16.54,2A14,14,0,0,0,2,16a4.82,4.82,0,0,0,6.09,4.65l1.12-.31A3,3,0,0,1,13,23.24V27a3,3,0,0,0,3,3A14,14,0,0,0,30,15.46,14.05,14.05,0,0,0,16.54,2Zm8.11,22.31A11.93,11.93,0,0,1,16,28a1,1,0,0,1-1-1V23.24a5,5,0,0,0-5-5,5.07,5.07,0,0,0-1.33.18l-1.12.31A2.82,2.82,0,0,1,4,16,12,12,0,0,1,16.47,4,12.18,12.18,0,0,1,28,15.53,11.89,11.89,0,0,1,24.65,24.32Z"/>',
|
|
25
|
+
"copy": '<path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"/><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"/>',
|
|
26
|
+
"delivery-truck": '<path d="M29.92,16.61l-3-7A1,1,0,0,0,26,9H23V7a1,1,0,0,0-1-1H3A1,1,0,0,0,2,7V24a1,1,0,0,0,1,1H5.14a4,4,0,0,0,7.72,0h6.28a4,4,0,0,0,7.72,0H29a1,1,0,0,0,1-1V17A1,1,0,0,0,29.92,16.61ZM23,11h2.34l2.14,5H23ZM9,26a2,2,0,1,1,2-2A2,2,0,0,1,9,26Zm10.14-3H12.86a4,4,0,0,0-7.72,0H4V8H21V20.56A4,4,0,0,0,19.14,23ZM23,26a2,2,0,1,1,2-2A2,2,0,0,1,23,26Zm5-3H26.86A4,4,0,0,0,23,20V18h5Z"/>',
|
|
27
|
+
"document": '<path d="M25.7,9.3l-7-7C18.5,2.1,18.3,2,18,2H8C6.9,2,6,2.9,6,4v24c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V10C26,9.7,25.9,9.5,25.7,9.3 z M18,4.4l5.6,5.6H18V4.4z M24,28H8V4h8v6c0,1.1,0.9,2,2,2h6V28z"/><path d="M10 22H22V24H10z"/><path d="M10 16H22V18H10z"/>',
|
|
28
|
+
"download": '<path d="M26,24v4H6V24H4v4H4a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2h0V24Z"/><path d="M26 14 24.59 12.59 17 20.17 17 2 15 2 15 20.17 7.41 12.59 6 14 16 24 26 14z"/>',
|
|
29
|
+
"edit": '<path d="M2 26H30V28H2z"/><path d="M25.4,9c0.8-0.8,0.8-2,0-2.8c0,0,0,0,0,0l-3.6-3.6c-0.8-0.8-2-0.8-2.8,0c0,0,0,0,0,0l-15,15V24h6.4L25.4,9z M20.4,4L24,7.6 l-3,3L17.4,7L20.4,4z M6,22v-3.6l10-10l3.6,3.6l-10,10H6z"/>',
|
|
30
|
+
"error--filled": '<path fill="none" d="M14.9 7.2H17.1V24.799H14.9z" data-icon-path="inner-path" transform="rotate(-45 16 16)"/><path d="M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"/>',
|
|
31
|
+
"filter": '<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>',
|
|
32
|
+
"flash": '<path d="M11.61,29.92a1,1,0,0,1-.6-1.07L12.83,17H8a1,1,0,0,1-1-1.23l3-13A1,1,0,0,1,11,2H21a1,1,0,0,1,.78.37,1,1,0,0,1,.2.85L20.25,11H25a1,1,0,0,1,.9.56,1,1,0,0,1-.11,1l-13,17A1,1,0,0,1,12,30,1.09,1.09,0,0,1,11.61,29.92ZM17.75,13l2-9H11.8L9.26,15h5.91L13.58,25.28,23,13Z"/>',
|
|
33
|
+
"grid": '<path d="M12,4H6A2,2,0,0,0,4,6v6a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V6A2,2,0,0,0,12,4Zm0,8H6V6h6Z"/><path d="M26,4H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4Zm0,8H20V6h6Z"/><path d="M12,18H6a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V20A2,2,0,0,0,12,18Zm0,8H6V20h6Z"/><path d="M26,18H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V20A2,2,0,0,0,26,18Zm0,8H20V20h6Z"/>',
|
|
34
|
+
"hashtag": '<path d="M28,12V10H22V4H20v6H12V4H10v6H4v2h6v8H4v2h6v6h2V22h8v6h2V22h6V20H22V12Zm-8,8H12V12h8Z"/>',
|
|
35
|
+
"help": '<path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"/><circle cx="16" cy="23.5" r="1.5"/><path d="M17,8H15.5A4.49,4.49,0,0,0,11,12.5V13h2v-.5A2.5,2.5,0,0,1,15.5,10H17a2.5,2.5,0,0,1,0,5H15v4.5h2V17a4.5,4.5,0,0,0,0-9Z"/>',
|
|
36
|
+
"home": '<path d="M16.6123,2.2138a1.01,1.01,0,0,0-1.2427,0L1,13.4194l1.2427,1.5717L4,13.6209V26a2.0041,2.0041,0,0,0,2,2H26a2.0037,2.0037,0,0,0,2-2V13.63L29.7573,15,31,13.4282ZM18,26H14V18h4Zm2,0V18a2.0023,2.0023,0,0,0-2-2H14a2.002,2.002,0,0,0-2,2v8H6V12.0615l10-7.79,10,7.8005V26Z"/>',
|
|
37
|
+
"information": '<path d="M17 22 17 14 13 14 13 16 15 16 15 22 12 22 12 24 20 24 20 22 17 22z"/><path d="M16,8a1.5,1.5,0,1,0,1.5,1.5A1.5,1.5,0,0,0,16,8Z"/><path d="M16,30A14,14,0,1,1,30,16,14,14,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12,12,0,0,0,16,4Z"/>',
|
|
38
|
+
"launch": '<path d="M26,28H6a2.0027,2.0027,0,0,1-2-2V6A2.0027,2.0027,0,0,1,6,4H16V6H6V26H26V16h2V26A2.0027,2.0027,0,0,1,26,28Z"/><path d="M20 2 20 4 26.586 4 18 12.586 19.414 14 28 5.414 28 12 30 12 30 2 20 2z"/>',
|
|
39
|
+
"layers": '<path d="M16,24a.9967.9967,0,0,1-.4741-.12l-13-7L3.4741,15.12,16,21.8643,28.5259,15.12l.9482,1.7607-13,7A.9967.9967,0,0,1,16,24Z"/><path d="M16,30a.9967.9967,0,0,1-.4741-.12l-13-7L3.4741,21.12,16,27.8643,28.5259,21.12l.9482,1.7607-13,7A.9967.9967,0,0,1,16,30Z"/><path d="M16,18a.9967.9967,0,0,1-.4741-.12l-13-7a1,1,0,0,1,0-1.7607l13-7a.9982.9982,0,0,1,.9482,0l13,7a1,1,0,0,1,0,1.7607l-13,7A.9967.9967,0,0,1,16,18ZM5.1094,10,16,15.8643,26.8906,10,16,4.1358Z"/>',
|
|
40
|
+
"list": '<path d="M10 6H28V8H10z"/><path d="M10 24H28V26H10z"/><path d="M10 15H28V17H10z"/><path d="M4 15H6V17H4z"/><path d="M4 6H6V8H4z"/><path d="M4 24H6V26H4z"/>',
|
|
41
|
+
"list--boxes": '<path d="M16 8H30V10H16z"/><path d="M16 22H30V24H16z"/><path d="M10,14H4a2.0023,2.0023,0,0,1-2-2V6A2.0023,2.0023,0,0,1,4,4h6a2.0023,2.0023,0,0,1,2,2v6A2.0023,2.0023,0,0,1,10,14ZM4,6v6h6.0012L10,6Z"/><path d="M10,28H4a2.0023,2.0023,0,0,1-2-2V20a2.0023,2.0023,0,0,1,2-2h6a2.0023,2.0023,0,0,1,2,2v6A2.0023,2.0023,0,0,1,10,28ZM4,20v6h6.0012L10,20Z"/>',
|
|
42
|
+
"list--checked": '<path d="M16 22H30V24H16z"/><path d="M14 19.4 12.6 18 6 24.6 3.4 22 2 23.4 6 27.4z"/><path d="M16 8H30V10H16z"/><path d="M14 5.4 12.6 4 6 10.6 3.4 8 2 9.4 6 13.4z"/>',
|
|
43
|
+
"location": '<path d="M16,18a5,5,0,1,1,5-5A5.0057,5.0057,0,0,1,16,18Zm0-8a3,3,0,1,0,3,3A3.0033,3.0033,0,0,0,16,10Z"/><path d="M16,30,7.5645,20.0513c-.0479-.0571-.3482-.4515-.3482-.4515A10.8888,10.8888,0,0,1,5,13a11,11,0,0,1,22,0,10.8844,10.8844,0,0,1-2.2148,6.5973l-.0015.0025s-.3.3944-.3447.4474ZM8.8125,18.395c.001.0007.2334.3082.2866.3744L16,26.9079l6.91-8.15c.0439-.0552.2783-.3649.2788-.3657A8.901,8.901,0,0,0,25,13,9,9,0,1,0,7,13a8.9054,8.9054,0,0,0,1.8125,5.395Z"/>',
|
|
44
|
+
"locked": '<path d="M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"/>',
|
|
45
|
+
"menu": '<path d="M4 6H28V8H4z"/><path d="M4 24H28V26H4z"/><path d="M4 12H28V14H4z"/><path d="M4 18H28V20H4z"/>',
|
|
46
|
+
"minimize": '<path d="M4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18z"/><path d="M30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"/>',
|
|
47
|
+
"misuse": '<path d="M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14S23.7,2,16,2z M21.4,23L16,17.6L10.6,23L9,21.4l5.4-5.4L9,10.6L10.6,9 l5.4,5.4L21.4,9l1.6,1.6L17.6,16l5.4,5.4L21.4,23z"/><path fill="none" d="M21.4,23L16,17.6L10.6,23L9,21.4l5.4-5.4L9,10.6L10.6,9l5.4,5.4L21.4,9l1.6,1.6L17.6,16 l5.4,5.4L21.4,23z" data-icon-path="inner-path" opacity="0"/>',
|
|
48
|
+
"notification": '<path d="M28.7071,19.293,26,16.5859V13a10.0136,10.0136,0,0,0-9-9.9492V1H15V3.0508A10.0136,10.0136,0,0,0,6,13v3.5859L3.2929,19.293A1,1,0,0,0,3,20v3a1,1,0,0,0,1,1h7v.7768a5.152,5.152,0,0,0,4.5,5.1987A5.0057,5.0057,0,0,0,21,25V24h7a1,1,0,0,0,1-1V20A1,1,0,0,0,28.7071,19.293ZM19,25a3,3,0,0,1-6,0V24h6Zm8-3H5V20.4141L7.707,17.707A1,1,0,0,0,8,17V13a8,8,0,0,1,16,0v4a1,1,0,0,0,.293.707L27,20.4141Z"/>',
|
|
49
|
+
"overflow-menu--vertical": '<circle cx="16" cy="8" r="2"/><circle cx="16" cy="16" r="2"/><circle cx="16" cy="24" r="2"/>',
|
|
50
|
+
"printer": '<path d="M28,9H25V3H7V9H4a2,2,0,0,0-2,2V21a2,2,0,0,0,2,2H7v6H25V23h3a2,2,0,0,0,2-2V11A2,2,0,0,0,28,9ZM9,5H23V9H9ZM23,27H9V17H23Zm5-6H25V15H7v6H4V11H28Z"/>',
|
|
51
|
+
"qr-code": '<path d="M24 26H26V28H24z" transform="rotate(-90 25 27)"/><path d="M18 22H20V24H18z" transform="rotate(-90 19 23)"/><path d="M18 30 22 30 22 28 20 28 20 26 18 26 18 30z"/><path d="M25 23H29V25H25z" transform="rotate(-90 27 24)"/><path d="M28 26 30 26 30 30 26 30 26 28 28 28 28 26z"/><path d="M26 20 26 18 30 18 30 22 28 22 28 20 26 20z"/><path d="M24 20 22 20 22 24 20 24 20 26 24 26 24 20z"/><path d="M19 17H21V21H19z" transform="rotate(-90 20 19)"/><path d="M6 22H10V26H6z"/><path d="M14,30H2V18H14ZM4,28h8V20H4Z"/><path d="M22 6H26V10H22z"/><path d="M30,14H18V2H30ZM20,12h8V4H20Z"/><path d="M6 6H10V10H6z"/><path d="M14,14H2V2H14ZM4,12h8V4H4Z"/>',
|
|
52
|
+
"recently-viewed": '<path d="M20.59 22 15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"/><path d="M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"/>',
|
|
53
|
+
"renew": '<path d="M12,10H6.78A11,11,0,0,1,27,16h2A13,13,0,0,0,6,7.68V4H4v8h8Z"/><path d="M20,22h5.22A11,11,0,0,1,5,16H3a13,13,0,0,0,23,8.32V28h2V20H20Z"/>',
|
|
54
|
+
"search": '<path d="M29,27.5859l-7.5521-7.5521a11.0177,11.0177,0,1,0-1.4141,1.4141L27.5859,29ZM4,13a9,9,0,1,1,9,9A9.01,9.01,0,0,1,4,13Z"/>',
|
|
55
|
+
"settings": '<path d="M27,16.76c0-.25,0-.5,0-.76s0-.51,0-.77l1.92-1.68A2,2,0,0,0,29.3,11L26.94,7a2,2,0,0,0-1.73-1,2,2,0,0,0-.64.1l-2.43.82a11.35,11.35,0,0,0-1.31-.75l-.51-2.52a2,2,0,0,0-2-1.61H13.64a2,2,0,0,0-2,1.61l-.51,2.52a11.48,11.48,0,0,0-1.32.75L7.43,6.06A2,2,0,0,0,6.79,6,2,2,0,0,0,5.06,7L2.7,11a2,2,0,0,0,.41,2.51L5,15.24c0,.25,0,.5,0,.76s0,.51,0,.77L3.11,18.45A2,2,0,0,0,2.7,21L5.06,25a2,2,0,0,0,1.73,1,2,2,0,0,0,.64-.1l2.43-.82a11.35,11.35,0,0,0,1.31.75l.51,2.52a2,2,0,0,0,2,1.61h4.72a2,2,0,0,0,2-1.61l.51-2.52a11.48,11.48,0,0,0,1.32-.75l2.42.82a2,2,0,0,0,.64.1,2,2,0,0,0,1.73-1L29.3,21a2,2,0,0,0-.41-2.51ZM25.21,24l-3.43-1.16a8.86,8.86,0,0,1-2.71,1.57L18.36,28H13.64l-.71-3.55a9.36,9.36,0,0,1-2.7-1.57L6.79,24,4.43,20l2.72-2.4a8.9,8.9,0,0,1,0-3.13L4.43,12,6.79,8l3.43,1.16a8.86,8.86,0,0,1,2.71-1.57L13.64,4h4.72l.71,3.55a9.36,9.36,0,0,1,2.7,1.57L25.21,8,27.57,12l-2.72,2.4a8.9,8.9,0,0,1,0,3.13L27.57,20Z"/><path d="M16,22a6,6,0,1,1,6-6A5.94,5.94,0,0,1,16,22Zm0-10a3.91,3.91,0,0,0-4,4,3.91,3.91,0,0,0,4,4,3.91,3.91,0,0,0,4-4A3.91,3.91,0,0,0,16,12Z"/>',
|
|
56
|
+
"settings--adjust": '<path d="M30,8h-4.1c-0.5-2.3-2.5-4-4.9-4s-4.4,1.7-4.9,4H2v2h14.1c0.5,2.3,2.5,4,4.9,4s4.4-1.7,4.9-4H30V8z M21,12c-1.7,0-3-1.3-3-3 s1.3-3,3-3s3,1.3,3,3S22.7,12,21,12z"/><path d="M2,24h4.1c0.5,2.3,2.5,4,4.9,4s4.4-1.7,4.9-4H30v-2H15.9c-0.5-2.3-2.5-4-4.9-4s-4.4,1.7-4.9,4H2V24z M11,20c1.7,0,3,1.3,3,3 s-1.3,3-3,3s-3-1.3-3-3S9.3,20,11,20z"/>',
|
|
57
|
+
"shopping--cart": '<circle cx="10" cy="28" r="2"/><circle cx="24" cy="28" r="2"/><path d="M28,7H5.82L5,2.8A1,1,0,0,0,4,2H0V4H3.18L7,23.2A1,1,0,0,0,8,24H26V22H8.82L8,18H26a1,1,0,0,0,1-.78l2-9A1,1,0,0,0,28,7Zm-2.8,9H7.62L6.22,9H26.75Z"/>',
|
|
58
|
+
"subtract": '<path d="M8 15H24V17H8z"/>',
|
|
59
|
+
"text--font": '<path d="M25,12H20v2h5a1.0008,1.0008,0,0,1,1,1v2H22a3.0033,3.0033,0,0,0-3,3v1a3.0033,3.0033,0,0,0,3,3h6V15A3.0033,3.0033,0,0,0,25,12ZM22,22a1.0008,1.0008,0,0,1-1-1V20a1.0008,1.0008,0,0,1,1-1h4v3Z"/><path d="M16,24h2L12,7H10L4,24H6l1.6936-5h6.6135ZM8.3711,17l2.4966-7.3711.2668.0005L13.63,17Z"/>',
|
|
60
|
+
"time": '<path d="M16,30A14,14,0,1,1,30,16,14,14,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12,12,0,0,0,16,4Z"/><path d="M20.59 22 15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"/>',
|
|
61
|
+
"trash-can": '<path d="M12 12H14V24H12z"/><path d="M18 12H20V24H18z"/><path d="M4,6V8H6V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V8h2V6ZM8,28V8H24V28Z"/><path d="M12 2H20V4H12z"/>',
|
|
62
|
+
"user": '<path d="M16,4a5,5,0,1,1-5,5,5,5,0,0,1,5-5m0-2a7,7,0,1,0,7,7A7,7,0,0,0,16,2Z"/><path d="M26,30H24V25a5,5,0,0,0-5-5H13a5,5,0,0,0-5,5v5H6V25a7,7,0,0,1,7-7h6a7,7,0,0,1,7,7Z"/>',
|
|
63
|
+
"view": '<path d="M30.94,15.66A16.69,16.69,0,0,0,16,5,16.69,16.69,0,0,0,1.06,15.66a1,1,0,0,0,0,.68A16.69,16.69,0,0,0,16,27,16.69,16.69,0,0,0,30.94,16.34,1,1,0,0,0,30.94,15.66ZM16,25c-5.3,0-10.9-3.93-12.93-9C5.1,10.93,10.7,7,16,7s10.9,3.93,12.93,9C26.9,21.07,21.3,25,16,25Z"/><path d="M16,10a6,6,0,1,0,6,6A6,6,0,0,0,16,10Zm0,10a4,4,0,1,1,4-4A4,4,0,0,1,16,20Z"/>',
|
|
64
|
+
"warning--alt": '<path d="M16,23a1.5,1.5,0,1,0,1.5,1.5A1.5,1.5,0,0,0,16,23Z"/><path d="M15 12H17V21H15z"/><path d="M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"/>',
|
|
65
|
+
"warning--filled": '<path d="M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"/><path fill="none" d="M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z" data-icon-path="inner-path" opacity="0"/>'
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
// src/components/core/icon-map.ts
|
|
4
69
|
var CARBON_MAP = {
|
|
5
70
|
"menu": "menu",
|
|
6
71
|
"search": "search",
|
|
@@ -70,21 +135,49 @@ var CARBON_MAP = {
|
|
|
70
135
|
"eye": "view",
|
|
71
136
|
"minimize-2": "minimize"
|
|
72
137
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
138
|
+
|
|
139
|
+
// src/components/core/Icon.tsx
|
|
140
|
+
import { jsx } from "react/jsx-runtime";
|
|
141
|
+
var IS_DEV = process.env.NODE_ENV !== "production";
|
|
142
|
+
var warned = /* @__PURE__ */ new Set();
|
|
143
|
+
function warnOnce(key, message) {
|
|
144
|
+
if (warned.has(key)) return;
|
|
145
|
+
warned.add(key);
|
|
146
|
+
console.warn(`[pire] ${message}`);
|
|
147
|
+
}
|
|
77
148
|
var config = {};
|
|
78
149
|
function configureIcons(next) {
|
|
79
150
|
config = { ...config, ...next };
|
|
151
|
+
if (!IS_DEV) return;
|
|
152
|
+
if (next.base !== void 0) {
|
|
153
|
+
warnOnce(
|
|
154
|
+
"config:base",
|
|
155
|
+
"configureIcons({ base }) is ignored: glyphs are inlined in the bundle and no longer fetched over the network. Remove the call, and the self-hosted SVGs it pointed at."
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
if (next.pack !== void 0) {
|
|
159
|
+
warnOnce(
|
|
160
|
+
"config:pack",
|
|
161
|
+
"configureIcons({ pack }) is ignored: the bundled Carbon pack is the only pack. Use configureIcons({ resolve }) to supply a glyph Pire does not ship."
|
|
162
|
+
);
|
|
163
|
+
}
|
|
80
164
|
}
|
|
81
165
|
function Icon({ name, size = 16, label, pack, style, ...rest }) {
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
166
|
+
const markup = config.resolve?.(name) ?? ICON_MARKUP[CARBON_MAP[name] ?? name];
|
|
167
|
+
if (IS_DEV) {
|
|
168
|
+
if (pack !== void 0) {
|
|
169
|
+
warnOnce(
|
|
170
|
+
"prop:pack",
|
|
171
|
+
"The Icon `pack` prop is ignored: the bundled Carbon pack is the only pack. Drop the prop."
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
if (markup === void 0) {
|
|
175
|
+
warnOnce(
|
|
176
|
+
`missing:${name}`,
|
|
177
|
+
`Unknown icon name "${name}" \u2014 nothing will render. Add it to CARBON_MAP in src/components/core/icon-map.ts and rebuild, or register it with configureIcons({ resolve }).`
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
88
181
|
return /* @__PURE__ */ jsx(
|
|
89
182
|
"span",
|
|
90
183
|
{
|
|
@@ -93,26 +186,18 @@ function Icon({ name, size = 16, label, pack, style, ...rest }) {
|
|
|
93
186
|
"aria-hidden": label ? void 0 : true,
|
|
94
187
|
"data-icon": name,
|
|
95
188
|
...rest,
|
|
96
|
-
style: {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
flex: "0 0 auto",
|
|
100
|
-
width: size,
|
|
101
|
-
height: size,
|
|
102
|
-
backgroundColor: failed ? "transparent" : "currentColor",
|
|
103
|
-
WebkitMaskImage: failed ? void 0 : `url("${url}")`,
|
|
104
|
-
WebkitMask: failed ? void 0 : mask,
|
|
105
|
-
mask: failed ? void 0 : mask,
|
|
106
|
-
...style
|
|
107
|
-
},
|
|
108
|
-
children: /* @__PURE__ */ jsx(
|
|
109
|
-
"img",
|
|
189
|
+
style: { display: "inline-block", flex: "0 0 auto", width: size, height: size, ...style },
|
|
190
|
+
children: markup === void 0 ? null : /* @__PURE__ */ jsx(
|
|
191
|
+
"svg",
|
|
110
192
|
{
|
|
111
|
-
|
|
112
|
-
|
|
193
|
+
viewBox: "0 0 32 32",
|
|
194
|
+
width: size,
|
|
195
|
+
height: size,
|
|
196
|
+
fill: "currentColor",
|
|
197
|
+
focusable: "false",
|
|
113
198
|
"aria-hidden": "true",
|
|
114
|
-
|
|
115
|
-
|
|
199
|
+
style: { display: "block" },
|
|
200
|
+
dangerouslySetInnerHTML: { __html: markup }
|
|
116
201
|
}
|
|
117
202
|
)
|
|
118
203
|
}
|
|
@@ -120,7 +205,7 @@ function Icon({ name, size = 16, label, pack, style, ...rest }) {
|
|
|
120
205
|
}
|
|
121
206
|
|
|
122
207
|
// src/components/core/Button.tsx
|
|
123
|
-
import * as
|
|
208
|
+
import * as React from "react";
|
|
124
209
|
import { Button as AriaButton } from "react-aria-components";
|
|
125
210
|
|
|
126
211
|
// src/components/utils/cx.ts
|
|
@@ -130,7 +215,7 @@ function cx(...parts) {
|
|
|
130
215
|
|
|
131
216
|
// src/components/core/Button.tsx
|
|
132
217
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
133
|
-
var Button =
|
|
218
|
+
var Button = React.forwardRef(function Button2({ children, variant = "secondary", size = "md", icon, iconEnd, fullWidth, className, ...rest }, ref) {
|
|
134
219
|
return /* @__PURE__ */ jsxs(
|
|
135
220
|
AriaButton,
|
|
136
221
|
{
|
|
@@ -150,7 +235,7 @@ var Button = React2.forwardRef(function Button2({ children, variant = "secondary
|
|
|
150
235
|
});
|
|
151
236
|
|
|
152
237
|
// src/components/core/IconButton.tsx
|
|
153
|
-
import * as
|
|
238
|
+
import * as React2 from "react";
|
|
154
239
|
import { Button as AriaButton2 } from "react-aria-components";
|
|
155
240
|
|
|
156
241
|
// src/components/feedback/Tooltip.tsx
|
|
@@ -168,7 +253,7 @@ function Tooltip({ label, placement = "top", delay = 500, children }) {
|
|
|
168
253
|
|
|
169
254
|
// src/components/core/IconButton.tsx
|
|
170
255
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
171
|
-
var IconButton =
|
|
256
|
+
var IconButton = React2.forwardRef(function IconButton2({ icon, label, size = "md", variant = "tertiary", selected, hideTooltip, className, ...rest }, ref) {
|
|
172
257
|
const button = /* @__PURE__ */ jsx4(
|
|
173
258
|
AriaButton2,
|
|
174
259
|
{
|
|
@@ -239,11 +324,11 @@ function Card({ title, subtitle, icon, actions, footer, interactive, children, c
|
|
|
239
324
|
}
|
|
240
325
|
|
|
241
326
|
// src/components/core/Avatar.tsx
|
|
242
|
-
import * as
|
|
327
|
+
import * as React3 from "react";
|
|
243
328
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
244
329
|
var initials = (name) => name.trim().split(/\s+/).slice(0, 2).map((p) => p[0]).join("").toUpperCase();
|
|
245
330
|
function Avatar({ name, size = "md", src, className, ...rest }) {
|
|
246
|
-
const [failed, setFailed] =
|
|
331
|
+
const [failed, setFailed] = React3.useState(false);
|
|
247
332
|
return /* @__PURE__ */ jsx8("span", { className: cx("pire-avatar", className), "data-size": size, role: "img", "aria-label": name, ...rest, children: src && !failed ? /* @__PURE__ */ jsx8(
|
|
248
333
|
"img",
|
|
249
334
|
{
|
|
@@ -256,7 +341,7 @@ function Avatar({ name, size = "md", src, className, ...rest }) {
|
|
|
256
341
|
}
|
|
257
342
|
|
|
258
343
|
// src/components/core/SegmentedControl.tsx
|
|
259
|
-
import * as
|
|
344
|
+
import * as React4 from "react";
|
|
260
345
|
import { ToggleButtonGroup, ToggleButton } from "react-aria-components";
|
|
261
346
|
import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
262
347
|
function SegmentedControl({
|
|
@@ -270,7 +355,7 @@ function SegmentedControl({
|
|
|
270
355
|
style,
|
|
271
356
|
...rest
|
|
272
357
|
}) {
|
|
273
|
-
const selected =
|
|
358
|
+
const selected = React4.useMemo(() => new Set(value ? [value] : defaultValue ? [defaultValue] : []), [value, defaultValue]);
|
|
274
359
|
return /* @__PURE__ */ jsx9(
|
|
275
360
|
ToggleButtonGroup,
|
|
276
361
|
{
|
|
@@ -373,10 +458,10 @@ function Input({
|
|
|
373
458
|
}
|
|
374
459
|
|
|
375
460
|
// src/components/forms/TextArea.tsx
|
|
376
|
-
import * as
|
|
461
|
+
import * as React5 from "react";
|
|
377
462
|
import { TextField as TextField2, Label as Label2, TextArea as AriaTextArea, Group as Group2, Text as Text2, FieldError as FieldError2 } from "react-aria-components";
|
|
378
463
|
import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
379
|
-
var useIsomorphicLayoutEffect = typeof document === "undefined" ?
|
|
464
|
+
var useIsomorphicLayoutEffect = typeof document === "undefined" ? React5.useEffect : React5.useLayoutEffect;
|
|
380
465
|
function TextArea({
|
|
381
466
|
label,
|
|
382
467
|
description,
|
|
@@ -392,13 +477,13 @@ function TextArea({
|
|
|
392
477
|
onChange,
|
|
393
478
|
...rest
|
|
394
479
|
}) {
|
|
395
|
-
const innerRef =
|
|
396
|
-
const ref =
|
|
480
|
+
const innerRef = React5.useRef(null);
|
|
481
|
+
const ref = React5.useCallback((node) => {
|
|
397
482
|
innerRef.current = node;
|
|
398
483
|
if (typeof textAreaRef === "function") textAreaRef(node);
|
|
399
484
|
else if (textAreaRef) textAreaRef.current = node;
|
|
400
485
|
}, [textAreaRef]);
|
|
401
|
-
const grow =
|
|
486
|
+
const grow = React5.useCallback(() => {
|
|
402
487
|
const el = innerRef.current;
|
|
403
488
|
if (!el || !autoGrow) return;
|
|
404
489
|
const styles = getComputedStyle(el);
|
|
@@ -649,7 +734,7 @@ function ComboBox({
|
|
|
649
734
|
}
|
|
650
735
|
|
|
651
736
|
// src/components/forms/MultiComboBox.tsx
|
|
652
|
-
import * as
|
|
737
|
+
import * as React6 from "react";
|
|
653
738
|
import {
|
|
654
739
|
ComboBox as AriaComboBox2,
|
|
655
740
|
Label as Label6,
|
|
@@ -682,13 +767,13 @@ function MultiComboBox({
|
|
|
682
767
|
style,
|
|
683
768
|
...rest
|
|
684
769
|
}) {
|
|
685
|
-
const items =
|
|
686
|
-
const [uncontrolled, setUncontrolled] =
|
|
687
|
-
const [announcement, setAnnouncement] =
|
|
688
|
-
const inputRef =
|
|
770
|
+
const items = React6.useMemo(() => options.map(norm3), [options]);
|
|
771
|
+
const [uncontrolled, setUncontrolled] = React6.useState(defaultValue ?? []);
|
|
772
|
+
const [announcement, setAnnouncement] = React6.useState("");
|
|
773
|
+
const inputRef = React6.useRef(null);
|
|
689
774
|
const raw = value ?? uncontrolled;
|
|
690
775
|
const contentKey = raw.join("\0");
|
|
691
|
-
const values =
|
|
776
|
+
const values = React6.useMemo(() => raw, [contentKey]);
|
|
692
777
|
const labelOf = (v) => items.find((o) => o.value === v)?.label ?? v;
|
|
693
778
|
const isEditable = !rest.isDisabled && !rest.isReadOnly;
|
|
694
779
|
const commit = (next) => {
|
|
@@ -900,10 +985,10 @@ function DatePicker({
|
|
|
900
985
|
}
|
|
901
986
|
|
|
902
987
|
// src/components/forms/ValueHelpField.tsx
|
|
903
|
-
import * as
|
|
988
|
+
import * as React8 from "react";
|
|
904
989
|
|
|
905
990
|
// src/components/patterns/ValueHelpDialog.tsx
|
|
906
|
-
import * as
|
|
991
|
+
import * as React7 from "react";
|
|
907
992
|
|
|
908
993
|
// src/components/feedback/Dialog.tsx
|
|
909
994
|
import { ModalOverlay, Modal, Dialog as AriaDialog2, Heading as Heading2 } from "react-aria-components";
|
|
@@ -1055,11 +1140,11 @@ function ValueHelpDialog({
|
|
|
1055
1140
|
onSelect,
|
|
1056
1141
|
onClose
|
|
1057
1142
|
}) {
|
|
1058
|
-
const [query, setQuery] =
|
|
1059
|
-
|
|
1143
|
+
const [query, setQuery] = React7.useState("");
|
|
1144
|
+
React7.useEffect(() => {
|
|
1060
1145
|
if (isOpen) setQuery("");
|
|
1061
1146
|
}, [isOpen]);
|
|
1062
|
-
const filtered =
|
|
1147
|
+
const filtered = React7.useMemo(() => {
|
|
1063
1148
|
const q = query.trim().toLowerCase();
|
|
1064
1149
|
if (!q) return rows;
|
|
1065
1150
|
return rows.filter((row) => Object.values(row).some((v) => String(v).toLowerCase().includes(q)));
|
|
@@ -1125,7 +1210,7 @@ function ValueHelpField({
|
|
|
1125
1210
|
className,
|
|
1126
1211
|
style
|
|
1127
1212
|
}) {
|
|
1128
|
-
const [open, setOpen] =
|
|
1213
|
+
const [open, setOpen] = React8.useState(false);
|
|
1129
1214
|
return /* @__PURE__ */ jsxs21("div", { className: cx(className), style, children: [
|
|
1130
1215
|
/* @__PURE__ */ jsxs21("div", { style: { display: "flex", gap: "var(--sp-2)", alignItems: "flex-end" }, children: [
|
|
1131
1216
|
/* @__PURE__ */ jsx24(
|
|
@@ -1180,23 +1265,133 @@ function ValueHelpField({
|
|
|
1180
1265
|
// src/components/navigation/ShellBar.tsx
|
|
1181
1266
|
import { jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1182
1267
|
var initials2 = (name) => name.trim().split(/\s+/).slice(0, 2).map((p) => p[0]).join("").toUpperCase();
|
|
1183
|
-
function ShellBar({
|
|
1268
|
+
function ShellBar({
|
|
1269
|
+
product,
|
|
1270
|
+
monogram,
|
|
1271
|
+
title,
|
|
1272
|
+
onMenu,
|
|
1273
|
+
onSearch,
|
|
1274
|
+
menuLabel = "Open navigation",
|
|
1275
|
+
searchLabel = "Search",
|
|
1276
|
+
actions,
|
|
1277
|
+
user,
|
|
1278
|
+
className,
|
|
1279
|
+
...rest
|
|
1280
|
+
}) {
|
|
1184
1281
|
return /* @__PURE__ */ jsxs22("header", { className: cx("pire-shellbar", className), ...rest, children: [
|
|
1185
|
-
onMenu ? /* @__PURE__ */ jsx25(IconButton, { icon: "menu", label:
|
|
1282
|
+
onMenu ? /* @__PURE__ */ jsx25(IconButton, { icon: "menu", label: menuLabel, variant: "inverse", size: "sm", onPress: onMenu }) : null,
|
|
1186
1283
|
monogram ? /* @__PURE__ */ jsx25("span", { className: "pire-shellbar-mono", "aria-hidden": "true", children: monogram }) : null,
|
|
1187
1284
|
product ? /* @__PURE__ */ jsx25("span", { className: "pire-shellbar-product", children: product }) : null,
|
|
1188
1285
|
title ? /* @__PURE__ */ jsx25("span", { className: "pire-shellbar-title", children: title }) : null,
|
|
1189
1286
|
/* @__PURE__ */ jsx25("span", { className: "pire-shellbar-spacer" }),
|
|
1190
|
-
onSearch ? /* @__PURE__ */ jsx25(IconButton, { icon: "search", label:
|
|
1287
|
+
onSearch ? /* @__PURE__ */ jsx25(IconButton, { icon: "search", label: searchLabel, variant: "inverse", size: "sm", onPress: onSearch }) : null,
|
|
1191
1288
|
actions,
|
|
1192
1289
|
user ? /* @__PURE__ */ jsx25("span", { className: "pire-avatar", title: user, "aria-label": user, role: "img", children: initials2(user) }) : null
|
|
1193
1290
|
] });
|
|
1194
1291
|
}
|
|
1195
1292
|
|
|
1196
1293
|
// src/components/navigation/SideNav.tsx
|
|
1197
|
-
import
|
|
1294
|
+
import * as React9 from "react";
|
|
1295
|
+
import { Button as AriaButton9, Disclosure, DisclosureGroup, DisclosurePanel } from "react-aria-components";
|
|
1198
1296
|
import { jsx as jsx26, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1199
|
-
function
|
|
1297
|
+
function findActiveParent(groups, value) {
|
|
1298
|
+
if (value == null) return void 0;
|
|
1299
|
+
for (const group of groups) {
|
|
1300
|
+
for (const item of group.items) {
|
|
1301
|
+
if (item.items?.some((child) => child.id === value)) return item.id;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
return void 0;
|
|
1305
|
+
}
|
|
1306
|
+
function SideNav({
|
|
1307
|
+
groups,
|
|
1308
|
+
value,
|
|
1309
|
+
onChange,
|
|
1310
|
+
expandedIds,
|
|
1311
|
+
defaultExpandedIds,
|
|
1312
|
+
onExpandedChange,
|
|
1313
|
+
collapsed,
|
|
1314
|
+
footer,
|
|
1315
|
+
className,
|
|
1316
|
+
...rest
|
|
1317
|
+
}) {
|
|
1318
|
+
const activeParent = findActiveParent(groups, value);
|
|
1319
|
+
const isControlled = expandedIds != null;
|
|
1320
|
+
const [ownExpanded, setOwnExpanded] = React9.useState(
|
|
1321
|
+
() => new Set(defaultExpandedIds ?? (activeParent ? [activeParent] : []))
|
|
1322
|
+
);
|
|
1323
|
+
const [lastValue, setLastValue] = React9.useState(value);
|
|
1324
|
+
if (value !== lastValue) {
|
|
1325
|
+
setLastValue(value);
|
|
1326
|
+
if (!isControlled && activeParent && !ownExpanded.has(activeParent)) {
|
|
1327
|
+
setOwnExpanded(new Set(ownExpanded).add(activeParent));
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
const expanded = isControlled ? new Set(expandedIds) : ownExpanded;
|
|
1331
|
+
const commitExpanded = (next) => {
|
|
1332
|
+
if (!isControlled) setOwnExpanded(next);
|
|
1333
|
+
onExpandedChange?.([...next]);
|
|
1334
|
+
};
|
|
1335
|
+
const handleExpandedChange = (keys) => commitExpanded(new Set([...keys].map(String)));
|
|
1336
|
+
const toggleExpanded = (id) => {
|
|
1337
|
+
const next = new Set(expanded);
|
|
1338
|
+
if (!next.delete(id)) next.add(id);
|
|
1339
|
+
commitExpanded(next);
|
|
1340
|
+
};
|
|
1341
|
+
const renderRow = (item, onPress, isGroup) => {
|
|
1342
|
+
const selected = !isGroup && item.id === value;
|
|
1343
|
+
const button = /* @__PURE__ */ jsxs23(
|
|
1344
|
+
AriaButton9,
|
|
1345
|
+
{
|
|
1346
|
+
className: "pire-sidenav-item",
|
|
1347
|
+
"data-selected": selected ? "true" : void 0,
|
|
1348
|
+
"data-active-child": isGroup && item.id === activeParent ? "true" : void 0,
|
|
1349
|
+
"aria-current": selected ? "page" : void 0,
|
|
1350
|
+
onPress,
|
|
1351
|
+
children: [
|
|
1352
|
+
item.icon ? /* @__PURE__ */ jsx26(Icon, { name: item.icon, size: 16 }) : null,
|
|
1353
|
+
collapsed ? null : /* @__PURE__ */ jsx26("span", { children: item.label }),
|
|
1354
|
+
item.count != null && !collapsed ? /* @__PURE__ */ jsx26("span", { className: "pire-sidenav-count", children: item.count }) : null
|
|
1355
|
+
]
|
|
1356
|
+
},
|
|
1357
|
+
item.id
|
|
1358
|
+
);
|
|
1359
|
+
return collapsed ? /* @__PURE__ */ jsx26(Tooltip, { label: item.label, placement: "right", children: button }, item.id) : button;
|
|
1360
|
+
};
|
|
1361
|
+
const renderSection = (item) => /* @__PURE__ */ jsxs23(Disclosure, { id: item.id, className: "pire-sidenav-section", children: [
|
|
1362
|
+
/* @__PURE__ */ jsxs23(
|
|
1363
|
+
AriaButton9,
|
|
1364
|
+
{
|
|
1365
|
+
slot: "trigger",
|
|
1366
|
+
className: "pire-sidenav-item",
|
|
1367
|
+
"data-kind": "group",
|
|
1368
|
+
"data-active-child": item.id === activeParent ? "true" : void 0,
|
|
1369
|
+
children: [
|
|
1370
|
+
item.icon ? /* @__PURE__ */ jsx26(Icon, { name: item.icon, size: 16 }) : null,
|
|
1371
|
+
/* @__PURE__ */ jsx26("span", { children: item.label }),
|
|
1372
|
+
item.count != null ? /* @__PURE__ */ jsx26("span", { className: "pire-sidenav-count", children: item.count }) : null,
|
|
1373
|
+
/* @__PURE__ */ jsx26(Icon, { name: "chevron-down", size: 16, className: "pire-sidenav-chevron" })
|
|
1374
|
+
]
|
|
1375
|
+
}
|
|
1376
|
+
),
|
|
1377
|
+
/* @__PURE__ */ jsx26(DisclosurePanel, { className: "pire-sidenav-subnav", children: item.items?.map((child) => {
|
|
1378
|
+
const selected = child.id === value;
|
|
1379
|
+
return /* @__PURE__ */ jsxs23(
|
|
1380
|
+
AriaButton9,
|
|
1381
|
+
{
|
|
1382
|
+
className: "pire-sidenav-item pire-sidenav-subitem",
|
|
1383
|
+
"data-selected": selected ? "true" : void 0,
|
|
1384
|
+
"aria-current": selected ? "page" : void 0,
|
|
1385
|
+
onPress: () => onChange?.(child.id),
|
|
1386
|
+
children: [
|
|
1387
|
+
/* @__PURE__ */ jsx26("span", { children: child.label }),
|
|
1388
|
+
child.count != null ? /* @__PURE__ */ jsx26("span", { className: "pire-sidenav-count", children: child.count }) : null
|
|
1389
|
+
]
|
|
1390
|
+
},
|
|
1391
|
+
child.id
|
|
1392
|
+
);
|
|
1393
|
+
}) })
|
|
1394
|
+
] }, item.id);
|
|
1200
1395
|
return /* @__PURE__ */ jsxs23(
|
|
1201
1396
|
"nav",
|
|
1202
1397
|
{
|
|
@@ -1205,28 +1400,27 @@ function SideNav({ groups, value, onChange, collapsed, footer, className, ...res
|
|
|
1205
1400
|
"aria-label": "Main navigation",
|
|
1206
1401
|
...rest,
|
|
1207
1402
|
children: [
|
|
1208
|
-
groups.map((group, gi) =>
|
|
1209
|
-
|
|
1210
|
-
group.items.map((item) => {
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1213
|
-
|
|
1403
|
+
groups.map((group, gi) => {
|
|
1404
|
+
const hasSections = !collapsed && group.items.some((item) => item.items?.length);
|
|
1405
|
+
const rows = group.items.map((item) => {
|
|
1406
|
+
const isGroup = Boolean(item.items?.length);
|
|
1407
|
+
if (isGroup && !collapsed) return renderSection(item);
|
|
1408
|
+
return renderRow(item, () => isGroup ? toggleExpanded(item.id) : onChange?.(item.id), isGroup);
|
|
1409
|
+
});
|
|
1410
|
+
return /* @__PURE__ */ jsxs23("div", { className: "pire-sidenav-group", children: [
|
|
1411
|
+
group.label && !collapsed ? /* @__PURE__ */ jsx26("div", { className: "pire-sidenav-label", children: group.label }) : null,
|
|
1412
|
+
hasSections ? /* @__PURE__ */ jsx26(
|
|
1413
|
+
DisclosureGroup,
|
|
1214
1414
|
{
|
|
1215
|
-
className: "pire-sidenav-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
children:
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
},
|
|
1225
|
-
item.id
|
|
1226
|
-
);
|
|
1227
|
-
return collapsed ? /* @__PURE__ */ jsx26(Tooltip, { label: item.label, placement: "right", children: button }, item.id) : button;
|
|
1228
|
-
})
|
|
1229
|
-
] }, group.label ?? gi)),
|
|
1415
|
+
className: "pire-sidenav-tree",
|
|
1416
|
+
allowsMultipleExpanded: true,
|
|
1417
|
+
expandedKeys: expanded,
|
|
1418
|
+
onExpandedChange: handleExpandedChange,
|
|
1419
|
+
children: rows
|
|
1420
|
+
}
|
|
1421
|
+
) : rows
|
|
1422
|
+
] }, group.label ?? gi);
|
|
1423
|
+
}),
|
|
1230
1424
|
footer ? /* @__PURE__ */ jsx26("div", { className: "pire-sidenav-footer", children: footer }) : null
|
|
1231
1425
|
]
|
|
1232
1426
|
}
|