hisd3-ui-kit 4.4.1 → 4.5.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 +31 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +31 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1041,8 +1041,13 @@ declare const HISD3Button: React.FC<HISD3ButtonProps>;
|
|
|
1041
1041
|
type HISD3InputProps = InputProps;
|
|
1042
1042
|
/** Plain text input with the HISD3 2px border. */
|
|
1043
1043
|
declare const HISD3Input: React.FC<HISD3InputProps>;
|
|
1044
|
-
interface HISD3SearchInputProps extends InputProps {
|
|
1045
|
-
/**
|
|
1044
|
+
interface HISD3SearchInputProps extends Omit<InputProps, "size"> {
|
|
1045
|
+
/**
|
|
1046
|
+
* "small" 32px, "middle" 40px (default, matches buttons), "large" 56px for a
|
|
1047
|
+
* standalone hero search.
|
|
1048
|
+
*/
|
|
1049
|
+
size?: "small" | "middle" | "large";
|
|
1050
|
+
/** @deprecated use `size` — kept so existing call sites keep working. */
|
|
1046
1051
|
compact?: boolean;
|
|
1047
1052
|
}
|
|
1048
1053
|
/** Grey filled search field with leading icon (the page-level search bar). */
|
package/dist/index.js
CHANGED
|
@@ -1324,20 +1324,21 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
1324
1324
|
&.ant-input,
|
|
1325
1325
|
&.ant-input-affix-wrapper {
|
|
1326
1326
|
border-width: var(--hisd3-rule-width, 1px);
|
|
1327
|
-
font-size:
|
|
1327
|
+
font-size: 14px;
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
1330
|
&.ant-input-affix-wrapper .ant-input-prefix {
|
|
1331
|
-
margin-inline-end:
|
|
1331
|
+
margin-inline-end: 10px;
|
|
1332
1332
|
color: var(--ant-color-text-tertiary);
|
|
1333
|
-
font-size:
|
|
1333
|
+
font-size: 15px;
|
|
1334
1334
|
}
|
|
1335
1335
|
`,Pt=e=>t(Gt,{...e}),jt=E(Gt)`
|
|
1336
|
+
/* default: the same 40px control height as buttons and selects */
|
|
1336
1337
|
&.ant-input-affix-wrapper {
|
|
1337
1338
|
background: var(--hisd3-bg-filled, #e6e4e1);
|
|
1338
1339
|
border-color: var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
|
|
1339
|
-
height:
|
|
1340
|
-
padding-inline:
|
|
1340
|
+
height: 40px;
|
|
1341
|
+
padding-inline: 14px;
|
|
1341
1342
|
|
|
1342
1343
|
&:hover,
|
|
1343
1344
|
&:focus-within {
|
|
@@ -1347,24 +1348,41 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
1347
1348
|
|
|
1348
1349
|
.ant-input {
|
|
1349
1350
|
background: transparent;
|
|
1350
|
-
font-size:
|
|
1351
|
+
font-size: 14px;
|
|
1351
1352
|
}
|
|
1352
1353
|
|
|
1353
1354
|
.ant-input-prefix {
|
|
1354
|
-
|
|
1355
|
+
margin-inline-end: 10px;
|
|
1356
|
+
font-size: 15px;
|
|
1355
1357
|
}
|
|
1356
1358
|
}
|
|
1357
1359
|
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1360
|
+
/* compact: pairs with a small table */
|
|
1361
|
+
&.hisd3-search-sm.ant-input-affix-wrapper {
|
|
1362
|
+
height: 32px;
|
|
1363
|
+
padding-inline: 12px;
|
|
1361
1364
|
|
|
1362
1365
|
.ant-input {
|
|
1363
|
-
font-size:
|
|
1366
|
+
font-size: 13px;
|
|
1367
|
+
}
|
|
1368
|
+
.ant-input-prefix {
|
|
1369
|
+
margin-inline-end: 8px;
|
|
1370
|
+
font-size: 14px;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/* hero: the tall standalone search at the top of a landing page */
|
|
1375
|
+
&.hisd3-search-lg.ant-input-affix-wrapper {
|
|
1376
|
+
height: 56px;
|
|
1377
|
+
padding-inline: 20px;
|
|
1378
|
+
|
|
1379
|
+
.ant-input {
|
|
1380
|
+
font-size: 17px;
|
|
1364
1381
|
}
|
|
1365
1382
|
.ant-input-prefix {
|
|
1366
|
-
|
|
1383
|
+
margin-inline-end: 14px;
|
|
1384
|
+
font-size: 19px;
|
|
1367
1385
|
}
|
|
1368
1386
|
}
|
|
1369
|
-
`,qt=({
|
|
1387
|
+
`,qt={small:"hisd3-search-sm",middle:"",large:"hisd3-search-lg"},Qt=({size:e,compact:r,className:o,...i})=>t(jt,{allowClear:!0,prefix:t(O,{}),className:[qt[e??(r?"small":"middle")],o??""].join(" ").trim(),...i});var Kt,Wt,Zt,Vt,Yt,Jt,Xt,_t,er,tr,rr,or,ir;!function(e){e.MODERN="modern",e.STANDARD="standard"}(Kt||(Kt={})),function(e){e.MODERN="30px",e.STANDARD="16px"}(Wt||(Wt={})),function(e){e.LIGHT="light",e.SEMI_DARK="semi-dark",e.DARK="dark"}(Zt||(Zt={})),function(e){e.FULL_WIDTH="full-width",e.BOXED="boxed",e.FRAMED="framed"}(Vt||(Vt={})),function(e){e.DEFAULT="default",e.STANDARD="standard",e.ROUNDED="rounded",e.ROUNDED_REVERSE="rounded-reverse",e.CURVED_MENU="curved-menu"}(Yt||(Yt={})),function(e){e.DEFAULT="default",e.MINI="mini",e.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",e.STANDARD="standard",e.HEADER_USER="user-header",e.HEADER_USER_MINI="user-mini-header",e.DRAWER="drawer",e.BIT_BUCKET="bit-bucket",e.H_DEFAULT="h-default",e.HOR_HEADER_FIXED="hor-header-fixed",e.HOR_DARK_LAYOUT="hor-dark-layout"}(Jt||(Jt={})),function(e){e.FIXED="fixed",e.FLUID="fluid"}(Xt||(Xt={})),function(e){e.RTL="rtl",e.LTR="ltr"}(_t||(_t={})),function(e){e.DARK="dark",e.LIGHT="light"}(er||(er={})),function(e){e.NONE="none",e.FADE="fade",e.SLIDE_LEFT="slideLeft",e.SLIDE_RIGHT="slideRight",e.SLIDE_UP="slideUp",e.SLIDE_DOWN="slideDown"}(tr||(tr={})),function(e){e.LIGHT="300",e.REGULAR="400",e.MEDIUM="500",e.BOLD="600"}(rr||(rr={})),function(e){e.FIREBASE="firebase",e.AWS_COGNITO="aws_cognito",e.AUTH0="auth0",e.JWT_AUTH="jwt_auth"}(or||(or={})),function(e){e.SLIDEUPIN="transition.slideUpIn",e.SLIDEUPOUT="transition.slideUpOut",e.SLIDEDOWNIN="transition.slideDownIn",e.SLIDEDOWNOUT="transition.slideDownOut",e.SLIDELEFTIN="transition.slideLeftIn",e.SLIDELEFTOUT="transition.slideLeftOut",e.SLIDERIGHTIN="transition.slideRightIn",e.SLIDERIGHTOUT="transition.slideRightOut",e.FADEIN="transition.fadeIn",e.FADEOUT="transition.fadeOut"}(ir||(ir={}));const nr={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}}},ar={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"}}};var lr,dr;!function(e){e[e.MEDIA=1]="MEDIA",e[e.TEXT=2]="TEXT"}(lr||(lr={})),function(e){e.Admin="admin",e.User="user"}(dr||(dr={}));export{nr as AppAnimateGroups,ir as AppAnimates,ar as AppMotionAnimate,or as AuthType,rr as Fonts,Xt as FooterType,Dt as HISD3AvatarMenu,Ge as HISD3Button,St as HISD3HeaderActions,Pt as HISD3Input,at as HISD3LoginPage,ft as HISD3NotificationButton,Ue as HISD3PageBody,Me as HISD3PageHeader,re as HISD3Provider,Qt as HISD3SearchInput,Ie as HISD3Sidebar,Nt as HISD3Table,Ut as HISD3Tabs,$t as HISD3Tag,j as HISD3_BORDER_PRESETS,_ as HISD3_COLORS,q as HISD3_FONT_FAMILY,K as HISD3_FONT_WEIGHT_BODY,Q as HISD3_FONT_WEIGHT_HEADING,$ as HISD3_LAYOUT,Oe as HISD3_LOGO_SRC,P as HISD3_NEUTRALS,G as HISD3_PRESETS,lt as HeaderIconButton,er as HeaderType,_t as LayoutDirection,Vt as LayoutType,Yt as MenuStyle,lr as MessageType,Jt as NavStyle,dr as RoutePermittedRole,tr as RouteTransition,Zt as ThemeMode,Kt as ThemeStyle,Wt as ThemeStyleRadius,Se as UserMenu,J as borderVarsCss,V as createHisd3Theme,Et as getInitials,X as hisd3AntdTheme,Y as hisd3VarsCss,W as resolvePrimary,Z as tint,te as useInsideHISD3Provider};
|
|
1370
1388
|
//# sourceMappingURL=index.js.map
|