hisd3-ui-kit 4.0.0 → 4.1.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/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("antd"),r=require("react"),n=require("styled-components"),o=require("@ant-design/icons");function i(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}i('body,html{height:100%;width:100%}input::-ms-clear,input::-ms-reveal{display:none}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:sans-serif;line-height:1.15}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{font-weight:500;margin-bottom:.5em;margin-top:0}p{margin-bottom:1em;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=number],input[type=password],input[type=text],textarea{-webkit-appearance:none}dl,ol,ul{margin-bottom:1em;margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-bottom:1em;margin-top:0;overflow:auto}figure{margin:0 0 1em}img{border-style:none;vertical-align:middle}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;padding-bottom:.3em;padding-top:.75em;text-align:left}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5em;line-height:inherit;margin-bottom:.5em;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}');i('@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");:root{--font-body:"Archivo",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--font-heading:var(--font-body);--font-weight-heading:800}body{-webkit-font-smoothing:antialiased;font-family:var(--font-body)}.ant-typography h1,.ant-typography h2,.ant-typography h3,.ant-typography h4,.ant-typography h5,h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);font-weight:var(--font-weight-heading);letter-spacing:-.01em}');const a={red:"#E5401C",orange:"#F26B1D",teal:"#00796B",blue:"#1D5FD1",green:"#2E7D32",purple:"#6A3FD6"},l={bgLayout:"#F3F2F0",bgContainer:"#F3F2F0",bgElevated:"#FFFFFF",bgFilled:"#E6E4E1",text:"#171717",textSecondary:"#4A4A4A",textTertiary:"#6E6E6E",border:"#1F1F1F",borderSecondary:"#CFCDC9",white:"#FFFFFF"},s="'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",d=(e="red")=>a[e]??e,p=(e,t)=>{const r=e.replace("#",""),n=3===r.length?r.split("").map((e=>e+e)).join(""):r,o=parseInt(n,16),i=o>>8&255,a=255&o,l=e=>Math.round(e+(255-e)*t);return`#${[l(o>>16&255),l(i),l(a)].map((e=>e.toString(16).padStart(2,"0"))).join("")}`},c=({primary:e,radius:t=0,lineWidth:r=2,overrides:n}={})=>{const o=d(e),i=l,a={cssVar:{key:"hisd3"},token:{colorPrimary:o,colorInfo:o,colorLink:o,colorPrimaryBg:p(o,.92),colorPrimaryBgHover:p(o,.86),colorPrimaryBorder:p(o,.6),fontFamily:s,fontSize:14,fontWeightStrong:700,borderRadius:t,borderRadiusLG:t,borderRadiusSM:t,borderRadiusXS:t,lineWidth:r,colorBgLayout:i.bgLayout,colorBgContainer:i.bgContainer,colorBgElevated:i.bgElevated,colorText:i.text,colorTextSecondary:i.textSecondary,colorTextTertiary:i.textTertiary,colorTextHeading:i.text,colorBorder:i.border,colorBorderSecondary:i.borderSecondary,colorSplit:i.borderSecondary,controlHeight:40,controlHeightLG:52,controlHeightSM:32,boxShadow:"none",boxShadowSecondary:"0 8px 24px rgba(0,0,0,0.12)"},components:{Layout:{siderBg:i.bgLayout,headerBg:i.bgLayout,bodyBg:i.bgLayout,headerPadding:"0 48px"},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",itemColor:i.text,itemHoverColor:i.text,itemHoverBg:"rgba(0,0,0,0.04)",itemSelectedBg:p(o,.9),itemSelectedColor:o,itemActiveBg:p(o,.86),subMenuItemSelectedColor:o,groupTitleColor:i.textTertiary,groupTitleFontSize:12,itemBorderRadius:0,itemMarginInline:0,itemMarginBlock:0,itemHeight:46,itemPaddingInline:24,iconSize:18,collapsedIconSize:18,activeBarBorderWidth:0,activeBarWidth:0},Button:{fontWeight:600,primaryShadow:"none",defaultShadow:"none",dangerShadow:"none",defaultBorderColor:i.border,defaultColor:i.text,defaultBg:i.bgLayout,defaultHoverBg:i.white,defaultHoverBorderColor:i.border,defaultHoverColor:i.text,defaultActiveBorderColor:i.border,paddingInline:20,contentFontSizeLG:16},Input:{activeShadow:"none",colorBorder:i.borderSecondary,hoverBorderColor:i.border,activeBorderColor:i.border,paddingInline:16},Select:{optionSelectedBg:p(o,.9),colorBorder:i.borderSecondary},Table:{headerBg:"transparent",headerColor:i.textTertiary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:i.borderSecondary,rowHoverBg:"rgba(0,0,0,0.03)",cellPaddingBlock:20,cellPaddingInline:16,cellFontSize:16,footerBg:"transparent"},Tabs:{inkBarColor:o,itemColor:i.text,itemSelectedColor:o,itemHoverColor:o,titleFontSize:18,horizontalItemGutter:48,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:i.bgLayout,itemActiveBg:o,itemSize:48,itemInputBg:i.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:i.textTertiary,lastItemColor:i.text,linkColor:i.textTertiary,linkHoverColor:o,separatorColor:i.textTertiary},Card:{headerFontSize:20}}};return n?{...a,...n,token:{...a.token,...n.token},components:{...a.components,...n.components}}:a},h=c(),g={primary:a.red,primaryLight:p(a.red,.9),headerSelectedBg:"rgba(0,0,0,0.04)"},u=r.createContext(!1),x=()=>r.useContext(u),m={siderWidth:280,siderCollapsedWidth:72,topBarHeight:88,pageGutter:40},{Header:b,Content:y}=t.Layout,f=m.siderWidth,v=m.siderCollapsedWidth,w=m.topBarHeight,S=n(t.Layout)`
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("antd"),r=require("react"),o=require("styled-components"),i=require("@ant-design/icons");function n(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}n('body,html{height:100%;width:100%}input::-ms-clear,input::-ms-reveal{display:none}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:sans-serif;line-height:1.15}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{font-weight:500;margin-bottom:.5em;margin-top:0}p{margin-bottom:1em;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=number],input[type=password],input[type=text],textarea{-webkit-appearance:none}dl,ol,ul{margin-bottom:1em;margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-bottom:1em;margin-top:0;overflow:auto}figure{margin:0 0 1em}img{border-style:none;vertical-align:middle}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;padding-bottom:.3em;padding-top:.75em;text-align:left}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5em;line-height:inherit;margin-bottom:.5em;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}');n('@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");:root{--hisd3-rule-width:1px;--hisd3-control-bg:#e6e4e1;--hisd3-control-bg-hover:#dbd8d4;--hisd3-popup-radius:10px;--font-body:"Archivo",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--font-heading:var(--font-body);--font-weight-heading:800}body{-webkit-font-smoothing:antialiased;font-family:var(--font-body)}.ant-typography h1,.ant-typography h2,.ant-typography h3,.ant-typography h4,.ant-typography h5,h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);font-weight:var(--font-weight-heading);letter-spacing:-.01em}');const a={siderWidth:260,siderCollapsedWidth:64,topBarHeight:60,pageGutter:28},l={red:"#E5401C",orange:"#F26B1D",teal:"#00796B",blue:"#1D5FD1",green:"#2E7D32",purple:"#6A3FD6"},s={bgLayout:"#F3F2F0",bgContainer:"#F3F2F0",bgElevated:"#FFFFFF",bgFilled:"#E6E4E1",bgFilledHover:"#DBD8D4",text:"#171717",textSecondary:"#4A4A4A",textTertiary:"#6E6E6E",border:"#D9D5CE",borderSecondary:"#E7E4DE",borderStrong:"#1F1F1F",white:"#FFFFFF"},d={hairline:{width:1,border:"#D9D5CE",borderSecondary:"#E7E4DE"},bold:{width:2,border:"#1F1F1F",borderSecondary:"#CFCDC9"}},p="'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",c=(e="red")=>l[e]??e,h=(e,t)=>{const r=e.replace("#",""),o=3===r.length?r.split("").map((e=>e+e)).join(""):r,i=parseInt(o,16),n=i>>8&255,a=255&i,l=e=>Math.round(e+(255-e)*t);return`#${[l(i>>16&255),l(n),l(a)].map((e=>e.toString(16).padStart(2,"0"))).join("")}`},u=({primary:e,radius:t=0,borders:r="hairline",lineWidth:o,overrides:i}={})=>{const n=c(e),l=d[r]??d.hairline,u=o??l.width,x={...s,border:l.border,borderSecondary:l.borderSecondary},g={cssVar:{key:"hisd3"},token:{colorPrimary:n,colorInfo:n,colorLink:n,colorPrimaryBg:h(n,.92),colorPrimaryBgHover:h(n,.86),colorPrimaryBorder:h(n,.6),fontFamily:p,fontSize:14,fontWeightStrong:700,borderRadius:t,borderRadiusLG:t,borderRadiusSM:t,borderRadiusXS:t,lineWidth:u,colorBgLayout:x.bgLayout,colorBgContainer:x.bgContainer,colorBgElevated:x.bgElevated,colorText:x.text,colorTextSecondary:x.textSecondary,colorTextTertiary:x.textTertiary,colorTextHeading:x.text,colorBorder:x.border,colorBorderSecondary:x.borderSecondary,colorSplit:x.borderSecondary,controlHeight:40,controlHeightLG:52,controlHeightSM:32,boxShadow:"none",boxShadowSecondary:"0 2px 6px rgba(16,15,14,0.06), 0 12px 32px rgba(16,15,14,0.14)"},components:{Layout:{siderBg:x.bgLayout,headerBg:x.bgLayout,bodyBg:x.bgLayout,headerPadding:`0 ${a.pageGutter}px`},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",itemColor:x.text,itemHoverColor:x.text,itemHoverBg:"rgba(0,0,0,0.04)",itemSelectedBg:h(n,.9),itemSelectedColor:n,itemActiveBg:h(n,.86),subMenuItemSelectedColor:n,groupTitleColor:x.textTertiary,groupTitleFontSize:12,itemBorderRadius:0,itemMarginInline:0,itemMarginBlock:0,itemHeight:40,itemPaddingInline:a.pageGutter,iconSize:16,collapsedIconSize:18,activeBarBorderWidth:0,activeBarWidth:0},Button:{fontWeight:600,primaryShadow:"none",defaultShadow:"none",dangerShadow:"none",defaultBorderColor:x.border,defaultColor:x.text,defaultBg:x.bgLayout,defaultHoverBg:x.white,defaultHoverBorderColor:x.borderStrong,defaultHoverColor:x.text,defaultActiveBorderColor:x.borderStrong,paddingInline:16,contentFontSize:14,contentFontSizeLG:16,contentFontSizeSM:13},Input:{activeShadow:"none",colorBorder:x.border,hoverBorderColor:x.borderStrong,activeBorderColor:x.borderStrong,paddingInline:16},Select:{optionSelectedBg:h(n,.9),colorBorder:x.border},Table:{headerBg:"transparent",headerColor:x.textTertiary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:x.borderSecondary,rowHoverBg:"rgba(0,0,0,0.03)",cellPaddingBlock:20,cellPaddingInline:16,cellFontSize:16,footerBg:"transparent"},Tabs:{inkBarColor:n,itemColor:x.text,itemSelectedColor:n,itemHoverColor:n,titleFontSize:18,horizontalItemGutter:48,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:x.bgLayout,itemActiveBg:n,itemSize:48,itemInputBg:x.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:x.textTertiary,lastItemColor:x.text,linkColor:x.textTertiary,linkHoverColor:n,separatorColor:x.textTertiary},Card:{headerFontSize:20}}};return i?{...g,...i,token:{...g.token,...i.token},components:{...g.components,...i.components}}:g},x=(e="hairline",t)=>`:root{--hisd3-rule-width:${t??(d[e]??d.hairline).width}px;--hisd3-control-bg:${s.bgFilled};--hisd3-control-bg-hover:${s.bgFilledHover};}`,g=u(),b={primary:l.red,primaryLight:h(l.red,.9),headerSelectedBg:"rgba(0,0,0,0.04)"},m=r.createContext(!1),y=()=>r.useContext(m),{Header:f,Content:v}=t.Layout,w=a.siderWidth,S=a.siderCollapsedWidth,k=a.topBarHeight,I=o(t.Layout)`
2
2
  min-height: 100vh;
3
3
  background: var(--ant-color-bg-layout);
4
4
 
@@ -12,7 +12,7 @@
12
12
  height: 100vh;
13
13
  overflow: hidden;
14
14
  background: var(--ant-color-bg-layout);
15
- border-right: 2px solid var(--ant-color-border);
15
+ border-right: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
16
16
 
17
17
  .ant-layout-sider-children {
18
18
  display: flex;
@@ -20,11 +20,11 @@
20
20
  height: 100%;
21
21
  }
22
22
  }
23
- `,I=n.div`
23
+ `,j=o.div`
24
24
  flex: 1 1 auto;
25
25
  overflow-y: auto;
26
26
  overflow-x: hidden;
27
- padding-top: 8px;
27
+ padding-top: 4px;
28
28
 
29
29
  .ant-menu-inline,
30
30
  .ant-menu-vertical {
@@ -34,8 +34,8 @@
34
34
 
35
35
  /* Section titles: "RECEIVABLES AND COLLECTIONS" */
36
36
  .ant-menu-item-group-title {
37
- padding: 22px 24px 8px;
38
- font-size: 12px;
37
+ padding: 16px ${a.pageGutter}px 4px;
38
+ font-size: 11px;
39
39
  font-weight: 600;
40
40
  letter-spacing: 0.14em;
41
41
  text-transform: uppercase;
@@ -44,9 +44,9 @@
44
44
 
45
45
  .ant-menu-item-group + .ant-menu-item-group > .ant-menu-item-group-title,
46
46
  .ant-menu-item-group + .ant-menu-item-group::before {
47
- border-top: 2px solid var(--ant-color-border-secondary);
48
- margin-top: 12px;
49
- padding-top: 26px;
47
+ border-top: var(--hisd3-rule-width, 1px) solid var(--ant-color-border-secondary);
48
+ margin-top: 10px;
49
+ padding-top: 20px;
50
50
  }
51
51
  .ant-menu-item-group + .ant-menu-item-group::before {
52
52
  content: none;
@@ -54,7 +54,7 @@
54
54
 
55
55
  .ant-menu-item,
56
56
  .ant-menu-submenu-title {
57
- font-size: 17px;
57
+ font-size: 14px;
58
58
  font-weight: 500;
59
59
  position: relative;
60
60
  width: 100%;
@@ -62,7 +62,7 @@
62
62
 
63
63
  .ant-menu-item .ant-menu-item-icon,
64
64
  .ant-menu-submenu-title .ant-menu-item-icon {
65
- font-size: 18px;
65
+ font-size: 16px;
66
66
  }
67
67
 
68
68
  /* open parent ("Billing") in primary */
@@ -74,7 +74,7 @@
74
74
 
75
75
  /* child items are indented by antd; keep them slightly smaller */
76
76
  .ant-menu-sub.ant-menu-inline > .ant-menu-item {
77
- font-size: 16px;
77
+ font-size: 13.5px;
78
78
  }
79
79
 
80
80
  /* active item: tint + 4px accent bar */
@@ -87,7 +87,7 @@
87
87
  left: 0;
88
88
  top: 0;
89
89
  bottom: 0;
90
- width: 5px;
90
+ width: 4px;
91
91
  background: var(--ant-color-primary);
92
92
  }
93
93
  }
@@ -95,23 +95,23 @@
95
95
  &.hisd3-collapsed .ant-menu-item-group-title {
96
96
  display: none;
97
97
  }
98
- `,T=n.a`
98
+ `,T=o.a`
99
99
  display: flex;
100
100
  align-items: center;
101
- gap: 16px;
102
- height: ${w}px;
103
- padding: 0 ${({$collapsed:e})=>e?14:24}px;
101
+ gap: 10px;
102
+ height: ${k}px;
103
+ padding: 0 ${({$collapsed:e})=>e?12:a.pageGutter}px;
104
104
  justify-content: ${({$collapsed:e})=>e?"center":"flex-start"};
105
105
  color: inherit;
106
106
  text-decoration: none;
107
107
  overflow: hidden;
108
108
  white-space: nowrap;
109
109
  flex: 0 0 auto;
110
- border-bottom: 2px solid var(--ant-color-border);
110
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
111
111
 
112
112
  .hisd3-brand-mark {
113
- width: 40px;
114
- height: 40px;
113
+ width: 28px;
114
+ height: 28px;
115
115
  flex: 0 0 auto;
116
116
  background: var(--ant-color-primary);
117
117
  display: flex;
@@ -120,8 +120,8 @@
120
120
  }
121
121
 
122
122
  img {
123
- height: 40px;
124
- width: 40px;
123
+ height: 28px;
124
+ width: 28px;
125
125
  object-fit: contain;
126
126
  flex: 0 0 auto;
127
127
  }
@@ -129,7 +129,7 @@
129
129
  h1 {
130
130
  margin: 0;
131
131
  font-family: var(--font-heading);
132
- font-size: 22px;
132
+ font-size: 16px;
133
133
  font-weight: var(--font-weight-heading, 800);
134
134
  letter-spacing: 0.04em;
135
135
  text-transform: uppercase;
@@ -137,47 +137,47 @@
137
137
  overflow: hidden;
138
138
  text-overflow: ellipsis;
139
139
  }
140
- `,D=n(b)`
140
+ `,D=o(f)`
141
141
  display: flex;
142
142
  align-items: center;
143
143
  gap: 24px;
144
- height: ${w}px;
145
- line-height: ${w}px;
146
- padding: 0 ${m.pageGutter}px;
144
+ height: ${k}px;
145
+ line-height: ${k}px;
146
+ padding: 0 ${a.pageGutter}px;
147
147
  position: sticky;
148
148
  top: 0;
149
149
  z-index: 100;
150
150
  background: var(--ant-color-bg-layout);
151
- border-bottom: 2px solid var(--ant-color-border);
151
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
152
152
 
153
153
  .ant-menu-horizontal {
154
154
  flex: 1 1 auto;
155
155
  min-width: 0;
156
156
  border-bottom: none;
157
157
  background: transparent;
158
- line-height: ${w-2}px;
159
- font-size: 16px;
158
+ line-height: ${k-2}px;
159
+ font-size: 14px;
160
160
  font-weight: 500;
161
161
  }
162
- `,E=n(b)`
162
+ `,E=o(f)`
163
163
  display: flex;
164
164
  align-items: center;
165
- gap: 16px;
166
- height: ${w}px;
167
- line-height: ${w}px;
168
- padding: 0 ${m.pageGutter}px;
165
+ gap: 12px;
166
+ height: ${k}px;
167
+ line-height: ${k}px;
168
+ padding: 0 ${a.pageGutter}px;
169
169
  position: sticky;
170
170
  top: 0;
171
171
  z-index: 99;
172
172
  background: var(--ant-color-bg-layout);
173
- border-bottom: 2px solid var(--ant-color-border);
174
- `,k=n.button`
175
- border: 2px solid var(--ant-color-border);
173
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
174
+ `,C=o.button`
175
+ border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
176
176
  background: transparent;
177
177
  cursor: pointer;
178
- font-size: 16px;
179
- width: 40px;
180
- height: 40px;
178
+ font-size: 14px;
179
+ width: 32px;
180
+ height: 32px;
181
181
  color: inherit;
182
182
  display: inline-flex;
183
183
  align-items: center;
@@ -187,53 +187,53 @@
187
187
  &:hover {
188
188
  background: rgba(0, 0, 0, 0.05);
189
189
  }
190
- `,C=n(y)`
191
- padding: 32px ${m.pageGutter}px 48px;
192
- min-height: calc(100vh - ${w}px);
193
- `,L=n.div`
190
+ `,z=o(v)`
191
+ padding: 24px ${a.pageGutter}px 40px;
192
+ min-height: calc(100vh - ${k}px);
193
+ `,L=o.div`
194
194
  flex: 0 0 auto;
195
195
  display: flex;
196
196
  flex-direction: column;
197
197
  justify-content: center;
198
198
  line-height: 1.25;
199
199
  transition: all 0.2s ease;
200
- padding: ${({$inHeader:e,$collapsed:t})=>e?"0 4px":t?"16px 0":"20px 24px"};
200
+ padding: ${({$inHeader:e,$collapsed:t})=>e?"0 4px":t?"12px 0":`12px ${a.pageGutter}px`};
201
201
  min-width: ${({$inHeader:e})=>e?"220px":"0"};
202
- border-top: ${({$inHeader:e})=>e?"none":"2px solid var(--ant-color-border)"};
202
+ border-top: ${({$inHeader:e})=>e?"none":"var(--hisd3-rule-width, 1px) solid var(--ant-color-border)"};
203
203
 
204
204
  & .ant-dropdown-link {
205
205
  color: inherit;
206
206
  }
207
- `,j=n.a`
207
+ `,$=o.a`
208
208
  display: flex;
209
209
  align-items: center;
210
210
  justify-content: center;
211
211
  cursor: pointer;
212
212
  color: inherit;
213
- gap: 16px;
214
- `,A=n.span`
215
- width: 48px;
216
- height: 48px;
213
+ gap: 10px;
214
+ `,A=o.span`
215
+ width: 34px;
216
+ height: 34px;
217
217
  flex: 0 0 auto;
218
218
  display: flex;
219
219
  align-items: center;
220
220
  justify-content: center;
221
- font-size: 16px;
221
+ font-size: 13px;
222
222
  font-weight: 700;
223
223
  color: var(--ant-color-text);
224
224
  background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"#D9D6D2"};
225
- `,O=n.span`
225
+ `,N=o.span`
226
226
  flex: 1 1 auto;
227
227
  min-width: 0;
228
- `,R=n.span`
228
+ `,O=o.span`
229
229
  display: flex;
230
230
  align-items: flex-start;
231
231
  justify-content: space-between;
232
232
  gap: 8px;
233
- `,z=n.h3`
233
+ `,R=o.h3`
234
234
  margin: 0;
235
235
  font-family: var(--font-body);
236
- font-size: 17px;
236
+ font-size: 14px;
237
237
  font-weight: 700;
238
238
  letter-spacing: 0;
239
239
  color: var(--ant-color-text);
@@ -242,7 +242,7 @@
242
242
  display: -webkit-box;
243
243
  -webkit-line-clamp: 2;
244
244
  -webkit-box-orient: vertical;
245
- `,B=n.span`
245
+ `,B=o.span`
246
246
  width: 20px;
247
247
  height: 22px;
248
248
  display: flex;
@@ -254,10 +254,10 @@
254
254
  & svg {
255
255
  display: block;
256
256
  }
257
- `,H=n.span`
257
+ `,F=o.span`
258
258
  display: block;
259
- margin-top: 4px;
260
- font-size: 12px;
259
+ margin-top: 3px;
260
+ font-size: 11px;
261
261
  font-weight: 500;
262
262
  letter-spacing: 0.12em;
263
263
  text-transform: uppercase;
@@ -265,20 +265,20 @@
265
265
  overflow: hidden;
266
266
  text-overflow: ellipsis;
267
267
  white-space: nowrap;
268
- `,N=(e,t)=>e.key??e.path??`menu-${t}`,F=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const n=N(e,r);return Array.isArray(e.children)&&e.children.length>0?{key:n,icon:e.icon,label:e.name,disabled:e.disabled,type:e.group?"group":void 0,children:F(e.children,t)}:{key:n,icon:e.icon,disabled:e.disabled,label:t(e,e.name)}})),U=(e,t)=>r.createElement("a",{href:e.path||"/"},t),M=({account:r,avatarSrc:n,settingsUrl:i,onLogout:a,collapsed:l=!1,placement:s="topRight",extraItems:d=[]})=>{const{modal:p}=t.App.useApp(),c=[...d??[],{key:"settings",icon:e.jsx(o.SettingOutlined,{}),label:"Settings",onClick:()=>{window.location.href=i??"/settings"}},{key:"logout",icon:e.jsx(o.LogoutOutlined,{}),label:"Logout",onClick:()=>{p.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:e.jsx(o.ExclamationCircleOutlined,{}),onOk:a})}}],h=(r.fullName||"").replace(/\(.*?\)/g," ").split(/[\s,]+/).map((e=>e.replace(/[^\p{L}\p{N}]/gu,""))).filter(Boolean).slice(0,2).map((e=>e[0].toUpperCase())).join("")||"?";return e.jsx(L,{className:"cr-user-info-light",$collapsed:l,$inHeader:"bottomRight"===s,children:e.jsx(t.Dropdown,{trigger:["click"],placement:s,menu:{items:c},children:e.jsxs(j,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[e.jsx(A,{$src:n,"aria-hidden":!0,children:!n&&h}),!l&&e.jsxs(O,{children:[e.jsxs(R,{children:[e.jsx(z,{title:r.fullName,children:r.fullName}),e.jsx(B,{children:e.jsx(o.DownOutlined,{})})]}),r.positionType&&e.jsx(H,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:$}=t.Layout,_=m.pageGutter,P=n.div`
268
+ `,H=(e,t)=>e.key??e.path??`menu-${t}`,M=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const o=H(e,r);return Array.isArray(e.children)&&e.children.length>0?{key:o,icon:e.icon,label:e.name,disabled:e.disabled,type:e.group?"group":void 0,children:M(e.children,t)}:{key:o,icon:e.icon,disabled:e.disabled,label:t(e,e.name)}})),U=(e,t)=>r.createElement("a",{href:e.path||"/"},t),_=({account:r,avatarSrc:o,settingsUrl:n,onLogout:a,collapsed:l=!1,placement:s="topRight",extraItems:d=[]})=>{const{modal:p}=t.App.useApp(),c=[...d??[],{key:"settings",icon:e.jsx(i.SettingOutlined,{}),label:"Settings",onClick:()=>{window.location.href=n??"/settings"}},{key:"logout",icon:e.jsx(i.LogoutOutlined,{}),label:"Logout",onClick:()=>{p.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:e.jsx(i.ExclamationCircleOutlined,{}),onOk:a})}}],h=(r.fullName||"").replace(/\(.*?\)/g," ").split(/[\s,]+/).map((e=>e.replace(/[^\p{L}\p{N}]/gu,""))).filter(Boolean).slice(0,2).map((e=>e[0].toUpperCase())).join("")||"?";return e.jsx(L,{className:"cr-user-info-light",$collapsed:l,$inHeader:"bottomRight"===s,children:e.jsx(t.Dropdown,{trigger:["click"],placement:s,menu:{items:c},children:e.jsxs($,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[e.jsx(A,{$src:o,"aria-hidden":!0,children:!o&&h}),!l&&e.jsxs(N,{children:[e.jsxs(O,{children:[e.jsx(R,{title:r.fullName,children:r.fullName}),e.jsx(B,{children:e.jsx(i.DownOutlined,{})})]}),r.positionType&&e.jsx(F,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:P}=t.Layout,G=a.pageGutter,W=o.div`
269
269
  display: flex;
270
270
  align-items: center;
271
- gap: 24px;
272
- height: ${m.topBarHeight}px; /* same as the sidebar brand block */
273
- padding: 0 ${_}px;
274
- border-bottom: 2px solid var(--ant-color-border);
271
+ gap: 16px;
272
+ height: ${a.topBarHeight}px; /* same as the sidebar brand block */
273
+ padding: 0 ${G}px;
274
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
275
275
  background: var(--ant-color-bg-layout);
276
276
  position: sticky;
277
277
  top: 0;
278
278
  z-index: 20;
279
279
 
280
280
  .ant-breadcrumb {
281
- font-size: 16px;
281
+ font-size: 14px;
282
282
  flex: 1 1 auto;
283
283
  min-width: 0;
284
284
  }
@@ -286,24 +286,24 @@
286
286
  .ant-breadcrumb ol {
287
287
  flex-wrap: nowrap;
288
288
  }
289
- `,W=n.div`
289
+ `,K=o.div`
290
290
  display: flex;
291
291
  align-items: center;
292
- gap: 16px;
292
+ gap: 10px;
293
293
  flex: 0 0 auto;
294
- `,G=n.div`
294
+ `,q=o.div`
295
295
  display: flex;
296
296
  align-items: baseline;
297
- gap: 24px;
297
+ gap: 16px;
298
298
  flex-wrap: wrap;
299
- padding: 36px ${_}px 28px;
300
- border-bottom: 2px solid var(--ant-color-border-secondary);
299
+ padding: 20px ${G}px 18px;
300
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border-secondary);
301
301
 
302
302
  h1 {
303
303
  margin: 0;
304
304
  font-family: var(--font-heading);
305
- font-size: 56px;
306
- line-height: 1.05;
305
+ font-size: 32px;
306
+ line-height: 1.1;
307
307
  font-weight: var(--font-weight-heading, 800);
308
308
  letter-spacing: -0.02em;
309
309
  color: var(--ant-color-text);
@@ -311,12 +311,303 @@
311
311
 
312
312
  p {
313
313
  margin: 0;
314
- font-size: 20px;
314
+ font-size: 15px;
315
315
  color: var(--ant-color-text-secondary);
316
316
  }
317
- `,K=n.div`
318
- padding: 32px ${_}px 48px;
319
- `,q=n.div`
317
+ `,X=o.div`
318
+ padding: 24px ${G}px 40px;
319
+ `,V=o.button`
320
+ position: relative;
321
+ width: ${({$size:e=40})=>e}px;
322
+ height: ${({$size:e=40})=>e}px;
323
+ flex: 0 0 auto;
324
+ display: inline-flex;
325
+ align-items: center;
326
+ justify-content: center;
327
+ padding: 0;
328
+ font-size: ${({$size:e=40})=>Math.round(.45*e)}px;
329
+ line-height: 1;
330
+ color: var(--ant-color-text);
331
+ background: var(--hisd3-control-bg, #e6e4e1);
332
+ border: 0;
333
+ border-radius: 50%;
334
+ cursor: pointer;
335
+ transition: background 0.15s ease, color 0.15s ease;
336
+
337
+ &:hover {
338
+ background: var(--hisd3-control-bg-hover, #dbd8d4);
339
+ }
340
+
341
+ /* open state: tinted with the app's primary, like Facebook's blue */
342
+ &[aria-expanded="true"] {
343
+ background: var(--ant-color-primary-bg);
344
+ color: var(--ant-color-primary);
345
+ }
346
+
347
+ &:focus-visible {
348
+ outline: 2px solid var(--ant-color-primary);
349
+ outline-offset: 2px;
350
+ }
351
+
352
+ .ant-badge {
353
+ color: inherit;
354
+ line-height: 0;
355
+ }
356
+ `,Y=o.div`
357
+ width: 360px;
358
+ max-width: calc(100vw - 32px);
359
+ overflow: hidden;
360
+ background: var(--ant-color-bg-elevated);
361
+ border: 1px solid var(--ant-color-border-secondary);
362
+ border-radius: var(--hisd3-popup-radius, 10px);
363
+ box-shadow: 0 2px 6px rgba(16, 15, 14, 0.06),
364
+ 0 12px 32px rgba(16, 15, 14, 0.14);
365
+ `,J=o.div`
366
+ display: flex;
367
+ align-items: center;
368
+ justify-content: space-between;
369
+ gap: 12px;
370
+ padding: 12px 16px;
371
+ border-bottom: 1px solid var(--ant-color-border-secondary);
372
+
373
+ h4 {
374
+ margin: 0;
375
+ font-size: 15px;
376
+ font-weight: 700;
377
+ letter-spacing: 0;
378
+ }
379
+
380
+ button {
381
+ border: 0;
382
+ background: none;
383
+ padding: 0;
384
+ font: inherit;
385
+ font-size: 13px;
386
+ color: var(--ant-color-primary);
387
+ cursor: pointer;
388
+
389
+ &:hover {
390
+ text-decoration: underline;
391
+ }
392
+ }
393
+ `,Q=o.div`
394
+ max-height: 380px;
395
+ overflow-y: auto;
396
+ `,Z=o.button`
397
+ display: flex;
398
+ align-items: flex-start;
399
+ gap: 12px;
400
+ width: 100%;
401
+ padding: 12px 16px;
402
+ text-align: left;
403
+ font: inherit;
404
+ border: 0;
405
+ cursor: pointer;
406
+ background: ${({$unread:e})=>e?"var(--ant-color-primary-bg)":"transparent"};
407
+
408
+ &:hover {
409
+ background: ${({$unread:e})=>e?"var(--ant-color-primary-bg-hover)":"rgba(0,0,0,0.04)"};
410
+ }
411
+ `,ee=o.span`
412
+ width: 36px;
413
+ height: 36px;
414
+ flex: 0 0 auto;
415
+ display: flex;
416
+ align-items: center;
417
+ justify-content: center;
418
+ font-size: 16px;
419
+ color: var(--ant-color-text);
420
+ border-radius: 50%;
421
+ background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"rgba(0,0,0,0.06)"};
422
+ `,te=o.span`
423
+ flex: 1 1 auto;
424
+ min-width: 0;
425
+
426
+ strong {
427
+ display: block;
428
+ font-size: 14px;
429
+ font-weight: 600;
430
+ color: var(--ant-color-text);
431
+ }
432
+
433
+ span {
434
+ display: block;
435
+ font-size: 13px;
436
+ color: var(--ant-color-text-secondary);
437
+ overflow: hidden;
438
+ text-overflow: ellipsis;
439
+ }
440
+
441
+ time {
442
+ display: block;
443
+ margin-top: 2px;
444
+ font-size: 12px;
445
+ color: var(--ant-color-text-tertiary);
446
+ }
447
+ `,re=o.span`
448
+ width: 8px;
449
+ height: 8px;
450
+ margin-top: 6px;
451
+ flex: 0 0 auto;
452
+ border-radius: 50%;
453
+ background: var(--ant-color-primary);
454
+ `,oe=o.button`
455
+ display: block;
456
+ width: 100%;
457
+ padding: 12px 16px;
458
+ font: inherit;
459
+ font-size: 13px;
460
+ font-weight: 600;
461
+ color: var(--ant-color-primary);
462
+ text-align: center;
463
+ background: transparent;
464
+ border: 0;
465
+ border-top: 1px solid var(--ant-color-border-secondary);
466
+ cursor: pointer;
467
+
468
+ &:hover {
469
+ background: rgba(0, 0, 0, 0.04);
470
+ }
471
+ `,ie=o.div`
472
+ padding: 28px 16px;
473
+ `,ne=o.button`
474
+ position: relative;
475
+ width: ${({$size:e})=>e}px;
476
+ height: ${({$size:e})=>e}px;
477
+ flex: 0 0 auto;
478
+ padding: 0;
479
+ display: inline-flex;
480
+ align-items: center;
481
+ justify-content: center;
482
+ font-size: ${({$size:e})=>Math.round(.36*e)}px;
483
+ font-weight: 700;
484
+ color: var(--ant-color-text);
485
+ background: var(--hisd3-control-bg, #e6e4e1);
486
+ border: 0;
487
+ border-radius: ${({$shape:e})=>"circle"===e?"50%":"0"};
488
+ cursor: pointer;
489
+ transition: filter 0.15s ease;
490
+
491
+ &:hover {
492
+ filter: brightness(0.94);
493
+ }
494
+
495
+ &:focus-visible {
496
+ outline: 2px solid var(--ant-color-primary);
497
+ outline-offset: 2px;
498
+ }
499
+
500
+ img {
501
+ width: 100%;
502
+ height: 100%;
503
+ object-fit: cover;
504
+ display: block;
505
+ border-radius: inherit;
506
+ }
507
+ `,ae=o.span`
508
+ position: absolute;
509
+ right: ${({$size:e})=>-Math.round(.05*e)}px;
510
+ bottom: ${({$size:e})=>-Math.round(.05*e)}px;
511
+ width: ${({$size:e})=>Math.round(.45*e)}px;
512
+ height: ${({$size:e})=>Math.round(.45*e)}px;
513
+ display: flex;
514
+ align-items: center;
515
+ justify-content: center;
516
+ font-size: ${({$size:e})=>Math.round(.2*e)}px;
517
+ color: var(--ant-color-text);
518
+ background: var(--hisd3-control-bg, #e6e4e1);
519
+ border: 2px solid var(--ant-color-bg-layout, #f3f2f0);
520
+ border-radius: 50%;
521
+ pointer-events: none;
522
+
523
+ ${ne}[aria-expanded="true"] & {
524
+ background: var(--ant-color-primary);
525
+ color: #fff;
526
+ }
527
+
528
+ & svg {
529
+ display: block;
530
+ }
531
+ `,le=o.div`
532
+ display: flex;
533
+ align-items: center;
534
+ gap: 12px;
535
+ padding: 12px 16px;
536
+ min-width: 230px;
537
+ border-bottom: 1px solid var(--ant-color-border-secondary);
538
+
539
+ .hisd3-identity-text {
540
+ flex: 1 1 auto;
541
+ min-width: 0;
542
+ }
543
+
544
+ .hisd3-identity-name {
545
+ display: block;
546
+ font-size: 14px;
547
+ font-weight: 700;
548
+ color: var(--ant-color-text);
549
+ white-space: nowrap;
550
+ overflow: hidden;
551
+ text-overflow: ellipsis;
552
+ }
553
+
554
+ .hisd3-identity-role {
555
+ display: block;
556
+ margin-top: 2px;
557
+ font-size: 11px;
558
+ font-weight: 500;
559
+ letter-spacing: 0.1em;
560
+ text-transform: uppercase;
561
+ color: var(--ant-color-text-tertiary);
562
+ white-space: nowrap;
563
+ overflow: hidden;
564
+ text-overflow: ellipsis;
565
+ }
566
+ `,se=o.span`
567
+ width: 40px;
568
+ height: 40px;
569
+ flex: 0 0 auto;
570
+ display: flex;
571
+ align-items: center;
572
+ justify-content: center;
573
+ font-size: 14px;
574
+ font-weight: 700;
575
+ border-radius: 50%;
576
+ background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"rgba(0,0,0,0.08)"};
577
+ `,de=o.div`
578
+ overflow: hidden;
579
+ background: var(--ant-color-bg-elevated);
580
+ border: 1px solid var(--ant-color-border-secondary);
581
+ border-radius: var(--hisd3-popup-radius, 10px);
582
+ box-shadow: 0 2px 6px rgba(16, 15, 14, 0.06),
583
+ 0 12px 32px rgba(16, 15, 14, 0.14);
584
+
585
+ .ant-menu {
586
+ border-inline-end: none !important;
587
+ background: transparent;
588
+ }
589
+
590
+ .ant-menu {
591
+ padding: 6px;
592
+ }
593
+
594
+ .ant-menu-item {
595
+ margin: 0;
596
+ width: 100%;
597
+ border-radius: 8px;
598
+ font-size: 14px;
599
+ }
600
+ `,pe=e=>(e||"").replace(/\(.*?\)/g," ").split(/[\s,]+/).map((e=>e.replace(/[^\p{L}\p{N}]/gu,""))).filter(Boolean).slice(0,2).map((e=>e[0].toUpperCase())).join("")||"?",ce=o.div`
601
+ display: flex;
602
+ align-items: center;
603
+ gap: 8px;
604
+ flex: 0 0 auto;
605
+ `,he=o.span`
606
+ width: 2px;
607
+ height: 24px;
608
+ background: var(--ant-color-border-secondary);
609
+ flex: 0 0 auto;
610
+ `,ue=o.div`
320
611
  .ant-table-wrapper .ant-table {
321
612
  background: transparent;
322
613
  }
@@ -328,17 +619,17 @@
328
619
  text-transform: uppercase;
329
620
  color: var(--ant-color-text-tertiary);
330
621
  padding-block: 14px;
331
- border-bottom: 2px solid var(--ant-color-border);
622
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
332
623
  background: transparent;
333
624
  }
334
625
 
335
626
  .ant-table-wrapper .ant-table-tbody > tr > td {
336
- border-bottom: 2px solid var(--ant-color-border-secondary);
627
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border-secondary);
337
628
  font-size: 16px;
338
629
  }
339
630
 
340
631
  .ant-table-wrapper .ant-table-tbody > tr:last-child > td {
341
- border-bottom: 2px solid var(--ant-color-border);
632
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
342
633
  }
343
634
 
344
635
  .ant-table-wrapper .ant-table-thead > tr > th:first-child,
@@ -366,14 +657,14 @@
366
657
  .hisd3-cell-muted {
367
658
  color: var(--ant-color-text-tertiary);
368
659
  }
369
- `,X=n.div`
660
+ `,xe=o.div`
370
661
  padding: 22px 0 14px;
371
662
  font-size: 13px;
372
663
  font-weight: 600;
373
664
  letter-spacing: 0.1em;
374
665
  text-transform: uppercase;
375
666
  color: var(--ant-color-text-tertiary);
376
- `,V=n.div`
667
+ `,ge=o.div`
377
668
  display: flex;
378
669
  align-items: center;
379
670
  gap: 24px;
@@ -387,7 +678,7 @@
387
678
 
388
679
  .ant-pagination {
389
680
  display: inline-flex;
390
- border: 2px solid var(--ant-color-border);
681
+ border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
391
682
 
392
683
  .ant-pagination-item,
393
684
  .ant-pagination-prev,
@@ -399,7 +690,7 @@
399
690
  height: 56px;
400
691
  line-height: 56px;
401
692
  border: 0;
402
- border-right: 2px solid var(--ant-color-border);
693
+ border-right: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
403
694
  border-radius: 0;
404
695
  font-weight: 700;
405
696
  font-size: 16px;
@@ -433,15 +724,15 @@
433
724
  font-weight: 700;
434
725
  }
435
726
  }
436
- `,Y=n.div`
727
+ `,be=o.div`
437
728
  display: inline-flex;
438
- border: 2px solid var(--ant-color-border);
729
+ border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
439
730
 
440
731
  button {
441
732
  height: 56px;
442
733
  padding: 0 22px;
443
734
  border: 0;
444
- border-right: 2px solid var(--ant-color-border);
735
+ border-right: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
445
736
  background: transparent;
446
737
  font: inherit;
447
738
  font-size: 16px;
@@ -457,12 +748,12 @@
457
748
  color: #fff;
458
749
  }
459
750
  }
460
- `,J=e=>`Total ${e.toLocaleString()} items`;const Q=n(t.Tabs)`
751
+ `,me=e=>`Total ${e.toLocaleString()} items`;const ye=o(t.Tabs)`
461
752
  &.ant-tabs .ant-tabs-nav {
462
753
  margin: 0;
463
754
 
464
755
  &::before {
465
- border-bottom: 2px solid var(--ant-color-border-secondary);
756
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border-secondary);
466
757
  }
467
758
  }
468
759
 
@@ -490,7 +781,7 @@
490
781
  .ant-tabs-tab-active .hisd3-tab-count {
491
782
  color: var(--ant-color-primary);
492
783
  }
493
- `,Z={default:"var(--ant-color-text)",primary:"var(--ant-color-primary)",success:"var(--ant-color-success)",warning:"var(--ant-color-warning)",danger:"var(--ant-color-error)"},ee={default:"rgba(0,0,0,0.05)",primary:"var(--ant-color-primary-bg)",success:"var(--ant-color-success-bg)",warning:"var(--ant-color-warning-bg)",danger:"var(--ant-color-error-bg)"},te=n.span`
784
+ `,fe={default:"var(--ant-color-text)",primary:"var(--ant-color-primary)",success:"var(--ant-color-success)",warning:"var(--ant-color-warning)",danger:"var(--ant-color-error)"},ve={default:"rgba(0,0,0,0.05)",primary:"var(--ant-color-primary-bg)",success:"var(--ant-color-success-bg)",warning:"var(--ant-color-warning-bg)",danger:"var(--ant-color-error-bg)"},we=o.span`
494
785
  display: inline-flex;
495
786
  align-items: center;
496
787
  gap: 6px;
@@ -502,45 +793,46 @@
502
793
  text-transform: uppercase;
503
794
  white-space: nowrap;
504
795
  line-height: 1;
505
- border: 2px solid transparent;
796
+ border: var(--hisd3-rule-width, 1px) solid transparent;
506
797
  border-radius: 0;
507
798
 
508
- ${({$variant:e,$tone:t})=>{const r=Z[t],n=ee[t];switch(e){case"soft":return`color: ${r}; background: ${n};`;case"outline":return`color: ${r}; border-color: ${r}; background: transparent;`;case"solid":return`color: #fff; background: ${"default"===t?"var(--ant-color-text)":r};`;default:return"color: var(--ant-color-text); background: rgba(0,0,0,0.05);"}}}
509
- `,re=n(t.Button)`
799
+ ${({$variant:e,$tone:t})=>{const r=fe[t],o=ve[t];switch(e){case"soft":return`color: ${r}; background: ${o};`;case"outline":return`color: ${r}; border-color: ${r}; background: transparent;`;case"solid":return`color: #fff; background: ${"default"===t?"var(--ant-color-text)":r};`;default:return"color: var(--ant-color-text); background: rgba(0,0,0,0.05);"}}}
800
+ `,Se=o(t.Button)`
510
801
  &.ant-btn {
511
- text-transform: none;
512
- letter-spacing: 0;
513
802
  display: inline-flex;
514
803
  align-items: center;
515
804
  gap: 8px;
516
- height: var(--hisd3-btn-height, 52px);
517
- padding-inline: 20px;
518
- font-size: 16px;
805
+ height: 40px;
806
+ padding-inline: 16px;
807
+ font-size: 14px;
519
808
  font-weight: 600;
520
809
  box-shadow: none;
521
810
  }
522
811
 
523
812
  &.ant-btn-sm {
524
- --hisd3-btn-height: 36px;
525
- font-size: 14px;
526
- padding-inline: 14px;
813
+ height: 32px;
814
+ padding-inline: 12px;
815
+ font-size: 13px;
816
+ gap: 6px;
527
817
  }
528
818
 
529
819
  &.ant-btn-lg {
530
- --hisd3-btn-height: 56px;
820
+ height: 52px;
821
+ padding-inline: 20px;
822
+ font-size: 16px;
531
823
  }
532
824
 
533
825
  &.ant-btn-default {
534
- border-width: 2px;
826
+ border-width: var(--hisd3-rule-width, 1px);
535
827
  }
536
828
 
537
829
  .anticon {
538
830
  font-size: 1.05em;
539
831
  }
540
- `,ne={primary:{type:"primary"},secondary:{type:"default"},ghost:{type:"text"},danger:{type:"primary",danger:!0}},oe=n(t.Input)`
832
+ `,ke={primary:{type:"primary"},secondary:{type:"default"},ghost:{type:"text"},danger:{type:"primary",danger:!0}},Ie=o(t.Input)`
541
833
  &.ant-input,
542
834
  &.ant-input-affix-wrapper {
543
- border-width: 2px;
835
+ border-width: var(--hisd3-rule-width, 1px);
544
836
  font-size: 16px;
545
837
  }
546
838
 
@@ -549,7 +841,7 @@
549
841
  color: var(--ant-color-text-tertiary);
550
842
  font-size: 18px;
551
843
  }
552
- `,ie=n(oe)`
844
+ `,je=o(Ie)`
553
845
  &.ant-input-affix-wrapper {
554
846
  background: var(--hisd3-bg-filled, #e6e4e1);
555
847
  border-color: var(--ant-color-border-secondary);
@@ -583,5 +875,5 @@
583
875
  font-size: 18px;
584
876
  }
585
877
  }
586
- `;var ae,le,se,de,pe,ce,he,ge,ue,xe,me,be,ye;exports.ThemeStyle=void 0,(ae=exports.ThemeStyle||(exports.ThemeStyle={})).MODERN="modern",ae.STANDARD="standard",exports.ThemeStyleRadius=void 0,(le=exports.ThemeStyleRadius||(exports.ThemeStyleRadius={})).MODERN="30px",le.STANDARD="16px",exports.ThemeMode=void 0,(se=exports.ThemeMode||(exports.ThemeMode={})).LIGHT="light",se.SEMI_DARK="semi-dark",se.DARK="dark",exports.LayoutType=void 0,(de=exports.LayoutType||(exports.LayoutType={})).FULL_WIDTH="full-width",de.BOXED="boxed",de.FRAMED="framed",exports.MenuStyle=void 0,(pe=exports.MenuStyle||(exports.MenuStyle={})).DEFAULT="default",pe.STANDARD="standard",pe.ROUNDED="rounded",pe.ROUNDED_REVERSE="rounded-reverse",pe.CURVED_MENU="curved-menu",exports.NavStyle=void 0,(ce=exports.NavStyle||(exports.NavStyle={})).DEFAULT="default",ce.MINI="mini",ce.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",ce.STANDARD="standard",ce.HEADER_USER="user-header",ce.HEADER_USER_MINI="user-mini-header",ce.DRAWER="drawer",ce.BIT_BUCKET="bit-bucket",ce.H_DEFAULT="h-default",ce.HOR_HEADER_FIXED="hor-header-fixed",ce.HOR_DARK_LAYOUT="hor-dark-layout",exports.FooterType=void 0,(he=exports.FooterType||(exports.FooterType={})).FIXED="fixed",he.FLUID="fluid",exports.LayoutDirection=void 0,(ge=exports.LayoutDirection||(exports.LayoutDirection={})).RTL="rtl",ge.LTR="ltr",exports.HeaderType=void 0,(ue=exports.HeaderType||(exports.HeaderType={})).DARK="dark",ue.LIGHT="light",exports.RouteTransition=void 0,(xe=exports.RouteTransition||(exports.RouteTransition={})).NONE="none",xe.FADE="fade",xe.SLIDE_LEFT="slideLeft",xe.SLIDE_RIGHT="slideRight",xe.SLIDE_UP="slideUp",xe.SLIDE_DOWN="slideDown",exports.Fonts=void 0,(me=exports.Fonts||(exports.Fonts={})).LIGHT="300",me.REGULAR="400",me.MEDIUM="500",me.BOLD="600",exports.AuthType=void 0,(be=exports.AuthType||(exports.AuthType={})).FIREBASE="firebase",be.AWS_COGNITO="aws_cognito",be.AUTH0="auth0",be.JWT_AUTH="jwt_auth",exports.AppAnimates=void 0,(ye=exports.AppAnimates||(exports.AppAnimates={})).SLIDEUPIN="transition.slideUpIn",ye.SLIDEUPOUT="transition.slideUpOut",ye.SLIDEDOWNIN="transition.slideDownIn",ye.SLIDEDOWNOUT="transition.slideDownOut",ye.SLIDELEFTIN="transition.slideLeftIn",ye.SLIDELEFTOUT="transition.slideLeftOut",ye.SLIDERIGHTIN="transition.slideRightIn",ye.SLIDERIGHTOUT="transition.slideRightOut",ye.FADEIN="transition.fadeIn",ye.FADEOUT="transition.fadeOut";var fe,ve;exports.MessageType=void 0,(fe=exports.MessageType||(exports.MessageType={}))[fe.MEDIA=1]="MEDIA",fe[fe.TEXT=2]="TEXT",exports.RoutePermittedRole=void 0,(ve=exports.RoutePermittedRole||(exports.RoutePermittedRole={})).Admin="admin",ve.User="user",exports.AppAnimateGroups={SLIDEUPIN:{hidden:{y:0},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.2,staggerChildren:.05}}},SLIDEUPOUT:{hidden:{y:0},visible:{opacity:0,y:"100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNIN:{hidden:{opacity:0,y:"-100vh"},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNOUT:{hidden:{y:0},visible:{opacity:0,y:"-100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTIN:{hidden:{x:"100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTOUT:{hidden:{x:0},visible:{opacity:0,x:"100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTIN:{hidden:{x:"-100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTOUT:{hidden:{x:0},visible:{opacity:0,x:"-100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},FADEIN:{hidden:{opacity:0,scale:1},visible:{opacity:1,scale:1,transition:{ease:"easeIn",when:"beforeChildren",staggerChildren:.15}}},FADEOUT:{hidden:{opacity:1,scale:1},visible:{opacity:0,scale:1,transition:{ease:"easeOut",when:"beforeChildren",staggerChildren:.15}}},NOANIMATION:{hidden:{opacity:1},visible:{opacity:1}}},exports.AppMotionAnimate={SLIDEUPIN:{variants:{hidden:{y:100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEUPOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"-100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDEDOWNIN:{variants:{hidden:{y:-100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEDOWNOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDELEFTIN:{variants:{hidden:{x:100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDELEFTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDERIGHTIN:{variants:{hidden:{x:-100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDERIGHTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},FADEIN:{variants:{hidden:{opacity:0},visible:{opacity:1}},transition:{duration:.1,ease:"easeIn",when:"beforeChildren"}},FADEOUT:{variants:{hidden:{opacity:1},visible:{opacity:0}},transition:{duration:.1,ease:"easeOut",when:"beforeChildren"}}},exports.HISD3Button=({variant:t="secondary",...r})=>e.jsx(re,{...ne[t],...r}),exports.HISD3Input=t=>e.jsx(oe,{...t}),exports.HISD3PageBody=K,exports.HISD3PageHeader=({title:r,subtitle:n,breadcrumb:o,extra:i,leading:a,hideTopBar:l=!1,className:s})=>e.jsxs("header",{className:s,children:[!l&&e.jsxs(P,{children:[a,o&&o.length>0&&e.jsx(t.Breadcrumb,{items:o.map((t=>({title:t.href?e.jsx("a",{href:t.href,children:t.title}):t.title,onClick:t.onClick})))}),!o?.length&&e.jsx("span",{style:{flex:1}}),i&&e.jsx(W,{children:i})]}),e.jsxs(G,{children:[e.jsx("h1",{children:r}),n&&e.jsx("p",{children:n})]})]}),exports.HISD3Provider=({primary:o,radius:i,lineWidth:a,overrides:l,theme:s,styledTheme:d={},children:p})=>{const h=r.useMemo((()=>s??c({primary:o,radius:i,lineWidth:a,overrides:l})),[s,o,i,a,l]);return e.jsx(u.Provider,{value:!0,children:e.jsx(t.ConfigProvider,{theme:h,children:e.jsx(n.ThemeProvider,{theme:d,children:e.jsx(t.App,{component:!1,children:p})})})})},exports.HISD3SearchInput=({compact:t=!1,className:r,...n})=>e.jsx(ie,{allowClear:!0,prefix:e.jsx(o.SearchOutlined,{}),className:[t?"hisd3-search-compact":"",r??""].join(" ").trim(),...n}),exports.HISD3Sidebar=({children:i,account:a,logoUrl:l,appName:s,menuItems:d,onLogout:p,pathname:c,avatarSrc:g,styledTheme:u,settingsUrl:m,antdTheme:b,renderMenuLink:y=U,headerExtra:w,userMenuItems:L,onCollapse:j,collapsed:A=!1,loading:O=!1,hideSidebar:R=!1,layoutTop:z=!1,hideCollapseTrigger:B=!1,siderWidth:H=f,bareContent:_=!1,hideHeaderBar:P=!1,brandHref:W="/"})=>{const G=x(),K=void 0===b?G?null:h:b,[q,X]=r.useState(A);r.useEffect((()=>{X(A)}),[A]);const V=r.useMemo((()=>F(d,y)),[d,y]),Y=r.useMemo((()=>((e,t)=>{let r;const n=(e,o)=>{(e??[]).forEach(((e,i)=>{const a=N(e,i);if(e.path&&t.startsWith(e.path)){const n=t===e.path,i=e.path.length+(n?1:0);(!r||i>r.length)&&(r={key:a,parents:o,length:i})}e.children?.length&&n(e.children,[...o,a])}))};return n(e,[]),{selectedKey:r?.key,openKeys:r?.parents??[]}})(d,c)),[d,c]),[J,Q]=r.useState((()=>Y.openKeys));r.useEffect((()=>{Q((e=>Array.from(new Set([...e,...Y.openKeys]))))}),[Y.openKeys.join("|")]);const Z=e=>{X(e),j?.(e)},ee=Y.selectedKey?[Y.selectedKey]:[],te=e.jsxs(T,{href:W,$collapsed:!z&&q,children:[l?e.jsx("img",{src:l,alt:s}):e.jsx("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(z||!q)&&e.jsx("h1",{children:s})]}),re=_?i:e.jsx(C,{children:i});if("undefined"==typeof document)return null;const ne=e.jsx(t.App,{component:!1,children:e.jsx(t.Spin,{spinning:O,size:"large",children:R?e.jsx(e.Fragment,{children:i}):z?e.jsxs(S,{children:[e.jsxs(D,{children:[te,e.jsx(t.Menu,{mode:"horizontal",items:V,selectedKeys:ee}),w,e.jsx(M,{account:a,avatarSrc:g,settingsUrl:m,onLogout:p,placement:"bottomRight",extraItems:L})]}),re]}):e.jsxs(S,{hasSider:!0,children:[e.jsxs($,{className:"hisd3-sider",width:H,collapsedWidth:v,collapsible:!0,collapsed:q,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&Z(!0)},children:[te,e.jsx(I,{className:q?"hisd3-collapsed":void 0,children:e.jsx(t.Menu,{mode:"inline",theme:"light",inlineCollapsed:q,items:V,selectedKeys:ee,openKeys:q?void 0:J,onOpenChange:e=>Q(e)})}),e.jsx(M,{account:a,avatarSrc:g,settingsUrl:m,onLogout:p,collapsed:q,placement:"topRight",extraItems:L})]}),e.jsxs(t.Layout,{style:{background:"transparent"},children:[!P&&e.jsxs(E,{children:[!B&&e.jsx(k,{type:"button","aria-label":q?"Expand menu":"Collapse menu",onClick:()=>Z(!q),children:q?e.jsx(o.MenuUnfoldOutlined,{}):e.jsx(o.MenuFoldOutlined,{})}),e.jsx("span",{style:{flex:1}}),w]}),re]})]})})});return G&&!u?K?e.jsx(t.ConfigProvider,{theme:K,children:ne}):ne:e.jsx(n.ThemeProvider,{theme:u??{},children:K?e.jsx(t.ConfigProvider,{theme:K,children:ne}):ne})},exports.HISD3Table=function({pagination:r,footer:n,...i}){const a=r||void 0,l=a?.pageSizeOptions??[10,20,50];return e.jsxs(q,{children:[e.jsx(t.Table,{...i,pagination:!1}),n&&e.jsx(X,{children:n}),a&&e.jsxs(V,{children:[e.jsx("span",{className:"hisd3-total",children:(a.renderTotal??J)(a.total,[(a.current-1)*a.pageSize+1,Math.min(a.current*a.pageSize,a.total)])}),e.jsx(t.Pagination,{current:a.current,pageSize:a.pageSize,total:a.total,showSizeChanger:!1,onChange:(e,t)=>a.onChange(e,t),itemRender:(t,r,n)=>"prev"===r?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(o.LeftOutlined,{})}):"next"===r?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(o.RightOutlined,{})}):n}),!a.hidePageSize&&e.jsx(Y,{role:"group","aria-label":"Rows per page",children:l.map((t=>e.jsxs("button",{type:"button","aria-pressed":t===a.pageSize,onClick:()=>a.onChange(1,t),children:[t," / page"]},t)))})]})]})},exports.HISD3Tabs=({items:t,...r})=>e.jsx(Q,{...r,items:t.map((({count:t,label:r,...n})=>({...n,label:e.jsxs(e.Fragment,{children:[r,void 0!==t&&e.jsx("span",{className:"hisd3-tab-count",children:t})]})})))}),exports.HISD3Tag=({variant:t="neutral",tone:r=("neutral"===t?"default":"primary"),children:n,...o})=>e.jsx(te,{$variant:t,$tone:r,...o,children:n}),exports.HISD3_COLORS=g,exports.HISD3_FONT_FAMILY=s,exports.HISD3_FONT_WEIGHT_BODY=400,exports.HISD3_FONT_WEIGHT_HEADING=800,exports.HISD3_LAYOUT=m,exports.HISD3_NEUTRALS=l,exports.HISD3_PRESETS=a,exports.UserMenu=M,exports.createHisd3Theme=c,exports.hisd3AntdTheme=h,exports.resolvePrimary=d,exports.tint=p,exports.useInsideHISD3Provider=x;
878
+ `;var Te,De,Ee,Ce,ze,Le,$e,Ae,Ne,Oe,Re,Be,Fe;exports.ThemeStyle=void 0,(Te=exports.ThemeStyle||(exports.ThemeStyle={})).MODERN="modern",Te.STANDARD="standard",exports.ThemeStyleRadius=void 0,(De=exports.ThemeStyleRadius||(exports.ThemeStyleRadius={})).MODERN="30px",De.STANDARD="16px",exports.ThemeMode=void 0,(Ee=exports.ThemeMode||(exports.ThemeMode={})).LIGHT="light",Ee.SEMI_DARK="semi-dark",Ee.DARK="dark",exports.LayoutType=void 0,(Ce=exports.LayoutType||(exports.LayoutType={})).FULL_WIDTH="full-width",Ce.BOXED="boxed",Ce.FRAMED="framed",exports.MenuStyle=void 0,(ze=exports.MenuStyle||(exports.MenuStyle={})).DEFAULT="default",ze.STANDARD="standard",ze.ROUNDED="rounded",ze.ROUNDED_REVERSE="rounded-reverse",ze.CURVED_MENU="curved-menu",exports.NavStyle=void 0,(Le=exports.NavStyle||(exports.NavStyle={})).DEFAULT="default",Le.MINI="mini",Le.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",Le.STANDARD="standard",Le.HEADER_USER="user-header",Le.HEADER_USER_MINI="user-mini-header",Le.DRAWER="drawer",Le.BIT_BUCKET="bit-bucket",Le.H_DEFAULT="h-default",Le.HOR_HEADER_FIXED="hor-header-fixed",Le.HOR_DARK_LAYOUT="hor-dark-layout",exports.FooterType=void 0,($e=exports.FooterType||(exports.FooterType={})).FIXED="fixed",$e.FLUID="fluid",exports.LayoutDirection=void 0,(Ae=exports.LayoutDirection||(exports.LayoutDirection={})).RTL="rtl",Ae.LTR="ltr",exports.HeaderType=void 0,(Ne=exports.HeaderType||(exports.HeaderType={})).DARK="dark",Ne.LIGHT="light",exports.RouteTransition=void 0,(Oe=exports.RouteTransition||(exports.RouteTransition={})).NONE="none",Oe.FADE="fade",Oe.SLIDE_LEFT="slideLeft",Oe.SLIDE_RIGHT="slideRight",Oe.SLIDE_UP="slideUp",Oe.SLIDE_DOWN="slideDown",exports.Fonts=void 0,(Re=exports.Fonts||(exports.Fonts={})).LIGHT="300",Re.REGULAR="400",Re.MEDIUM="500",Re.BOLD="600",exports.AuthType=void 0,(Be=exports.AuthType||(exports.AuthType={})).FIREBASE="firebase",Be.AWS_COGNITO="aws_cognito",Be.AUTH0="auth0",Be.JWT_AUTH="jwt_auth",exports.AppAnimates=void 0,(Fe=exports.AppAnimates||(exports.AppAnimates={})).SLIDEUPIN="transition.slideUpIn",Fe.SLIDEUPOUT="transition.slideUpOut",Fe.SLIDEDOWNIN="transition.slideDownIn",Fe.SLIDEDOWNOUT="transition.slideDownOut",Fe.SLIDELEFTIN="transition.slideLeftIn",Fe.SLIDELEFTOUT="transition.slideLeftOut",Fe.SLIDERIGHTIN="transition.slideRightIn",Fe.SLIDERIGHTOUT="transition.slideRightOut",Fe.FADEIN="transition.fadeIn",Fe.FADEOUT="transition.fadeOut";var He,Me;exports.MessageType=void 0,(He=exports.MessageType||(exports.MessageType={}))[He.MEDIA=1]="MEDIA",He[He.TEXT=2]="TEXT",exports.RoutePermittedRole=void 0,(Me=exports.RoutePermittedRole||(exports.RoutePermittedRole={})).Admin="admin",Me.User="user",exports.AppAnimateGroups={SLIDEUPIN:{hidden:{y:0},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.2,staggerChildren:.05}}},SLIDEUPOUT:{hidden:{y:0},visible:{opacity:0,y:"100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNIN:{hidden:{opacity:0,y:"-100vh"},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNOUT:{hidden:{y:0},visible:{opacity:0,y:"-100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTIN:{hidden:{x:"100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTOUT:{hidden:{x:0},visible:{opacity:0,x:"100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTIN:{hidden:{x:"-100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTOUT:{hidden:{x:0},visible:{opacity:0,x:"-100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},FADEIN:{hidden:{opacity:0,scale:1},visible:{opacity:1,scale:1,transition:{ease:"easeIn",when:"beforeChildren",staggerChildren:.15}}},FADEOUT:{hidden:{opacity:1,scale:1},visible:{opacity:0,scale:1,transition:{ease:"easeOut",when:"beforeChildren",staggerChildren:.15}}},NOANIMATION:{hidden:{opacity:1},visible:{opacity:1}}},exports.AppMotionAnimate={SLIDEUPIN:{variants:{hidden:{y:100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEUPOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"-100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDEDOWNIN:{variants:{hidden:{y:-100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEDOWNOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDELEFTIN:{variants:{hidden:{x:100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDELEFTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDERIGHTIN:{variants:{hidden:{x:-100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDERIGHTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},FADEIN:{variants:{hidden:{opacity:0},visible:{opacity:1}},transition:{duration:.1,ease:"easeIn",when:"beforeChildren"}},FADEOUT:{variants:{hidden:{opacity:1},visible:{opacity:0}},transition:{duration:.1,ease:"easeOut",when:"beforeChildren"}}},exports.HISD3AvatarMenu=({account:o,avatarSrc:n,settingsUrl:a="/settings",onSettings:l,onLogout:s,confirmLogout:d=!0,extraItems:p,shape:c="circle",size:h=40,hideChevron:u=!1,className:x})=>{const{modal:g}=t.App.useApp(),[b,m]=r.useState(!1),y=[...p??[],...null!==a||l?[{key:"settings",icon:e.jsx(i.SettingOutlined,{}),label:"Settings",onClick:()=>{l?l():a&&(window.location.href=a)}}]:[],{key:"logout",icon:e.jsx(i.LogoutOutlined,{}),label:"Logout",onClick:()=>{d?g.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:e.jsx(i.ExclamationCircleOutlined,{}),okText:"Logout",onOk:s}):s()}}];return e.jsx(t.Dropdown,{open:b,onOpenChange:m,trigger:["click"],placement:"bottomRight",menu:{items:y,onClick:()=>m(!1)},popupRender:t=>e.jsxs(de,{children:[e.jsxs(le,{children:[e.jsx(se,{$src:n,children:!n&&pe(o.fullName)}),e.jsxs("span",{className:"hisd3-identity-text",children:[e.jsx("span",{className:"hisd3-identity-name",children:o.fullName}),o.positionType&&e.jsx("span",{className:"hisd3-identity-role",children:o.positionType})]})]}),t]}),children:e.jsxs(ne,{type:"button",className:x,$shape:c,$size:h,"aria-label":`Account menu for ${o.fullName}`,children:[n?e.jsx("img",{src:n,alt:""}):pe(o.fullName),!u&&e.jsx(ae,{$size:h,"aria-hidden":!0,children:e.jsx(i.DownOutlined,{})})]})})},exports.HISD3Button=({variant:t="secondary",...r})=>e.jsx(Se,{...ke[t],...r}),exports.HISD3HeaderActions=({children:t,divided:o=!1,className:i})=>{const n=r.Children.toArray(t).filter(Boolean);return e.jsx(ce,{className:i,children:n.map(((t,i)=>e.jsxs(r.Fragment,{children:[o&&i===n.length-1&&i>0&&e.jsx(he,{}),t]},i)))})},exports.HISD3Input=t=>e.jsx(Ie,{...t}),exports.HISD3NotificationButton=({items:o=[],count:n,loading:a=!1,title:l="Notifications",onMarkAllRead:s,onSeeAll:d,seeAllLabel:p="See all notifications",emptyText:c="You're all caught up",onOpenChange:h,size:u=40,className:x})=>{const[g,b]=r.useState(!1),m=n??o.filter((e=>e.unread)).length,y=e.jsxs(Y,{children:[e.jsxs(J,{children:[e.jsx("h4",{children:l}),s&&m>0&&e.jsx("button",{type:"button",onClick:s,children:"Mark all as read"})]}),a?e.jsx(ie,{style:{textAlign:"center"},children:e.jsx(t.Spin,{})}):0===o.length?e.jsx(ie,{children:e.jsx(t.Empty,{image:t.Empty.PRESENTED_IMAGE_SIMPLE,description:c})}):e.jsx(Q,{children:o.map((t=>e.jsxs(Z,{type:"button",$unread:t.unread,onClick:()=>{t.onClick?.(t),b(!1),h?.(!1)},children:[e.jsx(ee,{$src:t.avatarSrc,children:!t.avatarSrc&&(t.icon??e.jsx(i.BellOutlined,{}))}),e.jsxs(te,{children:[e.jsx("strong",{children:t.title}),t.description&&e.jsx("span",{children:t.description}),t.time&&e.jsx("time",{children:t.time})]}),t.unread&&e.jsx(re,{})]},t.id)))}),d&&e.jsx(oe,{type:"button",onClick:()=>{d(),b(!1),h?.(!1)},children:p})]});return e.jsx(t.Dropdown,{open:g,onOpenChange:e=>{b(e),h?.(e)},trigger:["click"],placement:"bottomRight",popupRender:()=>y,children:e.jsx(V,{type:"button",$size:u,className:x,"aria-label":`${l}${m?` (${m} unread)`:""}`,children:e.jsx(t.Badge,{count:m,size:"small",offset:[2,-2],children:e.jsx(i.BellOutlined,{})})})})},exports.HISD3PageBody=X,exports.HISD3PageHeader=({title:r,subtitle:o,breadcrumb:i,extra:n,leading:a,hideTopBar:l=!1,className:s})=>e.jsxs("header",{className:s,children:[!l&&e.jsxs(W,{children:[a,i&&i.length>0&&e.jsx(t.Breadcrumb,{items:i.map((t=>({title:t.href?e.jsx("a",{href:t.href,children:t.title}):t.title,onClick:t.onClick})))}),!i?.length&&e.jsx("span",{style:{flex:1}}),n&&e.jsx(K,{children:n})]}),e.jsxs(q,{children:[e.jsx("h1",{children:r}),o&&e.jsx("p",{children:o})]})]}),exports.HISD3Provider=({primary:i,radius:n,borders:a="hairline",lineWidth:l,overrides:s,theme:d,styledTheme:p={},children:c})=>{const h=r.useMemo((()=>d??u({primary:i,radius:n,borders:a,lineWidth:l,overrides:s})),[d,i,n,a,l,s]),g=r.useMemo((()=>x(a,l)),[a,l]);return e.jsxs(m.Provider,{value:!0,children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:g}}),e.jsx(t.ConfigProvider,{theme:h,children:e.jsx(o.ThemeProvider,{theme:p,children:e.jsx(t.App,{component:!1,children:c})})})]})},exports.HISD3SearchInput=({compact:t=!1,className:r,...o})=>e.jsx(je,{allowClear:!0,prefix:e.jsx(i.SearchOutlined,{}),className:[t?"hisd3-search-compact":"",r??""].join(" ").trim(),...o}),exports.HISD3Sidebar=({children:n,account:a,logoUrl:l,appName:s,menuItems:d,onLogout:p,pathname:c,avatarSrc:h,styledTheme:u,settingsUrl:x,antdTheme:b,renderMenuLink:m=U,headerExtra:f,userMenuItems:v,onCollapse:k,collapsed:L=!1,loading:$=!1,hideSidebar:A=!1,layoutTop:N=!1,hideCollapseTrigger:O=!1,siderWidth:R=w,bareContent:B=!1,hideHeaderBar:F=!1,brandHref:G="/",hideAccountCard:W=!1})=>{const K=y(),q=void 0===b?K?null:g:b,[X,V]=r.useState(L);r.useEffect((()=>{V(L)}),[L]);const Y=r.useMemo((()=>M(d,m)),[d,m]),J=r.useMemo((()=>((e,t)=>{let r;const o=(e,i)=>{(e??[]).forEach(((e,n)=>{const a=H(e,n);if(e.path&&t.startsWith(e.path)){const o=t===e.path,n=e.path.length+(o?1:0);(!r||n>r.length)&&(r={key:a,parents:i,length:n})}e.children?.length&&o(e.children,[...i,a])}))};return o(e,[]),{selectedKey:r?.key,openKeys:r?.parents??[]}})(d,c)),[d,c]),[Q,Z]=r.useState((()=>J.openKeys));r.useEffect((()=>{Z((e=>Array.from(new Set([...e,...J.openKeys]))))}),[J.openKeys.join("|")]);const ee=e=>{V(e),k?.(e)},te=J.selectedKey?[J.selectedKey]:[],re=e.jsxs(T,{href:G,$collapsed:!N&&X,children:[l?e.jsx("img",{src:l,alt:s}):e.jsx("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(N||!X)&&e.jsx("h1",{children:s})]}),oe=B?n:e.jsx(z,{children:n});if("undefined"==typeof document)return null;const ie=e.jsx(t.App,{component:!1,children:e.jsx(t.Spin,{spinning:$,size:"large",children:A?e.jsx(e.Fragment,{children:n}):N?e.jsxs(I,{children:[e.jsxs(D,{children:[re,e.jsx(t.Menu,{mode:"horizontal",items:Y,selectedKeys:te}),f,!W&&e.jsx(_,{account:a,avatarSrc:h,settingsUrl:x,onLogout:p,placement:"bottomRight",extraItems:v})]}),oe]}):e.jsxs(I,{hasSider:!0,children:[e.jsxs(P,{className:"hisd3-sider",width:R,collapsedWidth:S,collapsible:!0,collapsed:X,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&ee(!0)},children:[re,e.jsx(j,{className:X?"hisd3-collapsed":void 0,children:e.jsx(t.Menu,{mode:"inline",theme:"light",inlineCollapsed:X,items:Y,selectedKeys:te,openKeys:X?void 0:Q,onOpenChange:e=>Z(e)})}),!W&&e.jsx(_,{account:a,avatarSrc:h,settingsUrl:x,onLogout:p,collapsed:X,placement:"topRight",extraItems:v})]}),e.jsxs(t.Layout,{style:{background:"transparent"},children:[!F&&e.jsxs(E,{children:[!O&&e.jsx(C,{type:"button","aria-label":X?"Expand menu":"Collapse menu",onClick:()=>ee(!X),children:X?e.jsx(i.MenuUnfoldOutlined,{}):e.jsx(i.MenuFoldOutlined,{})}),e.jsx("span",{style:{flex:1}}),f]}),oe]})]})})});return K&&!u?q?e.jsx(t.ConfigProvider,{theme:q,children:ie}):ie:e.jsx(o.ThemeProvider,{theme:u??{},children:q?e.jsx(t.ConfigProvider,{theme:q,children:ie}):ie})},exports.HISD3Table=function({pagination:r,footer:o,...n}){const a=r||void 0,l=a?.pageSizeOptions??[10,20,50];return e.jsxs(ue,{children:[e.jsx(t.Table,{...n,pagination:!1}),o&&e.jsx(xe,{children:o}),a&&e.jsxs(ge,{children:[e.jsx("span",{className:"hisd3-total",children:(a.renderTotal??me)(a.total,[(a.current-1)*a.pageSize+1,Math.min(a.current*a.pageSize,a.total)])}),e.jsx(t.Pagination,{current:a.current,pageSize:a.pageSize,total:a.total,showSizeChanger:!1,onChange:(e,t)=>a.onChange(e,t),itemRender:(t,r,o)=>"prev"===r?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(i.LeftOutlined,{})}):"next"===r?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(i.RightOutlined,{})}):o}),!a.hidePageSize&&e.jsx(be,{role:"group","aria-label":"Rows per page",children:l.map((t=>e.jsxs("button",{type:"button","aria-pressed":t===a.pageSize,onClick:()=>a.onChange(1,t),children:[t," / page"]},t)))})]})]})},exports.HISD3Tabs=({items:t,...r})=>e.jsx(ye,{...r,items:t.map((({count:t,label:r,...o})=>({...o,label:e.jsxs(e.Fragment,{children:[r,void 0!==t&&e.jsx("span",{className:"hisd3-tab-count",children:t})]})})))}),exports.HISD3Tag=({variant:t="neutral",tone:r=("neutral"===t?"default":"primary"),children:o,...i})=>e.jsx(we,{$variant:t,$tone:r,...i,children:o}),exports.HISD3_BORDER_PRESETS=d,exports.HISD3_COLORS=b,exports.HISD3_FONT_FAMILY=p,exports.HISD3_FONT_WEIGHT_BODY=400,exports.HISD3_FONT_WEIGHT_HEADING=800,exports.HISD3_LAYOUT=a,exports.HISD3_NEUTRALS=s,exports.HISD3_PRESETS=l,exports.HeaderIconButton=V,exports.UserMenu=_,exports.borderVarsCss=x,exports.createHisd3Theme=u,exports.getInitials=pe,exports.hisd3AntdTheme=g,exports.resolvePrimary=c,exports.tint=h,exports.useInsideHISD3Provider=y;
587
879
  //# sourceMappingURL=index.cjs.js.map